monowind 0.2.13 → 0.3.0

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=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
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=Se(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 L(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 j(e){return{kind:`word`,value:e}}function ee(e,t){return{kind:`function`,value:e,nodes:t}}function te(e){return{kind:`separator`,value:e}}function M(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+M(n.nodes)+`)`}return t}var ne=92,re=41,ie=58,ae=44,oe=34,se=61,ce=62,le=60,ue=10,de=40,fe=39,pe=47,me=32,he=9;function N(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 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 R(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 xe(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=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(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=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 Oe(p)}function Oe(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&&!Ae.has(e.name))return f(e),d.add(e),M.Skip;if(ke.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 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 ne:i+=e[o]+e[o+1],o++;break;case pe:{if(i.length>0){let e=j(i);r?r.nodes.push(e):t.push(e),i=``}let n=j(e[o]);r?r.nodes.push(n):t.push(n);break}case ie:case ae:case se:case ce:case le:case ue:case me:case he:{if(i.length>0){let e=j(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===ie||a===ae||a===se||a===ce||a===le||a===ue||a===me||a===he);s++);o=s-1;let c=te(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case fe:case oe:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===ne)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case de:{let e=ee(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case re:{let e=n.pop();if(i.length>0){let t=j(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(j(i)),t}var ge=(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))(ge||{}),P={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 F(e,t){typeof t==`function`?_e(e,t):_e(e,t.enter,t.exit)}function _e(e,t=()=>P.Continue,n=()=>P.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)??P.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.${ge[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o;i.index=c;let l=a[c],u=n(l,i)??P.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.${ge[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}var ve=new O(e=>{let t=[];return F(N(e),e=>{if(e.kind===`function`&&e.value===`var`)return F(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),P.Skip}),t});function ye(e){return ve.get(e)}var be=64,xe=124;function I(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function L(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function Se(e,t=[]){return e.charCodeAt(0)===be?b(e,t):I(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 ye(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value)}if(e.property===`animation`)for(let t of B(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 B(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=N(r.value),a=!1;if(F(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(F(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(`)?N(o)[0]:null}while(i);return P.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?P.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:M(i)},s=Se(`@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=Se(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=Se(`*, ::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=L(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=Se(`@layer properties`,[L(`@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;F(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;F(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(F(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)===xe?void 0:P.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 P.Skip}break;case`at-rule`:if(i=null,e.nodes.length===0&&!Ae.has(e.name))return f(e),d.add(e),P.Skip;if(ke.has(e.name))r.push([e.name,e.params,e.src,e.dst]);else return f(e),d.add(e),P.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=Se(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=L(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`:``};
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 N(e,(e,r)=>{if(t(e))return n=r.path(),n.push(e),M.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=j(e);return Be(t),e=A(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 We=58,Ge=45,Ke=97,qe=122,Je=/^[a-zA-Z0-9_.%-]+$/;function*Ye(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:Xe(s);if(s!==null&&l===null)return;if(o[0]===`[`){if(o[o.length-1]!==`]`)return;let t=o.charCodeAt(1);if(t!==Ge&&!(t>=Ke&&t<=qe))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=k(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=Qe(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===We){i=t.slice(0,e),t=t.slice(e+1);break}if(!(n===Ge||n>=Ke&&n<=qe))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(!Je.test(n))continue;r.value={kind:`named`,value:n,fraction:e}}}yield r}}function Xe(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)})):Je.test(e)?{kind:`named`,value:e}:null}function Ze(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]=k(e,`/`);if(i)return null;let a=Qe(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:Xe(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(!Je.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:Xe(r);return r!==null&&a===null?null:{kind:`compound`,root:e,modifier:a,variant:i}}}}return null}function*Qe(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 $e(e,t){let n=[];for(let e of t.variants)n.unshift(tt(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=ct(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}:${rt(n)}${a}`:r+=`-${i}${rt(n)}${a}`}}else t.value.kind===`named`&&(r+=`-${t.value.value}`)}return t.kind===`arbitrary`&&(r+=`[${t.property}:${rt(t.value)}]`),(t.kind===`arbitrary`||t.kind===`functional`)&&(r+=et(t.modifier)),t.important&&(r+=`!`),n.push(r),n.join(`:`)}function et(e){if(e===null)return``;let t=ct(e.value),n=t?e.value.slice(4,-1):e.value,[r,i]=t?[`(`,`)`]:[`[`,`]`];return e.kind===`arbitrary`?`/${r}${rt(n)}${i}`:e.kind===`named`?`/${e.value}`:``}function tt(e){if(e.kind===`static`)return e.root;if(e.kind===`arbitrary`)return`[${rt(at(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=ct(e.value.value),i=r?e.value.value.slice(4,-1):e.value.value,[a,o]=r?[`(`,`)`]:[`[`,`]`];t+=`${n?`-`:``}${a}${rt(i)}${o}`}else e.value.kind===`named`&&(t+=`${n?`-`:``}${e.value.value}`)}}return e.kind===`compound`&&(t+=e.root,t+=`-`,t+=tt(e.variant)),(e.kind===`functional`||e.kind===`compound`)&&(t+=et(e.modifier)),t}var nt=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([])}),ot(t),A(t)});function rt(e){return nt.get(e)}var it=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 at(e){return it.get(e)}function ot(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++)ot([t.nodes[e]]);break}t.value=ut(t.value),ot(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 st=new O(e=>{let t=j(e);return t.length===1&&t[0].kind===`function`&&t[0].value===`var`});function ct(e){return st.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)||Ie(e)}var Mt=RegExp(`^${kt.source}%$`);function Nt(e){return Mt.test(e)||Ie(e)}var Pt=RegExp(`^${kt.source}\\s*/\\s*${kt.source}$`);function Ft(e){return Pt.test(e)||Ie(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)||Ie(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 rn(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 an=/(\d+)_(\d+)/g;function on(e){let t=new tn;function n(n,r){function*i(t){for(let n of e.keysInNamespaces(t))yield n.replace(an,(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(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=W(n,t.modifier,e)):n=rn(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=()=>z([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=()=>z([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=()=>z([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=()=>z([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=()=>z([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=()=>z([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[z([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[z([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`,[()=>z([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`,[()=>z([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=()=>z([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=rn(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=()=>z([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=>[z([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=>[z([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`,[()=>z([H(`--tw-divide-x-reverse`,`0`)]),()=>P(`:where(& > :not(:last-child))`,[L(`--tw-divide-x-reverse`,`1`)])]),r(`divide-y-reverse`,[()=>z([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=rn(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=()=>z([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=rn(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=()=>z([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=rn(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=()=>z([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(z([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(z([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=()=>z([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=()=>z([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=()=>z([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=rn(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=rn(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[z([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[z([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=rn(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=()=>z([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=()=>z([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=rn(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=()=>z([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=()=>z([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=>[z([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=()=>z([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=>[z([H(`--tw-leading`)]),L(`--tw-leading`,e),L(`line-height`,e)],{staticValues:{none:[z([H(`--tw-leading`)]),L(`--tw-leading`,`1`),L(`line-height`,`1`)]}}),i(`tracking`,{supportsNegative:!0,themeKeys:[`--tracking`],handle:e=>[z([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=()=>z([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=()=>z([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=rn(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=rn(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=()=>z([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=rn(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=()=>z([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=rn(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=rn(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=rn(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=rn(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=rn(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 sn=[`number`,`integer`,`ratio`,`percentage`];function cn(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]!==`]`)&&!sn.includes(t.value)){console.warn(`Unsupported bare value data type: "${t.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 F(e,(e,r)=>{if(t(e))return n=r.path(),n.push(e),P.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 B(e){return e.split(/[\s,]+/)}var Pe=[`calc`,`min`,`max`,`clamp`,`mod`,`rem`,`sin`,`cos`,`tan`,`asin`,`acos`,`atan`,`atan2`,`pow`,`sqrt`,`hypot`,`log`,`exp`,`round`];function Fe(e){return e.indexOf(`(`)!==-1&&Pe.some(t=>e.includes(`${t}(`))}function Ie(e){if(!Pe.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(Pe.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 Le(e){if(e.indexOf(`(`)===-1)return Re(e);let t=N(e);return ze(t),e=M(t),e=Ie(e),e}function Re(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 ze(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=Re(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=Re(t.value);for(let e=0;e<t.nodes.length;e++){if(e==0&&t.nodes[e].kind===`word`){t.nodes[e].value=Re(t.nodes[e].value,!0);continue}ze([t.nodes[e]])}break}t.value=Re(t.value),ze(t.nodes);break;case`separator`:case`word`:t.value=Re(t.value);break;default:Be(t)}}function Be(e){throw Error(`Unexpected value: ${e}`)}var Ve=new Uint8Array(256);function He(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:Ve[t]=41,t++;break;case 91:Ve[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===Ve[t-1]&&t--;break;case 59:if(t===0)return!1}}return!0}var Ue=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=Le(o.slice(n+1));if(!He(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]!==`-`||!He(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=Le(n.slice(e+1,-1));if(!He(t))continue;let i=null;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n===Ue){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=Le(e.slice(1,-1));return!He(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]!==`-`||!He(e)?null:(e=`var(${e})`,{kind:`arbitrary`,value:Le(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=Le(e.slice(1,-1));if(!He(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=Le(n.slice(1,-1));return!He(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=Le(n.slice(1,-1));return!He(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=N(e),n=new Set,r=new Set([`~`,`>`,`+`,`-`,`*`,`/`]);return F(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:P.ReplaceSkip({kind:`function`,value:``,nodes:[e]})}}),n.size>0&&F(t,e=>{if(n.has(e))return n.delete(e),P.ReplaceSkip([])}),at(t),M(t)});function nt(e){return tt.get(e)}var rt=new O(e=>{let t=N(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`?M(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=N(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)||Fe(e)}var jt=RegExp(`^${Ot.source}%$`);function Mt(e){return jt.test(e)||Fe(e)}var Nt=RegExp(`^${Ot.source}\\s*/\\s*${Ot.source}$`);function Pt(e){return Nt.test(e)||Fe(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)||Fe(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 N(t(M([e])))}return A(e,`,`).map(e=>{e=e.trim();let r=N(e),i=null,a=0,o=0,s=!1;return F(r,e=>{switch(e.kind){case`word`:if(Jt.has(e.value.toLowerCase()))return P.Continue;if(Zt.test(e.value.toLowerCase()))return o++,P.Continue;if(e.value[0]===`#`||gt(e.value))return s=!0,P.ReplaceStop(n(e));i=e,a++;break;case`function`:return Xt.has(e.value.toLowerCase())?(s=!0,P.ReplaceStop(n(e))):Yt.has(e.value.toLowerCase())?(o++,P.Skip):(i=e,a++,P.Skip);case`separator`:return P.Continue}}),s?M(r):o<2?e:a===0?`${e} ${t(`currentcolor`)}`:(a===1&&F(r,e=>e===i?(s=!0,P.ReplaceStop(n(e))):P.Skip),s?M(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 L(`@property`,e,[R(`syntax`,n?`"${n}"`:`"*"`),R(`inherits`,`false`),...t?[R(`initial-value`,t)]:[]])}function tn(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 tn(e,t.value);let r=n.resolve(t.value,[`--opacity`]);return r?tn(e,r):Kt(t.value)?tn(e,`${t.value}%`):null}function rn(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 an=/(\d+)_(\d+)/g;function on(e){let t=new en;function n(n,r){function*i(t){for(let n of e.keysInNamespaces(t))yield n.replace(an,(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?Ie(`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=rn(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(L(`@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`)]),I(`: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`)]),I(`: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`)]),()=>I(`: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`)]),()=>I(`: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=>[I(`: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=W(n,t.modifier,e),n===null?void 0:i.color(n)}}{let n=rn(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`)]),I(`: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`)]),I(`: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`)]),()=>I(`:where(& > :not(:last-child))`,[R(`--tw-divide-x-reverse`,`1`)])]),r(`divide-y-reverse`,[()=>z([U(`--tw-divide-y-reverse`,`0`)]),()=>I(`:where(& > :not(:last-child))`,[R(`--tw-divide-y-reverse`,`1`)])]);for(let e of[`solid`,`dashed`,`dotted`,`double`,`none`])r(`divide-${e}`,[()=>I(`: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}`),Se(`@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=W(n,t.modifier,e),n===null?void 0:[R(`background-color`,n)]}}{let n=rn(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=W(n,t.modifier,e),n===null?void 0:i.color(n)}}{let n=rn(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=W(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=rn(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=W(t.value.value,t.modifier,e);return n===null?void 0:[R(`fill`,n)]}let n=rn(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=W(t.value.value,t.modifier,e),n===null?void 0:[R(`stroke`,n)]}}{let n=rn(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=>[I(`&::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=W(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=rn(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),...dn(`--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=W(r,t.modifier,e),r===null?void 0:[s(),R(`--tw-drop-shadow-color`,tn(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),...dn(`--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),...dn(`--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),...dn(`--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=rn(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`,tn(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`),L(`@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=W(n,t.modifier,e),n===null?void 0:[R(`outline-color`,n)]}}{let n=rn(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=W(n,t.modifier,e),n===null?void 0:[R(`color`,n)]}}{let n=rn(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),...un(`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=W(r,t.modifier,e),r===null?void 0:[C(),R(`--tw-text-shadow-color`,tn(r,`var(--tw-text-shadow-alpha)`))]):[C(),R(`--tw-text-shadow-alpha`,n),...un(`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),...un(`text-shadow`,r,n,e=>`var(--tw-text-shadow-color, ${e})`)]}{let n=rn(t,e,[`--text-shadow-color`,`--color`]);if(n)return[C(),R(`--tw-text-shadow-color`,tn(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),...un(`--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=W(r,t.modifier,e),r===null?void 0:[c(),R(`--tw-shadow-color`,tn(r,`var(--tw-shadow-alpha)`))]):[c(),R(`--tw-shadow-alpha`,n),...un(`--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),...un(`--tw-shadow`,r,n,e=>`var(--tw-shadow-color, ${e})`),R(`box-shadow`,o)]}{let n=rn(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),R(`--tw-shadow-color`,tn(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),...un(`--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=W(r,t.modifier,e),r===null?void 0:[c(),R(`--tw-inset-shadow-color`,tn(r,`var(--tw-inset-shadow-alpha)`))]):[c(),R(`--tw-inset-shadow-alpha`,n),...un(`--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),...un(`--tw-inset-shadow`,r,n,e=>`var(--tw-inset-shadow-color, ${e})`),R(`box-shadow`,o)]}{let n=rn(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),R(`--tw-inset-shadow-color`,tn(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=W(n,t.modifier,e),n===null?void 0:[R(`--tw-ring-color`,n)])}{let n=rn(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=W(n,t.modifier,e),n===null?void 0:[R(`--tw-inset-ring-color`,n)])}{let n=rn(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=W(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=rn(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 sn=[`number`,`integer`,`ratio`,`percentage`];function cn(e){let t=w(e.params);return Tn(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}};F(e.nodes,e=>{if(e.kind!==`declaration`||!e.value||!e.value.includes(`--value(`)&&!e.value.includes(`--modifier(`))return;let t=N(e.value);F(t,e=>{if(e.kind!==`function`)return;if(e.value===`--spacing`&&!(r[`--modifier`].usedSpacingNumber&&r[`--value`].usedSpacingNumber))return F(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 P.Stop}}),P.Continue;if(e.value!==`--value`&&e.value!==`--modifier`)return;let t=A(M(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=N(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]!==`]`)&&!sn.includes(t.value)){console.warn(`Unsupported bare value data type: "${t.value}".
13
13
  Only valid data types are: ${sn.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=Te(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=G(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=G(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(an,(e,t,n)=>`${t}.${n}`))}return[{values:e,modifiers:t}]})}:Cn(t)?n=>{n.utilities.static(t,()=>e.nodes.map(Te))}:null}function G(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(!sn.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}=Zn(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(Te);i&&qn(r,n),Kn(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 z([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-${Gn(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-${Gn(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 Gn(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 Kn(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,z([F(e.name,e.params,e.nodes)])),M.Skip})}function qn(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(Te)),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($n(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 Jn(e,t){let n=on(e),r=Wn(e),i=new O(e=>Ze(e,u)),a=new O(e=>Array.from(Ye(e,u))),o=new O(e=>new O(t=>{let n=Qn(t,u,e);try{let e=n.map(e=>e.node);jn(e,u),qn(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}=Zn([r],u,{onInvalidCandidate(){e=!1}});t&&N(i,e=>(e.src??=t,M.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 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 $e(u,e)},printVariant(e){return tt(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 Yn=`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 Xn(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 Zn(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||Xn(n.candidate,r.candidate)}),{astNodes:a,nodeSorting:i}}function Qn(e,t,n){let r=tr(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=rr(n);(e.important||i)&&nr(n);let s={kind:`rule`,selector:o,nodes:n};for(let n of e.variants)if($n(s,n,t.variants)===null)return[];a.push({node:s,propertySort:r})}return a}function $n(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($n(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 er(e){let t=e.options?.types??[];return t.length>1&&t.includes(`any`)}function tr(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=>!er(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=>er(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 nr(e){for(let t of e)t.kind!==`at-root`&&(t.kind===`declaration`?t.important=!0:(t.kind===`rule`||t.kind===`at-rule`)&&nr(t.nodes))}function rr(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=Yn.indexOf(e.value??``);if(n!==-1){t.add(n),i=!0;continue}}let r=Yn.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 ir(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 ar(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 ar(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:
14
+ `);let n=t.value,r=structuredClone(e);F(r.nodes,e=>{if(e.kind===`word`&&e.value===n)return P.ReplaceSkip({kind:`word`,value:`¶`})});let i=`^`.repeat(M([t]).length),a=M([r]).indexOf(`¶`),o=["```css",M([e]),` `.repeat(a)+i,"```"].join(`
15
+ `);console.warn(o)}}),e.value=M(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(F([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=N(e.value);if(F(p,t=>{if(t.kind===`function`){if(t.value===`--value`){o=!0;let a=ln(i,t,n);return a?(s=!0,a.ratio?d=!0:u.set(e,r),P.ReplaceSkip(a.nodes)):(f=!0,P.Stop)}if(t.value===`--modifier`){c=!0;let e=ln(a,t,n);return e?(l=!0,P.ReplaceSkip(e.nodes)):(f=!0,P.Stop)}}}),f)return P.ReplaceSkip([]);e.value=M(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(an,(e,t,n)=>`${t}.${n}`))}return[{values:e,modifiers:t}]})}:wn(t)?n=>{n.utilities.static(t,()=>e.nodes.map(Te))}:null}function ln(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:N(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:N(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:N(t)}}}}}else if(e.kind===`named`&&r.kind===`word`){if(!sn.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:N(`${e.trim()} / ${n.trim()}`),ratio:!0}}return{nodes:N(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:N(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:N(e.value)}}}}function un(e,t,n,r,i=``){let a=!1,o=Qt(t,e=>n==null?r(e):e.startsWith(`current`)?r(tn(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(nn(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))),Se(`@supports (color: lab(from red l a b))`,[R(e,s(o))])]:[R(e,s(o))]}function dn(e,t,n,r,i=``){let a=!1,o=A(t,`,`).map(e=>Qt(e,e=>n==null?r(e):e.startsWith(`current`)?r(tn(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(nn(e,n))))).map(e=>`drop-shadow(${e})`).join(` `);return a?[R(e,i+A(t,`,`).map(e=>`drop-shadow(${Qt(e,r)})`).join(` `)),Se(`@supports (color: lab(from red l a b))`,[R(e,i+o)])]:[R(e,i+o)]}var fn=/^-?[a-z][a-zA-Z0-9_-]*/,pn=37,mn=47,hn=46,gn=97,_n=122,vn=65,yn=90,bn=48,xn=57,Sn=95,Cn=45;function wn(e){let t=fn.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 pn:{if(e!==r.length-1)return!1;let t=(r[e-1]||n[n.length-1]||``).charCodeAt(0);if(t<bn||t>xn)return!1;break}case mn:if(e===r.length-1||i)return!1;i=!0;break;case hn:{let t=(r[e-1]||n[n.length-1]||``).charCodeAt(0);if(t<bn||t>xn)return!1;let i=(r[e+1]||``).charCodeAt(0);if(i<bn||i>xn)return!1;break}case Sn:case Cn:continue;default:if(t>=gn&&t<=_n||t>=vn&&t<=yn||t>=bn&&t<=xn)continue;return!1}}return!0}function Tn(e){if(!e.endsWith(`-*`))return!1;e=e.slice(0,-2);let t=fn.exec(e);if(t===null)return!1;let n=t[0];return e.slice(n.length).length===0}var En={"--alpha":Dn,"--spacing":On,"--theme":kn,theme:An};function Dn(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 tn(i,a)}function On(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 kn(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=N(a);return Fn(e,o),M(e)}return a}function An(e,t,n,...r){n=Pn(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 jn=new RegExp(Object.keys(En).map(e=>`${e}\\(`).join(`|`));function Mn(e,t){let n=0;return F(e,e=>{if(e.kind===`declaration`&&e.value&&jn.test(e.value)){n|=8,e.value=Nn(e.value,e,t);return}e.kind===`at-rule`&&(e.name===`@media`||e.name===`@custom-media`||e.name===`@container`||e.name===`@supports`)&&jn.test(e.params)&&(n|=8,e.params=Nn(e.params,e,t))}),n}function Nn(e,t,n){let r=N(e);return F(r,e=>{if(e.kind===`function`&&e.value in En){let r=A(M(e.nodes).trim(),`,`).map(e=>e.trim()),i=En[e.value](n,t,...r);return P.Replace(N(i))}}),M(r)}function Pn(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 Fn(e,t){F(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 In(){return[]}function Ln(){return[]}function Rn(){return[]}function zn(e,t){let{astNodes:n,nodeSorting:r}=Qn(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 Bn(e){if(e[0]!==`[`||e[e.length-1]!==`]`)return null;let t=1,n=t,r=e.length-1;for(;Vn(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(;Vn(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(;Vn(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&&!Vn(e.charCodeAt(t));)t++;s=e.slice(n,t)}for(;Vn(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(;Vn(e.charCodeAt(t));)t++;return t===r?{attribute:i,operator:a,quote:c,value:s,sensitivity:l}:null}function Vn(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}var Hn=/^@?[a-z0-9][a-zA-Z0-9_-]*(?<![_-])$/,Un=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;F(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&&Jn(r,n),qn(r,e.nodes),e.nodes=r},{compounds:Wn(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:Wn([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 Wn(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 Gn(e){let t=new Un;function n(e,n,{compounds:r}={}){r??=Wn(n),t.static(e,e=>{e.nodes=n.map(t=>Se(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=N(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),M(e)):e.length>=5&&e[0].kind===`word`&&e[2].kind===`word`&&e[2].value===`not`&&e[4].kind===`function`?(e.splice(2,2),M(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`}),M(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),L(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(F([e],(t,r)=>{if(t.kind!==`rule`&&t.kind!==`at-rule`||t.nodes.length>0)return P.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 P.Stop;let l=[];for(let e of s){let t=o(e.selector);if(!t)return n=!1,P.Stop;l.push(I(t,[]))}for(let e of i){let t=a(e);if(!t)return n=!1,P.Stop;l.push(t)}return Object.assign(e,I(`&`,l)),n=!0,P.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(F([t],(e,t)=>{if(e.kind!==`rule`)return P.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,P.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(F([t],(e,t)=>{if(e.kind!==`rule`)return P.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,P.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([L(`@property`,`--tw-content`,[R(`syntax`,`"*"`),R(`initial-value`,`""`),R(`inherits`,`false`)])])};t.static(`before`,t=>{t.nodes=[I(`&::before`,[e(),R(`content`,`var(--tw-content)`),...t.nodes])]},{compounds:0}),t.static(`after`,t=>{t.nodes=[I(`&::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=[I(`&:hover`,[L(`@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(F([e],(e,t)=>{if(e.kind!==`rule`)return P.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,P.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(F([e],(e,t)=>{if(e.kind!==`rule`)return P.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,P.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-${Kn(t.value.value)}]`;if(Bn(n)===null)return null;e.nodes=[I(`&${n}`,e.nodes)]}else{let n=`[aria-${t.value.value}="true"]`;if(Bn(n)===null)return null;e.nodes=[I(`&${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-${Kn(t.value.value)}]`;if(Bn(n)===null)return null;e.nodes=[I(`&${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=[I(`&: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=[I(`&: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=[I(`&: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=[I(`&: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=[L(`@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=[L(`@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=[L(`@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=[L(`@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=[L(`@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=[L(`@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=[L(`@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=[L(`@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 Kn(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 qn(e,t){F(e,e=>{if(e.kind===`at-rule`&&e.name===`@slot`)return P.ReplaceSkip(t);if(e.kind===`at-rule`&&(e.name===`@keyframes`||e.name===`@property`))return Object.assign(e,z([L(e.name,e.params,e.nodes)])),P.Skip})}function Jn(e,t){let n=0;return F(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=I(`&`,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(er(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,P.Replace(r)}),n}function Yn(e,t){let n=on(e),r=Gn(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=$n(t,u,e);try{let e=n.map(e=>e.node);Mn(e,u),Jn(e,u)}catch{return[]}return n})),s=new O(t=>{for(let n of ye(t))e.markUsedVariable(n)});function c(e){let n=[];for(let r of e){let e=!0,{astNodes:i}=Qn([r],u,{onInvalidCandidate(){e=!1}});t&&F(i,e=>(e.src??=t,P.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 zn(this,e)},getClassList(){return In(this)},getVariants(){return Ln(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?tn(a,i):a},trackUsedVariables(e){s.get(e)},canonicalizeCandidates(e,t){return Rn(this,e,t)},storage:{}};return u}var Xn=`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 Zn(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 Qn(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||Zn(n.candidate,r.candidate)}),{astNodes:a,nodeSorting:i}}function $n(e,t,n){let r=nr(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=ir(n);(e.important||i)&&rr(n);let s={kind:`rule`,selector:o,nodes:n};for(let n of e.variants)if(er(s,n,t.variants)===null)return[];a.push({node:s,propertySort:r})}return a}function er(e,t,n,r=0){if(t.kind===`arbitrary`){if(t.relative&&r===0)return null;e.nodes=[Se(t.selector,e.nodes)];return}let{applyFn:i}=n.get(t.root);if(t.kind===`compound`){let a=L(`@slot`);if(er(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;F(a.nodes,t=>{if((t.kind===`rule`||t.kind===`at-rule`)&&t.nodes.length<=0)return t.nodes=e.nodes,P.Skip}),e.nodes=a.nodes;return}if(i(e,t)===null)return null}function tr(e){let t=e.options?.types??[];return t.length>1&&t.includes(`any`)}function nr(e,t){if(e.kind===`arbitrary`){let n=e.value;return e.modifier&&(n=W(n,e.modifier,t.theme)),n===null?[]:[[R(e.property,n)]]}let n=t.utilities.get(e.root)??[],r=[],i=n.filter(e=>!tr(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=>tr(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 rr(e){for(let t of e)t.kind!==`at-root`&&(t.kind===`declaration`?t.important=!0:(t.kind===`rule`||t.kind===`at-rule`)&&rr(t.nodes))}function ir(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=Xn.indexOf(e.value??``);if(n!==-1){t.add(n),i=!0;continue}}let r=Xn.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 ar(e,t){let n=0,r=Se(`&`,e),i=new Set,a=new O(()=>new Set),o=new O(()=>new Set);F([r],(e,r)=>{if(e.kind===`at-rule`){if(e.name===`@keyframes`)return F(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@apply`)throw Error("You cannot use `@apply` inside `@keyframes`.")}),P.Skip;if(e.name===`@utility`){let n=e.params.replace(/-\*$/,``);o.get(n).add(e),F(e.nodes,n=>{if(n.kind===`at-rule`&&n.name===`@apply`){i.add(e);for(let r of or(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 or(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`&&F(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
17
  ${je([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&&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=Zn(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=Te(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*ar(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 or(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=sr(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=R({},[]);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 or(o,a.base,n,r+1,i),f.nodes=cr(e,[R({base:a.base},o)],l,u,d)})()),M.ReplaceSkip(f)}}),o.length>0&&await Promise.all(o),a}function sr(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 cr(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 lr(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 ur(e,{theme:t},n){for(let t of n){let n=hr([t]);n&&e.theme.clearNamespace(`--${n}`,4)}for(let[n,r]of dr(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=hr(n);t&&e.theme.add(`--${t}`,``+r,7)}if(Object.hasOwn(t,`fontFamily`)){{let n=lr(t.fontFamily.sans);n&&e.theme.hasDefault(`--font-sans`)&&(e.theme.add(`--default-font-family`,n,5),e.theme.add(`--default-font-feature-settings`,lr(t.fontFamily.sans,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-font-variation-settings`,lr(t.fontFamily.sans,`fontVariationSettings`)??`normal`,5))}{let n=lr(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`,lr(t.fontFamily.mono,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-mono-font-variation-settings`,lr(t.fontFamily.mono,`fontVariationSettings`)??`normal`,5))}}return t}function dr(e){let t=[];return vr(e,[],(e,n)=>{if(gr(e))return t.push([n,e]),1;if(_r(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 fr={borderWidth:`border-width`,outlineWidth:`outline-width`,ringColor:`ring-color`,ringWidth:`ring-width`,transitionDuration:`transition-duration`,transitionTimingFunction:`transition-timing-function`},pr={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`},mr=/^[a-zA-Z0-9-_%/.]+$/;function hr(e){let t=fr[e[0]];if(t&&e[1]===`DEFAULT`)return`default-${t}`;if(e[0]===`container`)return null;for(let t of e)if(!mr.test(t))return null;let n=pr[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 gr(e){return typeof e==`number`||typeof e==`string`}function _r(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 vr(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`)&&vr(i,a,n)===2))return 2}}function yr(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 br(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function xr(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?!br(e[t])||!br(i[t])?i[t]:xr({},[e[t],i[t]],n,r):a,r.pop()}return e}function Sr(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=yr(r),[a,o]=Cr(e.theme,i),s=n(wr(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=xr({},[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&&wr(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 Cr(e,t){if(t.length===1&&t[0].startsWith(`--`))return[e.get([t[0]]),e.getOptions(t[0])];let n=hr(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)Tr(c,[e??`DEFAULT`],t);for(let[e,t]of o)Tr(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 wr(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 Tr(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 Er=/^[a-z@][a-zA-Z0-9/%._-]*$/;function Dr({designSystem:e,ast:t,resolvedConfig:n,featuresRef:r,referenceMode:i,src:a}){let o={addBase(n){if(i)return;let o=Or(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=kr(n,e.nodes)},{compounds:Un(typeof n==`string`?[n]:n)}):typeof n==`object`&&e.variants.fromAst(t,Or(n),e)},matchVariant(t,n,r){function i(e,t,r){return kr(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,Or(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]===`.`&&Er.test(e.value.slice(1))){let t=e.value;e.value=`&`;let i=l(r),a=t.slice(1),c=i===`&`?Or(n):[I(i,Or(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(Te);return Ar(a,t,i.raw),r.current|=ir(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=Or(o(l,{modifier:d}));return Ar(f,a,s.raw),r.current|=ir(f,e),f}};if(!Er.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:Sr(e,()=>n.theme??{},e=>e),prefix(e){return e},config(e,t){let r=n;if(!e)return r;let i=yr(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 Or(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,Or(n)));else t.push(I(e,Or(r)))}return t}function kr(e,t){return(typeof e==`string`?[e]:e).flatMap(e=>{if(e.trim().endsWith(`}`)){let n=y(e.replace(`}`,`{@slot}}`));return Kn(n,t),n}return I(e,t)})}function Ar(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 jr(e,t){for(let n of Mr(t))e.theme.addKeyframes(n)}function Mr(e){let t=[];if(`keyframes`in e.theme)for(let[n,r]of Object.entries(e.theme.keyframes))t.push(F(`@keyframes`,n,Or(r)));return t}var Nr={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 Pr(e){return{__BARE_VALUE__:e}}var Fr=Pr(e=>{if(V(e.value))return e.value}),Ir=Pr(e=>{if(V(e.value))return`${e.value}%`}),Lr=Pr(e=>{if(V(e.value))return`${e.value}px`}),Rr=Pr(e=>{if(V(e.value))return`${e.value}ms`}),zr=Pr(e=>{if(V(e.value))return`${e.value}deg`}),Br=Pr(e=>{if(e.fraction===null)return;let[t,n]=k(e.fraction,`/`);if(V(t)&&V(n))return e.fraction}),Vr=Pr(e=>{if(V(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Hr={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`,...Br},backdropBlur:({theme:e})=>e(`blur`),backdropBrightness:({theme:e})=>({...e(`brightness`),...Ir}),backdropContrast:({theme:e})=>({...e(`contrast`),...Ir}),backdropGrayscale:({theme:e})=>({...e(`grayscale`),...Ir}),backdropHueRotate:({theme:e})=>({...e(`hueRotate`),...zr}),backdropInvert:({theme:e})=>({...e(`invert`),...Ir}),backdropOpacity:({theme:e})=>({...e(`opacity`),...Ir}),backdropSaturate:({theme:e})=>({...e(`saturate`),...Ir}),backdropSepia:({theme:e})=>({...e(`sepia`),...Ir}),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`,...Lr},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`,...Ir},caretColor:({theme:e})=>e(`colors`),colors:()=>({...Nr}),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`,...Fr},container:{},content:{none:`none`},contrast:{0:`0`,50:`.5`,75:`.75`,100:`1`,125:`1.25`,150:`1.5`,200:`2`,...Ir},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`),...Lr}),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`,...Fr},flexShrink:{0:`0`,DEFAULT:`1`,...Fr},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%`,...Ir},grayscale:{0:`0`,DEFAULT:`100%`,...Ir},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`,...Fr},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`,...Fr},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`,...Fr},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`,...Fr},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))`,...Vr},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))`,...Vr},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`,...zr},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%`,...Ir},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`,...Fr},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`,...Ir},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`,...Fr},outlineColor:({theme:e})=>e(`colors`),outlineOffset:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Lr},outlineWidth:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Lr},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`,...Lr},ringOpacity:({theme:e})=>({DEFAULT:`0.5`,...e(`opacity`)}),ringWidth:{DEFAULT:`3px`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Lr},rotate:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,45:`45deg`,90:`90deg`,180:`180deg`,...zr},saturate:{0:`0`,50:`.5`,100:`1`,150:`1.5`,200:`2`,...Ir},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`,...Ir},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%`,...Ir},skew:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,...zr},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`,...Fr},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`,...Lr},textIndent:({theme:e})=>e(`spacing`),textOpacity:({theme:e})=>e(`opacity`),textUnderlineOffset:{auto:`auto`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Lr},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`,...Rr},transitionDuration:{DEFAULT:`150ms`,0:`0s`,75:`75ms`,100:`100ms`,150:`150ms`,200:`200ms`,300:`300ms`,500:`500ms`,700:`700ms`,1e3:`1000ms`,...Rr},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`,...Fr}};function Ur(e){return{theme:{...Hr,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 Wr={blocklist:[],future:{},experimental:{},prefix:``,important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function Gr(e,t){let n={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(Wr)};for(let e of t)qr(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=Jr(n);return{resolvedConfig:{...n.result,content:n.content,theme:n.theme,plugins:n.plugins},replacedThemeKeys:r}}function Kr(e,t){if(Array.isArray(e)&&br(e[0]))return e.concat(t);if(Array.isArray(t)&&br(t[0])&&br(e))return[e,...t];if(Array.isArray(t))return t}function qr(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??[])qr(e,{path:r,base:n,config:o,reference:i,src:a});for(let t of o)e.plugins.push(t),t.config&&qr(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 Jr(e){let t=new Set,n=Sr(e.design,()=>e.theme,i),r=Object.assign(n,{theme:n,colors:Nr});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]=()=>xr({},n.map(i),Kr)}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 Yr(e,t){let n=e.theme.container||{};if(typeof n!=`object`||!n)return;let r=Xr(n,t);r.length!==0&&t.utilities.static(`container`,()=>r.map(Te))}function Xr({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 Zr({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 K(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=$r(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 $r(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 ei(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 ti=/^[a-z]+$/;async function q({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=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
+ ${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&&F(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 P.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=Qn(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 F([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,F([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 P.Replace(o)}});return n}function*or(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 sr(e,t,n,r=0,i=!1){let a=0,o=[];return F(e,e=>{if(e.kind===`at-rule`&&(e.name===`@import`||e.name===`@reference`)){let s=cr(N(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 sr(o,a.base,n,r+1,i),f.nodes=lr(e,[we({base:a.base},o)],l,u,d)})()),P.ReplaceSkip(f)}}),o.length>0&&await Promise.all(o),a}function cr(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?M(o.nodes):``;continue}if(o.kind===`function`&&o.value.toLowerCase()===`supports`){if(i)return null;i=M(o.nodes);continue}r=M(e.slice(a));break}}return t?{uri:t,layer:n,media:r,supports:i}:null}function lr(e,t,n,r,i){let a=t;if(n!==null){let t=L(`@layer`,n,a);t.src=e.src,a=[t]}if(r!==null){let t=L(`@media`,r,a);t.src=e.src,a=[t]}if(i!==null){let t=L(`@supports`,i[0]===`(`?i:`(${i})`,a);t.src=e.src,a=[t]}return a}function ur(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 dr(e,{theme:t},n){for(let t of n){let n=gr([t]);n&&e.theme.clearNamespace(`--${n}`,4)}for(let[n,r]of fr(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=gr(n);t&&e.theme.add(`--${t}`,``+r,7)}if(Object.hasOwn(t,`fontFamily`)){{let n=ur(t.fontFamily.sans);n&&e.theme.hasDefault(`--font-sans`)&&(e.theme.add(`--default-font-family`,n,5),e.theme.add(`--default-font-feature-settings`,ur(t.fontFamily.sans,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-font-variation-settings`,ur(t.fontFamily.sans,`fontVariationSettings`)??`normal`,5))}{let n=ur(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`,ur(t.fontFamily.mono,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-mono-font-variation-settings`,ur(t.fontFamily.mono,`fontVariationSettings`)??`normal`,5))}}return t}function fr(e){let t=[];return yr(e,[],(e,n)=>{if(_r(e))return t.push([n,e]),1;if(vr(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 pr={borderWidth:`border-width`,outlineWidth:`outline-width`,ringColor:`ring-color`,ringWidth:`ring-width`,transitionDuration:`transition-duration`,transitionTimingFunction:`transition-timing-function`},mr={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`},hr=/^[a-zA-Z0-9-_%/.]+$/;function gr(e){let t=pr[e[0]];if(t&&e[1]===`DEFAULT`)return`default-${t}`;if(e[0]===`container`)return null;for(let t of e)if(!hr.test(t))return null;let n=mr[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 _r(e){return typeof e==`number`||typeof e==`string`}function vr(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 yr(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`)&&yr(i,a,n)===2))return 2}}function br(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 xr(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Sr(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?!xr(e[t])||!xr(i[t])?i[t]:Sr({},[e[t],i[t]],n,r):a,r.pop()}return e}function Cr(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=br(r),[a,o]=wr(e.theme,i),s=n(Tr(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=Sr({},[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&&Tr(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=tn(s,o)),s??i}}function wr(e,t){if(t.length===1&&t[0].startsWith(`--`))return[e.get([t[0]]),e.getOptions(t[0])];let n=gr(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)Er(c,[e??`DEFAULT`],t);for(let[e,t]of o)Er(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 Tr(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 Er(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 Dr=/^[a-z@][a-zA-Z0-9/%._-]*$/;function Or({designSystem:e,ast:t,resolvedConfig:n,featuresRef:r,referenceMode:i,src:a}){let o={addBase(n){if(i)return;let o=kr(n);r.current|=Mn(o,e);let s=L(`@layer`,`base`,o);F([s],e=>{e.src=a}),t.push(s)},addVariant(t,n){if(!Hn.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=Ar(n,e.nodes)},{compounds:Wn(typeof n==`string`?[n]:n)}):typeof n==`object`&&e.variants.fromAst(t,kr(n),e)},matchVariant(t,n,r){function i(e,t,r){return Ar(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=Se(e,kr(n));F([r],e=>{e.src=a}),t.push(r)}continue}let r=g(e),o=!1;if(F(r,e=>{if(e.kind===`selector`&&e.value[0]===`.`&&Dr.test(e.value.slice(1))){let t=e.value;e.value=`&`;let i=l(r),a=t.slice(1),c=i===`&`?kr(n):[Se(i,kr(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 P.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&&F(n,t=>{if(t.kind===`rule`){let n=g(t.selector);F(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 jr(a,t,i.raw),r.current|=ar(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=tn(l,d)),t&&(l=`calc(${l} * -1)`);let f=kr(o(l,{modifier:d}));return jr(f,a,s.raw),r.current|=ar(f,e),f}};if(!Dr.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:Cr(e,()=>n.theme??{},e=>e),prefix(e){return e},config(e,t){let r=n;if(!e)return r;let i=br(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 kr(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(Se(e,[L(`@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(Se(e,kr(n)));else t.push(Se(e,kr(r)))}return t}function Ar(e,t){return(typeof e==`string`?[e]:e).flatMap(e=>{if(e.trim().endsWith(`}`)){let n=y(e.replace(`}`,`{@slot}}`));return qn(n,t),n}return Se(e,t)})}function jr(e,t,n){F(e,e=>{if(e.kind===`rule`){let r=g(e.selector);F(r,e=>{e.kind===`selector`&&e.value===`.${t}`&&(e.value=`.${C(n)}`)}),e.selector=l(r)}})}function Mr(e,t){for(let n of Nr(t))e.theme.addKeyframes(n)}function Nr(e){let t=[];if(`keyframes`in e.theme)for(let[n,r]of Object.entries(e.theme.keyframes))t.push(L(`@keyframes`,n,kr(r)));return t}var Pr={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 Fr(e){return{__BARE_VALUE__:e}}var Ir=Fr(e=>{if(H(e.value))return e.value}),G=Fr(e=>{if(H(e.value))return`${e.value}%`}),Lr=Fr(e=>{if(H(e.value))return`${e.value}px`}),Rr=Fr(e=>{if(H(e.value))return`${e.value}ms`}),zr=Fr(e=>{if(H(e.value))return`${e.value}deg`}),Br=Fr(e=>{if(e.fraction===null)return;let[t,n]=A(e.fraction,`/`);if(H(t)&&H(n))return e.fraction}),Vr=Fr(e=>{if(H(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Hr={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`,...Br},backdropBlur:({theme:e})=>e(`blur`),backdropBrightness:({theme:e})=>({...e(`brightness`),...G}),backdropContrast:({theme:e})=>({...e(`contrast`),...G}),backdropGrayscale:({theme:e})=>({...e(`grayscale`),...G}),backdropHueRotate:({theme:e})=>({...e(`hueRotate`),...zr}),backdropInvert:({theme:e})=>({...e(`invert`),...G}),backdropOpacity:({theme:e})=>({...e(`opacity`),...G}),backdropSaturate:({theme:e})=>({...e(`saturate`),...G}),backdropSepia:({theme:e})=>({...e(`sepia`),...G}),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`,...Lr},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`,...G},caretColor:({theme:e})=>e(`colors`),colors:()=>({...Pr}),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`,...Ir},container:{},content:{none:`none`},contrast:{0:`0`,50:`.5`,75:`.75`,100:`1`,125:`1.25`,150:`1.5`,200:`2`,...G},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`),...Lr}),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`,...Ir},flexShrink:{0:`0`,DEFAULT:`1`,...Ir},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%`,...G},grayscale:{0:`0`,DEFAULT:`100%`,...G},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`,...Ir},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`,...Ir},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`,...Ir},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`,...Ir},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))`,...Vr},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))`,...Vr},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`,...zr},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%`,...G},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`,...Ir},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`,...G},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`,...Ir},outlineColor:({theme:e})=>e(`colors`),outlineOffset:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Lr},outlineWidth:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Lr},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`,...Lr},ringOpacity:({theme:e})=>({DEFAULT:`0.5`,...e(`opacity`)}),ringWidth:{DEFAULT:`3px`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Lr},rotate:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,45:`45deg`,90:`90deg`,180:`180deg`,...zr},saturate:{0:`0`,50:`.5`,100:`1`,150:`1.5`,200:`2`,...G},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`,...G},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%`,...G},skew:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,...zr},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`,...Ir},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`,...Lr},textIndent:({theme:e})=>e(`spacing`),textOpacity:({theme:e})=>e(`opacity`),textUnderlineOffset:{auto:`auto`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Lr},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`,...Rr},transitionDuration:{DEFAULT:`150ms`,0:`0s`,75:`75ms`,100:`100ms`,150:`150ms`,200:`200ms`,300:`300ms`,500:`500ms`,700:`700ms`,1e3:`1000ms`,...Rr},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`,...Ir}};function Ur(e){return{theme:{...Hr,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 Wr={blocklist:[],future:{},experimental:{},prefix:``,important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function Gr(e,t){let n={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(Wr)};for(let e of t)qr(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=Jr(n);return{resolvedConfig:{...n.result,content:n.content,theme:n.theme,plugins:n.plugins},replacedThemeKeys:r}}function Kr(e,t){if(Array.isArray(e)&&xr(e[0]))return e.concat(t);if(Array.isArray(t)&&xr(t[0])&&xr(e))return[e,...t];if(Array.isArray(t))return t}function qr(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??[])qr(e,{path:r,base:n,config:o,reference:i,src:a});for(let t of o)e.plugins.push(t),t.config&&qr(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 Jr(e){let t=new Set,n=Cr(e.design,()=>e.theme,i),r=Object.assign(n,{theme:n,colors:Pr});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]=()=>Sr({},n.map(i),Kr)}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 Yr(e,t){let n=e.theme.container||{};if(typeof n!=`object`||!n)return;let r=Xr(n,t);r.length!==0&&t.utilities.static(`container`,()=>r.map(Te))}function Xr({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(L(`@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,L(`@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(L(`@media`,`(width >= theme(--breakpoint-${t}))`,[R(`padding-inline`,n)]))}}if(a)for(let[,e]of a)i.push(e);return i}function Zr({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 $r(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=[L(`@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=ei(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 ei(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 ti(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 ni=/^[a-z]+$/;async function ri({designSystem:e,base:t,ast:n,loadModule:r,sources:i}){let a=0,o=[],s=[];F(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:
21
21
 
22
22
  ${je([t])}
23
23
 
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 \`${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=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.
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,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|=ni({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|=ni({designSystem:e,base:t,ast:n,sources:i,configs:l,pluginDetails:u}),a}function ni({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}=Gr(e,[{config:Ur(e.theme),base:t,reference:!0,src:void 0},...s,{config:{plugins:[Zr]},base:t,reference:!0,src:void 0}]),{resolvedConfig:l,replacedThemeKeys:u}=Gr(e,s),d={designSystem:e,ast:n,resolvedConfig:c,featuresRef:{set current(e){o|=e}}},f=Dr({...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(Dr({...d,referenceMode:t??!1,src:n}));if(ur(e,l,u),jr(e,l),ei(l,e),K(l,e),Yr(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.`)),!ti.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=Ee(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:
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,P.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,P.Replace([])}}),Qr(e);let c=e.resolveThemeValue;if(e.resolveThemeValue=function(r,o){return r.startsWith(`--`)?c(r,o):(a|=ii({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|=ii({designSystem:e,base:t,ast:n,sources:i,configs:l,pluginDetails:u}),a}function ii({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}=Gr(e,[{config:Ur(e.theme),base:t,reference:!0,src:void 0},...s,{config:{plugins:[Zr]},base:t,reference:!0,src:void 0}]),{resolvedConfig:l,replacedThemeKeys:u}=Gr(e,s),d={designSystem:e,ast:n,resolvedConfig:c,featuresRef:{set current(e){o|=e}}},f=Or({...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(Or({...d,referenceMode:t??!1,src:n}));if(dr(e,l,u),Mr(e,l),ti(l,e),$r(l,e),Yr(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.`)),!ni.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;F(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?P.Stop:P.ReplaceStop(I(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 ri({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 J=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function ii(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=ai(s)?oi(s):k(s,`,`),l=l.flatMap(e=>ii(e));let u=ii(c);for(let e of u)for(let t of l)n.push(r+t+e);return n}function ai(e){return J.test(e)}function oi(e){let t=e.match(J);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 si(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 ci=/^[a-z]+$/;function li(){throw Error("No `loadModule` function provided to `compile`")}function Y(){throw Error("No `loadStylesheet` function provided to `compile`")}function X(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=li,loadStylesheet:i=Y}={}){let a=0;e=[R({base:t},e)],a|=await or(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=Ee(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=cn(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 ii(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([R({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=[R({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]=X(e.params);if(a|=64,n.context.reference&&(t|=2),r){if(!ci.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=je([F(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 ai({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:[]};F(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 oi=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function si(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=ci(s)?li(s):A(s,`,`),l=l.flatMap(e=>si(e));let u=si(c);for(let e of u)for(let t of l)n.push(r+t+e);return n}function ci(e){return oi.test(e)}function li(e){let t=e.match(oi);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 ui(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 di=/^[a-z]+$/;function K(){throw Error("No `loadModule` function provided to `compile`")}function fi(){throw Error("No `loadStylesheet` function provided to `compile`")}function pi(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 mi(e,{base:t=``,from:n,loadModule:r=K,loadStylesheet:i=fi}={}){let a=0;e=[we({base:t},e)],a|=await sr(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;F(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 P.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=cn(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 si(t))e.push(n)}else m.push({base:n.context.base,pattern:a,negated:t});return P.ReplaceSkip([])}if(e.name===`@variant`&&(n.parent===null?e.nodes.length===0?e.name=`@custom-variant`:(F(e.nodes,t=>{if(t.kind===`at-rule`&&t.name===`@slot`)return e.name=`@custom-variant`,P.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(!Hn.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(I(i.join(`, `),e.nodes));for(let r of n)t.push(Se(r,e.nodes));e.nodes=t},{compounds:Wn([...i,...n])})}),l.set(t,new Set)}else{let n=new Set;F(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 P.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);F(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@tailwind`&&e.params===`utilities`)return e.params+=` source(${t})`,P.ReplaceStop([we({sourceBase:n.context.base},[e])])})}else if(i.startsWith(`theme(`)){let t=i.slice(6,-1),n=t.includes(`reference`);F(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 P.Continue}if(e.name===`@theme`)return e.params+=` `+t,P.Skip}})}else if(i.startsWith(`prefix(`)){let t=i.slice(7,-1);F(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@theme`)return e.params+=` prefix(${t})`,P.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 P.Replace(e.nodes);return P.Continue}if(e.name===`@theme`){let[t,r]=pi(e.params);if(a|=64,n.context.reference&&(t|=2),r){if(!di.test(r))throw Error(`The prefix "${r}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);s.prefix=r}return F(e.nodes,n=>{if(n.kind===`at-rule`&&n.name===`@keyframes`)return s.addKeyframes(n),P.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([L(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?M.ReplaceSkip([]):(d=P(`:root, :host`,[]),d.src=e.src,M.ReplaceSkip(d))}});let v=Jn(s,f?.src);if(o&&(v.important=o),g.length>0)for(let e of g)v.invalidCandidates.add(e);a|=await q({designSystem:v,base:t,ast:e,loadModule:r,sources:m});for(let e of c.keys())v.variants.static(e,()=>{});for(let e of si(l,{onCircularDependency(e,t){let n=je(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:
35
+ ${r}`)}),d?P.ReplaceSkip([]):(d=I(`:root, :host`,[]),d.src=e.src,P.ReplaceSkip(d))}});let v=Yn(s,f?.src);if(o&&(v.important=o),g.length>0)for(let e of g)v.invalidCandidates.add(e);a|=await ri({designSystem:v,base:t,ast:e,loadModule:r,sources:m});for(let e of c.keys())v.variants.static(e,()=>{});for(let e of ui(l,{onCircularDependency(e,t){let n=je(e.map((n,r)=>L(`@custom-variant`,n,[L(`@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=L(C(e),n.value);r.src=n.src,t.push(r)}let n=v.theme.getKeyframes();for(let t of n)e.push(R({theme:!0},[z([t])]));d.nodes=[R({theme:!0},t)]}if(a|=qn(e,v),a|=jn(e,v),a|=ir(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??=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=Zn(u,n,{onInvalidCandidate:l}).astNodes;return t.from&&N(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 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=je(n,!!t.from),i=n),a},buildSourceMap(){return ri({ast:i})}}}var pi={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=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|=Jn(e,v),a|=Mn(e,v),a|=ar(e,v),f){let e=f;e.kind=`context`,e.context={}}return F(e,e=>{if(e.kind===`at-rule`)return e.name===`@utility`?P.Replace([]):P.Skip}),{designSystem:v,ast:e,sources:m,root:_,utilitiesNode:f,features:a,inlineCandidates:h}}async function hi(e,t={}){let{designSystem:n,ast:r,sources:i,root:a,utilitiesNode:o,features:s,inlineCandidates:c}=await mi(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=Qn(u,n,{onInvalidCandidate:l}).astNodes;return t.from&&F(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 gi(e,t={}){let n=y(e,{from:t.from}),r=await hi(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 ai({ast:i})}}}var _i={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
- `},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,Si=new mi;async function Ci(){Si.start(`Create compiler`),Si.start(`Reading Stylesheets`);let e=document.querySelectorAll(`style[type="${hi}"]`),t=``;for(let n of e)ki(n),t+=n.textContent+`
952
- `;if(t.includes(`@import`)||(t=`@import "tailwindcss";${t}`),Si.end(`Reading Stylesheets`,{size:t.length,changed:vi!==t}),vi!==t){vi=t,Si.start(`Compile CSS`);try{gi=await fi(t,{base:`/`,loadStylesheet:wi,loadModule:Ti})}finally{Si.end(`Compile CSS`),Si.end(`Create compiler`)}_i.clear()}}async function wi(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 Si.hit(`Loaded stylesheet`,{id:e,base:t,size:r.content.length}),r}catch(n){throw Si.hit(`Failed to load stylesheet`,{id:e,base:t,error:n.message??n}),n}}async function Ti(){throw Error(`The browser build does not support plugins or config files.`)}async function Ei(e){if(!gi)return;let t=new Set;Si.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));Si.end(`Collect classes`,{count:t.size}),(t.size!==0||e!==`incremental`)&&(Si.start(`Build utilities`),yi.textContent=gi.build(Array.from(t)),Si.end(`Build utilities`))}function Di(e){async function t(){if(!gi&&e!==`full`)return;let t=xi++;Si.start(`Build #${t} (${e})`),e===`full`&&await Ci(),Si.start(`Build`),await Ei(e),Si.end(`Build`),Si.end(`Build #${t} (${e})`)}bi=bi.then(t).catch(e=>Si.error(e))}var Oi=new MutationObserver(()=>Di(`full`));function ki(e){Oi.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&&(ki(e),t++);for(let e of r.addedNodes)e.nodeType===1&&e!==yi&&n++;r.type===`attributes`&&n++}if(t>0)return Di(`full`);if(n>0)return Di(`incremental`)}).observe(document.documentElement,{attributes:!0,attributeFilter:[`class`],childList:!0,subtree:!0}),Di(`full`),document.head.append(yi)})();var e=[`h`,`v`,`tl`,`tr`,`bl`,`br`,`teeUp`,`teeDown`,`teeLeft`,`teeRight`,`cross`],t=new Map,n=new Set;function r(e,r){let i=e.toLowerCase().trim();t.has(i)&&console.warn(`[monowind] registerBorderGlyphs: replacing "${i}" (last registration wins).`);for(let e of Object.values(r)){for(let t of Object.values(e))if(Array.isArray(t)){for(let e of t)typeof e==`object`&&Object.freeze(e);Object.freeze(t)}Object.freeze(e)}t.set(i,Object.freeze(r));for(let e of n)e()}function i(e){if(e)return t.get(e.toLowerCase().trim())}function a(e){return n.add(e),()=>n.delete(e)}var o={radius:1,tl:`╭`,tr:`╮`,bl:`╰`,br:`╯`},s={solid:[o],dashed:[o],dotted:[o]};function c(e,t,n,r,i){let a=r.roles[t];if(r.band?.[t]!==void 0)return a;let o=i?.[e],c=o?.rounded??(o?.[t]===void 0?s[e]??[]:[]),l={radius:0,glyph:a};for(let e of c){let r=e[t];if(r===void 0)continue;let i=Math.abs(e.radius-n),a=Math.abs(l.radius-n);(i<a||i===a&&e.radius>l.radius)&&(l={radius:e.radius,glyph:r})}return l.glyph}function l(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 u=[` `,`─`,`─`,`─`,`│`,`┌`,`┐`,`┬`,`│`,`└`,`┘`,`┴`,`│`,`├`,`┤`,`┼`],d=[` `,`═`,`═`,`═`,`║`,`╔`,`╗`,`╦`,`║`,`╚`,`╝`,`╩`,`║`,`╠`,`╣`,`╬`];function f(e){let t={};for(let n=1;n<16;n++){let r=l(n);r&&!(r in t)&&(t[r]=e[n])}return t}var p=e=>f(Array.from({length:16},()=>e)),m=[` `,`━`,`━`,`━`,`┃`,`┏`,`┓`,`┳`,`┃`,`┗`,`┛`,`┻`,`┃`,`┣`,`┫`,`╋`],h=f(u),g=f(d),_=f(m),v={solid:h,double:g,dashed:{...h,h:`╌`,v:`╎`},dotted:{...h,h:`┄`,v:`┊`}},y={solid:[{width:2,..._}],dashed:[{width:2,..._,h:`╍`,v:`╏`}],dotted:[{width:2,..._,h:`┉`,v:`┋`}]},b=t=>{let n={};if(t)for(let r of e)t[r]!==void 0&&(n[r]=t[r]);return n},x=new WeakMap,S=new Map,C=e=>{if(!e)return S;let t=x.get(e);return t||x.set(e,t=new Map),t};function w(e,t,n){let r=C(n),i=`${e}:${t}`,a=r.get(i);if(a)return a;let o=n?.[e],s=o?.weights??(o?[]:y[e]??[]),c=null,l=Math.abs(t-1);for(let e of s){let n=Math.abs(e.width-t);(n<l||n===l&&e.width>(c?.width??1))&&(c=e,l=n)}let u={roles:{...v[e],...b(o),...b(c)},cells:c?.cells??1,band:c};return r.set(i,u),u}function T(e,t,n){return w(e,t,n).band?t:1}r(`default`,{});var E=[{width:2,cells:2}];r(`rounded`,{solid:{tl:`╭`,tr:`╮`,bl:`╰`,br:`╯`,weights:E},dashed:{weights:E},dotted:{weights:E}});var D={...p(`+`),h:`-`,v:`|`};r(`ascii`,{solid:{...D,scrollTrack:`|`,scrollThumb:`#`,shadow:[`#`,`+`,`:`,`.`],weights:E},double:{...D,h:`=`},dashed:{...D,weights:E},dotted:{...D,h:`.`,v:`:`,weights:E}}),r(`single`,{solid:{rounded:[],weights:E},double:{...h,weights:E},dashed:{...h,weights:E},dotted:{...h,weights:E}});var O=[{width:2,...g}];r(`cp437`,{solid:{rounded:[],weights:O},dashed:{...h,weights:O},dotted:{...h,weights:O}});function ee(e){let t=e?.solid?.shadow;return t&&t.length>0?t:[`█`,`▓`,`▒`,`░`]}function k(e){return{track:e?.solid?.scrollTrack??`░`,thumb:e?.solid?.scrollThumb??`█`}}r(`blocks`,{solid:{...p(`█`),weights:E},double:{...p(`█`),weights:E},dashed:{...p(`▒`),weights:E},dotted:{...p(`░`),weights:E}});var te=new WeakMap;function ne(e,t){let n=te.get(e);n||te.set(e,n=new Set),!n.has(t)&&(n.add(t),console.warn(`[monowind] ${t}`,re(e)))}function re(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 A=new Map,ie=new Set;function ae(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}A.has(t)&&console.warn(`[monowind] registerLeafRenderer: replacing existing renderer for <${t}> (last registration wins).`),A.set(t,{...e,tag:t}),de()}function oe(){de()}function se(e){return A.get(e.toLowerCase())}function ce(){let e=new Set;for(let t of A.values())for(let n of t.observedAttributes??[])e.add(n.toLowerCase());return[...e]}function le(e){return ie.add(e),()=>ie.delete(e)}function ue(e,t){try{return e.render(t)}catch(n){return ne(t,`<${e.tag}> renderer threw; rendering nothing. ${String(n)}`),null}}function de(){for(let e of ie)e()}var fe=new WeakMap,pe=[],me=new Map;function he(e,t,n){let r=fe.get(e);fe.set(e,t);let i=me.get(e);if(i){if(t!==i.toValue){let n=j(i);return me.delete(e),pe.push({el:e,from:n,to:t}),n}let n=j(i);return n===i.toValue&&me.delete(e),n}return r!==void 0&&r!==t&&n.transitionDuration.split(`,`).some(e=>parseFloat(e)>0)?(pe.push({el:e,from:r,to:t}),r):t}function ge(e){let t=!1;for(let n=pe.length-1;n>=0;n--){let{el:r,from:i,to:a}=pe[n];if(!r.isConnected){pe.splice(n,1);continue}if(!e.contains(r))continue;pe.splice(n,1),t=!0;let o=M(getComputedStyle(r),`background-color`),s=xe(i),c=xe(a);o&&s&&c&&me.set(r,{from:s,to:c,toValue:a,start:performance.now()+o.delay,duration:o.duration,easing:o.easing})}return t}function _e(){let e=performance.now();for(let[t,n]of me)(!t.isConnected||e>=n.start+n.duration)&&me.delete(t);return me.size>0}function j(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 ve={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 M(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=N(i(e.transitionDuration));return a<=0?null:{duration:a*1e3,delay:N(i(e.transitionDelay))*1e3,easing:ye(i(e.transitionTimingFunction))}}function N(e){let t=parseFloat(e);return Number.isFinite(t)?e.endsWith(`ms`)?t/1e3:t:0}function ye(e){if(e===`linear`)return e=>e;let t=ve[e];if(t)return be(...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 be(e,t,r,i)}return e=>e}function be(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 xe(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{...L(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=I(e.r,e.g,e.b),o=I(t.r,t.g,t.b);return{...L(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 P(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function F(e){return e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055}function I(e,t,n){let r=P(e),i=P(t),a=P(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 L(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:F(4.0767416621*r-3.3077115913*i+.2309699292*a),g:F(-1.2684380046*r+2.6097574011*i-.3413193965*a),b:F(-.0041960863*r-.7034186147*i+1.707614701*a)}}var we=e=>e===`oklch`?2:e===`hsl`?0:-1,R=e=>Math.min(1,Math.max(0,e)),z=(e,t=1)=>{if(e===`none`)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?n/100*t:n:NaN};function Te(e,t){let[n,r]=e.split(`/`),i=n.trim().split(/[\s,]+/).filter(Boolean),a=r===void 0?1:z(r.trim());return t&&r===void 0&&i.length===4&&(a=z(i.pop())),{tokens:i,alpha:Number.isFinite(a)?R(a):1}}var Ee=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,De=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;function Oe(e,t,n){let r=Math.cbrt(.4122214708*e+.5363325363*t+.0514459929*n),i=Math.cbrt(.2119034982*e+.6806995451*t+.1073969566*n),a=Math.cbrt(.0883024619*e+.2817188376*t+.6299787005*n);return[.2104542553*r+.793617785*i-.0040720468*a,1.9779984951*r-2.428592205*i+.4505937099*a,.0259040371*r+.7827717662*i-.808675766*a]}function ke(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[4.0767416621*r-3.3077115913*i+.2309699292*a,-1.2684380046*r+2.6097574011*i-.3413193965*a,-.0041960863*r-.7034186147*i+1.707614701*a]}var Ae=(e,t,n,r)=>{let[i,a,o]=ke(e,t,n);return{r:R(De(i)),g:R(De(a)),b:R(De(o)),a:r}};function je(e){let t=e.trim().toLowerCase();if(t===`transparent`)return{r:0,g:0,b:0,a:0};let n=/^([a-z-]+)\((.*)\)$/.exec(t);if(!n)return null;let[,r,i]=n,{tokens:a,alpha:o}=Te(i,r===`rgb`||r===`rgba`);switch(r){case`rgb`:case`rgba`:{let[e,t,n]=a.map(e=>z(e,255)/255);return e===void 0||[e,t,n].some(e=>!Number.isFinite(e))?null:{r:R(e),g:R(t),b:R(n),a:o}}case`oklab`:{let[e,t,n]=[z(a[0]??``),z(a[1]??``,.4),z(a[2]??``,.4)];return[e,t,n].some(e=>!Number.isFinite(e))?null:Ae(e,t,n,o)}case`oklch`:{let[e,t,n]=[z(a[0]??``),z(a[1]??``,.4),z(a[2]??``)];if([e,t,n].some(e=>!Number.isFinite(e)))return null;let r=n*Math.PI/180;return Ae(e,t*Math.cos(r),t*Math.sin(r),o)}case`color`:{let[e,...t]=a,[n,r,i]=t.map(e=>z(e));return n===void 0||[n,r,i].some(e=>!Number.isFinite(e))?null:e===`srgb-linear`?{r:R(De(n)),g:R(De(r)),b:R(De(i)),a:o}:{r:R(n),g:R(r),b:R(i),a:o}}default:return null}}var Me=e=>/^(?:rgba?|hsla?)\(|^transparent$|^#|^[a-z]+$/i.test(e.trim()),Ne=(e,t,n)=>{let r=Math.max(e,t,n),i=Math.min(e,t,n),a=(r+i)/2,o=r-i;if(o<1e-9)return[NaN,a<=1e-9||a>=1-1e-9?NaN:0,a];let s=o/(1-Math.abs(2*a-1));return[((r===e?(t-n)/o%6:r===t?(n-e)/o+2:(e-t)/o+4)*60%360+360)%360,s,a]},Pe=(e,t,n,r)=>{let i=((Number.isNaN(e)?0:e)%360+360)%360,a=e=>{let r=(e+i/30)%12;return n-t*Math.min(n,1-n)*Math.max(-1,Math.min(r-3,9-r,1))};return{r:R(a(0)),g:R(a(8)),b:R(a(4)),a:r}};function Fe({r:e,g:t,b:n,a:r},i){if(i===`srgb`)return{c:[e,t,n],a:r};if(i===`hsl`)return{c:Ne(e,t,n),a:r};let a=[Ee(e),Ee(t),Ee(n)];if(i===`srgb-linear`)return{c:a,a:r};let[o,s,c]=Oe(...a);if(i===`oklab`)return{c:[o,s,c],a:r};let l=Math.hypot(s,c);return{c:[o,l,l<1e-6?NaN:(Math.atan2(c,s)*180/Math.PI%360+360)%360],a:r}}function Ie(e,t,n,r){for(let n=0;n<3;n++)Number.isNaN(e.c[n])&&(e.c[n]=Number.isNaN(t.c[n])?0:t.c[n]),Number.isNaN(t.c[n])&&(t.c[n]=e.c[n]);let i=we(n);if(i<0)return;let a=e=>(e%360+360)%360,o=a(t.c[i])-a(e.c[i]);r===`shorter`?o>180?o-=360:o<-180&&(o+=360):r===`longer`?o>0&&o<180?o-=360:o>-180&&o<=0&&(o+=360):r===`increasing`?o<0&&(o+=360):o>0&&(o-=360),t.c[i]=e.c[i]+o}function Le(e,t,n,r){let i=e.a+(t.a-e.a)*n;if(i===0)return{r:0,g:0,b:0,a:0};let a=we(r),o=(e,t)=>e.c[t]||0,s=r=>r===a?o(e,r)+(o(t,r)-o(e,r))*n:(o(e,r)*e.a*(1-n)+o(t,r)*t.a*n)/i,[c,l,u]=[s(0),s(1),s(2)];switch(r){case`srgb`:return{r:c,g:l,b:u,a:i};case`srgb-linear`:return{r:R(De(c)),g:R(De(l)),b:R(De(u)),a:i};case`hsl`:return Pe(c,l,u,i);case`oklab`:return Ae(c,l,u,i);default:{let e=u*Math.PI/180;return Ae(c,l*Math.cos(e),l*Math.sin(e),i)}}}function Re(e,t){let n=e.a+t.a*(1-e.a);if(n===0)return{r:0,g:0,b:0,a:0};let r=(r,i)=>(r*e.a+i*t.a*(1-e.a))/n;return{r:r(e.r,t.r),g:r(e.g,t.g),b:r(e.b,t.b),a:n}}function ze({r:e,g:t,b:n,a:r}){let i=e=>Math.round(R(e)*255),a=`${i(e)} ${i(t)} ${i(n)}`;return r>=1?`rgb(${a})`:`rgb(${a} / ${Math.round(r*1e3)/1e3})`}function Be(e){let t=je(e);if(t)return t.a;let n=/\/\s*([\d.]+%?)\s*\)$/.exec(e.trim()),r=n?z(n[1]):1;return Number.isFinite(r)?R(r):1}function Ve(e,t,n){let r=e.border;if(r.top===0&&r.right===0&&r.bottom===0&&r.left===0)return;let a=Math.max(r.top,r.right,r.bottom,r.left);for(let o=0;o<a;o++){let a={top:o<r.top,right:o<r.right,bottom:o<r.bottom,left:o<r.left},s={top:Math.min(o,r.top),right:Math.min(o,r.right),bottom:Math.min(o,r.bottom),left:Math.min(o,r.left)},c={x:t.x+s.left,y:t.y+s.top,width:t.width-s.left-s.right,height:t.height-s.top-s.bottom};if(c.width<=0||c.height<=0)continue;let l={tl:Math.max(0,e.borderRadius.tl-o),tr:Math.max(0,e.borderRadius.tr-o),bl:Math.max(0,e.borderRadius.bl-o),br:Math.max(0,e.borderRadius.br-o)};Ue(n,e.borderStyle,e.borderWeight,e.borderColor,l,c,a,i(e.glyphSet))}}function He(e,t,n,r){let a=e.boxShadow.filter(e=>e.inset===n);if(a.length===0)return;let o=ee(i(e.glyphSet)),s=o.length-1,{border:c}=e,l={x:t.x+c.left,y:t.y+c.top,width:t.width-c.left-c.right,height:t.height-c.top-c.bottom};for(let e of a.slice().reverse()){let i=Be(e.color);if(i===0)continue;let a=Math.round((1-Math.sqrt(i))*s),c=i<1?`color-mix(in srgb, ${e.color} ${Math.round(i*100)}%, var(--mw-fg, canvastext))`:e.color,u=Math.max(0,Math.round(e.blur/2)),d=Array.from({length:u+1},(e,t)=>{if(t===u)return{glyph:o[a],color:c};let n=a+Math.round((u-t)*(s-a)/u),r=Math.round(100*(t+1)/(u+1));return{glyph:o[n],color:`color-mix(in srgb, ${c} ${r}%, transparent)`}});if(n){let t={x0:l.x+e.x+e.spread,y0:l.y+e.y+e.spread,x1:l.x+e.x+l.width-e.spread,y1:l.y+e.y+l.height-e.spread};for(let e=l.y;e<l.y+l.height;e++)for(let n=l.x;n<l.x+l.width;n++){let i=Math.min(n-t.x0,t.x1-1-n,e-t.y0,t.y1-1-e);if(i>=u)continue;let a=i<0?u:u-1-i;r.push({...d[a],x:n,y:e,length:1})}continue}let f=e.spread+u,p=t.x+e.x-f,m=t.y+e.y-f,h=t.x+e.x+t.width+f,g=t.y+e.y+t.height+f;for(let e=m;e<g;e++)for(let n=p;n<h;n++){if(n>=t.x&&n<t.x+t.width&&e>=t.y&&e<t.y+t.height)continue;let i=Math.min(n-p,h-1-n,e-m,g-1-e,u);r.push({...d[i],x:n,y:e,length:1})}}}function Ue(e,t,n,r,i,a,o,s){let l=w(t.top,n.top,s).roles,u=w(t.right,n.right,s).roles,d=w(t.bottom,n.bottom,s).roles,f=w(t.left,n.left,s).roles,p=(e,r,a)=>{let o=t[e]===t[r]?t[e]:`solid`,l=Math.max(T(t[e],n[e],s),T(t[r],n[r],s));return c(o,a,i[a],w(o,l,s),s)},{x:m,y:h,width:g,height:_}=a,v=g>=2&&_>=2,y=m+ +!!o.left,b=m+g-+!!o.right,x=h+ +!!o.top,S=h+_-+!!o.bottom;if(o.top&&b>y&&e.push({glyph:l.h,x:y,y:h,length:b-y,color:r.top}),o.bottom&&_>+!!o.top&&b>y&&e.push({glyph:d.h,x:y,y:h+_-1,length:b-y,color:r.bottom}),o.left)for(let t=x;t<S;t++)e.push({glyph:f.v,x:m,y:t,length:1,color:r.left});if(o.right&&g>+!!o.left)for(let t=x;t<S;t++)e.push({glyph:u.v,x:m+g-1,y:t,length:1,color:r.right});v&&(o.top&&o.left&&e.push({glyph:p(`top`,`left`,`tl`),x:m,y:h,length:1,color:r.top}),o.top&&o.right&&e.push({glyph:p(`top`,`right`,`tr`),x:m+g-1,y:h,length:1,color:r.top}),o.bottom&&o.left&&e.push({glyph:p(`bottom`,`left`,`bl`),x:m,y:h+_-1,length:1,color:r.bottom}),o.bottom&&o.right&&e.push({glyph:p(`bottom`,`right`,`br`),x:m+g-1,y:h+_-1,length:1,color:r.bottom}))}function We(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,a=null;for(let o of e.children)We(o,e)?(o.style.zIndex??0)<0?(t??=[]).push(o):(a??=[]).push(o):o.inlineBox?(i??=[]).push(o):o.style.float===`none`?(n??=[]).push(o):(r??=[]).push(o);return t&&t.length>1&&t.sort((e,t)=>(e.style.zIndex??0)-(t.style.zIndex??0)),a&&a.length>1&&a.sort((e,t)=>(e.style.zIndex??0)-(t.style.zIndex??0)),!t&&n&&!r&&!i&&!a?n:!t&&!n&&!r&&i&&!a?i:!t&&!n&&!r&&!i&&a?a:[...t??[],...n??[],...r??[],...i??[],...a??[]]}function Ke(e,t,n,r){return w(e,t,r).roles[n]}function qe(e,t,n,r,i,a,o){let s=l((n?8:0)|(r?4:0)|(i?2:0)|!!a);return s?w(e,t,o).roles[s]:` `}function Je(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=Ke(e.ruleX.style,e.ruleX.weight,`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`,u=Math.max(e.ruleY.weight,e.ruleX?.weight??0);for(let d of o){for(let f=0;f<c;f++){let p=d.line+f;for(let f=d.start;f<d.end;f++){let d=l(a,s,f,p),m=l(a,s,f,p+1);t.push({glyph:d||m?qe(i?`double`:`solid`,u,d,m,l(o,c,p,f),l(o,c,p,f+1),e.glyphs):Ke(e.ruleY.style,e.ruleY.weight,`h`,e.glyphs),x:n+f,y:r+p,length:1,color:e.ruleY.color})}}Xe(e,t,`y`,d.line,d.start,d.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)=>{let u=o.style===`double`&&e.borderStyle[i]===`double`?`double`:`solid`,d=Math.max(o.weight,T(e.borderStyle[i],e.borderWeight[i],e.glyphs));t.push({glyph:qe(u,d,a,s,c,l,e.glyphs),x:n,y:r,length:1,color:e.borderColor[i]})};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,`top`,!1,!0,!0,!0),a>=e.contentHeight&&e.padding.bottom===0&&e.border.bottom>0&&d(n,u-e.border.bottom,`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,`left`,!0,!0,!1,!0),a>=e.contentWidth&&e.padding.right===0&&e.border.right>0&&d(l-e.border.right,n,`right`,!0,!0,!0,!1)}}var Ze={double:3,solid:2,dashed:1,dotted:0},Qe=8,$e=4,et=2,tt=1,nt=(e,t)=>e!=null&&t<e.width,rt=(e,t)=>Math.max(1,e?.width??0,t?.width??0);function it(e){let{vLines:t,hLines:n,widths:r,rowHeights:i,colX:a,rowY:o}=e,s=r.length,c=i.length;return{lineX:e=>e<s?a[e]-t[e]:a[s-1]+r[s-1],lineY:e=>e<c?o[e]-n[e]:o[c-1]+i[c-1]}}function at(e,t,{lineX:n,lineY:r}){let{vLines:i,hLines:a,widths:o,cells:s}=t,c=o.length,l=new Map,u=e=>{l.set(e,l.size);for(let t of Ge(e))u(t)};u(e);let d=e=>e?l.get(e)??-1:-1,f=new Map,p=new Set;for(let e of s)for(let o of e){if(!o)continue;let{shift:e,owner:s}=ct(o);if(!s||p.has(s))continue;p.add(s);let{r0:l,r1:u,c0:m,c1:h}=st(t,s),g=s.style.tableRole!==`cell`,_={x0:t.contentLeft+e.x+n(g?0:m),x1:t.contentLeft+e.x+(g?n(c)+i[c]:n(h+1)+i[h+1]),rank:d(s),shift:e},v=t.contentTop+e.y+r(l),y=t.contentTop+e.y+r(u+1)+a[u+1];for(let e=v;e<y;e++){let t=f.get(e);t?t.push(_):f.set(e,[_])}}return{rankOf:d,coveredAt:(e,t,n,r)=>f.get(t)?.some(t=>t.rank>n&&(t.shift.x!==r.x||t.shift.y!==r.y)&&e>=t.x0&&e<t.x1)??!1}}function ot(e,t,n){let{vLines:r,hLines:i,vSegments:a,hSegments:o,widths:s,rowHeights:c,colX:l,rowY:u,cells:d,set:f}=t,p=s.length,m=c.length,h=it(t),{lineX:g,lineY:_}=h,{rankOf:v,coveredAt:y}=at(e,t,h),b=new Map,x=0,S=(e,r,i,a,o,s,{shift:c,owners:l,rank:u})=>{if(e+=t.contentLeft,r+=t.contentTop,!n(e,r))return;if(y(e,r,u,c)){let t=(e,t)=>n(e,t)&&!y(e,t,u,c);if(t(e,r-1)||(i&=-9),t(e,r+1)||(i&=-5),t(e-1,r)||(i&=-3),t(e+1,r)||(i&=-2),i===0)return}let d=r*65536+e+32768,f=b.get(d);if(!f){b.set(d,{x:e,y:r,mask:i,allDouble:a.style===`double`,dominant:a,only:s?{id:o,axis:s}:null,owners:new Set(l)});return}f.mask|=i,f.allDouble&&=a.style===`double`,(a.weight>f.dominant.weight||a.weight===f.dominant.weight&&Ze[a.style]>Ze[f.dominant.style])&&(f.dominant=a),(!s||f.only?.id!==o)&&(f.only=null);for(let e of l)f.owners.add(e)},C=e=>{let t=[];for(let n of e){if(!n)continue;let{shift:e,owner:r}=ct(n),i=t.find(t=>t.shift.x===e.x&&t.shift.y===e.y);i?i.owners.includes(r)||(i.owners.push(r),i.rank=Math.max(i.rank,v(r))):t.push({shift:e,owners:[r],rank:v(r)})}return t};for(let e=0;e<=p;e++)for(let t=0;t<m;t++){let n=a[e][t];if(!n)continue;let r=x++,s=a[e][t-1],l=a[e][t+1],f=o[t],p=o[t+1],m=i[t],h=i[t+1];for(let i of C([d[t][e-1],d[t][e]])){let{shift:a}=i;for(let o=0;o<n.width;o++){let d=g(e)+o+a.x;for(let e=u[t];e<u[t]+c[t];e++)S(d,e+a.y,12,n,r,`v`,i);let v=nt(s,o)||f[e-1]||f[e]?m:Math.min(m,1),y=_(t)+m-1+a.y;for(let e=0;e<v;e++)S(d,y-e,$e|(e+1<v?Qe:0),n,r,null,i);let b=nt(l,o)?h:Math.min(h,rt(p[e-1],p[e])),x=_(t+1)+a.y;for(let e=0;e<b;e++)S(d,x+e,Qe|(e+1<b?$e:0),n,r,null,i)}}}for(let e=0;e<=m;e++)for(let t=0;t<p;t++){let n=o[e][t];if(!n)continue;let i=x++,c=o[e][t-1],u=o[e][t+1],f=a[t],p=a[t+1],m=r[t],h=r[t+1];for(let r of C([d[e-1]?.[t],d[e]?.[t]])){let{shift:a}=r;for(let o=0;o<n.width;o++){let d=_(e)+o+a.y;for(let e=l[t];e<l[t]+s[t];e++)S(e+a.x,d,3,n,i,`h`,r);let v=nt(c,o)||f[e-1]||f[e]?m:Math.min(m,1),y=g(t)+m-1+a.x;for(let e=0;e<v;e++)S(y-e,d,tt|(e+1<v?et:0),n,i,null,r);let b=nt(u,o)?h:Math.min(h,rt(p[e-1],p[e])),x=g(t+1)+a.x;for(let e=0;e<b;e++)S(x+e,d,et|(e+1<b?tt:0),n,i,null,r)}}}let w=[],T=new Map;for(let e of b.values()){let t={glyph:e.only?Ke(e.dominant.style,e.dominant.weight,e.only.axis,f):qe(e.allDouble?`double`:`solid`,e.dominant.weight,(e.mask&Qe)!==0,(e.mask&$e)!==0,(e.mask&et)!==0,(e.mask&tt)!==0,f),x:e.x,y:e.y,length:1,color:e.dominant.color};for(let n of e.owners)if(n===null)w.push(t);else{let e=T.get(n);e?e.push(t):T.set(n,[t])}}return{runs:w,parts:T}}function st(e,t){let n=1/0,r=-1,i=1/0,a=-1;return e.cells.forEach((e,o)=>e.forEach((e,s)=>{!e||e.node!==t&&e.row!==t&&e.group!==t||(n=Math.min(n,o),r=Math.max(r,o),i=Math.min(i,s),a=Math.max(a,s))})),r<0?null:{r0:n,r1:r,c0:i,c1:a}}function ct(e){let t=[e.node,e.row,e.group],n={x:0,y:0},r=null;for(let e of t)e?.stickyShift&&(n.x+=e.stickyShift.x,n.y+=e.stickyShift.y,r??=e);return{shift:n,owner:r}}var lt={width:1,height:2},ut={r:0,g:0,b:0,a:0},dt=new WeakMap;function ft(e,t,n,r,i){let a=`${t}|${n}|${r}|${i.width}|${i.height}`,o=dt.get(e);if(o?.key===a)return o.rows;let s=t===void 0?null:je(t),c={width:n*i.width,height:r*i.height,cell:i},l=e.map(e=>pt(e,c)),u=[];for(let e=0;e<r;e++){let r=[];for(let a=0;a<n;a++){let n=(a+.5)*i.width,o=(e+.5)*i.height,c=s??ut;for(let e=l.length-1;e>=0;e--)c=Re(yt(l[e],n,o),c);r.push(c.a===0&&s===null?t??null:ze(c))}u.push(r)}return dt.set(e,{key:a,rows:u}),u}function pt(e,t){let n=t.cell.width;if(e.kind===`linear`){let r=vt(e,t);return{gradient:e,stops:gt(e,n/r.length),kind:`linear`,...r,cx:t.width/2,cy:t.height/2}}if(e.kind===`radial`){let r=B(e,t);return{gradient:e,stops:gt(e,n/r.rx),kind:`radial`,...r}}let{x:r,y:i}=ht(e.at,t);return{gradient:e,stops:gt(e,0),kind:`conic`,cx:r,cy:i,from:e.from}}var mt=(e,t,n)=>`fraction`in e?e.fraction*t:e.cells*n.cell.width,ht=({x:e,y:t},n)=>({x:mt(e,n.width,n),y:mt(t,n.height,n)});function gt(e,t){let n=e=>`fraction`in e?e.fraction:e.cells*t,r=e.stops,i=r.map(e=>e.position===null?null:n(e.position));i[0]===null&&(i[0]=0),i[i.length-1]===null&&(i[i.length-1]=1);for(let e=1;e<i.length;e++){if(i[e]!==null){i[e]=Math.max(i[e],i[e-1]);continue}let t=e+1;for(;i[t]===null;)t++;let n=i[e-1],r=(Math.max(i[t],n)-n)/(t-e+1);for(let a=e;a<t;a++)i[a]=n+r*(a-e+1)}let a=r.map(t=>Fe(t.color,e.space)),o=e=>({c:[...e.c],a:e.a});return r.map((t,r)=>{let s=a[r+1],c=null;return s&&(c={from:o(a[r]),to:o(s)},Ie(c.from,c.to,e.space,e.hue)),{color:a[r],at:i[r],hint:t.hint===void 0?null:n(t.hint),pair:c}})}function _t(e,t,n){let{space:r}=e,i=e=>Le(e.color,e.color,0,r),a=t[0],o=t[t.length-1];if(e.repeating&&o.at>a.at){let e=o.at-a.at;n=a.at+((n-a.at)%e+e)%e}if(n<=a.at)return i(a);if(n>=o.at)return i(o);let s=0;for(;t[s+1].at<n;)s++;let c=t[s],l=t[s+1];if(l.at===c.at)return i(l);let u=(n-c.at)/(l.at-c.at);if(c.hint!==null){let e=Math.min(.999,Math.max(.001,(c.hint-c.at)/(l.at-c.at)));u**=Math.log(.5)/Math.log(e)}return Le(c.pair.from,c.pair.to,u,r)}function vt(e,t){let{direction:n}=e,r;if(`angle`in n)r=n.angle;else{let{toX:e,toY:i}=n,a=Math.atan2(t.height,t.width)*180/Math.PI;r=e===0?i<0?0:180:i===0?e>0?90:270:e>0?i<0?a:180-a:i<0?360-a:180+a}let i=r*Math.PI/180,a=Math.sin(i),o=-Math.cos(i);return{dx:a,dy:o,length:Math.abs(t.width*a)+Math.abs(t.height*o)}}function B(e,t){let{x:n,y:r}=ht(e.at,t),{size:i}=e;if(typeof i==`object`)return{cx:n,cy:r,rx:mt(i.rx,t.width,t),ry:mt(i.ry,t.height,t)};let a=i.startsWith(`closest`)?Math.min:Math.max,o=a(n,t.width-n),s=a(r,t.height-r);if(e.shape===`circle`&&(o=s=a(o,s)),i.endsWith(`corner`)){let i=a(n,t.width-n),c=a(r,t.height-r),l=e.shape===`circle`?Math.hypot(i,c)/o:Math.hypot(i/(o||1),c/(s||1));o*=l,s*=l}return{cx:n,cy:r,rx:o||1,ry:s||1}}function yt(e,t,n){let r;if(e.kind===`linear`){let{dx:i,dy:a,length:o,cx:s,cy:c}=e;r=o===0?0:((t-s)*i+(n-c)*a)/o+.5}else if(e.kind===`radial`){let{cx:i,cy:a,rx:o,ry:s}=e;r=Math.hypot((t-i)/o,(n-a)/s)}else r=((Math.atan2(t-e.cx,-(n-e.cy))*180/Math.PI-e.from)%360+360)%360/360;return _t(e.gradient,e.stops,r)}function bt(e){return(e>=0?Math.floor(e+.5):-Math.floor(-e+.5))||0}function xt(e,t){return t<=0?0:bt(e/(.25*t))}function St(e,t){return bt(t*e/100)}function Ct(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 wt(){return parseFloat(getComputedStyle(document.documentElement).fontSize)||16}var Tt=[[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 Et(e){let t=0,n=Tt.length;for(;t<n;){let r=t+n>>1,[i,a]=Tt[r];if(e<i)n=r;else if(e>a)t=r+1;else return!0}return!1}var Dt=/^\p{Extended_Pictographic}/u,Ot=/^\p{Emoji_Presentation}/u,kt=/^\p{Regional_Indicator}/u,At=/^\p{Regional_Indicator}\p{Regional_Indicator}/u,jt=/^[\p{Default_Ignorable_Code_Point}\p{Cc}\p{Cf}]+$/u,Mt=`︎`,Nt=`️`,Pt=`‍`,Ft=`⃣`;function It(e){let t=e.codePointAt(0);return t===void 0?0:t<128&&e.length===1?t<32||t===127?0:1:Dt.test(e)?e.includes(Mt)?1:e.includes(Nt)||e.includes(Pt)||Ot.test(e)?2:1:e.includes(Ft)?2:kt.test(e)?At.test(e)?2:1:Et(t)||Ot.test(e)?2:+!jt.test(e)}var Lt=/^[\x00-\x7f]*$/,Rt;function zt(e){return Lt.test(e)?e.split(``):(Rt===void 0&&(Rt=typeof Intl.Segmenter==`function`?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null),Rt?Array.from(Rt.segment(e),e=>e.segment):Array.from(e))}function Bt(e,t){let n=It(e);return n===0?0:n+t}function Vt(e,t=0){let n=[];for(let r of zt(e)){n.push(Bt(r,t));for(let e=1;e<r.length;e++)n.push(0)}return n}function Ht(e){let t=0;for(let n of zt(e))t+=It(n);return t}function Ut(e,t,n={}){return Gt(e,t,n).length}function Wt(e,t){return t.endsWith(`
953
- `)&&e.pop(),e}function V(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 Wt(t,e)}function Gt(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
- `)&&(en(e,i,o,t,n,a,r),a=0,i=o+1);return Wt(r,e)}function Kt(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 qt(e,t,n,r,i=0){return n<=t?0:Kt(t,n,r)-Math.min(i,Jt(e,n-1,r))}function Jt(e,t,n){if(!n)return 0;let r=t;for(;r>0&&n[r]===0;)r--;let i=Math.max(1,It(e.slice(r,t+1)));return Math.max(0,(n[r]??1)-i)}function Yt(e,t={}){let{advances:n,tracking:r=0}=t,i=0;for(let t of $t(e,0,e.length))for(let a of Zt(e,t.start,t.end))i=Math.max(i,qt(e,a.start,a.end,n,r));return i}function Xt(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===``&&(t(r,n),n++)}function Zt(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 Qt=/[ \t\r\n\f]/;function $t(e,t,n){let r=[],i=t;for(;i<n;){for(;i<n&&Qt.test(e[i]);)i++;if(i>=n)break;let t=i;for(;i<n&&!Qt.test(e[i]);)i++;r.push({start:t,end:i})}return r}function en(e,t,n,r,{advances:i,tracking:a=0,openLine:o},s,c){let l=-1,u=r,d=()=>(l!==c.length&&(l=c.length,u=o?.(l,c)??r),u),f=$t(e,t,n);if(f.length===0){d(),c.push({start:t,end:t});return}if(r<=0){d(),c.push({start:f[0].start,end:f[f.length-1].end});return}let p=null,m=0,h=Math.max(0,s),g=()=>d()-h;for(let t of f){let n=!1;for(let r of Zt(e,t.start,t.end)){let t=r.start,o=r.end,s=p!==null&&!n?t-1:t,l=m+Kt(s,o,i),u=Math.min(a,Jt(e,o-1,i));if(p!==null&&l-u<=g())p.end=o,m=l;else{for(p!==null&&(c.push(p),h=0);;){let n=t;for(;n<o&&qt(e,t,n+1,i,a)<=g();)n++;if(n===o||n===t)break;c.push({start:t,end:n}),h=0,t=n}p={start:t,end:o},m=Kt(t,o,i)}n=!0}}p!==null&&c.push(p)}function tn(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 H(e,t,n,r,i){if(e.style.ruleBreak!==`intersection`)return[{start:0,end:i}];let a=[t[n-1],t[n]].flatMap(e=>tn(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)),Je(s,`intersection`,`all`,e.style.ruleInset===`overlap-join`?`overlap-join`:0)}function U(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 nn(e,t,n,r,a,o,s){let c=li(e.style,`x`,t),l=li(e.style,`y`,n),u=fn(e).map(e=>{let n=X(e.style.margin,t);return{node:e,base:dn(e,t,s),grow:e.style.flexGrow,shrink:e.style.flexShrink,min:hn(e,t,s),max:di(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),i=e.reduce((e,t)=>e+(t.margin.left??0)+(t.margin.right??0),0),a=Math.max(0,t-n-i),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))):cn(e,a);for(let n=0;n<e.length;n++)q(e[n].node,t,r,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`)r===void 0?Number.isFinite(n)&&(h[0]=Math.max(n,h[0]??0)):h[0]=r,_=[0];else{let t=h.reduce((e,t)=>e+t,0),r=Number.isFinite(n)?Math.max(0,n-t-g):0,i=pn(e.style);if(i===`stretch`&&r>0){let e=G(Array.from({length:m.length},()=>1),r);for(let t=0;t<h.length;t++)h[t]+=e[t];_=sn(`start`,h,0)}else _=sn(i===`stretch`?`start`:i,h,r)}for(let i=0;i<m.length;i++){let{row:a,widths:o,availableForItems:u}=m[i],d=h[i],g=_[i]+i*l;for(let i=0;i<a.length;i++){let c=a[i].node,l=ln(c,e),u=a[i].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),di(c.style.minHeight,l)??0,di(c.style.maxHeight,l));if(f===c.localRect.height)continue;q(c,t,r,0,0,`fill`,s,{width:o[i],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=G(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=sn(`start`,o,0)}else C=sn(mn(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+an(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=[],r=[];for(let i=0;i<m.length;i++){let a=_[i]+i*l;for(let e of tn(m[i],f))n.push({bandStart:e.start,bandSize:e.end-e.start,start:a,end:a+h[i]});if(i>0){let n=_[i-1]+(i-1)*l+h[i-1];if(a>n)for(let o of H(e,m,i,f,t))r.push({bandStart:n,bandSize:a-n,...o})}}e.decorationRuns=Ye({glyphs:i(e.style.glyphSet),ruleX:e.style.ruleX,ruleY:e.style.ruleY,vertical:U(n,e.style.ruleInset),horizontal:U(r,e.style.ruleInset),contentWidth:t,contentHeight:y,border:a,borderStyle:e.style.borderStyle,borderWeight:e.style.borderWeight,borderColor:e.style.borderColor,padding:o})}return W(e,a,o,t,y),y}function W(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 rn(e,t,n,r,a,o,s){let c=li(e.style,`y`,n),l=fn(e).map(i=>{let a=X(i.style.margin,t),o=Math.max(0,t-(a.left??0)-(a.right??0)),c=ln(i,e)===`stretch`;q(i,o,r&&Number.isFinite(n)?n:void 0,0,0,c?`fill`:`shrink`,s);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?St(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??di(i.style.minHeight,l)??0,max:di(i.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=r?m:Math.max(m,p),g=l.some(e=>e.margin.top===null||e.margin.bottom===null),_=f&&!(f&&g&&p<=h)?cn(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=ln(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=G(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=sn(`start`,_,0)}else C=sn(mn(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+on(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=[],r=l.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-T,a=r[e].y-T-i;a>0&&n.push({bandStart:i,bandSize:a,start:0,end:t})}e.decorationRuns=Ye({glyphs:i(e.style.glyphSet),ruleX:null,ruleY:e.style.ruleY,vertical:[],horizontal:U(n,e.style.ruleInset),contentWidth:t,contentHeight:O,border:a,borderStyle:e.style.borderStyle,borderWeight:e.style.borderWeight,borderColor:e.style.borderColor,padding:o})}return W(e,a,o,t,O),O}function an(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+un(i,n,e.localRect.height)}function on(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+un(i,n,e.localRect.width)}function sn(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=G(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 cn(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=G(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 G(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 ln(e,t){return e.style.alignSelf===`auto`?t.style.alignItems:e.style.alignSelf}function un(e,t,n){return e===`center`?Math.max(0,Math.floor((t-n)/2)):e===`end`?Math.max(0,t-n):0}function dn(e,t,n){let r=e.style.flexBasis,i=e.style.width;return r!==void 0&&r.kind!==`auto`?Ci(r,t,e,n):i!==void 0&&i.kind!==`auto`?Ci(i,t,e,n):wi(e,n)}function fn(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 pn(e){return e.wrapReverse?e.alignContent===`start`?`end`:e.alignContent===`end`?`start`:e.alignContent:e.alignContent}function mn(e){let t=e.justifyContent===`stretch`?`start`:e.justifyContent;return e.flexReverse?t===`start`?`end`:t===`end`?`start`:t:t}function hn(e,t,n){return e.style.minWidth===`auto`?e.style.overflow.x===`visible`?Di(e,n):0:di(e.style.minWidth,t)??0}function gn(e){return e===`auto`||e===`scroll`}function _n(e){return e.children.filter(e=>e.inlineBox)}function vn(e){return{right:e.scrollbarSize.y+e.scrollbarInset.x,bottom:e.scrollbarSize.x+e.scrollbarInset.y}}function yn(e){if(e.scrollbarWidth===`none`)return{right:0,bottom:0};let t=vn(e);return{right:e.overflow.y===`scroll`?t.right:0,bottom:e.overflow.x===`scroll`?t.bottom:0}}function bn(){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:[Sn()],gridAutoRows:[Sn()],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:xn(),margin:{top:0,right:0,bottom:0,left:0},position:`static`,float:`none`,clear:`none`,insets:{top:null,right:null,bottom:null,left:null},gapX:0,gapY:0,border:xn(),borderWeight:{top:1,right:1,bottom:1,left:1},borderStyle:{top:`solid`,right:`solid`,bottom:`solid`,left:`solid`},borderRadius:{tl:0,tr:0,bl:0,br:0},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,backgroundImage:[],backgroundClip:`border-box`,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,boxShadow:[],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 xn(){return{top:0,right:0,bottom:0,left:0}}function Sn(){return{min:{kind:`auto`},max:{kind:`auto`}}}function Cn(e,t,n,r,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:li(s,`x`,t),f=u?u.gap:li(s,`y`,c),p=Nn(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(wn),T=l?En(l):Jn(v,b,Dn(p,w,S,o),t,d,s.justifyContent===`stretch`),E=l?l.positions:Yn(T,t,s.justifyContent),D=[];for(let e=0;e<m.length;e++){let t=m[e],n=h.items[e],r=Zn(E,T.sizes,n.col.start,n.col.span),i=S[e],a=Math.max(0,r-Ln(i)),s=w[e];if(s.cols||s.rows){let e=s.cols?Tn(E,T,d,n.col.start,n.col.span,kn(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`?Di(t,o):0:di(t.style.minWidth,r)??0,fi(t.style.maxWidth,r,t,o))}):q(t,a,void 0,0,0,`shrink`,o),D.push(t.localRect.width)}let O=u?En(u):Jn(y,x,On(p,w,S),c??`max-content`,f,s.alignContent===`stretch`),ee=Xn(O),k=u?u.positions:Yn(O,c??ee,s.alignContent),te=r.left+a.left,ne=r.top+a.top;for(let t=0;t<m.length;t++){let n=m[t],r=h.items[t],i=S[t],a=Zn(E,T.sizes,r.col.start,r.col.span),s=Zn(k,O.sizes,r.row.start,r.row.span),c=Math.max(0,s-Rn(i)),l=ln(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=Tn(k,O,f,r.row.start,r.row.span,kn(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:di(n.style.minHeight,s)??0,di(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]+Qn(C[t],i.left,i.right,a,n.localRect.width),y:ne+k[r.row.start]+Qn(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 Je(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=Ye({glyphs:i(s.glyphSet),ruleX:s.ruleX,ruleY:s.ruleY,vertical:p,horizontal:m,contentWidth:t,contentHeight:re,border:r,borderStyle:s.borderStyle,borderWeight:s.borderWeight,borderColor:s.borderColor,padding:a})}let A=e.children.filter(e=>K(e.style));if(A.length>0){let e=K(s)?{x:r.left,y:r.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=jn(n.style.gridColumnStart,n.style.gridColumnEnd,g,h.colOrigin,E,T.sizes,-a.left,t+a.right),i=jn(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 wn(e){let t=e.style.display===`grid`;return{cols:t&&e.style.gridTemplateColumns.kind===`subgrid`,rows:t&&e.style.gridTemplateRows.kind===`subgrid`}}function Tn(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 En(e){return{sizes:e.sizes,gapBefore:e.gapBefore,limits:e.sizes}}function Dn(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=kn(a,`cols`,c,0);for(let t of An(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:Ei(a,`min`,r)+Ln(c),max:Ei(a,`max`,r)+Ln(c)})}),i}function On(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=kn(i,`rows`,s,0);for(let t of An(i,`rows`,o,e))r.push({...t,start:t.start+o.row.start});return}let c=i.localRect.height+Rn(s),l=i.style.minHeight===`auto`&&i.style.overflow.y!==`visible`?Rn(s):c;r.push({start:o.row.start,span:o.row.span,min:l,max:c})}),r}function kn(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 An(e,t,n,r,i){let a=t===`cols`?n.col.span:n.row.span,o=Nn(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(wn(e)[t]){let n=kn(e,t,p,0),a=An(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:Ei(e,`min`,i)+Ln(p)+f,max:Ei(e,`max`,i)+Ln(p)+f});else{let t=e.localRect.height+Rn(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 jn(e,t,n,r,i,a,o,s){let c=Wn(e,`start`,n),l=Wn(t,`end`,n);c!==null&&l!==null?c>l?[c,l]=[l,c]:c===l&&(l=null):c!==null&&t.kind===`span`?l=Gn(c,t,1,n):l!==null&&e.kind===`span`&&(c=Gn(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 Mn(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=Nn(e,void 0,void 0,i,0,e.subgrid?{col:e.subgrid.colSpan,row:e.subgrid.rowSpan}:void 0),o=a.children.map(wn),s=a.children.map(e=>X(e.style.margin,0)),c=Jn(a.colTracks,a.colCollapsed,Dn(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 Nn(e,t,n,r,i,a){let o=e.style,s=In(e),c=o.gridTemplateColumns.kind===`subgrid`&&a!==void 0,l=o.gridTemplateRows.kind===`subgrid`&&a!==void 0,u=c?Pn(a.col):zn(o.gridTemplateColumns,t,r),d=l?Pn(a.row):zn(o.gridTemplateRows,n,i),f=o.gridTemplateAreas,p=[...u.tracks],m=[...d.tracks];if(f){c||Vn(p,u.lineNames,f.columns,o.gridAutoColumns),l||Vn(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},_=qn(s.map(e=>({col:Kn(e.style.gridColumnStart,e.style.gridColumnEnd,h),row:Kn(e.style.gridRowStart,e.style.gridRowEnd,g)})),p.length,m.length,o.gridAutoFlow);return c&&Fn(_,`col`,p.length),l&&Fn(_,`row`,m.length),{children:s,placed:_,colLines:h,rowLines:g,colTracks:Hn(p,_.colOrigin,_.colCount,o.gridAutoColumns),rowTracks:Hn(m,_.rowOrigin,_.rowCount,o.gridAutoRows),colCollapsed:Un(u,_.colOrigin,_.colCount,_.items.map(e=>e.col)),rowCollapsed:Un(d,_.rowOrigin,_.rowCount,_.items.map(e=>e.row))}}function Pn(e){return{tracks:Array.from({length:e},()=>Sn()),lineNames:Array.from({length:e+1},()=>[])}}function Fn(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 In(e){return e.children.filter(e=>!K(e.style)&&!e.inlineBox).sort((e,t)=>e.style.order-t.style.order)}function Ln(e){return(e.left??0)+(e.right??0)}function Rn(e){return(e.top??0)+(e.bottom??0)}function zn(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=Bn(n.min,t)??Bn(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 Bn(e,t){if(e.kind===`cells`)return e.value;if(e.kind===`percent`&&t!==void 0)return St(e.value,t);if(e.kind===`math`){let n=[];for(let r of e.args){let e=Bn(r,t);if(e===void 0)return;n.push(e)}return e.fn===`min`?Math.min(...n):Math.max(...n)}}function Vn(e,t,n,r){for(let i=e.length;i<n;i++)e.push(r[(i-e.length)%r.length]),t.push([])}function Hn(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 Un(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 Wn(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 Gn(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 Kn(e,t,n){let r=Wn(e,`start`,n),i=Wn(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`?Gn(r,t,1,n):r+1)-r};if(i!==null){let t=e.kind===`span`?Gn(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 qn(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 Jn(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=Bn(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=Bn(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=G(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=G(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=G(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,bt(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=G(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=G(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=G(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 Yn(e,t,n){let{sizes:r,gapBefore:i}=e,a=Math.max(0,t-Xn(e)),o=sn(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 Xn(e){return e.sizes.reduce((e,t)=>e+t,0)+e.gapBefore.reduce((e,t)=>e+t,0)}function Zn(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 Qn(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+un(e,r,i+a+o)}function $n(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 er(e,t,n){let r=$n(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 tr(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 nr(e,t){return e===void 0?t:t===void 0?e:Math.min(e,t)}function rr(e,t,n){for(;e<t;){let r=e+t>>1;n(r)?t=r:e=r+1}return e}function ir(e,t,n){let r=$n(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 ar(e,t,n){return e===`all`?!0:e===`around`?t||n:t&&n}function or(e,t,n,r){let i=si(e,Math.max(1,t.width-e.style.tracking)),{heights:a,textOffsets:o}=ci(e,i),s=e.style.lineGap,c=cr(a.map(e=>e+s)),l;if(e.style.columnFill===`auto`&&r!==void 0)l=Math.max(1,r);else{let e=rr(c.reduce((e,t)=>Math.max(e,t.rows-s),1),Math.max(1,c.reduce((e,t)=>e+t.rows,0)-s),e=>sr(c,s,e).columns<=t.count);l=r===void 0?e:Math.max(1,Math.min(e,r))}let u=sr(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 sr(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 cr(e){return e.map(e=>({rows:e,pre:0,post:0,forced:!1,lines:1}))}var lr=null;function ur(){if(lr!==null)return lr;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(),lr=!(n.width>0&&n.top-t>=10),lr}function dr(e,t,n,r){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++)ar(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=Ye({glyphs:i(a.glyphSet),ruleX:a.ruleX,ruleY:null,vertical:U(c,a.ruleInset),horizontal:[],contentWidth:o,contentHeight:t.totalRows,border:n,borderStyle:a.borderStyle,borderWeight:a.borderWeight,borderColor:a.borderColor,padding:r})}function fr(e,t){let n=e.style,r=n.padding;return e.text!==``&&e.children.length===0&&n.display===`block`&&n.float===`none`&&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 pr(e,t,n,r,i,a,o){let s=e.style,c=li(s,`x`,n),l=ir(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:si(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:_i(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=rr(1,Math.max(1,sr(a,u,1/0,_).maxUsed),e=>sr(a,u,e,_).columns<=l.count);S=r===void 0?e:Math.max(1,Math.min(e,r))}let C=sr(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=gi(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 mr(e,t,n,r,a,o,s){let c=e.style,l=nr(n,r),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=>fr(e,c))&&(d.length===u.length||c.columnFill===`balance`&&l===void 0&&(ur()||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 pr(e,u,t,l,a,o,s);let p=li(c,`x`,t),m=er(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:_i(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:_i(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)+gi(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=rr(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);ar(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+gi(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=Ye({glyphs:i(c.glyphSet),ruleX:c.ruleX,ruleY:null,vertical:U(S,c.ruleInset),horizontal:[],contentWidth:t,contentHeight:C,border:a,borderStyle:c.borderStyle,borderWeight:c.borderWeight,borderColor:c.borderColor,padding:o})),C}function hr(e,t){e.hidden.push(t),t.style.tableRole!==`column`&&t.style.tableRole!==`column-group`&&ne(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 gr(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 _r(e,t,n){let r=(t,r)=>{let i=t.style.width,a=i&&i.kind!==`auto`&&i.kind!==`percent`?Ci(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,vr(t.source));return}let i=t.children.filter(e=>e.style.tableRole===`column`);if(i.length===0)r(t,vr(t.source));else for(let e of i)r(e,vr(e.source));for(let n of t.children)n.style.tableRole!==`column`&&hr(e,n)}function vr(e){let t=Number.parseInt(e.getAttribute(`span`)??``,10);return Number.isNaN(t)?1:Math.min(1e3,Math.max(1,t))}function yr(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}):hr(n,e))}else e===`caption`?n.caption===null?n.caption=o:hr(n,o):e===`column`||e===`column-group`?(_r(n,o,t),n.hidden.push(o)):hr(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 br(n),n}function br(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`){hr(e,a);continue}for(;(t[i]??0)>n;)i++;let o=gr(a.source,`colspan`),s=gr(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 xr(e,t,n){let r=e.style,i=Di(e,n),a;if(t===`min`)a=i;else{let t=r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`?Ci(r.width,0,e,n):void 0;a=t===void 0?wi(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 Sr(e){let t=e.style.width;return t&&t.kind===`percent`?t.value:void 0}function Cr(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],xr(t.node,`min`,n)),a[t.col]=Math.max(a[t.col],xr(t.node,`max`,n));let e=Sr(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=kr(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=xr(e.node,t,n)-u;if(d<=0)continue;let f=G(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 wr(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=G(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=G(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=G(n.some(e=>e>0)?n:n.map(()=>1),o);t.forEach((e,t)=>r[e]+=i[t])}}return r}function Tr(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=Ci(e.width,0,r.node,n)),a===void 0)continue;let o=G(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=G(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)}function Er(e,t){for(let{border:t,side:n}of e)if(t?.hidden[n])return null;let n=null;for(let{border:t,side:r}of e){if(!t||t.width[r]<=0)continue;let e=t.weight[r],i=t.style[r];(n===null||e>n.weight||e===n.weight&&Ze[i]>Ze[n.style])&&(n={weight:e,style:i,color:t.color[r]})}if(!n)return null;let{style:r,weight:i}=n;return{...n,width:w(r,i,t).cells,weight:T(r,i,t)}}function Dr(e,t){let n=t.columnCount,r=t.rows.length,a=e.style.borderCollapse,o=i(e.style.glyphSet),s={collapsed:a,vLines:Array.from({length:n+1},()=>0),hLines:Array.from({length:r+1},()=>0),spacingX:a?0:e.style.borderSpacingX,spacingY:a?0:e.style.borderSpacingY,vSegments:[],hSegments:[]};if(!a||n===0||r===0)return s;let c=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++)c[t][n]=e;let l=e.style.latticeBorder;for(let e=0;e<=n;e++){let i=[];for(let a=0;a<r;a++){let r=e>0?c[a][e-1]:void 0,s=e<n?c[a][e]:void 0;if(r!==void 0&&r===s){i.push(null);continue}let u=[];r&&r.col+r.colSpan===e&&u.push({border:r.node.style.latticeBorder,side:`right`}),s&&s.col===e&&u.push({border:s.node.style.latticeBorder,side:`left`});let d=e===0?`left`:e===n?`right`:null;if(d){u.push({border:t.rows[a].style.latticeBorder,side:d});let e=t.rowGroups[a];e&&u.push({border:e.style.latticeBorder,side:d}),u.push({border:l,side:d})}i.push(Er(u,o))}s.vSegments.push(i),s.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?c[e-1][a]:void 0,s=e<r?c[e][a]:void 0;if(n!==void 0&&n===s){i.push(null);continue}let u=[];n&&n.row+n.rowSpan===e&&u.push({border:n.node.style.latticeBorder,side:`bottom`}),s&&s.row===e&&u.push({border:s.node.style.latticeBorder,side:`top`}),e>0&&u.push({border:t.rows[e-1].style.latticeBorder,side:`bottom`}),e<r&&u.push({border:t.rows[e].style.latticeBorder,side:`top`});let d=e>0?t.rowGroups[e-1]:null,f=e<r?t.rowGroups[e]:null;d&&d!==f&&u.push({border:d.style.latticeBorder,side:`bottom`}),f&&f!==d&&u.push({border:f.style.latticeBorder,side:`top`}),e===0&&u.push({border:l,side:`top`}),e===r&&u.push({border:l,side:`bottom`}),i.push(Er(u,o))}s.hSegments.push(i),s.hLines[e]=i.reduce((e,t)=>Math.max(e,t?.width??0),0)}return s}function Or(e,t){return e.collapsed?e.vLines.reduce((e,t)=>e+t,0):(t+1)*e.spacingX}function kr(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 Ar(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 jr(e,t){let n=t.tableData.get(e);if(n)return n;let r=yr(e,t),i=Dr(e,r),a={structure:r,chrome:i,bounds:Cr(r,i,t),chromeX:Or(i,r.columnCount)};return t.tableData.set(e,a),a}function Mr(e,t){let{structure:n,bounds:r,chromeX:i}=jr(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,Di(n.caption,t)),o=Math.max(o,wi(n.caption,t))),{min:a,max:o}}function Nr(e,t,n){let r=e.style,{bounds:i,chromeX:a}=jr(e,n),{min:o,max:s}=Mr(e,n),c=r.border.left+r.border.right+Y(r.padding.left,t)+Y(r.padding.right,t)+yn(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 Pr(e,t,n,r,a,o){let{structure:s,chrome:c,bounds:l}=jr(e,o),u=s.columnCount,d=s.rows.length,f=r.left+a.left,p=r.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-Or(c,u)),h=e.style,g=h.tableLayout===`fixed`&&h.width!==void 0&&h.width.kind!==`auto`?Tr(s,m,o):wr(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)+kr(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?St(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)+Ar(c,e.row,t),r=x.get(e)-n;if(r<=0)continue;let i=G(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=G(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)+Ar(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}),Fr(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});if(s.caption&&e.style.captionSide===`bottom`&&(s.caption.localRect.y=p+ne),c.collapsed&&u>0&&d>0){let t=Array.from({length:d},()=>Array.from({length:u},()=>void 0));for(let e of s.cells){let n={node:e.node,row:e.rowNode,group:s.rowGroups[e.row]};for(let r=e.row;r<e.row+e.rowSpan;r++)for(let i=e.col;i<e.col+e.colSpan;i++)t[r][i]=n}e.lattice={vLines:c.vLines,hLines:c.hLines,vSegments:c.vSegments,hSegments:c.hSegments,widths:g,rowHeights:E,colX:_,rowY:k,contentLeft:f,contentTop:p,cells:t,set:i(e.style.glyphSet)}}return e.style.captionSide===`bottom`?ne+b:ne}function Fr(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 Ir(e){return e.position===`absolute`||e.position===`fixed`?`absolute`:e.position===`relative`?`relative`:`static`}function Lr(e,t,n,r,i){for(let a of e.children){let o=Ir(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+=Rr(a.style.insets.left,a.style.insets.right,t),a.localRect.y+=Rr(a.style.insets.top,a.style.insets.bottom,n)}else o===`absolute`&&Br(a,e,t,n,r,i);Lr(a,t+a.localRect.x,n+a.localRect.y,[...r,{node:a,absX:t+a.localRect.x,absY:n+a.localRect.y}],i)}}function Rr(e,t,n){return e===null?t===null?0:-Y(t,n):Y(e,n)}function zr(e,t){if(!t)for(let t=e.length-1;t>0;t--){let n=e[t];if(!ei(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 Br(e,t,n,r,i,a){let o=e.style,s=o.position===`fixed`,c=e.staticSlot,l=c?.kind===`grid`&&!s&&ei(t.style)?{x:n+c.area.x,y:r+c.area.y,width:c.area.width,height:c.area.height}:zr(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=fi(o.minWidth,l.width,e,a)??0,S=fi(o.maxWidth,l.width,e,a),C={};if(!y)C.width=J(Ci(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(wi(e,a),Math.max(Di(e,a),t)),x,S)}f!==null&&p!==null&&b&&(C.height=J(Math.max(0,l.height-f-p-_-v),di(o.minHeight,l.height)??0,di(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?Gr(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?Kr(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 Vr(e,t,n){return sn(e,[n],Math.max(0,t-n))[0]}function Hr(e,t,n,r){return un(ln(e,t),n,r)}function Ur(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?Vr(mn(t.style),c,u):Hr(e,t,c,u))+o}function Wr(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,ln(e,t)];return un(u,l,i+s+c)+s}function Gr(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+Wr(e,t,i.staticArea,`x`,r):n+i.originX+Ur(e,t,i,`x`,r)}function Kr(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+Wr(e,t,i.staticArea,`y`,r):n+i.originY+Ur(e,t,i,`y`,r)}function qr(e,t,n,r=1){let i=0,a=t;for(let t of e)n+r<=t.y||n>=t.y+t.height||(t.side===`left`?i=Math.max(i,t.x+t.width):a=Math.min(a,t.x));return{x:i,width:Math.max(0,a-i)}}function Jr(e,t,n,r,i,a){let o=r;for(let t of e)o=Math.max(o,t.y);return Yr(e,t,n,o,i,a)}function Yr(e,t,n,r,i,a){let o=[r,...e.map(e=>e.y+e.height).filter(e=>e>r)].sort((e,t)=>e-t),s=o.find(n=>qr(e,t,n,a).width>=i)??o[o.length-1],c=qr(e,t,s,a);return{x:n===`left`?c.x:Math.max(c.x,c.x+c.width-i),y:s}}function Xr(e,t,n){if(t===`none`)return n;let r=n;for(let n of e)(t===`both`||n.side===t)&&(r=Math.max(r,n.y+n.height));return r}function Zr(e){return Xr(e,`both`,0)}function Qr(e,t){let n=ti();q(e,t,void 0,0,0,`fill`,n),Lr(e,0,0,[{node:e,absX:0,absY:0}],n);let r=e.localRect.height,i=yi(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 $r(e){let{display:t,overflow:n}=e.style;return t!==`block`||n.x!==`visible`||n.y!==`visible`||e.children.some(e=>!e.inlineBox&&!K(e.style))}function ei(e){return e.position!==`static`}function ti(){return{maxContent:new WeakMap,minContent:new WeakMap,gridIntrinsic:new WeakMap,tableData:new WeakMap}}function q(e,t,n,r,i,a,o,s,c){let l=e.style,u=s?.height;delete e.decorationRuns,delete e.lattice,delete e.latticeRuns,delete e.multicolGeometry,delete e.multicolFlow,delete e.multicolFlowSpan,delete e.flow,delete e.textExtent,delete e.lineBands;let d=fi(l.minWidth,t,e,o)??0,f=fi(l.maxWidth,t,e,o),p=di(l.minHeight,n)??0,m=di(l.maxHeight,n),h=yn(l),g=vn(l);s?.gutter?.right&&(h.right=g.right),s?.gutter?.bottom&&(h.bottom=g.bottom);let _={top:Y(l.padding.top,t),right:Y(l.padding.right,t)+h.right,bottom:Y(l.padding.bottom,t)+h.bottom,left:Y(l.padding.left,t)};e.resolvedPadding=_;let v=s?.width??J(vi(l,t,a,e,o),d,f),y=Si(l,n),b=ki(v,u??y??(p>0?p:void 0)??1/0,l.border,_),x=u!==void 0||y!==void 0,S=m===void 0?void 0:Math.max(0,m-l.border.top-l.border.bottom-_.top-_.bottom),C=ri(e),w=(t,n)=>{let r=n&&Number.isFinite(t)?t:void 0;if(C)return ni(e,b.width,t,r,S,_,o,c);if(l.display===`flex`&&l.flexDirection===`row`)return nn(e,b.width,t,r,l.border,_,o);if(l.display===`flex`)return rn(e,b.width,t,n,l.border,_,o);if(l.display===`grid`)return Cn(e,b.width,t,l.border,_,o);if(l.display===`table`)return Pr(e,b.width,r,l.border,_,o);if(l.display===`multicol`){for(let t of e.children)t.style.float!==`none`&&ne(t.source,`float on a multicol container's own child is ignored — it lays out as a column item; float it inside a child instead (specs/float.md).`);return mr(e,b.width,r,S,l.border,_,o)}return pi(e,b.width,r,l.border,_,o)},T=w(b.height,x);if(!C&&(l.display===`flex`||l.display===`grid`)&&!x&&m!==void 0){let e=l.border.top+l.border.bottom+_.top+_.bottom,t=J(T+e,p,m)-e;t<T&&(T=w(Math.max(0,t),!0))}let E=T+l.border.top+l.border.bottom+_.top+_.bottom,D=u??y??E;e.unclampedHeight=D,e.naturalContentHeight=E;let O=J(D,p,m),ee=e.multicolGeometry;if(ee){let t=O-l.border.top-l.border.bottom-_.top-_.bottom;t>ee.totalRows&&(_.bottom+=t-ee.totalRows),dr(e,ee,l.border,_)}if(e.localRect={x:r,y:i,width:v,height:O},gn(l.overflow.x)||gn(l.overflow.y)){let c=yi(e),u=Math.max(0,c.x-l.border.left-_.left),d=Math.max(0,c.y-l.border.top-_.top),f=Math.max(0,v-l.border.left-l.border.right-_.left-_.right),p=Math.max(0,O-l.border.top-l.border.bottom-_.top-_.bottom);if(e.scrollRange={sizeX:u,sizeY:d,maxX:gn(l.overflow.x)?Math.max(0,u-f):0,maxY:gn(l.overflow.y)?Math.max(0,d-p):0},l.scrollbarWidth!==`none`){let c=s?.gutter??{right:!1,bottom:!1},u=c.right||l.overflow.y===`auto`&&e.scrollRange.maxY>0,d=c.bottom||l.overflow.x===`auto`&&e.scrollRange.maxX>0;if(u!==c.right||d!==c.bottom){q(e,t,n,r,i,a,o,{...s,gutter:{right:u,bottom:d}});return}}e.scrollGutterCells={right:h.right,bottom:h.bottom}}else delete e.scrollRange,delete e.scrollGutterCells}function ni(e,t,n,r,i,a,o,s){let c=e.style,l;if(e.text){let u=_n(e);Xt(e.text,(n,r)=>{let i=u[r];q(i,t,void 0,0,0,`shrink`,o),e.advances[n]=Math.max(1,i.localRect.width)});let d,f;if(c.display===`multicol`){let n=li(c,`x`,t),o=ir(c,t,n);a.right+=o.leftover;let s=or(e,o,n,nr(r,i));e.multicolGeometry=s,d=s,f=s.lineX}else d=ai(e,t,s),d.bands&&(e.lineBands=d.bands);l=d.totalRows;let p=e.lineBands;if(e.textExtent={width:d.spans.reduce((t,n,r)=>Math.max(t,(p?.[r]?.x??0)+qt(e.text,n.start,n.end,e.advances,c.tracking)),0),rows:d.totalRows},ii(e,d,t,n,a),u.length>0){let t=e=>d.spans.findIndex(t=>e>=t.start&&e<t.end);Xt(e.text,(n,r)=>{let i=t(n);if(i===-1)return;let o=d.spans[i];u[r].localRect={...u[r].localRect,x:c.border.left+a.left+(f?.[i]??0)+(p?.[i]?.x??0)+Kt(o.start,n,e.advances),y:c.border.top+a.top+d.lineY[i]}})}}else l=e.intrinsicHeight;for(let n of e.children){if(n.inlineBox)continue;let e=X(n.style.margin,t);n.staticSlot={kind:`block`,x:c.border.left+a.left+(e.left??0),y:c.border.top+a.top+(e.top??0)}}return l}function ri(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 ii(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,qt(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`?un(a.justifyItems,n,s):o?un(a.alignItems,n,s):sn(mn(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?un(a.alignItems,r,t.totalRows):sn(mn(a),[t.totalRows],e)[0];n>0&&(i.top+=n,i.bottom+=e-n)}}}function ai(e,t,n){let r,i;if(n)r=[],i=oi(e,t,n,r);else if(e.lineBands){let n=e.lineBands;r=n,i=e=>n[e]?.width??t}let a=si(e,t,i),{heights:o,textOffsets:s}=ci(e,a),c=[],l=[],u=0;for(let t=0;t<a.length;t++)r&&(u=r[t].row),c.push(u),l.push(u+s[t]),u+=o[t]+(t<a.length-1?e.style.lineGap:0);return{spans:a,lineY:c,textY:l,totalRows:u,bands:r}}function oi(e,t,n,r){let{border:i,lineGap:a}=e.style,o=e.resolvedPadding,s=n.x+i.left+o.left,c=n.y+i.top+o.top,l=Zr(n.boxes),u=_n(e).length>0;return(i,o)=>{let d=0;if(i>0){let t=u?ci(e,o).heights[i-1]:1;d=r[i-1].row+t+a}for(;;){let e=qr(n.boxes,n.contentWidth,c+d),a=Math.max(e.x,s),o=Math.min(e.x+e.width,s+t);if(o>a||c+d>=l){let e={row:d,x:Math.max(0,a-s),width:Math.max(0,o-a)};return r[i]=e,e.width}d++}}}function si(e,t,n){if(e.style.whiteSpace!==`normal`){let t=V(e.text);return n&&t.forEach((e,r)=>n(r,t.slice(0,r))),t}return Gt(e.text,t,{advances:e.advances,tracking:e.style.tracking,firstLineIndent:e.style.textIndent,openLine:n})}function ci(e,t){let n=_n(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`&&ne(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 li(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:St(e.percent,t)+(e.cells??0)}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 ui(e){return typeof e==`number`?e:0}function di(e,t){if(e!==void 0&&typeof e!=`string`){if(typeof e==`number`)return e;if(t!==void 0)return St(e.percent,t)+(e.cells??0)}}function fi(e,t,n,r){return e===`min-content`||e===`max-content`||e===`fit-content`?Ci({kind:e},t,n,r):di(e,t)}function pi(e,t,n,r,i,a){let o=r.left+i.left,s=r.top+i.top,c=[],l=s,u=null;for(let r of e.children){let e=X(r.style.margin,t),i=e.top??0,d=e.bottom??0,f=e.left??0,p=e.right??0,m=l+(u===null?i:_i(u,i));if(K(r.style)){r.staticSlot={kind:`block`,x:o+f,y:m};continue}let h=Math.max(0,t-f-p);if(r.style.float!==`none`){let e=Xr(c,r.style.clear,l+(u??0)-s);q(r,h,n,0,0,`shrink`,a);let m=r.localRect.width+f+p,g=r.localRect.height+i+d,_=Jr(c,t,r.style.float,e,m,g);c.push({..._,width:m,height:g,side:r.style.float}),r.localRect={...r.localRect,x:o+_.x+f,y:s+_.y+i};continue}let g=s+Xr(c,r.style.clear,m-s);if(c.length>0&&$r(r)){let i=mi(r,c,t,g-s,e,n,a);r.localRect={...r.localRect,x:o+i.x,y:s+i.y}}else{let i=e=>q(r,h,n,0,0,`fill`,a,void 0,c.length>0?{boxes:c,contentWidth:t,x:e,y:g-s}:void 0);i(f);let l=gi(e,t,r.localRect.width);c.length>0&&l!==f&&(i(l),l=gi(e,t,r.localRect.width)),r.localRect={...r.localRect,x:o+l,y:g}}l=r.localRect.y+r.localRect.height,u=d}return u!==null&&(l+=u),(c.length>0||e.children.some(e=>e.anonymous))&&hi(e,o,s,t,c),Math.max(l-s,Zr(c))}function mi(e,t,n,r,i,a,o){let s=(i.left??0)+(i.right??0),c=Ei(e,`min`,o)+s,l=t=>q(e,Math.max(0,t-s),a,0,0,`fill`,o),u=[...new Set(t.map(e=>e.y+e.height))].filter(e=>e>r).sort((e,t)=>e-t);for(let a of[r,...u.slice(0,-1)]){let r=qr(t,n,a);for(;r.width>=c;){l(r.width);let o=qr(t,n,a,e.localRect.height);if(o.width>=e.localRect.width+s)return{x:o.x+gi(i,o.width,e.localRect.width),y:a};if(o.width===r.width)break;r=o}}let d=u[u.length-1]??r;return l(n),{x:gi(i,n,e.localRect.width),y:d}}function hi(e,t,n,r,i){let a=e.style.lineGap,o=e=>X(e.style.margin,r).bottom??0,s=n,c,l=[];for(let u of e.children){if(K(u.style))continue;let{x:e,y:d,height:f}=u.localRect;if(u.style.float!==`none`){c?.flow&&(c.flow.bottom=Math.max(0,o(c))),l.push({float:u,previous:c});continue}if(u.anonymous)c?.flow&&(c.flow.bottom=d-s),s=d+f+a;else{let o=i.length>0&&$r(u)?qr(i,r,d-n,f).x:0,l=c?.flow?.bottom??0,p=d+a/2-s;u.flow={top:p>=l?p:p-l,right:0,bottom:0,left:e-t-o},s=d+a/2+f}c=u}for(let{float:e,previous:t}of l){let n=X(e.style.margin,r),i=t?.flow?o(t)-(t.flow.bottom??0):0;e.flow={top:(n.top??0)+i,right:n.right??0,bottom:n.bottom??0,left:n.left??0}}}function gi(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 _i(e,t){return e>=0&&t>=0?Math.max(e,t):e<=0&&t<=0?Math.min(e,t):e+t}function vi(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`?Ci(a,t,r,i):Math.min(t,wi(r,i));if(a!==void 0&&a.kind!==`auto`){let e=Ci(a,t,r,i);return Math.max(e,xi(r,t,i))}return Nr(r,t,i)}return a!==void 0&&a.kind!==`auto`?Ci(a,t,r,i):n===`shrink`?Math.min(t,wi(r,i)):t}function yi(e){let t=0,n=0;for(let r of e.children){if(r.style.position===`fixed`)continue;let e=bi(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 bi(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=yi(e);return{x:r?t:Math.max(t,a.x),y:i?n:Math.max(n,a.y)}}function xi(e,t,n){let r=e.style;return Mr(e,n).min+r.border.left+r.border.right+Y(r.padding.left,t)+Y(r.padding.right,t)+yn(r).right}function Si(e,t){if(e.height?.kind===`cells`)return e.height.value;if(e.height?.kind===`percent`&&t!=null)return St(e.height.value,t)}function Ci(e,t,n,r){switch(e.kind){case`cells`:return e.value;case`percent`:return St(e.value,t);case`min-content`:return Di(n,r);case`max-content`:return wi(n,r);case`fit-content`:return Math.min(wi(n,r),Math.max(Di(n,r),t));case`auto`:return wi(n,r)}}function wi(e,t){let n=t.maxContent.get(e);if(n!==void 0)return n;let r=e.style,i=Ti(e,t)+r.border.left+r.border.right+ui(r.padding.left)+ui(r.padding.right)+yn(r).right;return t.maxContent.set(e,i),i}function Ti(e,t){let n=e.children.filter(e=>!K(e.style)&&!e.inlineBox);if(n.length===0)return e.style.display===`multicol`?tr(e.style,e.intrinsicWidth):e.intrinsicWidth;if(e.style.display===`grid`)return Mn(e,t).max;if(e.style.display===`table`)return Mr(e,t).max;if(e.style.display===`flex`&&e.style.flexDirection===`row`){let r=Math.max(ui(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+Ei(n,`max`,t),0)+r}let r=n.reduce((e,n)=>Math.max(e,Ei(n,`max`,t)),0);if(e.style.display===`multicol`)return tr(e.style,r);if(e.style.display===`block`&&n.some(e=>e.style.float!==`none`)){let e=0,r=0,i=0;for(let a of n){let n=Ei(a,`max`,t);a.style.float===`none`?a.style.clear===`none`?i=Math.max(i,n):(e=Math.max(e,r+i),r=0,i=n):r+=n}return Math.max(e,r+i)}return r}function Ei(e,t,n){let r=e.style,i;r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`&&(i=Ci(r.width,0,e,n)),i===void 0&&(i=t===`min`?Di(e,n):wi(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 Di(e,t){let n=t.minContent.get(e);if(n!==void 0)return n;let r=e.style,i=Oi(e,t)+r.border.left+r.border.right+ui(r.padding.left)+ui(r.padding.right)+yn(r).right;return t.minContent.set(e,i),i}function Oi(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:Yt(e.text,{advances:e.advances,tracking:e.style.tracking});if(e.style.display===`grid`)return Mn(e,t).min;if(e.style.display===`table`)return Mr(e,t).min;if(e.style.display===`flex`&&e.style.flexDirection===`row`&&e.style.flexWrap===`nowrap`){let r=Math.max(ui(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+Ei(n,`min`,t),0)+r}return n.reduce((e,n)=>Math.max(e,Ei(n,`min`,t)),0)}function ki(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 Ai(e){return Bi(e,{}).grid.map(e=>e.join(``).trimEnd()).join(`
956
- `)}function ji(e,t={}){let{grid:n,paints:r}=Bi(e,t);return{segments:n.map((e,n)=>Mi(e,r[n],t.boxed)),cells:n}}function Mi(e,t,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a];if(o===``)continue;let s=t[a],c=1;for(;e[a+c]===``;)c++;if(n&&(o.length>1||o.charCodeAt(0)>=128)&&n(o,c,s)){r.push({text:o,cells:c,box:!0,...s}),i=0;continue}let l=r[r.length-1];if(l&&!l.box&&Pi(l,s))l.text+=o,i+=c;else if(l&&!l.box&&s&&(l.backgrounds||l.backgroundColor!==void 0)&&Ni(l,s,`backgroundColor`)){l.backgrounds??=Array.from({length:i},()=>l.backgroundColor),delete l.backgroundColor,l.text+=o,i+=c;for(let e=0;e<c;e++)l.backgrounds.push(s.backgroundColor)}else if(l&&!l.box&&s&&s.backgroundColor===void 0&&(l.colors||l.color!==void 0)&&Ni(l,s,`color`)){l.colors??=Array.from({length:i},()=>l.color),delete l.color,l.text+=o,i+=c;for(let e=0;e<c;e++)l.colors.push(s.color)}else r.push({text:o,...s}),i=c}return r}function Ni(e,t,n){let r=n===`color`?`text`:`fill`,i=n===`color`?`backgroundColor`:`color`;return e.gradient===r&&t.gradient===r&&t[n]!==void 0&&e.selected===void 0&&t.selected===void 0&&e[i]===t[i]&&e.fontWeight===t.fontWeight&&e.fontStyle===t.fontStyle&&e.textDecorationLine===t.textDecorationLine&&e.opacity===t.opacity}function Pi(e,t){return e.color===t?.color&&e.backgroundColor===t?.backgroundColor&&e.gradient===t?.gradient&&e.backgrounds===t?.backgrounds&&e.colors===t?.colors&&e.fontWeight===t?.fontWeight&&e.fontStyle===t?.fontStyle&&e.textDecorationLine===t?.textDecorationLine&&e.opacity===t?.opacity&&e.selected===t?.selected}function Fi(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.backgrounds&&(t.backgroundImage=`linear-gradient(to right, ${Ri(e.backgrounds)})`),e.colors&&(t.backgroundImage=`linear-gradient(to right, ${Ri(e.colors)})`,t.webkitBackgroundClip=`text`,t.backgroundClip=`text`,t.color=`transparent`)),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 Ii(e,t,n){let r=new Map;return(i,a,o)=>{let s=e[o-n]?.[a-t];if(s==null||i?.color===void 0)return i;let c=r.get(i.color);if(c===void 0&&r.set(i.color,c=je(i.color)),c===null||c.a>=1)return i;let l=je(s);return l?{...i,color:ze(Re(c,l)),gradient:`text`}:i}}function Li(e,t){let{border:n}=e.style;if(t===`padding-box`)return n;let r=e.resolvedPadding;return{top:n.top+r.top,right:n.right+r.right,bottom:n.bottom+r.bottom,left:n.left+r.left}}function Ri(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];e[n+1]!==r&&t.push(`${r} 0 calc(var(--mw-cw, 1ch) * ${n+1})`)}return t.join(`, `)}function zi(e){return e.color===void 0&&e.backgroundColor===void 0&&e.backgrounds===void 0&&e.colors===void 0&&e.fontWeight===void 0&&e.fontStyle===void 0&&e.textDecorationLine===void 0&&e.opacity===void 0&&e.selected===void 0}function Bi(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 Hi(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 Vi(e,t=!0){let n={};return e.color&&(n.color=e.color),t&&e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.fontWeight!==`400`&&e.fontWeight!==`normal`&&e.fontWeight!==``&&(n.fontWeight=e.fontWeight),e.fontStyle!==`normal`&&e.fontStyle!==``&&(n.fontStyle=e.fontStyle),e.textDecorationLine!==`none`&&e.textDecorationLine!==``&&(n.textDecorationLine=e.textDecorationLine),n}function Hi(e,t,n,r,a,o=1,s=()=>!0){if(e.tableHidden)return;let c=t+e.localRect.x+(e.stickyShift?.x??0),l=n+e.localRect.y+(e.stickyShift?.y??0),u=e.style,d=e=>o>=1?e:{...e,opacity:String(Math.round(o*1e3)/1e3)},f={x:c,y:l,width:e.localRect.width,height:e.localRect.height},p=e=>{let t=[];He(u,f,e,t);for(let e of t)a(e.x,e.y,e.glyph,d(e.color===void 0?void 0:{color:e.color}))};p(!1);let m=u.backgroundImage,h=u.backgroundClip===`text`,g=r.cell??lt,_=t=>{let n={gradient:void 0,...t};for(let t=0;t<e.localRect.height;t++)for(let r=0;r<e.localRect.width;r++)a(c+r,l+t,` `,n)};u.backgroundClear&&_({backgroundColor:void 0});let v=null;if(h&&(m.length>0||u.backgroundColor!==void 0)){let{width:t,height:n}=e.localRect;v=Ii(ft(m,u.backgroundColor,t,n,g),c,l)}else if(m.length>0){let{width:t,height:n}=e.localRect,r=ft(m,u.backgroundColor,t,n,g),i=u.backgroundClip,o=i===`padding-box`||i===`content-box`?Li(e,i):xn();for(let e=o.top;e<n-o.bottom;e++)for(let n=o.left;n<t-o.right;n++){let t=r[e][n];t&&a(c+n,l+e,` `,d({backgroundColor:t,gradient:`fill`}))}}else u.backgroundColor!==void 0&&_(d({backgroundColor:u.backgroundColor}));p(!0);let y=[];Ve(u,{x:c,y:l,width:e.localRect.width,height:e.localRect.height},y);for(let e of y){let t=d(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=d(t.color===void 0?void 0:{color:t.color});for(let n=0;n<t.length;n++)a(c+t.x+n,l+t.y,t.glyph,e)}let b=e.lattice?ot(e,e.lattice,(e,t)=>s(c+e,l+t)):null;if(e.lattice&&b){for(let t of e.lattice.handed??[])delete t.latticeRuns;e.lattice.handed=[...b.parts.keys()];for(let[e,t]of b.parts)e.latticeRuns=t.map(e=>({...e,x:c+e.x,y:l+e.y}))}if(e.latticeRuns)for(let t of e.latticeRuns)a(t.x,t.y,t.glyph,d(t.color===void 0?void 0:{color:t.color}));let x=c-(e.scroll?.x??0),S=l-(e.scroll?.y??0),C=a,w=s,T=Wi(e,c,l);if(T){let{x0:e,y0:t,x1:n,y1:r}=T,i=(i,a)=>i<e||i>=n||a<t||a>=r;w=(e,t)=>!i(e,t)&&s(e,t),C=(e,t,n,r,o=1)=>{if(o===1){i(e,t)||a(e,t,n,r);return}let s=!0;for(let n=0;n<o;n++)i(e+n,t)&&(s=!1);if(s)a(e,t,n,r,o);else for(let n=0;n<o;n++)i(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=d(Vi(u,m.length===0&&!v)),n=e.inlineElements?.map(e=>d(Vi(e))),i=r.selection?.get(e),a=(t,n,r,i,a,o)=>{if(e.text[t]===`⁠`){a?.backgroundColor&&C(r,i,` `,d({backgroundColor:a.backgroundColor}));return}let s=n===1?e.text[t]:e.text.slice(t,t+n),c=It(s);c>0&&C(r,i,s,v?v(o,r,i):o,c)},o=[];Ui(e,x,S,(r,s,c,l)=>{let u=e.charInline?.[r]??-1,d=u>=0?e.inlineElements[u]:void 0,f=d?n[u]:t;i&&r>=i.start&&r<i.end&&(f={...f,selected:!0}),d?.stickyShift?o.push([r,s,c,l,d,f]):a(r,s,c,l,d,f)},(e,n)=>C(e,n,`…`,t));for(let e of o)a(...e)}for(let t of Ge(e))Hi(t,x,S,r,C,o*t.style.opacity,w);if(b)for(let e of b.runs){let t=d(e.color===void 0?void 0:{color:e.color});a(c+e.x,l+e.y,e.glyph,t)}let E=e.scrollRange,D=e.scrollGutterCells;if(E&&D&&(D.right>0||D.bottom>0)){let{track:t,thumb:n}=k(i(u.glyphSet)),r=e=>d(e?{color:e}:void 0),o=r(u.scrollbarColor?.track??u.color),s=r(u.scrollbarColor?.thumb??u.color),f=Ji(e,c,l);if(f.y){let{col:r,row:i,thick:c,len:l}=f.y,{at:u,len:d}=Yi(l,E.sizeY,E.maxY,e.scroll?.y??0);for(let e=0;e<c;e++)for(let c=0;c<l;c++){let l=c>=u&&c<u+d;a(r+e,i+c,l?n:t,l?s:o)}}if(f.x){let{col:r,row:i,thick:c,len:l}=f.x,{at:u,len:d}=Yi(l,E.sizeX,E.maxX,e.scroll?.x??0);for(let e=0;e<c;e++)for(let c=0;c<l;c++){let l=c>=u&&c<u+d;a(r+c,i+e,l?n:t,l?s:o)}}}}function Ui(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??ai(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=e.lineBands?.[t],m=l?l.width:p,h=t===0?a.textIndent:0,g=a.whiteSpace!==`normal`&&a.overflow.x===`clip`?Xi(e.text,n,m-h,e.advances,a):{end:n.end,ellipsis:!1},_=qt(e.text,n.start,n.end,e.advances,a.tracking),v=Math.max(0,m-h-_),y=a.textAlign===`end`?v:a.textAlign===`center`?Math.floor(v/2):0,b=s+(u?.lineX[t]??0)+(l?.x??0)+y+h,x=e.advances;for(let t=n.start;t<g.end;){let n=Kt(t,t+1,x),i=1;if(x)for(;t+i<g.end&&x[t+i]===0;)i++;if(e.text[t]!==``&&n>0){let a=e.inlineElements?.[e.charInline?.[t]??-1],s=a?.insets,c=(s?s.left??(s.right===null?0:-s.right):0)+(a?.stickyShift?.x??0),l=(s?s.top??(s.bottom===null?0:-s.bottom):0)+(a?.stickyShift?.y??0);r(t,i,b+c,o+l,n)}b+=n,t+=i}g.ellipsis&&i?.(b,o)}}function Wi(e,t,n){let{overflow:r,border:i}=e.style,a=r.x!==`visible`,o=r.y!==`visible`;if(!a&&!o)return null;let s=e.scrollGutterCells,{width:c,height:l}=e.localRect;return{x0:a?t+i.left:-1/0,y0:o?n+i.top:-1/0,x1:a?t+c-i.right-(s?.right??0):1/0,y1:o?n+l-i.bottom-(s?.bottom??0):1/0}}function Gi(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 Ki(e,t,n,r,i){let a=null;return Ui(e,t-(e.scroll?.x??0),n-(e.scroll?.y??0),(t,n,o,s,c)=>{if(s!==i||r<o||r>=o+c)return;let l=e.inlineElements?.[e.charInline?.[t]??-1]?.stickyShift!==void 0;(a===null||l)&&(a=t)}),a}function qi(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 Ui(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 Ji(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 Yi(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 Xi(e,t,n,r,i){let{textOverflow:a,tracking:o}=i;if(qt(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&&qt(e,t.start,c+1,r,o)<=s;)c++;return{end:c,ellipsis:a===`ellipsis`&&n>0}}function Zi(e,t,n){let{width:r,height:i}=e.localRect,a=e.textExtent;if(a){let{border:t,overflow:n}=e.style,o=e.resolvedPadding;n.x===`visible`&&(r=Math.max(r,t.left+o.left+a.width)),n.y===`visible`&&(i=Math.max(i,t.top+o.top+a.rows))}return{x:t,y:n,width:r,height:i}}function Qi(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+(r.stickyShift?.x??0),s=o+r.localRect.y+(r.stickyShift?.y??0);(r.multicolFlow?Gi(r,i,s,t,n):$i(Zi(r,i,s),t,n))&&(e=r)}if(!e)return r;let s=a+e.localRect.x+(e.stickyShift?.x??0),c=o+e.localRect.y+(e.stickyShift?.y??0);r.push({node:e,x:s,y:c});let l=Wi(e,s,c);if(l&&(t<l.x0||t>=l.x1||n<l.y0||n>=l.y1))return r;a=s-(e.scroll?.x??0),o=c-(e.scroll?.y??0),i=e}}function $i(e,t,n){return t>=e.x&&t<e.x+e.width&&n>=e.y&&n<e.y+e.height}function ea(e){return e.closest?.(`[inert]`)!=null}function ta(e,t,n){let r=[];for(let i of Qi(e,t,n)){if(ea(i.node.source))break;i.node.anonymous||r.push(i.node.source)}return r}function na(e,t,n){let r=(e,t,n)=>e>0?-Math.ceil(e/n):t>0?Math.ceil(t/n):0;return{x:r(e.left-t.x,t.x-e.right,n.width),y:r(e.top-t.y,t.y-e.bottom,n.height)}}function*ra(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 ia={ArrowUp:`up`,ArrowDown:`down`,ArrowLeft:`left`,ArrowRight:`right`};function aa(e){return ia[e]??null}function oa(e,t,n){let r=null,i=null;for(let a of n){let n=ca(e,t,a.rect);n&&(!i||sa(n,i))&&(r=a,i=n)}return r?.element??null}function sa(e,t){for(let n=0;n<e.length;n++)if(e[n]!==t[n])return e[n]<t[n];return!1}function ca(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 la(e){let t=[],n=(e,r,i,a)=>{if(e.tableHidden)return;let o=r+e.localRect.x+(e.stickyShift?.x??0),s=i+e.localRect.y+(e.stickyShift?.y??0);!a&&!e.anonymous&&da(e.source)&&t.push({element:e.source,rect:{x:o,y:s,width:e.localRect.width,height:e.localRect.height}});for(let n of qi(e,o,s))da(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 ua(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 da(e){let t=e.tabIndex;return typeof t!=`number`||t<0?!1:!e.matches(`:disabled`)&&!ea(e)}var fa=new Set([`text`,`search`,`url`,`tel`,`email`,`password`]),pa=new Set([`checkbox`,`button`,`submit`,`reset`,`image`,`file`]);function ma(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:fa.has(n)?t===`ArrowLeft`||t===`ArrowRight`:!pa.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 ha(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 ga(e){let t=se(e.source.tagName)?.selectionTarget?.(e.source)??null;return t&&t.textContent===e.text?t:null}function _a(e,t){let n=t,r=null;for(let t of ya(e)){if(n<=t.data.length)return[t,n];n-=t.data.length,r=[t,t.data.length]}return r}function va(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*ya(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=t.nextNode();for(;n;)yield n,n=t.nextNode()}function ba(e,t,n){if(!e.charSource){let r=ga(e);return(r&&va(r,t,n))??0}let r=_n(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];ha(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 xa(e,t){if(!e.charSource){let n=ga(e),r=n&&_a(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 Sa(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 Ca(e,t,n){let{startContainer:r,endContainer:i}=n;return t.contains(r)&&t.contains(i)?`grid`:wa(e,r)&&wa(e,i)?`light`:`outside`}function wa(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 Ta(e){let t=[],n=e=>{let r=ga(e)?.getRootNode();r instanceof ShadowRoot&&t.push(r);for(let t of e.children)n(t)};return n(e),t}function Ea(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=ba(a,t.startContainer,t.startOffset),s=ba(a,t.endContainer,t.endOffset);return{leaf:a,start:Math.min(o,s),end:Math.max(o,s)}}function Da(e,t){let n=Ea(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&&Ia(e,r)){if(Ra(e)){let{text:t}=e,n=0,a=t.length;e.charSource&&(La(e,r.startContainer)&&(n=ba(e,r.startContainer,r.startOffset)),La(e,r.endContainer)&&(a=ba(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 Oa(e,t){let n=Ea(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 ka(e,r,i),Ba(i)}function ka(e,t,n){if(e.tableHidden||!Ia(e,t))return;let r=Na(e);if(r&&n.push({breaks:r}),e.style.tableRole===`row`)Aa(e,t,n);else if(e.style.display===`table`){let r=Ma(e);for(let r of e.children)r.style.tableRole===`row`||ja(r)||ka(r,t,n);let i=!1;for(let e of r)t.intersectsNode(e.source)&&(i&&n.push({text:`
957
- `}),ka(e,t,n),i=!0)}else{Ra(e)&&n.push({text:za(e,t)});for(let r of e.children)r.inlineBox||ka(r,t,n)}r&&n.push({breaks:r})}function Aa(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:` `}),ka(i,t,n),r=!0)}function ja(e){let t=e.style.tableRole;return t===`header-group`||t===`row-group`||t===`footer-group`}function Ma(e){let t=[];for(let n of e.children)if(n.style.tableRole===`row`)t.push(n);else if(ja(n))for(let e of n.children)e.style.tableRole===`row`&&t.push(e);return t}function Na(e){if(e.inlineBox)return 0;let t=e.style.tableRole;return t===`row`||t===`cell`||ja(e)||t===`column`||t===`column-group`?0:e.source.tagName===`P`&&!e.anonymous?2:1}function Pa(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 _n(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)=>ha(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 Fa(e){return[...(e.charSource??[]).map(e=>e.node),...(e.inlineElements??[]).map(e=>e.element),...e.children.map(e=>e.source)]}function Ia(e,t){return e.anonymous?Fa(e).some(e=>t.intersectsNode(e)):t.intersectsNode(e.source)}function La(e,t){return e.anonymous?e.source===t||Fa(e).some(e=>e===t||e.contains(t)):e.source.contains(t)}function Ra(e){return e.text.length!==0&&!e.children.some(e=>!e.inlineBox&&e.style.position!==`absolute`&&e.style.position!==`fixed`)}function za(e,t){let{text:n}=e,r=0,i=n.length;e.charSource&&(La(e,t.startContainer)&&(r=ba(e,t.startContainer,t.startOffset)),La(e,t.endContainer)&&(i=ba(e,t.endContainer,t.endOffset)));let a=n.slice(r,i);i===n.length&&a.endsWith(`
958
- `)&&(a=a.slice(0,-1));let o=_n(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 ka(e,t,n),Ba(n)}),a.replaceAll(`⁠`,``)}function Ba(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 Va=new Map;function Ha(e,t){let{text:n}=e;if(t<0||t>=n.length||Ua(n[t]))return null;let r=t;for(;r>0&&!Ua(n[r-1]);)r--;let i=t;for(;i<n.length&&!Ua(n[i]);)i++;let a=Wa(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 Ua(e){return e===`
960
- `||e===``||e===`⁠`}function Wa(e){let t=Va.get(e);return t===void 0&&(t=Ga(e)??Ga(``),Va.set(e,t)),t}function Ga(e){if(typeof Intl.Segmenter!=`function`)return null;try{return new Intl.Segmenter(e||void 0,{granularity:`word`})}catch{return null}}var Ka=[{range:/^[\u2580-\u2590\u2594-\u259F]$/,reference:`█`},{range:/^[\u2500-\u257F]$/,reference:`│`}],qa=/^[\u2591-\u2593]$/,Ja=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=Ka.find(t=>t.range.test(e));if(s)return this.#c(s.reference,r,n);if(qa.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;if(!n)return 0;let r=(n-t*this.#i.height*this.#a%n)%n,i=n-r,a=e.reach;return(a&&r>a.above*this.#a&&i<=a.below*this.#a?-i:r)/this.#a}#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)}if(a.lineHeight=Math.round(n*100)/100,i){let e=(c+d)*t,r=(n-e)/2;a.reach={above:Math.round(-r*100)/100,below:Math.round((r+e-s)*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}},Ya=new WeakMap,Xa=new WeakMap;function Za(e){return oo(e,!0)!==null}function Qa(e,t,n={}){let r=n.glyphs,i={};r&&(i.boxed=(e,t,n)=>r.box(e,t,n)!==null||n?.opacity!==void 0&&$a(e)),n.selection&&(i.selection=n.selection),n.cell&&(i.cell=n.cell);let{segments:a,cells:o}=ji(e,i),s=co(a);if(Ya.get(t)===s)return!0;let c=Xa.get(t),l=new Set;if(c&&c.rows.length===a.length)for(let e=0;e<a.length;e++)io(t,c.rows[e].nodes,a[e])||l.add(e);if((l.size>0||!c||c.rows.length!==a.length)&&n.holdStructural&&Za(t))return!1;if(Ya.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}=eo(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})}Xa.set(t,{rows:n,cells:o});let i=oo(t,!1);return t.replaceChildren(e),i&&so(t,i),!0}let u=l.size>0?oo(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=eo(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];zi(a)||ro(a,i.segments[t])||no(i.nodes[t],a,r,e)}i.segments=n}return c.cells=o,u&&so(t,u),!0}function $a(e){let t=e.codePointAt(0)??0;return t>=9472&&t<=9631}function eo(e,t,n){let r=[],i=0;for(let a of e){if(i+=a.text.length,zi(a)&&!a.box){r.push(document.createTextNode(a.text));continue}let e=document.createElement(`span`);no(e,a,t,n),e.textContent=a.text,r.push(e)}return{nodes:r,units:i}}function to(e,t,n){return Xa.get(e)?.cells[n]?.[t]}function no(e,t,n,r){if(e.style.cssText=``,delete e.dataset.shade,Fi(t,e.style),!t.box)return;let i=t.cells??1,a=n?.box(t.text,i,t),o=e.style;if(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){let i=a.lineHeight;a.period&&n&&(e.dataset.shade=t.text,o.setProperty(`--mw-period`,`${a.period}px`),i+=2*n.shift(a,r)),o.lineHeight=`${i}px`}}function ro(e,t){return Pi(e,t)&&e.box===t.box&&e.cells===t.cells&&e.backgrounds?.join(`,`)===t.backgrounds?.join(`,`)&&e.colors?.join(`,`)===t.colors?.join(`,`)}function io(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((zi(a)&&!a.box)!==(i.nodeType===Node.TEXT_NODE)||i.textContent!==a.text||i.parentNode!==e)return!1}return!0}function ao(e,t,n){let r=Xa.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 oo(e,t){try{let n=e.ownerDocument.getSelection();if(!n)return null;let r=e.getRootNode();if(!(r instanceof ShadowRoot))return null;let i=Sa(r);if(!i)return null;let a=va(e,i.startContainer,i.startOffset),o=va(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 so(e,t){try{let n=_a(e,t.start),r=_a(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 co(e){let t=[];for(let n of e){for(let e of n)t.push(e.text,e.color??``,e.backgroundColor??``,e.backgrounds?.join(`,`)??``,e.colors?.join(`,`)??``,e.fontWeight??``,e.fontStyle??``,e.textDecorationLine??``,e.opacity??``,e.selected?`s`:``,e.box?`b${e.cells}`:``);t.push(`
962
- `)}return t.join(``)}function lo(e){let t=new Set;fo(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 Q(e,t){e.style.getPropertyValue(t)!==``&&e.style.removeProperty(t)}function uo(e,t,n){e.getAttribute(t)!==n&&(n===null?e.removeAttribute(t):e.setAttribute(t,n))}function $(e,t,n){e.hasAttribute(t)!==n&&(n?e.setAttribute(t,``):e.removeAttribute(t))}function fo(e,t,n,r){if(e.inlineElements)for(let{element:t,tracking:r,padLeft:i,padRight:a,insets:o,sticky:s}of e.inlineElements){let e=t;Z(e,`--mw-ls`,String(r)),i>0?Z(e,`--mw-ipl`,String(i)):Q(e,`--mw-ipl`),a>0?Z(e,`--mw-ipr`,String(a)):Q(e,`--mw-ipr`),(o||s)&&(n.add(t),go(e,o??{top:0,right:null,bottom:null,left:0}))}t?ho(e):e.anonymous||vo(e);let i=e.style.backgroundColor??(e.style.backgroundClear?void 0:r);if(!t&&!e.anonymous&&mo(e.source,e,i),!e.tableHidden)for(let t of Ge(e)){if(!t.anonymous){let n=t.source;t.style.zIndex!==null&&We(t,e)&&!t.inlineBox?Z(n,`--mw-z`,String(t.style.zIndex)):Q(n,`--mw-z`)}fo(t,!1,n,i)}}var po=`input, textarea, select, [contenteditable], [contenteditable] *`;function mo(e,t,n){e.matches(po)&&(t.style.color===void 0?Q(e,`--mw-ink`):Z(e,`--mw-ink`,t.style.color),n===void 0?Q(e,`--mw-ground`):Z(e,`--mw-ground`,n))}function ho(e){let t=e.source,n=e.text.length>0||e.children.some(e=>e.anonymous),{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?Z(t,`--mw-ti`,String(a)):Q(t,`--mw-ti`)}function go(e,t){$(e,`data-mw-inline-inset`,!0);let n=(t,n)=>{n===null?Q(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 _o(e){for(let{node:t}of e){if(t.style.position===`sticky`){let e=t.source,n=t.stickyShift;n?(Z(e,`--mw-sx`,String(n.x)),Z(e,`--mw-sy`,String(n.y))):(Q(e,`--mw-sx`),Q(e,`--mw-sy`))}for(let e of t.inlineElements??[]){if(e.sticky===void 0)continue;let t=e.element;Z(t,`--mw-it`,String(e.stickyShift?.y??0)),Z(t,`--mw-il`,String(e.stickyShift?.x??0))}}}function vo(e){let t=e.source,n=e.localRect;e.style.position!==`sticky`&&(Q(t,`--mw-sx`),Q(t,`--mw-sy`));let 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&&!e.flow),$(t,`data-mw-inline-box`,!!e.inlineBox),$(t,`data-mw-multicol-flow`,!!u),$(t,`data-mw-multicol-flow-span`,!!d);let f=e.flow&&e.style.float!==`none`?e.style.float:null;uo(t,`data-mw-float`,f),uo(t,`data-mw-flow`,e.flow&&!f?$r(e)?`box`:`text`:null);let p=u??d??e.flow;p?(Z(t,`--mw-mt`,String(p.top??0)),Z(t,`--mw-mr`,String(p.right??0)),Z(t,`--mw-mb`,String(p.bottom??0)),Z(t,`--mw-ml`,String(p.left??0))):(Q(t,`--mw-mt`),Q(t,`--mw-mr`),Q(t,`--mw-mb`),Q(t,`--mw-ml`)),$(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)),$(t,`data-mw-nowrap`,s!==`normal`);let m=u||d?void 0:e.multicolGeometry;if($(t,`data-mw-multicol`,!!m),$(t,`data-mw-multicol-balance`,!!m?.nativeBalance),m?(Z(t,`--mw-colc`,String(m.columnCount)),Z(t,`--mw-colg`,String(m.gap))):(Q(t,`--mw-colc`),Q(t,`--mw-colg`)),$(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)),$(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;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 Q(t,`--mw-se-x`),Q(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)),$(t,`data-mw-text-align-blocked`,a),$(t,`data-mw-table-hidden`,!!e.tableHidden),$(t,`data-mw-hidden-runs`,e.children.some(e=>e.anonymous&&e.tableHidden))}function yo(e,t,n,r,i){let a=0;return i!==null&&e.end>n.end-i&&(a=n.end-i-e.end),r!==null&&e.start+a<n.start+r&&(a=n.start+r-e.start),a>0?Math.min(a,Math.max(0,t.end-e.end)):a<0?Math.max(a,Math.min(0,t.start-e.start)):0}function bo(e){let t=[],n=[],r=e=>{n.length>0&&xo(e)&&t.push({node:e,ancestors:n.slice()}),n.push(e);for(let t of e.children)r(t);n.pop()};return r(e),t}function xo(e){return e.style.position===`sticky`||(e.inlineElements?.some(e=>e.sticky!==void 0)??!1)}function So(e){for(let t of e)Co(t)}function Co({node:e,ancestors:t}){let n={x:0,y:0},r=null,i=null;for(let e of t){let t={x:n.x+e.localRect.x+(e.stickyShift?.x??0),y:n.y+e.localRect.y+(e.stickyShift?.y??0)};n={x:t.x-(e.scroll?.x??0),y:t.y-(e.scroll?.y??0)},e.scrollRange&&(r={node:e,origin:t}),e.style.display===`table`&&(i={node:e,origin:n})}let a=t[t.length-1],o=r&&Wi(r.node,r.origin.x,r.origin.y),s={x:n.x+e.localRect.x,y:n.y+e.localRect.y};if(e.style.position===`sticky`&&(delete e.stickyShift,o)){let t=e.style.tableRole!==`none`&&i?i:{node:a,origin:n},c=Do(t.node,t.origin,r.node),l=t===i&&i.node.lattice?To(i.node.lattice,e):{top:0,right:0,bottom:0,left:0},{insets:u}=e.style,d={x:yo({start:s.x-l.left,end:s.x+e.localRect.width+l.right},c.x,{start:o.x0,end:o.x1},Eo(u.left,o.x1-o.x0),Eo(u.right,o.x1-o.x0)),y:yo({start:s.y-l.top,end:s.y+e.localRect.height+l.bottom},c.y,{start:o.y0,end:o.y1},Eo(u.top,o.y1-o.y0),Eo(u.bottom,o.y1-o.y0))};(d.x!==0||d.y!==0)&&(e.stickyShift=d)}e.inlineElements&&wo(e,s,o)}function wo(e,t,n){let r={x:t.x+(e.stickyShift?.x??0),y:t.y+(e.stickyShift?.y??0)},i=Do(e,r,null);for(let t of e.inlineElements??[]){if(t.sticky===void 0||(delete t.stickyShift,!n))continue;let a=qi(e,r.x,r.y).filter(({element:e})=>e===t.element).map(({rect:e})=>e);if(a.length===0)continue;let o={x:{start:Math.min(...a.map(e=>e.x)),end:Math.max(...a.map(e=>e.x+e.width))},y:{start:Math.min(...a.map(e=>e.y)),end:Math.max(...a.map(e=>e.y+e.height))}},s={x:yo(o.x,i.x,{start:n.x0,end:n.x1},t.sticky.left,t.sticky.right),y:yo(o.y,i.y,{start:n.y0,end:n.y1},t.sticky.top,t.sticky.bottom)};(s.x!==0||s.y!==0)&&(t.stickyShift=s)}}function To(e,t){let n=st(e,t);if(!n)return{top:0,right:0,bottom:0,left:0};let{r0:r,r1:i,c0:a,c1:o}=n,s=t.style.tableRole===`cell`;return{top:e.hLines[r],bottom:e.hLines[i+1],left:s?e.vLines[a]:0,right:s?e.vLines[o+1]:0}}function Eo(e,t){return e===null?null:Y(e,t)}function Do(e,t,n){let{border:r}=e.style,i=e.resolvedPadding,a=t.x+r.left+i.left,o=t.y+r.top+i.top,s=e.localRect.width-r.left-r.right-i.left-i.right,c=e.localRect.height-r.top-r.bottom-i.top-i.bottom;return e===n&&e.scrollRange&&(s=Math.max(s,e.scrollRange.sizeX),c=Math.max(c,e.scrollRange.sizeY)),{x:{start:a,end:a+s},y:{start:o,end:o+c}}}function Oo(e,t,n){let r=getComputedStyle(e),a=parseFloat(r.fontSize)||t,o=Zo(e)?e.computedStyleMap():null,s=e.getAttribute(`class`)??``,c=e.style;Ko(e,s,c);let l=r.getPropertyValue(`--mw-border-glyphs`).trim()||null,u=i(l),d=(e,r,i)=>Ps(o,e,r,s,i,c,n,t)??Is(o,e,r,s,i,c,n,t)??Es(r,t),f=r.display||Ho[e.tagName]||``,p=Uo[f]??`none`,m=r.columnCount&&r.columnCount!==`auto`?Math.max(1,Math.floor(Number(r.columnCount)||1)):null,h=r.columnWidth&&r.columnWidth!==`auto`?parseFloat(r.columnWidth):NaN,g=Number.isFinite(h)?Math.max(1,xt(h,t)):null,_=f===`flex`||f===`inline-flex`?`flex`:f===`grid`||f===`inline-grid`?`grid`:f===`table`||f===`inline-table`?`table`:f===`none`||Vo(e,r)?`none`:m!==null||g!==null?`multicol`:`block`,v={kind:`none`},y={kind:`none`},b=[Sn()],x=[Sn()],S={direction:`row`,dense:!1},C=null;if(_===`grid`){if(o)v=zs(o.get(`grid-template-columns`)?.toString()??``,t),y=zs(o.get(`grid-template-rows`)?.toString()??``,t);else{e.setAttribute(`data-mw-degrid`,``);try{v=zs(r.getPropertyValue(`grid-template-columns`),t),y=zs(r.getPropertyValue(`grid-template-rows`),t)}finally{e.removeAttribute(`data-mw-degrid`)}}b=Us(r.getPropertyValue(`grid-auto-columns`),t),x=Us(r.getPropertyValue(`grid-auto-rows`),t),S=Ys(r.getPropertyValue(`grid-auto-flow`)),C=Hs(r.getPropertyValue(`grid-template-areas`))}let w=`auto`,T=!1,E=0,D=0;if(_===`table`&&(w=r.tableLayout===`fixed`?`fixed`:`auto`,T=r.borderCollapse===`collapse`,!T)){let e=r.borderSpacing.split(` `);E=xt(parseFloat(e[0]??``)||0,t),D=xt(parseFloat(e[1]??e[0]??``)||0,t)}let O={display:_,tableRole:p,tableLayout:w,borderCollapse:T,borderSpacingX:E,borderSpacingY:D,captionSide:r.captionSide===`bottom`?`bottom`:`top`,verticalAlign:p===`cell`||f.startsWith(`inline-`)?Wo(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:Ls(r.flexBasis,t),order:Number(r.order)||0,justifyContent:Qo(r.justifyContent),alignContent:Qo(r.alignContent),alignItems:$o(r.alignItems),alignSelf:es(r.alignSelf),justifyItems:$o(r.justifyItems),justifySelf:es(r.justifySelf),gridTemplateColumns:v,gridTemplateRows:y,gridAutoColumns:b,gridAutoRows:x,gridAutoFlow:S,gridTemplateAreas:C,gridColumnStart:Js(r.getPropertyValue(`grid-column-start`)),gridColumnEnd:Js(r.getPropertyValue(`grid-column-end`)),gridRowStart:Js(r.getPropertyValue(`grid-row-start`)),gridRowEnd:Js(r.getPropertyValue(`grid-row-end`)),width:As(o,r.width,`width`,t,s,c,n),height:As(o,r.height,`height`,t,s,c,n),minWidth:d(`min-width`,r.minWidth,`min-w`)??`auto`,minHeight:d(`min-height`,r.minHeight,`min-h`)??`auto`,maxWidth:d(`max-width`,r.maxWidth,`max-w`),maxHeight:d(`max-height`,r.maxHeight,`max-h`),padding:Xs(r,t),margin:ts(r,o,s,c,t),position:is(r.position),float:as(r.position)?`none`:os(r.float),clear:ss(r.clear),insets:cs(r,o,s,c,t),gapX:Ds(r.columnGap===`normal`||r.columnGap===``?_===`multicol`?`${a}px`:`0px`:r.columnGap,t),gapY:Ds(r.rowGap===`normal`?`0px`:r.rowGap,t),...Zs(r,u),borderRadius:{tl:ws(r.borderTopLeftRadius,t),tr:ws(r.borderTopRightRadius,t),bl:ws(r.borderBottomLeftRadius,t),br:ws(r.borderBottomRightRadius,t)},overflow:Bo(r),scrollbarWidth:Io(e,r),scrollbarColor:Lo(r.scrollbarColor),overscroll:{x:(r.overscrollBehaviorX||`auto`)===`auto`,y:(r.overscrollBehaviorY||`auto`)===`auto`},scrollbarSize:{x:Ro(r.getPropertyValue(`--mw-scrollbar-size-x`)),y:Ro(r.getPropertyValue(`--mw-scrollbar-size-y`))},scrollbarInset:{x:Ro(r.getPropertyValue(`--mw-scrollbar-inset-x`),0),y:Ro(r.getPropertyValue(`--mw-scrollbar-inset-y`),0)},...Go(e,r,t),lineGap:rs(r.lineHeight,a),tracking:ns(r.letterSpacing,a,n?.letterSpacing??0),color:r.color,fontWeight:r.fontWeight,fontStyle:r.fontStyle,backgroundColor:jo(e,r.backgroundColor,r),backgroundClear:r.getPropertyValue(`--mw-bg-clear`).trim()===`1`,backgroundImage:ds(r.backgroundImage,r.color,t),backgroundClip:gs(r.backgroundClip),borderColor:{top:r.borderTopColor,right:r.borderRightColor,bottom:r.borderBottomColor,left:r.borderLeftColor},opacity:Os(r.opacity),glyphSet:l,boxShadow:us(r.boxShadow,t,n),zIndex:r.zIndex===`auto`||r.zIndex===``?null:Number(r.zIndex)||0,latticeBorder:null,ruleX:_===`flex`||_===`grid`||_===`multicol`?Jo(r,`x`,u):null,ruleY:_===`flex`||_===`grid`?Jo(r,`y`,u):null,ruleBreak:qo(r,`--mw-rule-break`,[`none`,`intersection`],`normal`),ruleInset:r.getPropertyValue(`--mw-rule-inset`).trim()===`overlap-join`?`overlap-join`:Math.max(0,bt(parseFloat(r.getPropertyValue(`--mw-rule-inset`))||0)),ruleVisibilityItems:qo(r,`--mw-rule-visibility-items`,[`all`,`around`,`between`],`normal`),columnCount:m,columnWidth:g,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 ko(O,r),O}function ko(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,weight:e.borderWeight,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=xn(),e.display===`table`&&(e.padding=xn()))}function Ao(e){if(!e)return!0;let t=e.trim().toLowerCase();return t===``||t===`transparent`||t===`rgba(0, 0, 0, 0)`||t===`currentcolor`}function jo(e,t,n){let r=he(e,Ao(t)?``:t,n);return r===``?void 0:r}function Mo(e){return e===`hidden`||e===`clip`}var No=new WeakMap,Po=null;function Fo(e){if(Po!==null)return Po;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),Po=getComputedStyle(t).scrollbarWidth!==`none`,t.remove(),Po}function Io(e,t){if(!Fo(e.ownerDocument))return`auto`;if(e.hasAttribute(`data-mw-scroll`)){let t=No.get(e);if(t!==void 0)return t}let n=t.scrollbarWidth===`none`?`none`:`auto`;return No.set(e,n),n}function Lo(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 Ro(e,t=1){return Math.max(t,Math.floor(Number(e)||t))}function zo(e){return Mo(e)?`clip`:e===`auto`||e===`scroll`?e:`visible`}function Bo(e){let t=zo(e.overflowX||e.overflow),n=zo(e.overflowY||e.overflow);return t!==`visible`&&n===`visible`&&(n=`auto`),n!==`visible`&&t===`visible`&&(t=`auto`),{x:t,y:n}}function Vo(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)`||!se(e.tagName)&&(Mo(t.overflow)||Mo(t.overflowX))&&parseFloat(t.width)<=1&&parseFloat(t.height)<=1}var Ho={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`},Uo={"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 Wo(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 Go(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:Yo(e,t),textAlign:Xo(e,t),textIndent:ks(t,n)}}function Ko(e,t,n){(/(?:^|[\s:.[!])text-(?:xs|sm|base|lg|[2-9]?xl)(?![\w-])/.test(t)||/(?:^|[\s:.[!])text-\[(?:(?:length|size):|[\d.])/.test(t)||n.fontSize!==``)&&ne(e,`font-size inside <mono-wind> is ignored — all text shares the host's cell size. Size the <mono-wind> element itself instead.`)}function qo(e,t,n,r){let i=e.getPropertyValue(t).trim();return n.includes(i)?i:r}function Jo(e,t,n){let r=parseFloat(e.getPropertyValue(`--mw-rule-${t}-width`))||0;if(r<=0)return null;let i=Ts(e.getPropertyValue(`--mw-rule-${t}-style`).trim()),a=e.getPropertyValue(`--mw-rule-${t}-color`).trim();return{width:w(i,r,n).cells,weight:T(i,r,n),style:i,color:a&&a!==`currentcolor`&&a!==`currentColor`?a:e.color}}function Yo(e,t){return t.textAlign===`justify`||e.getAttribute(`align`)?.toLowerCase()===`justify`}function Xo(e,t){let n=t.textAlign||e.getAttribute(`align`)?.toLowerCase()||``;return n===`right`||n===`end`?`end`:n===`center`||n.endsWith(`-center`)?`center`:`start`}function Zo(e){return typeof e.computedStyleMap==`function`}function Qo(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 $o(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 es(e){return e===`auto`||e===``||e===`normal`?`auto`:$o(e)}function ts(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&&(e.endsWith(`%`)||e.startsWith(`calc(`))){let t=Ds(e,i);if(t!==0)return t}}else if(s.test(n)||r.getPropertyValue(a)===`auto`)return null;let c=e.getPropertyValue(a);if(c===`auto`)return null;let l=Ds(c,i);if(l!==0)return l;let u=e.getPropertyValue(o);return u===`auto`?null:Ds(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 ns(e,t,n){let r=(e===`normal`?0:parseFloat(e)||0)-n;return r<=0?0:Math.floor(r/(.025*t)+1e-6)}function rs(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 is(e){switch(e){case`relative`:case`absolute`:case`fixed`:case`sticky`:return e;default:return`static`}}function as(e){return e===`absolute`||e===`fixed`}function os(e){switch(e){case`left`:case`inline-start`:return`left`;case`right`:case`inline-end`:return`right`;default:return`none`}}function ss(e){switch(e){case`left`:case`inline-start`:return`left`;case`right`:case`inline-end`:return`right`;case`both`:return`both`;default:return`none`}}function cs(e,t,n,r,i){let a=(a,o)=>{if(t){let e=t.get(a)?.toString().trim();return!e||e===`auto`?null:Ds(e,i)}let s=r[a];if(s)return s===`auto`?null:Ds(s,i);if(!RegExp(`(?:^|[\\s:.[!])-?(?:${o})-`).test(n))return null;let c=e.getPropertyValue(a);if(c===`auto`)return null;let l=ls(n,o,i);return l===void 0?c?Ds(c,i):null:l};return{top:a(`top`,`top|inset|inset-y`),right:a(`right`,`right|end|inset|inset-x`),bottom:a(`bottom`,`bottom|inset|inset-y`),left:a(`left`,`left|start|inset|inset-x`)}}function ls(e,t,n){let r=`(?:^|[\\s:.[!])(-?)(?:${t})-`,i=(e,t)=>e===`-`?typeof t==`number`?-t:t.cells===void 0?{percent:-t.percent}:{percent:-t.percent,cells:-t.cells}:t,a=RegExp(`${r}(\\d+)/(\\d+)(?![\\w./])`).exec(e);if(a)return i(a[1],{percent:100*Number(a[2])/Number(a[3])});let o=RegExp(`${r}full(?![\\w-])`).exec(e);if(o)return i(o[1],{percent:100});let s=RegExp(`${r}\\[(calc\\([^\\]]*\\)|\\d+(?:\\.\\d+)?%)\\]`).exec(e);if(s)return i(s[1],Ds(s[2].replaceAll(`_`,` `),n))}function us(e,t,n){if(!e||e===`none`)return[];let r=e=>/^-?[\d.]+(?:e[+-]?\d+)?(?:px)?$/i.test(e),i=(e,n)=>{if(e===0)return 0;let r=n?Math.abs(e)/n:Math.abs(xt(e,t));return Math.sign(e)*Math.max(1,Math.round(r))},a=[];for(let o of Cs(e)){let e=qs(o),s=e.filter(r).map(parseFloat);if(s.length<2)continue;let[c,l,u=0,d=0]=s;a.push({x:i(c,n?.width),y:i(l,n?.height),blur:u/(.25*t),spread:xt(d,t),color:e.find(e=>!r(e)&&e!==`inset`)??`currentcolor`,inset:e.includes(`inset`)})}return a}function ds(e,t,n){let r=[];if(!e||e===`none`)return r;for(let i of Cs(e.replace(/\bcurrentcolor\b/gi,t))){let e=/^\s*(repeating-)?(linear|radial|conic)-gradient\((.*)\)\s*$/s.exec(i);if(!e)continue;let[,t,a,o]=e,s=Ks(o).map(e=>e.trim()),c=s.length>0&&!fs(s[0]),l=c?qs(s[0]):[],u=c?s.slice(1):s,d=Ss(u,n);if(d.length<2)continue;let f={repeating:t!==void 0,...hs(l,u),stops:d};if(a===`linear`)r.push({kind:a,...f,direction:vs(l)});else if(a===`radial`)r.push({kind:a,...f,...xs(l,n)});else{let e=l.indexOf(`from`);r.push({kind:`conic`,...f,from:e>=0?_s(l[e+1]??``):0,at:bs(l,n)})}}return r}var fs=e=>/^(?:rgba?|hsla?|oklab|oklch|color)\(|^transparent\b/i.test(e),ps=[`oklab`,`oklch`,`srgb`,`srgb-linear`,`hsl`],ms=[`shorter`,`longer`,`increasing`,`decreasing`];function hs(e,t){let n=e.indexOf(`in`);if(n>=0){let t=e[n+1],r=e[n+2];return{space:ps.includes(t)?t:`oklab`,hue:ms.includes(r)?r:`shorter`}}return{space:t.filter(fs).every(e=>Me(qs(e)[0]??``))?`srgb`:`oklab`,hue:`shorter`}}function gs(e){let t=e.split(`,`)[0].trim();return t===`text`||t===`padding-box`||t===`content-box`?t:`border-box`}function _s(e){let t=parseFloat(e);return Number.isFinite(t)?e.endsWith(`grad`)?t*.9:e.endsWith(`rad`)?t*180/Math.PI:e.endsWith(`turn`)?t*360:t:0}function vs(e){if(e[0]===`to`){let t=0,n=0;for(let r of e.slice(1))r===`left`?t=-1:r===`right`?t=1:r===`top`?n=-1:r===`bottom`&&(n=1);return{toX:t,toY:n}}let t=e.find(e=>/^-?[\d.]+(?:deg|grad|rad|turn)$/.test(e));return t===void 0?{angle:180}:{angle:_s(t)}}function ys(e,t){let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?{fraction:n/100}:/(?:deg|grad|rad|turn)$/.test(e)?{fraction:_s(e)/360}:{cells:xt(n,t)}:null}function bs(e,t){let n=e.indexOf(`at`),r={fraction:.5};if(n<0)return{x:r,y:r};let i={left:{fraction:0},top:{fraction:0},center:r,right:{fraction:1},bottom:{fraction:1}},a=e.slice(n+1,n+3).filter(e=>e!==`in`),[o,s]=a.map(e=>i[e]??ys(e,t)),c=a[0]===`top`||a[0]===`bottom`||a[1]===`left`||a[1]===`right`;return{x:(c?s:o)??r,y:(c?o:s)??r}}function xs(e,t){let n=e.indexOf(`at`),r=n<0?e:e.slice(0,n),i=r.find(e=>[`closest-side`,`farthest-side`,`closest-corner`,`farthest-corner`].includes(e)),a=r.map(e=>/^[\d.]/.test(e)?ys(e,t):null).filter(e=>e!==null),o=r.includes(`circle`)?`circle`:`ellipse`,s=i??`farthest-corner`;return a.length===1?(o=`circle`,s={rx:a[0],ry:a[0]}):a.length>=2&&(o=`ellipse`,s={rx:a[0],ry:a[1]}),{shape:o,size:s,at:bs(e,t)}}function Ss(e,t){let n=[];for(let r of e){let e=qs(r),i=je(e[0]??``);if(!i){let r=ys(e[0]??``,t),i=n[n.length-1];r&&i&&(i.hint=r);continue}let a=e.slice(1,3).map(e=>ys(e,t));a.length===0&&a.push(null);for(let e of a)n.push({color:i,position:e})}return n}function Cs(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}function ws(e,t){let n=e.trim().split(/\s+/).filter(Boolean);if(n.length===0)return 0;let r=1/0;for(let e of n){let n=parseFloat(e);if(!Number.isFinite(n)||n<=0)return 0;r=Math.min(r,e.endsWith(`%`)?1/0:n/(.25*t))}return r}function Ts(e){switch(e){case`double`:return`double`;case`dashed`:return`dashed`;case`dotted`:return`dotted`;default:return`solid`}}function Es(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)?xt(n,t):void 0}function Ds(e,t){if(!e||e===`auto`||e===`none`)return 0;if(e.startsWith(`calc(`)){let n=Fs(e,`width`,void 0,t);if(!n||n.unitless)return 0;let r=bt(n.cells);return n.percent===0?r:r===0?{percent:n.percent}:{percent:n.percent,cells:r}}if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)&&t!==0?{percent:t}:0}let n=parseFloat(e);return Number.isFinite(n)?xt(n,t):0}function Os(e){let t=parseFloat(e);return Number.isFinite(t)?Math.min(1,Math.max(0,t)):1}function ks(e,t){let n=e.textIndent;if(!n||n.endsWith(`%`))return 0;let r=parseFloat(n);return Number.isFinite(r)?Math.max(0,xt(r,t)):0}function As(e,t,n,r,i,a,o){let s=js(n===`width`?a.width:a.height);if(s!==null)return{kind:`cells`,value:Ns(s,n,o,r)};let c=Ps(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=Ms(i,l)??Ms(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:Ns(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=Rs(i);if(a)return a;if(i.endsWith(`%`))return{kind:`percent`,value:parseFloat(i)};if(i.endsWith(`px`))return{kind:`cells`,value:xt(parseFloat(i),r)};if(i.endsWith(`rem`))return{kind:`cells`,value:bt(parseFloat(i)/.25)};let s=js(i);if(s!==null)return{kind:`cells`,value:Ns(s,n,o,r)}}let d=n===`width`?a.width:a.height;if(d){if(d===`auto`)return{kind:`auto`};let e=Rs(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:xt(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:bt(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:xt(g,r)}}function js(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 Ms(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?js(r[1]):null}function Ns(e,t,n,r){let i=t===`width`?n?.width:n?.height;return i&&i>0?Math.max(0,Math.floor(e/i)):xt(e,r)}function Ps(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=Fs(f,c,o,s);if(!p||p.unitless||p.percent!==0)return;let m=Math.max(0,bt(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 Fs(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,percent:0,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,percent:0,unitless:!0};if(s===`%`)return{cells:0,px:0,percent:o,unitless:!1};if(s===`px`)return c(o/(r/4),o);if(s===`rem`)return c(o*4,o*r);let l=js(e);return l===null?null:c(Ns(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,percent:t.percent+r*n.percent,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,percent:r.percent*e.cells,unitless:r.unitless&&e.unitless}}return!n.unitless||n.px===0?null:{cells:t.cells/n.cells,px:t.px/n.px,percent:t.percent/n.cells,unitless:t.unitless}},d=()=>{let e=s();if(e===void 0)return null;if(e===`-`){let e=d();return e&&{...e,cells:-e.cells,px:-e.px,percent:-e.percent}}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 Is(e,t,n,r,i,a,o,s){let c=t.endsWith(`width`)?`width`:`height`,l=js(a.getPropertyValue(t))??js(e?.get(t)?.toString().trim()??``);if(l!==null)return Ns(l,c,o,s);let u=Ms(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 Ns(p?f:u,c,o,s)}function Ls(e,t){if(!e||e===`auto`||e===`content`)return;let n=Rs(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:xt(r,t)}:void 0}function Rs(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 zs(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 qs(n)){let n=Vs(e);if(n){a.push(...n);continue}let i=e.match(/^repeat\(\s*([^,]+?)\s*,(.*)\)$/s);if(i){let e=Bs(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(Ws(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 Bs(e,t){let n=[],r=[],i=[];for(let a of qs(e)){let e=Vs(a);if(e){i.push(...e);continue}r.push(i),i=[],n.push(Ws(a,t))}return r.push(i),{tracks:n,lineNames:r}}function Vs(e){let t=e.match(/^\[(.*)\]$/s);return t?t[1].split(/\s+/).filter(e=>e!==``):null}function Hs(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 Us(e,t){let n=qs(e.trim()).filter(e=>e!==``&&!e.startsWith(`[`)).map(e=>Ws(e,t));return n.length>0?n:[Sn()]}function Ws(e,t){let n=e.match(/^minmax\((.*)\)$/s);if(n){let e=Ks(n[1]).map(e=>e.trim());return e.length===2?{min:Gs(e[0],t),max:Gs(e[1],t)}:{min:{kind:`auto`},max:{kind:`auto`}}}let r=Gs(e,t);return r.kind===`fr`?{min:{kind:`auto`},max:r}:{min:r,max:r}}function Gs(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=Ks(n[2]).map(e=>Gs(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`)?bt(r/.25):xt(r,t)}:{kind:`auto`}}function Ks(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 qs(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 Js(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 Ys(e){return{direction:e.includes(`column`)?`column`:`row`,dense:e.includes(`dense`)}}function Xs(e,t){return{top:Ds(e.getPropertyValue(`padding-top`),t),right:Ds(e.getPropertyValue(`padding-right`),t),bottom:Ds(e.getPropertyValue(`padding-bottom`),t),left:Ds(e.getPropertyValue(`padding-left`),t)}}function Zs(e,t){let n=xn(),r={top:1,right:1,bottom:1,left:1},i={top:`solid`,right:`solid`,bottom:`solid`,left:`solid`};for(let a of[`top`,`right`,`bottom`,`left`]){let o=e.getPropertyValue(`border-${a}-style`),s=o===`none`||o===`hidden`?0:parseFloat(e.getPropertyValue(`border-${a}-width`))||0;i[a]=Ts(o),!(s<=0)&&(r[a]=s,n[a]=w(i[a],s,t).cells)}return{border:n,borderWeight:r,borderStyle:i}}function Qs(e,t,n,r){let i=Oo(e,t,n);if(i.display===`none`)return null;let a=se(e.tagName);if(a)return ac(e,i,a);let o=Array.from(e.children),s=o.map(uc),c={rootFontSizePx:t,cellMetrics:n,textareaWidths:r};return!s.includes(`block`)||Tc(e.tagName)?ic(e,i,o,s,c):{source:e,style:i,children:$s(e,Array.from(e.childNodes),t,n,r),text:``,intrinsicWidth:0,intrinsicHeight:0,localRect:{x:0,y:0,width:0,height:0},unclampedHeight:0,resolvedPadding:xn()}}function $s(e,t,n,r,i,a){let o={rootFontSizePx:n,cellMetrics:r,textareaWidths:i},s=[],c=e=>{let t=Qs(e,n,r,i);t&&s.push(t)},l=a,u=[],d=[],f=!1,p=()=>{let t=u.filter(e=>e instanceof Element);if(f)l??=rc(e,n,r),s.push(ec(e,u,t,d,o,l));else for(let e of t)c(e);u=[],d=[],f=!1};for(let e of t){if(e instanceof Element){let t=uc(e);if(t===`none`)continue;if(t===`block`){p(),c(e);continue}d.push(t),f||=t===`inline`}else if(e.nodeType!==Node.TEXT_NODE)continue;else f||=/[^ \t\r\n\f]/.test(e.textContent??``);u.push(e)}return p(),s}function ec(e,t,n,r,i,a){let o=ic(e,a,n,r,i,t);return o.anonymous=!0,o}function tc(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(uc);return o.includes(`block`)||!Cc(e)&&!o.includes(`inline`)?null:ic(e,nc(e,t,n),a,o,{rootFontSizePx:t,cellMetrics:n,textareaWidths:r},i)}function nc(e,t,n){return{...rc(e,t,n),tracking:0,lineGap:0}}function rc(e,t,n){let r=getComputedStyle(e),i=parseFloat(r.fontSize)||t,a={...bn(),...Go(e,r,t),lineGap:rs(r.lineHeight,i),tracking:ns(r.letterSpacing,i,n?.letterSpacing??0),color:r.color,fontWeight:r.fontWeight,fontStyle:r.fontStyle};return Bo(r).x===`clip`&&(a.overflow={...a.overflow,x:`clip`}),a}function ic(e,t,n,r,i,a){let{rootFontSizePx:o,cellMetrics:s,textareaWidths:c}=i,l=e.tagName,u=Tc(l),d=dc(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}=vc(d);if(d.boxes.length>0){let e=ti();Xt(f,(t,n)=>{p[t]=Math.max(1,wi(d.boxes[n],e))})}let h=bc(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=>Ht(e.trim())))}}let g=f.length>0?xc(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?Ut(r,i,{advances:Vt(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=Qs(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:xn()};(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=yc(d);return S.length>0&&(x.charSource=S),x}function ac(e,t,n){let r=ue(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=Vt(a,t.tracking),s=bc(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:xn()};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 oc=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 sc(e,t){return t||(oc.has(e.tagName)?`inline`:`block`)}function cc(e,t){let n=sc(e,t);return n===`inline`||n===`contents`}function lc(e,t){let n=sc(e,t);return n.startsWith(`inline`)&&n!==`inline`}function uc(e){let t=getComputedStyle(e);return t.display===`none`?`none`:t.position===`absolute`||t.position===`fixed`?`out-of-flow`:wc(t.float)||se(e.tagName)?`block`:cc(e,t.display)||lc(e,t.display)?`inline`:`block`}function dc(e,t,n,r){let i={chars:[],advances:[],sourceNode:[],sourceOffset:[],inlineIndex:[],inlineElements:[],boxes:[]};return r?pc(r,t,n,i):fc(e,t,n,i),n.preserve?i:gc(i)}function fc(e,t,n,r){Tc(e.tagName)||pc(Array.from(e.childNodes),t,n,r)}function pc(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 zt(e)){let e=o;if(o+=s.length,s===`\r
951
+ `},vi=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}},yi=`text/tailwindcss`,bi,xi=new Set,Si=``,Ci=document.createElement(`style`),wi=Promise.resolve(),Ti=1,q=new vi;async function Ei(){q.start(`Create compiler`),q.start(`Reading Stylesheets`);let e=document.querySelectorAll(`style[type="${yi}"]`),t=``;for(let n of e)Mi(n),t+=n.textContent+`
952
+ `;if(t.includes(`@import`)||(t=`@import "tailwindcss";${t}`),q.end(`Reading Stylesheets`,{size:t.length,changed:Si!==t}),Si!==t){Si=t,q.start(`Compile CSS`);try{bi=await gi(t,{base:`/`,loadStylesheet:Di,loadModule:Oi})}finally{q.end(`Compile CSS`),q.end(`Create compiler`)}xi.clear()}}async function Di(e,t){function n(){if(e===`tailwindcss`)return{path:`virtual:tailwindcss/index.css`,base:t,content:_i.index};if(e===`tailwindcss/preflight`||e===`tailwindcss/preflight.css`||e===`./preflight.css`)return{path:`virtual:tailwindcss/preflight.css`,base:t,content:_i.preflight};if(e===`tailwindcss/theme`||e===`tailwindcss/theme.css`||e===`./theme.css`)return{path:`virtual:tailwindcss/theme.css`,base:t,content:_i.theme};if(e===`tailwindcss/utilities`||e===`tailwindcss/utilities.css`||e===`./utilities.css`)return{path:`virtual:tailwindcss/utilities.css`,base:t,content:_i.utilities};throw Error(`The browser build does not support @import for "${e}"`)}try{let r=n();return q.hit(`Loaded stylesheet`,{id:e,base:t,size:r.content.length}),r}catch(n){throw q.hit(`Failed to load stylesheet`,{id:e,base:t,error:n.message??n}),n}}async function Oi(){throw Error(`The browser build does not support plugins or config files.`)}async function ki(e){if(!bi)return;let t=new Set;q.start(`Collect classes`);for(let e of document.querySelectorAll(`[class]`))for(let n of e.classList)xi.has(n)||(xi.add(n),t.add(n));q.end(`Collect classes`,{count:t.size}),(t.size!==0||e!==`incremental`)&&(q.start(`Build utilities`),Ci.textContent=bi.build(Array.from(t)),q.end(`Build utilities`))}function Ai(e){async function t(){if(!bi&&e!==`full`)return;let t=Ti++;q.start(`Build #${t} (${e})`),e===`full`&&await Ei(),q.start(`Build`),await ki(e),q.end(`Build`),q.end(`Build #${t} (${e})`)}wi=wi.then(t).catch(e=>q.error(e))}var ji=new MutationObserver(()=>Ai(`full`));function Mi(e){ji.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`)===yi&&(Mi(e),t++);for(let e of r.addedNodes)e.nodeType===1&&e!==Ci&&n++;r.type===`attributes`&&n++}if(t>0)return Ai(`full`);if(n>0)return Ai(`incremental`)}).observe(document.documentElement,{attributes:!0,attributeFilter:[`class`],childList:!0,subtree:!0}),Ai(`full`),document.head.append(Ci)})();var e=[`h`,`v`,`tl`,`tr`,`bl`,`br`,`teeUp`,`teeDown`,`teeLeft`,`teeRight`,`cross`],t=new Map,n=new Set;function r(e,r){let i=e.toLowerCase().trim();t.has(i)&&console.warn(`[monowind] registerBorderGlyphs: replacing "${i}" (last registration wins).`);for(let e of Object.values(r)){for(let t of Object.values(e))if(Array.isArray(t)){for(let e of t)typeof e==`object`&&Object.freeze(e);Object.freeze(t)}Object.freeze(e)}t.set(i,Object.freeze(r));for(let e of n)e()}function i(e){if(e)return t.get(e.toLowerCase().trim())}function a(e){return n.add(e),()=>n.delete(e)}var o={radius:1,tl:`╭`,tr:`╮`,bl:`╰`,br:`╯`},s={solid:[o],dashed:[o],dotted:[o]};function c(e,t,n,r,i){let a=r.roles[t];if(r.band?.[t]!==void 0)return a;let o=i?.[e],c=o?.rounded??(o?.[t]===void 0?s[e]??[]:[]),l={radius:0,glyph:a};for(let e of c){let r=e[t];if(r===void 0)continue;let i=Math.abs(e.radius-n),a=Math.abs(l.radius-n);(i<a||i===a&&e.radius>l.radius)&&(l={radius:e.radius,glyph:r})}return l.glyph}function l(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 u=[` `,`─`,`─`,`─`,`│`,`┌`,`┐`,`┬`,`│`,`└`,`┘`,`┴`,`│`,`├`,`┤`,`┼`],d=[` `,`═`,`═`,`═`,`║`,`╔`,`╗`,`╦`,`║`,`╚`,`╝`,`╩`,`║`,`╠`,`╣`,`╬`];function f(e){let t={};for(let n=1;n<16;n++){let r=l(n);r&&!(r in t)&&(t[r]=e[n])}return t}var p=e=>f(Array.from({length:16},()=>e)),m=[` `,`━`,`━`,`━`,`┃`,`┏`,`┓`,`┳`,`┃`,`┗`,`┛`,`┻`,`┃`,`┣`,`┫`,`╋`],h=f(u),g=f(d),_=f(m),v={solid:h,double:g,dashed:{...h,h:`╌`,v:`╎`},dotted:{...h,h:`┄`,v:`┊`}},y={solid:[{width:2,..._}],dashed:[{width:2,..._,h:`╍`,v:`╏`}],dotted:[{width:2,..._,h:`┉`,v:`┋`}]},b=t=>{let n={};if(t)for(let r of e)t[r]!==void 0&&(n[r]=t[r]);return n},x=new WeakMap,S=new Map,C=e=>{if(!e)return S;let t=x.get(e);return t||x.set(e,t=new Map),t};function w(e,t,n){let r=C(n),i=`${e}:${t}`,a=r.get(i);if(a)return a;let o=n?.[e],s=o?.weights??(o?[]:y[e]??[]),c=null,l=Math.abs(t-1);for(let e of s){let n=Math.abs(e.width-t);(n<l||n===l&&e.width>(c?.width??1))&&(c=e,l=n)}let u={roles:{...v[e],...b(o),...b(c)},cells:c?.cells??1,band:c};return r.set(i,u),u}function T(e,t,n){return w(e,t,n).band?t:1}r(`default`,{});var E=[{width:2,cells:2}];r(`rounded`,{solid:{tl:`╭`,tr:`╮`,bl:`╰`,br:`╯`,weights:E},dashed:{weights:E},dotted:{weights:E}});var D={...p(`+`),h:`-`,v:`|`};r(`ascii`,{solid:{...D,scrollTrack:`|`,scrollThumb:`#`,shadow:[`#`,`+`,`:`,`.`],weights:E},double:{...D,h:`=`},dashed:{...D,weights:E},dotted:{...D,h:`.`,v:`:`,weights:E}}),r(`single`,{solid:{rounded:[],weights:E},double:{...h,weights:E},dashed:{...h,weights:E},dotted:{...h,weights:E}});var O=[{width:2,...g}];r(`cp437`,{solid:{rounded:[],weights:O},dashed:{...h,weights:O},dotted:{...h,weights:O}});function k(e){let t=e?.solid?.shadow;return t&&t.length>0?t:[`█`,`▓`,`▒`,`░`]}function A(e){return{track:e?.solid?.scrollTrack??`░`,thumb:e?.solid?.scrollThumb??`█`}}r(`blocks`,{solid:{...p(`█`),weights:E},double:{...p(`█`),weights:E},dashed:{...p(`▒`),weights:E},dotted:{...p(`░`),weights:E}});var j=new WeakMap;function ee(e,t){let n=j.get(e);n||j.set(e,n=new Set),!n.has(t)&&(n.add(t),console.warn(`[monowind] ${t}`,te(e)))}function te(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 M=new Map,ne=new Set;function re(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}M.has(t)&&console.warn(`[monowind] registerLeafRenderer: replacing existing renderer for <${t}> (last registration wins).`),M.set(t,{...e,tag:t}),ce()}function ie(){ce()}function ae(e){return M.get(e.toLowerCase())}function oe(e){return ne.add(e),()=>ne.delete(e)}function se(e,t){try{return e.render(t)}catch(n){return ee(t,`<${e.tag}> renderer threw; rendering nothing. ${String(n)}`),null}}function ce(){for(let e of ne)e()}var le=new Set([`transform`,`translate`,`rotate`,`scale`,`filter`]),ue=new Set([`color`,`opacity`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),de=new Set([`offset`,`computedOffset`,`easing`,`composite`]),fe=new Set;function pe(e,t){let n=new Set;if(t&&(t.animationName===``||t.animationName===`none`))return n;for(let t of e.getAnimations?.()??[]){if(!(`animationName`in t)||t.playState!==`running`)continue;let e=t.effect;if(e?.getKeyframes)for(let t of e.getKeyframes())for(let e of Object.keys(t))de.has(e)||n.add(e)}return t&&n.size>0&&fe.add(e),n}function me(e){let t=[];for(let n of fe){let r=e.contains(n);(r||!n.isConnected)&&fe.delete(n),r&&t.push(n)}return t}function he(e,t){if(e.size===0)return null;let n=t!==null&&t.children.length===0&&!t.inlineElements?.length,r=t!==null&&t.style.latticeBorder!==null,i=!0;for(let a of e)if(!le.has(a)&&(i=!1,t===null||!ue.has(a)||(a===`color`?!n:r)))return`layout`;return i?`box`:`paint`}function N(e,t){for(let n of pe(e,t))if(le.has(n))return!0;if(!/[1-9]/.test(t.transitionDuration))return!1;for(let t of e.getAnimations?.()??[])if(`transitionProperty`in t&&t.playState===`running`&&le.has(t.transitionProperty))return!0;return!1}function ge(e,t){return pe(e,t).has(`backgroundColor`)}function P(e){let t=new Map,n=e=>{e.anonymous||t.set(e.source,e);for(let t of e.children)n(t)};return n(e),t}var F=new WeakMap,_e=[],ve=new Map;function ye(e,t,n){let r=F.get(e);if(F.set(e,t),ge(e,n))return ve.delete(e),t;let i=ve.get(e);if(i){if(t!==i.toValue){let n=I(i);return ve.delete(e),_e.push({el:e,from:n,to:t}),n}let n=I(i);return n===i.toValue&&ve.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 be(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=Se(getComputedStyle(r),`background-color`),s=z(i),c=z(a);o&&s&&c&&ve.set(r,{from:s,to:c,toValue:a,start:performance.now()+o.delay,duration:o.duration,easing:o.easing})}return t}function xe(){let e=performance.now();for(let[t,n]of ve)(!t.isConnected||e>=n.start+n.duration)&&ve.delete(t);return ve.size>0}function I(e){let t=(performance.now()-e.start)/e.duration;if(t>=1)return e.toValue;let n=t<=0?0:e.easing(t);return Ee(Te(e.from,e.to,n))}var L={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 Se(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=R(i(e.transitionDuration));return a<=0?null:{duration:a*1e3,delay:R(i(e.transitionDelay))*1e3,easing:Ce(i(e.transitionTimingFunction))}}function R(e){let t=parseFloat(e);return Number.isFinite(t)?e.endsWith(`ms`)?t/1e3:t:0}function Ce(e){if(e===`linear`)return e=>e;let t=L[e];if(t)return we(...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 we(e,t,r,i)}return e=>e}function we(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 z(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{...Ae(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 Te(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=ke(e.r,e.g,e.b),o=ke(t.r,t.g,t.b);return{...Ae(i(a.l,o.l),i(a.a,o.a),i(a.b,o.b)),a:r,legacy:!1}}function Ee(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 De(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function Oe(e){return e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055}function ke(e,t,n){let r=De(e),i=De(t),a=De(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 Ae(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:Oe(4.0767416621*r-3.3077115913*i+.2309699292*a),g:Oe(-1.2684380046*r+2.6097574011*i-.3413193965*a),b:Oe(-.0041960863*r-.7034186147*i+1.707614701*a)}}function je(e){if(!e.hasAttribute(`popover`)&&e.localName!==`dialog`)return!1;try{return e.matches(`:popover-open, :modal`)}catch{return!1}}var Me=class{#e=new Map;#t=0;enter(e){this.#e.has(e)||this.#e.set(e,this.#t++)}assign(e){let t=new Set,n=[],r=[],i=e=>{if(r.length>0&&!e.anonymous){e.style.topLayer&&this.enter(e.source);let i=e.hostRect?this.#e.get(e.source):void 0;i===void 0?delete e.topLayerRank:(e.topLayerRank=i,t.add(e.source),n.push({node:e,ancestors:r.slice()}))}r.push(e);for(let t of e.children)i(t);r.pop()};i(e);for(let e of this.#e.keys())t.has(e)||this.#e.delete(e);n.sort((e,t)=>e.node.topLayerRank-t.node.topLayerRank),n.length>0?e.topLayer=n:delete e.topLayer}},Ne=e=>e===`oklch`?2:e===`hsl`?0:-1,B=e=>Math.min(1,Math.max(0,e)),Pe=(e,t=1)=>{if(e===`none`)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?n/100*t:n:NaN};function Fe(e,t){let[n,r]=e.split(`/`),i=n.trim().split(/[\s,]+/).filter(Boolean),a=r===void 0?1:Pe(r.trim());return t&&r===void 0&&i.length===4&&(a=Pe(i.pop())),{tokens:i,alpha:Number.isFinite(a)?B(a):1}}var Ie=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,Le=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;function Re(e,t,n){let r=Math.cbrt(.4122214708*e+.5363325363*t+.0514459929*n),i=Math.cbrt(.2119034982*e+.6806995451*t+.1073969566*n),a=Math.cbrt(.0883024619*e+.2817188376*t+.6299787005*n);return[.2104542553*r+.793617785*i-.0040720468*a,1.9779984951*r-2.428592205*i+.4505937099*a,.0259040371*r+.7827717662*i-.808675766*a]}function ze(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[4.0767416621*r-3.3077115913*i+.2309699292*a,-1.2684380046*r+2.6097574011*i-.3413193965*a,-.0041960863*r-.7034186147*i+1.707614701*a]}var Be=(e,t,n,r)=>{let[i,a,o]=ze(e,t,n);return{r:B(Le(i)),g:B(Le(a)),b:B(Le(o)),a:r}};function Ve(e){let t=e.trim().toLowerCase();if(t===`transparent`)return{r:0,g:0,b:0,a:0};let n=/^([a-z-]+)\((.*)\)$/.exec(t);if(!n)return null;let[,r,i]=n,{tokens:a,alpha:o}=Fe(i,r===`rgb`||r===`rgba`);switch(r){case`rgb`:case`rgba`:{let[e,t,n]=a.map(e=>Pe(e,255)/255);return e===void 0||[e,t,n].some(e=>!Number.isFinite(e))?null:{r:B(e),g:B(t),b:B(n),a:o}}case`oklab`:{let[e,t,n]=[Pe(a[0]??``),Pe(a[1]??``,.4),Pe(a[2]??``,.4)];return[e,t,n].some(e=>!Number.isFinite(e))?null:Be(e,t,n,o)}case`oklch`:{let[e,t,n]=[Pe(a[0]??``),Pe(a[1]??``,.4),Pe(a[2]??``)];if([e,t,n].some(e=>!Number.isFinite(e)))return null;let r=n*Math.PI/180;return Be(e,t*Math.cos(r),t*Math.sin(r),o)}case`color`:{let[e,...t]=a,[n,r,i]=t.map(e=>Pe(e));return n===void 0||[n,r,i].some(e=>!Number.isFinite(e))?null:e===`srgb-linear`?{r:B(Le(n)),g:B(Le(r)),b:B(Le(i)),a:o}:{r:B(n),g:B(r),b:B(i),a:o}}default:return null}}var He=e=>/^(?:rgba?|hsla?)\(|^transparent$|^#|^[a-z]+$/i.test(e.trim()),Ue=(e,t,n)=>{let r=Math.max(e,t,n),i=Math.min(e,t,n),a=(r+i)/2,o=r-i;if(o<1e-9)return[NaN,a<=1e-9||a>=1-1e-9?NaN:0,a];let s=o/(1-Math.abs(2*a-1));return[((r===e?(t-n)/o%6:r===t?(n-e)/o+2:(e-t)/o+4)*60%360+360)%360,s,a]},We=(e,t,n,r)=>{let i=((Number.isNaN(e)?0:e)%360+360)%360,a=e=>{let r=(e+i/30)%12;return n-t*Math.min(n,1-n)*Math.max(-1,Math.min(r-3,9-r,1))};return{r:B(a(0)),g:B(a(8)),b:B(a(4)),a:r}};function Ge({r:e,g:t,b:n,a:r},i){if(i===`srgb`)return{c:[e,t,n],a:r};if(i===`hsl`)return{c:Ue(e,t,n),a:r};let a=[Ie(e),Ie(t),Ie(n)];if(i===`srgb-linear`)return{c:a,a:r};let[o,s,c]=Re(...a);if(i===`oklab`)return{c:[o,s,c],a:r};let l=Math.hypot(s,c);return{c:[o,l,l<1e-6?NaN:(Math.atan2(c,s)*180/Math.PI%360+360)%360],a:r}}function Ke(e,t,n,r){for(let n=0;n<3;n++)Number.isNaN(e.c[n])&&(e.c[n]=Number.isNaN(t.c[n])?0:t.c[n]),Number.isNaN(t.c[n])&&(t.c[n]=e.c[n]);let i=Ne(n);if(i<0)return;let a=e=>(e%360+360)%360,o=a(t.c[i])-a(e.c[i]);r===`shorter`?o>180?o-=360:o<-180&&(o+=360):r===`longer`?o>0&&o<180?o-=360:o>-180&&o<=0&&(o+=360):r===`increasing`?o<0&&(o+=360):o>0&&(o-=360),t.c[i]=e.c[i]+o}function qe(e,t,n,r){let i=e.a+(t.a-e.a)*n;if(i===0)return{r:0,g:0,b:0,a:0};let a=Ne(r),o=(e,t)=>e.c[t]||0,s=r=>r===a?o(e,r)+(o(t,r)-o(e,r))*n:(o(e,r)*e.a*(1-n)+o(t,r)*t.a*n)/i,[c,l,u]=[s(0),s(1),s(2)];switch(r){case`srgb`:return{r:c,g:l,b:u,a:i};case`srgb-linear`:return{r:B(Le(c)),g:B(Le(l)),b:B(Le(u)),a:i};case`hsl`:return We(c,l,u,i);case`oklab`:return Be(c,l,u,i);default:{let e=u*Math.PI/180;return Be(c,l*Math.cos(e),l*Math.sin(e),i)}}}function Je(e,t){let n=e.a+t.a*(1-e.a);if(n===0)return{r:0,g:0,b:0,a:0};let r=(r,i)=>(r*e.a+i*t.a*(1-e.a))/n;return{r:r(e.r,t.r),g:r(e.g,t.g),b:r(e.b,t.b),a:n}}function Ye({r:e,g:t,b:n,a:r}){let i=e=>Math.round(B(e)*255),a=`${i(e)} ${i(t)} ${i(n)}`;return r>=1?`rgb(${a})`:`rgb(${a} / ${Math.round(r*1e3)/1e3})`}function Xe(e){let t=Ve(e);if(t)return t.a;let n=/\/\s*([\d.]+%?)\s*\)$/.exec(e.trim()),r=n?Pe(n[1]):1;return Number.isFinite(r)?B(r):1}function Ze(e){return(e>=0?Math.floor(e+.5):-Math.floor(-e+.5))||0}function Qe(e,t){return t<=0?0:Ze(e/(.25*t))}function $e(e,t){return Ze(t*e/100)}function et(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,u=t.lastElementChild,d=u?u.getBoundingClientRect().top-n.top:void 0;return{width:l,height:n.height,letterSpacing:r,gridLetterSpacing:r+(l-c),inkOverhang:o,backgroundGap:s,...d===void 0?{}:{baseline:d}}}function tt(){return parseFloat(getComputedStyle(document.documentElement).fontSize)||16}function nt(e){return e===`auto`||e===`scroll`}function rt(e){return e.children.filter(e=>e.inlineBox)}function it(e){return{right:e.scrollbarSize.y+e.scrollbarInset.x,bottom:e.scrollbarSize.x+e.scrollbarInset.y}}function at(e){if(e.scrollbarWidth===`none`)return{right:0,bottom:0};let t=it(e);return{right:e.overflow.y===`scroll`?t.right:0,bottom:e.overflow.x===`scroll`?t.bottom:0}}function ot(){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:[ct()],gridAutoRows:[ct()],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:st(),margin:{top:0,right:0,bottom:0,left:0},position:`static`,float:`none`,clear:`none`,insets:{top:null,right:null,bottom:null,left:null},gapX:0,gapY:0,border:st(),borderWeight:{top:1,right:1,bottom:1,left:1},borderStyle:{top:`solid`,right:`solid`,bottom:`solid`,left:`solid`},borderRadius:{tl:0,tr:0,bl:0,br:0},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,backgroundImage:[],backgroundClip:`border-box`,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,boxShadow:[],opacity:1,layer:null,anchorNames:[],positionAnchor:null,positionArea:null,positionTryFallbacks:[],anchorCenter:{x:!1,y:!1},topLayer:!1,backdrop:null,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 st(){return{top:0,right:0,bottom:0,left:0}}function ct(){return{min:{kind:`auto`},max:{kind:`auto`}}}function lt(e,t,n){let r=getComputedStyle(e),a=parseFloat(r.fontSize)||t,o=Vt(e)?e.computedStyleMap():null,s=e.getAttribute(`class`)??``,c=e.style;It(e,s,c);let l=r.getPropertyValue(`--mw-border-glyphs`).trim()||null,u=i(l),d=(e,r,i)=>En(o,e,r,s,i,c,n,t)??On(o,e,r,s,i,c,n,t)??mn(r,t),f=r.display||Mt[e.tagName]||``,p=Nt[f]??`none`,m=r.columnCount&&r.columnCount!==`auto`?Math.max(1,Math.floor(Number(r.columnCount)||1)):null,h=r.columnWidth&&r.columnWidth!==`auto`?parseFloat(r.columnWidth):NaN,g=Number.isFinite(h)?Math.max(1,Qe(h,t)):null,_=f===`flex`||f===`inline-flex`?`flex`:f===`grid`||f===`inline-grid`?`grid`:f===`table`||f===`inline-table`?`table`:f===`none`||jt(e,r)?`none`:m!==null||g!==null?`multicol`:`block`,v={kind:`none`},y={kind:`none`},b=[ct()],x=[ct()],S={direction:`row`,dense:!1},C=null;if(_===`grid`){if(o)v=jn(o.get(`grid-template-columns`)?.toString()??``,t),y=jn(o.get(`grid-template-rows`)?.toString()??``,t);else{e.setAttribute(`data-mw-degrid`,``);try{v=jn(r.getPropertyValue(`grid-template-columns`),t),y=jn(r.getPropertyValue(`grid-template-rows`),t)}finally{e.removeAttribute(`data-mw-degrid`)}}b=Fn(r.getPropertyValue(`grid-auto-columns`),t),x=Fn(r.getPropertyValue(`grid-auto-rows`),t),S=Vn(r.getPropertyValue(`grid-auto-flow`)),C=Pn(r.getPropertyValue(`grid-template-areas`))}let w=`auto`,T=!1,E=0,D=0;if(_===`table`&&(w=r.tableLayout===`fixed`?`fixed`:`auto`,T=r.borderCollapse===`collapse`,!T)){let e=r.borderSpacing.split(` `);E=Qe(parseFloat(e[0]??``)||0,t),D=Qe(parseFloat(e[1]??e[0]??``)||0,t)}let O=je(e),k=O||e.hasAttribute(`popover`),A=k||r.position===`absolute`||r.position===`fixed`,j={display:_,tableRole:p,tableLayout:w,borderCollapse:T,borderSpacingX:E,borderSpacingY:D,captionSide:r.captionSide===`bottom`?`bottom`:`top`,verticalAlign:p===`cell`||f.startsWith(`inline-`)?Pt(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:kn(r.flexBasis,t),order:Number(r.order)||0,justifyContent:Ht(r.justifyContent),alignContent:Ht(r.alignContent),alignItems:Ut(r.alignItems),alignSelf:H(r.alignSelf),justifyItems:Ut(r.justifyItems),justifySelf:H(r.justifySelf),gridTemplateColumns:v,gridTemplateRows:y,gridAutoColumns:b,gridAutoRows:x,gridAutoFlow:S,gridTemplateAreas:C,gridColumnStart:Bn(r.getPropertyValue(`grid-column-start`)),gridColumnEnd:Bn(r.getPropertyValue(`grid-column-end`)),gridRowStart:Bn(r.getPropertyValue(`grid-row-start`)),gridRowEnd:Bn(r.getPropertyValue(`grid-row-end`)),width:Sn(o,r.width,`width`,t,s,c,n),height:Sn(o,r.height,`height`,t,s,c,n),minWidth:d(`min-width`,r.minWidth,`min-w`)??`auto`,minHeight:d(`min-height`,r.minHeight,`min-h`)??`auto`,maxWidth:d(`max-width`,r.maxWidth,`max-w`),maxHeight:d(`max-height`,r.maxHeight,`max-h`),padding:Hn(r,t),margin:Wt(r,o,s,c,t),position:qt(r.position),float:Jt(r.position)?`none`:Yt(r.float),clear:Xt(r.clear),insets:Zt(r,o,s,c,t),gapX:hn(r.columnGap===`normal`||r.columnGap===``?_===`multicol`?`${a}px`:`0px`:r.columnGap,t),gapY:hn(r.rowGap===`normal`?`0px`:r.rowGap,t),...Un(r,u),borderRadius:{tl:fn(r.borderTopLeftRadius,t),tr:fn(r.borderTopRightRadius,t),bl:fn(r.borderBottomLeftRadius,t),br:fn(r.borderBottomRightRadius,t)},overflow:At(r),scrollbarWidth:Et(e,r),scrollbarColor:Dt(r.scrollbarColor),overscroll:{x:(r.overscrollBehaviorX||`auto`)===`auto`,y:(r.overscrollBehaviorY||`auto`)===`auto`},scrollbarSize:{x:Ot(r.getPropertyValue(`--mw-scrollbar-size-x`)),y:Ot(r.getPropertyValue(`--mw-scrollbar-size-y`))},scrollbarInset:{x:Ot(r.getPropertyValue(`--mw-scrollbar-inset-x`),0),y:Ot(r.getPropertyValue(`--mw-scrollbar-inset-y`),0)},...Ft(e,r,t),lineGap:Kt(r.lineHeight,a),tracking:Gt(r.letterSpacing,a,n?.letterSpacing??0),...bn(r),fontWeight:r.fontWeight,fontStyle:r.fontStyle,backgroundColor:xt(e,r.backgroundColor,r),backgroundClear:r.getPropertyValue(`--mw-bg-clear`).trim()===`1`,backgroundImage:en(r.backgroundImage,r.color,t),backgroundClip:rn(r.backgroundClip),layer:yn(e,r),...ut(e,r,A),topLayer:O,backdrop:k?vt(e):null,glyphSet:l,boxShadow:$t(r.boxShadow,t,n),zIndex:r.zIndex===`auto`||r.zIndex===``?null:Number(r.zIndex)||0,latticeBorder:null,ruleX:_===`flex`||_===`grid`||_===`multicol`?Rt(r,`x`,u):null,ruleY:_===`flex`||_===`grid`?Rt(r,`y`,u):null,ruleBreak:Lt(r,`--mw-rule-break`,[`none`,`intersection`],`normal`),ruleInset:r.getPropertyValue(`--mw-rule-inset`).trim()===`overlap-join`?`overlap-join`:Math.max(0,Ze(parseFloat(r.getPropertyValue(`--mw-rule-inset`))||0)),ruleVisibilityItems:Lt(r,`--mw-rule-visibility-items`,[`all`,`around`,`between`],`normal`),columnCount:m,columnWidth:g,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 yt(j,r),k&&(V(j,s,c),j.backdrop&&(j.layer??={backdropFilter:`none`})),j}function ut(e,t,n){let r=ft(e,t);return n?{anchorNames:r,positionAnchor:dt(e,t),positionArea:gt(t.getPropertyValue(`position-area`)),positionTryFallbacks:_t(t.getPropertyValue(`position-try-fallbacks`)),anchorCenter:{x:t.justifySelf===`anchor-center`,y:t.alignSelf===`anchor-center`}}:{anchorNames:r,positionAnchor:null,positionArea:null,positionTryFallbacks:[],anchorCenter:{x:!1,y:!1}}}function dt(e,t){let n=t.getPropertyValue(`position-anchor`).trim();if(n.startsWith(`--`))return n;if(n===`match-parent`){let t=e.parentElement;return t?dt(t,getComputedStyle(t)):null}return[``,`auto`,`normal`].includes(n)&&e.hasAttribute(`popover`)&&e.id!==``?`--mw:${e.id}`:null}function ft(e,t){let n=t.getPropertyValue(`anchor-name`).trim();if(n!==``&&n!==`none`)return n.split(`,`).map(e=>e.trim());let r=e.getAttribute(`popovertarget`)??e.getAttribute(`commandfor`);return r?[`--mw:${r}`]:[]}var pt={left:`start`,right:`end`,"span-left":`span-start`,"span-right":`span-end`,"x-start":`start`,"x-end":`end`,"span-x-start":`span-start`,"span-x-end":`span-end`,"x-self-start":`start`,"x-self-end":`end`,"span-x-self-start":`span-start`,"span-x-self-end":`span-end`,"inline-start":`start`,"inline-end":`end`,"span-inline-start":`span-start`,"span-inline-end":`span-end`,"self-inline-start":`start`,"self-inline-end":`end`,"span-self-inline-start":`span-start`,"span-self-inline-end":`span-end`},mt={top:`start`,bottom:`end`,"span-top":`span-start`,"span-bottom":`span-end`,"y-start":`start`,"y-end":`end`,"span-y-start":`span-start`,"span-y-end":`span-end`,"y-self-start":`start`,"y-self-end":`end`,"span-y-self-start":`span-start`,"span-y-self-end":`span-end`,"block-start":`start`,"block-end":`end`,"span-block-start":`span-start`,"span-block-end":`span-end`,"self-block-start":`start`,"self-block-end":`end`,"span-self-block-start":`span-start`,"span-self-block-end":`span-end`},ht={start:`start`,end:`end`,center:`center`,"span-start":`span-start`,"span-end":`span-end`,"span-all":`span-all`,"self-start":`start`,"self-end":`end`,"span-self-start":`span-start`,"span-self-end":`span-end`};function gt(e){let t=e.trim().split(/\s+/);if(t[0]===``||t[0]===`none`)return null;let n=e=>e in pt?[`x`,pt[e]]:e in mt?[`y`,mt[e]]:e in ht?[`both`,ht[e]]:null,r=n(t[0]);if(!r)return null;if(t.length===1){let[e,t]=r;return e===`both`?{x:t,y:t}:e===`x`?{x:t,y:`span-all`}:{x:`span-all`,y:t}}let i=t.length===2?n(t[1]):null;return i?r[0]===`both`&&i[0]===`both`||r[0]===`y`||i[0]===`x`?{y:r[1],x:i[1]}:{x:r[1],y:i[1]}:null}function _t(e){let t=e.trim();if(t===``||t===`none`)return[];let n=[];for(let e of t.split(`,`)){let t=e.trim().split(/\s+/);if(t.every(e=>e.startsWith(`flip-`)))n.push({flipBlock:t.includes(`flip-block`),flipInline:t.includes(`flip-inline`),flipStart:t.includes(`flip-start`)});else{let t=gt(e);t&&n.push(t)}}return n}function V(e,t,n){e.position=`fixed`;for(let t of[`top`,`right`,`bottom`,`left`])e.insets[t]??=0;(e.width===void 0||e.width.kind===`auto`)&&(e.width={kind:`fit-content`}),(e.height===void 0||e.height.kind===`auto`)&&(e.height={kind:`fit-content`});let r=(e,r)=>RegExp(`(?:^|[\\s:.[!])-?(?:${e})-`).test(t)||n.getPropertyValue(r)!==``;r(`m|my|mt`,`margin-top`)||(e.margin.top=null),r(`m|mx|mr|me`,`margin-right`)||(e.margin.right=null),r(`m|my|mb`,`margin-bottom`)||(e.margin.bottom=null),r(`m|mx|ml|ms`,`margin-left`)||(e.margin.left=null)}function vt(e){try{let t=getComputedStyle(e,`::backdrop`),n=t.backgroundColor,r=t.backgroundImage||`none`,i=t.backdropFilter||`none`;return bt(n)&&r===`none`&&i===`none`?null:{backgroundColor:n,backgroundImage:r,backdropFilter:i,opacity:t.opacity||`1`}}catch{return null}}function yt(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,weight:e.borderWeight,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=st(),e.display===`table`&&(e.padding=st()))}function bt(e){let t=e.trim().toLowerCase();return t===``||t===`currentcolor`||Xe(t)===0}function xt(e,t,n){let r=ye(e,bt(t)?``:t,n);return r===``?void 0:r}function St(e){return e===`hidden`||e===`clip`}var Ct=new WeakMap,wt=null;function Tt(e){if(wt!==null)return wt;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),wt=getComputedStyle(t).scrollbarWidth!==`none`,t.remove(),wt}function Et(e,t){if(!Tt(e.ownerDocument))return`auto`;if(e.hasAttribute(`data-mw-scroll`)){let t=Ct.get(e);if(t!==void 0)return t}let n=t.scrollbarWidth===`none`?`none`:`auto`;return Ct.set(e,n),n}function Dt(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 Ot(e,t=1){return Math.max(t,Math.floor(Number(e)||t))}function kt(e){return St(e)?`clip`:e===`auto`||e===`scroll`?e:`visible`}function At(e){let t=kt(e.overflowX||e.overflow),n=kt(e.overflowY||e.overflow);return t!==`visible`&&n===`visible`&&(n=`auto`),n!==`visible`&&t===`visible`&&(t=`auto`),{x:t,y:n}}function jt(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)`||!ae(e.tagName)&&(St(t.overflow)||St(t.overflowX))&&parseFloat(t.width)<=1&&parseFloat(t.height)<=1}var Mt={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`},Nt={"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 Pt(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 Ft(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:zt(e,t),textAlign:Bt(e,t),textIndent:xn(t,n)}}function It(e,t,n){(/(?:^|[\s:.[!])text-(?:xs|sm|base|lg|[2-9]?xl)(?![\w-])/.test(t)||/(?:^|[\s:.[!])text-\[(?:(?:length|size):|[\d.])/.test(t)||n.fontSize!==``)&&ee(e,`font-size inside <mono-wind> is ignored — all text shares the host's cell size. Size the <mono-wind> element itself instead.`)}function Lt(e,t,n,r){let i=e.getPropertyValue(t).trim();return n.includes(i)?i:r}function Rt(e,t,n){let r=parseFloat(e.getPropertyValue(`--mw-rule-${t}-width`))||0;if(r<=0)return null;let i=pn(e.getPropertyValue(`--mw-rule-${t}-style`).trim()),a=e.getPropertyValue(`--mw-rule-${t}-color`).trim();return{width:w(i,r,n).cells,weight:T(i,r,n),style:i,color:a&&a!==`currentcolor`&&a!==`currentColor`?a:e.color}}function zt(e,t){return t.textAlign===`justify`||e.getAttribute(`align`)?.toLowerCase()===`justify`}function Bt(e,t){let n=t.textAlign||e.getAttribute(`align`)?.toLowerCase()||``;return n===`right`||n===`end`?`end`:n===`center`||n.endsWith(`-center`)?`center`:`start`}function Vt(e){return typeof e.computedStyleMap==`function`}function Ht(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 Ut(e){switch(e){case`center`:case`anchor-center`:return`center`;case`flex-end`:case`end`:return`end`;case`stretch`:case`normal`:case``:return`stretch`;default:return`start`}}function H(e){return e===`auto`||e===``||e===`normal`?`auto`:Ut(e)}function Wt(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&&(e.endsWith(`%`)||e.startsWith(`calc(`))){let t=hn(e,i);if(t!==0)return t}}else if(s.test(n)||r.getPropertyValue(a)===`auto`)return null;let c=e.getPropertyValue(a);if(c===`auto`)return null;let l=hn(c,i);if(l!==0)return l;let u=e.getPropertyValue(o);return u===`auto`?null:hn(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 Gt(e,t,n){let r=(e===`normal`?0:parseFloat(e)||0)-n;return r<=0?0:Math.floor(r/(.025*t)+1e-6)}function Kt(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 qt(e){switch(e){case`relative`:case`absolute`:case`fixed`:case`sticky`:return e;default:return`static`}}function Jt(e){return e===`absolute`||e===`fixed`}function Yt(e){switch(e){case`left`:case`inline-start`:return`left`;case`right`:case`inline-end`:return`right`;default:return`none`}}function Xt(e){switch(e){case`left`:case`inline-start`:return`left`;case`right`:case`inline-end`:return`right`;case`both`:return`both`;default:return`none`}}function Zt(e,t,n,r,i){let a=(a,o)=>{if(t){let e=t.get(a)?.toString().trim();return!e||e===`auto`?null:hn(e,i)}let s=r[a];if(s)return s===`auto`?null:hn(s,i);if(!RegExp(`(?:^|[\\s:.[!])-?(?:${o})-`).test(n))return null;let c=e.getPropertyValue(a);if(c===`auto`)return null;let l=Qt(n,o,i);return l===void 0?c?hn(c,i):null:l};return{top:a(`top`,`top|inset|inset-y`),right:a(`right`,`right|end|inset|inset-x`),bottom:a(`bottom`,`bottom|inset|inset-y`),left:a(`left`,`left|start|inset|inset-x`)}}function Qt(e,t,n){let r=`(?:^|[\\s:.[!])(-?)(?:${t})-`,i=(e,t)=>e===`-`?typeof t==`number`?-t:t.cells===void 0?{percent:-t.percent}:{percent:-t.percent,cells:-t.cells}:t,a=RegExp(`${r}(\\d+)/(\\d+)(?![\\w./])`).exec(e);if(a)return i(a[1],{percent:100*Number(a[2])/Number(a[3])});let o=RegExp(`${r}full(?![\\w-])`).exec(e);if(o)return i(o[1],{percent:100});let s=RegExp(`${r}\\[(calc\\([^\\]]*\\)|\\d+(?:\\.\\d+)?%)\\]`).exec(e);if(s)return i(s[1],hn(s[2].replaceAll(`_`,` `),n))}function $t(e,t,n){if(!e||e===`none`)return[];let r=e=>/^-?[\d.]+(?:e[+-]?\d+)?(?:px)?$/i.test(e),i=(e,n)=>{if(e===0)return 0;let r=n?Math.abs(e)/n:Math.abs(Qe(e,t));return Math.sign(e)*Math.max(1,Math.round(r))},a=[];for(let o of dn(e)){let e=zn(o),s=e.filter(r).map(parseFloat);if(s.length<2)continue;let[c,l,u=0,d=0]=s;a.push({x:i(c,n?.width),y:i(l,n?.height),blur:u/(.25*t),spread:Qe(d,t),color:e.find(e=>!r(e)&&e!==`inset`)??`currentcolor`,inset:e.includes(`inset`)})}return a}function en(e,t,n){let r=[];if(!e||e===`none`)return r;for(let i of dn(e.replace(/\bcurrentcolor\b/gi,t))){let e=/^\s*(repeating-)?(linear|radial|conic)-gradient\((.*)\)\s*$/s.exec(i);if(!e)continue;let[,t,a,o]=e,s=Rn(o).map(e=>e.trim()),c=s.length>0&&!U(s[0]),l=c?zn(s[0]):[],u=c?s.slice(1):s,d=un(u,n);if(d.length<2)continue;let f={repeating:t!==void 0,...W(l,u),stops:d};if(a===`linear`)r.push({kind:a,...f,direction:on(l)});else if(a===`radial`)r.push({kind:a,...f,...ln(l,n)});else{let e=l.indexOf(`from`);r.push({kind:`conic`,...f,from:e>=0?an(l[e+1]??``):0,at:cn(l,n)})}}return r}var U=e=>/^(?:rgba?|hsla?|oklab|oklch|color)\(|^transparent\b/i.test(e),tn=[`oklab`,`oklch`,`srgb`,`srgb-linear`,`hsl`],nn=[`shorter`,`longer`,`increasing`,`decreasing`];function W(e,t){let n=e.indexOf(`in`);if(n>=0){let t=e[n+1],r=e[n+2];return{space:tn.includes(t)?t:`oklab`,hue:nn.includes(r)?r:`shorter`}}return{space:t.filter(U).every(e=>He(zn(e)[0]??``))?`srgb`:`oklab`,hue:`shorter`}}function rn(e){let t=e.split(`,`)[0].trim();return t===`text`||t===`padding-box`||t===`content-box`?t:`border-box`}function an(e){let t=parseFloat(e);return Number.isFinite(t)?e.endsWith(`grad`)?t*.9:e.endsWith(`rad`)?t*180/Math.PI:e.endsWith(`turn`)?t*360:t:0}function on(e){if(e[0]===`to`){let t=0,n=0;for(let r of e.slice(1))r===`left`?t=-1:r===`right`?t=1:r===`top`?n=-1:r===`bottom`&&(n=1);return{toX:t,toY:n}}let t=e.find(e=>/^-?[\d.]+(?:deg|grad|rad|turn)$/.test(e));return t===void 0?{angle:180}:{angle:an(t)}}function sn(e,t){let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?{fraction:n/100}:/(?:deg|grad|rad|turn)$/.test(e)?{fraction:an(e)/360}:{cells:Qe(n,t)}:null}function cn(e,t){let n=e.indexOf(`at`),r={fraction:.5};if(n<0)return{x:r,y:r};let i={left:{fraction:0},top:{fraction:0},center:r,right:{fraction:1},bottom:{fraction:1}},a=e.slice(n+1,n+3).filter(e=>e!==`in`),[o,s]=a.map(e=>i[e]??sn(e,t)),c=a[0]===`top`||a[0]===`bottom`||a[1]===`left`||a[1]===`right`;return{x:(c?s:o)??r,y:(c?o:s)??r}}function ln(e,t){let n=e.indexOf(`at`),r=n<0?e:e.slice(0,n),i=r.find(e=>[`closest-side`,`farthest-side`,`closest-corner`,`farthest-corner`].includes(e)),a=r.map(e=>/^[\d.]/.test(e)?sn(e,t):null).filter(e=>e!==null),o=r.includes(`circle`)?`circle`:`ellipse`,s=i??`farthest-corner`;return a.length===1?(o=`circle`,s={rx:a[0],ry:a[0]}):a.length>=2&&(o=`ellipse`,s={rx:a[0],ry:a[1]}),{shape:o,size:s,at:cn(e,t)}}function un(e,t){let n=[];for(let r of e){let e=zn(r),i=Ve(e[0]??``);if(!i){let r=sn(e[0]??``,t),i=n[n.length-1];r&&i&&(i.hint=r);continue}let a=e.slice(1,3).map(e=>sn(e,t));a.length===0&&a.push(null);for(let e of a)n.push({color:i,position:e})}return n}function dn(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}function fn(e,t){let n=e.trim().split(/\s+/).filter(Boolean);if(n.length===0)return 0;let r=1/0;for(let e of n){let n=parseFloat(e);if(!Number.isFinite(n)||n<=0)return 0;r=Math.min(r,e.endsWith(`%`)?1/0:n/(.25*t))}return r}function pn(e){switch(e){case`double`:return`double`;case`dashed`:return`dashed`;case`dotted`:return`dotted`;default:return`solid`}}function mn(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)?Qe(n,t):void 0}function hn(e,t){if(!e||e===`auto`||e===`none`)return 0;if(e.startsWith(`calc(`)){let n=Dn(e,`width`,void 0,t);if(!n||n.unitless)return 0;let r=Ze(n.cells);return n.percent===0?r:r===0?{percent:n.percent}:{percent:n.percent,cells:r}}if(e.endsWith(`%`)){let t=parseFloat(e);return Number.isFinite(t)&&t!==0?{percent:t}:0}let n=parseFloat(e);return Number.isFinite(n)?Qe(n,t):0}function gn(e){let t=parseFloat(e);return Number.isFinite(t)?Math.min(1,Math.max(0,t)):1}var _n=new Set([`matrix(1, 0, 0, 1, 0, 0)`,`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)`,`1`,`1 1`,`1 1 1`,`0deg`,`0px`,`0px 0px`,`0px 0px 0px`]),vn=[`transform`,`translate`,`rotate`,`scale`,`filter`];function yn(e,t){let n=e=>{let n=t.getPropertyValue(e).trim();return n===``||_n.has(n)?`none`:n},r=n(`backdrop-filter`);return r!==`none`||vn.some(e=>n(e)!==`none`)||N(e,t)?{backdropFilter:r}:null}function bn(e){return{color:e.color,opacity:gn(e.opacity),borderColor:{top:e.borderTopColor,right:e.borderRightColor,bottom:e.borderBottomColor,left:e.borderLeftColor}}}function xn(e,t){let n=e.textIndent;if(!n||n.endsWith(`%`))return 0;let r=parseFloat(n);return Number.isFinite(r)?Math.max(0,Qe(r,t)):0}function Sn(e,t,n,r,i,a,o){let s=Cn(n===`width`?a.width:a.height);if(s!==null)return{kind:`cells`,value:Tn(s,n,o,r)};let c=En(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=wn(i,l)??wn(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:Tn(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=An(i);if(a)return a;if(i.endsWith(`%`))return{kind:`percent`,value:parseFloat(i)};if(i.endsWith(`px`))return{kind:`cells`,value:Qe(parseFloat(i),r)};if(i.endsWith(`rem`))return{kind:`cells`,value:Ze(parseFloat(i)/.25)};let s=Cn(i);if(s!==null)return{kind:`cells`,value:Tn(s,n,o,r)}}let d=n===`width`?a.width:a.height;if(d){if(d===`auto`)return{kind:`auto`};let e=An(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:Qe(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:Ze(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:Qe(g,r)}}function Cn(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 wn(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?Cn(r[1]):null}function Tn(e,t,n,r){let i=t===`width`?n?.width:n?.height;return i&&i>0?Math.max(0,Math.floor(e/i)):Qe(e,r)}function En(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=Dn(f,c,o,s);if(!p||p.unitless||p.percent!==0)return;let m=Math.max(0,Ze(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 Dn(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,percent:0,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,percent:0,unitless:!0};if(s===`%`)return{cells:0,px:0,percent:o,unitless:!1};if(s===`px`)return c(o/(r/4),o);if(s===`rem`)return c(o*4,o*r);let l=Cn(e);return l===null?null:c(Tn(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,percent:t.percent+r*n.percent,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,percent:r.percent*e.cells,unitless:r.unitless&&e.unitless}}return!n.unitless||n.px===0?null:{cells:t.cells/n.cells,px:t.px/n.px,percent:t.percent/n.cells,unitless:t.unitless}},d=()=>{let e=s();if(e===void 0)return null;if(e===`-`){let e=d();return e&&{...e,cells:-e.cells,px:-e.px,percent:-e.percent}}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 On(e,t,n,r,i,a,o,s){let c=t.endsWith(`width`)?`width`:`height`,l=Cn(a.getPropertyValue(t))??Cn(e?.get(t)?.toString().trim()??``);if(l!==null)return Tn(l,c,o,s);let u=wn(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 Tn(p?f:u,c,o,s)}function kn(e,t){if(!e||e===`auto`||e===`content`)return;let n=An(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:Qe(r,t)}:void 0}function An(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 jn(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 zn(n)){let n=Nn(e);if(n){a.push(...n);continue}let i=e.match(/^repeat\(\s*([^,]+?)\s*,(.*)\)$/s);if(i){let e=Mn(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(In(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 Mn(e,t){let n=[],r=[],i=[];for(let a of zn(e)){let e=Nn(a);if(e){i.push(...e);continue}r.push(i),i=[],n.push(In(a,t))}return r.push(i),{tracks:n,lineNames:r}}function Nn(e){let t=e.match(/^\[(.*)\]$/s);return t?t[1].split(/\s+/).filter(e=>e!==``):null}function Pn(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 Fn(e,t){let n=zn(e.trim()).filter(e=>e!==``&&!e.startsWith(`[`)).map(e=>In(e,t));return n.length>0?n:[ct()]}function In(e,t){let n=e.match(/^minmax\((.*)\)$/s);if(n){let e=Rn(n[1]).map(e=>e.trim());return e.length===2?{min:Ln(e[0],t),max:Ln(e[1],t)}:{min:{kind:`auto`},max:{kind:`auto`}}}let r=Ln(e,t);return r.kind===`fr`?{min:{kind:`auto`},max:r}:{min:r,max:r}}function Ln(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=Rn(n[2]).map(e=>Ln(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`)?Ze(r/.25):Qe(r,t)}:{kind:`auto`}}function Rn(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 zn(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 Bn(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 Vn(e){return{direction:e.includes(`column`)?`column`:`row`,dense:e.includes(`dense`)}}function Hn(e,t){return{top:hn(e.getPropertyValue(`padding-top`),t),right:hn(e.getPropertyValue(`padding-right`),t),bottom:hn(e.getPropertyValue(`padding-bottom`),t),left:hn(e.getPropertyValue(`padding-left`),t)}}function Un(e,t){let n=st(),r={top:1,right:1,bottom:1,left:1},i={top:`solid`,right:`solid`,bottom:`solid`,left:`solid`};for(let a of[`top`,`right`,`bottom`,`left`]){let o=e.getPropertyValue(`border-${a}-style`),s=o===`none`||o===`hidden`?0:parseFloat(e.getPropertyValue(`border-${a}-width`))||0;i[a]=pn(o),!(s<=0)&&(r[a]=s,n[a]=w(i[a],s,t).cells)}return{border:n,borderWeight:r,borderStyle:i}}var Wn=new Set(`class.style.id.role.hidden.open.popover.popovertarget.commandfor.inert.dir.lang.contenteditable.disabled.checked.selected.readonly.required.min.max.step.pattern.minlength.maxlength.multiple.placeholder.type.value.size.rows.cols.wrap.href.src.alt.width.height.label.start.reversed.colspan.rowspan.span.align.valign.nowrap.border.cellpadding.cellspacing.bgcolor.color.aria-busy.aria-checked.aria-current.aria-disabled.aria-expanded.aria-hidden.aria-invalid.aria-pressed.aria-readonly.aria-required.aria-selected.aria-sort`.split(`.`));function Gn(e,t){return t.startsWith(`data-`)?!t.startsWith(`data-mw-`):Wn.has(t)||ae(e.tagName)!==void 0}function Kn(e,t,n){let r=e.border;if(r.top===0&&r.right===0&&r.bottom===0&&r.left===0)return;let a=Math.max(r.top,r.right,r.bottom,r.left);for(let o=0;o<a;o++){let a={top:o<r.top,right:o<r.right,bottom:o<r.bottom,left:o<r.left},s={top:Math.min(o,r.top),right:Math.min(o,r.right),bottom:Math.min(o,r.bottom),left:Math.min(o,r.left)},c={x:t.x+s.left,y:t.y+s.top,width:t.width-s.left-s.right,height:t.height-s.top-s.bottom};if(c.width<=0||c.height<=0)continue;let l={tl:Math.max(0,e.borderRadius.tl-o),tr:Math.max(0,e.borderRadius.tr-o),bl:Math.max(0,e.borderRadius.bl-o),br:Math.max(0,e.borderRadius.br-o)};Jn(n,e.borderStyle,e.borderWeight,e.borderColor,l,c,a,i(e.glyphSet))}}function qn(e,t,n,r){let a=e.boxShadow.filter(e=>e.inset===n);if(a.length===0)return;let o=k(i(e.glyphSet)),s=o.length-1,{border:c}=e,l={x:t.x+c.left,y:t.y+c.top,width:t.width-c.left-c.right,height:t.height-c.top-c.bottom};for(let e of a.slice().reverse()){let i=Xe(e.color);if(i===0)continue;let a=Math.round((1-Math.sqrt(i))*s),c=i<1?`color-mix(in srgb, ${e.color} ${Math.round(i*100)}%, var(--mw-fg, canvastext))`:e.color,u=Math.max(0,Math.round(e.blur/2)),d=Array.from({length:u+1},(e,t)=>{if(t===u)return{glyph:o[a],color:c};let n=a+Math.round((u-t)*(s-a)/u),r=Math.round(100*(t+1)/(u+1));return{glyph:o[n],color:`color-mix(in srgb, ${c} ${r}%, transparent)`}});if(n){let t={x0:l.x+e.x+e.spread,y0:l.y+e.y+e.spread,x1:l.x+e.x+l.width-e.spread,y1:l.y+e.y+l.height-e.spread};for(let e=l.y;e<l.y+l.height;e++)for(let n=l.x;n<l.x+l.width;n++){let i=Math.min(n-t.x0,t.x1-1-n,e-t.y0,t.y1-1-e);if(i>=u)continue;let a=i<0?u:u-1-i;r.push({...d[a],x:n,y:e,length:1})}continue}let f=e.spread+u,p=t.x+e.x-f,m=t.y+e.y-f,h=t.x+e.x+t.width+f,g=t.y+e.y+t.height+f;for(let e=m;e<g;e++)for(let n=p;n<h;n++){if(n>=t.x&&n<t.x+t.width&&e>=t.y&&e<t.y+t.height)continue;let i=Math.min(n-p,h-1-n,e-m,g-1-e,u);r.push({...d[i],x:n,y:e,length:1})}}}function Jn(e,t,n,r,i,a,o,s){let l=w(t.top,n.top,s).roles,u=w(t.right,n.right,s).roles,d=w(t.bottom,n.bottom,s).roles,f=w(t.left,n.left,s).roles,p=(e,r,a)=>{let o=t[e]===t[r]?t[e]:`solid`,l=Math.max(T(t[e],n[e],s),T(t[r],n[r],s));return c(o,a,i[a],w(o,l,s),s)},{x:m,y:h,width:g,height:_}=a,v=g>=2&&_>=2,y=m+ +!!o.left,b=m+g-+!!o.right,x=h+ +!!o.top,S=h+_-+!!o.bottom;if(o.top&&b>y&&e.push({glyph:l.h,x:y,y:h,length:b-y,color:r.top}),o.bottom&&_>+!!o.top&&b>y&&e.push({glyph:d.h,x:y,y:h+_-1,length:b-y,color:r.bottom}),o.left)for(let t=x;t<S;t++)e.push({glyph:f.v,x:m,y:t,length:1,color:r.left});if(o.right&&g>+!!o.left)for(let t=x;t<S;t++)e.push({glyph:u.v,x:m+g-1,y:t,length:1,color:r.right});v&&(o.top&&o.left&&e.push({glyph:p(`top`,`left`,`tl`),x:m,y:h,length:1,color:r.top}),o.top&&o.right&&e.push({glyph:p(`top`,`right`,`tr`),x:m+g-1,y:h,length:1,color:r.top}),o.bottom&&o.left&&e.push({glyph:p(`bottom`,`left`,`bl`),x:m,y:h+_-1,length:1,color:r.bottom}),o.bottom&&o.right&&e.push({glyph:p(`bottom`,`right`,`br`),x:m+g-1,y:h+_-1,length:1,color:r.bottom}))}function Yn(e,t){return e.style.position!==`static`||(t.style.display===`flex`||t.style.display===`grid`)&&e.style.zIndex!==null}function Xn(e){if(e.children.length<=1)return e.children;let t=null,n=null,r=null,i=null,a=null;for(let o of e.children)Yn(o,e)?(o.style.zIndex??0)<0?(t??=[]).push(o):(a??=[]).push(o):o.inlineBox?(i??=[]).push(o):o.style.float===`none`?(n??=[]).push(o):(r??=[]).push(o);return t&&t.length>1&&t.sort((e,t)=>(e.style.zIndex??0)-(t.style.zIndex??0)),a&&a.length>1&&a.sort((e,t)=>(e.style.zIndex??0)-(t.style.zIndex??0)),!t&&n&&!r&&!i&&!a?n:!t&&!n&&!r&&i&&!a?i:!t&&!n&&!r&&!i&&a?a:[...t??[],...n??[],...r??[],...i??[],...a??[]]}function Zn(e,t,n,r){return w(e,t,r).roles[n]}function Qn(e,t,n,r,i,a,o){let s=l((n?8:0)|(r?4:0)|(i?2:0)|!!a);return s?w(e,t,o).roles[s]:` `}function $n(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 er(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=Zn(e.ruleX.style,e.ruleX.weight,`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});tr(e,t,`x`,o.line,o.start,o.end)}}if(e.ruleY){let i=e.ruleY.style===`double`&&e.ruleX?.style===`double`,u=Math.max(e.ruleY.weight,e.ruleX?.weight??0);for(let d of o){for(let f=0;f<c;f++){let p=d.line+f;for(let f=d.start;f<d.end;f++){let d=l(a,s,f,p),m=l(a,s,f,p+1);t.push({glyph:d||m?Qn(i?`double`:`solid`,u,d,m,l(o,c,p,f),l(o,c,p,f+1),e.glyphs):Zn(e.ruleY.style,e.ruleY.weight,`h`,e.glyphs),x:n+f,y:r+p,length:1,color:e.ruleY.color})}}tr(e,t,`y`,d.line,d.start,d.end)}}return t}function tr(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)=>{let u=o.style===`double`&&e.borderStyle[i]===`double`?`double`:`solid`,d=Math.max(o.weight,T(e.borderStyle[i],e.borderWeight[i],e.glyphs));t.push({glyph:Qn(u,d,a,s,c,l,e.glyphs),x:n,y:r,length:1,color:e.borderColor[i]})};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,`top`,!1,!0,!0,!0),a>=e.contentHeight&&e.padding.bottom===0&&e.border.bottom>0&&d(n,u-e.border.bottom,`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,`left`,!0,!0,!1,!0),a>=e.contentWidth&&e.padding.right===0&&e.border.right>0&&d(l-e.border.right,n,`right`,!0,!0,!0,!1)}}var nr={double:3,solid:2,dashed:1,dotted:0},rr=8,ir=4,ar=2,or=1,sr=(e,t)=>e!=null&&t<e.width,cr=(e,t)=>Math.max(1,e?.width??0,t?.width??0);function lr(e){let{vLines:t,hLines:n,widths:r,rowHeights:i,colX:a,rowY:o}=e,s=r.length,c=i.length;return{lineX:e=>e<s?a[e]-t[e]:a[s-1]+r[s-1],lineY:e=>e<c?o[e]-n[e]:o[c-1]+i[c-1]}}function ur(e,t,{lineX:n,lineY:r}){let{vLines:i,hLines:a,widths:o,cells:s}=t,c=o.length,l=new Map,u=e=>{l.set(e,l.size);for(let t of Xn(e))u(t)};u(e);let d=e=>e?l.get(e)??-1:-1,f=new Map,p=new Set;for(let e of s)for(let o of e){if(!o)continue;let{shift:e,owner:s}=pr(o);if(!s||p.has(s))continue;p.add(s);let{r0:l,r1:u,c0:m,c1:h}=fr(t,s),g=s.style.tableRole!==`cell`,_={x0:t.contentLeft+e.x+n(g?0:m),x1:t.contentLeft+e.x+(g?n(c)+i[c]:n(h+1)+i[h+1]),rank:d(s),shift:e},v=t.contentTop+e.y+r(l),y=t.contentTop+e.y+r(u+1)+a[u+1];for(let e=v;e<y;e++){let t=f.get(e);t?t.push(_):f.set(e,[_])}}return{rankOf:d,coveredAt:(e,t,n,r)=>f.get(t)?.some(t=>t.rank>n&&(t.shift.x!==r.x||t.shift.y!==r.y)&&e>=t.x0&&e<t.x1)??!1}}function dr(e,t,n){let{vLines:r,hLines:i,vSegments:a,hSegments:o,widths:s,rowHeights:c,colX:l,rowY:u,cells:d,set:f}=t,p=s.length,m=c.length,h=lr(t),{lineX:g,lineY:_}=h,{rankOf:v,coveredAt:y}=ur(e,t,h),b=new Map,x=0,S=(e,r,i,a,o,s,{shift:c,owners:l,rank:u})=>{if(e+=t.contentLeft,r+=t.contentTop,!n(e,r))return;if(y(e,r,u,c)){let t=(e,t)=>n(e,t)&&!y(e,t,u,c);if(t(e,r-1)||(i&=-9),t(e,r+1)||(i&=-5),t(e-1,r)||(i&=-3),t(e+1,r)||(i&=-2),i===0)return}let d=r*65536+e+32768,f=b.get(d);if(!f){b.set(d,{x:e,y:r,mask:i,allDouble:a.style===`double`,dominant:a,only:s?{id:o,axis:s}:null,owners:new Set(l)});return}f.mask|=i,f.allDouble&&=a.style===`double`,(a.weight>f.dominant.weight||a.weight===f.dominant.weight&&nr[a.style]>nr[f.dominant.style])&&(f.dominant=a),(!s||f.only?.id!==o)&&(f.only=null);for(let e of l)f.owners.add(e)},C=e=>{let t=[];for(let n of e){if(!n)continue;let{shift:e,owner:r}=pr(n),i=t.find(t=>t.shift.x===e.x&&t.shift.y===e.y);i?i.owners.includes(r)||(i.owners.push(r),i.rank=Math.max(i.rank,v(r))):t.push({shift:e,owners:[r],rank:v(r)})}return t};for(let e=0;e<=p;e++)for(let t=0;t<m;t++){let n=a[e][t];if(!n)continue;let r=x++,s=a[e][t-1],l=a[e][t+1],f=o[t],p=o[t+1],m=i[t],h=i[t+1];for(let i of C([d[t][e-1],d[t][e]])){let{shift:a}=i;for(let o=0;o<n.width;o++){let d=g(e)+o+a.x;for(let e=u[t];e<u[t]+c[t];e++)S(d,e+a.y,12,n,r,`v`,i);let v=sr(s,o)||f[e-1]||f[e]?m:Math.min(m,1),y=_(t)+m-1+a.y;for(let e=0;e<v;e++)S(d,y-e,ir|(e+1<v?rr:0),n,r,null,i);let b=sr(l,o)?h:Math.min(h,cr(p[e-1],p[e])),x=_(t+1)+a.y;for(let e=0;e<b;e++)S(d,x+e,rr|(e+1<b?ir:0),n,r,null,i)}}}for(let e=0;e<=m;e++)for(let t=0;t<p;t++){let n=o[e][t];if(!n)continue;let i=x++,c=o[e][t-1],u=o[e][t+1],f=a[t],p=a[t+1],m=r[t],h=r[t+1];for(let r of C([d[e-1]?.[t],d[e]?.[t]])){let{shift:a}=r;for(let o=0;o<n.width;o++){let d=_(e)+o+a.y;for(let e=l[t];e<l[t]+s[t];e++)S(e+a.x,d,3,n,i,`h`,r);let v=sr(c,o)||f[e-1]||f[e]?m:Math.min(m,1),y=g(t)+m-1+a.x;for(let e=0;e<v;e++)S(y-e,d,or|(e+1<v?ar:0),n,i,null,r);let b=sr(u,o)?h:Math.min(h,cr(p[e-1],p[e])),x=g(t+1)+a.x;for(let e=0;e<b;e++)S(x+e,d,ar|(e+1<b?or:0),n,i,null,r)}}}let w=[],T=new Map;for(let e of b.values()){let t={glyph:e.only?Zn(e.dominant.style,e.dominant.weight,e.only.axis,f):Qn(e.allDouble?`double`:`solid`,e.dominant.weight,(e.mask&rr)!==0,(e.mask&ir)!==0,(e.mask&ar)!==0,(e.mask&or)!==0,f),x:e.x,y:e.y,length:1,color:e.dominant.color};for(let n of e.owners)if(n===null)w.push(t);else{let e=T.get(n);e?e.push(t):T.set(n,[t])}}return{runs:w,parts:T}}function fr(e,t){let n=1/0,r=-1,i=1/0,a=-1;return e.cells.forEach((e,o)=>e.forEach((e,s)=>{!e||e.node!==t&&e.row!==t&&e.group!==t||(n=Math.min(n,o),r=Math.max(r,o),i=Math.min(i,s),a=Math.max(a,s))})),r<0?null:{r0:n,r1:r,c0:i,c1:a}}function pr(e){let t=[e.node,e.row,e.group],n={x:0,y:0},r=null;for(let e of t)e?.stickyShift&&(n.x+=e.stickyShift.x,n.y+=e.stickyShift.y,r??=e);return{shift:n,owner:r}}var mr={width:1,height:2},hr={r:0,g:0,b:0,a:0},gr=new WeakMap;function _r(e,t,n,r,i){let a=`${t}|${n}|${r}|${i.width}|${i.height}`,o=gr.get(e);if(o?.key===a)return o.rows;let s=t===void 0?null:Ve(t),c={width:n*i.width,height:r*i.height,cell:i},l=e.map(e=>vr(e,c)),u=[];for(let e=0;e<r;e++){let r=[];for(let a=0;a<n;a++){let n=(a+.5)*i.width,o=(e+.5)*i.height,c=s??hr;for(let e=l.length-1;e>=0;e--)c=Je(Tr(l[e],n,o),c);r.push(c.a===0&&s===null?t??null:Ye(c))}u.push(r)}return gr.set(e,{key:a,rows:u}),u}function vr(e,t){let n=t.cell.width;if(e.kind===`linear`){let r=Cr(e,t);return{gradient:e,stops:xr(e,n/r.length),kind:`linear`,...r,cx:t.width/2,cy:t.height/2}}if(e.kind===`radial`){let r=wr(e,t);return{gradient:e,stops:xr(e,n/r.rx),kind:`radial`,...r}}let{x:r,y:i}=br(e.at,t);return{gradient:e,stops:xr(e,0),kind:`conic`,cx:r,cy:i,from:e.from}}var yr=(e,t,n)=>`fraction`in e?e.fraction*t:e.cells*n.cell.width,br=({x:e,y:t},n)=>({x:yr(e,n.width,n),y:yr(t,n.height,n)});function xr(e,t){let n=e=>`fraction`in e?e.fraction:e.cells*t,r=e.stops,i=r.map(e=>e.position===null?null:n(e.position));i[0]===null&&(i[0]=0),i[i.length-1]===null&&(i[i.length-1]=1);for(let e=1;e<i.length;e++){if(i[e]!==null){i[e]=Math.max(i[e],i[e-1]);continue}let t=e+1;for(;i[t]===null;)t++;let n=i[e-1],r=(Math.max(i[t],n)-n)/(t-e+1);for(let a=e;a<t;a++)i[a]=n+r*(a-e+1)}let a=r.map(t=>Ge(t.color,e.space)),o=e=>({c:[...e.c],a:e.a});return r.map((t,r)=>{let s=a[r+1],c=null;return s&&(c={from:o(a[r]),to:o(s)},Ke(c.from,c.to,e.space,e.hue)),{color:a[r],at:i[r],hint:t.hint===void 0?null:n(t.hint),pair:c}})}function Sr(e,t,n){let{space:r}=e,i=e=>qe(e.color,e.color,0,r),a=t[0],o=t[t.length-1];if(e.repeating&&o.at>a.at){let e=o.at-a.at;n=a.at+((n-a.at)%e+e)%e}if(n<=a.at)return i(a);if(n>=o.at)return i(o);let s=0;for(;t[s+1].at<n;)s++;let c=t[s],l=t[s+1];if(l.at===c.at)return i(l);let u=(n-c.at)/(l.at-c.at);if(c.hint!==null){let e=Math.min(.999,Math.max(.001,(c.hint-c.at)/(l.at-c.at)));u**=Math.log(.5)/Math.log(e)}return qe(c.pair.from,c.pair.to,u,r)}function Cr(e,t){let{direction:n}=e,r;if(`angle`in n)r=n.angle;else{let{toX:e,toY:i}=n,a=Math.atan2(t.height,t.width)*180/Math.PI;r=e===0?i<0?0:180:i===0?e>0?90:270:e>0?i<0?a:180-a:i<0?360-a:180+a}let i=r*Math.PI/180,a=Math.sin(i),o=-Math.cos(i);return{dx:a,dy:o,length:Math.abs(t.width*a)+Math.abs(t.height*o)}}function wr(e,t){let{x:n,y:r}=br(e.at,t),{size:i}=e;if(typeof i==`object`)return{cx:n,cy:r,rx:yr(i.rx,t.width,t),ry:yr(i.ry,t.height,t)};let a=i.startsWith(`closest`)?Math.min:Math.max,o=a(n,t.width-n),s=a(r,t.height-r);if(e.shape===`circle`&&(o=s=a(o,s)),i.endsWith(`corner`)){let i=a(n,t.width-n),c=a(r,t.height-r),l=e.shape===`circle`?Math.hypot(i,c)/o:Math.hypot(i/(o||1),c/(s||1));o*=l,s*=l}return{cx:n,cy:r,rx:o||1,ry:s||1}}function Tr(e,t,n){let r;if(e.kind===`linear`){let{dx:i,dy:a,length:o,cx:s,cy:c}=e;r=o===0?0:((t-s)*i+(n-c)*a)/o+.5}else if(e.kind===`radial`){let{cx:i,cy:a,rx:o,ry:s}=e;r=Math.hypot((t-i)/o,(n-a)/s)}else r=((Math.atan2(t-e.cx,-(n-e.cy))*180/Math.PI-e.from)%360+360)%360/360;return Sr(e.gradient,e.stops,r)}var Er=[[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 Dr(e){let t=0,n=Er.length;for(;t<n;){let r=t+n>>1,[i,a]=Er[r];if(e<i)n=r;else if(e>a)t=r+1;else return!0}return!1}var Or=/^\p{Extended_Pictographic}/u,kr=/^\p{Emoji_Presentation}/u,Ar=/^\p{Regional_Indicator}/u,jr=/^\p{Regional_Indicator}\p{Regional_Indicator}/u,Mr=/^[\p{Default_Ignorable_Code_Point}\p{Cc}\p{Cf}]+$/u,Nr=`︎`,Pr=`️`,Fr=`‍`,Ir=`⃣`;function G(e){let t=e.codePointAt(0);return t===void 0?0:t<128&&e.length===1?t<32||t===127?0:1:Or.test(e)?e.includes(Nr)?1:e.includes(Pr)||e.includes(Fr)||kr.test(e)?2:1:e.includes(Ir)?2:Ar.test(e)?jr.test(e)?2:1:Dr(t)||kr.test(e)?2:+!Mr.test(e)}var Lr=/^[\x00-\x7f]*$/,Rr;function zr(e){return Lr.test(e)?e.split(``):(Rr===void 0&&(Rr=typeof Intl.Segmenter==`function`?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null),Rr?Array.from(Rr.segment(e),e=>e.segment):Array.from(e))}function Br(e,t){let n=G(e);return n===0?0:n+t}function Vr(e,t=0){let n=[];for(let r of zr(e)){n.push(Br(r,t));for(let e=1;e<r.length;e++)n.push(0)}return n}function Hr(e){let t=0;for(let n of zr(e))t+=G(n);return t}function Ur(e,t,n={}){return Kr(e,t,n).length}function Wr(e,t){return t.endsWith(`
953
+ `)&&e.pop(),e}function Gr(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 Wr(t,e)}function Kr(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
+ `)&&(ti(e,i,o,t,n,a,r),a=0,i=o+1);return Wr(r,e)}function qr(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 Jr(e,t,n,r,i=0){return n<=t?0:qr(t,n,r)-Math.min(i,Yr(e,n-1,r))}function Yr(e,t,n){if(!n)return 0;let r=t;for(;r>0&&n[r]===0;)r--;let i=Math.max(1,G(e.slice(r,t+1)));return Math.max(0,(n[r]??1)-i)}function Xr(e,t={}){let{advances:n,tracking:r=0}=t,i=0;for(let t of ei(e,0,e.length))for(let a of Qr(e,t.start,t.end))i=Math.max(i,Jr(e,a.start,a.end,n,r));return i}function Zr(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===``&&(t(r,n),n++)}function Qr(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 $r=/[ \t\r\n\f]/;function ei(e,t,n){let r=[],i=t;for(;i<n;){for(;i<n&&$r.test(e[i]);)i++;if(i>=n)break;let t=i;for(;i<n&&!$r.test(e[i]);)i++;r.push({start:t,end:i})}return r}function ti(e,t,n,r,{advances:i,tracking:a=0,openLine:o},s,c){let l=-1,u=r,d=()=>(l!==c.length&&(l=c.length,u=o?.(l,c)??r),u),f=ei(e,t,n);if(f.length===0){d(),c.push({start:t,end:t});return}if(r<=0){d(),c.push({start:f[0].start,end:f[f.length-1].end});return}let p=null,m=0,h=Math.max(0,s),g=()=>d()-h;for(let t of f){let n=!1;for(let r of Qr(e,t.start,t.end)){let t=r.start,o=r.end,s=p!==null&&!n?t-1:t,l=m+qr(s,o,i),u=Math.min(a,Yr(e,o-1,i));if(p!==null&&l-u<=g())p.end=o,m=l;else{for(p!==null&&(c.push(p),h=0);;){let n=t;for(;n<o&&Jr(e,t,n+1,i,a)<=g();)n++;if(n===o||n===t)break;c.push({start:t,end:n}),h=0,t=n}p={start:t,end:o},m=qr(t,o,i)}n=!0}}p!==null&&c.push(p)}function ni(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 ri(e,t,n,r,i){if(e.style.ruleBreak!==`intersection`)return[{start:0,end:i}];let a=[t[n-1],t[n]].flatMap(e=>ni(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)),$n(s,`intersection`,`all`,e.style.ruleInset===`overlap-join`?`overlap-join`:0)}function ii(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 ai(e,t,n,r,a,o,s){let c=yo(e.style,`x`,t),l=yo(e.style,`y`,n),u=hi(e).map(e=>{let n=xo(e.style.margin,t);return{node:e,base:mi(e,t,s),grow:e.style.flexGrow,shrink:e.style.flexShrink,min:Math.max(yi(e,t,s),vi(e,`x`,t)),max:Co(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,fo(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),i=e.reduce((e,t)=>e+(t.margin.left??0)+(t.margin.right??0),0),a=Math.max(0,t-n-i),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,fo(e.base,e.min,e.max))):di(e,a);for(let n=0;n<e.length;n++)Y(e[n].node,t,r,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`)r===void 0?Number.isFinite(n)&&(h[0]=Math.max(n,h[0]??0)):h[0]=r,_=[0];else{let t=h.reduce((e,t)=>e+t,0),r=Number.isFinite(n)?Math.max(0,n-t-g):0,i=gi(e.style);if(i===`stretch`&&r>0){let e=K(Array.from({length:m.length},()=>1),r);for(let t=0;t<h.length;t++)h[t]+=e[t];_=ui(`start`,h,0)}else _=ui(i===`stretch`?`start`:i,h,r)}for(let i=0;i<m.length;i++){let{row:a,widths:o,availableForItems:u}=m[i],d=h[i],g=_[i]+i*l;for(let i=0;i<a.length;i++){let c=a[i].node,l=fi(c,e),u=a[i].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=fo(Math.max(0,d-e-a),Co(c.style.minHeight,l)??0,Co(c.style.maxHeight,l));if(f===c.localRect.height)continue;Y(c,t,r,0,0,`fill`,s,{width:o[i],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=K(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=ui(`start`,o,0)}else C=ui(_i(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+ci(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=[],r=[];for(let i=0;i<m.length;i++){let a=_[i]+i*l;for(let e of ni(m[i],f))n.push({bandStart:e.start,bandSize:e.end-e.start,start:a,end:a+h[i]});if(i>0){let n=_[i-1]+(i-1)*l+h[i-1];if(a>n)for(let o of ri(e,m,i,f,t))r.push({bandStart:n,bandSize:a-n,...o})}}e.decorationRuns=er({glyphs:i(e.style.glyphSet),ruleX:e.style.ruleX,ruleY:e.style.ruleY,vertical:ii(n,e.style.ruleInset),horizontal:ii(r,e.style.ruleInset),contentWidth:t,contentHeight:y,border:a,borderStyle:e.style.borderStyle,borderWeight:e.style.borderWeight,borderColor:e.style.borderColor,padding:o})}return oi(e,a,o,t,y),y}function oi(e,t,n,r,i){for(let a of e.children)J(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 si(e,t,n,r,a,o,s){let c=yo(e.style,`y`,n),l=hi(e).map(i=>{let a=xo(i.style.margin,t),o=Math.max(0,t-(a.left??0)-(a.right??0)),c=fi(i,e)===`stretch`;Y(i,o,r&&Number.isFinite(n)?n:void 0,0,0,c?`fill`:`shrink`,s);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?$e(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:Math.max(f??Co(i.style.minHeight,l)??0,vi(i,`y`,o)),max:Co(i.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=r?m:Math.max(m,p),g=l.some(e=>e.margin.top===null||e.margin.bottom===null),_=f&&!(f&&g&&p<=h)?di(l,h):l.map(e=>Math.max(0,fo(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=fi(r.node,e)===`stretch`;Y(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=K(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=ui(`start`,_,0)}else C=ui(_i(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+li(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=[],r=l.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-T,a=r[e].y-T-i;a>0&&n.push({bandStart:i,bandSize:a,start:0,end:t})}e.decorationRuns=er({glyphs:i(e.style.glyphSet),ruleX:null,ruleY:e.style.ruleY,vertical:[],horizontal:ii(n,e.style.ruleInset),contentWidth:t,contentHeight:O,border:a,borderStyle:e.style.borderStyle,borderWeight:e.style.borderWeight,borderColor:e.style.borderColor,padding:o})}return oi(e,a,o,t,O),O}function ci(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+pi(i,n,e.localRect.height)}function li(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+pi(i,n,e.localRect.width)}function ui(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=K(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 di(e,t){let n=e.length,r=(t,n)=>Math.max(0,fo(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=K(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 K(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 fi(e,t){return e.style.alignSelf===`auto`?t.style.alignItems:e.style.alignSelf}function pi(e,t,n){return e===`center`?Math.max(0,Math.floor((t-n)/2)):e===`end`?Math.max(0,t-n):0}function mi(e,t,n){let r=e.style.flexBasis,i=e.style.width;return r!==void 0&&r.kind!==`auto`?Fo(r,t,e,n):i!==void 0&&i.kind!==`auto`?Fo(i,t,e,n):Io(e,n)}function hi(e){let t=e.children.filter(e=>!J(e.style)).sort((e,t)=>e.style.order-t.style.order);return e.style.flexReverse&&t.reverse(),t}function gi(e){return e.wrapReverse?e.alignContent===`start`?`end`:e.alignContent===`end`?`start`:e.alignContent:e.alignContent}function _i(e){let t=e.justifyContent===`stretch`?`start`:e.justifyContent;return e.flexReverse?t===`start`?`end`:t===`end`?`start`:t:t}function vi(e,t,n){let{border:r,padding:i}=e.style,a=at(e.style);return bo(r,{top:X(i.top,n),right:X(i.right,n)+a.right,bottom:X(i.bottom,n)+a.bottom,left:X(i.left,n)},t)}function yi(e,t,n){return e.style.minWidth===`auto`?e.style.overflow.x===`visible`?zo(e,n):0:Co(e.style.minWidth,t)??0}function bi(e,t,n,r,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:yo(s,`x`,t),f=u?u.gap:yo(s,`y`,c),p=ki(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=>xo(e.style.margin,t)),C=m.map(e=>e.style.justifySelf===`auto`?s.justifyItems:e.style.justifySelf),w=m.map(xi),T=l?Ci(l):Wi(v,b,wi(p,w,S,o),t,d,s.justifyContent===`stretch`),E=l?l.positions:Gi(T,t,s.justifyContent),D=[];for(let e=0;e<m.length;e++){let t=m[e],n=h.items[e],r=qi(E,T.sizes,n.col.start,n.col.span),i=S[e],a=Math.max(0,r-Ni(i)),s=w[e];if(s.cols||s.rows){let e=s.cols?Si(E,T,d,n.col.start,n.col.span,q(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?Y(t,r,void 0,0,0,`fill`,o,{width:a}):c===`stretch`&&!l&&!u?Y(t,r,void 0,0,0,`fill`,o,{width:fo(a,t.style.minWidth===`auto`?t.style.overflow.x===`visible`?zo(t,o):0:Co(t.style.minWidth,r)??0,wo(t.style.maxWidth,r,t,o))}):Y(t,a,void 0,0,0,`shrink`,o),D.push(t.localRect.width)}let O=u?Ci(u):Wi(y,x,Ti(p,w,S),c??`max-content`,f,s.alignContent===`stretch`),k=Ki(O),A=u?u.positions:Gi(O,c??k,s.alignContent),j=r.left+a.left,ee=r.top+a.top;for(let t=0;t<m.length;t++){let n=m[t],r=h.items[t],i=S[t],a=qi(E,T.sizes,r.col.start,r.col.span),s=qi(A,O.sizes,r.row.start,r.row.span),c=Math.max(0,s-Pi(i)),l=fi(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=Si(A,O,f,r.row.start,r.row.span,q(n,`rows`,i,a)),Y(n,a,s,0,0,`fill`,o,{width:D[t],height:c});else if(l===`stretch`&&!u&&!d){let e=fo(c,n.style.minHeight===`auto`?n.style.overflow.y===`visible`?n.localRect.height:0:Co(n.style.minHeight,s)??0,Co(n.style.maxHeight,s));e!==n.localRect.height&&Y(n,a,s,0,0,`fill`,o,{width:D[t],height:e})}else n.style.height?.kind===`percent`&&Y(n,a,s,0,0,`fill`,o,{width:D[t]});n.localRect={...n.localRect,x:j+E[r.col.start]+Ji(C[t],i.left,i.right,a,n.localRect.width),y:ee+A[r.row.start]+Ji(l,i.top,i.bottom,s,n.localRect.height)}}let te=Number.isFinite(n)?Math.max(n,k):k;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 $n(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,A,O.sizes,l,t=>c[e]?.[t]??!1,t=>c[e+1]?.[t]??!1)),m=f(A,O.sizes,e=>d(e,E,T.sizes,u,t=>c[t]?.[e]??!1,t=>c[t]?.[e+1]??!1));e.decorationRuns=er({glyphs:i(s.glyphSet),ruleX:s.ruleX,ruleY:s.ruleY,vertical:p,horizontal:m,contentWidth:t,contentHeight:te,border:r,borderStyle:s.borderStyle,borderWeight:s.borderWeight,borderColor:s.borderColor,padding:a})}let M=e.children.filter(e=>J(e.style));if(M.length>0){let e=J(s)?{x:r.left,y:r.top,width:a.left+t+a.right,height:a.top+te+a.bottom}:{x:j,y:ee,width:t,height:te};for(let n of M){let r=Di(n.style.gridColumnStart,n.style.gridColumnEnd,g,h.colOrigin,E,T.sizes,-a.left,t+a.right),i=Di(n.style.gridRowStart,n.style.gridRowEnd,_,h.rowOrigin,A,O.sizes,-a.top,te+a.bottom);n.staticSlot={kind:`grid`,area:{x:j+r.start,y:ee+i.start,width:Math.max(0,r.end-r.start),height:Math.max(0,i.end-i.start)},staticArea:e}}}return te}function xi(e){let t=e.style.display===`grid`;return{cols:t&&e.style.gridTemplateColumns.kind===`subgrid`,rows:t&&e.style.gridTemplateRows.kind===`subgrid`}}function Si(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 Ci(e){return{sizes:e.sizes,gapBefore:e.gapBefore,limits:e.sizes}}function wi(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=q(a,`cols`,c,0);for(let t of Ei(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:Ro(a,`min`,r)+Ni(c),max:Ro(a,`max`,r)+Ni(c)})}),i}function Ti(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=q(i,`rows`,s,0);for(let t of Ei(i,`rows`,o,e))r.push({...t,start:t.start+o.row.start});return}let c=i.localRect.height+Pi(s),l=i.style.minHeight===`auto`&&i.style.overflow.y!==`visible`?Pi(s):c;r.push({start:o.row.start,span:o.row.span,min:l,max:c})}),r}function q(e,t,n,r){let{border:i,padding:a}=e.style;return t===`cols`?{start:(n.left??0)+i.left+X(a.left,r),end:(n.right??0)+i.right+X(a.right,r)}:{start:(n.top??0)+i.top+X(a.top,r),end:(n.bottom??0)+i.bottom+X(a.bottom,r)}}function Ei(e,t,n,r,i){let a=t===`cols`?n.col.span:n.row.span,o=ki(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=xo(e.style.margin,0);if(xi(e)[t]){let n=q(e,t,p,0),a=Ei(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:Ro(e,`min`,i)+Ni(p)+f,max:Ro(e,`max`,i)+Ni(p)+f});else{let t=e.localRect.height+Pi(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 Di(e,t,n,r,i,a,o,s){let c=Bi(e,`start`,n),l=Bi(t,`end`,n);c!==null&&l!==null?c>l?[c,l]=[l,c]:c===l&&(l=null):c!==null&&t.kind===`span`?l=Vi(c,t,1,n):l!==null&&e.kind===`span`&&(c=Vi(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 Oi(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=ki(e,void 0,void 0,i,0,e.subgrid?{col:e.subgrid.colSpan,row:e.subgrid.rowSpan}:void 0),o=a.children.map(xi),s=a.children.map(e=>xo(e.style.margin,0)),c=Wi(a.colTracks,a.colCollapsed,wi(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 ki(e,t,n,r,i,a){let o=e.style,s=Mi(e),c=o.gridTemplateColumns.kind===`subgrid`&&a!==void 0,l=o.gridTemplateRows.kind===`subgrid`&&a!==void 0,u=c?Ai(a.col):Fi(o.gridTemplateColumns,t,r),d=l?Ai(a.row):Fi(o.gridTemplateRows,n,i),f=o.gridTemplateAreas,p=[...u.tracks],m=[...d.tracks];if(f){c||Li(p,u.lineNames,f.columns,o.gridAutoColumns),l||Li(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},_=Ui(s.map(e=>({col:Hi(e.style.gridColumnStart,e.style.gridColumnEnd,h),row:Hi(e.style.gridRowStart,e.style.gridRowEnd,g)})),p.length,m.length,o.gridAutoFlow);return c&&ji(_,`col`,p.length),l&&ji(_,`row`,m.length),{children:s,placed:_,colLines:h,rowLines:g,colTracks:Ri(p,_.colOrigin,_.colCount,o.gridAutoColumns),rowTracks:Ri(m,_.rowOrigin,_.rowCount,o.gridAutoRows),colCollapsed:zi(u,_.colOrigin,_.colCount,_.items.map(e=>e.col)),rowCollapsed:zi(d,_.rowOrigin,_.rowCount,_.items.map(e=>e.row))}}function Ai(e){return{tracks:Array.from({length:e},()=>ct()),lineNames:Array.from({length:e+1},()=>[])}}function ji(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 Mi(e){return e.children.filter(e=>!J(e.style)&&!e.inlineBox).sort((e,t)=>e.style.order-t.style.order)}function Ni(e){return(e.left??0)+(e.right??0)}function Pi(e){return(e.top??0)+(e.bottom??0)}function Fi(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=Ii(n.min,t)??Ii(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 Ii(e,t){if(e.kind===`cells`)return e.value;if(e.kind===`percent`&&t!==void 0)return $e(e.value,t);if(e.kind===`math`){let n=[];for(let r of e.args){let e=Ii(r,t);if(e===void 0)return;n.push(e)}return e.fn===`min`?Math.min(...n):Math.max(...n)}}function Li(e,t,n,r){for(let i=e.length;i<n;i++)e.push(r[(i-e.length)%r.length]),t.push([])}function Ri(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 zi(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 Bi(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 Vi(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 Hi(e,t,n){let r=Bi(e,`start`,n),i=Bi(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`?Vi(r,t,1,n):r+1)-r};if(i!==null){let t=e.kind===`span`?Vi(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 Ui(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 Wi(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=Ii(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=Ii(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=K(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=K(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=K(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,Ze(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=K(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=K(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=K(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 Gi(e,t,n){let{sizes:r,gapBefore:i}=e,a=Math.max(0,t-Ki(e)),o=ui(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 Ki(e){return e.sizes.reduce((e,t)=>e+t,0)+e.gapBefore.reduce((e,t)=>e+t,0)}function qi(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 Ji(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+pi(e,r,i+a+o)}function Yi(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 Xi(e,t,n){let r=Yi(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 Zi(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 Qi(e,t){return e===void 0?t:t===void 0?e:Math.min(e,t)}function $i(e,t,n){for(;e<t;){let r=e+t>>1;n(r)?t=r:e=r+1}return e}function ea(e,t,n){let r=Yi(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 ta(e,t,n){return e===`all`?!0:e===`around`?t||n:t&&n}function na(e,t,n,r){let i=_o(e,Math.max(1,t.width-e.style.tracking)),{heights:a,textOffsets:o}=vo(e,i),s=e.style.lineGap,c=ia(a.map(e=>e+s)),l;if(e.style.columnFill===`auto`&&r!==void 0)l=Math.max(1,r);else{let e=$i(c.reduce((e,t)=>Math.max(e,t.rows-s),1),Math.max(1,c.reduce((e,t)=>e+t.rows,0)-s),e=>ra(c,s,e).columns<=t.count);l=r===void 0?e:Math.max(1,Math.min(e,r))}let u=ra(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 ra(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 ia(e){return e.map(e=>({rows:e,pre:0,post:0,forced:!1,lines:1}))}var aa=null;function oa(){if(aa!==null)return aa;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(),aa=!(n.width>0&&n.top-t>=10),aa}function sa(e,t,n,r){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++)ta(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=er({glyphs:i(a.glyphSet),ruleX:a.ruleX,ruleY:null,vertical:ii(c,a.ruleInset),horizontal:[],contentWidth:o,contentHeight:t.totalRows,border:n,borderStyle:a.borderStyle,borderWeight:a.borderWeight,borderColor:a.borderColor,padding:r})}function ca(e,t){let n=e.style,r=n.padding;return e.text!==``&&e.children.length===0&&n.display===`block`&&n.float===`none`&&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 la(e,t,n,r,i,a,o){let s=e.style,c=yo(s,`x`,n),l=ea(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:_o(e,Math.max(1,l.width-e.style.tracking)),margin:xo(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:ko(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=$i(1,Math.max(1,ra(a,u,1/0,_).maxUsed),e=>ra(a,u,e,_).columns<=l.count);S=r===void 0?e:Math.max(1,Math.min(e,r))}let C=ra(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=xo(i.style.margin,p),t=(e.left??0)+(e.right??0);Y(i,Math.max(0,p-t),void 0,0,0,`fill`,o);let r=Oo(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(!J(t.style))continue;let e=xo(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 ua(e,t,n,r,a,o,s){let c=e.style,l=Qi(n,r),u=e.children.filter(e=>!J(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=>ca(e,c))&&(d.length===u.length||c.columnFill===`balance`&&l===void 0&&(oa()||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 la(e,u,t,l,a,o,s);let p=yo(c,`x`,t),m=Xi(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:ko(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:ko(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);Y(e,Math.max(0,t-r),n,0,0,`fill`,s)}e.localRect={...e.localRect,x:b+_(r)+Oo(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=$i(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);ta(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(J(r.style)){T.push({child:r,margin:xo(r.style.margin,t),index:w.length});continue}if(r.style.columnSpan){O(),E=!1;let e=xo(r.style.margin,t),i=(e.left??0)+(e.right??0);Y(r,Math.max(0,t-i),n,0,0,`fill`,s),C+=e.top??0,r.localRect={...r.localRect,x:b+Oo(e,t,r.localRect.width),y:x+C},C+=r.localRect.height+(e.bottom??0);continue}let e=xo(r.style.margin,y),i=(e.left??0)+(e.right??0);Y(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=er({glyphs:i(c.glyphSet),ruleX:c.ruleX,ruleY:null,vertical:ii(S,c.ruleInset),horizontal:[],contentWidth:t,contentHeight:C,border:a,borderStyle:c.borderStyle,borderWeight:c.borderWeight,borderColor:c.borderColor,padding:o})),C}function da(e,t){e.hidden.push(t),t.style.tableRole!==`column`&&t.style.tableRole!==`column-group`&&ee(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 fa(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 pa(e,t,n){let r=(t,r)=>{let i=t.style.width,a=i&&i.kind!==`auto`&&i.kind!==`percent`?Fo(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,ma(t.source));return}let i=t.children.filter(e=>e.style.tableRole===`column`);if(i.length===0)r(t,ma(t.source));else for(let e of i)r(e,ma(e.source));for(let n of t.children)n.style.tableRole!==`column`&&da(e,n)}function ma(e){let t=Number.parseInt(e.getAttribute(`span`)??``,10);return Number.isNaN(t)?1:Math.min(1e3,Math.max(1,t))}function ha(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(J(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)J(e.style)||(e.style.tableRole===`row`?t.push({row:e,group:o}):da(n,e))}else e===`caption`?n.caption===null?n.caption=o:da(n,o):e===`column`||e===`column-group`?(pa(n,o,t),n.hidden.push(o)):da(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 ga(n),n}function ga(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(J(a.style))continue;if(a.style.tableRole!==`cell`){da(e,a);continue}for(;(t[i]??0)>n;)i++;let o=fa(a.source,`colspan`),s=fa(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 _a(e,t,n){let r=e.style,i=zo(e,n),a;if(t===`min`)a=i;else{let t=r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`?Fo(r.width,0,e,n):void 0;a=t===void 0?Io(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,fo(a,o,s))}function va(e){let t=e.style.width;return t&&t.kind===`percent`?t.value:void 0}function ya(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],_a(t.node,`min`,n)),a[t.col]=Math.max(a[t.col],_a(t.node,`max`,n));let e=va(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=Ta(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=_a(e.node,t,n)-u;if(d<=0)continue;let f=K(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 ba(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=K(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=K(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=K(n.some(e=>e>0)?n:n.map(()=>1),o);t.forEach((e,t)=>r[e]+=i[t])}}return r}function xa(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=Fo(e.width,0,r.node,n)),a===void 0)continue;let o=K(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=K(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)}function Sa(e,t){for(let{border:t,side:n}of e)if(t?.hidden[n])return null;let n=null;for(let{border:t,side:r}of e){if(!t||t.width[r]<=0)continue;let e=t.weight[r],i=t.style[r];(n===null||e>n.weight||e===n.weight&&nr[i]>nr[n.style])&&(n={weight:e,style:i,color:t.color[r]})}if(!n)return null;let{style:r,weight:i}=n;return{...n,width:w(r,i,t).cells,weight:T(r,i,t)}}function Ca(e,t){let n=t.columnCount,r=t.rows.length,a=e.style.borderCollapse,o=i(e.style.glyphSet),s={collapsed:a,vLines:Array.from({length:n+1},()=>0),hLines:Array.from({length:r+1},()=>0),spacingX:a?0:e.style.borderSpacingX,spacingY:a?0:e.style.borderSpacingY,vSegments:[],hSegments:[]};if(!a||n===0||r===0)return s;let c=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++)c[t][n]=e;let l=e.style.latticeBorder;for(let e=0;e<=n;e++){let i=[];for(let a=0;a<r;a++){let r=e>0?c[a][e-1]:void 0,s=e<n?c[a][e]:void 0;if(r!==void 0&&r===s){i.push(null);continue}let u=[];r&&r.col+r.colSpan===e&&u.push({border:r.node.style.latticeBorder,side:`right`}),s&&s.col===e&&u.push({border:s.node.style.latticeBorder,side:`left`});let d=e===0?`left`:e===n?`right`:null;if(d){u.push({border:t.rows[a].style.latticeBorder,side:d});let e=t.rowGroups[a];e&&u.push({border:e.style.latticeBorder,side:d}),u.push({border:l,side:d})}i.push(Sa(u,o))}s.vSegments.push(i),s.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?c[e-1][a]:void 0,s=e<r?c[e][a]:void 0;if(n!==void 0&&n===s){i.push(null);continue}let u=[];n&&n.row+n.rowSpan===e&&u.push({border:n.node.style.latticeBorder,side:`bottom`}),s&&s.row===e&&u.push({border:s.node.style.latticeBorder,side:`top`}),e>0&&u.push({border:t.rows[e-1].style.latticeBorder,side:`bottom`}),e<r&&u.push({border:t.rows[e].style.latticeBorder,side:`top`});let d=e>0?t.rowGroups[e-1]:null,f=e<r?t.rowGroups[e]:null;d&&d!==f&&u.push({border:d.style.latticeBorder,side:`bottom`}),f&&f!==d&&u.push({border:f.style.latticeBorder,side:`top`}),e===0&&u.push({border:l,side:`top`}),e===r&&u.push({border:l,side:`bottom`}),i.push(Sa(u,o))}s.hSegments.push(i),s.hLines[e]=i.reduce((e,t)=>Math.max(e,t?.width??0),0)}return s}function wa(e,t){return e.collapsed?e.vLines.reduce((e,t)=>e+t,0):(t+1)*e.spacingX}function Ta(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 Ea(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 Da(e,t){let n=t.tableData.get(e);if(n)return n;let r=ha(e,t),i=Ca(e,r),a={structure:r,chrome:i,bounds:ya(r,i,t),chromeX:wa(i,r.columnCount)};return t.tableData.set(e,a),a}function Oa(e,t){let{structure:n,bounds:r,chromeX:i}=Da(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,zo(n.caption,t)),o=Math.max(o,Io(n.caption,t))),{min:a,max:o}}function ka(e,t,n){let r=e.style,{bounds:i,chromeX:a}=Da(e,n),{min:o,max:s}=Oa(e,n),c=r.border.left+r.border.right+X(r.padding.left,t)+X(r.padding.right,t)+at(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 Aa(e,t,n,r,a,o){let{structure:s,chrome:c,bounds:l}=Da(e,o),u=s.columnCount,d=s.rows.length,f=r.left+a.left,p=r.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-wa(c,u)),h=e.style,g=h.tableLayout===`fixed`&&h.width!==void 0&&h.width.kind!==`auto`?xa(s,m,o):ba(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&&(Y(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)+Ta(c,e.col,t);S.set(e,n),Y(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?$e(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)+Ea(c,e.row,t),r=x.get(e)-n;if(r<=0)continue;let i=K(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=K(n.map(()=>1),e);n.forEach((e,t)=>E[e]+=r[t])}}let k=s.caption&&e.style.captionSide===`top`?b:0,A=[],j=k;for(let e=0;e<d;e++)j+=c.collapsed?c.hLines[e]:c.spacingY,A.push(j),j+=E[e];let ee=d>0?j+(c.collapsed?c.hLines[d]??0:c.spacingY):k,te=new Map;for(let e=0;e<d;e++){let t=s.rowGroups[e];t&&!te.has(t)&&te.set(t,A[e])}for(let[e,t]of te){let n=t;for(let t=0;t<d;t++)s.rowGroups[t]===e&&(n=A[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?te.get(n):void 0;t.localRect={x:r===void 0?f:0,y:r===void 0?p+A[e]:A[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)+Ea(c,e.row,t);e.node.children.some(e=>!J(e.style)&&e.style.height?.kind===`percent`)&&n!==x.get(e)&&Y(e.node,S.get(e),n,0,0,`fill`,o,{width:S.get(e),height:n}),ja(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)J(t.style)&&(t.staticSlot={kind:`block`,x:f,y:p});if(s.caption&&e.style.captionSide===`bottom`&&(s.caption.localRect.y=p+ee),c.collapsed&&u>0&&d>0){let t=Array.from({length:d},()=>Array.from({length:u},()=>void 0));for(let e of s.cells){let n={node:e.node,row:e.rowNode,group:s.rowGroups[e.row]};for(let r=e.row;r<e.row+e.rowSpan;r++)for(let i=e.col;i<e.col+e.colSpan;i++)t[r][i]=n}e.lattice={vLines:c.vLines,hLines:c.hLines,vSegments:c.vSegments,hSegments:c.hSegments,widths:g,rowHeights:E,colX:_,rowY:A,contentLeft:f,contentTop:p,cells:t,set:i(e.style.glyphSet)}}return e.style.captionSide===`bottom`?ee+b:ee}function ja(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=>!J(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||(J(t.style)?t.staticSlot?.kind===`block`&&(t.staticSlot.y+=r):t.localRect.y+=r)}function Ma(e){return e.position===`absolute`||e.position===`fixed`?`absolute`:e.position===`relative`?`relative`:`static`}function Na(e,t,n,r,i,a=new Map){for(let o of e.children){let s=Ma(o.style);if(s===`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;o.localRect.x+=Pa(o.style.insets.left,o.style.insets.right,t),o.localRect.y+=Pa(o.style.insets.top,o.style.insets.bottom,n)}else s===`absolute`&&Ra(o,e,t,n,r,i,a);Fa(o,t+o.localRect.x,n+o.localRect.y,r,a),Na(o,t+o.localRect.x,n+o.localRect.y,[...r,{node:o,absX:t+o.localRect.x,absY:n+o.localRect.y}],i,a)}}function Pa(e,t,n){return e===null?t===null?0:-X(t,n):X(e,n)}function Fa(e,t,n,r,i){let a=e.inlineElements?.some(e=>e.anchorNames.length>0)??!1;if(e.style.anchorNames.length===0&&!a)return;let o=Ia(r),{width:s,height:c}=e.localRect;for(let r of e.style.anchorNames)i.set(r,{rect:{x:t,y:n,width:s,height:c},scrollers:o});if(!a)return;let l=new Map;for(let t of e.inlineElements)t.anchorNames.length>0&&!l.has(t.element)&&l.set(t.element,t.anchorNames);for(let{element:r,rect:a}of ms(e,t,n)){let e=l.get(r);if(e!==void 0){for(let t of e)i.set(t,{rect:a,scrollers:o});l.delete(r)}}}function Ia(e){return e.map(e=>e.node).filter(e=>e.scroll)}function La(e,t){if(!t)for(let t=e.length-1;t>0;t--){let n=e[t];if(!so(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 Ra(e,t,n,r,i,a,o){let s=e.style,c=s.position===`fixed`,l=e.staticSlot,u=l?.kind===`grid`&&!c&&so(t.style)?{x:n+l.area.x,y:r+l.area.y,width:l.area.width,height:l.area.height}:La(i,c),d=s.positionAnchor===null?void 0:o.get(s.positionAnchor);if(s.positionArea&&d){let{rect:t,movers:o}=Ba(d,c?[]:Ia(i));if(o.length>0){let e=i[0].node;e.anchorScrollers??=new Set;for(let t of o)e.anchorScrollers.add(t.source)}Ha(e,n,r,u,t,s.positionArea,a)}else za(e,t,n,r,u,a);c&&(e.hostRect={x:n+e.localRect.x,y:r+e.localRect.y})}function za(e,t,n,r,i,a){let o=e.style;delete e.anchorArea;let s=o.insets.left===null?null:X(o.insets.left,i.width),c=o.insets.right===null?null:X(o.insets.right,i.width),l=o.insets.top===null?null:X(o.insets.top,i.height),u=o.insets.bottom===null?null:X(o.insets.bottom,i.height),d=xo(o.margin,i.width),f=d.left??0,p=d.right??0,m=d.top??0,h=d.bottom??0,g=o.height===void 0||o.height.kind===`auto`,_={width:Va(e,i.width,s,c,f+p,a)};l!==null&&u!==null&&g&&(_.height=fo(Math.max(0,i.height-l-u-m-h),Co(o.minHeight,i.height)??0,Co(o.maxHeight,i.height))),Y(e,i.width,i.height,0,0,`shrink`,a,_);let v=e.localRect.width,y=e.localRect.height,b;if(s!==null&&c!==null){let e=Math.max(0,i.width-s-c-v-f-p),t=d.left===null&&d.right===null;b=i.x+s+f+(t?Math.floor(e/2):d.left===null?e:0)}else b=s===null?c===null?Qa(e,t,n,v):i.x+i.width-c-v-p:i.x+s+f;let x;if(l!==null&&u!==null){let e=Math.max(0,i.height-l-u-y-m-h),t=d.top===null&&d.bottom===null;x=i.y+l+m+(t?Math.floor(e/2):d.top===null?e:0)}else x=l===null?u===null?$a(e,t,r,y):i.y+i.height-u-y-h:i.y+l+m;e.localRect={...e.localRect,x:b-n,y:x-r}}function Ba(e,t){let n=0,r=0,i=[];for(let a of e.scrollers)t.includes(a)||(n-=a.scroll.x,r-=a.scroll.y,i.push(a));for(let a of t)e.scrollers.includes(a)||(n+=a.scroll.x,r+=a.scroll.y,i.push(a));return{rect:{...e.rect,x:e.rect.x+n,y:e.rect.y+r},movers:i}}function Va(e,t,n,r,i,a){let o=e.style,s=wo(o.minWidth,t,e,a)??0,c=wo(o.maxWidth,t,e,a);if(o.width!==void 0&&o.width.kind!==`auto`)return fo(Fo(o.width,t,e,a),s,c);if(n!==null&&r!==null)return fo(Math.max(0,t-n-r-i),s,c);let l=Math.max(0,t-(n??0)-(r??0)-i);return fo(Math.min(Io(e,a),Math.max(zo(e,a),l)),s,c)}function Ha(e,t,n,r,i,a,o){let s=e.style,c=[{area:a},...s.positionTryFallbacks.map(e=>`flipBlock`in e?{area:qa(a,e),tactic:e}:{area:e})],l=({area:a,tactic:c})=>{let[l,u]=Wa(a.x,r.x,r.width,i.x,i.width),[d,f]=Wa(a.y,r.y,r.height,i.y,i.height),p={x:l,y:d,width:u,height:f},m=xo(s.margin,p.width),h=c?Ua(m,c):m,g=(h.left??0)+(h.right??0),_=(h.top??0)+(h.bottom??0);Y(e,p.width,p.height,0,0,`shrink`,o,{width:Va(e,p.width,null,null,g,o)});let{width:v,height:y}=e.localRect,b=Ga(a.x,p.x,p.width,i.x,i.width,v,h.left??0,h.right??0,s.anchorCenter.x?`anchor-center`:s.justifySelf),x=Ga(a.y,p.y,p.height,i.y,i.height,y,h.top??0,h.bottom??0,s.anchorCenter.y?`anchor-center`:s.alignSelf);return e.localRect={...e.localRect,x:b-t,y:x-n},e.anchorArea=a,v+g<=p.width&&y+_<=p.height};for(let e of c)if(l(e))return;l(c[0])}function Ua(e,t){let{top:n,right:r,bottom:i,left:a}=e;return t.flipBlock&&([n,i]=[i,n]),t.flipInline&&([a,r]=[r,a]),t.flipStart&&([n,r,i,a]=[a,i,r,n]),{top:n,right:r,bottom:i,left:a}}function Wa(e,t,n,r,i){let a=t+n,o=r+i;switch(e){case`start`:return[t,Math.max(0,r-t)];case`end`:return[o,Math.max(0,a-o)];case`center`:return[r,i];case`span-start`:return[t,Math.max(0,o-t)];case`span-end`:return[r,Math.max(0,a-r)];case`span-all`:return[t,n]}}function Ga(e,t,n,r,i,a,o,s,c){let l=t+o,u=t+n-s-a;if(c===`start`)return l;if(c===`end`)return u;if(c===`center`)return t+Math.floor((n-a-o-s)/2)+o;if(c!==`anchor-center`){if(e===`start`||e===`span-start`)return u;if(e===`end`||e===`span-end`)return l}let d=r+Math.floor((i-a-o-s)/2)+o;return Math.max(l,Math.min(d,u))}var Ka={start:`end`,end:`start`,center:`center`,"span-start":`span-end`,"span-end":`span-start`,"span-all":`span-all`};function qa(e,t){let{x:n,y:r}=e;return t.flipBlock&&(r=Ka[r]),t.flipInline&&(n=Ka[n]),t.flipStart&&([n,r]=[r,n]),{x:n,y:r}}function Ja(e,t,n){return ui(e,[n],Math.max(0,t-n))[0]}function Ya(e,t,n,r){return pi(fi(e,t),n,r)}function Xa(e,t,n,r,i){let a=xo(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?Ja(_i(t.style),c,u):Ya(e,t,c,u))+o}function Za(e,t,n,r,i){let a=xo(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,fi(e,t)];return pi(u,l,i+s+c)+s}function Qa(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+Za(e,t,i.staticArea,`x`,r):n+i.originX+Xa(e,t,i,`x`,r)}function $a(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+Za(e,t,i.staticArea,`y`,r):n+i.originY+Xa(e,t,i,`y`,r)}function eo(e,t,n,r=1){let i=0,a=t;for(let t of e)n+r<=t.y||n>=t.y+t.height||(t.side===`left`?i=Math.max(i,t.x+t.width):a=Math.min(a,t.x));return{x:i,width:Math.max(0,a-i)}}function to(e,t,n,r,i,a){let o=r;for(let t of e)o=Math.max(o,t.y);return no(e,t,n,o,i,a)}function no(e,t,n,r,i,a){let o=[r,...e.map(e=>e.y+e.height).filter(e=>e>r)].sort((e,t)=>e-t),s=o.find(n=>eo(e,t,n,a).width>=i)??o[o.length-1],c=eo(e,t,s,a);return{x:n===`left`?c.x:Math.max(c.x,c.x+c.width-i),y:s}}function ro(e,t,n){if(t===`none`)return n;let r=n;for(let n of e)(t===`both`||n.side===t)&&(r=Math.max(r,n.y+n.height));return r}function io(e){return ro(e,`both`,0)}function ao(e,t,n){let r=co();Y(e,t,void 0,0,0,`fill`,r),n?.(e),Na(e,0,0,[{node:e,absX:0,absY:0}],r);let i=e.localRect.height,a=jo(e),{overflow:o}=e.style;return o.x===`visible`&&(e.localRect.width=Math.max(e.localRect.width,a.x)),o.y===`visible`&&(e.localRect.height=Math.max(i,a.y)),{height:i}}function J(e){return e.position===`absolute`||e.position===`fixed`}function oo(e){let{display:t,overflow:n}=e.style;return t!==`block`||n.x!==`visible`||n.y!==`visible`||e.children.some(e=>!e.inlineBox&&!J(e.style))}function so(e){return e.position!==`static`}function co(){return{maxContent:new WeakMap,minContent:new WeakMap,gridIntrinsic:new WeakMap,tableData:new WeakMap}}function Y(e,t,n,r,i,a,o,s,c){let l=e.style,u=s?.height;delete e.decorationRuns,delete e.lattice,delete e.latticeRuns,delete e.multicolGeometry,delete e.multicolFlow,delete e.multicolFlowSpan,delete e.flow,delete e.textExtent,delete e.lineBands;let d=wo(l.minWidth,t,e,o)??0,f=wo(l.maxWidth,t,e,o),p=Co(l.minHeight,n)??0,m=Co(l.maxHeight,n),h=at(l),g=it(l);s?.gutter?.right&&(h.right=g.right),s?.gutter?.bottom&&(h.bottom=g.bottom);let _={top:X(l.padding.top,t),right:X(l.padding.right,t)+h.right,bottom:X(l.padding.bottom,t)+h.bottom,left:X(l.padding.left,t)};e.resolvedPadding=_;let v=Math.max(s?.width??fo(Ao(l,t,a,e,o),d,f),bo(l.border,_,`x`)),y=Po(l,n),b=Vo(v,u??y??(p>0?p:void 0)??1/0,l.border,_),x=u!==void 0||y!==void 0,S=m===void 0?void 0:Math.max(0,m-l.border.top-l.border.bottom-_.top-_.bottom),C=uo(e),w=(t,n)=>{let r=n&&Number.isFinite(t)?t:void 0;if(C)return lo(e,b.width,t,r,S,_,o,c);if(l.display===`flex`&&l.flexDirection===`row`)return ai(e,b.width,t,r,l.border,_,o);if(l.display===`flex`)return si(e,b.width,t,n,l.border,_,o);if(l.display===`grid`)return bi(e,b.width,t,l.border,_,o);if(l.display===`table`)return Aa(e,b.width,r,l.border,_,o);if(l.display===`multicol`){for(let t of e.children)t.style.float!==`none`&&ee(t.source,`float on a multicol container's own child is ignored — it lays out as a column item; float it inside a child instead (specs/float.md).`);return ua(e,b.width,r,S,l.border,_,o)}return To(e,b.width,r,l.border,_,o)},T=w(b.height,x);if(!C&&(l.display===`flex`||l.display===`grid`)&&!x&&m!==void 0){let e=l.border.top+l.border.bottom+_.top+_.bottom,t=fo(T+e,p,m)-e;t<T&&(T=w(Math.max(0,t),!0))}let E=T+l.border.top+l.border.bottom+_.top+_.bottom,D=u??y??E;e.unclampedHeight=D,e.naturalContentHeight=E;let O=Math.max(fo(D,p,m),bo(l.border,_,`y`)),k=e.multicolGeometry;if(k){let t=O-l.border.top-l.border.bottom-_.top-_.bottom;t>k.totalRows&&(_.bottom+=t-k.totalRows),sa(e,k,l.border,_)}if(e.localRect={x:r,y:i,width:v,height:O},nt(l.overflow.x)||nt(l.overflow.y)){let c=jo(e),u=Math.max(0,c.x-l.border.left-_.left),d=Math.max(0,c.y-l.border.top-_.top),f=Math.max(0,v-l.border.left-l.border.right-_.left-_.right),p=Math.max(0,O-l.border.top-l.border.bottom-_.top-_.bottom);if(e.scrollRange={sizeX:u,sizeY:d,maxX:nt(l.overflow.x)?Math.max(0,u-f):0,maxY:nt(l.overflow.y)?Math.max(0,d-p):0},l.scrollbarWidth!==`none`){let c=s?.gutter??{right:!1,bottom:!1},u=c.right||l.overflow.y===`auto`&&e.scrollRange.maxY>0,d=c.bottom||l.overflow.x===`auto`&&e.scrollRange.maxX>0;if(u!==c.right||d!==c.bottom){Y(e,t,n,r,i,a,o,{...s,gutter:{right:u,bottom:d}});return}}e.scrollGutterCells={right:h.right,bottom:h.bottom}}else delete e.scrollRange,delete e.scrollGutterCells}function lo(e,t,n,r,i,a,o,s){let c=e.style,l;if(e.text){let u=rt(e);Zr(e.text,(n,r)=>{let i=u[r];Y(i,t,void 0,0,0,`shrink`,o),e.advances[n]=Math.max(1,i.localRect.width)});let d;if(c.display===`multicol`){let n=yo(c,`x`,t),o=ea(c,t,n);a.right+=o.leftover;let s=na(e,o,n,Qi(r,i));e.multicolGeometry=s,d=s}else d=mo(e,t,s),d.bands&&(e.lineBands=d.bands);l=d.totalRows;let f=d.textY.at(-1);f!==void 0&&(e.baselineRow=c.border.top+a.top+f);let p=e.lineBands;e.textExtent={width:d.spans.reduce((t,n,r)=>Math.max(t,(p?.[r]?.x??0)+Jr(e.text,n.start,n.end,e.advances,c.tracking)),0),rows:d.totalRows};let m=po(e,d,t,n,a);if(u.length>0){let t=e=>d.spans.findIndex(t=>e>=t.start&&e<t.end);Zr(e.text,(n,r)=>{let i=t(n);if(i===-1)return;let o=d.spans[i];u[r].localRect={...u[r].localRect,x:c.border.left+a.left+ho(e,i,o,m).x+qr(o.start,n,e.advances),y:c.border.top+a.top+d.lineY[i]}})}}else l=e.intrinsicHeight;for(let n of e.children){if(n.inlineBox)continue;let e=xo(n.style.margin,t);n.staticSlot={kind:`block`,x:c.border.left+a.left+(e.left??0),y:c.border.top+a.top+(e.top??0)}}return l}function uo(e){return e.children.some(e=>!J(e.style)&&!e.inlineBox)?!1:e.text!==``||e.style.display!==`flex`&&e.style.display!==`grid`}function fo(e,t,n){return Math.max(t,n===void 0?e:Math.min(e,n))}function po(e,t,n,r,i){let a=e.style;if(a.display!==`flex`&&a.display!==`grid`||t.spans.length===0)return n;let o=a.display===`flex`&&a.flexDirection===`column`,s=n,c=t.spans.reduce((t,n)=>Math.max(t,Jr(e.text,n.start,n.end,e.advances,a.tracking)),0),l=Math.max(0,n-c);if(l>0){let e=a.display===`grid`?pi(a.justifyItems,n,c):o?pi(a.alignItems,n,c):ui(_i(a),[c],l)[0];e>0&&(i.left+=e,i.right+=l-e,s=c)}if(Number.isFinite(r)){let e=Math.max(0,r-t.totalRows);if(e>0){let n=a.display===`grid`||!o?pi(a.alignItems,r,t.totalRows):ui(_i(a),[t.totalRows],e)[0];n>0&&(i.top+=n,i.bottom+=e-n)}}return s}function mo(e,t,n){let r,i;if(n)r=[],i=go(e,t,n,r);else if(e.lineBands){let n=e.lineBands;r=n,i=e=>n[e]?.width??t}let a=_o(e,t,i),{heights:o,textOffsets:s}=vo(e,a),c=[],l=[],u=0;for(let t=0;t<a.length;t++)r&&(u=r[t].row),c.push(u),l.push(u+s[t]),u+=o[t]+(t<a.length-1?e.style.lineGap:0);return{spans:a,lineY:c,textY:l,totalRows:u,bands:r}}function ho(e,t,n,r){let i=e.style,a=e.lineBands?.[t],o=e.multicolGeometry,s=a?a.width:o?Math.max(1,o.columnWidth-i.tracking):r,c=t===0?i.textIndent:0,l=Jr(e.text,n.start,n.end,e.advances,i.tracking),u=Math.max(0,s-c-l),d=i.textAlign===`end`?u:i.textAlign===`center`?Math.floor(u/2):0;return{width:s,indent:c,x:(o?.lineX[t]??0)+(a?.x??0)+c+d}}function go(e,t,n,r){let{border:i,lineGap:a}=e.style,o=e.resolvedPadding,s=n.x+i.left+o.left,c=n.y+i.top+o.top,l=io(n.boxes),u=rt(e).length>0;return(i,o)=>{let d=0;if(i>0){let t=u?vo(e,o).heights[i-1]:1;d=r[i-1].row+t+a}for(;;){let e=eo(n.boxes,n.contentWidth,c+d),a=Math.max(e.x,s),o=Math.min(e.x+e.width,s+t);if(o>a||c+d>=l){let e={row:d,x:Math.max(0,a-s),width:Math.max(0,o-a)};return r[i]=e,e.width}d++}}}function _o(e,t,n){if(e.style.whiteSpace!==`normal`){let t=Gr(e.text);return n&&t.forEach((e,r)=>n(r,t.slice(0,r))),t}return Kr(e.text,t,{advances:e.advances,tracking:e.style.tracking,firstLineIndent:e.style.textIndent,openLine:n})}function vo(e,t){let n=rt(e),r=[],i=[],a=0;for(let o of t){let t=1,s=0,c=[];for(let r=o.start;r<o.end;r++){if(e.text[r]!==``)continue;let i=n[a++];c.push(i);let o=i.localRect.height;t=Math.max(t,o),i.style.verticalAlign===`end`?s=Math.max(s,o-1):i.style.verticalAlign===`center`&&(s=Math.max(s,Math.floor((o-1)/2)))}let l=Math.min(s,t-1);for(let e of c)e.inlineTextRow=l;r.push(t),i.push(l)}return{heights:r,textOffsets:i}}function yo(e,t,n){let r=X(t===`x`?e.gapX:e.gapY,n),i=t===`x`?e.ruleX:e.ruleY;return Math.max(r,i?.width??0)}function bo(e,t,n){return n===`x`?e.left+e.right+t.left+t.right:e.top+e.bottom+t.top+t.bottom}function X(e,t){return typeof e==`number`?e:t===void 0||!Number.isFinite(t)?0:$e(e.percent,t)+(e.cells??0)}function xo(e,t){let n=e=>e===null?null:X(e,t);return{top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)}}function So(e){return typeof e==`number`?e:0}function Co(e,t){if(e!==void 0&&typeof e!=`string`){if(typeof e==`number`)return e;if(t!==void 0)return $e(e.percent,t)+(e.cells??0)}}function wo(e,t,n,r){return e===`min-content`||e===`max-content`||e===`fit-content`?Fo({kind:e},t,n,r):Co(e,t)}function To(e,t,n,r,i,a){let o=r.left+i.left,s=r.top+i.top,c=[],l=s,u=null;for(let r of e.children){let e=xo(r.style.margin,t),i=e.top??0,d=e.bottom??0,f=e.left??0,p=e.right??0,m=l+(u===null?i:ko(u,i));if(J(r.style)){r.staticSlot={kind:`block`,x:o+f,y:m};continue}let h=Math.max(0,t-f-p);if(r.style.float!==`none`){let e=ro(c,r.style.clear,l+(u??0)-s);Y(r,h,n,0,0,`shrink`,a);let m=r.localRect.width+f+p,g=r.localRect.height+i+d,_=to(c,t,r.style.float,e,m,g);c.push({..._,width:m,height:g,side:r.style.float}),r.localRect={...r.localRect,x:o+_.x+f,y:s+_.y+i};continue}let g=s+ro(c,r.style.clear,m-s);if(c.length>0&&oo(r)){let i=Eo(r,c,t,g-s,e,n,a);r.localRect={...r.localRect,x:o+i.x,y:s+i.y}}else{let i=e=>Y(r,h,n,0,0,`fill`,a,void 0,c.length>0?{boxes:c,contentWidth:t,x:e,y:g-s}:void 0);i(f);let l=Oo(e,t,r.localRect.width);c.length>0&&l!==f&&(i(l),l=Oo(e,t,r.localRect.width)),r.localRect={...r.localRect,x:o+l,y:g}}l=r.localRect.y+r.localRect.height,u=d}return u!==null&&(l+=u),(c.length>0||e.children.some(e=>e.anonymous))&&Do(e,o,s,t,c),Math.max(l-s,io(c))}function Eo(e,t,n,r,i,a,o){let s=(i.left??0)+(i.right??0),c=Ro(e,`min`,o)+s,l=t=>Y(e,Math.max(0,t-s),a,0,0,`fill`,o),u=[...new Set(t.map(e=>e.y+e.height))].filter(e=>e>r).sort((e,t)=>e-t);for(let a of[r,...u.slice(0,-1)]){let r=eo(t,n,a);for(;r.width>=c;){l(r.width);let o=eo(t,n,a,e.localRect.height);if(o.width>=e.localRect.width+s)return{x:o.x+Oo(i,o.width,e.localRect.width),y:a};if(o.width===r.width)break;r=o}}let d=u[u.length-1]??r;return l(n),{x:Oo(i,n,e.localRect.width),y:d}}function Do(e,t,n,r,i){let a=e.style.lineGap,o=e=>xo(e.style.margin,r).bottom??0,s=n,c,l=[];for(let u of e.children){if(J(u.style))continue;let{x:e,y:d,height:f}=u.localRect;if(u.style.float!==`none`){c?.flow&&(c.flow.bottom=Math.max(0,o(c))),l.push({float:u,previous:c});continue}if(u.anonymous)c?.flow&&(c.flow.bottom=d-s),s=d+f+a;else{let o=i.length>0&&oo(u)?eo(i,r,d-n,f).x:0,l=c?.flow?.bottom??0,p=d+a/2-s;u.flow={top:p>=l?p:p-l,right:0,bottom:0,left:e-t-o},s=d+a/2+f}c=u}for(let{float:e,previous:t}of l){let n=xo(e.style.margin,r),i=t?.flow?o(t)-(t.flow.bottom??0):0;e.flow={top:(n.top??0)+i,right:n.right??0,bottom:n.bottom??0,left:n.left??0}}}function Oo(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 ko(e,t){return e>=0&&t>=0?Math.max(e,t):e<=0&&t<=0?Math.min(e,t):e+t}function Ao(e,t,n,r,i){let a=e.width;if(e.display===`table`){if(!r.children.some(e=>!J(e.style)&&!e.inlineBox))return a!==void 0&&a.kind!==`auto`?Fo(a,t,r,i):Math.min(t,Io(r,i));if(a!==void 0&&a.kind!==`auto`){let e=Fo(a,t,r,i);return Math.max(e,No(r,t,i))}return ka(r,t,i)}return a!==void 0&&a.kind!==`auto`?Fo(a,t,r,i):n===`shrink`?Math.min(t,Io(r,i)):t}function jo(e){let t=0,n=0;for(let r of e.children){if(r.style.position===`fixed`)continue;let e=Mo(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 Mo(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=jo(e);return{x:r?t:Math.max(t,a.x),y:i?n:Math.max(n,a.y)}}function No(e,t,n){let r=e.style;return Oa(e,n).min+r.border.left+r.border.right+X(r.padding.left,t)+X(r.padding.right,t)+at(r).right}function Po(e,t){if(e.height?.kind===`cells`)return e.height.value;if(e.height?.kind===`percent`&&t!=null)return $e(e.height.value,t)}function Fo(e,t,n,r){switch(e.kind){case`cells`:return e.value;case`percent`:return $e(e.value,t);case`min-content`:return zo(n,r);case`max-content`:return Io(n,r);case`fit-content`:return Math.min(Io(n,r),Math.max(zo(n,r),t));case`auto`:return Io(n,r)}}function Io(e,t){let n=t.maxContent.get(e);if(n!==void 0)return n;let r=e.style,i=Lo(e,t)+r.border.left+r.border.right+So(r.padding.left)+So(r.padding.right)+at(r).right;return t.maxContent.set(e,i),i}function Lo(e,t){let n=e.children.filter(e=>!J(e.style)&&!e.inlineBox);if(n.length===0)return e.style.display===`multicol`?Zi(e.style,e.intrinsicWidth):e.intrinsicWidth;if(e.style.display===`grid`)return Oi(e,t).max;if(e.style.display===`table`)return Oa(e,t).max;if(e.style.display===`flex`&&e.style.flexDirection===`row`){let r=Math.max(So(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+Ro(n,`max`,t),0)+r}let r=n.reduce((e,n)=>Math.max(e,Ro(n,`max`,t)),0);if(e.style.display===`multicol`)return Zi(e.style,r);if(e.style.display===`block`&&n.some(e=>e.style.float!==`none`)){let e=0,r=0,i=0;for(let a of n){let n=Ro(a,`max`,t);a.style.float===`none`?a.style.clear===`none`?i=Math.max(i,n):(e=Math.max(e,r+i),r=0,i=n):r+=n}return Math.max(e,r+i)}return r}function Ro(e,t,n){let r=e.style,i;r.width!==void 0&&r.width.kind!==`auto`&&r.width.kind!==`percent`&&(i=Fo(r.width,0,e,n)),i===void 0&&(i=t===`min`?zo(e,n):Io(e,n));let a=typeof r.minWidth==`number`?r.minWidth:0,o=typeof r.maxWidth==`number`?r.maxWidth:void 0;return Math.max(0,fo(i,a,o))}function zo(e,t){let n=t.minContent.get(e);if(n!==void 0)return n;let r=e.style,i=Bo(e,t)+r.border.left+r.border.right+So(r.padding.left)+So(r.padding.right)+at(r).right;return t.minContent.set(e,i),i}function Bo(e,t){let n=e.children.filter(e=>!J(e.style)&&!e.inlineBox);if(n.length===0)return!e.text||e.style.whiteSpace!==`normal`?e.intrinsicWidth:Xr(e.text,{advances:e.advances,tracking:e.style.tracking});if(e.style.display===`grid`)return Oi(e,t).min;if(e.style.display===`table`)return Oa(e,t).min;if(e.style.display===`flex`&&e.style.flexDirection===`row`&&e.style.flexWrap===`nowrap`){let r=Math.max(So(e.style.gapX),e.style.ruleX?.width??0)*Math.max(0,n.length-1);return n.reduce((e,n)=>e+Ro(n,`min`,t),0)+r}return n.reduce((e,n)=>Math.max(e,Ro(n,`min`,t)),0)}function Vo(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 Ho(e){let{store:t,layers:n}=ts(e,{});return ns(t,n),t.grid.map(e=>e.join(``).trimEnd()).join(`
956
+ `)}function Uo(e,t={}){let{store:n,layers:r}=ts(e,t),i=(e,n)=>e.map((e,r)=>Wo(e,n[r],t.boxed));return{segments:i(n.grid,n.paints),cells:n.grid,layers:r.map(e=>({layer:e,segments:i(e.grid,e.paints)}))}}function Wo(e,t,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a];if(o===``)continue;let s=t[a],c=1;for(;e[a+c]===``;)c++;if(n&&(o.length>1||o.charCodeAt(0)>=128)&&n(o,c,s)){r.push({text:o,cells:c,box:!0,...s}),i=0;continue}let l=r[r.length-1];if(l&&!l.box&&Ko(l,s))l.text+=o,i+=c;else if(l&&!l.box&&s&&(l.backgrounds||l.backgroundColor!==void 0)&&Go(l,s,`backgroundColor`)){l.backgrounds??=Array.from({length:i},()=>l.backgroundColor),delete l.backgroundColor,l.text+=o,i+=c;for(let e=0;e<c;e++)l.backgrounds.push(s.backgroundColor)}else if(l&&!l.box&&s&&s.backgroundColor===void 0&&(l.colors||l.color!==void 0)&&Go(l,s,`color`)){l.colors??=Array.from({length:i},()=>l.color),delete l.color,l.text+=o,i+=c;for(let e=0;e<c;e++)l.colors.push(s.color)}else r.push({text:o,...s}),i=c}return r}function Go(e,t,n){let r=n===`color`?`text`:`fill`,i=n===`color`?`backgroundColor`:`color`;return e.gradient===r&&t.gradient===r&&t[n]!==void 0&&e.selected===void 0&&t.selected===void 0&&e[i]===t[i]&&e.fontWeight===t.fontWeight&&e.fontStyle===t.fontStyle&&e.textDecorationLine===t.textDecorationLine&&e.opacity===t.opacity}function Ko(e,t){return e.color===t?.color&&e.backgroundColor===t?.backgroundColor&&e.gradient===t?.gradient&&e.backgrounds===t?.backgrounds&&e.colors===t?.colors&&e.fontWeight===t?.fontWeight&&e.fontStyle===t?.fontStyle&&e.textDecorationLine===t?.textDecorationLine&&e.opacity===t?.opacity&&e.selected===t?.selected}function qo(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.backgrounds&&(t.backgroundImage=`linear-gradient(to right, ${Xo(e.backgrounds)})`),e.colors&&(t.backgroundImage=`linear-gradient(to right, ${Xo(e.colors)})`,t.webkitBackgroundClip=`text`,t.backgroundClip=`text`,t.color=`transparent`)),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 Jo(e,t,n){let r=new Map;return(i,a,o)=>{let s=e[o-n]?.[a-t];if(s==null||i?.color===void 0)return i;let c=r.get(i.color);if(c===void 0&&r.set(i.color,c=Ve(i.color)),c===null||c.a>=1)return i;let l=Ve(s);return l?{...i,color:Ye(Je(c,l)),gradient:`text`}:i}}function Yo(e,t){let{border:n}=e.style;if(t===`padding-box`)return n;let r=e.resolvedPadding;return{top:n.top+r.top,right:n.right+r.right,bottom:n.bottom+r.bottom,left:n.left+r.left}}function Xo(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];e[n+1]!==r&&t.push(`${r} 0 calc(var(--mw-cw, 1ch) * ${n+1})`)}return t.join(`, `)}function Zo(e){return e.color===void 0&&e.backgroundColor===void 0&&e.backgrounds===void 0&&e.colors===void 0&&e.fontWeight===void 0&&e.fontStyle===void 0&&e.textDecorationLine===void 0&&e.opacity===void 0&&e.selected===void 0}function Qo(e,t,n){let r=Array.from({length:t},()=>Array.from({length:e},()=>` `)),i=Array.from({length:t},()=>Array.from({length:e},()=>void 0)),a=Array.from({length:t},()=>Array.from({length:e},()=>void 0)),o=(n,r)=>n>=0&&n<e&&r>=0&&r<t,s=(e,t)=>{let n=a[t][e];if(n)for(let e=0;e<n.cells;e++)r[t][n.x+e]=` `,a[t][n.x+e]=void 0},c=(e,t,n)=>{let r=i[t][e];i[t][e]=r?{backgroundColor:r.backgroundColor,gradient:r.gradient===`fill`?`fill`:void 0,...n}:n};return{grid:r,paints:i,put:(e,i,l,u,d=1)=>{if(i<0||i>=t)return;if(n&&es(n,e,i,d),d===1){if(!o(e,i))return;s(e,i),r[i][e]=l,c(e,i,u);return}let f=o(e,i)&&o(e+d-1,i);for(let t=0;t<d;t++)o(e+t,i)&&(s(e+t,i),r[i][e+t]=f?t===0?l:``:` `,f&&(a[i][e+t]={x:e,cells:d}),c(e+t,i,u))},clear:(e,t)=>{o(e,t)&&(s(e,t),r[t][e]=` `,i[t][e]=void 0)}}}function $o(e,t,n){for(let r=t.y0;r<t.y1;r++){let i=e.get(r);i||e.set(r,i=[]),i.push({x0:t.x0,x1:t.x1,cover:n})}}function es(e,t,n,r){let i=e.get(n);if(i){for(let{x0:e,x1:a,cover:o}of i)if(!(t>=a||t+r<=e))for(let i=Math.max(t,e);i<Math.min(t+r,a);i++)o(i,n)}}function ts(e,t){let n=Math.max(0,e.localRect.width),r=Math.max(0,e.localRect.height),i=new Map,a=Qo(n,r,i),o={options:t,layers:[],layer:null,covers:i,width:n,height:r,put:a.put};ls(e,0,0,o,o.put);for(let{node:t}of e.topLayer??[])ls(t,0,0,o,o.put,t.style.opacity);return{store:a,layers:o.layers}}function ns(e,t){for(let n of t)for(let t=0;t<n.height;t++){let r=n.grid[t];for(let i=0;i<n.width;i++){let a=r[i];if(a===``||!is(n,n.x+i,n.y+t))continue;let o=n.paints[t][i];if(a===` `&&o?.backgroundColor===void 0&&!o?.backgrounds)continue;let s=1;for(;r[i+s]===``;)s++;e.put(n.x+i,n.y+t,a,o,s)}}}var rs=(e,t,n)=>e===null||t>=e.x0&&t<e.x1&&n>=e.y0&&n<e.y1;function is(e,t,n){for(let r=e;r;r=r.parent)if(!rs(r.clip,t,n))return!1;return!0}var as=(e,t)=>e===null?t:{x0:Math.max(e.x0,t.x0),y0:Math.max(e.y0,t.y0),x1:Math.min(e.x1,t.x1),y1:Math.min(e.y1,t.y1)};function os(e,t,n,r){let i={node:t,box:n,x:0,y:0,width:0,height:0,grid:[],paints:[],holes:new Set,clip:r&&as(r,{x0:0,y0:0,x1:e.width,y1:e.height}),parent:e.layer};e.layers.push(i);let a=new Map,o=1/0,s=1/0,c=-1/0,l=-1/0,u=(t,n,r,i)=>{let a=Math.max(0,t),u=Math.min(e.width,t+r),d=Math.max(0,n),f=Math.min(e.height,n+i);return a>=u||d>=f?!1:(o=Math.min(o,a),s=Math.min(s,d),c=Math.max(c,u),l=Math.max(l,f),!0)};u(n.x,n.y,n.width,n.height);let d=[];return{put:(e,t,n,r,i=1)=>{es(a,e,t,i),u(e,t,i,1)&&d.push([e,t,n,r,i])},close:()=>{if(o===1/0)return;let{clip:t}=i;if(t&&(c<=t.x0||o>=t.x1||l<=t.y0||s>=t.y1))return;let n=c-o,{grid:r,paints:u,put:f,clear:p}=Qo(n,l-s);for(let[e,t,n,r,i]of d)f(e-o,t-s,n,r,i);Object.assign(i,{x:o,y:s,width:n,height:l-s,grid:r,paints:u}),$o(e.covers,{x0:o,y0:s,x1:c,y1:l},(e,t)=>{p(e-o,t-s),i.holes.add((t-s)*n+(e-o)),es(a,e,t,1)})},layer:i,covers:a}}function ss(e,t){return(n,r,i,a,o=1)=>{if(o===1){t(n,r)||e(n,r,i,a);return}let s=!0;for(let e=0;e<o;e++)t(n+e,r)&&(s=!1);if(s)e(n,r,i,a,o);else for(let i=0;i<o;i++)t(n+i,r)||e(n+i,r,` `,a)}}function cs(e,t=!0){let n={};return e.color&&(n.color=e.color),t&&e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.fontWeight!==`400`&&e.fontWeight!==`normal`&&e.fontWeight!==``&&(n.fontWeight=e.fontWeight),e.fontStyle!==`normal`&&e.fontStyle!==``&&(n.fontStyle=e.fontStyle),e.textDecorationLine!==`none`&&e.textDecorationLine!==``&&(n.textDecorationLine=e.textDecorationLine),n}function ls(e,t,n,r,a,o=1,s=null){if(e.tableHidden)return;let c=e.hostRect,l=c?c.x:t+e.localRect.x+(e.stickyShift?.x??0),u=c?c.y:n+e.localRect.y+(e.stickyShift?.y??0),d=e.style,{options:f}=r,p={x:l,y:u,width:e.localRect.width,height:e.localRect.height},m=d.layer?os(r,e,p,s):null,h=m?m.put:c?r.put:a,g=m||c?null:s,_=m?{...r,layer:m.layer,covers:m.covers,put:m.put}:r,v=e=>o>=1?e:{...e,opacity:String(Math.round(o*1e3)/1e3)},y=e=>{let t=[];qn(d,p,e,t);for(let e of t)h(e.x,e.y,e.glyph,v(e.color===void 0?void 0:{color:e.color}))};y(!1);let b=d.backgroundImage,x=d.backgroundClip===`text`,S=f.cell??mr,C=t=>{let n={gradient:void 0,...t};for(let t=0;t<e.localRect.height;t++)for(let r=0;r<e.localRect.width;r++)h(l+r,u+t,` `,n)};d.backgroundClear&&C({backgroundColor:void 0});let w=null;if(x&&(b.length>0||d.backgroundColor!==void 0)){let{width:t,height:n}=e.localRect;w=Jo(_r(b,d.backgroundColor,t,n,S),l,u)}else if(b.length>0){let{width:t,height:n}=e.localRect,r=_r(b,d.backgroundColor,t,n,S),i=d.backgroundClip,a=i===`padding-box`||i===`content-box`?Yo(e,i):st();for(let e=a.top;e<n-a.bottom;e++)for(let n=a.left;n<t-a.right;n++){let t=r[e][n];t&&h(l+n,u+e,` `,v({backgroundColor:t,gradient:`fill`}))}}else d.backgroundColor!==void 0&&C(v({backgroundColor:d.backgroundColor}));y(!0);let T=[];Kn(d,{x:l,y:u,width:e.localRect.width,height:e.localRect.height},T);for(let e of T){let t=v(e.color===void 0?void 0:{color:e.color});for(let n=0;n<e.length;n++)h(e.x+n,e.y,e.glyph,t)}if(e.decorationRuns)for(let t of e.decorationRuns){let e=v(t.color===void 0?void 0:{color:t.color});for(let n=0;n<t.length;n++)h(l+t.x+n,u+t.y,t.glyph,e)}let E=e.lattice?dr(e,e.lattice,(e,t)=>rs(g,l+e,u+t)):null;if(e.lattice&&E){for(let t of e.lattice.handed??[])delete t.latticeRuns;e.lattice.handed=[...E.parts.keys()];for(let[e,t]of E.parts)e.latticeRuns=t.map(e=>({...e,x:l+e.x,y:u+e.y}))}if(e.latticeRuns)for(let t of e.latticeRuns)h(t.x,t.y,t.glyph,v(t.color===void 0?void 0:{color:t.color}));let D=l-(e.scroll?.x??0),O=u-(e.scroll?.y??0),k=h,j=g,ee=ds(e,l,u);if(ee&&(j=as(g,ee),k=ss(h,(e,t)=>!rs(ee,e,t))),!e.children.some(e=>!e.inlineBox&&e.style.position!==`absolute`&&e.style.position!==`fixed`)&&e.text){let t=v(cs(d,b.length===0&&!w)),n=e.inlineElements?.map(e=>v(cs(e))),r=f.selection?.get(e),i=(t,n,r,i,a,o)=>{if(e.text[t]===`⁠`){a?.backgroundColor&&k(r,i,` `,v({backgroundColor:a.backgroundColor}));return}let s=n===1?e.text[t]:e.text.slice(t,t+n),c=G(s);c>0&&k(r,i,s,w?w(o,r,i):o,c)},a=[];us(e,D,O,(o,s,c,l)=>{let u=e.charInline?.[o]??-1,d=u>=0?e.inlineElements[u]:void 0,f=d?n[u]:t;r&&o>=r.start&&o<r.end&&(f={...f,selected:!0}),d?.stickyShift?a.push([o,s,c,l,d,f]):i(o,s,c,l,d,f)},(e,n)=>k(e,n,`…`,t));for(let e of a)i(...e)}for(let t of Xn(e))t.topLayerRank===void 0&&ls(t,D,O,_,k,o*t.style.opacity,j);if(E)for(let e of E.runs){let t=v(e.color===void 0?void 0:{color:e.color});h(l+e.x,u+e.y,e.glyph,t)}let te=e.scrollRange,M=e.scrollGutterCells;if(te&&M&&(M.right>0||M.bottom>0)){let{track:t,thumb:n}=A(i(d.glyphSet)),r=e=>v(e?{color:e}:void 0),a=r(d.scrollbarColor?.track??d.color),o=r(d.scrollbarColor?.thumb??d.color),s=hs(e,l,u);if(s.y){let{col:r,row:i,thick:c,len:l}=s.y,{at:u,len:d}=gs(l,te.sizeY,te.maxY,e.scroll?.y??0);for(let e=0;e<c;e++)for(let s=0;s<l;s++){let c=s>=u&&s<u+d;h(r+e,i+s,c?n:t,c?o:a)}}if(s.x){let{col:r,row:i,thick:c,len:l}=s.x,{at:u,len:d}=gs(l,te.sizeX,te.maxX,e.scroll?.x??0);for(let e=0;e<c;e++)for(let s=0;s<l;s++){let c=s>=u&&s<u+d;h(r+s,i+e,c?n:t,c?o:a)}}}m?.close()}function us(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,{spans:u,textY:d}=e.multicolGeometry??mo(e,l);for(let t=0;t<u.length;t++){let n=u[t],o=c+d[t],f=ho(e,t,n,l),p=a.whiteSpace!==`normal`&&a.overflow.x===`clip`?_s(e.text,n,f.width-f.indent,e.advances,a):{end:n.end,ellipsis:!1},m=s+f.x,h=e.advances;for(let t=n.start;t<p.end;){let n=qr(t,t+1,h),i=1;if(h)for(;t+i<p.end&&h[t+i]===0;)i++;if(e.text[t]!==``&&n>0){let a=e.inlineElements?.[e.charInline?.[t]??-1],s=a?.insets,c=(s?s.left??(s.right===null?0:-s.right):0)+(a?.stickyShift?.x??0),l=(s?s.top??(s.bottom===null?0:-s.bottom):0)+(a?.stickyShift?.y??0);r(t,i,m+c,o+l,n)}m+=n,t+=i}p.ellipsis&&i?.(m,o)}}function ds(e,t,n){let{overflow:r,border:i}=e.style,a=r.x!==`visible`,o=r.y!==`visible`;if(!a&&!o)return null;let s=e.scrollGutterCells,{width:c,height:l}=e.localRect;return{x0:a?t+i.left:-1/0,y0:o?n+i.top:-1/0,x1:a?t+c-i.right-(s?.right??0):1/0,y1:o?n+l-i.bottom-(s?.bottom??0):1/0}}function fs(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 ps(e,t,n,r,i){let a=null;return us(e,t-(e.scroll?.x??0),n-(e.scroll?.y??0),(t,n,o,s,c)=>{if(s!==i||r<o||r>=o+c)return;let l=e.inlineElements?.[e.charInline?.[t]??-1]?.stickyShift!==void 0;(a===null||l)&&(a=t)}),a}function ms(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 us(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 hs(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 gs(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 _s(e,t,n,r,i){let{textOverflow:a,tracking:o}=i;if(Jr(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&&Jr(e,t.start,c+1,r,o)<=s;)c++;return{end:c,ellipsis:a===`ellipsis`&&n>0}}function vs(e,t,n){let{width:r,height:i}=e.localRect,a=e.textExtent;if(a){let{border:t,overflow:n}=e.style,o=e.resolvedPadding;n.x===`visible`&&(r=Math.max(r,t.left+o.left+a.width)),n.y===`visible`&&(i=Math.max(i,t.top+o.top+a.rows))}return{x:t,y:n,width:r,height:i}}function ys(e,t,n){let r=e.topLayer??[];for(let i=r.length-1;i>=0;i--){let{node:a,ancestors:o}=r[i],{x:s,y:c}=a.hostRect;if(!xs(vs(a,s,c),t,n))continue;let l=[],u=e.localRect.x,d=e.localRect.y;for(let e of o.slice(1))u+=e.localRect.x+(e.stickyShift?.x??0),d+=e.localRect.y+(e.stickyShift?.y??0),l.push({node:e,x:u,y:d}),u-=e.scroll?.x??0,d-=e.scroll?.y??0;return l.push({node:a,x:s,y:c}),bs(a,s,c,t,n,l),l}let i=[];return bs(e,e.localRect.x,e.localRect.y,t,n,i),i}function bs(e,t,n,r,i,a){let o=ds(e,t,n),s=o!==null&&(r<o.x0||r>=o.x1||i<o.y0||i>=o.y1),c=t-(e.scroll?.x??0),l=n-(e.scroll?.y??0),u=Xn(e);for(let e=u.length-1;e>=0;e--){let t=u[e];if(t.tableHidden||t.topLayerRank!==void 0)continue;let n=t.hostRect;if(s&&!n)continue;let o=n?n.x:c+t.localRect.x+(t.stickyShift?.x??0),d=n?n.y:l+t.localRect.y+(t.stickyShift?.y??0);if(t.multicolFlow?fs(t,o,d,r,i):xs(vs(t,o,d),r,i)){a.push({node:t,x:o,y:d}),bs(t,o,d,r,i,a);return}}}function xs(e,t,n){return t>=e.x&&t<e.x+e.width&&n>=e.y&&n<e.y+e.height}function Ss(e){return e.closest?.(`[inert]`)!=null}function Cs(e,t,n){let r=[];for(let i of ys(e,t,n)){if(Ss(i.node.source))break;i.node.anonymous||r.push(i.node.source)}return r}function ws(e,t,n){let r=(e,t,n)=>e>0?-Math.ceil(e/n):t>0?Math.ceil(t/n):0;return{x:r(e.left-t.x,t.x-e.right,n.width),y:r(e.top-t.y,t.y-e.bottom,n.height)}}function*Ts(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 Es={ArrowUp:`up`,ArrowDown:`down`,ArrowLeft:`left`,ArrowRight:`right`};function Ds(e){return Es[e]??null}function Os(e,t,n){let r=null,i=null;for(let a of n){let n=As(e,t,a.rect);n&&(!i||ks(n,i))&&(r=a,i=n)}return r?.element??null}function ks(e,t){for(let n=0;n<e.length;n++)if(e[n]!==t[n])return e[n]<t[n];return!1}function As(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 js(e){let t=[],n=(e,r,i,a)=>{if(e.tableHidden)return;let o=r+e.localRect.x+(e.stickyShift?.x??0),s=i+e.localRect.y+(e.stickyShift?.y??0);!a&&!e.anonymous&&Ns(e.source)&&t.push({element:e.source,rect:{x:o,y:s,width:e.localRect.width,height:e.localRect.height}});for(let n of ms(e,o,s))Ns(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 Ms(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 Ns(e){let t=e.tabIndex;return typeof t!=`number`||t<0?!1:!e.matches(`:disabled`)&&!Ss(e)}var Ps=new Set([`text`,`search`,`url`,`tel`,`email`,`password`]),Fs=new Set([`checkbox`,`button`,`submit`,`reset`,`image`,`file`]);function Is(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:Ps.has(n)?t===`ArrowLeft`||t===`ArrowRight`:!Fs.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 Ls(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 Rs(e){let t=ae(e.source.tagName)?.selectionTarget?.(e.source)??null;return t&&t.textContent===e.text?t:null}function zs(e,t){let n=t,r=null;for(let t of Vs(e)){if(n<=t.data.length)return[t,n];n-=t.data.length,r=[t,t.data.length]}return r}function Bs(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*Vs(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=t.nextNode();for(;n;)yield n,n=t.nextNode()}function Hs(e,t,n){if(!e.charSource){let r=Rs(e);return(r&&Bs(r,t,n))??0}let r=rt(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];Ls(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 Us(e,t){if(!e.charSource){let n=Rs(e),r=n&&zs(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 Ws(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 Gs(e,t,n){let{startContainer:r,endContainer:i}=n;return t.contains(r)&&t.contains(i)?`grid`:Ks(e,r)&&Ks(e,i)?`light`:`outside`}function Ks(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 qs(e){let t=[],n=e=>{let r=Rs(e)?.getRootNode();r instanceof ShadowRoot&&t.push(r);for(let t of e.children)n(t)};return n(e),t}function Js(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=Hs(a,t.startContainer,t.startOffset),s=Hs(a,t.endContainer,t.endOffset);return{leaf:a,start:Math.min(o,s),end:Math.max(o,s)}}function Ys(e,t){let n=Js(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&&ic(e,r)){if(oc(e)){let{text:t}=e,n=0,a=t.length;e.charSource&&(ac(e,r.startContainer)&&(n=Hs(e,r.startContainer,r.startOffset)),ac(e,r.endContainer)&&(a=Hs(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 Xs(e,t){let n=Js(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 Zs(e,r,i),cc(i)}function Zs(e,t,n){if(e.tableHidden||!ic(e,t))return;let r=tc(e);if(r&&n.push({breaks:r}),e.style.tableRole===`row`)Qs(e,t,n);else if(e.style.display===`table`){let r=ec(e);for(let r of e.children)r.style.tableRole===`row`||$s(r)||Zs(r,t,n);let i=!1;for(let e of r)t.intersectsNode(e.source)&&(i&&n.push({text:`
957
+ `}),Zs(e,t,n),i=!0)}else{oc(e)&&n.push({text:sc(e,t)});for(let r of e.children)r.inlineBox||Zs(r,t,n)}r&&n.push({breaks:r})}function Qs(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:` `}),Zs(i,t,n),r=!0)}function $s(e){let t=e.style.tableRole;return t===`header-group`||t===`row-group`||t===`footer-group`}function ec(e){let t=[];for(let n of e.children)if(n.style.tableRole===`row`)t.push(n);else if($s(n))for(let e of n.children)e.style.tableRole===`row`&&t.push(e);return t}function tc(e){if(e.inlineBox)return 0;let t=e.style.tableRole;return t===`row`||t===`cell`||$s(e)||t===`column`||t===`column-group`?0:e.source.tagName===`P`&&!e.anonymous?2:1}function nc(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 rt(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)=>Ls(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 rc(e){return[...(e.charSource??[]).map(e=>e.node),...(e.inlineElements??[]).map(e=>e.element),...e.children.map(e=>e.source)]}function ic(e,t){return e.anonymous?rc(e).some(e=>t.intersectsNode(e)):t.intersectsNode(e.source)}function ac(e,t){return e.anonymous?e.source===t||rc(e).some(e=>e===t||e.contains(t)):e.source.contains(t)}function oc(e){return e.text.length!==0&&!e.children.some(e=>!e.inlineBox&&e.style.position!==`absolute`&&e.style.position!==`fixed`)}function sc(e,t){let{text:n}=e,r=0,i=n.length;e.charSource&&(ac(e,t.startContainer)&&(r=Hs(e,t.startContainer,t.startOffset)),ac(e,t.endContainer)&&(i=Hs(e,t.endContainer,t.endOffset)));let a=n.slice(r,i);i===n.length&&a.endsWith(`
958
+ `)&&(a=a.slice(0,-1));let o=rt(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 Zs(e,t,n),cc(n)}),a.replaceAll(`⁠`,``)}function cc(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 lc=new Map;function uc(e,t){let{text:n}=e;if(t<0||t>=n.length||dc(n[t]))return null;let r=t;for(;r>0&&!dc(n[r-1]);)r--;let i=t;for(;i<n.length&&!dc(n[i]);)i++;let a=fc(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 dc(e){return e===`
960
+ `||e===``||e===`⁠`}function fc(e){let t=lc.get(e);return t===void 0&&(t=pc(e)??pc(``),lc.set(e,t)),t}function pc(e){if(typeof Intl.Segmenter!=`function`)return null;try{return new Intl.Segmenter(e||void 0,{granularity:`word`})}catch{return null}}var mc=[{range:/^[\u2580-\u2590\u2594-\u259F]$/,reference:`█`},{range:/^[\u2500-\u257F]$/,reference:`│`}],hc=/^[\u2591-\u2593]$/,gc=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=mc.find(t=>t.range.test(e));if(s)return this.#c(s.reference,r,n);if(hc.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;if(!n)return 0;let r=(n-t*this.#i.height*this.#a%n)%n,i=n-r,a=e.reach;return(a&&r>a.above*this.#a&&i<=a.below*this.#a?-i:r)/this.#a}#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)}if(a.lineHeight=Math.round(n*100)/100,i){let e=(c+d)*t,r=(n-e)/2;a.reach={above:Math.round(-r*100)/100,below:Math.round((r+e-s)*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}},_c=new WeakMap,vc=new WeakMap;function yc(e){return Rc(e,!0)!==null}function bc(e,t,n={}){let r=n.glyphs,i={};r&&(i.boxed=(e,t,n)=>r.box(e,t,n)!==null||n?.opacity!==void 0&&jc(e)),n.selection&&(i.selection=n.selection),n.cell&&(i.cell=n.cell);let{segments:a,cells:o,layers:s}=Uo(e,i);if(!Ac(t,a,o,n))return!1;let c={width:o[0]?.length??0,height:o.length};return!n.layers||Ec(n.layers,s,n,c)}var xc=new WeakMap;function Sc(e){let t=xc.get(e);if(t)for(let e of t.order)Oc(e,t.cell)}function Cc(e,t,n){let r=xc.get(e);if(!r)return null;for(let e=r.order.length-1;e>=0;e--){let i=r.order[e],a=Tc(i,t,n);if(!a||a.x<0||a.y<0||a.x>=i.width||a.y>=i.height)continue;let{layer:o}=i,s=Math.floor(a.x/r.cell.width),c=Math.floor(a.y/r.cell.height);if(o.holes.has(c*o.width+s))continue;let{box:l}=o;if(s>=l.x-o.x&&s<l.x-o.x+l.width&&c>=l.y-o.y&&c<l.y-o.y+l.height||(Nc(i.grid,s,c)??` `)!==` `)return{col:o.x+s,row:o.y+c,grid:i.grid,x:o.x,y:o.y}}return null}function wc(e,t,n){let r=xc.get(e);if(!r)return null;for(let e=r.order.length-1;e>=0;e--){let{layer:i,grid:a}=r.order[e];if(t>=i.x&&t<i.x+i.width&&n>=i.y&&n<i.y+i.height&&is(i,t,n))return{grid:a,x:i.x,y:i.y}}return null}function Tc(e,t,n){let r=e.parent?Tc(e.parent,t,n):{x:t,y:n};if(!r||!e.inverse)return null;let{clip:i}=e;if(i&&(r.x<i.left||r.x>=i.left+i.width||r.y<i.top||r.y>=i.top+i.height))return null;let a=e.inverse.transformPoint({x:r.x-e.left,y:r.y-e.top});return{x:a.x,y:a.y}}function Ec(e,t,n,r){let i=xc.get(e);i||xc.set(e,i={nodes:new Map,order:[],cell:mr}),i.cell=n.cell??mr,i.order=[];let a=new Map,o=!1;for(let{layer:s,segments:c}of t){let t=s.node.source,l=i.nodes.get(t);if(!l){let e=document.createElement(`div`);e.className=`layer`;let n=document.createElement(`pre`);n.className=`grid`,n.setAttribute(`aria-hidden`,`true`),e.appendChild(n),l={box:e,grid:n,clipNode:null,backdrop:null,layer:s,parent:null,left:0,top:0,width:0,height:0,clip:null,inverse:null,placed:``},i.nodes.set(t,l)}l.layer=s,l.parent=s.parent?i.nodes.get(s.parent.node.source):null,i.order.push(l),s.clip&&!l.clipNode?(l.clipNode=document.createElement(`div`),l.clipNode.className=`clip`,l.clipNode.appendChild(l.box)):!s.clip&&l.clipNode&&(l.clipNode.replaceWith(l.box),l.clipNode=null);let u=l.clipNode??l.box,d=s.node.style.backdrop;d&&!l.backdrop?(l.backdrop=document.createElement(`div`),l.backdrop.className=`backdrop`):!d&&l.backdrop&&(l.backdrop.remove(),l.backdrop=null);let f=l.parent?.box??e,p=a.get(f),m=l.parent?l.parent.grid.nextSibling:f.firstChild,h=p?p.nextSibling:m;l.backdrop&&(l.backdrop!==h&&f.insertBefore(l.backdrop,h),h=l.backdrop.nextSibling),u!==h&&f.insertBefore(u,h),a.set(f,u),l.backdrop&&d&&Dc(l.backdrop,d,r,i.cell),n.placeLayers!==!1&&Oc(l,i.cell),Ac(l.grid,c,s.grid,n)||(o=!0)}let s=new Set(i.order);for(let[e,t]of i.nodes)s.has(t)||((t.clipNode??t.box).remove(),t.backdrop?.remove(),i.nodes.delete(e));return!o}function Dc(e,t,n,r){let i=e.style;i.width=`${n.width*r.width}px`,i.height=`${n.height*r.height}px`,i.backgroundColor=t.backgroundColor,i.backgroundImage=t.backgroundImage,i.backdropFilter=t.backdropFilter,i.opacity=t.opacity}function Oc(e,t){let{layer:n}=e,r=getComputedStyle(n.node.source),[i=`0`,a=`0`]=r.transformOrigin.split(` `),o=(parseFloat(i)||0)+(n.box.x-n.x)*t.width,s=(parseFloat(a)||0)+(n.box.y-n.y)*t.height,[c=0,l=0]=r.translate.split(` `).map((e,r)=>e.endsWith(`%`)?parseFloat(e)/100*(r===0?n.box.width*t.width:n.box.height*t.height):parseFloat(e)||0),u=r.transform||`none`,d=r.rotate||`none`,f=r.scale||`none`,p=r.filter||`none`,{backdropFilter:m}=n.node.style.layer,h=n.parent??{x:0,y:0};e.left=(n.x-h.x)*t.width,e.top=(n.y-h.y)*t.height,e.width=n.width*t.width,e.height=n.height*t.height;let{clip:g}=n;e.clip=g&&{left:(g.x0-h.x)*t.width,top:(g.y0-h.y)*t.height,width:(g.x1-g.x0)*t.width,height:(g.y1-g.y0)*t.height};let _=[e.left,e.top,e.width,e.height,e.clip&&[e.clip.left,e.clip.top,e.clip.width,e.clip.height],o,s,c,l,u,d,f,p,m].join(`|`);if(e.placed===_)return;e.placed=_;let v=e.box.style;if(e.clip&&e.clipNode){let t=e.clipNode.style;t.left=`${e.clip.left}px`,t.top=`${e.clip.top}px`,t.width=`${e.clip.width}px`,t.height=`${e.clip.height}px`}v.left=`${e.left-(e.clip?.left??0)}px`,v.top=`${e.top-(e.clip?.top??0)}px`,v.width=`${e.width}px`,v.height=`${e.height}px`,v.transformOrigin=`${o}px ${s}px`,v.translate=r.translate===`none`?`none`:`${c}px ${l}px`,v.rotate=d,v.scale=f,v.transform=u,v.filter=p,v.backdropFilter=m,e.inverse=kc(o,s,c,l,d,f,u)}function kc(e,t,n,r,i,a,o){if(typeof DOMMatrix!=`function`)return null;try{let s=i.split(` `),c=s.slice(0,-1).join(` `),l=(c===``||c===`z`)&&parseFloat(s.at(-1))||0,[u=1,d=u]=a===`none`?[]:a.split(` `).map(Number),f=new DOMMatrix().translate(e,t).translate(n,r).rotate(l).scale(u,d).multiply(o===`none`?new DOMMatrix:new DOMMatrix(o)).translate(-e,-t).inverse();return Number.isFinite(f.a)?f:null}catch{return null}}function Ac(e,t,n,r){let i=r.glyphs,a=Bc(t);if(_c.get(e)===a)return!0;let o=vc.get(e),s=new Set;if(o&&o.rows.length===t.length)for(let n=0;n<t.length;n++)Ic(e,o.rows[n].nodes,t[n])||s.add(n);if((s.size>0||!o||o.rows.length!==t.length)&&r.holdStructural&&yc(e))return!1;if(_c.set(e,a),!o||o.rows.length!==t.length){let r=document.createDocumentFragment(),a=[];for(let e=0;e<t.length;e++){let{nodes:n,units:o}=Mc(t[e],i,e);for(let e of n)r.appendChild(e);let s=e<t.length-1?document.createTextNode(`
961
+ `):null;s&&r.appendChild(s),a.push({nodes:n,segments:t[e],newline:s,units:o})}vc.set(e,{rows:a,cells:n});let o=Rc(e,!1);return e.replaceChildren(r),o&&zc(e,o),!0}let c=s.size>0?Rc(e,!1):null;for(let n=0;n<t.length;n++){let r=t[n],a=o.rows[n];if(s.has(n)){let t=Mc(r,i,n);for(let n of t.nodes)e.insertBefore(n,a.newline);for(let e of a.nodes)e.remove();a.nodes=t.nodes,a.segments=r,a.units=t.units;continue}for(let e=0;e<r.length;e++){let t=r[e];Zo(t)||Fc(t,a.segments[e])||Pc(a.nodes[e],t,i,n)}a.segments=r}return o.cells=n,c&&zc(e,c),!0}function jc(e){let t=e.codePointAt(0)??0;return t>=9472&&t<=9631}function Mc(e,t,n){let r=[],i=0;for(let a of e){if(i+=a.text.length,Zo(a)&&!a.box){r.push(document.createTextNode(a.text));continue}let e=document.createElement(`span`);Pc(e,a,t,n),e.textContent=a.text,r.push(e)}return{nodes:r,units:i}}function Nc(e,t,n){return vc.get(e)?.cells[n]?.[t]}function Pc(e,t,n,r){if(e.style.cssText=``,delete e.dataset.shade,qo(t,e.style),!t.box)return;let i=t.cells??1,a=n?.box(t.text,i,t),o=e.style;if(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){let i=a.lineHeight;a.period&&n&&(e.dataset.shade=t.text,o.setProperty(`--mw-period`,`${a.period}px`),i+=2*n.shift(a,r)),o.lineHeight=`${i}px`}}function Fc(e,t){return Ko(e,t)&&e.box===t.box&&e.cells===t.cells&&e.backgrounds?.join(`,`)===t.backgrounds?.join(`,`)&&e.colors?.join(`,`)===t.colors?.join(`,`)}function Ic(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((Zo(a)&&!a.box)!==(i.nodeType===Node.TEXT_NODE)||i.textContent!==a.text||i.parentNode!==e)return!1}return!0}function Lc(e,t,n){let r=vc.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 Rc(e,t){try{let n=e.ownerDocument.getSelection();if(!n)return null;let r=e.getRootNode();if(!(r instanceof ShadowRoot))return null;let i=Ws(r);if(!i)return null;let a=Bs(e,i.startContainer,i.startOffset),o=Bs(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 zc(e,t){try{let n=zs(e,t.start),r=zs(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 Bc(e){let t=[];for(let n of e){for(let e of n)t.push(e.text,e.color??``,e.backgroundColor??``,e.backgrounds?.join(`,`)??``,e.colors?.join(`,`)??``,e.fontWeight??``,e.fontStyle??``,e.textDecorationLine??``,e.opacity??``,e.selected?`s`:``,e.box?`b${e.cells}`:``);t.push(`
962
+ `)}return t.join(``)}function Vc(e){let t=new Set;Uc(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 Q(e,t){e.style.getPropertyValue(t)!==``&&e.style.removeProperty(t)}function Hc(e,t,n){e.getAttribute(t)!==n&&(n===null?e.removeAttribute(t):e.setAttribute(t,n))}function $(e,t,n){e.hasAttribute(t)!==n&&(n?e.setAttribute(t,``):e.removeAttribute(t))}function Uc(e,t,n,r){if(e.inlineElements)for(let{element:t,tracking:r,padLeft:i,padRight:a,insets:o,sticky:s}of e.inlineElements){let e=t;Z(e,`--mw-ls`,String(r)),i>0?Z(e,`--mw-ipl`,String(i)):Q(e,`--mw-ipl`),a>0?Z(e,`--mw-ipr`,String(a)):Q(e,`--mw-ipr`),(o||s)&&(n.add(t),qc(e,o??{top:0,right:null,bottom:null,left:0}))}t?Kc(e):e.anonymous||$c(e);let i=e.style.backgroundColor??(e.style.backgroundClear?void 0:r);if(!t&&!e.anonymous&&Gc(e.source,e,i),!e.tableHidden)for(let t of Xn(e)){if(!t.anonymous){let n=t.source;t.style.zIndex!==null&&Yn(t,e)&&!t.inlineBox?Z(n,`--mw-z`,String(t.style.zIndex)):Q(n,`--mw-z`)}Uc(t,!1,n,i)}}var Wc=`input, textarea, select, [contenteditable], [contenteditable] *`;function Gc(e,t,n){e.matches(Wc)&&(t.style.color===void 0?Q(e,`--mw-ink`):Z(e,`--mw-ink`,t.style.color),n===void 0?Q(e,`--mw-ground`):Z(e,`--mw-ground`,n))}function Kc(e){let t=e.source,n=e.text.length>0||e.children.some(e=>e.anonymous),{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?Z(t,`--mw-ti`,String(a)):Q(t,`--mw-ti`)}function qc(e,t){$(e,`data-mw-inline-inset`,!0);let n=(t,n)=>{n===null?Q(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 Jc(e){for(let{node:t,ancestors:n}of e){if(t.style.position===`sticky`){let e=t.source,n=t.stickyShift;n?(Z(e,`--mw-sx`,String(n.x)),Z(e,`--mw-sy`,String(n.y))):(Q(e,`--mw-sx`),Q(e,`--mw-sy`))}else if(t.hostRect){let e=t.source,r=0,i=0;for(let e of n)r+=(e.scroll?.x??0)-(e.stickyShift?.x??0),i+=(e.scroll?.y??0)-(e.stickyShift?.y??0);Z(e,`--mw-sx`,String(r)),Z(e,`--mw-sy`,String(i))}for(let e of t.inlineElements??[]){if(e.sticky===void 0)continue;let t=e.element;Z(t,`--mw-it`,String(e.stickyShift?.y??0)),Z(t,`--mw-il`,String(e.stickyShift?.x??0))}}}var Yc={start:`left`,end:`right`,"span-start":`span-left`,"span-end":`span-right`},Xc={start:`top`,end:`bottom`,"span-start":`span-top`,"span-end":`span-bottom`};function Zc({x:e,y:t}){return`${Yc[e]??e} ${Xc[t]??t}`}function Qc(e){if(e.text.length>0)return e.baselineRow;for(let t=e.children.length-1;t>=0;t--){let n=e.children[t];if(n.anonymous&&n.baselineRow!==void 0)return n.localRect.y+n.baselineRow}}function $c(e){let t=e.source,n=e.topLayerRank!==void 0,r=n?{...e.localRect,...e.hostRect}:e.localRect;$(t,`data-mw-top`,n),e.style.position!==`sticky`&&(Q(t,`--mw-sx`),Q(t,`--mw-sy`));let i=e.resolvedPadding,{border:a,textAlignBlocked:o,overflow:s,whiteSpace:c,tracking:l,lineGap:u}=e.style,d=e.multicolFlow,f=e.multicolFlowSpan;$(t,`data-mw-laid-out`,!e.inlineBox&&!d&&!f&&!e.flow),$(t,`data-mw-inline-box`,!!e.inlineBox),$(t,`data-mw-multicol-flow`,!!d),$(t,`data-mw-multicol-flow-span`,!!f);let p=e.flow&&e.style.float!==`none`?e.style.float:null;Hc(t,`data-mw-float`,p),Hc(t,`data-mw-flow`,e.flow&&!p?oo(e)?`box`:`text`:null);let m=d??f??e.flow;m?(Z(t,`--mw-mt`,String(m.top??0)),Z(t,`--mw-mr`,String(m.right??0)),Z(t,`--mw-mb`,String(m.bottom??0)),Z(t,`--mw-ml`,String(m.left??0))):(Q(t,`--mw-mt`),Q(t,`--mw-mr`),Q(t,`--mw-mb`),Q(t,`--mw-ml`)),Hc(t,`data-mw-area`,e.anchorArea?Zc(e.anchorArea):null);let{verticalAlign:h}=e.style;$(t,`data-mw-vbottom`,!!e.inlineBox&&h===`end`);let g=!!e.inlineBox&&h===`center`&&e.inlineTextRow!==void 0;$(t,`data-mw-vmiddle`,g);let _=g?Qc(e):void 0;g?Z(t,`--mw-va`,String(e.inlineTextRow-(_??r.height))):Q(t,`--mw-va`),g&&_===void 0?Z(t,`--mw-vb`,`1`):Q(t,`--mw-vb`),Z(t,`--mw-ls`,String(l)),Z(t,`--mw-lh`,String(u+1)),Z(t,`--mw-lhs`,String(-u/2)),$(t,`data-mw-nowrap`,c!==`normal`);let v=d||f?void 0:e.multicolGeometry;if($(t,`data-mw-multicol`,!!v),$(t,`data-mw-multicol-balance`,!!v?.nativeBalance),v?(Z(t,`--mw-colc`,String(v.columnCount)),Z(t,`--mw-colg`,String(v.gap))):(Q(t,`--mw-colc`),Q(t,`--mw-colg`)),$(t,`data-mw-pre`,c===`pre`),Z(t,`--mw-x`,String(r.x)),Z(t,`--mw-y`,String(r.y)),Z(t,`--mw-w`,String(r.width)),Z(t,`--mw-h`,String(r.height)),$(t,`data-mw-clip`,s.x===`clip`||s.y===`clip`),$(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 Q(t,`--mw-se-x`),Q(t,`--mw-se-y`);Z(t,`--mw-pt`,String(i.top)),Z(t,`--mw-pr`,String(i.right)),Z(t,`--mw-pb`,String(i.bottom)),Z(t,`--mw-pl`,String(i.left)),Z(t,`--mw-bt`,String(a.top)),Z(t,`--mw-br`,String(a.right)),Z(t,`--mw-bb`,String(a.bottom)),Z(t,`--mw-bl`,String(a.left)),Z(t,`--mw-ti`,String(e.style.textIndent)),$(t,`data-mw-text-align-blocked`,o),$(t,`data-mw-table-hidden`,!!e.tableHidden),$(t,`data-mw-hidden-runs`,e.children.some(e=>e.anonymous&&e.tableHidden))}function el(e,t,n,r,i){let a=0;return i!==null&&e.end>n.end-i&&(a=n.end-i-e.end),r!==null&&e.start+a<n.start+r&&(a=n.start+r-e.start),a>0?Math.min(a,Math.max(0,t.end-e.end)):a<0?Math.max(a,Math.min(0,t.start-e.start)):0}function tl(e){let t=[],n=[],r=e=>{n.length>0&&nl(e)&&t.push({node:e,ancestors:n.slice()}),n.push(e);for(let t of e.children)r(t);n.pop()};return r(e),t}function nl(e){return e.style.position===`sticky`||(e.inlineElements?.some(e=>e.sticky!==void 0)??!1)||e.hostRect!==void 0&&e.topLayerRank===void 0}function rl(e){for(let t of e)il(t)}function il({node:e,ancestors:t}){let n={x:0,y:0},r=null,i=null;for(let e of t){let t={x:n.x+e.localRect.x+(e.stickyShift?.x??0),y:n.y+e.localRect.y+(e.stickyShift?.y??0)};n={x:t.x-(e.scroll?.x??0),y:t.y-(e.scroll?.y??0)},e.scrollRange&&(r={node:e,origin:t}),e.style.display===`table`&&(i={node:e,origin:n})}let a=t[t.length-1],o=r&&ds(r.node,r.origin.x,r.origin.y),s={x:n.x+e.localRect.x,y:n.y+e.localRect.y};if(e.style.position===`sticky`&&(delete e.stickyShift,o)){let t=e.style.tableRole!==`none`&&i?i:{node:a,origin:n},c=cl(t.node,t.origin,r.node),l=t===i&&i.node.lattice?ol(i.node.lattice,e):{top:0,right:0,bottom:0,left:0},{insets:u}=e.style,d={x:el({start:s.x-l.left,end:s.x+e.localRect.width+l.right},c.x,{start:o.x0,end:o.x1},sl(u.left,o.x1-o.x0),sl(u.right,o.x1-o.x0)),y:el({start:s.y-l.top,end:s.y+e.localRect.height+l.bottom},c.y,{start:o.y0,end:o.y1},sl(u.top,o.y1-o.y0),sl(u.bottom,o.y1-o.y0))};(d.x!==0||d.y!==0)&&(e.stickyShift=d)}e.inlineElements&&al(e,s,o)}function al(e,t,n){let r={x:t.x+(e.stickyShift?.x??0),y:t.y+(e.stickyShift?.y??0)},i=cl(e,r,null);for(let t of e.inlineElements??[]){if(t.sticky===void 0||(delete t.stickyShift,!n))continue;let a=ms(e,r.x,r.y).filter(({element:e})=>e===t.element).map(({rect:e})=>e);if(a.length===0)continue;let o={x:{start:Math.min(...a.map(e=>e.x)),end:Math.max(...a.map(e=>e.x+e.width))},y:{start:Math.min(...a.map(e=>e.y)),end:Math.max(...a.map(e=>e.y+e.height))}},s={x:el(o.x,i.x,{start:n.x0,end:n.x1},t.sticky.left,t.sticky.right),y:el(o.y,i.y,{start:n.y0,end:n.y1},t.sticky.top,t.sticky.bottom)};(s.x!==0||s.y!==0)&&(t.stickyShift=s)}}function ol(e,t){let n=fr(e,t);if(!n)return{top:0,right:0,bottom:0,left:0};let{r0:r,r1:i,c0:a,c1:o}=n,s=t.style.tableRole===`cell`;return{top:e.hLines[r],bottom:e.hLines[i+1],left:s?e.vLines[a]:0,right:s?e.vLines[o+1]:0}}function sl(e,t){return e===null?null:X(e,t)}function cl(e,t,n){let{border:r}=e.style,i=e.resolvedPadding,a=t.x+r.left+i.left,o=t.y+r.top+i.top,s=e.localRect.width-r.left-r.right-i.left-i.right,c=e.localRect.height-r.top-r.bottom-i.top-i.bottom;return e===n&&e.scrollRange&&(s=Math.max(s,e.scrollRange.sizeX),c=Math.max(c,e.scrollRange.sizeY)),{x:{start:a,end:a+s},y:{start:o,end:o+c}}}function ll(e,t,n,r){let i=lt(e,t,n);if(i.display===`none`)return null;let a=ae(e.tagName);if(a)return gl(e,i,a);let o=Array.from(e.children),s=o.map(xl),c={rootFontSizePx:t,cellMetrics:n,textareaWidths:r};return!s.includes(`block`)||Il(e.tagName)?hl(e,i,o,s,c):{source:e,style:i,children:ul(e,Array.from(e.childNodes),t,n,r),text:``,intrinsicWidth:0,intrinsicHeight:0,localRect:{x:0,y:0,width:0,height:0},unclampedHeight:0,resolvedPadding:st()}}function ul(e,t,n,r,i,a){let o={rootFontSizePx:n,cellMetrics:r,textareaWidths:i},s=[],c=e=>{let t=ll(e,n,r,i);t&&s.push(t)},l=a,u=[],d=[],f=!1,p=()=>{let t=u.filter(e=>e instanceof Element);if(f)l??=ml(e,n,r),s.push(dl(e,u,t,d,o,l));else for(let e of t)c(e);u=[],d=[],f=!1};for(let e of t){if(e instanceof Element){let t=xl(e);if(t===`none`)continue;if(t===`block`){p(),c(e);continue}d.push(t),f||=t===`inline`}else if(e.nodeType!==Node.TEXT_NODE)continue;else f||=/[^ \t\r\n\f]/.test(e.textContent??``);u.push(e)}return p(),s}function dl(e,t,n,r,i,a){let o=hl(e,a,n,r,i,t);return o.anonymous=!0,o}function fl(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(xl);return o.includes(`block`)||!Pl(e)&&!o.includes(`inline`)?null:hl(e,pl(e,t,n),a,o,{rootFontSizePx:t,cellMetrics:n,textareaWidths:r},i)}function pl(e,t,n){return{...ml(e,t,n),tracking:0,lineGap:0}}function ml(e,t,n){let r=getComputedStyle(e),i=parseFloat(r.fontSize)||t,a={...ot(),...Ft(e,r,t),lineGap:Kt(r.lineHeight,i),tracking:Gt(r.letterSpacing,i,n?.letterSpacing??0),color:r.color,fontWeight:r.fontWeight,fontStyle:r.fontStyle};return At(r).x===`clip`&&(a.overflow={...a.overflow,x:`clip`}),a}function hl(e,t,n,r,i,a){let{rootFontSizePx:o,cellMetrics:s,textareaWidths:c}=i,l=e.tagName,u=Il(l),d=Sl(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}=kl(d);if(d.boxes.length>0){let e=co();Zr(f,(t,n)=>{p[t]=Math.max(1,Io(d.boxes[n],e))})}let h=jl(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=>Hr(e.trim())))}}let g=f.length>0?Ml(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?Ur(r,i,{advances:Vr(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=ll(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:st()};(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=Al(d);return S.length>0&&(x.charSource=S),x}function gl(e,t,n){let r=se(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=Vr(a,t.tracking),s=jl(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:st()};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,anchorNames:[],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 _l=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 vl(e,t){return t||(_l.has(e.tagName)?`inline`:`block`)}function yl(e,t){let n=vl(e,t);return n===`inline`||n===`contents`}function bl(e,t){let n=vl(e,t);return n.startsWith(`inline`)&&n!==`inline`}function xl(e){let t=getComputedStyle(e);return t.display===`none`?`none`:t.position===`absolute`||t.position===`fixed`?`out-of-flow`:Fl(t.float)||ae(e.tagName)?`block`:yl(e,t.display)||bl(e,t.display)?`inline`:`block`}function Sl(e,t,n,r){let i={chars:[],advances:[],sourceNode:[],sourceOffset:[],inlineIndex:[],inlineElements:[],boxes:[]};return r?wl(r,t,n,i):Cl(e,t,n,i),n.preserve?i:Dl(i)}function Cl(e,t,n,r){Il(e.tagName)||wl(Array.from(e.childNodes),t,n,r)}function wl(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 zr(e)){let e=o;if(o+=s.length,s===`\r
966
966
  `||s===`\r`||s===`
967
- `)_c(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++)_c(r,` `,1,a,e)}else _c(r,s,Bt(s,t),a,e)}}else{let e=0,n=!1;for(let i of zt(a.textContent??``)){let o=i===` `||i===` `||i===`\r`||i===`
967
+ `)Ol(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++)Ol(r,` `,1,a,e)}else Ol(r,s,Br(s,t),a,e)}}else{let e=0,n=!1;for(let i of zr(a.textContent??``)){let o=i===` `||i===` `||i===`\r`||i===`
969
969
  `||i===`\f`||i===`\r
970
- `;o?n||_c(r,` `,1+t,a,e):_c(r,i,Bt(i,t),a,e),n=o,e+=i.length}}}else if(a.nodeType===Node.ELEMENT_NODE){let e=a;if(e.tagName===`BR`){_c(r,`
971
- `,0,null,-1);continue}let t=getComputedStyle(e);if(t.display===`none`||t.position===`absolute`||t.position===`fixed`)continue;if(lc(e,t.display)){let t=Qs(e,n.rootFontSizePx,n.cellMetrics,n.textareaWidths);t&&(t.inlineBox=!0,_c(r,``,1,null,-1),r.boxes.push(t));continue}if(!cc(e,t.display)){Sc(e);continue}let i=ns(t.letterSpacing,parseFloat(t.fontSize)||n.rootFontSizePx,n.rootLetterSpacingPx),o=mc(t.paddingLeft,n.rootFontSizePx),s=mc(t.paddingRight,n.rootFontSizePx);r.inlineElements.push({element:e,tracking:i,padLeft:o,padRight:s,insets:t.position===`relative`?hc(t,n.rootFontSizePx):null,...t.position===`sticky`?{sticky:hc(t,n.rootFontSizePx)}:{},color:t.color,backgroundColor:Ao(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,_c(r,`⁠`,1,null,-1);let l=r.chars.length;fc(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,_c(r,`⁠`,1,null,-1)}}function mc(e,t){if(!e||e.endsWith(`%`))return 0;let n=parseFloat(e);return Number.isFinite(n)?Math.max(0,xt(n,t)):0}function hc(e,t){let n=e=>{if(!e||e===`auto`||e.endsWith(`%`))return null;let n=parseFloat(e);return Number.isFinite(n)?xt(n,t):null};return{top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)}}function gc(e){let t=[],n=[],r=[],i=[],a=[],o=()=>{let e=t.length;for(;e>0&&t[e-1]!==`
970
+ `;o?n||Ol(r,` `,1+t,a,e):Ol(r,i,Br(i,t),a,e),n=o,e+=i.length}}}else if(a.nodeType===Node.ELEMENT_NODE){let e=a;if(e.tagName===`BR`){Ol(r,`
971
+ `,0,null,-1);continue}let t=getComputedStyle(e);if(t.display===`none`||t.position===`absolute`||t.position===`fixed`)continue;if(bl(e,t.display)){let t=ll(e,n.rootFontSizePx,n.cellMetrics,n.textareaWidths);t&&(t.inlineBox=!0,Ol(r,``,1,null,-1),r.boxes.push(t));continue}if(!yl(e,t.display)){Nl(e);continue}let i=Gt(t.letterSpacing,parseFloat(t.fontSize)||n.rootFontSizePx,n.rootLetterSpacingPx),o=Tl(t.paddingLeft,n.rootFontSizePx),s=Tl(t.paddingRight,n.rootFontSizePx);r.inlineElements.push({element:e,tracking:i,padLeft:o,padRight:s,insets:t.position===`relative`?El(t,n.rootFontSizePx):null,...t.position===`sticky`?{sticky:El(t,n.rootFontSizePx)}:{},anchorNames:ft(e,t),color:t.color,backgroundColor:bt(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,Ol(r,`⁠`,1,null,-1);let l=r.chars.length;Cl(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,Ol(r,`⁠`,1,null,-1)}}function Tl(e,t){if(!e||e.endsWith(`%`))return 0;let n=parseFloat(e);return Number.isFinite(n)?Math.max(0,Qe(n,t)):0}function El(e,t){let n=e=>{if(!e||e===`auto`||e.endsWith(`%`))return null;let n=parseFloat(e);return Number.isFinite(n)?Qe(n,t):null};return{top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)}}function Dl(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 _c(e,t,n,r,i){e.chars.push(t),e.advances.push(n),e.sourceNode.push(r),e.sourceOffset.push(i)}function vc(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 yc(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 bc(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,qt(e,i,a,t,n)),i=a+1);return r}function xc(e){return V(e).length}function Sc(e){ne(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 Cc(e){return Array.from(e.childNodes).some(e=>e.nodeType===Node.TEXT_NODE&&/[^ \t\r\n\f]/.test(e.textContent??``))}function wc(e){return e!==`none`&&e!==``}function Tc(e){return e===`INPUT`||e===`SELECT`||e===`TEXTAREA`}var Ec=`
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 Ol(e,t,n,r,i){e.chars.push(t),e.advances.push(n),e.sourceNode.push(r),e.sourceOffset.push(i)}function kl(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 Al(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 jl(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,Jr(e,i,a,t,n)),i=a+1);return r}function Ml(e){return Gr(e).length}function Nl(e){ee(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 Pl(e){return Array.from(e.childNodes).some(e=>e.nodeType===Node.TEXT_NODE&&/[^ \t\r\n\f]/.test(e.textContent??``))}function Fl(e){return e!==`none`&&e!==``}function Il(e){return e===`INPUT`||e===`SELECT`||e===`TEXTAREA`}var Ll=`
976
976
  <style>
977
977
  :host { display: block; position: relative; contain: layout style; }
978
978
  #viewport { position: relative; width: 100%; height: 100%; background: inherit; }
@@ -1001,18 +1001,28 @@ input:where([type='button'], [type='reset'], [type='submit']),
1001
1001
  /* The text-fill reset: the host's own invisibility lock (specs/host-leaf.md)
1002
1002
  * inherits across the shadow boundary; currentColor stays a keyword
1003
1003
  * at computed time, so every run keeps its own color. */
1004
- #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; }
1004
+ .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; }
1005
+ /* A layer (specs/layers.md): a box at the extent carrying the root's
1006
+ * transform and filter, its grid transparent where the subtree
1007
+ * painted nothing; a nested box sits in its parent's, a clipped one
1008
+ * in a clipping box at its ancestors' clip. */
1009
+ #layers, .layer, .clip, .backdrop { position: absolute; top: 0; left: 0; pointer-events: none; }
1010
+ .clip { overflow: clip; }
1011
+ .layer > .grid { background: transparent; }
1005
1012
  /* A background reaches the row's edges: the host's measured half-gap
1006
1013
  * between the line box and the font's content area, which an inline
1007
1014
  * span paints without moving the line (specs/cell-model.md). */
1008
- #grid span { padding-block: var(--mw-bgpad, 0px); }
1015
+ .grid span { padding-block: var(--mw-bgpad, 0px); }
1009
1016
  /* A shade's lattice runs on from row to row (specs/wide-characters.md):
1010
1017
  * copies a period above and below the glyph, in its own line box. */
1011
- #grid span[data-shade] { position: relative; }
1012
- #grid span[data-shade]::before, #grid span[data-shade]::after { content: attr(data-shade); position: absolute; inset-inline: 0; }
1013
- #grid span[data-shade]::before { top: calc(-1 * var(--mw-period)); }
1014
- #grid span[data-shade]::after { top: var(--mw-period); }
1015
- :host([select="grid"]) #grid { pointer-events: auto; user-select: text; -webkit-user-select: text; }
1018
+ .grid span[data-shade] { position: relative; }
1019
+ .grid span[data-shade]::before, .grid span[data-shade]::after { content: attr(data-shade); position: absolute; inset-inline: 0; }
1020
+ .grid span[data-shade]::before { top: calc(-1 * var(--mw-period)); }
1021
+ .grid span[data-shade]::after { top: var(--mw-period); }
1022
+ :host([select="grid"]) .grid { pointer-events: auto; user-select: text; -webkit-user-select: text; }
1023
+ /* A grid-mode drag stays in the grid it started in, where the engine
1024
+ * supports it (specs/layers.md, deviations 3 and 8). */
1025
+ :host([select="grid"]) .layer > .grid { user-select: contain; -webkit-user-select: contain; }
1016
1026
  :host([select="grid"]) slot { pointer-events: none; user-select: none; -webkit-user-select: none; }
1017
1027
  /* A live semantic selection (specs/semantic-selection.md) lifts the
1018
1028
  * lock so the element selection copies; pointer events stay off. */
@@ -1021,15 +1031,16 @@ input:where([type='button'], [type='reset'], [type='submit']),
1021
1031
  * invert — mirror of the field choices in styles.css. Slotted text
1022
1032
  * takes the slot's rule in Chromium and WebKit: invisible, the engine
1023
1033
  * paints that selection on the grid (specs/wide-characters.md). */
1024
- #grid::selection, #grid *::selection { color: var(--mw-bg, canvas); text-shadow: 0 0 0 var(--mw-bg, canvas); background: var(--mw-fg, canvastext); }
1034
+ .grid::selection, .grid *::selection { color: var(--mw-bg, canvas); text-shadow: 0 0 0 var(--mw-bg, canvas); background: var(--mw-fg, canvastext); }
1025
1035
  slot::selection { color: transparent; text-shadow: none; background: transparent; }
1026
1036
  </style>
1027
1037
  <div id="viewport">
1028
- <pre id="grid" aria-hidden="true"></pre>
1038
+ <pre id="grid" class="grid" aria-hidden="true"></pre>
1039
+ <div id="layers"></div>
1029
1040
  <slot></slot>
1030
1041
  </div>
1031
- `,Dc=`grid`,Oc=`tab`,kc=`data-mw-semantic-selection`,Ac=`a, button, input, select, textarea, label, [tabindex], [role='button']`,jc=[`pointerover`,`pointerleave`,`pointerdown`,`pointerup`,`pointercancel`,`keydown`,`keyup`,`focusin`,`focusout`,`input`,`change`],Mc=/^(color|opacity|border-(top|right|bottom|left)-color|border-color)$/,Nc=3e4,Pc=200,Fc=3,Ic=4,Lc=8,Rc=100,zc=160,Bc=500,Vc=50;function Hc(e,t,n){return n>0&&e.scrollTop<e.scrollHeight-e.clientHeight-.5||n<0&&e.scrollTop>.5||t>0&&e.scrollLeft<e.scrollWidth-e.clientWidth-.5||t<0&&e.scrollLeft>.5}function Uc(e,t,n){let{maxX:r,maxY:i}=e.scrollRange,a=e.source;return n!==0&&i>0&&Hc(a,0,n)||t!==0&&r>0&&Hc(a,t,0)}function Wc(e){let t=e.getBoundingClientRect();return new DOMRectReadOnly(t.left+e.clientLeft,t.top+e.clientTop,e.clientWidth,e.clientHeight)}var Gc=typeof HTMLElement>`u`?class{}:HTMLElement,Kc=class e extends Gc{static observedAttributes=[`select`,`focus`];static#e=new Set;static#t=null;static#n=()=>{for(let t of e.#e)t.#tt()};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=[];#y=new Map;#b=new WeakMap;#x=null;#S=null;#C=``;#w=-1;#T=null;#E=null;#D=!1;#O=!1;#k=!1;#A=0;#j=new Ja((e,t,n)=>this.#I(e,t,n));#M=null;#N=!1;#P=[];#F(){this.#u?.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`class`,`style`,`colspan`,`rowspan`,`span`,...ce()]})}constructor(){super(),this.#o=this.attachShadow({mode:`open`}),this.#o.innerHTML=Ec,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)}#I(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`,Dc),this.hasAttribute(`focus`)||this.setAttribute(`focus`,Oc),this.#c.parentNode!==this&&this.appendChild(this.#c),this.#l=new ResizeObserver(()=>this.#tt()),this.#l.observe(this),this.#oe(),this.#l.observe(this.#c),window.addEventListener(`resize`,this.#Ze),this.#u=new MutationObserver(()=>this.#tt()),this.#F(),this.#m=le(()=>{this.#F(),this.#tt()}),this.#h=a(()=>this.#tt()),document.fonts?.ready.then(this.#Qe).catch(e=>{console.warn(`[monowind] document.fonts.ready failed:`,e)}),document.fonts?.addEventListener(`loadingdone`,this.#Qe);for(let e of jc)this.addEventListener(e,this.#Xe);this.addEventListener(`transitionrun`,this.#qe),this.addEventListener(`transitionend`,this.#Je),this.addEventListener(`transitioncancel`,this.#Je),this.addEventListener(`pointermove`,this.#le),this.addEventListener(`pointerleave`,this.#Le),this.addEventListener(`pointerdown`,this.#Re),this.addEventListener(`scroll`,this.#ee,{capture:!0,passive:!0}),this.addEventListener(`scrollend`,this.#te,{capture:!0}),this.addEventListener(`wheel`,this.#re,{passive:!1}),this.addEventListener(`copy`,this.#ue),this.addEventListener(`mousedown`,this.#de),this.addEventListener(`keydown`,this.#ge),document.addEventListener(`selectionchange`,this.#Fe),window.addEventListener(`pointerup`,this.#ze),window.addEventListener(`pointercancel`,this.#ze),window.addEventListener(`mouseup`,this.#Be,{capture:!0}),document.addEventListener(`scroll`,this.#Ve,{capture:!0,passive:!0}),e.#i(this),this.#tt()}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.#Qe);for(let e of jc)this.removeEventListener(e,this.#Xe);this.removeEventListener(`transitionrun`,this.#qe),this.removeEventListener(`transitionend`,this.#Je),this.removeEventListener(`transitioncancel`,this.#Je),this.#We=0,this.removeEventListener(`pointermove`,this.#le),this.removeEventListener(`pointerleave`,this.#Le),this.removeEventListener(`pointerdown`,this.#Re),this.removeEventListener(`scroll`,this.#ee,{capture:!0}),this.removeEventListener(`scrollend`,this.#te,{capture:!0}),this.removeEventListener(`wheel`,this.#re),this.removeEventListener(`copy`,this.#ue),this.removeEventListener(`keydown`,this.#ge),this.removeEventListener(`mousedown`,this.#de),document.removeEventListener(`selectionchange`,this.#Fe);for(let e of this.#y.values())clearTimeout(e);this.#y.clear(),this.#S=null,this.#x=null,this.#me(),window.removeEventListener(`pointerup`,this.#ze),window.removeEventListener(`pointercancel`,this.#ze),window.removeEventListener(`mouseup`,this.#Be,{capture:!0}),document.removeEventListener(`scroll`,this.#Ve,{capture:!0}),this.#H=null,this.#z=null,this.#B=!1,this.#V=!1,this.#O=!1,this.#He(),e.#a(this)}#L=new Set;#R=new Set;#z=null;#B=!1;#V=!1;#H=null;#U=NaN;#W=NaN;#G=null;static#K=typeof matchMedia>`u`?null:matchMedia(`(hover: hover)`);#q(){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.#J(t),So(this.#v),_o(this.#v),this.#u?.takeRecords(),this.#V=!this.#Ie(this.#p),this.#Y(),this.#He())};requestAnimationFrame(t),setTimeout(t,50)}#J(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.#X(n,e)}}#Y(){this.#D&&(this.#D=!1,this.#he())}#X(e,t){let n=e.source,{maxX:r,maxY:i}=e.scrollRange,a=e.scroll??{x:0,y:0};return{x:Jc(n,`x`,t.width,r,a.x),y:Jc(n,`y`,t.height,i,a.y)}}#Z(){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.#X(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}#Q(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)}}#$(e,t){clearTimeout(this.#y.get(e)),this.#y.set(e,setTimeout(()=>this.#ne(e),t))}#ee=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(this.#D=!0,this.#q(),!(Date.now()-(this.#b.get(t)??0)<Pc)&&(!(`onscrollend`in window)||Date.now()-this.#A<Bc?this.#$(t,zc):clearTimeout(this.#y.get(t))))};#te=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(Date.now()-(this.#b.get(t)??0)<Pc||this.#$(t,Rc))};#ne(e){if(this.#S?.el===e)return;this.#q();let t=this.#f,n=this.#_.find(t=>t.source===e);if(!t||!n)return;let r=n.scrollRange,i=this.#X(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`})}#re=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.#ae(a,o))return;let{col:s,row:c}=this.#se(r.clientX,r.clientY,n),l=Date.now(),u=Math.abs(a)+Math.abs(o);if(u===0){this.#x=null,r.preventDefault();return}let d=e=>Uc(e,a,o),f=this.#x,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)>Fc||Math.abs(r.clientY-f.y)>Fc),g=f!==null&&f.decayed>=Lc,_=f!==null&&l-f.at<Pc&&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=Qi(t,s,c);for(let t=e.length-1;t>=0;t--){let n=e[t].node;if(!n.scrollRange||ea(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<Ic){r.preventDefault();return}this.#x={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.scrollRange;this.#ie(v.source,y.maxX>0?a:0,y.maxY>0?o:0)};#ie(e,t,n){let r={behavior:`instant`};t!==0&&(r.left=t),n!==0&&(r.top=n),e.scrollBy(r),e.hasAttribute(`data-mw-scroll`)&&(this.#b.set(e,Date.now()),this.#$(e,Pc))}#ae(e,t){return this.#P.some(n=>Hc(n,e,t))}#oe(){let e=this.parentElement;if(e&&this.#l){this.#l.observe(e);for(let t of e.children)t!==this&&this.#l.observe(t)}}#se(e,t,n){if(!this.#G){let e=this.#s.getBoundingClientRect();this.#G={left:e.left,top:e.top}}return{col:Math.floor((e-this.#G.left)/n.width),row:Math.floor((t-this.#G.top)/n.height)}}#ce(e,t){let n=this.#p,r=this.#f;if(!n||!r||this.#_.length===0)return null;let{col:i,row:a}=this.#se(e,t,r),o=Qi(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||ea(s.source))continue;let d=s.source,{y:f,x:p}=Ji(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=Yi(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=Yi(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}#le=e=>{if(Xc(e))return;let{clientX:t,clientY:n}=e,r=this.#S;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.#T&&this.#we(this.#T,t,n),i&&this.#M&&this.#Ce(this.#M,t,n),i&&this.#N&&!this.hasAttribute(`data-mw-dragging`)&&this.setAttribute(`data-mw-dragging`,``),this.#H={x:t,y:n};let a=this.#f;if(a){let{col:e,row:r}=this.#se(t,n,a);if(e===this.#U&&r===this.#W)return}this.#He()};#ue=e=>{let{clipboardData:t}=e,n=this.#p,r=this.#Pe();t&&n&&r&&(t.setData(`text/plain`,Oa(n,r)),e.preventDefault())};#de=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.#be(t.target))return}else if(n!==`text`||!this.#De(t.target))return;let i=this.#C===`mouse`||this.#C===`pen`;if(t.detail<=1){if(t.detail!==1||(this.removeAttribute(kc),!i))return;if(n===`text`){this.#Ee(t),this.#fe(t);return}let e=this.#ve();(!r||e)&&this.#Se(t,e);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.#se(t.clientX,t.clientY,c),d=this.#ke(s,l,u,a);if(!d){this.removeAttribute(kc),this.#T=null;return}t.preventDefault(),this.#ve()?.blur(),this.#Ne(d);let f=t.shiftKey&&o.anchorNode&&this.#Pe()?Qc({node:o.anchorNode,offset:o.anchorOffset}):d;this.#Te(o,f,d),this.#T={unit:a,anchor:f},this.#fe(t)};#fe(e){let t=this.#p,n=this.#f;if(!this.#T||!t||!n)return;this.#me(),e.isTrusted&&this.setPointerCapture(this.#w);let{col:r,row:i}=this.#se(e.clientX,e.clientY,n),a=Qi(t,r,i),o=null;for(let e=a.length-1;e>=0&&!o;e--){let{node:t}=a[e];t.scrollRange&&!ea(t.source)&&(o=t.source)}let s=this.#P[0],c=o??s??document.scrollingElement??document.documentElement,l=setInterval(()=>this.#pe(),Vc);this.#E={el:c,page:!o&&!s,timer:l}}#pe(){let e=this.#E,t=this.#f,n=this.#H;if(!e||!t||!n||!this.#B)return;let{el:r,page:i}=e,a=na(i?new DOMRectReadOnly(0,0,r.clientWidth,r.clientHeight):Wc(r),n,t),o=this.#_.find(e=>e.source===r),s=(e,t)=>o?Uc(o,e,t):Hc(r,e,t),c=a.x*t.width,l=a.y*t.height,u=s(c,0)?c:0,d=s(0,l)?l:0;(u!==0||d!==0)&&this.#ie(r,u,d)}#me(){this.#E&&=(clearInterval(this.#E.timer),null)}#he(){let e=this.#T,t=this.#H;e&&t&&this.#B&&this.#we(e,t.x,t.y)}#ge=e=>{let t=e;if(this.#A=Date.now(),this.getAttribute(`focus`)!==`arrows`)return;let n=aa(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||ma(i,t.key,this.#$e()))return;let a=la(r),o=ua(a,i);if(!o)return;let s=oa(n,o,a.filter(e=>e.element!==i));s&&(t.preventDefault(),s.focus({preventScroll:!0}),s.scrollIntoView({block:`nearest`,inline:`nearest`}))};#_e(e,t,n){let r=Array.from(this.childNodes).filter(e=>e!==this.#c),i=nc(this,e,t);return{source:this,style:i,children:$s(this,r,e,t,n,i),text:``,intrinsicWidth:0,intrinsicHeight:0,localRect:{x:0,y:0,width:0,height:0},unclampedHeight:0,resolvedPadding:xn()}}#ve(){let e=document.activeElement;return e instanceof HTMLElement&&e!==document.body&&this.contains(e)?e:null}#ye(){return this.#B&&this.#N&&!this.#M}#be(e){return e instanceof Element&&e!==this&&this.contains(e)&&!e.matches(Ac)}#xe(e,t){let n=this.#f;if(!n)return null;let{col:r,row:i}=this.#se(e,t,n);return ao(this.#s,r,i)}#Se(e,t){let n=this.#xe(e.clientX,e.clientY);n!==null&&(e.preventDefault(),this.#M={anchor:n}),t?.blur();let r=n===null?null:_a(this.#s,n);r&&document.getSelection()?.setBaseAndExtent(...r,...r)}#Ce(e,t,n){let r=_a(this.#s,e.anchor),i=this.#xe(t,n),a=i===null?null:_a(this.#s,i);r&&a&&document.getSelection()?.setBaseAndExtent(...r,...a)}#we(e,t,n){let r=this.#f,i=document.getSelection();if(!r||!i)return;let{col:a,row:o}=this.#se(t,n,r),s=this.#Oe(a,o,e.unit);!s||e.extent&&el(e.extent,s)||(e.extent=s,this.#Te(i,e.anchor,s))}#Te(e,t,n){if(el(t,n)){$c(e,n.start,n.end);return}let r=t.start.node.getRootNode()===n.start.node.getRootNode(),i=r?t:this.#Me(t),a=r?n:this.#Me(n);ha(i.start.node,i.start.offset,a.start.node,a.start.offset)<=0?$c(e,i.start,a.end):$c(e,i.end,a.start)}#Ee(e){let t=document.getSelection(),n=this.#f;if(!t||!n)return;let{col:r,row:i}=this.#se(e.clientX,e.clientY,n),a=this.#Oe(r,i,`character`);if(!a)return;e.preventDefault(),this.#ve()?.blur();let o=e.shiftKey&&t.anchorNode&&this.#Pe()?Qc({node:t.anchorNode,offset:t.anchorOffset}):Qc(a.start);this.#Te(t,o,e.shiftKey?a:o),this.#T={unit:`character`,anchor:o}}#De(e){if(e===this)return!0;if(!(e instanceof Element)||!this.contains(e))return!1;let t=e.closest(Ac);return!t||t===this||!this.contains(t)}#Oe(e,t,n){let r=this.#p;if(!r)return null;let i={x:0,y:0,width:r.localRect.width,height:r.localRect.height},a=Math.max(0,Math.min(e,i.width-1)),o=Math.max(0,Math.min(t,i.height-1)),s=Qi(r,a,o).at(-1);if(s&&ea(s.node.source))return null;let c=s?[Zi(s.node,s.x,s.y),i]:[i];for(let e of c)for(let t of ra(e.width,e.height,a-e.x,o-e.y)){let a=e.x+t.x,o=e.y+t.y,{edge:c}=t,l=to(this.#s,a,o);if(l===void 0||l===` `&&c!==`self`)continue;let u=this.#ke(r,a,o,n,e===i?null:s.node);if(u)return c===`self`||n!==`character`?u:Qc(c===`start`?u.start:u.end)}return null}#ke(e,t,n,r,i=null){let a=Qi(e,t,n);if(i&&!a.some(e=>e.node===i))return null;for(let e=a.length-1;e>=0;e--){let{node:i,x:o,y:s}=a[e];if(Ra(i))return ea(i.source)?null:this.#Ae(i,o,s,t,n,r)}return Ra(e)?this.#Ae(e,0,0,t,n,r):null}#Ae(e,t,n,r,i,a){let o=Ki(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]!==`
1032
- `;)t++;let n=xa(e,o),r=xa(e,t);if(n&&r)return{start:n,end:r}}if(a===`word`){let t=se(e.source.tagName)?V(e.text).find(e=>o>=e.start&&o<e.end):Ha(e,o),n=t&&xa(e,t.start),r=t&&xa(e,t.end);if(n&&r)return{start:n,end:r}}return this.#je(e)}#je(e){if(e===this.#p||e.anonymous)return Pa(e);let t=se(e.source.tagName)?.selectionTarget?.(e.source)??e.source;return{start:{node:t,offset:0},end:{node:t,offset:t.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:Zc(a)?{node:a,offset:a instanceof Text?a.length:a.childNodes.length}:{node:r,offset:i},end:Zc(o)?{node:o,offset:0}:{node:r,offset:i+1}}}#Ne(e){this.setAttribute(kc,``);let t=e.start.node,n=t instanceof Element?t:t.parentElement;n&&getComputedStyle(n).userSelect}#Pe(){let e=this.#p,t=Sa(this.#s.getRootNode(),e?Ta(e):[]);return!t||Ca(this,this.#s,t)!==`light`||t.startContainer===t.endContainer&&t.startOffset===t.endOffset?null:t}#Fe=()=>{let e=this.#Pe()!==null;this.hasAttribute(kc)&&!e&&this.removeAttribute(kc),(e||this.#k)&&this.#p&&this.#q(),this.#k=e};#Ie(e){let t=this.#Pe(),n=this.#f;return Qa(e,this.#s,{holdStructural:this.#ye(),glyphs:this.#j,selection:t?Da(e,t):void 0,cell:n?{width:n.width,height:n.height}:void 0})}#Le=()=>{this.#H=null,this.#He()};#Re=e=>{let t=e;if(!t.isPrimary||t.button!==0||(this.#C=t.pointerType,this.#w=t.pointerId,this.#O=!1,Xc(t)))return;let n=this.#ce(t.clientX,t.clientY);if(n){this.#S=n,t.preventDefault(),t.isTrusted&&this.setPointerCapture(t.pointerId);return}this.#H={x:t.clientX,y:t.clientY},this.#B=!0,this.#N=t.composedPath().includes(this.#s),this.#He(!0)};#ze=e=>{if(e.isPrimary){if(this.#O=e.type===`pointerup`&&this.#T!==null,this.#T=null,this.#me(),this.#M=null,this.#N=!1,this.removeAttribute(`data-mw-dragging`),this.#S){this.#ne(this.#S.el),this.#S=null;return}(this.#B||this.#z)&&(this.#B=!1,this.#z=null,this.#He(),this.#V&&this.#tt())}};#Be=e=>{this.#O&&(this.#O=!1,e.preventDefault())};#Ve=e=>{if(!this.#H)return;let t=e.target;t instanceof HTMLElement&&t.hasAttribute(`data-mw-scroll`)||(this.#G=null,this.#he(),this.#He())};#He(t=!1){let n=this.#p,r=this.#f,i=[];if(this.#H&&n&&r&&this.isConnected&&this.getAttribute(`select`)===`grid`&&(this.#B||e.#K?.matches)){let{col:e,row:t}=this.#se(this.#H.x,this.#H.y,r);this.#U=e,this.#W=t,i=ta(n,e,t)}else this.#U=NaN,this.#W=NaN;let a=i.at(-1)??null;t&&(this.#z=a);let o=e.#K?.matches?i:[],s=this.#z?i.indexOf(this.#z):-1,c=s>=0?i.slice(0,s+1):[],l=this.#Ue(`data-mw-hover`,this.#L,o);l=this.#Ue(`data-mw-active`,this.#R,c)||l;let u=a?getComputedStyle(a).cursor:``;this.#s.style.cursor=u===`auto`?``:u,l&&this.isConnected&&this.#tt()}#Ue(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;#Ge=!1;#Ke=0;#qe=e=>{Mc.test(e.propertyName)&&(this.#We++,this.#Ke=performance.now(),this.#Ye())};#Je=e=>{Mc.test(e.propertyName)&&(this.#We=Math.max(0,this.#We-1))};#Ye(){if(this.#Ge)return;this.#Ge=!0;let e=()=>{if(!this.isConnected||this.#We===0&&!_e()||performance.now()-this.#Ke>Nc){this.#Ge=!1,this.#We=0,this.#tt();return}this.#et(),requestAnimationFrame(e)};requestAnimationFrame(e)}#Xe=e=>{if(!Xc(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.#et();return}this.#tt()}};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".`,re(this)),this.setAttribute(`focus`,Oc));return}if(e===`select`&&n!==`text`&&n!==`grid`){n!==null&&console.warn(`[monowind] Ignoring unrecognized select="${n}". Expected "grid" (default) or "text".`,re(this)),this.setAttribute(`select`,Dc);return}e===`select`&&this.#He(),this.#tt()}toPlainText(){return this.#d&&this.#nt(),this.#p?Ai(this.#p):``}#Ze=()=>{this.#tt()};#Qe=()=>{requestAnimationFrame(()=>{this.#j.invalidate(),this.#tt()})};#$e(){let e=document.activeElement;if(!(e instanceof HTMLSelectElement)||!this.contains(e))return!1;try{return e.matches(`:open`)}catch{return!1}}#et(){try{this.#nt()}catch(e){console.error(`[monowind] layout failed:`,e)}}#tt(){this.#d||(this.#d=!0,requestAnimationFrame(()=>{if(this.#d=!1,this.#$e()){this.#tt();return}this.#et()}))}#nt(){if(!this.isConnected)return;let e=this.#Z(),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=Ct(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.#j.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=wt(),l=tc(this,c,n,t)??this.#_e(c,n,t),{height:u}=Qr(l,s);lo(l),this.#_=tl(l),this.#J(n,e),this.#v=bo(l),So(this.#v),_o(this.#v),this.#V=!this.#Ie(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.#Q(e),this.#u?.takeRecords(),ge(this)&&(_e()?(this.#Ke=performance.now(),this.#Ye()):this.#tt()),this.#oe(),this.#P=[];let t=document.scrollingElement??document.documentElement;for(let e=this.parentElement;e;e=e.parentElement)(e===t||/auto|scroll/.test(getComputedStyle(e).overflow))&&this.#P.push(e);this.#G=null,this.#Y(),this.#H&&this.#He()}}};function qc(){typeof customElements>`u`||customElements.get(`mono-wind`)||customElements.define(`mono-wind`,Kc)}function Jc(e,t,n,r,i){return Yc(t===`y`?e.scrollTop:e.scrollLeft,t===`y`?e.scrollHeight-e.clientHeight:e.scrollWidth-e.clientWidth,n,r,i)}function Yc(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 Xc(e){return e instanceof PointerEvent&&e.pointerType===`touch`&&e.type!==`pointerup`}function Zc(e){return e!==null&&!(e instanceof Element&&e.shadowRoot)}function Qc(e){return{start:e,end:e}}function $c(e,t,n){e.setBaseAndExtent(t.node,t.offset,n.node,n.offset)}function el(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 tl(e){let t=[],n=e=>{e.scrollRange&&t.push(e);for(let t of e.children)n(t)};return n(e),t}var nl=`/* Gap decorations (specs/gap-decorations.md): css-gaps-1 rules for flex
1042
+ `,Rl=`grid`,zl=`tab`,Bl=`data-mw-semantic-selection`,Vl=[`a`,`button`,`input`,`select`,`textarea`,`label`,`summary`,`[contenteditable]:not([contenteditable='false'])`,`[tabindex]:not([tabindex='-1'], ${[`[role='grid']`,`[role='listbox']`,`[role='menu']`,`[role='menubar']`,`[role='radiogroup']`,`[role='tablist']`,`[role='tree']`,`[role='treegrid']`].join(`, `)})`,`[role='button']`,`[role^='menuitem']`,`[role='option']`,`[role='tab']`,`[role='treeitem']`,`[role='checkbox']`,`[role='radio']`,`[role='switch']`,`[role='slider']`,`[role='link']`,`[role='combobox']`].join(`, `),Hl=e=>e.parentElement??(e.parentNode instanceof ShadowRoot?e.parentNode.host:null),Ul=[`pointerover`,`pointerleave`,`pointerdown`,`pointerup`,`pointercancel`,`keydown`,`keyup`,`focusin`,`focusout`,`input`,`change`],Wl=/^(color|opacity|border-(top|right|bottom|left)-color|border-color|transform|translate|rotate|scale|filter)$/,Gl=/^(transform|translate|rotate|scale|filter)$/,Kl=3e4,ql=200,Jl=3,Yl=4,Xl=8,Zl=100,Ql=160,$l=500,eu=50;function tu(e,t,n){return n>0&&e.scrollTop<e.scrollHeight-e.clientHeight-.5||n<0&&e.scrollTop>.5||t>0&&e.scrollLeft<e.scrollWidth-e.clientWidth-.5||t<0&&e.scrollLeft>.5}function nu(e,t,n){let{maxX:r,maxY:i}=e.scrollRange,a=e.source;return n!==0&&i>0&&tu(a,0,n)||t!==0&&r>0&&tu(a,t,0)}function ru(e){let t=e.getBoundingClientRect();return new DOMRectReadOnly(t.left+e.clientLeft,t.top+e.clientTop,e.clientWidth,e.clientHeight)}var iu=typeof HTMLElement>`u`?class{}:HTMLElement,au=class e extends iu{static observedAttributes=[`select`,`focus`];static#e=new Set;static#t=null;static#n=()=>{for(let t of e.#e)t.#Et()};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=new CSSStyleSheet;#c=!1;#l;#u;#d;#f=null;#p=null;#m=globalThis.matchMedia?.(`(prefers-color-scheme: dark)`);#h=()=>this.#Et();#g=null;#_=!1;#v=null;#y=null;#b=null;#x=null;#S=!1;#C=[];#w=[];#T=new Map;#E=new WeakMap;#D=null;#O=null;#k=``;#A=-1;#j=null;#M=null;#N=!1;#P=!1;#F=!1;#I=0;#L=new gc((e,t,n)=>this.#H(e,t,n));#R=null;#z=!1;#B=[];#V(e){if(e.type!==`attributes`)return!0;let t=e.attributeName??``;return e.target===this?t===`class`||t===`style`:Gn(e.target,t)}constructor(){super(),this.#o=this.attachShadow({mode:`open`}),this.#o.innerHTML=Ll,this.#s.replaceSync(`:host { --mw-fg: canvastext; --mw-bg: canvas }`),this.#o.adoptedStyleSheets=[this.#s],this.#l=this.#o.getElementById(`grid`),this.#u=this.#o.getElementById(`layers`),this.#d=document.createElement(`span`),this.#d.setAttribute(`aria-hidden`,`true`),this.#d.setAttribute(`data-mw-probe`,``),this.#d.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.#d.textContent=`M`.repeat(100);let e=document.createElement(`span`);e.style.cssText=`display:inline-block;width:0;height:0;padding:0;margin:0;border:0`,this.#d.appendChild(e)}#H(e,t,n){let r=document.createElement(`span`);r.style.cssText=`display:inline-block;vertical-align:top;overflow:hidden;padding:0;height:${this.#v?.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.#l.appendChild(r);let a=i.getBoundingClientRect().top-r.getBoundingClientRect().top;return r.remove(),a}connectedCallback(){if(this.#c=this.parentElement?.closest(`mono-wind`)!==null,this.#c){ee(this,`A <mono-wind> inside another <mono-wind> is unsupported; it is laid out as plain content of the outer one.`);return}this.hasAttribute(`select`)||this.setAttribute(`select`,Rl),this.hasAttribute(`focus`)||this.setAttribute(`focus`,zl),this.#d.parentNode!==this&&this.appendChild(this.#d),this.#f=new ResizeObserver(()=>this.#Et()),this.#p=new MutationObserver(()=>this.#Et()),this.#m?.addEventListener(`change`,this.#h),this.#f.observe(this),this.#fe(),this.#f.observe(this.#d),window.addEventListener(`resize`,this.#St),this.#g=new MutationObserver(e=>{e.some(e=>this.#V(e))&&this.#Et()}),this.#g.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),this.#b=oe(()=>this.#Et()),this.#x=a(()=>this.#Et()),document.fonts?.ready.then(this.#Ct).catch(e=>{console.warn(`[monowind] document.fonts.ready failed:`,e)}),document.fonts?.addEventListener(`loadingdone`,this.#Ct);for(let e of Ul)this.addEventListener(e,this.#xt);this.addEventListener(`transitionrun`,this.#vt),this.addEventListener(`transitionend`,this.#yt),this.addEventListener(`transitioncancel`,this.#yt),this.addEventListener(`animationstart`,this.#ot),this.addEventListener(`animationiteration`,this.#ot),this.addEventListener(`animationend`,this.#st),this.addEventListener(`animationcancel`,this.#st),this.addEventListener(`toggle`,this.#ut,!0),this.addEventListener(`pointermove`,this.#ge),this.addEventListener(`pointerleave`,this.#qe),this.addEventListener(`pointerdown`,this.#Je),this.addEventListener(`scroll`,this.#oe,{capture:!0,passive:!0}),this.addEventListener(`scrollend`,this.#se,{capture:!0}),this.addEventListener(`wheel`,this.#le,{passive:!1}),this.addEventListener(`copy`,this.#_e),this.addEventListener(`mousedown`,this.#ve),this.addEventListener(`keydown`,this.#Ce),document.addEventListener(`selectionchange`,this.#Ge),window.addEventListener(`pointerup`,this.#Ye),window.addEventListener(`pointercancel`,this.#Ye),window.addEventListener(`mouseup`,this.#Xe,{capture:!0}),document.addEventListener(`scroll`,this.#Ze,{capture:!0,passive:!0}),e.#i(this),this.#Et()}disconnectedCallback(){window.removeEventListener(`resize`,this.#St),this.#f?.disconnect(),this.#g?.disconnect(),this.#p?.disconnect(),this.#m?.removeEventListener(`change`,this.#h),this.#f=null,this.#g=null,this.#p=null,this.#b?.(),this.#b=null,this.#x?.(),this.#x=null,document.fonts?.removeEventListener(`loadingdone`,this.#Ct);for(let e of Ul)this.removeEventListener(e,this.#xt);this.removeEventListener(`transitionrun`,this.#vt),this.removeEventListener(`transitionend`,this.#yt),this.removeEventListener(`transitioncancel`,this.#yt),this.removeEventListener(`animationstart`,this.#ot),this.removeEventListener(`animationiteration`,this.#ot),this.removeEventListener(`animationend`,this.#st),this.removeEventListener(`animationcancel`,this.#st),this.removeEventListener(`toggle`,this.#ut,!0),this.#et=0,this.#it.clear(),this.removeEventListener(`pointermove`,this.#ge),this.removeEventListener(`pointerleave`,this.#qe),this.removeEventListener(`pointerdown`,this.#Je),this.removeEventListener(`scroll`,this.#oe,{capture:!0}),this.removeEventListener(`scrollend`,this.#se,{capture:!0}),this.removeEventListener(`wheel`,this.#le),this.removeEventListener(`copy`,this.#_e),this.removeEventListener(`keydown`,this.#Ce),this.removeEventListener(`mousedown`,this.#ve),document.removeEventListener(`selectionchange`,this.#Ge);for(let e of this.#T.values())clearTimeout(e);this.#T.clear(),this.#O=null,this.#D=null,this.#xe(),window.removeEventListener(`pointerup`,this.#Ye),window.removeEventListener(`pointercancel`,this.#Ye),window.removeEventListener(`mouseup`,this.#Xe,{capture:!0}),document.removeEventListener(`scroll`,this.#Ze,{capture:!0}),this.#J=null,this.#G=null,this.#K=!1,this.#q=!1,this.#P=!1,this.#Qe(),e.#a(this)}#U=new Set;#W=new Set;#G=null;#K=!1;#q=!1;#J=null;#Y=NaN;#X=NaN;#Z=null;static#Q=typeof matchMedia>`u`?null:matchMedia(`(hover: hover)`);#$(){if(this.#S||this.#_)return;this.#S=!0;let e=!1,t=()=>{if(e)return;e=!0,this.#S=!1;let t=this.#v;this.isConnected&&this.#y&&t&&(this.#ee(t),rl(this.#w),Jc(this.#w),this.#g?.takeRecords(),this.#q=!this.#Ke(this.#y),this.#te(),this.#Qe())};requestAnimationFrame(t),setTimeout(t,50)}#ee(e,t){for(let n of this.#C){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.#ne(n,e)}}#te(){this.#N&&(this.#N=!1,this.#Se())}#ne(e,t){let n=e.source,{maxX:r,maxY:i}=e.scrollRange,a=e.scroll??{x:0,y:0};return{x:su(n,`x`,t.width,r,a.x),y:su(n,`y`,t.height,i,a.y)}}#re(){let e=new Map,t=this.#v;if(!t)return e;for(let n of this.#C){let r=n.source,{maxX:i,maxY:a}=n.scrollRange,{x:o,y:s}=this.#ne(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}#ie(e){for(let t of this.#C){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)}}#ae(e,t){clearTimeout(this.#T.get(e)),this.#T.set(e,setTimeout(()=>this.#ce(e),t))}#oe=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(this.#N=!0,this.#$(),this.#y?.anchorScrollers?.has(t)&&this.#Et(),!(Date.now()-(this.#E.get(t)??0)<ql)&&(!(`onscrollend`in window)||Date.now()-this.#I<$l?this.#ae(t,Ql):clearTimeout(this.#T.get(t))))};#se=e=>{let t=e.target;t instanceof HTMLElement&&t!==this&&t.hasAttribute(`data-mw-scroll`)&&(Date.now()-(this.#E.get(t)??0)<ql||this.#ae(t,Zl))};#ce(e){if(this.#O?.el===e)return;this.#$();let t=this.#v,n=this.#C.find(t=>t.source===e);if(!t||!n)return;let r=n.scrollRange,i=this.#ne(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`})}#le=e=>{if(this.getAttribute(`select`)!==`grid`)return;let t=this.#y,n=this.#v;if(!t||!n||this.#C.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.#de(a,o))return;let{col:s,row:c}=this.#pe(r.clientX,r.clientY,n),l=Date.now(),u=Math.abs(a)+Math.abs(o);if(u===0){this.#D=null,r.preventDefault();return}let d=e=>nu(e,a,o),f=this.#D,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)>Jl||Math.abs(r.clientY-f.y)>Jl),g=f!==null&&f.decayed>=Xl,_=f!==null&&l-f.at<ql&&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.#C.find(e=>e.source===f.el)??null}if(!v){let e=ys(t,s,c);for(let t=e.length-1;t>=0;t--){let n=e[t].node;if(!n.scrollRange||Ss(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<Yl){r.preventDefault();return}this.#D={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.scrollRange;this.#ue(v.source,y.maxX>0?a:0,y.maxY>0?o:0)};#ue(e,t,n){let r={behavior:`instant`};t!==0&&(r.left=t),n!==0&&(r.top=n),e.scrollBy(r),e.hasAttribute(`data-mw-scroll`)&&(this.#E.set(e,Date.now()),this.#ae(e,ql))}#de(e,t){return this.#B.some(n=>tu(n,e,t))}#fe(){let e=this.parentElement;if(e&&this.#f&&this.#p){this.#f.observe(e);for(let t of e.children)t!==this&&this.#f.observe(t);for(let e=Hl(this);e;e=Hl(e))this.#p.observe(e,{attributes:!0,attributeFilter:[`class`,`style`]})}}#pe(e,t,n){if(!this.#Z){let e=this.#l.getBoundingClientRect();this.#Z={left:e.left,top:e.top}}let r=e-this.#Z.left,i=t-this.#Z.top;return Cc(this.#u,r,i)??{col:Math.floor(r/n.width),row:Math.floor(i/n.height),grid:this.#l,x:0,y:0}}#me(e,t){let n=wc(this.#u,e,t);if(n){let r=Nc(n.grid,e-n.x,t-n.y);if(r!==void 0&&r!==` `)return r}return Nc(this.#l,e,t)}#he(e,t){let n=this.#y,r=this.#v;if(!n||!r||this.#C.length===0)return null;let{col:i,row:a}=this.#pe(e,t,r),o=ys(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||Ss(s.source))continue;let d=s.source,{y:f,x:p}=hs(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=gs(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=gs(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}#ge=e=>{if(lu(e))return;let{clientX:t,clientY:n}=e,r=this.#O;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.#j&&this.#Pe(this.#j,t,n),i&&this.#R&&this.#Ne(this.#R,t,n),i&&this.#z&&!this.hasAttribute(`data-mw-dragging`)&&this.setAttribute(`data-mw-dragging`,``),this.#J={x:t,y:n};let a=this.#v;if(a){let{col:e,row:r}=this.#pe(t,n,a);if(e===this.#Y&&r===this.#X)return}this.#Qe()};#_e=e=>{let{clipboardData:t}=e,n=this.#y,r=this.#We();t&&n&&r&&(t.setData(`text/plain`,Xs(n,r)),e.preventDefault())};#ve=e=>{let t=e;if(t.button!==0)return;let n=this.getAttribute(`select`),r=this.#je(t.composedPath()),i=n===`text`||n===`grid`&&!r&&t.target instanceof Element&&t.target.closest(`dialog:modal`)!==null;if(i){if(!this.#Le(t.target))return}else if(n!==`grid`||!r&&!this.#Ae(t.target))return;let a=this.#k===`mouse`||this.#k===`pen`;if(t.detail<=1){if(t.detail!==1||(this.removeAttribute(Bl),!a))return;if(i){this.#Ie(t),this.#ye(t);return}let e=this.#v,n=e?this.#pe(t.clientX,t.clientY,e):null,o=n?this.#Te(n.col,n.row):null;(!r||o||this.#Oe())&&this.#Me(t,o);return}if(!a)return;let o=t.detail===2?`word`:`paragraph`,s=document.getSelection(),c=this.#y,l=this.#v;if(!s||!c||!l)return;let{col:u,row:d}=this.#pe(t.clientX,t.clientY,l),f=this.#ze(c,u,d,o);if(!f){this.removeAttribute(Bl),this.#j=null;return}t.preventDefault(),this.#De(u,d),this.#Ue(f);let p=t.shiftKey&&s.anchorNode&&this.#We()?du({node:s.anchorNode,offset:s.anchorOffset}):f;this.#Fe(s,p,f),this.#j={unit:o,anchor:p},this.#ye(t)};#ye(e){let t=this.#y,n=this.#v;if(!this.#j||!t||!n)return;this.#xe(),e.isTrusted&&this.setPointerCapture(this.#A);let{col:r,row:i}=this.#pe(e.clientX,e.clientY,n),a=ys(t,r,i),o=null;for(let e=a.length-1;e>=0&&!o;e--){let{node:t}=a[e];t.scrollRange&&!Ss(t.source)&&(o=t.source)}let s=this.#B[0],c=o??s??document.scrollingElement??document.documentElement,l=setInterval(()=>this.#be(),eu);this.#M={el:c,page:!o&&!s,timer:l}}#be(){let e=this.#M,t=this.#v,n=this.#J;if(!e||!t||!n||!this.#K)return;let{el:r,page:i}=e,a=ws(i?new DOMRectReadOnly(0,0,r.clientWidth,r.clientHeight):ru(r),n,t),o=this.#C.find(e=>e.source===r),s=(e,t)=>o?nu(o,e,t):tu(r,e,t),c=a.x*t.width,l=a.y*t.height,u=s(c,0)?c:0,d=s(0,l)?l:0;(u!==0||d!==0)&&this.#ue(r,u,d)}#xe(){this.#M&&=(clearInterval(this.#M.timer),null)}#Se(){let e=this.#j,t=this.#J;e&&t&&this.#K&&this.#Pe(e,t.x,t.y)}#Ce=e=>{let t=e;if(this.#I=Date.now(),this.getAttribute(`focus`)!==`arrows`)return;let n=Ds(t.key);if(!n||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.defaultPrevented)return;let r=this.#y,i=t.target;if(!r||!(i instanceof Element)||i===this||Is(i,t.key,this.#wt()))return;let a=js(r),o=Ms(a,i);if(!o)return;let s=Os(n,o,a.filter(e=>e.element!==i));s&&(t.preventDefault(),s.focus({preventScroll:!0}),s.scrollIntoView({block:`nearest`,inline:`nearest`}))};#we(e,t,n){let r=Array.from(this.childNodes).filter(e=>e!==this.#d),i=pl(this,e,t);return{source:this,style:i,children:ul(this,r,e,t,n,i),text:``,intrinsicWidth:0,intrinsicHeight:0,localRect:{x:0,y:0,width:0,height:0},unclampedHeight:0,resolvedPadding:st()}}#Te(e,t){let n=this.#y,r=n?Cs(n,e,t).at(-1)?.closest(`[tabindex]`):null;return r&&this.contains(r)?r:null}#Ee(e){e?.focus({preventScroll:!0}),document.activeElement!==e&&this.#Oe()?.blur()}#De(e,t){this.#Ee(this.#Te(e,t))}#Oe(){let e=document.activeElement;return e instanceof HTMLElement&&e!==document.body&&this.contains(e)?e:null}#ke(){return this.#K&&this.#z&&!this.#R}#Ae(e){return e instanceof Element&&e!==this&&this.contains(e)&&!e.matches(Vl)}#je(e){return e.includes(this.#l)||e.includes(this.#u)}#Me(e,t){let n=this.#v;if(!n)return;let{col:r,row:i,grid:a,x:o,y:s}=this.#pe(e.clientX,e.clientY,n);e.preventDefault();let c=Lc(a,r-o,i-s);this.#R={anchor:c,grid:a,x:o,y:s},this.#Ee(t);let l=zs(a,c);l&&document.getSelection()?.setBaseAndExtent(...l,...l)}#Ne(e,t,n){let r=this.#v;if(!r)return;let i=zs(e.grid,e.anchor),{col:a,row:o}=this.#pe(t,n,r),s=zs(e.grid,Lc(e.grid,a-e.x,o-e.y));i&&s&&document.getSelection()?.setBaseAndExtent(...i,...s)}#Pe(e,t,n){let r=this.#v,i=document.getSelection();if(!r||!i)return;let{col:a,row:o}=this.#pe(t,n,r),s=this.#Re(a,o,e.unit);!s||e.extent&&pu(e.extent,s)||(e.extent=s,this.#Fe(i,e.anchor,s))}#Fe(e,t,n){if(pu(t,n)){fu(e,n.start,n.end);return}let r=t.start.node.getRootNode()===n.start.node.getRootNode(),i=r?t:this.#He(t),a=r?n:this.#He(n);Ls(i.start.node,i.start.offset,a.start.node,a.start.offset)<=0?fu(e,i.start,a.end):fu(e,i.end,a.start)}#Ie(e){let t=document.getSelection(),n=this.#v;if(!t||!n)return;let{col:r,row:i}=this.#pe(e.clientX,e.clientY,n),a=this.#Re(r,i,`character`);if(!a)return;e.preventDefault(),this.#De(r,i);let o=e.shiftKey&&t.anchorNode&&this.#We()?du({node:t.anchorNode,offset:t.anchorOffset}):du(a.start);this.#Fe(t,o,e.shiftKey?a:o),this.#j={unit:`character`,anchor:o}}#Le(e){if(e===this)return!0;if(!(e instanceof Element)||!this.contains(e))return!1;let t=e.closest(Vl);return!t||t===this||!this.contains(t)}#Re(e,t,n){let r=this.#y;if(!r)return null;let i={x:0,y:0,width:r.localRect.width,height:r.localRect.height},a=Math.max(0,Math.min(e,i.width-1)),o=Math.max(0,Math.min(t,i.height-1)),s=ys(r,a,o).at(-1);if(s&&Ss(s.node.source))return null;let c=s?[vs(s.node,s.x,s.y),i]:[i];for(let e of c)for(let t of Ts(e.width,e.height,a-e.x,o-e.y)){let a=e.x+t.x,o=e.y+t.y,{edge:c}=t,l=this.#me(a,o);if(l===void 0||l===` `&&c!==`self`)continue;let u=this.#ze(r,a,o,n,e===i?null:s.node);if(u)return c===`self`||n!==`character`?u:du(c===`start`?u.start:u.end)}return null}#ze(e,t,n,r,i=null){let a=ys(e,t,n);if(i&&!a.some(e=>e.node===i))return null;for(let e=a.length-1;e>=0;e--){let{node:i,x:o,y:s}=a[e];if(oc(i))return Ss(i.source)?null:this.#Be(i,o,s,t,n,r)}return oc(e)?this.#Be(e,0,0,t,n,r):null}#Be(e,t,n,r,i,a){let o=ps(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]!==`
1043
+ `;)t++;let n=Us(e,o),r=Us(e,t);if(n&&r)return{start:n,end:r}}if(a===`word`){let t=ae(e.source.tagName)?Gr(e.text).find(e=>o>=e.start&&o<e.end):uc(e,o),n=t&&Us(e,t.start),r=t&&Us(e,t.end);if(n&&r)return{start:n,end:r}}return this.#Ve(e)}#Ve(e){if(e===this.#y||e.anonymous)return nc(e);let t=ae(e.source.tagName)?.selectionTarget?.(e.source)??e.source;return{start:{node:t,offset:0},end:{node:t,offset:t.childNodes.length}}}#He(e){let t=e.start.node.getRootNode();if(!(t instanceof ShadowRoot)||t===this.#l.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:uu(a)?{node:a,offset:a instanceof Text?a.length:a.childNodes.length}:{node:r,offset:i},end:uu(o)?{node:o,offset:0}:{node:r,offset:i+1}}}#Ue(e){this.setAttribute(Bl,``);let t=e.start.node,n=t instanceof Element?t:t.parentElement;n&&getComputedStyle(n).userSelect}#We(){let e=this.#y,t=Ws(this.#l.getRootNode(),e?qs(e):[]);return!t||Gs(this,this.#l,t)!==`light`||t.startContainer===t.endContainer&&t.startOffset===t.endOffset?null:t}#Ge=()=>{let e=this.#We()!==null;this.hasAttribute(Bl)&&!e&&this.removeAttribute(Bl),(e||this.#F)&&this.#y&&this.#$(),this.#F=e};#Ke(e,t=!0){let n=this.#We(),r=this.#v;return bc(e,this.#l,{holdStructural:this.#ke(),glyphs:this.#L,selection:n?Ys(e,n):void 0,cell:r?{width:r.width,height:r.height}:void 0,layers:this.#u,placeLayers:t})}#qe=()=>{this.#J=null,this.#Qe()};#Je=e=>{let t=e;if(!t.isPrimary||t.button!==0||(this.#k=t.pointerType,this.#A=t.pointerId,this.#P=!1,lu(t)))return;let n=this.#he(t.clientX,t.clientY);if(n){this.#O=n,t.preventDefault(),t.isTrusted&&this.setPointerCapture(t.pointerId);return}this.#J={x:t.clientX,y:t.clientY},this.#K=!0,this.#z=this.#je(t.composedPath()),this.#Qe(!0)};#Ye=e=>{if(e.isPrimary){if(this.#P=e.type===`pointerup`&&this.#j!==null,this.#j=null,this.#xe(),this.#R=null,this.#z=!1,this.removeAttribute(`data-mw-dragging`),this.#O){this.#ce(this.#O.el),this.#O=null;return}(this.#K||this.#G)&&(this.#K=!1,this.#G=null,this.#Qe(),this.#q&&this.#Et())}};#Xe=e=>{this.#P&&(this.#P=!1,e.preventDefault())};#Ze=e=>{let t=e.target;t instanceof HTMLElement&&t.hasAttribute(`data-mw-scroll`)||(this.#Z=null,this.#pt(),this.#J&&(this.#Se(),this.#Qe()))};#Qe(t=!1){let n=this.#y,r=this.#v,i=[];if(this.#J&&n&&r&&this.isConnected&&this.getAttribute(`select`)===`grid`&&(this.#K||e.#Q?.matches)){let{col:e,row:t}=this.#pe(this.#J.x,this.#J.y,r);this.#Y=e,this.#X=t,i=Cs(n,e,t)}else this.#Y=NaN,this.#X=NaN;let a=i.at(-1)??null;t&&(this.#G=a);let o=e.#Q?.matches?i:[],s=this.#G?i.indexOf(this.#G):-1,c=s>=0?i.slice(0,s+1):[],l=this.#$e(`data-mw-hover`,this.#U,o);l=this.#$e(`data-mw-active`,this.#W,c)||l;let u=a?getComputedStyle(a).cursor:``;for(let e of[this.#l,this.#u])e.style.cursor=u===`auto`?``:u;l&&this.isConnected&&this.#Et()}#$e(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}#et=0;#tt=0;#nt=!1;#rt=0;#it=new Map;#at=null;#ot=e=>{let t=e.target;t instanceof Element&&this.#ct(t)&&!this.#it.has(t)&&(this.#mt(t),this.#Et())};#st=e=>{let t=e.target;t instanceof Element&&this.#ct(t)&&this.#Et()};#ct(e){return e!==this&&this.contains(e)}#lt=new Me;#ut=e=>{let t=e.target;t instanceof Element&&this.#ct(t)&&(je(t)&&this.#lt.enter(t),this.#Et())};get#dt(){return this.#s.cssRules[0].style}#ft(e){let t=e.backgroundColor;for(let e=Hl(this);e&&bt(t);e=Hl(e))t=getComputedStyle(e).backgroundColor;let n=this.#dt,r=e.color,i=bt(t)?`canvas`:t;n.getPropertyValue(`--mw-fg`)!==r&&n.setProperty(`--mw-fg`,r),n.getPropertyValue(`--mw-bg`)!==i&&n.setProperty(`--mw-bg`,i)}#pt(){if(!this.#y?.topLayer)return;let e=this.#l.getBoundingClientRect(),t=this.#dt,[n,r]=[`${e.left}px`,`${e.top}px`];t.getPropertyValue(`--mw-ox`)!==n&&t.setProperty(`--mw-ox`,n),t.getPropertyValue(`--mw-oy`)!==r&&t.setProperty(`--mw-oy`,r)}#mt(e){this.#it.set(e,this.#ht(e)??`layout`),this.#bt()}#ht(e){return he(pe(e),this.#gt(e))}#gt(e){return this.#y?(this.#at??=P(this.#y),this.#at.get(e)??null):null}#_t(){let e=this.#y;if(e){for(let[e,t]of this.#it){if(t!==`paint`)continue;let n=this.#gt(e);n&&Object.assign(n.style,bn(getComputedStyle(e)))}this.#q=!this.#Ke(e)}}#vt=e=>{let t=e.propertyName;Wl.test(t)&&(Gl.test(t)?(this.#tt++,this.#Et()):this.#et++,this.#rt=performance.now(),this.#bt())};#yt=e=>{let t=e.propertyName;if(t===`display`||t===`overlay`){this.#Et();return}Wl.test(t)&&(Gl.test(t)?this.#tt=Math.max(0,this.#tt-1):this.#et=Math.max(0,this.#et-1))};#bt(){if(this.#nt)return;this.#nt=!0;let e=()=>{for(let e of this.#it.keys()){let t=this.#ct(e)?this.#ht(e):null;t?this.#it.set(e,t):this.#it.delete(e)}performance.now()-this.#rt>Kl&&(this.#et=0,this.#tt=0);let t=new Set(this.#it.values()),n=this.#et>0||xe()||t.has(`layout`);if(!this.isConnected||!n&&this.#tt===0&&this.#it.size===0){this.#nt=!1,this.#Et();return}n?this.#Tt():t.has(`paint`)?this.#_t():Sc(this.#u),requestAnimationFrame(e)};requestAnimationFrame(e)}#xt=e=>{if(!lu(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.#Tt();return}this.#Et()}};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".`,te(this)),this.setAttribute(`focus`,zl));return}if(e===`select`&&n!==`text`&&n!==`grid`){n!==null&&console.warn(`[monowind] Ignoring unrecognized select="${n}". Expected "grid" (default) or "text".`,te(this)),this.setAttribute(`select`,Rl);return}e===`select`&&this.#Qe(),this.#Et()}toPlainText(){return this.#_&&this.#Dt(),this.#y?Ho(this.#y):``}#St=()=>{this.#Et()};#Ct=()=>{requestAnimationFrame(()=>{this.#L.invalidate(),this.#Et()})};#wt(){let e=document.activeElement;if(!(e instanceof HTMLSelectElement)||!this.contains(e))return!1;try{return e.matches(`:open`)}catch{return!1}}#Tt(){try{this.#Dt()}catch(e){console.error(`[monowind] layout failed:`,e)}}#Et(){this.#_||this.#c||(this.#_=!0,requestAnimationFrame(()=>{if(this.#_=!1,this.#wt()){this.#Et();return}this.#Tt()}))}#Dt(){if(!this.isConnected)return;let e=this.#re(),t=new Map,n=getComputedStyle(this);this.#ft(n);let r=n.getPropertyValue(`--mw-cw`).trim(),i=parseFloat(r);if(Number.isFinite(i)&&i>0)for(let e of this.querySelectorAll(`textarea`)){let n=getComputedStyle(e),r=e.clientWidth-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0);t.set(e,Math.max(0,Math.round(r/i)))}this.setAttribute(`measuring`,``);try{this.#d.parentNode!==this&&this.appendChild(this.#d);let n=et(this,this.#d),r=this.#v;if(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.style.setProperty(`--mw-base`,`${n.baseline??0}px`);for(let e of[this.#l,this.#u])e.style.lineHeight=`${n.height}px`,e.style.letterSpacing=`${n.gridLetterSpacing??n.letterSpacing}px`}this.#v=n;let i=getComputedStyle(this.#l);this.#L.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=tt(),l=fl(this,c,n,t)??this.#we(c,n,t),{height:u}=ao(l,s,t=>{this.#C=mu(t),this.#ee(n,e)});this.#lt.assign(l),Vc(l),this.#w=tl(l),rl(this.#w),Jc(this.#w),this.#q=!this.#Ke(l,!1),this.#y=l,this.#at=null;let d=`${l.localRect.width*n.width}px`,f=`${l.localRect.height*n.height}px`;this.#l.style.width!==d&&(this.#l.style.width=d),this.#l.style.height!==f&&(this.#l.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`),Sc(this.#u),this.#ie(e),this.#g?.takeRecords();for(let e of me(this))this.#it.has(e)||this.#mt(e);be(this)&&(xe()?(this.#rt=performance.now(),this.#bt()):this.#Et()),this.#fe(),this.#B=[];let t=document.scrollingElement??document.documentElement;for(let e=this.parentElement;e;e=e.parentElement)(e===t||/auto|scroll/.test(getComputedStyle(e).overflow))&&this.#B.push(e);this.#Z=null,this.#pt(),this.#te(),this.#J&&this.#Qe()}}};function ou(){typeof customElements<`u`&&(customElements.get(`mono-wind`)||customElements.define(`mono-wind`,au))}function su(e,t,n,r,i){return cu(t===`y`?e.scrollTop:e.scrollLeft,t===`y`?e.scrollHeight-e.clientHeight:e.scrollWidth-e.clientWidth,n,r,i)}function cu(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 lu(e){return e instanceof PointerEvent&&e.pointerType===`touch`&&e.type!==`pointerup`}function uu(e){return e!==null&&!(e instanceof Element&&e.shadowRoot)}function du(e){return{start:e,end:e}}function fu(e,t,n){e.setBaseAndExtent(t.node,t.offset,n.node,n.offset)}function pu(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 mu(e){let t=[],n=e=>{e.scrollRange&&t.push(e);for(let t of e.children)n(t)};return n(e),t}var hu=`/* Gap decorations (specs/gap-decorations.md): css-gaps-1 rules for flex
1033
1044
  * and grid gaps, engine-painted as glyph runs. The utilities set the
1034
1045
  * real CSS properties (forward-compat; unknown ones drop harmlessly)
1035
1046
  * AND the --mw-* mirrors the engine reads — compiled by the consumer's
@@ -1257,15 +1268,24 @@ input:where([type='button'], [type='reset'], [type='submit']),
1257
1268
  inherits: false;
1258
1269
  initial-value: 0;
1259
1270
  }
1260
- `,rl=`/* monowind companion stylesheet — loaded into the light DOM by the app.
1271
+ `,gu=`
1272
+ @layer theme, base;
1273
+
1274
+ /* monowind companion stylesheet — loaded into the light DOM by the app.
1261
1275
  * The shadow root has its own baked-in styles; this file targets the light-DOM
1262
1276
  * subtree the host owns.
1263
1277
  *
1264
- * Layering: defaults and normalization that USERS may override live in
1265
- * \`@layer base\` — Tailwind's utilities layer (and any unlayered author CSS)
1266
- * then wins over them, matching Tailwind's own preflight behavior. Rules the
1267
- * ENGINE owns (geometry, typography locking, alignment/overflow enforcement)
1268
- * stay unlayered with \`!important\` so no utility can push content off-grid. */
1278
+ * Layering, on Tailwind's layer names: defaults and normalization that
1279
+ * USERS may override live in \`@layer base\` — Tailwind's utilities layer
1280
+ * (and any unlayered author CSS) then wins over them, matching Tailwind's
1281
+ * own preflight behavior. The locks the ENGINE owns (geometry, typography,
1282
+ * the paint the grid takes over) live in \`@layer theme\`, the first layer,
1283
+ * with \`!important\`: among important declarations the earliest layer
1284
+ * wins, so they beat every later layer's, a utility's \`!\` modifier
1285
+ * included, and any unlayered author \`!important\`; only an inline
1286
+ * \`style\` marked important (element-attached) and a running transition
1287
+ * still beat them. The plain engine rules stay unlayered, ahead of every
1288
+ * layer's plain declarations. */
1269
1289
 
1270
1290
  /* Gap-decoration utilities + engine mirrors (specs/gap-decorations.md)
1271
1291
  * and the synthesized pointer-state variants — Tailwind source, split
@@ -1518,6 +1538,8 @@ input:where([type='button'], [type='reset'], [type='submit']),
1518
1538
  }
1519
1539
  }
1520
1540
  @custom-variant active (&:is(:active, [data-mw-active]));
1541
+ /* Tailwind's order for the two layers this file uses, so a page that
1542
+ * loads the companion before Tailwind orders them the same way. */
1521
1543
  @layer base {
1522
1544
  mono-wind {
1523
1545
  display: block;
@@ -1537,10 +1559,8 @@ input:where([type='button'], [type='reset'], [type='submit']),
1537
1559
  * them in Safari (faces with a real bold are unaffected); synthetic
1538
1560
  * oblique only slants, so style synthesis stays allowed. */
1539
1561
  font-synthesis: style;
1540
- /* Themable fg / bg pair for the focus-invert default. System
1541
- * colors honor the viewer's color scheme; authors override. */
1542
- --mw-fg: canvastext;
1543
- --mw-bg: canvas;
1562
+ /* \`--mw-fg\`/\`--mw-bg\` are the engine's, derived from the host's
1563
+ * colors into its shadow's \`:host\` rule (specs/theming.md). */
1544
1564
  /* ANSI-16 theme tokens (specs/theming.md): what SGR-colored ascii
1545
1565
  * art and effect filters resolve against, so a "red" follows the
1546
1566
  * theme. Defaults follow the VS Code terminal palette. */
@@ -1638,23 +1658,47 @@ input:where([type='button'], [type='reset'], [type='submit']),
1638
1658
  overflow: clip;
1639
1659
  }
1640
1660
 
1661
+ /* A top-layer element is a surface of the host's, as the UA makes
1662
+ * it one of the canvas's (specs/top-layer.md): the derived tokens in
1663
+ * place of Canvas and CanvasText; \`bg-clear\` sees through. */
1664
+ mono-wind :is([popover], dialog) {
1665
+ color: var(--mw-fg);
1666
+ background-color: var(--mw-bg);
1667
+ }
1668
+
1641
1669
  /* :focus-visible on ANY element: TUI-native invert. Outlines off
1642
1670
  * (they'd clip against grid glyphs). Where each declaration lands:
1643
1671
  * bg only shows via the grid (engine reads it during [measuring];
1644
1672
  * the light-DOM bg is transparent-locked below); color/caret-color
1645
1673
  * paint on editables (they're the ones exempted from the
1646
1674
  * color-transparent lock), and get grid-mirrored by the engine for
1647
- * everyone else. */
1675
+ * everyone else. A composite's container (a menu, a listbox) has its
1676
+ * items for its focus indication; interactive.test.ts holds the list
1677
+ * equal to COMPOSITE in element.ts. */
1648
1678
  mono-wind :focus-visible {
1649
1679
  outline: none;
1680
+ }
1681
+ mono-wind
1682
+ :focus-visible:not(
1683
+ [role="grid"],
1684
+ [role="listbox"],
1685
+ [role="menu"],
1686
+ [role="menubar"],
1687
+ [role="radiogroup"],
1688
+ [role="tablist"],
1689
+ [role="tree"],
1690
+ [role="treegrid"]
1691
+ ) {
1650
1692
  background-color: var(--mw-fg);
1651
1693
  color: var(--mw-bg);
1652
1694
  caret-color: var(--mw-bg);
1653
1695
  }
1654
1696
  /* Grid-mode light elements carry the grid's text cursor: Firefox
1655
1697
  * hit-tests a multicol spanner's anonymous wrapper as its container
1656
- * despite \`pointer-events: none\`, and would show an arrow there.
1657
- * Interactives keep their own (UA and authored cursors win). */
1698
+ * despite \`pointer-events: none\`, and would show an arrow there. The
1699
+ * interactives (specs/cell-model.md "Pointer states") keep their own;
1700
+ * interactive.test.ts holds this list equal to INTERACTIVE in
1701
+ * element.ts. */
1658
1702
  mono-wind[select="grid"]
1659
1703
  :is([data-mw-laid-out], [data-mw-flow], [data-mw-float]):not(
1660
1704
  a,
@@ -1663,8 +1707,30 @@ input:where([type='button'], [type='reset'], [type='submit']),
1663
1707
  select,
1664
1708
  textarea,
1665
1709
  label,
1666
- [tabindex],
1667
- [role="button"]
1710
+ summary,
1711
+ [contenteditable]:not([contenteditable="false"]),
1712
+ [tabindex]:not(
1713
+ [tabindex="-1"],
1714
+ [role="grid"],
1715
+ [role="listbox"],
1716
+ [role="menu"],
1717
+ [role="menubar"],
1718
+ [role="radiogroup"],
1719
+ [role="tablist"],
1720
+ [role="tree"],
1721
+ [role="treegrid"]
1722
+ ),
1723
+ [role="button"],
1724
+ [role^="menuitem"],
1725
+ [role="option"],
1726
+ [role="tab"],
1727
+ [role="treeitem"],
1728
+ [role="checkbox"],
1729
+ [role="radio"],
1730
+ [role="switch"],
1731
+ [role="slider"],
1732
+ [role="link"],
1733
+ [role="combobox"]
1668
1734
  ) {
1669
1735
  cursor: text;
1670
1736
  }
@@ -1672,26 +1738,61 @@ input:where([type='button'], [type='reset'], [type='submit']),
1672
1738
 
1673
1739
  /* === Modes and selection (engine-owned from here down) =============== */
1674
1740
 
1675
- /* select="grid": pass pointer events through non-interactive light-DOM
1676
- * elements so drag lands on the grid <pre> (native drag-selection of
1677
- * the ASCII); interactives opt back into \`auto\` so clicks still work.
1678
- * (The slot itself is pointer-events: none in the shadow CSS.) The
1679
- * interactive list is mirrored by INTERACTIVE in element.ts and by the
1680
- * two rules below change all of them together. */
1741
+ /* select="grid": pointer events pass through the light DOM so a drag
1742
+ * lands on the grid <pre>; the interactives opt back in for clicks,
1743
+ * except during a grid drag, so the selection sweeps through their
1744
+ * cells. The list repeats the cursor rule's: these rules must be
1745
+ * important (a library writes inline pointer-events on its layers) and
1746
+ * unlayered, out of the lock layer (an author's \`pointer-events-none!\`
1747
+ * or \`pointer-events-auto!\` still wins), the cursor rule layered and
1748
+ * plain (an author's cursor wins). interactive.test.ts holds the two
1749
+ * lists equal to INTERACTIVE in element.ts. */
1681
1750
  mono-wind[select="grid"] * {
1682
1751
  pointer-events: none !important;
1683
1752
  }
1684
- mono-wind[select="grid"]
1685
- :is(a, button, input, select, textarea, label, [tabindex], [role="button"]) {
1753
+ mono-wind[select="grid"]:not([data-mw-dragging])
1754
+ :is(
1755
+ a,
1756
+ button,
1757
+ input,
1758
+ select,
1759
+ textarea,
1760
+ label,
1761
+ summary,
1762
+ [contenteditable]:not([contenteditable="false"]),
1763
+ [tabindex]:not(
1764
+ [tabindex="-1"],
1765
+ [role="grid"],
1766
+ [role="listbox"],
1767
+ [role="menu"],
1768
+ [role="menubar"],
1769
+ [role="radiogroup"],
1770
+ [role="tablist"],
1771
+ [role="tree"],
1772
+ [role="treegrid"]
1773
+ ),
1774
+ [role="button"],
1775
+ [role^="menuitem"],
1776
+ [role="option"],
1777
+ [role="tab"],
1778
+ [role="treeitem"],
1779
+ [role="checkbox"],
1780
+ [role="radio"],
1781
+ [role="switch"],
1782
+ [role="slider"],
1783
+ [role="link"],
1784
+ [role="combobox"]
1785
+ ) {
1686
1786
  pointer-events: auto !important;
1687
1787
  }
1688
- /* While a drag that began on the grid is in flight, interactives drop
1689
- * their pointer events too, so the native selection sweeps through
1690
- * their cells instead of stalling at their edge (a click is a press and
1691
- * release in place — unaffected). */
1692
- mono-wind[select="grid"][data-mw-dragging]
1693
- :is(a, button, input, select, textarea, label, [tabindex], [role="button"]) {
1694
- pointer-events: none !important;
1788
+ /* A modal dialog blocks the page, the grid included (specs/top-layer.md
1789
+ * deviation 7): inside it, grid mode falls back to the light DOM's own
1790
+ * pointer events and selection, the highlight showing over the grid as
1791
+ * in text mode. */
1792
+ mono-wind[select="grid"] :is(dialog:modal, dialog:modal *) {
1793
+ pointer-events: auto !important;
1794
+ user-select: text;
1795
+ -webkit-user-select: text;
1695
1796
  }
1696
1797
  /* The grid-mode selection lock, explicit on the light DOM: the shadow
1697
1798
  * slot's \`user-select: none\` reaches slotted content in Chromium and
@@ -1729,11 +1830,13 @@ mono-wind[select="grid"]:where(:not([data-mw-semantic-selection]))
1729
1830
  /* Scroll containers (specs/scrolling.md): the gutter ink IS the
1730
1831
  * scrollbar — native bars hidden. Measuring-gated so the authored
1731
1832
  * scrollbar-width/-color stay readable during the style pass. */
1732
- mono-wind:not([measuring]) [data-mw-scroll] {
1733
- scrollbar-width: none !important;
1734
- }
1735
- mono-wind:not([measuring]) [data-mw-scroll]::-webkit-scrollbar {
1736
- display: none;
1833
+ @layer theme {
1834
+ mono-wind:not([measuring]) [data-mw-scroll] {
1835
+ scrollbar-width: none !important;
1836
+ }
1837
+ mono-wind:not([measuring]) [data-mw-scroll]::-webkit-scrollbar {
1838
+ display: none !important;
1839
+ }
1737
1840
  }
1738
1841
  /* The scroll-range spacer: pins the native scrollable overflow to the
1739
1842
  * ENGINE's range (--mw-se-* = max + box, written by render.ts) so
@@ -1762,16 +1865,20 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
1762
1865
  * width, so a shrinking container still shrinks the host natively;
1763
1866
  * !important because the cap never exceeds the natural width it was
1764
1867
  * measured from, whatever max-width the author set (inline included). */
1765
- mono-wind:not([measuring]) {
1766
- max-width: var(--mw-host-w) !important;
1868
+ @layer theme {
1869
+ mono-wind:not([measuring]) {
1870
+ max-width: var(--mw-host-w) !important;
1871
+ }
1767
1872
  }
1768
1873
 
1769
1874
  /* Hide the host until the first layout completes to avoid the flash of raw
1770
1875
  * browser-rendered content (flex without our decorations, elements at their
1771
1876
  * natural sizes). \`visibility: hidden\` preserves layout & measurability so
1772
1877
  * cell metrics can still be probed while invisible. */
1773
- mono-wind:not([data-mw-ready]) {
1774
- visibility: hidden !important;
1878
+ @layer theme {
1879
+ mono-wind:not([data-mw-ready]) {
1880
+ visibility: hidden !important;
1881
+ }
1775
1882
  }
1776
1883
 
1777
1884
  /* A light-DOM selection is painted on the grid — inverted cells from the
@@ -1784,12 +1891,14 @@ mono-wind:not([data-mw-ready]) {
1784
1891
  * paint selections themselves and strip backgrounds, so the native
1785
1892
  * highlight stays there. */
1786
1893
  @media (forced-colors: none) {
1787
- mono-wind:not([measuring])[data-mw-leaf]::selection,
1788
- mono-wind:not([measuring])
1789
- :where(:not(input, textarea, select, [contenteditable], [contenteditable] *))::selection {
1790
- color: transparent !important;
1791
- text-shadow: none !important;
1792
- background: transparent !important;
1894
+ @layer theme {
1895
+ mono-wind:not([measuring])[data-mw-leaf]::selection,
1896
+ mono-wind:not([measuring])
1897
+ :where(:not(input, textarea, select, [contenteditable], [contenteditable] *))::selection {
1898
+ color: transparent !important;
1899
+ text-shadow: none !important;
1900
+ background: transparent !important;
1901
+ }
1793
1902
  }
1794
1903
  /* An editable renders its own text, and Chromium and WebKit hand it
1795
1904
  * its parent's \`::selection\` (css-pseudo-4 highlight inheritance —
@@ -1805,490 +1914,551 @@ mono-wind:not([data-mw-ready]) {
1805
1914
 
1806
1915
  /* === Typography locks and measuring gates ============================ */
1807
1916
 
1808
- /* Lock the font on descendants so the grid metrics stay consistent —
1809
- * \`!important\` because user classes (\`.text-2xl\` etc.) would otherwise beat
1810
- * these element-selector rules on specificity. */
1811
- mono-wind * {
1812
- font-family: inherit !important;
1813
- font-size: inherit !important;
1814
- }
1815
-
1816
- /* Lock toggles must never become native animations: an authored
1817
- * \`transition\` would otherwise ANIMATE them — a background flashes to
1818
- * its real value while \`[measuring]\` lifts the lock, and the snap back
1819
- * to transparent starts a native fade that paints the light-DOM
1820
- * element ON TOP of the grid (transitions beat even \`!important\`
1821
- * declarations in the cascade). Restricting \`transition-property\` to
1822
- * the SAMPLED properties (which no lock toggles — color stays live
1823
- * under the text-fill lock, and nothing touches border colors or
1824
- * opacity) snaps everything lock-owned while keeping in-flight fades
1825
- * of the sampled properties alive ACROSS measuring passes. The engine
1826
- * swaps \`[measuring]\` for \`[settling]\` and forces one style flush
1827
- * before unmasking, so the snap-back delta always commits masked;
1828
- * outside both attributes the authored list is live and fully
1829
- * respected — background fades, which can never run natively, are
1830
- * synthesized by the engine instead. */
1831
- mono-wind[measuring],
1832
- mono-wind[measuring] *,
1833
- mono-wind[settling],
1834
- mono-wind[settling] * {
1835
- transition-property: color, border-color, opacity !important;
1836
- }
1837
-
1838
- /* Grid-template read assist (specs/grid.md), no-Typed-OM engines only
1839
- * (Firefox pre-157): getComputedStyle on a live grid container returns
1840
- * the USED \`grid-template-*\` track list (expanded px) — the authored
1841
- * fr/repeat/minmax structure is gone. The style reader sets this
1842
- * attribute for the duration of the read; blockifying the element makes
1843
- * getComputedStyle return the COMPUTED value, structure intact.
1844
- * \`!important\` so inline \`style="display: grid"\` can't defeat the read. */
1845
- mono-wind[measuring] [data-mw-degrid] {
1846
- display: block !important;
1847
- }
1848
-
1849
- /* Grid-quantized typography and the wrap model (specs/cell-model.md). Gated
1850
- * on \`measuring\` (unlike the font lock above) so the style reader sees the
1851
- * AUTHORED white-space / letter-spacing / line-height — that's how nowrap,
1852
- * tracking, and leading are detected without echoing our own output.
1853
- *
1854
- * letter-spacing: the root's own (\`--mw-rls\`, part of the cell) plus
1855
- * \`--mw-ls\` extra cells per character, which the engine writes on every
1856
- * element it visits; an element without the var makes this declaration
1857
- * invalid at computed-value time, so the property falls back to inheriting
1858
- * the parent's grid-exact value. line-height is inherited from the
1859
- * laid-out ancestor (which sets the row multiple below) — \`leading-*\` on
1860
- * inline elements is ignored by design. */
1861
- mono-wind:not([measuring]) * {
1862
- /* Baseline-shift lock (cell-model): gated like the rest, so the style
1863
- * reader sees the authored/UA vertical-align (table cells read it). */
1864
- vertical-align: baseline !important;
1865
- white-space: normal !important;
1866
- overflow-wrap: anywhere !important;
1867
- letter-spacing: calc(var(--mw-rls, 0px) + var(--mw-ls) * var(--mw-cw, 1px)) !important;
1868
- line-height: inherit !important;
1869
- /* Backgrounds paint in the grid too, so the light DOM's own bg goes
1870
- * transparent — otherwise it would cover the grid (light DOM sits
1871
- * ON TOP of the grid in the shadow tree so native selection
1872
- * highlights can show through). The engine still reads authored
1873
- * background-color during [measuring] (this rule is off then), so
1874
- * bg-* and focus-invert both make it into the grid paint. */
1875
- background-color: transparent !important;
1876
- /* Gradients paint in the grid as a color per cell (specs/gradients.md),
1877
- * read during [measuring] like the color. */
1878
- background-image: none !important;
1879
- text-shadow: none !important;
1880
- /* Shadows paint in the grid as shades (specs/box-shadow.md), read
1881
- * during [measuring] like backgrounds. */
1882
- box-shadow: none !important;
1883
- /* Inline-element horizontal padding, quantized: the engine writes
1884
- * \`--mw-ipl\`/\`--mw-ipr\` (whole cells) on inline elements whose authored
1885
- * padding it reserved in the run; everything else gets 0, so raw
1886
- * off-grid padding never renders. Laid-out elements and atomic inline
1887
- * boxes override this with their own engine-owned padding rule (higher
1888
- * specificity). Vertical inline padding never moves layout, per CSS,
1889
- * and passes through untouched. */
1890
- padding-left: calc(var(--mw-ipl, 0) * var(--mw-cw, 1px)) !important;
1891
- padding-right: calc(var(--mw-ipr, 0) * var(--mw-cw, 1px)) !important;
1892
- }
1893
-
1894
- /* Light-DOM text goes invisible so the grid is the only visible copy;
1895
- * form controls opt out because they render their value/caret/selection
1896
- * natively (the tree builder skips their content so the grid doesn't
1897
- * double-render). Events, ARIA, focus, selection all still work.
1898
- * \`-webkit-text-fill-color\` (universal support), NOT \`color\`: it hides
1899
- * the ink while computed \`color\` stays LIVE — authored transitions run
1900
- * on it for real and the engine samples true mid-fade values (the
1901
- * animation loop, element.ts). Decoration ink follows \`color\`, so it
1902
- * needs its own transparent lock (the grid paints decorations).
1903
- * \`[data-mw-leaf]\` is the host with its own text on the grid — the root
1904
- * leaf, or a mixed host's anonymous runs (specs/host-leaf.md): every
1905
- * rule that shapes a leaf's native text carries this host variant —
1906
- * render.ts writes the host's flags. */
1907
- mono-wind:not([measuring])[data-mw-leaf],
1908
- mono-wind:not([measuring]) *:not(input):not(textarea):not(select) {
1909
- -webkit-text-fill-color: transparent !important;
1910
- text-decoration-color: transparent !important;
1911
- }
1912
-
1913
- /* Form controls escape the fill lock by INHERITANCE, not just by the
1914
- * exclusion above: text-fill-color inherits and has no UA default on
1915
- * controls (unlike \`color\`), so without this reset an input under any
1916
- * locked ancestor would inherit transparent ink. */
1917
- mono-wind:not([measuring]) input,
1918
- mono-wind:not([measuring]) textarea,
1919
- mono-wind:not([measuring]) select {
1920
- -webkit-text-fill-color: currentColor !important;
1921
- }
1922
-
1923
- /* Author-requested \`white-space: nowrap\` (or \`pre\`) — the engine sized this
1924
- * box for unwrapped hard lines, so the browser must not wrap either. Wins
1925
- * over the lock above on specificity. */
1926
- mono-wind:not([measuring])[data-mw-nowrap],
1927
- mono-wind:not([measuring]) [data-mw-nowrap] {
1928
- white-space: nowrap !important;
1929
- }
1930
-
1931
- /* \`white-space: pre\` leaves (specs/cell-model.md): the tree builder kept
1932
- * the source's spaces and newlines in the run, so the browser must render
1933
- * them too — on the leaf AND its inline descendants (the lock above would
1934
- * collapse text inside nested spans). Later than the nowrap rule, so it
1935
- * wins on the leaf itself at equal specificity. */
1936
- mono-wind:not([measuring])[data-mw-pre],
1937
- mono-wind:not([measuring])[data-mw-pre] *,
1938
- mono-wind:not([measuring]) [data-mw-pre],
1939
- mono-wind:not([measuring]) [data-mw-pre] * {
1940
- white-space: pre !important;
1941
- }
1942
-
1943
- /* Truncation (\`truncate\` = nowrap + clip + text-overflow: ellipsis): use
1944
- * \`hidden\` rather than the normalized \`clip\` for this combo — some engines
1945
- * only apply \`text-overflow\` to scroll containers, which \`clip\` boxes are
1946
- * not. Wins over the \`[data-mw-clip]\` rule below on specificity. */
1947
- mono-wind:not([measuring]) [data-mw-nowrap][data-mw-clip] {
1948
- overflow: hidden !important;
1949
- }
1950
-
1951
- /* === Engine-owned geometry =========================================== */
1952
-
1953
- /* Every CSS property the engine has taken over on laid-out elements.
1954
- * Gated on the \`measuring\` attribute so the style reader still sees the
1955
- * authored values during its read pass. Being unlayered already beats all
1956
- * layered CSS (e.g. Tailwind utilities); the \`!important\` additionally
1957
- * defends against inline \`style=""\` attributes (hand-written or CSS-in-JS)
1958
- * and high-specificity unlayered author CSS. Known escape hatch: Tailwind's
1959
- * \`!\` modifier (important-in-layer) still wins, per the cascade spec.
1960
- *
1961
- * Geometry: position/box-sizing/left/top/width/height + min/max — set from
1962
- * the engine-owned --mw-x/y/w/h custom properties.
1963
- *
1964
- * Neutralized: border-width (painted as glyphs by the shadow grid),
1965
- * margin (position:absolute + margin still nudges the element off-grid).
1966
- *
1967
- * Owned via \`--mw-p{t,r,b,l}\` (padding) and \`--mw-b{t,r,b,l}\` (border cells):
1968
- * both must land on whole cells. The browser applies the sum as native
1969
- * padding since we've zeroed native border-width — this way, content sits
1970
- * inset by exactly the (border + padding) cells the engine planned for.
1971
- *
1972
- * Left alone: flex/grid/gap/justify/align — laid-out children are all
1973
- * position:absolute (out of flow), so nothing consumes them anyway. */
1974
- mono-wind:not([measuring]) [data-mw-laid-out] {
1975
- position: absolute !important;
1976
- /* A sticky box's shift for the scroll rides beside its position
1977
- * (specs/sticky.md). */
1978
- left: calc((var(--mw-x, 0) + var(--mw-sx, 0)) * var(--mw-cw, 1px)) !important;
1979
- top: calc((var(--mw-y, 0) + var(--mw-sy, 0)) * var(--mw-ch, 1px)) !important;
1980
- /* Neutralize the browser's residual grid machinery (specs/grid.md).
1981
- * grid-area: per CSS §10.1 an ABSOLUTE child of a grid container with
1982
- * placement properties uses its grid area as containing block — our
1983
- * left/top would resolve against that area and double-offset the
1984
- * element (the engine already placed it). The template and content/item
1985
- * alignment resets make a laid-out container's own grid/flex inert for
1986
- * the one box the browser still lays out: the anonymous item holding a
1987
- * leaf's direct text (a template would trap it in track 1; the
1988
- * browser's place-* offsets are FRACTIONAL, off the cell grid — the
1989
- * engine applies the quantized offsets through its owned padding
1990
- * instead, specs/cell-model.md). */
1991
- grid-area: auto !important;
1992
- grid-template-columns: none !important;
1993
- grid-template-rows: none !important;
1994
- place-content: start !important;
1995
- place-items: stretch !important;
1996
- /* \`leading-*\` on the grid: \`--mw-lh\` rows per wrapped line. CSS puts half
1997
- * the extra leading ABOVE the first line; \`--mw-lhs\` (−(rows − 1)/2)
1998
- * shifts the box back so every line starts on its own row. */
1999
- translate: 0 calc(var(--mw-lhs, 0) * var(--mw-ch, 1px)) !important;
2000
- }
2001
-
2002
- /* Shared cell geometry for engine-sized boxes — engine-POSITIONED
2003
- * elements, in-flow atomic inline boxes, and in-flow multicol spanners
2004
- * (below). */
2005
- mono-wind:not([measuring]) [data-mw-laid-out],
2006
- mono-wind:not([measuring]) [data-mw-inline-box],
2007
- mono-wind:not([measuring]) [data-mw-multicol-flow-span],
2008
- mono-wind:not([measuring]) [data-mw-flow],
2009
- mono-wind:not([measuring]) [data-mw-float] {
2010
- box-sizing: border-box !important;
2011
- /* A sticky shift (specs/sticky.md) belongs to the box the engine wrote
2012
- * it on: custom properties inherit, so every box resets them and only
2013
- * the engine's inline value — which beats an unimportant rule — moves
2014
- * a box. */
2015
- --mw-sx: 0;
2016
- --mw-sy: 0;
2017
- /* Trailing-gap allowance: a tracked box's lines end with a phantom
2018
- * \`--mw-ls\`-cell gap the engine doesn't count. Give the content box that
2019
- * room by carving it out of the engine-owned right padding/border cells;
2020
- * only when those are fewer than the gap does the element box itself
2021
- * widen (invisibly — the decorated border stays where the engine put it).
2022
- * The extra 1/32px is one layout unit of headroom: engines store lengths
2023
- * on a fixed grid by flooring (1/64px in Chromium and WebKit, 1/60px in
2024
- * Firefox), so \`cells × cw\` can land one unit BELOW the shaped advance of
2025
- * a line that fits exactly, and the browser would wrap it. Adding at
2026
- * least one unit before the floor guarantees the stored width is ≥ the
2027
- * exact product; 1/32px covers every engine's unit and is far below a
2028
- * cell (and below a device pixel), so it changes neither cell math nor
2029
- * paint. */
2030
- width: calc(
2031
- (var(--mw-w, 0) + max(0, var(--mw-ls, 0) - var(--mw-pr, 0) - var(--mw-br, 0))) *
2032
- var(--mw-cw, 1px) + 0.03125px
2033
- ) !important;
2034
- height: calc(var(--mw-h, 0) * var(--mw-ch, 1px)) !important;
2035
- min-width: 0 !important;
2036
- min-height: 0 !important;
2037
- max-width: none !important;
2038
- max-height: none !important;
2039
- border-width: 0 !important;
2040
- /* Gap rules are engine-painted glyphs (specs/gap-decorations.md);
2041
- * css-gaps browsers must not also paint their native (fractional)
2042
- * rules — e.g. between an emptied grid's explicit tracks. */
2043
- column-rule-style: none !important;
2044
- row-rule-style: none !important;
2045
- /* Authored z-index applies only where CSS says (positioned, flex/grid
2046
- * items) — absolutization would otherwise activate it everywhere. The
2047
- * engine writes --mw-z in exactly those cases; without it the calc()
2048
- * is invalid at computed-value time and z-index falls back to auto. */
2049
- z-index: calc(var(--mw-z)) !important;
2050
- padding-top: calc((var(--mw-pt, 0) + var(--mw-bt, 0)) * var(--mw-ch, 1px)) !important;
2051
- padding-right: calc(
2052
- max(0, var(--mw-pr, 0) + var(--mw-br, 0) - var(--mw-ls, 0)) * var(--mw-cw, 1px)
2053
- ) !important;
2054
- padding-bottom: calc((var(--mw-pb, 0) + var(--mw-bb, 0)) * var(--mw-ch, 1px)) !important;
2055
- padding-left: calc((var(--mw-pl, 0) + var(--mw-bl, 0)) * var(--mw-cw, 1px)) !important;
2056
- margin: 0 !important;
2057
- line-height: calc(var(--mw-lh, 1) * var(--mw-ch, 1px)) !important;
2058
- }
2059
-
2060
- /* Atomic inline boxes (\`inline-flex\`/\`inline-block\`/\`inline-grid\` riding a
2061
- * text run, specs/cell-model.md): the box stays IN FLOW — the browser's
2062
- * own line layout places it, and both models agree because the engine
2063
- * sizes it to exactly the cells its U+FFFC marker occupies in the wrap.
2064
- * \`position: relative\` makes it the containing block for its laid-out
2065
- * children; \`vertical-align: top\` pins the box's top to its line's first
2066
- * row (the global baseline lock would hang an abspos-only box below the
2067
- * line) — a box taller than one row grows its line, per CSS. */
2068
- mono-wind:not([measuring]) [data-mw-inline-box] {
2069
- position: relative !important;
2070
- /* A sticky inline box's shift for the scroll (specs/sticky.md); the
2071
- * vars are absent otherwise. */
2072
- top: calc(var(--mw-sy, 0) * var(--mw-ch, 1px)) !important;
2073
- left: calc(var(--mw-sx, 0) * var(--mw-cw, 1px)) !important;
2074
- vertical-align: top !important;
2075
- /* Same half-leading cancellation as laid-out elements — without it
2076
- * an inline box's NATIVE ink (a textarea's value under leading-*)
2077
- * sits centered in its line boxes instead of on its rows. */
2078
- translate: 0 calc(var(--mw-lhs, 0) * var(--mw-ch, 1px)) !important;
2079
- }
2080
-
2081
- /* Authored \`vertical-align: bottom\` on an atomic inline box: grid-exact
2082
- * in every engine (probed), so it passes through; the engine drops the
2083
- * line's text to the box's last row to match. middle/baseline are
2084
- * off-grid and behave as top (cell-model deviation). */
2085
- mono-wind:not([measuring]) [data-mw-inline-box][data-mw-vbottom] {
2086
- vertical-align: bottom !important;
2087
- }
2088
-
2089
- /* Multicol TEXT LEAF (specs/multicol.md "Browser agreement"): native
2090
- * columns driven by the engine's used values — quantized count and gap,
2091
- * sequential fill into the engine-quantized content height — so the
2092
- * browser breaks on exactly the engine's lines and the native text,
2093
- * caret, and selection sit under the grid's glyphs. The orphans/widows
2094
- * initial value of 2 vetoes single-line column endings the engine's
2095
- * model allows (probed: Chromium then breaks [3, 2, 2] where the engine
2096
- * says [3, 3, 1]), so both reset to 1. */
2097
- mono-wind:not([measuring]) [data-mw-multicol] {
2098
- column-count: var(--mw-colc, 1) !important;
2099
- column-width: auto !important;
2100
- column-gap: calc(var(--mw-colg, 0) * var(--mw-cw, 1px)) !important;
2101
- column-fill: auto !important;
2102
- orphans: 1 !important;
2103
- widows: 1 !important;
2104
- /* No trailing-gap carve-out here: it would widen only the LAST column
2105
- * (native columns split the content box equally), so tracked multicol
2106
- * text instead wraps at \`width − tracking\` engine-side — the exact
2107
- * fit rule the browser applies per column. */
2108
- width: calc(var(--mw-w, 0) * var(--mw-cw, 1px) + 0.03125px) !important;
2109
- padding-right: calc((var(--mw-pr, 0) + var(--mw-br, 0)) * var(--mw-cw, 1px)) !important;
2110
- /* Column-axis reconstruction: the engine's box is TIGHT (each
2111
- * column's last trailing leading trimmed, like single-column leaves),
2112
- * but browsers count FULL line boxes when fragmenting — re-extend by
2113
- * the \`--mw-lh − 1\` leading rows so every column fits its lines.
2114
- * \`--mw-ink\` (the host-measured ink overhang — WebKit breaks at ink
2115
- * bottoms, and some fonts draw taller than their line box) plus one
2116
- * layout unit of calc-rounding slack keep the last line's ink inside
2117
- * its column. The extension is under one line box, so no engine fits
2118
- * an extra line, and the extra rows are blank leading — nothing
2119
- * visible moves. */
2120
- height: calc(
2121
- (var(--mw-h, 0) + var(--mw-lh, 1) - 1) * var(--mw-ch, 1px) + var(--mw-ink, 0px) + 0.03125px
2122
- ) !important;
2123
- }
2124
-
2125
- /* Paragraph-flow multicol children (specs/multicol.md "Fragmenting
2126
- * text-leaf children"): chrome-less text leaves stay IN FLOW inside the
2127
- * container's native columns so the browser fragments them itself, with
2128
- * engine-quantized margins (native sibling collapsing IS the engine's
2129
- * collapse rule). Width and height stay natural — a chrome-less block's
2130
- * natural height is full line boxes, exactly what fragmentation counts;
2131
- * typography quantization and the color/background locks come from the
2132
- * universal rules, and line-height inherits from the container. */
2133
- mono-wind:not([measuring]) [data-mw-multicol-flow] {
2134
- position: static !important;
2135
- display: block !important;
2136
- box-sizing: border-box !important;
2137
- width: auto !important;
2138
- height: auto !important;
2139
- min-width: 0 !important;
2140
- min-height: 0 !important;
2141
- max-width: none !important;
2142
- max-height: none !important;
2143
- border-width: 0 !important;
2144
- margin-top: calc(var(--mw-mt, 0) * var(--mw-ch, 1px)) !important;
2145
- margin-right: calc(var(--mw-mr, 0) * var(--mw-cw, 1px)) !important;
2146
- margin-bottom: calc(var(--mw-mb, 0) * var(--mw-ch, 1px)) !important;
2147
- margin-left: calc(var(--mw-ml, 0) * var(--mw-cw, 1px)) !important;
2148
- column-span: none !important;
2149
- }
2150
-
2151
- /* text-indent (specs/cell-model.md): native px would resolve to the
2152
- * root font size, not the cell width, so the transparent light-DOM
2153
- * text drifts out from under the grid's paint. Rewrite it in cells so
2154
- * the two agree — selection ranges land exactly where the glyphs are. */
2155
- mono-wind:not([measuring])[data-mw-leaf],
2156
- mono-wind:not([measuring]) [data-mw-laid-out],
2157
- mono-wind:not([measuring]) [data-mw-multicol-flow],
2158
- mono-wind:not([measuring]) [data-mw-flow],
2159
- mono-wind:not([measuring]) [data-mw-float] {
2160
- text-indent: calc(var(--mw-ti, 0) * var(--mw-cw, 1px)) !important;
2161
- }
2162
-
2163
- /* Boxes that stay in the browser's flow with engine-forced geometry
2164
- * (the shared rule above) and quantized engine margins: a mixed block
2165
- * container's child, placed so the container's anonymous runs of text
2166
- * land on their rows (specs/cell-model.md "Inline content"), and an
2167
- * in-flow multicol SPANNER (specs/multicol.md), which paragraphs
2168
- * fragment around. The half-leading translate doubles as the containing
2169
- * block for their absolutized descendants (a transformed box contains
2170
- * them like a positioned one). */
2171
- mono-wind:not([measuring]) [data-mw-flow],
2172
- mono-wind:not([measuring]) [data-mw-float],
2173
- mono-wind:not([measuring]) [data-mw-multicol-flow-span] {
2174
- position: static !important;
2175
- margin-top: calc(var(--mw-mt, 0) * var(--mw-ch, 1px)) !important;
2176
- margin-right: 0 !important;
2177
- margin-bottom: calc(var(--mw-mb, 0) * var(--mw-ch, 1px)) !important;
2178
- margin-left: calc(var(--mw-ml, 0) * var(--mw-cw, 1px)) !important;
2179
- translate: 0 calc(var(--mw-lhs, 0) * var(--mw-ch, 1px)) !important;
2180
- }
2181
- mono-wind:not([measuring]) [data-mw-multicol-flow-span] {
2182
- column-span: all !important;
2183
- }
2184
- /* A formatting-context root among flow children — a container, or a leaf
2185
- * CSS makes one — keeps its own: its first child's top margin stays
2186
- * inside it, where the engine put that child (the shadow slot does the
2187
- * same for the host's, element.ts), and it steps aside from a float
2188
- * rather than passing under (specs/float.md). */
2189
- mono-wind:not([measuring]) [data-mw-flow="box"] {
2190
- contain: layout !important;
2191
- }
2192
- /* A float (specs/float.md): the browser floats the engine's box, and
2193
- * the lines of the leaf flow children beside it shorten as the engine
2194
- * shortened them, while a root flow child steps aside as the engine
2195
- * placed it. Both margin boxes take part in the browser's fit — a
2196
- * float's is the exclusion, a root's must not overlap one — so each
2197
- * gives back the shared rule's widening on its right margin: the
2198
- * tracking allowance and, as a quarter pixel, the layout-unit headroom.
2199
- * A root or a later float that fits the engine's band exactly then
2200
- * fits natively too, and a line beside a float keeps its headroom. */
2201
- mono-wind:not([measuring]) [data-mw-float],
2202
- mono-wind:not([measuring]) [data-mw-flow="box"] {
2203
- margin-right: calc(
2204
- (var(--mw-mr, 0) - max(0, var(--mw-ls, 0) - var(--mw-pr, 0) - var(--mw-br, 0))) *
2205
- var(--mw-cw, 1px) - 0.25px
2206
- ) !important;
2207
- }
2208
- mono-wind:not([measuring]) [data-mw-float="left"] {
2209
- float: left !important;
2210
- }
2211
- mono-wind:not([measuring]) [data-mw-float="right"] {
2212
- float: right !important;
2213
- }
2214
-
2215
- /* Spanner-split paragraph flow trusts the NATIVE balancer per segment
2216
- * (probed pixel-exact in all three engines under quantized inputs):
2217
- * \`column-fill: balance\` and the natural height replace the
2218
- * fill-to-computed-height reconstruction of the base multicol rule. */
2219
- mono-wind:not([measuring]) [data-mw-multicol][data-mw-multicol-balance] {
2220
- column-fill: balance !important;
2221
- height: auto !important;
2222
- }
2223
-
2224
- /* Paragraph gaps under a spanner-split (balance) container: margins
2225
- * derail the native balancers (probed), so the engine-collapsed gaps
2226
- * ride as PADDING — each inter-paragraph gap as the preceding
2227
- * paragraph's padding-bottom (\`--mw-mb\`), the segment-leading gap as
2228
- * the first paragraph's padding-top (\`--mw-mt\`). Chromium and Firefox
2229
- * keep a trailing padding monolithic with its last line at a column
2230
- * break (probed), so a gap sits invisibly at a column bottom and the
2231
- * next paragraph starts flush at the column top — the CSS-truncation
2232
- * look. WebKit slice-spills padding at breaks instead, and its gate
2233
- * (multicol.ts detectGluedPreBreak) keeps margined spanner containers
2234
- * on atomic distribution there. */
2235
- mono-wind:not([measuring]) [data-mw-multicol-balance] > [data-mw-multicol-flow] {
2236
- margin-top: 0 !important;
2237
- margin-bottom: 0 !important;
2238
- padding-top: calc(var(--mw-mt, 0) * var(--mw-ch, 1px)) !important;
2239
- padding-bottom: calc(var(--mw-mb, 0) * var(--mw-ch, 1px)) !important;
2240
- }
2241
-
2242
- /* Author-requested \`overflow: hidden\` or \`overflow: clip\` — both keep
2243
- * content inside the engine-allocated box. Uses \`clip\` (no scroll
2244
- * container, cheaper, more precise semantic for what we're doing). */
2245
- mono-wind [data-mw-clip] {
2246
- overflow: clip !important;
2247
- }
2248
-
2249
- /* Inline (relative/sticky) elements with authored relative insets
2250
- * (specs/positioning.md): the engine writes the cell-rounded offsets into
2251
- * \`--mw-it/ir/ib/il\` and this rule applies them on the grid. A side
2252
- * without its var is invalid at computed-value time and falls back to
2253
- * \`auto\` — so authored subsets work and the author's raw off-grid values
2254
- * never apply. Gated on \`measuring\` so the style reader sees the authored
2255
- * values (no echo loop). Also pins \`position: relative\` — sticky behaves
2256
- * as relative until the scrolling milestone. */
2257
- mono-wind:not([measuring]) [data-mw-inline-inset] {
2258
- position: relative !important;
2259
- top: calc(var(--mw-it) * var(--mw-ch, 1px)) !important;
2260
- right: calc(var(--mw-ir) * var(--mw-cw, 1px)) !important;
2261
- bottom: calc(var(--mw-ib) * var(--mw-ch, 1px)) !important;
2262
- left: calc(var(--mw-il) * var(--mw-cw, 1px)) !important;
2263
- }
2264
-
2265
- /* === Engine state attributes (warnings, hiding, alignment) =========== */
2266
-
2267
- /* Misparented table content (no anonymous boxes, specs/table.md) and
2268
- * <col>/<colgroup> boxes: fully hidden, subtree included. */
2269
- mono-wind:not([measuring]) [data-mw-table-hidden] {
2270
- display: none !important;
2271
- }
1917
+ @layer theme {
1918
+ /* Lock the font on descendants so the grid metrics stay consistent —
1919
+ * \`!important\` because user classes (\`.text-2xl\` etc.) would otherwise beat
1920
+ * these element-selector rules on specificity. */
1921
+ mono-wind * {
1922
+ font-family: inherit !important;
1923
+ font-size: inherit !important;
1924
+ }
2272
1925
 
2273
- /* A container whose anonymous runs are misparented table content
2274
- * (stray text in a div-table, specs/table.md): the runs have no element
2275
- * to hide, so the container hides its text, and its laid-out children
2276
- * the rows or cells show through the inherited value. */
2277
- mono-wind:not([measuring]) [data-mw-hidden-runs] {
2278
- visibility: hidden !important;
2279
- }
2280
- mono-wind:not([measuring]) [data-mw-hidden-runs] > [data-mw-laid-out] {
2281
- visibility: visible !important;
2282
- }
1926
+ /* Lock toggles must never become native animations: an authored
1927
+ * \`transition\` would otherwise ANIMATE them a background flashes to
1928
+ * its real value while \`[measuring]\` lifts the lock, and the snap back
1929
+ * to transparent starts a native fade that paints the light-DOM
1930
+ * element ON TOP of the grid (transitions beat even \`!important\`
1931
+ * declarations in the cascade). Restricting \`transition-property\` to
1932
+ * the SAMPLED properties (which no lock toggles — color stays live
1933
+ * under the text-fill lock, and nothing touches border colors,
1934
+ * opacity, or a layer's transforms and filter) snaps everything
1935
+ * lock-owned (backgrounds, geometry, backdrop-filter) while keeping
1936
+ * in-flight fades
1937
+ * of the sampled properties alive ACROSS measuring passes. The engine
1938
+ * swaps \`[measuring]\` for \`[settling]\` and forces one style flush
1939
+ * before unmasking, so the snap-back delta always commits masked;
1940
+ * outside both attributes the authored list is live and fully
1941
+ * respected — background fades, which can never run natively, are
1942
+ * synthesized by the engine instead. */
1943
+ mono-wind[measuring],
1944
+ mono-wind[measuring] *,
1945
+ mono-wind[settling],
1946
+ mono-wind[settling] * {
1947
+ transition-property:
1948
+ color, border-color, opacity, transform, translate, rotate, scale, filter !important;
1949
+ }
1950
+
1951
+ /* Anchor names scoped to their own subtree while the engine reads: an
1952
+ * anchored box then resolves no anchor natively, so the browser applies
1953
+ * no position-try fallback of its own (from its pixel geometry, not the
1954
+ * cells') and \`position-area\` reads as authored
1955
+ * (specs/anchor-positioning.md). */
1956
+ mono-wind[measuring] * {
1957
+ anchor-scope: all !important;
1958
+ }
1959
+
1960
+ /* A popover's or dialog's exit rides a discrete display transition
1961
+ * (specs/top-layer.md): on them, and them alone, the mask keeps
1962
+ * display and overlay alive across the passes — no lock toggles either
1963
+ * there, while the grid-template read assist below toggles display. */
1964
+ mono-wind[measuring] :is([popover], dialog),
1965
+ mono-wind[settling] :is([popover], dialog) {
1966
+ transition-property:
1967
+ color, border-color, opacity, transform, translate, rotate, scale, filter, display, overlay !important;
1968
+ }
1969
+
1970
+ /* Grid-template read assist (specs/grid.md), no-Typed-OM engines only
1971
+ * (Firefox pre-157): getComputedStyle on a live grid container returns
1972
+ * the USED \`grid-template-*\` track list (expanded px) — the authored
1973
+ * fr/repeat/minmax structure is gone. The style reader sets this
1974
+ * attribute for the duration of the read; blockifying the element makes
1975
+ * getComputedStyle return the COMPUTED value, structure intact.
1976
+ * \`!important\` so inline \`style="display: grid"\` can't defeat the read. */
1977
+ mono-wind[measuring] [data-mw-degrid] {
1978
+ display: block !important;
1979
+ }
1980
+
1981
+ /* Grid-quantized typography and the wrap model (specs/cell-model.md). Gated
1982
+ * on \`measuring\` (unlike the font lock above) so the style reader sees the
1983
+ * AUTHORED white-space / letter-spacing / line-height — that's how nowrap,
1984
+ * tracking, and leading are detected without echoing our own output.
1985
+ *
1986
+ * letter-spacing: the root's own (\`--mw-rls\`, part of the cell) plus
1987
+ * \`--mw-ls\` extra cells per character, which the engine writes on every
1988
+ * element it visits; an element without the var makes this declaration
1989
+ * invalid at computed-value time, so the property falls back to inheriting
1990
+ * the parent's grid-exact value. line-height is inherited from the
1991
+ * laid-out ancestor (which sets the row multiple below) — \`leading-*\` on
1992
+ * inline elements is ignored by design. */
1993
+ mono-wind:not([measuring]) * {
1994
+ /* Baseline-shift lock (cell-model): gated like the rest, so the style
1995
+ * reader sees the authored/UA vertical-align (table cells read it). */
1996
+ vertical-align: baseline !important;
1997
+ white-space: normal !important;
1998
+ overflow-wrap: anywhere !important;
1999
+ letter-spacing: calc(var(--mw-rls, 0px) + var(--mw-ls) * var(--mw-cw, 1px)) !important;
2000
+ line-height: inherit !important;
2001
+ /* Backgrounds paint in the grid too, so the light DOM's own bg goes
2002
+ * transparent — otherwise it would cover the grid (light DOM sits
2003
+ * ON TOP of the grid in the shadow tree so native selection
2004
+ * highlights can show through). The engine still reads authored
2005
+ * background-color during [measuring] (this rule is off then), so
2006
+ * bg-* and focus-invert both make it into the grid paint. */
2007
+ background-color: transparent !important;
2008
+ /* Gradients paint in the grid as a color per cell (specs/gradients.md),
2009
+ * read during [measuring] like the color. */
2010
+ background-image: none !important;
2011
+ text-shadow: none !important;
2012
+ /* Shadows paint in the grid as shades (specs/box-shadow.md), read
2013
+ * during [measuring] like backgrounds. */
2014
+ box-shadow: none !important;
2015
+ /* Inline-element horizontal padding, quantized: the engine writes
2016
+ * \`--mw-ipl\`/\`--mw-ipr\` (whole cells) on inline elements whose authored
2017
+ * padding it reserved in the run; everything else gets 0, so raw
2018
+ * off-grid padding never renders. Laid-out elements and atomic inline
2019
+ * boxes override this with their own engine-owned padding rule (higher
2020
+ * specificity). Vertical inline padding never moves layout, per CSS,
2021
+ * and passes through untouched. */
2022
+ padding-left: calc(var(--mw-ipl, 0) * var(--mw-cw, 1px)) !important;
2023
+ padding-right: calc(var(--mw-ipr, 0) * var(--mw-cw, 1px)) !important;
2024
+ }
2025
+
2026
+ /* A top-layer element's backdrop is a box of the grid's beneath its
2027
+ * own (specs/top-layer.md), read during [measuring] like backgrounds. */
2028
+ mono-wind:not([measuring]) [popover]::backdrop,
2029
+ mono-wind:not([measuring]) dialog::backdrop {
2030
+ background: transparent !important;
2031
+ backdrop-filter: none !important;
2032
+ }
2033
+
2034
+ /* Light-DOM text goes invisible so the grid is the only visible copy;
2035
+ * form controls opt out because they render their value/caret/selection
2036
+ * natively (the tree builder skips their content so the grid doesn't
2037
+ * double-render). Events, ARIA, focus, selection all still work.
2038
+ * \`-webkit-text-fill-color\` (universal support), NOT \`color\`: it hides
2039
+ * the ink while computed \`color\` stays LIVE — authored transitions run
2040
+ * on it for real and the engine samples true mid-fade values (the
2041
+ * animation loop, element.ts). Decoration ink follows \`color\`, so it
2042
+ * needs its own transparent lock (the grid paints decorations).
2043
+ * \`[data-mw-leaf]\` is the host with its own text on the grid — the root
2044
+ * leaf, or a mixed host's anonymous runs (specs/host-leaf.md): every
2045
+ * rule that shapes a leaf's native text carries this host variant —
2046
+ * render.ts writes the host's flags. */
2047
+ mono-wind:not([measuring])[data-mw-leaf],
2048
+ mono-wind:not([measuring]) *:not(input):not(textarea):not(select) {
2049
+ -webkit-text-fill-color: transparent !important;
2050
+ text-decoration-color: transparent !important;
2051
+ }
2052
+
2053
+ /* Form controls escape the fill lock by INHERITANCE, not just by the
2054
+ * exclusion above: text-fill-color inherits and has no UA default on
2055
+ * controls (unlike \`color\`), so without this reset an input under any
2056
+ * locked ancestor would inherit transparent ink. */
2057
+ mono-wind:not([measuring]) input,
2058
+ mono-wind:not([measuring]) textarea,
2059
+ mono-wind:not([measuring]) select {
2060
+ -webkit-text-fill-color: currentColor !important;
2061
+ }
2283
2062
 
2284
- /* Force off-grid text alignments back to \`start\`. \`text-left\`/\`right\`/\`start\`/
2285
- * \`end\`/\`center\` all land on whole cells (offset = (W - N) × cell width);
2286
- * \`justify\` produces fractional per-line offsets we can't snap to the grid. */
2287
- mono-wind:not([measuring])[data-mw-text-align-blocked],
2288
- mono-wind:not([measuring]) [data-mw-text-align-blocked] {
2289
- text-align: start !important;
2063
+ /* Author-requested \`white-space: nowrap\` (or \`pre\`) the engine sized this
2064
+ * box for unwrapped hard lines, so the browser must not wrap either. Wins
2065
+ * over the lock above on specificity. */
2066
+ mono-wind:not([measuring])[data-mw-nowrap],
2067
+ mono-wind:not([measuring]) [data-mw-nowrap] {
2068
+ white-space: nowrap !important;
2069
+ }
2070
+
2071
+ /* \`white-space: pre\` leaves (specs/cell-model.md): the tree builder kept
2072
+ * the source's spaces and newlines in the run, so the browser must render
2073
+ * them too — on the leaf AND its inline descendants (the lock above would
2074
+ * collapse text inside nested spans). Later than the nowrap rule, so it
2075
+ * wins on the leaf itself at equal specificity. */
2076
+ mono-wind:not([measuring])[data-mw-pre],
2077
+ mono-wind:not([measuring])[data-mw-pre] *,
2078
+ mono-wind:not([measuring]) [data-mw-pre],
2079
+ mono-wind:not([measuring]) [data-mw-pre] * {
2080
+ white-space: pre !important;
2081
+ }
2082
+
2083
+ /* Truncation (\`truncate\` = nowrap + clip + text-overflow: ellipsis): use
2084
+ * \`hidden\` rather than the normalized \`clip\` for this combo — some engines
2085
+ * only apply \`text-overflow\` to scroll containers, which \`clip\` boxes are
2086
+ * not. Wins over the \`[data-mw-clip]\` rule below on specificity. */
2087
+ mono-wind:not([measuring]) [data-mw-nowrap][data-mw-clip] {
2088
+ overflow: hidden !important;
2089
+ }
2090
+
2091
+ /* === Engine-owned geometry =========================================== */
2092
+
2093
+ /* Every CSS property the engine has taken over on laid-out elements.
2094
+ * Gated on the \`measuring\` attribute so the style reader still sees the
2095
+ * authored values during its read pass. In the lock layer (the file's
2096
+ * header) the \`!important\` beats every utility, \`!\` modifier included,
2097
+ * inline \`style=""\` attributes (hand-written or CSS-in-JS), and
2098
+ * high-specificity unlayered author CSS.
2099
+ *
2100
+ * Geometry: position/box-sizing/left/top/width/height + min/max — set from
2101
+ * the engine-owned --mw-x/y/w/h custom properties.
2102
+ *
2103
+ * Neutralized: border-width (painted as glyphs by the shadow grid),
2104
+ * margin (position:absolute + margin still nudges the element off-grid).
2105
+ *
2106
+ * Owned via \`--mw-p{t,r,b,l}\` (padding) and \`--mw-b{t,r,b,l}\` (border cells):
2107
+ * both must land on whole cells. The browser applies the sum as native
2108
+ * padding since we've zeroed native border-width — this way, content sits
2109
+ * inset by exactly the (border + padding) cells the engine planned for.
2110
+ *
2111
+ * Left alone: flex/grid/gap/justify/align — laid-out children are all
2112
+ * position:absolute (out of flow), so nothing consumes them anyway. */
2113
+ mono-wind:not([measuring]) [data-mw-laid-out] {
2114
+ position: absolute !important;
2115
+ /* An anchored box is the engine's to place (specs/anchor-positioning.md):
2116
+ * the browser's own anchored placement stays off. */
2117
+ position-area: none !important;
2118
+ /* A sticky box's shift for the scroll rides beside its position
2119
+ * (specs/sticky.md). */
2120
+ left: calc((var(--mw-x, 0) + var(--mw-sx, 0)) * var(--mw-cw, 1px)) !important;
2121
+ /* \`leading-*\` on the grid: \`--mw-lh\` rows per wrapped line. CSS puts half
2122
+ * the extra leading ABOVE the first line; \`--mw-lhs\` (−(rows − 1)/2)
2123
+ * lifts the box back so every line starts on its own row. */
2124
+ top: calc((var(--mw-y, 0) + var(--mw-sy, 0) + var(--mw-lhs, 0)) * var(--mw-ch, 1px)) !important;
2125
+ /* Neutralize the browser's residual grid machinery (specs/grid.md).
2126
+ * grid-area: per CSS §10.1 an ABSOLUTE child of a grid container with
2127
+ * placement properties uses its grid area as containing block — our
2128
+ * left/top would resolve against that area and double-offset the
2129
+ * element (the engine already placed it). The template and content/item
2130
+ * alignment resets make a laid-out container's own grid/flex inert for
2131
+ * the one box the browser still lays out: the anonymous item holding a
2132
+ * leaf's direct text (a template would trap it in track 1; the
2133
+ * browser's place-* offsets are FRACTIONAL, off the cell grid — the
2134
+ * engine applies the quantized offsets through its owned padding
2135
+ * instead, specs/cell-model.md). */
2136
+ grid-area: auto !important;
2137
+ grid-template-columns: none !important;
2138
+ grid-template-rows: none !important;
2139
+ place-content: start !important;
2140
+ place-items: stretch !important;
2141
+ }
2142
+
2143
+ /* A top-layer element's box is the viewport's (specs/top-layer.md):
2144
+ * its cells count from the grid's client origin, a \`:host\` rule of the
2145
+ * shadow's in px, kept current through page scrolls. */
2146
+ mono-wind:not([measuring]) [data-mw-laid-out][data-mw-top] {
2147
+ position: fixed !important;
2148
+ left: calc(
2149
+ var(--mw-ox, 0px) + (var(--mw-x, 0) + var(--mw-sx, 0)) * var(--mw-cw, 1px)
2150
+ ) !important;
2151
+ top: calc(
2152
+ var(--mw-oy, 0px) + (var(--mw-y, 0) + var(--mw-sy, 0) + var(--mw-lhs, 0)) * var(--mw-ch, 1px)
2153
+ ) !important;
2154
+ }
2155
+
2156
+ /* Shared cell geometry for engine-sized boxes — engine-POSITIONED
2157
+ * elements, in-flow atomic inline boxes, and in-flow multicol spanners
2158
+ * (below). */
2159
+ mono-wind:not([measuring]) [data-mw-laid-out],
2160
+ mono-wind:not([measuring]) [data-mw-inline-box],
2161
+ mono-wind:not([measuring]) [data-mw-multicol-flow-span],
2162
+ mono-wind:not([measuring]) [data-mw-flow],
2163
+ mono-wind:not([measuring]) [data-mw-float] {
2164
+ box-sizing: border-box !important;
2165
+ /* A sticky shift (specs/sticky.md) belongs to the box the engine wrote
2166
+ * it on: custom properties inherit, so every box resets them, plainly,
2167
+ * and only the engine's inline value — which beats a plain rule — moves
2168
+ * a box. */
2169
+ --mw-sx: 0;
2170
+ --mw-sy: 0;
2171
+ /* Trailing-gap allowance: a tracked box's lines end with a phantom
2172
+ * \`--mw-ls\`-cell gap the engine doesn't count. Give the content box that
2173
+ * room by carving it out of the engine-owned right padding/border cells;
2174
+ * only when those are fewer than the gap does the element box itself
2175
+ * widen (invisibly — the decorated border stays where the engine put it).
2176
+ * The extra 1/32px is one layout unit of headroom: engines store lengths
2177
+ * on a fixed grid by flooring (1/64px in Chromium and WebKit, 1/60px in
2178
+ * Firefox), so \`cells × cw\` can land one unit BELOW the shaped advance of
2179
+ * a line that fits exactly, and the browser would wrap it. Adding at
2180
+ * least one unit before the floor guarantees the stored width is ≥ the
2181
+ * exact product; 1/32px covers every engine's unit and is far below a
2182
+ * cell (and below a device pixel), so it changes neither cell math nor
2183
+ * paint. */
2184
+ width: calc(
2185
+ (var(--mw-w, 0) + max(0, var(--mw-ls, 0) - var(--mw-pr, 0) - var(--mw-br, 0))) *
2186
+ var(--mw-cw, 1px) + 0.03125px
2187
+ ) !important;
2188
+ height: calc(var(--mw-h, 0) * var(--mw-ch, 1px)) !important;
2189
+ min-width: 0 !important;
2190
+ min-height: 0 !important;
2191
+ max-width: none !important;
2192
+ max-height: none !important;
2193
+ border-width: 0 !important;
2194
+ /* Gap rules are engine-painted glyphs (specs/gap-decorations.md);
2195
+ * css-gaps browsers must not also paint their native (fractional)
2196
+ * rules — e.g. between an emptied grid's explicit tracks. */
2197
+ column-rule-style: none !important;
2198
+ row-rule-style: none !important;
2199
+ /* Authored z-index applies only where CSS says (positioned, flex/grid
2200
+ * items) — absolutization would otherwise activate it everywhere. The
2201
+ * engine writes --mw-z in exactly those cases; without it the calc()
2202
+ * is invalid at computed-value time and z-index falls back to auto. */
2203
+ z-index: calc(var(--mw-z)) !important;
2204
+ /* A layer root's backdrop filter goes on its layer (specs/layers.md):
2205
+ * the element's own would take in the layer's cells beneath it. */
2206
+ backdrop-filter: none !important;
2207
+ padding-top: calc((var(--mw-pt, 0) + var(--mw-bt, 0)) * var(--mw-ch, 1px)) !important;
2208
+ padding-right: calc(
2209
+ max(0, var(--mw-pr, 0) + var(--mw-br, 0) - var(--mw-ls, 0)) * var(--mw-cw, 1px)
2210
+ ) !important;
2211
+ padding-bottom: calc((var(--mw-pb, 0) + var(--mw-bb, 0)) * var(--mw-ch, 1px)) !important;
2212
+ padding-left: calc((var(--mw-pl, 0) + var(--mw-bl, 0)) * var(--mw-cw, 1px)) !important;
2213
+ margin: 0 !important;
2214
+ line-height: calc(var(--mw-lh, 1) * var(--mw-ch, 1px)) !important;
2215
+ }
2216
+
2217
+ /* Atomic inline boxes (\`inline-flex\`/\`inline-block\`/\`inline-grid\` riding a
2218
+ * text run, specs/cell-model.md): the box stays IN FLOW — the browser's
2219
+ * own line layout places it, and both models agree because the engine
2220
+ * sizes it to exactly the cells its U+FFFC marker occupies in the wrap.
2221
+ * \`position: relative\` makes it the containing block for its laid-out
2222
+ * children; \`vertical-align: top\` pins the box's top to its line's first
2223
+ * row (the global baseline lock would hang an abspos-only box below the
2224
+ * line) — a box taller than one row grows its line, per CSS. */
2225
+ mono-wind:not([measuring]) [data-mw-inline-box] {
2226
+ position: relative !important;
2227
+ /* A sticky inline box's shift for the scroll (specs/sticky.md; the
2228
+ * vars are absent otherwise) and the same half-leading lift as
2229
+ * laid-out elements — without it an inline box's NATIVE ink (a
2230
+ * textarea's value under leading-*) sits centered in its line boxes
2231
+ * instead of on its rows. */
2232
+ top: calc((var(--mw-sy, 0) + var(--mw-lhs, 0)) * var(--mw-ch, 1px)) !important;
2233
+ left: calc(var(--mw-sx, 0) * var(--mw-cw, 1px)) !important;
2234
+ vertical-align: top !important;
2235
+ }
2236
+
2237
+ /* Authored \`vertical-align: bottom\` on an atomic inline box: grid-exact
2238
+ * in every engine (probed), so it passes through; the engine drops the
2239
+ * line's text to the box's last row to match. baseline is off-grid and
2240
+ * behaves as top (cell-model deviation). */
2241
+ mono-wind:not([measuring]) [data-mw-inline-box][data-mw-vbottom] {
2242
+ vertical-align: bottom !important;
2243
+ }
2244
+ /* Authored \`vertical-align: middle\`: a whole-row baseline length the
2245
+ * engine writes (specs/cell-model.md "Typography") — rows from the
2246
+ * box's own baseline to its line's text row, plus the row's baseline
2247
+ * for a box whose baseline is its bottom edge — so the line's text
2248
+ * lands on the box's middle row in every engine (probed). */
2249
+ mono-wind:not([measuring]) [data-mw-inline-box][data-mw-vmiddle] {
2250
+ vertical-align: calc(
2251
+ var(--mw-va, 0) * var(--mw-ch, 1px) + var(--mw-vb, 0) * var(--mw-base, 0px)
2252
+ ) !important;
2253
+ }
2254
+
2255
+ /* Multicol TEXT LEAF (specs/multicol.md "Browser agreement"): native
2256
+ * columns driven by the engine's used values — quantized count and gap,
2257
+ * sequential fill into the engine-quantized content height — so the
2258
+ * browser breaks on exactly the engine's lines and the native text,
2259
+ * caret, and selection sit under the grid's glyphs. The orphans/widows
2260
+ * initial value of 2 vetoes single-line column endings the engine's
2261
+ * model allows (probed: Chromium then breaks [3, 2, 2] where the engine
2262
+ * says [3, 3, 1]), so both reset to 1. */
2263
+ mono-wind:not([measuring]) [data-mw-multicol] {
2264
+ column-count: var(--mw-colc, 1) !important;
2265
+ column-width: auto !important;
2266
+ column-gap: calc(var(--mw-colg, 0) * var(--mw-cw, 1px)) !important;
2267
+ column-fill: auto !important;
2268
+ orphans: 1 !important;
2269
+ widows: 1 !important;
2270
+ /* No trailing-gap carve-out here: it would widen only the LAST column
2271
+ * (native columns split the content box equally), so tracked multicol
2272
+ * text instead wraps at \`width − tracking\` engine-side — the exact
2273
+ * fit rule the browser applies per column. */
2274
+ width: calc(var(--mw-w, 0) * var(--mw-cw, 1px) + 0.03125px) !important;
2275
+ padding-right: calc((var(--mw-pr, 0) + var(--mw-br, 0)) * var(--mw-cw, 1px)) !important;
2276
+ /* Column-axis reconstruction: the engine's box is TIGHT (each
2277
+ * column's last trailing leading trimmed, like single-column leaves),
2278
+ * but browsers count FULL line boxes when fragmenting — re-extend by
2279
+ * the \`--mw-lh − 1\` leading rows so every column fits its lines.
2280
+ * \`--mw-ink\` (the host-measured ink overhang — WebKit breaks at ink
2281
+ * bottoms, and some fonts draw taller than their line box) plus one
2282
+ * layout unit of calc-rounding slack keep the last line's ink inside
2283
+ * its column. The extension is under one line box, so no engine fits
2284
+ * an extra line, and the extra rows are blank leading — nothing
2285
+ * visible moves. */
2286
+ height: calc(
2287
+ (var(--mw-h, 0) + var(--mw-lh, 1) - 1) * var(--mw-ch, 1px) + var(--mw-ink, 0px) + 0.03125px
2288
+ ) !important;
2289
+ }
2290
+
2291
+ /* Paragraph-flow multicol children (specs/multicol.md "Fragmenting
2292
+ * text-leaf children"): chrome-less text leaves stay IN FLOW inside the
2293
+ * container's native columns so the browser fragments them itself, with
2294
+ * engine-quantized margins (native sibling collapsing IS the engine's
2295
+ * collapse rule). Width and height stay natural — a chrome-less block's
2296
+ * natural height is full line boxes, exactly what fragmentation counts;
2297
+ * typography quantization and the color/background locks come from the
2298
+ * universal rules, and line-height inherits from the container. */
2299
+ mono-wind:not([measuring]) [data-mw-multicol-flow] {
2300
+ position: static !important;
2301
+ display: block !important;
2302
+ box-sizing: border-box !important;
2303
+ width: auto !important;
2304
+ height: auto !important;
2305
+ min-width: 0 !important;
2306
+ min-height: 0 !important;
2307
+ max-width: none !important;
2308
+ max-height: none !important;
2309
+ border-width: 0 !important;
2310
+ margin-top: calc(var(--mw-mt, 0) * var(--mw-ch, 1px)) !important;
2311
+ margin-right: calc(var(--mw-mr, 0) * var(--mw-cw, 1px)) !important;
2312
+ margin-bottom: calc(var(--mw-mb, 0) * var(--mw-ch, 1px)) !important;
2313
+ margin-left: calc(var(--mw-ml, 0) * var(--mw-cw, 1px)) !important;
2314
+ column-span: none !important;
2315
+ }
2316
+
2317
+ /* text-indent (specs/cell-model.md): native px would resolve to the
2318
+ * root font size, not the cell width, so the transparent light-DOM
2319
+ * text drifts out from under the grid's paint. Rewrite it in cells so
2320
+ * the two agree — selection ranges land exactly where the glyphs are. */
2321
+ mono-wind:not([measuring])[data-mw-leaf],
2322
+ mono-wind:not([measuring]) [data-mw-laid-out],
2323
+ mono-wind:not([measuring]) [data-mw-multicol-flow],
2324
+ mono-wind:not([measuring]) [data-mw-flow],
2325
+ mono-wind:not([measuring]) [data-mw-float] {
2326
+ text-indent: calc(var(--mw-ti, 0) * var(--mw-cw, 1px)) !important;
2327
+ }
2328
+
2329
+ /* Boxes that stay in the browser's flow with engine-forced geometry
2330
+ * (the shared rule above) and quantized engine margins: a mixed block
2331
+ * container's child, placed so the container's anonymous runs of text
2332
+ * land on their rows (specs/cell-model.md "Inline content"), and an
2333
+ * in-flow multicol SPANNER (specs/multicol.md), which paragraphs
2334
+ * fragment around. \`relative\` makes them the containing block for
2335
+ * their absolutized descendants and carries the half-leading lift;
2336
+ * the engine owns every inset, so an authored one stays inert. */
2337
+ mono-wind:not([measuring]) [data-mw-flow],
2338
+ mono-wind:not([measuring]) [data-mw-float],
2339
+ mono-wind:not([measuring]) [data-mw-multicol-flow-span] {
2340
+ position: relative !important;
2341
+ top: calc(var(--mw-lhs, 0) * var(--mw-ch, 1px)) !important;
2342
+ right: auto !important;
2343
+ bottom: auto !important;
2344
+ left: auto !important;
2345
+ margin-top: calc(var(--mw-mt, 0) * var(--mw-ch, 1px)) !important;
2346
+ margin-right: 0 !important;
2347
+ margin-bottom: calc(var(--mw-mb, 0) * var(--mw-ch, 1px)) !important;
2348
+ margin-left: calc(var(--mw-ml, 0) * var(--mw-cw, 1px)) !important;
2349
+ }
2350
+ mono-wind:not([measuring]) [data-mw-multicol-flow-span] {
2351
+ column-span: all !important;
2352
+ }
2353
+ /* A formatting-context root among flow children — a container, or a leaf
2354
+ * CSS makes one — keeps its own: its first child's top margin stays
2355
+ * inside it, where the engine put that child (the shadow slot does the
2356
+ * same for the host's, element.ts), and it steps aside from a float
2357
+ * rather than passing under (specs/float.md). */
2358
+ mono-wind:not([measuring]) [data-mw-flow="box"] {
2359
+ contain: layout !important;
2360
+ }
2361
+ /* A float (specs/float.md): the browser floats the engine's box, and
2362
+ * the lines of the leaf flow children beside it shorten as the engine
2363
+ * shortened them, while a root flow child steps aside as the engine
2364
+ * placed it. Both margin boxes take part in the browser's fit — a
2365
+ * float's is the exclusion, a root's must not overlap one — so each
2366
+ * gives back the shared rule's widening on its right margin: the
2367
+ * tracking allowance and, as a quarter pixel, the layout-unit headroom.
2368
+ * A root or a later float that fits the engine's band exactly then
2369
+ * fits natively too, and a line beside a float keeps its headroom. */
2370
+ mono-wind:not([measuring]) [data-mw-float],
2371
+ mono-wind:not([measuring]) [data-mw-flow="box"] {
2372
+ margin-right: calc(
2373
+ (var(--mw-mr, 0) - max(0, var(--mw-ls, 0) - var(--mw-pr, 0) - var(--mw-br, 0))) *
2374
+ var(--mw-cw, 1px) - 0.25px
2375
+ ) !important;
2376
+ }
2377
+ mono-wind:not([measuring]) [data-mw-float="left"] {
2378
+ float: left !important;
2379
+ }
2380
+ mono-wind:not([measuring]) [data-mw-float="right"] {
2381
+ float: right !important;
2382
+ }
2383
+
2384
+ /* Spanner-split paragraph flow trusts the NATIVE balancer per segment
2385
+ * (probed pixel-exact in all three engines under quantized inputs):
2386
+ * \`column-fill: balance\` and the natural height replace the
2387
+ * fill-to-computed-height reconstruction of the base multicol rule. */
2388
+ mono-wind:not([measuring]) [data-mw-multicol][data-mw-multicol-balance] {
2389
+ column-fill: balance !important;
2390
+ height: auto !important;
2391
+ }
2392
+
2393
+ /* Paragraph gaps under a spanner-split (balance) container: margins
2394
+ * derail the native balancers (probed), so the engine-collapsed gaps
2395
+ * ride as PADDING — each inter-paragraph gap as the preceding
2396
+ * paragraph's padding-bottom (\`--mw-mb\`), the segment-leading gap as
2397
+ * the first paragraph's padding-top (\`--mw-mt\`). Chromium and Firefox
2398
+ * keep a trailing padding monolithic with its last line at a column
2399
+ * break (probed), so a gap sits invisibly at a column bottom and the
2400
+ * next paragraph starts flush at the column top — the CSS-truncation
2401
+ * look. WebKit slice-spills padding at breaks instead, and its gate
2402
+ * (multicol.ts detectGluedPreBreak) keeps margined spanner containers
2403
+ * on atomic distribution there. */
2404
+ mono-wind:not([measuring]) [data-mw-multicol-balance] > [data-mw-multicol-flow] {
2405
+ margin-top: 0 !important;
2406
+ margin-bottom: 0 !important;
2407
+ padding-top: calc(var(--mw-mt, 0) * var(--mw-ch, 1px)) !important;
2408
+ padding-bottom: calc(var(--mw-mb, 0) * var(--mw-ch, 1px)) !important;
2409
+ }
2410
+
2411
+ /* Author-requested \`overflow: hidden\` or \`overflow: clip\` — both keep
2412
+ * content inside the engine-allocated box. Uses \`clip\` (no scroll
2413
+ * container, cheaper, more precise semantic for what we're doing). */
2414
+ mono-wind [data-mw-clip] {
2415
+ overflow: clip !important;
2416
+ }
2417
+
2418
+ /* Inline (relative/sticky) elements with authored relative insets
2419
+ * (specs/positioning.md): the engine writes the cell-rounded offsets into
2420
+ * \`--mw-it/ir/ib/il\` and this rule applies them on the grid. A side
2421
+ * without its var is invalid at computed-value time and falls back to
2422
+ * \`auto\` — so authored subsets work and the author's raw off-grid values
2423
+ * never apply. Gated on \`measuring\` so the style reader sees the authored
2424
+ * values (no echo loop). Also pins \`position: relative\` — sticky behaves
2425
+ * as relative until the scrolling milestone. */
2426
+ mono-wind:not([measuring]) [data-mw-inline-inset] {
2427
+ position: relative !important;
2428
+ top: calc(var(--mw-it) * var(--mw-ch, 1px)) !important;
2429
+ right: calc(var(--mw-ir) * var(--mw-cw, 1px)) !important;
2430
+ bottom: calc(var(--mw-ib) * var(--mw-ch, 1px)) !important;
2431
+ left: calc(var(--mw-il) * var(--mw-cw, 1px)) !important;
2432
+ }
2433
+
2434
+ /* === Engine state attributes (warnings, hiding, alignment) =========== */
2435
+
2436
+ /* Misparented table content (no anonymous boxes, specs/table.md) and
2437
+ * <col>/<colgroup> boxes: fully hidden, subtree included. */
2438
+ mono-wind:not([measuring]) [data-mw-table-hidden] {
2439
+ display: none !important;
2440
+ }
2441
+
2442
+ /* A container whose anonymous runs are misparented table content
2443
+ * (stray text in a div-table, specs/table.md): the runs have no element
2444
+ * to hide, so the container hides its text, and its laid-out children
2445
+ * — the rows or cells — show through the inherited value. */
2446
+ mono-wind:not([measuring]) [data-mw-hidden-runs] {
2447
+ visibility: hidden !important;
2448
+ }
2449
+ mono-wind:not([measuring]) [data-mw-hidden-runs] > [data-mw-laid-out] {
2450
+ visibility: visible !important;
2451
+ }
2452
+
2453
+ /* Force off-grid text alignments back to \`start\`. \`text-left\`/\`right\`/\`start\`/
2454
+ * \`end\`/\`center\` all land on whole cells (offset = (W - N) × cell width);
2455
+ * \`justify\` produces fractional per-line offsets we can't snap to the grid. */
2456
+ mono-wind:not([measuring])[data-mw-text-align-blocked],
2457
+ mono-wind:not([measuring]) [data-mw-text-align-blocked] {
2458
+ text-align: start !important;
2459
+ }
2290
2460
  }
2291
- `,il=`/* Synthesized pointer states (specs/cell-model.md "Pointer states"):
2461
+ `,_u=`/* Synthesized pointer states (specs/cell-model.md "Pointer states"):
2292
2462
  * under select="grid" the light DOM is pointer-events: none, so
2293
2463
  * :hover/:active never match — the engine hit-tests the pointer's
2294
2464
  * cell and marks the chain with data-mw-hover / data-mw-active. These
@@ -2305,5 +2475,5 @@ mono-wind:not([measuring]) [data-mw-text-align-blocked] {
2305
2475
  }
2306
2476
  }
2307
2477
  @custom-variant active (&:is(:active, [data-mw-active]));
2308
- `,al=document.createElement(`style`);al.setAttribute(`data-monowind`,``),al.textContent=rl,document.head.appendChild(al);var ol=document.createElement(`style`);ol.setAttribute(`type`,`text/tailwindcss`),ol.setAttribute(`data-monowind-rules`,``),ol.textContent=`${nl}\n${il}`,document.head.appendChild(ol),qc(),Object.assign(globalThis,{monowind:{...globalThis.monowind,version:`0.2.13`,registerLeafRenderer:ae,invalidateLeaves:oe,glyphSetFor:i}})})();
2478
+ `,vu=document.createElement(`style`);vu.setAttribute(`data-monowind`,``),vu.textContent=gu,document.head.appendChild(vu);var yu=document.createElement(`style`);yu.setAttribute(`type`,`text/tailwindcss`),yu.setAttribute(`data-monowind-rules`,``),yu.textContent=`${hu}\n${_u}`,document.head.appendChild(yu),ou(),Object.assign(globalThis,{monowind:{...globalThis.monowind,version:`0.3.0`,registerLeafRenderer:re,invalidateLeaves:ie,glyphSetFor:i}})})();
2309
2479
  //# sourceMappingURL=cdn.js.map