@openchamber/web 1.9.2 → 1.9.3
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/assets/ToolOutputDialog-iiUOHO3c.js +16 -0
- package/dist/assets/index-BZ8pfXBh.css +1 -0
- package/dist/assets/index-DEj7Q-1y.js +2 -0
- package/dist/assets/{main-BFP0Fw2a.js → main-Ba2uuSTQ.js} +119 -119
- package/dist/assets/{vendor-.bun-CjZZibdK.js → vendor-.bun-B34wtB0D.js} +39 -39
- package/dist/index.html +3 -3
- package/package.json +1 -1
- package/server/TERMINAL_WS_PROTOCOL.md +48 -0
- package/server/lib/fs/routes.js +48 -0
- package/server/lib/opencode/proxy.js +106 -2
- package/server/lib/quota/DOCUMENTATION.md +1 -0
- package/server/lib/quota/index.js +2 -1
- package/server/lib/quota/providers/copilot.js +1 -1
- package/server/lib/quota/providers/index.js +8 -0
- package/server/lib/quota/providers/minimax-cn-coding-plan.js +141 -15
- package/server/lib/quota/providers/minimax-coding-plan.js +139 -15
- package/server/lib/quota/providers/zhipuai.js +114 -0
- package/server/lib/terminal/DOCUMENTATION.md +41 -80
- package/server/lib/terminal/index.js +27 -8
- package/server/lib/terminal/output-replay-buffer.js +66 -0
- package/server/lib/terminal/output-replay-buffer.test.js +66 -0
- package/server/lib/terminal/runtime.js +107 -20
- package/server/lib/terminal/{input-ws-protocol.js → terminal-ws-protocol.js} +13 -11
- package/server/lib/terminal/{input-ws-protocol.test.js → terminal-ws-protocol.test.js} +39 -32
- package/server/opencode-proxy.test.js +83 -0
- package/server/proxy-headers.js +61 -0
- package/server/proxy-headers.test.js +58 -0
- package/dist/assets/ToolOutputDialog-DwlX_M_n.js +0 -16
- package/dist/assets/index-BQqVuvn2.js +0 -2
- package/dist/assets/index-CH1IFYgs.css +0 -1
- package/server/TERMINAL_INPUT_WS_PROTOCOL.md +0 -44
- package/server/lib/quota/providers/minimax-shared.js +0 -136
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-.bun-B34wtB0D.js","assets/vendor--DbVqbJpV.css","assets/main-Ba2uuSTQ.js","assets/main-BV3KOtdA.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as H}from"./vendor-.bun-B34wtB0D.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&o(l)}).observe(document,{childList:!0,subtree:!0});function e(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(n){if(n.ep)return;n.ep=!0;const s=e(n);fetch(n.href,s)}})();const Y=1,m=1,j=0,V="/api/terminal/ws",Z=1200,tt=1e3,et=3e4,rt=250,ot=2e4,nt=5e3,P="__openchamberTerminalTransportState",st=new TextEncoder,D=new TextDecoder,A=r=>{if(/^wss?:\/\//i.test(r))return r;if(/^https?:\/\//i.test(r)){const o=new URL(r);return o.protocol=o.protocol==="https:"?"wss:":"ws:",o.toString()}if(typeof window>"u")return"";const t=r.startsWith("/")?r:`/${r}`;return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}${t}`},F=r=>{const t=st.encode(JSON.stringify(r)),e=new Uint8Array(t.length+1);return e[0]=Y,e.set(t,1),e},E=r=>r?((r.transports??[]).includes("ws")||r.preferred==="ws")&&typeof r.ws?.path=="string"&&r.ws.path.length>0:!1,R=r=>r.streamCapability?.ws?.path??r.inputCapability?.ws?.path??V,it=r=>{switch(r){case"SESSION_NOT_FOUND":return new Error("Terminal session not found");case"NOT_BOUND":return new Error("Terminal session is not bound");case"WRITE_FAIL":return new Error("Failed to write to terminal");case"RATE_LIMIT":return new Error("Terminal websocket is rate limited");case"BAD_FRAME":return new Error("Terminal websocket protocol violation");default:return new Error("Terminal websocket error")}};class at{socket=null;socketUrl="";boundSessionId=null;requestedSessionId=null;openPromise=null;reconnectTimeout=null;keepaliveInterval=null;closed=!1;subscriptions=new Map;activeSubscriptionToken=null;configure(t){if(t){if(this.socketUrl===t){this.closed=!1,this.isConnectedOrConnecting()||this.ensureConnected();return}this.socketUrl=t,this.closed=!1,this.resetConnection(),this.ensureConnected()}}subscribe(t,e,o,n){const s=Symbol(t),l={token:s,sessionId:t,onEvent:e,onError:o,maxRetries:n?.maxRetries??3,initialRetryDelay:n?.initialRetryDelay??1e3,maxRetryDelay:n?.maxRetryDelay??8e3,connectionTimeout:n?.connectionTimeout??1e4,retryCount:0,connected:!1,connectionTimeoutId:null};return this.subscriptions.set(s,l),this.activeSubscriptionToken=s,this.boundSessionId=null,this.requestedSessionId=t,this.ensureConnected(),this.startConnectionTimeout(l),this.bindActiveSession(),()=>{this.clearConnectionTimeout(l),this.subscriptions.delete(s),this.activeSubscriptionToken===s&&(this.activeSubscriptionToken=null),this.boundSessionId===t&&(this.boundSessionId=null),this.requestedSessionId===t&&(this.requestedSessionId=null)}}async sendInput(t,e){if(!t||!e||this.closed||!this.socketUrl)return!1;const o=await this.getOpenSocket(Z);if(!o||o.readyState!==m)return!1;try{return this.boundSessionId!==t&&(this.requestedSessionId=t,o.send(F({t:"b",s:t,v:2}))),o.send(e),!0}catch{return this.handleSocketFailure(new Error("Terminal websocket send failed")),!1}}unbindSession(t){t&&(this.boundSessionId===t&&(this.boundSessionId=null),this.requestedSessionId===t&&(this.requestedSessionId=null))}close(){this.closed=!0,this.clearReconnectTimeout();for(const t of this.subscriptions.values())this.clearConnectionTimeout(t);this.resetConnection(),this.socketUrl="",this.subscriptions.clear(),this.activeSubscriptionToken=null}prime(){this.closed||!this.socketUrl||this.isConnectedOrConnecting()||this.ensureConnected()}isConnectedOrConnecting(t){return this.closed||t&&this.socketUrl!==t?!1:this.socket&&(this.socket.readyState===m||this.socket.readyState===j)?!0:this.openPromise!==null}getActiveSubscription(){return this.activeSubscriptionToken?this.subscriptions.get(this.activeSubscriptionToken)??null:null}startConnectionTimeout(t){this.clearConnectionTimeout(t),t.connectionTimeoutId=setTimeout(()=>{this.getActiveSubscription()?.token!==t.token||t.connected||this.handleSocketFailure(new Error("Connection timeout"))},t.connectionTimeout)}clearConnectionTimeout(t){t.connectionTimeoutId&&(clearTimeout(t.connectionTimeoutId),t.connectionTimeoutId=null)}async getOpenSocket(t){if(this.socket&&this.socket.readyState===m)return this.socket;if(this.ensureConnected(),this.socket&&this.socket.readyState===m)return this.socket;const e=await Promise.race([this.openPromise??Promise.resolve(null),new Promise(o=>{setTimeout(()=>o(null),t)})]);return e&&e.readyState===m?e:this.socket&&this.socket.readyState===m?this.socket:null}ensureConnected(){this.closed||!this.socketUrl||this.socket&&(this.socket.readyState===m||this.socket.readyState===j)||this.openPromise||(this.clearReconnectTimeout(),this.openPromise=new Promise(t=>{let e=!1,o=null;const n=s=>{e||(e=!0,o&&(clearTimeout(o),o=null),this.openPromise=null,t(s))};try{const s=new WebSocket(this.socketUrl);s.binaryType="arraybuffer",s.onopen=()=>{this.socket=s,this.startKeepalive(),n(s)},s.onmessage=l=>{this.handleSocketMessage(l.data)},s.onerror=()=>{!this.closed&&!this.getActiveSubscription()&&this.scheduleReconnect(new Error("Terminal websocket error"))},s.onclose=()=>{this.socket===s&&(this.socket=null,this.boundSessionId=null,this.stopKeepalive(),this.closed||this.scheduleReconnect(new Error("Terminal stream connection error"))),n(null)},this.socket=s,o=setTimeout(()=>{s.readyState===j&&(s.close(),n(null))},nt)}catch{n(null),this.closed||this.scheduleReconnect(new Error("Terminal websocket open failed"))}}))}bindActiveSession(){const t=this.getActiveSubscription();if(!(!t||!this.socket||this.socket.readyState!==m)){this.requestedSessionId=t.sessionId;try{this.socket.send(F({t:"b",s:t.sessionId,v:2}))}catch{this.handleSocketFailure(new Error("Terminal websocket bind failed"))}}}scheduleReconnect(t){if(this.closed||!this.socketUrl||this.reconnectTimeout)return;const e=this.getActiveSubscription(),o=(e?.retryCount??0)+1,n=e?.initialRetryDelay??tt,s=e?.maxRetryDelay??et,l=e?.maxRetries??Number.POSITIVE_INFINITY;if(e){if(o>l){this.clearConnectionTimeout(e),e.onError?.(t,!0);return}e.retryCount=o,e.connected=!1,e.onEvent({type:"reconnecting",attempt:o,maxAttempts:l}),this.startConnectionTimeout(e)}const d=Math.min(n*Math.pow(2,Math.max(o-1,0)),s),c=Math.floor(Math.random()*rt),h=d+c;this.reconnectTimeout=setTimeout(()=>{this.reconnectTimeout=null,this.ensureConnected(),this.bindActiveSession()},h)}clearReconnectTimeout(){this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null)}sendControl(t){if(!this.socket||this.socket.readyState!==m)return!1;try{return this.socket.send(F(t)),!0}catch{return this.handleSocketFailure(new Error("Terminal websocket control send failed")),!1}}startKeepalive(){this.stopKeepalive(),this.keepaliveInterval=setInterval(()=>{this.closed||this.sendControl({t:"p",v:2})},ot)}stopKeepalive(){this.keepaliveInterval&&(clearInterval(this.keepaliveInterval),this.keepaliveInterval=null)}async handleSocketMessage(t){const e=await this.asUint8Array(t);if(e&&e.length>0&&e[0]===Y){this.handleControlMessage(e);return}const o=await this.asText(t);if(!o)return;const n=this.getActiveSubscription();n&&n.onEvent({type:"data",data:o})}handleControlMessage(t){if(t.length<2)return;let e;try{e=JSON.parse(D.decode(t.subarray(1)))}catch{this.handleSocketFailure(new Error("Terminal websocket control parse failed"));return}const o=this.getActiveSubscription();switch(e.t){case"ok":this.bindActiveSession();return;case"po":return;case"bok":{if(this.boundSessionId=e.s??this.requestedSessionId,!o)return;o.retryCount=0,o.connected=!0,this.clearConnectionTimeout(o),o.onEvent({type:"connected",runtime:e.runtime,ptyBackend:e.ptyBackend});return}case"x":{if(!o){this.boundSessionId=null;return}if(e.s&&e.s!==o.sessionId)return;o.connected=!1,this.clearConnectionTimeout(o),this.boundSessionId=null,this.requestedSessionId=null,o.onEvent({type:"exit",exitCode:e.exitCode,signal:e.signal??null});return}case"e":{const n=it(e.c),s=e.f===!0||e.c==="SESSION_NOT_FOUND";(e.c==="NOT_BOUND"||e.c==="SESSION_NOT_FOUND")&&(this.boundSessionId=null),o&&(o.connected=!1,s&&this.clearConnectionTimeout(o),o.onError?.(n,s)),e.f===!0&&this.handleSocketFailure(n);return}default:return}}async asUint8Array(t){if(t instanceof ArrayBuffer)return new Uint8Array(t);if(t instanceof Uint8Array)return t;if(typeof Blob<"u"&&t instanceof Blob){const e=await t.arrayBuffer();return new Uint8Array(e)}return null}async asText(t){if(typeof t=="string")return t;const e=await this.asUint8Array(t);return e?D.decode(e):""}handleSocketFailure(t){this.boundSessionId=null,this.requestedSessionId=null,this.resetConnection(),this.scheduleReconnect(t)}resetConnection(){if(this.openPromise=null,this.stopKeepalive(),this.socket){const t=this.socket;this.socket=null,t.onopen=null,t.onmessage=null,t.onerror=null,t.onclose=null,(t.readyState===m||t.readyState===j)&&t.close()}this.boundSessionId=null}}const T=()=>{const r=globalThis;return r[P]||(r[P]={inputCapability:null,streamCapability:null,manager:null}),r[P]},_=()=>{const r=T();return r.manager||(r.manager=new at),r.manager},Q=r=>{const t=T();if(t.inputCapability=r?.input??null,t.streamCapability=r?.stream??null,!E(t.inputCapability)&&!E(t.streamCapability)){t.manager?.close(),t.manager=null;return}const e=A(R(t));if(!e)return;_().configure(e)},ct=async(r,t)=>{const e=await fetch(`/api/terminal/${r}/input`,{method:"POST",headers:{"Content-Type":"text/plain"},body:t});if(!e.ok){const o=await e.json().catch(()=>({error:"Failed to send terminal input"}));throw new Error(o.error||"Failed to send terminal input")}};async function lt(r){const t=await fetch("/api/terminal/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cwd:r.cwd,cols:r.cols??80,rows:r.rows??24})});if(!t.ok){const o=await t.json().catch(()=>({error:"Failed to create terminal"}));throw new Error(o.error||"Failed to create terminal session")}const e=await t.json();return Q(e.capabilities),e}const M=(r,t,e,o={})=>{const n=o.maxRetries??3,s=o.initialRetryDelay??1e3,l=o.maxRetryDelay??8e3,d=o.connectionTimeout??1e4;let c=null,h=0,w=null,u=null,y=!1,S=!1,g=!1;const v=()=>{w&&(clearTimeout(w),w=null),u&&(clearTimeout(u),u=null)},I=()=>{y||(y=!0,v(),c&&(c.close(),c=null))},$=(k,b)=>{if(!(y||g)){if(h<n&&!b){h+=1;const X=Math.min(s*Math.pow(2,h-1),l);t({type:"reconnecting",attempt:h,maxAttempts:n}),w=setTimeout(()=>{!y&&!g&&G()},X);return}e?.(k,!0),I()}},G=()=>{y||g||c&&c.readyState!==EventSource.CLOSED||(c=new EventSource(`/api/terminal/${r}/stream`),u=setTimeout(()=>{!S&&c?.readyState!==EventSource.OPEN&&(c?.close(),$(new Error("Connection timeout"),!1))},d),c.onopen=()=>{S||(S=!0,h=0,v(),t({type:"connected"}))},c.onmessage=k=>{try{const b=JSON.parse(k.data);b.type==="exit"&&(T().manager?.unbindSession(r),g=!0,I()),t(b)}catch(b){e?.(b,!1)}},c.onerror=()=>{v();const k=g||c?.readyState===EventSource.CLOSED;c?.close(),c=null,g||$(new Error("Terminal stream connection error"),k)})};return G(),I};function ut(r,t,e,o={}){const n=T();if(!E(n.streamCapability))return M(r,t,e,o);const s=_(),l=A(R(n));return l?(s.configure(l),s.subscribe(r,t,e,o)):M(r,t,e,o)}async function dt(r,t){const e=T();e.manager&&await e.manager.sendInput(r,t)||await ct(r,t)}async function ht(r,t,e){const o=await fetch(`/api/terminal/${r}/resize`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cols:t,rows:e})});if(!o.ok){const n=await o.json().catch(()=>({error:"Failed to resize terminal"}));throw new Error(n.error||"Failed to resize terminal")}}async function ft(r){T().manager?.unbindSession(r);const t=await fetch(`/api/terminal/${r}`,{method:"DELETE"});if(!t.ok){const e=await t.json().catch(()=>({error:"Failed to close terminal"}));throw new Error(e.error||"Failed to close terminal")}}async function pt(r,t){T().manager?.unbindSession(r);const e=await fetch(`/api/terminal/${r}/restart`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cwd:t.cwd,cols:t.cols??80,rows:t.rows??24})});if(!e.ok){const n=await e.json().catch(()=>({error:"Failed to restart terminal"}));throw new Error(n.error||"Failed to restart terminal")}const o=await e.json();return Q(o.capabilities),o}async function wt(r){const t=await fetch("/api/terminal/force-kill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!t.ok){const e=await t.json().catch(()=>({error:"Failed to force kill terminal"}));throw new Error(e.error||"Failed to force kill terminal")}r.sessionId&&T().manager?.unbindSession(r.sessionId)}function be(){const r=T();if(r.inputCapability&&r.streamCapability&&!E(r.inputCapability)&&!E(r.streamCapability))return;const t=R(r)||V,e=A(t);if(!e)return;const o=_();o.isConnectedOrConnecting(e)||(o.configure(e),o.prime())}const yt=r=>{const t=r?.retry;return{maxRetries:t?.maxRetries??3,initialRetryDelay:t?.initialDelayMs??1e3,maxRetryDelay:t?.maxDelayMs??8e3,connectionTimeout:r?.connectionTimeoutMs??1e4}},mt=()=>({async createSession(r){return lt(r)},connect(r,t,e){const o=ut(r,t.onEvent,t.onError,yt(e));return{close:()=>o()}},async sendInput(r,t){await dt(r,t)},async resize(r){await ht(r.sessionId,r.cols,r.rows)},async close(r){await ft(r)},async restartSession(r,t){return pt(r,{cwd:t.cwd??"",cols:t.cols,rows:t.rows})},async forceKill(r){await wt(r)}}),Tt=()=>{if(typeof window>"u")return"";const r=window.__OPENCHAMBER_DESKTOP_SERVER__?.origin;return r||window.location.origin},i="/api/git",gt=1200,bt=5e3,L=new Map,C=new Map,U=new Map,O=new Map,N=r=>r.trim();function a(r,t,e){const o=new URL(r,Tt());if(t&&o.searchParams.set("directory",t),e)for(const[n,s]of Object.entries(e))s!==void 0&&o.searchParams.set(n,String(s));return o.toString()}async function St(r){const t=N(r),e=Date.now(),o=U.get(t);if(o&&o.expiresAt>e)return o.value;const n=O.get(t);if(n)return n;const s=(async()=>{const l=await fetch(a(`${i}/check`,r));if(!l.ok)throw new Error(`Failed to check git repository: ${l.statusText}`);const c=!!(await l.json()).isGitRepository;return U.set(t,{value:c,expiresAt:Date.now()+bt}),c})();O.set(t,s);try{return await s}finally{O.get(t)===s&&O.delete(t)}}async function kt(r,t){const e=t?.mode,o=e==="light"?`${N(r)}::light`:N(r),n=Date.now(),s=L.get(o);if(s&&s.expiresAt>n)return s.value;const l=C.get(o);if(l)return l;const d=(async()=>{const c=await fetch(a(`${i}/status`,r,e?{mode:e}:void 0));if(!c.ok)throw new Error(`Failed to get git status: ${c.statusText}`);const h=await c.json();return L.set(o,{value:h,expiresAt:Date.now()+gt}),h})();C.set(o,d);try{return await d}finally{C.get(o)===d&&C.delete(o)}}async function Et(r,t){const{path:e,staged:o,contextLines:n}=t;if(!e)throw new Error("path is required to fetch git diff");const s=await fetch(a(`${i}/diff`,r,{path:e,staged:o?"true":void 0,context:n}));if(!s.ok)throw new Error(`Failed to get git diff: ${s.statusText}`);return s.json()}async function jt(r,t){const{path:e,staged:o}=t;if(!e)throw new Error("path is required to fetch git file diff");const n=await fetch(a(`${i}/file-diff`,r,{path:e,staged:o?"true":void 0}));if(!n.ok)throw new Error(`Failed to get git file diff: ${n.statusText}`);return n.json()}async function Ct(r,t){if(!t)throw new Error("path is required to revert git changes");const e=await fetch(a(`${i}/revert`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t})});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to revert git changes")}}async function Ot(r){if(!r)return!1;const t=await fetch(a(`${i}/worktree-type`,r));if(!t.ok)throw new Error(`Failed to detect worktree type: ${t.statusText}`);return!!(await t.json()).linked}async function xt(r){const t=await fetch(a(`${i}/branches`,r));if(!t.ok)throw new Error(`Failed to get branches: ${t.statusText}`);return t.json()}async function vt(r,t){if(!t?.branch)throw new Error("branch is required to delete a branch");const e=await fetch(a(`${i}/branches`,r),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to delete branch")}return e.json()}async function It(r,t){if(!t?.branch)throw new Error("branch is required to delete remote branch");const e=await fetch(a(`${i}/remote-branches`,r),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to delete remote branch")}return e.json()}async function Pt(r,t){const e=t?.remote?.trim();if(!e)throw new Error("remote is required to remove a remote");const o=await fetch(a(`${i}/remotes`,r),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({remote:e})});if(!o.ok){const n=await o.json().catch(()=>({error:o.statusText}));throw new Error(n.error||"Failed to remove remote")}return o.json()}async function Ft(r,t,e){if(!Array.isArray(t)||t.length===0)throw new Error("No files provided to generate commit message");const o={files:t};e?.zenModel&&(o.zenModel=e.zenModel),e?.providerId&&(o.providerId=e.providerId),e?.modelId&&(o.modelId=e.modelId);const n=await fetch(a(`${i}/commit-message`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!n.ok){const c=await n.json().catch(()=>({error:n.statusText}));console.error("[git-generation][browser] http error",{status:n.status,statusText:n.statusText,error:c});const h=typeof c?.traceId=="string"&&c.traceId?` (traceId: ${c.traceId})`:"";throw new Error(`${c.error||"Failed to generate commit message"}${h}`)}const s=await n.json();if(!s?.message||typeof s.message!="object")throw new Error("Malformed commit generation response");const l=typeof s.message.subject=="string"&&s.message.subject.trim().length>0?s.message.subject.trim():"",d=Array.isArray(s.message.highlights)?s.message.highlights.filter(c=>typeof c=="string"&&c.trim().length>0).map(c=>c.trim()):[];return{message:{subject:l,highlights:d}}}async function Nt(r,t){const{base:e,head:o,context:n,zenModel:s,providerId:l,modelId:d}=t;if(!e||!o)throw new Error("base and head are required");const c={base:e,head:o};n?.trim()&&(c.context=n.trim()),s&&(c.zenModel=s),l&&(c.providerId=l),d&&(c.modelId=d);const h=await fetch(a(`${i}/pr-description`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!h.ok){const S=await h.json().catch(()=>({error:h.statusText}));throw new Error(S.error||"Failed to generate PR description")}const w=await h.json().catch(()=>null),u=typeof w?.title=="string"?w.title:"",y=typeof w?.body=="string"?w.body:"";if(!u&&!y)throw new Error("Malformed PR description response");return{title:u,body:y}}async function J(r){const t=await fetch(a(`${i}/worktrees`,r));if(!t.ok){const e=await t.json().catch(()=>({error:t.statusText}));throw new Error(e.error||"Failed to list worktrees")}return t.json()}async function W(r,t){const e=await fetch(a(`${i}/worktrees/validate`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t??{})});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to validate worktree")}return e.json()}async function Se(r){const t=await fetch(a(`${i}/worktrees/bootstrap-status`,r));if(!t.ok){const e=await t.json().catch(()=>({error:t.statusText}));throw new Error(e.error||"Failed to get worktree bootstrap status")}return t.json()}async function ke(r,t){const e=await fetch(a(`${i}/worktrees/preview`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t??{})});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to preview worktree")}return e.json()}async function B(r,t){const e=await fetch(a(`${i}/worktrees`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t??{})});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to create worktree")}return e.json()}async function q(r,t){const e=await fetch(a(`${i}/worktrees`,r),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(t??{})});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to delete worktree")}return e.json()}async function At(r,t,e={}){const o=await fetch(a(`${i}/commit`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:t,addAll:e.addAll??!1,files:e.files})});if(!o.ok){const n=await o.json().catch(()=>({error:o.statusText}));throw new Error(n.error||"Failed to create commit")}return o.json()}async function Rt(r,t={}){const e=await fetch(a(`${i}/push`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to push")}return e.json()}async function _t(r,t={}){const e=await fetch(a(`${i}/pull`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to pull")}return e.json()}async function $t(r,t={}){const e=await fetch(a(`${i}/fetch`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to fetch")}return e.json()}async function Gt(r,t){const e=await fetch(a(`${i}/checkout`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({branch:t})});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to checkout branch")}return e.json()}async function Dt(r,t,e){const o=await fetch(a(`${i}/branches`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,startPoint:e})});if(!o.ok){const n=await o.json().catch(()=>({error:o.statusText}));throw new Error(n.error||"Failed to create branch")}return o.json()}async function Mt(r,t,e){const o=await fetch(a(`${i}/branches/rename`,r),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({oldName:t,newName:e})});if(!o.ok){const n=await o.json().catch(()=>({error:o.statusText}));throw new Error(n.error||"Failed to rename branch")}return o.json()}async function Lt(r,t={}){const e=await fetch(a(`${i}/log`,r,{maxCount:t.maxCount,from:t.from,to:t.to,file:t.file}));if(!e.ok)throw new Error(`Failed to get git log: ${e.statusText}`);return e.json()}async function Ut(r,t){const e=await fetch(a(`${i}/commit-files`,r,{hash:t}));if(!e.ok)throw new Error(`Failed to get commit files: ${e.statusText}`);return e.json()}async function Jt(){const r=await fetch(a(`${i}/identities`,void 0));if(!r.ok)throw new Error(`Failed to get git identities: ${r.statusText}`);return r.json()}async function Wt(r){const t=await fetch(a(`${i}/identities`,void 0),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!t.ok){const e=await t.json().catch(()=>({error:t.statusText}));throw new Error(e.error||"Failed to create git identity")}return t.json()}async function Bt(r,t){const e=await fetch(a(`${i}/identities/${r}`,void 0),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to update git identity")}return e.json()}async function qt(r){const t=await fetch(a(`${i}/identities/${r}`,void 0),{method:"DELETE"});if(!t.ok){const e=await t.json().catch(()=>({error:t.statusText}));throw new Error(e.error||"Failed to delete git identity")}}async function zt(r){if(!r)return null;const t=await fetch(a(`${i}/current-identity`,r));if(!t.ok)throw new Error(`Failed to get current git identity: ${t.statusText}`);const e=await t.json();return e?{userName:e.userName??null,userEmail:e.userEmail??null,sshCommand:e.sshCommand??null}:null}async function Kt(r){if(!r)return!1;const t=await fetch(a(`${i}/has-local-identity`,r));if(!t.ok)throw new Error(`Failed to check local identity: ${t.statusText}`);return(await t.json().catch(()=>null))?.hasLocalIdentity===!0}async function Ee(){const r=await fetch(a(`${i}/global-identity`,void 0));if(!r.ok)throw new Error(`Failed to get global git identity: ${r.statusText}`);const t=await r.json();return!t||!t.userName&&!t.userEmail?null:{userName:t.userName??null,userEmail:t.userEmail??null,sshCommand:t.sshCommand??null}}async function Ht(r,t){const e=await fetch(a(`${i}/set-identity`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({profileId:t})});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to set git identity")}return e.json()}async function je(){const r=await fetch(a(`${i}/discover-credentials`,void 0));if(!r.ok)throw new Error(`Failed to discover git credentials: ${r.statusText}`);return r.json()}async function Yt(r){const t=await fetch(a(`${i}/remotes`,r));if(!t.ok)throw new Error(`Failed to get remotes: ${t.statusText}`);return t.json()}async function Vt(r,t){const e=await fetch(a(`${i}/rebase`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to rebase")}return e.json()}async function Qt(r){const t=await fetch(a(`${i}/rebase/abort`,r),{method:"POST"});if(!t.ok){const e=await t.json().catch(()=>({error:t.statusText}));throw new Error(e.error||"Failed to abort rebase")}return t.json()}async function Xt(r,t){const e=await fetch(a(`${i}/merge`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to merge")}return e.json()}async function Zt(r){const t=await fetch(a(`${i}/merge/abort`,r),{method:"POST"});if(!t.ok){const e=await t.json().catch(()=>({error:t.statusText}));throw new Error(e.error||"Failed to abort merge")}return t.json()}async function te(r){const t=await fetch(a(`${i}/rebase/continue`,r),{method:"POST"});if(!t.ok){const e=await t.json().catch(()=>({error:t.statusText}));throw new Error(e.error||"Failed to continue rebase")}return t.json()}async function ee(r){const t=await fetch(a(`${i}/merge/continue`,r),{method:"POST"});if(!t.ok){const e=await t.json().catch(()=>({error:t.statusText}));throw new Error(e.error||"Failed to continue merge")}return t.json()}async function re(r,t){const e=await fetch(a(`${i}/stash`,r),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t||{})});if(!e.ok){const o=await e.json().catch(()=>({error:e.statusText}));throw new Error(o.error||"Failed to stash")}return e.json()}async function oe(r){const t=await fetch(a(`${i}/stash/pop`,r),{method:"POST"});if(!t.ok){const e=await t.json().catch(()=>({error:t.statusText}));throw new Error(e.error||"Failed to pop stash")}return t.json()}async function ne(r){const t=await fetch(a(`${i}/conflict-details`,r));if(!t.ok)throw new Error(`Failed to get conflict details: ${t.statusText}`);return t.json()}const se=()=>({checkIsGitRepository:St,getGitStatus:kt,getGitDiff:Et,getGitFileDiff:jt,revertGitFile:Ct,isLinkedWorktree:Ot,getGitBranches:xt,deleteGitBranch:vt,deleteRemoteBranch:It,removeRemote:Pt,generateCommitMessage:Ft,generatePullRequestDescription:Nt,listGitWorktrees:J,validateGitWorktree:W,createGitWorktree:B,deleteGitWorktree:q,createGitCommit(r,t,e){return At(r,t,e)},gitPush:Rt,gitPull:_t,gitFetch:$t,checkoutBranch:Gt,createBranch:Dt,renameBranch:Mt,getGitLog(r,t){return Lt(r,t)},getCommitFiles:Ut,getCurrentGitIdentity:zt,hasLocalIdentity:Kt,setGitIdentity:Ht,getGitIdentities:Jt,createGitIdentity:Wt,updateGitIdentity:Bt,deleteGitIdentity:qt,getRemotes:Yt,rebase:Vt,abortRebase:Qt,continueRebase:te,merge:Xt,abortMerge:Zt,continueMerge:ee,stash:re,stashPop:oe,getConflictDetails:ne,worktree:{list:J,validate:W,create:B,remove:q}}),p=r=>r.replace(/\\/g,"/"),ie=(r,t)=>{const e=p(t?.directory||t?.path||r),o=Array.isArray(t?.entries)?t.entries:[];return{directory:e,entries:o.filter(n=>!!(n&&typeof n.name=="string"&&typeof n.path=="string")).map(n=>({name:n.name,path:p(n.path),isDirectory:!!n.isDirectory}))}},ae=()=>({async listDirectory(r){const t=p(r),e=new URLSearchParams;t&&e.set("path",t);const o=await fetch(`/api/fs/list${e.toString()?`?${e.toString()}`:""}`);if(!o.ok){const s=await o.json().catch(()=>({error:o.statusText}));throw new Error(s.error||"Failed to list directory")}const n=await o.json();return ie(t,n)},async search(r){const t=new URLSearchParams,e=p(r.directory);e&&t.set("directory",e),t.set("query",r.query),t.set("dirs","false"),t.set("type","file"),typeof r.maxResults=="number"&&Number.isFinite(r.maxResults)&&t.set("limit",String(r.maxResults));const o=await fetch(`/api/find/file?${t.toString()}`);if(!o.ok){const l=await o.json().catch(()=>({error:o.statusText}));throw new Error(l.error||"Failed to search files")}const n=await o.json();return(Array.isArray(n)?n:[]).map(l=>({path:p(`${e}/${l}`),preview:[p(l)]}))},async createDirectory(r){const t=p(r),e=await fetch("/api/fs/mkdir",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t})});if(!e.ok){const n=await e.json().catch(()=>({error:e.statusText}));throw new Error(n.error||"Failed to create directory")}const o=await e.json();return{success:!!o?.success,path:typeof o?.path=="string"?p(o.path):t}},async statFile(r){const t=p(r),e=await fetch(`/api/fs/stat?path=${encodeURIComponent(t)}`);if(!e.ok){const n=await e.json().catch(()=>({error:e.statusText}));throw new Error(n.error||"Failed to stat file")}const o=await e.json().catch(()=>({}));return{path:typeof o.path=="string"?p(o.path):t,isFile:!!o.isFile,size:typeof o.size=="number"?o.size:0}},async readFile(r){const t=p(r),e=await fetch(`/api/fs/read?path=${encodeURIComponent(t)}`);if(!e.ok){const n=await e.json().catch(()=>({error:e.statusText}));throw new Error(n.error||"Failed to read file")}return{content:await e.text(),path:t}},async writeFile(r,t){const e=p(r),o=await fetch("/api/fs/write",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,content:t})});if(!o.ok){const s=await o.json().catch(()=>({error:o.statusText}));throw new Error(s.error||"Failed to write file")}const n=await o.json().catch(()=>({}));return{success:!!n.success,path:typeof n.path=="string"?p(n.path):e}},async delete(r){const t=p(r),e=await fetch("/api/fs/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t})});if(!e.ok){const n=await e.json().catch(()=>({error:e.statusText}));throw new Error(n.error||"Failed to delete file")}return{success:!!(await e.json().catch(()=>({}))).success}},async rename(r,t){const e=await fetch("/api/fs/rename",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({oldPath:r,newPath:t})});if(!e.ok){const n=await e.json().catch(()=>({error:e.statusText}));throw new Error(n.error||"Failed to rename file")}const o=await e.json().catch(()=>({}));return{success:!!o.success,path:typeof o.path=="string"?p(o.path):t}},async revealPath(r){const t=await fetch("/api/fs/reveal",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:p(r)})});if(!t.ok){const o=await t.json().catch(()=>({error:t.statusText}));throw new Error(o.error||"Failed to reveal path")}return{success:!!(await t.json().catch(()=>({}))).success}}}),z="/api/config/settings",ce="/api/config/reload",K=r=>!r||typeof r!="object"?{}:r,le=()=>({async load(){const r=await fetch(z,{method:"GET",headers:{Accept:"application/json"}});if(!r.ok)throw new Error(`Failed to load settings: ${r.statusText}`);return{settings:K(await r.json().catch(()=>({}))),source:"web"}},async save(r){const t=await fetch(z,{method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)});if(!t.ok){const o=await t.json().catch(()=>({error:t.statusText}));throw new Error(o.error||"Failed to save settings")}return K(await t.json().catch(()=>({})))},async restartOpenCode(){const r=await fetch(ce,{method:"POST"});if(!r.ok){const t=await r.json().catch(()=>({error:r.statusText}));throw new Error(t.error||"Failed to restart OpenCode")}return{restarted:!0}}}),ue=()=>({async requestDirectoryAccess(r){return{success:!0,path:r.path}},async startAccessingDirectory(r){return{success:!0}},async stopAccessingDirectory(r){return{success:!0}}}),de=async r=>{if(typeof Notification>"u")return console.info("Notifications not supported in this environment",r),!1;if(Notification.permission==="default"&&await Notification.requestPermission()!=="granted"||Notification.permission!=="granted")return console.warn("Notification permission not granted"),!1;try{return new Notification(r?.title??"OpenChamber",{body:r?.body,tag:r?.tag}),!0}catch(t){return console.warn("Failed to send notification",t),!1}},he=async r=>{if(typeof window>"u")return!1;const t=window.__TAURI__;if(!t?.core?.invoke)return!1;try{return await t.core.invoke("desktop_notify",{payload:{title:r?.title,body:r?.body,tag:r?.tag}}),!0}catch(e){return console.warn("Failed to send native notification (tauri)",e),!1}},fe=()=>({async notifyAgentCompletion(r){return await he(r)||de(r)},canNotify:()=>typeof window<"u"&&window.__TAURI__?.core?.invoke?!0:typeof Notification<"u"?Notification.permission==="granted":!1}),pe=()=>({async getAvailableTools(){const r=await fetch("/api/experimental/tool/ids");if(!r.ok)throw new Error(`Tools API returned ${r.status} ${r.statusText}`);const t=await r.json();if(!Array.isArray(t))throw new Error("Tools API returned invalid data format");return t.filter(e=>typeof e=="string"&&e!=="invalid").sort()}}),x=async(r,t)=>{try{const e=await fetch(r,{...t,credentials:"include",headers:{Accept:"application/json",...t?.headers??{}}});return e.ok?await e.json():null}catch{return null}},we=()=>({async getVapidPublicKey(){return x("/api/push/vapid-public-key")},async subscribe(r){return x("/api/push/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})},async unsubscribe(r){return x("/api/push/subscribe",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})},async setVisibility(r){return x("/api/push/visibility",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r),keepalive:!0})}}),f=async r=>await r.json().catch(()=>null),ye=()=>({async authStatus(){const r=await fetch("/api/github/auth/status",{method:"GET",headers:{Accept:"application/json"}}),t=await f(r);if(!r.ok||!t)throw new Error(t?.error||r.statusText||"Failed to load GitHub status");return t},async authStart(){const r=await fetch("/api/github/auth/start",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({})}),t=await f(r);if(!r.ok||!t||!("deviceCode"in t))throw new Error(t?.error||r.statusText||"Failed to start GitHub auth");return t},async authComplete(r){const t=await fetch("/api/github/auth/complete",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({deviceCode:r})}),e=await f(t);if(!t.ok||!e)throw new Error(e?.error||t.statusText||"Failed to complete GitHub auth");return e},async authDisconnect(){const r=await fetch("/api/github/auth",{method:"DELETE",headers:{Accept:"application/json"}}),t=await f(r);if(!r.ok)throw new Error(t?.error||r.statusText||"Failed to disconnect GitHub");return{removed:!!t?.removed}},async authActivate(r){const t=await fetch("/api/github/auth/activate",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({accountId:r})}),e=await f(t);if(!t.ok||!e)throw new Error(e?.error||t.statusText||"Failed to activate GitHub account");return e},async me(){const r=await fetch("/api/github/me",{method:"GET",headers:{Accept:"application/json"}}),t=await f(r);if(!r.ok||!t)throw new Error(t?.error||r.statusText||"Failed to fetch GitHub user");return t},async prStatus(r,t,e){const o=new URLSearchParams({directory:r,branch:t,...e?{remote:e}:{}}),n=await fetch(`/api/github/pr/status?${o.toString()}`,{method:"GET",headers:{Accept:"application/json"}}),s=await f(n);if(!n.ok||!s)throw new Error(s?.error||n.statusText||"Failed to load PR status");return s},async prCreate(r){const t=await fetch("/api/github/pr/create",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)}),e=await f(t);if(!t.ok||!e)throw new Error(e?.error||t.statusText||"Failed to create PR");return e},async prUpdate(r){const t=await fetch("/api/github/pr/update",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)}),e=await f(t);if(!t.ok||!e)throw new Error(e?.error||t.statusText||"Failed to update PR");return e},async prMerge(r){const t=await fetch("/api/github/pr/merge",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)}),e=await f(t);if(!t.ok||!e)throw new Error(e?.error||t.statusText||"Failed to merge PR");return e},async prReady(r){const t=await fetch("/api/github/pr/ready",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)}),e=await f(t);if(!t.ok||!e)throw new Error(e?.error||t.statusText||"Failed to mark PR ready");return e},async prsList(r,t){const e=t?.page??1,o=await fetch(`/api/github/pulls/list?directory=${encodeURIComponent(r)}&page=${encodeURIComponent(String(e))}`,{method:"GET",headers:{Accept:"application/json"}}),n=await f(o);if(!o.ok||!n)throw new Error(n?.error||o.statusText||"Failed to load pull requests");return n},async prContext(r,t,e){const o=new URL("/api/github/pulls/context",window.location.origin);o.searchParams.set("directory",r),o.searchParams.set("number",String(t)),e?.includeDiff&&o.searchParams.set("diff","1"),e?.includeCheckDetails&&o.searchParams.set("checkDetails","1");const n=await fetch(o.toString(),{method:"GET",headers:{Accept:"application/json"}}),s=await f(n);if(!n.ok||!s)throw new Error(s?.error||n.statusText||"Failed to load pull request context");return s},async issuesList(r,t){const e=t?.page??1,o=await fetch(`/api/github/issues/list?directory=${encodeURIComponent(r)}&page=${encodeURIComponent(String(e))}`,{method:"GET",headers:{Accept:"application/json"}}),n=await f(o);if(!o.ok||!n)throw new Error(n?.error||o.statusText||"Failed to load issues");return n},async issueGet(r,t){const e=await fetch(`/api/github/issues/get?directory=${encodeURIComponent(r)}&number=${encodeURIComponent(String(t))}`,{method:"GET",headers:{Accept:"application/json"}}),o=await f(e);if(!e.ok||!o)throw new Error(o?.error||e.statusText||"Failed to load issue");return o},async issueComments(r,t){const e=await fetch(`/api/github/issues/comments?directory=${encodeURIComponent(r)}&number=${encodeURIComponent(String(t))}`,{method:"GET",headers:{Accept:"application/json"}}),o=await f(e);if(!e.ok||!o)throw new Error(o?.error||e.statusText||"Failed to load issue comments");return o}}),me=()=>({runtime:{platform:"web",isDesktop:!1,isVSCode:!1,label:"web"},terminal:mt(),git:se(),files:ae(),settings:le(),permissions:ue(),notifications:fe(),github:ye(),push:we(),tools:pe()});function Te(r={}){const{immediate:t=!1,onNeedRefresh:e,onOfflineReady:o,onRegistered:n,onRegisteredSW:s,onRegisterError:l}=r;let d,c;const h=async(u=!0)=>{await c};async function w(){if("serviceWorker"in navigator){if(d=await H(async()=>{const{Workbox:u}=await import("./vendor-.bun-B34wtB0D.js").then(y=>y.eQ);return{Workbox:u}},__vite__mapDeps([0,1])).then(({Workbox:u})=>new u("/sw.js",{scope:"/",type:"classic"})).catch(u=>{l?.(u)}),!d)return;d.addEventListener("activated",u=>{(u.isUpdate||u.isExternal)&&window.location.reload()}),d.addEventListener("installed",u=>{u.isUpdate||o?.()}),d.register({immediate:t}).then(u=>{s?s("/sw.js",u):n?.(u)}).catch(u=>{l?.(u)})}}return c=w(),h}window.__OPENCHAMBER_RUNTIME_APIS__=me();Te({onRegisterError(r){console.warn("[PWA] service worker registration failed:",r)}});H(()=>import("./main-Ba2uuSTQ.js").then(r=>r.m),__vite__mapDeps([2,0,1,3]));export{Wt as a,je as b,ft as c,qt as d,Ee as e,Jt as f,Se as g,St as h,kt as i,xt as j,B as k,q as l,J as m,It as n,Lt as o,ke as p,Ut as q,ne as r,be as s,Bt as u,W as v};
|