claude-mux 0.26.0 → 0.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/utils/version.d.ts +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/web/client/_app/immutable/assets/{AllSessionsPanel.f9lPaCAm.css → AllSessionsPanel.BCLr3G4T.css} +1 -1
- package/dist/web/client/_app/immutable/chunks/1pIWnoD_.js +1 -0
- package/dist/web/client/_app/immutable/chunks/{DiZbZSGT.js → Cotx9uI_.js} +1 -1
- package/dist/web/client/_app/immutable/chunks/DfoR1zCV.js +1 -0
- package/{web/.svelte-kit/output/client/_app/immutable/chunks/DiOw8sHZ.js → dist/web/client/_app/immutable/chunks/DmEI2TOa.js} +2 -2
- package/dist/web/client/_app/immutable/chunks/DtVU-s3j.js +2 -0
- package/dist/web/client/_app/immutable/entry/{app.CNpTeFu6.js → app.DXHW0aPL.js} +2 -2
- package/dist/web/client/_app/immutable/entry/start.CchjowOg.js +1 -0
- package/dist/web/client/_app/immutable/nodes/{0.dDcvnFRG.js → 0.DAnv2asW.js} +1 -1
- package/dist/web/client/_app/immutable/nodes/{1.CBNmfMqK.js → 1.CU8f4oNB.js} +1 -1
- package/dist/web/client/_app/immutable/nodes/{2.ihH0Csdt.js → 2.BYpvCgtu.js} +1 -1
- package/dist/web/client/_app/immutable/nodes/{3.DB5HPGN4.js → 3.DuMzeRg3.js} +1 -1
- package/dist/web/client/_app/version.json +1 -1
- package/dist/web/server/chunks/{0-BWC3pp02.js → 0-C-AAPmon.js} +9 -9
- package/dist/web/server/chunks/{0-BWC3pp02.js.map → 0-C-AAPmon.js.map} +1 -1
- package/dist/web/server/chunks/{1-CE_CJFC8.js → 1-T_dogl8W.js} +3 -3
- package/dist/web/server/chunks/{1-CE_CJFC8.js.map → 1-T_dogl8W.js.map} +1 -1
- package/dist/web/server/chunks/{2-Dfj1WaD4.js → 2-FlchE_4u.js} +7 -7
- package/dist/web/server/chunks/{2-Dfj1WaD4.js.map → 2-FlchE_4u.js.map} +1 -1
- package/dist/web/server/chunks/{3-CYhVhmhE.js → 3-U2bTntXU.js} +6 -6
- package/dist/web/server/chunks/{3-CYhVhmhE.js.map → 3-U2bTntXU.js.map} +1 -1
- package/dist/web/server/chunks/{_layout.svelte-CPnvAXA1.js → _layout.svelte-Ddn9Wu-V.js} +62 -38
- package/dist/web/server/chunks/{_layout.svelte-CPnvAXA1.js.map → _layout.svelte-Ddn9Wu-V.js.map} +1 -1
- package/dist/web/server/index.js +1 -1
- package/dist/web/server/index.js.map +1 -1
- package/dist/web/server/manifest.js +10 -10
- package/dist/web/server/manifest.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/version.ts +1 -1
- package/web/.svelte-kit/adapter-bun/.vite/manifest.json +5 -5
- package/web/.svelte-kit/adapter-bun/_app/immutable/assets/{AllSessionsPanel.BN_DtmfA.css → AllSessionsPanel.oOfpNqDA.css} +1 -1
- package/web/.svelte-kit/adapter-bun/chunks/internal2.js +1 -1
- package/web/.svelte-kit/adapter-bun/entries/pages/_layout.svelte.js +73 -42
- package/web/.svelte-kit/adapter-bun/manifest-full.js +1 -1
- package/web/.svelte-kit/adapter-bun/manifest.js +1 -1
- package/web/.svelte-kit/adapter-bun/nodes/0.js +2 -2
- package/web/.svelte-kit/adapter-bun/nodes/1.js +1 -1
- package/web/.svelte-kit/adapter-bun/nodes/2.js +2 -2
- package/web/.svelte-kit/adapter-bun/nodes/3.js +1 -1
- package/web/.svelte-kit/generated/server/internal.js +1 -1
- package/web/.svelte-kit/output/client/.vite/manifest.json +46 -46
- package/web/.svelte-kit/output/client/_app/immutable/assets/{AllSessionsPanel.f9lPaCAm.css → AllSessionsPanel.BCLr3G4T.css} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/1pIWnoD_.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/{DiZbZSGT.js → Cotx9uI_.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/DfoR1zCV.js +1 -0
- package/{dist/web/client/_app/immutable/chunks/DiOw8sHZ.js → web/.svelte-kit/output/client/_app/immutable/chunks/DmEI2TOa.js} +2 -2
- package/web/.svelte-kit/output/client/_app/immutable/chunks/DtVU-s3j.js +2 -0
- package/web/.svelte-kit/output/client/_app/immutable/entry/{app.CNpTeFu6.js → app.DXHW0aPL.js} +2 -2
- package/web/.svelte-kit/output/client/_app/immutable/entry/start.CchjowOg.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{0.dDcvnFRG.js → 0.DAnv2asW.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{1.CBNmfMqK.js → 1.CU8f4oNB.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{2.ihH0Csdt.js → 2.BYpvCgtu.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{3.DB5HPGN4.js → 3.DuMzeRg3.js} +1 -1
- package/web/.svelte-kit/output/client/_app/version.json +1 -1
- package/web/.svelte-kit/output/server/.vite/manifest.json +5 -5
- package/web/.svelte-kit/output/server/_app/immutable/assets/{AllSessionsPanel.BN_DtmfA.css → AllSessionsPanel.oOfpNqDA.css} +1 -1
- package/web/.svelte-kit/output/server/chunks/internal2.js +1 -1
- package/web/.svelte-kit/output/server/entries/pages/_layout.svelte.js +73 -42
- package/web/.svelte-kit/output/server/manifest-full.js +1 -1
- package/web/.svelte-kit/output/server/manifest.js +1 -1
- package/web/.svelte-kit/output/server/nodes/0.js +2 -2
- package/web/.svelte-kit/output/server/nodes/1.js +1 -1
- package/web/.svelte-kit/output/server/nodes/2.js +2 -2
- package/web/.svelte-kit/output/server/nodes/3.js +1 -1
- package/web/src/lib/components/AllSessionsPanel.svelte +83 -8
- package/web/src/routes/+page.svelte +3 -1
- package/dist/web/client/_app/immutable/chunks/BCzBis9C.js +0 -1
- package/dist/web/client/_app/immutable/chunks/CliFL4wI.js +0 -1
- package/dist/web/client/_app/immutable/chunks/Ds3l27rE.js +0 -2
- package/dist/web/client/_app/immutable/entry/start.D4TYqMTJ.js +0 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/BCzBis9C.js +0 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/CliFL4wI.js +0 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/Ds3l27rE.js +0 -2
- package/web/.svelte-kit/output/client/_app/immutable/entry/start.D4TYqMTJ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ar as Tl,aG as Il,bo as Nl,aL as Rl,h as Ge,a as Xr,b as So,bp as Ml,E as ua,e as zr,bq as Dl,aT as Fl,ac as jl,G as Ll,d as As,c as Tr,P as Zl,w as Vl,bk as Bl,i as Wl,O as Mt,N as da,br as fa,bs as Ul,aC as Gl,J as sn,a9 as ha,M as $l,a7 as pa,bt as Es,u as Ne,bu as Hl,j as m,_ as Kl,l as V,k as O,v as We,aa as z,p as U,f as R,g as G,t as an,bv as zs,al as Jl,b0 as cn,bw as ql,bx as Ts,by as Yl,y as ie,m as ve,n as be,bz as Xl,bA as Ql,q as Fe,bB as eu,a8 as tu,bC as nu,ab as Gt}from"./RhyL4cOo.js";import{s as ru}from"./Ds3l27rE.js";import{k as ou,q as su,c as D,a as P,f as ae,r as ma,o as Te,p as $e,m as iu,u as au,l as cu,t as Ir}from"./BuvGONG-.js";import{B as Co,p as v,i as fe,r as Q,c as se,b as Dt}from"./ukOf9Kzz.js";import{s as Is,b as Cn,a as Ns,d as Rs,n as Bn,j as pe,e as lu,k as uu}from"./BpsTpPGB.js";import{c as he}from"./CjMoR7Dp.js";const du=[];function fu(t,e=!1,n=!1){return Wn(t,new Map,"",du,null,n)}function Wn(t,e,n,r,o=null,s=!1){if(typeof t=="object"&&t!==null){var i=e.get(t);if(i!==void 0)return i;if(t instanceof Map)return new Map(t);if(t instanceof Set)return new Set(t);if(Tl(t)){var a=Array(t.length);e.set(t,a),o!==null&&e.set(o,a);for(var c=0;c<t.length;c+=1){var l=t[c];c in t&&(a[c]=Wn(l,e,n,r,null,s))}return a}if(Il(t)===Nl){a={},e.set(t,a),o!==null&&e.set(o,a);for(var u of Object.keys(t))a[u]=Wn(t[u],e,n,r,null,s);return a}if(t instanceof Date)return t.getTime(),structuredClone(t);if(typeof t.toJSON=="function"&&!s)return Wn(t.toJSON(),e,n,r,t)}if(t instanceof EventTarget)return t;try{return structuredClone(t)}catch{return t}}function hu(){return Symbol(Rl)}const pu=Symbol("NaN");function mu(t,e,n){Ge&&Xr();var r=new Co(t),o=!Ml();So(()=>{var s=e();s!==s&&(s=pu),o&&s!==null&&typeof s=="object"&&(s={}),r.ensure(s,n)})}function q(t,e,...n){var r=new Co(t);So(()=>{const o=e()??null;r.ensure(o,o&&(s=>o(s,...n)))},ua)}function gu(t,e,n,r,o,s){let i=Ge;Ge&&Xr();var a=null;Ge&&zr.nodeType===Dl&&(a=zr,Xr());var c=Ge?zr:t,l=new Co(c,!1);So(()=>{const u=e()||null;var h=Bl;if(u===null){l.ensure(null,null);return}return l.ensure(u,d=>{if(u){if(a=Ge?a:Fl(u,h),ou(a,a),r){var f=null;Ge&&su(u)&&a.append(f=document.createComment(""));var p=Ge?jl(a):a.appendChild(Ll());Ge&&(p===null?As(!1):Tr(p)),r(a,p),f?.remove()}Zl.nodes.end=a,d.before(a)}Ge&&Tr(d)}),()=>{}},ua),Vl(()=>{}),i&&(As(!0),Tr(c))}function Ax(t,e,n){Wl(()=>{var r=Mt(()=>e(t,n?.())||{});if(n&&r?.update){var o=!1,s={};da(()=>{var i=n();fa(i),o&&Ul(s,i)&&(s=i,r.update(i))}),o=!0}if(r?.destroy)return()=>r.destroy()})}function ga(t,e,n=e){var r=new WeakSet;Gl(t,"input",async o=>{var s=o?t.defaultValue:t.value;if(s=Nr(t)?Rr(s):s,n(s),sn!==null&&r.add(sn),await ha(),s!==(s=e())){var i=t.selectionStart,a=t.selectionEnd,c=t.value.length;if(t.value=s??"",a!==null){var l=t.value.length;i===a&&a===c&&l>c?(t.selectionStart=l,t.selectionEnd=l):(t.selectionStart=i,t.selectionEnd=Math.min(a,l))}}}),(Ge&&t.defaultValue!==t.value||Mt(e)==null&&t.value)&&(n(Nr(t)?Rr(t.value):t.value),sn!==null&&r.add(sn)),da(()=>{var o=e();if(t===document.activeElement){var s=sn;if(r.has(s))return}Nr(t)&&o===Rr(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function Nr(t){var e=t.type;return e==="number"||e==="range"}function Rr(t){return t===""?null:+t}function vu(t=!1){const e=$l,n=e.l.u;if(!n)return;let r=()=>fa(e.s);if(t){let o=0,s={};const i=Kl(()=>{let a=!1;const c=e.s;for(const l in c)c[l]!==s[l]&&(s[l]=c[l],a=!0);return a&&o++,o});r=()=>m(i)}n.b.length&&pa(()=>{Ms(e,r),Es(n.b)}),Ne(()=>{const o=Mt(()=>n.m.map(Hl));return()=>{for(const s of o)typeof s=="function"&&s()}}),n.a.length&&Ne(()=>{Ms(e,r),Es(n.a)})}function Ms(t,e){if(t.l.s)for(const n of t.l.s)m(n);e()}const bu=()=>{const t=ru;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},Ex={subscribe(t){return bu().page.subscribe(t)}},yu={pingInterval:3e4,pongTimeout:1e4,baseReconnectDelay:1e3,maxReconnectDelay:3e4};class wu{#e=V(!1);get connected(){return m(this.#e)}set connected(e){O(this.#e,e,!0)}#t=V(!1);get receivedData(){return m(this.#t)}set receivedData(e){O(this.#t,e,!0)}ws=null;pingTimer=null;reconnectTimer=null;lastPong=0;reconnectAttempts=0;visibilityHandler=null;config;constructor(e){this.config={...yu,...e}}shouldReconnect(){return!0}onConnected(){}onDisconnected(){}doConnect(){if(this.ws)return;const e=this.getWsUrl();this.ws=new WebSocket(e),this.ws.onopen=()=>{this.connected=!0,this.reconnectAttempts=0,this.lastPong=Date.now(),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.startPingTimer(),this.setupVisibilityHandler(),this.onConnected()},this.ws.onmessage=n=>{if(n.data==="pong"){this.lastPong=Date.now();return}this.receivedData=!0,this.handleMessage(n)},this.ws.onclose=()=>{this.connected=!1,this.ws=null,this.stopPingTimer(),this.onDisconnected(),this.shouldReconnect()&&this.scheduleReconnect()},this.ws.onerror=()=>{this.ws?.close()}}doDisconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.stopPingTimer(),this.removeVisibilityHandler(),this.connected=!1,this.reconnectAttempts=0,this.ws&&(this.ws.onopen=null,this.ws.onclose=null,this.ws.onerror=null,this.ws.onmessage=null,this.ws.readyState!==WebSocket.CLOSED&&this.ws.close(),this.ws=null)}resetReceived(){this.receivedData=!1}send(e){return!this.ws||this.ws.readyState!==WebSocket.OPEN?!1:(this.ws.send(e),!0)}forceReconnect(){this.reconnectAttempts=0,this.ws&&(this.ws.onclose=null,this.ws.close(),this.ws=null),this.stopPingTimer(),this.connected=!1,this.doConnect()}startPingTimer(){this.stopPingTimer(),this.pingTimer=setInterval(()=>{if(this.ws?.readyState===WebSocket.OPEN){if(Date.now()-this.lastPong>this.config.pingInterval+this.config.pongTimeout){this.ws?.close();return}this.ws.send("ping")}},this.config.pingInterval)}stopPingTimer(){this.pingTimer&&(clearInterval(this.pingTimer),this.pingTimer=null)}scheduleReconnect(){if(this.reconnectTimer)return;const e=Math.min(this.config.baseReconnectDelay*Math.pow(2,this.reconnectAttempts)+Math.random()*1e3,this.config.maxReconnectDelay);this.reconnectAttempts++,this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.doConnect()},e)}setupVisibilityHandler(){this.visibilityHandler||(this.visibilityHandler=()=>{document.visibilityState==="visible"&&this.shouldReconnect()&&(!this.ws||this.ws.readyState!==WebSocket.OPEN?this.forceReconnect():this.ws.send("ping"))},document.addEventListener("visibilitychange",this.visibilityHandler))}removeVisibilityHandler(){this.visibilityHandler&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null)}}function Ds(t){return Array.isArray(t)?[...t]:t&&typeof t=="object"?{...t}:t}function Fs(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function Oo(t,e){return{load(){try{const n=localStorage.getItem(t);if(n===null)return Ds(e);const r=JSON.parse(n);return Fs(e)&&Fs(r)?{...e,...r}:r}catch{return Ds(e)}},save(n){try{localStorage.setItem(t,JSON.stringify(n))}catch{}}}}function va(t){const e=Object.values(t).filter(r=>typeof r=="number");return Object.entries(t).filter(([r,o])=>e.indexOf(+r)===-1).map(([r,o])=>o)}function js(t,e="|"){return t.map(n=>wa(n)).join(e)}function Qr(t,e){return typeof e=="bigint"?e.toString():e}function pr(t){return{get value(){{const e=t();return Object.defineProperty(this,"value",{value:e}),e}}}}function _u(t){return t==null}function Po(t){const e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}function ku(t,e){const n=t/e,r=Math.round(n),o=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}function Le(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}function _t(...t){const e={};for(const n of t){const r=Object.getOwnPropertyDescriptors(n);Object.assign(e,r)}return Object.defineProperties({},e)}function xu(t){return JSON.stringify(t)}function Su(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const ba="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function yn(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const Cu=pr(()=>{if(Xe.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function wn(t){if(yn(t)===!1)return!1;const e=t.constructor;if(e===void 0||typeof e!="function")return!0;const n=e.prototype;return!(yn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function ya(t){return wn(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}const Ou=new Set(["string","number","symbol"]);function Jt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function kt(t,e,n){const r=new t._zod.constr(e??t._zod.def);return(!e||n?.parent)&&(r._zod.parent=t),r}function B(t){const e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function wa(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function Pu(t){return Object.keys(t).filter(e=>t[e]._zod.optin!==void 0&&t[e]._zod.optout==="optional")}const Au={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Eu(t,e){const n=t._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=_t(t._zod.def,{get shape(){const i={};for(const a of Reflect.ownKeys(e)){if(!Object.prototype.hasOwnProperty.call(n.shape,a))throw new Error(`Unrecognized key: "${String(a)}"`);e[a]&&Le(i,a,n.shape[a])}return Le(this,"shape",i),i},checks:[]});return kt(t,s)}function zu(t,e){const n=t._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=_t(t._zod.def,{get shape(){const i={...t._zod.def.shape};for(const a of Reflect.ownKeys(e)){if(!Object.prototype.hasOwnProperty.call(n.shape,a))throw new Error(`Unrecognized key: "${String(a)}"`);e[a]&&delete i[a]}return Le(this,"shape",i),i},checks:[]});return kt(t,s)}function Tu(t,e){if(!wn(e))throw new Error("Invalid input to extend: expected a plain object");const n=t._zod.def.checks;if(n&&n.length>0){const s=t._zod.def.shape;for(const i of Reflect.ownKeys(e))if(Object.getOwnPropertyDescriptor(s,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=_t(t._zod.def,{get shape(){const s={...t._zod.def.shape,...e};return Le(this,"shape",s),s}});return kt(t,o)}function Iu(t,e){if(!wn(e))throw new Error("Invalid input to safeExtend: expected a plain object");const n=_t(t._zod.def,{get shape(){const r={...t._zod.def.shape,...e};return Le(this,"shape",r),r}});return kt(t,n)}function Nu(t,e){if(!e?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=_t(t._zod.def,{get shape(){const r={...t._zod.def.shape,...e._zod.def.shape};return Le(this,"shape",r),r},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return kt(t,n)}function Ls(t,e,n,r="partial"){const s=e._zod.def.checks;if(s&&s.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);const a=_t(e._zod.def,{get shape(){const c=e._zod.def.shape,l={...c};if(n)for(const u of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(c,u))throw new Error(`Unrecognized key: "${String(u)}"`);n[u]&&(l[u]=t?new t({type:"optional",innerType:c[u]}):c[u])}else for(const u of Reflect.ownKeys(c))l[u]=t?new t({type:"optional",innerType:c[u]}):c[u];return Le(this,"shape",l),l},checks:[]});return kt(e,a)}function Ru(t,e,n){const r=_t(e._zod.def,{get shape(){const o=e._zod.def.shape,s={...o};if(n)for(const i of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(s,i))throw new Error(`Unrecognized key: "${String(i)}"`);n[i]&&(s[i]=new t({type:"nonoptional",innerType:o[i]}))}else for(const i of Reflect.ownKeys(o))s[i]=new t({type:"nonoptional",innerType:o[i]});return Le(this,"shape",s),s}});return kt(e,r)}function $t(t,e=0){if(t.aborted===!0)return!0;for(let n=e;n<t.issues.length;n++)if(t.issues[n]?.continue!==!0)return!0;return!1}function Mu(t,e=0){if(t.aborted===!0)return!0;for(let n=e;n<t.issues.length;n++)if(t.issues[n]?.continue===!1)return!0;return!1}function _a(t,e){return e.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(t),n})}function ln(t){return typeof t=="string"?t:t?.message}function Zs(t,e,n){var r;for(let o=e;o<t.length;o++)(r=t[o]).schema??(r.schema=n)}function Qt(t,e,n){var r;const o=t.inst?._zod?.traits;o?.has("$ZodType")&&(o.has("$ZodCheck")?(r=t).schema??(r.schema=t.inst):t.schema=t.inst);const s=t.schema!==t.inst?t.schema?._zod.def?.error:void 0,i=t.message?t.message:ln(t.inst?._zod.def?.error?.(t))??ln(s?.(t))??ln(e?.error?.(t))??ln(n.customError?.(t))??ln(n.localeError?.(t))??"Invalid input",{inst:a,schema:c,continue:l,input:u,...h}=t;return h.path??(h.path=[]),h.message=i,e?.reportInput&&(h.input=u),h}const Du=/[\uD800-\uDBFF]/;function Ao(t){const e=t.length;if(!Du.test(t))return e;let n=e;for(let r=0;r<e-1;r++)(t.charCodeAt(r)&64512)===55296&&(t.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function Eo(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Fu(t){const e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";const n=t;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return e}function _n(...t){const[e,n,r]=t;return typeof e=="string"?{message:e,code:"custom",input:n,inst:r}:{...e}}function ju(t,e){for(const n in e){const r=Object.getOwnPropertyDescriptor(e,n);r.get?Object.defineProperty(t,n,{...r,enumerable:!1}):Lu(t,n,r.value)}}function qt(t,e,n,r=!0){return Object.defineProperty(t,e,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function ka(t,e,n){return qt(t,e,n,!1)}function Lu(t,e,n){Object.defineProperty(t,e,{configurable:!0,get(){return this==null?n:qt(this,e,n.bind(this))},set(r){qt(this,e,r)}})}function Zu(t,e){const n=Object.getPrototypeOf(t);return e in n?void 0:n}let Mr,pt=!1;const Vu={configurable:!0,get(){pt=!0}};function de(t,e,n){const r=Object.getPrototypeOf(t._zod);if(e in r&&Mr!==t._zod){Mr=void 0;return}Mr=t._zod,Object.defineProperty(r,e,{configurable:!0,get(){Object.defineProperty(this,e,Vu);const o=pt;pt=!1;try{const s=n(this);return pt?delete this[e]:Object.defineProperty(this,e,{configurable:!0,writable:!0,value:s}),pt=pt||o,s}catch(s){throw delete this[e],pt=pt||o,s}},set(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o})}})}function Bu(t,e,n,r){const o=Zu(t,e);o&&Object.defineProperty(o,e,{configurable:!0,get(){const s={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,e,s),s.value=n(this),Object.defineProperty(this,e,s),s.value},set(s){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:r,value:s})}})}const Wu="~constantCatch";function Uu(t){const e=()=>t;return e[Wu]=!0,e}var Vs;const Dr={value:void 0,enumerable:!1};let Bs="captureStackTrace"in Error?Error:null;function Gu(t){const e=Bs;if(e){const n=e.stackTraceLimit;if(typeof n=="number"){try{e.stackTraceLimit=0}catch{return Bs=null,new t}try{return new t}finally{e.stackTraceLimit=n}}}return new t}function x(t,e,n,r){const o={};function s(d){this.def=d,this.constr=h,this.traits=new Set}s.prototype=o;const i=n,a=i&&new WeakSet;function c(d,f){if(!d._zod){Dr.value=new s(f);try{Object.defineProperty(d,"_zod",Dr)}finally{Dr.value=void 0}}if(d._zod.traits.has(t))return;if(d._zod.traits.add(t),e(d,f),a){const g=Object.getPrototypeOf(d),y=d._zod.constr.prototype;let k=g;for(;k&&k!==y;)k=Object.getPrototypeOf(k);const S=k??g;a.has(S)||(a.add(S),ju(S,i))}const p=h.prototype;for(const g in p)Object.prototype.hasOwnProperty.call(p,g)&&(g in d||(d[g]=p[g].bind(d)))}const l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:t});function h(d){const f=r?.Parent?Gu(u):this;c(f,d);const p=f._zod.deferred;if(p){for(const y of p)y();f._zod.deferred=void 0}const g=globalThis.__zod_globalConfig?.postProcessor;return g&&g(f),f}return Object.defineProperty(h,"init",{value:c}),Object.defineProperty(h,Symbol.hasInstance,{value:d=>r?.Parent&&d instanceof r.Parent?!0:d?._zod?.traits?.has(t)}),Object.defineProperty(h,"name",{value:t}),h}class Ht extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class xa extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(Vs=globalThis).__zod_globalConfig??(Vs.__zod_globalConfig={});const Xe=globalThis.__zod_globalConfig;function xt(t){return t&&Object.assign(Xe,t),Xe}function $u(){const t=this._zod;return t.message??(t.message=JSON.stringify(t.def,Qr,2)),t.message}function Hu(t){this._zod.message=t}const Ku={get:$u,set:Hu,enumerable:!0,configurable:!0},Fr={value:void 0,enumerable:!1},jr={value:void 0,enumerable:!1},Ws=new WeakSet([Object.prototype,Error.prototype]),Sa=(t,e)=>{t.name="$ZodError",Fr.value=t._zod,Object.defineProperty(t,"_zod",Fr),jr.value=e,Object.defineProperty(t,"issues",jr),Fr.value=void 0,jr.value=void 0,Object.defineProperty(t,"message",Ku);const n=Object.getPrototypeOf(t);Ws.has(n)||(Ws.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){const r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},Ca=x("$ZodError",Sa),Oa=x("$ZodError",Sa,void 0,{Parent:Error});function Ju(t,e,n){return Object.prototype.hasOwnProperty.call(t,e)||(e==="__proto__"?Object.defineProperty(t,e,{value:n(),writable:!0,enumerable:!0,configurable:!0}):t[e]=n()),t[e]}function qu(t,e=n=>n.message){const n={},r=[];for(const o of t.issues)o.path.length>0?Ju(n,o.path[0],()=>[]).push(e(o)):r.push(e(o));return{formErrors:r,fieldErrors:n}}function Yu(t,e=n=>n.message){const n={_errors:[]},r=(o,s=[])=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>r({issues:a},[...s,...i.path]));else if(i.code==="invalid_key")r({issues:i.issues},[...s,...i.path]);else if(i.code==="invalid_element")r({issues:i.issues},[...s,...i.path]);else{const a=[...s,...i.path];if(a.length===0)n._errors.push(e(i));else{let c=n,l=0;for(;l<a.length;){const u=a[l],h=l===a.length-1;if(u==="_errors"){h&&c._errors.push(e(i)),l++;continue}Object.prototype.hasOwnProperty.call(c,u)||Object.defineProperty(c,u,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const d=c[u];h&&d._errors.push(e(i)),c=d,l++}}}};return r(t),n}function mr(t,e){return{callee:e?.callee??t,Err:e?.Err}}const zo=t=>{const e=(n,r,o,s)=>{const i=o?{...o,async:!1}:{async:!1},a=n._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new Ht;if(a.issues.length){const c=new(s?.Err??t)(a.issues.map(l=>Qt(l,i,xt())));throw ba(c,s?.callee??e),c}return a.value};return e},To=t=>{const e=async(n,r,o,s)=>{const i=o?{...o,async:!0}:{async:!0};let a=n._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const c=new(s?.Err??t)(a.issues.map(l=>Qt(l,i,xt())));throw ba(c,s?.callee??e),c}return a.value};return e},gr=t=>(e,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=e._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Ht;return s.issues.length?{success:!1,error:new(t??Ca)(s.issues.map(i=>Qt(i,o,xt())))}:{success:!0,data:s.value}},Xu=gr(Oa),vr=t=>async(e,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let s=e._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new t(s.issues.map(i=>Qt(i,o,xt())))}:{success:!0,data:s.value}},Qu=vr(Oa),ed=t=>{const e=zo(t),n=(r,o,s,i)=>{const a=s?{...s,direction:"backward"}:{direction:"backward"};return e(r,o,a,mr(n,i))};return n},td=t=>{const e=zo(t),n=(r,o,s,i)=>e(r,o,s,mr(n,i));return n},nd=t=>{const e=To(t),n=async(r,o,s,i)=>{const a=s?{...s,direction:"backward"}:{direction:"backward"};return await e(r,o,a,mr(n,i))};return n},rd=t=>{const e=To(t),n=async(r,o,s,i)=>await e(r,o,s,mr(n,i));return n},od=t=>(e,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return gr(t)(e,n,o)},sd=t=>(e,n,r)=>gr(t)(e,n,r),id=t=>async(e,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return vr(t)(e,n,o)},ad=t=>async(e,n,r)=>vr(t)(e,n,r),cd=/^[cC][0-9a-z]{6,}$/,ld=/^[0-9a-z]+$/,ud=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,dd=/^[0-9a-vA-V]{20}$/,fd=/^[A-Za-z0-9]{27}$/,hd=/^[a-zA-Z0-9_-]{21}$/;function pd(t){return new RegExp(`^[a-zA-Z0-9_-]{${t}}$`)}const md=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,gd=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Us=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,vd=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,bd="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function yd(){return new RegExp(bd,"u")}const wd=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,_d=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,kd=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,xd=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Sd=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Pa=/^[A-Za-z0-9_-]*$/,Cd=/^https?$/,Od=/^\+[1-9]\d{6,14}$/,Aa="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function Pd(t){return new RegExp(`^${t}$`)}const Ad=Pd(Aa);function eo(t){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:t.seconds?`${e}:[0-5]\\d(?:\\.\\d+)?`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ed(t){return new RegExp(`^${eo(t)}$`)}function zd(t){const e=["Z"];t.offset&&e.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${eo({precision:t.precision,seconds:!0})}(?:${e.join("|")})`,r=t.local?`${n}|${eo({precision:t.precision})}`:n;return new RegExp(`^${Aa}T(?:${r})$`)}const Td=t=>{const e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},Id=/^-?\d+$/,Nd=/^-?\d+(?:\.\d+)?$/,Rd=/^(?:true|false)$/i,Md=/^[^A-Z]*$/,Dd=/^[^a-z]*$/,Ze=x("$ZodCheck",(t,e)=>{var n;t._zod??(t._zod={}),t._zod.def=e,(n=t._zod).onattach??(n.onattach=[])}),Io=t=>{const e=t.value;return!_u(e)&&e.length!==void 0},Hn={number:"number",bigint:"bigint",object:"date"},Ea=x("$ZodCheckLessThan",(t,e)=>{Ze.init(t,e);const n=Hn[typeof e.value];t._zod.onattach.push(r=>{const o=r._zod.bag,s=(e.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<s&&(e.inclusive?o.maximum=e.value:o.exclusiveMaximum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value<=e.value:r.value<e.value)||r.issues.push({origin:Hn[typeof r.value]??n,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),za=x("$ZodCheckGreaterThan",(t,e)=>{Ze.init(t,e);const n=Hn[typeof e.value];t._zod.onattach.push(r=>{const o=r._zod.bag,s=(e.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>s&&(e.inclusive?o.minimum=e.value:o.exclusiveMinimum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value>=e.value:r.value>e.value)||r.issues.push({origin:Hn[typeof r.value]??n,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Fd=x("$ZodCheckMultipleOf",(t,e)=>{Ze.init(t,e),t._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=e.value)}),t._zod.check=n=>{if(typeof n.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?e.value!==BigInt(0)&&n.value%e.value===BigInt(0):ku(n.value,e.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:e.value,input:n.value,inst:t,continue:!e.abort})}}),jd=x("$ZodCheckNumberFormat",(t,e)=>{Ze.init(t,e),e.format=e.format||"float64";const n=e.format?.includes("int"),r=n?"int":"number",[o,s]=Au[e.format];t._zod.onattach.push(i=>{const a=i._zod.bag;a.format=e.format,a.minimum=o,a.maximum=s,n&&(a.pattern=Id)}),t._zod.check=i=>{const a=i.value;if(n){if(!Number.isInteger(a)){i.issues.push({expected:r,format:e.format,code:"invalid_type",continue:!1,input:a,inst:t});return}if(!Number.isSafeInteger(a)){a>0?i.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,inclusive:!0,continue:!e.abort}):i.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,inclusive:!0,continue:!e.abort});return}}a<o&&i.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:t,continue:!e.abort}),a>s&&i.issues.push({origin:"number",input:a,code:"too_big",maximum:s,inclusive:!0,inst:t,continue:!e.abort})}}),Ld=x("$ZodCheckMaxLength",(t,e)=>{var n;Ze.init(t,e),(n=t._zod.def).when??(n.when=Io),t._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<o&&(r._zod.bag.maximum=e.maximum)}),t._zod.check=r=>{const o=r.value,s=o.length;if((typeof o=="string"&&s>e.maximum?Ao(o):s)<=e.maximum)return;const a=Eo(o);r.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:o,inst:t,continue:!e.abort})}}),Zd=x("$ZodCheckMinLength",(t,e)=>{var n;Ze.init(t,e),(n=t._zod.def).when??(n.when=Io),t._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>o&&(r._zod.bag.minimum=e.minimum)}),t._zod.check=r=>{const o=r.value,s=o.length;if((typeof o=="string"&&s>=e.minimum&&s<e.minimum*2?Ao(o):s)>=e.minimum)return;const a=Eo(o);r.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:o,inst:t,continue:!e.abort})}}),Vd=x("$ZodCheckLengthEquals",(t,e)=>{var n;Ze.init(t,e),(n=t._zod.def).when??(n.when=Io),t._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=e.length,o.maximum=e.length,o.length=e.length}),t._zod.check=r=>{const o=r.value,s=o.length,i=typeof o=="string"&&s>=e.length&&s<=e.length*2?Ao(o):s;if(i===e.length)return;const a=Eo(o),c=i>e.length;r.issues.push({origin:a,...c?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:r.value,inst:t,continue:!e.abort})}}),br=x("$ZodCheckStringFormat",(t,e)=>{var n,r;Ze.init(t,e),t._zod.onattach.push(o=>{const s=o._zod.bag;s.format=e.format,e.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(e.pattern))}),e.pattern?(n=t._zod).check??(n.check=o=>{e.pattern.lastIndex=0,!e.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:e.format,input:o.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(r=t._zod).check??(r.check=()=>{})}),Bd=x("$ZodCheckRegex",(t,e)=>{br.init(t,e),t._zod.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),Wd=x("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=Md),br.init(t,e)}),Ud=x("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=Dd),br.init(t,e)}),Gd=x("$ZodCheckIncludes",(t,e)=>{Ze.init(t,e);const n=Jt(e.includes),r=new RegExp(typeof e.position=="number"?`^.{${e.position},}${n}`:n);e.pattern=r,t._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),t._zod.check=o=>{o.value.includes(e.includes,e.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:o.value,inst:t,continue:!e.abort})}}),$d=x("$ZodCheckStartsWith",(t,e)=>{Ze.init(t,e);const n=new RegExp(`^${Jt(e.prefix)}.*`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),t._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:t,continue:!e.abort})}}),Hd=x("$ZodCheckEndsWith",(t,e)=>{Ze.init(t,e);const n=new RegExp(`.*${Jt(e.suffix)}$`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),t._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:t,continue:!e.abort})}}),Kd=x("$ZodCheckOverwrite",(t,e)=>{Ze.init(t,e),t._zod.check=n=>{n.value=e.tx(n.value)}});class Jd{constructor(e=[],n={}){this.content=[],this.indent=0,this.args=e,this.closed=n}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const r=e.split(`
|
|
1
|
+
import{ar as Tl,aG as Il,bo as Nl,aL as Rl,h as Ge,a as Xr,b as So,bp as Ml,E as ua,e as zr,bq as Dl,aT as Fl,ac as jl,G as Ll,d as As,c as Tr,P as Zl,w as Vl,bk as Bl,i as Wl,O as Mt,N as da,br as fa,bs as Ul,aC as Gl,J as sn,a9 as ha,M as $l,a7 as pa,bt as Es,u as Ne,bu as Hl,j as m,_ as Kl,l as V,k as O,v as We,aa as z,p as U,f as R,g as G,t as an,bv as zs,al as Jl,b0 as cn,bw as ql,bx as Ts,by as Yl,y as ie,m as ve,n as be,bz as Xl,bA as Ql,q as Fe,bB as eu,a8 as tu,bC as nu,ab as Gt}from"./RhyL4cOo.js";import{s as ru}from"./DtVU-s3j.js";import{k as ou,q as su,c as D,a as P,f as ae,r as ma,o as Te,p as $e,m as iu,u as au,l as cu,t as Ir}from"./BuvGONG-.js";import{B as Co,p as v,i as fe,r as Q,c as se,b as Dt}from"./ukOf9Kzz.js";import{s as Is,b as Cn,a as Ns,d as Rs,n as Bn,j as pe,e as lu,k as uu}from"./BpsTpPGB.js";import{c as he}from"./CjMoR7Dp.js";const du=[];function fu(t,e=!1,n=!1){return Wn(t,new Map,"",du,null,n)}function Wn(t,e,n,r,o=null,s=!1){if(typeof t=="object"&&t!==null){var i=e.get(t);if(i!==void 0)return i;if(t instanceof Map)return new Map(t);if(t instanceof Set)return new Set(t);if(Tl(t)){var a=Array(t.length);e.set(t,a),o!==null&&e.set(o,a);for(var c=0;c<t.length;c+=1){var l=t[c];c in t&&(a[c]=Wn(l,e,n,r,null,s))}return a}if(Il(t)===Nl){a={},e.set(t,a),o!==null&&e.set(o,a);for(var u of Object.keys(t))a[u]=Wn(t[u],e,n,r,null,s);return a}if(t instanceof Date)return t.getTime(),structuredClone(t);if(typeof t.toJSON=="function"&&!s)return Wn(t.toJSON(),e,n,r,t)}if(t instanceof EventTarget)return t;try{return structuredClone(t)}catch{return t}}function hu(){return Symbol(Rl)}const pu=Symbol("NaN");function mu(t,e,n){Ge&&Xr();var r=new Co(t),o=!Ml();So(()=>{var s=e();s!==s&&(s=pu),o&&s!==null&&typeof s=="object"&&(s={}),r.ensure(s,n)})}function q(t,e,...n){var r=new Co(t);So(()=>{const o=e()??null;r.ensure(o,o&&(s=>o(s,...n)))},ua)}function gu(t,e,n,r,o,s){let i=Ge;Ge&&Xr();var a=null;Ge&&zr.nodeType===Dl&&(a=zr,Xr());var c=Ge?zr:t,l=new Co(c,!1);So(()=>{const u=e()||null;var h=Bl;if(u===null){l.ensure(null,null);return}return l.ensure(u,d=>{if(u){if(a=Ge?a:Fl(u,h),ou(a,a),r){var f=null;Ge&&su(u)&&a.append(f=document.createComment(""));var p=Ge?jl(a):a.appendChild(Ll());Ge&&(p===null?As(!1):Tr(p)),r(a,p),f?.remove()}Zl.nodes.end=a,d.before(a)}Ge&&Tr(d)}),()=>{}},ua),Vl(()=>{}),i&&(As(!0),Tr(c))}function Ax(t,e,n){Wl(()=>{var r=Mt(()=>e(t,n?.())||{});if(n&&r?.update){var o=!1,s={};da(()=>{var i=n();fa(i),o&&Ul(s,i)&&(s=i,r.update(i))}),o=!0}if(r?.destroy)return()=>r.destroy()})}function ga(t,e,n=e){var r=new WeakSet;Gl(t,"input",async o=>{var s=o?t.defaultValue:t.value;if(s=Nr(t)?Rr(s):s,n(s),sn!==null&&r.add(sn),await ha(),s!==(s=e())){var i=t.selectionStart,a=t.selectionEnd,c=t.value.length;if(t.value=s??"",a!==null){var l=t.value.length;i===a&&a===c&&l>c?(t.selectionStart=l,t.selectionEnd=l):(t.selectionStart=i,t.selectionEnd=Math.min(a,l))}}}),(Ge&&t.defaultValue!==t.value||Mt(e)==null&&t.value)&&(n(Nr(t)?Rr(t.value):t.value),sn!==null&&r.add(sn)),da(()=>{var o=e();if(t===document.activeElement){var s=sn;if(r.has(s))return}Nr(t)&&o===Rr(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function Nr(t){var e=t.type;return e==="number"||e==="range"}function Rr(t){return t===""?null:+t}function vu(t=!1){const e=$l,n=e.l.u;if(!n)return;let r=()=>fa(e.s);if(t){let o=0,s={};const i=Kl(()=>{let a=!1;const c=e.s;for(const l in c)c[l]!==s[l]&&(s[l]=c[l],a=!0);return a&&o++,o});r=()=>m(i)}n.b.length&&pa(()=>{Ms(e,r),Es(n.b)}),Ne(()=>{const o=Mt(()=>n.m.map(Hl));return()=>{for(const s of o)typeof s=="function"&&s()}}),n.a.length&&Ne(()=>{Ms(e,r),Es(n.a)})}function Ms(t,e){if(t.l.s)for(const n of t.l.s)m(n);e()}const bu=()=>{const t=ru;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},Ex={subscribe(t){return bu().page.subscribe(t)}},yu={pingInterval:3e4,pongTimeout:1e4,baseReconnectDelay:1e3,maxReconnectDelay:3e4};class wu{#e=V(!1);get connected(){return m(this.#e)}set connected(e){O(this.#e,e,!0)}#t=V(!1);get receivedData(){return m(this.#t)}set receivedData(e){O(this.#t,e,!0)}ws=null;pingTimer=null;reconnectTimer=null;lastPong=0;reconnectAttempts=0;visibilityHandler=null;config;constructor(e){this.config={...yu,...e}}shouldReconnect(){return!0}onConnected(){}onDisconnected(){}doConnect(){if(this.ws)return;const e=this.getWsUrl();this.ws=new WebSocket(e),this.ws.onopen=()=>{this.connected=!0,this.reconnectAttempts=0,this.lastPong=Date.now(),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.startPingTimer(),this.setupVisibilityHandler(),this.onConnected()},this.ws.onmessage=n=>{if(n.data==="pong"){this.lastPong=Date.now();return}this.receivedData=!0,this.handleMessage(n)},this.ws.onclose=()=>{this.connected=!1,this.ws=null,this.stopPingTimer(),this.onDisconnected(),this.shouldReconnect()&&this.scheduleReconnect()},this.ws.onerror=()=>{this.ws?.close()}}doDisconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.stopPingTimer(),this.removeVisibilityHandler(),this.connected=!1,this.reconnectAttempts=0,this.ws&&(this.ws.onopen=null,this.ws.onclose=null,this.ws.onerror=null,this.ws.onmessage=null,this.ws.readyState!==WebSocket.CLOSED&&this.ws.close(),this.ws=null)}resetReceived(){this.receivedData=!1}send(e){return!this.ws||this.ws.readyState!==WebSocket.OPEN?!1:(this.ws.send(e),!0)}forceReconnect(){this.reconnectAttempts=0,this.ws&&(this.ws.onclose=null,this.ws.close(),this.ws=null),this.stopPingTimer(),this.connected=!1,this.doConnect()}startPingTimer(){this.stopPingTimer(),this.pingTimer=setInterval(()=>{if(this.ws?.readyState===WebSocket.OPEN){if(Date.now()-this.lastPong>this.config.pingInterval+this.config.pongTimeout){this.ws?.close();return}this.ws.send("ping")}},this.config.pingInterval)}stopPingTimer(){this.pingTimer&&(clearInterval(this.pingTimer),this.pingTimer=null)}scheduleReconnect(){if(this.reconnectTimer)return;const e=Math.min(this.config.baseReconnectDelay*Math.pow(2,this.reconnectAttempts)+Math.random()*1e3,this.config.maxReconnectDelay);this.reconnectAttempts++,this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.doConnect()},e)}setupVisibilityHandler(){this.visibilityHandler||(this.visibilityHandler=()=>{document.visibilityState==="visible"&&this.shouldReconnect()&&(!this.ws||this.ws.readyState!==WebSocket.OPEN?this.forceReconnect():this.ws.send("ping"))},document.addEventListener("visibilitychange",this.visibilityHandler))}removeVisibilityHandler(){this.visibilityHandler&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null)}}function Ds(t){return Array.isArray(t)?[...t]:t&&typeof t=="object"?{...t}:t}function Fs(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function Oo(t,e){return{load(){try{const n=localStorage.getItem(t);if(n===null)return Ds(e);const r=JSON.parse(n);return Fs(e)&&Fs(r)?{...e,...r}:r}catch{return Ds(e)}},save(n){try{localStorage.setItem(t,JSON.stringify(n))}catch{}}}}function va(t){const e=Object.values(t).filter(r=>typeof r=="number");return Object.entries(t).filter(([r,o])=>e.indexOf(+r)===-1).map(([r,o])=>o)}function js(t,e="|"){return t.map(n=>wa(n)).join(e)}function Qr(t,e){return typeof e=="bigint"?e.toString():e}function pr(t){return{get value(){{const e=t();return Object.defineProperty(this,"value",{value:e}),e}}}}function _u(t){return t==null}function Po(t){const e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}function ku(t,e){const n=t/e,r=Math.round(n),o=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}function Le(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}function _t(...t){const e={};for(const n of t){const r=Object.getOwnPropertyDescriptors(n);Object.assign(e,r)}return Object.defineProperties({},e)}function xu(t){return JSON.stringify(t)}function Su(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const ba="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function yn(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const Cu=pr(()=>{if(Xe.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function wn(t){if(yn(t)===!1)return!1;const e=t.constructor;if(e===void 0||typeof e!="function")return!0;const n=e.prototype;return!(yn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function ya(t){return wn(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}const Ou=new Set(["string","number","symbol"]);function Jt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function kt(t,e,n){const r=new t._zod.constr(e??t._zod.def);return(!e||n?.parent)&&(r._zod.parent=t),r}function B(t){const e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function wa(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function Pu(t){return Object.keys(t).filter(e=>t[e]._zod.optin!==void 0&&t[e]._zod.optout==="optional")}const Au={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Eu(t,e){const n=t._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=_t(t._zod.def,{get shape(){const i={};for(const a of Reflect.ownKeys(e)){if(!Object.prototype.hasOwnProperty.call(n.shape,a))throw new Error(`Unrecognized key: "${String(a)}"`);e[a]&&Le(i,a,n.shape[a])}return Le(this,"shape",i),i},checks:[]});return kt(t,s)}function zu(t,e){const n=t._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=_t(t._zod.def,{get shape(){const i={...t._zod.def.shape};for(const a of Reflect.ownKeys(e)){if(!Object.prototype.hasOwnProperty.call(n.shape,a))throw new Error(`Unrecognized key: "${String(a)}"`);e[a]&&delete i[a]}return Le(this,"shape",i),i},checks:[]});return kt(t,s)}function Tu(t,e){if(!wn(e))throw new Error("Invalid input to extend: expected a plain object");const n=t._zod.def.checks;if(n&&n.length>0){const s=t._zod.def.shape;for(const i of Reflect.ownKeys(e))if(Object.getOwnPropertyDescriptor(s,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=_t(t._zod.def,{get shape(){const s={...t._zod.def.shape,...e};return Le(this,"shape",s),s}});return kt(t,o)}function Iu(t,e){if(!wn(e))throw new Error("Invalid input to safeExtend: expected a plain object");const n=_t(t._zod.def,{get shape(){const r={...t._zod.def.shape,...e};return Le(this,"shape",r),r}});return kt(t,n)}function Nu(t,e){if(!e?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=_t(t._zod.def,{get shape(){const r={...t._zod.def.shape,...e._zod.def.shape};return Le(this,"shape",r),r},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return kt(t,n)}function Ls(t,e,n,r="partial"){const s=e._zod.def.checks;if(s&&s.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);const a=_t(e._zod.def,{get shape(){const c=e._zod.def.shape,l={...c};if(n)for(const u of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(c,u))throw new Error(`Unrecognized key: "${String(u)}"`);n[u]&&(l[u]=t?new t({type:"optional",innerType:c[u]}):c[u])}else for(const u of Reflect.ownKeys(c))l[u]=t?new t({type:"optional",innerType:c[u]}):c[u];return Le(this,"shape",l),l},checks:[]});return kt(e,a)}function Ru(t,e,n){const r=_t(e._zod.def,{get shape(){const o=e._zod.def.shape,s={...o};if(n)for(const i of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(s,i))throw new Error(`Unrecognized key: "${String(i)}"`);n[i]&&(s[i]=new t({type:"nonoptional",innerType:o[i]}))}else for(const i of Reflect.ownKeys(o))s[i]=new t({type:"nonoptional",innerType:o[i]});return Le(this,"shape",s),s}});return kt(e,r)}function $t(t,e=0){if(t.aborted===!0)return!0;for(let n=e;n<t.issues.length;n++)if(t.issues[n]?.continue!==!0)return!0;return!1}function Mu(t,e=0){if(t.aborted===!0)return!0;for(let n=e;n<t.issues.length;n++)if(t.issues[n]?.continue===!1)return!0;return!1}function _a(t,e){return e.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(t),n})}function ln(t){return typeof t=="string"?t:t?.message}function Zs(t,e,n){var r;for(let o=e;o<t.length;o++)(r=t[o]).schema??(r.schema=n)}function Qt(t,e,n){var r;const o=t.inst?._zod?.traits;o?.has("$ZodType")&&(o.has("$ZodCheck")?(r=t).schema??(r.schema=t.inst):t.schema=t.inst);const s=t.schema!==t.inst?t.schema?._zod.def?.error:void 0,i=t.message?t.message:ln(t.inst?._zod.def?.error?.(t))??ln(s?.(t))??ln(e?.error?.(t))??ln(n.customError?.(t))??ln(n.localeError?.(t))??"Invalid input",{inst:a,schema:c,continue:l,input:u,...h}=t;return h.path??(h.path=[]),h.message=i,e?.reportInput&&(h.input=u),h}const Du=/[\uD800-\uDBFF]/;function Ao(t){const e=t.length;if(!Du.test(t))return e;let n=e;for(let r=0;r<e-1;r++)(t.charCodeAt(r)&64512)===55296&&(t.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function Eo(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Fu(t){const e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";const n=t;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return e}function _n(...t){const[e,n,r]=t;return typeof e=="string"?{message:e,code:"custom",input:n,inst:r}:{...e}}function ju(t,e){for(const n in e){const r=Object.getOwnPropertyDescriptor(e,n);r.get?Object.defineProperty(t,n,{...r,enumerable:!1}):Lu(t,n,r.value)}}function qt(t,e,n,r=!0){return Object.defineProperty(t,e,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function ka(t,e,n){return qt(t,e,n,!1)}function Lu(t,e,n){Object.defineProperty(t,e,{configurable:!0,get(){return this==null?n:qt(this,e,n.bind(this))},set(r){qt(this,e,r)}})}function Zu(t,e){const n=Object.getPrototypeOf(t);return e in n?void 0:n}let Mr,pt=!1;const Vu={configurable:!0,get(){pt=!0}};function de(t,e,n){const r=Object.getPrototypeOf(t._zod);if(e in r&&Mr!==t._zod){Mr=void 0;return}Mr=t._zod,Object.defineProperty(r,e,{configurable:!0,get(){Object.defineProperty(this,e,Vu);const o=pt;pt=!1;try{const s=n(this);return pt?delete this[e]:Object.defineProperty(this,e,{configurable:!0,writable:!0,value:s}),pt=pt||o,s}catch(s){throw delete this[e],pt=pt||o,s}},set(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o})}})}function Bu(t,e,n,r){const o=Zu(t,e);o&&Object.defineProperty(o,e,{configurable:!0,get(){const s={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,e,s),s.value=n(this),Object.defineProperty(this,e,s),s.value},set(s){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:r,value:s})}})}const Wu="~constantCatch";function Uu(t){const e=()=>t;return e[Wu]=!0,e}var Vs;const Dr={value:void 0,enumerable:!1};let Bs="captureStackTrace"in Error?Error:null;function Gu(t){const e=Bs;if(e){const n=e.stackTraceLimit;if(typeof n=="number"){try{e.stackTraceLimit=0}catch{return Bs=null,new t}try{return new t}finally{e.stackTraceLimit=n}}}return new t}function x(t,e,n,r){const o={};function s(d){this.def=d,this.constr=h,this.traits=new Set}s.prototype=o;const i=n,a=i&&new WeakSet;function c(d,f){if(!d._zod){Dr.value=new s(f);try{Object.defineProperty(d,"_zod",Dr)}finally{Dr.value=void 0}}if(d._zod.traits.has(t))return;if(d._zod.traits.add(t),e(d,f),a){const g=Object.getPrototypeOf(d),y=d._zod.constr.prototype;let k=g;for(;k&&k!==y;)k=Object.getPrototypeOf(k);const S=k??g;a.has(S)||(a.add(S),ju(S,i))}const p=h.prototype;for(const g in p)Object.prototype.hasOwnProperty.call(p,g)&&(g in d||(d[g]=p[g].bind(d)))}const l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:t});function h(d){const f=r?.Parent?Gu(u):this;c(f,d);const p=f._zod.deferred;if(p){for(const y of p)y();f._zod.deferred=void 0}const g=globalThis.__zod_globalConfig?.postProcessor;return g&&g(f),f}return Object.defineProperty(h,"init",{value:c}),Object.defineProperty(h,Symbol.hasInstance,{value:d=>r?.Parent&&d instanceof r.Parent?!0:d?._zod?.traits?.has(t)}),Object.defineProperty(h,"name",{value:t}),h}class Ht extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class xa extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(Vs=globalThis).__zod_globalConfig??(Vs.__zod_globalConfig={});const Xe=globalThis.__zod_globalConfig;function xt(t){return t&&Object.assign(Xe,t),Xe}function $u(){const t=this._zod;return t.message??(t.message=JSON.stringify(t.def,Qr,2)),t.message}function Hu(t){this._zod.message=t}const Ku={get:$u,set:Hu,enumerable:!0,configurable:!0},Fr={value:void 0,enumerable:!1},jr={value:void 0,enumerable:!1},Ws=new WeakSet([Object.prototype,Error.prototype]),Sa=(t,e)=>{t.name="$ZodError",Fr.value=t._zod,Object.defineProperty(t,"_zod",Fr),jr.value=e,Object.defineProperty(t,"issues",jr),Fr.value=void 0,jr.value=void 0,Object.defineProperty(t,"message",Ku);const n=Object.getPrototypeOf(t);Ws.has(n)||(Ws.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){const r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},Ca=x("$ZodError",Sa),Oa=x("$ZodError",Sa,void 0,{Parent:Error});function Ju(t,e,n){return Object.prototype.hasOwnProperty.call(t,e)||(e==="__proto__"?Object.defineProperty(t,e,{value:n(),writable:!0,enumerable:!0,configurable:!0}):t[e]=n()),t[e]}function qu(t,e=n=>n.message){const n={},r=[];for(const o of t.issues)o.path.length>0?Ju(n,o.path[0],()=>[]).push(e(o)):r.push(e(o));return{formErrors:r,fieldErrors:n}}function Yu(t,e=n=>n.message){const n={_errors:[]},r=(o,s=[])=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>r({issues:a},[...s,...i.path]));else if(i.code==="invalid_key")r({issues:i.issues},[...s,...i.path]);else if(i.code==="invalid_element")r({issues:i.issues},[...s,...i.path]);else{const a=[...s,...i.path];if(a.length===0)n._errors.push(e(i));else{let c=n,l=0;for(;l<a.length;){const u=a[l],h=l===a.length-1;if(u==="_errors"){h&&c._errors.push(e(i)),l++;continue}Object.prototype.hasOwnProperty.call(c,u)||Object.defineProperty(c,u,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const d=c[u];h&&d._errors.push(e(i)),c=d,l++}}}};return r(t),n}function mr(t,e){return{callee:e?.callee??t,Err:e?.Err}}const zo=t=>{const e=(n,r,o,s)=>{const i=o?{...o,async:!1}:{async:!1},a=n._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new Ht;if(a.issues.length){const c=new(s?.Err??t)(a.issues.map(l=>Qt(l,i,xt())));throw ba(c,s?.callee??e),c}return a.value};return e},To=t=>{const e=async(n,r,o,s)=>{const i=o?{...o,async:!0}:{async:!0};let a=n._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const c=new(s?.Err??t)(a.issues.map(l=>Qt(l,i,xt())));throw ba(c,s?.callee??e),c}return a.value};return e},gr=t=>(e,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=e._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Ht;return s.issues.length?{success:!1,error:new(t??Ca)(s.issues.map(i=>Qt(i,o,xt())))}:{success:!0,data:s.value}},Xu=gr(Oa),vr=t=>async(e,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let s=e._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new t(s.issues.map(i=>Qt(i,o,xt())))}:{success:!0,data:s.value}},Qu=vr(Oa),ed=t=>{const e=zo(t),n=(r,o,s,i)=>{const a=s?{...s,direction:"backward"}:{direction:"backward"};return e(r,o,a,mr(n,i))};return n},td=t=>{const e=zo(t),n=(r,o,s,i)=>e(r,o,s,mr(n,i));return n},nd=t=>{const e=To(t),n=async(r,o,s,i)=>{const a=s?{...s,direction:"backward"}:{direction:"backward"};return await e(r,o,a,mr(n,i))};return n},rd=t=>{const e=To(t),n=async(r,o,s,i)=>await e(r,o,s,mr(n,i));return n},od=t=>(e,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return gr(t)(e,n,o)},sd=t=>(e,n,r)=>gr(t)(e,n,r),id=t=>async(e,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return vr(t)(e,n,o)},ad=t=>async(e,n,r)=>vr(t)(e,n,r),cd=/^[cC][0-9a-z]{6,}$/,ld=/^[0-9a-z]+$/,ud=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,dd=/^[0-9a-vA-V]{20}$/,fd=/^[A-Za-z0-9]{27}$/,hd=/^[a-zA-Z0-9_-]{21}$/;function pd(t){return new RegExp(`^[a-zA-Z0-9_-]{${t}}$`)}const md=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,gd=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Us=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,vd=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,bd="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function yd(){return new RegExp(bd,"u")}const wd=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,_d=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,kd=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,xd=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Sd=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Pa=/^[A-Za-z0-9_-]*$/,Cd=/^https?$/,Od=/^\+[1-9]\d{6,14}$/,Aa="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function Pd(t){return new RegExp(`^${t}$`)}const Ad=Pd(Aa);function eo(t){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:t.seconds?`${e}:[0-5]\\d(?:\\.\\d+)?`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ed(t){return new RegExp(`^${eo(t)}$`)}function zd(t){const e=["Z"];t.offset&&e.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${eo({precision:t.precision,seconds:!0})}(?:${e.join("|")})`,r=t.local?`${n}|${eo({precision:t.precision})}`:n;return new RegExp(`^${Aa}T(?:${r})$`)}const Td=t=>{const e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},Id=/^-?\d+$/,Nd=/^-?\d+(?:\.\d+)?$/,Rd=/^(?:true|false)$/i,Md=/^[^A-Z]*$/,Dd=/^[^a-z]*$/,Ze=x("$ZodCheck",(t,e)=>{var n;t._zod??(t._zod={}),t._zod.def=e,(n=t._zod).onattach??(n.onattach=[])}),Io=t=>{const e=t.value;return!_u(e)&&e.length!==void 0},Hn={number:"number",bigint:"bigint",object:"date"},Ea=x("$ZodCheckLessThan",(t,e)=>{Ze.init(t,e);const n=Hn[typeof e.value];t._zod.onattach.push(r=>{const o=r._zod.bag,s=(e.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<s&&(e.inclusive?o.maximum=e.value:o.exclusiveMaximum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value<=e.value:r.value<e.value)||r.issues.push({origin:Hn[typeof r.value]??n,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),za=x("$ZodCheckGreaterThan",(t,e)=>{Ze.init(t,e);const n=Hn[typeof e.value];t._zod.onattach.push(r=>{const o=r._zod.bag,s=(e.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>s&&(e.inclusive?o.minimum=e.value:o.exclusiveMinimum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value>=e.value:r.value>e.value)||r.issues.push({origin:Hn[typeof r.value]??n,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Fd=x("$ZodCheckMultipleOf",(t,e)=>{Ze.init(t,e),t._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=e.value)}),t._zod.check=n=>{if(typeof n.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?e.value!==BigInt(0)&&n.value%e.value===BigInt(0):ku(n.value,e.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:e.value,input:n.value,inst:t,continue:!e.abort})}}),jd=x("$ZodCheckNumberFormat",(t,e)=>{Ze.init(t,e),e.format=e.format||"float64";const n=e.format?.includes("int"),r=n?"int":"number",[o,s]=Au[e.format];t._zod.onattach.push(i=>{const a=i._zod.bag;a.format=e.format,a.minimum=o,a.maximum=s,n&&(a.pattern=Id)}),t._zod.check=i=>{const a=i.value;if(n){if(!Number.isInteger(a)){i.issues.push({expected:r,format:e.format,code:"invalid_type",continue:!1,input:a,inst:t});return}if(!Number.isSafeInteger(a)){a>0?i.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,inclusive:!0,continue:!e.abort}):i.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,inclusive:!0,continue:!e.abort});return}}a<o&&i.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:t,continue:!e.abort}),a>s&&i.issues.push({origin:"number",input:a,code:"too_big",maximum:s,inclusive:!0,inst:t,continue:!e.abort})}}),Ld=x("$ZodCheckMaxLength",(t,e)=>{var n;Ze.init(t,e),(n=t._zod.def).when??(n.when=Io),t._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<o&&(r._zod.bag.maximum=e.maximum)}),t._zod.check=r=>{const o=r.value,s=o.length;if((typeof o=="string"&&s>e.maximum?Ao(o):s)<=e.maximum)return;const a=Eo(o);r.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:o,inst:t,continue:!e.abort})}}),Zd=x("$ZodCheckMinLength",(t,e)=>{var n;Ze.init(t,e),(n=t._zod.def).when??(n.when=Io),t._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>o&&(r._zod.bag.minimum=e.minimum)}),t._zod.check=r=>{const o=r.value,s=o.length;if((typeof o=="string"&&s>=e.minimum&&s<e.minimum*2?Ao(o):s)>=e.minimum)return;const a=Eo(o);r.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:o,inst:t,continue:!e.abort})}}),Vd=x("$ZodCheckLengthEquals",(t,e)=>{var n;Ze.init(t,e),(n=t._zod.def).when??(n.when=Io),t._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=e.length,o.maximum=e.length,o.length=e.length}),t._zod.check=r=>{const o=r.value,s=o.length,i=typeof o=="string"&&s>=e.length&&s<=e.length*2?Ao(o):s;if(i===e.length)return;const a=Eo(o),c=i>e.length;r.issues.push({origin:a,...c?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:r.value,inst:t,continue:!e.abort})}}),br=x("$ZodCheckStringFormat",(t,e)=>{var n,r;Ze.init(t,e),t._zod.onattach.push(o=>{const s=o._zod.bag;s.format=e.format,e.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(e.pattern))}),e.pattern?(n=t._zod).check??(n.check=o=>{e.pattern.lastIndex=0,!e.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:e.format,input:o.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(r=t._zod).check??(r.check=()=>{})}),Bd=x("$ZodCheckRegex",(t,e)=>{br.init(t,e),t._zod.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),Wd=x("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=Md),br.init(t,e)}),Ud=x("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=Dd),br.init(t,e)}),Gd=x("$ZodCheckIncludes",(t,e)=>{Ze.init(t,e);const n=Jt(e.includes),r=new RegExp(typeof e.position=="number"?`^.{${e.position},}${n}`:n);e.pattern=r,t._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),t._zod.check=o=>{o.value.includes(e.includes,e.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:o.value,inst:t,continue:!e.abort})}}),$d=x("$ZodCheckStartsWith",(t,e)=>{Ze.init(t,e);const n=new RegExp(`^${Jt(e.prefix)}.*`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),t._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:t,continue:!e.abort})}}),Hd=x("$ZodCheckEndsWith",(t,e)=>{Ze.init(t,e);const n=new RegExp(`.*${Jt(e.suffix)}$`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),t._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:t,continue:!e.abort})}}),Kd=x("$ZodCheckOverwrite",(t,e)=>{Ze.init(t,e),t._zod.check=n=>{n.value=e.tx(n.value)}});class Jd{constructor(e=[],n={}){this.content=[],this.indent=0,this.args=e,this.closed=n}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const r=e.split(`
|
|
2
2
|
`).filter(i=>i),o=Math.min(...r.map(i=>i.length-i.trimStart().length)),s=r.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(const i of s)this.content.push(i)}compile(){const e=Function,n=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
|
|
3
3
|
${n.join(`
|
|
4
4
|
`)}
|
|
@@ -54,4 +54,4 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
54
54
|
`)}function Fo(t={}){return Ag(t).replace(`
|
|
55
55
|
`," ")}const Eg=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],zg=new Set(Eg);function Tg(t){return zg.has(t)}function ye(...t){const e={...t[0]};for(let n=1;n<t.length;n++){const r=t[n];if(r){for(const o of Object.keys(r)){const s=e[o],i=r[o],a=typeof s=="function",c=typeof i=="function";if(a&&Tg(o)){const l=s,u=i;e[o]=cc(l,u)}else if(a&&c)e[o]=bn(s,i);else if(o==="class"){const l=ao(s),u=ao(i);l&&u?e[o]=Bn(s,i):l?e[o]=Bn(s):u&&(e[o]=Bn(i))}else if(o==="style"){const l=typeof s=="object",u=typeof i=="object",h=typeof s=="string",d=typeof i=="string";if(l&&u)e[o]={...s,...i};else if(l&&d){const f=mn(i);e[o]={...s,...f}}else if(h&&u){const f=mn(s);e[o]={...f,...i}}else if(h&&d){const f=mn(s),p=mn(i);e[o]={...f,...p}}else l?e[o]=s:u?e[o]=i:h?e[o]=s:d&&(e[o]=i)}else e[o]=i!==void 0?i:s}for(const o of Object.getOwnPropertySymbols(r)){const s=e[o],i=r[o];e[o]=i!==void 0?i:s}}}return typeof e.style=="object"&&(e.style=Fo(e.style).replaceAll(`
|
|
56
56
|
`," ")),e.hidden===!1&&(e.hidden=void 0,delete e.hidden),e.disabled===!1&&(e.disabled=void 0,delete e.disabled),e}const uc={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};Fo(uc);const dc=typeof window<"u"?window:void 0;function Ig(t){let e=t.activeElement;for(;e?.shadowRoot;){const n=e.shadowRoot.activeElement;if(n===e)break;e=n}return e}class Ng extends Map{#e=new Map;#t=V(0);#n=V(0);#r=zs||-1;constructor(e){if(super(),e){for(var[n,r]of e)super.set(n,r);this.#n.v=super.size}}#o(e){return zs===this.#r?V(e):Jl(e)}has(e){var n=this.#e,r=n.get(e);if(r===void 0)if(super.has(e))r=this.#o(0),n.set(e,r);else return m(this.#t),!1;return m(r),!0}forEach(e,n){this.#s(),super.forEach(e,n)}get(e){var n=this.#e,r=n.get(e);if(r===void 0)if(super.has(e))r=this.#o(0),n.set(e,r);else{m(this.#t);return}return m(r),super.get(e)}getOrInsert(e,n){return super.has(e)||this.set(e,n),this.get(e)}getOrInsertComputed(e,n){return super.has(e)||this.set(e,n(e)),this.get(e)}set(e,n){var r=this.#e,o=r.get(e),s=super.get(e),i=super.set(e,n),a=this.#t;if(o===void 0)o=this.#o(0),r.set(e,o),O(this.#n,super.size),cn(a);else if(s!==n){cn(o);var c=a.reactions===null?null:new Set(a.reactions),l=c===null||!o.reactions?.every(u=>c.has(u));l&&cn(a)}return i}delete(e){var n=this.#e,r=n.get(e),o=super.delete(e);return r!==void 0&&(n.delete(e),O(r,-1)),o&&(O(this.#n,super.size),cn(this.#t)),o}clear(){if(super.size!==0){super.clear();var e=this.#e;O(this.#n,0);for(var n of e.values())O(n,-1);cn(this.#t),e.clear()}}#s(){m(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var n of super.keys())if(!e.has(n)){var r=this.#o(0);e.set(n,r)}}for([,r]of this.#e)m(r)}keys(){return m(this.#t),super.keys()}values(){return this.#s(),super.values()}entries(){return this.#s(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return m(this.#n),super.size}}class Rg{#e;#t;constructor(e={}){const{window:n=dc,document:r=n?.document}=e;n!==void 0&&(this.#e=r,this.#t=ma(o=>{const s=Te(n,"focusin",o),i=Te(n,"focusout",o);return()=>{s(),i()}}))}get current(){return this.#t?.(),this.#e?Ig(this.#e):null}}new Rg;function Mg(t){return typeof t=="function"}class St{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return ql(this.#t)}get(){const e=Ts(this.#t);if(e===void 0)throw new Error(`Context "${this.#e}" not found`);return e}getOr(e){const n=Ts(this.#t);return n===void 0?e:n}set(e){return Yl(this.#t,e)}}function Dg(t,e){switch(t){case"post":Ne(e);break;case"pre":pa(e);break}}function fc(t,e,n,r={}){const{lazy:o=!1}=r;let s=!o,i=Array.isArray(t)?[]:void 0;Dg(e,()=>{const a=Array.isArray(t)?t.map(l=>l()):t();if(!s){s=!0,i=a;return}const c=Mt(()=>n(a,i));return i=a,c})}function Ae(t,e,n){fc(t,"post",e,n)}function Fg(t,e,n){fc(t,"pre",e,n)}Ae.pre=Fg;function Ci(t){return Mg(t)?t():t}class jg{#e={width:0,height:0};#t=!1;#n;#r;#o;#s=z(()=>(m(this.#i)?.(),this.getSize().width));#a=z(()=>(m(this.#i)?.(),this.getSize().height));#i=z(()=>{const e=Ci(this.#r);if(e)return ma(n=>{if(!this.#o)return;const r=new this.#o.ResizeObserver(o=>{this.#t=!0;for(const s of o){const i=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(i)?i:[i];this.#e.width=a.reduce((c,l)=>Math.max(c,l.inlineSize),0),this.#e.height=a.reduce((c,l)=>Math.max(c,l.blockSize),0)}n()});return r.observe(e),()=>{this.#t=!1,r.disconnect()}})});constructor(e,n={box:"border-box"}){this.#o=n.window??dc,this.#n=n,this.#r=e,this.#e={width:0,height:0}}calculateSize(){const e=Ci(this.#r);if(!e||!this.#o)return;const n=e.offsetWidth,r=e.offsetHeight;if(this.#n.box==="border-box")return{width:n,height:r};const o=this.#o.getComputedStyle(e),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),c=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),l=n-s-a,u=r-i-c;return{width:l,height:u}}getSize(){return this.#t?this.#e:this.calculateSize()??this.#e}get current(){return m(this.#i)?.(),this.getSize()}get width(){return m(this.#s)}get height(){return m(this.#a)}}function Vt(t){Ne(()=>()=>{t()})}function hc(t,e){return setTimeout(e,t)}function jo(t){ha().then(t)}const Lg=1,Zg=9,Vg=11;function co(t){return Sn(t)&&t.nodeType===Lg&&typeof t.nodeName=="string"}function pc(t){return Sn(t)&&t.nodeType===Zg}function Bg(t){return Sn(t)&&t.constructor?.name==="VisualViewport"}function Wg(t){return Sn(t)&&t.nodeType!==void 0}function mc(t){return Wg(t)&&t.nodeType===Vg&&"host"in t}function Ug(t,e){if(!t||!e||!co(t)||!co(e))return!1;const n=e.getRootNode?.();if(t===e||t.contains(e))return!0;if(n&&mc(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function gc(t){return pc(t)?t:Bg(t)?t.document:t?.ownerDocument??document}function vc(t){return mc(t)?vc(t.host):pc(t)?t.defaultView??window:co(t)?t.ownerDocument?.defaultView??window:window}function Gg(t){let e=t.activeElement;for(;e?.shadowRoot;){const n=e.shadowRoot.activeElement;if(n===e)break;e=n}return e}class Lo{element;#e=z(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return m(this.#e)}set root(e){O(this.#e,e)}constructor(e){typeof e=="function"?this.element=T(e):this.element=e}getDocument=()=>gc(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Gg(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,n)=>this.getWindow().setTimeout(e,n);clearTimeout=e=>this.getWindow().clearTimeout(e)}function Ve(t,e){return{[hu()]:n=>ac(t)?(t.current=n,Mt(()=>e?.(n)),()=>{"isConnected"in n&&n.isConnected||(t.current=null,e?.(null))}):(t(n),Mt(()=>e?.(n)),()=>{"isConnected"in n&&n.isConnected||(t(null),e?.(null))})}}function lo(t){return t?"true":"false"}function Yt(t){return t?"":void 0}function Zo(t){return t?"open":"closed"}function Vo(t){return t==="starting"?{"data-starting-style":""}:t==="ending"?{"data-ending-style":""}:{}}function $g(t,e){return e?"mixed":t?"true":"false"}class Hg{#e;#t;attrs;constructor(e){this.#e=e.getVariant?e.getVariant():null,this.#t=this.#e?`data-${this.#e}-`:`data-${e.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(n=>[n,this.getAttr(n)]))}getAttr(e,n){return n?`data-${n}-${e}`:`${this.#t}${e}`}selector(e,n){return`[${this.getAttr(e,n)}]`}}function yr(t){const e=new Hg(t);return{...e.attrs,selector:e.selector,getAttr:e.getAttr}}const wr="Enter",Kg="Escape",_r=" ",bc=typeof document<"u",Oi=Jg();function Jg(){return bc&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function uo(t){return t instanceof HTMLElement}function Rt(t){return t instanceof Element}function qg(t){return t instanceof Element||t instanceof SVGElement}function Xn(t){return t.pointerType==="touch"}function Lx(t){return t.matches(":focus-visible")}function Yg(t){return t!==null}class Xg{#e;#t=null;#n=null;#r=0;constructor(e){this.#e=e,Vt(()=>this.#o())}#o(){this.#t!==null&&(window.cancelAnimationFrame(this.#t),this.#t=null),this.#n?.disconnect(),this.#n=null,this.#r++}run(e){this.#o();const n=this.#e.ref.current;if(!n)return;if(typeof n.getAnimations!="function"){this.#s(e);return}const r=this.#r,o=()=>{r===this.#r&&this.#s(e)},s=()=>{if(r!==this.#r)return;const a=n.getAnimations();if(a.length===0){o();return}Promise.all(a.map(c=>c.finished)).then(()=>{o()}).catch(()=>{if(r!==this.#r)return;if(n.getAnimations().some(u=>u.pending||u.playState!=="finished")){s();return}o()})},i=()=>{this.#t=window.requestAnimationFrame(()=>{this.#t=null,s()})};if(!this.#e.afterTick.current){i();return}this.#t=window.requestAnimationFrame(()=>{this.#t=null;const a="data-starting-style";if(!n.hasAttribute(a)){i();return}this.#n=new MutationObserver(()=>{r===this.#r&&(n.hasAttribute(a)||(this.#n?.disconnect(),this.#n=null,i()))}),this.#n.observe(n,{attributes:!0,attributeFilter:[a]})})}#s(e){const n=()=>{e()};this.#e.afterTick?jo(n):n()}}class Qn{#e;#t;#n;#r=V(!1);#o=V(void 0);#s=!1;#a=null;constructor(e){this.#e=e,O(this.#r,e.open.current,!0),this.#t=e.enabled??!0,this.#n=new Xg({ref:this.#e.ref,afterTick:this.#e.open}),Vt(()=>this.#i()),Ae(()=>this.#e.open.current,n=>{if(!this.#s){this.#s=!0;return}if(this.#i(),!n&&this.#e.shouldSkipExitAnimation?.()){O(this.#r,!1),O(this.#o,void 0),this.#e.onComplete?.();return}if(n&&O(this.#r,!0),O(this.#o,n?"starting":"ending",!0),n&&(this.#a=window.requestAnimationFrame(()=>{this.#a=null,this.#e.open.current&&O(this.#o,void 0)})),!this.#t){n||O(this.#r,!1),O(this.#o,void 0),this.#e.onComplete?.();return}this.#n.run(()=>{n===this.#e.open.current&&(this.#e.open.current||O(this.#r,!1),O(this.#o,void 0),this.#e.onComplete?.())})})}get shouldRender(){return m(this.#r)}get transitionStatus(){return m(this.#o)}#i(){this.#a!==null&&(window.cancelAnimationFrame(this.#a),this.#a=null)}}function ue(){}function He(t,e){return`bits-${t}`}const Qg=yr({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),lt=new St("Dialog.Root | AlertDialog.Root");class kr{static create(e){const n=lt.getOr(null);return lt.set(new kr(e,n))}opts;#e=V(null);get triggerNode(){return m(this.#e)}set triggerNode(e){O(this.#e,e,!0)}#t=V(null);get contentNode(){return m(this.#t)}set contentNode(e){O(this.#t,e,!0)}#n=V(null);get overlayNode(){return m(this.#n)}set overlayNode(e){O(this.#n,e,!0)}#r=V(null);get descriptionNode(){return m(this.#r)}set descriptionNode(e){O(this.#r,e,!0)}#o=V(void 0);get contentId(){return m(this.#o)}set contentId(e){O(this.#o,e,!0)}#s=V(void 0);get titleId(){return m(this.#s)}set titleId(e){O(this.#s,e,!0)}#a=V(void 0);get triggerId(){return m(this.#a)}set triggerId(e){O(this.#a,e,!0)}#i=V(void 0);get descriptionId(){return m(this.#i)}set descriptionId(e){O(this.#i,e,!0)}#l=V(null);get cancelNode(){return m(this.#l)}set cancelNode(e){O(this.#l,e,!0)}#c=V(0);get nestedOpenCount(){return m(this.#c)}set nestedOpenCount(e){O(this.#c,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,n){this.opts=e,this.parent=n,this.depth=n?n.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qn({ref:T(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qn({ref:T(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Ae(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Vt(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>Qg.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=z(()=>({"data-state":Zo(this.opts.open.current)}));get sharedProps(){return m(this.#u)}set sharedProps(e){O(this.#u,e)}}class Bo{static create(e){return new Bo(e,lt.get())}opts;root;attachment;constructor(e,n){this.opts=e,this.root=n,this.attachment=Ve(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===_r||e.key===wr)&&(e.preventDefault(),this.root.handleClose())}#e=z(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){O(this.#e,e)}}class Wo{static create(e){return new Wo(e,lt.get())}opts;root;attachment;constructor(e,n){this.opts=e,this.root=n,this.attachment=Ve(this.opts.ref)}#e=z(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){O(this.#e,e)}}class Uo{static create(e){return new Uo(e,lt.get())}opts;root;attachment;constructor(e,n){this.opts=e,this.root=n,this.root.titleId=this.opts.id.current,this.attachment=Ve(this.opts.ref),Ae.pre(()=>this.opts.id.current,r=>{this.root.titleId=r})}#e=z(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){O(this.#e,e)}}class Go{static create(e){return new Go(e,lt.get())}opts;root;attachment;constructor(e,n){this.opts=e,this.root=n,this.root.descriptionId=this.opts.id.current,this.attachment=Ve(this.opts.ref,r=>{this.root.descriptionNode=r}),Ae.pre(()=>this.opts.id.current,r=>{this.root.descriptionId=r})}#e=z(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){O(this.#e,e)}}class xr{static create(e){return new xr(e,lt.get())}opts;root;attachment;constructor(e,n){this.opts=e,this.root=n,this.attachment=Ve(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r?.id})}#e=z(()=>({open:this.root.opts.open.current}));get snippetProps(){return m(this.#e)}set snippetProps(e){O(this.#e,e)}#t=z(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Yt(this.root.nestedOpenCount>0),"data-nested":Yt(this.root.parent!==null),...Vo(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return m(this.#t)}set props(e){O(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}}class $o{static create(e){return new $o(e,lt.get())}opts;root;attachment;constructor(e,n){this.opts=e,this.root=n,this.attachment=Ve(this.opts.ref,r=>this.root.overlayNode=r)}#e=z(()=>({open:this.root.opts.open.current}));get snippetProps(){return m(this.#e)}set snippetProps(e){O(this.#e,e)}#t=z(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Yt(this.root.nestedOpenCount>0),"data-nested":Yt(this.root.parent!==null),...Vo(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return m(this.#t)}set props(e){O(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class Ho{static create(e){return new Ho(e,lt.get())}opts;root;attachment;constructor(e,n){this.opts=e,this.root=n,this.attachment=Ve(this.opts.ref,r=>this.root.cancelNode=r),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===_r||e.key===wr)&&(e.preventDefault(),this.root.handleClose())}#e=z(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,disabled:this.opts.disabled.current,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){O(this.#e,e)}}function ev(t,e){U(e,!0);let n=v(e,"open",15,!1),r=v(e,"onOpenChange",3,ue),o=v(e,"onOpenChangeComplete",3,ue);kr.create({variant:T(()=>"alert-dialog"),open:T(()=>n(),a=>{n(a),r()(a)}),onOpenChangeComplete:T(()=>o())});var s=D(),i=R(s);q(i,()=>e.children??ie),P(t,s),G()}var tv=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),nv=ae("<div><!></div>");function yc(t,e){const n=$e();U(e,!0);let r=v(e,"id",19,()=>He(n)),o=v(e,"ref",15,null),s=v(e,"level",3,2),i=Q(e,tv);const a=Uo.create({id:T(()=>r()),level:T(()=>s()),ref:T(()=>o(),f=>o(f))}),c=z(()=>ye(i,a.props));var l=D(),u=R(l);{var h=f=>{var p=D(),g=R(p);q(g,()=>e.child,()=>({props:m(c)})),P(f,p)},d=f=>{var p=nv();pe(p,()=>({...m(c)}));var g=ve(p);q(g,()=>e.children??ie),be(p),P(f,p)};fe(u,f=>{e.child?f(h):f(d,-1)})}P(t,l),G()}var rv=new Set(["$$slots","$$events","$$legacy","children","child","id","ref"]),ov=ae("<button><!></button>");function sv(t,e){const n=$e();U(e,!0);let r=v(e,"id",19,()=>He(n)),o=v(e,"ref",15,null),s=Q(e,rv);const i=Wo.create({id:T(()=>r()),ref:T(()=>o(),d=>o(d))}),a=z(()=>ye(s,i.props));var c=D(),l=R(c);{var u=d=>{var f=D(),p=R(f);q(p,()=>e.child,()=>({props:m(a)})),P(d,f)},h=d=>{var f=ov();pe(f,()=>({...m(a)}));var p=ve(f);q(p,()=>e.children??ie),be(f),P(d,f)};fe(l,d=>{e.child?d(u):d(h,-1)})}P(t,c),G()}var iv=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),av=ae("<button><!></button>");function cv(t,e){const n=$e();U(e,!0);let r=v(e,"id",19,()=>He(n)),o=v(e,"ref",15,null),s=v(e,"disabled",3,!1),i=Q(e,iv);const a=Ho.create({id:T(()=>r()),ref:T(()=>o(),f=>o(f)),disabled:T(()=>!!s())}),c=z(()=>ye(i,a.props));var l=D(),u=R(l);{var h=f=>{var p=D(),g=R(p);q(g,()=>e.child,()=>({props:m(c)})),P(f,p)},d=f=>{var p=av();pe(p,()=>({...m(c)}));var g=ve(p);q(g,()=>e.children??ie),be(p),P(f,p)};fe(u,f=>{e.child?f(h):f(d,-1)})}P(t,l),G()}function lv(t,e){var n=D(),r=R(n);mu(r,()=>e.children,o=>{var s=D(),i=R(s);q(i,()=>e.children??ie),P(o,s)}),P(t,n)}const uv=new St("BitsConfig");function dv(){const t=new fv(null,{});return uv.getOr(t).opts}class fv{opts;constructor(e,n){const r=hv(e,n);this.opts={defaultPortalTo:r(o=>o.defaultPortalTo),defaultLocale:r(o=>o.defaultLocale)}}}function hv(t,e){return n=>T(()=>{const o=n(e)?.current;if(o!==void 0)return o;if(t!==null)return n(t.opts)?.current})}function pv(t,e){return n=>{const r=dv();return T(()=>{const o=n();if(o!==void 0)return o;const s=t(r).current;return s!==void 0?s:e})}}const mv=pv(t=>t.defaultPortalTo,"body");function Ko(t,e){U(e,!0);const n=mv(()=>e.to),r=Xl();let o=z(s);function s(){if(!bc||e.disabled)return null;let h=null;return typeof n.current=="string"?h=document.querySelector(n.current):h=n.current,h}let i;function a(){i&&(au(i),i=null)}Ae([()=>m(o),()=>e.disabled],([h,d])=>{if(!h||d){a();return}return i=iu(lv,{target:h,props:{children:e.children},context:r}),()=>{a()}});var c=D(),l=R(c);{var u=h=>{var d=D(),f=R(d);q(f,()=>e.children??ie),P(h,d)};fe(l,h=>{e.disabled&&h(u)})}P(t,c),G()}function Pi(t,e=500){let n=null;const r=(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...o)},e)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function wc(t,e){return t===e||t.contains(e)}function _c(t){return t?.ownerDocument??document}function gv(t,e){const{clientX:n,clientY:r}=t,o=e.getBoundingClientRect();return n<o.left||n>o.right||r<o.top||r>o.bottom}var kc=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],er=kc.join(","),xc=typeof Element>"u",Ft=xc?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,tr=!xc&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},nr=function(e,n){var r;n===void 0&&(n=!0);var o=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),s=o===""||o==="true",i=s||n&&e&&(typeof e.closest=="function"?e.closest("[inert]"):nr(e.parentNode));return i},vv=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},Sc=function(e,n,r){if(nr(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(er));return n&&Ft.call(e,er)&&o.unshift(e),o=o.filter(r),o},rr=function(e,n,r){for(var o=[],s=Array.from(e);s.length;){var i=s.shift();if(!nr(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,l=rr(c,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{var u=Ft.call(i,er);u&&r.filter(i)&&(n||!e.includes(i))&&o.push(i);var h=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),d=!nr(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(h&&d){var f=rr(h===!0?i.children:h.children,!0,r);r.flatten?o.push.apply(o,f):o.push({scopeParent:i,candidates:f})}else s.unshift.apply(s,i.children)}}return o},Cc=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Oc=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||vv(e))&&!Cc(e)?0:e.tabIndex},bv=function(e,n){var r=Oc(e);return r<0&&n&&!Cc(e)?0:r},yv=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},Pc=function(e){return e.tagName==="INPUT"},wv=function(e){return Pc(e)&&e.type==="hidden"},_v=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},kv=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},xv=function(e){if(!e.name)return!0;var n=e.form||tr(e),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(e.name));else try{o=r(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var s=kv(o,e.form);return!s||s===e},Sv=function(e){return Pc(e)&&e.type==="radio"},Cv=function(e){return Sv(e)&&!xv(e)},Ov=function(e){var n,r=e&&tr(e),o=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==e){var i,a,c;for(s=!!((i=o)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(o)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!s&&o;){var l,u,h;r=tr(o),o=(l=r)===null||l===void 0?void 0:l.host,s=!!((u=o)!==null&&u!==void 0&&(h=u.ownerDocument)!==null&&h!==void 0&&h.contains(o))}}return s},Ai=function(e){var n=e.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},Pv=function(e,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in e){var s=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}var i=getComputedStyle(e),a=i.visibility;if(a==="hidden"||a==="collapse")return!0;var c=Ft.call(e,"details>summary:first-of-type"),l=c?e.parentElement:e;if(Ft.call(l,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var u=e;e;){var h=e.parentElement,d=tr(e);if(h&&!h.shadowRoot&&o(h)===!0)return Ai(e);e.assignedSlot?e=e.assignedSlot:!h&&d!==e.ownerDocument?e=d.host:e=h}e=u}if(Ov(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Ai(e);return!1},Av=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Ft.call(n,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}n=n.parentElement}return!1},or=function(e,n){return!(n.disabled||wv(n)||Pv(n,e)||_v(n)||Av(n))},fo=function(e,n){return!(Cv(n)||Oc(n)<0||!or(e,n))},Ev=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Ac=function(e){var n=[],r=[];return e.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,c=bv(a,i),l=i?Ac(o.candidates):a;c===0?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:s,tabIndex:c,item:o,isScope:i,content:l})}),r.sort(yv).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(n)},zv=function(e,n){n=n||{};var r;return n.getShadowRoot?r=rr([e],n.includeContainer,{filter:fo.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Ev}):r=Sc(e,n.includeContainer,fo.bind(null,n)),Ac(r)},Tv=function(e,n){n=n||{};var r;return n.getShadowRoot?r=rr([e],n.includeContainer,{filter:or.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Sc(e,n.includeContainer,or.bind(null,n)),r},Iv=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return Ft.call(e,er)===!1?!1:fo(n,e)},Nv=kc.concat("iframe:not([inert]):not([inert] *)").join(","),Rv=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return Ft.call(e,Nv)===!1?!1:or(n,e)};const Mv="data-context-menu-trigger",Dv="data-context-menu-content";yr({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});globalThis.bitsDismissableLayers??=new Map;class Jo{static create(e){return new Jo(e)}opts;#e;#t;#n={pointerdown:!1};#r=!1;#o=!1;#s=void 0;#a;#i=ue;constructor(e){this.opts=e,this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#a=e.onFocusOutside,Ne(()=>{this.#s=_c(this.opts.ref.current)});let n=ue,r=null,o=!1;const s=()=>{r!=null&&(clearTimeout(r),r=null)},i=()=>{s(),this.#p(),globalThis.bitsDismissableLayers.delete(this),this.#f.destroy(),n()};Ae([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return s(),r=hc(1,()=>{r=null,!(o||!this.opts.ref.current)&&(globalThis.bitsDismissableLayers.set(this,this.#t),n(),n=this.#c())}),i}),Vt(()=>{o=!0,s(),this.#p.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#f.destroy(),this.#i(),n()})}#l=e=>{e.defaultPrevented||this.opts.ref.current&&jo(()=>{!this.opts.ref.current||this.#h(e.target)||e.target&&!this.#o&&this.#a.current?.(e)})};#c(){return bn(Te(this.#s,"pointerdown",bn(this.#m,this.#d),{capture:!0}),Te(this.#s,"pointerdown",bn(this.#g,this.#f)),Te(this.#s,"focusin",this.#l))}#u=e=>{let n=e;n.defaultPrevented&&(n=Ei(e)),this.#e.current(e)};#f=Pi(e=>{if(!this.opts.ref.current){this.#i();return}const n=this.opts.isValidEvent.current(e,this.opts.ref.current)||Lv(e,this.opts.ref.current);if(!this.#r||this.#v()||!n){this.#i();return}let r=e;if(r.defaultPrevented&&(r=Ei(r)),this.#t.current!=="close"&&this.#t.current!=="defer-otherwise-close"){this.#i();return}e.pointerType==="touch"?(this.#i(),this.#i=Te(this.#s,"click",this.#u,{once:!0})):this.#e.current(r)},10);#m=e=>{this.#n[e.type]=!0};#g=e=>{this.#n[e.type]=!1};#d=()=>{this.opts.ref.current&&(this.#r=jv(this.opts.ref.current))};#h=e=>this.opts.ref.current?wc(this.opts.ref.current,e):!1;#p=Pi(()=>{for(const e in this.#n)this.#n[e]=!1;this.#r=!1},20);#v(){return Object.values(this.#n).some(Boolean)}#b=()=>{this.#o=!0};#y=()=>{this.#o=!1};props={onfocuscapture:this.#b,onblurcapture:this.#y}}function Fv(t=[...globalThis.bitsDismissableLayers]){return t.findLast(([e,{current:n}])=>n==="close"||n==="ignore")}function jv(t){const e=[...globalThis.bitsDismissableLayers],n=Fv(e);if(n)return n[0].opts.ref.current===t;const[r]=e[0];return r.opts.ref.current===t}function Lv(t,e){const n=t.target;if(!qg(n))return!1;const r=!!n.closest(`[${Mv}]`),o=!!e.closest(`[${Dv}]`);return"button"in t&&t.button>0&&!r?!1:"button"in t&&t.button===0&&r&&o?!0:r&&o?!1:_c(n).documentElement.contains(n)&&!wc(e,n)&&gv(t,e)}function Ei(t){const e=t.currentTarget,n=t.target;let r;t instanceof PointerEvent?r=new PointerEvent(t.type,t):r=new PointerEvent("pointerdown",t);let o=!1;return new Proxy(r,{get:(i,a)=>a==="currentTarget"?e:a==="target"?n:a==="preventDefault"?()=>{o=!0,typeof i.preventDefault=="function"&&i.preventDefault()}:a==="defaultPrevented"?o:a in i?i[a]:t[a]})}function qo(t,e){U(e,!0);let n=v(e,"interactOutsideBehavior",3,"close"),r=v(e,"onInteractOutside",3,ue),o=v(e,"onFocusOutside",3,ue),s=v(e,"isValidEvent",3,()=>!1);const i=Jo.create({id:T(()=>e.id),interactOutsideBehavior:T(()=>n()),onInteractOutside:T(()=>r()),enabled:T(()=>e.enabled),onFocusOutside:T(()=>o()),isValidEvent:T(()=>s()),ref:e.ref});var a=D(),c=R(a);q(c,()=>e.children??ie,()=>({props:i.props})),P(t,a),G()}globalThis.bitsEscapeLayers??=new Map;class Yo{static create(e){return new Yo(e)}opts;domContext;constructor(e){this.opts=e,this.domContext=new Lo(this.opts.ref);let n=ue;Ae(()=>e.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),n=this.#e()),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>Te(this.domContext.getDocument(),"keydown",this.#t,{passive:!1});#t=e=>{if(e.key!==Kg||!Zv(this))return;const n=new KeyboardEvent(e.type,e);e.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)}}function Zv(t){const e=[...globalThis.bitsEscapeLayers],n=e.findLast(([o,{current:s}])=>s==="close"||s==="ignore");if(n)return n[0]===t;const[r]=e[0];return r===t}function Xo(t,e){U(e,!0);let n=v(e,"escapeKeydownBehavior",3,"close"),r=v(e,"onEscapeKeydown",3,ue);Yo.create({escapeKeydownBehavior:T(()=>n()),onEscapeKeydown:T(()=>r()),enabled:T(()=>e.enabled),ref:e.ref});var o=D(),s=R(o);q(s,()=>e.children??ie),P(t,o),G()}class Qo{static instance;#e=qe([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||(this.instance=new Qo),this.instance}register(e){const n=this.getActive();n&&n!==e&&n.pause();const r=document.activeElement;r&&r!==document.body&&this.#n.set(e,r),this.#e.current=this.#e.current.filter(o=>o!==e),this.#e.current.unshift(e)}unregister(e){this.#e.current=this.#e.current.filter(r=>r!==e);const n=this.getActive();n&&n.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,n){this.#t.set(e,n)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,n){this.#n.set(e,n)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}}class es{#e=!1;#t=null;#n=Qo.getInstance();#r=[];#o;constructor(e){this.#o=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#s(){for(const e of this.#r)e();this.#r=[]}mount(e){this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#l(),this.#a()}unmount(){this.#t&&(this.#s(),this.#i(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),this.#t=null)}#a(){if(!this.#t)return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#o.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t)return;const n=this.#u();n?(n.focus(),this.#n.setFocusMemory(this,n)):this.#t.focus()})}#i(){const e=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#o.onCloseAutoFocus.current?.(e),!e.defaultPrevented){const n=this.#n.getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}}#l(){if(!this.#t||!this.#o.trap.current)return;const e=this.#t,n=e.ownerDocument,r=i=>{if(this.#e||!this.#n.isActiveScope(this))return;const a=i.target;if(!a)return;if(e.contains(a))this.#n.setFocusMemory(this,a);else{const l=this.#n.getFocusMemory(this);if(l&&e.contains(l)&&Rv(l))i.preventDefault(),l.focus();else{const u=this.#u(),h=this.#f()[0];(u||h||e).focus()}}},o=i=>{if(!this.#o.loop||this.#e||i.key!=="Tab"||!this.#n.isActiveScope(this))return;const a=this.#c();if(a.length===0)return;const c=a[0],l=a[a.length-1];!i.shiftKey&&n.activeElement===l?(i.preventDefault(),c.focus()):i.shiftKey&&n.activeElement===c&&(i.preventDefault(),l.focus())};this.#r.push(Te(n,"focusin",r,{capture:!0}),Te(e,"keydown",o));const s=new MutationObserver(()=>{const i=this.#n.getFocusMemory(this);if(i&&!e.contains(i)){const a=this.#u(),c=this.#f()[0],l=a||c;l?(l.focus(),this.#n.setFocusMemory(this,l)):e.focus()}});s.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>s.disconnect())}#c(){return this.#t?zv(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#c()[0]||null}#f(){return this.#t?Tv(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(e){let n=null;return Ae([()=>e.ref.current,()=>e.enabled.current],([r,o])=>{r&&o?(n||(n=new es(e)),n.mount(r)):n&&(n.unmount(),n=null)}),Vt(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}}function ts(t,e){U(e,!0);let n=v(e,"enabled",3,!1),r=v(e,"trapFocus",3,!1),o=v(e,"loop",3,!1),s=v(e,"onCloseAutoFocus",3,ue),i=v(e,"onOpenAutoFocus",3,ue);const a=es.use({enabled:T(()=>n()),trap:T(()=>r()),loop:o(),onCloseAutoFocus:T(()=>s()),onOpenAutoFocus:T(()=>i()),ref:e.ref});var c=D(),l=R(c);q(l,()=>e.focusScope??ie,()=>({props:a.props})),P(t,c),G()}const zi=()=>{};globalThis.bitsTextSelectionLayers??=new Map;class ns{static create(e){return new ns(e)}opts;domContext;#e=ue;#t=!1;#n=zi;#r=zi;constructor(e){this.opts=e,this.domContext=new Lo(e.ref);let n=ue;Ae(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([r,o,s])=>(this.#t=r,this.#n=o,this.#r=s,r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=this.#o()),()=>{this.#t=!1,n(),this.#i(),globalThis.bitsTextSelectionLayers.delete(this)}))}#o(){return bn(Te(this.domContext.getDocument(),"pointerdown",this.#a),Te(this.domContext.getDocument(),"pointerup",cc(this.#i,this.#s)))}#s=e=>{this.#r(e)};#a=e=>{if(!this.#t)return;const n=this.opts.ref.current,r=e.target;!uo(n)||!uo(r)||!Bv(this)||!Ug(n,r)||(this.#n(e),!e.defaultPrevented&&(this.#e=Vv(n,this.domContext.getDocument().body)))};#i=()=>{this.#e(),this.#e=ue}}const Ti=t=>t.style.userSelect||t.style.webkitUserSelect;function Vv(t,e){const n=Ti(e),r=Ti(t);return In(e,"none"),In(t,"text"),()=>{In(e,n),In(t,r)}}function In(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function Bv(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const n=e.at(-1);return n?n[0]===t:!1}function rs(t,e){U(e,!0);let n=v(e,"preventOverflowTextSelection",3,!0),r=v(e,"onPointerDown",3,ue),o=v(e,"onPointerUp",3,ue);ns.create({id:T(()=>e.id),onPointerDown:T(()=>r()),onPointerUp:T(()=>o()),enabled:T(()=>e.enabled&&n()),ref:e.ref});var s=D(),i=R(s);q(i,()=>e.children??ie),P(t,s),G()}globalThis.bitsIdCounter??={current:0};function os(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}class Wv{#e;#t=0;#n=V();#r;constructor(e){this.#e=e}#o(){this.#t-=1,this.#r&&this.#t<=0&&(this.#r(),O(this.#n,void 0),this.#r=void 0)}get(...e){return this.#t+=1,m(this.#n)===void 0&&(this.#r=Ql(()=>{O(this.#n,this.#e(...e),!0)})),Ne(()=>()=>{this.#o()}),m(this.#n)}}const Un=new Ng;let Nn=V(null),Br=null,un=null,dn=!1;const Ii=T(()=>{for(const t of Un.values())if(t)return!0;return!1});let Wr=null;const Uv=new Wv(()=>{function t(){document.body.setAttribute("style",m(Nn)??""),document.body.style.removeProperty("--scrollbar-width"),Oi&&Br?.(),O(Nn,null)}function e(){un!==null&&(window.clearTimeout(un),un=null)}function n(o,s){e(),dn=!0,Wr=Date.now();const i=Wr,a=()=>{un=null,Wr===i&&(Ec(Un)?dn=!1:(dn=!1,s()))},c=o===null?24:o;un=window.setTimeout(a,c)}function r(){m(Nn)===null&&Un.size===0&&!dn&&O(Nn,document.body.getAttribute("style"),!0)}return Ae(()=>Ii.current,()=>{if(!Ii.current)return;r(),dn=!1;const o=getComputedStyle(document.documentElement),s=getComputedStyle(document.body),i=o.scrollbarGutter?.includes("stable")||s.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,l={padding:Number.parseInt(s.paddingRight??"0",10)+a,margin:Number.parseInt(s.marginRight??"0",10)};a>0&&!i&&(document.body.style.paddingRight=`${l.padding}px`,document.body.style.marginRight=`${l.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",Oi&&(Br=Te(document,"touchmove",u=>{u.target===document.documentElement&&(u.touches.length>1||u.preventDefault())},{passive:!1})),jo(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Vt(()=>()=>{Br?.()}),{get lockMap(){return Un},resetBodyStyle:t,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:e,ensureInitialStyleCaptured:r}});class Gv{#e=os();#t;#n=()=>null;#r;locked;constructor(e,n=()=>null){this.#t=e,this.#n=n,this.#r=Uv.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=T(()=>this.#r.lockMap.get(this.#e)??!1,r=>this.#r.lockMap.set(this.#e,r)),Vt(()=>{if(this.#r.lockMap.delete(this.#e),Ec(this.#r.lockMap))return;const r=this.#n();this.#r.scheduleCleanupIfNoNewLocks(r,()=>{this.#r.resetBodyStyle()})}))}}function Ec(t){for(const[e,n]of t)if(n)return!0;return!1}function Xt(t,e){U(e,!0);let n=v(e,"preventScroll",3,!0),r=v(e,"restoreScrollDelay",3,null);n()&&new Gv(n(),()=>r()),G()}var $v=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","interactOutsideBehavior","onCloseAutoFocus","onEscapeKeydown","onOpenAutoFocus","onInteractOutside","preventScroll","trapFocus","restoreScrollDelay"]),Hv=ae("<!> <!>",1),Kv=ae("<!> <div><!></div>",1);function Jv(t,e){const n=$e();U(e,!0);let r=v(e,"id",19,()=>He(n)),o=v(e,"ref",15,null),s=v(e,"forceMount",3,!1),i=v(e,"interactOutsideBehavior",3,"ignore"),a=v(e,"onCloseAutoFocus",3,ue),c=v(e,"onEscapeKeydown",3,ue),l=v(e,"onOpenAutoFocus",3,ue),u=v(e,"onInteractOutside",3,ue),h=v(e,"preventScroll",3,!0),d=v(e,"trapFocus",3,!0),f=v(e,"restoreScrollDelay",3,null),p=Q(e,$v);const g=xr.create({id:T(()=>r()),ref:T(()=>o(),C=>o(C))}),y=z(()=>ye(p,g.props));var k=D(),S=R(k);{var A=C=>{ts(C,{get ref(){return g.opts.ref},loop:!0,get trapFocus(){return d()},get enabled(){return g.root.opts.open.current},get onCloseAutoFocus(){return a()},onOpenAutoFocus:w=>{l()(w),!w.defaultPrevented&&(w.preventDefault(),hc(0,()=>g.opts.ref.current?.focus()))},focusScope:(w,I)=>{let b=()=>(I?.()).props;Xo(w,se(()=>m(y),{get enabled(){return g.root.opts.open.current},get ref(){return g.opts.ref},onEscapeKeydown:N=>{c()(N),!N.defaultPrevented&&g.root.handleClose()},children:(N,M)=>{qo(N,se(()=>m(y),{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},get interactOutsideBehavior(){return i()},onInteractOutside:$=>{u()($),!$.defaultPrevented&&g.root.handleClose()},children:($,ee)=>{rs($,se(()=>m(y),{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},children:(Y,re)=>{var K=D(),H=R(K);{var X=J=>{var _=Hv(),Se=R(_);{var Ce=Re=>{Xt(Re,{get preventScroll(){return h()},get restoreScrollDelay(){return f()}})};fe(Se,Re=>{g.root.opts.open.current&&Re(Ce)})}var Ee=Fe(Se,2);{let Re=z(()=>({props:ye(m(y),b()),...g.snippetProps}));q(Ee,()=>e.child,()=>m(Re))}P(J,_)},W=J=>{var _=Kv(),Se=R(_);Xt(Se,{get preventScroll(){return h()}});var Ce=Fe(Se,2);pe(Ce,Re=>({...Re}),[()=>ye(m(y),b())]);var Ee=ve(Ce);q(Ee,()=>e.children??ie),be(Ce),P(J,_)};fe(H,J=>{e.child?J(X):J(W,-1)})}P(Y,K)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};fe(S,C=>{(g.shouldRender||s())&&C(A)})}P(t,k),G()}var qv=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Yv=ae("<div><!></div>");function zc(t,e){const n=$e();U(e,!0);let r=v(e,"id",19,()=>He(n)),o=v(e,"forceMount",3,!1),s=v(e,"ref",15,null),i=Q(e,qv);const a=$o.create({id:T(()=>r()),ref:T(()=>s(),d=>s(d))}),c=z(()=>ye(i,a.props));var l=D(),u=R(l);{var h=d=>{var f=D(),p=R(f);{var g=k=>{var S=D(),A=R(S);{let C=z(()=>({props:ye(m(c)),...a.snippetProps}));q(A,()=>e.child,()=>m(C))}P(k,S)},y=k=>{var S=Yv();pe(S,C=>({...C}),[()=>ye(m(c))]);var A=ve(S);q(A,()=>e.children??ie,()=>a.snippetProps),be(S),P(k,S)};fe(p,k=>{e.child?k(g):k(y,-1)})}P(d,f)};fe(u,d=>{(a.shouldRender||o())&&d(h)})}P(t,l),G()}var Xv=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Qv=ae("<div><!></div>");function Tc(t,e){const n=$e();U(e,!0);let r=v(e,"id",19,()=>He(n)),o=v(e,"ref",15,null),s=Q(e,Xv);const i=Go.create({id:T(()=>r()),ref:T(()=>o(),d=>o(d))}),a=z(()=>ye(s,i.props));var c=D(),l=R(c);{var u=d=>{var f=D(),p=R(f);q(p,()=>e.child,()=>({props:m(a)})),P(d,f)},h=d=>{var f=Qv();pe(f,()=>({...m(a)}));var p=ve(f);q(p,()=>e.children??ie),be(f),P(d,f)};fe(l,d=>{e.child?d(u):d(h,-1)})}P(t,c),G()}const eb=yr({component:"checkbox",parts:["root","group","group-label","input"]}),tb=new St("Checkbox.Group"),Ic=new St("Checkbox.Root");class ss{static create(e,n=null){return Ic.set(new ss(e,n))}opts;group;#e=z(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return m(this.#e)}set trueName(e){O(this.#e,e)}#t=z(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return m(this.#t)}set trueRequired(e){O(this.#t,e)}#n=z(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return m(this.#n)}set trueDisabled(e){O(this.#n,e)}#r=z(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return m(this.#r)}set trueReadonly(e){O(this.#r,e)}attachment;constructor(e,n){this.opts=e,this.group=n,this.attachment=Ve(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),Ae.pre([()=>fu(this.group?.opts.value.current),()=>this.opts.value.current],([r,o])=>{!r||!o||(this.opts.checked.current=r.includes(o))}),Ae.pre(()=>this.opts.checked.current,r=>{this.group&&(r?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(e){if(!(this.trueDisabled||this.trueReadonly)){if(e.key===wr){e.preventDefault(),this.opts.type.current==="submit"&&e.currentTarget.closest("form")?.requestSubmit();return}e.key===_r&&(e.preventDefault(),this.#o())}}#o(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(e){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#o();return}e.preventDefault(),this.#o()}}#s=z(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return m(this.#s)}set snippetProps(e){O(this.#s,e)}#a=z(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":$g(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":lo(this.trueRequired),"aria-readonly":lo(this.trueReadonly),"data-disabled":Yt(this.trueDisabled),"data-readonly":Yt(this.trueReadonly),"data-state":nb(this.opts.checked.current,this.opts.indeterminate.current),[eb.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return m(this.#a)}set props(e){O(this.#a,e)}}class is{static create(){return new is(Ic.get())}root;#e=z(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return m(this.#e)}set trueChecked(e){O(this.#e,e)}#t=z(()=>!!this.root.trueName);get shouldRender(){return m(this.#t)}set shouldRender(e){O(this.#t,e)}constructor(e){this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(e){uo(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#n=z(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,form:this.root.opts.form.current,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return m(this.#n)}set props(e){O(this.#n,e)}}function nb(t,e){return e?"indeterminate":t?"checked":"unchecked"}eu();var rb=new Set(["$$slots","$$events","$$legacy","value"]),Ni=ae("<input/>");function ob(t,e){U(e,!0);let n=v(e,"value",15),r=Q(e,rb);const o=z(()=>ye(r,{"aria-hidden":"true",tabindex:-1,style:{...uc,position:"absolute",top:"0",left:"0"}}));var s=D(),i=R(s);{var a=l=>{var u=Ni();pe(u,()=>({...m(o),value:n()}),void 0,void 0,void 0,void 0,!0),P(l,u)},c=l=>{var u=Ni();pe(u,()=>({...m(o)}),void 0,void 0,void 0,void 0,!0),ga(u,n),P(l,u)};fe(i,l=>{m(o).type==="checkbox"?l(a):l(c,-1)})}P(t,s),G()}function sb(t,e){U(e,!1);const n=is.create();vu();var r=D(),o=R(r);{var s=i=>{ob(i,se(()=>n.props))};fe(o,i=>{n.shouldRender&&i(s)})}P(t,r),G()}var ib=new Set(["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","form","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]),ab=ae("<button><!></button>"),cb=ae("<!> <!>",1);function lb(t,e){const n=$e();U(e,!0);let r=v(e,"checked",15,!1),o=v(e,"ref",15,null),s=v(e,"disabled",3,!1),i=v(e,"required",3,!1),a=v(e,"name",3,void 0),c=v(e,"form",3,void 0),l=v(e,"value",3,"on"),u=v(e,"id",19,()=>He(n)),h=v(e,"indeterminate",15,!1),d=v(e,"type",3,"button"),f=Q(e,ib);const p=tb.getOr(null);p&&l()&&(p.opts.value.current.includes(l())?r(!0):r(!1)),Ae.pre(()=>l(),()=>{p&&l()&&(p.opts.value.current.includes(l())?r(!0):r(!1))});const g=ss.create({checked:T(()=>r(),w=>{r(w),e.onCheckedChange?.(w)}),disabled:T(()=>s()??!1),required:T(()=>i()),name:T(()=>a()),form:T(()=>c()),value:T(()=>l()),id:T(()=>u()),ref:T(()=>o(),w=>o(w)),indeterminate:T(()=>h(),w=>{h(w),e.onIndeterminateChange?.(w)}),type:T(()=>d()),readonly:T(()=>!!e.readonly)},p),y=z(()=>ye({...f},g.props));var k=cb(),S=R(k);{var A=w=>{var I=D(),b=R(I);{let N=z(()=>({props:m(y),...g.snippetProps}));q(b,()=>e.child,()=>m(N))}P(w,I)},C=w=>{var I=ab();pe(I,()=>({...m(y)}));var b=ve(I);q(b,()=>e.children??ie,()=>g.snippetProps),be(I),P(w,I)};fe(S,w=>{e.child?w(A):w(C,-1)})}var E=Fe(S,2);sb(E,{}),P(t,k),G()}const ub=["top","right","bottom","left"],yt=Math.min,at=Math.max,sr=Math.round,Rn=Math.floor,ct=t=>({x:t,y:t}),db={left:"right",right:"left",bottom:"top",top:"bottom"};function Nc(t,e,n){return at(t,yt(e,n))}function ut(t,e){return typeof t=="function"?t(e):t}function wt(t){return t.split("-")[0]}function tn(t){return t.split("-")[1]}function as(t){return t==="x"?"y":"x"}function cs(t){return t==="y"?"height":"width"}function Ye(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function ls(t){return as(Ye(t))}function fb(t,e,n){n===void 0&&(n=!1);const r=tn(t),o=ls(t),s=cs(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=ir(i)),[i,ir(i)]}function hb(t){const e=ir(t);return[ho(t),e,ho(e)]}function ho(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Ri=["left","right"],Mi=["right","left"],pb=["top","bottom"],mb=["bottom","top"];function gb(t,e,n){switch(t){case"top":case"bottom":return n?e?Mi:Ri:e?Ri:Mi;case"left":case"right":return e?pb:mb;default:return[]}}function vb(t,e,n,r){const o=tn(t);let s=gb(wt(t),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),e&&(s=s.concat(s.map(ho)))),s}function ir(t){const e=wt(t);return db[e]+t.slice(e.length)}function bb(t){var e,n,r,o;return{top:(e=t.top)!=null?e:0,right:(n=t.right)!=null?n:0,bottom:(r=t.bottom)!=null?r:0,left:(o=t.left)!=null?o:0}}function Rc(t){return typeof t!="number"?bb(t):{top:t,right:t,bottom:t,left:t}}function ar(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function Di(t,e,n){let{reference:r,floating:o}=t;const s=Ye(e),i=ls(e),a=cs(i),c=wt(e),l=s==="y",u=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let f;switch(c){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:h};break;case"left":f={x:r.x-o.width,y:h};break;default:f={x:r.x,y:r.y}}const p=tn(e);return p&&(f[i]+=d*(p==="end"?1:-1)*(n&&l?-1:1)),f}async function yb(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:f=0}=ut(e,t),p=Rc(f),y=a[d?h==="floating"?"reference":"floating":h],k=ar(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),S=h==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(A))&&await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1},E=ar(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:A,strategy:c}):S);return{top:(k.top-E.top+p.top)/C.y,bottom:(E.bottom-k.bottom+p.bottom)/C.y,left:(k.left-E.left+p.left)/C.x,right:(E.right-k.right+p.right)/C.x}}const wb=50,_b=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:yb},c=await(i.isRTL==null?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:h}=Di(l,r,c),d=r,f=0;const p={};for(let g=0;g<s.length;g++){const y=s[g];if(!y)continue;const{name:k,fn:S}=y,{x:A,y:C,data:E,reset:w}=await S({x:u,y:h,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:l,platform:a,elements:{reference:t,floating:e}});u=A??u,h=C??h,p[k]={...p[k],...E},w&&f<wb&&(f++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(l=w.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:o}):w.rects),{x:u,y:h}=Di(l,d,c)),g=-1)}return{x:u,y:h,placement:d,strategy:o,middlewareData:p}},kb=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=ut(t,e)||{};if(l==null)return{};const h=Rc(u),d={x:n,y:r},f=ls(o),p=cs(f),g=await i.getDimensions(l),y=f==="y",k=y?"top":"left",S=y?"bottom":"right",A=y?"clientHeight":"clientWidth",C=s.reference[p]+s.reference[f]-d[f]-s.floating[p],E=d[f]-s.reference[f],w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let I=w?w[A]:0;(!I||!await(i.isElement==null?void 0:i.isElement(w)))&&(I=a.floating[A]||s.floating[p]);const b=C/2-E/2,N=I/2-g[p]/2-1,M=yt(h[k],N),$=yt(h[S],N),ee=I-g[p]-$,Y=I/2-g[p]/2+b,re=Nc(M,Y,ee),K=!c.arrow&&tn(o)!=null&&Y!==re&&s.reference[p]/2-(Y<M?M:$)-g[p]/2<0,H=K?Y<M?Y-M:Y-ee:0;return{[f]:d[f]+H,data:{[f]:re,centerOffset:Y-re-H,...K&&{alignmentOffset:H}},reset:K}}}),xb=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=e,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...y}=ut(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const k=wt(o),S=Ye(a),A=wt(a)===a,C=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=d||(A||!g?[ir(a)]:hb(a)),w=p!=="none";!d&&w&&E.push(...vb(a,g,p,C));const I=[a,...E],b=await c.detectOverflow(e,y),N=[];let M=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&N.push(b[k]),h){const re=fb(o,i,C);N.push(b[re[0]],b[re[1]])}if(M=[...M,{placement:o,overflows:N}],!N.every(re=>re<=0)){var $,ee;const re=((($=s.flip)==null?void 0:$.index)||0)+1,K=I[re];if(K&&(!(h==="alignment"?S!==Ye(K):!1)||M.every(W=>Ye(W.placement)===S?W.overflows[0]>0:!0)))return{data:{index:re,overflows:M},reset:{placement:K}};let H=(ee=M.filter(X=>X.overflows[0]<=0).sort((X,W)=>X.overflows[1]-W.overflows[1])[0])==null?void 0:ee.placement;if(!H)switch(f){case"bestFit":{var Y;const X=(Y=M.filter(W=>{if(w){const J=Ye(W.placement);return J===S||J==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(J=>J>0).reduce((J,_)=>J+_,0)]).sort((W,J)=>W[1]-J[1])[0])==null?void 0:Y[0];X&&(H=X);break}case"initialPlacement":H=a;break}if(o!==H)return{reset:{placement:H}}}return{}}}};function Fi(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function ji(t){return ub.some(e=>t[e]>=0)}const Sb=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:o="referenceHidden",...s}=ut(t,e);switch(o){case"referenceHidden":{const i=await r.detectOverflow(e,{...s,elementContext:"reference"}),a=Fi(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:ji(a)}}}case"escaped":{const i=await r.detectOverflow(e,{...s,altBoundary:!0}),a=Fi(i,n.floating);return{data:{escapedOffsets:a,escaped:ji(a)}}}default:return{}}}}},Mc=new Set(["left","top"]);async function Cb(t,e){const{placement:n,platform:r,elements:o}=t,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=wt(n),a=tn(n),c=Ye(n)==="y",l=Mc.has(i)?-1:1,u=s&&c?-1:1,h=ut(e,t);let{mainAxis:d,crossAxis:f,alignmentAxis:p}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof p=="number"&&(f=a==="end"?p*-1:p),c?{x:f*u,y:d*l}:{x:d*l,y:f*u}}const Ob=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=e,c=await Cb(e,t);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},Pb=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o,platform:s}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:S=>{let{x:A,y:C}=S;return{x:A,y:C}}},...l}=ut(t,e),u={x:n,y:r},h=await s.detectOverflow(e,l),d=Ye(o),f=as(d);let p=u[f],g=u[d];const y=(S,A)=>Nc(A+h[S==="y"?"top":"left"],A,A-h[S==="y"?"bottom":"right"]);i&&(p=y(f,p)),a&&(g=y(d,g));const k=c.fn({...e,[f]:p,[d]:g});return{...k,data:{x:k.x-n,y:k.y-r,enabled:{[f]:i,[d]:a}}}}}},Ab=function(t){return t===void 0&&(t={}),{options:t,fn(e){var n,r;const{x:o,y:s,placement:i,rects:a,middlewareData:c}=e,{offset:l=0,mainAxis:u=!0,crossAxis:h=!0}=ut(t,e),d={x:o,y:s},f=Ye(i),p=as(f);let g=d[p],y=d[f];const k=ut(l,e),S=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:(n=k.mainAxis)!=null?n:0,crossAxis:(r=k.crossAxis)!=null?r:0};if(u){const E=p==="y"?"height":"width",w=a.reference[p]-a.floating[E]+S.mainAxis,I=a.reference[p]+a.reference[E]-S.mainAxis;g<w?g=w:g>I&&(g=I)}if(h){var A,C;const E=p==="y"?"width":"height",w=Mc.has(wt(i)),I=a.reference[f]-a.floating[E]+(w&&((A=c.offset)==null?void 0:A[f])||0)+(w?0:S.crossAxis),b=a.reference[f]+a.reference[E]+(w?0:((C=c.offset)==null?void 0:C[f])||0)-(w?S.crossAxis:0);y<I?y=I:y>b&&(y=b)}return{[p]:g,[f]:y}}}},Eb=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:r,platform:o,elements:s}=e,{apply:i=()=>{},...a}=ut(t,e),c=await o.detectOverflow(e,a),l=wt(n),u=tn(n),h=Ye(n)==="y",{width:d,height:f}=r.floating;let p,g;l==="top"||l==="bottom"?(p=l,g=u===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(g=l,p=u==="end"?"top":"bottom");const y=f-c.top-c.bottom,k=d-c.left-c.right,S=yt(f-c[p],y),A=yt(d-c[g],k),C=e.middlewareData.shift,E=!C;let w=S,I=A;C!=null&&C.enabled.x&&(I=k),C!=null&&C.enabled.y&&(w=y),E&&!u&&(h?I=d-2*at(c.left,c.right):w=f-2*at(c.top,c.bottom)),await i({...e,availableWidth:I,availableHeight:w});const b=await o.getDimensions(s.floating);return d!==b.width||f!==b.height?{reset:{rects:!0}}:{}}}};function Sr(){return typeof window<"u"}function nn(t){return Dc(t)?(t.nodeName||"").toLowerCase():"#document"}function je(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function dt(t){var e;return(e=(Dc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Dc(t){return Sr()?t instanceof Node||t instanceof je(t).Node:!1}function Qe(t){return Sr()?t instanceof Element||t instanceof je(t).Element:!1}function Ct(t){return Sr()?t instanceof HTMLElement||t instanceof je(t).HTMLElement:!1}function Li(t){return!Sr()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof je(t).ShadowRoot}function Cr(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=et(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&o!=="inline"&&o!=="contents"}function zb(t){return/^(table|td|th)$/.test(nn(t))}function Or(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Tb=/transform|translate|scale|rotate|perspective|filter/,Ib=/paint|layout|strict|content/,Et=t=>!!t&&t!=="none";let Ur;function us(t){const e=Qe(t)?et(t):t;return Et(e.transform)||Et(e.translate)||Et(e.scale)||Et(e.rotate)||Et(e.perspective)||!ds()&&(Et(e.backdropFilter)||Et(e.filter))||Tb.test(e.willChange||"")||Ib.test(e.contain||"")}function Nb(t){let e=jt(t);for(;Ct(e)&&!kn(e);){if(us(e))return e;if(Or(e))return null;e=jt(e)}return null}function ds(){return Ur==null&&(Ur=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ur}function kn(t){return/^(html|body|#document)$/.test(nn(t))}function et(t){return je(t).getComputedStyle(t)}function Pr(t){return Qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function jt(t){if(nn(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Li(t)&&t.host||dt(t);return Li(e)?e.host:e}function Fc(t){const e=jt(t);return kn(e)?(t.ownerDocument||t).body:Ct(e)&&Cr(e)?e:Fc(e)}function xn(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=Fc(t),s=o===((r=t.ownerDocument)==null?void 0:r.body),i=je(o);if(s){const a=po(i);return e.concat(i,i.visualViewport||[],Cr(o)?o:[],a&&n?xn(a):[])}else return e.concat(o,xn(o,[],n))}function po(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function jc(t){const e=et(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=Ct(t),s=o?t.offsetWidth:n,i=o?t.offsetHeight:r,a=sr(n)!==s||sr(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function fs(t){return Qe(t)?t:t.contextElement}function Kt(t){const e=fs(t);if(!Ct(e))return ct(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:s}=jc(e);let i=(s?sr(n.width):n.width)/r,a=(s?sr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Rb=ct(0);function Lc(t){const e=je(t);return!ds()||!e.visualViewport?Rb:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Mb(t,e,n){return e===void 0&&(e=!1),!!n&&e&&n===je(t)}function Lt(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),s=fs(t);let i=ct(1);e&&(r?Qe(r)&&(i=Kt(r)):i=Kt(t));const a=Mb(s,n,r)?Lc(s):ct(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,u=o.width/i.x,h=o.height/i.y;if(s&&r){const d=je(s),f=Qe(r)?je(r):r;let p=d,g=po(p);for(;g&&f!==p;){const y=Kt(g),k=g.getBoundingClientRect(),S=et(g),A=k.left+(g.clientLeft+parseFloat(S.paddingLeft))*y.x,C=k.top+(g.clientTop+parseFloat(S.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,h*=y.y,c+=A,l+=C,p=je(g),g=po(p)}}return ar({width:u,height:h,x:c,y:l})}function Ar(t,e){const n=Pr(t).scrollLeft;return e?e.left+n:Lt(dt(t)).left+n}function Zc(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-Ar(t,n),o=n.top+e.scrollTop;return{x:r,y:o}}function Db(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const s=o==="fixed",i=dt(r),a=e?Or(e.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=ct(1);const u=ct(0),h=Ct(r);if((h||!s)&&((nn(r)!=="body"||Cr(i))&&(c=Pr(r)),h)){const f=Lt(r);l=Kt(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const d=i&&!h&&!s?Zc(i,c):ct(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+d.x,y:n.y*l.y-c.scrollTop*l.y+u.y+d.y}}function Fb(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function jb(t){const e=Pr(t),n=t.ownerDocument.body,r=at(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=at(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-e.scrollLeft+Ar(t);const i=-e.scrollTop;return et(n).direction==="rtl"&&(s+=at(t.clientWidth,n.clientWidth)-r),{width:r,height:o,x:s,y:i}}const Lb=25;function Zb(t,e,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",o=je(t),s=dt(t),i=o.visualViewport;let a=s.clientWidth,c=s.clientHeight,l=0,u=0;if(i){const d=!ds()||e==="fixed";r?d||(l=-i.offsetLeft,u=-i.offsetTop):(a=i.width,c=i.height,d&&(l=i.offsetLeft,u=i.offsetTop))}if(Ar(s)<=0){const d=s.ownerDocument,f=d.body,p=getComputedStyle(f),g=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,y=Math.abs(s.clientWidth-f.clientWidth-g),k=getComputedStyle(s).scrollbarGutter==="stable both-edges"?y/2:y;k<=Lb&&(a-=k)}return{width:a,height:c,x:l,y:u}}function Vb(t,e){const n=Lt(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,s=Kt(t),i=t.clientWidth*s.x,a=t.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function Zi(t,e,n){let r;if(e==="viewport"||e==="layoutViewport")r=Zb(t,n,e);else if(e==="document")r=jb(dt(t));else if(Qe(e))r=Vb(e,n);else{const o=Lc(t);r={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return ar(r)}function Bb(t,e){const n=e.get(t);if(n)return n;let r=xn(t,[],!1).filter(a=>Qe(a)&&nn(a)!=="body"),o=null;const s=et(t).position==="fixed";let i=s?jt(t):t;for(;Qe(i)&&!kn(i);){const a=et(i),c=us(i),l=o?o.position:s?"fixed":"";!c&&(l==="fixed"||l==="absolute"&&a.position==="static")?r=r.filter(h=>h!==i):o=a,i=jt(i)}return e.set(t,r),r}function Wb(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const i=[...n==="clippingAncestors"?Or(e)?[]:Bb(e,this._c):[].concat(n),r],a=Zi(e,i[0],o);let c=a.top,l=a.right,u=a.bottom,h=a.left;for(let d=1;d<i.length;d++){const f=Zi(e,i[d],o);c=at(f.top,c),l=yt(f.right,l),u=yt(f.bottom,u),h=at(f.left,h)}return{width:l-h,height:u-c,x:h,y:c}}function Ub(t){const{width:e,height:n}=jc(t);return{width:e,height:n}}function Gb(t,e,n){const r=Ct(e),o=dt(e),s=n==="fixed",i=Lt(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const c=ct(0);if((r||!s)&&((nn(e)!=="body"||Cr(o))&&(a=Pr(e)),r)){const d=Lt(e,!0,s,e);c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}!r&&o&&(c.x=Ar(o));const l=o&&!r&&!s?Zc(o,a):ct(0),u=i.left+a.scrollLeft-c.x-l.x,h=i.top+a.scrollTop-c.y-l.y;return{x:u,y:h,width:i.width,height:i.height}}function Gr(t){return et(t).position==="static"}function Vi(t,e){if(!Ct(t)||et(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return dt(t)===n&&(n=n.ownerDocument.body),n}function Vc(t,e){const n=je(t);if(Or(t))return n;if(!Ct(t)){let o=jt(t);for(;o&&!kn(o);){if(Qe(o)&&!Gr(o))return o;o=jt(o)}return n}let r=Vi(t,e);for(;r&&zb(r)&&Gr(r);)r=Vi(r,e);return r&&kn(r)&&Gr(r)&&!us(r)?n:r||Nb(t)||n}const $b=async function(t){const e=this.getOffsetParent||Vc,n=this.getDimensions,r=await n(t.floating);return{reference:Gb(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Hb(t){return et(t).direction==="rtl"}const Kb={convertOffsetParentRelativeRectToViewportRelativeRect:Db,getDocumentElement:dt,getClippingRect:Wb,getOffsetParent:Vc,getElementRects:$b,getClientRects:Fb,getDimensions:Ub,getScale:Kt,isElement:Qe,isRTL:Hb};function Bc(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Jb(t,e,n){let r=null,o;const s=dt(t);function i(){var u;clearTimeout(o),(u=r)==null||u.disconnect(),r=null}function a(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),i();const d=t.getBoundingClientRect(),{left:f,top:p,width:g,height:y}=d;if(u||e(),!g||!y)return;const k=Rn(p),S=Rn(s.clientWidth-(f+g)),A=Rn(s.clientHeight-(p+y)),C=Rn(f),w={rootMargin:-k+"px "+-S+"px "+-A+"px "+-C+"px",threshold:at(0,yt(1,h))||1};let I=!0;function b(N){const M=N[0].intersectionRatio;if(!Bc(d,t.getBoundingClientRect()))return a();if(M!==h){if(!I)return a();M?a(!1,M):o=setTimeout(()=>{a(!1,1e-7)},1e3)}I=!1}try{r=new IntersectionObserver(b,{...w,root:s.ownerDocument})}catch{r=new IntersectionObserver(b,w)}r.observe(t)}const c=je(t),l=()=>a(n);return c.addEventListener("resize",l),a(!0),()=>{c.removeEventListener("resize",l),i()}}function qb(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=fs(t),u=o||s?[...l?xn(l):[],...e?xn(e):[]]:[];u.forEach(k=>{o&&k.addEventListener("scroll",n),s&&k.addEventListener("resize",n)});const h=l&&a?Jb(l,n,s):null;let d=-1,f=null;i&&(f=new ResizeObserver(k=>{let[S]=k;S&&S.target===l&&f&&e&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var A;(A=f)==null||A.observe(e)})),n()}),l&&!c&&f.observe(l),e&&f.observe(e));let p,g=c?Lt(t):null;c&&y();function y(){const k=Lt(t);g&&!Bc(g,k)&&n(),g=k,p=requestAnimationFrame(y)}return n(),()=>{var k;u.forEach(S=>{o&&S.removeEventListener("scroll",n),s&&S.removeEventListener("resize",n)}),h?.(),(k=f)==null||k.disconnect(),f=null,c&&cancelAnimationFrame(p)}}const Yb=Ob,Xb=Pb,Qb=xb,ey=Eb,ty=Sb,ny=kb,ry=Ab,oy=(t,e,n)=>{const r=new Map,o=n??{},s={...Kb,...o.platform,_c:r};return _b(t,e,{...o,platform:s})};function zt(t){return typeof t=="function"?t():t}function Wc(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Bi(t,e){const n=Wc(t);return Math.round(e*n)/n}function Wi(t){return{[`--bits-${t}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${t}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${t}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${t}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${t}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function sy(t){const e=t.whileElementsMounted,n=z(()=>zt(t.open)??!0),r=z(()=>zt(t.middleware)),o=z(()=>zt(t.transform)??!0),s=z(()=>zt(t.placement)??"bottom"),i=z(()=>zt(t.strategy)??"absolute"),a=z(()=>zt(t.sideOffset)??0),c=z(()=>zt(t.alignOffset)??0),l=t.reference;let u=V(0),h=V(0);const d=qe(null);let f=V(We(m(i))),p=V(We(m(s))),g=V(We({})),y=V(!1),k=!1,S=0;const A=z(()=>{const M=d.current?Bi(d.current,m(u)):m(u),$=d.current?Bi(d.current,m(h)):m(h);return m(o)?{position:m(f),left:"0",top:"0",transform:`translate(${M}px, ${$}px)`,...d.current&&Wc(d.current)>=1.5&&{willChange:"transform"}}:{position:m(f),left:`${M}px`,top:`${$}px`}});let C;function E(){if(l.current===null||d.current===null)return;const M=l.current,$=d.current,ee=++S;oy(M,$,{middleware:m(r),placement:m(s),strategy:m(i)}).then(Y=>{if(ee!==S||l.current!==M||d.current!==$)return;if(iy(M)){O(g,{...m(g),hide:{...m(g).hide,referenceHidden:!0}},!0);return}if(!m(n)&&m(u)!==0&&m(h)!==0){const K=Math.max(Math.abs(m(a)),Math.abs(m(c)),15);if(Y.x<=K&&Y.y<=K)return}O(u,Y.x,!0),O(h,Y.y,!0),O(f,Y.strategy,!0),O(p,Y.placement,!0),O(g,Y.middlewareData,!0),O(y,!0)})}function w(){typeof C=="function"&&(C(),C=void 0),S++}function I(){if(w(),e===void 0){E();return}m(n)&&(l.current===null||d.current===null||(C=e(l.current,d.current,E)))}function b(){!m(n)&&d.current===null&&O(y,!1)}function N(){return[m(r),m(s),m(i),m(a),m(c),m(n)]}return Ne(()=>{e===void 0&&m(n)&&E()}),Ne(I),Ne(()=>{if(e!==void 0){if(N(),!m(n)){k=!1;return}if(!m(y)){k=!1;return}if(!k){k=!0;return}E()}}),Ne(b),Ne(()=>w),{floating:d,reference:l,get strategy(){return m(f)},get placement(){return m(p)},get middlewareData(){return m(g)},get isPositioned(){return m(y)},get floatingStyles(){return m(A)},get update(){return E}}}function iy(t){return t instanceof Element?!t.isConnected||t instanceof HTMLElement&&t.hidden?!0:t.getClientRects().length===0:!1}const ay={top:"bottom",right:"left",bottom:"top",left:"right"},hs=new St("Floating.Root"),mo=new St("Floating.Content"),ps=new St("Floating.Root");class cr{static create(e=!1){return e?ps.set(new cr):hs.set(new cr)}anchorNode=qe(null);customAnchorNode=qe(null);triggerNode=qe(null);constructor(){Ne(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class lr{static create(e,n=!1){return n?mo.set(new lr(e,ps.get())):mo.set(new lr(e,hs.get()))}opts;root;contentRef=qe(null);wrapperRef=qe(null);arrowRef=qe(null);contentAttachment=Ve(this.contentRef);wrapperAttachment=Ve(this.wrapperRef);arrowAttachment=Ve(this.arrowRef);arrowId=qe(os());#e=z(()=>{if(typeof this.opts.style=="string")return mn(this.opts.style);if(!this.opts.style)return{}});#t=void 0;#n=new jg(()=>this.arrowRef.current??void 0);#r=z(()=>this.#n?.width??0);#o=z(()=>this.#n?.height??0);#s=z(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=z(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#i=z(()=>m(this.#a).length>0);get hasExplicitBoundaries(){return m(this.#i)}set hasExplicitBoundaries(e){O(this.#i,e)}#l=z(()=>({padding:this.opts.collisionPadding.current,boundary:m(this.#a).filter(Yg),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return m(this.#l)}set detectOverflowOptions(e){O(this.#l,e)}#c=V(void 0);#u=V(void 0);#f=V(void 0);#m=V(void 0);#g=z(()=>[Yb({mainAxis:this.opts.sideOffset.current+m(this.#o),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Xb({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?ry():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Qb({...this.detectOverflowOptions}),ey({...this.detectOverflowOptions,apply:({rects:e,availableWidth:n,availableHeight:r})=>{const{width:o,height:s}=e.reference;O(this.#c,n,!0),O(this.#u,r,!0),O(this.#f,o,!0),O(this.#m,s,!0)}}),this.arrowRef.current&&ny({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),cy({arrowWidth:m(this.#r),arrowHeight:m(this.#o)}),this.opts.hideWhenDetached.current&&ty({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return m(this.#g)}set middleware(e){O(this.#g,e)}floating;#d=z(()=>ly(this.floating.placement));get placedSide(){return m(this.#d)}set placedSide(e){O(this.#d,e)}#h=z(()=>uy(this.floating.placement));get placedAlign(){return m(this.#h)}set placedAlign(e){O(this.#h,e)}#p=z(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return m(this.#p)}set arrowX(e){O(this.#p,e)}#v=z(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return m(this.#v)}set arrowY(e){O(this.#v,e)}#b=z(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return m(this.#b)}set cannotCenterArrow(e){O(this.#b,e)}#y=V();get contentZIndex(){return m(this.#y)}set contentZIndex(e){O(this.#y,e,!0)}#w=z(()=>ay[this.placedSide]);get arrowBaseSide(){return m(this.#w)}set arrowBaseSide(e){O(this.#w,e)}#_=z(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${m(this.#c)}px`,"--bits-floating-available-height":`${m(this.#u)}px`,"--bits-floating-anchor-width":`${m(this.#f)}px`,"--bits-floating-anchor-height":`${m(this.#m)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...m(this.#e)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return m(this.#_)}set wrapperProps(e){O(this.#_,e)}#k=z(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Fo({...m(this.#e)}),...this.contentAttachment}));get props(){return m(this.#k)}set props(e){O(this.#k,e)}#x=z(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return m(this.#x)}set arrowStyle(e){O(this.#x,e)}constructor(e,n){this.opts=e,this.root=n,this.#t=e.updatePositionStrategy,e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),Ae(()=>e.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=sy({strategy:()=>this.opts.strategy.current,placement:()=>m(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>qb(...r,{animationFrame:this.#t?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Ne(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),Ae(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const o=vc(r),s=o.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const i=o.getComputedStyle(r).zIndex;i!==this.contentZIndex&&(this.contentZIndex=i)});return()=>{o.cancelAnimationFrame(s)}}),Ne(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Uc{static create(e){return new Uc(e,mo.get())}opts;content;constructor(e,n){this.opts=e,this.content=n}#e=z(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return m(this.#e)}set props(e){O(this.#e,e)}}class ur{static create(e,n=!1){return n?new ur(e,ps.get()):new ur(e,hs.get())}opts;root;constructor(e,n){this.opts=e,this.root=n,e.virtualEl&&e.virtualEl.current?n.triggerNode=ig(e.virtualEl.current):n.triggerNode=e.ref}}function cy(t){return{name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:o}=e,i=o.arrow?.centerOffset!==0,a=i?0:t.arrowWidth,c=i?0:t.arrowHeight,[l,u]=ms(n),h={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+c/2;let p="",g="";return l==="bottom"?(p=i?h:`${d}px`,g=`${-c}px`):l==="top"?(p=i?h:`${d}px`,g=`${r.floating.height+c}px`):l==="right"?(p=`${-c}px`,g=i?h:`${f}px`):l==="left"&&(p=`${r.floating.width+c}px`,g=i?h:`${f}px`),{data:{x:p,y:g}}}}}function ms(t){const[e,n="center"]=t.split("-");return[e,n]}function ly(t){return ms(t)[0]}function uy(t){return ms(t)[1]}function dy(t,e){U(e,!0);let n=v(e,"tooltip",3,!1);cr.create(n());var r=D(),o=R(r);q(o,()=>e.children??ie),P(t,r),G()}function fy(t,e){U(e,!0);let n=v(e,"tooltip",3,!1);ur.create({id:T(()=>e.id),virtualEl:T(()=>e.virtualEl),ref:e.ref},n());var r=D(),o=R(r);q(o,()=>e.children??ie),P(t,r),G()}function hy(t,e){U(e,!0);let n=v(e,"side",3,"bottom"),r=v(e,"sideOffset",3,0),o=v(e,"align",3,"center"),s=v(e,"alignOffset",3,0),i=v(e,"arrowPadding",3,0),a=v(e,"avoidCollisions",3,!0),c=v(e,"collisionBoundary",19,()=>[]),l=v(e,"collisionPadding",3,0),u=v(e,"hideWhenDetached",3,!1),h=v(e,"onPlaced",3,()=>{}),d=v(e,"sticky",3,"partial"),f=v(e,"updatePositionStrategy",3,"optimized"),p=v(e,"strategy",3,"fixed"),g=v(e,"dir",3,"ltr"),y=v(e,"style",19,()=>({})),k=v(e,"wrapperId",19,os),S=v(e,"customAnchor",3,null),A=v(e,"tooltip",3,!1);const C=lr.create({side:T(()=>n()),sideOffset:T(()=>r()),align:T(()=>o()),alignOffset:T(()=>s()),id:T(()=>e.id),arrowPadding:T(()=>i()),avoidCollisions:T(()=>a()),collisionBoundary:T(()=>c()),collisionPadding:T(()=>l()),hideWhenDetached:T(()=>u()),onPlaced:T(()=>h()),sticky:T(()=>d()),updatePositionStrategy:T(()=>f()),strategy:T(()=>p()),dir:T(()=>g()),style:T(()=>y()),enabled:T(()=>e.enabled),wrapperId:T(()=>k()),customAnchor:T(()=>S())},A()),E=z(()=>ye(C.wrapperProps,{style:{pointerEvents:"auto"}}));var w=D(),I=R(w);q(I,()=>e.content??ie,()=>({props:C.props,wrapperProps:m(E)})),P(t,w),G()}function py(t,e){U(e,!0),tu(()=>{e.onPlaced?.()});var n=D(),r=R(n);q(r,()=>e.content??ie,()=>({props:{},wrapperProps:{}})),P(t,n),G()}var my=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function gy(t,e){let n=v(e,"isStatic",3,!1),r=Q(e,my);var o=D(),s=R(o);{var i=c=>{py(c,{get content(){return e.content},get onPlaced(){return e.onPlaced}})},a=c=>{hy(c,se({get content(){return e.content},get onPlaced(){return e.onPlaced}},()=>r))};fe(s,c=>{n()?c(i):c(a,-1)})}P(t,o)}var vy=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]),by=ae("<!> <!>",1);function Gc(t,e){U(e,!0);let n=v(e,"interactOutsideBehavior",3,"close"),r=v(e,"trapFocus",3,!0),o=v(e,"isValidEvent",3,()=>!1),s=v(e,"customAnchor",3,null),i=v(e,"isStatic",3,!1),a=v(e,"tooltip",3,!1),c=v(e,"contentPointerEvents",3,"auto"),l=Q(e,vy);const u=z(()=>e.preventScroll??!0),h=z(()=>e.strategy??(m(u)?"fixed":"absolute"));gy(t,{get isStatic(){return i()},get id(){return e.id},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return m(h)},get dir(){return e.dir},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get enabled(){return e.enabled},get tooltip(){return a()},content:(f,p)=>{let g=()=>(p?.()).props,y=()=>(p?.()).wrapperProps;var k=by(),S=R(k);{var A=w=>{Xt(w,{get preventScroll(){return m(u)}})},C=w=>{Xt(w,{get preventScroll(){return m(u)}})};fe(S,w=>{e.forceMount&&e.enabled?w(A):e.forceMount||w(C,1)})}var E=Fe(S,2);ts(E,{get onOpenAutoFocus(){return e.onOpenAutoFocus},get onCloseAutoFocus(){return e.onCloseAutoFocus},get loop(){return e.loop},get enabled(){return e.enabled},get trapFocus(){return r()},get forceMount(){return e.forceMount},get ref(){return e.ref},focusScope:(I,b)=>{let N=()=>(b?.()).props;Xo(I,{get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get enabled(){return e.enabled},get ref(){return e.ref},children:(M,$)=>{qo(M,{get id(){return e.id},get onInteractOutside(){return e.onInteractOutside},get onFocusOutside(){return e.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return o()},get enabled(){return e.enabled},get ref(){return e.ref},children:(Y,re)=>{let K=()=>(re?.()).props;rs(Y,{get id(){return e.id},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get enabled(){return e.enabled},get ref(){return e.ref},children:(H,X)=>{var W=D(),J=R(W);{let _=z(()=>({props:ye(l,g(),K(),N(),{style:{pointerEvents:c()}}),wrapperProps:y()}));q(J,()=>e.popper??ie,()=>m(_))}P(H,W)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),P(f,k)},$$slots:{content:!0}}),G()}var yy=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function wy(t,e){let n=v(e,"interactOutsideBehavior",3,"close"),r=v(e,"trapFocus",3,!0),o=v(e,"isValidEvent",3,()=>!1),s=v(e,"customAnchor",3,null),i=v(e,"isStatic",3,!1),a=Q(e,yy);var c=D(),l=R(c);{var u=h=>{Gc(h,se({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return e.open},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return e.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return e.onFocusOutside},forceMount:!1,get ref(){return e.ref}},()=>a))};fe(l,h=>{e.shouldRender&&h(u)})}P(t,c)}var _y=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function ky(t,e){let n=v(e,"interactOutsideBehavior",3,"close"),r=v(e,"trapFocus",3,!0),o=v(e,"isValidEvent",3,()=>!1),s=v(e,"customAnchor",3,null),i=v(e,"isStatic",3,!1),a=Q(e,_y);Gc(t,se({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return e.enabled},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return e.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return e.onFocusOutside}},()=>a,{forceMount:!0}))}function $r(t,e){const[n,r]=t;let o=!1;const s=e.length;for(let i=0,a=s-1;i<s;a=i++){const[c,l]=e[i]??[0,0],[u,h]=e[a]??[0,0];l>=r!=h>=r&&n<=(u-c)*(r-l)/(h-l)+c&&(o=!o)}return o}function Hr(t,e){return t[0]>=e.left&&t[0]<=e.right&&t[1]>=e.top&&t[1]<=e.bottom}function Ui(t,e){const n=t.left+t.width/2,r=t.top+t.height/2,o=e.left+e.width/2,s=e.top+e.height/2,i=o-n,a=s-r;return Math.abs(i)>Math.abs(a)?i>0?"right":"left":a>0?"bottom":"top"}class xy{#e;#t;#n;#r=null;#o=null;#s=[];#a=null;#i=null;#l=null;#c(){this.#i!==null&&(cancelAnimationFrame(this.#i),this.#i=null)}#u(){this.#c(),this.#i=requestAnimationFrame(()=>{this.#i=null,!(!this.#r||!this.#o)&&(this.#d(),this.#e.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#m(){this.#n!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#r||!this.#o)&&(this.#d(),this.#e.onPointerExit())},this.#n))}constructor(e){this.#e=e,this.#t=e.buffer??1;const n=e.transitIntentTimeout;this.#n=typeof n=="number"&&n>0?n:null,Ae([e.triggerNode,e.contentNode,e.enabled],([r,o,s])=>{if(!r||!o||!s){this.#a=null,this.#d();return}this.#a&&this.#a!==r&&this.#d(),this.#a=r;const i=gc(r),a=d=>{this.#g([d.clientX,d.clientY],r,o)},c=d=>{const f=d.relatedTarget;if(Rt(f)&&o.contains(f))return;const p=this.#e.ignoredTargets?.()??[];Rt(f)&&p.some(g=>g===f||g.contains(f))||(this.#s=Rt(f)&&p.length>0?p.filter(g=>f.contains(g)):[],this.#r=[d.clientX,d.clientY],this.#o="content",this.#u())},l=()=>{this.#d()},u=()=>{this.#d()},h=d=>{const f=d.relatedTarget;Rt(f)&&r.contains(f)||(this.#r=[d.clientX,d.clientY],this.#o="trigger",this.#u())};return[Te(i,"pointermove",a),Te(r,"pointerleave",c),Te(r,"pointerenter",l),Te(o,"pointerenter",u),Te(o,"pointerleave",h)].reduce((d,f)=>()=>{d(),f()},()=>{})})}#g(e,n,r){if(!this.#r||!this.#o)return;this.#c(),this.#m();const o=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(this.#o==="content"&&Hr(e,s)){this.#d();return}if(this.#o==="trigger"&&Hr(e,o)){this.#d();return}if(this.#o==="content"&&this.#s.length>0)for(const u of this.#s){const h=u.getBoundingClientRect();if(Hr(e,h))return;const d=Ui(o,h),f=this.#h(o,h,d);if(f&&$r(e,f))return}const i=Ui(o,s),a=this.#h(o,s,i);if(a&&$r(e,a))return;const c=this.#o==="content"?s:o,l=this.#p(this.#r,c,i,this.#o);$r(e,l)||(this.#d(),this.#e.onPointerExit())}#d(){this.#r=null,this.#o=null,this.#s=[],this.#c(),this.#f()}#h(e,n,r){const o=this.#t;switch(r){case"top":return[[Math.min(e.left,n.left)-o,e.top],[Math.min(e.left,n.left)-o,n.bottom],[Math.max(e.right,n.right)+o,n.bottom],[Math.max(e.right,n.right)+o,e.top]];case"bottom":return[[Math.min(e.left,n.left)-o,e.bottom],[Math.min(e.left,n.left)-o,n.top],[Math.max(e.right,n.right)+o,n.top],[Math.max(e.right,n.right)+o,e.bottom]];case"left":return[[e.left,Math.min(e.top,n.top)-o],[n.right,Math.min(e.top,n.top)-o],[n.right,Math.max(e.bottom,n.bottom)+o],[e.left,Math.max(e.bottom,n.bottom)+o]];case"right":return[[e.right,Math.min(e.top,n.top)-o],[n.left,Math.min(e.top,n.top)-o],[n.left,Math.max(e.bottom,n.bottom)+o],[e.right,Math.max(e.bottom,n.bottom)+o]]}}#p(e,n,r,o){const s=this.#t*4,[i,a]=e;switch(o==="trigger"?this.#v(r):r){case"top":return[[i-s,a+s],[i+s,a+s],[n.right+s,n.bottom],[n.right+s,n.top],[n.left-s,n.top],[n.left-s,n.bottom]];case"bottom":return[[i-s,a-s],[i+s,a-s],[n.right+s,n.top],[n.right+s,n.bottom],[n.left-s,n.bottom],[n.left-s,n.top]];case"left":return[[i+s,a-s],[i+s,a+s],[n.right,n.bottom+s],[n.left,n.bottom+s],[n.left,n.top-s],[n.right,n.top-s]];case"right":return[[i-s,a-s],[i-s,a+s],[n.left,n.bottom+s],[n.right,n.bottom+s],[n.right,n.top-s],[n.left,n.top-s]]}}#v(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const go=yr({component:"popover",parts:["root","trigger","content","close","overlay"]}),gs=new St("Popover.Root");class vs{static create(e){return gs.set(new vs(e))}opts;#e=V(null);get contentNode(){return m(this.#e)}set contentNode(e){O(this.#e,e,!0)}contentPresence;#t=V(null);get triggerNode(){return m(this.#t)}set triggerNode(e){O(this.#t,e,!0)}#n=V(null);get overlayNode(){return m(this.#n)}set overlayNode(e){O(this.#n,e,!0)}overlayPresence;#r=V(!1);get openedViaHover(){return m(this.#r)}set openedViaHover(e){O(this.#r,e,!0)}#o=V(!1);get hasInteractedWithContent(){return m(this.#o)}set hasInteractedWithContent(e){O(this.#o,e,!0)}#s=V(!1);get hoverCooldown(){return m(this.#s)}set hoverCooldown(e){O(this.#s,e,!0)}#a=V(0);get closeDelay(){return m(this.#a)}set closeDelay(e){O(this.#a,e,!0)}#i=null;#l=null;constructor(e){this.opts=e,this.contentPresence=new Qn({ref:T(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qn({ref:T(()=>this.overlayNode),open:this.opts.open}),Ae(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(e){this.#l=e}#c(){this.#i!==null&&this.#l&&(this.#l.clearTimeout(this.#i),this.#i=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#i=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#i=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class bs{static create(e){return new bs(e,gs.get())}opts;root;attachment;domContext;#e=null;#t=null;#n=V(!1);constructor(e,n){this.opts=e,this.root=n,this.attachment=Ve(this.opts.ref,r=>this.root.triggerNode=r),this.domContext=new Lo(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Ae(()=>this.opts.closeDelay.current,r=>{this.root.closeDelay=r})}#r(){this.#e!==null&&(this.domContext.clearTimeout(this.#e),this.#e=null)}#o(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#s(){this.#r(),this.#o()}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||Xn(e)||(O(this.#n,!0),this.#o(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():this.#e=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#e=null},n)}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(Xn(e)||(O(this.#n,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(this.#s(),m(this.#n)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}m(this.#n)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===wr||e.key===_r)&&(e.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#i=z(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":lo(this.root.opts.open.current),"data-state":Zo(this.root.opts.open.current),"aria-controls":this.#a(),[go.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return m(this.#i)}set props(e){O(this.#i,e)}}class ys{static create(e){return new ys(e,gs.get())}opts;root;attachment;constructor(e,n){this.opts=e,this.root=n,this.attachment=Ve(this.opts.ref,r=>this.root.contentNode=r),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new xy({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const n=e.target;Rt(n)&&Iv(n)&&this.root.markInteraction()}onpointerenter(e){Xn(e)||this.root.cancelDelayedClose()}onpointerleave(e){Xn(e)}onInteractOutside=e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!Rt(e.target))return;const n=e.target.closest(go.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(Rt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const r=document.querySelector(this.opts.customAnchor.current);if(r&&r.contains(e.target))return}}this.root.handleClose()}};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#e=z(()=>({open:this.root.opts.open.current}));get snippetProps(){return m(this.#e)}set snippetProps(e){O(this.#e,e)}#t=z(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Zo(this.root.opts.open.current),...Vo(this.root.contentPresence.transitionStatus),[go.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return m(this.#t)}set props(e){O(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var Sy=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),Gi=ae("<div><div><!></div></div>");function Cy(t,e){const n=$e();U(e,!0);let r=v(e,"ref",15,null),o=v(e,"id",19,()=>He(n)),s=v(e,"forceMount",3,!1),i=v(e,"onOpenAutoFocus",3,ue),a=v(e,"onCloseAutoFocus",3,ue),c=v(e,"onEscapeKeydown",3,ue),l=v(e,"onInteractOutside",3,ue),u=v(e,"trapFocus",3,!0),h=v(e,"preventScroll",3,!1),d=v(e,"customAnchor",3,null),f=Q(e,Sy);const p=ys.create({id:T(()=>o()),ref:T(()=>r(),w=>r(w)),onInteractOutside:T(()=>l()),onEscapeKeydown:T(()=>c()),customAnchor:T(()=>d())}),g=z(()=>ye(f,p.props)),y=z(()=>u()&&p.shouldTrapFocus);function k(w){p.shouldTrapFocus||w.preventDefault(),i()(w)}var S=D(),A=R(S);{var C=w=>{ky(w,se(()=>m(g),()=>p.popperProps,{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},get id(){return o()},get trapFocus(){return m(y)},get preventScroll(){return h()},loop:!0,forceMount:!0,get customAnchor(){return d()},onOpenAutoFocus:k,get onCloseAutoFocus(){return a()},get shouldRender(){return p.shouldRender},popper:(b,N)=>{let M=()=>(N?.()).props,$=()=>(N?.()).wrapperProps;const ee=z(()=>ye(M(),{style:Wi("popover")},{style:e.style}));var Y=D(),re=R(Y);{var K=X=>{var W=D(),J=R(W);{let _=z(()=>({props:m(ee),wrapperProps:$(),...p.snippetProps}));q(J,()=>e.child,()=>m(_))}P(X,W)},H=X=>{var W=Gi();pe(W,()=>({...$()}));var J=ve(W);pe(J,()=>({...m(ee)}));var _=ve(J);q(_,()=>e.children??ie),be(J),be(W),P(X,W)};fe(re,X=>{e.child?X(K):X(H,-1)})}P(b,Y)},$$slots:{popper:!0}}))},E=w=>{wy(w,se(()=>m(g),()=>p.popperProps,{get ref(){return p.opts.ref},get open(){return p.root.opts.open.current},get id(){return o()},get trapFocus(){return m(y)},get preventScroll(){return h()},loop:!0,forceMount:!1,get customAnchor(){return d()},onOpenAutoFocus:k,get onCloseAutoFocus(){return a()},get shouldRender(){return p.shouldRender},popper:(b,N)=>{let M=()=>(N?.()).props,$=()=>(N?.()).wrapperProps;const ee=z(()=>ye(M(),{style:Wi("popover")},{style:e.style}));var Y=D(),re=R(Y);{var K=X=>{var W=D(),J=R(W);{let _=z(()=>({props:m(ee),wrapperProps:$(),...p.snippetProps}));q(J,()=>e.child,()=>m(_))}P(X,W)},H=X=>{var W=Gi();pe(W,()=>({...$()}));var J=ve(W);pe(J,()=>({...m(ee)}));var _=ve(J);q(_,()=>e.children??ie),be(J),be(W),P(X,W)};fe(re,X=>{e.child?X(K):X(H,-1)})}P(b,Y)},$$slots:{popper:!0}}))};fe(A,w=>{s()?w(C):s()||w(E,1)})}P(t,S),G()}var Oy=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),Py=ae("<button><!></button>");function Ay(t,e){const n=$e();U(e,!0);let r=v(e,"id",19,()=>He(n)),o=v(e,"ref",15,null),s=v(e,"type",3,"button"),i=v(e,"disabled",3,!1),a=v(e,"openOnHover",3,!1),c=v(e,"openDelay",3,700),l=v(e,"closeDelay",3,300),u=Q(e,Oy);const h=bs.create({id:T(()=>r()),ref:T(()=>o(),f=>o(f)),disabled:T(()=>!!i()),openOnHover:T(()=>a()),openDelay:T(()=>c()),closeDelay:T(()=>l())}),d=z(()=>ye(u,h.props,{type:s()}));fy(t,{get id(){return r()},get ref(){return h.opts.ref},children:(f,p)=>{var g=D(),y=R(g);{var k=A=>{var C=D(),E=R(C);q(E,()=>e.child,()=>({props:m(d)})),P(A,C)},S=A=>{var C=Py();pe(C,()=>({...m(d)}));var E=ve(C);q(E,()=>e.children??ie),be(C),P(A,C)};fe(y,A=>{e.child?A(k):A(S,-1)})}P(f,g)},$$slots:{default:!0}}),G()}function Ey(t,e){U(e,!0);let n=v(e,"open",15,!1),r=v(e,"onOpenChange",3,ue),o=v(e,"onOpenChangeComplete",3,ue);kr.create({variant:T(()=>"dialog"),open:T(()=>n(),a=>{n(a),r()(a)}),onOpenChangeComplete:T(()=>o())});var s=D(),i=R(s);q(i,()=>e.children??ie),P(t,s),G()}var zy=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),Ty=ae("<button><!></button>");function Iy(t,e){const n=$e();U(e,!0);let r=v(e,"id",19,()=>He(n)),o=v(e,"ref",15,null),s=v(e,"disabled",3,!1),i=Q(e,zy);const a=Bo.create({variant:T(()=>"close"),id:T(()=>r()),ref:T(()=>o(),f=>o(f)),disabled:T(()=>!!s())}),c=z(()=>ye(i,a.props));var l=D(),u=R(l);{var h=f=>{var p=D(),g=R(p);q(g,()=>e.child,()=>({props:m(c)})),P(f,p)},d=f=>{var p=Ty();pe(p,()=>({...m(c)}));var g=ve(p);q(g,()=>e.children??ie),be(p),P(f,p)};fe(u,f=>{e.child?f(h):f(d,-1)})}P(t,l),G()}var Ny=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),Ry=ae("<!> <!>",1),My=ae("<!> <div><!></div>",1);function Dy(t,e){const n=$e();U(e,!0);let r=v(e,"id",19,()=>He(n)),o=v(e,"ref",15,null),s=v(e,"forceMount",3,!1),i=v(e,"onCloseAutoFocus",3,ue),a=v(e,"onOpenAutoFocus",3,ue),c=v(e,"onEscapeKeydown",3,ue),l=v(e,"onInteractOutside",3,ue),u=v(e,"trapFocus",3,!0),h=v(e,"preventScroll",3,!0),d=v(e,"restoreScrollDelay",3,null),f=Q(e,Ny);const p=xr.create({id:T(()=>r()),ref:T(()=>o(),A=>o(A))}),g=z(()=>ye(f,p.props));var y=D(),k=R(y);{var S=A=>{ts(A,{get ref(){return p.opts.ref},loop:!0,get trapFocus(){return u()},get enabled(){return p.root.opts.open.current},get onOpenAutoFocus(){return a()},get onCloseAutoFocus(){return i()},focusScope:(E,w)=>{let I=()=>(w?.()).props;Xo(E,se(()=>m(g),{get enabled(){return p.root.opts.open.current},get ref(){return p.opts.ref},onEscapeKeydown:b=>{c()(b),!b.defaultPrevented&&p.root.handleClose()},children:(b,N)=>{qo(b,se(()=>m(g),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},onInteractOutside:M=>{l()(M),!M.defaultPrevented&&p.root.handleClose()},children:(M,$)=>{rs(M,se(()=>m(g),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},children:(ee,Y)=>{var re=D(),K=R(re);{var H=W=>{var J=Ry(),_=R(J);{var Se=Ee=>{Xt(Ee,{get preventScroll(){return h()},get restoreScrollDelay(){return d()}})};fe(_,Ee=>{p.root.opts.open.current&&Ee(Se)})}var Ce=Fe(_,2);{let Ee=z(()=>({props:ye(m(g),I()),...p.snippetProps}));q(Ce,()=>e.child,()=>m(Ee))}P(W,J)},X=W=>{var J=My(),_=R(J);Xt(_,{get preventScroll(){return h()}});var Se=Fe(_,2);pe(Se,Ee=>({...Ee}),[()=>ye(m(g),I())]);var Ce=ve(Se);q(Ce,()=>e.children??ie),be(Se),P(W,J)};fe(K,W=>{e.child?W(H):W(X,-1)})}P(ee,re)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};fe(k,A=>{(p.shouldRender||s())&&A(S)})}P(t,y),G()}function Fy(t,e){U(e,!0);let n=v(e,"open",15,!1),r=v(e,"onOpenChange",3,ue),o=v(e,"onOpenChangeComplete",3,ue);vs.create({open:T(()=>n(),s=>{n(s),r()(s)}),onOpenChangeComplete:T(()=>o())}),dy(t,{children:(s,i)=>{var a=D(),c=R(a);q(c,()=>e.children??ie),P(s,a)},$$slots:{default:!0}}),G()}var jy=new Set(["$$slots","$$events","$$legacy","open"]);function Zx(t,e){U(e,!0);let n=v(e,"open",15,!1),r=Q(e,jy);var o=D(),s=R(o);he(s,()=>ev,(i,a)=>{a(i,se(()=>r,{get open(){return n()},set open(c){n(c)}}))}),P(t,o),G()}var Ly=new Set(["$$slots","$$events","$$legacy"]);function Zy(t,e){let n=Q(e,Ly);var r=D(),o=R(r);he(o,()=>Ko,(s,i)=>{i(s,se(()=>n))}),P(t,r)}const Vy=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},By=(t,e)=>({classGroupId:t,validator:e}),$c=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),dr="-",$i=[],Wy="arbitrary..",Uy=t=>{const e=$y(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Gy(i);const a=i.split(dr),c=a[0]===""&&a.length>1?1:0;return Hc(a,c,e)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=r[i],l=n[i];return c?l?Vy(l,c):c:l||$i}return n[i]||$i}}},Hc=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const o=t[e],s=n.nextPart.get(o);if(s){const l=Hc(t,e+1,s);if(l)return l}const i=n.validators;if(i===null)return;const a=e===0?t.join(dr):t.slice(e).join(dr),c=i.length;for(let l=0;l<c;l++){const u=i[l];if(u.validator(a))return u.classGroupId}},Gy=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?Wy+r:void 0})(),$y=t=>{const{theme:e,classGroups:n}=t;return Hy(n,e)},Hy=(t,e)=>{const n=$c();for(const r in t){const o=t[r];ws(o,n,r,e)}return n},ws=(t,e,n,r)=>{const o=t.length;for(let s=0;s<o;s++){const i=t[s];Ky(i,e,n,r)}},Ky=(t,e,n,r)=>{if(typeof t=="string"){Jy(t,e,n);return}if(typeof t=="function"){qy(t,e,n,r);return}Yy(t,e,n,r)},Jy=(t,e,n)=>{const r=t===""?e:Kc(e,t);r.classGroupId=n},qy=(t,e,n,r)=>{if(Xy(t)){ws(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(By(n,t))},Yy=(t,e,n,r)=>{const o=Object.entries(t),s=o.length;for(let i=0;i<s;i++){const[a,c]=o[i];ws(c,Kc(e,a),n,r)}},Kc=(t,e)=>{let n=t;const r=e.split(dr),o=r.length;for(let s=0;s<o;s++){const i=r[s];let a=n.nextPart.get(i);a||(a=$c(),n.nextPart.set(i,a)),n=a}return n},Xy=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Qy=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const o=(s,i)=>{n[s]=i,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=r[s])!==void 0)return o(s,i),i},set(s,i){s in n?n[s]=i:o(s,i)}}},vo="!",Hi=":",ew=[],Ki=(t,e,n,r,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),tw=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=o=>{const s=[];let i=0,a=0,c=0,l;const u=o.length;for(let g=0;g<u;g++){const y=o[g];if(i===0&&a===0){if(y===Hi){s.push(o.slice(c,g)),c=g+1;continue}if(y==="/"){l=g;continue}}y==="["?i++:y==="]"?i--:y==="("?a++:y===")"&&a--}const h=s.length===0?o:o.slice(c);let d=h,f=!1;h.endsWith(vo)?(d=h.slice(0,-1),f=!0):h.startsWith(vo)&&(d=h.slice(1),f=!0);const p=l&&l>c?l-c:void 0;return Ki(s,f,d,p)};if(e){const o=e+Hi,s=r;r=i=>i.startsWith(o)?s(i.slice(o.length)):Ki(ew,!1,i,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},nw=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const i=n[s],a=i[0]==="[",c=e.has(i);a||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},rw=t=>({cache:Qy(t.cacheSize),parseClassName:tw(t),sortModifiers:nw(t),postfixLookupClassGroupIds:ow(t),...Uy(t)}),ow=t=>{const e=Object.create(null),n=t.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)e[n[r]]=!0;return e},sw=/\s+/,iw=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:i}=e,a=[],c=t.trim().split(sw);let l="";for(let u=c.length-1;u>=0;u-=1){const h=c[u],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:y}=n(h);if(d){l=h+(l.length>0?" "+l:l);continue}let k=!!y,S;if(k){const I=g.substring(0,y);S=r(I);const b=S&&i[S]?r(g):void 0;b&&b!==S&&(S=b,k=!1)}else S=r(g);if(!S){if(!k){l=h+(l.length>0?" "+l:l);continue}if(S=r(g),!S){l=h+(l.length>0?" "+l:l);continue}k=!1}const A=f.length===0?"":f.length===1?f[0]:s(f).join(":"),C=p?A+vo:A,E=C+S;if(a.indexOf(E)>-1)continue;a.push(E);const w=o(S,k);for(let I=0;I<w.length;++I){const b=w[I];a.push(C+b)}l=h+(l.length>0?" "+l:l)}return l},aw=(...t)=>{let e=0,n,r,o="";for(;e<t.length;)(n=t[e++])&&(r=Jc(n))&&(o&&(o+=" "),o+=r);return o},Jc=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Jc(t[r]))&&(n&&(n+=" "),n+=e);return n},cw=(t,...e)=>{let n,r,o,s;const i=c=>{const l=e.reduce((u,h)=>h(u),t());return n=rw(l),r=n.cache.get,o=n.cache.set,s=a,a(c)},a=c=>{const l=r(c);if(l)return l;const u=iw(c,n);return o(c,u),u};return s=i,(...c)=>s(aw(...c))},lw=[],Oe=t=>{const e=n=>n[t]||lw;return e.isThemeGetter=!0,e},qc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,uw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,dw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,hw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ft=t=>uw.test(t),te=t=>!!t&&!Number.isNaN(Number(t)),Ke=t=>!!t&&Number.isInteger(Number(t)),Kr=t=>t.endsWith("%")&&te(t.slice(0,-1)),st=t=>dw.test(t),Xc=()=>!0,gw=t=>fw.test(t)&&!hw.test(t),_s=()=>!1,vw=t=>pw.test(t),bw=t=>mw.test(t),yw=t=>!F(t)&&!L(t),ww=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),_w=t=>Ot(t,tl,_s),F=t=>qc.test(t),Tt=t=>Ot(t,nl,gw),Ji=t=>Ot(t,Ew,te),kw=t=>Ot(t,ol,Xc),xw=t=>Ot(t,rl,_s),qi=t=>Ot(t,Qc,_s),Sw=t=>Ot(t,el,bw),Mn=t=>Ot(t,sl,vw),L=t=>Yc.test(t),fn=t=>Bt(t,nl),Cw=t=>Bt(t,rl),Yi=t=>Bt(t,Qc),Ow=t=>Bt(t,tl),Pw=t=>Bt(t,el),Dn=t=>Bt(t,sl,!0),Aw=t=>Bt(t,ol,!0),Ot=(t,e,n)=>{const r=qc.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Bt=(t,e,n=!1)=>{const r=Yc.exec(t);return r?r[1]?e(r[1]):n:!1},Qc=t=>t==="position"||t==="percentage",el=t=>t==="image"||t==="url",tl=t=>t==="length"||t==="size"||t==="bg-size",nl=t=>t==="length",Ew=t=>t==="number",rl=t=>t==="family-name",ol=t=>t==="number"||t==="weight",sl=t=>t==="shadow",zw=()=>{const t=Oe("color"),e=Oe("font"),n=Oe("text"),r=Oe("font-weight"),o=Oe("tracking"),s=Oe("leading"),i=Oe("breakpoint"),a=Oe("container"),c=Oe("spacing"),l=Oe("radius"),u=Oe("shadow"),h=Oe("inset-shadow"),d=Oe("text-shadow"),f=Oe("drop-shadow"),p=Oe("blur"),g=Oe("perspective"),y=Oe("aspect"),k=Oe("ease"),S=Oe("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...C(),L,F],w=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],b=()=>[L,F,c],N=()=>[ft,"full","auto",...b()],M=()=>[Ke,"none","subgrid",L,F],$=()=>["auto",{span:["full",Ke,L,F]},Ke,L,F],ee=()=>[Ke,"auto",L,F],Y=()=>["auto","min","max","fr",L,F],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...b()],X=()=>[ft,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],W=()=>[ft,"screen","full","dvw","lvw","svw","min","max","fit",...b()],J=()=>[ft,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],_=()=>[t,L,F],Se=()=>[...C(),Yi,qi,{position:[L,F]}],Ce=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ee=()=>["auto","cover","contain",Ow,_w,{size:[L,F]}],Re=()=>[Kr,fn,Tt],ce=()=>["","none","full",l,L,F],le=()=>["",te,fn,Tt],tt=()=>["solid","dashed","dotted","double"],rn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>[te,Kr,Yi,qi],on=()=>["","none",p,L,F],nt=()=>["none",te,L,F],rt=()=>["none",te,L,F],At=()=>[te,L,F],ot=()=>[ft,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[st],breakpoint:[st],color:[Xc],container:[st],"drop-shadow":[st],ease:["in","out","in-out"],font:[yw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[st],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[st],shadow:[st],spacing:["px",te],text:[st],"text-shadow":[st],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ft,F,L,y]}],container:["container"],"container-type":[{"@container":["","normal","size",L,F]}],"container-named":[ww],columns:[{columns:[te,F,L,a]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Ke,"auto",L,F]}],basis:[{basis:[ft,"full","auto",a,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,ft,"auto","initial","none",F]}],grow:[{grow:["",te,L,F]}],shrink:[{shrink:["",te,L,F]}],order:[{order:[Ke,"first","last","none",L,F]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...J()]}],"min-block-size":[{"min-block":["auto",...J()]}],"max-block-size":[{"max-block":["none",...J()]}],w:[{w:[a,"screen",...X()]}],"min-w":[{"min-w":[a,"screen","none",...X()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,fn,Tt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Aw,kw]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kr,F]}],"font-family":[{font:[Cw,xw,e]}],"font-features":[{"font-features":[F]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,L,F]}],"line-clamp":[{"line-clamp":[te,"none",L,Ji]}],leading:[{leading:[s,...b()]}],"list-image":[{"list-image":["none",L,F]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...tt(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",L,Tt]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[te,"auto",L,F]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"tab-size":[{tab:[Ke,L,F]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L,F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L,F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Se()}],"bg-repeat":[{bg:Ce()}],"bg-size":[{bg:Ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ke,L,F],radial:["",L,F],conic:[Ke,L,F]},Pw,Sw]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:Re()}],"gradient-via-pos":[{via:Re()}],"gradient-to-pos":[{to:Re()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...tt(),"hidden","none"]}],"divide-style":[{divide:[...tt(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...tt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,L,F]}],"outline-w":[{outline:["",te,fn,Tt]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",u,Dn,Mn]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",h,Dn,Mn]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[te,Tt]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",d,Dn,Mn]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[te,L,F]}],"mix-blend":[{"mix-blend":[...rn(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":rn()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[L,F]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Se()}],"mask-repeat":[{mask:Ce()}],"mask-size":[{mask:Ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,F]}],filter:[{filter:["","none",L,F]}],blur:[{blur:on()}],brightness:[{brightness:[te,L,F]}],contrast:[{contrast:[te,L,F]}],"drop-shadow":[{"drop-shadow":["","none",f,Dn,Mn]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",te,L,F]}],"hue-rotate":[{"hue-rotate":[te,L,F]}],invert:[{invert:["",te,L,F]}],saturate:[{saturate:[te,L,F]}],sepia:[{sepia:["",te,L,F]}],"backdrop-filter":[{"backdrop-filter":["","none",L,F]}],"backdrop-blur":[{"backdrop-blur":on()}],"backdrop-brightness":[{"backdrop-brightness":[te,L,F]}],"backdrop-contrast":[{"backdrop-contrast":[te,L,F]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,L,F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,L,F]}],"backdrop-invert":[{"backdrop-invert":["",te,L,F]}],"backdrop-opacity":[{"backdrop-opacity":[te,L,F]}],"backdrop-saturate":[{"backdrop-saturate":[te,L,F]}],"backdrop-sepia":[{"backdrop-sepia":["",te,L,F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",L,F]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",L,F]}],ease:[{ease:["linear","initial",k,L,F]}],delay:[{delay:[te,L,F]}],animate:[{animate:["none",S,L,F]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,L,F]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:nt()}],"rotate-x":[{"rotate-x":nt()}],"rotate-y":[{"rotate-y":nt()}],"rotate-z":[{"rotate-z":nt()}],scale:[{scale:rt()}],"scale-x":[{"scale-x":rt()}],"scale-y":[{"scale-y":rt()}],"scale-z":[{"scale-z":rt()}],"scale-3d":["scale-3d"],skew:[{skew:At()}],"skew-x":[{"skew-x":At()}],"skew-y":[{"skew-y":At()}],transform:[{transform:[L,F,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ot()}],"translate-x":[{"translate-x":ot()}],"translate-y":[{"translate-y":ot()}],"translate-z":[{"translate-z":ot()}],"translate-none":["translate-none"],zoom:[{zoom:[Ke,L,F]}],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["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",L,F]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":_()}],"scrollbar-track-color":[{"scrollbar-track":_()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L,F]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[te,fn,Tt,Ji]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Tw=cw(zw);function xe(...t){return Tw(Bn(t))}var Iw=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Vx(t,e){U(e,!0);let n=v(e,"ref",15,null),r=Q(e,Iw);var o=D(),s=R(o);{let i=z(()=>xe("text-lg font-semibold",e.class));he(s,()=>yc,(a,c)=>{c(a,se({"data-slot":"alert-dialog-title",get class(){return m(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}P(t,o),G()}var Nw=Array.isArray,Er=t=>{if(!t&&t!==0&&t!==0n)return"";if(typeof t=="string")return t;if(typeof t=="number")return t!==t?"":""+t;if(typeof t=="bigint")return""+t;let e="";if(Nw(t)){const n=t.length;for(let r=0;r<n;r++){const o=t[r];if(!o&&o!==0&&o!==0n)continue;const s=typeof o=="string"?o:Er(o);s&&(e&&(e+=" "),e+=s)}return e}if(typeof t=="object")for(const n in t)t[n]&&(e&&(e+=" "),e+=n);return e},Rw=/\s+/g,bo=Array.isArray,Mw=t=>typeof t!="string"||!t?t:t.replace(Rw," ").trim(),Dw=t=>{const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0),r=t.charCodeAt(e-1);if(n===32||r===32||n>=9&&n<=13||n===160||r>=9&&r<=13||r===160)return!0;for(let o=0;o<e;o++){const s=t.charCodeAt(o);if(s>=9&&s<=13||s===160||s===32&&o+1<e&&t.charCodeAt(o+1)===32)return!0}return!1},Gn=(...t)=>{const e=Er(t);if(e)return Dw(e)?Mw(e):e},yo=t=>t===!1?"false":t===!0?"true":t===0?"0":t,Be=t=>{if(!t||typeof t!="object")return!0;for(const e in t)return!1;return!0},il=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;const n=t,r=e,o=Object.keys(n),s=Object.keys(r);if(o.length!==s.length)return!1;for(let i=0;i<o.length;i++){const a=o[i];if(!s.includes(a)||n[a]!==r[a])return!1}return!0},Fw=(t,e)=>{const n=t;for(const r in e)if(Object.hasOwn(e,r)){const o=e[r];r in n?n[r]=Gn(n[r],o):n[r]=o}return t},al=(t,e)=>{for(let n=0;n<t.length;n++){const r=t[n];bo(r)?al(r,e):r&&e.push(r)}},wo=(...t)=>{const e=[];al(t,e);const n=[];for(let r=0;r<e.length;r++)e[r]&&n.push(e[r]);return n},ks=(t,e)=>{const n=t,r=e,o={};for(const s in n){const i=n[s];if(s in r){const a=r[s];bo(i)||bo(a)?o[s]=wo(a,i):typeof i=="object"&&typeof a=="object"&&i&&a?o[s]=ks(i,a):o[s]=a+" "+i}else o[s]=i}for(const s in r)s in n||(o[s]=r[s]);return o},jw={twMerge:!0,twMergeConfig:{}},cl=256,Lw=128,Zt=Symbol("tv-cache-miss"),Zw=t=>t?.class!=null&&t.class!==""||t?.className!=null&&t.className!=="",Xi=t=>{if(t===void 0)return"";if(t===null)return"null";if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number")return t===0?"0":String(t);if(typeof t=="bigint")return String(t);const e=yo(t),n=typeof e;if(n==="string"||n==="number"||n==="boolean"||n==="bigint")return String(e);if(n==="object")try{return JSON.stringify(e)}catch{return null}return null},Ut=(t,e)=>{if(e===void 0)return t;if(e===null)return t+"null";const n=typeof e;if(n==="string"||n==="number"||n==="boolean"||n==="bigint")return t+String(e);if(Array.isArray(e))return t+e.join("\0");try{return t+JSON.stringify(e)}catch{return t+"?"}},ll=(t,e,n,r)=>{let o="";const s=Object.create(null);for(let a=0;a<t.length;a++){const c=t[a];s[c]=1;let l=e[c];n&&n[c]!==void 0&&(l=n[c]);const u=Xi(l);if(u===null)return null;o+=c+":"+u+";"}const i=[];for(const a in e)a==="class"||a==="className"||s[a]||(s[a]=1,i.push(a));if(n)for(const a in n)a==="class"||a==="className"||s[a]||n[a]===void 0||(s[a]=1,i.push(a));i.length>1&&i.sort();for(let a=0;a<i.length;a++){const c=i[a];let l=e[c];n&&n[c]!==void 0&&(l=n[c]);const u=Xi(l);if(u===null)return null;o+=c+":"+u+";"}return o},ul=(t,e)=>{let n="";for(let r=0;r<t.length;r++){const{conditionKeys:o,source:s}=t[r];for(let i=0;i<o.length;i++){const a=o[i];n+=a+"=",n=Ut(n,s[a]),n+=","}n+="c=",n=Ut(n,s.class),n+="|cn=",n=Ut(n,s.className),n+=";"}for(let r=0;r<e.length;r++){const{conditionKeys:o,source:s}=e[r];for(let i=0;i<o.length;i++){const a=o[i];n+=a+"=",n=Ut(n,s[a]),n+=","}Array.isArray(s.slots)&&(n+="slots="+s.slots.join(",")+","),n+="c=",n=Ut(n,s.class),n+="|cn=",n=Ut(n,s.className),n+=";"}return n},dl=(t=cl)=>{let e=new Map,n=null;return{get(r){if(e.has(r))return e.get(r);if(n?.has(r)){const o=n.get(r);return e.set(r,o),o}return Zt},set(r,o){e.size>=t&&(n=e,e=new Map),e.set(r,o)}}},Vw=(t=cl)=>{const e=dl(t);return{get(n){return e.get(n)},set(n,r){e.set(n,r)}}},Bw=(t=Lw)=>{let e=new Map,n=null,r=0;return{get(o,s){const i=e.get(o);if(i){const a=i.get(s);if(a!==void 0||i.has(s))return a}if(n){const a=n.get(o);if(a){const c=a.get(s);if(c!==void 0||a.has(s)){let l=e.get(o);return l||(l=new Map,e.set(o,l)),l.has(s)||r++,l.set(s,c),c}}}return Zt},set(o,s,i){r>=t&&(n=e,e=new Map,r=0);let a=e.get(o);a||(a=new Map,e.set(o,a)),a.has(s)||r++,a.set(s,i)}}},xs=(t,e)=>{let n=null;return(r,o)=>{if(!Zw(o))return r;const s=o.class,i=o.className;if(s!=null&&s!==""&&typeof s!="string"||i!=null&&i!==""&&typeof i!="string")return t(e,r,s,i);n??=Bw();const a=r??"",c=(typeof s=="string"?s:"")+"\0"+(typeof i=="string"?i:""),l=n.get(a,c);if(l!==Zt)return l;const u=t(e,r,s,i);return n.set(a,c,u),u}};function Ww(){let t=null,e={},n=!1;return{get cachedTwMerge(){return t},set cachedTwMerge(r){t=r},get cachedTwMergeConfig(){return e},set cachedTwMergeConfig(r){e=r},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(r){n=r},reset(){t=null,e={},n=!1}}}var De=Ww(),Uw=t=>{!Be(t.twMergeConfig)&&!il(t.twMergeConfig,De.cachedTwMergeConfig)&&(De.didTwMergeConfigChange=!0,De.cachedTwMergeConfig=t.twMergeConfig)},Gw=(t,e)=>{const n=[];for(let r=0;r<e.length;r++){const o=e[r],s=t[o];n.push({key:o,values:s,isEmpty:Be(s)})}return n},$w=t=>{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n],o=[];for(const s in r)s!=="class"&&s!=="className"&&o.push(s);e.push({conditionKeys:o,source:r})}return e},Hw=t=>{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n],o=[];for(const s in r)s!=="slots"&&s!=="class"&&s!=="className"&&o.push(s);e.push({conditionKeys:o,source:r})}return e},Kw=t=>{const e={};for(let n=0;n<t.length;n++){const r=t[n],o=r.source.slots;if(Array.isArray(o))for(let s=0;s<o.length;s++){const i=o[s];e[i]||(e[i]=[]),e[i].push(r)}}return e},Jw=(t,e)=>{const{extend:n=null,slots:r={},variants:o={},compoundVariants:s=[],compoundSlots:i=[],defaultVariants:a={}}=t,c={...jw,...e},l=t.slots!==void 0,u=n?.base?Gn(n.base,t?.base):t?.base,h=n?.variants&&!Be(n.variants)?ks(o,n.variants):o,d=n?.defaultVariants&&!Be(n.defaultVariants)?{...n.defaultVariants,...a}:a;Uw(c);const f=!n?.slots||Be(n.slots),p=l?f&&n?.base?Gn(t?.base,n.base):typeof t?.base=="string"||t?.base==null?t.base:Gn(t.base):void 0,g=l?{base:p,...r}:{},y=f?g:Fw({...n?.slots},Be(g)?{base:t?.base}:g),k=!n?.compoundVariants||Be(n.compoundVariants)?s:wo(n?.compoundVariants,s),S=!n?.compoundSlots||Be(n.compoundSlots)?i:wo(n?.compoundSlots,i),A=Object.keys(h),C=k&&!Array.isArray(k)?new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof k}`):S&&!Array.isArray(S)?new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof S}`):null,E=l||!f?"slots":A.length===0?"plain":"variants";return{config:c,extend:n,base:u,variants:h,defaultVariants:d,slots:y,compoundVariants:k,compoundSlots:S,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:C,mode:E,slotKeys:null,variantKeys:A}},fl=t=>(t.compiledVariants!==null||(t.compiledVariants=Gw(t.variants,t.variantKeys),t.compiledCompoundVariants=$w(t.compoundVariants),t.compiledCompoundSlots=Hw(t.compoundSlots),t.compiledCompoundSlotsBySlot=Kw(t.compiledCompoundSlots),t.slotKeys=t.slots&&typeof t.slots=="object"?Object.keys(t.slots):[]),t),_o=[],hl=[],qw=[],Yw=[],Xw=[],pl=(t,e,n)=>{const r={};for(const o in t)r[o]=t[o];if(e)for(const o in e)e[o]!==void 0&&(r[o]=e[o]);if(n)for(const o in n)n[o]!==void 0&&(r[o]=n[o]);return r},Fn=t=>t==null||t===!1,Qw=(t,e)=>{if(!Array.isArray(t))return t===e||Fn(t)&&Fn(e);for(let n=0;n<t.length;n++){const r=t[n];if(r===e||Fn(r)&&Fn(e))return!0}return!1},ml=(t,e,n,r)=>{if(t.isEmpty)return null;const o=r?.[t.key]??n?.[t.key];if(o===null)return null;const s=yo(o);if(typeof s=="object")return null;const i=e?.[t.key],a=s??yo(i);return t.values[a||"false"]},Ss=(t,e)=>{const{conditionKeys:n,source:r}=t;for(let o=0;o<n.length;o++){const s=n[o];if(!Qw(r[s],e[s]))return!1}return!0},Qi=(t,e,n)=>{typeof n=="string"?e==="base"&&t.push(n):n&&typeof n=="object"&&n[e]&&t.push(n[e])},e_=(t,e,n)=>{const r=hl;r.length=0;for(let o=0;o<t.length;o++){const s=ml(t[o],e,n);s&&r.push(s)}return r},t_=(t,e,n,r,o)=>{const s=hl;s.length=0;for(let i=0;i<e.length;i++){const a=ml(e[i],n,r,o),c=t==="base"&&typeof a=="string"?a:a&&a[t];c&&s.push(c)}return s},n_=(t,e)=>{const n=qw;n.length=0;for(let r=0;r<t.length;r++){const o=t[r];Ss(o,e)&&(o.source.class&&n.push(o.source.class),o.source.className&&n.push(o.source.className))}return n},r_=(t,e,n)=>{const r=Yw;r.length=0;for(let o=0;o<e.length;o++){const s=e[o];Ss(s,n)&&(Qi(r,t,s.source.class),Qi(r,t,s.source.className))}return r},o_=(t,e)=>{const n=Xw;n.length=0;for(let r=0;r<t.length;r++){const o=t[r];Ss(o,e)&&(o.source.class&&n.push(o.source.class),o.source.className&&n.push(o.source.className))}return n},s_=(t,e)=>{const{base:n,config:r}=t;let o=Zt;const s=xs(e,r);return(i=>(o===Zt&&(o=e(r,n)),s(o,i)))},i_=(t,e)=>{const{base:n,config:r,defaultVariants:o,deferredError:s,variantKeys:i}=t;let a=t.compiledCompoundVariants,c=t.compiledVariants,l=_o,u=null;const h=xs(e,r);let d=1;const f=p=>{const g=a.length>0?n_(a,pl(o,p)):void 0;return e(r,n,e_(c,o,p),g)};return(p=>{if(s)throw s;(c===null||a===null)&&(fl(t),c=t.compiledVariants,a=t.compiledCompoundVariants,l=t.compiledCompoundSlots??_o);let g;if(d>0)d--,g=f(p);else{u??=Vw();const y=ll(i,o,p);if(y!==null){const k=a.length>0||l.length>0?ul(a,l):"",S=y+"#"+k,A=u.get(S);A!==Zt?g=A:(g=f(p),u.set(S,g))}else g=f(p)}return h(g,p)})},a_=(t,e)=>{const{config:n,defaultVariants:r,deferredError:o,slots:s,variantKeys:i}=t;let a=null,c=null,l=null,u=null,h=!1,d=null,f=null,p=1;const g=()=>{if(l!==null)return;(t.compiledVariants===null||t.compiledCompoundVariants===null||t.compiledCompoundSlots===null||t.compiledCompoundSlotsBySlot===null||t.slotKeys===null)&&fl(t);const k=t.compiledVariants;a=t.compiledCompoundVariants,c=t.compiledCompoundSlots;const S=t.compiledCompoundSlotsBySlot;l=t.slotKeys,h=a.length>0||c.length>0,d=xs(e,n);const A=new Array(l.length);for(let C=0;C<l.length;C++){const E=l[C],w=S[E]??_o;A[C]=(I,b)=>{const N=h?pl(r,I,b):void 0,M=N?r_(E,a,N):void 0,$=N?o_(w,N):void 0;return e(n,s[E],t_(E,k,r,I,b),M,$)}}u=A},y=k=>{const S=l,A=u,C=d,E={};for(let w=0;w<S.length;w++){const I=A[w],b=I(k);E[S[w]]=N=>{if(N==null)return b;let M=!1;for(const $ in N)if(!($==="class"||$==="className")&&N[$]!==void 0){M=!0;break}return C(M?I(k,N):b,N)}}return E};return(k=>{if(o)throw o;if(g(),p>0)return p--,y(k);const S=ll(i,r,k);if(S===null)return y(k);const A=h?ul(a,c):"",C=S+"#"+A;f??=dl();const E=f.get(C);if(E!==Zt)return E;const w=y(k);return f.set(C,w),w})},c_=(t,e)=>{if(t.mode==="plain")return s_(t,e);let n;return(r=>(n??=t.mode==="slots"?a_(t,e):i_(t,e),n(r)))},l_=(t,e)=>{t.variantKeys=e.variantKeys,t.extend=e.extend,t.base=e.base,t.slots=e.slots,t.variants=e.variants,t.defaultVariants=e.defaultVariants,t.compoundSlots=e.compoundSlots,t.compoundVariants=e.compoundVariants},u_=t=>{const e=(r,o)=>{const s=Jw(r,o),i=c_(s,t);return l_(i,s),i};return{tv:e,createTV:r=>(o,s)=>e(o,s?ks(r,s):r)}},d_=(t,e)=>{const n=t.length,r=e.length,o=new Array(n+r);for(let s=0;s<n;s++)o[s]=t[s];for(let s=0;s<r;s++)o[n+s]=e[s];return o},f_=(t,e)=>({classGroupId:t,validator:e}),gl=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),fr="-",ea=[],h_="arbitrary..",p_=t=>{const e=g_(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:i=>{if(i[0]==="["&&i[i.length-1]==="]")return m_(i);const a=i.split(fr),c=a[0]===""&&a.length>1?1:0;return vl(a,c,e)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=r[i],l=n[i];return c?l?d_(l,c):c:l||ea}return n[i]||ea}}},vl=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const o=t[e],s=n.nextPart.get(o);if(s){const l=vl(t,e+1,s);if(l)return l}const i=n.validators;if(i===null)return;const a=e===0?t.join(fr):t.slice(e).join(fr),c=i.length;for(let l=0;l<c;l++){const u=i[l];if(u.validator(a))return u.classGroupId}},m_=t=>{const e=t.slice(1,-1),n=e.indexOf(":");if(n===-1)return;const r=e.slice(0,n);return r?h_+r:void 0},g_=t=>{const{theme:e,classGroups:n}=t;return v_(n,e)},v_=(t,e)=>{const n=gl();for(const r in t){const o=t[r];Cs(o,n,r,e)}return n},Cs=(t,e,n,r)=>{const o=t.length;for(let s=0;s<o;s++){const i=t[s];b_(i,e,n,r)}},b_=(t,e,n,r)=>{if(typeof t=="string"){y_(t,e,n);return}if(typeof t=="function"){w_(t,e,n,r);return}__(t,e,n,r)},y_=(t,e,n)=>{const r=t===""?e:bl(e,t);r.classGroupId=n},w_=(t,e,n,r)=>{if(k_(t)){Cs(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(f_(n,t))},__=(t,e,n,r)=>{const o=Object.entries(t),s=o.length;for(let i=0;i<s;i++){const[a,c]=o[i];Cs(c,bl(e,a),n,r)}},bl=(t,e)=>{let n=t;const r=e.split(fr),o=r.length;for(let s=0;s<o;s++){const i=r[s];let a=n.nextPart.get(i);a||(a=gl(),n.nextPart.set(i,a)),n=a}return n},k_=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,x_="!",S_=58,C_=47,O_=91,P_=93,A_=40,E_=41,ta=33,z_=(t,e,n,r)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:void 0}),na=t=>{const e=[];let n=0,r=0,o=0,s;const i=t.length;for(let d=0;d<i;d++){const f=t.charCodeAt(d);if(n===0&&r===0){if(f===S_){e.push(t.slice(o,d)),o=d+1;continue}if(f===C_){s=d;continue}}f===O_?n++:f===P_?n--:f===A_?r++:f===E_&&r--}const a=e.length===0?t:t.slice(o);let c=a,l=!1;const u=a.length-1;a.charCodeAt(u)===ta?(c=a.slice(0,-1),l=!0):a.charCodeAt(0)===ta&&(c=a.slice(1),l=!0);const h=s&&s>o?s-o:void 0;return z_(e,l,c,h)},T_=t=>{const e=new Set(t.orderSensitiveModifiers);return n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const i=n[s],a=i[0]==="[",c=e.has(i);if(a||c){if(o.length>0){o.sort();for(let l=0;l<o.length;l++)r.push(o[l]);o=[]}r.push(i)}else o.push(i)}if(o.length>0){o.sort();for(let s=0;s<o.length;s++)r.push(o[s])}return r}},Jr={isExternal:!0,classId:-1,conflictIds:[]},I_=4096,N_=16384,R_=t=>{const e=T_(t),n=M_(t),{getClassGroupId:r,getConflictingClassGroupIds:o}=p_(t);let s=Object.create(null),i=Object.create(null),a=0,c=new Int32Array(256),l=0,u=new Uint8Array(64),h=!1;const d=A=>{const C=[],E=A.length;let w=-1;h=!1;for(let I=0;I<E;I++){const b=A.charCodeAt(I);b===32?w!==-1&&(C.push(A.slice(w,I)),w=-1):b>=9&&b<=13?(h=!0,w!==-1&&(C.push(A.slice(w,I)),w=-1)):w===-1&&(w=I)}return w!==-1&&C.push(A.slice(w)),C},f=new Map;let p=0;const g=A=>{let C=f.get(A);if(C===void 0&&(C=p++,f.set(A,C),C>=c.length)){const E=new Int32Array(c.length*2);E.set(c),c=E}return C},y=A=>{const{isExternal:C,modifiers:E,hasImportantModifier:w,baseClassName:I,maybePostfixModifierPosition:b}=na(A);if(C)return Jr;let N=!!b,M;if(N){const K=I.substring(0,b);M=r(K);const H=M&&n[M]?r(I):void 0;H&&H!==M&&(M=H,N=!1)}else M=r(I);if(!M){if(!N||(M=r(I),!M))return Jr;N=!1}const $=E.length===0?"":E.length===1?E[0]:e(E).join(":"),ee=w?$+x_:$,Y=o(M,N),re=[];for(let K=0;K<Y.length;K++)re.push(g(ee+Y[K]));return{isExternal:!1,classId:g(ee+M),conflictIds:re}},k=A=>{let C=s[A];return C!==void 0||(C=i[A],C===void 0&&(C=y(A)),s[A]=C,++a>I_&&(a=0,i=s,s=Object.create(null))),C};return{parseClassName:na,sortModifiers:e,postfixLookupClassGroupIds:n,getClassGroupId:r,getConflictingClassGroupIds:o,getClassDescriptor:k,mergeClassList:A=>{const C=d(A),E=C.length;if(E===1)return C[0];p>N_&&(f.clear(),p=0,s=Object.create(null),i=Object.create(null),a=0),l=l+1|0,l===0&&(l=1);const w=l;if(E>u.length){let M=u.length;for(;M<E;)M*=2;u=new Uint8Array(M)}let I=!1,b=0;for(let M=E-1;M>=0;M-=1){const $=C[M];b+=$.length;const ee=k($);if(ee.isExternal){u[M]=1;continue}const Y=ee.classId;if(c[Y]===w){u[M]=0,I=!0;continue}c[Y]=w;const re=ee.conflictIds;for(let K=0;K<re.length;K++)c[re[K]]=w;u[M]=1}if(!I&&!h&&A.length===b+E-1)return A;let N="";for(let M=0;M<E;M++)u[M]===1&&(N&&(N+=" "),N+=C[M]);return N}}},M_=t=>{const e=Object.create(null),n=t.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)e[n[r]]=!0;return e},D_=500,ra=t=>{let e,n,r=Object.create(null),o=Object.create(null),s=0;const i=l=>(e=R_(t()),n=e.mergeClassList,c.mergeString=a,a(l)),a=l=>{let u=r[l];return u!==void 0||(u=o[l],u===void 0&&(u=n(l)),r[l]=u,++s>D_&&(s=0,o=r,r=Object.create(null))),u},c=(...l)=>c.mergeString(Er(l));return c.mergeString=i,c},F_=[],Pe=t=>{const e=n=>n[t]||F_;return e.isThemeGetter=!0,e},yl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,j_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,L_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Z_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,V_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,B_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,W_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_l=Number,U_=Number.isNaN,G_=Number.isInteger,ht=t=>j_.test(t),ne=t=>!!t&&!U_(_l(t)),Je=t=>!!t&&G_(_l(t)),qr=t=>t.endsWith("%")&&ne(t.slice(0,-1)),it=t=>L_.test(t),kl=()=>!0,$_=t=>Z_.test(t)&&!V_.test(t),Os=()=>!1,H_=t=>B_.test(t),K_=t=>W_.test(t),J_=t=>!j(t)&&!Z(t),q_=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),Y_=t=>Pt(t,Cl,Os),j=t=>yl.test(t),It=t=>Pt(t,Ol,$_),oa=t=>Pt(t,sk,ne),X_=t=>Pt(t,Al,kl),Q_=t=>Pt(t,Pl,Os),sa=t=>Pt(t,xl,Os),ek=t=>Pt(t,Sl,K_),jn=t=>Pt(t,El,H_),Z=t=>wl.test(t),hn=t=>Wt(t,Ol),tk=t=>Wt(t,Pl),ia=t=>Wt(t,xl),nk=t=>Wt(t,Cl),rk=t=>Wt(t,Sl),Ln=t=>Wt(t,El,!0),ok=t=>Wt(t,Al,!0),Pt=(t,e,n)=>{const r=yl.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Wt=(t,e,n=!1)=>{const r=wl.exec(t);return r?r[1]?e(r[1]):n:!1},xl=t=>t==="position"||t==="percentage",Sl=t=>t==="image"||t==="url",Cl=t=>t==="length"||t==="size"||t==="bg-size",Ol=t=>t==="length",sk=t=>t==="number",Pl=t=>t==="family-name",Al=t=>t==="number"||t==="weight",El=t=>t==="shadow",Yr=()=>{const t=Pe("color"),e=Pe("font"),n=Pe("text"),r=Pe("font-weight"),o=Pe("tracking"),s=Pe("leading"),i=Pe("breakpoint"),a=Pe("container"),c=Pe("spacing"),l=Pe("radius"),u=Pe("shadow"),h=Pe("inset-shadow"),d=Pe("text-shadow"),f=Pe("drop-shadow"),p=Pe("blur"),g=Pe("perspective"),y=Pe("aspect"),k=Pe("ease"),S=Pe("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...C(),Z,j],w=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],b=()=>[Z,j,c],N=()=>[ht,"full","auto",...b()],M=()=>[Je,"none","subgrid",Z,j],$=()=>["auto",{span:["full",Je,Z,j]},Je,Z,j],ee=()=>[Je,"auto",Z,j],Y=()=>["auto","min","max","fr",Z,j],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...b()],X=()=>[ht,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],W=()=>[ht,"screen","full","dvw","lvw","svw","min","max","fit",...b()],J=()=>[ht,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],_=()=>[t,Z,j],Se=()=>[...C(),ia,sa,{position:[Z,j]}],Ce=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ee=()=>["auto","cover","contain",nk,Y_,{size:[Z,j]}],Re=()=>[qr,hn,It],ce=()=>["","none","full",l,Z,j],le=()=>["",ne,hn,It],tt=()=>["solid","dashed","dotted","double"],rn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>[ne,qr,ia,sa],on=()=>["","none",p,Z,j],nt=()=>["none",ne,Z,j],rt=()=>["none",ne,Z,j],At=()=>[ne,Z,j],ot=()=>[ht,"full",...b()];return{theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[it],breakpoint:[it],color:[kl],container:[it],"drop-shadow":[it],ease:["in","out","in-out"],font:[J_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[it],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[it],shadow:[it],spacing:["px",ne],text:[it],"text-shadow":[it],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ht,j,Z,y]}],container:["container"],"container-type":[{"@container":["","normal","size",Z,j]}],"container-named":[q_],columns:[{columns:[ne,j,Z,a]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Je,"auto",Z,j]}],basis:[{basis:[ht,"full","auto",a,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ne,ht,"auto","initial","none",j]}],grow:[{grow:["",ne,Z,j]}],shrink:[{shrink:["",ne,Z,j]}],order:[{order:[Je,"first","last","none",Z,j]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...J()]}],"min-block-size":[{"min-block":["auto",...J()]}],"max-block-size":[{"max-block":["none",...J()]}],w:[{w:[a,"screen",...X()]}],"min-w":[{"min-w":[a,"screen","none",...X()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,hn,It]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ok,X_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qr,j]}],"font-family":[{font:[tk,Q_,e]}],"font-features":[{"font-features":[j]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Z,j]}],"line-clamp":[{"line-clamp":[ne,"none",Z,oa]}],leading:[{leading:[s,...b()]}],"list-image":[{"list-image":["none",Z,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...tt(),"wavy"]}],"text-decoration-thickness":[{decoration:[ne,"from-font","auto",Z,It]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[ne,"auto",Z,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"tab-size":[{tab:[Je,Z,j]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Se()}],"bg-repeat":[{bg:Ce()}],"bg-size":[{bg:Ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Je,Z,j],radial:["",Z,j],conic:[Je,Z,j]},rk,ek]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:Re()}],"gradient-via-pos":[{via:Re()}],"gradient-to-pos":[{to:Re()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...tt(),"hidden","none"]}],"divide-style":[{divide:[...tt(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...tt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ne,Z,j]}],"outline-w":[{outline:["",ne,hn,It]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",u,Ln,jn]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",h,Ln,jn]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[ne,It]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",d,Ln,jn]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[ne,Z,j]}],"mix-blend":[{"mix-blend":[...rn(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":rn()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[Z,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Se()}],"mask-repeat":[{mask:Ce()}],"mask-size":[{mask:Ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,j]}],filter:[{filter:["","none",Z,j]}],blur:[{blur:on()}],brightness:[{brightness:[ne,Z,j]}],contrast:[{contrast:[ne,Z,j]}],"drop-shadow":[{"drop-shadow":["","none",f,Ln,jn]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",ne,Z,j]}],"hue-rotate":[{"hue-rotate":[ne,Z,j]}],invert:[{invert:["",ne,Z,j]}],saturate:[{saturate:[ne,Z,j]}],sepia:[{sepia:["",ne,Z,j]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,j]}],"backdrop-blur":[{"backdrop-blur":on()}],"backdrop-brightness":[{"backdrop-brightness":[ne,Z,j]}],"backdrop-contrast":[{"backdrop-contrast":[ne,Z,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ne,Z,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ne,Z,j]}],"backdrop-invert":[{"backdrop-invert":["",ne,Z,j]}],"backdrop-opacity":[{"backdrop-opacity":[ne,Z,j]}],"backdrop-saturate":[{"backdrop-saturate":[ne,Z,j]}],"backdrop-sepia":[{"backdrop-sepia":["",ne,Z,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ne,"initial",Z,j]}],ease:[{ease:["linear","initial",k,Z,j]}],delay:[{delay:[ne,Z,j]}],animate:[{animate:["none",S,Z,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Z,j]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:nt()}],"rotate-x":[{"rotate-x":nt()}],"rotate-y":[{"rotate-y":nt()}],"rotate-z":[{"rotate-z":nt()}],scale:[{scale:rt()}],"scale-x":[{"scale-x":rt()}],"scale-y":[{"scale-y":rt()}],"scale-z":[{"scale-z":rt()}],"scale-3d":["scale-3d"],skew:[{skew:At()}],"skew-x":[{"skew-x":At()}],"skew-y":[{"skew-y":At()}],transform:[{transform:[Z,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ot()}],"translate-x":[{"translate-x":ot()}],"translate-y":[{"translate-y":ot()}],"translate-z":[{"translate-z":ot()}],"translate-none":["translate-none"],zoom:[{zoom:[Je,Z,j]}],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["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",Z,j]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":_()}],"scrollbar-track-color":[{"scrollbar-track":_()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z,j]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[ne,hn,It,oa]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ik=(t,{extend:e={},override:n={}})=>(Zn(t.theme,n.theme),Zn(t.classGroups,n.classGroups),Zn(t.conflictingClassGroups,n.conflictingClassGroups),Zn(t.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),ko(t,"postfixLookupClassGroups",n.postfixLookupClassGroups),ko(t,"orderSensitiveModifiers",n.orderSensitiveModifiers),Vn(t.theme,e.theme),Vn(t.classGroups,e.classGroups),Vn(t.conflictingClassGroups,e.conflictingClassGroups),Vn(t.conflictingClassGroupModifiers,e.conflictingClassGroupModifiers),xo(t,e,"postfixLookupClassGroups"),xo(t,e,"orderSensitiveModifiers"),t),ko=(t,e,n)=>{n!==void 0&&(t[e]=n)},Zn=(t,e)=>{if(e)for(const n in e)ko(t,n,e[n])},Vn=(t,e)=>{if(e)for(const n in e)xo(t,e,n)},xo=(t,e,n)=>{const r=e[n];r!==void 0&&(t[n]=t[n]?t[n].concat(r):r)},zl=t=>ra(t?typeof t=="function"?()=>t(Yr()):()=>ik(Yr(),t):Yr),ak=t=>{if(Be(t))return;const e=t,n={...e.extend??{}};for(const o of["theme","classGroups","conflictingClassGroups","conflictingClassGroupModifiers","postfixLookupClassGroups","orderSensitiveModifiers","cacheSize","prefix","separator","experimentalParseClassName"])e[o]!==void 0&&n[o]===void 0&&(n[o]=e[o]);const r={};if(Object.keys(n).length>0&&(r.extend=n),e.override!=null&&!Be(e.override)&&(r.override=e.override),!(!r.extend&&!r.override))return r},ck=t=>{const e=ak(t),n=zl(e);return r=>n.mergeString(r)},$n,lk=()=>($n||($n=zl()),$n),uk=()=>((!De.cachedTwMerge||De.didTwMergeConfigChange)&&(De.didTwMergeConfigChange=!1,De.cachedTwMerge=ck(De.cachedTwMergeConfig)),De.cachedTwMerge),dk=t=>{const e=t?.twMergeConfig;!e||Be(e)||il(e,De.cachedTwMergeConfig)||(De.cachedTwMergeConfig=e,De.didTwMergeConfigChange=!0)},fk=t=>Er(t),hk=De.reset.bind(De);De.reset=()=>{$n=void 0,hk()};var pk=(t,e)=>{const n=fk(t);return!n||!(e?.twMerge??!0)?n||void 0:n.indexOf(" ")===-1?n:(dk(e),(!!(e?.twMergeConfig&&!Be(e.twMergeConfig))?uk():lk().mergeString)(n)||void 0)},mk=(t,...e)=>pk(e,t),gk=u_(mk),vk=gk.tv;const hr=vk({base:"cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",destructive:"bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",outline:"bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",secondary:"bg-[#222] text-stone-100 hover:bg-[#333] shadow-xs",ghost:"text-stone-400 hover:bg-[#222] hover:text-stone-100","ghost-destructive":"bg-red-900 text-red-300 hover:bg-red-800 hover:text-white",warning:"bg-amber-700 text-amber-100 hover:bg-amber-600 shadow-xs",success:"bg-emerald-600 text-white hover:bg-emerald-500 active:bg-emerald-700 shadow-xs",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10",toolbar:"flex-col gap-0.5 px-2 py-1.5 min-w-11 h-auto [&_svg]:size-[18px] text-[9px] uppercase tracking-wide"}},defaultVariants:{variant:"default",size:"default"}});var bk=new Set(["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]),yk=ae("<a><!></a>"),wk=ae("<button><!></button>");function aa(t,e){U(e,!0);let n=v(e,"variant",3,"default"),r=v(e,"size",3,"default"),o=v(e,"ref",15,null),s=v(e,"href",3,void 0),i=v(e,"type",3,"button"),a=Q(e,bk);var c=D(),l=R(c);{var u=d=>{var f=yk();pe(f,g=>({"data-slot":"button",class:g,href:e.disabled?void 0:s(),"aria-disabled":e.disabled,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0,...a}),[()=>xe(hr({variant:n(),size:r()}),e.class)]);var p=ve(f);q(p,()=>e.children??ie),be(f),Dt(f,g=>o(g),()=>o()),P(d,f)},h=d=>{var f=wk();pe(f,g=>({"data-slot":"button",class:g,type:i(),disabled:e.disabled,...a}),[()=>xe(hr({variant:n(),size:r()}),e.class)]);var p=ve(f);q(p,()=>e.children??ie),be(f),Dt(f,g=>o(g),()=>o()),P(d,f)};fe(l,d=>{s()?d(u):d(h,-1)})}P(t,c),G()}var _k=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Bx(t,e){U(e,!0);let n=v(e,"ref",15,null),r=Q(e,_k);var o=D(),s=R(o);{let i=z(()=>xe(hr(),e.class));he(s,()=>sv,(a,c)=>{c(a,se({"data-slot":"alert-dialog-action",get class(){return m(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}P(t,o),G()}var kk=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Wx(t,e){U(e,!0);let n=v(e,"ref",15,null),r=Q(e,kk);var o=D(),s=R(o);{let i=z(()=>xe(hr({variant:"outline"}),e.class));he(s,()=>cv,(a,c)=>{c(a,se({"data-slot":"alert-dialog-cancel",get class(){return m(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}P(t,o),G()}var xk=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Sk=ae("<div><!></div>");function Ux(t,e){U(e,!0);let n=v(e,"ref",15,null),r=Q(e,xk);var o=Sk();pe(o,i=>({"data-slot":"alert-dialog-footer",class:i,...r}),[()=>xe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e.class)]);var s=ve(o);q(s,()=>e.children??ie),be(o),Dt(o,i=>n(i),()=>n()),P(t,o),G()}var Ck=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Ok=ae("<div><!></div>");function Gx(t,e){U(e,!0);let n=v(e,"ref",15,null),r=Q(e,Ck);var o=Ok();pe(o,i=>({"data-slot":"alert-dialog-header",class:i,...r}),[()=>xe("flex flex-col gap-2 text-center sm:text-start",e.class)]);var s=ve(o);q(s,()=>e.children??ie),be(o),Dt(o,i=>n(i),()=>n()),P(t,o),G()}var Pk=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Ak(t,e){U(e,!0);let n=v(e,"ref",15,null),r=Q(e,Pk);var o=D(),s=R(o);{let i=z(()=>xe("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-[70] bg-black/50",e.class));he(s,()=>zc,(a,c)=>{c(a,se({"data-slot":"alert-dialog-overlay",get class(){return m(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}P(t,o),G()}var Ek=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps"]),zk=ae("<!> <!>",1);function $x(t,e){U(e,!0);let n=v(e,"ref",15,null),r=Q(e,Ek);Zy(t,se(()=>e.portalProps,{children:(o,s)=>{var i=zk(),a=R(i);Ak(a,{});var c=Fe(a,2);{let l=z(()=>xe("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-[70] grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e.class));he(c,()=>Jv,(u,h)=>{h(u,se({"data-slot":"alert-dialog-content",get class(){return m(l)}},()=>r,{get ref(){return n()},set ref(d){n(d)}}))})}P(o,i)},$$slots:{default:!0}})),G()}var Tk=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Hx(t,e){U(e,!0);let n=v(e,"ref",15,null),r=Q(e,Tk);var o=D(),s=R(o);{let i=z(()=>xe("text-muted-foreground text-sm",e.class));he(s,()=>Tc,(a,c)=>{c(a,se({"data-slot":"alert-dialog-description",get class(){return m(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}P(t,o),G()}var Ik=new Set(["$$slots","$$events","$$legacy","open"]);function Nk(t,e){U(e,!0);let n=v(e,"open",15,!1),r=Q(e,Ik);var o=D(),s=R(o);he(s,()=>Ey,(i,a)=>{a(i,se(()=>r,{get open(){return n()},set open(c){n(c)}}))}),P(t,o),G()}var Rk=new Set(["$$slots","$$events","$$legacy"]);function Mk(t,e){let n=Q(e,Rk);var r=D(),o=R(r);he(o,()=>Ko,(s,i)=>{i(s,se(()=>n))}),P(t,r)}var Dk=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Fk(t,e){U(e,!0);let n=v(e,"ref",15,null),r=Q(e,Dk);var o=D(),s=R(o);{let i=z(()=>xe("text-lg leading-none font-semibold",e.class));he(s,()=>yc,(a,c)=>{c(a,se({"data-slot":"dialog-title",get class(){return m(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}P(t,o),G()}var jk=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Lk=ae("<div><!></div>");function Zk(t,e){U(e,!0);let n=v(e,"ref",15,null),r=Q(e,jk);var o=Lk();pe(o,i=>({"data-slot":"dialog-footer",class:i,...r}),[()=>xe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e.class)]);var s=ve(o);q(s,()=>e.children??ie),be(o),Dt(o,i=>n(i),()=>n()),P(t,o),G()}var Vk=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Bk=ae("<div><!></div>");function Wk(t,e){U(e,!0);let n=v(e,"ref",15,null),r=Q(e,Vk);var o=Bk();pe(o,i=>({"data-slot":"dialog-header",class:i,...r}),[()=>xe("flex flex-col gap-2 text-center sm:text-start",e.class)]);var s=ve(o);q(s,()=>e.children??ie),be(o),Dt(o,i=>n(i),()=>n()),P(t,o),G()}var Uk=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Gk(t,e){U(e,!0);let n=v(e,"ref",15,null),r=Q(e,Uk);var o=D(),s=R(o);{let i=z(()=>xe("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-[70] bg-black/50",e.class));he(s,()=>zc,(a,c)=>{c(a,se({"data-slot":"dialog-overlay",get class(){return m(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}P(t,o),G()}const $k={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var Hk=new Set(["$$slots","$$events","$$legacy","name","color","size","strokeWidth","absoluteStrokeWidth","iconNode","children"]),Kk=cu("<svg><!><!></svg>");function Ps(t,e){U(e,!0);const n=v(e,"color",3,"currentColor"),r=v(e,"size",3,24),o=v(e,"strokeWidth",3,2),s=v(e,"absoluteStrokeWidth",3,!1),i=v(e,"iconNode",19,()=>[]),a=Q(e,Hk);var c=Kk();pe(c,h=>({...$k,...a,width:r(),height:r(),stroke:n(),"stroke-width":h,class:["lucide-icon lucide",e.name&&`lucide-${e.name}`,e.class]}),[()=>s()?Number(o())*24/Number(r()):o()]);var l=ve(c);lu(l,17,i,uu,(h,d)=>{var f=z(()=>nu(m(d),2));let p=()=>m(f)[0],g=()=>m(f)[1];var y=D(),k=R(y);gu(k,p,!0,(S,A)=>{pe(S,()=>({...g()}))}),P(h,y)});var u=Fe(l);q(u,()=>e.children??ie),be(c),P(t,c),G()}var Jk=new Set(["$$slots","$$events","$$legacy"]);function qk(t,e){U(e,!0);let n=Q(e,Jk);const r=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];Ps(t,se({name:"x"},()=>n,{get iconNode(){return r},children:(o,s)=>{var i=D(),a=R(i);q(a,()=>e.children??ie),P(o,i)},$$slots:{default:!0}})),G()}var Yk=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","children","showCloseButton"]),Xk=ae('<!> <span class="sr-only">Close</span>',1),ca=ae("<!> <!>",1);function Qk(t,e){U(e,!0);let n=v(e,"ref",15,null),r=v(e,"showCloseButton",3,!0),o=Q(e,Yk);Mk(t,se(()=>e.portalProps,{children:(s,i)=>{var a=ca(),c=R(a);he(c,()=>Gk,(u,h)=>{h(u,{})});var l=Fe(c,2);{let u=z(()=>xe("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-[70] grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e.class));he(l,()=>Dy,(h,d)=>{d(h,se({"data-slot":"dialog-content",get class(){return m(u)}},()=>o,{get ref(){return n()},set ref(f){n(f)},children:(f,p)=>{var g=ca(),y=R(g);q(y,()=>e.children??ie);var k=Fe(y,2);{var S=A=>{var C=D(),E=R(C);he(E,()=>Iy,(w,I)=>{I(w,{class:"ring-offset-background focus:ring-ring absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:(b,N)=>{var M=Xk(),$=R(M);qk($,{}),Gt(2),P(b,M)},$$slots:{default:!0}})}),P(A,C)};fe(k,A=>{r()&&A(S)})}P(f,g)},$$slots:{default:!0}}))})}P(s,a)},$$slots:{default:!0}})),G()}var ex=new Set(["$$slots","$$events","$$legacy","ref","class"]);function tx(t,e){U(e,!0);let n=v(e,"ref",15,null),r=Q(e,ex);var o=D(),s=R(o);{let i=z(()=>xe("text-muted-foreground text-sm",e.class));he(s,()=>Tc,(a,c)=>{c(a,se({"data-slot":"dialog-description",get class(){return m(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}P(t,o),G()}var nx=new Set(["$$slots","$$events","$$legacy","open"]);function Kx(t,e){U(e,!0);let n=v(e,"open",15,!1),r=Q(e,nx);var o=D(),s=R(o);he(s,()=>Fy,(i,a)=>{a(i,se(()=>r,{get open(){return n()},set open(c){n(c)}}))}),P(t,o),G()}var rx=new Set(["$$slots","$$events","$$legacy"]);function ox(t,e){let n=Q(e,rx);var r=D(),o=R(r);he(o,()=>Ko,(s,i)=>{i(s,se(()=>n))}),P(t,r)}var sx=new Set(["$$slots","$$events","$$legacy","ref","class","sideOffset","align","portalProps"]);function Jx(t,e){U(e,!0);let n=v(e,"ref",15,null),r=v(e,"sideOffset",3,4),o=v(e,"align",3,"center"),s=Q(e,sx);ox(t,se(()=>e.portalProps,{children:(i,a)=>{var c=D(),l=R(c);{let u=z(()=>xe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--bits-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e.class));he(l,()=>Cy,(h,d)=>{d(h,se({"data-slot":"popover-content",get sideOffset(){return r()},get align(){return o()},get class(){return m(u)}},()=>s,{get ref(){return n()},set ref(f){n(f)}}))})}P(i,c)},$$slots:{default:!0}})),G()}var ix=new Set(["$$slots","$$events","$$legacy","ref","class"]);function qx(t,e){U(e,!0);let n=v(e,"ref",15,null),r=Q(e,ix);var o=D(),s=R(o);{let i=z(()=>xe("",e.class));he(s,()=>Ay,(a,c)=>{c(a,se({"data-slot":"popover-trigger",get class(){return m(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}P(t,o),G()}function Yx(t,e){let n=e,r=null,o=!1;function s(){r&&(clearTimeout(r),r=null)}function i(){n.enabled&&!n.enabled()||(o=!1,s(),r=setTimeout(()=>{r=null,o=!0,n.onTrigger()},n.ms??500))}function a(){const f=o;s(),f&&n.onRelease?.()}function c(f){f.button===0&&i()}function l(){i()}function u(f){a(),o&&(f.preventDefault(),o=!1)}function h(f){o&&(f.preventDefault(),f.stopPropagation(),o=!1)}function d(){a(),o=!1}return t.addEventListener("mousedown",c),t.addEventListener("touchstart",l,{passive:!0}),t.addEventListener("touchmove",a),t.addEventListener("touchend",u),t.addEventListener("touchcancel",d),t.addEventListener("mouseup",a),t.addEventListener("mouseleave",a),t.addEventListener("click",h,{capture:!0}),{destroy(){s(),t.removeEventListener("mousedown",c),t.removeEventListener("touchstart",l),t.removeEventListener("touchmove",a),t.removeEventListener("touchend",u),t.removeEventListener("touchcancel",d),t.removeEventListener("mouseup",a),t.removeEventListener("mouseleave",a),t.removeEventListener("click",h,{capture:!0})},update(f){n=f}}}var ax=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),cx=ae("<input/>");function lx(t,e){U(e,!0);let n=v(e,"ref",15,null),r=v(e,"value",15),o=v(e,"data-slot",3,"input"),s=Q(e,ax);var i=cx();pe(i,a=>({"data-slot":o(),class:a,...s}),[()=>xe("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex h-10 w-full min-w-0 rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:ring-[3px]",e.class)],void 0,void 0,void 0,!0),Dt(i,a=>n(a),()=>n()),ga(i,r),P(t,i),G()}var ux=ae(`Also sent to the agent as <code>/rename</code>, once its pane is back at a prompt. Leave
|
|
57
|
-
blank to fall back to the tmux target.`,1),la=ae("<!> <!>",1),dx=ae("<!> <!> <!>",1);function Xx(t,e){U(e,!0);const n=z(()=>e.sessionId?$m.sessionById.get(e.sessionId)??null:null);let r=V(""),o=V(null);Ne(()=>{e.sessionId&&O(r,Mt(()=>m(n)?.display_name??""),!0)});const s=16,i=.75;let a=V(void 0);Ne(()=>{const d=window.visualViewport;if(!e.sessionId||!d)return;const f=()=>{O(a,d.height<window.innerHeight*i?`top: ${d.offsetTop+s}px; translate: -50% 0;`:void 0,!0)};return f(),d.addEventListener("resize",f),d.addEventListener("scroll",f),()=>{d.removeEventListener("resize",f),d.removeEventListener("scroll",f),O(a,void 0)}});async function c(){const d=m(n),f=m(r).trim();if(e.onClose(),!(!d||f===(d.display_name??"")))try{await fetch(`/api/sessions/${encodeURIComponent(d.id)}/rename`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:f||null})})}catch{}}function l(d){d.key==="Enter"&&(d.preventDefault(),c())}var u=D(),h=R(u);{let d=z(()=>m(n)!==null);he(h,()=>Nk,(f,p)=>{p(f,{get open(){return m(d)},onOpenChange:g=>{g||e.onClose()},children:(g,y)=>{var k=D(),S=R(k);he(S,()=>Qk,(A,C)=>{C(A,{class:"max-w-sm",get style(){return m(a)},onOpenAutoFocus:E=>{E.preventDefault(),m(o)?.focus(),m(o)?.select()},children:(E,w)=>{var I=dx(),b=R(I);he(b,()=>Wk,($,ee)=>{ee($,{children:(Y,re)=>{var K=la(),H=R(K);he(H,()=>Fk,(W,J)=>{J(W,{children:(_,Se)=>{Gt();var Ce=Ir("Rename session");P(_,Ce)},$$slots:{default:!0}})});var X=Fe(H,2);he(X,()=>tx,(W,J)=>{J(W,{children:(_,Se)=>{Gt();var Ce=ux();Gt(2),P(_,Ce)},$$slots:{default:!0}})}),P(Y,K)},$$slots:{default:!0}})});var N=Fe(b,2);{let $=z(()=>m(n)?.tmux_target??m(n)?.id??"session name");lx(N,{onkeydown:l,class:"font-mono",type:"text",get placeholder(){return m($)},"aria-label":"Session name",autocomplete:"off",autocapitalize:"off",spellcheck:"false",enterkeyhint:"done",maxlength:120,get ref(){return m(o)},set ref(ee){O(o,ee,!0)},get value(){return m(r)},set value(ee){O(r,ee,!0)}})}var M=Fe(N,2);he(M,()=>Zk,($,ee)=>{ee($,{children:(Y,re)=>{var K=la(),H=R(K);aa(H,{variant:"ghost",class:"min-h-11",get onclick(){return e.onClose},children:(W,J)=>{Gt();var _=Ir("Cancel");P(W,_)},$$slots:{default:!0}});var X=Fe(H,2);aa(X,{class:"min-h-11",onclick:c,children:(W,J)=>{Gt();var _=Ir("Rename");P(W,_)},$$slots:{default:!0}}),P(Y,K)},$$slots:{default:!0}})}),P(E,I)},$$slots:{default:!0}})}),P(g,k)},$$slots:{default:!0}})})}P(t,u),G()}function fx(t,e,n=!0){if(!e)return{score:0,positions:[]};const r=t.toLowerCase(),o=e.toLowerCase(),s=r.indexOf(o);if(s!==-1){const u=n?Array.from({length:o.length},(h,d)=>s+d):[];return{score:1e3-s*5-r.length,positions:u}}const i=[];let a=0,c=0,l=-2;for(let u=0;u<o.length;u++){const h=o[u],d=r.indexOf(h,c);if(d===-1)return null;a+=d===l+1?10:1,(d===0||/[^a-z0-9]/.test(r[d-1]??""))&&(a+=5),n&&i.push(d),l=d,c=d+1}return{score:a-r.length*.1,positions:i}}function hx(t,e){return fx(t,e,!1)?.score??null}function Qx(t,e){if(e.length===0)return[{text:t,hit:!1}];const n=[];let r=0;for(let o=0;o<e.length;){const s=e[o];let i=s;for(;o+1<e.length&&e[o+1]===i+1;)i=e[++o];o++,s>r&&n.push({text:t.slice(r,s),hit:!1}),n.push({text:t.slice(s,i+1),hit:!0}),r=i+1}return r<t.length&&n.push({text:t.slice(r),hit:!1}),n}function e0(t,e){const n=hx(t.name,e);if(n!=null)return n+500;const r=e?t.description.toLowerCase().indexOf(e.toLowerCase()):-1;return r===-1?null:100-r*.5}var px=new Set(["$$slots","$$events","$$legacy"]);function mx(t,e){U(e,!0);let n=Q(e,px);const r=[["path",{d:"M20 6 9 17l-5-5"}]];Ps(t,se({name:"check"},()=>n,{get iconNode(){return r},children:(o,s)=>{var i=D(),a=R(i);q(a,()=>e.children??ie),P(o,i)},$$slots:{default:!0}})),G()}var gx=new Set(["$$slots","$$events","$$legacy"]);function vx(t,e){U(e,!0);let n=Q(e,gx);const r=[["path",{d:"M5 12h14"}]];Ps(t,se({name:"minus"},()=>n,{get iconNode(){return r},children:(o,s)=>{var i=D(),a=R(i);q(a,()=>e.children??ie),P(o,i)},$$slots:{default:!0}})),G()}var bx=new Set(["$$slots","$$events","$$legacy","ref","checked","indeterminate","class"]),yx=ae('<div data-slot="checkbox-indicator" class="text-current transition-none"><!></div>');function t0(t,e){U(e,!0);let n=v(e,"ref",15,null),r=v(e,"checked",15,!1),o=v(e,"indeterminate",15,!1),s=Q(e,bx);var i=D(),a=R(i);{const c=(u,h)=>{let d=()=>(h?.()).checked,f=()=>(h?.()).indeterminate;var p=yx(),g=ve(p);{var y=S=>{mx(S,{class:"size-3.5"})},k=S=>{vx(S,{class:"size-3.5"})};fe(g,S=>{d()?S(y):f()&&S(k,1)})}be(p),P(u,p)};let l=z(()=>xe("border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive peer flex size-4 shrink-0 items-center justify-center rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e.class));he(a,()=>lb,(u,h)=>{h(u,se({"data-slot":"checkbox",get class(){return m(l)}},()=>s,{get ref(){return n()},set ref(d){n(d)},get checked(){return r()},set checked(d){r(d)},get indeterminate(){return o()},set indeterminate(d){o(d)},children:c,$$slots:{default:!0}}))})}P(t,i),G()}function wx(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){const r=t[n],o=e[n];if(r.label!==o.label||r.icon!==o.icon||r.danger!==o.danger||r.variant!==o.variant||r.flashing!==o.flashing)return!1}return!0}class _x{#e=V(We([]));get actions(){return m(this.#e)}set actions(e){O(this.#e,e,!0)}set(e){wx(this.actions,e)||(this.actions=e)}clear(){this.actions.length!==0&&(this.actions=[])}}const n0=new _x;export{Dx as $,Xg as A,aa as B,St as C,Lo as D,ga as E,Nk as F,fx as G,Qx as H,Fx as I,n0 as J,
|
|
57
|
+
blank to fall back to the tmux target.`,1),la=ae("<!> <!>",1),dx=ae("<!> <!> <!>",1);function Xx(t,e){U(e,!0);const n=z(()=>e.sessionId?$m.sessionById.get(e.sessionId)??null:null);let r=V(""),o=V(null);Ne(()=>{e.sessionId&&O(r,Mt(()=>m(n)?.display_name??""),!0)});const s=16,i=.75;let a=V(void 0);Ne(()=>{const d=window.visualViewport;if(!e.sessionId||!d)return;const f=()=>{O(a,d.height<window.innerHeight*i?`top: ${d.offsetTop+s}px; translate: -50% 0;`:void 0,!0)};return f(),d.addEventListener("resize",f),d.addEventListener("scroll",f),()=>{d.removeEventListener("resize",f),d.removeEventListener("scroll",f),O(a,void 0)}});async function c(){const d=m(n),f=m(r).trim();if(e.onClose(),!(!d||f===(d.display_name??"")))try{await fetch(`/api/sessions/${encodeURIComponent(d.id)}/rename`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:f||null})})}catch{}}function l(d){d.key==="Enter"&&(d.preventDefault(),c())}var u=D(),h=R(u);{let d=z(()=>m(n)!==null);he(h,()=>Nk,(f,p)=>{p(f,{get open(){return m(d)},onOpenChange:g=>{g||e.onClose()},children:(g,y)=>{var k=D(),S=R(k);he(S,()=>Qk,(A,C)=>{C(A,{class:"max-w-sm",get style(){return m(a)},onOpenAutoFocus:E=>{E.preventDefault(),m(o)?.focus(),m(o)?.select()},children:(E,w)=>{var I=dx(),b=R(I);he(b,()=>Wk,($,ee)=>{ee($,{children:(Y,re)=>{var K=la(),H=R(K);he(H,()=>Fk,(W,J)=>{J(W,{children:(_,Se)=>{Gt();var Ce=Ir("Rename session");P(_,Ce)},$$slots:{default:!0}})});var X=Fe(H,2);he(X,()=>tx,(W,J)=>{J(W,{children:(_,Se)=>{Gt();var Ce=ux();Gt(2),P(_,Ce)},$$slots:{default:!0}})}),P(Y,K)},$$slots:{default:!0}})});var N=Fe(b,2);{let $=z(()=>m(n)?.tmux_target??m(n)?.id??"session name");lx(N,{onkeydown:l,class:"font-mono",type:"text",get placeholder(){return m($)},"aria-label":"Session name",autocomplete:"off",autocapitalize:"off",spellcheck:"false",enterkeyhint:"done",maxlength:120,get ref(){return m(o)},set ref(ee){O(o,ee,!0)},get value(){return m(r)},set value(ee){O(r,ee,!0)}})}var M=Fe(N,2);he(M,()=>Zk,($,ee)=>{ee($,{children:(Y,re)=>{var K=la(),H=R(K);aa(H,{variant:"ghost",class:"min-h-11",get onclick(){return e.onClose},children:(W,J)=>{Gt();var _=Ir("Cancel");P(W,_)},$$slots:{default:!0}});var X=Fe(H,2);aa(X,{class:"min-h-11",onclick:c,children:(W,J)=>{Gt();var _=Ir("Rename");P(W,_)},$$slots:{default:!0}}),P(Y,K)},$$slots:{default:!0}})}),P(E,I)},$$slots:{default:!0}})}),P(g,k)},$$slots:{default:!0}})})}P(t,u),G()}function fx(t,e,n=!0){if(!e)return{score:0,positions:[]};const r=t.toLowerCase(),o=e.toLowerCase(),s=r.indexOf(o);if(s!==-1){const u=n?Array.from({length:o.length},(h,d)=>s+d):[];return{score:1e3-s*5-r.length,positions:u}}const i=[];let a=0,c=0,l=-2;for(let u=0;u<o.length;u++){const h=o[u],d=r.indexOf(h,c);if(d===-1)return null;a+=d===l+1?10:1,(d===0||/[^a-z0-9]/.test(r[d-1]??""))&&(a+=5),n&&i.push(d),l=d,c=d+1}return{score:a-r.length*.1,positions:i}}function hx(t,e){return fx(t,e,!1)?.score??null}function Qx(t,e){if(e.length===0)return[{text:t,hit:!1}];const n=[];let r=0;for(let o=0;o<e.length;){const s=e[o];let i=s;for(;o+1<e.length&&e[o+1]===i+1;)i=e[++o];o++,s>r&&n.push({text:t.slice(r,s),hit:!1}),n.push({text:t.slice(s,i+1),hit:!0}),r=i+1}return r<t.length&&n.push({text:t.slice(r),hit:!1}),n}function e0(t,e){const n=hx(t.name,e);if(n!=null)return n+500;const r=e?t.description.toLowerCase().indexOf(e.toLowerCase()):-1;return r===-1?null:100-r*.5}var px=new Set(["$$slots","$$events","$$legacy"]);function mx(t,e){U(e,!0);let n=Q(e,px);const r=[["path",{d:"M20 6 9 17l-5-5"}]];Ps(t,se({name:"check"},()=>n,{get iconNode(){return r},children:(o,s)=>{var i=D(),a=R(i);q(a,()=>e.children??ie),P(o,i)},$$slots:{default:!0}})),G()}var gx=new Set(["$$slots","$$events","$$legacy"]);function vx(t,e){U(e,!0);let n=Q(e,gx);const r=[["path",{d:"M5 12h14"}]];Ps(t,se({name:"minus"},()=>n,{get iconNode(){return r},children:(o,s)=>{var i=D(),a=R(i);q(a,()=>e.children??ie),P(o,i)},$$slots:{default:!0}})),G()}var bx=new Set(["$$slots","$$events","$$legacy","ref","checked","indeterminate","class"]),yx=ae('<div data-slot="checkbox-indicator" class="text-current transition-none"><!></div>');function t0(t,e){U(e,!0);let n=v(e,"ref",15,null),r=v(e,"checked",15,!1),o=v(e,"indeterminate",15,!1),s=Q(e,bx);var i=D(),a=R(i);{const c=(u,h)=>{let d=()=>(h?.()).checked,f=()=>(h?.()).indeterminate;var p=yx(),g=ve(p);{var y=S=>{mx(S,{class:"size-3.5"})},k=S=>{vx(S,{class:"size-3.5"})};fe(g,S=>{d()?S(y):f()&&S(k,1)})}be(p),P(u,p)};let l=z(()=>xe("border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive peer flex size-4 shrink-0 items-center justify-center rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e.class));he(a,()=>lb,(u,h)=>{h(u,se({"data-slot":"checkbox",get class(){return m(l)}},()=>s,{get ref(){return n()},set ref(d){n(d)},get checked(){return r()},set checked(d){r(d)},get indeterminate(){return o()},set indeterminate(d){o(d)},children:c,$$slots:{default:!0}}))})}P(t,i),G()}function wx(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){const r=t[n],o=e[n];if(r.label!==o.label||r.icon!==o.icon||r.danger!==o.danger||r.variant!==o.variant||r.flashing!==o.flashing)return!1}return!0}class _x{#e=V(We([]));get actions(){return m(this.#e)}set actions(e){O(this.#e,e,!0)}set(e){wx(this.actions,e)||(this.actions=e)}clear(){this.actions.length!==0&&(this.actions=[])}}const n0=new _x;export{Dx as $,Xg as A,aa as B,St as C,Lo as D,ga as E,Nk as F,fx as G,Qx as H,Fx as I,n0 as J,Wk as K,zx as L,Dm as M,Xx as N,$x as O,qx as P,Gx as Q,wu as R,Hm as S,Vx as T,Hx as U,Ux as V,Wx as W,Bx as X,Zx as Y,Ax as Z,Yx as _,q as a,Nx as a0,Rx as a1,Ix as a2,jx as a3,Tx as a4,Uc as a5,Qn as a6,Rt as a7,Lx as a8,Yt as a9,xy as aa,Vo as ab,ue as ac,dy as ad,ky as ae,wy as af,Wi as ag,qm as ah,Ko as ai,e0 as aj,Mx as b,Oo as c,Wm as d,T as e,qe as f,Ve as g,yr as h,Mg as i,bn as j,vc as k,He as l,ye as m,Jx as n,Vt as o,Ex as p,Kx as q,xe as r,$m as s,vk as t,os as u,Qk as v,Ae as w,Fk as x,tx as y,t0 as z};
|