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
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a9 as re,bg as pt,bD as mt}from"./RhyL4cOo.js";import{r as ke,o as Se,n as N,i as Ie,b as L,s as B,a as ye,d as _t,c as gt,S as Ke,N as W,H as $,u as Ge,e as yt,m as wt,f as vt,p as j,g as bt,h as Et,j as Xe,k as we,l as ae,q as me,P as At,t as Y,v as ze,w as We,x as Ce}from"./DfoR1zCV.js";class Q{constructor(t,r){this.status=t,typeof r=="string"?this.body={message:r}:r?this.body=r:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Re{constructor(t,r){try{new Headers({location:r})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(r)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=r}}class Pe extends Error{constructor(t,r,a){super(a),this.status=t,this.text=r}}const kt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,St=/^\/\((?:[^)]+)\)$/;function It(e){const t=[];return{pattern:e==="/"||St.test(e)?/^\/$/:new RegExp(`^${Pt(e).map(a=>{const o=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(o)return t.push({name:o[1],matcher:o[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const n=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(n)return t.push({name:n[1],matcher:n[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const s=a.split(/\[(.+?)\](?!\])/);return"/"+s.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return _e(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return _e(String.fromCharCode(...c.slice(2).split("-").map(y=>parseInt(y,16))));const l=kt.exec(c),[,h,d,u,p]=l;return t.push({name:u,matcher:p,optional:!!h,rest:!!d,chained:d?f===1&&s[0]==="":!1}),d?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return _e(c)}).join("")}).join("")}/?$`),params:t}}function Rt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Pt(e){return e.slice(1).split("/").filter(Rt)}function Lt(e,t,r){const a={},o=e.slice(1),n=o.filter(i=>i!==void 0);let s=0;for(let i=0;i<t.length;i+=1){const c=t[i];let f=o[i-s];if(c.chained&&c.rest&&s&&(f=o.slice(i-s,i+1).filter(l=>l).join("/"),s=0),f===void 0)if(c.rest)f="";else continue;if(!c.matcher||r[c.matcher](f)){a[c.name]=f;const l=t[i+1],h=o[i+1];l&&!l.rest&&l.optional&&h&&c.chained&&(s=0),!l&&!h&&Object.keys(a).length===n.length&&(s=0);continue}if(c.optional&&c.chained){s++;continue}return}if(!s)return a}function _e(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Tt({nodes:e,server_loads:t,dictionary:r,matchers:a}){const o=new Set(t);return Object.entries(r).map(([i,[c,f,l]])=>{const{pattern:h,params:d}=It(i),u={id:i,exec:p=>{const y=h.exec(p);if(y)return Lt(y,d,a)},errors:[1,...l||[]].map(p=>e[p]),layouts:[0,...f||[]].map(s),leaf:n(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function n(i){const c=i<0;return c&&(i=~i),[c,e[i]]}function s(i){return i===void 0?i:[o.has(i),e[i]]}}function Je(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Me(e,t,r=JSON.stringify){const a=r(t);try{sessionStorage[e]=a}catch{}}const Ut=-1,jt=-2,Ot=-3,Nt=-4,xt=-5,Dt=-6,Ct=-7,Ze=2**32-1,ve=Ze-1;function Mt(e){return!(!Number.isInteger(e)||e<0||e>ve)}function Bt(e){return!(!Number.isInteger(e)||e<0||e>Ze)}function Ft(e){return Uint8Array.fromBase64(e).buffer}function $t(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function Vt(e){const t=atob(e),r=t.length,a=new Uint8Array(r);for(let o=0;o<r;o++)a[o]=t.charCodeAt(o);return a.buffer}const qt=typeof Uint8Array.fromBase64=="function",Ht=typeof process=="object"&&process.versions?.node!==void 0,Yt=qt?Ft:Ht?$t:Vt;function Kt(e,t){return e}const Gt={fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e==="URL"?new URL(t):e==="URLSearchParams"?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,r,a)=>{const o=globalThis[e];return r!==void 0?new o(t,r,a):new o(t)},box:e=>Object(e),createArray:e=>new Array(e),createSparseArray:e=>{const t=[];return t[ve]=void 0,delete t[ve],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,r)=>{e[t]=r},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,r)=>{e.set(t,r)}},Xt=Object.freeze(Gt);function zt(e,t,r){const a=Kt(Xt);if(typeof e=="number")return i(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const o=e,n=Array(o.length);let s=null;function i(c,f=!1){if(c===Ut)return a.fromPrimitive(void 0);if(c===Ot)return a.fromPrimitive(NaN);if(c===Nt)return a.fromPrimitive(1/0);if(c===xt)return a.fromPrimitive(-1/0);if(c===Dt)return a.fromPrimitive(-0);if(f||typeof c!="number")throw new Error("Invalid input");if(c in n)return n[c];if(c>=o.length)throw new Error("Invalid input");const l=o[c];if(!l||typeof l!="object")n[c]=a.fromPrimitive(l);else if(Array.isArray(l))if(typeof l[0]=="string"){const h=l[0],d=t&&Object.hasOwn(t,h)?t[h]:void 0;if(d){let u=l[1];if(typeof u!="number"&&(u=o.push(l[1])-1),Object.hasOwn(n,u))return n[c]=d(n[u]);if(s??=new Set,s.has(u))throw new Error("Invalid circular reference");return s.add(u),n[c]=d(i(u)),s.delete(u),n[c]}switch(h){case"Date":n[c]=a.fromISOString(l[1]);break;case"Set":const u=a.createSet();n[c]=u;for(let m=1;m<l.length;m+=1)a.addValue(u,i(l[m]));break;case"Map":const p=a.createMap();n[c]=p;for(let m=1;m<l.length;m+=2)a.addEntry(p,i(l[m]),i(l[m+1]));break;case"RegExp":n[c]=a.fromRegExpInfo(l[1],l[2]);break;case"Object":{const m=l[1];if(typeof o[m]=="object"&&o[m][0]!=="BigInt")throw new Error("Invalid input");n[c]=a.box(i(m));break}case"BigInt":n[c]=a.fromPrimitive(BigInt(l[1]));break;case"null":const y=a.createNullPrototypeObject();n[c]=y;for(let m=1;m<l.length;m+=2){if(l[m]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");a.set(y,l[m],i(l[m+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(o[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const m=i(l[1]);n[c]=a.fromViewInfo(h,m,l[2],l[3]);break}case"ArrayBuffer":{const m=l[1];if(typeof m!="string")throw new Error("Invalid ArrayBuffer encoding");n[c]=a.fromArrayBuffer(Yt(m));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{n[c]=a.fromStringValue(h,l[1]);break}default:throw new Error(`Unknown type ${h}`)}}else if(l[0]===Ct){const h=l[1];if(!Bt(h))throw new Error("Invalid input");const d=a.createSparseArray(h);n[c]=d;for(let u=2;u<l.length;u+=2){const p=l[u];if(!Mt(p)||p>=h)throw new Error("Invalid input");a.set(d,p,i(l[u+1]))}}else{const h=a.createArray(l.length);n[c]=h;for(let d=0;d<l.length;d+=1){const u=l[d];u!==jt&&a.set(h,d,i(u))}}else{const h=a.createObject();n[c]=h;for(const d of Object.keys(l)){if(d==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");a.set(h,d,i(l[d]))}}return n[c]}return i(0)}function Wt(e){return e.filter(t=>t!=null)}const Jt="x-sveltekit-invalidated",Zt="x-sveltekit-trailing-slash";function ee(e,t){return e+"/"+t}function ne(e){return e instanceof Q||e instanceof Pe?e.status:500}function Qt(e){return e instanceof Pe?e.text:"Internal Error"}const er="/__data.json",tr=".html__data.json";function rr(e){return e.endsWith(".html")?e.replace(/\.html$/,tr):e.replace(/\/$/,"")+er}const Be={spanContext(){return ar},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},ar={traceId:"",spanId:"",traceFlags:0};async function*nr(e,t){let r=!1,a="";const o=new TextDecoder;for(;;){let n=a.indexOf(t);for(;n!==-1;)yield a.slice(0,n),a=a.slice(n+t.length),n=a.indexOf(t);if(r){a&&(yield a);return}const s=await e.read();r=s.done,s.value&&(a+=o.decode(s.value,{stream:!0})),r&&(a+=o.decode())}}async function*or(e){for await(const t of nr(e,`
|
|
2
|
+
`)){const r=t.trim();r&&(yield JSON.parse(r))}}const sr=new Set(["icon","shortcut icon","apple-touch-icon"]);let K=null;const D=Je(ze)??{},J=Je(We)??{},x={url:Ce({}),page:Ce({}),navigating:pt(null),updated:gt()};function Le(e){D[e]=B()}function ir(e,t){let r=e+1;for(;D[r];)delete D[r],r+=1;for(r=t+1;J[r];)delete J[r],r+=1}function q(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(N)}async function Qe(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}let Te,be,oe,U,Ee,E;const se=[],ie=[];let R=null;function ce(){R?.fork?.then(e=>e?.discard()),R=null,F={element:void 0,href:void 0}}const te=new Map,et=new Set,cr=new Set,X=new Set;let w={branch:[],error:null,url:null},Ue=!1,le=!1,Fe=!0,Z=!1,G=!1,tt=!1,je=!1,rt,S,P,O;const z=new Set,$e=new Map,Ve=new Map;async function kr(e,t,r){if(globalThis.__sveltekit_7677w9.data){const{q:n={},p:s={},l:i={},f:c={}}=globalThis.__sveltekit_7677w9.data;for(const f in n)n[f];for(const f in i)i[f];for(const f in c)c[f];for(const f in s)s[f]}document.URL!==location.href&&(location.href=location.href),E=e,await e.hooks.init?.(),Te=Tt(e),U=document.documentElement,Ee=t,be=e.nodes[0],oe=e.nodes[1],be(),oe(),S=history.state?.[$],P=history.state?.[W],S||(S=P=Date.now(),history.replaceState({...history.state,[$]:S,[W]:P},""));const a=D[S];function o(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}r?(o(),await yr(Ee,r)):(await V({type:"enter",url:ke(E.hash?br(new URL(location.href)):location.href),replace_state:!0}),o()),gr()}function lr(){se.length=0,je=!1}function at(e){ie.some(t=>t?.snapshot)&&(J[e]=ie.map(t=>t?.snapshot?.capture()))}function nt(e){J[e]?.forEach((t,r)=>{ie[r]?.snapshot?.restore(t)})}function qe(){Le(S),Me(ze,D),at(P),Me(We,J)}async function ot(e,t,r,a){let o,n;t.invalidateAll&&ce(),await V({type:"goto",url:ke(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:a,accept:()=>{if(t.invalidateAll){je=!0,o=new Set;for(const[s,i]of $e)for(const[c,f]of i)f.resource?.reset(),o.add(ee(s,c));n=new Set;for(const[s,i]of Ve)for(const c of i.keys())n.add(ee(s,c))}t.invalidate&&t.invalidate.forEach(_r)}}),t.invalidateAll&&re().then(re).then(()=>{for(const[s,i]of $e)for(const[c,{resource:f}]of i)o?.has(ee(s,c))&&f.start();for(const[s,i]of Ve)for(const[c,{resource:f}]of i)n?.has(ee(s,c))&&f.reconnect()})}async function fr(e){if(e.id!==R?.id){ce();const t={};z.add(t),R={id:e.id,token:t,promise:ct({...e,preload:t}).then(r=>(z.delete(t),r.type==="loaded"&&r.state.error&&ce(),r)),fork:null}}return R.promise}async function ge(e){const t=(await he(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(r=>r[1]()))}async function st(e,t,r){const a={params:w.params,route:{id:w.route?.id??null},url:new URL(location.href)};if(w={...e.state,nav:a},Ge(e.props.page),rt=new E.root({target:t,props:{...e.props,stores:x,components:ie},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),r){const o={from:null,to:{...a,scroll:D[S]??B()},willUnload:!1,type:"enter",complete:Promise.resolve()};X.forEach(n=>n(o))}nt(P),le=!0}async function fe({url:e,params:t,branch:r,errors:a,status:o,error:n,route:s,form:i}){let c="never";if(L&&(e.pathname===L||e.pathname===L+"/"))c="always";else for(const p of r)p?.slash!==void 0&&(c=p.slash);e.pathname=vt(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:r,error:n,route:s},props:{constructors:Wt(r).map(p=>p.node.component),page:De(j)}};i!==void 0&&(f.props.form=i);let l={},h=!j,d=0;for(let p=0;p<Math.max(r.length,w.branch.length);p+=1){const y=r[p],m=w.branch[p];y?.data!==m?.data&&(h=!0),y&&(l={...l,...y.data},h&&(f.props[`data_${d}`]=l),d+=1)}return(!w.url||e.href!==w.url.href||w.error!==n||i!==void 0&&i!==j.form||h)&&(f.props.page={error:n,params:t,route:{id:s?.id??null},state:{},status:o,url:new URL(e),form:i??null,data:h?l:j.data}),f}async function Oe({loader:e,parent:t,url:r,params:a,route:o,server_data_node:n}){let s=null,i=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},f=await e();if(f.universal?.load){let l=function(...d){for(const u of d){const{href:p}=new URL(u,r);c.dependencies.add(p)}};const h={tracing:{enabled:!1,root:Be,current:Be},route:new Proxy(o,{get:(d,u)=>(i&&(c.route=!0),d[u])}),params:new Proxy(a,{get:(d,u)=>(i&&c.params.add(u),d[u])}),data:n?.data??null,url:wt(r,()=>{i&&(c.url=!0)},d=>{i&&c.search_params.add(d)},E.hash),async fetch(d,u){d instanceof Request&&(u={body:d.method==="GET"||d.method==="HEAD"?void 0:await d.blob(),cache:d.cache,credentials:d.credentials,headers:[...d.headers].length>0?d?.headers:void 0,integrity:d.integrity,keepalive:d.keepalive,method:d.method,mode:d.mode,redirect:d.redirect,referrer:d.referrer,referrerPolicy:d.referrerPolicy,signal:d.signal,...u});const{resolved:p,promise:y}=it(d,u,r);return i&&l(p.href),y},setHeaders:N,depends:l,parent(){return i&&(c.parent=!0),t()},untrack(d){i=!1;try{return d()}finally{i=!0}}};s=await f.universal.load.call(null,h)??null}return{node:f,loader:e,server:n,universal:f.universal?.load?{type:"data",data:s,uses:c}:null,data:s??n?.data??null,slash:f.universal?.trailingSlash??n?.slash}}function it(e,t,r){let a=e instanceof Request?e.url:e;const o=new URL(a,r);o.origin===r.origin&&(a=o.href.slice(r.origin.length));const n=le?bt(a,o.href,t):Et(a,t);return{resolved:o,promise:n}}function He(e,t,r,a,o,n){if(je)return!0;if(!o)return!1;if(o.parent&&e||o.route&&t||o.url&&r)return!0;for(const s of o.search_params)if(a.has(s))return!0;for(const s of o.params)if(n[s]!==w.params[s])return!0;for(const s of o.dependencies)if(se.some(i=>i(new URL(s))))return!0;return!1}function Ne(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function ur(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of r){const o=e.searchParams.getAll(a),n=t.searchParams.getAll(a);o.every(s=>n.includes(s))&&n.every(s=>o.includes(s))&&r.delete(a)}return r}function Ye({error:e,url:t,route:r,params:a}){return{type:"loaded",state:{error:e,url:t,route:r,params:a,branch:[]},props:{page:De(j),constructors:[]}}}async function ct({id:e,invalidating:t,url:r,params:a,route:o,preload:n}){if(R?.id===e)return z.delete(R.token),R.promise;const{errors:s,layouts:i,leaf:c}=o,f=[...i,c];s.forEach(g=>g?.().catch(N)),f.forEach(g=>g?.[1]().catch(N));let l=null;const h=w.url?e!==ue(w.url):!1,d=w.route?o.id!==w.route.id:!1,u=ur(w.url,r);let p=!1;{const g=f.map((v,A)=>{const k=w.branch[A],b=!!v?.[0]&&(k?.loader!==v[1]||He(p,d,h,u,k.server?.uses,a));return b&&(p=!0),b});if(g.some(Boolean)){try{l=await ut(r,g)}catch(v){const A=await M(v,{url:r,params:a,route:{id:e}});return n&&z.has(n)?Ye({error:A,url:r,params:a,route:o}):de({status:ne(v),error:A,url:r,route:o})}if(l.type==="redirect")return l}}const y=l?.nodes;let m=!1;const _=f.map(async(g,v)=>{if(!g)return;const A=w.branch[v],k=y?.[v];if((!k||k.type==="skip")&&g[1]===A?.loader&&!He(m,d,h,u,A.universal?.uses,a))return A;if(m=!0,k?.type==="error")throw k;return Oe({loader:g[1],url:r,params:a,route:o,parent:async()=>{const T={};for(let C=0;C<v;C+=1)Object.assign(T,(await _[C])?.data);return T},server_data_node:Ne(k===void 0&&g[0]?{type:"skip"}:k??null,g[0]?A?.server:void 0)})});for(const g of _)g.catch(N);const I=[];for(let g=0;g<f.length;g+=1)if(f[g])try{I.push(await _[g])}catch(v){if(v instanceof Re)return{type:"redirect",location:v.location};if(n&&z.has(n))return Ye({error:await M(v,{params:a,url:r,route:{id:o.id}}),url:r,params:a,route:o});let A=ne(v),k;if(y?.includes(v))A=v.status??A,k=v.error;else if(v instanceof Q)k=v.body;else{if(await x.updated.check())return await Qe(),await q(r);k=await M(v,{params:a,url:r,route:{id:o.id}})}const b=await dr(g,I,s);return b?fe({url:r,params:a,branch:I.slice(0,b.idx).concat(b.node),errors:s,status:A,error:k,route:o}):await ft(r,{id:o.id},k,A)}else I.push(void 0);return fe({url:r,params:a,branch:I,errors:s,status:200,error:null,route:o,form:t?void 0:null})}async function dr(e,t,r){for(;e--;)if(r[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function de({status:e,error:t,url:r,route:a}){const o={};let n=null;if(E.server_loads[0]===0)try{const i=await ut(r,[!0]);if(i.type!=="data"||i.nodes[0]&&i.nodes[0].type!=="data")throw 0;n=i.nodes[0]??null}catch(i){if(!(i instanceof Q&&i.status===404)&&(r.origin!==Se||r.pathname!==location.pathname||Ue))return await q(r)}try{const s=await Oe({loader:be,url:r,params:o,route:a,parent:()=>Promise.resolve({}),server_data_node:Ne(n)}),i={node:await oe(),loader:oe,universal:null,server:null,data:null};return fe({url:r,params:o,branch:[s,i],status:e,error:t,errors:[],route:null})}catch(s){if(s instanceof Re){await ot(new URL(s.location,location.href),{},0);return}const i=await E.get_error_template(),c=await M(s,{url:r,params:o,route:a}),f=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),l=i({status:e,message:f}),h=new DOMParser().parseFromString(l,"text/html");throw document.documentElement.replaceChild(document.adoptNode(h.head),document.head),document.documentElement.replaceChild(document.adoptNode(h.body),document.body),s}}async function hr(e){const t=e.href;if(te.has(t))return te.get(t);let r;try{const a=(async()=>{let o=await E.hooks.reroute({url:new URL(e),fetch:async(n,s)=>it(n,s,e).promise})??e;if(typeof o=="string"){const n=new URL(e);E.hash?n.hash=o:n.pathname=o,o=n}return o})();te.set(t,a),r=await a}catch{te.delete(t);return}return r}async function he(e,t){if(e&&!Ie(e,L,E.hash)){const r=await hr(e);if(!r)return;const a=pr(r);for(const o of Te){const n=o.exec(a);if(n)return{id:ue(e),invalidating:t,route:o,params:_t(n),url:e}}}}function pr(e){return yt(E.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ue(e){return(E.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function lt({url:e,type:t,intent:r,delta:a,event:o,scroll:n}){let s=!1;const i=xe(w,r,e,t,n??null);a!==void 0&&(i.navigation.delta=a),o!==void 0&&(i.navigation.event=o);const c={...i.navigation,cancel:()=>{s=!0,i.reject(new Error("navigation cancelled"))}};return Z||et.forEach(f=>f(c)),s?null:i}async function V({type:e,url:t,popped:r,keepfocus:a,noscroll:o,replace_state:n,state:s={},redirect_count:i=0,nav_token:c={},accept:f=N,block:l=N,event:h}){const d=O;O=c;const u=await he(t,!1),p=e==="enter"?xe(w,u,t,e):lt({url:t,type:e,delta:r?.delta,intent:u,scroll:r?.scroll,event:h});if(!p){l(),O===c&&(O=d);return}const y=S,m=P;f(),Z=!0,le&&p.navigation.type!=="enter"&&x.navigating.set(ye.current=p.navigation);let _=u&&await ct(u);if(!_){if(Ie(t,L,E.hash))return await q(t,n);_=await ft(t,{id:null},await M(new Pe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,n)}if(t=u?.url||t,O!==c){p.reject(new Error("navigation aborted"));return}if(!_)return;if(_.type==="redirect"){if(i<20){await V({type:e,url:new URL(_.location,t),popped:r,keepfocus:a,noscroll:o,replace_state:n,state:s,redirect_count:i+1,nav_token:c}),p.fulfil(void 0);return}if(_=await de({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!_)return}else if(_.props.page.status>=400&&await x.updated.check())return await Qe(),await q(t,n);if(lr(),Le(y),at(m),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),s=r?r.state:s,!r){const b=n?0:1,T={[$]:S+=b,[W]:P+=b,[Ke]:s};(n?history.replaceState:history.pushState).call(history,T,"",t),n||ir(S,P)}const I=u&&R?.id===u.id?R.fork:null;R?.fork&&!I?ce():(R=null,F={element:void 0,href:void 0}),_.props.page.state=s;let g;if(le){const b=(await Promise.all(Array.from(cr,H=>H(p.navigation)))).filter(H=>typeof H=="function");if(b.length>0){let H=function(){b.forEach(pe=>{X.delete(pe)})};b.push(H),b.forEach(pe=>{X.add(pe)})}const T=p.navigation.to;w={..._.state,nav:{params:T.params,route:T.route,url:T.url}},_.props.page&&(_.props.page.url=t),!a&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const C=I&&await I;C?g=C.commit():(K=null,rt.$set(_.props),K&&Object.assign(_.props.page,K),Ge(_.props.page),g=mt?.()),tt=!0}else await st(_,Ee,!1);const{activeElement:v}=document;if(await g,await re(),await re(),O!==c){p.reject(new Error("navigation aborted"));return}_.props.page&&K&&Object.assign(_.props.page,K);let A=null;if(Fe){const b=r?r.scroll:o?B():null;b?scrollTo(b.x,b.y):(A=t.hash&&document.getElementById(ht(t)))?A.scrollIntoView():scrollTo(0,0)}const k=document.activeElement!==v&&document.activeElement!==document.body;!a&&!k&&vr(t,!A),Fe=!0,Z=!1,p.fulfil(void 0),p.navigation.to&&(p.navigation.to.scroll=B()),X.forEach(b=>b(p.navigation)),e==="popstate"&&nt(P),x.navigating.set(ye.current=null)}async function ft(e,t,r,a,o){return e.origin===Se&&e.pathname===location.pathname&&!Ue?await de({status:a,error:r,url:e,route:t}):await q(e,o)}let F={element:void 0,href:void 0};function mr(){let e,t;U.addEventListener("mousemove",s=>{const i=s.target;clearTimeout(e),e=setTimeout(()=>{o(i,Y.hover)},20)});function r(s){s.defaultPrevented||o(s.composedPath()[0],Y.tap)}U.addEventListener("mousedown",r),U.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(s=>{for(const i of s)i.isIntersecting&&(ge(new URL(i.target.href)),a.unobserve(i.target))},{threshold:0});async function o(s,i){const c=Xe(s,U),f=c===F.element&&c?.href===F.href&&i>=t;if(!c||f)return;const{url:l,external:h,download:d}=we(c,L,E.hash);if(h||d)return;const u=ae(c),p=l&&ue(w.url)===ue(l);if(!(u.reload||p))if(i<=u.preload_data){F={element:c,href:c.href},t=Y.tap;const y=await he(l,!1);if(!y)return;fr(y)}else i<=u.preload_code&&(F={element:c,href:c.href},t=i,ge(l))}function n(){a.disconnect();for(const s of U.querySelectorAll("a")){const{url:i,external:c,download:f}=we(s,L,E.hash);if(c||f)continue;const l=ae(s);l.reload||(l.preload_code===Y.viewport&&a.observe(s),l.preload_code===Y.eager&&ge(i))}}X.add(n),n()}function M(e,t){if(e instanceof Q)return e.body;const r=ne(e),a=Qt(e);return E.hooks.handleError({error:e,event:t,status:r,message:a})??{message:a}}function Sr(e,t={}){return e=new URL(ke(e)),e.origin!==Se?Promise.reject(new Error("goto: invalid URL")):ot(e,t,0)}function _r(e){if(typeof e=="function")se.push(e);else{const{href:t}=new URL(e,location.href);se.push(r=>r.href===t)}}function gr(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(qe(),!Z){const a=xe(w,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};et.forEach(n=>n(o))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&qe()}),navigator.connection?.saveData||mr(),U.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=Xe(t.composedPath()[0],U);if(!r)return;const{url:a,external:o,target:n,download:s}=we(r,L,E.hash);if(!a)return;if(n==="_parent"||n==="_top"){if(window.parent!==window)return}else if(n&&n!=="_self")return;const i=ae(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||s)return;const[f,l]=(E.hash?a.hash.replace(/^#/,""):a.href).split("#"),h=f===me(location);if(o||i.reload&&(!h||!l)){lt({url:a,type:"link",event:t})?Z=!0:t.preventDefault();return}if(l!==void 0&&h){const[,d]=w.url.href.split("#");if(d===l){if(t.preventDefault(),l===""||l==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=r.ownerDocument.getElementById(decodeURIComponent(l));u&&(u.scrollIntoView(),u.focus())}return}if(G=!0,Le(S),e(a),!i.replace_state)return;G=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),await V({type:"link",url:a,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??a.href===location.href,event:t})}),U.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||r.target)==="_blank"||(a?.formMethod||r.method)!=="get")return;const s=new URL(a?.hasAttribute("formaction")&&a?.formAction||r.action);if(Ie(s,L,!1))return;const i=t.target,c=ae(i);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(i,a);s.search=new URLSearchParams(f).toString(),V({type:"form",url:s,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ae){if(t.state?.[$]){const r=t.state[$];if(O={},r===S)return;const a=D[r],o=t.state[Ke]??{},n=new URL(t.state[At]??location.href),s=t.state[W],i=w.url?me(location)===me(w.url):!1;if(s===P&&(tt||i)){o!==j.state&&(j.state=o),e(n),D[S]=B(),a&&scrollTo(a.x,a.y),S=r;return}const f=r-S;await V({type:"popstate",url:n,popped:{state:o,scroll:a,delta:f},accept:()=>{S=r,P=s},block:()=>{history.go(-f)},nav_token:O,event:t})}else if(!G){const r=new URL(location.href);e(r),E.hash&&location.reload()}}}),addEventListener("hashchange",()=>{G&&(G=!1,history.replaceState({...history.state,[$]:++S,[W]:P},"",location.href))});for(const t of document.querySelectorAll("link"))sr.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&x.navigating.set(ye.current=null)});function e(t){w.url=j.url=t,x.page.set(De(j)),x.page.notify()}}async function yr(e,{status:t=200,error:r,node_ids:a,params:o,route:n,server_route:s,data:i,form:c}){Ue=!0;const f=new URL(location.href);let l;({params:o={},route:n={id:null}}=await he(f,!1)||{}),l=Te.find(({id:u})=>u===n.id);let h,d=!0;try{const u=a.map(async(y,m)=>{const _=i[m];return _?.uses&&(_.uses=dt(_.uses)),Oe({loader:E.nodes[y],url:f,params:o,route:n,parent:async()=>{const I={};for(let g=0;g<m;g+=1)Object.assign(I,(await u[g]).data);return I},server_data_node:Ne(_)})}),p=await Promise.all(u);if(l){const y=l.layouts;for(let m=0;m<y.length;m++)y[m]||p.splice(m,0,void 0)}h=await fe({url:f,params:o,branch:p,status:t,error:r,errors:l?.errors,form:c,route:l??null})}catch(u){if(u instanceof Re)return await q(new URL(u.location,location.href));h=await de({status:ne(u),error:await M(u,{url:f,params:o,route:n}),url:f,route:n}),e.textContent="",d=!1}h&&(h.props.page&&(h.props.page.state={}),await st(h,e,d))}async function ut(e,t){const r=new URL(e);r.pathname=rr(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(Zt,"1"),r.searchParams.append(Jt,t.map(n=>n?"1":"0").join(""));const a=window.fetch,o=await a(r.href,{});if(!o.ok){let n;throw o.headers.get("content-type")?.includes("application/json")?n=await o.json():o.status===404?n="Not Found":o.status===500&&(n="Internal Error"),new Q(o.status,n)}return new Promise((n,s)=>{wr(n,o).catch(s)})}async function wr(e,t){const r=t.body.getReader(),a=new Map;function o(n){return zt(n,{...E.decoders,Promise:s=>new Promise((i,c)=>{a.set(s,{fulfil:i,reject:c})})})}for await(const n of or(r)){if(n.type==="redirect")return e(n);if(n.type==="data")n.nodes?.forEach(s=>{s?.type==="data"&&(s.uses=dt(s.uses),s.data=o(s.data))}),e(n);else if(n.type==="chunk"){const{id:s,data:i,error:c}=n,f=a.get(s);a.delete(s),c?f.reject(o(c)):f.fulfil(o(i))}}}function dt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ae=!1;function vr(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const a=ht(e);if(a&&document.getElementById(a)){const{x:n,y:s}=B();setTimeout(()=>{const i=history.state;Ae=!0,location.replace(new URL(`#${a}`,location.href)),history.replaceState(i,"",e),t&&scrollTo(n,s),Ae=!1})}else{const n=document.body,s=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),s!==null?n.setAttribute("tabindex",s):n.removeAttribute("tabindex")}const o=getSelection();if(o&&o.type!=="None"){const n=[];for(let s=0;s<o.rangeCount;s+=1)n.push(o.getRangeAt(s));setTimeout(()=>{if(o.rangeCount===n.length){for(let s=0;s<o.rangeCount;s+=1){const i=n[s],c=o.getRangeAt(s);if(i.commonAncestorContainer!==c.commonAncestorContainer||i.startContainer!==c.startContainer||i.endContainer!==c.endContainer||i.startOffset!==c.startOffset||i.endOffset!==c.endOffset)return}o.removeAllRanges()}})}}}function xe(e,t,r,a,o=null){let n,s;const i=new Promise((f,l)=>{n=f,s=l});return i.catch(N),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:B()},to:r&&{params:t?.params??null,route:{id:t?.route?.id??null},url:r,scroll:o},willUnload:!t,type:a,complete:i},fulfil:n,reject:s}}function De(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function br(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function ht(e){let t;if(E.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{kr as a,Sr as g,x as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
import{k,a3 as B,j as f,a6 as G,x as W,z as Y,p as F,a7 as H,u as J,a8 as K,a9 as Q,f as w,q as X,g as Z,l as x,m as $,n as ee,aa as L,t as te}from"../chunks/RhyL4cOo.js";import{h as re,m as se,u as ne,a as y,c as j,f as V,t as ae,s as oe}from"../chunks/BuvGONG-.js";import{p as A,i as S,b as C}from"../chunks/ukOf9Kzz.js";import{c as T}from"../chunks/CjMoR7Dp.js";function ce(a){return class extends ie{constructor(e){super({component:a,...e})}}}class ie{#t;#e;constructor(e){var n=new Map,i=(r,t)=>{var s=Y(t,!1,!1);return n.set(r,s),s};const l=new Proxy({...e.props||{},$$events:{}},{get(r,t){return f(n.get(t)??i(t,Reflect.get(r,t)))},has(r,t){return t===B?!0:(f(n.get(t)??i(t,Reflect.get(r,t))),Reflect.has(r,t))},set(r,t,s){return k(n.get(t)??i(t,s),s),Reflect.set(r,t,s)}});this.#e=(e.hydrate?re:se)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&G(),this.#t=l.$$events;for(const r of Object.keys(this.#e))r==="$set"||r==="$destroy"||r==="$on"||W(this,r,{get(){return this.#e[r]},set(t){this.#e[r]=t},enumerable:!0});this.#e.$set=r=>{Object.assign(l,r)},this.#e.$destroy=()=>{ne(this.#e)}}$set(e){this.#e.$set(e)}$on(e,n){this.#t[e]=this.#t[e]||[];const i=(...l)=>n.call(this,...l);return this.#t[e].push(i),()=>{this.#t[e]=this.#t[e].filter(l=>l!==i)}}$destroy(){this.#e.$destroy()}}const le="modulepreload",ue=function(a,e){return new URL(a,e).href},I={},b=function(e,n,i){let l=Promise.resolve();if(n&&n.length>0){let O=function(c){return Promise.all(c.map(m=>Promise.resolve(m).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const t=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),R=s?.nonce||s?.getAttribute("nonce");l=O(n.map(c=>{if(c=ue(c,i),c in I)return;I[c]=!0;const m=c.endsWith(".css"),d=m?'[rel="stylesheet"]':"";if(i)for(let _=t.length-1;_>=0;_--){const o=t[_];if(o.href===c&&(!m||o.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const u=document.createElement("link");if(u.rel=m?"stylesheet":le,m||(u.as="script"),u.crossOrigin="",u.href=c,R&&u.setAttribute("nonce",R),document.head.appendChild(u),m)return new Promise((_,o)=>{u.addEventListener("load",_),u.addEventListener("error",()=>o(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(t){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=t,window.dispatchEvent(s),!s.defaultPrevented)throw t}return l.then(t=>{for(const s of t||[])s.status==="rejected"&&r(s.reason);return e().catch(r)})},be={};var me=V('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),fe=V("<!> <!>",1);function de(a,e){F(e,!0);let n=A(e,"components",23,()=>[]),i=A(e,"data_0",3,null),l=A(e,"data_1",3,null);H(()=>e.stores.page.set(e.page)),J(()=>{e.stores,e.page,e.constructors,n(),e.form,i(),l(),e.stores.page.notify()});let r=x(!1),t=x(!1),s=x(null);K(()=>{const o=e.stores.page.subscribe(()=>{f(r)&&(k(t,!0),Q().then(()=>{k(s,document.title||"untitled page",!0)}))});return k(r,!0),o});const R=L(()=>e.constructors[1]);var O=fe(),c=w(O);{var m=o=>{const h=L(()=>e.constructors[0]);var v=j(),P=w(v);T(P,()=>f(h),(g,E)=>{C(E(g,{get data(){return i()},get form(){return e.form},get params(){return e.page.params},children:(p,he)=>{var D=j(),M=w(D);T(M,()=>f(R),(N,U)=>{C(U(N,{get data(){return l()},get form(){return e.form},get params(){return e.page.params}}),z=>n()[1]=z,()=>n()?.[1])}),y(p,D)},$$slots:{default:!0}}),p=>n()[0]=p,()=>n()?.[0])}),y(o,v)},d=o=>{const h=L(()=>e.constructors[0]);var v=j(),P=w(v);T(P,()=>f(h),(g,E)=>{C(E(g,{get data(){return i()},get form(){return e.form},get params(){return e.page.params}}),p=>n()[0]=p,()=>n()?.[0])}),y(o,v)};S(c,o=>{e.constructors[1]?o(m):o(d,-1)})}var u=X(c,2);{var _=o=>{var h=me(),v=$(h);{var P=g=>{var E=ae();te(()=>oe(E,f(s))),y(g,E)};S(v,g=>{f(t)&&g(P)})}ee(h),y(o,h)};S(u,o=>{f(r)&&o(_)})}y(a,O),Z()}const Pe=ce(de),pe=[()=>b(()=>import("../nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DAnv2asW.js","../chunks/BuvGONG-.js","../chunks/RhyL4cOo.js","../chunks/ukOf9Kzz.js","../chunks/DmEI2TOa.js","../chunks/DtVU-s3j.js","../chunks/DfoR1zCV.js","../chunks/BpsTpPGB.js","../chunks/CjMoR7Dp.js","../assets/sidebarActions.Ch26YL9l.css","../chunks/Cotx9uI_.js","../chunks/DRBq3mUM.js","../chunks/1pIWnoD_.js","../assets/AllSessionsPanel.BCLr3G4T.css","../assets/0.DwaaTdPO.css","../nodes/1.CU8f4oNB.js","../nodes/2.BYpvCgtu.js","../assets/2.BPFnFMPa.css","../nodes/3.DuMzeRg3.js","../assets/3.XJ3XhAQU.css","../nodes/4.RVM8gnvM.js","../assets/4.D3oacHIV.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{k,a3 as B,j as f,a6 as G,x as W,z as Y,p as F,a7 as H,u as J,a8 as K,a9 as Q,f as w,q as X,g as Z,l as x,m as $,n as ee,aa as L,t as te}from"../chunks/RhyL4cOo.js";import{h as re,m as se,u as ne,a as y,c as j,f as V,t as ae,s as oe}from"../chunks/BuvGONG-.js";import{p as A,i as S,b as C}from"../chunks/ukOf9Kzz.js";import{c as T}from"../chunks/CjMoR7Dp.js";function ce(a){return class extends ie{constructor(e){super({component:a,...e})}}}class ie{#t;#e;constructor(e){var n=new Map,i=(r,t)=>{var s=Y(t,!1,!1);return n.set(r,s),s};const l=new Proxy({...e.props||{},$$events:{}},{get(r,t){return f(n.get(t)??i(t,Reflect.get(r,t)))},has(r,t){return t===B?!0:(f(n.get(t)??i(t,Reflect.get(r,t))),Reflect.has(r,t))},set(r,t,s){return k(n.get(t)??i(t,s),s),Reflect.set(r,t,s)}});this.#e=(e.hydrate?re:se)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&G(),this.#t=l.$$events;for(const r of Object.keys(this.#e))r==="$set"||r==="$destroy"||r==="$on"||W(this,r,{get(){return this.#e[r]},set(t){this.#e[r]=t},enumerable:!0});this.#e.$set=r=>{Object.assign(l,r)},this.#e.$destroy=()=>{ne(this.#e)}}$set(e){this.#e.$set(e)}$on(e,n){this.#t[e]=this.#t[e]||[];const i=(...l)=>n.call(this,...l);return this.#t[e].push(i),()=>{this.#t[e]=this.#t[e].filter(l=>l!==i)}}$destroy(){this.#e.$destroy()}}const le="modulepreload",ue=function(a,e){return new URL(a,e).href},I={},b=function(e,n,i){let l=Promise.resolve();if(n&&n.length>0){let O=function(c){return Promise.all(c.map(m=>Promise.resolve(m).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const t=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),R=s?.nonce||s?.getAttribute("nonce");l=O(n.map(c=>{if(c=ue(c,i),c in I)return;I[c]=!0;const m=c.endsWith(".css"),d=m?'[rel="stylesheet"]':"";if(i)for(let _=t.length-1;_>=0;_--){const o=t[_];if(o.href===c&&(!m||o.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const u=document.createElement("link");if(u.rel=m?"stylesheet":le,m||(u.as="script"),u.crossOrigin="",u.href=c,R&&u.setAttribute("nonce",R),document.head.appendChild(u),m)return new Promise((_,o)=>{u.addEventListener("load",_),u.addEventListener("error",()=>o(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(t){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=t,window.dispatchEvent(s),!s.defaultPrevented)throw t}return l.then(t=>{for(const s of t||[])s.status==="rejected"&&r(s.reason);return e().catch(r)})},be={};var me=V('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),fe=V("<!> <!>",1);function de(a,e){F(e,!0);let n=A(e,"components",23,()=>[]),i=A(e,"data_0",3,null),l=A(e,"data_1",3,null);H(()=>e.stores.page.set(e.page)),J(()=>{e.stores,e.page,e.constructors,n(),e.form,i(),l(),e.stores.page.notify()});let r=x(!1),t=x(!1),s=x(null);K(()=>{const o=e.stores.page.subscribe(()=>{f(r)&&(k(t,!0),Q().then(()=>{k(s,document.title||"untitled page",!0)}))});return k(r,!0),o});const R=L(()=>e.constructors[1]);var O=fe(),c=w(O);{var m=o=>{const h=L(()=>e.constructors[0]);var v=j(),P=w(v);T(P,()=>f(h),(g,E)=>{C(E(g,{get data(){return i()},get form(){return e.form},get params(){return e.page.params},children:(p,he)=>{var D=j(),M=w(D);T(M,()=>f(R),(N,U)=>{C(U(N,{get data(){return l()},get form(){return e.form},get params(){return e.page.params}}),z=>n()[1]=z,()=>n()?.[1])}),y(p,D)},$$slots:{default:!0}}),p=>n()[0]=p,()=>n()?.[0])}),y(o,v)},d=o=>{const h=L(()=>e.constructors[0]);var v=j(),P=w(v);T(P,()=>f(h),(g,E)=>{C(E(g,{get data(){return i()},get form(){return e.form},get params(){return e.page.params}}),p=>n()[0]=p,()=>n()?.[0])}),y(o,v)};S(c,o=>{e.constructors[1]?o(m):o(d,-1)})}var u=X(c,2);{var _=o=>{var h=me(),v=$(h);{var P=g=>{var E=ae();te(()=>oe(E,f(s))),y(g,E)};S(v,g=>{f(t)&&g(P)})}ee(h),y(o,h)};S(u,o=>{f(r)&&o(_)})}y(a,O),Z()}const Pe=ce(de),pe=[()=>b(()=>import("../nodes/0.DAnv2asW.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url),()=>b(()=>import("../nodes/1.CU8f4oNB.js"),__vite__mapDeps([15,1,2,6]),import.meta.url),()=>b(()=>import("../nodes/2.BYpvCgtu.js"),__vite__mapDeps([16,1,2,3,7,12,8,4,5,6,9,13,17]),import.meta.url),()=>b(()=>import("../nodes/3.DuMzeRg3.js"),__vite__mapDeps([18,1,2,3,7,8,4,5,6,9,10,11,19]),import.meta.url),()=>b(()=>import("../nodes/4.RVM8gnvM.js"),__vite__mapDeps([20,1,2,3,7,11,21]),import.meta.url)],Re=[0],Oe={"/":[2],"/session/[target]":[3],"/usage":[4]},q={handleError:(({error:a})=>{console.error(a)}),reroute:(()=>{}),transport:{}},_e=Object.fromEntries(Object.entries(q.transport).map(([a,e])=>[a,e.decode])),we=Object.fromEntries(Object.entries(q.transport).map(([a,e])=>[a,e.encode])),ke=!1,xe=(a,e)=>_e[a](e),Le=()=>b(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(a=>a.default);export{xe as decode,_e as decoders,Oe as dictionary,we as encoders,Le as get_error_template,ke as hash,q as hooks,be as matchers,pe as nodes,Pe as root,Re as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"../chunks/DtVU-s3j.js";import{y as t}from"../chunks/DfoR1zCV.js";export{t as load_css,r as start};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as be,s as ce,b as M,a as r,f as p,c as xe,e as ge,w as ct}from"../chunks/BuvGONG-.js";import{p as ye,l as J,v as Xe,m as g,t as W,q as m,o as re,j as e,n as d,g as we,k as y,aa as T,f as ie,ab as pe,u as _e,a8 as Ye,y as qe,bh as ut,bi as vt}from"../chunks/RhyL4cOo.js";import{p as $e,i as $,b as Ee,s as dt,a as ft}from"../chunks/ukOf9Kzz.js";import{t as pt,a as Te,B as Pe,s as ke,b as Se,S as ht,p as mt}from"../chunks/DiOw8sHZ.js";import{b as le,s as ue,e as Me,d as ae,a as ve,r as gt,g as _t,h as bt}from"../chunks/BpsTpPGB.js";import{u as ze,p as Ie,d as Ue}from"../chunks/DiZbZSGT.js";import{s as x,M as yt,p as Ke,a as De,A as wt}from"../chunks/BCzBis9C.js";import{m as kt,h as xt,S as Ne,s as qt,a as We}from"../chunks/DRBq3mUM.js";let fe=null;function Je(){return"wakeLock"in navigator}async function je(){if(!(!Je()||fe))try{const Q=await navigator.wakeLock.request("screen");fe=Q,Q.addEventListener("release",()=>{fe=null})}catch{fe=null}}async function Fe(){if(fe){try{await fe.release()}catch{}fe=null}}pt({base:"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 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});var St=p('<span class="count svelte-18mom4e"> </span>'),zt=p('<div class="accordion-content svelte-18mom4e"><!></div>'),Et=p('<div><button class="accordion-header svelte-18mom4e" type="button"><iconify-icon></iconify-icon> <span class="accordion-title svelte-18mom4e"> </span> <!> <iconify-icon></iconify-icon></button> <!></div>',2);function Qe(Q,f){ye(f,!0);let u=$e(f,"count",3,null),I=$e(f,"defaultExpanded",3,!1),X=$e(f,"lazy",3,!1),q=J(Xe(I()??!1)),z=J(Xe(I()??!1));function K(){y(q,!e(q)),e(q)&&!e(z)&&y(z,!0),f.onExpandChange?.(e(q))}const N=T(()=>X()?e(z):!0);var C=Et();let Z;var R=g(C),_=g(R);W(()=>le(_,"icon",f.icon)),ue(_,1,"header-icon svelte-18mom4e");var b=m(_,2),O=re(b,!0),P=m(b,2);{var j=v=>{var k=St(),o=re(k,!0);W(()=>ce(o,u())),r(v,k)};$(P,v=>{u()!=null&&v(j)})}var U=m(P,2);W(()=>le(U,"icon",e(q)?"mdi:chevron-down":"mdi:chevron-right")),ue(U,1,"chevron svelte-18mom4e"),d(R);var ne=m(R,2);{var c=v=>{var k=zt(),o=g(k);Te(o,()=>f.children),d(k),r(v,k)};$(ne,v=>{e(q)&&e(N)&&v(c)})}d(C),W(()=>{Z=ue(C,1,"accordion svelte-18mom4e",null,Z,{expanded:e(q)}),ce(O,f.title)}),M("click",R,K),r(Q,C),we()}be(["click"]);var Tt=p('<p class="empty svelte-i8iwb7">No screenshots</p>'),Dt=p("<iconify-icon></iconify-icon>",2),Mt=p('<div class="screenshot-item svelte-i8iwb7"><button class="thumbnail svelte-i8iwb7"><img loading="lazy" class="svelte-i8iwb7"/></button> <!></div>'),It=p('<div class="screenshots-grid svelte-i8iwb7"></div>'),Rt=p("<iconify-icon></iconify-icon> <span>Close</span>",3),Ct=p("<iconify-icon></iconify-icon> <span>Delete</span>",3),At=p('<div class="modal-overlay svelte-i8iwb7" role="dialog" aria-modal="true" tabindex="-1"><div class="modal-content svelte-i8iwb7" role="document"><img class="modal-image svelte-i8iwb7"/> <div class="modal-actions svelte-i8iwb7"><!> <!></div> <div class="swipe-hint svelte-i8iwb7"><iconify-icon></iconify-icon> <span>Swipe left to close</span></div></div></div>',2),Lt=p("<!> <!>",1);function $t(Q,f){ye(f,!0);let u=J(null),I=J(0),X=J(0),q=J(!1);async function z(c){await fetch(`/api/sessions/${encodeURIComponent(f.sessionId)}/screenshots?path=${encodeURIComponent(c)}`,{method:"DELETE"}),e(u)===c&&y(u,null)}function K(c){y(u,c,!0)}function N(){y(u,null),b()}function C(c){return c.split("/").pop()||c}function Z(c){y(I,c.touches[0].clientX,!0),y(X,e(I),!0),y(q,!0)}function R(c){e(q)&&y(X,c.touches[0].clientX,!0)}function _(){if(!e(q))return;e(X)-e(I)<-100&&N(),b()}function b(){y(q,!1),y(I,0),y(X,0)}const O=T(()=>e(q)?Math.min(0,e(X)-e(I)):0);var P=Lt(),j=ie(P);Qe(j,{icon:"mdi:image-multiple",title:"Screenshots",get count(){return f.screenshots.length},children:(c,v)=>{var k=xe(),o=ie(k);{var s=a=>{var i=Tt();r(a,i)},n=a=>{var i=It();Me(i,23,()=>f.screenshots,(w,h)=>w.path+":"+h,(w,h)=>{var E=Mt(),S=g(E),D=re(S),F=m(S,2);Pe(F,{variant:"ghost",size:"icon-sm",class:"dismiss-btn",onclick:()=>z(e(h).path),title:"Dismiss screenshot",children:(H,G)=>{var Y=Dt();le(Y,"icon","mdi:close"),r(H,Y)},$$slots:{default:!0}}),d(E),W((H,G,Y)=>{ae(S,"title",H),ae(D,"src",`/api/files/image?path=${G??""}`),ae(D,"alt",Y)},[()=>C(e(h).path),()=>encodeURIComponent(e(h).path),()=>C(e(h).path)]),M("click",S,()=>K(e(h).path)),r(w,E)}),d(i),r(a,i)};$(o,a=>{f.screenshots.length===0?a(s):a(n,-1)})}r(c,k)},$$slots:{default:!0}});var U=m(j,2);{var ne=c=>{var v=At(),k=g(v),o=g(k),s=m(o,2),n=g(s);Pe(n,{variant:"secondary",size:"sm",onclick:h=>h.target===h.currentTarget&&N(),class:"modal-btn",children:(h,E)=>{var S=Rt(),D=ie(S);le(D,"icon","mdi:close"),pe(2),r(h,S)},$$slots:{default:!0}});var a=m(n,2);Pe(a,{variant:"destructive",size:"sm",onclick:()=>z(e(u)),class:"modal-btn",children:(h,E)=>{var S=Ct(),D=ie(S);le(D,"icon","mdi:delete"),pe(2),r(h,S)},$$slots:{default:!0}}),d(s);var i=m(s,2),w=g(i);le(w,"icon","mdi:gesture-swipe-left"),pe(2),d(i),d(k),d(v),W((h,E)=>{ve(k,`transform: translateX(${e(O)??""}px)`),ae(o,"src",`/api/files/image?path=${h??""}`),ae(o,"alt",E)},[()=>encodeURIComponent(e(u)),()=>C(e(u))]),M("click",v,h=>h.target===h.currentTarget&&N()),M("keydown",v,h=>h.key==="Escape"&&N()),M("touchstart",k,Z),M("touchmove",k,R),M("touchend",k,_),r(c,v)};$(U,c=>{e(u)&&c(ne)})}r(Q,P),we()}be(["click","keydown","touchstart","touchmove","touchend"]);var Pt=p('<p class="empty-text svelte-p8s4ss">Loading...</p>'),Ut=p('<p class="empty-text svelte-p8s4ss">No queued messages</p>'),Wt=p('<span class="queue-tag svelte-p8s4ss">dashboard</span>'),Xt=p('<div class="queue-item svelte-p8s4ss"><div class="queue-item-content svelte-p8s4ss"><span class="queue-text svelte-p8s4ss"> </span> <span class="queue-time svelte-p8s4ss"> <!></span></div> <div class="queue-item-actions svelte-p8s4ss"><button class="queue-btn svelte-p8s4ss" title="Move up"><iconify-icon></iconify-icon></button> <button class="queue-btn svelte-p8s4ss" title="Move down"><iconify-icon></iconify-icon></button> <button class="queue-btn queue-btn-delete svelte-p8s4ss" title="Remove"><iconify-icon></iconify-icon></button></div></div>',2),Ot=p('<button class="clear-all svelte-p8s4ss">Clear all</button>'),Bt=p('<div class="queue-list svelte-p8s4ss"></div> <!>',1);function Kt(Q,f){ye(f,!0);let u=J(Xe([])),I=J(!1);const X=T(()=>ke.sessionByTarget.get(f.target)),q=T(()=>e(X)?.queue_count??0);_e(()=>{e(q)!==e(u).length&&z()});async function z(){y(I,!0);try{const b=await(await fetch(`/api/sessions/${encodeURIComponent(f.target)}/queue`)).json();y(u,b.queue??[],!0)}catch{y(u,[],!0)}finally{y(I,!1)}}async function K(_){const O=await(await fetch(`/api/sessions/${encodeURIComponent(f.target)}/queue`,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({index:_})})).json();y(u,O.queue??[],!0)}async function N(){await fetch(`/api/sessions/${encodeURIComponent(f.target)}/queue`,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),y(u,[],!0)}async function C(_,b){const P=await(await fetch(`/api/sessions/${encodeURIComponent(f.target)}/queue`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({fromIndex:_,toIndex:b})})).json();y(u,P.queue??[],!0)}function Z(_){const b=Math.floor((Date.now()-_)/1e3);return b<60?`${b}s ago`:b<3600?`${Math.floor(b/60)}m ago`:`${Math.floor(b/3600)}h ago`}function R(_,b=80){return _.length>b?_.slice(0,b)+"...":_}Qe(Q,{icon:"mdi:tray-full",title:"Queue",get count(){return e(q)},children:(_,b)=>{var O=xe(),P=ie(O);{var j=c=>{var v=Pt();r(c,v)},U=c=>{var v=Ut();r(c,v)},ne=c=>{var v=Bt(),k=ie(v);Me(k,23,()=>e(u),n=>n.queuedAt,(n,a,i)=>{var w=Xt(),h=g(w),E=g(h),S=re(E,!0),D=m(E,2),F=g(D),H=m(F);{var G=se=>{var V=Wt();r(se,V)};$(H,se=>{e(a).kind==="control"&&se(G)})}d(D),d(h);var Y=m(h,2),oe=g(Y),he=g(oe);le(he,"icon","mdi:arrow-up"),ve(he,"font-size: 12px;"),d(oe);var t=m(oe,2),l=g(t);le(l,"icon","mdi:arrow-down"),ve(l,"font-size: 12px;"),d(t);var A=m(t,2),B=g(A);le(B,"icon","mdi:close"),ve(B,"font-size: 12px;"),d(A),d(Y),d(w),W((se,V)=>{ce(S,se),ce(F,`${V??""} `),oe.disabled=e(i)===0,t.disabled=e(i)===e(u).length-1},[()=>R(e(a).text),()=>Z(e(a).queuedAt)]),M("click",oe,()=>C(e(i),e(i)-1)),M("click",t,()=>C(e(i),e(i)+1)),M("click",A,()=>K(e(i))),r(n,w)}),d(k);var o=m(k,2);{var s=n=>{var a=Ot();M("click",a,N),r(n,a)};$(o,n=>{e(u).length>=2&&n(s)})}r(c,v)};$(P,c=>{e(I)&&e(u).length===0?c(j):e(u).length===0?c(U,1):c(ne,-1)})}r(_,O)},$$slots:{default:!0}}),we()}be(["click"]);var Nt=p('<span class="col svelte-uooa92"><span class="val svelte-uooa92"> </span> <span class="track svelte-uooa92" role="img"><span class="fill svelte-uooa92"></span></span> <span class="tag svelte-uooa92"> </span></span>'),jt=p('<span class="group svelte-uooa92"></span>'),Ft=p('<span class="track svelte-uooa92"><span class="fill svelte-uooa92"></span></span>'),Ht=p('<span class="group spark svelte-uooa92"><span class="line svelte-uooa92"><span class="val spend svelte-uooa92"> </span> <span class="val spend svelte-uooa92"> </span></span> <span class="ticks svelte-uooa92" aria-hidden="true"></span> <span class="line svelte-uooa92"><span class="tag svelte-uooa92">today</span> <span class="tag svelte-uooa92">30d</span></span></span>'),Vt=p('<label class="awake-row svelte-uooa92"><input type="checkbox" class="svelte-uooa92"/> <span>Keep screen on</span></label>'),Yt=p('<div class="sidebar-meters svelte-uooa92"><a class="strip svelte-uooa92" href="/usage"><!> <!></a> <!></div>');function Jt(Q,f){ye(f,!0);const u=14,I="Plan limits unavailable — open Usage for the reason.";_e(()=>ze.subscribe());const X=kt(xt()),q=Je(),z=T(()=>ze.summary),K=T(()=>ze.quota),N=T(()=>ze.today),C=T(()=>ke.systemStats);function Z(s){const n=s.toLowerCase();if(n.includes("session"))return"5h";const a=n.match(/(opus|sonnet|haiku|fable|mythos)/)?.[1];return a?a.slice(0,3):n.includes("week")?"wk":n.replace(/\s*limit$/,"").split(/\s+/)[0]}const R=T(()=>{const s=[];for(const a of e(K)?.available?e(K).limits:[])s.push({key:a.kind,tag:Z(a.label),percent:a.percent,color:Ne[a.severity].color,title:`${a.label}: ${Math.round(a.percent)}%`});const n=[["cpu","cpu",e(C).cpu],["ram","ram",e(C).ram]];e(C).swapTotal>0&&n.push(["swap","swp",e(C).swap]);for(const[a,i,w]of n)s.push({key:a,tag:i,percent:w,color:Ne[qt(w)].color,title:`${i.toUpperCase()}: ${Math.round(w)}%`});return s});function _(s){return X(Date.now()-s*864e5)}const b=T(()=>{if(!e(z))return[];const s=new Map(e(z).days.map(a=>[a.date,a.costUsd])),n=[];for(let a=u-1;a>=0;a--){const i=_(a);n.push({date:i,cost:s.get(i)??0})}return n}),O=T(()=>Math.max(1e-9,...e(b).map(s=>s.cost)));var P=Yt(),j=g(P),U=g(j);{var ne=s=>{var n=jt();Me(n,21,()=>e(R),a=>a.key,(a,i)=>{var w=Nt(),h=g(w),E=re(h),S=m(h,2),D=re(S),F=m(S,2),H=re(F,!0);d(w),W((G,Y)=>{ae(w,"title",e(i).title),ve(h,`color: ${e(i).color??""}`),ce(E,`${G??""}%`),ae(S,"aria-label",e(i).title),ve(D,`height: ${Y??""}%; background: ${e(i).color??""}`),ce(H,e(i).tag)},[()=>Math.round(e(i).percent),()=>Math.min(100,Math.max(0,e(i).percent))]),r(a,w)}),d(n),r(s,n)};$(U,s=>{e(R).length>0&&s(ne)})}var c=m(U,2);{var v=s=>{var n=Ht(),a=g(n),i=g(a),w=re(i,!0),h=m(i,2),E=re(h,!0);d(a);var S=m(a,2);Me(S,21,()=>e(b),D=>D.date,(D,F)=>{var H=Ft(),G=re(H);W((Y,oe)=>{ae(H,"title",`${e(F).date??""}: ${Y??""}`),ve(G,`height: ${oe??""}%; background: #3987e5`)},[()=>We(e(F).cost,!0),()=>Math.max(3,e(F).cost/e(O)*100)]),r(D,H)}),d(S),pe(2),d(n),W((D,F)=>{ce(w,D),ce(E,F)},[()=>e(N)===null?"—":We(e(N),!0),()=>e(z)===null?"—":We(e(z).costUsd,!0)]),r(s,n)};$(c,s=>{e(b).length>0&&s(v)})}d(j);var k=m(j,2);{var o=s=>{var n=Vt(),a=g(n);gt(a),pe(2),d(n),W(()=>_t(a,Ie.keepAwake)),M("change",a,i=>Ie.keepAwake=i.currentTarget.checked),r(s,n)};$(k,s=>{q&&s(o)})}d(P),W(()=>ae(j,"title",e(K)&&!e(K).available?I:void 0)),r(Q,P),we()}be(["change"]);var He=p('<iframe allow="microphone; clipboard-read; clipboard-write" class="svelte-qscfzl"></iframe>'),Qt=p('<div class="unreachable svelte-qscfzl"><iconify-icon></iconify-icon> <p><b class="svelte-qscfzl"> </b> is not on the tailnet right now.</p> <button type="button" class="svelte-qscfzl">Close this pane</button></div>',2),Zt=p('<div class="drop svelte-qscfzl" role="region" aria-label="Drop a session here">Replace this pane</div>'),Gt=p('<div class="shield svelte-qscfzl"></div>'),ea=p("<section><!> <!> <!></section>"),ta=p('<div><!> <div role="separator" aria-orientation="vertical" title="Drag to resize · double-click for 50/50"></div> <!></div>');function aa(Q,f){ye(f,!0);let u=J(null),I=J(null),X=J(null);const q=T(()=>Ke(f.a,Se.servers,Se.self)),z=T(()=>Ke(f.b,Se.servers,Se.self)),K=T(()=>{if(x.zoom==="a")return"1fr 0 0";if(x.zoom==="b")return"0 0 1fr";const o=Math.round(x.ratio*1e3)/10;return`${o}fr 6px ${100-o}fr`});function N(o){return o==="a"?e(u):e(I)}function C(o){return o&&e(u)?.contentWindow===o?"a":o&&e(I)?.contentWindow===o?"b":null}function Z(){for(const o of["a","b"]){const s=o==="a"?f.a:f.b;N(o)?.contentWindow?.postMessage({type:"claude-mux:focus",focused:x.focus===o,side:o,local:s.host===null},"*")}}_e(()=>{x.focus,Z()});function R(o){const s=C(o.source);if(!s)return;const n=o.data;if(!(!n||n.type!=="claude-mux:pane"))switch(n.action){case"focus":x.setFocus(s);break;case"focus-other":x.setFocus(x.other(s));break;case"swap":x.swap();break;case"zoom":x.toggleZoom(s);break;case"close":x.close(s);break;case"ready":Z();break}}let _=J(!1);function b(o){x.zoom||(y(_,!0),o.currentTarget.setPointerCapture(o.pointerId))}function O(o){if(!e(_)||!e(X))return;const s=e(X).getBoundingClientRect(),n=yt/s.width;x.setRatio(Math.min(1-n,Math.max(n,(o.clientX-s.left)/s.width)))}function P(){y(_,!1)}function j(o,s){s.preventDefault();const n=s.dataTransfer?.getData("text/claude-mux-session")??"",a=De(n);x.dragging=!1,a&&x.openIn(o,a,null)}Ye(()=>(window.addEventListener("message",R),()=>window.removeEventListener("message",R)));var U=ta();let ne;{const o=(n,a=qe,i=qe,w=qe,h=qe)=>{var E=ea();let S;var D=g(E);{var F=t=>{var l=xe(),A=ie(l);{var B=V=>{var ee=He();Ee(ee,de=>y(u,de),()=>e(u)),W(()=>{ae(ee,"src",w()),ae(ee,"title",i().target)}),r(V,ee)},se=V=>{var ee=He();Ee(ee,de=>y(I,de),()=>e(I)),W(()=>{ae(ee,"src",w()),ae(ee,"title",i().target)}),r(V,ee)};$(A,V=>{h()==="a"?V(B):V(se,-1)})}r(t,l)},H=t=>{var l=Qt(),A=g(l);le(A,"icon","mdi:lan-disconnect"),ue(A,1,"svelte-qscfzl");var B=m(A,2),se=g(B),V=re(se,!0);pe(),d(B);var ee=m(B,2);d(l),W(()=>ce(V,i().host)),M("click",ee,()=>x.close(a())),r(t,l)};$(D,t=>{w()?t(F):t(H,-1)})}var G=m(D,2);{var Y=t=>{var l=Zt();ge("dragover",l,A=>A.preventDefault()),ge("drop",l,A=>j(a(),A)),r(t,l)};$(G,t=>{x.dragging&&t(Y)})}var oe=m(G,2);{var he=t=>{var l=Gt();r(t,l)};$(oe,t=>{e(_)&&t(he)})}d(E),W(()=>S=ue(E,1,"pane svelte-qscfzl",null,S,{hidden:x.zoom!==null&&x.zoom!==a()})),r(n,E)};var c=g(U);o(c,()=>"a",()=>f.a,()=>e(q),()=>"a");var v=m(c,2);let s;var k=m(v,2);o(k,()=>"b",()=>f.b,()=>e(z),()=>"b"),d(U),Ee(U,n=>y(X,n),()=>e(X)),W(()=>s=ue(v,1,"divider svelte-qscfzl",null,s,{hidden:x.zoom!==null})),M("pointerdown",v,b),M("pointermove",v,O),M("pointerup",v,P),ge("pointercancel",v,P),M("dblclick",v,()=>x.setRatio(.5))}W(()=>{ne=ue(U,1,"split svelte-qscfzl",null,ne,{resizing:e(_),dragging:x.dragging}),ve(U,`grid-template-columns: ${e(K)??""}`)}),r(Q,U),we()}be(["click","pointerdown","pointermove","pointerup","dblclick"]);var sa=ct(p('<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, viewport-fit=cover"/> <script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"><\/script>',1)),Ve=p('<div class="sidebar-panel svelte-12qhfyh"><!></div>'),na=p('<div class="split-drop svelte-12qhfyh" role="region" aria-label="Drop to open side by side"><span>Open side by side</span></div>'),oa=p("<!> <!>",1),ra=p('<button class="backdrop svelte-12qhfyh" aria-label="Close menu"></button>'),ia=p('<div><aside><div class="sidebar-content svelte-12qhfyh"><!></div> <div class="sidebar-foot svelte-12qhfyh"><!> <!> <!></div> <div class="resize-handle svelte-12qhfyh" role="separator" aria-orientation="vertical"></div></aside> <main class="content svelte-12qhfyh"><!></main> <!></div>'),la=p('<div class="embed-shell svelte-12qhfyh"><!></div>');function ga(Q,f){ye(f,!0);const u=()=>ft(mt,"$page",I),[I,X]=dt(),q=T(()=>u().url.searchParams.has("embed")),z=T(()=>u().url.pathname.startsWith("/session/")?De(decodeURIComponent(u().url.pathname.split("/session/")[1])):null),K=T(()=>{const t=u().url.searchParams.get("with");return t?De(t):null}),N=T(()=>!e(q)&&e(z)!==null&&e(K)!==null);_e(()=>{x.setPanes(e(N)?e(z):null,e(N)?e(K):null)});function C(t){t.preventDefault();const l=De(t.dataTransfer?.getData("text/claude-mux-session")??"");x.dragging=!1,l&&e(z)&&x.splitWith(l,e(z))}const Z=T(()=>Ue.open);let R=J(null),_=0,b=0,O=!1;const P=ht.sidebarWidth,j=200,U=500;let c=J(300),v=J(!1);const k=T(()=>u().url.pathname.startsWith("/session/")),o=T(()=>u().url.pathname.startsWith("/session/")?decodeURIComponent(u().url.pathname.split("/session/")[1]):null),s=T(()=>ke.sessions.find(t=>t.tmux_target===e(o)||t.id===e(o)));Ye(()=>{ke.connect();{const t=localStorage.getItem(P);if(t){const l=parseInt(t,10);l>=j&&l<=U&&y(c,l,!0)}}}),ut(()=>{ke.disconnect(),Fe()});function n(){document.visibilityState==="visible"&&Ie.keepAwake&&je()}_e(()=>{Ie.keepAwake?je():Fe()}),_e(()=>(document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)));function a(t){t.preventDefault(),y(v,!0),document.addEventListener("mousemove",i),document.addEventListener("mouseup",w)}function i(t){if(!e(v))return;const l=Math.min(U,Math.max(j,t.clientX));y(c,l,!0)}function w(){y(v,!1),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",w),localStorage.setItem(P,e(c).toString())}function h(t){!(t.ctrlKey||t.metaKey)||t.altKey||t.shiftKey||t.key.toLowerCase()==="b"&&(t.preventDefault(),Ue.toggle())}function E(){Ue.close()}function S(t){_=t.touches[0].clientX,b=_,O=!0}function D(t){if(!O||!e(R))return;b=t.touches[0].clientX;const l=b-_;l<0&&(e(R).style.transform=`translateX(${l}px)`)}function F(){if(!O||!e(R))return;O=!1,b-_<-80&&E(),e(R).style.transform=""}var H=xe();bt("12qhfyh",t=>{var l=sa();pe(2),r(t,l)}),ge("keydown",vt,h);var G=ie(H);{var Y=t=>{var l=ia();let A;var B=g(l);let se;var V=g(B),ee=g(V);wt(ee,{compact:!0,onSessionSelect:E}),d(V);var de=m(V,2),Oe=g(de);{var Ze=L=>{var te=Ve(),me=g(te);Kt(me,{get target(){return e(o)}}),d(te),r(L,te)};$(Oe,L=>{e(o)&&L(Ze)})}var Be=m(Oe,2);{var Ge=L=>{var te=Ve(),me=g(te);{let Ce=T(()=>e(s).screenshots??[]);$t(me,{get sessionId(){return e(s).id},get screenshots(){return e(Ce)}})}d(te),r(L,te)};$(Be,L=>{e(s)&&L(Ge)})}var et=m(Be,2);Jt(et,{}),d(de);var tt=m(de,2);d(B),Ee(B,L=>y(R,L),()=>e(R));var Re=m(B,2),at=g(Re);{var st=L=>{aa(L,{get a(){return e(z)},get b(){return e(K)}})},nt=L=>{var te=oa(),me=ie(te);Te(me,()=>f.children);var Ce=m(me,2);{var it=Ae=>{var Le=na();ge("dragover",Le,lt=>lt.preventDefault()),ge("drop",Le,C),r(Ae,Le)};$(Ce,Ae=>{x.dragging&&e(z)&&Ae(it)})}r(L,te)};$(at,L=>{e(N)&&e(z)&&e(K)?L(st):L(nt,-1)})}d(Re);var ot=m(Re,2);{var rt=L=>{var te=ra();M("click",te,E),r(L,te)};$(ot,L=>{e(Z)&&L(rt)})}d(l),W(()=>{A=ue(l,1,"app-shell svelte-12qhfyh",null,A,{"resizing-any":e(v)}),se=ue(B,1,"sidebar svelte-12qhfyh",null,se,{open:e(Z),resizing:e(v)}),ve(B,`--sidebar-width: ${e(c)??""}px`)}),M("touchstart",B,S),M("touchmove",B,D),M("touchend",B,F),M("mousedown",tt,a),r(t,l)},oe=t=>{var l=la(),A=g(l);Te(A,()=>f.children),d(l),r(t,l)},he=t=>{var l=xe(),A=ie(l);Te(A,()=>f.children),r(t,l)};$(G,t=>{e(k)&&!e(q)?t(Y):e(q)?t(oe,1):t(he,-1)})}r(Q,H),we(),X()}be(["touchstart","touchmove","touchend","mousedown","click"]);export{ga as component};
|
|
1
|
+
import{d as be,s as ce,b as M,a as r,f as p,c as xe,e as ge,w as ct}from"../chunks/BuvGONG-.js";import{p as ye,l as J,v as Xe,m as g,t as W,q as m,o as re,j as e,n as d,g as we,k as y,aa as T,f as ie,ab as pe,u as _e,a8 as Ye,y as qe,bh as ut,bi as vt}from"../chunks/RhyL4cOo.js";import{p as $e,i as $,b as Ee,s as dt,a as ft}from"../chunks/ukOf9Kzz.js";import{t as pt,a as Te,B as Pe,s as ke,b as Se,S as ht,p as mt}from"../chunks/DmEI2TOa.js";import{b as le,s as ue,e as Me,d as ae,a as ve,r as gt,g as _t,h as bt}from"../chunks/BpsTpPGB.js";import{u as ze,p as Ie,d as Ue}from"../chunks/Cotx9uI_.js";import{s as x,M as yt,p as Ke,a as De,A as wt}from"../chunks/1pIWnoD_.js";import{m as kt,h as xt,S as Ne,s as qt,a as We}from"../chunks/DRBq3mUM.js";let fe=null;function Je(){return"wakeLock"in navigator}async function je(){if(!(!Je()||fe))try{const Q=await navigator.wakeLock.request("screen");fe=Q,Q.addEventListener("release",()=>{fe=null})}catch{fe=null}}async function Fe(){if(fe){try{await fe.release()}catch{}fe=null}}pt({base:"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 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});var St=p('<span class="count svelte-18mom4e"> </span>'),zt=p('<div class="accordion-content svelte-18mom4e"><!></div>'),Et=p('<div><button class="accordion-header svelte-18mom4e" type="button"><iconify-icon></iconify-icon> <span class="accordion-title svelte-18mom4e"> </span> <!> <iconify-icon></iconify-icon></button> <!></div>',2);function Qe(Q,f){ye(f,!0);let u=$e(f,"count",3,null),I=$e(f,"defaultExpanded",3,!1),X=$e(f,"lazy",3,!1),q=J(Xe(I()??!1)),z=J(Xe(I()??!1));function K(){y(q,!e(q)),e(q)&&!e(z)&&y(z,!0),f.onExpandChange?.(e(q))}const N=T(()=>X()?e(z):!0);var C=Et();let Z;var R=g(C),_=g(R);W(()=>le(_,"icon",f.icon)),ue(_,1,"header-icon svelte-18mom4e");var b=m(_,2),O=re(b,!0),P=m(b,2);{var j=v=>{var k=St(),o=re(k,!0);W(()=>ce(o,u())),r(v,k)};$(P,v=>{u()!=null&&v(j)})}var U=m(P,2);W(()=>le(U,"icon",e(q)?"mdi:chevron-down":"mdi:chevron-right")),ue(U,1,"chevron svelte-18mom4e"),d(R);var ne=m(R,2);{var c=v=>{var k=zt(),o=g(k);Te(o,()=>f.children),d(k),r(v,k)};$(ne,v=>{e(q)&&e(N)&&v(c)})}d(C),W(()=>{Z=ue(C,1,"accordion svelte-18mom4e",null,Z,{expanded:e(q)}),ce(O,f.title)}),M("click",R,K),r(Q,C),we()}be(["click"]);var Tt=p('<p class="empty svelte-i8iwb7">No screenshots</p>'),Dt=p("<iconify-icon></iconify-icon>",2),Mt=p('<div class="screenshot-item svelte-i8iwb7"><button class="thumbnail svelte-i8iwb7"><img loading="lazy" class="svelte-i8iwb7"/></button> <!></div>'),It=p('<div class="screenshots-grid svelte-i8iwb7"></div>'),Rt=p("<iconify-icon></iconify-icon> <span>Close</span>",3),Ct=p("<iconify-icon></iconify-icon> <span>Delete</span>",3),At=p('<div class="modal-overlay svelte-i8iwb7" role="dialog" aria-modal="true" tabindex="-1"><div class="modal-content svelte-i8iwb7" role="document"><img class="modal-image svelte-i8iwb7"/> <div class="modal-actions svelte-i8iwb7"><!> <!></div> <div class="swipe-hint svelte-i8iwb7"><iconify-icon></iconify-icon> <span>Swipe left to close</span></div></div></div>',2),Lt=p("<!> <!>",1);function $t(Q,f){ye(f,!0);let u=J(null),I=J(0),X=J(0),q=J(!1);async function z(c){await fetch(`/api/sessions/${encodeURIComponent(f.sessionId)}/screenshots?path=${encodeURIComponent(c)}`,{method:"DELETE"}),e(u)===c&&y(u,null)}function K(c){y(u,c,!0)}function N(){y(u,null),b()}function C(c){return c.split("/").pop()||c}function Z(c){y(I,c.touches[0].clientX,!0),y(X,e(I),!0),y(q,!0)}function R(c){e(q)&&y(X,c.touches[0].clientX,!0)}function _(){if(!e(q))return;e(X)-e(I)<-100&&N(),b()}function b(){y(q,!1),y(I,0),y(X,0)}const O=T(()=>e(q)?Math.min(0,e(X)-e(I)):0);var P=Lt(),j=ie(P);Qe(j,{icon:"mdi:image-multiple",title:"Screenshots",get count(){return f.screenshots.length},children:(c,v)=>{var k=xe(),o=ie(k);{var s=a=>{var i=Tt();r(a,i)},n=a=>{var i=It();Me(i,23,()=>f.screenshots,(w,h)=>w.path+":"+h,(w,h)=>{var E=Mt(),S=g(E),D=re(S),F=m(S,2);Pe(F,{variant:"ghost",size:"icon-sm",class:"dismiss-btn",onclick:()=>z(e(h).path),title:"Dismiss screenshot",children:(H,G)=>{var Y=Dt();le(Y,"icon","mdi:close"),r(H,Y)},$$slots:{default:!0}}),d(E),W((H,G,Y)=>{ae(S,"title",H),ae(D,"src",`/api/files/image?path=${G??""}`),ae(D,"alt",Y)},[()=>C(e(h).path),()=>encodeURIComponent(e(h).path),()=>C(e(h).path)]),M("click",S,()=>K(e(h).path)),r(w,E)}),d(i),r(a,i)};$(o,a=>{f.screenshots.length===0?a(s):a(n,-1)})}r(c,k)},$$slots:{default:!0}});var U=m(j,2);{var ne=c=>{var v=At(),k=g(v),o=g(k),s=m(o,2),n=g(s);Pe(n,{variant:"secondary",size:"sm",onclick:h=>h.target===h.currentTarget&&N(),class:"modal-btn",children:(h,E)=>{var S=Rt(),D=ie(S);le(D,"icon","mdi:close"),pe(2),r(h,S)},$$slots:{default:!0}});var a=m(n,2);Pe(a,{variant:"destructive",size:"sm",onclick:()=>z(e(u)),class:"modal-btn",children:(h,E)=>{var S=Ct(),D=ie(S);le(D,"icon","mdi:delete"),pe(2),r(h,S)},$$slots:{default:!0}}),d(s);var i=m(s,2),w=g(i);le(w,"icon","mdi:gesture-swipe-left"),pe(2),d(i),d(k),d(v),W((h,E)=>{ve(k,`transform: translateX(${e(O)??""}px)`),ae(o,"src",`/api/files/image?path=${h??""}`),ae(o,"alt",E)},[()=>encodeURIComponent(e(u)),()=>C(e(u))]),M("click",v,h=>h.target===h.currentTarget&&N()),M("keydown",v,h=>h.key==="Escape"&&N()),M("touchstart",k,Z),M("touchmove",k,R),M("touchend",k,_),r(c,v)};$(U,c=>{e(u)&&c(ne)})}r(Q,P),we()}be(["click","keydown","touchstart","touchmove","touchend"]);var Pt=p('<p class="empty-text svelte-p8s4ss">Loading...</p>'),Ut=p('<p class="empty-text svelte-p8s4ss">No queued messages</p>'),Wt=p('<span class="queue-tag svelte-p8s4ss">dashboard</span>'),Xt=p('<div class="queue-item svelte-p8s4ss"><div class="queue-item-content svelte-p8s4ss"><span class="queue-text svelte-p8s4ss"> </span> <span class="queue-time svelte-p8s4ss"> <!></span></div> <div class="queue-item-actions svelte-p8s4ss"><button class="queue-btn svelte-p8s4ss" title="Move up"><iconify-icon></iconify-icon></button> <button class="queue-btn svelte-p8s4ss" title="Move down"><iconify-icon></iconify-icon></button> <button class="queue-btn queue-btn-delete svelte-p8s4ss" title="Remove"><iconify-icon></iconify-icon></button></div></div>',2),Ot=p('<button class="clear-all svelte-p8s4ss">Clear all</button>'),Bt=p('<div class="queue-list svelte-p8s4ss"></div> <!>',1);function Kt(Q,f){ye(f,!0);let u=J(Xe([])),I=J(!1);const X=T(()=>ke.sessionByTarget.get(f.target)),q=T(()=>e(X)?.queue_count??0);_e(()=>{e(q)!==e(u).length&&z()});async function z(){y(I,!0);try{const b=await(await fetch(`/api/sessions/${encodeURIComponent(f.target)}/queue`)).json();y(u,b.queue??[],!0)}catch{y(u,[],!0)}finally{y(I,!1)}}async function K(_){const O=await(await fetch(`/api/sessions/${encodeURIComponent(f.target)}/queue`,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({index:_})})).json();y(u,O.queue??[],!0)}async function N(){await fetch(`/api/sessions/${encodeURIComponent(f.target)}/queue`,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),y(u,[],!0)}async function C(_,b){const P=await(await fetch(`/api/sessions/${encodeURIComponent(f.target)}/queue`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({fromIndex:_,toIndex:b})})).json();y(u,P.queue??[],!0)}function Z(_){const b=Math.floor((Date.now()-_)/1e3);return b<60?`${b}s ago`:b<3600?`${Math.floor(b/60)}m ago`:`${Math.floor(b/3600)}h ago`}function R(_,b=80){return _.length>b?_.slice(0,b)+"...":_}Qe(Q,{icon:"mdi:tray-full",title:"Queue",get count(){return e(q)},children:(_,b)=>{var O=xe(),P=ie(O);{var j=c=>{var v=Pt();r(c,v)},U=c=>{var v=Ut();r(c,v)},ne=c=>{var v=Bt(),k=ie(v);Me(k,23,()=>e(u),n=>n.queuedAt,(n,a,i)=>{var w=Xt(),h=g(w),E=g(h),S=re(E,!0),D=m(E,2),F=g(D),H=m(F);{var G=se=>{var V=Wt();r(se,V)};$(H,se=>{e(a).kind==="control"&&se(G)})}d(D),d(h);var Y=m(h,2),oe=g(Y),he=g(oe);le(he,"icon","mdi:arrow-up"),ve(he,"font-size: 12px;"),d(oe);var t=m(oe,2),l=g(t);le(l,"icon","mdi:arrow-down"),ve(l,"font-size: 12px;"),d(t);var A=m(t,2),B=g(A);le(B,"icon","mdi:close"),ve(B,"font-size: 12px;"),d(A),d(Y),d(w),W((se,V)=>{ce(S,se),ce(F,`${V??""} `),oe.disabled=e(i)===0,t.disabled=e(i)===e(u).length-1},[()=>R(e(a).text),()=>Z(e(a).queuedAt)]),M("click",oe,()=>C(e(i),e(i)-1)),M("click",t,()=>C(e(i),e(i)+1)),M("click",A,()=>K(e(i))),r(n,w)}),d(k);var o=m(k,2);{var s=n=>{var a=Ot();M("click",a,N),r(n,a)};$(o,n=>{e(u).length>=2&&n(s)})}r(c,v)};$(P,c=>{e(I)&&e(u).length===0?c(j):e(u).length===0?c(U,1):c(ne,-1)})}r(_,O)},$$slots:{default:!0}}),we()}be(["click"]);var Nt=p('<span class="col svelte-uooa92"><span class="val svelte-uooa92"> </span> <span class="track svelte-uooa92" role="img"><span class="fill svelte-uooa92"></span></span> <span class="tag svelte-uooa92"> </span></span>'),jt=p('<span class="group svelte-uooa92"></span>'),Ft=p('<span class="track svelte-uooa92"><span class="fill svelte-uooa92"></span></span>'),Ht=p('<span class="group spark svelte-uooa92"><span class="line svelte-uooa92"><span class="val spend svelte-uooa92"> </span> <span class="val spend svelte-uooa92"> </span></span> <span class="ticks svelte-uooa92" aria-hidden="true"></span> <span class="line svelte-uooa92"><span class="tag svelte-uooa92">today</span> <span class="tag svelte-uooa92">30d</span></span></span>'),Vt=p('<label class="awake-row svelte-uooa92"><input type="checkbox" class="svelte-uooa92"/> <span>Keep screen on</span></label>'),Yt=p('<div class="sidebar-meters svelte-uooa92"><a class="strip svelte-uooa92" href="/usage"><!> <!></a> <!></div>');function Jt(Q,f){ye(f,!0);const u=14,I="Plan limits unavailable — open Usage for the reason.";_e(()=>ze.subscribe());const X=kt(xt()),q=Je(),z=T(()=>ze.summary),K=T(()=>ze.quota),N=T(()=>ze.today),C=T(()=>ke.systemStats);function Z(s){const n=s.toLowerCase();if(n.includes("session"))return"5h";const a=n.match(/(opus|sonnet|haiku|fable|mythos)/)?.[1];return a?a.slice(0,3):n.includes("week")?"wk":n.replace(/\s*limit$/,"").split(/\s+/)[0]}const R=T(()=>{const s=[];for(const a of e(K)?.available?e(K).limits:[])s.push({key:a.kind,tag:Z(a.label),percent:a.percent,color:Ne[a.severity].color,title:`${a.label}: ${Math.round(a.percent)}%`});const n=[["cpu","cpu",e(C).cpu],["ram","ram",e(C).ram]];e(C).swapTotal>0&&n.push(["swap","swp",e(C).swap]);for(const[a,i,w]of n)s.push({key:a,tag:i,percent:w,color:Ne[qt(w)].color,title:`${i.toUpperCase()}: ${Math.round(w)}%`});return s});function _(s){return X(Date.now()-s*864e5)}const b=T(()=>{if(!e(z))return[];const s=new Map(e(z).days.map(a=>[a.date,a.costUsd])),n=[];for(let a=u-1;a>=0;a--){const i=_(a);n.push({date:i,cost:s.get(i)??0})}return n}),O=T(()=>Math.max(1e-9,...e(b).map(s=>s.cost)));var P=Yt(),j=g(P),U=g(j);{var ne=s=>{var n=jt();Me(n,21,()=>e(R),a=>a.key,(a,i)=>{var w=Nt(),h=g(w),E=re(h),S=m(h,2),D=re(S),F=m(S,2),H=re(F,!0);d(w),W((G,Y)=>{ae(w,"title",e(i).title),ve(h,`color: ${e(i).color??""}`),ce(E,`${G??""}%`),ae(S,"aria-label",e(i).title),ve(D,`height: ${Y??""}%; background: ${e(i).color??""}`),ce(H,e(i).tag)},[()=>Math.round(e(i).percent),()=>Math.min(100,Math.max(0,e(i).percent))]),r(a,w)}),d(n),r(s,n)};$(U,s=>{e(R).length>0&&s(ne)})}var c=m(U,2);{var v=s=>{var n=Ht(),a=g(n),i=g(a),w=re(i,!0),h=m(i,2),E=re(h,!0);d(a);var S=m(a,2);Me(S,21,()=>e(b),D=>D.date,(D,F)=>{var H=Ft(),G=re(H);W((Y,oe)=>{ae(H,"title",`${e(F).date??""}: ${Y??""}`),ve(G,`height: ${oe??""}%; background: #3987e5`)},[()=>We(e(F).cost,!0),()=>Math.max(3,e(F).cost/e(O)*100)]),r(D,H)}),d(S),pe(2),d(n),W((D,F)=>{ce(w,D),ce(E,F)},[()=>e(N)===null?"—":We(e(N),!0),()=>e(z)===null?"—":We(e(z).costUsd,!0)]),r(s,n)};$(c,s=>{e(b).length>0&&s(v)})}d(j);var k=m(j,2);{var o=s=>{var n=Vt(),a=g(n);gt(a),pe(2),d(n),W(()=>_t(a,Ie.keepAwake)),M("change",a,i=>Ie.keepAwake=i.currentTarget.checked),r(s,n)};$(k,s=>{q&&s(o)})}d(P),W(()=>ae(j,"title",e(K)&&!e(K).available?I:void 0)),r(Q,P),we()}be(["change"]);var He=p('<iframe allow="microphone; clipboard-read; clipboard-write" class="svelte-qscfzl"></iframe>'),Qt=p('<div class="unreachable svelte-qscfzl"><iconify-icon></iconify-icon> <p><b class="svelte-qscfzl"> </b> is not on the tailnet right now.</p> <button type="button" class="svelte-qscfzl">Close this pane</button></div>',2),Zt=p('<div class="drop svelte-qscfzl" role="region" aria-label="Drop a session here">Replace this pane</div>'),Gt=p('<div class="shield svelte-qscfzl"></div>'),ea=p("<section><!> <!> <!></section>"),ta=p('<div><!> <div role="separator" aria-orientation="vertical" title="Drag to resize · double-click for 50/50"></div> <!></div>');function aa(Q,f){ye(f,!0);let u=J(null),I=J(null),X=J(null);const q=T(()=>Ke(f.a,Se.servers,Se.self)),z=T(()=>Ke(f.b,Se.servers,Se.self)),K=T(()=>{if(x.zoom==="a")return"1fr 0 0";if(x.zoom==="b")return"0 0 1fr";const o=Math.round(x.ratio*1e3)/10;return`${o}fr 6px ${100-o}fr`});function N(o){return o==="a"?e(u):e(I)}function C(o){return o&&e(u)?.contentWindow===o?"a":o&&e(I)?.contentWindow===o?"b":null}function Z(){for(const o of["a","b"]){const s=o==="a"?f.a:f.b;N(o)?.contentWindow?.postMessage({type:"claude-mux:focus",focused:x.focus===o,side:o,local:s.host===null},"*")}}_e(()=>{x.focus,Z()});function R(o){const s=C(o.source);if(!s)return;const n=o.data;if(!(!n||n.type!=="claude-mux:pane"))switch(n.action){case"focus":x.setFocus(s);break;case"focus-other":x.setFocus(x.other(s));break;case"swap":x.swap();break;case"zoom":x.toggleZoom(s);break;case"close":x.close(s);break;case"ready":Z();break}}let _=J(!1);function b(o){x.zoom||(y(_,!0),o.currentTarget.setPointerCapture(o.pointerId))}function O(o){if(!e(_)||!e(X))return;const s=e(X).getBoundingClientRect(),n=yt/s.width;x.setRatio(Math.min(1-n,Math.max(n,(o.clientX-s.left)/s.width)))}function P(){y(_,!1)}function j(o,s){s.preventDefault();const n=s.dataTransfer?.getData("text/claude-mux-session")??"",a=De(n);x.dragging=!1,a&&x.openIn(o,a,null)}Ye(()=>(window.addEventListener("message",R),()=>window.removeEventListener("message",R)));var U=ta();let ne;{const o=(n,a=qe,i=qe,w=qe,h=qe)=>{var E=ea();let S;var D=g(E);{var F=t=>{var l=xe(),A=ie(l);{var B=V=>{var ee=He();Ee(ee,de=>y(u,de),()=>e(u)),W(()=>{ae(ee,"src",w()),ae(ee,"title",i().target)}),r(V,ee)},se=V=>{var ee=He();Ee(ee,de=>y(I,de),()=>e(I)),W(()=>{ae(ee,"src",w()),ae(ee,"title",i().target)}),r(V,ee)};$(A,V=>{h()==="a"?V(B):V(se,-1)})}r(t,l)},H=t=>{var l=Qt(),A=g(l);le(A,"icon","mdi:lan-disconnect"),ue(A,1,"svelte-qscfzl");var B=m(A,2),se=g(B),V=re(se,!0);pe(),d(B);var ee=m(B,2);d(l),W(()=>ce(V,i().host)),M("click",ee,()=>x.close(a())),r(t,l)};$(D,t=>{w()?t(F):t(H,-1)})}var G=m(D,2);{var Y=t=>{var l=Zt();ge("dragover",l,A=>A.preventDefault()),ge("drop",l,A=>j(a(),A)),r(t,l)};$(G,t=>{x.dragging&&t(Y)})}var oe=m(G,2);{var he=t=>{var l=Gt();r(t,l)};$(oe,t=>{e(_)&&t(he)})}d(E),W(()=>S=ue(E,1,"pane svelte-qscfzl",null,S,{hidden:x.zoom!==null&&x.zoom!==a()})),r(n,E)};var c=g(U);o(c,()=>"a",()=>f.a,()=>e(q),()=>"a");var v=m(c,2);let s;var k=m(v,2);o(k,()=>"b",()=>f.b,()=>e(z),()=>"b"),d(U),Ee(U,n=>y(X,n),()=>e(X)),W(()=>s=ue(v,1,"divider svelte-qscfzl",null,s,{hidden:x.zoom!==null})),M("pointerdown",v,b),M("pointermove",v,O),M("pointerup",v,P),ge("pointercancel",v,P),M("dblclick",v,()=>x.setRatio(.5))}W(()=>{ne=ue(U,1,"split svelte-qscfzl",null,ne,{resizing:e(_),dragging:x.dragging}),ve(U,`grid-template-columns: ${e(K)??""}`)}),r(Q,U),we()}be(["click","pointerdown","pointermove","pointerup","dblclick"]);var sa=ct(p('<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, viewport-fit=cover"/> <script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"><\/script>',1)),Ve=p('<div class="sidebar-panel svelte-12qhfyh"><!></div>'),na=p('<div class="split-drop svelte-12qhfyh" role="region" aria-label="Drop to open side by side"><span>Open side by side</span></div>'),oa=p("<!> <!>",1),ra=p('<button class="backdrop svelte-12qhfyh" aria-label="Close menu"></button>'),ia=p('<div><aside><div class="sidebar-content svelte-12qhfyh"><!></div> <div class="sidebar-foot svelte-12qhfyh"><!> <!> <!></div> <div class="resize-handle svelte-12qhfyh" role="separator" aria-orientation="vertical"></div></aside> <main class="content svelte-12qhfyh"><!></main> <!></div>'),la=p('<div class="embed-shell svelte-12qhfyh"><!></div>');function ga(Q,f){ye(f,!0);const u=()=>ft(mt,"$page",I),[I,X]=dt(),q=T(()=>u().url.searchParams.has("embed")),z=T(()=>u().url.pathname.startsWith("/session/")?De(decodeURIComponent(u().url.pathname.split("/session/")[1])):null),K=T(()=>{const t=u().url.searchParams.get("with");return t?De(t):null}),N=T(()=>!e(q)&&e(z)!==null&&e(K)!==null);_e(()=>{x.setPanes(e(N)?e(z):null,e(N)?e(K):null)});function C(t){t.preventDefault();const l=De(t.dataTransfer?.getData("text/claude-mux-session")??"");x.dragging=!1,l&&e(z)&&x.splitWith(l,e(z))}const Z=T(()=>Ue.open);let R=J(null),_=0,b=0,O=!1;const P=ht.sidebarWidth,j=200,U=500;let c=J(300),v=J(!1);const k=T(()=>u().url.pathname.startsWith("/session/")),o=T(()=>u().url.pathname.startsWith("/session/")?decodeURIComponent(u().url.pathname.split("/session/")[1]):null),s=T(()=>ke.sessions.find(t=>t.tmux_target===e(o)||t.id===e(o)));Ye(()=>{ke.connect();{const t=localStorage.getItem(P);if(t){const l=parseInt(t,10);l>=j&&l<=U&&y(c,l,!0)}}}),ut(()=>{ke.disconnect(),Fe()});function n(){document.visibilityState==="visible"&&Ie.keepAwake&&je()}_e(()=>{Ie.keepAwake?je():Fe()}),_e(()=>(document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)));function a(t){t.preventDefault(),y(v,!0),document.addEventListener("mousemove",i),document.addEventListener("mouseup",w)}function i(t){if(!e(v))return;const l=Math.min(U,Math.max(j,t.clientX));y(c,l,!0)}function w(){y(v,!1),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",w),localStorage.setItem(P,e(c).toString())}function h(t){!(t.ctrlKey||t.metaKey)||t.altKey||t.shiftKey||t.key.toLowerCase()==="b"&&(t.preventDefault(),Ue.toggle())}function E(){Ue.close()}function S(t){_=t.touches[0].clientX,b=_,O=!0}function D(t){if(!O||!e(R))return;b=t.touches[0].clientX;const l=b-_;l<0&&(e(R).style.transform=`translateX(${l}px)`)}function F(){if(!O||!e(R))return;O=!1,b-_<-80&&E(),e(R).style.transform=""}var H=xe();bt("12qhfyh",t=>{var l=sa();pe(2),r(t,l)}),ge("keydown",vt,h);var G=ie(H);{var Y=t=>{var l=ia();let A;var B=g(l);let se;var V=g(B),ee=g(V);wt(ee,{compact:!0,onSessionSelect:E}),d(V);var de=m(V,2),Oe=g(de);{var Ze=L=>{var te=Ve(),me=g(te);Kt(me,{get target(){return e(o)}}),d(te),r(L,te)};$(Oe,L=>{e(o)&&L(Ze)})}var Be=m(Oe,2);{var Ge=L=>{var te=Ve(),me=g(te);{let Ce=T(()=>e(s).screenshots??[]);$t(me,{get sessionId(){return e(s).id},get screenshots(){return e(Ce)}})}d(te),r(L,te)};$(Be,L=>{e(s)&&L(Ge)})}var et=m(Be,2);Jt(et,{}),d(de);var tt=m(de,2);d(B),Ee(B,L=>y(R,L),()=>e(R));var Re=m(B,2),at=g(Re);{var st=L=>{aa(L,{get a(){return e(z)},get b(){return e(K)}})},nt=L=>{var te=oa(),me=ie(te);Te(me,()=>f.children);var Ce=m(me,2);{var it=Ae=>{var Le=na();ge("dragover",Le,lt=>lt.preventDefault()),ge("drop",Le,C),r(Ae,Le)};$(Ce,Ae=>{x.dragging&&e(z)&&Ae(it)})}r(L,te)};$(at,L=>{e(N)&&e(z)&&e(K)?L(st):L(nt,-1)})}d(Re);var ot=m(Re,2);{var rt=L=>{var te=ra();M("click",te,E),r(L,te)};$(ot,L=>{e(Z)&&L(rt)})}d(l),W(()=>{A=ue(l,1,"app-shell svelte-12qhfyh",null,A,{"resizing-any":e(v)}),se=ue(B,1,"sidebar svelte-12qhfyh",null,se,{open:e(Z),resizing:e(v)}),ve(B,`--sidebar-width: ${e(c)??""}px`)}),M("touchstart",B,S),M("touchmove",B,D),M("touchend",B,F),M("mousedown",tt,a),r(t,l)},oe=t=>{var l=la(),A=g(l);Te(A,()=>f.children),d(l),r(t,l)},he=t=>{var l=xe(),A=ie(l);Te(A,()=>f.children),r(t,l)};$(G,t=>{e(k)&&!e(q)?t(Y):e(q)?t(oe,1):t(he,-1)})}r(Q,H),we(),X()}be(["touchstart","touchmove","touchend","mousedown","click"]);export{ga as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as g,f as i,s as a}from"../chunks/BuvGONG-.js";import{p as c,f as h,t as l,g as v,o as e,q as _}from"../chunks/RhyL4cOo.js";import{p as s}from"../chunks/
|
|
1
|
+
import{a as g,f as i,s as a}from"../chunks/BuvGONG-.js";import{p as c,f as h,t as l,g as v,o as e,q as _}from"../chunks/RhyL4cOo.js";import{p as s}from"../chunks/DfoR1zCV.js";const x={get error(){return s.error},get status(){return s.status}},o=x;var d=i("<h1> </h1> <p> </p>",1);function y(p,m){c(m,!0);var r=d(),t=h(r),n=e(t,!0),f=_(t,2),u=e(f,!0);l(()=>{a(n,o.status),a(u,o.error?.message)}),g(p,r),v()}export{y as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a as m,f as d}from"../chunks/BuvGONG-.js";import{p as h,u as v,f as _,g as S,i as k,j as i,k as c,$ as x,l as $,m as w,n as T}from"../chunks/RhyL4cOo.js";import{i as b}from"../chunks/ukOf9Kzz.js";import{h as A}from"../chunks/BpsTpPGB.js";import{A as E}from"../chunks/
|
|
1
|
+
import{c as u,a as m,f as d}from"../chunks/BuvGONG-.js";import{p as h,u as v,f as _,g as S,i as k,j as i,k as c,$ as x,l as $,m as w,n as T}from"../chunks/RhyL4cOo.js";import{i as b}from"../chunks/ukOf9Kzz.js";import{h as A}from"../chunks/BpsTpPGB.js";import{A as E}from"../chunks/1pIWnoD_.js";import{g as I}from"../chunks/DtVU-s3j.js";import{s as r,S as R}from"../chunks/DmEI2TOa.js";var j=d('<div class="root-page svelte-1uha8ag"><!></div>');function Y(f,l){h(l,!0);let a=$("waiting");v(()=>{if(i(a)==="waiting"){if(r.sessions.length>0){const t=new Set(r.sessions.map(s=>s.tmux_target).filter(s=>!!s));let e=null;try{e=localStorage.getItem(R.lastSession)}catch{}const o=e&&t.has(e)?e:r.sessions.find(s=>s.tmux_target)?.tmux_target;if(o){c(a,"redirecting"),I(`/session/${encodeURIComponent(o)}`,{replaceState:!0});return}}if(r.connected){const t=setTimeout(()=>{i(a)==="waiting"&&c(a,"fallback")},300);return()=>clearTimeout(t)}}});var n=u();A("1uha8ag",t=>{k(()=>{x.title="claude-mux"})});var p=_(n);{var g=t=>{var e=j(),o=w(e);E(o,{}),T(e),m(t,e)};b(p,t=>{i(a)==="fallback"&&t(g)})}m(f,n),S()}export{Y as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as _r,c as Le,a as d,f as m,l as Fo,o as Ko,p as ua,t as $t,s as C,d as $n,b as X,e as Un}from"../chunks/BuvGONG-.js";import{h as Bs,c as Ai,ac as Ts,t as w,a as Ii,P as Wo,bj as Go,e as Pi,ae as Vo,at as Xo,be as Qo,bb as Zo,aT as Yo,bk as Jo,bl as el,u as Tt,O as Ks,p as jt,f as K,g as Ct,j as t,m as _,n as v,aa as y,y as Vn,k as p,l as D,v as Yt,q as h,o as O,ab as Qe,bi as da,a9 as os,a8 as yr,bh as tl,a7 as Di,bm as nl,$ as sl,bn as rl}from"../chunks/RhyL4cOo.js";import{p as Z,i as A,r as Kn,c as Fn,b as En,s as il,a as al}from"../chunks/ukOf9Kzz.js";import{j as ts,d as pt,e as st,s as Q,b as W,a as un,k as Gs,c as ha,r as pa,i as ol,l as ll,m as cl,h as ul}from"../chunks/BpsTpPGB.js";import{c as Ye}from"../chunks/CjMoR7Dp.js";import{u as va,a as Rn,m as es,a5 as dl,e as lt,o as hl,C as fa,a6 as pl,w as ls,f as ga,D as vl,g as ma,a7 as ba,a8 as fl,a9 as _a,aa as gl,ab as ml,h as bl,ac as Vs,ad as _l,l as ya,ae as yl,af as kl,ag as Oi,R as ka,$ as ys,ah as As,K as Gn,s as Es,c as xa,B as cs,z as Li,L as Xs,a0 as Pr,ai as xl,r as Mi,aj as wl,F as Sl,v as Tl,x as jl,y as Cl,E as wa,Q as El,b as kr,I as xr,S as wr,a1 as zi,J as Rl,q as Sr,P as Tr,n as jr,_ as Al,T as Il,U as Pl,V as Dl,W as Ol,X as Ll,Y as Ml,Z as zl,p as $l}from"../chunks/DiOw8sHZ.js";import{g as Dr}from"../chunks/Ds3l27rE.js";import{u as Cr,p as Bl,d as $i}from"../chunks/DiZbZSGT.js";import{e as Ws,T as ql,c as qs,S as Nl,a as Hl,f as Sa}from"../chunks/DRBq3mUM.js";function Rs(i,e,n=!1,s=!1,r=!1,a=!1){var l=i,o="";if(n){var u=i;Bs&&(l=Ai(Ts(u)))}w(()=>{var g=Wo;if(o===(o=e()??"")){Bs&&Ii();return}if(n&&!Bs){g.nodes=null,u.innerHTML=o,o!==""&&_r(Ts(u),u.lastChild);return}if(g.nodes!==null&&(Go(g.nodes.start,g.nodes.end),g.nodes=null),o!==""){if(Bs){Pi.data;for(var b=Ii(),k=b;b!==null&&(b.nodeType!==Vo||b.data!=="");)k=b,b=Xo(b);if(b===null)throw Qo(),Zo;_r(Pi,k),l=Ai(b);return}var S=s?Jo:r?el:void 0,T=Yo(s?"svg":r?"math":"template",S);T.innerHTML=o;var j=s||r?T:T.content;if(_r(Ts(j),j.lastChild),s||r)for(;Ts(j);)l.before(Ts(j));else l.before(j)}})}function $r(i){Tt(()=>Ks(()=>i()))}var Ul=new Set(["$$slots","$$events","$$legacy","id","children","child","width","height"]),Fl=Fo('<svg viewBox="0 0 30 10" preserveAspectRatio="none" data-arrow=""><polygon points="0,0 30,0 15,10" fill="currentColor"></polygon></svg>'),Kl=m("<span><!></span>");function Wl(i,e){jt(e,!0);let n=Z(e,"id",19,va),s=Z(e,"width",3,10),r=Z(e,"height",3,5),a=Kn(e,Ul);const l=y(()=>es(a,{id:n()}));var o=Le(),u=K(o);{var g=k=>{var S=Le(),T=K(S);Rn(T,()=>e.child,()=>({props:t(l)})),d(k,S)},b=k=>{var S=Kl();ts(S,()=>({...t(l)}));var T=_(S);{var j=E=>{var P=Le(),B=K(P);Rn(B,()=>e.children??Vn),d(E,P)},L=E=>{var P=Fl();w(()=>{pt(P,"width",s()),pt(P,"height",r())}),d(E,P)};A(T,E=>{e.children?E(j):E(L,-1)})}v(S),d(k,S)};A(u,k=>{e.child?k(g):k(b,-1)})}d(i,o),Ct()}var Gl=new Set(["$$slots","$$events","$$legacy","id","ref"]);function Vl(i,e){jt(e,!0);let n=Z(e,"id",19,va),s=Z(e,"ref",15,null),r=Kn(e,Gl);const a=dl.create({id:lt(()=>n()),ref:lt(()=>s(),o=>s(o))}),l=y(()=>es(r,a.props));Wl(i,Fn(()=>t(l))),Ct()}class Or{#n;#t;#e=null;constructor(e,n){this.#t=e,this.#n=n,this.stop=this.stop.bind(this),this.start=this.start.bind(this),hl(this.stop)}#i(){this.#e!==null&&(window.clearTimeout(this.#e),this.#e=null)}stop(){this.#i()}start(...e){this.#i(),this.#e=window.setTimeout(()=>{this.#e=null,this.#t(...e)},this.#n)}}const Ta=bl({component:"tooltip",parts:["content","trigger"]}),ja=new fa("Tooltip.Provider"),Br=new fa("Tooltip.Root");class Xl{#n=D(Yt(new Map));get triggers(){return t(this.#n)}set triggers(e){p(this.#n,e,!0)}#t=D(null);get activeTriggerId(){return t(this.#t)}set activeTriggerId(e){p(this.#t,e,!0)}#e=y(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.node??null});get activeTriggerNode(){return t(this.#e)}set activeTriggerNode(e){p(this.#e,e)}#i=y(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.payload??null});get activePayload(){return t(this.#i)}set activePayload(e){p(this.#i,e)}register=e=>{const n=new Map(this.triggers);n.set(e.id,e),this.triggers=n,this.#s()};update=e=>{const n=new Map(this.triggers);n.set(e.id,e),this.triggers=n,this.#s()};unregister=e=>{if(!this.triggers.has(e))return;const n=new Map(this.triggers);n.delete(e),this.triggers=n,this.activeTriggerId===e&&(this.activeTriggerId=null)};setActiveTrigger=e=>{if(e===null){this.activeTriggerId=null;return}if(!this.triggers.has(e)){this.activeTriggerId=null;return}this.activeTriggerId=e};get=e=>this.triggers.get(e);has=e=>this.triggers.has(e);getFirstTriggerId=()=>{const e=this.triggers.entries().next();return e.done?null:e.value[0]};#s=()=>{const e=this.activeTriggerId;e!==null&&(this.triggers.has(e)||(this.activeTriggerId=null))}}class qr{static create(e){return ja.set(new qr(e))}opts;#n=D(!0);get isOpenDelayed(){return t(this.#n)}set isOpenDelayed(e){p(this.#n,e,!0)}isPointerInTransit=ga(!1);#t;#e=D(null);constructor(e){this.opts=e,this.#t=new Or(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current),$r(()=>Ko(window,"scroll",n=>{const s=t(this.#e);if(!s)return;const r=s.triggerNode;if(!r)return;const a=n.target;(a instanceof Element||a instanceof Document)&&a.contains(r)&&s.handleClose()}))}#i=()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}else this.#t.start()};#s=()=>{this.#t.stop()};onOpen=e=>{t(this.#e)&&t(this.#e)!==e&&t(this.#e).handleClose(),this.#s(),this.isOpenDelayed=!1,p(this.#e,e,!0)};onClose=e=>{t(this.#e)===e&&(p(this.#e,null),this.#i())};isTooltipOpen=e=>t(this.#e)===e}class Nr{static create(e){return Br.set(new Nr(e,ja.get()))}opts;provider;#n=y(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current);get delayDuration(){return t(this.#n)}set delayDuration(e){p(this.#n,e)}#t=y(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current);get disableHoverableContent(){return t(this.#t)}set disableHoverableContent(e){p(this.#t,e)}#e=y(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current);get disableCloseOnTriggerClick(){return t(this.#e)}set disableCloseOnTriggerClick(e){p(this.#e,e)}#i=y(()=>this.opts.disabled.current??this.provider.opts.disabled.current);get disabled(){return t(this.#i)}set disabled(e){p(this.#i,e)}#s=y(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current);get ignoreNonKeyboardFocus(){return t(this.#s)}set ignoreNonKeyboardFocus(e){p(this.#s,e)}registry;tether;#r=D(null);get contentNode(){return t(this.#r)}set contentNode(e){p(this.#r,e,!0)}contentPresence;#a=D(!1);#o;#l=y(()=>this.opts.open.current?t(this.#a)?"delayed-open":"instant-open":"closed");get stateAttr(){return t(this.#l)}set stateAttr(e){p(this.#l,e)}constructor(e,n){this.opts=e,this.provider=n,this.tether=e.tether.current?.state??null,this.registry=this.tether?.registry??new Xl,this.#o=new Or(()=>{p(this.#a,!0),this.opts.open.current=!0},this.delayDuration??0),this.tether&&(this.tether.root=this,$r(()=>()=>{this.tether?.root===this&&(this.tether.root=null)})),this.contentPresence=new pl({open:this.opts.open,ref:lt(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),ls(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&(this.#o=new Or(()=>{p(this.#a,!0),this.opts.open.current=!0},this.delayDuration))}),ls(()=>this.opts.open.current,s=>{s?(this.ensureActiveTrigger(),this.provider.onOpen(this)):this.provider.onClose(this)},{lazy:!0}),ls(()=>this.opts.triggerId.current,s=>{s!==this.registry.activeTriggerId&&this.registry.setActiveTrigger(s)}),ls(()=>this.registry.activeTriggerId,s=>{this.opts.triggerId.current!==s&&(this.opts.triggerId.current=s)})}handleOpen=()=>{this.#o.stop(),p(this.#a,!1),this.ensureActiveTrigger(),this.opts.open.current=!0};handleClose=()=>{this.#o.stop(),this.opts.open.current=!1};cancelPendingOpen=()=>{this.#o.stop()};#c=()=>{this.#o.stop();const e=!this.provider.isOpenDelayed,n=this.delayDuration??0;e||n===0?(p(this.#a,!1),this.opts.open.current=!0):this.#o.start()};onTriggerEnter=e=>{this.setActiveTrigger(e),this.#c()};onTriggerLeave=()=>{this.disableHoverableContent?this.handleClose():this.#o.stop()};ensureActiveTrigger=()=>{if(this.registry.activeTriggerId!==null&&this.registry.has(this.registry.activeTriggerId))return;if(this.opts.triggerId.current!==null&&this.registry.has(this.opts.triggerId.current)){this.registry.setActiveTrigger(this.opts.triggerId.current);return}const e=this.registry.getFirstTriggerId();this.registry.setActiveTrigger(e)};setActiveTrigger=e=>{this.registry.setActiveTrigger(e)};registerTrigger=e=>{this.registry.register(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()};updateTrigger=e=>{this.registry.update(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()};unregisterTrigger=e=>{const n=this.registry.activeTriggerId===e;this.registry.unregister(e),n&&this.opts.open.current&&this.handleClose()};isActiveTrigger=e=>this.registry.activeTriggerId===e;get triggerNode(){return this.registry.activeTriggerNode}get activePayload(){return this.registry.activePayload}get activeTriggerId(){return this.registry.activeTriggerId}}class Qs{static create(e){return e.tether.current?new Qs(e,null,e.tether.current.state):new Qs(e,Br.get(),null)}opts;root;tether;attachment;#n=ga(!1);#t=D(!1);domContext;#e=null;#i=!1;#s=null;constructor(e,n,s){this.opts=e,this.root=n,this.tether=s,this.domContext=new vl(e.ref),this.attachment=ma(this.opts.ref,r=>this.#o(r)),ls(()=>this.opts.id.current,()=>{this.#o(this.opts.ref.current)}),ls(()=>this.opts.payload.current,()=>{this.#o(this.opts.ref.current)}),ls(()=>this.opts.disabled.current,()=>{this.#o(this.opts.ref.current)}),$r(()=>(this.#i=!0,this.#o(this.opts.ref.current),()=>{const r=this.#r(),a=this.#s;a&&(this.tether?this.tether.registry.unregister(a):r?.unregisterTrigger(a)),this.#s=null,this.#i=!1}))}#r=()=>this.tether?.root??this.root;#a=()=>{const e=this.#r();return this.opts.disabled.current||!!e?.disabled};#o=e=>{if(!this.#i)return;const n=this.opts.id.current,s=this.opts.payload.current,r=this.opts.disabled.current;if(this.#s&&this.#s!==n){const o=this.#r();this.tether?this.tether.registry.unregister(this.#s):o?.unregisterTrigger(this.#s)}const a={id:n,node:e,payload:s,disabled:r},l=this.#r();this.tether?(this.tether.registry.has(n)?this.tether.registry.update(a):this.tether.registry.register(a),r&&this.tether.registry.activeTriggerId===n&&l?.opts.open.current&&l.handleClose()):l?.registry.has(n)?l.updateTrigger(a):l?.registerTrigger(a),this.#s=n};#l=()=>{this.#e!==null&&(clearTimeout(this.#e),this.#e=null)};handlePointerUp=()=>{this.#n.current=!1};#c=()=>{this.#a()||(this.#n.current=!1)};#d=()=>{if(this.#a())return;const e=this.#r();e&&!e.disableCloseOnTriggerClick&&(e.opts.open.current?e.handleClose():e.cancelPendingOpen()),this.#n.current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0})};#h=e=>{const n=this.#r();if(n){if(this.#a()){n.opts.open.current&&n.handleClose();return}if(e.pointerType!=="touch"){if(n.provider.isPointerInTransit.current){this.#l(),this.#e=window.setTimeout(()=>{n.provider.isPointerInTransit.current&&(n.provider.isPointerInTransit.current=!1,n.onTriggerEnter(this.opts.id.current),p(this.#t,!0))},250);return}n.onTriggerEnter(this.opts.id.current),p(this.#t,!0)}}};#p=e=>{const n=this.#r();if(n){if(this.#a()){n.opts.open.current&&n.handleClose();return}e.pointerType!=="touch"&&(t(this.#t)||(this.#l(),n.provider.isPointerInTransit.current=!1,n.onTriggerEnter(this.opts.id.current),p(this.#t,!0)))}};#v=e=>{const n=this.#r();if(!n||this.#a())return;if(this.#l(),!n.isActiveTrigger(this.opts.id.current)){p(this.#t,!1);return}const s=e.relatedTarget;if(ba(s)){for(const r of n.registry.triggers.values())if(r.node===s){if(n.provider.opts.skipDelayDuration.current>0){p(this.#t,!1);return}n.handleClose(),p(this.#t,!1);return}}n.onTriggerLeave(),p(this.#t,!1)};#f=e=>{const n=this.#r();if(n&&!this.#n.current){if(this.#a()){n.opts.open.current&&n.handleClose();return}n.ignoreNonKeyboardFocus&&!fl(e.currentTarget)||(n.setActiveTrigger(this.opts.id.current),n.handleOpen())}};#g=()=>{const e=this.#r();!e||this.#a()||e.handleClose()};#m=()=>{const e=this.#r();!e||e.disableCloseOnTriggerClick||this.#a()||e.handleClose()};#u=y(()=>{const e=this.#r(),n=!!(e?.opts.open.current&&e.isActiveTrigger(this.opts.id.current)),s=this.#a();return{id:this.opts.id.current,"aria-describedby":n?e?.contentNode?.id:void 0,"data-state":n?e?.stateAttr:"closed","data-disabled":_a(s),"data-delay-duration":`${e?.delayDuration??0}`,[Ta.trigger]:"",tabindex:s?void 0:this.opts.tabindex.current,disabled:this.opts.disabled.current,onpointerup:this.#c,onpointerdown:this.#d,onpointerenter:this.#h,onpointermove:this.#p,onpointerleave:this.#v,onfocus:this.#f,onblur:this.#g,onclick:this.#m,...this.attachment}});get props(){return t(this.#u)}set props(e){p(this.#u,e)}}class Hr{static create(e){return new Hr(e,Br.get())}opts;root;attachment;constructor(e,n){this.opts=e,this.root=n,this.attachment=ma(this.opts.ref,s=>this.root.contentNode=s),new gl({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,transitIntentTimeout:180,ignoredTargets:()=>{if(this.root.provider.opts.skipDelayDuration.current===0)return[];const s=[],r=this.root.triggerNode;for(const a of this.root.registry.triggers.values())a.node&&a.node!==r&&s.push(a.node);return s},onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()}})}onInteractOutside=e=>{if(ba(e.target)&&this.root.triggerNode?.contains(e.target)&&this.root.disableCloseOnTriggerClick){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current?.(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#n=y(()=>({open:this.root.opts.open.current}));get snippetProps(){return t(this.#n)}set snippetProps(e){p(this.#n,e)}#t=y(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":_a(this.root.disabled),...ml(this.root.contentPresence.transitionStatus),style:{outline:"none"},[Ta.content]:"",...this.attachment}));get props(){return t(this.#t)}set props(e){p(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}}function Ql(i,e){jt(e,!0);let n=Z(e,"open",15,!1),s=Z(e,"triggerId",15,null),r=Z(e,"onOpenChange",3,Vs),a=Z(e,"onOpenChangeComplete",3,Vs);const l=Nr.create({open:lt(()=>n(),o=>{n(o),r()(o)}),triggerId:lt(()=>s(),o=>{s(o)}),delayDuration:lt(()=>e.delayDuration),disableCloseOnTriggerClick:lt(()=>e.disableCloseOnTriggerClick),disableHoverableContent:lt(()=>e.disableHoverableContent),ignoreNonKeyboardFocus:lt(()=>e.ignoreNonKeyboardFocus),disabled:lt(()=>e.disabled),onOpenChangeComplete:lt(()=>a()),tether:lt(()=>e.tether)});_l(i,{tooltip:!0,children:(o,u)=>{var g=Le(),b=K(g);Rn(b,()=>e.children??Vn,()=>({open:l.opts.open.current,triggerId:l.activeTriggerId,payload:l.activePayload})),d(o,g)},$$slots:{default:!0}}),Ct()}var Zl=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","customAnchor","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount","style"]),Bi=m("<div><div><!></div></div>");function Yl(i,e){const n=ua();jt(e,!0);let s=Z(e,"id",19,()=>ya(n)),r=Z(e,"ref",15,null),a=Z(e,"side",3,"top"),l=Z(e,"sideOffset",3,0),o=Z(e,"align",3,"center"),u=Z(e,"avoidCollisions",3,!0),g=Z(e,"arrowPadding",3,0),b=Z(e,"sticky",3,"partial"),k=Z(e,"hideWhenDetached",3,!1),S=Z(e,"collisionPadding",3,0),T=Z(e,"onInteractOutside",3,Vs),j=Z(e,"onEscapeKeydown",3,Vs),L=Z(e,"forceMount",3,!1),E=Kn(e,Zl);const P=Hr.create({id:lt(()=>s()),ref:lt(()=>r(),ne=>r(ne)),onInteractOutside:lt(()=>T()),onEscapeKeydown:lt(()=>j())}),B=y(()=>({side:a(),sideOffset:l(),align:o(),avoidCollisions:u(),arrowPadding:g(),sticky:b(),hideWhenDetached:k(),collisionPadding:S(),strategy:e.strategy,customAnchor:e.customAnchor??P.root.triggerNode})),V=y(()=>es(E,t(B),P.props));var J=Le(),ve=K(J);{var H=ne=>{{const Y=(he,ue)=>{let G=()=>(ue?.()).props,F=()=>(ue?.()).wrapperProps;const De=y(()=>es(F(),{style:{pointerEvents:P.root.disableHoverableContent?"none":void 0}})),re=y(()=>es(G(),{style:Oi("tooltip")},{style:e.style}));var oe=Le(),Oe=K(oe);{var ze=Se=>{var Ee=Le(),R=K(Ee);{let M=y(()=>({props:t(re),wrapperProps:t(De),...P.snippetProps}));Rn(R,()=>e.child,()=>t(M))}d(Se,Ee)},$e=Se=>{var Ee=Bi();ts(Ee,()=>({...t(De)}));var R=_(Ee);ts(R,()=>({...t(re)}));var M=_(R);Rn(M,()=>e.children??Vn),v(R),v(Ee),d(Se,Ee)};A(Oe,Se=>{e.child?Se(ze):Se($e,-1)})}d(he,oe)};let ae=y(()=>P.root.disableHoverableContent?"none":"auto");yl(ne,Fn(()=>t(V),()=>P.popperProps,{get enabled(){return P.root.opts.open.current},get id(){return s()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return P.opts.ref},tooltip:!0,get shouldRender(){return P.shouldRender},get contentPointerEvents(){return t(ae)},popper:Y,$$slots:{popper:!0}}))}},le=ne=>{{const Y=(he,ue)=>{let G=()=>(ue?.()).props,F=()=>(ue?.()).wrapperProps;const De=y(()=>es(F(),{style:{pointerEvents:P.root.disableHoverableContent?"none":void 0}})),re=y(()=>es(G(),{style:Oi("tooltip")},{style:e.style}));var oe=Le(),Oe=K(oe);{var ze=Se=>{var Ee=Le(),R=K(Ee);{let M=y(()=>({props:t(re),wrapperProps:t(De),...P.snippetProps}));Rn(R,()=>e.child,()=>t(M))}d(Se,Ee)},$e=Se=>{var Ee=Bi();ts(Ee,()=>({...t(De)}));var R=_(Ee);ts(R,()=>({...t(re)}));var M=_(R);Rn(M,()=>e.children??Vn),v(R),v(Ee),d(Se,Ee)};A(Oe,Se=>{e.child?Se(ze):Se($e,-1)})}d(he,oe)};let ae=y(()=>P.root.disableHoverableContent?"none":"auto");kl(ne,Fn(()=>t(V),()=>P.popperProps,{get open(){return P.root.opts.open.current},get id(){return s()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return P.opts.ref},tooltip:!0,get shouldRender(){return P.shouldRender},get contentPointerEvents(){return t(ae)},popper:Y,$$slots:{popper:!0}}))}};A(ve,ne=>{L()?ne(H):L()||ne(le,1)})}d(i,J),Ct()}var Jl=new Set(["$$slots","$$events","$$legacy","children","child","id","disabled","payload","tether","type","tabindex","ref"]),ec=m("<button><!></button>");function tc(i,e){const n=ua();jt(e,!0);let s=Z(e,"id",19,()=>ya(n)),r=Z(e,"disabled",3,!1),a=Z(e,"type",3,"button"),l=Z(e,"tabindex",3,0),o=Z(e,"ref",15,null),u=Kn(e,Jl);const g=Qs.create({id:lt(()=>s()),disabled:lt(()=>r()??!1),tabindex:lt(()=>l()??0),payload:lt(()=>e.payload),tether:lt(()=>e.tether),ref:lt(()=>o(),L=>o(L))}),b=y(()=>es(u,g.props,{type:a()}));var k=Le(),S=K(k);{var T=L=>{var E=Le(),P=K(E);Rn(P,()=>e.child,()=>({props:t(b)})),d(L,E)},j=L=>{var E=ec();ts(E,()=>({...t(b)}));var P=_(E);Rn(P,()=>e.children??Vn),v(E),d(L,E)};A(S,L=>{e.child?L(T):L(j,-1)})}d(i,k),Ct()}var nc=new Set(["$$slots","$$events","$$legacy","ref"]);function sc(i,e){jt(e,!0);let n=Z(e,"ref",15,null),s=Kn(e,nc);Vl(i,Fn(()=>s,{get ref(){return n()},set ref(r){n(r)}})),Ct()}function rc(i,e){jt(e,!0);let n=Z(e,"delayDuration",3,700),s=Z(e,"disableCloseOnTriggerClick",3,!1),r=Z(e,"disableHoverableContent",3,!1),a=Z(e,"disabled",3,!1),l=Z(e,"ignoreNonKeyboardFocus",3,!1),o=Z(e,"skipDelayDuration",3,300);qr.create({delayDuration:lt(()=>n()),disableCloseOnTriggerClick:lt(()=>s()),disableHoverableContent:lt(()=>r()),disabled:lt(()=>a()),ignoreNonKeyboardFocus:lt(()=>l()),skipDelayDuration:lt(()=>o())});var u=Le(),g=K(u);Rn(g,()=>e.children??Vn),d(i,u),Ct()}const ic=!1,sv=Object.freeze(Object.defineProperty({__proto__:null,ssr:ic},Symbol.toStringTag,{value:"Module"})),qi=200,Ns=400;class ac extends ka{#n=D(Yt([]));get screen(){return t(this.#n)}set screen(e){p(this.#n,e,!0)}#t=D(Yt([]));get history(){return t(this.#t)}set history(e){p(this.#t,e,!0)}#e=D(0);get historyStart(){return t(this.#e)}set historyStart(e){p(this.#e,e,!0)}#i=D(0);get historySize(){return t(this.#i)}set historySize(e){p(this.#i,e,!0)}#s=D(!1);get alt(){return t(this.#s)}set alt(e){p(this.#s,e,!0)}#r=D(0);get cols(){return t(this.#r)}set cols(e){p(this.#r,e,!0)}#a=D(0);get rows(){return t(this.#a)}set rows(e){p(this.#a,e,!0)}#o=D(!1);get loadingMore(){return t(this.#o)}set loadingMore(e){p(this.#o,e,!0)}#l=D(0);get appended(){return t(this.#l)}set appended(e){p(this.#l,e,!0)}atBottom=!0;target=null;resizeTimer=null;lastSentSize=null;pendingHistory=null;getWsUrl(){const e=window.location.protocol==="https:"?"wss:":"ws:",n=encodeURIComponent(this.target);return`${e}//${window.location.host}/api/sessions/${n}/stream`}getLogPrefix(){return"[terminal]"}shouldReconnect(){return this.target!==null}get historyAtStart(){return this.alt||this.historyStart<=0}get historyEnd(){return this.historyStart+this.history.length}handleMessage(e){let n;try{n=JSON.parse(e.data)}catch{return}switch(n.type){case"screen":this.applyScreen(n);break;case"history":this.applyHistory(n);break;case"reset":this.applyReset(n);break}}applyScreen(e){this.screen=e.lines,this.historySize=e.historySize,this.alt=e.alt,this.cols=e.cols,this.rows=e.rows,e.alt&&this.history.length&&(this.history=[],this.historyStart=e.historySize)}applyReset(e){this.history=[],this.historyStart=e.historySize,this.historySize=e.historySize,this.alt=e.alt,this.cols=e.cols,this.rows=e.rows,this.resolvePending(),!e.alt&&e.historySize>0&&this.requestHistory(e.historySize,qi)}applyHistory(e){const{start:n,lines:s}=e,r=n+s.length;this.historySize=Math.max(this.historySize,e.historySize);const a=this.loadingMore;if(s.length!==0)if(this.history.length===0)this.history=s,this.historyStart=n;else{const l=this.historyStart,o=l+this.history.length;if(n<=o&&r>o){const u=s.slice(o-n);if(this.history.push(...u),this.appended+=u.length,this.atBottom&&this.history.length>Ns){const g=this.history.length-Ns;this.history.splice(0,g),this.historyStart+=g}}else if(r>=l&&n<l){const u=s.slice(0,l-n);this.history.unshift(...u),this.historyStart=n}else n>o&&(this.history=s,this.historyStart=n,this.appended+=s.length)}a&&(this.loadingMore=!1,this.resolvePending())}resolvePending(){const e=this.pendingHistory;this.pendingHistory=null,e?.()}requestHistory(e,n){this.send(JSON.stringify({type:"history_request",before:e,count:n}))}setTarget(e){const n=e??null;if(this.target===n){if(n===null||this.ws)return;this.doConnect();return}this.ws&&(this.target=null,this.doDisconnect()),this.resizeTimer&&(clearTimeout(this.resizeTimer),this.resizeTimer=null),this.lastSentSize=null,this.clearView(),this.target=n,n&&this.doConnect()}clearView(){this.screen=[],this.history=[],this.historyStart=0,this.historySize=0,this.alt=!1,this.loadingMore=!1,this.atBottom=!0,this.appended=0,this.resolvePending()}requestMoreHistory(e=qi){return this.loadingMore||this.historyAtStart||!this.ws||this.ws.readyState!==WebSocket.OPEN?null:(this.loadingMore=!0,this.requestHistory(this.historyStart,e),new Promise(n=>{this.pendingHistory=n}))}trimToBottom(){if(this.history.length>Ns){const e=this.history.length-Ns;this.history.splice(0,e),this.historyStart+=e}}sendResize(e,n){!this.ws||this.ws.readyState!==WebSocket.OPEN||this.lastSentSize?.cols===e&&this.lastSentSize?.rows===n||(this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.ws&&this.ws.readyState===WebSocket.OPEN&&(this.ws.send(JSON.stringify({type:"resize",cols:e,rows:n})),this.lastSentSize={cols:e,rows:n}),this.resizeTimer=null},150))}}const Xt=new ac;var Er=function(i,e){return Object.defineProperty?Object.defineProperty(i,"raw",{value:e}):i.raw=e,i},ht;(function(i){i[i.EOS=0]="EOS",i[i.Text=1]="Text",i[i.Incomplete=2]="Incomplete",i[i.ESC=3]="ESC",i[i.Unknown=4]="Unknown",i[i.SGR=5]="SGR",i[i.OSCURL=6]="OSCURL"})(ht||(ht={}));class oc{constructor(){this.VERSION="6.0.6",this.setup_palettes(),this._use_classes=!1,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1,this.fg=this.bg=null,this._buffer="",this._url_allowlist={http:1,https:1},this._escape_html=!0,this.boldStyle="font-weight:bold",this.faintStyle="opacity:0.7",this.italicStyle="font-style:italic",this.underlineStyle="text-decoration:underline"}set use_classes(e){this._use_classes=e}get use_classes(){return this._use_classes}set url_allowlist(e){this._url_allowlist=e}get url_allowlist(){return this._url_allowlist}set escape_html(e){this._escape_html=e}get escape_html(){return this._escape_html}set boldStyle(e){this._boldStyle=e}get boldStyle(){return this._boldStyle}set faintStyle(e){this._faintStyle=e}get faintStyle(){return this._faintStyle}set italicStyle(e){this._italicStyle=e}get italicStyle(){return this._italicStyle}set underlineStyle(e){this._underlineStyle=e}get underlineStyle(){return this._underlineStyle}setup_palettes(){this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach(s=>{s.forEach(r=>{this.palette_256.push(r)})});let e=[0,95,135,175,215,255];for(let s=0;s<6;++s)for(let r=0;r<6;++r)for(let a=0;a<6;++a){let l={rgb:[e[s],e[r],e[a]],class_name:"truecolor"};this.palette_256.push(l)}let n=8;for(let s=0;s<24;++s,n+=10){let r={rgb:[n,n,n],class_name:"truecolor"};this.palette_256.push(r)}}escape_txt_for_html(e){return this._escape_html?e.replace(/[&<>"']/gm,n=>{if(n==="&")return"&";if(n==="<")return"<";if(n===">")return">";if(n==='"')return""";if(n==="'")return"'"}):e}append_buffer(e){var n=this._buffer+e;this._buffer=n}get_next_packet(){var e={kind:ht.EOS,text:"",url:""},n=this._buffer.length;if(n==0)return e;var s=this._buffer.indexOf("\x1B");if(s==-1)return e.kind=ht.Text,e.text=this._buffer,this._buffer="",e;if(s>0)return e.kind=ht.Text,e.text=this._buffer.slice(0,s),this._buffer=this._buffer.slice(s),e;if(s==0){if(n<3)return e.kind=ht.Incomplete,e;var r=this._buffer.charAt(1);if(r!="["&&r!="]"&&r!="(")return e.kind=ht.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;if(r=="["){this._csi_regex||(this._csi_regex=Ni(Hi||(Hi=Er([`
|
|
1
|
+
import{k as _r,c as Le,a as d,f as m,l as Fo,o as Ko,p as ua,t as $t,s as C,d as $n,b as X,e as Un}from"../chunks/BuvGONG-.js";import{h as Bs,c as Ai,ac as Ts,t as w,a as Ii,P as Wo,bj as Go,e as Pi,ae as Vo,at as Xo,be as Qo,bb as Zo,aT as Yo,bk as Jo,bl as el,u as Tt,O as Ks,p as jt,f as K,g as Ct,j as t,m as _,n as v,aa as y,y as Vn,k as p,l as D,v as Yt,q as h,o as O,ab as Qe,bi as da,a9 as os,a8 as yr,bh as tl,a7 as Di,bm as nl,$ as sl,bn as rl}from"../chunks/RhyL4cOo.js";import{p as Z,i as A,r as Kn,c as Fn,b as En,s as il,a as al}from"../chunks/ukOf9Kzz.js";import{j as ts,d as pt,e as st,s as Q,b as W,a as un,k as Gs,c as ha,r as pa,i as ol,l as ll,m as cl,h as ul}from"../chunks/BpsTpPGB.js";import{c as Ye}from"../chunks/CjMoR7Dp.js";import{u as va,a as Rn,m as es,a5 as dl,e as lt,o as hl,C as fa,a6 as pl,w as ls,f as ga,D as vl,g as ma,a7 as ba,a8 as fl,a9 as _a,aa as gl,ab as ml,h as bl,ac as Vs,ad as _l,l as ya,ae as yl,af as kl,ag as Oi,R as ka,$ as ys,ah as As,Z as Gn,s as Es,c as xa,B as cs,z as Li,_ as Xs,a0 as Pr,ai as xl,r as Mi,aj as wl,F as Sl,v as Tl,x as jl,y as Cl,E as wa,N as El,b as kr,I as xr,S as wr,a3 as zi,J as Rl,q as Sr,P as Tr,n as jr,Y as Al,O as Il,Q as Pl,T as Dl,U as Ol,V as Ll,W as Ml,X as zl,p as $l}from"../chunks/DmEI2TOa.js";import{g as Dr}from"../chunks/DtVU-s3j.js";import{u as Cr,p as Bl,d as $i}from"../chunks/Cotx9uI_.js";import{e as Ws,T as ql,c as qs,S as Nl,a as Hl,f as Sa}from"../chunks/DRBq3mUM.js";function Rs(i,e,n=!1,s=!1,r=!1,a=!1){var l=i,o="";if(n){var u=i;Bs&&(l=Ai(Ts(u)))}w(()=>{var g=Wo;if(o===(o=e()??"")){Bs&&Ii();return}if(n&&!Bs){g.nodes=null,u.innerHTML=o,o!==""&&_r(Ts(u),u.lastChild);return}if(g.nodes!==null&&(Go(g.nodes.start,g.nodes.end),g.nodes=null),o!==""){if(Bs){Pi.data;for(var b=Ii(),k=b;b!==null&&(b.nodeType!==Vo||b.data!=="");)k=b,b=Xo(b);if(b===null)throw Qo(),Zo;_r(Pi,k),l=Ai(b);return}var S=s?Jo:r?el:void 0,T=Yo(s?"svg":r?"math":"template",S);T.innerHTML=o;var j=s||r?T:T.content;if(_r(Ts(j),j.lastChild),s||r)for(;Ts(j);)l.before(Ts(j));else l.before(j)}})}function $r(i){Tt(()=>Ks(()=>i()))}var Ul=new Set(["$$slots","$$events","$$legacy","id","children","child","width","height"]),Fl=Fo('<svg viewBox="0 0 30 10" preserveAspectRatio="none" data-arrow=""><polygon points="0,0 30,0 15,10" fill="currentColor"></polygon></svg>'),Kl=m("<span><!></span>");function Wl(i,e){jt(e,!0);let n=Z(e,"id",19,va),s=Z(e,"width",3,10),r=Z(e,"height",3,5),a=Kn(e,Ul);const l=y(()=>es(a,{id:n()}));var o=Le(),u=K(o);{var g=k=>{var S=Le(),T=K(S);Rn(T,()=>e.child,()=>({props:t(l)})),d(k,S)},b=k=>{var S=Kl();ts(S,()=>({...t(l)}));var T=_(S);{var j=E=>{var P=Le(),B=K(P);Rn(B,()=>e.children??Vn),d(E,P)},L=E=>{var P=Fl();w(()=>{pt(P,"width",s()),pt(P,"height",r())}),d(E,P)};A(T,E=>{e.children?E(j):E(L,-1)})}v(S),d(k,S)};A(u,k=>{e.child?k(g):k(b,-1)})}d(i,o),Ct()}var Gl=new Set(["$$slots","$$events","$$legacy","id","ref"]);function Vl(i,e){jt(e,!0);let n=Z(e,"id",19,va),s=Z(e,"ref",15,null),r=Kn(e,Gl);const a=dl.create({id:lt(()=>n()),ref:lt(()=>s(),o=>s(o))}),l=y(()=>es(r,a.props));Wl(i,Fn(()=>t(l))),Ct()}class Or{#n;#t;#e=null;constructor(e,n){this.#t=e,this.#n=n,this.stop=this.stop.bind(this),this.start=this.start.bind(this),hl(this.stop)}#i(){this.#e!==null&&(window.clearTimeout(this.#e),this.#e=null)}stop(){this.#i()}start(...e){this.#i(),this.#e=window.setTimeout(()=>{this.#e=null,this.#t(...e)},this.#n)}}const Ta=bl({component:"tooltip",parts:["content","trigger"]}),ja=new fa("Tooltip.Provider"),Br=new fa("Tooltip.Root");class Xl{#n=D(Yt(new Map));get triggers(){return t(this.#n)}set triggers(e){p(this.#n,e,!0)}#t=D(null);get activeTriggerId(){return t(this.#t)}set activeTriggerId(e){p(this.#t,e,!0)}#e=y(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.node??null});get activeTriggerNode(){return t(this.#e)}set activeTriggerNode(e){p(this.#e,e)}#i=y(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.payload??null});get activePayload(){return t(this.#i)}set activePayload(e){p(this.#i,e)}register=e=>{const n=new Map(this.triggers);n.set(e.id,e),this.triggers=n,this.#s()};update=e=>{const n=new Map(this.triggers);n.set(e.id,e),this.triggers=n,this.#s()};unregister=e=>{if(!this.triggers.has(e))return;const n=new Map(this.triggers);n.delete(e),this.triggers=n,this.activeTriggerId===e&&(this.activeTriggerId=null)};setActiveTrigger=e=>{if(e===null){this.activeTriggerId=null;return}if(!this.triggers.has(e)){this.activeTriggerId=null;return}this.activeTriggerId=e};get=e=>this.triggers.get(e);has=e=>this.triggers.has(e);getFirstTriggerId=()=>{const e=this.triggers.entries().next();return e.done?null:e.value[0]};#s=()=>{const e=this.activeTriggerId;e!==null&&(this.triggers.has(e)||(this.activeTriggerId=null))}}class qr{static create(e){return ja.set(new qr(e))}opts;#n=D(!0);get isOpenDelayed(){return t(this.#n)}set isOpenDelayed(e){p(this.#n,e,!0)}isPointerInTransit=ga(!1);#t;#e=D(null);constructor(e){this.opts=e,this.#t=new Or(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current),$r(()=>Ko(window,"scroll",n=>{const s=t(this.#e);if(!s)return;const r=s.triggerNode;if(!r)return;const a=n.target;(a instanceof Element||a instanceof Document)&&a.contains(r)&&s.handleClose()}))}#i=()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}else this.#t.start()};#s=()=>{this.#t.stop()};onOpen=e=>{t(this.#e)&&t(this.#e)!==e&&t(this.#e).handleClose(),this.#s(),this.isOpenDelayed=!1,p(this.#e,e,!0)};onClose=e=>{t(this.#e)===e&&(p(this.#e,null),this.#i())};isTooltipOpen=e=>t(this.#e)===e}class Nr{static create(e){return Br.set(new Nr(e,ja.get()))}opts;provider;#n=y(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current);get delayDuration(){return t(this.#n)}set delayDuration(e){p(this.#n,e)}#t=y(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current);get disableHoverableContent(){return t(this.#t)}set disableHoverableContent(e){p(this.#t,e)}#e=y(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current);get disableCloseOnTriggerClick(){return t(this.#e)}set disableCloseOnTriggerClick(e){p(this.#e,e)}#i=y(()=>this.opts.disabled.current??this.provider.opts.disabled.current);get disabled(){return t(this.#i)}set disabled(e){p(this.#i,e)}#s=y(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current);get ignoreNonKeyboardFocus(){return t(this.#s)}set ignoreNonKeyboardFocus(e){p(this.#s,e)}registry;tether;#r=D(null);get contentNode(){return t(this.#r)}set contentNode(e){p(this.#r,e,!0)}contentPresence;#a=D(!1);#o;#l=y(()=>this.opts.open.current?t(this.#a)?"delayed-open":"instant-open":"closed");get stateAttr(){return t(this.#l)}set stateAttr(e){p(this.#l,e)}constructor(e,n){this.opts=e,this.provider=n,this.tether=e.tether.current?.state??null,this.registry=this.tether?.registry??new Xl,this.#o=new Or(()=>{p(this.#a,!0),this.opts.open.current=!0},this.delayDuration??0),this.tether&&(this.tether.root=this,$r(()=>()=>{this.tether?.root===this&&(this.tether.root=null)})),this.contentPresence=new pl({open:this.opts.open,ref:lt(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),ls(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&(this.#o=new Or(()=>{p(this.#a,!0),this.opts.open.current=!0},this.delayDuration))}),ls(()=>this.opts.open.current,s=>{s?(this.ensureActiveTrigger(),this.provider.onOpen(this)):this.provider.onClose(this)},{lazy:!0}),ls(()=>this.opts.triggerId.current,s=>{s!==this.registry.activeTriggerId&&this.registry.setActiveTrigger(s)}),ls(()=>this.registry.activeTriggerId,s=>{this.opts.triggerId.current!==s&&(this.opts.triggerId.current=s)})}handleOpen=()=>{this.#o.stop(),p(this.#a,!1),this.ensureActiveTrigger(),this.opts.open.current=!0};handleClose=()=>{this.#o.stop(),this.opts.open.current=!1};cancelPendingOpen=()=>{this.#o.stop()};#c=()=>{this.#o.stop();const e=!this.provider.isOpenDelayed,n=this.delayDuration??0;e||n===0?(p(this.#a,!1),this.opts.open.current=!0):this.#o.start()};onTriggerEnter=e=>{this.setActiveTrigger(e),this.#c()};onTriggerLeave=()=>{this.disableHoverableContent?this.handleClose():this.#o.stop()};ensureActiveTrigger=()=>{if(this.registry.activeTriggerId!==null&&this.registry.has(this.registry.activeTriggerId))return;if(this.opts.triggerId.current!==null&&this.registry.has(this.opts.triggerId.current)){this.registry.setActiveTrigger(this.opts.triggerId.current);return}const e=this.registry.getFirstTriggerId();this.registry.setActiveTrigger(e)};setActiveTrigger=e=>{this.registry.setActiveTrigger(e)};registerTrigger=e=>{this.registry.register(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()};updateTrigger=e=>{this.registry.update(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()};unregisterTrigger=e=>{const n=this.registry.activeTriggerId===e;this.registry.unregister(e),n&&this.opts.open.current&&this.handleClose()};isActiveTrigger=e=>this.registry.activeTriggerId===e;get triggerNode(){return this.registry.activeTriggerNode}get activePayload(){return this.registry.activePayload}get activeTriggerId(){return this.registry.activeTriggerId}}class Qs{static create(e){return e.tether.current?new Qs(e,null,e.tether.current.state):new Qs(e,Br.get(),null)}opts;root;tether;attachment;#n=ga(!1);#t=D(!1);domContext;#e=null;#i=!1;#s=null;constructor(e,n,s){this.opts=e,this.root=n,this.tether=s,this.domContext=new vl(e.ref),this.attachment=ma(this.opts.ref,r=>this.#o(r)),ls(()=>this.opts.id.current,()=>{this.#o(this.opts.ref.current)}),ls(()=>this.opts.payload.current,()=>{this.#o(this.opts.ref.current)}),ls(()=>this.opts.disabled.current,()=>{this.#o(this.opts.ref.current)}),$r(()=>(this.#i=!0,this.#o(this.opts.ref.current),()=>{const r=this.#r(),a=this.#s;a&&(this.tether?this.tether.registry.unregister(a):r?.unregisterTrigger(a)),this.#s=null,this.#i=!1}))}#r=()=>this.tether?.root??this.root;#a=()=>{const e=this.#r();return this.opts.disabled.current||!!e?.disabled};#o=e=>{if(!this.#i)return;const n=this.opts.id.current,s=this.opts.payload.current,r=this.opts.disabled.current;if(this.#s&&this.#s!==n){const o=this.#r();this.tether?this.tether.registry.unregister(this.#s):o?.unregisterTrigger(this.#s)}const a={id:n,node:e,payload:s,disabled:r},l=this.#r();this.tether?(this.tether.registry.has(n)?this.tether.registry.update(a):this.tether.registry.register(a),r&&this.tether.registry.activeTriggerId===n&&l?.opts.open.current&&l.handleClose()):l?.registry.has(n)?l.updateTrigger(a):l?.registerTrigger(a),this.#s=n};#l=()=>{this.#e!==null&&(clearTimeout(this.#e),this.#e=null)};handlePointerUp=()=>{this.#n.current=!1};#c=()=>{this.#a()||(this.#n.current=!1)};#d=()=>{if(this.#a())return;const e=this.#r();e&&!e.disableCloseOnTriggerClick&&(e.opts.open.current?e.handleClose():e.cancelPendingOpen()),this.#n.current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0})};#h=e=>{const n=this.#r();if(n){if(this.#a()){n.opts.open.current&&n.handleClose();return}if(e.pointerType!=="touch"){if(n.provider.isPointerInTransit.current){this.#l(),this.#e=window.setTimeout(()=>{n.provider.isPointerInTransit.current&&(n.provider.isPointerInTransit.current=!1,n.onTriggerEnter(this.opts.id.current),p(this.#t,!0))},250);return}n.onTriggerEnter(this.opts.id.current),p(this.#t,!0)}}};#p=e=>{const n=this.#r();if(n){if(this.#a()){n.opts.open.current&&n.handleClose();return}e.pointerType!=="touch"&&(t(this.#t)||(this.#l(),n.provider.isPointerInTransit.current=!1,n.onTriggerEnter(this.opts.id.current),p(this.#t,!0)))}};#v=e=>{const n=this.#r();if(!n||this.#a())return;if(this.#l(),!n.isActiveTrigger(this.opts.id.current)){p(this.#t,!1);return}const s=e.relatedTarget;if(ba(s)){for(const r of n.registry.triggers.values())if(r.node===s){if(n.provider.opts.skipDelayDuration.current>0){p(this.#t,!1);return}n.handleClose(),p(this.#t,!1);return}}n.onTriggerLeave(),p(this.#t,!1)};#f=e=>{const n=this.#r();if(n&&!this.#n.current){if(this.#a()){n.opts.open.current&&n.handleClose();return}n.ignoreNonKeyboardFocus&&!fl(e.currentTarget)||(n.setActiveTrigger(this.opts.id.current),n.handleOpen())}};#g=()=>{const e=this.#r();!e||this.#a()||e.handleClose()};#m=()=>{const e=this.#r();!e||e.disableCloseOnTriggerClick||this.#a()||e.handleClose()};#u=y(()=>{const e=this.#r(),n=!!(e?.opts.open.current&&e.isActiveTrigger(this.opts.id.current)),s=this.#a();return{id:this.opts.id.current,"aria-describedby":n?e?.contentNode?.id:void 0,"data-state":n?e?.stateAttr:"closed","data-disabled":_a(s),"data-delay-duration":`${e?.delayDuration??0}`,[Ta.trigger]:"",tabindex:s?void 0:this.opts.tabindex.current,disabled:this.opts.disabled.current,onpointerup:this.#c,onpointerdown:this.#d,onpointerenter:this.#h,onpointermove:this.#p,onpointerleave:this.#v,onfocus:this.#f,onblur:this.#g,onclick:this.#m,...this.attachment}});get props(){return t(this.#u)}set props(e){p(this.#u,e)}}class Hr{static create(e){return new Hr(e,Br.get())}opts;root;attachment;constructor(e,n){this.opts=e,this.root=n,this.attachment=ma(this.opts.ref,s=>this.root.contentNode=s),new gl({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,transitIntentTimeout:180,ignoredTargets:()=>{if(this.root.provider.opts.skipDelayDuration.current===0)return[];const s=[],r=this.root.triggerNode;for(const a of this.root.registry.triggers.values())a.node&&a.node!==r&&s.push(a.node);return s},onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()}})}onInteractOutside=e=>{if(ba(e.target)&&this.root.triggerNode?.contains(e.target)&&this.root.disableCloseOnTriggerClick){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current?.(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#n=y(()=>({open:this.root.opts.open.current}));get snippetProps(){return t(this.#n)}set snippetProps(e){p(this.#n,e)}#t=y(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":_a(this.root.disabled),...ml(this.root.contentPresence.transitionStatus),style:{outline:"none"},[Ta.content]:"",...this.attachment}));get props(){return t(this.#t)}set props(e){p(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}}function Ql(i,e){jt(e,!0);let n=Z(e,"open",15,!1),s=Z(e,"triggerId",15,null),r=Z(e,"onOpenChange",3,Vs),a=Z(e,"onOpenChangeComplete",3,Vs);const l=Nr.create({open:lt(()=>n(),o=>{n(o),r()(o)}),triggerId:lt(()=>s(),o=>{s(o)}),delayDuration:lt(()=>e.delayDuration),disableCloseOnTriggerClick:lt(()=>e.disableCloseOnTriggerClick),disableHoverableContent:lt(()=>e.disableHoverableContent),ignoreNonKeyboardFocus:lt(()=>e.ignoreNonKeyboardFocus),disabled:lt(()=>e.disabled),onOpenChangeComplete:lt(()=>a()),tether:lt(()=>e.tether)});_l(i,{tooltip:!0,children:(o,u)=>{var g=Le(),b=K(g);Rn(b,()=>e.children??Vn,()=>({open:l.opts.open.current,triggerId:l.activeTriggerId,payload:l.activePayload})),d(o,g)},$$slots:{default:!0}}),Ct()}var Zl=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","customAnchor","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount","style"]),Bi=m("<div><div><!></div></div>");function Yl(i,e){const n=ua();jt(e,!0);let s=Z(e,"id",19,()=>ya(n)),r=Z(e,"ref",15,null),a=Z(e,"side",3,"top"),l=Z(e,"sideOffset",3,0),o=Z(e,"align",3,"center"),u=Z(e,"avoidCollisions",3,!0),g=Z(e,"arrowPadding",3,0),b=Z(e,"sticky",3,"partial"),k=Z(e,"hideWhenDetached",3,!1),S=Z(e,"collisionPadding",3,0),T=Z(e,"onInteractOutside",3,Vs),j=Z(e,"onEscapeKeydown",3,Vs),L=Z(e,"forceMount",3,!1),E=Kn(e,Zl);const P=Hr.create({id:lt(()=>s()),ref:lt(()=>r(),ne=>r(ne)),onInteractOutside:lt(()=>T()),onEscapeKeydown:lt(()=>j())}),B=y(()=>({side:a(),sideOffset:l(),align:o(),avoidCollisions:u(),arrowPadding:g(),sticky:b(),hideWhenDetached:k(),collisionPadding:S(),strategy:e.strategy,customAnchor:e.customAnchor??P.root.triggerNode})),V=y(()=>es(E,t(B),P.props));var J=Le(),ve=K(J);{var H=ne=>{{const Y=(he,ue)=>{let G=()=>(ue?.()).props,F=()=>(ue?.()).wrapperProps;const De=y(()=>es(F(),{style:{pointerEvents:P.root.disableHoverableContent?"none":void 0}})),re=y(()=>es(G(),{style:Oi("tooltip")},{style:e.style}));var oe=Le(),Oe=K(oe);{var ze=Se=>{var Ee=Le(),R=K(Ee);{let M=y(()=>({props:t(re),wrapperProps:t(De),...P.snippetProps}));Rn(R,()=>e.child,()=>t(M))}d(Se,Ee)},$e=Se=>{var Ee=Bi();ts(Ee,()=>({...t(De)}));var R=_(Ee);ts(R,()=>({...t(re)}));var M=_(R);Rn(M,()=>e.children??Vn),v(R),v(Ee),d(Se,Ee)};A(Oe,Se=>{e.child?Se(ze):Se($e,-1)})}d(he,oe)};let ae=y(()=>P.root.disableHoverableContent?"none":"auto");yl(ne,Fn(()=>t(V),()=>P.popperProps,{get enabled(){return P.root.opts.open.current},get id(){return s()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return P.opts.ref},tooltip:!0,get shouldRender(){return P.shouldRender},get contentPointerEvents(){return t(ae)},popper:Y,$$slots:{popper:!0}}))}},le=ne=>{{const Y=(he,ue)=>{let G=()=>(ue?.()).props,F=()=>(ue?.()).wrapperProps;const De=y(()=>es(F(),{style:{pointerEvents:P.root.disableHoverableContent?"none":void 0}})),re=y(()=>es(G(),{style:Oi("tooltip")},{style:e.style}));var oe=Le(),Oe=K(oe);{var ze=Se=>{var Ee=Le(),R=K(Ee);{let M=y(()=>({props:t(re),wrapperProps:t(De),...P.snippetProps}));Rn(R,()=>e.child,()=>t(M))}d(Se,Ee)},$e=Se=>{var Ee=Bi();ts(Ee,()=>({...t(De)}));var R=_(Ee);ts(R,()=>({...t(re)}));var M=_(R);Rn(M,()=>e.children??Vn),v(R),v(Ee),d(Se,Ee)};A(Oe,Se=>{e.child?Se(ze):Se($e,-1)})}d(he,oe)};let ae=y(()=>P.root.disableHoverableContent?"none":"auto");kl(ne,Fn(()=>t(V),()=>P.popperProps,{get open(){return P.root.opts.open.current},get id(){return s()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return P.opts.ref},tooltip:!0,get shouldRender(){return P.shouldRender},get contentPointerEvents(){return t(ae)},popper:Y,$$slots:{popper:!0}}))}};A(ve,ne=>{L()?ne(H):L()||ne(le,1)})}d(i,J),Ct()}var Jl=new Set(["$$slots","$$events","$$legacy","children","child","id","disabled","payload","tether","type","tabindex","ref"]),ec=m("<button><!></button>");function tc(i,e){const n=ua();jt(e,!0);let s=Z(e,"id",19,()=>ya(n)),r=Z(e,"disabled",3,!1),a=Z(e,"type",3,"button"),l=Z(e,"tabindex",3,0),o=Z(e,"ref",15,null),u=Kn(e,Jl);const g=Qs.create({id:lt(()=>s()),disabled:lt(()=>r()??!1),tabindex:lt(()=>l()??0),payload:lt(()=>e.payload),tether:lt(()=>e.tether),ref:lt(()=>o(),L=>o(L))}),b=y(()=>es(u,g.props,{type:a()}));var k=Le(),S=K(k);{var T=L=>{var E=Le(),P=K(E);Rn(P,()=>e.child,()=>({props:t(b)})),d(L,E)},j=L=>{var E=ec();ts(E,()=>({...t(b)}));var P=_(E);Rn(P,()=>e.children??Vn),v(E),d(L,E)};A(S,L=>{e.child?L(T):L(j,-1)})}d(i,k),Ct()}var nc=new Set(["$$slots","$$events","$$legacy","ref"]);function sc(i,e){jt(e,!0);let n=Z(e,"ref",15,null),s=Kn(e,nc);Vl(i,Fn(()=>s,{get ref(){return n()},set ref(r){n(r)}})),Ct()}function rc(i,e){jt(e,!0);let n=Z(e,"delayDuration",3,700),s=Z(e,"disableCloseOnTriggerClick",3,!1),r=Z(e,"disableHoverableContent",3,!1),a=Z(e,"disabled",3,!1),l=Z(e,"ignoreNonKeyboardFocus",3,!1),o=Z(e,"skipDelayDuration",3,300);qr.create({delayDuration:lt(()=>n()),disableCloseOnTriggerClick:lt(()=>s()),disableHoverableContent:lt(()=>r()),disabled:lt(()=>a()),ignoreNonKeyboardFocus:lt(()=>l()),skipDelayDuration:lt(()=>o())});var u=Le(),g=K(u);Rn(g,()=>e.children??Vn),d(i,u),Ct()}const ic=!1,sv=Object.freeze(Object.defineProperty({__proto__:null,ssr:ic},Symbol.toStringTag,{value:"Module"})),qi=200,Ns=400;class ac extends ka{#n=D(Yt([]));get screen(){return t(this.#n)}set screen(e){p(this.#n,e,!0)}#t=D(Yt([]));get history(){return t(this.#t)}set history(e){p(this.#t,e,!0)}#e=D(0);get historyStart(){return t(this.#e)}set historyStart(e){p(this.#e,e,!0)}#i=D(0);get historySize(){return t(this.#i)}set historySize(e){p(this.#i,e,!0)}#s=D(!1);get alt(){return t(this.#s)}set alt(e){p(this.#s,e,!0)}#r=D(0);get cols(){return t(this.#r)}set cols(e){p(this.#r,e,!0)}#a=D(0);get rows(){return t(this.#a)}set rows(e){p(this.#a,e,!0)}#o=D(!1);get loadingMore(){return t(this.#o)}set loadingMore(e){p(this.#o,e,!0)}#l=D(0);get appended(){return t(this.#l)}set appended(e){p(this.#l,e,!0)}atBottom=!0;target=null;resizeTimer=null;lastSentSize=null;pendingHistory=null;getWsUrl(){const e=window.location.protocol==="https:"?"wss:":"ws:",n=encodeURIComponent(this.target);return`${e}//${window.location.host}/api/sessions/${n}/stream`}getLogPrefix(){return"[terminal]"}shouldReconnect(){return this.target!==null}get historyAtStart(){return this.alt||this.historyStart<=0}get historyEnd(){return this.historyStart+this.history.length}handleMessage(e){let n;try{n=JSON.parse(e.data)}catch{return}switch(n.type){case"screen":this.applyScreen(n);break;case"history":this.applyHistory(n);break;case"reset":this.applyReset(n);break}}applyScreen(e){this.screen=e.lines,this.historySize=e.historySize,this.alt=e.alt,this.cols=e.cols,this.rows=e.rows,e.alt&&this.history.length&&(this.history=[],this.historyStart=e.historySize)}applyReset(e){this.history=[],this.historyStart=e.historySize,this.historySize=e.historySize,this.alt=e.alt,this.cols=e.cols,this.rows=e.rows,this.resolvePending(),!e.alt&&e.historySize>0&&this.requestHistory(e.historySize,qi)}applyHistory(e){const{start:n,lines:s}=e,r=n+s.length;this.historySize=Math.max(this.historySize,e.historySize);const a=this.loadingMore;if(s.length!==0)if(this.history.length===0)this.history=s,this.historyStart=n;else{const l=this.historyStart,o=l+this.history.length;if(n<=o&&r>o){const u=s.slice(o-n);if(this.history.push(...u),this.appended+=u.length,this.atBottom&&this.history.length>Ns){const g=this.history.length-Ns;this.history.splice(0,g),this.historyStart+=g}}else if(r>=l&&n<l){const u=s.slice(0,l-n);this.history.unshift(...u),this.historyStart=n}else n>o&&(this.history=s,this.historyStart=n,this.appended+=s.length)}a&&(this.loadingMore=!1,this.resolvePending())}resolvePending(){const e=this.pendingHistory;this.pendingHistory=null,e?.()}requestHistory(e,n){this.send(JSON.stringify({type:"history_request",before:e,count:n}))}setTarget(e){const n=e??null;if(this.target===n){if(n===null||this.ws)return;this.doConnect();return}this.ws&&(this.target=null,this.doDisconnect()),this.resizeTimer&&(clearTimeout(this.resizeTimer),this.resizeTimer=null),this.lastSentSize=null,this.clearView(),this.target=n,n&&this.doConnect()}clearView(){this.screen=[],this.history=[],this.historyStart=0,this.historySize=0,this.alt=!1,this.loadingMore=!1,this.atBottom=!0,this.appended=0,this.resolvePending()}requestMoreHistory(e=qi){return this.loadingMore||this.historyAtStart||!this.ws||this.ws.readyState!==WebSocket.OPEN?null:(this.loadingMore=!0,this.requestHistory(this.historyStart,e),new Promise(n=>{this.pendingHistory=n}))}trimToBottom(){if(this.history.length>Ns){const e=this.history.length-Ns;this.history.splice(0,e),this.historyStart+=e}}sendResize(e,n){!this.ws||this.ws.readyState!==WebSocket.OPEN||this.lastSentSize?.cols===e&&this.lastSentSize?.rows===n||(this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.ws&&this.ws.readyState===WebSocket.OPEN&&(this.ws.send(JSON.stringify({type:"resize",cols:e,rows:n})),this.lastSentSize={cols:e,rows:n}),this.resizeTimer=null},150))}}const Xt=new ac;var Er=function(i,e){return Object.defineProperty?Object.defineProperty(i,"raw",{value:e}):i.raw=e,i},ht;(function(i){i[i.EOS=0]="EOS",i[i.Text=1]="Text",i[i.Incomplete=2]="Incomplete",i[i.ESC=3]="ESC",i[i.Unknown=4]="Unknown",i[i.SGR=5]="SGR",i[i.OSCURL=6]="OSCURL"})(ht||(ht={}));class oc{constructor(){this.VERSION="6.0.6",this.setup_palettes(),this._use_classes=!1,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1,this.fg=this.bg=null,this._buffer="",this._url_allowlist={http:1,https:1},this._escape_html=!0,this.boldStyle="font-weight:bold",this.faintStyle="opacity:0.7",this.italicStyle="font-style:italic",this.underlineStyle="text-decoration:underline"}set use_classes(e){this._use_classes=e}get use_classes(){return this._use_classes}set url_allowlist(e){this._url_allowlist=e}get url_allowlist(){return this._url_allowlist}set escape_html(e){this._escape_html=e}get escape_html(){return this._escape_html}set boldStyle(e){this._boldStyle=e}get boldStyle(){return this._boldStyle}set faintStyle(e){this._faintStyle=e}get faintStyle(){return this._faintStyle}set italicStyle(e){this._italicStyle=e}get italicStyle(){return this._italicStyle}set underlineStyle(e){this._underlineStyle=e}get underlineStyle(){return this._underlineStyle}setup_palettes(){this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach(s=>{s.forEach(r=>{this.palette_256.push(r)})});let e=[0,95,135,175,215,255];for(let s=0;s<6;++s)for(let r=0;r<6;++r)for(let a=0;a<6;++a){let l={rgb:[e[s],e[r],e[a]],class_name:"truecolor"};this.palette_256.push(l)}let n=8;for(let s=0;s<24;++s,n+=10){let r={rgb:[n,n,n],class_name:"truecolor"};this.palette_256.push(r)}}escape_txt_for_html(e){return this._escape_html?e.replace(/[&<>"']/gm,n=>{if(n==="&")return"&";if(n==="<")return"<";if(n===">")return">";if(n==='"')return""";if(n==="'")return"'"}):e}append_buffer(e){var n=this._buffer+e;this._buffer=n}get_next_packet(){var e={kind:ht.EOS,text:"",url:""},n=this._buffer.length;if(n==0)return e;var s=this._buffer.indexOf("\x1B");if(s==-1)return e.kind=ht.Text,e.text=this._buffer,this._buffer="",e;if(s>0)return e.kind=ht.Text,e.text=this._buffer.slice(0,s),this._buffer=this._buffer.slice(s),e;if(s==0){if(n<3)return e.kind=ht.Incomplete,e;var r=this._buffer.charAt(1);if(r!="["&&r!="]"&&r!="(")return e.kind=ht.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;if(r=="["){this._csi_regex||(this._csi_regex=Ni(Hi||(Hi=Er([`
|
|
2
2
|
^ # beginning of line
|
|
3
3
|
#
|
|
4
4
|
# First attempt
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1788390982146"}
|
|
@@ -20,29 +20,29 @@ const load = () => {
|
|
|
20
20
|
//#region .svelte-kit/adapter-bun/nodes/0.js
|
|
21
21
|
const index = 0;
|
|
22
22
|
let component_cache;
|
|
23
|
-
const component = async () => component_cache ??= (await import("./_layout.svelte-
|
|
23
|
+
const component = async () => component_cache ??= (await import("./_layout.svelte-Ddn9Wu-V.js")).default;
|
|
24
24
|
const server_id = "src/routes/+layout.server.ts";
|
|
25
25
|
const imports = [
|
|
26
|
-
"_app/immutable/nodes/0.
|
|
26
|
+
"_app/immutable/nodes/0.DAnv2asW.js",
|
|
27
27
|
"_app/immutable/chunks/BuvGONG-.js",
|
|
28
28
|
"_app/immutable/chunks/RhyL4cOo.js",
|
|
29
29
|
"_app/immutable/chunks/ukOf9Kzz.js",
|
|
30
|
-
"_app/immutable/chunks/
|
|
31
|
-
"_app/immutable/chunks/
|
|
32
|
-
"_app/immutable/chunks/
|
|
30
|
+
"_app/immutable/chunks/DmEI2TOa.js",
|
|
31
|
+
"_app/immutable/chunks/DtVU-s3j.js",
|
|
32
|
+
"_app/immutable/chunks/DfoR1zCV.js",
|
|
33
33
|
"_app/immutable/chunks/BpsTpPGB.js",
|
|
34
34
|
"_app/immutable/chunks/CjMoR7Dp.js",
|
|
35
|
-
"_app/immutable/chunks/
|
|
35
|
+
"_app/immutable/chunks/Cotx9uI_.js",
|
|
36
36
|
"_app/immutable/chunks/DRBq3mUM.js",
|
|
37
|
-
"_app/immutable/chunks/
|
|
37
|
+
"_app/immutable/chunks/1pIWnoD_.js"
|
|
38
38
|
];
|
|
39
39
|
const stylesheets = [
|
|
40
40
|
"_app/immutable/assets/sidebarActions.Ch26YL9l.css",
|
|
41
|
-
"_app/immutable/assets/AllSessionsPanel.
|
|
41
|
+
"_app/immutable/assets/AllSessionsPanel.BCLr3G4T.css",
|
|
42
42
|
"_app/immutable/assets/0.DwaaTdPO.css"
|
|
43
43
|
];
|
|
44
44
|
const fonts = [];
|
|
45
45
|
//#endregion
|
|
46
46
|
export { component, fonts, imports, index, _layout_server_ts_exports as server, server_id, stylesheets };
|
|
47
47
|
|
|
48
|
-
//# sourceMappingURL=0-
|
|
48
|
+
//# sourceMappingURL=0-C-AAPmon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0-
|
|
1
|
+
{"version":3,"file":"0-C-AAPmon.js","names":[],"sources":["../../../../web/.svelte-kit/adapter-bun/entries/pages/_layout.server.ts.js","../../../../web/.svelte-kit/adapter-bun/nodes/0.js"],"sourcesContent":["import { b as private_env } from \"../../chunks/shared-server.js\";\nconst load = () => {\n return {\n voiceEnabled: Boolean(private_env.GROQ_API_KEY)\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/_layout.server.ts.js';\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/+layout.server.ts\";\nexport const imports = [\"_app/immutable/nodes/0.DAnv2asW.js\",\"_app/immutable/chunks/BuvGONG-.js\",\"_app/immutable/chunks/RhyL4cOo.js\",\"_app/immutable/chunks/ukOf9Kzz.js\",\"_app/immutable/chunks/DmEI2TOa.js\",\"_app/immutable/chunks/DtVU-s3j.js\",\"_app/immutable/chunks/DfoR1zCV.js\",\"_app/immutable/chunks/BpsTpPGB.js\",\"_app/immutable/chunks/CjMoR7Dp.js\",\"_app/immutable/chunks/Cotx9uI_.js\",\"_app/immutable/chunks/DRBq3mUM.js\",\"_app/immutable/chunks/1pIWnoD_.js\"];\nexport const stylesheets = [\"_app/immutable/assets/sidebarActions.Ch26YL9l.css\",\"_app/immutable/assets/AllSessionsPanel.BCLr3G4T.css\",\"_app/immutable/assets/0.DwaaTdPO.css\"];\nexport const fonts = [];\n"],"mappings":";;;;;;;;;;;;;;;AACA,MAAM,aAAa;CACjB,OAAO,EACL,cAAc,QAAQ,YAAY,YAAY,EAChD;AACF;;;ACHA,MAAa,QAAQ;AACrB,IAAI;AACJ,MAAa,YAAY,YAAY,qBAAqB,MAAM,OAAO,gCAAA,CAAuC;AAE9G,MAAa,YAAY;AACzB,MAAa,UAAU;CAAC;CAAqC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;AAAmC;AACxc,MAAa,cAAc;CAAC;CAAoD;CAAsD;AAAsC;AAC5K,MAAa,QAAQ,CAAC"}
|
|
@@ -3,14 +3,14 @@ const index = 1;
|
|
|
3
3
|
let component_cache;
|
|
4
4
|
const component = async () => component_cache ??= (await import("./error.svelte-BbIs6wWT.js")).default;
|
|
5
5
|
const imports = [
|
|
6
|
-
"_app/immutable/nodes/1.
|
|
6
|
+
"_app/immutable/nodes/1.CU8f4oNB.js",
|
|
7
7
|
"_app/immutable/chunks/BuvGONG-.js",
|
|
8
8
|
"_app/immutable/chunks/RhyL4cOo.js",
|
|
9
|
-
"_app/immutable/chunks/
|
|
9
|
+
"_app/immutable/chunks/DfoR1zCV.js"
|
|
10
10
|
];
|
|
11
11
|
const stylesheets = [];
|
|
12
12
|
const fonts = [];
|
|
13
13
|
//#endregion
|
|
14
14
|
export { component, fonts, imports, index, stylesheets };
|
|
15
15
|
|
|
16
|
-
//# sourceMappingURL=1-
|
|
16
|
+
//# sourceMappingURL=1-T_dogl8W.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-
|
|
1
|
+
{"version":3,"file":"1-T_dogl8W.js","names":[],"sources":["../../../../web/.svelte-kit/adapter-bun/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.CU8f4oNB.js\",\"_app/immutable/chunks/BuvGONG-.js\",\"_app/immutable/chunks/RhyL4cOo.js\",\"_app/immutable/chunks/DfoR1zCV.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"mappings":";AAEA,MAAa,QAAQ;AACrB,IAAI;AACJ,MAAa,YAAY,YAAY,qBAAqB,MAAM,OAAO,8BAAA,CAAyC;AAChH,MAAa,UAAU;CAAC;CAAqC;CAAoC;CAAoC;AAAmC;AACxK,MAAa,cAAc,CAAC;AAC5B,MAAa,QAAQ,CAAC"}
|
|
@@ -3,24 +3,24 @@ const index = 2;
|
|
|
3
3
|
let component_cache;
|
|
4
4
|
const component = async () => component_cache ??= (await import("./_page.svelte-_F3qltju.js")).default;
|
|
5
5
|
const imports = [
|
|
6
|
-
"_app/immutable/nodes/2.
|
|
6
|
+
"_app/immutable/nodes/2.BYpvCgtu.js",
|
|
7
7
|
"_app/immutable/chunks/BuvGONG-.js",
|
|
8
8
|
"_app/immutable/chunks/RhyL4cOo.js",
|
|
9
9
|
"_app/immutable/chunks/ukOf9Kzz.js",
|
|
10
10
|
"_app/immutable/chunks/BpsTpPGB.js",
|
|
11
|
-
"_app/immutable/chunks/
|
|
11
|
+
"_app/immutable/chunks/1pIWnoD_.js",
|
|
12
12
|
"_app/immutable/chunks/CjMoR7Dp.js",
|
|
13
|
-
"_app/immutable/chunks/
|
|
14
|
-
"_app/immutable/chunks/
|
|
15
|
-
"_app/immutable/chunks/
|
|
13
|
+
"_app/immutable/chunks/DmEI2TOa.js",
|
|
14
|
+
"_app/immutable/chunks/DtVU-s3j.js",
|
|
15
|
+
"_app/immutable/chunks/DfoR1zCV.js"
|
|
16
16
|
];
|
|
17
17
|
const stylesheets = [
|
|
18
18
|
"_app/immutable/assets/sidebarActions.Ch26YL9l.css",
|
|
19
|
-
"_app/immutable/assets/AllSessionsPanel.
|
|
19
|
+
"_app/immutable/assets/AllSessionsPanel.BCLr3G4T.css",
|
|
20
20
|
"_app/immutable/assets/2.BPFnFMPa.css"
|
|
21
21
|
];
|
|
22
22
|
const fonts = [];
|
|
23
23
|
//#endregion
|
|
24
24
|
export { component, fonts, imports, index, stylesheets };
|
|
25
25
|
|
|
26
|
-
//# sourceMappingURL=2-
|
|
26
|
+
//# sourceMappingURL=2-FlchE_4u.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2-
|
|
1
|
+
{"version":3,"file":"2-FlchE_4u.js","names":[],"sources":["../../../../web/.svelte-kit/adapter-bun/nodes/2.js"],"sourcesContent":["\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/2.BYpvCgtu.js\",\"_app/immutable/chunks/BuvGONG-.js\",\"_app/immutable/chunks/RhyL4cOo.js\",\"_app/immutable/chunks/ukOf9Kzz.js\",\"_app/immutable/chunks/BpsTpPGB.js\",\"_app/immutable/chunks/1pIWnoD_.js\",\"_app/immutable/chunks/CjMoR7Dp.js\",\"_app/immutable/chunks/DmEI2TOa.js\",\"_app/immutable/chunks/DtVU-s3j.js\",\"_app/immutable/chunks/DfoR1zCV.js\"];\nexport const stylesheets = [\"_app/immutable/assets/sidebarActions.Ch26YL9l.css\",\"_app/immutable/assets/AllSessionsPanel.BCLr3G4T.css\",\"_app/immutable/assets/2.BPFnFMPa.css\"];\nexport const fonts = [];\n"],"mappings":";AAEA,MAAa,QAAQ;AACrB,IAAI;AACJ,MAAa,YAAY,YAAY,qBAAqB,MAAM,OAAO,8BAAA,CAAqC;AAC5G,MAAa,UAAU;CAAC;CAAqC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;AAAmC;AAChY,MAAa,cAAc;CAAC;CAAoD;CAAsD;AAAsC;AAC5K,MAAa,QAAQ,CAAC"}
|
|
@@ -6,16 +6,16 @@ const universal = {
|
|
|
6
6
|
};
|
|
7
7
|
const universal_id = "src/routes/session/[target]/+page.ts";
|
|
8
8
|
const imports = [
|
|
9
|
-
"_app/immutable/nodes/3.
|
|
9
|
+
"_app/immutable/nodes/3.DuMzeRg3.js",
|
|
10
10
|
"_app/immutable/chunks/BuvGONG-.js",
|
|
11
11
|
"_app/immutable/chunks/RhyL4cOo.js",
|
|
12
12
|
"_app/immutable/chunks/ukOf9Kzz.js",
|
|
13
13
|
"_app/immutable/chunks/BpsTpPGB.js",
|
|
14
14
|
"_app/immutable/chunks/CjMoR7Dp.js",
|
|
15
|
-
"_app/immutable/chunks/
|
|
16
|
-
"_app/immutable/chunks/
|
|
17
|
-
"_app/immutable/chunks/
|
|
18
|
-
"_app/immutable/chunks/
|
|
15
|
+
"_app/immutable/chunks/DmEI2TOa.js",
|
|
16
|
+
"_app/immutable/chunks/DtVU-s3j.js",
|
|
17
|
+
"_app/immutable/chunks/DfoR1zCV.js",
|
|
18
|
+
"_app/immutable/chunks/Cotx9uI_.js",
|
|
19
19
|
"_app/immutable/chunks/DRBq3mUM.js"
|
|
20
20
|
];
|
|
21
21
|
const stylesheets = ["_app/immutable/assets/sidebarActions.Ch26YL9l.css", "_app/immutable/assets/3.XJ3XhAQU.css"];
|
|
@@ -23,4 +23,4 @@ const fonts = [];
|
|
|
23
23
|
//#endregion
|
|
24
24
|
export { fonts, imports, index, stylesheets, universal, universal_id };
|
|
25
25
|
|
|
26
|
-
//# sourceMappingURL=3-
|
|
26
|
+
//# sourceMappingURL=3-U2bTntXU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3-
|
|
1
|
+
{"version":3,"file":"3-U2bTntXU.js","names":[],"sources":["../../../../web/.svelte-kit/adapter-bun/nodes/3.js"],"sourcesContent":["\n\nexport const index = 3;\nexport const universal = {\n \"load\": null,\n \"ssr\": false\n};\nexport const universal_id = \"src/routes/session/[target]/+page.ts\";\nexport const imports = [\"_app/immutable/nodes/3.DuMzeRg3.js\",\"_app/immutable/chunks/BuvGONG-.js\",\"_app/immutable/chunks/RhyL4cOo.js\",\"_app/immutable/chunks/ukOf9Kzz.js\",\"_app/immutable/chunks/BpsTpPGB.js\",\"_app/immutable/chunks/CjMoR7Dp.js\",\"_app/immutable/chunks/DmEI2TOa.js\",\"_app/immutable/chunks/DtVU-s3j.js\",\"_app/immutable/chunks/DfoR1zCV.js\",\"_app/immutable/chunks/Cotx9uI_.js\",\"_app/immutable/chunks/DRBq3mUM.js\"];\nexport const stylesheets = [\"_app/immutable/assets/sidebarActions.Ch26YL9l.css\",\"_app/immutable/assets/3.XJ3XhAQU.css\"];\nexport const fonts = [];\n"],"mappings":";AAEA,MAAa,QAAQ;AACrB,MAAa,YAAY;CACvB,QAAQ;CACR,OAAO;AACT;AACA,MAAa,eAAe;AAC5B,MAAa,UAAU;CAAC;CAAqC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;AAAmC;AACpa,MAAa,cAAc,CAAC,qDAAoD,sCAAsC;AACtH,MAAa,QAAQ,CAAC"}
|