@spikonado/sprocket 0.2.3 → 0.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spikonado/sprocket",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Agentic platform for streamlining hardware and software development",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -29,10 +29,10 @@
29
29
  "access": "public"
30
30
  },
31
31
  "optionalDependencies": {
32
- "@spikonado/sprocket-linux-x64-gnu": "0.2.3",
33
- "@spikonado/sprocket-linux-arm64-gnu": "0.2.3",
34
- "@spikonado/sprocket-darwin-x64": "0.2.3",
35
- "@spikonado/sprocket-darwin-arm64": "0.2.3",
36
- "@spikonado/sprocket-win32-x64-msvc": "0.2.3"
32
+ "@spikonado/sprocket-linux-x64-gnu": "0.2.4",
33
+ "@spikonado/sprocket-linux-arm64-gnu": "0.2.4",
34
+ "@spikonado/sprocket-darwin-x64": "0.2.4",
35
+ "@spikonado/sprocket-darwin-arm64": "0.2.4",
36
+ "@spikonado/sprocket-win32-x64-msvc": "0.2.4"
37
37
  }
38
38
  }
@@ -0,0 +1 @@
1
+ import"./Gpzakw_M.js";
@@ -1 +1 @@
1
- import{F as e,J as t,N as n,P as r,X as i,n as a,nt as o,t as s}from"./BrZMY0Kx.js";import"./Dp2IcZBu.js";var c=class{constructor(e,t){this.status=e,typeof t==`string`?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},l=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},u=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function d(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function f(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function p(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function ee(e,t,n,r=!1){let i=new URL(e);Object.defineProperty(i,"searchParams",{value:new Proxy(i.searchParams,{get(e,r){if(r===`get`||r===`getAll`||r===`has`)return(t,...i)=>(n(t),e[r](t,...i));t();let i=Reflect.get(e,r);return typeof i==`function`?i.bind(e):i}}),enumerable:!0,configurable:!0});let a=[`href`,`pathname`,`search`,`toString`,`toJSON`];r&&a.push(`hash`);for(let n of a)Object.defineProperty(i,n,{get(){return t(),e[n]},enumerable:!0,configurable:!0});return i}function h(){}function g(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder;function _(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var te=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(b(e)),te(e,t));var v=new Map;function y(e,t){let n=b(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent);r.getAttribute(`data-b64`)!==null&&(e=_(e));let i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function ne(e,t,n){if(v.size>0){let t=b(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function b(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${g(...e)}"]`}return n}var re=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,ie=/^\/\((?:[^)]+)\)$/;function ae(e){let t=[];return{pattern:e===`/`||ie.test(e)?/^\/$/:RegExp(`^${se(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return le(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return le(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=re.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return le(e)}).join(``)}).join(``)}/?$`),params:t}}function oe(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function se(e){return e.slice(1).split(`/`).filter(oe)}function ce(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0)if(s.rest)c=``;else continue;if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function le(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}var ue=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function de(e,t){let n=se(e),r=e!=`/`&&e.endsWith(`/`);return`/`+n.map(n=>n.replace(ue,(n,r,i,a)=>{let o=t[a];if(!o){if(r||i&&o!==void 0)return``;throw Error(`Missing parameter '${a}' in route ${e}`)}if(o.startsWith(`/`)||o.endsWith(`/`))throw Error(`Parameter '${a}' in route ${e} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return o})).filter(Boolean).join(`/`)+(r?`/`:``)}function fe({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=ae(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return ce(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function pe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function me(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var x=globalThis.__sveltekit_wt7q2c?.base??``,he=globalThis.__sveltekit_wt7q2c?.assets??x??``,ge=``;function _e(...e){if(!e[0].startsWith(`/`))throw Error(`Cannot use \`resolve(...)\` with a non-absolute pathname or route ID (got "${e[0]}"). \`resolve\` is only for internal pathnames and route IDs; external URLs should be used directly.`);return x+ge+de(e[0],e[1])}var ve=`1785439609975`,ye=`sveltekit:snapshot`,be=`sveltekit:scroll`,xe=`sveltekit:states`,S=`sveltekit:history`,C=`sveltekit:navigation`,w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Se=location.origin;function Ce(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var we={...w,"":w.hover};function Te(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ee(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=Te(e)}}function De(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||D(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===Se&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function Oe(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=Te(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:we[r??`off`],preload_data:we[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function ke(e){let t=o(e),n=!0;function r(){n=!0,t.update(e=>e)}function i(e){n=!1,t.set(e)}function a(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:r,set:i,subscribe:a}}var Ae={v:h};function je(){let{set:e,subscribe:t}=o(!1);async function n(){clearTimeout(void 0);try{let t=await fetch(`${he}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let n=(await t.json()).version!==ve;return n&&(e(!0),Ae.v(),clearTimeout(void 0)),n}catch{return!1}}return{subscribe:t,check:n}}function D(e,t,n){return e.origin!==Se||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Me(e){}var Ne=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);[...Ne],[...new Set([...Ne])];function Pe(e){return e.filter(e=>e!=null)}function O(e,t){return e+`/`+t}function Fe(e){return e instanceof c||e instanceof u?e.status:500}function Ie(e){return e instanceof u?e.text:`Internal Error`}var k,A,Le,Re=a.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(a.toString()),ze=`a:`;Re?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(ze)},A={current:null},Le={current:!1}):(k=new class{#e=i({});get data(){return n(this.#e)}set data(e){t(this.#e,e)}#t=i(null);get form(){return n(this.#t)}set form(e){t(this.#t,e)}#n=i(null);get error(){return n(this.#n)}set error(e){t(this.#n,e)}#r=i({});get params(){return n(this.#r)}set params(e){t(this.#r,e)}#i=i({id:null});get route(){return n(this.#i)}set route(e){t(this.#i,e)}#a=i({});get state(){return n(this.#a)}set state(e){t(this.#a,e)}#o=i(-1);get status(){return n(this.#o)}set status(e){t(this.#o,e)}#s=i(new URL(ze));get url(){return n(this.#s)}set url(e){t(this.#s,e)}},A=new class{#e=i(null);get current(){return n(this.#e)}set current(e){t(this.#e,e)}},Le=new class{#e=i(!1);get current(){return n(this.#e)}set current(e){t(this.#e,e)}},Ae.v=()=>Le.current=!0);function Be(e){Object.assign(k,e)}var Ve={spanContext(){return He},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}},He={traceId:``,spanId:``,traceFlags:0},{onMount:Ue,tick:We}=s,Ge=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),j=null,M=pe(`sveltekit:scroll`)??{},N=pe(`sveltekit:snapshot`)??{},P={url:ke({}),page:ke({}),navigating:o(null),updated:je()};function Ke(e){M[e]=T()}function qe(e,t){let n=e+1;for(;M[n];)delete M[n],n+=1;for(n=t+1;N[n];)delete N[n],n+=1}function F(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(h)}async function Je(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(x||`/`);e&&await e.update()}}var Ye,Xe,I,L,Ze,R,Qe={},$e={},z=[],B=[],V=null;function H(){V?.fork?.then(e=>e?.discard()),V=null,Q={element:void 0,href:void 0}}var et=new Map,tt=new Set,nt=new Set,U=new Set,W={branch:[],error:null,url:null,nav:null},rt=!1,it=!1,at=!0,G=!1,K=!1,ot=!1,st=!1,ct,q,J,Y,lt=new Set,ut=new Map,dt=new Map;async function ft(e,t,n){if(globalThis.__sveltekit_wt7q2c.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_wt7q2c.data;for(let t in e)Qe[t]=e[t];for(let e in n)Qe[e]=n[e];for(let e in r)Qe[e]=r[e];for(let e in t)$e[e]=t[e]}document.URL!==location.href&&(location.href=location.href),R=e,await e.hooks.init?.(),Ye=fe(e),L=document.documentElement,Ze=t,Xe=e.nodes[0],I=e.nodes[1],Xe(),I(),q=history.state?.[S],J=history.state?.[C],q||(q=J=Date.now(),history.replaceState({...history.state,[S]:q,[C]:J},``));let r=M[q];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await Bt(Ze,n)):(await Z({type:`enter`,url:Ce(R.hash?Kt(new URL(location.href)):location.href),replace_state:!0}),i()),zt()}function pt(){z.length=0,st=!1}function mt(e){B.some(e=>e?.snapshot)&&(N[e]=B.map(e=>e?.snapshot?.capture()))}function ht(e){N[e]?.forEach((e,t)=>{B[t]?.snapshot?.restore(e)})}function gt(){Ke(q),me(be,M),mt(J),me(ye,N)}async function _t(t,n,r,i){let a,o;n.invalidateAll&&H(),await Z({type:`goto`,url:Ce(t),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:r,nav_token:i,accept:()=>{if(n.invalidateAll){st=!0,a=new Set;for(let[e,t]of ut)for(let[n,r]of t)r.resource?.reset(),a.add(O(e,n));o=new Set;for(let[e,t]of dt)for(let n of t.keys())o.add(O(e,n))}n.invalidate&&n.invalidate.forEach(Rt)}}),n.invalidateAll&&e().then(e).then(()=>{for(let[e,t]of ut)for(let[n,{resource:r}]of t)a?.has(O(e,n))&&r.start();for(let[e,t]of dt)for(let[n,{resource:r}]of t)o?.has(O(e,n))&&r.reconnect()})}async function vt(e){if(e.id!==V?.id){H();let t={};lt.add(t),V={id:e.id,token:t,promise:Ot({...e,preload:t}).then(e=>(lt.delete(t),e.type===`loaded`&&e.state.error&&H(),e)),fork:null}}return V.promise}async function yt(e){let t=(await X(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function bt(e,t,n){let r={params:W.params,route:{id:W.route?.id??null},url:new URL(location.href)};if(W={...e.state,nav:r},Be(e.props.page),ct=new R.root({target:t,props:{...e.props,stores:P,components:B},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:M[q]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};U.forEach(t=>t(e))}ht(J),it=!0}async function xt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(x&&(e.pathname===x||e.pathname===x+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=d(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Pe(n).map(e=>e.node.component),page:Gt(k)}};s!==void 0&&(l.props.form=s);let u={},f=!k,p=0;for(let e=0;e<Math.max(n.length,W.branch.length);e+=1){let t=n[e],r=W.branch[e];t?.data!==r?.data&&(f=!0),t&&(u={...u,...t.data},f&&(l.props[`data_${p}`]=u),p+=1)}return(!W.url||e.href!==W.url.href||W.error!==a||s!==void 0&&s!==k.form||f)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:f?u:k.data}),l}async function St({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:Ve,current:Ve},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:ee(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},R.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=Ct(t,r,n);return s&&e(i.href),a},setHeaders:h,depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function Ct(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:it?ne(r,i.href,t):y(r,t)}}function wt(e,t,n,r,i,a){if(st)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==W.params[e])return!0;for(let e of i.dependencies)if(z.some(t=>t(new URL(e))))return!0;return!1}function Tt(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function Et(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function Dt({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Gt(k),constructors:[]}}}async function Ot({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(V?.id===e)return lt.delete(V.token),V.promise;let{errors:o,layouts:s,leaf:u}=i,d=[...s,u];o.forEach(e=>e?.().catch(h)),d.forEach(e=>e?.[1]().catch(h));let f=W.url?e!==Nt(W.url):!1,p=W.route?i.id!==W.route.id:!1,m=Et(W.url,n),ee=!1,g=d.map(async(e,t)=>{if(!e)return;let a=W.branch[t];return e[1]===a?.loader&&!wt(ee,p,f,m,a.universal?.uses,r)?a:(ee=!0,St({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:Tt(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(h);let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof l)return{type:`redirect`,location:t.location};if(a&&lt.has(a))return Dt({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=Fe(t),u;if(t instanceof c)u=t.body;else{if(await P.updated.check())return await Je(),await F(n);u=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await kt(e,_,o);return d?xt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:u,route:i}):await Ft(n,{id:i.id},u,s)}else _.push(void 0);return xt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function kt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function At({status:e,error:t,url:n,route:r}){let i={};try{return xt({url:n,params:i,branch:[await St({loader:Xe,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:Tt(null)}),{node:await I(),loader:I,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(t){if(t instanceof l){await _t(new URL(t.location,location.href),{},0);return}let a=await R.get_error_template(),o=await $(t,{url:n,params:i,route:r}),s=a({status:e,message:String(o?.message??``).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),t}}async function jt(e){let t=e.href;if(et.has(t))return et.get(t);let n;try{let r=(async()=>{let t=await R.hooks.reroute({url:new URL(e),fetch:async(t,n)=>Ct(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);R.hash?n.hash=t:n.pathname=t,t=n}return t})();et.set(t,r),n=await r}catch{et.delete(t);return}return n}async function X(e,t){if(e&&!D(e,x,R.hash)){let n=await jt(e);if(!n)return;let r=Mt(n);for(let n of Ye){let i=n.exec(r);if(i)return{id:Nt(e),invalidating:t,route:n,params:p(i),url:e}}}}function Mt(e){return f(R.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(x.length))||`/`}function Nt(e){return(R.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Pt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Wt(W,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return G||tt.forEach(e=>e(c)),o?null:s}async function Z({type:t,url:n,popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:l=0,nav_token:d={},accept:f=h,block:p=h,event:m}){let ee=Y;Y=d;let g=await X(n,!1),_=t===`enter`?Wt(W,g,n,t):Pt({url:n,type:t,delta:i?.delta,intent:g,scroll:i?.scroll,event:m});if(!_){p(),Y===d&&(Y=ee);return}let te=q,v=J;f(),G=!0,it&&_.navigation.type!==`enter`&&P.navigating.set(A.current=_.navigation);let y=g&&await Ot(g);if(!y){if(D(n,x,R.hash))return await F(n,s);y=await Ft(n,{id:null},await $(new u(404,`Not Found`,`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404,s)}if(n=g?.url||n,Y!==d){_.reject(Error(`navigation aborted`));return}if(!y)return;if(y.type===`redirect`){if(l<20){await Z({type:t,url:new URL(y.location,n),popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:l+1,nav_token:d}),_.fulfil(void 0);return}if(y=await At({status:500,error:await $(Error(`Redirect loop`),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}}),!y)return}else if(y.props.page.status>=400&&await P.updated.check())return await Je(),await F(n,s);if(pt(),Ke(te),mt(v),y.props.page.url.pathname!==n.pathname&&(n.pathname=y.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,t={[S]:q+=e,[C]:J+=e,[xe]:c};(s?history.replaceState:history.pushState).call(history,t,``,n),s||qe(q,J)}let ne=g&&V?.id===g.id?V.fork:null;V?.fork&&!ne?H():(V=null,Q={element:void 0,href:void 0}),y.props.page.state=c;let b;if(it){let e=(await Promise.all(Array.from(nt,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{U.delete(e)})}e.push(t),e.forEach(e=>{U.add(e)})}let t=_.navigation.to;W={...y.state,nav:{params:t.params,route:t.route,url:t.url}},y.props.page&&(y.props.page.url=n),!a&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();let i=ne&&await ne;i?b=i.commit():(j=null,ct.$set(y.props),j&&Object.assign(y.props.page,j),Be(y.props.page),b=r?.()),ot=!0}else await bt(y,Ze,!1);let{activeElement:re}=document;if(await b,await e(),await e(),Y!==d){_.reject(Error(`navigation aborted`));return}y.props.page&&j&&Object.assign(y.props.page,j);let ie=null;if(at){let e=i?i.scroll:o?T():null;e?scrollTo(e.x,e.y):(ie=n.hash&&document.getElementById(qt(n)))?ie.scrollIntoView():scrollTo(0,0)}let ae=document.activeElement!==re&&document.activeElement!==document.body;!a&&!ae&&Ut(n,!ie),at=!0,G=!1,_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=T()),U.forEach(e=>e(_.navigation)),t===`popstate`&&ht(J),P.navigating.set(A.current=null)}async function Ft(e,t,n,r,i){return e.origin===Se&&e.pathname===location.pathname&&!rt?await At({status:r,error:n,url:e,route:t}):await F(e,i)}var Q={element:void 0,href:void 0};function It(){let e,t;L.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,w.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],w.tap)}L.addEventListener(`mousedown`,n),L.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(yt(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=Ee(e,L),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=De(r,x,R.hash);if(o||s)return;let c=Oe(r),l=a&&Nt(W.url)===Nt(a);if(!(c.reload||l))if(n<=c.preload_data){Q={element:r,href:r.href},t=w.tap;let e=await X(a,!1);if(!e)return;vt(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,yt(a))}function a(){r.disconnect();for(let e of L.querySelectorAll(`a`)){let{url:t,external:n,download:i}=De(e,x,R.hash);if(n||i)continue;let a=Oe(e);a.reload||(a.preload_code===w.viewport&&r.observe(e),a.preload_code===w.eager&&yt(t))}}U.add(a),a()}function $(e,t){if(e instanceof c)return e.body;let n=Fe(e),r=Ie(e);return R.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Lt(e,t={}){return e=new URL(Ce(e)),e.origin===Se?_t(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function Rt(e){if(typeof e==`function`)z.push(e);else{let{href:t}=new URL(e,location.href);z.push(e=>e.href===t)}}function zt(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(gt(),!G){let e=Wt(W,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};tt.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&gt()}),navigator.connection?.saveData||It(),L.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=Ee(t.composedPath()[0],L);if(!n)return;let{url:r,external:i,target:a,download:o}=De(n,x,R.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=Oe(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol===`https:`||r.protocol===`http:`)||o)return;let[c,l]=(R.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Pt({url:r,type:`link`,event:t})?G=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=W.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(K=!0,Ke(q),e(r),!s.replace_state)return;K=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Z({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),L.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(D(r,x,!1))return;let i=e.target,a=Oe(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Z({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Ht)if(t.state?.[`sveltekit:history`]){let n=t.state[S];if(Y={},n===q)return;let r=M[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[C],s=W.url?m(location)===m(W.url):!1;if(o===J&&(ot||s)){i!==k.state&&(k.state=i),e(a),M[q]=T(),r&&scrollTo(r.x,r.y),q=n;return}let c=n-q;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{q=n,J=o},block:()=>{history.go(-c)},nav_token:Y,event:t})}else K||(e(new URL(location.href)),R.hash&&location.reload())}),addEventListener(`hashchange`,()=>{K&&(K=!1,history.replaceState({...history.state,[S]:++q,[C]:J},``,location.href))});for(let e of document.querySelectorAll(`link`))Ge.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&P.navigating.set(A.current=null)});function e(e){W.url=k.url=e,P.page.set(Gt(k)),P.page.notify()}}async function Bt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){rt=!0;let u=new URL(location.href),d;({params:i={},route:a={id:null}}=await X(u,!1)||{}),d=Ye.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Vt(r.uses)),St({loader:R.nodes[t],url:u,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:Tt(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await xt({url:u,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof l)return await F(new URL(t.location,location.href));f=await At({status:Fe(t),error:await $(t,{url:u,params:i,route:a}),url:u,route:a}),e.textContent=``,p=!1}f&&(f.props.page&&(f.props.page.state={}),await bt(f,e,p))}function Vt(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??[])}}var Ht=!1;function Ut(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=qt(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Ht=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Ht=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Wt(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(h),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function Gt(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 Kt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function qt(e){let t;if(R.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{k as a,_e as c,A as i,ft as n,Le as o,P as r,Me as s,Lt as t};
1
+ import{F as e,J as t,N as n,P as r,X as i,n as a,nt as o,t as s}from"./BrZMY0Kx.js";import"./Dp2IcZBu.js";var c=class{constructor(e,t){this.status=e,typeof t==`string`?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},l=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},u=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function d(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function f(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function p(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function ee(e,t,n,r=!1){let i=new URL(e);Object.defineProperty(i,"searchParams",{value:new Proxy(i.searchParams,{get(e,r){if(r===`get`||r===`getAll`||r===`has`)return(t,...i)=>(n(t),e[r](t,...i));t();let i=Reflect.get(e,r);return typeof i==`function`?i.bind(e):i}}),enumerable:!0,configurable:!0});let a=[`href`,`pathname`,`search`,`toString`,`toJSON`];r&&a.push(`hash`);for(let n of a)Object.defineProperty(i,n,{get(){return t(),e[n]},enumerable:!0,configurable:!0});return i}function h(){}function g(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder;function _(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var te=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(b(e)),te(e,t));var v=new Map;function y(e,t){let n=b(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent);r.getAttribute(`data-b64`)!==null&&(e=_(e));let i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function ne(e,t,n){if(v.size>0){let t=b(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function b(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${g(...e)}"]`}return n}var re=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,ie=/^\/\((?:[^)]+)\)$/;function ae(e){let t=[];return{pattern:e===`/`||ie.test(e)?/^\/$/:RegExp(`^${se(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return le(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return le(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=re.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return le(e)}).join(``)}).join(``)}/?$`),params:t}}function oe(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function se(e){return e.slice(1).split(`/`).filter(oe)}function ce(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0)if(s.rest)c=``;else continue;if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function le(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}var ue=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function de(e,t){let n=se(e),r=e!=`/`&&e.endsWith(`/`);return`/`+n.map(n=>n.replace(ue,(n,r,i,a)=>{let o=t[a];if(!o){if(r||i&&o!==void 0)return``;throw Error(`Missing parameter '${a}' in route ${e}`)}if(o.startsWith(`/`)||o.endsWith(`/`))throw Error(`Parameter '${a}' in route ${e} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return o})).filter(Boolean).join(`/`)+(r?`/`:``)}function fe({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=ae(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return ce(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function pe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function me(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var x=globalThis.__sveltekit_qp8h20?.base??``,he=globalThis.__sveltekit_qp8h20?.assets??x??``,ge=``;function _e(...e){if(!e[0].startsWith(`/`))throw Error(`Cannot use \`resolve(...)\` with a non-absolute pathname or route ID (got "${e[0]}"). \`resolve\` is only for internal pathnames and route IDs; external URLs should be used directly.`);return x+ge+de(e[0],e[1])}var ve=`1785481326693`,ye=`sveltekit:snapshot`,be=`sveltekit:scroll`,xe=`sveltekit:states`,S=`sveltekit:history`,C=`sveltekit:navigation`,w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Se=location.origin;function Ce(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var we={...w,"":w.hover};function Te(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ee(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=Te(e)}}function De(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||D(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===Se&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function Oe(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=Te(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:we[r??`off`],preload_data:we[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function ke(e){let t=o(e),n=!0;function r(){n=!0,t.update(e=>e)}function i(e){n=!1,t.set(e)}function a(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:r,set:i,subscribe:a}}var Ae={v:h};function je(){let{set:e,subscribe:t}=o(!1);async function n(){clearTimeout(void 0);try{let t=await fetch(`${he}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let n=(await t.json()).version!==ve;return n&&(e(!0),Ae.v(),clearTimeout(void 0)),n}catch{return!1}}return{subscribe:t,check:n}}function D(e,t,n){return e.origin!==Se||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Me(e){}var Ne=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);[...Ne],[...new Set([...Ne])];function Pe(e){return e.filter(e=>e!=null)}function O(e,t){return e+`/`+t}function Fe(e){return e instanceof c||e instanceof u?e.status:500}function Ie(e){return e instanceof u?e.text:`Internal Error`}var k,A,Le,Re=a.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(a.toString()),ze=`a:`;Re?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(ze)},A={current:null},Le={current:!1}):(k=new class{#e=i({});get data(){return n(this.#e)}set data(e){t(this.#e,e)}#t=i(null);get form(){return n(this.#t)}set form(e){t(this.#t,e)}#n=i(null);get error(){return n(this.#n)}set error(e){t(this.#n,e)}#r=i({});get params(){return n(this.#r)}set params(e){t(this.#r,e)}#i=i({id:null});get route(){return n(this.#i)}set route(e){t(this.#i,e)}#a=i({});get state(){return n(this.#a)}set state(e){t(this.#a,e)}#o=i(-1);get status(){return n(this.#o)}set status(e){t(this.#o,e)}#s=i(new URL(ze));get url(){return n(this.#s)}set url(e){t(this.#s,e)}},A=new class{#e=i(null);get current(){return n(this.#e)}set current(e){t(this.#e,e)}},Le=new class{#e=i(!1);get current(){return n(this.#e)}set current(e){t(this.#e,e)}},Ae.v=()=>Le.current=!0);function Be(e){Object.assign(k,e)}var Ve={spanContext(){return He},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}},He={traceId:``,spanId:``,traceFlags:0},{onMount:Ue,tick:We}=s,Ge=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),j=null,M=pe(`sveltekit:scroll`)??{},N=pe(`sveltekit:snapshot`)??{},P={url:ke({}),page:ke({}),navigating:o(null),updated:je()};function Ke(e){M[e]=T()}function qe(e,t){let n=e+1;for(;M[n];)delete M[n],n+=1;for(n=t+1;N[n];)delete N[n],n+=1}function F(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(h)}async function Je(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(x||`/`);e&&await e.update()}}var Ye,Xe,I,L,Ze,R,Qe={},$e={},z=[],B=[],V=null;function H(){V?.fork?.then(e=>e?.discard()),V=null,Q={element:void 0,href:void 0}}var et=new Map,tt=new Set,nt=new Set,U=new Set,W={branch:[],error:null,url:null,nav:null},rt=!1,it=!1,at=!0,G=!1,K=!1,ot=!1,st=!1,ct,q,J,Y,lt=new Set,ut=new Map,dt=new Map;async function ft(e,t,n){if(globalThis.__sveltekit_qp8h20.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_qp8h20.data;for(let t in e)Qe[t]=e[t];for(let e in n)Qe[e]=n[e];for(let e in r)Qe[e]=r[e];for(let e in t)$e[e]=t[e]}document.URL!==location.href&&(location.href=location.href),R=e,await e.hooks.init?.(),Ye=fe(e),L=document.documentElement,Ze=t,Xe=e.nodes[0],I=e.nodes[1],Xe(),I(),q=history.state?.[S],J=history.state?.[C],q||(q=J=Date.now(),history.replaceState({...history.state,[S]:q,[C]:J},``));let r=M[q];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await Bt(Ze,n)):(await Z({type:`enter`,url:Ce(R.hash?Kt(new URL(location.href)):location.href),replace_state:!0}),i()),zt()}function pt(){z.length=0,st=!1}function mt(e){B.some(e=>e?.snapshot)&&(N[e]=B.map(e=>e?.snapshot?.capture()))}function ht(e){N[e]?.forEach((e,t)=>{B[t]?.snapshot?.restore(e)})}function gt(){Ke(q),me(be,M),mt(J),me(ye,N)}async function _t(t,n,r,i){let a,o;n.invalidateAll&&H(),await Z({type:`goto`,url:Ce(t),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:r,nav_token:i,accept:()=>{if(n.invalidateAll){st=!0,a=new Set;for(let[e,t]of ut)for(let[n,r]of t)r.resource?.reset(),a.add(O(e,n));o=new Set;for(let[e,t]of dt)for(let n of t.keys())o.add(O(e,n))}n.invalidate&&n.invalidate.forEach(Rt)}}),n.invalidateAll&&e().then(e).then(()=>{for(let[e,t]of ut)for(let[n,{resource:r}]of t)a?.has(O(e,n))&&r.start();for(let[e,t]of dt)for(let[n,{resource:r}]of t)o?.has(O(e,n))&&r.reconnect()})}async function vt(e){if(e.id!==V?.id){H();let t={};lt.add(t),V={id:e.id,token:t,promise:Ot({...e,preload:t}).then(e=>(lt.delete(t),e.type===`loaded`&&e.state.error&&H(),e)),fork:null}}return V.promise}async function yt(e){let t=(await X(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function bt(e,t,n){let r={params:W.params,route:{id:W.route?.id??null},url:new URL(location.href)};if(W={...e.state,nav:r},Be(e.props.page),ct=new R.root({target:t,props:{...e.props,stores:P,components:B},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:M[q]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};U.forEach(t=>t(e))}ht(J),it=!0}async function xt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(x&&(e.pathname===x||e.pathname===x+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=d(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Pe(n).map(e=>e.node.component),page:Gt(k)}};s!==void 0&&(l.props.form=s);let u={},f=!k,p=0;for(let e=0;e<Math.max(n.length,W.branch.length);e+=1){let t=n[e],r=W.branch[e];t?.data!==r?.data&&(f=!0),t&&(u={...u,...t.data},f&&(l.props[`data_${p}`]=u),p+=1)}return(!W.url||e.href!==W.url.href||W.error!==a||s!==void 0&&s!==k.form||f)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:f?u:k.data}),l}async function St({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:Ve,current:Ve},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:ee(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},R.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=Ct(t,r,n);return s&&e(i.href),a},setHeaders:h,depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function Ct(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:it?ne(r,i.href,t):y(r,t)}}function wt(e,t,n,r,i,a){if(st)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==W.params[e])return!0;for(let e of i.dependencies)if(z.some(t=>t(new URL(e))))return!0;return!1}function Tt(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function Et(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function Dt({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Gt(k),constructors:[]}}}async function Ot({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(V?.id===e)return lt.delete(V.token),V.promise;let{errors:o,layouts:s,leaf:u}=i,d=[...s,u];o.forEach(e=>e?.().catch(h)),d.forEach(e=>e?.[1]().catch(h));let f=W.url?e!==Nt(W.url):!1,p=W.route?i.id!==W.route.id:!1,m=Et(W.url,n),ee=!1,g=d.map(async(e,t)=>{if(!e)return;let a=W.branch[t];return e[1]===a?.loader&&!wt(ee,p,f,m,a.universal?.uses,r)?a:(ee=!0,St({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:Tt(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(h);let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof l)return{type:`redirect`,location:t.location};if(a&&lt.has(a))return Dt({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=Fe(t),u;if(t instanceof c)u=t.body;else{if(await P.updated.check())return await Je(),await F(n);u=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await kt(e,_,o);return d?xt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:u,route:i}):await Ft(n,{id:i.id},u,s)}else _.push(void 0);return xt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function kt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function At({status:e,error:t,url:n,route:r}){let i={};try{return xt({url:n,params:i,branch:[await St({loader:Xe,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:Tt(null)}),{node:await I(),loader:I,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(t){if(t instanceof l){await _t(new URL(t.location,location.href),{},0);return}let a=await R.get_error_template(),o=await $(t,{url:n,params:i,route:r}),s=a({status:e,message:String(o?.message??``).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),t}}async function jt(e){let t=e.href;if(et.has(t))return et.get(t);let n;try{let r=(async()=>{let t=await R.hooks.reroute({url:new URL(e),fetch:async(t,n)=>Ct(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);R.hash?n.hash=t:n.pathname=t,t=n}return t})();et.set(t,r),n=await r}catch{et.delete(t);return}return n}async function X(e,t){if(e&&!D(e,x,R.hash)){let n=await jt(e);if(!n)return;let r=Mt(n);for(let n of Ye){let i=n.exec(r);if(i)return{id:Nt(e),invalidating:t,route:n,params:p(i),url:e}}}}function Mt(e){return f(R.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(x.length))||`/`}function Nt(e){return(R.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Pt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Wt(W,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return G||tt.forEach(e=>e(c)),o?null:s}async function Z({type:t,url:n,popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:l=0,nav_token:d={},accept:f=h,block:p=h,event:m}){let ee=Y;Y=d;let g=await X(n,!1),_=t===`enter`?Wt(W,g,n,t):Pt({url:n,type:t,delta:i?.delta,intent:g,scroll:i?.scroll,event:m});if(!_){p(),Y===d&&(Y=ee);return}let te=q,v=J;f(),G=!0,it&&_.navigation.type!==`enter`&&P.navigating.set(A.current=_.navigation);let y=g&&await Ot(g);if(!y){if(D(n,x,R.hash))return await F(n,s);y=await Ft(n,{id:null},await $(new u(404,`Not Found`,`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404,s)}if(n=g?.url||n,Y!==d){_.reject(Error(`navigation aborted`));return}if(!y)return;if(y.type===`redirect`){if(l<20){await Z({type:t,url:new URL(y.location,n),popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:l+1,nav_token:d}),_.fulfil(void 0);return}if(y=await At({status:500,error:await $(Error(`Redirect loop`),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}}),!y)return}else if(y.props.page.status>=400&&await P.updated.check())return await Je(),await F(n,s);if(pt(),Ke(te),mt(v),y.props.page.url.pathname!==n.pathname&&(n.pathname=y.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,t={[S]:q+=e,[C]:J+=e,[xe]:c};(s?history.replaceState:history.pushState).call(history,t,``,n),s||qe(q,J)}let ne=g&&V?.id===g.id?V.fork:null;V?.fork&&!ne?H():(V=null,Q={element:void 0,href:void 0}),y.props.page.state=c;let b;if(it){let e=(await Promise.all(Array.from(nt,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{U.delete(e)})}e.push(t),e.forEach(e=>{U.add(e)})}let t=_.navigation.to;W={...y.state,nav:{params:t.params,route:t.route,url:t.url}},y.props.page&&(y.props.page.url=n),!a&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();let i=ne&&await ne;i?b=i.commit():(j=null,ct.$set(y.props),j&&Object.assign(y.props.page,j),Be(y.props.page),b=r?.()),ot=!0}else await bt(y,Ze,!1);let{activeElement:re}=document;if(await b,await e(),await e(),Y!==d){_.reject(Error(`navigation aborted`));return}y.props.page&&j&&Object.assign(y.props.page,j);let ie=null;if(at){let e=i?i.scroll:o?T():null;e?scrollTo(e.x,e.y):(ie=n.hash&&document.getElementById(qt(n)))?ie.scrollIntoView():scrollTo(0,0)}let ae=document.activeElement!==re&&document.activeElement!==document.body;!a&&!ae&&Ut(n,!ie),at=!0,G=!1,_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=T()),U.forEach(e=>e(_.navigation)),t===`popstate`&&ht(J),P.navigating.set(A.current=null)}async function Ft(e,t,n,r,i){return e.origin===Se&&e.pathname===location.pathname&&!rt?await At({status:r,error:n,url:e,route:t}):await F(e,i)}var Q={element:void 0,href:void 0};function It(){let e,t;L.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,w.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],w.tap)}L.addEventListener(`mousedown`,n),L.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(yt(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=Ee(e,L),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=De(r,x,R.hash);if(o||s)return;let c=Oe(r),l=a&&Nt(W.url)===Nt(a);if(!(c.reload||l))if(n<=c.preload_data){Q={element:r,href:r.href},t=w.tap;let e=await X(a,!1);if(!e)return;vt(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,yt(a))}function a(){r.disconnect();for(let e of L.querySelectorAll(`a`)){let{url:t,external:n,download:i}=De(e,x,R.hash);if(n||i)continue;let a=Oe(e);a.reload||(a.preload_code===w.viewport&&r.observe(e),a.preload_code===w.eager&&yt(t))}}U.add(a),a()}function $(e,t){if(e instanceof c)return e.body;let n=Fe(e),r=Ie(e);return R.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Lt(e,t={}){return e=new URL(Ce(e)),e.origin===Se?_t(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function Rt(e){if(typeof e==`function`)z.push(e);else{let{href:t}=new URL(e,location.href);z.push(e=>e.href===t)}}function zt(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(gt(),!G){let e=Wt(W,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};tt.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&gt()}),navigator.connection?.saveData||It(),L.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=Ee(t.composedPath()[0],L);if(!n)return;let{url:r,external:i,target:a,download:o}=De(n,x,R.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=Oe(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol===`https:`||r.protocol===`http:`)||o)return;let[c,l]=(R.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Pt({url:r,type:`link`,event:t})?G=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=W.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(K=!0,Ke(q),e(r),!s.replace_state)return;K=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Z({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),L.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(D(r,x,!1))return;let i=e.target,a=Oe(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Z({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Ht)if(t.state?.[`sveltekit:history`]){let n=t.state[S];if(Y={},n===q)return;let r=M[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[C],s=W.url?m(location)===m(W.url):!1;if(o===J&&(ot||s)){i!==k.state&&(k.state=i),e(a),M[q]=T(),r&&scrollTo(r.x,r.y),q=n;return}let c=n-q;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{q=n,J=o},block:()=>{history.go(-c)},nav_token:Y,event:t})}else K||(e(new URL(location.href)),R.hash&&location.reload())}),addEventListener(`hashchange`,()=>{K&&(K=!1,history.replaceState({...history.state,[S]:++q,[C]:J},``,location.href))});for(let e of document.querySelectorAll(`link`))Ge.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&P.navigating.set(A.current=null)});function e(e){W.url=k.url=e,P.page.set(Gt(k)),P.page.notify()}}async function Bt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){rt=!0;let u=new URL(location.href),d;({params:i={},route:a={id:null}}=await X(u,!1)||{}),d=Ye.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Vt(r.uses)),St({loader:R.nodes[t],url:u,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:Tt(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await xt({url:u,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof l)return await F(new URL(t.location,location.href));f=await At({status:Fe(t),error:await $(t,{url:u,params:i,route:a}),url:u,route:a}),e.textContent=``,p=!1}f&&(f.props.page&&(f.props.page.state={}),await bt(f,e,p))}function Vt(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??[])}}var Ht=!1;function Ut(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=qt(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Ht=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Ht=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Wt(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(h),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function Gt(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 Kt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function qt(e){let t;if(R.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{k as a,_e as c,A as i,ft as n,Le as o,P as r,Me as s,Lt as t};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DkSNvmi3.js","../chunks/BrZMY0Kx.js","../chunks/xihTtKlq.js","../chunks/tqyHaQv_.js","../chunks/Dp2IcZBu.js","../chunks/YGmybFhl.js","../assets/0.D2EsWSqR.css","../nodes/1.Ch7umpDD.js","../chunks/3ZyTbKY0.js","../nodes/2.jioR6rVj.js","../chunks/CBOYsvSw.js","../chunks/B2QV2lSm.js","../nodes/3.aLpT9KzR.js","../chunks/BIjiMMn-.js","../nodes/4.CrPe7_-y.js"])))=>i.map(i=>d[i]);
2
- import{B as e,C as t,D as n,E as r,F as i,G as a,J as o,N as s,T as c,U as l,V as u,W as d,X as f,Z as p,at as m,dt as h,i as g,it as _,k as v,n as y,r as b,s as x,v as S,w as C,z as w}from"../chunks/BrZMY0Kx.js";import"../chunks/xihTtKlq.js";var T=`modulepreload`,E=function(e,t){return new URL(e,t).href},D={},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=E(t,n),t=s(t),t in D)return;D[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:T,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},k={},A=n(`<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>`),j=n(`<!> <!>`,1);function M(n,b){m(b,!0);let T=g(b,`components`,23,()=>[]),E=g(b,`data_0`,3,null),D=g(b,`data_1`,3,null);u(()=>b.stores.page.set(b.page)),e(()=>{b.stores,b.page,b.constructors,T(),b.form,E(),D(),b.stores.page.notify()});let O=f(!1),k=f(!1),M=f(null);y(()=>{let e=b.stores.page.subscribe(()=>{s(O)&&(o(k,!0),i().then(()=>{o(M,document.title||`untitled page`,!0)}))});return o(O,!0),e});let N=p(()=>b.constructors[1]);var P=j(),F=d(P),I=e=>{let t=p(()=>b.constructors[0]);var n=r();S(d(n),()=>s(t),(e,t)=>{x(t(e,{get data(){return E()},get form(){return b.form},get params(){return b.page.params},children:(e,t)=>{var n=r();S(d(n),()=>s(N),(e,t)=>{x(t(e,{get data(){return D()},get form(){return b.form},get params(){return b.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),c(e,n)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),c(e,n)},L=e=>{let t=p(()=>b.constructors[0]);var n=r();S(d(n),()=>s(t),(e,t)=>{x(t(e,{get data(){return E()},get form(){return b.form},get params(){return b.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),c(e,n)};t(F,e=>{b.constructors[1]?e(I):e(L,-1)});var R=a(F,2),z=e=>{var n=A(),r=l(n),i=e=>{var t=v();w(()=>C(t,s(M))),c(e,t)};t(r,e=>{s(k)&&e(i)}),h(n),c(e,n)};t(R,e=>{s(O)&&e(z)}),c(n,P),_()}var N=b(M),P=[()=>O(()=>import(`../nodes/0.DkSNvmi3.js`),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),()=>O(()=>import(`../nodes/1.Ch7umpDD.js`),__vite__mapDeps([7,1,8,4,2]),import.meta.url),()=>O(()=>import(`../nodes/2.jioR6rVj.js`),__vite__mapDeps([9,1,8,4,2,3,5,10,11]),import.meta.url),()=>O(()=>import(`../nodes/3.aLpT9KzR.js`),__vite__mapDeps([12,1,8,4,2,3,10,13]),import.meta.url),()=>O(()=>import(`../nodes/4.CrPe7_-y.js`),__vite__mapDeps([14,1,8,4,2,10,11,13]),import.meta.url)],F=[],I={"/":[2],"/callback":[3],"/pair":[4]},L={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},R=Object.fromEntries(Object.entries(L.transport).map(([e,t])=>[e,t.decode])),z=Object.fromEntries(Object.entries(L.transport).map(([e,t])=>[e,t.encode])),B=!1,V=(e,t)=>R[e](t),H=()=>O(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{V as decode,R as decoders,I as dictionary,z as encoders,H as get_error_template,B as hash,L as hooks,k as matchers,P as nodes,N as root,F as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DkSNvmi3.js","../chunks/BrZMY0Kx.js","../chunks/xihTtKlq.js","../chunks/tqyHaQv_.js","../chunks/Dp2IcZBu.js","../chunks/YGmybFhl.js","../assets/0.D2EsWSqR.css","../nodes/1.BFs0dVNv.js","../chunks/Gpzakw_M.js","../nodes/2.DoDGxrnS.js","../chunks/CBOYsvSw.js","../chunks/B2QV2lSm.js","../nodes/3.3ADP24Td.js","../chunks/BlLZh3MQ.js","../nodes/4.CVlcxCTj.js"])))=>i.map(i=>d[i]);
2
+ import{B as e,C as t,D as n,E as r,F as i,G as a,J as o,N as s,T as c,U as l,V as u,W as d,X as f,Z as p,at as m,dt as h,i as g,it as _,k as v,n as y,r as b,s as x,v as S,w as C,z as w}from"../chunks/BrZMY0Kx.js";import"../chunks/xihTtKlq.js";var T=`modulepreload`,E=function(e,t){return new URL(e,t).href},D={},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=E(t,n),t=s(t),t in D)return;D[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:T,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},k={},A=n(`<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>`),j=n(`<!> <!>`,1);function M(n,b){m(b,!0);let T=g(b,`components`,23,()=>[]),E=g(b,`data_0`,3,null),D=g(b,`data_1`,3,null);u(()=>b.stores.page.set(b.page)),e(()=>{b.stores,b.page,b.constructors,T(),b.form,E(),D(),b.stores.page.notify()});let O=f(!1),k=f(!1),M=f(null);y(()=>{let e=b.stores.page.subscribe(()=>{s(O)&&(o(k,!0),i().then(()=>{o(M,document.title||`untitled page`,!0)}))});return o(O,!0),e});let N=p(()=>b.constructors[1]);var P=j(),F=d(P),I=e=>{let t=p(()=>b.constructors[0]);var n=r();S(d(n),()=>s(t),(e,t)=>{x(t(e,{get data(){return E()},get form(){return b.form},get params(){return b.page.params},children:(e,t)=>{var n=r();S(d(n),()=>s(N),(e,t)=>{x(t(e,{get data(){return D()},get form(){return b.form},get params(){return b.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),c(e,n)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),c(e,n)},L=e=>{let t=p(()=>b.constructors[0]);var n=r();S(d(n),()=>s(t),(e,t)=>{x(t(e,{get data(){return E()},get form(){return b.form},get params(){return b.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),c(e,n)};t(F,e=>{b.constructors[1]?e(I):e(L,-1)});var R=a(F,2),z=e=>{var n=A(),r=l(n),i=e=>{var t=v();w(()=>C(t,s(M))),c(e,t)};t(r,e=>{s(k)&&e(i)}),h(n),c(e,n)};t(R,e=>{s(O)&&e(z)}),c(n,P),_()}var N=b(M),P=[()=>O(()=>import(`../nodes/0.DkSNvmi3.js`),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),()=>O(()=>import(`../nodes/1.BFs0dVNv.js`),__vite__mapDeps([7,1,8,4,2]),import.meta.url),()=>O(()=>import(`../nodes/2.DoDGxrnS.js`),__vite__mapDeps([9,1,8,4,2,3,5,10,11]),import.meta.url),()=>O(()=>import(`../nodes/3.3ADP24Td.js`),__vite__mapDeps([12,1,8,4,2,3,10,13]),import.meta.url),()=>O(()=>import(`../nodes/4.CVlcxCTj.js`),__vite__mapDeps([14,1,8,4,2,10,11,13]),import.meta.url)],F=[],I={"/":[2],"/callback":[3],"/pair":[4]},L={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},R=Object.fromEntries(Object.entries(L.transport).map(([e,t])=>[e,t.decode])),z=Object.fromEntries(Object.entries(L.transport).map(([e,t])=>[e,t.encode])),B=!1,V=(e,t)=>R[e](t),H=()=>O(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{V as decode,R as decoders,I as dictionary,z as encoders,H as get_error_template,B as hash,L as hooks,k as matchers,P as nodes,N as root,F as server_loads};
@@ -0,0 +1 @@
1
+ import{n as e,s as t}from"../chunks/Gpzakw_M.js";export{t as load_css,e as start};
@@ -1 +1 @@
1
- import{D as e,G as t,T as n,U as r,W as i,at as a,dt as o,it as s,w as c,z as l}from"../chunks/BrZMY0Kx.js";import{a as u,r as d}from"../chunks/3ZyTbKY0.js";import"../chunks/xihTtKlq.js";var f={get data(){return u.data},get error(){return u.error},get form(){return u.form},get params(){return u.params},get route(){return u.route},get state(){return u.state},get status(){return u.status},get url(){return u.url}};d.updated.check;var p=f,m=e(`<h1> </h1> <p> </p>`,1);function h(e,u){a(u,!0);var d=m(),f=i(d),h=r(f,!0);o(f);var g=t(f,2),_=r(g,!0);o(g),l(()=>{c(h,p.status),c(_,p.error?.message)}),n(e,d),s()}export{h as component};
1
+ import{D as e,G as t,T as n,U as r,W as i,at as a,dt as o,it as s,w as c,z as l}from"../chunks/BrZMY0Kx.js";import{a as u,r as d}from"../chunks/Gpzakw_M.js";import"../chunks/xihTtKlq.js";var f={get data(){return u.data},get error(){return u.error},get form(){return u.form},get params(){return u.params},get route(){return u.route},get state(){return u.state},get status(){return u.status},get url(){return u.url}};d.updated.check;var p=f,m=e(`<h1> </h1> <p> </p>`,1);function h(e,u){a(u,!0);var d=m(),f=i(d),h=r(f,!0);o(f);var g=t(f,2),_=r(g,!0);o(g),l(()=>{c(h,p.status),c(_,p.error?.message)}),n(e,d),s()}export{h as component};
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,B as n,C as r,D as i,E as a,F as o,G as s,H as c,J as l,K as u,L as d,M as f,N as p,O as m,Q as h,R as g,S as _,T as v,U as y,W as b,X as x,Y as S,Z as C,_ as w,a as T,at as E,b as D,c as ee,d as O,dt as k,et as te,f as A,ft as ne,g as re,i as j,it as M,j as N,k as ie,l as ae,m as P,n as oe,o as F,p as I,pt as se,q as ce,rt as L,s as le,u as R,ut as z,v as B,w as V,x as ue,y as H,z as U}from"../chunks/BrZMY0Kx.js";import{c as de}from"../chunks/3ZyTbKY0.js";import"../chunks/xihTtKlq.js";import{a as fe,d as pe,f as me,i as he,l as ge,n as _e,p as W,r as ve,s as ye,t as be,u as xe}from"../chunks/tqyHaQv_.js";import{a as Se,i as Ce,o as we,r as Te}from"../chunks/YGmybFhl.js";import{a as G,i as Ee,n as De,r as Oe,t as ke}from"../chunks/CBOYsvSw.js";import{a as Ae,n as je,o as Me}from"../chunks/B2QV2lSm.js";var Ne=Object.defineProperty,Pe=(e,t,n)=>t in e?Ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K=(e,t,n)=>Pe(e,typeof t==`symbol`?t:t+``,n),Fe=`https://docs.convex.dev/error#undefined-validator`;function q(e,t){let n=t===void 0?``:` for field "${t}"`;throw Error(`A validator is undefined${n} in ${e}. This is often caused by circular imports. See ${Fe} for details.`)}var Ie=class{constructor({isOptional:e}){K(this,`type`),K(this,`fieldPaths`),K(this,`isOptional`),K(this,`isConvexValidator`),this.isOptional=e,this.isConvexValidator=!0}},Le=class e extends Ie{constructor({isOptional:e,tableName:t}){if(super({isOptional:e}),K(this,`tableName`),K(this,`kind`,`id`),typeof t!=`string`)throw Error(`v.id(tableName) requires a string`);this.tableName=t}get json(){return{type:`id`,tableName:this.tableName}}asOptional(){return new e({isOptional:`optional`,tableName:this.tableName})}},Re=class e extends Ie{constructor(){super(...arguments),K(this,`kind`,`float64`)}get json(){return{type:`number`}}asOptional(){return new e({isOptional:`optional`})}},ze=class e extends Ie{constructor(){super(...arguments),K(this,`kind`,`int64`)}get json(){return{type:`bigint`}}asOptional(){return new e({isOptional:`optional`})}},Be=class e extends Ie{constructor(){super(...arguments),K(this,`kind`,`boolean`)}get json(){return{type:this.kind}}asOptional(){return new e({isOptional:`optional`})}},Ve=class e extends Ie{constructor(){super(...arguments),K(this,`kind`,`bytes`)}get json(){return{type:this.kind}}asOptional(){return new e({isOptional:`optional`})}},He=class e extends Ie{constructor(){super(...arguments),K(this,`kind`,`string`)}get json(){return{type:this.kind}}asOptional(){return new e({isOptional:`optional`})}},Ue=class e extends Ie{constructor(){super(...arguments),K(this,`kind`,`null`)}get json(){return{type:this.kind}}asOptional(){return new e({isOptional:`optional`})}},J=class e extends Ie{constructor(){super(...arguments),K(this,`kind`,`any`)}get json(){return{type:this.kind}}asOptional(){return new e({isOptional:`optional`})}},We=class e extends Ie{constructor({isOptional:e,fields:t}){super({isOptional:e}),K(this,`fields`),K(this,`kind`,`object`),globalThis.Object.entries(t).forEach(([e,t])=>{if(t===void 0&&q(`v.object()`,e),!t.isConvexValidator)throw Error(`v.object() entries must be validators`)}),this.fields=t}get json(){return{type:this.kind,value:globalThis.Object.fromEntries(globalThis.Object.entries(this.fields).map(([e,t])=>[e,{fieldType:t.json,optional:t.isOptional===`optional`}]))}}asOptional(){return new e({isOptional:`optional`,fields:this.fields})}omit(...t){let n={...this.fields};for(let e of t)delete n[e];return new e({isOptional:this.isOptional,fields:n})}pick(...t){let n={};for(let e of t)n[e]=this.fields[e];return new e({isOptional:this.isOptional,fields:n})}partial(){let t={};for(let[e,n]of globalThis.Object.entries(this.fields))t[e]=n.asOptional();return new e({isOptional:this.isOptional,fields:t})}extend(t){return new e({isOptional:this.isOptional,fields:{...this.fields,...t}})}},Y=class e extends Ie{constructor({isOptional:e,value:t}){if(super({isOptional:e}),K(this,`value`),K(this,`kind`,`literal`),typeof t!=`string`&&typeof t!=`boolean`&&typeof t!=`number`&&typeof t!=`bigint`)throw Error(`v.literal(value) must be a string, number, or boolean`);this.value=t}get json(){return{type:this.kind,value:we(this.value)}}asOptional(){return new e({isOptional:`optional`,value:this.value})}},Ge=class e extends Ie{constructor({isOptional:e,element:t}){super({isOptional:e}),K(this,`element`),K(this,`kind`,`array`),t===void 0&&q(`v.array()`),this.element=t}get json(){return{type:this.kind,value:this.element.json}}asOptional(){return new e({isOptional:`optional`,element:this.element})}},Ke=class e extends Ie{constructor({isOptional:e,key:t,value:n}){if(super({isOptional:e}),K(this,`key`),K(this,`value`),K(this,`kind`,`record`),t===void 0&&q(`v.record()`,`key`),n===void 0&&q(`v.record()`,`value`),t.isOptional===`optional`)throw Error(`Record validator cannot have optional keys`);if(n.isOptional===`optional`)throw Error(`Record validator cannot have optional values`);if(!t.isConvexValidator||!n.isConvexValidator)throw Error(`Key and value of v.record() but be validators`);this.key=t,this.value=n}get json(){return{type:this.kind,keys:this.key.json,values:{fieldType:this.value.json,optional:!1}}}asOptional(){return new e({isOptional:`optional`,key:this.key,value:this.value})}},qe=class e extends Ie{constructor({isOptional:e,members:t}){super({isOptional:e}),K(this,`members`),K(this,`kind`,`union`),t.forEach((e,t)=>{if(e===void 0&&q(`v.union()`,`member at index ${t}`),!e.isConvexValidator)throw Error(`All members of v.union() must be validators`)}),this.members=t}get json(){return{type:this.kind,value:this.members.map(e=>e.json)}}asOptional(){return new e({isOptional:`optional`,members:this.members})}},X={id:e=>new Le({isOptional:`required`,tableName:e}),null:()=>new Ue({isOptional:`required`}),number:()=>new Re({isOptional:`required`}),float64:()=>new Re({isOptional:`required`}),bigint:()=>new ze({isOptional:`required`}),int64:()=>new ze({isOptional:`required`}),boolean:()=>new Be({isOptional:`required`}),string:()=>new He({isOptional:`required`}),bytes:()=>new Ve({isOptional:`required`}),literal:e=>new Y({isOptional:`required`,value:e}),array:e=>new Ge({isOptional:`required`,element:e}),object:e=>new We({isOptional:`required`,fields:e}),record:(e,t)=>new Ke({isOptional:`required`,key:e,value:t}),union:(...e)=>new qe({isOptional:`required`,members:e}),any:()=>new J({isOptional:`required`}),optional:e=>e.asOptional(),nullable:e=>X.union(e,X.null())},Je={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Ye=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Xe=Symbol(`lucide-context`),Ze=()=>L(Xe),Qe=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`,`children`]),$e=m(`<svg><!><!></svg>`);function Z(e,t){E(t,!0);let n=Ze()??{},r=j(t,`color`,19,()=>n.color??`currentColor`),i=j(t,`size`,19,()=>n.size??24),o=j(t,`strokeWidth`,19,()=>n.strokeWidth??2),c=j(t,`absoluteStrokeWidth`,19,()=>n.absoluteStrokeWidth??!1),l=j(t,`iconNode`,19,()=>[]),u=T(t,Qe),d=C(()=>c()?Number(o())*24/Number(i()):o());var f=$e();ae(f,e=>({...Je,...e,...u,width:i(),height:i(),stroke:r(),"stroke-width":p(d),class:[`lucide-icon lucide`,n.class,t.name&&`lucide-${t.name}`,t.class]}),[()=>!t.children&&!Ye(u)&&{"aria-hidden":`true`}]);var m=y(f);ue(m,17,l,_,(e,t)=>{var n=C(()=>se(p(t),2));let r=()=>p(n)[0],i=()=>p(n)[1];var o=a();w(b(o),r,!0,(e,t)=>{ae(e,()=>({...i()}))}),v(e,o)}),H(s(m),()=>t.children??ne),k(f),v(e,f),M()}var et=new Set([`$$slots`,`$$events`,`$$legacy`]);function tt(e,t){let n=T(t,et),r=[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`}],[`path`,{d:`M10 12h4`}]];Z(e,F({name:`archive`},()=>n,{get iconNode(){return r}}))}var nt=new Set([`$$slots`,`$$events`,`$$legacy`]);function rt(e,t){let n=T(t,nt),r=[[`path`,{d:`m12 19-7-7 7-7`}],[`path`,{d:`M19 12H5`}]];Z(e,F({name:`arrow-left`},()=>n,{get iconNode(){return r}}))}var it=new Set([`$$slots`,`$$events`,`$$legacy`]);function at(e,t){let n=T(t,it),r=[[`path`,{d:`m5 12 7-7 7 7`}],[`path`,{d:`M12 19V5`}]];Z(e,F({name:`arrow-up`},()=>n,{get iconNode(){return r}}))}var ot=new Set([`$$slots`,`$$events`,`$$legacy`]);function st(e,t){let n=T(t,ot),r=[[`path`,{d:`M12 5v16`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`}]];Z(e,F({name:`book-open`},()=>n,{get iconNode(){return r}}))}var ct=new Set([`$$slots`,`$$events`,`$$legacy`]);function lt(e,t){let n=T(t,ct),r=[[`path`,{d:`M12 18V5`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`}]];Z(e,F({name:`brain`},()=>n,{get iconNode(){return r}}))}var ut=new Set([`$$slots`,`$$events`,`$$legacy`]);function dt(e,t){let n=T(t,ut),r=[[`path`,{d:`M5 21v-6`}],[`path`,{d:`M12 21V3`}],[`path`,{d:`M19 21V9`}]];Z(e,F({name:`chart-no-axes-column`},()=>n,{get iconNode(){return r}}))}var ft=new Set([`$$slots`,`$$events`,`$$legacy`]);function pt(e,t){let n=T(t,ft),r=[[`path`,{d:`M20 6 9 17l-5-5`}]];Z(e,F({name:`check`},()=>n,{get iconNode(){return r}}))}var mt=new Set([`$$slots`,`$$events`,`$$legacy`]);function ht(e,t){let n=T(t,mt),r=[[`path`,{d:`m6 9 6 6 6-6`}]];Z(e,F({name:`chevron-down`},()=>n,{get iconNode(){return r}}))}var gt=new Set([`$$slots`,`$$events`,`$$legacy`]);function _t(e,t){let n=T(t,gt),r=[[`path`,{d:`m9 18 6-6-6-6`}]];Z(e,F({name:`chevron-right`},()=>n,{get iconNode(){return r}}))}var vt=new Set([`$$slots`,`$$events`,`$$legacy`]);function yt(e,t){let n=T(t,vt),r=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`}],[`path`,{d:`M12 17h.01`}]];Z(e,F({name:`circle-question-mark`},()=>n,{get iconNode(){return r}}))}var bt=new Set([`$$slots`,`$$events`,`$$legacy`]);function xt(e,t){let n=T(t,bt),r=[[`path`,{d:`m18 16 4-4-4-4`}],[`path`,{d:`m6 8-4 4 4 4`}],[`path`,{d:`m14.5 4-5 16`}]];Z(e,F({name:`code-xml`},()=>n,{get iconNode(){return r}}))}var St=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ct(e,t){let n=T(t,St),r=[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}]];Z(e,F({name:`copy`},()=>n,{get iconNode(){return r}}))}var wt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tt(e,t){let n=T(t,wt),r=[[`path`,{d:`M14 9 9 4 4 9`}],[`path`,{d:`M20 20h-7a4 4 0 0 1-4-4V4`}]];Z(e,F({name:`corner-left-up`},()=>n,{get iconNode(){return r}}))}var Et=new Set([`$$slots`,`$$events`,`$$legacy`]);function Dt(e,t){let n=T(t,Et),r=[[`path`,{d:`M12 15V3`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}],[`path`,{d:`m7 10 5 5 5-5`}]];Z(e,F({name:`download`},()=>n,{get iconNode(){return r}}))}var Ot=new Set([`$$slots`,`$$events`,`$$legacy`]);function kt(e,t){let n=T(t,Ot),r=[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`M10 14 21 3`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}]];Z(e,F({name:`external-link`},()=>n,{get iconNode(){return r}}))}var At=new Set([`$$slots`,`$$events`,`$$legacy`]);function jt(e,t){let n=T(t,At),r=[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]];Z(e,F({name:`eye`},()=>n,{get iconNode(){return r}}))}var Mt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Nt(e,t){let n=T(t,Mt),r=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}],[`path`,{d:`M10 12.5 8 15l2 2.5`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`}]];Z(e,F({name:`file-code`},()=>n,{get iconNode(){return r}}))}var Pt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ft(e,t){let n=T(t,Pt),r=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`}],[`path`,{d:`M9 10h6`}],[`path`,{d:`M12 13V7`}],[`path`,{d:`M9 17h6`}]];Z(e,F({name:`file-diff`},()=>n,{get iconNode(){return r}}))}var It=new Set([`$$slots`,`$$events`,`$$legacy`]);function Lt(e,t){let n=T(t,It),r=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}],[`path`,{d:`M10 9H8`}],[`path`,{d:`M16 13H8`}],[`path`,{d:`M16 17H8`}]];Z(e,F({name:`file-text`},()=>n,{get iconNode(){return r}}))}var Rt=new Set([`$$slots`,`$$events`,`$$legacy`]);function zt(e,t){let n=T(t,Rt),r=[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`}]];Z(e,F({name:`folder-open`},()=>n,{get iconNode(){return r}}))}var Bt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Vt(e,t){let n=T(t,Bt),r=[[`path`,{d:`M12 10v6`}],[`path`,{d:`M9 13h6`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}]];Z(e,F({name:`folder-plus`},()=>n,{get iconNode(){return r}}))}var Ht=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ut(e,t){let n=T(t,Ht),r=[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}]];Z(e,F({name:`folder`},()=>n,{get iconNode(){return r}}))}var Wt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Gt(e,t){let n=T(t,Wt),r=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`}],[`path`,{d:`M2 12h20`}]];Z(e,F({name:`globe`},()=>n,{get iconNode(){return r}}))}var Kt=new Set([`$$slots`,`$$events`,`$$legacy`]);function qt(e,t){let n=T(t,Kt),r=[[`path`,{d:`M5 22h14`}],[`path`,{d:`M5 2h14`}],[`path`,{d:`M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22`}],[`path`,{d:`M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2`}]];Z(e,F({name:`hourglass`},()=>n,{get iconNode(){return r}}))}var Jt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Yt(e,t){let n=T(t,Jt),r=[[`path`,{d:`M16 5h6`}],[`path`,{d:`M19 2v6`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`}],[`circle`,{cx:`9`,cy:`9`,r:`2`}]];Z(e,F({name:`image-plus`},()=>n,{get iconNode(){return r}}))}var Xt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Zt(e,t){let n=T(t,Xt),r=[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`}]];Z(e,F({name:`loader-circle`},()=>n,{get iconNode(){return r}}))}var Qt=new Set([`$$slots`,`$$events`,`$$legacy`]);function $t(e,t){let n=T(t,Qt),r=[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`}]];Z(e,F({name:`lock`},()=>n,{get iconNode(){return r}}))}var en=new Set([`$$slots`,`$$events`,`$$legacy`]);function tn(e,t){let n=T(t,en),r=[[`path`,{d:`m16 17 5-5-5-5`}],[`path`,{d:`M21 12H9`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}]];Z(e,F({name:`log-out`},()=>n,{get iconNode(){return r}}))}var nn=new Set([`$$slots`,`$$events`,`$$legacy`]);function rn(e,t){let n=T(t,nn),r=[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`m21 3-7 7`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M9 21H3v-6`}]];Z(e,F({name:`maximize-2`},()=>n,{get iconNode(){return r}}))}var an=new Set([`$$slots`,`$$events`,`$$legacy`]);function on(e,t){let n=T(t,an),r=[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`}]];Z(e,F({name:`moon`},()=>n,{get iconNode(){return r}}))}var sn=new Set([`$$slots`,`$$events`,`$$legacy`]);function cn(e,t){let n=T(t,sn),r=[[`path`,{d:`M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4`}],[`path`,{d:`M2 6h4`}],[`path`,{d:`M2 10h4`}],[`path`,{d:`M2 14h4`}],[`path`,{d:`M2 18h4`}],[`path`,{d:`M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`}]];Z(e,F({name:`notebook-pen`},()=>n,{get iconNode(){return r}}))}var ln=new Set([`$$slots`,`$$events`,`$$legacy`]);function un(e,t){let n=T(t,ln),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M15 3v18`}]];Z(e,F({name:`panel-right`},()=>n,{get iconNode(){return r}}))}var dn=new Set([`$$slots`,`$$events`,`$$legacy`]);function fn(e,t){let n=T(t,dn),r=[[`path`,{d:`M15 12h-5`}],[`path`,{d:`M15 8h-5`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`}]];Z(e,F({name:`scroll-text`},()=>n,{get iconNode(){return r}}))}var pn=new Set([`$$slots`,`$$events`,`$$legacy`]);function mn(e,t){let n=T(t,pn),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];Z(e,F({name:`search`},()=>n,{get iconNode(){return r}}))}var hn=new Set([`$$slots`,`$$events`,`$$legacy`]);function gn(e,t){let n=T(t,hn),r=[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]];Z(e,F({name:`settings`},()=>n,{get iconNode(){return r}}))}var _n=new Set([`$$slots`,`$$events`,`$$legacy`]);function vn(e,t){let n=T(t,_n),r=[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`}]];Z(e,F({name:`square-pen`},()=>n,{get iconNode(){return r}}))}var yn=new Set([`$$slots`,`$$events`,`$$legacy`]);function bn(e,t){let n=T(t,yn),r=[[`path`,{d:`m7 11 2-2-2-2`}],[`path`,{d:`M11 13h4`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`}]];Z(e,F({name:`square-terminal`},()=>n,{get iconNode(){return r}}))}var xn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Sn(e,t){let n=T(t,xn),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}]];Z(e,F({name:`square`},()=>n,{get iconNode(){return r}}))}var Cn=new Set([`$$slots`,`$$events`,`$$legacy`]);function wn(e,t){let n=T(t,Cn),r=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M12 2v2`}],[`path`,{d:`M12 20v2`}],[`path`,{d:`m4.93 4.93 1.41 1.41`}],[`path`,{d:`m17.66 17.66 1.41 1.41`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`m6.34 17.66-1.41 1.41`}],[`path`,{d:`m19.07 4.93-1.41 1.41`}]];Z(e,F({name:`sun`},()=>n,{get iconNode(){return r}}))}var Tn=new Set([`$$slots`,`$$events`,`$$legacy`]);function En(e,t){let n=T(t,Tn),r=[[`path`,{d:`M12 19h8`}],[`path`,{d:`m4 17 6-6-6-6`}]];Z(e,F({name:`terminal`},()=>n,{get iconNode(){return r}}))}var Dn=new Set([`$$slots`,`$$events`,`$$legacy`]);function On(e,t){let n=T(t,Dn),r=[[`circle`,{cx:`12`,cy:`8`,r:`5`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`}]];Z(e,F({name:`user-round`},()=>n,{get iconNode(){return r}}))}var kn=new Set([`$$slots`,`$$events`,`$$legacy`]);function An(e,t){let n=T(t,kn),r=[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`}]];Z(e,F({name:`wrench`},()=>n,{get iconNode(){return r}}))}var jn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Mn(e,t){let n=T(t,jn),r=[[`path`,{d:`M18 6 6 18`}],[`path`,{d:`m6 6 12 12`}]];Z(e,F({name:`x`},()=>n,{get iconNode(){return r}}))}var Nn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Pn(e,t){let n=T(t,Nn),r=[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`}]];Z(e,F({name:`zap`},()=>n,{get iconNode(){return r}}))}var Fn=[`forEach`,`isDisjointFrom`,`isSubsetOf`,`isSupersetOf`],In=[`difference`,`intersection`,`symmetricDifference`,`union`],Ln=!1,Rn=class e extends Set{#e=new Map;#t=x(0);#n=x(0);#r=d||-1;constructor(e){if(super(),e){for(var t of e)super.add(t);this.#n.v=super.size}Ln||this.#a()}#i(e){return d===this.#r?x(e):S(e)}#a(){Ln=!0;var t=e.prototype,n=Set.prototype;for(let e of Fn)t[e]=function(...t){return p(this.#t),n[e].apply(this,t)};for(let r of In)t[r]=function(...t){p(this.#t);var i=n[r].apply(this,t);return new e(i)}}has(e){var t=super.has(e),n=this.#e,r=n.get(e);if(r===void 0){if(!t)return p(this.#t),!1;r=this.#i(!0),n.set(e,r)}return p(r),t}add(e){return super.has(e)||(super.add(e),l(this.#n,super.size),ce(this.#t)),this}delete(e){var t=super.delete(e),n=this.#e,r=n.get(e);return r!==void 0&&(n.delete(e),l(r,!1)),t&&(l(this.#n,super.size),ce(this.#t)),t}clear(){if(super.size!==0){super.clear();var e=this.#e;for(var t of e.values())l(t,!1);e.clear(),l(this.#n,0),ce(this.#t)}}keys(){return this.values()}values(){return p(this.#t),super.values()}entries(){return p(this.#t),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return p(this.#n)}},zn=class extends Map{#e=new Map;#t=x(0);#n=x(0);#r=d||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return d===this.#r?x(e):S(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else return p(this.#t),!1;return p(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else{p(this.#t);return}return p(n),super.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),l(this.#n,super.size),ce(o);else if(i!==t){ce(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&ce(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),l(n,-1)),r&&(l(this.#n,super.size),ce(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;l(this.#n,0);for(var t of e.values())l(t,-1);ce(this.#t),e.clear()}}#a(){p(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)p(n)}keys(){return p(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return p(this.#n),super.size}},Bn=2e4,Vn=i(`<a><!></a>`),Hn=i(`<button><!></button>`);function Un(e,t){E(t,!0);let n=j(t,`type`,3,`button`),i=j(t,`variant`,3,`default`),o=j(t,`className`,3,``),s=j(t,`disabled`,3,!1),c=C(()=>i()===`outline`?`border-border bg-surface/80 text-foreground hover:bg-hover-fill`:`bg-primary text-primary-foreground hover:opacity-90`),l=C(()=>G(`focus-visible:ring-ring/50 inline-flex h-10 items-center justify-center gap-2 rounded-full border border-transparent px-5 py-2 text-sm font-medium transition-opacity focus-visible:ring-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50`,p(c),o()));var u=a(),d=b(u),f=e=>{var n=Vn();H(y(n),()=>t.children??ne),k(n),U(()=>{O(n,`href`,t.href),I(n,1,P(p(l)))}),N(`click`,n,function(...e){t.onclick?.apply(this,e)}),v(e,n)},m=e=>{var r=Hn();H(y(r),()=>t.children??ne),k(r),U(()=>{O(r,`type`,n()),r.disabled=s(),I(r,1,P(p(l)))}),N(`click`,r,function(...e){t.onclick?.apply(this,e)}),v(e,r)};r(d,e=>{t.href&&!s()?e(f):e(m,-1)}),v(e,u),M()}t([`click`]);var Wn=i(`<!> <!>`,1),Gn=i(`<p class="text-destructive text-center text-sm" role="alert"> </p>`),Kn=i(`<div class="text-muted-foreground flex items-center justify-center gap-2 text-sm" aria-live="polite" aria-busy="true"><!> <span> </span></div>`),qn=i(`<div><!></div>`);function Jn(e,t){E(t,!0);let n=j(t,`overlayOpen`,3,!1),i=C(()=>t.authState.isAuthenticated&&(t.authState.isLoading||!t.authState.connectionFailed)),o=C(()=>!t.authState.isAuthenticated&&t.authState.isLoading),c=C(()=>t.authState.isConfigured?p(i)?`Confirming your session`:t.authState.connectionFailed?`Couldn’t connect your account`:p(o)?`Preparing sign-in`:`Sign in to continue`:`Sign-in unavailable`),l=C(()=>t.authState.isConfigured?p(i)?`Verifying your secure connection before opening your projects.`:t.authState.connectionFailed?`You’re signed in, but the secure connection could not be confirmed. Retry or sign out and sign in again.`:p(o)?`Getting account sign-in ready. This usually takes a moment.`:`Sign in to sync your coding threads, streaming responses, and projects.`:`Account sign-in is not configured on this deployment, so account actions are disabled.`),u=C(()=>t.authState.isAuthenticated?`Almost there`:`One moment`),d=C(()=>!!(t.authState.isConfigured&&t.authState.error&&!n()));var f=qn();ke(y(f),{get title(){return p(c)},get description(){return p(l)},actions:e=>{var n=a(),i=b(n),o=e=>{var n=Wn(),i=b(n),a=e=>{Un(e,{get onclick(){return t.onRetry},get disabled(){return t.authState.isLoading},children:(e,t)=>{z(),v(e,ie(`Retry`))},$$slots:{default:!0}})};r(i,e=>{t.authState.connectionFailed&&e(a)}),Un(s(i,2),{variant:`outline`,get onclick(){return t.onSignOut},children:(e,t)=>{z(),v(e,ie(`Sign Out`))},$$slots:{default:!0}}),v(e,n)},c=e=>{var n=Wn(),r=b(n);Un(r,{get onclick(){return t.onSignIn},get disabled(){return t.authState.isLoading},children:(e,t)=>{z(),v(e,ie(`Sign In`))},$$slots:{default:!0}}),Un(s(r,2),{variant:`outline`,get onclick(){return t.onSignUp},get disabled(){return t.authState.isLoading},children:(e,t)=>{z(),v(e,ie(`Create Account`))},$$slots:{default:!0}}),v(e,n)};r(i,e=>{t.authState.isAuthenticated?e(o):t.authState.isConfigured&&e(c,1)}),v(e,n)},children:(e,n)=>{var i=Wn(),a=b(i),o=e=>{var n=Gn(),r=y(n,!0);k(n),U(()=>V(r,t.authState.error)),v(e,n)};r(a,e=>{p(d)&&e(o)});var c=s(a,2),l=e=>{var t=Kn(),n=y(t);Zt(n,{class:`size-3.5 animate-spin`,"aria-hidden":`true`});var r=s(n,2),i=y(r,!0);k(r),k(t),U(()=>V(i,p(u))),v(e,t)};r(c,e=>{t.authState.isLoading&&e(l)}),v(e,i)},$$slots:{actions:!0,default:!0}}),k(f),U(()=>{f.inert=n(),O(f,`aria-hidden`,n()?!0:void 0)}),v(e,f),M()}var Yn=i(`<div class="text-muted-foreground mb-4 flex justify-center" aria-hidden="true"><!></div>`),Xn=i(`<p class="text-muted-foreground mt-6 max-h-24 overflow-y-auto font-mono text-[11px] leading-5 break-all select-all"> </p>`),Zn=i(`<p class="text-destructive mt-4 text-sm" role="alert"> </p>`),Qn=i(`<p class="mt-4 text-sm text-amber-700" role="alert"> </p>`),$n=i(`<!> Open browser`,1),er=i(`<!> Copied`,1),tr=i(`<!> Copy link`,1),nr=i(`<!> <!>`,1),rr=i(`<span class="text-muted-foreground border-border inline-flex h-10 items-center justify-center gap-2 rounded-full border px-4 text-sm">Preparing link…</span>`),ir=i(`<div class="app-entry-shell fixed inset-0 z-50 flex items-center justify-center px-6" role="presentation"><div class="border-border/70 bg-surface relative z-10 w-full max-w-md rounded-2xl border p-8 text-center shadow-[0_18px_50px_-28px_oklch(0.2_0.02_260/0.45)] outline-none" role="dialog" aria-modal="true" aria-labelledby="browser-signin-title" aria-describedby="browser-signin-desc" tabindex="-1"><!> <h2 id="browser-signin-title" class="font-brand text-foreground text-[1.35rem] font-semibold tracking-tight"> </h2> <p id="browser-signin-desc" class="text-muted-foreground mt-3 text-sm leading-[1.55]"> </p> <!> <!> <!> <div class="mt-6 flex flex-wrap items-center justify-center gap-3"><!></div> <div class="mt-6"><button type="button" class="text-muted-foreground hover:text-foreground decoration-foreground/30 hover:decoration-foreground text-[13px] underline underline-offset-4 transition-colors">Cancel</button></div></div></div>`);function ar(e,t){E(t,!0);let i=j(t,`error`,3,null),c=x(!1),u=x(null),d=x(null),f=null;n(()=>{if(!t.open){l(c,!1),l(u,null);return}let e=document.activeElement instanceof HTMLElement?document.activeElement:null,n=!1;o().then(()=>{n||p(d)?.focus()});function r(e){if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),t.onCancel();return}if(e.key!==`Tab`||!p(d))return;let n=Array.from(p(d).querySelectorAll(`a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`)).filter(e=>!e.hasAttribute(`hidden`)&&e.offsetParent!==null);if(n.length===0){e.preventDefault(),p(d).focus();return}let r=n[0],i=n[n.length-1],a=document.activeElement;e.shiftKey&&(a===p(d)||a===r||!p(d).contains(a))?(e.preventDefault(),i.focus()):!e.shiftKey&&(a===p(d)||a===i||!p(d).contains(a))&&(e.preventDefault(),r.focus())}return window.addEventListener(`keydown`,r,!0),()=>{n=!0,window.removeEventListener(`keydown`,r,!0),f!==null&&(window.clearTimeout(f),f=null),e?.isConnected&&e.focus()}});async function m(){if(t.signInUrl)try{await navigator.clipboard.writeText(t.signInUrl),l(c,!0),l(u,null),f!==null&&window.clearTimeout(f),f=window.setTimeout(()=>{l(c,!1),f=null},2e3)}catch{l(c,!1),l(u,`Could not copy the sign-in link. Select it above and copy manually.`)}}function h(){if(!t.signInUrl)return;let e=window.open(t.signInUrl,`_blank`);if(e){try{e.opener=null}catch{}t.onClearOpenError?.()}}let g=C(()=>t.signInUrl?i()?{title:`Open the sign-in link`,description:`Your browser didn’t open automatically. Continue with the options below.`}:{title:`Finish signing in`,description:`We opened your browser to complete sign-in. Waiting for you to finish there.`}:{title:`Preparing sign-in`,description:`Preparing a secure sign-in link. This usually takes a moment.`});var _=a(),S=b(_),w=e=>{var n=ir(),o=y(n),f=y(o),_=e=>{var t=Yn();Zt(y(t),{class:`size-5 animate-spin`}),k(t),v(e,t)};r(f,e=>{t.signInUrl||e(_)});var x=s(f,2),S=y(x,!0);k(x);var C=s(x,2),w=y(C,!0);k(C);var T=s(C,2),E=e=>{var n=Xn(),r=y(n,!0);k(n),U(()=>{O(n,`title`,t.signInUrl),V(r,t.signInUrl)}),v(e,n)};r(T,e=>{t.signInUrl&&e(E)});var D=s(T,2),ee=e=>{var t=Zn(),n=y(t,!0);k(t),U(()=>V(n,i())),v(e,t)};r(D,e=>{i()&&e(ee)});var te=s(D,2),A=e=>{var t=Qn(),n=y(t,!0);k(t),U(()=>V(n,p(u))),v(e,t)};r(te,e=>{p(u)&&e(A)});var ne=s(te,2),re=y(ne),j=e=>{var t=nr(),n=b(t);Un(n,{onclick:h,children:(e,t)=>{var n=$n();kt(b(n),{class:`size-4`,"aria-hidden":`true`}),z(),v(e,n)},$$slots:{default:!0}}),Un(s(n,2),{variant:`outline`,onclick:()=>void m(),children:(e,t)=>{var n=a(),i=b(n),o=e=>{var t=er();pt(b(t),{class:`size-4`,"aria-hidden":`true`}),z(),v(e,t)},s=e=>{var t=tr();Ct(b(t),{class:`size-4`,"aria-hidden":`true`}),z(),v(e,t)};r(i,e=>{p(c)?e(o):e(s,-1)}),v(e,n)},$$slots:{default:!0}}),v(e,t)},M=e=>{v(e,rr())};r(re,e=>{t.signInUrl?e(j):e(M,-1)}),k(ne);var ie=s(ne,2),ae=y(ie);k(ie),k(o),le(o,e=>l(d,e),()=>p(d)),k(n),U(()=>{V(S,p(g).title),V(w,p(g).description)}),N(`click`,n,e=>{e.target===e.currentTarget&&t.onCancel()}),N(`click`,ae,function(...e){t.onCancel?.apply(this,e)}),v(e,n)};r(S,e=>{t.open&&e(w)}),v(e,_),M()}t([`click`]);function or(){let e=x(null),t=x(!1),r=null;function i(){r&&=(clearTimeout(r),null)}function a(n,a,o=!1){let s=n.currentTarget;if(!(s instanceof HTMLElement))return;let c=s.getBoundingClientRect();i(),l(t,o,!0),l(e,{top:c.top-8,left:c.left+c.width/2,label:a},!0),o&&(r=setTimeout(()=>{l(t,!1),r=null,l(e,null)},2500))}function o(n=!1){p(t)&&!n||(i(),l(t,!1),l(e,null))}return n(()=>i),{get lockTooltip(){return p(e)},showLockTooltip:a,hideLockTooltip:o}}function sr(e){function t(t){let n=t.target;n instanceof Node&&(e.getRoot()?.contains(n)||e.onOutside())}function n(t){t.key===`Escape`&&e.onEscape()}return document.addEventListener(`pointerdown`,t),document.addEventListener(`keydown`,n),()=>{document.removeEventListener(`pointerdown`,t),document.removeEventListener(`keydown`,n)}}var cr=i(`<div class="text-tooltip-foreground bg-tooltip ring-border pointer-events-none fixed z-100 -translate-x-1/2 -translate-y-full rounded-md px-2.5 py-1.5 text-[12px] leading-4 whitespace-nowrap shadow-lg ring-1" role="tooltip"> </div>`);function lr(e,t){E(t,!0);var n=a(),i=b(n),o=e=>{var n=cr(),r=y(n,!0);k(n),U(()=>{A(n,`top: ${t.tooltip.top}px; left: ${t.tooltip.left}px;`),V(r,t.tooltip.label)}),v(e,n)};r(i,e=>{t.tooltip&&e(o)}),v(e,n),M()}var ur=i(`<label class="text-muted-foreground flex h-10 items-center gap-2 border-b border-[var(--hairline)] px-2"><!> <span class="sr-only"> </span> <input class="text-foreground placeholder:text-muted-foreground min-w-0 flex-1 bg-transparent text-sm outline-none"/></label>`),dr=i(`<p class="text-muted-foreground px-3 pt-1 pb-2 text-[11px] font-medium"> </p>`),fr=i(`<span><!></span>`),pr=i(`<span class="text-muted-foreground shrink-0" aria-hidden="true"><!></span>`),mr=i(`<button type="button"><!> <span> </span> <!></button>`),hr=i(`<p class="text-muted-foreground px-3 py-5 text-center text-sm">No matches found</p>`),gr=i(`<div class="bg-popover/96 absolute bottom-[calc(100%+0.75rem)] left-0 z-50 min-w-[19rem] rounded-[18px] border border-[var(--hairline)] p-2 shadow-[var(--composer-shadow)] backdrop-blur-xl" role="dialog"><!> <div><!> <!></div></div>`),_r=i(`<div><button type="button" aria-haspopup="dialog"><!> <span class="truncate"> </span> <!></button> <!></div> <!>`,1);function vr(e,t){E(t,!0);let i=j(t,`value`,15,``),o=j(t,`disabled`,3,!1),c=j(t,`className`,3,``),u=j(t,`triggerClassName`,3,``),d=j(t,`searchable`,3,!1),m=x(!1),h=x(``),g=x(null),_=x(null),S=x(null),w=or(),T=C(()=>{let e=t.options.find(e=>e.id===i());return e&&!e.locked?e:t.options.find(e=>!e.locked)??e??t.options[0]??null}),D=C(()=>d()&&p(h).trim()?t.options.filter(e=>e.label.toLocaleLowerCase().includes(p(h).trim().toLocaleLowerCase())):t.options),te=C(()=>p(D).filter(e=>!e.locked));function A(){o()||(l(m,!p(m)),p(m)&&d()?queueMicrotask(()=>p(S)?.focus()):l(h,``))}function ne(e,n){let r=t.options.find(t=>t.id===e);if(r){if(r.locked){n&&r.lockTooltip&&w.showLockTooltip(n,r.lockTooltip,!0);return}e!==i()&&(i(e),t.onValueChange?.(e)),l(m,!1),l(h,``),w.hideLockTooltip(!0),p(_)?.focus()}}function re(e){e.key!==`Enter`||p(te).length===0||(e.preventDefault(),ne(p(te)[0].id))}n(()=>{if(!p(m)){l(h,``),w.hideLockTooltip();return}return sr({getRoot:()=>p(g),onOutside:()=>{l(m,!1)},onEscape:()=>{l(m,!1),p(_)?.focus()}})}),n(()=>{o()&&l(m,!1)});var ie=_r(),ae=b(ie),oe=y(ae),F=y(oe),se=e=>{var n=a();H(b(n),()=>t.optionIcon,()=>p(T)),v(e,n)};r(F,e=>{t.optionIcon&&p(T)&&e(se)});var ce=s(F,2),L=y(ce,!0);k(ce);var z=s(ce,2);{let e=C(()=>G(`text-muted-foreground size-3 shrink-0 transition-transform`,p(m)&&`rotate-180`));ht(z,{get class(){return p(e)}})}k(oe),le(oe,e=>l(_,e),()=>p(_));var B=s(oe,2),de=e=>{var n=gr(),a=y(n),o=e=>{var n=ur(),r=y(n);mn(r,{class:`size-4 shrink-0`});var i=s(r,2),a=y(i);k(i);var o=s(i,2);R(o),le(o,e=>l(S,e),()=>p(S)),k(n),U((e,t)=>{V(a,`Search ${e??``}`),O(o,`placeholder`,t)},[()=>t.menuTitle.toLocaleLowerCase(),()=>`Search ${t.menuTitle.toLocaleLowerCase()}…`]),N(`keydown`,o,re),ee(o,()=>p(h),e=>l(h,e)),v(e,n)},c=e=>{var n=dr(),r=y(n,!0);k(n),U(()=>V(r,t.menuTitle)),v(e,n)};r(a,e=>{d()?e(o):e(c,-1)});var u=s(a,2),m=y(u);ue(m,17,()=>p(D),e=>e.id,(e,n)=>{let a=C(()=>!!p(n).locked);var o=mr(),c=y(o),l=e=>{var r=fr();H(y(r),()=>t.optionIcon,()=>p(n)),k(r),U(e=>I(r,1,e),[()=>P(G(`flex size-7 shrink-0 items-center justify-center`,(p(a),`text-muted-foreground`)))]),v(e,r)};r(c,e=>{t.optionIcon&&e(l)});var u=s(c,2),d=y(u,!0);k(u);var m=s(u,2),h=e=>{var t=pr();$t(y(t),{class:`size-3.5`}),k(t),v(e,t)},g=e=>{{let t=C(()=>G(`text-accent-strong size-4 shrink-0 transition-opacity`,p(n).id===i()?`opacity-100`:`opacity-0`));pt(e,{get class(){return p(t)}})}};r(m,e=>{p(a)?e(h):e(g,-1)}),k(o),U((e,t)=>{I(o,1,e),O(o,`aria-pressed`,!p(a)&&p(n).id===i()),O(o,`aria-disabled`,p(a)),O(o,`aria-label`,p(a)&&p(n).lockTooltip?`${p(n).label}. ${p(n).lockTooltip}`:void 0),I(u,1,t),V(d,p(n).label)},[()=>P(G(`focus-visible:ring-ring/60 flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left outline-none focus-visible:ring-2`,p(a)?`cursor-not-allowed opacity-45`:`hover:bg-hover-fill`,!p(a)&&p(n).id===i()&&`bg-hover-fill`)),()=>P(G(`min-w-0 flex-1 truncate text-sm font-medium`,p(a)?`text-muted-foreground`:`text-foreground`))]),f(`mouseenter`,o,e=>{p(a)&&p(n).lockTooltip&&w.showLockTooltip(e,p(n).lockTooltip)}),f(`mouseleave`,o,()=>w.hideLockTooltip()),f(`focus`,o,e=>{p(a)&&p(n).lockTooltip&&w.showLockTooltip(e,p(n).lockTooltip)}),f(`blur`,o,()=>w.hideLockTooltip()),N(`click`,o,e=>{ne(p(n).id,e)}),v(e,o)});var g=s(m,2),_=e=>{v(e,hr())};r(g,e=>{p(D).length===0&&e(_)}),k(u),k(n),U(e=>{O(n,`aria-label`,t.menuTitle),I(u,1,e)},[()=>P(G(`space-y-0.5`,d()&&`pt-1.5`))]),v(e,n)};r(B,e=>{p(m)&&e(de)}),k(ae),le(ae,e=>l(g,e),()=>p(g)),lr(s(ae,2),{get tooltip(){return w.lockTooltip}}),U((e,n)=>{I(ae,1,e),I(oe,1,n),O(oe,`aria-expanded`,p(m)),O(oe,`aria-label`,t.ariaLabel),oe.disabled=o(),V(L,p(T)?.triggerLabel??p(T)?.label??i())},[()=>P(G(`relative`,c())),()=>P(G(`focus-visible:ring-ring/60 text-muted-foreground hover:bg-hover-fill inline-flex h-8 shrink-0 items-center gap-2 rounded-lg border border-transparent bg-transparent px-2 text-sm font-medium transition outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50`,!t.optionIcon&&`gap-1`,u()))]),N(`click`,oe,A),v(e,ie),M()}t([`click`,`keydown`]);var yr=m(`<title> </title>`),br=m(`<svg viewBox="146.694 227.042 267.198 264.812" xmlns="http://www.w3.org/2000/svg" role="img" fill="none"><!><path d="M249.176 323.434V298.276C249.176 296.158 249.971 294.569 251.825 293.509L302.406 264.381C309.29 260.409 317.5 258.555 325.973 258.555C357.75 258.555 377.877 283.185 377.877 309.399C377.877 311.253 377.877 313.371 377.611 315.49L325.178 284.771C322.001 282.919 318.822 282.919 315.645 284.771L249.176 323.434ZM367.283 421.415V361.301C367.283 357.592 365.694 354.945 362.516 353.092L296.048 314.43L317.763 301.982C319.617 300.925 321.206 300.925 323.058 301.982L373.639 331.112C388.205 339.586 398.003 357.592 398.003 375.069C398.003 395.195 386.087 413.733 367.283 421.412V421.415ZM233.553 368.452L211.838 355.742C209.986 354.684 209.19 353.095 209.19 350.975V292.718C209.19 264.383 230.905 242.932 260.301 242.932C271.423 242.932 281.748 246.641 290.49 253.26L238.321 283.449C235.146 285.303 233.555 287.951 233.555 291.659V368.455L233.553 368.452ZM280.292 395.462L249.176 377.985V340.913L280.292 323.436L311.407 340.913V377.985L280.292 395.462ZM300.286 475.968C289.163 475.968 278.837 472.259 270.097 465.64L322.264 435.449C325.441 433.597 327.03 430.949 327.03 427.239V350.445L349.011 363.155C350.865 364.213 351.66 365.802 351.66 367.922V426.179C351.66 454.514 329.679 475.965 300.286 475.965V475.968ZM237.525 416.915L186.944 387.785C172.378 379.31 162.582 361.305 162.582 343.827C162.582 323.436 174.763 305.164 193.563 297.485V357.861C193.563 361.571 195.154 364.217 198.33 366.071L264.535 404.467L242.82 416.915C240.967 417.972 239.377 417.972 237.525 416.915ZM234.614 460.343C204.689 460.343 182.71 437.833 182.71 410.028C182.71 407.91 182.976 405.792 183.238 403.672L235.405 433.863C238.582 435.715 241.763 435.715 244.938 433.863L311.407 395.466V420.622C311.407 422.742 310.612 424.331 308.758 425.389L258.179 454.519C251.293 458.491 243.083 460.343 234.611 460.343H234.614ZM300.286 491.854C332.329 491.854 359.073 469.082 365.167 438.892C394.825 431.211 413.892 403.406 413.892 375.073C413.892 356.535 405.948 338.529 391.648 325.552C392.972 319.991 393.766 314.43 393.766 308.87C393.766 271.003 363.048 242.666 327.562 242.666C320.413 242.666 313.528 243.723 306.644 246.109C294.725 234.457 278.307 227.042 260.301 227.042C228.258 227.042 201.513 249.815 195.42 280.004C165.761 287.685 146.694 315.49 146.694 343.824C146.694 362.362 154.638 380.368 168.938 393.344C167.613 398.906 166.819 404.467 166.819 410.027C166.819 447.894 197.538 476.231 233.024 476.231C240.172 476.231 247.058 475.173 253.943 472.788C265.859 484.441 282.278 491.854 300.286 491.854Z" fill="currentColor"></path></svg>`);function xr(e,t){E(t,!0);let n=j(t,`className`,3,``),i=j(t,`title`,3,`OpenAI`);var a=br(),o=y(a),s=e=>{var t=yr(),n=y(t,!0);k(t),U(()=>V(n,i())),v(e,t)};r(o,e=>{i()&&e(s)}),z(),k(a),U(e=>{I(a,0,e),O(a,`aria-hidden`,!i()||void 0)},[()=>P(G(`size-4`,n()))]),v(e,a),M()}var Sr=m(`<svg viewBox="0 0 24 24" role="img" aria-label="Anthropic" fill="currentColor"><path d="M17.304 3.541h-3.672l6.696 16.918H24Zm-10.608 0L0 20.459h3.744l1.37-3.553h7.005l1.369 3.553h3.744L10.536 3.541Zm-.371 10.223 2.291-5.945 2.292 5.945Z"></path></svg>`),Cr=m(`<svg viewBox="0 0 24 24" role="img" aria-label="xAI" fill="currentColor"><path d="M6.469 8.776 16.512 23h-4.464L2.005 8.776H6.47Zm-.004 7.9 2.233 3.164L6.467 23H2l4.465-6.324ZM22 2.582V23h-3.659V7.764L22 2.582ZM22 1l-9.952 14.095-2.233-3.163L17.533 1H22Z"></path></svg>`),wr=m(`<svg viewBox="0 0 24 24" role="img" aria-label="Moonshot" fill="currentColor" fill-rule="evenodd"><path d="M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z"></path></svg>`),Tr=m(`<svg viewBox="0 0 24 24" role="img" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="12" cy="12" r="9"></circle><path d="M12 8v4l2.5 1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>`);function Er(e,t){E(t,!0);let n=j(t,`className`,3,``);var i=a(),o=b(i),s=e=>{{let t=C(()=>G(`size-4 text-foreground`,n()));xr(e,{get className(){return p(t)}})}},c=e=>{var t=Sr();U(e=>I(t,0,e),[()=>P(G(`size-4 text-[#D97757]`,n()))]),v(e,t)},l=e=>{var t=Cr();U(e=>I(t,0,e),[()=>P(G(`text-foreground size-4`,n()))]),v(e,t)},u=e=>{var t=wr();U(e=>I(t,0,e),[()=>P(G(`text-foreground size-4`,n()))]),v(e,t)},d=e=>{var r=Tr();U(e=>{I(r,0,e),O(r,`aria-label`,t.provider||`Unknown provider`)},[()=>P(G(`text-muted-foreground size-4`,n()))]),v(e,r)};r(o,e=>{t.provider===`openai`?e(s):t.provider===`anthropic`?e(c,1):t.provider===`xai`?e(l,2):t.provider===`fireworks`?e(u,3):e(d,-1)}),v(e,i),M()}var Dr=[`none`,`low`,`medium`,`high`,`xhigh`,`max`],Or=[`standard`,`fast`],kr=[`gpt-5.6-sol`,`gpt-5.6-terra`,`gpt-5.6-luna`,`claude-opus-5`,`claude-fable-5`,`grok-4.5`,`kimi-k3`],Ar=[{id:`gpt-5.6-sol`,label:`GPT-5.6 Sol`,provider:`openai`,contextWindowTokens:258400,autoCompactTokenLimit:244800,reasoningEfforts:Dr,defaultReasoningEffort:`medium`,serviceTiers:Or,usageWeights:{input:.005,cacheRead:5e-4,cacheWrite:.00625,output:.03,fastMultiplier:2}},{id:`gpt-5.6-terra`,label:`GPT-5.6 Terra`,provider:`openai`,contextWindowTokens:258400,autoCompactTokenLimit:244800,reasoningEfforts:Dr,defaultReasoningEffort:`medium`,serviceTiers:Or,usageWeights:{input:.0025,cacheRead:25e-5,cacheWrite:.003125,output:.015,fastMultiplier:2}},{id:`gpt-5.6-luna`,label:`GPT-5.6 Luna`,provider:`openai`,contextWindowTokens:258400,autoCompactTokenLimit:244800,reasoningEfforts:Dr,defaultReasoningEffort:`medium`,serviceTiers:Or,usageWeights:{input:.001,cacheRead:1e-4,cacheWrite:.00125,output:.006,fastMultiplier:2}},{id:`claude-opus-5`,label:`Claude Opus 5`,provider:`anthropic`,contextWindowTokens:1e6,autoCompactTokenLimit:967e3,reasoningEfforts:[`low`,`medium`,`high`,`xhigh`,`max`],defaultReasoningEffort:`high`,serviceTiers:Or,usageWeights:{input:.005,cacheRead:5e-4,cacheWrite:.00625,output:.025,fastMultiplier:2}},{id:`claude-fable-5`,label:`Claude Fable 5`,provider:`anthropic`,contextWindowTokens:1e6,autoCompactTokenLimit:967e3,reasoningEfforts:[`low`,`medium`,`high`,`xhigh`,`max`],defaultReasoningEffort:`high`,serviceTiers:Or,usageWeights:{input:.01,cacheRead:.001,cacheWrite:.0125,output:.05,fastMultiplier:1}},{id:`grok-4.5`,label:`Grok 4.5`,provider:`xai`,contextWindowTokens:5e5,autoCompactTokenLimit:4e5,reasoningEfforts:[`low`,`medium`,`high`],defaultReasoningEffort:`high`,serviceTiers:Or,usageWeights:{input:.002,cacheRead:5e-4,cacheWrite:.002,output:.006,fastMultiplier:2}},{id:`kimi-k3`,label:`Kimi K3`,provider:`fireworks`,contextWindowTokens:1e6,autoCompactTokenLimit:967e3,reasoningEfforts:[`low`,`high`,`max`],defaultReasoningEffort:`max`,serviceTiers:Or,usageWeights:{input:.003,cacheRead:3e-4,cacheWrite:.003,output:.015,fastMultiplier:1.5}}],jr=`gpt-5.6-sol`,Mr=Pr(jr).defaultReasoningEffort,Nr=`standard`;function Pr(e){let t=Ar.find(t=>t.id===e);if(!t)throw Error(`Unsupported model: ${e}`);return t}function Fr(e){return e}function Ir(e,t){return e.models.find(e=>e.id===t)}function Lr(e,t,n){return(e.tierAllowedModels[t]??[]).includes(n)}function Rr(e,t,n){return Lr(e,t,n)?n:e.tierAllowedModels[t]?.[0]??e.defaultModelId}function zr(e,t,n){return(e.tierAllowedServiceTiers[t]??[]).includes(n)}function Br(e,t,n){return n.serviceTiers.filter(n=>zr(e,t,n))}function Vr(e,t,n){return n.serviceTiers.map(n=>{let r={id:n,label:Kr(n)};return zr(e,t,n)?r:{...r,locked:!0,lockTooltip:e.serviceTierLockUpgradeMessage}})}function Hr(e,t){let n=[],r=[];for(let i of e.models){let a={id:i.id,label:i.label,provider:i.provider};Lr(e,t,i.id)?n.push(a):r.push({...a,locked:!0,lockTooltip:e.modelLockUpgradeMessage})}return[...n,...r]}var Ur={none:`None`,low:`Low`,medium:`Medium`,high:`High`,xhigh:`Extra High`,max:`Max`},Wr={standard:`Standard`,fast:`Fast`};function Gr(e){return Ur[e]??e}function Kr(e){return Wr[e]??e}var qr=i(`<span class="text-muted-foreground ml-auto text-xs">Default</span>`),Jr=i(`<button type="button" class="focus-visible:ring-ring/60 text-foreground hover:bg-hover-fill flex w-full items-center gap-3 rounded-xl px-3 py-2 text-left text-sm outline-none focus-visible:ring-2"><!> <span> </span> <!></button>`),Yr=i(`<span class="text-muted-foreground shrink-0" aria-hidden="true"><!></span>`),Xr=i(`<button type="button"><!> <!> <span> </span> <!></button>`),Zr=i(`<div class="bg-popover/96 absolute bottom-[calc(100%+0.75rem)] left-0 z-50 min-w-[15rem] rounded-[18px] border border-[var(--hairline)] p-2 shadow-[var(--composer-shadow)] backdrop-blur-xl" role="dialog" aria-label="Reasoning and service tier"><p class="text-muted-foreground px-3 pt-1 pb-1.5 text-[11px] font-medium">Reasoning</p> <div class="space-y-0.5"></div> <div class="mx-2 my-2 h-px bg-[var(--hairline)]"></div> <p class="text-muted-foreground px-3 pb-1.5 text-[11px] font-medium">Service tier</p> <div class="space-y-0.5"></div></div>`),Qr=i(`<div><button type="button" class="focus-visible:ring-ring/60 text-muted-foreground hover:bg-hover-fill inline-flex h-9 shrink-0 items-center gap-1 rounded-lg px-2 text-[15px] transition outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50" aria-haspopup="dialog" aria-label="Select reasoning effort and service tier"><span> </span> <!></button> <!></div> <!>`,1);function $r(e,t){E(t,!0);let i=j(t,`reasoningEffort`,31,()=>u(Mr)),a=j(t,`serviceTier`,31,()=>u(Nr)),o=j(t,`disabled`,3,!1),c=j(t,`className`,3,``),d=C(()=>t.serviceTierOptions?t.serviceTierOptions:t.model.serviceTiers.map(e=>({id:e,label:Kr(e)}))),m=C(()=>p(d).filter(e=>!e.locked).map(e=>e.id)),h=x(!1),g=x(null),_=x(null),S=or();function w(e){i(e)}function T(e,t){let n=p(d).find(t=>t.id===e);if(n){if(n.locked){t&&n.lockTooltip&&S.showLockTooltip(t,n.lockTooltip,!0);return}a(e)}}n(()=>{t.model.reasoningEfforts.includes(i())||i(t.model.defaultReasoningEffort),p(m).includes(a())||a(p(m)[0]??`standard`)}),n(()=>{if(!p(h)){S.hideLockTooltip();return}return sr({getRoot:()=>p(g),onOutside:()=>{l(h,!1)},onEscape:()=>{l(h,!1),p(_)?.focus()}})}),n(()=>{o()&&l(h,!1)});var D=Qr(),ee=b(D),te=y(ee),A=y(te),ne=y(A);k(A);var re=s(A,2);{let e=C(()=>G(`text-muted-foreground size-3 shrink-0 transition-transform`,p(h)&&`rotate-180`));ht(re,{get class(){return p(e)}})}k(te),le(te,e=>l(_,e),()=>p(_));var ie=s(te,2),ae=e=>{var n=Zr(),o=s(y(n),2);ue(o,20,()=>t.model.reasoningEfforts,e=>e,(e,n)=>{var a=Jr(),o=y(a);{let e=C(()=>G(`size-4 shrink-0 transition-opacity`,n===i()?`opacity-100`:`opacity-0`));pt(o,{get class(){return p(e)}})}var c=s(o,2),l=y(c,!0);k(c);var u=s(c,2),d=e=>{v(e,qr())};r(u,e=>{n===t.model.defaultReasoningEffort&&e(d)}),k(a),U(e=>{O(a,`aria-pressed`,n===i()),V(l,e)},[()=>Gr(n)]),N(`click`,a,()=>w(n)),v(e,a)}),k(o);var c=s(o,6);ue(c,21,()=>p(d),e=>e.id,(e,t)=>{let n=C(()=>!!p(t).locked);var i=Xr(),o=y(i),c=e=>{var t=Yr();$t(y(t),{class:`size-3.5`}),k(t),v(e,t)},l=e=>{{let n=C(()=>G(`size-4 shrink-0 transition-opacity`,p(t).id===a()?`opacity-100`:`opacity-0`));pt(e,{get class(){return p(n)}})}};r(o,e=>{p(n)?e(c):e(l,-1)});var u=s(o,2),d=e=>{Pn(e,{class:`size-3.5 shrink-0 text-amber-400`})};r(u,e=>{p(t).id===`fast`&&e(d)});var h=s(u,2),g=y(h,!0);k(h);var _=s(h,2),b=e=>{v(e,qr())};r(_,e=>{!p(n)&&p(t).id===p(m)[0]&&e(b)}),k(i),U((e,r)=>{I(i,1,e),O(i,`aria-pressed`,!p(n)&&p(t).id===a()),O(i,`aria-disabled`,p(n)),O(i,`aria-label`,p(n)&&p(t).lockTooltip?`${p(t).label}. ${p(t).lockTooltip}`:void 0),I(h,1,r),V(g,p(t).label)},[()=>P(G(`focus-visible:ring-ring/60 flex w-full items-center gap-3 rounded-xl px-3 py-2 text-left text-sm outline-none focus-visible:ring-2`,p(n)?`cursor-not-allowed opacity-45`:`text-foreground hover:bg-hover-fill`)),()=>P(G(p(n)&&`text-muted-foreground`))]),f(`mouseenter`,i,e=>{p(n)&&p(t).lockTooltip&&S.showLockTooltip(e,p(t).lockTooltip)}),f(`mouseleave`,i,()=>S.hideLockTooltip()),f(`focus`,i,e=>{p(n)&&p(t).lockTooltip&&S.showLockTooltip(e,p(t).lockTooltip)}),f(`blur`,i,()=>S.hideLockTooltip()),N(`click`,i,e=>T(p(t).id,e)),v(e,i)}),k(c),k(n),v(e,n)};r(ie,e=>{p(h)&&e(ae)}),k(ee),le(ee,e=>l(g,e),()=>p(g)),lr(s(ee,2),{get tooltip(){return S.lockTooltip}}),U((e,t,n)=>{I(ee,1,e),O(te,`aria-expanded`,p(h)),te.disabled=o(),V(ne,`${t??``} · ${n??``}`)},[()=>P(G(`relative`,c())),()=>Gr(i()),()=>Kr(a())]),N(`click`,te,()=>{l(h,!p(h))}),v(e,D),M()}t([`click`]);function ei(e){return e.key===`Enter`&&!e.shiftKey&&!e.isComposing}var ti=/(^|\s)\$([a-z0-9-]*)$/i;function ni(e,t){if(t<0||t>e.length)return null;let n=e.slice(0,t).match(ti);return!n||n.index===void 0?null:{query:n[2].toLowerCase(),tokenStart:n.index+n[1].length}}function ri(e,t){return ni(e,t)?.query??null}function ii(e,t){let n=t.toLowerCase(),r=[],i=[];for(let t of e){let e=t.name.toLowerCase();e.startsWith(n)?r.push(t):n.length>0&&e.includes(n)&&i.push(t)}return r.sort((e,t)=>e.name.localeCompare(t.name)),i.sort((e,t)=>e.name.localeCompare(t.name)),[...r,...i]}function ai(e,t,n){let r=ni(e,t);if(!r)return null;let i=t;for(;i<e.length&&/[a-z0-9-]/i.test(e[i]??``);)i+=1;e[i]===` `&&(i+=1);let a=`$${n} `;return{text:`${e.slice(0,r.tokenStart)}${a}${e.slice(i)}`,caret:r.tokenStart+a.length}}var oi=`agent_decide`;function si(e){return!!e.selectedOptionId?.trim()||!!e.text.trim()}function ci(e){return e!=null&&!Array.isArray(e)&&typeof e==`object`}var li=X.union(X.string(),X.number(),X.boolean(),X.null()),ui=8;function di(e){return e===0?li:X.union(li,X.array(di(e-1)),X.record(X.string(),di(e-1)))}var fi=di(ui),pi=[`free`,`pro`,`admin`],mi={free:`Free`,pro:`Pro`,admin:`Admin`},hi={modelUsage:{weekly:5e3,monthly:15e3},webTools:{weekly:500,monthly:1500}};hi.modelUsage.weekly*5,hi.modelUsage.monthly*5,hi.webTools.weekly*5,hi.webTools.monthly*5;function gi(e){return e.map(e=>X.literal(e))}X.union(...gi(Dr)),X.union(...gi(Or)),X.union(...gi(kr)),X.union(...gi(pi)),X.union(X.literal(`active`),X.literal(`on_hold`),X.literal(`cancelled`),X.literal(`expired`),X.literal(`failed`));var _i=X.object({path:X.string(),directory:X.string(),contents:X.string(),truncated:X.boolean()}),vi=X.object({patch:X.string()}),yi=X.object({cmd:X.string(),workdir:X.optional(X.string()),shell:X.optional(X.string()),timeoutMs:X.optional(X.number()),yieldTimeMs:X.optional(X.number()),maxOutputChars:X.optional(X.number())}),bi=X.object({url:X.string()}),xi=X.object({query:X.string(),numResults:X.optional(X.number())}),Si=X.object({sessionId:X.string(),chars:X.optional(X.string()),terminate:X.optional(X.boolean()),yieldTimeMs:X.optional(X.number())}),Ci=X.union(X.literal(`markdown`),X.literal(`html`),X.literal(`react`)),wi=X.object({title:X.string(),contentType:Ci,content:X.string()}),Ti=X.object({artifactId:X.string(),content:X.string()}),Ei=X.object({name:X.string()}),Di=X.object({id:X.string(),label:X.string()}),Oi=X.object({question:X.string(),options:X.array(Di),yieldTimeMs:X.optional(X.number()),timeoutMs:X.optional(X.number())}),ki=X.object({questionId:X.id(`agentQuestions`),yieldTimeMs:X.optional(X.number())});X.union(X.object({}),vi,Oi,ki,yi,Ei,bi,xi,Si,wi,Ti);var Ai=X.object({changes:X.array(X.object({path:X.string(),operation:X.union(X.literal(`created`),X.literal(`updated`),X.literal(`deleted`),X.literal(`renamed`),X.literal(`copied`))}))}),ji=X.object({command:X.string(),cwd:X.string(),sessionId:X.optional(X.string()),exitCode:X.optional(X.number()),success:X.boolean(),running:X.boolean(),timedOut:X.boolean(),stdout:X.string(),stderr:X.string(),output:X.string(),truncated:X.boolean(),error:X.optional(X.string())}),Mi=X.object({url:X.string(),markdown:X.string(),truncated:X.boolean()}),Ni=X.object({results:X.array(X.object({title:X.optional(X.string()),url:X.string(),publishedDate:X.optional(X.string()),author:X.optional(X.string()),text:X.optional(X.string())}))}),Pi=X.object({name:X.string(),description:X.string(),content:X.string(),dir:X.optional(X.string()),truncated:X.optional(X.boolean())}),Fi=X.object({optionId:X.optional(X.string()),optionLabel:X.optional(X.string()),text:X.optional(X.string())}),Ii=X.object({questionId:X.id(`agentQuestions`),question:X.string(),options:X.array(Di),pending:X.boolean(),timedOut:X.boolean(),answer:X.optional(Fi)}),Li=X.object({artifactId:X.string(),version:X.number(),title:X.optional(X.string()),contentType:X.optional(Ci)});X.union(X.string(),X.array(_i),Ai,Ii,ji,Pi,Mi,Ni,Li),X.union(X.literal(`disconnected`),X.literal(`connected`)),X.union(X.literal(`queued`),X.literal(`running`),X.literal(`awaiting_executor`),X.literal(`completed`),X.literal(`failed`),X.literal(`cancelled`));var Ri=[`cancelled`,`completed`,`failed`];X.union(...gi(Ri));function zi(e){return Ri.includes(e)}X.union(X.literal(`apply_patch`),X.literal(`ask_question`),X.literal(`await_question`),X.literal(`exec_command`),X.literal(`get_workspace_instructions`),X.literal(`read_skill`),X.literal(`scrape_url`),X.literal(`web_search`),X.literal(`write_stdin`),X.literal(`create_artifact`),X.literal(`update_artifact`)),X.union(X.literal(`pending`),X.literal(`answered`),X.literal(`timedOut`),X.literal(`cancelled`)),X.union(X.literal(`pending`),X.literal(`claimed`),X.literal(`completed`),X.literal(`failed`),X.literal(`cancelled`)),X.union(X.literal(`prompt`),X.literal(`response`));var Bi=[`image/jpeg`,`image/png`,`image/gif`,`image/webp`],Vi=`10 MiB`,Hi=X.object({type:X.literal(`text`),id:X.string(),text:X.string(),turnId:X.optional(X.string()),providerMetadata:X.optional(fi)}),Ui=X.object({type:X.literal(`reasoning`),id:X.string(),text:X.string(),turnId:X.optional(X.string()),providerMetadata:X.optional(fi)}),Wi=X.object({type:X.literal(`tool-call`),partId:X.optional(X.string()),callId:X.string(),name:X.string(),input:fi,turnId:X.optional(X.string()),providerMetadata:X.optional(fi)}),Gi=X.union(...gi([`cancelled`,`failed`]));X.object({error:X.string(),status:Gi});var Ki=X.object({type:X.literal(`tool-result`),callId:X.string(),name:X.optional(X.string()),output:fi});X.union(Hi,Ui,Wi,Ki);var qi=X.union(X.literal(`system`),X.literal(`user`),X.literal(`assistant`)),Ji=X.union(X.object({type:X.literal(`text`),text:X.string()}),X.object({type:X.literal(`image`),imageJson:X.string()})),Yi=X.union(X.object({type:X.literal(`text`),text:X.string(),additionalParamsJson:X.optional(X.string())}),X.object({type:X.literal(`reasoning`),id:X.optional(X.string()),blocksJson:X.string()}),X.object({type:X.literal(`toolCall`),id:X.string(),callId:X.optional(X.string()),name:X.string(),argumentsJson:X.string(),signature:X.optional(X.string()),additionalParamsJson:X.optional(X.string())}),X.object({type:X.literal(`toolResult`),id:X.string(),callId:X.optional(X.string()),items:X.array(Ji)}),X.object({type:X.literal(`image`),imageJson:X.string()}),X.object({type:X.literal(`audio`),audioJson:X.string()}),X.object({type:X.literal(`video`),videoJson:X.string()}),X.object({type:X.literal(`document`),documentJson:X.string()}));X.object({role:qi,assistantId:X.optional(X.string()),contents:X.array(Yi)});function Xi(e,t){let n=e??[],r=t??[];return n.length===r.length&&n.every((e,t)=>e===r[t])}var Zi=Bi;function Qi(e){return Zi.includes(e)}function $i(e,t){return e>=4?`You can attach up to 4 images.`:Qi(t.type)?t.size>10485760?`${t.name||`This image`} is larger than ${Vi}.`:null:`${t.name||`This file`} is not a supported image. Use JPEG, PNG, GIF, or WebP.`}var ea=i(`<div class="text-muted-foreground mb-3 flex items-center gap-2 px-4 text-[11px]"><span class="inline-flex items-center gap-0.75"><span class="bg-foreground/28 size-1 animate-pulse rounded-full"></span> <span class="bg-foreground/28 size-1 animate-pulse rounded-full [animation-delay:200ms]"></span> <span class="bg-foreground/28 size-1 animate-pulse rounded-full [animation-delay:400ms]"></span></span> <span> </span></div>`),ta=i(`<div class="text-muted-foreground mb-3 flex items-center gap-2 px-4 text-[11px]" role="status" aria-live="polite"><span class="bg-foreground/28 size-1.5 animate-pulse rounded-full"></span> <span> </span></div>`),na=i(`<li><button type="button"> </button></li>`),ra=i(`<div class="mb-3" role="group" aria-label="Agent question"><p class="text-foreground text-[14px] leading-6 font-medium"> </p> <ul class="mt-2 flex flex-col gap-1.5" aria-label="Answer options"></ul></div>`),ia=i(`<span class="absolute inset-0 flex items-center justify-center" role="status"><span class="border-border border-t-foreground/80 size-3.5 animate-spin rounded-full border-2"></span></span>`),aa=i(`<span class="text-destructive absolute inset-x-0 bottom-0 bg-rose-950/80 px-1 py-0.5 text-center text-[9px] leading-3" role="alert">Failed</span>`),oa=i(`<li><img/> <!> <button type="button" class="bg-foreground/70 text-background hover:bg-foreground/90 absolute top-1 right-1 flex size-4.5 cursor-pointer items-center justify-center rounded-full transition disabled:cursor-not-allowed disabled:opacity-40"><!></button></li>`),sa=i(`<ul class="mb-3 flex flex-wrap items-center gap-2" aria-label="Attached images"></ul>`),ca=i(`<p class="text-muted-foreground px-3 py-2 text-sm">Loading skills…</p>`),la=i(`<div class="flex items-center justify-between gap-3 px-3 py-2"><p class="text-muted-foreground text-sm">Couldn’t load skills</p> <button type="button" class="text-muted-foreground hover:text-foreground text-sm underline-offset-2 hover:underline">Retry</button></div>`),ua=i(`<p class="text-muted-foreground px-3 py-2 text-sm">No matching skills</p>`),da=i(`<button type="button" role="option"><span class="text-sm font-medium"> </span> <span class="text-muted-foreground line-clamp-2 text-[12px]"> </span></button>`),fa=i(`<div class="border-border bg-popover absolute inset-x-0 bottom-full z-30 mb-2 max-h-56 overflow-y-auto rounded-xl border py-1 shadow-2xl" id="composer-skills-listbox" aria-label="Available skills"><!></div>`),pa=i(`<button type="button" class="flex h-10 w-10 cursor-pointer items-center justify-center rounded-full bg-rose-500/90 text-white transition-all duration-150 hover:scale-105 hover:bg-rose-500 disabled:pointer-events-none disabled:opacity-60 disabled:hover:scale-100" aria-label="Stop generation" title="Stop"><!></button>`),ma=i(`<button type="button" class="bg-primary/90 text-primary-foreground hover:bg-primary flex h-10 w-10 items-center justify-center rounded-full transition-all duration-150 hover:scale-105 enabled:cursor-pointer disabled:pointer-events-none disabled:opacity-30 disabled:hover:scale-100"><!></button>`),ha=i(`<div class="bg-tooltip text-tooltip-foreground ring-border pointer-events-none fixed z-100 -translate-x-1/2 -translate-y-full rounded-md px-2.5 py-1.5 text-[12px] leading-4 whitespace-nowrap shadow-lg ring-1" role="tooltip"> </div>`),ga=i(`<footer class="shrink-0 px-6 py-4"><div class="mx-auto max-w-336"><!> <div><div><div class="relative flex min-h-33 flex-col px-4 pt-4 pb-2.5"><!> <!> <div class="relative min-h-0 flex-1"><!> <textarea rows="1" class="text-foreground placeholder:text-muted-foreground field-sizing-content max-h-40 min-h-17 w-full resize-none overflow-y-auto border-0 bg-transparent px-0 py-0 text-[14px] leading-6 outline-none" role="combobox" aria-autocomplete="list" aria-haspopup="listbox" autocomplete="off"></textarea></div> <div class="flex min-w-0 flex-nowrap items-center justify-between gap-3 overflow-visible px-0 pt-2.5 pb-0"><div class="-m-1 flex min-w-0 flex-1 items-center gap-1 overflow-visible p-1"><input type="file" class="hidden" multiple=""/> <button type="button" class="text-muted-foreground enabled:hover:text-foreground flex h-9 w-9 shrink-0 items-center justify-center rounded-lg transition enabled:cursor-pointer disabled:opacity-40"><!></button> <div class="bg-hover-fill-strong mx-1 hidden h-4 w-px shrink-0 sm:block"></div> <!> <div class="bg-hover-fill-strong mx-1 hidden h-4 w-px shrink-0 sm:block"></div> <!></div> <div class="flex shrink-0 flex-nowrap items-center justify-end gap-2.5"><div class="group/context relative"><button type="button" class="focus-visible:ring-ring/60 relative flex size-8 cursor-help items-center justify-center rounded-full focus-visible:ring-2 focus-visible:outline-none" aria-describedby="context-window-details"><span class="bg-muted size-5.5 rounded-full"></span></button> <div id="context-window-details" class="border-border bg-popover invisible absolute right-0 bottom-full z-50 mb-3 w-76 translate-y-1 rounded-xl border p-4 opacity-0 shadow-(--composer-shadow) transition duration-150 group-focus-within/context:visible group-focus-within/context:translate-y-0 group-focus-within/context:opacity-100 group-hover/context:visible group-hover/context:translate-y-0 group-hover/context:opacity-100" role="tooltip"><div class="flex items-center justify-between gap-4 text-[13px]"><span class="text-foreground font-medium">Context window</span> <span class="text-muted-foreground"> </span></div> <div class="bg-hover-fill mt-3 h-1.5 overflow-hidden rounded-full"><div class="bg-accent h-full rounded-full transition-[width] duration-300"></div></div> <div class="text-muted-foreground mt-3 flex items-center justify-between text-[12px]"><span>Total processed</span> <span> </span></div> <p class="text-muted-foreground mt-4 text-[12px] leading-5"> </p></div></div> <!> <!></div></div></div></div></div></div></footer> <!>`,1);function _a(e,t){E(t,!0);let i=j(t,`prompt`,15,``),o=j(t,`selectedModel`,31,()=>u(jr)),c=j(t,`selectedReasoningEffort`,31,()=>u(Mr)),d=j(t,`selectedServiceTier`,31,()=>u(Nr)),m=j(t,`pendingQuestion`,3,null),g=j(t,`selectedQuestionOptionId`,15,null),_=j(t,`projectSkills`,3,null),S=Te(),w=Se(W.billing.getMySubscription,()=>S.isAuthenticated&&!S.isLoading?{}:`skip`),T=C(()=>w.data?.tier),D=C(()=>!!w.error),te=C(()=>t.modelCatalog?Hr(t.modelCatalog,p(T)??`free`):[]),re=C(()=>t.modelCatalog?Ir(t.modelCatalog,o()):void 0),ie=C(()=>t.modelCatalog&&p(re)?Vr(t.modelCatalog,p(T)??`free`,p(re)):void 0),ae=C(()=>p(re)!==void 0&&(p(D)||p(T)!==void 0&&t.modelCatalog!==void 0&&Lr(t.modelCatalog,p(T),o()))),oe=x(null),F=x(null),se=x(null),ce=x(u([])),L=x(`idle`),R=x(!1),z=x(0),B=x(0),H=0,de,fe=u([]),pe=C(()=>m()!=null),me=C(()=>t.isRunning&&!p(pe)||t.isSubmitting),he=C(()=>!!i().trim()||t.attachments.length>0),ge=C(()=>si({selectedOptionId:g(),text:i()})),_e=C(()=>p(pe)?p(ge):p(he)),ve=C(()=>t.attachments.some(e=>e.status!==`ready`)),ye=C(()=>t.attachments.length<4&&!p(me)&&!p(pe)),be=x(null);n(()=>{let e=m()?.questionId??null;e!==p(be)&&(l(be,e,!0),g(null),i().trim()&&i(``))});let xe=`Attach images (up to 4)`,Ce=typeof CSS<`u`&&CSS.supports(`field-sizing`,`content`),we=C(()=>t.contextUsage.contextWindowTokens>0?Math.min(100,Math.round(t.contextUsage.inputTokens/t.contextUsage.contextWindowTokens*100)):0),G=C(()=>t.contextUsage.contextWindowTokens>0?Math.round(t.contextUsage.autoCompactTokenLimit/t.contextUsage.contextWindowTokens*100):0),Ee=C(()=>ri(i(),p(B))),De=C(()=>p(Ee)!==null&&!p(R)&&!p(pe)),Oe=C(()=>p(Ee)===null?[]:ii(p(ce),p(Ee))),ke=C(()=>p(De)&&p(Oe).length>0?`composer-skill-option-${p(z)}`:void 0);function Ae(){l(B,p(oe)?.selectionStart??i().length,!0)}function je(){l(ce,[],!0),l(L,`idle`),l(R,!1),l(z,0),H+=1}async function Me(e=!1){if(p(L)===`loading`||(p(L)===`ready`||p(L)===`error`)&&!e)return;if(!_()?.load){l(ce,[],!0),l(L,`ready`);return}let t=++H;l(L,`loading`);try{let e=await _().load();if(t!==H)return;l(ce,e,!0),l(L,`ready`)}catch{if(t!==H)return;l(ce,[],!0),l(L,`error`)}}function Ne(e){let t=ai(i(),p(B),e.name);t&&(i(t.text),l(B,t.caret,!0),l(R,!0),queueMicrotask(()=>{p(oe)&&(p(oe).focus(),p(oe).setSelectionRange(t.caret,t.caret),Ie())}))}function Pe(e){let n=e.currentTarget,r=Array.from(n.files??[]);n.value=``,r.length>0&&t.onAttachFiles(r)}function K(e){let n=Array.from(e.clipboardData?.files??[]).filter(e=>e.type.startsWith(`image/`));n.length===0||t.isRunning||t.isSubmitting||p(pe)||(e.preventDefault(),t.onAttachFiles(n))}function Fe(e){let t=e.currentTarget;if(!(t instanceof HTMLButtonElement)||t.disabled)return;let n=t.getBoundingClientRect();l(se,{top:n.top-8,left:n.left+n.width/2},!0)}function q(){l(se,null)}function Ie(){if(!p(oe)||Ce)return;let e=p(oe);e.style.height=`68px`;let t=Math.min(Math.max(e.scrollHeight,68),160);e.style.height=`${t}px`,e.style.overflowY=e.scrollHeight>t?`auto`:`hidden`}function Le(e){if(p(De)){if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(e.preventDefault(),p(Oe).length===0)return;let t=e.key===`ArrowDown`?1:-1;l(z,(p(z)+t+p(Oe).length)%p(Oe).length);return}if(e.key===`Escape`){e.preventDefault(),l(R,!0);return}if((e.key===`Enter`||e.key===`Tab`)&&!e.shiftKey){e.preventDefault();let t=p(Oe)[p(z)];t&&Ne(t);return}}!t.canSend||!p(pe)&&!p(ae)||t.isSubmitting||p(me)||!p(_e)||!p(pe)&&p(ve)||ei(e)&&(e.preventDefault(),t.onSubmit())}function Re(e){g(g()===e?null:e)}function ze(e){if(!t.modelCatalog)return;let n=Ir(t.modelCatalog,e);n&&c(n.defaultReasoningEffort)}function Be(e){return e>=1e6?`${(e/1e6).toFixed(e>=1e7?0:1).replace(/\.0$/,``)}m`:e>=1e3?`${Math.round(e/1e3)}k`:String(e)}n(()=>{t.modelCatalog&&(!o()||!Ir(t.modelCatalog,o()))&&(o(t.modelCatalog.defaultModelId),c(t.modelCatalog.defaultReasoningEffort),d(t.modelCatalog.defaultServiceTier))}),n(()=>{if(!t.modelCatalog||!p(T))return;let e=Rr(t.modelCatalog,p(T),o());e!==o()&&(o(e),c(Ir(t.modelCatalog,e)?.defaultReasoningEffort??t.modelCatalog.defaultReasoningEffort));let n=Ir(t.modelCatalog,e);if(!n)return;let r=Br(t.modelCatalog,p(T),n);r.includes(d())||d(r[0]??t.modelCatalog.defaultServiceTier)}),n(()=>{i(),Ie()}),n(()=>{let e=_()?.workspacePath??null;if(de!==e&&(de=e,je()),p(Ee)===null){l(R,!1);return}p(R)||Me()}),n(()=>{p(Oe),l(z,0)}),n(()=>{!p(De)||p(Oe).length===0||fe[p(z)]?.scrollIntoView({block:`nearest`})});var Ve=ga(),He=b(Ve),Ue=y(He),J=y(Ue),We=e=>{var n=ea(),r=s(y(n),2),i=y(r);k(r),k(n),U(()=>V(i,`Working for ${t.elapsedLabel??``}`)),v(e,n)},Y=e=>{var n=ta(),r=s(y(n),2),i=y(r,!0);k(r),k(n),U(()=>V(i,t.isStarting?`Starting agent…`:`Sending request…`)),v(e,n)};r(J,e=>{t.elapsedLabel?e(We):t.isSubmitting&&e(Y,1)});var Ge=s(J,2);I(Ge,1,P(`composer-shell mx-auto w-full max-w-[48rem] rounded-[28px] p-px transition-colors duration-200`));var Ke=y(Ge);I(Ke,1,P(`composer-inner rounded-[27px] border border-[var(--hairline)] transition-colors duration-200`));var qe=y(Ke),X=y(qe),Je=e=>{var t=ra(),n=y(t),r=y(n,!0);k(n);var i=s(n,2);ue(i,21,()=>m().options,e=>e.id,(e,t)=>{let n=C(()=>p(t).id===oi),r=C(()=>g()===p(t).id);var i=na(),a=y(i),o=y(a,!0);k(a),k(i),U(()=>{I(a,1,`w-full rounded-lg border px-3 py-2 text-left text-[13px] leading-5 transition ${p(r)?`border-foreground/40 bg-hover-fill-strong text-foreground`:p(n)?`border-border/70 text-muted-foreground/80 hover:text-muted-foreground hover:bg-hover-fill`:`border-border text-muted-foreground hover:text-foreground hover:bg-hover-fill`}`),O(a,`aria-pressed`,p(r)),V(o,p(t).label)}),N(`click`,a,()=>{Re(p(t).id)}),v(e,i)}),k(i),k(t),U(()=>V(r,m().question)),v(e,t)};r(X,e=>{m()&&e(Je)});var Ye=s(X,2),Xe=e=>{var n=sa();ue(n,21,()=>t.attachments,e=>e.localId,(e,n)=>{var i=oa(),a=y(i),o=s(a,2),c=e=>{var t=ia();U(()=>O(t,`aria-label`,`Uploading ${p(n).name??``}`)),v(e,t)},l=e=>{v(e,aa())};r(o,e=>{p(n).status===`uploading`?e(c):p(n).status===`error`&&e(l,1)});var u=s(o,2);Mn(y(u),{class:`size-3`,"aria-hidden":`true`}),k(u),k(i),U(()=>{I(i,1,`group relative size-14 overflow-hidden rounded-xl border ${p(n).status===`error`?`border-rose-500/60`:`border-border`}`),O(i,`title`,p(n).error??p(n).name),O(a,`src`,p(n).previewUrl),O(a,`alt`,p(n).name),I(a,1,`size-full object-cover ${p(n).status===`uploading`?`opacity-50`:``}`),O(u,`aria-label`,`Remove ${p(n).name??``}`),u.disabled=p(me)}),N(`click`,u,()=>t.onRemoveAttachment(p(n).localId)),v(e,i)}),k(n),v(e,n)};r(Ye,e=>{t.attachments.length>0&&!p(pe)&&e(Xe)});var Ze=s(Ye,2),Qe=y(Ze),$e=e=>{var t=fa(),n=y(t),i=e=>{v(e,ca())},o=e=>{var t=la(),n=s(y(t),2);k(t),N(`click`,n,()=>{Me(!0)}),v(e,t)},c=e=>{v(e,ua())},u=e=>{var t=a();ue(b(t),19,()=>p(Oe),e=>e.name,(e,t,n)=>{var r=da(),i=y(r),a=y(i);k(i);var o=s(i,2),c=y(o,!0);k(o),k(r),le(r,(e,t)=>fe[t]=e,e=>fe?.[e],()=>[p(n)]),U(()=>{O(r,`id`,`composer-skill-option-${p(n)??``}`),I(r,1,`flex w-full flex-col gap-0.5 px-3 py-2 text-left transition ${p(z)===p(n)?`text-foreground bg-hover-fill-strong`:`text-muted-foreground hover:text-foreground hover:bg-hover-fill`}`),O(r,`aria-selected`,p(z)===p(n)),V(a,`$${p(t).name??``}`),V(c,p(t).description)}),f(`pointerenter`,r,()=>{l(z,p(n),!0)}),N(`click`,r,()=>{Ne(p(t))}),v(e,r)}),v(e,t)};r(n,e=>{p(L)===`loading`?e(i):p(L)===`error`?e(o,1):p(Oe).length===0?e(c,2):e(u,-1)}),k(t),U(()=>O(t,`role`,p(L)===`ready`&&p(Oe).length>0?`listbox`:`status`)),v(e,t)};r(Qe,e=>{p(De)&&e($e)});var Z=s(Qe,2);h(Z),le(Z,e=>l(oe,e),()=>p(oe)),k(Ze);var et=s(Ze,2),tt=y(et),nt=y(tt);le(nt,e=>l(F,e),()=>p(F));var rt=s(nt,2);Yt(y(rt),{class:`size-4`,"aria-hidden":`true`}),k(rt);var it=s(rt,4);{let e=(e,t=ne)=>{Er(e,{get provider(){return t().provider},className:`size-4 shrink-0`})},n=C(()=>p(me)||p(pe)||t.modelCatalog===void 0);vr(it,{get options(){return p(te)},ariaLabel:`Select model`,menuTitle:`Model`,get disabled(){return p(n)},searchable:!0,onValueChange:ze,className:`z-20 shrink-0`,triggerClassName:`h-9 border-0 bg-transparent px-2 text-[15px] text-foreground shadow-none hover:bg-transparent focus-visible:ring-0`,get value(){return o()},set value(e){o(e)},optionIcon:e,$$slots:{optionIcon:!0}})}var ot=s(it,4),st=e=>{{let t=C(()=>p(me)||p(pe));$r(e,{get model(){return p(re)},get serviceTierOptions(){return p(ie)},get disabled(){return p(t)},className:`z-20 shrink-0`,get reasoningEffort(){return c()},set reasoningEffort(e){c(e)},get serviceTier(){return d()},set serviceTier(e){d(e)}})}};r(ot,e=>{p(re)&&e(st)}),k(tt);var ct=s(tt,2),lt=y(ct),ut=y(lt),dt=s(ut,2),ft=y(dt),pt=s(y(ft),2),mt=y(pt);k(pt),k(ft);var ht=s(ft,2),gt=y(ht);k(ht);var _t=s(ht,2),vt=s(y(_t),2),yt=y(vt,!0);k(vt),k(_t);var bt=s(_t,2),xt=y(bt);k(bt),k(dt),k(lt);var St=s(lt,2),Ct=e=>{var n=pa();Sn(y(n),{class:`size-3.5 fill-current`}),k(n),N(`click`,n,function(...e){t.onCancel?.apply(this,e)}),v(e,n)};r(St,e=>{t.isRunning&&e(Ct)});var wt=s(St,2),Tt=e=>{var n=ma();at(y(n),{class:`size-4`}),k(n),U(()=>{n.disabled=!t.canSend||!p(pe)&&!p(ae)||t.isSubmitting||!p(_e)||!p(pe)&&p(ve),O(n,`aria-label`,p(pe)?`Submit answer`:`Send message`)}),N(`click`,n,function(...e){t.onSubmit?.apply(this,e)}),v(e,n)};r(wt,e=>{(p(pe)||!t.isRunning)&&e(Tt)}),k(ct),k(et),k(qe),k(Ke),k(Ge),k(Ue),k(He);var Et=s(He,2),Dt=e=>{var t=ha(),n=y(t,!0);k(t),U(()=>{A(t,`top: ${p(se).top}px; left: ${p(se).left}px;`),V(n,xe)}),v(e,t)};r(Et,e=>{p(se)&&e(Dt)}),U((e,t,n,r)=>{O(Z,`placeholder`,p(pe)?`Add detail, or type a custom answer`:`Ask anything, @tag files/directories, or use $ to show available skills`),Z.disabled=p(me),O(Z,`aria-expanded`,p(De)),O(Z,`aria-controls`,p(De)?`composer-skills-listbox`:void 0),O(Z,`aria-activedescendant`,p(ke)),O(nt,`accept`,e),O(rt,`aria-label`,xe),rt.disabled=!p(ye),O(ut,`aria-label`,`Context window ${p(we)}% full`),A(ut,`background: conic-gradient(var(--accent) ${p(we)*3.6}deg, var(--hover-fill-strong) 0deg);`),V(mt,`${p(we)??``}% · ${t??``}/${n??``}`),A(gt,`width: ${p(we)}%`),V(yt,r),V(xt,`Sprocket automatically compacts context at about ${p(G)??``}% so
1
+ import{$ as e,A as t,B as n,C as r,D as i,E as a,F as o,G as s,H as c,J as l,K as u,L as d,M as f,N as p,O as m,Q as h,R as g,S as _,T as v,U as y,W as b,X as x,Y as S,Z as C,_ as w,a as T,at as E,b as D,c as ee,d as O,dt as k,et as te,f as A,ft as ne,g as re,i as j,it as M,j as N,k as ie,l as ae,m as P,n as oe,o as F,p as I,pt as se,q as ce,rt as L,s as le,u as R,ut as z,v as B,w as V,x as ue,y as H,z as U}from"../chunks/BrZMY0Kx.js";import{c as de}from"../chunks/Gpzakw_M.js";import"../chunks/xihTtKlq.js";import{a as fe,d as pe,f as me,i as he,l as ge,n as _e,p as W,r as ve,s as ye,t as be,u as xe}from"../chunks/tqyHaQv_.js";import{a as Se,i as Ce,o as we,r as Te}from"../chunks/YGmybFhl.js";import{a as G,i as Ee,n as De,r as Oe,t as ke}from"../chunks/CBOYsvSw.js";import{a as Ae,n as je,o as Me}from"../chunks/B2QV2lSm.js";var Ne=Object.defineProperty,Pe=(e,t,n)=>t in e?Ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K=(e,t,n)=>Pe(e,typeof t==`symbol`?t:t+``,n),Fe=`https://docs.convex.dev/error#undefined-validator`;function q(e,t){let n=t===void 0?``:` for field "${t}"`;throw Error(`A validator is undefined${n} in ${e}. This is often caused by circular imports. See ${Fe} for details.`)}var Ie=class{constructor({isOptional:e}){K(this,`type`),K(this,`fieldPaths`),K(this,`isOptional`),K(this,`isConvexValidator`),this.isOptional=e,this.isConvexValidator=!0}},Le=class e extends Ie{constructor({isOptional:e,tableName:t}){if(super({isOptional:e}),K(this,`tableName`),K(this,`kind`,`id`),typeof t!=`string`)throw Error(`v.id(tableName) requires a string`);this.tableName=t}get json(){return{type:`id`,tableName:this.tableName}}asOptional(){return new e({isOptional:`optional`,tableName:this.tableName})}},Re=class e extends Ie{constructor(){super(...arguments),K(this,`kind`,`float64`)}get json(){return{type:`number`}}asOptional(){return new e({isOptional:`optional`})}},ze=class e extends Ie{constructor(){super(...arguments),K(this,`kind`,`int64`)}get json(){return{type:`bigint`}}asOptional(){return new e({isOptional:`optional`})}},Be=class e extends Ie{constructor(){super(...arguments),K(this,`kind`,`boolean`)}get json(){return{type:this.kind}}asOptional(){return new e({isOptional:`optional`})}},Ve=class e extends Ie{constructor(){super(...arguments),K(this,`kind`,`bytes`)}get json(){return{type:this.kind}}asOptional(){return new e({isOptional:`optional`})}},He=class e extends Ie{constructor(){super(...arguments),K(this,`kind`,`string`)}get json(){return{type:this.kind}}asOptional(){return new e({isOptional:`optional`})}},Ue=class e extends Ie{constructor(){super(...arguments),K(this,`kind`,`null`)}get json(){return{type:this.kind}}asOptional(){return new e({isOptional:`optional`})}},J=class e extends Ie{constructor(){super(...arguments),K(this,`kind`,`any`)}get json(){return{type:this.kind}}asOptional(){return new e({isOptional:`optional`})}},We=class e extends Ie{constructor({isOptional:e,fields:t}){super({isOptional:e}),K(this,`fields`),K(this,`kind`,`object`),globalThis.Object.entries(t).forEach(([e,t])=>{if(t===void 0&&q(`v.object()`,e),!t.isConvexValidator)throw Error(`v.object() entries must be validators`)}),this.fields=t}get json(){return{type:this.kind,value:globalThis.Object.fromEntries(globalThis.Object.entries(this.fields).map(([e,t])=>[e,{fieldType:t.json,optional:t.isOptional===`optional`}]))}}asOptional(){return new e({isOptional:`optional`,fields:this.fields})}omit(...t){let n={...this.fields};for(let e of t)delete n[e];return new e({isOptional:this.isOptional,fields:n})}pick(...t){let n={};for(let e of t)n[e]=this.fields[e];return new e({isOptional:this.isOptional,fields:n})}partial(){let t={};for(let[e,n]of globalThis.Object.entries(this.fields))t[e]=n.asOptional();return new e({isOptional:this.isOptional,fields:t})}extend(t){return new e({isOptional:this.isOptional,fields:{...this.fields,...t}})}},Y=class e extends Ie{constructor({isOptional:e,value:t}){if(super({isOptional:e}),K(this,`value`),K(this,`kind`,`literal`),typeof t!=`string`&&typeof t!=`boolean`&&typeof t!=`number`&&typeof t!=`bigint`)throw Error(`v.literal(value) must be a string, number, or boolean`);this.value=t}get json(){return{type:this.kind,value:we(this.value)}}asOptional(){return new e({isOptional:`optional`,value:this.value})}},Ge=class e extends Ie{constructor({isOptional:e,element:t}){super({isOptional:e}),K(this,`element`),K(this,`kind`,`array`),t===void 0&&q(`v.array()`),this.element=t}get json(){return{type:this.kind,value:this.element.json}}asOptional(){return new e({isOptional:`optional`,element:this.element})}},Ke=class e extends Ie{constructor({isOptional:e,key:t,value:n}){if(super({isOptional:e}),K(this,`key`),K(this,`value`),K(this,`kind`,`record`),t===void 0&&q(`v.record()`,`key`),n===void 0&&q(`v.record()`,`value`),t.isOptional===`optional`)throw Error(`Record validator cannot have optional keys`);if(n.isOptional===`optional`)throw Error(`Record validator cannot have optional values`);if(!t.isConvexValidator||!n.isConvexValidator)throw Error(`Key and value of v.record() but be validators`);this.key=t,this.value=n}get json(){return{type:this.kind,keys:this.key.json,values:{fieldType:this.value.json,optional:!1}}}asOptional(){return new e({isOptional:`optional`,key:this.key,value:this.value})}},qe=class e extends Ie{constructor({isOptional:e,members:t}){super({isOptional:e}),K(this,`members`),K(this,`kind`,`union`),t.forEach((e,t)=>{if(e===void 0&&q(`v.union()`,`member at index ${t}`),!e.isConvexValidator)throw Error(`All members of v.union() must be validators`)}),this.members=t}get json(){return{type:this.kind,value:this.members.map(e=>e.json)}}asOptional(){return new e({isOptional:`optional`,members:this.members})}},X={id:e=>new Le({isOptional:`required`,tableName:e}),null:()=>new Ue({isOptional:`required`}),number:()=>new Re({isOptional:`required`}),float64:()=>new Re({isOptional:`required`}),bigint:()=>new ze({isOptional:`required`}),int64:()=>new ze({isOptional:`required`}),boolean:()=>new Be({isOptional:`required`}),string:()=>new He({isOptional:`required`}),bytes:()=>new Ve({isOptional:`required`}),literal:e=>new Y({isOptional:`required`,value:e}),array:e=>new Ge({isOptional:`required`,element:e}),object:e=>new We({isOptional:`required`,fields:e}),record:(e,t)=>new Ke({isOptional:`required`,key:e,value:t}),union:(...e)=>new qe({isOptional:`required`,members:e}),any:()=>new J({isOptional:`required`}),optional:e=>e.asOptional(),nullable:e=>X.union(e,X.null())},Je={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Ye=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Xe=Symbol(`lucide-context`),Ze=()=>L(Xe),Qe=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`,`children`]),$e=m(`<svg><!><!></svg>`);function Z(e,t){E(t,!0);let n=Ze()??{},r=j(t,`color`,19,()=>n.color??`currentColor`),i=j(t,`size`,19,()=>n.size??24),o=j(t,`strokeWidth`,19,()=>n.strokeWidth??2),c=j(t,`absoluteStrokeWidth`,19,()=>n.absoluteStrokeWidth??!1),l=j(t,`iconNode`,19,()=>[]),u=T(t,Qe),d=C(()=>c()?Number(o())*24/Number(i()):o());var f=$e();ae(f,e=>({...Je,...e,...u,width:i(),height:i(),stroke:r(),"stroke-width":p(d),class:[`lucide-icon lucide`,n.class,t.name&&`lucide-${t.name}`,t.class]}),[()=>!t.children&&!Ye(u)&&{"aria-hidden":`true`}]);var m=y(f);ue(m,17,l,_,(e,t)=>{var n=C(()=>se(p(t),2));let r=()=>p(n)[0],i=()=>p(n)[1];var o=a();w(b(o),r,!0,(e,t)=>{ae(e,()=>({...i()}))}),v(e,o)}),H(s(m),()=>t.children??ne),k(f),v(e,f),M()}var et=new Set([`$$slots`,`$$events`,`$$legacy`]);function tt(e,t){let n=T(t,et),r=[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`}],[`path`,{d:`M10 12h4`}]];Z(e,F({name:`archive`},()=>n,{get iconNode(){return r}}))}var nt=new Set([`$$slots`,`$$events`,`$$legacy`]);function rt(e,t){let n=T(t,nt),r=[[`path`,{d:`m12 19-7-7 7-7`}],[`path`,{d:`M19 12H5`}]];Z(e,F({name:`arrow-left`},()=>n,{get iconNode(){return r}}))}var it=new Set([`$$slots`,`$$events`,`$$legacy`]);function at(e,t){let n=T(t,it),r=[[`path`,{d:`m5 12 7-7 7 7`}],[`path`,{d:`M12 19V5`}]];Z(e,F({name:`arrow-up`},()=>n,{get iconNode(){return r}}))}var ot=new Set([`$$slots`,`$$events`,`$$legacy`]);function st(e,t){let n=T(t,ot),r=[[`path`,{d:`M12 5v16`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`}]];Z(e,F({name:`book-open`},()=>n,{get iconNode(){return r}}))}var ct=new Set([`$$slots`,`$$events`,`$$legacy`]);function lt(e,t){let n=T(t,ct),r=[[`path`,{d:`M12 18V5`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`}]];Z(e,F({name:`brain`},()=>n,{get iconNode(){return r}}))}var ut=new Set([`$$slots`,`$$events`,`$$legacy`]);function dt(e,t){let n=T(t,ut),r=[[`path`,{d:`M5 21v-6`}],[`path`,{d:`M12 21V3`}],[`path`,{d:`M19 21V9`}]];Z(e,F({name:`chart-no-axes-column`},()=>n,{get iconNode(){return r}}))}var ft=new Set([`$$slots`,`$$events`,`$$legacy`]);function pt(e,t){let n=T(t,ft),r=[[`path`,{d:`M20 6 9 17l-5-5`}]];Z(e,F({name:`check`},()=>n,{get iconNode(){return r}}))}var mt=new Set([`$$slots`,`$$events`,`$$legacy`]);function ht(e,t){let n=T(t,mt),r=[[`path`,{d:`m6 9 6 6 6-6`}]];Z(e,F({name:`chevron-down`},()=>n,{get iconNode(){return r}}))}var gt=new Set([`$$slots`,`$$events`,`$$legacy`]);function _t(e,t){let n=T(t,gt),r=[[`path`,{d:`m9 18 6-6-6-6`}]];Z(e,F({name:`chevron-right`},()=>n,{get iconNode(){return r}}))}var vt=new Set([`$$slots`,`$$events`,`$$legacy`]);function yt(e,t){let n=T(t,vt),r=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`}],[`path`,{d:`M12 17h.01`}]];Z(e,F({name:`circle-question-mark`},()=>n,{get iconNode(){return r}}))}var bt=new Set([`$$slots`,`$$events`,`$$legacy`]);function xt(e,t){let n=T(t,bt),r=[[`path`,{d:`m18 16 4-4-4-4`}],[`path`,{d:`m6 8-4 4 4 4`}],[`path`,{d:`m14.5 4-5 16`}]];Z(e,F({name:`code-xml`},()=>n,{get iconNode(){return r}}))}var St=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ct(e,t){let n=T(t,St),r=[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}]];Z(e,F({name:`copy`},()=>n,{get iconNode(){return r}}))}var wt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tt(e,t){let n=T(t,wt),r=[[`path`,{d:`M14 9 9 4 4 9`}],[`path`,{d:`M20 20h-7a4 4 0 0 1-4-4V4`}]];Z(e,F({name:`corner-left-up`},()=>n,{get iconNode(){return r}}))}var Et=new Set([`$$slots`,`$$events`,`$$legacy`]);function Dt(e,t){let n=T(t,Et),r=[[`path`,{d:`M12 15V3`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}],[`path`,{d:`m7 10 5 5 5-5`}]];Z(e,F({name:`download`},()=>n,{get iconNode(){return r}}))}var Ot=new Set([`$$slots`,`$$events`,`$$legacy`]);function kt(e,t){let n=T(t,Ot),r=[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`M10 14 21 3`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}]];Z(e,F({name:`external-link`},()=>n,{get iconNode(){return r}}))}var At=new Set([`$$slots`,`$$events`,`$$legacy`]);function jt(e,t){let n=T(t,At),r=[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]];Z(e,F({name:`eye`},()=>n,{get iconNode(){return r}}))}var Mt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Nt(e,t){let n=T(t,Mt),r=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}],[`path`,{d:`M10 12.5 8 15l2 2.5`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`}]];Z(e,F({name:`file-code`},()=>n,{get iconNode(){return r}}))}var Pt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ft(e,t){let n=T(t,Pt),r=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`}],[`path`,{d:`M9 10h6`}],[`path`,{d:`M12 13V7`}],[`path`,{d:`M9 17h6`}]];Z(e,F({name:`file-diff`},()=>n,{get iconNode(){return r}}))}var It=new Set([`$$slots`,`$$events`,`$$legacy`]);function Lt(e,t){let n=T(t,It),r=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}],[`path`,{d:`M10 9H8`}],[`path`,{d:`M16 13H8`}],[`path`,{d:`M16 17H8`}]];Z(e,F({name:`file-text`},()=>n,{get iconNode(){return r}}))}var Rt=new Set([`$$slots`,`$$events`,`$$legacy`]);function zt(e,t){let n=T(t,Rt),r=[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`}]];Z(e,F({name:`folder-open`},()=>n,{get iconNode(){return r}}))}var Bt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Vt(e,t){let n=T(t,Bt),r=[[`path`,{d:`M12 10v6`}],[`path`,{d:`M9 13h6`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}]];Z(e,F({name:`folder-plus`},()=>n,{get iconNode(){return r}}))}var Ht=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ut(e,t){let n=T(t,Ht),r=[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}]];Z(e,F({name:`folder`},()=>n,{get iconNode(){return r}}))}var Wt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Gt(e,t){let n=T(t,Wt),r=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`}],[`path`,{d:`M2 12h20`}]];Z(e,F({name:`globe`},()=>n,{get iconNode(){return r}}))}var Kt=new Set([`$$slots`,`$$events`,`$$legacy`]);function qt(e,t){let n=T(t,Kt),r=[[`path`,{d:`M5 22h14`}],[`path`,{d:`M5 2h14`}],[`path`,{d:`M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22`}],[`path`,{d:`M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2`}]];Z(e,F({name:`hourglass`},()=>n,{get iconNode(){return r}}))}var Jt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Yt(e,t){let n=T(t,Jt),r=[[`path`,{d:`M16 5h6`}],[`path`,{d:`M19 2v6`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`}],[`circle`,{cx:`9`,cy:`9`,r:`2`}]];Z(e,F({name:`image-plus`},()=>n,{get iconNode(){return r}}))}var Xt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Zt(e,t){let n=T(t,Xt),r=[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`}]];Z(e,F({name:`loader-circle`},()=>n,{get iconNode(){return r}}))}var Qt=new Set([`$$slots`,`$$events`,`$$legacy`]);function $t(e,t){let n=T(t,Qt),r=[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`}]];Z(e,F({name:`lock`},()=>n,{get iconNode(){return r}}))}var en=new Set([`$$slots`,`$$events`,`$$legacy`]);function tn(e,t){let n=T(t,en),r=[[`path`,{d:`m16 17 5-5-5-5`}],[`path`,{d:`M21 12H9`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}]];Z(e,F({name:`log-out`},()=>n,{get iconNode(){return r}}))}var nn=new Set([`$$slots`,`$$events`,`$$legacy`]);function rn(e,t){let n=T(t,nn),r=[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`m21 3-7 7`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M9 21H3v-6`}]];Z(e,F({name:`maximize-2`},()=>n,{get iconNode(){return r}}))}var an=new Set([`$$slots`,`$$events`,`$$legacy`]);function on(e,t){let n=T(t,an),r=[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`}]];Z(e,F({name:`moon`},()=>n,{get iconNode(){return r}}))}var sn=new Set([`$$slots`,`$$events`,`$$legacy`]);function cn(e,t){let n=T(t,sn),r=[[`path`,{d:`M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4`}],[`path`,{d:`M2 6h4`}],[`path`,{d:`M2 10h4`}],[`path`,{d:`M2 14h4`}],[`path`,{d:`M2 18h4`}],[`path`,{d:`M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`}]];Z(e,F({name:`notebook-pen`},()=>n,{get iconNode(){return r}}))}var ln=new Set([`$$slots`,`$$events`,`$$legacy`]);function un(e,t){let n=T(t,ln),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M15 3v18`}]];Z(e,F({name:`panel-right`},()=>n,{get iconNode(){return r}}))}var dn=new Set([`$$slots`,`$$events`,`$$legacy`]);function fn(e,t){let n=T(t,dn),r=[[`path`,{d:`M15 12h-5`}],[`path`,{d:`M15 8h-5`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`}]];Z(e,F({name:`scroll-text`},()=>n,{get iconNode(){return r}}))}var pn=new Set([`$$slots`,`$$events`,`$$legacy`]);function mn(e,t){let n=T(t,pn),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];Z(e,F({name:`search`},()=>n,{get iconNode(){return r}}))}var hn=new Set([`$$slots`,`$$events`,`$$legacy`]);function gn(e,t){let n=T(t,hn),r=[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]];Z(e,F({name:`settings`},()=>n,{get iconNode(){return r}}))}var _n=new Set([`$$slots`,`$$events`,`$$legacy`]);function vn(e,t){let n=T(t,_n),r=[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`}]];Z(e,F({name:`square-pen`},()=>n,{get iconNode(){return r}}))}var yn=new Set([`$$slots`,`$$events`,`$$legacy`]);function bn(e,t){let n=T(t,yn),r=[[`path`,{d:`m7 11 2-2-2-2`}],[`path`,{d:`M11 13h4`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`}]];Z(e,F({name:`square-terminal`},()=>n,{get iconNode(){return r}}))}var xn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Sn(e,t){let n=T(t,xn),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}]];Z(e,F({name:`square`},()=>n,{get iconNode(){return r}}))}var Cn=new Set([`$$slots`,`$$events`,`$$legacy`]);function wn(e,t){let n=T(t,Cn),r=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M12 2v2`}],[`path`,{d:`M12 20v2`}],[`path`,{d:`m4.93 4.93 1.41 1.41`}],[`path`,{d:`m17.66 17.66 1.41 1.41`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`m6.34 17.66-1.41 1.41`}],[`path`,{d:`m19.07 4.93-1.41 1.41`}]];Z(e,F({name:`sun`},()=>n,{get iconNode(){return r}}))}var Tn=new Set([`$$slots`,`$$events`,`$$legacy`]);function En(e,t){let n=T(t,Tn),r=[[`path`,{d:`M12 19h8`}],[`path`,{d:`m4 17 6-6-6-6`}]];Z(e,F({name:`terminal`},()=>n,{get iconNode(){return r}}))}var Dn=new Set([`$$slots`,`$$events`,`$$legacy`]);function On(e,t){let n=T(t,Dn),r=[[`circle`,{cx:`12`,cy:`8`,r:`5`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`}]];Z(e,F({name:`user-round`},()=>n,{get iconNode(){return r}}))}var kn=new Set([`$$slots`,`$$events`,`$$legacy`]);function An(e,t){let n=T(t,kn),r=[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`}]];Z(e,F({name:`wrench`},()=>n,{get iconNode(){return r}}))}var jn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Mn(e,t){let n=T(t,jn),r=[[`path`,{d:`M18 6 6 18`}],[`path`,{d:`m6 6 12 12`}]];Z(e,F({name:`x`},()=>n,{get iconNode(){return r}}))}var Nn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Pn(e,t){let n=T(t,Nn),r=[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`}]];Z(e,F({name:`zap`},()=>n,{get iconNode(){return r}}))}var Fn=[`forEach`,`isDisjointFrom`,`isSubsetOf`,`isSupersetOf`],In=[`difference`,`intersection`,`symmetricDifference`,`union`],Ln=!1,Rn=class e extends Set{#e=new Map;#t=x(0);#n=x(0);#r=d||-1;constructor(e){if(super(),e){for(var t of e)super.add(t);this.#n.v=super.size}Ln||this.#a()}#i(e){return d===this.#r?x(e):S(e)}#a(){Ln=!0;var t=e.prototype,n=Set.prototype;for(let e of Fn)t[e]=function(...t){return p(this.#t),n[e].apply(this,t)};for(let r of In)t[r]=function(...t){p(this.#t);var i=n[r].apply(this,t);return new e(i)}}has(e){var t=super.has(e),n=this.#e,r=n.get(e);if(r===void 0){if(!t)return p(this.#t),!1;r=this.#i(!0),n.set(e,r)}return p(r),t}add(e){return super.has(e)||(super.add(e),l(this.#n,super.size),ce(this.#t)),this}delete(e){var t=super.delete(e),n=this.#e,r=n.get(e);return r!==void 0&&(n.delete(e),l(r,!1)),t&&(l(this.#n,super.size),ce(this.#t)),t}clear(){if(super.size!==0){super.clear();var e=this.#e;for(var t of e.values())l(t,!1);e.clear(),l(this.#n,0),ce(this.#t)}}keys(){return this.values()}values(){return p(this.#t),super.values()}entries(){return p(this.#t),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return p(this.#n)}},zn=class extends Map{#e=new Map;#t=x(0);#n=x(0);#r=d||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return d===this.#r?x(e):S(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else return p(this.#t),!1;return p(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else{p(this.#t);return}return p(n),super.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),l(this.#n,super.size),ce(o);else if(i!==t){ce(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&ce(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),l(n,-1)),r&&(l(this.#n,super.size),ce(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;l(this.#n,0);for(var t of e.values())l(t,-1);ce(this.#t),e.clear()}}#a(){p(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)p(n)}keys(){return p(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return p(this.#n),super.size}},Bn=2e4,Vn=i(`<a><!></a>`),Hn=i(`<button><!></button>`);function Un(e,t){E(t,!0);let n=j(t,`type`,3,`button`),i=j(t,`variant`,3,`default`),o=j(t,`className`,3,``),s=j(t,`disabled`,3,!1),c=C(()=>i()===`outline`?`border-border bg-surface/80 text-foreground hover:bg-hover-fill`:`bg-primary text-primary-foreground hover:opacity-90`),l=C(()=>G(`focus-visible:ring-ring/50 inline-flex h-10 items-center justify-center gap-2 rounded-full border border-transparent px-5 py-2 text-sm font-medium transition-opacity focus-visible:ring-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50`,p(c),o()));var u=a(),d=b(u),f=e=>{var n=Vn();H(y(n),()=>t.children??ne),k(n),U(()=>{O(n,`href`,t.href),I(n,1,P(p(l)))}),N(`click`,n,function(...e){t.onclick?.apply(this,e)}),v(e,n)},m=e=>{var r=Hn();H(y(r),()=>t.children??ne),k(r),U(()=>{O(r,`type`,n()),r.disabled=s(),I(r,1,P(p(l)))}),N(`click`,r,function(...e){t.onclick?.apply(this,e)}),v(e,r)};r(d,e=>{t.href&&!s()?e(f):e(m,-1)}),v(e,u),M()}t([`click`]);var Wn=i(`<!> <!>`,1),Gn=i(`<p class="text-destructive text-center text-sm" role="alert"> </p>`),Kn=i(`<div class="text-muted-foreground flex items-center justify-center gap-2 text-sm" aria-live="polite" aria-busy="true"><!> <span> </span></div>`),qn=i(`<div><!></div>`);function Jn(e,t){E(t,!0);let n=j(t,`overlayOpen`,3,!1),i=C(()=>t.authState.isAuthenticated&&(t.authState.isLoading||!t.authState.connectionFailed)),o=C(()=>!t.authState.isAuthenticated&&t.authState.isLoading),c=C(()=>t.authState.isConfigured?p(i)?`Confirming your session`:t.authState.connectionFailed?`Couldn’t connect your account`:p(o)?`Preparing sign-in`:`Sign in to continue`:`Sign-in unavailable`),l=C(()=>t.authState.isConfigured?p(i)?`Verifying your secure connection before opening your projects.`:t.authState.connectionFailed?`You’re signed in, but the secure connection could not be confirmed. Retry or sign out and sign in again.`:p(o)?`Getting account sign-in ready. This usually takes a moment.`:`Sign in to sync your coding threads, streaming responses, and projects.`:`Account sign-in is not configured on this deployment, so account actions are disabled.`),u=C(()=>t.authState.isAuthenticated?`Almost there`:`One moment`),d=C(()=>!!(t.authState.isConfigured&&t.authState.error&&!n()));var f=qn();ke(y(f),{get title(){return p(c)},get description(){return p(l)},actions:e=>{var n=a(),i=b(n),o=e=>{var n=Wn(),i=b(n),a=e=>{Un(e,{get onclick(){return t.onRetry},get disabled(){return t.authState.isLoading},children:(e,t)=>{z(),v(e,ie(`Retry`))},$$slots:{default:!0}})};r(i,e=>{t.authState.connectionFailed&&e(a)}),Un(s(i,2),{variant:`outline`,get onclick(){return t.onSignOut},children:(e,t)=>{z(),v(e,ie(`Sign Out`))},$$slots:{default:!0}}),v(e,n)},c=e=>{var n=Wn(),r=b(n);Un(r,{get onclick(){return t.onSignIn},get disabled(){return t.authState.isLoading},children:(e,t)=>{z(),v(e,ie(`Sign In`))},$$slots:{default:!0}}),Un(s(r,2),{variant:`outline`,get onclick(){return t.onSignUp},get disabled(){return t.authState.isLoading},children:(e,t)=>{z(),v(e,ie(`Create Account`))},$$slots:{default:!0}}),v(e,n)};r(i,e=>{t.authState.isAuthenticated?e(o):t.authState.isConfigured&&e(c,1)}),v(e,n)},children:(e,n)=>{var i=Wn(),a=b(i),o=e=>{var n=Gn(),r=y(n,!0);k(n),U(()=>V(r,t.authState.error)),v(e,n)};r(a,e=>{p(d)&&e(o)});var c=s(a,2),l=e=>{var t=Kn(),n=y(t);Zt(n,{class:`size-3.5 animate-spin`,"aria-hidden":`true`});var r=s(n,2),i=y(r,!0);k(r),k(t),U(()=>V(i,p(u))),v(e,t)};r(c,e=>{t.authState.isLoading&&e(l)}),v(e,i)},$$slots:{actions:!0,default:!0}}),k(f),U(()=>{f.inert=n(),O(f,`aria-hidden`,n()?!0:void 0)}),v(e,f),M()}var Yn=i(`<div class="text-muted-foreground mb-4 flex justify-center" aria-hidden="true"><!></div>`),Xn=i(`<p class="text-muted-foreground mt-6 max-h-24 overflow-y-auto font-mono text-[11px] leading-5 break-all select-all"> </p>`),Zn=i(`<p class="text-destructive mt-4 text-sm" role="alert"> </p>`),Qn=i(`<p class="mt-4 text-sm text-amber-700" role="alert"> </p>`),$n=i(`<!> Open browser`,1),er=i(`<!> Copied`,1),tr=i(`<!> Copy link`,1),nr=i(`<!> <!>`,1),rr=i(`<span class="text-muted-foreground border-border inline-flex h-10 items-center justify-center gap-2 rounded-full border px-4 text-sm">Preparing link…</span>`),ir=i(`<div class="app-entry-shell fixed inset-0 z-50 flex items-center justify-center px-6" role="presentation"><div class="border-border/70 bg-surface relative z-10 w-full max-w-md rounded-2xl border p-8 text-center shadow-[0_18px_50px_-28px_oklch(0.2_0.02_260/0.45)] outline-none" role="dialog" aria-modal="true" aria-labelledby="browser-signin-title" aria-describedby="browser-signin-desc" tabindex="-1"><!> <h2 id="browser-signin-title" class="font-brand text-foreground text-[1.35rem] font-semibold tracking-tight"> </h2> <p id="browser-signin-desc" class="text-muted-foreground mt-3 text-sm leading-[1.55]"> </p> <!> <!> <!> <div class="mt-6 flex flex-wrap items-center justify-center gap-3"><!></div> <div class="mt-6"><button type="button" class="text-muted-foreground hover:text-foreground decoration-foreground/30 hover:decoration-foreground text-[13px] underline underline-offset-4 transition-colors">Cancel</button></div></div></div>`);function ar(e,t){E(t,!0);let i=j(t,`error`,3,null),c=x(!1),u=x(null),d=x(null),f=null;n(()=>{if(!t.open){l(c,!1),l(u,null);return}let e=document.activeElement instanceof HTMLElement?document.activeElement:null,n=!1;o().then(()=>{n||p(d)?.focus()});function r(e){if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),t.onCancel();return}if(e.key!==`Tab`||!p(d))return;let n=Array.from(p(d).querySelectorAll(`a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`)).filter(e=>!e.hasAttribute(`hidden`)&&e.offsetParent!==null);if(n.length===0){e.preventDefault(),p(d).focus();return}let r=n[0],i=n[n.length-1],a=document.activeElement;e.shiftKey&&(a===p(d)||a===r||!p(d).contains(a))?(e.preventDefault(),i.focus()):!e.shiftKey&&(a===p(d)||a===i||!p(d).contains(a))&&(e.preventDefault(),r.focus())}return window.addEventListener(`keydown`,r,!0),()=>{n=!0,window.removeEventListener(`keydown`,r,!0),f!==null&&(window.clearTimeout(f),f=null),e?.isConnected&&e.focus()}});async function m(){if(t.signInUrl)try{await navigator.clipboard.writeText(t.signInUrl),l(c,!0),l(u,null),f!==null&&window.clearTimeout(f),f=window.setTimeout(()=>{l(c,!1),f=null},2e3)}catch{l(c,!1),l(u,`Could not copy the sign-in link. Select it above and copy manually.`)}}function h(){if(!t.signInUrl)return;let e=window.open(t.signInUrl,`_blank`);if(e){try{e.opener=null}catch{}t.onClearOpenError?.()}}let g=C(()=>t.signInUrl?i()?{title:`Open the sign-in link`,description:`Your browser didn’t open automatically. Continue with the options below.`}:{title:`Finish signing in`,description:`We opened your browser to complete sign-in. Waiting for you to finish there.`}:{title:`Preparing sign-in`,description:`Preparing a secure sign-in link. This usually takes a moment.`});var _=a(),S=b(_),w=e=>{var n=ir(),o=y(n),f=y(o),_=e=>{var t=Yn();Zt(y(t),{class:`size-5 animate-spin`}),k(t),v(e,t)};r(f,e=>{t.signInUrl||e(_)});var x=s(f,2),S=y(x,!0);k(x);var C=s(x,2),w=y(C,!0);k(C);var T=s(C,2),E=e=>{var n=Xn(),r=y(n,!0);k(n),U(()=>{O(n,`title`,t.signInUrl),V(r,t.signInUrl)}),v(e,n)};r(T,e=>{t.signInUrl&&e(E)});var D=s(T,2),ee=e=>{var t=Zn(),n=y(t,!0);k(t),U(()=>V(n,i())),v(e,t)};r(D,e=>{i()&&e(ee)});var te=s(D,2),A=e=>{var t=Qn(),n=y(t,!0);k(t),U(()=>V(n,p(u))),v(e,t)};r(te,e=>{p(u)&&e(A)});var ne=s(te,2),re=y(ne),j=e=>{var t=nr(),n=b(t);Un(n,{onclick:h,children:(e,t)=>{var n=$n();kt(b(n),{class:`size-4`,"aria-hidden":`true`}),z(),v(e,n)},$$slots:{default:!0}}),Un(s(n,2),{variant:`outline`,onclick:()=>void m(),children:(e,t)=>{var n=a(),i=b(n),o=e=>{var t=er();pt(b(t),{class:`size-4`,"aria-hidden":`true`}),z(),v(e,t)},s=e=>{var t=tr();Ct(b(t),{class:`size-4`,"aria-hidden":`true`}),z(),v(e,t)};r(i,e=>{p(c)?e(o):e(s,-1)}),v(e,n)},$$slots:{default:!0}}),v(e,t)},M=e=>{v(e,rr())};r(re,e=>{t.signInUrl?e(j):e(M,-1)}),k(ne);var ie=s(ne,2),ae=y(ie);k(ie),k(o),le(o,e=>l(d,e),()=>p(d)),k(n),U(()=>{V(S,p(g).title),V(w,p(g).description)}),N(`click`,n,e=>{e.target===e.currentTarget&&t.onCancel()}),N(`click`,ae,function(...e){t.onCancel?.apply(this,e)}),v(e,n)};r(S,e=>{t.open&&e(w)}),v(e,_),M()}t([`click`]);function or(){let e=x(null),t=x(!1),r=null;function i(){r&&=(clearTimeout(r),null)}function a(n,a,o=!1){let s=n.currentTarget;if(!(s instanceof HTMLElement))return;let c=s.getBoundingClientRect();i(),l(t,o,!0),l(e,{top:c.top-8,left:c.left+c.width/2,label:a},!0),o&&(r=setTimeout(()=>{l(t,!1),r=null,l(e,null)},2500))}function o(n=!1){p(t)&&!n||(i(),l(t,!1),l(e,null))}return n(()=>i),{get lockTooltip(){return p(e)},showLockTooltip:a,hideLockTooltip:o}}function sr(e){function t(t){let n=t.target;n instanceof Node&&(e.getRoot()?.contains(n)||e.onOutside())}function n(t){t.key===`Escape`&&e.onEscape()}return document.addEventListener(`pointerdown`,t),document.addEventListener(`keydown`,n),()=>{document.removeEventListener(`pointerdown`,t),document.removeEventListener(`keydown`,n)}}var cr=i(`<div class="text-tooltip-foreground bg-tooltip ring-border pointer-events-none fixed z-100 -translate-x-1/2 -translate-y-full rounded-md px-2.5 py-1.5 text-[12px] leading-4 whitespace-nowrap shadow-lg ring-1" role="tooltip"> </div>`);function lr(e,t){E(t,!0);var n=a(),i=b(n),o=e=>{var n=cr(),r=y(n,!0);k(n),U(()=>{A(n,`top: ${t.tooltip.top}px; left: ${t.tooltip.left}px;`),V(r,t.tooltip.label)}),v(e,n)};r(i,e=>{t.tooltip&&e(o)}),v(e,n),M()}var ur=i(`<label class="text-muted-foreground flex h-10 items-center gap-2 border-b border-[var(--hairline)] px-2"><!> <span class="sr-only"> </span> <input class="text-foreground placeholder:text-muted-foreground min-w-0 flex-1 bg-transparent text-sm outline-none"/></label>`),dr=i(`<p class="text-muted-foreground px-3 pt-1 pb-2 text-[11px] font-medium"> </p>`),fr=i(`<span><!></span>`),pr=i(`<span class="text-muted-foreground shrink-0" aria-hidden="true"><!></span>`),mr=i(`<button type="button"><!> <span> </span> <!></button>`),hr=i(`<p class="text-muted-foreground px-3 py-5 text-center text-sm">No matches found</p>`),gr=i(`<div class="bg-popover/96 absolute bottom-[calc(100%+0.75rem)] left-0 z-50 min-w-[19rem] rounded-[18px] border border-[var(--hairline)] p-2 shadow-[var(--composer-shadow)] backdrop-blur-xl" role="dialog"><!> <div><!> <!></div></div>`),_r=i(`<div><button type="button" aria-haspopup="dialog"><!> <span class="truncate"> </span> <!></button> <!></div> <!>`,1);function vr(e,t){E(t,!0);let i=j(t,`value`,15,``),o=j(t,`disabled`,3,!1),c=j(t,`className`,3,``),u=j(t,`triggerClassName`,3,``),d=j(t,`searchable`,3,!1),m=x(!1),h=x(``),g=x(null),_=x(null),S=x(null),w=or(),T=C(()=>{let e=t.options.find(e=>e.id===i());return e&&!e.locked?e:t.options.find(e=>!e.locked)??e??t.options[0]??null}),D=C(()=>d()&&p(h).trim()?t.options.filter(e=>e.label.toLocaleLowerCase().includes(p(h).trim().toLocaleLowerCase())):t.options),te=C(()=>p(D).filter(e=>!e.locked));function A(){o()||(l(m,!p(m)),p(m)&&d()?queueMicrotask(()=>p(S)?.focus()):l(h,``))}function ne(e,n){let r=t.options.find(t=>t.id===e);if(r){if(r.locked){n&&r.lockTooltip&&w.showLockTooltip(n,r.lockTooltip,!0);return}e!==i()&&(i(e),t.onValueChange?.(e)),l(m,!1),l(h,``),w.hideLockTooltip(!0),p(_)?.focus()}}function re(e){e.key!==`Enter`||p(te).length===0||(e.preventDefault(),ne(p(te)[0].id))}n(()=>{if(!p(m)){l(h,``),w.hideLockTooltip();return}return sr({getRoot:()=>p(g),onOutside:()=>{l(m,!1)},onEscape:()=>{l(m,!1),p(_)?.focus()}})}),n(()=>{o()&&l(m,!1)});var ie=_r(),ae=b(ie),oe=y(ae),F=y(oe),se=e=>{var n=a();H(b(n),()=>t.optionIcon,()=>p(T)),v(e,n)};r(F,e=>{t.optionIcon&&p(T)&&e(se)});var ce=s(F,2),L=y(ce,!0);k(ce);var z=s(ce,2);{let e=C(()=>G(`text-muted-foreground size-3 shrink-0 transition-transform`,p(m)&&`rotate-180`));ht(z,{get class(){return p(e)}})}k(oe),le(oe,e=>l(_,e),()=>p(_));var B=s(oe,2),de=e=>{var n=gr(),a=y(n),o=e=>{var n=ur(),r=y(n);mn(r,{class:`size-4 shrink-0`});var i=s(r,2),a=y(i);k(i);var o=s(i,2);R(o),le(o,e=>l(S,e),()=>p(S)),k(n),U((e,t)=>{V(a,`Search ${e??``}`),O(o,`placeholder`,t)},[()=>t.menuTitle.toLocaleLowerCase(),()=>`Search ${t.menuTitle.toLocaleLowerCase()}…`]),N(`keydown`,o,re),ee(o,()=>p(h),e=>l(h,e)),v(e,n)},c=e=>{var n=dr(),r=y(n,!0);k(n),U(()=>V(r,t.menuTitle)),v(e,n)};r(a,e=>{d()?e(o):e(c,-1)});var u=s(a,2),m=y(u);ue(m,17,()=>p(D),e=>e.id,(e,n)=>{let a=C(()=>!!p(n).locked);var o=mr(),c=y(o),l=e=>{var r=fr();H(y(r),()=>t.optionIcon,()=>p(n)),k(r),U(e=>I(r,1,e),[()=>P(G(`flex size-7 shrink-0 items-center justify-center`,(p(a),`text-muted-foreground`)))]),v(e,r)};r(c,e=>{t.optionIcon&&e(l)});var u=s(c,2),d=y(u,!0);k(u);var m=s(u,2),h=e=>{var t=pr();$t(y(t),{class:`size-3.5`}),k(t),v(e,t)},g=e=>{{let t=C(()=>G(`text-accent-strong size-4 shrink-0 transition-opacity`,p(n).id===i()?`opacity-100`:`opacity-0`));pt(e,{get class(){return p(t)}})}};r(m,e=>{p(a)?e(h):e(g,-1)}),k(o),U((e,t)=>{I(o,1,e),O(o,`aria-pressed`,!p(a)&&p(n).id===i()),O(o,`aria-disabled`,p(a)),O(o,`aria-label`,p(a)&&p(n).lockTooltip?`${p(n).label}. ${p(n).lockTooltip}`:void 0),I(u,1,t),V(d,p(n).label)},[()=>P(G(`focus-visible:ring-ring/60 flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left outline-none focus-visible:ring-2`,p(a)?`cursor-not-allowed opacity-45`:`hover:bg-hover-fill`,!p(a)&&p(n).id===i()&&`bg-hover-fill`)),()=>P(G(`min-w-0 flex-1 truncate text-sm font-medium`,p(a)?`text-muted-foreground`:`text-foreground`))]),f(`mouseenter`,o,e=>{p(a)&&p(n).lockTooltip&&w.showLockTooltip(e,p(n).lockTooltip)}),f(`mouseleave`,o,()=>w.hideLockTooltip()),f(`focus`,o,e=>{p(a)&&p(n).lockTooltip&&w.showLockTooltip(e,p(n).lockTooltip)}),f(`blur`,o,()=>w.hideLockTooltip()),N(`click`,o,e=>{ne(p(n).id,e)}),v(e,o)});var g=s(m,2),_=e=>{v(e,hr())};r(g,e=>{p(D).length===0&&e(_)}),k(u),k(n),U(e=>{O(n,`aria-label`,t.menuTitle),I(u,1,e)},[()=>P(G(`space-y-0.5`,d()&&`pt-1.5`))]),v(e,n)};r(B,e=>{p(m)&&e(de)}),k(ae),le(ae,e=>l(g,e),()=>p(g)),lr(s(ae,2),{get tooltip(){return w.lockTooltip}}),U((e,n)=>{I(ae,1,e),I(oe,1,n),O(oe,`aria-expanded`,p(m)),O(oe,`aria-label`,t.ariaLabel),oe.disabled=o(),V(L,p(T)?.triggerLabel??p(T)?.label??i())},[()=>P(G(`relative`,c())),()=>P(G(`focus-visible:ring-ring/60 text-muted-foreground hover:bg-hover-fill inline-flex h-8 shrink-0 items-center gap-2 rounded-lg border border-transparent bg-transparent px-2 text-sm font-medium transition outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50`,!t.optionIcon&&`gap-1`,u()))]),N(`click`,oe,A),v(e,ie),M()}t([`click`,`keydown`]);var yr=m(`<title> </title>`),br=m(`<svg viewBox="146.694 227.042 267.198 264.812" xmlns="http://www.w3.org/2000/svg" role="img" fill="none"><!><path d="M249.176 323.434V298.276C249.176 296.158 249.971 294.569 251.825 293.509L302.406 264.381C309.29 260.409 317.5 258.555 325.973 258.555C357.75 258.555 377.877 283.185 377.877 309.399C377.877 311.253 377.877 313.371 377.611 315.49L325.178 284.771C322.001 282.919 318.822 282.919 315.645 284.771L249.176 323.434ZM367.283 421.415V361.301C367.283 357.592 365.694 354.945 362.516 353.092L296.048 314.43L317.763 301.982C319.617 300.925 321.206 300.925 323.058 301.982L373.639 331.112C388.205 339.586 398.003 357.592 398.003 375.069C398.003 395.195 386.087 413.733 367.283 421.412V421.415ZM233.553 368.452L211.838 355.742C209.986 354.684 209.19 353.095 209.19 350.975V292.718C209.19 264.383 230.905 242.932 260.301 242.932C271.423 242.932 281.748 246.641 290.49 253.26L238.321 283.449C235.146 285.303 233.555 287.951 233.555 291.659V368.455L233.553 368.452ZM280.292 395.462L249.176 377.985V340.913L280.292 323.436L311.407 340.913V377.985L280.292 395.462ZM300.286 475.968C289.163 475.968 278.837 472.259 270.097 465.64L322.264 435.449C325.441 433.597 327.03 430.949 327.03 427.239V350.445L349.011 363.155C350.865 364.213 351.66 365.802 351.66 367.922V426.179C351.66 454.514 329.679 475.965 300.286 475.965V475.968ZM237.525 416.915L186.944 387.785C172.378 379.31 162.582 361.305 162.582 343.827C162.582 323.436 174.763 305.164 193.563 297.485V357.861C193.563 361.571 195.154 364.217 198.33 366.071L264.535 404.467L242.82 416.915C240.967 417.972 239.377 417.972 237.525 416.915ZM234.614 460.343C204.689 460.343 182.71 437.833 182.71 410.028C182.71 407.91 182.976 405.792 183.238 403.672L235.405 433.863C238.582 435.715 241.763 435.715 244.938 433.863L311.407 395.466V420.622C311.407 422.742 310.612 424.331 308.758 425.389L258.179 454.519C251.293 458.491 243.083 460.343 234.611 460.343H234.614ZM300.286 491.854C332.329 491.854 359.073 469.082 365.167 438.892C394.825 431.211 413.892 403.406 413.892 375.073C413.892 356.535 405.948 338.529 391.648 325.552C392.972 319.991 393.766 314.43 393.766 308.87C393.766 271.003 363.048 242.666 327.562 242.666C320.413 242.666 313.528 243.723 306.644 246.109C294.725 234.457 278.307 227.042 260.301 227.042C228.258 227.042 201.513 249.815 195.42 280.004C165.761 287.685 146.694 315.49 146.694 343.824C146.694 362.362 154.638 380.368 168.938 393.344C167.613 398.906 166.819 404.467 166.819 410.027C166.819 447.894 197.538 476.231 233.024 476.231C240.172 476.231 247.058 475.173 253.943 472.788C265.859 484.441 282.278 491.854 300.286 491.854Z" fill="currentColor"></path></svg>`);function xr(e,t){E(t,!0);let n=j(t,`className`,3,``),i=j(t,`title`,3,`OpenAI`);var a=br(),o=y(a),s=e=>{var t=yr(),n=y(t,!0);k(t),U(()=>V(n,i())),v(e,t)};r(o,e=>{i()&&e(s)}),z(),k(a),U(e=>{I(a,0,e),O(a,`aria-hidden`,!i()||void 0)},[()=>P(G(`size-4`,n()))]),v(e,a),M()}var Sr=m(`<svg viewBox="0 0 24 24" role="img" aria-label="Anthropic" fill="currentColor"><path d="M17.304 3.541h-3.672l6.696 16.918H24Zm-10.608 0L0 20.459h3.744l1.37-3.553h7.005l1.369 3.553h3.744L10.536 3.541Zm-.371 10.223 2.291-5.945 2.292 5.945Z"></path></svg>`),Cr=m(`<svg viewBox="0 0 24 24" role="img" aria-label="xAI" fill="currentColor"><path d="M6.469 8.776 16.512 23h-4.464L2.005 8.776H6.47Zm-.004 7.9 2.233 3.164L6.467 23H2l4.465-6.324ZM22 2.582V23h-3.659V7.764L22 2.582ZM22 1l-9.952 14.095-2.233-3.163L17.533 1H22Z"></path></svg>`),wr=m(`<svg viewBox="0 0 24 24" role="img" aria-label="Moonshot" fill="currentColor" fill-rule="evenodd"><path d="M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z"></path></svg>`),Tr=m(`<svg viewBox="0 0 24 24" role="img" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="12" cy="12" r="9"></circle><path d="M12 8v4l2.5 1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>`);function Er(e,t){E(t,!0);let n=j(t,`className`,3,``);var i=a(),o=b(i),s=e=>{{let t=C(()=>G(`size-4 text-foreground`,n()));xr(e,{get className(){return p(t)}})}},c=e=>{var t=Sr();U(e=>I(t,0,e),[()=>P(G(`size-4 text-[#D97757]`,n()))]),v(e,t)},l=e=>{var t=Cr();U(e=>I(t,0,e),[()=>P(G(`text-foreground size-4`,n()))]),v(e,t)},u=e=>{var t=wr();U(e=>I(t,0,e),[()=>P(G(`text-foreground size-4`,n()))]),v(e,t)},d=e=>{var r=Tr();U(e=>{I(r,0,e),O(r,`aria-label`,t.provider||`Unknown provider`)},[()=>P(G(`text-muted-foreground size-4`,n()))]),v(e,r)};r(o,e=>{t.provider===`openai`?e(s):t.provider===`anthropic`?e(c,1):t.provider===`xai`?e(l,2):t.provider===`fireworks`?e(u,3):e(d,-1)}),v(e,i),M()}var Dr=[`none`,`low`,`medium`,`high`,`xhigh`,`max`],Or=[`standard`,`fast`],kr=[`gpt-5.6-sol`,`gpt-5.6-terra`,`gpt-5.6-luna`,`claude-opus-5`,`claude-fable-5`,`grok-4.5`,`kimi-k3`],Ar=[{id:`gpt-5.6-sol`,label:`GPT-5.6 Sol`,provider:`openai`,contextWindowTokens:258400,autoCompactTokenLimit:244800,reasoningEfforts:Dr,defaultReasoningEffort:`medium`,serviceTiers:Or,usageWeights:{input:.005,cacheRead:5e-4,cacheWrite:.00625,output:.03,fastMultiplier:2}},{id:`gpt-5.6-terra`,label:`GPT-5.6 Terra`,provider:`openai`,contextWindowTokens:258400,autoCompactTokenLimit:244800,reasoningEfforts:Dr,defaultReasoningEffort:`medium`,serviceTiers:Or,usageWeights:{input:.0025,cacheRead:25e-5,cacheWrite:.003125,output:.015,fastMultiplier:2}},{id:`gpt-5.6-luna`,label:`GPT-5.6 Luna`,provider:`openai`,contextWindowTokens:258400,autoCompactTokenLimit:244800,reasoningEfforts:Dr,defaultReasoningEffort:`medium`,serviceTiers:Or,usageWeights:{input:.001,cacheRead:1e-4,cacheWrite:.00125,output:.006,fastMultiplier:2}},{id:`claude-opus-5`,label:`Claude Opus 5`,provider:`anthropic`,contextWindowTokens:1e6,autoCompactTokenLimit:967e3,reasoningEfforts:[`low`,`medium`,`high`,`xhigh`,`max`],defaultReasoningEffort:`high`,serviceTiers:Or,usageWeights:{input:.005,cacheRead:5e-4,cacheWrite:.00625,output:.025,fastMultiplier:2}},{id:`claude-fable-5`,label:`Claude Fable 5`,provider:`anthropic`,contextWindowTokens:1e6,autoCompactTokenLimit:967e3,reasoningEfforts:[`low`,`medium`,`high`,`xhigh`,`max`],defaultReasoningEffort:`high`,serviceTiers:Or,usageWeights:{input:.01,cacheRead:.001,cacheWrite:.0125,output:.05,fastMultiplier:1}},{id:`grok-4.5`,label:`Grok 4.5`,provider:`xai`,contextWindowTokens:5e5,autoCompactTokenLimit:4e5,reasoningEfforts:[`low`,`medium`,`high`],defaultReasoningEffort:`high`,serviceTiers:Or,usageWeights:{input:.002,cacheRead:5e-4,cacheWrite:.002,output:.006,fastMultiplier:2}},{id:`kimi-k3`,label:`Kimi K3`,provider:`fireworks`,contextWindowTokens:1e6,autoCompactTokenLimit:967e3,reasoningEfforts:[`low`,`high`,`max`],defaultReasoningEffort:`max`,serviceTiers:Or,usageWeights:{input:.003,cacheRead:3e-4,cacheWrite:.003,output:.015,fastMultiplier:1.5}}],jr=`gpt-5.6-sol`,Mr=Pr(jr).defaultReasoningEffort,Nr=`standard`;function Pr(e){let t=Ar.find(t=>t.id===e);if(!t)throw Error(`Unsupported model: ${e}`);return t}function Fr(e){return e}function Ir(e,t){return e.models.find(e=>e.id===t)}function Lr(e,t,n){return(e.tierAllowedModels[t]??[]).includes(n)}function Rr(e,t,n){return Lr(e,t,n)?n:e.tierAllowedModels[t]?.[0]??e.defaultModelId}function zr(e,t,n){return(e.tierAllowedServiceTiers[t]??[]).includes(n)}function Br(e,t,n){return n.serviceTiers.filter(n=>zr(e,t,n))}function Vr(e,t,n){return n.serviceTiers.map(n=>{let r={id:n,label:Kr(n)};return zr(e,t,n)?r:{...r,locked:!0,lockTooltip:e.serviceTierLockUpgradeMessage}})}function Hr(e,t){let n=[],r=[];for(let i of e.models){let a={id:i.id,label:i.label,provider:i.provider};Lr(e,t,i.id)?n.push(a):r.push({...a,locked:!0,lockTooltip:e.modelLockUpgradeMessage})}return[...n,...r]}var Ur={none:`None`,low:`Low`,medium:`Medium`,high:`High`,xhigh:`Extra High`,max:`Max`},Wr={standard:`Standard`,fast:`Fast`};function Gr(e){return Ur[e]??e}function Kr(e){return Wr[e]??e}var qr=i(`<span class="text-muted-foreground ml-auto text-xs">Default</span>`),Jr=i(`<button type="button" class="focus-visible:ring-ring/60 text-foreground hover:bg-hover-fill flex w-full items-center gap-3 rounded-xl px-3 py-2 text-left text-sm outline-none focus-visible:ring-2"><!> <span> </span> <!></button>`),Yr=i(`<span class="text-muted-foreground shrink-0" aria-hidden="true"><!></span>`),Xr=i(`<button type="button"><!> <!> <span> </span> <!></button>`),Zr=i(`<div class="bg-popover/96 absolute bottom-[calc(100%+0.75rem)] left-0 z-50 min-w-[15rem] rounded-[18px] border border-[var(--hairline)] p-2 shadow-[var(--composer-shadow)] backdrop-blur-xl" role="dialog" aria-label="Reasoning and service tier"><p class="text-muted-foreground px-3 pt-1 pb-1.5 text-[11px] font-medium">Reasoning</p> <div class="space-y-0.5"></div> <div class="mx-2 my-2 h-px bg-[var(--hairline)]"></div> <p class="text-muted-foreground px-3 pb-1.5 text-[11px] font-medium">Service tier</p> <div class="space-y-0.5"></div></div>`),Qr=i(`<div><button type="button" class="focus-visible:ring-ring/60 text-muted-foreground hover:bg-hover-fill inline-flex h-9 shrink-0 items-center gap-1 rounded-lg px-2 text-[15px] transition outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50" aria-haspopup="dialog" aria-label="Select reasoning effort and service tier"><span> </span> <!></button> <!></div> <!>`,1);function $r(e,t){E(t,!0);let i=j(t,`reasoningEffort`,31,()=>u(Mr)),a=j(t,`serviceTier`,31,()=>u(Nr)),o=j(t,`disabled`,3,!1),c=j(t,`className`,3,``),d=C(()=>t.serviceTierOptions?t.serviceTierOptions:t.model.serviceTiers.map(e=>({id:e,label:Kr(e)}))),m=C(()=>p(d).filter(e=>!e.locked).map(e=>e.id)),h=x(!1),g=x(null),_=x(null),S=or();function w(e){i(e)}function T(e,t){let n=p(d).find(t=>t.id===e);if(n){if(n.locked){t&&n.lockTooltip&&S.showLockTooltip(t,n.lockTooltip,!0);return}a(e)}}n(()=>{t.model.reasoningEfforts.includes(i())||i(t.model.defaultReasoningEffort),p(m).includes(a())||a(p(m)[0]??`standard`)}),n(()=>{if(!p(h)){S.hideLockTooltip();return}return sr({getRoot:()=>p(g),onOutside:()=>{l(h,!1)},onEscape:()=>{l(h,!1),p(_)?.focus()}})}),n(()=>{o()&&l(h,!1)});var D=Qr(),ee=b(D),te=y(ee),A=y(te),ne=y(A);k(A);var re=s(A,2);{let e=C(()=>G(`text-muted-foreground size-3 shrink-0 transition-transform`,p(h)&&`rotate-180`));ht(re,{get class(){return p(e)}})}k(te),le(te,e=>l(_,e),()=>p(_));var ie=s(te,2),ae=e=>{var n=Zr(),o=s(y(n),2);ue(o,20,()=>t.model.reasoningEfforts,e=>e,(e,n)=>{var a=Jr(),o=y(a);{let e=C(()=>G(`size-4 shrink-0 transition-opacity`,n===i()?`opacity-100`:`opacity-0`));pt(o,{get class(){return p(e)}})}var c=s(o,2),l=y(c,!0);k(c);var u=s(c,2),d=e=>{v(e,qr())};r(u,e=>{n===t.model.defaultReasoningEffort&&e(d)}),k(a),U(e=>{O(a,`aria-pressed`,n===i()),V(l,e)},[()=>Gr(n)]),N(`click`,a,()=>w(n)),v(e,a)}),k(o);var c=s(o,6);ue(c,21,()=>p(d),e=>e.id,(e,t)=>{let n=C(()=>!!p(t).locked);var i=Xr(),o=y(i),c=e=>{var t=Yr();$t(y(t),{class:`size-3.5`}),k(t),v(e,t)},l=e=>{{let n=C(()=>G(`size-4 shrink-0 transition-opacity`,p(t).id===a()?`opacity-100`:`opacity-0`));pt(e,{get class(){return p(n)}})}};r(o,e=>{p(n)?e(c):e(l,-1)});var u=s(o,2),d=e=>{Pn(e,{class:`size-3.5 shrink-0 text-amber-400`})};r(u,e=>{p(t).id===`fast`&&e(d)});var h=s(u,2),g=y(h,!0);k(h);var _=s(h,2),b=e=>{v(e,qr())};r(_,e=>{!p(n)&&p(t).id===p(m)[0]&&e(b)}),k(i),U((e,r)=>{I(i,1,e),O(i,`aria-pressed`,!p(n)&&p(t).id===a()),O(i,`aria-disabled`,p(n)),O(i,`aria-label`,p(n)&&p(t).lockTooltip?`${p(t).label}. ${p(t).lockTooltip}`:void 0),I(h,1,r),V(g,p(t).label)},[()=>P(G(`focus-visible:ring-ring/60 flex w-full items-center gap-3 rounded-xl px-3 py-2 text-left text-sm outline-none focus-visible:ring-2`,p(n)?`cursor-not-allowed opacity-45`:`text-foreground hover:bg-hover-fill`)),()=>P(G(p(n)&&`text-muted-foreground`))]),f(`mouseenter`,i,e=>{p(n)&&p(t).lockTooltip&&S.showLockTooltip(e,p(t).lockTooltip)}),f(`mouseleave`,i,()=>S.hideLockTooltip()),f(`focus`,i,e=>{p(n)&&p(t).lockTooltip&&S.showLockTooltip(e,p(t).lockTooltip)}),f(`blur`,i,()=>S.hideLockTooltip()),N(`click`,i,e=>T(p(t).id,e)),v(e,i)}),k(c),k(n),v(e,n)};r(ie,e=>{p(h)&&e(ae)}),k(ee),le(ee,e=>l(g,e),()=>p(g)),lr(s(ee,2),{get tooltip(){return S.lockTooltip}}),U((e,t,n)=>{I(ee,1,e),O(te,`aria-expanded`,p(h)),te.disabled=o(),V(ne,`${t??``} · ${n??``}`)},[()=>P(G(`relative`,c())),()=>Gr(i()),()=>Kr(a())]),N(`click`,te,()=>{l(h,!p(h))}),v(e,D),M()}t([`click`]);function ei(e){return e.key===`Enter`&&!e.shiftKey&&!e.isComposing}var ti=/(^|\s)\$([a-z0-9-]*)$/i;function ni(e,t){if(t<0||t>e.length)return null;let n=e.slice(0,t).match(ti);return!n||n.index===void 0?null:{query:n[2].toLowerCase(),tokenStart:n.index+n[1].length}}function ri(e,t){return ni(e,t)?.query??null}function ii(e,t){let n=t.toLowerCase(),r=[],i=[];for(let t of e){let e=t.name.toLowerCase();e.startsWith(n)?r.push(t):n.length>0&&e.includes(n)&&i.push(t)}return r.sort((e,t)=>e.name.localeCompare(t.name)),i.sort((e,t)=>e.name.localeCompare(t.name)),[...r,...i]}function ai(e,t,n){let r=ni(e,t);if(!r)return null;let i=t;for(;i<e.length&&/[a-z0-9-]/i.test(e[i]??``);)i+=1;e[i]===` `&&(i+=1);let a=`$${n} `;return{text:`${e.slice(0,r.tokenStart)}${a}${e.slice(i)}`,caret:r.tokenStart+a.length}}var oi=`agent_decide`;function si(e){return!!e.selectedOptionId?.trim()||!!e.text.trim()}function ci(e){return e!=null&&!Array.isArray(e)&&typeof e==`object`}var li=X.union(X.string(),X.number(),X.boolean(),X.null()),ui=8;function di(e){return e===0?li:X.union(li,X.array(di(e-1)),X.record(X.string(),di(e-1)))}var fi=di(ui),pi=[`free`,`pro`,`admin`],mi={free:`Free`,pro:`Pro`,admin:`Admin`},hi={modelUsage:{weekly:5e3,monthly:15e3},webTools:{weekly:500,monthly:1500}};hi.modelUsage.weekly*5,hi.modelUsage.monthly*5,hi.webTools.weekly*5,hi.webTools.monthly*5;function gi(e){return e.map(e=>X.literal(e))}X.union(...gi(Dr)),X.union(...gi(Or)),X.union(...gi(kr)),X.union(...gi(pi)),X.union(X.literal(`active`),X.literal(`on_hold`),X.literal(`cancelled`),X.literal(`expired`),X.literal(`failed`));var _i=X.object({path:X.string(),directory:X.string(),contents:X.string(),truncated:X.boolean()}),vi=X.object({patch:X.string()}),yi=X.object({cmd:X.string(),workdir:X.optional(X.string()),shell:X.optional(X.string()),timeoutMs:X.optional(X.number()),yieldTimeMs:X.optional(X.number()),maxOutputChars:X.optional(X.number())}),bi=X.object({url:X.string()}),xi=X.object({query:X.string(),numResults:X.optional(X.number())}),Si=X.object({sessionId:X.string(),chars:X.optional(X.string()),terminate:X.optional(X.boolean()),yieldTimeMs:X.optional(X.number())}),Ci=X.union(X.literal(`markdown`),X.literal(`html`),X.literal(`react`)),wi=X.object({title:X.string(),contentType:Ci,content:X.string()}),Ti=X.object({artifactId:X.string(),content:X.string()}),Ei=X.object({name:X.string()}),Di=X.object({id:X.string(),label:X.string()}),Oi=X.object({question:X.string(),options:X.array(Di),yieldTimeMs:X.optional(X.number()),timeoutMs:X.optional(X.number())}),ki=X.object({questionId:X.id(`agentQuestions`),yieldTimeMs:X.optional(X.number())});X.union(X.object({}),vi,Oi,ki,yi,Ei,bi,xi,Si,wi,Ti);var Ai=X.object({changes:X.array(X.object({path:X.string(),operation:X.union(X.literal(`created`),X.literal(`updated`),X.literal(`deleted`),X.literal(`renamed`),X.literal(`copied`))}))}),ji=X.object({command:X.string(),cwd:X.string(),sessionId:X.optional(X.string()),exitCode:X.optional(X.number()),success:X.boolean(),running:X.boolean(),timedOut:X.boolean(),stdout:X.string(),stderr:X.string(),output:X.string(),truncated:X.boolean(),error:X.optional(X.string())}),Mi=X.object({url:X.string(),markdown:X.string(),truncated:X.boolean()}),Ni=X.object({results:X.array(X.object({title:X.optional(X.string()),url:X.string(),publishedDate:X.optional(X.string()),author:X.optional(X.string()),text:X.optional(X.string())}))}),Pi=X.object({name:X.string(),description:X.string(),content:X.string(),dir:X.optional(X.string()),truncated:X.optional(X.boolean())}),Fi=X.object({optionId:X.optional(X.string()),optionLabel:X.optional(X.string()),text:X.optional(X.string())}),Ii=X.object({questionId:X.id(`agentQuestions`),question:X.string(),options:X.array(Di),pending:X.boolean(),timedOut:X.boolean(),answer:X.optional(Fi)}),Li=X.object({artifactId:X.string(),version:X.number(),title:X.optional(X.string()),contentType:X.optional(Ci)});X.union(X.string(),X.array(_i),Ai,Ii,ji,Pi,Mi,Ni,Li),X.union(X.literal(`disconnected`),X.literal(`connected`)),X.union(X.literal(`queued`),X.literal(`running`),X.literal(`awaiting_executor`),X.literal(`completed`),X.literal(`failed`),X.literal(`cancelled`));var Ri=[`cancelled`,`completed`,`failed`];X.union(...gi(Ri));function zi(e){return Ri.includes(e)}X.union(X.literal(`apply_patch`),X.literal(`ask_question`),X.literal(`await_question`),X.literal(`exec_command`),X.literal(`get_workspace_instructions`),X.literal(`read_skill`),X.literal(`scrape_url`),X.literal(`web_search`),X.literal(`write_stdin`),X.literal(`create_artifact`),X.literal(`update_artifact`)),X.union(X.literal(`pending`),X.literal(`answered`),X.literal(`timedOut`),X.literal(`cancelled`)),X.union(X.literal(`pending`),X.literal(`claimed`),X.literal(`completed`),X.literal(`failed`),X.literal(`cancelled`)),X.union(X.literal(`prompt`),X.literal(`response`));var Bi=[`image/jpeg`,`image/png`,`image/gif`,`image/webp`],Vi=`10 MiB`,Hi=X.object({type:X.literal(`text`),id:X.string(),text:X.string(),turnId:X.optional(X.string()),providerMetadata:X.optional(fi)}),Ui=X.object({type:X.literal(`reasoning`),id:X.string(),text:X.string(),turnId:X.optional(X.string()),providerMetadata:X.optional(fi)}),Wi=X.object({type:X.literal(`tool-call`),partId:X.optional(X.string()),callId:X.string(),name:X.string(),input:fi,turnId:X.optional(X.string()),providerMetadata:X.optional(fi)}),Gi=X.union(...gi([`cancelled`,`failed`]));X.object({error:X.string(),status:Gi});var Ki=X.object({type:X.literal(`tool-result`),callId:X.string(),name:X.optional(X.string()),output:fi});X.union(Hi,Ui,Wi,Ki);var qi=X.union(X.literal(`system`),X.literal(`user`),X.literal(`assistant`)),Ji=X.union(X.object({type:X.literal(`text`),text:X.string()}),X.object({type:X.literal(`image`),imageJson:X.string()})),Yi=X.union(X.object({type:X.literal(`text`),text:X.string(),additionalParamsJson:X.optional(X.string())}),X.object({type:X.literal(`reasoning`),id:X.optional(X.string()),blocksJson:X.string()}),X.object({type:X.literal(`toolCall`),id:X.string(),callId:X.optional(X.string()),name:X.string(),argumentsJson:X.string(),signature:X.optional(X.string()),additionalParamsJson:X.optional(X.string())}),X.object({type:X.literal(`toolResult`),id:X.string(),callId:X.optional(X.string()),items:X.array(Ji)}),X.object({type:X.literal(`image`),imageJson:X.string()}),X.object({type:X.literal(`audio`),audioJson:X.string()}),X.object({type:X.literal(`video`),videoJson:X.string()}),X.object({type:X.literal(`document`),documentJson:X.string()}));X.object({role:qi,assistantId:X.optional(X.string()),contents:X.array(Yi)});function Xi(e,t){let n=e??[],r=t??[];return n.length===r.length&&n.every((e,t)=>e===r[t])}var Zi=Bi;function Qi(e){return Zi.includes(e)}function $i(e,t){return e>=4?`You can attach up to 4 images.`:Qi(t.type)?t.size>10485760?`${t.name||`This image`} is larger than ${Vi}.`:null:`${t.name||`This file`} is not a supported image. Use JPEG, PNG, GIF, or WebP.`}var ea=i(`<div class="text-muted-foreground mb-3 flex items-center gap-2 px-4 text-[11px]"><span class="inline-flex items-center gap-0.75"><span class="bg-foreground/28 size-1 animate-pulse rounded-full"></span> <span class="bg-foreground/28 size-1 animate-pulse rounded-full [animation-delay:200ms]"></span> <span class="bg-foreground/28 size-1 animate-pulse rounded-full [animation-delay:400ms]"></span></span> <span> </span></div>`),ta=i(`<div class="text-muted-foreground mb-3 flex items-center gap-2 px-4 text-[11px]" role="status" aria-live="polite"><span class="bg-foreground/28 size-1.5 animate-pulse rounded-full"></span> <span> </span></div>`),na=i(`<li><button type="button"> </button></li>`),ra=i(`<div class="mb-3" role="group" aria-label="Agent question"><p class="text-foreground text-[14px] leading-6 font-medium"> </p> <ul class="mt-2 flex flex-col gap-1.5" aria-label="Answer options"></ul></div>`),ia=i(`<span class="absolute inset-0 flex items-center justify-center" role="status"><span class="border-border border-t-foreground/80 size-3.5 animate-spin rounded-full border-2"></span></span>`),aa=i(`<span class="text-destructive absolute inset-x-0 bottom-0 bg-rose-950/80 px-1 py-0.5 text-center text-[9px] leading-3" role="alert">Failed</span>`),oa=i(`<li><img/> <!> <button type="button" class="bg-foreground/70 text-background hover:bg-foreground/90 absolute top-1 right-1 flex size-4.5 cursor-pointer items-center justify-center rounded-full transition disabled:cursor-not-allowed disabled:opacity-40"><!></button></li>`),sa=i(`<ul class="mb-3 flex flex-wrap items-center gap-2" aria-label="Attached images"></ul>`),ca=i(`<p class="text-muted-foreground px-3 py-2 text-sm">Loading skills…</p>`),la=i(`<div class="flex items-center justify-between gap-3 px-3 py-2"><p class="text-muted-foreground text-sm">Couldn’t load skills</p> <button type="button" class="text-muted-foreground hover:text-foreground text-sm underline-offset-2 hover:underline">Retry</button></div>`),ua=i(`<p class="text-muted-foreground px-3 py-2 text-sm">No matching skills</p>`),da=i(`<button type="button" role="option"><span class="text-sm font-medium"> </span> <span class="text-muted-foreground line-clamp-2 text-[12px]"> </span></button>`),fa=i(`<div class="border-border bg-popover absolute inset-x-0 bottom-full z-30 mb-2 max-h-56 overflow-y-auto rounded-xl border py-1 shadow-2xl" id="composer-skills-listbox" aria-label="Available skills"><!></div>`),pa=i(`<button type="button" class="flex h-10 w-10 cursor-pointer items-center justify-center rounded-full bg-rose-500/90 text-white transition-all duration-150 hover:scale-105 hover:bg-rose-500 disabled:pointer-events-none disabled:opacity-60 disabled:hover:scale-100" aria-label="Stop generation" title="Stop"><!></button>`),ma=i(`<button type="button" class="bg-primary/90 text-primary-foreground hover:bg-primary flex h-10 w-10 items-center justify-center rounded-full transition-all duration-150 hover:scale-105 enabled:cursor-pointer disabled:pointer-events-none disabled:opacity-30 disabled:hover:scale-100"><!></button>`),ha=i(`<div class="bg-tooltip text-tooltip-foreground ring-border pointer-events-none fixed z-100 -translate-x-1/2 -translate-y-full rounded-md px-2.5 py-1.5 text-[12px] leading-4 whitespace-nowrap shadow-lg ring-1" role="tooltip"> </div>`),ga=i(`<footer class="shrink-0 px-6 py-4"><div class="mx-auto max-w-336"><!> <div><div><div class="relative flex min-h-33 flex-col px-4 pt-4 pb-2.5"><!> <!> <div class="relative min-h-0 flex-1"><!> <textarea rows="1" class="text-foreground placeholder:text-muted-foreground field-sizing-content max-h-40 min-h-17 w-full resize-none overflow-y-auto border-0 bg-transparent px-0 py-0 text-[14px] leading-6 outline-none" role="combobox" aria-autocomplete="list" aria-haspopup="listbox" autocomplete="off"></textarea></div> <div class="flex min-w-0 flex-nowrap items-center justify-between gap-3 overflow-visible px-0 pt-2.5 pb-0"><div class="-m-1 flex min-w-0 flex-1 items-center gap-1 overflow-visible p-1"><input type="file" class="hidden" multiple=""/> <button type="button" class="text-muted-foreground enabled:hover:text-foreground flex h-9 w-9 shrink-0 items-center justify-center rounded-lg transition enabled:cursor-pointer disabled:opacity-40"><!></button> <div class="bg-hover-fill-strong mx-1 hidden h-4 w-px shrink-0 sm:block"></div> <!> <div class="bg-hover-fill-strong mx-1 hidden h-4 w-px shrink-0 sm:block"></div> <!></div> <div class="flex shrink-0 flex-nowrap items-center justify-end gap-2.5"><div class="group/context relative"><button type="button" class="focus-visible:ring-ring/60 relative flex size-8 cursor-help items-center justify-center rounded-full focus-visible:ring-2 focus-visible:outline-none" aria-describedby="context-window-details"><span class="bg-muted size-5.5 rounded-full"></span></button> <div id="context-window-details" class="border-border bg-popover invisible absolute right-0 bottom-full z-50 mb-3 w-76 translate-y-1 rounded-xl border p-4 opacity-0 shadow-(--composer-shadow) transition duration-150 group-focus-within/context:visible group-focus-within/context:translate-y-0 group-focus-within/context:opacity-100 group-hover/context:visible group-hover/context:translate-y-0 group-hover/context:opacity-100" role="tooltip"><div class="flex items-center justify-between gap-4 text-[13px]"><span class="text-foreground font-medium">Context window</span> <span class="text-muted-foreground"> </span></div> <div class="bg-hover-fill mt-3 h-1.5 overflow-hidden rounded-full"><div class="bg-accent h-full rounded-full transition-[width] duration-300"></div></div> <div class="text-muted-foreground mt-3 flex items-center justify-between text-[12px]"><span>Total processed</span> <span> </span></div> <p class="text-muted-foreground mt-4 text-[12px] leading-5"> </p></div></div> <!> <!></div></div></div></div></div></div></footer> <!>`,1);function _a(e,t){E(t,!0);let i=j(t,`prompt`,15,``),o=j(t,`selectedModel`,31,()=>u(jr)),c=j(t,`selectedReasoningEffort`,31,()=>u(Mr)),d=j(t,`selectedServiceTier`,31,()=>u(Nr)),m=j(t,`pendingQuestion`,3,null),g=j(t,`selectedQuestionOptionId`,15,null),_=j(t,`projectSkills`,3,null),S=Te(),w=Se(W.billing.getMySubscription,()=>S.isAuthenticated&&!S.isLoading?{}:`skip`),T=C(()=>w.data?.tier),D=C(()=>!!w.error),te=C(()=>t.modelCatalog?Hr(t.modelCatalog,p(T)??`free`):[]),re=C(()=>t.modelCatalog?Ir(t.modelCatalog,o()):void 0),ie=C(()=>t.modelCatalog&&p(re)?Vr(t.modelCatalog,p(T)??`free`,p(re)):void 0),ae=C(()=>p(re)!==void 0&&(p(D)||p(T)!==void 0&&t.modelCatalog!==void 0&&Lr(t.modelCatalog,p(T),o()))),oe=x(null),F=x(null),se=x(null),ce=x(u([])),L=x(`idle`),R=x(!1),z=x(0),B=x(0),H=0,de,fe=u([]),pe=C(()=>m()!=null),me=C(()=>t.isRunning&&!p(pe)||t.isSubmitting),he=C(()=>!!i().trim()||t.attachments.length>0),ge=C(()=>si({selectedOptionId:g(),text:i()})),_e=C(()=>p(pe)?p(ge):p(he)),ve=C(()=>t.attachments.some(e=>e.status!==`ready`)),ye=C(()=>t.attachments.length<4&&!p(me)&&!p(pe)),be=x(null);n(()=>{let e=m()?.questionId??null;e!==p(be)&&(l(be,e,!0),g(null),i().trim()&&i(``))});let xe=`Attach images (up to 4)`,Ce=typeof CSS<`u`&&CSS.supports(`field-sizing`,`content`),we=C(()=>t.contextUsage.contextWindowTokens>0?Math.min(100,Math.round(t.contextUsage.inputTokens/t.contextUsage.contextWindowTokens*100)):0),G=C(()=>t.contextUsage.contextWindowTokens>0?Math.round(t.contextUsage.autoCompactTokenLimit/t.contextUsage.contextWindowTokens*100):0),Ee=C(()=>ri(i(),p(B))),De=C(()=>p(Ee)!==null&&!p(R)&&!p(pe)),Oe=C(()=>p(Ee)===null?[]:ii(p(ce),p(Ee))),ke=C(()=>p(De)&&p(Oe).length>0?`composer-skill-option-${p(z)}`:void 0);function Ae(){l(B,p(oe)?.selectionStart??i().length,!0)}function je(){l(ce,[],!0),l(L,`idle`),l(R,!1),l(z,0),H+=1}async function Me(e=!1){if(p(L)===`loading`||(p(L)===`ready`||p(L)===`error`)&&!e)return;if(!_()?.load){l(ce,[],!0),l(L,`ready`);return}let t=++H;l(L,`loading`);try{let e=await _().load();if(t!==H)return;l(ce,e,!0),l(L,`ready`)}catch{if(t!==H)return;l(ce,[],!0),l(L,`error`)}}function Ne(e){let t=ai(i(),p(B),e.name);t&&(i(t.text),l(B,t.caret,!0),l(R,!0),queueMicrotask(()=>{p(oe)&&(p(oe).focus(),p(oe).setSelectionRange(t.caret,t.caret),Ie())}))}function Pe(e){let n=e.currentTarget,r=Array.from(n.files??[]);n.value=``,r.length>0&&t.onAttachFiles(r)}function K(e){let n=Array.from(e.clipboardData?.files??[]).filter(e=>e.type.startsWith(`image/`));n.length===0||t.isRunning||t.isSubmitting||p(pe)||(e.preventDefault(),t.onAttachFiles(n))}function Fe(e){let t=e.currentTarget;if(!(t instanceof HTMLButtonElement)||t.disabled)return;let n=t.getBoundingClientRect();l(se,{top:n.top-8,left:n.left+n.width/2},!0)}function q(){l(se,null)}function Ie(){if(!p(oe)||Ce)return;let e=p(oe);e.style.height=`68px`;let t=Math.min(Math.max(e.scrollHeight,68),160);e.style.height=`${t}px`,e.style.overflowY=e.scrollHeight>t?`auto`:`hidden`}function Le(e){if(p(De)){if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(e.preventDefault(),p(Oe).length===0)return;let t=e.key===`ArrowDown`?1:-1;l(z,(p(z)+t+p(Oe).length)%p(Oe).length);return}if(e.key===`Escape`){e.preventDefault(),l(R,!0);return}if((e.key===`Enter`||e.key===`Tab`)&&!e.shiftKey){e.preventDefault();let t=p(Oe)[p(z)];t&&Ne(t);return}}!t.canSend||!p(pe)&&!p(ae)||t.isSubmitting||p(me)||!p(_e)||!p(pe)&&p(ve)||ei(e)&&(e.preventDefault(),t.onSubmit())}function Re(e){g(g()===e?null:e)}function ze(e){if(!t.modelCatalog)return;let n=Ir(t.modelCatalog,e);n&&c(n.defaultReasoningEffort)}function Be(e){return e>=1e6?`${(e/1e6).toFixed(e>=1e7?0:1).replace(/\.0$/,``)}m`:e>=1e3?`${Math.round(e/1e3)}k`:String(e)}n(()=>{t.modelCatalog&&(!o()||!Ir(t.modelCatalog,o()))&&(o(t.modelCatalog.defaultModelId),c(t.modelCatalog.defaultReasoningEffort),d(t.modelCatalog.defaultServiceTier))}),n(()=>{if(!t.modelCatalog||!p(T))return;let e=Rr(t.modelCatalog,p(T),o());e!==o()&&(o(e),c(Ir(t.modelCatalog,e)?.defaultReasoningEffort??t.modelCatalog.defaultReasoningEffort));let n=Ir(t.modelCatalog,e);if(!n)return;let r=Br(t.modelCatalog,p(T),n);r.includes(d())||d(r[0]??t.modelCatalog.defaultServiceTier)}),n(()=>{i(),Ie()}),n(()=>{let e=_()?.workspacePath??null;if(de!==e&&(de=e,je()),p(Ee)===null){l(R,!1);return}p(R)||Me()}),n(()=>{p(Oe),l(z,0)}),n(()=>{!p(De)||p(Oe).length===0||fe[p(z)]?.scrollIntoView({block:`nearest`})});var Ve=ga(),He=b(Ve),Ue=y(He),J=y(Ue),We=e=>{var n=ea(),r=s(y(n),2),i=y(r);k(r),k(n),U(()=>V(i,`Working for ${t.elapsedLabel??``}`)),v(e,n)},Y=e=>{var n=ta(),r=s(y(n),2),i=y(r,!0);k(r),k(n),U(()=>V(i,t.isStarting?`Starting agent…`:`Sending request…`)),v(e,n)};r(J,e=>{t.elapsedLabel?e(We):t.isSubmitting&&e(Y,1)});var Ge=s(J,2);I(Ge,1,P(`composer-shell mx-auto w-full max-w-[48rem] rounded-[28px] p-px transition-colors duration-200`));var Ke=y(Ge);I(Ke,1,P(`composer-inner rounded-[27px] border border-[var(--hairline)] transition-colors duration-200`));var qe=y(Ke),X=y(qe),Je=e=>{var t=ra(),n=y(t),r=y(n,!0);k(n);var i=s(n,2);ue(i,21,()=>m().options,e=>e.id,(e,t)=>{let n=C(()=>p(t).id===oi),r=C(()=>g()===p(t).id);var i=na(),a=y(i),o=y(a,!0);k(a),k(i),U(()=>{I(a,1,`w-full rounded-lg border px-3 py-2 text-left text-[13px] leading-5 transition ${p(r)?`border-foreground/40 bg-hover-fill-strong text-foreground`:p(n)?`border-border/70 text-muted-foreground/80 hover:text-muted-foreground hover:bg-hover-fill`:`border-border text-muted-foreground hover:text-foreground hover:bg-hover-fill`}`),O(a,`aria-pressed`,p(r)),V(o,p(t).label)}),N(`click`,a,()=>{Re(p(t).id)}),v(e,i)}),k(i),k(t),U(()=>V(r,m().question)),v(e,t)};r(X,e=>{m()&&e(Je)});var Ye=s(X,2),Xe=e=>{var n=sa();ue(n,21,()=>t.attachments,e=>e.localId,(e,n)=>{var i=oa(),a=y(i),o=s(a,2),c=e=>{var t=ia();U(()=>O(t,`aria-label`,`Uploading ${p(n).name??``}`)),v(e,t)},l=e=>{v(e,aa())};r(o,e=>{p(n).status===`uploading`?e(c):p(n).status===`error`&&e(l,1)});var u=s(o,2);Mn(y(u),{class:`size-3`,"aria-hidden":`true`}),k(u),k(i),U(()=>{I(i,1,`group relative size-14 overflow-hidden rounded-xl border ${p(n).status===`error`?`border-rose-500/60`:`border-border`}`),O(i,`title`,p(n).error??p(n).name),O(a,`src`,p(n).previewUrl),O(a,`alt`,p(n).name),I(a,1,`size-full object-cover ${p(n).status===`uploading`?`opacity-50`:``}`),O(u,`aria-label`,`Remove ${p(n).name??``}`),u.disabled=p(me)}),N(`click`,u,()=>t.onRemoveAttachment(p(n).localId)),v(e,i)}),k(n),v(e,n)};r(Ye,e=>{t.attachments.length>0&&!p(pe)&&e(Xe)});var Ze=s(Ye,2),Qe=y(Ze),$e=e=>{var t=fa(),n=y(t),i=e=>{v(e,ca())},o=e=>{var t=la(),n=s(y(t),2);k(t),N(`click`,n,()=>{Me(!0)}),v(e,t)},c=e=>{v(e,ua())},u=e=>{var t=a();ue(b(t),19,()=>p(Oe),e=>e.name,(e,t,n)=>{var r=da(),i=y(r),a=y(i);k(i);var o=s(i,2),c=y(o,!0);k(o),k(r),le(r,(e,t)=>fe[t]=e,e=>fe?.[e],()=>[p(n)]),U(()=>{O(r,`id`,`composer-skill-option-${p(n)??``}`),I(r,1,`flex w-full flex-col gap-0.5 px-3 py-2 text-left transition ${p(z)===p(n)?`text-foreground bg-hover-fill-strong`:`text-muted-foreground hover:text-foreground hover:bg-hover-fill`}`),O(r,`aria-selected`,p(z)===p(n)),V(a,`$${p(t).name??``}`),V(c,p(t).description)}),f(`pointerenter`,r,()=>{l(z,p(n),!0)}),N(`click`,r,()=>{Ne(p(t))}),v(e,r)}),v(e,t)};r(n,e=>{p(L)===`loading`?e(i):p(L)===`error`?e(o,1):p(Oe).length===0?e(c,2):e(u,-1)}),k(t),U(()=>O(t,`role`,p(L)===`ready`&&p(Oe).length>0?`listbox`:`status`)),v(e,t)};r(Qe,e=>{p(De)&&e($e)});var Z=s(Qe,2);h(Z),le(Z,e=>l(oe,e),()=>p(oe)),k(Ze);var et=s(Ze,2),tt=y(et),nt=y(tt);le(nt,e=>l(F,e),()=>p(F));var rt=s(nt,2);Yt(y(rt),{class:`size-4`,"aria-hidden":`true`}),k(rt);var it=s(rt,4);{let e=(e,t=ne)=>{Er(e,{get provider(){return t().provider},className:`size-4 shrink-0`})},n=C(()=>p(me)||p(pe)||t.modelCatalog===void 0);vr(it,{get options(){return p(te)},ariaLabel:`Select model`,menuTitle:`Model`,get disabled(){return p(n)},searchable:!0,onValueChange:ze,className:`z-20 shrink-0`,triggerClassName:`h-9 border-0 bg-transparent px-2 text-[15px] text-foreground shadow-none hover:bg-transparent focus-visible:ring-0`,get value(){return o()},set value(e){o(e)},optionIcon:e,$$slots:{optionIcon:!0}})}var ot=s(it,4),st=e=>{{let t=C(()=>p(me)||p(pe));$r(e,{get model(){return p(re)},get serviceTierOptions(){return p(ie)},get disabled(){return p(t)},className:`z-20 shrink-0`,get reasoningEffort(){return c()},set reasoningEffort(e){c(e)},get serviceTier(){return d()},set serviceTier(e){d(e)}})}};r(ot,e=>{p(re)&&e(st)}),k(tt);var ct=s(tt,2),lt=y(ct),ut=y(lt),dt=s(ut,2),ft=y(dt),pt=s(y(ft),2),mt=y(pt);k(pt),k(ft);var ht=s(ft,2),gt=y(ht);k(ht);var _t=s(ht,2),vt=s(y(_t),2),yt=y(vt,!0);k(vt),k(_t);var bt=s(_t,2),xt=y(bt);k(bt),k(dt),k(lt);var St=s(lt,2),Ct=e=>{var n=pa();Sn(y(n),{class:`size-3.5 fill-current`}),k(n),N(`click`,n,function(...e){t.onCancel?.apply(this,e)}),v(e,n)};r(St,e=>{t.isRunning&&e(Ct)});var wt=s(St,2),Tt=e=>{var n=ma();at(y(n),{class:`size-4`}),k(n),U(()=>{n.disabled=!t.canSend||!p(pe)&&!p(ae)||t.isSubmitting||!p(_e)||!p(pe)&&p(ve),O(n,`aria-label`,p(pe)?`Submit answer`:`Send message`)}),N(`click`,n,function(...e){t.onSubmit?.apply(this,e)}),v(e,n)};r(wt,e=>{(p(pe)||!t.isRunning)&&e(Tt)}),k(ct),k(et),k(qe),k(Ke),k(Ge),k(Ue),k(He);var Et=s(He,2),Dt=e=>{var t=ha(),n=y(t,!0);k(t),U(()=>{A(t,`top: ${p(se).top}px; left: ${p(se).left}px;`),V(n,xe)}),v(e,t)};r(Et,e=>{p(se)&&e(Dt)}),U((e,t,n,r)=>{O(Z,`placeholder`,p(pe)?`Add detail, or type a custom answer`:`Ask anything, @tag files/directories, or use $ to show available skills`),Z.disabled=p(me),O(Z,`aria-expanded`,p(De)),O(Z,`aria-controls`,p(De)?`composer-skills-listbox`:void 0),O(Z,`aria-activedescendant`,p(ke)),O(nt,`accept`,e),O(rt,`aria-label`,xe),rt.disabled=!p(ye),O(ut,`aria-label`,`Context window ${p(we)}% full`),A(ut,`background: conic-gradient(var(--accent) ${p(we)*3.6}deg, var(--hover-fill-strong) 0deg);`),V(mt,`${p(we)??``}% · ${t??``}/${n??``}`),A(gt,`width: ${p(we)}%`),V(yt,r),V(xt,`Sprocket automatically compacts context at about ${p(G)??``}% so
2
2
  long-running work can continue.`)},[()=>Zi.join(`,`),()=>Be(t.contextUsage.inputTokens),()=>Be(t.contextUsage.contextWindowTokens),()=>Be(t.contextUsage.totalTokensProcessed)]),N(`keydown`,Z,Le),f(`paste`,Z,K),f(`focus`,Z,Ae),N(`input`,Z,()=>{Ae(),Ie()}),N(`keyup`,Z,Ae),N(`click`,Z,Ae),f(`select`,Z,Ae),ee(Z,i),N(`change`,nt,Pe),f(`mouseenter`,rt,Fe),f(`mouseleave`,rt,q),f(`focus`,rt,Fe),f(`blur`,rt,q),N(`click`,rt,()=>{q(),p(F)?.click()}),N(`keydown`,ut,e=>{e.key===`Escape`&&e.currentTarget.blur()}),v(e,Ve),M()}t([`click`,`keydown`,`input`,`keyup`,`change`]);var va=i(`<p class="text-foreground text-[15px]"> </p>`),ya=i(`<button type="button" class="text-muted-foreground hover:text-foreground block text-left text-sm transition"><span> </span></button>`),ba=i(`<div class="mt-3 space-y-1"><!> <!></div>`),xa=i(`<p class="text-muted-foreground mt-3 text-sm">You’re signed in to Sprocket.</p>`),Sa=i(`<p class="text-foreground mt-3 text-[15px]"> </p>`),Ca=i(`<p class="text-muted-foreground mt-3 text-sm">Couldn’t load your subscription right now.</p>`),wa=i(`<div class="bg-hover-fill mt-3.5 h-4 w-16 animate-pulse rounded" aria-hidden="true"></div>`),Ta=i(`<!> Sign Out`,1),Ea=i(`<section class="flex h-full min-h-0 flex-col overflow-hidden"><header class="flex h-12 shrink-0 items-center px-6"><h1 class="text-foreground text-[1rem] font-medium tracking-[-0.03em]">Account</h1></header> <div class="min-h-0 flex-1 overflow-y-auto px-6 py-8"><div class="max-w-xl space-y-10"><div><p class="text-muted-foreground font-mono text-[11px] tracking-[0.18em] uppercase">Profile</p> <!></div> <div><p class="text-muted-foreground font-mono text-[11px] tracking-[0.18em] uppercase">Spikonado Subscription Tier</p> <!></div> <div><p class="text-muted-foreground font-mono text-[11px] tracking-[0.18em] uppercase">Session</p> <p class="text-muted-foreground mt-2 text-sm leading-6">Sign out of this device. You’ll need to authenticate again to open your projects.</p> <div class="mt-4"><!></div></div></div></div></section>`);function Da(e,t){E(t,!0);let n=x(!1),i=Te(),a=Se(W.billing.getMySubscription,()=>i.isAuthenticated&&!i.isLoading?{}:`skip`),o=C(()=>[t.user?.firstName,t.user?.lastName].filter(Boolean).join(` `).trim()||null);var c=Ea(),u=s(y(c),2),d=y(u),f=y(d),m=s(y(f),2),h=e=>{var i=ba(),a=y(i),c=e=>{var t=va(),n=y(t,!0);k(t),U(()=>V(n,p(o))),v(e,t)};r(a,e=>{p(o)&&e(c)});var u=s(a,2),d=e=>{var r=ya(),i=y(r),a=y(i,!0);k(i),k(r),U(()=>{O(r,`aria-pressed`,p(n)),O(r,`aria-label`,p(n)?`Hide email address`:`Show email address`),I(i,1,P(p(n)?void 0:`blur-[5px] select-none`)),V(a,t.user.email)}),N(`click`,r,()=>{l(n,!p(n))}),v(e,r)};r(u,e=>{t.user?.email&&e(d)}),k(i),v(e,i)},g=e=>{v(e,xa())};r(m,e=>{p(o)||t.user?.email?e(h):e(g,-1)}),k(f);var _=s(f,2),S=s(y(_),2),w=e=>{var t=Sa(),n=y(t,!0);k(t),U(()=>V(n,mi[a.data.tier])),v(e,t)},T=e=>{v(e,Ca())},D=e=>{v(e,wa())};r(S,e=>{a.data?e(w):a.error?e(T,1):e(D,-1)}),k(_);var ee=s(_,2),te=s(y(ee),4);Un(y(te),{variant:`outline`,get onclick(){return t.onSignOut},children:(e,t)=>{var n=Ta();tn(b(n),{class:`mr-2 size-4`,"aria-hidden":`true`}),z(),v(e,n)},$$slots:{default:!0}}),k(te),k(ee),k(d),k(u),k(c),v(e,c),M()}t([`click`]);function Oa(e,t){return e.find(e=>e.repositoryKey===t)??null}function ka(e,t){return t?e.find(e=>e._id===t)??null:null}function Aa(e,t){return e.trim().length>0&&t.trim().length>0&&e!==t}function ja(e){return e.threadStatus!==`archived`}function Ma(e){return{_id:e,userId:``,repositoryKey:`unknown`,displayName:`Unknown project`,executorStatus:`disconnected`,lastSeenAt:0,localAttachmentAvailability:`unlinked`}}function Na(e,t){let n=Fa(t);return{project:e,threads:n,latestThreadAt:n.reduce((e,t)=>Math.max(e,t.lastMessageAt),0),activeThreadCount:Ia(n)}}function Pa(e,t){let n=new Map;for(let e of t.filter(ja)){let t=n.get(e.projectId);if(t){t.push(e);continue}n.set(e.projectId,[e])}let r=[];for(let t of e)r.push(Na(t,n.get(t._id)??[])),n.delete(t._id);for(let[e,t]of n)r.push(Na(Ma(e),t));return r.sort((e,t)=>{let n=e.latestThreadAt||e.project.lastSeenAt,r=t.latestThreadAt||t.project.lastSeenAt;return r===n?e.project.displayName.localeCompare(t.project.displayName):r-n})}function Fa(e){return[...e].sort((e,t)=>e.hasActiveRun===t.hasActiveRun?t.lastMessageAt-e.lastMessageAt:Number(t.hasActiveRun)-Number(e.hasActiveRun))}function Ia(e){return e.filter(e=>e.hasActiveRun).length}function La(e,t){return t?e.find(e=>e.threadId===t)??null:null}function Ra(e,t){return t&&(e?.threadId??e?._id)===t?e:null}function za(e){let{pendingCreatedThreadId:t,threads:n}=e;return!t||n.some(e=>e.threadId===t)?null:t}function Ba(e){return!e.threadId||e.threadId===e.pendingCreatedThreadId||e.hasLatestRunData}function Va(e,t){return!!(t&&e[t])}function Ha(e,t,n){return{...e,[t]:n}}function Ua(e,t,n){let r=e[t];if(!r||n!==void 0&&r.launchId!==n)return e;let i={...e};return delete i[t],i}function Wa(e,t,n){return!!(t&&(t!==e.previousRunId||n!==e.previousClaimExpiresAt))}function Ga(e,t,n,r){let i=e[t];return!i||!Wa(i,n,r)?e:Ua(e,t,i.launchId)}function Ka(e,t){let n=e;for(let e of t)n=Ga(n,e.threadId,e.latestRunId,e.latestRunClaimExpiresAt);return n}function qa(e,t,n,r,i,a){let o=e[t];return!o||o.launchId!==n||o.expiresAt>r?{pendingLaunches:e,shouldRecover:!1}:{pendingLaunches:Ua(e,t,n),shouldRecover:!Wa(o,i,a)}}function Ja(e){let{threads:t,currentThreadId:n,currentRepositoryKey:r,draftRepositoryKey:i,pendingCreatedThreadId:a=null}=e;return r&&i===r?null:n&&(t.some(e=>e.threadId===n)||a&&n===a)?n:t[0]?.threadId??null}var Ya=i(`<p class="text-muted-foreground max-w-xl text-sm leading-6">No archived threads.</p>`),Xa=i(`<li class="group flex items-center gap-3 py-2"><div class="min-w-0 flex-1"><p class="text-foreground truncate text-[14px]"> </p> <p class="text-muted-foreground truncate text-[12px]"> </p></div> <button type="button" class="text-muted-foreground hover:text-muted-foreground shrink-0 px-1 text-[12px] opacity-0 transition group-hover:opacity-100 focus-visible:opacity-100">Restore</button></li>`),Za=i(`<ul class="max-w-xl space-y-1"></ul>`),Qa=i(`<section class="flex h-full min-h-0 flex-col overflow-hidden"><header class="flex h-12 shrink-0 items-center px-6"><h1 class="text-foreground text-[1rem] font-medium tracking-[-0.03em]">Archived Threads</h1></header> <div class="min-h-0 flex-1 overflow-y-auto px-6 py-8"><p class="text-muted-foreground mb-6 max-w-xl text-sm leading-6">We may permanently delete archived threads from our database at any time.</p> <!></div></section>`);function $a(e,t){E(t,!0);let n=C(()=>[...t.threads].filter(e=>!ja(e)).sort((e,t)=>t.lastMessageAt-e.lastMessageAt));var i=Qa(),a=s(y(i),2),o=s(y(a),2),c=e=>{v(e,Ya())},l=e=>{var r=Za();ue(r,21,()=>p(n),e=>e.threadId,(e,n)=>{let r=C(()=>ka(t.projects,p(n).projectId));var i=Xa(),a=y(i),o=y(a),c=y(o,!0);k(o);var l=s(o,2),u=y(l,!0);k(l),k(a);var d=s(a,2);k(i),U(()=>{V(c,p(n).title),V(u,p(r)?.displayName??`Unknown project`)}),N(`click`,d,()=>{t.onRestore(p(n).threadId)}),v(e,i)}),k(r),v(e,r)};r(o,e=>{p(n).length===0?e(c):e(l,-1)}),k(a),k(i),v(e,i),M()}t([`click`]);var eo=i(`<button type="button" class="text-muted-foreground hover:text-foreground hover:bg-hover-fill inline-flex size-7 shrink-0 items-center justify-center rounded-md transition"><!></button>`);function to(e,t){E(t,!0);var n=eo(),i=y(n),a=e=>{wn(e,{class:`size-3.5`,"aria-hidden":`true`})},o=e=>{on(e,{class:`size-3.5`,"aria-hidden":`true`})};r(i,e=>{t.theme===`dark`?e(a):e(o,-1)}),k(n),U(()=>{O(n,`aria-label`,t.theme===`dark`?`Switch to light mode`:`Switch to dark mode`),O(n,`title`,t.theme===`dark`?`Light mode`:`Dark mode`)}),N(`click`,n,()=>t.onThemeChange(t.theme===`dark`?`light`:`dark`)),v(e,n),M()}t([`click`]);var no=i(`<button type="button"><!> <span class="truncate"> </span></button>`),ro=i(`<aside class="app-sidebar-panel"><div class="flex h-full min-h-0 flex-col overflow-hidden"><div class="flex items-center justify-between gap-2 px-3.5 pt-3 pb-3"><button type="button" class="text-muted-foreground hover:text-foreground hover:bg-hover-fill inline-flex h-8 items-center gap-2 rounded-lg px-2 text-[13px] transition"><!> Back</button> <!></div> <nav class="hide-scrollbar min-h-0 flex-1 space-y-0.5 overflow-y-auto px-2.5 pb-4" aria-label="Settings"></nav></div></aside>`);function io(e,t){E(t,!0);let n=[{id:`account`,label:`Account`,icon:On},{id:`usage`,label:`Usage`,icon:dt},{id:`archived`,label:`Archived Threads`,icon:tt}];var r=ro(),i=y(r),a=y(i),o=y(a);rt(y(o),{class:`size-3.5`,"aria-hidden":`true`}),z(),k(o),to(s(o,2),{get theme(){return t.theme},get onThemeChange(){return t.onThemeChange}}),k(a);var c=s(a,2);ue(c,21,()=>n,e=>e.id,(e,n)=>{var r=no(),i=y(r);B(i,()=>p(n).icon,(e,t)=>{t(e,{class:`text-muted-foreground size-4 shrink-0`,"aria-hidden":`true`})});var a=s(i,2),o=y(a,!0);k(a),k(r),U(()=>{I(r,1,`flex w-full items-center gap-2.5 rounded-lg px-2.5 py-1.5 text-left text-[13px] transition ${t.activePage===p(n).id?`bg-hover-fill-strong text-foreground`:`text-muted-foreground hover:bg-hover-fill hover:text-foreground`}`),O(r,`aria-current`,t.activePage===p(n).id?`page`:void 0),V(o,p(n).label)}),N(`click`,r,()=>{t.onNavigate(p(n).id)}),v(e,r)}),k(c),k(i),k(r),N(`click`,o,function(...e){t.onBack?.apply(this,e)}),v(e,r),M()}t([`click`]);var ao=[{id:`modelUsage`,label:`Model usage`,noun:`model usage`,description:`More expensive models use up more usage.`},{id:`webTools`,label:`Web tools`,noun:`web tools`,description:`Web search and URL scrape share this quota.`}],oo=[`weekly`,`monthly`],so=i(`<p class="text-muted-foreground text-sm leading-6">Couldn’t load your usage right now. Try again in a moment.</p>`),co=i(`<div class="space-y-2"><div class="bg-hover-fill h-3.5 w-full rounded"></div> <div class="bg-hover-fill h-1.5 w-full rounded-full"></div></div>`),lo=i(`<div class="space-y-5"><div class="bg-hover-fill h-3 w-28 rounded"></div> <!></div>`),uo=i(`<div class="animate-pulse space-y-10" aria-hidden="true"><div class="bg-hover-fill h-4 w-24 rounded"></div> <!></div>`),fo=i(`<p class="text-muted-foreground mt-1 text-[12px]"> </p>`),po=i(`<p> </p>`),mo=i(`<p class="text-muted-foreground mt-1.5 text-[12px]"> </p>`),ho=i(`<div><div class="flex items-baseline justify-between gap-3"><p class="text-muted-foreground text-[13px]"> </p> <!></div> <p class="text-muted-foreground mt-0.5 text-[12px]"> </p> <div class="bg-hover-fill mt-2 h-1.5 overflow-hidden rounded-full" role="progressbar"><div></div></div> <!></div>`),go=i(`<div><p class="text-muted-foreground text-[11px] tracking-[0.18em] uppercase"> </p> <!> <div class="mt-4 space-y-6"></div></div>`),_o=i(`<div><p class="text-muted-foreground text-[11px] tracking-[0.18em] uppercase">Subscription Tier</p> <p class="text-foreground mt-3 text-[15px]"> </p></div> <!>`,1),vo=i(`<section class="flex h-full min-h-0 flex-col overflow-hidden"><header class="flex h-12 shrink-0 items-center px-6"><h1 class="text-foreground text-[1rem] font-medium tracking-[-0.03em]">Usage</h1></header> <div class="min-h-0 flex-1 overflow-y-auto px-6 py-8"><div class="max-w-xl space-y-10"><!></div></div></section>`);function yo(e,t){E(t,!0);let i=Te(),a=Se(W.usage.getMyUsage,()=>i.isAuthenticated&&!i.isLoading?{}:`skip`),o=x(u(Date.now()));n(()=>{let e=setInterval(()=>{l(o,Date.now(),!0)},6e4);return()=>{clearInterval(e)}});let c=new Intl.NumberFormat(`en-US`,{notation:`compact`,maximumFractionDigits:1}),d={weekly:`Weekly`,monthly:`Monthly`};function f(e){let t=Math.max(0,e-p(o)),n=Math.ceil(t/36e5);if(n>=24){let e=Math.floor(n/24),t=n%24;return t>0?`${e}d ${t}h`:`${e}d`}return t>=36e5?`${n}h`:`${Math.max(1,Math.ceil(t/6e4))}m`}function m(e,t){return e?`bg-rose-400/90`:t?`bg-amber-400/90`:`bg-foreground/25`}var h=vo(),g=s(y(h),2),_=y(g),S=y(_),w=e=>{v(e,so())},T=e=>{var t=uo();ue(s(y(t),2),17,()=>ao,e=>e.id,(e,t)=>{var n=lo();ue(s(y(n),2),16,()=>oo,e=>e,(e,t)=>{v(e,co())}),k(n),v(e,n)}),k(t),v(e,t)},D=e=>{var t=_o(),n=b(t),i=s(y(n),2),o=y(i,!0);k(i),k(n),ue(s(n,2),17,()=>a.data.meters,e=>e.id,(e,t)=>{var n=go(),i=y(n),a=y(i,!0);k(i);var o=s(i,2),l=e=>{var n=fo(),r=y(n,!0);k(n),U(()=>V(r,p(t).description)),v(e,n)};r(o,e=>{p(t).description&&e(l)});var u=s(o,2);ue(u,21,()=>p(t).windows,e=>e.period,(e,n)=>{let i=C(()=>p(n).limit>0),a=C(()=>p(i)?Math.round(p(n).used/p(n).limit*100):0),o=C(()=>p(i)&&p(n).used>=p(n).limit),l=C(()=>p(i)&&p(n).used>=p(n).limit*.9);var u=ho(),h=y(u),g=y(h),_=y(g,!0);k(g);var b=s(g,2),x=e=>{var t=po(),n=y(t);k(t),U(()=>{I(t,1,`text-[12px] ${p(o)?`text-destructive`:p(l)?`text-amber-800 dark:text-amber-300`:`text-muted-foreground`}`),V(n,`${p(a)??``}% used`)}),v(e,t)};r(b,e=>{p(i)&&e(x)}),k(h);var S=s(h,2),w=y(S);k(S);var T=s(S,2);O(T,`aria-valuemin`,0);var E=y(T);k(T);var D=s(T,2),ee=e=>{var t=mo(),r=y(t);k(t),U(e=>V(r,`Resets in ${e??``}`),[()=>f(p(n).resetsAt)]),v(e,t)};r(D,e=>{p(n).resetsAt!==null&&e(ee)}),k(u),U((e,r,o,s,c)=>{V(_,d[p(n).period]),V(w,`${e??``} / ${r??``}`),O(T,`aria-label`,`${p(t).label} — ${d[p(n).period]}`),O(T,`aria-valuemax`,p(i)?p(n).limit:0),O(T,`aria-valuenow`,o),O(T,`aria-valuetext`,p(i)?`${p(a)}% used`:`0 / 0`),I(E,1,s),A(E,c)},[()=>c.format(p(i)?p(n).used:0),()=>c.format(p(i)?p(n).limit:0),()=>p(i)?Math.min(p(n).used,p(n).limit):0,()=>`h-full rounded-full transition-[width] duration-300 ${m(p(o),p(l))}`,()=>`width: ${p(i)?Math.min(100,Math.max(0,p(a))):0}%`]),v(e,u)}),k(u),k(n),U(()=>V(a,p(t).label)),v(e,n)}),U(()=>V(o,mi[a.data.tier])),v(e,t)};r(S,e=>{a.error?e(w):a.isLoading||a.data===void 0?e(T,1):e(D,-1)}),k(_),k(g),k(h),v(e,h),M()}function bo(e){if(!(!ci(e)||typeof e.error!=`string`)&&!(e.status!==`cancelled`&&e.status!==`failed`))return{error:e.error,status:e.status}}function xo(e,t){let n=new Map,r=new Set,i=t.filter(t=>{if(!t.callId)return!0;let i=e.find(e=>e.callId===t.callId&&!r.has(e.callId));return i?(n.set(t.id,i.callId),r.add(i.callId),!1):!1}),a=t=>{let a=e.filter(e=>!r.has(e.callId)),o=new Map(i.filter(e=>!n.has(e.id)).map(e=>[e.id,a.filter(n=>t(n,e))]));for(let e of i){if(n.has(e.id))continue;let t=o.get(e.id)??[];if(t.length!==1)continue;let[a]=t;i.filter(e=>!n.has(e.id)&&(o.get(e.id)??[]).some(e=>e.callId===a.callId)).length===1&&(n.set(e.id,a.callId),r.add(a.callId))}};return a((e,t)=>e.name===t.kind&&So(e.input,t.payload)),a((e,t)=>e.name===t.kind),n}function So(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>So(e,t[n]));if(e===null||t===null||typeof e!=`object`||typeof t!=`object`)return!1;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>Object.hasOwn(t,n)&&So(e[n],t[n]))}function Co(e){return e.name||e.job?.kind||`tool`}function wo(e){let t=[];for(let n of e){if(n.type===`text`||n.type===`reasoning`){t.push(n);continue}let e=Co(n),r=t.at(-1);if(r?.type===`tool-group`&&r.toolKey===e){r.tools.push(n);continue}t.push({type:`tool-group`,toolKey:e,tools:[n]})}return t}function To(e){return e.type===`reasoning`?e.id:e.tools[0]?.callId??e.toolKey}function Eo(e){let t=[];for(let n of e){if(n.type===`text`){t.push(n);continue}let e=t.at(-1);if(e?.type===`work`){e.blocks.push(n);continue}t.push({type:`work`,key:To(n),blocks:[n]})}return t}function Do(e,t){for(let n of e)if(n.type===`tool-group`)for(let e of n.tools)e.job&&t(e.job)}function Oo(e){let t;return Do(e,e=>{let n=e.claimedAt??e.enqueuedAt;t=t===void 0?n:Math.min(t,n)}),t}function ko(e){let t;return Do(e,e=>{e.completedAt!==void 0&&(t=t===void 0?e.completedAt:Math.max(t,e.completedAt))}),t}function Ao(e){let t=[],n=[],r=0,i;for(let a of e){if(a.type!==`work`){t.push(void 0);continue}t.push(r),n.push(i);let e=ko(a.blocks);e!==void 0&&(i=i===void 0?e:Math.max(i,e)),r+=1}return{workIndexBySectionIndex:t,priorCompletedAtByWorkIndex:n}}function jo(e,t){let n=Oo(e.blocks),r=t.workSectionIndex===0?t.runStartedAt:n??t.priorWorkCompletedAtMs??t.runStartedAt;return t.inProgress?{startedAtMs:r}:{startedAtMs:r,completedAtMs:ko(e.blocks)??t.runCompletedAt??r}}function Mo(e){return e.output===void 0?!e.job||e.job.status===`pending`||e.job.status===`claimed`:!1}function No(e,t){return t&&Mo(e)}function Po(e,t){return ci(e)&&typeof e[t]==`string`?e[t]:void 0}function Fo(e){return Po(e.output,`sessionId`)??Po(e.input,`sessionId`)??Po(e.job?.payload,`sessionId`)}function Io(e){let t=new Map;for(let n of e){let e=Fo(n);if(!e)continue;let r=Po(n.output,`command`)??(Co(n)===`exec_command`?Po(n.input,`cmd`)??Po(n.job?.payload,`cmd`):void 0);r&&t.set(e,r)}return t}function Lo(e,t){let n=Fo(e);return Po(e.output,`command`)??(n?t.get(n):void 0)}function Ro(e,t){if(!t)return new Set;let n=new Map,r=new Set;for(let t of e){let e=Fo(t);e&&(Co(t)===`exec_command`&&r.add(e),ci(t.output)&&typeof t.output.running==`boolean`&&n.set(e,t.output.running))}return new Set([...r].filter(e=>n.get(e)===!0))}function zo(e,t,n){let r=[],i=[];for(let a of e){if(a.type===`reasoning`){r.push(a);continue}let e=[];for(let r of a.tools){let a=Co(r),o=Fo(r),s=o!==void 0&&n.has(o),c=No(r,t);if(a===`exec_command`&&s){i.push(r);continue}if(a===`write_stdin`){if(c){s||i.push(r);continue}e.push(r);continue}c?i.push(r):e.push(r)}e.length>0&&r.push({type:`tool-group`,toolKey:a.toolKey,tools:e})}return{settledBlocks:r,runningTools:i}}function Bo(e,t){return!t&&Mo(e)?`interrupted`:e.job?.status===`cancelled`||e.job?.status===`failed`?e.job.status:bo(e.output)?.status}function Vo(e,t){if(!t&&Mo(e))return`The agent stopped before this tool call finished.`;let n=bo(e.output)?.error;return e.job?e.job.status===`cancelled`?e.job.error??n??`Executor job cancelled before completion.`:e.job.status===`failed`?e.job.error??n??`Executor job failed.`:void 0:n}function Ho(e,t){let n=new Map(e.filter(e=>e.type===`tool-result`).map(e=>[e.callId,e])),r=xo(e.filter(e=>e.type===`tool-call`),t.map(e=>({id:e._id,kind:e.kind,...e.callId?{callId:e.callId}:{},payload:e.payload}))),i=new Map;for(let e of t){let t=r.get(e._id);t&&i.set(t,e)}let a=[],o=new Set;for(let t of e){if(t.type===`tool-result`)continue;if(t.type===`text`||t.type===`reasoning`){t.text.trim().length>0&&a.push(t);continue}let e=n.get(t.callId),r=i.get(t.callId);r&&o.add(r._id),a.push({type:`tool`,callId:t.callId,name:t.name,input:t.input,...e?{output:e.output}:r?.result===void 0?{}:{output:r.result},...r?{job:r}:{}})}for(let e of t)o.has(e._id)||a.push({type:`tool`,callId:e.callId??`executor-job:${e._id}`,name:e.kind,input:e.payload,...e.result===void 0?{}:{output:e.result},job:e});return a}var Uo={apply_patch:Ft,ask_question:yt,await_question:qt,check_docs:st,create_artifact:Nt,exec_command:En,get_workspace_instructions:fn,read_skill:cn,scrape_url:Gt,update_artifact:Lt,web_search:mn,write_stdin:bn};function Wo(e){return Uo[e]??An}function Go(e){return Wo(e.job?.kind??e.name)}function Ko(e){return e.split(`_`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function qo(e){switch(e){case`apply_patch`:return`Changed Files`;case`ask_question`:return`Asked Questions`;case`await_question`:return`Waiting for Answers`;case`check_docs`:return`Checked Docs`;case`create_artifact`:return`Created Artifacts`;case`exec_command`:return`Ran Commands`;case`get_workspace_instructions`:return`Read Instructions`;case`read_skill`:return`Read Skill`;case`scrape_url`:return`Read Pages`;case`update_artifact`:return`Updated Artifacts`;case`web_search`:return`Searched Web`;case`write_stdin`:return`Monitored Commands`;default:return Ko(e)}}function Jo(e){if(!ci(e))return``;let t=[];return typeof e.workdir==`string`&&e.workdir.trim().length>0&&e.workdir!==`.`&&t.push(`cwd ${e.workdir}`),t.length>0?` (${t.join(`, `)})`:``}function Yo(e,t){let n=ci(t)?t:void 0;switch(e){case`apply_patch`:return es(t)??`Patch`;case`ask_question`:return typeof n?.question==`string`?n.question:`Question`;case`await_question`:return`Waiting for answer`;case`check_docs`:return typeof n?.query==`string`?n.query:typeof n?.path==`string`?n.path:`Docs`;case`create_artifact`:return typeof n?.title==`string`?n.title:`Artifact`;case`exec_command`:return typeof n?.cmd==`string`?`${n.cmd}${Jo(t)}`:`Command`;case`get_workspace_instructions`:return`Workspace instructions`;case`read_skill`:return typeof n?.name==`string`?`$${n.name}`:`Skill`;case`scrape_url`:return typeof n?.url==`string`?n.url:`Web page`;case`update_artifact`:return`Updated artifact`;case`web_search`:return typeof n?.query==`string`?n.query:`Web search`;case`write_stdin`:return typeof n?.sessionId==`string`?`Session ${n.sessionId}`:`Command session`;default:return Ko(e)}}function Xo(e){return(e.job?.kind??e.name)===`apply_patch`?`whitespace-pre-wrap [overflow-wrap:anywhere]`:`truncate`}var Zo=[`*** Add File: `,`*** Copy File: `,`*** Delete File: `,`*** Update File: `],Qo=[`*** Copy to: `,`*** Move to: `];function $o(e){let t=e.lastIndexOf(` "b/`);if(t>=0)return e.slice(t+4).replace(/"$/,``);let n=e.lastIndexOf(` b/`);return n>=0?e.slice(n+3):null}function es(e){if(!ci(e)||typeof e.patch!=`string`)return null;let t=[];for(let n of e.patch.split(`
3
3
  `)){if(n.startsWith(`diff --git `)){let e=$o(n);e!==null&&t.push(e);continue}let e=Zo.find(e=>n.startsWith(e));if(e){t.push(n.slice(e.length).trim());continue}let r=Qo.find(e=>n.startsWith(e));r&&t.length>0&&(t[t.length-1]=n.slice(r.length).trim())}let n=[...new Set(t)];return n.length>0?n.join(`
4
4
  `):null}function ts(e){if(!ci(e)||!Array.isArray(e.changes))return null;let t=e.changes.flatMap(e=>ci(e)&&typeof e.path==`string`?[e.path]:[]);return t.length===0?null:[...new Set(t)].join(`
@@ -1 +1 @@
1
- import{$ as e,B as t,H as n,R as r,at as i,et as a,g as o,it as s}from"../chunks/BrZMY0Kx.js";import{c,t as l}from"../chunks/3ZyTbKY0.js";import"../chunks/xihTtKlq.js";import{n as u}from"../chunks/tqyHaQv_.js";import{t as d}from"../chunks/CBOYsvSw.js";import"../chunks/BIjiMMn-.js";function f(f,p){i(p,!0);let m=()=>a(u,`$authState`,h),[h,g]=e();t(()=>{m().isReady&&l(c(`/`),{replaceState:!0})}),o(`1yczfzs`,e=>{r(()=>{n.title=`Signing In`})}),d(f,{title:`Completing sign-in`,description:`Sprocket is finishing authentication and will return to your projects automatically.`}),s(),g()}export{f as component};
1
+ import{$ as e,B as t,H as n,R as r,at as i,et as a,g as o,it as s}from"../chunks/BrZMY0Kx.js";import{c,t as l}from"../chunks/Gpzakw_M.js";import"../chunks/xihTtKlq.js";import{n as u}from"../chunks/tqyHaQv_.js";import{t as d}from"../chunks/CBOYsvSw.js";import"../chunks/BlLZh3MQ.js";function f(f,p){i(p,!0);let m=()=>a(u,`$authState`,h),[h,g]=e();t(()=>{m().isReady&&l(c(`/`),{replaceState:!0})}),o(`1yczfzs`,e=>{r(()=>{n.title=`Signing In`})}),d(f,{title:`Completing sign-in`,description:`Sprocket is finishing authentication and will return to your projects automatically.`}),s(),g()}export{f as component};
@@ -1 +1 @@
1
- import{C as e,D as t,G as n,H as r,J as i,M as a,N as o,R as s,T as c,U as l,X as u,at as d,c as f,dt as p,g as m,it as h,n as g,u as _,w as v,z as y}from"../chunks/BrZMY0Kx.js";import{c as b,t as x}from"../chunks/3ZyTbKY0.js";import"../chunks/xihTtKlq.js";import{t as S}from"../chunks/CBOYsvSw.js";import{a as C,c as w,i as T,n as E,r as D,s as O,t as k}from"../chunks/B2QV2lSm.js";import"../chunks/BIjiMMn-.js";var A=t(`<p class="text-destructive text-sm"> </p>`),j=t(`<form class="space-y-4"><label class="block space-y-2"><span class="text-muted-foreground text-sm">Pairing token</span> <input class="border-border bg-surface text-foreground placeholder:text-muted-foreground focus:border-ring w-full rounded-xl border px-4 py-3 text-sm outline-none" placeholder="Paste token" autocomplete="off"/></label> <!> <button class="bg-primary text-primary-foreground w-full rounded-full px-4 py-3 text-sm font-medium transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60" type="submit"> </button></form>`);function M(t,M){d(M,!0);let N=u(``),P=u(null),F=u(!1);g(()=>{I()});async function I(){let e=O();if(!e)return;let t=T();if(t){i(N,t,!0),await L();return}let n=await D(e);n?.pairingCredential&&(i(N,n.pairingCredential,!0),await L())}async function L(){let e=O();if(!e){i(P,`Unable to resolve the Sprocket server URL.`);return}if(!o(N).trim()){i(P,`Enter a pairing token to connect.`);return}i(F,!0),i(P,null);try{let t=C(),n=t?`/${w(t)}`:`/`;await k(e,o(N).trim()),E(),await x(b(n),{replaceState:!0})}catch(e){i(P,e instanceof Error?e.message:`Failed to pair with the Sprocket server.`,!0)}finally{i(F,!1)}}m(`aj1tv1`,e=>{s(()=>{r.title=`Pair with Sprocket`})}),S(t,{title:`Connect to Sprocket`,description:`Enter the pairing token from your running Sprocket server.`,children:(t,r)=>{var s=j(),u=l(s),d=n(l(u),2);_(d),p(u);var m=n(u,2),h=e=>{var t=A(),n=l(t,!0);p(t),y(()=>v(n,o(P))),c(e,t)};e(m,e=>{o(P)&&e(h)});var g=n(m,2),b=l(g,!0);p(g),p(s),y(()=>{g.disabled=o(F),v(b,o(F)?`Connecting…`:`Connect`)}),a(`submit`,s,e=>{e.preventDefault(),L()}),f(d,()=>o(N),e=>i(N,e)),c(t,s)},$$slots:{default:!0}}),h()}export{M as component};
1
+ import{C as e,D as t,G as n,H as r,J as i,M as a,N as o,R as s,T as c,U as l,X as u,at as d,c as f,dt as p,g as m,it as h,n as g,u as _,w as v,z as y}from"../chunks/BrZMY0Kx.js";import{c as b,t as x}from"../chunks/Gpzakw_M.js";import"../chunks/xihTtKlq.js";import{t as S}from"../chunks/CBOYsvSw.js";import{a as C,c as w,i as T,n as E,r as D,s as O,t as k}from"../chunks/B2QV2lSm.js";import"../chunks/BlLZh3MQ.js";var A=t(`<p class="text-destructive text-sm"> </p>`),j=t(`<form class="space-y-4"><label class="block space-y-2"><span class="text-muted-foreground text-sm">Pairing token</span> <input class="border-border bg-surface text-foreground placeholder:text-muted-foreground focus:border-ring w-full rounded-xl border px-4 py-3 text-sm outline-none" placeholder="Paste token" autocomplete="off"/></label> <!> <button class="bg-primary text-primary-foreground w-full rounded-full px-4 py-3 text-sm font-medium transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60" type="submit"> </button></form>`);function M(t,M){d(M,!0);let N=u(``),P=u(null),F=u(!1);g(()=>{I()});async function I(){let e=O();if(!e)return;let t=T();if(t){i(N,t,!0),await L();return}let n=await D(e);n?.pairingCredential&&(i(N,n.pairingCredential,!0),await L())}async function L(){let e=O();if(!e){i(P,`Unable to resolve the Sprocket server URL.`);return}if(!o(N).trim()){i(P,`Enter a pairing token to connect.`);return}i(F,!0),i(P,null);try{let t=C(),n=t?`/${w(t)}`:`/`;await k(e,o(N).trim()),E(),await x(b(n),{replaceState:!0})}catch(e){i(P,e instanceof Error?e.message:`Failed to pair with the Sprocket server.`,!0)}finally{i(F,!1)}}m(`aj1tv1`,e=>{s(()=>{r.title=`Pair with Sprocket`})}),S(t,{title:`Connect to Sprocket`,description:`Enter the pairing token from your running Sprocket server.`,children:(t,r)=>{var s=j(),u=l(s),d=n(l(u),2);_(d),p(u);var m=n(u,2),h=e=>{var t=A(),n=l(t,!0);p(t),y(()=>v(n,o(P))),c(e,t)};e(m,e=>{o(P)&&e(h)});var g=n(m,2),b=l(g,!0);p(g),p(s),y(()=>{g.disabled=o(F),v(b,o(F)?`Connecting…`:`Connect`)}),a(`submit`,s,e=>{e.preventDefault(),L()}),f(d,()=>o(N),e=>i(N,e)),c(t,s)},$$slots:{default:!0}}),h()}export{M as component};
@@ -1 +1 @@
1
- {"version":"1785439609975"}
1
+ {"version":"1785481326693"}
package/web/callback.html CHANGED
@@ -13,18 +13,18 @@
13
13
  document.documentElement.style.colorScheme = 'light';
14
14
  })();
15
15
  </script>
16
- <link href="./_app/immutable/entry/start.CiP_kfJQ.js" rel="modulepreload">
17
- <link href="./_app/immutable/chunks/3ZyTbKY0.js" rel="modulepreload">
16
+ <link href="./_app/immutable/entry/start.KxSG_GQZ.js" rel="modulepreload">
17
+ <link href="./_app/immutable/chunks/Gpzakw_M.js" rel="modulepreload">
18
18
  <link href="./_app/immutable/chunks/BrZMY0Kx.js" rel="modulepreload">
19
19
  <link href="./_app/immutable/chunks/Dp2IcZBu.js" rel="modulepreload">
20
- <link href="./_app/immutable/entry/app.DV2JGFUa.js" rel="modulepreload">
20
+ <link href="./_app/immutable/entry/app.DCVYqKWs.js" rel="modulepreload">
21
21
  <link href="./_app/immutable/chunks/xihTtKlq.js" rel="modulepreload">
22
22
  <link href="./_app/immutable/nodes/0.DkSNvmi3.js" rel="modulepreload">
23
23
  <link href="./_app/immutable/chunks/tqyHaQv_.js" rel="modulepreload">
24
24
  <link href="./_app/immutable/chunks/YGmybFhl.js" rel="modulepreload">
25
- <link href="./_app/immutable/nodes/3.aLpT9KzR.js" rel="modulepreload">
25
+ <link href="./_app/immutable/nodes/3.3ADP24Td.js" rel="modulepreload">
26
26
  <link href="./_app/immutable/chunks/CBOYsvSw.js" rel="modulepreload">
27
- <link href="./_app/immutable/chunks/BIjiMMn-.js" rel="modulepreload">
27
+ <link href="./_app/immutable/chunks/BlLZh3MQ.js" rel="modulepreload">
28
28
 
29
29
  <link href="./_app/immutable/assets/0.D2EsWSqR.css" rel="stylesheet">
30
30
  </head>
@@ -32,15 +32,15 @@
32
32
  <div style="display: contents">
33
33
  <script>
34
34
  {
35
- __sveltekit_wt7q2c = {
35
+ __sveltekit_qp8h20 = {
36
36
  base: new URL(".", location).pathname.slice(0, -1)
37
37
  };
38
38
 
39
39
  const element = document.currentScript.parentElement;
40
40
 
41
41
  Promise.all([
42
- import("./_app/immutable/entry/start.CiP_kfJQ.js"),
43
- import("./_app/immutable/entry/app.DV2JGFUa.js")
42
+ import("./_app/immutable/entry/start.KxSG_GQZ.js"),
43
+ import("./_app/immutable/entry/app.DCVYqKWs.js")
44
44
  ]).then(([kit, app]) => {
45
45
  kit.start(app, element);
46
46
  });
package/web/index.html CHANGED
@@ -13,11 +13,11 @@
13
13
  document.documentElement.style.colorScheme = 'light';
14
14
  })();
15
15
  </script>
16
- <link href="/_app/immutable/entry/start.CiP_kfJQ.js" rel="modulepreload">
17
- <link href="/_app/immutable/chunks/3ZyTbKY0.js" rel="modulepreload">
16
+ <link href="/_app/immutable/entry/start.KxSG_GQZ.js" rel="modulepreload">
17
+ <link href="/_app/immutable/chunks/Gpzakw_M.js" rel="modulepreload">
18
18
  <link href="/_app/immutable/chunks/BrZMY0Kx.js" rel="modulepreload">
19
19
  <link href="/_app/immutable/chunks/Dp2IcZBu.js" rel="modulepreload">
20
- <link href="/_app/immutable/entry/app.DV2JGFUa.js" rel="modulepreload">
20
+ <link href="/_app/immutable/entry/app.DCVYqKWs.js" rel="modulepreload">
21
21
  <link href="/_app/immutable/chunks/xihTtKlq.js" rel="modulepreload">
22
22
  <link href="/_app/immutable/nodes/0.DkSNvmi3.js" rel="modulepreload">
23
23
  <link href="/_app/immutable/chunks/tqyHaQv_.js" rel="modulepreload">
@@ -29,15 +29,15 @@
29
29
  <div style="display: contents">
30
30
  <script>
31
31
  {
32
- __sveltekit_wt7q2c = {
32
+ __sveltekit_qp8h20 = {
33
33
  base: ""
34
34
  };
35
35
 
36
36
  const element = document.currentScript.parentElement;
37
37
 
38
38
  Promise.all([
39
- import("/_app/immutable/entry/start.CiP_kfJQ.js"),
40
- import("/_app/immutable/entry/app.DV2JGFUa.js")
39
+ import("/_app/immutable/entry/start.KxSG_GQZ.js"),
40
+ import("/_app/immutable/entry/app.DCVYqKWs.js")
41
41
  ]).then(([kit, app]) => {
42
42
  kit.start(app, element);
43
43
  });
package/web/pair.html CHANGED
@@ -13,19 +13,19 @@
13
13
  document.documentElement.style.colorScheme = 'light';
14
14
  })();
15
15
  </script>
16
- <link href="./_app/immutable/entry/start.CiP_kfJQ.js" rel="modulepreload">
17
- <link href="./_app/immutable/chunks/3ZyTbKY0.js" rel="modulepreload">
16
+ <link href="./_app/immutable/entry/start.KxSG_GQZ.js" rel="modulepreload">
17
+ <link href="./_app/immutable/chunks/Gpzakw_M.js" rel="modulepreload">
18
18
  <link href="./_app/immutable/chunks/BrZMY0Kx.js" rel="modulepreload">
19
19
  <link href="./_app/immutable/chunks/Dp2IcZBu.js" rel="modulepreload">
20
- <link href="./_app/immutable/entry/app.DV2JGFUa.js" rel="modulepreload">
20
+ <link href="./_app/immutable/entry/app.DCVYqKWs.js" rel="modulepreload">
21
21
  <link href="./_app/immutable/chunks/xihTtKlq.js" rel="modulepreload">
22
22
  <link href="./_app/immutable/nodes/0.DkSNvmi3.js" rel="modulepreload">
23
23
  <link href="./_app/immutable/chunks/tqyHaQv_.js" rel="modulepreload">
24
24
  <link href="./_app/immutable/chunks/YGmybFhl.js" rel="modulepreload">
25
- <link href="./_app/immutable/nodes/4.CrPe7_-y.js" rel="modulepreload">
25
+ <link href="./_app/immutable/nodes/4.CVlcxCTj.js" rel="modulepreload">
26
26
  <link href="./_app/immutable/chunks/CBOYsvSw.js" rel="modulepreload">
27
27
  <link href="./_app/immutable/chunks/B2QV2lSm.js" rel="modulepreload">
28
- <link href="./_app/immutable/chunks/BIjiMMn-.js" rel="modulepreload">
28
+ <link href="./_app/immutable/chunks/BlLZh3MQ.js" rel="modulepreload">
29
29
 
30
30
  <link href="./_app/immutable/assets/0.D2EsWSqR.css" rel="stylesheet">
31
31
  </head>
@@ -33,15 +33,15 @@
33
33
  <div style="display: contents">
34
34
  <script>
35
35
  {
36
- __sveltekit_wt7q2c = {
36
+ __sveltekit_qp8h20 = {
37
37
  base: new URL(".", location).pathname.slice(0, -1)
38
38
  };
39
39
 
40
40
  const element = document.currentScript.parentElement;
41
41
 
42
42
  Promise.all([
43
- import("./_app/immutable/entry/start.CiP_kfJQ.js"),
44
- import("./_app/immutable/entry/app.DV2JGFUa.js")
43
+ import("./_app/immutable/entry/start.KxSG_GQZ.js"),
44
+ import("./_app/immutable/entry/app.DCVYqKWs.js")
45
45
  ]).then(([kit, app]) => {
46
46
  kit.start(app, element);
47
47
  });
@@ -1 +0,0 @@
1
- import"./3ZyTbKY0.js";
@@ -1 +0,0 @@
1
- import{n as e,s as t}from"../chunks/3ZyTbKY0.js";export{t as load_css,e as start};