@elixir-playground/runtime 0.0.0-stage → 1.0.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/LICENSE +73 -0
- package/NOTICE.md +44 -0
- package/chunks/ansi-styles-Bkz3XA_r.js +1 -0
- package/chunks/browser-iHf7-8M7.js +113 -0
- package/chunks/dist-0mSzsNc8.js +10 -0
- package/chunks/fs-GnBaZCKr.js +1 -0
- package/chunks/git-remote-DnEba0y9.js +16 -0
- package/chunks/lookup-NMT_UyaB.js +1 -0
- package/chunks/manifest-DOTdOkY7.js +2 -0
- package/chunks/preload-helper-DHhhL8Zf.js +1 -0
- package/chunks/semver-CK47NiDu.js +1 -0
- package/chunks/slice-ansi-CtePLJj8.js +1 -0
- package/chunks/string-width-Dyomz-Kx.js +1 -0
- package/chunks/strip-ansi-B9O1Kiar.js +1 -0
- package/chunks/wasi-M0pSoirQ.js +1 -0
- package/chunks/wrap-ansi-v-UhTxgf.js +9 -0
- package/claude.html +10 -0
- package/exec.html +10 -0
- package/files.js +2 -0
- package/frames/browser-C6dmTjO4.js +682 -0
- package/frames/browser-CpIeD-9w.js +682 -0
- package/frames/claude-BdzjrDKT.js +1 -0
- package/frames/esbuild-DJd0QPVm.wasm +0 -0
- package/frames/exec-DcNLuXnX.js +1 -0
- package/frames/host-gpGAUuqR.js +1969 -0
- package/frames/relay-CFTN70Gw.js +9 -0
- package/frames/site-Bq_qZN66.js +1 -0
- package/frames/worker-PmIsqqyU.js +16 -0
- package/git.js +1 -0
- package/licenses/abort-controller-3.0.0/LICENSE +21 -0
- package/licenses/ansi-regex-6.4.0/license +9 -0
- package/licenses/ansi-styles-6.2.3/license +9 -0
- package/licenses/base64-js-1.5.1/LICENSE +21 -0
- package/licenses/buffer-6.0.3/LICENSE +21 -0
- package/licenses/elixir-playground-playground/LICENSE +73 -0
- package/licenses/elixir-playground-playground/NOTICE +11 -0
- package/licenses/esbuild-wasm-0.25.4/LICENSE.md +21 -0
- package/licenses/events-3.3.0/LICENSE +22 -0
- package/licenses/fflate-0.8.2/LICENSE +21 -0
- package/licenses/fzstd-0.1.1/LICENSE +21 -0
- package/licenses/get-east-asian-width-1.7.0/license +9 -0
- package/licenses/ieee754-1.2.1/LICENSE +11 -0
- package/licenses/index.json +304 -0
- package/licenses/is-fullwidth-code-point-5.1.0/license +9 -0
- package/licenses/jridgewell_gen-mapping-0.3.13/LICENSE +19 -0
- package/licenses/jridgewell_resolve-uri-3.1.2/LICENSE +19 -0
- package/licenses/jridgewell_sourcemap-codec-1.6.0/LICENSE +19 -0
- package/licenses/jridgewell_trace-mapping-0.3.31/LICENSE +19 -0
- package/licenses/lines-and-columns-1.2.4/LICENSE +21 -0
- package/licenses/noble_hashes-2.0.1/LICENSE +21 -0
- package/licenses/readable-stream-4.7.0/LICENSE +47 -0
- package/licenses/safe-buffer-5.2.1/LICENSE +21 -0
- package/licenses/semver-7.7.3/LICENSE +15 -0
- package/licenses/slice-ansi-9.0.1/license +10 -0
- package/licenses/smol-toml-1.9.1/LICENSE +24 -0
- package/licenses/string-width-8.3.0/license +9 -0
- package/licenses/string_decoder-1.3.0/LICENSE +48 -0
- package/licenses/strip-ansi-7.2.0/license +9 -0
- package/licenses/sucrase-3.35.0/LICENSE +21 -0
- package/licenses/tailwindcss-4.3.3/LICENSE +21 -0
- package/licenses/ts-interface-checker-0.1.13/LICENSE +201 -0
- package/licenses/vite-8.3.4/LICENSE.md +2265 -0
- package/licenses/wrap-ansi-10.0.2/license +9 -0
- package/licenses/yaml-2.9.1/LICENSE +13 -0
- package/nodejs.js +181 -0
- package/package.json +50 -4
- package/relay.html +10 -0
- package/root/relay.html +30 -0
- package/root/sw.js +1 -0
- package/worker.js +15 -0
- package/README.md +0 -3
|
@@ -0,0 +1,1969 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));function l(e,t){let[n,...r]=t.split(`;`),i=n.indexOf(`=`);if(i<0)return;let a=n.slice(0,i).trim(),o=n.slice(i+1).trim(),s=null,c=null;for(let e of r){let[t,n=``]=e.trim().split(`=`);t.toLowerCase()===`max-age`?s=Date.now()+Number(n)*1e3:t.toLowerCase()===`expires`&&(c=Date.parse(n))}let l=s??c;l!==null&&!(l>Date.now())?delete e[a]:e[a]={value:o,expires:l}}function u(e,t){let n=()=>{let e={};try{e=JSON.parse(localStorage.getItem(t)??`{}`)}catch{return{}}for(let t of Object.keys(e)){let n=e[t].expires;n!==null&&n<=Date.now()&&delete e[t]}return e};Object.defineProperty(Document.prototype,"cookie",{configurable:!0,get:()=>Object.entries(n()).map(([e,{value:t}])=>`${e}=${t}`).join(`; `),set:r=>{let i=n();e(i,String(r));try{localStorage.setItem(t,JSON.stringify(i))}catch{}}})}let d=null;function f(e){if(!d)try{d=new Set((globalThis.localStorage?.getItem(`playground-trace`)??``).split(`,`))}catch{d=/* @__PURE__ */ new Set}return d.has(e)}function p(e,...t){f(e)&&console.debug(`[${e}] ${(/* @__PURE__ */ new Date()).toISOString().slice(11,23)}`,...t)}function m(e){let t={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};class n extends EventTarget{constructor(t,n=[]){super(),this.url=new URL(t,location.href).href,this.readyState=0,this.protocol=``,this.extensions=``,this.bufferedAmount=0,this.binaryType=`blob`;for(let e of[`open`,`message`,`close`,`error`])this[`on${e}`]=null;let r=new MessageChannel;this.port=r.port1,this.port.onmessage=({data:e})=>this.receive(e);let i=new URL(this.url);navigator.serviceWorker.controller.postMessage({kind:`websocket`,protocol:e,path:i.pathname+i.search,subprotocols:[].concat(n)},[r.port2])}emit(e){this.dispatchEvent(e);let t=this[`on${e.type}`];t&&t.call(this,e)}receive(e){if(`open`in e)this.readyState=1,this.protocol=e.open,this.emit(new Event(`open`));else if(`message`in e){let t=e.message;typeof t!=`string`&&this.binaryType===`blob`&&(t=new Blob([t])),this.emit(new MessageEvent(`message`,{data:t,origin:new URL(this.url).origin}))}else if(`close`in e){if(this.readyState===3)return;this.readyState=3,e.close.clean||this.emit(new Event(`error`)),this.emit(new CloseEvent(`close`,{code:e.close.code,reason:e.close.reason,wasClean:e.close.clean})),this.port.close()}}send(e){if(this.readyState===0)throw new DOMException(`Still in CONNECTING state.`,`InvalidStateError`);this.readyState===1&&(e instanceof Blob?e.arrayBuffer().then(e=>this.port.postMessage({send:e})):ArrayBuffer.isView(e)?this.port.postMessage({send:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}):this.port.postMessage({send:e instanceof ArrayBuffer?e:String(e)}))}close(e=1e3,t=``){this.readyState>=2||(this.readyState=2,this.port.postMessage({close:{code:e,reason:t}}))}}Object.assign(n,t),Object.assign(n.prototype,t),window.WebSocket=n}function h(e,t,n){let r=window;r.playgroundApp=!0;let i=t?RegExp(`^`+t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`).replace(`\\{port\\}`,`(\\d+)`)+`$`):null,a=e=>i!==null&&i.test(e.origin),o=e=>e.origin===location.origin||a(e)||e.protocol===`http:`&&[`localhost`,`127.0.0.1`].includes(e.hostname),s=e=>{try{return e.parent!==e&&e.parent.playgroundApp?e.parent:null}catch{return null}},c=()=>{let e=window;for(let t=s(e);t;t=s(e))e=t;return e},l=e=>e.pathname+e.search+e.hash,u=n=>{if(n.origin===location.origin||a(n))return n.origin===location.origin?l(n):n.href;let r=Number(n.port||80);return r===e?l(n):t?t.replace(`{port}`,String(r))+l(n):`/__playground/port/${r}${l(n)}`};if(addEventListener(`click`,e=>{if(e.defaultPrevented||e.button!==0)return;let t=e.composedPath().find(e=>e.tagName===`A`);if(!t?.href)return;let n=new URL(t.href,location.href),r=(t.target||document.querySelector(`base[target]`)?.getAttribute(`target`)||``).toLowerCase(),i=r===`_top`||r===`_parent`;if(!o(n)){i&&(e.preventDefault(),open(n.href,`_blank`,`noopener`));return}if(n.origin!==location.origin&&(t.href=u(n)),!i)return;let a=r===`_top`?c():s(window)??window;a===window?t.target=`_self`:(e.preventDefault(),a.location.assign(u(n)))},!0),addEventListener(`submit`,e=>{let t=e.target,n=new URL(t.action,location.href);o(n)&&n.origin!==location.origin&&(t.action=u(n))},!0),window.parent===window||s(window))return;let d=()=>window.parent.postMessage({kind:`playground-location`,port:e,path:l(new URL(location.href))},n);for(let e of[`pushState`,`replaceState`]){let t=history[e];history[e]=function(...e){t.apply(this,e),d()}}addEventListener(`popstate`,d),addEventListener(`hashchange`,d),d(),addEventListener(`message`,e=>{e.source===window.parent&&e.data?.kind===`playground-snapshot`&&e.origin===n&&window.parent.postMessage({kind:`playground-snapshot`,id:e.data.id,title:document.title,text:document.body?.innerText??``},n)})}const g=/^\/__playground\/port\/(\d+)(\/.*)?$/,_=(e,t,n)=>`<script>${t?`(${u})(${l}, ${JSON.stringify(`playground-cookies`)});`:``}(${m})(1);(${h})(${e}, ${JSON.stringify(t)}, ${JSON.stringify(n)})<\/script>`;function v(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}function y(e){let t=[],n=0,r=new TextDecoder(`latin1`);for(;;){let i=e.indexOf(13,n);if(i<0)break;let a=parseInt(r.decode(e.subarray(n,i)),16);if(!a)break;t.push(e.subarray(i+2,i+2+a)),n=i+2+a+2}return v(t)}var b=class{flights=/* @__PURE__ */ new Map;nextFlight=1;debug(){return[...this.flights.values()].map(({started:e,...t})=>({...t,age:`${((Date.now()-e)/1e3).toFixed(1)} s`}))}flight(e,t){let n={kind:e,what:t,started:Date.now(),bytes:0,state:`connecting`},r=this.nextFlight++;return this.flights.set(r,n),p(`net`,`bridge ${e} ${r}: ${t}`),Object.assign(n,{done:()=>{this.flights.delete(r),p(`net`,`bridge ${e} ${r}: done (${n.state}, ${n.bytes} bytes)`)}})}constructor(e,t=4e3,n=null,r=location.origin){this.node=e,this.port=t,this.origins=n,this.ide=r,this.onport=null,this.cookies=/* @__PURE__ */ new Map,navigator.serviceWorker?.addEventListener(`message`,async e=>{if(e.data?.kind===`websocket`){this.websocket(e.data,e.ports[0]);return}if(e.data?.kind!==`http`)return;let t=await this.request(e.data);e.ports[0].postMessage(t,t.body?[t.body.buffer]:[])})}cookieHeader(e){let t=[...this.cookies].map(([e,t])=>`${e}=${t}`),n=e??(typeof document<`u`?document.cookie:``);return n&&t.push(n),t.length?`cookie: ${t.join(`; `)}`:null}websocket({path:e,subprotocols:t,port:n=this.port,cookie:r},i){let a=this.flight(`websocket`,e),o=this.node.connect(n),s=btoa(String.fromCharCode(...crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16)))),c=[`GET ${e} HTTP/1.1`,`host: localhost:${n}`,`upgrade: websocket`,`connection: Upgrade`,`sec-websocket-key: ${s}`,`sec-websocket-version: 13`,`origin: http://localhost:${n}`];t.length&&c.push(`sec-websocket-protocol: ${t.join(`, `)}`);let l=this.cookieHeader(r);l&&c.push(l),o.write(new TextEncoder().encode(c.join(`\r
|
|
2
|
+
`)+`\r
|
|
3
|
+
\r
|
|
4
|
+
`));let u=/* @__PURE__ */ new Uint8Array,d=!1,f=!1,p=[],m=0,h=(e,t,n)=>{f||(f=!0,a.state=`closed ${e}`,a.done(),i.postMessage({close:{code:e,reason:t,clean:n}}),i.close(),o.close())},g=(e,t)=>{let n=crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(4)),r=t.length,i=r<126?[128|e,128|r]:r<65536?[128|e,254,r>>8,r&255]:[128|e,255,0,0,0,0,r>>>24&255,r>>16&255,r>>8&255,r&255],a=new Uint8Array(i.length+4+r);a.set(i),a.set(n,i.length);for(let e=0;e<r;e++)a[i.length+4+e]=t[e]^n[e&3];o.write(a)};i.onmessage=({data:e})=>{if(!f){if(`send`in e)typeof e.send==`string`?g(1,new TextEncoder().encode(e.send)):g(2,new Uint8Array(e.send));else if(`close`in e){let t=new TextEncoder().encode(e.close.reason??``);g(8,new Uint8Array([e.close.code>>8,e.close.code&255,...t]))}}};let _=()=>{for(;;){if(u.length<2)return;let e=u[0]&128,t=u[0]&15,n=u[1]&127,r=2;if(n===126){if(u.length<4)return;n=u[2]<<8|u[3],r=4}else if(n===127){if(u.length<10)return;n=Number(new DataView(u.buffer,u.byteOffset+2,8).getBigUint64(0)),r=10}if(u[1]&128&&(r+=4),u.length<r+n)return;let a=u.slice(r,r+n);if(u=u.slice(r+n),t===8){let e=a.length>=2?a[0]<<8|a[1]:1005;g(8,a.slice(0,2)),h(e,new TextDecoder().decode(a.slice(2)),!0);return}if(t===9&&g(10,a),t>=8||(t!==0&&(m=t),p.push(a),!e))continue;let o=v(p);p=[],i.postMessage({message:m===1?new TextDecoder().decode(o):o.buffer})}};o.ondata=e=>{if(a.bytes+=e.length,u=v([u,e]),!d){let e=-1;for(let t=0;t+3<u.length;t++)if(u[t]===13&&u[t+1]===10&&u[t+2]===13&&u[t+3]===10){e=t;break}if(e<0)return;let t=new TextDecoder(`latin1`).decode(u.subarray(0,e)).split(`\r
|
|
5
|
+
`);if(u=u.slice(e+4),!/^HTTP\/1\.1 101/.test(t[0])){h(1006,``,!1);return}for(let e of t.slice(1)){let[t,...n]=e.split(`:`);t.trim().toLowerCase()===`set-cookie`&&this.remember(n.join(`:`).trim())}let n=t.find(e=>/^sec-websocket-protocol:/i.test(e))?.split(`:`)[1].trim()??``;d=!0,a.state=`open`,i.postMessage({open:n})}_()},o.onend=()=>h(1006,``,!1),o.onclose=()=>h(1006,``,!1)}static async register(e=`sw.js`,t=`./`){let n=await navigator.serviceWorker.register(e,{scope:t});navigator.serviceWorker.addEventListener(`message`,e=>{let t=e.data;t?.kind===`hosted`&&t.protocol===null&&n.update()});let{active:r}=await navigator.serviceWorker.ready;navigator.serviceWorker.controller||r.postMessage(`claim`);let i={kind:`host`,protocol:1};navigator.serviceWorker.controller||await new Promise(e=>navigator.serviceWorker.addEventListener(`controllerchange`,e,{once:!0}));let a=new Promise(e=>{let t=setTimeout(e,5e3),n=r=>{let i=r.data;i?.kind===`hosted`&&i.protocol!==null&&(navigator.serviceWorker.removeEventListener(`message`,n),clearTimeout(t),e())};navigator.serviceWorker.addEventListener(`message`,n)});navigator.serviceWorker.controller.postMessage(i),navigator.serviceWorker.addEventListener(`controllerchange`,()=>navigator.serviceWorker.controller?.postMessage(i)),await a}request({method:e,path:t,headers:n,body:r,destination:i,port:a,cookie:o}){let s=a===void 0&&t.match(g),c=a??this.port;return s?(this.port=Number(s[1]),this.onport?.(this.port),Promise.resolve({status:302,reason:`Found`,headers:[[`location`,s[2]??`/`]],body:/* @__PURE__ */ new Uint8Array})):new Promise(a=>{let s=[`${e} ${t} HTTP/1.1`,`host: localhost:${c}`,`connection: close`,`accept-encoding: gzip`];for(let[e,t]of n)[`host`,`connection`,`cookie`,`accept-encoding`,`content-length`].includes(e)||s.push(`${e}: ${t}`);let l=this.cookieHeader(o);l&&s.push(l);let u=r?new Uint8Array(r):null;u&&s.push(`content-length: ${u.length}`);let d=[],f=this.flight(`http`,`${e} ${t}`),p=this.node.connect(c);f.state=`waiting for the answer`;let m=!1,h=e=>{if(m)return;if(m=!0,f.state=e?`refused`:d.length?`answered`:`closed without an answer`,f.done(),e||!d.length){a({status:502,reason:`Bad Gateway`,headers:[[`content-type`,`text/html`]],body:new TextEncoder().encode(`<meta http-equiv="refresh" content="2"><p style="font-family:system-ui">Waiting for the Phoenix server to start…</p>`)});return}let t=i===void 0||[`document`,`iframe`,`frame`].includes(i);this.parse(v(d),c,o===void 0?void 0:[],t).then(a)};p.ondata=e=>{f.bytes+=e.length,f.state=`receiving (until the node ends the connection)`,d.push(e)},p.onend=()=>{h(!1),p.close()},p.onclose=e=>h(e===`refused`),p.write(new TextEncoder().encode(s.join(`\r
|
|
6
|
+
`)+`\r
|
|
7
|
+
\r
|
|
8
|
+
`)),u&&p.write(u)})}async parse(e,t=this.port,n,r=!0){let i=-1;for(let t=0;t+3<e.length;t++)if(e[t]===13&&e[t+1]===10&&e[t+2]===13&&e[t+3]===10){i=t;break}let a=new TextDecoder(`latin1`).decode(e.subarray(0,i<0?e.length:i)).split(`\r
|
|
9
|
+
`),o=i<0?/* @__PURE__ */ new Uint8Array:e.slice(i+4),[,s,c]=a[0].match(/^HTTP\/1\.[01] (\d+) ?(.*)$/)||[null,`502`,`Bad Gateway`],l=[];for(let e of a.slice(1)){let r=e.indexOf(`:`);if(r<0)continue;let i=e.slice(0,r).trim().toLowerCase(),a=e.slice(r+1).trim();if(i===`set-cookie`&&this.remember(a,n),i===`location`){let e=a.match(/^http:\/\/(?:localhost|127\.0\.0\.1)(?::(\d+))?(\/.*)?$/);if(e){let n=Number(e[1]??80),r=e[2]??`/`;l.push([i,n===t?r:this.elsewhere(n,r)]);continue}}this.origins&&i===`x-frame-options`&&/^sameorigin$/i.test(a)||(this.origins&&i===`content-security-policy`?l.push([i,a.replace(/frame-ancestors([^;]*)/i,(e,t)=>/'none'/.test(t)?e:`${e} ${this.ide}`)]):l.push([i,a]))}l.some(([e,t])=>e===`transfer-encoding`&&/chunked/i.test(t))&&(o=y(o));let u=l.findIndex(([e,t])=>e===`content-encoding`&&t===`gzip`);if(u>=0){let e=new Blob([o]).stream().pipeThrough(new DecompressionStream(`gzip`));o=new Uint8Array(await new Response(e).arrayBuffer()),l.splice(u,1)}let d=l.find(([e])=>e===`content-type`)?.[1]??``;if(r&&d.startsWith(`text/html`)){let e=new TextDecoder().decode(o),n=e.search(/<head[^>]*>/i),r=_(t,this.origins,this.ide),i=n<0?r+e:e.replace(/<head[^>]*>/i,e=>e+r);o=new TextEncoder().encode(i)}return{status:Number(s),reason:c,headers:l,body:o,cookies:n}}elsewhere(e,t){return this.origins?this.origins.replace(`{port}`,String(e))+t:`/__playground/port/${e}${t}`}remember(e,t){let[n,...r]=e.split(`;`),i=n.indexOf(`=`),a=n.slice(0,i).trim(),o=n.slice(i+1).trim(),s=r.map(e=>e.trim().split(`=`)[0].toLowerCase()),c=r.some(e=>{let[t,n]=e.trim().split(`=`);return t.toLowerCase()===`max-age`&&Number(n)<=0||t.toLowerCase()===`expires`&&Date.parse(n)<Date.now()});if(s.includes(`httponly`)||typeof document>`u`&&!t){c?this.cookies.delete(a):this.cookies.set(a,o);let e=r.map(e=>e.trim()).find(e=>/^path=/i.test(e))??`path=/`;t?t.push(`${a}=; ${e}; max-age=0`):typeof document<`u`&&x(a)&&(document.cookie=`${a}=; ${e}; max-age=0`);return}this.cookies.delete(a);let l=r.map(e=>e.trim()).filter(e=>!/^(secure|samesite|domain)/i.test(e)),u=[`${a}=${o}`,...l,...c?[`max-age=0`]:[]].join(`; `);t?t.push(u):document.cookie=u}};function x(e){return document.cookie.split(`;`).some(t=>t.split(`=`)[0].trim()===e)}var S=/* @__PURE__ */ o(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||
|
|
10
|
+
/* istanbul ignore next */9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),C=/* @__PURE__ */ o(((e,t)=>{t.exports=typeof process==`object`&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),ee=/* @__PURE__ */ o(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=S(),a=C();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),te=/* @__PURE__ */ o(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),ne=/* @__PURE__ */ o(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),w=/* @__PURE__ */ o(((e,t)=>{let n=C(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=S(),{safeRe:a,t:o}=ee(),s=te(),{compareIdentifiers:c}=ne();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);this.prerelease=l[4]?l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e!==i)return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e!==i)return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),re=/* @__PURE__ */ o(((e,t)=>{let n=w();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),ie=/* @__PURE__ */ o(((e,t)=>{let n=re();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),ae=/* @__PURE__ */ o(((e,t)=>{let n=re();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),oe=/* @__PURE__ */ o(((e,t)=>{let n=w();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),se=/* @__PURE__ */ o(((e,t)=>{let n=re();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),ce=/* @__PURE__ */ o(((e,t)=>{let n=w();t.exports=(e,t)=>new n(e,t).major})),le=/* @__PURE__ */ o(((e,t)=>{let n=w();t.exports=(e,t)=>new n(e,t).minor})),ue=/* @__PURE__ */ o(((e,t)=>{let n=w();t.exports=(e,t)=>new n(e,t).patch})),de=/* @__PURE__ */ o(((e,t)=>{let n=re();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),fe=/* @__PURE__ */ o(((e,t)=>{let n=w();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),pe=/* @__PURE__ */ o(((e,t)=>{let n=fe();t.exports=(e,t,r)=>n(t,e,r)})),me=/* @__PURE__ */ o(((e,t)=>{let n=fe();t.exports=(e,t)=>n(e,t,!0)})),he=/* @__PURE__ */ o(((e,t)=>{let n=w();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),ge=/* @__PURE__ */ o(((e,t)=>{let n=he();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),_e=/* @__PURE__ */ o(((e,t)=>{let n=he();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),ve=/* @__PURE__ */ o(((e,t)=>{let n=fe();t.exports=(e,t,r)=>n(e,t,r)>0})),ye=/* @__PURE__ */ o(((e,t)=>{let n=fe();t.exports=(e,t,r)=>n(e,t,r)<0})),be=/* @__PURE__ */ o(((e,t)=>{let n=fe();t.exports=(e,t,r)=>n(e,t,r)===0})),xe=/* @__PURE__ */ o(((e,t)=>{let n=fe();t.exports=(e,t,r)=>n(e,t,r)!==0})),Se=/* @__PURE__ */ o(((e,t)=>{let n=fe();t.exports=(e,t,r)=>n(e,t,r)>=0})),Ce=/* @__PURE__ */ o(((e,t)=>{let n=fe();t.exports=(e,t,r)=>n(e,t,r)<=0})),we=/* @__PURE__ */ o(((e,t)=>{let n=be(),r=xe(),i=ve(),a=Se(),o=ye(),s=Ce();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),Te=/* @__PURE__ */ o(((e,t)=>{let n=w(),r=re(),{safeRe:i,t:a}=ee();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2],c=o[3]||`0`,l=o[4]||`0`,u=t.includePrerelease&&o[5]?`-${o[5]}`:``,d=t.includePrerelease&&o[6]?`+${o[6]}`:``;return r(`${s}.${c}.${l}${u}${d}`,t)}})),Ee=/* @__PURE__ */ o(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=/* @__PURE__ */ new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),De=/* @__PURE__ */ o(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!h(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&g(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(s,ce(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[l.COMPARATORTRIM],u),o(`comparator trim`,e),e=e.replace(c[l.TILDETRIM],d),o(`tilde trim`,e),e=e.replace(c[l.CARETTRIM],f),o(`caret trim`,e);let g=e.split(` `).map(e=>v(e,this.options)).join(` `).split(/\s+/).map(e=>se(e,this.options));i&&(g=g.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[l.COMPARATORLOOSE])))),o(`range list`,g);let _=/* @__PURE__ */ new Map,y=g.map(e=>new a(e,this.options));for(let e of y){if(h(e))return[e];_.set(e.value,e)}_.size>1&&_.has(``)&&_.delete(``);let b=[..._.values()];return r.set(t,b),b}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>_(e,n)&&t.set.some(t=>_(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(le(this.set[t],e,this.options))return!0;return!1}};let r=new(Ee()),i=te(),a=Oe(),o=C(),s=w(),{safeRe:c,t:l,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=ee(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=S(),h=e=>e.value===`<0.0.0-0`,g=e=>e.value===``,_=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},v=(e,t)=>(e=e.replace(c[l.BUILD],``),o(`comp`,e,t),e=ne(e,t),o(`caret`,e),e=b(e,t),o(`tildes`,e),e=ie(e,t),o(`xrange`,e),e=oe(e,t),o(`stars`,e),e),y=e=>!e||e.toLowerCase()===`x`||e===`*`,b=(e,t)=>e.trim().split(/\s+/).map(e=>x(e,t)).join(` `),x=(e,t)=>{let n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return y(n)?s=``:y(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:y(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},ne=(e,t)=>e.trim().split(/\s+/).map(e=>re(e,t)).join(` `),re=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return y(n)?c=``:y(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:y(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},ie=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>ae(e,t)).join(` `)),ae=(e,t)=>{e=e.trim();let n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=y(i),u=l||y(a),d=u||y(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},oe=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[l.STAR],``)),se=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],``)),ce=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=y(r)?``:y(i)?`>=${r}.0.0${e?`-0`:``}`:y(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=y(l)?``:y(u)?`<${+l+1}.0.0-0`:y(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),le=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),Oe=/* @__PURE__ */ o(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.value=this.semver===n?``:this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),this.semver=r[2]?new c(r[2],this.options.loose):n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``||new l(t.value,n).test(this.value):t.operator===``?t.value===``||new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=te(),{safeRe:i,t:a}=ee(),o=we(),s=C(),c=w(),l=De()})),ke=/* @__PURE__ */ o(((e,t)=>{let n=De();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),Ae=/* @__PURE__ */ o(((e,t)=>{let n=De();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),je=/* @__PURE__ */ o(((e,t)=>{let n=w(),r=De();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),Me=/* @__PURE__ */ o(((e,t)=>{let n=w(),r=De();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),Ne=/* @__PURE__ */ o(((e,t)=>{let n=w(),r=De(),i=ve();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;
|
|
11
|
+
/* istanbul ignore next */
|
|
12
|
+
default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),Pe=/* @__PURE__ */ o(((e,t)=>{let n=De();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),Fe=/* @__PURE__ */ o(((e,t)=>{let n=w(),r=Oe(),{ANY:i}=r,a=De(),o=ke(),s=ve(),c=ye(),l=Ce(),u=Se();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),Ie=/* @__PURE__ */ o(((e,t)=>{let n=Fe();t.exports=(e,t,r)=>n(e,t,`>`,r)})),Le=/* @__PURE__ */ o(((e,t)=>{let n=Fe();t.exports=(e,t,r)=>n(e,t,`<`,r)})),Re=/* @__PURE__ */ o(((e,t)=>{let n=De();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),ze=/* @__PURE__ */ o(((e,t)=>{let n=ke(),r=fe();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),Be=/* @__PURE__ */ o(((e,t)=>{let n=De(),r=Oe(),{ANY:i}=r,a=ke(),o=fe(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=/* @__PURE__ */ new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),T=(/* @__PURE__ */ o(((e,t)=>{let n=ee(),r=S(),i=w(),a=ne();t.exports={parse:re(),valid:ie(),clean:ae(),inc:oe(),diff:se(),major:ce(),minor:le(),patch:ue(),prerelease:de(),compare:fe(),rcompare:pe(),compareLoose:me(),compareBuild:he(),sort:ge(),rsort:_e(),gt:ve(),lt:ye(),eq:be(),neq:xe(),gte:Se(),lte:Ce(),cmp:we(),coerce:Te(),Comparator:Oe(),Range:De(),satisfies:ke(),toComparators:Ae(),maxSatisfying:je(),minSatisfying:Me(),minVersion:Ne(),validRange:Pe(),outside:Fe(),gtr:Ie(),ltr:Le(),intersects:Re(),simplifyRange:ze(),subset:Be(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}})))(),Ve={name:`@elixir-playground/runtime`,version:`1.0.0`,provides:{manifest:[2],fs:[3],wasi:[1],processes:[1],crossterm:[1],beam:[1],tls:[1],tailscale:[1],nif:[1]}},He=class{manifest;url;constructor(e){this.manifest=e.manifest,this.url=new URL(e.url)}find(e){for(let[t,n]of Object.entries(this.manifest.packages)){let r=n.playground[e];if(r!=null)return{name:t,entry:n,value:r}}return null}file(e,t){let n=this.manifest.packages[e];if(!n)throw Error(`${e}: not on this site`);return new URL(t,new URL(n.base,this.url))}beam(){let e=this.find(`beam`);if(!e)return null;let{loader:t,wasm:n}=e.value;return{loader:this.file(e.name,t),wasm:this.file(e.name,n)}}shell(){let e=this.find(`shell`);return e?this.file(e.name,e.value):null}programs(){let e=/* @__PURE__ */ new Map;for(let[t,n]of Object.entries(this.manifest.packages))for(let[r,{module:i,multicall:a=!1}]of Object.entries(n.playground.programs??{}))e.has(r)||e.set(r,{url:this.file(t,i),multicall:a});return e}multicall(){for(let{url:e,multicall:t}of this.programs().values())if(t)return e;return null}layers(){let e=[],t=0;for(let[n,r]of Object.entries(this.manifest.packages)){let i=r.playground.fs;i&&(e.push({name:n,layer:i,first:t}),t+=i.count)}return e}async tree(e=Ge){return(await Promise.all(this.layers().map(async({name:t,layer:n,first:r})=>(await e(this.file(t,n.manifest))).map(([e,t,i,a])=>a===void 0?[Ue(n.root,e),t,i]:[Ue(n.root,e),t,i,r+a])))).flat()}otp(){let e=this.find(`otp`),t=e?.entry.playground.fs?.root;return e&&t?{version:e.value,root:t}:null}elixir(){let e=this.find(`elixir`),t=e?.entry.playground.fs?.root;return e&&t?{version:e.value,root:t}:null}bin(){let e=/* @__PURE__ */ new Map;for(let t of Object.values(this.manifest.packages)){let n=t.playground.fs?.root;if(n)for(let[r,i]of Object.entries(t.playground.bin??{}))e.has(r)||e.set(r,We(n,i))}return e}environment(){let e={};for(let t of Object.values(this.manifest.packages)){let n=t.playground.fs?.root;if(n)for(let[r,i]of Object.entries(t.playground.env??{}))e[r]??=We(n,i)}return e}bundle(e){for(let{name:t,layer:n,first:r}of this.layers())if(e>=r&&e<r+n.count)return this.file(t,`${n.bundles}${e-r}.tar`);throw Error(`no bundle ${e} on this site`)}boot(e){let t=this.manifest.boot;if(!t?.images.includes(e))throw Error(`this site has no boot image ${e}`);return new URL(`${e}.tar.gz`,new URL(t.base,this.url))}boots(e){let t=this.manifest.boot?.images??[];return e?e.filter(e=>t.includes(e)):t}fsVersion(){return Ke(this.layers().map(({name:e,layer:t})=>`${e}@${t.version}`).sort().join(`
|
|
13
|
+
`))}tls(){let e=this.find(`tls`);return e?{module:this.file(e.name,e.value.module).href,roots:this.file(e.name,e.value.roots).href}:null}tailscale(){let e=this.find(`tailscale`);if(!e)return null;let{module:t,glue:n}=e.value;return{module:this.file(e.name,t),glue:this.file(e.name,n)}}versions(){let e=this.find(`otp`)?.value,t=this.find(`elixir`)?.value;return e&&t?{otp:e,elixir:t}:null}template(e){for(let t of Object.values(this.manifest.packages)){let n=t.playground.template,r=t.playground.fs?.root;if(n?.kind===e&&r)return{id:n.id,label:n.label,root:r}}return null}};const Ue=(e,t)=>`${e.replace(/^\/+/,``)}/${t}`,We=(e,t)=>t===`.`||t===``?e:`${e.replace(/\/+$/,``)}/${t}`;async function Ge(e){let t=await fetch(e);if(!t.ok)throw Error(`${e}: ${t.status}`);return await t.json()}function Ke(e){let t=14695981039346656037n;for(let n of new TextEncoder().encode(e))t=BigInt.asUintN(64,(t^BigInt(n))*1099511628211n);return t.toString(16).padStart(16,`0`)}const qe=Ve,Je=e=>(0,T.coerce)(e)?.version??e,Ye=(e,t)=>(0,T.validRange)(t)!==null&&(0,T.satisfies)(Je(e),t);function Xe(e,t=qe){let n=[];if(!t.provides.manifest?.includes(e.manifest))return[`site.json is manifest ${e.manifest}; this runtime reads ${t.provides.manifest}`];let r=n=>n===t.name?t.version:e.packages[n]?.version,i=Object.entries(e.packages);for(let[e,a]of i){let i=`${e}@${a.version}`;for(let[e,t]of Object.entries(a.peerDependencies??{})){let a=r(e);a===void 0?n.push(`${i} needs ${e} ${t}, which is missing`):Ye(a,t)||n.push(`${i} needs ${e} ${t}, not ${a}`)}for(let[e,r]of Object.entries(a.playground.abi??{})){let a=t.provides[e]??[];a.includes(r)||n.push(`${i} uses the ${e} ABI ${r}; ${t.name}@${t.version} `+(a.length?`speaks ${a.join(`, `)}`:`has none`))}}let a=e=>{let t=i.filter(([,t])=>t.playground[e]!==void 0);return t.length>1&&n.push(`more than one ${e} package: ${t.map(([e])=>e).join(`, `)}`),t[0]?.[1]??null},o=a(`otp`),s=a(`elixir`),c=s?.playground.requires?.otp;o&&c&&!Ye(o.playground.otp,c)&&n.push(`Elixir ${s.playground.elixir} needs OTP ${c}, not ${o.playground.otp}`);for(let[e,t]of i){let r=t.playground.template;r&&(o&&r.otp!==o.playground.otp&&n.push(`${e} was compiled with OTP ${r.otp}, not ${o.playground.otp}`),s&&r.elixir!==s.playground.elixir&&n.push(`${e} was compiled with Elixir ${r.elixir}, not ${s.playground.elixir}`))}for(let[e,r]of i){let i=r.playground.fs;i&&(t.provides.fs?.includes(i.format)||n.push(`${e}@${r.version}'s files are fs format ${i.format}; this runtime reads ${t.provides.fs}`),(!/^\/[^/]/.test(i.root)||/\/$|\/\.\.?(\/|$)/.test(i.root))&&n.push(`${e}@${r.version}'s files have no absolute root: ${i.root}`))}for(let[t,i]of Object.entries(e.boot?.packages??{}))r(t)!==i&&n.push(`the boot images were recorded with ${t}@${i}, not ${r(t)??`none`}`);let l=o?.playground.nifAbi;if(l){let e=Number(l.split(`-`)[0]);t.provides.nif?.includes(e)||n.push(`OTP's NIF ABI is ${l}; ${t.name}@${t.version} loads layer ${t.provides.nif?.join(`, `)||`none`}`)}return n}function Ze(e,t=qe){let n=Xe(e,t);if(n.length)throw Object.assign(/* @__PURE__ */ Error(`this site's packages do not fit @elixir-playground/runtime@${t.version}: ${n.join(`; `)}`),{code:`ERUNTIME`})}function Qe(e,t){let n=new TextEncoder;e.onmessage=({data:e,ports:r})=>{let i=t();if(e?.kind===`http`){if(!i){let e=n.encode(`The project is not running.`);r[0].postMessage({status:503,reason:`Service Unavailable`,headers:[[`content-type`,`text/plain`]],body:e},[e.buffer]);return}i.request(e).then(e=>r[0].postMessage(e,[e.body.buffer]))}else e?.kind===`websocket`&&(i?i.websocket(e,r[0]):r[0].postMessage({close:{code:1006,reason:``,clean:!1}}))}}const $e=4369;var et=class{nodes=/* @__PURE__ */ new Map;creation=Math.floor(Math.random()*2147483647)+1};function tt(e,t,n){let r=/* @__PURE__ */ new Uint8Array,i=null,a=new TextDecoder,o=new TextEncoder,s=r=>{let s=new DataView(r.buffer,r.byteOffset,r.byteLength);if(r[0]===120&&i===null){let o=s.getUint16(9),c=a.decode(r.subarray(11,11+o)),l=s.getUint16(11+o),u=/* @__PURE__ */ new Uint8Array(6);u[0]=118,e.nodes.has(c)?u[1]=1:(i=c,e.nodes.set(c,{port:s.getUint16(1),type:r[3],protocol:r[4],highest:s.getUint16(5),lowest:s.getUint16(7),extra:r.slice(13+o,13+o+l)}),e.creation=e.creation%4294967295+1,new DataView(u.buffer).setUint32(2,e.creation)),t(u),u[1]&&n()}else if(r[0]===122){let i=a.decode(r.subarray(1)),s=e.nodes.get(i);if(!s)t(new Uint8Array([119,1]));else{let e=o.encode(i),n=new Uint8Array(14+e.length+s.extra.length),r=new DataView(n.buffer);n[0]=119,r.setUint16(2,s.port),n[4]=s.type,n[5]=s.protocol,r.setUint16(6,s.highest),r.setUint16(8,s.lowest),r.setUint16(10,e.length),n.set(e,12),r.setUint16(12+e.length,s.extra.length),n.set(s.extra,14+e.length),t(n)}n()}else if(r[0]===110){let r=[...e.nodes].map(([e,t])=>`name ${e} at port ${t.port}\n`),i=o.encode(r.join(``)),a=new Uint8Array(4+i.length);new DataView(a.buffer).setUint32(0,$e),a.set(i,4),t(a),n()}else n()};return{data(e){let t=new Uint8Array(r.length+e.length);for(t.set(r),t.set(e,r.length),r=t;r.length>=2;){let e=r[0]<<8|r[1];if(r.length<2+e)break;let t=r.slice(2,2+e);r=r.subarray(2+e),s(t)}},closed(){i!==null&&e.nodes.delete(i),i=null}}}function nt(e){return t=>{let n=tt(e,e=>t.write(e),()=>{n.closed(),t.close()});t.ondata=e=>n.data(e),t.onend=()=>{n.closed(),t.close()},t.onclose=()=>n.closed()}}function rt(e,t){let n=new URL(e,new URL(t,location.href)).href,r=new Blob([`import ${JSON.stringify(n)};`],{type:`text/javascript`});return new Worker(URL.createObjectURL(r),{type:`module`})}var it=class{doorbell;requests;next;worker;ready;boot=null;archived=[];constructor({base:e=`./`,site:t=null,boots:n=[`boot`],template:r=[],archive:i=null,store:a=null,storePort:o=null,sharedPort:s=null,onchange:c=e=>{},onkept:l=e=>{},onwarning:u=e=>{}}={}){this.doorbell=new SharedArrayBuffer(4),this.requests=/* @__PURE__ */ new Map,this.next=0,this.worker=rt(`files.js`,e),this.ready=new Promise((e,t)=>{this.worker.onmessage=({data:n})=>{if(n.kind===`ready`)this.boot=n.boot,this.archived=n.archived??[],e();else if(n.kind===`failed`)t(Error(n.message));else if(n.kind===`changed`)c(n.paths);else if(n.kind===`warning`)u(n.message);else if(n.kind===`kept`)l(n.records);else if(n.kind===`reply`){let e=this.requests.get(n.id);this.requests.delete(n.id),n.error?e?.reject(Object.assign(Error(n.error),{code:n.code})):e?.resolve(n)}}}),this.worker.postMessage({kind:`start`,site:t,doorbell:this.doorbell,boots:n,template:r,archive:i,store:a,storePort:o,sharedPort:s},[o,s].filter(e=>e!==null))}hideShared(e){return this.ask({op:`hide-shared`,hide:e}).then(()=>{})}apply(e){let t=e.flatMap(e=>e.kind===`file`?[e.data.buffer]:[]);this.worker.postMessage({kind:`apply`,records:e},t)}connect(){let e=new SharedArrayBuffer(1048584);return this.worker.postMessage({kind:`connect`,channel:e}),{doorbell:this.doorbell,channel:e}}disconnect({channel:e}){this.worker.postMessage({kind:`disconnect`,channel:e})}ask(e){return new Promise((t,n)=>{let r=++this.next;this.requests.set(r,{resolve:t,reject:n}),this.worker.postMessage({kind:`request`,id:r,...e})})}list(e,t=[]){return this.ask({op:`list`,path:e,skip:t}).then(e=>e.entries)}stat(e){return this.ask({op:`stat`,path:e}).then(e=>e.type)}lstat(e){return this.ask({op:`lstat`,path:e})}readdir(e){return this.ask({op:`readdir`,path:e}).then(e=>e.names)}unlink(e){return this.ask({op:`unlink`,path:e}).then(()=>{})}rmdir(e){return this.ask({op:`rmdir`,path:e}).then(()=>{})}read(e){return this.ask({op:`read`,path:e}).then(e=>e.data)}write(e,t){return this.ask({op:`write`,path:e,data:typeof t==`string`?new TextEncoder().encode(t):t}).then(()=>{})}mkdir(e){return this.ask({op:`mkdir`,path:e}).then(()=>{})}remove(e){return this.ask({op:`remove`,path:e}).then(()=>{})}rename(e,t){return this.ask({op:`rename`,path:e,to:t}).then(()=>{})}symlink(e,t){return this.ask({op:`symlink`,path:t,target:e}).then(()=>{})}changes(e=[]){return this.ask({op:`changes`,skip:e}).then(({changed:e,removed:t})=>({changed:e,removed:t}))}search(e,t,n=[],r=1e3){return this.ask({op:`search`,path:e,query:t,skip:n,limit:r}).then(({hits:e,truncated:t,error:n})=>({hits:e,truncated:t,error:n}))}flush(){return this.ask({op:`flush`}).then(()=>{})}};const at=new TextEncoder;var ot=class{worker;files;channel;pending=/* @__PURE__ */ new Map;next=0;ready;constructor({base:e,site:t,files:n}){this.files=n,this.channel=n.connect(),this.worker=rt(`git.js`,e),this.worker.onmessage=({data:e})=>{this.pending.get(e.id)?.(e),this.pending.delete(e.id)};let{channel:r,worker:i}=this;this.ready=(async()=>{let e=new He(t).programs().get(`git`);if(!e)return!1;let n=await fetch(e.url),a=new Uint8Array(await n.arrayBuffer());return!n.ok||a[0]!==0||a[1]!==97?!1:(i.postMessage({kind:`start`,files:r,git:await WebAssembly.compile(a)}),!0)})().catch(()=>!1)}async run(e,{cwd:t=`/work`,env:n={},stdin:r}={}){if(!await this.ready)return{code:127,stdout:/* @__PURE__ */ new Uint8Array,stderr:at.encode(`git: not found
|
|
14
|
+
`)};let i=++this.next,a=typeof r==`string`?at.encode(r):r??null;return new Promise(r=>{this.pending.set(i,({code:e,stdout:t,stderr:n})=>r({code:e,stdout:t,stderr:n})),this.worker.postMessage({kind:`run`,id:i,args:e,cwd:t,env:n,stdin:a})})}stop(){this.worker.terminate(),this.files.disconnect(this.channel);let e=at.encode(`git: stopped
|
|
15
|
+
`);for(let t of this.pending.values())t({id:0,code:1,stdout:/* @__PURE__ */ new Uint8Array,stderr:e});this.pending.clear()}};function*st(e){let t=(t,n)=>{let r=t;for(;r<t+n&&e[r]!==0;)r++;return new TextDecoder().decode(e.subarray(t,r))},n=null,r=null;for(let i=0;i+512<=e.length&&e[i]!==0;){let a=t(i,100),o=t(i+345,155);o&&(a=`${o}/${a}`),n!==null&&(a=n,n=null);let s=parseInt(t(i+124,12).trim()||`0`,8),c=BigInt(parseInt(t(i+136,12).trim()||`0`,8))*1000000000n,l=String.fromCharCode(e[i+156]||48),u=t(i+157,100);r!==null&&l!==`K`&&l!==`L`&&l!==`x`&&(u=r,r=null);let d=i+512;if(l===`L`)n=t(d,s);else if(l===`K`)r=t(d,s);else if(l===`x`){let t=e.subarray(d,d+s);n=ct(t,`path`),r=ct(t,`linkpath`)}else l!==`g`&&(yield{name:a,type:l,body:e.slice(d,d+s),mtime:c,link:u});i=d+Math.ceil(s/512)*512}}function ct(e,t){let n=new TextDecoder;for(let r=0;r<e.length;){let i=e.indexOf(32,r);if(i<0)break;let a=parseInt(n.decode(e.subarray(r,i)),10);if(!(a>0))break;let o=n.decode(e.subarray(i+1,r+a-1));if(o.startsWith(`${t}=`))return o.slice(t.length+1);r+=a}return null}async function lt(e){let t=new Blob([e]).stream().pipeThrough(new DecompressionStream(`gzip`));return new Uint8Array(await new Response(t).arrayBuffer())}Ve.provides.nif,49152+Math.floor(Math.random()*16384);function ut(e){if(!e.includes(`:`))return e.startsWith(`127.`)||e===`0.0.0.0`;let t=e.split(`:`).map(e=>parseInt(e,16)||0);return t.length===8&&t.slice(0,7).every(e=>e===0)?t[7]<=1:t.length===8&&t.slice(0,5).every(e=>e===0)&&t[5]===65535&&t[6]>>8==127}const dt=e=>/^[\w@%+=:,./-]+$/.test(e)?e:`'${e.replace(/'/g,`'\\''`)}'`;new TextEncoder;const ft={HOME:`/home/user`,LANG:`C.UTF-8`,TERM:`xterm-256color`,PATH:`/usr/bin:/home/user/.mix/escripts`,MIX_HOME:`/home/user/.mix`,TARGET_ARCH:`wasm32`,TARGET_OS:`unknown`,TARGET_ABI:`wasi`},pt=e=>({...ft,...e.environment()}),mt={SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGKILL:9,SIGTERM:15},ht=Object.fromEntries(Object.entries(mt).map(([e,t])=>[t,e])),gt=/^\x1b\[\d+;\d+R$/;function _t(e,t,n=[]){let r=``,i=0,a=n.filter(e=>e.trim()),o=a.length,s=!1,c=!0,l=(t,n=t.length)=>{let a=0;for(;a<r.length&&a<t.length&&r[a]===t[a];)a++;let o=i>a?`\b`.repeat(i-a):r.slice(i,a),s=t.slice(a)+` `.repeat(Math.max(0,r.length-t.length));e(o+s+`\b`.repeat(a+s.length-n)),r=t,i=n},u=e=>{e.trim()&&a.push(e),o=a.length,t.input(e+`
|
|
16
|
+
`)};return{keys:n=>{if(s)n===``&&c?(e(`^C`),t.interrupt()):t.input(n);else if(n===`\r`)e(`\r
|
|
17
|
+
`),u(r),r=``,i=0;else if(n===``)i>0&&l(r.slice(0,i-1)+r.slice(i),i-1);else if(n===`\x1B[A`||n===`\x1B[B`)o=Math.max(0,Math.min(a.length,o+(n===`\x1B[A`?-1:1))),l(a[o]??``);else if(n===`\x1B[D`)i>0&&(e(`\b`),i--);else if(n===`\x1B[C`)i<r.length&&(e(r[i]),i++);else if(n===``)r||t.input(``);else if(n===``)e(`^C\r
|
|
18
|
+
`),r=``,i=0,t.interrupt();else if(!n.startsWith(`\x1B`)){let t=n.replace(/\r\n?/g,`
|
|
19
|
+
`).replace(/[\x00-\x09\x0b-\x1f]/g,``);if(t.includes(`
|
|
20
|
+
`)){let n=(r.slice(0,i)+t+r.slice(i)).split(`
|
|
21
|
+
`),a=n.pop();e(t.replace(/\n/g,`\r
|
|
22
|
+
`));for(let e of n)u(e);r=a,i=a.length}else l(r.slice(0,i)+t+r.slice(i),i+t.length)}},raw(e,n=!0){if(c=n,e!==s){if(s=e,s&&r){let e=r;l(``,0),t.input(e)}r=``,i=0}}}}function vt(){let e=!1;return t=>{let n=0;for(let r=0;r<t.length;r++)t[r]===10&&!(r?t[r-1]===13:e)&&n++;if(!n)return t.length&&(e=t[t.length-1]===13),t;let r=new Uint8Array(t.length+n),i=0;for(let n=0;n<t.length;n++)t[n]===10&&!(n?t[n-1]===13:e)&&(r[i++]=13),r[i++]=t[n];return e=t[t.length-1]===13,r}}function yt(e,{id:t,name:n,args:r,cwd:i,env:a,tty:o}){let s=!1,c={onkill:null,raw:(n,r=!n)=>e.frame(E.MODE,t,new Uint8Array([+!!n,+!!r])),size:()=>e.size,write:n=>{if(s)return;let r=typeof n==`string`?new TextEncoder().encode(n):n;for(let n=0;n<r.length;n+=xt)e.frame(E.OUTPUT,t,r.subarray(n,n+xt))},writeError:n=>{if(s)return;let r=typeof n==`string`?new TextEncoder().encode(n):n;for(let n=0;n<r.length;n+=xt)e.frame(E.OUTPUT_ERR,t,r.subarray(n,n+xt))},exit:(n=0)=>{s||(s=!0,e.running.delete(t),e.spawned.delete(t),e.frame(E.EXIT,t,new Uint8Array([n&255])))}},l=[],u=null,d=n=>{if(u(n),!n?.length)return;let r=/* @__PURE__ */ new Uint8Array(4);new DataView(r.buffer).setUint32(0,n.length,!0),e.frame(E.TAKEN,t,r)};Object.defineProperty(c,"oninput",{get:()=>e=>u?d(e):void l.push(e),set:e=>{for(u=e;l.length&&u;)d(l.shift())}}),e.running.set(t,c),e.spawned.set(t,{command:[n,...r].join(` `),started:Date.now()}),Promise.resolve().then(()=>e.programs[n](c,{args:r,cwd:i,env:a,fs:e.fs,tty:{stdin:o?.[0]??!1,stdout:o?.[1]??!1}})).catch(e=>{c.writeError(`${n}: ${e.message}\n`),c.exit(1)})}const E={INPUT:0,OPEN:1,DATA:2,END:3,CLOSE:4,INTERRUPT:5,OUTPUT:7,EXIT:8,RESIZE:9,PEERS:10,TERMINATE:11,CONNECTED:12,DATAGRAM:13,MODE:14,TAKEN:15,OUTPUT_ERR:16},bt=1<<20,xt=65536;var St=class{node;id;ondata;onend;onclose;opened=Date.now();port=0;sent=0;received=0;ended=null;constructor(e,t){this.node=e,this.id=t,this.ondata=()=>{},this.onend=()=>{},this.onclose=()=>{}}write(e){this.sent+=e.length,p(`net`,`page → node ${this.id}: ${e.length} bytes`);for(let t=0;t<e.length;t+=xt)this.node.frame(E.DATA,this.id,e.subarray(t,t+xt))}end(){p(`net`,`page → node ${this.id}: end`),this.node.frame(E.END,this.id)}close(){p(`net`,`page → node ${this.id}: close`),this.ended??=`closed by the page`,this.node.frame(E.CLOSE,this.id),this.node.forget(this)}dialed(e){p(`net`,`page → node ${this.id}: connected${e?` from ${e}`:``}`);let t=e?.lastIndexOf(`:`)??-1;if(!e||t<0)return this.node.frame(E.CONNECTED,this.id,new Uint8Array([1]));let n=Ct(e.slice(0,t)),r=Number(e.slice(t+1));this.node.frame(E.CONNECTED,this.id,new Uint8Array([1,...n,r>>8,r&255]))}refuse(e){p(`net`,`page → node ${this.id}: not connected (${e})`),this.ended??=`not connected (${e})`,this.node.frame(E.CONNECTED,this.id,new Uint8Array([e&255])),this.node.forget(this)}describe(){return{id:this.id,port:this.port,age:`${((Date.now()-this.opened)/1e3).toFixed(1)} s`,sent:this.sent,received:this.received,ended:this.ended}}};function Ct(e){if(!e.includes(`:`))return new Uint8Array([4,...e.split(`.`).map(Number)]);let[t,n=null]=e.replace(/^\[|\]$/g,``).split(`::`),r=t?t.split(`:`):[],i=n===null?[]:n?n.split(`:`):[],a=[...r,...Array(8-r.length-i.length).fill(`0`),...i],o=/* @__PURE__ */ new Uint8Array(17);return o[0]=6,a.forEach((e,t)=>{let n=parseInt(e,16)||0;o[1+2*t]=n>>8,o[2+2*t]=n&255}),o}const wt=/* @__PURE__ */ new Map;function Tt(e){if(!e)return Promise.resolve(null);let t=e.href,n=wt.get(t);return n||(n=fetch(t).then(async e=>{let t=new Uint8Array(await e.arrayBuffer());return e.ok&&t[0]===0&&t[1]===97?WebAssembly.compile(t):null}).catch(()=>null),wt.set(t,n)),n}var Et=class{https;outbound;udpServe;udp;udpPorts=/* @__PURE__ */ new Set;udpPeer;files;listening;serving;programs;running;size=[80,24];shared;control;ring;pending;connections;next;serve;peer;worker;site;channel=null;retry=null;recent=[];fromWorker={};spawned=/* @__PURE__ */ new Map;constructor({base:e=`./`,site:t=null,onoutput:n=(e,t)=>{},onstatus:r=e=>{},onexit:i=e=>{},serve:a={},https:o=null,outbound:s=null,udpServe:c={},udp:l=null,udpPeer:u=(e,t)=>!1,programs:d={},files:f=null,onlistening:p=(e,t)=>{},onterminal:m=(e,t)=>{},onnif:h=e=>{},peer:g=(e,t)=>!1}){this.peer=g,this.https=o,this.outbound=s,this.udpServe=c,this.udp=l,this.udpPeer=u,this.files=f,this.listening=/* @__PURE__ */ new Set,this.serving=/* @__PURE__ */ new Set,this.programs=d,this.running=/* @__PURE__ */ new Map,this.shared=new SharedArrayBuffer(1048584),this.control=new Int32Array(this.shared,0,2),this.ring=new Uint8Array(this.shared,8,bt),this.pending=[],this.connections=/* @__PURE__ */ new Map,this.next=1,this.serve=a,this.site=t,this.worker=rt(`worker.js`,e),this.worker.onmessage=({data:e})=>{let t=this.fromWorker[e.kind]??={count:0,last:0};t.count++,t.last=Date.now(),e.kind===`out`?n(e.payload,1):e.kind===`err`?n(e.payload,2):e.kind===`status`?r(e.payload):e.kind===`exit`?i(e.payload):e.kind===`tty`?m(e.raw,e.signals??!0):e.kind===`stdin`?this.running.get(e.id)?.oninput?.(e.end?null:e.bytes):e.kind===`nif`?h(e):e.kind===`net`?this.network(e):e.kind===`udp`?this.datagramFrom(e):e.kind===`listening`?(e.on?this.listening.add(e.port):this.listening.delete(e.port),e.on&&!e.ephemeral?this.serving.add(e.port):this.serving.delete(e.port),p(e.port,e.on)):e.kind===`spawn`?yt(this,e):e.kind===`kill`&&(this.running.get(e.id)?.onkill?.(),this.running.delete(e.id),this.spawned.delete(e.id))},this.worker.onerror=e=>r(`failed: ${e.message||`the worker did not start`}`)}start({shell:e=!1,args:t,command:n,env:r={},initial:i=[],cwd:a,boots:o,tty:s}={}){this.channel=this.files?.connect()??null;let c=new He(this.site),l=c.boots(o??[`boot`]),u=this.files,d=e||n?.[0]===`sh`||n?.[0]===`bash`?Tt(c.shell()):null;Promise.all([u?u.ready.then(()=>u.boot,()=>null):null,d,Tt(c.multicall()),Tt(c.beam()?.wasm??null)]).then(([c,u,d,f])=>{let p=c&&l.every(e=>c.images[e]);this.worker.postMessage({shared:this.shared,site:this.site,files:this.channel,shell:e,args:t,command:n,env:r,initial:i,cwd:a,boots:o,images:p?l.map(e=>c.images[e]):void 0,manifest:p?c.manifest:void 0,brush:u??void 0,coreutils:d??void 0,beam:f??void 0,ports:Object.keys(this.serve).map(Number),udpPorts:Object.keys(this.udpServe).map(Number),outbound:!!this.outbound,https:!!this.https,pagePrograms:Object.keys(this.programs),tty:s})})}get fs(){return this.files}stop(){this.worker.terminate();for(let e of this.running.values())e.onowner?.();this.running.clear();for(let e of[...this.connections.values()])this.forget(e),e.onclose(`close`);this.channel&&this.files.disconnect(this.channel)}input(e){this.frame(E.INPUT,0,new TextEncoder().encode(e))}interrupt(){this.frame(E.INTERRUPT,0)}terminate(){this.frame(E.TERMINATE,0)}resize(e,t){this.size=[e,t];for(let n of this.running.values())n.onresize?.(e,t);let n=/* @__PURE__ */ new Uint8Array(4),r=new DataView(n.buffer);r.setUint16(0,e,!0),r.setUint16(2,t,!0),this.frame(E.RESIZE,0,n)}peers(e){let t=new Uint8Array(e.length*2);e.forEach((e,n)=>t.set([e>>8,e&255],n*2)),this.frame(E.PEERS,0,t)}connect(e){let t=this.next+=2,n=new St(this,t);return n.port=e,p(`net`,`page → node ${t}: open ${e}`),this.connections.set(t,n),this.frame(E.OPEN,t,new Uint8Array([e>>8,e&255])),n}forget(e){this.connections.delete(e.id),this.recent.push(e),this.recent.length>30&&this.recent.shift()}debug(){let e=Atomics.load(this.control,0)-Atomics.load(this.control,1),t=e=>`${((Date.now()-e)/1e3).toFixed(1)} s ago`;return{ringUnread:e,pendingFrames:this.pending.length,pendingBytes:this.pending.reduce((e,t)=>e+t.length,0),retrying:this.retry!==null,listening:[...this.listening],serving:[...this.serving],open:[...this.connections.values()].map(e=>e.describe()),recent:this.recent.map(e=>e.describe()),programs:[...this.spawned.values()].map(({command:e,started:n})=>`${e} (${t(n).replace(` ago`,``)})`),fromWorker:Object.fromEntries(Object.entries(this.fromWorker).map(([e,{count:n,last:r}])=>[e,`${n}, last ${t(r)}`]))}}network({op:e,id:t,port:n,host:r,payload:i}){p(`net`,`node → page ${t}: ${e}${i?` ${i.length} bytes`:``}`);let a=this.connections.get(t);if(e===`dial`)a=new St(this,t),a.port=n??0,this.connections.set(t,a),this.outbound?this.outbound(a,{address:r,port:n}):a.refuse(-40);else if(e===`open`){if(a=new St(this,t),a.port=n??0,this.connections.set(t,a),r!==void 0){this.https?this.https(a,{host:r,port:n}):a.close();return}let e=this.serve[n];e?e(a):this.peer(a,n)||a.close()}else if(a)e===`data`?(a.received+=i.length,a.ondata(i)):e===`end`?(a.ended=`ended by the node`,a.onend()):(e===`close`||e===`refused`)&&(a.ended=e===`refused`?`refused by the node`:`closed by the node`,this.forget(a),a.onclose(e));else return}datagramFrom({from:e,address:t,port:n,payload:r,bound:i,closed:a}){if(i)return void this.udpPorts.add(e);if(a)return this.udpPorts.delete(e),this.udp?.unbound?.(e);p(`net`,`node ${e} → ${t}:${n}: datagram, ${r.length} bytes`);let o={from:e,address:t,port:n,bytes:r},s=(t,n,r)=>this.datagram(e,t,n,r);if(!ut(t))return this.udp?.send(o,s);let c=this.udpServe[n];c?c(o,s):this.udpPeer(o,this)}datagram(e,t,n,r){p(`net`,`${t}:${n} → node ${e}: datagram, ${r.length} bytes`);let i=Ct(t),a=new Uint8Array(2+i.length+r.length);a.set([n>>8,n&255]),a.set(i,2),a.set(r,2+i.length),this.frame(E.DATAGRAM,e,a)}frame(e,t,n=/* @__PURE__ */ new Uint8Array){let r=new Uint8Array(9+n.length),i=new DataView(r.buffer);i.setUint8(0,e),i.setUint32(1,t,!0),i.setUint32(5,n.length,!0),r.set(n,9),this.pending.push(r),this.flush()}flush(){let e=Atomics.load(this.control,0);for(;this.pending.length;){let t=this.pending[0];if(1048576-(e-Atomics.load(this.control,1))<t.length){this.retry??=setTimeout(()=>{this.retry=null,this.flush()},2);break}for(let n of t)this.ring[e++%bt]=n;this.pending.shift()}Atomics.store(this.control,0,e),Atomics.notify(this.control,0)}};const Dt=[13,10,13,10],Ot=new TextEncoder,kt=new TextDecoder,At={"api.anthropic.com":[[`anthropic-dangerous-direct-browser-access`,`true`]]},jt=/* @__PURE__ */ new Set([`host`,`connection`,`content-length`,`transfer-encoding`,`keep-alive`,`upgrade`,`te`,`trailer`,`accept-encoding`,`user-agent`,`cookie`,`proxy-connection`,`expect`]),Mt=/* @__PURE__ */ new Set([`content-encoding`,`content-length`,`transfer-encoding`,`connection`,`keep-alive`]),Nt={200:`OK`,201:`Created`,202:`Accepted`,204:`No Content`,205:`Reset Content`,206:`Partial Content`,301:`Moved Permanently`,302:`Found`,303:`See Other`,304:`Not Modified`,307:`Temporary Redirect`,308:`Permanent Redirect`,400:`Bad Request`,401:`Unauthorized`,403:`Forbidden`,404:`Not Found`,405:`Method Not Allowed`,406:`Not Acceptable`,408:`Request Timeout`,409:`Conflict`,410:`Gone`,411:`Length Required`,412:`Precondition Failed`,413:`Payload Too Large`,414:`URI Too Long`,415:`Unsupported Media Type`,416:`Range Not Satisfiable`,418:`I'm a Teapot`,422:`Unprocessable Entity`,425:`Too Early`,426:`Upgrade Required`,428:`Precondition Required`,429:`Too Many Requests`,431:`Request Header Fields Too Large`,451:`Unavailable For Legal Reasons`,500:`Internal Server Error`,501:`Not Implemented`,502:`Bad Gateway`,503:`Service Unavailable`,504:`Gateway Timeout`,505:`HTTP Version Not Supported`};function Pt(e,t,n=0){outer:for(let r=n;r+t.length<=e.length;r++){for(let n=0;n<t.length;n++)if(e[r+n]!==t[n])continue outer;return r}return-1}function Ft(e,t){let n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function It(e){let t=[],n=0;for(;;){let r=Pt(e,[13,10],n);if(r<0)return null;let i=kt.decode(e.subarray(n,r)).split(`;`)[0].trim();if(!/^[0-9a-f]+$/i.test(i))throw Error(`a malformed chunked body`);let a=parseInt(i,16);if(n=r+2,a===0){let r=e[n]===13&&e[n+1]===10?n+2:Pt(e,Dt,n);if(r<0)return null;let i=r===n+2?r:r+4;return{body:t.reduce(Ft,/* @__PURE__ */ new Uint8Array),used:i}}if(n+a+2>e.length)return null;t.push(e.subarray(n,n+a)),n+=a+2}}function Lt(e,t,n,r,i,a=!0){let o=[`HTTP/1.1 ${t} ${n}`,a?`connection: close`:`connection: keep-alive`];i?o.push(`transfer-encoding: chunked`):r.some(([e])=>e===`content-length`)||o.push(`content-length: 0`);for(let[e,t]of r)o.push(`${e}: ${t}`);e.write(Ot.encode(o.join(`\r
|
|
23
|
+
`)+`\r
|
|
24
|
+
\r
|
|
25
|
+
`))}function Rt(e,t){t.length&&(e.write(Ot.encode(`${t.length.toString(16)}\r\n`)),e.write(t),e.write(Ot.encode(`\r
|
|
26
|
+
`)))}function zt(e,t,n,r){Lt(e,t,n,[[`content-type`,`text/plain`]],!0),Rt(e,Ot.encode(r)),e.write(Ot.encode(`0\r
|
|
27
|
+
\r
|
|
28
|
+
`)),e.end()}const Bt=(e,t)=>e.write(Ot.encode(`${t}\n`));function Vt({onrequest:e=(e,t)=>{},tunnel:t=(e,t)=>null,onblocked:n=e=>{}}={}){let r=Ht(e,n);return(e,n)=>{let i=t(n.host,n.port);if(!i)return r(e,n);let a=!1;e.onclose=()=>a=!0,i.then(t=>{if(!t)return a||r(e,n);if(a)return t.close();Bt(e,`tcp`),e.ondata=e=>t.write(e),e.onend=()=>t.end(),e.onclose=()=>t.close(),t.ondata=t=>e.write(t),t.onend=()=>e.end()},t=>{a||(Bt(e,`error ${t.code??`ehostunreach`}`),e.end())})}}function Ht(e,t){return(n,{host:r,port:i})=>{Bt(n,`fetch`);let a=/* @__PURE__ */ new Uint8Array,o=!1,s=!1,c=!1,l=()=>{let e=Pt(a,Dt);if(e<0)return null;let t=kt.decode(a.subarray(0,e)).split(`\r
|
|
29
|
+
`),[n,r]=t[0].split(` `),i=[];for(let e of t.slice(1)){let t=e.indexOf(`:`);t>0&&i.push([e.slice(0,t).trim().toLowerCase(),e.slice(t+1).trim()])}let o=e=>i.find(([t])=>t===e)?.[1],s=a.subarray(e+4),c,l;if(o(`transfer-encoding`)?.toLowerCase().includes(`chunked`)){let t=It(s);if(!t)return null;c=t.body,l=e+4+t.used}else{let t=o(`content-length`)??`0`;if(!/^\d+$/.test(t))throw Error(`a malformed Content-Length`);let n=Number(t);if(s.length<n)return null;c=s.slice(0,n),l=e+4+n}return{method:n,target:r,headers:i,header:o,body:c,used:l}},u=async()=>{if(o||c)return;let d;try{d=l()}catch(e){return c=!0,zt(n,400,`Bad Request`,`playground: ${e.message}\n`)}if(!d){s&&(c=!0,n.end());return}o=!0,a=a.slice(d.used);let{method:f,target:p,headers:m,header:h,body:g}=d,_=h(`connection`)?.toLowerCase()===`close`,v=p.replace(/^https?:\/\/[^/]+/,``),y=`https://${r}${i===443?``:`:${i}`}${v}`;e(f,y);for(let[e,t]of At[r.toLowerCase()]??[])h(e)||m.push([e,t]);let b;try{b=await fetch(y,{method:f,headers:m.filter(([e])=>!jt.has(e)),body:[`GET`,`HEAD`].includes(f)?void 0:g,credentials:`omit`,redirect:`follow`})}catch(e){return t(y),c=!0,zt(n,502,`Bad Gateway`,`playground: ${f} ${y} failed in the browser (${e.message}); the site may not allow cross-origin requests
|
|
30
|
+
`)}let x=f===`HEAD`||[204,304].includes(b.status),S=[];b.headers.forEach((e,t)=>{(!Mt.has(t)||x&&t===`content-length`)&&S.push([t,e])});let C=x||!b.body;if(Lt(n,b.status,b.statusText||Nt[b.status]||`unknown`,S,!C,_),!C){try{let e=b.body.getReader();for(;;){let{done:t,value:r}=await e.read();if(t)break;Rt(n,r)}}catch{return c=!0,n.end()}n.write(Ot.encode(`0\r
|
|
31
|
+
\r
|
|
32
|
+
`))}if(o=!1,_)return c=!0,n.end();u()};n.ondata=e=>{c||(a=Ft(a,e),u())},n.onend=()=>{s=!0,u()}}}var Ut={comment:"The TCP relay's hosts (docs/relay.md): the backend's /relay connects only to these, on port 443, for a TLS client that names the same host. The page reads it too: `fetch` lists the hosts it reaches by its own fetch() (they send CORS headers), not by the relay. A host goes one way for all its paths (the TLS is the page's own, so the relay never sees them): api.anthropic.com's Messages API sends CORS headers, but Claude Code's /api/claude_code/settings there does not, nor the Messages API for a subscription's OAuth token.",port:443,hosts:[`github.com`,`*.github.com`,`*.githubusercontent.com`,`gitlab.com`,`codeberg.org`,`pushin.eu`,`api.anthropic.com`,`platform.claude.com`],fetch:[`api.github.com`,`raw.githubusercontent.com`]};const Wt=65536,Gt=new TextEncoder,Kt=new TextDecoder,qt=(e,t)=>(e=e.toLowerCase().replace(/\.$/,``),t.some(t=>t.startsWith(`*.`)?e.endsWith(t.slice(1)):e===t)),Jt=(e,t)=>t===Ut.port&&qt(e,Ut.hosts)&&!qt(e,Ut.fetch);function Yt(e){return e===`econnrefused`?`econnrefused`:/timeout|etimedout|idle/.test(e)?`etimedout`:e===`not_allowed`?`enetunreach`:`ehostunreach`}function Xt(e=()=>new WebSocket(Zt())){let t=null,n=null,r=null,i=1,a=/* @__PURE__ */ new Map,o=(e,n,r=/* @__PURE__ */ new Uint8Array)=>{let i=new Uint8Array(5+r.length);i[0]=e,new DataView(i.buffer).setUint32(1,n),i.set(r,5),t?.send(i)},s=(e,t)=>{let n=/* @__PURE__ */ new Uint8Array(4);new DataView(n.buffer).setUint32(0,t),o(7,e,n)};function c(e){a.delete(e),!(a.size||r)&&(r=setTimeout(()=>{r=null,!a.size&&(t?.close(),t=null,n=null)},3e4))}function l(e,t){for(;t.queue.length&&t.inflight+t.queue[0].length<=262144;){let n=t.queue.shift();t.inflight+=n.length,o(4,e,n)}t.ending&&!t.queue.length&&(t.ending=!1,o(5,e))}function u(e){let t=new Uint8Array(e);if(t.length<5)return;let n=t[0],r=new DataView(e).getUint32(1),i=t.subarray(5),o=a.get(r);if(o){if(n===2)o.opened=!0,o.open.resolve(o.tunnel);else if(n===4)o.tunnel.ondata(i.slice()),s(r,i.length);else if(n===7&&i.length===4)o.inflight-=new DataView(e).getUint32(5),l(r,o);else if(n===5)c(r),o.tunnel.onend(null);else if(n===3){c(r);let e=Kt.decode(i);o.opened?o.tunnel.onend(e):o.open.reject(Object.assign(Error(e),{code:Yt(e)}))}}}function d(){return n||=new Promise(r=>{let i=e();i.binaryType=`arraybuffer`,i.onopen=()=>{t=i,r(i)},i.onmessage=({data:e})=>{e instanceof ArrayBuffer&&u(e)},i.onerror=()=>{},i.onclose=()=>{r(null),t===i&&(t=null),n=null;for(let[e,t]of a)a.delete(e),t.opened?t.tunnel.onend(`closed`):t.open.resolve(null)}})}return async function(e,t){if(r&&clearTimeout(r),r=null,!await d())return null;let n=i++;return new Promise((r,i)=>{let s={opened:!1,open:{resolve:r,reject:i},inflight:0,queue:[],ending:!1,tunnel:{ondata:()=>{},onend:()=>{},write:e=>{if(a.has(n)){for(let t=0;t<e.length;t+=Wt)s.queue.push(e.slice(t,t+Wt));l(n,s)}},end:()=>{a.has(n)&&(s.ending=!0,l(n,s))},close:()=>{a.has(n)&&(o(6,n),c(n))}}};a.set(n,s);let u=Gt.encode(e),d=new Uint8Array(2+u.length);new DataView(d.buffer).setUint16(0,t),d.set(u,2),o(1,n,d)})}}const Zt=()=>`${self.location.origin.replace(/^http/,`ws`)}/relay`;function Qt(e){if(e.length<12||!(e[4]<<8|e[5]))return Math.min(e.length,12);let t=12;for(;t<e.length&&e[t]!==0;)t+=e[t]+1;return Math.min(e.length,t+5)}function $t(e,t){if(e.length<12)return/* @__PURE__ */ new Uint8Array;let n=Qt(e),r=e.slice(0,n);return r[2]=128|e[2]&121,r[3]=128|t,r.set([0,+(n>12),0,0,0,0,0,0],4),r}const en=(e,t)=>e(t).catch(()=>$t(t,2));function tn(e){return({address:t,bytes:n},r)=>{en(e,n).then(e=>r(t,53,e))}}function nn(e){return t=>{let n=/* @__PURE__ */ new Uint8Array,r=0,i=!1;t.ondata=a=>{let o=new Uint8Array(n.length+a.length);for(o.set(n),o.set(a,n.length),n=o;n.length>=2&&n.length>=2+(n[0]<<8|n[1]);){let a=n[0]<<8|n[1],o=n.slice(2,2+a);n=n.slice(2+a),r++,en(e,o).then(e=>{let n=new Uint8Array(2+e.length);n.set([e.length>>8,e.length&255]),n.set(e,2),t.write(n),--r===0&&i&&t.end()})}},t.onend=()=>{i=!0,r===0&&t.end()}}}function rn(e,t){let n=!1,r=()=>{n||(n=!0,t.close())};e.ondata=e=>{let n=e.slice();t.postMessage({data:n},[n.buffer])},e.onend=()=>t.postMessage({end:!0}),e.onclose=()=>{n||t.postMessage({close:!0}),r()},t.onmessage=({data:t})=>{`data`in t?e.write(t.data):`end`in t?e.end():(r(),e.close())}}function an(e){return/refused/i.test(e)?-14:/timeout|deadline|timed out/i.test(e)?-73:/not connected|not running|not allowed/i.test(e)?-40:-23}const on={[-14]:`econnrefused`,[-23]:`ehostunreach`,[-40]:`enetunreach`,[-73]:`etimedout`},sn=(e,t)=>e.includes(`:`)?`[${e}]:${t}`:`${e}:${t}`,cn=12e4;function ln(e){let t=t=>e.emit(`blocked`,t);async function n(t,n,r){let i=new MessageChannel,a=i.port1;return await e.call(`tailnetDial`,[t,n,r,i.port2],[i.port2])?new Promise((e,t)=>{let n={ondata:()=>{},onend:()=>{},write:e=>{let t=e.slice();a.postMessage({kind:`data`,bytes:t},[t.buffer])},end:()=>a.postMessage({kind:`end`}),close:()=>{a.postMessage({kind:`close`}),a.close()}};a.onmessage=({data:r})=>{r.kind===`open`?(n.local=r.local,e(n)):r.kind===`error`?(a.close(),t(Error(r.message))):r.kind===`data`?n.ondata(r.bytes):r.kind===`end`&&n.onend(r.error??null)}}):(a.close(),null)}let r=(e,t)=>n(e,t,`tcp`).catch(e=>{throw Object.assign(e,{code:on[an(e.message)]})}),i=(e,{address:r,port:i})=>{let a=!1;e.onclose=()=>a=!0,n(r,i,`tcp`).then(n=>{if(!n)t(sn(r,i)),a||e.refuse(-40);else{if(a)return n.close();e.dialed(n.local),un(e,n)}},t=>{a||e.refuse(an(t.message))})};function a(){let e=/* @__PURE__ */ new Map,r=t=>{let n=e.get(t);n&&(e.delete(t),clearTimeout(n.timer),n.tunnel.then(e=>e?.close()))},i=t=>{let n=e.get(t);n&&(clearTimeout(n.timer),n.timer=setTimeout(()=>r(t),cn))},a=(a,{from:o,address:s,port:c},l)=>{let u=n(s,c,`udp`).then(n=>n?(n.ondata=e=>{i(a),l(s,c,e)},n.onend=()=>r(a),n):(t(sn(s,c)),e.delete(a),null),()=>(e.delete(a),null));e.set(a,{from:o,tunnel:u,timer:setTimeout(()=>r(a),cn)})};return{send:(t,n)=>{let{from:r,address:o,port:s,bytes:c}=t,l=`${r} ${o} ${s}`;e.has(l)||a(l,t,n),i(l),e.get(l)?.tunnel.then(e=>e?.write(c))},unbound:t=>{for(let[n,i]of e)i.from===t&&r(n)}}}return{tunnel:r,outbound:i,udp:a,resolve:t=>e.call(`tailnetResolve`,[t]).catch(()=>$t(t,3)),blocked:t}}function un(e,t){e.ondata=e=>t.write(e),e.onend=()=>t.end(),e.onclose=()=>t.close(),t.ondata=t=>e.write(t),t.onend=()=>e.end()}var dn=new URL(`esbuild-DJd0QPVm.wasm`,import.meta.url).href;const D={sep:`/`,normalize(e){let t=e.startsWith(`/`),n=[];for(let r of e.split(`/`))r===`..`?n.length&&n[n.length-1]!==`..`?n.pop():t||n.push(`..`):r&&r!==`.`&&n.push(r);return(t?`/`:``)+n.join(`/`)||(t?`/`:`.`)},join:(...e)=>D.normalize(e.filter(Boolean).join(`/`)),resolve:(...e)=>{let t=``;for(let n of e)t=n.startsWith(`/`)?n:`${t}/${n}`;return D.normalize(t.startsWith(`/`)?t:`/${t}`)},dirname:e=>{let t=e.replace(/\/+$/,``).lastIndexOf(`/`);return t<=0?e.startsWith(`/`)?`/`:`.`:e.slice(0,t)},basename:(e,t)=>{let n=e.replace(/\/+$/,``).split(`/`).pop()??``;return t&&n.endsWith(t)?n.slice(0,-t.length):n},extname:e=>{let t=D.basename(e),n=t.lastIndexOf(`.`);return n>0?t.slice(n):``},isAbsolute:e=>e.startsWith(`/`),relative:(e,t)=>{let n=D.resolve(e).split(`/`).filter(Boolean),r=D.resolve(t).split(`/`).filter(Boolean),i=0;for(;i<n.length&&n[i]===r[i];)i++;return[...n.slice(i).map(()=>`..`),...r.slice(i)].join(`/`)}};var fn=class extends Error{dir;constructor(e){super(`not fetched yet: ${e}`),this.dir=e}};const pn=new TextDecoder;var mn=class{node;dirs=/* @__PURE__ */ new Map;files=/* @__PURE__ */ new Map;constructor(e){this.node=e}async fetch(e){let t=(await this.node.list(e).catch(()=>[])).filter(t=>D.dirname(t.path)===e);this.dirs.set(e,t.map(e=>D.basename(e.path))),await Promise.all(t.filter(e=>!e.dir).map(async e=>this.files.set(e.path,await this.node.read(e.path))));for(let e of t.filter(e=>e.dir))this.dirs.has(e.path)||this.dirs.set(e.path,[])}forget(){this.dirs.clear(),this.files.clear()}readdir(e){let t=this.dirs.get(D.normalize(e));if(!t)throw new fn(D.normalize(e));return t}read(e){let t=D.normalize(e),n=this.files.get(t);if(n)return n;let r=D.dirname(t);if(this.dirs.has(r)){let e=/* @__PURE__ */ Error(`ENOENT: no such file, open '${t}'`);throw e.code=`ENOENT`,e}throw new fn(r)}exists(e){let t=D.normalize(e);if(this.files.has(t)||this.dirs.has(t))return!0;if(this.dirs.has(D.dirname(t)))return!1;throw new fn(D.dirname(t))}get fs(){let e=e=>Object.assign(e,{toString:()=>pn.decode(e)});return{readdirSync:e=>this.readdir(e),readFileSync:(t,n)=>{let r=this.read(t);return(typeof n==`string`?n:n?.encoding)?pn.decode(r):e(r)},existsSync:e=>this.exists(e),statSync:e=>{let t=D.normalize(e);if(!this.exists(t))throw Error(`ENOENT: ${t}`);let n=this.dirs.has(t);return{isDirectory:()=>n,isFile:()=>!n}}}}};async function hn(e,t){await e.stat(t)!==`dir`&&(await hn(e,D.dirname(t)),await e.mkdir(t))}async function gn(e,t){for(let n=0;;n++)try{return await t()}catch(t){let r=t instanceof fn?t:t?.cause;if(!(r instanceof fn)||n>200)throw t;await e.fetch(r.dir)}}function _n(e,t,n,r){let i=/* @__PURE__ */ new Map,a=(e,t)=>{let o={exports:{}};return i.set(t,o),Function(`module`,`exports`,`require`,`__filename`,`__dirname`,e)(o,o.exports,e=>{if(e in n)return n[e];if(e.startsWith(`node:`)&&e.slice(5)in n)return n[e.slice(5)];let o=D.join(D.dirname(t),e);for(let e of[o,`${o}.js`,`${o}.cjs`,`${o}/index.js`]){let t=i.get(e);if(t)return t.exports;let n=null;try{n=r.read(e)}catch(e){if(e instanceof fn)throw e}if(n)return a(pn.decode(n),e)}throw Error(`Cannot find module '${e}' from ${t}`)},t,D.dirname(t)),o.exports};return a(e,t)}const vn=/* @__PURE__ */ new Set;function yn(e){for(let t of vn)t(e)}let bn=null;function xn(){return bn??=import(`./browser-C6dmTjO4.js`).then(e=>/* @__PURE__ */ c(e.default,1)).then(async e=>(await e.initialize({wasmURL:dn,worker:!0}),e)),bn}const Sn={".js":`js`,".mjs":`js`,".cjs":`js`,".jsx":`jsx`,".ts":`ts`,".mts":`ts`,".cts":`ts`,".tsx":`tsx`,".json":`json`,".css":`css`,".txt":`text`},Cn=[`.tsx`,`.ts`,`.jsx`,`.js`,`.mjs`,`.cjs`,`.css`,`.json`],wn=[`browser`,`import`,`module`,`default`];function Tn(e,t){let n={entryPoints:[],external:[],loader:{},define:{}},r=[],i=[],a=!1,o=e=>e.split(`,`).filter(Boolean);for(let s of e){if(!s.startsWith(`--`)){n.entryPoints.push(D.resolve(t,s));continue}let e=s.match(/^--([a-z-]+):([^=]*)(?:=(.*))?$/);if(e){let[,t,a,o=``]=e;t===`external`?n.external.push(a):t===`alias`?r.push([a,o]):t===`loader`?n.loader[a]=o:t===`define`?n.define[a]=o:i.push(s);continue}let[,c,l]=s.match(/^--([a-z-]+)(?:=(.*))?$/)??[];switch(c){case`bundle`:case`minify`:case`splitting`:n[c]=!0;break;case`sourcemap`:n.sourcemap=l||!0;break;case`target`:n.target=o(l??``);break;case`outdir`:case`outfile`:case`outbase`:n[c]=D.resolve(t,l??``);break;case`format`:case`platform`:case`jsx`:n[c]=l;break;case`public-path`:n.publicPath=l;break;case`entry-names`:n.entryNames=l;break;case`chunk-names`:n.chunkNames=l;break;case`asset-names`:n.assetNames=l;break;case`main-fields`:n.mainFields=o(l??``);break;case`resolve-extensions`:n.resolveExtensions=o(l??``);break;case`watch`:a=!0;break;case`log-level`:case`color`:break;default:i.push(s)}}return{options:n,aliases:r,watch:a,ignored:i}}function En(e,t){let n=e.indexOf(`*`);return n<0?t===e||t.startsWith(`${e}/`):t.length>=e.length-1&&t.startsWith(e.slice(0,n))&&t.endsWith(e.slice(n+1))}function Dn(e,t){let n=e=>{if(typeof e==`string`)return e;if(Array.isArray(e)){for(let t of e){let e=n(t);if(e)return e}return null}if(e&&typeof e==`object`){for(let t of wn)if(t in e){let r=n(e[t]);if(r)return r}}return null};if(typeof e==`string`||Array.isArray(e))return t===`.`?n(e):null;if(!e||typeof e!=`object`)return null;let r=Object.keys(e);if(!r.some(e=>e.startsWith(`.`)))return t===`.`?n(e):null;let i=e;if(t in i)return n(i[t]);for(let e of r){let r=e.indexOf(`*`);if(r<0)continue;let[a,o]=[e.slice(0,r),e.slice(r+1)];if(t.startsWith(a)&&t.endsWith(o)){let r=n(i[e]),s=t.slice(a.length,t.length-o.length);return r?.replace(`*`,s)??null}}return null}const On=new TextDecoder,kn=/* @__PURE__ */ new Set([`js`,`jsx`,`ts`,`tsx`]);function An(e){let t=``;for(let n=0;n<e.length;n+=32768)t+=String.fromCharCode(...e.subarray(n,n+32768));return btoa(t)}async function jn(e,{args:t,cwd:n,env:r,fs:i}){if(t.includes(`--version`)){e.write(`0.25.4
|
|
33
|
+
`),e.exit(0);return}let a=Tn(t,n);a.ignored.length&&e.write(`esbuild (playground): ignoring ${a.ignored.join(` `)}\n`);let o=(r.NODE_PATH??``).split(`:`).filter(Boolean),s=/* @__PURE__ */ new Map,c=async e=>(s.has(e)||s.set(e,await i.stat(e)),s.get(e)??null),l=async e=>{if(await c(e)!==`file`)return null;try{return JSON.parse(On.decode(await i.read(e)))}catch{return null}},u=async e=>{if(await c(e)===`file`)return e;for(let t of Cn)if(await c(e+t)===`file`)return e+t;if(await c(e)===`dir`){let t=await l(`${e}/package.json`);for(let n of[`browser`,`module`,`main`]){let r=t?.[n];if(typeof r==`string`){let t=await u(D.resolve(e,r));if(t)return t}}for(let t of Cn)if(await c(`${e}/index${t}`)===`file`)return`${e}/index${t}`}return null},d=async(e,t)=>{let n=e.split(`/`),r=e.startsWith(`@`)?2:1,i=n.slice(0,r).join(`/`),a=n.length>r?`./${n.slice(r).join(`/`)}`:`.`,s=[];for(let e=t;s.push(`${e}/node_modules`),e!==`/`;e=D.dirname(e));s.push(...o);for(let e of s){let t=D.resolve(e,i);if(await c(t)!==`dir`)continue;let n=await l(`${t}/package.json`);if(n?.exports!==void 0){let e=Dn(n.exports,a);if(e)return u(D.resolve(t,e))}let r=await u(a===`.`?t:D.resolve(t,a));if(r)return r}return null},f=async(e,t)=>{let n=On.decode(t),r=n.match(/\/\/# sourceMappingURL=(?!data:)(\S+)\s*$/);if(!r)return t;let a=await i.read(D.resolve(D.dirname(e),r[1])).catch(()=>null),o=a?`data:application/json;base64,${An(a)}`:``;return n.slice(0,r.index)+(o?`//# sourceMappingURL=${o}\n`:``)},p=/* @__PURE__ */ new Set,m=a.options.external??[],h={name:`playground-files`,setup(e){e.onResolve({filter:/.*/},async({path:e,resolveDir:t,kind:r})=>{if(r===`entry-point`)return{path:e};if(e.startsWith(`data:`))return;if(/^(https?:)?\/\//.test(e)||m.some(t=>En(t,e)))return{path:e,external:!0};let i=e,o=t||n;for(let[t,r]of a.aliases)if(e===t||e.startsWith(`${t}/`)){i=r+e.slice(t.length),o=n;break}let s=i.startsWith(`.`)||i.startsWith(`/`)?await u(D.resolve(o,i)):await d(i,o);return s?{path:s}:{errors:[{text:`Could not resolve "${e}"`}]}}),e.onLoad({filter:/.*/},async({path:e})=>{p.add(e);let t=await i.read(e),n=a.options.loader?.[D.extname(e)]??Sn[D.extname(e)];return{contents:kn.has(n)?await f(e,t):t,loader:n??`file`,resolveDir:D.dirname(e)}})}},g=null,_=!0,v=[],y=e=>e.some(e=>p.has(e)),b=async t=>{_=!0,await te(),_=!1,t&&e.write(`[watch] build finished, watching for changes...
|
|
34
|
+
`);let n=y(v);v=[],n&&x()},x=()=>{g&&clearTimeout(g),g=setTimeout(()=>{g=null,e.write(`[watch] build started (change detected)
|
|
35
|
+
`),b(!1)},50)},S=e=>{_?v.push(...e):y(e)&&x()};a.watch&&vn.add(S),e.onkill=()=>{vn.delete(S),g&&clearTimeout(g)};let C=await xn(),ee=async(t,n)=>{if(!t.length)return;let r=await C.formatMessages(t,{kind:n,color:!1});e.write(r.join(``))},te=async()=>{let t=performance.now();p=/* @__PURE__ */ new Set,s.clear();try{let r=await C.build({...a.options,absWorkingDir:n,write:!1,logLevel:`silent`,plugins:[h]});await ee(r.warnings,`warning`);let o=[];for(let e of r.outputFiles??[]){await hn(i,D.dirname(e.path)),await i.write(e.path,e.contents);let t=D.relative(n,e.path),r=(e.contents.length/1024).toFixed(1);o.push(` ${t} ${r}kb`)}return e.write(`\n${o.join(`
|
|
36
|
+
`)}\n\n⚡ Done in ${Math.round(performance.now()-t)}ms\n`),!0}catch(t){let n=t;return n.errors?(await ee(n.warnings??[],`warning`),await ee(n.errors,`error`)):e.write(`esbuild: ${n.message}\n`),!1}};a.watch?await b(!0):e.exit(+!await te())}const Mn=`inotifywait [-m] [-r] [-q] [-e event]... [--format fmt] [--exclude re] file...
|
|
37
|
+
`;function Nn(e){let t={monitor:!1,recursive:!1,quiet:0,events:/* @__PURE__ */ new Set,format:null,exclude:null,include:null,files:[]};for(let n=0;n<e.length;n++){let r=e[n],i=()=>{if(n+1>=e.length)throw Error(`${r} needs a value`);return e[++n]};try{if(r===`-m`||r===`--monitor`)t.monitor=!0;else if(r===`-r`||r===`--recursive`)t.recursive=!0;else if(r===`-q`||r===`--quiet`)t.quiet++;else if(r===`-qq`)t.quiet+=2;else if(r===`-e`||r===`--event`)for(let e of i().split(`,`))t.events.add(e.toUpperCase());else if(r===`--format`)t.format=i();else if(r===`--exclude`)t.exclude=new RegExp(i());else if(r===`--excludei`)t.exclude=new RegExp(i(),`i`);else if(r===`--include`)t.include=new RegExp(i());else if(r===`--includei`)t.include=new RegExp(i(),`i`);else if(r===`--`){t.files.push(...e.slice(n+1));break}else if(r===`-h`||r===`--help`)return Mn;else if(r.startsWith(`-`)&&r!==`-`)return`inotifywait: unknown option ${r}\n`;else t.files.push(r)}catch(e){return`inotifywait: ${e.message}\n`}}return t}function Pn(e,t,n,r){return e===null?`${t} ${r.join(`,`)} ${n}\n`:e.replace(/%(%|w|f|e|.e)/g,(e,i)=>i===`%`?`%`:i===`w`?t:i===`f`?n:r.join(i===`e`?`,`:i[0]))+`
|
|
38
|
+
`}async function Fn(e,{args:t,cwd:n,fs:r}){let i=Nn(t);if(typeof i==`string`){e.write(i),e.exit(i===Mn?0:1);return}if(!i.files.length){e.write(`inotifywait: no files specified to watch
|
|
39
|
+
`),e.exit(1);return}let a=await Promise.all(i.files.map(async e=>{let t=D.resolve(n,e);return{at:t,kind:await r.stat(t)}})),o=a.find(({kind:e})=>e===null);if(o){e.write(`Couldn't watch ${o.at}: No such file or directory\n`),e.exit(1);return}let s=e=>!i.events.size||i.events.has(e);i.quiet<1&&e.write(`${i.recursive?`Setting up watches. Beware: since -r was given, this may take a while!`:`Setting up watches.`}\nWatches established.\n`);let c=e=>{for(let{at:t,kind:n}of a){if(n===`file`){if(e===t)return[t,``];continue}if(!e.startsWith(`${t===`/`?``:t}/`))continue;let r=D.dirname(e);if(i.recursive||r===t)return[`${r}/`,D.basename(e)]}return null},l=!1,u=()=>{l||(l=!0,vn.delete(p))},d=Promise.resolve(),f=async t=>{if(l)return;let n=c(t);if(!n||i.exclude?.test(t)||i.include&&!i.include.test(t))return;let a=await r.stat(t).catch(()=>null),o;o=a===null?[`DELETE`]:a===`dir`?[`CREATE`,`ISDIR`]:s(`CLOSE_WRITE`)||s(`CLOSE`)?[`CLOSE_WRITE`,`CLOSE`]:[`MODIFY`],s(o[0])&&(l||(e.write(Pn(i.format,n[0],n[1],o)),i.monitor||(u(),e.exit(0))))},p=e=>{for(let t of new Set(e))d=d.then(()=>f(t))};vn.add(p),e.onkill=u,e.onowner=u}var In={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)`}},Ln=/* @__PURE__ */ new Set(/* @__PURE__ */ `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(`.`)),Rn=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix|--alpha)\(/i;function zn(e){return e.charCodeAt(0)===35||Rn.test(e)||Ln.has(e.toLowerCase())}function Bn(e){return Ln.has(e.toLowerCase())}var Vn=[`calc`,`min`,`max`,`clamp`,`mod`,`rem`,`sin`,`cos`,`tan`,`asin`,`acos`,`atan`,`atan2`,`pow`,`sqrt`,`hypot`,`log`,`exp`,`round`];function Hn(e){return e.indexOf(`(`)!==-1&&Vn.some(t=>e.includes(`${t}(`))}function Un(e){if(!Vn.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(Vn.includes(i)||n[0]&&i===``){n.unshift(!0);continue}n.unshift(!1)}else 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||r===43||r===42||r===47||r===45||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}var Wn=/* @__PURE__ */ new Uint8Array(256);function O(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;else switch(s){case 92:t+=1;break;case 39:case 34:for(;++t<a;){let n=e.charCodeAt(t);if(n===92)t+=1;else if(n===s)break}break;case 40:Wn[n]=41,n++;break;case 91:Wn[n]=93,n++;break;case 123:Wn[n]=125,n++;break;case 93:case 125:case 41:n>0&&s===Wn[n-1]&&n--}}return r.push(e.slice(i)),r}var Gn={color:zn,length:dr,percentage:or,ratio:cr,number:ir,integer:A,url:qn,position:fr,"bg-size":pr,"line-width":Jn,image:Zn,"family-name":$n,"generic-name":Qn,"absolute-size":er,"relative-size":tr,angle:hr,vector:_r};function k(e,t){if(e.startsWith(`var(`))return null;for(let n of t)if(Gn[n]?.(e))return n;return null}var Kn=/^url\(.*\)$/;function qn(e){return Kn.test(e)}function Jn(e){return O(e,` `).every(e=>dr(e)||ir(e)||e===`thin`||e===`medium`||e===`thick`)}var Yn=/^(?:element|image|cross-fade|image-set)\(/,Xn=/^(repeating-)?(conic|linear|radial)-gradient\(/;function Zn(e){let t=0;for(let n of O(e,`,`))if(!n.startsWith(`var(`)){if(qn(n)||Xn.test(n)||Yn.test(n)){t+=1;continue}return!1}return t>0}function Qn(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 $n(e){let t=0;for(let n of O(e,`,`)){let e=n.charCodeAt(0);if(e>=48&&e<=57)return!1;n.startsWith(`var(`)||(t+=1)}return t>0}function er(e){return e===`xx-small`||e===`x-small`||e===`small`||e===`medium`||e===`large`||e===`x-large`||e===`xx-large`||e===`xxx-large`}function tr(e){return e===`larger`||e===`smaller`}var nr=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,rr=RegExp(`^${nr.source}$`);function ir(e){return rr.test(e)||Hn(e)}var ar=RegExp(`^${nr.source}%$`);function or(e){return ar.test(e)||Hn(e)}var sr=RegExp(`^${nr.source}\\s*/\\s*${nr.source}$`);function cr(e){return sr.test(e)||Hn(e)}var lr=RegExp(`^${nr.source}(${(/* @__PURE__ */ `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(`|`)})$`),ur=/^(--spacing)\(/i;function dr(e){return lr.test(e)||ur.test(e)||Hn(e)}function fr(e){let t=0;for(let n of O(e,` `))if(n===`center`||n===`top`||n===`right`||n===`bottom`||n===`left`)t+=1;else if(!n.startsWith(`var(`)){if(dr(n)||or(n)){t+=1;continue}return!1}return t>0}function pr(e){let t=0;for(let n of O(e,`,`)){if(n===`cover`||n===`contain`){t+=1;continue}let e=O(n,` `);if(e.length!==1&&e.length!==2)return!1;e.every(e=>e===`auto`||dr(e)||or(e))&&(t+=1)}return t>0}var mr=RegExp(`^${nr.source}(${[`deg`,`rad`,`grad`,`turn`].join(`|`)})$`);function hr(e){return mr.test(e)}var gr=RegExp(`^${nr.source} +${nr.source} +${nr.source}$`);function _r(e){return gr.test(e)}function A(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function vr(e){let t=Number(e);return Number.isInteger(t)&&t>0&&String(t)===String(e)}function j(e){return br(e,.25)}function yr(e){return br(e,.25)}function br(e,t){let n=Number(e);return n>=0&&n%t===0&&String(n)===String(e)}function xr(e){return{__BARE_VALUE__:e}}var Sr=xr(e=>{if(A(e.value))return e.value}),M=xr(e=>{if(A(e.value))return`${e.value}%`}),Cr=xr(e=>{if(A(e.value))return`${e.value}px`}),wr=xr(e=>{if(A(e.value))return`${e.value}ms`}),Tr=xr(e=>{if(A(e.value))return`${e.value}deg`}),Er=xr(e=>{if(e.fraction===null)return;let[t,n]=O(e.fraction,`/`);if(A(t)&&A(n))return e.fraction}),Dr=xr(e=>{if(A(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Or={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`,...Er},backdropBlur:({theme:e})=>e(`blur`),backdropBrightness:({theme:e})=>({...e(`brightness`),...M}),backdropContrast:({theme:e})=>({...e(`contrast`),...M}),backdropGrayscale:({theme:e})=>({...e(`grayscale`),...M}),backdropHueRotate:({theme:e})=>({...e(`hueRotate`),...Tr}),backdropInvert:({theme:e})=>({...e(`invert`),...M}),backdropOpacity:({theme:e})=>({...e(`opacity`),...M}),backdropSaturate:({theme:e})=>({...e(`saturate`),...M}),backdropSepia:({theme:e})=>({...e(`sepia`),...M}),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`,...Cr},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`,...M},caretColor:({theme:e})=>e(`colors`),colors:()=>({...In}),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`,...Sr},container:{},content:{none:`none`},contrast:{0:`0`,50:`.5`,75:`.75`,100:`1`,125:`1.25`,150:`1.5`,200:`2`,...M},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`),...Cr}),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`,...Sr},flexShrink:{0:`0`,DEFAULT:`1`,...Sr},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%`,...M},grayscale:{0:`0`,DEFAULT:`100%`,...M},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`,...Sr},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`,...Sr},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`,...Sr},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`,...Sr},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))`,...Dr},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))`,...Dr},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`,...Tr},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%`,...M},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`,...Sr},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`,...M},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`,...Sr},outlineColor:({theme:e})=>e(`colors`),outlineOffset:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Cr},outlineWidth:{0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Cr},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`,...Cr},ringOpacity:({theme:e})=>({DEFAULT:`0.5`,...e(`opacity`)}),ringWidth:{DEFAULT:`3px`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Cr},rotate:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,45:`45deg`,90:`90deg`,180:`180deg`,...Tr},saturate:{0:`0`,50:`.5`,100:`1`,150:`1.5`,200:`2`,...M},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`,...M},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%`,...M},skew:{0:`0deg`,1:`1deg`,2:`2deg`,3:`3deg`,6:`6deg`,12:`12deg`,...Tr},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`,...Sr},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`,...Cr},textIndent:({theme:e})=>e(`spacing`),textOpacity:({theme:e})=>e(`opacity`),textUnderlineOffset:{auto:`auto`,0:`0px`,1:`1px`,2:`2px`,4:`4px`,8:`8px`,...Cr},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`,...wr},transitionDuration:{DEFAULT:`150ms`,0:`0s`,75:`75ms`,100:`100ms`,150:`150ms`,200:`200ms`,300:`300ms`,500:`500ms`,700:`700ms`,1e3:`1000ms`,...wr},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`,...Sr}};function kr(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;)i=t.charCodeAt(r),a+=i===0?`�`:i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45?`\\`+i.toString(16)+` `:i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?t.charAt(r):`\\`+t.charAt(r);return a}function Ar(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 jr=/* @__PURE__ */ 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 Mr(e,t){return(jr.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var Nr=class{constructor(e=/* @__PURE__ */ new Map,t=/* @__PURE__ */ 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&&(Mr(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=Ar(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=jr.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(!Mr(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(${kr(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=Ar(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=/* @__PURE__ */ 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)}},Pr=`4.3.3`;function Fr(e){return{kind:`combinator`,value:e}}function Ir(e){return{kind:`complex`,nodes:e}}function Lr(e){return{kind:`compound`,nodes:e}}function Rr(e,t){return{kind:`function`,value:e,nodes:t}}function zr(e){return{kind:`list`,nodes:e}}function Br(e){return{kind:`selector`,value:e}}function Vr(e){return{kind:`value`,value:e}}function Hr(e){return e.kind===`selector`&&e.value.charCodeAt(0)===li}function Ur(e){if(e.kind!==`selector`)return!1;switch(e.value.charCodeAt(0)){case li:case ci:case Zr:case ei:case Jr:case ti:return!1;default:return!0}}function Wr(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}(${Wr(r.nodes,t)})`;break;case`complex`:case`compound`:n+=Wr(r.nodes,t);break;case`list`:n+=r.nodes.map(e=>Wr([e],t)).join(t?`,`:`, `)}return n}var Gr=92,Kr=93,qr=41,Jr=58,Yr=44,Xr=34,Zr=46,Qr=62,$r=10,ei=35,ti=91,ni=40,ri=43,ii=39,ai=32,oi=9,si=126,ci=38,li=42;function ui(e){e=e.replaceAll(`\r
|
|
40
|
+
`,`
|
|
41
|
+
`);let t=[],n=t,r=!1,i=[],a=null,o=``,s;function c(e=n){return e.length===1?e[0]:r?Ir(e):Lr(e)}function l(e){let t=n[n.length-1];t?.kind===`compound`?t.nodes.push(e):t&&t.kind!==`list`&&t.kind!==`combinator`?n[n.length-1]=Lr([t,e]):n.push(e)}for(let u=0;u<e.length;u++){let d=e.charCodeAt(u);switch(d){case Yr:for(o.length>0&&(l(Br(o)),o=``);u+1<e.length&&(s=e.charCodeAt(u+1),s===$r||s===ai||s===oi);u++);if(a)a.nodes.push(c()),n=[],r=!1;else{let e=zr([c(n.splice(0))]);n.push(e),a=e,n=[],r=!1}break;case Qr:case $r:case ai:case ri:case oi:case si:{o.length>0&&(l(Br(o)),o=``);let t=u,i=u+1;for(;i<e.length&&(s=e.charCodeAt(i),s===Qr||s===$r||s===ai||s===ri||s===oi||s===si);i++);u=i-1;let a=e.slice(t,i).trim();if(a===``&&(n.length===0||i>=e.length||e.charCodeAt(i)===Yr))break;n.push(Fr(a===``?` `:a)),r=!0;break}case ni:{let t=Rr(o,[]);if(o=``,t.value!==`:not`&&t.value!==`:where`&&t.value!==`:has`&&t.value!==`:is`){let n=u+1,r=0;for(let t=u+1;t<e.length;t++)if(s=e.charCodeAt(t),s===ni)r++;else if(s===qr){if(r===0){u=t;break}r--}let i=u,a=e.slice(n,i);if(t.value===`:nth-child`||t.value===`:nth-last-child`){let e=a.indexOf(`of `);if(e!==-1){t.nodes.push(Vr(a.slice(0,e+3)),...ui(a.slice(e+3))),o=``,u=i,l(t);break}}t.nodes.push(Vr(a)),o=``,u=i,l(t);break}l(t),i.push({target:n,currentList:a,containsCombinator:r}),n=t.nodes,r=!1,a=null;break}case qr:{o.length>0&&(l(Br(o)),o=``),a?a.nodes.push(c()):r&&n.splice(0,n.length,Ir(n.splice(0)));let e=i.pop();n=e?.target??t,a=e?.currentList??null,r=e?.containsCombinator??!1;break}case Zr:case Jr:case ei:if(d===Jr&&o===`:`){o+=e[u];break}o.length>0&&l(Br(o)),o=e[u];break;case ti:{o.length>0&&(l(Br(o)),o=``);let t=u,n=0;for(let t=u+1;t<e.length;t++)if(s=e.charCodeAt(t),s===ti)n++;else if(s===Kr){if(n===0){u=t;break}n--}l(Br(e.slice(t,u+1)));break}case ii:case Xr:{let t=u;for(let t=u+1;t<e.length;t++)if(s=e.charCodeAt(t),s===Gr)t+=1;else if(s===d){u=t;break}o+=e.slice(t,u+1);break}case ci:case li:o.length>0&&(l(Br(o)),o=``),l(Br(e[u]));break;case Gr:o+=e[u]+e[u+1],u+=1;break;default:o+=e[u]}}return o.length>0&&l(Br(o)),a?a.nodes.push(c()):r&&n.splice(0,n.length,Ir(n.splice(0))),t}function di(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 fi=92,pi=47,mi=42,hi=34,gi=39,_i=58,vi=59,yi=10,bi=13,xi=32,Si=9,Ci=123,wi=125,Ti=40,Ei=41,Di=91,Oi=93,ki=45,Ai=64,ji=33,Mi=class e extends Error{loc;constructor(t,n){if(n){let e=n[0],r=di(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 Ni(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===bi&&(d=e.charCodeAt(t+1),d===yi))){if(f===fi)c===``&&(u=t),c+=e.slice(t,t+2),t+=1;else if(f===pi&&e.charCodeAt(t+1)===mi){let r=t;for(let n=t+2;n<e.length;n++)if(d=e.charCodeAt(n),d===fi)n+=1;else if(d===mi&&e.charCodeAt(n+1)===pi){t=n+1;break}let a=e.slice(r,t+1);if(a.charCodeAt(2)===ji){let e=aa(a.slice(2,-2));i.push(e),n&&(e.src=[n,r,t+1],e.dst=[n,r,t+1])}}else if(f===gi||f===hi){let r=Ii(e,t,f,n);c+=e.slice(t,r+1),t=r}else{if((f===xi||f===yi||f===Si)&&(d=e.charCodeAt(t+1))&&(d===xi||d===yi||d===Si||d===bi&&(d=e.charCodeAt(t+2))&&d==yi))continue;if(f===yi){if(c.length===0)continue;d=c.charCodeAt(c.length-1),d!==xi&&d!==yi&&d!==Si&&(c+=` `)}else if(f===ki&&e.charCodeAt(t+1)===ki&&c.length===0){let i=``,a=t,s=-1;for(let r=t+2;r<e.length;r++)if(d=e.charCodeAt(r),d===fi)r+=1;else if(d===gi||d===hi)r=Ii(e,r,d,n);else if(d===pi&&e.charCodeAt(r+1)===mi){for(let t=r+2;t<e.length;t++)if(d=e.charCodeAt(t),d===fi)t+=1;else if(d===mi&&e.charCodeAt(t+1)===pi){r=t+1;break}}else if(s===-1&&d===_i)s=c.length+r-a;else if(d===vi&&i.length===0){c+=e.slice(a,r),t=r;break}else if(d===Ti)i+=`)`;else if(d===Di)i+=`]`;else if(d===Ci)i+=`}`;else if((d===wi||e.length-1===r)&&i.length===0){t=r-1,c+=e.slice(a,r);break}else(d===Ei||d===Oi||d===wi)&&i.length>0&&e[r]===i[i.length-1]&&(i=i.slice(0,-1));let l=Fi(c,s);if(!l)throw new Mi(`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===vi&&c.charCodeAt(0)===Ai)s=Pi(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===vi&&l[l.length-1]!==`)`){let e=Fi(c);if(!e){if(c.length===0)continue;throw new Mi(`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===Ci&&l[l.length-1]!==`)`)l+=`}`,s=V(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===wi&&l[l.length-1]!==`)`){if(l===``)throw new Mi(`Missing opening {`,n?[n,t,t]:null);if(l=l.slice(0,-1),c.length>0){if(c.charCodeAt(0)===Ai)s=Pi(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=Fi(c,e);if(!r)throw new Mi(`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===Ti)l+=`)`,c+=`(`;else if(f===Ei){if(l[l.length-1]!==`)`)throw new Mi(`Missing opening (`,n?[n,t,t]:null);l=l.slice(0,-1),c+=`)`}else{if(c.length===0&&(f===xi||f===yi||f===Si))continue;c===``&&(u=t),c+=String.fromCharCode(f)}}}}if(c.charCodeAt(0)===Ai){let t=Pi(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 Mi(`Missing closing } at ${o.selector}`,o.src?[o.src[0],o.src[1],o.src[1]]:null);if(o.kind===`at-rule`)throw new Mi(`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 Pi(e,t=[]){let n=e,r=``;for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===xi||i===Si||i===Ti){n=e.slice(0,t),r=e.slice(t);break}}return B(n.trim(),r.trim(),t)}function Fi(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return H(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function Ii(e,t,n,r=null){let i;for(let a=t+1;a<e.length;a++)if(i=e.charCodeAt(a),i===fi)a+=1;else{if(i===n)return a;if(i===vi&&(e.charCodeAt(a+1)===yi||e.charCodeAt(a+1)===bi&&e.charCodeAt(a+2)===yi))throw new Mi(`Unterminated string: ${e.slice(t,a+1)+String.fromCharCode(n)}`,r?[r,t,a+1]:null);if(i===yi||i===bi&&e.charCodeAt(a+1)===yi)throw new Mi(`Unterminated string: ${e.slice(t,a)+String.fromCharCode(n)}`,r?[r,t,a+1]:null)}return t}var N=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}};function P(e){return{kind:`word`,value:e}}function Li(e,t){return{kind:`function`,value:e,nodes:t}}function Ri(e){return{kind:`separator`,value:e}}function F(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+F(n.nodes)+`)`}return t}var zi=92,Bi=41,Vi=58,Hi=44,Ui=34,Wi=61,Gi=62,Ki=60,qi=10,Ji=40,Yi=39,Xi=47,Zi=32,Qi=9;function I(e){e=e.replaceAll(`\r
|
|
42
|
+
`,`
|
|
43
|
+
`);let t=[],n=[],r=null,i=``,a;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case zi:i+=e[o]+e[o+1],o++;break;case Xi:{if(i.length>0){let e=P(i);r?r.nodes.push(e):t.push(e),i=``}let n=P(e[o]);r?r.nodes.push(n):t.push(n);break}case Vi:case Hi:case Wi:case Gi:case Ki:case qi:case Zi:case Qi:{if(i.length>0){let e=P(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===Vi||a===Hi||a===Wi||a===Gi||a===Ki||a===qi||a===Zi||a===Qi);s++);o=s-1;let c=Ri(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case Yi:case Ui:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===zi)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case Ji:{let e=Li(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case Bi:{let e=n.pop();if(i.length>0){let t=P(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(P(i)),t}var $i=(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))($i||{}),L={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 R(e,t){typeof t==`function`?ea(e,t):ea(e,t.enter,t.exit)}function ea(e,t=()=>L.Continue,n=()=>L.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)??L.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.${$i[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o;i.index=c;let l=a[c],u=n(l,i)??L.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.${$i[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}var ta=new N(e=>{let t=[];return R(I(e),e=>{if(e.kind===`function`&&e.value===`var`)return R(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),L.Skip}),t});function na(e){return ta.get(e)}var ra=64,ia=124;function z(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function B(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function V(e,t=[]){return e.charCodeAt(0)===ra?Pi(e,t):z(e,t)}function H(e,t,n=!1){return{kind:`declaration`,property:e,value:t,important:n}}function aa(e){return{kind:`comment`,value:e}}function oa(e,t){return{kind:`context`,context:e,nodes:t}}function U(e){return{kind:`at-root`,nodes:e}}function W(e){switch(e.kind){case`rule`:return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(W),src:e.src,dst:e.dst};case`at-rule`:return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(W),src:e.src,dst:e.dst};case`at-root`:return{kind:e.kind,nodes:e.nodes.map(W),src:e.src,dst:e.dst};case`context`:return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(W),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 sa(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 ca(e,t,n=3){let r=[],i=/* @__PURE__ */ new Set,a=new N(()=>/* @__PURE__ */ new Set),o=new N(()=>/* @__PURE__ */ new Set),s=/* @__PURE__ */ new Set,c=/* @__PURE__ */ new Set,l=[],u=[],d=new N(()=>/* @__PURE__ */ 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 na(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value)}if(e.property===`animation`)for(let t of ha(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=H(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(ma(r.property,t.theme,d)){if(r.property.startsWith(t.theme.prefixKey(`--animate-`)))for(let e of ha(r.value))c.add(e);continue}let n=e.indexOf(r);if(e.splice(n,1),e.length===0){let t=pa(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=I(r.value),a=!1;if(R(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(R(e.nodes,e=>{if(e.kind==`word`&&e.value.toLowerCase()===`currentcolor`){r=!0,a=!0;return}let i=e,o=null,s=/* @__PURE__ */ 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)||(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(`)?I(o)[0]:null}while(i);return L.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?L.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:F(i)},s=V(`@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=V(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=V(`*, ::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=B(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=V(`@layer properties`,[B(`@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 la(p)}function la(e){let t=new N(ui),n=[],r=[],i=null,a=/* @__PURE__ */ new Set,o=/* @__PURE__ */ new Set,s=[],c=/* @__PURE__ */ new Set;R(e,{enter(e){switch(e.kind){case`rule`:if(i=null,n.length===0){if(e.selector.includes(`&`)){let t=ui(e.selector),r=!1;R(t,e=>{e.kind===`selector`&&e.value===`&`&&(r=!0,e.value=`:scope`)}),r?n.push([Wr(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===`&`){c.add(e);return}let r=n[n.length-1][0],i=O(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=ui(e),i=!1;if(R(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=>Hr(e)||Ur(e)))return;if(n.index===0){e.value=r;return}if(n.index===n.siblings.length-1){if(a[0].kind===`complex`||Hr(a[0])||Ur(a[0]))return;e.value=r;return}if(a[0].kind===`complex`||Hr(a[0])||Ur(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`&&Hr(e)){let e=t.siblings[1];return e.kind===`selector`&&e.value.charCodeAt(0)===ia?void 0:L.ReplaceSkip([])}}}),i)return Wr(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)l(t);return L.Skip}break;case`at-rule`:if(i=null,e.nodes.length===0&&!da.has(e.name))return l(e),c.add(e),L.Skip;if(ua.has(e.name))r.push([e.name,e.params,e.src,e.dst]);else return l(e),c.add(e),L.Skip;break;case`declaration`:case`comment`:l(e)}},exit(e){if(!c.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=/* @__PURE__ */ 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 s;function l(e){if(i)e.kind===`declaration`&&(a.has(e.property)?o.add(i):a.add(e.property)),i.push(e);else{if(n.length===0&&r.length===0){let t=s,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;s.push(e);return}i=[e],a.clear(),e.kind===`declaration`&&a.add(e.property);let t=null,c=s,l=0;{let e=c[c.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;l++,c=e.nodes,e=e.nodes[e.nodes.length-1]}}if(n.length>0){let[e,a,s]=n[n.length-1];if(r.length-l<=0){let t=c[c.length-1];if(t&&t.kind===`rule`&&t.selector===e){t.nodes.push(...i),i=t.nodes,o.add(i);return}}t=V(e,i),(a||s)&&Object.assign(t,{src:a,dst:s})}for(let e=r.length-1;e>=l;--e){let[n,a,o,s]=r[e];t=B(n,a,t?[t]:i),(o||s)&&Object.assign(t,{src:o,dst:s})}t?c.push(t):c.push(...i)}}}var ua=/* @__PURE__ */ new Set([`@container`,`@layer`,`@media`,`@page`,`@starting-style`,`@supports`,`@view-transition`]),da=/* @__PURE__ */ new Set([`@container`,`@media`,`@page`,`@starting-style`,`@supports`,`@view-transition`]);function fa(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`:``};
|
|
44
|
+
`,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} {
|
|
45
|
+
`,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}}
|
|
46
|
+
`,t&&(n+=s.length,n+=2)}else if(e.kind===`at-rule`){if(e.nodes.length===0){let i=`${s}${e.name} ${e.params};
|
|
47
|
+
`;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} `:` `}{
|
|
48
|
+
`,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}}
|
|
49
|
+
`,t&&(n+=s.length,n+=2)}else if(e.kind===`comment`){if(o+=`${s}/*${e.value}*/
|
|
50
|
+
`,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 pa(e,t){let n=[];return R(e,(e,r)=>{if(t(e))return n=r.path(),n.push(e),L.Stop}),n}function ma(e,t,n,r=/* @__PURE__ */ 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(ma(e,t,n,r))return!0}return!1}function ha(e){return e.split(/[\s,]+/)}function ga(e){if(e.indexOf(`(`)===-1)return _a(e);let t=I(e);return va(t),e=F(t),e=Un(e),e}function _a(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 va(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=_a(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=_a(t.value);for(let e=0;e<t.nodes.length;e++)e==0&&t.nodes[e].kind===`word`?t.nodes[e].value=_a(t.nodes[e].value,!0):va([t.nodes[e]]);break}t.value=_a(t.value),va(t.nodes);break;case`separator`:case`word`:t.value=_a(t.value);break;default:ya(t)}}function ya(e){throw Error(`Unexpected value: ${e}`)}var ba=/* @__PURE__ */ new Uint8Array(256);function xa(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;else if(t===i)break}break;case 40:ba[t]=41,t++;break;case 91:ba[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===ba[t-1]&&t--;break;case 59:if(t===0)return!1}}return!0}var Sa=58,Ca=45,wa=97,Ta=122,Ea=/^[a-zA-Z0-9_.%-]+$/;function Da(e){switch(e.kind){case`arbitrary`:return{kind:e.kind,property:e.property,value:e.value,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Oa),important:e.important,raw:e.raw};case`static`:return{kind:e.kind,root:e.root,variants:e.variants.map(Oa),important:e.important,raw:e.raw};case`functional`:return{kind:e.kind,root:e.root,value:e.value?e.value.kind===`arbitrary`?{kind:e.value.kind,dataType:e.value.dataType,value:e.value.value}:{kind:e.value.kind,value:e.value.value,fraction:e.value.fraction}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Oa),important:e.important,raw:e.raw};default:throw Error(`Unknown candidate kind`)}}function Oa(e){switch(e.kind){case`arbitrary`:return{kind:e.kind,selector:e.selector,relative:e.relative};case`static`:return{kind:e.kind,root:e.root};case`functional`:return{kind:e.kind,root:e.root,value:e.value?{kind:e.value.kind,value:e.value.value}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};case`compound`:return{kind:e.kind,root:e.root,variant:Oa(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw Error(`Unknown variant kind`)}}function*ka(e,t){let n=O(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]=O(r,`/`);if(c)return;let l=s===null?null:Aa(s);if(s!==null&&l===null)return;if(o[0]===`[`){if(o[o.length-1]!==`]`)return;let t=o.charCodeAt(1);if(t!==Ca&&!(t>=wa&&t<=Ta))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=ga(o.slice(n+1));if(!xa(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=O(r,`:`),a=null;if(i.length===2&&(a=i[0],r=i[1]),r[0]!==`-`||r[1]!==`-`||!xa(r))return;u=[[n,a===null?`[var(${r})]`:`[${a}:var(${r})]`]]}else u=Ma(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;else{{let e=n.indexOf(`[`);if(e!==-1){if(n[n.length-1]!==`]`)return;let t=ga(n.slice(e+1,-1));if(!xa(t))continue;let i=null;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n===Sa){i=t.slice(0,e),t=t.slice(e+1);break}if(!(n===Ca||n>=wa&&n<=Ta))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(!Ea.test(n))continue;r.value={kind:`named`,value:n,fraction:e}}}yield r}}}function Aa(e){if(e[0]===`[`&&e[e.length-1]===`]`){let t=ga(e.slice(1,-1));return!xa(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]!==`-`||!xa(e)?null:(e=`var(${e})`,{kind:`arbitrary`,value:ga(e)})):Ea.test(e)?{kind:`named`,value:e}:null}function ja(e,t){if(e[0]===`[`&&e[e.length-1]===`]`){if(e[1]===`@`&&e.includes(`&`))return null;let t=ga(e.slice(1,-1));if(!xa(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]=O(e,`/`);if(i)return null;let a=Ma(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:Aa(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=ga(n.slice(1,-1));return!xa(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=ga(n.slice(1,-1));return!xa(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(!Ea.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:Aa(r);return r!==null&&a===null?null:{kind:`compound`,root:e,modifier:a,variant:i}}}}return null}function*Ma(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 Na(e,t){let n=[];for(let e of t.variants)n.unshift(Fa(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=Ha(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}:${La(n)}${a}`:r+=`-${i}${La(n)}${a}`}}else t.value.kind===`named`&&(r+=`-${t.value.value}`)}return t.kind===`arbitrary`&&(r+=`[${t.property}:${La(t.value)}]`),(t.kind===`arbitrary`||t.kind===`functional`)&&(r+=Pa(t.modifier)),t.important&&(r+=`!`),n.push(r),n.join(`:`)}function Pa(e){if(e===null)return``;let t=Ha(e.value),n=t?e.value.slice(4,-1):e.value,[r,i]=t?[`(`,`)`]:[`[`,`]`];return e.kind===`arbitrary`?`/${r}${La(n)}${i}`:e.kind===`named`?`/${e.value}`:``}function Fa(e){if(e.kind===`static`)return e.root;if(e.kind===`arbitrary`)return`[${La(za(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=Ha(e.value.value),i=r?e.value.value.slice(4,-1):e.value.value,[a,o]=r?[`(`,`)`]:[`[`,`]`];t+=`${n?`-`:``}${a}${La(i)}${o}`}else e.value.kind===`named`&&(t+=`${n?`-`:``}${e.value.value}`)}}return e.kind===`compound`&&(t+=e.root,t+=`-`,t+=Fa(e.variant)),(e.kind===`functional`||e.kind===`compound`)&&(t+=Pa(e.modifier)),t}var Ia=new N(e=>{let t=I(e),n=/* @__PURE__ */ new Set,r=/* @__PURE__ */ new Set([`~`,`>`,`+`,`-`,`*`,`/`]);return R(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:L.ReplaceSkip({kind:`function`,value:``,nodes:[e]})}}),n.size>0&&R(t,e=>{if(n.has(e))return n.delete(e),L.ReplaceSkip([])}),Ba(t),F(t)});function La(e){return Ia.get(e)}var Ra=new N(e=>{let t=I(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`?F(t[2].nodes):e});function za(e){return Ra.get(e)}function Ba(e){for(let t of e)switch(t.kind){case`function`:if(t.value===`url`||t.value.endsWith(`_url`)){t.value=Wa(t.value);break}if(t.value===`var`||t.value.endsWith(`_var`)||t.value===`theme`||t.value.endsWith(`_theme`)){t.value=Wa(t.value);for(let e=0;e<t.nodes.length;e++)Ba([t.nodes[e]]);break}t.value=Wa(t.value),Ba(t.nodes);break;case`separator`:t.value=Wa(t.value);break;case`word`:(t.value[0]!==`-`||t.value[1]!==`-`)&&(t.value=Wa(t.value));break;default:Ua(t)}}var Va=new N(e=>{let t=I(e);return t.length===1&&t[0].kind===`function`&&t[0].value===`var`});function Ha(e){return Va.get(e)}function Ua(e){throw Error(`Unexpected value: ${e}`)}function Wa(e){return e.replaceAll(`_`,String.raw`\_`).replaceAll(` `,`_`)}function Ga(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 Ka=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,qa=new N(e=>{let t=Ka.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]}),Ja=/* @__PURE__ */ new Set([`inset`,`inherit`,`initial`,`revert`,`unset`]),Ya=/* @__PURE__ */ new Set([`calc`,`clamp`,`max`,`min`,`--spacing`]),Xa=/* @__PURE__ */ new Set([`color`,`color-mix`,`contrast-color`,`device-cmyk`,`hsl`,`hsla`,`hwb`,`lab`,`lch`,`light-dark`,`oklab`,`oklch`,`rgb`,`rgba`,`--alpha`]),Za=/^-?(\d+|\.\d+)(.*?)$/;function Qa(e,t){function n(e){return I(t(F([e])))}return O(e,`,`).map(e=>{e=e.trim();let r=I(e),i=null,a=0,o=0,s=!1;return R(r,e=>{switch(e.kind){case`word`:if(Ja.has(e.value.toLowerCase()))return L.Continue;if(Za.test(e.value.toLowerCase()))return o++,L.Continue;if(e.value[0]===`#`||Bn(e.value))return s=!0,L.ReplaceStop(n(e));i=e,a++;break;case`function`:return Xa.has(e.value.toLowerCase())?(s=!0,L.ReplaceStop(n(e))):Ya.has(e.value.toLowerCase())?(o++,L.Skip):(i=e,a++,L.Skip);case`separator`:return L.Continue}}),s?F(r):o<2?e:a===0?`${e} ${t(`currentcolor`)}`:(a===1&&R(r,e=>e===i?(s=!0,L.ReplaceStop(n(e))):L.Skip),s?F(r):e)}).join(`, `)}var $a=/* @__PURE__ */ `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(`,`),eo=class{utilities=new N(()=>[]);completions=/* @__PURE__ */ 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 G(e,t,n){return B(`@property`,e,[H(`syntax`,n?`"${n}"`:`"*"`),H(`inherits`,`false`),...t?[H(`initial-value`,t)]:[]])}function K(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 to(e,t){let n=Number(t);return Number.isNaN(n)||(t=`${n*100}%`),`oklab(from ${e} l a b / ${t})`}function q(e,t,n){if(!t)return e;if(t.kind===`arbitrary`)return K(e,t.value);let r=n.resolve(t.value,[`--opacity`]);return r?K(e,r):yr(t.value)?K(e,`${t.value}%`):null}function J(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?q(r,e.modifier,t):null}var no=/(\d+)_(\d+)/g;function ro(e){let t=new eo;function n(n,r){function*i(t){for(let n of e.keysInNamespaces(t))yield n.replace(no,(e,t,n)=>`${t}.${n}`)}let a=/* @__PURE__ */ `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():H(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]=O(n.value.fraction,`/`);if(!A(e)||!A(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(W)}}}else{if(n.modifier)return;r=i.defaultValue===void 0?e.resolve(null,i.themeKeys??[]):i.defaultValue}if(r!==null)return i.handle(t?Un(`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=q(n,t.modifier,e)):n=J(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`])||!j(t)?null:`--spacing(${t})`,handleNegativeBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!j(t)?null:`--spacing(-${t})`,handle:o,staticValues:l}),n(r,()=>[{values:e.get([`--spacing`])?$a:[],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=>[H(t,e)],{supportsNegative:!0,supportsFractions:!0});r(`isolate`,[[`isolation`,`isolate`]]),r(`isolation-auto`,[[`isolation`,`auto`]]),i(`z`,{supportsNegative:!0,handleBareValue:({value:e})=>A(e)?e:null,themeKeys:[`--z-index`],handle:e=>[H(`z-index`,e)],staticValues:{auto:[H(`z-index`,`auto`)]}}),n(`z`,()=>[{supportsNegative:!0,values:[`0`,`10`,`20`,`30`,`40`,`50`],valueThemeKeys:[`--z-index`]}]),i(`order`,{supportsNegative:!0,handleBareValue:({value:e})=>A(e)?e:null,themeKeys:[`--order`],handle:e=>[H(`order`,e)],staticValues:{first:[H(`order`,`-9999`)],last:[H(`order`,`9999`)]}}),n(`order`,()=>[{supportsNegative:!0,values:Array.from({length:12},(e,t)=>`${t+1}`),valueThemeKeys:[`--order`]}]),i(`col`,{supportsNegative:!0,handleBareValue:({value:e})=>A(e)?e:null,themeKeys:[`--grid-column`],handle:e=>[H(`grid-column`,e)],staticValues:{auto:[H(`grid-column`,`auto`)]}}),i(`col-span`,{handleBareValue:({value:e})=>A(e)?e:null,handle:e=>[H(`grid-column`,`span ${e} / span ${e}`)],staticValues:{full:[H(`grid-column`,`1 / -1`)]}}),i(`col-start`,{supportsNegative:!0,handleBareValue:({value:e})=>A(e)?e:null,themeKeys:[`--grid-column-start`],handle:e=>[H(`grid-column-start`,e)],staticValues:{auto:[H(`grid-column-start`,`auto`)]}}),i(`col-end`,{supportsNegative:!0,handleBareValue:({value:e})=>A(e)?e:null,themeKeys:[`--grid-column-end`],handle:e=>[H(`grid-column-end`,e)],staticValues:{auto:[H(`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})=>A(e)?e:null,themeKeys:[`--grid-row`],handle:e=>[H(`grid-row`,e)],staticValues:{auto:[H(`grid-row`,`auto`)]}}),i(`row-span`,{themeKeys:[],handleBareValue:({value:e})=>A(e)?e:null,handle:e=>[H(`grid-row`,`span ${e} / span ${e}`)],staticValues:{full:[H(`grid-row`,`1 / -1`)]}}),i(`row-start`,{supportsNegative:!0,handleBareValue:({value:e})=>A(e)?e:null,themeKeys:[`--grid-row-start`],handle:e=>[H(`grid-row-start`,e)],staticValues:{auto:[H(`grid-row-start`,`auto`)]}}),i(`row-end`,{supportsNegative:!0,handleBareValue:({value:e})=>A(e)?e:null,themeKeys:[`--grid-row-end`],handle:e=>[H(`grid-row-end`,e)],staticValues:{auto:[H(`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=>[H(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})=>A(e)?e:null,handle:e=>[H(`overflow`,`hidden`),H(`display`,`-webkit-box`),H(`-webkit-box-orient`,`vertical`),H(`-webkit-line-clamp`,e)],staticValues:{none:[H(`overflow`,`visible`),H(`display`,`block`),H(`-webkit-box-orient`,`horizontal`),H(`-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]=O(e,`/`);return!j(t)||!j(n)?null:e},handle:e=>[H(`aspect-ratio`,e)],staticValues:{auto:[H(`aspect-ratio`,`auto`)],square:[H(`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=>[H(`--tw-sort`,`size`),H(`width`,e),H(`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=>[H(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=>[H(n,e)],{supportsFractions:!0});t.static(`container`,()=>{let t=[...e.namespace(`--breakpoint`).values()];t.sort((e,t)=>Ga(e,t,`asc`));let n=[H(`--tw-sort`,`--tw-container-component`),H(`width`,`100%`)];for(let e of t)n.push(B(`@media`,`(width >= ${e})`,[H(`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:[H(`flex`,e.value.value)];if(e.value.fraction){let[t,n]=O(e.value.fraction,`/`);return!A(t)||!A(n)?void 0:[H(`flex`,`calc(${e.value.fraction} * 100%)`)]}if(A(e.value.value))return e.modifier?void 0:[H(`flex`,e.value.value)]}}),n(`flex`,()=>[{supportsFractions:!0},{values:Array.from({length:12},(e,t)=>`${t+1}`)}]),i(`shrink`,{defaultValue:`1`,handleBareValue:({value:e})=>A(e)?e:null,handle:e=>[H(`flex-shrink`,e)]}),i(`grow`,{defaultValue:`1`,handleBareValue:({value:e})=>A(e)?e:null,handle:e=>[H(`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=>[H(`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=()=>U([G(`--tw-border-spacing-x`,`0`,`<length>`),G(`--tw-border-spacing-y`,`0`,`<length>`)]);o(`border-spacing`,[`--border-spacing`,`--spacing`],e=>[s(),H(`--tw-border-spacing-x`,e),H(`--tw-border-spacing-y`,e),H(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),o(`border-spacing-x`,[`--border-spacing`,`--spacing`],e=>[s(),H(`--tw-border-spacing-x`,e),H(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),o(`border-spacing-y`,[`--border-spacing`,`--spacing`],e=>[s(),H(`--tw-border-spacing-y`,e),H(`border-spacing`,`var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]),i(`origin`,{themeKeys:[`--transform-origin`],handle:e=>[H(`transform-origin`,e)],staticValues:{center:[H(`transform-origin`,`center`)],top:[H(`transform-origin`,`top`)],"top-right":[H(`transform-origin`,`100% 0`)],right:[H(`transform-origin`,`100%`)],"bottom-right":[H(`transform-origin`,`100% 100%`)],bottom:[H(`transform-origin`,`bottom`)],"bottom-left":[H(`transform-origin`,`0 100%`)],left:[H(`transform-origin`,`0`)],"top-left":[H(`transform-origin`,`0 0`)]}}),i(`perspective-origin`,{themeKeys:[`--perspective-origin`],handle:e=>[H(`perspective-origin`,e)],staticValues:{center:[H(`perspective-origin`,`center`)],top:[H(`perspective-origin`,`top`)],"top-right":[H(`perspective-origin`,`100% 0`)],right:[H(`perspective-origin`,`100%`)],"bottom-right":[H(`perspective-origin`,`100% 100%`)],bottom:[H(`perspective-origin`,`bottom`)],"bottom-left":[H(`perspective-origin`,`0 100%`)],left:[H(`perspective-origin`,`0`)],"top-left":[H(`perspective-origin`,`0 0`)]}}),i(`perspective`,{themeKeys:[`--perspective`],handle:e=>[H(`perspective`,e)],staticValues:{none:[H(`perspective`,`none`)]}});let c=()=>U([G(`--tw-translate-x`,`0`),G(`--tw-translate-y`,`0`),G(`--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(),H(`--tw-translate-x`,e),H(`--tw-translate-y`,e),H(`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(),H(`--tw-translate-${e}`,t),H(`translate`,`var(--tw-translate-x) var(--tw-translate-y)`)],{supportsNegative:!0,supportsFractions:!0});o(`translate-z`,[`--translate`,`--spacing`],e=>[c(),H(`--tw-translate-z`,e),H(`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=()=>U([G(`--tw-scale-x`,`1`),G(`--tw-scale-y`,`1`),G(`--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,[H(`scale`,r)]):(r=e.resolve(n.value.value,[`--scale`]),!r&&A(n.value.value)&&(r=`${n.value.value}%`),r?(r=t?`calc(${r} * -1)`:r,[l(),H(`--tw-scale-x`,r),H(`--tw-scale-y`,r),H(`--tw-scale-z`,r),H(`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})=>A(e)?`${e}%`:null,handle:t=>[l(),H(`--tw-scale-${e}`,t),H(`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??k(r,[`angle`,`vector`]);if(e===`vector`)return[H(`rotate`,`${r} var(--tw-rotate)`)];if(e!==`angle`)return[H(`rotate`,t?`calc(${r} * -1)`:r)]}else if(r=e.resolve(n.value.value,[`--rotate`]),!r&&A(n.value.value)&&(r=`${n.value.value}deg`),!r)return;return[H(`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=()=>U([G(`--tw-rotate-x`),G(`--tw-rotate-y`),G(`--tw-rotate-z`),G(`--tw-skew-x`),G(`--tw-skew-y`)]);for(let t of[`x`,`y`,`z`])i(`rotate-${t}`,{supportsNegative:!0,themeKeys:[`--rotate`],handleBareValue:({value:e})=>A(e)?`${e}deg`:null,handle:n=>[a(),H(`--tw-rotate-${t}`,`rotate${t.toUpperCase()}(${n})`),H(`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})=>A(e)?`${e}deg`:null,handle:t=>[a(),H(`--tw-skew-x`,`skewX(${t})`),H(`--tw-skew-y`,`skewY(${t})`),H(`transform`,e)]}),i(`skew-x`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>A(e)?`${e}deg`:null,handle:t=>[a(),H(`--tw-skew-x`,`skewX(${t})`),H(`transform`,e)]}),i(`skew-y`,{supportsNegative:!0,themeKeys:[`--skew`],handleBareValue:({value:e})=>A(e)?`${e}deg`:null,handle:t=>[a(),H(`--tw-skew-y`,`skewY(${t})`),H(`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(),H(`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})=>A(e)?`${e}%`:null,handle:e=>[H(`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/* @__PURE__ */ `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=>[H(`cursor`,e)]});for(let e of[`auto`,`none`,`manipulation`])r(`touch-${e}`,[[`touch-action`,e]]);let f=()=>U([G(`--tw-pan-x`),G(`--tw-pan-y`),G(`--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=()=>U([G(`--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=>[H(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=>[H(t,e)]);r(`list-inside`,[[`list-style-position`,`inside`]]),r(`list-outside`,[[`list-style-position`,`outside`]]),i(`list`,{themeKeys:[`--list-style-type`],handle:e=>[H(`list-style-type`,e)],staticValues:{none:[H(`list-style-type`,`none`)],disc:[H(`list-style-type`,`disc`)],decimal:[H(`list-style-type`,`decimal`)]}}),i(`list-image`,{themeKeys:[`--list-style-image`],handle:e=>[H(`list-style-image`,e)],staticValues:{none:[H(`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})=>A(e)?e:null,handle:e=>[H(`columns`,e)],staticValues:{auto:[H(`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`])||!j(t)?null:`--spacing(${t})`,handle:e=>[H(`grid-auto-columns`,e)],staticValues:{auto:[H(`grid-auto-columns`,`auto`)],min:[H(`grid-auto-columns`,`min-content`)],max:[H(`grid-auto-columns`,`max-content`)],fr:[H(`grid-auto-columns`,`minmax(0, 1fr)`)]}}),i(`auto-rows`,{themeKeys:[`--grid-auto-rows`],handleBareValue:({value:t})=>!e.resolve(null,[`--spacing`])||!j(t)?null:`--spacing(${t})`,handle:e=>[H(`grid-auto-rows`,e)],staticValues:{auto:[H(`grid-auto-rows`,`auto`)],min:[H(`grid-auto-rows`,`min-content`)],max:[H(`grid-auto-rows`,`max-content`)],fr:[H(`grid-auto-rows`,`minmax(0, 1fr)`)]}}),i(`grid-cols`,{themeKeys:[`--grid-template-columns`],handleBareValue:({value:e})=>vr(e)?`repeat(${e}, minmax(0, 1fr))`:null,handle:e=>[H(`grid-template-columns`,e)],staticValues:{none:[H(`grid-template-columns`,`none`)],subgrid:[H(`grid-template-columns`,`subgrid`)]}}),i(`grid-rows`,{themeKeys:[`--grid-template-rows`],handleBareValue:({value:e})=>vr(e)?`repeat(${e}, minmax(0, 1fr))`:null,handle:e=>[H(`grid-template-rows`,e)],staticValues:{none:[H(`grid-template-rows`,`none`)],subgrid:[H(`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=>[H(`gap`,e)]),o(`gap-x`,[`--gap`,`--spacing`],e=>[H(`column-gap`,e)]),o(`gap-y`,[`--gap`,`--spacing`],e=>[H(`row-gap`,e)]),o(`space-x`,[`--space`,`--spacing`],e=>{let t=(()=>{if(e===`--spacing(0)`||e===`--spacing(-0)`)return!0;let t=qa.get(e);return!(!t||t[0]!==0||t[1]!==null&&!dr(e))})();return[U([G(`--tw-space-x-reverse`,`0`)]),z(`:where(& > :not(:last-child))`,[H(`--tw-sort`,`row-gap`),H(`--tw-space-x-reverse`,`0`),H(`margin-inline-start`,t?`0`:`calc(${e} * var(--tw-space-x-reverse))`),H(`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=qa.get(e);return!(!t||t[0]!==0||t[1]!==null&&!dr(e))})();return[U([G(`--tw-space-y-reverse`,`0`)]),z(`:where(& > :not(:last-child))`,[H(`--tw-sort`,`column-gap`),H(`--tw-space-y-reverse`,`0`),H(`margin-block-start`,t?`0`:`calc(${e} * var(--tw-space-y-reverse))`),H(`margin-block-end`,t?`0`:`calc(${e} * calc(1 - var(--tw-space-y-reverse)))`)])]},{supportsNegative:!0}),r(`space-x-reverse`,[()=>U([G(`--tw-space-x-reverse`,`0`)]),()=>z(`:where(& > :not(:last-child))`,[H(`--tw-sort`,`row-gap`),H(`--tw-space-x-reverse`,`1`)])]),r(`space-y-reverse`,[()=>U([G(`--tw-space-y-reverse`,`0`)]),()=>z(`:where(& > :not(:last-child))`,[H(`--tw-sort`,`column-gap`),H(`--tw-space-y-reverse`,`1`)])]),r(`accent-auto`,[[`accent-color`,`auto`]]),a(`accent`,{themeKeys:[`--accent-color`,`--color`],handle:e=>[H(`accent-color`,e)]}),a(`caret`,{themeKeys:[`--caret-color`,`--color`],handle:e=>[H(`caret-color`,e)]}),a(`divide`,{themeKeys:[`--divide-color`,`--border-color`,`--color`],handle:e=>[z(`:where(& > :not(:last-child))`,[H(`--tw-sort`,`divide-color`),H(`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=()=>U([G(`--tw-scrollbar-thumb`,`#0000`,`<color>`),G(`--tw-scrollbar-track`,`#0000`,`<color>`)]);a(`scrollbar-thumb`,{themeKeys:[`--color`],handle:t=>[e(),H(`--tw-scrollbar-thumb`,t),H(`scrollbar-color`,`var(--tw-scrollbar-thumb) var(--tw-scrollbar-track)`)]}),a(`scrollbar-track`,{themeKeys:[`--color`],handle:t=>[e(),H(`--tw-scrollbar-track`,t),H(`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})=>A(e)?e:null,handle:e=>[H(`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=>H(t,e)),staticValues:{none:t.map(e=>H(e,`0`)),full:t.map(e=>H(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??k(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=q(n,t.modifier,e),n===null?void 0:i.color(n)}}{let n=J(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(A(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=()=>U([G(`--tw-border-style`,`solid`)]);a(`border`,{width:e=>[H(`border-style`,`var(--tw-border-style)`),H(`border-width`,e)],color:e=>[H(`border-color`,e)]}),a(`border-x`,{width:e=>[H(`border-inline-style`,`var(--tw-border-style)`),H(`border-inline-width`,e)],color:e=>[H(`border-inline-color`,e)]}),a(`border-y`,{width:e=>[H(`border-block-style`,`var(--tw-border-style)`),H(`border-block-width`,e)],color:e=>[H(`border-block-color`,e)]}),a(`border-s`,{width:e=>[H(`border-inline-start-style`,`var(--tw-border-style)`),H(`border-inline-start-width`,e)],color:e=>[H(`border-inline-start-color`,e)]}),a(`border-e`,{width:e=>[H(`border-inline-end-style`,`var(--tw-border-style)`),H(`border-inline-end-width`,e)],color:e=>[H(`border-inline-end-color`,e)]}),a(`border-bs`,{width:e=>[H(`border-block-start-style`,`var(--tw-border-style)`),H(`border-block-start-width`,e)],color:e=>[H(`border-block-start-color`,e)]}),a(`border-be`,{width:e=>[H(`border-block-end-style`,`var(--tw-border-style)`),H(`border-block-end-width`,e)],color:e=>[H(`border-block-end-color`,e)]}),a(`border-t`,{width:e=>[H(`border-top-style`,`var(--tw-border-style)`),H(`border-top-width`,e)],color:e=>[H(`border-top-color`,e)]}),a(`border-r`,{width:e=>[H(`border-right-style`,`var(--tw-border-style)`),H(`border-right-width`,e)],color:e=>[H(`border-right-color`,e)]}),a(`border-b`,{width:e=>[H(`border-bottom-style`,`var(--tw-border-style)`),H(`border-bottom-width`,e)],color:e=>[H(`border-bottom-color`,e)]}),a(`border-l`,{width:e=>[H(`border-left-style`,`var(--tw-border-style)`),H(`border-left-width`,e)],color:e=>[H(`border-left-color`,e)]}),i(`divide-x`,{defaultValue:e.get([`--default-border-width`])??`1px`,themeKeys:[`--divide-width`,`--border-width`],handleBareValue:({value:e})=>A(e)?`${e}px`:null,handle:e=>[U([G(`--tw-divide-x-reverse`,`0`)]),z(`:where(& > :not(:last-child))`,[H(`--tw-sort`,`divide-x-width`),o(),H(`--tw-divide-x-reverse`,`0`),H(`border-inline-style`,`var(--tw-border-style)`),H(`border-inline-start-width`,`calc(${e} * var(--tw-divide-x-reverse))`),H(`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})=>A(e)?`${e}px`:null,handle:e=>[U([G(`--tw-divide-y-reverse`,`0`)]),z(`:where(& > :not(:last-child))`,[H(`--tw-sort`,`divide-y-width`),o(),H(`--tw-divide-y-reverse`,`0`),H(`border-bottom-style`,`var(--tw-border-style)`),H(`border-top-style`,`var(--tw-border-style)`),H(`border-top-width`,`calc(${e} * var(--tw-divide-y-reverse))`),H(`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`,[()=>U([G(`--tw-divide-x-reverse`,`0`)]),()=>z(`:where(& > :not(:last-child))`,[H(`--tw-divide-x-reverse`,`1`)])]),r(`divide-y-reverse`,[()=>U([G(`--tw-divide-y-reverse`,`0`)]),()=>z(`:where(& > :not(:last-child))`,[H(`--tw-divide-y-reverse`,`1`)])]);for(let e of[`solid`,`dashed`,`dotted`,`double`,`none`])r(`divide-${e}`,[()=>z(`:where(& > :not(:last-child))`,[H(`--tw-sort`,`divide-style`),H(`--tw-border-style`,e),H(`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[H(`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[H(`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??k(e,[`angle`]))===`angle`?(e=t?`calc(${e} * -1)`:`${e}`,[H(`--tw-gradient-position`,e),H(`background-image`,`linear-gradient(var(--tw-gradient-stops,${e}))`)]):t?void 0:[H(`--tw-gradient-position`,e),H(`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(A(r))r=t?`calc(${r}deg * -1)`:`${r}deg`;else return;let i=e(n.modifier);return[H(`--tw-gradient-position`,`${r}`),V(`@supports (background-image: linear-gradient(in lab, red, red))`,[H(`--tw-gradient-position`,`${r} ${i}`)]),H(`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[H(`--tw-gradient-position`,e),H(`background-image`,`conic-gradient(var(--tw-gradient-stops,${e}))`)]}let r=e(n.modifier);if(!n.value)return[H(`--tw-gradient-position`,r),H(`background-image`,`conic-gradient(var(--tw-gradient-stops))`)];let i=n.value.value;if(A(i))return i=t?`calc(${i}deg * -1)`:`${i}deg`,[H(`--tw-gradient-position`,`from ${i} ${r}`),H(`background-image`,`conic-gradient(var(--tw-gradient-stops))`)]}},a=[`oklab`,`oklch`,`srgb`,`hsl`,`longer`,`shorter`,`increasing`,`decreasing`],o=/* @__PURE__ */ 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[H(`--tw-gradient-position`,e(t.modifier)),H(`background-image`,`radial-gradient(var(--tw-gradient-stops))`)];if(t.value.kind===`arbitrary`){if(t.modifier)return;let e=t.value.value;return[H(`--tw-gradient-position`,e),H(`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??k(n,[`image`,`color`,`percentage`,`position`,`bg-size`,`length`,`url`])){case`percentage`:case`position`:return t.modifier?void 0:[H(`background-position`,n)];case`bg-size`:case`length`:case`size`:return t.modifier?void 0:[H(`background-size`,n)];case`image`:case`url`:return t.modifier?void 0:[H(`background-image`,n)];default:return n=q(n,t.modifier,e),n===null?void 0:[H(`background-color`,n)]}}{let n=J(t,e,[`--background-color`,`--color`]);if(n)return[H(`background-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--background-image`]);if(n)return[H(`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=()=>U([G(`--tw-gradient-position`),G(`--tw-gradient-from`,`#0000`,`<color>`),G(`--tw-gradient-via`,`#0000`,`<color>`),G(`--tw-gradient-to`,`#0000`,`<color>`),G(`--tw-gradient-stops`),G(`--tw-gradient-via-stops`),G(`--tw-gradient-from-position`,`0%`,`<length-percentage>`),G(`--tw-gradient-via-position`,`50%`,`<length-percentage>`),G(`--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??k(n,[`color`,`length`,`percentage`])){case`length`:case`percentage`:return t.modifier?void 0:i.position(n);default:return n=q(n,t.modifier,e),n===null?void 0:i.color(n)}}{let n=J(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]===`%`&&A(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(),H(`--tw-sort`,`--tw-gradient-from`),H(`--tw-gradient-from`,e),H(`--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(),H(`--tw-gradient-from-position`,e)]}),r(`via-none`,[[`--tw-gradient-via-stops`,`initial`]]),h(`via`,{color:e=>[m(),H(`--tw-sort`,`--tw-gradient-via`),H(`--tw-gradient-via`,e),H(`--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)`),H(`--tw-gradient-stops`,`var(--tw-gradient-via-stops)`)],position:e=>[m(),H(`--tw-gradient-via-position`,e)]}),h(`to`,{color:e=>[m(),H(`--tw-sort`,`--tw-gradient-to`),H(`--tw-gradient-to`,e),H(`--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(),H(`--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??k(t,[`image`,`percentage`,`position`,`bg-size`,`length`,`url`])){case`percentage`:case`position`:return e.modifier?void 0:[H(`mask-position`,t)];case`bg-size`:case`length`:case`size`:return[H(`mask-size`,t)];default:return[H(`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[H(`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[H(`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=()=>U([G(`--tw-mask-linear`,`linear-gradient(#fff, #fff)`),G(`--tw-mask-radial`,`linear-gradient(#fff, #fff)`),G(`--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??k(n,[`length`,`percentage`,`color`])){case`color`:return n=q(n,t.modifier,e),n===null?void 0:i.color(n);case`percentage`:return t.modifier||!A(n.slice(0,-1))?void 0:i.position(n);default:return t.modifier?void 0:i.position(n)}}{let n=J(t,e,[`--background-color`,`--color`]);if(n)return i.color(n)}{if(t.modifier)return;let n=k(t.value.value,[`number`,`percentage`]);if(!n)return;switch(n){case`number`:return!e.resolve(null,[`--spacing`])||!j(t.value.value)?void 0:i.position(`--spacing(${t.value.value})`);case`percentage`:return A(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`])?$a:[]},{values:[`current`,`inherit`,`transparent`],valueThemeKeys:[`--background-color`,`--color`],modifierThemeKeys:[`--opacity`],modifiers:Array.from({length:21},(e,t)=>`${t*5}`)}])}let v=()=>U([G(`--tw-mask-left`,`linear-gradient(#fff, #fff)`),G(`--tw-mask-right`,`linear-gradient(#fff, #fff)`),G(`--tw-mask-bottom`,`linear-gradient(#fff, #fff)`),G(`--tw-mask-top`,`linear-gradient(#fff, #fff)`)]);function y(e,t,n){_(e,{color(e){let r=[g(),v(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--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(H(`--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(U([G(`--tw-mask-${i}-from-position`,`0%`),G(`--tw-mask-${i}-to-position`,`100%`),G(`--tw-mask-${i}-from-color`,`black`),G(`--tw-mask-${i}-to-color`,`transparent`)])),r.push(H(`--tw-mask-${i}-${t}-color`,e)));return r},position(e){let r=[g(),v(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--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(H(`--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(U([G(`--tw-mask-${i}-from-position`,`0%`),G(`--tw-mask-${i}-to-position`,`100%`),G(`--tw-mask-${i}-from-color`,`black`),G(`--tw-mask-${i}-to-color`,`transparent`)])),r.push(H(`--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=()=>U([G(`--tw-mask-linear-position`,`0deg`),G(`--tw-mask-linear-from-position`,`0%`),G(`--tw-mask-linear-to-position`,`100%`),G(`--tw-mask-linear-from-color`,`black`),G(`--tw-mask-linear-to-color`,`transparent`)]);i(`mask-linear`,{defaultValue:null,supportsNegative:!0,supportsFractions:!1,handleBareValue({value:e}){if(!A(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`1deg`:`calc(1deg * ${e})`},handleNegativeBareValue({value:e}){if(!A(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`-1deg`:`calc(1deg * -${e})`},handle:e=>[g(),b(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops, var(--tw-mask-linear-position)))`),H(`--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(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--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)`),H(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),H(`--tw-mask-linear-from-color`,e)],position:e=>[g(),b(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--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)`),H(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),H(`--tw-mask-linear-from-position`,e)]}),_(`mask-linear-to`,{color:e=>[g(),b(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--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)`),H(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),H(`--tw-mask-linear-to-color`,e)],position:e=>[g(),b(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--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)`),H(`--tw-mask-linear`,`linear-gradient(var(--tw-mask-linear-stops))`),H(`--tw-mask-linear-to-position`,e)]});let x=()=>U([G(`--tw-mask-radial-from-position`,`0%`),G(`--tw-mask-radial-to-position`,`100%`),G(`--tw-mask-radial-from-color`,`black`),G(`--tw-mask-radial-to-color`,`transparent`),G(`--tw-mask-radial-shape`,`ellipse`),G(`--tw-mask-radial-size`,`farthest-corner`),G(`--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=>[H(`--tw-mask-radial-position`,e)]}),i(`mask-radial`,{defaultValue:null,supportsNegative:!1,supportsFractions:!1,handle:e=>[g(),x(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops, var(--tw-mask-radial-size)))`),H(`--tw-mask-radial-size`,e)]}),_(`mask-radial-from`,{color:e=>[g(),x(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--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)`),H(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),H(`--tw-mask-radial-from-color`,e)],position:e=>[g(),x(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--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)`),H(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),H(`--tw-mask-radial-from-position`,e)]}),_(`mask-radial-to`,{color:e=>[g(),x(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--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)`),H(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),H(`--tw-mask-radial-to-color`,e)],position:e=>[g(),x(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--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)`),H(`--tw-mask-radial`,`radial-gradient(var(--tw-mask-radial-stops))`),H(`--tw-mask-radial-to-position`,e)]});let S=()=>U([G(`--tw-mask-conic-position`,`0deg`),G(`--tw-mask-conic-from-position`,`0%`),G(`--tw-mask-conic-to-position`,`100%`),G(`--tw-mask-conic-from-color`,`black`),G(`--tw-mask-conic-to-color`,`transparent`)]);i(`mask-conic`,{defaultValue:null,supportsNegative:!0,supportsFractions:!1,handleBareValue({value:e}){if(!A(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`1deg`:`calc(1deg * ${e})`},handleNegativeBareValue({value:e}){if(!A(e))return null;let t=Number(e);return t===0?`0deg`:t===1?`-1deg`:`calc(1deg * -${e})`},handle:e=>[g(),S(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops, var(--tw-mask-conic-position)))`),H(`--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(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--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)`),H(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),H(`--tw-mask-conic-from-color`,e)],position:e=>[g(),S(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--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)`),H(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),H(`--tw-mask-conic-from-position`,e)]}),_(`mask-conic-to`,{color:e=>[g(),S(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--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)`),H(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),H(`--tw-mask-conic-to-color`,e)],position:e=>[g(),S(),H(`mask-image`,`var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`),H(`mask-composite`,`intersect`),H(`--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)`),H(`--tw-mask-conic`,`conic-gradient(var(--tw-mask-conic-stops))`),H(`--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=q(t.value.value,t.modifier,e);return n===null?void 0:[H(`fill`,n)]}let n=J(t,e,[`--fill`,`--color`]);if(n)return[H(`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??k(n,[`color`,`number`,`length`,`percentage`])){case`number`:case`length`:case`percentage`:return t.modifier?void 0:[H(`stroke-width`,n)];default:return n=q(t.value.value,t.modifier,e),n===null?void 0:[H(`stroke`,n)]}}{let n=J(t,e,[`--stroke`,`--color`]);if(n)return[H(`stroke`,n)]}{let n=e.resolve(t.value.value,[`--stroke-width`]);if(n)return[H(`stroke-width`,n)];if(A(t.value.value))return[H(`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=>[H(`object-position`,e)],staticValues:{top:[H(`object-position`,`top`)],"top-left":[H(`object-position`,`left top`)],"top-right":[H(`object-position`,`right top`)],bottom:[H(`object-position`,`bottom`)],"bottom-left":[H(`object-position`,`left bottom`)],"bottom-right":[H(`object-position`,`right bottom`)],left:[H(`object-position`,`left`)],right:[H(`object-position`,`right`)],center:[H(`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=>[H(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=>[H(`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=>[H(`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??k(e,[`number`,`generic-name`,`family-name`])){case`generic-name`:case`family-name`:return[H(`font-family`,e)];default:return[U([G(`--tw-font-weight`)]),H(`--tw-font-weight`,e),H(`font-weight`,e)]}}{let n=e.resolveWith(t.value.value,[`--font`],[`--font-feature-settings`,`--font-variation-settings`]);if(n){let[e,t={}]=n;return[H(`font-family`,e),H(`font-feature-settings`,t[`--font-feature-settings`]),H(`font-variation-settings`,t[`--font-variation-settings`])]}}{let n=e.resolve(t.value.value,[`--font-weight`]);if(n)return[U([G(`--tw-font-weight`)]),H(`--tw-font-weight`,n),H(`font-weight`,n)]}}}),n(`font`,()=>[{values:[],valueThemeKeys:[`--font`]},{values:[],valueThemeKeys:[`--font-weight`]}]),i(`font-features`,{themeKeys:[],handle:e=>[H(`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!A(t)||Number.isNaN(t)||t<50||t>200?null:e},handle:e=>[H(`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=>[z(`&::placeholder`,[H(`--tw-sort`,`placeholder-color`),H(`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??k(n,[`color`,`length`,`percentage`])){case`length`:case`percentage`:return t.modifier?void 0:[H(`text-decoration-thickness`,n)];default:return n=q(n,t.modifier,e),n===null?void 0:[H(`text-decoration-color`,n)]}}{let n=e.resolve(t.value.value,[`--text-decoration-thickness`]);if(n)return t.modifier?void 0:[H(`text-decoration-thickness`,n)];if(A(t.value.value))return t.modifier?void 0:[H(`text-decoration-thickness`,`${t.value.value}px`)]}{let n=J(t,e,[`--text-decoration-color`,`--color`]);if(n)return[H(`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=>[H(`animation`,e)],staticValues:{none:[H(`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=()=>U([G(`--tw-blur`),G(`--tw-brightness`),G(`--tw-contrast`),G(`--tw-grayscale`),G(`--tw-hue-rotate`),G(`--tw-invert`),G(`--tw-opacity`),G(`--tw-saturate`),G(`--tw-sepia`),G(`--tw-drop-shadow`),G(`--tw-drop-shadow-color`),G(`--tw-drop-shadow-alpha`,`100%`,`<percentage>`),G(`--tw-drop-shadow-size`)]),c=()=>U([G(`--tw-backdrop-blur`),G(`--tw-backdrop-brightness`),G(`--tw-backdrop-contrast`),G(`--tw-backdrop-grayscale`),G(`--tw-backdrop-hue-rotate`),G(`--tw-backdrop-invert`),G(`--tw-backdrop-opacity`),G(`--tw-backdrop-saturate`),G(`--tw-backdrop-sepia`)]);t.functional(`filter`,e=>{if(!e.modifier){if(e.value===null)return[s(),H(`filter`,a)];if(e.value.kind===`arbitrary`)return[H(`filter`,e.value.value)];if(e.value.value===`none`)return[H(`filter`,`none`)]}}),t.functional(`backdrop-filter`,e=>{if(!e.modifier){if(e.value===null)return[c(),H(`-webkit-backdrop-filter`,o),H(`backdrop-filter`,o)];if(e.value.kind===`arbitrary`)return[H(`-webkit-backdrop-filter`,e.value.value),H(`backdrop-filter`,e.value.value)];if(e.value.value===`none`)return[H(`-webkit-backdrop-filter`,`none`),H(`backdrop-filter`,`none`)]}}),i(`blur`,{themeKeys:[`--blur`],handle:e=>[s(),H(`--tw-blur`,`blur(${e})`),H(`filter`,a)],staticValues:{none:[s(),H(`--tw-blur`,` `),H(`filter`,a)]}}),i(`backdrop-blur`,{themeKeys:[`--backdrop-blur`,`--blur`],handle:e=>[c(),H(`--tw-backdrop-blur`,`blur(${e})`),H(`-webkit-backdrop-filter`,o),H(`backdrop-filter`,o)],staticValues:{none:[c(),H(`--tw-backdrop-blur`,` `),H(`-webkit-backdrop-filter`,o),H(`backdrop-filter`,o)]}}),i(`brightness`,{themeKeys:[`--brightness`],handleBareValue:({value:e})=>A(e)?`${e}%`:null,handle:e=>[s(),H(`--tw-brightness`,`brightness(${e})`),H(`filter`,a)]}),i(`backdrop-brightness`,{themeKeys:[`--backdrop-brightness`,`--brightness`],handleBareValue:({value:e})=>A(e)?`${e}%`:null,handle:e=>[c(),H(`--tw-backdrop-brightness`,`brightness(${e})`),H(`-webkit-backdrop-filter`,o),H(`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})=>A(e)?`${e}%`:null,handle:e=>[s(),H(`--tw-contrast`,`contrast(${e})`),H(`filter`,a)]}),i(`backdrop-contrast`,{themeKeys:[`--backdrop-contrast`,`--contrast`],handleBareValue:({value:e})=>A(e)?`${e}%`:null,handle:e=>[c(),H(`--tw-backdrop-contrast`,`contrast(${e})`),H(`-webkit-backdrop-filter`,o),H(`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})=>A(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),H(`--tw-grayscale`,`grayscale(${e})`),H(`filter`,a)]}),i(`backdrop-grayscale`,{themeKeys:[`--backdrop-grayscale`,`--grayscale`],handleBareValue:({value:e})=>A(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),H(`--tw-backdrop-grayscale`,`grayscale(${e})`),H(`-webkit-backdrop-filter`,o),H(`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})=>A(e)?`${e}deg`:null,handle:e=>[s(),H(`--tw-hue-rotate`,`hue-rotate(${e})`),H(`filter`,a)]}),i(`backdrop-hue-rotate`,{supportsNegative:!0,themeKeys:[`--backdrop-hue-rotate`,`--hue-rotate`],handleBareValue:({value:e})=>A(e)?`${e}deg`:null,handle:e=>[c(),H(`--tw-backdrop-hue-rotate`,`hue-rotate(${e})`),H(`-webkit-backdrop-filter`,o),H(`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})=>A(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),H(`--tw-invert`,`invert(${e})`),H(`filter`,a)]}),i(`backdrop-invert`,{themeKeys:[`--backdrop-invert`,`--invert`],handleBareValue:({value:e})=>A(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),H(`--tw-backdrop-invert`,`invert(${e})`),H(`-webkit-backdrop-filter`,o),H(`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})=>A(e)?`${e}%`:null,handle:e=>[s(),H(`--tw-saturate`,`saturate(${e})`),H(`filter`,a)]}),i(`backdrop-saturate`,{themeKeys:[`--backdrop-saturate`,`--saturate`],handleBareValue:({value:e})=>A(e)?`${e}%`:null,handle:e=>[c(),H(`--tw-backdrop-saturate`,`saturate(${e})`),H(`-webkit-backdrop-filter`,o),H(`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})=>A(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[s(),H(`--tw-sepia`,`sepia(${e})`),H(`filter`,a)]}),i(`backdrop-sepia`,{themeKeys:[`--backdrop-sepia`,`--sepia`],handleBareValue:({value:e})=>A(e)?`${e}%`:null,defaultValue:`100%`,handle:e=>[c(),H(`--tw-backdrop-sepia`,`sepia(${e})`),H(`-webkit-backdrop-filter`,o),H(`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:yr(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(),H(`--tw-drop-shadow-alpha`,n),...co(`--tw-drop-shadow-size`,t,n,e=>`var(--tw-drop-shadow-color, ${e})`),H(`--tw-drop-shadow`,O(r,`,`).map(e=>`drop-shadow(${e})`).join(` `)),H(`filter`,a)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??k(r,[`color`]))===`color`?(r=q(r,t.modifier,e),r===null?void 0:[s(),H(`--tw-drop-shadow-color`,K(r,`var(--tw-drop-shadow-alpha)`)),H(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]):t.modifier&&!n?void 0:[s(),H(`--tw-drop-shadow-alpha`,n),...co(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),H(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`),H(`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(),H(`--tw-drop-shadow-alpha`,n),...co(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),H(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`),H(`filter`,a)]:[s(),H(`--tw-drop-shadow-alpha`,n),...co(`--tw-drop-shadow-size`,r,n,e=>`var(--tw-drop-shadow-color, ${e})`),H(`--tw-drop-shadow`,O(i,`,`).map(e=>`drop-shadow(${e})`).join(` `)),H(`filter`,a)]}{let n=J(t,e,[`--drop-shadow-color`,`--color`]);if(n)return n===`inherit`?[s(),H(`--tw-drop-shadow-color`,`inherit`),H(`--tw-drop-shadow`,`var(--tw-drop-shadow-size)`)]:[s(),H(`--tw-drop-shadow-color`,K(n,`var(--tw-drop-shadow-alpha)`)),H(`--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})=>yr(e)?`${e}%`:null,handle:e=>[c(),H(`--tw-backdrop-opacity`,`opacity(${e})`),H(`-webkit-backdrop-filter`,o),H(`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=>[H(`transition-property`,e),H(`transition-timing-function`,a),H(`transition-duration`,o)],staticValues:{none:[H(`transition-property`,`none`)],all:[H(`transition-property`,`all`),H(`transition-timing-function`,a),H(`transition-duration`,o)],colors:[H(`transition-property`,`color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to`),H(`transition-timing-function`,a),H(`transition-duration`,o)],opacity:[H(`transition-property`,`opacity`),H(`transition-timing-function`,a),H(`transition-duration`,o)],shadow:[H(`transition-property`,`box-shadow`),H(`transition-timing-function`,a),H(`transition-duration`,o)],transform:[H(`transition-property`,`transform, translate, scale, rotate`),H(`transition-timing-function`,a),H(`transition-duration`,o)]}}),r(`transition-discrete`,[[`transition-behavior`,`allow-discrete`]]),r(`transition-normal`,[[`transition-behavior`,`normal`]]),i(`delay`,{handleBareValue:({value:e})=>A(e)?`${e}ms`:null,themeKeys:[`--transition-delay`],handle:e=>[H(`transition-delay`,e)]});{let n=()=>U([G(`--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&&A(t.value.value)&&(r=`${t.value.value}ms`)),r!==null)return[n(),H(`--tw-duration`,r),H(`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=()=>U([G(`--tw-ease`)]);i(`ease`,{themeKeys:[`--ease`],handle:t=>[e(),H(`--tw-ease`,t),H(`transition-timing-function`,t)],staticValues:{initial:[e(),H(`--tw-ease`,`initial`)],linear:[e(),H(`--tw-ease`,`linear`),H(`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=>[H(`will-change`,e)]}),r(`content-none`,[[`--tw-content`,`none`],[`content`,`none`]]),i(`content`,{themeKeys:[`--content`],handle:e=>[U([G(`--tw-content`,`""`)]),H(`--tw-content`,e),H(`content`,`var(--tw-content)`)]});{let e=`var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)`,t=()=>U([G(`--tw-contain-size`),G(`--tw-contain-layout`),G(`--tw-contain-paint`),G(`--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=>[H(`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=>[U([G(`--tw-leading`)]),H(`--tw-leading`,e),H(`line-height`,e)],{staticValues:{none:[U([G(`--tw-leading`)]),H(`--tw-leading`,`1`),H(`line-height`,`1`)]}}),i(`tracking`,{supportsNegative:!0,themeKeys:[`--tracking`],handle:e=>[U([G(`--tw-tracking`)]),H(`--tw-tracking`,e),H(`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=()=>U([G(`--tw-ordinal`),G(`--tw-slashed-zero`),G(`--tw-numeric-figure`),G(`--tw-numeric-spacing`),G(`--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=()=>U([G(`--tw-outline-style`,`solid`)]);t.static(`outline-hidden`,()=>[H(`--tw-outline-style`,`none`),H(`outline-style`,`none`),B(`@media`,`(forced-colors: active)`,[H(`outline`,`2px solid transparent`),H(`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(),H(`outline-style`,`var(--tw-outline-style)`),H(`outline-width`,n)]}if(t.value.kind===`arbitrary`){let n=t.value.value;switch(t.value.dataType??k(n,[`color`,`length`,`number`,`percentage`])){case`length`:case`number`:case`percentage`:return t.modifier?void 0:[a(),H(`outline-style`,`var(--tw-outline-style)`),H(`outline-width`,n)];default:return n=q(n,t.modifier,e),n===null?void 0:[H(`outline-color`,n)]}}{let n=J(t,e,[`--outline-color`,`--color`]);if(n)return[H(`outline-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--outline-width`]);if(n)return[a(),H(`outline-style`,`var(--tw-outline-style)`),H(`outline-width`,n)];if(A(t.value.value))return[a(),H(`outline-style`,`var(--tw-outline-style)`),H(`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})=>A(e)?`${e}px`:null,handle:e=>[H(`outline-offset`,e)]}),n(`outline-offset`,()=>[{supportsNegative:!0,values:[`0`,`1`,`2`,`4`,`8`],valueThemeKeys:[`--outline-offset`]}])}i(`opacity`,{themeKeys:[`--opacity`],handleBareValue:({value:e})=>yr(e)?`${e}%`:null,handle:e=>[H(`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})=>A(e)?`${e}px`:null,handle:e=>[H(`text-underline-offset`,e)],staticValues:{auto:[H(`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??k(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&&j(t.modifier.value)){if(!e.resolve(null,[`--spacing`]))return null;r=`--spacing(${t.modifier.value})`}return!r&&t.modifier.value===`none`&&(r=`1`),r?[H(`font-size`,n),H(`line-height`,r)]:null}return[H(`font-size`,n)];default:return n=q(n,t.modifier,e),n===null?void 0:[H(`color`,n)]}}{let n=J(t,e,[`--text-color`,`--color`]);if(n)return[H(`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&&j(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=[H(`font-size`,r)];return n&&i.push(H(`line-height`,n)),i}return typeof i==`string`?[H(`font-size`,r),H(`line-height`,i)]:[H(`font-size`,r),H(`line-height`,i[`--line-height`]?`var(--tw-leading, ${i[`--line-height`]})`:void 0),H(`letter-spacing`,i[`--letter-spacing`]?`var(--tw-tracking, ${i[`--letter-spacing`]})`:void 0),H(`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=()=>U([G(`--tw-text-shadow-color`),G(`--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:yr(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--text-shadow`]);return t===null?void 0:[C(),H(`--tw-text-shadow-alpha`,n),...so(`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??k(r,[`color`]))===`color`?(r=q(r,t.modifier,e),r===null?void 0:[C(),H(`--tw-text-shadow-color`,K(r,`var(--tw-text-shadow-alpha)`))]):[C(),H(`--tw-text-shadow-alpha`,n),...so(`text-shadow`,r,n,e=>`var(--tw-text-shadow-color, ${e})`)]}switch(t.value.value){case`none`:return t.modifier?void 0:[C(),H(`text-shadow`,`none`)];case`inherit`:return t.modifier?void 0:[C(),H(`--tw-text-shadow-color`,`inherit`)]}{let r=e.get([`--text-shadow-${t.value.value}`]);if(r)return[C(),H(`--tw-text-shadow-alpha`,n),...so(`text-shadow`,r,n,e=>`var(--tw-text-shadow-color, ${e})`)]}{let n=J(t,e,[`--text-shadow-color`,`--color`]);if(n)return[C(),H(`--tw-text-shadow-color`,K(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=()=>U([G(`--tw-shadow`,s),G(`--tw-shadow-color`),G(`--tw-shadow-alpha`,`100%`,`<percentage>`),G(`--tw-inset-shadow`,s),G(`--tw-inset-shadow-color`),G(`--tw-inset-shadow-alpha`,`100%`,`<percentage>`),G(`--tw-ring-color`),G(`--tw-ring-shadow`,s),G(`--tw-inset-ring-color`),G(`--tw-inset-ring-shadow`,s),G(`--tw-ring-inset`),G(`--tw-ring-offset-width`,`0px`,`<length>`),G(`--tw-ring-offset-color`,`#fff`),G(`--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:yr(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--shadow`]);return t===null?void 0:[c(),H(`--tw-shadow-alpha`,n),...so(`--tw-shadow`,t,n,e=>`var(--tw-shadow-color, ${e})`),H(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??k(r,[`color`]))===`color`?(r=q(r,t.modifier,e),r===null?void 0:[c(),H(`--tw-shadow-color`,K(r,`var(--tw-shadow-alpha)`))]):[c(),H(`--tw-shadow-alpha`,n),...so(`--tw-shadow`,r,n,e=>`var(--tw-shadow-color, ${e})`),H(`box-shadow`,o)]}switch(t.value.value){case`none`:return t.modifier?void 0:[c(),H(`--tw-shadow`,s),H(`box-shadow`,o)];case`inherit`:return t.modifier?void 0:[c(),H(`--tw-shadow-color`,`inherit`)]}{let r=e.get([`--shadow-${t.value.value}`]);if(r)return[c(),H(`--tw-shadow-alpha`,n),...so(`--tw-shadow`,r,n,e=>`var(--tw-shadow-color, ${e})`),H(`box-shadow`,o)]}{let n=J(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),H(`--tw-shadow-color`,K(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:yr(t.modifier.value)&&(n=`${t.modifier.value}%`)),!t.value){let t=e.get([`--inset-shadow`]);return t===null?void 0:[c(),H(`--tw-inset-shadow-alpha`,n),...so(`--tw-inset-shadow`,t,n,e=>`var(--tw-inset-shadow-color, ${e})`),H(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let r=t.value.value;return(t.value.dataType??k(r,[`color`]))===`color`?(r=q(r,t.modifier,e),r===null?void 0:[c(),H(`--tw-inset-shadow-color`,K(r,`var(--tw-inset-shadow-alpha)`))]):[c(),H(`--tw-inset-shadow-alpha`,n),...so(`--tw-inset-shadow`,r,n,e=>`var(--tw-inset-shadow-color, ${e})`,`inset`),H(`box-shadow`,o)]}switch(t.value.value){case`none`:return t.modifier?void 0:[c(),H(`--tw-inset-shadow`,`inset ${s}`),H(`box-shadow`,o)];case`inherit`:return t.modifier?void 0:[c(),H(`--tw-inset-shadow-color`,`inherit`)]}{let r=e.get([`--inset-shadow-${t.value.value}`]);if(r)return[c(),H(`--tw-inset-shadow-alpha`,n),...so(`--tw-inset-shadow`,r,n,e=>`var(--tw-inset-shadow-color, ${e})`),H(`box-shadow`,o)]}{let n=J(t,e,[`--box-shadow-color`,`--color`]);if(n)return[c(),H(`--tw-inset-shadow-color`,K(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(),H(`--tw-ring-shadow`,i(n)),H(`box-shadow`,o)]}if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??k(n,[`color`,`length`]))===`length`?t.modifier?void 0:[c(),H(`--tw-ring-shadow`,i(n)),H(`box-shadow`,o)]:(n=q(n,t.modifier,e),n===null?void 0:[H(`--tw-ring-color`,n)])}{let n=J(t,e,[`--ring-color`,`--color`]);if(n)return[H(`--tw-ring-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--ring-width`]);if(n===null&&A(t.value.value)&&(n=`${t.value.value}px`),n)return[c(),H(`--tw-ring-shadow`,i(n)),H(`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(),H(`--tw-inset-ring-shadow`,a(`1px`)),H(`box-shadow`,o)];if(t.value.kind===`arbitrary`){let n=t.value.value;return(t.value.dataType??k(n,[`color`,`length`]))===`length`?t.modifier?void 0:[c(),H(`--tw-inset-ring-shadow`,a(n)),H(`box-shadow`,o)]:(n=q(n,t.modifier,e),n===null?void 0:[H(`--tw-inset-ring-color`,n)])}{let n=J(t,e,[`--ring-color`,`--color`]);if(n)return[H(`--tw-inset-ring-color`,n)]}{if(t.modifier)return;let n=e.resolve(t.value.value,[`--ring-width`]);if(n===null&&A(t.value.value)&&(n=`${t.value.value}px`),n)return[c(),H(`--tw-inset-ring-shadow`,a(n)),H(`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??k(n,[`color`,`length`]))===`length`?t.modifier?void 0:[H(`--tw-ring-offset-width`,n),H(`--tw-ring-offset-shadow`,u)]:(n=q(n,t.modifier,e),n===null?void 0:[H(`--tw-ring-offset-color`,n)])}{let n=e.resolve(t.value.value,[`--ring-offset-width`]);if(n)return t.modifier?void 0:[H(`--tw-ring-offset-width`,n),H(`--tw-ring-offset-shadow`,u)];if(A(t.value.value))return t.modifier?void 0:[H(`--tw-ring-offset-width`,`${t.value.value}px`),H(`--tw-ring-offset-shadow`,u)]}{let n=J(t,e,[`--ring-offset-color`,`--color`]);if(n)return[H(`--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?[H(`container-type`,t),H(`container-name`,e.modifier.value)]:[H(`container-type`,t)]}),n(`@container`,()=>[{values:[`normal`],valueThemeKeys:[],hasDefaultValue:!0}]),t}var io=[`number`,`integer`,`ratio`,`percentage`];function ao(e){let t=Ar(e.params);return Co(t)?n=>{let r={"--value":{usedSpacingInteger:!1,usedSpacingNumber:!1,themeKeys:/* @__PURE__ */ new Set,literals:/* @__PURE__ */ new Set},"--modifier":{usedSpacingInteger:!1,usedSpacingNumber:!1,themeKeys:/* @__PURE__ */ new Set,literals:/* @__PURE__ */ new Set}};R(e.nodes,e=>{if(e.kind!==`declaration`||!e.value||!e.value.includes(`--value(`)&&!e.value.includes(`--modifier(`))return;let t=I(e.value);R(t,e=>{if(e.kind!==`function`)return;if(e.value===`--spacing`&&!(r[`--modifier`].usedSpacingNumber&&r[`--value`].usedSpacingNumber))return R(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 L.Stop}}),L.Continue;if(e.value!==`--value`&&e.value!==`--modifier`)return;let t=O(F(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=I(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]!==`]`)&&!io.includes(t.value)){console.warn(`Unsupported bare value data type: "${t.value}".
|
|
51
|
+
Only valid data types are: ${io.map(e=>`"${e}"`).join(`, `)}.
|
|
52
|
+
`);let n=t.value,r=structuredClone(e);R(r.nodes,e=>{if(e.kind===`word`&&e.value===n)return L.ReplaceSkip({kind:`word`,value:`¶`})});let i=`^`.repeat(F([t]).length),a=F([r]).indexOf(`¶`),o=["```css",F([e]),` `.repeat(a)+i,"```"].join(`
|
|
53
|
+
`);console.warn(o)}}),e.value=F(t)}),n.utilities.functional(t.slice(0,-2),t=>{let r=W(e),i=t.value,a=t.modifier,o=!1,s=!1,c=!1,l=!1,u=/* @__PURE__ */ new Map,d=!1;if(R([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=I(e.value);if(R(p,t=>{if(t.kind===`function`){if(t.value===`--value`){o=!0;let a=oo(i,t,n);return a?(s=!0,a.ratio?d=!0:u.set(e,r),L.ReplaceSkip(a.nodes)):(f=!0,L.Stop)}if(t.value===`--modifier`){c=!0;let e=oo(a,t,n);return e?(l=!0,L.ReplaceSkip(e.nodes)):(f=!0,L.Stop)}}}),f)return L.ReplaceSkip([]);e.value=F(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(...$a);else if(s)for(let e of $a)A(e)&&i.push(e);for(let e of n.theme.keysInNamespaces(c))i.push(e.replace(no,(e,t,n)=>`${t}.${n}`))}return[{values:e,modifiers:t}]})}:So(t)?n=>{n.utilities.static(t,()=>e.nodes.map(W))}:null}function oo(e,t,n){if(e===null){for(let e of t.nodes)if(e.kind===`function`&&e.value===`--default`)return{nodes:e.nodes}}else 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:I(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:I(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:I(t)}}}}}else if(e.kind===`named`&&r.kind===`word`){if(!io.includes(r.value))continue;let t=r.value===`ratio`&&`fraction`in e?e.fraction:e.value;if(!t)continue;let n=k(t,[r.value]);if(n===null)continue;if(n===`ratio`){let[e,n]=O(t,`/`).map(Number);if(!A(e)||!A(n))continue}else if(n===`number`&&!j(t)||n===`percentage`&&!A(t.slice(0,-1)))continue;if(n===`ratio`){let[e,n]=O(t,`/`);return{nodes:I(`${e.trim()} / ${n.trim()}`),ratio:!0}}return{nodes:I(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:I(e.value)};if(`dataType`in e&&e.dataType&&e.dataType!==t)continue;if(`dataType`in e&&e.dataType||k(e.value,[t])!==null)return{nodes:I(e.value)}}}}function so(e,t,n,r,i=``){let a=!1,o=Qa(t,e=>n==null?r(e):e.startsWith(`current`)?r(K(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(to(e,n))));function s(e){return i?O(e,`,`).map(e=>i.trim()+` `+e.trim()).join(`, `):e}return a?[H(e,s(Qa(t,r))),V(`@supports (color: lab(from red l a b))`,[H(e,s(o))])]:[H(e,s(o))]}function co(e,t,n,r,i=``){let a=!1,o=O(t,`,`).map(e=>Qa(e,e=>n==null?r(e):e.startsWith(`current`)?r(K(e,n)):((e.startsWith(`var(`)||n.startsWith(`var(`))&&(a=!0),r(to(e,n))))).map(e=>`drop-shadow(${e})`).join(` `);return a?[H(e,i+O(t,`,`).map(e=>`drop-shadow(${Qa(e,r)})`).join(` `)),V(`@supports (color: lab(from red l a b))`,[H(e,i+o)])]:[H(e,i+o)]}var lo=/^-?[a-z][a-zA-Z0-9_-]*/,uo=37,fo=47,po=46,mo=97,ho=122,go=65,_o=90,vo=48,yo=57,bo=95,xo=45;function So(e){let t=lo.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 uo:{if(e!==r.length-1)return!1;let t=(r[e-1]||n[n.length-1]||``).charCodeAt(0);if(t<vo||t>yo)return!1;break}case fo:if(e===r.length-1||i)return!1;i=!0;break;case po:{let t=(r[e-1]||n[n.length-1]||``).charCodeAt(0);if(t<vo||t>yo)return!1;let i=(r[e+1]||``).charCodeAt(0);if(i<vo||i>yo)return!1;break}case bo:case xo:continue;default:if(t>=mo&&t<=ho||t>=go&&t<=_o||t>=vo&&t<=yo)continue;return!1}}return!0}function Co(e){if(!e.endsWith(`-*`))return!1;e=e.slice(0,-2);let t=lo.exec(e);if(t===null)return!1;let n=t[0];return e.slice(n.length).length===0}var wo={"--alpha":To,"--spacing":Eo,"--theme":Do,theme:Oo};function To(e,t,n,...r){let[i,a]=O(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 K(i,a)}function Eo(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=qa.get(n);if(a){if(a[0]===0)return`0px`;if(a[0]===1)return i}return`calc(${i} * ${n})`}function Do(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=I(a);return No(e,o),F(e)}return a}function Oo(e,t,n,...r){n=Mo(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 ko=new RegExp(Object.keys(wo).map(e=>`${e}\\(`).join(`|`));function Ao(e,t){let n=0;return R(e,e=>{e.kind===`declaration`&&e.value&&ko.test(e.value)?(n|=8,e.value=jo(e.value,e,t)):e.kind===`at-rule`&&(e.name===`@media`||e.name===`@custom-media`||e.name===`@container`||e.name===`@supports`)&&ko.test(e.params)&&(n|=8,e.params=jo(e.params,e,t))}),n}function jo(e,t,n){let r=I(e);return R(r,e=>{if(e.kind===`function`&&e.value in wo){let r=O(F(e.nodes).trim(),`,`).map(e=>e.trim()),i=wo[e.value](n,t,...r);return L.Replace(I(i))}}),F(r)}function Mo(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 No(e,t){R(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 Po(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}else if(r!==i)return r-i}return e.length-t.length}function Fo(e){if(e[0]!==`[`||e[e.length-1]!==`]`)return null;let t=1,n=t,r=e.length-1;for(;Io(e.charCodeAt(t));)t++;for(n=t;t<r;t++){let n=e.charCodeAt(t);if(n===92)t++;else 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(;Io(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(;Io(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&&!Io(e.charCodeAt(t));)t++;s=e.slice(n,t)}for(;Io(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(;Io(e.charCodeAt(t));)t++;return t===r?{attribute:i,operator:a,quote:c,value:s,sensitivity:l}:null}function Io(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}function Lo(e){let t=!1;return R(e,{exit(e){if(e.kind!==`function`||e.value!==`calc`&&e.value!==``||e.nodes.length!==5||e.nodes[2].kind!==`word`||e.nodes[2].value!==`*`&&e.nodes[2].value!==`+`)return;let n=e.nodes[0],r=e.nodes[4];if(Ro(n,r)){t=!0;let i={kind:`function`,value:e.value,nodes:[r,e.nodes[1],e.nodes[2],e.nodes[3],n]};return L.ReplaceSkip(i)}}}),[t,e]}function Ro(e,t){let n=e.kind===`word`?qa.get(e.value):null,r=t.kind===`word`?qa.get(t.value):null;if(n!==null&&r===null)return!0;if(n===null&&r!==null)return!1;if(n!==null&&r!==null){let[e,t]=n,[i,a]=r;if(t===null&&a!==null)return!0;if(t!==null&&a===null)return!1;if(e!==i)return e-i>0;if(t!==a)return(t??``).localeCompare(a??``)>0}return F([e]).localeCompare(F([t]))>0}function zo(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 Bo(e,{theme:t},n){for(let t of n){let n=Go([t]);n&&e.theme.clearNamespace(`--${n}`,4)}for(let[n,r]of Vo(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=Go(n);t&&e.theme.add(`--${t}`,``+r,7)}if(Object.hasOwn(t,`fontFamily`)){{let n=zo(t.fontFamily.sans);n&&e.theme.hasDefault(`--font-sans`)&&(e.theme.add(`--default-font-family`,n,5),e.theme.add(`--default-font-feature-settings`,zo(t.fontFamily.sans,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-font-variation-settings`,zo(t.fontFamily.sans,`fontVariationSettings`)??`normal`,5))}{let n=zo(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`,zo(t.fontFamily.mono,`fontFeatureSettings`)??`normal`,5),e.theme.add(`--default-mono-font-variation-settings`,zo(t.fontFamily.mono,`fontVariationSettings`)??`normal`,5))}}return t}function Vo(e){let t=[];return Jo(e,[],(e,n)=>{if(Ko(e))return t.push([n,e]),1;if(qo(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 Ho={borderWidth:`border-width`,outlineWidth:`outline-width`,ringColor:`ring-color`,ringWidth:`ring-width`,transitionDuration:`transition-duration`,transitionTimingFunction:`transition-timing-function`},Uo={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`},Wo=/^[a-zA-Z0-9-_%/.]+$/;function Go(e){let t=Ho[e[0]];if(t&&e[1]===`DEFAULT`)return`default-${t}`;if(e[0]===`container`)return null;for(let t of e)if(!Wo.test(t))return null;let n=Uo[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 Ko(e){return typeof e==`number`||typeof e==`string`}function qo(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 Jo(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`)&&Jo(i,a,n)===2))return 2}}function Yo(e,t=null,n=!0){let[r,i]=Xo(I(e),t,n);return r?F(i):e}function Xo(e,t=null,n=!0){let r=!1;return R(e,{exit(e,i){if(e.kind===`word`&&e.value!==`0`){let a=Zo(e.value,t,n);if(a===null||a===e.value)return;if(a===`0`&&i.parent?.kind===`function`){let n=Zo(e.value,t,!1);return n===null?void 0:(r=!0,L.ReplaceSkip(P(n)))}return r=!0,L.ReplaceSkip(P(a))}if(e.kind===`function`&&(e.value===`calc`||e.value===``)){if(e.nodes.length!==5||e.nodes[2].kind!==`word`)return;let t=e.nodes[0],n=e.nodes[2].value,a=e.nodes[4],o=t.kind===`word`?qa.get(t.value):null,s=a.kind===`word`?qa.get(a.value):null;if(n===`*`&&(o?.[0]===0&&o?.[1]===null||s?.[0]===0&&s?.[1]===null))return r=!0,L.ReplaceSkip(P(`0`));if(n===`*`&&o?.[0]===0&&o?.[1]!==null&&s?.[1]===null)return r=!0,i.parent?.kind===`function`?L.ReplaceSkip(P(`0${o[1]}`)):L.ReplaceSkip(P(`0`));if(n===`*`&&s?.[0]===0&&s?.[1]!==null&&o?.[1]===null)return r=!0,i.parent?.kind===`function`?L.ReplaceSkip(P(`0${s[1]}`)):L.ReplaceSkip(P(`0`));if(n===`*`){if(o?.[0]===1&&o?.[1]===null)return r=!0,L.ReplaceSkip(a);if(s?.[0]===1&&s?.[1]===null)return r=!0,L.ReplaceSkip(t)}if(n===`*`||n===`+`){let i=o??s,c=o===null?t:s===null?a:null;if(i!==null&&c!==null&&c.kind===`function`&&(c.value===`calc`||c.value===``)&&c.nodes.length===5&&c.nodes[2].kind===`word`&&c.nodes[2].value===n){let t=c.nodes[0],a=c.nodes[4],o=t.kind===`word`?qa.get(t.value):null,s=a.kind===`word`?qa.get(a.value):null,l=o??s,u=o===null?t:s===null?a:null;if(l!==null&&u!==null){if(n===`*`&&!(i[1]===null&&l[1]===null||i[1]===null&&l[1]!==null||i[1]!==null&&l[1]===null)||n===`+`&&i[1]!==l[1])return;let t;switch(n){case`*`:t=`${i[0]*l[0]}${i[1]??l[1]??``}`;break;case`+`:t=`${i[0]+l[0]}${i[1]??l[1]??``}`;break;default:return}if(r=!0,n===`*`&&t===`1`)return L.ReplaceSkip(u);let a={kind:`function`,value:e.value,nodes:[P(t),e.nodes[1],e.nodes[2],e.nodes[3],u]};return L.ReplaceSkip(a)}}}if(o===null||s===null)return;switch(n){case`*`:if(o[1]===s[1]||o[1]===null&&s[1]!==null||o[1]!==null&&s[1]===null)return r=!0,L.ReplaceSkip(P(`${o[0]*s[0]}${o[1]??s[1]??``}`));break;case`+`:if(o[1]===s[1])return r=!0,L.ReplaceSkip(P(`${o[0]+s[0]}${o[1]??``}`));break;case`-`:if(o[1]===s[1])return r=!0,L.ReplaceSkip(P(`${o[0]-s[0]}${o[1]??``}`));break;case`/`:if(s[0]!==0&&(o[1]===null&&s[1]===null||o[1]!==null&&s[1]===null)){let e=o[0]/s[0];if(Math.round(e*100)/100!==e)break;return r=!0,L.ReplaceSkip(P(`${e}${o[1]??``}`))}}}}}),[r,e]}function Zo(e,t=null,n=!0){let r=qa.get(e);if(r===null)return null;let[i,a]=r;if(a===null)return`${i}`;if(i===0&&dr(e))return n?`0`:`0${a}`;if(!n)return`${e}`;switch(a.toLowerCase()){case`in`:return`${i*96}px`;case`cm`:return`${i*96/2.54}px`;case`mm`:return`${i*96/2.54/10}px`;case`q`:return`${i*96/2.54/10/4}px`;case`pc`:return`${i*96/6}px`;case`pt`:return`${i*96/72}px`;case`rem`:return t===null?null:`${i*t}px`;case`grad`:return`${i*.9}deg`;case`rad`:return`${i*180/Math.PI}deg`;case`turn`:return`${i*360}deg`;case`ms`:return`${i/1e3}s`;case`khz`:return`${i*1e3}hz`;default:return`${i}${a}`}}function Qo(e,t=`top`,n=`right`,r=`bottom`,i=`left`){return $o(`${e}-${t}`,`${e}-${n}`,`${e}-${r}`,`${e}-${i}`)}function $o(e=`top`,t=`right`,n=`bottom`,r=`left`){return{1:[[e,0],[t,0],[n,0],[r,0]],2:[[e,0],[t,1],[n,0],[r,1]],3:[[e,0],[t,1],[n,2],[r,1]],4:[[e,0],[t,1],[n,2],[r,3]]}}function es(e,t){return{1:[[e,0],[t,0]],2:[[e,0],[t,1]]}}var ts={inset:$o(),margin:Qo(`margin`),padding:Qo(`padding`),"scroll-margin":Qo(`scroll-margin`),"scroll-padding":Qo(`scroll-padding`),"border-width":Qo(`border`,`top-width`,`right-width`,`bottom-width`,`left-width`),"border-style":Qo(`border`,`top-style`,`right-style`,`bottom-style`,`left-style`),"border-color":Qo(`border`,`top-color`,`right-color`,`bottom-color`,`left-color`),gap:es(`row-gap`,`column-gap`),overflow:es(`overflow-x`,`overflow-y`),"overscroll-behavior":es(`overscroll-behavior-x`,`overscroll-behavior-y`)},ns={"inset-block":es(`top`,`bottom`),"inset-inline":es(`left`,`right`),"margin-block":es(`margin-top`,`margin-bottom`),"margin-inline":es(`margin-left`,`margin-right`),"padding-block":es(`padding-top`,`padding-bottom`),"padding-inline":es(`padding-left`,`padding-right`),"scroll-margin-block":es(`scroll-margin-top`,`scroll-margin-bottom`),"scroll-margin-inline":es(`scroll-margin-left`,`scroll-margin-right`),"scroll-padding-block":es(`scroll-padding-top`,`scroll-padding-bottom`),"scroll-padding-inline":es(`scroll-padding-left`,`scroll-padding-right`)},rs={"border-block":[`border-bottom`,`border-top`],"border-block-color":[`border-bottom-color`,`border-top-color`],"border-block-style":[`border-bottom-style`,`border-top-style`],"border-block-width":[`border-bottom-width`,`border-top-width`],"border-inline":[`border-left`,`border-right`],"border-inline-color":[`border-left-color`,`border-right-color`],"border-inline-style":[`border-left-style`,`border-right-style`],"border-inline-width":[`border-left-width`,`border-right-width`]};function is(e,t){if(t&2){if(e.property in ns){let t=O(e.value,` `);return ns[e.property][t.length]?.map(([n,r])=>H(n,t[r],e.important))}if(e.property in rs)return rs[e.property]?.map(t=>H(t,e.value,e.important))}if(e.property in ts){let t=O(e.value,` `);return ts[e.property][t.length]?.map(([n,r])=>H(n,t[r],e.important))}return null}function as(e,t){for(let t in e)delete e[t];return Object.assign(e,t)}function os(e){let t=[];for(let n of O(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 ss(e,t){let n=e;return n.storage[cs]??=ls(),n.storage[ps]??=ms(n),n.storage[vs]??=ys(),n.storage[xs]??=Ss(),n.storage[ws]??=Ts(),n.storage[Ms]??=Ns(n),n.storage[zs]??=Us(n,t),n.storage[sc]??=cc(n),n.storage[fc]??=pc(),n.storage[mc]??=hc(n),n.storage[gc]??=_c(n),n.storage[vc]??=yc(n),n.storage[bc]??=xc(n),n.storage[us]??=ds(n),n}var cs=Symbol();function ls(){return new N(e=>new N(t=>({rem:e,features:t})))}var us=Symbol();function ds(e){return new N(t=>{let n=e.storage[sc].get(t);return function(t,r){let i=typeof t==`string`?t:e.printCandidate(t),a=n.get(i);if(typeof a!=`string`)return!1;let o=typeof r==`string`?r:e.printCandidate(r),s=n.get(o);return typeof s==`string`&&a===s}})}function fs(e,t){let n=0;return t?.collapse&&(n|=1),t?.logicalToPhysical&&(n|=2),ss(e,t).storage[cs].get(t?.rem??null).get(n)}var ps=Symbol();function ms(e){return new N(t=>new N(n=>({features:n,designSystem:e,signatureOptions:t})))}function hs(e,t,n){let r=0;return n?.collapse&&(r|=1),ss(e).storage[ps].get(t).get(r)}function gs(e,t,n){let r=hs(e,fs(e,n),n),i=ss(e),a=/* @__PURE__ */ new Set,o=i.storage[vs].get(r);for(let e of t)a.add(o.get(e));return a.size<=1||!(r.features&1)?Array.from(a):_s(r,Array.from(a))}function _s(e,t){let n=e.designSystem,r=new N(e=>new N(e=>/* @__PURE__ */ new Set)),i=e.designSystem.theme.prefix?`${e.designSystem.theme.prefix}:`:``;for(let e of t){let t=O(e,`:`),n=t.pop(),a=n.endsWith(`!`);a&&(n=n.slice(0,-1));let o=t.length>0?`${t.join(`:`)}:`:``,s=a?`!`:``;r.get(o).get(s).add(`${i}${n}`)}let a=/* @__PURE__ */ new Set;for(let[e,t]of r.entries())for(let[n,r]of t.entries())for(let t of o(Array.from(r)))i&&t.startsWith(i)&&(t=t.slice(i.length)),a.add(`${e}${t}${n}`);return Array.from(a);function o(t){let r=e.signatureOptions,i=n.storage[mc].get(r),a=n.storage[fc].get(r),o=t.map(e=>i.get(e));if(o.some(e=>e.has(`line-height`))){let e=n.theme.keysInNamespaces([`--text`]);if(e.length>0){let t=/* @__PURE__ */ new Set,r=/* @__PURE__ */ new Set;for(let a of o)if(a.has(`line-height`))for(let o of a.get(`line-height`)){if(r.has(o))continue;r.add(o);let a=n.storage[zs]?.get(o)??null;if(a!==null){if(j(a)){t.add(a);for(let t of e)i.get(`text-${t}/${a}`)}else{t.add(o);for(let t of e)i.get(`text-${t}/[${o}]`)}}}let a=/* @__PURE__ */ new Set;for(let e of o)if(e.has(`font-size`)){for(let n of e.get(`font-size`))if(!a.has(n)){a.add(n);for(let e of t)j(e)?i.get(`text-[${n}]/${e}`):i.get(`text-[${n}]/[${e}]`)}}}}let s=new N(e=>{let t=new N(e=>new N(e=>/* @__PURE__ */ new Set)),r=new Set(i.get(e).keys());if(r.size===0)return t;for(let a of Ls(n,e))if(a.kind===`functional`&&a.value!==null){for(let e of n.utilities.keys(`functional`)){if(e===a.root)continue;let o=Rs(n,{...Da(a),root:e}),s=i.get(o);for(let[e,n]of s)if(r.has(e))for(let r of n)t.get(e).get(r).add(o)}return t}return t}),c=o.map((e,n)=>{let r=null;for(let i of e.keys()){let o=/* @__PURE__ */ new Set;for(let e of a.get(i).values())for(let t of e)o.add(t);for(let r of e.get(i))for(let e of s.get(t[n]).get(i).get(r))o.add(e);if(r=r===null?o:wc(r,o),r.size===0)return r}return r??/* @__PURE__ */ new Set}),l=new N(e=>/* @__PURE__ */ new Set([e]));for(let e=0;e<c.length;e++){let t=c[e];for(let n=e+1;n<c.length;n++){let r=c[n];for(let i of t)if(r.has(i)){l.get(e).add(n),l.get(n).add(e);break}}}if(l.size===0)return t;let u=new N(e=>e.split(`,`).map(Number));for(let e of l.values()){let t=Array.from(e).sort((e,t)=>e-t);u.get(t.join(`,`))}let d=new Set(t),f=/* @__PURE__ */ new Set;for(let e of u.values())for(let i of Cc(e)){if(i.some(e=>f.has(t[e])))continue;let e=i.flatMap(e=>c[e]).reduce(wc),a=n.storage[sc].get(r).get(i.map(e=>t[e]).sort((e,t)=>e.localeCompare(t)).join(` `));for(let o of e)if(n.storage[sc].get(r).get(o)===a){d.add(o);for(let e of i)t[e]!==o&&f.add(t[e]);break}}for(let e of f)d.delete(e);return Array.from(d)}}var vs=Symbol();function ys(){return new N(e=>{let t=e.designSystem,n=t.theme.prefix?`${t.theme.prefix}:`:``,r=t.storage[xs].get(e),i=t.storage[ws].get(e);return new N((e,a)=>{for(let o of t.parseCandidate(e)){let s=o.variants.slice().reverse().flatMap(e=>r.get(e)),c=o.important;if(c||s.length>0){let e=a.get(t.printCandidate({...o,variants:[],important:!1}));return t.theme.prefix!==null&&s.length>0&&(e=e.slice(n.length)),s.length>0&&(e=`${s.map(e=>t.printVariant(e)).join(`:`)}:${e}`),c&&(e+=`!`),t.theme.prefix!==null&&s.length>0&&(e=`${n}${e}`),e}let l=i.get(e);if(l!==e)return l}return e})})}var bs=[ks,ec,ic,Zs],xs=Symbol();function Ss(){return new N(e=>new N(t=>{let n=[t];for(let t of bs)for(let r of n.splice(0)){let i=t(Oa(r),e);Array.isArray(i)?n.push(...i):n.push(i)}return n}))}var Cs=[Ds,Os,As,ac,Ws,Ks,Xs,Qs,$s,oc],ws=Symbol();function Ts(){return new N(e=>{let t=e.designSystem;return new N(n=>{for(let r of t.parseCandidate(n)){let i=Da(r);for(let t of Cs)i=t(i,e);let a=t.printCandidate(i);if(n!==a)return a}return n})})}var Es=[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`];function Ds(e){if(e.kind===`static`&&e.root.startsWith(`bg-gradient-to-`)){let t=e.root.slice(15);return Es.includes(t)&&(e.root=`bg-linear-to-${t}`),e}return e}function Os(e,t){let n=t.designSystem.storage[Ms];if(e.kind===`arbitrary`){let[t,r]=n(e.value,+(e.modifier===null));t!==e.value&&(e.value=t,r!==null&&(e.modifier=r))}else if(e.kind===`functional`&&e.value?.kind===`arbitrary`){let[t,r]=n(e.value.value,+(e.modifier===null));t!==e.value.value&&(e.value.value=t,r!==null&&(e.modifier=r))}return e}function ks(e,t){let n=t.designSystem.storage[Ms],r=Is(e);for(let[e]of r)if(e.kind===`arbitrary`){let[t]=n(e.selector,2);t!==e.selector&&(e.selector=t)}else if(e.kind===`functional`&&e.value?.kind===`arbitrary`){let[t]=n(e.value.value,2);t!==e.value.value&&(e.value.value=t)}return e}function As(e,t){return e.kind===`arbitrary`?e.value=js(e.value,t.designSystem):e.kind===`functional`&&e.value?.kind===`arbitrary`&&(e.value.value=js(e.value.value,t.designSystem)),e}function js(e,t){let n=t.theme.prefix?`--${t.theme.prefix}-spacing`:`--spacing`,r=I(e);return R(r,e=>{if(e.kind===`function`&&e.value===`calc`&&e.nodes.length===5&&e.nodes[2].kind===`word`&&e.nodes[2].value===`*`&&e.nodes[0].kind===`function`&&e.nodes[0].value===`var`&&e.nodes[0].nodes.length===1&&e.nodes[0].nodes[0].kind===`word`&&e.nodes[0].nodes[0].value===n)return L.Replace(I(`--spacing(${F([e.nodes[4]])})`))}),F(r)}var Ms=Symbol();function Ns(e){return t(e);function t(e){function t(e,t=0){let n=I(e);if(t&2)return[Ps(n,i),null];let a=0,o=0;if(R(n,e=>{e.kind===`function`&&e.value===`theme`&&(a+=1,R(e.nodes,e=>e.kind===`separator`&&e.value.includes(`,`)?L.Stop:e.kind===`word`&&e.value===`/`?(o+=1,L.Stop):L.Skip))}),a===0)return[e,null];if(o===0)return[Ps(n,r),null];if(o>1)return[Ps(n,i),null];let s=null;return[Ps(n,(e,a)=>{let o=O(e,`/`).map(e=>e.trim());if(o.length>2)return null;if(n.length===1&&o.length===2&&t&1){let[t,n]=o;if(/^\d+%$/.test(n))s={kind:`named`,value:n.slice(0,-1)};else if(/^0?\.\d+$/.test(n)){let e=Number(n)*100;s={kind:Number.isInteger(e)?`named`:`arbitrary`,value:e.toString()}}else s={kind:`arbitrary`,value:n};e=t}return r(e,a)||i(e,a)}),s]}function n(t,n=!0){let r=`--${Go(os(t))}`;return e.theme.get([r])?n&&e.theme.prefix?`--${e.theme.prefix}-${r.slice(2)}`:r:null}function r(t,r){let i=n(t);if(i)return r?`var(${i}, ${r})`:`var(${i})`;let a=os(t);if(a[0]===`spacing`&&e.theme.get([`--spacing`])){let e=a[1];return j(e)?`--spacing(${e})`:null}return null}function i(e,t){let r=O(e,`/`).map(e=>e.trim());e=r.shift();let i=n(e,!1);if(!i)return null;let a=r.length>0?`/${r.join(`/`)}`:``;return t?`--theme(${i}${a}, ${t})`:`--theme(${i}${a})`}return t}}function Ps(e,t){return R(e,(e,n)=>{if(e.kind===`function`&&e.value===`theme`){if(e.nodes.length<1)return;e.nodes[0].kind===`separator`&&e.nodes[0].value.trim()===``&&e.nodes.shift();let r=e.nodes[0];if(r.kind!==`word`)return;let i=r.value,a=1;for(let t=a;t<e.nodes.length&&!e.nodes[t].value.includes(`,`);t++)i+=F([e.nodes[t]]),a=t+1;i=Fs(i);let o=e.nodes.slice(a+1),s=o.length>0?t(i,F(o)):t(i);if(s===null)return;{let e=n.index-1;for(;e!==-1;){let t=n.siblings[e];if(t.kind===`separator`&&t.value.trim()===``)--e;else{/^[-+*/]$/.test(t.value.trim())&&(s=`(${s})`);break}}}return L.Replace(I(s))}}),F(e)}function Fs(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*Is(e){function*t(e,n=null){yield[e,n],e.kind===`compound`&&(yield*t(e.variant,e))}yield*t(e,null)}function Ls(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function Rs(e,t){let n=e.printCandidate(t);return e.theme.prefix&&n.startsWith(`${e.theme.prefix}:`)?n.slice(e.theme.prefix.length+1):n}var zs=Symbol(),Bs=1536,Vs=Bs/16;function Hs(e,t,n){let r=t.resolveThemeValue(`--spacing`);if(r===void 0)return!1;let i=qa.get(Yo(r,n));if(i===null)return!1;let[a,o]=i,s=e*a;return o===`px`?s<=Bs:o===`rem`&&s<=Vs}function Us(e,t){let n=e.resolveThemeValue(`--spacing`);if(n===void 0)return null;n=Yo(n,t?.rem??null);let r=qa.get(n);if(!r)return null;let[i,a]=r;return new N(e=>{if(i===0)return null;let n=qa.get(Yo(e,t?.rem??null));if(!n)return null;let[r,o]=n;return o===a?r/i:null})}function Ws(e,t){if(e.kind!==`arbitrary`&&(e.kind!==`functional`||e.value?.kind!==`arbitrary`))return e;let n=t.designSystem,r=n.storage[gc].get(t.signatureOptions),i=n.storage[sc].get(t.signatureOptions),a=n.storage[us].get(t.signatureOptions),o=n.printCandidate(e),s=i.get(o);if(typeof s!=`string`)return e;for(let t of c(s,e))if(a(e,t)&&Gs(n,e,t))return t;return e;function*c(e,a){let o=r.get(e);if(o.length>1){let e;for(let t of o)if(t[0]!==`-`){if(e)return;e=t}if(e)for(let t of Ls(n,e))yield t}else{if(o.length===0&&a.modifier){let e={...a,modifier:null},t=i.get(n.printCandidate(e));if(typeof t==`string`)for(let n of c(t,e))yield Object.assign({},n,{modifier:a.modifier})}if(o.length===1)for(let e of Ls(n,o[0]))yield e;else if(o.length===0){let e=a.kind===`arbitrary`?a.value:a.value?.value??null;if(e===null)return;if(t.signatureOptions.rem!==null&&a.kind===`functional`&&a.value?.kind===`arbitrary`){let r=n.storage[zs]?.get(e)??null;r!==null&&j(r)&&Hs(r,n,t.signatureOptions.rem)&&(yield Object.assign({},a,{value:{kind:`named`,value:r,fraction:null}}))}let r=n.storage[zs]?.get(e)??null,i=``;r!==null&&r<0&&(i=`-`,r=Math.abs(r));for(let o of Array.from(n.utilities.keys(`functional`)).sort((e,t)=>+(e[0]===`-`)-(t[0]===`-`))){i&&(o=`${i}${o}`);for(let t of Ls(n,`${o}-${e}`))yield t;if(a.modifier)for(let t of Ls(n,`${o}-${e}${a.modifier}`))yield t;if(r!==null&&j(r)&&Hs(r,n,t.signatureOptions.rem)){for(let e of Ls(n,`${o}-${r}`))yield e;if(a.modifier)for(let e of Ls(n,`${o}-${r}${Pa(a.modifier)}`))yield e}for(let t of Ls(n,`${o}-[${e}]`))yield t;if(a.modifier)for(let t of Ls(n,`${o}-[${e}]${Pa(a.modifier)}`))yield t}}}}}function Gs(e,t,n){let r=null;if(t.kind===`functional`&&t.value?.kind===`arbitrary`&&t.value.value.includes(`var(--`)?r=t.value.value:t.kind===`arbitrary`&&t.value.includes(`var(--`)&&(r=t.value),r===null)return!0;let i=e.candidatesToCss([e.printCandidate(n)]).join(`
|
|
54
|
+
`),a=!0;return R(I(r),e=>{if(e.kind===`function`&&e.value===`var`){let t=e.nodes[0].value;if(!RegExp(`var\\(${t}[,)]\\s*`,`g`).test(i)||i.includes(`${t}:`))return a=!1,L.Stop}}),a}function Ks(e,t){if(e.kind!==`functional`||e.value?.kind!==`named`)return e;let n=t.designSystem,r=n.storage[gc].get(t.signatureOptions),i=n.storage[sc].get(t.signatureOptions),a=n.storage[us].get(t.signatureOptions),o=n.printCandidate(e),s=i.get(o);if(typeof s!=`string`)return e;for(let t of c(s,e))if(a(e,t))return t;return e;function*c(e,t){let a=r.get(e);if(a.length>1){let e;for(let t of a)if(t[0]!==`-`){if(e)return;e=t}if(e)for(let t of Ls(n,e))yield t}else{if(a.length===0&&t.modifier){let e={...t,modifier:null},r=i.get(n.printCandidate(e));if(typeof r==`string`)for(let n of c(r,e))yield Object.assign({},n,{modifier:t.modifier})}if(a.length===1)for(let e of Ls(n,a[0]))yield e}}}var qs=/* @__PURE__ */ new Map([[`order-none`,`order-0`],[`break-words`,`wrap-break-word`],[`overflow-ellipsis`,`text-ellipsis`]]),Js=/* @__PURE__ */ new Map([[/^(-)?start-(.*?)$/,`$1inset-s-$2`],[/^(-)?end-(.*?)$/,`$1inset-e-$2`]]);function*Ys(e){let t=qs.get(e);t&&(yield t);for(let[t,n]of Js){let r=e.replace(t,n);r!==e&&(yield r)}}function Xs(e,t){let n=t.designSystem,r=n.storage[us].get(t.signatureOptions),i=Rs(n,e);for(let t of Ys(i)){if(!r(e,t))continue;let[i]=Ls(n,t);return i}return e}function Zs(e,t){let n=t.designSystem,r=n.storage[vc],i=n.storage[bc],a=Is(e);for(let[e]of a){if(e.kind===`compound`)continue;let t=n.printVariant(e),a=r.get(t);if(typeof a!=`string`)continue;let o=i.get(a);if(o.length!==1)continue;let s=o[0],c=n.parseVariant(s);c!==null&&as(e,c)}return e}function Qs(e,t){let n=t.designSystem,r=n.storage[sc].get(t.signatureOptions);if(e.kind===`functional`&&e.value?.kind===`arbitrary`&&e.value.dataType!==null){let t=n.printCandidate({...e,value:{...e.value,dataType:null}});r.get(n.printCandidate(e))===r.get(t)&&(e.value.dataType=null)}return e}function $s(e,t){if(e.kind!==`functional`||e.value?.kind!==`arbitrary`)return e;let n=t.designSystem,r=n.storage[sc].get(t.signatureOptions),i=r.get(n.printCandidate(e));if(i===null)return e;for(let t of tc(e))if(r.get(n.printCandidate({...e,value:t}))===i)return e.value=t,e;return e}function ec(e){let t=Is(e);for(let[e]of t)if(e.kind===`functional`&&e.root===`data`&&e.value?.kind===`arbitrary`&&!e.value.value.includes(`=`))e.value={kind:`named`,value:e.value.value};else if(e.kind===`functional`&&e.root===`aria`&&e.value?.kind===`arbitrary`&&(e.value.value.endsWith(`=true`)||e.value.value.endsWith(`="true"`)||e.value.value.endsWith(`='true'`))){let[t,n]=O(e.value.value,`=`);if(t[t.length-1]===`~`||t[t.length-1]===`|`||t[t.length-1]===`^`||t[t.length-1]===`$`||t[t.length-1]===`*`)continue;e.value={kind:`named`,value:e.value.value.slice(0,e.value.value.indexOf(`=`))}}else e.kind===`functional`&&e.root===`supports`&&e.value?.kind===`arbitrary`&&/^[a-z-][a-z0-9-]*$/i.test(e.value.value)&&(e.value={kind:`named`,value:e.value.value});return e}function*tc(e,t=e.value?.value??``,n=/* @__PURE__ */ new Set){if(n.has(t))return;if(n.add(t),yield{kind:`named`,value:t,fraction:null},t.endsWith(`%`)&&j(t.slice(0,-1))&&(yield{kind:`named`,value:t.slice(0,-1),fraction:null}),t.includes(`/`)){let[e,n]=t.split(`/`);A(e)&&A(n)&&(yield{kind:`named`,value:e,fraction:`${e}/${n}`})}let r=/* @__PURE__ */ new Set;for(let e of t.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))r.add(e[0].trim());let i=Array.from(r).sort((e,t)=>e.length-t.length);for(let t of i)yield*tc(e,t,n)}function nc(e){return e.length!==1||e[0].kind!==`list`}function rc(e){return e.value[0]===`[`&&e.value[e.value.length-1]===`]`}function ic(e,t){let n=[e],r=t.designSystem,i=r.storage[vc],a=Is(e);for(let[e,t]of a)if(e.kind===`compound`&&(e.root===`has`||e.root===`not`||e.root===`in`)&&e.modifier!==null&&`modifier`in e.variant&&(e.variant.modifier=e.modifier,e.modifier=null),e.kind===`arbitrary`){if(e.relative)continue;let n=ui(e.selector);if(!nc(n))continue;if(n.length===1&&n[0].kind===`complex`&&(n=n[0].nodes),t===null&&n.length===3&&n[0].kind===`selector`&&n[0].value===`&`&&n[1].kind===`combinator`&&n[1].value===`>`&&n[2].kind===`selector`&&n[2].value===`*`){as(e,r.parseVariant(`*`));continue}if(t===null&&n.length===3&&n[0].kind===`selector`&&n[0].value===`&`&&n[1].kind===`combinator`&&n[1].value===` `&&n[2].kind===`selector`&&n[2].value===`*`){as(e,r.parseVariant(`**`));continue}if(t===null&&n.length===1&&n[0].kind===`compound`&&n[0].nodes.length===2&&n[0].nodes[0].kind===`selector`&&n[0].nodes[0].value===`&`&&n[0].nodes[1].kind===`function`&&n[0].nodes[1].value===`:has`&&n[0].nodes[1].nodes.length===1&&n[0].nodes[1].nodes[0].kind===`selector`){as(e,r.parseVariant(`has-[${Wr(n[0].nodes[1].nodes,!0)}]`));continue}if(t===null&&n.length===3&&n[0].kind===`selector`&&n[1].kind===`combinator`&&n[1].value===` `&&n[2].kind===`selector`&&n[2].value===`&`){n.pop(),n.pop(),as(e,r.parseVariant(`in-[${Wr(n,!0)}]`));continue}if(t===null&&n[0].kind===`selector`&&(n[0].value===`@media`||n[0].value===`@supports`)){let t=i.get(r.printVariant(e)),a=I(Wr(n,!0)),o=!1;if(R(a,e=>{if(e.kind===`word`&&e.value===`not`)return o=!0,L.Replace([])}),a=I(F(a)),R(a,e=>{e.kind===`separator`&&e.value!==` `&&e.value.trim()===``&&(e.value=` `)}),o){let n=r.parseVariant(`not-[${F(a)}]`);if(n===null)continue;if(t===i.get(r.printVariant(n))){as(e,n);continue}}}let a=null;t===null&&n.length===3&&n[0].kind===`selector`&&n[0].value===`&`&&n[1].kind===`combinator`&&n[1].value===`>`&&n[2].kind===`selector`&&(n[2].value[0]===`:`||rc(n[2]))&&(n=[n[2]],a=r.parseVariant(`*`)),t===null&&n.length===3&&n[0].kind===`selector`&&n[0].value===`&`&&n[1].kind===`combinator`&&n[1].value===` `&&n[2].kind===`selector`&&(n[2].value[0]===`:`||rc(n[2]))&&(n=[n[2]],a=r.parseVariant(`**`));let o=n;if(R(o,{enter(e){if(e.kind===`selector`&&e.value===`&`)return L.Replace([]);if(e.kind===`function`)return L.Skip},exit(e){if(e.kind===`compound`&&e.nodes.length===1)return L.ReplaceSkip(e.nodes)}}),o.length!==1)continue;let s=o[0];if(s.kind===`function`&&s.value===`:is`){if(!nc(s.nodes)||s.nodes.length!==1||s.nodes[0].kind===`selector`&&!rc(s.nodes[0]))continue;s=s.nodes[0]}if(s.kind===`function`&&s.value[0]===`:`||s.kind===`selector`&&s.value[0]===`:`){let t=s,n=!1;if(t.kind===`function`&&t.value===`:not`){if(n=!0,t.nodes.length!==1||t.nodes[0].kind!==`selector`&&t.nodes[0].kind!==`function`||t.nodes[0].value[0]!==`:`)continue;t=t.nodes[0]}let o=(a=>{if(a===`:nth-child`&&t.kind===`function`&&t.nodes.length===1&&t.nodes[0].kind===`value`&&t.nodes[0].value===`odd`)return n?(n=!1,`even`):`odd`;if(a===`:nth-child`&&t.kind===`function`&&t.nodes.length===1&&t.nodes[0].kind===`value`&&t.nodes[0].value===`even`)return n?(n=!1,`odd`):`even`;for(let[e,n]of[[`:nth-child`,`nth`],[`:nth-last-child`,`nth-last`],[`:nth-of-type`,`nth-of-type`],[`:nth-last-of-type`,`nth-of-last-type`]])if(a===e&&t.kind===`function`&&t.nodes.length===1)return t.nodes.length===1&&t.nodes[0].kind===`value`&&A(t.nodes[0].value)?`${n}-${t.nodes[0].value}`:`${n}-[${Wr(t.nodes,!0)}]`;return n&&i.get(r.printVariant(e))===i.get(`not-[${a}]`)?`[&${a}]`:null})(t.value);if(o===null){if(a)return as(e,{kind:`arbitrary`,selector:s.value,relative:!1}),[a,e];continue}n&&(o=`not-${o}`);let c=r.parseVariant(o);if(c===null)continue;as(e,c)}else if(s.kind===`selector`&&rc(s)){let t=Fo(s.value);if(t===null)continue;if(t.attribute.startsWith(`data-`)){let n=t.attribute.slice(5);as(e,{kind:`functional`,root:`data`,modifier:null,value:t.value===null?{kind:`named`,value:n}:{kind:`arbitrary`,value:`${n}${t.operator}${t.quote??``}${t.value}${t.quote??``}${t.sensitivity?` ${t.sensitivity}`:``}`}})}else if(t.attribute.startsWith(`aria-`)){let n=t.attribute.slice(5);as(e,{kind:`functional`,root:`aria`,modifier:null,value:t.value===null?{kind:`arbitrary`,value:n}:t.operator===`=`&&t.value===`true`&&t.sensitivity===null?{kind:`named`,value:n}:{kind:`arbitrary`,value:`${t.attribute}${t.operator}${t.quote??``}${t.value}${t.quote??``}${t.sensitivity?` ${t.sensitivity}`:``}`}})}else as(e,{kind:`arbitrary`,selector:s.value,relative:!1})}if(a)return[a,e]}return n}function ac(e,t){if(e.kind!==`functional`||e.value?.kind!==`arbitrary`)return e;let n=t.designSystem.storage[us].get(t.signatureOptions),r=I(e.value.value);if(r.length===1&&r[0].kind===`function`&&r[0].value===`calc`){let[t,i]=Xo(r,null,!1);if(t){let t=Da(e);t.value.value=F(i),n(e,t)&&(e=t,r=i)}}if(e.root[0]===`-`){if(r.length===1&&r[0].kind===`function`&&r[0].value===`var`)return e;let[t,i]=Xo(I(`calc(${e.value.value} * -1)`),null,!1);if(t){let t=Da(e);t.root=t.root.slice(1),t.value.value=F(i),n(e,t)&&(e=t,r=i)}}if(r.length===1&&r[0].kind===`function`&&r[0].value===`calc`){let t=r[0].nodes;if(t.length===5&&t[1].kind===`separator`&&t[1].value===` `&&t[2].kind===`word`&&t[2].value===`*`&&t[3].kind===`separator`&&t[3].value===` `){let r=t[4].kind===`word`&&t[4].value===`-1`?t[0]:t[0].kind===`word`&&t[0].value===`-1`?t[4]:null;if(r){let t=Da(e);t.root=`-${e.root}`,t.value.value=F([r]),n(e,t)&&(e=t)}}}return e}function oc(e,t){if(e.kind!==`functional`&&e.kind!==`arbitrary`||e.modifier===null)return e;let n=t.designSystem,r=n.storage[sc].get(t.signatureOptions),i=r.get(n.printCandidate(e)),a=e.modifier;if(i===r.get(n.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let t={kind:`named`,value:a.value.endsWith(`%`)?a.value.includes(`.`)?`${Number(a.value.slice(0,-1))}`:a.value.slice(0,-1):a.value,fraction:null};if(i===r.get(n.printCandidate({...e,modifier:t})))return e.modifier=t,e}{let t={kind:`named`,value:`${parseFloat(a.value)*100}`,fraction:null};if(i===r.get(n.printCandidate({...e,modifier:t})))return e.modifier=t,e}return e}var sc=Symbol();function cc(e){return new N(t=>new N(n=>{try{n=e.theme.prefix&&!n.startsWith(e.theme.prefix)?`${e.theme.prefix}:${n}`:n;let r=[z(`.x`,[B(`@apply`,n)])];return Sc(e,()=>{for(let t of e.parseCandidate(n))e.compileAstNodes(t,1);Kc(r,e)}),uc(e,r,t),fa(r)}catch{return Symbol()}}))}var lc=/#(?:[a-f0-9]{8}|[a-f0-9]{6}|[a-f0-9]{4}|[a-f0-9]{3})/gi;function uc(e,t,n){let{rem:r}=n;return R(t,{enter(t,i){if(t.kind===`declaration`){if(t.value===void 0||t.property===`--tw-sort`||t.property.startsWith(`--tw-`)&&i.siblings.some(e=>e.kind===`declaration`&&t.value===e.value&&t.important===e.important&&!e.property.startsWith(`--tw-`)))return L.Replace([]);if(n.features&1){let e=is(t,n.features);if(e)return L.Replace(e)}t.value.includes(`var(`)&&(t.value=dc(t.value,e));let[a,o]=Xo(I(t.value),r),[s,c]=Lo(o);(a||s)&&(t.value=F(c)),t.value=La(t.value)}else{if(t.kind===`context`||t.kind===`at-root`)return L.Replace(t.nodes);if(t.kind===`comment`||t.kind===`at-rule`&&t.name===`@property`)return L.Replace([])}},exit(e){if(e.kind===`rule`||e.kind===`at-rule`){if(e.nodes.length>1){let t=/* @__PURE__ */ new Set;for(let n=e.nodes.length-1;n>=0;n--){let r=e.nodes[n];r.kind===`declaration`&&r.value!==void 0&&(t.has(r.property)&&e.nodes.splice(n,1),t.add(r.property))}}e.nodes.sort((e,t)=>e.kind!==`declaration`||t.kind!==`declaration`?0:e.property.localeCompare(t.property))}else if(e.kind===`declaration`&&e.value){if(e.property[0]===`-`&&e.property[1]===`-`)return;lc.lastIndex=0,e.value=e.value.replace(lc,e=>e.toLowerCase())}}}),t}function dc(e,t){let n=!1,r=I(e),i=/* @__PURE__ */ new Set;return R(r,e=>{if(e.kind!==`function`||e.value!==`var`||e.nodes.length!==1&&e.nodes.length<3)return;let r=e.nodes[0].value;t.theme.prefix&&r.startsWith(`--${t.theme.prefix}-`)&&(r=r.slice(`--${t.theme.prefix}-`.length));let a=t.resolveThemeValue(r);if(!i.has(r)&&(i.add(r),a!==void 0&&(e.nodes.length===1&&(n=!0,e.nodes.push(...I(`,${a}`))),e.nodes.length>=3))&&F(e.nodes)===`${e.nodes[0].value},${a}`)return n=!0,L.Replace(I(a))}),n?F(r):e}var fc=Symbol();function pc(){return new N(e=>new N(e=>new N(e=>/* @__PURE__ */ new Set)))}var mc=Symbol();function hc(e){return new N(t=>new N(n=>{let r=new N(e=>/* @__PURE__ */ new Set);e.theme.prefix&&!n.startsWith(e.theme.prefix)&&(n=`${e.theme.prefix}:${n}`);let i=e.parseCandidate(n);if(i.length===0)return r;try{R(uc(e,e.compileAstNodes(i[0]).map(e=>W(e.node)),t),i=>{i.kind===`declaration`&&(r.get(i.property).add(i.value),e.storage[fc].get(t).get(i.property).get(i.value).add(n))})}catch{}return r}))}var gc=Symbol();function _c(e){return new N(t=>{let n=e.storage[sc].get(t),r=new N(()=>[]);for(let[i,a]of e.getClassList()){let o=n.get(i);if(typeof o==`string`){if(i[0]===`-`&&i.endsWith(`-0`)){let e=n.get(i.slice(1));if(typeof e==`string`&&o===e)continue}r.get(o).push(i),e.storage[mc].get(t).get(i);for(let o of a.modifiers){if(j(o))continue;let a=`${i}/${o}`,s=n.get(a);typeof s==`string`&&(r.get(s).push(a),e.storage[mc].get(t).get(a))}}}return r})}var vc=Symbol();function yc(e){return new N(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let n=[z(`.x`,[B(`@apply`,`${t}:flex`)])];return Kc(n,e),R(n,e=>{if(e.kind===`at-rule`&&e.params.includes(` `))e.params=e.params.replaceAll(` `,``);else if(e.kind===`rule`){let t=ui(e.selector),n=!1;R(t,e=>{if(e.kind===`list`||e.kind===`combinator`)n=!0;else if(e.kind===`function`&&e.value===`:is`){if(e.nodes.length===1)return n=!0,L.Replace(e.nodes);if(e.nodes.length===2&&e.nodes[0].kind===`selector`&&e.nodes[0].value===`*`&&e.nodes[1].kind===`selector`&&e.nodes[1].value[0]===`:`)return n=!0,L.Replace(e.nodes[1])}else e.kind===`function`&&e.value[0]===`:`&&e.nodes[0]?.kind===`selector`&&e.nodes[0]?.value[0]===`:`&&(n=!0,e.nodes.unshift({kind:`selector`,value:`*`}))}),n&&(e.selector=Wr(t,!0))}}),fa(n)}catch{return Symbol()}})}var bc=Symbol();function xc(e){let t=e.storage[vc],n=new N(()=>[]);for(let[r,i]of e.variants.entries())if(i.kind===`static`){let e=t.get(r);if(typeof e!=`string`)continue;n.get(e).push(r)}return n}function Sc(e,t){let n=e.theme.values.get,r=/* @__PURE__ */ new Set;e.theme.values.get=t=>{let i=n.call(e.theme.values,t);return i===void 0||i.options&1&&(r.add(i),i.options&=-2),i};try{return t()}finally{e.theme.values.get=n;for(let e of r)e.options|=1}}function*Cc(e){let t=e.length,n=1n<<BigInt(t);for(let r=t;r>=2;r--){let i=(1n<<BigInt(r))-1n;for(;i<n;){let n=[];for(let r=0;r<t;r++)i>>BigInt(r)&1n&&n.push(e[r]);yield n;let r=i&-i,a=i+r;i=((a^i)>>2n)/r|a}}}function wc(e,t){if(typeof e.intersection==`function`)return e.intersection(t);if(e.size===0||t.size===0)return/* @__PURE__ */ new Set;let n=new Set(e);for(let e of t)n.has(e)||n.delete(e);return n}var Tc=/^\d+\/\d+$/;function Ec(e){let t=new N(e=>({name:e,utility:e,fraction:!1,modifiers:[]}));for(let n of e.utilities.keys(`static`)){if(e.utilities.getCompletions(n).length===0)continue;let r=t.get(n);r.fraction=!1,r.modifiers=[]}for(let n of e.utilities.keys(`functional`)){let r=e.utilities.getCompletions(n);for(let e of r)for(let r of e.values){let i=r!==null&&Tc.test(r),a=r===null?n:`${n}-${r}`,o=t.get(a);if(o.utility=n,o.fraction||=i,o.modifiers.push(...e.modifiers),e.supportsNegative){let r=t.get(`-${a}`);r.utility=`-${n}`,r.fraction||=i,r.modifiers.push(...e.modifiers)}o.modifiers=Array.from(new Set(o.modifiers))}}if(t.size===0)return[];let n=Array.from(t.values());return n.sort((e,t)=>Po(e.name,t.name)),Dc(n)}function Dc(e){let t=[],n=null,r=/* @__PURE__ */ new Map,i=new N(()=>[]);for(let a of e){let{utility:e,fraction:o}=a;n||(n={utility:e,items:[]},r.set(e,n)),e!==n.utility&&(t.push(n),n={utility:e,items:[]},r.set(e,n)),o?i.get(e).push(a):n.items.push(a)}n&&t[t.length-1]!==n&&t.push(n);for(let[e,t]of i){let n=r.get(e);n&&n.items.push(...t)}let a=[];for(let e of t)for(let t of e.items)a.push([t.name,{modifiers:t.modifiers}]);return a}function Oc(e){let t=[];for(let[n,r]of e.variants.entries()){let i=function({value:t,modifier:r}={}){let i=n;t&&(i+=a?`-${t}`:t),r&&(i+=`/${r}`);let o=e.parseVariant(i);if(!o)return[];let s=z(`.__placeholder__`,[]);if(Vc(s,o,e.variants)===null)return[];let c=[];return R(s.nodes,{exit(e,t){if(e.kind!==`rule`&&e.kind!==`at-rule`||e.nodes.length>0)return;let n=t.path();n.push(e),n.sort((e,t)=>{let n=e.kind===`at-rule`,r=t.kind===`at-rule`;return n&&!r?-1:!n&&r?1:0});let r=n.flatMap(e=>e.kind===`rule`?e.selector===`&`?[]:[e.selector]:e.kind===`at-rule`?[`${e.name} ${e.params}`]:[]),i=``;for(let e=r.length-1;e>=0;e--)i=i===``?r[e]:`${r[e]} { ${i} }`;c.push(i)}}),c};if(r.kind===`arbitrary`)continue;let a=n!==`@`,o=e.variants.getCompletions(n);switch(r.kind){case`static`:t.push({name:n,values:o,isArbitrary:!1,hasDash:a,selectors:i});break;case`functional`:t.push({name:n,values:o,isArbitrary:!0,hasDash:a,selectors:i});break;case`compound`:t.push({name:n,values:o,isArbitrary:!0,hasDash:a,selectors:i})}}return t}function kc(e,t){let{astNodes:n,nodeSorting:r}=zc(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])}var Ac=/^@?[a-z0-9][a-zA-Z0-9_-]*(?<![_-])$/,jc=class{compareFns=/* @__PURE__ */ new Map;variants=/* @__PURE__ */ new Map;completions=/* @__PURE__ */ 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;R(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(W);i&&Ic(r,n),Fc(r,e.nodes),e.nodes=r},{compounds:Mc(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:Mc([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 Mc(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}else{if(n.includes(`::`))return 0;t|=2}return t}function Nc(e){let t=new jc;function n(e,n,{compounds:r}={}){r??=Mc(n),t.static(e,e=>{e.nodes=n.map(t=>V(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=I(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),F(e)):e.length>=5&&e[0].kind===`word`&&e[2].kind===`word`&&e[2].value===`not`&&e[4].kind===`function`?(e.splice(2,2),F(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`}),F(e)):`not ${t}`}{t=t.trim();let e=O(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=O(e.params,`,`);return n.length>1?null:(n=r(e.name,n),B(e.name,n.join(`, `)))}return null}function o(e){return e.includes(`::`)?null:`&:not(${O(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(R([e],(t,r)=>{if(t.kind!==`rule`&&t.kind!==`at-rule`||t.nodes.length>0)return L.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 L.Stop;let l=[];for(let e of s){let t=o(e.selector);if(!t)return n=!1,L.Stop;l.push(z(t,[]))}for(let e of i){let t=a(e);if(!t)return n=!1,L.Stop;l.push(t)}return Object.assign(e,z(`&`,l)),n=!0,L.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(R([t],(e,t)=>{if(e.kind!==`rule`)return L.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,L.Stop;let n=e.selector.replaceAll(`&`,r);O(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(R([t],(e,t)=>{if(e.kind!==`rule`)return L.Continue;for(let e of t.path())if(e.kind===`rule`)return i=!1,L.Stop;let n=e.selector.replaceAll(`&`,r);O(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 U([B(`@property`,`--tw-content`,[H(`syntax`,`"*"`),H(`initial-value`,`""`),H(`inherits`,`false`)])])};t.static(`before`,t=>{t.nodes=[z(`&::before`,[e(),H(`content`,`var(--tw-content)`),...t.nodes])]},{compounds:0}),t.static(`after`,t=>{t.nodes=[z(`&::after`,[e(),H(`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=[z(`&:hover`,[B(`@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(R([e],(e,t)=>{if(e.kind!==`rule`)return L.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,L.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(R([e],(e,t)=>{if(e.kind!==`rule`)return L.Continue;for(let e of t.path())if(e.kind===`rule`)return n=!1,L.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-${Pc(t.value.value)}]`;if(Fo(n)===null)return null;e.nodes=[z(`&${n}`,e.nodes)]}else{let n=`[aria-${t.value.value}="true"]`;if(Fo(n)===null)return null;e.nodes=[z(`&${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-${Pc(t.value.value)}]`;if(Fo(n)===null)return null;e.nodes=[z(`&${n}`,e.nodes)]}),t.functional(`nth`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!A(t.value.value))return null;e.nodes=[z(`&:nth-child(${t.value.value})`,e.nodes)]}),t.functional(`nth-last`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!A(t.value.value))return null;e.nodes=[z(`&:nth-last-child(${t.value.value})`,e.nodes)]}),t.functional(`nth-of-type`,(e,t)=>{if(!t.value||t.modifier||t.value.kind===`named`&&!A(t.value.value))return null;e.nodes=[z(`&: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`&&!A(t.value.value))return null;e.nodes=[z(`&: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;/^[\w-]*\s*\(/.test(n)?e.nodes=[B(`@supports`,n.replace(/\b(and|or|not)\b/g,` $1 `),e.nodes)]:(n.includes(`:`)||(n=`${n}: var(--tw)`),(n[0]!==`(`||n[n.length-1]!==`)`)&&(n=`(${n})`),e.nodes=[B(`@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:Ga(i,a,n)};{let r=e.namespace(`--breakpoint`),i=new N(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=[B(`@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=[B(`@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=[B(`@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 N(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=[B(`@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=[B(`@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=[B(`@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 Pc(e){if(e.includes(`=`)){let[t,...n]=O(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 Fc(e,t){R(e,e=>{if(e.kind===`at-rule`&&e.name===`@slot`)return L.ReplaceSkip(t);if(e.kind===`at-rule`&&(e.name===`@keyframes`||e.name===`@property`))return Object.assign(e,U([B(e.name,e.params,e.nodes)])),L.Skip})}function Ic(e,t){let n=0;return R(e,e=>{if(e.kind!==`at-rule`||e.name!==`@variant`)return;let r=[],i=O(e.params,`,`);for(let[n,a]of i.entries()){let o=z(`&`,n===i.length-1?e.nodes:e.nodes.map(W)),s=O(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(Vc(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,L.Replace(r)}),n}function Lc(e,t){let n=ro(e),r=Nc(e),i=new N(e=>ja(e,u)),a=new N(e=>Array.from(ka(e,u))),o=new N(e=>new N(t=>{let n=Bc(t,u,e);try{let e=n.map(e=>e.node);Ao(e,u),Ic(e,u)}catch{return[]}return n})),s=new N(t=>{for(let n of na(t))e.markUsedVariable(n)});function c(e){let n=[];for(let r of e){let e=!0,{astNodes:i}=zc([r],u,{onInvalidCandidate(){e=!1}});t&&R(i,e=>(e.src??=t,L.Continue)),i=ca(i,u,0),n.push(e?i:[])}return n}function l(e){return c(e).map(e=>e.length>0?fa(e):null)}let u={theme:e,utilities:n,variants:r,invalidCandidates:/* @__PURE__ */ new Set,important:!1,candidatesToCss:l,candidatesToAst:c,getClassOrder(e){return kc(this,e)},getClassList(){return Ec(this)},getVariants(){return Oc(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 Na(u,e)},printVariant(e){return Fa(e)},getVariantOrder(){let e=Array.from(i.values());e.sort((e,t)=>this.variants.compare(e,t));let t=/* @__PURE__ */ 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?K(a,i):a},trackUsedVariables(e){s.get(e)},canonicalizeCandidates(e,t){return gs(this,e,t)},storage:{}};return u}var Rc=/* @__PURE__ */ `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 zc(e,t,{onInvalidCandidate:n,respectImportant:r}={}){let i=/* @__PURE__ */ new Map,a=[],o=/* @__PURE__ */ new Map;for(let r of e){if(t.invalidCandidates.has(r)){n?.(r);continue}let e=t.parseCandidate(r);e.length===0?n?.(r):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||Po(n.candidate,r.candidate)}),{astNodes:a,nodeSorting:i}}function Bc(e,t,n){let r=Uc(e,t);if(r.length===0)return[];let i=t.important&&!!(n&1),a=[],o=`.${kr(e.raw)}`;for(let n of r){let r=Gc(n);(e.important||i)&&Wc(n);let s={kind:`rule`,selector:o,nodes:n};for(let n of e.variants)if(Vc(s,n,t.variants)===null)return[];a.push({node:s,propertySort:r})}return a}function Vc(e,t,n,r=0){if(t.kind===`arbitrary`){if(t.relative&&r===0)return null;e.nodes=[V(t.selector,e.nodes)];return}let{applyFn:i}=n.get(t.root);if(t.kind===`compound`){let a=B(`@slot`);if(Vc(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;R(a.nodes,t=>{if((t.kind===`rule`||t.kind===`at-rule`)&&t.nodes.length<=0)return t.nodes=e.nodes,L.Skip}),e.nodes=a.nodes}else if(i(e,t)===null)return null}function Hc(e){let t=e.options?.types??[];return t.length>1&&t.includes(`any`)}function Uc(e,t){if(e.kind===`arbitrary`){let n=e.value;return e.modifier&&(n=q(n,e.modifier,t.theme)),n===null?[]:[[H(e.property,n)]]}let n=t.utilities.get(e.root)??[],r=[],i=n.filter(e=>!Hc(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=>Hc(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 Wc(e){for(let t of e)t.kind!==`at-root`&&(t.kind===`declaration`?t.important=!0:(t.kind===`rule`||t.kind===`at-rule`)&&Wc(t.nodes))}function Gc(e){let t=/* @__PURE__ */ 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=Rc.indexOf(e.value??``);if(n!==-1){t.add(n),i=!0;continue}}let r=Rc.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 Kc(e,t){let n=0,r=V(`&`,e),i=/* @__PURE__ */ new Set,a=new N(()=>/* @__PURE__ */ new Set),o=new N(()=>/* @__PURE__ */ new Set);R([r],(e,r)=>{if(e.kind===`at-rule`){if(e.name===`@keyframes`)return R(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@apply`)throw Error("You cannot use `@apply` inside `@keyframes`.")}),L.Skip;if(e.name===`@utility`){let n=e.params.replace(/-\*$/,``);o.get(n).add(e),R(e.nodes,n=>{if(n.kind===`at-rule`&&n.name===`@apply`){i.add(e);for(let r of qc(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 qc(e,t))for(let e of r.path())i.has(e)&&a.get(e).add(n)}}});let s=/* @__PURE__ */ new Set,c=[],l=/* @__PURE__ */ 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`&&R(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.`)}}),/* @__PURE__ */ Error(`Circular dependency detected:
|
|
55
|
+
|
|
56
|
+
${fa([e])}
|
|
57
|
+
Relies on:
|
|
58
|
+
|
|
59
|
+
${fa([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&&R(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 L.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=zc(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=O(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?/* @__PURE__ */ 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`):/* @__PURE__ */ 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=W(e),!i||!t||a===void 0)return R([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,R([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 L.Replace(o)}});return n}function*qc(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 Jc(e,t,n,r=0,i=!1){let a=0,o=[];return R(e,e=>{if(e.kind===`at-rule`&&(e.name===`@import`||e.name===`@reference`)){let s=Yc(I(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=oa({},[]);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=Ni(a.content,{from:i?a.path:void 0});await Jc(o,a.base,n,r+1,i),f.nodes=Xc(e,[oa({base:a.base},o)],l,u,d)})()),L.ReplaceSkip(f)}}),o.length>0&&await Promise.all(o),a}function Yc(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?F(o.nodes):``;continue}if(o.kind===`function`&&o.value.toLowerCase()===`supports`){if(i)return null;i=F(o.nodes);continue}r=F(e.slice(a));break}}return t?{uri:t,layer:n,media:r,supports:i}:null}function Xc(e,t,n,r,i){let a=t;if(n!==null){let t=B(`@layer`,n,a);t.src=e.src,a=[t]}if(r!==null){let t=B(`@media`,r,a);t.src=e.src,a=[t]}if(i!==null){let t=B(`@supports`,i[0]===`(`?i:`(${i})`,a);t.src=e.src,a=[t]}return a}function Zc(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Qc(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?!Zc(e[t])||!Zc(i[t])?i[t]:Qc({},[e[t],i[t]],n,r):a,r.pop()}return e}function $c(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=os(r),[a,o]=el(e.theme,i),s=n(tl(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=Qc({},[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&&tl(e,t.split(`-`))!==void 0||(e[Ar(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=K(s,o)),s??i}}function el(e,t){if(t.length===1&&t[0].startsWith(`--`))return[e.get([t[0]]),e.getOptions(t[0])];let n=Go(t),r=/* @__PURE__ */ new Map,i=new N(()=>/* @__PURE__ */ new Map),a=e.namespace(`--${n}`);if(a.size===0)return[null,0];let o=/* @__PURE__ */ 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)nl(c,[e??`DEFAULT`],t);for(let[e,t]of o)nl(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 tl(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]}`}else e=e[r]}return e}function nl(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 rl=/^[a-z@][a-zA-Z0-9/%._-]*$/;function il({designSystem:e,ast:t,resolvedConfig:n,featuresRef:r,referenceMode:i,src:a}){let o={addBase(n){if(i)return;let o=al(n);r.current|=Ao(o,e);let s=B(`@layer`,`base`,o);R([s],e=>{e.src=a}),t.push(s)},addVariant(t,n){if(!Ac.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=ol(n,e.nodes)},{compounds:Mc(typeof n==`string`?[n]:n)}):typeof n==`object`&&e.variants.fromAst(t,al(n),e)},matchVariant(t,n,r){function i(e,t,r){return ol(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])=>O(e,`,`).map(e=>[e.trim(),t]));let s=new N(()=>[]);for(let[e,n]of o){if(e.startsWith(`@keyframes `)){if(!i){let r=V(e,al(n));R([r],e=>{e.src=a}),t.push(r)}continue}let r=ui(e),o=!1;if(R(r,e=>{if(e.kind===`selector`&&e.value[0]===`.`&&rl.test(e.value.slice(1))){let t=e.value;e.value=`&`;let i=Wr(r),a=t.slice(1),c=i===`&`?al(n):[V(i,al(n))];s.get(a).push(...c),o=!0,e.value=t}else if(e.kind===`function`&&(e.value===`:not`||e.value===`:nth-child`||e.value===`:nth-last-child`))return L.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&&R(n,t=>{if(t.kind===`rule`){let n=ui(t.selector);R(n,t=>{t.kind===`selector`&&t.value[0]===`.`&&(t.value=`.${e.theme.prefix}\\:${t.value.slice(1)}`)}),t.selector=Wr(n)}}),e.utilities.static(t,i=>{let a=n.map(W);return sl(a,t,i.raw),r.current|=Kc(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&&!k(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=K(l,d)),t&&(l=`calc(${l} * -1)`);let f=al(o(l,{modifier:d}));return sl(f,a,s.raw),r.current|=Kc(f,e),f}};if(!rl.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:$c(e,()=>n.theme??{},e=>e),prefix(e){return e},config(e,t){let r=n;if(!e)return r;let i=os(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 al(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(V(e,[B(`@slot`)]));continue}e=e.replace(/([A-Z])/g,`-$1`).toLowerCase()}t.push(H(e,String(r)))}else if(Array.isArray(r))for(let n of r)typeof n==`string`?t.push(H(e,n)):t.push(V(e,al(n)));else t.push(V(e,al(r)))}return t}function ol(e,t){return(typeof e==`string`?[e]:e).flatMap(e=>{if(e.trim().endsWith(`}`)){let n=Ni(e.replace(`}`,`{@slot}}`));return Fc(n,t),n}return V(e,t)})}function sl(e,t,n){R(e,e=>{if(e.kind===`rule`){let r=ui(e.selector);R(r,e=>{e.kind===`selector`&&e.value===`.${t}`&&(e.value=`.${kr(n)}`)}),e.selector=Wr(r)}})}function cl(e,t){for(let n of ll(t))e.theme.addKeyframes(n)}function ll(e){let t=[];if(`keyframes`in e.theme)for(let[n,r]of Object.entries(e.theme.keyframes))t.push(B(`@keyframes`,n,al(r)));return t}function ul(e){return{theme:{...Or,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 dl={blocklist:[],future:{},experimental:{},prefix:``,important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function fl(e,t){let n={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(dl)};for(let e of t)ml(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=hl(n);return{resolvedConfig:{...n.result,content:n.content,theme:n.theme,plugins:n.plugins},replacedThemeKeys:r}}function pl(e,t){if(Array.isArray(e)&&Zc(e[0]))return e.concat(t);if(Array.isArray(t)&&Zc(t[0])&&Zc(e))return[e,...t];if(Array.isArray(t))return t}function ml(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??[])ml(e,{path:r,base:n,config:o,reference:i,src:a});for(let t of o)e.plugins.push(t),t.config&&ml(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 hl(e){let t=/* @__PURE__ */ new Set,n=$c(e.design,()=>e.theme,i),r=Object.assign(n,{theme:n,colors:In});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]=()=>Qc({},n.map(i),pl)}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 gl(e,t){let n=e.theme.container||{};if(typeof n!=`object`||!n)return;let r=_l(n,t);r.length!==0&&t.utilities.static(`container`,()=>r.map(W))}function _l({center:e,padding:t,screens:n},r){let i=[],a=null;if(e&&i.push(H(`margin-inline`,`auto`)),(typeof t==`string`||typeof t==`object`&&t&&`DEFAULT`in t)&&i.push(H(`padding-inline`,typeof t==`string`?t:t.DEFAULT)),typeof n==`object`&&n){a=/* @__PURE__ */ new Map;let e=Array.from(r.theme.namespace(`--breakpoint`).entries());if(e.sort((e,t)=>Ga(e[1],t[1],`asc`)),e.length>0){let[t]=e[0];i.push(B(`@media`,`(width >= --theme(--breakpoint-${t}))`,[H(`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,B(`@media`,`(width >= ${t})`,[H(`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)=>Ga(e[1],t[1],`asc`));for(let[t,,n]of e)if(a&&a.has(t))a.get(t).nodes.push(H(`padding-inline`,n));else{if(a)continue;i.push(B(`@media`,`(width >= theme(--breakpoint-${t}))`,[H(`padding-inline`,n)]))}}if(a)for(let[,e]of a)i.push(e);return i}function vl({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 yl(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}`,()=>[H(`--tw-gradient-position`,`to ${n} in oklab`),H(`background-image`,`linear-gradient(var(--tw-gradient-stops))`)]);e.utilities.suggest(`bg-left-top`,()=>[]),e.utilities.static(`bg-left-top`,()=>[H(`background-position`,`left top`)]),e.utilities.suggest(`bg-right-top`,()=>[]),e.utilities.static(`bg-right-top`,()=>[H(`background-position`,`right top`)]),e.utilities.suggest(`bg-left-bottom`,()=>[]),e.utilities.static(`bg-left-bottom`,()=>[H(`background-position`,`left bottom`)]),e.utilities.suggest(`bg-right-bottom`,()=>[]),e.utilities.static(`bg-right-bottom`,()=>[H(`background-position`,`right bottom`)]),e.utilities.suggest(`object-left-top`,()=>[]),e.utilities.static(`object-left-top`,()=>[H(`object-position`,`left top`)]),e.utilities.suggest(`object-right-top`,()=>[]),e.utilities.static(`object-right-top`,()=>[H(`object-position`,`right top`)]),e.utilities.suggest(`object-left-bottom`,()=>[]),e.utilities.static(`object-left-bottom`,()=>[H(`object-position`,`left bottom`)]),e.utilities.suggest(`object-right-bottom`,()=>[]),e.utilities.static(`object-right-bottom`,()=>[H(`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[H(`max-width`,n)]}),e.utilities.suggest(`overflow-ellipsis`,()=>[]),e.utilities.static(`overflow-ellipsis`,()=>[H(`text-overflow`,`ellipsis`)]),e.utilities.suggest(`decoration-slice`,()=>[]),e.utilities.static(`decoration-slice`,()=>[H(`-webkit-box-decoration-break`,`slice`),H(`box-decoration-break`,`slice`)]),e.utilities.suggest(`decoration-clone`,()=>[]),e.utilities.static(`decoration-clone`,()=>[H(`-webkit-box-decoration-break`,`clone`),H(`box-decoration-break`,`clone`)]),e.utilities.suggest(`flex-shrink`,()=>[]),e.utilities.functional(`flex-shrink`,e=>{if(!e.modifier){if(!e.value)return[H(`flex-shrink`,`1`)];if(e.value.kind===`arbitrary`||A(e.value.value))return[H(`flex-shrink`,e.value.value)]}}),e.utilities.suggest(`flex-grow`,()=>[]),e.utilities.functional(`flex-grow`,e=>{if(!e.modifier){if(!e.value)return[H(`flex-grow`,`1`)];if(e.value.kind===`arbitrary`||A(e.value.value))return[H(`flex-grow`,e.value.value)]}}),e.utilities.suggest(`order-none`,()=>[]),e.utilities.static(`order-none`,()=>[H(`order`,`0`)]),e.utilities.suggest(`break-words`,()=>[]),e.utilities.static(`break-words`,()=>[H(`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[H(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]=O(r.value.fraction,`/`);if(!A(e)||!A(t))return;i=`calc(${r.value.fraction} * 100%)`}if(i===null&&t){let t=e.theme.resolve(null,[`--spacing`]);if(t&&j(r.value.value)&&(i=`calc(${t} * -${r.value.value})`,i!==null))return[H(n,i)]}if(i===null){let t=e.theme.resolve(null,[`--spacing`]);t&&j(r.value.value)&&(i=`calc(${t} * ${r.value.value})`)}if(i!==null)return[H(n,t?`calc(${i} * -1)`:i)]}};e.utilities.static(`${t}-auto`,()=>[H(n,`auto`)]),e.utilities.static(`${t}-full`,()=>[H(n,`100%`)]),e.utilities.static(`-${t}-full`,()=>[H(n,`-100%`)]),e.utilities.static(`${t}-px`,()=>[H(n,`1px`)]),e.utilities.static(`-${t}-px`,()=>[H(n,`-1px`)]),e.utilities.functional(`-${t}`,r({negative:!0})),e.utilities.functional(t,r({negative:!1}))}}function bl(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=[B(`@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=xl(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 xl(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 Sl(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 Cl=/^[a-z]+$/;async function wl({designSystem:e,base:t,ast:n,loadModule:r,sources:i}){let a=0,o=[],s=[];R(n,(e,t)=>{if(e.kind!==`at-rule`)return;let n=sa(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:
|
|
60
|
+
|
|
61
|
+
${fa([t])}
|
|
62
|
+
|
|
63
|
+
\`@plugin\` options must be a flat list of declarations.`);if(t.value===void 0)continue;let e=t.value,n=O(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 \`${fa([t]).trim()}\` is not supported.
|
|
64
|
+
|
|
65
|
+
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,L.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,L.Replace([])}}),yl(e);let c=e.resolveThemeValue;if(e.resolveThemeValue=function(r,o){return r.startsWith(`--`)?c(r,o):(a|=Tl({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|=Tl({designSystem:e,base:t,ast:n,sources:i,configs:l,pluginDetails:u}),a}function Tl({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}=fl(e,[{config:ul(e.theme),base:t,reference:!0,src:void 0},...s,{config:{plugins:[vl]},base:t,reference:!0,src:void 0}]),{resolvedConfig:l,replacedThemeKeys:u}=fl(e,s),d={designSystem:e,ast:n,resolvedConfig:c,featuresRef:{set current(e){o|=e}}},f=il({...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(il({...d,referenceMode:t??!1,src:n}));if(Bo(e,l,u),cl(e,l),Sl(l,e),bl(l,e),gl(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.`)),!Cl.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;R(n,(t,n)=>{if(t.kind!==`at-rule`||t.name!==`@tailwind`||t.params!==`utilities`)return;let r=sa(n);return r.parent?.kind===`rule`&&r.parent.selector===e?L.Stop:L.ReplaceStop(z(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:
|
|
66
|
+
|
|
67
|
+
${JSON.stringify(e,null,2)}
|
|
68
|
+
|
|
69
|
+
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 El({ast:e}){let t=new N(e=>di(e.code)),n=new N(e=>({url:e.file,content:e.code,ignore:!1})),r={file:null,sources:[],mappings:[]};R(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(`
|
|
70
|
+
`)){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 Dl=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function Ol(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=kl(s)?Al(s):O(s,`,`),l=l.flatMap(e=>Ol(e));let u=Ol(c);for(let e of u)for(let t of l)n.push(r+t+e);return n}function kl(e){return Dl.test(e)}function Al(e){let t=e.match(Dl);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 jl(e,t){let n=/* @__PURE__ */ new Set,r=/* @__PURE__ */ 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 Ml=/^[a-z]+$/,Nl=(e=>(e[e.None=0]=`None`,e[e.AtProperty=1]=`AtProperty`,e[e.ColorMix=2]=`ColorMix`,e[e.All=3]=`All`,e))(Nl||{});function Pl(){throw Error("No `loadModule` function provided to `compile`")}function Fl(){throw Error("No `loadStylesheet` function provided to `compile`")}function Il(e){let t=0,n=null;for(let r of O(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]}var Ll=(e=>(e[e.None=0]=`None`,e[e.AtApply=1]=`AtApply`,e[e.AtImport=2]=`AtImport`,e[e.JsPluginCompat=4]=`JsPluginCompat`,e[e.ThemeFunction=8]=`ThemeFunction`,e[e.Utilities=16]=`Utilities`,e[e.Variants=32]=`Variants`,e[e.AtTheme=64]=`AtTheme`,e))(Ll||{});async function Rl(e,{base:t=``,from:n,loadModule:r=Pl,loadStylesheet:i=Fl}={}){let a=0;e=[oa({base:t},e)],a|=await Jc(e,t,i,0,n!==void 0);let o=null,s=new Nr,c=/* @__PURE__ */ new Map,l=/* @__PURE__ */ new Map,u=[],d=null,f=null,p=[],m=[],h=[],g=[],_=null;R(e,(e,t)=>{if(e.kind!==`at-rule`)return;let n=sa(t);if(e.name===`@tailwind`&&(e.params===`utilities`||e.params.startsWith(`utilities`))){if(f!==null||n.context.reference)return L.Replace([]);let t=O(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=ao(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=O(a,` `);for(let t of n)for(let n of Ol(t))e.push(n)}else m.push({base:n.context.base,pattern:a,negated:t});return L.ReplaceSkip([])}if(e.name===`@variant`&&(n.parent===null?e.nodes.length===0?e.name=`@custom-variant`:(R(e.nodes,t=>{if(t.kind===`at-rule`&&t.name===`@slot`)return e.name=`@custom-variant`,L.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]=O(e.params,` `);if(!Ac.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=O(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(z(i.join(`, `),e.nodes));for(let r of n)t.push(V(r,e.nodes));e.nodes=t},{compounds:Mc([...i,...n])})}),l.set(t,/* @__PURE__ */ new Set)}else{let n=/* @__PURE__ */ new Set;R(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 L.ReplaceSkip([])}if(e.name===`@media`){let t=O(e.params,` `),r=[];for(let i of t)if(i.startsWith(`source(`)){let t=i.slice(7,-1);R(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@tailwind`&&e.params===`utilities`)return e.params+=` source(${t})`,L.ReplaceStop([oa({sourceBase:n.context.base},[e])])})}else if(i.startsWith(`theme(`)){let t=i.slice(6,-1),n=t.includes(`reference`);R(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 L.Continue}if(e.name===`@theme`)return e.params+=` `+t,L.Skip}})}else if(i.startsWith(`prefix(`)){let t=i.slice(7,-1);R(e.nodes,e=>{if(e.kind===`at-rule`&&e.name===`@theme`)return e.params+=` prefix(${t})`,L.Skip})}else i===`important`?o=!0:i===`reference`?e.nodes=[oa({reference:!0},e.nodes)]:r.push(i);if(r.length>0)e.params=r.join(` `);else if(t.length>0)return L.Replace(e.nodes);return L.Continue}if(e.name===`@theme`){let[t,r]=Il(e.params);if(a|=64,n.context.reference&&(t|=2),r){if(!Ml.test(r))throw Error(`The prefix "${r}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);s.prefix=r}return R(e.nodes,n=>{if(n.kind===`at-rule`&&n.name===`@keyframes`)return s.addKeyframes(n),L.Skip;if(n.kind===`comment`)return;if(n.kind===`declaration`&&n.property.startsWith(`--`)){s.add(Ar(n.property),n.value??``,t,n.src);return}let r=fa([B(e.name,e.params,[n])]).split(`
|
|
71
|
+
`).map((e,t,n)=>`${t===0||t>=n.length-2?` `:`>`} ${e}`).join(`
|
|
72
|
+
`);throw Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
|
|
73
|
+
|
|
74
|
+
${r}`)}),d?L.ReplaceSkip([]):(d=z(`:root, :host`,[]),d.src=e.src,L.ReplaceSkip(d))}});let v=Lc(s,f?.src);if(o&&(v.important=o),g.length>0)for(let e of g)v.invalidCandidates.add(e);a|=await wl({designSystem:v,base:t,ast:e,loadModule:r,sources:m});for(let e of c.keys())v.variants.static(e,()=>{});for(let e of jl(l,{onCircularDependency(e,t){let n=fa(e.map((n,r)=>B(`@custom-variant`,n,[B(`@variant`,e[r+1]??t,[])]))).replaceAll(`;`,` { … }`).replace(`@custom-variant ${t} {`,`@custom-variant ${t} { /* \u2190 */`);throw Error(`Circular dependency detected in custom variants:
|
|
75
|
+
|
|
76
|
+
${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=H(kr(e),n.value);r.src=n.src,t.push(r)}let n=v.theme.getKeyframes();for(let t of n)e.push(oa({theme:!0},[U([t])]));d.nodes=[oa({theme:!0},t)]}if(a|=Ic(e,v),a|=Ao(e,v),a|=Kc(e,v),f){let e=f;e.kind=`context`,e.context={}}return R(e,e=>{if(e.kind===`at-rule`)return e.name===`@utility`?L.Replace([]):L.Skip}),{designSystem:v,ast:e,sources:m,root:_,utilitiesNode:f,features:a,inlineCandidates:h}}async function zl(e,t={}){let{designSystem:n,ast:r,sources:i,root:a,utilitiesNode:o,features:s,inlineCandidates:c}=await Rl(e,t);r.unshift(aa(`! tailwindcss v${Pr} | MIT License | https://tailwindcss.com `));function l(e){n.invalidCandidates.add(e)}let u=/* @__PURE__ */ 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??=ca(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??=ca(r,n,t.polyfills),d;let h=zc(u,n,{onInvalidCandidate:l}).astNodes;return t.from&&R(h,e=>{e.src??=o.src}),!c&&f===h.length?(d??=ca(r,n,t.polyfills),d):(f=h.length,o.nodes=h,d=ca(r,n,t.polyfills),d)}}}async function Bl(e,t={}){let n=Ni(e,{from:t.from}),r=await zl(n,t),i=n,a=e;return{...r,build(e){let n=r.build(e);return n===i||(a=fa(n,!!t.from),i=n),a},buildSourceMap(){return El({ast:i})}}}function Vl(e,t){return{handler:e,config:t}}Vl.withOptions=function(e,t=()=>({})){function n(n){return{handler:e(n),config:t(n)}}return n.__isOptionsFunction=!0,n};var Hl=Vl,Ul=`@layer theme, base, components, utilities;
|
|
77
|
+
|
|
78
|
+
@layer theme {
|
|
79
|
+
@theme default {
|
|
80
|
+
--font-sans:
|
|
81
|
+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
|
|
82
|
+
"Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
|
83
|
+
"Segoe UI Symbol", "Noto Color Emoji";
|
|
84
|
+
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
|
|
85
|
+
--font-mono:
|
|
86
|
+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
|
87
|
+
"Courier New", monospace;
|
|
88
|
+
|
|
89
|
+
--color-red-50: oklch(97.1% 0.013 17.38);
|
|
90
|
+
--color-red-100: oklch(93.6% 0.032 17.717);
|
|
91
|
+
--color-red-200: oklch(88.5% 0.062 18.334);
|
|
92
|
+
--color-red-300: oklch(80.8% 0.114 19.571);
|
|
93
|
+
--color-red-400: oklch(70.4% 0.191 22.216);
|
|
94
|
+
--color-red-500: oklch(63.7% 0.237 25.331);
|
|
95
|
+
--color-red-600: oklch(57.7% 0.245 27.325);
|
|
96
|
+
--color-red-700: oklch(50.5% 0.213 27.518);
|
|
97
|
+
--color-red-800: oklch(44.4% 0.177 26.899);
|
|
98
|
+
--color-red-900: oklch(39.6% 0.141 25.723);
|
|
99
|
+
--color-red-950: oklch(25.8% 0.092 26.042);
|
|
100
|
+
|
|
101
|
+
--color-orange-50: oklch(98% 0.016 73.684);
|
|
102
|
+
--color-orange-100: oklch(95.4% 0.038 75.164);
|
|
103
|
+
--color-orange-200: oklch(90.1% 0.076 70.697);
|
|
104
|
+
--color-orange-300: oklch(83.7% 0.128 66.29);
|
|
105
|
+
--color-orange-400: oklch(75% 0.183 55.934);
|
|
106
|
+
--color-orange-500: oklch(70.5% 0.213 47.604);
|
|
107
|
+
--color-orange-600: oklch(64.6% 0.222 41.116);
|
|
108
|
+
--color-orange-700: oklch(55.3% 0.195 38.402);
|
|
109
|
+
--color-orange-800: oklch(47% 0.157 37.304);
|
|
110
|
+
--color-orange-900: oklch(40.8% 0.123 38.172);
|
|
111
|
+
--color-orange-950: oklch(26.6% 0.079 36.259);
|
|
112
|
+
|
|
113
|
+
--color-amber-50: oklch(98.7% 0.022 95.277);
|
|
114
|
+
--color-amber-100: oklch(96.2% 0.059 95.617);
|
|
115
|
+
--color-amber-200: oklch(92.4% 0.12 95.746);
|
|
116
|
+
--color-amber-300: oklch(87.9% 0.169 91.605);
|
|
117
|
+
--color-amber-400: oklch(82.8% 0.189 84.429);
|
|
118
|
+
--color-amber-500: oklch(76.9% 0.188 70.08);
|
|
119
|
+
--color-amber-600: oklch(66.6% 0.179 58.318);
|
|
120
|
+
--color-amber-700: oklch(55.5% 0.163 48.998);
|
|
121
|
+
--color-amber-800: oklch(47.3% 0.137 46.201);
|
|
122
|
+
--color-amber-900: oklch(41.4% 0.112 45.904);
|
|
123
|
+
--color-amber-950: oklch(27.9% 0.077 45.635);
|
|
124
|
+
|
|
125
|
+
--color-yellow-50: oklch(98.7% 0.026 102.212);
|
|
126
|
+
--color-yellow-100: oklch(97.3% 0.071 103.193);
|
|
127
|
+
--color-yellow-200: oklch(94.5% 0.129 101.54);
|
|
128
|
+
--color-yellow-300: oklch(90.5% 0.182 98.111);
|
|
129
|
+
--color-yellow-400: oklch(85.2% 0.199 91.936);
|
|
130
|
+
--color-yellow-500: oklch(79.5% 0.184 86.047);
|
|
131
|
+
--color-yellow-600: oklch(68.1% 0.162 75.834);
|
|
132
|
+
--color-yellow-700: oklch(55.4% 0.135 66.442);
|
|
133
|
+
--color-yellow-800: oklch(47.6% 0.114 61.907);
|
|
134
|
+
--color-yellow-900: oklch(42.1% 0.095 57.708);
|
|
135
|
+
--color-yellow-950: oklch(28.6% 0.066 53.813);
|
|
136
|
+
|
|
137
|
+
--color-lime-50: oklch(98.6% 0.031 120.757);
|
|
138
|
+
--color-lime-100: oklch(96.7% 0.067 122.328);
|
|
139
|
+
--color-lime-200: oklch(93.8% 0.127 124.321);
|
|
140
|
+
--color-lime-300: oklch(89.7% 0.196 126.665);
|
|
141
|
+
--color-lime-400: oklch(84.1% 0.238 128.85);
|
|
142
|
+
--color-lime-500: oklch(76.8% 0.233 130.85);
|
|
143
|
+
--color-lime-600: oklch(64.8% 0.2 131.684);
|
|
144
|
+
--color-lime-700: oklch(53.2% 0.157 131.589);
|
|
145
|
+
--color-lime-800: oklch(45.3% 0.124 130.933);
|
|
146
|
+
--color-lime-900: oklch(40.5% 0.101 131.063);
|
|
147
|
+
--color-lime-950: oklch(27.4% 0.072 132.109);
|
|
148
|
+
|
|
149
|
+
--color-green-50: oklch(98.2% 0.018 155.826);
|
|
150
|
+
--color-green-100: oklch(96.2% 0.044 156.743);
|
|
151
|
+
--color-green-200: oklch(92.5% 0.084 155.995);
|
|
152
|
+
--color-green-300: oklch(87.1% 0.15 154.449);
|
|
153
|
+
--color-green-400: oklch(79.2% 0.209 151.711);
|
|
154
|
+
--color-green-500: oklch(72.3% 0.219 149.579);
|
|
155
|
+
--color-green-600: oklch(62.7% 0.194 149.214);
|
|
156
|
+
--color-green-700: oklch(52.7% 0.154 150.069);
|
|
157
|
+
--color-green-800: oklch(44.8% 0.119 151.328);
|
|
158
|
+
--color-green-900: oklch(39.3% 0.095 152.535);
|
|
159
|
+
--color-green-950: oklch(26.6% 0.065 152.934);
|
|
160
|
+
|
|
161
|
+
--color-emerald-50: oklch(97.9% 0.021 166.113);
|
|
162
|
+
--color-emerald-100: oklch(95% 0.052 163.051);
|
|
163
|
+
--color-emerald-200: oklch(90.5% 0.093 164.15);
|
|
164
|
+
--color-emerald-300: oklch(84.5% 0.143 164.978);
|
|
165
|
+
--color-emerald-400: oklch(76.5% 0.177 163.223);
|
|
166
|
+
--color-emerald-500: oklch(69.6% 0.17 162.48);
|
|
167
|
+
--color-emerald-600: oklch(59.6% 0.145 163.225);
|
|
168
|
+
--color-emerald-700: oklch(50.8% 0.118 165.612);
|
|
169
|
+
--color-emerald-800: oklch(43.2% 0.095 166.913);
|
|
170
|
+
--color-emerald-900: oklch(37.8% 0.077 168.94);
|
|
171
|
+
--color-emerald-950: oklch(26.2% 0.051 172.552);
|
|
172
|
+
|
|
173
|
+
--color-teal-50: oklch(98.4% 0.014 180.72);
|
|
174
|
+
--color-teal-100: oklch(95.3% 0.051 180.801);
|
|
175
|
+
--color-teal-200: oklch(91% 0.096 180.426);
|
|
176
|
+
--color-teal-300: oklch(85.5% 0.138 181.071);
|
|
177
|
+
--color-teal-400: oklch(77.7% 0.152 181.912);
|
|
178
|
+
--color-teal-500: oklch(70.4% 0.14 182.503);
|
|
179
|
+
--color-teal-600: oklch(60% 0.118 184.704);
|
|
180
|
+
--color-teal-700: oklch(51.1% 0.096 186.391);
|
|
181
|
+
--color-teal-800: oklch(43.7% 0.078 188.216);
|
|
182
|
+
--color-teal-900: oklch(38.6% 0.063 188.416);
|
|
183
|
+
--color-teal-950: oklch(27.7% 0.046 192.524);
|
|
184
|
+
|
|
185
|
+
--color-cyan-50: oklch(98.4% 0.019 200.873);
|
|
186
|
+
--color-cyan-100: oklch(95.6% 0.045 203.388);
|
|
187
|
+
--color-cyan-200: oklch(91.7% 0.08 205.041);
|
|
188
|
+
--color-cyan-300: oklch(86.5% 0.127 207.078);
|
|
189
|
+
--color-cyan-400: oklch(78.9% 0.154 211.53);
|
|
190
|
+
--color-cyan-500: oklch(71.5% 0.143 215.221);
|
|
191
|
+
--color-cyan-600: oklch(60.9% 0.126 221.723);
|
|
192
|
+
--color-cyan-700: oklch(52% 0.105 223.128);
|
|
193
|
+
--color-cyan-800: oklch(45% 0.085 224.283);
|
|
194
|
+
--color-cyan-900: oklch(39.8% 0.07 227.392);
|
|
195
|
+
--color-cyan-950: oklch(30.2% 0.056 229.695);
|
|
196
|
+
|
|
197
|
+
--color-sky-50: oklch(97.7% 0.013 236.62);
|
|
198
|
+
--color-sky-100: oklch(95.1% 0.026 236.824);
|
|
199
|
+
--color-sky-200: oklch(90.1% 0.058 230.902);
|
|
200
|
+
--color-sky-300: oklch(82.8% 0.111 230.318);
|
|
201
|
+
--color-sky-400: oklch(74.6% 0.16 232.661);
|
|
202
|
+
--color-sky-500: oklch(68.5% 0.169 237.323);
|
|
203
|
+
--color-sky-600: oklch(58.8% 0.158 241.966);
|
|
204
|
+
--color-sky-700: oklch(50% 0.134 242.749);
|
|
205
|
+
--color-sky-800: oklch(44.3% 0.11 240.79);
|
|
206
|
+
--color-sky-900: oklch(39.1% 0.09 240.876);
|
|
207
|
+
--color-sky-950: oklch(29.3% 0.066 243.157);
|
|
208
|
+
|
|
209
|
+
--color-blue-50: oklch(97% 0.014 254.604);
|
|
210
|
+
--color-blue-100: oklch(93.2% 0.032 255.585);
|
|
211
|
+
--color-blue-200: oklch(88.2% 0.059 254.128);
|
|
212
|
+
--color-blue-300: oklch(80.9% 0.105 251.813);
|
|
213
|
+
--color-blue-400: oklch(70.7% 0.165 254.624);
|
|
214
|
+
--color-blue-500: oklch(62.3% 0.214 259.815);
|
|
215
|
+
--color-blue-600: oklch(54.6% 0.245 262.881);
|
|
216
|
+
--color-blue-700: oklch(48.8% 0.243 264.376);
|
|
217
|
+
--color-blue-800: oklch(42.4% 0.199 265.638);
|
|
218
|
+
--color-blue-900: oklch(37.9% 0.146 265.522);
|
|
219
|
+
--color-blue-950: oklch(28.2% 0.091 267.935);
|
|
220
|
+
|
|
221
|
+
--color-indigo-50: oklch(96.2% 0.018 272.314);
|
|
222
|
+
--color-indigo-100: oklch(93% 0.034 272.788);
|
|
223
|
+
--color-indigo-200: oklch(87% 0.065 274.039);
|
|
224
|
+
--color-indigo-300: oklch(78.5% 0.115 274.713);
|
|
225
|
+
--color-indigo-400: oklch(67.3% 0.182 276.935);
|
|
226
|
+
--color-indigo-500: oklch(58.5% 0.233 277.117);
|
|
227
|
+
--color-indigo-600: oklch(51.1% 0.262 276.966);
|
|
228
|
+
--color-indigo-700: oklch(45.7% 0.24 277.023);
|
|
229
|
+
--color-indigo-800: oklch(39.8% 0.195 277.366);
|
|
230
|
+
--color-indigo-900: oklch(35.9% 0.144 278.697);
|
|
231
|
+
--color-indigo-950: oklch(25.7% 0.09 281.288);
|
|
232
|
+
|
|
233
|
+
--color-violet-50: oklch(96.9% 0.016 293.756);
|
|
234
|
+
--color-violet-100: oklch(94.3% 0.029 294.588);
|
|
235
|
+
--color-violet-200: oklch(89.4% 0.057 293.283);
|
|
236
|
+
--color-violet-300: oklch(81.1% 0.111 293.571);
|
|
237
|
+
--color-violet-400: oklch(70.2% 0.183 293.541);
|
|
238
|
+
--color-violet-500: oklch(60.6% 0.25 292.717);
|
|
239
|
+
--color-violet-600: oklch(54.1% 0.281 293.009);
|
|
240
|
+
--color-violet-700: oklch(49.1% 0.27 292.581);
|
|
241
|
+
--color-violet-800: oklch(43.2% 0.232 292.759);
|
|
242
|
+
--color-violet-900: oklch(38% 0.189 293.745);
|
|
243
|
+
--color-violet-950: oklch(28.3% 0.141 291.089);
|
|
244
|
+
|
|
245
|
+
--color-purple-50: oklch(97.7% 0.014 308.299);
|
|
246
|
+
--color-purple-100: oklch(94.6% 0.033 307.174);
|
|
247
|
+
--color-purple-200: oklch(90.2% 0.063 306.703);
|
|
248
|
+
--color-purple-300: oklch(82.7% 0.119 306.383);
|
|
249
|
+
--color-purple-400: oklch(71.4% 0.203 305.504);
|
|
250
|
+
--color-purple-500: oklch(62.7% 0.265 303.9);
|
|
251
|
+
--color-purple-600: oklch(55.8% 0.288 302.321);
|
|
252
|
+
--color-purple-700: oklch(49.6% 0.265 301.924);
|
|
253
|
+
--color-purple-800: oklch(43.8% 0.218 303.724);
|
|
254
|
+
--color-purple-900: oklch(38.1% 0.176 304.987);
|
|
255
|
+
--color-purple-950: oklch(29.1% 0.149 302.717);
|
|
256
|
+
|
|
257
|
+
--color-fuchsia-50: oklch(97.7% 0.017 320.058);
|
|
258
|
+
--color-fuchsia-100: oklch(95.2% 0.037 318.852);
|
|
259
|
+
--color-fuchsia-200: oklch(90.3% 0.076 319.62);
|
|
260
|
+
--color-fuchsia-300: oklch(83.3% 0.145 321.434);
|
|
261
|
+
--color-fuchsia-400: oklch(74% 0.238 322.16);
|
|
262
|
+
--color-fuchsia-500: oklch(66.7% 0.295 322.15);
|
|
263
|
+
--color-fuchsia-600: oklch(59.1% 0.293 322.896);
|
|
264
|
+
--color-fuchsia-700: oklch(51.8% 0.253 323.949);
|
|
265
|
+
--color-fuchsia-800: oklch(45.2% 0.211 324.591);
|
|
266
|
+
--color-fuchsia-900: oklch(40.1% 0.17 325.612);
|
|
267
|
+
--color-fuchsia-950: oklch(29.3% 0.136 325.661);
|
|
268
|
+
|
|
269
|
+
--color-pink-50: oklch(97.1% 0.014 343.198);
|
|
270
|
+
--color-pink-100: oklch(94.8% 0.028 342.258);
|
|
271
|
+
--color-pink-200: oklch(89.9% 0.061 343.231);
|
|
272
|
+
--color-pink-300: oklch(82.3% 0.12 346.018);
|
|
273
|
+
--color-pink-400: oklch(71.8% 0.202 349.761);
|
|
274
|
+
--color-pink-500: oklch(65.6% 0.241 354.308);
|
|
275
|
+
--color-pink-600: oklch(59.2% 0.249 0.584);
|
|
276
|
+
--color-pink-700: oklch(52.5% 0.223 3.958);
|
|
277
|
+
--color-pink-800: oklch(45.9% 0.187 3.815);
|
|
278
|
+
--color-pink-900: oklch(40.8% 0.153 2.432);
|
|
279
|
+
--color-pink-950: oklch(28.4% 0.109 3.907);
|
|
280
|
+
|
|
281
|
+
--color-rose-50: oklch(96.9% 0.015 12.422);
|
|
282
|
+
--color-rose-100: oklch(94.1% 0.03 12.58);
|
|
283
|
+
--color-rose-200: oklch(89.2% 0.058 10.001);
|
|
284
|
+
--color-rose-300: oklch(81% 0.117 11.638);
|
|
285
|
+
--color-rose-400: oklch(71.2% 0.194 13.428);
|
|
286
|
+
--color-rose-500: oklch(64.5% 0.246 16.439);
|
|
287
|
+
--color-rose-600: oklch(58.6% 0.253 17.585);
|
|
288
|
+
--color-rose-700: oklch(51.4% 0.222 16.935);
|
|
289
|
+
--color-rose-800: oklch(45.5% 0.188 13.697);
|
|
290
|
+
--color-rose-900: oklch(41% 0.159 10.272);
|
|
291
|
+
--color-rose-950: oklch(27.1% 0.105 12.094);
|
|
292
|
+
|
|
293
|
+
--color-slate-50: oklch(98.4% 0.003 247.858);
|
|
294
|
+
--color-slate-100: oklch(96.8% 0.007 247.896);
|
|
295
|
+
--color-slate-200: oklch(92.9% 0.013 255.508);
|
|
296
|
+
--color-slate-300: oklch(86.9% 0.022 252.894);
|
|
297
|
+
--color-slate-400: oklch(70.4% 0.04 256.788);
|
|
298
|
+
--color-slate-500: oklch(55.4% 0.046 257.417);
|
|
299
|
+
--color-slate-600: oklch(44.6% 0.043 257.281);
|
|
300
|
+
--color-slate-700: oklch(37.2% 0.044 257.287);
|
|
301
|
+
--color-slate-800: oklch(27.9% 0.041 260.031);
|
|
302
|
+
--color-slate-900: oklch(20.8% 0.042 265.755);
|
|
303
|
+
--color-slate-950: oklch(12.9% 0.042 264.695);
|
|
304
|
+
|
|
305
|
+
--color-gray-50: oklch(98.5% 0.002 247.839);
|
|
306
|
+
--color-gray-100: oklch(96.7% 0.003 264.542);
|
|
307
|
+
--color-gray-200: oklch(92.8% 0.006 264.531);
|
|
308
|
+
--color-gray-300: oklch(87.2% 0.01 258.338);
|
|
309
|
+
--color-gray-400: oklch(70.7% 0.022 261.325);
|
|
310
|
+
--color-gray-500: oklch(55.1% 0.027 264.364);
|
|
311
|
+
--color-gray-600: oklch(44.6% 0.03 256.802);
|
|
312
|
+
--color-gray-700: oklch(37.3% 0.034 259.733);
|
|
313
|
+
--color-gray-800: oklch(27.8% 0.033 256.848);
|
|
314
|
+
--color-gray-900: oklch(21% 0.034 264.665);
|
|
315
|
+
--color-gray-950: oklch(13% 0.028 261.692);
|
|
316
|
+
|
|
317
|
+
--color-zinc-50: oklch(98.5% 0 none);
|
|
318
|
+
--color-zinc-100: oklch(96.7% 0.001 286.375);
|
|
319
|
+
--color-zinc-200: oklch(92% 0.004 286.32);
|
|
320
|
+
--color-zinc-300: oklch(87.1% 0.006 286.286);
|
|
321
|
+
--color-zinc-400: oklch(70.5% 0.015 286.067);
|
|
322
|
+
--color-zinc-500: oklch(55.2% 0.016 285.938);
|
|
323
|
+
--color-zinc-600: oklch(44.2% 0.017 285.786);
|
|
324
|
+
--color-zinc-700: oklch(37% 0.013 285.805);
|
|
325
|
+
--color-zinc-800: oklch(27.4% 0.006 286.033);
|
|
326
|
+
--color-zinc-900: oklch(21% 0.006 285.885);
|
|
327
|
+
--color-zinc-950: oklch(14.1% 0.005 285.823);
|
|
328
|
+
|
|
329
|
+
--color-neutral-50: oklch(98.5% 0 none);
|
|
330
|
+
--color-neutral-100: oklch(97% 0 none);
|
|
331
|
+
--color-neutral-200: oklch(92.2% 0 none);
|
|
332
|
+
--color-neutral-300: oklch(87% 0 none);
|
|
333
|
+
--color-neutral-400: oklch(70.8% 0 none);
|
|
334
|
+
--color-neutral-500: oklch(55.6% 0 none);
|
|
335
|
+
--color-neutral-600: oklch(43.9% 0 none);
|
|
336
|
+
--color-neutral-700: oklch(37.1% 0 none);
|
|
337
|
+
--color-neutral-800: oklch(26.9% 0 none);
|
|
338
|
+
--color-neutral-900: oklch(20.5% 0 none);
|
|
339
|
+
--color-neutral-950: oklch(14.5% 0 none);
|
|
340
|
+
|
|
341
|
+
--color-stone-50: oklch(98.5% 0.001 106.423);
|
|
342
|
+
--color-stone-100: oklch(97% 0.001 106.424);
|
|
343
|
+
--color-stone-200: oklch(92.3% 0.003 48.717);
|
|
344
|
+
--color-stone-300: oklch(86.9% 0.005 56.366);
|
|
345
|
+
--color-stone-400: oklch(70.9% 0.01 56.259);
|
|
346
|
+
--color-stone-500: oklch(55.3% 0.013 58.071);
|
|
347
|
+
--color-stone-600: oklch(44.4% 0.011 73.639);
|
|
348
|
+
--color-stone-700: oklch(37.4% 0.01 67.558);
|
|
349
|
+
--color-stone-800: oklch(26.8% 0.007 34.298);
|
|
350
|
+
--color-stone-900: oklch(21.6% 0.006 56.043);
|
|
351
|
+
--color-stone-950: oklch(14.7% 0.004 49.25);
|
|
352
|
+
|
|
353
|
+
--color-mauve-50: oklch(98.5% 0 none);
|
|
354
|
+
--color-mauve-100: oklch(96% 0.003 325.6);
|
|
355
|
+
--color-mauve-200: oklch(92.2% 0.005 325.62);
|
|
356
|
+
--color-mauve-300: oklch(86.5% 0.012 325.68);
|
|
357
|
+
--color-mauve-400: oklch(71.1% 0.019 323.02);
|
|
358
|
+
--color-mauve-500: oklch(54.2% 0.034 322.5);
|
|
359
|
+
--color-mauve-600: oklch(43.5% 0.029 321.78);
|
|
360
|
+
--color-mauve-700: oklch(36.4% 0.029 323.89);
|
|
361
|
+
--color-mauve-800: oklch(26.3% 0.024 320.12);
|
|
362
|
+
--color-mauve-900: oklch(21.2% 0.019 322.12);
|
|
363
|
+
--color-mauve-950: oklch(14.5% 0.008 326);
|
|
364
|
+
|
|
365
|
+
--color-olive-50: oklch(98.8% 0.003 106.5);
|
|
366
|
+
--color-olive-100: oklch(96.6% 0.005 106.5);
|
|
367
|
+
--color-olive-200: oklch(93% 0.007 106.5);
|
|
368
|
+
--color-olive-300: oklch(88% 0.011 106.6);
|
|
369
|
+
--color-olive-400: oklch(73.7% 0.021 106.9);
|
|
370
|
+
--color-olive-500: oklch(58% 0.031 107.3);
|
|
371
|
+
--color-olive-600: oklch(46.6% 0.025 107.3);
|
|
372
|
+
--color-olive-700: oklch(39.4% 0.023 107.4);
|
|
373
|
+
--color-olive-800: oklch(28.6% 0.016 107.4);
|
|
374
|
+
--color-olive-900: oklch(22.8% 0.013 107.4);
|
|
375
|
+
--color-olive-950: oklch(15.3% 0.006 107.1);
|
|
376
|
+
|
|
377
|
+
--color-mist-50: oklch(98.7% 0.002 197.1);
|
|
378
|
+
--color-mist-100: oklch(96.3% 0.002 197.1);
|
|
379
|
+
--color-mist-200: oklch(92.5% 0.005 214.3);
|
|
380
|
+
--color-mist-300: oklch(87.2% 0.007 219.6);
|
|
381
|
+
--color-mist-400: oklch(72.3% 0.014 214.4);
|
|
382
|
+
--color-mist-500: oklch(56% 0.021 213.5);
|
|
383
|
+
--color-mist-600: oklch(45% 0.017 213.2);
|
|
384
|
+
--color-mist-700: oklch(37.8% 0.015 216);
|
|
385
|
+
--color-mist-800: oklch(27.5% 0.011 216.9);
|
|
386
|
+
--color-mist-900: oklch(21.8% 0.008 223.9);
|
|
387
|
+
--color-mist-950: oklch(14.8% 0.004 228.8);
|
|
388
|
+
|
|
389
|
+
--color-taupe-50: oklch(98.6% 0.002 67.8);
|
|
390
|
+
--color-taupe-100: oklch(96% 0.002 17.2);
|
|
391
|
+
--color-taupe-200: oklch(92.2% 0.005 34.3);
|
|
392
|
+
--color-taupe-300: oklch(86.8% 0.007 39.5);
|
|
393
|
+
--color-taupe-400: oklch(71.4% 0.014 41.2);
|
|
394
|
+
--color-taupe-500: oklch(54.7% 0.021 43.1);
|
|
395
|
+
--color-taupe-600: oklch(43.8% 0.017 39.3);
|
|
396
|
+
--color-taupe-700: oklch(36.7% 0.016 35.7);
|
|
397
|
+
--color-taupe-800: oklch(26.8% 0.011 36.5);
|
|
398
|
+
--color-taupe-900: oklch(21.4% 0.009 43.1);
|
|
399
|
+
--color-taupe-950: oklch(14.7% 0.004 49.3);
|
|
400
|
+
|
|
401
|
+
--color-black: #000;
|
|
402
|
+
--color-white: #fff;
|
|
403
|
+
|
|
404
|
+
--spacing: 0.25rem;
|
|
405
|
+
|
|
406
|
+
--breakpoint-sm: 40rem;
|
|
407
|
+
--breakpoint-md: 48rem;
|
|
408
|
+
--breakpoint-lg: 64rem;
|
|
409
|
+
--breakpoint-xl: 80rem;
|
|
410
|
+
--breakpoint-2xl: 96rem;
|
|
411
|
+
|
|
412
|
+
--container-3xs: 16rem;
|
|
413
|
+
--container-2xs: 18rem;
|
|
414
|
+
--container-xs: 20rem;
|
|
415
|
+
--container-sm: 24rem;
|
|
416
|
+
--container-md: 28rem;
|
|
417
|
+
--container-lg: 32rem;
|
|
418
|
+
--container-xl: 36rem;
|
|
419
|
+
--container-2xl: 42rem;
|
|
420
|
+
--container-3xl: 48rem;
|
|
421
|
+
--container-4xl: 56rem;
|
|
422
|
+
--container-5xl: 64rem;
|
|
423
|
+
--container-6xl: 72rem;
|
|
424
|
+
--container-7xl: 80rem;
|
|
425
|
+
|
|
426
|
+
--text-xs: 0.75rem;
|
|
427
|
+
--text-xs--line-height: calc(1 / 0.75);
|
|
428
|
+
--text-sm: 0.875rem;
|
|
429
|
+
--text-sm--line-height: calc(1.25 / 0.875);
|
|
430
|
+
--text-base: 1rem;
|
|
431
|
+
--text-base--line-height: calc(1.5 / 1);
|
|
432
|
+
--text-lg: 1.125rem;
|
|
433
|
+
--text-lg--line-height: calc(1.75 / 1.125);
|
|
434
|
+
--text-xl: 1.25rem;
|
|
435
|
+
--text-xl--line-height: calc(1.75 / 1.25);
|
|
436
|
+
--text-2xl: 1.5rem;
|
|
437
|
+
--text-2xl--line-height: calc(2 / 1.5);
|
|
438
|
+
--text-3xl: 1.875rem;
|
|
439
|
+
--text-3xl--line-height: calc(2.25 / 1.875);
|
|
440
|
+
--text-4xl: 2.25rem;
|
|
441
|
+
--text-4xl--line-height: calc(2.5 / 2.25);
|
|
442
|
+
--text-5xl: 3rem;
|
|
443
|
+
--text-5xl--line-height: 1;
|
|
444
|
+
--text-6xl: 3.75rem;
|
|
445
|
+
--text-6xl--line-height: 1;
|
|
446
|
+
--text-7xl: 4.5rem;
|
|
447
|
+
--text-7xl--line-height: 1;
|
|
448
|
+
--text-8xl: 6rem;
|
|
449
|
+
--text-8xl--line-height: 1;
|
|
450
|
+
--text-9xl: 8rem;
|
|
451
|
+
--text-9xl--line-height: 1;
|
|
452
|
+
|
|
453
|
+
--font-weight-thin: 100;
|
|
454
|
+
--font-weight-extralight: 200;
|
|
455
|
+
--font-weight-light: 300;
|
|
456
|
+
--font-weight-normal: 400;
|
|
457
|
+
--font-weight-medium: 500;
|
|
458
|
+
--font-weight-semibold: 600;
|
|
459
|
+
--font-weight-bold: 700;
|
|
460
|
+
--font-weight-extrabold: 800;
|
|
461
|
+
--font-weight-black: 900;
|
|
462
|
+
|
|
463
|
+
--tracking-tighter: -0.05em;
|
|
464
|
+
--tracking-tight: -0.025em;
|
|
465
|
+
--tracking-normal: 0em;
|
|
466
|
+
--tracking-wide: 0.025em;
|
|
467
|
+
--tracking-wider: 0.05em;
|
|
468
|
+
--tracking-widest: 0.1em;
|
|
469
|
+
|
|
470
|
+
--leading-tight: 1.25;
|
|
471
|
+
--leading-snug: 1.375;
|
|
472
|
+
--leading-normal: 1.5;
|
|
473
|
+
--leading-relaxed: 1.625;
|
|
474
|
+
--leading-loose: 2;
|
|
475
|
+
|
|
476
|
+
--radius-xs: 0.125rem;
|
|
477
|
+
--radius-sm: 0.25rem;
|
|
478
|
+
--radius-md: 0.375rem;
|
|
479
|
+
--radius-lg: 0.5rem;
|
|
480
|
+
--radius-xl: 0.75rem;
|
|
481
|
+
--radius-2xl: 1rem;
|
|
482
|
+
--radius-3xl: 1.5rem;
|
|
483
|
+
--radius-4xl: 2rem;
|
|
484
|
+
|
|
485
|
+
--shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
|
|
486
|
+
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
487
|
+
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
488
|
+
--shadow-md:
|
|
489
|
+
0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
490
|
+
--shadow-lg:
|
|
491
|
+
0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
492
|
+
--shadow-xl:
|
|
493
|
+
0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
494
|
+
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
495
|
+
|
|
496
|
+
--inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05);
|
|
497
|
+
--inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / 0.05);
|
|
498
|
+
--inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);
|
|
499
|
+
|
|
500
|
+
--drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05);
|
|
501
|
+
--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15);
|
|
502
|
+
--drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12);
|
|
503
|
+
--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15);
|
|
504
|
+
--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);
|
|
505
|
+
--drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);
|
|
506
|
+
|
|
507
|
+
--text-shadow-2xs: 0px 1px 0px rgb(0 0 0 / 0.15);
|
|
508
|
+
--text-shadow-xs: 0px 1px 1px rgb(0 0 0 / 0.2);
|
|
509
|
+
--text-shadow-sm:
|
|
510
|
+
0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075),
|
|
511
|
+
0px 2px 2px rgb(0 0 0 / 0.075);
|
|
512
|
+
--text-shadow-md:
|
|
513
|
+
0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1),
|
|
514
|
+
0px 2px 4px rgb(0 0 0 / 0.1);
|
|
515
|
+
--text-shadow-lg:
|
|
516
|
+
0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1),
|
|
517
|
+
0px 4px 8px rgb(0 0 0 / 0.1);
|
|
518
|
+
|
|
519
|
+
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
520
|
+
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
521
|
+
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
522
|
+
|
|
523
|
+
--animate-spin: spin 1s linear infinite;
|
|
524
|
+
--animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
525
|
+
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
526
|
+
--animate-bounce: bounce 1s infinite;
|
|
527
|
+
|
|
528
|
+
@keyframes spin {
|
|
529
|
+
to {
|
|
530
|
+
transform: rotate(360deg);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
@keyframes ping {
|
|
535
|
+
75%,
|
|
536
|
+
100% {
|
|
537
|
+
transform: scale(2);
|
|
538
|
+
opacity: 0;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
@keyframes pulse {
|
|
543
|
+
50% {
|
|
544
|
+
opacity: 0.5;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
@keyframes bounce {
|
|
549
|
+
0%,
|
|
550
|
+
100% {
|
|
551
|
+
transform: translateY(-25%);
|
|
552
|
+
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
50% {
|
|
556
|
+
transform: none;
|
|
557
|
+
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
--blur-xs: 4px;
|
|
562
|
+
--blur-sm: 8px;
|
|
563
|
+
--blur-md: 12px;
|
|
564
|
+
--blur-lg: 16px;
|
|
565
|
+
--blur-xl: 24px;
|
|
566
|
+
--blur-2xl: 40px;
|
|
567
|
+
--blur-3xl: 64px;
|
|
568
|
+
|
|
569
|
+
--perspective-dramatic: 100px;
|
|
570
|
+
--perspective-near: 300px;
|
|
571
|
+
--perspective-normal: 500px;
|
|
572
|
+
--perspective-midrange: 800px;
|
|
573
|
+
--perspective-distant: 1200px;
|
|
574
|
+
|
|
575
|
+
--aspect-video: 16 / 9;
|
|
576
|
+
|
|
577
|
+
--default-transition-duration: 150ms;
|
|
578
|
+
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
579
|
+
--default-font-family: --theme(--font-sans, initial);
|
|
580
|
+
--default-font-feature-settings: --theme(
|
|
581
|
+
--font-sans--font-feature-settings,
|
|
582
|
+
initial
|
|
583
|
+
);
|
|
584
|
+
--default-font-variation-settings: --theme(
|
|
585
|
+
--font-sans--font-variation-settings,
|
|
586
|
+
initial
|
|
587
|
+
);
|
|
588
|
+
--default-mono-font-family: --theme(--font-mono, initial);
|
|
589
|
+
--default-mono-font-feature-settings: --theme(
|
|
590
|
+
--font-mono--font-feature-settings,
|
|
591
|
+
initial
|
|
592
|
+
);
|
|
593
|
+
--default-mono-font-variation-settings: --theme(
|
|
594
|
+
--font-mono--font-variation-settings,
|
|
595
|
+
initial
|
|
596
|
+
);
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/* Deprecated */
|
|
600
|
+
@theme default inline reference {
|
|
601
|
+
--blur: 8px;
|
|
602
|
+
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
603
|
+
--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
|
604
|
+
--drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);
|
|
605
|
+
--radius: 0.25rem;
|
|
606
|
+
--max-width-prose: 65ch;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
@layer base {
|
|
611
|
+
/*
|
|
612
|
+
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
613
|
+
2. Remove default margins and padding
|
|
614
|
+
3. Reset all borders.
|
|
615
|
+
*/
|
|
616
|
+
|
|
617
|
+
*,
|
|
618
|
+
::after,
|
|
619
|
+
::before,
|
|
620
|
+
::backdrop,
|
|
621
|
+
::file-selector-button {
|
|
622
|
+
box-sizing: border-box; /* 1 */
|
|
623
|
+
margin: 0; /* 2 */
|
|
624
|
+
padding: 0; /* 2 */
|
|
625
|
+
border: 0 solid; /* 3 */
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/*
|
|
629
|
+
1. Use a consistent sensible line-height in all browsers.
|
|
630
|
+
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
631
|
+
3. Use a more readable tab size.
|
|
632
|
+
4. Use the user's configured \`sans\` font-family by default.
|
|
633
|
+
5. Use the user's configured \`sans\` font-feature-settings by default.
|
|
634
|
+
6. Use the user's configured \`sans\` font-variation-settings by default.
|
|
635
|
+
7. Disable tap highlights on iOS.
|
|
636
|
+
*/
|
|
637
|
+
|
|
638
|
+
html,
|
|
639
|
+
:host {
|
|
640
|
+
line-height: 1.5; /* 1 */
|
|
641
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
642
|
+
tab-size: 4; /* 3 */
|
|
643
|
+
font-family: --theme(
|
|
644
|
+
--default-font-family,
|
|
645
|
+
-apple-system,
|
|
646
|
+
BlinkMacSystemFont,
|
|
647
|
+
"Segoe UI",
|
|
648
|
+
Roboto,
|
|
649
|
+
"Helvetica Neue",
|
|
650
|
+
"Noto Sans",
|
|
651
|
+
Arial,
|
|
652
|
+
sans-serif,
|
|
653
|
+
"Apple Color Emoji",
|
|
654
|
+
"Segoe UI Emoji",
|
|
655
|
+
"Segoe UI Symbol",
|
|
656
|
+
"Noto Color Emoji"
|
|
657
|
+
); /* 4 */
|
|
658
|
+
font-feature-settings: --theme(
|
|
659
|
+
--default-font-feature-settings,
|
|
660
|
+
normal
|
|
661
|
+
); /* 5 */
|
|
662
|
+
font-variation-settings: --theme(
|
|
663
|
+
--default-font-variation-settings,
|
|
664
|
+
normal
|
|
665
|
+
); /* 6 */
|
|
666
|
+
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/*
|
|
670
|
+
1. Add the correct height in Firefox.
|
|
671
|
+
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
672
|
+
3. Reset the default border style to a 1px solid border.
|
|
673
|
+
*/
|
|
674
|
+
|
|
675
|
+
hr {
|
|
676
|
+
height: 0; /* 1 */
|
|
677
|
+
color: inherit; /* 2 */
|
|
678
|
+
border-top-width: 1px; /* 3 */
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/*
|
|
682
|
+
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
683
|
+
*/
|
|
684
|
+
|
|
685
|
+
abbr:where([title]) {
|
|
686
|
+
-webkit-text-decoration: underline dotted;
|
|
687
|
+
text-decoration: underline dotted;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/*
|
|
691
|
+
Remove the default font size and weight for headings.
|
|
692
|
+
*/
|
|
693
|
+
|
|
694
|
+
h1,
|
|
695
|
+
h2,
|
|
696
|
+
h3,
|
|
697
|
+
h4,
|
|
698
|
+
h5,
|
|
699
|
+
h6 {
|
|
700
|
+
font-size: inherit;
|
|
701
|
+
font-weight: inherit;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/*
|
|
705
|
+
Reset links to optimize for opt-in styling instead of opt-out.
|
|
706
|
+
*/
|
|
707
|
+
|
|
708
|
+
a {
|
|
709
|
+
color: inherit;
|
|
710
|
+
-webkit-text-decoration: inherit;
|
|
711
|
+
text-decoration: inherit;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/*
|
|
715
|
+
Add the correct font weight in Edge and Safari.
|
|
716
|
+
*/
|
|
717
|
+
|
|
718
|
+
b,
|
|
719
|
+
strong {
|
|
720
|
+
font-weight: bolder;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/*
|
|
724
|
+
1. Use the user's configured \`mono\` font-family by default.
|
|
725
|
+
2. Use the user's configured \`mono\` font-feature-settings by default.
|
|
726
|
+
3. Use the user's configured \`mono\` font-variation-settings by default.
|
|
727
|
+
4. Correct the odd \`em\` font sizing in all browsers.
|
|
728
|
+
*/
|
|
729
|
+
|
|
730
|
+
code,
|
|
731
|
+
kbd,
|
|
732
|
+
samp,
|
|
733
|
+
pre {
|
|
734
|
+
font-family: --theme(
|
|
735
|
+
--default-mono-font-family,
|
|
736
|
+
ui-monospace,
|
|
737
|
+
SFMono-Regular,
|
|
738
|
+
Menlo,
|
|
739
|
+
Monaco,
|
|
740
|
+
Consolas,
|
|
741
|
+
"Liberation Mono",
|
|
742
|
+
"Courier New",
|
|
743
|
+
monospace
|
|
744
|
+
); /* 1 */
|
|
745
|
+
font-feature-settings: --theme(
|
|
746
|
+
--default-mono-font-feature-settings,
|
|
747
|
+
normal
|
|
748
|
+
); /* 2 */
|
|
749
|
+
font-variation-settings: --theme(
|
|
750
|
+
--default-mono-font-variation-settings,
|
|
751
|
+
normal
|
|
752
|
+
); /* 3 */
|
|
753
|
+
font-size: 1em; /* 4 */
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/*
|
|
757
|
+
Add the correct font size in all browsers.
|
|
758
|
+
*/
|
|
759
|
+
|
|
760
|
+
small {
|
|
761
|
+
font-size: 80%;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/*
|
|
765
|
+
Prevent \`sub\` and \`sup\` elements from affecting the line height in all browsers.
|
|
766
|
+
*/
|
|
767
|
+
|
|
768
|
+
sub,
|
|
769
|
+
sup {
|
|
770
|
+
font-size: 75%;
|
|
771
|
+
line-height: 0;
|
|
772
|
+
position: relative;
|
|
773
|
+
vertical-align: baseline;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
sub {
|
|
777
|
+
bottom: -0.25em;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
sup {
|
|
781
|
+
top: -0.5em;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
/*
|
|
785
|
+
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
|
786
|
+
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
787
|
+
3. Remove gaps between table borders by default.
|
|
788
|
+
*/
|
|
789
|
+
|
|
790
|
+
table {
|
|
791
|
+
text-indent: 0; /* 1 */
|
|
792
|
+
border-color: inherit; /* 2 */
|
|
793
|
+
border-collapse: collapse; /* 3 */
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/*
|
|
797
|
+
Use the modern Firefox focus style for all focusable elements.
|
|
798
|
+
*/
|
|
799
|
+
|
|
800
|
+
:-moz-focusring:where(:not(iframe)) {
|
|
801
|
+
outline: auto;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
/*
|
|
805
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
|
806
|
+
*/
|
|
807
|
+
|
|
808
|
+
progress {
|
|
809
|
+
vertical-align: baseline;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
/*
|
|
813
|
+
Add the correct display in Chrome and Safari.
|
|
814
|
+
*/
|
|
815
|
+
|
|
816
|
+
summary {
|
|
817
|
+
display: list-item;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/*
|
|
821
|
+
Make lists unstyled by default.
|
|
822
|
+
*/
|
|
823
|
+
|
|
824
|
+
ol,
|
|
825
|
+
ul,
|
|
826
|
+
menu {
|
|
827
|
+
list-style: none;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
/*
|
|
831
|
+
1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
832
|
+
2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
833
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
834
|
+
*/
|
|
835
|
+
|
|
836
|
+
img,
|
|
837
|
+
svg,
|
|
838
|
+
video,
|
|
839
|
+
canvas,
|
|
840
|
+
audio,
|
|
841
|
+
iframe,
|
|
842
|
+
embed,
|
|
843
|
+
object {
|
|
844
|
+
display: block; /* 1 */
|
|
845
|
+
vertical-align: middle; /* 2 */
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
/*
|
|
849
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
850
|
+
*/
|
|
851
|
+
|
|
852
|
+
img,
|
|
853
|
+
video {
|
|
854
|
+
max-width: 100%;
|
|
855
|
+
height: auto;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
/*
|
|
859
|
+
1. Inherit font styles in all browsers.
|
|
860
|
+
2. Remove border radius in all browsers.
|
|
861
|
+
3. Remove background color in all browsers.
|
|
862
|
+
4. Ensure consistent opacity for disabled states in all browsers.
|
|
863
|
+
*/
|
|
864
|
+
|
|
865
|
+
button,
|
|
866
|
+
input,
|
|
867
|
+
select,
|
|
868
|
+
optgroup,
|
|
869
|
+
textarea,
|
|
870
|
+
::file-selector-button {
|
|
871
|
+
font: inherit; /* 1 */
|
|
872
|
+
font-feature-settings: inherit; /* 1 */
|
|
873
|
+
font-variation-settings: inherit; /* 1 */
|
|
874
|
+
letter-spacing: inherit; /* 1 */
|
|
875
|
+
color: inherit; /* 1 */
|
|
876
|
+
border-radius: 0; /* 2 */
|
|
877
|
+
background-color: transparent; /* 3 */
|
|
878
|
+
opacity: 1; /* 4 */
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
/*
|
|
882
|
+
Restore default font weight.
|
|
883
|
+
*/
|
|
884
|
+
|
|
885
|
+
:where(select:is([multiple], [size])) optgroup {
|
|
886
|
+
font-weight: bolder;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/*
|
|
890
|
+
Restore indentation.
|
|
891
|
+
*/
|
|
892
|
+
|
|
893
|
+
:where(select:is([multiple], [size])) optgroup option {
|
|
894
|
+
padding-inline-start: 20px;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
/*
|
|
898
|
+
Restore space after button.
|
|
899
|
+
*/
|
|
900
|
+
|
|
901
|
+
::file-selector-button {
|
|
902
|
+
margin-inline-end: 4px;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
/*
|
|
906
|
+
Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
|
907
|
+
*/
|
|
908
|
+
|
|
909
|
+
::placeholder {
|
|
910
|
+
opacity: 1;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
/*
|
|
914
|
+
Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
|
|
915
|
+
crash when using \`color-mix(…)\` with \`currentcolor\`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
|
|
916
|
+
*/
|
|
917
|
+
|
|
918
|
+
@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
|
|
919
|
+
(contain-intrinsic-size: 1px) /* Safari 17+ */ {
|
|
920
|
+
::placeholder {
|
|
921
|
+
color: color-mix(in oklab, currentcolor 50%, transparent);
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
/*
|
|
926
|
+
Prevent resizing textareas horizontally by default.
|
|
927
|
+
*/
|
|
928
|
+
|
|
929
|
+
textarea {
|
|
930
|
+
resize: vertical;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
/*
|
|
934
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
|
935
|
+
*/
|
|
936
|
+
|
|
937
|
+
::-webkit-search-decoration {
|
|
938
|
+
-webkit-appearance: none;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
/*
|
|
942
|
+
1. Ensure date/time inputs have the same height when empty in iOS Safari.
|
|
943
|
+
2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
|
|
944
|
+
*/
|
|
945
|
+
|
|
946
|
+
::-webkit-date-and-time-value {
|
|
947
|
+
min-height: 1lh; /* 1 */
|
|
948
|
+
text-align: inherit; /* 2 */
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
/*
|
|
952
|
+
Prevent height from changing on date/time inputs in macOS Safari when the input is set to \`display: block\`.
|
|
953
|
+
*/
|
|
954
|
+
|
|
955
|
+
::-webkit-datetime-edit {
|
|
956
|
+
display: inline-flex;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
/*
|
|
960
|
+
Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
|
|
961
|
+
*/
|
|
962
|
+
|
|
963
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
964
|
+
padding: 0;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
::-webkit-datetime-edit,
|
|
968
|
+
::-webkit-datetime-edit-year-field,
|
|
969
|
+
::-webkit-datetime-edit-month-field,
|
|
970
|
+
::-webkit-datetime-edit-day-field,
|
|
971
|
+
::-webkit-datetime-edit-hour-field,
|
|
972
|
+
::-webkit-datetime-edit-minute-field,
|
|
973
|
+
::-webkit-datetime-edit-second-field,
|
|
974
|
+
::-webkit-datetime-edit-millisecond-field,
|
|
975
|
+
::-webkit-datetime-edit-meridiem-field {
|
|
976
|
+
padding-block: 0;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/*
|
|
980
|
+
Center dropdown marker shown on inputs with paired \`<datalist>\`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
|
|
981
|
+
*/
|
|
982
|
+
|
|
983
|
+
::-webkit-calendar-picker-indicator {
|
|
984
|
+
line-height: 1;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
/*
|
|
988
|
+
Remove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
|
989
|
+
*/
|
|
990
|
+
|
|
991
|
+
:-moz-ui-invalid {
|
|
992
|
+
box-shadow: none;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
/*
|
|
996
|
+
Correct the inability to style the border radius in iOS Safari.
|
|
997
|
+
*/
|
|
998
|
+
|
|
999
|
+
button,
|
|
1000
|
+
input:where([type="button"], [type="reset"], [type="submit"]),
|
|
1001
|
+
::file-selector-button {
|
|
1002
|
+
appearance: button;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
/*
|
|
1006
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
|
1007
|
+
*/
|
|
1008
|
+
|
|
1009
|
+
::-webkit-inner-spin-button,
|
|
1010
|
+
::-webkit-outer-spin-button {
|
|
1011
|
+
height: auto;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
/*
|
|
1015
|
+
Make elements with the HTML hidden attribute stay hidden by default.
|
|
1016
|
+
*/
|
|
1017
|
+
|
|
1018
|
+
[hidden]:where(:not([hidden="until-found"])) {
|
|
1019
|
+
display: none !important;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
@layer utilities {
|
|
1024
|
+
@tailwind utilities;
|
|
1025
|
+
}
|
|
1026
|
+
`,Wl=`/*
|
|
1027
|
+
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
1028
|
+
2. Remove default margins and padding
|
|
1029
|
+
3. Reset all borders.
|
|
1030
|
+
*/
|
|
1031
|
+
|
|
1032
|
+
*,
|
|
1033
|
+
::after,
|
|
1034
|
+
::before,
|
|
1035
|
+
::backdrop,
|
|
1036
|
+
::file-selector-button {
|
|
1037
|
+
box-sizing: border-box; /* 1 */
|
|
1038
|
+
margin: 0; /* 2 */
|
|
1039
|
+
padding: 0; /* 2 */
|
|
1040
|
+
border: 0 solid; /* 3 */
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/*
|
|
1044
|
+
1. Use a consistent sensible line-height in all browsers.
|
|
1045
|
+
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
1046
|
+
3. Use a more readable tab size.
|
|
1047
|
+
4. Use the user's configured \`sans\` font-family by default.
|
|
1048
|
+
5. Use the user's configured \`sans\` font-feature-settings by default.
|
|
1049
|
+
6. Use the user's configured \`sans\` font-variation-settings by default.
|
|
1050
|
+
7. Disable tap highlights on iOS.
|
|
1051
|
+
*/
|
|
1052
|
+
|
|
1053
|
+
html,
|
|
1054
|
+
:host {
|
|
1055
|
+
line-height: 1.5; /* 1 */
|
|
1056
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
1057
|
+
tab-size: 4; /* 3 */
|
|
1058
|
+
font-family: --theme(
|
|
1059
|
+
--default-font-family,
|
|
1060
|
+
-apple-system,
|
|
1061
|
+
BlinkMacSystemFont,
|
|
1062
|
+
'Segoe UI',
|
|
1063
|
+
Roboto,
|
|
1064
|
+
'Helvetica Neue',
|
|
1065
|
+
'Noto Sans',
|
|
1066
|
+
Arial,
|
|
1067
|
+
sans-serif,
|
|
1068
|
+
'Apple Color Emoji',
|
|
1069
|
+
'Segoe UI Emoji',
|
|
1070
|
+
'Segoe UI Symbol',
|
|
1071
|
+
'Noto Color Emoji'
|
|
1072
|
+
); /* 4 */
|
|
1073
|
+
font-feature-settings: --theme(--default-font-feature-settings, normal); /* 5 */
|
|
1074
|
+
font-variation-settings: --theme(--default-font-variation-settings, normal); /* 6 */
|
|
1075
|
+
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
/*
|
|
1079
|
+
1. Add the correct height in Firefox.
|
|
1080
|
+
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
1081
|
+
3. Reset the default border style to a 1px solid border.
|
|
1082
|
+
*/
|
|
1083
|
+
|
|
1084
|
+
hr {
|
|
1085
|
+
height: 0; /* 1 */
|
|
1086
|
+
color: inherit; /* 2 */
|
|
1087
|
+
border-top-width: 1px; /* 3 */
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/*
|
|
1091
|
+
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
1092
|
+
*/
|
|
1093
|
+
|
|
1094
|
+
abbr:where([title]) {
|
|
1095
|
+
-webkit-text-decoration: underline dotted;
|
|
1096
|
+
text-decoration: underline dotted;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
/*
|
|
1100
|
+
Remove the default font size and weight for headings.
|
|
1101
|
+
*/
|
|
1102
|
+
|
|
1103
|
+
h1,
|
|
1104
|
+
h2,
|
|
1105
|
+
h3,
|
|
1106
|
+
h4,
|
|
1107
|
+
h5,
|
|
1108
|
+
h6 {
|
|
1109
|
+
font-size: inherit;
|
|
1110
|
+
font-weight: inherit;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
/*
|
|
1114
|
+
Reset links to optimize for opt-in styling instead of opt-out.
|
|
1115
|
+
*/
|
|
1116
|
+
|
|
1117
|
+
a {
|
|
1118
|
+
color: inherit;
|
|
1119
|
+
-webkit-text-decoration: inherit;
|
|
1120
|
+
text-decoration: inherit;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
/*
|
|
1124
|
+
Add the correct font weight in Edge and Safari.
|
|
1125
|
+
*/
|
|
1126
|
+
|
|
1127
|
+
b,
|
|
1128
|
+
strong {
|
|
1129
|
+
font-weight: bolder;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
/*
|
|
1133
|
+
1. Use the user's configured \`mono\` font-family by default.
|
|
1134
|
+
2. Use the user's configured \`mono\` font-feature-settings by default.
|
|
1135
|
+
3. Use the user's configured \`mono\` font-variation-settings by default.
|
|
1136
|
+
4. Correct the odd \`em\` font sizing in all browsers.
|
|
1137
|
+
*/
|
|
1138
|
+
|
|
1139
|
+
code,
|
|
1140
|
+
kbd,
|
|
1141
|
+
samp,
|
|
1142
|
+
pre {
|
|
1143
|
+
font-family: --theme(
|
|
1144
|
+
--default-mono-font-family,
|
|
1145
|
+
ui-monospace,
|
|
1146
|
+
SFMono-Regular,
|
|
1147
|
+
Menlo,
|
|
1148
|
+
Monaco,
|
|
1149
|
+
Consolas,
|
|
1150
|
+
'Liberation Mono',
|
|
1151
|
+
'Courier New',
|
|
1152
|
+
monospace
|
|
1153
|
+
); /* 1 */
|
|
1154
|
+
font-feature-settings: --theme(--default-mono-font-feature-settings, normal); /* 2 */
|
|
1155
|
+
font-variation-settings: --theme(--default-mono-font-variation-settings, normal); /* 3 */
|
|
1156
|
+
font-size: 1em; /* 4 */
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
/*
|
|
1160
|
+
Add the correct font size in all browsers.
|
|
1161
|
+
*/
|
|
1162
|
+
|
|
1163
|
+
small {
|
|
1164
|
+
font-size: 80%;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/*
|
|
1168
|
+
Prevent \`sub\` and \`sup\` elements from affecting the line height in all browsers.
|
|
1169
|
+
*/
|
|
1170
|
+
|
|
1171
|
+
sub,
|
|
1172
|
+
sup {
|
|
1173
|
+
font-size: 75%;
|
|
1174
|
+
line-height: 0;
|
|
1175
|
+
position: relative;
|
|
1176
|
+
vertical-align: baseline;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
sub {
|
|
1180
|
+
bottom: -0.25em;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
sup {
|
|
1184
|
+
top: -0.5em;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
/*
|
|
1188
|
+
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
|
1189
|
+
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
1190
|
+
3. Remove gaps between table borders by default.
|
|
1191
|
+
*/
|
|
1192
|
+
|
|
1193
|
+
table {
|
|
1194
|
+
text-indent: 0; /* 1 */
|
|
1195
|
+
border-color: inherit; /* 2 */
|
|
1196
|
+
border-collapse: collapse; /* 3 */
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
/*
|
|
1200
|
+
Use the modern Firefox focus style for all focusable elements.
|
|
1201
|
+
*/
|
|
1202
|
+
|
|
1203
|
+
:-moz-focusring:where(:not(iframe)) {
|
|
1204
|
+
outline: auto;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
/*
|
|
1208
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
|
1209
|
+
*/
|
|
1210
|
+
|
|
1211
|
+
progress {
|
|
1212
|
+
vertical-align: baseline;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
/*
|
|
1216
|
+
Add the correct display in Chrome and Safari.
|
|
1217
|
+
*/
|
|
1218
|
+
|
|
1219
|
+
summary {
|
|
1220
|
+
display: list-item;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
/*
|
|
1224
|
+
Make lists unstyled by default.
|
|
1225
|
+
*/
|
|
1226
|
+
|
|
1227
|
+
ol,
|
|
1228
|
+
ul,
|
|
1229
|
+
menu {
|
|
1230
|
+
list-style: none;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
/*
|
|
1234
|
+
1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
1235
|
+
2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
1236
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
1237
|
+
*/
|
|
1238
|
+
|
|
1239
|
+
img,
|
|
1240
|
+
svg,
|
|
1241
|
+
video,
|
|
1242
|
+
canvas,
|
|
1243
|
+
audio,
|
|
1244
|
+
iframe,
|
|
1245
|
+
embed,
|
|
1246
|
+
object {
|
|
1247
|
+
display: block; /* 1 */
|
|
1248
|
+
vertical-align: middle; /* 2 */
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
/*
|
|
1252
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
1253
|
+
*/
|
|
1254
|
+
|
|
1255
|
+
img,
|
|
1256
|
+
video {
|
|
1257
|
+
max-width: 100%;
|
|
1258
|
+
height: auto;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
/*
|
|
1262
|
+
1. Inherit font styles in all browsers.
|
|
1263
|
+
2. Remove border radius in all browsers.
|
|
1264
|
+
3. Remove background color in all browsers.
|
|
1265
|
+
4. Ensure consistent opacity for disabled states in all browsers.
|
|
1266
|
+
*/
|
|
1267
|
+
|
|
1268
|
+
button,
|
|
1269
|
+
input,
|
|
1270
|
+
select,
|
|
1271
|
+
optgroup,
|
|
1272
|
+
textarea,
|
|
1273
|
+
::file-selector-button {
|
|
1274
|
+
font: inherit; /* 1 */
|
|
1275
|
+
font-feature-settings: inherit; /* 1 */
|
|
1276
|
+
font-variation-settings: inherit; /* 1 */
|
|
1277
|
+
letter-spacing: inherit; /* 1 */
|
|
1278
|
+
color: inherit; /* 1 */
|
|
1279
|
+
border-radius: 0; /* 2 */
|
|
1280
|
+
background-color: transparent; /* 3 */
|
|
1281
|
+
opacity: 1; /* 4 */
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
/*
|
|
1285
|
+
Restore default font weight.
|
|
1286
|
+
*/
|
|
1287
|
+
|
|
1288
|
+
:where(select:is([multiple], [size])) optgroup {
|
|
1289
|
+
font-weight: bolder;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
/*
|
|
1293
|
+
Restore indentation.
|
|
1294
|
+
*/
|
|
1295
|
+
|
|
1296
|
+
:where(select:is([multiple], [size])) optgroup option {
|
|
1297
|
+
padding-inline-start: 20px;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
/*
|
|
1301
|
+
Restore space after button.
|
|
1302
|
+
*/
|
|
1303
|
+
|
|
1304
|
+
::file-selector-button {
|
|
1305
|
+
margin-inline-end: 4px;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
/*
|
|
1309
|
+
Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
|
1310
|
+
*/
|
|
1311
|
+
|
|
1312
|
+
::placeholder {
|
|
1313
|
+
opacity: 1;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
/*
|
|
1317
|
+
Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
|
|
1318
|
+
crash when using \`color-mix(…)\` with \`currentcolor\`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
|
|
1319
|
+
*/
|
|
1320
|
+
|
|
1321
|
+
@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
|
|
1322
|
+
(contain-intrinsic-size: 1px) /* Safari 17+ */ {
|
|
1323
|
+
::placeholder {
|
|
1324
|
+
color: color-mix(in oklab, currentcolor 50%, transparent);
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
/*
|
|
1329
|
+
Prevent resizing textareas horizontally by default.
|
|
1330
|
+
*/
|
|
1331
|
+
|
|
1332
|
+
textarea {
|
|
1333
|
+
resize: vertical;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
/*
|
|
1337
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
|
1338
|
+
*/
|
|
1339
|
+
|
|
1340
|
+
::-webkit-search-decoration {
|
|
1341
|
+
-webkit-appearance: none;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
/*
|
|
1345
|
+
1. Ensure date/time inputs have the same height when empty in iOS Safari.
|
|
1346
|
+
2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
|
|
1347
|
+
*/
|
|
1348
|
+
|
|
1349
|
+
::-webkit-date-and-time-value {
|
|
1350
|
+
min-height: 1lh; /* 1 */
|
|
1351
|
+
text-align: inherit; /* 2 */
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
/*
|
|
1355
|
+
Prevent height from changing on date/time inputs in macOS Safari when the input is set to \`display: block\`.
|
|
1356
|
+
*/
|
|
1357
|
+
|
|
1358
|
+
::-webkit-datetime-edit {
|
|
1359
|
+
display: inline-flex;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
/*
|
|
1363
|
+
Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
|
|
1364
|
+
*/
|
|
1365
|
+
|
|
1366
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
1367
|
+
padding: 0;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
::-webkit-datetime-edit,
|
|
1371
|
+
::-webkit-datetime-edit-year-field,
|
|
1372
|
+
::-webkit-datetime-edit-month-field,
|
|
1373
|
+
::-webkit-datetime-edit-day-field,
|
|
1374
|
+
::-webkit-datetime-edit-hour-field,
|
|
1375
|
+
::-webkit-datetime-edit-minute-field,
|
|
1376
|
+
::-webkit-datetime-edit-second-field,
|
|
1377
|
+
::-webkit-datetime-edit-millisecond-field,
|
|
1378
|
+
::-webkit-datetime-edit-meridiem-field {
|
|
1379
|
+
padding-block: 0;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
/*
|
|
1383
|
+
Center dropdown marker shown on inputs with paired \`<datalist>\`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
|
|
1384
|
+
*/
|
|
1385
|
+
|
|
1386
|
+
::-webkit-calendar-picker-indicator {
|
|
1387
|
+
line-height: 1;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
/*
|
|
1391
|
+
Remove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
|
1392
|
+
*/
|
|
1393
|
+
|
|
1394
|
+
:-moz-ui-invalid {
|
|
1395
|
+
box-shadow: none;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
/*
|
|
1399
|
+
Correct the inability to style the border radius in iOS Safari.
|
|
1400
|
+
*/
|
|
1401
|
+
|
|
1402
|
+
button,
|
|
1403
|
+
input:where([type='button'], [type='reset'], [type='submit']),
|
|
1404
|
+
::file-selector-button {
|
|
1405
|
+
appearance: button;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
/*
|
|
1409
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
|
1410
|
+
*/
|
|
1411
|
+
|
|
1412
|
+
::-webkit-inner-spin-button,
|
|
1413
|
+
::-webkit-outer-spin-button {
|
|
1414
|
+
height: auto;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/*
|
|
1418
|
+
Make elements with the HTML hidden attribute stay hidden by default.
|
|
1419
|
+
*/
|
|
1420
|
+
|
|
1421
|
+
[hidden]:where(:not([hidden='until-found'])) {
|
|
1422
|
+
display: none !important;
|
|
1423
|
+
}
|
|
1424
|
+
`,Gl=`@theme default {
|
|
1425
|
+
--font-sans:
|
|
1426
|
+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial,
|
|
1427
|
+
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
1428
|
+
--font-serif: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
|
|
1429
|
+
--font-mono:
|
|
1430
|
+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
|
|
1431
|
+
monospace;
|
|
1432
|
+
|
|
1433
|
+
--color-red-50: oklch(97.1% 0.013 17.38);
|
|
1434
|
+
--color-red-100: oklch(93.6% 0.032 17.717);
|
|
1435
|
+
--color-red-200: oklch(88.5% 0.062 18.334);
|
|
1436
|
+
--color-red-300: oklch(80.8% 0.114 19.571);
|
|
1437
|
+
--color-red-400: oklch(70.4% 0.191 22.216);
|
|
1438
|
+
--color-red-500: oklch(63.7% 0.237 25.331);
|
|
1439
|
+
--color-red-600: oklch(57.7% 0.245 27.325);
|
|
1440
|
+
--color-red-700: oklch(50.5% 0.213 27.518);
|
|
1441
|
+
--color-red-800: oklch(44.4% 0.177 26.899);
|
|
1442
|
+
--color-red-900: oklch(39.6% 0.141 25.723);
|
|
1443
|
+
--color-red-950: oklch(25.8% 0.092 26.042);
|
|
1444
|
+
|
|
1445
|
+
--color-orange-50: oklch(98% 0.016 73.684);
|
|
1446
|
+
--color-orange-100: oklch(95.4% 0.038 75.164);
|
|
1447
|
+
--color-orange-200: oklch(90.1% 0.076 70.697);
|
|
1448
|
+
--color-orange-300: oklch(83.7% 0.128 66.29);
|
|
1449
|
+
--color-orange-400: oklch(75% 0.183 55.934);
|
|
1450
|
+
--color-orange-500: oklch(70.5% 0.213 47.604);
|
|
1451
|
+
--color-orange-600: oklch(64.6% 0.222 41.116);
|
|
1452
|
+
--color-orange-700: oklch(55.3% 0.195 38.402);
|
|
1453
|
+
--color-orange-800: oklch(47% 0.157 37.304);
|
|
1454
|
+
--color-orange-900: oklch(40.8% 0.123 38.172);
|
|
1455
|
+
--color-orange-950: oklch(26.6% 0.079 36.259);
|
|
1456
|
+
|
|
1457
|
+
--color-amber-50: oklch(98.7% 0.022 95.277);
|
|
1458
|
+
--color-amber-100: oklch(96.2% 0.059 95.617);
|
|
1459
|
+
--color-amber-200: oklch(92.4% 0.12 95.746);
|
|
1460
|
+
--color-amber-300: oklch(87.9% 0.169 91.605);
|
|
1461
|
+
--color-amber-400: oklch(82.8% 0.189 84.429);
|
|
1462
|
+
--color-amber-500: oklch(76.9% 0.188 70.08);
|
|
1463
|
+
--color-amber-600: oklch(66.6% 0.179 58.318);
|
|
1464
|
+
--color-amber-700: oklch(55.5% 0.163 48.998);
|
|
1465
|
+
--color-amber-800: oklch(47.3% 0.137 46.201);
|
|
1466
|
+
--color-amber-900: oklch(41.4% 0.112 45.904);
|
|
1467
|
+
--color-amber-950: oklch(27.9% 0.077 45.635);
|
|
1468
|
+
|
|
1469
|
+
--color-yellow-50: oklch(98.7% 0.026 102.212);
|
|
1470
|
+
--color-yellow-100: oklch(97.3% 0.071 103.193);
|
|
1471
|
+
--color-yellow-200: oklch(94.5% 0.129 101.54);
|
|
1472
|
+
--color-yellow-300: oklch(90.5% 0.182 98.111);
|
|
1473
|
+
--color-yellow-400: oklch(85.2% 0.199 91.936);
|
|
1474
|
+
--color-yellow-500: oklch(79.5% 0.184 86.047);
|
|
1475
|
+
--color-yellow-600: oklch(68.1% 0.162 75.834);
|
|
1476
|
+
--color-yellow-700: oklch(55.4% 0.135 66.442);
|
|
1477
|
+
--color-yellow-800: oklch(47.6% 0.114 61.907);
|
|
1478
|
+
--color-yellow-900: oklch(42.1% 0.095 57.708);
|
|
1479
|
+
--color-yellow-950: oklch(28.6% 0.066 53.813);
|
|
1480
|
+
|
|
1481
|
+
--color-lime-50: oklch(98.6% 0.031 120.757);
|
|
1482
|
+
--color-lime-100: oklch(96.7% 0.067 122.328);
|
|
1483
|
+
--color-lime-200: oklch(93.8% 0.127 124.321);
|
|
1484
|
+
--color-lime-300: oklch(89.7% 0.196 126.665);
|
|
1485
|
+
--color-lime-400: oklch(84.1% 0.238 128.85);
|
|
1486
|
+
--color-lime-500: oklch(76.8% 0.233 130.85);
|
|
1487
|
+
--color-lime-600: oklch(64.8% 0.2 131.684);
|
|
1488
|
+
--color-lime-700: oklch(53.2% 0.157 131.589);
|
|
1489
|
+
--color-lime-800: oklch(45.3% 0.124 130.933);
|
|
1490
|
+
--color-lime-900: oklch(40.5% 0.101 131.063);
|
|
1491
|
+
--color-lime-950: oklch(27.4% 0.072 132.109);
|
|
1492
|
+
|
|
1493
|
+
--color-green-50: oklch(98.2% 0.018 155.826);
|
|
1494
|
+
--color-green-100: oklch(96.2% 0.044 156.743);
|
|
1495
|
+
--color-green-200: oklch(92.5% 0.084 155.995);
|
|
1496
|
+
--color-green-300: oklch(87.1% 0.15 154.449);
|
|
1497
|
+
--color-green-400: oklch(79.2% 0.209 151.711);
|
|
1498
|
+
--color-green-500: oklch(72.3% 0.219 149.579);
|
|
1499
|
+
--color-green-600: oklch(62.7% 0.194 149.214);
|
|
1500
|
+
--color-green-700: oklch(52.7% 0.154 150.069);
|
|
1501
|
+
--color-green-800: oklch(44.8% 0.119 151.328);
|
|
1502
|
+
--color-green-900: oklch(39.3% 0.095 152.535);
|
|
1503
|
+
--color-green-950: oklch(26.6% 0.065 152.934);
|
|
1504
|
+
|
|
1505
|
+
--color-emerald-50: oklch(97.9% 0.021 166.113);
|
|
1506
|
+
--color-emerald-100: oklch(95% 0.052 163.051);
|
|
1507
|
+
--color-emerald-200: oklch(90.5% 0.093 164.15);
|
|
1508
|
+
--color-emerald-300: oklch(84.5% 0.143 164.978);
|
|
1509
|
+
--color-emerald-400: oklch(76.5% 0.177 163.223);
|
|
1510
|
+
--color-emerald-500: oklch(69.6% 0.17 162.48);
|
|
1511
|
+
--color-emerald-600: oklch(59.6% 0.145 163.225);
|
|
1512
|
+
--color-emerald-700: oklch(50.8% 0.118 165.612);
|
|
1513
|
+
--color-emerald-800: oklch(43.2% 0.095 166.913);
|
|
1514
|
+
--color-emerald-900: oklch(37.8% 0.077 168.94);
|
|
1515
|
+
--color-emerald-950: oklch(26.2% 0.051 172.552);
|
|
1516
|
+
|
|
1517
|
+
--color-teal-50: oklch(98.4% 0.014 180.72);
|
|
1518
|
+
--color-teal-100: oklch(95.3% 0.051 180.801);
|
|
1519
|
+
--color-teal-200: oklch(91% 0.096 180.426);
|
|
1520
|
+
--color-teal-300: oklch(85.5% 0.138 181.071);
|
|
1521
|
+
--color-teal-400: oklch(77.7% 0.152 181.912);
|
|
1522
|
+
--color-teal-500: oklch(70.4% 0.14 182.503);
|
|
1523
|
+
--color-teal-600: oklch(60% 0.118 184.704);
|
|
1524
|
+
--color-teal-700: oklch(51.1% 0.096 186.391);
|
|
1525
|
+
--color-teal-800: oklch(43.7% 0.078 188.216);
|
|
1526
|
+
--color-teal-900: oklch(38.6% 0.063 188.416);
|
|
1527
|
+
--color-teal-950: oklch(27.7% 0.046 192.524);
|
|
1528
|
+
|
|
1529
|
+
--color-cyan-50: oklch(98.4% 0.019 200.873);
|
|
1530
|
+
--color-cyan-100: oklch(95.6% 0.045 203.388);
|
|
1531
|
+
--color-cyan-200: oklch(91.7% 0.08 205.041);
|
|
1532
|
+
--color-cyan-300: oklch(86.5% 0.127 207.078);
|
|
1533
|
+
--color-cyan-400: oklch(78.9% 0.154 211.53);
|
|
1534
|
+
--color-cyan-500: oklch(71.5% 0.143 215.221);
|
|
1535
|
+
--color-cyan-600: oklch(60.9% 0.126 221.723);
|
|
1536
|
+
--color-cyan-700: oklch(52% 0.105 223.128);
|
|
1537
|
+
--color-cyan-800: oklch(45% 0.085 224.283);
|
|
1538
|
+
--color-cyan-900: oklch(39.8% 0.07 227.392);
|
|
1539
|
+
--color-cyan-950: oklch(30.2% 0.056 229.695);
|
|
1540
|
+
|
|
1541
|
+
--color-sky-50: oklch(97.7% 0.013 236.62);
|
|
1542
|
+
--color-sky-100: oklch(95.1% 0.026 236.824);
|
|
1543
|
+
--color-sky-200: oklch(90.1% 0.058 230.902);
|
|
1544
|
+
--color-sky-300: oklch(82.8% 0.111 230.318);
|
|
1545
|
+
--color-sky-400: oklch(74.6% 0.16 232.661);
|
|
1546
|
+
--color-sky-500: oklch(68.5% 0.169 237.323);
|
|
1547
|
+
--color-sky-600: oklch(58.8% 0.158 241.966);
|
|
1548
|
+
--color-sky-700: oklch(50% 0.134 242.749);
|
|
1549
|
+
--color-sky-800: oklch(44.3% 0.11 240.79);
|
|
1550
|
+
--color-sky-900: oklch(39.1% 0.09 240.876);
|
|
1551
|
+
--color-sky-950: oklch(29.3% 0.066 243.157);
|
|
1552
|
+
|
|
1553
|
+
--color-blue-50: oklch(97% 0.014 254.604);
|
|
1554
|
+
--color-blue-100: oklch(93.2% 0.032 255.585);
|
|
1555
|
+
--color-blue-200: oklch(88.2% 0.059 254.128);
|
|
1556
|
+
--color-blue-300: oklch(80.9% 0.105 251.813);
|
|
1557
|
+
--color-blue-400: oklch(70.7% 0.165 254.624);
|
|
1558
|
+
--color-blue-500: oklch(62.3% 0.214 259.815);
|
|
1559
|
+
--color-blue-600: oklch(54.6% 0.245 262.881);
|
|
1560
|
+
--color-blue-700: oklch(48.8% 0.243 264.376);
|
|
1561
|
+
--color-blue-800: oklch(42.4% 0.199 265.638);
|
|
1562
|
+
--color-blue-900: oklch(37.9% 0.146 265.522);
|
|
1563
|
+
--color-blue-950: oklch(28.2% 0.091 267.935);
|
|
1564
|
+
|
|
1565
|
+
--color-indigo-50: oklch(96.2% 0.018 272.314);
|
|
1566
|
+
--color-indigo-100: oklch(93% 0.034 272.788);
|
|
1567
|
+
--color-indigo-200: oklch(87% 0.065 274.039);
|
|
1568
|
+
--color-indigo-300: oklch(78.5% 0.115 274.713);
|
|
1569
|
+
--color-indigo-400: oklch(67.3% 0.182 276.935);
|
|
1570
|
+
--color-indigo-500: oklch(58.5% 0.233 277.117);
|
|
1571
|
+
--color-indigo-600: oklch(51.1% 0.262 276.966);
|
|
1572
|
+
--color-indigo-700: oklch(45.7% 0.24 277.023);
|
|
1573
|
+
--color-indigo-800: oklch(39.8% 0.195 277.366);
|
|
1574
|
+
--color-indigo-900: oklch(35.9% 0.144 278.697);
|
|
1575
|
+
--color-indigo-950: oklch(25.7% 0.09 281.288);
|
|
1576
|
+
|
|
1577
|
+
--color-violet-50: oklch(96.9% 0.016 293.756);
|
|
1578
|
+
--color-violet-100: oklch(94.3% 0.029 294.588);
|
|
1579
|
+
--color-violet-200: oklch(89.4% 0.057 293.283);
|
|
1580
|
+
--color-violet-300: oklch(81.1% 0.111 293.571);
|
|
1581
|
+
--color-violet-400: oklch(70.2% 0.183 293.541);
|
|
1582
|
+
--color-violet-500: oklch(60.6% 0.25 292.717);
|
|
1583
|
+
--color-violet-600: oklch(54.1% 0.281 293.009);
|
|
1584
|
+
--color-violet-700: oklch(49.1% 0.27 292.581);
|
|
1585
|
+
--color-violet-800: oklch(43.2% 0.232 292.759);
|
|
1586
|
+
--color-violet-900: oklch(38% 0.189 293.745);
|
|
1587
|
+
--color-violet-950: oklch(28.3% 0.141 291.089);
|
|
1588
|
+
|
|
1589
|
+
--color-purple-50: oklch(97.7% 0.014 308.299);
|
|
1590
|
+
--color-purple-100: oklch(94.6% 0.033 307.174);
|
|
1591
|
+
--color-purple-200: oklch(90.2% 0.063 306.703);
|
|
1592
|
+
--color-purple-300: oklch(82.7% 0.119 306.383);
|
|
1593
|
+
--color-purple-400: oklch(71.4% 0.203 305.504);
|
|
1594
|
+
--color-purple-500: oklch(62.7% 0.265 303.9);
|
|
1595
|
+
--color-purple-600: oklch(55.8% 0.288 302.321);
|
|
1596
|
+
--color-purple-700: oklch(49.6% 0.265 301.924);
|
|
1597
|
+
--color-purple-800: oklch(43.8% 0.218 303.724);
|
|
1598
|
+
--color-purple-900: oklch(38.1% 0.176 304.987);
|
|
1599
|
+
--color-purple-950: oklch(29.1% 0.149 302.717);
|
|
1600
|
+
|
|
1601
|
+
--color-fuchsia-50: oklch(97.7% 0.017 320.058);
|
|
1602
|
+
--color-fuchsia-100: oklch(95.2% 0.037 318.852);
|
|
1603
|
+
--color-fuchsia-200: oklch(90.3% 0.076 319.62);
|
|
1604
|
+
--color-fuchsia-300: oklch(83.3% 0.145 321.434);
|
|
1605
|
+
--color-fuchsia-400: oklch(74% 0.238 322.16);
|
|
1606
|
+
--color-fuchsia-500: oklch(66.7% 0.295 322.15);
|
|
1607
|
+
--color-fuchsia-600: oklch(59.1% 0.293 322.896);
|
|
1608
|
+
--color-fuchsia-700: oklch(51.8% 0.253 323.949);
|
|
1609
|
+
--color-fuchsia-800: oklch(45.2% 0.211 324.591);
|
|
1610
|
+
--color-fuchsia-900: oklch(40.1% 0.17 325.612);
|
|
1611
|
+
--color-fuchsia-950: oklch(29.3% 0.136 325.661);
|
|
1612
|
+
|
|
1613
|
+
--color-pink-50: oklch(97.1% 0.014 343.198);
|
|
1614
|
+
--color-pink-100: oklch(94.8% 0.028 342.258);
|
|
1615
|
+
--color-pink-200: oklch(89.9% 0.061 343.231);
|
|
1616
|
+
--color-pink-300: oklch(82.3% 0.12 346.018);
|
|
1617
|
+
--color-pink-400: oklch(71.8% 0.202 349.761);
|
|
1618
|
+
--color-pink-500: oklch(65.6% 0.241 354.308);
|
|
1619
|
+
--color-pink-600: oklch(59.2% 0.249 0.584);
|
|
1620
|
+
--color-pink-700: oklch(52.5% 0.223 3.958);
|
|
1621
|
+
--color-pink-800: oklch(45.9% 0.187 3.815);
|
|
1622
|
+
--color-pink-900: oklch(40.8% 0.153 2.432);
|
|
1623
|
+
--color-pink-950: oklch(28.4% 0.109 3.907);
|
|
1624
|
+
|
|
1625
|
+
--color-rose-50: oklch(96.9% 0.015 12.422);
|
|
1626
|
+
--color-rose-100: oklch(94.1% 0.03 12.58);
|
|
1627
|
+
--color-rose-200: oklch(89.2% 0.058 10.001);
|
|
1628
|
+
--color-rose-300: oklch(81% 0.117 11.638);
|
|
1629
|
+
--color-rose-400: oklch(71.2% 0.194 13.428);
|
|
1630
|
+
--color-rose-500: oklch(64.5% 0.246 16.439);
|
|
1631
|
+
--color-rose-600: oklch(58.6% 0.253 17.585);
|
|
1632
|
+
--color-rose-700: oklch(51.4% 0.222 16.935);
|
|
1633
|
+
--color-rose-800: oklch(45.5% 0.188 13.697);
|
|
1634
|
+
--color-rose-900: oklch(41% 0.159 10.272);
|
|
1635
|
+
--color-rose-950: oklch(27.1% 0.105 12.094);
|
|
1636
|
+
|
|
1637
|
+
--color-slate-50: oklch(98.4% 0.003 247.858);
|
|
1638
|
+
--color-slate-100: oklch(96.8% 0.007 247.896);
|
|
1639
|
+
--color-slate-200: oklch(92.9% 0.013 255.508);
|
|
1640
|
+
--color-slate-300: oklch(86.9% 0.022 252.894);
|
|
1641
|
+
--color-slate-400: oklch(70.4% 0.04 256.788);
|
|
1642
|
+
--color-slate-500: oklch(55.4% 0.046 257.417);
|
|
1643
|
+
--color-slate-600: oklch(44.6% 0.043 257.281);
|
|
1644
|
+
--color-slate-700: oklch(37.2% 0.044 257.287);
|
|
1645
|
+
--color-slate-800: oklch(27.9% 0.041 260.031);
|
|
1646
|
+
--color-slate-900: oklch(20.8% 0.042 265.755);
|
|
1647
|
+
--color-slate-950: oklch(12.9% 0.042 264.695);
|
|
1648
|
+
|
|
1649
|
+
--color-gray-50: oklch(98.5% 0.002 247.839);
|
|
1650
|
+
--color-gray-100: oklch(96.7% 0.003 264.542);
|
|
1651
|
+
--color-gray-200: oklch(92.8% 0.006 264.531);
|
|
1652
|
+
--color-gray-300: oklch(87.2% 0.01 258.338);
|
|
1653
|
+
--color-gray-400: oklch(70.7% 0.022 261.325);
|
|
1654
|
+
--color-gray-500: oklch(55.1% 0.027 264.364);
|
|
1655
|
+
--color-gray-600: oklch(44.6% 0.03 256.802);
|
|
1656
|
+
--color-gray-700: oklch(37.3% 0.034 259.733);
|
|
1657
|
+
--color-gray-800: oklch(27.8% 0.033 256.848);
|
|
1658
|
+
--color-gray-900: oklch(21% 0.034 264.665);
|
|
1659
|
+
--color-gray-950: oklch(13% 0.028 261.692);
|
|
1660
|
+
|
|
1661
|
+
--color-zinc-50: oklch(98.5% 0 none);
|
|
1662
|
+
--color-zinc-100: oklch(96.7% 0.001 286.375);
|
|
1663
|
+
--color-zinc-200: oklch(92% 0.004 286.32);
|
|
1664
|
+
--color-zinc-300: oklch(87.1% 0.006 286.286);
|
|
1665
|
+
--color-zinc-400: oklch(70.5% 0.015 286.067);
|
|
1666
|
+
--color-zinc-500: oklch(55.2% 0.016 285.938);
|
|
1667
|
+
--color-zinc-600: oklch(44.2% 0.017 285.786);
|
|
1668
|
+
--color-zinc-700: oklch(37% 0.013 285.805);
|
|
1669
|
+
--color-zinc-800: oklch(27.4% 0.006 286.033);
|
|
1670
|
+
--color-zinc-900: oklch(21% 0.006 285.885);
|
|
1671
|
+
--color-zinc-950: oklch(14.1% 0.005 285.823);
|
|
1672
|
+
|
|
1673
|
+
--color-neutral-50: oklch(98.5% 0 none);
|
|
1674
|
+
--color-neutral-100: oklch(97% 0 none);
|
|
1675
|
+
--color-neutral-200: oklch(92.2% 0 none);
|
|
1676
|
+
--color-neutral-300: oklch(87% 0 none);
|
|
1677
|
+
--color-neutral-400: oklch(70.8% 0 none);
|
|
1678
|
+
--color-neutral-500: oklch(55.6% 0 none);
|
|
1679
|
+
--color-neutral-600: oklch(43.9% 0 none);
|
|
1680
|
+
--color-neutral-700: oklch(37.1% 0 none);
|
|
1681
|
+
--color-neutral-800: oklch(26.9% 0 none);
|
|
1682
|
+
--color-neutral-900: oklch(20.5% 0 none);
|
|
1683
|
+
--color-neutral-950: oklch(14.5% 0 none);
|
|
1684
|
+
|
|
1685
|
+
--color-stone-50: oklch(98.5% 0.001 106.423);
|
|
1686
|
+
--color-stone-100: oklch(97% 0.001 106.424);
|
|
1687
|
+
--color-stone-200: oklch(92.3% 0.003 48.717);
|
|
1688
|
+
--color-stone-300: oklch(86.9% 0.005 56.366);
|
|
1689
|
+
--color-stone-400: oklch(70.9% 0.01 56.259);
|
|
1690
|
+
--color-stone-500: oklch(55.3% 0.013 58.071);
|
|
1691
|
+
--color-stone-600: oklch(44.4% 0.011 73.639);
|
|
1692
|
+
--color-stone-700: oklch(37.4% 0.01 67.558);
|
|
1693
|
+
--color-stone-800: oklch(26.8% 0.007 34.298);
|
|
1694
|
+
--color-stone-900: oklch(21.6% 0.006 56.043);
|
|
1695
|
+
--color-stone-950: oklch(14.7% 0.004 49.25);
|
|
1696
|
+
|
|
1697
|
+
--color-mauve-50: oklch(98.5% 0 none);
|
|
1698
|
+
--color-mauve-100: oklch(96% 0.003 325.6);
|
|
1699
|
+
--color-mauve-200: oklch(92.2% 0.005 325.62);
|
|
1700
|
+
--color-mauve-300: oklch(86.5% 0.012 325.68);
|
|
1701
|
+
--color-mauve-400: oklch(71.1% 0.019 323.02);
|
|
1702
|
+
--color-mauve-500: oklch(54.2% 0.034 322.5);
|
|
1703
|
+
--color-mauve-600: oklch(43.5% 0.029 321.78);
|
|
1704
|
+
--color-mauve-700: oklch(36.4% 0.029 323.89);
|
|
1705
|
+
--color-mauve-800: oklch(26.3% 0.024 320.12);
|
|
1706
|
+
--color-mauve-900: oklch(21.2% 0.019 322.12);
|
|
1707
|
+
--color-mauve-950: oklch(14.5% 0.008 326);
|
|
1708
|
+
|
|
1709
|
+
--color-olive-50: oklch(98.8% 0.003 106.5);
|
|
1710
|
+
--color-olive-100: oklch(96.6% 0.005 106.5);
|
|
1711
|
+
--color-olive-200: oklch(93% 0.007 106.5);
|
|
1712
|
+
--color-olive-300: oklch(88% 0.011 106.6);
|
|
1713
|
+
--color-olive-400: oklch(73.7% 0.021 106.9);
|
|
1714
|
+
--color-olive-500: oklch(58% 0.031 107.3);
|
|
1715
|
+
--color-olive-600: oklch(46.6% 0.025 107.3);
|
|
1716
|
+
--color-olive-700: oklch(39.4% 0.023 107.4);
|
|
1717
|
+
--color-olive-800: oklch(28.6% 0.016 107.4);
|
|
1718
|
+
--color-olive-900: oklch(22.8% 0.013 107.4);
|
|
1719
|
+
--color-olive-950: oklch(15.3% 0.006 107.1);
|
|
1720
|
+
|
|
1721
|
+
--color-mist-50: oklch(98.7% 0.002 197.1);
|
|
1722
|
+
--color-mist-100: oklch(96.3% 0.002 197.1);
|
|
1723
|
+
--color-mist-200: oklch(92.5% 0.005 214.3);
|
|
1724
|
+
--color-mist-300: oklch(87.2% 0.007 219.6);
|
|
1725
|
+
--color-mist-400: oklch(72.3% 0.014 214.4);
|
|
1726
|
+
--color-mist-500: oklch(56% 0.021 213.5);
|
|
1727
|
+
--color-mist-600: oklch(45% 0.017 213.2);
|
|
1728
|
+
--color-mist-700: oklch(37.8% 0.015 216);
|
|
1729
|
+
--color-mist-800: oklch(27.5% 0.011 216.9);
|
|
1730
|
+
--color-mist-900: oklch(21.8% 0.008 223.9);
|
|
1731
|
+
--color-mist-950: oklch(14.8% 0.004 228.8);
|
|
1732
|
+
|
|
1733
|
+
--color-taupe-50: oklch(98.6% 0.002 67.8);
|
|
1734
|
+
--color-taupe-100: oklch(96% 0.002 17.2);
|
|
1735
|
+
--color-taupe-200: oklch(92.2% 0.005 34.3);
|
|
1736
|
+
--color-taupe-300: oklch(86.8% 0.007 39.5);
|
|
1737
|
+
--color-taupe-400: oklch(71.4% 0.014 41.2);
|
|
1738
|
+
--color-taupe-500: oklch(54.7% 0.021 43.1);
|
|
1739
|
+
--color-taupe-600: oklch(43.8% 0.017 39.3);
|
|
1740
|
+
--color-taupe-700: oklch(36.7% 0.016 35.7);
|
|
1741
|
+
--color-taupe-800: oklch(26.8% 0.011 36.5);
|
|
1742
|
+
--color-taupe-900: oklch(21.4% 0.009 43.1);
|
|
1743
|
+
--color-taupe-950: oklch(14.7% 0.004 49.3);
|
|
1744
|
+
|
|
1745
|
+
--color-black: #000;
|
|
1746
|
+
--color-white: #fff;
|
|
1747
|
+
|
|
1748
|
+
--spacing: 0.25rem;
|
|
1749
|
+
|
|
1750
|
+
--breakpoint-sm: 40rem;
|
|
1751
|
+
--breakpoint-md: 48rem;
|
|
1752
|
+
--breakpoint-lg: 64rem;
|
|
1753
|
+
--breakpoint-xl: 80rem;
|
|
1754
|
+
--breakpoint-2xl: 96rem;
|
|
1755
|
+
|
|
1756
|
+
--container-3xs: 16rem;
|
|
1757
|
+
--container-2xs: 18rem;
|
|
1758
|
+
--container-xs: 20rem;
|
|
1759
|
+
--container-sm: 24rem;
|
|
1760
|
+
--container-md: 28rem;
|
|
1761
|
+
--container-lg: 32rem;
|
|
1762
|
+
--container-xl: 36rem;
|
|
1763
|
+
--container-2xl: 42rem;
|
|
1764
|
+
--container-3xl: 48rem;
|
|
1765
|
+
--container-4xl: 56rem;
|
|
1766
|
+
--container-5xl: 64rem;
|
|
1767
|
+
--container-6xl: 72rem;
|
|
1768
|
+
--container-7xl: 80rem;
|
|
1769
|
+
|
|
1770
|
+
--text-xs: 0.75rem;
|
|
1771
|
+
--text-xs--line-height: calc(1 / 0.75);
|
|
1772
|
+
--text-sm: 0.875rem;
|
|
1773
|
+
--text-sm--line-height: calc(1.25 / 0.875);
|
|
1774
|
+
--text-base: 1rem;
|
|
1775
|
+
--text-base--line-height: calc(1.5 / 1);
|
|
1776
|
+
--text-lg: 1.125rem;
|
|
1777
|
+
--text-lg--line-height: calc(1.75 / 1.125);
|
|
1778
|
+
--text-xl: 1.25rem;
|
|
1779
|
+
--text-xl--line-height: calc(1.75 / 1.25);
|
|
1780
|
+
--text-2xl: 1.5rem;
|
|
1781
|
+
--text-2xl--line-height: calc(2 / 1.5);
|
|
1782
|
+
--text-3xl: 1.875rem;
|
|
1783
|
+
--text-3xl--line-height: calc(2.25 / 1.875);
|
|
1784
|
+
--text-4xl: 2.25rem;
|
|
1785
|
+
--text-4xl--line-height: calc(2.5 / 2.25);
|
|
1786
|
+
--text-5xl: 3rem;
|
|
1787
|
+
--text-5xl--line-height: 1;
|
|
1788
|
+
--text-6xl: 3.75rem;
|
|
1789
|
+
--text-6xl--line-height: 1;
|
|
1790
|
+
--text-7xl: 4.5rem;
|
|
1791
|
+
--text-7xl--line-height: 1;
|
|
1792
|
+
--text-8xl: 6rem;
|
|
1793
|
+
--text-8xl--line-height: 1;
|
|
1794
|
+
--text-9xl: 8rem;
|
|
1795
|
+
--text-9xl--line-height: 1;
|
|
1796
|
+
|
|
1797
|
+
--font-weight-thin: 100;
|
|
1798
|
+
--font-weight-extralight: 200;
|
|
1799
|
+
--font-weight-light: 300;
|
|
1800
|
+
--font-weight-normal: 400;
|
|
1801
|
+
--font-weight-medium: 500;
|
|
1802
|
+
--font-weight-semibold: 600;
|
|
1803
|
+
--font-weight-bold: 700;
|
|
1804
|
+
--font-weight-extrabold: 800;
|
|
1805
|
+
--font-weight-black: 900;
|
|
1806
|
+
|
|
1807
|
+
--tracking-tighter: -0.05em;
|
|
1808
|
+
--tracking-tight: -0.025em;
|
|
1809
|
+
--tracking-normal: 0em;
|
|
1810
|
+
--tracking-wide: 0.025em;
|
|
1811
|
+
--tracking-wider: 0.05em;
|
|
1812
|
+
--tracking-widest: 0.1em;
|
|
1813
|
+
|
|
1814
|
+
--leading-tight: 1.25;
|
|
1815
|
+
--leading-snug: 1.375;
|
|
1816
|
+
--leading-normal: 1.5;
|
|
1817
|
+
--leading-relaxed: 1.625;
|
|
1818
|
+
--leading-loose: 2;
|
|
1819
|
+
|
|
1820
|
+
--radius-xs: 0.125rem;
|
|
1821
|
+
--radius-sm: 0.25rem;
|
|
1822
|
+
--radius-md: 0.375rem;
|
|
1823
|
+
--radius-lg: 0.5rem;
|
|
1824
|
+
--radius-xl: 0.75rem;
|
|
1825
|
+
--radius-2xl: 1rem;
|
|
1826
|
+
--radius-3xl: 1.5rem;
|
|
1827
|
+
--radius-4xl: 2rem;
|
|
1828
|
+
|
|
1829
|
+
--shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
|
|
1830
|
+
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1831
|
+
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
1832
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
1833
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
1834
|
+
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
1835
|
+
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
1836
|
+
|
|
1837
|
+
--inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05);
|
|
1838
|
+
--inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / 0.05);
|
|
1839
|
+
--inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);
|
|
1840
|
+
|
|
1841
|
+
--drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05);
|
|
1842
|
+
--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15);
|
|
1843
|
+
--drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12);
|
|
1844
|
+
--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15);
|
|
1845
|
+
--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);
|
|
1846
|
+
--drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);
|
|
1847
|
+
|
|
1848
|
+
--text-shadow-2xs: 0px 1px 0px rgb(0 0 0 / 0.15);
|
|
1849
|
+
--text-shadow-xs: 0px 1px 1px rgb(0 0 0 / 0.2);
|
|
1850
|
+
--text-shadow-sm:
|
|
1851
|
+
0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075), 0px 2px 2px rgb(0 0 0 / 0.075);
|
|
1852
|
+
--text-shadow-md:
|
|
1853
|
+
0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1), 0px 2px 4px rgb(0 0 0 / 0.1);
|
|
1854
|
+
--text-shadow-lg:
|
|
1855
|
+
0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1);
|
|
1856
|
+
|
|
1857
|
+
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
1858
|
+
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
1859
|
+
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1860
|
+
|
|
1861
|
+
--animate-spin: spin 1s linear infinite;
|
|
1862
|
+
--animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
1863
|
+
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
1864
|
+
--animate-bounce: bounce 1s infinite;
|
|
1865
|
+
|
|
1866
|
+
@keyframes spin {
|
|
1867
|
+
to {
|
|
1868
|
+
transform: rotate(360deg);
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
@keyframes ping {
|
|
1873
|
+
75%,
|
|
1874
|
+
100% {
|
|
1875
|
+
transform: scale(2);
|
|
1876
|
+
opacity: 0;
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
@keyframes pulse {
|
|
1881
|
+
50% {
|
|
1882
|
+
opacity: 0.5;
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
@keyframes bounce {
|
|
1887
|
+
0%,
|
|
1888
|
+
100% {
|
|
1889
|
+
transform: translateY(-25%);
|
|
1890
|
+
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
50% {
|
|
1894
|
+
transform: none;
|
|
1895
|
+
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
--blur-xs: 4px;
|
|
1900
|
+
--blur-sm: 8px;
|
|
1901
|
+
--blur-md: 12px;
|
|
1902
|
+
--blur-lg: 16px;
|
|
1903
|
+
--blur-xl: 24px;
|
|
1904
|
+
--blur-2xl: 40px;
|
|
1905
|
+
--blur-3xl: 64px;
|
|
1906
|
+
|
|
1907
|
+
--perspective-dramatic: 100px;
|
|
1908
|
+
--perspective-near: 300px;
|
|
1909
|
+
--perspective-normal: 500px;
|
|
1910
|
+
--perspective-midrange: 800px;
|
|
1911
|
+
--perspective-distant: 1200px;
|
|
1912
|
+
|
|
1913
|
+
--aspect-video: 16 / 9;
|
|
1914
|
+
|
|
1915
|
+
--default-transition-duration: 150ms;
|
|
1916
|
+
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1917
|
+
--default-font-family: --theme(--font-sans, initial);
|
|
1918
|
+
--default-font-feature-settings: --theme(--font-sans--font-feature-settings, initial);
|
|
1919
|
+
--default-font-variation-settings: --theme(--font-sans--font-variation-settings, initial);
|
|
1920
|
+
--default-mono-font-family: --theme(--font-mono, initial);
|
|
1921
|
+
--default-mono-font-feature-settings: --theme(--font-mono--font-feature-settings, initial);
|
|
1922
|
+
--default-mono-font-variation-settings: --theme(--font-mono--font-variation-settings, initial);
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
/* Deprecated */
|
|
1926
|
+
@theme default inline reference {
|
|
1927
|
+
--blur: 8px;
|
|
1928
|
+
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
1929
|
+
--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
|
1930
|
+
--drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);
|
|
1931
|
+
--radius: 0.25rem;
|
|
1932
|
+
--max-width-prose: 65ch;
|
|
1933
|
+
}
|
|
1934
|
+
`,Kl=`@tailwind utilities;
|
|
1935
|
+
`;const ql=`4.3.3`,Jl=`/__tailwindcss`,Yl={[`${Jl}/index.css`]:Ul,[`${Jl}/preflight.css`]:Wl,[`${Jl}/theme.css`]:Gl,[`${Jl}/utilities.css`]:Kl},Xl=/\.(png|jpe?g|gif|webp|ico|woff2?|ttf|otf|eot|mp4|webm|zip|gz|beam|wasm)$/i;function Zl(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];if(i.startsWith(`${t}=`))return i.slice(t.length+1);if(i===t||i===n)return e[r+1]}}const Ql=new TextDecoder;async function $l(e,{args:t,cwd:n,env:r,fs:i}){if(t.includes(`--help`)||t.includes(`-h`)||t.includes(`--version`)){e.write(`≈ tailwindcss v${ql}\n`),e.exit(0);return}let a=Zl(t,`--input`,`-i`),o=Zl(t,`--output`,`-o`),s=t.some(e=>e===`--watch`||e.startsWith(`--watch=`));if(!a||!o){e.write(`tailwindcss: the playground needs --input and --output
|
|
1936
|
+
`),e.exit(1);return}let c=D.resolve(n,a),l=D.resolve(n,o),u=(r.NODE_PATH??``).split(`:`).filter(Boolean),d=new mn(i),f=async e=>Ql.decode(await i.read(e)),p=async(e,t,n)=>{let r=e.startsWith(`.`)||e.startsWith(`/`)?[t]:[t,...u];for(let t of r)for(let r of n){let n=D.resolve(t,e+r);try{return{path:n,content:await f(n)}}catch{}}throw Error(`Can't resolve '${e}' from ${t}`)},m=[],h=[],g=async()=>{let t=performance.now(),n=await f(c);h=[c];let r=await gn(d,()=>Bl(n,{base:D.dirname(c),from:c,async loadStylesheet(e,t){if(e===`tailwindcss`||e.startsWith(`tailwindcss/`)){let t=e===`tailwindcss`?`${Jl}/index.css`:`${Jl}/${e.slice(12)}`,n=t.endsWith(`.css`)?t:`${t}.css`;return{path:n,base:Jl,content:Yl[n]??``}}if(t===Jl){let t=D.join(Jl,e);return{path:t,base:Jl,content:Yl[t]??``}}let n=await p(e,t,[``,`.css`,`/index.css`]);return h.push(n.path),{path:n.path,base:D.dirname(n.path),content:n.content}},async loadModule(e,t){let n=await p(e,t,[``,`.js`,`.cjs`,`/index.js`]);h.push(n.path);let r=_n(n.content,n.path,{"tailwindcss/plugin":Hl,fs:d.fs,path:D},d),i=r?.default??r;return{path:n.path,base:D.dirname(n.path),module:i}}}));m=r.sources.filter(e=>!e.negated).map(e=>{let t=D.resolve(e.base,e.pattern).split(`/`),n=t.findIndex(e=>/[*{?[]/.test(e));return n<0?t.join(`/`):t.slice(0,n).join(`/`)}),r.root&&r.root!==`none`&&m.push(D.resolve(r.root.base,r.root.pattern));let a=/* @__PURE__ */ new Set;for(let e of m){let t=await i.list(e).catch(()=>[{path:e,dir:!1}]),n=await Promise.all(t.filter(e=>!e.dir&&!Xl.test(e.path)&&e.path!==l).map(e=>f(e.path).catch(()=>``)));for(let e of n)for(let t of e.split(/[\s"'`<>={};]+/)){let e=t.replace(/^[,.:]+|[,.:]+$/g,``);e&&e.length<200&&a.add(e)}}let o=await gn(d,()=>r.build([...a]));await hn(i,D.dirname(l)),await i.write(l,o),e.write(`\nDone in ${Math.round(performance.now()-t)}ms.\n`)};e.write(`≈ tailwindcss v${ql}\n`);try{await g()}catch(t){if(e.write(`Error: ${t.message}\n`),!s){e.exit(1);return}}if(!s){e.exit(0);return}let _=null,v=t=>{t.some(e=>e!==l&&(h.includes(e)||m.some(t=>e===t||e.startsWith(`${t}/`))))&&(_&&clearTimeout(_),_=setTimeout(()=>{_=null,g().catch(t=>e.write(`Error: ${t.message}\n`))},50))};vn.add(v),e.onkill=()=>{vn.delete(v),_&&clearTimeout(_)}}var eu=class{thread;id;forget;node;ondata=()=>{};onend=()=>{};onclose=()=>{};closed=!1;constructor(e,t,n,r){this.thread=e,this.id=t,this.forget=n,this.node=r}write(e){this.closed||this.thread.postMessage({kind:`net`,op:`data`,id:this.id,bytes:e})}end(){this.closed||this.thread.postMessage({kind:`net`,op:`end`,id:this.id})}close(){this.closed||(this.closed=!0,this.forget(this.id),this.thread.postMessage({kind:`net`,op:`close`,id:this.id}))}reset(){this.closed||(this.closed=!0,this.forget(this.id),this.thread.postMessage({kind:`net`,op:`reset`,id:this.id}))}closedBy(e){this.closed||(this.closed=!0,this.forget(this.id),this.onclose(e))}};const tu=(e,t,n,r=null,i=()=>({}))=>(a,o)=>{let s=t();if(!s)return a.write(`node: no files
|
|
1937
|
+
`),a.exit(1);let c=s.connect(),l=new Worker(new URL(`nodejs.js`,new URL(e,location.href)),{type:`module`}),u=/* @__PURE__ */ new Map,d=e=>u.delete(e),f=1,p={connect(e){let t=new eu(l,f+=2,d,p);return u.set(t.id,t),l.postMessage({kind:`net`,op:`open`,id:t.id,port:e}),t}},m=/* @__PURE__ */ new Set,h=null,g=e=>{if(e.op===`udp-bind`){h??=n?.udp()??null;let t=h?.bind(e.port,(e,n,r)=>l.postMessage({kind:`net`,op:`udp`,to:t,address:e,port:n,bytes:r}))??null;l.postMessage({kind:`net`,op:`udp-bound`,ref:e.ref,port:t})}else if(e.op===`udp-send`)h?.send(e);else if(e.op===`udp-close`)h?.unbind(e.port);else if(e.op===`listen`){let t=n?.listen(e.port,p)??null;t!==null&&m.add(t),l.postMessage({kind:`net`,op:`listening`,ref:e.ref,port:t})}else if(e.op===`unlisten`)m.delete(e.port),n?.unlisten(e.port,p);else if(e.op===`dns`){let t=t=>l.postMessage({kind:`net`,op:`dns`,ref:e.ref,answer:t});if(!n)return t(/* @__PURE__ */ new Uint8Array);n.resolve(e.query).then(t,()=>t(/* @__PURE__ */ new Uint8Array))}else if(e.op===`connect`&&e.via===`tcp`&&e.host){let t=new eu(l,e.id,d,p);u.set(e.id,t);let r=t=>{d(e.id),l.postMessage({kind:`net`,op:`refused`,id:e.id,code:t})};if(!n)return r(`ENETUNREACH`);n.dial(t,e.host,e.port).then(t=>l.postMessage({kind:`net`,op:`connected`,id:e.id,local:t}),e=>r(e.code??`EHOSTUNREACH`))}else if(e.op===`connect`){let t=n?.route(e.port,e.host)??null;if(l.postMessage({kind:`net`,op:t?`connected`:`refused`,id:e.id}),!t)return;let r=new eu(l,e.id,d,p);u.set(e.id,r),t(r)}else{let t=u.get(e.id);if(!t)return;e.op===`data`?t.ondata(e.bytes):e.op===`end`?t.onend():t.closedBy(`close`)}},_=e=>l.postMessage({kind:`changed`,paths:e});vn.add(_);let v=!1,y=/* @__PURE__ */ new Map,b=[],x=/* @__PURE__ */ new Set,S=[!1,!0],C=e=>{let{id:t,shared:n}=e,r={stdin:!!e.terminal?.[0]&&!!o.tty?.stdin,stdout:!!e.terminal?.[1]&&!!o.tty?.stdout},c=!1,u=n?new Int32Array(n,0,4):null,d=n?(n.byteLength-16)/2:0,f=n?[new Uint8Array(n,16,d),new Uint8Array(n,16+d,d)]:null,p=[0,0],m=!1,h=e=>typeof e==`string`?new TextEncoder().encode(e):e,g=(n,r)=>{if(e.inherit)n&&a.writeError?a.writeError(r):a.write(r);else if(f){let e=f[n],t=p[n];t<0||t+r.length>e.length?p[n]=-1:(e.set(r,t),p[n]+=r.length)}else l.postMessage({kind:`child`,op:n?`err`:`out`,id:t,bytes:r})},_={write:e=>g(0,h(e)),writeError:e=>g(1,h(e)),exit:(e=0)=>{if(m)return;m=!0,y.delete(t),x.delete(_);let n=b.indexOf(_);n>=0&&b.splice(n,1),c&&a.raw?.(...S),u?(Atomics.store(u,1,e),Atomics.store(u,2,p[0]),Atomics.store(u,3,p[1]),Atomics.store(u,0,1),Atomics.notify(u,0)):l.postMessage({kind:`child`,op:`exit`,id:t,code:e})},onkill:null,onowner:null};(r.stdin||r.stdout)&&(_.size=()=>a.size?.()??[80,24],x.add(_)),r.stdin&&(_.raw=(e,t)=>{c=!0,a.raw?.(e,t)},b.push(_)),y.set(t,_);let v=i().sh;if(!v)return _.writeError(`sh: not in this playground
|
|
1938
|
+
`),_.exit(127);Promise.resolve(v(_,{args:[`-c`,e.line],cwd:e.cwd,env:e.env,fs:s,tty:r})).catch(e=>{_.writeError(`${e.message}\n`),_.exit(1)}),e.input&&(e.input.length&&_.oninput?.(e.input),_.oninput?.(null))},ee=e=>{let t=y.get(e);t&&(t.onowner?.(),t.exit(143))},te=e=>{if(!v){v=!0;for(let e of[...y.values()])e.onowner?.();vn.delete(_),l.terminate(),s.disconnect(c);for(let e of m)n?.unlisten(e,p);h?.close();for(let e of[...u.values()])e.closedBy(`close`);a.exit(e)}};l.onmessage=({data:e})=>{e.kind===`out`?(e.fd===2&&a.writeError?a.writeError:a.write)(e.bytes):e.kind===`net`?g(e):e.kind===`tty`?(S=[e.raw,!e.raw],a.raw?.(...S)):e.kind===`child`&&e.op===`spawn`?C(e):e.kind===`child`&&e.op===`kill`?ee(e.id):e.kind===`child`&&e.op===`stdin`?y.get(e.id)?.oninput?.(e.end?null:e.bytes):e.kind===`exit`&&te(e.code)},l.onerror=e=>{e.preventDefault(),(a.writeError??a.write)(`node: ${e.message||`the worker failed to start`}\n`),te(1)},a.onkill=()=>te(130),a.onowner=()=>te(130),l.postMessage({kind:`start`,args:o.args,cwd:o.cwd,env:o.env,doorbell:c.doorbell,channel:c.channel,tls:r,tty:o.tty?.stdout??!1,stdinTty:o.tty?.stdin??!1,bun:o.bun??!1,columns:a.size?.()[0]??80,rows:a.size?.()[1]??24}),a.oninput=e=>{let t=b.at(-1);if(t)return t.oninput?.(e);l.postMessage(e===null?{kind:`stdin`,end:!0}:{kind:`stdin`,bytes:e})},a.onresize=(e,t)=>{l.postMessage({kind:`resize`,columns:e,rows:t});for(let n of x)n.onresize?.(e,t)}};var nu=class{value;transfer;constructor(e,t){this.value=e,this.transfer=t}};const ru=(e,t)=>new nu(e,t);var iu=class{port;next=1;waiting=/* @__PURE__ */ new Map;handlers={};listeners=/* @__PURE__ */ new Map;constructor(e){this.port=e,e.onmessage=({data:e})=>void this.receive(e)}handle(e){return Object.assign(this.handlers,e),this}call(e,t=[],n=[]){let r=this.next++;return new Promise((i,a)=>{this.waiting.set(r,{resolve:i,reject:a}),this.port.postMessage({call:r,method:e,args:t},n)})}emit(e,t,n=[]){this.port.postMessage({event:e,data:t},n)}on(e,t){let n=this.listeners.get(e);return n||this.listeners.set(e,n=/* @__PURE__ */ new Set),n.add(t),()=>n.delete(t)}close(){for(let{reject:e}of this.waiting.values())e(/* @__PURE__ */ Error(`closed`));this.waiting.clear(),this.port.close()}async receive(e){if(`reply`in e){let t=this.waiting.get(e.reply);this.waiting.delete(e.reply),e.error===void 0?t?.resolve(e.value):t?.reject(Object.assign(Error(e.error),{code:e.code}))}else if(`call`in e)try{let t=this.handlers[e.method];if(!t)throw Error(`no such call: ${e.method}`);let n=await t(...e.args),[r,i]=n instanceof nu?[n.value,n.transfer]:[n,[]];this.port.postMessage({reply:e.call,value:r},i)}catch(t){let n=t?.code;this.port.postMessage({reply:e.call,error:t instanceof Error?t.message:String(t),...typeof n==`string`?{code:n}:{}})}else for(let t of this.listeners.get(e.event)??[])t(e.data)}};new TextEncoder().encode(`
|
|
1939
|
+
---- Bun! ----
|
|
1940
|
+
`),new TextEncoder().encode(`class WebSocket { constructor() { throw new Error('ws: not in the playground'); } }
|
|
1941
|
+
module.exports = WebSocket;
|
|
1942
|
+
module.exports.WebSocket = WebSocket;
|
|
1943
|
+
module.exports.WebSocketServer = WebSocket;
|
|
1944
|
+
`),new TextEncoder().encode(`{"type":"commonjs"}
|
|
1945
|
+
`),new TextEncoder().encode(`module.exports = (...args) => fetch(...args);
|
|
1946
|
+
module.exports.default = module.exports;
|
|
1947
|
+
Object.assign(module.exports, { Headers, Request, Response });
|
|
1948
|
+
`);async function au(e,t,n,r){if(r.throwIfAborted(),await e.stat(`${t}/cli.js`))return;r.throwIfAborted();let i=/* @__PURE__ */ new Set([t]);for(let{name:e}of n)for(let n=e.indexOf(`/`);n>=0;n=e.indexOf(`/`,n+1))i.add(`${t}/${e.slice(0,n)}`);for(let t of[...i].sort())r.throwIfAborted(),await e.mkdir(t);r.throwIfAborted();let a=n.find(e=>e.name===`cli.js`);await Promise.all(n.filter(e=>e!==a).map(n=>e.write(`${t}/${n.name}`,n.data))),r.throwIfAborted(),a&&await e.write(`${t}/cli.js`,a.data)}async function ou(e,t,n){let r=await e();n.aborted&&(r.close(),n.throwIfAborted());let i=new iu(r),a=()=>i.close();n.addEventListener(`abort`,a,{once:!0}),i.on(`progress`,t);try{return await i.call(`files`)}finally{n.removeEventListener(`abort`,a),i.close()}}const su=(e,t)=>async(n,r)=>{let i=e().node,a=e=>(n.writeError??n.write)(e);if(!i)return a(`claude: node is not in this playground
|
|
1949
|
+
`),n.exit(1);let o=new AbortController,{signal:s}=o,c=[];n.oninput=e=>c.push(e?.slice()??null);let l=()=>{o.abort(),c.length=0,n.exit(130)};n.onkill=l,n.onowner=l;let u;try{let{version:e,files:n}=await ou(t,a,s);u=`/opt/claude-code/${e}`,await au(r.fs,u,n,s),s.throwIfAborted()}catch(e){return s.aborted?void 0:(a(`claude: ${e.message}\n`),n.exit(1))}let d=i(n,{...r,args:[`${u}/cli.js`,`--allowedTools=Glob,Grep`,...r.args],env:{CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC:`1`,SHELL:`/usr/bin/bash`,...r.env},bun:!0});for(let e of c.splice(0))n.oninput?.(e);return d},cu=`playground-npm`,lu=`11.6.2`,uu={os:`linux`,cpu:`wasm32`};function du(e,t){let n=e?.packages?.[t];if(!n||n.link||!n.version||!n.resolved||!n.integrity)return null;let{resolved:r,integrity:i,link:a,...o}=n;return{...o,name:n.name??t.slice(Fu(t)),version:n.version,dist:{tarball:r,integrity:i}}}var fu=class extends Error{};const pu=new TextDecoder,mu=/* @__PURE__ */ new Map;function hu(e){let t=mu.get(e);if(!t){let n=`https://registry.npmjs.org/${e.replace(`/`,`%2f`)}`,r=`${n}?missing`,i=()=>new fu(`${e}: no such package in the npm registry`);t=(async()=>{let t=await caches.open(cu).catch(()=>null),a=await t?.match(r).catch(()=>void 0);if(a&&Date.now()-Number(await a.text())<864e5)throw i();let o=await fetch(n,{headers:{Accept:`application/vnd.npm.install-v1+json`}});if(o.status===404)throw await t?.put(r,new Response(String(Date.now()))).catch(()=>{}),i();if(!o.ok)throw new fu(`${e}: the registry answered ${o.status}`);return o.json()})(),t.catch(()=>mu.delete(e)),mu.set(e,t)}return t}function gu(e,t){if(t.startsWith(`npm:`)){let e=t.slice(4),n=e.lastIndexOf(`@`);return n>0?{name:e.slice(0,n),range:e.slice(n+1)||`*`}:{name:e,range:`*`}}if(/^(file:|link:|workspace:|git\+|git:|github:|https?:)/.test(t)||/^[\w-]+\/[\w.-]+(#.*)?$/.test(t))throw new fu(`${e}@${t}: only registry versions install in the playground`);return{name:e,range:t.trim()||`*`}}function _u(e,t){let n=e[`dist-tags`][t];if(n)return e.versions[n]??null;if(!(0,T.validRange)(t))return null;let r=e[`dist-tags`].latest;if(r&&(0,T.satisfies)(r,t))return e.versions[r];let i=(0,T.maxSatisfying)(Object.keys(e.versions),t);return i?e.versions[i]:null}function vu(e,t){if(!e?.length)return!0;let n=e.filter(e=>e.startsWith(`!`)).map(e=>e.slice(1)),r=e.filter(e=>!e.startsWith(`!`));return!n.includes(t)&&(!r.length||r.includes(t))}const yu=e=>vu(e.os,uu.os)&&vu(e.cpu,uu.cpu),bu=/^(.+)-(?:darwin|linux|win32|freebsd|android|openharmony|sunos|aix)-[\w-]+$/,xu={lightningcss:{wasm:`lightningcss-wasm`,binding:`lightningcss-linux-x64-gnu`}};function Su(e){let t=xu[e.name];if(t)return{[t.wasm]:e.version};let n=e.optionalDependencies??{};for(let[e,t]of Object.entries(n)){let r=bu.exec(e)?.[1];if(r&&!(`${r}-wasm32-wasi`in n))return{[`${r}-wasm32-wasi`]:t}}return null}function Cu(e,t){return t?typeof t==`string`?{[e.split(`/`).pop()]:t}:t:{}}function wu(e,t){let n=[];for(let r=e;n.push(`${r?`${r}/`:``}node_modules/${t}`),r;){let e=r.lastIndexOf(`/node_modules/`);r=e===-1?``:r.slice(0,e)}return n}function Tu(e,t,n,r){for(let i of e.values()){let a=i.manifest,o=a.dependencies?.[n]??a.optionalDependencies?.[n]??a.peerDependencies?.[n];if(o===void 0)continue;let s=wu(i.location,n),c=s.indexOf(t);if(c===-1||s.findIndex(t=>e.has(t))<=c)continue;let l;try{l=gu(n,o)}catch{continue}if(r.name!==l.name||!(0,T.validRange)(l.range)||!(0,T.satisfies)(r.version,l.range,{includePrerelease:!0}))return!0}return!1}const Eu=e=>Object.fromEntries(Object.entries(e.peerDependencies??{}).filter(([t])=>!e.peerDependenciesMeta?.[t]?.optional));function Du(e,t,n){let r=_u(e,t);if(!r||e[`dist-tags`][t])return r;let i=e=>Object.entries(Eu(e)).every(([e,t])=>{let r=n[e];return r===void 0||!(0,T.validRange)(r)||!(0,T.validRange)(t)||(0,T.intersects)(r,t,{includePrerelease:!0})});if(i(r))return r;let a=Object.keys(e.versions).filter(e=>(0,T.satisfies)(e,t)).sort(T.rcompare).find(t=>i(e.versions[t]));return a?e.versions[a]:r}const Ou=e=>e.slice(0,e.lastIndexOf(`node_modules/`)).replace(/\/$/,``);async function ku(e,t,n,r){let i=/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Map,o=[],s=(e,t,n,r,i)=>{for(let[a,s]of Object.entries(t??{}))o.push({from:e,name:a,spec:s,dev:n,optional:r,peerOf:i})};s(``,e.dependencies,!1,!1),s(``,e.devDependencies,!0,!1),s(``,e.optionalDependencies,!1,!0);let c=e=>{let r=gu(e.name,e.spec),i=!(e.from===``&&n.has(e.name)),a=(e,t)=>{let n=t?.[`dist-tags`][r.range]??r.range;return(0,T.validRange)(n)?(0,T.satisfies)(e,n,{includePrerelease:!0}):!t};return{target:r,satisfying:a,fromLock:e=>{let n=i?du(t,e):null;return n?.name===r.name&&a(n.version,null)?n:null}}};for(;o.length;){let n=o;o=[],await Promise.all(n.map(e=>{try{let{target:t,fromLock:n}=c(e);return wu(e.from,e.name).some(n)?null:hu(t.name).catch(()=>null)}catch{return null}}));for(let o of n){let n;try{n=c(o)}catch(e){if(o.optional)continue;throw e}let{target:l,satisfying:u,fromLock:d}=n,f=wu(o.from,o.name),p=null,m=async()=>{try{return p??=await hu(l.name),!0}catch(e){if(o.optional)return!1;throw e}};if(!f.some(d)&&!await m())continue;let h=f.length,g=null;for(let e=0;e<f.length;e++){let t=i.get(f[e]);if(t){t.manifest.name===l.name&&u(t.manifest.version,p)?g=t:h=e;break}}if(g)continue;if(h===0){let e=i.get(f[0]).manifest,t=i.get(o.from)?.manifest;o.optional||r(`npm warn ERESOLVE ${o.peerOf??(t?`${t.name}@${t.version}`:`the project`)} wants ${o.name}@${o.spec}${o.peerOf?` as a peer`:``}; ${e.name}@${e.version} kept\n`);continue}let _=o.from===``?e:i.get(o.from)?.manifest,v={..._?.dependencies,..._?.optionalDependencies},y=async e=>{let n=d(e);if(n)return n;if(!await m())return null;let r=t?.packages?.[e]?.version,i=p;return r&&i.versions[r]&&u(r,i)?i.versions[r]:Du(i,l.range,v)},b=f[0],x=null;for(let e=h-1;e>=0&&(b=f[e],x=await y(b),x&&e!==0&&Tu(i,b,o.name,x));e--);if(!x){if(o.optional)continue;throw new fu(`${o.name}@${o.spec}: no version of ${l.name} matches`)}yu(x)?(x.deprecated&&r(`npm warn deprecated ${x.name}@${x.version}: ${x.deprecated}\n`),i.set(b,{location:b,manifest:x,dev:o.dev,optional:o.optional}),s(b,x.dependencies,o.dev,o.optional),s(b,x.optionalDependencies,o.dev,!0),s(b,Su(x)??void 0,o.dev,!0),s(Ou(b),Eu(x),o.dev,o.optional,`${x.name}@${x.version}`)):o.optional?a.set(b,{location:b,manifest:x,dev:o.dev,optional:!0}):r(`npm warn ${x.name}@${x.version}: not for this platform (${uu.os}, ${uu.cpu}); skipped\n`)}}for(let e of i.values())e.dev=e.optional=!0;let l=(e,t,n,r)=>{for(let a of Object.keys(t??{})){let t=wu(e,a).map(e=>i.get(e)).find(Boolean);if(!t||!(t.dev&&!n||t.optional&&!r))continue;t.dev&&=n,t.optional&&=r;let o=t.manifest;l(t.location,o.dependencies,t.dev,t.optional),l(t.location,o.optionalDependencies,t.dev,!0),l(t.location,Su(o),t.dev,!0),l(Ou(t.location),Eu(o),t.dev,t.optional)}};l(``,e.dependencies,!1,!1),l(``,e.devDependencies,!0,!1),l(``,e.optionalDependencies,!1,!0);for(let e of i.keys())a.delete(e);return{tree:i,skipped:a}}async function Au(e){let t=e.dist.tarball,n=await caches.open(cu).catch(()=>null),r=await n?.match(t),i=!1;if(!r){if(r=await fetch(t),!r.ok)throw new fu(`${e.name}@${e.version}: ${t} answered ${r.status}`);i=!0}let a=new Uint8Array(await r.clone().arrayBuffer());return await ju(e,a),i&&await n?.put(t,new Response(a)).catch(()=>{}),a}async function ju(e,t){let n=e.dist.integrity?.split(/\s+/).find(e=>e.startsWith(`sha512-`));if(n){let r=new Uint8Array(await crypto.subtle.digest(`SHA-512`,t));if(btoa(String.fromCharCode(...r))!==n.slice(7))throw new fu(`${e.name}@${e.version}: its tarball does not match its integrity`)}else if(e.dist.shasum&&[...new Uint8Array(await crypto.subtle.digest(`SHA-1`,t))].map(e=>e.toString(16).padStart(2,`0`)).join(``)!==e.dist.shasum)throw new fu(`${e.name}@${e.version}: its tarball does not match its shasum`)}async function Mu(e,t,n){let r=await lt(await Au(t)),i=[],a=/* @__PURE__ */ new Set([n]),o=null;for(let e of st(r)){if(e.type!==`0`&&e.type!==`\0`)continue;let t=e.name.split(`/`).slice(1).join(`/`);if(!t||t.split(`/`).includes(`..`))continue;let r=`${n}/${t}`;a.add(r.slice(0,r.lastIndexOf(`/`))),i.push([r,e.body]),t===`package.json`&&(o=JSON.parse(pu.decode(e.body)))}await e.remove(n).catch(()=>{});for(let t of[...a].sort())await e.mkdir(t);for(let t=0;t<i.length;t+=64)await Promise.all(i.slice(t,t+64).map(([t,n])=>e.write(t,n)));return o??{name:t.name,version:t.version}}async function Nu(e,t){try{return JSON.parse(pu.decode(await e.read(t)))}catch{return null}}async function Pu(e,t){for(let n=t;;n=n.slice(0,n.lastIndexOf(`/`))||`/`){if(await e.stat(`${n===`/`?``:n}/package.json`)===`file`)return n;if(n===`/`)return null}}const Fu=e=>e.lastIndexOf(`node_modules/`)+13;function Iu(e,t){let n=/* @__PURE__ */ new Map;for(let t of e){let e=t.location.split(`node_modules/`).length;n.set(e,[...n.get(e)??[],t])}let r=[];for(let e of[...n.keys()].sort((e,t)=>e-t)){let i=n.get(e);for(let e=0;e<i.length;e+=t)r.push(i.slice(e,e+t))}return r}function Lu(e){let t=e.indexOf(`@`,1);return t>0?[e.slice(0,t),e.slice(t+1)]:[e,`latest`]}async function Ru(e,t,n,r,i){let a=`${t}/package.json`,o=await Nu(e,a)??{},s=await Nu(e,`${t}/package-lock.json`);for(let[n,r]of Object.entries(s?.packages??{})){if(!n||!r.peerDependencies||r.peerDependenciesMeta)continue;let i=await Nu(e,`${t}/${n}/package.json`);i&&i.version===r.version&&(r.peerDependenciesMeta=i.peerDependenciesMeta??{})}let c=!1,l=/* @__PURE__ */ new Set;for(let e of n){let[t,n]=Lu(e);l.add(t);let i=gu(t,n),a=_u(await hu(i.name),i.range);if(!a)throw new fu(`${e}: no version matches`);let s=r.dev?`devDependencies`:`dependencies`,u=(0,T.valid)(i.range)||!(0,T.validRange)(i.range)||i.range===`latest`||i.range===`*`?`${r.exact?``:`^`}${a.version}`:i.range,d={...o[s],[t]:i.name===t?u:`npm:${i.name}@${u}`};o[s]=Object.fromEntries(Object.entries(d).sort(([e],[t])=>e<t?-1:1)),r.dev?delete o.dependencies?.[t]:delete o.devDependencies?.[t],c=!0}let{tree:u,skipped:d}=await ku(o,s,l,i),f=0,p=[],m=[...u.values()].sort((e,t)=>e.location.length-t.location.length),h=/* @__PURE__ */ new Map;for(let n of Iu(m,6))await Promise.all(n.map(async n=>{let r=`${t}/${n.location}`,i=await Nu(e,`${r}/package.json`);i?.version===n.manifest.version&&i.name===n.manifest.name?h.set(n.location,i):(h.set(n.location,await Mu(e,n.manifest,r)),f++,n.manifest.hasInstallScript&&p.push(`${n.manifest.name}@${n.manifest.version}`))}));for(let n of m){let r=xu[n.manifest.name];if(!r)continue;let i=`${t}/${n.location.slice(0,Fu(n.location))}${r.binding}`;await e.mkdir(i),await e.write(`${i}/package.json`,`${JSON.stringify({name:r.binding,version:n.manifest.version,main:`index.js`,description:`the playground's stand-in: ${r.wasm}`},null,2)}\n`),await e.write(`${i}/index.js`,`module.exports = require(${JSON.stringify(r.wasm)});\n`)}for(let n of m){let r=h.get(n.location),i=Fu(n.location),a=`${t}/${n.location.slice(0,i-1)}`;for(let[t,o]of Object.entries(Cu(n.manifest.name,r?.bin??n.manifest.bin))){let r=`${a}/.bin/${t}`;await e.mkdir(`${a}/.bin`),await e.unlink(r).catch(()=>{}),await e.symlink(`../${n.location.slice(i)}/${o.replace(/^\.\//,``)}`,r)}}return p.length&&i(`npm warn install scripts not run (the playground does not run them): ${p.join(`, `)}\n`),c&&r.save&&await e.write(a,`${JSON.stringify(o,null,2)}\n`),r.save&&await e.write(`${t}/package-lock.json`,`${JSON.stringify(zu(o,[...m,...d.values()]),null,2)}\n`),{added:f,total:m.length}}function zu(e,t){let n={"":{name:e.name,version:e.version,dependencies:e.dependencies,devDependencies:e.devDependencies,optionalDependencies:e.optionalDependencies}};for(let e of[...t].sort((e,t)=>e.location<t.location?-1:1)){let t=e.manifest,r=e.location.slice(Fu(e.location));n[e.location]={...r===t.name?{}:{name:t.name},version:t.version,resolved:t.dist.tarball,integrity:t.dist.integrity,...e.dev?{dev:!0}:{},...e.optional?{optional:!0}:{},...t.license?{license:t.license}:{},...t.dependencies?{dependencies:t.dependencies}:{},...t.optionalDependencies?{optionalDependencies:t.optionalDependencies}:{},...t.peerDependencies?{peerDependencies:t.peerDependencies}:{},...t.peerDependenciesMeta?{peerDependenciesMeta:t.peerDependenciesMeta}:{},...t.bin?{bin:Cu(t.name,t.bin)}:{},...t.engines?{engines:t.engines}:{},...t.os?{os:t.os}:{},...t.cpu?{cpu:t.cpu}:{},...t.hasInstallScript?{hasInstallScript:!0}:{},...t.deprecated?{deprecated:t.deprecated}:{}}}return{name:e.name,version:e.version,lockfileVersion:3,requires:!0,packages:n}}function Bu(e,t,n){return new Promise(r=>{let i=!1,a={write:e=>t.write(e),writeError:e=>(t.writeError??t.write)(e),exit:(e=0)=>{i||(i=!0,r(e))},onkill:null,onowner:null,raw:t.raw?(e,n)=>t.raw(e,n):void 0,size:t.size?()=>t.size():void 0};t.onkill=()=>a.onkill?.(),t.onowner=()=>a.onowner?.();let o=[],s=null;Object.defineProperty(a,"oninput",{get:()=>s,set:e=>{for(s=e;o.length;){let e=s;if(!e)break;e(o.shift())}}}),t.oninput=e=>s?s(e):void o.push(e),t.onresize=(e,t)=>a.onresize?.(e,t),Promise.resolve(e(a,n)).catch(e=>{a.writeError(`${e.message}\n`),a.exit(1)})})}const Vu=e=>/^[\w@%+=:,./-]+$/.test(e)?e:`'${e.replace(/'/g,`'\\''`)}'`;function Hu(e,t=``){let n=[];for(let t=e;n.push(`${t===`/`?``:t}/node_modules/.bin`),t!==`/`;t=t.slice(0,t.lastIndexOf(`/`))||`/`);return[...n,t].filter(Boolean).join(`:`)}async function Uu(e,t,n){for(let r of Hu(t).split(`:`)){let t=`${r}/${n}`;if(await e.stat(t)===`file`)return t}return null}const Wu=`npm ${lu} on the playground's Node.js
|
|
1950
|
+
|
|
1951
|
+
npm install [PACKAGE[@VERSION]...] [-D|--save-dev] [-E|--save-exact]
|
|
1952
|
+
npm ci install exactly as package-lock.json says
|
|
1953
|
+
npm run [SCRIPT] [-- ARGS] (also npm test, npm start)
|
|
1954
|
+
npm exec PACKAGE [ARGS] as npx
|
|
1955
|
+
npm init [-y]
|
|
1956
|
+
npm create NAME [ARGS] npm init NAME: npx create-NAME ARGS
|
|
1957
|
+
|
|
1958
|
+
Packages come from registry.npmjs.org; install scripts do not run, and
|
|
1959
|
+
packages with native code only (no WebAssembly build) do not load.
|
|
1960
|
+
`,Gu=e=>async(t,n)=>{let r=n.fs,i=e=>t.write(e),a=e=>(t.writeError??t.write)(e),[o=`help`,...s]=n.args,c=new Set(s.filter(e=>e.startsWith(`-`))),l=s.filter(e=>!e.startsWith(`-`)),u=performance.now(),d=()=>`${((performance.now()-u)/1e3).toFixed(1)}s`;try{switch(o){case`install`:case`i`:case`add`:case`ci`:{let e=await Pu(r,n.cwd)??n.cwd;await r.stat(`${e}/package.json`)||await r.write(`${e}/package.json`,`{}
|
|
1961
|
+
`),o===`ci`&&await r.remove(`${e}/node_modules`).catch(()=>{});let{added:s,total:u}=await Ru(r,e,o===`ci`?[]:l,{dev:c.has(`-D`)||c.has(`--save-dev`),exact:c.has(`-E`)||c.has(`--save-exact`),save:!c.has(`--no-save`)},a);return i(s?`\nadded ${s} packages, ${u} in all, in ${d()}\n`:`\nup to date, ${u} packages, in ${d()}\n`),t.exit(0)}case`run`:case`run-script`:case`test`:case`t`:case`start`:{let a=await Pu(r,n.cwd);if(!a)throw new fu(`no package.json here or above`);let s=await Nu(r,`${a}/package.json`)??{},c=s.scripts??{},l=n.args.indexOf(`--`),u=o===`run`||o===`run-script`?n.args[1]:o===`t`?`test`:o;if(!u)return i(Object.keys(c).length?`Scripts in ${s.name??a}:\n${Object.entries(c).map(([e,t])=>` ${e}\n ${t}`).join(`
|
|
1962
|
+
`)}\n`:`No scripts.
|
|
1963
|
+
`),t.exit(0);if(!(u in c))throw new fu(`Missing script: "${u}"`);let d=l===-1?[]:n.args.slice(l+1),f=e().sh;for(let e of[`pre${u}`,u,`post${u}`]){if(!(e in c))continue;let r=e===u&&d.length?`${c[e]} ${d.map(Vu).join(` `)}`:c[e];i(`\n> ${s.name??``}${s.version?`@${s.version}`:``} ${e}\n> ${r}\n\n`);let o={...n.env,PATH:Hu(a,n.env.PATH),npm_lifecycle_event:e,npm_lifecycle_script:c[e],npm_package_name:s.name??``,npm_package_version:s.version??``,npm_package_json:`${a}/package.json`,npm_config_user_agent:`npm/${lu} node/v24.11.0 linux x64`,npm_execpath:`/usr/bin/npm`,npm_node_execpath:`/usr/bin/node`,INIT_CWD:n.cwd},l=await Bu(f,t,{...n,args:[`-c`,r],cwd:a,env:o});if(l!==0)return t.exit(l)}return t.exit(0)}case`exec`:case`x`:return t.exit(await Ju(e,t,{...n,args:s.filter(e=>e!==`--`)}));case`create`:case`init`:{let a=s.findIndex(e=>!e.startsWith(`-`));if(a>=0){let r=s.slice(a+1).filter(e=>e!==`--`);return t.exit(await Ju(e,t,{...n,args:[Ku(s[a]),...r]}))}if(o===`create`)throw new fu(`npm create NAME: which initializer`);let c=n.cwd;if(await r.stat(`${c}/package.json`))throw new fu(`package.json is there already`);let l={name:c.split(`/`).pop()||`project`,version:`1.0.0`,private:!0,scripts:{test:`echo "Error: no test specified" && exit 1`}};return await r.write(`${c}/package.json`,`${JSON.stringify(l,null,2)}\n`),i(`Wrote to ${c}/package.json\n`),t.exit(0)}case`-v`:case`--version`:case`version`:return i(`${lu}\n`),t.exit(0);case`help`:case`-h`:case`--help`:return i(Wu),t.exit(0);default:throw new fu(`${o}: not a command the playground's npm has (npm help)`)}}catch(e){return a(`npm error ${e.message}\n`),t.exit(1)}};function Ku(e){let t=e.lastIndexOf(`@`),[n,r]=t>0?[e.slice(0,t),e.slice(t)]:[e,``];if(n.startsWith(`@`)){let[e,t]=n.split(`/`);return`${e}/${t?`create-${t}`:`create`}${r}`}return`create-${n}${r}`}async function qu(e,t,n){let r=await Nu(e,`${t}/node_modules/${n}/package.json`),i=Object.keys(Cu(n,r?.bin)),a=n.split(`/`).pop(),o=i.includes(a)?a:i.length===1?i[0]:null;return{version:r?.version,bin:o?`${t}/node_modules/.bin/${o}`:null,found:i}}async function Ju(e,t,n){let r=n.fs,i=e=>(t.writeError??t.write)(e),[a,...o]=n.args.filter((e,t)=>t>0||!/^(-y|--yes)$/.test(e));if(!a)return i(`npx: a package or command to run
|
|
1964
|
+
`),1;let[s,c]=Lu(a),l=c===`latest`?await Uu(r,n.cwd,s.split(`/`).pop()):null;if(!l){let e=`${n.env.HOME??`/home/user`}/.npm/_npx/${s.replace(`/`,`+`)}@${c}`;await r.mkdir(e),await r.stat(`${e}/package.json`)||await r.write(`${e}/package.json`,`{}
|
|
1965
|
+
`);let t=await qu(r,e,s);if((0,T.valid)(c)&&t.version===(0,T.valid)(c)&&t.bin&&await r.stat(t.bin)===`file`||(await Ru(r,e,[`${s}@${c}`],{dev:!1,exact:!0,save:!0},e=>{}),t=await qu(r,e,s)),!t.bin)return i(`npx: ${s} has no bin to run${t.found.length?` (it has ${t.found.join(`, `)})`:``}\n`),1;l=t.bin}return Bu(e().node,t,{...n,args:[l,...o],env:{...n.env,PATH:Hu(n.cwd,n.env.PATH)}})}const Yu=e=>async(t,n)=>{try{t.exit(await Ju(e,t,n))}catch(e){(t.writeError??t.write)(`npx error ${e.message}\n`),t.exit(1)}};function Xu(e,t,n,r){let i=e(n,r,(e,n)=>n===2&&t.writeError?t.writeError(e):t.write(e),e=>{i.stop(),t.exit(e)},(e,n)=>t.raw?.(e,n));t.oninput=e=>{if(!e)return i.frame?.(E.INPUT,2);for(let t=0;t<e.length;t+=xt)i.frame?.(E.INPUT,1,e.subarray(t,t+xt))},t.onresize=(e,t)=>i.resize?.(e,t);let[a,o]=t.size?.()??[80,24];i.resize?.(a,o),t.onkill=()=>i.frame?.(E.INPUT,2),t.onowner=()=>i.stop()}const Zu=e=>(t,n)=>Xu(e,t,[`sh`,...n.args],n),Qu=(e,t)=>(n,r)=>Xu(e,n,[t,...r.args],r),$u=(e,t)=>(n,r)=>Xu(e,n,[`escript`,t,...r.args],r),ed=[13,10,13,10];function td(e,t){outer:for(let n=0;n+t.length<=e.length;n++){for(let r=0;r<t.length;r++)if(e[n+r]!==t[r])continue outer;return n}return-1}function nd(e,t,n,r,i){let a=[`HTTP/1.1 ${t} ${n}`,`content-length: ${i.length}`,`connection: close`];for(let[e,t]of r)a.push(`${e}: ${t}`);e.write(new TextEncoder().encode(a.join(`\r
|
|
1966
|
+
`)+`\r
|
|
1967
|
+
\r
|
|
1968
|
+
`)),i.length&&e.write(i),e.end()}function rd({route:e,keep:t=()=>!1,cache:n=`playground-fetch`,onrequest:r=()=>{}}){async function i(e,r){let i=n&&t(e)&&await caches.open(n).catch(()=>null),a=i&&await i.match(e);if(a)return a;let o=await fetch(e,{method:r,credentials:`omit`});return i&&r===`GET`&&o.ok&&await i.put(e,o.clone()).catch(()=>{}),o}return t=>{let n=/* @__PURE__ */ new Uint8Array,a=!1;t.ondata=async o=>{if(a)return;let s=new Uint8Array(n.length+o.length);if(s.set(n),s.set(o,n.length),n=s,td(n,ed)<0)return;a=!0;let[c,l]=new TextDecoder().decode(n).split(`\r
|
|
1969
|
+
`)[0].split(` `),u=l.replace(/^https?:\/\/[^/]+/,``),d=[`GET`,`HEAD`].includes(c)?await e(u):null;if(r(c,u,d),!d)nd(t,404,`Not Found`,[[`content-type`,`text/plain`]],new TextEncoder().encode(`${u}: not here\n`));else try{let e=await i(d,c),n=c===`HEAD`?/* @__PURE__ */ new Uint8Array:new Uint8Array(await e.arrayBuffer()),r=[];for(let t of[`content-type`,`etag`,`last-modified`,`cache-control`]){let n=e.headers.get(t);n&&r.push([t,n])}nd(t,e.status,e.statusText||`OK`,r,n)}catch(e){nd(t,502,`Bad Gateway`,[[`content-type`,`text/plain`]],new TextEncoder().encode(`${d}: ${e.message}\n`))}}}}const id=49180,ad=`https://hexpm.upyun.com`,od={HEX_MIRROR:`http://localhost:${id}/repo`,HEX_API_URL:`http://localhost:${id}/api`};let sd=null;function cd(){return sd??=fetch(`/hex/public_key`,{method:`HEAD`}).then(e=>e.ok&&!e.headers.get(`content-type`)?.startsWith(`text/html`)?`${location.origin}/hex`:ad,()=>ad),sd}rd({cache:`playground-hex`,keep:e=>e.includes(`/tarballs/`),async route(e){return/^\/repo\/(names|versions|public_key|(packages|tarballs)\/[^/]+)$/.test(e.split(`?`)[0])?`${await cd()}${e.slice(5)}`:e.startsWith(`/api/`)?`https://hex.pm/api${e.slice(4)}`:null}});function ld(e){return e===`phoenix`?{boots:[`boot`,`boot-phoenix`],firstTab:`Server`,alwaysPreview:!0,showFiles:!0,running:`Phoenix 1.8 on OTP (WebAssembly), with PGlite`}:{boots:[`boot`],firstTab:e===`iex`?`IEx`:`Shell`,alwaysPreview:!1,showFiles:e!==`iex`,running:`Elixir 1.20 on OTP (WebAssembly)`}}const ud=new TextDecoder(`utf-8`,{fatal:!0}),dd=e=>{let t=``;for(let n=0;n<e.length;n+=32768)t+=String.fromCharCode(...e.subarray(n,n+32768));return btoa(t)},fd=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0));function pd(e){try{return ud.decode(e)}catch{return{base64:dd(e)}}}function md(e){return typeof e==`string`?new TextEncoder().encode(e):fd(e.base64)}const hd=/^[a-z0-9]{10}$/;function gd(e){return hd.test(e)}let _d={domain:null,usercontent:null,preview:null,moved:null,stray:!1,embedders:[]};const vd=/^v-([a-z0-9]{10})-(\d{1,5})$/;function yd(e){let t=e.match(vd),n=t?Number(t[2]):0;return t&&gd(t[1])&&n>0&&n<65536?{project:t[1],port:n}:null}function bd(e){let t=e.match(/^p-([a-z0-9]{10})$/)?.[1];return t&&gd(t)?`/${t}/`:e.startsWith(`l-`)&&location.pathname.startsWith(`/live/`)?location.pathname:null}async function xd(){let e=await fetch(`/playground.json`,{cache:`no-cache`}).then(e=>e.ok?e.json():{}).catch(()=>({})),t=typeof e.domain==`string`&&e.domain?e.domain:null,n=typeof e.usercontent==`string`&&e.usercontent?e.usercontent:null;_d={domain:t,usercontent:n,preview:null,moved:null,stray:!1,embedders:Array.isArray(e.embedders)?e.embedders.filter(e=>typeof e==`string`):[]};let r=location.host;n&&r.endsWith(`.${n}`)?(_d.preview=yd(r.slice(0,-n.length-1)),_d.stray=!_d.preview):t&&r.endsWith(`.${t}`)&&(_d.moved=bd(r.slice(0,-t.length-1)),_d.stray=!_d.moved)}function Sd(e){return _d.usercontent&&gd(e)?`${location.protocol}//v-${e}-{port}.${_d.usercontent}`:null}const Cd=(e,t)=>Sd(e)?.replace(`{port}`,String(t))??null,wd=4e3,Td=Array.from(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(15)),e=>String.fromCharCode(65+e%26)).join(``);let Y=null,X=null,Ed=null,Dd=ld(`empty`),Z=null,Od=null,kd=null,Ad=null,jd=nt(new et);const Q=/* @__PURE__ */ new Map,Md=/* @__PURE__ */ new Set,$=/* @__PURE__ */ new Set,Nd=/* @__PURE__ */ new Map,Pd=/* @__PURE__ */ new Map,Fd=[],Id=new TextEncoder;function Ld(){if(!X)throw Error(`the playground is not running`);return X}const Rd=/* @__PURE__ */ new WeakMap;let zd=1;const Bd=e=>{let t=Rd.get(e);return t===void 0&&Rd.set(e,t=zd++),t};function Vd(e){return t=>{let n=new MessageChannel;rn(t,n.port1),Y.call(`connect`,[e,Bd(t.node),t.id,n.port2],[n.port2]).catch(()=>t.close())}}const Hd=/* @__PURE__ */ new Map;let Ud=49152+Math.floor(Math.random()*16384);const Wd={listen(e,t){let n=e=>Hd.has(e)||[...$].some(t=>t.listening.has(e)),r=e!==0;if(!r)do e=Ud,Ud=Ud>=65535?49152:Ud+1;while(n(e));else if(n(e))return null;return Hd.set(e,{listener:t,serving:r}),tf(),ff(),e},unlisten(e,t){Hd.get(e)?.listener===t&&(Hd.delete(e),tf(),ff())},route(e,t){if(t!==void 0)return n=>Qd(n,{host:t,port:e});if(Md.has(e))return Vd(`port:${e}`);let n=ef()[e];if(n)return n;let r=Hd.get(e)?.listener??[...$].find(t=>t.listening.has(e));return r?t=>af(t,r.connect(e)):null},async dial(e,t,n){let r=Jd(),i=!1;e.onclose=()=>i=!0;let a=await r.tunnel(t,n).catch(e=>{throw Object.assign(e,{code:(e.code??`ehostunreach`).toUpperCase()})});if(!a)throw r.blocked(t.includes(`:`)?`[${t}]:${n}`:`${t}:${n}`),Object.assign(/* @__PURE__ */ Error(`network is unreachable`),{code:`ENETUNREACH`});if(i)a.close();else return e.ondata=e=>a.write(e),e.onend=()=>a.end(),e.onclose=()=>a.close(),a.ondata=t=>e.write(t),a.onend=t=>{if(!t)return e.end();e.reset(),a.close()},a.local},resolve:e=>Jd().resolve(e),udp(){let e=/* @__PURE__ */ new Set,t=Jd().udp(),n=n=>{e.delete(n)&&(Gd.delete(n),t.unbound?.(n))};return{bind(t,n){let r=e=>e===53||Gd.has(e)||[...$].some(t=>t.udpPorts.has(e));if(t===0)do t=Ud,Ud=Ud>=65535?49152:Ud+1;while(r(t));else if(r(t))return null;return e.add(t),Gd.set(t,n),t},unbind:n,send(n){let{from:r,address:i,port:a,bytes:o}=n;if(!e.has(r))return;let s=(e,t,n)=>Gd.get(r)?.(e,t,n);if(!Kd(i))return t.send(n,s);let c=Gd.get(a);a===53?tn(Jd().resolve)(n,s):c?c(`127.0.0.1`,r,o):[...$].find(e=>e.udpPorts.has(a))?.datagram(a,`127.0.0.1`,r,o)},close(){for(let t of[...e])n(t)}}}},Gd=/* @__PURE__ */ new Map,Kd=e=>/^127\./.test(e)||e===`::1`||e===`localhost`;let qd=null;const Jd=()=>qd??=ln(Y);let Yd=null,Xd=null;const Zd=async(e,t)=>{if(!Jt(e,t))return Jd().tunnel(e,t);let n=await Y.call(`relayWay`,[e]).catch(()=>`none`);return n===`tailnet`?Jd().tunnel(e,t):n===`relay`?(Xd??=Xt())(e,t):null},Qd=(e,t)=>(Yd??=Vt({tunnel:Zd,onblocked:Jd().blocked}))(e,t);let $d=null;const ef=()=>$d??={5432:Vd(`postgres`),[id]:Vd(`hex`),[$e]:jd,53:nn(Jd().resolve)};function tf(){for(let e of $)e.peers([...[...$].filter(t=>t!==e).flatMap(e=>[...e.listening]),...Hd.keys(),...Md])}function nf({from:e,port:t,bytes:n},r){let i=Gd.get(t);if(i)return i(`127.0.0.1`,e,n),!0;let a=[...$].find(e=>e!==r&&e.udpPorts.has(t));return a?.datagram(t,`127.0.0.1`,e,n),!!a}function rf(e,t){if(Md.has(t))return Vd(`port:${t}`)(e),!0;let n=[...$].find(n=>n!==e.node&&n.listening.has(t))??Hd.get(t)?.listener;return n?(af(e,n.connect(t)),!0):!1}function af(e,t){let n=!1,r=()=>{n||(n=!0,e.close(),t.close())};e.ondata=e=>t.write(e),t.ondata=t=>e.write(t),e.onend=()=>t.end(),t.onend=()=>e.end(),e.onclose=r,t.onclose=r}const of=()=>sf().programs;function sf(){let e=Jd();return{peer:rf,udpPeer:nf,serve:ef(),udpServe:{53:tn(e.resolve)},outbound:e.outbound,udp:e.udp(),onnif:e=>Y.emit(`nif`,e),https:Qd,programs:{tailwind:$l,esbuild:jn,inotifywait:Fn,node:tu(Z.build,()=>X,Wd,new He(Od).tls(),of),npm:Gu(of),npx:Yu(of),claude:su(of,()=>Y.call(`claudePort`)),sh:Zu(cf),bash:Zu(cf),rebar3:$u(cf,pt(new He(Od)).MIX_REBAR3),...Object.fromEntries([`mix`,`elixir`,`iex`,`erl`,`escript`].map(e=>[e,Qu(cf,e)]))}}}const cf=(e,{cwd:t,env:n,tty:r},i,a,o)=>{if(!X||!Z)return a(1),{stop(){}};let s=new Et({base:Z.build,site:Od,files:X,...sf(),onoutput(e,t){Pd.set(s,((Pd.get(s)??``)+new TextDecoder().decode(e)).slice(-4096)),i(e,t)},onexit(e){Fd.push({command:Nd.get(s)??``,code:e,output:Pd.get(s)??``}),Fd.length>10&&Fd.shift(),$.delete(s),Nd.delete(s),Pd.delete(s),tf(),a(e)},onstatus(t){t.startsWith(`failed`)&&(i(Id.encode(`${e[0]}: ${t}\n`),2),a(1))},onlistening:tf,onterminal:(e,t)=>o?.(e,t)});return $.add(s),Nd.set(s,e.join(` `)),tf(),s.start({command:e,cwd:t,env:{...n,PWD:t},boots:Dd.boots,tty:[r?.stdin??!1,r?.stdout??!1]}),s};function lf(e){for(let{node:t}of Q.values())if(t.listening.has(e))return t;return Q.values().next().value?.node??null}function uf(e){return Hd.get(e)?.listener??lf(e)}let df=[];function ff(){let e=/* @__PURE__ */ new Set,t={};for(let[n,{node:r}]of Q){t[n]=[...r.serving];for(let t of r.serving)e.add(t)}let n=[...Hd].filter(([,{serving:e}])=>e).map(([e])=>e);for(let t of n)e.add(t);df=df.filter(t=>e.has(t));for(let t of e)df.includes(t)||df.push(t);let r=[...e].sort((e,t)=>e-t),i=e.size?Ad??(e.has(wd)?wd:df.at(-1)):null;kd&&i!==null&&(kd.port=i),Y.emit(`serving`,{ports:r,port:i,byProcess:t,scripts:n})}function pf(){let e=Z&&Sd(Z.key);return e&&Z?{PLAYGROUND_PREVIEW_ORIGIN:e,LIVEBOOK_IFRAME_URL:`${Cd(Z.key,8081)}/iframe/v6.html`}:{}}async function mf(e){let{changed:t,removed:n}=await Ld().changes(e),r=e=>e.slice(6),i=t.filter(({path:e})=>!e.includes(`/priv/static/assets/`));return{v:1,kind:Z.kind===`phoenix`?`phoenix`:`empty`,site:new He(Od).fsVersion(),files:Object.fromEntries(i.map(({path:e,data:t})=>[r(e),pd(t)])),removed:n.map(r)}}async function hf(e){await e,await X?.flush()}const gf={async start(e){return Z={...e,build:new URL(e.build,location.origin).href},Od={url:new URL(e.site.url,location.origin).href,manifest:e.site.manifest},Ze(Od.manifest),Dd=ld(e.kind),e.archive&&(Dd={...Dd,boots:ld(`phoenix`).boots}),await xd(),X=new it({base:Z.build,site:Od,boots:Dd.boots,template:[new He(Od).template(e.kind)?.root].filter(e=>!!e),archive:e.archive??null,storePort:e.store,sharedPort:e.shared??null,onkept:e=>Y.emit(`kept`,e,e.flatMap(e=>e.kind===`file`?[e.data.buffer]:[])),onchange:e=>{yn(e),Y.emit(`changed`,e)},onwarning:e=>Y.emit(`warning`,e)}),await X.ready,kd=new b({connect:e=>uf(e).connect(e)},wd,Sd(e.key),e.ide),Ad=null,df=[],kd.onport=e=>{Ad=e,ff()},{archived:X.archived.map(e=>`/work/${e}`)}},async applyShared(e){let t=Ld();for(let n of e.removed)await t.remove(`/work/${n}`).catch(()=>{});for(let[n,r]of Object.entries(e.files)){let e=`/work/${n}`;await t.mkdir(e.slice(0,e.lastIndexOf(`/`))),await t.write(e,md(r))}await t.flush()},list:(e,t)=>Ld().list(e,t),stat:e=>X?X.stat(e):null,lstat:e=>Ld().lstat(e),readdir:e=>Ld().readdir(e),async git(e,t={}){if(!X||!Z)throw Error(`no project`);Ed??=new ot({base:Z.build,site:Od,files:X});let n=await Ed.run(e,t);return ru(n,[n.stdout.buffer,n.stderr.buffer])},async read(e){let t=await Ld().read(e);return ru(t,[t.buffer])},write:(e,t)=>hf(Ld().write(e,t)),applyKept:e=>Ld().apply(e),hideShared:e=>Ld().hideShared(e),mkdir:e=>hf(Ld().mkdir(e)),remove:e=>hf(Ld().remove(e)),rename:(e,t)=>hf(Ld().rename(e,t)),search:(e,t,n)=>Ld().search(e,t,n),flush:()=>X?.flush(),changes:mf,saved:e=>yn([e]),spawn(e,{argv:t=null,line:n=null,initial:r=[],cwd:i=`/work`,env:a={},tty:o=null}){if(!X||!Z)throw Error(`the playground is not running`);if(Q.has(e))throw Error(`process ${e} runs already`);let s=!1,c=(t,n=null)=>{s||(s=!0,d.stop(),$.delete(d),Q.delete(e),tf(),ff(),Y.emit(`processExit`,{id:e,code:t,signal:n}))},l=o?vt():null,u=(t,n)=>{let r=l?l(t):t;Y.emit(`processOutput`,{id:e,fd:o?1:n,bytes:r},[r.buffer])},d=new Et({base:Z.build,site:Od,files:X,...sf(),onoutput:u,onstatus(t){Y.emit(`processStatus`,{id:e,text:t}),t.startsWith(`failed`)&&(u(Id.encode(`${t}\n`),2),c(1))},onexit:e=>c(e),onlistening(){ff(),tf()},onterminal:(t,n)=>Q.get(e)?.discipline?.raw(t,n)}),f=e=>{for(let t=0;t<e.length;t+=xt)d.frame(E.INPUT,+!o,e.subarray(t,t+xt))},p=o?_t(e=>u(Id.encode(e),1),{input:e=>f(Id.encode(e)),interrupt:()=>d.interrupt()},r):null;Q.set(e,{node:d,tty:!!o,input:f,discipline:p,decoder:new TextDecoder,end:c}),$.add(d),tf(),o&&d.resize(o.cols,o.rows);let m=t?t.map(dt).join(` `):n;d.start({...m===null?{shell:!0,initial:r}:{command:[`sh`,`-c`,m]},cwd:i,boots:Dd.boots,env:{...a,...pt(new He(Od)),...od,PLAYGROUND_COOKIE:Td,...pf(),PWD:i},tty:[!!o,!!o]})},input(e,t){let n=Q.get(e);if(!n?.discipline)return n?.input(t);let r=n.decoder.decode(t,{stream:!0});gt.test(r)?n.input(t):n.discipline.keys(r)},closeInput(e){let t=Q.get(e);t?.tty?t.node.frame(E.INPUT,0,Uint8Array.of(4)):t?.node.frame(E.INPUT,2)},resize:(e,t,n)=>Q.get(e)?.node.resize(t,n),signal(e,t){let n=Q.get(e);t===mt.SIGINT?n?.node.interrupt():n?.end(null,ht[t]??`SIG${t}`)},stopForeground:e=>Q.get(e)?.node.terminate(),serveRemote(e){Md.clear();for(let t of e)Md.add(t);tf()},connectServer(e,t){let n=Hd.get(e);if(n?.serving)return rn(n.listener.connect(e),t),!0;for(let{node:n}of Q.values())if(n.serving.has(e))return rn(n.connect(e),t),!0;return t.close(),!1},relay:e=>Qe(e,()=>kd),previewShows(e){Ad=e,ff()},cookieHeader:e=>kd?.cookieHeader(e)??null,remember(e){let t=[];return kd?.remember(e,t),t},debug:()=>({bridge:kd?.debug(),nodes:Object.fromEntries([...Q].map(([e,{node:t}])=>[e,t.debug()])),commands:[...Nd].map(([e,t])=>({command:t,output:Pd.get(e)??``,...e.debug()})),ended:Fd}),async shutdown(){await X?.flush().catch(()=>{});for(let e of $)e.stop();$.clear(),Q.clear(),Md.clear(),Hd.clear(),Gd.clear(),Ed?.stop(),Ed=null,X?.worker.terminate(),X=null,jd=nt(new et)}};self.onmessage=({data:e,ports:t})=>{e?.kind===`playground-exec`&&!Y&&t[0]&&(Y=new iu(t[0]).handle(gf))};export{o as t};
|