monowind 0.2.7 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cdn.js CHANGED
@@ -1,40 +1,40 @@
1
1
  (function(){(()=>{function e(e){return{kind:`combinator`,value:e}}function t(e){return{kind:`complex`,nodes:e}}function n(e){return{kind:`compound`,nodes:e}}function r(e,t){return{kind:`function`,value:e,nodes:t}}function i(e){return{kind:`list`,nodes:e}}function a(e){return{kind:`selector`,value:e}}function o(e){return{kind:`value`,value:e}}function s(e){return e.kind===`selector`&&e.value.charCodeAt(0)===h}function c(e){if(e.kind!==`selector`)return!1;switch(e.value.charCodeAt(0)){case h:case m:case d:case f:case u:case p:return!1;default:return!0}}function l(e,t=!1){let n=``;for(let r of e)switch(r.kind){case`selector`:case`value`:n+=r.value;break;case`combinator`:t||r.value===` `?n+=r.value:n+=` ${r.value} `;break;case`function`:n+=`${r.value}(${l(r.nodes,t)})`;break;case`complex`:case`compound`:n+=l(r.nodes,t);break;case`list`:n+=r.nodes.map(e=>l([e],t)).join(t?`,`:`, `)}return n}var u=58,d=46,f=35,p=91,m=38,h=42;function g(s){s=s.replaceAll(`\r
2
2
  `,`
3
- `);let c=[],l=c,u=!1,d=[],f=null,p=``,m;function h(e=l){return e.length===1?e[0]:u?t(e):n(e)}function _(e){let t=l[l.length-1];t?.kind===`compound`?t.nodes.push(e):t&&t.kind!==`list`&&t.kind!==`combinator`?l[l.length-1]=n([t,e]):l.push(e)}for(let n=0;n<s.length;n++){let v=s.charCodeAt(n);switch(v){case 44:for(p.length>0&&(_(a(p)),p=``);n+1<s.length&&(m=s.charCodeAt(n+1),m===10||m===32||m===9);n++);if(f)f.nodes.push(h()),l=[],u=!1;else{let e=i([h(l.splice(0))]);l.push(e),f=e,l=[],u=!1}break;case 62:case 10:case 32:case 43:case 9:case 126:{p.length>0&&(_(a(p)),p=``);let t=n,r=n+1;for(;r<s.length&&(m=s.charCodeAt(r),m===62||m===10||m===32||m===43||m===9||m===126);r++);n=r-1;let i=s.slice(t,r).trim();if(i===``&&(l.length===0||r>=s.length||s.charCodeAt(r)===44))break;l.push(e(i===``?` `:i)),u=!0;break}case 40:{let e=r(p,[]);if(p=``,e.value!==`:not`&&e.value!==`:where`&&e.value!==`:has`&&e.value!==`:is`){let t=n+1,r=0;for(let e=n+1;e<s.length;e++){if(m=s.charCodeAt(e),m===40){r++;continue}if(m===41){if(r===0){n=e;break}r--}}let i=n,a=s.slice(t,i);if(e.value===`:nth-child`||e.value===`:nth-last-child`){let t=a.indexOf(`of `);if(t!==-1){e.nodes.push(o(a.slice(0,t+3)),...g(a.slice(t+3))),p=``,n=i,_(e);break}}e.nodes.push(o(a)),p=``,n=i,_(e);break}_(e),d.push({target:l,currentList:f,containsCombinator:u}),l=e.nodes,u=!1,f=null;break}case 41:{p.length>0&&(_(a(p)),p=``),f?f.nodes.push(h()):u&&l.splice(0,l.length,t(l.splice(0)));let e=d.pop();l=e?.target??c,f=e?.currentList??null,u=e?.containsCombinator??!1;break}case 46:case 58:case 35:if(v===58&&p===`:`){p+=s[n];break}p.length>0&&_(a(p)),p=s[n];break;case 91:{p.length>0&&(_(a(p)),p=``);let e=n,t=0;for(let e=n+1;e<s.length;e++){if(m=s.charCodeAt(e),m===91){t++;continue}if(m===93){if(t===0){n=e;break}t--}}_(a(s.slice(e,n+1)));break}case 39:case 34:{let e=n;for(let e=n+1;e<s.length;e++)if(m=s.charCodeAt(e),m===92)e+=1;else if(m===v){n=e;break}p+=s.slice(e,n+1);break}case 38:case 42:p.length>0&&(_(a(p)),p=``),_(a(s[n]));break;case 92:p+=s[n]+s[n+1],n+=1;break;default:p+=s[n]}}return p.length>0&&_(a(p)),f?f.nodes.push(h()):u&&l.splice(0,l.length,t(l.splice(0))),c}function _(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);function n(e){let n=0,r=t.length;for(;r>0;){let i=(r|0)>>1,a=n+i;t[a]<=e?(n=a+1,r=r-i-1):r=i}--n;let i=e-t[n];return{line:n+1,column:i}}function r({line:e,column:n}){--e,e=Math.min(Math.max(e,0),t.length-1);let r=t[e],i=t[e+1]??r;return Math.min(Math.max(r+n,0),i)}return{find:n,findOffset:r}}var v=class e extends Error{loc;constructor(t,n){if(n){let e=n[0],r=_(e.code).find(n[1]);t=`${e.file}:${r.line}:${r.column+1}: ${t}`}super(t),this.name=`CssSyntaxError`,this.loc=n,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function y(e,t){let n=t?.from?{file:t.from,code:e}:null;e[0]===``&&(e=` `+e.slice(1));let r=[],i=[],a=[],o=null,s=null,c=``,l=``,u=0,d;for(let t=0;t<e.length;t++){let f=e.charCodeAt(t);if(!(f===13&&(d=e.charCodeAt(t+1),d===10))){if(f===92)c===``&&(u=t),c+=e.slice(t,t+2),t+=1;else if(f===47&&e.charCodeAt(t+1)===42){let r=t;for(let n=t+2;n<e.length;n++)if(d=e.charCodeAt(n),d===92)n+=1;else if(d===42&&e.charCodeAt(n+1)===47){t=n+1;break}let a=e.slice(r,t+1);if(a.charCodeAt(2)===33){let e=Ce(a.slice(2,-2));i.push(e),n&&(e.src=[n,r,t+1],e.dst=[n,r,t+1])}}else if(f===39||f===34){let r=S(e,t,f,n);c+=e.slice(t,r+1),t=r}else{if((f===32||f===10||f===9)&&(d=e.charCodeAt(t+1))&&(d===32||d===10||d===9||d===13&&(d=e.charCodeAt(t+2))&&d==10))continue;if(f===10){if(c.length===0)continue;d=c.charCodeAt(c.length-1),d!==32&&d!==10&&d!==9&&(c+=` `)}else if(f===45&&e.charCodeAt(t+1)===45&&c.length===0){let i=``,a=t,s=-1;for(let r=t+2;r<e.length;r++)if(d=e.charCodeAt(r),d===92)r+=1;else if(d===39||d===34)r=S(e,r,d,n);else if(d===47&&e.charCodeAt(r+1)===42){for(let t=r+2;t<e.length;t++)if(d=e.charCodeAt(t),d===92)t+=1;else if(d===42&&e.charCodeAt(t+1)===47){r=t+1;break}}else if(s===-1&&d===58)s=c.length+r-a;else if(d===59&&i.length===0){c+=e.slice(a,r),t=r;break}else if(d===40)i+=`)`;else if(d===91)i+=`]`;else if(d===123)i+=`}`;else if((d===125||e.length-1===r)&&i.length===0){t=r-1,c+=e.slice(a,r);break}else(d===41||d===93||d===125)&&i.length>0&&e[r]===i[i.length-1]&&(i=i.slice(0,-1));let l=x(c,s);if(!l)throw new v(`Invalid custom property, expected a value`,n?[n,a,t]:null);n&&(l.src=[n,a,t],l.dst=[n,a,t]),o?o.nodes.push(l):r.push(l),c=``}else if(f===59&&c.charCodeAt(0)===64)s=b(c),n&&(s.src=[n,u,t],s.dst=[n,u,t]),o?o.nodes.push(s):r.push(s),c=``,s=null;else if(f===59&&l[l.length-1]!==`)`){let e=x(c);if(!e){if(c.length===0)continue;throw new v(`Invalid declaration: \`${c.trim()}\``,n?[n,u,t]:null)}n&&(e.src=[n,u,t],e.dst=[n,u,t]),o?o.nodes.push(e):r.push(e),c=``}else if(f===123&&l[l.length-1]!==`)`)l+=`}`,s=L(c.trim()),n&&(s.src=[n,u,t],s.dst=[n,u,t]),o&&o.nodes.push(s),a.push(o),o=s,c=``,s=null;else if(f===125&&l[l.length-1]!==`)`){if(l===``)throw new v(`Missing opening {`,n?[n,t,t]:null);if(l=l.slice(0,-1),c.length>0){if(c.charCodeAt(0)===64)s=b(c),n&&(s.src=[n,u,t],s.dst=[n,u,t]),o?o.nodes.push(s):r.push(s),c=``,s=null;else{let e=c.indexOf(`:`);if(o){let r=x(c,e);if(!r)throw new v(`Invalid declaration: \`${c.trim()}\``,n?[n,u,t]:null);n&&(r.src=[n,u,t],r.dst=[n,u,t]),o.nodes.push(r)}}}let e=a.pop()??null;e===null&&o&&r.push(o),o=e,c=``,s=null}else if(f===40)l+=`)`,c+=`(`;else if(f===41){if(l[l.length-1]!==`)`)throw new v(`Missing opening (`,n?[n,t,t]:null);l=l.slice(0,-1),c+=`)`}else{if(c.length===0&&(f===32||f===10||f===9))continue;c===``&&(u=t),c+=String.fromCharCode(f)}}}}if(c.charCodeAt(0)===64){let t=b(c);n&&(t.src=[n,u,e.length],t.dst=[n,u,e.length]),r.push(t)}if(l.length>0&&o){if(o.kind===`rule`)throw new v(`Missing closing } at ${o.selector}`,o.src?[o.src[0],o.src[1],o.src[1]]:null);if(o.kind===`at-rule`)throw new v(`Missing closing } at ${o.name} ${o.params}`,o.src?[o.src[0],o.src[1],o.src[1]]:null)}return i.length>0?i.concat(r):r}function b(e,t=[]){let n=e,r=``;for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===32||i===9||i===40){n=e.slice(0,t),r=e.slice(t);break}}return I(n.trim(),r.trim(),t)}function x(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return R(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function S(e,t,n,r=null){let i;for(let a=t+1;a<e.length;a++)if(i=e.charCodeAt(a),i===92)a+=1;else{if(i===n)return a;if(i===59&&(e.charCodeAt(a+1)===10||e.charCodeAt(a+1)===13&&e.charCodeAt(a+2)===10))throw new v(`Unterminated string: ${e.slice(t,a+1)+String.fromCharCode(n)}`,r?[r,t,a+1]:null);if(i===10||i===13&&e.charCodeAt(a+1)===10)throw new v(`Unterminated string: ${e.slice(t,a)+String.fromCharCode(n)}`,r?[r,t,a+1]:null)}return t}function C(e){if(arguments.length===0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n===1&&o===45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i===0){a+=`�`;continue}if(i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}function w(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>{if(e.length<=2)return e[1];let t=Number.parseInt(e.slice(1).trim(),16);return t===0||t>1114111||t>=55296&&t<=57343?`�`:String.fromCodePoint(t)})}var T=new Map([[`--font`,[`--font-weight`,`--font-size`]],[`--inset`,[`--inset-shadow`,`--inset-ring`]],[`--text`,[`--text-color`,`--text-decoration-color`,`--text-decoration-thickness`,`--text-indent`,`--text-shadow`,`--text-underline-offset`]],[`--grid-column`,[`--grid-column-start`,`--grid-column-end`]],[`--grid-row`,[`--grid-row-start`,`--grid-row-end`]]]);function E(e,t){return(T.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var D=class{constructor(e=new Map,t=new Set([])){this.values=e,this.keyframes=t}values;keyframes;prefix=null;get size(){return this.values.size}add(e,t,n=0,r){if(e.endsWith(`-*`)){if(t!==`initial`)throw Error(`Invalid theme value \`${t}\` for namespace \`${e}\``);e===`--*`?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(n&4){let t=this.values.get(e);if(t&&!(t.options&4))return}t===`initial`?this.values.delete(e):this.values.set(e,{value:t,options:n,src:r})}keysInNamespaces(e){let t=[];for(let n of e){let e=`${n}-`;for(let r of this.values.keys())r.startsWith(e)&&r.indexOf(`--`,2)===-1&&(E(r,n)||t.push(r.slice(e.length)))}return t}get(e){for(let t of e){let e=this.values.get(t);if(e)return e.value}return null}hasDefault(e){return(this.getOptions(e)&4)==4}getOptions(e){return e=w(this.#e(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#e(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,t){let n=T.get(e)??[];e:for(let r of this.values.keys())if(r.startsWith(e)){if(t!==0&&(this.getOptions(r)&t)!==t)continue;for(let e of n)if(r.startsWith(e))continue e;this.values.delete(r)}}#t(e,t){for(let n of t){let t=e===null?n:`${n}-${e}`;if(!this.values.has(t)){if(e!==null&&e.includes(`.`)){if(t=`${n}-${e.replaceAll(`.`,`_`)}`,!this.values.has(t))continue}else continue}if(!E(t,n))return t}return null}#n(e){let t=this.values.get(e);if(!t)return null;let n=null;return t.options&2&&(n=t.value),`var(${C(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=w(this.#e(e)),n=this.values.get(t);if(!n)return!1;let r=n.options&16;return n.options|=16,!r}resolve(e,t,n=0){let r=this.#t(e,t);if(!r)return null;let i=this.values.get(r);return(n|i.options)&1?i.value:this.#n(r)}resolveValue(e,t){let n=this.#t(e,t);return n?this.values.get(n).value:null}resolveWith(e,t,n=[]){let r=this.#t(e,t);if(!r)return null;let i={};for(let e of n){let t=`${r}${e}`,n=this.values.get(t);n&&(i[e]=n.options&1?n.value:this.#n(t))}let a=this.values.get(r);return a.options&1?[a.value,i]:[this.#n(r),i]}namespace(e){let t=new Map,n=`${e}-`;for(let[r,i]of this.values)r===e?t.set(null,i.value):r.startsWith(`${n}-`)?t.set(r.slice(e.length),i.value):r.startsWith(n)&&t.set(r.slice(n.length),i.value);return t}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},O=class extends Map{constructor(e){super(),this.factory=e}factory;get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e,this),this.set(e,t)),t}},k=new Uint8Array(256);function A(e,t){let n=0,r=[],i=0,a=e.length,o=t.charCodeAt(0);for(let t=0;t<a;t++){let s=e.charCodeAt(t);if(n===0&&s===o){r.push(e.slice(i,t)),i=t+1;continue}switch(s){case 92:t+=1;break;case 39:case 34:for(;++t<a;){let n=e.charCodeAt(t);if(n===92){t+=1;continue}if(n===s)break}break;case 40:k[n]=41,n++;break;case 91:k[n]=93,n++;break;case 123:k[n]=125,n++;break;case 93:case 125:case 41:n>0&&s===k[n-1]&&n--}}return r.push(e.slice(i)),r}function ee(e){return{kind:`word`,value:e}}function te(e,t){return{kind:`function`,value:e,nodes:t}}function ne(e){return{kind:`separator`,value:e}}function j(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+j(n.nodes)+`)`}return t}var re=92,ie=41,ae=58,oe=44,se=34,ce=61,le=62,ue=60,de=10,fe=40,pe=39,me=47,he=32,ge=9;function M(e){e=e.replaceAll(`\r
3
+ `);let c=[],l=c,u=!1,d=[],f=null,p=``,m;function h(e=l){return e.length===1?e[0]:u?t(e):n(e)}function _(e){let t=l[l.length-1];t?.kind===`compound`?t.nodes.push(e):t&&t.kind!==`list`&&t.kind!==`combinator`?l[l.length-1]=n([t,e]):l.push(e)}for(let n=0;n<s.length;n++){let v=s.charCodeAt(n);switch(v){case 44:for(p.length>0&&(_(a(p)),p=``);n+1<s.length&&(m=s.charCodeAt(n+1),m===10||m===32||m===9);n++);if(f)f.nodes.push(h()),l=[],u=!1;else{let e=i([h(l.splice(0))]);l.push(e),f=e,l=[],u=!1}break;case 62:case 10:case 32:case 43:case 9:case 126:{p.length>0&&(_(a(p)),p=``);let t=n,r=n+1;for(;r<s.length&&(m=s.charCodeAt(r),m===62||m===10||m===32||m===43||m===9||m===126);r++);n=r-1;let i=s.slice(t,r).trim();if(i===``&&(l.length===0||r>=s.length||s.charCodeAt(r)===44))break;l.push(e(i===``?` `:i)),u=!0;break}case 40:{let e=r(p,[]);if(p=``,e.value!==`:not`&&e.value!==`:where`&&e.value!==`:has`&&e.value!==`:is`){let t=n+1,r=0;for(let e=n+1;e<s.length;e++){if(m=s.charCodeAt(e),m===40){r++;continue}if(m===41){if(r===0){n=e;break}r--}}let i=n,a=s.slice(t,i);if(e.value===`:nth-child`||e.value===`:nth-last-child`){let t=a.indexOf(`of `);if(t!==-1){e.nodes.push(o(a.slice(0,t+3)),...g(a.slice(t+3))),p=``,n=i,_(e);break}}e.nodes.push(o(a)),p=``,n=i,_(e);break}_(e),d.push({target:l,currentList:f,containsCombinator:u}),l=e.nodes,u=!1,f=null;break}case 41:{p.length>0&&(_(a(p)),p=``),f?f.nodes.push(h()):u&&l.splice(0,l.length,t(l.splice(0)));let e=d.pop();l=e?.target??c,f=e?.currentList??null,u=e?.containsCombinator??!1;break}case 46:case 58:case 35:if(v===58&&p===`:`){p+=s[n];break}p.length>0&&_(a(p)),p=s[n];break;case 91:{p.length>0&&(_(a(p)),p=``);let e=n,t=0;for(let e=n+1;e<s.length;e++){if(m=s.charCodeAt(e),m===91){t++;continue}if(m===93){if(t===0){n=e;break}t--}}_(a(s.slice(e,n+1)));break}case 39:case 34:{let e=n;for(let e=n+1;e<s.length;e++)if(m=s.charCodeAt(e),m===92)e+=1;else if(m===v){n=e;break}p+=s.slice(e,n+1);break}case 38:case 42:p.length>0&&(_(a(p)),p=``),_(a(s[n]));break;case 92:p+=s[n]+s[n+1],n+=1;break;default:p+=s[n]}}return p.length>0&&_(a(p)),f?f.nodes.push(h()):u&&l.splice(0,l.length,t(l.splice(0))),c}function _(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);function n(e){let n=0,r=t.length;for(;r>0;){let i=(r|0)>>1,a=n+i;t[a]<=e?(n=a+1,r=r-i-1):r=i}--n;let i=e-t[n];return{line:n+1,column:i}}function r({line:e,column:n}){--e,e=Math.min(Math.max(e,0),t.length-1);let r=t[e],i=t[e+1]??r;return Math.min(Math.max(r+n,0),i)}return{find:n,findOffset:r}}var v=class e extends Error{loc;constructor(t,n){if(n){let e=n[0],r=_(e.code).find(n[1]);t=`${e.file}:${r.line}:${r.column+1}: ${t}`}super(t),this.name=`CssSyntaxError`,this.loc=n,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function y(e,t){let n=t?.from?{file:t.from,code:e}:null;e[0]===``&&(e=` `+e.slice(1));let r=[],i=[],a=[],o=null,s=null,c=``,l=``,u=0,d;for(let t=0;t<e.length;t++){let f=e.charCodeAt(t);if(!(f===13&&(d=e.charCodeAt(t+1),d===10))){if(f===92)c===``&&(u=t),c+=e.slice(t,t+2),t+=1;else if(f===47&&e.charCodeAt(t+1)===42){let r=t;for(let n=t+2;n<e.length;n++)if(d=e.charCodeAt(n),d===92)n+=1;else if(d===42&&e.charCodeAt(n+1)===47){t=n+1;break}let a=e.slice(r,t+1);if(a.charCodeAt(2)===33){let e=we(a.slice(2,-2));i.push(e),n&&(e.src=[n,r,t+1],e.dst=[n,r,t+1])}}else if(f===39||f===34){let r=S(e,t,f,n);c+=e.slice(t,r+1),t=r}else{if((f===32||f===10||f===9)&&(d=e.charCodeAt(t+1))&&(d===32||d===10||d===9||d===13&&(d=e.charCodeAt(t+2))&&d==10))continue;if(f===10){if(c.length===0)continue;d=c.charCodeAt(c.length-1),d!==32&&d!==10&&d!==9&&(c+=` `)}else if(f===45&&e.charCodeAt(t+1)===45&&c.length===0){let i=``,a=t,s=-1;for(let r=t+2;r<e.length;r++)if(d=e.charCodeAt(r),d===92)r+=1;else if(d===39||d===34)r=S(e,r,d,n);else if(d===47&&e.charCodeAt(r+1)===42){for(let t=r+2;t<e.length;t++)if(d=e.charCodeAt(t),d===92)t+=1;else if(d===42&&e.charCodeAt(t+1)===47){r=t+1;break}}else if(s===-1&&d===58)s=c.length+r-a;else if(d===59&&i.length===0){c+=e.slice(a,r),t=r;break}else if(d===40)i+=`)`;else if(d===91)i+=`]`;else if(d===123)i+=`}`;else if((d===125||e.length-1===r)&&i.length===0){t=r-1,c+=e.slice(a,r);break}else(d===41||d===93||d===125)&&i.length>0&&e[r]===i[i.length-1]&&(i=i.slice(0,-1));let l=x(c,s);if(!l)throw new v(`Invalid custom property, expected a value`,n?[n,a,t]:null);n&&(l.src=[n,a,t],l.dst=[n,a,t]),o?o.nodes.push(l):r.push(l),c=``}else if(f===59&&c.charCodeAt(0)===64)s=b(c),n&&(s.src=[n,u,t],s.dst=[n,u,t]),o?o.nodes.push(s):r.push(s),c=``,s=null;else if(f===59&&l[l.length-1]!==`)`){let e=x(c);if(!e){if(c.length===0)continue;throw new v(`Invalid declaration: \`${c.trim()}\``,n?[n,u,t]:null)}n&&(e.src=[n,u,t],e.dst=[n,u,t]),o?o.nodes.push(e):r.push(e),c=``}else if(f===123&&l[l.length-1]!==`)`)l+=`}`,s=I(c.trim()),n&&(s.src=[n,u,t],s.dst=[n,u,t]),o&&o.nodes.push(s),a.push(o),o=s,c=``,s=null;else if(f===125&&l[l.length-1]!==`)`){if(l===``)throw new v(`Missing opening {`,n?[n,t,t]:null);if(l=l.slice(0,-1),c.length>0){if(c.charCodeAt(0)===64)s=b(c),n&&(s.src=[n,u,t],s.dst=[n,u,t]),o?o.nodes.push(s):r.push(s),c=``,s=null;else{let e=c.indexOf(`:`);if(o){let r=x(c,e);if(!r)throw new v(`Invalid declaration: \`${c.trim()}\``,n?[n,u,t]:null);n&&(r.src=[n,u,t],r.dst=[n,u,t]),o.nodes.push(r)}}}let e=a.pop()??null;e===null&&o&&r.push(o),o=e,c=``,s=null}else if(f===40)l+=`)`,c+=`(`;else if(f===41){if(l[l.length-1]!==`)`)throw new v(`Missing opening (`,n?[n,t,t]:null);l=l.slice(0,-1),c+=`)`}else{if(c.length===0&&(f===32||f===10||f===9))continue;c===``&&(u=t),c+=String.fromCharCode(f)}}}}if(c.charCodeAt(0)===64){let t=b(c);n&&(t.src=[n,u,e.length],t.dst=[n,u,e.length]),r.push(t)}if(l.length>0&&o){if(o.kind===`rule`)throw new v(`Missing closing } at ${o.selector}`,o.src?[o.src[0],o.src[1],o.src[1]]:null);if(o.kind===`at-rule`)throw new v(`Missing closing } at ${o.name} ${o.params}`,o.src?[o.src[0],o.src[1],o.src[1]]:null)}return i.length>0?i.concat(r):r}function b(e,t=[]){let n=e,r=``;for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===32||i===9||i===40){n=e.slice(0,t),r=e.slice(t);break}}return F(n.trim(),r.trim(),t)}function x(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return L(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function S(e,t,n,r=null){let i;for(let a=t+1;a<e.length;a++)if(i=e.charCodeAt(a),i===92)a+=1;else{if(i===n)return a;if(i===59&&(e.charCodeAt(a+1)===10||e.charCodeAt(a+1)===13&&e.charCodeAt(a+2)===10))throw new v(`Unterminated string: ${e.slice(t,a+1)+String.fromCharCode(n)}`,r?[r,t,a+1]:null);if(i===10||i===13&&e.charCodeAt(a+1)===10)throw new v(`Unterminated string: ${e.slice(t,a)+String.fromCharCode(n)}`,r?[r,t,a+1]:null)}return t}function C(e){if(arguments.length===0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n===1&&o===45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i===0){a+=`�`;continue}if(i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}function w(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>{if(e.length<=2)return e[1];let t=Number.parseInt(e.slice(1).trim(),16);return t===0||t>1114111||t>=55296&&t<=57343?`�`:String.fromCodePoint(t)})}var T=new Map([[`--font`,[`--font-weight`,`--font-size`]],[`--inset`,[`--inset-shadow`,`--inset-ring`]],[`--text`,[`--text-color`,`--text-decoration-color`,`--text-decoration-thickness`,`--text-indent`,`--text-shadow`,`--text-underline-offset`]],[`--grid-column`,[`--grid-column-start`,`--grid-column-end`]],[`--grid-row`,[`--grid-row-start`,`--grid-row-end`]]]);function E(e,t){return(T.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var D=class{constructor(e=new Map,t=new Set([])){this.values=e,this.keyframes=t}values;keyframes;prefix=null;get size(){return this.values.size}add(e,t,n=0,r){if(e.endsWith(`-*`)){if(t!==`initial`)throw Error(`Invalid theme value \`${t}\` for namespace \`${e}\``);e===`--*`?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(n&4){let t=this.values.get(e);if(t&&!(t.options&4))return}t===`initial`?this.values.delete(e):this.values.set(e,{value:t,options:n,src:r})}keysInNamespaces(e){let t=[];for(let n of e){let e=`${n}-`;for(let r of this.values.keys())r.startsWith(e)&&r.indexOf(`--`,2)===-1&&(E(r,n)||t.push(r.slice(e.length)))}return t}get(e){for(let t of e){let e=this.values.get(t);if(e)return e.value}return null}hasDefault(e){return(this.getOptions(e)&4)==4}getOptions(e){return e=w(this.#e(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#e(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,t){let n=T.get(e)??[];e:for(let r of this.values.keys())if(r.startsWith(e)){if(t!==0&&(this.getOptions(r)&t)!==t)continue;for(let e of n)if(r.startsWith(e))continue e;this.values.delete(r)}}#t(e,t){for(let n of t){let t=e===null?n:`${n}-${e}`;if(!this.values.has(t)){if(e!==null&&e.includes(`.`)){if(t=`${n}-${e.replaceAll(`.`,`_`)}`,!this.values.has(t))continue}else continue}if(!E(t,n))return t}return null}#n(e){let t=this.values.get(e);if(!t)return null;let n=null;return t.options&2&&(n=t.value),`var(${C(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=w(this.#e(e)),n=this.values.get(t);if(!n)return!1;let r=n.options&16;return n.options|=16,!r}resolve(e,t,n=0){let r=this.#t(e,t);if(!r)return null;let i=this.values.get(r);return(n|i.options)&1?i.value:this.#n(r)}resolveValue(e,t){let n=this.#t(e,t);return n?this.values.get(n).value:null}resolveWith(e,t,n=[]){let r=this.#t(e,t);if(!r)return null;let i={};for(let e of n){let t=`${r}${e}`,n=this.values.get(t);n&&(i[e]=n.options&1?n.value:this.#n(t))}let a=this.values.get(r);return a.options&1?[a.value,i]:[this.#n(r),i]}namespace(e){let t=new Map,n=`${e}-`;for(let[r,i]of this.values)r===e?t.set(null,i.value):r.startsWith(`${n}-`)?t.set(r.slice(e.length),i.value):r.startsWith(n)&&t.set(r.slice(n.length),i.value);return t}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},O=class extends Map{constructor(e){super(),this.factory=e}factory;get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e,this),this.set(e,t)),t}},ee=new Uint8Array(256);function k(e,t){let n=0,r=[],i=0,a=e.length,o=t.charCodeAt(0);for(let t=0;t<a;t++){let s=e.charCodeAt(t);if(n===0&&s===o){r.push(e.slice(i,t)),i=t+1;continue}switch(s){case 92:t+=1;break;case 39:case 34:for(;++t<a;){let n=e.charCodeAt(t);if(n===92){t+=1;continue}if(n===s)break}break;case 40:ee[n]=41,n++;break;case 91:ee[n]=93,n++;break;case 123:ee[n]=125,n++;break;case 93:case 125:case 41:n>0&&s===ee[n-1]&&n--}}return r.push(e.slice(i)),r}function te(e){return{kind:`word`,value:e}}function ne(e,t){return{kind:`function`,value:e,nodes:t}}function re(e){return{kind:`separator`,value:e}}function A(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+A(n.nodes)+`)`}return t}var ie=92,ae=41,oe=58,se=44,ce=34,le=61,ue=62,de=60,fe=10,pe=40,me=39,he=47,ge=32,_e=9;function j(e){e=e.replaceAll(`\r
4
4
  `,`
5
- `);let t=[],n=[],r=null,i=``,a;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case re:i+=e[o]+e[o+1],o++;break;case me:{if(i.length>0){let e=ee(i);r?r.nodes.push(e):t.push(e),i=``}let n=ee(e[o]);r?r.nodes.push(n):t.push(n);break}case ae:case oe:case ce:case le:case ue:case de:case he:case ge:{if(i.length>0){let e=ee(i);r?r.nodes.push(e):t.push(e),i=``}let n=o,s=o+1;for(;s<e.length&&(a=e.charCodeAt(s),a===ae||a===oe||a===ce||a===le||a===ue||a===de||a===he||a===ge);s++);o=s-1;let c=ne(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case pe:case se:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===re)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case fe:{let e=te(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case ie:{let e=n.pop();if(i.length>0){let t=ee(i);e?.nodes.push(t),i=``}r=n.length>0?n[n.length-1]:null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&t.push(ee(i)),t}var _e=(e=>(e[e.Continue=0]=`Continue`,e[e.Skip=1]=`Skip`,e[e.Stop=2]=`Stop`,e[e.Replace=3]=`Replace`,e[e.ReplaceSkip=4]=`ReplaceSkip`,e[e.ReplaceStop=5]=`ReplaceStop`,e))(_e||{}),N={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function P(e,t){typeof t==`function`?ve(e,t):ve(e,t.enter,t.exit)}function ve(e,t=()=>N.Continue,n=()=>N.Continue){let r={value:[e,0,null],prev:null},i={parent:null,depth:0,index:0,siblings:e,path(){let e=[],t=r;for(;t;){let n=t.value[2];n&&e.push(n),t=t.prev}return e.reverse(),e}};for(;r!==null;){let e=r.value,a=e[0],o=e[1],s=e[2];if(o>=a.length){r=r.prev,--i.depth;continue}if(i.parent=s,i.siblings=a,o>=0){i.index=o;let n=a[o],s=t(n,i)??N.Continue;switch(s.kind){case 0:n.nodes&&n.nodes.length>0&&(i.depth+=1,r={value:[n.nodes,0,n],prev:r}),e[1]=~o;continue;case 2:return;case 1:e[1]=~o;continue;case 3:a.splice(o,1,...s.nodes);continue;case 5:a.splice(o,1,...s.nodes);return;case 4:a.splice(o,1,...s.nodes),e[1]+=s.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${_e[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o;i.index=c;let l=a[c],u=n(l,i)??N.Continue;switch(u.kind){case 0:e[1]=c+1;continue;case 2:return;case 3:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;case 5:a.splice(c,1,...u.nodes);return;case 4:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${_e[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}var ye=new O(e=>{let t=[];return P(M(e),e=>{if(e.kind===`function`&&e.value===`var`)return P(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),N.Skip}),t});function be(e){return ye.get(e)}var xe=64,Se=124;function F(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function I(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function L(e,t=[]){return e.charCodeAt(0)===xe?b(e,t):F(e,t)}function R(e,t,n=!1){return{kind:`declaration`,property:e,value:t,important:n}}function Ce(e){return{kind:`comment`,value:e}}function we(e,t){return{kind:`context`,context:e,nodes:t}}function z(e){return{kind:`at-root`,nodes:e}}function Te(e){switch(e.kind){case`rule`:return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(Te),src:e.src,dst:e.dst};case`at-rule`:return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(Te),src:e.src,dst:e.dst};case`at-root`:return{kind:e.kind,nodes:e.nodes.map(Te),src:e.src,dst:e.dst};case`context`:return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(Te),src:e.src,dst:e.dst};case`declaration`:return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case`comment`:return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw Error(`Unknown node kind: ${e.kind}`)}}function Ee(e){return{depth:e.depth,index:e.index,siblings:e.siblings,get context(){let t={};for(let n of e.path())n.kind===`context`&&Object.assign(t,n.context);return Object.defineProperty(this,"context",{value:t}),t},get parent(){let e=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:e}),e},path(){return e.path().filter(e=>e.kind!==`context`)}}}function De(e,t,n=3){let r=[],i=new Set,a=new O(()=>new Set),o=new O(()=>new Set),s=new Set,c=new Set,l=[],u=[],d=new O(()=>new Set);function f(e,p,m={},h=0){if(e.kind===`declaration`){if(e.property===`--tw-sort`||e.value===void 0||e.value===null)return;if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`){if(e.value===`initial`){e.value=void 0;return}m.keyframes||a.get(p).add(e)}if(e.value.includes(`var(`)){if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`)for(let t of be(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value)}if(e.property===`animation`)for(let t of Pe(e.value))c.add(t);n&2&&!m.supportsColorMix&&!m.keyframes&&e.value.includes(`color-mix(`)&&o.get(p).add(e),p.push(e)}else if(e.kind===`rule`){let t=[];for(let n of e.nodes)f(n,t,m,h+1);t.length>0&&p.push({...e,nodes:t})}else if(e.kind===`at-rule`&&e.name===`@property`&&h===0){if(i.has(e.params))return;if(n&1){let t=e.params,n=null,r=!1;for(let t of e.nodes)t.kind===`declaration`&&(t.property===`initial-value`?n=t.value:t.property===`inherits`&&(r=t.value===`true`));let i=R(t,n??`initial`);i.src=e.src,r?l.push(i):u.push(i)}i.add(e.params);let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);p.push(t)}else if(e.kind===`at-rule`){e.name===`@keyframes`?m={...m,keyframes:!0}:e.name===`@supports`&&e.params.includes(`color-mix(`)&&(m={...m,supportsColorMix:!0});let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);e.name===`@keyframes`&&m.theme&&s.add(t),(t.nodes.length>0||t.name===`@layer`||t.name===`@charset`||t.name===`@custom-media`||t.name===`@namespace`||t.name===`@import`||t.name===`@apply`)&&p.push(t)}else if(e.kind===`at-root`)for(let t of e.nodes){let e=[];f(t,e,m,0);for(let t of e)r.push(t)}else if(e.kind===`context`){if(e.context.reference)return;for(let t of e.nodes)f(t,p,{...m,...e.context},h)}else e.kind===`comment`&&p.push(e)}let p=[];for(let t of e)f(t,p,{},0);e:for(let[e,n]of a)for(let r of n){if(Ne(r.property,t.theme,d)){if(r.property.startsWith(t.theme.prefixKey(`--animate-`)))for(let e of Pe(r.value))c.add(e);continue}let n=e.indexOf(r);if(e.splice(n,1),e.length===0){let t=Me(p,t=>t.kind===`rule`&&t.nodes===e);if(!t||t.length===0)continue e;t.unshift({kind:`at-root`,nodes:p});do{let e=t.pop();if(!e)break;let n=t[t.length-1];if(!n||n.kind!==`at-root`&&n.kind!==`at-rule`)break;let r=n.nodes.indexOf(e);if(r===-1)break;n.nodes.splice(r,1)}while(1);continue e}}for(let e of s)if(!c.has(e.params)){let t=r.indexOf(e);r.splice(t,1)}if(p=p.concat(r),n&2)for(let[e,n]of o)for(let r of n){let n=e.indexOf(r);if(n===-1||r.value==null)continue;let i=M(r.value),a=!1;if(P(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(P(e.nodes,e=>{if(e.kind==`word`&&e.value.toLowerCase()===`currentcolor`){r=!0,a=!0;return}let i=e,o=null,s=new Set;do{if(i.kind!==`function`||i.value!==`var`)return;let e=i.nodes[0];if(!e||e.kind!==`word`)return;let c=e.value;if(s.has(c)){n=!0;return}if(s.add(c),a=!0,o=t.theme.resolveValue(null,[e.value]),!o){n=!0;return}if(o.toLowerCase()===`currentcolor`){r=!0;return}i=o.startsWith(`var(`)?M(o)[0]:null}while(i);return N.Replace({kind:`word`,value:o})}),n||r){let t=e.nodes.findIndex(e=>e.kind===`separator`&&e.value.trim().includes(`,`));if(t===-1)return;let n=e.nodes.length>t?e.nodes[t+1]:null;return n?N.Replace(n):void 0}if(a){let t=e.nodes[2];t.kind===`word`&&(t.value===`oklab`||t.value===`oklch`||t.value===`lab`||t.value===`lch`)&&(t.value=`srgb`)}}),!a)continue;let o={...r,value:j(i)},s=L(`@supports (color: color-mix(in lab, red, red))`,[r]);s.src=r.src,e.splice(n,1,o,s)}if(n&1){let e=[];if(l.length>0){let t=L(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=L(`*, ::before, ::after, ::backdrop`,u);t.src=u[0].src,e.push(t)}if(e.length>0){let t=p.findIndex(e=>e.kind!==`comment`&&(e.kind!==`at-rule`||e.name!==`@charset`&&e.name!==`@import`)),n=I(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=L(`@layer properties`,[I(`@supports`,`((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))`,e)]);r.src=e[0].src,r.nodes[0].src=e[0].src,p.push(r)}}return Oe(p)}function Oe(e){let t=new O(g),n=[],r=[],i=null,a=new Set,o=new Set,u=[],d=new Set;P(e,{enter(e){switch(e.kind){case`rule`:if(i=null,n.length===0){if(e.selector.includes(`&`)){let t=g(e.selector),r=!1;P(t,e=>{e.kind===`selector`&&e.value===`&`&&(r=!0,e.value=`:scope`)}),r?n.push([l(t),e.src,e.dst]):n.push([e.selector,e.src,e.dst])}else n.push([e.selector,e.src,e.dst])}else{if(e.selector===`&`){d.add(e);return}let r=n[n.length-1][0],i=A(e.selector,`,`).map(e=>{if(!e.includes(`&`)){let n=t.get(r);return`${n.length===1&&n[0].kind===`list`?`:is(${r})`:r} ${e}`}{let n=g(e),i=!1;if(P(n,{enter(e,n){if(e.kind!==`selector`||e.value!==`&`||(i=!0,e.value=`:is(${r})`,n.parent===null))return;let a=t.get(r);if(a.length!==1||a[0].kind!==`list`){if(n.parent.kind===`complex`){if(n.index===0){e.value=r;return}if(n.index===n.siblings.length-1){if(a[0].kind===`complex`)return;e.value=r;return}if(a[0].kind===`complex`)return;e.value=r;return}if(n.parent.kind===`compound`){if(a[0].kind===`complex`){let e=n.path(),t=e[e.length-2];if(t&&t.kind===`complex`&&t.nodes[0]!==n.parent)return}if(n.siblings.slice(n.index+1).some(e=>s(e)||c(e)))return;if(n.index===0){e.value=r;return}if(n.index===n.siblings.length-1){if(a[0].kind===`complex`||s(a[0])||c(a[0]))return;e.value=r;return}if(a[0].kind===`complex`||s(a[0])||c(a[0]))return;e.value=r;return}if(n.parent.kind===`function`){e.value=r;return}}},exit(e,t){if(t.index===0&&t.siblings.length>1&&t.parent?.kind===`compound`&&s(e)){let e=t.siblings[1];return e.kind===`selector`&&e.value.charCodeAt(0)===Se?void 0:N.ReplaceSkip([])}}}),i)return l(n);let a=t.get(r);return`${a.length===1&&a[0].kind===`list`?`:is(${r})`:r} ${e}`}}).join(`, `);n.push([i,e.src,e.dst])}if(e.nodes.some(e=>e.kind===`declaration`)){for(let t of e.nodes)f(t);return N.Skip}break;case`at-rule`:if(i=null,e.nodes.length===0&&!Ae.has(e.name))return f(e),d.add(e),N.Skip;if(ke.has(e.name))r.push([e.name,e.params,e.src,e.dst]);else return f(e),d.add(e),N.Skip;break;case`declaration`:case`comment`:f(e)}},exit(e){if(!d.delete(e))switch(e.kind){case`rule`:i=null,n.pop();break;case`at-rule`:i=null,r.pop()}}});for(let e of o){let t=new Set;for(let n=e.length-1;n>=0;--n){let r=e[n];if(r.kind!==`declaration`)continue;let i=`${r.property}\0${r.value}\0${r.important}`;t.has(i)?e.splice(n,1):t.add(i)}}return u;function f(e){if(i){e.kind===`declaration`&&(a.has(e.property)?o.add(i):a.add(e.property)),i.push(e);return}{if(n.length===0&&r.length===0){let t=u,n=t[t.length-1];if(n&&n.kind===`at-rule`&&e.kind===`at-rule`&&n.nodes.length===0&&e.nodes.length===0&&n.name===e.name&&n.params===e.params)return;u.push(e);return}i=[e],a.clear(),e.kind===`declaration`&&a.add(e.property);let t=null,s=u,c=0;{let e=s[s.length-1];if(e&&e.kind===`at-rule`)for(let t=0;t<r.length;t++){let n=r[t];if(!e||e.kind!==`at-rule`||e.name!==n[0]||e.params!==n[1])break;c++,s=e.nodes,e=e.nodes[e.nodes.length-1]}}if(n.length>0){let[e,a,l]=n[n.length-1];if(r.length-c<=0){let t=s[s.length-1];if(t&&t.kind===`rule`&&t.selector===e){t.nodes.push(...i),i=t.nodes,o.add(i);return}}t=L(e,i),(a||l)&&Object.assign(t,{src:a,dst:l})}for(let e=r.length-1;e>=c;--e){let[n,a,o,s]=r[e];t=I(n,a,t?[t]:i),(o||s)&&Object.assign(t,{src:o,dst:s})}t?s.push(t):s.push(...i)}}}var ke=new Set([`@container`,`@layer`,`@media`,`@page`,`@starting-style`,`@supports`,`@view-transition`]),Ae=new Set([`@container`,`@media`,`@page`,`@starting-style`,`@supports`,`@view-transition`]);function je(e,t){let n=0,r={file:null,code:``};function i(e,a=0){let o=``,s=` `.repeat(a);if(e.kind===`declaration`){if(o+=`${s}${e.property}: ${e.value}${e.important?` !important`:``};
5
+ `);let t=[],n=[],r=null,i=``,a;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case ie:i+=e[o]+e[o+1],o++;break;case he:{if(i.length>0){let e=te(i);r?r.nodes.push(e):t.push(e),i=``}let n=te(e[o]);r?r.nodes.push(n):t.push(n);break}case oe:case se:case le:case ue:case de:case fe:case ge:case _e:{if(i.length>0){let e=te(i);r?r.nodes.push(e):t.push(e),i=``}let n=o,s=o+1;for(;s<e.length&&(a=e.charCodeAt(s),a===oe||a===se||a===le||a===ue||a===de||a===fe||a===ge||a===_e);s++);o=s-1;let c=re(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case me:case ce:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===ie)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case pe:{let e=ne(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case ae:{let e=n.pop();if(i.length>0){let t=te(i);e?.nodes.push(t),i=``}r=n.length>0?n[n.length-1]:null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&t.push(te(i)),t}var ve=(e=>(e[e.Continue=0]=`Continue`,e[e.Skip=1]=`Skip`,e[e.Stop=2]=`Stop`,e[e.Replace=3]=`Replace`,e[e.ReplaceSkip=4]=`ReplaceSkip`,e[e.ReplaceStop=5]=`ReplaceStop`,e))(ve||{}),M={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function N(e,t){typeof t==`function`?ye(e,t):ye(e,t.enter,t.exit)}function ye(e,t=()=>M.Continue,n=()=>M.Continue){let r={value:[e,0,null],prev:null},i={parent:null,depth:0,index:0,siblings:e,path(){let e=[],t=r;for(;t;){let n=t.value[2];n&&e.push(n),t=t.prev}return e.reverse(),e}};for(;r!==null;){let e=r.value,a=e[0],o=e[1],s=e[2];if(o>=a.length){r=r.prev,--i.depth;continue}if(i.parent=s,i.siblings=a,o>=0){i.index=o;let n=a[o],s=t(n,i)??M.Continue;switch(s.kind){case 0:n.nodes&&n.nodes.length>0&&(i.depth+=1,r={value:[n.nodes,0,n],prev:r}),e[1]=~o;continue;case 2:return;case 1:e[1]=~o;continue;case 3:a.splice(o,1,...s.nodes);continue;case 5:a.splice(o,1,...s.nodes);return;case 4:a.splice(o,1,...s.nodes),e[1]+=s.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${ve[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o;i.index=c;let l=a[c],u=n(l,i)??M.Continue;switch(u.kind){case 0:e[1]=c+1;continue;case 2:return;case 3:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;case 5:a.splice(c,1,...u.nodes);return;case 4:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${ve[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}var be=new O(e=>{let t=[];return N(j(e),e=>{if(e.kind===`function`&&e.value===`var`)return N(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),M.Skip}),t});function xe(e){return be.get(e)}var Se=64,Ce=124;function P(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function F(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function I(e,t=[]){return e.charCodeAt(0)===Se?b(e,t):P(e,t)}function L(e,t,n=!1){return{kind:`declaration`,property:e,value:t,important:n}}function we(e){return{kind:`comment`,value:e}}function Te(e,t){return{kind:`context`,context:e,nodes:t}}function R(e){return{kind:`at-root`,nodes:e}}function Ee(e){switch(e.kind){case`rule`:return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(Ee),src:e.src,dst:e.dst};case`at-rule`:return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(Ee),src:e.src,dst:e.dst};case`at-root`:return{kind:e.kind,nodes:e.nodes.map(Ee),src:e.src,dst:e.dst};case`context`:return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(Ee),src:e.src,dst:e.dst};case`declaration`:return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case`comment`:return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw Error(`Unknown node kind: ${e.kind}`)}}function De(e){return{depth:e.depth,index:e.index,siblings:e.siblings,get context(){let t={};for(let n of e.path())n.kind===`context`&&Object.assign(t,n.context);return Object.defineProperty(this,"context",{value:t}),t},get parent(){let e=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:e}),e},path(){return e.path().filter(e=>e.kind!==`context`)}}}function Oe(e,t,n=3){let r=[],i=new Set,a=new O(()=>new Set),o=new O(()=>new Set),s=new Set,c=new Set,l=[],u=[],d=new O(()=>new Set);function f(e,p,m={},h=0){if(e.kind===`declaration`){if(e.property===`--tw-sort`||e.value===void 0||e.value===null)return;if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`){if(e.value===`initial`){e.value=void 0;return}m.keyframes||a.get(p).add(e)}if(e.value.includes(`var(`)){if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`)for(let t of xe(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value)}if(e.property===`animation`)for(let t of Fe(e.value))c.add(t);n&2&&!m.supportsColorMix&&!m.keyframes&&e.value.includes(`color-mix(`)&&o.get(p).add(e),p.push(e)}else if(e.kind===`rule`){let t=[];for(let n of e.nodes)f(n,t,m,h+1);t.length>0&&p.push({...e,nodes:t})}else if(e.kind===`at-rule`&&e.name===`@property`&&h===0){if(i.has(e.params))return;if(n&1){let t=e.params,n=null,r=!1;for(let t of e.nodes)t.kind===`declaration`&&(t.property===`initial-value`?n=t.value:t.property===`inherits`&&(r=t.value===`true`));let i=L(t,n??`initial`);i.src=e.src,r?l.push(i):u.push(i)}i.add(e.params);let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);p.push(t)}else if(e.kind===`at-rule`){e.name===`@keyframes`?m={...m,keyframes:!0}:e.name===`@supports`&&e.params.includes(`color-mix(`)&&(m={...m,supportsColorMix:!0});let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);e.name===`@keyframes`&&m.theme&&s.add(t),(t.nodes.length>0||t.name===`@layer`||t.name===`@charset`||t.name===`@custom-media`||t.name===`@namespace`||t.name===`@import`||t.name===`@apply`)&&p.push(t)}else if(e.kind===`at-root`)for(let t of e.nodes){let e=[];f(t,e,m,0);for(let t of e)r.push(t)}else if(e.kind===`context`){if(e.context.reference)return;for(let t of e.nodes)f(t,p,{...m,...e.context},h)}else e.kind===`comment`&&p.push(e)}let p=[];for(let t of e)f(t,p,{},0);e:for(let[e,n]of a)for(let r of n){if(Pe(r.property,t.theme,d)){if(r.property.startsWith(t.theme.prefixKey(`--animate-`)))for(let e of Fe(r.value))c.add(e);continue}let n=e.indexOf(r);if(e.splice(n,1),e.length===0){let t=Ne(p,t=>t.kind===`rule`&&t.nodes===e);if(!t||t.length===0)continue e;t.unshift({kind:`at-root`,nodes:p});do{let e=t.pop();if(!e)break;let n=t[t.length-1];if(!n||n.kind!==`at-root`&&n.kind!==`at-rule`)break;let r=n.nodes.indexOf(e);if(r===-1)break;n.nodes.splice(r,1)}while(1);continue e}}for(let e of s)if(!c.has(e.params)){let t=r.indexOf(e);r.splice(t,1)}if(p=p.concat(r),n&2)for(let[e,n]of o)for(let r of n){let n=e.indexOf(r);if(n===-1||r.value==null)continue;let i=j(r.value),a=!1;if(N(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(N(e.nodes,e=>{if(e.kind==`word`&&e.value.toLowerCase()===`currentcolor`){r=!0,a=!0;return}let i=e,o=null,s=new Set;do{if(i.kind!==`function`||i.value!==`var`)return;let e=i.nodes[0];if(!e||e.kind!==`word`)return;let c=e.value;if(s.has(c)){n=!0;return}if(s.add(c),a=!0,o=t.theme.resolveValue(null,[e.value]),!o){n=!0;return}if(o.toLowerCase()===`currentcolor`){r=!0;return}i=o.startsWith(`var(`)?j(o)[0]:null}while(i);return M.Replace({kind:`word`,value:o})}),n||r){let t=e.nodes.findIndex(e=>e.kind===`separator`&&e.value.trim().includes(`,`));if(t===-1)return;let n=e.nodes.length>t?e.nodes[t+1]:null;return n?M.Replace(n):void 0}if(a){let t=e.nodes[2];t.kind===`word`&&(t.value===`oklab`||t.value===`oklch`||t.value===`lab`||t.value===`lch`)&&(t.value=`srgb`)}}),!a)continue;let o={...r,value:A(i)},s=I(`@supports (color: color-mix(in lab, red, red))`,[r]);s.src=r.src,e.splice(n,1,o,s)}if(n&1){let e=[];if(l.length>0){let t=I(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=I(`*, ::before, ::after, ::backdrop`,u);t.src=u[0].src,e.push(t)}if(e.length>0){let t=p.findIndex(e=>e.kind!==`comment`&&(e.kind!==`at-rule`||e.name!==`@charset`&&e.name!==`@import`)),n=F(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=I(`@layer properties`,[F(`@supports`,`((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))`,e)]);r.src=e[0].src,r.nodes[0].src=e[0].src,p.push(r)}}return ke(p)}function ke(e){let t=new O(g),n=[],r=[],i=null,a=new Set,o=new Set,u=[],d=new Set;N(e,{enter(e){switch(e.kind){case`rule`:if(i=null,n.length===0){if(e.selector.includes(`&`)){let t=g(e.selector),r=!1;N(t,e=>{e.kind===`selector`&&e.value===`&`&&(r=!0,e.value=`:scope`)}),r?n.push([l(t),e.src,e.dst]):n.push([e.selector,e.src,e.dst])}else n.push([e.selector,e.src,e.dst])}else{if(e.selector===`&`){d.add(e);return}let r=n[n.length-1][0],i=k(e.selector,`,`).map(e=>{if(!e.includes(`&`)){let n=t.get(r);return`${n.length===1&&n[0].kind===`list`?`:is(${r})`:r} ${e}`}{let n=g(e),i=!1;if(N(n,{enter(e,n){if(e.kind!==`selector`||e.value!==`&`||(i=!0,e.value=`:is(${r})`,n.parent===null))return;let a=t.get(r);if(a.length!==1||a[0].kind!==`list`){if(n.parent.kind===`complex`){if(n.index===0){e.value=r;return}if(n.index===n.siblings.length-1){if(a[0].kind===`complex`)return;e.value=r;return}if(a[0].kind===`complex`)return;e.value=r;return}if(n.parent.kind===`compound`){if(a[0].kind===`complex`){let e=n.path(),t=e[e.length-2];if(t&&t.kind===`complex`&&t.nodes[0]!==n.parent)return}if(n.siblings.slice(n.index+1).some(e=>s(e)||c(e)))return;if(n.index===0){e.value=r;return}if(n.index===n.siblings.length-1){if(a[0].kind===`complex`||s(a[0])||c(a[0]))return;e.value=r;return}if(a[0].kind===`complex`||s(a[0])||c(a[0]))return;e.value=r;return}if(n.parent.kind===`function`){e.value=r;return}}},exit(e,t){if(t.index===0&&t.siblings.length>1&&t.parent?.kind===`compound`&&s(e)){let e=t.siblings[1];return e.kind===`selector`&&e.value.charCodeAt(0)===Ce?void 0:M.ReplaceSkip([])}}}),i)return l(n);let a=t.get(r);return`${a.length===1&&a[0].kind===`list`?`:is(${r})`:r} ${e}`}}).join(`, `);n.push([i,e.src,e.dst])}if(e.nodes.some(e=>e.kind===`declaration`)){for(let t of e.nodes)f(t);return M.Skip}break;case`at-rule`:if(i=null,e.nodes.length===0&&!je.has(e.name))return f(e),d.add(e),M.Skip;if(Ae.has(e.name))r.push([e.name,e.params,e.src,e.dst]);else return f(e),d.add(e),M.Skip;break;case`declaration`:case`comment`:f(e)}},exit(e){if(!d.delete(e))switch(e.kind){case`rule`:i=null,n.pop();break;case`at-rule`:i=null,r.pop()}}});for(let e of o){let t=new Set;for(let n=e.length-1;n>=0;--n){let r=e[n];if(r.kind!==`declaration`)continue;let i=`${r.property}\0${r.value}\0${r.important}`;t.has(i)?e.splice(n,1):t.add(i)}}return u;function f(e){if(i){e.kind===`declaration`&&(a.has(e.property)?o.add(i):a.add(e.property)),i.push(e);return}{if(n.length===0&&r.length===0){let t=u,n=t[t.length-1];if(n&&n.kind===`at-rule`&&e.kind===`at-rule`&&n.nodes.length===0&&e.nodes.length===0&&n.name===e.name&&n.params===e.params)return;u.push(e);return}i=[e],a.clear(),e.kind===`declaration`&&a.add(e.property);let t=null,s=u,c=0;{let e=s[s.length-1];if(e&&e.kind===`at-rule`)for(let t=0;t<r.length;t++){let n=r[t];if(!e||e.kind!==`at-rule`||e.name!==n[0]||e.params!==n[1])break;c++,s=e.nodes,e=e.nodes[e.nodes.length-1]}}if(n.length>0){let[e,a,l]=n[n.length-1];if(r.length-c<=0){let t=s[s.length-1];if(t&&t.kind===`rule`&&t.selector===e){t.nodes.push(...i),i=t.nodes,o.add(i);return}}t=I(e,i),(a||l)&&Object.assign(t,{src:a,dst:l})}for(let e=r.length-1;e>=c;--e){let[n,a,o,s]=r[e];t=F(n,a,t?[t]:i),(o||s)&&Object.assign(t,{src:o,dst:s})}t?s.push(t):s.push(...i)}}}var Ae=new Set([`@container`,`@layer`,`@media`,`@page`,`@starting-style`,`@supports`,`@view-transition`]),je=new Set([`@container`,`@media`,`@page`,`@starting-style`,`@supports`,`@view-transition`]);function Me(e,t){let n=0,r={file:null,code:``};function i(e,a=0){let o=``,s=` `.repeat(a);if(e.kind===`declaration`){if(o+=`${s}${e.property}: ${e.value}${e.important?` !important`:``};
6
6
  `,t){n+=s.length;let t=n;n+=e.property.length,n+=2,n+=e.value?.length??0,e.important&&(n+=11);let i=n;n+=2,e.dst=[r,t,i]}}else if(e.kind===`rule`){if(o+=`${s}${e.selector} {
7
7
  `,t){n+=s.length;let t=n;n+=e.selector.length,n+=1,e.dst=[r,t,n],n+=2}for(let t of e.nodes)o+=i(t,a+1);o+=`${s}}
8
8
  `,t&&(n+=s.length,n+=2)}else if(e.kind===`at-rule`){if(e.nodes.length===0){let i=`${s}${e.name} ${e.params};
9
9
  `;if(t){n+=s.length;let t=n;n+=e.name.length,n+=1,n+=e.params.length;let i=n;n+=2,e.dst=[r,t,i]}return i}if(o+=`${s}${e.name}${e.params?` ${e.params} `:` `}{
10
10
  `,t){n+=s.length;let t=n;n+=e.name.length,e.params&&(n+=1,n+=e.params.length),n+=1,e.dst=[r,t,n],n+=2}for(let t of e.nodes)o+=i(t,a+1);o+=`${s}}
11
11
  `,t&&(n+=s.length,n+=2)}else if(e.kind===`comment`){if(o+=`${s}/*${e.value}*/
12
- `,t){n+=s.length;let t=n;n+=2+e.value.length+2,e.dst=[r,t,n],n+=1}}else if(e.kind===`context`||e.kind===`at-root`)return``;return o}let a=``;for(let t of e)a+=i(t,0);return r.code=a,a}function Me(e,t){let n=[];return P(e,(e,r)=>{if(t(e))return n=r.path(),n.push(e),N.Stop}),n}function Ne(e,t,n,r=new Set){if(r.has(e)||(r.add(e),t.getOptions(e)&24))return!0;{let i=n.get(e)??[];for(let e of i)if(Ne(e,t,n,r))return!0}return!1}function Pe(e){return e.split(/[\s,]+/)}var Fe=[`calc`,`min`,`max`,`clamp`,`mod`,`rem`,`sin`,`cos`,`tan`,`asin`,`acos`,`atan`,`atan2`,`pow`,`sqrt`,`hypot`,`log`,`exp`,`round`];function Ie(e){return e.indexOf(`(`)!==-1&&Fe.some(t=>e.includes(`${t}(`))}function Le(e){if(!Fe.some(t=>e.includes(t)))return e;let t=``,n=[],r=null,i=null;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=48&&o<=57||r!==null&&(o===37||o>=97&&o<=122||o>=65&&o<=90)?r=a:(i=r,r=null),o===40){t+=e[a];let r=a;for(let t=a-1;t>=0;t--){let n=e.charCodeAt(t);if(n>=48&&n<=57)r=t;else if(n>=97&&n<=122)r=t;else break}let i=e.slice(r,a);if(Fe.includes(i)){n.unshift(!0);continue}if(n[0]&&i===``){n.unshift(!0);continue}n.unshift(!1);continue}if(o===41)t+=e[a],n.shift();else if(o===44&&n[0]){t+=`, `;continue}else{if(o===32&&n[0]&&t.charCodeAt(t.length-1)===32)continue;if((o===43||o===42||o===47||o===45)&&n[0]){let n=t.trimEnd(),r=n.charCodeAt(n.length-1),o=n.charCodeAt(n.length-2),s=e.charCodeAt(a+1);if((r===101||r===69)&&o>=48&&o<=57){t+=e[a];continue}if(r===43||r===42||r===47||r===45){t+=e[a];continue}if(r===40||r===44){t+=e[a];continue}e.charCodeAt(a-1)===32?t+=`${e[a]} `:r>=48&&r<=57||s>=48&&s<=57||r===41||s===40||s===43||s===42||s===47||s===45||i!==null&&i===a-1?t+=` ${e[a]} `:t+=e[a]}else t+=e[a]}}return t}function Re(e){if(e.indexOf(`(`)===-1)return ze(e);let t=M(e);return Be(t),e=j(t),e=Le(e),e}function ze(e,t=!1){let n=``;for(let r=0;r<e.length;r++){let i=e[r];i===`\\`&&e[r+1]===`_`?(n+=`_`,r+=1):n+=i===`_`&&!t?` `:i}return n}function Be(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=ze(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=ze(t.value);for(let e=0;e<t.nodes.length;e++){if(e==0&&t.nodes[e].kind===`word`){t.nodes[e].value=ze(t.nodes[e].value,!0);continue}Be([t.nodes[e]])}break}t.value=ze(t.value),Be(t.nodes);break;case`separator`:case`word`:t.value=ze(t.value);break;default:Ve(t)}}function Ve(e){throw Error(`Unexpected value: ${e}`)}var He=new Uint8Array(256);function Ue(e){let t=0,n=e.length;for(let r=0;r<n;r++){let i=e.charCodeAt(r);switch(i){case 92:r+=1;break;case 39:case 34:for(;++r<n;){let t=e.charCodeAt(r);if(t===92){r+=1;continue}if(t===i)break}break;case 40:He[t]=41,t++;break;case 91:He[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===He[t-1]&&t--;break;case 59:if(t===0)return!1}}return!0}var B=58,We=45,Ge=97,Ke=122,qe=/^[a-zA-Z0-9_.%-]+$/;function*Je(e,t){let n=A(e,`:`);if(t.theme.prefix){if(n.length===1||n[0]!==t.theme.prefix)return null;n.shift()}let r=n.pop(),i=[];for(let e=n.length-1;e>=0;--e){let r=t.parseVariant(n[e]);if(r===null)return;i.push(r)}let a=!1;r[r.length-1]===`!`?(a=!0,r=r.slice(0,-1)):r[0]===`!`&&(a=!0,r=r.slice(1)),t.utilities.has(r,`static`)&&!r.includes(`[`)&&(yield{kind:`static`,root:r,variants:i,important:a,raw:e});let[o,s=null,c]=A(r,`/`);if(c)return;let l=s===null?null:Ye(s);if(s!==null&&l===null)return;if(o[0]===`[`){if(o[o.length-1]!==`]`)return;let t=o.charCodeAt(1);if(t!==We&&!(t>=Ge&&t<=Ke))return;o=o.slice(1,-1);let n=o.indexOf(`:`);if(n===-1||n===0||n===o.length-1)return;let r=o.slice(0,n),s=Re(o.slice(n+1));if(!Ue(s))return;yield{kind:`arbitrary`,property:r,value:s,modifier:l,variants:i,important:a,raw:e};return}let u;if(o[o.length-1]===`]`){let e=o.indexOf(`-[`);if(e===-1)return;let n=o.slice(0,e);if(!t.utilities.has(n,`functional`))return;u=[[n,o.slice(e+1)]]}else if(o[o.length-1]===`)`){let e=o.indexOf(`-(`);if(e===-1)return;let n=o.slice(0,e);if(!t.utilities.has(n,`functional`))return;let r=o.slice(e+2,-1),i=A(r,`:`),a=null;if(i.length===2&&(a=i[0],r=i[1]),r[0]!==`-`||r[1]!==`-`||!Ue(r))return;u=[[n,a===null?`[var(${r})]`:`[${a}:var(${r})]`]]}else u=Ze(o,e=>t.utilities.has(e,`functional`));for(let[t,n]of u){let r={kind:`functional`,root:t,modifier:l,value:null,variants:i,important:a,raw:e};if(n===null){yield r;continue}{let e=n.indexOf(`[`);if(e!==-1){if(n[n.length-1]!==`]`)return;let t=Re(n.slice(e+1,-1));if(!Ue(t))continue;let i=null;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n===B){i=t.slice(0,e),t=t.slice(e+1);break}if(!(n===We||n>=Ge&&n<=Ke))break}if(t.length===0||t.trim().length===0||i===``)continue;r.value={kind:`arbitrary`,dataType:i||null,value:t}}else{let e=s===null||r.modifier?.kind===`arbitrary`?null:`${n}/${s}`;if(!qe.test(n))continue;r.value={kind:`named`,value:n,fraction:e}}}yield r}}function Ye(e){if(e[0]===`[`&&e[e.length-1]===`]`){let t=Re(e.slice(1,-1));return!Ue(t)||t.length===0||t.trim().length===0?null:{kind:`arbitrary`,value:t}}return e[0]===`(`&&e[e.length-1]===`)`?(e=e.slice(1,-1),e[0]!==`-`||e[1]!==`-`||!Ue(e)?null:(e=`var(${e})`,{kind:`arbitrary`,value:Re(e)})):qe.test(e)?{kind:`named`,value:e}:null}function Xe(e,t){if(e[0]===`[`&&e[e.length-1]===`]`){if(e[1]===`@`&&e.includes(`&`))return null;let t=Re(e.slice(1,-1));if(!Ue(t)||t.length===0||t.trim().length===0)return null;let n=t[0]===`>`||t[0]===`+`||t[0]===`~`;return!n&&t[0]!==`@`&&!t.includes(`&`)&&(t=`&:is(${t})`),{kind:`arbitrary`,selector:t,relative:n}}{let[n,r=null,i]=A(e,`/`);if(i)return null;let a=Ze(n,e=>t.variants.has(e));for(let[e,n]of a)switch(t.variants.kind(e)){case`static`:return n!==null||r!==null?null:{kind:`static`,root:e};case`functional`:{let t=r===null?null:Ye(r);if(r!==null&&t===null)return null;if(n===null)return{kind:`functional`,root:e,modifier:t,value:null};if(n[n.length-1]===`]`){if(n[0]!==`[`)continue;let r=Re(n.slice(1,-1));return!Ue(r)||r.length===0||r.trim().length===0?null:{kind:`functional`,root:e,modifier:t,value:{kind:`arbitrary`,value:r}}}if(n[n.length-1]===`)`){if(n[0]!==`(`)continue;let r=Re(n.slice(1,-1));return!Ue(r)||r.length===0||r.trim().length===0||r[0]!==`-`||r[1]!==`-`?null:{kind:`functional`,root:e,modifier:t,value:{kind:`arbitrary`,value:`var(${r})`}}}if(!qe.test(n))continue;return{kind:`functional`,root:e,modifier:t,value:{kind:`named`,value:n}}}case`compound`:{if(n===null)return null;r&&(e===`not`||e===`has`||e===`in`)&&(n=`${n}/${r}`,r=null);let i=t.parseVariant(n);if(i===null||!t.variants.compoundsWith(e,i))return null;let a=r===null?null:Ye(r);return r!==null&&a===null?null:{kind:`compound`,root:e,modifier:a,variant:i}}}}return null}function*Ze(e,t){t(e)&&(yield[e,null]);let n=e.lastIndexOf(`-`);for(;n>0;){let r=e.slice(0,n);if(t(r)){let i=[r,e.slice(n+1)];if(i[1]===``||i[0]===`@`&&t(`@`)&&e[n]===`-`)break;yield i}n=e.lastIndexOf(`-`,n-1)}e[0]===`@`&&t(`@`)&&(yield[`@`,e.slice(1)])}function Qe(e,t){let n=[];for(let e of t.variants)n.unshift(et(e));e.theme.prefix&&n.unshift(e.theme.prefix);let r=``;if(t.kind===`static`&&(r+=t.root),t.kind===`functional`&&(r+=t.root,t.value)){if(t.value.kind===`arbitrary`){if(t.value!==null){let e=st(t.value.value),n=e?t.value.value.slice(4,-1):t.value.value,[i,a]=e?[`(`,`)`]:[`[`,`]`];t.value.dataType?r+=`-${i}${t.value.dataType}:${nt(n)}${a}`:r+=`-${i}${nt(n)}${a}`}}else t.value.kind===`named`&&(r+=`-${t.value.value}`)}return t.kind===`arbitrary`&&(r+=`[${t.property}:${nt(t.value)}]`),(t.kind===`arbitrary`||t.kind===`functional`)&&(r+=$e(t.modifier)),t.important&&(r+=`!`),n.push(r),n.join(`:`)}function $e(e){if(e===null)return``;let t=st(e.value),n=t?e.value.slice(4,-1):e.value,[r,i]=t?[`(`,`)`]:[`[`,`]`];return e.kind===`arbitrary`?`/${r}${nt(n)}${i}`:e.kind===`named`?`/${e.value}`:``}function et(e){if(e.kind===`static`)return e.root;if(e.kind===`arbitrary`)return`[${nt(it(e.selector))}]`;let t=``;if(e.kind===`functional`){t+=e.root;let n=e.root!==`@`;if(e.value){if(e.value.kind===`arbitrary`){let r=st(e.value.value),i=r?e.value.value.slice(4,-1):e.value.value,[a,o]=r?[`(`,`)`]:[`[`,`]`];t+=`${n?`-`:``}${a}${nt(i)}${o}`}else e.value.kind===`named`&&(t+=`${n?`-`:``}${e.value.value}`)}}return e.kind===`compound`&&(t+=e.root,t+=`-`,t+=et(e.variant)),(e.kind===`functional`||e.kind===`compound`)&&(t+=$e(e.modifier)),t}var tt=new O(e=>{let t=M(e),n=new Set,r=new Set([`~`,`>`,`+`,`-`,`*`,`/`]);return P(t,(e,t)=>{if(e.kind===`word`&&r.has(e.value)){let e=t.index;if(e===-1)return;let i=t.siblings[e-1];if(i?.kind!==`separator`||i.value!==` `)return;let a=t.siblings[e+1];if(a?.kind!==`separator`||a.value!==` `)return;let o=t.siblings[e-2];if(o&&r.has(o.value))return;let s=t.siblings[e+2];if(s&&r.has(s.value))return;n.add(i),n.add(a)}else if(e.kind===`separator`&&e.value.length>0&&e.value.trim()===``)(t.siblings[0]===e||t.siblings[t.siblings.length-1]===e)&&n.add(e);else if(e.kind===`separator`&&e.value.trim()===`,`)e.value=`,`;else if(e.kind===`function`&&e.value.startsWith(`--`)){let n=t.index;if(n<=0)return;let i=t.siblings[n-1];if(i?.kind===`separator`&&i.value===`,`)return;let a=t.siblings[n-2];return a&&!r.has(a.value)?void 0:N.ReplaceSkip({kind:`function`,value:``,nodes:[e]})}}),n.size>0&&P(t,e=>{if(n.has(e))return n.delete(e),N.ReplaceSkip([])}),at(t),j(t)});function nt(e){return tt.get(e)}var rt=new O(e=>{let t=M(e);return t.length===3&&t[0].kind===`word`&&t[0].value===`&`&&t[1].kind===`separator`&&t[1].value===`:`&&t[2].kind===`function`&&t[2].value===`is`?j(t[2].nodes):e});function it(e){return rt.get(e)}function at(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=lt(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=lt(t.value);for(let e=0;e<t.nodes.length;e++)at([t.nodes[e]]);break}t.value=lt(t.value),at(t.nodes);break;case`separator`:t.value=lt(t.value);break;case`word`:(t.value[0]!==`-`||t.value[1]!==`-`)&&(t.value=lt(t.value));break;default:ct(t)}}var ot=new O(e=>{let t=M(e);return t.length===1&&t[0].kind===`function`&&t[0].value===`var`});function st(e){return ot.get(e)}function ct(e){throw Error(`Unexpected value: ${e}`)}function lt(e){return e.replaceAll(`_`,String.raw`\_`).replaceAll(` `,`_`)}function ut(e,t,n){if(e===t)return 0;let r=e.indexOf(`(`),i=t.indexOf(`(`),a=r===-1?e.replace(/[\d.]+/g,``):e.slice(0,r),o=i===-1?t.replace(/[\d.]+/g,``):t.slice(0,i),s=(a===o?0:a<o?-1:1)||(n===`asc`?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(s)?e<t?-1:1:s}var dt=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,ft=new O(e=>{let t=dt.exec(e);if(!t)return null;let n=t.groups?.value;if(n===void 0)return null;let r=Number(n);if(Number.isNaN(r))return null;let i=t.groups?.unit;return i===void 0?[r,null]:[r,i]}),pt=new Set(`black.silver.gray.white.maroon.red.purple.fuchsia.green.lime.olive.yellow.navy.blue.teal.aqua.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.green.greenyellow.grey.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.rebeccapurple.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.transparent.currentcolor.canvas.canvastext.linktext.visitedtext.activetext.buttonface.buttontext.buttonborder.field.fieldtext.highlight.highlighttext.selecteditem.selecteditemtext.mark.marktext.graytext.accentcolor.accentcolortext`.split(`.`)),mt=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix|--alpha)\(/i;function ht(e){return e.charCodeAt(0)===35||mt.test(e)||pt.has(e.toLowerCase())}function gt(e){return pt.has(e.toLowerCase())}var _t={color:ht,length:Lt,percentage:Mt,ratio:Pt,number:At,integer:H,url:yt,position:Rt,"bg-size":zt,"line-width":bt,image:Ct,"family-name":Tt,"generic-name":wt,"absolute-size":Et,"relative-size":Dt,angle:Vt,vector:Ut};function V(e,t){if(e.startsWith(`var(`))return null;for(let n of t)if(_t[n]?.(e))return n;return null}var vt=/^url\(.*\)$/;function yt(e){return vt.test(e)}function bt(e){return A(e,` `).every(e=>Lt(e)||At(e)||e===`thin`||e===`medium`||e===`thick`)}var xt=/^(?:element|image|cross-fade|image-set)\(/,St=/^(repeating-)?(conic|linear|radial)-gradient\(/;function Ct(e){let t=0;for(let n of A(e,`,`))if(!n.startsWith(`var(`)){if(yt(n)){t+=1;continue}if(St.test(n)){t+=1;continue}if(xt.test(n)){t+=1;continue}return!1}return t>0}function wt(e){return e===`serif`||e===`sans-serif`||e===`monospace`||e===`cursive`||e===`fantasy`||e===`system-ui`||e===`ui-serif`||e===`ui-sans-serif`||e===`ui-monospace`||e===`ui-rounded`||e===`math`||e===`emoji`||e===`fangsong`}function Tt(e){let t=0;for(let n of A(e,`,`)){let e=n.charCodeAt(0);if(e>=48&&e<=57)return!1;n.startsWith(`var(`)||(t+=1)}return t>0}function Et(e){return e===`xx-small`||e===`x-small`||e===`small`||e===`medium`||e===`large`||e===`x-large`||e===`xx-large`||e===`xxx-large`}function Dt(e){return e===`larger`||e===`smaller`}var Ot=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,kt=RegExp(`^${Ot.source}$`);function At(e){return kt.test(e)||Ie(e)}var jt=RegExp(`^${Ot.source}%$`);function Mt(e){return jt.test(e)||Ie(e)}var Nt=RegExp(`^${Ot.source}\\s*/\\s*${Ot.source}$`);function Pt(e){return Nt.test(e)||Ie(e)}var Ft=RegExp(`^${Ot.source}(${`cm.mm.Q.in.pc.pt.px.em.ex.ch.rem.lh.rlh.vw.vh.vmin.vmax.vb.vi.svw.svh.lvw.lvh.dvw.dvh.cqw.cqh.cqi.cqb.cqmin.cqmax`.split(`.`).join(`|`)})$`),It=/^(--spacing)\(/i;function Lt(e){return Ft.test(e)||It.test(e)||Ie(e)}function Rt(e){let t=0;for(let n of A(e,` `)){if(n===`center`||n===`top`||n===`right`||n===`bottom`||n===`left`){t+=1;continue}if(!n.startsWith(`var(`)){if(Lt(n)||Mt(n)){t+=1;continue}return!1}}return t>0}function zt(e){let t=0;for(let n of A(e,`,`)){if(n===`cover`||n===`contain`){t+=1;continue}let e=A(n,` `);if(e.length!==1&&e.length!==2)return!1;if(e.every(e=>e===`auto`||Lt(e)||Mt(e))){t+=1;continue}}return t>0}var Bt=RegExp(`^${Ot.source}(${[`deg`,`rad`,`grad`,`turn`].join(`|`)})$`);function Vt(e){return Bt.test(e)}var Ht=RegExp(`^${Ot.source} +${Ot.source} +${Ot.source}$`);function Ut(e){return Ht.test(e)}function H(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Wt(e){let t=Number(e);return Number.isInteger(t)&&t>0&&String(t)===String(e)}function Gt(e){return qt(e,.25)}function Kt(e){return qt(e,.25)}function qt(e,t){let n=Number(e);return n>=0&&n%t===0&&String(n)===String(e)}var Jt=new Set([`inset`,`inherit`,`initial`,`revert`,`unset`]),Yt=new Set([`calc`,`clamp`,`max`,`min`,`--spacing`]),Xt=new Set([`color`,`color-mix`,`contrast-color`,`device-cmyk`,`hsl`,`hsla`,`hwb`,`lab`,`lch`,`light-dark`,`oklab`,`oklch`,`rgb`,`rgba`,`--alpha`]),Zt=/^-?(\d+|\.\d+)(.*?)$/;function Qt(e,t){function n(e){return M(t(j([e])))}return A(e,`,`).map(e=>{e=e.trim();let r=M(e),i=null,a=0,o=0,s=!1;return P(r,e=>{switch(e.kind){case`word`:if(Jt.has(e.value.toLowerCase()))return N.Continue;if(Zt.test(e.value.toLowerCase()))return o++,N.Continue;if(e.value[0]===`#`||gt(e.value))return s=!0,N.ReplaceStop(n(e));i=e,a++;break;case`function`:return Xt.has(e.value.toLowerCase())?(s=!0,N.ReplaceStop(n(e))):Yt.has(e.value.toLowerCase())?(o++,N.Skip):(i=e,a++,N.Skip);case`separator`:return N.Continue}}),s?j(r):o<2?e:a===0?`${e} ${t(`currentcolor`)}`:(a===1&&P(r,e=>e===i?(s=!0,N.ReplaceStop(n(e))):N.Skip),s?j(r):e)}).join(`, `)}var $t=`0,0.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96`.split(`,`),en=class{utilities=new O(()=>[]);completions=new Map;static(e,t){this.utilities.get(e).push({kind:`static`,compileFn:t})}functional(e,t,n){this.utilities.get(e).push({kind:`functional`,compileFn:t,options:n})}has(e,t){return this.utilities.has(e)&&this.utilities.get(e).some(e=>e.kind===t)}get(e){return this.utilities.has(e)?this.utilities.get(e):[]}getCompletions(e){return this.has(e,`static`)?this.completions.get(e)?.()??[{supportsNegative:!1,values:[],modifiers:[]}]:this.completions.get(e)?.()??[]}suggest(e,t){let n=this.completions.get(e);n?this.completions.set(e,()=>[...n?.(),...t?.()]):this.completions.set(e,t)}keys(e){let t=[];for(let[n,r]of this.utilities.entries())for(let i of r)if(i.kind===e){t.push(n);break}return t}};function U(e,t,n){return I(`@property`,e,[R(`syntax`,n?`"${n}"`:`"*"`),R(`inherits`,`false`),...t?[R(`initial-value`,t)]:[]])}function W(e,t){if(t===null)return e;let n=Number(t);return Number.isNaN(n)||(t=`${n*100}%`),t===`100%`?e:`color-mix(in oklab, ${e} ${t}, transparent)`}function tn(e,t){let n=Number(t);return Number.isNaN(n)||(t=`${n*100}%`),`oklab(from ${e} l a b / ${t})`}function G(e,t,n){if(!t)return e;if(t.kind===`arbitrary`)return W(e,t.value);let r=n.resolve(t.value,[`--opacity`]);return r?W(e,r):Kt(t.value)?W(e,`${t.value}%`):null}function K(e,t,n){let r=null;switch(e.value.value){case`inherit`:r=`inherit`;break;case`transparent`:r=`transparent`;break;case`current`:r=`currentcolor`;break;default:r=t.resolve(e.value.value,n)}return r?G(r,e.modifier,t):null}var nn=/(\d+)_(\d+)/g;function rn(e){let t=new en;function n(n,r){function*i(t){for(let n of e.keysInNamespaces(t))yield n.replace(nn,(e,t,n)=>`${t}.${n}`)}let a=`1/2.1/3.2/3.1/4.2/4.3/4.1/5.2/5.3/5.4/5.1/6.2/6.3/6.4/6.5/6.1/12.2/12.3/12.4/12.5/12.6/12.7/12.8/12.9/12.10/12.11/12`.split(`.`);t.suggest(n,()=>{let e=[];for(let t of r()){if(typeof t==`string`){e.push({values:[t],modifiers:[]});continue}let n=[...t.values??[],...i(t.valueThemeKeys??[])],r=[...t.modifiers??[],...i(t.modifierThemeKeys??[])];t.supportsFractions&&n.push(...a),t.hasDefaultValue&&n.unshift(null),e.push({supportsNegative:t.supportsNegative,values:n,modifiers:r})}return e})}function r(e,n){t.static(e,()=>n.map(e=>typeof e==`function`?e():R(e[0],e[1])))}function i(r,i){i.staticValues&&=Object.assign(Object.create(null),i.staticValues);function a({negative:t}){return n=>{let r=null,a=null;if(n.value){if(n.value.kind===`arbitrary`){if(n.modifier)return;r=n.value.value,a=n.value.dataType}else{if(r=e.resolve(n.value.fraction??n.value.value,i.themeKeys??[]),r===null&&i.supportsFractions&&n.value.fraction){let[e,t]=A(n.value.fraction,`/`);if(!H(e)||!H(t))return;r=`calc(${e} / ${t} * 100%)`}if(r===null&&t&&i.handleNegativeBareValue){if(r=i.handleNegativeBareValue(n.value),!r?.includes(`/`)&&n.modifier)return;if(r!==null)return i.handle(r,null)}if(r===null&&i.handleBareValue&&(r=i.handleBareValue(n.value),!r?.includes(`/`)&&n.modifier))return;if(r===null&&!t&&i.staticValues&&!n.modifier){let e=i.staticValues[n.value.value];if(e)return e.map(Te)}}}else{if(n.modifier)return;r=i.defaultValue===void 0?e.resolve(null,i.themeKeys??[]):i.defaultValue}if(r!==null)return i.handle(t?Le(`calc(${r} * -1)`):r,a)}}if(i.supportsNegative&&t.functional(`-${r}`,a({negative:!0})),t.functional(r,a({negative:!1})),n(r,()=>[{supportsNegative:i.supportsNegative,valueThemeKeys:i.themeKeys??[],hasDefaultValue:i.defaultValue!==void 0&&i.defaultValue!==null,supportsFractions:i.supportsFractions}]),i.staticValues&&Object.keys(i.staticValues).length>0){let e=Object.keys(i.staticValues);n(r,()=>[{values:e}])}}function a(r,i){t.functional(r,t=>{if(!t.value)return;let n=null;if(t.value.kind===`arbitrary`?(n=t.value.value,n=G(n,t.modifier,e)):n=K(t,e,i.themeKeys),n!==null)return i.handle(n)}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:i.themeKeys,modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)}])}function o(r,a,o,{supportsNegative:s=!1,supportsFractions:c=!1,staticValues:l}={}){s&&t.static(`-${r}-px`,()=>o(`-1px`)),t.static(`${r}-px`,()=>o(`1px`)),i(r,{themeKeys:a,supportsFractions:c,supportsNegative:s,defaultValue:null,handleBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Gt(t)?null:`--spacing(${t})`,handleNegativeBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Gt(t)?null:`--spacing(-${t})`,handle:o,staticValues:l}),n(r,()=>[{values:e.get([`--spacing`])?$t:[],supportsNegative:s,supportsFractions:c,valueThemeKeys:a}])}r(`sr-only`,[[`position`,`absolute`],[`width`,`1px`],[`height`,`1px`],[`padding`,`0`],[`margin`,`-1px`],[`overflow`,`hidden`],[`clip-path`,`inset(50%)`],[`white-space`,`nowrap`],[`border-width`,`0`]]),r(`not-sr-only`,[[`position`,`static`],[`width`,`auto`],[`height`,`auto`],[`padding`,`0`],[`margin`,`0`],[`overflow`,`visible`],[`clip-path`,`none`],[`white-space`,`normal`]]),r(`pointer-events-none`,[[`pointer-events`,`none`]]),r(`pointer-events-auto`,[[`pointer-events`,`auto`]]),r(`visible`,[[`visibility`,`visible`]]),r(`invisible`,[[`visibility`,`hidden`]]),r(`collapse`,[[`visibility`,`collapse`]]),r(`static`,[[`position`,`static`]]),r(`fixed`,[[`position`,`fixed`]]),r(`absolute`,[[`position`,`absolute`]]),r(`relative`,[[`position`,`relative`]]),r(`sticky`,[[`position`,`sticky`]]);for(let[e,t]of[[`inset`,`inset`],[`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`],[`top`,`top`],[`right`,`right`],[`bottom`,`bottom`],[`left`,`left`]])r(`${e}-auto`,[[t,`auto`]]),r(`${e}-full`,[[t,`100%`]]),r(`-${e}-full`,[[t,`-100%`]]),o(e,[`--inset`,`--spacing`],e=>[R(t,e)],{supportsNegative:!0,supportsFractions:!0});r(`isolate`,[[`isolation`,`isolate`]]),r(`isolation-auto`,[[`isolation`,`auto`]]),i(`z`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--z-index`],handle:e=>[R(`z-index`,e)],staticValues:{auto:[R(`z-index`,`auto`)]}}),n(`z`,()=>[{supportsNegative:!0,values:[`0`,`10`,`20`,`30`,`40`,`50`],valueThemeKeys:[`--z-index`]}]),i(`order`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--order`],handle:e=>[R(`order`,e)],staticValues:{first:[R(`order`,`-9999`)],last:[R(`order`,`9999`)]}}),n(`order`,()=>[{supportsNegative:!0,values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--order`]}]),i(`col`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--grid-column`],handle:e=>[R(`grid-column`,e)],staticValues:{auto:[R(`grid-column`,`auto`)]}}),i(`col-span`,{handleBareValue:({value:e})=>H(e)?e:null,handle:e=>[R(`grid-column`,`span ${e} / span ${e}`)],staticValues:{full:[R(`grid-column`,`1 / -1`)]}}),i(`col-start`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--grid-column-start`],handle:e=>[R(`grid-column-start`,e)],staticValues:{auto:[R(`grid-column-start`,`auto`)]}}),i(`col-end`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--grid-column-end`],handle:e=>[R(`grid-column-end`,e)],staticValues:{auto:[R(`grid-column-end`,`auto`)]}}),n(`col-span`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[]}]),n(`col-start`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-column-start`]}]),n(`col-end`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-column-end`]}]),i(`row`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--grid-row`],handle:e=>[R(`grid-row`,e)],staticValues:{auto:[R(`grid-row`,`auto`)]}}),i(`row-span`,{themeKeys:[],handleBareValue:({value:e})=>H(e)?e:null,handle:e=>[R(`grid-row`,`span ${e} / span ${e}`)],staticValues:{full:[R(`grid-row`,`1 / -1`)]}}),i(`row-start`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--grid-row-start`],handle:e=>[R(`grid-row-start`,e)],staticValues:{auto:[R(`grid-row-start`,`auto`)]}}),i(`row-end`,{supportsNegative:!0,handleBareValue:({value:e})=>H(e)?e:null,themeKeys:[`--grid-row-end`],handle:e=>[R(`grid-row-end`,e)],staticValues:{auto:[R(`grid-row-end`,`auto`)]}}),n(`row-span`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[]}]),n(`row-start`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-row-start`]}]),n(`row-end`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-row-end`]}]),r(`float-start`,[[`float`,`inline-start`]]),r(`float-end`,[[`float`,`inline-end`]]),r(`float-right`,[[`float`,`right`]]),r(`float-left`,[[`float`,`left`]]),r(`float-none`,[[`float`,`none`]]),r(`clear-start`,[[`clear`,`inline-start`]]),r(`clear-end`,[[`clear`,`inline-end`]]),r(`clear-right`,[[`clear`,`right`]]),r(`clear-left`,[[`clear`,`left`]]),r(`clear-both`,[[`clear`,`both`]]),r(`clear-none`,[[`clear`,`none`]]);for(let[e,t]of[[`m`,`margin`],[`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`]])r(`${e}-auto`,[[t,`auto`]]),o(e,[`--margin`,`--spacing`],e=>[R(t,e)],{supportsNegative:!0});r(`box-border`,[[`box-sizing`,`border-box`]]),r(`box-content`,[[`box-sizing`,`content-box`]]),i(`line-clamp`,{themeKeys:[`--line-clamp`],handleBareValue:({value:e})=>H(e)?e:null,handle:e=>[R(`overflow`,`hidden`),R(`display`,`-webkit-box`),R(`-webkit-box-orient`,`vertical`),R(`-webkit-line-clamp`,e)],staticValues:{none:[R(`overflow`,`visible`),R(`display`,`block`),R(`-webkit-box-orient`,`horizontal`),R(`-webkit-line-clamp`,`unset`)]}}),n(`line-clamp`,()=>[{values:[`1`,`2`,`3`,`4`,`5`,`6`],valueThemeKeys:[`--line-clamp`]}]),r(`block`,[[`display`,`block`]]),r(`inline-block`,[[`display`,`inline-block`]]),r(`inline`,[[`display`,`inline`]]),r(`hidden`,[[`display`,`none`]]),r(`inline-flex`,[[`display`,`inline-flex`]]),r(`table`,[[`display`,`table`]]),r(`inline-table`,[[`display`,`inline-table`]]),r(`table-caption`,[[`display`,`table-caption`]]),r(`table-cell`,[[`display`,`table-cell`]]),r(`table-column`,[[`display`,`table-column`]]),r(`table-column-group`,[[`display`,`table-column-group`]]),r(`table-footer-group`,[[`display`,`table-footer-group`]]),r(`table-header-group`,[[`display`,`table-header-group`]]),r(`table-row-group`,[[`display`,`table-row-group`]]),r(`table-row`,[[`display`,`table-row`]]),r(`flow-root`,[[`display`,`flow-root`]]),r(`flex`,[[`display`,`flex`]]),r(`grid`,[[`display`,`grid`]]),r(`inline-grid`,[[`display`,`inline-grid`]]),r(`contents`,[[`display`,`contents`]]),r(`list-item`,[[`display`,`list-item`]]),r(`field-sizing-content`,[[`field-sizing`,`content`]]),r(`field-sizing-fixed`,[[`field-sizing`,`fixed`]]),i(`aspect`,{themeKeys:[`--aspect`],handleBareValue:({fraction:e})=>{if(e===null)return null;let[t,n]=A(e,`/`);return!Gt(t)||!Gt(n)?null:e},handle:e=>[R(`aspect-ratio`,e)],staticValues:{auto:[R(`aspect-ratio`,`auto`)],square:[R(`aspect-ratio`,`1 / 1`)]}});for(let[e,t]of[[`full`,`100%`],[`svw`,`100svw`],[`lvw`,`100lvw`],[`dvw`,`100dvw`],[`svh`,`100svh`],[`lvh`,`100lvh`],[`dvh`,`100dvh`],[`min`,`min-content`],[`max`,`max-content`],[`fit`,`fit-content`]])r(`size-${e}`,[[`--tw-sort`,`size`],[`width`,t],[`height`,t]]),r(`w-${e}`,[[`width`,t]]),r(`h-${e}`,[[`height`,t]]),r(`min-w-${e}`,[[`min-width`,t]]),r(`min-h-${e}`,[[`min-height`,t]]),r(`max-w-${e}`,[[`max-width`,t]]),r(`max-h-${e}`,[[`max-height`,t]]);r(`size-auto`,[[`--tw-sort`,`size`],[`width`,`auto`],[`height`,`auto`]]),r(`w-auto`,[[`width`,`auto`]]),r(`h-auto`,[[`height`,`auto`]]),r(`min-w-auto`,[[`min-width`,`auto`]]),r(`min-h-auto`,[[`min-height`,`auto`]]),r(`h-lh`,[[`height`,`1lh`]]),r(`min-h-lh`,[[`min-height`,`1lh`]]),r(`max-h-lh`,[[`max-height`,`1lh`]]),r(`w-screen`,[[`width`,`100vw`]]),r(`min-w-screen`,[[`min-width`,`100vw`]]),r(`max-w-screen`,[[`max-width`,`100vw`]]),r(`h-screen`,[[`height`,`100vh`]]),r(`min-h-screen`,[[`min-height`,`100vh`]]),r(`max-h-screen`,[[`max-height`,`100vh`]]),r(`max-w-none`,[[`max-width`,`none`]]),r(`max-h-none`,[[`max-height`,`none`]]),o(`size`,[`--size`,`--spacing`],e=>[R(`--tw-sort`,`size`),R(`width`,e),R(`height`,e)],{supportsFractions:!0});for(let[e,t,n]of[[`w`,[`--width`,`--spacing`,`--container`],`width`],[`min-w`,[`--min-width`,`--spacing`,`--container`],`min-width`],[`max-w`,[`--max-width`,`--spacing`,`--container`],`max-width`],[`h`,[`--height`,`--spacing`],`height`],[`min-h`,[`--min-height`,`--height`,`--spacing`],`min-height`],[`max-h`,[`--max-height`,`--height`,`--spacing`],`max-height`]])o(e,t,e=>[R(n,e)],{supportsFractions:!0});for(let[e,t]of[[`full`,`100%`],[`min`,`min-content`],[`max`,`max-content`],[`fit`,`fit-content`]])r(`inline-${e}`,[[`inline-size`,t]]),r(`block-${e}`,[[`block-size`,t]]),r(`min-inline-${e}`,[[`min-inline-size`,t]]),r(`min-block-${e}`,[[`min-block-size`,t]]),r(`max-inline-${e}`,[[`max-inline-size`,t]]),r(`max-block-${e}`,[[`max-block-size`,t]]);for(let[e,t]of[[`svw`,`100svw`],[`lvw`,`100lvw`],[`dvw`,`100dvw`]])r(`inline-${e}`,[[`inline-size`,t]]),r(`min-inline-${e}`,[[`min-inline-size`,t]]),r(`max-inline-${e}`,[[`max-inline-size`,t]]);for(let[e,t]of[[`svh`,`100svh`],[`lvh`,`100lvh`],[`dvh`,`100dvh`]])r(`block-${e}`,[[`block-size`,t]]),r(`min-block-${e}`,[[`min-block-size`,t]]),r(`max-block-${e}`,[[`max-block-size`,t]]);r(`inline-auto`,[[`inline-size`,`auto`]]),r(`block-auto`,[[`block-size`,`auto`]]),r(`min-inline-auto`,[[`min-inline-size`,`auto`]]),r(`min-block-auto`,[[`min-block-size`,`auto`]]),r(`block-lh`,[[`block-size`,`1lh`]]),r(`min-block-lh`,[[`min-block-size`,`1lh`]]),r(`max-block-lh`,[[`max-block-size`,`1lh`]]),r(`inline-screen`,[[`inline-size`,`100vw`]]),r(`min-inline-screen`,[[`min-inline-size`,`100vw`]]),r(`max-inline-screen`,[[`max-inline-size`,`100vw`]]),r(`block-screen`,[[`block-size`,`100vh`]]),r(`min-block-screen`,[[`min-block-size`,`100vh`]]),r(`max-block-screen`,[[`max-block-size`,`100vh`]]),r(`max-inline-none`,[[`max-inline-size`,`none`]]),r(`max-block-none`,[[`max-block-size`,`none`]]);for(let[e,t,n]of[[`inline`,[`--spacing`,`--container`],`inline-size`],[`min-inline`,[`--spacing`,`--container`],`min-inline-size`],[`max-inline`,[`--spacing`,`--container`],`max-inline-size`],[`block`,[`--spacing`],`block-size`],[`min-block`,[`--spacing`],`min-block-size`],[`max-block`,[`--spacing`],`max-block-size`]])o(e,t,e=>[R(n,e)],{supportsFractions:!0});t.static(`container`,()=>{let t=[...e.namespace(`--breakpoint`).values()];t.sort((e,t)=>ut(e,t,`asc`));let n=[R(`--tw-sort`,`--tw-container-component`),R(`width`,`100%`)];for(let e of t)n.push(I(`@media`,`(width >= ${e})`,[R(`max-width`,e)]));return n}),r(`flex-auto`,[[`flex`,`auto`]]),r(`flex-initial`,[[`flex`,`0 auto`]]),r(`flex-none`,[[`flex`,`none`]]),t.functional(`flex`,e=>{if(e.value){if(e.value.kind===`arbitrary`)return e.modifier?void 0:[R(`flex`,e.value.value)];if(e.value.fraction){let[t,n]=A(e.value.fraction,`/`);return!H(t)||!H(n)?void 0:[R(`flex`,`calc(${e.value.fraction} * 100%)`)]}if(H(e.value.value))return e.modifier?void 0:[R(`flex`,e.value.value)]}}),n(`flex`,()=>[{supportsFractions:!0},{values:Array.from({length:12},(e,t)=>`${t+1}`)}]),i(`shrink`,{defaultValue:`1`,handleBareValue:({value:e})=>H(e)?e:null,handle:e=>[R(`flex-shrink`,e)]}),i(`grow`,{defaultValue:`1`,handleBareValue:({value:e})=>H(e)?e:null,handle:e=>[R(`flex-grow`,e)]}),n(`shrink`,()=>[{values:[`0`],valueThemeKeys:[],hasDefaultValue:!0}]),n(`grow`,()=>[{values:[`0`],valueThemeKeys:[],hasDefaultValue:!0}]),r(`basis-auto`,[[`flex-basis`,`auto`]]),r(`basis-full`,[[`flex-basis`,`100%`]]),o(`basis`,[`--flex-basis`,`--spacing`,`--container`],e=>[R(`flex-basis`,e)],{supportsFractions:!0}),r(`table-auto`,[[`table-layout`,`auto`]]),r(`table-fixed`,[[`table-layout`,`fixed`]]),r(`caption-top`,[[`caption-side`,`top`]]),r(`caption-bottom`,[[`caption-side`,`bottom`]]),r(`border-collapse`,[[`border-collapse`,`collapse`]]),r(`border-separate`,[[`border-collapse`,`separate`]]);let s=()=>z([U(`--tw-border-spacing-x`,`0`,`<length>`),U(`--tw-border-spacing-y`,`0`,`<length>`)]);o(`border-spacing`,[`--border-spacing`,`--spacing`],e=>[s(),R(`--tw-border-spacing-x`,e),R(`--tw-border-spacing-y`,e),R(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),o(`border-spacing-x`,[`--border-spacing`,`--spacing`],e=>[s(),R(`--tw-border-spacing-x`,e),R(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),o(`border-spacing-y`,[`--border-spacing`,`--spacing`],e=>[s(),R(`--tw-border-spacing-y`,e),R(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),i(`origin`,{themeKeys:[`--transform-origin`],handle:e=>[R(`transform-origin`,e)],staticValues:{center:[R(`transform-origin`,`center`)],top:[R(`transform-origin`,`top`)],"top-right":[R(`transform-origin`,`100% 0`)],right:[R(`transform-origin`,`100%`)],"bottom-right":[R(`transform-origin`,`100% 100%`)],bottom:[R(`transform-origin`,`bottom`)],"bottom-left":[R(`transform-origin`,`0 100%`)],left:[R(`transform-origin`,`0`)],"top-left":[R(`transform-origin`,`0 0`)]}}),i(`perspective-origin`,{themeKeys:[`--perspective-origin`],handle:e=>[R(`perspective-origin`,e)],staticValues:{center:[R(`perspective-origin`,`center`)],top:[R(`perspective-origin`,`top`)],"top-right":[R(`perspective-origin`,`100% 0`)],right:[R(`perspective-origin`,`100%`)],"bottom-right":[R(`perspective-origin`,`100% 100%`)],bottom:[R(`perspective-origin`,`bottom`)],"bottom-left":[R(`perspective-origin`,`0 100%`)],left:[R(`perspective-origin`,`0`)],"top-left":[R(`perspective-origin`,`0 0`)]}}),i(`perspective`,{themeKeys:[`--perspective`],handle:e=>[R(`perspective`,e)],staticValues:{none:[R(`perspective`,`none`)]}});let c=()=>z([U(`--tw-translate-x`,`0`),U(`--tw-translate-y`,`0`),U(`--tw-translate-z`,`0`)]);r(`translate-none`,[[`translate`,`none`]]),r(`-translate-full`,[c,[`--tw-translate-x`,`-100%`],[`--tw-translate-y`,`-100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),r(`translate-full`,[c,[`--tw-translate-x`,`100%`],[`--tw-translate-y`,`100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),o(`translate`,[`--translate`,`--spacing`],e=>[c(),R(`--tw-translate-x`,e),R(`--tw-translate-y`,e),R(`translate`,`var(--tw-translate-x) var(--tw-translate-y)`)],{supportsNegative:!0,supportsFractions:!0});for(let e of[`x`,`y`])r(`-translate-${e}-full`,[c,[`--tw-translate-${e}`,`-100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),r(`translate-${e}-full`,[c,[`--tw-translate-${e}`,`100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),o(`translate-${e}`,[`--translate`,`--spacing`],t=>[c(),R(`--tw-translate-${e}`,t),R(`translate`,`var(--tw-translate-x) var(--tw-translate-y)`)],{supportsNegative:!0,supportsFractions:!0});o(`translate-z`,[`--translate`,`--spacing`],e=>[c(),R(`--tw-translate-z`,e),R(`translate`,`var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)`)],{supportsNegative:!0}),r(`translate-3d`,[c,[`translate`,`var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)`]]);let l=()=>z([U(`--tw-scale-x`,`1`),U(`--tw-scale-y`,`1`),U(`--tw-scale-z`,`1`)]);r(`scale-none`,[[`scale`,`none`]]);function u({negative:t}){return n=>{if(!n.value||n.modifier)return;let r;return n.value.kind===`arbitrary`?(r=n.value.value,r=t?`calc(${r} * -1)`:r,[R(`scale`,r)]):(r=e.resolve(n.value.value,[`--scale`]),!r&&H(n.value.value)&&(r=`${n.value.value}%`),r?(r=t?`calc(${r} * -1)`:r,[l(),R(`--tw-scale-x`,r),R(`--tw-scale-y`,r),R(`--tw-scale-z`,r),R(`scale`,`var(--tw-scale-x) var(--tw-scale-y)`)]):void 0)}}t.functional(`-scale`,u({negative:!0})),t.functional(`scale`,u({negative:!1})),n(`scale`,()=>[{supportsNegative:!0,values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--scale`]}]);for(let e of[`x`,`y`,`z`])i(`scale-${e}`,{supportsNegative:!0,themeKeys:[`--scale`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:t=>[l(),R(`--tw-scale-${e}`,t),R(`scale`,`var(--tw-scale-x) var(--tw-scale-y)${e===`z`?` var(--tw-scale-z)`:``}`)]}),n(`scale-${e}`,()=>[{supportsNegative:!0,values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--scale`]}]);r(`scale-3d`,[l,[`scale`,`var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)`]]),r(`rotate-none`,[[`rotate`,`none`]]);function d({negative:t}){return n=>{if(!n.value||n.modifier)return;let r;if(n.value.kind===`arbitrary`){r=n.value.value;let e=n.value.dataType??V(r,[`angle`,`vector`]);if(e===`vector`)return[R(`rotate`,`${r} var(--tw-rotate)`)];if(e!==`angle`)return[R(`rotate`,t?`calc(${r} * -1)`:r)]}else if(r=e.resolve(n.value.value,[`--rotate`]),!r&&H(n.value.value)&&(r=`${n.value.value}deg`),!r)return;return[R(`rotate`,t?`calc(${r} * -1)`:r)]}}t.functional(`-rotate`,d({negative:!0})),t.functional(`rotate`,d({negative:!1})),n(`rotate`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`],valueThemeKeys:[`--rotate`]}]);{let e=[`var(--tw-rotate-x,)`,`var(--tw-rotate-y,)`,`var(--tw-rotate-z,)`,`var(--tw-skew-x,)`,`var(--tw-skew-y,)`].join(` `),a=()=>z([U(`--tw-rotate-x`),U(`--tw-rotate-y`),U(`--tw-rotate-z`),U(`--tw-skew-x`),U(`--tw-skew-y`)]);for(let t of[`x`,`y`,`z`])i(`rotate-${t}`,{supportsNegative:!0,themeKeys:[`--rotate`],handleBareValue:({value:e})=>H(e)?`${e}deg`:null,handle:n=>[a(),R(`--tw-rotate-${t}`,`rotate${t.toUpperCase()}(${n})`),R(`transform`,e)]}),n(`rotate-${t}`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`],valueThemeKeys:[`--rotate`]}]);i(`skew`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>H(e)?`${e}deg`:null,handle:t=>[a(),R(`--tw-skew-x`,`skewX(${t})`),R(`--tw-skew-y`,`skewY(${t})`),R(`transform`,e)]}),i(`skew-x`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>H(e)?`${e}deg`:null,handle:t=>[a(),R(`--tw-skew-x`,`skewX(${t})`),R(`transform`,e)]}),i(`skew-y`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>H(e)?`${e}deg`:null,handle:t=>[a(),R(`--tw-skew-y`,`skewY(${t})`),R(`transform`,e)]}),n(`skew`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`],valueThemeKeys:[`--skew`]}]),n(`skew-x`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`],valueThemeKeys:[`--skew`]}]),n(`skew-y`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`],valueThemeKeys:[`--skew`]}]),t.functional(`transform`,t=>{if(t.modifier)return;let n=null;if(t.value?t.value.kind===`arbitrary`&&(n=t.value.value):n=e,n!==null)return[a(),R(`transform`,n)]}),n(`transform`,()=>[{hasDefaultValue:!0}]),r(`transform-cpu`,[[`transform`,e]]),r(`transform-gpu`,[[`transform`,`translateZ(0) ${e}`]]),r(`transform-none`,[[`transform`,`none`]])}i(`zoom`,{handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:e=>[R(`zoom`,e)]}),n(`zoom`,()=>[{values:[`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`]}]),r(`transform-flat`,[[`transform-style`,`flat`]]),r(`transform-3d`,[[`transform-style`,`preserve-3d`]]),r(`transform-content`,[[`transform-box`,`content-box`]]),r(`transform-border`,[[`transform-box`,`border-box`]]),r(`transform-fill`,[[`transform-box`,`fill-box`]]),r(`transform-stroke`,[[`transform-box`,`stroke-box`]]),r(`transform-view`,[[`transform-box`,`view-box`]]),r(`backface-visible`,[[`backface-visibility`,`visible`]]),r(`backface-hidden`,[[`backface-visibility`,`hidden`]]);for(let e of`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`.split(`.`))r(`cursor-${e}`,[[`cursor`,e]]);i(`cursor`,{themeKeys:[`--cursor`],handle:e=>[R(`cursor`,e)]});for(let e of[`auto`,`none`,`manipulation`])r(`touch-${e}`,[[`touch-action`,e]]);let f=()=>z([U(`--tw-pan-x`),U(`--tw-pan-y`),U(`--tw-pinch-zoom`)]);for(let e of[`x`,`left`,`right`])r(`touch-pan-${e}`,[f,[`--tw-pan-x`,`pan-${e}`],[`touch-action`,`var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]);for(let e of[`y`,`up`,`down`])r(`touch-pan-${e}`,[f,[`--tw-pan-y`,`pan-${e}`],[`touch-action`,`var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]);r(`touch-pinch-zoom`,[f,[`--tw-pinch-zoom`,`pinch-zoom`],[`touch-action`,`var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]);for(let e of[`none`,`text`,`all`,`auto`])r(`select-${e}`,[[`-webkit-user-select`,e],[`user-select`,e]]);r(`resize-none`,[[`resize`,`none`]]),r(`resize-x`,[[`resize`,`horizontal`]]),r(`resize-y`,[[`resize`,`vertical`]]),r(`resize`,[[`resize`,`both`]]),r(`snap-none`,[[`scroll-snap-type`,`none`]]);let p=()=>z([U(`--tw-scroll-snap-strictness`,`proximity`,`*`)]);for(let e of[`x`,`y`,`both`])r(`snap-${e}`,[p,[`scroll-snap-type`,`${e} var(--tw-scroll-snap-strictness)`]]);r(`snap-mandatory`,[p,[`--tw-scroll-snap-strictness`,`mandatory`]]),r(`snap-proximity`,[p,[`--tw-scroll-snap-strictness`,`proximity`]]),r(`snap-align-none`,[[`scroll-snap-align`,`none`]]),r(`snap-start`,[[`scroll-snap-align`,`start`]]),r(`snap-end`,[[`scroll-snap-align`,`end`]]),r(`snap-center`,[[`scroll-snap-align`,`center`]]),r(`snap-normal`,[[`scroll-snap-stop`,`normal`]]),r(`snap-always`,[[`scroll-snap-stop`,`always`]]);for(let[e,t]of[[`scroll-m`,`scroll-margin`],[`scroll-mx`,`scroll-margin-inline`],[`scroll-my`,`scroll-margin-block`],[`scroll-ms`,`scroll-margin-inline-start`],[`scroll-me`,`scroll-margin-inline-end`],[`scroll-mbs`,`scroll-margin-block-start`],[`scroll-mbe`,`scroll-margin-block-end`],[`scroll-mt`,`scroll-margin-top`],[`scroll-mr`,`scroll-margin-right`],[`scroll-mb`,`scroll-margin-bottom`],[`scroll-ml`,`scroll-margin-left`]])o(e,[`--scroll-margin`,`--spacing`],e=>[R(t,e)],{supportsNegative:!0});for(let[e,t]of[[`scroll-p`,`scroll-padding`],[`scroll-px`,`scroll-padding-inline`],[`scroll-py`,`scroll-padding-block`],[`scroll-ps`,`scroll-padding-inline-start`],[`scroll-pe`,`scroll-padding-inline-end`],[`scroll-pbs`,`scroll-padding-block-start`],[`scroll-pbe`,`scroll-padding-block-end`],[`scroll-pt`,`scroll-padding-top`],[`scroll-pr`,`scroll-padding-right`],[`scroll-pb`,`scroll-padding-bottom`],[`scroll-pl`,`scroll-padding-left`]])o(e,[`--scroll-padding`,`--spacing`],e=>[R(t,e)]);r(`list-inside`,[[`list-style-position`,`inside`]]),r(`list-outside`,[[`list-style-position`,`outside`]]),i(`list`,{themeKeys:[`--list-style-type`],handle:e=>[R(`list-style-type`,e)],staticValues:{none:[R(`list-style-type`,`none`)],disc:[R(`list-style-type`,`disc`)],decimal:[R(`list-style-type`,`decimal`)]}}),i(`list-image`,{themeKeys:[`--list-style-image`],handle:e=>[R(`list-style-image`,e)],staticValues:{none:[R(`list-style-image`,`none`)]}}),r(`appearance-none`,[[`appearance`,`none`]]),r(`appearance-auto`,[[`appearance`,`auto`]]),r(`scheme-normal`,[[`color-scheme`,`normal`]]),r(`scheme-dark`,[[`color-scheme`,`dark`]]),r(`scheme-light`,[[`color-scheme`,`light`]]),r(`scheme-light-dark`,[[`color-scheme`,`light dark`]]),r(`scheme-only-dark`,[[`color-scheme`,`only dark`]]),r(`scheme-only-light`,[[`color-scheme`,`only light`]]),i(`columns`,{themeKeys:[`--columns`,`--container`],handleBareValue:({value:e})=>H(e)?e:null,handle:e=>[R(`columns`,e)],staticValues:{auto:[R(`columns`,`auto`)]}}),n(`columns`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--columns`,`--container`]}]);for(let e of[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`])r(`break-before-${e}`,[[`break-before`,e]]);for(let e of[`auto`,`avoid`,`avoid-page`,`avoid-column`])r(`break-inside-${e}`,[[`break-inside`,e]]);for(let e of[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`])r(`break-after-${e}`,[[`break-after`,e]]);r(`grid-flow-row`,[[`grid-auto-flow`,`row`]]),r(`grid-flow-col`,[[`grid-auto-flow`,`column`]]),r(`grid-flow-dense`,[[`grid-auto-flow`,`dense`]]),r(`grid-flow-row-dense`,[[`grid-auto-flow`,`row dense`]]),r(`grid-flow-col-dense`,[[`grid-auto-flow`,`column dense`]]),i(`auto-cols`,{themeKeys:[`--grid-auto-columns`],handleBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Gt(t)?null:`--spacing(${t})`,handle:e=>[R(`grid-auto-columns`,e)],staticValues:{auto:[R(`grid-auto-columns`,`auto`)],min:[R(`grid-auto-columns`,`min-content`)],max:[R(`grid-auto-columns`,`max-content`)],fr:[R(`grid-auto-columns`,`minmax(0, 1fr)`)]}}),i(`auto-rows`,{themeKeys:[`--grid-auto-rows`],handleBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Gt(t)?null:`--spacing(${t})`,handle:e=>[R(`grid-auto-rows`,e)],staticValues:{auto:[R(`grid-auto-rows`,`auto`)],min:[R(`grid-auto-rows`,`min-content`)],max:[R(`grid-auto-rows`,`max-content`)],fr:[R(`grid-auto-rows`,`minmax(0, 1fr)`)]}}),i(`grid-cols`,{themeKeys:[`--grid-template-columns`],handleBareValue:({value:e})=>Wt(e)?`repeat(${e}, minmax(0, 1fr))`:null,handle:e=>[R(`grid-template-columns`,e)],staticValues:{none:[R(`grid-template-columns`,`none`)],subgrid:[R(`grid-template-columns`,`subgrid`)]}}),i(`grid-rows`,{themeKeys:[`--grid-template-rows`],handleBareValue:({value:e})=>Wt(e)?`repeat(${e}, minmax(0, 1fr))`:null,handle:e=>[R(`grid-template-rows`,e)],staticValues:{none:[R(`grid-template-rows`,`none`)],subgrid:[R(`grid-template-rows`,`subgrid`)]}}),n(`grid-cols`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-template-columns`]}]),n(`grid-rows`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-template-rows`]}]),r(`flex-row`,[[`flex-direction`,`row`]]),r(`flex-row-reverse`,[[`flex-direction`,`row-reverse`]]),r(`flex-col`,[[`flex-direction`,`column`]]),r(`flex-col-reverse`,[[`flex-direction`,`column-reverse`]]),r(`flex-wrap`,[[`flex-wrap`,`wrap`]]),r(`flex-nowrap`,[[`flex-wrap`,`nowrap`]]),r(`flex-wrap-reverse`,[[`flex-wrap`,`wrap-reverse`]]),r(`place-content-center`,[[`place-content`,`center`]]),r(`place-content-start`,[[`place-content`,`start`]]),r(`place-content-end`,[[`place-content`,`end`]]),r(`place-content-center-safe`,[[`place-content`,`safe center`]]),r(`place-content-end-safe`,[[`place-content`,`safe end`]]),r(`place-content-between`,[[`place-content`,`space-between`]]),r(`place-content-around`,[[`place-content`,`space-around`]]),r(`place-content-evenly`,[[`place-content`,`space-evenly`]]),r(`place-content-baseline`,[[`place-content`,`baseline`]]),r(`place-content-stretch`,[[`place-content`,`stretch`]]),r(`place-items-center`,[[`place-items`,`center`]]),r(`place-items-start`,[[`place-items`,`start`]]),r(`place-items-end`,[[`place-items`,`end`]]),r(`place-items-center-safe`,[[`place-items`,`safe center`]]),r(`place-items-end-safe`,[[`place-items`,`safe end`]]),r(`place-items-baseline`,[[`place-items`,`baseline`]]),r(`place-items-stretch`,[[`place-items`,`stretch`]]),r(`content-normal`,[[`align-content`,`normal`]]),r(`content-center`,[[`align-content`,`center`]]),r(`content-start`,[[`align-content`,`flex-start`]]),r(`content-end`,[[`align-content`,`flex-end`]]),r(`content-center-safe`,[[`align-content`,`safe center`]]),r(`content-end-safe`,[[`align-content`,`safe flex-end`]]),r(`content-between`,[[`align-content`,`space-between`]]),r(`content-around`,[[`align-content`,`space-around`]]),r(`content-evenly`,[[`align-content`,`space-evenly`]]),r(`content-baseline`,[[`align-content`,`baseline`]]),r(`content-stretch`,[[`align-content`,`stretch`]]),r(`items-center`,[[`align-items`,`center`]]),r(`items-start`,[[`align-items`,`flex-start`]]),r(`items-end`,[[`align-items`,`flex-end`]]),r(`items-center-safe`,[[`align-items`,`safe center`]]),r(`items-end-safe`,[[`align-items`,`safe flex-end`]]),r(`items-baseline`,[[`align-items`,`baseline`]]),r(`items-baseline-last`,[[`align-items`,`last baseline`]]),r(`items-stretch`,[[`align-items`,`stretch`]]),r(`justify-normal`,[[`justify-content`,`normal`]]),r(`justify-center`,[[`justify-content`,`center`]]),r(`justify-start`,[[`justify-content`,`flex-start`]]),r(`justify-end`,[[`justify-content`,`flex-end`]]),r(`justify-center-safe`,[[`justify-content`,`safe center`]]),r(`justify-end-safe`,[[`justify-content`,`safe flex-end`]]),r(`justify-between`,[[`justify-content`,`space-between`]]),r(`justify-around`,[[`justify-content`,`space-around`]]),r(`justify-evenly`,[[`justify-content`,`space-evenly`]]),r(`justify-baseline`,[[`justify-content`,`baseline`]]),r(`justify-stretch`,[[`justify-content`,`stretch`]]),r(`justify-items-normal`,[[`justify-items`,`normal`]]),r(`justify-items-center`,[[`justify-items`,`center`]]),r(`justify-items-start`,[[`justify-items`,`start`]]),r(`justify-items-end`,[[`justify-items`,`end`]]),r(`justify-items-center-safe`,[[`justify-items`,`safe center`]]),r(`justify-items-end-safe`,[[`justify-items`,`safe end`]]),r(`justify-items-stretch`,[[`justify-items`,`stretch`]]),o(`gap`,[`--gap`,`--spacing`],e=>[R(`gap`,e)]),o(`gap-x`,[`--gap`,`--spacing`],e=>[R(`column-gap`,e)]),o(`gap-y`,[`--gap`,`--spacing`],e=>[R(`row-gap`,e)]),o(`space-x`,[`--space`,`--spacing`],e=>{let t=(()=>{if(e===`--spacing(0)`||e===`--spacing(-0)`)return!0;let t=ft.get(e);return!(!t||t[0]!==0||t[1]!==null&&!Lt(e))})();return[z([U(`--tw-space-x-reverse`,`0`)]),F(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`row-gap`),R(`--tw-space-x-reverse`,`0`),R(`margin-inline-start`,t?`0`:`calc(${e} * var(--tw-space-x-reverse))`),R(`margin-inline-end`,t?`0`:`calc(${e} * calc(1 - var(--tw-space-x-reverse)))`)])]},{supportsNegative:!0}),o(`space-y`,[`--space`,`--spacing`],e=>{let t=(()=>{if(e===`--spacing(0)`||e===`--spacing(-0)`)return!0;let t=ft.get(e);return!(!t||t[0]!==0||t[1]!==null&&!Lt(e))})();return[z([U(`--tw-space-y-reverse`,`0`)]),F(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`column-gap`),R(`--tw-space-y-reverse`,`0`),R(`margin-block-start`,t?`0`:`calc(${e} * var(--tw-space-y-reverse))`),R(`margin-block-end`,t?`0`:`calc(${e} * calc(1 - var(--tw-space-y-reverse)))`)])]},{supportsNegative:!0}),r(`space-x-reverse`,[()=>z([U(`--tw-space-x-reverse`,`0`)]),()=>F(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`row-gap`),R(`--tw-space-x-reverse`,`1`)])]),r(`space-y-reverse`,[()=>z([U(`--tw-space-y-reverse`,`0`)]),()=>F(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`column-gap`),R(`--tw-space-y-reverse`,`1`)])]),r(`accent-auto`,[[`accent-color`,`auto`]]),a(`accent`,{themeKeys:[`--accent-color`,`--color`],handle:e=>[R(`accent-color`,e)]}),a(`caret`,{themeKeys:[`--caret-color`,`--color`],handle:e=>[R(`caret-color`,e)]}),a(`divide`,{themeKeys:[`--divide-color`,`--border-color`,`--color`],handle:e=>[F(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`divide-color`),R(`border-color`,e)])]}),r(`place-self-auto`,[[`place-self`,`auto`]]),r(`place-self-start`,[[`place-self`,`start`]]),r(`place-self-end`,[[`place-self`,`end`]]),r(`place-self-center`,[[`place-self`,`center`]]),r(`place-self-end-safe`,[[`place-self`,`safe end`]]),r(`place-self-center-safe`,[[`place-self`,`safe center`]]),r(`place-self-stretch`,[[`place-self`,`stretch`]]),r(`self-auto`,[[`align-self`,`auto`]]),r(`self-start`,[[`align-self`,`flex-start`]]),r(`self-end`,[[`align-self`,`flex-end`]]),r(`self-center`,[[`align-self`,`center`]]),r(`self-end-safe`,[[`align-self`,`safe flex-end`]]),r(`self-center-safe`,[[`align-self`,`safe center`]]),r(`self-stretch`,[[`align-self`,`stretch`]]),r(`self-baseline`,[[`align-self`,`baseline`]]),r(`self-baseline-last`,[[`align-self`,`last baseline`]]),r(`justify-self-auto`,[[`justify-self`,`auto`]]),r(`justify-self-start`,[[`justify-self`,`flex-start`]]),r(`justify-self-end`,[[`justify-self`,`flex-end`]]),r(`justify-self-center`,[[`justify-self`,`center`]]),r(`justify-self-end-safe`,[[`justify-self`,`safe flex-end`]]),r(`justify-self-center-safe`,[[`justify-self`,`safe center`]]),r(`justify-self-stretch`,[[`justify-self`,`stretch`]]);for(let e of[`auto`,`hidden`,`clip`,`visible`,`scroll`])r(`overflow-${e}`,[[`overflow`,e]]),r(`overflow-x-${e}`,[[`overflow-x`,e]]),r(`overflow-y-${e}`,[[`overflow-y`,e]]);for(let e of[`auto`,`contain`,`none`])r(`overscroll-${e}`,[[`overscroll-behavior`,e]]),r(`overscroll-x-${e}`,[[`overscroll-behavior-x`,e]]),r(`overscroll-y-${e}`,[[`overscroll-behavior-y`,e]]);r(`scroll-auto`,[[`scroll-behavior`,`auto`]]),r(`scroll-smooth`,[[`scroll-behavior`,`smooth`]]),r(`scrollbar-auto`,[[`scrollbar-width`,`auto`]]),r(`scrollbar-thin`,[[`scrollbar-width`,`thin`]]),r(`scrollbar-none`,[[`scrollbar-width`,`none`]]);{let e=()=>z([U(`--tw-scrollbar-thumb`,`#0000`,`<color>`),U(`--tw-scrollbar-track`,`#0000`,`<color>`)]);a(`scrollbar-thumb`,{themeKeys:[`--color`],handle:t=>[e(),R(`--tw-scrollbar-thumb`,t),R(`scrollbar-color`,`var(--tw-scrollbar-thumb) var(--tw-scrollbar-track)`)]}),a(`scrollbar-track`,{themeKeys:[`--color`],handle:t=>[e(),R(`--tw-scrollbar-track`,t),R(`scrollbar-color`,`var(--tw-scrollbar-thumb) var(--tw-scrollbar-track)`)]})}r(`scrollbar-gutter-auto`,[[`scrollbar-gutter`,`auto`]]),r(`scrollbar-gutter-stable`,[[`scrollbar-gutter`,`stable`]]),r(`scrollbar-gutter-both`,[[`scrollbar-gutter`,`stable both-edges`]]),r(`truncate`,[[`overflow`,`hidden`],[`text-overflow`,`ellipsis`],[`white-space`,`nowrap`]]),r(`text-ellipsis`,[[`text-overflow`,`ellipsis`]]),r(`text-clip`,[[`text-overflow`,`clip`]]),r(`hyphens-none`,[[`-webkit-hyphens`,`none`],[`hyphens`,`none`]]),r(`hyphens-manual`,[[`-webkit-hyphens`,`manual`],[`hyphens`,`manual`]]),r(`hyphens-auto`,[[`-webkit-hyphens`,`auto`],[`hyphens`,`auto`]]),r(`whitespace-normal`,[[`white-space`,`normal`]]),r(`whitespace-nowrap`,[[`white-space`,`nowrap`]]),r(`whitespace-pre`,[[`white-space`,`pre`]]),r(`whitespace-pre-line`,[[`white-space`,`pre-line`]]),r(`whitespace-pre-wrap`,[[`white-space`,`pre-wrap`]]),r(`whitespace-break-spaces`,[[`white-space`,`break-spaces`]]),i(`tab`,{handleBareValue:({value:e})=>H(e)?e:null,handle:e=>[R(`tab-size`,e)]}),n(`tab`,()=>[{values:[`2`,`4`,`8`]}]),r(`text-wrap`,[[`text-wrap`,`wrap`]]),r(`text-nowrap`,[[`text-wrap`,`nowrap`]]),r(`text-balance`,[[`text-wrap`,`balance`]]),r(`text-pretty`,[[`text-wrap`,`pretty`]]),r(`break-normal`,[[`overflow-wrap`,`normal`],[`word-break`,`normal`]]),r(`break-all`,[[`word-break`,`break-all`]]),r(`break-keep`,[[`word-break`,`keep-all`]]),r(`wrap-anywhere`,[[`overflow-wrap`,`anywhere`]]),r(`wrap-break-word`,[[`overflow-wrap`,`break-word`]]),r(`wrap-normal`,[[`overflow-wrap`,`normal`]]);for(let[e,t]of[[`rounded`,[`border-radius`]],[`rounded-s`,[`border-start-start-radius`,`border-end-start-radius`]],[`rounded-e`,[`border-start-end-radius`,`border-end-end-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-ss`,[`border-start-start-radius`]],[`rounded-se`,[`border-start-end-radius`]],[`rounded-ee`,[`border-end-end-radius`]],[`rounded-es`,[`border-end-start-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`]]])i(e,{themeKeys:[`--radius`],handle:e=>t.map(t=>R(t,e)),staticValues:{none:t.map(e=>R(e,`0`)),full:t.map(e=>R(e,`calc(infinity * 1px)`))}});r(`border-solid`,[[`--tw-border-style`,`solid`],[`border-style`,`solid`]]),r(`border-dashed`,[[`--tw-border-style`,`dashed`],[`border-style`,`dashed`]]),r(`border-dotted`,[[`--tw-border-style`,`dotted`],[`border-style`,`dotted`]]),r(`border-double`,[[`--tw-border-style`,`double`],[`border-style`,`double`]]),r(`border-hidden`,[[`--tw-border-style`,`hidden`],[`border-style`,`hidden`]]),r(`border-none`,[[`--tw-border-style`,`none`],[`border-style`,`none`]]);{let a=function(r,i){t.functional(r,t=>{if(!t.value){if(t.modifier)return;let n=e.get([`--default-border-width`])??`1px`,r=i.width(n);return r?[o(),...r]:void 0}if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`color`,`line-width`,`length`])){case`line-width`:case`length`:{if(t.modifier)return;let e=i.width(n);return e?[o(),...e]:void 0}default:return n=G(n,t.modifier,e),n===null?void 0:i.color(n)}}{let n=K(t,e,[`--border-color`,`--color`]);if(n)return i.color(n)}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--border-width`]);if(n){let e=i.width(n);return e?[o(),...e]:void 0}if(H(t.value.value)){let e=i.width(`${t.value.value}px`);return e?[o(),...e]:void 0}}}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--border-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:!0},{values:[`0`,`2`,`4`,`8`],valueThemeKeys:[`--border-width`]}])},o=()=>z([U(`--tw-border-style`,`solid`)]);a(`border`,{width:e=>[R(`border-style`,`var(--tw-border-style)`),R(`border-width`,e)],color:e=>[R(`border-color`,e)]}),a(`border-x`,{width:e=>[R(`border-inline-style`,`var(--tw-border-style)`),R(`border-inline-width`,e)],color:e=>[R(`border-inline-color`,e)]}),a(`border-y`,{width:e=>[R(`border-block-style`,`var(--tw-border-style)`),R(`border-block-width`,e)],color:e=>[R(`border-block-color`,e)]}),a(`border-s`,{width:e=>[R(`border-inline-start-style`,`var(--tw-border-style)`),R(`border-inline-start-width`,e)],color:e=>[R(`border-inline-start-color`,e)]}),a(`border-e`,{width:e=>[R(`border-inline-end-style`,`var(--tw-border-style)`),R(`border-inline-end-width`,e)],color:e=>[R(`border-inline-end-color`,e)]}),a(`border-bs`,{width:e=>[R(`border-block-start-style`,`var(--tw-border-style)`),R(`border-block-start-width`,e)],color:e=>[R(`border-block-start-color`,e)]}),a(`border-be`,{width:e=>[R(`border-block-end-style`,`var(--tw-border-style)`),R(`border-block-end-width`,e)],color:e=>[R(`border-block-end-color`,e)]}),a(`border-t`,{width:e=>[R(`border-top-style`,`var(--tw-border-style)`),R(`border-top-width`,e)],color:e=>[R(`border-top-color`,e)]}),a(`border-r`,{width:e=>[R(`border-right-style`,`var(--tw-border-style)`),R(`border-right-width`,e)],color:e=>[R(`border-right-color`,e)]}),a(`border-b`,{width:e=>[R(`border-bottom-style`,`var(--tw-border-style)`),R(`border-bottom-width`,e)],color:e=>[R(`border-bottom-color`,e)]}),a(`border-l`,{width:e=>[R(`border-left-style`,`var(--tw-border-style)`),R(`border-left-width`,e)],color:e=>[R(`border-left-color`,e)]}),i(`divide-x`,{defaultValue:e.get([`--default-border-width`])??`1px`,themeKeys:[`--divide-width`,`--border-width`],handleBareValue:({value:e})=>H(e)?`${e}px`:null,handle:e=>[z([U(`--tw-divide-x-reverse`,`0`)]),F(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`divide-x-width`),o(),R(`--tw-divide-x-reverse`,`0`),R(`border-inline-style`,`var(--tw-border-style)`),R(`border-inline-start-width`,`calc(${e} * var(--tw-divide-x-reverse))`),R(`border-inline-end-width`,`calc(${e} * calc(1 - var(--tw-divide-x-reverse)))`)])]}),i(`divide-y`,{defaultValue:e.get([`--default-border-width`])??`1px`,themeKeys:[`--divide-width`,`--border-width`],handleBareValue:({value:e})=>H(e)?`${e}px`:null,handle:e=>[z([U(`--tw-divide-y-reverse`,`0`)]),F(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`divide-y-width`),o(),R(`--tw-divide-y-reverse`,`0`),R(`border-bottom-style`,`var(--tw-border-style)`),R(`border-top-style`,`var(--tw-border-style)`),R(`border-top-width`,`calc(${e} * var(--tw-divide-y-reverse))`),R(`border-bottom-width`,`calc(${e} * calc(1 - var(--tw-divide-y-reverse)))`)])]}),n(`divide-x`,()=>[{values:[`0`,`2`,`4`,`8`],valueThemeKeys:[`--divide-width`,`--border-width`],hasDefaultValue:!0}]),n(`divide-y`,()=>[{values:[`0`,`2`,`4`,`8`],valueThemeKeys:[`--divide-width`,`--border-width`],hasDefaultValue:!0}]),r(`divide-x-reverse`,[()=>z([U(`--tw-divide-x-reverse`,`0`)]),()=>F(`:where(& > :not(:last-child))`,[R(`--tw-divide-x-reverse`,`1`)])]),r(`divide-y-reverse`,[()=>z([U(`--tw-divide-y-reverse`,`0`)]),()=>F(`:where(& > :not(:last-child))`,[R(`--tw-divide-y-reverse`,`1`)])]);for(let e of[`solid`,`dashed`,`dotted`,`double`,`none`])r(`divide-${e}`,[()=>F(`:where(& > :not(:last-child))`,[R(`--tw-sort`,`divide-style`),R(`--tw-border-style`,e),R(`border-style`,e)])])}r(`bg-auto`,[[`background-size`,`auto`]]),r(`bg-cover`,[[`background-size`,`cover`]]),r(`bg-contain`,[[`background-size`,`contain`]]),i(`bg-size`,{handle(e){if(e)return[R(`background-size`,e)]}}),r(`bg-fixed`,[[`background-attachment`,`fixed`]]),r(`bg-local`,[[`background-attachment`,`local`]]),r(`bg-scroll`,[[`background-attachment`,`scroll`]]),r(`bg-top`,[[`background-position`,`top`]]),r(`bg-top-left`,[[`background-position`,`left top`]]),r(`bg-top-right`,[[`background-position`,`right top`]]),r(`bg-bottom`,[[`background-position`,`bottom`]]),r(`bg-bottom-left`,[[`background-position`,`left bottom`]]),r(`bg-bottom-right`,[[`background-position`,`right bottom`]]),r(`bg-left`,[[`background-position`,`left`]]),r(`bg-right`,[[`background-position`,`right`]]),r(`bg-center`,[[`background-position`,`center`]]),i(`bg-position`,{handle(e){if(e)return[R(`background-position`,e)]}}),r(`bg-repeat`,[[`background-repeat`,`repeat`]]),r(`bg-no-repeat`,[[`background-repeat`,`no-repeat`]]),r(`bg-repeat-x`,[[`background-repeat`,`repeat-x`]]),r(`bg-repeat-y`,[[`background-repeat`,`repeat-y`]]),r(`bg-repeat-round`,[[`background-repeat`,`round`]]),r(`bg-repeat-space`,[[`background-repeat`,`space`]]),r(`bg-none`,[[`background-image`,`none`]]);{let e=function(e){let t=`in oklab`;if(e?.kind===`named`)switch(e.value){case`longer`:case`shorter`:case`increasing`:case`decreasing`:t=`in oklch ${e.value} hue`;break;default:t=`in ${e.value}`}else e?.kind===`arbitrary`&&(t=e.value);return t},r=function({negative:t}){return n=>{if(!n.value)return;if(n.value.kind===`arbitrary`){if(n.modifier)return;let e=n.value.value;return(n.value.dataType??V(e,[`angle`]))===`angle`?(e=t?`calc(${e} * -1)`:`${e}`,[R(`--tw-gradient-position`,e),R(`background-image`,`linear-gradient(var(--tw-gradient-stops,${e}))`)]):t?void 0:[R(`--tw-gradient-position`,e),R(`background-image`,`linear-gradient(var(--tw-gradient-stops,${e}))`)]}let r=n.value.value;if(!t&&o.has(r))r=o.get(r);else if(H(r))r=t?`calc(${r}deg * -1)`:`${r}deg`;else return;let i=e(n.modifier);return[R(`--tw-gradient-position`,`${r}`),L(`@supports (background-image: linear-gradient(in lab, red, red))`,[R(`--tw-gradient-position`,`${r} ${i}`)]),R(`background-image`,`linear-gradient(var(--tw-gradient-stops))`)]}},i=function({negative:t}){return n=>{if(n.value?.kind===`arbitrary`){if(n.modifier)return;let e=n.value.value;return[R(`--tw-gradient-position`,e),R(`background-image`,`conic-gradient(var(--tw-gradient-stops,${e}))`)]}let r=e(n.modifier);if(!n.value)return[R(`--tw-gradient-position`,r),R(`background-image`,`conic-gradient(var(--tw-gradient-stops))`)];let i=n.value.value;if(H(i))return i=t?`calc(${i}deg * -1)`:`${i}deg`,[R(`--tw-gradient-position`,`from ${i} ${r}`),R(`background-image`,`conic-gradient(var(--tw-gradient-stops))`)]}},a=[`oklab`,`oklch`,`srgb`,`hsl`,`longer`,`shorter`,`increasing`,`decreasing`],o=new Map([[`to-t`,`to top`],[`to-tr`,`to top right`],[`to-r`,`to right`],[`to-br`,`to bottom right`],[`to-b`,`to bottom`],[`to-bl`,`to bottom left`],[`to-l`,`to left`],[`to-tl`,`to top left`]]);t.functional(`-bg-linear`,r({negative:!0})),t.functional(`bg-linear`,r({negative:!1})),n(`bg-linear`,()=>[{values:[...o.keys()],modifiers:a},{values:[`0`,`30`,`60`,`90`,`120`,`150`,`180`,`210`,`240`,`270`,`300`,`330`],supportsNegative:!0,modifiers:a}]),t.functional(`-bg-conic`,i({negative:!0})),t.functional(`bg-conic`,i({negative:!1})),n(`bg-conic`,()=>[{hasDefaultValue:!0,modifiers:a},{values:[`0`,`30`,`60`,`90`,`120`,`150`,`180`,`210`,`240`,`270`,`300`,`330`],supportsNegative:!0,modifiers:a}]),t.functional(`bg-radial`,t=>{if(!t.value)return[R(`--tw-gradient-position`,e(t.modifier)),R(`background-image`,`radial-gradient(var(--tw-gradient-stops))`)];if(t.value.kind===`arbitrary`){if(t.modifier)return;let e=t.value.value;return[R(`--tw-gradient-position`,e),R(`background-image`,`radial-gradient(var(--tw-gradient-stops,${e}))`)]}}),n(`bg-radial`,()=>[{hasDefaultValue:!0,modifiers:a}])}t.functional(`bg`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`image`,`color`,`percentage`,`position`,`bg-size`,`length`,`url`])){case`percentage`:case`position`:return t.modifier?void 0:[R(`background-position`,n)];case`bg-size`:case`length`:case`size`:return t.modifier?void 0:[R(`background-size`,n)];case`image`:case`url`:return t.modifier?void 0:[R(`background-image`,n)];default:return n=G(n,t.modifier,e),n===null?void 0:[R(`background-color`,n)]}}{let n=K(t,e,[`--background-color`,`--color`]);if(n)return[R(`background-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--background-image`]);if(n)return[R(`background-image`,n)]}}}),n(`bg`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[],valueThemeKeys:[`--background-image`]}]);let m=()=>z([U(`--tw-gradient-position`),U(`--tw-gradient-from`,`#0000`,`<color>`),U(`--tw-gradient-via`,`#0000`,`<color>`),U(`--tw-gradient-to`,`#0000`,`<color>`),U(`--tw-gradient-stops`),U(`--tw-gradient-via-stops`),U(`--tw-gradient-from-position`,`0%`,`<length-percentage>`),U(`--tw-gradient-via-position`,`50%`,`<length-percentage>`),U(`--tw-gradient-to-position`,`100%`,`<length-percentage>`)]);function h(r,i){t.functional(r,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`color`,`length`,`percentage`])){case`length`:case`percentage`:return t.modifier?void 0:i.position(n);default:return n=G(n,t.modifier,e),n===null?void 0:i.color(n)}}{let n=K(t,e,[`--background-color`,`--color`]);if(n)return i.color(n)}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--gradient-color-stop-positions`]);if(n)return i.position(n);if(t.value.value[t.value.value.length-1]===`%`&&H(t.value.value.slice(0,-1)))return i.position(t.value.value)}}}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:Array.from({length:21},(e,t)=>`${t*5}%`),valueThemeKeys:[`--gradient-color-stop-positions`]}])}h(`from`,{color:e=>[m(),R(`--tw-sort`,`--tw-gradient-from`),R(`--tw-gradient-from`,e),R(`--tw-gradient-stops`,`var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))`)],position:e=>[m(),R(`--tw-gradient-from-position`,e)]}),r(`via-none`,[[`--tw-gradient-via-stops`,`initial`]]),h(`via`,{color:e=>[m(),R(`--tw-sort`,`--tw-gradient-via`),R(`--tw-gradient-via`,e),R(`--tw-gradient-via-stops`,`var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position)`),R(`--tw-gradient-stops`,`var(--tw-gradient-via-stops)`)],position:e=>[m(),R(`--tw-gradient-via-position`,e)]}),h(`to`,{color:e=>[m(),R(`--tw-sort`,`--tw-gradient-to`),R(`--tw-gradient-to`,e),R(`--tw-gradient-stops`,`var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))`)],position:e=>[m(),R(`--tw-gradient-to-position`,e)]}),r(`mask-none`,[[`mask-image`,`none`]]),t.functional(`mask`,e=>{if(!e.value||e.modifier||e.value.kind!==`arbitrary`)return;let t=e.value.value;switch(e.value.dataType??V(t,[`image`,`percentage`,`position`,`bg-size`,`length`,`url`])){case`percentage`:case`position`:return e.modifier?void 0:[R(`mask-position`,t)];case`bg-size`:case`length`:case`size`:return[R(`mask-size`,t)];default:return[R(`mask-image`,t)]}}),r(`mask-add`,[[`mask-composite`,`add`]]),r(`mask-subtract`,[[`mask-composite`,`subtract`]]),r(`mask-intersect`,[[`mask-composite`,`intersect`]]),r(`mask-exclude`,[[`mask-composite`,`exclude`]]),r(`mask-alpha`,[[`mask-mode`,`alpha`]]),r(`mask-luminance`,[[`mask-mode`,`luminance`]]),r(`mask-match`,[[`mask-mode`,`match-source`]]),r(`mask-type-alpha`,[[`mask-type`,`alpha`]]),r(`mask-type-luminance`,[[`mask-type`,`luminance`]]),r(`mask-auto`,[[`mask-size`,`auto`]]),r(`mask-cover`,[[`mask-size`,`cover`]]),r(`mask-contain`,[[`mask-size`,`contain`]]),i(`mask-size`,{handle(e){if(e)return[R(`mask-size`,e)]}}),r(`mask-top`,[[`mask-position`,`top`]]),r(`mask-top-left`,[[`mask-position`,`left top`]]),r(`mask-top-right`,[[`mask-position`,`right top`]]),r(`mask-bottom`,[[`mask-position`,`bottom`]]),r(`mask-bottom-left`,[[`mask-position`,`left bottom`]]),r(`mask-bottom-right`,[[`mask-position`,`right bottom`]]),r(`mask-left`,[[`mask-position`,`left`]]),r(`mask-right`,[[`mask-position`,`right`]]),r(`mask-center`,[[`mask-position`,`center`]]),i(`mask-position`,{handle(e){if(e)return[R(`mask-position`,e)]}}),r(`mask-repeat`,[[`mask-repeat`,`repeat`]]),r(`mask-no-repeat`,[[`mask-repeat`,`no-repeat`]]),r(`mask-repeat-x`,[[`mask-repeat`,`repeat-x`]]),r(`mask-repeat-y`,[[`mask-repeat`,`repeat-y`]]),r(`mask-repeat-round`,[[`mask-repeat`,`round`]]),r(`mask-repeat-space`,[[`mask-repeat`,`space`]]),r(`mask-clip-border`,[[`mask-clip`,`border-box`]]),r(`mask-clip-padding`,[[`mask-clip`,`padding-box`]]),r(`mask-clip-content`,[[`mask-clip`,`content-box`]]),r(`mask-clip-fill`,[[`mask-clip`,`fill-box`]]),r(`mask-clip-stroke`,[[`mask-clip`,`stroke-box`]]),r(`mask-clip-view`,[[`mask-clip`,`view-box`]]),r(`mask-no-clip`,[[`mask-clip`,`no-clip`]]),r(`mask-origin-border`,[[`mask-origin`,`border-box`]]),r(`mask-origin-padding`,[[`mask-origin`,`padding-box`]]),r(`mask-origin-content`,[[`mask-origin`,`content-box`]]),r(`mask-origin-fill`,[[`mask-origin`,`fill-box`]]),r(`mask-origin-stroke`,[[`mask-origin`,`stroke-box`]]),r(`mask-origin-view`,[[`mask-origin`,`view-box`]]);let g=()=>z([U(`--tw-mask-linear`,`linear-gradient(#fff, #fff)`),U(`--tw-mask-radial`,`linear-gradient(#fff, #fff)`),U(`--tw-mask-conic`,`linear-gradient(#fff, #fff)`)]);function _(r,i){t.functional(r,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`length`,`percentage`,`color`])){case`color`:return n=G(n,t.modifier,e),n===null?void 0:i.color(n);case`percentage`:return t.modifier||!H(n.slice(0,-1))?void 0:i.position(n);default:return t.modifier?void 0:i.position(n)}}{let n=K(t,e,[`--background-color`,`--color`]);if(n)return i.color(n)}{if(t.modifier)return;let n=V(t.value.value,[`number`,`percentage`]);if(!n)return;switch(n){case`number`:return!e.resolve(null,[`--spacing`])||!Gt(t.value.value)?void 0:i.position(`--spacing(${t.value.value})`);case`percentage`:return H(t.value.value.slice(0,-1))?i.position(t.value.value):void 0;default:return}}}}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:Array.from({length:21},(e,t)=>`${t*5}%`),valueThemeKeys:[`--gradient-color-stop-positions`]}]),n(r,()=>[{values:Array.from({length:21},(e,t)=>`${t*5}%`)},{values:e.get([`--spacing`])?$t:[]},{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)}])}let v=()=>z([U(`--tw-mask-left`,`linear-gradient(#fff, #fff)`),U(`--tw-mask-right`,`linear-gradient(#fff, #fff)`),U(`--tw-mask-bottom`,`linear-gradient(#fff, #fff)`),U(`--tw-mask-top`,`linear-gradient(#fff, #fff)`)]);function y(e,t,n){_(e,{color(e){let r=[g(),v(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-linear`,`var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top)`)];for(let i of[`top`,`right`,`bottom`,`left`])n[i]&&(r.push(R(`--tw-mask-${i}`,`linear-gradient(to ${i}, var(--tw-mask-${i}-from-color) var(--tw-mask-${i}-from-position), var(--tw-mask-${i}-to-color) var(--tw-mask-${i}-to-position))`)),r.push(z([U(`--tw-mask-${i}-from-position`,`0%`),U(`--tw-mask-${i}-to-position`,`100%`),U(`--tw-mask-${i}-from-color`,`black`),U(`--tw-mask-${i}-to-color`,`transparent`)])),r.push(R(`--tw-mask-${i}-${t}-color`,e)));return r},position(e){let r=[g(),v(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-linear`,`var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top)`)];for(let i of[`top`,`right`,`bottom`,`left`])n[i]&&(r.push(R(`--tw-mask-${i}`,`linear-gradient(to ${i}, var(--tw-mask-${i}-from-color) var(--tw-mask-${i}-from-position), var(--tw-mask-${i}-to-color) var(--tw-mask-${i}-to-position))`)),r.push(z([U(`--tw-mask-${i}-from-position`,`0%`),U(`--tw-mask-${i}-to-position`,`100%`),U(`--tw-mask-${i}-from-color`,`black`),U(`--tw-mask-${i}-to-color`,`transparent`)])),r.push(R(`--tw-mask-${i}-${t}-position`,e)));return r}})}y(`mask-x-from`,`from`,{top:!1,right:!0,bottom:!1,left:!0}),y(`mask-x-to`,`to`,{top:!1,right:!0,bottom:!1,left:!0}),y(`mask-y-from`,`from`,{top:!0,right:!1,bottom:!0,left:!1}),y(`mask-y-to`,`to`,{top:!0,right:!1,bottom:!0,left:!1}),y(`mask-t-from`,`from`,{top:!0,right:!1,bottom:!1,left:!1}),y(`mask-t-to`,`to`,{top:!0,right:!1,bottom:!1,left:!1}),y(`mask-r-from`,`from`,{top:!1,right:!0,bottom:!1,left:!1}),y(`mask-r-to`,`to`,{top:!1,right:!0,bottom:!1,left:!1}),y(`mask-b-from`,`from`,{top:!1,right:!1,bottom:!0,left:!1}),y(`mask-b-to`,`to`,{top:!1,right:!1,bottom:!0,left:!1}),y(`mask-l-from`,`from`,{top:!1,right:!1,bottom:!1,left:!0}),y(`mask-l-to`,`to`,{top:!1,right:!1,bottom:!1,left:!0});let b=()=>z([U(`--tw-mask-linear-position`,`0deg`),U(`--tw-mask-linear-from-position`,`0%`),U(`--tw-mask-linear-to-position`,`100%`),U(`--tw-mask-linear-from-color`,`black`),U(`--tw-mask-linear-to-color`,`transparent`)]);i(`mask-linear`,{defaultValue:null,supportsNegative:!0,supportsFractions:!1,handleBareValue({value:e}){if(!H(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`1deg`:`calc(1deg * ${e})`},handleNegativeBareValue({value:e}){if(!H(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`-1deg`:`calc(1deg * -${e})`},handle:e=>[g(),b(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops, var(--tw-mask-linear-position)))`),R(`--tw-mask-linear-position`,e)]}),n(`mask-linear`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`]}]),_(`mask-linear-from`,{color:e=>[g(),b(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),R(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),R(`--tw-mask-linear-from-color`,e)],position:e=>[g(),b(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),R(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),R(`--tw-mask-linear-from-position`,e)]}),_(`mask-linear-to`,{color:e=>[g(),b(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),R(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),R(`--tw-mask-linear-to-color`,e)],position:e=>[g(),b(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),R(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),R(`--tw-mask-linear-to-position`,e)]});let x=()=>z([U(`--tw-mask-radial-from-position`,`0%`),U(`--tw-mask-radial-to-position`,`100%`),U(`--tw-mask-radial-from-color`,`black`),U(`--tw-mask-radial-to-color`,`transparent`),U(`--tw-mask-radial-shape`,`ellipse`),U(`--tw-mask-radial-size`,`farthest-corner`),U(`--tw-mask-radial-position`,`center`)]);r(`mask-circle`,[[`--tw-mask-radial-shape`,`circle`]]),r(`mask-ellipse`,[[`--tw-mask-radial-shape`,`ellipse`]]),r(`mask-radial-closest-side`,[[`--tw-mask-radial-size`,`closest-side`]]),r(`mask-radial-farthest-side`,[[`--tw-mask-radial-size`,`farthest-side`]]),r(`mask-radial-closest-corner`,[[`--tw-mask-radial-size`,`closest-corner`]]),r(`mask-radial-farthest-corner`,[[`--tw-mask-radial-size`,`farthest-corner`]]),r(`mask-radial-at-top`,[[`--tw-mask-radial-position`,`top`]]),r(`mask-radial-at-top-left`,[[`--tw-mask-radial-position`,`top left`]]),r(`mask-radial-at-top-right`,[[`--tw-mask-radial-position`,`top right`]]),r(`mask-radial-at-bottom`,[[`--tw-mask-radial-position`,`bottom`]]),r(`mask-radial-at-bottom-left`,[[`--tw-mask-radial-position`,`bottom left`]]),r(`mask-radial-at-bottom-right`,[[`--tw-mask-radial-position`,`bottom right`]]),r(`mask-radial-at-left`,[[`--tw-mask-radial-position`,`left`]]),r(`mask-radial-at-right`,[[`--tw-mask-radial-position`,`right`]]),r(`mask-radial-at-center`,[[`--tw-mask-radial-position`,`center`]]),i(`mask-radial-at`,{defaultValue:null,supportsNegative:!1,supportsFractions:!1,handle:e=>[R(`--tw-mask-radial-position`,e)]}),i(`mask-radial`,{defaultValue:null,supportsNegative:!1,supportsFractions:!1,handle:e=>[g(),x(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops, var(--tw-mask-radial-size)))`),R(`--tw-mask-radial-size`,e)]}),_(`mask-radial-from`,{color:e=>[g(),x(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),R(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),R(`--tw-mask-radial-from-color`,e)],position:e=>[g(),x(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),R(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),R(`--tw-mask-radial-from-position`,e)]}),_(`mask-radial-to`,{color:e=>[g(),x(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),R(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),R(`--tw-mask-radial-to-color`,e)],position:e=>[g(),x(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),R(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),R(`--tw-mask-radial-to-position`,e)]});let S=()=>z([U(`--tw-mask-conic-position`,`0deg`),U(`--tw-mask-conic-from-position`,`0%`),U(`--tw-mask-conic-to-position`,`100%`),U(`--tw-mask-conic-from-color`,`black`),U(`--tw-mask-conic-to-color`,`transparent`)]);i(`mask-conic`,{defaultValue:null,supportsNegative:!0,supportsFractions:!1,handleBareValue({value:e}){if(!H(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`1deg`:`calc(1deg * ${e})`},handleNegativeBareValue({value:e}){if(!H(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`-1deg`:`calc(1deg * -${e})`},handle:e=>[g(),S(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops, var(--tw-mask-conic-position)))`),R(`--tw-mask-conic-position`,e)]}),n(`mask-conic`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`]}]),_(`mask-conic-from`,{color:e=>[g(),S(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),R(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),R(`--tw-mask-conic-from-color`,e)],position:e=>[g(),S(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),R(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),R(`--tw-mask-conic-from-position`,e)]}),_(`mask-conic-to`,{color:e=>[g(),S(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),R(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),R(`--tw-mask-conic-to-color`,e)],position:e=>[g(),S(),R(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),R(`mask-composite`,`intersect`),R(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),R(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),R(`--tw-mask-conic-to-position`,e)]}),r(`box-decoration-slice`,[[`-webkit-box-decoration-break`,`slice`],[`box-decoration-break`,`slice`]]),r(`box-decoration-clone`,[[`-webkit-box-decoration-break`,`clone`],[`box-decoration-break`,`clone`]]),r(`bg-clip-text`,[[`background-clip`,`text`]]),r(`bg-clip-border`,[[`background-clip`,`border-box`]]),r(`bg-clip-padding`,[[`background-clip`,`padding-box`]]),r(`bg-clip-content`,[[`background-clip`,`content-box`]]),r(`bg-origin-border`,[[`background-origin`,`border-box`]]),r(`bg-origin-padding`,[[`background-origin`,`padding-box`]]),r(`bg-origin-content`,[[`background-origin`,`content-box`]]);for(let e of[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`])r(`bg-blend-${e}`,[[`background-blend-mode`,e]]),r(`mix-blend-${e}`,[[`mix-blend-mode`,e]]);r(`mix-blend-plus-darker`,[[`mix-blend-mode`,`plus-darker`]]),r(`mix-blend-plus-lighter`,[[`mix-blend-mode`,`plus-lighter`]]),r(`fill-none`,[[`fill`,`none`]]),t.functional(`fill`,t=>{if(!t.value)return;if(t.value.kind===`arbitrary`){let n=G(t.value.value,t.modifier,e);return n===null?void 0:[R(`fill`,n)]}let n=K(t,e,[`--fill`,`--color`]);if(n)return[R(`fill`,n)]}),n(`fill`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--fill`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)}]),r(`stroke-none`,[[`stroke`,`none`]]),t.functional(`stroke`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`color`,`number`,`length`,`percentage`])){case`number`:case`length`:case`percentage`:return t.modifier?void 0:[R(`stroke-width`,n)];default:return n=G(t.value.value,t.modifier,e),n===null?void 0:[R(`stroke`,n)]}}{let n=K(t,e,[`--stroke`,`--color`]);if(n)return[R(`stroke`,n)]}{let n=e.resolve(t.value.value,[`--stroke-width`]);if(n)return[R(`stroke-width`,n)];if(H(t.value.value))return[R(`stroke-width`,t.value.value)]}}}),n(`stroke`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--stroke`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`3`],valueThemeKeys:[`--stroke-width`]}]),r(`object-contain`,[[`object-fit`,`contain`]]),r(`object-cover`,[[`object-fit`,`cover`]]),r(`object-fill`,[[`object-fit`,`fill`]]),r(`object-none`,[[`object-fit`,`none`]]),r(`object-scale-down`,[[`object-fit`,`scale-down`]]),i(`object`,{themeKeys:[`--object-position`],handle:e=>[R(`object-position`,e)],staticValues:{top:[R(`object-position`,`top`)],"top-left":[R(`object-position`,`left top`)],"top-right":[R(`object-position`,`right top`)],bottom:[R(`object-position`,`bottom`)],"bottom-left":[R(`object-position`,`left bottom`)],"bottom-right":[R(`object-position`,`right bottom`)],left:[R(`object-position`,`left`)],right:[R(`object-position`,`right`)],center:[R(`object-position`,`center`)]}});for(let[e,t]of[[`p`,`padding`],[`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`]])o(e,[`--padding`,`--spacing`],e=>[R(t,e)]);r(`text-left`,[[`text-align`,`left`]]),r(`text-center`,[[`text-align`,`center`]]),r(`text-right`,[[`text-align`,`right`]]),r(`text-justify`,[[`text-align`,`justify`]]),r(`text-start`,[[`text-align`,`start`]]),r(`text-end`,[[`text-align`,`end`]]),o(`indent`,[`--text-indent`,`--spacing`],e=>[R(`text-indent`,e)],{supportsNegative:!0}),r(`align-baseline`,[[`vertical-align`,`baseline`]]),r(`align-top`,[[`vertical-align`,`top`]]),r(`align-middle`,[[`vertical-align`,`middle`]]),r(`align-bottom`,[[`vertical-align`,`bottom`]]),r(`align-text-top`,[[`vertical-align`,`text-top`]]),r(`align-text-bottom`,[[`vertical-align`,`text-bottom`]]),r(`align-sub`,[[`vertical-align`,`sub`]]),r(`align-super`,[[`vertical-align`,`super`]]),i(`align`,{themeKeys:[],handle:e=>[R(`vertical-align`,e)]}),t.functional(`font`,t=>{if(t.value&&!t.modifier){if(t.value.kind===`arbitrary`){let e=t.value.value;switch(t.value.dataType??V(e,[`number`,`generic-name`,`family-name`])){case`generic-name`:case`family-name`:return[R(`font-family`,e)];default:return[z([U(`--tw-font-weight`)]),R(`--tw-font-weight`,e),R(`font-weight`,e)]}}{let n=e.resolveWith(t.value.value,[`--font`],[`--font-feature-settings`,`--font-variation-settings`]);if(n){let[e,t={}]=n;return[R(`font-family`,e),R(`font-feature-settings`,t[`--font-feature-settings`]),R(`font-variation-settings`,t[`--font-variation-settings`])]}}{let n=e.resolve(t.value.value,[`--font-weight`]);if(n)return[z([U(`--tw-font-weight`)]),R(`--tw-font-weight`,n),R(`font-weight`,n)]}}}),n(`font`,()=>[{values:[],valueThemeKeys:[`--font`]},{values:[],valueThemeKeys:[`--font-weight`]}]),i(`font-features`,{themeKeys:[],handle:e=>[R(`font-feature-settings`,e)]}),r(`uppercase`,[[`text-transform`,`uppercase`]]),r(`lowercase`,[[`text-transform`,`lowercase`]]),r(`capitalize`,[[`text-transform`,`capitalize`]]),r(`normal-case`,[[`text-transform`,`none`]]),r(`italic`,[[`font-style`,`italic`]]),r(`not-italic`,[[`font-style`,`normal`]]),r(`underline`,[[`text-decoration-line`,`underline`]]),r(`overline`,[[`text-decoration-line`,`overline`]]),r(`line-through`,[[`text-decoration-line`,`line-through`]]),r(`no-underline`,[[`text-decoration-line`,`none`]]),r(`font-stretch-normal`,[[`font-stretch`,`normal`]]),r(`font-stretch-ultra-condensed`,[[`font-stretch`,`ultra-condensed`]]),r(`font-stretch-extra-condensed`,[[`font-stretch`,`extra-condensed`]]),r(`font-stretch-condensed`,[[`font-stretch`,`condensed`]]),r(`font-stretch-semi-condensed`,[[`font-stretch`,`semi-condensed`]]),r(`font-stretch-semi-expanded`,[[`font-stretch`,`semi-expanded`]]),r(`font-stretch-expanded`,[[`font-stretch`,`expanded`]]),r(`font-stretch-extra-expanded`,[[`font-stretch`,`extra-expanded`]]),r(`font-stretch-ultra-expanded`,[[`font-stretch`,`ultra-expanded`]]),i(`font-stretch`,{handleBareValue:({value:e})=>{if(!e.endsWith(`%`))return null;let t=Number(e.slice(0,-1));return!H(t)||Number.isNaN(t)||t<50||t>200?null:e},handle:e=>[R(`font-stretch`,e)]}),n(`font-stretch`,()=>[{values:[`50%`,`75%`,`90%`,`95%`,`100%`,`105%`,`110%`,`125%`,`150%`,`200%`]}]),a(`placeholder`,{themeKeys:[`--placeholder-color`,`--color`],handle:e=>[F(`&::placeholder`,[R(`--tw-sort`,`placeholder-color`),R(`color`,e)])]}),r(`decoration-solid`,[[`text-decoration-style`,`solid`]]),r(`decoration-double`,[[`text-decoration-style`,`double`]]),r(`decoration-dotted`,[[`text-decoration-style`,`dotted`]]),r(`decoration-dashed`,[[`text-decoration-style`,`dashed`]]),r(`decoration-wavy`,[[`text-decoration-style`,`wavy`]]),r(`decoration-auto`,[[`text-decoration-thickness`,`auto`]]),r(`decoration-from-font`,[[`text-decoration-thickness`,`from-font`]]),t.functional(`decoration`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`color`,`length`,`percentage`])){case`length`:case`percentage`:return t.modifier?void 0:[R(`text-decoration-thickness`,n)];default:return n=G(n,t.modifier,e),n===null?void 0:[R(`text-decoration-color`,n)]}}{let n=e.resolve(t.value.value,[`--text-decoration-thickness`]);if(n)return t.modifier?void 0:[R(`text-decoration-thickness`,n)];if(H(t.value.value))return t.modifier?void 0:[R(`text-decoration-thickness`,`${t.value.value}px`)]}{let n=K(t,e,[`--text-decoration-color`,`--color`]);if(n)return[R(`text-decoration-color`,n)]}}}),n(`decoration`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--text-decoration-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`],valueThemeKeys:[`--text-decoration-thickness`]}]),i(`animate`,{themeKeys:[`--animate`],handle:e=>[R(`animation`,e)],staticValues:{none:[R(`animation`,`none`)]}});{let a=[`var(--tw-blur,)`,`var(--tw-brightness,)`,`var(--tw-contrast,)`,`var(--tw-grayscale,)`,`var(--tw-hue-rotate,)`,`var(--tw-invert,)`,`var(--tw-saturate,)`,`var(--tw-sepia,)`,`var(--tw-drop-shadow,)`].join(` `),o=[`var(--tw-backdrop-blur,)`,`var(--tw-backdrop-brightness,)`,`var(--tw-backdrop-contrast,)`,`var(--tw-backdrop-grayscale,)`,`var(--tw-backdrop-hue-rotate,)`,`var(--tw-backdrop-invert,)`,`var(--tw-backdrop-opacity,)`,`var(--tw-backdrop-saturate,)`,`var(--tw-backdrop-sepia,)`].join(` `),s=()=>z([U(`--tw-blur`),U(`--tw-brightness`),U(`--tw-contrast`),U(`--tw-grayscale`),U(`--tw-hue-rotate`),U(`--tw-invert`),U(`--tw-opacity`),U(`--tw-saturate`),U(`--tw-sepia`),U(`--tw-drop-shadow`),U(`--tw-drop-shadow-color`),U(`--tw-drop-shadow-alpha`,`100%`,`<percentage>`),U(`--tw-drop-shadow-size`)]),c=()=>z([U(`--tw-backdrop-blur`),U(`--tw-backdrop-brightness`),U(`--tw-backdrop-contrast`),U(`--tw-backdrop-grayscale`),U(`--tw-backdrop-hue-rotate`),U(`--tw-backdrop-invert`),U(`--tw-backdrop-opacity`),U(`--tw-backdrop-saturate`),U(`--tw-backdrop-sepia`)]);t.functional(`filter`,e=>{if(!e.modifier){if(e.value===null)return[s(),R(`filter`,a)];if(e.value.kind===`arbitrary`)return[R(`filter`,e.value.value)];if(e.value.value===`none`)return[R(`filter`,`none`)]}}),t.functional(`backdrop-filter`,e=>{if(!e.modifier){if(e.value===null)return[c(),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)];if(e.value.kind===`arbitrary`)return[R(`-webkit-backdrop-filter`,e.value.value),R(`backdrop-filter`,e.value.value)];if(e.value.value===`none`)return[R(`-webkit-backdrop-filter`,`none`),R(`backdrop-filter`,`none`)]}}),i(`blur`,{themeKeys:[`--blur`],handle:e=>[s(),R(`--tw-blur`,`blur(${e})`),R(`filter`,a)],staticValues:{none:[s(),R(`--tw-blur`,` `),R(`filter`,a)]}}),i(`backdrop-blur`,{themeKeys:[`--backdrop-blur`,`--blur`],handle:e=>[c(),R(`--tw-backdrop-blur`,`blur(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)],staticValues:{none:[c(),R(`--tw-backdrop-blur`,` `),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}}),i(`brightness`,{themeKeys:[`--brightness`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:e=>[s(),R(`--tw-brightness`,`brightness(${e})`),R(`filter`,a)]}),i(`backdrop-brightness`,{themeKeys:[`--backdrop-brightness`,`--brightness`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:e=>[c(),R(`--tw-backdrop-brightness`,`brightness(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`brightness`,()=>[{values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--brightness`]}]),n(`backdrop-brightness`,()=>[{values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--backdrop-brightness`,`--brightness`]}]),i(`contrast`,{themeKeys:[`--contrast`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:e=>[s(),R(`--tw-contrast`,`contrast(${e})`),R(`filter`,a)]}),i(`backdrop-contrast`,{themeKeys:[`--backdrop-contrast`,`--contrast`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:e=>[c(),R(`--tw-backdrop-contrast`,`contrast(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`contrast`,()=>[{values:[`0`,`50`,`75`,`100`,`125`,`150`,`200`],valueThemeKeys:[`--contrast`]}]),n(`backdrop-contrast`,()=>[{values:[`0`,`50`,`75`,`100`,`125`,`150`,`200`],valueThemeKeys:[`--backdrop-contrast`,`--contrast`]}]),i(`grayscale`,{themeKeys:[`--grayscale`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),R(`--tw-grayscale`,`grayscale(${e})`),R(`filter`,a)]}),i(`backdrop-grayscale`,{themeKeys:[`--backdrop-grayscale`,`--grayscale`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),R(`--tw-backdrop-grayscale`,`grayscale(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`grayscale`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--grayscale`],hasDefaultValue:!0}]),n(`backdrop-grayscale`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--backdrop-grayscale`,`--grayscale`],hasDefaultValue:!0}]),i(`hue-rotate`,{supportsNegative:!0,themeKeys:[`--hue-rotate`],handleBareValue:({value:e})=>H(e)?`${e}deg`:null,handle:e=>[s(),R(`--tw-hue-rotate`,`hue-rotate(${e})`),R(`filter`,a)]}),i(`backdrop-hue-rotate`,{supportsNegative:!0,themeKeys:[`--backdrop-hue-rotate`,`--hue-rotate`],handleBareValue:({value:e})=>H(e)?`${e}deg`:null,handle:e=>[c(),R(`--tw-backdrop-hue-rotate`,`hue-rotate(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`hue-rotate`,()=>[{values:[`0`,`15`,`30`,`60`,`90`,`180`],valueThemeKeys:[`--hue-rotate`]}]),n(`backdrop-hue-rotate`,()=>[{values:[`0`,`15`,`30`,`60`,`90`,`180`],valueThemeKeys:[`--backdrop-hue-rotate`,`--hue-rotate`]}]),i(`invert`,{themeKeys:[`--invert`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),R(`--tw-invert`,`invert(${e})`),R(`filter`,a)]}),i(`backdrop-invert`,{themeKeys:[`--backdrop-invert`,`--invert`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),R(`--tw-backdrop-invert`,`invert(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`invert`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--invert`],hasDefaultValue:!0}]),n(`backdrop-invert`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--backdrop-invert`,`--invert`],hasDefaultValue:!0}]),i(`saturate`,{themeKeys:[`--saturate`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:e=>[s(),R(`--tw-saturate`,`saturate(${e})`),R(`filter`,a)]}),i(`backdrop-saturate`,{themeKeys:[`--backdrop-saturate`,`--saturate`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,handle:e=>[c(),R(`--tw-backdrop-saturate`,`saturate(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`saturate`,()=>[{values:[`0`,`50`,`100`,`150`,`200`],valueThemeKeys:[`--saturate`]}]),n(`backdrop-saturate`,()=>[{values:[`0`,`50`,`100`,`150`,`200`],valueThemeKeys:[`--backdrop-saturate`,`--saturate`]}]),i(`sepia`,{themeKeys:[`--sepia`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),R(`--tw-sepia`,`sepia(${e})`),R(`filter`,a)]}),i(`backdrop-sepia`,{themeKeys:[`--backdrop-sepia`,`--sepia`],handleBareValue:({value:e})=>H(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),R(`--tw-backdrop-sepia`,`sepia(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`sepia`,()=>[{values:[`0`,`50`,`100`],valueThemeKeys:[`--sepia`],hasDefaultValue:!0}]),n(`backdrop-sepia`,()=>[{values:[`0`,`50`,`100`],valueThemeKeys:[`--backdrop-sepia`,`--sepia`],hasDefaultValue:!0}]),r(`drop-shadow-none`,[s,[`--tw-drop-shadow`,` `],[`filter`,a]]),t.functional(`drop-shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:Kt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--drop-shadow`]),r=e.resolve(null,[`--drop-shadow`]);return t===null||r===null?void 0:[s(),R(`--tw-drop-shadow-alpha`,n),...ln(`--tw-drop-shadow-size`,t,n,e=>`var(--tw-drop-shadow-color, ${e})`),R(`--tw-drop-shadow`,A(r,`,`).map(e=>`drop-shadow(${e})`).join(` `)),R(`filter`,a)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??V(r,[`color`]))===`color`?(r=G(r,t.modifier,e),r===null?void 0:[s(),R(`--tw-drop-shadow-color`,W(r,`var(--tw-drop-shadow-alpha)`)),R(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]):t.modifier&&!n?void 0:[s(),R(`--tw-drop-shadow-alpha`,n),...ln(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),R(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`),R(`filter`,a)]}{let r=e.get([`--drop-shadow-${t.value.value}`]),i=e.resolve(t.value.value,[`--drop-shadow`]);if(r&&i)return t.modifier&&!n?void 0:n?[s(),R(`--tw-drop-shadow-alpha`,n),...ln(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),R(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`),R(`filter`,a)]:[s(),R(`--tw-drop-shadow-alpha`,n),...ln(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),R(`--tw-drop-shadow`,A(i,`,`).map(e=>`drop-shadow(${e})`).join(` `)),R(`filter`,a)]}{let n=K(t,e,[`--drop-shadow-color`,`--color`]);if(n)return n===`inherit`?[s(),R(`--tw-drop-shadow-color`,`inherit`),R(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]:[s(),R(`--tw-drop-shadow-color`,W(n,`var(--tw-drop-shadow-alpha)`)),R(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]}}),n(`drop-shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--drop-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{valueThemeKeys:[`--drop-shadow`]}]),i(`backdrop-opacity`,{themeKeys:[`--backdrop-opacity`,`--opacity`],handleBareValue:({value:e})=>Kt(e)?`${e}%`:null,handle:e=>[c(),R(`--tw-backdrop-opacity`,`opacity(${e})`),R(`-webkit-backdrop-filter`,o),R(`backdrop-filter`,o)]}),n(`backdrop-opacity`,()=>[{values:Array.from({length:21},(e,t)=>`${t*5}`),valueThemeKeys:[`--backdrop-opacity`,`--opacity`]}])}{let a=`var(--tw-ease, ${e.resolve(null,[`--default-transition-timing-function`])??`ease`})`,o=`var(--tw-duration, ${e.resolve(null,[`--default-transition-duration`])??`0s`})`;i(`transition`,{defaultValue:`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events`,themeKeys:[`--transition-property`],handle:e=>[R(`transition-property`,e),R(`transition-timing-function`,a),R(`transition-duration`,o)],staticValues:{none:[R(`transition-property`,`none`)],all:[R(`transition-property`,`all`),R(`transition-timing-function`,a),R(`transition-duration`,o)],colors:[R(`transition-property`,`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to`),R(`transition-timing-function`,a),R(`transition-duration`,o)],opacity:[R(`transition-property`,`opacity`),R(`transition-timing-function`,a),R(`transition-duration`,o)],shadow:[R(`transition-property`,`box-shadow`),R(`transition-timing-function`,a),R(`transition-duration`,o)],transform:[R(`transition-property`,`transform, translate, scale, rotate`),R(`transition-timing-function`,a),R(`transition-duration`,o)]}}),r(`transition-discrete`,[[`transition-behavior`,`allow-discrete`]]),r(`transition-normal`,[[`transition-behavior`,`normal`]]),i(`delay`,{handleBareValue:({value:e})=>H(e)?`${e}ms`:null,themeKeys:[`--transition-delay`],handle:e=>[R(`transition-delay`,e)]});{let n=()=>z([U(`--tw-duration`)]);r(`duration-initial`,[n,[`--tw-duration`,`initial`]]),t.functional(`duration`,t=>{if(t.modifier||!t.value)return;let r=null;if(t.value.kind===`arbitrary`?r=t.value.value:(r=e.resolve(t.value.fraction??t.value.value,[`--transition-duration`]),r===null&&H(t.value.value)&&(r=`${t.value.value}ms`)),r!==null)return[n(),R(`--tw-duration`,r),R(`transition-duration`,r)]})}n(`delay`,()=>[{values:[`75`,`100`,`150`,`200`,`300`,`500`,`700`,`1000`],valueThemeKeys:[`--transition-delay`]}]),n(`duration`,()=>[{values:[`75`,`100`,`150`,`200`,`300`,`500`,`700`,`1000`],valueThemeKeys:[`--transition-duration`]}])}{let e=()=>z([U(`--tw-ease`)]);i(`ease`,{themeKeys:[`--ease`],handle:t=>[e(),R(`--tw-ease`,t),R(`transition-timing-function`,t)],staticValues:{initial:[e(),R(`--tw-ease`,`initial`)],linear:[e(),R(`--tw-ease`,`linear`),R(`transition-timing-function`,`linear`)]}})}r(`will-change-auto`,[[`will-change`,`auto`]]),r(`will-change-scroll`,[[`will-change`,`scroll-position`]]),r(`will-change-contents`,[[`will-change`,`contents`]]),r(`will-change-transform`,[[`will-change`,`transform`]]),i(`will-change`,{themeKeys:[],handle:e=>[R(`will-change`,e)]}),r(`content-none`,[[`--tw-content`,`none`],[`content`,`none`]]),i(`content`,{themeKeys:[`--content`],handle:e=>[z([U(`--tw-content`,`""`)]),R(`--tw-content`,e),R(`content`,`var(--tw-content)`)]});{let e=`var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)`,t=()=>z([U(`--tw-contain-size`),U(`--tw-contain-layout`),U(`--tw-contain-paint`),U(`--tw-contain-style`)]);r(`contain-none`,[[`contain`,`none`]]),r(`contain-content`,[[`contain`,`content`]]),r(`contain-strict`,[[`contain`,`strict`]]),r(`contain-size`,[t,[`--tw-contain-size`,`size`],[`contain`,e]]),r(`contain-inline-size`,[t,[`--tw-contain-size`,`inline-size`],[`contain`,e]]),r(`contain-layout`,[t,[`--tw-contain-layout`,`layout`],[`contain`,e]]),r(`contain-paint`,[t,[`--tw-contain-paint`,`paint`],[`contain`,e]]),r(`contain-style`,[t,[`--tw-contain-style`,`style`],[`contain`,e]]),i(`contain`,{themeKeys:[],handle:e=>[R(`contain`,e)]})}r(`forced-color-adjust-none`,[[`forced-color-adjust`,`none`]]),r(`forced-color-adjust-auto`,[[`forced-color-adjust`,`auto`]]),o(`leading`,[`--leading`,`--spacing`],e=>[z([U(`--tw-leading`)]),R(`--tw-leading`,e),R(`line-height`,e)],{staticValues:{none:[z([U(`--tw-leading`)]),R(`--tw-leading`,`1`),R(`line-height`,`1`)]}}),i(`tracking`,{supportsNegative:!0,themeKeys:[`--tracking`],handle:e=>[z([U(`--tw-tracking`)]),R(`--tw-tracking`,e),R(`letter-spacing`,e)]}),r(`antialiased`,[[`-webkit-font-smoothing`,`antialiased`],[`-moz-osx-font-smoothing`,`grayscale`]]),r(`subpixel-antialiased`,[[`-webkit-font-smoothing`,`auto`],[`-moz-osx-font-smoothing`,`auto`]]);{let e=`var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)`,t=()=>z([U(`--tw-ordinal`),U(`--tw-slashed-zero`),U(`--tw-numeric-figure`),U(`--tw-numeric-spacing`),U(`--tw-numeric-fraction`)]);r(`normal-nums`,[[`font-variant-numeric`,`normal`]]),r(`ordinal`,[t,[`--tw-ordinal`,`ordinal`],[`font-variant-numeric`,e]]),r(`slashed-zero`,[t,[`--tw-slashed-zero`,`slashed-zero`],[`font-variant-numeric`,e]]),r(`lining-nums`,[t,[`--tw-numeric-figure`,`lining-nums`],[`font-variant-numeric`,e]]),r(`oldstyle-nums`,[t,[`--tw-numeric-figure`,`oldstyle-nums`],[`font-variant-numeric`,e]]),r(`proportional-nums`,[t,[`--tw-numeric-spacing`,`proportional-nums`],[`font-variant-numeric`,e]]),r(`tabular-nums`,[t,[`--tw-numeric-spacing`,`tabular-nums`],[`font-variant-numeric`,e]]),r(`diagonal-fractions`,[t,[`--tw-numeric-fraction`,`diagonal-fractions`],[`font-variant-numeric`,e]]),r(`stacked-fractions`,[t,[`--tw-numeric-fraction`,`stacked-fractions`],[`font-variant-numeric`,e]])}{let a=()=>z([U(`--tw-outline-style`,`solid`)]);t.static(`outline-hidden`,()=>[R(`--tw-outline-style`,`none`),R(`outline-style`,`none`),I(`@media`,`(forced-colors: active)`,[R(`outline`,`2px solid transparent`),R(`outline-offset`,`2px`)])]),r(`outline-none`,[[`--tw-outline-style`,`none`],[`outline-style`,`none`]]),r(`outline-solid`,[[`--tw-outline-style`,`solid`],[`outline-style`,`solid`]]),r(`outline-dashed`,[[`--tw-outline-style`,`dashed`],[`outline-style`,`dashed`]]),r(`outline-dotted`,[[`--tw-outline-style`,`dotted`],[`outline-style`,`dotted`]]),r(`outline-double`,[[`--tw-outline-style`,`double`],[`outline-style`,`double`]]),t.functional(`outline`,t=>{if(t.value===null){if(t.modifier)return;let n=e.get([`--default-outline-width`])??`1px`;return[a(),R(`outline-style`,`var(--tw-outline-style)`),R(`outline-width`,n)]}if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`color`,`length`,`number`,`percentage`])){case`length`:case`number`:case`percentage`:return t.modifier?void 0:[a(),R(`outline-style`,`var(--tw-outline-style)`),R(`outline-width`,n)];default:return n=G(n,t.modifier,e),n===null?void 0:[R(`outline-color`,n)]}}{let n=K(t,e,[`--outline-color`,`--color`]);if(n)return[R(`outline-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--outline-width`]);if(n)return[a(),R(`outline-style`,`var(--tw-outline-style)`),R(`outline-width`,n)];if(H(t.value.value))return[a(),R(`outline-style`,`var(--tw-outline-style)`),R(`outline-width`,`${t.value.value}px`)]}}),n(`outline`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--outline-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:!0},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--outline-width`]}]),i(`outline-offset`,{supportsNegative:!0,themeKeys:[`--outline-offset`],handleBareValue:({value:e})=>H(e)?`${e}px`:null,handle:e=>[R(`outline-offset`,e)]}),n(`outline-offset`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--outline-offset`]}])}i(`opacity`,{themeKeys:[`--opacity`],handleBareValue:({value:e})=>Kt(e)?`${e}%`:null,handle:e=>[R(`opacity`,e)]}),n(`opacity`,()=>[{values:Array.from({length:21},(e,t)=>`${t*5}`),valueThemeKeys:[`--opacity`]}]),i(`underline-offset`,{supportsNegative:!0,themeKeys:[`--text-underline-offset`],handleBareValue:({value:e})=>H(e)?`${e}px`:null,handle:e=>[R(`text-underline-offset`,e)],staticValues:{auto:[R(`text-underline-offset`,`auto`)]}}),n(`underline-offset`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--text-underline-offset`]}]),t.functional(`text`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??V(n,[`color`,`length`,`percentage`,`absolute-size`,`relative-size`])){case`size`:case`length`:case`percentage`:case`absolute-size`:case`relative-size`:if(t.modifier){let r=t.modifier.kind===`arbitrary`?t.modifier.value:e.resolve(t.modifier.value,[`--leading`]);if(!r&&Gt(t.modifier.value)){if(!e.resolve(null,[`--spacing`]))return null;r=`--spacing(${t.modifier.value})`}return!r&&t.modifier.value===`none`&&(r=`1`),r?[R(`font-size`,n),R(`line-height`,r)]:null}return[R(`font-size`,n)];default:return n=G(n,t.modifier,e),n===null?void 0:[R(`color`,n)]}}{let n=K(t,e,[`--text-color`,`--color`]);if(n)return[R(`color`,n)]}{let n=e.resolveWith(t.value.value,[`--text`],[`--line-height`,`--letter-spacing`,`--font-weight`]);if(n){let[r,i={}]=Array.isArray(n)?n:[n];if(t.modifier){let n=t.modifier.kind===`arbitrary`?t.modifier.value:e.resolve(t.modifier.value,[`--leading`]);if(!n&&Gt(t.modifier.value)){if(!e.resolve(null,[`--spacing`]))return null;n=`--spacing(${t.modifier.value})`}if(!n&&t.modifier.value===`none`&&(n=`1`),!n)return null;let i=[R(`font-size`,r)];return n&&i.push(R(`line-height`,n)),i}return typeof i==`string`?[R(`font-size`,r),R(`line-height`,i)]:[R(`font-size`,r),R(`line-height`,i[`--line-height`]?`var(--tw-leading, ${i[`--line-height`]})`:void 0),R(`letter-spacing`,i[`--letter-spacing`]?`var(--tw-tracking, ${i[`--letter-spacing`]})`:void 0),R(`font-weight`,i[`--font-weight`]?`var(--tw-font-weight, ${i[`--font-weight`]})`:void 0)]}}}}),n(`text`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--text-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[],valueThemeKeys:[`--text`],modifiers:[],modifierThemeKeys:[`--leading`]}]);let C=()=>z([U(`--tw-text-shadow-color`),U(`--tw-text-shadow-alpha`,`100%`,`<percentage>`)]);r(`text-shadow-initial`,[C,[`--tw-text-shadow-color`,`initial`]]),t.functional(`text-shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:Kt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--text-shadow`]);return t===null?void 0:[C(),R(`--tw-text-shadow-alpha`,n),...cn(`text-shadow`,t,n,e=>`var(--tw-text-shadow-color, ${e})`)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??V(r,[`color`]))===`color`?(r=G(r,t.modifier,e),r===null?void 0:[C(),R(`--tw-text-shadow-color`,W(r,`var(--tw-text-shadow-alpha)`))]):[C(),R(`--tw-text-shadow-alpha`,n),...cn(`text-shadow`,r,n,e=>`var(--tw-text-shadow-color, ${e})`)]}switch(t.value.value){case`none`:return t.modifier?void 0:[C(),R(`text-shadow`,`none`)];case`inherit`:return t.modifier?void 0:[C(),R(`--tw-text-shadow-color`,`inherit`)]}{let r=e.get([`--text-shadow-${t.value.value}`]);if(r)return[C(),R(`--tw-text-shadow-alpha`,n),...cn(`text-shadow`,r,n,e=>`var(--tw-text-shadow-color, ${e})`)]}{let n=K(t,e,[`--text-shadow-color`,`--color`]);if(n)return[C(),R(`--tw-text-shadow-color`,W(n,`var(--tw-text-shadow-alpha)`))]}}),n(`text-shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--text-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`none`]},{valueThemeKeys:[`--text-shadow`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:e.get([`--text-shadow`])!==null}]);{let i=function(e){return`var(--tw-ring-inset,) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color, ${l})`},a=function(e){return`inset 0 0 0 ${e} var(--tw-inset-ring-color, currentcolor)`},o=[`var(--tw-inset-shadow)`,`var(--tw-inset-ring-shadow)`,`var(--tw-ring-offset-shadow)`,`var(--tw-ring-shadow)`,`var(--tw-shadow)`].join(`, `),s=`0 0 #0000`,c=()=>z([U(`--tw-shadow`,s),U(`--tw-shadow-color`),U(`--tw-shadow-alpha`,`100%`,`<percentage>`),U(`--tw-inset-shadow`,s),U(`--tw-inset-shadow-color`),U(`--tw-inset-shadow-alpha`,`100%`,`<percentage>`),U(`--tw-ring-color`),U(`--tw-ring-shadow`,s),U(`--tw-inset-ring-color`),U(`--tw-inset-ring-shadow`,s),U(`--tw-ring-inset`),U(`--tw-ring-offset-width`,`0px`,`<length>`),U(`--tw-ring-offset-color`,`#fff`),U(`--tw-ring-offset-shadow`,s)]);r(`shadow-initial`,[c,[`--tw-shadow-color`,`initial`]]),t.functional(`shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:Kt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--shadow`]);return t===null?void 0:[c(),R(`--tw-shadow-alpha`,n),...cn(`--tw-shadow`,t,n,e=>`var(--tw-shadow-color, ${e})`),R(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??V(r,[`color`]))===`color`?(r=G(r,t.modifier,e),r===null?void 0:[c(),R(`--tw-shadow-color`,W(r,`var(--tw-shadow-alpha)`))]):[c(),R(`--tw-shadow-alpha`,n),...cn(`--tw-shadow`,r,n,e=>`var(--tw-shadow-color, ${e})`),R(`box-shadow`,o)]}switch(t.value.value){case`none`:return t.modifier?void 0:[c(),R(`--tw-shadow`,s),R(`box-shadow`,o)];case`inherit`:return t.modifier?void 0:[c(),R(`--tw-shadow-color`,`inherit`)]}{let r=e.get([`--shadow-${t.value.value}`]);if(r)return[c(),R(`--tw-shadow-alpha`,n),...cn(`--tw-shadow`,r,n,e=>`var(--tw-shadow-color, ${e})`),R(`box-shadow`,o)]}{let n=K(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),R(`--tw-shadow-color`,W(n,`var(--tw-shadow-alpha)`))]}}),n(`shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--box-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`none`]},{valueThemeKeys:[`--shadow`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:e.get([`--shadow`])!==null}]),r(`inset-shadow-initial`,[c,[`--tw-inset-shadow-color`,`initial`]]),t.functional(`inset-shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:Kt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--inset-shadow`]);return t===null?void 0:[c(),R(`--tw-inset-shadow-alpha`,n),...cn(`--tw-inset-shadow`,t,n,e=>`var(--tw-inset-shadow-color, ${e})`),R(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??V(r,[`color`]))===`color`?(r=G(r,t.modifier,e),r===null?void 0:[c(),R(`--tw-inset-shadow-color`,W(r,`var(--tw-inset-shadow-alpha)`))]):[c(),R(`--tw-inset-shadow-alpha`,n),...cn(`--tw-inset-shadow`,r,n,e=>`var(--tw-inset-shadow-color, ${e})`,`inset`),R(`box-shadow`,o)]}switch(t.value.value){case`none`:return t.modifier?void 0:[c(),R(`--tw-inset-shadow`,`inset ${s}`),R(`box-shadow`,o)];case`inherit`:return t.modifier?void 0:[c(),R(`--tw-inset-shadow-color`,`inherit`)]}{let r=e.get([`--inset-shadow-${t.value.value}`]);if(r)return[c(),R(`--tw-inset-shadow-alpha`,n),...cn(`--tw-inset-shadow`,r,n,e=>`var(--tw-inset-shadow-color, ${e})`),R(`box-shadow`,o)]}{let n=K(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),R(`--tw-inset-shadow-color`,W(n,`var(--tw-inset-shadow-alpha)`))]}}),n(`inset-shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--box-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`none`]},{valueThemeKeys:[`--inset-shadow`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:e.get([`--inset-shadow`])!==null}]),r(`ring-inset`,[c,[`--tw-ring-inset`,`inset`]]);let l=e.get([`--default-ring-color`])??`currentcolor`;t.functional(`ring`,t=>{if(!t.value){if(t.modifier)return;let n=e.get([`--default-ring-width`])??`1px`;return[c(),R(`--tw-ring-shadow`,i(n)),R(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??V(n,[`color`,`length`]))===`length`?t.modifier?void 0:[c(),R(`--tw-ring-shadow`,i(n)),R(`box-shadow`,o)]:(n=G(n,t.modifier,e),n===null?void 0:[R(`--tw-ring-color`,n)])}{let n=K(t,e,[`--ring-color`,`--color`]);if(n)return[R(`--tw-ring-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--ring-width`]);if(n===null&&H(t.value.value)&&(n=`${t.value.value}px`),n)return[c(),R(`--tw-ring-shadow`,i(n)),R(`box-shadow`,o)]}}),n(`ring`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--ring-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--ring-width`],hasDefaultValue:!0}]),t.functional(`inset-ring`,t=>{if(!t.value)return t.modifier?void 0:[c(),R(`--tw-inset-ring-shadow`,a(`1px`)),R(`box-shadow`,o)];if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??V(n,[`color`,`length`]))===`length`?t.modifier?void 0:[c(),R(`--tw-inset-ring-shadow`,a(n)),R(`box-shadow`,o)]:(n=G(n,t.modifier,e),n===null?void 0:[R(`--tw-inset-ring-color`,n)])}{let n=K(t,e,[`--ring-color`,`--color`]);if(n)return[R(`--tw-inset-ring-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--ring-width`]);if(n===null&&H(t.value.value)&&(n=`${t.value.value}px`),n)return[c(),R(`--tw-inset-ring-shadow`,a(n)),R(`box-shadow`,o)]}}),n(`inset-ring`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--ring-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--ring-width`],hasDefaultValue:!0}]);let u=`var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`;t.functional(`ring-offset`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??V(n,[`color`,`length`]))===`length`?t.modifier?void 0:[R(`--tw-ring-offset-width`,n),R(`--tw-ring-offset-shadow`,u)]:(n=G(n,t.modifier,e),n===null?void 0:[R(`--tw-ring-offset-color`,n)])}{let n=e.resolve(t.value.value,[`--ring-offset-width`]);if(n)return t.modifier?void 0:[R(`--tw-ring-offset-width`,n),R(`--tw-ring-offset-shadow`,u)];if(H(t.value.value))return t.modifier?void 0:[R(`--tw-ring-offset-width`,`${t.value.value}px`),R(`--tw-ring-offset-shadow`,u)]}{let n=K(t,e,[`--ring-offset-color`,`--color`]);if(n)return[R(`--tw-ring-offset-color`,n)]}}})}return n(`ring-offset`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--ring-offset-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--ring-offset-width`]}]),t.functional(`@container`,e=>{let t=null;if(e.value===null?t=`inline-size`:e.value.kind===`arbitrary`?t=e.value.value:e.value.kind===`named`&&e.value.value===`normal`?t=`normal`:e.value.kind===`named`&&e.value.value===`size`&&(t=`size`),t!==null)return e.modifier?[R(`container-type`,t),R(`container-name`,e.modifier.value)]:[R(`container-type`,t)]}),n(`@container`,()=>[{values:[`normal`],valueThemeKeys:[],hasDefaultValue:!0}]),t}var an=[`number`,`integer`,`ratio`,`percentage`];function on(e){let t=w(e.params);return Cn(t)?n=>{let r={"--value":{usedSpacingInteger:!1,usedSpacingNumber:!1,themeKeys:new Set,literals:new Set},"--modifier":{usedSpacingInteger:!1,usedSpacingNumber:!1,themeKeys:new Set,literals:new Set}};P(e.nodes,e=>{if(e.kind!==`declaration`||!e.value||!e.value.includes(`--value(`)&&!e.value.includes(`--modifier(`))return;let t=M(e.value);P(t,e=>{if(e.kind!==`function`)return;if(e.value===`--spacing`&&!(r[`--modifier`].usedSpacingNumber&&r[`--value`].usedSpacingNumber))return P(e.nodes,e=>{if(e.kind!==`function`||e.value!==`--value`&&e.value!==`--modifier`)return;let t=e.value;for(let n of e.nodes)if(n.kind===`word`){if(n.value===`integer`)r[t].usedSpacingInteger||=!0;else if(n.value===`number`&&(r[t].usedSpacingNumber||=!0,r[`--modifier`].usedSpacingNumber&&r[`--value`].usedSpacingNumber))return N.Stop}}),N.Continue;if(e.value!==`--value`&&e.value!==`--modifier`)return;let t=A(j(e.nodes),`,`);for(let[e,n]of t.entries())n=n.replace(/\\\*/g,`*`),n=n.replace(/--(.*?)\s--(.*?)/g,`--$1-*--$2`),n=n.replace(/\s+/g,``),n=n.replace(/(-\*){2,}/g,`-*`),n[0]===`-`&&n[1]===`-`&&!n.includes(`(`)&&!n.includes(`-*`)&&(n+=`-*`),t[e]=n;e.nodes=M(t.join(`,`));for(let t of e.nodes)if(t.kind===`word`&&(t.value[0]===`"`||t.value[0]===`'`)&&t.value[0]===t.value[t.value.length-1]){let n=t.value.slice(1,-1);r[e.value].literals.add(n)}else if(t.kind===`word`&&t.value[0]===`-`&&t.value[1]===`-`){let n=t.value.replace(/-\*.*$/g,``);r[e.value].themeKeys.add(n)}else if(t.kind===`word`&&(t.value[0]!==`[`||t.value[t.value.length-1]!==`]`)&&!an.includes(t.value)){console.warn(`Unsupported bare value data type: "${t.value}".
13
- Only valid data types are: ${an.map(e=>`"${e}"`).join(`, `)}.
14
- `);let n=t.value,r=structuredClone(e);P(r.nodes,e=>{if(e.kind===`word`&&e.value===n)return N.ReplaceSkip({kind:`word`,value:`¶`})});let i=`^`.repeat(j([t]).length),a=j([r]).indexOf(`¶`),o=["```css",j([e]),` `.repeat(a)+i,"```"].join(`
15
- `);console.warn(o)}}),e.value=j(t)}),n.utilities.functional(t.slice(0,-2),t=>{let r=Te(e),i=t.value,a=t.modifier,o=!1,s=!1,c=!1,l=!1,u=new Map,d=!1;if(P([r],(e,t)=>{let r=t.parent;if(r?.kind!==`rule`&&r?.kind!==`at-rule`||e.kind!==`declaration`||!e.value)return;let f=!1,p=M(e.value);if(P(p,t=>{if(t.kind===`function`){if(t.value===`--value`){o=!0;let a=sn(i,t,n);return a?(s=!0,a.ratio?d=!0:u.set(e,r),N.ReplaceSkip(a.nodes)):(f=!0,N.Stop)}if(t.value===`--modifier`){c=!0;let e=sn(a,t,n);return e?(l=!0,N.ReplaceSkip(e.nodes)):(f=!0,N.Stop)}}}),f)return N.ReplaceSkip([]);e.value=j(p)}),!o||!s||c&&!l&&a!==null||d&&l||a&&!d&&!l)return null;if(d)for(let[e,t]of u){let n=t.nodes.indexOf(e);n!==-1&&t.nodes.splice(n,1)}return r.nodes}),n.utilities.suggest(t.slice(0,-2),()=>{let e=[],t=[];for(let[i,{literals:a,usedSpacingNumber:o,usedSpacingInteger:s,themeKeys:c}]of[[e,r[`--value`]],[t,r[`--modifier`]]]){for(let e of a)i.push(e);if(o)i.push(...$t);else if(s)for(let e of $t)H(e)&&i.push(e);for(let e of n.theme.keysInNamespaces(c))i.push(e.replace(nn,(e,t,n)=>`${t}.${n}`))}return[{values:e,modifiers:t}]})}:Sn(t)?n=>{n.utilities.static(t,()=>e.nodes.map(Te))}:null}function sn(e,t,n){if(e===null){for(let e of t.nodes)if(e.kind===`function`&&e.value===`--default`)return{nodes:e.nodes};return}for(let r of t.nodes){if(e.kind===`named`&&r.kind===`word`&&(r.value[0]===`'`||r.value[0]===`"`)&&r.value[r.value.length-1]===r.value[0]&&r.value.slice(1,-1)===e.value)return{nodes:M(e.value)};if(e.kind===`named`&&r.kind===`word`&&r.value[0]===`-`&&r.value[1]===`-`){let t=r.value;if(t.endsWith(`-*`)){t=t.slice(0,-2);let r=n.theme.resolve(e.value,[t]);if(r)return{nodes:M(r)}}else{let r=t.split(`-*`);if(r.length<=1)continue;let i=[r.shift()],a=n.theme.resolveWith(e.value,i,r);if(a){let[,e={}]=a;{let t=e[r.pop()];if(t)return{nodes:M(t)}}}}}else if(e.kind===`named`&&r.kind===`word`){if(!an.includes(r.value))continue;let t=r.value===`ratio`&&`fraction`in e?e.fraction:e.value;if(!t)continue;let n=V(t,[r.value]);if(n===null)continue;if(n===`ratio`){let[e,n]=A(t,`/`).map(Number);if(!H(e)||!H(n))continue}else if(n===`number`&&!Gt(t)||n===`percentage`&&!H(t.slice(0,-1)))continue;if(n===`ratio`){let[e,n]=A(t,`/`);return{nodes:M(`${e.trim()} / ${n.trim()}`),ratio:!0}}return{nodes:M(t),ratio:!1}}else if(e.kind===`arbitrary`&&r.kind===`word`&&r.value[0]===`[`&&r.value[r.value.length-1]===`]`){let t=r.value.slice(1,-1);if(t===`*`)return{nodes:M(e.value)};if(`dataType`in e&&e.dataType&&e.dataType!==t)continue;if(`dataType`in e&&e.dataType||V(e.value,[t])!==null)return{nodes:M(e.value)}}}}function cn(e,t,n,r,i=``){let a=!1,o=Qt(t,e=>n==null?r(e):e.startsWith(`current`)?r(W(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(tn(e,n))));function s(e){return i?A(e,`,`).map(e=>i.trim()+` `+e.trim()).join(`, `):e}return a?[R(e,s(Qt(t,r))),L(`@supports (color: lab(from red l a b))`,[R(e,s(o))])]:[R(e,s(o))]}function ln(e,t,n,r,i=``){let a=!1,o=A(t,`,`).map(e=>Qt(e,e=>n==null?r(e):e.startsWith(`current`)?r(W(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(tn(e,n))))).map(e=>`drop-shadow(${e})`).join(` `);return a?[R(e,i+A(t,`,`).map(e=>`drop-shadow(${Qt(e,r)})`).join(` `)),L(`@supports (color: lab(from red l a b))`,[R(e,i+o)])]:[R(e,i+o)]}var un=/^-?[a-z][a-zA-Z0-9_-]*/,dn=37,fn=47,pn=46,mn=97,hn=122,gn=65,_n=90,vn=48,yn=57,bn=95,xn=45;function Sn(e){let t=un.exec(e);if(t===null)return!1;let n=t[0],r=e.slice(n.length);if(r.length===0&&n.endsWith(`-`))return!1;if(r.length===0)return!0;let i=!1;for(let e=0;e<r.length;e++){let t=r.charCodeAt(e);switch(t){case dn:{if(e!==r.length-1)return!1;let t=(r[e-1]||n[n.length-1]||``).charCodeAt(0);if(t<vn||t>yn)return!1;break}case fn:if(e===r.length-1||i)return!1;i=!0;break;case pn:{let t=(r[e-1]||n[n.length-1]||``).charCodeAt(0);if(t<vn||t>yn)return!1;let i=(r[e+1]||``).charCodeAt(0);if(i<vn||i>yn)return!1;break}case bn:case xn:continue;default:if(t>=mn&&t<=hn||t>=gn&&t<=_n||t>=vn&&t<=yn)continue;return!1}}return!0}function Cn(e){if(!e.endsWith(`-*`))return!1;e=e.slice(0,-2);let t=un.exec(e);if(t===null)return!1;let n=t[0];return e.slice(n.length).length===0}var wn={"--alpha":Tn,"--spacing":q,"--theme":En,theme:Dn};function Tn(e,t,n,...r){let[i,a]=A(n,`/`).map(e=>e.trim());if(!i||!a)throw Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||`var(--my-color)`} / ${a||`50%`})\``);if(r.length>0)throw Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||`var(--my-color)`} / ${a||`50%`})\``);return W(i,a)}function q(e,t,n,...r){if(!n)throw Error(`The --spacing(…) function requires an argument, but received none.`);if(r.length>0)throw Error(`The --spacing(\u2026) function only accepts a single argument, but received ${r.length+1}.`);let i=e.theme.resolve(null,[`--spacing`]);if(!i)throw Error("The --spacing(…) function requires that the `--spacing` theme variable exists, but it was not found.");let a=ft.get(n);if(a){if(a[0]===0)return`0px`;if(a[0]===1)return i}return`calc(${i} * ${n})`}function En(e,t,n,...r){if(!n.startsWith(`--`))throw Error(`The --theme(…) function can only be used with CSS variables from your theme.`);let i=!1;n.endsWith(` inline`)&&(i=!0,n=n.slice(0,-7)),t.kind===`at-rule`&&(i=!0);let a=e.resolveThemeValue(n,i);if(!a){if(r.length>0)return r.join(`, `);throw Error(`Could not resolve value for theme function: \`theme(${n})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(r.length===0)return a;let o=r.join(`, `);if(o===`initial`)return a;if(a===`initial`)return o;if(a.startsWith(`var(`)||a.startsWith(`theme(`)||a.startsWith(`--theme(`)){let e=M(a);return jn(e,o),j(e)}return a}function Dn(e,t,n,...r){n=An(n);let i=e.resolveThemeValue(n);if(!i&&r.length>0)return r.join(`, `);if(!i)throw Error(`Could not resolve value for theme function: \`theme(${n})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return i}var J=new RegExp(Object.keys(wn).map(e=>`${e}\\(`).join(`|`));function On(e,t){let n=0;return P(e,e=>{if(e.kind===`declaration`&&e.value&&J.test(e.value)){n|=8,e.value=kn(e.value,e,t);return}e.kind===`at-rule`&&(e.name===`@media`||e.name===`@custom-media`||e.name===`@container`||e.name===`@supports`)&&J.test(e.params)&&(n|=8,e.params=kn(e.params,e,t))}),n}function kn(e,t,n){let r=M(e);return P(r,e=>{if(e.kind===`function`&&e.value in wn){let r=A(j(e.nodes).trim(),`,`).map(e=>e.trim()),i=wn[e.value](n,t,...r);return N.Replace(M(i))}}),j(r)}function An(e){if(e[0]!==`'`&&e[0]!==`"`)return e;let t=``,n=e[0];for(let r=1;r<e.length-1;r++){let i=e[r],a=e[r+1];i===`\\`&&(a===n||a===`\\`)?(t+=a,r++):t+=i}return t}function jn(e,t){P(e,e=>{if(e.kind===`function`&&(e.value===`var`||e.value===`theme`||e.value===`--theme`)){if(e.nodes.length===1)e.nodes.push({kind:`word`,value:`, ${t}`});else{let n=e.nodes[e.nodes.length-1];n.kind===`word`&&n.value===`initial`&&(n.value=t)}}})}function Mn(){return[]}function Nn(){return[]}function Pn(){return[]}function Fn(e,t){let{astNodes:n,nodeSorting:r}=Kn(Array.from(t),e),i=new Map(t.map(e=>[e,null])),a=0n;for(let e of n){let t=r.get(e)?.candidate;t&&i.set(t,i.get(t)??a++)}return t.map(e=>[e,i.get(e)??null])}function Y(e){if(e[0]!==`[`||e[e.length-1]!==`]`)return null;let t=1,n=t,r=e.length-1;for(;X(e.charCodeAt(t));)t++;for(n=t;t<r;t++){let n=e.charCodeAt(t);if(n===92){t++;continue}if(!(n>=65&&n<=90)&&!(n>=97&&n<=122)&&!(n>=48&&n<=57)&&n!==45&&n!==95&&!(n>=128))break}if(n===t)return null;let i=e.slice(n,t);for(;X(e.charCodeAt(t));)t++;if(t===r)return{attribute:i,operator:null,quote:null,value:null,sensitivity:null};let a=null,o=e.charCodeAt(t);if(o===61)a=`=`,t++;else if((o===126||o===124||o===94||o===36||o===42)&&e.charCodeAt(t+1)===61)a=e[t]+`=`,t+=2;else return null;for(;X(e.charCodeAt(t));)t++;if(t===r)return null;let s=``,c=null;if(o=e.charCodeAt(t),o===39||o===34){c=e[t],t++,n=t;for(let n=t;n<r;n++){let r=e.charCodeAt(n);r===o?t=n+1:r===92&&n++}s=e.slice(n,t-1)}else{for(n=t;t<r&&!X(e.charCodeAt(t));)t++;s=e.slice(n,t)}for(;X(e.charCodeAt(t));)t++;if(t===r)return{attribute:i,operator:a,quote:c,value:s,sensitivity:null};let l=null;switch(e.charCodeAt(t)){case 105:case 73:l=`i`,t++;break;case 115:case 83:l=`s`,t++;break;default:return null}for(;X(e.charCodeAt(t));)t++;return t===r?{attribute:i,operator:a,quote:c,value:s,sensitivity:l}:null}function X(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}var In=/^@?[a-z0-9][a-zA-Z0-9_-]*(?<![_-])$/,Ln=class{compareFns=new Map;variants=new Map;completions=new Map;groupOrder=null;lastOrder=0;static(e,t,{compounds:n,order:r}={}){this.set(e,{kind:`static`,applyFn:t,compoundsWith:0,compounds:n??2,order:r})}fromAst(e,t,n){let r=[],i=!1;P(t,e=>{e.kind===`rule`?r.push(e.selector):e.kind===`at-rule`&&e.name===`@variant`?i=!0:e.kind===`at-rule`&&e.name!==`@slot`&&r.push(`${e.name} ${e.params}`)}),this.static(e,e=>{let r=t.map(Te);i&&Hn(r,n),Vn(r,e.nodes),e.nodes=r},{compounds:Rn(r)})}functional(e,t,{compounds:n,order:r}={}){this.set(e,{kind:`functional`,applyFn:t,compoundsWith:0,compounds:n??2,order:r})}compound(e,t,n,{compounds:r,order:i}={}){this.set(e,{kind:`compound`,applyFn:n,compoundsWith:t,compounds:r??2,order:i})}group(e,t){this.groupOrder=this.nextOrder(),t&&this.compareFns.set(this.groupOrder,t),e(),this.groupOrder=null}has(e){return this.variants.has(e)}get(e){return this.variants.get(e)}kind(e){return this.variants.get(e)?.kind}compoundsWith(e,t){let n=this.variants.get(e),r=typeof t==`string`?this.variants.get(t):t.kind===`arbitrary`?{compounds:Rn([t.selector])}:this.variants.get(t.root);return!(!n||!r||n.kind!==`compound`||r.compounds===0||n.compoundsWith===0||(n.compoundsWith&r.compounds)===0)}suggest(e,t){this.completions.set(e,t)}getCompletions(e){return this.completions.get(e)?.()??[]}compare(e,t){if(e===t)return 0;if(e===null)return-1;if(t===null)return 1;if(e.kind===`arbitrary`&&t.kind===`arbitrary`)return e.selector<t.selector?-1:1;if(e.kind===`arbitrary`)return 1;if(t.kind===`arbitrary`)return-1;let n=this.variants.get(e.root).order,r=n-this.variants.get(t.root).order;if(r!==0)return r;if(e.kind===`compound`&&t.kind===`compound`){let n=this.compare(e.variant,t.variant);return n===0?e.modifier&&t.modifier?e.modifier.value<t.modifier.value?-1:1:e.modifier?1:t.modifier?-1:0:n}let i=this.compareFns.get(n);if(i!==void 0)return i(e,t);if(e.root!==t.root)return e.root<t.root?-1:1;let a=e.value,o=t.value;return a===null?-1:o===null||a.kind===`arbitrary`&&o.kind!==`arbitrary`?1:a.kind!==`arbitrary`&&o.kind===`arbitrary`||a.value<o.value?-1:1}keys(){return this.variants.keys()}entries(){return this.variants.entries()}set(e,{kind:t,applyFn:n,compounds:r,compoundsWith:i,order:a}){let o=this.variants.get(e);o?Object.assign(o,{kind:t,applyFn:n,compounds:r}):(a===void 0&&(this.lastOrder=this.nextOrder(),a=this.lastOrder),this.variants.set(e,{kind:t,applyFn:n,order:a,compoundsWith:i,compounds:r}))}nextOrder(){return this.groupOrder??this.lastOrder+1}};function Rn(e){let t=0;for(let n of e){if(n[0]===`@`){if(!n.startsWith(`@media`)&&!n.startsWith(`@supports`)&&!n.startsWith(`@container`))return 0;t|=1;continue}if(n.includes(`::`))return 0;t|=2}return t}function zn(e){let t=new Ln;function n(e,n,{compounds:r}={}){r??=Rn(n),t.static(e,e=>{e.nodes=n.map(t=>L(t,e.nodes))},{compounds:r})}n(`*`,[`:is(& > *)`],{compounds:0}),n(`**`,[`:is(& *)`],{compounds:0});function r(e,t){return t.map(t=>{if(e===`@container`){let e=M(t.trim());return e.length>=1&&e[0].kind===`function`?`not ${t}`:e.length>=3&&e[0].kind===`word`&&e[0].value===`not`&&e[2].kind===`function`?(e.splice(0,2),j(e)):e.length>=5&&e[0].kind===`word`&&e[2].kind===`word`&&e[2].value===`not`&&e[4].kind===`function`?(e.splice(2,2),j(e)):e.length>=3&&e[0].kind===`word`&&e[0].value!==`not`&&e[2].kind===`function`?(e.splice(1,0,{kind:`separator`,value:` `},{kind:`word`,value:`not`}),j(e)):`not ${t}`}{t=t.trim();let e=A(t,` `);return e[0]===`not`?e.slice(1).join(` `):`not ${t}`}})}let i=[`@media`,`@supports`,`@container`];function a(e){for(let t of i){if(t!==e.name)continue;let n=A(e.params,`,`);return n.length>1?null:(n=r(e.name,n),I(e.name,n.join(`, `)))}return null}function o(e){return e.includes(`::`)?null:`&:not(${A(e,`,`).map(e=>(e=e.replaceAll(`&`,`*`),e)).join(`, `)})`}t.compound(`not`,3,(e,t)=>{if(t.variant.kind===`arbitrary`&&t.variant.relative||t.modifier)return null;let n=!1;if(P([e],(t,r)=>{if(t.kind!==`rule`&&t.kind!==`at-rule`||t.nodes.length>0)return N.Continue;let i=[],s=[],c=r.path();c.push(t);for(let e of c)e.kind===`at-rule`?i.push(e):e.kind===`rule`&&s.push(e);if(i.length>1||s.length>1)return N.Stop;let l=[];for(let e of s){let t=o(e.selector);if(!t)return n=!1,N.Stop;l.push(F(t,[]))}for(let e of i){let t=a(e);if(!t)return n=!1,N.Stop;l.push(t)}return Object.assign(e,F(`&`,l)),n=!0,N.Skip}),e.kind===`rule`&&e.selector===`&`&&e.nodes.length===1&&Object.assign(e,e.nodes[0]),!n)return null}),t.suggest(`not`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`not`,e))),t.compound(`group`,2,(t,n)=>{if(n.variant.kind===`arbitrary`&&n.variant.relative)return null;let r=n.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:``}group\\/${n.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:``}group)`,i=!1;if(P([t],(e,t)=>{if(e.kind!==`rule`)return N.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,N.Stop;let n=e.selector.replaceAll(`&`,r);A(n,`,`).length>1&&(n=`:is(${n})`),e.selector=`&:is(${n} *)`,i=!0}),!i)return null}),t.suggest(`group`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`group`,e))),t.compound(`peer`,2,(t,n)=>{if(n.variant.kind===`arbitrary`&&n.variant.relative)return null;let r=n.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:``}peer\\/${n.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:``}peer)`,i=!1;if(P([t],(e,t)=>{if(e.kind!==`rule`)return N.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,N.Stop;let n=e.selector.replaceAll(`&`,r);A(n,`,`).length>1&&(n=`:is(${n})`),e.selector=`&:is(${n} ~ *)`,i=!0}),!i)return null}),t.suggest(`peer`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`peer`,e))),n(`first-letter`,[`&::first-letter`]),n(`first-line`,[`&::first-line`]),n(`marker`,[`& *::marker`,`&::marker`,`& *::-webkit-details-marker`,`&::-webkit-details-marker`]),n(`selection`,[`& *::selection`,`&::selection`]),n(`file`,[`&::file-selector-button`]),n(`placeholder`,[`&::placeholder`]),n(`backdrop`,[`&::backdrop`]),n(`details-content`,[`&::details-content`]);{let e=function(){return z([I(`@property`,`--tw-content`,[R(`syntax`,`"*"`),R(`initial-value`,`""`),R(`inherits`,`false`)])])};t.static(`before`,t=>{t.nodes=[F(`&::before`,[e(),R(`content`,`var(--tw-content)`),...t.nodes])]},{compounds:0}),t.static(`after`,t=>{t.nodes=[F(`&::after`,[e(),R(`content`,`var(--tw-content)`),...t.nodes])]},{compounds:0})}n(`first`,[`&:first-child`]),n(`last`,[`&:last-child`]),n(`only`,[`&:only-child`]),n(`odd`,[`&:nth-child(odd)`]),n(`even`,[`&:nth-child(even)`]),n(`first-of-type`,[`&:first-of-type`]),n(`last-of-type`,[`&:last-of-type`]),n(`only-of-type`,[`&:only-of-type`]),n(`visited`,[`&:visited`]),n(`target`,[`&:target`]),n(`open`,[`&:is([open], :popover-open, :open)`]),n(`default`,[`&:default`]),n(`checked`,[`&:checked`]),n(`indeterminate`,[`&:indeterminate`]),n(`placeholder-shown`,[`&:placeholder-shown`]),n(`autofill`,[`&:autofill`]),n(`optional`,[`&:optional`]),n(`required`,[`&:required`]),n(`valid`,[`&:valid`]),n(`invalid`,[`&:invalid`]),n(`user-valid`,[`&:user-valid`]),n(`user-invalid`,[`&:user-invalid`]),n(`in-range`,[`&:in-range`]),n(`out-of-range`,[`&:out-of-range`]),n(`read-only`,[`&:read-only`]),n(`empty`,[`&:empty`]),n(`focus-within`,[`&:focus-within`]),t.static(`hover`,e=>{e.nodes=[F(`&:hover`,[I(`@media`,`(hover: hover)`,e.nodes)])]}),n(`focus`,[`&:focus`]),n(`focus-visible`,[`&:focus-visible`]),n(`active`,[`&:active`]),n(`enabled`,[`&:enabled`]),n(`disabled`,[`&:disabled`]),n(`inert`,[`&:is([inert], [inert] *)`]),t.compound(`in`,2,(e,t)=>{if(t.modifier)return null;let n=!1;if(P([e],(e,t)=>{if(e.kind!==`rule`)return N.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,N.Stop;e.selector=`:where(${e.selector.replaceAll(`&`,`*`)}) &`,n=!0}),!n)return null}),t.suggest(`in`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`in`,e))),t.compound(`has`,2,(e,t)=>{if(t.modifier)return null;let n=!1;if(P([e],(e,t)=>{if(e.kind!==`rule`)return N.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,N.Stop;e.selector=`&:has(${e.selector.replaceAll(`&`,`*`)})`,n=!0}),!n)return null}),t.suggest(`has`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`has`,e))),t.functional(`aria`,(e,t)=>{if(!t.value||t.modifier)return null;if(t.value.kind===`arbitrary`){let n=`[aria-${Bn(t.value.value)}]`;if(Y(n)===null)return null;e.nodes=[F(`&${n}`,e.nodes)]}else{let n=`[aria-${t.value.value}="true"]`;if(Y(n)===null)return null;e.nodes=[F(`&${n}`,e.nodes)]}}),t.suggest(`aria`,()=>[`busy`,`checked`,`disabled`,`expanded`,`hidden`,`pressed`,`readonly`,`required`,`selected`]),t.functional(`data`,(e,t)=>{if(!t.value||t.modifier)return null;let n=`[data-${Bn(t.value.value)}]`;if(Y(n)===null)return null;e.nodes=[F(`&${n}`,e.nodes)]}),t.functional(`nth`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!H(t.value.value))return null;e.nodes=[F(`&:nth-child(${t.value.value})`,e.nodes)]}),t.functional(`nth-last`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!H(t.value.value))return null;e.nodes=[F(`&:nth-last-child(${t.value.value})`,e.nodes)]}),t.functional(`nth-of-type`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!H(t.value.value))return null;e.nodes=[F(`&:nth-of-type(${t.value.value})`,e.nodes)]}),t.functional(`nth-last-of-type`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!H(t.value.value))return null;e.nodes=[F(`&:nth-last-of-type(${t.value.value})`,e.nodes)]}),t.functional(`supports`,(e,t)=>{if(!t.value||t.modifier)return null;let n=t.value.value;if(n===null)return null;if(/^[\w-]*\s*\(/.test(n)){e.nodes=[I(`@supports`,n.replace(/\b(and|or|not)\b/g,` $1 `),e.nodes)];return}n.includes(`:`)||(n=`${n}: var(--tw)`),(n[0]!==`(`||n[n.length-1]!==`)`)&&(n=`(${n})`),e.nodes=[I(`@supports`,n,e.nodes)]},{compounds:1}),n(`motion-safe`,[`@media (prefers-reduced-motion: no-preference)`]),n(`motion-reduce`,[`@media (prefers-reduced-motion: reduce)`]),n(`contrast-more`,[`@media (prefers-contrast: more)`]),n(`contrast-less`,[`@media (prefers-contrast: less)`]);{let n=function(e,t,n,r){if(e===t)return 0;let i=r.get(e);if(i===null)return n===`asc`?-1:1;let a=r.get(t);return a===null?n===`asc`?1:-1:ut(i,a,n)};{let r=e.namespace(`--breakpoint`),i=new O(t=>{switch(t.kind){case`static`:return e.resolveValue(t.root,[`--breakpoint`])??null;case`functional`:{if(!t.value||t.modifier)return null;let n=null;return t.value.kind===`arbitrary`?n=t.value.value:t.value.kind===`named`&&(n=e.resolveValue(t.value.value,[`--breakpoint`])),!n||n.includes(`var(`)?null:n}case`arbitrary`:case`compound`:return null}});t.group(()=>{t.functional(`max`,(e,t)=>{if(t.modifier)return null;let n=i.get(t);if(n===null)return null;e.nodes=[I(`@media`,`(width < ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`desc`,i)),t.suggest(`max`,()=>Array.from(r.keys()).filter(e=>e!==null)),t.group(()=>{for(let[n,r]of e.namespace(`--breakpoint`))n!==null&&t.static(n,e=>{e.nodes=[I(`@media`,`(width >= ${r})`,e.nodes)]},{compounds:1});t.functional(`min`,(e,t)=>{if(t.modifier)return null;let n=i.get(t);if(n===null)return null;e.nodes=[I(`@media`,`(width >= ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`asc`,i)),t.suggest(`min`,()=>Array.from(r.keys()).filter(e=>e!==null))}{let r=e.namespace(`--container`),i=new O(t=>{switch(t.kind){case`functional`:{if(t.value===null)return null;let n=null;return t.value.kind===`arbitrary`?n=t.value.value:t.value.kind===`named`&&(n=e.resolveValue(t.value.value,[`--container`])),!n||n.includes(`var(`)?null:n}case`static`:case`arbitrary`:case`compound`:return null}});t.group(()=>{t.functional(`@max`,(e,t)=>{let n=i.get(t);if(n===null)return null;e.nodes=[I(`@container`,t.modifier?`${t.modifier.value} (width < ${n})`:`(width < ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`desc`,i)),t.suggest(`@max`,()=>Array.from(r.keys()).filter(e=>e!==null)),t.group(()=>{t.functional(`@`,(e,t)=>{let n=i.get(t);if(n===null)return null;e.nodes=[I(`@container`,t.modifier?`${t.modifier.value} (width >= ${n})`:`(width >= ${n})`,e.nodes)]},{compounds:1}),t.functional(`@min`,(e,t)=>{let n=i.get(t);if(n===null)return null;e.nodes=[I(`@container`,t.modifier?`${t.modifier.value} (width >= ${n})`:`(width >= ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`asc`,i)),t.suggest(`@min`,()=>Array.from(r.keys()).filter(e=>e!==null)),t.suggest(`@`,()=>Array.from(r.keys()).filter(e=>e!==null))}}return n(`portrait`,[`@media (orientation: portrait)`]),n(`landscape`,[`@media (orientation: landscape)`]),n(`ltr`,[`&:where(:dir(ltr), [dir="ltr"], [dir="ltr"] *)`]),n(`rtl`,[`&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *)`]),n(`dark`,[`@media (prefers-color-scheme: dark)`]),n(`starting`,[`@starting-style`]),n(`print`,[`@media print`]),n(`forced-colors`,[`@media (forced-colors: active)`]),n(`inverted-colors`,[`@media (inverted-colors: inverted)`]),n(`pointer-none`,[`@media (pointer: none)`]),n(`pointer-coarse`,[`@media (pointer: coarse)`]),n(`pointer-fine`,[`@media (pointer: fine)`]),n(`any-pointer-none`,[`@media (any-pointer: none)`]),n(`any-pointer-coarse`,[`@media (any-pointer: coarse)`]),n(`any-pointer-fine`,[`@media (any-pointer: fine)`]),n(`noscript`,[`@media (scripting: none)`]),t}function Bn(e){if(e.includes(`=`)){let[t,...n]=A(e,`=`),r=n.join(`=`).trim();if(r[0]===`'`||r[0]===`"`)return e;if(r.length>1){let e=r[r.length-1];if(r[r.length-2]===` `&&(e===`i`||e===`I`||e===`s`||e===`S`))return`${t}="${r.slice(0,-2)}" ${e}`}return`${t}="${r}"`}return e}function Vn(e,t){P(e,e=>{if(e.kind===`at-rule`&&e.name===`@slot`)return N.ReplaceSkip(t);if(e.kind===`at-rule`&&(e.name===`@keyframes`||e.name===`@property`))return Object.assign(e,z([I(e.name,e.params,e.nodes)])),N.Skip})}function Hn(e,t){let n=0;return P(e,e=>{if(e.kind!==`at-rule`||e.name!==`@variant`)return;let r=[],i=A(e.params,`,`);for(let[n,a]of i.entries()){let o=F(`&`,n===i.length-1?e.nodes:e.nodes.map(Te)),s=A(a,`:`);for(let e=s.length-1;e>=0;--e){let n=s[e].trim();if(!n)throw Error("Cannot use `@variant` with empty variant");let r=t.parseVariant(n);if(r===null)throw Error(`Cannot use \`@variant\` with unknown variant: ${n}`);if(Jn(o,r,t.variants)===null)throw Error(`Cannot use \`@variant\` with variant: ${n}`)}o.selector===`&`?r.push(...o.nodes):r.push(o)}return n|=32,N.Replace(r)}),n}function Un(e,t){let n=rn(e),r=zn(e),i=new O(e=>Xe(e,u)),a=new O(e=>Array.from(Je(e,u))),o=new O(e=>new O(t=>{let n=qn(t,u,e);try{let e=n.map(e=>e.node);On(e,u),Hn(e,u)}catch{return[]}return n})),s=new O(t=>{for(let n of be(t))e.markUsedVariable(n)});function c(e){let n=[];for(let r of e){let e=!0,{astNodes:i}=Kn([r],u,{onInvalidCandidate(){e=!1}});t&&P(i,e=>(e.src??=t,N.Continue)),i=De(i,u,0),n.push(e?i:[])}return n}function l(e){return c(e).map(e=>e.length>0?je(e):null)}let u={theme:e,utilities:n,variants:r,invalidCandidates:new Set,important:!1,candidatesToCss:l,candidatesToAst:c,getClassOrder(e){return Fn(this,e)},getClassList(){return Mn(this)},getVariants(){return Nn(this)},parseCandidate(e){return a.get(e)},parseVariant(e){return i.get(e)},compileAstNodes(e,t=1){return o.get(t).get(e)},printCandidate(e){return Qe(u,e)},printVariant(e){return et(e)},getVariantOrder(){let e=Array.from(i.values());e.sort((e,t)=>this.variants.compare(e,t));let t=new Map,n,r=0;for(let i of e)i!==null&&(n!==void 0&&this.variants.compare(n,i)!==0&&r++,t.set(i,r),n=i);return t},resolveThemeValue(t,n=!0){let r=t.lastIndexOf(`/`),i=null;r!==-1&&(i=t.slice(r+1).trim(),t=t.slice(0,r).trim());let a=e.resolve(null,[t],+!!n)??void 0;return i&&a?W(a,i):a},trackUsedVariables(e){s.get(e)},canonicalizeCandidates(e,t){return Pn(this,e,t)},storage:{}};return u}var Wn=`container-type.pointer-events.visibility.position.inset.inset-inline.inset-block.inset-inline-start.inset-inline-end.inset-block-start.inset-block-end.top.right.bottom.left.isolation.z-index.order.grid-column.grid-column-start.grid-column-end.grid-row.grid-row-start.grid-row-end.float.clear.--tw-container-component.margin.margin-inline.margin-block.margin-inline-start.margin-inline-end.margin-block-start.margin-block-end.margin-top.margin-right.margin-bottom.margin-left.box-sizing.display.field-sizing.aspect-ratio.height.max-height.min-height.width.max-width.min-width.flex.flex-shrink.flex-grow.flex-basis.table-layout.caption-side.border-collapse.border-spacing.transform-origin.translate.--tw-translate-x.--tw-translate-y.--tw-translate-z.scale.--tw-scale-x.--tw-scale-y.--tw-scale-z.rotate.--tw-rotate-x.--tw-rotate-y.--tw-rotate-z.--tw-skew-x.--tw-skew-y.transform.zoom.animation.cursor.touch-action.--tw-pan-x.--tw-pan-y.--tw-pinch-zoom.resize.scroll-snap-type.--tw-scroll-snap-strictness.scroll-snap-align.scroll-snap-stop.scroll-margin.scroll-margin-inline.scroll-margin-block.scroll-margin-inline-start.scroll-margin-inline-end.scroll-margin-block-start.scroll-margin-block-end.scroll-margin-top.scroll-margin-right.scroll-margin-bottom.scroll-margin-left.scroll-padding.scroll-padding-inline.scroll-padding-block.scroll-padding-inline-start.scroll-padding-inline-end.scroll-padding-block-start.scroll-padding-block-end.scroll-padding-top.scroll-padding-right.scroll-padding-bottom.scroll-padding-left.scrollbar-width.scrollbar-color.scrollbar-gutter.list-style-position.list-style-type.list-style-image.appearance.columns.break-before.break-inside.break-after.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-template-columns.grid-template-rows.flex-direction.flex-wrap.place-content.place-items.align-content.align-items.justify-content.justify-items.gap.column-gap.row-gap.--tw-space-x-reverse.--tw-space-y-reverse.divide-x-width.divide-y-width.--tw-divide-y-reverse.divide-style.divide-color.place-self.align-self.justify-self.overflow.overflow-x.overflow-y.overscroll-behavior.overscroll-behavior-x.overscroll-behavior-y.scroll-behavior.border-radius.border-start-radius.border-end-radius.border-top-radius.border-right-radius.border-bottom-radius.border-left-radius.border-start-start-radius.border-start-end-radius.border-end-end-radius.border-end-start-radius.border-top-left-radius.border-top-right-radius.border-bottom-right-radius.border-bottom-left-radius.border-width.border-inline-width.border-block-width.border-inline-start-width.border-inline-end-width.border-block-start-width.border-block-end-width.border-top-width.border-right-width.border-bottom-width.border-left-width.border-style.border-inline-style.border-block-style.border-inline-start-style.border-inline-end-style.border-block-start-style.border-block-end-style.border-top-style.border-right-style.border-bottom-style.border-left-style.border-color.border-inline-color.border-block-color.border-inline-start-color.border-inline-end-color.border-block-start-color.border-block-end-color.border-top-color.border-right-color.border-bottom-color.border-left-color.background-color.background-image.--tw-gradient-position.--tw-gradient-stops.--tw-gradient-via-stops.--tw-gradient-from.--tw-gradient-from-position.--tw-gradient-via.--tw-gradient-via-position.--tw-gradient-to.--tw-gradient-to-position.mask-image.--tw-mask-top.--tw-mask-top-from-color.--tw-mask-top-from-position.--tw-mask-top-to-color.--tw-mask-top-to-position.--tw-mask-right.--tw-mask-right-from-color.--tw-mask-right-from-position.--tw-mask-right-to-color.--tw-mask-right-to-position.--tw-mask-bottom.--tw-mask-bottom-from-color.--tw-mask-bottom-from-position.--tw-mask-bottom-to-color.--tw-mask-bottom-to-position.--tw-mask-left.--tw-mask-left-from-color.--tw-mask-left-from-position.--tw-mask-left-to-color.--tw-mask-left-to-position.--tw-mask-linear.--tw-mask-linear-position.--tw-mask-linear-from-color.--tw-mask-linear-from-position.--tw-mask-linear-to-color.--tw-mask-linear-to-position.--tw-mask-radial.--tw-mask-radial-shape.--tw-mask-radial-size.--tw-mask-radial-position.--tw-mask-radial-from-color.--tw-mask-radial-from-position.--tw-mask-radial-to-color.--tw-mask-radial-to-position.--tw-mask-conic.--tw-mask-conic-position.--tw-mask-conic-from-color.--tw-mask-conic-from-position.--tw-mask-conic-to-color.--tw-mask-conic-to-position.box-decoration-break.background-size.background-attachment.background-clip.background-position.background-repeat.background-origin.mask-composite.mask-mode.mask-type.mask-size.mask-clip.mask-position.mask-repeat.mask-origin.fill.stroke.stroke-width.object-fit.object-position.padding.padding-inline.padding-block.padding-inline-start.padding-inline-end.padding-block-start.padding-block-end.padding-top.padding-right.padding-bottom.padding-left.text-align.text-indent.vertical-align.font-family.font-feature-settings.font-size.line-height.font-weight.letter-spacing.text-wrap.overflow-wrap.word-break.text-overflow.hyphens.white-space.tab-size.color.text-transform.font-style.font-stretch.font-variant-numeric.text-decoration-line.text-decoration-color.text-decoration-style.text-decoration-thickness.text-underline-offset.-webkit-font-smoothing.placeholder-color.caret-color.accent-color.color-scheme.opacity.background-blend-mode.mix-blend-mode.box-shadow.--tw-shadow.--tw-shadow-color.--tw-ring-shadow.--tw-ring-color.--tw-inset-shadow.--tw-inset-shadow-color.--tw-inset-ring-shadow.--tw-inset-ring-color.--tw-ring-offset-width.--tw-ring-offset-color.outline.outline-width.outline-offset.outline-color.--tw-blur.--tw-brightness.--tw-contrast.--tw-drop-shadow.--tw-grayscale.--tw-hue-rotate.--tw-invert.--tw-saturate.--tw-sepia.filter.--tw-backdrop-blur.--tw-backdrop-brightness.--tw-backdrop-contrast.--tw-backdrop-grayscale.--tw-backdrop-hue-rotate.--tw-backdrop-invert.--tw-backdrop-opacity.--tw-backdrop-saturate.--tw-backdrop-sepia.backdrop-filter.transition-property.transition-behavior.transition-delay.transition-duration.transition-timing-function.will-change.contain.content.forced-color-adjust`.split(`.`);function Gn(e,t){let n=e.length,r=t.length,i=n<r?n:r;for(let n=0;n<i;n++){let r=e.charCodeAt(n),i=t.charCodeAt(n);if(r>=48&&r<=57&&i>=48&&i<=57){let a=n,o=n+1,s=n,c=n+1;for(r=e.charCodeAt(o);r>=48&&r<=57;)r=e.charCodeAt(++o);for(i=t.charCodeAt(c);i>=48&&i<=57;)i=t.charCodeAt(++c);let l=e.slice(a,o),u=t.slice(s,c),d=Number(l)-Number(u);if(d)return d;if(l<u)return-1;if(l>u)return 1;continue}if(r!==i)return r-i}return e.length-t.length}function Kn(e,t,{onInvalidCandidate:n,respectImportant:r}={}){let i=new Map,a=[],o=new Map;for(let r of e){if(t.invalidCandidates.has(r)){n?.(r);continue}let e=t.parseCandidate(r);if(e.length===0){n?.(r);continue}o.set(r,e)}let s=0;(r??!0)&&(s|=1);let c=t.getVariantOrder();for(let[e,r]of o){let o=!1;for(let n of r){let r=t.compileAstNodes(n,s);if(r.length!==0){o=!0;for(let{node:t,propertySort:o}of r){let r=0n;for(let e of n.variants)r|=1n<<BigInt(c.get(e));i.set(t,{properties:o,variants:r,candidate:e}),a.push(t)}}}o||n?.(e)}return a.sort((e,t)=>{let n=i.get(e),r=i.get(t);if(n.variants-r.variants!==0n)return Number(n.variants-r.variants);let a=0;for(;a<n.properties.order.length&&a<r.properties.order.length&&n.properties.order[a]===r.properties.order[a];)a+=1;return(n.properties.order[a]??1/0)-(r.properties.order[a]??1/0)||r.properties.count-n.properties.count||Gn(n.candidate,r.candidate)}),{astNodes:a,nodeSorting:i}}function qn(e,t,n){let r=Xn(e,t);if(r.length===0)return[];let i=t.important&&!!(n&1),a=[],o=`.${C(e.raw)}`;for(let n of r){let r=Qn(n);(e.important||i)&&Zn(n);let s={kind:`rule`,selector:o,nodes:n};for(let n of e.variants)if(Jn(s,n,t.variants)===null)return[];a.push({node:s,propertySort:r})}return a}function Jn(e,t,n,r=0){if(t.kind===`arbitrary`){if(t.relative&&r===0)return null;e.nodes=[L(t.selector,e.nodes)];return}let{applyFn:i}=n.get(t.root);if(t.kind===`compound`){let a=I(`@slot`);if(Jn(a,t.variant,n,r+1)===null||t.root===`not`&&a.nodes.length>1)return null;for(let e of a.nodes)if(e.kind!==`rule`&&e.kind!==`at-rule`||i(e,t)===null)return null;P(a.nodes,t=>{if((t.kind===`rule`||t.kind===`at-rule`)&&t.nodes.length<=0)return t.nodes=e.nodes,N.Skip}),e.nodes=a.nodes;return}if(i(e,t)===null)return null}function Yn(e){let t=e.options?.types??[];return t.length>1&&t.includes(`any`)}function Xn(e,t){if(e.kind===`arbitrary`){let n=e.value;return e.modifier&&(n=G(n,e.modifier,t.theme)),n===null?[]:[[R(e.property,n)]]}let n=t.utilities.get(e.root)??[],r=[],i=n.filter(e=>!Yn(e));for(let t of i){if(t.kind!==e.kind)continue;let n=t.compileFn(e);if(n!==void 0){if(n===null){if(t.options?.types?.length)return r;continue}r.push(n)}}if(r.length>0)return r;let a=n.filter(e=>Yn(e));for(let t of a){if(t.kind!==e.kind)continue;let n=t.compileFn(e);if(n!==void 0){if(n===null){if(t.options?.types?.length)return r;continue}r.push(n)}}return r}function Zn(e){for(let t of e)t.kind!==`at-root`&&(t.kind===`declaration`?t.important=!0:(t.kind===`rule`||t.kind===`at-rule`)&&Zn(t.nodes))}function Qn(e){let t=new Set,n=0,r=e.slice(),i=!1;for(;r.length>0;){let e=r.shift();if(e.kind===`declaration`){if(e.value===void 0||(n++,i))continue;if(e.property===`--tw-sort`){let n=Wn.indexOf(e.value??``);if(n!==-1){t.add(n),i=!0;continue}}let r=Wn.indexOf(e.property);r!==-1&&t.add(r)}else if(e.kind===`rule`||e.kind===`at-rule`)for(let t of e.nodes)r.push(t)}return{order:Array.from(t).sort((e,t)=>e-t),count:n}}function $n(e,t){let n=0,r=L(`&`,e),i=new Set,a=new O(()=>new Set),o=new O(()=>new Set);P([r],(e,r)=>{if(e.kind===`at-rule`){if(e.name===`@keyframes`)return P(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@apply`)throw Error("You cannot use `@apply` inside `@keyframes`.")}),N.Skip;if(e.name===`@utility`){let n=e.params.replace(/-\*$/,``);o.get(n).add(e),P(e.nodes,n=>{if(n.kind===`at-rule`&&n.name===`@apply`){i.add(e);for(let r of er(n,t))a.get(e).add(r)}});return}if(e.name===`@apply`){if(r.parent===null)return;n|=1,i.add(r.parent);for(let n of er(e,t))for(let e of r.path())i.has(e)&&a.get(e).add(n)}}});let s=new Set,c=[],l=new Set;function u(e,n=[]){if(!s.has(e)){if(l.has(e)){let r=n[(n.indexOf(e)+1)%n.length];throw e.kind===`at-rule`&&e.name===`@utility`&&r.kind===`at-rule`&&r.name===`@utility`&&P(e.nodes,e=>{if(e.kind!==`at-rule`||e.name!==`@apply`)return;let n=e.params.split(/\s+/g);for(let e of n)for(let n of t.parseCandidate(e))switch(n.kind){case`arbitrary`:break;case`static`:case`functional`:if(r.params.replace(/-\*$/,``)===n.root)throw Error(`You cannot \`@apply\` the \`${e}\` utility here because it creates a circular dependency.`)}}),Error(`Circular dependency detected:
12
+ `,t){n+=s.length;let t=n;n+=2+e.value.length+2,e.dst=[r,t,n],n+=1}}else if(e.kind===`context`||e.kind===`at-root`)return``;return o}let a=``;for(let t of e)a+=i(t,0);return r.code=a,a}function Ne(e,t){let n=[];return N(e,(e,r)=>{if(t(e))return n=r.path(),n.push(e),M.Stop}),n}function Pe(e,t,n,r=new Set){if(r.has(e)||(r.add(e),t.getOptions(e)&24))return!0;{let i=n.get(e)??[];for(let e of i)if(Pe(e,t,n,r))return!0}return!1}function Fe(e){return e.split(/[\s,]+/)}var Ie=[`calc`,`min`,`max`,`clamp`,`mod`,`rem`,`sin`,`cos`,`tan`,`asin`,`acos`,`atan`,`atan2`,`pow`,`sqrt`,`hypot`,`log`,`exp`,`round`];function Le(e){return e.indexOf(`(`)!==-1&&Ie.some(t=>e.includes(`${t}(`))}function Re(e){if(!Ie.some(t=>e.includes(t)))return e;let t=``,n=[],r=null,i=null;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=48&&o<=57||r!==null&&(o===37||o>=97&&o<=122||o>=65&&o<=90)?r=a:(i=r,r=null),o===40){t+=e[a];let r=a;for(let t=a-1;t>=0;t--){let n=e.charCodeAt(t);if(n>=48&&n<=57)r=t;else if(n>=97&&n<=122)r=t;else break}let i=e.slice(r,a);if(Ie.includes(i)){n.unshift(!0);continue}if(n[0]&&i===``){n.unshift(!0);continue}n.unshift(!1);continue}if(o===41)t+=e[a],n.shift();else if(o===44&&n[0]){t+=`, `;continue}else{if(o===32&&n[0]&&t.charCodeAt(t.length-1)===32)continue;if((o===43||o===42||o===47||o===45)&&n[0]){let n=t.trimEnd(),r=n.charCodeAt(n.length-1),o=n.charCodeAt(n.length-2),s=e.charCodeAt(a+1);if((r===101||r===69)&&o>=48&&o<=57){t+=e[a];continue}if(r===43||r===42||r===47||r===45){t+=e[a];continue}if(r===40||r===44){t+=e[a];continue}e.charCodeAt(a-1)===32?t+=`${e[a]} `:r>=48&&r<=57||s>=48&&s<=57||r===41||s===40||s===43||s===42||s===47||s===45||i!==null&&i===a-1?t+=` ${e[a]} `:t+=e[a]}else t+=e[a]}}return t}function ze(e){if(e.indexOf(`(`)===-1)return Be(e);let t=j(e);return Ve(t),e=A(t),e=Re(e),e}function Be(e,t=!1){let n=``;for(let r=0;r<e.length;r++){let i=e[r];i===`\\`&&e[r+1]===`_`?(n+=`_`,r+=1):n+=i===`_`&&!t?` `:i}return n}function Ve(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=Be(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=Be(t.value);for(let e=0;e<t.nodes.length;e++){if(e==0&&t.nodes[e].kind===`word`){t.nodes[e].value=Be(t.nodes[e].value,!0);continue}Ve([t.nodes[e]])}break}t.value=Be(t.value),Ve(t.nodes);break;case`separator`:case`word`:t.value=Be(t.value);break;default:He(t)}}function He(e){throw Error(`Unexpected value: ${e}`)}var Ue=new Uint8Array(256);function We(e){let t=0,n=e.length;for(let r=0;r<n;r++){let i=e.charCodeAt(r);switch(i){case 92:r+=1;break;case 39:case 34:for(;++r<n;){let t=e.charCodeAt(r);if(t===92){r+=1;continue}if(t===i)break}break;case 40:Ue[t]=41,t++;break;case 91:Ue[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===Ue[t-1]&&t--;break;case 59:if(t===0)return!1}}return!0}var Ge=58,Ke=45,qe=97,Je=122,Ye=/^[a-zA-Z0-9_.%-]+$/;function*Xe(e,t){let n=k(e,`:`);if(t.theme.prefix){if(n.length===1||n[0]!==t.theme.prefix)return null;n.shift()}let r=n.pop(),i=[];for(let e=n.length-1;e>=0;--e){let r=t.parseVariant(n[e]);if(r===null)return;i.push(r)}let a=!1;r[r.length-1]===`!`?(a=!0,r=r.slice(0,-1)):r[0]===`!`&&(a=!0,r=r.slice(1)),t.utilities.has(r,`static`)&&!r.includes(`[`)&&(yield{kind:`static`,root:r,variants:i,important:a,raw:e});let[o,s=null,c]=k(r,`/`);if(c)return;let l=s===null?null:Ze(s);if(s!==null&&l===null)return;if(o[0]===`[`){if(o[o.length-1]!==`]`)return;let t=o.charCodeAt(1);if(t!==Ke&&!(t>=qe&&t<=Je))return;o=o.slice(1,-1);let n=o.indexOf(`:`);if(n===-1||n===0||n===o.length-1)return;let r=o.slice(0,n),s=ze(o.slice(n+1));if(!We(s))return;yield{kind:`arbitrary`,property:r,value:s,modifier:l,variants:i,important:a,raw:e};return}let u;if(o[o.length-1]===`]`){let e=o.indexOf(`-[`);if(e===-1)return;let n=o.slice(0,e);if(!t.utilities.has(n,`functional`))return;u=[[n,o.slice(e+1)]]}else if(o[o.length-1]===`)`){let e=o.indexOf(`-(`);if(e===-1)return;let n=o.slice(0,e);if(!t.utilities.has(n,`functional`))return;let r=o.slice(e+2,-1),i=k(r,`:`),a=null;if(i.length===2&&(a=i[0],r=i[1]),r[0]!==`-`||r[1]!==`-`||!We(r))return;u=[[n,a===null?`[var(${r})]`:`[${a}:var(${r})]`]]}else u=$e(o,e=>t.utilities.has(e,`functional`));for(let[t,n]of u){let r={kind:`functional`,root:t,modifier:l,value:null,variants:i,important:a,raw:e};if(n===null){yield r;continue}{let e=n.indexOf(`[`);if(e!==-1){if(n[n.length-1]!==`]`)return;let t=ze(n.slice(e+1,-1));if(!We(t))continue;let i=null;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n===Ge){i=t.slice(0,e),t=t.slice(e+1);break}if(!(n===Ke||n>=qe&&n<=Je))break}if(t.length===0||t.trim().length===0||i===``)continue;r.value={kind:`arbitrary`,dataType:i||null,value:t}}else{let e=s===null||r.modifier?.kind===`arbitrary`?null:`${n}/${s}`;if(!Ye.test(n))continue;r.value={kind:`named`,value:n,fraction:e}}}yield r}}function Ze(e){if(e[0]===`[`&&e[e.length-1]===`]`){let t=ze(e.slice(1,-1));return!We(t)||t.length===0||t.trim().length===0?null:{kind:`arbitrary`,value:t}}return e[0]===`(`&&e[e.length-1]===`)`?(e=e.slice(1,-1),e[0]!==`-`||e[1]!==`-`||!We(e)?null:(e=`var(${e})`,{kind:`arbitrary`,value:ze(e)})):Ye.test(e)?{kind:`named`,value:e}:null}function Qe(e,t){if(e[0]===`[`&&e[e.length-1]===`]`){if(e[1]===`@`&&e.includes(`&`))return null;let t=ze(e.slice(1,-1));if(!We(t)||t.length===0||t.trim().length===0)return null;let n=t[0]===`>`||t[0]===`+`||t[0]===`~`;return!n&&t[0]!==`@`&&!t.includes(`&`)&&(t=`&:is(${t})`),{kind:`arbitrary`,selector:t,relative:n}}{let[n,r=null,i]=k(e,`/`);if(i)return null;let a=$e(n,e=>t.variants.has(e));for(let[e,n]of a)switch(t.variants.kind(e)){case`static`:return n!==null||r!==null?null:{kind:`static`,root:e};case`functional`:{let t=r===null?null:Ze(r);if(r!==null&&t===null)return null;if(n===null)return{kind:`functional`,root:e,modifier:t,value:null};if(n[n.length-1]===`]`){if(n[0]!==`[`)continue;let r=ze(n.slice(1,-1));return!We(r)||r.length===0||r.trim().length===0?null:{kind:`functional`,root:e,modifier:t,value:{kind:`arbitrary`,value:r}}}if(n[n.length-1]===`)`){if(n[0]!==`(`)continue;let r=ze(n.slice(1,-1));return!We(r)||r.length===0||r.trim().length===0||r[0]!==`-`||r[1]!==`-`?null:{kind:`functional`,root:e,modifier:t,value:{kind:`arbitrary`,value:`var(${r})`}}}if(!Ye.test(n))continue;return{kind:`functional`,root:e,modifier:t,value:{kind:`named`,value:n}}}case`compound`:{if(n===null)return null;r&&(e===`not`||e===`has`||e===`in`)&&(n=`${n}/${r}`,r=null);let i=t.parseVariant(n);if(i===null||!t.variants.compoundsWith(e,i))return null;let a=r===null?null:Ze(r);return r!==null&&a===null?null:{kind:`compound`,root:e,modifier:a,variant:i}}}}return null}function*$e(e,t){t(e)&&(yield[e,null]);let n=e.lastIndexOf(`-`);for(;n>0;){let r=e.slice(0,n);if(t(r)){let i=[r,e.slice(n+1)];if(i[1]===``||i[0]===`@`&&t(`@`)&&e[n]===`-`)break;yield i}n=e.lastIndexOf(`-`,n-1)}e[0]===`@`&&t(`@`)&&(yield[`@`,e.slice(1)])}function et(e,t){let n=[];for(let e of t.variants)n.unshift(nt(e));e.theme.prefix&&n.unshift(e.theme.prefix);let r=``;if(t.kind===`static`&&(r+=t.root),t.kind===`functional`&&(r+=t.root,t.value)){if(t.value.kind===`arbitrary`){if(t.value!==null){let e=z(t.value.value),n=e?t.value.value.slice(4,-1):t.value.value,[i,a]=e?[`(`,`)`]:[`[`,`]`];t.value.dataType?r+=`-${i}${t.value.dataType}:${it(n)}${a}`:r+=`-${i}${it(n)}${a}`}}else t.value.kind===`named`&&(r+=`-${t.value.value}`)}return t.kind===`arbitrary`&&(r+=`[${t.property}:${it(t.value)}]`),(t.kind===`arbitrary`||t.kind===`functional`)&&(r+=tt(t.modifier)),t.important&&(r+=`!`),n.push(r),n.join(`:`)}function tt(e){if(e===null)return``;let t=z(e.value),n=t?e.value.slice(4,-1):e.value,[r,i]=t?[`(`,`)`]:[`[`,`]`];return e.kind===`arbitrary`?`/${r}${it(n)}${i}`:e.kind===`named`?`/${e.value}`:``}function nt(e){if(e.kind===`static`)return e.root;if(e.kind===`arbitrary`)return`[${it(ot(e.selector))}]`;let t=``;if(e.kind===`functional`){t+=e.root;let n=e.root!==`@`;if(e.value){if(e.value.kind===`arbitrary`){let r=z(e.value.value),i=r?e.value.value.slice(4,-1):e.value.value,[a,o]=r?[`(`,`)`]:[`[`,`]`];t+=`${n?`-`:``}${a}${it(i)}${o}`}else e.value.kind===`named`&&(t+=`${n?`-`:``}${e.value.value}`)}}return e.kind===`compound`&&(t+=e.root,t+=`-`,t+=nt(e.variant)),(e.kind===`functional`||e.kind===`compound`)&&(t+=tt(e.modifier)),t}var rt=new O(e=>{let t=j(e),n=new Set,r=new Set([`~`,`>`,`+`,`-`,`*`,`/`]);return N(t,(e,t)=>{if(e.kind===`word`&&r.has(e.value)){let e=t.index;if(e===-1)return;let i=t.siblings[e-1];if(i?.kind!==`separator`||i.value!==` `)return;let a=t.siblings[e+1];if(a?.kind!==`separator`||a.value!==` `)return;let o=t.siblings[e-2];if(o&&r.has(o.value))return;let s=t.siblings[e+2];if(s&&r.has(s.value))return;n.add(i),n.add(a)}else if(e.kind===`separator`&&e.value.length>0&&e.value.trim()===``)(t.siblings[0]===e||t.siblings[t.siblings.length-1]===e)&&n.add(e);else if(e.kind===`separator`&&e.value.trim()===`,`)e.value=`,`;else if(e.kind===`function`&&e.value.startsWith(`--`)){let n=t.index;if(n<=0)return;let i=t.siblings[n-1];if(i?.kind===`separator`&&i.value===`,`)return;let a=t.siblings[n-2];return a&&!r.has(a.value)?void 0:M.ReplaceSkip({kind:`function`,value:``,nodes:[e]})}}),n.size>0&&N(t,e=>{if(n.has(e))return n.delete(e),M.ReplaceSkip([])}),st(t),A(t)});function it(e){return rt.get(e)}var at=new O(e=>{let t=j(e);return t.length===3&&t[0].kind===`word`&&t[0].value===`&`&&t[1].kind===`separator`&&t[1].value===`:`&&t[2].kind===`function`&&t[2].value===`is`?A(t[2].nodes):e});function ot(e){return at.get(e)}function st(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=ut(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=ut(t.value);for(let e=0;e<t.nodes.length;e++)st([t.nodes[e]]);break}t.value=ut(t.value),st(t.nodes);break;case`separator`:t.value=ut(t.value);break;case`word`:(t.value[0]!==`-`||t.value[1]!==`-`)&&(t.value=ut(t.value));break;default:lt(t)}}var ct=new O(e=>{let t=j(e);return t.length===1&&t[0].kind===`function`&&t[0].value===`var`});function z(e){return ct.get(e)}function lt(e){throw Error(`Unexpected value: ${e}`)}function ut(e){return e.replaceAll(`_`,String.raw`\_`).replaceAll(` `,`_`)}function dt(e,t,n){if(e===t)return 0;let r=e.indexOf(`(`),i=t.indexOf(`(`),a=r===-1?e.replace(/[\d.]+/g,``):e.slice(0,r),o=i===-1?t.replace(/[\d.]+/g,``):t.slice(0,i),s=(a===o?0:a<o?-1:1)||(n===`asc`?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(s)?e<t?-1:1:s}var ft=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,pt=new O(e=>{let t=ft.exec(e);if(!t)return null;let n=t.groups?.value;if(n===void 0)return null;let r=Number(n);if(Number.isNaN(r))return null;let i=t.groups?.unit;return i===void 0?[r,null]:[r,i]}),mt=new Set(`black.silver.gray.white.maroon.red.purple.fuchsia.green.lime.olive.yellow.navy.blue.teal.aqua.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.green.greenyellow.grey.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.rebeccapurple.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.transparent.currentcolor.canvas.canvastext.linktext.visitedtext.activetext.buttonface.buttontext.buttonborder.field.fieldtext.highlight.highlighttext.selecteditem.selecteditemtext.mark.marktext.graytext.accentcolor.accentcolortext`.split(`.`)),ht=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix|--alpha)\(/i;function gt(e){return e.charCodeAt(0)===35||ht.test(e)||mt.has(e.toLowerCase())}function _t(e){return mt.has(e.toLowerCase())}var vt={color:gt,length:Rt,percentage:Nt,ratio:Ft,number:jt,integer:V,url:bt,position:zt,"bg-size":Bt,"line-width":xt,image:wt,"family-name":Et,"generic-name":Tt,"absolute-size":Dt,"relative-size":Ot,angle:Ht,vector:Wt};function B(e,t){if(e.startsWith(`var(`))return null;for(let n of t)if(vt[n]?.(e))return n;return null}var yt=/^url\(.*\)$/;function bt(e){return yt.test(e)}function xt(e){return k(e,` `).every(e=>Rt(e)||jt(e)||e===`thin`||e===`medium`||e===`thick`)}var St=/^(?:element|image|cross-fade|image-set)\(/,Ct=/^(repeating-)?(conic|linear|radial)-gradient\(/;function wt(e){let t=0;for(let n of k(e,`,`))if(!n.startsWith(`var(`)){if(bt(n)){t+=1;continue}if(Ct.test(n)){t+=1;continue}if(St.test(n)){t+=1;continue}return!1}return t>0}function Tt(e){return e===`serif`||e===`sans-serif`||e===`monospace`||e===`cursive`||e===`fantasy`||e===`system-ui`||e===`ui-serif`||e===`ui-sans-serif`||e===`ui-monospace`||e===`ui-rounded`||e===`math`||e===`emoji`||e===`fangsong`}function Et(e){let t=0;for(let n of k(e,`,`)){let e=n.charCodeAt(0);if(e>=48&&e<=57)return!1;n.startsWith(`var(`)||(t+=1)}return t>0}function Dt(e){return e===`xx-small`||e===`x-small`||e===`small`||e===`medium`||e===`large`||e===`x-large`||e===`xx-large`||e===`xxx-large`}function Ot(e){return e===`larger`||e===`smaller`}var kt=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,At=RegExp(`^${kt.source}$`);function jt(e){return At.test(e)||Le(e)}var Mt=RegExp(`^${kt.source}%$`);function Nt(e){return Mt.test(e)||Le(e)}var Pt=RegExp(`^${kt.source}\\s*/\\s*${kt.source}$`);function Ft(e){return Pt.test(e)||Le(e)}var It=RegExp(`^${kt.source}(${`cm.mm.Q.in.pc.pt.px.em.ex.ch.rem.lh.rlh.vw.vh.vmin.vmax.vb.vi.svw.svh.lvw.lvh.dvw.dvh.cqw.cqh.cqi.cqb.cqmin.cqmax`.split(`.`).join(`|`)})$`),Lt=/^(--spacing)\(/i;function Rt(e){return It.test(e)||Lt.test(e)||Le(e)}function zt(e){let t=0;for(let n of k(e,` `)){if(n===`center`||n===`top`||n===`right`||n===`bottom`||n===`left`){t+=1;continue}if(!n.startsWith(`var(`)){if(Rt(n)||Nt(n)){t+=1;continue}return!1}}return t>0}function Bt(e){let t=0;for(let n of k(e,`,`)){if(n===`cover`||n===`contain`){t+=1;continue}let e=k(n,` `);if(e.length!==1&&e.length!==2)return!1;if(e.every(e=>e===`auto`||Rt(e)||Nt(e))){t+=1;continue}}return t>0}var Vt=RegExp(`^${kt.source}(${[`deg`,`rad`,`grad`,`turn`].join(`|`)})$`);function Ht(e){return Vt.test(e)}var Ut=RegExp(`^${kt.source} +${kt.source} +${kt.source}$`);function Wt(e){return Ut.test(e)}function V(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Gt(e){let t=Number(e);return Number.isInteger(t)&&t>0&&String(t)===String(e)}function Kt(e){return Jt(e,.25)}function qt(e){return Jt(e,.25)}function Jt(e,t){let n=Number(e);return n>=0&&n%t===0&&String(n)===String(e)}var Yt=new Set([`inset`,`inherit`,`initial`,`revert`,`unset`]),Xt=new Set([`calc`,`clamp`,`max`,`min`,`--spacing`]),Zt=new Set([`color`,`color-mix`,`contrast-color`,`device-cmyk`,`hsl`,`hsla`,`hwb`,`lab`,`lch`,`light-dark`,`oklab`,`oklch`,`rgb`,`rgba`,`--alpha`]),Qt=/^-?(\d+|\.\d+)(.*?)$/;function $t(e,t){function n(e){return j(t(A([e])))}return k(e,`,`).map(e=>{e=e.trim();let r=j(e),i=null,a=0,o=0,s=!1;return N(r,e=>{switch(e.kind){case`word`:if(Yt.has(e.value.toLowerCase()))return M.Continue;if(Qt.test(e.value.toLowerCase()))return o++,M.Continue;if(e.value[0]===`#`||_t(e.value))return s=!0,M.ReplaceStop(n(e));i=e,a++;break;case`function`:return Zt.has(e.value.toLowerCase())?(s=!0,M.ReplaceStop(n(e))):Xt.has(e.value.toLowerCase())?(o++,M.Skip):(i=e,a++,M.Skip);case`separator`:return M.Continue}}),s?A(r):o<2?e:a===0?`${e} ${t(`currentcolor`)}`:(a===1&&N(r,e=>e===i?(s=!0,M.ReplaceStop(n(e))):M.Skip),s?A(r):e)}).join(`, `)}var en=`0,0.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96`.split(`,`),tn=class{utilities=new O(()=>[]);completions=new Map;static(e,t){this.utilities.get(e).push({kind:`static`,compileFn:t})}functional(e,t,n){this.utilities.get(e).push({kind:`functional`,compileFn:t,options:n})}has(e,t){return this.utilities.has(e)&&this.utilities.get(e).some(e=>e.kind===t)}get(e){return this.utilities.has(e)?this.utilities.get(e):[]}getCompletions(e){return this.has(e,`static`)?this.completions.get(e)?.()??[{supportsNegative:!1,values:[],modifiers:[]}]:this.completions.get(e)?.()??[]}suggest(e,t){let n=this.completions.get(e);n?this.completions.set(e,()=>[...n?.(),...t?.()]):this.completions.set(e,t)}keys(e){let t=[];for(let[n,r]of this.utilities.entries())for(let i of r)if(i.kind===e){t.push(n);break}return t}};function H(e,t,n){return F(`@property`,e,[L(`syntax`,n?`"${n}"`:`"*"`),L(`inherits`,`false`),...t?[L(`initial-value`,t)]:[]])}function U(e,t){if(t===null)return e;let n=Number(t);return Number.isNaN(n)||(t=`${n*100}%`),t===`100%`?e:`color-mix(in oklab, ${e} ${t}, transparent)`}function nn(e,t){let n=Number(t);return Number.isNaN(n)||(t=`${n*100}%`),`oklab(from ${e} l a b / ${t})`}function W(e,t,n){if(!t)return e;if(t.kind===`arbitrary`)return U(e,t.value);let r=n.resolve(t.value,[`--opacity`]);return r?U(e,r):qt(t.value)?U(e,`${t.value}%`):null}function G(e,t,n){let r=null;switch(e.value.value){case`inherit`:r=`inherit`;break;case`transparent`:r=`transparent`;break;case`current`:r=`currentcolor`;break;default:r=t.resolve(e.value.value,n)}return r?W(r,e.modifier,t):null}var rn=/(\d+)_(\d+)/g;function an(e){let t=new tn;function n(n,r){function*i(t){for(let n of e.keysInNamespaces(t))yield n.replace(rn,(e,t,n)=>`${t}.${n}`)}let a=`1/2.1/3.2/3.1/4.2/4.3/4.1/5.2/5.3/5.4/5.1/6.2/6.3/6.4/6.5/6.1/12.2/12.3/12.4/12.5/12.6/12.7/12.8/12.9/12.10/12.11/12`.split(`.`);t.suggest(n,()=>{let e=[];for(let t of r()){if(typeof t==`string`){e.push({values:[t],modifiers:[]});continue}let n=[...t.values??[],...i(t.valueThemeKeys??[])],r=[...t.modifiers??[],...i(t.modifierThemeKeys??[])];t.supportsFractions&&n.push(...a),t.hasDefaultValue&&n.unshift(null),e.push({supportsNegative:t.supportsNegative,values:n,modifiers:r})}return e})}function r(e,n){t.static(e,()=>n.map(e=>typeof e==`function`?e():L(e[0],e[1])))}function i(r,i){i.staticValues&&=Object.assign(Object.create(null),i.staticValues);function a({negative:t}){return n=>{let r=null,a=null;if(n.value){if(n.value.kind===`arbitrary`){if(n.modifier)return;r=n.value.value,a=n.value.dataType}else{if(r=e.resolve(n.value.fraction??n.value.value,i.themeKeys??[]),r===null&&i.supportsFractions&&n.value.fraction){let[e,t]=k(n.value.fraction,`/`);if(!V(e)||!V(t))return;r=`calc(${e} / ${t} * 100%)`}if(r===null&&t&&i.handleNegativeBareValue){if(r=i.handleNegativeBareValue(n.value),!r?.includes(`/`)&&n.modifier)return;if(r!==null)return i.handle(r,null)}if(r===null&&i.handleBareValue&&(r=i.handleBareValue(n.value),!r?.includes(`/`)&&n.modifier))return;if(r===null&&!t&&i.staticValues&&!n.modifier){let e=i.staticValues[n.value.value];if(e)return e.map(Ee)}}}else{if(n.modifier)return;r=i.defaultValue===void 0?e.resolve(null,i.themeKeys??[]):i.defaultValue}if(r!==null)return i.handle(t?Re(`calc(${r} * -1)`):r,a)}}if(i.supportsNegative&&t.functional(`-${r}`,a({negative:!0})),t.functional(r,a({negative:!1})),n(r,()=>[{supportsNegative:i.supportsNegative,valueThemeKeys:i.themeKeys??[],hasDefaultValue:i.defaultValue!==void 0&&i.defaultValue!==null,supportsFractions:i.supportsFractions}]),i.staticValues&&Object.keys(i.staticValues).length>0){let e=Object.keys(i.staticValues);n(r,()=>[{values:e}])}}function a(r,i){t.functional(r,t=>{if(!t.value)return;let n=null;if(t.value.kind===`arbitrary`?(n=t.value.value,n=W(n,t.modifier,e)):n=G(t,e,i.themeKeys),n!==null)return i.handle(n)}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:i.themeKeys,modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)}])}function o(r,a,o,{supportsNegative:s=!1,supportsFractions:c=!1,staticValues:l}={}){s&&t.static(`-${r}-px`,()=>o(`-1px`)),t.static(`${r}-px`,()=>o(`1px`)),i(r,{themeKeys:a,supportsFractions:c,supportsNegative:s,defaultValue:null,handleBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Kt(t)?null:`--spacing(${t})`,handleNegativeBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Kt(t)?null:`--spacing(-${t})`,handle:o,staticValues:l}),n(r,()=>[{values:e.get([`--spacing`])?en:[],supportsNegative:s,supportsFractions:c,valueThemeKeys:a}])}r(`sr-only`,[[`position`,`absolute`],[`width`,`1px`],[`height`,`1px`],[`padding`,`0`],[`margin`,`-1px`],[`overflow`,`hidden`],[`clip-path`,`inset(50%)`],[`white-space`,`nowrap`],[`border-width`,`0`]]),r(`not-sr-only`,[[`position`,`static`],[`width`,`auto`],[`height`,`auto`],[`padding`,`0`],[`margin`,`0`],[`overflow`,`visible`],[`clip-path`,`none`],[`white-space`,`normal`]]),r(`pointer-events-none`,[[`pointer-events`,`none`]]),r(`pointer-events-auto`,[[`pointer-events`,`auto`]]),r(`visible`,[[`visibility`,`visible`]]),r(`invisible`,[[`visibility`,`hidden`]]),r(`collapse`,[[`visibility`,`collapse`]]),r(`static`,[[`position`,`static`]]),r(`fixed`,[[`position`,`fixed`]]),r(`absolute`,[[`position`,`absolute`]]),r(`relative`,[[`position`,`relative`]]),r(`sticky`,[[`position`,`sticky`]]);for(let[e,t]of[[`inset`,`inset`],[`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`],[`top`,`top`],[`right`,`right`],[`bottom`,`bottom`],[`left`,`left`]])r(`${e}-auto`,[[t,`auto`]]),r(`${e}-full`,[[t,`100%`]]),r(`-${e}-full`,[[t,`-100%`]]),o(e,[`--inset`,`--spacing`],e=>[L(t,e)],{supportsNegative:!0,supportsFractions:!0});r(`isolate`,[[`isolation`,`isolate`]]),r(`isolation-auto`,[[`isolation`,`auto`]]),i(`z`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--z-index`],handle:e=>[L(`z-index`,e)],staticValues:{auto:[L(`z-index`,`auto`)]}}),n(`z`,()=>[{supportsNegative:!0,values:[`0`,`10`,`20`,`30`,`40`,`50`],valueThemeKeys:[`--z-index`]}]),i(`order`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--order`],handle:e=>[L(`order`,e)],staticValues:{first:[L(`order`,`-9999`)],last:[L(`order`,`9999`)]}}),n(`order`,()=>[{supportsNegative:!0,values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--order`]}]),i(`col`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--grid-column`],handle:e=>[L(`grid-column`,e)],staticValues:{auto:[L(`grid-column`,`auto`)]}}),i(`col-span`,{handleBareValue:({value:e})=>V(e)?e:null,handle:e=>[L(`grid-column`,`span ${e} / span ${e}`)],staticValues:{full:[L(`grid-column`,`1 / -1`)]}}),i(`col-start`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--grid-column-start`],handle:e=>[L(`grid-column-start`,e)],staticValues:{auto:[L(`grid-column-start`,`auto`)]}}),i(`col-end`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--grid-column-end`],handle:e=>[L(`grid-column-end`,e)],staticValues:{auto:[L(`grid-column-end`,`auto`)]}}),n(`col-span`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[]}]),n(`col-start`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-column-start`]}]),n(`col-end`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-column-end`]}]),i(`row`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--grid-row`],handle:e=>[L(`grid-row`,e)],staticValues:{auto:[L(`grid-row`,`auto`)]}}),i(`row-span`,{themeKeys:[],handleBareValue:({value:e})=>V(e)?e:null,handle:e=>[L(`grid-row`,`span ${e} / span ${e}`)],staticValues:{full:[L(`grid-row`,`1 / -1`)]}}),i(`row-start`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--grid-row-start`],handle:e=>[L(`grid-row-start`,e)],staticValues:{auto:[L(`grid-row-start`,`auto`)]}}),i(`row-end`,{supportsNegative:!0,handleBareValue:({value:e})=>V(e)?e:null,themeKeys:[`--grid-row-end`],handle:e=>[L(`grid-row-end`,e)],staticValues:{auto:[L(`grid-row-end`,`auto`)]}}),n(`row-span`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[]}]),n(`row-start`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-row-start`]}]),n(`row-end`,()=>[{supportsNegative:!0,values:Array.from({length:13},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-row-end`]}]),r(`float-start`,[[`float`,`inline-start`]]),r(`float-end`,[[`float`,`inline-end`]]),r(`float-right`,[[`float`,`right`]]),r(`float-left`,[[`float`,`left`]]),r(`float-none`,[[`float`,`none`]]),r(`clear-start`,[[`clear`,`inline-start`]]),r(`clear-end`,[[`clear`,`inline-end`]]),r(`clear-right`,[[`clear`,`right`]]),r(`clear-left`,[[`clear`,`left`]]),r(`clear-both`,[[`clear`,`both`]]),r(`clear-none`,[[`clear`,`none`]]);for(let[e,t]of[[`m`,`margin`],[`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`]])r(`${e}-auto`,[[t,`auto`]]),o(e,[`--margin`,`--spacing`],e=>[L(t,e)],{supportsNegative:!0});r(`box-border`,[[`box-sizing`,`border-box`]]),r(`box-content`,[[`box-sizing`,`content-box`]]),i(`line-clamp`,{themeKeys:[`--line-clamp`],handleBareValue:({value:e})=>V(e)?e:null,handle:e=>[L(`overflow`,`hidden`),L(`display`,`-webkit-box`),L(`-webkit-box-orient`,`vertical`),L(`-webkit-line-clamp`,e)],staticValues:{none:[L(`overflow`,`visible`),L(`display`,`block`),L(`-webkit-box-orient`,`horizontal`),L(`-webkit-line-clamp`,`unset`)]}}),n(`line-clamp`,()=>[{values:[`1`,`2`,`3`,`4`,`5`,`6`],valueThemeKeys:[`--line-clamp`]}]),r(`block`,[[`display`,`block`]]),r(`inline-block`,[[`display`,`inline-block`]]),r(`inline`,[[`display`,`inline`]]),r(`hidden`,[[`display`,`none`]]),r(`inline-flex`,[[`display`,`inline-flex`]]),r(`table`,[[`display`,`table`]]),r(`inline-table`,[[`display`,`inline-table`]]),r(`table-caption`,[[`display`,`table-caption`]]),r(`table-cell`,[[`display`,`table-cell`]]),r(`table-column`,[[`display`,`table-column`]]),r(`table-column-group`,[[`display`,`table-column-group`]]),r(`table-footer-group`,[[`display`,`table-footer-group`]]),r(`table-header-group`,[[`display`,`table-header-group`]]),r(`table-row-group`,[[`display`,`table-row-group`]]),r(`table-row`,[[`display`,`table-row`]]),r(`flow-root`,[[`display`,`flow-root`]]),r(`flex`,[[`display`,`flex`]]),r(`grid`,[[`display`,`grid`]]),r(`inline-grid`,[[`display`,`inline-grid`]]),r(`contents`,[[`display`,`contents`]]),r(`list-item`,[[`display`,`list-item`]]),r(`field-sizing-content`,[[`field-sizing`,`content`]]),r(`field-sizing-fixed`,[[`field-sizing`,`fixed`]]),i(`aspect`,{themeKeys:[`--aspect`],handleBareValue:({fraction:e})=>{if(e===null)return null;let[t,n]=k(e,`/`);return!Kt(t)||!Kt(n)?null:e},handle:e=>[L(`aspect-ratio`,e)],staticValues:{auto:[L(`aspect-ratio`,`auto`)],square:[L(`aspect-ratio`,`1 / 1`)]}});for(let[e,t]of[[`full`,`100%`],[`svw`,`100svw`],[`lvw`,`100lvw`],[`dvw`,`100dvw`],[`svh`,`100svh`],[`lvh`,`100lvh`],[`dvh`,`100dvh`],[`min`,`min-content`],[`max`,`max-content`],[`fit`,`fit-content`]])r(`size-${e}`,[[`--tw-sort`,`size`],[`width`,t],[`height`,t]]),r(`w-${e}`,[[`width`,t]]),r(`h-${e}`,[[`height`,t]]),r(`min-w-${e}`,[[`min-width`,t]]),r(`min-h-${e}`,[[`min-height`,t]]),r(`max-w-${e}`,[[`max-width`,t]]),r(`max-h-${e}`,[[`max-height`,t]]);r(`size-auto`,[[`--tw-sort`,`size`],[`width`,`auto`],[`height`,`auto`]]),r(`w-auto`,[[`width`,`auto`]]),r(`h-auto`,[[`height`,`auto`]]),r(`min-w-auto`,[[`min-width`,`auto`]]),r(`min-h-auto`,[[`min-height`,`auto`]]),r(`h-lh`,[[`height`,`1lh`]]),r(`min-h-lh`,[[`min-height`,`1lh`]]),r(`max-h-lh`,[[`max-height`,`1lh`]]),r(`w-screen`,[[`width`,`100vw`]]),r(`min-w-screen`,[[`min-width`,`100vw`]]),r(`max-w-screen`,[[`max-width`,`100vw`]]),r(`h-screen`,[[`height`,`100vh`]]),r(`min-h-screen`,[[`min-height`,`100vh`]]),r(`max-h-screen`,[[`max-height`,`100vh`]]),r(`max-w-none`,[[`max-width`,`none`]]),r(`max-h-none`,[[`max-height`,`none`]]),o(`size`,[`--size`,`--spacing`],e=>[L(`--tw-sort`,`size`),L(`width`,e),L(`height`,e)],{supportsFractions:!0});for(let[e,t,n]of[[`w`,[`--width`,`--spacing`,`--container`],`width`],[`min-w`,[`--min-width`,`--spacing`,`--container`],`min-width`],[`max-w`,[`--max-width`,`--spacing`,`--container`],`max-width`],[`h`,[`--height`,`--spacing`],`height`],[`min-h`,[`--min-height`,`--height`,`--spacing`],`min-height`],[`max-h`,[`--max-height`,`--height`,`--spacing`],`max-height`]])o(e,t,e=>[L(n,e)],{supportsFractions:!0});for(let[e,t]of[[`full`,`100%`],[`min`,`min-content`],[`max`,`max-content`],[`fit`,`fit-content`]])r(`inline-${e}`,[[`inline-size`,t]]),r(`block-${e}`,[[`block-size`,t]]),r(`min-inline-${e}`,[[`min-inline-size`,t]]),r(`min-block-${e}`,[[`min-block-size`,t]]),r(`max-inline-${e}`,[[`max-inline-size`,t]]),r(`max-block-${e}`,[[`max-block-size`,t]]);for(let[e,t]of[[`svw`,`100svw`],[`lvw`,`100lvw`],[`dvw`,`100dvw`]])r(`inline-${e}`,[[`inline-size`,t]]),r(`min-inline-${e}`,[[`min-inline-size`,t]]),r(`max-inline-${e}`,[[`max-inline-size`,t]]);for(let[e,t]of[[`svh`,`100svh`],[`lvh`,`100lvh`],[`dvh`,`100dvh`]])r(`block-${e}`,[[`block-size`,t]]),r(`min-block-${e}`,[[`min-block-size`,t]]),r(`max-block-${e}`,[[`max-block-size`,t]]);r(`inline-auto`,[[`inline-size`,`auto`]]),r(`block-auto`,[[`block-size`,`auto`]]),r(`min-inline-auto`,[[`min-inline-size`,`auto`]]),r(`min-block-auto`,[[`min-block-size`,`auto`]]),r(`block-lh`,[[`block-size`,`1lh`]]),r(`min-block-lh`,[[`min-block-size`,`1lh`]]),r(`max-block-lh`,[[`max-block-size`,`1lh`]]),r(`inline-screen`,[[`inline-size`,`100vw`]]),r(`min-inline-screen`,[[`min-inline-size`,`100vw`]]),r(`max-inline-screen`,[[`max-inline-size`,`100vw`]]),r(`block-screen`,[[`block-size`,`100vh`]]),r(`min-block-screen`,[[`min-block-size`,`100vh`]]),r(`max-block-screen`,[[`max-block-size`,`100vh`]]),r(`max-inline-none`,[[`max-inline-size`,`none`]]),r(`max-block-none`,[[`max-block-size`,`none`]]);for(let[e,t,n]of[[`inline`,[`--spacing`,`--container`],`inline-size`],[`min-inline`,[`--spacing`,`--container`],`min-inline-size`],[`max-inline`,[`--spacing`,`--container`],`max-inline-size`],[`block`,[`--spacing`],`block-size`],[`min-block`,[`--spacing`],`min-block-size`],[`max-block`,[`--spacing`],`max-block-size`]])o(e,t,e=>[L(n,e)],{supportsFractions:!0});t.static(`container`,()=>{let t=[...e.namespace(`--breakpoint`).values()];t.sort((e,t)=>dt(e,t,`asc`));let n=[L(`--tw-sort`,`--tw-container-component`),L(`width`,`100%`)];for(let e of t)n.push(F(`@media`,`(width >= ${e})`,[L(`max-width`,e)]));return n}),r(`flex-auto`,[[`flex`,`auto`]]),r(`flex-initial`,[[`flex`,`0 auto`]]),r(`flex-none`,[[`flex`,`none`]]),t.functional(`flex`,e=>{if(e.value){if(e.value.kind===`arbitrary`)return e.modifier?void 0:[L(`flex`,e.value.value)];if(e.value.fraction){let[t,n]=k(e.value.fraction,`/`);return!V(t)||!V(n)?void 0:[L(`flex`,`calc(${e.value.fraction} * 100%)`)]}if(V(e.value.value))return e.modifier?void 0:[L(`flex`,e.value.value)]}}),n(`flex`,()=>[{supportsFractions:!0},{values:Array.from({length:12},(e,t)=>`${t+1}`)}]),i(`shrink`,{defaultValue:`1`,handleBareValue:({value:e})=>V(e)?e:null,handle:e=>[L(`flex-shrink`,e)]}),i(`grow`,{defaultValue:`1`,handleBareValue:({value:e})=>V(e)?e:null,handle:e=>[L(`flex-grow`,e)]}),n(`shrink`,()=>[{values:[`0`],valueThemeKeys:[],hasDefaultValue:!0}]),n(`grow`,()=>[{values:[`0`],valueThemeKeys:[],hasDefaultValue:!0}]),r(`basis-auto`,[[`flex-basis`,`auto`]]),r(`basis-full`,[[`flex-basis`,`100%`]]),o(`basis`,[`--flex-basis`,`--spacing`,`--container`],e=>[L(`flex-basis`,e)],{supportsFractions:!0}),r(`table-auto`,[[`table-layout`,`auto`]]),r(`table-fixed`,[[`table-layout`,`fixed`]]),r(`caption-top`,[[`caption-side`,`top`]]),r(`caption-bottom`,[[`caption-side`,`bottom`]]),r(`border-collapse`,[[`border-collapse`,`collapse`]]),r(`border-separate`,[[`border-collapse`,`separate`]]);let s=()=>R([H(`--tw-border-spacing-x`,`0`,`<length>`),H(`--tw-border-spacing-y`,`0`,`<length>`)]);o(`border-spacing`,[`--border-spacing`,`--spacing`],e=>[s(),L(`--tw-border-spacing-x`,e),L(`--tw-border-spacing-y`,e),L(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),o(`border-spacing-x`,[`--border-spacing`,`--spacing`],e=>[s(),L(`--tw-border-spacing-x`,e),L(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),o(`border-spacing-y`,[`--border-spacing`,`--spacing`],e=>[s(),L(`--tw-border-spacing-y`,e),L(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),i(`origin`,{themeKeys:[`--transform-origin`],handle:e=>[L(`transform-origin`,e)],staticValues:{center:[L(`transform-origin`,`center`)],top:[L(`transform-origin`,`top`)],"top-right":[L(`transform-origin`,`100% 0`)],right:[L(`transform-origin`,`100%`)],"bottom-right":[L(`transform-origin`,`100% 100%`)],bottom:[L(`transform-origin`,`bottom`)],"bottom-left":[L(`transform-origin`,`0 100%`)],left:[L(`transform-origin`,`0`)],"top-left":[L(`transform-origin`,`0 0`)]}}),i(`perspective-origin`,{themeKeys:[`--perspective-origin`],handle:e=>[L(`perspective-origin`,e)],staticValues:{center:[L(`perspective-origin`,`center`)],top:[L(`perspective-origin`,`top`)],"top-right":[L(`perspective-origin`,`100% 0`)],right:[L(`perspective-origin`,`100%`)],"bottom-right":[L(`perspective-origin`,`100% 100%`)],bottom:[L(`perspective-origin`,`bottom`)],"bottom-left":[L(`perspective-origin`,`0 100%`)],left:[L(`perspective-origin`,`0`)],"top-left":[L(`perspective-origin`,`0 0`)]}}),i(`perspective`,{themeKeys:[`--perspective`],handle:e=>[L(`perspective`,e)],staticValues:{none:[L(`perspective`,`none`)]}});let c=()=>R([H(`--tw-translate-x`,`0`),H(`--tw-translate-y`,`0`),H(`--tw-translate-z`,`0`)]);r(`translate-none`,[[`translate`,`none`]]),r(`-translate-full`,[c,[`--tw-translate-x`,`-100%`],[`--tw-translate-y`,`-100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),r(`translate-full`,[c,[`--tw-translate-x`,`100%`],[`--tw-translate-y`,`100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),o(`translate`,[`--translate`,`--spacing`],e=>[c(),L(`--tw-translate-x`,e),L(`--tw-translate-y`,e),L(`translate`,`var(--tw-translate-x) var(--tw-translate-y)`)],{supportsNegative:!0,supportsFractions:!0});for(let e of[`x`,`y`])r(`-translate-${e}-full`,[c,[`--tw-translate-${e}`,`-100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),r(`translate-${e}-full`,[c,[`--tw-translate-${e}`,`100%`],[`translate`,`var(--tw-translate-x) var(--tw-translate-y)`]]),o(`translate-${e}`,[`--translate`,`--spacing`],t=>[c(),L(`--tw-translate-${e}`,t),L(`translate`,`var(--tw-translate-x) var(--tw-translate-y)`)],{supportsNegative:!0,supportsFractions:!0});o(`translate-z`,[`--translate`,`--spacing`],e=>[c(),L(`--tw-translate-z`,e),L(`translate`,`var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)`)],{supportsNegative:!0}),r(`translate-3d`,[c,[`translate`,`var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)`]]);let l=()=>R([H(`--tw-scale-x`,`1`),H(`--tw-scale-y`,`1`),H(`--tw-scale-z`,`1`)]);r(`scale-none`,[[`scale`,`none`]]);function u({negative:t}){return n=>{if(!n.value||n.modifier)return;let r;return n.value.kind===`arbitrary`?(r=n.value.value,r=t?`calc(${r} * -1)`:r,[L(`scale`,r)]):(r=e.resolve(n.value.value,[`--scale`]),!r&&V(n.value.value)&&(r=`${n.value.value}%`),r?(r=t?`calc(${r} * -1)`:r,[l(),L(`--tw-scale-x`,r),L(`--tw-scale-y`,r),L(`--tw-scale-z`,r),L(`scale`,`var(--tw-scale-x) var(--tw-scale-y)`)]):void 0)}}t.functional(`-scale`,u({negative:!0})),t.functional(`scale`,u({negative:!1})),n(`scale`,()=>[{supportsNegative:!0,values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--scale`]}]);for(let e of[`x`,`y`,`z`])i(`scale-${e}`,{supportsNegative:!0,themeKeys:[`--scale`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,handle:t=>[l(),L(`--tw-scale-${e}`,t),L(`scale`,`var(--tw-scale-x) var(--tw-scale-y)${e===`z`?` var(--tw-scale-z)`:``}`)]}),n(`scale-${e}`,()=>[{supportsNegative:!0,values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--scale`]}]);r(`scale-3d`,[l,[`scale`,`var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)`]]),r(`rotate-none`,[[`rotate`,`none`]]);function d({negative:t}){return n=>{if(!n.value||n.modifier)return;let r;if(n.value.kind===`arbitrary`){r=n.value.value;let e=n.value.dataType??B(r,[`angle`,`vector`]);if(e===`vector`)return[L(`rotate`,`${r} var(--tw-rotate)`)];if(e!==`angle`)return[L(`rotate`,t?`calc(${r} * -1)`:r)]}else if(r=e.resolve(n.value.value,[`--rotate`]),!r&&V(n.value.value)&&(r=`${n.value.value}deg`),!r)return;return[L(`rotate`,t?`calc(${r} * -1)`:r)]}}t.functional(`-rotate`,d({negative:!0})),t.functional(`rotate`,d({negative:!1})),n(`rotate`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`],valueThemeKeys:[`--rotate`]}]);{let e=[`var(--tw-rotate-x,)`,`var(--tw-rotate-y,)`,`var(--tw-rotate-z,)`,`var(--tw-skew-x,)`,`var(--tw-skew-y,)`].join(` `),a=()=>R([H(`--tw-rotate-x`),H(`--tw-rotate-y`),H(`--tw-rotate-z`),H(`--tw-skew-x`),H(`--tw-skew-y`)]);for(let t of[`x`,`y`,`z`])i(`rotate-${t}`,{supportsNegative:!0,themeKeys:[`--rotate`],handleBareValue:({value:e})=>V(e)?`${e}deg`:null,handle:n=>[a(),L(`--tw-rotate-${t}`,`rotate${t.toUpperCase()}(${n})`),L(`transform`,e)]}),n(`rotate-${t}`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`],valueThemeKeys:[`--rotate`]}]);i(`skew`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>V(e)?`${e}deg`:null,handle:t=>[a(),L(`--tw-skew-x`,`skewX(${t})`),L(`--tw-skew-y`,`skewY(${t})`),L(`transform`,e)]}),i(`skew-x`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>V(e)?`${e}deg`:null,handle:t=>[a(),L(`--tw-skew-x`,`skewX(${t})`),L(`transform`,e)]}),i(`skew-y`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>V(e)?`${e}deg`:null,handle:t=>[a(),L(`--tw-skew-y`,`skewY(${t})`),L(`transform`,e)]}),n(`skew`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`],valueThemeKeys:[`--skew`]}]),n(`skew-x`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`],valueThemeKeys:[`--skew`]}]),n(`skew-y`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`],valueThemeKeys:[`--skew`]}]),t.functional(`transform`,t=>{if(t.modifier)return;let n=null;if(t.value?t.value.kind===`arbitrary`&&(n=t.value.value):n=e,n!==null)return[a(),L(`transform`,n)]}),n(`transform`,()=>[{hasDefaultValue:!0}]),r(`transform-cpu`,[[`transform`,e]]),r(`transform-gpu`,[[`transform`,`translateZ(0) ${e}`]]),r(`transform-none`,[[`transform`,`none`]])}i(`zoom`,{handleBareValue:({value:e})=>V(e)?`${e}%`:null,handle:e=>[L(`zoom`,e)]}),n(`zoom`,()=>[{values:[`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`]}]),r(`transform-flat`,[[`transform-style`,`flat`]]),r(`transform-3d`,[[`transform-style`,`preserve-3d`]]),r(`transform-content`,[[`transform-box`,`content-box`]]),r(`transform-border`,[[`transform-box`,`border-box`]]),r(`transform-fill`,[[`transform-box`,`fill-box`]]),r(`transform-stroke`,[[`transform-box`,`stroke-box`]]),r(`transform-view`,[[`transform-box`,`view-box`]]),r(`backface-visible`,[[`backface-visibility`,`visible`]]),r(`backface-hidden`,[[`backface-visibility`,`hidden`]]);for(let e of`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`.split(`.`))r(`cursor-${e}`,[[`cursor`,e]]);i(`cursor`,{themeKeys:[`--cursor`],handle:e=>[L(`cursor`,e)]});for(let e of[`auto`,`none`,`manipulation`])r(`touch-${e}`,[[`touch-action`,e]]);let f=()=>R([H(`--tw-pan-x`),H(`--tw-pan-y`),H(`--tw-pinch-zoom`)]);for(let e of[`x`,`left`,`right`])r(`touch-pan-${e}`,[f,[`--tw-pan-x`,`pan-${e}`],[`touch-action`,`var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]);for(let e of[`y`,`up`,`down`])r(`touch-pan-${e}`,[f,[`--tw-pan-y`,`pan-${e}`],[`touch-action`,`var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]);r(`touch-pinch-zoom`,[f,[`--tw-pinch-zoom`,`pinch-zoom`],[`touch-action`,`var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]);for(let e of[`none`,`text`,`all`,`auto`])r(`select-${e}`,[[`-webkit-user-select`,e],[`user-select`,e]]);r(`resize-none`,[[`resize`,`none`]]),r(`resize-x`,[[`resize`,`horizontal`]]),r(`resize-y`,[[`resize`,`vertical`]]),r(`resize`,[[`resize`,`both`]]),r(`snap-none`,[[`scroll-snap-type`,`none`]]);let p=()=>R([H(`--tw-scroll-snap-strictness`,`proximity`,`*`)]);for(let e of[`x`,`y`,`both`])r(`snap-${e}`,[p,[`scroll-snap-type`,`${e} var(--tw-scroll-snap-strictness)`]]);r(`snap-mandatory`,[p,[`--tw-scroll-snap-strictness`,`mandatory`]]),r(`snap-proximity`,[p,[`--tw-scroll-snap-strictness`,`proximity`]]),r(`snap-align-none`,[[`scroll-snap-align`,`none`]]),r(`snap-start`,[[`scroll-snap-align`,`start`]]),r(`snap-end`,[[`scroll-snap-align`,`end`]]),r(`snap-center`,[[`scroll-snap-align`,`center`]]),r(`snap-normal`,[[`scroll-snap-stop`,`normal`]]),r(`snap-always`,[[`scroll-snap-stop`,`always`]]);for(let[e,t]of[[`scroll-m`,`scroll-margin`],[`scroll-mx`,`scroll-margin-inline`],[`scroll-my`,`scroll-margin-block`],[`scroll-ms`,`scroll-margin-inline-start`],[`scroll-me`,`scroll-margin-inline-end`],[`scroll-mbs`,`scroll-margin-block-start`],[`scroll-mbe`,`scroll-margin-block-end`],[`scroll-mt`,`scroll-margin-top`],[`scroll-mr`,`scroll-margin-right`],[`scroll-mb`,`scroll-margin-bottom`],[`scroll-ml`,`scroll-margin-left`]])o(e,[`--scroll-margin`,`--spacing`],e=>[L(t,e)],{supportsNegative:!0});for(let[e,t]of[[`scroll-p`,`scroll-padding`],[`scroll-px`,`scroll-padding-inline`],[`scroll-py`,`scroll-padding-block`],[`scroll-ps`,`scroll-padding-inline-start`],[`scroll-pe`,`scroll-padding-inline-end`],[`scroll-pbs`,`scroll-padding-block-start`],[`scroll-pbe`,`scroll-padding-block-end`],[`scroll-pt`,`scroll-padding-top`],[`scroll-pr`,`scroll-padding-right`],[`scroll-pb`,`scroll-padding-bottom`],[`scroll-pl`,`scroll-padding-left`]])o(e,[`--scroll-padding`,`--spacing`],e=>[L(t,e)]);r(`list-inside`,[[`list-style-position`,`inside`]]),r(`list-outside`,[[`list-style-position`,`outside`]]),i(`list`,{themeKeys:[`--list-style-type`],handle:e=>[L(`list-style-type`,e)],staticValues:{none:[L(`list-style-type`,`none`)],disc:[L(`list-style-type`,`disc`)],decimal:[L(`list-style-type`,`decimal`)]}}),i(`list-image`,{themeKeys:[`--list-style-image`],handle:e=>[L(`list-style-image`,e)],staticValues:{none:[L(`list-style-image`,`none`)]}}),r(`appearance-none`,[[`appearance`,`none`]]),r(`appearance-auto`,[[`appearance`,`auto`]]),r(`scheme-normal`,[[`color-scheme`,`normal`]]),r(`scheme-dark`,[[`color-scheme`,`dark`]]),r(`scheme-light`,[[`color-scheme`,`light`]]),r(`scheme-light-dark`,[[`color-scheme`,`light dark`]]),r(`scheme-only-dark`,[[`color-scheme`,`only dark`]]),r(`scheme-only-light`,[[`color-scheme`,`only light`]]),i(`columns`,{themeKeys:[`--columns`,`--container`],handleBareValue:({value:e})=>V(e)?e:null,handle:e=>[L(`columns`,e)],staticValues:{auto:[L(`columns`,`auto`)]}}),n(`columns`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--columns`,`--container`]}]);for(let e of[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`])r(`break-before-${e}`,[[`break-before`,e]]);for(let e of[`auto`,`avoid`,`avoid-page`,`avoid-column`])r(`break-inside-${e}`,[[`break-inside`,e]]);for(let e of[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`])r(`break-after-${e}`,[[`break-after`,e]]);r(`grid-flow-row`,[[`grid-auto-flow`,`row`]]),r(`grid-flow-col`,[[`grid-auto-flow`,`column`]]),r(`grid-flow-dense`,[[`grid-auto-flow`,`dense`]]),r(`grid-flow-row-dense`,[[`grid-auto-flow`,`row dense`]]),r(`grid-flow-col-dense`,[[`grid-auto-flow`,`column dense`]]),i(`auto-cols`,{themeKeys:[`--grid-auto-columns`],handleBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Kt(t)?null:`--spacing(${t})`,handle:e=>[L(`grid-auto-columns`,e)],staticValues:{auto:[L(`grid-auto-columns`,`auto`)],min:[L(`grid-auto-columns`,`min-content`)],max:[L(`grid-auto-columns`,`max-content`)],fr:[L(`grid-auto-columns`,`minmax(0, 1fr)`)]}}),i(`auto-rows`,{themeKeys:[`--grid-auto-rows`],handleBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!Kt(t)?null:`--spacing(${t})`,handle:e=>[L(`grid-auto-rows`,e)],staticValues:{auto:[L(`grid-auto-rows`,`auto`)],min:[L(`grid-auto-rows`,`min-content`)],max:[L(`grid-auto-rows`,`max-content`)],fr:[L(`grid-auto-rows`,`minmax(0, 1fr)`)]}}),i(`grid-cols`,{themeKeys:[`--grid-template-columns`],handleBareValue:({value:e})=>Gt(e)?`repeat(${e}, minmax(0, 1fr))`:null,handle:e=>[L(`grid-template-columns`,e)],staticValues:{none:[L(`grid-template-columns`,`none`)],subgrid:[L(`grid-template-columns`,`subgrid`)]}}),i(`grid-rows`,{themeKeys:[`--grid-template-rows`],handleBareValue:({value:e})=>Gt(e)?`repeat(${e}, minmax(0, 1fr))`:null,handle:e=>[L(`grid-template-rows`,e)],staticValues:{none:[L(`grid-template-rows`,`none`)],subgrid:[L(`grid-template-rows`,`subgrid`)]}}),n(`grid-cols`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-template-columns`]}]),n(`grid-rows`,()=>[{values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--grid-template-rows`]}]),r(`flex-row`,[[`flex-direction`,`row`]]),r(`flex-row-reverse`,[[`flex-direction`,`row-reverse`]]),r(`flex-col`,[[`flex-direction`,`column`]]),r(`flex-col-reverse`,[[`flex-direction`,`column-reverse`]]),r(`flex-wrap`,[[`flex-wrap`,`wrap`]]),r(`flex-nowrap`,[[`flex-wrap`,`nowrap`]]),r(`flex-wrap-reverse`,[[`flex-wrap`,`wrap-reverse`]]),r(`place-content-center`,[[`place-content`,`center`]]),r(`place-content-start`,[[`place-content`,`start`]]),r(`place-content-end`,[[`place-content`,`end`]]),r(`place-content-center-safe`,[[`place-content`,`safe center`]]),r(`place-content-end-safe`,[[`place-content`,`safe end`]]),r(`place-content-between`,[[`place-content`,`space-between`]]),r(`place-content-around`,[[`place-content`,`space-around`]]),r(`place-content-evenly`,[[`place-content`,`space-evenly`]]),r(`place-content-baseline`,[[`place-content`,`baseline`]]),r(`place-content-stretch`,[[`place-content`,`stretch`]]),r(`place-items-center`,[[`place-items`,`center`]]),r(`place-items-start`,[[`place-items`,`start`]]),r(`place-items-end`,[[`place-items`,`end`]]),r(`place-items-center-safe`,[[`place-items`,`safe center`]]),r(`place-items-end-safe`,[[`place-items`,`safe end`]]),r(`place-items-baseline`,[[`place-items`,`baseline`]]),r(`place-items-stretch`,[[`place-items`,`stretch`]]),r(`content-normal`,[[`align-content`,`normal`]]),r(`content-center`,[[`align-content`,`center`]]),r(`content-start`,[[`align-content`,`flex-start`]]),r(`content-end`,[[`align-content`,`flex-end`]]),r(`content-center-safe`,[[`align-content`,`safe center`]]),r(`content-end-safe`,[[`align-content`,`safe flex-end`]]),r(`content-between`,[[`align-content`,`space-between`]]),r(`content-around`,[[`align-content`,`space-around`]]),r(`content-evenly`,[[`align-content`,`space-evenly`]]),r(`content-baseline`,[[`align-content`,`baseline`]]),r(`content-stretch`,[[`align-content`,`stretch`]]),r(`items-center`,[[`align-items`,`center`]]),r(`items-start`,[[`align-items`,`flex-start`]]),r(`items-end`,[[`align-items`,`flex-end`]]),r(`items-center-safe`,[[`align-items`,`safe center`]]),r(`items-end-safe`,[[`align-items`,`safe flex-end`]]),r(`items-baseline`,[[`align-items`,`baseline`]]),r(`items-baseline-last`,[[`align-items`,`last baseline`]]),r(`items-stretch`,[[`align-items`,`stretch`]]),r(`justify-normal`,[[`justify-content`,`normal`]]),r(`justify-center`,[[`justify-content`,`center`]]),r(`justify-start`,[[`justify-content`,`flex-start`]]),r(`justify-end`,[[`justify-content`,`flex-end`]]),r(`justify-center-safe`,[[`justify-content`,`safe center`]]),r(`justify-end-safe`,[[`justify-content`,`safe flex-end`]]),r(`justify-between`,[[`justify-content`,`space-between`]]),r(`justify-around`,[[`justify-content`,`space-around`]]),r(`justify-evenly`,[[`justify-content`,`space-evenly`]]),r(`justify-baseline`,[[`justify-content`,`baseline`]]),r(`justify-stretch`,[[`justify-content`,`stretch`]]),r(`justify-items-normal`,[[`justify-items`,`normal`]]),r(`justify-items-center`,[[`justify-items`,`center`]]),r(`justify-items-start`,[[`justify-items`,`start`]]),r(`justify-items-end`,[[`justify-items`,`end`]]),r(`justify-items-center-safe`,[[`justify-items`,`safe center`]]),r(`justify-items-end-safe`,[[`justify-items`,`safe end`]]),r(`justify-items-stretch`,[[`justify-items`,`stretch`]]),o(`gap`,[`--gap`,`--spacing`],e=>[L(`gap`,e)]),o(`gap-x`,[`--gap`,`--spacing`],e=>[L(`column-gap`,e)]),o(`gap-y`,[`--gap`,`--spacing`],e=>[L(`row-gap`,e)]),o(`space-x`,[`--space`,`--spacing`],e=>{let t=(()=>{if(e===`--spacing(0)`||e===`--spacing(-0)`)return!0;let t=pt.get(e);return!(!t||t[0]!==0||t[1]!==null&&!Rt(e))})();return[R([H(`--tw-space-x-reverse`,`0`)]),P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`row-gap`),L(`--tw-space-x-reverse`,`0`),L(`margin-inline-start`,t?`0`:`calc(${e} * var(--tw-space-x-reverse))`),L(`margin-inline-end`,t?`0`:`calc(${e} * calc(1 - var(--tw-space-x-reverse)))`)])]},{supportsNegative:!0}),o(`space-y`,[`--space`,`--spacing`],e=>{let t=(()=>{if(e===`--spacing(0)`||e===`--spacing(-0)`)return!0;let t=pt.get(e);return!(!t||t[0]!==0||t[1]!==null&&!Rt(e))})();return[R([H(`--tw-space-y-reverse`,`0`)]),P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`column-gap`),L(`--tw-space-y-reverse`,`0`),L(`margin-block-start`,t?`0`:`calc(${e} * var(--tw-space-y-reverse))`),L(`margin-block-end`,t?`0`:`calc(${e} * calc(1 - var(--tw-space-y-reverse)))`)])]},{supportsNegative:!0}),r(`space-x-reverse`,[()=>R([H(`--tw-space-x-reverse`,`0`)]),()=>P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`row-gap`),L(`--tw-space-x-reverse`,`1`)])]),r(`space-y-reverse`,[()=>R([H(`--tw-space-y-reverse`,`0`)]),()=>P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`column-gap`),L(`--tw-space-y-reverse`,`1`)])]),r(`accent-auto`,[[`accent-color`,`auto`]]),a(`accent`,{themeKeys:[`--accent-color`,`--color`],handle:e=>[L(`accent-color`,e)]}),a(`caret`,{themeKeys:[`--caret-color`,`--color`],handle:e=>[L(`caret-color`,e)]}),a(`divide`,{themeKeys:[`--divide-color`,`--border-color`,`--color`],handle:e=>[P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`divide-color`),L(`border-color`,e)])]}),r(`place-self-auto`,[[`place-self`,`auto`]]),r(`place-self-start`,[[`place-self`,`start`]]),r(`place-self-end`,[[`place-self`,`end`]]),r(`place-self-center`,[[`place-self`,`center`]]),r(`place-self-end-safe`,[[`place-self`,`safe end`]]),r(`place-self-center-safe`,[[`place-self`,`safe center`]]),r(`place-self-stretch`,[[`place-self`,`stretch`]]),r(`self-auto`,[[`align-self`,`auto`]]),r(`self-start`,[[`align-self`,`flex-start`]]),r(`self-end`,[[`align-self`,`flex-end`]]),r(`self-center`,[[`align-self`,`center`]]),r(`self-end-safe`,[[`align-self`,`safe flex-end`]]),r(`self-center-safe`,[[`align-self`,`safe center`]]),r(`self-stretch`,[[`align-self`,`stretch`]]),r(`self-baseline`,[[`align-self`,`baseline`]]),r(`self-baseline-last`,[[`align-self`,`last baseline`]]),r(`justify-self-auto`,[[`justify-self`,`auto`]]),r(`justify-self-start`,[[`justify-self`,`flex-start`]]),r(`justify-self-end`,[[`justify-self`,`flex-end`]]),r(`justify-self-center`,[[`justify-self`,`center`]]),r(`justify-self-end-safe`,[[`justify-self`,`safe flex-end`]]),r(`justify-self-center-safe`,[[`justify-self`,`safe center`]]),r(`justify-self-stretch`,[[`justify-self`,`stretch`]]);for(let e of[`auto`,`hidden`,`clip`,`visible`,`scroll`])r(`overflow-${e}`,[[`overflow`,e]]),r(`overflow-x-${e}`,[[`overflow-x`,e]]),r(`overflow-y-${e}`,[[`overflow-y`,e]]);for(let e of[`auto`,`contain`,`none`])r(`overscroll-${e}`,[[`overscroll-behavior`,e]]),r(`overscroll-x-${e}`,[[`overscroll-behavior-x`,e]]),r(`overscroll-y-${e}`,[[`overscroll-behavior-y`,e]]);r(`scroll-auto`,[[`scroll-behavior`,`auto`]]),r(`scroll-smooth`,[[`scroll-behavior`,`smooth`]]),r(`scrollbar-auto`,[[`scrollbar-width`,`auto`]]),r(`scrollbar-thin`,[[`scrollbar-width`,`thin`]]),r(`scrollbar-none`,[[`scrollbar-width`,`none`]]);{let e=()=>R([H(`--tw-scrollbar-thumb`,`#0000`,`<color>`),H(`--tw-scrollbar-track`,`#0000`,`<color>`)]);a(`scrollbar-thumb`,{themeKeys:[`--color`],handle:t=>[e(),L(`--tw-scrollbar-thumb`,t),L(`scrollbar-color`,`var(--tw-scrollbar-thumb) var(--tw-scrollbar-track)`)]}),a(`scrollbar-track`,{themeKeys:[`--color`],handle:t=>[e(),L(`--tw-scrollbar-track`,t),L(`scrollbar-color`,`var(--tw-scrollbar-thumb) var(--tw-scrollbar-track)`)]})}r(`scrollbar-gutter-auto`,[[`scrollbar-gutter`,`auto`]]),r(`scrollbar-gutter-stable`,[[`scrollbar-gutter`,`stable`]]),r(`scrollbar-gutter-both`,[[`scrollbar-gutter`,`stable both-edges`]]),r(`truncate`,[[`overflow`,`hidden`],[`text-overflow`,`ellipsis`],[`white-space`,`nowrap`]]),r(`text-ellipsis`,[[`text-overflow`,`ellipsis`]]),r(`text-clip`,[[`text-overflow`,`clip`]]),r(`hyphens-none`,[[`-webkit-hyphens`,`none`],[`hyphens`,`none`]]),r(`hyphens-manual`,[[`-webkit-hyphens`,`manual`],[`hyphens`,`manual`]]),r(`hyphens-auto`,[[`-webkit-hyphens`,`auto`],[`hyphens`,`auto`]]),r(`whitespace-normal`,[[`white-space`,`normal`]]),r(`whitespace-nowrap`,[[`white-space`,`nowrap`]]),r(`whitespace-pre`,[[`white-space`,`pre`]]),r(`whitespace-pre-line`,[[`white-space`,`pre-line`]]),r(`whitespace-pre-wrap`,[[`white-space`,`pre-wrap`]]),r(`whitespace-break-spaces`,[[`white-space`,`break-spaces`]]),i(`tab`,{handleBareValue:({value:e})=>V(e)?e:null,handle:e=>[L(`tab-size`,e)]}),n(`tab`,()=>[{values:[`2`,`4`,`8`]}]),r(`text-wrap`,[[`text-wrap`,`wrap`]]),r(`text-nowrap`,[[`text-wrap`,`nowrap`]]),r(`text-balance`,[[`text-wrap`,`balance`]]),r(`text-pretty`,[[`text-wrap`,`pretty`]]),r(`break-normal`,[[`overflow-wrap`,`normal`],[`word-break`,`normal`]]),r(`break-all`,[[`word-break`,`break-all`]]),r(`break-keep`,[[`word-break`,`keep-all`]]),r(`wrap-anywhere`,[[`overflow-wrap`,`anywhere`]]),r(`wrap-break-word`,[[`overflow-wrap`,`break-word`]]),r(`wrap-normal`,[[`overflow-wrap`,`normal`]]);for(let[e,t]of[[`rounded`,[`border-radius`]],[`rounded-s`,[`border-start-start-radius`,`border-end-start-radius`]],[`rounded-e`,[`border-start-end-radius`,`border-end-end-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-ss`,[`border-start-start-radius`]],[`rounded-se`,[`border-start-end-radius`]],[`rounded-ee`,[`border-end-end-radius`]],[`rounded-es`,[`border-end-start-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`]]])i(e,{themeKeys:[`--radius`],handle:e=>t.map(t=>L(t,e)),staticValues:{none:t.map(e=>L(e,`0`)),full:t.map(e=>L(e,`calc(infinity * 1px)`))}});r(`border-solid`,[[`--tw-border-style`,`solid`],[`border-style`,`solid`]]),r(`border-dashed`,[[`--tw-border-style`,`dashed`],[`border-style`,`dashed`]]),r(`border-dotted`,[[`--tw-border-style`,`dotted`],[`border-style`,`dotted`]]),r(`border-double`,[[`--tw-border-style`,`double`],[`border-style`,`double`]]),r(`border-hidden`,[[`--tw-border-style`,`hidden`],[`border-style`,`hidden`]]),r(`border-none`,[[`--tw-border-style`,`none`],[`border-style`,`none`]]);{let a=function(r,i){t.functional(r,t=>{if(!t.value){if(t.modifier)return;let n=e.get([`--default-border-width`])??`1px`,r=i.width(n);return r?[o(),...r]:void 0}if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??B(n,[`color`,`line-width`,`length`])){case`line-width`:case`length`:{if(t.modifier)return;let e=i.width(n);return e?[o(),...e]:void 0}default:return n=W(n,t.modifier,e),n===null?void 0:i.color(n)}}{let n=G(t,e,[`--border-color`,`--color`]);if(n)return i.color(n)}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--border-width`]);if(n){let e=i.width(n);return e?[o(),...e]:void 0}if(V(t.value.value)){let e=i.width(`${t.value.value}px`);return e?[o(),...e]:void 0}}}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--border-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:!0},{values:[`0`,`2`,`4`,`8`],valueThemeKeys:[`--border-width`]}])},o=()=>R([H(`--tw-border-style`,`solid`)]);a(`border`,{width:e=>[L(`border-style`,`var(--tw-border-style)`),L(`border-width`,e)],color:e=>[L(`border-color`,e)]}),a(`border-x`,{width:e=>[L(`border-inline-style`,`var(--tw-border-style)`),L(`border-inline-width`,e)],color:e=>[L(`border-inline-color`,e)]}),a(`border-y`,{width:e=>[L(`border-block-style`,`var(--tw-border-style)`),L(`border-block-width`,e)],color:e=>[L(`border-block-color`,e)]}),a(`border-s`,{width:e=>[L(`border-inline-start-style`,`var(--tw-border-style)`),L(`border-inline-start-width`,e)],color:e=>[L(`border-inline-start-color`,e)]}),a(`border-e`,{width:e=>[L(`border-inline-end-style`,`var(--tw-border-style)`),L(`border-inline-end-width`,e)],color:e=>[L(`border-inline-end-color`,e)]}),a(`border-bs`,{width:e=>[L(`border-block-start-style`,`var(--tw-border-style)`),L(`border-block-start-width`,e)],color:e=>[L(`border-block-start-color`,e)]}),a(`border-be`,{width:e=>[L(`border-block-end-style`,`var(--tw-border-style)`),L(`border-block-end-width`,e)],color:e=>[L(`border-block-end-color`,e)]}),a(`border-t`,{width:e=>[L(`border-top-style`,`var(--tw-border-style)`),L(`border-top-width`,e)],color:e=>[L(`border-top-color`,e)]}),a(`border-r`,{width:e=>[L(`border-right-style`,`var(--tw-border-style)`),L(`border-right-width`,e)],color:e=>[L(`border-right-color`,e)]}),a(`border-b`,{width:e=>[L(`border-bottom-style`,`var(--tw-border-style)`),L(`border-bottom-width`,e)],color:e=>[L(`border-bottom-color`,e)]}),a(`border-l`,{width:e=>[L(`border-left-style`,`var(--tw-border-style)`),L(`border-left-width`,e)],color:e=>[L(`border-left-color`,e)]}),i(`divide-x`,{defaultValue:e.get([`--default-border-width`])??`1px`,themeKeys:[`--divide-width`,`--border-width`],handleBareValue:({value:e})=>V(e)?`${e}px`:null,handle:e=>[R([H(`--tw-divide-x-reverse`,`0`)]),P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`divide-x-width`),o(),L(`--tw-divide-x-reverse`,`0`),L(`border-inline-style`,`var(--tw-border-style)`),L(`border-inline-start-width`,`calc(${e} * var(--tw-divide-x-reverse))`),L(`border-inline-end-width`,`calc(${e} * calc(1 - var(--tw-divide-x-reverse)))`)])]}),i(`divide-y`,{defaultValue:e.get([`--default-border-width`])??`1px`,themeKeys:[`--divide-width`,`--border-width`],handleBareValue:({value:e})=>V(e)?`${e}px`:null,handle:e=>[R([H(`--tw-divide-y-reverse`,`0`)]),P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`divide-y-width`),o(),L(`--tw-divide-y-reverse`,`0`),L(`border-bottom-style`,`var(--tw-border-style)`),L(`border-top-style`,`var(--tw-border-style)`),L(`border-top-width`,`calc(${e} * var(--tw-divide-y-reverse))`),L(`border-bottom-width`,`calc(${e} * calc(1 - var(--tw-divide-y-reverse)))`)])]}),n(`divide-x`,()=>[{values:[`0`,`2`,`4`,`8`],valueThemeKeys:[`--divide-width`,`--border-width`],hasDefaultValue:!0}]),n(`divide-y`,()=>[{values:[`0`,`2`,`4`,`8`],valueThemeKeys:[`--divide-width`,`--border-width`],hasDefaultValue:!0}]),r(`divide-x-reverse`,[()=>R([H(`--tw-divide-x-reverse`,`0`)]),()=>P(`:where(& > :not(:last-child))`,[L(`--tw-divide-x-reverse`,`1`)])]),r(`divide-y-reverse`,[()=>R([H(`--tw-divide-y-reverse`,`0`)]),()=>P(`:where(& > :not(:last-child))`,[L(`--tw-divide-y-reverse`,`1`)])]);for(let e of[`solid`,`dashed`,`dotted`,`double`,`none`])r(`divide-${e}`,[()=>P(`:where(& > :not(:last-child))`,[L(`--tw-sort`,`divide-style`),L(`--tw-border-style`,e),L(`border-style`,e)])])}r(`bg-auto`,[[`background-size`,`auto`]]),r(`bg-cover`,[[`background-size`,`cover`]]),r(`bg-contain`,[[`background-size`,`contain`]]),i(`bg-size`,{handle(e){if(e)return[L(`background-size`,e)]}}),r(`bg-fixed`,[[`background-attachment`,`fixed`]]),r(`bg-local`,[[`background-attachment`,`local`]]),r(`bg-scroll`,[[`background-attachment`,`scroll`]]),r(`bg-top`,[[`background-position`,`top`]]),r(`bg-top-left`,[[`background-position`,`left top`]]),r(`bg-top-right`,[[`background-position`,`right top`]]),r(`bg-bottom`,[[`background-position`,`bottom`]]),r(`bg-bottom-left`,[[`background-position`,`left bottom`]]),r(`bg-bottom-right`,[[`background-position`,`right bottom`]]),r(`bg-left`,[[`background-position`,`left`]]),r(`bg-right`,[[`background-position`,`right`]]),r(`bg-center`,[[`background-position`,`center`]]),i(`bg-position`,{handle(e){if(e)return[L(`background-position`,e)]}}),r(`bg-repeat`,[[`background-repeat`,`repeat`]]),r(`bg-no-repeat`,[[`background-repeat`,`no-repeat`]]),r(`bg-repeat-x`,[[`background-repeat`,`repeat-x`]]),r(`bg-repeat-y`,[[`background-repeat`,`repeat-y`]]),r(`bg-repeat-round`,[[`background-repeat`,`round`]]),r(`bg-repeat-space`,[[`background-repeat`,`space`]]),r(`bg-none`,[[`background-image`,`none`]]);{let e=function(e){let t=`in oklab`;if(e?.kind===`named`)switch(e.value){case`longer`:case`shorter`:case`increasing`:case`decreasing`:t=`in oklch ${e.value} hue`;break;default:t=`in ${e.value}`}else e?.kind===`arbitrary`&&(t=e.value);return t},r=function({negative:t}){return n=>{if(!n.value)return;if(n.value.kind===`arbitrary`){if(n.modifier)return;let e=n.value.value;return(n.value.dataType??B(e,[`angle`]))===`angle`?(e=t?`calc(${e} * -1)`:`${e}`,[L(`--tw-gradient-position`,e),L(`background-image`,`linear-gradient(var(--tw-gradient-stops,${e}))`)]):t?void 0:[L(`--tw-gradient-position`,e),L(`background-image`,`linear-gradient(var(--tw-gradient-stops,${e}))`)]}let r=n.value.value;if(!t&&o.has(r))r=o.get(r);else if(V(r))r=t?`calc(${r}deg * -1)`:`${r}deg`;else return;let i=e(n.modifier);return[L(`--tw-gradient-position`,`${r}`),I(`@supports (background-image: linear-gradient(in lab, red, red))`,[L(`--tw-gradient-position`,`${r} ${i}`)]),L(`background-image`,`linear-gradient(var(--tw-gradient-stops))`)]}},i=function({negative:t}){return n=>{if(n.value?.kind===`arbitrary`){if(n.modifier)return;let e=n.value.value;return[L(`--tw-gradient-position`,e),L(`background-image`,`conic-gradient(var(--tw-gradient-stops,${e}))`)]}let r=e(n.modifier);if(!n.value)return[L(`--tw-gradient-position`,r),L(`background-image`,`conic-gradient(var(--tw-gradient-stops))`)];let i=n.value.value;if(V(i))return i=t?`calc(${i}deg * -1)`:`${i}deg`,[L(`--tw-gradient-position`,`from ${i} ${r}`),L(`background-image`,`conic-gradient(var(--tw-gradient-stops))`)]}},a=[`oklab`,`oklch`,`srgb`,`hsl`,`longer`,`shorter`,`increasing`,`decreasing`],o=new Map([[`to-t`,`to top`],[`to-tr`,`to top right`],[`to-r`,`to right`],[`to-br`,`to bottom right`],[`to-b`,`to bottom`],[`to-bl`,`to bottom left`],[`to-l`,`to left`],[`to-tl`,`to top left`]]);t.functional(`-bg-linear`,r({negative:!0})),t.functional(`bg-linear`,r({negative:!1})),n(`bg-linear`,()=>[{values:[...o.keys()],modifiers:a},{values:[`0`,`30`,`60`,`90`,`120`,`150`,`180`,`210`,`240`,`270`,`300`,`330`],supportsNegative:!0,modifiers:a}]),t.functional(`-bg-conic`,i({negative:!0})),t.functional(`bg-conic`,i({negative:!1})),n(`bg-conic`,()=>[{hasDefaultValue:!0,modifiers:a},{values:[`0`,`30`,`60`,`90`,`120`,`150`,`180`,`210`,`240`,`270`,`300`,`330`],supportsNegative:!0,modifiers:a}]),t.functional(`bg-radial`,t=>{if(!t.value)return[L(`--tw-gradient-position`,e(t.modifier)),L(`background-image`,`radial-gradient(var(--tw-gradient-stops))`)];if(t.value.kind===`arbitrary`){if(t.modifier)return;let e=t.value.value;return[L(`--tw-gradient-position`,e),L(`background-image`,`radial-gradient(var(--tw-gradient-stops,${e}))`)]}}),n(`bg-radial`,()=>[{hasDefaultValue:!0,modifiers:a}])}t.functional(`bg`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??B(n,[`image`,`color`,`percentage`,`position`,`bg-size`,`length`,`url`])){case`percentage`:case`position`:return t.modifier?void 0:[L(`background-position`,n)];case`bg-size`:case`length`:case`size`:return t.modifier?void 0:[L(`background-size`,n)];case`image`:case`url`:return t.modifier?void 0:[L(`background-image`,n)];default:return n=W(n,t.modifier,e),n===null?void 0:[L(`background-color`,n)]}}{let n=G(t,e,[`--background-color`,`--color`]);if(n)return[L(`background-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--background-image`]);if(n)return[L(`background-image`,n)]}}}),n(`bg`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[],valueThemeKeys:[`--background-image`]}]);let m=()=>R([H(`--tw-gradient-position`),H(`--tw-gradient-from`,`#0000`,`<color>`),H(`--tw-gradient-via`,`#0000`,`<color>`),H(`--tw-gradient-to`,`#0000`,`<color>`),H(`--tw-gradient-stops`),H(`--tw-gradient-via-stops`),H(`--tw-gradient-from-position`,`0%`,`<length-percentage>`),H(`--tw-gradient-via-position`,`50%`,`<length-percentage>`),H(`--tw-gradient-to-position`,`100%`,`<length-percentage>`)]);function h(r,i){t.functional(r,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??B(n,[`color`,`length`,`percentage`])){case`length`:case`percentage`:return t.modifier?void 0:i.position(n);default:return n=W(n,t.modifier,e),n===null?void 0:i.color(n)}}{let n=G(t,e,[`--background-color`,`--color`]);if(n)return i.color(n)}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--gradient-color-stop-positions`]);if(n)return i.position(n);if(t.value.value[t.value.value.length-1]===`%`&&V(t.value.value.slice(0,-1)))return i.position(t.value.value)}}}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:Array.from({length:21},(e,t)=>`${t*5}%`),valueThemeKeys:[`--gradient-color-stop-positions`]}])}h(`from`,{color:e=>[m(),L(`--tw-sort`,`--tw-gradient-from`),L(`--tw-gradient-from`,e),L(`--tw-gradient-stops`,`var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))`)],position:e=>[m(),L(`--tw-gradient-from-position`,e)]}),r(`via-none`,[[`--tw-gradient-via-stops`,`initial`]]),h(`via`,{color:e=>[m(),L(`--tw-sort`,`--tw-gradient-via`),L(`--tw-gradient-via`,e),L(`--tw-gradient-via-stops`,`var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position)`),L(`--tw-gradient-stops`,`var(--tw-gradient-via-stops)`)],position:e=>[m(),L(`--tw-gradient-via-position`,e)]}),h(`to`,{color:e=>[m(),L(`--tw-sort`,`--tw-gradient-to`),L(`--tw-gradient-to`,e),L(`--tw-gradient-stops`,`var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))`)],position:e=>[m(),L(`--tw-gradient-to-position`,e)]}),r(`mask-none`,[[`mask-image`,`none`]]),t.functional(`mask`,e=>{if(!e.value||e.modifier||e.value.kind!==`arbitrary`)return;let t=e.value.value;switch(e.value.dataType??B(t,[`image`,`percentage`,`position`,`bg-size`,`length`,`url`])){case`percentage`:case`position`:return e.modifier?void 0:[L(`mask-position`,t)];case`bg-size`:case`length`:case`size`:return[L(`mask-size`,t)];default:return[L(`mask-image`,t)]}}),r(`mask-add`,[[`mask-composite`,`add`]]),r(`mask-subtract`,[[`mask-composite`,`subtract`]]),r(`mask-intersect`,[[`mask-composite`,`intersect`]]),r(`mask-exclude`,[[`mask-composite`,`exclude`]]),r(`mask-alpha`,[[`mask-mode`,`alpha`]]),r(`mask-luminance`,[[`mask-mode`,`luminance`]]),r(`mask-match`,[[`mask-mode`,`match-source`]]),r(`mask-type-alpha`,[[`mask-type`,`alpha`]]),r(`mask-type-luminance`,[[`mask-type`,`luminance`]]),r(`mask-auto`,[[`mask-size`,`auto`]]),r(`mask-cover`,[[`mask-size`,`cover`]]),r(`mask-contain`,[[`mask-size`,`contain`]]),i(`mask-size`,{handle(e){if(e)return[L(`mask-size`,e)]}}),r(`mask-top`,[[`mask-position`,`top`]]),r(`mask-top-left`,[[`mask-position`,`left top`]]),r(`mask-top-right`,[[`mask-position`,`right top`]]),r(`mask-bottom`,[[`mask-position`,`bottom`]]),r(`mask-bottom-left`,[[`mask-position`,`left bottom`]]),r(`mask-bottom-right`,[[`mask-position`,`right bottom`]]),r(`mask-left`,[[`mask-position`,`left`]]),r(`mask-right`,[[`mask-position`,`right`]]),r(`mask-center`,[[`mask-position`,`center`]]),i(`mask-position`,{handle(e){if(e)return[L(`mask-position`,e)]}}),r(`mask-repeat`,[[`mask-repeat`,`repeat`]]),r(`mask-no-repeat`,[[`mask-repeat`,`no-repeat`]]),r(`mask-repeat-x`,[[`mask-repeat`,`repeat-x`]]),r(`mask-repeat-y`,[[`mask-repeat`,`repeat-y`]]),r(`mask-repeat-round`,[[`mask-repeat`,`round`]]),r(`mask-repeat-space`,[[`mask-repeat`,`space`]]),r(`mask-clip-border`,[[`mask-clip`,`border-box`]]),r(`mask-clip-padding`,[[`mask-clip`,`padding-box`]]),r(`mask-clip-content`,[[`mask-clip`,`content-box`]]),r(`mask-clip-fill`,[[`mask-clip`,`fill-box`]]),r(`mask-clip-stroke`,[[`mask-clip`,`stroke-box`]]),r(`mask-clip-view`,[[`mask-clip`,`view-box`]]),r(`mask-no-clip`,[[`mask-clip`,`no-clip`]]),r(`mask-origin-border`,[[`mask-origin`,`border-box`]]),r(`mask-origin-padding`,[[`mask-origin`,`padding-box`]]),r(`mask-origin-content`,[[`mask-origin`,`content-box`]]),r(`mask-origin-fill`,[[`mask-origin`,`fill-box`]]),r(`mask-origin-stroke`,[[`mask-origin`,`stroke-box`]]),r(`mask-origin-view`,[[`mask-origin`,`view-box`]]);let g=()=>R([H(`--tw-mask-linear`,`linear-gradient(#fff, #fff)`),H(`--tw-mask-radial`,`linear-gradient(#fff, #fff)`),H(`--tw-mask-conic`,`linear-gradient(#fff, #fff)`)]);function _(r,i){t.functional(r,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??B(n,[`length`,`percentage`,`color`])){case`color`:return n=W(n,t.modifier,e),n===null?void 0:i.color(n);case`percentage`:return t.modifier||!V(n.slice(0,-1))?void 0:i.position(n);default:return t.modifier?void 0:i.position(n)}}{let n=G(t,e,[`--background-color`,`--color`]);if(n)return i.color(n)}{if(t.modifier)return;let n=B(t.value.value,[`number`,`percentage`]);if(!n)return;switch(n){case`number`:return!e.resolve(null,[`--spacing`])||!Kt(t.value.value)?void 0:i.position(`--spacing(${t.value.value})`);case`percentage`:return V(t.value.value.slice(0,-1))?i.position(t.value.value):void 0;default:return}}}}),n(r,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:Array.from({length:21},(e,t)=>`${t*5}%`),valueThemeKeys:[`--gradient-color-stop-positions`]}]),n(r,()=>[{values:Array.from({length:21},(e,t)=>`${t*5}%`)},{values:e.get([`--spacing`])?en:[]},{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)}])}let v=()=>R([H(`--tw-mask-left`,`linear-gradient(#fff, #fff)`),H(`--tw-mask-right`,`linear-gradient(#fff, #fff)`),H(`--tw-mask-bottom`,`linear-gradient(#fff, #fff)`),H(`--tw-mask-top`,`linear-gradient(#fff, #fff)`)]);function y(e,t,n){_(e,{color(e){let r=[g(),v(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-linear`,`var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top)`)];for(let i of[`top`,`right`,`bottom`,`left`])n[i]&&(r.push(L(`--tw-mask-${i}`,`linear-gradient(to ${i}, var(--tw-mask-${i}-from-color) var(--tw-mask-${i}-from-position), var(--tw-mask-${i}-to-color) var(--tw-mask-${i}-to-position))`)),r.push(R([H(`--tw-mask-${i}-from-position`,`0%`),H(`--tw-mask-${i}-to-position`,`100%`),H(`--tw-mask-${i}-from-color`,`black`),H(`--tw-mask-${i}-to-color`,`transparent`)])),r.push(L(`--tw-mask-${i}-${t}-color`,e)));return r},position(e){let r=[g(),v(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-linear`,`var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top)`)];for(let i of[`top`,`right`,`bottom`,`left`])n[i]&&(r.push(L(`--tw-mask-${i}`,`linear-gradient(to ${i}, var(--tw-mask-${i}-from-color) var(--tw-mask-${i}-from-position), var(--tw-mask-${i}-to-color) var(--tw-mask-${i}-to-position))`)),r.push(R([H(`--tw-mask-${i}-from-position`,`0%`),H(`--tw-mask-${i}-to-position`,`100%`),H(`--tw-mask-${i}-from-color`,`black`),H(`--tw-mask-${i}-to-color`,`transparent`)])),r.push(L(`--tw-mask-${i}-${t}-position`,e)));return r}})}y(`mask-x-from`,`from`,{top:!1,right:!0,bottom:!1,left:!0}),y(`mask-x-to`,`to`,{top:!1,right:!0,bottom:!1,left:!0}),y(`mask-y-from`,`from`,{top:!0,right:!1,bottom:!0,left:!1}),y(`mask-y-to`,`to`,{top:!0,right:!1,bottom:!0,left:!1}),y(`mask-t-from`,`from`,{top:!0,right:!1,bottom:!1,left:!1}),y(`mask-t-to`,`to`,{top:!0,right:!1,bottom:!1,left:!1}),y(`mask-r-from`,`from`,{top:!1,right:!0,bottom:!1,left:!1}),y(`mask-r-to`,`to`,{top:!1,right:!0,bottom:!1,left:!1}),y(`mask-b-from`,`from`,{top:!1,right:!1,bottom:!0,left:!1}),y(`mask-b-to`,`to`,{top:!1,right:!1,bottom:!0,left:!1}),y(`mask-l-from`,`from`,{top:!1,right:!1,bottom:!1,left:!0}),y(`mask-l-to`,`to`,{top:!1,right:!1,bottom:!1,left:!0});let b=()=>R([H(`--tw-mask-linear-position`,`0deg`),H(`--tw-mask-linear-from-position`,`0%`),H(`--tw-mask-linear-to-position`,`100%`),H(`--tw-mask-linear-from-color`,`black`),H(`--tw-mask-linear-to-color`,`transparent`)]);i(`mask-linear`,{defaultValue:null,supportsNegative:!0,supportsFractions:!1,handleBareValue({value:e}){if(!V(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`1deg`:`calc(1deg * ${e})`},handleNegativeBareValue({value:e}){if(!V(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`-1deg`:`calc(1deg * -${e})`},handle:e=>[g(),b(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops, var(--tw-mask-linear-position)))`),L(`--tw-mask-linear-position`,e)]}),n(`mask-linear`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`]}]),_(`mask-linear-from`,{color:e=>[g(),b(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),L(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),L(`--tw-mask-linear-from-color`,e)],position:e=>[g(),b(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),L(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),L(`--tw-mask-linear-from-position`,e)]}),_(`mask-linear-to`,{color:e=>[g(),b(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),L(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),L(`--tw-mask-linear-to-color`,e)],position:e=>[g(),b(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-linear-stops`,`var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)`),L(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),L(`--tw-mask-linear-to-position`,e)]});let x=()=>R([H(`--tw-mask-radial-from-position`,`0%`),H(`--tw-mask-radial-to-position`,`100%`),H(`--tw-mask-radial-from-color`,`black`),H(`--tw-mask-radial-to-color`,`transparent`),H(`--tw-mask-radial-shape`,`ellipse`),H(`--tw-mask-radial-size`,`farthest-corner`),H(`--tw-mask-radial-position`,`center`)]);r(`mask-circle`,[[`--tw-mask-radial-shape`,`circle`]]),r(`mask-ellipse`,[[`--tw-mask-radial-shape`,`ellipse`]]),r(`mask-radial-closest-side`,[[`--tw-mask-radial-size`,`closest-side`]]),r(`mask-radial-farthest-side`,[[`--tw-mask-radial-size`,`farthest-side`]]),r(`mask-radial-closest-corner`,[[`--tw-mask-radial-size`,`closest-corner`]]),r(`mask-radial-farthest-corner`,[[`--tw-mask-radial-size`,`farthest-corner`]]),r(`mask-radial-at-top`,[[`--tw-mask-radial-position`,`top`]]),r(`mask-radial-at-top-left`,[[`--tw-mask-radial-position`,`top left`]]),r(`mask-radial-at-top-right`,[[`--tw-mask-radial-position`,`top right`]]),r(`mask-radial-at-bottom`,[[`--tw-mask-radial-position`,`bottom`]]),r(`mask-radial-at-bottom-left`,[[`--tw-mask-radial-position`,`bottom left`]]),r(`mask-radial-at-bottom-right`,[[`--tw-mask-radial-position`,`bottom right`]]),r(`mask-radial-at-left`,[[`--tw-mask-radial-position`,`left`]]),r(`mask-radial-at-right`,[[`--tw-mask-radial-position`,`right`]]),r(`mask-radial-at-center`,[[`--tw-mask-radial-position`,`center`]]),i(`mask-radial-at`,{defaultValue:null,supportsNegative:!1,supportsFractions:!1,handle:e=>[L(`--tw-mask-radial-position`,e)]}),i(`mask-radial`,{defaultValue:null,supportsNegative:!1,supportsFractions:!1,handle:e=>[g(),x(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops, var(--tw-mask-radial-size)))`),L(`--tw-mask-radial-size`,e)]}),_(`mask-radial-from`,{color:e=>[g(),x(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),L(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),L(`--tw-mask-radial-from-color`,e)],position:e=>[g(),x(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),L(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),L(`--tw-mask-radial-from-position`,e)]}),_(`mask-radial-to`,{color:e=>[g(),x(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),L(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),L(`--tw-mask-radial-to-color`,e)],position:e=>[g(),x(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-radial-stops`,`var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)`),L(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),L(`--tw-mask-radial-to-position`,e)]});let S=()=>R([H(`--tw-mask-conic-position`,`0deg`),H(`--tw-mask-conic-from-position`,`0%`),H(`--tw-mask-conic-to-position`,`100%`),H(`--tw-mask-conic-from-color`,`black`),H(`--tw-mask-conic-to-color`,`transparent`)]);i(`mask-conic`,{defaultValue:null,supportsNegative:!0,supportsFractions:!1,handleBareValue({value:e}){if(!V(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`1deg`:`calc(1deg * ${e})`},handleNegativeBareValue({value:e}){if(!V(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`-1deg`:`calc(1deg * -${e})`},handle:e=>[g(),S(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops, var(--tw-mask-conic-position)))`),L(`--tw-mask-conic-position`,e)]}),n(`mask-conic`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`3`,`6`,`12`,`45`,`90`,`180`]}]),_(`mask-conic-from`,{color:e=>[g(),S(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),L(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),L(`--tw-mask-conic-from-color`,e)],position:e=>[g(),S(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),L(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),L(`--tw-mask-conic-from-position`,e)]}),_(`mask-conic-to`,{color:e=>[g(),S(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),L(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),L(`--tw-mask-conic-to-color`,e)],position:e=>[g(),S(),L(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),L(`mask-composite`,`intersect`),L(`--tw-mask-conic-stops`,`from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)`),L(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),L(`--tw-mask-conic-to-position`,e)]}),r(`box-decoration-slice`,[[`-webkit-box-decoration-break`,`slice`],[`box-decoration-break`,`slice`]]),r(`box-decoration-clone`,[[`-webkit-box-decoration-break`,`clone`],[`box-decoration-break`,`clone`]]),r(`bg-clip-text`,[[`background-clip`,`text`]]),r(`bg-clip-border`,[[`background-clip`,`border-box`]]),r(`bg-clip-padding`,[[`background-clip`,`padding-box`]]),r(`bg-clip-content`,[[`background-clip`,`content-box`]]),r(`bg-origin-border`,[[`background-origin`,`border-box`]]),r(`bg-origin-padding`,[[`background-origin`,`padding-box`]]),r(`bg-origin-content`,[[`background-origin`,`content-box`]]);for(let e of[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`])r(`bg-blend-${e}`,[[`background-blend-mode`,e]]),r(`mix-blend-${e}`,[[`mix-blend-mode`,e]]);r(`mix-blend-plus-darker`,[[`mix-blend-mode`,`plus-darker`]]),r(`mix-blend-plus-lighter`,[[`mix-blend-mode`,`plus-lighter`]]),r(`fill-none`,[[`fill`,`none`]]),t.functional(`fill`,t=>{if(!t.value)return;if(t.value.kind===`arbitrary`){let n=W(t.value.value,t.modifier,e);return n===null?void 0:[L(`fill`,n)]}let n=G(t,e,[`--fill`,`--color`]);if(n)return[L(`fill`,n)]}),n(`fill`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--fill`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)}]),r(`stroke-none`,[[`stroke`,`none`]]),t.functional(`stroke`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??B(n,[`color`,`number`,`length`,`percentage`])){case`number`:case`length`:case`percentage`:return t.modifier?void 0:[L(`stroke-width`,n)];default:return n=W(t.value.value,t.modifier,e),n===null?void 0:[L(`stroke`,n)]}}{let n=G(t,e,[`--stroke`,`--color`]);if(n)return[L(`stroke`,n)]}{let n=e.resolve(t.value.value,[`--stroke-width`]);if(n)return[L(`stroke-width`,n)];if(V(t.value.value))return[L(`stroke-width`,t.value.value)]}}}),n(`stroke`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--stroke`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`3`],valueThemeKeys:[`--stroke-width`]}]),r(`object-contain`,[[`object-fit`,`contain`]]),r(`object-cover`,[[`object-fit`,`cover`]]),r(`object-fill`,[[`object-fit`,`fill`]]),r(`object-none`,[[`object-fit`,`none`]]),r(`object-scale-down`,[[`object-fit`,`scale-down`]]),i(`object`,{themeKeys:[`--object-position`],handle:e=>[L(`object-position`,e)],staticValues:{top:[L(`object-position`,`top`)],"top-left":[L(`object-position`,`left top`)],"top-right":[L(`object-position`,`right top`)],bottom:[L(`object-position`,`bottom`)],"bottom-left":[L(`object-position`,`left bottom`)],"bottom-right":[L(`object-position`,`right bottom`)],left:[L(`object-position`,`left`)],right:[L(`object-position`,`right`)],center:[L(`object-position`,`center`)]}});for(let[e,t]of[[`p`,`padding`],[`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`]])o(e,[`--padding`,`--spacing`],e=>[L(t,e)]);r(`text-left`,[[`text-align`,`left`]]),r(`text-center`,[[`text-align`,`center`]]),r(`text-right`,[[`text-align`,`right`]]),r(`text-justify`,[[`text-align`,`justify`]]),r(`text-start`,[[`text-align`,`start`]]),r(`text-end`,[[`text-align`,`end`]]),o(`indent`,[`--text-indent`,`--spacing`],e=>[L(`text-indent`,e)],{supportsNegative:!0}),r(`align-baseline`,[[`vertical-align`,`baseline`]]),r(`align-top`,[[`vertical-align`,`top`]]),r(`align-middle`,[[`vertical-align`,`middle`]]),r(`align-bottom`,[[`vertical-align`,`bottom`]]),r(`align-text-top`,[[`vertical-align`,`text-top`]]),r(`align-text-bottom`,[[`vertical-align`,`text-bottom`]]),r(`align-sub`,[[`vertical-align`,`sub`]]),r(`align-super`,[[`vertical-align`,`super`]]),i(`align`,{themeKeys:[],handle:e=>[L(`vertical-align`,e)]}),t.functional(`font`,t=>{if(t.value&&!t.modifier){if(t.value.kind===`arbitrary`){let e=t.value.value;switch(t.value.dataType??B(e,[`number`,`generic-name`,`family-name`])){case`generic-name`:case`family-name`:return[L(`font-family`,e)];default:return[R([H(`--tw-font-weight`)]),L(`--tw-font-weight`,e),L(`font-weight`,e)]}}{let n=e.resolveWith(t.value.value,[`--font`],[`--font-feature-settings`,`--font-variation-settings`]);if(n){let[e,t={}]=n;return[L(`font-family`,e),L(`font-feature-settings`,t[`--font-feature-settings`]),L(`font-variation-settings`,t[`--font-variation-settings`])]}}{let n=e.resolve(t.value.value,[`--font-weight`]);if(n)return[R([H(`--tw-font-weight`)]),L(`--tw-font-weight`,n),L(`font-weight`,n)]}}}),n(`font`,()=>[{values:[],valueThemeKeys:[`--font`]},{values:[],valueThemeKeys:[`--font-weight`]}]),i(`font-features`,{themeKeys:[],handle:e=>[L(`font-feature-settings`,e)]}),r(`uppercase`,[[`text-transform`,`uppercase`]]),r(`lowercase`,[[`text-transform`,`lowercase`]]),r(`capitalize`,[[`text-transform`,`capitalize`]]),r(`normal-case`,[[`text-transform`,`none`]]),r(`italic`,[[`font-style`,`italic`]]),r(`not-italic`,[[`font-style`,`normal`]]),r(`underline`,[[`text-decoration-line`,`underline`]]),r(`overline`,[[`text-decoration-line`,`overline`]]),r(`line-through`,[[`text-decoration-line`,`line-through`]]),r(`no-underline`,[[`text-decoration-line`,`none`]]),r(`font-stretch-normal`,[[`font-stretch`,`normal`]]),r(`font-stretch-ultra-condensed`,[[`font-stretch`,`ultra-condensed`]]),r(`font-stretch-extra-condensed`,[[`font-stretch`,`extra-condensed`]]),r(`font-stretch-condensed`,[[`font-stretch`,`condensed`]]),r(`font-stretch-semi-condensed`,[[`font-stretch`,`semi-condensed`]]),r(`font-stretch-semi-expanded`,[[`font-stretch`,`semi-expanded`]]),r(`font-stretch-expanded`,[[`font-stretch`,`expanded`]]),r(`font-stretch-extra-expanded`,[[`font-stretch`,`extra-expanded`]]),r(`font-stretch-ultra-expanded`,[[`font-stretch`,`ultra-expanded`]]),i(`font-stretch`,{handleBareValue:({value:e})=>{if(!e.endsWith(`%`))return null;let t=Number(e.slice(0,-1));return!V(t)||Number.isNaN(t)||t<50||t>200?null:e},handle:e=>[L(`font-stretch`,e)]}),n(`font-stretch`,()=>[{values:[`50%`,`75%`,`90%`,`95%`,`100%`,`105%`,`110%`,`125%`,`150%`,`200%`]}]),a(`placeholder`,{themeKeys:[`--placeholder-color`,`--color`],handle:e=>[P(`&::placeholder`,[L(`--tw-sort`,`placeholder-color`),L(`color`,e)])]}),r(`decoration-solid`,[[`text-decoration-style`,`solid`]]),r(`decoration-double`,[[`text-decoration-style`,`double`]]),r(`decoration-dotted`,[[`text-decoration-style`,`dotted`]]),r(`decoration-dashed`,[[`text-decoration-style`,`dashed`]]),r(`decoration-wavy`,[[`text-decoration-style`,`wavy`]]),r(`decoration-auto`,[[`text-decoration-thickness`,`auto`]]),r(`decoration-from-font`,[[`text-decoration-thickness`,`from-font`]]),t.functional(`decoration`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??B(n,[`color`,`length`,`percentage`])){case`length`:case`percentage`:return t.modifier?void 0:[L(`text-decoration-thickness`,n)];default:return n=W(n,t.modifier,e),n===null?void 0:[L(`text-decoration-color`,n)]}}{let n=e.resolve(t.value.value,[`--text-decoration-thickness`]);if(n)return t.modifier?void 0:[L(`text-decoration-thickness`,n)];if(V(t.value.value))return t.modifier?void 0:[L(`text-decoration-thickness`,`${t.value.value}px`)]}{let n=G(t,e,[`--text-decoration-color`,`--color`]);if(n)return[L(`text-decoration-color`,n)]}}}),n(`decoration`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--text-decoration-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`],valueThemeKeys:[`--text-decoration-thickness`]}]),i(`animate`,{themeKeys:[`--animate`],handle:e=>[L(`animation`,e)],staticValues:{none:[L(`animation`,`none`)]}});{let a=[`var(--tw-blur,)`,`var(--tw-brightness,)`,`var(--tw-contrast,)`,`var(--tw-grayscale,)`,`var(--tw-hue-rotate,)`,`var(--tw-invert,)`,`var(--tw-saturate,)`,`var(--tw-sepia,)`,`var(--tw-drop-shadow,)`].join(` `),o=[`var(--tw-backdrop-blur,)`,`var(--tw-backdrop-brightness,)`,`var(--tw-backdrop-contrast,)`,`var(--tw-backdrop-grayscale,)`,`var(--tw-backdrop-hue-rotate,)`,`var(--tw-backdrop-invert,)`,`var(--tw-backdrop-opacity,)`,`var(--tw-backdrop-saturate,)`,`var(--tw-backdrop-sepia,)`].join(` `),s=()=>R([H(`--tw-blur`),H(`--tw-brightness`),H(`--tw-contrast`),H(`--tw-grayscale`),H(`--tw-hue-rotate`),H(`--tw-invert`),H(`--tw-opacity`),H(`--tw-saturate`),H(`--tw-sepia`),H(`--tw-drop-shadow`),H(`--tw-drop-shadow-color`),H(`--tw-drop-shadow-alpha`,`100%`,`<percentage>`),H(`--tw-drop-shadow-size`)]),c=()=>R([H(`--tw-backdrop-blur`),H(`--tw-backdrop-brightness`),H(`--tw-backdrop-contrast`),H(`--tw-backdrop-grayscale`),H(`--tw-backdrop-hue-rotate`),H(`--tw-backdrop-invert`),H(`--tw-backdrop-opacity`),H(`--tw-backdrop-saturate`),H(`--tw-backdrop-sepia`)]);t.functional(`filter`,e=>{if(!e.modifier){if(e.value===null)return[s(),L(`filter`,a)];if(e.value.kind===`arbitrary`)return[L(`filter`,e.value.value)];if(e.value.value===`none`)return[L(`filter`,`none`)]}}),t.functional(`backdrop-filter`,e=>{if(!e.modifier){if(e.value===null)return[c(),L(`-webkit-backdrop-filter`,o),L(`backdrop-filter`,o)];if(e.value.kind===`arbitrary`)return[L(`-webkit-backdrop-filter`,e.value.value),L(`backdrop-filter`,e.value.value)];if(e.value.value===`none`)return[L(`-webkit-backdrop-filter`,`none`),L(`backdrop-filter`,`none`)]}}),i(`blur`,{themeKeys:[`--blur`],handle:e=>[s(),L(`--tw-blur`,`blur(${e})`),L(`filter`,a)],staticValues:{none:[s(),L(`--tw-blur`,` `),L(`filter`,a)]}}),i(`backdrop-blur`,{themeKeys:[`--backdrop-blur`,`--blur`],handle:e=>[c(),L(`--tw-backdrop-blur`,`blur(${e})`),L(`-webkit-backdrop-filter`,o),L(`backdrop-filter`,o)],staticValues:{none:[c(),L(`--tw-backdrop-blur`,` `),L(`-webkit-backdrop-filter`,o),L(`backdrop-filter`,o)]}}),i(`brightness`,{themeKeys:[`--brightness`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,handle:e=>[s(),L(`--tw-brightness`,`brightness(${e})`),L(`filter`,a)]}),i(`backdrop-brightness`,{themeKeys:[`--backdrop-brightness`,`--brightness`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,handle:e=>[c(),L(`--tw-backdrop-brightness`,`brightness(${e})`),L(`-webkit-backdrop-filter`,o),L(`backdrop-filter`,o)]}),n(`brightness`,()=>[{values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--brightness`]}]),n(`backdrop-brightness`,()=>[{values:[`0`,`50`,`75`,`90`,`95`,`100`,`105`,`110`,`125`,`150`,`200`],valueThemeKeys:[`--backdrop-brightness`,`--brightness`]}]),i(`contrast`,{themeKeys:[`--contrast`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,handle:e=>[s(),L(`--tw-contrast`,`contrast(${e})`),L(`filter`,a)]}),i(`backdrop-contrast`,{themeKeys:[`--backdrop-contrast`,`--contrast`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,handle:e=>[c(),L(`--tw-backdrop-contrast`,`contrast(${e})`),L(`-webkit-backdrop-filter`,o),L(`backdrop-filter`,o)]}),n(`contrast`,()=>[{values:[`0`,`50`,`75`,`100`,`125`,`150`,`200`],valueThemeKeys:[`--contrast`]}]),n(`backdrop-contrast`,()=>[{values:[`0`,`50`,`75`,`100`,`125`,`150`,`200`],valueThemeKeys:[`--backdrop-contrast`,`--contrast`]}]),i(`grayscale`,{themeKeys:[`--grayscale`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),L(`--tw-grayscale`,`grayscale(${e})`),L(`filter`,a)]}),i(`backdrop-grayscale`,{themeKeys:[`--backdrop-grayscale`,`--grayscale`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),L(`--tw-backdrop-grayscale`,`grayscale(${e})`),L(`-webkit-backdrop-filter`,o),L(`backdrop-filter`,o)]}),n(`grayscale`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--grayscale`],hasDefaultValue:!0}]),n(`backdrop-grayscale`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--backdrop-grayscale`,`--grayscale`],hasDefaultValue:!0}]),i(`hue-rotate`,{supportsNegative:!0,themeKeys:[`--hue-rotate`],handleBareValue:({value:e})=>V(e)?`${e}deg`:null,handle:e=>[s(),L(`--tw-hue-rotate`,`hue-rotate(${e})`),L(`filter`,a)]}),i(`backdrop-hue-rotate`,{supportsNegative:!0,themeKeys:[`--backdrop-hue-rotate`,`--hue-rotate`],handleBareValue:({value:e})=>V(e)?`${e}deg`:null,handle:e=>[c(),L(`--tw-backdrop-hue-rotate`,`hue-rotate(${e})`),L(`-webkit-backdrop-filter`,o),L(`backdrop-filter`,o)]}),n(`hue-rotate`,()=>[{values:[`0`,`15`,`30`,`60`,`90`,`180`],valueThemeKeys:[`--hue-rotate`]}]),n(`backdrop-hue-rotate`,()=>[{values:[`0`,`15`,`30`,`60`,`90`,`180`],valueThemeKeys:[`--backdrop-hue-rotate`,`--hue-rotate`]}]),i(`invert`,{themeKeys:[`--invert`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),L(`--tw-invert`,`invert(${e})`),L(`filter`,a)]}),i(`backdrop-invert`,{themeKeys:[`--backdrop-invert`,`--invert`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),L(`--tw-backdrop-invert`,`invert(${e})`),L(`-webkit-backdrop-filter`,o),L(`backdrop-filter`,o)]}),n(`invert`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--invert`],hasDefaultValue:!0}]),n(`backdrop-invert`,()=>[{values:[`0`,`25`,`50`,`75`,`100`],valueThemeKeys:[`--backdrop-invert`,`--invert`],hasDefaultValue:!0}]),i(`saturate`,{themeKeys:[`--saturate`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,handle:e=>[s(),L(`--tw-saturate`,`saturate(${e})`),L(`filter`,a)]}),i(`backdrop-saturate`,{themeKeys:[`--backdrop-saturate`,`--saturate`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,handle:e=>[c(),L(`--tw-backdrop-saturate`,`saturate(${e})`),L(`-webkit-backdrop-filter`,o),L(`backdrop-filter`,o)]}),n(`saturate`,()=>[{values:[`0`,`50`,`100`,`150`,`200`],valueThemeKeys:[`--saturate`]}]),n(`backdrop-saturate`,()=>[{values:[`0`,`50`,`100`,`150`,`200`],valueThemeKeys:[`--backdrop-saturate`,`--saturate`]}]),i(`sepia`,{themeKeys:[`--sepia`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),L(`--tw-sepia`,`sepia(${e})`),L(`filter`,a)]}),i(`backdrop-sepia`,{themeKeys:[`--backdrop-sepia`,`--sepia`],handleBareValue:({value:e})=>V(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),L(`--tw-backdrop-sepia`,`sepia(${e})`),L(`-webkit-backdrop-filter`,o),L(`backdrop-filter`,o)]}),n(`sepia`,()=>[{values:[`0`,`50`,`100`],valueThemeKeys:[`--sepia`],hasDefaultValue:!0}]),n(`backdrop-sepia`,()=>[{values:[`0`,`50`,`100`],valueThemeKeys:[`--backdrop-sepia`,`--sepia`],hasDefaultValue:!0}]),r(`drop-shadow-none`,[s,[`--tw-drop-shadow`,` `],[`filter`,a]]),t.functional(`drop-shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:qt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--drop-shadow`]),r=e.resolve(null,[`--drop-shadow`]);return t===null||r===null?void 0:[s(),L(`--tw-drop-shadow-alpha`,n),...un(`--tw-drop-shadow-size`,t,n,e=>`var(--tw-drop-shadow-color, ${e})`),L(`--tw-drop-shadow`,k(r,`,`).map(e=>`drop-shadow(${e})`).join(` `)),L(`filter`,a)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??B(r,[`color`]))===`color`?(r=W(r,t.modifier,e),r===null?void 0:[s(),L(`--tw-drop-shadow-color`,U(r,`var(--tw-drop-shadow-alpha)`)),L(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]):t.modifier&&!n?void 0:[s(),L(`--tw-drop-shadow-alpha`,n),...un(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),L(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`),L(`filter`,a)]}{let r=e.get([`--drop-shadow-${t.value.value}`]),i=e.resolve(t.value.value,[`--drop-shadow`]);if(r&&i)return t.modifier&&!n?void 0:n?[s(),L(`--tw-drop-shadow-alpha`,n),...un(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),L(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`),L(`filter`,a)]:[s(),L(`--tw-drop-shadow-alpha`,n),...un(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),L(`--tw-drop-shadow`,k(i,`,`).map(e=>`drop-shadow(${e})`).join(` `)),L(`filter`,a)]}{let n=G(t,e,[`--drop-shadow-color`,`--color`]);if(n)return n===`inherit`?[s(),L(`--tw-drop-shadow-color`,`inherit`),L(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]:[s(),L(`--tw-drop-shadow-color`,U(n,`var(--tw-drop-shadow-alpha)`)),L(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]}}),n(`drop-shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--drop-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{valueThemeKeys:[`--drop-shadow`]}]),i(`backdrop-opacity`,{themeKeys:[`--backdrop-opacity`,`--opacity`],handleBareValue:({value:e})=>qt(e)?`${e}%`:null,handle:e=>[c(),L(`--tw-backdrop-opacity`,`opacity(${e})`),L(`-webkit-backdrop-filter`,o),L(`backdrop-filter`,o)]}),n(`backdrop-opacity`,()=>[{values:Array.from({length:21},(e,t)=>`${t*5}`),valueThemeKeys:[`--backdrop-opacity`,`--opacity`]}])}{let a=`var(--tw-ease, ${e.resolve(null,[`--default-transition-timing-function`])??`ease`})`,o=`var(--tw-duration, ${e.resolve(null,[`--default-transition-duration`])??`0s`})`;i(`transition`,{defaultValue:`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events`,themeKeys:[`--transition-property`],handle:e=>[L(`transition-property`,e),L(`transition-timing-function`,a),L(`transition-duration`,o)],staticValues:{none:[L(`transition-property`,`none`)],all:[L(`transition-property`,`all`),L(`transition-timing-function`,a),L(`transition-duration`,o)],colors:[L(`transition-property`,`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to`),L(`transition-timing-function`,a),L(`transition-duration`,o)],opacity:[L(`transition-property`,`opacity`),L(`transition-timing-function`,a),L(`transition-duration`,o)],shadow:[L(`transition-property`,`box-shadow`),L(`transition-timing-function`,a),L(`transition-duration`,o)],transform:[L(`transition-property`,`transform, translate, scale, rotate`),L(`transition-timing-function`,a),L(`transition-duration`,o)]}}),r(`transition-discrete`,[[`transition-behavior`,`allow-discrete`]]),r(`transition-normal`,[[`transition-behavior`,`normal`]]),i(`delay`,{handleBareValue:({value:e})=>V(e)?`${e}ms`:null,themeKeys:[`--transition-delay`],handle:e=>[L(`transition-delay`,e)]});{let n=()=>R([H(`--tw-duration`)]);r(`duration-initial`,[n,[`--tw-duration`,`initial`]]),t.functional(`duration`,t=>{if(t.modifier||!t.value)return;let r=null;if(t.value.kind===`arbitrary`?r=t.value.value:(r=e.resolve(t.value.fraction??t.value.value,[`--transition-duration`]),r===null&&V(t.value.value)&&(r=`${t.value.value}ms`)),r!==null)return[n(),L(`--tw-duration`,r),L(`transition-duration`,r)]})}n(`delay`,()=>[{values:[`75`,`100`,`150`,`200`,`300`,`500`,`700`,`1000`],valueThemeKeys:[`--transition-delay`]}]),n(`duration`,()=>[{values:[`75`,`100`,`150`,`200`,`300`,`500`,`700`,`1000`],valueThemeKeys:[`--transition-duration`]}])}{let e=()=>R([H(`--tw-ease`)]);i(`ease`,{themeKeys:[`--ease`],handle:t=>[e(),L(`--tw-ease`,t),L(`transition-timing-function`,t)],staticValues:{initial:[e(),L(`--tw-ease`,`initial`)],linear:[e(),L(`--tw-ease`,`linear`),L(`transition-timing-function`,`linear`)]}})}r(`will-change-auto`,[[`will-change`,`auto`]]),r(`will-change-scroll`,[[`will-change`,`scroll-position`]]),r(`will-change-contents`,[[`will-change`,`contents`]]),r(`will-change-transform`,[[`will-change`,`transform`]]),i(`will-change`,{themeKeys:[],handle:e=>[L(`will-change`,e)]}),r(`content-none`,[[`--tw-content`,`none`],[`content`,`none`]]),i(`content`,{themeKeys:[`--content`],handle:e=>[R([H(`--tw-content`,`""`)]),L(`--tw-content`,e),L(`content`,`var(--tw-content)`)]});{let e=`var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)`,t=()=>R([H(`--tw-contain-size`),H(`--tw-contain-layout`),H(`--tw-contain-paint`),H(`--tw-contain-style`)]);r(`contain-none`,[[`contain`,`none`]]),r(`contain-content`,[[`contain`,`content`]]),r(`contain-strict`,[[`contain`,`strict`]]),r(`contain-size`,[t,[`--tw-contain-size`,`size`],[`contain`,e]]),r(`contain-inline-size`,[t,[`--tw-contain-size`,`inline-size`],[`contain`,e]]),r(`contain-layout`,[t,[`--tw-contain-layout`,`layout`],[`contain`,e]]),r(`contain-paint`,[t,[`--tw-contain-paint`,`paint`],[`contain`,e]]),r(`contain-style`,[t,[`--tw-contain-style`,`style`],[`contain`,e]]),i(`contain`,{themeKeys:[],handle:e=>[L(`contain`,e)]})}r(`forced-color-adjust-none`,[[`forced-color-adjust`,`none`]]),r(`forced-color-adjust-auto`,[[`forced-color-adjust`,`auto`]]),o(`leading`,[`--leading`,`--spacing`],e=>[R([H(`--tw-leading`)]),L(`--tw-leading`,e),L(`line-height`,e)],{staticValues:{none:[R([H(`--tw-leading`)]),L(`--tw-leading`,`1`),L(`line-height`,`1`)]}}),i(`tracking`,{supportsNegative:!0,themeKeys:[`--tracking`],handle:e=>[R([H(`--tw-tracking`)]),L(`--tw-tracking`,e),L(`letter-spacing`,e)]}),r(`antialiased`,[[`-webkit-font-smoothing`,`antialiased`],[`-moz-osx-font-smoothing`,`grayscale`]]),r(`subpixel-antialiased`,[[`-webkit-font-smoothing`,`auto`],[`-moz-osx-font-smoothing`,`auto`]]);{let e=`var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)`,t=()=>R([H(`--tw-ordinal`),H(`--tw-slashed-zero`),H(`--tw-numeric-figure`),H(`--tw-numeric-spacing`),H(`--tw-numeric-fraction`)]);r(`normal-nums`,[[`font-variant-numeric`,`normal`]]),r(`ordinal`,[t,[`--tw-ordinal`,`ordinal`],[`font-variant-numeric`,e]]),r(`slashed-zero`,[t,[`--tw-slashed-zero`,`slashed-zero`],[`font-variant-numeric`,e]]),r(`lining-nums`,[t,[`--tw-numeric-figure`,`lining-nums`],[`font-variant-numeric`,e]]),r(`oldstyle-nums`,[t,[`--tw-numeric-figure`,`oldstyle-nums`],[`font-variant-numeric`,e]]),r(`proportional-nums`,[t,[`--tw-numeric-spacing`,`proportional-nums`],[`font-variant-numeric`,e]]),r(`tabular-nums`,[t,[`--tw-numeric-spacing`,`tabular-nums`],[`font-variant-numeric`,e]]),r(`diagonal-fractions`,[t,[`--tw-numeric-fraction`,`diagonal-fractions`],[`font-variant-numeric`,e]]),r(`stacked-fractions`,[t,[`--tw-numeric-fraction`,`stacked-fractions`],[`font-variant-numeric`,e]])}{let a=()=>R([H(`--tw-outline-style`,`solid`)]);t.static(`outline-hidden`,()=>[L(`--tw-outline-style`,`none`),L(`outline-style`,`none`),F(`@media`,`(forced-colors: active)`,[L(`outline`,`2px solid transparent`),L(`outline-offset`,`2px`)])]),r(`outline-none`,[[`--tw-outline-style`,`none`],[`outline-style`,`none`]]),r(`outline-solid`,[[`--tw-outline-style`,`solid`],[`outline-style`,`solid`]]),r(`outline-dashed`,[[`--tw-outline-style`,`dashed`],[`outline-style`,`dashed`]]),r(`outline-dotted`,[[`--tw-outline-style`,`dotted`],[`outline-style`,`dotted`]]),r(`outline-double`,[[`--tw-outline-style`,`double`],[`outline-style`,`double`]]),t.functional(`outline`,t=>{if(t.value===null){if(t.modifier)return;let n=e.get([`--default-outline-width`])??`1px`;return[a(),L(`outline-style`,`var(--tw-outline-style)`),L(`outline-width`,n)]}if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??B(n,[`color`,`length`,`number`,`percentage`])){case`length`:case`number`:case`percentage`:return t.modifier?void 0:[a(),L(`outline-style`,`var(--tw-outline-style)`),L(`outline-width`,n)];default:return n=W(n,t.modifier,e),n===null?void 0:[L(`outline-color`,n)]}}{let n=G(t,e,[`--outline-color`,`--color`]);if(n)return[L(`outline-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--outline-width`]);if(n)return[a(),L(`outline-style`,`var(--tw-outline-style)`),L(`outline-width`,n)];if(V(t.value.value))return[a(),L(`outline-style`,`var(--tw-outline-style)`),L(`outline-width`,`${t.value.value}px`)]}}),n(`outline`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--outline-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:!0},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--outline-width`]}]),i(`outline-offset`,{supportsNegative:!0,themeKeys:[`--outline-offset`],handleBareValue:({value:e})=>V(e)?`${e}px`:null,handle:e=>[L(`outline-offset`,e)]}),n(`outline-offset`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--outline-offset`]}])}i(`opacity`,{themeKeys:[`--opacity`],handleBareValue:({value:e})=>qt(e)?`${e}%`:null,handle:e=>[L(`opacity`,e)]}),n(`opacity`,()=>[{values:Array.from({length:21},(e,t)=>`${t*5}`),valueThemeKeys:[`--opacity`]}]),i(`underline-offset`,{supportsNegative:!0,themeKeys:[`--text-underline-offset`],handleBareValue:({value:e})=>V(e)?`${e}px`:null,handle:e=>[L(`text-underline-offset`,e)],staticValues:{auto:[L(`text-underline-offset`,`auto`)]}}),n(`underline-offset`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--text-underline-offset`]}]),t.functional(`text`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??B(n,[`color`,`length`,`percentage`,`absolute-size`,`relative-size`])){case`size`:case`length`:case`percentage`:case`absolute-size`:case`relative-size`:if(t.modifier){let r=t.modifier.kind===`arbitrary`?t.modifier.value:e.resolve(t.modifier.value,[`--leading`]);if(!r&&Kt(t.modifier.value)){if(!e.resolve(null,[`--spacing`]))return null;r=`--spacing(${t.modifier.value})`}return!r&&t.modifier.value===`none`&&(r=`1`),r?[L(`font-size`,n),L(`line-height`,r)]:null}return[L(`font-size`,n)];default:return n=W(n,t.modifier,e),n===null?void 0:[L(`color`,n)]}}{let n=G(t,e,[`--text-color`,`--color`]);if(n)return[L(`color`,n)]}{let n=e.resolveWith(t.value.value,[`--text`],[`--line-height`,`--letter-spacing`,`--font-weight`]);if(n){let[r,i={}]=Array.isArray(n)?n:[n];if(t.modifier){let n=t.modifier.kind===`arbitrary`?t.modifier.value:e.resolve(t.modifier.value,[`--leading`]);if(!n&&Kt(t.modifier.value)){if(!e.resolve(null,[`--spacing`]))return null;n=`--spacing(${t.modifier.value})`}if(!n&&t.modifier.value===`none`&&(n=`1`),!n)return null;let i=[L(`font-size`,r)];return n&&i.push(L(`line-height`,n)),i}return typeof i==`string`?[L(`font-size`,r),L(`line-height`,i)]:[L(`font-size`,r),L(`line-height`,i[`--line-height`]?`var(--tw-leading, ${i[`--line-height`]})`:void 0),L(`letter-spacing`,i[`--letter-spacing`]?`var(--tw-tracking, ${i[`--letter-spacing`]})`:void 0),L(`font-weight`,i[`--font-weight`]?`var(--tw-font-weight, ${i[`--font-weight`]})`:void 0)]}}}}),n(`text`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--text-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[],valueThemeKeys:[`--text`],modifiers:[],modifierThemeKeys:[`--leading`]}]);let C=()=>R([H(`--tw-text-shadow-color`),H(`--tw-text-shadow-alpha`,`100%`,`<percentage>`)]);r(`text-shadow-initial`,[C,[`--tw-text-shadow-color`,`initial`]]),t.functional(`text-shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:qt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--text-shadow`]);return t===null?void 0:[C(),L(`--tw-text-shadow-alpha`,n),...ln(`text-shadow`,t,n,e=>`var(--tw-text-shadow-color, ${e})`)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??B(r,[`color`]))===`color`?(r=W(r,t.modifier,e),r===null?void 0:[C(),L(`--tw-text-shadow-color`,U(r,`var(--tw-text-shadow-alpha)`))]):[C(),L(`--tw-text-shadow-alpha`,n),...ln(`text-shadow`,r,n,e=>`var(--tw-text-shadow-color, ${e})`)]}switch(t.value.value){case`none`:return t.modifier?void 0:[C(),L(`text-shadow`,`none`)];case`inherit`:return t.modifier?void 0:[C(),L(`--tw-text-shadow-color`,`inherit`)]}{let r=e.get([`--text-shadow-${t.value.value}`]);if(r)return[C(),L(`--tw-text-shadow-alpha`,n),...ln(`text-shadow`,r,n,e=>`var(--tw-text-shadow-color, ${e})`)]}{let n=G(t,e,[`--text-shadow-color`,`--color`]);if(n)return[C(),L(`--tw-text-shadow-color`,U(n,`var(--tw-text-shadow-alpha)`))]}}),n(`text-shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--text-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`none`]},{valueThemeKeys:[`--text-shadow`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:e.get([`--text-shadow`])!==null}]);{let i=function(e){return`var(--tw-ring-inset,) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color, ${l})`},a=function(e){return`inset 0 0 0 ${e} var(--tw-inset-ring-color, currentcolor)`},o=[`var(--tw-inset-shadow)`,`var(--tw-inset-ring-shadow)`,`var(--tw-ring-offset-shadow)`,`var(--tw-ring-shadow)`,`var(--tw-shadow)`].join(`, `),s=`0 0 #0000`,c=()=>R([H(`--tw-shadow`,s),H(`--tw-shadow-color`),H(`--tw-shadow-alpha`,`100%`,`<percentage>`),H(`--tw-inset-shadow`,s),H(`--tw-inset-shadow-color`),H(`--tw-inset-shadow-alpha`,`100%`,`<percentage>`),H(`--tw-ring-color`),H(`--tw-ring-shadow`,s),H(`--tw-inset-ring-color`),H(`--tw-inset-ring-shadow`,s),H(`--tw-ring-inset`),H(`--tw-ring-offset-width`,`0px`,`<length>`),H(`--tw-ring-offset-color`,`#fff`),H(`--tw-ring-offset-shadow`,s)]);r(`shadow-initial`,[c,[`--tw-shadow-color`,`initial`]]),t.functional(`shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:qt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--shadow`]);return t===null?void 0:[c(),L(`--tw-shadow-alpha`,n),...ln(`--tw-shadow`,t,n,e=>`var(--tw-shadow-color, ${e})`),L(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??B(r,[`color`]))===`color`?(r=W(r,t.modifier,e),r===null?void 0:[c(),L(`--tw-shadow-color`,U(r,`var(--tw-shadow-alpha)`))]):[c(),L(`--tw-shadow-alpha`,n),...ln(`--tw-shadow`,r,n,e=>`var(--tw-shadow-color, ${e})`),L(`box-shadow`,o)]}switch(t.value.value){case`none`:return t.modifier?void 0:[c(),L(`--tw-shadow`,s),L(`box-shadow`,o)];case`inherit`:return t.modifier?void 0:[c(),L(`--tw-shadow-color`,`inherit`)]}{let r=e.get([`--shadow-${t.value.value}`]);if(r)return[c(),L(`--tw-shadow-alpha`,n),...ln(`--tw-shadow`,r,n,e=>`var(--tw-shadow-color, ${e})`),L(`box-shadow`,o)]}{let n=G(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),L(`--tw-shadow-color`,U(n,`var(--tw-shadow-alpha)`))]}}),n(`shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--box-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`none`]},{valueThemeKeys:[`--shadow`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:e.get([`--shadow`])!==null}]),r(`inset-shadow-initial`,[c,[`--tw-inset-shadow-color`,`initial`]]),t.functional(`inset-shadow`,t=>{let n;if(t.modifier&&(t.modifier.kind===`arbitrary`?n=t.modifier.value:qt(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--inset-shadow`]);return t===null?void 0:[c(),L(`--tw-inset-shadow-alpha`,n),...ln(`--tw-inset-shadow`,t,n,e=>`var(--tw-inset-shadow-color, ${e})`),L(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??B(r,[`color`]))===`color`?(r=W(r,t.modifier,e),r===null?void 0:[c(),L(`--tw-inset-shadow-color`,U(r,`var(--tw-inset-shadow-alpha)`))]):[c(),L(`--tw-inset-shadow-alpha`,n),...ln(`--tw-inset-shadow`,r,n,e=>`var(--tw-inset-shadow-color, ${e})`,`inset`),L(`box-shadow`,o)]}switch(t.value.value){case`none`:return t.modifier?void 0:[c(),L(`--tw-inset-shadow`,`inset ${s}`),L(`box-shadow`,o)];case`inherit`:return t.modifier?void 0:[c(),L(`--tw-inset-shadow-color`,`inherit`)]}{let r=e.get([`--inset-shadow-${t.value.value}`]);if(r)return[c(),L(`--tw-inset-shadow-alpha`,n),...ln(`--tw-inset-shadow`,r,n,e=>`var(--tw-inset-shadow-color, ${e})`),L(`box-shadow`,o)]}{let n=G(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),L(`--tw-inset-shadow-color`,U(n,`var(--tw-inset-shadow-alpha)`))]}}),n(`inset-shadow`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--box-shadow-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`none`]},{valueThemeKeys:[`--inset-shadow`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`),hasDefaultValue:e.get([`--inset-shadow`])!==null}]),r(`ring-inset`,[c,[`--tw-ring-inset`,`inset`]]);let l=e.get([`--default-ring-color`])??`currentcolor`;t.functional(`ring`,t=>{if(!t.value){if(t.modifier)return;let n=e.get([`--default-ring-width`])??`1px`;return[c(),L(`--tw-ring-shadow`,i(n)),L(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??B(n,[`color`,`length`]))===`length`?t.modifier?void 0:[c(),L(`--tw-ring-shadow`,i(n)),L(`box-shadow`,o)]:(n=W(n,t.modifier,e),n===null?void 0:[L(`--tw-ring-color`,n)])}{let n=G(t,e,[`--ring-color`,`--color`]);if(n)return[L(`--tw-ring-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--ring-width`]);if(n===null&&V(t.value.value)&&(n=`${t.value.value}px`),n)return[c(),L(`--tw-ring-shadow`,i(n)),L(`box-shadow`,o)]}}),n(`ring`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--ring-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--ring-width`],hasDefaultValue:!0}]),t.functional(`inset-ring`,t=>{if(!t.value)return t.modifier?void 0:[c(),L(`--tw-inset-ring-shadow`,a(`1px`)),L(`box-shadow`,o)];if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??B(n,[`color`,`length`]))===`length`?t.modifier?void 0:[c(),L(`--tw-inset-ring-shadow`,a(n)),L(`box-shadow`,o)]:(n=W(n,t.modifier,e),n===null?void 0:[L(`--tw-inset-ring-color`,n)])}{let n=G(t,e,[`--ring-color`,`--color`]);if(n)return[L(`--tw-inset-ring-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--ring-width`]);if(n===null&&V(t.value.value)&&(n=`${t.value.value}px`),n)return[c(),L(`--tw-inset-ring-shadow`,a(n)),L(`box-shadow`,o)]}}),n(`inset-ring`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--ring-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--ring-width`],hasDefaultValue:!0}]);let u=`var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`;t.functional(`ring-offset`,t=>{if(t.value){if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??B(n,[`color`,`length`]))===`length`?t.modifier?void 0:[L(`--tw-ring-offset-width`,n),L(`--tw-ring-offset-shadow`,u)]:(n=W(n,t.modifier,e),n===null?void 0:[L(`--tw-ring-offset-color`,n)])}{let n=e.resolve(t.value.value,[`--ring-offset-width`]);if(n)return t.modifier?void 0:[L(`--tw-ring-offset-width`,n),L(`--tw-ring-offset-shadow`,u)];if(V(t.value.value))return t.modifier?void 0:[L(`--tw-ring-offset-width`,`${t.value.value}px`),L(`--tw-ring-offset-shadow`,u)]}{let n=G(t,e,[`--ring-offset-color`,`--color`]);if(n)return[L(`--tw-ring-offset-color`,n)]}}})}return n(`ring-offset`,()=>[{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--ring-offset-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)},{values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--ring-offset-width`]}]),t.functional(`@container`,e=>{let t=null;if(e.value===null?t=`inline-size`:e.value.kind===`arbitrary`?t=e.value.value:e.value.kind===`named`&&e.value.value===`normal`?t=`normal`:e.value.kind===`named`&&e.value.value===`size`&&(t=`size`),t!==null)return e.modifier?[L(`container-type`,t),L(`container-name`,e.modifier.value)]:[L(`container-type`,t)]}),n(`@container`,()=>[{values:[`normal`],valueThemeKeys:[],hasDefaultValue:!0}]),t}var on=[`number`,`integer`,`ratio`,`percentage`];function sn(e){let t=w(e.params);return wn(t)?n=>{let r={"--value":{usedSpacingInteger:!1,usedSpacingNumber:!1,themeKeys:new Set,literals:new Set},"--modifier":{usedSpacingInteger:!1,usedSpacingNumber:!1,themeKeys:new Set,literals:new Set}};N(e.nodes,e=>{if(e.kind!==`declaration`||!e.value||!e.value.includes(`--value(`)&&!e.value.includes(`--modifier(`))return;let t=j(e.value);N(t,e=>{if(e.kind!==`function`)return;if(e.value===`--spacing`&&!(r[`--modifier`].usedSpacingNumber&&r[`--value`].usedSpacingNumber))return N(e.nodes,e=>{if(e.kind!==`function`||e.value!==`--value`&&e.value!==`--modifier`)return;let t=e.value;for(let n of e.nodes)if(n.kind===`word`){if(n.value===`integer`)r[t].usedSpacingInteger||=!0;else if(n.value===`number`&&(r[t].usedSpacingNumber||=!0,r[`--modifier`].usedSpacingNumber&&r[`--value`].usedSpacingNumber))return M.Stop}}),M.Continue;if(e.value!==`--value`&&e.value!==`--modifier`)return;let t=k(A(e.nodes),`,`);for(let[e,n]of t.entries())n=n.replace(/\\\*/g,`*`),n=n.replace(/--(.*?)\s--(.*?)/g,`--$1-*--$2`),n=n.replace(/\s+/g,``),n=n.replace(/(-\*){2,}/g,`-*`),n[0]===`-`&&n[1]===`-`&&!n.includes(`(`)&&!n.includes(`-*`)&&(n+=`-*`),t[e]=n;e.nodes=j(t.join(`,`));for(let t of e.nodes)if(t.kind===`word`&&(t.value[0]===`"`||t.value[0]===`'`)&&t.value[0]===t.value[t.value.length-1]){let n=t.value.slice(1,-1);r[e.value].literals.add(n)}else if(t.kind===`word`&&t.value[0]===`-`&&t.value[1]===`-`){let n=t.value.replace(/-\*.*$/g,``);r[e.value].themeKeys.add(n)}else if(t.kind===`word`&&(t.value[0]!==`[`||t.value[t.value.length-1]!==`]`)&&!on.includes(t.value)){console.warn(`Unsupported bare value data type: "${t.value}".
13
+ Only valid data types are: ${on.map(e=>`"${e}"`).join(`, `)}.
14
+ `);let n=t.value,r=structuredClone(e);N(r.nodes,e=>{if(e.kind===`word`&&e.value===n)return M.ReplaceSkip({kind:`word`,value:`¶`})});let i=`^`.repeat(A([t]).length),a=A([r]).indexOf(`¶`),o=["```css",A([e]),` `.repeat(a)+i,"```"].join(`
15
+ `);console.warn(o)}}),e.value=A(t)}),n.utilities.functional(t.slice(0,-2),t=>{let r=Ee(e),i=t.value,a=t.modifier,o=!1,s=!1,c=!1,l=!1,u=new Map,d=!1;if(N([r],(e,t)=>{let r=t.parent;if(r?.kind!==`rule`&&r?.kind!==`at-rule`||e.kind!==`declaration`||!e.value)return;let f=!1,p=j(e.value);if(N(p,t=>{if(t.kind===`function`){if(t.value===`--value`){o=!0;let a=cn(i,t,n);return a?(s=!0,a.ratio?d=!0:u.set(e,r),M.ReplaceSkip(a.nodes)):(f=!0,M.Stop)}if(t.value===`--modifier`){c=!0;let e=cn(a,t,n);return e?(l=!0,M.ReplaceSkip(e.nodes)):(f=!0,M.Stop)}}}),f)return M.ReplaceSkip([]);e.value=A(p)}),!o||!s||c&&!l&&a!==null||d&&l||a&&!d&&!l)return null;if(d)for(let[e,t]of u){let n=t.nodes.indexOf(e);n!==-1&&t.nodes.splice(n,1)}return r.nodes}),n.utilities.suggest(t.slice(0,-2),()=>{let e=[],t=[];for(let[i,{literals:a,usedSpacingNumber:o,usedSpacingInteger:s,themeKeys:c}]of[[e,r[`--value`]],[t,r[`--modifier`]]]){for(let e of a)i.push(e);if(o)i.push(...en);else if(s)for(let e of en)V(e)&&i.push(e);for(let e of n.theme.keysInNamespaces(c))i.push(e.replace(rn,(e,t,n)=>`${t}.${n}`))}return[{values:e,modifiers:t}]})}:Cn(t)?n=>{n.utilities.static(t,()=>e.nodes.map(Ee))}:null}function cn(e,t,n){if(e===null){for(let e of t.nodes)if(e.kind===`function`&&e.value===`--default`)return{nodes:e.nodes};return}for(let r of t.nodes){if(e.kind===`named`&&r.kind===`word`&&(r.value[0]===`'`||r.value[0]===`"`)&&r.value[r.value.length-1]===r.value[0]&&r.value.slice(1,-1)===e.value)return{nodes:j(e.value)};if(e.kind===`named`&&r.kind===`word`&&r.value[0]===`-`&&r.value[1]===`-`){let t=r.value;if(t.endsWith(`-*`)){t=t.slice(0,-2);let r=n.theme.resolve(e.value,[t]);if(r)return{nodes:j(r)}}else{let r=t.split(`-*`);if(r.length<=1)continue;let i=[r.shift()],a=n.theme.resolveWith(e.value,i,r);if(a){let[,e={}]=a;{let t=e[r.pop()];if(t)return{nodes:j(t)}}}}}else if(e.kind===`named`&&r.kind===`word`){if(!on.includes(r.value))continue;let t=r.value===`ratio`&&`fraction`in e?e.fraction:e.value;if(!t)continue;let n=B(t,[r.value]);if(n===null)continue;if(n===`ratio`){let[e,n]=k(t,`/`).map(Number);if(!V(e)||!V(n))continue}else if(n===`number`&&!Kt(t)||n===`percentage`&&!V(t.slice(0,-1)))continue;if(n===`ratio`){let[e,n]=k(t,`/`);return{nodes:j(`${e.trim()} / ${n.trim()}`),ratio:!0}}return{nodes:j(t),ratio:!1}}else if(e.kind===`arbitrary`&&r.kind===`word`&&r.value[0]===`[`&&r.value[r.value.length-1]===`]`){let t=r.value.slice(1,-1);if(t===`*`)return{nodes:j(e.value)};if(`dataType`in e&&e.dataType&&e.dataType!==t)continue;if(`dataType`in e&&e.dataType||B(e.value,[t])!==null)return{nodes:j(e.value)}}}}function ln(e,t,n,r,i=``){let a=!1,o=$t(t,e=>n==null?r(e):e.startsWith(`current`)?r(U(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(nn(e,n))));function s(e){return i?k(e,`,`).map(e=>i.trim()+` `+e.trim()).join(`, `):e}return a?[L(e,s($t(t,r))),I(`@supports (color: lab(from red l a b))`,[L(e,s(o))])]:[L(e,s(o))]}function un(e,t,n,r,i=``){let a=!1,o=k(t,`,`).map(e=>$t(e,e=>n==null?r(e):e.startsWith(`current`)?r(U(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(nn(e,n))))).map(e=>`drop-shadow(${e})`).join(` `);return a?[L(e,i+k(t,`,`).map(e=>`drop-shadow(${$t(e,r)})`).join(` `)),I(`@supports (color: lab(from red l a b))`,[L(e,i+o)])]:[L(e,i+o)]}var dn=/^-?[a-z][a-zA-Z0-9_-]*/,fn=37,pn=47,mn=46,hn=97,gn=122,_n=65,vn=90,yn=48,bn=57,xn=95,Sn=45;function Cn(e){let t=dn.exec(e);if(t===null)return!1;let n=t[0],r=e.slice(n.length);if(r.length===0&&n.endsWith(`-`))return!1;if(r.length===0)return!0;let i=!1;for(let e=0;e<r.length;e++){let t=r.charCodeAt(e);switch(t){case fn:{if(e!==r.length-1)return!1;let t=(r[e-1]||n[n.length-1]||``).charCodeAt(0);if(t<yn||t>bn)return!1;break}case pn:if(e===r.length-1||i)return!1;i=!0;break;case mn:{let t=(r[e-1]||n[n.length-1]||``).charCodeAt(0);if(t<yn||t>bn)return!1;let i=(r[e+1]||``).charCodeAt(0);if(i<yn||i>bn)return!1;break}case xn:case Sn:continue;default:if(t>=hn&&t<=gn||t>=_n&&t<=vn||t>=yn&&t<=bn)continue;return!1}}return!0}function wn(e){if(!e.endsWith(`-*`))return!1;e=e.slice(0,-2);let t=dn.exec(e);if(t===null)return!1;let n=t[0];return e.slice(n.length).length===0}var Tn={"--alpha":En,"--spacing":Dn,"--theme":On,theme:kn};function En(e,t,n,...r){let[i,a]=k(n,`/`).map(e=>e.trim());if(!i||!a)throw Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||`var(--my-color)`} / ${a||`50%`})\``);if(r.length>0)throw Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||`var(--my-color)`} / ${a||`50%`})\``);return U(i,a)}function Dn(e,t,n,...r){if(!n)throw Error(`The --spacing(…) function requires an argument, but received none.`);if(r.length>0)throw Error(`The --spacing(\u2026) function only accepts a single argument, but received ${r.length+1}.`);let i=e.theme.resolve(null,[`--spacing`]);if(!i)throw Error("The --spacing(…) function requires that the `--spacing` theme variable exists, but it was not found.");let a=pt.get(n);if(a){if(a[0]===0)return`0px`;if(a[0]===1)return i}return`calc(${i} * ${n})`}function On(e,t,n,...r){if(!n.startsWith(`--`))throw Error(`The --theme(…) function can only be used with CSS variables from your theme.`);let i=!1;n.endsWith(` inline`)&&(i=!0,n=n.slice(0,-7)),t.kind===`at-rule`&&(i=!0);let a=e.resolveThemeValue(n,i);if(!a){if(r.length>0)return r.join(`, `);throw Error(`Could not resolve value for theme function: \`theme(${n})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(r.length===0)return a;let o=r.join(`, `);if(o===`initial`)return a;if(a===`initial`)return o;if(a.startsWith(`var(`)||a.startsWith(`theme(`)||a.startsWith(`--theme(`)){let e=j(a);return Pn(e,o),A(e)}return a}function kn(e,t,n,...r){n=Nn(n);let i=e.resolveThemeValue(n);if(!i&&r.length>0)return r.join(`, `);if(!i)throw Error(`Could not resolve value for theme function: \`theme(${n})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return i}var An=new RegExp(Object.keys(Tn).map(e=>`${e}\\(`).join(`|`));function jn(e,t){let n=0;return N(e,e=>{if(e.kind===`declaration`&&e.value&&An.test(e.value)){n|=8,e.value=Mn(e.value,e,t);return}e.kind===`at-rule`&&(e.name===`@media`||e.name===`@custom-media`||e.name===`@container`||e.name===`@supports`)&&An.test(e.params)&&(n|=8,e.params=Mn(e.params,e,t))}),n}function Mn(e,t,n){let r=j(e);return N(r,e=>{if(e.kind===`function`&&e.value in Tn){let r=k(A(e.nodes).trim(),`,`).map(e=>e.trim()),i=Tn[e.value](n,t,...r);return M.Replace(j(i))}}),A(r)}function Nn(e){if(e[0]!==`'`&&e[0]!==`"`)return e;let t=``,n=e[0];for(let r=1;r<e.length-1;r++){let i=e[r],a=e[r+1];i===`\\`&&(a===n||a===`\\`)?(t+=a,r++):t+=i}return t}function Pn(e,t){N(e,e=>{if(e.kind===`function`&&(e.value===`var`||e.value===`theme`||e.value===`--theme`)){if(e.nodes.length===1)e.nodes.push({kind:`word`,value:`, ${t}`});else{let n=e.nodes[e.nodes.length-1];n.kind===`word`&&n.value===`initial`&&(n.value=t)}}})}function Fn(){return[]}function In(){return[]}function Ln(){return[]}function Rn(e,t){let{astNodes:n,nodeSorting:r}=J(Array.from(t),e),i=new Map(t.map(e=>[e,null])),a=0n;for(let e of n){let t=r.get(e)?.candidate;t&&i.set(t,i.get(t)??a++)}return t.map(e=>[e,i.get(e)??null])}function zn(e){if(e[0]!==`[`||e[e.length-1]!==`]`)return null;let t=1,n=t,r=e.length-1;for(;Bn(e.charCodeAt(t));)t++;for(n=t;t<r;t++){let n=e.charCodeAt(t);if(n===92){t++;continue}if(!(n>=65&&n<=90)&&!(n>=97&&n<=122)&&!(n>=48&&n<=57)&&n!==45&&n!==95&&!(n>=128))break}if(n===t)return null;let i=e.slice(n,t);for(;Bn(e.charCodeAt(t));)t++;if(t===r)return{attribute:i,operator:null,quote:null,value:null,sensitivity:null};let a=null,o=e.charCodeAt(t);if(o===61)a=`=`,t++;else if((o===126||o===124||o===94||o===36||o===42)&&e.charCodeAt(t+1)===61)a=e[t]+`=`,t+=2;else return null;for(;Bn(e.charCodeAt(t));)t++;if(t===r)return null;let s=``,c=null;if(o=e.charCodeAt(t),o===39||o===34){c=e[t],t++,n=t;for(let n=t;n<r;n++){let r=e.charCodeAt(n);r===o?t=n+1:r===92&&n++}s=e.slice(n,t-1)}else{for(n=t;t<r&&!Bn(e.charCodeAt(t));)t++;s=e.slice(n,t)}for(;Bn(e.charCodeAt(t));)t++;if(t===r)return{attribute:i,operator:a,quote:c,value:s,sensitivity:null};let l=null;switch(e.charCodeAt(t)){case 105:case 73:l=`i`,t++;break;case 115:case 83:l=`s`,t++;break;default:return null}for(;Bn(e.charCodeAt(t));)t++;return t===r?{attribute:i,operator:a,quote:c,value:s,sensitivity:l}:null}function Bn(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}var Vn=/^@?[a-z0-9][a-zA-Z0-9_-]*(?<![_-])$/,Hn=class{compareFns=new Map;variants=new Map;completions=new Map;groupOrder=null;lastOrder=0;static(e,t,{compounds:n,order:r}={}){this.set(e,{kind:`static`,applyFn:t,compoundsWith:0,compounds:n??2,order:r})}fromAst(e,t,n){let r=[],i=!1;N(t,e=>{e.kind===`rule`?r.push(e.selector):e.kind===`at-rule`&&e.name===`@variant`?i=!0:e.kind===`at-rule`&&e.name!==`@slot`&&r.push(`${e.name} ${e.params}`)}),this.static(e,e=>{let r=t.map(Ee);i&&Kn(r,n),Gn(r,e.nodes),e.nodes=r},{compounds:Un(r)})}functional(e,t,{compounds:n,order:r}={}){this.set(e,{kind:`functional`,applyFn:t,compoundsWith:0,compounds:n??2,order:r})}compound(e,t,n,{compounds:r,order:i}={}){this.set(e,{kind:`compound`,applyFn:n,compoundsWith:t,compounds:r??2,order:i})}group(e,t){this.groupOrder=this.nextOrder(),t&&this.compareFns.set(this.groupOrder,t),e(),this.groupOrder=null}has(e){return this.variants.has(e)}get(e){return this.variants.get(e)}kind(e){return this.variants.get(e)?.kind}compoundsWith(e,t){let n=this.variants.get(e),r=typeof t==`string`?this.variants.get(t):t.kind===`arbitrary`?{compounds:Un([t.selector])}:this.variants.get(t.root);return!(!n||!r||n.kind!==`compound`||r.compounds===0||n.compoundsWith===0||(n.compoundsWith&r.compounds)===0)}suggest(e,t){this.completions.set(e,t)}getCompletions(e){return this.completions.get(e)?.()??[]}compare(e,t){if(e===t)return 0;if(e===null)return-1;if(t===null)return 1;if(e.kind===`arbitrary`&&t.kind===`arbitrary`)return e.selector<t.selector?-1:1;if(e.kind===`arbitrary`)return 1;if(t.kind===`arbitrary`)return-1;let n=this.variants.get(e.root).order,r=n-this.variants.get(t.root).order;if(r!==0)return r;if(e.kind===`compound`&&t.kind===`compound`){let n=this.compare(e.variant,t.variant);return n===0?e.modifier&&t.modifier?e.modifier.value<t.modifier.value?-1:1:e.modifier?1:t.modifier?-1:0:n}let i=this.compareFns.get(n);if(i!==void 0)return i(e,t);if(e.root!==t.root)return e.root<t.root?-1:1;let a=e.value,o=t.value;return a===null?-1:o===null||a.kind===`arbitrary`&&o.kind!==`arbitrary`?1:a.kind!==`arbitrary`&&o.kind===`arbitrary`||a.value<o.value?-1:1}keys(){return this.variants.keys()}entries(){return this.variants.entries()}set(e,{kind:t,applyFn:n,compounds:r,compoundsWith:i,order:a}){let o=this.variants.get(e);o?Object.assign(o,{kind:t,applyFn:n,compounds:r}):(a===void 0&&(this.lastOrder=this.nextOrder(),a=this.lastOrder),this.variants.set(e,{kind:t,applyFn:n,order:a,compoundsWith:i,compounds:r}))}nextOrder(){return this.groupOrder??this.lastOrder+1}};function Un(e){let t=0;for(let n of e){if(n[0]===`@`){if(!n.startsWith(`@media`)&&!n.startsWith(`@supports`)&&!n.startsWith(`@container`))return 0;t|=1;continue}if(n.includes(`::`))return 0;t|=2}return t}function Wn(e){let t=new Hn;function n(e,n,{compounds:r}={}){r??=Un(n),t.static(e,e=>{e.nodes=n.map(t=>I(t,e.nodes))},{compounds:r})}n(`*`,[`:is(& > *)`],{compounds:0}),n(`**`,[`:is(& *)`],{compounds:0});function r(e,t){return t.map(t=>{if(e===`@container`){let e=j(t.trim());return e.length>=1&&e[0].kind===`function`?`not ${t}`:e.length>=3&&e[0].kind===`word`&&e[0].value===`not`&&e[2].kind===`function`?(e.splice(0,2),A(e)):e.length>=5&&e[0].kind===`word`&&e[2].kind===`word`&&e[2].value===`not`&&e[4].kind===`function`?(e.splice(2,2),A(e)):e.length>=3&&e[0].kind===`word`&&e[0].value!==`not`&&e[2].kind===`function`?(e.splice(1,0,{kind:`separator`,value:` `},{kind:`word`,value:`not`}),A(e)):`not ${t}`}{t=t.trim();let e=k(t,` `);return e[0]===`not`?e.slice(1).join(` `):`not ${t}`}})}let i=[`@media`,`@supports`,`@container`];function a(e){for(let t of i){if(t!==e.name)continue;let n=k(e.params,`,`);return n.length>1?null:(n=r(e.name,n),F(e.name,n.join(`, `)))}return null}function o(e){return e.includes(`::`)?null:`&:not(${k(e,`,`).map(e=>(e=e.replaceAll(`&`,`*`),e)).join(`, `)})`}t.compound(`not`,3,(e,t)=>{if(t.variant.kind===`arbitrary`&&t.variant.relative||t.modifier)return null;let n=!1;if(N([e],(t,r)=>{if(t.kind!==`rule`&&t.kind!==`at-rule`||t.nodes.length>0)return M.Continue;let i=[],s=[],c=r.path();c.push(t);for(let e of c)e.kind===`at-rule`?i.push(e):e.kind===`rule`&&s.push(e);if(i.length>1||s.length>1)return M.Stop;let l=[];for(let e of s){let t=o(e.selector);if(!t)return n=!1,M.Stop;l.push(P(t,[]))}for(let e of i){let t=a(e);if(!t)return n=!1,M.Stop;l.push(t)}return Object.assign(e,P(`&`,l)),n=!0,M.Skip}),e.kind===`rule`&&e.selector===`&`&&e.nodes.length===1&&Object.assign(e,e.nodes[0]),!n)return null}),t.suggest(`not`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`not`,e))),t.compound(`group`,2,(t,n)=>{if(n.variant.kind===`arbitrary`&&n.variant.relative)return null;let r=n.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:``}group\\/${n.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:``}group)`,i=!1;if(N([t],(e,t)=>{if(e.kind!==`rule`)return M.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,M.Stop;let n=e.selector.replaceAll(`&`,r);k(n,`,`).length>1&&(n=`:is(${n})`),e.selector=`&:is(${n} *)`,i=!0}),!i)return null}),t.suggest(`group`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`group`,e))),t.compound(`peer`,2,(t,n)=>{if(n.variant.kind===`arbitrary`&&n.variant.relative)return null;let r=n.modifier?`:where(.${e.prefix?`${e.prefix}\\:`:``}peer\\/${n.modifier.value})`:`:where(.${e.prefix?`${e.prefix}\\:`:``}peer)`,i=!1;if(N([t],(e,t)=>{if(e.kind!==`rule`)return M.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,M.Stop;let n=e.selector.replaceAll(`&`,r);k(n,`,`).length>1&&(n=`:is(${n})`),e.selector=`&:is(${n} ~ *)`,i=!0}),!i)return null}),t.suggest(`peer`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`peer`,e))),n(`first-letter`,[`&::first-letter`]),n(`first-line`,[`&::first-line`]),n(`marker`,[`& *::marker`,`&::marker`,`& *::-webkit-details-marker`,`&::-webkit-details-marker`]),n(`selection`,[`& *::selection`,`&::selection`]),n(`file`,[`&::file-selector-button`]),n(`placeholder`,[`&::placeholder`]),n(`backdrop`,[`&::backdrop`]),n(`details-content`,[`&::details-content`]);{let e=function(){return R([F(`@property`,`--tw-content`,[L(`syntax`,`"*"`),L(`initial-value`,`""`),L(`inherits`,`false`)])])};t.static(`before`,t=>{t.nodes=[P(`&::before`,[e(),L(`content`,`var(--tw-content)`),...t.nodes])]},{compounds:0}),t.static(`after`,t=>{t.nodes=[P(`&::after`,[e(),L(`content`,`var(--tw-content)`),...t.nodes])]},{compounds:0})}n(`first`,[`&:first-child`]),n(`last`,[`&:last-child`]),n(`only`,[`&:only-child`]),n(`odd`,[`&:nth-child(odd)`]),n(`even`,[`&:nth-child(even)`]),n(`first-of-type`,[`&:first-of-type`]),n(`last-of-type`,[`&:last-of-type`]),n(`only-of-type`,[`&:only-of-type`]),n(`visited`,[`&:visited`]),n(`target`,[`&:target`]),n(`open`,[`&:is([open], :popover-open, :open)`]),n(`default`,[`&:default`]),n(`checked`,[`&:checked`]),n(`indeterminate`,[`&:indeterminate`]),n(`placeholder-shown`,[`&:placeholder-shown`]),n(`autofill`,[`&:autofill`]),n(`optional`,[`&:optional`]),n(`required`,[`&:required`]),n(`valid`,[`&:valid`]),n(`invalid`,[`&:invalid`]),n(`user-valid`,[`&:user-valid`]),n(`user-invalid`,[`&:user-invalid`]),n(`in-range`,[`&:in-range`]),n(`out-of-range`,[`&:out-of-range`]),n(`read-only`,[`&:read-only`]),n(`empty`,[`&:empty`]),n(`focus-within`,[`&:focus-within`]),t.static(`hover`,e=>{e.nodes=[P(`&:hover`,[F(`@media`,`(hover: hover)`,e.nodes)])]}),n(`focus`,[`&:focus`]),n(`focus-visible`,[`&:focus-visible`]),n(`active`,[`&:active`]),n(`enabled`,[`&:enabled`]),n(`disabled`,[`&:disabled`]),n(`inert`,[`&:is([inert], [inert] *)`]),t.compound(`in`,2,(e,t)=>{if(t.modifier)return null;let n=!1;if(N([e],(e,t)=>{if(e.kind!==`rule`)return M.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,M.Stop;e.selector=`:where(${e.selector.replaceAll(`&`,`*`)}) &`,n=!0}),!n)return null}),t.suggest(`in`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`in`,e))),t.compound(`has`,2,(e,t)=>{if(t.modifier)return null;let n=!1;if(N([e],(e,t)=>{if(e.kind!==`rule`)return M.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,M.Stop;e.selector=`&:has(${e.selector.replaceAll(`&`,`*`)})`,n=!0}),!n)return null}),t.suggest(`has`,()=>Array.from(t.keys()).filter(e=>t.compoundsWith(`has`,e))),t.functional(`aria`,(e,t)=>{if(!t.value||t.modifier)return null;if(t.value.kind===`arbitrary`){let n=`[aria-${K(t.value.value)}]`;if(zn(n)===null)return null;e.nodes=[P(`&${n}`,e.nodes)]}else{let n=`[aria-${t.value.value}="true"]`;if(zn(n)===null)return null;e.nodes=[P(`&${n}`,e.nodes)]}}),t.suggest(`aria`,()=>[`busy`,`checked`,`disabled`,`expanded`,`hidden`,`pressed`,`readonly`,`required`,`selected`]),t.functional(`data`,(e,t)=>{if(!t.value||t.modifier)return null;let n=`[data-${K(t.value.value)}]`;if(zn(n)===null)return null;e.nodes=[P(`&${n}`,e.nodes)]}),t.functional(`nth`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!V(t.value.value))return null;e.nodes=[P(`&:nth-child(${t.value.value})`,e.nodes)]}),t.functional(`nth-last`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!V(t.value.value))return null;e.nodes=[P(`&:nth-last-child(${t.value.value})`,e.nodes)]}),t.functional(`nth-of-type`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!V(t.value.value))return null;e.nodes=[P(`&:nth-of-type(${t.value.value})`,e.nodes)]}),t.functional(`nth-last-of-type`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!V(t.value.value))return null;e.nodes=[P(`&:nth-last-of-type(${t.value.value})`,e.nodes)]}),t.functional(`supports`,(e,t)=>{if(!t.value||t.modifier)return null;let n=t.value.value;if(n===null)return null;if(/^[\w-]*\s*\(/.test(n)){e.nodes=[F(`@supports`,n.replace(/\b(and|or|not)\b/g,` $1 `),e.nodes)];return}n.includes(`:`)||(n=`${n}: var(--tw)`),(n[0]!==`(`||n[n.length-1]!==`)`)&&(n=`(${n})`),e.nodes=[F(`@supports`,n,e.nodes)]},{compounds:1}),n(`motion-safe`,[`@media (prefers-reduced-motion: no-preference)`]),n(`motion-reduce`,[`@media (prefers-reduced-motion: reduce)`]),n(`contrast-more`,[`@media (prefers-contrast: more)`]),n(`contrast-less`,[`@media (prefers-contrast: less)`]);{let n=function(e,t,n,r){if(e===t)return 0;let i=r.get(e);if(i===null)return n===`asc`?-1:1;let a=r.get(t);return a===null?n===`asc`?1:-1:dt(i,a,n)};{let r=e.namespace(`--breakpoint`),i=new O(t=>{switch(t.kind){case`static`:return e.resolveValue(t.root,[`--breakpoint`])??null;case`functional`:{if(!t.value||t.modifier)return null;let n=null;return t.value.kind===`arbitrary`?n=t.value.value:t.value.kind===`named`&&(n=e.resolveValue(t.value.value,[`--breakpoint`])),!n||n.includes(`var(`)?null:n}case`arbitrary`:case`compound`:return null}});t.group(()=>{t.functional(`max`,(e,t)=>{if(t.modifier)return null;let n=i.get(t);if(n===null)return null;e.nodes=[F(`@media`,`(width < ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`desc`,i)),t.suggest(`max`,()=>Array.from(r.keys()).filter(e=>e!==null)),t.group(()=>{for(let[n,r]of e.namespace(`--breakpoint`))n!==null&&t.static(n,e=>{e.nodes=[F(`@media`,`(width >= ${r})`,e.nodes)]},{compounds:1});t.functional(`min`,(e,t)=>{if(t.modifier)return null;let n=i.get(t);if(n===null)return null;e.nodes=[F(`@media`,`(width >= ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`asc`,i)),t.suggest(`min`,()=>Array.from(r.keys()).filter(e=>e!==null))}{let r=e.namespace(`--container`),i=new O(t=>{switch(t.kind){case`functional`:{if(t.value===null)return null;let n=null;return t.value.kind===`arbitrary`?n=t.value.value:t.value.kind===`named`&&(n=e.resolveValue(t.value.value,[`--container`])),!n||n.includes(`var(`)?null:n}case`static`:case`arbitrary`:case`compound`:return null}});t.group(()=>{t.functional(`@max`,(e,t)=>{let n=i.get(t);if(n===null)return null;e.nodes=[F(`@container`,t.modifier?`${t.modifier.value} (width < ${n})`:`(width < ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`desc`,i)),t.suggest(`@max`,()=>Array.from(r.keys()).filter(e=>e!==null)),t.group(()=>{t.functional(`@`,(e,t)=>{let n=i.get(t);if(n===null)return null;e.nodes=[F(`@container`,t.modifier?`${t.modifier.value} (width >= ${n})`:`(width >= ${n})`,e.nodes)]},{compounds:1}),t.functional(`@min`,(e,t)=>{let n=i.get(t);if(n===null)return null;e.nodes=[F(`@container`,t.modifier?`${t.modifier.value} (width >= ${n})`:`(width >= ${n})`,e.nodes)]},{compounds:1})},(e,t)=>n(e,t,`asc`,i)),t.suggest(`@min`,()=>Array.from(r.keys()).filter(e=>e!==null)),t.suggest(`@`,()=>Array.from(r.keys()).filter(e=>e!==null))}}return n(`portrait`,[`@media (orientation: portrait)`]),n(`landscape`,[`@media (orientation: landscape)`]),n(`ltr`,[`&:where(:dir(ltr), [dir="ltr"], [dir="ltr"] *)`]),n(`rtl`,[`&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *)`]),n(`dark`,[`@media (prefers-color-scheme: dark)`]),n(`starting`,[`@starting-style`]),n(`print`,[`@media print`]),n(`forced-colors`,[`@media (forced-colors: active)`]),n(`inverted-colors`,[`@media (inverted-colors: inverted)`]),n(`pointer-none`,[`@media (pointer: none)`]),n(`pointer-coarse`,[`@media (pointer: coarse)`]),n(`pointer-fine`,[`@media (pointer: fine)`]),n(`any-pointer-none`,[`@media (any-pointer: none)`]),n(`any-pointer-coarse`,[`@media (any-pointer: coarse)`]),n(`any-pointer-fine`,[`@media (any-pointer: fine)`]),n(`noscript`,[`@media (scripting: none)`]),t}function K(e){if(e.includes(`=`)){let[t,...n]=k(e,`=`),r=n.join(`=`).trim();if(r[0]===`'`||r[0]===`"`)return e;if(r.length>1){let e=r[r.length-1];if(r[r.length-2]===` `&&(e===`i`||e===`I`||e===`s`||e===`S`))return`${t}="${r.slice(0,-2)}" ${e}`}return`${t}="${r}"`}return e}function Gn(e,t){N(e,e=>{if(e.kind===`at-rule`&&e.name===`@slot`)return M.ReplaceSkip(t);if(e.kind===`at-rule`&&(e.name===`@keyframes`||e.name===`@property`))return Object.assign(e,R([F(e.name,e.params,e.nodes)])),M.Skip})}function Kn(e,t){let n=0;return N(e,e=>{if(e.kind!==`at-rule`||e.name!==`@variant`)return;let r=[],i=k(e.params,`,`);for(let[n,a]of i.entries()){let o=P(`&`,n===i.length-1?e.nodes:e.nodes.map(Ee)),s=k(a,`:`);for(let e=s.length-1;e>=0;--e){let n=s[e].trim();if(!n)throw Error("Cannot use `@variant` with empty variant");let r=t.parseVariant(n);if(r===null)throw Error(`Cannot use \`@variant\` with unknown variant: ${n}`);if(Xn(o,r,t.variants)===null)throw Error(`Cannot use \`@variant\` with variant: ${n}`)}o.selector===`&`?r.push(...o.nodes):r.push(o)}return n|=32,M.Replace(r)}),n}function q(e,t){let n=an(e),r=Wn(e),i=new O(e=>Qe(e,u)),a=new O(e=>Array.from(Xe(e,u))),o=new O(e=>new O(t=>{let n=Yn(t,u,e);try{let e=n.map(e=>e.node);jn(e,u),Kn(e,u)}catch{return[]}return n})),s=new O(t=>{for(let n of xe(t))e.markUsedVariable(n)});function c(e){let n=[];for(let r of e){let e=!0,{astNodes:i}=J([r],u,{onInvalidCandidate(){e=!1}});t&&N(i,e=>(e.src??=t,M.Continue)),i=Oe(i,u,0),n.push(e?i:[])}return n}function l(e){return c(e).map(e=>e.length>0?Me(e):null)}let u={theme:e,utilities:n,variants:r,invalidCandidates:new Set,important:!1,candidatesToCss:l,candidatesToAst:c,getClassOrder(e){return Rn(this,e)},getClassList(){return Fn(this)},getVariants(){return In(this)},parseCandidate(e){return a.get(e)},parseVariant(e){return i.get(e)},compileAstNodes(e,t=1){return o.get(t).get(e)},printCandidate(e){return et(u,e)},printVariant(e){return nt(e)},getVariantOrder(){let e=Array.from(i.values());e.sort((e,t)=>this.variants.compare(e,t));let t=new Map,n,r=0;for(let i of e)i!==null&&(n!==void 0&&this.variants.compare(n,i)!==0&&r++,t.set(i,r),n=i);return t},resolveThemeValue(t,n=!0){let r=t.lastIndexOf(`/`),i=null;r!==-1&&(i=t.slice(r+1).trim(),t=t.slice(0,r).trim());let a=e.resolve(null,[t],+!!n)??void 0;return i&&a?U(a,i):a},trackUsedVariables(e){s.get(e)},canonicalizeCandidates(e,t){return Ln(this,e,t)},storage:{}};return u}var qn=`container-type.pointer-events.visibility.position.inset.inset-inline.inset-block.inset-inline-start.inset-inline-end.inset-block-start.inset-block-end.top.right.bottom.left.isolation.z-index.order.grid-column.grid-column-start.grid-column-end.grid-row.grid-row-start.grid-row-end.float.clear.--tw-container-component.margin.margin-inline.margin-block.margin-inline-start.margin-inline-end.margin-block-start.margin-block-end.margin-top.margin-right.margin-bottom.margin-left.box-sizing.display.field-sizing.aspect-ratio.height.max-height.min-height.width.max-width.min-width.flex.flex-shrink.flex-grow.flex-basis.table-layout.caption-side.border-collapse.border-spacing.transform-origin.translate.--tw-translate-x.--tw-translate-y.--tw-translate-z.scale.--tw-scale-x.--tw-scale-y.--tw-scale-z.rotate.--tw-rotate-x.--tw-rotate-y.--tw-rotate-z.--tw-skew-x.--tw-skew-y.transform.zoom.animation.cursor.touch-action.--tw-pan-x.--tw-pan-y.--tw-pinch-zoom.resize.scroll-snap-type.--tw-scroll-snap-strictness.scroll-snap-align.scroll-snap-stop.scroll-margin.scroll-margin-inline.scroll-margin-block.scroll-margin-inline-start.scroll-margin-inline-end.scroll-margin-block-start.scroll-margin-block-end.scroll-margin-top.scroll-margin-right.scroll-margin-bottom.scroll-margin-left.scroll-padding.scroll-padding-inline.scroll-padding-block.scroll-padding-inline-start.scroll-padding-inline-end.scroll-padding-block-start.scroll-padding-block-end.scroll-padding-top.scroll-padding-right.scroll-padding-bottom.scroll-padding-left.scrollbar-width.scrollbar-color.scrollbar-gutter.list-style-position.list-style-type.list-style-image.appearance.columns.break-before.break-inside.break-after.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-template-columns.grid-template-rows.flex-direction.flex-wrap.place-content.place-items.align-content.align-items.justify-content.justify-items.gap.column-gap.row-gap.--tw-space-x-reverse.--tw-space-y-reverse.divide-x-width.divide-y-width.--tw-divide-y-reverse.divide-style.divide-color.place-self.align-self.justify-self.overflow.overflow-x.overflow-y.overscroll-behavior.overscroll-behavior-x.overscroll-behavior-y.scroll-behavior.border-radius.border-start-radius.border-end-radius.border-top-radius.border-right-radius.border-bottom-radius.border-left-radius.border-start-start-radius.border-start-end-radius.border-end-end-radius.border-end-start-radius.border-top-left-radius.border-top-right-radius.border-bottom-right-radius.border-bottom-left-radius.border-width.border-inline-width.border-block-width.border-inline-start-width.border-inline-end-width.border-block-start-width.border-block-end-width.border-top-width.border-right-width.border-bottom-width.border-left-width.border-style.border-inline-style.border-block-style.border-inline-start-style.border-inline-end-style.border-block-start-style.border-block-end-style.border-top-style.border-right-style.border-bottom-style.border-left-style.border-color.border-inline-color.border-block-color.border-inline-start-color.border-inline-end-color.border-block-start-color.border-block-end-color.border-top-color.border-right-color.border-bottom-color.border-left-color.background-color.background-image.--tw-gradient-position.--tw-gradient-stops.--tw-gradient-via-stops.--tw-gradient-from.--tw-gradient-from-position.--tw-gradient-via.--tw-gradient-via-position.--tw-gradient-to.--tw-gradient-to-position.mask-image.--tw-mask-top.--tw-mask-top-from-color.--tw-mask-top-from-position.--tw-mask-top-to-color.--tw-mask-top-to-position.--tw-mask-right.--tw-mask-right-from-color.--tw-mask-right-from-position.--tw-mask-right-to-color.--tw-mask-right-to-position.--tw-mask-bottom.--tw-mask-bottom-from-color.--tw-mask-bottom-from-position.--tw-mask-bottom-to-color.--tw-mask-bottom-to-position.--tw-mask-left.--tw-mask-left-from-color.--tw-mask-left-from-position.--tw-mask-left-to-color.--tw-mask-left-to-position.--tw-mask-linear.--tw-mask-linear-position.--tw-mask-linear-from-color.--tw-mask-linear-from-position.--tw-mask-linear-to-color.--tw-mask-linear-to-position.--tw-mask-radial.--tw-mask-radial-shape.--tw-mask-radial-size.--tw-mask-radial-position.--tw-mask-radial-from-color.--tw-mask-radial-from-position.--tw-mask-radial-to-color.--tw-mask-radial-to-position.--tw-mask-conic.--tw-mask-conic-position.--tw-mask-conic-from-color.--tw-mask-conic-from-position.--tw-mask-conic-to-color.--tw-mask-conic-to-position.box-decoration-break.background-size.background-attachment.background-clip.background-position.background-repeat.background-origin.mask-composite.mask-mode.mask-type.mask-size.mask-clip.mask-position.mask-repeat.mask-origin.fill.stroke.stroke-width.object-fit.object-position.padding.padding-inline.padding-block.padding-inline-start.padding-inline-end.padding-block-start.padding-block-end.padding-top.padding-right.padding-bottom.padding-left.text-align.text-indent.vertical-align.font-family.font-feature-settings.font-size.line-height.font-weight.letter-spacing.text-wrap.overflow-wrap.word-break.text-overflow.hyphens.white-space.tab-size.color.text-transform.font-style.font-stretch.font-variant-numeric.text-decoration-line.text-decoration-color.text-decoration-style.text-decoration-thickness.text-underline-offset.-webkit-font-smoothing.placeholder-color.caret-color.accent-color.color-scheme.opacity.background-blend-mode.mix-blend-mode.box-shadow.--tw-shadow.--tw-shadow-color.--tw-ring-shadow.--tw-ring-color.--tw-inset-shadow.--tw-inset-shadow-color.--tw-inset-ring-shadow.--tw-inset-ring-color.--tw-ring-offset-width.--tw-ring-offset-color.outline.outline-width.outline-offset.outline-color.--tw-blur.--tw-brightness.--tw-contrast.--tw-drop-shadow.--tw-grayscale.--tw-hue-rotate.--tw-invert.--tw-saturate.--tw-sepia.filter.--tw-backdrop-blur.--tw-backdrop-brightness.--tw-backdrop-contrast.--tw-backdrop-grayscale.--tw-backdrop-hue-rotate.--tw-backdrop-invert.--tw-backdrop-opacity.--tw-backdrop-saturate.--tw-backdrop-sepia.backdrop-filter.transition-property.transition-behavior.transition-delay.transition-duration.transition-timing-function.will-change.contain.content.forced-color-adjust`.split(`.`);function Jn(e,t){let n=e.length,r=t.length,i=n<r?n:r;for(let n=0;n<i;n++){let r=e.charCodeAt(n),i=t.charCodeAt(n);if(r>=48&&r<=57&&i>=48&&i<=57){let a=n,o=n+1,s=n,c=n+1;for(r=e.charCodeAt(o);r>=48&&r<=57;)r=e.charCodeAt(++o);for(i=t.charCodeAt(c);i>=48&&i<=57;)i=t.charCodeAt(++c);let l=e.slice(a,o),u=t.slice(s,c),d=Number(l)-Number(u);if(d)return d;if(l<u)return-1;if(l>u)return 1;continue}if(r!==i)return r-i}return e.length-t.length}function J(e,t,{onInvalidCandidate:n,respectImportant:r}={}){let i=new Map,a=[],o=new Map;for(let r of e){if(t.invalidCandidates.has(r)){n?.(r);continue}let e=t.parseCandidate(r);if(e.length===0){n?.(r);continue}o.set(r,e)}let s=0;(r??!0)&&(s|=1);let c=t.getVariantOrder();for(let[e,r]of o){let o=!1;for(let n of r){let r=t.compileAstNodes(n,s);if(r.length!==0){o=!0;for(let{node:t,propertySort:o}of r){let r=0n;for(let e of n.variants)r|=1n<<BigInt(c.get(e));i.set(t,{properties:o,variants:r,candidate:e}),a.push(t)}}}o||n?.(e)}return a.sort((e,t)=>{let n=i.get(e),r=i.get(t);if(n.variants-r.variants!==0n)return Number(n.variants-r.variants);let a=0;for(;a<n.properties.order.length&&a<r.properties.order.length&&n.properties.order[a]===r.properties.order[a];)a+=1;return(n.properties.order[a]??1/0)-(r.properties.order[a]??1/0)||r.properties.count-n.properties.count||Jn(n.candidate,r.candidate)}),{astNodes:a,nodeSorting:i}}function Yn(e,t,n){let r=Qn(e,t);if(r.length===0)return[];let i=t.important&&!!(n&1),a=[],o=`.${C(e.raw)}`;for(let n of r){let r=Y(n);(e.important||i)&&$n(n);let s={kind:`rule`,selector:o,nodes:n};for(let n of e.variants)if(Xn(s,n,t.variants)===null)return[];a.push({node:s,propertySort:r})}return a}function Xn(e,t,n,r=0){if(t.kind===`arbitrary`){if(t.relative&&r===0)return null;e.nodes=[I(t.selector,e.nodes)];return}let{applyFn:i}=n.get(t.root);if(t.kind===`compound`){let a=F(`@slot`);if(Xn(a,t.variant,n,r+1)===null||t.root===`not`&&a.nodes.length>1)return null;for(let e of a.nodes)if(e.kind!==`rule`&&e.kind!==`at-rule`||i(e,t)===null)return null;N(a.nodes,t=>{if((t.kind===`rule`||t.kind===`at-rule`)&&t.nodes.length<=0)return t.nodes=e.nodes,M.Skip}),e.nodes=a.nodes;return}if(i(e,t)===null)return null}function Zn(e){let t=e.options?.types??[];return t.length>1&&t.includes(`any`)}function Qn(e,t){if(e.kind===`arbitrary`){let n=e.value;return e.modifier&&(n=W(n,e.modifier,t.theme)),n===null?[]:[[L(e.property,n)]]}let n=t.utilities.get(e.root)??[],r=[],i=n.filter(e=>!Zn(e));for(let t of i){if(t.kind!==e.kind)continue;let n=t.compileFn(e);if(n!==void 0){if(n===null){if(t.options?.types?.length)return r;continue}r.push(n)}}if(r.length>0)return r;let a=n.filter(e=>Zn(e));for(let t of a){if(t.kind!==e.kind)continue;let n=t.compileFn(e);if(n!==void 0){if(n===null){if(t.options?.types?.length)return r;continue}r.push(n)}}return r}function $n(e){for(let t of e)t.kind!==`at-root`&&(t.kind===`declaration`?t.important=!0:(t.kind===`rule`||t.kind===`at-rule`)&&$n(t.nodes))}function Y(e){let t=new Set,n=0,r=e.slice(),i=!1;for(;r.length>0;){let e=r.shift();if(e.kind===`declaration`){if(e.value===void 0||(n++,i))continue;if(e.property===`--tw-sort`){let n=qn.indexOf(e.value??``);if(n!==-1){t.add(n),i=!0;continue}}let r=qn.indexOf(e.property);r!==-1&&t.add(r)}else if(e.kind===`rule`||e.kind===`at-rule`)for(let t of e.nodes)r.push(t)}return{order:Array.from(t).sort((e,t)=>e-t),count:n}}function X(e,t){let n=0,r=I(`&`,e),i=new Set,a=new O(()=>new Set),o=new O(()=>new Set);N([r],(e,r)=>{if(e.kind===`at-rule`){if(e.name===`@keyframes`)return N(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@apply`)throw Error("You cannot use `@apply` inside `@keyframes`.")}),M.Skip;if(e.name===`@utility`){let n=e.params.replace(/-\*$/,``);o.get(n).add(e),N(e.nodes,n=>{if(n.kind===`at-rule`&&n.name===`@apply`){i.add(e);for(let r of er(n,t))a.get(e).add(r)}});return}if(e.name===`@apply`){if(r.parent===null)return;n|=1,i.add(r.parent);for(let n of er(e,t))for(let e of r.path())i.has(e)&&a.get(e).add(n)}}});let s=new Set,c=[],l=new Set;function u(e,n=[]){if(!s.has(e)){if(l.has(e)){let r=n[(n.indexOf(e)+1)%n.length];throw e.kind===`at-rule`&&e.name===`@utility`&&r.kind===`at-rule`&&r.name===`@utility`&&N(e.nodes,e=>{if(e.kind!==`at-rule`||e.name!==`@apply`)return;let n=e.params.split(/\s+/g);for(let e of n)for(let n of t.parseCandidate(e))switch(n.kind){case`arbitrary`:break;case`static`:case`functional`:if(r.params.replace(/-\*$/,``)===n.root)throw Error(`You cannot \`@apply\` the \`${e}\` utility here because it creates a circular dependency.`)}}),Error(`Circular dependency detected:
16
16
 
17
- ${je([e])}
17
+ ${Me([e])}
18
18
  Relies on:
19
19
 
20
- ${je([r])}`)}l.add(e);for(let t of a.get(e))for(let r of o.get(t))n.push(e),u(r,n),n.pop();s.add(e),l.delete(e),c.push(e)}}for(let e of i)u(e);for(let e of c)`nodes`in e&&P(e.nodes,e=>{if(e.kind!==`at-rule`||e.name!==`@apply`)return;let n=e.params.split(/(\s+)/g),r={},i=[],a=[],o=0;for(let[e,t]of n.entries())e%2==0&&(t[0]===`-`&&t[1]===`-`?a.push(t):i.push(t),r[t]=o),o+=t.length;if(a.length){if(i.length===0)return N.Skip;let e=a.join(` `);throw Error(`You cannot use \`@apply\` with both mixins and utilities. Please move \`@apply ${e}\` into a separate rule.`)}if(e.nodes.length>0&&i.length){let e=i.join(` `);throw Error(`The rule \`@apply ${e}\` must not have a body.`)}{let n=Kn(Object.keys(r),t,{respectImportant:!1,onInvalidCandidate:e=>{if(t.theme.prefix&&!e.startsWith(t.theme.prefix))throw Error(`Cannot apply unprefixed utility class \`${e}\`. Did you mean \`${t.theme.prefix}:${e}\`?`);if(t.invalidCandidates.has(e))throw Error(`Cannot apply utility class \`${e}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let n=A(e,`:`);if(n.length>1){let r=n.pop();if(t.candidatesToCss([r])[0]){let r=t.candidatesToCss(n.map(e=>`${e}:[--tw-variant-check:1]`)),i=n.filter((e,t)=>r[t]===null);if(i.length>0){if(i.length===1)throw Error(`Cannot apply utility class \`${e}\` because the ${i.map(e=>`\`${e}\``)} variant does not exist.`);{let t=new Intl.ListFormat(`en`,{style:`long`,type:`conjunction`});throw Error(`Cannot apply utility class \`${e}\` because the ${t.format(i.map(e=>`\`${e}\``))} variants do not exist.`)}}}}throw t.theme.size===0?Error(`Cannot apply unknown utility class \`${e}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):Error(`Cannot apply unknown utility class \`${e}\``)}}),i=e.src,a=n.astNodes.map(e=>{let t=n.nodeSorting.get(e)?.candidate,a=t?r[t]:void 0;if(e=Te(e),!i||!t||a===void 0)return P([e],e=>{e.src=i}),e;let o=[i[0],i[1],i[2]];return o[1]+=7+a,o[2]=o[1]+t.length,P([e],e=>{e.src=o}),e}),o=[];for(let e of a)if(e.kind===`rule`)for(let t of e.nodes)o.push(t);else o.push(e);return N.Replace(o)}});return n}function*er(e,t){for(let n of e.params.split(/\s+/g))for(let e of t.parseCandidate(n))switch(e.kind){case`arbitrary`:break;case`static`:case`functional`:yield e.root}}async function tr(e,t,n,r=0,i=!1){let a=0,o=[];return P(e,e=>{if(e.kind===`at-rule`&&(e.name===`@import`||e.name===`@reference`)){let s=nr(M(e.params));if(s===null)return;e.name===`@reference`&&(s.media=`reference`),a|=2;let{uri:c,layer:l,media:u,supports:d}=s;if(c.startsWith(`data:`)||c.startsWith(`http://`)||c.startsWith(`https://`))return;let f=we({},[]);return o.push((async()=>{if(r>100)throw Error(`Exceeded maximum recursion depth while resolving \`${c}\` in \`${t}\`)`);let a=await n(c,t),o=y(a.content,{from:i?a.path:void 0});await tr(o,a.base,n,r+1,i),f.nodes=rr(e,[we({base:a.base},o)],l,u,d)})()),N.ReplaceSkip(f)}}),o.length>0&&await Promise.all(o),a}function nr(e){let t,n=null,r=null,i=null;for(let a=0;a<e.length;a++){let o=e[a];if(o.kind!==`separator`){if(o.kind===`word`&&!t){if(!o.value||o.value[0]!==`"`&&o.value[0]!==`'`)return null;t=o.value.slice(1,-1);continue}if(o.kind===`function`&&o.value.toLowerCase()===`url`||!t)return null;if((o.kind===`word`||o.kind===`function`)&&o.value.toLowerCase()===`layer`){if(n)return null;if(i)throw Error("`layer(…)` in an `@import` should come before any other functions or conditions");n=`nodes`in o?j(o.nodes):``;continue}if(o.kind===`function`&&o.value.toLowerCase()===`supports`){if(i)return null;i=j(o.nodes);continue}r=j(e.slice(a));break}}return t?{uri:t,layer:n,media:r,supports:i}:null}function rr(e,t,n,r,i){let a=t;if(n!==null){let t=I(`@layer`,n,a);t.src=e.src,a=[t]}if(r!==null){let t=I(`@media`,r,a);t.src=e.src,a=[t]}if(i!==null){let t=I(`@supports`,i[0]===`(`?i:`(${i})`,a);t.src=e.src,a=[t]}return a}function ir(e,t=null){return Array.isArray(e)&&e.length===2&&typeof e[1]==`object`&&typeof e[1]!==null?t?e[1][t]??null:e[0]:Array.isArray(e)&&t===null?e.join(`, `):typeof e==`string`&&t===null?e:null}function ar(e,{theme:t},n){for(let t of n){let n=ur([t]);n&&e.theme.clearNamespace(`--${n}`,4)}for(let[n,r]of or(t)){if(typeof r!=`string`&&typeof r!=`number`)continue;if(typeof r==`string`&&(r=r.replace(/<alpha-value>/g,`1`)),n[0]===`opacity`&&(typeof r==`number`||typeof r==`string`)){let e=typeof r==`string`?parseFloat(r):r;e>=0&&e<=1&&(r=e*100+`%`)}let t=ur(n);t&&e.theme.add(`--${t}`,``+r,7)}if(Object.hasOwn(t,`fontFamily`)){{let n=ir(t.fontFamily.sans);n&&e.theme.hasDefault(`--font-sans`)&&(e.theme.add(`--default-font-family`,n,5),e.theme.add(`--default-font-feature-settings`,ir(t.fontFamily.sans,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-font-variation-settings`,ir(t.fontFamily.sans,`fontVariationSettings`)??`normal`,5))}{let n=ir(t.fontFamily.mono);n&&e.theme.hasDefault(`--font-mono`)&&(e.theme.add(`--default-mono-font-family`,n,5),e.theme.add(`--default-mono-font-feature-settings`,ir(t.fontFamily.mono,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-mono-font-variation-settings`,ir(t.fontFamily.mono,`fontVariationSettings`)??`normal`,5))}}return t}function or(e){let t=[];return pr(e,[],(e,n)=>{if(dr(e))return t.push([n,e]),1;if(fr(e)){t.push([n,e[0]]);for(let r of Reflect.ownKeys(e[1]))t.push([[...n,`-${r}`],e[1][r]]);return 1}if(Array.isArray(e)&&e.every(e=>typeof e==`string`))return n[0]===`fontSize`?(t.push([n,e[0]]),e.length>=2&&t.push([[...n,`-line-height`],e[1]])):t.push([n,e.join(`, `)]),1}),t}var sr={borderWidth:`border-width`,outlineWidth:`outline-width`,ringColor:`ring-color`,ringWidth:`ring-width`,transitionDuration:`transition-duration`,transitionTimingFunction:`transition-timing-function`},cr={animation:`animate`,aspectRatio:`aspect`,borderRadius:`radius`,boxShadow:`shadow`,colors:`color`,containers:`container`,fontFamily:`font`,fontSize:`text`,letterSpacing:`tracking`,lineHeight:`leading`,maxWidth:`container`,screens:`breakpoint`,transitionTimingFunction:`ease`},lr=/^[a-zA-Z0-9-_%/.]+$/;function ur(e){let t=sr[e[0]];if(t&&e[1]===`DEFAULT`)return`default-${t}`;if(e[0]===`container`)return null;for(let t of e)if(!lr.test(t))return null;let n=cr[e[0]];return n&&(e=e.slice(),e[0]=n),e.map((e,t,n)=>e===`1`&&t!==n.length-1?``:e).map((e,t)=>(e=e.replaceAll(`.`,`_`),(t===0||e.startsWith(`-`)||e===`lineHeight`)&&(e=e.replace(/([a-z])([A-Z])/g,(e,t,n)=>`${t}-${n.toLowerCase()}`)),e)).filter((t,n)=>t!==`DEFAULT`||n!==e.length-1).join(`-`)}function dr(e){return typeof e==`number`||typeof e==`string`}function fr(e){if(!Array.isArray(e)||e.length!==2||typeof e[0]!=`string`&&typeof e[0]!=`number`||e[1]===void 0||e[1]===null||typeof e[1]!=`object`)return!1;for(let t of Reflect.ownKeys(e[1]))if(typeof t!=`string`||typeof e[1][t]!=`string`&&typeof e[1][t]!=`number`)return!1;return!0}function pr(e,t=[],n){for(let r of Reflect.ownKeys(e)){let i=e[r];if(i==null)continue;let a=[...t,r],o=n(i,a)??0;if(o!==1&&(o===2||(Array.isArray(i)||typeof i==`object`)&&pr(i,a,n)===2))return 2}}function mr(e){let t=[];for(let n of A(e,`.`)){if(!n.includes(`[`)){t.push(n);continue}let e=0;for(;;){let r=n.indexOf(`[`,e),i=n.indexOf(`]`,r);if(r===-1||i===-1)break;r>e&&t.push(n.slice(e,r)),t.push(n.slice(r+1,i)),e=i+1}e<=n.length-1&&t.push(n.slice(e))}return t}function hr(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function gr(e,t,n,r=[]){for(let i of t)if(i!=null)for(let t of Reflect.ownKeys(i)){r.push(t);let a=n(e[t],i[t],r);e[t]=a===void 0?!hr(e[t])||!hr(i[t])?i[t]:gr({},[e[t],i[t]],n,r):a,r.pop()}return e}function _r(e,t,n){return function(r,i){let a=r.lastIndexOf(`/`),o=null;a!==-1&&(o=r.slice(a+1).trim(),r=r.slice(0,a).trim());let s=(()=>{let i=mr(r),[a,o]=vr(e.theme,i),s=n(yr(t()??{},i)??null);if(typeof s==`string`&&(s=s.replace(`<alpha-value>`,`1`)),typeof a!=`object`)return typeof o!=`object`&&o&4?s??a:a;if(typeof s==`object`&&s&&!Array.isArray(s)){let e=gr({},[s],(e,t)=>t);if(a===null&&Object.hasOwn(s,`__CSS_VALUES__`)){let t={};for(let n in s.__CSS_VALUES__)t[n]=s[n],delete e[n];a=t}for(let t in a)t!==`__CSS_VALUES__`&&(s?.__CSS_VALUES__?.[t]&4&&yr(e,t.split(`-`))!==void 0||(e[w(t)]=a[t]));return e}if(Array.isArray(a)&&Array.isArray(o)&&Array.isArray(s)){let e=a[0],t=a[1];o[0]&4&&(e=s[0]??e);for(let e of Object.keys(t))o[1][e]&4&&(t[e]=s[1][e]??t[e]);return[e,t]}return typeof a==`object`&&a&&!Array.isArray(a)&&`DEFAULT`in a?a.DEFAULT:a??s})();return o&&typeof s==`string`&&(s=W(s,o)),s??i}}function vr(e,t){if(t.length===1&&t[0].startsWith(`--`))return[e.get([t[0]]),e.getOptions(t[0])];let n=ur(t),r=new Map,i=new O(()=>new Map),a=e.namespace(`--${n}`);if(a.size===0)return[null,0];let o=new Map;for(let[t,s]of a){if(!t||!t.includes(`--`)){r.set(t,s),o.set(t,e.getOptions(t?`--${n}-${t}`:`--${n}`));continue}let a=t.indexOf(`--`),c=t.slice(0,a),l=t.slice(a+2);l=l.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),i.get(c===``?null:c).set(l,[s,e.getOptions(`--${n}${t}`)])}let s=e.getOptions(`--${n}`);for(let[e,t]of i){let n=r.get(e);if(typeof n!=`string`)continue;let i={},a={};for(let[e,[n,r]]of t)i[e]=n,a[e]=r;r.set(e,[n,i]),o.set(e,[s,a])}let c={},l={};for(let[e,t]of r)br(c,[e??`DEFAULT`],t);for(let[e,t]of o)br(l,[e??`DEFAULT`],t);return t[t.length-1]===`DEFAULT`?[c?.DEFAULT??null,l.DEFAULT??0]:`DEFAULT`in c&&Object.keys(c).length===1?[c.DEFAULT,l.DEFAULT??0]:(c.__CSS_VALUES__=l,[c,l])}function yr(e,t){for(let n=0;n<t.length;++n){let r=t[n];if(typeof e!=`object`||!e||!Object.hasOwn(e,r)){if(t[n+1]===void 0)return;t[n+1]=`${r}-${t[n+1]}`;continue}e=e[r]}return e}function br(e,t,n){for(let n of t.slice(0,-1))e[n]===void 0&&(e[n]={}),e=e[n];e[t[t.length-1]]=n}var xr=/^[a-z@][a-zA-Z0-9/%._-]*$/;function Sr({designSystem:e,ast:t,resolvedConfig:n,featuresRef:r,referenceMode:i,src:a}){let o={addBase(n){if(i)return;let o=Cr(n);r.current|=On(o,e);let s=I(`@layer`,`base`,o);P([s],e=>{e.src=a}),t.push(s)},addVariant(t,n){if(!In.test(t))throw Error(`\`addVariant('${t}')\` defines an invalid variant name. Variants should only contain alphanumeric, dashes, or underscore characters and start with a lowercase letter or number.`);if(typeof n==`string`){if(n.includes(`:merge(`))return}else if(Array.isArray(n)){if(n.some(e=>e.includes(`:merge(`)))return}else if(typeof n==`object`){let e=function(t,n){return Object.entries(t).some(([t,r])=>t.includes(n)||typeof r==`object`&&e(r,n))};if(e(n,`:merge(`))return}typeof n==`string`||Array.isArray(n)?e.variants.static(t,e=>{e.nodes=wr(n,e.nodes)},{compounds:Rn(typeof n==`string`?[n]:n)}):typeof n==`object`&&e.variants.fromAst(t,Cr(n),e)},matchVariant(t,n,r){function i(e,t,r){return wr(n(e,{modifier:t?.value??null}),r)}try{let e=n(`a`,{modifier:null});if(typeof e==`string`&&e.includes(`:merge(`)||Array.isArray(e)&&e.some(e=>e.includes(`:merge(`)))return}catch{}let a=Object.keys(r?.values??{});e.variants.group(()=>{e.variants.functional(t,(e,t)=>{if(!t.value){if(r?.values&&`DEFAULT`in r.values){e.nodes=i(r.values.DEFAULT,t.modifier,e.nodes);return}return null}if(t.value.kind===`arbitrary`)e.nodes=i(t.value.value,t.modifier,e.nodes);else if(t.value.kind===`named`&&r?.values){if(!Object.hasOwn(r.values,t.value.value))return null;let n=r.values[t.value.value];if(typeof n!=`string`)return null;e.nodes=i(n,t.modifier,e.nodes)}else return null})},(e,t)=>{if(e.kind!==`functional`||t.kind!==`functional`)return 0;let n=e.value?e.value.value:`DEFAULT`,i=t.value?t.value.value:`DEFAULT`,o=(r?.values&&Object.hasOwn(r.values,n)?r.values[n]:void 0)??n,s=(r?.values&&Object.hasOwn(r.values,i)?r.values[i]:void 0)??i;if(r&&typeof r.sort==`function`)return r.sort({value:o,modifier:e.modifier?.value??null},{value:s,modifier:t.modifier?.value??null});let c=a.indexOf(n),l=a.indexOf(i);return c=c===-1?a.length:c,l=l===-1?a.length:l,c===l?o<s?-1:1:c-l}),e.variants.suggest(t,()=>Object.keys(r?.values??{}).filter(e=>e!==`DEFAULT`))},addUtilities(n){n=Array.isArray(n)?n:[n];let o=n.flatMap(e=>Object.entries(e));o=o.flatMap(([e,t])=>A(e,`,`).map(e=>[e.trim(),t]));let s=new O(()=>[]);for(let[e,n]of o){if(e.startsWith(`@keyframes `)){if(!i){let r=L(e,Cr(n));P([r],e=>{e.src=a}),t.push(r)}continue}let r=g(e),o=!1;if(P(r,e=>{if(e.kind===`selector`&&e.value[0]===`.`&&xr.test(e.value.slice(1))){let t=e.value;e.value=`&`;let i=l(r),a=t.slice(1),c=i===`&`?Cr(n):[L(i,Cr(n))];s.get(a).push(...c),o=!0,e.value=t;return}if(e.kind===`function`&&(e.value===`:not`||e.value===`:nth-child`||e.value===`:nth-last-child`))return N.Skip}),!o)throw Error(`\`addUtilities({ '${e}' : \u2026 })\` defines an invalid utility selector. Utilities must be a single class name and start with a lowercase letter, eg. \`.scrollbar-none\`.`)}for(let[t,n]of s)e.theme.prefix&&P(n,t=>{if(t.kind===`rule`){let n=g(t.selector);P(n,t=>{t.kind===`selector`&&t.value[0]===`.`&&(t.value=`.${e.theme.prefix}\\:${t.value.slice(1)}`)}),t.selector=l(n)}}),e.utilities.static(t,i=>{let a=n.map(Te);return Tr(a,t,i.raw),r.current|=$n(a,e),a})},matchUtilities(t,n){let i=n?.type?Array.isArray(n?.type)?n.type:[n.type]:[`any`];for(let[a,o]of Object.entries(t)){let t=function({negative:t}){return s=>{if(s.value?.kind===`arbitrary`&&i.length>0&&!i.includes(`any`)&&(s.value.dataType&&!i.includes(s.value.dataType)||!s.value.dataType&&!V(s.value.value,i)))return;let c=i.includes(`color`),l=null,u=!1;{let e=n?.values??{};c&&(e=Object.assign({inherit:`inherit`,transparent:`transparent`,current:`currentcolor`},e)),s.value?s.value.kind===`arbitrary`?l=s.value.value:s.value.fraction&&Object.hasOwn(e,s.value.fraction)?(l=e[s.value.fraction],u=!0):Object.hasOwn(e,s.value.value)?l=e[s.value.value]:e.__BARE_VALUE__&&(l=e.__BARE_VALUE__(s.value)??null,u=(s.value.fraction!==null&&l?.includes(`/`))??!1):l=e.DEFAULT??null}if(l===null)return;let d;{let e=n?.modifiers??null;d=s.modifier?e===`any`||s.modifier.kind===`arbitrary`?s.modifier.value:e&&Object.hasOwn(e,s.modifier.value)?e[s.modifier.value]:c&&!Number.isNaN(Number(s.modifier.value))?`${s.modifier.value}%`:null:null}if(s.modifier&&d===null&&!u)return s.value?.kind===`arbitrary`?null:void 0;c&&d!==null&&(l=W(l,d)),t&&(l=`calc(${l} * -1)`);let f=Cr(o(l,{modifier:d}));return Tr(f,a,s.raw),r.current|=$n(f,e),f}};if(!xr.test(a))throw Error(`\`matchUtilities({ '${a}' : \u2026 })\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter, eg. \`scrollbar\`.`);n?.supportsNegativeValues&&e.utilities.functional(`-${a}`,t({negative:!0}),{types:i}),e.utilities.functional(a,t({negative:!1}),{types:i}),e.utilities.suggest(a,()=>{let e=n?.values??{},t=new Set(Object.keys(e));t.delete(`__BARE_VALUE__`),t.delete(`__CSS_VALUES__`),t.has(`DEFAULT`)&&(t.delete(`DEFAULT`),t.add(null));let r=n?.modifiers??{},i=r===`any`?[]:Object.keys(r);return[{supportsNegative:n?.supportsNegativeValues??!1,values:Array.from(t),modifiers:i}]})}},addComponents(e,t){this.addUtilities(e,t)},matchComponents(e,t){this.matchUtilities(e,t)},theme:_r(e,()=>n.theme??{},e=>e),prefix(e){return e},config(e,t){let r=n;if(!e)return r;let i=mr(e);for(let e=0;e<i.length;++e){let n=i[e];if(r[n]===void 0)return t;r=r[n]}return r??t}};return o.addComponents=o.addComponents.bind(o),o.matchComponents=o.matchComponents.bind(o),o}function Cr(e){let t=[];e=Array.isArray(e)?e:[e];let n=e.flatMap(e=>Object.entries(e));for(let[e,r]of n)if(r!=null&&r!==!1){if(typeof r!=`object`){if(!e.startsWith(`--`)){if(r===`@slot`){t.push(L(e,[I(`@slot`)]));continue}e=e.replace(/([A-Z])/g,`-$1`).toLowerCase()}t.push(R(e,String(r)))}else if(Array.isArray(r))for(let n of r)typeof n==`string`?t.push(R(e,n)):t.push(L(e,Cr(n)));else t.push(L(e,Cr(r)))}return t}function wr(e,t){return(typeof e==`string`?[e]:e).flatMap(e=>{if(e.trim().endsWith(`}`)){let n=y(e.replace(`}`,`{@slot}}`));return Vn(n,t),n}return L(e,t)})}function Tr(e,t,n){P(e,e=>{if(e.kind===`rule`){let r=g(e.selector);P(r,e=>{e.kind===`selector`&&e.value===`.${t}`&&(e.value=`.${C(n)}`)}),e.selector=l(r)}})}function Er(e,t){for(let n of Dr(t))e.theme.addKeyframes(n)}function Dr(e){let t=[];if(`keyframes`in e.theme)for(let[n,r]of Object.entries(e.theme.keyframes))t.push(I(`@keyframes`,n,Cr(r)));return t}var Or={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)`},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)`},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)`}};function kr(e){return{__BARE_VALUE__:e}}var Ar=kr(e=>{if(H(e.value))return e.value}),jr=kr(e=>{if(H(e.value))return`${e.value}%`}),Mr=kr(e=>{if(H(e.value))return`${e.value}px`}),Nr=kr(e=>{if(H(e.value))return`${e.value}ms`}),Pr=kr(e=>{if(H(e.value))return`${e.value}deg`}),Fr=kr(e=>{if(e.fraction===null)return;let[t,n]=A(e.fraction,`/`);if(H(t)&&H(n))return e.fraction}),Ir=kr(e=>{if(H(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Lr={accentColor:({theme:e})=>e(`colors`),animation:{none:`none`,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`},aria:{busy:`busy="true"`,checked:`checked="true"`,disabled:`disabled="true"`,expanded:`expanded="true"`,hidden:`hidden="true"`,pressed:`pressed="true"`,readonly:`readonly="true"`,required:`required="true"`,selected:`selected="true"`},aspectRatio:{auto:`auto`,square:`1 / 1`,video:`16 / 9`,...Fr},backdropBlur:({theme:e})=>e(`blur`),backdropBrightness:({theme:e})=>({...e(`brightness`),...jr}),backdropContrast:({theme:e})=>({...e(`contrast`),...jr}),backdropGrayscale:({theme:e})=>({...e(`grayscale`),...jr}),backdropHueRotate:({theme:e})=>({...e(`hueRotate`),...Pr}),backdropInvert:({theme:e})=>({...e(`invert`),...jr}),backdropOpacity:({theme:e})=>({...e(`opacity`),...jr}),backdropSaturate:({theme:e})=>({...e(`saturate`),...jr}),backdropSepia:({theme:e})=>({...e(`sepia`),...jr}),backgroundColor:({theme:e})=>e(`colors`),backgroundImage:{none:`none`,"gradient-to-t":`linear-gradient(to top, var(--tw-gradient-stops))`,"gradient-to-tr":`linear-gradient(to top right, var(--tw-gradient-stops))`,"gradient-to-r":`linear-gradient(to right, var(--tw-gradient-stops))`,"gradient-to-br":`linear-gradient(to bottom right, var(--tw-gradient-stops))`,"gradient-to-b":`linear-gradient(to bottom, var(--tw-gradient-stops))`,"gradient-to-bl":`linear-gradient(to bottom left, var(--tw-gradient-stops))`,"gradient-to-l":`linear-gradient(to left, var(--tw-gradient-stops))`,"gradient-to-tl":`linear-gradient(to top left, var(--tw-gradient-stops))`},backgroundOpacity:({theme:e})=>e(`opacity`),backgroundPosition:{bottom:`bottom`,center:`center`,left:`left`,"left-bottom":`left bottom`,"left-top":`left top`,right:`right`,"right-bottom":`right bottom`,"right-top":`right top`,top:`top`},backgroundSize:{auto:`auto`,cover:`cover`,contain:`contain`},blur:{0:`0`,none:``,sm:`4px`,DEFAULT:`8px`,md:`12px`,lg:`16px`,xl:`24px`,"2xl":`40px`,"3xl":`64px`},borderColor:({theme:e})=>({DEFAULT:`currentcolor`,...e(`colors`)}),borderOpacity:({theme:e})=>e(`opacity`),borderRadius:{none:`0px`,sm:`0.125rem`,DEFAULT:`0.25rem`,md:`0.375rem`,lg:`0.5rem`,xl:`0.75rem`,"2xl":`1rem`,"3xl":`1.5rem`,full:`9999px`},borderSpacing:({theme:e})=>e(`spacing`),borderWidth:{DEFAULT:`1px`,0:`0px`,2:`2px`,4:`4px`,8:`8px`,...Mr},boxShadow:{sm:`0 1px 2px 0 rgb(0 0 0 / 0.05)`,DEFAULT:`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)`,none:`none`},boxShadowColor:({theme:e})=>e(`colors`),brightness:{0:`0`,50:`.5`,75:`.75`,90:`.9`,95:`.95`,100:`1`,105:`1.05`,110:`1.1`,125:`1.25`,150:`1.5`,200:`2`,...jr},caretColor:({theme:e})=>e(`colors`),colors:()=>({...Or}),columns:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,"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`,...Ar},container:{},content:{none:`none`},contrast:{0:`0`,50:`.5`,75:`.75`,100:`1`,125:`1.25`,150:`1.5`,200:`2`,...jr},cursor:{auto:`auto`,default:`default`,pointer:`pointer`,wait:`wait`,text:`text`,move:`move`,help:`help`,"not-allowed":`not-allowed`,none:`none`,"context-menu":`context-menu`,progress:`progress`,cell:`cell`,crosshair:`crosshair`,"vertical-text":`vertical-text`,alias:`alias`,copy:`copy`,"no-drop":`no-drop`,grab:`grab`,grabbing:`grabbing`,"all-scroll":`all-scroll`,"col-resize":`col-resize`,"row-resize":`row-resize`,"n-resize":`n-resize`,"e-resize":`e-resize`,"s-resize":`s-resize`,"w-resize":`w-resize`,"ne-resize":`ne-resize`,"nw-resize":`nw-resize`,"se-resize":`se-resize`,"sw-resize":`sw-resize`,"ew-resize":`ew-resize`,"ns-resize":`ns-resize`,"nesw-resize":`nesw-resize`,"nwse-resize":`nwse-resize`,"zoom-in":`zoom-in`,"zoom-out":`zoom-out`},divideColor:({theme:e})=>e(`borderColor`),divideOpacity:({theme:e})=>e(`borderOpacity`),divideWidth:({theme:e})=>({...e(`borderWidth`),...Mr}),dropShadow:{sm:`0 1px 1px rgb(0 0 0 / 0.05)`,DEFAULT:[`0 1px 2px rgb(0 0 0 / 0.1)`,`0 1px 1px rgb(0 0 0 / 0.06)`],md:[`0 4px 3px rgb(0 0 0 / 0.07)`,`0 2px 2px rgb(0 0 0 / 0.06)`],lg:[`0 10px 8px rgb(0 0 0 / 0.04)`,`0 4px 3px rgb(0 0 0 / 0.1)`],xl:[`0 20px 13px rgb(0 0 0 / 0.03)`,`0 8px 5px rgb(0 0 0 / 0.08)`],"2xl":`0 25px 25px rgb(0 0 0 / 0.15)`,none:`0 0 #0000`},fill:({theme:e})=>e(`colors`),flex:{1:`1 1 0%`,auto:`1 1 auto`,initial:`0 1 auto`,none:`none`},flexBasis:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,"1/12":`8.333333%`,"2/12":`16.666667%`,"3/12":`25%`,"4/12":`33.333333%`,"5/12":`41.666667%`,"6/12":`50%`,"7/12":`58.333333%`,"8/12":`66.666667%`,"9/12":`75%`,"10/12":`83.333333%`,"11/12":`91.666667%`,full:`100%`,...e(`spacing`)}),flexGrow:{0:`0`,DEFAULT:`1`,...Ar},flexShrink:{0:`0`,DEFAULT:`1`,...Ar},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`]},fontSize:{xs:[`0.75rem`,{lineHeight:`1rem`}],sm:[`0.875rem`,{lineHeight:`1.25rem`}],base:[`1rem`,{lineHeight:`1.5rem`}],lg:[`1.125rem`,{lineHeight:`1.75rem`}],xl:[`1.25rem`,{lineHeight:`1.75rem`}],"2xl":[`1.5rem`,{lineHeight:`2rem`}],"3xl":[`1.875rem`,{lineHeight:`2.25rem`}],"4xl":[`2.25rem`,{lineHeight:`2.5rem`}],"5xl":[`3rem`,{lineHeight:`1`}],"6xl":[`3.75rem`,{lineHeight:`1`}],"7xl":[`4.5rem`,{lineHeight:`1`}],"8xl":[`6rem`,{lineHeight:`1`}],"9xl":[`8rem`,{lineHeight:`1`}]},fontWeight:{thin:`100`,extralight:`200`,light:`300`,normal:`400`,medium:`500`,semibold:`600`,bold:`700`,extrabold:`800`,black:`900`},gap:({theme:e})=>e(`spacing`),gradientColorStops:({theme:e})=>e(`colors`),gradientColorStopPositions:{"0%":`0%`,"5%":`5%`,"10%":`10%`,"15%":`15%`,"20%":`20%`,"25%":`25%`,"30%":`30%`,"35%":`35%`,"40%":`40%`,"45%":`45%`,"50%":`50%`,"55%":`55%`,"60%":`60%`,"65%":`65%`,"70%":`70%`,"75%":`75%`,"80%":`80%`,"85%":`85%`,"90%":`90%`,"95%":`95%`,"100%":`100%`,...jr},grayscale:{0:`0`,DEFAULT:`100%`,...jr},gridAutoColumns:{auto:`auto`,min:`min-content`,max:`max-content`,fr:`minmax(0, 1fr)`},gridAutoRows:{auto:`auto`,min:`min-content`,max:`max-content`,fr:`minmax(0, 1fr)`},gridColumn:{auto:`auto`,"span-1":`span 1 / span 1`,"span-2":`span 2 / span 2`,"span-3":`span 3 / span 3`,"span-4":`span 4 / span 4`,"span-5":`span 5 / span 5`,"span-6":`span 6 / span 6`,"span-7":`span 7 / span 7`,"span-8":`span 8 / span 8`,"span-9":`span 9 / span 9`,"span-10":`span 10 / span 10`,"span-11":`span 11 / span 11`,"span-12":`span 12 / span 12`,"span-full":`1 / -1`},gridColumnEnd:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Ar},gridColumnStart:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Ar},gridRow:{auto:`auto`,"span-1":`span 1 / span 1`,"span-2":`span 2 / span 2`,"span-3":`span 3 / span 3`,"span-4":`span 4 / span 4`,"span-5":`span 5 / span 5`,"span-6":`span 6 / span 6`,"span-7":`span 7 / span 7`,"span-8":`span 8 / span 8`,"span-9":`span 9 / span 9`,"span-10":`span 10 / span 10`,"span-11":`span 11 / span 11`,"span-12":`span 12 / span 12`,"span-full":`1 / -1`},gridRowEnd:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Ar},gridRowStart:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Ar},gridTemplateColumns:{none:`none`,subgrid:`subgrid`,1:`repeat(1, minmax(0, 1fr))`,2:`repeat(2, minmax(0, 1fr))`,3:`repeat(3, minmax(0, 1fr))`,4:`repeat(4, minmax(0, 1fr))`,5:`repeat(5, minmax(0, 1fr))`,6:`repeat(6, minmax(0, 1fr))`,7:`repeat(7, minmax(0, 1fr))`,8:`repeat(8, minmax(0, 1fr))`,9:`repeat(9, minmax(0, 1fr))`,10:`repeat(10, minmax(0, 1fr))`,11:`repeat(11, minmax(0, 1fr))`,12:`repeat(12, minmax(0, 1fr))`,...Ir},gridTemplateRows:{none:`none`,subgrid:`subgrid`,1:`repeat(1, minmax(0, 1fr))`,2:`repeat(2, minmax(0, 1fr))`,3:`repeat(3, minmax(0, 1fr))`,4:`repeat(4, minmax(0, 1fr))`,5:`repeat(5, minmax(0, 1fr))`,6:`repeat(6, minmax(0, 1fr))`,7:`repeat(7, minmax(0, 1fr))`,8:`repeat(8, minmax(0, 1fr))`,9:`repeat(9, minmax(0, 1fr))`,10:`repeat(10, minmax(0, 1fr))`,11:`repeat(11, minmax(0, 1fr))`,12:`repeat(12, minmax(0, 1fr))`,...Ir},height:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,full:`100%`,screen:`100vh`,svh:`100svh`,lvh:`100lvh`,dvh:`100dvh`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),hueRotate:{0:`0deg`,15:`15deg`,30:`30deg`,60:`60deg`,90:`90deg`,180:`180deg`,...Pr},inset:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,full:`100%`,...e(`spacing`)}),invert:{0:`0`,DEFAULT:`100%`,...jr},keyframes:{spin:{to:{transform:`rotate(360deg)`}},ping:{"75%, 100%":{transform:`scale(2)`,opacity:`0`}},pulse:{"50%":{opacity:`.5`}},bounce:{"0%, 100%":{transform:`translateY(-25%)`,animationTimingFunction:`cubic-bezier(0.8,0,1,1)`},"50%":{transform:`none`,animationTimingFunction:`cubic-bezier(0,0,0.2,1)`}}},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`},listStyleType:{none:`none`,disc:`disc`,decimal:`decimal`},listStyleImage:{none:`none`},margin:({theme:e})=>({auto:`auto`,...e(`spacing`)}),lineClamp:{1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,...Ar},maxHeight:({theme:e})=>({none:`none`,full:`100%`,screen:`100vh`,svh:`100svh`,lvh:`100lvh`,dvh:`100dvh`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),maxWidth:({theme:e})=>({none:`none`,xs:`20rem`,sm:`24rem`,md:`28rem`,lg:`32rem`,xl:`36rem`,"2xl":`42rem`,"3xl":`48rem`,"4xl":`56rem`,"5xl":`64rem`,"6xl":`72rem`,"7xl":`80rem`,full:`100%`,min:`min-content`,max:`max-content`,fit:`fit-content`,prose:`65ch`,...e(`spacing`)}),minHeight:({theme:e})=>({full:`100%`,screen:`100vh`,svh:`100svh`,lvh:`100lvh`,dvh:`100dvh`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),minWidth:({theme:e})=>({full:`100%`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),objectPosition:{bottom:`bottom`,center:`center`,left:`left`,"left-bottom":`left bottom`,"left-top":`left top`,right:`right`,"right-bottom":`right bottom`,"right-top":`right top`,top:`top`},opacity:{0:`0`,5:`0.05`,10:`0.1`,15:`0.15`,20:`0.2`,25:`0.25`,30:`0.3`,35:`0.35`,40:`0.4`,45:`0.45`,50:`0.5`,55:`0.55`,60:`0.6`,65:`0.65`,70:`0.7`,75:`0.75`,80:`0.8`,85:`0.85`,90:`0.9`,95:`0.95`,100:`1`,...jr},order:{first:`-9999`,last:`9999`,none:`0`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,...Ar},outlineColor:({theme:e})=>e(`colors`),outlineOffset:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},outlineWidth:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},padding:({theme:e})=>e(`spacing`),placeholderColor:({theme:e})=>e(`colors`),placeholderOpacity:({theme:e})=>e(`opacity`),ringColor:({theme:e})=>({DEFAULT:`currentcolor`,...e(`colors`)}),ringOffsetColor:({theme:e})=>e(`colors`),ringOffsetWidth:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},ringOpacity:({theme:e})=>({DEFAULT:`0.5`,...e(`opacity`)}),ringWidth:{DEFAULT:`3px`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},rotate:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,45:`45deg`,90:`90deg`,180:`180deg`,...Pr},saturate:{0:`0`,50:`.5`,100:`1`,150:`1.5`,200:`2`,...jr},scale:{0:`0`,50:`.5`,75:`.75`,90:`.9`,95:`.95`,100:`1`,105:`1.05`,110:`1.1`,125:`1.25`,150:`1.5`,...jr},screens:{sm:`40rem`,md:`48rem`,lg:`64rem`,xl:`80rem`,"2xl":`96rem`},scrollMargin:({theme:e})=>e(`spacing`),scrollPadding:({theme:e})=>e(`spacing`),sepia:{0:`0`,DEFAULT:`100%`,...jr},skew:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,...Pr},space:({theme:e})=>e(`spacing`),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`},stroke:({theme:e})=>({none:`none`,...e(`colors`)}),strokeWidth:{0:`0`,1:`1`,2:`2`,...Ar},supports:{},data:{},textColor:({theme:e})=>e(`colors`),textDecorationColor:({theme:e})=>e(`colors`),textDecorationThickness:{auto:`auto`,"from-font":`from-font`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},textIndent:({theme:e})=>e(`spacing`),textOpacity:({theme:e})=>e(`opacity`),textUnderlineOffset:{auto:`auto`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},transformOrigin:{center:`center`,top:`top`,"top-right":`top right`,right:`right`,"bottom-right":`bottom right`,bottom:`bottom`,"bottom-left":`bottom left`,left:`left`,"top-left":`top left`},transitionDelay:{0:`0s`,75:`75ms`,100:`100ms`,150:`150ms`,200:`200ms`,300:`300ms`,500:`500ms`,700:`700ms`,1e3:`1000ms`,...Nr},transitionDuration:{DEFAULT:`150ms`,0:`0s`,75:`75ms`,100:`100ms`,150:`150ms`,200:`200ms`,300:`300ms`,500:`500ms`,700:`700ms`,1e3:`1000ms`,...Nr},transitionProperty:{none:`none`,all:`all`,DEFAULT:`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter`,colors:`color, background-color, border-color, outline-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)`},translate:({theme:e})=>({"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,full:`100%`,...e(`spacing`)}),size:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,"1/12":`8.333333%`,"2/12":`16.666667%`,"3/12":`25%`,"4/12":`33.333333%`,"5/12":`41.666667%`,"6/12":`50%`,"7/12":`58.333333%`,"8/12":`66.666667%`,"9/12":`75%`,"10/12":`83.333333%`,"11/12":`91.666667%`,full:`100%`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),width:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,"1/12":`8.333333%`,"2/12":`16.666667%`,"3/12":`25%`,"4/12":`33.333333%`,"5/12":`41.666667%`,"6/12":`50%`,"7/12":`58.333333%`,"8/12":`66.666667%`,"9/12":`75%`,"10/12":`83.333333%`,"11/12":`91.666667%`,full:`100%`,screen:`100vw`,svw:`100svw`,lvw:`100lvw`,dvw:`100dvw`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),willChange:{auto:`auto`,scroll:`scroll-position`,contents:`contents`,transform:`transform`},zIndex:{auto:`auto`,0:`0`,10:`10`,20:`20`,30:`30`,40:`40`,50:`50`,...Ar}};function Rr(e){return{theme:{...Lr,colors:({theme:e})=>e(`color`,{}),extend:{fontSize:({theme:e})=>({...e(`text`,{})}),boxShadow:({theme:e})=>({...e(`shadow`,{})}),animation:({theme:e})=>({...e(`animate`,{})}),aspectRatio:({theme:e})=>({...e(`aspect`,{})}),borderRadius:({theme:e})=>({...e(`radius`,{})}),screens:({theme:e})=>({...e(`breakpoint`,{})}),letterSpacing:({theme:e})=>({...e(`tracking`,{})}),lineHeight:({theme:e})=>({...e(`leading`,{})}),transitionDuration:{DEFAULT:e.get([`--default-transition-duration`])??null},transitionTimingFunction:{DEFAULT:e.get([`--default-transition-timing-function`])??null},maxWidth:({theme:e})=>({...e(`container`,{})})}}}}var zr={blocklist:[],future:{},experimental:{},prefix:``,important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function Br(e,t){let n={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(zr)};for(let e of t)Hr(n,e);for(let e of n.configs)`darkMode`in e&&e.darkMode!==void 0&&(n.result.darkMode=e.darkMode??null),`prefix`in e&&e.prefix!==void 0&&(n.result.prefix=e.prefix??``),`blocklist`in e&&e.blocklist!==void 0&&(n.result.blocklist=e.blocklist??[]),`important`in e&&e.important!==void 0&&(n.result.important=e.important??!1);let r=Ur(n);return{resolvedConfig:{...n.result,content:n.content,theme:n.theme,plugins:n.plugins},replacedThemeKeys:r}}function Vr(e,t){if(Array.isArray(e)&&hr(e[0]))return e.concat(t);if(Array.isArray(t)&&hr(t[0])&&hr(e))return[e,...t];if(Array.isArray(t))return t}function Hr(e,{config:t,base:n,path:r,reference:i,src:a}){let o=[];for(let e of t.plugins??[])`__isOptionsFunction`in e?o.push({...e(),reference:i,src:a}):`handler`in e?o.push({...e,reference:i,src:a}):o.push({handler:e,reference:i,src:a});if(Array.isArray(t.presets)&&t.presets.length===0)throw Error("Error in the config file/plugin/preset. An empty preset (`preset: []`) is not currently supported.");for(let o of t.presets??[])Hr(e,{path:r,base:n,config:o,reference:i,src:a});for(let t of o)e.plugins.push(t),t.config&&Hr(e,{path:r,base:n,config:t.config,reference:!!t.reference,src:t.src??a});let s=t.content??[],c=Array.isArray(s)?s:s.files;for(let t of c)e.content.files.push(typeof t==`object`?t:{base:n,pattern:t});e.configs.push(t)}function Ur(e){let t=new Set,n=_r(e.design,()=>e.theme,i),r=Object.assign(n,{theme:n,colors:Or});function i(e){return typeof e==`function`?e(r)??null:e??null}for(let n of e.configs){let r=n.theme??{},i=r.extend??{};for(let e in r)e!==`extend`&&t.add(e);Object.assign(e.theme,r);for(let t in i)e.extend[t]??=[],e.extend[t].push(i[t])}delete e.theme.extend;for(let t in e.extend){let n=[e.theme[t],...e.extend[t]];e.theme[t]=()=>gr({},n.map(i),Vr)}for(let t in e.theme)e.theme[t]=i(e.theme[t]);if(e.theme.screens&&typeof e.theme.screens==`object`)for(let t of Object.keys(e.theme.screens)){let n=e.theme.screens[t];n&&typeof n==`object`&&(`raw`in n||`max`in n||`min`in n&&(e.theme.screens[t]=n.min))}return t}function Wr(e,t){let n=e.theme.container||{};if(typeof n!=`object`||!n)return;let r=Gr(n,t);r.length!==0&&t.utilities.static(`container`,()=>r.map(Te))}function Gr({center:e,padding:t,screens:n},r){let i=[],a=null;if(e&&i.push(R(`margin-inline`,`auto`)),(typeof t==`string`||typeof t==`object`&&t&&`DEFAULT`in t)&&i.push(R(`padding-inline`,typeof t==`string`?t:t.DEFAULT)),typeof n==`object`&&n){a=new Map;let e=Array.from(r.theme.namespace(`--breakpoint`).entries());if(e.sort((e,t)=>ut(e[1],t[1],`asc`)),e.length>0){let[t]=e[0];i.push(I(`@media`,`(width >= --theme(--breakpoint-${t}))`,[R(`max-width`,`none`)]))}for(let[e,t]of Object.entries(n)){if(typeof t==`object`){if(`min`in t)t=t.min;else continue}a.set(e,I(`@media`,`(width >= ${t})`,[R(`max-width`,t)]))}}if(typeof t==`object`&&t){let e=Object.entries(t).filter(([e])=>e!==`DEFAULT`).map(([e,t])=>[e,r.theme.resolveValue(e,[`--breakpoint`]),t]).filter(Boolean);e.sort((e,t)=>ut(e[1],t[1],`asc`));for(let[t,,n]of e)if(a&&a.has(t))a.get(t).nodes.push(R(`padding-inline`,n));else{if(a)continue;i.push(I(`@media`,`(width >= theme(--breakpoint-${t}))`,[R(`padding-inline`,n)]))}}if(a)for(let[,e]of a)i.push(e);return i}function Kr({addVariant:e,config:t}){let n=t(`darkMode`,null),[r,i=`.dark`]=Array.isArray(n)?n:[n];if(r===`variant`){let e;if(Array.isArray(i)||typeof i==`function`?e=i:typeof i==`string`&&(e=[i]),Array.isArray(e))for(let t of e)t===`.dark`?(r=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):t.includes(`&`)||(r=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));i=e}r===null||(r===`selector`?e(`dark`,`&:where(${i}, ${i} *)`):r===`media`?e(`dark`,`@media (prefers-color-scheme: dark)`):r===`variant`?e(`dark`,i):r===`class`&&e(`dark`,`&:is(${i} *)`))}function qr(e){for(let[t,n]of[[`t`,`top`],[`tr`,`top right`],[`r`,`right`],[`br`,`bottom right`],[`b`,`bottom`],[`bl`,`bottom left`],[`l`,`left`],[`tl`,`top left`]])e.utilities.suggest(`bg-gradient-to-${t}`,()=>[]),e.utilities.static(`bg-gradient-to-${t}`,()=>[R(`--tw-gradient-position`,`to ${n} in oklab`),R(`background-image`,`linear-gradient(var(--tw-gradient-stops))`)]);e.utilities.suggest(`bg-left-top`,()=>[]),e.utilities.static(`bg-left-top`,()=>[R(`background-position`,`left top`)]),e.utilities.suggest(`bg-right-top`,()=>[]),e.utilities.static(`bg-right-top`,()=>[R(`background-position`,`right top`)]),e.utilities.suggest(`bg-left-bottom`,()=>[]),e.utilities.static(`bg-left-bottom`,()=>[R(`background-position`,`left bottom`)]),e.utilities.suggest(`bg-right-bottom`,()=>[]),e.utilities.static(`bg-right-bottom`,()=>[R(`background-position`,`right bottom`)]),e.utilities.suggest(`object-left-top`,()=>[]),e.utilities.static(`object-left-top`,()=>[R(`object-position`,`left top`)]),e.utilities.suggest(`object-right-top`,()=>[]),e.utilities.static(`object-right-top`,()=>[R(`object-position`,`right top`)]),e.utilities.suggest(`object-left-bottom`,()=>[]),e.utilities.static(`object-left-bottom`,()=>[R(`object-position`,`left bottom`)]),e.utilities.suggest(`object-right-bottom`,()=>[]),e.utilities.static(`object-right-bottom`,()=>[R(`object-position`,`right bottom`)]),e.utilities.suggest(`max-w-screen`,()=>[]),e.utilities.functional(`max-w-screen`,t=>{if(!t.value||t.value.kind===`arbitrary`)return;let n=e.theme.resolve(t.value.value,[`--breakpoint`]);if(n)return[R(`max-width`,n)]}),e.utilities.suggest(`overflow-ellipsis`,()=>[]),e.utilities.static(`overflow-ellipsis`,()=>[R(`text-overflow`,`ellipsis`)]),e.utilities.suggest(`decoration-slice`,()=>[]),e.utilities.static(`decoration-slice`,()=>[R(`-webkit-box-decoration-break`,`slice`),R(`box-decoration-break`,`slice`)]),e.utilities.suggest(`decoration-clone`,()=>[]),e.utilities.static(`decoration-clone`,()=>[R(`-webkit-box-decoration-break`,`clone`),R(`box-decoration-break`,`clone`)]),e.utilities.suggest(`flex-shrink`,()=>[]),e.utilities.functional(`flex-shrink`,e=>{if(!e.modifier){if(!e.value)return[R(`flex-shrink`,`1`)];if(e.value.kind===`arbitrary`||H(e.value.value))return[R(`flex-shrink`,e.value.value)]}}),e.utilities.suggest(`flex-grow`,()=>[]),e.utilities.functional(`flex-grow`,e=>{if(!e.modifier){if(!e.value)return[R(`flex-grow`,`1`)];if(e.value.kind===`arbitrary`||H(e.value.value))return[R(`flex-grow`,e.value.value)]}}),e.utilities.suggest(`order-none`,()=>[]),e.utilities.static(`order-none`,()=>[R(`order`,`0`)]),e.utilities.suggest(`break-words`,()=>[]),e.utilities.static(`break-words`,()=>[R(`overflow-wrap`,`break-word`)]);for(let[t,n]of[[`start`,`inset-inline-start`],[`end`,`inset-inline-end`]]){let r=function({negative:t}){return r=>{if(r.value===null)return;if(r.value.kind===`arbitrary`){if(r.modifier)return;let e=r.value.value;return[R(n,t?`calc(${e} * -1)`:e)]}let i=e.theme.resolve(r.value.fraction??r.value.value,[`--inset`,`--spacing`]);if(i===null&&r.value.fraction){let[e,t]=A(r.value.fraction,`/`);if(!H(e)||!H(t))return;i=`calc(${r.value.fraction} * 100%)`}if(i===null&&t){let t=e.theme.resolve(null,[`--spacing`]);if(t&&Gt(r.value.value)&&(i=`calc(${t} * -${r.value.value})`,i!==null))return[R(n,i)]}if(i===null){let t=e.theme.resolve(null,[`--spacing`]);t&&Gt(r.value.value)&&(i=`calc(${t} * ${r.value.value})`)}if(i!==null)return[R(n,t?`calc(${i} * -1)`:i)]}};e.utilities.static(`${t}-auto`,()=>[R(n,`auto`)]),e.utilities.static(`${t}-full`,()=>[R(n,`100%`)]),e.utilities.static(`-${t}-full`,()=>[R(n,`-100%`)]),e.utilities.static(`${t}-px`,()=>[R(n,`1px`)]),e.utilities.static(`-${t}-px`,()=>[R(n,`-1px`)]),e.utilities.functional(`-${t}`,r({negative:!0})),e.utilities.functional(t,r({negative:!1}))}}function Jr(e,t){let n=e.theme.screens||{},r=t.variants.get(`min`)?.order??0,i=[];for(let[e,a]of Object.entries(n)){let n=function(n){t.variants.static(e,e=>{e.nodes=[I(`@media`,l,e.nodes)]},{order:n})},o=t.variants.get(e),s=t.theme.resolveValue(e,[`--breakpoint`]);if(o&&s&&!t.theme.hasDefault(`--breakpoint-${e}`))continue;let c=!0;typeof a==`string`&&(c=!1);let l=Yr(a);c?i.push(n):n(r)}if(i.length!==0){for(let[,e]of t.variants.variants)e.order>r&&(e.order+=i.length);t.variants.compareFns=new Map(Array.from(t.variants.compareFns).map(([e,t])=>(e>r&&(e+=i.length),[e,t])));for(let[e,t]of i.entries())t(r+e+1)}}function Yr(e){return(Array.isArray(e)?e:[e]).map(e=>typeof e==`string`?{min:e}:e&&typeof e==`object`?e:null).map(e=>{if(e===null)return null;if(`raw`in e)return e.raw;let t=``;return e.max!==void 0&&(t+=`${e.max} >= `),t+=`width`,e.min!==void 0&&(t+=` >= ${e.min}`),`(${t})`}).filter(Boolean).join(`, `)}function Xr(e,t){let n=e.theme.aria||{},r=e.theme.supports||{},i=e.theme.data||{};if(Object.keys(n).length>0){let e=t.variants.get(`aria`),r=e?.applyFn,i=e?.compounds;t.variants.functional(`aria`,(e,t)=>{let i=t.value;return i&&i.kind===`named`&&i.value in n?r?.(e,{...t,value:{kind:`arbitrary`,value:n[i.value]}}):r?.(e,t)},{compounds:i})}if(Object.keys(r).length>0){let e=t.variants.get(`supports`),n=e?.applyFn,i=e?.compounds;t.variants.functional(`supports`,(e,t)=>{let i=t.value;return i&&i.kind===`named`&&i.value in r?n?.(e,{...t,value:{kind:`arbitrary`,value:r[i.value]}}):n?.(e,t)},{compounds:i})}if(Object.keys(i).length>0){let e=t.variants.get(`data`),n=e?.applyFn,r=e?.compounds;t.variants.functional(`data`,(e,t)=>{let r=t.value;return r&&r.kind===`named`&&r.value in i?n?.(e,{...t,value:{kind:`arbitrary`,value:i[r.value]}}):n?.(e,t)},{compounds:r})}}var Zr=/^[a-z]+$/;async function Qr({designSystem:e,base:t,ast:n,loadModule:r,sources:i}){let a=0,o=[],s=[];P(n,(e,t)=>{if(e.kind!==`at-rule`)return;let n=Ee(t);if(e.name===`@plugin`){if(n.parent!==null)throw Error("`@plugin` cannot be nested.");let t=e.params.slice(1,-1);if(t.length===0)throw Error("`@plugin` must have a path.");let r={};for(let t of e.nodes??[]){if(t.kind!==`declaration`)throw Error(`Unexpected \`@plugin\` option:
20
+ ${Me([r])}`)}l.add(e);for(let t of a.get(e))for(let r of o.get(t))n.push(e),u(r,n),n.pop();s.add(e),l.delete(e),c.push(e)}}for(let e of i)u(e);for(let e of c)`nodes`in e&&N(e.nodes,e=>{if(e.kind!==`at-rule`||e.name!==`@apply`)return;let n=e.params.split(/(\s+)/g),r={},i=[],a=[],o=0;for(let[e,t]of n.entries())e%2==0&&(t[0]===`-`&&t[1]===`-`?a.push(t):i.push(t),r[t]=o),o+=t.length;if(a.length){if(i.length===0)return M.Skip;let e=a.join(` `);throw Error(`You cannot use \`@apply\` with both mixins and utilities. Please move \`@apply ${e}\` into a separate rule.`)}if(e.nodes.length>0&&i.length){let e=i.join(` `);throw Error(`The rule \`@apply ${e}\` must not have a body.`)}{let n=J(Object.keys(r),t,{respectImportant:!1,onInvalidCandidate:e=>{if(t.theme.prefix&&!e.startsWith(t.theme.prefix))throw Error(`Cannot apply unprefixed utility class \`${e}\`. Did you mean \`${t.theme.prefix}:${e}\`?`);if(t.invalidCandidates.has(e))throw Error(`Cannot apply utility class \`${e}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let n=k(e,`:`);if(n.length>1){let r=n.pop();if(t.candidatesToCss([r])[0]){let r=t.candidatesToCss(n.map(e=>`${e}:[--tw-variant-check:1]`)),i=n.filter((e,t)=>r[t]===null);if(i.length>0){if(i.length===1)throw Error(`Cannot apply utility class \`${e}\` because the ${i.map(e=>`\`${e}\``)} variant does not exist.`);{let t=new Intl.ListFormat(`en`,{style:`long`,type:`conjunction`});throw Error(`Cannot apply utility class \`${e}\` because the ${t.format(i.map(e=>`\`${e}\``))} variants do not exist.`)}}}}throw t.theme.size===0?Error(`Cannot apply unknown utility class \`${e}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):Error(`Cannot apply unknown utility class \`${e}\``)}}),i=e.src,a=n.astNodes.map(e=>{let t=n.nodeSorting.get(e)?.candidate,a=t?r[t]:void 0;if(e=Ee(e),!i||!t||a===void 0)return N([e],e=>{e.src=i}),e;let o=[i[0],i[1],i[2]];return o[1]+=7+a,o[2]=o[1]+t.length,N([e],e=>{e.src=o}),e}),o=[];for(let e of a)if(e.kind===`rule`)for(let t of e.nodes)o.push(t);else o.push(e);return M.Replace(o)}});return n}function*er(e,t){for(let n of e.params.split(/\s+/g))for(let e of t.parseCandidate(n))switch(e.kind){case`arbitrary`:break;case`static`:case`functional`:yield e.root}}async function tr(e,t,n,r=0,i=!1){let a=0,o=[];return N(e,e=>{if(e.kind===`at-rule`&&(e.name===`@import`||e.name===`@reference`)){let s=nr(j(e.params));if(s===null)return;e.name===`@reference`&&(s.media=`reference`),a|=2;let{uri:c,layer:l,media:u,supports:d}=s;if(c.startsWith(`data:`)||c.startsWith(`http://`)||c.startsWith(`https://`))return;let f=Te({},[]);return o.push((async()=>{if(r>100)throw Error(`Exceeded maximum recursion depth while resolving \`${c}\` in \`${t}\`)`);let a=await n(c,t),o=y(a.content,{from:i?a.path:void 0});await tr(o,a.base,n,r+1,i),f.nodes=rr(e,[Te({base:a.base},o)],l,u,d)})()),M.ReplaceSkip(f)}}),o.length>0&&await Promise.all(o),a}function nr(e){let t,n=null,r=null,i=null;for(let a=0;a<e.length;a++){let o=e[a];if(o.kind!==`separator`){if(o.kind===`word`&&!t){if(!o.value||o.value[0]!==`"`&&o.value[0]!==`'`)return null;t=o.value.slice(1,-1);continue}if(o.kind===`function`&&o.value.toLowerCase()===`url`||!t)return null;if((o.kind===`word`||o.kind===`function`)&&o.value.toLowerCase()===`layer`){if(n)return null;if(i)throw Error("`layer(…)` in an `@import` should come before any other functions or conditions");n=`nodes`in o?A(o.nodes):``;continue}if(o.kind===`function`&&o.value.toLowerCase()===`supports`){if(i)return null;i=A(o.nodes);continue}r=A(e.slice(a));break}}return t?{uri:t,layer:n,media:r,supports:i}:null}function rr(e,t,n,r,i){let a=t;if(n!==null){let t=F(`@layer`,n,a);t.src=e.src,a=[t]}if(r!==null){let t=F(`@media`,r,a);t.src=e.src,a=[t]}if(i!==null){let t=F(`@supports`,i[0]===`(`?i:`(${i})`,a);t.src=e.src,a=[t]}return a}function ir(e,t=null){return Array.isArray(e)&&e.length===2&&typeof e[1]==`object`&&typeof e[1]!==null?t?e[1][t]??null:e[0]:Array.isArray(e)&&t===null?e.join(`, `):typeof e==`string`&&t===null?e:null}function ar(e,{theme:t},n){for(let t of n){let n=ur([t]);n&&e.theme.clearNamespace(`--${n}`,4)}for(let[n,r]of or(t)){if(typeof r!=`string`&&typeof r!=`number`)continue;if(typeof r==`string`&&(r=r.replace(/<alpha-value>/g,`1`)),n[0]===`opacity`&&(typeof r==`number`||typeof r==`string`)){let e=typeof r==`string`?parseFloat(r):r;e>=0&&e<=1&&(r=e*100+`%`)}let t=ur(n);t&&e.theme.add(`--${t}`,``+r,7)}if(Object.hasOwn(t,`fontFamily`)){{let n=ir(t.fontFamily.sans);n&&e.theme.hasDefault(`--font-sans`)&&(e.theme.add(`--default-font-family`,n,5),e.theme.add(`--default-font-feature-settings`,ir(t.fontFamily.sans,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-font-variation-settings`,ir(t.fontFamily.sans,`fontVariationSettings`)??`normal`,5))}{let n=ir(t.fontFamily.mono);n&&e.theme.hasDefault(`--font-mono`)&&(e.theme.add(`--default-mono-font-family`,n,5),e.theme.add(`--default-mono-font-feature-settings`,ir(t.fontFamily.mono,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-mono-font-variation-settings`,ir(t.fontFamily.mono,`fontVariationSettings`)??`normal`,5))}}return t}function or(e){let t=[];return pr(e,[],(e,n)=>{if(dr(e))return t.push([n,e]),1;if(fr(e)){t.push([n,e[0]]);for(let r of Reflect.ownKeys(e[1]))t.push([[...n,`-${r}`],e[1][r]]);return 1}if(Array.isArray(e)&&e.every(e=>typeof e==`string`))return n[0]===`fontSize`?(t.push([n,e[0]]),e.length>=2&&t.push([[...n,`-line-height`],e[1]])):t.push([n,e.join(`, `)]),1}),t}var sr={borderWidth:`border-width`,outlineWidth:`outline-width`,ringColor:`ring-color`,ringWidth:`ring-width`,transitionDuration:`transition-duration`,transitionTimingFunction:`transition-timing-function`},cr={animation:`animate`,aspectRatio:`aspect`,borderRadius:`radius`,boxShadow:`shadow`,colors:`color`,containers:`container`,fontFamily:`font`,fontSize:`text`,letterSpacing:`tracking`,lineHeight:`leading`,maxWidth:`container`,screens:`breakpoint`,transitionTimingFunction:`ease`},lr=/^[a-zA-Z0-9-_%/.]+$/;function ur(e){let t=sr[e[0]];if(t&&e[1]===`DEFAULT`)return`default-${t}`;if(e[0]===`container`)return null;for(let t of e)if(!lr.test(t))return null;let n=cr[e[0]];return n&&(e=e.slice(),e[0]=n),e.map((e,t,n)=>e===`1`&&t!==n.length-1?``:e).map((e,t)=>(e=e.replaceAll(`.`,`_`),(t===0||e.startsWith(`-`)||e===`lineHeight`)&&(e=e.replace(/([a-z])([A-Z])/g,(e,t,n)=>`${t}-${n.toLowerCase()}`)),e)).filter((t,n)=>t!==`DEFAULT`||n!==e.length-1).join(`-`)}function dr(e){return typeof e==`number`||typeof e==`string`}function fr(e){if(!Array.isArray(e)||e.length!==2||typeof e[0]!=`string`&&typeof e[0]!=`number`||e[1]===void 0||e[1]===null||typeof e[1]!=`object`)return!1;for(let t of Reflect.ownKeys(e[1]))if(typeof t!=`string`||typeof e[1][t]!=`string`&&typeof e[1][t]!=`number`)return!1;return!0}function pr(e,t=[],n){for(let r of Reflect.ownKeys(e)){let i=e[r];if(i==null)continue;let a=[...t,r],o=n(i,a)??0;if(o!==1&&(o===2||(Array.isArray(i)||typeof i==`object`)&&pr(i,a,n)===2))return 2}}function mr(e){let t=[];for(let n of k(e,`.`)){if(!n.includes(`[`)){t.push(n);continue}let e=0;for(;;){let r=n.indexOf(`[`,e),i=n.indexOf(`]`,r);if(r===-1||i===-1)break;r>e&&t.push(n.slice(e,r)),t.push(n.slice(r+1,i)),e=i+1}e<=n.length-1&&t.push(n.slice(e))}return t}function hr(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function gr(e,t,n,r=[]){for(let i of t)if(i!=null)for(let t of Reflect.ownKeys(i)){r.push(t);let a=n(e[t],i[t],r);e[t]=a===void 0?!hr(e[t])||!hr(i[t])?i[t]:gr({},[e[t],i[t]],n,r):a,r.pop()}return e}function _r(e,t,n){return function(r,i){let a=r.lastIndexOf(`/`),o=null;a!==-1&&(o=r.slice(a+1).trim(),r=r.slice(0,a).trim());let s=(()=>{let i=mr(r),[a,o]=vr(e.theme,i),s=n(yr(t()??{},i)??null);if(typeof s==`string`&&(s=s.replace(`<alpha-value>`,`1`)),typeof a!=`object`)return typeof o!=`object`&&o&4?s??a:a;if(typeof s==`object`&&s&&!Array.isArray(s)){let e=gr({},[s],(e,t)=>t);if(a===null&&Object.hasOwn(s,`__CSS_VALUES__`)){let t={};for(let n in s.__CSS_VALUES__)t[n]=s[n],delete e[n];a=t}for(let t in a)t!==`__CSS_VALUES__`&&(s?.__CSS_VALUES__?.[t]&4&&yr(e,t.split(`-`))!==void 0||(e[w(t)]=a[t]));return e}if(Array.isArray(a)&&Array.isArray(o)&&Array.isArray(s)){let e=a[0],t=a[1];o[0]&4&&(e=s[0]??e);for(let e of Object.keys(t))o[1][e]&4&&(t[e]=s[1][e]??t[e]);return[e,t]}return typeof a==`object`&&a&&!Array.isArray(a)&&`DEFAULT`in a?a.DEFAULT:a??s})();return o&&typeof s==`string`&&(s=U(s,o)),s??i}}function vr(e,t){if(t.length===1&&t[0].startsWith(`--`))return[e.get([t[0]]),e.getOptions(t[0])];let n=ur(t),r=new Map,i=new O(()=>new Map),a=e.namespace(`--${n}`);if(a.size===0)return[null,0];let o=new Map;for(let[t,s]of a){if(!t||!t.includes(`--`)){r.set(t,s),o.set(t,e.getOptions(t?`--${n}-${t}`:`--${n}`));continue}let a=t.indexOf(`--`),c=t.slice(0,a),l=t.slice(a+2);l=l.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),i.get(c===``?null:c).set(l,[s,e.getOptions(`--${n}${t}`)])}let s=e.getOptions(`--${n}`);for(let[e,t]of i){let n=r.get(e);if(typeof n!=`string`)continue;let i={},a={};for(let[e,[n,r]]of t)i[e]=n,a[e]=r;r.set(e,[n,i]),o.set(e,[s,a])}let c={},l={};for(let[e,t]of r)br(c,[e??`DEFAULT`],t);for(let[e,t]of o)br(l,[e??`DEFAULT`],t);return t[t.length-1]===`DEFAULT`?[c?.DEFAULT??null,l.DEFAULT??0]:`DEFAULT`in c&&Object.keys(c).length===1?[c.DEFAULT,l.DEFAULT??0]:(c.__CSS_VALUES__=l,[c,l])}function yr(e,t){for(let n=0;n<t.length;++n){let r=t[n];if(typeof e!=`object`||!e||!Object.hasOwn(e,r)){if(t[n+1]===void 0)return;t[n+1]=`${r}-${t[n+1]}`;continue}e=e[r]}return e}function br(e,t,n){for(let n of t.slice(0,-1))e[n]===void 0&&(e[n]={}),e=e[n];e[t[t.length-1]]=n}var xr=/^[a-z@][a-zA-Z0-9/%._-]*$/;function Sr({designSystem:e,ast:t,resolvedConfig:n,featuresRef:r,referenceMode:i,src:a}){let o={addBase(n){if(i)return;let o=Cr(n);r.current|=jn(o,e);let s=F(`@layer`,`base`,o);N([s],e=>{e.src=a}),t.push(s)},addVariant(t,n){if(!Vn.test(t))throw Error(`\`addVariant('${t}')\` defines an invalid variant name. Variants should only contain alphanumeric, dashes, or underscore characters and start with a lowercase letter or number.`);if(typeof n==`string`){if(n.includes(`:merge(`))return}else if(Array.isArray(n)){if(n.some(e=>e.includes(`:merge(`)))return}else if(typeof n==`object`){let e=function(t,n){return Object.entries(t).some(([t,r])=>t.includes(n)||typeof r==`object`&&e(r,n))};if(e(n,`:merge(`))return}typeof n==`string`||Array.isArray(n)?e.variants.static(t,e=>{e.nodes=wr(n,e.nodes)},{compounds:Un(typeof n==`string`?[n]:n)}):typeof n==`object`&&e.variants.fromAst(t,Cr(n),e)},matchVariant(t,n,r){function i(e,t,r){return wr(n(e,{modifier:t?.value??null}),r)}try{let e=n(`a`,{modifier:null});if(typeof e==`string`&&e.includes(`:merge(`)||Array.isArray(e)&&e.some(e=>e.includes(`:merge(`)))return}catch{}let a=Object.keys(r?.values??{});e.variants.group(()=>{e.variants.functional(t,(e,t)=>{if(!t.value){if(r?.values&&`DEFAULT`in r.values){e.nodes=i(r.values.DEFAULT,t.modifier,e.nodes);return}return null}if(t.value.kind===`arbitrary`)e.nodes=i(t.value.value,t.modifier,e.nodes);else if(t.value.kind===`named`&&r?.values){if(!Object.hasOwn(r.values,t.value.value))return null;let n=r.values[t.value.value];if(typeof n!=`string`)return null;e.nodes=i(n,t.modifier,e.nodes)}else return null})},(e,t)=>{if(e.kind!==`functional`||t.kind!==`functional`)return 0;let n=e.value?e.value.value:`DEFAULT`,i=t.value?t.value.value:`DEFAULT`,o=(r?.values&&Object.hasOwn(r.values,n)?r.values[n]:void 0)??n,s=(r?.values&&Object.hasOwn(r.values,i)?r.values[i]:void 0)??i;if(r&&typeof r.sort==`function`)return r.sort({value:o,modifier:e.modifier?.value??null},{value:s,modifier:t.modifier?.value??null});let c=a.indexOf(n),l=a.indexOf(i);return c=c===-1?a.length:c,l=l===-1?a.length:l,c===l?o<s?-1:1:c-l}),e.variants.suggest(t,()=>Object.keys(r?.values??{}).filter(e=>e!==`DEFAULT`))},addUtilities(n){n=Array.isArray(n)?n:[n];let o=n.flatMap(e=>Object.entries(e));o=o.flatMap(([e,t])=>k(e,`,`).map(e=>[e.trim(),t]));let s=new O(()=>[]);for(let[e,n]of o){if(e.startsWith(`@keyframes `)){if(!i){let r=I(e,Cr(n));N([r],e=>{e.src=a}),t.push(r)}continue}let r=g(e),o=!1;if(N(r,e=>{if(e.kind===`selector`&&e.value[0]===`.`&&xr.test(e.value.slice(1))){let t=e.value;e.value=`&`;let i=l(r),a=t.slice(1),c=i===`&`?Cr(n):[I(i,Cr(n))];s.get(a).push(...c),o=!0,e.value=t;return}if(e.kind===`function`&&(e.value===`:not`||e.value===`:nth-child`||e.value===`:nth-last-child`))return M.Skip}),!o)throw Error(`\`addUtilities({ '${e}' : \u2026 })\` defines an invalid utility selector. Utilities must be a single class name and start with a lowercase letter, eg. \`.scrollbar-none\`.`)}for(let[t,n]of s)e.theme.prefix&&N(n,t=>{if(t.kind===`rule`){let n=g(t.selector);N(n,t=>{t.kind===`selector`&&t.value[0]===`.`&&(t.value=`.${e.theme.prefix}\\:${t.value.slice(1)}`)}),t.selector=l(n)}}),e.utilities.static(t,i=>{let a=n.map(Ee);return Tr(a,t,i.raw),r.current|=X(a,e),a})},matchUtilities(t,n){let i=n?.type?Array.isArray(n?.type)?n.type:[n.type]:[`any`];for(let[a,o]of Object.entries(t)){let t=function({negative:t}){return s=>{if(s.value?.kind===`arbitrary`&&i.length>0&&!i.includes(`any`)&&(s.value.dataType&&!i.includes(s.value.dataType)||!s.value.dataType&&!B(s.value.value,i)))return;let c=i.includes(`color`),l=null,u=!1;{let e=n?.values??{};c&&(e=Object.assign({inherit:`inherit`,transparent:`transparent`,current:`currentcolor`},e)),s.value?s.value.kind===`arbitrary`?l=s.value.value:s.value.fraction&&Object.hasOwn(e,s.value.fraction)?(l=e[s.value.fraction],u=!0):Object.hasOwn(e,s.value.value)?l=e[s.value.value]:e.__BARE_VALUE__&&(l=e.__BARE_VALUE__(s.value)??null,u=(s.value.fraction!==null&&l?.includes(`/`))??!1):l=e.DEFAULT??null}if(l===null)return;let d;{let e=n?.modifiers??null;d=s.modifier?e===`any`||s.modifier.kind===`arbitrary`?s.modifier.value:e&&Object.hasOwn(e,s.modifier.value)?e[s.modifier.value]:c&&!Number.isNaN(Number(s.modifier.value))?`${s.modifier.value}%`:null:null}if(s.modifier&&d===null&&!u)return s.value?.kind===`arbitrary`?null:void 0;c&&d!==null&&(l=U(l,d)),t&&(l=`calc(${l} * -1)`);let f=Cr(o(l,{modifier:d}));return Tr(f,a,s.raw),r.current|=X(f,e),f}};if(!xr.test(a))throw Error(`\`matchUtilities({ '${a}' : \u2026 })\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter, eg. \`scrollbar\`.`);n?.supportsNegativeValues&&e.utilities.functional(`-${a}`,t({negative:!0}),{types:i}),e.utilities.functional(a,t({negative:!1}),{types:i}),e.utilities.suggest(a,()=>{let e=n?.values??{},t=new Set(Object.keys(e));t.delete(`__BARE_VALUE__`),t.delete(`__CSS_VALUES__`),t.has(`DEFAULT`)&&(t.delete(`DEFAULT`),t.add(null));let r=n?.modifiers??{},i=r===`any`?[]:Object.keys(r);return[{supportsNegative:n?.supportsNegativeValues??!1,values:Array.from(t),modifiers:i}]})}},addComponents(e,t){this.addUtilities(e,t)},matchComponents(e,t){this.matchUtilities(e,t)},theme:_r(e,()=>n.theme??{},e=>e),prefix(e){return e},config(e,t){let r=n;if(!e)return r;let i=mr(e);for(let e=0;e<i.length;++e){let n=i[e];if(r[n]===void 0)return t;r=r[n]}return r??t}};return o.addComponents=o.addComponents.bind(o),o.matchComponents=o.matchComponents.bind(o),o}function Cr(e){let t=[];e=Array.isArray(e)?e:[e];let n=e.flatMap(e=>Object.entries(e));for(let[e,r]of n)if(r!=null&&r!==!1){if(typeof r!=`object`){if(!e.startsWith(`--`)){if(r===`@slot`){t.push(I(e,[F(`@slot`)]));continue}e=e.replace(/([A-Z])/g,`-$1`).toLowerCase()}t.push(L(e,String(r)))}else if(Array.isArray(r))for(let n of r)typeof n==`string`?t.push(L(e,n)):t.push(I(e,Cr(n)));else t.push(I(e,Cr(r)))}return t}function wr(e,t){return(typeof e==`string`?[e]:e).flatMap(e=>{if(e.trim().endsWith(`}`)){let n=y(e.replace(`}`,`{@slot}}`));return Gn(n,t),n}return I(e,t)})}function Tr(e,t,n){N(e,e=>{if(e.kind===`rule`){let r=g(e.selector);N(r,e=>{e.kind===`selector`&&e.value===`.${t}`&&(e.value=`.${C(n)}`)}),e.selector=l(r)}})}function Er(e,t){for(let n of Dr(t))e.theme.addKeyframes(n)}function Dr(e){let t=[];if(`keyframes`in e.theme)for(let[n,r]of Object.entries(e.theme.keyframes))t.push(F(`@keyframes`,n,Cr(r)));return t}var Or={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)`},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)`},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)`}};function kr(e){return{__BARE_VALUE__:e}}var Ar=kr(e=>{if(V(e.value))return e.value}),jr=kr(e=>{if(V(e.value))return`${e.value}%`}),Mr=kr(e=>{if(V(e.value))return`${e.value}px`}),Nr=kr(e=>{if(V(e.value))return`${e.value}ms`}),Pr=kr(e=>{if(V(e.value))return`${e.value}deg`}),Fr=kr(e=>{if(e.fraction===null)return;let[t,n]=k(e.fraction,`/`);if(V(t)&&V(n))return e.fraction}),Ir=kr(e=>{if(V(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Lr={accentColor:({theme:e})=>e(`colors`),animation:{none:`none`,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`},aria:{busy:`busy="true"`,checked:`checked="true"`,disabled:`disabled="true"`,expanded:`expanded="true"`,hidden:`hidden="true"`,pressed:`pressed="true"`,readonly:`readonly="true"`,required:`required="true"`,selected:`selected="true"`},aspectRatio:{auto:`auto`,square:`1 / 1`,video:`16 / 9`,...Fr},backdropBlur:({theme:e})=>e(`blur`),backdropBrightness:({theme:e})=>({...e(`brightness`),...jr}),backdropContrast:({theme:e})=>({...e(`contrast`),...jr}),backdropGrayscale:({theme:e})=>({...e(`grayscale`),...jr}),backdropHueRotate:({theme:e})=>({...e(`hueRotate`),...Pr}),backdropInvert:({theme:e})=>({...e(`invert`),...jr}),backdropOpacity:({theme:e})=>({...e(`opacity`),...jr}),backdropSaturate:({theme:e})=>({...e(`saturate`),...jr}),backdropSepia:({theme:e})=>({...e(`sepia`),...jr}),backgroundColor:({theme:e})=>e(`colors`),backgroundImage:{none:`none`,"gradient-to-t":`linear-gradient(to top, var(--tw-gradient-stops))`,"gradient-to-tr":`linear-gradient(to top right, var(--tw-gradient-stops))`,"gradient-to-r":`linear-gradient(to right, var(--tw-gradient-stops))`,"gradient-to-br":`linear-gradient(to bottom right, var(--tw-gradient-stops))`,"gradient-to-b":`linear-gradient(to bottom, var(--tw-gradient-stops))`,"gradient-to-bl":`linear-gradient(to bottom left, var(--tw-gradient-stops))`,"gradient-to-l":`linear-gradient(to left, var(--tw-gradient-stops))`,"gradient-to-tl":`linear-gradient(to top left, var(--tw-gradient-stops))`},backgroundOpacity:({theme:e})=>e(`opacity`),backgroundPosition:{bottom:`bottom`,center:`center`,left:`left`,"left-bottom":`left bottom`,"left-top":`left top`,right:`right`,"right-bottom":`right bottom`,"right-top":`right top`,top:`top`},backgroundSize:{auto:`auto`,cover:`cover`,contain:`contain`},blur:{0:`0`,none:``,sm:`4px`,DEFAULT:`8px`,md:`12px`,lg:`16px`,xl:`24px`,"2xl":`40px`,"3xl":`64px`},borderColor:({theme:e})=>({DEFAULT:`currentcolor`,...e(`colors`)}),borderOpacity:({theme:e})=>e(`opacity`),borderRadius:{none:`0px`,sm:`0.125rem`,DEFAULT:`0.25rem`,md:`0.375rem`,lg:`0.5rem`,xl:`0.75rem`,"2xl":`1rem`,"3xl":`1.5rem`,full:`9999px`},borderSpacing:({theme:e})=>e(`spacing`),borderWidth:{DEFAULT:`1px`,0:`0px`,2:`2px`,4:`4px`,8:`8px`,...Mr},boxShadow:{sm:`0 1px 2px 0 rgb(0 0 0 / 0.05)`,DEFAULT:`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)`,none:`none`},boxShadowColor:({theme:e})=>e(`colors`),brightness:{0:`0`,50:`.5`,75:`.75`,90:`.9`,95:`.95`,100:`1`,105:`1.05`,110:`1.1`,125:`1.25`,150:`1.5`,200:`2`,...jr},caretColor:({theme:e})=>e(`colors`),colors:()=>({...Or}),columns:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,"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`,...Ar},container:{},content:{none:`none`},contrast:{0:`0`,50:`.5`,75:`.75`,100:`1`,125:`1.25`,150:`1.5`,200:`2`,...jr},cursor:{auto:`auto`,default:`default`,pointer:`pointer`,wait:`wait`,text:`text`,move:`move`,help:`help`,"not-allowed":`not-allowed`,none:`none`,"context-menu":`context-menu`,progress:`progress`,cell:`cell`,crosshair:`crosshair`,"vertical-text":`vertical-text`,alias:`alias`,copy:`copy`,"no-drop":`no-drop`,grab:`grab`,grabbing:`grabbing`,"all-scroll":`all-scroll`,"col-resize":`col-resize`,"row-resize":`row-resize`,"n-resize":`n-resize`,"e-resize":`e-resize`,"s-resize":`s-resize`,"w-resize":`w-resize`,"ne-resize":`ne-resize`,"nw-resize":`nw-resize`,"se-resize":`se-resize`,"sw-resize":`sw-resize`,"ew-resize":`ew-resize`,"ns-resize":`ns-resize`,"nesw-resize":`nesw-resize`,"nwse-resize":`nwse-resize`,"zoom-in":`zoom-in`,"zoom-out":`zoom-out`},divideColor:({theme:e})=>e(`borderColor`),divideOpacity:({theme:e})=>e(`borderOpacity`),divideWidth:({theme:e})=>({...e(`borderWidth`),...Mr}),dropShadow:{sm:`0 1px 1px rgb(0 0 0 / 0.05)`,DEFAULT:[`0 1px 2px rgb(0 0 0 / 0.1)`,`0 1px 1px rgb(0 0 0 / 0.06)`],md:[`0 4px 3px rgb(0 0 0 / 0.07)`,`0 2px 2px rgb(0 0 0 / 0.06)`],lg:[`0 10px 8px rgb(0 0 0 / 0.04)`,`0 4px 3px rgb(0 0 0 / 0.1)`],xl:[`0 20px 13px rgb(0 0 0 / 0.03)`,`0 8px 5px rgb(0 0 0 / 0.08)`],"2xl":`0 25px 25px rgb(0 0 0 / 0.15)`,none:`0 0 #0000`},fill:({theme:e})=>e(`colors`),flex:{1:`1 1 0%`,auto:`1 1 auto`,initial:`0 1 auto`,none:`none`},flexBasis:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,"1/12":`8.333333%`,"2/12":`16.666667%`,"3/12":`25%`,"4/12":`33.333333%`,"5/12":`41.666667%`,"6/12":`50%`,"7/12":`58.333333%`,"8/12":`66.666667%`,"9/12":`75%`,"10/12":`83.333333%`,"11/12":`91.666667%`,full:`100%`,...e(`spacing`)}),flexGrow:{0:`0`,DEFAULT:`1`,...Ar},flexShrink:{0:`0`,DEFAULT:`1`,...Ar},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`]},fontSize:{xs:[`0.75rem`,{lineHeight:`1rem`}],sm:[`0.875rem`,{lineHeight:`1.25rem`}],base:[`1rem`,{lineHeight:`1.5rem`}],lg:[`1.125rem`,{lineHeight:`1.75rem`}],xl:[`1.25rem`,{lineHeight:`1.75rem`}],"2xl":[`1.5rem`,{lineHeight:`2rem`}],"3xl":[`1.875rem`,{lineHeight:`2.25rem`}],"4xl":[`2.25rem`,{lineHeight:`2.5rem`}],"5xl":[`3rem`,{lineHeight:`1`}],"6xl":[`3.75rem`,{lineHeight:`1`}],"7xl":[`4.5rem`,{lineHeight:`1`}],"8xl":[`6rem`,{lineHeight:`1`}],"9xl":[`8rem`,{lineHeight:`1`}]},fontWeight:{thin:`100`,extralight:`200`,light:`300`,normal:`400`,medium:`500`,semibold:`600`,bold:`700`,extrabold:`800`,black:`900`},gap:({theme:e})=>e(`spacing`),gradientColorStops:({theme:e})=>e(`colors`),gradientColorStopPositions:{"0%":`0%`,"5%":`5%`,"10%":`10%`,"15%":`15%`,"20%":`20%`,"25%":`25%`,"30%":`30%`,"35%":`35%`,"40%":`40%`,"45%":`45%`,"50%":`50%`,"55%":`55%`,"60%":`60%`,"65%":`65%`,"70%":`70%`,"75%":`75%`,"80%":`80%`,"85%":`85%`,"90%":`90%`,"95%":`95%`,"100%":`100%`,...jr},grayscale:{0:`0`,DEFAULT:`100%`,...jr},gridAutoColumns:{auto:`auto`,min:`min-content`,max:`max-content`,fr:`minmax(0, 1fr)`},gridAutoRows:{auto:`auto`,min:`min-content`,max:`max-content`,fr:`minmax(0, 1fr)`},gridColumn:{auto:`auto`,"span-1":`span 1 / span 1`,"span-2":`span 2 / span 2`,"span-3":`span 3 / span 3`,"span-4":`span 4 / span 4`,"span-5":`span 5 / span 5`,"span-6":`span 6 / span 6`,"span-7":`span 7 / span 7`,"span-8":`span 8 / span 8`,"span-9":`span 9 / span 9`,"span-10":`span 10 / span 10`,"span-11":`span 11 / span 11`,"span-12":`span 12 / span 12`,"span-full":`1 / -1`},gridColumnEnd:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Ar},gridColumnStart:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Ar},gridRow:{auto:`auto`,"span-1":`span 1 / span 1`,"span-2":`span 2 / span 2`,"span-3":`span 3 / span 3`,"span-4":`span 4 / span 4`,"span-5":`span 5 / span 5`,"span-6":`span 6 / span 6`,"span-7":`span 7 / span 7`,"span-8":`span 8 / span 8`,"span-9":`span 9 / span 9`,"span-10":`span 10 / span 10`,"span-11":`span 11 / span 11`,"span-12":`span 12 / span 12`,"span-full":`1 / -1`},gridRowEnd:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Ar},gridRowStart:{auto:`auto`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,13:`13`,...Ar},gridTemplateColumns:{none:`none`,subgrid:`subgrid`,1:`repeat(1, minmax(0, 1fr))`,2:`repeat(2, minmax(0, 1fr))`,3:`repeat(3, minmax(0, 1fr))`,4:`repeat(4, minmax(0, 1fr))`,5:`repeat(5, minmax(0, 1fr))`,6:`repeat(6, minmax(0, 1fr))`,7:`repeat(7, minmax(0, 1fr))`,8:`repeat(8, minmax(0, 1fr))`,9:`repeat(9, minmax(0, 1fr))`,10:`repeat(10, minmax(0, 1fr))`,11:`repeat(11, minmax(0, 1fr))`,12:`repeat(12, minmax(0, 1fr))`,...Ir},gridTemplateRows:{none:`none`,subgrid:`subgrid`,1:`repeat(1, minmax(0, 1fr))`,2:`repeat(2, minmax(0, 1fr))`,3:`repeat(3, minmax(0, 1fr))`,4:`repeat(4, minmax(0, 1fr))`,5:`repeat(5, minmax(0, 1fr))`,6:`repeat(6, minmax(0, 1fr))`,7:`repeat(7, minmax(0, 1fr))`,8:`repeat(8, minmax(0, 1fr))`,9:`repeat(9, minmax(0, 1fr))`,10:`repeat(10, minmax(0, 1fr))`,11:`repeat(11, minmax(0, 1fr))`,12:`repeat(12, minmax(0, 1fr))`,...Ir},height:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,full:`100%`,screen:`100vh`,svh:`100svh`,lvh:`100lvh`,dvh:`100dvh`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),hueRotate:{0:`0deg`,15:`15deg`,30:`30deg`,60:`60deg`,90:`90deg`,180:`180deg`,...Pr},inset:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,full:`100%`,...e(`spacing`)}),invert:{0:`0`,DEFAULT:`100%`,...jr},keyframes:{spin:{to:{transform:`rotate(360deg)`}},ping:{"75%, 100%":{transform:`scale(2)`,opacity:`0`}},pulse:{"50%":{opacity:`.5`}},bounce:{"0%, 100%":{transform:`translateY(-25%)`,animationTimingFunction:`cubic-bezier(0.8,0,1,1)`},"50%":{transform:`none`,animationTimingFunction:`cubic-bezier(0,0,0.2,1)`}}},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`},listStyleType:{none:`none`,disc:`disc`,decimal:`decimal`},listStyleImage:{none:`none`},margin:({theme:e})=>({auto:`auto`,...e(`spacing`)}),lineClamp:{1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,...Ar},maxHeight:({theme:e})=>({none:`none`,full:`100%`,screen:`100vh`,svh:`100svh`,lvh:`100lvh`,dvh:`100dvh`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),maxWidth:({theme:e})=>({none:`none`,xs:`20rem`,sm:`24rem`,md:`28rem`,lg:`32rem`,xl:`36rem`,"2xl":`42rem`,"3xl":`48rem`,"4xl":`56rem`,"5xl":`64rem`,"6xl":`72rem`,"7xl":`80rem`,full:`100%`,min:`min-content`,max:`max-content`,fit:`fit-content`,prose:`65ch`,...e(`spacing`)}),minHeight:({theme:e})=>({full:`100%`,screen:`100vh`,svh:`100svh`,lvh:`100lvh`,dvh:`100dvh`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),minWidth:({theme:e})=>({full:`100%`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),objectPosition:{bottom:`bottom`,center:`center`,left:`left`,"left-bottom":`left bottom`,"left-top":`left top`,right:`right`,"right-bottom":`right bottom`,"right-top":`right top`,top:`top`},opacity:{0:`0`,5:`0.05`,10:`0.1`,15:`0.15`,20:`0.2`,25:`0.25`,30:`0.3`,35:`0.35`,40:`0.4`,45:`0.45`,50:`0.5`,55:`0.55`,60:`0.6`,65:`0.65`,70:`0.7`,75:`0.75`,80:`0.8`,85:`0.85`,90:`0.9`,95:`0.95`,100:`1`,...jr},order:{first:`-9999`,last:`9999`,none:`0`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,10:`10`,11:`11`,12:`12`,...Ar},outlineColor:({theme:e})=>e(`colors`),outlineOffset:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},outlineWidth:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},padding:({theme:e})=>e(`spacing`),placeholderColor:({theme:e})=>e(`colors`),placeholderOpacity:({theme:e})=>e(`opacity`),ringColor:({theme:e})=>({DEFAULT:`currentcolor`,...e(`colors`)}),ringOffsetColor:({theme:e})=>e(`colors`),ringOffsetWidth:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},ringOpacity:({theme:e})=>({DEFAULT:`0.5`,...e(`opacity`)}),ringWidth:{DEFAULT:`3px`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},rotate:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,45:`45deg`,90:`90deg`,180:`180deg`,...Pr},saturate:{0:`0`,50:`.5`,100:`1`,150:`1.5`,200:`2`,...jr},scale:{0:`0`,50:`.5`,75:`.75`,90:`.9`,95:`.95`,100:`1`,105:`1.05`,110:`1.1`,125:`1.25`,150:`1.5`,...jr},screens:{sm:`40rem`,md:`48rem`,lg:`64rem`,xl:`80rem`,"2xl":`96rem`},scrollMargin:({theme:e})=>e(`spacing`),scrollPadding:({theme:e})=>e(`spacing`),sepia:{0:`0`,DEFAULT:`100%`,...jr},skew:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,...Pr},space:({theme:e})=>e(`spacing`),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`},stroke:({theme:e})=>({none:`none`,...e(`colors`)}),strokeWidth:{0:`0`,1:`1`,2:`2`,...Ar},supports:{},data:{},textColor:({theme:e})=>e(`colors`),textDecorationColor:({theme:e})=>e(`colors`),textDecorationThickness:{auto:`auto`,"from-font":`from-font`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},textIndent:({theme:e})=>e(`spacing`),textOpacity:({theme:e})=>e(`opacity`),textUnderlineOffset:{auto:`auto`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Mr},transformOrigin:{center:`center`,top:`top`,"top-right":`top right`,right:`right`,"bottom-right":`bottom right`,bottom:`bottom`,"bottom-left":`bottom left`,left:`left`,"top-left":`top left`},transitionDelay:{0:`0s`,75:`75ms`,100:`100ms`,150:`150ms`,200:`200ms`,300:`300ms`,500:`500ms`,700:`700ms`,1e3:`1000ms`,...Nr},transitionDuration:{DEFAULT:`150ms`,0:`0s`,75:`75ms`,100:`100ms`,150:`150ms`,200:`200ms`,300:`300ms`,500:`500ms`,700:`700ms`,1e3:`1000ms`,...Nr},transitionProperty:{none:`none`,all:`all`,DEFAULT:`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter`,colors:`color, background-color, border-color, outline-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)`},translate:({theme:e})=>({"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,full:`100%`,...e(`spacing`)}),size:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,"1/12":`8.333333%`,"2/12":`16.666667%`,"3/12":`25%`,"4/12":`33.333333%`,"5/12":`41.666667%`,"6/12":`50%`,"7/12":`58.333333%`,"8/12":`66.666667%`,"9/12":`75%`,"10/12":`83.333333%`,"11/12":`91.666667%`,full:`100%`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),width:({theme:e})=>({auto:`auto`,"1/2":`50%`,"1/3":`33.333333%`,"2/3":`66.666667%`,"1/4":`25%`,"2/4":`50%`,"3/4":`75%`,"1/5":`20%`,"2/5":`40%`,"3/5":`60%`,"4/5":`80%`,"1/6":`16.666667%`,"2/6":`33.333333%`,"3/6":`50%`,"4/6":`66.666667%`,"5/6":`83.333333%`,"1/12":`8.333333%`,"2/12":`16.666667%`,"3/12":`25%`,"4/12":`33.333333%`,"5/12":`41.666667%`,"6/12":`50%`,"7/12":`58.333333%`,"8/12":`66.666667%`,"9/12":`75%`,"10/12":`83.333333%`,"11/12":`91.666667%`,full:`100%`,screen:`100vw`,svw:`100svw`,lvw:`100lvw`,dvw:`100dvw`,min:`min-content`,max:`max-content`,fit:`fit-content`,...e(`spacing`)}),willChange:{auto:`auto`,scroll:`scroll-position`,contents:`contents`,transform:`transform`},zIndex:{auto:`auto`,0:`0`,10:`10`,20:`20`,30:`30`,40:`40`,50:`50`,...Ar}};function Rr(e){return{theme:{...Lr,colors:({theme:e})=>e(`color`,{}),extend:{fontSize:({theme:e})=>({...e(`text`,{})}),boxShadow:({theme:e})=>({...e(`shadow`,{})}),animation:({theme:e})=>({...e(`animate`,{})}),aspectRatio:({theme:e})=>({...e(`aspect`,{})}),borderRadius:({theme:e})=>({...e(`radius`,{})}),screens:({theme:e})=>({...e(`breakpoint`,{})}),letterSpacing:({theme:e})=>({...e(`tracking`,{})}),lineHeight:({theme:e})=>({...e(`leading`,{})}),transitionDuration:{DEFAULT:e.get([`--default-transition-duration`])??null},transitionTimingFunction:{DEFAULT:e.get([`--default-transition-timing-function`])??null},maxWidth:({theme:e})=>({...e(`container`,{})})}}}}var zr={blocklist:[],future:{},experimental:{},prefix:``,important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function Br(e,t){let n={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(zr)};for(let e of t)Hr(n,e);for(let e of n.configs)`darkMode`in e&&e.darkMode!==void 0&&(n.result.darkMode=e.darkMode??null),`prefix`in e&&e.prefix!==void 0&&(n.result.prefix=e.prefix??``),`blocklist`in e&&e.blocklist!==void 0&&(n.result.blocklist=e.blocklist??[]),`important`in e&&e.important!==void 0&&(n.result.important=e.important??!1);let r=Ur(n);return{resolvedConfig:{...n.result,content:n.content,theme:n.theme,plugins:n.plugins},replacedThemeKeys:r}}function Vr(e,t){if(Array.isArray(e)&&hr(e[0]))return e.concat(t);if(Array.isArray(t)&&hr(t[0])&&hr(e))return[e,...t];if(Array.isArray(t))return t}function Hr(e,{config:t,base:n,path:r,reference:i,src:a}){let o=[];for(let e of t.plugins??[])`__isOptionsFunction`in e?o.push({...e(),reference:i,src:a}):`handler`in e?o.push({...e,reference:i,src:a}):o.push({handler:e,reference:i,src:a});if(Array.isArray(t.presets)&&t.presets.length===0)throw Error("Error in the config file/plugin/preset. An empty preset (`preset: []`) is not currently supported.");for(let o of t.presets??[])Hr(e,{path:r,base:n,config:o,reference:i,src:a});for(let t of o)e.plugins.push(t),t.config&&Hr(e,{path:r,base:n,config:t.config,reference:!!t.reference,src:t.src??a});let s=t.content??[],c=Array.isArray(s)?s:s.files;for(let t of c)e.content.files.push(typeof t==`object`?t:{base:n,pattern:t});e.configs.push(t)}function Ur(e){let t=new Set,n=_r(e.design,()=>e.theme,i),r=Object.assign(n,{theme:n,colors:Or});function i(e){return typeof e==`function`?e(r)??null:e??null}for(let n of e.configs){let r=n.theme??{},i=r.extend??{};for(let e in r)e!==`extend`&&t.add(e);Object.assign(e.theme,r);for(let t in i)e.extend[t]??=[],e.extend[t].push(i[t])}delete e.theme.extend;for(let t in e.extend){let n=[e.theme[t],...e.extend[t]];e.theme[t]=()=>gr({},n.map(i),Vr)}for(let t in e.theme)e.theme[t]=i(e.theme[t]);if(e.theme.screens&&typeof e.theme.screens==`object`)for(let t of Object.keys(e.theme.screens)){let n=e.theme.screens[t];n&&typeof n==`object`&&(`raw`in n||`max`in n||`min`in n&&(e.theme.screens[t]=n.min))}return t}function Wr(e,t){let n=e.theme.container||{};if(typeof n!=`object`||!n)return;let r=Gr(n,t);r.length!==0&&t.utilities.static(`container`,()=>r.map(Ee))}function Gr({center:e,padding:t,screens:n},r){let i=[],a=null;if(e&&i.push(L(`margin-inline`,`auto`)),(typeof t==`string`||typeof t==`object`&&t&&`DEFAULT`in t)&&i.push(L(`padding-inline`,typeof t==`string`?t:t.DEFAULT)),typeof n==`object`&&n){a=new Map;let e=Array.from(r.theme.namespace(`--breakpoint`).entries());if(e.sort((e,t)=>dt(e[1],t[1],`asc`)),e.length>0){let[t]=e[0];i.push(F(`@media`,`(width >= --theme(--breakpoint-${t}))`,[L(`max-width`,`none`)]))}for(let[e,t]of Object.entries(n)){if(typeof t==`object`){if(`min`in t)t=t.min;else continue}a.set(e,F(`@media`,`(width >= ${t})`,[L(`max-width`,t)]))}}if(typeof t==`object`&&t){let e=Object.entries(t).filter(([e])=>e!==`DEFAULT`).map(([e,t])=>[e,r.theme.resolveValue(e,[`--breakpoint`]),t]).filter(Boolean);e.sort((e,t)=>dt(e[1],t[1],`asc`));for(let[t,,n]of e)if(a&&a.has(t))a.get(t).nodes.push(L(`padding-inline`,n));else{if(a)continue;i.push(F(`@media`,`(width >= theme(--breakpoint-${t}))`,[L(`padding-inline`,n)]))}}if(a)for(let[,e]of a)i.push(e);return i}function Kr({addVariant:e,config:t}){let n=t(`darkMode`,null),[r,i=`.dark`]=Array.isArray(n)?n:[n];if(r===`variant`){let e;if(Array.isArray(i)||typeof i==`function`?e=i:typeof i==`string`&&(e=[i]),Array.isArray(e))for(let t of e)t===`.dark`?(r=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):t.includes(`&`)||(r=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));i=e}r===null||(r===`selector`?e(`dark`,`&:where(${i}, ${i} *)`):r===`media`?e(`dark`,`@media (prefers-color-scheme: dark)`):r===`variant`?e(`dark`,i):r===`class`&&e(`dark`,`&:is(${i} *)`))}function qr(e){for(let[t,n]of[[`t`,`top`],[`tr`,`top right`],[`r`,`right`],[`br`,`bottom right`],[`b`,`bottom`],[`bl`,`bottom left`],[`l`,`left`],[`tl`,`top left`]])e.utilities.suggest(`bg-gradient-to-${t}`,()=>[]),e.utilities.static(`bg-gradient-to-${t}`,()=>[L(`--tw-gradient-position`,`to ${n} in oklab`),L(`background-image`,`linear-gradient(var(--tw-gradient-stops))`)]);e.utilities.suggest(`bg-left-top`,()=>[]),e.utilities.static(`bg-left-top`,()=>[L(`background-position`,`left top`)]),e.utilities.suggest(`bg-right-top`,()=>[]),e.utilities.static(`bg-right-top`,()=>[L(`background-position`,`right top`)]),e.utilities.suggest(`bg-left-bottom`,()=>[]),e.utilities.static(`bg-left-bottom`,()=>[L(`background-position`,`left bottom`)]),e.utilities.suggest(`bg-right-bottom`,()=>[]),e.utilities.static(`bg-right-bottom`,()=>[L(`background-position`,`right bottom`)]),e.utilities.suggest(`object-left-top`,()=>[]),e.utilities.static(`object-left-top`,()=>[L(`object-position`,`left top`)]),e.utilities.suggest(`object-right-top`,()=>[]),e.utilities.static(`object-right-top`,()=>[L(`object-position`,`right top`)]),e.utilities.suggest(`object-left-bottom`,()=>[]),e.utilities.static(`object-left-bottom`,()=>[L(`object-position`,`left bottom`)]),e.utilities.suggest(`object-right-bottom`,()=>[]),e.utilities.static(`object-right-bottom`,()=>[L(`object-position`,`right bottom`)]),e.utilities.suggest(`max-w-screen`,()=>[]),e.utilities.functional(`max-w-screen`,t=>{if(!t.value||t.value.kind===`arbitrary`)return;let n=e.theme.resolve(t.value.value,[`--breakpoint`]);if(n)return[L(`max-width`,n)]}),e.utilities.suggest(`overflow-ellipsis`,()=>[]),e.utilities.static(`overflow-ellipsis`,()=>[L(`text-overflow`,`ellipsis`)]),e.utilities.suggest(`decoration-slice`,()=>[]),e.utilities.static(`decoration-slice`,()=>[L(`-webkit-box-decoration-break`,`slice`),L(`box-decoration-break`,`slice`)]),e.utilities.suggest(`decoration-clone`,()=>[]),e.utilities.static(`decoration-clone`,()=>[L(`-webkit-box-decoration-break`,`clone`),L(`box-decoration-break`,`clone`)]),e.utilities.suggest(`flex-shrink`,()=>[]),e.utilities.functional(`flex-shrink`,e=>{if(!e.modifier){if(!e.value)return[L(`flex-shrink`,`1`)];if(e.value.kind===`arbitrary`||V(e.value.value))return[L(`flex-shrink`,e.value.value)]}}),e.utilities.suggest(`flex-grow`,()=>[]),e.utilities.functional(`flex-grow`,e=>{if(!e.modifier){if(!e.value)return[L(`flex-grow`,`1`)];if(e.value.kind===`arbitrary`||V(e.value.value))return[L(`flex-grow`,e.value.value)]}}),e.utilities.suggest(`order-none`,()=>[]),e.utilities.static(`order-none`,()=>[L(`order`,`0`)]),e.utilities.suggest(`break-words`,()=>[]),e.utilities.static(`break-words`,()=>[L(`overflow-wrap`,`break-word`)]);for(let[t,n]of[[`start`,`inset-inline-start`],[`end`,`inset-inline-end`]]){let r=function({negative:t}){return r=>{if(r.value===null)return;if(r.value.kind===`arbitrary`){if(r.modifier)return;let e=r.value.value;return[L(n,t?`calc(${e} * -1)`:e)]}let i=e.theme.resolve(r.value.fraction??r.value.value,[`--inset`,`--spacing`]);if(i===null&&r.value.fraction){let[e,t]=k(r.value.fraction,`/`);if(!V(e)||!V(t))return;i=`calc(${r.value.fraction} * 100%)`}if(i===null&&t){let t=e.theme.resolve(null,[`--spacing`]);if(t&&Kt(r.value.value)&&(i=`calc(${t} * -${r.value.value})`,i!==null))return[L(n,i)]}if(i===null){let t=e.theme.resolve(null,[`--spacing`]);t&&Kt(r.value.value)&&(i=`calc(${t} * ${r.value.value})`)}if(i!==null)return[L(n,t?`calc(${i} * -1)`:i)]}};e.utilities.static(`${t}-auto`,()=>[L(n,`auto`)]),e.utilities.static(`${t}-full`,()=>[L(n,`100%`)]),e.utilities.static(`-${t}-full`,()=>[L(n,`-100%`)]),e.utilities.static(`${t}-px`,()=>[L(n,`1px`)]),e.utilities.static(`-${t}-px`,()=>[L(n,`-1px`)]),e.utilities.functional(`-${t}`,r({negative:!0})),e.utilities.functional(t,r({negative:!1}))}}function Jr(e,t){let n=e.theme.screens||{},r=t.variants.get(`min`)?.order??0,i=[];for(let[e,a]of Object.entries(n)){let n=function(n){t.variants.static(e,e=>{e.nodes=[F(`@media`,l,e.nodes)]},{order:n})},o=t.variants.get(e),s=t.theme.resolveValue(e,[`--breakpoint`]);if(o&&s&&!t.theme.hasDefault(`--breakpoint-${e}`))continue;let c=!0;typeof a==`string`&&(c=!1);let l=Yr(a);c?i.push(n):n(r)}if(i.length!==0){for(let[,e]of t.variants.variants)e.order>r&&(e.order+=i.length);t.variants.compareFns=new Map(Array.from(t.variants.compareFns).map(([e,t])=>(e>r&&(e+=i.length),[e,t])));for(let[e,t]of i.entries())t(r+e+1)}}function Yr(e){return(Array.isArray(e)?e:[e]).map(e=>typeof e==`string`?{min:e}:e&&typeof e==`object`?e:null).map(e=>{if(e===null)return null;if(`raw`in e)return e.raw;let t=``;return e.max!==void 0&&(t+=`${e.max} >= `),t+=`width`,e.min!==void 0&&(t+=` >= ${e.min}`),`(${t})`}).filter(Boolean).join(`, `)}function Xr(e,t){let n=e.theme.aria||{},r=e.theme.supports||{},i=e.theme.data||{};if(Object.keys(n).length>0){let e=t.variants.get(`aria`),r=e?.applyFn,i=e?.compounds;t.variants.functional(`aria`,(e,t)=>{let i=t.value;return i&&i.kind===`named`&&i.value in n?r?.(e,{...t,value:{kind:`arbitrary`,value:n[i.value]}}):r?.(e,t)},{compounds:i})}if(Object.keys(r).length>0){let e=t.variants.get(`supports`),n=e?.applyFn,i=e?.compounds;t.variants.functional(`supports`,(e,t)=>{let i=t.value;return i&&i.kind===`named`&&i.value in r?n?.(e,{...t,value:{kind:`arbitrary`,value:r[i.value]}}):n?.(e,t)},{compounds:i})}if(Object.keys(i).length>0){let e=t.variants.get(`data`),n=e?.applyFn,r=e?.compounds;t.variants.functional(`data`,(e,t)=>{let r=t.value;return r&&r.kind===`named`&&r.value in i?n?.(e,{...t,value:{kind:`arbitrary`,value:i[r.value]}}):n?.(e,t)},{compounds:r})}}var Zr=/^[a-z]+$/;async function Qr({designSystem:e,base:t,ast:n,loadModule:r,sources:i}){let a=0,o=[],s=[];N(n,(e,t)=>{if(e.kind!==`at-rule`)return;let n=De(t);if(e.name===`@plugin`){if(n.parent!==null)throw Error("`@plugin` cannot be nested.");let t=e.params.slice(1,-1);if(t.length===0)throw Error("`@plugin` must have a path.");let r={};for(let t of e.nodes??[]){if(t.kind!==`declaration`)throw Error(`Unexpected \`@plugin\` option:
21
21
 
22
- ${je([t])}
22
+ ${Me([t])}
23
23
 
24
- \`@plugin\` options must be a flat list of declarations.`);if(t.value===void 0)continue;let e=t.value,n=A(e,`,`).map(e=>{if(e=e.trim(),e===`null`)return null;if(e===`true`)return!0;if(e===`false`)return!1;if(Number.isNaN(Number(e))){if(e[0]===`"`&&e[e.length-1]===`"`||e[0]===`'`&&e[e.length-1]===`'`)return e.slice(1,-1);if(e[0]===`{`&&e[e.length-1]===`}`)throw Error(`Unexpected \`@plugin\` option: Value of declaration \`${je([t]).trim()}\` is not supported.
24
+ \`@plugin\` options must be a flat list of declarations.`);if(t.value===void 0)continue;let e=t.value,n=k(e,`,`).map(e=>{if(e=e.trim(),e===`null`)return null;if(e===`true`)return!0;if(e===`false`)return!1;if(Number.isNaN(Number(e))){if(e[0]===`"`&&e[e.length-1]===`"`||e[0]===`'`&&e[e.length-1]===`'`)return e.slice(1,-1);if(e[0]===`{`&&e[e.length-1]===`}`)throw Error(`Unexpected \`@plugin\` option: Value of declaration \`${Me([t]).trim()}\` is not supported.
25
25
 
26
- Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(e);return e});r[t.property]=n.length===1?n[0]:n}return o.push([{id:t,base:n.context.base,reference:!!n.context.reference,src:e.src},Object.keys(r).length>0?r:null]),a|=4,N.Replace([])}if(e.name===`@config`){if(e.nodes.length>0)throw Error("`@config` cannot have a body.");if(n.parent!==null)throw Error("`@config` cannot be nested.");return s.push({id:e.params.slice(1,-1),base:n.context.base,reference:!!n.context.reference,src:e.src}),a|=4,N.Replace([])}}),qr(e);let c=e.resolveThemeValue;if(e.resolveThemeValue=function(r,o){return r.startsWith(`--`)?c(r,o):(a|=$r({designSystem:e,base:t,ast:n,sources:i,configs:[],pluginDetails:[]}),e.resolveThemeValue(r,o))},!o.length&&!s.length)return 0;let[l,u]=await Promise.all([Promise.all(s.map(async({id:e,base:t,reference:n,src:i})=>{let a=await r(e,t,`config`);return{path:e,base:a.base,config:a.module,reference:n,src:i}})),Promise.all(o.map(async([{id:e,base:t,reference:n,src:i},a])=>{let o=await r(e,t,`plugin`);return{path:e,base:o.base,plugin:o.module,options:a,reference:n,src:i}}))]);return a|=$r({designSystem:e,base:t,ast:n,sources:i,configs:l,pluginDetails:u}),a}function $r({designSystem:e,base:t,ast:n,sources:r,configs:i,pluginDetails:a}){let o=0,s=[...a.map(e=>{if(!e.options)return{config:{plugins:[e.plugin]},base:e.base,reference:e.reference,src:e.src};if(`__isOptionsFunction`in e.plugin)return{config:{plugins:[e.plugin(e.options)]},base:e.base,reference:e.reference,src:e.src};throw Error(`The plugin "${e.path}" does not accept options`)}),...i],{resolvedConfig:c}=Br(e,[{config:Rr(e.theme),base:t,reference:!0,src:void 0},...s,{config:{plugins:[Kr]},base:t,reference:!0,src:void 0}]),{resolvedConfig:l,replacedThemeKeys:u}=Br(e,s),d={designSystem:e,ast:n,resolvedConfig:c,featuresRef:{set current(e){o|=e}}},f=Sr({...d,referenceMode:!1,src:void 0}),p=e.resolveThemeValue;e.resolveThemeValue=function(e,t){if(e[0]===`-`&&e[1]===`-`)return p(e,t);let n=f.theme(e,void 0);if(Array.isArray(n)&&n.length===2)return n[0];if(Array.isArray(n))return n.join(`, `);if(typeof n==`object`&&n&&`DEFAULT`in n)return n.DEFAULT;if(typeof n==`string`)return n};for(let{handler:e,reference:t,src:n}of c.plugins)e(Sr({...d,referenceMode:t??!1,src:n}));if(ar(e,l,u),Er(e,l),Xr(l,e),Jr(l,e),Wr(l,e),!e.theme.prefix&&c.prefix){if(c.prefix.endsWith(`-`)&&(c.prefix=c.prefix.slice(0,-1),console.warn(`The prefix "${c.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only and is written as a variant before all utilities. We have fixed up the prefix for you. Remove the trailing \`-\` to silence this warning.`)),!Zr.test(c.prefix))throw Error(`The prefix "${c.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);e.theme.prefix=c.prefix}if(!e.important&&c.important===!0&&(e.important=!0),typeof c.important==`string`){let e=c.important;P(n,(t,n)=>{if(t.kind!==`at-rule`||t.name!==`@tailwind`||t.params!==`utilities`)return;let r=Ee(n);return r.parent?.kind===`rule`&&r.parent.selector===e?N.Stop:N.ReplaceStop(F(e,[t]))})}for(let t of c.blocklist)e.invalidCandidates.add(t);for(let e of c.content.files){if(`raw`in e)throw Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
26
+ Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(e);return e});r[t.property]=n.length===1?n[0]:n}return o.push([{id:t,base:n.context.base,reference:!!n.context.reference,src:e.src},Object.keys(r).length>0?r:null]),a|=4,M.Replace([])}if(e.name===`@config`){if(e.nodes.length>0)throw Error("`@config` cannot have a body.");if(n.parent!==null)throw Error("`@config` cannot be nested.");return s.push({id:e.params.slice(1,-1),base:n.context.base,reference:!!n.context.reference,src:e.src}),a|=4,M.Replace([])}}),qr(e);let c=e.resolveThemeValue;if(e.resolveThemeValue=function(r,o){return r.startsWith(`--`)?c(r,o):(a|=$r({designSystem:e,base:t,ast:n,sources:i,configs:[],pluginDetails:[]}),e.resolveThemeValue(r,o))},!o.length&&!s.length)return 0;let[l,u]=await Promise.all([Promise.all(s.map(async({id:e,base:t,reference:n,src:i})=>{let a=await r(e,t,`config`);return{path:e,base:a.base,config:a.module,reference:n,src:i}})),Promise.all(o.map(async([{id:e,base:t,reference:n,src:i},a])=>{let o=await r(e,t,`plugin`);return{path:e,base:o.base,plugin:o.module,options:a,reference:n,src:i}}))]);return a|=$r({designSystem:e,base:t,ast:n,sources:i,configs:l,pluginDetails:u}),a}function $r({designSystem:e,base:t,ast:n,sources:r,configs:i,pluginDetails:a}){let o=0,s=[...a.map(e=>{if(!e.options)return{config:{plugins:[e.plugin]},base:e.base,reference:e.reference,src:e.src};if(`__isOptionsFunction`in e.plugin)return{config:{plugins:[e.plugin(e.options)]},base:e.base,reference:e.reference,src:e.src};throw Error(`The plugin "${e.path}" does not accept options`)}),...i],{resolvedConfig:c}=Br(e,[{config:Rr(e.theme),base:t,reference:!0,src:void 0},...s,{config:{plugins:[Kr]},base:t,reference:!0,src:void 0}]),{resolvedConfig:l,replacedThemeKeys:u}=Br(e,s),d={designSystem:e,ast:n,resolvedConfig:c,featuresRef:{set current(e){o|=e}}},f=Sr({...d,referenceMode:!1,src:void 0}),p=e.resolveThemeValue;e.resolveThemeValue=function(e,t){if(e[0]===`-`&&e[1]===`-`)return p(e,t);let n=f.theme(e,void 0);if(Array.isArray(n)&&n.length===2)return n[0];if(Array.isArray(n))return n.join(`, `);if(typeof n==`object`&&n&&`DEFAULT`in n)return n.DEFAULT;if(typeof n==`string`)return n};for(let{handler:e,reference:t,src:n}of c.plugins)e(Sr({...d,referenceMode:t??!1,src:n}));if(ar(e,l,u),Er(e,l),Xr(l,e),Jr(l,e),Wr(l,e),!e.theme.prefix&&c.prefix){if(c.prefix.endsWith(`-`)&&(c.prefix=c.prefix.slice(0,-1),console.warn(`The prefix "${c.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only and is written as a variant before all utilities. We have fixed up the prefix for you. Remove the trailing \`-\` to silence this warning.`)),!Zr.test(c.prefix))throw Error(`The prefix "${c.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);e.theme.prefix=c.prefix}if(!e.important&&c.important===!0&&(e.important=!0),typeof c.important==`string`){let e=c.important;N(n,(t,n)=>{if(t.kind!==`at-rule`||t.name!==`@tailwind`||t.params!==`utilities`)return;let r=De(n);return r.parent?.kind===`rule`&&r.parent.selector===e?M.Stop:M.ReplaceStop(P(e,[t]))})}for(let t of c.blocklist)e.invalidCandidates.add(t);for(let e of c.content.files){if(`raw`in e)throw Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
27
27
 
28
28
  ${JSON.stringify(e,null,2)}
29
29
 
30
- This feature is not currently supported.`);let t=!1;e.pattern[0]==`!`&&(t=!0,e.pattern=e.pattern.slice(1)),r.push({...e,negated:t})}return o}function ei({ast:e}){let t=new O(e=>_(e.code)),n=new O(e=>({url:e.file,content:e.code,ignore:!1})),r={file:null,sources:[],mappings:[]};P(e,e=>{if(!e.src||!e.dst)return;let i=n.get(e.src[0]);if(!i.content)return;let a=t.get(e.src[0]),o=t.get(e.dst[0]),s=i.content.slice(e.src[1],e.src[2]),c=0;for(let t of s.split(`
31
- `)){if(t.trim()!==``){let t=a.find(e.src[1]+c),n=o.find(e.dst[1]);r.mappings.push({name:null,originalPosition:{source:i,...t},generatedPosition:n})}c+=t.length,c+=1}let l=a.find(e.src[2]),u=o.find(e.dst[2]);r.mappings.push({name:null,originalPosition:{source:i,...l},generatedPosition:u})});for(let e of t.keys())r.sources.push(n.get(e));return r.mappings.sort((e,t)=>e.generatedPosition.line-t.generatedPosition.line||e.generatedPosition.column-t.generatedPosition.column||(e.originalPosition?.line??0)-(t.originalPosition?.line??0)||(e.originalPosition?.column??0)-(t.originalPosition?.column??0)),r}var ti=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function ni(e){let t=e.indexOf(`{`);if(t===-1)return[e];let n=[],r=e.slice(0,t),i=e.slice(t),a=0,o=i.lastIndexOf(`}`);for(let e=0;e<i.length;e++){let t=i[e];if(t===`{`)a++;else if(t===`}`&&(a--,a===0)){o=e;break}}if(o===-1)throw Error(`The pattern \`${e}\` is not balanced.`);let s=i.slice(1,o),c=i.slice(o+1),l;l=ri(s)?ii(s):A(s,`,`),l=l.flatMap(e=>ni(e));let u=ni(c);for(let e of u)for(let t of l)n.push(r+t+e);return n}function ri(e){return ti.test(e)}function ii(e){let t=e.match(ti);if(!t)return[e];let[,n,r,i]=t,a=i?parseInt(i,10):void 0,o=[];if(/^-?\d+$/.test(n)&&/^-?\d+$/.test(r)){let e=parseInt(n,10),t=parseInt(r,10);if(a===void 0&&(a=e<=t?1:-1),a===0)throw Error(`Step cannot be zero in sequence expansion.`);let i=e<t;i&&a<0&&(a=-a),!i&&a>0&&(a=-a);for(let n=e;i?n<=t:n>=t;n+=a)o.push(n.toString())}return o}function ai(e,t){let n=new Set,r=new Set,i=[];function a(o,s=[]){if(e.has(o)&&!n.has(o)){r.has(o)&&t.onCircularDependency?.(s,o),r.add(o);for(let t of e.get(o)??[])s.push(o),a(t,s),s.pop();n.add(o),r.delete(o),i.push(o)}}for(let t of e.keys())a(t);return i}var oi=/^[a-z]+$/;function si(){throw Error("No `loadModule` function provided to `compile`")}function Z(){throw Error("No `loadStylesheet` function provided to `compile`")}function ci(e){let t=0,n=null;for(let r of A(e,` `))r===`reference`?t|=2:r===`inline`?t|=1:r==="default"?t|=4:r===`static`?t|=8:r.startsWith(`prefix(`)&&r.endsWith(`)`)&&(n=r.slice(7,-1));return[t,n]}async function Q(e,{base:t=``,from:n,loadModule:r=si,loadStylesheet:i=Z}={}){let a=0;e=[we({base:t},e)],a|=await tr(e,t,i,0,n!==void 0);let o=null,s=new D,c=new Map,l=new Map,u=[],d=null,f=null,p=[],m=[],h=[],g=[],_=null;P(e,(e,t)=>{if(e.kind!==`at-rule`)return;let n=Ee(t);if(e.name===`@tailwind`&&(e.params===`utilities`||e.params.startsWith(`utilities`))){if(f!==null||n.context.reference)return N.Replace([]);let t=A(e.params,` `);for(let e of t)if(e.startsWith(`source(`)){let t=e.slice(7,-1);if(t===`none`){_=t;continue}if(t[0]===`"`&&t[t.length-1]!==`"`||t[0]===`'`&&t[t.length-1]!==`'`||t[0]!==`'`&&t[0]!==`"`)throw Error("`source(…)` paths must be quoted.");_={base:n.context.sourceBase??n.context.base,pattern:t.slice(1,-1)}}f=e,a|=16}if(e.name===`@utility`){if(n.parent!==null)throw Error("`@utility` cannot be nested.");if(e.nodes.length===0)throw Error(`\`@utility ${e.params}\` is empty. Utilities should include at least one property.`);let t=on(e);if(t===null){if(!e.params.endsWith(`-*`)){if(e.params.endsWith(`*`))throw Error(`\`@utility ${e.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`);if(e.params.includes(`*`))throw Error(`\`@utility ${e.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`)}throw Error(`\`@utility ${e.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`)}u.push(t)}if(e.name===`@source`){if(e.nodes.length>0)throw Error("`@source` cannot have a body.");if(n.parent!==null)throw Error("`@source` cannot be nested.");let t=!1,r=!1,i=e.params;if(i[0]===`n`&&i.startsWith(`not `)&&(t=!0,i=i.slice(4)),i[0]===`i`&&i.startsWith(`inline(`)&&(r=!0,i=i.slice(7,-1).trim()),i[0]===`"`&&i[i.length-1]!==`"`||i[0]===`'`&&i[i.length-1]!==`'`||i[0]!==`'`&&i[0]!==`"`)throw Error("`@source` paths must be quoted.");let a=i.slice(1,-1);if(r){let e=t?g:h,n=A(a,` `);for(let t of n)for(let n of ni(t))e.push(n)}else m.push({base:n.context.base,pattern:a,negated:t});return N.ReplaceSkip([])}if(e.name===`@variant`&&(n.parent===null?e.nodes.length===0?e.name=`@custom-variant`:(P(e.nodes,t=>{if(t.kind===`at-rule`&&t.name===`@slot`)return e.name=`@custom-variant`,N.Stop}),e.name===`@variant`&&p.push(e)):p.push(e)),e.name===`@custom-variant`){if(n.parent!==null)throw Error("`@custom-variant` cannot be nested.");let[t,r]=A(e.params,` `);if(!In.test(t))throw Error(`\`@custom-variant ${t}\` defines an invalid variant name. Variants should only contain alphanumeric, dashes, or underscore characters and start with a lowercase letter or number.`);if(e.nodes.length>0&&r)throw Error(`\`@custom-variant ${t}\` cannot have both a selector and a body.`);if(e.nodes.length===0){if(!r)throw Error(`\`@custom-variant ${t}\` has no selector or body.`);let e=A(r.slice(1,-1),`,`);if(e.length===0||e.some(e=>e.trim()===``))throw Error(`\`@custom-variant ${t} (${e.join(`,`)})\` selector is invalid.`);let n=[],i=[];for(let t of e)t=t.trim(),t[0]===`@`?n.push(t):i.push(t);c.set(t,e=>{e.variants.static(t,e=>{let t=[];i.length>0&&t.push(F(i.join(`, `),e.nodes));for(let r of n)t.push(L(r,e.nodes));e.nodes=t},{compounds:Rn([...i,...n])})}),l.set(t,new Set)}else{let n=new Set;P(e.nodes,e=>{e.kind===`at-rule`&&e.name===`@variant`&&n.add(e.params)}),c.set(t,n=>{n.variants.fromAst(t,e.nodes,n)}),l.set(t,n)}return N.ReplaceSkip([])}if(e.name===`@media`){let t=A(e.params,` `),r=[];for(let i of t)if(i.startsWith(`source(`)){let t=i.slice(7,-1);P(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@tailwind`&&e.params===`utilities`)return e.params+=` source(${t})`,N.ReplaceStop([we({sourceBase:n.context.base},[e])])})}else if(i.startsWith(`theme(`)){let t=i.slice(6,-1),n=t.includes(`reference`);P(e.nodes,e=>{if(e.kind!==`context`){if(e.kind!==`at-rule`){if(n)throw Error('Files imported with `@import "…" theme(reference)` must only contain `@theme` blocks.\nUse `@reference "…";` instead.');return N.Continue}if(e.name===`@theme`)return e.params+=` `+t,N.Skip}})}else if(i.startsWith(`prefix(`)){let t=i.slice(7,-1);P(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@theme`)return e.params+=` prefix(${t})`,N.Skip})}else i===`important`?o=!0:i===`reference`?e.nodes=[we({reference:!0},e.nodes)]:r.push(i);if(r.length>0)e.params=r.join(` `);else if(t.length>0)return N.Replace(e.nodes);return N.Continue}if(e.name===`@theme`){let[t,r]=ci(e.params);if(a|=64,n.context.reference&&(t|=2),r){if(!oi.test(r))throw Error(`The prefix "${r}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);s.prefix=r}return P(e.nodes,n=>{if(n.kind===`at-rule`&&n.name===`@keyframes`)return s.addKeyframes(n),N.Skip;if(n.kind===`comment`)return;if(n.kind===`declaration`&&n.property.startsWith(`--`)){s.add(w(n.property),n.value??``,t,n.src);return}let r=je([I(e.name,e.params,[n])]).split(`
30
+ This feature is not currently supported.`);let t=!1;e.pattern[0]==`!`&&(t=!0,e.pattern=e.pattern.slice(1)),r.push({...e,negated:t})}return o}function ei({ast:e}){let t=new O(e=>_(e.code)),n=new O(e=>({url:e.file,content:e.code,ignore:!1})),r={file:null,sources:[],mappings:[]};N(e,e=>{if(!e.src||!e.dst)return;let i=n.get(e.src[0]);if(!i.content)return;let a=t.get(e.src[0]),o=t.get(e.dst[0]),s=i.content.slice(e.src[1],e.src[2]),c=0;for(let t of s.split(`
31
+ `)){if(t.trim()!==``){let t=a.find(e.src[1]+c),n=o.find(e.dst[1]);r.mappings.push({name:null,originalPosition:{source:i,...t},generatedPosition:n})}c+=t.length,c+=1}let l=a.find(e.src[2]),u=o.find(e.dst[2]);r.mappings.push({name:null,originalPosition:{source:i,...l},generatedPosition:u})});for(let e of t.keys())r.sources.push(n.get(e));return r.mappings.sort((e,t)=>e.generatedPosition.line-t.generatedPosition.line||e.generatedPosition.column-t.generatedPosition.column||(e.originalPosition?.line??0)-(t.originalPosition?.line??0)||(e.originalPosition?.column??0)-(t.originalPosition?.column??0)),r}var ti=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function ni(e){let t=e.indexOf(`{`);if(t===-1)return[e];let n=[],r=e.slice(0,t),i=e.slice(t),a=0,o=i.lastIndexOf(`}`);for(let e=0;e<i.length;e++){let t=i[e];if(t===`{`)a++;else if(t===`}`&&(a--,a===0)){o=e;break}}if(o===-1)throw Error(`The pattern \`${e}\` is not balanced.`);let s=i.slice(1,o),c=i.slice(o+1),l;l=ri(s)?ii(s):k(s,`,`),l=l.flatMap(e=>ni(e));let u=ni(c);for(let e of u)for(let t of l)n.push(r+t+e);return n}function ri(e){return ti.test(e)}function ii(e){let t=e.match(ti);if(!t)return[e];let[,n,r,i]=t,a=i?parseInt(i,10):void 0,o=[];if(/^-?\d+$/.test(n)&&/^-?\d+$/.test(r)){let e=parseInt(n,10),t=parseInt(r,10);if(a===void 0&&(a=e<=t?1:-1),a===0)throw Error(`Step cannot be zero in sequence expansion.`);let i=e<t;i&&a<0&&(a=-a),!i&&a>0&&(a=-a);for(let n=e;i?n<=t:n>=t;n+=a)o.push(n.toString())}return o}function ai(e,t){let n=new Set,r=new Set,i=[];function a(o,s=[]){if(e.has(o)&&!n.has(o)){r.has(o)&&t.onCircularDependency?.(s,o),r.add(o);for(let t of e.get(o)??[])s.push(o),a(t,s),s.pop();n.add(o),r.delete(o),i.push(o)}}for(let t of e.keys())a(t);return i}var oi=/^[a-z]+$/;function si(){throw Error("No `loadModule` function provided to `compile`")}function ci(){throw Error("No `loadStylesheet` function provided to `compile`")}function li(e){let t=0,n=null;for(let r of k(e,` `))r===`reference`?t|=2:r===`inline`?t|=1:r==="default"?t|=4:r===`static`?t|=8:r.startsWith(`prefix(`)&&r.endsWith(`)`)&&(n=r.slice(7,-1));return[t,n]}async function ui(e,{base:t=``,from:n,loadModule:r=si,loadStylesheet:i=ci}={}){let a=0;e=[Te({base:t},e)],a|=await tr(e,t,i,0,n!==void 0);let o=null,s=new D,c=new Map,l=new Map,u=[],d=null,f=null,p=[],m=[],h=[],g=[],_=null;N(e,(e,t)=>{if(e.kind!==`at-rule`)return;let n=De(t);if(e.name===`@tailwind`&&(e.params===`utilities`||e.params.startsWith(`utilities`))){if(f!==null||n.context.reference)return M.Replace([]);let t=k(e.params,` `);for(let e of t)if(e.startsWith(`source(`)){let t=e.slice(7,-1);if(t===`none`){_=t;continue}if(t[0]===`"`&&t[t.length-1]!==`"`||t[0]===`'`&&t[t.length-1]!==`'`||t[0]!==`'`&&t[0]!==`"`)throw Error("`source(…)` paths must be quoted.");_={base:n.context.sourceBase??n.context.base,pattern:t.slice(1,-1)}}f=e,a|=16}if(e.name===`@utility`){if(n.parent!==null)throw Error("`@utility` cannot be nested.");if(e.nodes.length===0)throw Error(`\`@utility ${e.params}\` is empty. Utilities should include at least one property.`);let t=sn(e);if(t===null){if(!e.params.endsWith(`-*`)){if(e.params.endsWith(`*`))throw Error(`\`@utility ${e.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`);if(e.params.includes(`*`))throw Error(`\`@utility ${e.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`)}throw Error(`\`@utility ${e.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`)}u.push(t)}if(e.name===`@source`){if(e.nodes.length>0)throw Error("`@source` cannot have a body.");if(n.parent!==null)throw Error("`@source` cannot be nested.");let t=!1,r=!1,i=e.params;if(i[0]===`n`&&i.startsWith(`not `)&&(t=!0,i=i.slice(4)),i[0]===`i`&&i.startsWith(`inline(`)&&(r=!0,i=i.slice(7,-1).trim()),i[0]===`"`&&i[i.length-1]!==`"`||i[0]===`'`&&i[i.length-1]!==`'`||i[0]!==`'`&&i[0]!==`"`)throw Error("`@source` paths must be quoted.");let a=i.slice(1,-1);if(r){let e=t?g:h,n=k(a,` `);for(let t of n)for(let n of ni(t))e.push(n)}else m.push({base:n.context.base,pattern:a,negated:t});return M.ReplaceSkip([])}if(e.name===`@variant`&&(n.parent===null?e.nodes.length===0?e.name=`@custom-variant`:(N(e.nodes,t=>{if(t.kind===`at-rule`&&t.name===`@slot`)return e.name=`@custom-variant`,M.Stop}),e.name===`@variant`&&p.push(e)):p.push(e)),e.name===`@custom-variant`){if(n.parent!==null)throw Error("`@custom-variant` cannot be nested.");let[t,r]=k(e.params,` `);if(!Vn.test(t))throw Error(`\`@custom-variant ${t}\` defines an invalid variant name. Variants should only contain alphanumeric, dashes, or underscore characters and start with a lowercase letter or number.`);if(e.nodes.length>0&&r)throw Error(`\`@custom-variant ${t}\` cannot have both a selector and a body.`);if(e.nodes.length===0){if(!r)throw Error(`\`@custom-variant ${t}\` has no selector or body.`);let e=k(r.slice(1,-1),`,`);if(e.length===0||e.some(e=>e.trim()===``))throw Error(`\`@custom-variant ${t} (${e.join(`,`)})\` selector is invalid.`);let n=[],i=[];for(let t of e)t=t.trim(),t[0]===`@`?n.push(t):i.push(t);c.set(t,e=>{e.variants.static(t,e=>{let t=[];i.length>0&&t.push(P(i.join(`, `),e.nodes));for(let r of n)t.push(I(r,e.nodes));e.nodes=t},{compounds:Un([...i,...n])})}),l.set(t,new Set)}else{let n=new Set;N(e.nodes,e=>{e.kind===`at-rule`&&e.name===`@variant`&&n.add(e.params)}),c.set(t,n=>{n.variants.fromAst(t,e.nodes,n)}),l.set(t,n)}return M.ReplaceSkip([])}if(e.name===`@media`){let t=k(e.params,` `),r=[];for(let i of t)if(i.startsWith(`source(`)){let t=i.slice(7,-1);N(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@tailwind`&&e.params===`utilities`)return e.params+=` source(${t})`,M.ReplaceStop([Te({sourceBase:n.context.base},[e])])})}else if(i.startsWith(`theme(`)){let t=i.slice(6,-1),n=t.includes(`reference`);N(e.nodes,e=>{if(e.kind!==`context`){if(e.kind!==`at-rule`){if(n)throw Error('Files imported with `@import "…" theme(reference)` must only contain `@theme` blocks.\nUse `@reference "…";` instead.');return M.Continue}if(e.name===`@theme`)return e.params+=` `+t,M.Skip}})}else if(i.startsWith(`prefix(`)){let t=i.slice(7,-1);N(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@theme`)return e.params+=` prefix(${t})`,M.Skip})}else i===`important`?o=!0:i===`reference`?e.nodes=[Te({reference:!0},e.nodes)]:r.push(i);if(r.length>0)e.params=r.join(` `);else if(t.length>0)return M.Replace(e.nodes);return M.Continue}if(e.name===`@theme`){let[t,r]=li(e.params);if(a|=64,n.context.reference&&(t|=2),r){if(!oi.test(r))throw Error(`The prefix "${r}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);s.prefix=r}return N(e.nodes,n=>{if(n.kind===`at-rule`&&n.name===`@keyframes`)return s.addKeyframes(n),M.Skip;if(n.kind===`comment`)return;if(n.kind===`declaration`&&n.property.startsWith(`--`)){s.add(w(n.property),n.value??``,t,n.src);return}let r=Me([F(e.name,e.params,[n])]).split(`
32
32
  `).map((e,t,n)=>`${t===0||t>=n.length-2?` `:`>`} ${e}`).join(`
33
33
  `);throw Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
34
34
 
35
- ${r}`)}),d?N.ReplaceSkip([]):(d=F(`:root, :host`,[]),d.src=e.src,N.ReplaceSkip(d))}});let v=Un(s,f?.src);if(o&&(v.important=o),g.length>0)for(let e of g)v.invalidCandidates.add(e);a|=await Qr({designSystem:v,base:t,ast:e,loadModule:r,sources:m});for(let e of c.keys())v.variants.static(e,()=>{});for(let e of ai(l,{onCircularDependency(e,t){let n=je(e.map((n,r)=>I(`@custom-variant`,n,[I(`@variant`,e[r+1]??t,[])]))).replaceAll(`;`,` { … }`).replace(`@custom-variant ${t} {`,`@custom-variant ${t} { /* \u2190 */`);throw Error(`Circular dependency detected in custom variants:
35
+ ${r}`)}),d?M.ReplaceSkip([]):(d=P(`:root, :host`,[]),d.src=e.src,M.ReplaceSkip(d))}});let v=q(s,f?.src);if(o&&(v.important=o),g.length>0)for(let e of g)v.invalidCandidates.add(e);a|=await Qr({designSystem:v,base:t,ast:e,loadModule:r,sources:m});for(let e of c.keys())v.variants.static(e,()=>{});for(let e of ai(l,{onCircularDependency(e,t){let n=Me(e.map((n,r)=>F(`@custom-variant`,n,[F(`@variant`,e[r+1]??t,[])]))).replaceAll(`;`,` { … }`).replace(`@custom-variant ${t} {`,`@custom-variant ${t} { /* \u2190 */`);throw Error(`Circular dependency detected in custom variants:
36
36
 
37
- ${n}`)}}))c.get(e)?.(v);for(let e of u)e(v);if(d){let t=[];for(let[e,n]of v.theme.entries()){if(n.options&2)continue;let r=R(C(e),n.value);r.src=n.src,t.push(r)}let n=v.theme.getKeyframes();for(let t of n)e.push(we({theme:!0},[z([t])]));d.nodes=[we({theme:!0},t)]}if(a|=Hn(e,v),a|=On(e,v),a|=$n(e,v),f){let e=f;e.kind=`context`,e.context={}}return P(e,e=>{if(e.kind===`at-rule`)return e.name===`@utility`?N.Replace([]):N.Skip}),{designSystem:v,ast:e,sources:m,root:_,utilitiesNode:f,features:a,inlineCandidates:h}}async function li(e,t={}){let{designSystem:n,ast:r,sources:i,root:a,utilitiesNode:o,features:s,inlineCandidates:c}=await Q(e,t);r.unshift(Ce(`! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com `));function l(e){n.invalidCandidates.add(e)}let u=new Set,d=null,f=0,p=!1;for(let e of c)n.invalidCandidates.has(e)||(u.add(e),p=!0);return{sources:i,root:a,features:s,build(i){if(s===0)return e;if(!o)return d??=De(r,n,t.polyfills),d;let a=p,c=!1;p=!1;let m=u.size;for(let e of i)if(!n.invalidCandidates.has(e)){if(e[0]===`-`&&e[1]===`-`){let t=n.theme.markUsedVariable(e);a||=t,c||=t}else u.add(e),a||=u.size!==m}if(!a)return d??=De(r,n,t.polyfills),d;let h=Kn(u,n,{onInvalidCandidate:l}).astNodes;return t.from&&P(h,e=>{e.src??=o.src}),!c&&f===h.length?(d??=De(r,n,t.polyfills),d):(f=h.length,o.nodes=h,d=De(r,n,t.polyfills),d)}}}async function ui(e,t={}){let n=y(e,{from:t.from}),r=await li(n,t),i=n,a=e;return{...r,build(e){let n=r.build(e);return n===i||(a=je(n,!!t.from),i=n),a},buildSourceMap(){return ei({ast:i})}}}var di={index:`@layer theme, base, components, utilities;
37
+ ${n}`)}}))c.get(e)?.(v);for(let e of u)e(v);if(d){let t=[];for(let[e,n]of v.theme.entries()){if(n.options&2)continue;let r=L(C(e),n.value);r.src=n.src,t.push(r)}let n=v.theme.getKeyframes();for(let t of n)e.push(Te({theme:!0},[R([t])]));d.nodes=[Te({theme:!0},t)]}if(a|=Kn(e,v),a|=jn(e,v),a|=X(e,v),f){let e=f;e.kind=`context`,e.context={}}return N(e,e=>{if(e.kind===`at-rule`)return e.name===`@utility`?M.Replace([]):M.Skip}),{designSystem:v,ast:e,sources:m,root:_,utilitiesNode:f,features:a,inlineCandidates:h}}async function di(e,t={}){let{designSystem:n,ast:r,sources:i,root:a,utilitiesNode:o,features:s,inlineCandidates:c}=await ui(e,t);r.unshift(we(`! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com `));function l(e){n.invalidCandidates.add(e)}let u=new Set,d=null,f=0,p=!1;for(let e of c)n.invalidCandidates.has(e)||(u.add(e),p=!0);return{sources:i,root:a,features:s,build(i){if(s===0)return e;if(!o)return d??=Oe(r,n,t.polyfills),d;let a=p,c=!1;p=!1;let m=u.size;for(let e of i)if(!n.invalidCandidates.has(e)){if(e[0]===`-`&&e[1]===`-`){let t=n.theme.markUsedVariable(e);a||=t,c||=t}else u.add(e),a||=u.size!==m}if(!a)return d??=Oe(r,n,t.polyfills),d;let h=J(u,n,{onInvalidCandidate:l}).astNodes;return t.from&&N(h,e=>{e.src??=o.src}),!c&&f===h.length?(d??=Oe(r,n,t.polyfills),d):(f=h.length,o.nodes=h,d=Oe(r,n,t.polyfills),d)}}}async function fi(e,t={}){let n=y(e,{from:t.from}),r=await di(n,t),i=n,a=e;return{...r,build(e){let n=r.build(e);return n===i||(a=Me(n,!!t.from),i=n),a},buildSourceMap(){return ei({ast:i})}}}var pi={index:`@layer theme, base, components, utilities;
38
38
 
39
39
  @import './theme.css' layer(theme);
40
40
  @import './preflight.css' layer(base);
@@ -948,31 +948,31 @@ input:where([type='button'], [type='reset'], [type='submit']),
948
948
  --max-width-prose: 65ch;
949
949
  }
950
950
  `,utilities:`@tailwind utilities;
951
- `},fi=class{start(e){performance.mark(`${e} (start)`)}end(e,t){performance.mark(`${e} (end)`),performance.measure(e,{start:`${e} (start)`,end:`${e} (end)`,detail:t})}hit(e,t){performance.mark(e,{detail:t})}error(e){throw performance.mark(`(error)`,{detail:{error:`${e}`}}),e}},pi=`text/tailwindcss`,mi,hi=new Set,gi=``,_i=document.createElement(`style`),vi=Promise.resolve(),yi=1,$=new fi;async function bi(){$.start(`Create compiler`),$.start(`Reading Stylesheets`);let e=document.querySelectorAll(`style[type="${pi}"]`),t=``;for(let n of e)Ei(n),t+=n.textContent+`
952
- `;if(t.includes(`@import`)||(t=`@import "tailwindcss";${t}`),$.end(`Reading Stylesheets`,{size:t.length,changed:gi!==t}),gi!==t){gi=t,$.start(`Compile CSS`);try{mi=await ui(t,{base:`/`,loadStylesheet:xi,loadModule:Si})}finally{$.end(`Compile CSS`),$.end(`Create compiler`)}hi.clear()}}async function xi(e,t){function n(){if(e===`tailwindcss`)return{path:`virtual:tailwindcss/index.css`,base:t,content:di.index};if(e===`tailwindcss/preflight`||e===`tailwindcss/preflight.css`||e===`./preflight.css`)return{path:`virtual:tailwindcss/preflight.css`,base:t,content:di.preflight};if(e===`tailwindcss/theme`||e===`tailwindcss/theme.css`||e===`./theme.css`)return{path:`virtual:tailwindcss/theme.css`,base:t,content:di.theme};if(e===`tailwindcss/utilities`||e===`tailwindcss/utilities.css`||e===`./utilities.css`)return{path:`virtual:tailwindcss/utilities.css`,base:t,content:di.utilities};throw Error(`The browser build does not support @import for "${e}"`)}try{let r=n();return $.hit(`Loaded stylesheet`,{id:e,base:t,size:r.content.length}),r}catch(n){throw $.hit(`Failed to load stylesheet`,{id:e,base:t,error:n.message??n}),n}}async function Si(){throw Error(`The browser build does not support plugins or config files.`)}async function Ci(e){if(!mi)return;let t=new Set;$.start(`Collect classes`);for(let e of document.querySelectorAll(`[class]`))for(let n of e.classList)hi.has(n)||(hi.add(n),t.add(n));$.end(`Collect classes`,{count:t.size}),(t.size!==0||e!==`incremental`)&&($.start(`Build utilities`),_i.textContent=mi.build(Array.from(t)),$.end(`Build utilities`))}function wi(e){async function t(){if(!mi&&e!==`full`)return;let t=yi++;$.start(`Build #${t} (${e})`),e===`full`&&await bi(),$.start(`Build`),await Ci(e),$.end(`Build`),$.end(`Build #${t} (${e})`)}vi=vi.then(t).catch(e=>$.error(e))}var Ti=new MutationObserver(()=>wi(`full`));function Ei(e){Ti.observe(e,{attributes:!0,attributeFilter:[`type`],characterData:!0,subtree:!0,childList:!0})}new MutationObserver(e=>{let t=0,n=0;for(let r of e){for(let e of r.addedNodes)e.nodeType===Node.ELEMENT_NODE&&e.tagName===`STYLE`&&e.getAttribute(`type`)===pi&&(Ei(e),t++);for(let e of r.addedNodes)e.nodeType===1&&e!==_i&&n++;r.type===`attributes`&&n++}if(t>0)return wi(`full`);if(n>0)return wi(`incremental`)}).observe(document.documentElement,{attributes:!0,attributeFilter:[`class`],childList:!0,subtree:!0}),wi(`full`),document.head.append(_i)})();var e=new WeakMap;function t(t,r){let i=e.get(t);i||e.set(t,i=new Set),!i.has(r)&&(i.add(r),console.warn(`[monowind] ${r}`,n(t)))}function n(e){if(!globalThis.process?.versions?.node)return e;let t=e.id?`#${e.id}`:``,n=e.classList.length?`.${Array.from(e.classList).join(`.`)}`:``;return`<${e.tagName.toLowerCase()}${t}${n}>`}var r=new Map,i=new Set;function a(e){let t=e.tag.toLowerCase();if(!t.includes(`-`)){console.warn(`[monowind] registerLeafRenderer: "${e.tag}" is not a custom-element tag name (needs a hyphen); ignored.`);return}r.has(t)&&console.warn(`[monowind] registerLeafRenderer: replacing existing renderer for <${t}> (last registration wins).`),r.set(t,{...e,tag:t}),d()}function o(){d()}function s(e){return r.get(e.toLowerCase())}function c(){let e=new Set;for(let t of r.values())for(let n of t.observedAttributes??[])e.add(n.toLowerCase());return[...e]}function l(e){return i.add(e),()=>i.delete(e)}function u(e,n){try{return e.render(n)}catch(r){return t(n,`<${e.tag}> renderer threw; rendering nothing. ${String(r)}`),null}}function d(){for(let e of i)e()}var f=new WeakMap,p=[],m=new Map;function h(e,t,n){let r=f.get(e);f.set(e,t);let i=m.get(e);if(i){if(t!==i.toValue){let n=v(i);return m.delete(e),p.push({el:e,from:n,to:t}),n}let n=v(i);return n===i.toValue&&m.delete(e),n}return r!==void 0&&r!==t&&n.transitionDuration.split(`,`).some(e=>parseFloat(e)>0)?(p.push({el:e,from:r,to:t}),r):t}function g(e){let t=!1;for(let n=p.length-1;n>=0;n--){let{el:r,from:i,to:a}=p[n];if(!r.isConnected){p.splice(n,1);continue}if(!e.contains(r))continue;p.splice(n,1),t=!0;let o=b(getComputedStyle(r),`background-color`),s=w(i),c=w(a);o&&s&&c&&m.set(r,{from:s,to:c,toValue:a,start:performance.now()+o.delay,duration:o.duration,easing:o.easing})}return t}function _(){let e=performance.now();for(let[t,n]of m)(!t.isConnected||e>=n.start+n.duration)&&m.delete(t);return m.size>0}function v(e){let t=(performance.now()-e.start)/e.duration;if(t>=1)return e.toValue;let n=t<=0?0:e.easing(t);return E(T(e.from,e.to,n))}var y={ease:[.25,.1,.25,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]};function b(e,t){let n=e.transitionProperty.split(`,`).map(e=>e.trim()),r=-1;for(let e=0;e<n.length;e++)(n[e]===t||n[e]===`all`)&&(r=e);if(r<0)return null;let i=e=>{let t=e.split(`,`).map(e=>e.trim());return t[r%t.length]??``},a=x(i(e.transitionDuration));return a<=0?null:{duration:a*1e3,delay:x(i(e.transitionDelay))*1e3,easing:S(i(e.transitionTimingFunction))}}function x(e){let t=parseFloat(e);return Number.isFinite(t)?e.endsWith(`ms`)?t/1e3:t:0}function S(e){if(e===`linear`)return e=>e;let t=y[e];if(t)return C(...t);let n=e.match(/^cubic-bezier\(([^)]+)\)$/);if(n){let[e,t,r,i]=n[1].split(`,`).map(e=>parseFloat(e));if([e,t,r,i].every(e=>Number.isFinite(e)))return C(e,t,r,i)}return e=>e}function C(e,t,n,r){let i=(e,t,n)=>3*e*n*(1-n)*(1-n)+3*t*n*n*(1-n)+n*n*n;return a=>{let o=0,s=1;for(let t=0;t<24;t++){let t=(o+s)/2;i(e,n,t)<a?o=t:s=t}return i(t,r,(o+s)/2)}}function w(e){if(e===``||e===`transparent`)return{r:0,g:0,b:0,a:0,legacy:!0};let t=e.match(/^rgba?\(([^)]+)\)$/);if(t){let e=t[1].split(/[\s,/]+/).map(e=>parseFloat(e));return e.length<3||e.some(e=>!Number.isFinite(e))?null:{r:e[0]/255,g:e[1]/255,b:e[2]/255,a:e[3]??1,legacy:!0}}if(t=e.match(/^color\(srgb ([^)]+)\)$/),t){let e=t[1].split(/[\s/]+/).map(e=>parseFloat(e));return e.length<3||e.slice(0,3).some(e=>!Number.isFinite(e))?null:{r:e[0],g:e[1],b:e[2],a:e[3]??1,legacy:!1}}if(t=e.match(/^okl(ch|ab)\(([^)]+)\)$/),t){let e=t[1]===`ch`,n=t[2].replaceAll(`none`,`0`).split(/[\s/]+/).map(e=>parseFloat(e));if(n.length<3||n.some(e=>!Number.isFinite(e)))return null;let[r,i,a]=n;return{...A(r,e?i*Math.cos(a*Math.PI/180):i,e?i*Math.sin(a*Math.PI/180):a),a:n[3]??1,legacy:!1}}return null}function T(e,t,n){let r=e.a+(t.a-e.a)*n,i=(i,a)=>{let o=i*e.a+(a*t.a-i*e.a)*n;return r===0?0:o/r};if(e.legacy&&t.legacy)return{r:i(e.r,t.r),g:i(e.g,t.g),b:i(e.b,t.b),a:r,legacy:!0};let a=k(e.r,e.g,e.b),o=k(t.r,t.g,t.b);return{...A(i(a.l,o.l),i(a.a,o.a),i(a.b,o.b)),a:r,legacy:!1}}function E(e){let t=e=>Math.round(Math.min(1,Math.max(0,e))*255),n=Math.round(Math.min(1,Math.max(0,e.a))*1e3)/1e3;return`rgba(${t(e.r)}, ${t(e.g)}, ${t(e.b)}, ${n})`}function D(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function O(e){return e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055}function k(e,t,n){let r=D(e),i=D(t),a=D(n),o=Math.cbrt(.4122214708*r+.5363325363*i+.0514459929*a),s=Math.cbrt(.2119034982*r+.6806995451*i+.1073969566*a),c=Math.cbrt(.0883024619*r+.2817188376*i+.6299787005*a);return{l:.2104542553*o+.793617785*s-.0040720468*c,a:1.9779984951*o-2.428592205*s+.4505937099*c,b:.0259040371*o+.7827717662*s-.808675766*c}}function A(e,t,n){let r=(e+.3963377774*t+.2158037573*n)**3,i=(e-.1055613458*t-.0638541728*n)**3,a=(e-.0894841775*t-1.291485548*n)**3;return{r:O(4.0767416621*r-3.3077115913*i+.2309699292*a),g:O(-1.2684380046*r+2.6097574011*i-.3413193965*a),b:O(-.0041960863*r-.7034186147*i+1.707614701*a)}}var ee=new Map,te=new Set;function ne(e,t){let n=e.toLowerCase().trim();ee.has(n)&&console.warn(`[monowind] registerBorderGlyphs: replacing "${n}" (last registration wins).`),ee.set(n,t);for(let e of te)e()}function j(e){if(e)return ee.get(e.toLowerCase().trim())}function re(e){return te.add(e),()=>te.delete(e)}function ie(e){switch(e){case 1:case 2:case 3:return`h`;case 4:case 8:case 12:return`v`;case 5:return`tl`;case 6:return`tr`;case 9:return`bl`;case 10:return`br`;case 7:return`teeDown`;case 11:return`teeUp`;case 13:return`teeRight`;case 14:return`teeLeft`;case 15:return`cross`;default:return null}}var ae=[` `,`─`,`─`,`─`,`│`,`┌`,`┐`,`┬`,`│`,`└`,`┘`,`┴`,`│`,`├`,`┤`,`┼`],oe=[` `,`═`,`═`,`═`,`║`,`╔`,`╗`,`╦`,`║`,`╚`,`╝`,`╩`,`║`,`╠`,`╣`,`╬`];function se(e){let t={};for(let n=1;n<16;n++){let r=ie(n);r&&!(r in t)&&(t[r]=e[n])}return t}var ce=e=>se(Array.from({length:16},()=>e));ne(`default`,{}),ne(`rounded`,{solid:{tl:`╭`,tr:`╮`,bl:`╰`,br:`╯`}});var le={...ce(`+`),h:`-`,v:`|`};ne(`ascii`,{solid:{...le,scrollTrack:`|`,scrollThumb:`#`},double:{...le,h:`=`},dashed:le,dotted:{...le,h:`.`,v:`:`}});var ue=se(ae);ne(`single`,{double:ue,dashed:ue,dotted:ue}),ne(`cp437`,{dashed:ue,dotted:ue});function de(e){return{track:e?.solid?.scrollTrack??`░`,thumb:e?.solid?.scrollThumb??`█`}}ne(`blocks`,{solid:ce(`█`),double:ce(`█`),dashed:ce(`▒`),dotted:ce(`░`)});function fe(e,t,n){let r=e.border;if(r.top===0&&r.right===0&&r.bottom===0&&r.left===0)return;let i=Math.max(r.top,r.right,r.bottom,r.left);for(let a=0;a<i;a++){let i={top:a<r.top,right:a<r.right,bottom:a<r.bottom,left:a<r.left},o={x:t.x+(i.left?a:0),y:t.y+(i.top?a:0),width:t.width-(i.left?a:0)-(i.right?a:0),height:t.height-(i.top?a:0)-(i.bottom?a:0)};o.width<=0||o.height<=0||pe(n,e.borderStyle,e.borderColor,o,i,j(e.glyphSet))}}function pe(e,t,n,r,i,a){let o=_e(t.top,a),s=_e(t.right,a),c=_e(t.bottom,a),l=_e(t.left,a),u=(e,t,n)=>n(_e(e===t?e:`solid`,a)),{x:d,y:f,width:p,height:m}=r,h=p>=2&&m>=2,g=d+ +!!i.left,_=d+p-+!!i.right,v=f+ +!!i.top,y=f+m-+!!i.bottom;if(i.top&&_>g&&e.push({glyph:o.h,x:g,y:f,length:_-g,color:n.top}),i.bottom&&m>+!!i.top&&_>g&&e.push({glyph:c.h,x:g,y:f+m-1,length:_-g,color:n.bottom}),i.left)for(let t=v;t<y;t++)e.push({glyph:l.v,x:d,y:t,length:1,color:n.left});if(i.right&&p>+!!i.left)for(let t=v;t<y;t++)e.push({glyph:s.v,x:d+p-1,y:t,length:1,color:n.right});h&&(i.top&&i.left&&e.push({glyph:u(t.top,t.left,e=>e.tl),x:d,y:f,length:1,color:n.top}),i.top&&i.right&&e.push({glyph:u(t.top,t.right,e=>e.tr),x:d+p-1,y:f,length:1,color:n.top}),i.bottom&&i.left&&e.push({glyph:u(t.bottom,t.left,e=>e.bl),x:d,y:f+m-1,length:1,color:n.bottom}),i.bottom&&i.right&&e.push({glyph:u(t.bottom,t.right,e=>e.br),x:d+p-1,y:f+m-1,length:1,color:n.bottom}))}function me(e,t){return e.style.position!==`static`||(t.style.display===`flex`||t.style.display===`grid`)&&e.style.zIndex!==null}function he(e){if(e.children.length<=1)return e.children;let t=null,n=null,r=null,i=null;for(let a of e.children)me(a,e)?(a.style.zIndex??0)<0?(t??=[]).push(a):(i??=[]).push(a):a.inlineBox?(r??=[]).push(a):(n??=[]).push(a);return t&&t.length>1&&t.sort((e,t)=>(e.style.zIndex??0)-(t.style.zIndex??0)),i&&i.length>1&&i.sort((e,t)=>(e.style.zIndex??0)-(t.style.zIndex??0)),!t&&n&&!r&&!i?n:!t&&!n&&r&&!i?r:!t&&!n&&!r&&i?i:[...t??[],...n??[],...r??[],...i??[]]}function ge(e,t,n){let r=_e(e,n);return t===`h`?r.h:r.v}function M(e,t,n,r,i,a){let o=(t?8:0)|(n?4:0)|(r?2:0)|!!i;if(a){let t=ie(o),n=t&&a[e]?.[t];if(n)return n}return(e===`double`?oe:ae)[o]}function _e(e,t){let n=(n,r,i,a)=>M(e,n,r,i,a,t),r={h:n(!1,!1,!0,!0),v:n(!0,!0,!1,!1),tl:n(!1,!0,!1,!0),tr:n(!1,!0,!0,!1),bl:n(!0,!1,!1,!0),br:n(!0,!1,!0,!1)};return e===`dashed`?{h:`╌`,v:`╎`,...N(r),...P(t,e)}:e===`dotted`?{h:`┄`,v:`┊`,...N(r),...P(t,e)}:r}function N(e){let{h:t,v:n,...r}=e;return r}function P(e,t){let n=e?.[t],r={};return n?.h&&(r.h=n.h),n?.v&&(r.v=n.v),r}function ve(e,t,n,r){let i=e.map(e=>e.spanned?!1:n===`between`?e.beforeOccupied&&e.afterOccupied:n!==`around`||e.beforeOccupied||e.afterOccupied),a=[];for(let n=0;n<e.length;n++)if(a.push({start:e[n].start,end:e[n].end,covered:i[n]}),n+1<e.length){let r=t===`intersection`?!1:t===`none`?i[n]||i[n+1]:i[n]&&i[n+1];a.push({start:e[n].end,end:e[n+1].start,covered:r})}let o=[];for(let e of a){if(!e.covered)continue;let t=o[o.length-1];t&&t.end===e.start?t.end=e.end:o.push({start:e.start,end:e.end})}if(r===`overlap-join`){let t=new Map,n=new Map;for(let r=0;r+1<e.length;r++){let i=e[r].end,a=e[r+1].start-i;a<=0||(n.set(i,i+Math.ceil(a/2)),t.set(e[r+1].start,i+Math.floor(a/2)))}return o.map(e=>{let r=t.get(e.start),i=n.get(e.end);return{start:r??e.start,end:i??e.end,startHalf:r!==void 0,endHalf:i!==void 0}})}return o.map(e=>({start:e.start+r,end:e.end-r})).filter(e=>e.end>e.start)}function ye(e){let t=[],n=e.border.left+e.padding.left,r=e.border.top+e.padding.top,i=(e,t)=>({line:t.bandStart+Math.floor((t.bandSize-e.width)/2),start:t.start,end:t.end,startHalf:t.startHalf===!0,endHalf:t.endHalf===!0}),a=e.ruleX?e.vertical.map(t=>i(e.ruleX,t)):[],o=e.ruleY?e.horizontal.map(t=>i(e.ruleY,t)):[],s=e.ruleX?.width??0,c=e.ruleY?.width??0,l=(e,t,n,r)=>e.some(e=>n>=e.line&&n<e.line+t&&(e.start<r&&e.end>r||e.end===r&&!e.endHalf||e.start===r&&!e.startHalf)),u=(e,t)=>o.some(n=>t>=n.line&&t<n.line+c&&e>=n.start&&e<n.end);if(e.ruleX){let i=ge(e.ruleX.style,`v`,e.glyphs);for(let o of a){for(let a=0;a<s;a++)for(let s=o.start;s<o.end;s++)u(o.line+a,s)||t.push({glyph:i,x:n+o.line+a,y:r+s,length:1,color:e.ruleX.color});be(e,t,`x`,o.line,o.start,o.end)}}if(e.ruleY){let i=e.ruleY.style===`double`&&e.ruleX?.style===`double`;for(let u of o){for(let d=0;d<c;d++){let f=u.line+d;for(let d=u.start;d<u.end;d++){let u=l(a,s,d,f),p=l(a,s,d,f+1);t.push({glyph:u||p?M(i?`double`:`solid`,u,p,l(o,c,f,d),l(o,c,f,d+1),e.glyphs):ge(e.ruleY.style,`h`,e.glyphs),x:n+d,y:r+f,length:1,color:e.ruleY.color})}}be(e,t,`y`,u.line,u.start,u.end)}}return t}function be(e,t,n,r,i,a){let o=n===`x`?e.ruleX:e.ruleY,s=e.border.left+e.padding.left,c=e.border.top+e.padding.top,l=s+e.contentWidth+e.padding.right+e.border.right,u=c+e.contentHeight+e.padding.bottom+e.border.bottom,d=(n,r,i,a,s,c,l,u)=>{let d=o.style===`double`&&i===`double`?`double`:`solid`;t.push({glyph:M(d,s,c,l,u,e.glyphs),x:n,y:r,length:1,color:a})};if(n===`x`)for(let t=0;t<o.width;t++){let n=s+r+t;i<=0&&e.padding.top===0&&e.border.top>0&&d(n,e.border.top-1,e.borderStyle.top,e.borderColor.top,!1,!0,!0,!0),a>=e.contentHeight&&e.padding.bottom===0&&e.border.bottom>0&&d(n,u-e.border.bottom,e.borderStyle.bottom,e.borderColor.bottom,!0,!1,!0,!0)}else for(let t=0;t<o.width;t++){let n=c+r+t;i<=0&&e.padding.left===0&&e.border.left>0&&d(e.border.left-1,n,e.borderStyle.left,e.borderColor.left,!0,!0,!1,!0),a>=e.contentWidth&&e.padding.right===0&&e.border.right>0&&d(l-e.border.right,n,e.borderStyle.right,e.borderColor.right,!0,!0,!0,!1)}}function xe(e){return(e>=0?Math.floor(e+.5):-Math.floor(-e+.5))||0}function Se(e,t){return t<=0?0:xe(e/(.25*t))}function F(e,t){return xe(t*e/100)}function I(e,t){let n=t.getBoundingClientRect(),r=parseFloat(getComputedStyle(e).letterSpacing)||0,i=t.ownerDocument.createRange();i.selectNodeContents(t);let a=Math.max(0,i.getBoundingClientRect().height-n.height);return{width:n.width/100,height:n.height,letterSpacing:r,inkOverhang:a}}function L(){return parseFloat(getComputedStyle(document.documentElement).fontSize)||16}function R(e,t,n={}){return z(e,t,n).length}function Ce(e,t){return t.endsWith(`
953
- `)&&e.pop(),e}function we(e){let t=[],n=0;for(let r=0;r<=e.length;r++)(r===e.length||e[r]===`
954
- `)&&(t.push({start:n,end:r}),n=r+1);return Ce(t,e)}function z(e,t,n={}){if(!/[^ \t\r\f]/.test(e))return[];let r=[],i=0,a=n.firstLineIndent??0;for(let o=0;o<=e.length;o++)(o===e.length||e[o]===`
955
- `)&&(r.push(...Ne(e,i,o,t,n,a)),a=0,i=o+1);return Ce(r,e)}function Te(e,t,n){if(!n)return t-e;let r=0;for(let i=e;i<t;i++)r+=n[i]??1;return r}function Ee(e,t,n,r=0){return t<=e?0:Te(e,t,n)-Math.min(r,De(t-1,n))}function De(e,t){return t?(t[e]??1)-1:0}function Oe(e,t={}){let{advances:n,tracking:r=0}=t,i=0;for(let t of Me(e,0,e.length))for(let a of Ae(e,t.start,t.end))i=Math.max(i,Ee(a.start,a.end,n,r));return i}function ke(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===``&&(t(r,n),n++)}function Ae(e,t,n){let r=[],i=t;for(let a=t;a<n;a++){if(e[a]===``){a>i&&r.push({start:i,end:a}),r.push({start:a,end:a+1}),i=a+1;continue}if(e[a]!==`-`)continue;let o=a===t;for(;a+1<n&&e[a+1]===`-`;)a++;let s=a+1;!o&&s<n&&(r.push({start:i,end:s}),i=s)}return r.push({start:i,end:n}),r}var je=/[ \t\r\n\f]/;function Me(e,t,n){let r=[],i=t;for(;i<n;){for(;i<n&&je.test(e[i]);)i++;if(i>=n)break;let t=i;for(;i<n&&!je.test(e[i]);)i++;r.push({start:t,end:i})}return r}function Ne(e,t,n,r,{advances:i,tracking:a=0},o=0){let s=Me(e,t,n);if(s.length===0)return[{start:t,end:t}];if(r<=0)return[{start:s[0].start,end:s[s.length-1].end}];let c=[],l=null,u=0,d=Math.max(0,o),f=()=>r-d;for(let t of s){let n=!1;for(let r of Ae(e,t.start,t.end)){let e=r.start,t=r.end,o=l!==null&&!n?e-1:e,s=u+Te(o,t,i),p=Math.min(a,De(t-1,i));if(l!==null&&s-p<=f())l.end=t,u=s;else{for(l!==null&&(c.push(l),d=0);;){let n=e;for(;n<t&&Ee(e,n+1,i,a)<=f();)n++;if(n===t||n===e)break;c.push({start:e,end:n}),d=0,e=n}l={start:e,end:t},u=Te(e,t,i)}n=!0}}return l!==null&&c.push(l),c}function Pe(e,t){let n=e.row.map(e=>e.node.localRect).sort((e,t)=>e.x-t.x),r=[];for(let e=1;e<n.length;e++){let i=n[e-1].x+n[e-1].width-t,a=n[e].x-t;a>i&&r.push({start:i,end:a})}return r}function Fe(e,t,n,r,i){if(e.style.ruleBreak!==`intersection`)return[{start:0,end:i}];let a=[t[n-1],t[n]].flatMap(e=>Pe(e,r)).sort((e,t)=>e.start-t.start),o=(e,t)=>({start:e,end:t,spanned:!1,beforeOccupied:!0,afterOccupied:!0}),s=[],c=0;for(let e of a)e.start>c&&s.push(o(c,e.start)),c=Math.max(c,e.end);return c<i&&s.push(o(c,i)),ve(s,`intersection`,`all`,e.style.ruleInset===`overlap-join`?`overlap-join`:0)}function Ie(e,t){return typeof t!=`number`||t<=0?e:e.map(e=>({...e,start:e.start+t,end:e.end-t})).filter(e=>e.end>e.start)}function Le(e,t,n,r,i,a,o){let s=Fn(e.style,`x`,t),c=Fn(e.style,`y`,n),l=qe(e).map(e=>{let n=X(e.style.margin,t);return{node:e,base:Ke(e,t,o),grow:e.style.flexGrow,shrink:e.style.flexShrink,min:Xe(e,t,o),max:Ln(e.style.maxWidth,t),margin:n}}),u=[];if(e.style.flexWrap===`wrap`){let n=[],r=0;for(let e of l){let i=Math.max(0,An(e.base,e.min,e.max))+(e.margin.left??0)+(e.margin.right??0),a=n.length===0?i:r+s+i;n.length>0&&a>t&&(u.push(n),n=[],r=0),n.push(e),r=n.length===1?i:r+s+i}n.length>0&&u.push(n),e.style.wrapReverse&&u.reverse()}else u.push(l);let d=i.left+a.left,f=i.top+a.top,p=u.map(e=>{let n=s*Math.max(0,e.length-1),i=e.reduce((e,t)=>e+(t.margin.left??0)+(t.margin.right??0),0),a=Math.max(0,t-n-i),c=e.some(e=>e.margin.left===null||e.margin.right===null),l=e.reduce((e,t)=>e+t.base,0),u=c&&l<=a?e.map(e=>Math.max(0,An(e.base,e.min,e.max))):Ue(e,a);for(let n=0;n<e.length;n++)J(e[n].node,t,r,0,0,`fill`,o,{width:u[n]});return{row:e,widths:u,availableForItems:a,height:e.reduce((e,t)=>Math.max(e,t.node.localRect.height),0)}}),m=p.map(e=>e.height),h=c*Math.max(0,p.length-1),g;if(e.style.flexWrap===`nowrap`)r===void 0?Number.isFinite(n)&&(m[0]=Math.max(n,m[0]??0)):m[0]=r,g=[0];else{let t=m.reduce((e,t)=>e+t,0),r=Number.isFinite(n)?Math.max(0,n-t-h):0,i=Je(e.style);if(i===`stretch`&&r>0){let e=B(Array.from({length:p.length},()=>1),r);for(let t=0;t<m.length;t++)m[t]+=e[t];g=He(`start`,m,0)}else g=He(i===`stretch`?`start`:i,m,r)}for(let i=0;i<p.length;i++){let{row:a,widths:l,availableForItems:u}=p[i],h=m[i],_=g[i]+i*c;for(let i=0;i<a.length;i++){let s=a[i].node,c=We(s,e),u=a[i].margin,d=u.top===null||u.bottom===null,f=s.style.height!==void 0&&s.style.height.kind!==`auto`;if(c===`stretch`&&!d&&!f&&h!==s.localRect.height){let e=u.top??0,a=u.bottom??0,c=Number.isFinite(n)?n:void 0,d=An(Math.max(0,h-e-a),Ln(s.style.minHeight,c)??0,Ln(s.style.maxHeight,c));if(d===s.localRect.height)continue;J(s,t,r,0,0,`fill`,o,{width:l[i],height:d})}}let v=l.reduce((e,t)=>e+t,0),y=Math.max(0,u-v),b=a.reduce((e,t)=>e+ +(t.margin.left===null)+ +(t.margin.right===null),0),x=Array.from({length:a.length},()=>0),S=Array.from({length:a.length},()=>0),C;if(b>0&&y>0){let e=B(Array.from({length:b},()=>1),y),t=0;for(let n=0;n<a.length;n++)a[n].margin.left===null&&(x[n]=e[t++]),a[n].margin.right===null&&(S[n]=e[t++]);C=He(`start`,l,0)}else C=He(Ye(e.style),l,y);let w=0;for(let t=0;t<a.length;t++){let n=a[t],r=n.node,i=n.margin.left??0,o=n.margin.right??0;w+=x[t]+i,r.localRect={...r.localRect,x:d+C[t]+t*s+w,y:f+_+Be(r,e.style.alignItems,h,n.margin)},w+=S[t]+o}}let _=m.reduce((e,t)=>e+t,0)+h,v=Number.isFinite(n)?Math.max(n,_):_;if(e.style.ruleX||e.style.ruleY){let n=[],r=[];for(let i=0;i<p.length;i++){let a=g[i]+i*c;for(let e of Pe(p[i],d))n.push({bandStart:e.start,bandSize:e.end-e.start,start:a,end:a+m[i]});if(i>0){let n=g[i-1]+(i-1)*c+m[i-1];if(a>n)for(let o of Fe(e,p,i,d,t))r.push({bandStart:n,bandSize:a-n,...o})}}e.decorationRuns=ye({glyphs:j(e.style.glyphSet),ruleX:e.style.ruleX,ruleY:e.style.ruleY,vertical:Ie(n,e.style.ruleInset),horizontal:Ie(r,e.style.ruleInset),contentWidth:t,contentHeight:v,border:i,borderStyle:e.style.borderStyle,borderColor:e.style.borderColor,padding:a})}return Re(e,i,a,t,v),v}function Re(e,t,n,r,i){for(let a of e.children)q(a.style)&&(a.staticSlot={kind:`flex`,direction:e.style.flexDirection,originX:t.left+n.left,originY:t.top+n.top,innerWidth:r,innerHeight:i})}function ze(e,t,n,r,i,a,o){let s=Fn(e.style,`y`,n),c=qe(e).map(i=>{let a=X(i.style.margin,t),s=Math.max(0,t-(a.left??0)-(a.right??0)),c=We(i,e)===`stretch`;J(i,s,r&&Number.isFinite(n)?n:void 0,0,0,c?`fill`:`shrink`,o);let l=Number.isFinite(n)?n:void 0,u=i.style.flexBasis,d=u===void 0||u.kind===`auto`?i.unclampedHeight:u.kind===`cells`?u.value:u.kind===`percent`&&l!==void 0?F(u.value,l):i.unclampedHeight,f=i.style.minHeight===`auto`?i.style.overflow.y===`visible`?i.localRect.height:0:void 0;return{node:i,base:d,grow:i.style.flexGrow,shrink:i.style.flexShrink,min:f??Ln(i.style.minHeight,l)??0,max:Ln(i.style.maxHeight,l),margin:a}}),l=s*Math.max(0,c.length-1),u=c.reduce((e,t)=>e+(t.margin.top??0)+(t.margin.bottom??0),0),d=Number.isFinite(n),f=c.reduce((e,t)=>e+t.base,0),p=d?Math.max(0,n-l-u):f,m=r?p:Math.max(p,f),h=c.some(e=>e.margin.top===null||e.margin.bottom===null),g=d&&!(d&&h&&f<=m)?Ue(c,m):c.map(e=>Math.max(0,An(e.base,e.min,e.max)));for(let n=0;n<c.length;n++)if(g[n]!==c[n].node.localRect.height){let r=c[n],i=Math.max(0,t-(r.margin.left??0)-(r.margin.right??0)),a=We(r.node,e)===`stretch`;J(r.node,i,g[n],0,0,a?`fill`:`shrink`,o,{height:g[n]})}let _=g.reduce((e,t)=>e+t,0),v=Math.max(0,m-_),y=c.reduce((e,t)=>e+ +(t.margin.top===null)+ +(t.margin.bottom===null),0),b=Array.from({length:c.length},()=>0),x=Array.from({length:c.length},()=>0),S;if(y>0&&v>0){let e=B(Array.from({length:y},()=>1),v),t=0;for(let n=0;n<c.length;n++)c[n].margin.top===null&&(b[n]=e[t++]),c[n].margin.bottom===null&&(x[n]=e[t++]);S=He(`start`,g,0)}else S=He(Ye(e.style),g,v);let C=i.left+a.left,w=i.top+a.top,T=0;for(let n=0;n<c.length;n++){let r=c[n],i=r.node,a=r.margin.top??0,o=r.margin.bottom??0;T+=b[n]+a,i.localRect={...i.localRect,x:C+Ve(i,e.style.alignItems,t,r.margin),y:w+S[n]+n*s+T},T+=x[n]+o}let E=_+l+u,D=d?Math.max(n,E):E;if(e.style.ruleY&&c.length>1){let n=[],r=c.map(e=>e.node.localRect).slice().sort((e,t)=>e.y-t.y);for(let e=1;e<r.length;e++){let i=r[e-1].y+r[e-1].height-w,a=r[e].y-w-i;a>0&&n.push({bandStart:i,bandSize:a,start:0,end:t})}e.decorationRuns=ye({glyphs:j(e.style.glyphSet),ruleX:null,ruleY:e.style.ruleY,vertical:[],horizontal:Ie(n,e.style.ruleInset),contentWidth:t,contentHeight:D,border:i,borderStyle:e.style.borderStyle,borderColor:e.style.borderColor,padding:a})}return Re(e,i,a,t,D),D}function Be(e,t,n,r){let i=e.style.alignSelf===`auto`?t:e.style.alignSelf,a=r.top??0,o=r.bottom??0,s=n-e.localRect.height,c=r.top===null&&r.bottom===null,l=r.top===null&&r.bottom!==null,u=r.bottom===null&&r.top!==null;return c?Math.floor(s/2):l?s-o:u?a:a+Ge(i,n,e.localRect.height)}function Ve(e,t,n,r){let i=e.style.alignSelf===`auto`?t:e.style.alignSelf,a=r.left??0,o=r.right??0,s=n-e.localRect.width,c=r.left===null&&r.right===null,l=r.left===null&&r.right!==null,u=r.right===null&&r.left!==null;return c?Math.floor(s/2):l?s-o:u?a:a+Ge(i,n,e.localRect.width)}function He(e,t,n){let r=t.length;if(r===0)return[];let i=[],a=0;if(e===`space-between`&&r>1){let e=Math.floor(n/(r-1)),o=n-e*(r-1);for(let n=0;n<r;n++)i.push(a),a+=t[n]+e+ +(n<o);return i}if((e===`space-around`||e===`space-evenly`)&&n>0){let o=B(Array.from({length:r+1},(t,n)=>e===`space-evenly`||n===0||n===r?1:2),n);for(let e=0;e<r;e++)a+=o[e],i.push(a),a+=t[e];return i}e===`center`?a=Math.floor(n/2):e===`end`&&(a=n);for(let e=0;e<r;e++)i.push(a),a+=t[e];return i}function Ue(e,t){let n=e.length,r=(t,n)=>Math.max(0,An(t,e[n].min??0,e[n].max)),i=e.map(e=>e.base),a=t>=i.reduce((e,t,n)=>e+r(t,n),0),o=Array.from({length:n},()=>0),s=Array.from({length:n},()=>!1);for(let t=0;t<n;t++){let n=r(i[t],t);((a?e[t].grow:e[t].shrink)===0||a&&i[t]>n||!a&&i[t]<n)&&(o[t]=n,s[t]=!0)}for(;;){let c=[];for(let e=0;e<n;e++)s[e]||c.push(e);if(c.length===0)break;let l=o.reduce((e,t,n)=>s[n]?e+t:e,0),u=c.reduce((e,t)=>e+i[t],0),d=t-l-u,f=a?Math.max(0,d):Math.max(0,-d),p=B(c.map(t=>a?e[t].grow:i[t]*e[t].shrink),f),m=c.map((e,t)=>i[e]+(a?p[t]:-p[t])),h=c.map((e,t)=>r(m[t],e)),g=h.reduce((e,t,n)=>e+(t-m[n]),0);if(g===0){for(let e=0;e<c.length;e++)o[c[e]]=h[e];break}for(let e=0;e<c.length;e++){let t=h[e]-m[e];(g>0?t>0:t<0)&&(o[c[e]]=h[e],s[c[e]]=!0)}}return o}function B(e,t){let n=e.reduce((e,t)=>e+t,0);if(n===0||t<=0)return e.map(()=>0);let r=e.map(e=>e/n*t),i=r.map(Math.floor),a=t-i.reduce((e,t)=>e+t,0);if(a>0){let e=r.map((e,t)=>[t,e-Math.floor(e)]).sort((e,t)=>t[1]===e[1]?e[0]-t[0]:t[1]-e[1]);for(let[t]of e){if(a<=0)break;i[t]+=1,--a}}return i}function We(e,t){return e.style.alignSelf===`auto`?t.style.alignItems:e.style.alignSelf}function Ge(e,t,n){return e===`center`?Math.max(0,Math.floor((t-n)/2)):e===`end`?Math.max(0,t-n):0}function Ke(e,t,n){let r=e.style.flexBasis,i=e.style.width;return r!==void 0&&r.kind!==`auto`?qn(r,t,e,n):i!==void 0&&i.kind!==`auto`?qn(i,t,e,n):Jn(e,n)}function qe(e){let t=e.children.filter(e=>!q(e.style)).sort((e,t)=>e.style.order-t.style.order);return e.style.flexReverse&&t.reverse(),t}function Je(e){return e.wrapReverse?e.alignContent===`start`?`end`:e.alignContent===`end`?`start`:e.alignContent:e.alignContent}function Ye(e){let t=e.justifyContent===`stretch`?`start`:e.justifyContent;return e.flexReverse?t===`start`?`end`:t===`end`?`start`:t:t}function Xe(e,t,n){return e.style.minWidth===`auto`?e.style.overflow.x===`visible`?Zn(e,n):0:Ln(e.style.minWidth,t)??0}function Ze(e){return e===`auto`||e===`scroll`}function Qe(e){return e.children.filter(e=>e.inlineBox)}function $e(e){return{right:e.scrollbarSize.y+e.scrollbarInset.x,bottom:e.scrollbarSize.x+e.scrollbarInset.y}}function et(e){if(e.scrollbarWidth===`none`)return{right:0,bottom:0};let t=$e(e);return{right:e.overflow.y===`scroll`?t.right:0,bottom:e.overflow.x===`scroll`?t.bottom:0}}function tt(){return{display:`block`,flexDirection:`row`,flexReverse:!1,flexWrap:`nowrap`,wrapReverse:!1,flexGrow:0,flexShrink:0,flexBasis:void 0,order:0,justifyContent:`stretch`,alignContent:`stretch`,alignItems:`stretch`,alignSelf:`auto`,justifyItems:`stretch`,justifySelf:`auto`,gridTemplateColumns:{kind:`none`},gridTemplateRows:{kind:`none`},gridAutoColumns:[rt()],gridAutoRows:[rt()],gridAutoFlow:{direction:`row`,dense:!1},gridTemplateAreas:null,gridColumnStart:{kind:`auto`},gridColumnEnd:{kind:`auto`},gridRowStart:{kind:`auto`},gridRowEnd:{kind:`auto`},width:void 0,height:void 0,minWidth:`auto`,minHeight:`auto`,maxWidth:void 0,maxHeight:void 0,padding:nt(),margin:{top:0,right:0,bottom:0,left:0},position:`static`,insets:{top:null,right:null,bottom:null,left:null},gapX:0,gapY:0,border:nt(),borderStyle:{top:`solid`,right:`solid`,bottom:`solid`,left:`solid`},overflow:{x:`visible`,y:`visible`},scrollbarWidth:`auto`,scrollbarSize:{x:1,y:1},scrollbarInset:{x:0,y:0},overscroll:{x:!0,y:!0},scrollbarColor:null,whiteSpace:`normal`,tabSize:8,lineGap:0,tracking:0,textOverflow:`clip`,color:void 0,backgroundColor:void 0,backgroundClear:!1,fontWeight:`400`,fontStyle:`normal`,textDecorationLine:`none`,borderColor:{top:void 0,right:void 0,bottom:void 0,left:void 0},textAlignBlocked:!1,textAlign:`start`,textIndent:0,tableRole:`none`,tableLayout:`auto`,borderCollapse:!1,borderSpacingX:0,borderSpacingY:0,captionSide:`top`,verticalAlign:`start`,glyphSet:null,opacity:1,zIndex:null,latticeBorder:null,ruleX:null,ruleY:null,ruleBreak:`normal`,ruleInset:0,ruleVisibilityItems:`normal`,columnCount:null,columnWidth:null,columnFill:`balance`,columnSpan:!1,breakBeforeColumn:!1,breakAfterColumn:!1,breakInsideAvoid:!1}}function nt(){return{top:0,right:0,bottom:0,left:0}}function rt(){return{min:{kind:`auto`},max:{kind:`auto`}}}function it(e,t,n,r,i,a){let o=e.style,s=Number.isFinite(n)?n:void 0,c=e.subgrid?.cols,l=e.subgrid?.rows,u=c?c.gap:Fn(o,`x`,t),d=l?l.gap:Fn(o,`y`,s),f=mt(e,t,s,u,d,e.subgrid?{col:e.subgrid.colSpan,row:e.subgrid.rowSpan}:void 0),{children:p,placed:m,colLines:h,rowLines:g,colTracks:_,rowTracks:v,colCollapsed:y,rowCollapsed:b}=f,x=p.map(e=>X(e.style.margin,t)),S=p.map(e=>e.style.justifySelf===`auto`?o.justifyItems:e.style.justifySelf),C=p.map(at),w=c?st(c):Ot(_,y,ct(f,C,x,a),t,u,o.justifyContent===`stretch`),T=c?c.positions:kt(w,t,o.justifyContent),E=[];for(let e=0;e<p.length;e++){let t=p[e],n=m.items[e],r=jt(T,w.sizes,n.col.start,n.col.span),i=x[e],o=Math.max(0,r-V(i)),s=C[e];if(s.cols||s.rows){let e=s.cols?ot(T,w,u,n.col.start,n.col.span,ut(t,`cols`,i,r)):void 0;t.subgrid={colSpan:n.col.span,rowSpan:n.row.span,cols:e,rows:void 0}}else t.subgrid=void 0;let c=S[e],l=i.left===null||i.right===null,d=t.style.width!==void 0&&t.style.width.kind!==`auto`;s.cols?J(t,r,void 0,0,0,`fill`,a,{width:o}):c===`stretch`&&!l&&!d?J(t,r,void 0,0,0,`fill`,a,{width:An(o,t.style.minWidth===`auto`?t.style.overflow.x===`visible`?Zn(t,a):0:Ln(t.style.minWidth,r)??0,Rn(t.style.maxWidth,r,t,a))}):J(t,o,void 0,0,0,`shrink`,a),E.push(t.localRect.width)}let D=l?st(l):Ot(v,b,lt(f,C,x),s??`max-content`,d,o.alignContent===`stretch`),O=At(D),k=l?l.positions:kt(D,s??O,o.alignContent),A=r.left+i.left,ee=r.top+i.top;for(let t=0;t<p.length;t++){let n=p[t],r=m.items[t],i=x[t],o=jt(T,w.sizes,r.col.start,r.col.span),s=jt(k,D.sizes,r.row.start,r.row.span),c=Math.max(0,s-vt(i)),l=We(n,e),u=i.top===null||i.bottom===null,f=n.style.height!==void 0&&n.style.height.kind!==`auto`;if(C[t].rows)n.subgrid.rows=ot(k,D,d,r.row.start,r.row.span,ut(n,`rows`,i,o)),J(n,o,s,0,0,`fill`,a,{width:E[t],height:c});else if(l===`stretch`&&!u&&!f){let e=An(c,n.style.minHeight===`auto`?n.style.overflow.y===`visible`?n.localRect.height:0:Ln(n.style.minHeight,s)??0,Ln(n.style.maxHeight,s));e!==n.localRect.height&&J(n,o,s,0,0,`fill`,a,{width:E[t],height:e})}else n.style.height?.kind===`percent`&&J(n,o,s,0,0,`fill`,a,{width:E[t]});n.localRect={...n.localRect,x:A+T[r.col.start]+Mt(S[t],i.left,i.right,o,n.localRect.width),y:ee+k[r.row.start]+Mt(l,i.top,i.bottom,s,n.localRect.height)}}let te=Number.isFinite(n)?Math.max(n,O):O;if(o.ruleX||o.ruleY){let n=w.sizes.length,a=D.sizes.length,s=Array.from({length:n},()=>Array.from({length:a},()=>!1)),c=Array.from({length:Math.max(0,n-1)},()=>Array.from({length:a},()=>!1)),l=Array.from({length:Math.max(0,a-1)},()=>Array.from({length:n},()=>!1));for(let e of m.items)for(let t=e.col.start;t<e.col.start+e.col.span&&t<n;t++)for(let r=e.row.start;r<e.row.start+e.row.span&&r<a;r++)s[t][r]=!0,t+1<e.col.start+e.col.span&&t<n-1&&(c[t][r]=!0),r+1<e.row.start+e.row.span&&r<a-1&&(l[r][t]=!0);let u=(e,t,n,r,i,a)=>t.map((t,o)=>({start:t,end:t+n[o],spanned:r[e]?.[o]??!1,beforeOccupied:i(o),afterOccupied:a(o)})),d=(e,t,n)=>{let r=[];for(let i=1;i<e.length;i++){let a=e[i-1]+t[i-1],s=e[i]-a;if(!(s<=0))for(let e of ve(n(i-1),o.ruleBreak,o.ruleVisibilityItems,o.ruleInset))r.push({bandStart:a,bandSize:s,...e})}return r},f=d(T,w.sizes,e=>u(e,k,D.sizes,c,t=>s[e]?.[t]??!1,t=>s[e+1]?.[t]??!1)),p=d(k,D.sizes,e=>u(e,T,w.sizes,l,t=>s[t]?.[e]??!1,t=>s[t]?.[e+1]??!1));e.decorationRuns=ye({glyphs:j(o.glyphSet),ruleX:o.ruleX,ruleY:o.ruleY,vertical:f,horizontal:p,contentWidth:t,contentHeight:te,border:r,borderStyle:o.borderStyle,borderColor:o.borderColor,padding:i})}let ne=e.children.filter(e=>q(e.style));if(ne.length>0){let e=q(o)?{x:r.left,y:r.top,width:i.left+t+i.right,height:i.top+te+i.bottom}:{x:A,y:ee,width:t,height:te};for(let n of ne){let r=ft(n.style.gridColumnStart,n.style.gridColumnEnd,h,m.colOrigin,T,w.sizes,-i.left,t+i.right),a=ft(n.style.gridRowStart,n.style.gridRowEnd,g,m.rowOrigin,k,D.sizes,-i.top,te+i.bottom);n.staticSlot={kind:`grid`,area:{x:A+r.start,y:ee+a.start,width:Math.max(0,r.end-r.start),height:Math.max(0,a.end-a.start)},staticArea:e}}}return te}function at(e){let t=e.style.display===`grid`;return{cols:t&&e.style.gridTemplateColumns.kind===`subgrid`,rows:t&&e.style.gridTemplateRows.kind===`subgrid`}}function ot(e,t,n,r,i,a){let o=e[r]+a.start,s=t.sizes.slice(r,r+i);return s[0]=Math.max(0,s[0]-a.start),s[i-1]=Math.max(0,s[i-1]-a.end),{positions:Array.from({length:i},(t,n)=>n===0?0:e[r+n]-o),sizes:s,gapBefore:Array.from({length:i},(e,n)=>n===0?0:t.gapBefore[r+n]),gap:n}}function st(e){return{sizes:e.sizes,gapBefore:e.gapBefore,limits:e.sizes}}function ct(e,t,n,r){let i=[];return e.children.forEach((a,o)=>{let s=e.placed.items[o],c=n[o];if(t[o].cols){let e=ut(a,`cols`,c,0);for(let t of dt(a,`cols`,s,e,r))i.push({...t,start:t.start+s.col.start});return}i.push({start:s.col.start,span:s.col.span,min:Xn(a,`min`,r)+V(c),max:Xn(a,`max`,r)+V(c)})}),i}function lt(e,t,n){let r=[];return e.children.forEach((i,a)=>{let o=e.placed.items[a],s=n[a];if(t[a].rows){let e=ut(i,`rows`,s,0);for(let t of dt(i,`rows`,o,e))r.push({...t,start:t.start+o.row.start});return}let c=i.localRect.height+vt(s),l=i.style.minHeight===`auto`&&i.style.overflow.y!==`visible`?vt(s):c;r.push({start:o.row.start,span:o.row.span,min:l,max:c})}),r}function ut(e,t,n,r){let{border:i,padding:a}=e.style;return t===`cols`?{start:(n.left??0)+i.left+Y(a.left,r),end:(n.right??0)+i.right+Y(a.right,r)}:{start:(n.top??0)+i.top+Y(a.top,r),end:(n.bottom??0)+i.bottom+Y(a.bottom,r)}}function dt(e,t,n,r,i){let a=t===`cols`?n.col.span:n.row.span,o=mt(e,void 0,void 0,0,0,{col:n.col.span,row:n.row.span}),s=[];if(o.children.forEach((e,n)=>{let c=o.placed.items[n],l=t===`cols`?c.col:c.row,u=l.start===0,d=l.start+l.span===a,f=(u?r.start:0)+(d?r.end:0),p=X(e.style.margin,0);if(at(e)[t]){let n=ut(e,t,p,0),a=dt(e,t,c,{start:n.start+(u?r.start:0),end:n.end+(d?r.end:0)},i);for(let e of a)s.push({...e,start:e.start+l.start});return}if(t===`cols`)s.push({start:l.start,span:l.span,min:Xn(e,`min`,i)+V(p)+f,max:Xn(e,`max`,i)+V(p)+f});else{let t=e.localRect.height+vt(p)+f;s.push({start:l.start,span:l.span,min:t,max:t})}}),s.length===0){let e=r.start+r.end;s.push({start:0,span:a,min:e,max:e})}return s}function ft(e,t,n,r,i,a,o,s){let c=wt(e,`start`,n),l=wt(t,`end`,n);c!==null&&l!==null?c>l?[c,l]=[l,c]:c===l&&(l=null):c!==null&&t.kind===`span`?l=Tt(c,t,1,n):l!==null&&e.kind===`span`&&(c=Tt(l,e,-1,n));let u=i.length,d=e=>{if(e===null)return;let t=e-r;return t<0||t>u||u===0?void 0:t},f=e=>e===u?i[u-1]+a[u-1]:i[e],p=e=>e===0?i[0]:i[e-1]+a[e-1],m=d(c),h=d(l);return{start:m===void 0?o:f(m),end:h===void 0?s:p(h)}}function pt(e,t){let n=t.gridIntrinsic.get(e);if(n!==void 0)return n;let r=e.style,i=Math.max(typeof r.gapX==`number`?r.gapX:0,r.ruleX?.width??0),a=mt(e,void 0,void 0,i,0,e.subgrid?{col:e.subgrid.colSpan,row:e.subgrid.rowSpan}:void 0),o=a.children.map(at),s=a.children.map(e=>X(e.style.margin,0)),c=Ot(a.colTracks,a.colCollapsed,ct(a,o,s,t),`min-content`,i,!1),l=c.gapBefore.reduce((e,t)=>e+t,0),u={min:c.sizes.reduce((e,t)=>e+t,0)+l,max:c.limits.reduce((e,t)=>e+t,0)+l};return t.gridIntrinsic.set(e,u),u}function mt(e,t,n,r,i,a){let o=e.style,s=_t(e),c=o.gridTemplateColumns.kind===`subgrid`&&a!==void 0,l=o.gridTemplateRows.kind===`subgrid`&&a!==void 0,u=c?ht(a.col):yt(o.gridTemplateColumns,t,r),d=l?ht(a.row):yt(o.gridTemplateRows,n,i),f=o.gridTemplateAreas,p=[...u.tracks],m=[...d.tracks];if(f){c||xt(p,u.lineNames,f.columns,o.gridAutoColumns),l||xt(m,d.lineNames,f.rows,o.gridAutoRows);for(let[e,t]of f.areas)u.lineNames[Math.min(t.colStart,p.length)].push(`${e}-start`),u.lineNames[Math.min(t.colEnd,p.length)].push(`${e}-end`),d.lineNames[Math.min(t.rowStart,m.length)].push(`${e}-start`),d.lineNames[Math.min(t.rowEnd,m.length)].push(`${e}-end`)}let h={explicitCount:p.length,names:u.lineNames},g={explicitCount:m.length,names:d.lineNames},_=Dt(s.map(e=>({col:Et(e.style.gridColumnStart,e.style.gridColumnEnd,h),row:Et(e.style.gridRowStart,e.style.gridRowEnd,g)})),p.length,m.length,o.gridAutoFlow);return c&&gt(_,`col`,p.length),l&&gt(_,`row`,m.length),{children:s,placed:_,colLines:h,rowLines:g,colTracks:St(p,_.colOrigin,_.colCount,o.gridAutoColumns),rowTracks:St(m,_.rowOrigin,_.rowCount,o.gridAutoRows),colCollapsed:Ct(u,_.colOrigin,_.colCount,_.items.map(e=>e.col)),rowCollapsed:Ct(d,_.rowOrigin,_.rowCount,_.items.map(e=>e.row))}}function ht(e){return{tracks:Array.from({length:e},()=>rt()),lineNames:Array.from({length:e+1},()=>[])}}function gt(e,t,n){let r=t===`col`?e.colOrigin:e.rowOrigin;for(let i of e.items){let e=i[t],a=Math.min(Math.max(e.start+r,0),n-1),o=Math.min(Math.max(e.start+r+e.span,a+1),n);e.start=a,e.span=o-a}t===`col`?(e.colOrigin=0,e.colCount=n):(e.rowOrigin=0,e.rowCount=n)}function _t(e){return e.children.filter(e=>!q(e.style)&&!e.inlineBox).sort((e,t)=>e.style.order-t.style.order)}function V(e){return(e.left??0)+(e.right??0)}function vt(e){return(e.top??0)+(e.bottom??0)}function yt(e,t,n){if(e.kind!==`tracks`)return{tracks:[],lineNames:[[]]};let r=(e.lineNames??Array.from({length:e.tracks.length+1},()=>[])).map(e=>[...e]);if(!e.autoRepeat)return{tracks:e.tracks,lineNames:r};let{index:i,tracks:a,mode:o}=e.autoRepeat,s=1;if(t!==void 0){let e=a.reduce((e,n)=>{let r=bt(n.min,t)??bt(n.max,t)??1;return e+Math.max(1,r)},0);s=Math.max(1,Math.floor((t+n)/(e+n*a.length)))}let c=[];for(let e=0;e<s;e++)c.push(...a);let l=[...e.tracks.slice(0,i),...c,...e.tracks.slice(i)],u=e.autoRepeat.lineNames??Array.from({length:a.length+1},()=>[]),d=r.slice(0,i),f=[...e.autoRepeat.leadingNames??[]];for(let e=0;e<s;e++){f.push(...u[0]);for(let e=0;e<a.length;e++)d.push(f),f=[...u[e+1]]}return d.push([...f,...r[i]]),d.push(...r.slice(i+1)),o===`auto-fit`?{tracks:l,lineNames:d,autoFit:{start:i,end:i+c.length}}:{tracks:l,lineNames:d}}function bt(e,t){if(e.kind===`cells`)return e.value;if(e.kind===`percent`&&t!==void 0)return F(e.value,t);if(e.kind===`math`){let n=[];for(let r of e.args){let e=bt(r,t);if(e===void 0)return;n.push(e)}return e.fn===`min`?Math.min(...n):Math.max(...n)}}function xt(e,t,n,r){for(let i=e.length;i<n;i++)e.push(r[(i-e.length)%r.length]),t.push([])}function St(e,t,n,r){let i=[];for(let a=0;a<n;a++){let n=a+t;if(n>=0&&n<e.length)i.push(e[n]);else{let t=n<0?n:n-e.length;i.push(r[(t%r.length+r.length)%r.length])}}return i}function Ct(e,t,n,r){let i=Array.from({length:n},()=>!1);if(!e.autoFit)return i;for(let a=e.autoFit.start;a<e.autoFit.end;a++){let e=a-t;e<0||e>=n||r.some(t=>e>=t.start&&e<t.start+t.span)||(i[e]=!0)}return i}function wt(e,t,n){if(e.kind===`line`)return e.value>0?e.value-1:n.explicitCount+1+e.value;if(e.kind!==`name`)return null;if(e.nth===void 0){let r=`${e.name}-${t}`,i=n.names.findIndex(e=>e.includes(r));if(i!==-1)return i}let r=e.nth??1,i=n.explicitCount,a=0;if(r>0){for(let t=0;t<=i;t++)if(n.names[t].includes(e.name)&&++a===r)return t;return i+(r-a)}for(let t=i;t>=0;t--)if(n.names[t].includes(e.name)&&++a===-r)return t;return-(-r-a)}function Tt(e,t,n,r){if(t.name===void 0)return e+n*t.value;let i=t.value,a=e;for(;i>0;)a+=n,(!(a>=0&&a<=r.explicitCount)||r.names[a].includes(t.name))&&i--;return a}function Et(e,t,n){let r=wt(e,`start`,n),i=wt(t,`end`,n);if(r!==null&&i!==null)return r===i?{start:r,span:1}:{start:Math.min(r,i),span:Math.abs(i-r)};if(r!==null)return{start:r,span:(t.kind===`span`?Tt(r,t,1,n):r+1)-r};if(i!==null){let t=e.kind===`span`?Tt(i,e,-1,n):i-1;return{start:t,span:i-t}}return{start:null,span:e.kind===`span`?e.value:t.kind===`span`?t.value:1}}function Dt(e,t,n,r){let i=r.direction===`row`,a=e.map(e=>i?e.row:e.col),o=e.map(e=>i?e.col:e.row),s=i?t:n,c=i?n:t,l=0,u=Math.max(s,1);for(let t=0;t<e.length;t++){let e=o[t];e.start!==null&&(l=Math.min(l,e.start),u=Math.max(u,e.start+e.span))}for(let t=0;t<e.length;t++){let e=o[t];e.start===null&&(u=Math.max(u,l+e.span))}let d=0;for(let t=0;t<e.length;t++){let e=a[t];e.start!==null&&(d=Math.min(d,e.start))}let f=new Set,p=(e,t,n,r)=>{for(let i=e;i<e+n;i++)for(let e=t;e<t+r;e++)if(f.has(`${i}:${e}`))return!1;return!0},m=(e,t,n,r)=>{for(let i=e;i<e+n;i++)for(let e=t;e<t+r;e++)f.add(`${i}:${e}`)},h=e.map(()=>null);for(let t=0;t<e.length;t++){let e=a[t],n=o[t];e.start!==null&&n.start!==null&&(h[t]={major:e.start,minor:n.start},m(e.start,n.start,e.span,n.span))}let g=new Map;for(let t=0;t<e.length;t++){let e=a[t],n=o[t];if(e.start===null||n.start!==null)continue;let i=r.dense?l:Math.max(l,g.get(e.start)??l);for(;!p(e.start,i,e.span,n.span);)i++;h[t]={major:e.start,minor:i},m(e.start,i,e.span,n.span),r.dense||g.set(e.start,i+n.span),u=Math.max(u,i+n.span)}let _=d,v=l;for(let t=0;t<e.length;t++){if(h[t]!==null)continue;let e=a[t],n=o[t];if(r.dense&&(_=d,v=l),n.start!==null){for(n.start<v&&_++;!p(_,n.start,e.span,n.span);)_++;h[t]={major:_,minor:n.start},m(_,n.start,e.span,n.span),v=n.start+n.span}else{let r=_,i=v;for(;;){if(i+n.span>u){r++,i=l;continue}if(p(r,i,e.span,n.span))break;i++}h[t]={major:r,minor:i},m(r,i,e.span,n.span),_=r,v=i+n.span}}let y=Math.max(c,d);for(let t=0;t<e.length;t++)y=Math.max(y,h[t].major+a[t].span);let b=e.map((e,t)=>{let n={start:h[t].major-d,span:a[t].span},r={start:h[t].minor-l,span:o[t].span};return i?{col:r,row:n}:{col:n,row:r}}),x=y-d,S=u-l;return i?{items:b,colOrigin:l,colCount:S,rowOrigin:d,rowCount:x}:{items:b,colOrigin:d,colCount:x,rowOrigin:l,rowCount:S}}function Ot(e,t,n,r,i,a){let o=typeof r==`number`?r:void 0,s=e.map((e,n)=>{if(t[n])return{base:0,limit:0,baseIntrinsic:!1,limitKind:`fixed`,frFactor:0,collapsed:!0};let r=bt(e.min,o),i=r??0,a=r===void 0,s=e.max;if(s.kind===`fr`)return{base:i,limit:null,baseIntrinsic:a,limitKind:`fr`,frFactor:s.value,collapsed:!1};let c=bt(s,o);return c===void 0?{base:i,limit:null,baseIntrinsic:a,limitKind:s.kind===`min-content`?`intrinsic-min`:`intrinsic-max`,frFactor:0,collapsed:!1}:{base:i,limit:c,baseIntrinsic:a,limitKind:`fixed`,frFactor:0,collapsed:!1}}),c=s.map((e,t)=>t===0||e.collapsed?0:s.slice(0,t).some(e=>!e.collapsed)?i:0),l=(e,t)=>{let n=0;for(let r=e+1;r<e+t;r++)n+=c[r];return n},u=e=>e.collapsed?0:e.limitKind===`fixed`?e.limit:Math.max(e.base,e.limit??e.base),d=[...n].sort((e,t)=>e.span-t.span);for(let e of d){let t=[],n=!1;for(let r=e.start;r<e.start+e.span;r++){let e=s[r];e!==void 0&&(e.limitKind===`fr`&&(n=!0),t.push(e))}if(t.length===0)continue;let r=l(e.start,e.span);if(n){let n=t.filter(e=>e.limitKind===`fr`&&e.baseIntrinsic&&!e.collapsed);if(n.length===0)continue;let i=t.reduce((e,t)=>e+t.base,0)+r,a=e.min-i;if(a>0){let e=n.reduce((e,t)=>e+t.frFactor,0),t=B(n.map(t=>e>0?t.frFactor:1),a);n.forEach((e,n)=>{e.base+=t[n]})}continue}let i=t.filter(e=>e.baseIntrinsic&&!e.collapsed);if(i.length>0){let n=t.reduce((e,t)=>e+t.base,0)+r,a=e.min-n;if(a>0){let e=B(i.map(()=>1),a);i.forEach((t,n)=>{t.base+=e[n]})}}for(let[n,i]of[[`intrinsic-min`,e.min],[`intrinsic-max`,e.max]]){let e=t.filter(e=>e.limitKind===n&&!e.collapsed);if(e.length===0)continue;let a=i-(t.reduce((e,t)=>e+u(t),0)+r);if(a>0){let t=B(e.map(()=>1),a);e.forEach((e,n)=>{e.limit=u(e)+t[n]})}}}for(let e of s)e.collapsed||(e.limitKind===`fixed`?e.base=Math.min(e.base,e.limit):e.limitKind!==`fr`&&(e.limit=Math.max(e.base,e.limit??e.base)));if(o===void 0){let e=s.filter(e=>e.limitKind===`fr`&&!e.collapsed);if(e.length>0){let t=0;for(let n of e)n.frFactor>0&&(t=Math.max(t,n.base/n.frFactor));for(let e of n){let n=0,r=l(e.start,e.span);for(let t=e.start;t<e.start+e.span;t++){let e=s[t];e===void 0||e.collapsed||(e.limitKind===`fr`?n+=e.frFactor:r+=u(e))}n<=0||(t=Math.max(t,(e.max-r)/Math.max(n,1)))}for(let n of e){let e=Math.max(n.base,xe(n.frFactor*t));n.limit=e,r===`max-content`&&(n.base=e)}}if(r===`max-content`)for(let e of s)!e.collapsed&&e.limitKind!==`fr`&&(e.base=u(e))}else{let e=c.reduce((e,t)=>e+t,0),t=o-e-s.reduce((e,t)=>e+t.base,0);for(;!(t<=0);){let e=s.filter(e=>!e.collapsed&&e.limitKind!==`fr`&&e.base<u(e));if(e.length===0)break;let n=B(e.map(()=>1),t),r=0;if(e.forEach((e,t)=>{let i=Math.min(n[t],u(e)-e.base);e.base+=i,r+=i}),t-=r,r===0)break}let n=s.filter(e=>e.limitKind===`fr`);if(n.length>0){let t=Math.max(0,o-e-s.reduce((e,t)=>e+(t.limitKind===`fr`?0:t.base),0)),r=n,i=t,a=n.reduce((e,t)=>e+t.frFactor,0);for(a<1&&(i=Math.floor(i*a));;){let e=B(r.map(e=>e.frFactor),i),t=r.filter((t,n)=>e[n]<t.base);if(t.length===0){r.forEach((t,n)=>{t.base=Math.max(t.base,e[n])});break}for(let e of t)i-=e.base;if(i=Math.max(0,i),r=r.filter(e=>!t.includes(e)),r.length===0)break}}if(a){let t=o-e-s.reduce((e,t)=>e+t.base,0),n=s.filter(e=>!e.collapsed&&e.limitKind===`intrinsic-max`);if(t>0&&n.length>0){let e=B(n.map(()=>1),t);n.forEach((t,n)=>{t.base+=e[n]})}}}return{sizes:s.map(e=>e.base),gapBefore:c,limits:s.map(e=>u(e))}}function kt(e,t,n){let{sizes:r,gapBefore:i}=e,a=Math.max(0,t-At(e)),o=He(n===`stretch`?`start`:n,r,a),s=[],c=0;for(let e=0;e<r.length;e++)c+=i[e],s.push(o[e]+c);return s}function At(e){return e.sizes.reduce((e,t)=>e+t,0)+e.gapBefore.reduce((e,t)=>e+t,0)}function jt(e,t,n,r){let i=n+r-1;return e[n]===void 0||e[i]===void 0?0:e[i]+t[i]-e[n]}function Mt(e,t,n,r,i){let a=t??0,o=n??0,s=r-i;return t===null&&n===null?Math.floor(s/2):t===null?s-o:n===null?a:a+Ge(e,r,i+a+o)}function Nt(e,t,n){let r=e.columnWidth===null?null:Math.max(1,Math.floor((t+n)/(e.columnWidth+n)));return e.columnCount!==null&&r!==null?Math.max(1,Math.min(e.columnCount,r)):r===null?Math.max(1,e.columnCount??1):r}function Pt(e,t,n){let r=Nt(e,t,n),i=Math.max(1,Math.floor((t-(r-1)*n)/r)),a=Math.max(0,t-(r*i+(r-1)*n));return Array.from({length:r},(e,t)=>i+ +(t<a))}function Ft(e,t){let n=Math.max(typeof e.gapX==`number`?e.gapX:0,e.ruleX?.width??0);return e.columnCount===null?Math.max(e.columnWidth??1,t):e.columnCount*t+(e.columnCount-1)*n}function It(e,t){return e===void 0?t:t===void 0?e:Math.min(e,t)}function Lt(e,t,n){for(;e<t;){let r=e+t>>1;n(r)?t=r:e=r+1}return e}function Rt(e,t,n){let r=Nt(e,t,n),i=Math.max(1,Math.floor((t-(r-1)*n)/r));return{count:r,width:i,leftover:Math.max(0,t-(r*i+(r-1)*n))}}function zt(e,t,n){return e===`all`?!0:e===`around`?t||n:t&&n}function Bt(e,t,n,r){let i=Nn(e,Math.max(1,t.width-e.style.tracking)),{heights:a,textOffsets:o}=Pn(e,i),s=e.style.lineGap,c=Ht(a.map(e=>e+s)),l;if(e.style.columnFill===`auto`&&r!==void 0)l=Math.max(1,r);else{let e=Lt(c.reduce((e,t)=>Math.max(e,t.rows-s),1),Math.max(1,c.reduce((e,t)=>e+t.rows,0)-s),e=>Vt(c,s,e).columns<=t.count);l=r===void 0?e:Math.max(1,Math.min(e,r))}let u=Vt(c,s,l);return{spans:i,lineY:u.top,textY:u.top.map((e,t)=>e+o[t]),lineX:u.column.map(e=>e*(t.width+n)),totalRows:u.maxUsed,columnCount:t.count,columnWidth:t.width,gap:n,columnsUsed:i.length>0?u.columns:0}}function Vt(e,t,n,r=`truncate`){let i=0,a=0,o=0,s=[],c=[];for(let l=0;l<e.length;l++){let u=e[l],d=r===`glue`||l===0||a>0?u.pre:0;a>0&&(u.forced||a+d+u.rows+u.post-t>n)&&(r===`truncate`&&(d=0),i+=1,a=0);let f=u.rows/u.lines;if(u.lines>1&&u.rows-t>n){for(let e=0;e<u.lines;e++)a>0&&a+d+f-t>n&&(r===`truncate`&&(d=0),i+=1,a=0),s.push(i),c.push(a+d),a+=d+f,d=0,o=Math.max(o,a-t);a+=u.post,u.post>0&&(o=Math.max(o,a));continue}for(let e=0;e<u.lines;e++)s.push(i),c.push(a+d+e*f);a+=d+u.rows+u.post,o=Math.max(o,a-(u.post>0?0:t))}return{columns:i+1,maxUsed:o,column:s,top:c}}function Ht(e){return e.map(e=>({rows:e,pre:0,post:0,forced:!1,lines:1}))}var Ut=null;function H(){if(Ut!==null)return Ut;let e=document.createElement(`div`);e.style.cssText=`position:absolute;left:-9999px;visibility:hidden;columns:2;column-gap:0;column-fill:balance;width:200px;font:10px/20px monospace;orphans:1;widows:1`,e.innerHTML=`<div style="margin:0;padding:0 0 20px 0">aaaaaa aaaaaa aaaaaa</div><div style="margin:0"><span>bbbbbb</span> bbbbbb</div>`,document.body.appendChild(e);let t=e.getBoundingClientRect().top,n=e.querySelector(`span`).getBoundingClientRect();return e.remove(),Ut=!(n.width>0&&n.top-t>=10),Ut}function Wt(e,t,n,r){let i=e.style;if(!i.ruleX)return;let a=t.columnCount*t.columnWidth+(t.columnCount-1)*t.gap,o=t.ruleSegments??[{start:0,end:t.totalRows,columns:t.columnsUsed}],s=[];for(let e of o){let n=Math.min(e.columns,t.columnCount);for(let r=0;r<t.columnCount-1;r++)zt(i.ruleVisibilityItems,r<n,r+1<n)&&s.push({bandStart:(r+1)*t.columnWidth+r*t.gap,bandSize:t.gap,start:e.start,end:e.end})}e.decorationRuns=ye({glyphs:j(i.glyphSet),ruleX:i.ruleX,ruleY:null,vertical:Ie(s,i.ruleInset),horizontal:[],contentWidth:a,contentHeight:t.totalRows,border:n,borderStyle:i.borderStyle,borderColor:i.borderColor,padding:r})}function Gt(e,t){let n=e.style,r=n.padding;return e.text!==``&&e.children.length===0&&n.display===`block`&&n.position===`static`&&!n.columnSpan&&n.whiteSpace===`normal`&&n.lineGap===t.lineGap&&n.border.top===0&&n.border.right===0&&n.border.bottom===0&&n.border.left===0&&r.top===0&&r.right===0&&r.bottom===0&&r.left===0&&n.backgroundColor===void 0&&!n.backgroundClear&&n.overflow.x===`visible`&&n.overflow.y===`visible`&&(n.width===void 0||n.width.kind===`auto`)&&(n.height===void 0||n.height.kind===`auto`)&&(n.minWidth===`auto`||n.minWidth===0||n.minWidth===void 0)&&(n.minHeight===`auto`||n.minHeight===0||n.minHeight===void 0)&&n.maxWidth===void 0&&n.maxHeight===void 0}function Kt(e,t,n,r,i,a,o){let s=e.style,c=Fn(s,`x`,n),l=Rt(s,n,c);a.right+=l.leftover;let u=s.lineGap,d=i.left+a.left,f=i.top+a.top,p=n-l.leftover,m=[[]],h=[];for(let e of t)e.style.columnSpan?(h[m.length-1]=e,m.push([])):m[m.length-1].push(e);let g=m.length>1,_=g?`glue`:`truncate`,v=[],y=0,b=0;for(let e=0;e<m.length;e++){let t=m[e],n=0;if(t.length>0){let i=t.map(e=>({node:e,spans:Nn(e,Math.max(1,l.width-e.style.tracking)),margin:X(e.style.margin,l.width),pre:0,post:0})),a=[],o=null,h=null,x=!1;for(let e of i){let{node:t,spans:n,margin:r}=e,i=o===null?r.top??0:Vn(o,r.top??0),s=i;_===`glue`&&h!==null?(s=0,h.post=i,a[a.length-1].post=i):e.pre=i;let c=x||t.style.breakBeforeColumn;if(t.style.breakInsideAvoid&&n.length>0)a.push({rows:n.length*(1+u),pre:s,post:0,forced:c,lines:n.length});else for(let e=0;e<n.length;e++)a.push({rows:1+u,pre:e>0?0:s,post:0,forced:e===0&&c,lines:1});n.length>0&&(o=r.bottom??0,h=e),x=t.style.breakAfterColumn}n=o??0;let S;if(s.columnFill===`auto`&&r!==void 0)S=Math.max(1,r);else{let e=Lt(1,Math.max(1,Vt(a,u,1/0,_).maxUsed),e=>Vt(a,u,e,_).columns<=l.count);S=r===void 0?e:Math.max(1,Math.min(e,r))}let C=Vt(a,u,S,_);for(let e=0,t=0;e<i.length;e++){let{node:n,spans:r,margin:a,pre:o,post:s}=i[e],u=[],m=[];for(let e=0;e<r.length;e++,t++)u.push(y+C.top[t]),m.push(C.column[t]*(l.width+c));delete n.decorationRuns,n.multicolGeometry={spans:r,lineY:u,textY:u,lineX:m,totalRows:y+C.maxUsed,columnCount:l.count,columnWidth:l.width,gap:c,columnsUsed:C.columns},n.multicolFlow=g?{top:o,right:a.right,bottom:s,left:a.left}:a,n.localRect={x:d,y:f,width:p,height:C.maxUsed},n.resolvedPadding={top:0,right:0,bottom:0,left:0}}a.length>0&&(v.push({start:y,end:y+C.maxUsed,columns:C.columns}),b=Math.max(b,C.columns),y+=C.maxUsed+(e<m.length-1?u:0))}let i=h[e];if(i){let e=X(i.style.margin,p),t=(e.left??0)+(e.right??0);J(i,Math.max(0,p-t),void 0,0,0,`fill`,o);let r=Bn(e,p,i.localRect.width),a=(e.top??0)+n;y+=a,i.localRect={...i.localRect,x:d+r,y:f+y},i.multicolFlowSpan={top:a,right:0,bottom:e.bottom??0,left:r},y+=i.localRect.height+(e.bottom??0)}}let x=y;for(let t of e.children){if(!q(t.style))continue;let e=X(t.style.margin,n);t.staticSlot={kind:`block`,x:d+(e.left??0),y:f+(e.top??0)}}return e.multicolGeometry={spans:[],lineY:[],textY:[],lineX:[],totalRows:x,columnCount:l.count,columnWidth:l.width,gap:c,columnsUsed:b,...g?{ruleSegments:v,nativeBalance:!0}:{}},x}function qt(e,t,n,r,i,a,o){let s=e.style,c=It(n,r),l=e.children.filter(e=>!q(e.style)),u=l.filter(e=>!e.style.columnSpan),d=l.reduce((e,t,n)=>!t.style.columnSpan&&(n===0||l[n-1].style.columnSpan)?e+1:e,0);if(u.length>0&&u.every(e=>Gt(e,s))&&(u.length===l.length||s.columnFill===`balance`&&c===void 0&&(H()||d<=1&&u.every(e=>(e.style.margin.top===0||e.style.margin.top===null)&&(e.style.margin.bottom===0||e.style.margin.bottom===null)))))return Kt(e,l,t,c,i,a,o);let f=Fn(s,`x`,t),p=Pt(s,t,f),m=p.length,h=[];{let e=0;for(let t of p)h.push(e),e+=t+f}let g=e=>e<m?h[e]:h[m-1]+(e-m+1)*(p[m-1]+f),_=e=>p[Math.min(e,m-1)],v=p[m-1],y=i.left+a.left,b=i.top+a.top,x=[],S=0,C=[],w=[],T=!1,E=(e,t)=>{let r=0,i=0,a=null,s=0,c=e=>{if(t)for(let t of w){if(t.index!==e)continue;let n=a===null?t.margin.top??0:Vn(a,t.margin.top??0);t.child.staticSlot={kind:`block`,x:y+g(r)+(t.margin.left??0),y:b+S+i+n}}};for(let l=0;l<C.length;l++){let u=C[l];c(l);let d=a===null?l===0?u.margin.top??0:0:Vn(a,u.margin.top??0),f=u.node.localRect.height;if(a!==null&&(u.breakBefore||i+d+f>e)&&(r+=1,i=0,a=null,d=0),t){let e=u.node,t=_(r);if(t!==v){let r=(u.margin.left??0)+(u.margin.right??0);J(e,Math.max(0,t-r),n,0,0,`fill`,o)}e.localRect={...e.localRect,x:y+g(r)+Bn(u.margin,t,e.localRect.width),y:b+S+i+d}}i+=d+u.node.localRect.height,s=Math.max(s,i),a=u.margin.bottom??0}return c(C.length),{columns:r+1,maxUsed:s}},D=()=>{if(C.length===0){for(let e of w)e.child.staticSlot={kind:`block`,x:y+(e.margin.left??0),y:b+S+(e.margin.top??0)};w=[];return}let e=c===void 0?void 0:Math.max(1,c-S),t=s.columnFill===`auto`&&e!==void 0,r;if(t)r=e;else{let t=Lt(1,E(1/0,!1).maxUsed,e=>E(e,!1).columns<=m);r=e===void 0?t:Math.min(t,e)}let i=E(r,!0),a=t&&n!==void 0?Math.max(i.maxUsed,r):i.maxUsed;if(s.ruleX)for(let e=0;e<m-1;e++){let t=Math.min(i.columns,m);zt(s.ruleVisibilityItems,e<t,e+1<t)&&x.push({bandStart:h[e]+p[e],bandSize:f,start:S,end:S+a})}S+=a,C=[],w=[]};for(let r of e.children){if(q(r.style)){w.push({child:r,margin:X(r.style.margin,t),index:C.length});continue}if(r.style.columnSpan){D(),T=!1;let e=X(r.style.margin,t),i=(e.left??0)+(e.right??0);J(r,Math.max(0,t-i),n,0,0,`fill`,o),S+=e.top??0,r.localRect={...r.localRect,x:y+Bn(e,t,r.localRect.width),y:b+S},S+=r.localRect.height+(e.bottom??0);continue}let e=X(r.style.margin,v),i=(e.left??0)+(e.right??0);J(r,Math.max(0,v-i),n,0,0,`fill`,o),C.push({node:r,margin:e,breakBefore:T||r.style.breakBeforeColumn}),T=r.style.breakAfterColumn}return D(),s.ruleX&&x.length>0&&(e.decorationRuns=ye({glyphs:j(s.glyphSet),ruleX:s.ruleX,ruleY:null,vertical:Ie(x,s.ruleInset),horizontal:[],contentWidth:t,contentHeight:S,border:i,borderStyle:s.borderStyle,borderColor:s.borderColor,padding:a})),S}function Jt(e,n){e.hidden.push(n),n.style.tableRole!==`column`&&n.style.tableRole!==`column-group`&&t(n.source,`Table content outside the expected structure (rows in tables, cells in rows) can't be laid out and was hidden — no anonymous table boxes (specs/table.md).`)}function Yt(e,t){let n=Number.parseInt(e.getAttribute(t)??``,10);return Number.isNaN(n)?1:t===`colspan`?Math.min(1e3,Math.max(1,n)):Math.min(65534,Math.max(0,n))}function Xt(e,t,n){let r=(t,r)=>{let i=t.style.width,a=i&&i.kind!==`auto`&&i.kind!==`percent`?qn(i,0,t,n):void 0,o=i&&i.kind===`percent`?i.value:void 0;for(let t=0;t<r;t++)e.colFixed.push(a),e.colPercent.push(o)};if(t.style.tableRole===`column`){r(t,Zt(t.source));return}let i=t.children.filter(e=>e.style.tableRole===`column`);if(i.length===0)r(t,Zt(t.source));else for(let e of i)r(e,Zt(e.source));for(let n of t.children)n.style.tableRole!==`column`&&Jt(e,n)}function Zt(e){let t=Number.parseInt(e.getAttribute(`span`)??``,10);return Number.isNaN(t)?1:Math.min(1e3,Math.max(1,t))}function Qt(e,t){let n={caption:null,rows:[],rowGroups:[],groupEnds:[],cells:[],columnCount:0,colFixed:[],colPercent:[],hidden:[]},r=[],i=[],a=[];for(let o of e.children){if(q(o.style))continue;let e=o.style.tableRole;if(e===`row`)i.push({row:o,group:null});else if(e===`header-group`||e===`row-group`||e===`footer-group`){let t=e===`header-group`?r:e===`footer-group`?a:i;for(let e of o.children)q(e.style)||(e.style.tableRole===`row`?t.push({row:e,group:o}):Jt(n,e))}else e===`caption`?n.caption===null?n.caption=o:Jt(n,o):e===`column`||e===`column-group`?(Xt(n,o,t),n.hidden.push(o)):Jt(n,o)}let o=[...r,...i,...a],s=0;for(let e=0;e<o.length;e++){n.rows.push(o[e].row),n.rowGroups.push(o[e].group);let t=o[e+1]?.group;if(!(e+1<o.length&&(o[e].group===t||o[e].group===null&&t===null))){for(let t=s;t<=e;t++)n.groupEnds.push(e+1);s=e+1}}return $t(n),n}function $t(e){let t=[];for(let n=0;n<e.rows.length;n++){let r=e.rows[n],i=0;for(let a of r.children){if(q(a.style))continue;if(a.style.tableRole!==`cell`){Jt(e,a);continue}for(;(t[i]??0)>n;)i++;let o=Yt(a.source,`colspan`),s=Yt(a.source,`rowspan`),c=e.groupEnds[n],l=Math.max(1,Math.min(s===0?c-n:s,c-n));for(let e=i;e<i+o;e++)t[e]=Math.max(t[e]??0,n+l);e.cells.push({node:a,rowNode:r,row:n,col:i,rowSpan:l,colSpan:o}),i+=o}}e.columnCount=Math.max(t.length,e.colFixed.length)}function en(e,t,n){let r=e.style,i=Zn(e,n),a;if(t===`min`)a=i;else{let t=r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`?qn(r.width,0,e,n):void 0;a=t===void 0?Jn(e,n):Math.max(i,t)}let o=typeof r.minWidth==`number`?r.minWidth:0,s=typeof r.maxWidth==`number`?r.maxWidth:void 0;return Math.max(0,An(a,o,s))}function U(e){let t=e.style.width;return t&&t.kind===`percent`?t.value:void 0}function W(e,t,n){let r=e.columnCount,i=Array.from({length:r},()=>0),a=Array.from({length:r},()=>0),o=Array.from({length:r},()=>void 0);for(let t=0;t<r;t++)e.colFixed[t]!==void 0&&(a[t]=e.colFixed[t]),o[t]=e.colPercent[t];let s=[];for(let t of e.cells){if(t.colSpan>1){s.push(t);continue}i[t.col]=Math.max(i[t.col],en(t.node,`min`,n)),a[t.col]=Math.max(a[t.col],en(t.node,`max`,n));let e=U(t.node);e!==void 0&&(o[t.col]=Math.max(o[t.col]??0,e))}s.sort((e,t)=>e.colSpan-t.colSpan);for(let e of s){let r=e.col,o=e.col+e.colSpan,s=on(t,r,o),c=a.slice(r,o);for(let t of[`min`,`max`]){let l=t===`min`?i:a,u=l.slice(r,o).reduce((e,t)=>e+t,0)+s,d=en(e.node,t,n)-u;if(d<=0)continue;let f=B(c.some(e=>e>0)?c:c.map(()=>1),d);for(let e=r;e<o;e++)l[e]+=f[e-r]}}for(let e=0;e<r;e++)a[e]=Math.max(a[e],i[e]);return{min:i,max:a,percent:o}}function tn(e,t){let n=e.min.length,r=e.min.slice(),i=[],a=[];for(let t=0;t<n;t++)(e.percent[t]===void 0?a:i).push(t);if(i.length>0){let n=i.reduce((t,n)=>t+e.percent[n],0),o=Math.max(100,n);for(let n of i){let i=Math.round(t*e.percent[n]/o);r[n]=Math.max(e.min[n],i)}let s=a.reduce((t,n)=>t+e.min[n],0),c=i.reduce((e,t)=>e+r[t],0)-(t-s);if(c>0){let t=i.map(t=>r[t]-e.min[t]),n=B(t,Math.min(c,t.reduce((e,t)=>e+t,0)));i.forEach((e,t)=>r[e]-=n[t])}}let o=t-r.reduce((e,t)=>e+t,0);if(o>0&&a.length>0){let t=a.map(t=>e.max[t]-e.min[t]),n=t.reduce((e,t)=>e+t,0),i=B(t,Math.min(o,n));a.forEach((e,t)=>r[e]+=i[t]),o-=Math.min(o,n)}if(o>0){let t=a.length>0?a:i;if(t.length>0){let n=t.map(t=>e.max[t]),i=B(n.some(e=>e>0)?n:n.map(()=>1),o);t.forEach((e,t)=>r[e]+=i[t])}}return r}function G(e,t,n){let r=e.columnCount,i=Array.from({length:r},()=>void 0);for(let n=0;n<r;n++)e.colFixed[n]===void 0?e.colPercent[n]!==void 0&&(i[n]=Math.max(0,Math.round(t*e.colPercent[n]/100))):i[n]=e.colFixed[n];for(let r of e.cells){if(r.row!==0)continue;let e=r.node.style,a;if(e.width&&e.width.kind===`percent`?a=Math.max(0,Math.round(t*e.width.value/100)):e.width&&e.width.kind!==`auto`&&(a=qn(e.width,0,r.node,n)),a===void 0)continue;let o=B(Array.from({length:r.colSpan},()=>1),a);for(let e=0;e<r.colSpan;e++){let t=r.col+e;i[t]===void 0&&(i[t]=o[e])}}let a=i.reduce((e,t)=>e+(t??0),0),o=i.filter(e=>e===void 0).length;if(o>0){let e=B(Array.from({length:o},()=>1),Math.max(0,t-a)),n=0;for(let t=0;t<r;t++)i[t]===void 0&&(i[t]=e[n++])}return i.map(e=>e??0)}var K={double:3,solid:2,dashed:1,dotted:0};function nn(e){for(let{border:t,side:n}of e)if(t?.hidden[n])return null;let t=null;for(let{border:n,side:r}of e){if(!n)continue;let e=n.width[r];if(e<=0)continue;let i=n.style[r];(t===null||e>t.width||e===t.width&&K[i]>K[t.style])&&(t={width:e,style:i,color:n.color[r]})}return t}function rn(e,t){let n=t.columnCount,r=t.rows.length,i=e.style.borderCollapse,a={collapsed:i,vLines:Array.from({length:n+1},()=>0),hLines:Array.from({length:r+1},()=>0),spacingX:i?0:e.style.borderSpacingX,spacingY:i?0:e.style.borderSpacingY,vSegments:[],hSegments:[]};if(!i||n===0||r===0)return a;let o=Array.from({length:r},()=>Array.from({length:n},()=>void 0));for(let e of t.cells)for(let t=e.row;t<e.row+e.rowSpan;t++)for(let n=e.col;n<e.col+e.colSpan;n++)o[t][n]=e;let s=e.style.latticeBorder;for(let e=0;e<=n;e++){let i=[];for(let a=0;a<r;a++){let r=e>0?o[a][e-1]:void 0,c=e<n?o[a][e]:void 0;if(r!==void 0&&r===c){i.push(null);continue}let l=[];r&&r.col+r.colSpan===e&&l.push({border:r.node.style.latticeBorder,side:`right`}),c&&c.col===e&&l.push({border:c.node.style.latticeBorder,side:`left`});let u=e===0?`left`:e===n?`right`:null;if(u){l.push({border:t.rows[a].style.latticeBorder,side:u});let e=t.rowGroups[a];e&&l.push({border:e.style.latticeBorder,side:u}),l.push({border:s,side:u})}i.push(nn(l))}a.vSegments.push(i),a.vLines[e]=i.reduce((e,t)=>Math.max(e,t?.width??0),0)}for(let e=0;e<=r;e++){let i=[];for(let a=0;a<n;a++){let n=e>0?o[e-1][a]:void 0,c=e<r?o[e][a]:void 0;if(n!==void 0&&n===c){i.push(null);continue}let l=[];n&&n.row+n.rowSpan===e&&l.push({border:n.node.style.latticeBorder,side:`bottom`}),c&&c.row===e&&l.push({border:c.node.style.latticeBorder,side:`top`}),e>0&&l.push({border:t.rows[e-1].style.latticeBorder,side:`bottom`}),e<r&&l.push({border:t.rows[e].style.latticeBorder,side:`top`});let u=e>0?t.rowGroups[e-1]:null,d=e<r?t.rowGroups[e]:null;u&&u!==d&&l.push({border:u.style.latticeBorder,side:`bottom`}),d&&d!==u&&l.push({border:d.style.latticeBorder,side:`top`}),e===0&&l.push({border:s,side:`top`}),e===r&&l.push({border:s,side:`bottom`}),i.push(nn(l))}a.hSegments.push(i),a.hLines[e]=i.reduce((e,t)=>Math.max(e,t?.width??0),0)}return a}function an(e,t){return e.collapsed?e.vLines.reduce((e,t)=>e+t,0):(t+1)*e.spacingX}function on(e,t,n){if(!e.collapsed)return e.spacingX*(n-t-1);let r=0;for(let i=t+1;i<n;i++)r+=e.vLines[i];return r}function sn(e,t,n){if(!e.collapsed)return e.spacingY*(n-t-1);let r=0;for(let i=t+1;i<n;i++)r+=e.hLines[i];return r}function cn(e,t){let n=t.tableData.get(e);if(n)return n;let r=Qt(e,t),i=rn(e,r),a={structure:r,chrome:i,bounds:W(r,i,t),chromeX:an(i,r.columnCount)};return t.tableData.set(e,a),a}function ln(e,t){let{structure:n,bounds:r,chromeX:i}=cn(e,t),a=r.min.reduce((e,t)=>e+t,0)+i,o=r.max.reduce((e,t)=>e+t,0)+i;return n.caption&&(a=Math.max(a,Zn(n.caption,t)),o=Math.max(o,Jn(n.caption,t))),{min:a,max:o}}function un(e,t,n){let r=e.style,{bounds:i,chromeX:a}=cn(e,n),{min:o,max:s}=ln(e,n),c=r.border.left+r.border.right+Y(r.padding.left,t)+Y(r.padding.right,t)+et(r).right,l=i.max.reduce((e,t)=>e+t,0),u=0,d=0;for(let e=0;e<i.max.length;e++){let t=i.percent[e];t===void 0?d+=i.max[e]:u+=t}if(u>=100)l=1/0;else if(u>0){for(let e=0;e<i.max.length;e++){let t=i.percent[e];t!==void 0&&t>0&&(l=Math.max(l,Math.ceil(i.max[e]*100/t)))}l=Math.max(l,Math.ceil(d*100/(100-u)))}let f=Math.max(l+a,s)+c;return Math.max(o+c,Math.min(f,t))}function dn(e,t,n,r,i,a){let{structure:o,chrome:s,bounds:c}=cn(e,a),l=o.columnCount,u=o.rows.length,d=r.left+i.left,f=r.top+i.top;for(let e of o.hidden)e.tableHidden=!0,e.localRect={x:0,y:0,width:0,height:0},e.resolvedPadding={top:0,right:0,bottom:0,left:0},e.unclampedHeight=0;let p=Math.max(0,t-an(s,l)),m=e.style,h=m.tableLayout===`fixed`&&m.width!==void 0&&m.width.kind!==`auto`?G(o,p,a):tn(c,p),g=[],_=0;for(let e=0;e<l;e++)_+=s.collapsed?s.vLines[e]:s.spacingX,g.push(_),_+=h[e];let v=_+(s.collapsed?s.vLines[l]??0:s.spacingX),y=0;o.caption&&(J(o.caption,t,void 0,d,f,`fill`,a),y=o.caption.localRect.height);let b=new Map,x=new Map;for(let e of o.cells){let t=e.col+e.colSpan,n=h.slice(e.col,t).reduce((e,t)=>e+t,0)+on(s,e.col,t);x.set(e,n),J(e.node,n,void 0,0,0,`fill`,a,{width:n}),b.set(e,e.node.localRect.height)}let S=s.collapsed?s.hLines.reduce((e,t)=>e+t,0):(u+1)*s.spacingY,C=n===void 0?void 0:Math.max(0,n-y-S),w=e=>e!==void 0&&e.kind===`percent`&&C!==void 0?F(e.value,C):0,T=Array.from({length:u},()=>0),E=Array.from({length:u},()=>!1);for(let e=0;e<u;e++){let t=o.rows[e].style.height;t!==void 0&&t.kind===`cells`&&(T[e]=t.value);let n=w(t);n>0&&(T[e]=Math.max(T[e],n),E[e]=!0)}for(let e of o.cells)if(e.rowSpan===1){let t=w(e.node.style.height);t>0&&(E[e.row]=!0),T[e.row]=Math.max(T[e.row],b.get(e),t)}let D=o.cells.filter(e=>e.rowSpan>1).sort((e,t)=>e.rowSpan-t.rowSpan);for(let e of D){let t=e.row+e.rowSpan,n=T.slice(e.row,t).reduce((e,t)=>e+t,0)+sn(s,e.row,t),r=b.get(e)-n;if(r<=0)continue;let i=B(Array.from({length:e.rowSpan},()=>1),r);for(let n=e.row;n<t;n++)T[n]+=i[n-e.row]}if(n!==void 0&&u>0){let e=n-y-S-T.reduce((e,t)=>e+t,0);if(e>0){let t=[];for(let e=0;e<u;e++)E[e]||t.push(e);let n=t.length>0?t:Array.from({length:u},(e,t)=>t),r=B(n.map(()=>1),e);n.forEach((e,t)=>T[e]+=r[t])}}let O=o.caption&&e.style.captionSide===`top`?y:0,k=[],A=O;for(let e=0;e<u;e++)A+=s.collapsed?s.hLines[e]:s.spacingY,k.push(A),A+=T[e];let ee=u>0?A+(s.collapsed?s.hLines[u]??0:s.spacingY):O,te=new Map;for(let e=0;e<u;e++){let t=o.rowGroups[e];t&&!te.has(t)&&te.set(t,k[e])}for(let[e,t]of te){let n=t;for(let t=0;t<u;t++)o.rowGroups[t]===e&&(n=k[t]+T[t]);e.localRect={x:d,y:f+t,width:v,height:n-t},e.resolvedPadding={top:0,right:0,bottom:0,left:0},e.unclampedHeight=n-t}for(let e=0;e<u;e++){let t=o.rows[e],n=o.rowGroups[e],r=n?te.get(n):void 0;t.localRect={x:r===void 0?d:0,y:r===void 0?f+k[e]:k[e]-r,width:v,height:T[e]},t.resolvedPadding={top:0,right:0,bottom:0,left:0},t.unclampedHeight=T[e]}for(let e of o.cells){let t=e.row+e.rowSpan,n=T.slice(e.row,t).reduce((e,t)=>e+t,0)+sn(s,e.row,t);e.node.children.some(e=>!q(e.style)&&e.style.height?.kind===`percent`)&&n!==b.get(e)&&J(e.node,x.get(e),n,0,0,`fill`,a,{width:x.get(e),height:n}),fn(e.node,n-(e.node.naturalContentHeight??e.node.localRect.height)),e.node.localRect={x:g[e.col],y:0,width:e.node.localRect.width,height:n}}for(let t of e.children)q(t.style)&&(t.staticSlot={kind:`block`,x:d,y:f});return o.caption&&e.style.captionSide===`bottom`&&(o.caption.localRect.y=f+ee),s.collapsed&&l>0&&u>0&&(e.decorationRuns=pn(s,o,h,T,g,k,d,f,j(e.style.glyphSet))),e.style.captionSide===`bottom`?ee+y:ee}function fn(e,t){if(t<=0)return;let n=e.style.verticalAlign,r=n===`center`?Math.floor(t/2):n===`end`?t:0;if(!e.children.some(e=>!q(e.style)&&!e.inlineBox)){e.resolvedPadding.top+=r,e.resolvedPadding.bottom+=t-r;return}if(!(r<=0))for(let t of e.children)t.inlineBox||(q(t.style)?t.staticSlot?.kind===`block`&&(t.staticSlot.y+=r):t.localRect.y+=r)}function pn(e,t,n,r,i,a,o,s,c){let l=t.columnCount,u=t.rows.length,d=[],f=t=>t<l?i[t]-e.vLines[t]:i[l-1]+n[l-1],p=t=>t<u?a[t]-e.hLines[t]:a[u-1]+r[u-1];for(let t=0;t<=l;t++){let n=e.vSegments[t];for(let e=0;e<u;e++){let i=n[e];if(!i)continue;let l=ge(i.style,`v`,c);for(let n=0;n<i.width;n++)for(let c=a[e];c<a[e]+r[e];c++)d.push({glyph:l,x:o+f(t)+n,y:s+c,length:1,color:i.color})}}for(let t=0;t<=u;t++){let r=e.hSegments[t];for(let e=0;e<l;e++){let a=r[e];if(!a)continue;let l=ge(a.style,`h`,c);for(let r=0;r<a.width;r++)d.push({glyph:l,x:o+i[e],y:s+p(t)+r,length:n[e],color:a.color})}}for(let t=0;t<=l;t++)if(!(e.vLines[t]<=0))for(let n=0;n<=u;n++){if(e.hLines[n]<=0)continue;let r=n>0?e.vSegments[t][n-1]:null,i=n<u?e.vSegments[t][n]:null,a=t>0?e.hSegments[n][t-1]:null,m=t<l?e.hSegments[n][t]:null,h=[r,i,a,m].filter(e=>e!==null);if(h.length===0)continue;let g=h.every(e=>e.style===`double`)?`double`:`solid`,_=h.reduce((e,t)=>t.width>e.width||t.width===e.width&&K[t.style]>K[e.style]?t:e),v=M(g,r!==null,i!==null,a!==null,m!==null,c);for(let r=0;r<e.vLines[t];r++)for(let i=0;i<e.hLines[n];i++)d.push({glyph:v,x:o+f(t)+r,y:s+p(n)+i,length:1,color:_.color})}return d}function mn(e){return e.position===`absolute`||e.position===`fixed`?`absolute`:e.position===`relative`||e.position===`sticky`?`relative`:`static`}function hn(e,t,n,r,i){for(let a of e.children){let o=mn(a.style);if(o===`relative`){let t=e.localRect.width-e.style.border.left-e.style.border.right-e.resolvedPadding.left-e.resolvedPadding.right,n=e.localRect.height-e.style.border.top-e.style.border.bottom-e.resolvedPadding.top-e.resolvedPadding.bottom;a.localRect.x+=gn(a.style.insets.left,a.style.insets.right,t),a.localRect.y+=gn(a.style.insets.top,a.style.insets.bottom,n)}else o===`absolute`&&vn(a,e,t,n,r,i);hn(a,t+a.localRect.x,n+a.localRect.y,[...r,{node:a,absX:t+a.localRect.x,absY:n+a.localRect.y}],i)}}function gn(e,t,n){return e===null?t===null?0:-Y(t,n):Y(e,n)}function _n(e,t){if(!t)for(let t=e.length-1;t>0;t--){let n=e[t];if(!En(n.node.style))continue;let r=n.node.style.border;return{x:n.absX+r.left,y:n.absY+r.top,width:Math.max(0,n.node.localRect.width-r.left-r.right),height:Math.max(0,n.node.localRect.height-r.top-r.bottom)}}let n=e[0];return{x:n.absX,y:n.absY,width:n.node.localRect.width,height:n.node.localRect.height}}function vn(e,t,n,r,i,a){let o=e.style,s=o.position===`fixed`,c=e.staticSlot,l=c?.kind===`grid`&&!s&&En(t.style)?{x:n+c.area.x,y:r+c.area.y,width:c.area.width,height:c.area.height}:_n(i,s),u=o.insets.left===null?null:Y(o.insets.left,l.width),d=o.insets.right===null?null:Y(o.insets.right,l.width),f=o.insets.top===null?null:Y(o.insets.top,l.height),p=o.insets.bottom===null?null:Y(o.insets.bottom,l.height),m=X(o.margin,l.width),h=m.left??0,g=m.right??0,_=m.top??0,v=m.bottom??0,y=o.width===void 0||o.width.kind===`auto`,b=o.height===void 0||o.height.kind===`auto`,x=Rn(o.minWidth,l.width,e,a)??0,S=Rn(o.maxWidth,l.width,e,a),C={};if(!y)C.width=An(qn(o.width,l.width,e,a),x,S);else if(u!==null&&d!==null)C.width=An(Math.max(0,l.width-u-d-h-g),x,S);else{let t=Math.max(0,l.width-(u??0)-(d??0)-h-g);C.width=An(Math.min(Jn(e,a),Math.max(Zn(e,a),t)),x,S)}f!==null&&p!==null&&b&&(C.height=An(Math.max(0,l.height-f-p-_-v),Ln(o.minHeight,l.height)??0,Ln(o.maxHeight,l.height))),J(e,l.width,l.height,0,0,`shrink`,a,C);let w=e.localRect.width,T=e.localRect.height,E;if(u!==null&&d!==null){let e=Math.max(0,l.width-u-d-w-h-g),t=m.left===null&&m.right===null;E=l.x+u+h+(t?Math.floor(e/2):m.left===null?e:0)}else E=u===null?d===null?Cn(e,t,n,w):l.x+l.width-d-w-g:l.x+u+h;let D;if(f!==null&&p!==null){let e=Math.max(0,l.height-f-p-T-_-v),t=m.top===null&&m.bottom===null;D=l.y+f+_+(t?Math.floor(e/2):m.top===null?e:0)}else D=f===null?p===null?wn(e,t,r,T):l.y+l.height-p-T-v:l.y+f+_;e.localRect={...e.localRect,x:E-n,y:D-r}}function yn(e,t,n){return He(e,[n],Math.max(0,t-n))[0]}function bn(e,t,n,r){return Ge(We(e,t),n,r)}function xn(e,t,n,r,i){let a=X(e.style.margin,n.innerWidth),[o,s,c,l]=r===`x`?[a.left??0,a.right??0,n.innerWidth,n.direction===`row`]:[a.top??0,a.bottom??0,n.innerHeight,n.direction===`column`],u=i+o+s;return(l?yn(Ye(t.style),c,u):bn(e,t,c,u))+o}function Sn(e,t,n,r,i){let a=X(e.style.margin,n.width),o=e.style.justifySelf===`auto`?t.style.justifyItems:e.style.justifySelf,[s,c,l,u]=r===`x`?[a.left??0,a.right??0,n.width,o]:[a.top??0,a.bottom??0,n.height,We(e,t)];return Ge(u,l,i+s+c)+s}function Cn(e,t,n,r){let i=e.staticSlot;return i===void 0?n:i.kind===`block`?n+i.x:i.kind===`grid`?n+i.staticArea.x+Sn(e,t,i.staticArea,`x`,r):n+i.originX+xn(e,t,i,`x`,r)}function wn(e,t,n,r){let i=e.staticSlot;return i===void 0?n:i.kind===`block`?n+i.y:i.kind===`grid`?n+i.staticArea.y+Sn(e,t,i.staticArea,`y`,r):n+i.originY+xn(e,t,i,`y`,r)}function Tn(e,t){let n=Dn();J(e,t,void 0,0,0,`fill`,n),hn(e,0,0,[{node:e,absX:0,absY:0}],n);let r=e.localRect.height,i=Un(e),{overflow:a}=e.style;return a.x===`visible`&&(e.localRect.width=Math.max(e.localRect.width,i.x)),a.y===`visible`&&(e.localRect.height=Math.max(r,i.y)),{height:r}}function q(e){return e.position===`absolute`||e.position===`fixed`}function En(e){return e.position!==`static`}function Dn(){return{maxContent:new WeakMap,minContent:new WeakMap,gridIntrinsic:new WeakMap,tableData:new WeakMap}}function J(e,t,n,r,i,a,o,s){let c=e.style,l=s?.height;delete e.decorationRuns,delete e.multicolGeometry,delete e.multicolFlow,delete e.multicolFlowSpan,delete e.textExtent;let u=Rn(c.minWidth,t,e,o)??0,d=Rn(c.maxWidth,t,e,o),f=Ln(c.minHeight,n)??0,p=Ln(c.maxHeight,n),m=et(c),h=$e(c);s?.gutter?.right&&(m.right=h.right),s?.gutter?.bottom&&(m.bottom=h.bottom);let g={top:Y(c.padding.top,t),right:Y(c.padding.right,t)+m.right,bottom:Y(c.padding.bottom,t)+m.bottom,left:Y(c.padding.left,t)};e.resolvedPadding=g;let _=s?.width??An(Hn(c,t,a,e,o),u,d),v=Kn(c,n),y=$n(_,l??v??(f>0?f:void 0)??1/0,c.border,g),b=l!==void 0||v!==void 0,x=p===void 0?void 0:Math.max(0,p-c.border.top-c.border.bottom-g.top-g.bottom),S=kn(e),C=(t,n)=>{let r=n&&Number.isFinite(t)?t:void 0;return S?On(e,y.width,t,r,x,g,o):c.display===`flex`&&c.flexDirection===`row`?Le(e,y.width,t,r,c.border,g,o):c.display===`flex`?ze(e,y.width,t,n,c.border,g,o):c.display===`grid`?it(e,y.width,t,c.border,g,o):c.display===`table`?dn(e,y.width,r,c.border,g,o):c.display===`multicol`?qt(e,y.width,r,x,c.border,g,o):zn(e,y.width,r,c.border,g,o)},w=C(y.height,b);if(!S&&(c.display===`flex`||c.display===`grid`)&&!b&&p!==void 0){let e=c.border.top+c.border.bottom+g.top+g.bottom,t=An(w+e,f,p)-e;t<w&&(w=C(Math.max(0,t),!0))}let T=w+c.border.top+c.border.bottom+g.top+g.bottom,E=l??v??T;e.unclampedHeight=E,e.naturalContentHeight=T;let D=An(E,f,p),O=e.multicolGeometry;if(O){let t=D-c.border.top-c.border.bottom-g.top-g.bottom;t>O.totalRows&&(g.bottom+=t-O.totalRows),Wt(e,O,c.border,g)}if(e.localRect={x:r,y:i,width:_,height:D},Ze(c.overflow.x)||Ze(c.overflow.y)){let l=Un(e),u=Math.max(0,l.x-c.border.left-g.left),d=Math.max(0,l.y-c.border.top-g.top),f=Math.max(0,_-c.border.left-c.border.right-g.left-g.right),p=Math.max(0,D-c.border.top-c.border.bottom-g.top-g.bottom);if(e.scrollRange={sizeX:u,sizeY:d,maxX:Ze(c.overflow.x)?Math.max(0,u-f):0,maxY:Ze(c.overflow.y)?Math.max(0,d-p):0},c.scrollbarWidth!==`none`){let l=s?.gutter??{right:!1,bottom:!1},u=l.right||c.overflow.y===`auto`&&e.scrollRange.maxY>0,d=l.bottom||c.overflow.x===`auto`&&e.scrollRange.maxX>0;if(u!==l.right||d!==l.bottom){J(e,t,n,r,i,a,o,{...s,gutter:{right:u,bottom:d}});return}}e.scrollGutterCells={right:m.right,bottom:m.bottom}}else delete e.scrollRange,delete e.scrollGutterCells}function On(e,t,n,r,i,a,o){let s=e.style,c;if(e.text){let l=Qe(e);ke(e.text,(n,r)=>{let i=l[r];J(i,t,void 0,0,0,`shrink`,o),e.advances[n]=Math.max(1,i.localRect.width)});let u,d;if(s.display===`multicol`){let n=Fn(s,`x`,t),o=Rt(s,t,n);a.right+=o.leftover;let c=Bt(e,o,n,It(r,i));e.multicolGeometry=c,u=c,d=c.lineX}else u=Mn(e,t);if(c=u.totalRows,e.textExtent={width:u.spans.reduce((t,n)=>Math.max(t,Ee(n.start,n.end,e.advances,s.tracking)),0),rows:u.totalRows},jn(e,u,t,n,a),l.length>0){let t=e=>u.spans.findIndex(t=>e>=t.start&&e<t.end);ke(e.text,(n,r)=>{let i=t(n);if(i===-1)return;let o=u.spans[i];l[r].localRect={...l[r].localRect,x:s.border.left+a.left+(d?.[i]??0)+Te(o.start,n,e.advances),y:s.border.top+a.top+u.lineY[i]}})}}else c=e.intrinsicHeight;for(let n of e.children){if(n.inlineBox)continue;let e=X(n.style.margin,t);n.staticSlot={kind:`block`,x:s.border.left+a.left+(e.left??0),y:s.border.top+a.top+(e.top??0)}}return c}function kn(e){return e.children.some(e=>!q(e.style)&&!e.inlineBox)?!1:e.text!==``||e.style.display!==`flex`&&e.style.display!==`grid`}function An(e,t,n){return Math.max(t,n===void 0?e:Math.min(e,n))}function jn(e,t,n,r,i){let a=e.style;if(a.display!==`flex`&&a.display!==`grid`||t.spans.length===0)return;let o=a.display===`flex`&&a.flexDirection===`column`,s=t.spans.reduce((t,n)=>Math.max(t,Ee(n.start,n.end,e.advances,a.tracking)),0),c=Math.max(0,n-s);if(c>0){let e=a.display===`grid`?Ge(a.justifyItems,n,s):o?Ge(a.alignItems,n,s):He(Ye(a),[s],c)[0];e>0&&(i.left+=e,i.right+=c-e)}if(Number.isFinite(r)){let e=Math.max(0,r-t.totalRows);if(e>0){let n=a.display===`grid`||!o?Ge(a.alignItems,r,t.totalRows):He(Ye(a),[t.totalRows],e)[0];n>0&&(i.top+=n,i.bottom+=e-n)}}}function Mn(e,t){let n=Nn(e,t),{heights:r,textOffsets:i}=Pn(e,n),a=[],o=[],s=0;for(let t=0;t<n.length;t++)a.push(s),o.push(s+i[t]),s+=r[t]+(t<n.length-1?e.style.lineGap:0);return{spans:n,lineY:a,textY:o,totalRows:s}}function Nn(e,t){return e.style.whiteSpace===`normal`?z(e.text,t,{advances:e.advances,tracking:e.style.tracking,firstLineIndent:e.style.textIndent}):we(e.text)}function Pn(e,n){let r=Qe(e),i=[],a=[],o=0;for(let s of n){let n=1,c=0;for(let i=s.start;i<s.end;i++){if(e.text[i]!==``)continue;let a=r[o];n=Math.max(n,a.localRect.height),a.style.verticalAlign===`end`?c=Math.max(c,a.localRect.height-1):a.style.verticalAlign===`center`&&t(a.source,`vertical-align: middle on an inline box can't land on whole rows and behaves as top. Use align-top or align-bottom.`),o++}i.push(n),a.push(Math.min(c,n-1))}return{heights:i,textOffsets:a}}function Fn(e,t,n){let r=Y(t===`x`?e.gapX:e.gapY,n),i=t===`x`?e.ruleX:e.ruleY;return Math.max(r,i?.width??0)}function Y(e,t){return typeof e==`number`?e:t===void 0||!Number.isFinite(t)?0:F(e.percent,t)}function X(e,t){let n=e=>e===null?null:Y(e,t);return{top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)}}function In(e){return typeof e==`number`?e:0}function Ln(e,t){if(e!==void 0&&typeof e!=`string`)return typeof e==`number`?e:t===void 0?void 0:F(e.percent,t)}function Rn(e,t,n,r){return e===`min-content`||e===`max-content`||e===`fit-content`?qn({kind:e},t,n,r):Ln(e,t)}function zn(e,t,n,r,i,a){let o=r.left+i.left,s=r.top+i.top,c=s,l=null;for(let r of e.children){let e=X(r.style.margin,t),i=e.top??0,s=e.bottom??0,u=e.left??0,d=e.right??0;if(q(r.style)){r.staticSlot={kind:`block`,x:o+u,y:c+(l===null?i:Vn(l,i))};continue}J(r,Math.max(0,t-u-d),n,0,0,`fill`,a);let f=Bn(e,t,r.localRect.width);c+=l===null?i:Vn(l,i),r.localRect={...r.localRect,x:o+f,y:c},c+=r.localRect.height,l=s}return l!==null&&(c+=l),c-s}function Bn(e,t,n){let r=t-n;return e.left===null&&e.right===null?Math.floor(r/2):e.left===null?r-(e.right??0):e.left}function Vn(e,t){return e>=0&&t>=0?Math.max(e,t):e<=0&&t<=0?Math.min(e,t):e+t}function Hn(e,t,n,r,i){let a=e.width;if(e.display===`table`){if(!r.children.some(e=>!q(e.style)&&!e.inlineBox))return a!==void 0&&a.kind!==`auto`?qn(a,t,r,i):Math.min(t,Jn(r,i));if(a!==void 0&&a.kind!==`auto`){let e=qn(a,t,r,i);return Math.max(e,Gn(r,t,i))}return un(r,t,i)}return a!==void 0&&a.kind!==`auto`?qn(a,t,r,i):n===`shrink`?Math.min(t,Jn(r,i)):t}function Un(e){let t=0,n=0;for(let r of e.children){if(r.style.position===`fixed`)continue;let e=Wn(r);t=Math.max(t,r.localRect.x+e.x),n=Math.max(n,r.localRect.y+e.y)}if(e.textExtent){let{border:r}=e.style,i=e.resolvedPadding;t=Math.max(t,r.left+i.left+e.textExtent.width),n=Math.max(n,r.top+i.top+e.textExtent.rows)}return{x:t,y:n}}function Wn(e){let{width:t,height:n}=e.localRect,r=e.style.overflow.x!==`visible`,i=e.style.overflow.y!==`visible`;if(r&&i)return{x:t,y:n};let a=Un(e);return{x:r?t:Math.max(t,a.x),y:i?n:Math.max(n,a.y)}}function Gn(e,t,n){let r=e.style;return ln(e,n).min+r.border.left+r.border.right+Y(r.padding.left,t)+Y(r.padding.right,t)+et(r).right}function Kn(e,t){if(e.height?.kind===`cells`)return e.height.value;if(e.height?.kind===`percent`&&t!=null)return F(e.height.value,t)}function qn(e,t,n,r){switch(e.kind){case`cells`:return e.value;case`percent`:return F(e.value,t);case`min-content`:return Zn(n,r);case`max-content`:return Jn(n,r);case`fit-content`:return Math.min(Jn(n,r),Math.max(Zn(n,r),t));case`auto`:return Jn(n,r)}}function Jn(e,t){let n=t.maxContent.get(e);if(n!==void 0)return n;let r=e.style,i=Yn(e,t)+r.border.left+r.border.right+In(r.padding.left)+In(r.padding.right)+et(r).right;return t.maxContent.set(e,i),i}function Yn(e,t){let n=e.children.filter(e=>!q(e.style)&&!e.inlineBox);if(n.length===0)return e.style.display===`multicol`?Ft(e.style,e.intrinsicWidth):e.intrinsicWidth;if(e.style.display===`grid`)return pt(e,t).max;if(e.style.display===`table`)return ln(e,t).max;if(e.style.display===`flex`&&e.style.flexDirection===`row`){let r=Math.max(In(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+Xn(n,`max`,t),0)+r}let r=n.reduce((e,n)=>Math.max(e,Xn(n,`max`,t)),0);return e.style.display===`multicol`?Ft(e.style,r):r}function Xn(e,t,n){let r=e.style,i;r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`&&(i=qn(r.width,0,e,n)),i===void 0&&(i=t===`min`?Zn(e,n):Jn(e,n));let a=typeof r.minWidth==`number`?r.minWidth:0,o=typeof r.maxWidth==`number`?r.maxWidth:void 0;return Math.max(0,An(i,a,o))}function Zn(e,t){let n=t.minContent.get(e);if(n!==void 0)return n;let r=e.style,i=Qn(e,t)+r.border.left+r.border.right+In(r.padding.left)+In(r.padding.right)+et(r).right;return t.minContent.set(e,i),i}function Qn(e,t){let n=e.children.filter(e=>!q(e.style)&&!e.inlineBox);if(n.length===0)return!e.text||e.style.whiteSpace!==`normal`?e.intrinsicWidth:Oe(e.text,{advances:e.advances,tracking:e.style.tracking});if(e.style.display===`grid`)return pt(e,t).min;if(e.style.display===`table`)return ln(e,t).min;if(e.style.display===`flex`&&e.style.flexDirection===`row`&&e.style.flexWrap===`nowrap`){let r=Math.max(In(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+Xn(n,`min`,t),0)+r}return n.reduce((e,n)=>Math.max(e,Xn(n,`min`,t)),0)}function $n(e,t,n,r){return{width:Math.max(0,e-n.left-n.right-r.left-r.right),height:Math.max(0,t-n.top-n.bottom-r.top-r.bottom)}}function er(e){return or(e).grid.map(e=>e.join(``).trimEnd()).join(`
956
- `)}function tr(e){let{grid:t,paints:n}=or(e);return t.map((e,t)=>nr(e,n[t]))}function nr(e,t){let n=[];for(let r=0;r<e.length;r++){let i=t[r],a=n[n.length-1];a&&rr(a,i)?a.text+=e[r]:n.push({text:e[r],...i})}return n}function rr(e,t){return e.color===t?.color&&e.backgroundColor===t?.backgroundColor&&e.fontWeight===t?.fontWeight&&e.fontStyle===t?.fontStyle&&e.textDecorationLine===t?.textDecorationLine&&e.opacity===t?.opacity}function ir(e,t){e.color!==void 0&&(t.color=e.color),e.backgroundColor!==void 0&&(t.backgroundColor=e.backgroundColor),e.fontWeight!==void 0&&(t.fontWeight=e.fontWeight),e.fontStyle!==void 0&&(t.fontStyle=e.fontStyle),e.textDecorationLine!==void 0&&(t.textDecoration=e.textDecorationLine),e.opacity!==void 0&&(t.opacity=e.opacity)}function ar(e){return e.color===void 0&&e.backgroundColor===void 0&&e.fontWeight===void 0&&e.fontStyle===void 0&&e.textDecorationLine===void 0&&e.opacity===void 0}function or(e){let t=Math.max(0,e.localRect.width),n=Math.max(0,e.localRect.height),r=Array.from({length:n},()=>Array.from({length:t},()=>` `)),i=Array.from({length:n},()=>Array.from({length:t},()=>void 0));return cr(e,0,0,(e,a,o,s)=>{if(e>=0&&e<t&&a>=0&&a<n){r[a][e]=o;let t=i[a][e];i[a][e]=t?{...t,...s}:s}}),{grid:r,paints:i}}function sr(e){let t={};return e.color&&(t.color=e.color),e.backgroundColor&&(t.backgroundColor=e.backgroundColor),e.fontWeight!==`400`&&e.fontWeight!==`normal`&&e.fontWeight!==``&&(t.fontWeight=e.fontWeight),e.fontStyle!==`normal`&&e.fontStyle!==``&&(t.fontStyle=e.fontStyle),e.textDecorationLine!==`none`&&e.textDecorationLine!==``&&(t.textDecorationLine=e.textDecorationLine),t}function cr(e,t,n,r,i=1){if(e.tableHidden)return;let a=t+e.localRect.x,o=n+e.localRect.y,s=e.style,c=e=>i>=1?e:{...e,opacity:String(Math.round(i*1e3)/1e3)};if(s.backgroundColor!==void 0||s.backgroundClear){let t=s.backgroundColor===void 0?{backgroundColor:void 0}:c({backgroundColor:s.backgroundColor});for(let n=0;n<e.localRect.height;n++)for(let i=0;i<e.localRect.width;i++)r(a+i,o+n,` `,t)}let l=[];fe(s,{x:a,y:o,width:e.localRect.width,height:e.localRect.height},l);for(let e of l){let t=c(e.color===void 0?void 0:{color:e.color});for(let n=0;n<e.length;n++)r(e.x+n,e.y,e.glyph,t)}if(e.decorationRuns)for(let t of e.decorationRuns){let e=c(t.color===void 0?void 0:{color:t.color});for(let n=0;n<t.length;n++)r(a+t.x+n,o+t.y,t.glyph,e)}let u=e.scrollGutterCells,d=s.overflow.x!==`visible`,f=s.overflow.y!==`visible`,p=a-(e.scroll?.x??0),m=o-(e.scroll?.y??0),h=r;if(d||f){let t=a+s.border.left,n=o+s.border.top,i=a+e.localRect.width-s.border.right-(u?.right??0),c=o+e.localRect.height-s.border.bottom-(u?.bottom??0);h=(e,a,o,s)=>{d&&(e<t||e>=i)||f&&(a<n||a>=c)||r(e,a,o,s)}}if(!e.children.some(e=>!e.inlineBox&&e.style.position!==`absolute`&&e.style.position!==`fixed`)&&e.text){let t=c(sr(s)),n=e.inlineElements?.map(e=>c(sr(e)));lr(e,p,m,(r,i,a)=>{let o=e.charInline?.[r]??-1,s=o>=0?e.inlineElements[o]:void 0;e.text[r]===`⁠`?s?.backgroundColor&&h(i,a,` `,c({backgroundColor:s.backgroundColor})):h(i,a,e.text[r],s?n[o]:t)},(e,n)=>h(e,n,`…`,t))}for(let t of he(e))cr(t,p,m,h,i*t.style.opacity);let g=e.scrollRange;if(g&&u&&(u.right>0||u.bottom>0)){let{track:t,thumb:n}=de(j(s.glyphSet)),i=e=>c(e?{color:e}:void 0),l=i(s.scrollbarColor?.track??s.color),u=i(s.scrollbarColor?.thumb??s.color),d=pr(e,a,o);if(d.y){let{col:i,row:a,thick:o,len:s}=d.y,{at:c,len:f}=mr(s,g.sizeY,g.maxY,e.scroll?.y??0);for(let e=0;e<o;e++)for(let o=0;o<s;o++){let s=o>=c&&o<c+f;r(i+e,a+o,s?n:t,s?u:l)}}if(d.x){let{col:i,row:a,thick:o,len:s}=d.x,{at:c,len:f}=mr(s,g.sizeX,g.maxX,e.scroll?.x??0);for(let e=0;e<o;e++)for(let o=0;o<s;o++){let s=o>=c&&o<c+f;r(i+o,a+e,s?n:t,s?u:l)}}}}function lr(e,t,n,r,i){let a=e.style,o=e.resolvedPadding,s=t+a.border.left+o.left,c=n+a.border.top+o.top,l=e.localRect.width-a.border.left-a.border.right-o.left-o.right,u=e.multicolGeometry,{spans:d,textY:f}=u??Mn(e,l),p=u?Math.max(1,u.columnWidth-a.tracking):l;for(let t=0;t<d.length;t++){let n=d[t],o=c+f[t],l=t===0?a.textIndent:0,m=a.whiteSpace!==`normal`&&a.overflow.x===`clip`?hr(e.text,n,p-l,e.advances,a):{end:n.end,ellipsis:!1},h=Ee(n.start,n.end,e.advances,a.tracking),g=Math.max(0,p-l-h),_=a.textAlign===`end`?g:a.textAlign===`center`?Math.floor(g/2):0,v=s+(u?.lineX[t]??0)+_+l;for(let t=n.start;t<m.end;t++){let n=Te(t,t+1,e.advances);if(e.text[t]!==``){let i=e.inlineElements?.[e.charInline?.[t]??-1]?.insets,a=i?i.left??(i.right===null?0:-i.right):0,s=i?i.top??(i.bottom===null?0:-i.bottom):0;r(t,v+a,o+s,n)}v+=n}m.ellipsis&&i?.(v,o)}}function ur(e,t,n,r,i){let a=e.multicolGeometry;if(!a)return!1;let o=e.style,s=e.resolvedPadding,c=r-(t+o.border.left+s.left),l=i-(n+o.border.top+s.top),{lineX:u,lineY:d}=a;for(let e=0;e<d.length;e++){if(c<u[e]||c>=u[e]+a.columnWidth)continue;let t=(e+1<d.length&&u[e+1]===u[e]?d[e+1]:void 0)??d[e]+1+o.lineGap;if(l>=d[e]&&l<t)return!0}return!1}function dr(e,t,n,r,i){let a=null;return lr(e,t-(e.scroll?.x??0),n-(e.scroll?.y??0),(e,t,n,o)=>{a===null&&n===i&&r>=t&&r<t+o&&(a=e)}),a}function fr(e,t,n){let r=e.inlineElements;if(!r||!e.charInline)return[];let i=r.map((e,t)=>r.flatMap((n,r)=>r===t||n.element.contains(e.element)?[r]:[])),a=r.map(()=>new Map);return lr(e,t-(e.scroll?.x??0),n-(e.scroll?.y??0),(t,n,r,o)=>{let s=e.charInline[t]??-1;if(!(s<0))for(let e of i[s]){let t=a[e].get(r);t?(t.x0=Math.min(t.x0,n),t.x1=Math.max(t.x1,n+o)):a[e].set(r,{x0:n,x1:n+o})}}),r.flatMap((e,t)=>[...a[t]].sort(([e],[t])=>e-t).map(([t,n])=>({element:e.element,rect:{x:n.x0,y:t,width:n.x1-n.x0,height:1}})))}function pr(e,t,n){let r=e.scrollGutterCells;if(!r)return{};let{border:i,scrollbarSize:a,scrollbarInset:o}=e.style,s=n+i.top,c=t+i.left,l=n+e.localRect.height-i.bottom,u=t+e.localRect.width-i.right,d=r.bottom>0?l-r.bottom:l-o.y,f=r.right>0?u-r.right:u-o.x,p={};return r.right>0&&(p.y={col:u-r.right,row:s+o.y,thick:Math.min(a.y,r.right),len:Math.max(0,d-s-o.y)}),r.bottom>0&&(p.x={col:c+o.x,row:l-r.bottom,thick:Math.min(a.x,r.bottom),len:Math.max(0,f-c-o.x)}),p}function mr(e,t,n,r){let i=t>0?Math.min(1,e/t):1,a=Math.max(1,Math.round(i*e));return n>0&&(a=Math.max(1,Math.min(a,e-n))),{at:n>0?Math.round(Math.min(r,n)/n*(e-a)):0,len:a}}function hr(e,t,n,r,i){let{textOverflow:a,tracking:o}=i;if(Ee(t.start,t.end,r,o)<=n)return{end:t.end,ellipsis:!1};let s=a===`ellipsis`?n-1:n,c=t.start;for(;c<t.end&&Ee(t.start,c+1,r,o)<=s;)c++;return{end:c,ellipsis:a===`ellipsis`&&n>0}}function gr(e,t,n){let r=[],i=e,a=e.localRect.x,o=e.localRect.y;for(;;){let e=null;for(let r of he(i)){if(r.tableHidden)continue;let i=a+r.localRect.x,s=o+r.localRect.y;(r.multicolFlow?ur(r,i,s,t,n):t>=i&&t<i+r.localRect.width&&n>=s&&n<s+r.localRect.height)&&(e=r)}if(!e)return r;r.push({node:e,x:a+e.localRect.x,y:o+e.localRect.y}),a+=e.localRect.x-(e.scroll?.x??0),o+=e.localRect.y-(e.scroll?.y??0),i=e}}function _r(e){return e.closest?.(`[inert]`)!=null}function vr(e,t,n){let r=[];for(let i of gr(e,t,n)){if(_r(i.node.source))break;r.push(i.node.source)}return r}var yr={ArrowUp:`up`,ArrowDown:`down`,ArrowLeft:`left`,ArrowRight:`right`};function br(e){return yr[e]??null}function xr(e,t,n){let r=null,i=null;for(let a of n){let n=Cr(e,t,a.rect);n&&(!i||Sr(n,i))&&(r=a,i=n)}return r?.element??null}function Sr(e,t){for(let n=0;n<e.length;n++)if(e[n]!==t[n])return e[n]<t[n];return!1}function Cr(e,t,n){let r=e===`up`||e===`down`,[i,a,o]=r?[`y`,`x`,`height`]:[`x`,`y`,`width`],s=t[i]+t[o],c=n[i]+n[o],l=e===`down`||e===`right`?n[i]-s:t[i]-c;if(l<0)return null;let u=r?`width`:`height`,d=Math.min(t[a]+t[u],n[a]+n[u])-Math.max(t[a],n[a]);return d>0?[0,l,0]:[1,l,-d]}function wr(e){let t=[],n=(e,r,i,a)=>{if(e.tableHidden)return;let o=r+e.localRect.x,s=i+e.localRect.y;!a&&Er(e.source)&&t.push({element:e.source,rect:{x:o,y:s,width:e.localRect.width,height:e.localRect.height}});for(let n of fr(e,o,s))Er(n.element)&&t.push(n);let c=e.scroll?.x??0,l=e.scroll?.y??0;for(let t of e.children)n(t,o-c,s-l,!1)};return n(e,0,0,!0),t}function Tr(e,t){let n=null;for(let{element:r,rect:i}of e)if(r===t){if(!n)n={...i};else{let e=Math.max(n.x+n.width,i.x+i.width),t=Math.max(n.y+n.height,i.y+i.height);n.x=Math.min(n.x,i.x),n.y=Math.min(n.y,i.y),n.width=e-n.x,n.height=t-n.y}}return n}function Er(e){let t=e.tabIndex;return typeof t!=`number`||t<0?!1:!e.matches(`:disabled`)&&!_r(e)}var Dr=new Set([`text`,`search`,`url`,`tel`,`email`,`password`]),Or=new Set([`checkbox`,`button`,`submit`,`reset`,`image`,`file`]);function kr(e,t,n=!1){let r=e.tagName;if(r===`TEXTAREA`||e.closest(`[contenteditable]:not([contenteditable='false'])`))return!0;if(r===`INPUT`){let n=e.type;return n===`radio`?!0:Dr.has(n)?t===`ArrowLeft`||t===`ArrowRight`:!Or.has(n)}if(r===`SELECT`){let t=e,r=Number(t.size)||Number(t.getAttribute(`size`))||0;return t.multiple||r>1||n}return!1}function Ar(e,t,n,r){let i=e.ownerDocument,a=i.createRange();a.setStart(e,t),a.collapse(!0);let o=i.createRange();return o.setStart(n,r),o.collapse(!0),a.compareBoundaryPoints(a.START_TO_START,o)}function jr(e,t,n){let r=Qe(e).findIndex(e=>e.source.contains(t));if(r>=0){let t=-1;for(let n=0;n<=r;n++)t=e.text.indexOf(``,t+1);if(t>=0)return t}let i=e.charSource??[],a=0,o=i.length;for(;a<o;){let e=a+o>>1,r=i[e];Ar(r.node,r.offset,t,n)<=0?a=e+1:o=e}if(a===0)return 0;let s=i[a-1];return t===s.node&&n<s.offset+s.length?s.index+(n-s.offset):s.index+s.length}function Mr(e,t){let n=e.charSource??[],r=0,i=n.length;for(;r<i;){let e=r+i>>1;n[e].index<=t?r=e+1:i=e}let a=n[r-1];if(!a)return null;let o=t-a.index;return o<=a.length?{node:a.node,offset:a.offset+o}:null}function Nr(e){try{let t=e.ownerDocument.getSelection();if(!t)return null;if(t.getComposedRanges)return t.getComposedRanges({shadowRoots:[e]})[0]??null;let n=e.getSelection?.();return!n||n.rangeCount===0?null:n.getRangeAt(0)}catch{return null}}function Pr(e,t,n){let{startContainer:r,endContainer:i}=n;return t.contains(r)&&t.contains(i)?`grid`:e.contains(r)&&e.contains(i)?`light`:`outside`}function Fr(e,t){let n=e.source.ownerDocument.createRange();n.setStart(t.startContainer,t.startOffset),n.setEnd(t.endContainer,t.endOffset);let r=[];return Ir(e,n,r),Wr(r)}function Ir(e,t,n){if(e.tableHidden||!t.intersectsNode(e.source))return;let r=Br(e);if(r&&n.push({breaks:r}),e.style.tableRole===`row`)Lr(e,t,n);else if(e.style.display===`table`){let r=zr(e);for(let r of e.children)r.style.tableRole===`row`||Rr(r)||Ir(r,t,n);let i=!1;for(let e of r)t.intersectsNode(e.source)&&(i&&n.push({text:`
957
- `}),Ir(e,t,n),i=!0)}else{Hr(e)&&n.push({text:Ur(e,t)});for(let r of e.children)r.inlineBox||Ir(r,t,n)}r&&n.push({breaks:r})}function Lr(e,t,n){let r=!1;for(let i of e.children)i.style.tableRole!==`cell`||i.tableHidden||t.intersectsNode(i.source)&&(r&&n.push({text:` `}),Ir(i,t,n),r=!0)}function Rr(e){let t=e.style.tableRole;return t===`header-group`||t===`row-group`||t===`footer-group`}function zr(e){let t=[];for(let n of e.children)if(n.style.tableRole===`row`)t.push(n);else if(Rr(n))for(let e of n.children)e.style.tableRole===`row`&&t.push(e);return t}function Br(e){if(e.inlineBox)return 0;let t=e.style.tableRole;return t===`row`||t===`cell`||Rr(e)||t===`column`||t===`column-group`?0:e.source.tagName===`P`?2:1}function Vr(e){let t=[],n=e.charSource??[];if(n.length>0){let e=n[0],r=n[n.length-1];t.push({start:{node:e.node,offset:e.offset},end:{node:r.node,offset:r.offset+r.length}})}for(let n of Qe(e)){let e=n.source.parentNode;if(!e)continue;let r=Array.prototype.indexOf.call(e.childNodes,n.source);t.push({start:{node:e,offset:r},end:{node:e,offset:r+1}})}if(t.length===0)return null;let r=(e,t)=>Ar(e.node,e.offset,t.node,t.offset)<0,{start:i,end:a}=t[0];for(let e of t.slice(1))r(e.start,i)&&(i=e.start),r(a,e.end)&&(a=e.end);return{start:i,end:a}}function Hr(e){return e.text.length!==0&&!e.children.some(e=>!e.inlineBox&&e.style.position!==`absolute`&&e.style.position!==`fixed`)}function Ur(e,t){let{text:n}=e,r=0,i=n.length;e.charSource&&(e.source.contains(t.startContainer)&&(r=jr(e,t.startContainer,t.startOffset)),e.source.contains(t.endContainer)&&(i=jr(e,t.endContainer,t.endOffset)));let a=n.slice(r,i);i===n.length&&a.endsWith(`
958
- `)&&(a=a.slice(0,-1));let o=Qe(e),s=n.slice(0,r).split(``).length-1;return a=a.replaceAll(``,()=>{let e=o[s++];if(!e||!t.intersectsNode(e.source))return``;let n=[];return Ir(e,t,n),Wr(n)}),a.replaceAll(`⁠`,``)}function Wr(e){let t=``,n=0;for(let r of e){if(`breaks`in r){n=Math.max(n,r.breaks);continue}r.text.length!==0&&(t.length>0&&n>0&&(t+=`
959
- `.repeat(n)),n=0,t+=r.text)}return t}var Gr=new Map;function Kr(e,t){let{text:n}=e;if(t<0||t>=n.length||qr(n[t]))return null;let r=t;for(;r>0&&!qr(n[r-1]);)r--;let i=t;for(;i<n.length&&!qr(n[i]);)i++;let a=Jr(e.source.closest?.(`[lang]`)?.getAttribute(`lang`)??``);if(!a)return null;for(let e of a.segment(n.slice(r,i))){let n=r+e.index,i=n+e.segment.length;if(t>=n&&t<i)return{start:n,end:i}}return null}function qr(e){return e===`
960
- `||e===``||e===`⁠`}function Jr(e){let t=Gr.get(e);return t===void 0&&(t=Yr(e)??Yr(``),Gr.set(e,t)),t}function Yr(e){if(typeof Intl.Segmenter!=`function`)return null;try{return new Intl.Segmenter(e||void 0,{granularity:`word`})}catch{return null}}var Xr=new WeakMap,Zr=new WeakMap;function Qr(e){return ti(e,!0)!==null}function $r(e,t,n=!1){let r=tr(e),i=oi(r);if(Xr.get(t)===i)return!0;let a=Zr.get(t);if(a&&ei(t,a.nodes,r)){Xr.set(t,i);for(let e=0;e<r.length;e++)for(let t=0;t<r[e].length;t++){let n=r[e][t];if(ar(n)||rr(n,a.segments[e][t]))continue;let i=a.nodes[e][t];i.style.cssText=``,ir(n,i.style)}return a.segments=r,!0}if(n&&Qr(t))return!1;Xr.set(t,i);let o=document.createDocumentFragment(),s=[];for(let e=0;e<r.length;e++){e>0&&o.appendChild(document.createTextNode(`
961
- `));let t=[];for(let n of r[e]){if(ar(n)){let e=document.createTextNode(n.text);t.push(e),o.appendChild(e);continue}let e=document.createElement(`span`);ir(n,e.style),e.textContent=n.text,t.push(e),o.appendChild(e)}s.push(t)}Zr.set(t,{nodes:s,segments:r});let c=ti(t,!1);return t.replaceChildren(o),c&&ni(t,c),!0}function ei(e,t,n){if(t.length!==n.length)return!1;for(let r=0;r<n.length;r++){let i=t[r],a=n[r];if(i.length!==a.length)return!1;for(let t=0;t<a.length;t++){let n=i[t];if(ar(a[t])!==(n.nodeType===Node.TEXT_NODE)||n.textContent!==a[t].text||n.parentNode!==e)return!1}}return!0}function ti(e,t){try{let n=e.ownerDocument.getSelection();if(!n)return null;let r=e.getRootNode();if(!(r instanceof ShadowRoot))return null;let i=Nr(r);if(!i)return null;let a=ri(e,i.startContainer,i.startOffset),o=ri(e,i.endContainer,i.endOffset);return a===null||o===null||a===o&&!t?null:{start:a,end:o,backward:n.direction===`backward`}}catch{return null}}function ni(e,t){try{let n=ii(e,t.start),r=ii(e,t.end);if(!n||!r)return;let i=e.getRootNode().getSelection?.()??e.ownerDocument.getSelection();t.backward?i?.setBaseAndExtent(r[0],r[1],n[0],n[1]):i?.setBaseAndExtent(n[0],n[1],r[0],r[1])}catch{}}function ri(e,t,n){if(!e.contains(t))return null;let r=e.ownerDocument.createRange();return r.selectNodeContents(e),r.setEnd(t,n),r.toString().length}function ii(e,t){let n=t,r=null;for(let t of ai(e)){if(n<=t.data.length)return[t,n];n-=t.data.length,r=[t,t.data.length]}return r}function*ai(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=t.nextNode();for(;n;)yield n,n=t.nextNode()}function oi(e){let t=[];for(let n of e){for(let e of n)t.push(e.text,e.color??``,e.backgroundColor??``,e.fontWeight??``,e.fontStyle??``,e.textDecorationLine??``,e.opacity??``);t.push(`
962
- `)}return t.join(``)}function si(e){let t=new Set;li(e,!0,t);for(let n of Array.from(e.source.querySelectorAll(`[data-mw-inline-inset]`)))if(!t.has(n)){n.removeAttribute(`data-mw-inline-inset`);let e=n.style;for(let t of[`--mw-it`,`--mw-ir`,`--mw-ib`,`--mw-il`])e.removeProperty(t)}}function Z(e,t,n){e.style.getPropertyValue(t)!==n&&e.style.setProperty(t,n)}function ci(e,t){e.style.getPropertyValue(t)!==``&&e.style.removeProperty(t)}function Q(e,t,n){e.hasAttribute(t)!==n&&(n?e.setAttribute(t,``):e.removeAttribute(t))}function li(e,t,n){if(e.inlineElements)for(let{element:t,tracking:r,padLeft:i,padRight:a,insets:o}of e.inlineElements){let e=t;Z(e,`--mw-ls`,String(r)),i>0?Z(e,`--mw-ipl`,String(i)):ci(e,`--mw-ipl`),a>0?Z(e,`--mw-ipr`,String(a)):ci(e,`--mw-ipr`),o&&(n.add(t),di(e,o))}if(t?ui(e):pi(e),!e.tableHidden)for(let t of he(e)){let r=t.source;t.style.zIndex!==null&&me(t,e)&&!t.inlineBox?Z(r,`--mw-z`,String(t.style.zIndex)):ci(r,`--mw-z`),li(t,!1,n)}}function ui(e){let t=e.source,n=e.text.length>0,{whiteSpace:r,textAlignBlocked:i,textIndent:a}=e.style;Q(t,`data-mw-leaf`,n),Q(t,`data-mw-nowrap`,n&&r!==`normal`),Q(t,`data-mw-pre`,n&&r===`pre`),Q(t,`data-mw-text-align-blocked`,n&&i),n?Z(t,`--mw-ti`,String(a)):ci(t,`--mw-ti`)}function di(e,t){Q(e,`data-mw-inline-inset`,!0);let n=(t,n)=>{n===null?ci(e,t):Z(e,t,String(n))};n(`--mw-it`,t.top),n(`--mw-ir`,t.right),n(`--mw-ib`,t.bottom),n(`--mw-il`,t.left)}function fi(e){let t=e.style;if(t.textAlign!==`center`||!e.text||e.inlineBox||e.children.length>0)return!1;let n=e.multicolGeometry,r=e.resolvedPadding,i=e.localRect.width-t.border.left-t.border.right-r.left-r.right,a=n?Math.max(1,n.columnWidth-t.tracking):i,o=n?.spans??Nn(e,i);return o.length!==0&&o.every((n,r)=>{let i=r===0?t.textIndent:0,o=a-i-Ee(n.start,n.end,e.advances,t.tracking);return o>0&&o%2==1})}function pi(e){let t=e.source,n=e.localRect,r=e.resolvedPadding,{border:i,textAlignBlocked:a,overflow:o,whiteSpace:s,tracking:c,lineGap:l}=e.style,u=e.multicolFlow,d=e.multicolFlowSpan;Q(t,`data-mw-laid-out`,!e.inlineBox&&!u&&!d),Q(t,`data-mw-inline-box`,!!e.inlineBox),Q(t,`data-mw-multicol-flow`,!!u),Q(t,`data-mw-multicol-flow-span`,!!d);let f=u??d;f?(Z(t,`--mw-mt`,String(f.top??0)),Z(t,`--mw-mr`,String(f.right??0)),Z(t,`--mw-mb`,String(f.bottom??0)),Z(t,`--mw-ml`,String(f.left??0))):(ci(t,`--mw-mt`),ci(t,`--mw-mr`),ci(t,`--mw-mb`),ci(t,`--mw-ml`)),Q(t,`data-mw-vbottom`,!!e.inlineBox&&e.style.verticalAlign===`end`),Z(t,`--mw-ls`,String(c)),Z(t,`--mw-lh`,String(l+1)),Z(t,`--mw-lhs`,String(-l/2)),Q(t,`data-mw-nowrap`,s!==`normal`);let p=u||d?void 0:e.multicolGeometry;if(Q(t,`data-mw-multicol`,!!p),Q(t,`data-mw-multicol-balance`,!!p?.nativeBalance),p?(Z(t,`--mw-colc`,String(p.columnCount)),Z(t,`--mw-colg`,String(p.gap))):(ci(t,`--mw-colc`),ci(t,`--mw-colg`)),Q(t,`data-mw-pre`,s===`pre`),Z(t,`--mw-x`,String(n.x)),Z(t,`--mw-y`,String(n.y)),Z(t,`--mw-w`,String(n.width)),Z(t,`--mw-h`,String(n.height)),Q(t,`data-mw-clip`,o.x===`clip`||o.y===`clip`),Q(t,`data-mw-scroll`,e.scrollRange!==void 0),e.scrollRange){let{maxX:n,maxY:r}=e.scrollRange;Z(t,`--mw-se-x`,String(n>0?n+e.localRect.width:1)),Z(t,`--mw-se-y`,String(r>0?r+e.localRect.height:1))}else ci(t,`--mw-se-x`),ci(t,`--mw-se-y`);Z(t,`--mw-pt`,String(r.top)),Z(t,`--mw-pr`,String(r.right)),Z(t,`--mw-pb`,String(r.bottom)),Z(t,`--mw-pl`,String(r.left)),Z(t,`--mw-bt`,String(i.top)),Z(t,`--mw-br`,String(i.right)),Z(t,`--mw-bb`,String(i.bottom)),Z(t,`--mw-bl`,String(i.left)),Z(t,`--mw-ti`,String(e.style.textIndent)),Q(t,`data-mw-text-align-blocked`,a),Q(t,`data-mw-center-nudge`,fi(e)),Q(t,`data-mw-dropped-text`,!!e.droppedText),Q(t,`data-mw-table-hidden`,!!e.tableHidden)}function mi(e,t,n){let r=getComputedStyle(e),i=parseFloat(r.fontSize)||t,a=Ii(e)?e.computedStyleMap():null,o=e.getAttribute(`class`)??``,s=e.style;ji(e,o,s);let c=(e,r,i)=>ea(a,e,r,o,i,s,n,t)??na(a,e,r,o,i,s,n,t)??Ki(r,t),l=r.display||Di[e.tagName]||``,u=Oi[l]??`none`,d=r.columnCount&&r.columnCount!==`auto`?Math.max(1,Math.floor(Number(r.columnCount)||1)):null,f=r.columnWidth&&r.columnWidth!==`auto`?parseFloat(r.columnWidth):NaN,p=Number.isFinite(f)?Math.max(1,Se(f,t)):null,m=l===`flex`||l===`inline-flex`?`flex`:l===`grid`||l===`inline-grid`?`grid`:l===`table`||l===`inline-table`?`table`:l===`none`||Ei(e,r)?`none`:d!==null||p!==null?`multicol`:`block`,h={kind:`none`},g={kind:`none`},_=[rt()],v=[rt()],y={direction:`row`,dense:!1},b=null;if(m===`grid`){if(a)h=aa(a.get(`grid-template-columns`)?.toString()??``,t),g=aa(a.get(`grid-template-rows`)?.toString()??``,t);else{e.setAttribute(`data-mw-degrid`,``);try{h=aa(r.getPropertyValue(`grid-template-columns`),t),g=aa(r.getPropertyValue(`grid-template-rows`),t)}finally{e.removeAttribute(`data-mw-degrid`)}}_=la(r.getPropertyValue(`grid-auto-columns`),t),v=la(r.getPropertyValue(`grid-auto-rows`),t),y=ha(r.getPropertyValue(`grid-auto-flow`)),b=ca(r.getPropertyValue(`grid-template-areas`))}let x=`auto`,S=!1,C=0,w=0;if(m===`table`&&(x=r.tableLayout===`fixed`?`fixed`:`auto`,S=r.borderCollapse===`collapse`,!S)){let e=r.borderSpacing.split(` `);C=Se(parseFloat(e[0]??``)||0,t),w=Se(parseFloat(e[1]??e[0]??``)||0,t)}let T={display:m,tableRole:u,tableLayout:x,borderCollapse:S,borderSpacingX:C,borderSpacingY:w,captionSide:r.captionSide===`bottom`?`bottom`:`top`,verticalAlign:u===`cell`||l.startsWith(`inline-`)?ki(e,r):`start`,flexDirection:r.flexDirection.startsWith(`column`)?`column`:`row`,flexReverse:r.flexDirection.endsWith(`-reverse`),flexWrap:r.flexWrap.startsWith(`wrap`)?`wrap`:`nowrap`,wrapReverse:r.flexWrap===`wrap-reverse`,flexGrow:Number(r.flexGrow)||0,flexShrink:r.flexShrink===``?1:Number(r.flexShrink)||0,flexBasis:ra(r.flexBasis,t),order:Number(r.order)||0,justifyContent:Li(r.justifyContent),alignContent:Li(r.alignContent),alignItems:Ri(r.alignItems),alignSelf:zi(r.alignSelf),justifyItems:Ri(r.justifyItems),justifySelf:zi(r.justifySelf),gridTemplateColumns:h,gridTemplateRows:g,gridAutoColumns:_,gridAutoRows:v,gridAutoFlow:y,gridTemplateAreas:b,gridColumnStart:ma(r.getPropertyValue(`grid-column-start`)),gridColumnEnd:ma(r.getPropertyValue(`grid-column-end`)),gridRowStart:ma(r.getPropertyValue(`grid-row-start`)),gridRowEnd:ma(r.getPropertyValue(`grid-row-end`)),width:Xi(a,r.width,`width`,t,o,s,n),height:Xi(a,r.height,`height`,t,o,s,n),minWidth:c(`min-width`,r.minWidth,`min-w`)??`auto`,minHeight:c(`min-height`,r.minHeight,`min-h`)??`auto`,maxWidth:c(`max-width`,r.maxWidth,`max-w`),maxHeight:c(`max-height`,r.maxHeight,`max-h`),padding:_a(r,t),margin:Bi(r,a,o,s,t),position:Ui(r.position),insets:Wi(r,a,o,s,t),gapX:qi(r.columnGap===`normal`||r.columnGap===``?m===`multicol`?`${i}px`:`0px`:r.columnGap,t),gapY:qi(r.rowGap===`normal`?`0px`:r.rowGap,t),border:va(r),borderStyle:{top:Gi(r.borderTopStyle),right:Gi(r.borderRightStyle),bottom:Gi(r.borderBottomStyle),left:Gi(r.borderLeftStyle)},overflow:Ti(r),scrollbarWidth:xi(e,r),scrollbarColor:Si(r.scrollbarColor),overscroll:{x:(r.overscrollBehaviorX||`auto`)===`auto`,y:(r.overscrollBehaviorY||`auto`)===`auto`},scrollbarSize:{x:Ci(r.getPropertyValue(`--mw-scrollbar-size-x`)),y:Ci(r.getPropertyValue(`--mw-scrollbar-size-y`))},scrollbarInset:{x:Ci(r.getPropertyValue(`--mw-scrollbar-inset-x`),0),y:Ci(r.getPropertyValue(`--mw-scrollbar-inset-y`),0)},...Ai(e,r,t),lineGap:Hi(r.lineHeight,i),tracking:Vi(r.letterSpacing,i,n?.letterSpacing??0),color:r.color,fontWeight:r.fontWeight,fontStyle:r.fontStyle,backgroundColor:_i(e,r.backgroundColor,r),backgroundClear:r.getPropertyValue(`--mw-bg-clear`).trim()===`1`,borderColor:{top:r.borderTopColor,right:r.borderRightColor,bottom:r.borderBottomColor,left:r.borderLeftColor},opacity:Ji(r.opacity),glyphSet:r.getPropertyValue(`--mw-border-glyphs`).trim()||null,zIndex:r.zIndex===`auto`||r.zIndex===``?null:Number(r.zIndex)||0,latticeBorder:null,ruleX:m===`flex`||m===`grid`||m===`multicol`?Ni(r,`x`):null,ruleY:m===`flex`||m===`grid`?Ni(r,`y`):null,ruleBreak:Mi(r,`--mw-rule-break`,[`none`,`intersection`],`normal`),ruleInset:r.getPropertyValue(`--mw-rule-inset`).trim()===`overlap-join`?`overlap-join`:Math.max(0,xe(parseFloat(r.getPropertyValue(`--mw-rule-inset`))||0)),ruleVisibilityItems:Mi(r,`--mw-rule-visibility-items`,[`all`,`around`,`between`],`normal`),columnCount:d,columnWidth:p,columnFill:r.columnFill===`auto`?`auto`:`balance`,columnSpan:r.columnSpan===`all`,breakBeforeColumn:r.breakBefore===`column`,breakAfterColumn:r.breakAfter===`column`,breakInsideAvoid:r.breakInside===`avoid`||r.breakInside===`avoid-column`};return hi(T,r),T}function hi(e,t){t.borderCollapse===`collapse`&&(e.display===`table`||e.tableRole===`cell`||e.tableRole===`row`||e.tableRole===`row-group`||e.tableRole===`header-group`||e.tableRole===`footer-group`)&&(e.latticeBorder={width:e.border,style:e.borderStyle,color:e.borderColor,hidden:{top:t.borderTopStyle===`hidden`,right:t.borderRightStyle===`hidden`,bottom:t.borderBottomStyle===`hidden`,left:t.borderLeftStyle===`hidden`}},e.border=nt(),e.display===`table`&&(e.padding=nt()))}function gi(e){if(!e)return!0;let t=e.trim().toLowerCase();return t===``||t===`transparent`||t===`rgba(0, 0, 0, 0)`||t===`currentcolor`}function _i(e,t,n){let r=h(e,gi(t)?``:t,n);return r===``?void 0:r}function vi(e){return e===`hidden`||e===`clip`}var yi=new WeakMap,$=null;function bi(e){if($!==null)return $;if(!e.body)return!0;let t=e.createElement(`div`);return t.style.cssText=`position: absolute; width: 0; height: 0; overflow: auto`,e.body.appendChild(t),$=getComputedStyle(t).scrollbarWidth!==`none`,t.remove(),$}function xi(e,t){if(!bi(e.ownerDocument))return`auto`;if(e.hasAttribute(`data-mw-scroll`)){let t=yi.get(e);if(t!==void 0)return t}let n=t.scrollbarWidth===`none`?`none`:`auto`;return yi.set(e,n),n}function Si(e){let t=(e??``).trim();if(!t||t===`auto`)return null;let n=0;for(let e=0;e<t.length;e++){let r=t[e];if(r===`(`)n++;else if(r===`)`)n--;else if(r===` `&&n===0)return{thumb:t.slice(0,e),track:t.slice(e+1).trim()}}return null}function Ci(e,t=1){return Math.max(t,Math.floor(Number(e)||t))}function wi(e){return vi(e)?`clip`:e===`auto`||e===`scroll`?e:`visible`}function Ti(e){let t=wi(e.overflowX||e.overflow),n=wi(e.overflowY||e.overflow);return t!==`visible`&&n===`visible`&&(n=`auto`),n!==`visible`&&t===`visible`&&(t=`auto`),{x:t,y:n}}function Ei(e,t){if(t.position!==`absolute`&&t.position!==`fixed`)return!1;let n=t.clip.replace(/\s/g,``);return n===`rect(0px,0px,0px,0px)`||n===`rect(0,0,0,0)`||!s(e.tagName)&&(vi(t.overflow)||vi(t.overflowX))&&parseFloat(t.width)<=1&&parseFloat(t.height)<=1}var Di={TABLE:`table`,THEAD:`table-header-group`,TBODY:`table-row-group`,TFOOT:`table-footer-group`,TR:`table-row`,TD:`table-cell`,TH:`table-cell`,CAPTION:`table-caption`,COL:`table-column`,COLGROUP:`table-column-group`},Oi={"table-header-group":`header-group`,"table-row-group":`row-group`,"table-footer-group":`footer-group`,"table-row":`row`,"table-cell":`cell`,"table-caption":`caption`,"table-column":`column`,"table-column-group":`column-group`};function ki(e,t){let n=t.verticalAlign||e.getAttribute(`valign`)?.toLowerCase()||(e.tagName===`TD`||e.tagName===`TH`?`middle`:`baseline`);return n===`top`?`start`:n===`middle`?`center`:n===`bottom`?`end`:`start`}function Ai(e,t,n){return{whiteSpace:t.whiteSpace===`pre`?`pre`:t.whiteSpace===`nowrap`?`nowrap`:`normal`,tabSize:Math.max(1,Math.floor(parseFloat(t.tabSize))||8),textOverflow:t.textOverflow===`ellipsis`?`ellipsis`:`clip`,textDecorationLine:t.textDecorationLine,textAlignBlocked:Pi(e,t),textAlign:Fi(e,t),textIndent:Yi(t,n)}}function ji(e,n,r){(/(?:^|[\s:.[!])text-(?:xs|sm|base|lg|[2-9]?xl)(?![\w-])/.test(n)||/(?:^|[\s:.[!])text-\[(?:(?:length|size):|[\d.])/.test(n)||r.fontSize!==``)&&t(e,`font-size inside <mono-wind> is ignored — all text shares the host's cell size. Size the <mono-wind> element itself instead.`)}function Mi(e,t,n,r){let i=e.getPropertyValue(t).trim();return n.includes(i)?i:r}function Ni(e,t){let n=xe(parseFloat(e.getPropertyValue(`--mw-rule-${t}-width`))||0);if(n<=0)return null;let r=e.getPropertyValue(`--mw-rule-${t}-color`).trim();return{width:n,style:Gi(e.getPropertyValue(`--mw-rule-${t}-style`).trim()),color:r&&r!==`currentcolor`&&r!==`currentColor`?r:e.color}}function Pi(e,t){return t.textAlign===`justify`||e.getAttribute(`align`)?.toLowerCase()===`justify`}function Fi(e,t){let n=t.textAlign||e.getAttribute(`align`)?.toLowerCase()||``;return n===`right`||n===`end`?`end`:n===`center`||n.endsWith(`-center`)?`center`:`start`}function Ii(e){return typeof e.computedStyleMap==`function`}function Li(e){switch(e){case`center`:return`center`;case`flex-end`:case`end`:case`right`:return`end`;case`space-between`:return`space-between`;case`space-around`:return`space-around`;case`space-evenly`:return`space-evenly`;case`normal`:case`stretch`:case``:return`stretch`;default:return`start`}}function Ri(e){switch(e){case`center`:return`center`;case`flex-end`:case`end`:return`end`;case`stretch`:case`normal`:case``:return`stretch`;default:return`start`}}function zi(e){return e===`auto`||e===``||e===`normal`?`auto`:Ri(e)}function Bi(e,t,n,r,i){let a=(a,o,s)=>{if(t){let e=t.get(a)?.toString().trim();if(e===`auto`||t.get(o)?.toString().trim()===`auto`)return null;if(e?.endsWith(`%`)){let t=parseFloat(e);if(Number.isFinite(t)&&t!==0)return{percent:t}}}else if(s.test(n)||r.getPropertyValue(a)===`auto`)return null;let c=e.getPropertyValue(a);if(c===`auto`)return null;let l=qi(c,i);if(l!==0)return l;let u=e.getPropertyValue(o);return u===`auto`?null:qi(u,i)};return{top:a(`margin-top`,`margin-block-start`,/(?:^|[\s:.[!])(?:m|my|mt)-auto\b/),right:a(`margin-right`,`margin-inline-end`,/(?:^|[\s:.[!])(?:m|mx|mr|me)-auto\b/),bottom:a(`margin-bottom`,`margin-block-end`,/(?:^|[\s:.[!])(?:m|my|mb)-auto\b/),left:a(`margin-left`,`margin-inline-start`,/(?:^|[\s:.[!])(?:m|mx|ml|ms)-auto\b/)}}function Vi(e,t,n){let r=(e===`normal`?0:parseFloat(e)||0)-n;return r<=0?0:Math.floor(r/(.025*t)+1e-6)}function Hi(e,t){if(!e||e===`normal`||t<=0)return 0;let n=parseFloat(e);return Number.isFinite(n)?Math.max(0,Math.floor(n/t+1e-6)-1):0}function Ui(e){switch(e){case`relative`:case`absolute`:case`fixed`:case`sticky`:return e;default:return`static`}}function Wi(e,t,n,r,i){let a=(a,o)=>{if(t){let e=t.get(a)?.toString().trim();return!e||e===`auto`?null:qi(e,i)}let s=r[a];if(s)return s===`auto`?null:qi(s,i);if(!o.test(n))return null;let c=e.getPropertyValue(a);return!c||c===`auto`?null:qi(c,i)};return{top:a(`top`,/(?:^|[\s:.[!])-?(?:top|inset|inset-y)-/),right:a(`right`,/(?:^|[\s:.[!])-?(?:right|end|inset|inset-x)-/),bottom:a(`bottom`,/(?:^|[\s:.[!])-?(?:bottom|inset|inset-y)-/),left:a(`left`,/(?:^|[\s:.[!])-?(?:left|start|inset|inset-x)-/)}}function Gi(e){switch(e){case`double`:return`double`;case`dashed`:return`dashed`;case`dotted`:return`dotted`;default:return`solid`}}function Ki(e,t){if(!e||e===`none`||e===`auto`)return;if(e===`min-content`||e===`max-content`||e===`fit-content`)return e;if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)?{percent:t}:void 0}let n=parseFloat(e);return Number.isFinite(n)?Se(n,t):void 0}function qi(e,t){if(!e||e===`auto`||e===`none`)return 0;if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)&&t!==0?{percent:t}:0}let n=parseFloat(e);return Number.isFinite(n)?Se(n,t):0}function Ji(e){let t=parseFloat(e);return Number.isFinite(t)?Math.min(1,Math.max(0,t)):1}function Yi(e,t){let n=e.textIndent;if(!n||n.endsWith(`%`))return 0;let r=parseFloat(n);return Number.isFinite(r)?Math.max(0,Se(r,t)):0}function Xi(e,t,n,r,i,a,o){let s=Zi(n===`width`?a.width:a.height);if(s!==null)return{kind:`cells`,value:$i(s,n,o,r)};let c=ea(e,n,t,i,n===`width`?`w`:`h`,a,o,r);if(c!==void 0)return{kind:`cells`,value:c};let l=Qi(i,n===`width`?`w`:`h`);if(l!==null){let i=parseFloat(e?String(e.get(n)??``):t),a=Number.isFinite(i)&&Math.abs(i-l)<=l*.3;if(a||!Number.isFinite(i))return{kind:`cells`,value:$i(a?i:l,n,o,r)}}if(e){let t=e.get(n);if(t==null)return;let i=t.toString().trim();if(i===`auto`)return{kind:`auto`};let a=ia(i);if(a)return a;if(i.endsWith(`%`))return{kind:`percent`,value:parseFloat(i)};if(i.endsWith(`px`))return{kind:`cells`,value:Se(parseFloat(i),r)};if(i.endsWith(`rem`))return{kind:`cells`,value:xe(parseFloat(i)/.25)};let s=Zi(i);if(s!==null)return{kind:`cells`,value:$i(s,n,o,r)}}let u=n===`width`?a.width:a.height;if(u){if(u===`auto`)return{kind:`auto`};let e=ia(u);if(e)return e;if(u.endsWith(`%`))return{kind:`percent`,value:parseFloat(u)};let t=parseFloat(u);if(Number.isFinite(t))return{kind:`cells`,value:Se(t,r)}}let d=n===`width`?`w`:`h`;if(RegExp(`(?:^|[\\s:.[!])${d}-min\\b`).test(i))return{kind:`min-content`};if(RegExp(`(?:^|[\\s:.[!])${d}-max\\b`).test(i))return{kind:`max-content`};if(RegExp(`(?:^|[\\s:.[!])${d}-fit\\b`).test(i))return{kind:`fit-content`};let f=RegExp(`(?:^|[\\s:.[!])${d}-(\\d+)/(\\d+)(?![\\w./])`).exec(i);if(f)return{kind:`percent`,value:100*Number(f[1])/Number(f[2])};if(RegExp(`(?:^|[\\s:.[!])${d}-full(?![\\w-])`).test(i))return{kind:`percent`,value:100};let p=RegExp(`(?:^|[\\s:.[!])${d}-\\[(\\d+(?:\\.\\d+)?)%\\]`).exec(i);if(p)return{kind:`percent`,value:Number(p[1])};let m=RegExp(`(?:^|[\\s:.[!])${d}-(\\d+(?:\\.\\d+)?)(?![\\w-/])`).exec(i);if(m)return{kind:`cells`,value:xe(Number(m[1]))};if(!ga(i,d)||t===`auto`)return{kind:`auto`};if(t.endsWith(`%`))return{kind:`percent`,value:parseFloat(t)};let h=parseFloat(t);if(Number.isFinite(h))return{kind:`cells`,value:Se(h,r)}}function Zi(e){let t=/^(-?[\d.]+)((?:[dsl]?v)(?:h|w|min|max)|vi|vb)$/.exec(e.trim());if(!t||typeof window>`u`)return null;let n=parseFloat(t[1]);if(!Number.isFinite(n))return null;let r=t[2],i=window.innerHeight,a=window.innerWidth,o=r.endsWith(`h`)?i:r.endsWith(`min`)?Math.min(a,i):r.endsWith(`max`)?Math.max(a,i):r===`vb`?i:a;return n/100*o}function Qi(e,t){if(typeof window>`u`)return null;let n=RegExp(`(?:^|[\\s:.[!])${t}-(screen|[dsl]v[hw])(?![\\w-])`).exec(e);if(n){let e=n[1];return e===`screen`?t.includes(`h`)?window.innerHeight:window.innerWidth:e.endsWith(`h`)?window.innerHeight:window.innerWidth}let r=RegExp(`(?:^|[\\s:.[!])${t}-\\[(-?[\\d.]+(?:[dsl]?v(?:h|w|min|max)|vi|vb))\\]`).exec(e);return r?Zi(r[1]):null}function $i(e,t,n,r){let i=t===`width`?n?.width:n?.height;return i&&i>0?Math.max(0,Math.floor(e/i)):Se(e,r)}function ea(e,t,n,r,i,a,o,s){let c=t.endsWith(`width`)?`width`:`height`,l=a.getPropertyValue(t).trim(),u=l.startsWith(`calc(`);if(!u&&!r.includes(`-[calc(`))return;let d=RegExp(`(?:^|[\\s:.[!])${i}-\\[(calc\\([^\\]]*\\))\\]`).exec(r),f=u?l:d?.[1]?.replaceAll(`_`,` `);if(!f)return;let p=ta(f,c,o,s);if(!p||p.unitless)return;let m=Math.max(0,xe(p.cells));if(u)return m;let h=(e?String(e.get(t)??``):n).trim(),g=parseFloat(h);return(Number.isFinite(g)?Math.abs(g-p.px)<=Math.abs(p.px)*.3:h===``)?m:void 0}function ta(e,t,n,r){let i=e.match(/--spacing\(\s*-?[\d.]+\s*\)|calc|[\d.]+[a-z%]*|[()+\-*/]/g);if(!i||i.join(``).replace(/\s+/g,``)!==e.replace(/\s+/g,``))return null;let a=0,o=()=>i[a],s=()=>i[a++],c=(e,t)=>({cells:e,px:t,unitless:!1}),l=e=>{let i=/^--spacing\(\s*(-?[\d.]+)\s*\)$/.exec(e);if(i){let e=parseFloat(i[1]);return c(e,e*r/4)}let a=/^([\d.]+)([a-z%]*)$/.exec(e);if(!a)return null;let o=parseFloat(a[1]),s=a[2];if(!Number.isFinite(o))return null;if(s===``)return{cells:o,px:o,unitless:!0};if(s===`px`)return c(o/(r/4),o);if(s===`rem`)return c(o*4,o*r);let l=Zi(e);return l===null?null:c($i(l,t,n,r),l)},u=(e,t,n)=>{if(e===`+`||e===`-`){if(t.unitless!==n.unitless)return null;let r=e===`+`?1:-1;return{cells:t.cells+r*n.cells,px:t.px+r*n.px,unitless:t.unitless}}if(e===`*`){if(!t.unitless&&!n.unitless)return null;let[e,r]=t.unitless?[t,n]:[n,t];return{cells:r.cells*e.cells,px:r.px*e.px,unitless:r.unitless&&e.unitless}}return!n.unitless||n.px===0?null:{cells:t.cells/n.cells,px:t.px/n.px,unitless:t.unitless}},d=()=>{let e=s();if(e===void 0)return null;if(e===`-`){let e=d();return e&&{cells:-e.cells,px:-e.px,unitless:e.unitless}}return e===`calc`?s()===`(`?f():null:e===`(`?f():l(e)},f=()=>{let e=m();return s()===`)`?e:null},p=()=>{let e=d();for(;e&&(o()===`*`||o()===`/`);){let t=s(),n=d();e=n?u(t,e,n):null}return e},m=()=>{let e=p();for(;e&&(o()===`+`||o()===`-`);){let t=s(),n=p();e=n?u(t,e,n):null}return e},h=m();return a===i.length?h:null}function na(e,t,n,r,i,a,o,s){let c=t.endsWith(`width`)?`width`:`height`,l=Zi(a.getPropertyValue(t))??Zi(e?.get(t)?.toString().trim()??``);if(l!==null)return $i(l,c,o,s);let u=Qi(r,i);if(u===null)return;let d=(e?String(e.get(t)??``):n).trim(),f=parseFloat(d),p=Number.isFinite(f)&&Math.abs(f-u)<=u*.3;if(p||d===``)return $i(p?f:u,c,o,s)}function ra(e,t){if(!e||e===`auto`||e===`content`)return;let n=ia(e);if(n)return n;if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)?{kind:`percent`,value:t}:void 0}let r=parseFloat(e);return Number.isFinite(r)?{kind:`cells`,value:Se(r,t)}:void 0}function ia(e){if(e===`min-content`)return{kind:`min-content`};if(e===`max-content`)return{kind:`max-content`};if(e===`fit-content`)return{kind:`fit-content`}}function aa(e,t){let n=e.trim();if(!n||n===`none`)return{kind:`none`};if(n===`subgrid`||n.startsWith(`subgrid `))return{kind:`subgrid`};let r=[],i=[],a=[],o=e=>{i.push(a),a=[],r.push(e)},s;for(let e of pa(n)){let n=sa(e);if(n){a.push(...n);continue}let i=e.match(/^repeat\(\s*([^,]+?)\s*,(.*)\)$/s);if(i){let e=oa(i[2].trim(),t);if(e.tracks.length===0)continue;let n=i[1];if(n===`auto-fill`||n===`auto-fit`){s||(s={index:r.length,tracks:e.tracks,mode:n},e.lineNames.some(e=>e.length>0)&&(s.lineNames=e.lineNames),a.length>0&&(s.leadingNames=a),a=[]);continue}let c=Math.max(0,Math.floor(Number(n)||0));for(let t=0;t<c;t++){a.push(...e.lineNames[0]);for(let t=0;t<e.tracks.length;t++)o(e.tracks[t]),a.push(...e.lineNames[t+1])}continue}o(ua(e,t))}if(i.push(a),r.length===0&&!s)return{kind:`none`};let c={kind:`tracks`,tracks:r};return i.some(e=>e.length>0)&&(c.lineNames=i),s&&(c.autoRepeat=s),c}function oa(e,t){let n=[],r=[],i=[];for(let a of pa(e)){let e=sa(a);if(e){i.push(...e);continue}r.push(i),i=[],n.push(ua(a,t))}return r.push(i),{tracks:n,lineNames:r}}function sa(e){let t=e.match(/^\[(.*)\]$/s);return t?t[1].split(/\s+/).filter(e=>e!==``):null}function ca(e){let t=[];for(let n of e.matchAll(/"([^"]*)"|'([^']*)'/g)){let e=(n[1]??n[2]??``).trim().split(/\s+/).filter(e=>e!==``);if(e.length===0)return null;t.push(e)}if(t.length===0)return null;let n=t[0].length;if(t.some(e=>e.length!==n))return null;let r=new Map;t.forEach((e,t)=>{e.forEach((e,n)=>{if(/^\.+$/.test(e))return;let i=r.get(e);i?(i.colStart=Math.min(i.colStart,n),i.colEnd=Math.max(i.colEnd,n+1),i.rowStart=Math.min(i.rowStart,t),i.rowEnd=Math.max(i.rowEnd,t+1)):r.set(e,{colStart:n,colEnd:n+1,rowStart:t,rowEnd:t+1})})});for(let[e,n]of r)for(let r=n.rowStart;r<n.rowEnd;r++)for(let i=n.colStart;i<n.colEnd;i++)if(t[r][i]!==e)return null;return{columns:n,rows:t.length,areas:r}}function la(e,t){let n=pa(e.trim()).filter(e=>e!==``&&!e.startsWith(`[`)).map(e=>ua(e,t));return n.length>0?n:[rt()]}function ua(e,t){let n=e.match(/^minmax\((.*)\)$/s);if(n){let e=fa(n[1]).map(e=>e.trim());return e.length===2?{min:da(e[0],t),max:da(e[1],t)}:{min:{kind:`auto`},max:{kind:`auto`}}}let r=da(e,t);return r.kind===`fr`?{min:{kind:`auto`},max:r}:{min:r,max:r}}function da(e,t){if(e===`auto`||e.startsWith(`fit-content`))return{kind:`auto`};if(e===`min-content`)return{kind:`min-content`};if(e===`max-content`)return{kind:`max-content`};let n=e.match(/^(min|max)\((.*)\)$/s);if(n){let e=fa(n[2]).map(e=>da(e.trim(),t)),r=e.every(e=>e.kind===`cells`||e.kind===`percent`||e.kind===`math`);return e.length>0&&r?{kind:`math`,fn:n[1],args:e}:{kind:`auto`}}if(e.endsWith(`fr`)){let t=parseFloat(e);return Number.isFinite(t)&&t>=0?{kind:`fr`,value:t}:{kind:`auto`}}if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)?{kind:`percent`,value:t}:{kind:`auto`}}let r=parseFloat(e);return Number.isFinite(r)?{kind:`cells`,value:e.endsWith(`rem`)?xe(r/.25):Se(r,t)}:{kind:`auto`}}function fa(e){let t=[],n=0,r=0;for(let i=0;i<e.length;i++){let a=e[i];a===`(`?n++:a===`)`?n--:a===`,`&&n===0&&(t.push(e.slice(r,i)),r=i+1)}return t.push(e.slice(r)),t.filter(e=>e.trim()!==``)}function pa(e){let t=[],n=0,r=-1;for(let i=0;i<e.length;i++){let a=e[i];a===`(`||a===`[`?n++:(a===`)`||a===`]`)&&n--,/\s/.test(a)&&n===0?(r!==-1&&t.push(e.slice(r,i)),r=-1):r===-1&&(r=i)}return r!==-1&&t.push(e.slice(r)),t}function ma(e){let t=e.trim();if(!t||t===`auto`)return{kind:`auto`};let n=!1,r,i;for(let e of t.split(/\s+/))e===`span`?n=!0:/^-?\d+$/.test(e)?r=Number(e):i=e;if(n){let e=r??1;return e<1?{kind:`auto`}:i===void 0?{kind:`span`,value:e}:{kind:`span`,value:e,name:i}}return i===void 0?r!==void 0&&r!==0?{kind:`line`,value:r}:{kind:`auto`}:r===0?{kind:`auto`}:r===void 0?{kind:`name`,name:i}:{kind:`name`,name:i,nth:r}}function ha(e){return{direction:e.includes(`column`)?`column`:`row`,dense:e.includes(`dense`)}}function ga(e,t){return(t===`w`?/(?:^|[\s:.[!])w-/:/(?:^|[\s:.[!])h-/).test(e)}function _a(e,t){return{top:qi(e.getPropertyValue(`padding-top`),t),right:qi(e.getPropertyValue(`padding-right`),t),bottom:qi(e.getPropertyValue(`padding-bottom`),t),left:qi(e.getPropertyValue(`padding-left`),t)}}function va(e){let t=(t,n)=>e.getPropertyValue(n)===`none`?0:xe(parseFloat(e.getPropertyValue(t))||0);return{top:t(`border-top-width`,`border-top-style`),right:t(`border-right-width`,`border-right-style`),bottom:t(`border-bottom-width`,`border-bottom-style`),left:t(`border-left-width`,`border-left-style`)}}function ya(e,t,n,r){let i=mi(e,t,n);if(i.display===`none`)return null;let a=s(e.tagName);if(a)return Ca(e,i,a);let o=Array.from(e.children),c=o.map(Oa),l={rootFontSizePx:t,cellMetrics:n,textareaWidths:r};if(!c.includes(`block`)||Ha(e.tagName))return Sa(e,i,o,c,l);let u=[];for(let e=0;e<o.length;e++){if(c[e]===`none`)continue;let i=ya(o[e],t,n,r);i&&u.push(i)}let d={source:e,style:i,children:u,text:``,intrinsicWidth:0,intrinsicHeight:0,localRect:{x:0,y:0,width:0,height:0},unclampedHeight:0,resolvedPadding:nt()};return Ua(e,d),d}function ba(e,t,n,r){let i=Array.from(e.childNodes).filter(e=>!(e instanceof Element&&e.hasAttribute(`data-mw-probe`))),a=i.filter(e=>e instanceof Element),o=a.map(Oa);return o.includes(`block`)||!Ba(e)&&!o.includes(`inline`)?null:Sa(e,xa(e,t),a,o,{rootFontSizePx:t,cellMetrics:n,textareaWidths:r},i)}function xa(e,t){let n=getComputedStyle(e),r={...tt(),...Ai(e,n,t)};return Ti(n).x===`clip`&&(r.overflow={...r.overflow,x:`clip`}),r}function Sa(e,t,n,r,i,a){let{rootFontSizePx:o,cellMetrics:s,textareaWidths:c}=i,l=e.tagName,u=Ha(l),d=ka(e,t.tracking,{rootFontSizePx:o,rootLetterSpacingPx:s?.letterSpacing??0,cellMetrics:s,textareaWidths:c,preserve:t.whiteSpace===`pre`,tabSize:t.tabSize},a),f=d.chars.join(``);if(d.boxes.length>0){let e=Dn();ke(d.chars,(t,n)=>{d.advances[t]=Math.max(1,Jn(d.boxes[n],e))})}let p=La(f,d.advances,t.tracking);if(u&&p===0){if(l===`INPUT`)p=Number(e.size)||20;else if(l===`TEXTAREA`)p=Number(e.cols)||20;else{let t=e,n=e=>e?.label||e?.textContent||``,r=getComputedStyle(e).getPropertyValue(`field-sizing`)===`content`?[n(t.selectedOptions[0])]:Array.from(t.options,n);p=Math.max(1,...r.map(e=>e.trim().length))}}let m=f.length>0?Ra(f):0,h;if(l===`TEXTAREA`){let n=e,r=n.value??``,i=c?.get(n),a=+!!r.endsWith(`
963
- `),o=i!==void 0&&i>0?R(r,i)+a:r===``?0:r.split(/\r\n?|\n/).length,s=getComputedStyle(e).getPropertyValue(`field-sizing`)===`content`?1:Number(n.rows)||2,l=Math.max(s,o);h=l+Math.max(0,l-1)*t.lineGap}else h=u?Math.max(1,m):m;let g=new Map,_=[];for(let t of d.boxes)t.source.parentElement===e?g.set(t.source,t):_.push(t);let v=[];for(let e=0;e<n.length;e++){let t=n[e],i=g.get(t);if(i)v.push(i);else if(r[e]===`out-of-flow`){let e=ya(t,o,s,c);e&&v.push(e)}}_.length>0&&(v.push(..._),v.sort((e,t)=>e.source.compareDocumentPosition(t.source)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1));let y={source:e,style:t,children:v,text:f,intrinsicWidth:p,intrinsicHeight:h,localRect:{x:0,y:0,width:p,height:h},unclampedHeight:0,resolvedPadding:nt()};(d.advances.some(e=>e!==1)||d.boxes.length>0)&&(y.advances=d.advances),d.inlineElements.length>0&&(y.inlineElements=d.inlineElements,y.charInline=d.chars.map((e,t)=>d.inlineIndex[t]??-1));let b=Ia(d);return b.length>0&&(y.charSource=b),y}function Ca(e,t,n){let r=u(n,e),i=r?.lines??[],a=i.join(`
964
- `);t.whiteSpace=`pre`,(t.width===void 0||t.width.kind===`auto`)&&(t.width={kind:`max-content`});let o=Array.from({length:a.length},()=>1+t.tracking),s=La(a,o,t.tracking),c=i.length,l={source:e,style:t,children:[],text:a,intrinsicWidth:s,intrinsicHeight:c,localRect:{x:0,y:0,width:s,height:c},unclampedHeight:0,resolvedPadding:nt()};t.tracking>0&&(l.advances=o);let d=r?.runs??[];if(d.length>0&&a.length>0){let t=[0];for(let e of i)t.push(t[t.length-1]+e.length+1);let n=Array.from({length:a.length},()=>-1);l.inlineElements=d.map(t=>({element:e,tracking:0,padLeft:0,padRight:0,insets:null,color:t.paint.color,backgroundColor:t.paint.backgroundColor,fontWeight:t.paint.fontWeight??``,fontStyle:t.paint.fontStyle??``,textDecorationLine:t.paint.textDecorationLine??``})),d.forEach((e,r)=>{let a=i[e.line];if(a===void 0)return;let o=Math.max(0,e.start),s=Math.min(a.length,e.end);for(let i=o;i<s;i++)n[t[e.line]+i]=r}),l.charInline=n}return l}var wa=new Set(`A.ABBR.B.BDI.BDO.BR.CITE.CODE.DATA.DFN.EM.I.KBD.MARK.Q.S.SAMP.SMALL.SPAN.STRONG.SUB.SUP.TIME.U.VAR.WBR`.split(`.`));function Ta(e,t){return t||(wa.has(e.tagName)?`inline`:`block`)}function Ea(e,t){let n=Ta(e,t);return n===`inline`||n===`contents`}function Da(e,t){let n=Ta(e,t);return n.startsWith(`inline`)&&n!==`inline`}function Oa(e){let t=getComputedStyle(e);return t.display===`none`?`none`:t.position===`absolute`||t.position===`fixed`?`out-of-flow`:s(e.tagName)?`block`:Ea(e,t.display)||Da(e,t.display)?`inline`:`block`}function ka(e,t,n,r){let i={chars:[],advances:[],sourceNode:[],sourceOffset:[],inlineIndex:[],inlineElements:[],boxes:[]};return r?ja(r,t,n,i):Aa(e,t,n,i),n.preserve?i:Pa(i)}function Aa(e,t,n,r){Ha(e.tagName)||ja(Array.from(e.childNodes),t,n,r)}function ja(e,t,n,r){let i=()=>{let e=0;for(let t=r.chars.length-1;t>=0&&r.chars[t]!==`
965
- `;t--)e+=r.advances[t];return e};for(let a of e)if(a.nodeType===Node.TEXT_NODE){if(n.preserve){let e=a.textContent??``,o=0;for(let s of e){let c=o;if(o+=s.length,s===`\r`){if(e[o]===`
966
- `)continue;Fa(r,`
967
- `,0,a,c)}else if(s===`
968
- `)Fa(r,`
969
- `,0,a,c);else if(s===` `){let e=(Math.floor(i()/n.tabSize)+1)*n.tabSize;for(let t=i();t<e;t++)Fa(r,` `,1,a,c)}else Fa(r,s,1+t,a,c)}}else{let e=0,n=!1;for(let i of a.textContent??``){let o=i===` `||i===` `||i===`\r`||i===`
970
- `||i===`\f`;o?n||Fa(r,` `,1+t,a,e):Fa(r,i,1+t,a,e),n=o,e+=i.length}}}else if(a.nodeType===Node.ELEMENT_NODE){let e=a;if(e.tagName===`BR`){Fa(r,`
971
- `,0,null,-1);continue}let t=getComputedStyle(e);if(t.display===`none`||t.position===`absolute`||t.position===`fixed`)continue;if(Da(e,t.display)){let t=ya(e,n.rootFontSizePx,n.cellMetrics,n.textareaWidths);t&&(t.inlineBox=!0,Fa(r,``,1,null,-1),r.boxes.push(t));continue}if(!Ea(e,t.display)){za(e);continue}let i=Vi(t.letterSpacing,parseFloat(t.fontSize)||n.rootFontSizePx,n.rootLetterSpacingPx),o=Ma(t.paddingLeft,n.rootFontSizePx),s=Ma(t.paddingRight,n.rootFontSizePx);r.inlineElements.push({element:e,tracking:i,padLeft:o,padRight:s,insets:t.position===`static`?null:Na(t,n.rootFontSizePx),color:t.color,backgroundColor:gi(t.backgroundColor)?void 0:t.backgroundColor,fontWeight:t.fontWeight,fontStyle:t.fontStyle,textDecorationLine:t.textDecorationLine});let c=r.inlineElements.length-1;for(let e=0;e<o;e++)r.inlineIndex[r.chars.length]=c,Fa(r,`⁠`,1,null,-1);let l=r.chars.length;Aa(e,i,n,r);for(let e=l;e<r.chars.length;e++)r.inlineIndex[e]===void 0&&(r.inlineIndex[e]=c);for(let e=0;e<s;e++)r.inlineIndex[r.chars.length]=c,Fa(r,`⁠`,1,null,-1)}}function Ma(e,t){if(!e||e.endsWith(`%`))return 0;let n=parseFloat(e);return Number.isFinite(n)?Math.max(0,Se(n,t)):0}function Na(e,t){let n=e=>{if(!e||e===`auto`||e.endsWith(`%`))return null;let n=parseFloat(e);return Number.isFinite(n)?Se(n,t):null};return{top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)}}function Pa(e){let t=[],n=[],r=[],i=[],a=[],o=()=>{let e=t.length;for(;e>0&&t[e-1]!==`
951
+ `},mi=class{start(e){performance.mark(`${e} (start)`)}end(e,t){performance.mark(`${e} (end)`),performance.measure(e,{start:`${e} (start)`,end:`${e} (end)`,detail:t})}hit(e,t){performance.mark(e,{detail:t})}error(e){throw performance.mark(`(error)`,{detail:{error:`${e}`}}),e}},hi=`text/tailwindcss`,gi,_i=new Set,vi=``,yi=document.createElement(`style`),bi=Promise.resolve(),xi=1,Z=new mi;async function Si(){Z.start(`Create compiler`),Z.start(`Reading Stylesheets`);let e=document.querySelectorAll(`style[type="${hi}"]`),t=``;for(let n of e)Oi(n),t+=n.textContent+`
952
+ `;if(t.includes(`@import`)||(t=`@import "tailwindcss";${t}`),Z.end(`Reading Stylesheets`,{size:t.length,changed:vi!==t}),vi!==t){vi=t,Z.start(`Compile CSS`);try{gi=await fi(t,{base:`/`,loadStylesheet:Ci,loadModule:wi})}finally{Z.end(`Compile CSS`),Z.end(`Create compiler`)}_i.clear()}}async function Ci(e,t){function n(){if(e===`tailwindcss`)return{path:`virtual:tailwindcss/index.css`,base:t,content:pi.index};if(e===`tailwindcss/preflight`||e===`tailwindcss/preflight.css`||e===`./preflight.css`)return{path:`virtual:tailwindcss/preflight.css`,base:t,content:pi.preflight};if(e===`tailwindcss/theme`||e===`tailwindcss/theme.css`||e===`./theme.css`)return{path:`virtual:tailwindcss/theme.css`,base:t,content:pi.theme};if(e===`tailwindcss/utilities`||e===`tailwindcss/utilities.css`||e===`./utilities.css`)return{path:`virtual:tailwindcss/utilities.css`,base:t,content:pi.utilities};throw Error(`The browser build does not support @import for "${e}"`)}try{let r=n();return Z.hit(`Loaded stylesheet`,{id:e,base:t,size:r.content.length}),r}catch(n){throw Z.hit(`Failed to load stylesheet`,{id:e,base:t,error:n.message??n}),n}}async function wi(){throw Error(`The browser build does not support plugins or config files.`)}async function Ti(e){if(!gi)return;let t=new Set;Z.start(`Collect classes`);for(let e of document.querySelectorAll(`[class]`))for(let n of e.classList)_i.has(n)||(_i.add(n),t.add(n));Z.end(`Collect classes`,{count:t.size}),(t.size!==0||e!==`incremental`)&&(Z.start(`Build utilities`),yi.textContent=gi.build(Array.from(t)),Z.end(`Build utilities`))}function Ei(e){async function t(){if(!gi&&e!==`full`)return;let t=xi++;Z.start(`Build #${t} (${e})`),e===`full`&&await Si(),Z.start(`Build`),await Ti(e),Z.end(`Build`),Z.end(`Build #${t} (${e})`)}bi=bi.then(t).catch(e=>Z.error(e))}var Di=new MutationObserver(()=>Ei(`full`));function Oi(e){Di.observe(e,{attributes:!0,attributeFilter:[`type`],characterData:!0,subtree:!0,childList:!0})}new MutationObserver(e=>{let t=0,n=0;for(let r of e){for(let e of r.addedNodes)e.nodeType===Node.ELEMENT_NODE&&e.tagName===`STYLE`&&e.getAttribute(`type`)===hi&&(Oi(e),t++);for(let e of r.addedNodes)e.nodeType===1&&e!==yi&&n++;r.type===`attributes`&&n++}if(t>0)return Ei(`full`);if(n>0)return Ei(`incremental`)}).observe(document.documentElement,{attributes:!0,attributeFilter:[`class`],childList:!0,subtree:!0}),Ei(`full`),document.head.append(yi)})();var e=new Map,t=new Set;function n(n,r){let i=n.toLowerCase().trim();e.has(i)&&console.warn(`[monowind] registerBorderGlyphs: replacing "${i}" (last registration wins).`),e.set(i,r);for(let e of t)e()}function r(t){if(t)return e.get(t.toLowerCase().trim())}function i(e){return t.add(e),()=>t.delete(e)}function a(e){switch(e){case 1:case 2:case 3:return`h`;case 4:case 8:case 12:return`v`;case 5:return`tl`;case 6:return`tr`;case 9:return`bl`;case 10:return`br`;case 7:return`teeDown`;case 11:return`teeUp`;case 13:return`teeRight`;case 14:return`teeLeft`;case 15:return`cross`;default:return null}}var o=[` `,`─`,`─`,`─`,`│`,`┌`,`┐`,`┬`,`│`,`└`,`┘`,`┴`,`│`,`├`,`┤`,`┼`],s=[` `,`═`,`═`,`═`,`║`,`╔`,`╗`,`╦`,`║`,`╚`,`╝`,`╩`,`║`,`╠`,`╣`,`╬`];function c(e){let t={};for(let n=1;n<16;n++){let r=a(n);r&&!(r in t)&&(t[r]=e[n])}return t}var l=e=>c(Array.from({length:16},()=>e));n(`default`,{}),n(`rounded`,{solid:{tl:`╭`,tr:`╮`,bl:`╰`,br:`╯`}});var u={...l(`+`),h:`-`,v:`|`};n(`ascii`,{solid:{...u,scrollTrack:`|`,scrollThumb:`#`},double:{...u,h:`=`},dashed:u,dotted:{...u,h:`.`,v:`:`}});var d=c(o);n(`single`,{double:d,dashed:d,dotted:d}),n(`cp437`,{dashed:d,dotted:d});function f(e){return{track:e?.solid?.scrollTrack??`░`,thumb:e?.solid?.scrollThumb??`█`}}n(`blocks`,{solid:l(`█`),double:l(`█`),dashed:l(`▒`),dotted:l(`░`)});var p=new WeakMap;function m(e,t){let n=p.get(e);n||p.set(e,n=new Set),!n.has(t)&&(n.add(t),console.warn(`[monowind] ${t}`,h(e)))}function h(e){if(!globalThis.process?.versions?.node)return e;let t=e.id?`#${e.id}`:``,n=e.classList.length?`.${Array.from(e.classList).join(`.`)}`:``;return`<${e.tagName.toLowerCase()}${t}${n}>`}var g=new Map,_=new Set;function v(e){let t=e.tag.toLowerCase();if(!t.includes(`-`)){console.warn(`[monowind] registerLeafRenderer: "${e.tag}" is not a custom-element tag name (needs a hyphen); ignored.`);return}g.has(t)&&console.warn(`[monowind] registerLeafRenderer: replacing existing renderer for <${t}> (last registration wins).`),g.set(t,{...e,tag:t}),w()}function y(){w()}function b(e){return g.get(e.toLowerCase())}function x(){let e=new Set;for(let t of g.values())for(let n of t.observedAttributes??[])e.add(n.toLowerCase());return[...e]}function S(e){return _.add(e),()=>_.delete(e)}function C(e,t){try{return e.render(t)}catch(n){return m(t,`<${e.tag}> renderer threw; rendering nothing. ${String(n)}`),null}}function w(){for(let e of _)e()}var T=new WeakMap,E=[],D=new Map;function O(e,t,n){let r=T.get(e);T.set(e,t);let i=D.get(e);if(i){if(t!==i.toValue){let n=te(i);return D.delete(e),E.push({el:e,from:n,to:t}),n}let n=te(i);return n===i.toValue&&D.delete(e),n}return r!==void 0&&r!==t&&n.transitionDuration.split(`,`).some(e=>parseFloat(e)>0)?(E.push({el:e,from:r,to:t}),r):t}function ee(e){let t=!1;for(let n=E.length-1;n>=0;n--){let{el:r,from:i,to:a}=E[n];if(!r.isConnected){E.splice(n,1);continue}if(!e.contains(r))continue;E.splice(n,1),t=!0;let o=re(getComputedStyle(r),`background-color`),s=oe(i),c=oe(a);o&&s&&c&&D.set(r,{from:s,to:c,toValue:a,start:performance.now()+o.delay,duration:o.duration,easing:o.easing})}return t}function k(){let e=performance.now();for(let[t,n]of D)(!t.isConnected||e>=n.start+n.duration)&&D.delete(t);return D.size>0}function te(e){let t=(performance.now()-e.start)/e.duration;if(t>=1)return e.toValue;let n=t<=0?0:e.easing(t);return ce(se(e.from,e.to,n))}var ne={ease:[.25,.1,.25,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]};function re(e,t){let n=e.transitionProperty.split(`,`).map(e=>e.trim()),r=-1;for(let e=0;e<n.length;e++)(n[e]===t||n[e]===`all`)&&(r=e);if(r<0)return null;let i=e=>{let t=e.split(`,`).map(e=>e.trim());return t[r%t.length]??``},a=A(i(e.transitionDuration));return a<=0?null:{duration:a*1e3,delay:A(i(e.transitionDelay))*1e3,easing:ie(i(e.transitionTimingFunction))}}function A(e){let t=parseFloat(e);return Number.isFinite(t)?e.endsWith(`ms`)?t/1e3:t:0}function ie(e){if(e===`linear`)return e=>e;let t=ne[e];if(t)return ae(...t);let n=e.match(/^cubic-bezier\(([^)]+)\)$/);if(n){let[e,t,r,i]=n[1].split(`,`).map(e=>parseFloat(e));if([e,t,r,i].every(e=>Number.isFinite(e)))return ae(e,t,r,i)}return e=>e}function ae(e,t,n,r){let i=(e,t,n)=>3*e*n*(1-n)*(1-n)+3*t*n*n*(1-n)+n*n*n;return a=>{let o=0,s=1;for(let t=0;t<24;t++){let t=(o+s)/2;i(e,n,t)<a?o=t:s=t}return i(t,r,(o+s)/2)}}function oe(e){if(e===``||e===`transparent`)return{r:0,g:0,b:0,a:0,legacy:!0};let t=e.match(/^rgba?\(([^)]+)\)$/);if(t){let e=t[1].split(/[\s,/]+/).map(e=>parseFloat(e));return e.length<3||e.some(e=>!Number.isFinite(e))?null:{r:e[0]/255,g:e[1]/255,b:e[2]/255,a:e[3]??1,legacy:!0}}if(t=e.match(/^color\(srgb ([^)]+)\)$/),t){let e=t[1].split(/[\s/]+/).map(e=>parseFloat(e));return e.length<3||e.slice(0,3).some(e=>!Number.isFinite(e))?null:{r:e[0],g:e[1],b:e[2],a:e[3]??1,legacy:!1}}if(t=e.match(/^okl(ch|ab)\(([^)]+)\)$/),t){let e=t[1]===`ch`,n=t[2].replaceAll(`none`,`0`).split(/[\s/]+/).map(e=>parseFloat(e));if(n.length<3||n.some(e=>!Number.isFinite(e)))return null;let[r,i,a]=n;return{...fe(r,e?i*Math.cos(a*Math.PI/180):i,e?i*Math.sin(a*Math.PI/180):a),a:n[3]??1,legacy:!1}}return null}function se(e,t,n){let r=e.a+(t.a-e.a)*n,i=(i,a)=>{let o=i*e.a+(a*t.a-i*e.a)*n;return r===0?0:o/r};if(e.legacy&&t.legacy)return{r:i(e.r,t.r),g:i(e.g,t.g),b:i(e.b,t.b),a:r,legacy:!0};let a=de(e.r,e.g,e.b),o=de(t.r,t.g,t.b);return{...fe(i(a.l,o.l),i(a.a,o.a),i(a.b,o.b)),a:r,legacy:!1}}function ce(e){let t=e=>Math.round(Math.min(1,Math.max(0,e))*255),n=Math.round(Math.min(1,Math.max(0,e.a))*1e3)/1e3;return`rgba(${t(e.r)}, ${t(e.g)}, ${t(e.b)}, ${n})`}function le(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function ue(e){return e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055}function de(e,t,n){let r=le(e),i=le(t),a=le(n),o=Math.cbrt(.4122214708*r+.5363325363*i+.0514459929*a),s=Math.cbrt(.2119034982*r+.6806995451*i+.1073969566*a),c=Math.cbrt(.0883024619*r+.2817188376*i+.6299787005*a);return{l:.2104542553*o+.793617785*s-.0040720468*c,a:1.9779984951*o-2.428592205*s+.4505937099*c,b:.0259040371*o+.7827717662*s-.808675766*c}}function fe(e,t,n){let r=(e+.3963377774*t+.2158037573*n)**3,i=(e-.1055613458*t-.0638541728*n)**3,a=(e-.0894841775*t-1.291485548*n)**3;return{r:ue(4.0767416621*r-3.3077115913*i+.2309699292*a),g:ue(-1.2684380046*r+2.6097574011*i-.3413193965*a),b:ue(-.0041960863*r-.7034186147*i+1.707614701*a)}}function pe(e,t,n){let i=e.border;if(i.top===0&&i.right===0&&i.bottom===0&&i.left===0)return;let a=Math.max(i.top,i.right,i.bottom,i.left);for(let o=0;o<a;o++){let a={top:o<i.top,right:o<i.right,bottom:o<i.bottom,left:o<i.left},s={x:t.x+(a.left?o:0),y:t.y+(a.top?o:0),width:t.width-(a.left?o:0)-(a.right?o:0),height:t.height-(a.top?o:0)-(a.bottom?o:0)};s.width<=0||s.height<=0||me(n,e.borderStyle,e.borderColor,s,a,r(e.glyphSet))}}function me(e,t,n,r,i,a){let o=ve(t.top,a),s=ve(t.right,a),c=ve(t.bottom,a),l=ve(t.left,a),u=(e,t,n)=>n(ve(e===t?e:`solid`,a)),{x:d,y:f,width:p,height:m}=r,h=p>=2&&m>=2,g=d+ +!!i.left,_=d+p-+!!i.right,v=f+ +!!i.top,y=f+m-+!!i.bottom;if(i.top&&_>g&&e.push({glyph:o.h,x:g,y:f,length:_-g,color:n.top}),i.bottom&&m>+!!i.top&&_>g&&e.push({glyph:c.h,x:g,y:f+m-1,length:_-g,color:n.bottom}),i.left)for(let t=v;t<y;t++)e.push({glyph:l.v,x:d,y:t,length:1,color:n.left});if(i.right&&p>+!!i.left)for(let t=v;t<y;t++)e.push({glyph:s.v,x:d+p-1,y:t,length:1,color:n.right});h&&(i.top&&i.left&&e.push({glyph:u(t.top,t.left,e=>e.tl),x:d,y:f,length:1,color:n.top}),i.top&&i.right&&e.push({glyph:u(t.top,t.right,e=>e.tr),x:d+p-1,y:f,length:1,color:n.top}),i.bottom&&i.left&&e.push({glyph:u(t.bottom,t.left,e=>e.bl),x:d,y:f+m-1,length:1,color:n.bottom}),i.bottom&&i.right&&e.push({glyph:u(t.bottom,t.right,e=>e.br),x:d+p-1,y:f+m-1,length:1,color:n.bottom}))}function he(e,t){return e.style.position!==`static`||(t.style.display===`flex`||t.style.display===`grid`)&&e.style.zIndex!==null}function ge(e){if(e.children.length<=1)return e.children;let t=null,n=null,r=null,i=null;for(let a of e.children)he(a,e)?(a.style.zIndex??0)<0?(t??=[]).push(a):(i??=[]).push(a):a.inlineBox?(r??=[]).push(a):(n??=[]).push(a);return t&&t.length>1&&t.sort((e,t)=>(e.style.zIndex??0)-(t.style.zIndex??0)),i&&i.length>1&&i.sort((e,t)=>(e.style.zIndex??0)-(t.style.zIndex??0)),!t&&n&&!r&&!i?n:!t&&!n&&r&&!i?r:!t&&!n&&!r&&i?i:[...t??[],...n??[],...r??[],...i??[]]}function _e(e,t,n){let r=ve(e,n);return t===`h`?r.h:r.v}function j(e,t,n,r,i,c){let l=(t?8:0)|(n?4:0)|(r?2:0)|!!i;if(c){let t=a(l),n=t&&c[e]?.[t];if(n)return n}return(e===`double`?s:o)[l]}function ve(e,t){let n=(n,r,i,a)=>j(e,n,r,i,a,t),r={h:n(!1,!1,!0,!0),v:n(!0,!0,!1,!1),tl:n(!1,!0,!1,!0),tr:n(!1,!0,!0,!1),bl:n(!0,!1,!1,!0),br:n(!0,!1,!0,!1)};return e===`dashed`?{h:`╌`,v:`╎`,...M(r),...N(t,e)}:e===`dotted`?{h:`┄`,v:`┊`,...M(r),...N(t,e)}:r}function M(e){let{h:t,v:n,...r}=e;return r}function N(e,t){let n=e?.[t],r={};return n?.h&&(r.h=n.h),n?.v&&(r.v=n.v),r}function ye(e,t,n,r){let i=e.map(e=>e.spanned?!1:n===`between`?e.beforeOccupied&&e.afterOccupied:n!==`around`||e.beforeOccupied||e.afterOccupied),a=[];for(let n=0;n<e.length;n++)if(a.push({start:e[n].start,end:e[n].end,covered:i[n]}),n+1<e.length){let r=t===`intersection`?!1:t===`none`?i[n]||i[n+1]:i[n]&&i[n+1];a.push({start:e[n].end,end:e[n+1].start,covered:r})}let o=[];for(let e of a){if(!e.covered)continue;let t=o[o.length-1];t&&t.end===e.start?t.end=e.end:o.push({start:e.start,end:e.end})}if(r===`overlap-join`){let t=new Map,n=new Map;for(let r=0;r+1<e.length;r++){let i=e[r].end,a=e[r+1].start-i;a<=0||(n.set(i,i+Math.ceil(a/2)),t.set(e[r+1].start,i+Math.floor(a/2)))}return o.map(e=>{let r=t.get(e.start),i=n.get(e.end);return{start:r??e.start,end:i??e.end,startHalf:r!==void 0,endHalf:i!==void 0}})}return o.map(e=>({start:e.start+r,end:e.end-r})).filter(e=>e.end>e.start)}function be(e){let t=[],n=e.border.left+e.padding.left,r=e.border.top+e.padding.top,i=(e,t)=>({line:t.bandStart+Math.floor((t.bandSize-e.width)/2),start:t.start,end:t.end,startHalf:t.startHalf===!0,endHalf:t.endHalf===!0}),a=e.ruleX?e.vertical.map(t=>i(e.ruleX,t)):[],o=e.ruleY?e.horizontal.map(t=>i(e.ruleY,t)):[],s=e.ruleX?.width??0,c=e.ruleY?.width??0,l=(e,t,n,r)=>e.some(e=>n>=e.line&&n<e.line+t&&(e.start<r&&e.end>r||e.end===r&&!e.endHalf||e.start===r&&!e.startHalf)),u=(e,t)=>o.some(n=>t>=n.line&&t<n.line+c&&e>=n.start&&e<n.end);if(e.ruleX){let i=_e(e.ruleX.style,`v`,e.glyphs);for(let o of a){for(let a=0;a<s;a++)for(let s=o.start;s<o.end;s++)u(o.line+a,s)||t.push({glyph:i,x:n+o.line+a,y:r+s,length:1,color:e.ruleX.color});xe(e,t,`x`,o.line,o.start,o.end)}}if(e.ruleY){let i=e.ruleY.style===`double`&&e.ruleX?.style===`double`;for(let u of o){for(let d=0;d<c;d++){let f=u.line+d;for(let d=u.start;d<u.end;d++){let u=l(a,s,d,f),p=l(a,s,d,f+1);t.push({glyph:u||p?j(i?`double`:`solid`,u,p,l(o,c,f,d),l(o,c,f,d+1),e.glyphs):_e(e.ruleY.style,`h`,e.glyphs),x:n+d,y:r+f,length:1,color:e.ruleY.color})}}xe(e,t,`y`,u.line,u.start,u.end)}}return t}function xe(e,t,n,r,i,a){let o=n===`x`?e.ruleX:e.ruleY,s=e.border.left+e.padding.left,c=e.border.top+e.padding.top,l=s+e.contentWidth+e.padding.right+e.border.right,u=c+e.contentHeight+e.padding.bottom+e.border.bottom,d=(n,r,i,a,s,c,l,u)=>{let d=o.style===`double`&&i===`double`?`double`:`solid`;t.push({glyph:j(d,s,c,l,u,e.glyphs),x:n,y:r,length:1,color:a})};if(n===`x`)for(let t=0;t<o.width;t++){let n=s+r+t;i<=0&&e.padding.top===0&&e.border.top>0&&d(n,e.border.top-1,e.borderStyle.top,e.borderColor.top,!1,!0,!0,!0),a>=e.contentHeight&&e.padding.bottom===0&&e.border.bottom>0&&d(n,u-e.border.bottom,e.borderStyle.bottom,e.borderColor.bottom,!0,!1,!0,!0)}else for(let t=0;t<o.width;t++){let n=c+r+t;i<=0&&e.padding.left===0&&e.border.left>0&&d(e.border.left-1,n,e.borderStyle.left,e.borderColor.left,!0,!0,!1,!0),a>=e.contentWidth&&e.padding.right===0&&e.border.right>0&&d(l-e.border.right,n,e.borderStyle.right,e.borderColor.right,!0,!0,!0,!1)}}function Se(e){return(e>=0?Math.floor(e+.5):-Math.floor(-e+.5))||0}function Ce(e,t){return t<=0?0:Se(e/(.25*t))}function P(e,t){return Se(t*e/100)}function F(e,t){let n=t.getBoundingClientRect(),r=parseFloat(getComputedStyle(e).letterSpacing)||0,i=t.ownerDocument.createRange();i.selectNodeContents(t);let a=i.getBoundingClientRect().height,o=Math.max(0,a-n.height),s=Math.max(0,n.height-a),c=n.width/100,l=Math.ceil(c*64-1e-6)/64;return{width:l,height:n.height,letterSpacing:r,gridLetterSpacing:r+(l-c),inkOverhang:o,backgroundGap:s}}function I(){return parseFloat(getComputedStyle(document.documentElement).fontSize)||16}var L=[[4352,4447],[9001,9002],[11904,11929],[11931,12019],[12032,12245],[12272,12287],[12288,12350],[12353,12438],[12441,12543],[12549,12591],[12593,12686],[12688,12773],[12783,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510],[94176,94180],[94192,94193],[94208,100343],[100352,101589],[101631,101640],[110576,110590],[110592,110882],[110898,110898],[110928,110930],[110933,110933],[110948,110951],[110960,111355],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[131072,196605],[196608,262141]];function we(e){let t=0,n=L.length;for(;t<n;){let r=t+n>>1,[i,a]=L[r];if(e<i)n=r;else if(e>a)t=r+1;else return!0}return!1}var Te=/^\p{Extended_Pictographic}/u,R=/^\p{Emoji_Presentation}/u,Ee=/^\p{Regional_Indicator}/u,De=/^\p{Regional_Indicator}\p{Regional_Indicator}/u,Oe=/^[\p{Default_Ignorable_Code_Point}\p{Cc}\p{Cf}]+$/u,ke=`︎`,Ae=`️`,je=`‍`,Me=`⃣`;function Ne(e){let t=e.codePointAt(0);return t===void 0?0:t<128&&e.length===1?t<32||t===127?0:1:Te.test(e)?e.includes(ke)?1:e.includes(Ae)||e.includes(je)||R.test(e)?2:1:e.includes(Me)?2:Ee.test(e)?De.test(e)?2:1:we(t)||R.test(e)?2:+!Oe.test(e)}var Pe=/^[\x00-\x7f]*$/,Fe;function Ie(e){return Pe.test(e)?e.split(``):(Fe===void 0&&(Fe=typeof Intl.Segmenter==`function`?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null),Fe?Array.from(Fe.segment(e),e=>e.segment):Array.from(e))}function Le(e,t){let n=Ne(e);return n===0?0:n+t}function Re(e,t=0){let n=[];for(let r of Ie(e)){n.push(Le(r,t));for(let e=1;e<r.length;e++)n.push(0)}return n}function ze(e){let t=0;for(let n of Ie(e))t+=Ne(n);return t}function Be(e,t,n={}){return Ue(e,t,n).length}function Ve(e,t){return t.endsWith(`
953
+ `)&&e.pop(),e}function He(e){let t=[],n=0;for(let r=0;r<=e.length;r++)(r===e.length||e[r]===`
954
+ `)&&(t.push({start:n,end:r}),n=r+1);return Ve(t,e)}function Ue(e,t,n={}){if(!/[^ \t\r\f]/.test(e))return[];let r=[],i=0,a=n.firstLineIndent??0;for(let o=0;o<=e.length;o++)(o===e.length||e[o]===`
955
+ `)&&(r.push(...Qe(e,i,o,t,n,a)),a=0,i=o+1);return Ve(r,e)}function We(e,t,n){if(!n)return t-e;let r=0;for(let i=e;i<t;i++)r+=n[i]??1;return r}function Ge(e,t,n,r,i=0){return n<=t?0:We(t,n,r)-Math.min(i,Ke(e,n-1,r))}function Ke(e,t,n){if(!n)return 0;let r=t;for(;r>0&&n[r]===0;)r--;let i=Math.max(1,Ne(e.slice(r,t+1)));return Math.max(0,(n[r]??1)-i)}function qe(e,t={}){let{advances:n,tracking:r=0}=t,i=0;for(let t of Ze(e,0,e.length))for(let a of Ye(e,t.start,t.end))i=Math.max(i,Ge(e,a.start,a.end,n,r));return i}function Je(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===``&&(t(r,n),n++)}function Ye(e,t,n){let r=[],i=t;for(let a=t;a<n;a++){if(e[a]===``){a>i&&r.push({start:i,end:a}),r.push({start:a,end:a+1}),i=a+1;continue}if(e[a]!==`-`)continue;let o=a===t;for(;a+1<n&&e[a+1]===`-`;)a++;let s=a+1;!o&&s<n&&(r.push({start:i,end:s}),i=s)}return r.push({start:i,end:n}),r}var Xe=/[ \t\r\n\f]/;function Ze(e,t,n){let r=[],i=t;for(;i<n;){for(;i<n&&Xe.test(e[i]);)i++;if(i>=n)break;let t=i;for(;i<n&&!Xe.test(e[i]);)i++;r.push({start:t,end:i})}return r}function Qe(e,t,n,r,{advances:i,tracking:a=0},o=0){let s=Ze(e,t,n);if(s.length===0)return[{start:t,end:t}];if(r<=0)return[{start:s[0].start,end:s[s.length-1].end}];let c=[],l=null,u=0,d=Math.max(0,o),f=()=>r-d;for(let t of s){let n=!1;for(let r of Ye(e,t.start,t.end)){let t=r.start,o=r.end,s=l!==null&&!n?t-1:t,p=u+We(s,o,i),m=Math.min(a,Ke(e,o-1,i));if(l!==null&&p-m<=f())l.end=o,u=p;else{for(l!==null&&(c.push(l),d=0);;){let n=t;for(;n<o&&Ge(e,t,n+1,i,a)<=f();)n++;if(n===o||n===t)break;c.push({start:t,end:n}),d=0,t=n}l={start:t,end:o},u=We(t,o,i)}n=!0}}return l!==null&&c.push(l),c}function $e(e,t){let n=e.row.map(e=>e.node.localRect).sort((e,t)=>e.x-t.x),r=[];for(let e=1;e<n.length;e++){let i=n[e-1].x+n[e-1].width-t,a=n[e].x-t;a>i&&r.push({start:i,end:a})}return r}function et(e,t,n,r,i){if(e.style.ruleBreak!==`intersection`)return[{start:0,end:i}];let a=[t[n-1],t[n]].flatMap(e=>$e(e,r)).sort((e,t)=>e.start-t.start),o=(e,t)=>({start:e,end:t,spanned:!1,beforeOccupied:!0,afterOccupied:!0}),s=[],c=0;for(let e of a)e.start>c&&s.push(o(c,e.start)),c=Math.max(c,e.end);return c<i&&s.push(o(c,i)),ye(s,`intersection`,`all`,e.style.ruleInset===`overlap-join`?`overlap-join`:0)}function tt(e,t){return typeof t!=`number`||t<=0?e:e.map(e=>({...e,start:e.start+t,end:e.end-t})).filter(e=>e.end>e.start)}function nt(e,t,n,i,a,o,s){let c=$n(e.style,`x`,t),l=$n(e.style,`y`,n),u=ft(e).map(e=>{let n=X(e.style.margin,t);return{node:e,base:dt(e,t,s),grow:e.style.flexGrow,shrink:e.style.flexShrink,min:ht(e,t,s),max:tr(e.style.maxWidth,t),margin:n}}),d=[];if(e.style.flexWrap===`wrap`){let n=[],r=0;for(let e of u){let i=Math.max(0,J(e.base,e.min,e.max))+(e.margin.left??0)+(e.margin.right??0),a=n.length===0?i:r+c+i;n.length>0&&a>t&&(d.push(n),n=[],r=0),n.push(e),r=n.length===1?i:r+c+i}n.length>0&&d.push(n),e.style.wrapReverse&&d.reverse()}else d.push(u);let f=a.left+o.left,p=a.top+o.top,m=d.map(e=>{let n=c*Math.max(0,e.length-1),r=e.reduce((e,t)=>e+(t.margin.left??0)+(t.margin.right??0),0),a=Math.max(0,t-n-r),o=e.some(e=>e.margin.left===null||e.margin.right===null),l=e.reduce((e,t)=>e+t.base,0),u=o&&l<=a?e.map(e=>Math.max(0,J(e.base,e.min,e.max))):ct(e,a);for(let n=0;n<e.length;n++)q(e[n].node,t,i,0,0,`fill`,s,{width:u[n]});return{row:e,widths:u,availableForItems:a,height:e.reduce((e,t)=>Math.max(e,t.node.localRect.height),0)}}),h=m.map(e=>e.height),g=l*Math.max(0,m.length-1),_;if(e.style.flexWrap===`nowrap`)i===void 0?Number.isFinite(n)&&(h[0]=Math.max(n,h[0]??0)):h[0]=i,_=[0];else{let t=h.reduce((e,t)=>e+t,0),r=Number.isFinite(n)?Math.max(0,n-t-g):0,i=pt(e.style);if(i===`stretch`&&r>0){let e=z(Array.from({length:m.length},()=>1),r);for(let t=0;t<h.length;t++)h[t]+=e[t];_=st(`start`,h,0)}else _=st(i===`stretch`?`start`:i,h,r)}for(let r=0;r<m.length;r++){let{row:a,widths:o,availableForItems:u}=m[r],d=h[r],g=_[r]+r*l;for(let r=0;r<a.length;r++){let c=a[r].node,l=lt(c,e),u=a[r].margin,f=u.top===null||u.bottom===null,p=c.style.height!==void 0&&c.style.height.kind!==`auto`;if(l===`stretch`&&!f&&!p&&d!==c.localRect.height){let e=u.top??0,a=u.bottom??0,l=Number.isFinite(n)?n:void 0,f=J(Math.max(0,d-e-a),tr(c.style.minHeight,l)??0,tr(c.style.maxHeight,l));if(f===c.localRect.height)continue;q(c,t,i,0,0,`fill`,s,{width:o[r],height:f})}}let v=o.reduce((e,t)=>e+t,0),y=Math.max(0,u-v),b=a.reduce((e,t)=>e+ +(t.margin.left===null)+ +(t.margin.right===null),0),x=Array.from({length:a.length},()=>0),S=Array.from({length:a.length},()=>0),C;if(b>0&&y>0){let e=z(Array.from({length:b},()=>1),y),t=0;for(let n=0;n<a.length;n++)a[n].margin.left===null&&(x[n]=e[t++]),a[n].margin.right===null&&(S[n]=e[t++]);C=st(`start`,o,0)}else C=st(mt(e.style),o,y);let w=0;for(let t=0;t<a.length;t++){let n=a[t],r=n.node,i=n.margin.left??0,o=n.margin.right??0;w+=x[t]+i,r.localRect={...r.localRect,x:f+C[t]+t*c+w,y:p+g+at(r,e.style.alignItems,d,n.margin)},w+=S[t]+o}}let v=h.reduce((e,t)=>e+t,0)+g,y=Number.isFinite(n)?Math.max(n,v):v;if(e.style.ruleX||e.style.ruleY){let n=[],i=[];for(let r=0;r<m.length;r++){let a=_[r]+r*l;for(let e of $e(m[r],f))n.push({bandStart:e.start,bandSize:e.end-e.start,start:a,end:a+h[r]});if(r>0){let n=_[r-1]+(r-1)*l+h[r-1];if(a>n)for(let o of et(e,m,r,f,t))i.push({bandStart:n,bandSize:a-n,...o})}}e.decorationRuns=be({glyphs:r(e.style.glyphSet),ruleX:e.style.ruleX,ruleY:e.style.ruleY,vertical:tt(n,e.style.ruleInset),horizontal:tt(i,e.style.ruleInset),contentWidth:t,contentHeight:y,border:a,borderStyle:e.style.borderStyle,borderColor:e.style.borderColor,padding:o})}return rt(e,a,o,t,y),y}function rt(e,t,n,r,i){for(let a of e.children)K(a.style)&&(a.staticSlot={kind:`flex`,direction:e.style.flexDirection,originX:t.left+n.left,originY:t.top+n.top,innerWidth:r,innerHeight:i})}function it(e,t,n,i,a,o,s){let c=$n(e.style,`y`,n),l=ft(e).map(r=>{let a=X(r.style.margin,t),o=Math.max(0,t-(a.left??0)-(a.right??0)),c=lt(r,e)===`stretch`;q(r,o,i&&Number.isFinite(n)?n:void 0,0,0,c?`fill`:`shrink`,s);let l=Number.isFinite(n)?n:void 0,u=r.style.flexBasis,d=u===void 0||u.kind===`auto`?r.unclampedHeight:u.kind===`cells`?u.value:u.kind===`percent`&&l!==void 0?P(u.value,l):r.unclampedHeight,f=r.style.minHeight===`auto`?r.style.overflow.y===`visible`?r.localRect.height:0:void 0;return{node:r,base:d,grow:r.style.flexGrow,shrink:r.style.flexShrink,min:f??tr(r.style.minHeight,l)??0,max:tr(r.style.maxHeight,l),margin:a}}),u=c*Math.max(0,l.length-1),d=l.reduce((e,t)=>e+(t.margin.top??0)+(t.margin.bottom??0),0),f=Number.isFinite(n),p=l.reduce((e,t)=>e+t.base,0),m=f?Math.max(0,n-u-d):p,h=i?m:Math.max(m,p),g=l.some(e=>e.margin.top===null||e.margin.bottom===null),_=f&&!(f&&g&&p<=h)?ct(l,h):l.map(e=>Math.max(0,J(e.base,e.min,e.max)));for(let n=0;n<l.length;n++)if(_[n]!==l[n].node.localRect.height){let r=l[n],i=Math.max(0,t-(r.margin.left??0)-(r.margin.right??0)),a=lt(r.node,e)===`stretch`;q(r.node,i,_[n],0,0,a?`fill`:`shrink`,s,{height:_[n]})}let v=_.reduce((e,t)=>e+t,0),y=Math.max(0,h-v),b=l.reduce((e,t)=>e+ +(t.margin.top===null)+ +(t.margin.bottom===null),0),x=Array.from({length:l.length},()=>0),S=Array.from({length:l.length},()=>0),C;if(b>0&&y>0){let e=z(Array.from({length:b},()=>1),y),t=0;for(let n=0;n<l.length;n++)l[n].margin.top===null&&(x[n]=e[t++]),l[n].margin.bottom===null&&(S[n]=e[t++]);C=st(`start`,_,0)}else C=st(mt(e.style),_,y);let w=a.left+o.left,T=a.top+o.top,E=0;for(let n=0;n<l.length;n++){let r=l[n],i=r.node,a=r.margin.top??0,o=r.margin.bottom??0;E+=x[n]+a,i.localRect={...i.localRect,x:w+ot(i,e.style.alignItems,t,r.margin),y:T+C[n]+n*c+E},E+=S[n]+o}let D=v+u+d,O=f?Math.max(n,D):D;if(e.style.ruleY&&l.length>1){let n=[],i=l.map(e=>e.node.localRect).slice().sort((e,t)=>e.y-t.y);for(let e=1;e<i.length;e++){let r=i[e-1].y+i[e-1].height-T,a=i[e].y-T-r;a>0&&n.push({bandStart:r,bandSize:a,start:0,end:t})}e.decorationRuns=be({glyphs:r(e.style.glyphSet),ruleX:null,ruleY:e.style.ruleY,vertical:[],horizontal:tt(n,e.style.ruleInset),contentWidth:t,contentHeight:O,border:a,borderStyle:e.style.borderStyle,borderColor:e.style.borderColor,padding:o})}return rt(e,a,o,t,O),O}function at(e,t,n,r){let i=e.style.alignSelf===`auto`?t:e.style.alignSelf,a=r.top??0,o=r.bottom??0,s=n-e.localRect.height,c=r.top===null&&r.bottom===null,l=r.top===null&&r.bottom!==null,u=r.bottom===null&&r.top!==null;return c?Math.floor(s/2):l?s-o:u?a:a+ut(i,n,e.localRect.height)}function ot(e,t,n,r){let i=e.style.alignSelf===`auto`?t:e.style.alignSelf,a=r.left??0,o=r.right??0,s=n-e.localRect.width,c=r.left===null&&r.right===null,l=r.left===null&&r.right!==null,u=r.right===null&&r.left!==null;return c?Math.floor(s/2):l?s-o:u?a:a+ut(i,n,e.localRect.width)}function st(e,t,n){let r=t.length;if(r===0)return[];let i=[],a=0;if(e===`space-between`&&r>1){let e=Math.floor(n/(r-1)),o=n-e*(r-1);for(let n=0;n<r;n++)i.push(a),a+=t[n]+e+ +(n<o);return i}if((e===`space-around`||e===`space-evenly`)&&n>0){let o=z(Array.from({length:r+1},(t,n)=>e===`space-evenly`||n===0||n===r?1:2),n);for(let e=0;e<r;e++)a+=o[e],i.push(a),a+=t[e];return i}e===`center`?a=Math.floor(n/2):e===`end`&&(a=n);for(let e=0;e<r;e++)i.push(a),a+=t[e];return i}function ct(e,t){let n=e.length,r=(t,n)=>Math.max(0,J(t,e[n].min??0,e[n].max)),i=e.map(e=>e.base),a=t>=i.reduce((e,t,n)=>e+r(t,n),0),o=Array.from({length:n},()=>0),s=Array.from({length:n},()=>!1);for(let t=0;t<n;t++){let n=r(i[t],t);((a?e[t].grow:e[t].shrink)===0||a&&i[t]>n||!a&&i[t]<n)&&(o[t]=n,s[t]=!0)}for(;;){let c=[];for(let e=0;e<n;e++)s[e]||c.push(e);if(c.length===0)break;let l=o.reduce((e,t,n)=>s[n]?e+t:e,0),u=c.reduce((e,t)=>e+i[t],0),d=t-l-u,f=a?Math.max(0,d):Math.max(0,-d),p=z(c.map(t=>a?e[t].grow:i[t]*e[t].shrink),f),m=c.map((e,t)=>i[e]+(a?p[t]:-p[t])),h=c.map((e,t)=>r(m[t],e)),g=h.reduce((e,t,n)=>e+(t-m[n]),0);if(g===0){for(let e=0;e<c.length;e++)o[c[e]]=h[e];break}for(let e=0;e<c.length;e++){let t=h[e]-m[e];(g>0?t>0:t<0)&&(o[c[e]]=h[e],s[c[e]]=!0)}}return o}function z(e,t){let n=e.reduce((e,t)=>e+t,0);if(n===0||t<=0)return e.map(()=>0);let r=e.map(e=>e/n*t),i=r.map(Math.floor),a=t-i.reduce((e,t)=>e+t,0);if(a>0){let e=r.map((e,t)=>[t,e-Math.floor(e)]).sort((e,t)=>t[1]===e[1]?e[0]-t[0]:t[1]-e[1]);for(let[t]of e){if(a<=0)break;i[t]+=1,--a}}return i}function lt(e,t){return e.style.alignSelf===`auto`?t.style.alignItems:e.style.alignSelf}function ut(e,t,n){return e===`center`?Math.max(0,Math.floor((t-n)/2)):e===`end`?Math.max(0,t-n):0}function dt(e,t,n){let r=e.style.flexBasis,i=e.style.width;return r!==void 0&&r.kind!==`auto`?dr(r,t,e,n):i!==void 0&&i.kind!==`auto`?dr(i,t,e,n):fr(e,n)}function ft(e){let t=e.children.filter(e=>!K(e.style)).sort((e,t)=>e.style.order-t.style.order);return e.style.flexReverse&&t.reverse(),t}function pt(e){return e.wrapReverse?e.alignContent===`start`?`end`:e.alignContent===`end`?`start`:e.alignContent:e.alignContent}function mt(e){let t=e.justifyContent===`stretch`?`start`:e.justifyContent;return e.flexReverse?t===`start`?`end`:t===`end`?`start`:t:t}function ht(e,t,n){return e.style.minWidth===`auto`?e.style.overflow.x===`visible`?hr(e,n):0:tr(e.style.minWidth,t)??0}function gt(e){return e===`auto`||e===`scroll`}function _t(e){return e.children.filter(e=>e.inlineBox)}function vt(e){return{right:e.scrollbarSize.y+e.scrollbarInset.x,bottom:e.scrollbarSize.x+e.scrollbarInset.y}}function B(e){if(e.scrollbarWidth===`none`)return{right:0,bottom:0};let t=vt(e);return{right:e.overflow.y===`scroll`?t.right:0,bottom:e.overflow.x===`scroll`?t.bottom:0}}function yt(){return{display:`block`,flexDirection:`row`,flexReverse:!1,flexWrap:`nowrap`,wrapReverse:!1,flexGrow:0,flexShrink:0,flexBasis:void 0,order:0,justifyContent:`stretch`,alignContent:`stretch`,alignItems:`stretch`,alignSelf:`auto`,justifyItems:`stretch`,justifySelf:`auto`,gridTemplateColumns:{kind:`none`},gridTemplateRows:{kind:`none`},gridAutoColumns:[xt()],gridAutoRows:[xt()],gridAutoFlow:{direction:`row`,dense:!1},gridTemplateAreas:null,gridColumnStart:{kind:`auto`},gridColumnEnd:{kind:`auto`},gridRowStart:{kind:`auto`},gridRowEnd:{kind:`auto`},width:void 0,height:void 0,minWidth:`auto`,minHeight:`auto`,maxWidth:void 0,maxHeight:void 0,padding:bt(),margin:{top:0,right:0,bottom:0,left:0},position:`static`,insets:{top:null,right:null,bottom:null,left:null},gapX:0,gapY:0,border:bt(),borderStyle:{top:`solid`,right:`solid`,bottom:`solid`,left:`solid`},overflow:{x:`visible`,y:`visible`},scrollbarWidth:`auto`,scrollbarSize:{x:1,y:1},scrollbarInset:{x:0,y:0},overscroll:{x:!0,y:!0},scrollbarColor:null,whiteSpace:`normal`,tabSize:8,lineGap:0,tracking:0,textOverflow:`clip`,color:void 0,backgroundColor:void 0,backgroundClear:!1,fontWeight:`400`,fontStyle:`normal`,textDecorationLine:`none`,borderColor:{top:void 0,right:void 0,bottom:void 0,left:void 0},textAlignBlocked:!1,textAlign:`start`,textIndent:0,tableRole:`none`,tableLayout:`auto`,borderCollapse:!1,borderSpacingX:0,borderSpacingY:0,captionSide:`top`,verticalAlign:`start`,glyphSet:null,opacity:1,zIndex:null,latticeBorder:null,ruleX:null,ruleY:null,ruleBreak:`normal`,ruleInset:0,ruleVisibilityItems:`normal`,columnCount:null,columnWidth:null,columnFill:`balance`,columnSpan:!1,breakBeforeColumn:!1,breakAfterColumn:!1,breakInsideAvoid:!1}}function bt(){return{top:0,right:0,bottom:0,left:0}}function xt(){return{min:{kind:`auto`},max:{kind:`auto`}}}function St(e,t,n,i,a,o){let s=e.style,c=Number.isFinite(n)?n:void 0,l=e.subgrid?.cols,u=e.subgrid?.rows,d=l?l.gap:$n(s,`x`,t),f=u?u.gap:$n(s,`y`,c),p=Mt(e,t,c,d,f,e.subgrid?{col:e.subgrid.colSpan,row:e.subgrid.rowSpan}:void 0),{children:m,placed:h,colLines:g,rowLines:_,colTracks:v,rowTracks:y,colCollapsed:b,rowCollapsed:x}=p,S=m.map(e=>X(e.style.margin,t)),C=m.map(e=>e.style.justifySelf===`auto`?s.justifyItems:e.style.justifySelf),w=m.map(Ct),T=l?Tt(l):Kt(v,b,Et(p,w,S,o),t,d,s.justifyContent===`stretch`),E=l?l.positions:qt(T,t,s.justifyContent),D=[];for(let e=0;e<m.length;e++){let t=m[e],n=h.items[e],r=Yt(E,T.sizes,n.col.start,n.col.span),i=S[e],a=Math.max(0,r-It(i)),s=w[e];if(s.cols||s.rows){let e=s.cols?wt(E,T,d,n.col.start,n.col.span,Ot(t,`cols`,i,r)):void 0;t.subgrid={colSpan:n.col.span,rowSpan:n.row.span,cols:e,rows:void 0}}else t.subgrid=void 0;let c=C[e],l=i.left===null||i.right===null,u=t.style.width!==void 0&&t.style.width.kind!==`auto`;s.cols?q(t,r,void 0,0,0,`fill`,o,{width:a}):c===`stretch`&&!l&&!u?q(t,r,void 0,0,0,`fill`,o,{width:J(a,t.style.minWidth===`auto`?t.style.overflow.x===`visible`?hr(t,o):0:tr(t.style.minWidth,r)??0,nr(t.style.maxWidth,r,t,o))}):q(t,a,void 0,0,0,`shrink`,o),D.push(t.localRect.width)}let O=u?Tt(u):Kt(y,x,Dt(p,w,S),c??`max-content`,f,s.alignContent===`stretch`),ee=Jt(O),k=u?u.positions:qt(O,c??ee,s.alignContent),te=i.left+a.left,ne=i.top+a.top;for(let t=0;t<m.length;t++){let n=m[t],r=h.items[t],i=S[t],a=Yt(E,T.sizes,r.col.start,r.col.span),s=Yt(k,O.sizes,r.row.start,r.row.span),c=Math.max(0,s-Lt(i)),l=lt(n,e),u=i.top===null||i.bottom===null,d=n.style.height!==void 0&&n.style.height.kind!==`auto`;if(w[t].rows)n.subgrid.rows=wt(k,O,f,r.row.start,r.row.span,Ot(n,`rows`,i,a)),q(n,a,s,0,0,`fill`,o,{width:D[t],height:c});else if(l===`stretch`&&!u&&!d){let e=J(c,n.style.minHeight===`auto`?n.style.overflow.y===`visible`?n.localRect.height:0:tr(n.style.minHeight,s)??0,tr(n.style.maxHeight,s));e!==n.localRect.height&&q(n,a,s,0,0,`fill`,o,{width:D[t],height:e})}else n.style.height?.kind===`percent`&&q(n,a,s,0,0,`fill`,o,{width:D[t]});n.localRect={...n.localRect,x:te+E[r.col.start]+Xt(C[t],i.left,i.right,a,n.localRect.width),y:ne+k[r.row.start]+Xt(l,i.top,i.bottom,s,n.localRect.height)}}let re=Number.isFinite(n)?Math.max(n,ee):ee;if(s.ruleX||s.ruleY){let n=T.sizes.length,o=O.sizes.length,c=Array.from({length:n},()=>Array.from({length:o},()=>!1)),l=Array.from({length:Math.max(0,n-1)},()=>Array.from({length:o},()=>!1)),u=Array.from({length:Math.max(0,o-1)},()=>Array.from({length:n},()=>!1));for(let e of h.items)for(let t=e.col.start;t<e.col.start+e.col.span&&t<n;t++)for(let r=e.row.start;r<e.row.start+e.row.span&&r<o;r++)c[t][r]=!0,t+1<e.col.start+e.col.span&&t<n-1&&(l[t][r]=!0),r+1<e.row.start+e.row.span&&r<o-1&&(u[r][t]=!0);let d=(e,t,n,r,i,a)=>t.map((t,o)=>({start:t,end:t+n[o],spanned:r[e]?.[o]??!1,beforeOccupied:i(o),afterOccupied:a(o)})),f=(e,t,n)=>{let r=[];for(let i=1;i<e.length;i++){let a=e[i-1]+t[i-1],o=e[i]-a;if(!(o<=0))for(let e of ye(n(i-1),s.ruleBreak,s.ruleVisibilityItems,s.ruleInset))r.push({bandStart:a,bandSize:o,...e})}return r},p=f(E,T.sizes,e=>d(e,k,O.sizes,l,t=>c[e]?.[t]??!1,t=>c[e+1]?.[t]??!1)),m=f(k,O.sizes,e=>d(e,E,T.sizes,u,t=>c[t]?.[e]??!1,t=>c[t]?.[e+1]??!1));e.decorationRuns=be({glyphs:r(s.glyphSet),ruleX:s.ruleX,ruleY:s.ruleY,vertical:p,horizontal:m,contentWidth:t,contentHeight:re,border:i,borderStyle:s.borderStyle,borderColor:s.borderColor,padding:a})}let A=e.children.filter(e=>K(e.style));if(A.length>0){let e=K(s)?{x:i.left,y:i.top,width:a.left+t+a.right,height:a.top+re+a.bottom}:{x:te,y:ne,width:t,height:re};for(let n of A){let r=At(n.style.gridColumnStart,n.style.gridColumnEnd,g,h.colOrigin,E,T.sizes,-a.left,t+a.right),i=At(n.style.gridRowStart,n.style.gridRowEnd,_,h.rowOrigin,k,O.sizes,-a.top,re+a.bottom);n.staticSlot={kind:`grid`,area:{x:te+r.start,y:ne+i.start,width:Math.max(0,r.end-r.start),height:Math.max(0,i.end-i.start)},staticArea:e}}}return re}function Ct(e){let t=e.style.display===`grid`;return{cols:t&&e.style.gridTemplateColumns.kind===`subgrid`,rows:t&&e.style.gridTemplateRows.kind===`subgrid`}}function wt(e,t,n,r,i,a){let o=e[r]+a.start,s=t.sizes.slice(r,r+i);return s[0]=Math.max(0,s[0]-a.start),s[i-1]=Math.max(0,s[i-1]-a.end),{positions:Array.from({length:i},(t,n)=>n===0?0:e[r+n]-o),sizes:s,gapBefore:Array.from({length:i},(e,n)=>n===0?0:t.gapBefore[r+n]),gap:n}}function Tt(e){return{sizes:e.sizes,gapBefore:e.gapBefore,limits:e.sizes}}function Et(e,t,n,r){let i=[];return e.children.forEach((a,o)=>{let s=e.placed.items[o],c=n[o];if(t[o].cols){let e=Ot(a,`cols`,c,0);for(let t of kt(a,`cols`,s,e,r))i.push({...t,start:t.start+s.col.start});return}i.push({start:s.col.start,span:s.col.span,min:mr(a,`min`,r)+It(c),max:mr(a,`max`,r)+It(c)})}),i}function Dt(e,t,n){let r=[];return e.children.forEach((i,a)=>{let o=e.placed.items[a],s=n[a];if(t[a].rows){let e=Ot(i,`rows`,s,0);for(let t of kt(i,`rows`,o,e))r.push({...t,start:t.start+o.row.start});return}let c=i.localRect.height+Lt(s),l=i.style.minHeight===`auto`&&i.style.overflow.y!==`visible`?Lt(s):c;r.push({start:o.row.start,span:o.row.span,min:l,max:c})}),r}function Ot(e,t,n,r){let{border:i,padding:a}=e.style;return t===`cols`?{start:(n.left??0)+i.left+Y(a.left,r),end:(n.right??0)+i.right+Y(a.right,r)}:{start:(n.top??0)+i.top+Y(a.top,r),end:(n.bottom??0)+i.bottom+Y(a.bottom,r)}}function kt(e,t,n,r,i){let a=t===`cols`?n.col.span:n.row.span,o=Mt(e,void 0,void 0,0,0,{col:n.col.span,row:n.row.span}),s=[];if(o.children.forEach((e,n)=>{let c=o.placed.items[n],l=t===`cols`?c.col:c.row,u=l.start===0,d=l.start+l.span===a,f=(u?r.start:0)+(d?r.end:0),p=X(e.style.margin,0);if(Ct(e)[t]){let n=Ot(e,t,p,0),a=kt(e,t,c,{start:n.start+(u?r.start:0),end:n.end+(d?r.end:0)},i);for(let e of a)s.push({...e,start:e.start+l.start});return}if(t===`cols`)s.push({start:l.start,span:l.span,min:mr(e,`min`,i)+It(p)+f,max:mr(e,`max`,i)+It(p)+f});else{let t=e.localRect.height+Lt(p)+f;s.push({start:l.start,span:l.span,min:t,max:t})}}),s.length===0){let e=r.start+r.end;s.push({start:0,span:a,min:e,max:e})}return s}function At(e,t,n,r,i,a,o,s){let c=Ut(e,`start`,n),l=Ut(t,`end`,n);c!==null&&l!==null?c>l?[c,l]=[l,c]:c===l&&(l=null):c!==null&&t.kind===`span`?l=Wt(c,t,1,n):l!==null&&e.kind===`span`&&(c=Wt(l,e,-1,n));let u=i.length,d=e=>{if(e===null)return;let t=e-r;return t<0||t>u||u===0?void 0:t},f=e=>e===u?i[u-1]+a[u-1]:i[e],p=e=>e===0?i[0]:i[e-1]+a[e-1],m=d(c),h=d(l);return{start:m===void 0?o:f(m),end:h===void 0?s:p(h)}}function jt(e,t){let n=t.gridIntrinsic.get(e);if(n!==void 0)return n;let r=e.style,i=Math.max(typeof r.gapX==`number`?r.gapX:0,r.ruleX?.width??0),a=Mt(e,void 0,void 0,i,0,e.subgrid?{col:e.subgrid.colSpan,row:e.subgrid.rowSpan}:void 0),o=a.children.map(Ct),s=a.children.map(e=>X(e.style.margin,0)),c=Kt(a.colTracks,a.colCollapsed,Et(a,o,s,t),`min-content`,i,!1),l=c.gapBefore.reduce((e,t)=>e+t,0),u={min:c.sizes.reduce((e,t)=>e+t,0)+l,max:c.limits.reduce((e,t)=>e+t,0)+l};return t.gridIntrinsic.set(e,u),u}function Mt(e,t,n,r,i,a){let o=e.style,s=Ft(e),c=o.gridTemplateColumns.kind===`subgrid`&&a!==void 0,l=o.gridTemplateRows.kind===`subgrid`&&a!==void 0,u=c?Nt(a.col):Rt(o.gridTemplateColumns,t,r),d=l?Nt(a.row):Rt(o.gridTemplateRows,n,i),f=o.gridTemplateAreas,p=[...u.tracks],m=[...d.tracks];if(f){c||Bt(p,u.lineNames,f.columns,o.gridAutoColumns),l||Bt(m,d.lineNames,f.rows,o.gridAutoRows);for(let[e,t]of f.areas)u.lineNames[Math.min(t.colStart,p.length)].push(`${e}-start`),u.lineNames[Math.min(t.colEnd,p.length)].push(`${e}-end`),d.lineNames[Math.min(t.rowStart,m.length)].push(`${e}-start`),d.lineNames[Math.min(t.rowEnd,m.length)].push(`${e}-end`)}let h={explicitCount:p.length,names:u.lineNames},g={explicitCount:m.length,names:d.lineNames},_=Gt(s.map(e=>({col:V(e.style.gridColumnStart,e.style.gridColumnEnd,h),row:V(e.style.gridRowStart,e.style.gridRowEnd,g)})),p.length,m.length,o.gridAutoFlow);return c&&Pt(_,`col`,p.length),l&&Pt(_,`row`,m.length),{children:s,placed:_,colLines:h,rowLines:g,colTracks:Vt(p,_.colOrigin,_.colCount,o.gridAutoColumns),rowTracks:Vt(m,_.rowOrigin,_.rowCount,o.gridAutoRows),colCollapsed:Ht(u,_.colOrigin,_.colCount,_.items.map(e=>e.col)),rowCollapsed:Ht(d,_.rowOrigin,_.rowCount,_.items.map(e=>e.row))}}function Nt(e){return{tracks:Array.from({length:e},()=>xt()),lineNames:Array.from({length:e+1},()=>[])}}function Pt(e,t,n){let r=t===`col`?e.colOrigin:e.rowOrigin;for(let i of e.items){let e=i[t],a=Math.min(Math.max(e.start+r,0),n-1),o=Math.min(Math.max(e.start+r+e.span,a+1),n);e.start=a,e.span=o-a}t===`col`?(e.colOrigin=0,e.colCount=n):(e.rowOrigin=0,e.rowCount=n)}function Ft(e){return e.children.filter(e=>!K(e.style)&&!e.inlineBox).sort((e,t)=>e.style.order-t.style.order)}function It(e){return(e.left??0)+(e.right??0)}function Lt(e){return(e.top??0)+(e.bottom??0)}function Rt(e,t,n){if(e.kind!==`tracks`)return{tracks:[],lineNames:[[]]};let r=(e.lineNames??Array.from({length:e.tracks.length+1},()=>[])).map(e=>[...e]);if(!e.autoRepeat)return{tracks:e.tracks,lineNames:r};let{index:i,tracks:a,mode:o}=e.autoRepeat,s=1;if(t!==void 0){let e=a.reduce((e,n)=>{let r=zt(n.min,t)??zt(n.max,t)??1;return e+Math.max(1,r)},0);s=Math.max(1,Math.floor((t+n)/(e+n*a.length)))}let c=[];for(let e=0;e<s;e++)c.push(...a);let l=[...e.tracks.slice(0,i),...c,...e.tracks.slice(i)],u=e.autoRepeat.lineNames??Array.from({length:a.length+1},()=>[]),d=r.slice(0,i),f=[...e.autoRepeat.leadingNames??[]];for(let e=0;e<s;e++){f.push(...u[0]);for(let e=0;e<a.length;e++)d.push(f),f=[...u[e+1]]}return d.push([...f,...r[i]]),d.push(...r.slice(i+1)),o===`auto-fit`?{tracks:l,lineNames:d,autoFit:{start:i,end:i+c.length}}:{tracks:l,lineNames:d}}function zt(e,t){if(e.kind===`cells`)return e.value;if(e.kind===`percent`&&t!==void 0)return P(e.value,t);if(e.kind===`math`){let n=[];for(let r of e.args){let e=zt(r,t);if(e===void 0)return;n.push(e)}return e.fn===`min`?Math.min(...n):Math.max(...n)}}function Bt(e,t,n,r){for(let i=e.length;i<n;i++)e.push(r[(i-e.length)%r.length]),t.push([])}function Vt(e,t,n,r){let i=[];for(let a=0;a<n;a++){let n=a+t;if(n>=0&&n<e.length)i.push(e[n]);else{let t=n<0?n:n-e.length;i.push(r[(t%r.length+r.length)%r.length])}}return i}function Ht(e,t,n,r){let i=Array.from({length:n},()=>!1);if(!e.autoFit)return i;for(let a=e.autoFit.start;a<e.autoFit.end;a++){let e=a-t;e<0||e>=n||r.some(t=>e>=t.start&&e<t.start+t.span)||(i[e]=!0)}return i}function Ut(e,t,n){if(e.kind===`line`)return e.value>0?e.value-1:n.explicitCount+1+e.value;if(e.kind!==`name`)return null;if(e.nth===void 0){let r=`${e.name}-${t}`,i=n.names.findIndex(e=>e.includes(r));if(i!==-1)return i}let r=e.nth??1,i=n.explicitCount,a=0;if(r>0){for(let t=0;t<=i;t++)if(n.names[t].includes(e.name)&&++a===r)return t;return i+(r-a)}for(let t=i;t>=0;t--)if(n.names[t].includes(e.name)&&++a===-r)return t;return-(-r-a)}function Wt(e,t,n,r){if(t.name===void 0)return e+n*t.value;let i=t.value,a=e;for(;i>0;)a+=n,(!(a>=0&&a<=r.explicitCount)||r.names[a].includes(t.name))&&i--;return a}function V(e,t,n){let r=Ut(e,`start`,n),i=Ut(t,`end`,n);if(r!==null&&i!==null)return r===i?{start:r,span:1}:{start:Math.min(r,i),span:Math.abs(i-r)};if(r!==null)return{start:r,span:(t.kind===`span`?Wt(r,t,1,n):r+1)-r};if(i!==null){let t=e.kind===`span`?Wt(i,e,-1,n):i-1;return{start:t,span:i-t}}return{start:null,span:e.kind===`span`?e.value:t.kind===`span`?t.value:1}}function Gt(e,t,n,r){let i=r.direction===`row`,a=e.map(e=>i?e.row:e.col),o=e.map(e=>i?e.col:e.row),s=i?t:n,c=i?n:t,l=0,u=Math.max(s,1);for(let t=0;t<e.length;t++){let e=o[t];e.start!==null&&(l=Math.min(l,e.start),u=Math.max(u,e.start+e.span))}for(let t=0;t<e.length;t++){let e=o[t];e.start===null&&(u=Math.max(u,l+e.span))}let d=0;for(let t=0;t<e.length;t++){let e=a[t];e.start!==null&&(d=Math.min(d,e.start))}let f=new Set,p=(e,t,n,r)=>{for(let i=e;i<e+n;i++)for(let e=t;e<t+r;e++)if(f.has(`${i}:${e}`))return!1;return!0},m=(e,t,n,r)=>{for(let i=e;i<e+n;i++)for(let e=t;e<t+r;e++)f.add(`${i}:${e}`)},h=e.map(()=>null);for(let t=0;t<e.length;t++){let e=a[t],n=o[t];e.start!==null&&n.start!==null&&(h[t]={major:e.start,minor:n.start},m(e.start,n.start,e.span,n.span))}let g=new Map;for(let t=0;t<e.length;t++){let e=a[t],n=o[t];if(e.start===null||n.start!==null)continue;let i=r.dense?l:Math.max(l,g.get(e.start)??l);for(;!p(e.start,i,e.span,n.span);)i++;h[t]={major:e.start,minor:i},m(e.start,i,e.span,n.span),r.dense||g.set(e.start,i+n.span),u=Math.max(u,i+n.span)}let _=d,v=l;for(let t=0;t<e.length;t++){if(h[t]!==null)continue;let e=a[t],n=o[t];if(r.dense&&(_=d,v=l),n.start!==null){for(n.start<v&&_++;!p(_,n.start,e.span,n.span);)_++;h[t]={major:_,minor:n.start},m(_,n.start,e.span,n.span),v=n.start+n.span}else{let r=_,i=v;for(;;){if(i+n.span>u){r++,i=l;continue}if(p(r,i,e.span,n.span))break;i++}h[t]={major:r,minor:i},m(r,i,e.span,n.span),_=r,v=i+n.span}}let y=Math.max(c,d);for(let t=0;t<e.length;t++)y=Math.max(y,h[t].major+a[t].span);let b=e.map((e,t)=>{let n={start:h[t].major-d,span:a[t].span},r={start:h[t].minor-l,span:o[t].span};return i?{col:r,row:n}:{col:n,row:r}}),x=y-d,S=u-l;return i?{items:b,colOrigin:l,colCount:S,rowOrigin:d,rowCount:x}:{items:b,colOrigin:d,colCount:x,rowOrigin:l,rowCount:S}}function Kt(e,t,n,r,i,a){let o=typeof r==`number`?r:void 0,s=e.map((e,n)=>{if(t[n])return{base:0,limit:0,baseIntrinsic:!1,limitKind:`fixed`,frFactor:0,collapsed:!0};let r=zt(e.min,o),i=r??0,a=r===void 0,s=e.max;if(s.kind===`fr`)return{base:i,limit:null,baseIntrinsic:a,limitKind:`fr`,frFactor:s.value,collapsed:!1};let c=zt(s,o);return c===void 0?{base:i,limit:null,baseIntrinsic:a,limitKind:s.kind===`min-content`?`intrinsic-min`:`intrinsic-max`,frFactor:0,collapsed:!1}:{base:i,limit:c,baseIntrinsic:a,limitKind:`fixed`,frFactor:0,collapsed:!1}}),c=s.map((e,t)=>t===0||e.collapsed?0:s.slice(0,t).some(e=>!e.collapsed)?i:0),l=(e,t)=>{let n=0;for(let r=e+1;r<e+t;r++)n+=c[r];return n},u=e=>e.collapsed?0:e.limitKind===`fixed`?e.limit:Math.max(e.base,e.limit??e.base),d=[...n].sort((e,t)=>e.span-t.span);for(let e of d){let t=[],n=!1;for(let r=e.start;r<e.start+e.span;r++){let e=s[r];e!==void 0&&(e.limitKind===`fr`&&(n=!0),t.push(e))}if(t.length===0)continue;let r=l(e.start,e.span);if(n){let n=t.filter(e=>e.limitKind===`fr`&&e.baseIntrinsic&&!e.collapsed);if(n.length===0)continue;let i=t.reduce((e,t)=>e+t.base,0)+r,a=e.min-i;if(a>0){let e=n.reduce((e,t)=>e+t.frFactor,0),t=z(n.map(t=>e>0?t.frFactor:1),a);n.forEach((e,n)=>{e.base+=t[n]})}continue}let i=t.filter(e=>e.baseIntrinsic&&!e.collapsed);if(i.length>0){let n=t.reduce((e,t)=>e+t.base,0)+r,a=e.min-n;if(a>0){let e=z(i.map(()=>1),a);i.forEach((t,n)=>{t.base+=e[n]})}}for(let[n,i]of[[`intrinsic-min`,e.min],[`intrinsic-max`,e.max]]){let e=t.filter(e=>e.limitKind===n&&!e.collapsed);if(e.length===0)continue;let a=i-(t.reduce((e,t)=>e+u(t),0)+r);if(a>0){let t=z(e.map(()=>1),a);e.forEach((e,n)=>{e.limit=u(e)+t[n]})}}}for(let e of s)e.collapsed||(e.limitKind===`fixed`?e.base=Math.min(e.base,e.limit):e.limitKind!==`fr`&&(e.limit=Math.max(e.base,e.limit??e.base)));if(o===void 0){let e=s.filter(e=>e.limitKind===`fr`&&!e.collapsed);if(e.length>0){let t=0;for(let n of e)n.frFactor>0&&(t=Math.max(t,n.base/n.frFactor));for(let e of n){let n=0,r=l(e.start,e.span);for(let t=e.start;t<e.start+e.span;t++){let e=s[t];e===void 0||e.collapsed||(e.limitKind===`fr`?n+=e.frFactor:r+=u(e))}n<=0||(t=Math.max(t,(e.max-r)/Math.max(n,1)))}for(let n of e){let e=Math.max(n.base,Se(n.frFactor*t));n.limit=e,r===`max-content`&&(n.base=e)}}if(r===`max-content`)for(let e of s)!e.collapsed&&e.limitKind!==`fr`&&(e.base=u(e))}else{let e=c.reduce((e,t)=>e+t,0),t=o-e-s.reduce((e,t)=>e+t.base,0);for(;!(t<=0);){let e=s.filter(e=>!e.collapsed&&e.limitKind!==`fr`&&e.base<u(e));if(e.length===0)break;let n=z(e.map(()=>1),t),r=0;if(e.forEach((e,t)=>{let i=Math.min(n[t],u(e)-e.base);e.base+=i,r+=i}),t-=r,r===0)break}let n=s.filter(e=>e.limitKind===`fr`);if(n.length>0){let t=Math.max(0,o-e-s.reduce((e,t)=>e+(t.limitKind===`fr`?0:t.base),0)),r=n,i=t,a=n.reduce((e,t)=>e+t.frFactor,0);for(a<1&&(i=Math.floor(i*a));;){let e=z(r.map(e=>e.frFactor),i),t=r.filter((t,n)=>e[n]<t.base);if(t.length===0){r.forEach((t,n)=>{t.base=Math.max(t.base,e[n])});break}for(let e of t)i-=e.base;if(i=Math.max(0,i),r=r.filter(e=>!t.includes(e)),r.length===0)break}}if(a){let t=o-e-s.reduce((e,t)=>e+t.base,0),n=s.filter(e=>!e.collapsed&&e.limitKind===`intrinsic-max`);if(t>0&&n.length>0){let e=z(n.map(()=>1),t);n.forEach((t,n)=>{t.base+=e[n]})}}}return{sizes:s.map(e=>e.base),gapBefore:c,limits:s.map(e=>u(e))}}function qt(e,t,n){let{sizes:r,gapBefore:i}=e,a=Math.max(0,t-Jt(e)),o=st(n===`stretch`?`start`:n,r,a),s=[],c=0;for(let e=0;e<r.length;e++)c+=i[e],s.push(o[e]+c);return s}function Jt(e){return e.sizes.reduce((e,t)=>e+t,0)+e.gapBefore.reduce((e,t)=>e+t,0)}function Yt(e,t,n,r){let i=n+r-1;return e[n]===void 0||e[i]===void 0?0:e[i]+t[i]-e[n]}function Xt(e,t,n,r,i){let a=t??0,o=n??0,s=r-i;return t===null&&n===null?Math.floor(s/2):t===null?s-o:n===null?a:a+ut(e,r,i+a+o)}function Zt(e,t,n){let r=e.columnWidth===null?null:Math.max(1,Math.floor((t+n)/(e.columnWidth+n)));return e.columnCount!==null&&r!==null?Math.max(1,Math.min(e.columnCount,r)):r===null?Math.max(1,e.columnCount??1):r}function Qt(e,t,n){let r=Zt(e,t,n),i=Math.max(1,Math.floor((t-(r-1)*n)/r)),a=Math.max(0,t-(r*i+(r-1)*n));return Array.from({length:r},(e,t)=>i+ +(t<a))}function $t(e,t){let n=Math.max(typeof e.gapX==`number`?e.gapX:0,e.ruleX?.width??0);return e.columnCount===null?Math.max(e.columnWidth??1,t):e.columnCount*t+(e.columnCount-1)*n}function en(e,t){return e===void 0?t:t===void 0?e:Math.min(e,t)}function tn(e,t,n){for(;e<t;){let r=e+t>>1;n(r)?t=r:e=r+1}return e}function H(e,t,n){let r=Zt(e,t,n),i=Math.max(1,Math.floor((t-(r-1)*n)/r));return{count:r,width:i,leftover:Math.max(0,t-(r*i+(r-1)*n))}}function U(e,t,n){return e===`all`?!0:e===`around`?t||n:t&&n}function nn(e,t,n,r){let i=Zn(e,Math.max(1,t.width-e.style.tracking)),{heights:a,textOffsets:o}=Qn(e,i),s=e.style.lineGap,c=G(a.map(e=>e+s)),l;if(e.style.columnFill===`auto`&&r!==void 0)l=Math.max(1,r);else{let e=tn(c.reduce((e,t)=>Math.max(e,t.rows-s),1),Math.max(1,c.reduce((e,t)=>e+t.rows,0)-s),e=>W(c,s,e).columns<=t.count);l=r===void 0?e:Math.max(1,Math.min(e,r))}let u=W(c,s,l);return{spans:i,lineY:u.top,textY:u.top.map((e,t)=>e+o[t]),lineX:u.column.map(e=>e*(t.width+n)),totalRows:u.maxUsed,columnCount:t.count,columnWidth:t.width,gap:n,columnsUsed:i.length>0?u.columns:0}}function W(e,t,n,r=`truncate`){let i=0,a=0,o=0,s=[],c=[];for(let l=0;l<e.length;l++){let u=e[l],d=r===`glue`||l===0||a>0?u.pre:0;a>0&&(u.forced||a+d+u.rows+u.post-t>n)&&(r===`truncate`&&(d=0),i+=1,a=0);let f=u.rows/u.lines;if(u.lines>1&&u.rows-t>n){for(let e=0;e<u.lines;e++)a>0&&a+d+f-t>n&&(r===`truncate`&&(d=0),i+=1,a=0),s.push(i),c.push(a+d),a+=d+f,d=0,o=Math.max(o,a-t);a+=u.post,u.post>0&&(o=Math.max(o,a));continue}for(let e=0;e<u.lines;e++)s.push(i),c.push(a+d+e*f);a+=d+u.rows+u.post,o=Math.max(o,a-(u.post>0?0:t))}return{columns:i+1,maxUsed:o,column:s,top:c}}function G(e){return e.map(e=>({rows:e,pre:0,post:0,forced:!1,lines:1}))}var rn=null;function an(){if(rn!==null)return rn;let e=document.createElement(`div`);e.style.cssText=`position:absolute;left:-9999px;visibility:hidden;columns:2;column-gap:0;column-fill:balance;width:200px;font:10px/20px monospace;orphans:1;widows:1`,e.innerHTML=`<div style="margin:0;padding:0 0 20px 0">aaaaaa aaaaaa aaaaaa</div><div style="margin:0"><span>bbbbbb</span> bbbbbb</div>`,document.body.appendChild(e);let t=e.getBoundingClientRect().top,n=e.querySelector(`span`).getBoundingClientRect();return e.remove(),rn=!(n.width>0&&n.top-t>=10),rn}function on(e,t,n,i){let a=e.style;if(!a.ruleX)return;let o=t.columnCount*t.columnWidth+(t.columnCount-1)*t.gap,s=t.ruleSegments??[{start:0,end:t.totalRows,columns:t.columnsUsed}],c=[];for(let e of s){let n=Math.min(e.columns,t.columnCount);for(let r=0;r<t.columnCount-1;r++)U(a.ruleVisibilityItems,r<n,r+1<n)&&c.push({bandStart:(r+1)*t.columnWidth+r*t.gap,bandSize:t.gap,start:e.start,end:e.end})}e.decorationRuns=be({glyphs:r(a.glyphSet),ruleX:a.ruleX,ruleY:null,vertical:tt(c,a.ruleInset),horizontal:[],contentWidth:o,contentHeight:t.totalRows,border:n,borderStyle:a.borderStyle,borderColor:a.borderColor,padding:i})}function sn(e,t){let n=e.style,r=n.padding;return e.text!==``&&e.children.length===0&&n.display===`block`&&n.position===`static`&&!n.columnSpan&&n.whiteSpace===`normal`&&n.lineGap===t.lineGap&&n.border.top===0&&n.border.right===0&&n.border.bottom===0&&n.border.left===0&&r.top===0&&r.right===0&&r.bottom===0&&r.left===0&&n.backgroundColor===void 0&&!n.backgroundClear&&n.overflow.x===`visible`&&n.overflow.y===`visible`&&(n.width===void 0||n.width.kind===`auto`)&&(n.height===void 0||n.height.kind===`auto`)&&(n.minWidth===`auto`||n.minWidth===0||n.minWidth===void 0)&&(n.minHeight===`auto`||n.minHeight===0||n.minHeight===void 0)&&n.maxWidth===void 0&&n.maxHeight===void 0}function cn(e,t,n,r,i,a,o){let s=e.style,c=$n(s,`x`,n),l=H(s,n,c);a.right+=l.leftover;let u=s.lineGap,d=i.left+a.left,f=i.top+a.top,p=n-l.leftover,m=[[]],h=[];for(let e of t)e.style.columnSpan?(h[m.length-1]=e,m.push([])):m[m.length-1].push(e);let g=m.length>1,_=g?`glue`:`truncate`,v=[],y=0,b=0;for(let e=0;e<m.length;e++){let t=m[e],n=0;if(t.length>0){let i=t.map(e=>({node:e,spans:Zn(e,Math.max(1,l.width-e.style.tracking)),margin:X(e.style.margin,l.width),pre:0,post:0})),a=[],o=null,h=null,x=!1;for(let e of i){let{node:t,spans:n,margin:r}=e,i=o===null?r.top??0:ar(o,r.top??0),s=i;_===`glue`&&h!==null?(s=0,h.post=i,a[a.length-1].post=i):e.pre=i;let c=x||t.style.breakBeforeColumn;if(t.style.breakInsideAvoid&&n.length>0)a.push({rows:n.length*(1+u),pre:s,post:0,forced:c,lines:n.length});else for(let e=0;e<n.length;e++)a.push({rows:1+u,pre:e>0?0:s,post:0,forced:e===0&&c,lines:1});n.length>0&&(o=r.bottom??0,h=e),x=t.style.breakAfterColumn}n=o??0;let S;if(s.columnFill===`auto`&&r!==void 0)S=Math.max(1,r);else{let e=tn(1,Math.max(1,W(a,u,1/0,_).maxUsed),e=>W(a,u,e,_).columns<=l.count);S=r===void 0?e:Math.max(1,Math.min(e,r))}let C=W(a,u,S,_);for(let e=0,t=0;e<i.length;e++){let{node:n,spans:r,margin:a,pre:o,post:s}=i[e],u=[],m=[];for(let e=0;e<r.length;e++,t++)u.push(y+C.top[t]),m.push(C.column[t]*(l.width+c));delete n.decorationRuns,n.multicolGeometry={spans:r,lineY:u,textY:u,lineX:m,totalRows:y+C.maxUsed,columnCount:l.count,columnWidth:l.width,gap:c,columnsUsed:C.columns},n.multicolFlow=g?{top:o,right:a.right,bottom:s,left:a.left}:a,n.localRect={x:d,y:f,width:p,height:C.maxUsed},n.resolvedPadding={top:0,right:0,bottom:0,left:0}}a.length>0&&(v.push({start:y,end:y+C.maxUsed,columns:C.columns}),b=Math.max(b,C.columns),y+=C.maxUsed+(e<m.length-1?u:0))}let i=h[e];if(i){let e=X(i.style.margin,p),t=(e.left??0)+(e.right??0);q(i,Math.max(0,p-t),void 0,0,0,`fill`,o);let r=ir(e,p,i.localRect.width),a=(e.top??0)+n;y+=a,i.localRect={...i.localRect,x:d+r,y:f+y},i.multicolFlowSpan={top:a,right:0,bottom:e.bottom??0,left:r},y+=i.localRect.height+(e.bottom??0)}}let x=y;for(let t of e.children){if(!K(t.style))continue;let e=X(t.style.margin,n);t.staticSlot={kind:`block`,x:d+(e.left??0),y:f+(e.top??0)}}return e.multicolGeometry={spans:[],lineY:[],textY:[],lineX:[],totalRows:x,columnCount:l.count,columnWidth:l.width,gap:c,columnsUsed:b,...g?{ruleSegments:v,nativeBalance:!0}:{}},x}function ln(e,t,n,i,a,o,s){let c=e.style,l=en(n,i),u=e.children.filter(e=>!K(e.style)),d=u.filter(e=>!e.style.columnSpan),f=u.reduce((e,t,n)=>!t.style.columnSpan&&(n===0||u[n-1].style.columnSpan)?e+1:e,0);if(d.length>0&&d.every(e=>sn(e,c))&&(d.length===u.length||c.columnFill===`balance`&&l===void 0&&(an()||f<=1&&d.every(e=>(e.style.margin.top===0||e.style.margin.top===null)&&(e.style.margin.bottom===0||e.style.margin.bottom===null)))))return cn(e,u,t,l,a,o,s);let p=$n(c,`x`,t),m=Qt(c,t,p),h=m.length,g=[];{let e=0;for(let t of m)g.push(e),e+=t+p}let _=e=>e<h?g[e]:g[h-1]+(e-h+1)*(m[h-1]+p),v=e=>m[Math.min(e,h-1)],y=m[h-1],b=a.left+o.left,x=a.top+o.top,S=[],C=0,w=[],T=[],E=!1,D=(e,t)=>{let r=0,i=0,a=null,o=0,c=e=>{if(t)for(let t of T){if(t.index!==e)continue;let n=a===null?t.margin.top??0:ar(a,t.margin.top??0);t.child.staticSlot={kind:`block`,x:b+_(r)+(t.margin.left??0),y:x+C+i+n}}};for(let l=0;l<w.length;l++){let u=w[l];c(l);let d=a===null?l===0?u.margin.top??0:0:ar(a,u.margin.top??0),f=u.node.localRect.height;if(a!==null&&(u.breakBefore||i+d+f>e)&&(r+=1,i=0,a=null,d=0),t){let e=u.node,t=v(r);if(t!==y){let r=(u.margin.left??0)+(u.margin.right??0);q(e,Math.max(0,t-r),n,0,0,`fill`,s)}e.localRect={...e.localRect,x:b+_(r)+ir(u.margin,t,e.localRect.width),y:x+C+i+d}}i+=d+u.node.localRect.height,o=Math.max(o,i),a=u.margin.bottom??0}return c(w.length),{columns:r+1,maxUsed:o}},O=()=>{if(w.length===0){for(let e of T)e.child.staticSlot={kind:`block`,x:b+(e.margin.left??0),y:x+C+(e.margin.top??0)};T=[];return}let e=l===void 0?void 0:Math.max(1,l-C),t=c.columnFill===`auto`&&e!==void 0,r;if(t)r=e;else{let t=tn(1,D(1/0,!1).maxUsed,e=>D(e,!1).columns<=h);r=e===void 0?t:Math.min(t,e)}let i=D(r,!0),a=t&&n!==void 0?Math.max(i.maxUsed,r):i.maxUsed;if(c.ruleX)for(let e=0;e<h-1;e++){let t=Math.min(i.columns,h);U(c.ruleVisibilityItems,e<t,e+1<t)&&S.push({bandStart:g[e]+m[e],bandSize:p,start:C,end:C+a})}C+=a,w=[],T=[]};for(let r of e.children){if(K(r.style)){T.push({child:r,margin:X(r.style.margin,t),index:w.length});continue}if(r.style.columnSpan){O(),E=!1;let e=X(r.style.margin,t),i=(e.left??0)+(e.right??0);q(r,Math.max(0,t-i),n,0,0,`fill`,s),C+=e.top??0,r.localRect={...r.localRect,x:b+ir(e,t,r.localRect.width),y:x+C},C+=r.localRect.height+(e.bottom??0);continue}let e=X(r.style.margin,y),i=(e.left??0)+(e.right??0);q(r,Math.max(0,y-i),n,0,0,`fill`,s),w.push({node:r,margin:e,breakBefore:E||r.style.breakBeforeColumn}),E=r.style.breakAfterColumn}return O(),c.ruleX&&S.length>0&&(e.decorationRuns=be({glyphs:r(c.glyphSet),ruleX:c.ruleX,ruleY:null,vertical:tt(S,c.ruleInset),horizontal:[],contentWidth:t,contentHeight:C,border:a,borderStyle:c.borderStyle,borderColor:c.borderColor,padding:o})),C}function un(e,t){e.hidden.push(t),t.style.tableRole!==`column`&&t.style.tableRole!==`column-group`&&m(t.source,`Table content outside the expected structure (rows in tables, cells in rows) can't be laid out and was hidden — no anonymous table boxes (specs/table.md).`)}function dn(e,t){let n=Number.parseInt(e.getAttribute(t)??``,10);return Number.isNaN(n)?1:t===`colspan`?Math.min(1e3,Math.max(1,n)):Math.min(65534,Math.max(0,n))}function fn(e,t,n){let r=(t,r)=>{let i=t.style.width,a=i&&i.kind!==`auto`&&i.kind!==`percent`?dr(i,0,t,n):void 0,o=i&&i.kind===`percent`?i.value:void 0;for(let t=0;t<r;t++)e.colFixed.push(a),e.colPercent.push(o)};if(t.style.tableRole===`column`){r(t,pn(t.source));return}let i=t.children.filter(e=>e.style.tableRole===`column`);if(i.length===0)r(t,pn(t.source));else for(let e of i)r(e,pn(e.source));for(let n of t.children)n.style.tableRole!==`column`&&un(e,n)}function pn(e){let t=Number.parseInt(e.getAttribute(`span`)??``,10);return Number.isNaN(t)?1:Math.min(1e3,Math.max(1,t))}function mn(e,t){let n={caption:null,rows:[],rowGroups:[],groupEnds:[],cells:[],columnCount:0,colFixed:[],colPercent:[],hidden:[]},r=[],i=[],a=[];for(let o of e.children){if(K(o.style))continue;let e=o.style.tableRole;if(e===`row`)i.push({row:o,group:null});else if(e===`header-group`||e===`row-group`||e===`footer-group`){let t=e===`header-group`?r:e===`footer-group`?a:i;for(let e of o.children)K(e.style)||(e.style.tableRole===`row`?t.push({row:e,group:o}):un(n,e))}else e===`caption`?n.caption===null?n.caption=o:un(n,o):e===`column`||e===`column-group`?(fn(n,o,t),n.hidden.push(o)):un(n,o)}let o=[...r,...i,...a],s=0;for(let e=0;e<o.length;e++){n.rows.push(o[e].row),n.rowGroups.push(o[e].group);let t=o[e+1]?.group;if(!(e+1<o.length&&(o[e].group===t||o[e].group===null&&t===null))){for(let t=s;t<=e;t++)n.groupEnds.push(e+1);s=e+1}}return hn(n),n}function hn(e){let t=[];for(let n=0;n<e.rows.length;n++){let r=e.rows[n],i=0;for(let a of r.children){if(K(a.style))continue;if(a.style.tableRole!==`cell`){un(e,a);continue}for(;(t[i]??0)>n;)i++;let o=dn(a.source,`colspan`),s=dn(a.source,`rowspan`),c=e.groupEnds[n],l=Math.max(1,Math.min(s===0?c-n:s,c-n));for(let e=i;e<i+o;e++)t[e]=Math.max(t[e]??0,n+l);e.cells.push({node:a,rowNode:r,row:n,col:i,rowSpan:l,colSpan:o}),i+=o}}e.columnCount=Math.max(t.length,e.colFixed.length)}function gn(e,t,n){let r=e.style,i=hr(e,n),a;if(t===`min`)a=i;else{let t=r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`?dr(r.width,0,e,n):void 0;a=t===void 0?fr(e,n):Math.max(i,t)}let o=typeof r.minWidth==`number`?r.minWidth:0,s=typeof r.maxWidth==`number`?r.maxWidth:void 0;return Math.max(0,J(a,o,s))}function _n(e){let t=e.style.width;return t&&t.kind===`percent`?t.value:void 0}function vn(e,t,n){let r=e.columnCount,i=Array.from({length:r},()=>0),a=Array.from({length:r},()=>0),o=Array.from({length:r},()=>void 0);for(let t=0;t<r;t++)e.colFixed[t]!==void 0&&(a[t]=e.colFixed[t]),o[t]=e.colPercent[t];let s=[];for(let t of e.cells){if(t.colSpan>1){s.push(t);continue}i[t.col]=Math.max(i[t.col],gn(t.node,`min`,n)),a[t.col]=Math.max(a[t.col],gn(t.node,`max`,n));let e=_n(t.node);e!==void 0&&(o[t.col]=Math.max(o[t.col]??0,e))}s.sort((e,t)=>e.colSpan-t.colSpan);for(let e of s){let r=e.col,o=e.col+e.colSpan,s=Tn(t,r,o),c=a.slice(r,o);for(let t of[`min`,`max`]){let l=t===`min`?i:a,u=l.slice(r,o).reduce((e,t)=>e+t,0)+s,d=gn(e.node,t,n)-u;if(d<=0)continue;let f=z(c.some(e=>e>0)?c:c.map(()=>1),d);for(let e=r;e<o;e++)l[e]+=f[e-r]}}for(let e=0;e<r;e++)a[e]=Math.max(a[e],i[e]);return{min:i,max:a,percent:o}}function yn(e,t){let n=e.min.length,r=e.min.slice(),i=[],a=[];for(let t=0;t<n;t++)(e.percent[t]===void 0?a:i).push(t);if(i.length>0){let n=i.reduce((t,n)=>t+e.percent[n],0),o=Math.max(100,n);for(let n of i){let i=Math.round(t*e.percent[n]/o);r[n]=Math.max(e.min[n],i)}let s=a.reduce((t,n)=>t+e.min[n],0),c=i.reduce((e,t)=>e+r[t],0)-(t-s);if(c>0){let t=i.map(t=>r[t]-e.min[t]),n=z(t,Math.min(c,t.reduce((e,t)=>e+t,0)));i.forEach((e,t)=>r[e]-=n[t])}}let o=t-r.reduce((e,t)=>e+t,0);if(o>0&&a.length>0){let t=a.map(t=>e.max[t]-e.min[t]),n=t.reduce((e,t)=>e+t,0),i=z(t,Math.min(o,n));a.forEach((e,t)=>r[e]+=i[t]),o-=Math.min(o,n)}if(o>0){let t=a.length>0?a:i;if(t.length>0){let n=t.map(t=>e.max[t]),i=z(n.some(e=>e>0)?n:n.map(()=>1),o);t.forEach((e,t)=>r[e]+=i[t])}}return r}function bn(e,t,n){let r=e.columnCount,i=Array.from({length:r},()=>void 0);for(let n=0;n<r;n++)e.colFixed[n]===void 0?e.colPercent[n]!==void 0&&(i[n]=Math.max(0,Math.round(t*e.colPercent[n]/100))):i[n]=e.colFixed[n];for(let r of e.cells){if(r.row!==0)continue;let e=r.node.style,a;if(e.width&&e.width.kind===`percent`?a=Math.max(0,Math.round(t*e.width.value/100)):e.width&&e.width.kind!==`auto`&&(a=dr(e.width,0,r.node,n)),a===void 0)continue;let o=z(Array.from({length:r.colSpan},()=>1),a);for(let e=0;e<r.colSpan;e++){let t=r.col+e;i[t]===void 0&&(i[t]=o[e])}}let a=i.reduce((e,t)=>e+(t??0),0),o=i.filter(e=>e===void 0).length;if(o>0){let e=z(Array.from({length:o},()=>1),Math.max(0,t-a)),n=0;for(let t=0;t<r;t++)i[t]===void 0&&(i[t]=e[n++])}return i.map(e=>e??0)}var xn={double:3,solid:2,dashed:1,dotted:0};function Sn(e){for(let{border:t,side:n}of e)if(t?.hidden[n])return null;let t=null;for(let{border:n,side:r}of e){if(!n)continue;let e=n.width[r];if(e<=0)continue;let i=n.style[r];(t===null||e>t.width||e===t.width&&xn[i]>xn[t.style])&&(t={width:e,style:i,color:n.color[r]})}return t}function Cn(e,t){let n=t.columnCount,r=t.rows.length,i=e.style.borderCollapse,a={collapsed:i,vLines:Array.from({length:n+1},()=>0),hLines:Array.from({length:r+1},()=>0),spacingX:i?0:e.style.borderSpacingX,spacingY:i?0:e.style.borderSpacingY,vSegments:[],hSegments:[]};if(!i||n===0||r===0)return a;let o=Array.from({length:r},()=>Array.from({length:n},()=>void 0));for(let e of t.cells)for(let t=e.row;t<e.row+e.rowSpan;t++)for(let n=e.col;n<e.col+e.colSpan;n++)o[t][n]=e;let s=e.style.latticeBorder;for(let e=0;e<=n;e++){let i=[];for(let a=0;a<r;a++){let r=e>0?o[a][e-1]:void 0,c=e<n?o[a][e]:void 0;if(r!==void 0&&r===c){i.push(null);continue}let l=[];r&&r.col+r.colSpan===e&&l.push({border:r.node.style.latticeBorder,side:`right`}),c&&c.col===e&&l.push({border:c.node.style.latticeBorder,side:`left`});let u=e===0?`left`:e===n?`right`:null;if(u){l.push({border:t.rows[a].style.latticeBorder,side:u});let e=t.rowGroups[a];e&&l.push({border:e.style.latticeBorder,side:u}),l.push({border:s,side:u})}i.push(Sn(l))}a.vSegments.push(i),a.vLines[e]=i.reduce((e,t)=>Math.max(e,t?.width??0),0)}for(let e=0;e<=r;e++){let i=[];for(let a=0;a<n;a++){let n=e>0?o[e-1][a]:void 0,c=e<r?o[e][a]:void 0;if(n!==void 0&&n===c){i.push(null);continue}let l=[];n&&n.row+n.rowSpan===e&&l.push({border:n.node.style.latticeBorder,side:`bottom`}),c&&c.row===e&&l.push({border:c.node.style.latticeBorder,side:`top`}),e>0&&l.push({border:t.rows[e-1].style.latticeBorder,side:`bottom`}),e<r&&l.push({border:t.rows[e].style.latticeBorder,side:`top`});let u=e>0?t.rowGroups[e-1]:null,d=e<r?t.rowGroups[e]:null;u&&u!==d&&l.push({border:u.style.latticeBorder,side:`bottom`}),d&&d!==u&&l.push({border:d.style.latticeBorder,side:`top`}),e===0&&l.push({border:s,side:`top`}),e===r&&l.push({border:s,side:`bottom`}),i.push(Sn(l))}a.hSegments.push(i),a.hLines[e]=i.reduce((e,t)=>Math.max(e,t?.width??0),0)}return a}function wn(e,t){return e.collapsed?e.vLines.reduce((e,t)=>e+t,0):(t+1)*e.spacingX}function Tn(e,t,n){if(!e.collapsed)return e.spacingX*(n-t-1);let r=0;for(let i=t+1;i<n;i++)r+=e.vLines[i];return r}function En(e,t,n){if(!e.collapsed)return e.spacingY*(n-t-1);let r=0;for(let i=t+1;i<n;i++)r+=e.hLines[i];return r}function Dn(e,t){let n=t.tableData.get(e);if(n)return n;let r=mn(e,t),i=Cn(e,r),a={structure:r,chrome:i,bounds:vn(r,i,t),chromeX:wn(i,r.columnCount)};return t.tableData.set(e,a),a}function On(e,t){let{structure:n,bounds:r,chromeX:i}=Dn(e,t),a=r.min.reduce((e,t)=>e+t,0)+i,o=r.max.reduce((e,t)=>e+t,0)+i;return n.caption&&(a=Math.max(a,hr(n.caption,t)),o=Math.max(o,fr(n.caption,t))),{min:a,max:o}}function kn(e,t,n){let r=e.style,{bounds:i,chromeX:a}=Dn(e,n),{min:o,max:s}=On(e,n),c=r.border.left+r.border.right+Y(r.padding.left,t)+Y(r.padding.right,t)+B(r).right,l=i.max.reduce((e,t)=>e+t,0),u=0,d=0;for(let e=0;e<i.max.length;e++){let t=i.percent[e];t===void 0?d+=i.max[e]:u+=t}if(u>=100)l=1/0;else if(u>0){for(let e=0;e<i.max.length;e++){let t=i.percent[e];t!==void 0&&t>0&&(l=Math.max(l,Math.ceil(i.max[e]*100/t)))}l=Math.max(l,Math.ceil(d*100/(100-u)))}let f=Math.max(l+a,s)+c;return Math.max(o+c,Math.min(f,t))}function An(e,t,n,i,a,o){let{structure:s,chrome:c,bounds:l}=Dn(e,o),u=s.columnCount,d=s.rows.length,f=i.left+a.left,p=i.top+a.top;for(let e of s.hidden)e.tableHidden=!0,e.localRect={x:0,y:0,width:0,height:0},e.resolvedPadding={top:0,right:0,bottom:0,left:0},e.unclampedHeight=0;let m=Math.max(0,t-wn(c,u)),h=e.style,g=h.tableLayout===`fixed`&&h.width!==void 0&&h.width.kind!==`auto`?bn(s,m,o):yn(l,m),_=[],v=0;for(let e=0;e<u;e++)v+=c.collapsed?c.vLines[e]:c.spacingX,_.push(v),v+=g[e];let y=v+(c.collapsed?c.vLines[u]??0:c.spacingX),b=0;s.caption&&(q(s.caption,t,void 0,f,p,`fill`,o),b=s.caption.localRect.height);let x=new Map,S=new Map;for(let e of s.cells){let t=e.col+e.colSpan,n=g.slice(e.col,t).reduce((e,t)=>e+t,0)+Tn(c,e.col,t);S.set(e,n),q(e.node,n,void 0,0,0,`fill`,o,{width:n}),x.set(e,e.node.localRect.height)}let C=c.collapsed?c.hLines.reduce((e,t)=>e+t,0):(d+1)*c.spacingY,w=n===void 0?void 0:Math.max(0,n-b-C),T=e=>e!==void 0&&e.kind===`percent`&&w!==void 0?P(e.value,w):0,E=Array.from({length:d},()=>0),D=Array.from({length:d},()=>!1);for(let e=0;e<d;e++){let t=s.rows[e].style.height;t!==void 0&&t.kind===`cells`&&(E[e]=t.value);let n=T(t);n>0&&(E[e]=Math.max(E[e],n),D[e]=!0)}for(let e of s.cells)if(e.rowSpan===1){let t=T(e.node.style.height);t>0&&(D[e.row]=!0),E[e.row]=Math.max(E[e.row],x.get(e),t)}let O=s.cells.filter(e=>e.rowSpan>1).sort((e,t)=>e.rowSpan-t.rowSpan);for(let e of O){let t=e.row+e.rowSpan,n=E.slice(e.row,t).reduce((e,t)=>e+t,0)+En(c,e.row,t),r=x.get(e)-n;if(r<=0)continue;let i=z(Array.from({length:e.rowSpan},()=>1),r);for(let n=e.row;n<t;n++)E[n]+=i[n-e.row]}if(n!==void 0&&d>0){let e=n-b-C-E.reduce((e,t)=>e+t,0);if(e>0){let t=[];for(let e=0;e<d;e++)D[e]||t.push(e);let n=t.length>0?t:Array.from({length:d},(e,t)=>t),r=z(n.map(()=>1),e);n.forEach((e,t)=>E[e]+=r[t])}}let ee=s.caption&&e.style.captionSide===`top`?b:0,k=[],te=ee;for(let e=0;e<d;e++)te+=c.collapsed?c.hLines[e]:c.spacingY,k.push(te),te+=E[e];let ne=d>0?te+(c.collapsed?c.hLines[d]??0:c.spacingY):ee,re=new Map;for(let e=0;e<d;e++){let t=s.rowGroups[e];t&&!re.has(t)&&re.set(t,k[e])}for(let[e,t]of re){let n=t;for(let t=0;t<d;t++)s.rowGroups[t]===e&&(n=k[t]+E[t]);e.localRect={x:f,y:p+t,width:y,height:n-t},e.resolvedPadding={top:0,right:0,bottom:0,left:0},e.unclampedHeight=n-t}for(let e=0;e<d;e++){let t=s.rows[e],n=s.rowGroups[e],r=n?re.get(n):void 0;t.localRect={x:r===void 0?f:0,y:r===void 0?p+k[e]:k[e]-r,width:y,height:E[e]},t.resolvedPadding={top:0,right:0,bottom:0,left:0},t.unclampedHeight=E[e]}for(let e of s.cells){let t=e.row+e.rowSpan,n=E.slice(e.row,t).reduce((e,t)=>e+t,0)+En(c,e.row,t);e.node.children.some(e=>!K(e.style)&&e.style.height?.kind===`percent`)&&n!==x.get(e)&&q(e.node,S.get(e),n,0,0,`fill`,o,{width:S.get(e),height:n}),jn(e.node,n-(e.node.naturalContentHeight??e.node.localRect.height)),e.node.localRect={x:_[e.col],y:0,width:e.node.localRect.width,height:n}}for(let t of e.children)K(t.style)&&(t.staticSlot={kind:`block`,x:f,y:p});return s.caption&&e.style.captionSide===`bottom`&&(s.caption.localRect.y=p+ne),c.collapsed&&u>0&&d>0&&(e.decorationRuns=Mn(c,s,g,E,_,k,f,p,r(e.style.glyphSet))),e.style.captionSide===`bottom`?ne+b:ne}function jn(e,t){if(t<=0)return;let n=e.style.verticalAlign,r=n===`center`?Math.floor(t/2):n===`end`?t:0;if(!e.children.some(e=>!K(e.style)&&!e.inlineBox)){e.resolvedPadding.top+=r,e.resolvedPadding.bottom+=t-r;return}if(!(r<=0))for(let t of e.children)t.inlineBox||(K(t.style)?t.staticSlot?.kind===`block`&&(t.staticSlot.y+=r):t.localRect.y+=r)}function Mn(e,t,n,r,i,a,o,s,c){let l=t.columnCount,u=t.rows.length,d=[],f=t=>t<l?i[t]-e.vLines[t]:i[l-1]+n[l-1],p=t=>t<u?a[t]-e.hLines[t]:a[u-1]+r[u-1];for(let t=0;t<=l;t++){let n=e.vSegments[t];for(let e=0;e<u;e++){let i=n[e];if(!i)continue;let l=_e(i.style,`v`,c);for(let n=0;n<i.width;n++)for(let c=a[e];c<a[e]+r[e];c++)d.push({glyph:l,x:o+f(t)+n,y:s+c,length:1,color:i.color})}}for(let t=0;t<=u;t++){let r=e.hSegments[t];for(let e=0;e<l;e++){let a=r[e];if(!a)continue;let l=_e(a.style,`h`,c);for(let r=0;r<a.width;r++)d.push({glyph:l,x:o+i[e],y:s+p(t)+r,length:n[e],color:a.color})}}for(let t=0;t<=l;t++)if(!(e.vLines[t]<=0))for(let n=0;n<=u;n++){if(e.hLines[n]<=0)continue;let r=n>0?e.vSegments[t][n-1]:null,i=n<u?e.vSegments[t][n]:null,a=t>0?e.hSegments[n][t-1]:null,m=t<l?e.hSegments[n][t]:null,h=[r,i,a,m].filter(e=>e!==null);if(h.length===0)continue;let g=h.every(e=>e.style===`double`)?`double`:`solid`,_=h.reduce((e,t)=>t.width>e.width||t.width===e.width&&xn[t.style]>xn[e.style]?t:e),v=j(g,r!==null,i!==null,a!==null,m!==null,c);for(let r=0;r<e.vLines[t];r++)for(let i=0;i<e.hLines[n];i++)d.push({glyph:v,x:o+f(t)+r,y:s+p(n)+i,length:1,color:_.color})}return d}function Nn(e){return e.position===`absolute`||e.position===`fixed`?`absolute`:e.position===`relative`||e.position===`sticky`?`relative`:`static`}function Pn(e,t,n,r,i){for(let a of e.children){let o=Nn(a.style);if(o===`relative`){let t=e.localRect.width-e.style.border.left-e.style.border.right-e.resolvedPadding.left-e.resolvedPadding.right,n=e.localRect.height-e.style.border.top-e.style.border.bottom-e.resolvedPadding.top-e.resolvedPadding.bottom;a.localRect.x+=Fn(a.style.insets.left,a.style.insets.right,t),a.localRect.y+=Fn(a.style.insets.top,a.style.insets.bottom,n)}else o===`absolute`&&Ln(a,e,t,n,r,i);Pn(a,t+a.localRect.x,n+a.localRect.y,[...r,{node:a,absX:t+a.localRect.x,absY:n+a.localRect.y}],i)}}function Fn(e,t,n){return e===null?t===null?0:-Y(t,n):Y(e,n)}function In(e,t){if(!t)for(let t=e.length-1;t>0;t--){let n=e[t];if(!Gn(n.node.style))continue;let r=n.node.style.border;return{x:n.absX+r.left,y:n.absY+r.top,width:Math.max(0,n.node.localRect.width-r.left-r.right),height:Math.max(0,n.node.localRect.height-r.top-r.bottom)}}let n=e[0];return{x:n.absX,y:n.absY,width:n.node.localRect.width,height:n.node.localRect.height}}function Ln(e,t,n,r,i,a){let o=e.style,s=o.position===`fixed`,c=e.staticSlot,l=c?.kind===`grid`&&!s&&Gn(t.style)?{x:n+c.area.x,y:r+c.area.y,width:c.area.width,height:c.area.height}:In(i,s),u=o.insets.left===null?null:Y(o.insets.left,l.width),d=o.insets.right===null?null:Y(o.insets.right,l.width),f=o.insets.top===null?null:Y(o.insets.top,l.height),p=o.insets.bottom===null?null:Y(o.insets.bottom,l.height),m=X(o.margin,l.width),h=m.left??0,g=m.right??0,_=m.top??0,v=m.bottom??0,y=o.width===void 0||o.width.kind===`auto`,b=o.height===void 0||o.height.kind===`auto`,x=nr(o.minWidth,l.width,e,a)??0,S=nr(o.maxWidth,l.width,e,a),C={};if(!y)C.width=J(dr(o.width,l.width,e,a),x,S);else if(u!==null&&d!==null)C.width=J(Math.max(0,l.width-u-d-h-g),x,S);else{let t=Math.max(0,l.width-(u??0)-(d??0)-h-g);C.width=J(Math.min(fr(e,a),Math.max(hr(e,a),t)),x,S)}f!==null&&p!==null&&b&&(C.height=J(Math.max(0,l.height-f-p-_-v),tr(o.minHeight,l.height)??0,tr(o.maxHeight,l.height))),q(e,l.width,l.height,0,0,`shrink`,a,C);let w=e.localRect.width,T=e.localRect.height,E;if(u!==null&&d!==null){let e=Math.max(0,l.width-u-d-w-h-g),t=m.left===null&&m.right===null;E=l.x+u+h+(t?Math.floor(e/2):m.left===null?e:0)}else E=u===null?d===null?Hn(e,t,n,w):l.x+l.width-d-w-g:l.x+u+h;let D;if(f!==null&&p!==null){let e=Math.max(0,l.height-f-p-T-_-v),t=m.top===null&&m.bottom===null;D=l.y+f+_+(t?Math.floor(e/2):m.top===null?e:0)}else D=f===null?p===null?Un(e,t,r,T):l.y+l.height-p-T-v:l.y+f+_;e.localRect={...e.localRect,x:E-n,y:D-r}}function Rn(e,t,n){return st(e,[n],Math.max(0,t-n))[0]}function zn(e,t,n,r){return ut(lt(e,t),n,r)}function Bn(e,t,n,r,i){let a=X(e.style.margin,n.innerWidth),[o,s,c,l]=r===`x`?[a.left??0,a.right??0,n.innerWidth,n.direction===`row`]:[a.top??0,a.bottom??0,n.innerHeight,n.direction===`column`],u=i+o+s;return(l?Rn(mt(t.style),c,u):zn(e,t,c,u))+o}function Vn(e,t,n,r,i){let a=X(e.style.margin,n.width),o=e.style.justifySelf===`auto`?t.style.justifyItems:e.style.justifySelf,[s,c,l,u]=r===`x`?[a.left??0,a.right??0,n.width,o]:[a.top??0,a.bottom??0,n.height,lt(e,t)];return ut(u,l,i+s+c)+s}function Hn(e,t,n,r){let i=e.staticSlot;return i===void 0?n:i.kind===`block`?n+i.x:i.kind===`grid`?n+i.staticArea.x+Vn(e,t,i.staticArea,`x`,r):n+i.originX+Bn(e,t,i,`x`,r)}function Un(e,t,n,r){let i=e.staticSlot;return i===void 0?n:i.kind===`block`?n+i.y:i.kind===`grid`?n+i.staticArea.y+Vn(e,t,i.staticArea,`y`,r):n+i.originY+Bn(e,t,i,`y`,r)}function Wn(e,t){let n=Kn();q(e,t,void 0,0,0,`fill`,n),Pn(e,0,0,[{node:e,absX:0,absY:0}],n);let r=e.localRect.height,i=sr(e),{overflow:a}=e.style;return a.x===`visible`&&(e.localRect.width=Math.max(e.localRect.width,i.x)),a.y===`visible`&&(e.localRect.height=Math.max(r,i.y)),{height:r}}function K(e){return e.position===`absolute`||e.position===`fixed`}function Gn(e){return e.position!==`static`}function Kn(){return{maxContent:new WeakMap,minContent:new WeakMap,gridIntrinsic:new WeakMap,tableData:new WeakMap}}function q(e,t,n,r,i,a,o,s){let c=e.style,l=s?.height;delete e.decorationRuns,delete e.multicolGeometry,delete e.multicolFlow,delete e.multicolFlowSpan,delete e.textExtent;let u=nr(c.minWidth,t,e,o)??0,d=nr(c.maxWidth,t,e,o),f=tr(c.minHeight,n)??0,p=tr(c.maxHeight,n),m=B(c),h=vt(c);s?.gutter?.right&&(m.right=h.right),s?.gutter?.bottom&&(m.bottom=h.bottom);let g={top:Y(c.padding.top,t),right:Y(c.padding.right,t)+m.right,bottom:Y(c.padding.bottom,t)+m.bottom,left:Y(c.padding.left,t)};e.resolvedPadding=g;let _=s?.width??J(or(c,t,a,e,o),u,d),v=ur(c,n),y=_r(_,l??v??(f>0?f:void 0)??1/0,c.border,g),b=l!==void 0||v!==void 0,x=p===void 0?void 0:Math.max(0,p-c.border.top-c.border.bottom-g.top-g.bottom),S=Jn(e),C=(t,n)=>{let r=n&&Number.isFinite(t)?t:void 0;return S?qn(e,y.width,t,r,x,g,o):c.display===`flex`&&c.flexDirection===`row`?nt(e,y.width,t,r,c.border,g,o):c.display===`flex`?it(e,y.width,t,n,c.border,g,o):c.display===`grid`?St(e,y.width,t,c.border,g,o):c.display===`table`?An(e,y.width,r,c.border,g,o):c.display===`multicol`?ln(e,y.width,r,x,c.border,g,o):rr(e,y.width,r,c.border,g,o)},w=C(y.height,b);if(!S&&(c.display===`flex`||c.display===`grid`)&&!b&&p!==void 0){let e=c.border.top+c.border.bottom+g.top+g.bottom,t=J(w+e,f,p)-e;t<w&&(w=C(Math.max(0,t),!0))}let T=w+c.border.top+c.border.bottom+g.top+g.bottom,E=l??v??T;e.unclampedHeight=E,e.naturalContentHeight=T;let D=J(E,f,p),O=e.multicolGeometry;if(O){let t=D-c.border.top-c.border.bottom-g.top-g.bottom;t>O.totalRows&&(g.bottom+=t-O.totalRows),on(e,O,c.border,g)}if(e.localRect={x:r,y:i,width:_,height:D},gt(c.overflow.x)||gt(c.overflow.y)){let l=sr(e),u=Math.max(0,l.x-c.border.left-g.left),d=Math.max(0,l.y-c.border.top-g.top),f=Math.max(0,_-c.border.left-c.border.right-g.left-g.right),p=Math.max(0,D-c.border.top-c.border.bottom-g.top-g.bottom);if(e.scrollRange={sizeX:u,sizeY:d,maxX:gt(c.overflow.x)?Math.max(0,u-f):0,maxY:gt(c.overflow.y)?Math.max(0,d-p):0},c.scrollbarWidth!==`none`){let l=s?.gutter??{right:!1,bottom:!1},u=l.right||c.overflow.y===`auto`&&e.scrollRange.maxY>0,d=l.bottom||c.overflow.x===`auto`&&e.scrollRange.maxX>0;if(u!==l.right||d!==l.bottom){q(e,t,n,r,i,a,o,{...s,gutter:{right:u,bottom:d}});return}}e.scrollGutterCells={right:m.right,bottom:m.bottom}}else delete e.scrollRange,delete e.scrollGutterCells}function qn(e,t,n,r,i,a,o){let s=e.style,c;if(e.text){let l=_t(e);Je(e.text,(n,r)=>{let i=l[r];q(i,t,void 0,0,0,`shrink`,o),e.advances[n]=Math.max(1,i.localRect.width)});let u,d;if(s.display===`multicol`){let n=$n(s,`x`,t),o=H(s,t,n);a.right+=o.leftover;let c=nn(e,o,n,en(r,i));e.multicolGeometry=c,u=c,d=c.lineX}else u=Xn(e,t);if(c=u.totalRows,e.textExtent={width:u.spans.reduce((t,n)=>Math.max(t,Ge(e.text,n.start,n.end,e.advances,s.tracking)),0),rows:u.totalRows},Yn(e,u,t,n,a),l.length>0){let t=e=>u.spans.findIndex(t=>e>=t.start&&e<t.end);Je(e.text,(n,r)=>{let i=t(n);if(i===-1)return;let o=u.spans[i];l[r].localRect={...l[r].localRect,x:s.border.left+a.left+(d?.[i]??0)+We(o.start,n,e.advances),y:s.border.top+a.top+u.lineY[i]}})}}else c=e.intrinsicHeight;for(let n of e.children){if(n.inlineBox)continue;let e=X(n.style.margin,t);n.staticSlot={kind:`block`,x:s.border.left+a.left+(e.left??0),y:s.border.top+a.top+(e.top??0)}}return c}function Jn(e){return e.children.some(e=>!K(e.style)&&!e.inlineBox)?!1:e.text!==``||e.style.display!==`flex`&&e.style.display!==`grid`}function J(e,t,n){return Math.max(t,n===void 0?e:Math.min(e,n))}function Yn(e,t,n,r,i){let a=e.style;if(a.display!==`flex`&&a.display!==`grid`||t.spans.length===0)return;let o=a.display===`flex`&&a.flexDirection===`column`,s=t.spans.reduce((t,n)=>Math.max(t,Ge(e.text,n.start,n.end,e.advances,a.tracking)),0),c=Math.max(0,n-s);if(c>0){let e=a.display===`grid`?ut(a.justifyItems,n,s):o?ut(a.alignItems,n,s):st(mt(a),[s],c)[0];e>0&&(i.left+=e,i.right+=c-e)}if(Number.isFinite(r)){let e=Math.max(0,r-t.totalRows);if(e>0){let n=a.display===`grid`||!o?ut(a.alignItems,r,t.totalRows):st(mt(a),[t.totalRows],e)[0];n>0&&(i.top+=n,i.bottom+=e-n)}}}function Xn(e,t){let n=Zn(e,t),{heights:r,textOffsets:i}=Qn(e,n),a=[],o=[],s=0;for(let t=0;t<n.length;t++)a.push(s),o.push(s+i[t]),s+=r[t]+(t<n.length-1?e.style.lineGap:0);return{spans:n,lineY:a,textY:o,totalRows:s}}function Zn(e,t){return e.style.whiteSpace===`normal`?Ue(e.text,t,{advances:e.advances,tracking:e.style.tracking,firstLineIndent:e.style.textIndent}):He(e.text)}function Qn(e,t){let n=_t(e),r=[],i=[],a=0;for(let o of t){let t=1,s=0;for(let r=o.start;r<o.end;r++){if(e.text[r]!==``)continue;let i=n[a];t=Math.max(t,i.localRect.height),i.style.verticalAlign===`end`?s=Math.max(s,i.localRect.height-1):i.style.verticalAlign===`center`&&m(i.source,`vertical-align: middle on an inline box can't land on whole rows and behaves as top. Use align-top or align-bottom.`),a++}r.push(t),i.push(Math.min(s,t-1))}return{heights:r,textOffsets:i}}function $n(e,t,n){let r=Y(t===`x`?e.gapX:e.gapY,n),i=t===`x`?e.ruleX:e.ruleY;return Math.max(r,i?.width??0)}function Y(e,t){return typeof e==`number`?e:t===void 0||!Number.isFinite(t)?0:P(e.percent,t)}function X(e,t){let n=e=>e===null?null:Y(e,t);return{top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)}}function er(e){return typeof e==`number`?e:0}function tr(e,t){if(e!==void 0&&typeof e!=`string`)return typeof e==`number`?e:t===void 0?void 0:P(e.percent,t)}function nr(e,t,n,r){return e===`min-content`||e===`max-content`||e===`fit-content`?dr({kind:e},t,n,r):tr(e,t)}function rr(e,t,n,r,i,a){let o=r.left+i.left,s=r.top+i.top,c=s,l=null;for(let r of e.children){let e=X(r.style.margin,t),i=e.top??0,s=e.bottom??0,u=e.left??0,d=e.right??0;if(K(r.style)){r.staticSlot={kind:`block`,x:o+u,y:c+(l===null?i:ar(l,i))};continue}q(r,Math.max(0,t-u-d),n,0,0,`fill`,a);let f=ir(e,t,r.localRect.width);c+=l===null?i:ar(l,i),r.localRect={...r.localRect,x:o+f,y:c},c+=r.localRect.height,l=s}return l!==null&&(c+=l),c-s}function ir(e,t,n){let r=t-n;return e.left===null&&e.right===null?Math.floor(r/2):e.left===null?r-(e.right??0):e.left}function ar(e,t){return e>=0&&t>=0?Math.max(e,t):e<=0&&t<=0?Math.min(e,t):e+t}function or(e,t,n,r,i){let a=e.width;if(e.display===`table`){if(!r.children.some(e=>!K(e.style)&&!e.inlineBox))return a!==void 0&&a.kind!==`auto`?dr(a,t,r,i):Math.min(t,fr(r,i));if(a!==void 0&&a.kind!==`auto`){let e=dr(a,t,r,i);return Math.max(e,lr(r,t,i))}return kn(r,t,i)}return a!==void 0&&a.kind!==`auto`?dr(a,t,r,i):n===`shrink`?Math.min(t,fr(r,i)):t}function sr(e){let t=0,n=0;for(let r of e.children){if(r.style.position===`fixed`)continue;let e=cr(r);t=Math.max(t,r.localRect.x+e.x),n=Math.max(n,r.localRect.y+e.y)}if(e.textExtent){let{border:r}=e.style,i=e.resolvedPadding;t=Math.max(t,r.left+i.left+e.textExtent.width),n=Math.max(n,r.top+i.top+e.textExtent.rows)}return{x:t,y:n}}function cr(e){let{width:t,height:n}=e.localRect,r=e.style.overflow.x!==`visible`,i=e.style.overflow.y!==`visible`;if(r&&i)return{x:t,y:n};let a=sr(e);return{x:r?t:Math.max(t,a.x),y:i?n:Math.max(n,a.y)}}function lr(e,t,n){let r=e.style;return On(e,n).min+r.border.left+r.border.right+Y(r.padding.left,t)+Y(r.padding.right,t)+B(r).right}function ur(e,t){if(e.height?.kind===`cells`)return e.height.value;if(e.height?.kind===`percent`&&t!=null)return P(e.height.value,t)}function dr(e,t,n,r){switch(e.kind){case`cells`:return e.value;case`percent`:return P(e.value,t);case`min-content`:return hr(n,r);case`max-content`:return fr(n,r);case`fit-content`:return Math.min(fr(n,r),Math.max(hr(n,r),t));case`auto`:return fr(n,r)}}function fr(e,t){let n=t.maxContent.get(e);if(n!==void 0)return n;let r=e.style,i=pr(e,t)+r.border.left+r.border.right+er(r.padding.left)+er(r.padding.right)+B(r).right;return t.maxContent.set(e,i),i}function pr(e,t){let n=e.children.filter(e=>!K(e.style)&&!e.inlineBox);if(n.length===0)return e.style.display===`multicol`?$t(e.style,e.intrinsicWidth):e.intrinsicWidth;if(e.style.display===`grid`)return jt(e,t).max;if(e.style.display===`table`)return On(e,t).max;if(e.style.display===`flex`&&e.style.flexDirection===`row`){let r=Math.max(er(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+mr(n,`max`,t),0)+r}let r=n.reduce((e,n)=>Math.max(e,mr(n,`max`,t)),0);return e.style.display===`multicol`?$t(e.style,r):r}function mr(e,t,n){let r=e.style,i;r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`&&(i=dr(r.width,0,e,n)),i===void 0&&(i=t===`min`?hr(e,n):fr(e,n));let a=typeof r.minWidth==`number`?r.minWidth:0,o=typeof r.maxWidth==`number`?r.maxWidth:void 0;return Math.max(0,J(i,a,o))}function hr(e,t){let n=t.minContent.get(e);if(n!==void 0)return n;let r=e.style,i=gr(e,t)+r.border.left+r.border.right+er(r.padding.left)+er(r.padding.right)+B(r).right;return t.minContent.set(e,i),i}function gr(e,t){let n=e.children.filter(e=>!K(e.style)&&!e.inlineBox);if(n.length===0)return!e.text||e.style.whiteSpace!==`normal`?e.intrinsicWidth:qe(e.text,{advances:e.advances,tracking:e.style.tracking});if(e.style.display===`grid`)return jt(e,t).min;if(e.style.display===`table`)return On(e,t).min;if(e.style.display===`flex`&&e.style.flexDirection===`row`&&e.style.flexWrap===`nowrap`){let r=Math.max(er(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+mr(n,`min`,t),0)+r}return n.reduce((e,n)=>Math.max(e,mr(n,`min`,t)),0)}function _r(e,t,n,r){return{width:Math.max(0,e-n.left-n.right-r.left-r.right),height:Math.max(0,t-n.top-n.bottom-r.top-r.bottom)}}function vr(e){return wr(e,{}).grid.map(e=>e.join(``).trimEnd()).join(`
956
+ `)}function yr(e,t={}){let{grid:n,paints:r}=wr(e,t);return{segments:n.map((e,n)=>br(e,r[n],t.boxed)),cells:n}}function br(e,t,n){let r=[];for(let i=0;i<e.length;i++){let a=e[i];if(a===``)continue;let o=t[i],s=1;for(;e[i+s]===``;)s++;if(n&&(a.length>1||a.charCodeAt(0)>=128)&&n(a,s,o)){r.push({text:a,cells:s,box:!0,...o});continue}let c=r[r.length-1];c&&!c.box&&xr(c,o)?c.text+=a:r.push({text:a,...o})}return r}function xr(e,t){return e.color===t?.color&&e.backgroundColor===t?.backgroundColor&&e.fontWeight===t?.fontWeight&&e.fontStyle===t?.fontStyle&&e.textDecorationLine===t?.textDecorationLine&&e.opacity===t?.opacity&&e.selected===t?.selected}function Sr(e,t){e.selected?(t.color=e.backgroundColor??`var(--mw-bg, canvas)`,t.backgroundColor=e.color??`var(--mw-fg, canvastext)`):(e.color!==void 0&&(t.color=e.color),e.backgroundColor!==void 0&&(t.backgroundColor=e.backgroundColor)),e.fontWeight!==void 0&&(t.fontWeight=e.fontWeight),e.fontStyle!==void 0&&(t.fontStyle=e.fontStyle),e.textDecorationLine!==void 0&&(t.textDecoration=e.textDecorationLine),e.opacity!==void 0&&(t.opacity=e.opacity)}function Cr(e){return e.color===void 0&&e.backgroundColor===void 0&&e.fontWeight===void 0&&e.fontStyle===void 0&&e.textDecorationLine===void 0&&e.opacity===void 0&&e.selected===void 0}function wr(e,t){let n=Math.max(0,e.localRect.width),r=Math.max(0,e.localRect.height),i=Array.from({length:r},()=>Array.from({length:n},()=>` `)),a=Array.from({length:r},()=>Array.from({length:n},()=>void 0)),o=Array.from({length:r},()=>Array.from({length:n},()=>void 0)),s=(e,t)=>e>=0&&e<n&&t>=0&&t<r,c=(e,t)=>{let n=o[t][e];if(n)for(let e=0;e<n.cells;e++)i[t][n.x+e]=` `,o[t][n.x+e]=void 0},l=(e,t,n)=>{let r=a[t][e];a[t][e]=r?{...r,...n}:n};return Er(e,0,0,t,(e,t,n,a,u=1)=>{if(t<0||t>=r)return;if(u===1){if(!s(e,t))return;c(e,t),i[t][e]=n,l(e,t,a);return}let d=s(e,t)&&s(e+u-1,t);for(let r=0;r<u;r++)s(e+r,t)&&(c(e+r,t),i[t][e+r]=d?r===0?n:``:` `,d&&(o[t][e+r]={x:e,cells:u}),l(e+r,t,a))}),{grid:i,paints:a}}function Tr(e){let t={};return e.color&&(t.color=e.color),e.backgroundColor&&(t.backgroundColor=e.backgroundColor),e.fontWeight!==`400`&&e.fontWeight!==`normal`&&e.fontWeight!==``&&(t.fontWeight=e.fontWeight),e.fontStyle!==`normal`&&e.fontStyle!==``&&(t.fontStyle=e.fontStyle),e.textDecorationLine!==`none`&&e.textDecorationLine!==``&&(t.textDecorationLine=e.textDecorationLine),t}function Er(e,t,n,i,a,o=1){if(e.tableHidden)return;let s=t+e.localRect.x,c=n+e.localRect.y,l=e.style,u=e=>o>=1?e:{...e,opacity:String(Math.round(o*1e3)/1e3)};if(l.backgroundColor!==void 0||l.backgroundClear){let t=l.backgroundColor===void 0?{backgroundColor:void 0}:u({backgroundColor:l.backgroundColor});for(let n=0;n<e.localRect.height;n++)for(let r=0;r<e.localRect.width;r++)a(s+r,c+n,` `,t)}let d=[];pe(l,{x:s,y:c,width:e.localRect.width,height:e.localRect.height},d);for(let e of d){let t=u(e.color===void 0?void 0:{color:e.color});for(let n=0;n<e.length;n++)a(e.x+n,e.y,e.glyph,t)}if(e.decorationRuns)for(let t of e.decorationRuns){let e=u(t.color===void 0?void 0:{color:t.color});for(let n=0;n<t.length;n++)a(s+t.x+n,c+t.y,t.glyph,e)}let p=e.scrollGutterCells,m=l.overflow.x!==`visible`,h=l.overflow.y!==`visible`,g=s-(e.scroll?.x??0),_=c-(e.scroll?.y??0),v=a;if(m||h){let t=s+l.border.left,n=c+l.border.top,r=s+e.localRect.width-l.border.right-(p?.right??0),i=c+e.localRect.height-l.border.bottom-(p?.bottom??0),o=(e,a)=>m&&(e<t||e>=r)||h&&(a<n||a>=i);v=(e,t,n,r,i=1)=>{if(i===1){o(e,t)||a(e,t,n,r);return}let s=!0;for(let n=0;n<i;n++)o(e+n,t)&&(s=!1);if(s)a(e,t,n,r,i);else for(let n=0;n<i;n++)o(e+n,t)||a(e+n,t,` `,r)}}if(!e.children.some(e=>!e.inlineBox&&e.style.position!==`absolute`&&e.style.position!==`fixed`)&&e.text){let t=u(Tr(l)),n=e.inlineElements?.map(e=>u(Tr(e))),r=i.selection?.get(e);Dr(e,g,_,(i,a,o,s)=>{let c=e.charInline?.[i]??-1,l=c>=0?e.inlineElements[c]:void 0,d=l?n[c]:t;if(r&&i>=r.start&&i<r.end&&(d={...d,selected:!0}),e.text[i]===`⁠`){l?.backgroundColor&&v(o,s,` `,u({backgroundColor:l.backgroundColor}));return}let f=a===1?e.text[i]:e.text.slice(i,i+a),p=Ne(f);p>0&&v(o,s,f,d,p)},(e,n)=>v(e,n,`…`,t))}for(let t of ge(e))Er(t,g,_,i,v,o*t.style.opacity);let y=e.scrollRange;if(y&&p&&(p.right>0||p.bottom>0)){let{track:t,thumb:n}=f(r(l.glyphSet)),i=e=>u(e?{color:e}:void 0),o=i(l.scrollbarColor?.track??l.color),d=i(l.scrollbarColor?.thumb??l.color),p=jr(e,s,c);if(p.y){let{col:r,row:i,thick:s,len:c}=p.y,{at:l,len:u}=Mr(c,y.sizeY,y.maxY,e.scroll?.y??0);for(let e=0;e<s;e++)for(let s=0;s<c;s++){let c=s>=l&&s<l+u;a(r+e,i+s,c?n:t,c?d:o)}}if(p.x){let{col:r,row:i,thick:s,len:c}=p.x,{at:l,len:u}=Mr(c,y.sizeX,y.maxX,e.scroll?.x??0);for(let e=0;e<s;e++)for(let s=0;s<c;s++){let c=s>=l&&s<l+u;a(r+s,i+e,c?n:t,c?d:o)}}}}function Dr(e,t,n,r,i){let a=e.style,o=e.resolvedPadding,s=t+a.border.left+o.left,c=n+a.border.top+o.top,l=e.localRect.width-a.border.left-a.border.right-o.left-o.right,u=e.multicolGeometry,{spans:d,textY:f}=u??Xn(e,l),p=u?Math.max(1,u.columnWidth-a.tracking):l;for(let t=0;t<d.length;t++){let n=d[t],o=c+f[t],l=t===0?a.textIndent:0,m=a.whiteSpace!==`normal`&&a.overflow.x===`clip`?Nr(e.text,n,p-l,e.advances,a):{end:n.end,ellipsis:!1},h=Ge(e.text,n.start,n.end,e.advances,a.tracking),g=Math.max(0,p-l-h),_=a.textAlign===`end`?g:a.textAlign===`center`?Math.floor(g/2):0,v=s+(u?.lineX[t]??0)+_+l,y=e.advances;for(let t=n.start;t<m.end;){let n=We(t,t+1,y),i=1;if(y)for(;t+i<m.end&&y[t+i]===0;)i++;if(e.text[t]!==``&&n>0){let a=e.inlineElements?.[e.charInline?.[t]??-1]?.insets,s=a?a.left??(a.right===null?0:-a.right):0,c=a?a.top??(a.bottom===null?0:-a.bottom):0;r(t,i,v+s,o+c,n)}v+=n,t+=i}m.ellipsis&&i?.(v,o)}}function Or(e,t,n,r,i){let a=e.multicolGeometry;if(!a)return!1;let o=e.style,s=e.resolvedPadding,c=r-(t+o.border.left+s.left),l=i-(n+o.border.top+s.top),{lineX:u,lineY:d}=a;for(let e=0;e<d.length;e++){if(c<u[e]||c>=u[e]+a.columnWidth)continue;let t=(e+1<d.length&&u[e+1]===u[e]?d[e+1]:void 0)??d[e]+1+o.lineGap;if(l>=d[e]&&l<t)return!0}return!1}function kr(e,t,n,r,i){let a=null;return Dr(e,t-(e.scroll?.x??0),n-(e.scroll?.y??0),(e,t,n,o,s)=>{a===null&&o===i&&r>=n&&r<n+s&&(a=e)}),a}function Ar(e,t,n){let r=e.inlineElements;if(!r||!e.charInline)return[];let i=r.map((e,t)=>r.flatMap((n,r)=>r===t||n.element.contains(e.element)?[r]:[])),a=r.map(()=>new Map);return Dr(e,t-(e.scroll?.x??0),n-(e.scroll?.y??0),(t,n,r,o,s)=>{let c=e.charInline[t]??-1;if(!(c<0))for(let e of i[c]){let t=a[e].get(o);t?(t.x0=Math.min(t.x0,r),t.x1=Math.max(t.x1,r+s)):a[e].set(o,{x0:r,x1:r+s})}}),r.flatMap((e,t)=>[...a[t]].sort(([e],[t])=>e-t).map(([t,n])=>({element:e.element,rect:{x:n.x0,y:t,width:n.x1-n.x0,height:1}})))}function jr(e,t,n){let r=e.scrollGutterCells;if(!r)return{};let{border:i,scrollbarSize:a,scrollbarInset:o}=e.style,s=n+i.top,c=t+i.left,l=n+e.localRect.height-i.bottom,u=t+e.localRect.width-i.right,d=r.bottom>0?l-r.bottom:l-o.y,f=r.right>0?u-r.right:u-o.x,p={};return r.right>0&&(p.y={col:u-r.right,row:s+o.y,thick:Math.min(a.y,r.right),len:Math.max(0,d-s-o.y)}),r.bottom>0&&(p.x={col:c+o.x,row:l-r.bottom,thick:Math.min(a.x,r.bottom),len:Math.max(0,f-c-o.x)}),p}function Mr(e,t,n,r){let i=t>0?Math.min(1,e/t):1,a=Math.max(1,Math.round(i*e));return n>0&&(a=Math.max(1,Math.min(a,e-n))),{at:n>0?Math.round(Math.min(r,n)/n*(e-a)):0,len:a}}function Nr(e,t,n,r,i){let{textOverflow:a,tracking:o}=i;if(Ge(e,t.start,t.end,r,o)<=n)return{end:t.end,ellipsis:!1};let s=a===`ellipsis`?n-1:n,c=t.start;for(;c<t.end&&Ge(e,t.start,c+1,r,o)<=s;)c++;return{end:c,ellipsis:a===`ellipsis`&&n>0}}function Pr(e,t,n){let r=[],i=e,a=e.localRect.x,o=e.localRect.y;for(;;){let e=null;for(let r of ge(i)){if(r.tableHidden)continue;let i=a+r.localRect.x,s=o+r.localRect.y;(r.multicolFlow?Or(r,i,s,t,n):t>=i&&t<i+r.localRect.width&&n>=s&&n<s+r.localRect.height)&&(e=r)}if(!e)return r;r.push({node:e,x:a+e.localRect.x,y:o+e.localRect.y}),a+=e.localRect.x-(e.scroll?.x??0),o+=e.localRect.y-(e.scroll?.y??0),i=e}}function Fr(e){return e.closest?.(`[inert]`)!=null}function Ir(e,t,n){let r=[];for(let i of Pr(e,t,n)){if(Fr(i.node.source))break;r.push(i.node.source)}return r}function*Lr(e,t,n,r){if(e<=0||t<=0)return;let i=Math.max(0,Math.min(n,e-1)),a=Math.max(0,Math.min(r,t-1));yield{x:i,y:a,edge:`self`};for(let e=i-1;e>=0;e--)yield{x:e,y:a,edge:`end`};for(let t=i+1;t<e;t++)yield{x:t,y:a,edge:`start`};for(let n=1;n<t;n++){if(a-n>=0)for(let t=e-1;t>=0;t--)yield{x:t,y:a-n,edge:`end`};if(a+n<t)for(let t=0;t<e;t++)yield{x:t,y:a+n,edge:`start`}}}var Rr={ArrowUp:`up`,ArrowDown:`down`,ArrowLeft:`left`,ArrowRight:`right`};function zr(e){return Rr[e]??null}function Br(e,t,n){let r=null,i=null;for(let a of n){let n=Hr(e,t,a.rect);n&&(!i||Vr(n,i))&&(r=a,i=n)}return r?.element??null}function Vr(e,t){for(let n=0;n<e.length;n++)if(e[n]!==t[n])return e[n]<t[n];return!1}function Hr(e,t,n){let r=e===`up`||e===`down`,[i,a,o]=r?[`y`,`x`,`height`]:[`x`,`y`,`width`],s=t[i]+t[o],c=n[i]+n[o],l=e===`down`||e===`right`?n[i]-s:t[i]-c;if(l<0)return null;let u=r?`width`:`height`,d=Math.min(t[a]+t[u],n[a]+n[u])-Math.max(t[a],n[a]);return d>0?[0,l,0]:[1,l,-d]}function Ur(e){let t=[],n=(e,r,i,a)=>{if(e.tableHidden)return;let o=r+e.localRect.x,s=i+e.localRect.y;!a&&Gr(e.source)&&t.push({element:e.source,rect:{x:o,y:s,width:e.localRect.width,height:e.localRect.height}});for(let n of Ar(e,o,s))Gr(n.element)&&t.push(n);let c=e.scroll?.x??0,l=e.scroll?.y??0;for(let t of e.children)n(t,o-c,s-l,!1)};return n(e,0,0,!0),t}function Wr(e,t){let n=null;for(let{element:r,rect:i}of e)if(r===t){if(!n)n={...i};else{let e=Math.max(n.x+n.width,i.x+i.width),t=Math.max(n.y+n.height,i.y+i.height);n.x=Math.min(n.x,i.x),n.y=Math.min(n.y,i.y),n.width=e-n.x,n.height=t-n.y}}return n}function Gr(e){let t=e.tabIndex;return typeof t!=`number`||t<0?!1:!e.matches(`:disabled`)&&!Fr(e)}var Kr=new Set([`text`,`search`,`url`,`tel`,`email`,`password`]),qr=new Set([`checkbox`,`button`,`submit`,`reset`,`image`,`file`]);function Jr(e,t,n=!1){let r=e.tagName;if(r===`TEXTAREA`||e.closest(`[contenteditable]:not([contenteditable='false'])`))return!0;if(r===`INPUT`){let n=e.type;return n===`radio`?!0:Kr.has(n)?t===`ArrowLeft`||t===`ArrowRight`:!qr.has(n)}if(r===`SELECT`){let t=e,r=Number(t.size)||Number(t.getAttribute(`size`))||0;return t.multiple||r>1||n}return!1}function Yr(e,t,n,r){let i=e.ownerDocument,a=i.createRange();a.setStart(e,t),a.collapse(!0);let o=i.createRange();return o.setStart(n,r),o.collapse(!0),a.compareBoundaryPoints(a.START_TO_START,o)}function Xr(e){let t=b(e.source.tagName)?.selectionTarget?.(e.source)??null;return t&&t.textContent===e.text?t:null}function Zr(e,t){let n=t,r=null;for(let t of $r(e)){if(n<=t.data.length)return[t,n];n-=t.data.length,r=[t,t.data.length]}return r}function Qr(e,t,n){if(!e.contains(t))return null;let r=e.ownerDocument.createRange();return r.selectNodeContents(e),r.setEnd(t,n),r.toString().length}function*$r(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=t.nextNode();for(;n;)yield n,n=t.nextNode()}function ei(e,t,n){if(!e.charSource){let r=Xr(e);return(r&&Qr(r,t,n))??0}let r=_t(e).findIndex(e=>e.source.contains(t));if(r>=0){let t=-1;for(let n=0;n<=r;n++)t=e.text.indexOf(``,t+1);if(t>=0)return t}let i=e.charSource??[],a=0,o=i.length;for(;a<o;){let e=a+o>>1,r=i[e];Yr(r.node,r.offset,t,n)<=0?a=e+1:o=e}if(a===0)return 0;let s=i[a-1];return t===s.node&&n<s.offset+s.length?s.index+(n-s.offset):s.index+s.length}function ti(e,t){if(!e.charSource){let n=Xr(e),r=n&&Zr(n,t);return r&&{node:r[0],offset:r[1]}}let n=e.charSource??[],r=0,i=n.length;for(;r<i;){let e=r+i>>1;n[e].index<=t?r=e+1:i=e}let a=n[r-1];if(!a)return null;let o=t-a.index;return o<=a.length?{node:a.node,offset:a.offset+o}:null}function ni(e,t=[]){try{let n=e.ownerDocument.getSelection();if(!n)return null;if(n.getComposedRanges)return n.getComposedRanges({shadowRoots:[e,...t]})[0]??null;let r=e.getSelection?.();return!r||r.rangeCount===0?null:r.getRangeAt(0)}catch{return null}}function ri(e,t,n){let{startContainer:r,endContainer:i}=n;return t.contains(r)&&t.contains(i)?`grid`:ii(e,r)&&ii(e,i)?`light`:`outside`}function ii(e,t){for(let n=t;n;){if(e.contains(n))return!0;let t=n.getRootNode();n=t instanceof ShadowRoot&&t.host!==e?t.host:null}return!1}function ai(e){let t=[],n=e=>{let r=Xr(e)?.getRootNode();r instanceof ShadowRoot&&t.push(r);for(let t of e.children)n(t)};return n(e),t}function oi(e,t){let n=t.startContainer.getRootNode();if(!(n instanceof ShadowRoot)||n.host===e.source)return null;let r=null,i=e=>{if(!r){if(e.source===n.host)r=e;else for(let t of e.children)i(t)}};if(i(e),!r)return null;let a=r,o=ei(a,t.startContainer,t.startOffset),s=ei(a,t.endContainer,t.endOffset);return{leaf:a,start:Math.min(o,s),end:Math.max(o,s)}}function si(e,t){let n=oi(e,t);if(n){let{leaf:e,start:t,end:r}=n;return r>t?new Map([[e,{start:t,end:r}]]):new Map}let r=e.source.ownerDocument.createRange();r.setStart(t.startContainer,t.startOffset),r.setEnd(t.endContainer,t.endOffset);let i=new Map,a=e=>{if(!e.tableHidden&&r.intersectsNode(e.source)){if(hi(e)){let{text:t}=e,n=0,a=t.length;e.charSource&&(e.source.contains(r.startContainer)&&(n=ei(e,r.startContainer,r.startOffset)),e.source.contains(r.endContainer)&&(a=ei(e,r.endContainer,r.endOffset))),a>n&&i.set(e,{start:n,end:a})}for(let t of e.children)a(t)}};return a(e),i}function ci(e,t){let n=oi(e,t);if(n)return n.leaf.text.slice(n.start,n.end);let r=e.source.ownerDocument.createRange();r.setStart(t.startContainer,t.startOffset),r.setEnd(t.endContainer,t.endOffset);let i=[];return li(e,r,i),_i(i)}function li(e,t,n){if(e.tableHidden||!t.intersectsNode(e.source))return;let r=pi(e);if(r&&n.push({breaks:r}),e.style.tableRole===`row`)ui(e,t,n);else if(e.style.display===`table`){let r=fi(e);for(let r of e.children)r.style.tableRole===`row`||di(r)||li(r,t,n);let i=!1;for(let e of r)t.intersectsNode(e.source)&&(i&&n.push({text:`
957
+ `}),li(e,t,n),i=!0)}else{hi(e)&&n.push({text:gi(e,t)});for(let r of e.children)r.inlineBox||li(r,t,n)}r&&n.push({breaks:r})}function ui(e,t,n){let r=!1;for(let i of e.children)i.style.tableRole!==`cell`||i.tableHidden||t.intersectsNode(i.source)&&(r&&n.push({text:` `}),li(i,t,n),r=!0)}function di(e){let t=e.style.tableRole;return t===`header-group`||t===`row-group`||t===`footer-group`}function fi(e){let t=[];for(let n of e.children)if(n.style.tableRole===`row`)t.push(n);else if(di(n))for(let e of n.children)e.style.tableRole===`row`&&t.push(e);return t}function pi(e){if(e.inlineBox)return 0;let t=e.style.tableRole;return t===`row`||t===`cell`||di(e)||t===`column`||t===`column-group`?0:e.source.tagName===`P`?2:1}function mi(e){let t=[],n=e.charSource??[];if(n.length>0){let e=n[0],r=n[n.length-1];t.push({start:{node:e.node,offset:e.offset},end:{node:r.node,offset:r.offset+r.length}})}for(let n of _t(e)){let e=n.source.parentNode;if(!e)continue;let r=Array.prototype.indexOf.call(e.childNodes,n.source);t.push({start:{node:e,offset:r},end:{node:e,offset:r+1}})}if(t.length===0)return null;let r=(e,t)=>Yr(e.node,e.offset,t.node,t.offset)<0,{start:i,end:a}=t[0];for(let e of t.slice(1))r(e.start,i)&&(i=e.start),r(a,e.end)&&(a=e.end);return{start:i,end:a}}function hi(e){return e.text.length!==0&&!e.children.some(e=>!e.inlineBox&&e.style.position!==`absolute`&&e.style.position!==`fixed`)}function gi(e,t){let{text:n}=e,r=0,i=n.length;e.charSource&&(e.source.contains(t.startContainer)&&(r=ei(e,t.startContainer,t.startOffset)),e.source.contains(t.endContainer)&&(i=ei(e,t.endContainer,t.endOffset)));let a=n.slice(r,i);i===n.length&&a.endsWith(`
958
+ `)&&(a=a.slice(0,-1));let o=_t(e),s=n.slice(0,r).split(``).length-1;return a=a.replaceAll(``,()=>{let e=o[s++];if(!e||!t.intersectsNode(e.source))return``;let n=[];return li(e,t,n),_i(n)}),a.replaceAll(`⁠`,``)}function _i(e){let t=``,n=0;for(let r of e){if(`breaks`in r){n=Math.max(n,r.breaks);continue}r.text.length!==0&&(t.length>0&&n>0&&(t+=`
959
+ `.repeat(n)),n=0,t+=r.text)}return t}var vi=new Map;function yi(e,t){let{text:n}=e;if(t<0||t>=n.length||bi(n[t]))return null;let r=t;for(;r>0&&!bi(n[r-1]);)r--;let i=t;for(;i<n.length&&!bi(n[i]);)i++;let a=xi(e.source.closest?.(`[lang]`)?.getAttribute(`lang`)??``);if(!a)return null;for(let e of a.segment(n.slice(r,i))){let n=r+e.index,i=n+e.segment.length;if(t>=n&&t<i)return{start:n,end:i}}return null}function bi(e){return e===`
960
+ `||e===``||e===`⁠`}function xi(e){let t=vi.get(e);return t===void 0&&(t=Z(e)??Z(``),vi.set(e,t)),t}function Z(e){if(typeof Intl.Segmenter!=`function`)return null;try{return new Intl.Segmenter(e||void 0,{granularity:`word`})}catch{return null}}var Si=[{range:/^[\u2580-\u2590\u2594-\u259F]$/,reference:`█`},{range:/^[\u2500-\u257F]$/,reference:`│`}],Ci=/^[\u2591-\u2593]$/,wi=class{#e=new Map;#t=new Map;#n;#r={style:`normal`,weight:`400`,size:`16px`,family:`monospace`};#i={width:0,height:0,letterSpacing:0};#a=1;#o;constructor(e){this.#o=e}configure(e,t){let n=typeof devicePixelRatio==`number`&&devicePixelRatio||1;(e.style!==this.#r.style||e.weight!==this.#r.weight||e.size!==this.#r.size||e.family!==this.#r.family||t.width!==this.#i.width||t.height!==this.#i.height||t.letterSpacing!==this.#i.letterSpacing||n!==this.#a)&&(this.#r={...e},this.#i={...t},this.#a=n,this.#e.clear(),this.#t.clear())}invalidate(){this.#e.clear(),this.#t.clear()}box(e,t,n){let r=n?.fontWeight??this.#r.weight,i=n?.fontStyle??this.#r.style,a=`${i}|${r}|${e}`,o=this.#e.get(a);return o===void 0&&(o=this.#s(e,t,`${i} ${r} ${this.#r.size} ${this.#r.family}`),document.fonts?.status!==`loading`&&this.#e.set(a,o)),o}#s(e,t,n){let r=this.#u(),{width:i,height:a,letterSpacing:o}=this.#i;if(!r||i<=0||a<=0)return null;r.font=n;let s=Si.find(t=>t.range.test(e));if(s)return this.#c(s.reference,r,n);if(Ci.test(e))return this.#c(`█`,r,n)?this.#c(e,r,n,!0):null;let c=r.measureText(e),l=c.width+o,u=t*i;if(Math.abs(l-u)<=.01*i)return null;let d=l>0?u/l:1,f=c.actualBoundingBoxLeft+c.actualBoundingBoxRight,p=c.actualBoundingBoxAscent+c.actualBoundingBoxDescent;return f>0&&(d=Math.min(d,u/f)),p>0&&(d=Math.min(d,a/p)),{scale:Math.round(d*1e3)/1e3}}shift(e,t){let n=(e.period??0)*this.#a;return n?(n-t*this.#i.height*this.#a%n)%n/this.#a:0}#c(e,t,n,r=!1){let i=`${e}|${n}`,a=this.#t.get(i);if(a!==void 0)return a;let{width:o,height:s,letterSpacing:c}=this.#i,l=t.measureText(e),u=l.actualBoundingBoxAscent+l.actualBoundingBoxDescent,d=u<s-.05,f=Math.abs(l.width+c-o)>.01*o;if(a=null,(d||f)&&u>0){let t=(s+3)/u,i,o=r?this.#l(e,n):null;if(o){let e=o*this.#a,n=Math.ceil(t*e-1e-6);t=n/e,i=n/this.#a}let c=l.fontBoundingBoxAscent,d=l.fontBoundingBoxDescent;if(a={scale:Math.round(t*1e3)/1e3},i&&(a.period=i),Number.isFinite(c+d)){let n=t*(2*l.actualBoundingBoxAscent-c+d)-3;if(this.#o){let t=this.#o(e,a.scale,n)-l.actualBoundingBoxAscent*a.scale;n-=2*(t+1.5)}a.lineHeight=Math.round(n*100)/100}}return this.#t.set(i,a),a}#l(e,t){let n=parseFloat(this.#r.size)||16,r=Math.ceil(n*2*4),i=document.createElement(`canvas`);i.width=i.height=r;let a=i.getContext(`2d`);if(!a||typeof a.getImageData!=`function`)return null;a.scale(4,4),a.font=t,a.textBaseline=`top`,a.fillText(e,n/2,n/2);let o=a.getImageData(0,0,r,r).data,s=[],c=0;for(let e of[.25,.375,.5,.625,.75]){let t=Math.round((n/2+this.#i.width*e)*4),i=[];for(let e=0;e<r;e++)i.push(o[(e*r+t)*4+3]);let a=i.findIndex(e=>e>0),l=i.length-1;for(;l>a&&i[l]===0;)l--;if(a<0||l-a<8)continue;let u=i.slice(a,l+1),d=u.reduce((e,t)=>e+t,0)/u.length,f=u.map(e=>e-d),p=f.reduce((e,t)=>e+t*t,0);p>c&&(c=p,s=f)}if(c===0)return null;let l=e=>{let t=0;for(let n=0;n+e<s.length;n++)t+=s[n]*s[n+e];return t/c},u=l(1),d=!1;for(let e=2;e<=s.length/2;e++){let t=l(e);if(d&&t<u&&u>.3)return(e-1)/4;d=t>u,u=t}return null}#u(){if(this.#n===void 0)try{let e=document.createElement(`canvas`).getContext(`2d`);this.#n=e&&typeof e.measureText==`function`?e:null}catch{this.#n=null}return this.#n}},Ti=new WeakMap,Ei=new WeakMap;function Di(e){return Fi(e,!0)!==null}function Oi(e,t,n={}){let r=n.glyphs,i={};r&&(i.boxed=(e,t,n)=>r.box(e,t,n)!==null),n.selection&&(i.selection=n.selection);let{segments:a,cells:o}=yr(e,i),s=Li(a);if(Ti.get(t)===s)return!0;let c=Ei.get(t),l=new Set;if(c&&c.rows.length===a.length)for(let e=0;e<a.length;e++)Ni(t,c.rows[e].nodes,a[e])||l.add(e);if((l.size>0||!c||c.rows.length!==a.length)&&n.holdStructural&&Di(t))return!1;if(Ti.set(t,s),!c||c.rows.length!==a.length){let e=document.createDocumentFragment(),n=[];for(let t=0;t<a.length;t++){let{nodes:i,units:o}=ki(a[t],r,t);for(let t of i)e.appendChild(t);let s=t<a.length-1?document.createTextNode(`
961
+ `):null;s&&e.appendChild(s),n.push({nodes:i,segments:a[t],newline:s,units:o})}Ei.set(t,{rows:n,cells:o});let i=Fi(t,!1);return t.replaceChildren(e),i&&Ii(t,i),!0}let u=l.size>0?Fi(t,!1):null;for(let e=0;e<a.length;e++){let n=a[e],i=c.rows[e];if(l.has(e)){let a=ki(n,r,e);for(let e of a.nodes)t.insertBefore(e,i.newline);for(let e of i.nodes)e.remove();i.nodes=a.nodes,i.segments=n,i.units=a.units;continue}for(let t=0;t<n.length;t++){let a=n[t];Cr(a)||Mi(a,i.segments[t])||ji(i.nodes[t],a,r,e)}i.segments=n}return c.cells=o,u&&Ii(t,u),!0}function ki(e,t,n){let r=[],i=0;for(let a of e){if(i+=a.text.length,Cr(a)&&!a.box){r.push(document.createTextNode(a.text));continue}let e=document.createElement(`span`);ji(e,a,t,n),e.textContent=a.text,r.push(e)}return{nodes:r,units:i}}function Ai(e,t,n){return Ei.get(e)?.cells[n]?.[t]}function ji(e,t,n,r){if(e.style.cssText=``,delete e.dataset.shade,Sr(t,e.style),!t.box)return;let i=t.cells??1,a=n?.box(t.text,i,t),o=e.style;o.display=`inline-block`,o.padding=`0`,o.width=`calc(${i} * var(--mw-cw, 1ch))`,o.height=`var(--mw-ch, 1lh)`,o.overflow=`hidden`,o.verticalAlign=`top`,o.textAlign=`center`,a&&a.scale!==1&&(o.fontSize=`${Math.round(a.scale*1e3)/10}%`),a?.lineHeight!==void 0&&(o.lineHeight=`${a.lineHeight}px`),a?.period&&n&&(e.dataset.shade=t.text,o.paddingTop=`var(--mw-phase)`,o.setProperty(`--mw-phase`,`${n.shift(a,r)}px`),o.setProperty(`--mw-period`,`${a.period}px`))}function Mi(e,t){return xr(e,t)&&e.box===t.box&&e.cells===t.cells}function Ni(e,t,n){if(t.length!==n.length)return!1;for(let r=0;r<n.length;r++){let i=t[r],a=n[r];if((Cr(a)&&!a.box)!==(i.nodeType===Node.TEXT_NODE)||i.textContent!==a.text||i.parentNode!==e)return!1}return!0}function Pi(e,t,n){let r=Ei.get(e);if(!r||r.rows.length===0)return 0;let i=Math.max(0,Math.min(n,r.rows.length-1)),a=0;for(let e=0;e<i;e++)a+=r.rows[e].units+1;let o=r.cells[i],s=Math.max(0,Math.min(t,o.length));for(let e=0;e<s;e++)a+=o[e].length;return a}function Fi(e,t){try{let n=e.ownerDocument.getSelection();if(!n)return null;let r=e.getRootNode();if(!(r instanceof ShadowRoot))return null;let i=ni(r);if(!i)return null;let a=Qr(e,i.startContainer,i.startOffset),o=Qr(e,i.endContainer,i.endOffset);return a===null||o===null||a===o&&!t?null:{start:a,end:o,backward:n.direction===`backward`}}catch{return null}}function Ii(e,t){try{let n=Zr(e,t.start),r=Zr(e,t.end);if(!n||!r)return;let i=e.getRootNode().getSelection?.()??e.ownerDocument.getSelection();t.backward?i?.setBaseAndExtent(r[0],r[1],n[0],n[1]):i?.setBaseAndExtent(n[0],n[1],r[0],r[1])}catch{}}function Li(e){let t=[];for(let n of e){for(let e of n)t.push(e.text,e.color??``,e.backgroundColor??``,e.fontWeight??``,e.fontStyle??``,e.textDecorationLine??``,e.opacity??``,e.selected?`s`:``,e.box?`b${e.cells}`:``);t.push(`
962
+ `)}return t.join(``)}function Ri(e){let t=new Set;Bi(e,!0,t);for(let n of Array.from(e.source.querySelectorAll(`[data-mw-inline-inset]`)))if(!t.has(n)){n.removeAttribute(`data-mw-inline-inset`);let e=n.style;for(let t of[`--mw-it`,`--mw-ir`,`--mw-ib`,`--mw-il`])e.removeProperty(t)}}function Q(e,t,n){e.style.getPropertyValue(t)!==n&&e.style.setProperty(t,n)}function zi(e,t){e.style.getPropertyValue(t)!==``&&e.style.removeProperty(t)}function $(e,t,n){e.hasAttribute(t)!==n&&(n?e.setAttribute(t,``):e.removeAttribute(t))}function Bi(e,t,n){if(e.inlineElements)for(let{element:t,tracking:r,padLeft:i,padRight:a,insets:o}of e.inlineElements){let e=t;Q(e,`--mw-ls`,String(r)),i>0?Q(e,`--mw-ipl`,String(i)):zi(e,`--mw-ipl`),a>0?Q(e,`--mw-ipr`,String(a)):zi(e,`--mw-ipr`),o&&(n.add(t),Hi(e,o))}if(t?Vi(e):Ui(e),!e.tableHidden)for(let t of ge(e)){let r=t.source;t.style.zIndex!==null&&he(t,e)&&!t.inlineBox?Q(r,`--mw-z`,String(t.style.zIndex)):zi(r,`--mw-z`),Bi(t,!1,n)}}function Vi(e){let t=e.source,n=e.text.length>0,{whiteSpace:r,textAlignBlocked:i,textIndent:a}=e.style;$(t,`data-mw-leaf`,n),$(t,`data-mw-nowrap`,n&&r!==`normal`),$(t,`data-mw-pre`,n&&r===`pre`),$(t,`data-mw-text-align-blocked`,n&&i),n?Q(t,`--mw-ti`,String(a)):zi(t,`--mw-ti`)}function Hi(e,t){$(e,`data-mw-inline-inset`,!0);let n=(t,n)=>{n===null?zi(e,t):Q(e,t,String(n))};n(`--mw-it`,t.top),n(`--mw-ir`,t.right),n(`--mw-ib`,t.bottom),n(`--mw-il`,t.left)}function Ui(e){let t=e.source,n=e.localRect,r=e.resolvedPadding,{border:i,textAlignBlocked:a,overflow:o,whiteSpace:s,tracking:c,lineGap:l}=e.style,u=e.multicolFlow,d=e.multicolFlowSpan;$(t,`data-mw-laid-out`,!e.inlineBox&&!u&&!d),$(t,`data-mw-inline-box`,!!e.inlineBox),$(t,`data-mw-multicol-flow`,!!u),$(t,`data-mw-multicol-flow-span`,!!d);let f=u??d;f?(Q(t,`--mw-mt`,String(f.top??0)),Q(t,`--mw-mr`,String(f.right??0)),Q(t,`--mw-mb`,String(f.bottom??0)),Q(t,`--mw-ml`,String(f.left??0))):(zi(t,`--mw-mt`),zi(t,`--mw-mr`),zi(t,`--mw-mb`),zi(t,`--mw-ml`)),$(t,`data-mw-vbottom`,!!e.inlineBox&&e.style.verticalAlign===`end`),Q(t,`--mw-ls`,String(c)),Q(t,`--mw-lh`,String(l+1)),Q(t,`--mw-lhs`,String(-l/2)),$(t,`data-mw-nowrap`,s!==`normal`);let p=u||d?void 0:e.multicolGeometry;if($(t,`data-mw-multicol`,!!p),$(t,`data-mw-multicol-balance`,!!p?.nativeBalance),p?(Q(t,`--mw-colc`,String(p.columnCount)),Q(t,`--mw-colg`,String(p.gap))):(zi(t,`--mw-colc`),zi(t,`--mw-colg`)),$(t,`data-mw-pre`,s===`pre`),Q(t,`--mw-x`,String(n.x)),Q(t,`--mw-y`,String(n.y)),Q(t,`--mw-w`,String(n.width)),Q(t,`--mw-h`,String(n.height)),$(t,`data-mw-clip`,o.x===`clip`||o.y===`clip`),$(t,`data-mw-scroll`,e.scrollRange!==void 0),e.scrollRange){let{maxX:n,maxY:r}=e.scrollRange;Q(t,`--mw-se-x`,String(n>0?n+e.localRect.width:1)),Q(t,`--mw-se-y`,String(r>0?r+e.localRect.height:1))}else zi(t,`--mw-se-x`),zi(t,`--mw-se-y`);Q(t,`--mw-pt`,String(r.top)),Q(t,`--mw-pr`,String(r.right)),Q(t,`--mw-pb`,String(r.bottom)),Q(t,`--mw-pl`,String(r.left)),Q(t,`--mw-bt`,String(i.top)),Q(t,`--mw-br`,String(i.right)),Q(t,`--mw-bb`,String(i.bottom)),Q(t,`--mw-bl`,String(i.left)),Q(t,`--mw-ti`,String(e.style.textIndent)),$(t,`data-mw-text-align-blocked`,a),$(t,`data-mw-dropped-text`,!!e.droppedText),$(t,`data-mw-table-hidden`,!!e.tableHidden)}function Wi(e,t,n){let r=getComputedStyle(e),i=parseFloat(r.fontSize)||t,a=pa(e)?e.computedStyleMap():null,o=e.getAttribute(`class`)??``,s=e.style;ca(e,o,s);let c=(e,r,i)=>ja(a,e,r,o,i,s,n,t)??Na(a,e,r,o,i,s,n,t)??Ca(r,t),l=r.display||ia[e.tagName]||``,u=aa[l]??`none`,d=r.columnCount&&r.columnCount!==`auto`?Math.max(1,Math.floor(Number(r.columnCount)||1)):null,f=r.columnWidth&&r.columnWidth!==`auto`?parseFloat(r.columnWidth):NaN,p=Number.isFinite(f)?Math.max(1,Ce(f,t)):null,m=l===`flex`||l===`inline-flex`?`flex`:l===`grid`||l===`inline-grid`?`grid`:l===`table`||l===`inline-table`?`table`:l===`none`||ra(e,r)?`none`:d!==null||p!==null?`multicol`:`block`,h={kind:`none`},g={kind:`none`},_=[xt()],v=[xt()],y={direction:`row`,dense:!1},b=null;if(m===`grid`){if(a)h=Ia(a.get(`grid-template-columns`)?.toString()??``,t),g=Ia(a.get(`grid-template-rows`)?.toString()??``,t);else{e.setAttribute(`data-mw-degrid`,``);try{h=Ia(r.getPropertyValue(`grid-template-columns`),t),g=Ia(r.getPropertyValue(`grid-template-rows`),t)}finally{e.removeAttribute(`data-mw-degrid`)}}_=Ba(r.getPropertyValue(`grid-auto-columns`),t),v=Ba(r.getPropertyValue(`grid-auto-rows`),t),y=Ka(r.getPropertyValue(`grid-auto-flow`)),b=za(r.getPropertyValue(`grid-template-areas`))}let x=`auto`,S=!1,C=0,w=0;if(m===`table`&&(x=r.tableLayout===`fixed`?`fixed`:`auto`,S=r.borderCollapse===`collapse`,!S)){let e=r.borderSpacing.split(` `);C=Ce(parseFloat(e[0]??``)||0,t),w=Ce(parseFloat(e[1]??e[0]??``)||0,t)}let T={display:m,tableRole:u,tableLayout:x,borderCollapse:S,borderSpacingX:C,borderSpacingY:w,captionSide:r.captionSide===`bottom`?`bottom`:`top`,verticalAlign:u===`cell`||l.startsWith(`inline-`)?oa(e,r):`start`,flexDirection:r.flexDirection.startsWith(`column`)?`column`:`row`,flexReverse:r.flexDirection.endsWith(`-reverse`),flexWrap:r.flexWrap.startsWith(`wrap`)?`wrap`:`nowrap`,wrapReverse:r.flexWrap===`wrap-reverse`,flexGrow:Number(r.flexGrow)||0,flexShrink:r.flexShrink===``?1:Number(r.flexShrink)||0,flexBasis:Pa(r.flexBasis,t),order:Number(r.order)||0,justifyContent:ma(r.justifyContent),alignContent:ma(r.alignContent),alignItems:ha(r.alignItems),alignSelf:ga(r.alignSelf),justifyItems:ha(r.justifyItems),justifySelf:ga(r.justifySelf),gridTemplateColumns:h,gridTemplateRows:g,gridAutoColumns:_,gridAutoRows:v,gridAutoFlow:y,gridTemplateAreas:b,gridColumnStart:Ga(r.getPropertyValue(`grid-column-start`)),gridColumnEnd:Ga(r.getPropertyValue(`grid-column-end`)),gridRowStart:Ga(r.getPropertyValue(`grid-row-start`)),gridRowEnd:Ga(r.getPropertyValue(`grid-row-end`)),width:Da(a,r.width,`width`,t,o,s,n),height:Da(a,r.height,`height`,t,o,s,n),minWidth:c(`min-width`,r.minWidth,`min-w`)??`auto`,minHeight:c(`min-height`,r.minHeight,`min-h`)??`auto`,maxWidth:c(`max-width`,r.maxWidth,`max-w`),maxHeight:c(`max-height`,r.maxHeight,`max-h`),padding:qa(r,t),margin:_a(r,a,o,s,t),position:ba(r.position),insets:xa(r,a,o,s,t),gapX:wa(r.columnGap===`normal`||r.columnGap===``?m===`multicol`?`${i}px`:`0px`:r.columnGap,t),gapY:wa(r.rowGap===`normal`?`0px`:r.rowGap,t),border:Ja(r),borderStyle:{top:Sa(r.borderTopStyle),right:Sa(r.borderRightStyle),bottom:Sa(r.borderBottomStyle),left:Sa(r.borderLeftStyle)},overflow:na(r),scrollbarWidth:Qi(e,r),scrollbarColor:$i(r.scrollbarColor),overscroll:{x:(r.overscrollBehaviorX||`auto`)===`auto`,y:(r.overscrollBehaviorY||`auto`)===`auto`},scrollbarSize:{x:ea(r.getPropertyValue(`--mw-scrollbar-size-x`)),y:ea(r.getPropertyValue(`--mw-scrollbar-size-y`))},scrollbarInset:{x:ea(r.getPropertyValue(`--mw-scrollbar-inset-x`),0),y:ea(r.getPropertyValue(`--mw-scrollbar-inset-y`),0)},...sa(e,r,t),lineGap:ya(r.lineHeight,i),tracking:va(r.letterSpacing,i,n?.letterSpacing??0),color:r.color,fontWeight:r.fontWeight,fontStyle:r.fontStyle,backgroundColor:qi(e,r.backgroundColor,r),backgroundClear:r.getPropertyValue(`--mw-bg-clear`).trim()===`1`,borderColor:{top:r.borderTopColor,right:r.borderRightColor,bottom:r.borderBottomColor,left:r.borderLeftColor},opacity:Ta(r.opacity),glyphSet:r.getPropertyValue(`--mw-border-glyphs`).trim()||null,zIndex:r.zIndex===`auto`||r.zIndex===``?null:Number(r.zIndex)||0,latticeBorder:null,ruleX:m===`flex`||m===`grid`||m===`multicol`?ua(r,`x`):null,ruleY:m===`flex`||m===`grid`?ua(r,`y`):null,ruleBreak:la(r,`--mw-rule-break`,[`none`,`intersection`],`normal`),ruleInset:r.getPropertyValue(`--mw-rule-inset`).trim()===`overlap-join`?`overlap-join`:Math.max(0,Se(parseFloat(r.getPropertyValue(`--mw-rule-inset`))||0)),ruleVisibilityItems:la(r,`--mw-rule-visibility-items`,[`all`,`around`,`between`],`normal`),columnCount:d,columnWidth:p,columnFill:r.columnFill===`auto`?`auto`:`balance`,columnSpan:r.columnSpan===`all`,breakBeforeColumn:r.breakBefore===`column`,breakAfterColumn:r.breakAfter===`column`,breakInsideAvoid:r.breakInside===`avoid`||r.breakInside===`avoid-column`};return Gi(T,r),T}function Gi(e,t){t.borderCollapse===`collapse`&&(e.display===`table`||e.tableRole===`cell`||e.tableRole===`row`||e.tableRole===`row-group`||e.tableRole===`header-group`||e.tableRole===`footer-group`)&&(e.latticeBorder={width:e.border,style:e.borderStyle,color:e.borderColor,hidden:{top:t.borderTopStyle===`hidden`,right:t.borderRightStyle===`hidden`,bottom:t.borderBottomStyle===`hidden`,left:t.borderLeftStyle===`hidden`}},e.border=bt(),e.display===`table`&&(e.padding=bt()))}function Ki(e){if(!e)return!0;let t=e.trim().toLowerCase();return t===``||t===`transparent`||t===`rgba(0, 0, 0, 0)`||t===`currentcolor`}function qi(e,t,n){let r=O(e,Ki(t)?``:t,n);return r===``?void 0:r}function Ji(e){return e===`hidden`||e===`clip`}var Yi=new WeakMap,Xi=null;function Zi(e){if(Xi!==null)return Xi;if(!e.body)return!0;let t=e.createElement(`div`);return t.style.cssText=`position: absolute; width: 0; height: 0; overflow: auto`,e.body.appendChild(t),Xi=getComputedStyle(t).scrollbarWidth!==`none`,t.remove(),Xi}function Qi(e,t){if(!Zi(e.ownerDocument))return`auto`;if(e.hasAttribute(`data-mw-scroll`)){let t=Yi.get(e);if(t!==void 0)return t}let n=t.scrollbarWidth===`none`?`none`:`auto`;return Yi.set(e,n),n}function $i(e){let t=(e??``).trim();if(!t||t===`auto`)return null;let n=0;for(let e=0;e<t.length;e++){let r=t[e];if(r===`(`)n++;else if(r===`)`)n--;else if(r===` `&&n===0)return{thumb:t.slice(0,e),track:t.slice(e+1).trim()}}return null}function ea(e,t=1){return Math.max(t,Math.floor(Number(e)||t))}function ta(e){return Ji(e)?`clip`:e===`auto`||e===`scroll`?e:`visible`}function na(e){let t=ta(e.overflowX||e.overflow),n=ta(e.overflowY||e.overflow);return t!==`visible`&&n===`visible`&&(n=`auto`),n!==`visible`&&t===`visible`&&(t=`auto`),{x:t,y:n}}function ra(e,t){if(t.position!==`absolute`&&t.position!==`fixed`)return!1;let n=t.clip.replace(/\s/g,``);return n===`rect(0px,0px,0px,0px)`||n===`rect(0,0,0,0)`||!b(e.tagName)&&(Ji(t.overflow)||Ji(t.overflowX))&&parseFloat(t.width)<=1&&parseFloat(t.height)<=1}var ia={TABLE:`table`,THEAD:`table-header-group`,TBODY:`table-row-group`,TFOOT:`table-footer-group`,TR:`table-row`,TD:`table-cell`,TH:`table-cell`,CAPTION:`table-caption`,COL:`table-column`,COLGROUP:`table-column-group`},aa={"table-header-group":`header-group`,"table-row-group":`row-group`,"table-footer-group":`footer-group`,"table-row":`row`,"table-cell":`cell`,"table-caption":`caption`,"table-column":`column`,"table-column-group":`column-group`};function oa(e,t){let n=t.verticalAlign||e.getAttribute(`valign`)?.toLowerCase()||(e.tagName===`TD`||e.tagName===`TH`?`middle`:`baseline`);return n===`top`?`start`:n===`middle`?`center`:n===`bottom`?`end`:`start`}function sa(e,t,n){return{whiteSpace:t.whiteSpace===`pre`?`pre`:t.whiteSpace===`nowrap`?`nowrap`:`normal`,tabSize:Math.max(1,Math.floor(parseFloat(t.tabSize))||8),textOverflow:t.textOverflow===`ellipsis`?`ellipsis`:`clip`,textDecorationLine:t.textDecorationLine,textAlignBlocked:da(e,t),textAlign:fa(e,t),textIndent:Ea(t,n)}}function ca(e,t,n){(/(?:^|[\s:.[!])text-(?:xs|sm|base|lg|[2-9]?xl)(?![\w-])/.test(t)||/(?:^|[\s:.[!])text-\[(?:(?:length|size):|[\d.])/.test(t)||n.fontSize!==``)&&m(e,`font-size inside <mono-wind> is ignored — all text shares the host's cell size. Size the <mono-wind> element itself instead.`)}function la(e,t,n,r){let i=e.getPropertyValue(t).trim();return n.includes(i)?i:r}function ua(e,t){let n=Se(parseFloat(e.getPropertyValue(`--mw-rule-${t}-width`))||0);if(n<=0)return null;let r=e.getPropertyValue(`--mw-rule-${t}-color`).trim();return{width:n,style:Sa(e.getPropertyValue(`--mw-rule-${t}-style`).trim()),color:r&&r!==`currentcolor`&&r!==`currentColor`?r:e.color}}function da(e,t){return t.textAlign===`justify`||e.getAttribute(`align`)?.toLowerCase()===`justify`}function fa(e,t){let n=t.textAlign||e.getAttribute(`align`)?.toLowerCase()||``;return n===`right`||n===`end`?`end`:n===`center`||n.endsWith(`-center`)?`center`:`start`}function pa(e){return typeof e.computedStyleMap==`function`}function ma(e){switch(e){case`center`:return`center`;case`flex-end`:case`end`:case`right`:return`end`;case`space-between`:return`space-between`;case`space-around`:return`space-around`;case`space-evenly`:return`space-evenly`;case`normal`:case`stretch`:case``:return`stretch`;default:return`start`}}function ha(e){switch(e){case`center`:return`center`;case`flex-end`:case`end`:return`end`;case`stretch`:case`normal`:case``:return`stretch`;default:return`start`}}function ga(e){return e===`auto`||e===``||e===`normal`?`auto`:ha(e)}function _a(e,t,n,r,i){let a=(a,o,s)=>{if(t){let e=t.get(a)?.toString().trim();if(e===`auto`||t.get(o)?.toString().trim()===`auto`)return null;if(e?.endsWith(`%`)){let t=parseFloat(e);if(Number.isFinite(t)&&t!==0)return{percent:t}}}else if(s.test(n)||r.getPropertyValue(a)===`auto`)return null;let c=e.getPropertyValue(a);if(c===`auto`)return null;let l=wa(c,i);if(l!==0)return l;let u=e.getPropertyValue(o);return u===`auto`?null:wa(u,i)};return{top:a(`margin-top`,`margin-block-start`,/(?:^|[\s:.[!])(?:m|my|mt)-auto\b/),right:a(`margin-right`,`margin-inline-end`,/(?:^|[\s:.[!])(?:m|mx|mr|me)-auto\b/),bottom:a(`margin-bottom`,`margin-block-end`,/(?:^|[\s:.[!])(?:m|my|mb)-auto\b/),left:a(`margin-left`,`margin-inline-start`,/(?:^|[\s:.[!])(?:m|mx|ml|ms)-auto\b/)}}function va(e,t,n){let r=(e===`normal`?0:parseFloat(e)||0)-n;return r<=0?0:Math.floor(r/(.025*t)+1e-6)}function ya(e,t){if(!e||e===`normal`||t<=0)return 0;let n=parseFloat(e);return Number.isFinite(n)?Math.max(0,Math.floor(n/t+1e-6)-1):0}function ba(e){switch(e){case`relative`:case`absolute`:case`fixed`:case`sticky`:return e;default:return`static`}}function xa(e,t,n,r,i){let a=(a,o)=>{if(t){let e=t.get(a)?.toString().trim();return!e||e===`auto`?null:wa(e,i)}let s=r[a];if(s)return s===`auto`?null:wa(s,i);if(!o.test(n))return null;let c=e.getPropertyValue(a);return!c||c===`auto`?null:wa(c,i)};return{top:a(`top`,/(?:^|[\s:.[!])-?(?:top|inset|inset-y)-/),right:a(`right`,/(?:^|[\s:.[!])-?(?:right|end|inset|inset-x)-/),bottom:a(`bottom`,/(?:^|[\s:.[!])-?(?:bottom|inset|inset-y)-/),left:a(`left`,/(?:^|[\s:.[!])-?(?:left|start|inset|inset-x)-/)}}function Sa(e){switch(e){case`double`:return`double`;case`dashed`:return`dashed`;case`dotted`:return`dotted`;default:return`solid`}}function Ca(e,t){if(!e||e===`none`||e===`auto`)return;if(e===`min-content`||e===`max-content`||e===`fit-content`)return e;if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)?{percent:t}:void 0}let n=parseFloat(e);return Number.isFinite(n)?Ce(n,t):void 0}function wa(e,t){if(!e||e===`auto`||e===`none`)return 0;if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)&&t!==0?{percent:t}:0}let n=parseFloat(e);return Number.isFinite(n)?Ce(n,t):0}function Ta(e){let t=parseFloat(e);return Number.isFinite(t)?Math.min(1,Math.max(0,t)):1}function Ea(e,t){let n=e.textIndent;if(!n||n.endsWith(`%`))return 0;let r=parseFloat(n);return Number.isFinite(r)?Math.max(0,Ce(r,t)):0}function Da(e,t,n,r,i,a,o){let s=Oa(n===`width`?a.width:a.height);if(s!==null)return{kind:`cells`,value:Aa(s,n,o,r)};let c=ja(e,n,t,i,n===`width`?`w`:`h`,a,o,r);if(c!==void 0)return{kind:`cells`,value:c};let l=n===`width`?`w`:`h`,u=ka(i,l)??ka(i,`size`);if(u!==null){let i=parseFloat(e?String(e.get(n)??``):t),a=Number.isFinite(i)&&Math.abs(i-u)<=u*.3;if(a||!Number.isFinite(i))return{kind:`cells`,value:Aa(a?i:u,n,o,r)}}if(e){let t=e.get(n);if(t==null)return;let i=t.toString().trim();if(i===`auto`)return{kind:`auto`};let a=Fa(i);if(a)return a;if(i.endsWith(`%`))return{kind:`percent`,value:parseFloat(i)};if(i.endsWith(`px`))return{kind:`cells`,value:Ce(parseFloat(i),r)};if(i.endsWith(`rem`))return{kind:`cells`,value:Se(parseFloat(i)/.25)};let s=Oa(i);if(s!==null)return{kind:`cells`,value:Aa(s,n,o,r)}}let d=n===`width`?a.width:a.height;if(d){if(d===`auto`)return{kind:`auto`};let e=Fa(d);if(e)return e;if(d.endsWith(`%`))return{kind:`percent`,value:parseFloat(d)};let t=parseFloat(d);if(Number.isFinite(t))return{kind:`cells`,value:Ce(t,r)}}let f=`(?:^|[\\s:.[!])(?:${l}|size)-`;if(RegExp(`${f}min\\b`).test(i))return{kind:`min-content`};if(RegExp(`${f}max\\b`).test(i))return{kind:`max-content`};if(RegExp(`${f}fit\\b`).test(i))return{kind:`fit-content`};let p=RegExp(`${f}(\\d+)/(\\d+)(?![\\w./])`).exec(i);if(p)return{kind:`percent`,value:100*Number(p[1])/Number(p[2])};if(RegExp(`${f}full(?![\\w-])`).test(i))return{kind:`percent`,value:100};let m=RegExp(`${f}\\[(\\d+(?:\\.\\d+)?)%\\]`).exec(i);if(m)return{kind:`percent`,value:Number(m[1])};let h=RegExp(`${f}(\\d+(?:\\.\\d+)?)(?![\\w-/])`).exec(i);if(h)return{kind:`cells`,value:Se(Number(h[1]))};if(!new RegExp(f).test(i)||t===`auto`)return{kind:`auto`};if(t.endsWith(`%`))return{kind:`percent`,value:parseFloat(t)};let g=parseFloat(t);if(Number.isFinite(g))return{kind:`cells`,value:Ce(g,r)}}function Oa(e){let t=/^(-?[\d.]+)((?:[dsl]?v)(?:h|w|min|max)|vi|vb)$/.exec(e.trim());if(!t||typeof window>`u`)return null;let n=parseFloat(t[1]);if(!Number.isFinite(n))return null;let r=t[2],i=window.innerHeight,a=window.innerWidth,o=r.endsWith(`h`)?i:r.endsWith(`min`)?Math.min(a,i):r.endsWith(`max`)?Math.max(a,i):r===`vb`?i:a;return n/100*o}function ka(e,t){if(typeof window>`u`)return null;let n=RegExp(`(?:^|[\\s:.[!])${t}-(screen|[dsl]v[hw])(?![\\w-])`).exec(e);if(n){let e=n[1];return e===`screen`?t.includes(`h`)?window.innerHeight:window.innerWidth:e.endsWith(`h`)?window.innerHeight:window.innerWidth}let r=RegExp(`(?:^|[\\s:.[!])${t}-\\[(-?[\\d.]+(?:[dsl]?v(?:h|w|min|max)|vi|vb))\\]`).exec(e);return r?Oa(r[1]):null}function Aa(e,t,n,r){let i=t===`width`?n?.width:n?.height;return i&&i>0?Math.max(0,Math.floor(e/i)):Ce(e,r)}function ja(e,t,n,r,i,a,o,s){let c=t.endsWith(`width`)?`width`:`height`,l=a.getPropertyValue(t).trim(),u=l.startsWith(`calc(`);if(!u&&!r.includes(`-[calc(`))return;let d=RegExp(`(?:^|[\\s:.[!])${i}-\\[(calc\\([^\\]]*\\))\\]`).exec(r),f=u?l:d?.[1]?.replaceAll(`_`,` `);if(!f)return;let p=Ma(f,c,o,s);if(!p||p.unitless)return;let m=Math.max(0,Se(p.cells));if(u)return m;let h=(e?String(e.get(t)??``):n).trim(),g=parseFloat(h);return(Number.isFinite(g)?Math.abs(g-p.px)<=Math.abs(p.px)*.3:h===``)?m:void 0}function Ma(e,t,n,r){let i=e.match(/--spacing\(\s*-?[\d.]+\s*\)|calc|[\d.]+[a-z%]*|[()+\-*/]/g);if(!i||i.join(``).replace(/\s+/g,``)!==e.replace(/\s+/g,``))return null;let a=0,o=()=>i[a],s=()=>i[a++],c=(e,t)=>({cells:e,px:t,unitless:!1}),l=e=>{let i=/^--spacing\(\s*(-?[\d.]+)\s*\)$/.exec(e);if(i){let e=parseFloat(i[1]);return c(e,e*r/4)}let a=/^([\d.]+)([a-z%]*)$/.exec(e);if(!a)return null;let o=parseFloat(a[1]),s=a[2];if(!Number.isFinite(o))return null;if(s===``)return{cells:o,px:o,unitless:!0};if(s===`px`)return c(o/(r/4),o);if(s===`rem`)return c(o*4,o*r);let l=Oa(e);return l===null?null:c(Aa(l,t,n,r),l)},u=(e,t,n)=>{if(e===`+`||e===`-`){if(t.unitless!==n.unitless)return null;let r=e===`+`?1:-1;return{cells:t.cells+r*n.cells,px:t.px+r*n.px,unitless:t.unitless}}if(e===`*`){if(!t.unitless&&!n.unitless)return null;let[e,r]=t.unitless?[t,n]:[n,t];return{cells:r.cells*e.cells,px:r.px*e.px,unitless:r.unitless&&e.unitless}}return!n.unitless||n.px===0?null:{cells:t.cells/n.cells,px:t.px/n.px,unitless:t.unitless}},d=()=>{let e=s();if(e===void 0)return null;if(e===`-`){let e=d();return e&&{cells:-e.cells,px:-e.px,unitless:e.unitless}}return e===`calc`?s()===`(`?f():null:e===`(`?f():l(e)},f=()=>{let e=m();return s()===`)`?e:null},p=()=>{let e=d();for(;e&&(o()===`*`||o()===`/`);){let t=s(),n=d();e=n?u(t,e,n):null}return e},m=()=>{let e=p();for(;e&&(o()===`+`||o()===`-`);){let t=s(),n=p();e=n?u(t,e,n):null}return e},h=m();return a===i.length?h:null}function Na(e,t,n,r,i,a,o,s){let c=t.endsWith(`width`)?`width`:`height`,l=Oa(a.getPropertyValue(t))??Oa(e?.get(t)?.toString().trim()??``);if(l!==null)return Aa(l,c,o,s);let u=ka(r,i);if(u===null)return;let d=(e?String(e.get(t)??``):n).trim(),f=parseFloat(d),p=Number.isFinite(f)&&Math.abs(f-u)<=u*.3;if(p||d===``)return Aa(p?f:u,c,o,s)}function Pa(e,t){if(!e||e===`auto`||e===`content`)return;let n=Fa(e);if(n)return n;if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)?{kind:`percent`,value:t}:void 0}let r=parseFloat(e);return Number.isFinite(r)?{kind:`cells`,value:Ce(r,t)}:void 0}function Fa(e){if(e===`min-content`)return{kind:`min-content`};if(e===`max-content`)return{kind:`max-content`};if(e===`fit-content`)return{kind:`fit-content`}}function Ia(e,t){let n=e.trim();if(!n||n===`none`)return{kind:`none`};if(n===`subgrid`||n.startsWith(`subgrid `))return{kind:`subgrid`};let r=[],i=[],a=[],o=e=>{i.push(a),a=[],r.push(e)},s;for(let e of Wa(n)){let n=Ra(e);if(n){a.push(...n);continue}let i=e.match(/^repeat\(\s*([^,]+?)\s*,(.*)\)$/s);if(i){let e=La(i[2].trim(),t);if(e.tracks.length===0)continue;let n=i[1];if(n===`auto-fill`||n===`auto-fit`){s||(s={index:r.length,tracks:e.tracks,mode:n},e.lineNames.some(e=>e.length>0)&&(s.lineNames=e.lineNames),a.length>0&&(s.leadingNames=a),a=[]);continue}let c=Math.max(0,Math.floor(Number(n)||0));for(let t=0;t<c;t++){a.push(...e.lineNames[0]);for(let t=0;t<e.tracks.length;t++)o(e.tracks[t]),a.push(...e.lineNames[t+1])}continue}o(Va(e,t))}if(i.push(a),r.length===0&&!s)return{kind:`none`};let c={kind:`tracks`,tracks:r};return i.some(e=>e.length>0)&&(c.lineNames=i),s&&(c.autoRepeat=s),c}function La(e,t){let n=[],r=[],i=[];for(let a of Wa(e)){let e=Ra(a);if(e){i.push(...e);continue}r.push(i),i=[],n.push(Va(a,t))}return r.push(i),{tracks:n,lineNames:r}}function Ra(e){let t=e.match(/^\[(.*)\]$/s);return t?t[1].split(/\s+/).filter(e=>e!==``):null}function za(e){let t=[];for(let n of e.matchAll(/"([^"]*)"|'([^']*)'/g)){let e=(n[1]??n[2]??``).trim().split(/\s+/).filter(e=>e!==``);if(e.length===0)return null;t.push(e)}if(t.length===0)return null;let n=t[0].length;if(t.some(e=>e.length!==n))return null;let r=new Map;t.forEach((e,t)=>{e.forEach((e,n)=>{if(/^\.+$/.test(e))return;let i=r.get(e);i?(i.colStart=Math.min(i.colStart,n),i.colEnd=Math.max(i.colEnd,n+1),i.rowStart=Math.min(i.rowStart,t),i.rowEnd=Math.max(i.rowEnd,t+1)):r.set(e,{colStart:n,colEnd:n+1,rowStart:t,rowEnd:t+1})})});for(let[e,n]of r)for(let r=n.rowStart;r<n.rowEnd;r++)for(let i=n.colStart;i<n.colEnd;i++)if(t[r][i]!==e)return null;return{columns:n,rows:t.length,areas:r}}function Ba(e,t){let n=Wa(e.trim()).filter(e=>e!==``&&!e.startsWith(`[`)).map(e=>Va(e,t));return n.length>0?n:[xt()]}function Va(e,t){let n=e.match(/^minmax\((.*)\)$/s);if(n){let e=Ua(n[1]).map(e=>e.trim());return e.length===2?{min:Ha(e[0],t),max:Ha(e[1],t)}:{min:{kind:`auto`},max:{kind:`auto`}}}let r=Ha(e,t);return r.kind===`fr`?{min:{kind:`auto`},max:r}:{min:r,max:r}}function Ha(e,t){if(e===`auto`||e.startsWith(`fit-content`))return{kind:`auto`};if(e===`min-content`)return{kind:`min-content`};if(e===`max-content`)return{kind:`max-content`};let n=e.match(/^(min|max)\((.*)\)$/s);if(n){let e=Ua(n[2]).map(e=>Ha(e.trim(),t)),r=e.every(e=>e.kind===`cells`||e.kind===`percent`||e.kind===`math`);return e.length>0&&r?{kind:`math`,fn:n[1],args:e}:{kind:`auto`}}if(e.endsWith(`fr`)){let t=parseFloat(e);return Number.isFinite(t)&&t>=0?{kind:`fr`,value:t}:{kind:`auto`}}if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)?{kind:`percent`,value:t}:{kind:`auto`}}let r=parseFloat(e);return Number.isFinite(r)?{kind:`cells`,value:e.endsWith(`rem`)?Se(r/.25):Ce(r,t)}:{kind:`auto`}}function Ua(e){let t=[],n=0,r=0;for(let i=0;i<e.length;i++){let a=e[i];a===`(`?n++:a===`)`?n--:a===`,`&&n===0&&(t.push(e.slice(r,i)),r=i+1)}return t.push(e.slice(r)),t.filter(e=>e.trim()!==``)}function Wa(e){let t=[],n=0,r=-1;for(let i=0;i<e.length;i++){let a=e[i];a===`(`||a===`[`?n++:(a===`)`||a===`]`)&&n--,/\s/.test(a)&&n===0?(r!==-1&&t.push(e.slice(r,i)),r=-1):r===-1&&(r=i)}return r!==-1&&t.push(e.slice(r)),t}function Ga(e){let t=e.trim();if(!t||t===`auto`)return{kind:`auto`};let n=!1,r,i;for(let e of t.split(/\s+/))e===`span`?n=!0:/^-?\d+$/.test(e)?r=Number(e):i=e;if(n){let e=r??1;return e<1?{kind:`auto`}:i===void 0?{kind:`span`,value:e}:{kind:`span`,value:e,name:i}}return i===void 0?r!==void 0&&r!==0?{kind:`line`,value:r}:{kind:`auto`}:r===0?{kind:`auto`}:r===void 0?{kind:`name`,name:i}:{kind:`name`,name:i,nth:r}}function Ka(e){return{direction:e.includes(`column`)?`column`:`row`,dense:e.includes(`dense`)}}function qa(e,t){return{top:wa(e.getPropertyValue(`padding-top`),t),right:wa(e.getPropertyValue(`padding-right`),t),bottom:wa(e.getPropertyValue(`padding-bottom`),t),left:wa(e.getPropertyValue(`padding-left`),t)}}function Ja(e){let t=(t,n)=>e.getPropertyValue(n)===`none`?0:Se(parseFloat(e.getPropertyValue(t))||0);return{top:t(`border-top-width`,`border-top-style`),right:t(`border-right-width`,`border-right-style`),bottom:t(`border-bottom-width`,`border-bottom-style`),left:t(`border-left-width`,`border-left-style`)}}function Ya(e,t,n,r){let i=Wi(e,t,n);if(i.display===`none`)return null;let a=b(e.tagName);if(a)return $a(e,i,a);let o=Array.from(e.children),s=o.map(io),c={rootFontSizePx:t,cellMetrics:n,textareaWidths:r};if(!s.includes(`block`)||bo(e.tagName))return Qa(e,i,o,s,c);let l=[];for(let e=0;e<o.length;e++){if(s[e]===`none`)continue;let i=Ya(o[e],t,n,r);i&&l.push(i)}let u={source:e,style:i,children:l,text:``,intrinsicWidth:0,intrinsicHeight:0,localRect:{x:0,y:0,width:0,height:0},unclampedHeight:0,resolvedPadding:bt()};return xo(e,u),u}function Xa(e,t,n,r){let i=Array.from(e.childNodes).filter(e=>!(e instanceof Element&&e.hasAttribute(`data-mw-probe`))),a=i.filter(e=>e instanceof Element),o=a.map(io);return o.includes(`block`)||!vo(e)&&!o.includes(`inline`)?null:Qa(e,Za(e,t),a,o,{rootFontSizePx:t,cellMetrics:n,textareaWidths:r},i)}function Za(e,t){let n=getComputedStyle(e),r={...yt(),...sa(e,n,t)};return na(n).x===`clip`&&(r.overflow={...r.overflow,x:`clip`}),r}function Qa(e,t,n,r,i,a){let{rootFontSizePx:o,cellMetrics:s,textareaWidths:c}=i,l=e.tagName,u=bo(l),d=ao(e,t.tracking,{rootFontSizePx:o,rootLetterSpacingPx:s?.letterSpacing??0,cellMetrics:s,textareaWidths:c,preserve:t.whiteSpace===`pre`,tabSize:t.tabSize},a),f=d.chars.join(``),{advances:p,charInline:m}=po(d);if(d.boxes.length>0){let e=Kn();Je(f,(t,n)=>{p[t]=Math.max(1,fr(d.boxes[n],e))})}let h=ho(f,p,t.tracking);if(u&&h===0){if(l===`INPUT`)h=Number(e.size)||20;else if(l===`TEXTAREA`)h=Number(e.cols)||20;else{let t=e,n=e=>e?.label||e?.textContent||``,r=getComputedStyle(e).getPropertyValue(`field-sizing`)===`content`?[n(t.selectedOptions[0])]:Array.from(t.options,n);h=Math.max(1,...r.map(e=>ze(e.trim())))}}let g=f.length>0?go(f):0,_;if(l===`TEXTAREA`){let n=e,r=n.value??``,i=c?.get(n),a=+!!r.endsWith(`
963
+ `),o=i!==void 0&&i>0?Be(r,i,{advances:Re(r)})+a:r===``?0:r.split(/\r\n?|\n/).length,s=getComputedStyle(e).getPropertyValue(`field-sizing`)===`content`?1:Number(n.rows)||2,l=Math.max(s,o);_=l+Math.max(0,l-1)*t.lineGap}else _=u?Math.max(1,g):g;let v=new Map,y=[];for(let t of d.boxes)t.source.parentElement===e?v.set(t.source,t):y.push(t);let b=[];for(let e=0;e<n.length;e++){let t=n[e],i=v.get(t);if(i)b.push(i);else if(r[e]===`out-of-flow`){let e=Ya(t,o,s,c);e&&b.push(e)}}y.length>0&&(b.push(...y),b.sort((e,t)=>e.source.compareDocumentPosition(t.source)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1));let x={source:e,style:t,children:b,text:f,intrinsicWidth:h,intrinsicHeight:_,localRect:{x:0,y:0,width:h,height:_},unclampedHeight:0,resolvedPadding:bt()};(p.some(e=>e!==1)||d.boxes.length>0)&&(x.advances=p),d.inlineElements.length>0&&(x.inlineElements=d.inlineElements,x.charInline=m);let S=mo(d);return S.length>0&&(x.charSource=S),x}function $a(e,t,n){let r=C(n,e),i=r?.lines??[],a=i.join(`
964
+ `);t.whiteSpace=`pre`,(t.width===void 0||t.width.kind===`auto`)&&(t.width={kind:`max-content`});let o=Re(a,t.tracking),s=ho(a,o,t.tracking),c=i.length,l={source:e,style:t,children:[],text:a,intrinsicWidth:s,intrinsicHeight:c,localRect:{x:0,y:0,width:s,height:c},unclampedHeight:0,resolvedPadding:bt()};o.some(e=>e!==1)&&(l.advances=o);let u=r?.runs??[];if(u.length>0&&a.length>0){let t=[0];for(let e of i)t.push(t[t.length-1]+e.length+1);let n=Array.from({length:a.length},()=>-1);l.inlineElements=u.map(t=>({element:e,tracking:0,padLeft:0,padRight:0,insets:null,color:t.paint.color,backgroundColor:t.paint.backgroundColor,fontWeight:t.paint.fontWeight??``,fontStyle:t.paint.fontStyle??``,textDecorationLine:t.paint.textDecorationLine??``})),u.forEach((e,r)=>{let a=i[e.line];if(a===void 0)return;let o=Math.max(0,e.start),s=Math.min(a.length,e.end);for(let i=o;i<s;i++)n[t[e.line]+i]=r}),l.charInline=n}return l}var eo=new Set(`A.ABBR.B.BDI.BDO.BR.CITE.CODE.DATA.DFN.EM.I.KBD.MARK.Q.S.SAMP.SMALL.SPAN.STRONG.SUB.SUP.TIME.U.VAR.WBR`.split(`.`));function to(e,t){return t||(eo.has(e.tagName)?`inline`:`block`)}function no(e,t){let n=to(e,t);return n===`inline`||n===`contents`}function ro(e,t){let n=to(e,t);return n.startsWith(`inline`)&&n!==`inline`}function io(e){let t=getComputedStyle(e);return t.display===`none`?`none`:t.position===`absolute`||t.position===`fixed`?`out-of-flow`:b(e.tagName)?`block`:no(e,t.display)||ro(e,t.display)?`inline`:`block`}function ao(e,t,n,r){let i={chars:[],advances:[],sourceNode:[],sourceOffset:[],inlineIndex:[],inlineElements:[],boxes:[]};return r?so(r,t,n,i):oo(e,t,n,i),n.preserve?i:uo(i)}function oo(e,t,n,r){bo(e.tagName)||so(Array.from(e.childNodes),t,n,r)}function so(e,t,n,r){let i=()=>{let e=0;for(let t=r.chars.length-1;t>=0&&r.chars[t]!==`
965
+ `;t--)e+=r.advances[t];return e};for(let a of e)if(a.nodeType===Node.TEXT_NODE){if(n.preserve){let e=a.textContent??``,o=0;for(let s of Ie(e)){let e=o;if(o+=s.length,s===`\r
966
+ `||s===`\r`||s===`
967
+ `)fo(r,`
968
+ `,0,a,e+s.length-1);else if(s===` `){let t=(Math.floor(i()/n.tabSize)+1)*n.tabSize;for(let n=i();n<t;n++)fo(r,` `,1,a,e)}else fo(r,s,Le(s,t),a,e)}}else{let e=0,n=!1;for(let i of Ie(a.textContent??``)){let o=i===` `||i===` `||i===`\r`||i===`
969
+ `||i===`\f`||i===`\r
970
+ `;o?n||fo(r,` `,1+t,a,e):fo(r,i,Le(i,t),a,e),n=o,e+=i.length}}}else if(a.nodeType===Node.ELEMENT_NODE){let e=a;if(e.tagName===`BR`){fo(r,`
971
+ `,0,null,-1);continue}let t=getComputedStyle(e);if(t.display===`none`||t.position===`absolute`||t.position===`fixed`)continue;if(ro(e,t.display)){let t=Ya(e,n.rootFontSizePx,n.cellMetrics,n.textareaWidths);t&&(t.inlineBox=!0,fo(r,``,1,null,-1),r.boxes.push(t));continue}if(!no(e,t.display)){_o(e);continue}let i=va(t.letterSpacing,parseFloat(t.fontSize)||n.rootFontSizePx,n.rootLetterSpacingPx),o=co(t.paddingLeft,n.rootFontSizePx),s=co(t.paddingRight,n.rootFontSizePx);r.inlineElements.push({element:e,tracking:i,padLeft:o,padRight:s,insets:t.position===`static`?null:lo(t,n.rootFontSizePx),color:t.color,backgroundColor:Ki(t.backgroundColor)?void 0:t.backgroundColor,fontWeight:t.fontWeight,fontStyle:t.fontStyle,textDecorationLine:t.textDecorationLine});let c=r.inlineElements.length-1;for(let e=0;e<o;e++)r.inlineIndex[r.chars.length]=c,fo(r,`⁠`,1,null,-1);let l=r.chars.length;oo(e,i,n,r);for(let e=l;e<r.chars.length;e++)r.inlineIndex[e]===void 0&&(r.inlineIndex[e]=c);for(let e=0;e<s;e++)r.inlineIndex[r.chars.length]=c,fo(r,`⁠`,1,null,-1)}}function co(e,t){if(!e||e.endsWith(`%`))return 0;let n=parseFloat(e);return Number.isFinite(n)?Math.max(0,Ce(n,t)):0}function lo(e,t){let n=e=>{if(!e||e===`auto`||e.endsWith(`%`))return null;let n=parseFloat(e);return Number.isFinite(n)?Ce(n,t):null};return{top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)}}function uo(e){let t=[],n=[],r=[],i=[],a=[],o=()=>{let e=t.length;for(;e>0&&t[e-1]!==`
972
972
  `;)e--;return e},s=()=>{for(;t.length>o()&&t[t.length-1]===` `;)t.pop(),n.pop(),r.pop(),i.pop(),a.pop()};for(let o=0;o<e.chars.length;o++){let c=e.chars[o];if(c===` `){let e=t.length-1;for(;e>=0&&t[e]===`⁠`;)e--;if(e<0||t[e]===`
973
973
  `||t[e]===` `)continue}else c===`
974
- `&&s();t.push(c),n.push(e.advances[o]),r.push(e.sourceNode[o]??null),i.push(e.sourceOffset[o]??-1),a.push(e.inlineIndex[o]??-1)}return s(),{chars:t,advances:n,sourceNode:r,sourceOffset:i,inlineIndex:a,inlineElements:e.inlineElements,boxes:e.boxes}}function Fa(e,t,n,r,i){e.chars.push(t),e.advances.push(n),e.sourceNode.push(r),e.sourceOffset.push(i)}function Ia(e){let t=[],n=0;for(let r=0;r<e.chars.length;r++){let i=e.chars[r],a=e.sourceNode[r],o=e.sourceOffset[r],s=t[t.length-1];a&&(s&&s.node===a&&s.offset+s.length===o?s.length+=i.length:t.push({index:n,length:i.length,node:a,offset:o})),n+=i.length}return t}function La(e,t,n){let r=0,i=0;for(let a=0;a<=e.length;a++)(a===e.length||e[a]===`
975
- `)&&(r=Math.max(r,Ee(i,a,t,n)),i=a+1);return r}function Ra(e){return we(e).length}function za(e){t(e,`A block-level element nested inside a text run can't be laid out and was skipped. Give it its own place in the layout instead.`)}function Ba(e){return Array.from(e.childNodes).some(e=>e.nodeType===Node.TEXT_NODE&&/[^ \t\r\n\f]/.test(e.textContent??``))}var Va=`Direct text next to block-level children can't be laid out and was hidden. Wrap each text segment in its own element (e.g. a <div>).`;function Ha(e){return e===`INPUT`||e===`SELECT`||e===`TEXTAREA`}function Ua(e,n){Ba(e)&&(n.droppedText=!0,t(e,Va))}var Wa=`
974
+ `&&s();t.push(c),n.push(e.advances[o]),r.push(e.sourceNode[o]??null),i.push(e.sourceOffset[o]??-1),a.push(e.inlineIndex[o]??-1)}return s(),{chars:t,advances:n,sourceNode:r,sourceOffset:i,inlineIndex:a,inlineElements:e.inlineElements,boxes:e.boxes}}function fo(e,t,n,r,i){e.chars.push(t),e.advances.push(n),e.sourceNode.push(r),e.sourceOffset.push(i)}function po(e){let t=[],n=[];for(let r=0;r<e.chars.length;r++){let i=e.inlineIndex[r]??-1;t.push(e.advances[r]),n.push(i);for(let a=1;a<e.chars[r].length;a++)t.push(0),n.push(i)}return{advances:t,charInline:n}}function mo(e){let t=[],n=0;for(let r=0;r<e.chars.length;r++){let i=e.chars[r],a=e.sourceNode[r],o=e.sourceOffset[r],s=t[t.length-1];a&&(s&&s.node===a&&s.offset+s.length===o?s.length+=i.length:t.push({index:n,length:i.length,node:a,offset:o})),n+=i.length}return t}function ho(e,t,n){let r=0,i=0;for(let a=0;a<=e.length;a++)(a===e.length||e[a]===`
975
+ `)&&(r=Math.max(r,Ge(e,i,a,t,n)),i=a+1);return r}function go(e){return He(e).length}function _o(e){m(e,`A block-level element nested inside a text run can't be laid out and was skipped. Give it its own place in the layout instead.`)}function vo(e){return Array.from(e.childNodes).some(e=>e.nodeType===Node.TEXT_NODE&&/[^ \t\r\n\f]/.test(e.textContent??``))}var yo=`Direct text next to block-level children can't be laid out and was hidden. Wrap each text segment in its own element (e.g. a <div>).`;function bo(e){return e===`INPUT`||e===`SELECT`||e===`TEXTAREA`}function xo(e,t){vo(e)&&(t.droppedText=!0,m(e,yo))}var So=`
976
976
  <style>
977
977
  :host { display: block; position: relative; contain: layout style; }
978
978
  #viewport { position: relative; width: 100%; height: 100%; background: inherit; }
@@ -1003,21 +1003,35 @@ input:where([type='button'], [type='reset'], [type='submit']),
1003
1003
  * inherits across the shadow boundary; currentColor stays a keyword
1004
1004
  * at computed time, so every run keeps its own color. */
1005
1005
  #grid { position: absolute; top: 0; left: 0; margin: 0; background: inherit; font: inherit; line-height: inherit; letter-spacing: inherit; white-space: pre; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-text-fill-color: currentColor; }
1006
+ /* A background reaches the row's edges: the host's measured half-gap
1007
+ * between the line box and the font's content area, which an inline
1008
+ * span paints without moving the line (specs/cell-model.md). */
1009
+ #grid span { padding-block: var(--mw-bgpad, 0px); }
1010
+ /* A shade's lattice runs on from row to row (specs/wide-characters.md):
1011
+ * the box holds its glyph down by the row's phase, with copies a
1012
+ * period above and below. */
1013
+ #grid span[data-shade] { position: relative; box-sizing: border-box; }
1014
+ #grid span[data-shade]::before, #grid span[data-shade]::after { content: attr(data-shade); position: absolute; inset-inline: 0; }
1015
+ #grid span[data-shade]::before { top: calc(var(--mw-phase) - var(--mw-period)); }
1016
+ #grid span[data-shade]::after { top: calc(var(--mw-phase) + var(--mw-period)); }
1006
1017
  :host([select="grid"]) #grid { pointer-events: auto; user-select: text; -webkit-user-select: text; }
1007
1018
  :host([select="grid"]) slot { pointer-events: none; user-select: none; -webkit-user-select: none; }
1008
1019
  /* A live semantic selection (specs/semantic-selection.md) lifts the
1009
1020
  * lock so the element selection copies; pointer events stay off. */
1010
1021
  :host([select="grid"][data-mw-semantic-selection]) slot { user-select: text; -webkit-user-select: text; }
1011
- /* Selection invert mirror of the canonical rule in styles.css
1012
- * (which explains the field choices); update together. */
1013
- ::selection { color: var(--mw-bg, canvas); text-shadow: 0 0 0 var(--mw-bg, canvas); background: var(--mw-fg, canvastext); }
1022
+ /* The grid's own selection (a grid-mode drag) keeps the browser's
1023
+ * invert mirror of the field choices in styles.css. Slotted text
1024
+ * takes the slot's rule in Chromium and WebKit: invisible, the engine
1025
+ * paints that selection on the grid (specs/wide-characters.md). */
1026
+ #grid::selection, #grid *::selection { color: var(--mw-bg, canvas); text-shadow: 0 0 0 var(--mw-bg, canvas); background: var(--mw-fg, canvastext); }
1027
+ slot::selection { color: transparent; text-shadow: none; background: transparent; }
1014
1028
  </style>
1015
1029
  <div id="viewport">
1016
1030
  <pre id="grid" aria-hidden="true"></pre>
1017
1031
  <slot></slot>
1018
1032
  </div>
1019
- `,Ga=`grid`,Ka=`tab`,qa=`data-mw-semantic-selection`,Ja=`a, button, input, select, textarea, label, [tabindex], [role='button']`,Ya=[`pointerover`,`pointerleave`,`pointerdown`,`pointerup`,`pointercancel`,`keydown`,`keyup`,`focusin`,`focusout`,`input`,`change`],Xa=/^(color|opacity|border-(top|right|bottom|left)-color|border-color)$/,Za=3e4,Qa=200,$a=3,eo=4,to=8,no=100,ro=160,io=typeof HTMLElement>`u`?class{}:HTMLElement,ao=class e extends io{static observedAttributes=[`select`,`focus`];static#e=new Set;static#t=null;static#n=()=>{for(let t of e.#e)t.#Fe()};static#r(t){t instanceof HTMLLinkElement&&t.rel===`stylesheet`&&!t.sheet&&t.addEventListener(`load`,e.#n,{once:!0})}static#i(t){if(e.#e.add(t),e.#t)return;for(let t of document.querySelectorAll(`link[rel=stylesheet]`))e.#r(t);let n=new MutationObserver(t=>{for(let n of t)for(let t of n.addedNodes)e.#r(t);e.#n()});n.observe(document.head,{childList:!0,subtree:!0,characterData:!0}),e.#t=n}static#a(t){e.#e.delete(t),e.#e.size===0&&(e.#t?.disconnect(),e.#t=null)}#o;#s;#c;#l=null;#u=null;#d=!1;#f=null;#p=null;#m=null;#h=null;#g=!1;#_=[];#v=new Map;#y=new WeakMap;#b=null;#x=null;#S=``;#C=null;#w=null;#T=!1;#E=[];#D(){this.#u?.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`class`,`style`,`colspan`,`rowspan`,`span`,...c()]})}constructor(){super(),this.#o=this.attachShadow({mode:`open`}),this.#o.innerHTML=Wa,this.#s=this.#o.getElementById(`grid`),this.#c=document.createElement(`span`),this.#c.setAttribute(`aria-hidden`,`true`),this.#c.setAttribute(`data-mw-probe`,``),this.#c.style.cssText=`position:absolute!important;top:0!important;left:0!important;visibility:hidden!important;pointer-events:none!important;user-select:none!important;white-space:pre!important;overflow-wrap:normal!important;padding:0!important;margin:0!important;border:0!important;`,this.#c.textContent=`M`.repeat(100)}connectedCallback(){this.hasAttribute(`select`)||this.setAttribute(`select`,Ga),this.hasAttribute(`focus`)||this.setAttribute(`focus`,Ka),this.#c.parentNode!==this&&this.appendChild(this.#c),this.#l=new ResizeObserver(()=>this.#Fe()),this.#l.observe(this),this.#Y(),this.#l.observe(this.#c),window.addEventListener(`resize`,this.#je),this.#u=new MutationObserver(()=>this.#Fe()),this.#D(),this.#m=l(()=>{this.#D(),this.#Fe()}),this.#h=re(()=>this.#Fe()),document.fonts?.ready.then(this.#Me).catch(e=>{console.warn(`[monowind] document.fonts.ready failed:`,e)}),document.fonts?.addEventListener(`loadingdone`,this.#Me);for(let e of Ya)this.addEventListener(e,this.#Ae);this.addEventListener(`transitionrun`,this.#De),this.addEventListener(`transitionend`,this.#Oe),this.addEventListener(`transitioncancel`,this.#Oe),this.addEventListener(`pointermove`,this.#Q),this.addEventListener(`pointerleave`,this.#ve),this.addEventListener(`pointerdown`,this.#ye),this.addEventListener(`scroll`,this.#W,{capture:!0,passive:!0}),this.addEventListener(`scrollend`,this.#G,{capture:!0}),this.addEventListener(`wheel`,this.#q,{passive:!1}),this.addEventListener(`copy`,this.#$),this.addEventListener(`mousedown`,this.#ee),this.addEventListener(`keydown`,this.#te),document.addEventListener(`selectionchange`,this.#_e),window.addEventListener(`pointerup`,this.#be),window.addEventListener(`pointercancel`,this.#be),document.addEventListener(`scroll`,this.#xe,{capture:!0,passive:!0}),e.#i(this),this.#Fe()}disconnectedCallback(){window.removeEventListener(`resize`,this.#je),this.#l?.disconnect(),this.#u?.disconnect(),this.#l=null,this.#u=null,this.#m?.(),this.#m=null,this.#h?.(),this.#h=null,document.fonts?.removeEventListener(`loadingdone`,this.#Me);for(let e of Ya)this.removeEventListener(e,this.#Ae);this.removeEventListener(`transitionrun`,this.#De),this.removeEventListener(`transitionend`,this.#Oe),this.removeEventListener(`transitioncancel`,this.#Oe),this.#we=0,this.removeEventListener(`pointermove`,this.#Q),this.removeEventListener(`pointerleave`,this.#ve),this.removeEventListener(`pointerdown`,this.#ye),this.removeEventListener(`scroll`,this.#W,{capture:!0}),this.removeEventListener(`scrollend`,this.#G,{capture:!0}),this.removeEventListener(`wheel`,this.#q),this.removeEventListener(`copy`,this.#$),this.removeEventListener(`keydown`,this.#te),this.removeEventListener(`mousedown`,this.#ee),document.removeEventListener(`selectionchange`,this.#_e);for(let e of this.#v.values())clearTimeout(e);this.#v.clear(),this.#x=null,this.#b=null,window.removeEventListener(`pointerup`,this.#be),window.removeEventListener(`pointercancel`,this.#be),document.removeEventListener(`scroll`,this.#xe,{capture:!0}),this.#N=null,this.#A=null,this.#j=!1,this.#M=!1,this.#Se(),e.#a(this)}#O=new Set;#k=new Set;#A=null;#j=!1;#M=!1;#N=null;#P=NaN;#F=NaN;#I=null;static#L=typeof matchMedia>`u`?null:matchMedia(`(hover: hover)`);#R(){if(this.#g||this.#d)return;this.#g=!0;let e=!1,t=()=>{if(e)return;e=!0,this.#g=!1;let t=this.#f;this.isConnected&&this.#p&&t&&(this.#z(t),this.#M=!$r(this.#p,this.#s,this.#ie()),this.#Se())};requestAnimationFrame(t),setTimeout(t,50)}#z(e,t){for(let n of this.#_){let r=n.source,{maxX:i,maxY:a}=n.scrollRange,o=t?.get(r);n.scroll=o?{x:o.pinX?i:Math.min(o.x,i),y:o.pinY?a:Math.min(o.y,a)}:this.#B(n,e)}}#B(e,t){let n=e.source,{maxX:r,maxY:i}=e.scrollRange,a=e.scroll??{x:0,y:0};return{x:so(n,`x`,t.width,r,a.x),y:so(n,`y`,t.height,i,a.y)}}#V(){let e=new Map,t=this.#f;if(!t)return e;for(let n of this.#_){let r=n.source,{maxX:i,maxY:a}=n.scrollRange,{x:o,y:s}=this.#B(n,t);e.set(r,{top:r.scrollTop,left:r.scrollLeft,x:o,y:s,pinX:i>0&&o>=i,pinY:a>0&&s>=a})}return e}#H(e){for(let t of this.#_){let n=t.source,r=e.get(n);r&&(n.scrollTop,n.scrollLeft,n.scrollTop=r.pinY?n.scrollHeight:r.top,n.scrollLeft=r.pinX?n.scrollWidth:r.left)}}#U(e,t){clearTimeout(this.#v.get(e)),this.#v.set(e,setTimeout(()=>this.#K(e),t))}#W=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(this.#R(),!(Date.now()-(this.#y.get(t)??0)<Qa)&&(clearTimeout(this.#v.get(t)),`onscrollend`in window||this.#U(t,ro)))};#G=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(Date.now()-(this.#y.get(t)??0)<Qa||this.#U(t,no))};#K(e){if(this.#x?.el===e)return;this.#R();let t=this.#f,n=this.#_.find(t=>t.source===e);if(!t||!n)return;let r=n.scrollRange,i=n.scroll??this.#B(n,t),a=i.y===r.maxY?e.scrollHeight-e.clientHeight:i.y*t.height,o=i.x===r.maxX?e.scrollWidth-e.clientWidth:i.x*t.width;(Math.abs(e.scrollTop-a)>.5||Math.abs(e.scrollLeft-o)>.5)&&e.scrollTo({top:a,left:o,behavior:`instant`})}#q=e=>{if(this.getAttribute(`select`)!==`grid`)return;let t=this.#p,n=this.#f;if(!t||!n||this.#_.length===0)return;let r=e,i=r.deltaMode===1?n.height:r.deltaMode===2?this.clientHeight:1,a=r.deltaX*i,o=r.deltaY*i;if(!r.cancelable&&this.#J(a,o))return;let{col:s,row:c}=this.#X(r.clientX,r.clientY,n),l=Date.now(),u=Math.abs(a)+Math.abs(o);if(u===0){this.#b=null,r.preventDefault();return}let d=e=>{let t=e.scrollRange,n=e.source;return o!==0&&t.maxY>0&&(o>0&&n.scrollTop<n.scrollHeight-n.clientHeight-.5||o<0&&n.scrollTop>.5)||a!==0&&t.maxX>0&&(a>0&&n.scrollLeft<n.scrollWidth-n.clientWidth-.5||a<0&&n.scrollLeft>.5)},f=this.#b,p=Math.abs(a)>=Math.abs(o)?`x`:`y`,m=f!==null&&u>f.mag*1.25+1,h=f!==null&&(Math.abs(r.clientX-f.x)>$a||Math.abs(r.clientY-f.y)>$a),g=f!==null&&f.decayed>=to,_=f!==null&&l-f.at<Qa&&p===f.axis&&(h?u<=f.mag:!(g&&m)),v=null;if(_){if(f.decayed=u<=f.mag&&u>=f.mag*.5?f.decayed+1:g?f.decayed:0,f.mag=u,f.at=l,!f.el)return;v=this.#_.find(e=>e.source===f.el)??null}if(!v){let e=gr(t,s,c);for(let t=e.length-1;t>=0;t--){let n=e[t].node;if(!n.scrollRange||_r(n.source))continue;if(d(n)){v=n;break}let r=n.style.overscroll;if(o!==0&&!r.y||a!==0&&!r.x){v=n;break}}if(!v&&u<eo){r.preventDefault();return}this.#b={el:v?v.source:null,x:r.clientX,y:r.clientY,axis:p,at:l,mag:u,decayed:0}}if(!v||(r.preventDefault(),!d(v)))return;let y=v.source,b=v.scrollRange,x={behavior:`instant`};o!==0&&b.maxY>0&&(x.top=o),a!==0&&b.maxX>0&&(x.left=a),y.scrollBy(x),this.#y.set(y,l),this.#U(y,Qa)};#J(e,t){return this.#E.some(n=>t>0&&n.scrollTop<n.scrollHeight-n.clientHeight-.5||t<0&&n.scrollTop>.5||e>0&&n.scrollLeft<n.scrollWidth-n.clientWidth-.5||e<0&&n.scrollLeft>.5)}#Y(){let e=this.parentElement;if(e&&this.#l){this.#l.observe(e);for(let t of e.children)t!==this&&this.#l.observe(t)}}#X(e,t,n){if(!this.#I){let e=this.#s.getBoundingClientRect();this.#I={left:e.left,top:e.top}}return{col:Math.floor((e-this.#I.left)/n.width),row:Math.floor((t-this.#I.top)/n.height)}}#Z(e,t){let n=this.#p,r=this.#f;if(!n||!r||this.#_.length===0)return null;let{col:i,row:a}=this.#X(e,t,r),o=gr(n,i,a);for(let n=o.length-1;n>=0;n--){let{node:s,x:c,y:l}=o[n],u=s.scrollRange;if(!u||_r(s.source))continue;let d=s.source,{y:f,x:p}=pr(s,c,l);if(f&&u.maxY>0&&i>=f.col&&i<f.col+f.thick&&a>=f.row&&a<f.row+f.len){let e=mr(f.len,u.sizeY,u.maxY,0).len,n=Math.max(1,(f.len-e)*r.height);return{el:d,axis:`y`,startClient:t,startPx:d.scrollTop,factor:u.maxY*r.height/n}}if(p&&u.maxX>0&&a>=p.row&&a<p.row+p.thick&&i>=p.col&&i<p.col+p.len){let t=mr(p.len,u.sizeX,u.maxX,0).len,n=Math.max(1,(p.len-t)*r.width);return{el:d,axis:`x`,startClient:e,startPx:d.scrollLeft,factor:u.maxX*r.width/n}}}return null}#Q=e=>{if(lo(e))return;let{clientX:t,clientY:n}=e,r=this.#x;if(r){let e=(r.axis===`y`?n:t)-r.startClient,i=r.startPx+e*r.factor;r.axis===`y`?r.el.scrollTop=i:r.el.scrollLeft=i;return}let i=!!(e.buttons&1);i&&this.#C&&this.#ue(this.#C,t,n),i&&this.#w&&this.#le(this.#w,t,n),i&&this.#T&&!this.hasAttribute(`data-mw-dragging`)&&this.setAttribute(`data-mw-dragging`,``),this.#N={x:t,y:n};let a=this.#f;if(a){let{col:e,row:r}=this.#X(t,n,a);if(e===this.#P&&r===this.#F)return}this.#Se()};#$=e=>{let{clipboardData:t}=e,n=this.#p,r=this.#ge();t&&n&&r&&(t.setData(`text/plain`,Fr(n,r)),e.preventDefault())};#ee=e=>{let t=e;if(t.button!==0||this.getAttribute(`select`)!==`grid`)return;let n=t.composedPath().includes(this.#s);if(!n&&!this.#ae(t.target))return;let r=this.#S===`mouse`||this.#S===`pen`;if(t.detail<=1){if(t.detail!==1)return;this.removeAttribute(qa);let e=this.#re();r&&(!n||e)&&(e?.blur(),this.#ce(t));return}if(!r)return;let i=t.detail===2?`word`:`paragraph`,a=document.getSelection(),o=this.#p,s=this.#f;if(!a||!o||!s)return;let{col:c,row:l}=this.#X(t.clientX,t.clientY,s),u=this.#fe(c,l,i);if(!u){this.removeAttribute(qa),this.#C=null;return}t.preventDefault(),this.#re()?.blur(),this.#he(u);let d=t.shiftKey&&a.anchorNode&&this.#ge()?fo({node:a.anchorNode,offset:a.anchorOffset}):u;this.#de(a,d,u),this.#C={unit:i,anchor:d}};#te=e=>{let t=e;if(this.getAttribute(`focus`)!==`arrows`)return;let n=br(t.key);if(!n||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return;let r=this.#p,i=t.target;if(!r||!(i instanceof Element)||i===this||kr(i,t.key,this.#Ne()))return;let a=wr(r),o=Tr(a,i);if(!o)return;let s=xr(n,o,a.filter(e=>e.element!==i));s&&(t.preventDefault(),s.focus({preventScroll:!0}),s.scrollIntoView({block:`nearest`,inline:`nearest`}))};#ne(e,t,r){let i=[];for(let n of Array.from(this.children)){if(n===this.#c)continue;let a=ya(n,e,t,r);a&&i.push(a)}return Ba(this)?(this.hasAttribute(`data-mw-dropped-text`)||console.warn(`[monowind] ${Va}`,n(this)),this.setAttribute(`data-mw-dropped-text`,``)):this.removeAttribute(`data-mw-dropped-text`),{source:this,style:tt(),children:i,text:``,intrinsicWidth:0,intrinsicHeight:0,localRect:{x:0,y:0,width:0,height:0},unclampedHeight:0,resolvedPadding:nt()}}#re(){let e=document.activeElement;return e instanceof HTMLElement&&e!==document.body&&this.contains(e)?e:null}#ie(){return this.#j&&!this.#w}#ae(e){return e instanceof Element&&e!==this&&this.contains(e)&&!e.matches(Ja)}#oe(e,t){let n=this.#s.textContent.split(`
1020
- `),r=n[0]?.length??0;return Math.max(0,Math.min(t,n.length-1))*(r+1)+Math.max(0,Math.min(e,r))}#se(e,t){let n=this.#f;if(!n)return null;let{col:r,row:i}=this.#X(e,t,n),a=this.#oe(r,i),o=ii(this.#s,a);return o&&{offset:a,at:o}}#ce(e){let t=this.#se(e.clientX,e.clientY);t&&(e.preventDefault(),document.getSelection()?.setBaseAndExtent(...t.at,...t.at),this.#w={anchor:t.offset})}#le(e,t,n){let r=ii(this.#s,e.anchor),i=this.#se(t,n);r&&i&&document.getSelection()?.setBaseAndExtent(...r,...i.at)}#ue(e,t,n){let r=this.#f,i=document.getSelection();if(!r||!i)return;let{col:a,row:o}=this.#X(t,n,r),s=this.#fe(a,o,e.unit);s&&this.#de(i,e.anchor,s)}#de(e,t,n){if(mo(t,n)){po(e,n.start,n.end);return}let r=this.#me(t),i=this.#me(n);Ar(r.start.node,r.start.offset,i.start.node,i.start.offset)<=0?po(e,r.start,i.end):po(e,r.end,i.start)}#fe(e,t,n){let r=this.#p;if(!r)return null;let i=gr(r,e,t);for(let r=i.length-1;r>=0;r--){let{node:a,x:o,y:s}=i[r];if(Hr(a))return _r(a.source)?null:this.#pe(a,o,s,e,t,n)}return Hr(r)?this.#pe(r,0,0,e,t,n):null}#pe(e,t,n,r,i,a){let o=dr(e,t,n,r,i);if(o===null)return null;let c=s(e.source.tagName)?.selectionTarget?.(e.source);if(a===`word`&&!c){let t=Kr(e,o),n=t&&Mr(e,t.start),r=t&&Mr(e,t.end);if(n&&r)return{start:n,end:r}}if(e===this.#p)return Vr(e);let l=c??e.source;return{start:{node:l,offset:0},end:{node:l,offset:l.childNodes.length}}}#me(e){let t=e.start.node.getRootNode();if(!(t instanceof ShadowRoot)||t===this.#s.getRootNode())return e;let n=t.host,r=n.parentNode;if(!r)return e;let i=Array.prototype.indexOf.call(r.childNodes,n),a=n.previousSibling,o=n.nextSibling;return{start:uo(a)?{node:a,offset:a instanceof Text?a.length:a.childNodes.length}:{node:r,offset:i},end:uo(o)?{node:o,offset:0}:{node:r,offset:i+1}}}#he(e){this.setAttribute(qa,``);let t=e.start.node,n=t instanceof Element?t:t.parentElement;n&&getComputedStyle(n).userSelect}#ge(){let e=Nr(this.#s.getRootNode());return!e||Pr(this,this.#s,e)!==`light`||e.startContainer===e.endContainer&&e.startOffset===e.endOffset?null:e}#_e=()=>{this.hasAttribute(qa)&&(this.#ge()||this.removeAttribute(qa))};#ve=()=>{this.#N=null,this.#Se()};#ye=e=>{let t=e;if(!t.isPrimary||t.button!==0||(this.#S=t.pointerType,lo(t)))return;let n=this.#Z(t.clientX,t.clientY);if(n){this.#x=n,t.preventDefault(),t.isTrusted&&this.setPointerCapture(t.pointerId);return}this.#N={x:t.clientX,y:t.clientY},this.#j=!0,this.#T=t.composedPath().includes(this.#s),this.#Se(!0)};#be=e=>{if(e.isPrimary){if(this.#C=null,this.#w=null,this.#T=!1,this.removeAttribute(`data-mw-dragging`),this.#x){this.#K(this.#x.el),this.#x=null;return}(this.#j||this.#A)&&(this.#j=!1,this.#A=null,this.#Se(),this.#M&&this.#Fe())}};#xe=e=>{if(!this.#N)return;let t=e.target;t instanceof HTMLElement&&t.hasAttribute(`data-mw-scroll`)||(this.#I=null,this.#Se())};#Se(t=!1){let n=this.#p,r=this.#f,i=[];if(this.#N&&n&&r&&this.isConnected&&this.getAttribute(`select`)===`grid`&&(this.#j||e.#L?.matches)){let{col:e,row:t}=this.#X(this.#N.x,this.#N.y,r);this.#P=e,this.#F=t,i=vr(n,e,t)}else this.#P=NaN,this.#F=NaN;let a=i.at(-1)??null;t&&(this.#A=a);let o=e.#L?.matches?i:[],s=this.#A?i.indexOf(this.#A):-1,c=s>=0?i.slice(0,s+1):[],l=this.#Ce(`data-mw-hover`,this.#O,o);l=this.#Ce(`data-mw-active`,this.#k,c)||l;let u=a?getComputedStyle(a).cursor:``;this.#s.style.cursor=u===`auto`?``:u,l&&this.isConnected&&this.#Fe()}#Ce(e,t,n){let r=!1,i=new Set(n);for(let n of t)i.has(n)||(n.removeAttribute(e),r=!0);for(let n of i)t.has(n)||(n.setAttribute(e,``),r=!0);t.clear();for(let e of i)t.add(e);return r}#we=0;#Te=!1;#Ee=0;#De=e=>{Xa.test(e.propertyName)&&(this.#we++,this.#Ee=performance.now(),this.#ke())};#Oe=e=>{Xa.test(e.propertyName)&&(this.#we=Math.max(0,this.#we-1))};#ke(){if(this.#Te)return;this.#Te=!0;let e=()=>{if(!this.isConnected||this.#we===0&&!_()||performance.now()-this.#Ee>Za){this.#Te=!1,this.#we=0,this.#Fe();return}this.#Pe(),requestAnimationFrame(e)};requestAnimationFrame(e)}#Ae=e=>{if(!lo(e)){if((e.type===`focusin`||e.type===`focusout`)&&e.target instanceof HTMLSelectElement){this.#Pe();return}this.#Fe()}};attributeChangedCallback(e,t,r){if(e===`focus`){r!==`tab`&&r!==`arrows`&&(r!==null&&console.warn(`[monowind] Ignoring unrecognized focus="${r}". Expected "tab" (default) or "arrows".`,n(this)),this.setAttribute(`focus`,Ka));return}if(e===`select`&&r!==`text`&&r!==`grid`){r!==null&&console.warn(`[monowind] Ignoring unrecognized select="${r}". Expected "grid" (default) or "text".`,n(this)),this.setAttribute(`select`,Ga);return}e===`select`&&this.#Se(),this.#Fe()}toPlainText(){return this.#d&&this.#Ie(),this.#p?er(this.#p):``}#je=()=>{this.#Fe()};#Me=()=>{requestAnimationFrame(()=>this.#Fe())};#Ne(){let e=document.activeElement;if(!(e instanceof HTMLSelectElement)||!this.contains(e))return!1;try{return e.matches(`:open`)}catch{return!1}}#Pe(){try{this.#Ie()}catch(e){console.error(`[monowind] layout failed:`,e)}}#Fe(){this.#d||(this.#d=!0,requestAnimationFrame(()=>{if(this.#d=!1,this.#Ne()){this.#Fe();return}this.#Pe()}))}#Ie(){if(!this.isConnected)return;let e=this.#V(),t=new Map,n=getComputedStyle(this).getPropertyValue(`--mw-cw`).trim(),r=parseFloat(n);if(Number.isFinite(r)&&r>0)for(let e of this.querySelectorAll(`textarea`)){let n=getComputedStyle(e),i=e.clientWidth-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0);t.set(e,Math.max(0,Math.round(i/r)))}this.setAttribute(`measuring`,``);try{this.#c.parentNode!==this&&this.appendChild(this.#c);let n=I(this,this.#c),r=this.#f;(r===null||r.width!==n.width||r.height!==n.height||r.letterSpacing!==n.letterSpacing||r.inkOverhang!==n.inkOverhang)&&(this.style.setProperty(`--mw-cw`,`${n.width}px`),this.style.setProperty(`--mw-ch`,`${n.height}px`),this.style.setProperty(`--mw-rls`,`${n.letterSpacing}px`),this.style.setProperty(`--mw-ink`,`${n.inkOverhang??0}px`)),this.#f=n;let i=getComputedStyle(this),a=(parseFloat(i.paddingLeft)||0)+(parseFloat(i.paddingRight)||0),o=Math.max(0,Math.floor((this.clientWidth-a)/n.width));if(o===0)return;let s=L(),c=ba(this,s,n,t)??this.#ne(s,n,t),{height:l}=Tn(c,o);si(c),this.#_=ho(c),this.#z(n,e),this.#M=!$r(c,this.#s,this.#ie()),this.#p=c;let u=`${c.localRect.width*n.width}px`,d=`${c.localRect.height*n.height}px`;this.#s.style.width!==u&&(this.#s.style.width=u),this.#s.style.height!==d&&(this.#s.style.height=d);let f=i.boxSizing===`border-box`?(parseFloat(i.paddingTop)||0)+(parseFloat(i.paddingBottom)||0)+(parseFloat(i.borderTopWidth)||0)+(parseFloat(i.borderBottomWidth)||0):0,p=`${l*n.height+f}px`;this.style.height!==p&&(this.style.height=p);let m=i.boxSizing===`border-box`?a+(parseFloat(i.borderLeftWidth)||0)+(parseFloat(i.borderRightWidth)||0):0,h=`${o*n.width+m}px`;this.style.getPropertyValue(`--mw-host-w`)!==h&&this.style.setProperty(`--mw-host-w`,h),this.hasAttribute(`data-mw-ready`)||this.setAttribute(`data-mw-ready`,``)}finally{this.setAttribute(`settling`,``),this.removeAttribute(`measuring`),getComputedStyle(this).transitionProperty,this.removeAttribute(`settling`),this.#H(e),this.#u?.takeRecords(),g(this)&&(_()?(this.#Ee=performance.now(),this.#ke()):this.#Fe()),this.#Y(),this.#E=[];let t=document.scrollingElement??document.documentElement;for(let e=this.parentElement;e;e=e.parentElement)(e===t||/auto|scroll/.test(getComputedStyle(e).overflow))&&this.#E.push(e);this.#I=null,this.#N&&this.#Se()}}};function oo(){typeof customElements>`u`||customElements.get(`mono-wind`)||customElements.define(`mono-wind`,ao)}function so(e,t,n,r,i){return co(t===`y`?e.scrollTop:e.scrollLeft,t===`y`?e.scrollHeight-e.clientHeight:e.scrollWidth-e.clientWidth,n,r,i)}function co(e,t,n,r,i){if(r>0&&e>0&&e>=t-1)return r;let a=e/n-i,o=Math.abs(a)<=.5?i:i+Math.sign(a)*Math.round(Math.abs(a));return Math.min(Math.max(0,o),r)}function lo(e){return e instanceof PointerEvent&&e.pointerType===`touch`&&e.type!==`pointerup`}function uo(e){return e!==null&&!(e instanceof Element&&e.shadowRoot)}function fo(e){return{start:e,end:e}}function po(e,t,n){e.setBaseAndExtent(t.node,t.offset,n.node,n.offset)}function mo(e,t){return e.start.node===t.start.node&&e.start.offset===t.start.offset&&e.end.node===t.end.node&&e.end.offset===t.end.offset}function ho(e){let t=[],n=e=>{e.scrollRange&&t.push(e);for(let t of e.children)n(t)};return n(e),t}var go=`/* Gap decorations (specs/gap-decorations.md): css-gaps-1 rules for flex
1033
+ `,Co=`grid`,wo=`tab`,To=`data-mw-semantic-selection`,Eo=`a, button, input, select, textarea, label, [tabindex], [role='button']`,Do=[`pointerover`,`pointerleave`,`pointerdown`,`pointerup`,`pointercancel`,`keydown`,`keyup`,`focusin`,`focusout`,`input`,`change`],Oo=/^(color|opacity|border-(top|right|bottom|left)-color|border-color)$/,ko=3e4,Ao=200,jo=3,Mo=4,No=8,Po=100,Fo=160,Io=500,Lo=typeof HTMLElement>`u`?class{}:HTMLElement,Ro=class e extends Lo{static observedAttributes=[`select`,`focus`];static#e=new Set;static#t=null;static#n=()=>{for(let t of e.#e)t.#Ue()};static#r(t){t instanceof HTMLLinkElement&&t.rel===`stylesheet`&&!t.sheet&&t.addEventListener(`load`,e.#n,{once:!0})}static#i(t){if(e.#e.add(t),e.#t)return;for(let t of document.querySelectorAll(`link[rel=stylesheet]`))e.#r(t);let n=new MutationObserver(t=>{for(let n of t)for(let t of n.addedNodes)e.#r(t);e.#n()});n.observe(document.head,{childList:!0,subtree:!0,characterData:!0}),e.#t=n}static#a(t){e.#e.delete(t),e.#e.size===0&&(e.#t?.disconnect(),e.#t=null)}#o;#s;#c;#l=null;#u=null;#d=!1;#f=null;#p=null;#m=null;#h=null;#g=!1;#_=[];#v=new Map;#y=new WeakMap;#b=null;#x=null;#S=``;#C=null;#w=!1;#T=0;#E=new wi((e,t,n)=>this.#j(e,t,n));#D=null;#O=!1;#k=[];#A(){this.#u?.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`class`,`style`,`colspan`,`rowspan`,`span`,...x()]})}constructor(){super(),this.#o=this.attachShadow({mode:`open`}),this.#o.innerHTML=So,this.#s=this.#o.getElementById(`grid`),this.#c=document.createElement(`span`),this.#c.setAttribute(`aria-hidden`,`true`),this.#c.setAttribute(`data-mw-probe`,``),this.#c.style.cssText=`position:absolute!important;top:0!important;left:0!important;visibility:hidden!important;pointer-events:none!important;user-select:none!important;white-space:pre!important;overflow-wrap:normal!important;padding:0!important;margin:0!important;border:0!important;`,this.#c.textContent=`M`.repeat(100)}#j(e,t,n){let r=document.createElement(`span`);r.style.cssText=`display:inline-block;vertical-align:top;overflow:hidden;padding:0;height:${this.#f?.height??0}px;line-height:${n}px;font-size:${t*100}%`,r.textContent=e;let i=document.createElement(`span`);i.style.cssText=`display:inline-block;width:0;height:0;padding:0`,r.appendChild(i),this.#s.appendChild(r);let a=i.getBoundingClientRect().top-r.getBoundingClientRect().top;return r.remove(),a}connectedCallback(){this.hasAttribute(`select`)||this.setAttribute(`select`,Co),this.hasAttribute(`focus`)||this.setAttribute(`focus`,wo),this.#c.parentNode!==this&&this.appendChild(this.#c),this.#l=new ResizeObserver(()=>this.#Ue()),this.#l.observe(this),this.#$(),this.#l.observe(this.#c),window.addEventListener(`resize`,this.#ze),this.#u=new MutationObserver(()=>this.#Ue()),this.#A(),this.#m=S(()=>{this.#A(),this.#Ue()}),this.#h=i(()=>this.#Ue()),document.fonts?.ready.then(this.#Be).catch(e=>{console.warn(`[monowind] document.fonts.ready failed:`,e)}),document.fonts?.addEventListener(`loadingdone`,this.#Be);for(let e of Do)this.addEventListener(e,this.#Re);this.addEventListener(`transitionrun`,this.#Fe),this.addEventListener(`transitionend`,this.#Ie),this.addEventListener(`transitioncancel`,this.#Ie),this.addEventListener(`pointermove`,this.#ne),this.addEventListener(`pointerleave`,this.#Ee),this.addEventListener(`pointerdown`,this.#De),this.addEventListener(`scroll`,this.#J,{capture:!0,passive:!0}),this.addEventListener(`scrollend`,this.#Y,{capture:!0}),this.addEventListener(`wheel`,this.#Z,{passive:!1}),this.addEventListener(`copy`,this.#re),this.addEventListener(`mousedown`,this.#ie),this.addEventListener(`keydown`,this.#ae),document.addEventListener(`selectionchange`,this.#we),window.addEventListener(`pointerup`,this.#Oe),window.addEventListener(`pointercancel`,this.#Oe),document.addEventListener(`scroll`,this.#ke,{capture:!0,passive:!0}),e.#i(this),this.#Ue()}disconnectedCallback(){window.removeEventListener(`resize`,this.#ze),this.#l?.disconnect(),this.#u?.disconnect(),this.#l=null,this.#u=null,this.#m?.(),this.#m=null,this.#h?.(),this.#h=null,document.fonts?.removeEventListener(`loadingdone`,this.#Be);for(let e of Do)this.removeEventListener(e,this.#Re);this.removeEventListener(`transitionrun`,this.#Fe),this.removeEventListener(`transitionend`,this.#Ie),this.removeEventListener(`transitioncancel`,this.#Ie),this.#Me=0,this.removeEventListener(`pointermove`,this.#ne),this.removeEventListener(`pointerleave`,this.#Ee),this.removeEventListener(`pointerdown`,this.#De),this.removeEventListener(`scroll`,this.#J,{capture:!0}),this.removeEventListener(`scrollend`,this.#Y,{capture:!0}),this.removeEventListener(`wheel`,this.#Z),this.removeEventListener(`copy`,this.#re),this.removeEventListener(`keydown`,this.#ae),this.removeEventListener(`mousedown`,this.#ie),document.removeEventListener(`selectionchange`,this.#we);for(let e of this.#v.values())clearTimeout(e);this.#v.clear(),this.#x=null,this.#b=null,window.removeEventListener(`pointerup`,this.#Oe),window.removeEventListener(`pointercancel`,this.#Oe),document.removeEventListener(`scroll`,this.#ke,{capture:!0}),this.#L=null,this.#P=null,this.#F=!1,this.#I=!1,this.#Ae(),e.#a(this)}#M=new Set;#N=new Set;#P=null;#F=!1;#I=!1;#L=null;#R=NaN;#z=NaN;#B=null;static#V=typeof matchMedia>`u`?null:matchMedia(`(hover: hover)`);#H(){if(this.#g||this.#d)return;this.#g=!0;let e=!1,t=()=>{if(e)return;e=!0,this.#g=!1;let t=this.#f;this.isConnected&&this.#p&&t&&(this.#U(t),this.#I=!this.#Te(this.#p),this.#Ae())};requestAnimationFrame(t),setTimeout(t,50)}#U(e,t){for(let n of this.#_){let r=n.source,{maxX:i,maxY:a}=n.scrollRange,o=t?.get(r);n.scroll=o?{x:o.pinX?i:Math.min(o.x,i),y:o.pinY?a:Math.min(o.y,a)}:this.#W(n,e)}}#W(e,t){let n=e.source,{maxX:r,maxY:i}=e.scrollRange,a=e.scroll??{x:0,y:0};return{x:Bo(n,`x`,t.width,r,a.x),y:Bo(n,`y`,t.height,i,a.y)}}#G(){let e=new Map,t=this.#f;if(!t)return e;for(let n of this.#_){let r=n.source,{maxX:i,maxY:a}=n.scrollRange,{x:o,y:s}=this.#W(n,t);e.set(r,{top:r.scrollTop,left:r.scrollLeft,maxTop:r.scrollHeight-r.clientHeight,maxLeft:r.scrollWidth-r.clientWidth,x:o,y:s,pinX:i>0&&o>=i,pinY:a>0&&s>=a})}return e}#K(e){for(let t of this.#_){let n=t.source,r=e.get(n);if(!r)continue;let i=n.scrollTop,a=n.scrollLeft;r.pinY&&n.scrollHeight-n.clientHeight!==r.maxTop?n.scrollTop=n.scrollHeight:i!==r.top&&(n.scrollTop=r.top),r.pinX&&n.scrollWidth-n.clientWidth!==r.maxLeft?n.scrollLeft=n.scrollWidth:a!==r.left&&(n.scrollLeft=r.left)}}#q(e,t){clearTimeout(this.#v.get(e)),this.#v.set(e,setTimeout(()=>this.#X(e),t))}#J=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(this.#H(),!(Date.now()-(this.#y.get(t)??0)<Ao)&&(!(`onscrollend`in window)||Date.now()-this.#T<Io?this.#q(t,Fo):clearTimeout(this.#v.get(t))))};#Y=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(Date.now()-(this.#y.get(t)??0)<Ao||this.#q(t,Po))};#X(e){if(this.#x?.el===e)return;this.#H();let t=this.#f,n=this.#_.find(t=>t.source===e);if(!t||!n)return;let r=n.scrollRange,i=n.scroll??this.#W(n,t),a=i.y===r.maxY?e.scrollHeight-e.clientHeight:i.y*t.height,o=i.x===r.maxX?e.scrollWidth-e.clientWidth:i.x*t.width;(Math.abs(e.scrollTop-a)>.5||Math.abs(e.scrollLeft-o)>.5)&&e.scrollTo({top:a,left:o,behavior:`instant`})}#Z=e=>{if(this.getAttribute(`select`)!==`grid`)return;let t=this.#p,n=this.#f;if(!t||!n||this.#_.length===0)return;let r=e,i=r.deltaMode===1?n.height:r.deltaMode===2?this.clientHeight:1,a=r.deltaX*i,o=r.deltaY*i;if(!r.cancelable&&this.#Q(a,o))return;let{col:s,row:c}=this.#ee(r.clientX,r.clientY,n),l=Date.now(),u=Math.abs(a)+Math.abs(o);if(u===0){this.#b=null,r.preventDefault();return}let d=e=>{let t=e.scrollRange,n=e.source;return o!==0&&t.maxY>0&&(o>0&&n.scrollTop<n.scrollHeight-n.clientHeight-.5||o<0&&n.scrollTop>.5)||a!==0&&t.maxX>0&&(a>0&&n.scrollLeft<n.scrollWidth-n.clientWidth-.5||a<0&&n.scrollLeft>.5)},f=this.#b,p=Math.abs(a)>=Math.abs(o)?`x`:`y`,m=f!==null&&u>f.mag*1.25+1,h=f!==null&&(Math.abs(r.clientX-f.x)>jo||Math.abs(r.clientY-f.y)>jo),g=f!==null&&f.decayed>=No,_=f!==null&&l-f.at<Ao&&p===f.axis&&(h?u<=f.mag:!(g&&m)),v=null;if(_){if(f.decayed=u<=f.mag&&u>=f.mag*.5?f.decayed+1:g?f.decayed:0,f.mag=u,f.at=l,!f.el)return;v=this.#_.find(e=>e.source===f.el)??null}if(!v){let e=Pr(t,s,c);for(let t=e.length-1;t>=0;t--){let n=e[t].node;if(!n.scrollRange||Fr(n.source))continue;if(d(n)){v=n;break}let r=n.style.overscroll;if(o!==0&&!r.y||a!==0&&!r.x){v=n;break}}if(!v&&u<Mo){r.preventDefault();return}this.#b={el:v?v.source:null,x:r.clientX,y:r.clientY,axis:p,at:l,mag:u,decayed:0}}if(!v||(r.preventDefault(),!d(v)))return;let y=v.source,b=v.scrollRange,x={behavior:`instant`};o!==0&&b.maxY>0&&(x.top=o),a!==0&&b.maxX>0&&(x.left=a),y.scrollBy(x),this.#y.set(y,l),this.#q(y,Ao)};#Q(e,t){return this.#k.some(n=>t>0&&n.scrollTop<n.scrollHeight-n.clientHeight-.5||t<0&&n.scrollTop>.5||e>0&&n.scrollLeft<n.scrollWidth-n.clientWidth-.5||e<0&&n.scrollLeft>.5)}#$(){let e=this.parentElement;if(e&&this.#l){this.#l.observe(e);for(let t of e.children)t!==this&&this.#l.observe(t)}}#ee(e,t,n){if(!this.#B){let e=this.#s.getBoundingClientRect();this.#B={left:e.left,top:e.top}}return{col:Math.floor((e-this.#B.left)/n.width),row:Math.floor((t-this.#B.top)/n.height)}}#te(e,t){let n=this.#p,r=this.#f;if(!n||!r||this.#_.length===0)return null;let{col:i,row:a}=this.#ee(e,t,r),o=Pr(n,i,a);for(let n=o.length-1;n>=0;n--){let{node:s,x:c,y:l}=o[n],u=s.scrollRange;if(!u||Fr(s.source))continue;let d=s.source,{y:f,x:p}=jr(s,c,l);if(f&&u.maxY>0&&i>=f.col&&i<f.col+f.thick&&a>=f.row&&a<f.row+f.len){let e=Mr(f.len,u.sizeY,u.maxY,0).len,n=Math.max(1,(f.len-e)*r.height);return{el:d,axis:`y`,startClient:t,startPx:d.scrollTop,factor:u.maxY*r.height/n}}if(p&&u.maxX>0&&a>=p.row&&a<p.row+p.thick&&i>=p.col&&i<p.col+p.len){let t=Mr(p.len,u.sizeX,u.maxX,0).len,n=Math.max(1,(p.len-t)*r.width);return{el:d,axis:`x`,startClient:e,startPx:d.scrollLeft,factor:u.maxX*r.width/n}}}return null}#ne=e=>{if(Ho(e))return;let{clientX:t,clientY:n}=e,r=this.#x;if(r){let e=(r.axis===`y`?n:t)-r.startClient,i=r.startPx+e*r.factor;r.axis===`y`?r.el.scrollTop=i:r.el.scrollLeft=i;return}let i=!!(e.buttons&1);i&&this.#C&&this.#pe(this.#C,t,n),i&&this.#D&&this.#fe(this.#D,t,n),i&&this.#O&&!this.hasAttribute(`data-mw-dragging`)&&this.setAttribute(`data-mw-dragging`,``),this.#L={x:t,y:n};let a=this.#f;if(a){let{col:e,row:r}=this.#ee(t,n,a);if(e===this.#R&&r===this.#z)return}this.#Ae()};#re=e=>{let{clipboardData:t}=e,n=this.#p,r=this.#Ce();t&&n&&r&&(t.setData(`text/plain`,ci(n,r)),e.preventDefault())};#ie=e=>{let t=e;if(t.button!==0)return;let n=this.getAttribute(`select`),r=t.composedPath().includes(this.#s);if(n===`grid`){if(!r&&!this.#le(t.target))return}else if(n!==`text`||!this.#ge(t.target))return;let i=this.#S===`mouse`||this.#S===`pen`;if(t.detail<=1){if(t.detail!==1||(this.removeAttribute(To),!i))return;if(n===`text`){this.#he(t);return}let e=this.#se();(!r||e)&&(e?.blur(),this.#de(t));return}if(!i)return;let a=t.detail===2?`word`:`paragraph`,o=document.getSelection(),s=this.#p,c=this.#f;if(!o||!s||!c)return;let{col:l,row:u}=this.#ee(t.clientX,t.clientY,c),d=this.#_e(l,u,a);if(!d){this.removeAttribute(To),this.#C=null;return}t.preventDefault(),this.#se()?.blur(),this.#Se(d);let f=t.shiftKey&&o.anchorNode&&this.#Ce()?Wo({node:o.anchorNode,offset:o.anchorOffset}):d;this.#me(o,f,d),this.#C={unit:a,anchor:f}};#ae=e=>{let t=e;if(this.#T=Date.now(),this.getAttribute(`focus`)!==`arrows`)return;let n=zr(t.key);if(!n||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return;let r=this.#p,i=t.target;if(!r||!(i instanceof Element)||i===this||Jr(i,t.key,this.#Ve()))return;let a=Ur(r),o=Wr(a,i);if(!o)return;let s=Br(n,o,a.filter(e=>e.element!==i));s&&(t.preventDefault(),s.focus({preventScroll:!0}),s.scrollIntoView({block:`nearest`,inline:`nearest`}))};#oe(e,t,n){let r=[];for(let i of Array.from(this.children)){if(i===this.#c)continue;let a=Ya(i,e,t,n);a&&r.push(a)}return vo(this)?(this.hasAttribute(`data-mw-dropped-text`)||console.warn(`[monowind] ${yo}`,h(this)),this.setAttribute(`data-mw-dropped-text`,``)):this.removeAttribute(`data-mw-dropped-text`),{source:this,style:yt(),children:r,text:``,intrinsicWidth:0,intrinsicHeight:0,localRect:{x:0,y:0,width:0,height:0},unclampedHeight:0,resolvedPadding:bt()}}#se(){let e=document.activeElement;return e instanceof HTMLElement&&e!==document.body&&this.contains(e)?e:null}#ce(){return this.#F&&!this.#D}#le(e){return e instanceof Element&&e!==this&&this.contains(e)&&!e.matches(Eo)}#ue(e,t){let n=this.#f;if(!n)return null;let{col:r,row:i}=this.#ee(e,t,n),a=Pi(this.#s,r,i),o=Zr(this.#s,a);return o&&{offset:a,at:o}}#de(e){let t=this.#ue(e.clientX,e.clientY);t&&(e.preventDefault(),document.getSelection()?.setBaseAndExtent(...t.at,...t.at),this.#D={anchor:t.offset})}#fe(e,t,n){let r=Zr(this.#s,e.anchor),i=this.#ue(t,n);r&&i&&document.getSelection()?.setBaseAndExtent(...r,...i.at)}#pe(e,t,n){let r=this.#f,i=document.getSelection();if(!r||!i)return;let{col:a,row:o}=this.#ee(t,n,r),s=this.#_e(a,o,e.unit);s&&this.#me(i,e.anchor,s)}#me(e,t,n){if(Ko(t,n)){Go(e,n.start,n.end);return}let r=t.start.node.getRootNode()===n.start.node.getRootNode(),i=r?t:this.#xe(t),a=r?n:this.#xe(n);Yr(i.start.node,i.start.offset,a.start.node,a.start.offset)<=0?Go(e,i.start,a.end):Go(e,i.end,a.start)}#he(e){let t=document.getSelection(),n=this.#f;if(!t||!n)return;let{col:r,row:i}=this.#ee(e.clientX,e.clientY,n),a=this.#_e(r,i,`character`);if(!a)return;e.preventDefault(),this.#se()?.blur();let o=e.shiftKey&&t.anchorNode&&this.#Ce()?Wo({node:t.anchorNode,offset:t.anchorOffset}):Wo(a.start);this.#me(t,o,e.shiftKey?a:o),this.#C={unit:`character`,anchor:o}}#ge(e){if(e===this)return!0;if(!(e instanceof Element)||!this.contains(e))return!1;let t=e.closest(Eo);return!t||t===this||!this.contains(t)}#_e(e,t,n){let r=this.#p;if(!r)return null;if(n!==`character`)return this.#ve(r,e,t,n);let{width:i,height:a}=r.localRect;for(let{x:n,y:o,edge:s}of Lr(i,a,e,t)){if(s===`self`){let e=Pr(r,n,o).at(-1);if(e&&Fr(e.node.source))return null}let e=Ai(this.#s,n,o);if(e===void 0||e===` `&&s!==`self`)continue;let t=this.#ve(r,n,o,`character`);if(t)return s===`self`?t:Wo(s===`start`?t.start:t.end)}return null}#ve(e,t,n,r){let i=Pr(e,t,n);for(let e=i.length-1;e>=0;e--){let{node:a,x:o,y:s}=i[e];if(hi(a))return Fr(a.source)?null:this.#ye(a,o,s,t,n,r)}return hi(e)?this.#ye(e,0,0,t,n,r):null}#ye(e,t,n,r,i,a){let o=kr(e,t,n,r,i);if(o===null||a===`character`&&e.text[o]===`⁠`)return null;if(a===`character`){let t=o+1;for(;t<e.text.length&&e.advances?.[t]===0&&e.text[t]!==`
1034
+ `;)t++;let n=ti(e,o),r=ti(e,t);if(n&&r)return{start:n,end:r}}if(a===`word`){let t=b(e.source.tagName)?He(e.text).find(e=>o>=e.start&&o<e.end):yi(e,o),n=t&&ti(e,t.start),r=t&&ti(e,t.end);if(n&&r)return{start:n,end:r}}return this.#be(e)}#be(e){if(e===this.#p)return mi(e);let t=b(e.source.tagName)?.selectionTarget?.(e.source)??e.source;return{start:{node:t,offset:0},end:{node:t,offset:t.childNodes.length}}}#xe(e){let t=e.start.node.getRootNode();if(!(t instanceof ShadowRoot)||t===this.#s.getRootNode())return e;let n=t.host,r=n.parentNode;if(!r)return e;let i=Array.prototype.indexOf.call(r.childNodes,n),a=n.previousSibling,o=n.nextSibling;return{start:Uo(a)?{node:a,offset:a instanceof Text?a.length:a.childNodes.length}:{node:r,offset:i},end:Uo(o)?{node:o,offset:0}:{node:r,offset:i+1}}}#Se(e){this.setAttribute(To,``);let t=e.start.node,n=t instanceof Element?t:t.parentElement;n&&getComputedStyle(n).userSelect}#Ce(){let e=this.#p,t=ni(this.#s.getRootNode(),e?ai(e):[]);return!t||ri(this,this.#s,t)!==`light`||t.startContainer===t.endContainer&&t.startOffset===t.endOffset?null:t}#we=()=>{let e=this.#Ce()!==null;this.hasAttribute(To)&&!e&&this.removeAttribute(To),(e||this.#w)&&this.#p&&this.#H(),this.#w=e};#Te(e){let t=this.#Ce();return Oi(e,this.#s,{holdStructural:this.#ce(),glyphs:this.#E,selection:t?si(e,t):void 0})}#Ee=()=>{this.#L=null,this.#Ae()};#De=e=>{let t=e;if(!t.isPrimary||t.button!==0||(this.#S=t.pointerType,Ho(t)))return;let n=this.#te(t.clientX,t.clientY);if(n){this.#x=n,t.preventDefault(),t.isTrusted&&this.setPointerCapture(t.pointerId);return}this.#L={x:t.clientX,y:t.clientY},this.#F=!0,this.#O=t.composedPath().includes(this.#s),this.#Ae(!0)};#Oe=e=>{if(e.isPrimary){if(this.#C=null,this.#D=null,this.#O=!1,this.removeAttribute(`data-mw-dragging`),this.#x){this.#X(this.#x.el),this.#x=null;return}(this.#F||this.#P)&&(this.#F=!1,this.#P=null,this.#Ae(),this.#I&&this.#Ue())}};#ke=e=>{if(!this.#L)return;let t=e.target;t instanceof HTMLElement&&t.hasAttribute(`data-mw-scroll`)||(this.#B=null,this.#Ae())};#Ae(t=!1){let n=this.#p,r=this.#f,i=[];if(this.#L&&n&&r&&this.isConnected&&this.getAttribute(`select`)===`grid`&&(this.#F||e.#V?.matches)){let{col:e,row:t}=this.#ee(this.#L.x,this.#L.y,r);this.#R=e,this.#z=t,i=Ir(n,e,t)}else this.#R=NaN,this.#z=NaN;let a=i.at(-1)??null;t&&(this.#P=a);let o=e.#V?.matches?i:[],s=this.#P?i.indexOf(this.#P):-1,c=s>=0?i.slice(0,s+1):[],l=this.#je(`data-mw-hover`,this.#M,o);l=this.#je(`data-mw-active`,this.#N,c)||l;let u=a?getComputedStyle(a).cursor:``;this.#s.style.cursor=u===`auto`?``:u,l&&this.isConnected&&this.#Ue()}#je(e,t,n){let r=!1,i=new Set(n);for(let n of t)i.has(n)||(n.removeAttribute(e),r=!0);for(let n of i)t.has(n)||(n.setAttribute(e,``),r=!0);t.clear();for(let e of i)t.add(e);return r}#Me=0;#Ne=!1;#Pe=0;#Fe=e=>{Oo.test(e.propertyName)&&(this.#Me++,this.#Pe=performance.now(),this.#Le())};#Ie=e=>{Oo.test(e.propertyName)&&(this.#Me=Math.max(0,this.#Me-1))};#Le(){if(this.#Ne)return;this.#Ne=!0;let e=()=>{if(!this.isConnected||this.#Me===0&&!k()||performance.now()-this.#Pe>ko){this.#Ne=!1,this.#Me=0,this.#Ue();return}this.#He(),requestAnimationFrame(e)};requestAnimationFrame(e)}#Re=e=>{if(!Ho(e)){if(e.type===`keydown`||e.type===`keyup`){let{key:t,target:n}=e,r=n instanceof Element&&n.hasAttribute(`data-mw-scroll`);if(t!==`Enter`&&(t!==` `||r))return}if((e.type===`focusin`||e.type===`focusout`)&&e.target instanceof HTMLSelectElement){this.#He();return}this.#Ue()}};attributeChangedCallback(e,t,n){if(e===`focus`){n!==`tab`&&n!==`arrows`&&(n!==null&&console.warn(`[monowind] Ignoring unrecognized focus="${n}". Expected "tab" (default) or "arrows".`,h(this)),this.setAttribute(`focus`,wo));return}if(e===`select`&&n!==`text`&&n!==`grid`){n!==null&&console.warn(`[monowind] Ignoring unrecognized select="${n}". Expected "grid" (default) or "text".`,h(this)),this.setAttribute(`select`,Co);return}e===`select`&&this.#Ae(),this.#Ue()}toPlainText(){return this.#d&&this.#We(),this.#p?vr(this.#p):``}#ze=()=>{this.#Ue()};#Be=()=>{requestAnimationFrame(()=>{this.#E.invalidate(),this.#Ue()})};#Ve(){let e=document.activeElement;if(!(e instanceof HTMLSelectElement)||!this.contains(e))return!1;try{return e.matches(`:open`)}catch{return!1}}#He(){try{this.#We()}catch(e){console.error(`[monowind] layout failed:`,e)}}#Ue(){this.#d||(this.#d=!0,requestAnimationFrame(()=>{if(this.#d=!1,this.#Ve()){this.#Ue();return}this.#He()}))}#We(){if(!this.isConnected)return;let e=this.#G(),t=new Map,n=getComputedStyle(this).getPropertyValue(`--mw-cw`).trim(),r=parseFloat(n);if(Number.isFinite(r)&&r>0)for(let e of this.querySelectorAll(`textarea`)){let n=getComputedStyle(e),i=e.clientWidth-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0);t.set(e,Math.max(0,Math.round(i/r)))}this.setAttribute(`measuring`,``);try{this.#c.parentNode!==this&&this.appendChild(this.#c);let n=F(this,this.#c),r=this.#f;(r===null||r.width!==n.width||r.height!==n.height||r.letterSpacing!==n.letterSpacing||r.gridLetterSpacing!==n.gridLetterSpacing||r.inkOverhang!==n.inkOverhang||r.backgroundGap!==n.backgroundGap)&&(this.style.setProperty(`--mw-cw`,`${n.width}px`),this.style.setProperty(`--mw-ch`,`${n.height}px`),this.style.setProperty(`--mw-rls`,`${n.letterSpacing}px`),this.style.setProperty(`--mw-ink`,`${n.inkOverhang??0}px`),this.style.setProperty(`--mw-bgpad`,`${Math.ceil((n.backgroundGap??0)/2)}px`),this.#s.style.lineHeight=`${n.height}px`,this.#s.style.letterSpacing=`${n.gridLetterSpacing??n.letterSpacing}px`),this.#f=n;let i=getComputedStyle(this.#s);this.#E.configure({style:i.fontStyle,weight:i.fontWeight,size:i.fontSize,family:i.fontFamily},{width:n.width,height:n.height,letterSpacing:n.gridLetterSpacing??n.letterSpacing});let a=getComputedStyle(this),o=(parseFloat(a.paddingLeft)||0)+(parseFloat(a.paddingRight)||0),s=Math.max(0,Math.floor((this.clientWidth-o)/n.width));if(s===0)return;let c=I(),l=Xa(this,c,n,t)??this.#oe(c,n,t),{height:u}=Wn(l,s);Ri(l),this.#_=qo(l),this.#U(n,e),this.#I=!this.#Te(l),this.#p=l;let d=`${l.localRect.width*n.width}px`,f=`${l.localRect.height*n.height}px`;this.#s.style.width!==d&&(this.#s.style.width=d),this.#s.style.height!==f&&(this.#s.style.height=f);let p=a.boxSizing===`border-box`?(parseFloat(a.paddingTop)||0)+(parseFloat(a.paddingBottom)||0)+(parseFloat(a.borderTopWidth)||0)+(parseFloat(a.borderBottomWidth)||0):0,m=`${u*n.height+p}px`;this.style.height!==m&&(this.style.height=m);let h=a.boxSizing===`border-box`?o+(parseFloat(a.borderLeftWidth)||0)+(parseFloat(a.borderRightWidth)||0):0,g=`${s*n.width+h}px`;this.style.getPropertyValue(`--mw-host-w`)!==g&&this.style.setProperty(`--mw-host-w`,g),this.hasAttribute(`data-mw-ready`)||this.setAttribute(`data-mw-ready`,``)}finally{this.setAttribute(`settling`,``),this.removeAttribute(`measuring`),getComputedStyle(this).transitionProperty,this.removeAttribute(`settling`),this.#K(e),this.#u?.takeRecords(),ee(this)&&(k()?(this.#Pe=performance.now(),this.#Le()):this.#Ue()),this.#$(),this.#k=[];let t=document.scrollingElement??document.documentElement;for(let e=this.parentElement;e;e=e.parentElement)(e===t||/auto|scroll/.test(getComputedStyle(e).overflow))&&this.#k.push(e);this.#B=null,this.#L&&this.#Ae()}}};function zo(){typeof customElements>`u`||customElements.get(`mono-wind`)||customElements.define(`mono-wind`,Ro)}function Bo(e,t,n,r,i){return Vo(t===`y`?e.scrollTop:e.scrollLeft,t===`y`?e.scrollHeight-e.clientHeight:e.scrollWidth-e.clientWidth,n,r,i)}function Vo(e,t,n,r,i){if(r>0&&e>0&&e>=t-1)return r;let a=e/n-i,o=Math.abs(a)<=.5?i:i+Math.sign(a)*Math.round(Math.abs(a));return Math.min(Math.max(0,o),r)}function Ho(e){return e instanceof PointerEvent&&e.pointerType===`touch`&&e.type!==`pointerup`}function Uo(e){return e!==null&&!(e instanceof Element&&e.shadowRoot)}function Wo(e){return{start:e,end:e}}function Go(e,t,n){e.setBaseAndExtent(t.node,t.offset,n.node,n.offset)}function Ko(e,t){return e.start.node===t.start.node&&e.start.offset===t.start.offset&&e.end.node===t.end.node&&e.end.offset===t.end.offset}function qo(e){let t=[],n=e=>{e.scrollRange&&t.push(e);for(let t of e.children)n(t)};return n(e),t}var Jo=`/* Gap decorations (specs/gap-decorations.md): css-gaps-1 rules for flex
1021
1035
  * and grid gaps, engine-painted as glyph runs. The utilities set the
1022
1036
  * real CSS properties (forward-compat; unknown ones drop harmlessly)
1023
1037
  * AND the --mw-* mirrors the engine reads — compiled by the consumer's
@@ -1245,7 +1259,7 @@ input:where([type='button'], [type='reset'], [type='submit']),
1245
1259
  inherits: false;
1246
1260
  initial-value: 0;
1247
1261
  }
1248
- `,_o=`/* monowind companion stylesheet — loaded into the light DOM by the app.
1262
+ `,Yo=`/* monowind companion stylesheet — loaded into the light DOM by the app.
1249
1263
  * The shadow root has its own baked-in styles; this file targets the light-DOM
1250
1264
  * subtree the host owns.
1251
1265
  *
@@ -1689,16 +1703,17 @@ mono-wind[select="grid"]:where(:not([data-mw-semantic-selection]))
1689
1703
  -webkit-user-select: none;
1690
1704
  }
1691
1705
  /* Touch panning (specs/scrolling.md): where the primary pointer is a
1692
- * finger, scroll containers take pointer events in grid mode so a
1693
- * drag pans them NATIVELY (physics, momentum, chaining)their
1694
- * children stay inert, so the touch lands on the container itself.
1695
- * A long-press there selects the element's text (an element
1696
- * selection, copied by the engine like a semantic one). */
1706
+ * finger, a scroll container's subtree takes pointer events in grid
1707
+ * mode so a drag pans it NATIVELY (physics, momentum, chaining — the
1708
+ * pan reaches the container from any descendant) and a long-press
1709
+ * selects the element's text under the finger (an element selection,
1710
+ * copied by the engine like a semantic one). The leaves must take the
1711
+ * touch themselves: WebKit resolves the pressed text position inside
1712
+ * the touched element, and on the container it falls back to the
1713
+ * first positioned leaf. */
1697
1714
  @media (pointer: coarse) {
1698
- mono-wind[select="grid"] [data-mw-scroll] {
1699
- pointer-events: auto !important;
1700
- }
1701
1715
  mono-wind[select="grid"] :is([data-mw-scroll], [data-mw-scroll] *) {
1716
+ pointer-events: auto !important;
1702
1717
  user-select: text;
1703
1718
  -webkit-user-select: text;
1704
1719
  }
@@ -1752,29 +1767,24 @@ mono-wind:not([data-mw-ready]) {
1752
1767
  visibility: hidden !important;
1753
1768
  }
1754
1769
 
1755
- /* Full invert on selectionTHE CANONICAL RULE; shadow scopes can't
1756
- * share it, so it's restated in element.ts (the grid) and in
1757
- * @monowind/ascii's transcript: update all three together. Both
1758
- * fields spelled out setting only \`color\` makes some engines drop
1759
- * the OS default background. The text-shadow is the ink in Safari:
1760
- * it paints selection text with the element's text-fill-color — which
1761
- * the invisibility lock holds transparent so a zero-offset shadow
1762
- * draws the glyph copy that \`color\` draws in other engines (where the
1763
- * identical-color shadow hides beneath it). Native copy still yields
1764
- * the real text (the DOM the browser reads). */
1765
- mono-wind:not([measuring])[data-mw-leaf]::selection,
1766
- mono-wind:not([measuring]) *::selection {
1767
- color: var(--mw-bg, canvas) !important;
1768
- text-shadow: 0 0 0 var(--mw-bg, canvas) !important;
1769
- background: var(--mw-fg, canvastext) !important;
1770
- }
1771
- /* Focus-invert already flipped the element's colors, so re-flipping in
1772
- * ::selection would land on the same colors as the focused bg and hide
1773
- * the selection. Swap them back for the focused element. */
1774
- mono-wind:not([measuring]) :focus-visible::selection {
1775
- color: var(--mw-fg, canvastext) !important;
1776
- text-shadow: 0 0 0 var(--mw-fg, canvastext) !important;
1777
- background: var(--mw-bg, canvas) !important;
1770
+ /* A light-DOM selection is painted on the grid inverted cells from the
1771
+ * live range (specs/wide-characters.md "The grid paints the selection")
1772
+ * — so the browser's own highlight on the invisible native text stays
1773
+ * invisible: every field, as some engines keep an OS default background
1774
+ * when only \`color\` is set, and Safari's text-shadow ink. Shadow scopes
1775
+ * can't share the rule: element.ts (the slot) and @monowind/ascii's
1776
+ * transcript restate it update all three together. Form controls
1777
+ * render their own text and keep their native highlight; forced
1778
+ * colors paint selections themselves and strip backgrounds, so the
1779
+ * native highlight stays there. */
1780
+ @media (forced-colors: none) {
1781
+ mono-wind:not([measuring])[data-mw-leaf]::selection,
1782
+ mono-wind:not([measuring])
1783
+ :where(:not(input, textarea, select, [contenteditable], [contenteditable] *))::selection {
1784
+ color: transparent !important;
1785
+ text-shadow: none !important;
1786
+ background: transparent !important;
1787
+ }
1778
1788
  }
1779
1789
 
1780
1790
  /* === Typography locks and measuring gates ============================ */
@@ -2111,15 +2121,6 @@ mono-wind:not([measuring]) [data-mw-multicol-flow] {
2111
2121
  text-indent: calc(var(--mw-ti, 0) * var(--mw-cw, 1px)) !important;
2112
2122
  }
2113
2123
 
2114
- /* Centered text with uniform odd leftover (specs/cell-model.md "Text
2115
- * alignment"): the browser's fractional centering sits half a cell
2116
- * right of the grid's floor()'d paint — nudge the native copy onto the
2117
- * glyphs. \`transform\`, not \`translate\`: the spanner rule owns the
2118
- * latter, and the two compose. */
2119
- mono-wind:not([measuring]) [data-mw-center-nudge] {
2120
- transform: translateX(calc(-0.5 * var(--mw-cw, 1px))) !important;
2121
- }
2122
-
2123
2124
  /* In-flow multicol SPANNER (specs/multicol.md): a normally laid-out box
2124
2125
  * that stays in the native flow so paragraphs fragment around it —
2125
2126
  * engine-forced geometry (the shared rule above), quantized margins,
@@ -2216,7 +2217,7 @@ mono-wind:not([measuring])[data-mw-text-align-blocked],
2216
2217
  mono-wind:not([measuring]) [data-mw-text-align-blocked] {
2217
2218
  text-align: start !important;
2218
2219
  }
2219
- `,vo=`/* Synthesized pointer states (specs/cell-model.md "Pointer states"):
2220
+ `,Xo=`/* Synthesized pointer states (specs/cell-model.md "Pointer states"):
2220
2221
  * under select="grid" the light DOM is pointer-events: none, so
2221
2222
  * :hover/:active never match — the engine hit-tests the pointer's
2222
2223
  * cell and marks the chain with data-mw-hover / data-mw-active. These
@@ -2233,5 +2234,5 @@ mono-wind:not([measuring]) [data-mw-text-align-blocked] {
2233
2234
  }
2234
2235
  }
2235
2236
  @custom-variant active (&:is(:active, [data-mw-active]));
2236
- `,yo=document.createElement(`style`);yo.setAttribute(`data-monowind`,``),yo.textContent=_o,document.head.appendChild(yo);var bo=document.createElement(`style`);bo.setAttribute(`type`,`text/tailwindcss`),bo.setAttribute(`data-monowind-rules`,``),bo.textContent=`${go}\n${vo}`,document.head.appendChild(bo),oo(),Object.assign(globalThis,{monowind:{...globalThis.monowind,version:`0.2.7`,registerLeafRenderer:a,invalidateLeaves:o}})})();
2237
+ `,Zo=document.createElement(`style`);Zo.setAttribute(`data-monowind`,``),Zo.textContent=Yo,document.head.appendChild(Zo);var Qo=document.createElement(`style`);Qo.setAttribute(`type`,`text/tailwindcss`),Qo.setAttribute(`data-monowind-rules`,``),Qo.textContent=`${Jo}\n${Xo}`,document.head.appendChild(Qo),zo(),Object.assign(globalThis,{monowind:{...globalThis.monowind,version:`0.2.9`,registerLeafRenderer:v,invalidateLeaves:y,glyphSetFor:r}})})();
2237
2238
  //# sourceMappingURL=cdn.js.map