signetai 0.1.66 → 0.1.67

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.
@@ -0,0 +1 @@
1
+ import{b8 as he,b9 as mt,aK as A,L as U,ay as T,aJ as te,ba as _t}from"./BgyhSYBR.js";import{o as qe}from"./CSXJCotK.js";const V=[];function Se(e,t=he){let n=null;const r=new Set;function a(o){if(mt(e,o)&&(e=o,n)){const l=!V.length;for(const c of r)c[1](),V.push(c,e);if(l){for(let c=0;c<V.length;c+=2)V[c][0](V[c+1]);V.length=0}}}function i(o){a(o(e))}function s(o,l=he){const c=[o,l];return r.add(c),r.size===1&&(n=t(a,i)||he),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:a,update:i,subscribe:s}}class Ee{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Re{constructor(t,n){this.status=t,this.location=n}}class xe extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function wt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function vt(e){return e.split("%25").map(decodeURI).join("%25")}function yt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function pe({href:e}){return e.split("#")[0]}function bt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(s,o){if(o==="get"||o==="getAll"||o==="has")return(c,...d)=>(n(c),s[o](c,...d));t();const l=Reflect.get(s,o);return typeof l=="function"?l.bind(s):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const s of i)Object.defineProperty(a,s,{get(){return t(),e[s]},enumerable:!0,configurable:!0});return a}function kt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function St(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Et=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&G.delete(Le(e)),Et(e,t));const G=new Map;function Rt(e,t){const n=Le(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&G.set(n,{body:a,init:i,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=St(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function xt(e,t,n){if(G.size>0){const r=Le(e,n),a=G.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);G.delete(r)}}return window.fetch(t,n)}function Le(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${kt(...a)}"]`}return r}const Lt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function At(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Tt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return ge(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return ge(String.fromCharCode(...l.slice(2).split("-").map(w=>parseInt(w,16))));const d=Lt.exec(l),[,p,f,u,h]=d;return t.push({name:u,matcher:h,optional:!!p,rest:!!f,chained:f?c===1&&s[0]==="":!1}),f?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return ge(l)}).join("")}).join("")}/?$`),params:t}}function Ut(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Tt(e){return e.slice(1).split("/").filter(Ut)}function Pt(e,t,n){const r={},a=e.slice(1),i=a.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const l=t[o];let c=a[o-s];if(l.chained&&l.rest&&s&&(c=a.slice(o-s,o+1).filter(d=>d).join("/"),s=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&l.chained&&(s=0),!d&&!p&&Object.keys(r).length===i.length&&(s=0);continue}if(l.optional&&l.chained){s++;continue}return}if(!s)return r}function ge(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function It({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[l,c,d]])=>{const{pattern:p,params:f}=At(o),u={id:o,exec:h=>{const w=p.exec(h);if(w)return Pt(w,f,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...c||[]].map(s),leaf:i(l)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(o){const l=o<0;return l&&(o=~o),[l,e[o]]}function s(o){return o===void 0?o:[a.has(o),e[o]]}}function He(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function De(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const x=globalThis.__sveltekit_1itfz76?.base??"",Ot=globalThis.__sveltekit_1itfz76?.assets??x??"",$t="1771679200863",Je="sveltekit:snapshot",We="sveltekit:scroll",Ye="sveltekit:states",Ct="sveltekit:pageurl",K="sveltekit:history",H="sveltekit:navigation",N={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Ae=location.origin;function Xe(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function q(){return{x:pageXOffset,y:pageYOffset}}function z(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ve={...N,"":N.hover};function Qe(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ze(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Qe(e)}}function we(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||ue(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=r?.origin===Ae&&e.hasAttribute("download");return{url:r,external:i,target:a,download:s}}function ne(e){let t=null,n=null,r=null,a=null,i=null,s=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=z(o,"preload-code")),a===null&&(a=z(o,"preload-data")),t===null&&(t=z(o,"keepfocus")),n===null&&(n=z(o,"noscroll")),i===null&&(i=z(o,"reload")),s===null&&(s=z(o,"replacestate")),o=Qe(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ve[r??"off"],preload_data:Ve[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(s)}}function ze(e){const t=Se(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function i(s){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&s(o=l)})}return{notify:r,set:a,subscribe:i}}const et={v:()=>{}};function Nt(){const{set:e,subscribe:t}=Se(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ot}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==$t;return s&&(e(!0),et.v(),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function ue(e,t,n){return e.origin!==Ae||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function fn(e){}const tt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...tt];const jt=new Set([...tt]);[...jt];function qt(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof Ee||e instanceof xe?e.status:500}function Dt(e){return e instanceof xe?e.text:"Internal Error"}let k,J,me;const Vt=qe.toString().includes("$$")||/function \w+\(\) \{\}/.test(qe.toString());Vt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},me={current:!1}):(k=new class{#e=A({});get data(){return U(this.#e)}set data(t){T(this.#e,t)}#t=A(null);get form(){return U(this.#t)}set form(t){T(this.#t,t)}#n=A(null);get error(){return U(this.#n)}set error(t){T(this.#n,t)}#r=A({});get params(){return U(this.#r)}set params(t){T(this.#r,t)}#a=A({id:null});get route(){return U(this.#a)}set route(t){T(this.#a,t)}#o=A({});get state(){return U(this.#o)}set state(t){T(this.#o,t)}#s=A(-1);get status(){return U(this.#s)}set status(t){T(this.#s,t)}#i=A(new URL("https://example.com"));get url(){return U(this.#i)}set url(t){T(this.#i,t)}},J=new class{#e=A(null);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},me=new class{#e=A(!1);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},et.v=()=>me.current=!0);function zt(e){Object.assign(k,e)}const Ke={spanContext(){return Kt},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}},Kt={traceId:"",spanId:"",traceFlags:0},Bt=new Set(["icon","shortcut icon","apple-touch-icon"]),C=He(We)??{},W=He(Je)??{},$={url:ze({}),page:ze({}),navigating:Se(null),updated:Nt()};function Te(e){C[e]=q()}function Ft(e,t){let n=e+1;for(;C[n];)delete C[n],n+=1;for(n=t+1;W[n];)delete W[n],n+=1}function Y(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function nt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function Be(){}let Pe,ve,re,P,ye,v;const ae=[],oe=[];let L=null;function be(){L?.fork?.then(e=>e?.discard()),L=null}const ee=new Map,rt=new Set,Gt=new Set,M=new Set;let _={branch:[],error:null,url:null},at=!1,se=!1,Fe=!0,X=!1,F=!1,ot=!1,Ie=!1,st,y,R,j;const ie=new Set,Ge=new Map;async function gn(e,t,n){globalThis.__sveltekit_1itfz76?.data&&globalThis.__sveltekit_1itfz76.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Pe=It(e),P=document.documentElement,ye=t,ve=e.nodes[0],re=e.nodes[1],ve(),re(),y=history.state?.[K],R=history.state?.[H],y||(y=R=Date.now(),history.replaceState({...history.state,[K]:y,[H]:R},""));const r=C[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await an(ye,n)):(await B({type:"enter",url:Xe(v.hash?ln(new URL(location.href)):location.href),replace_state:!0}),a()),rn()}function Mt(){ae.length=0,Ie=!1}function it(e){oe.some(t=>t?.snapshot)&&(W[e]=oe.map(t=>t?.snapshot?.capture()))}function lt(e){W[e]?.forEach((t,n)=>{oe[n]?.snapshot?.restore(t)})}function Me(){Te(y),De(We,C),it(R),De(Je,W)}async function Ht(e,t,n,r){let a;t.invalidateAll&&be(),await B({type:"goto",url:Xe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Ie=!0,a=[...Ge.keys()]),t.invalidate&&t.invalidate.forEach(nn)}}),t.invalidateAll&&te().then(te).then(()=>{Ge.forEach(({resource:i},s)=>{a?.includes(s)&&i.refresh?.()})})}async function Jt(e){if(e.id!==L?.id){be();const t={};ie.add(t),L={id:e.id,token:t,promise:ft({...e,preload:t}).then(n=>(ie.delete(t),n.type==="loaded"&&n.state.error&&be(),n)),fork:null}}return L.promise}async function _e(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function ct(e,t,n){_=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(k,e.props.page),st=new v.root({target:t,props:{...e.props,stores:$,components:oe},hydrate:n,sync:!1}),await Promise.resolve(),lt(R),n){const a={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href),scroll:C[y]??q()},willUnload:!1,type:"enter",complete:Promise.resolve()};M.forEach(i=>i(a))}se=!0}function le({url:e,params:t,branch:n,status:r,error:a,route:i,form:s}){let o="never";if(x&&(e.pathname===x||e.pathname===x+"/"))o="always";else for(const u of n)u?.slash!==void 0&&(o=u.slash);e.pathname=wt(e.pathname,o),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:i},props:{constructors:qt(n).map(u=>u.node.component),page:je(k)}};s!==void 0&&(l.props.form=s);let c={},d=!k,p=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const h=n[u],w=_.branch[u];h?.data!==w?.data&&(d=!0),h&&(c={...c,...h.data},d&&(l.props[`data_${p}`]=c),p+=1)}return(!_.url||e.href!==_.url.href||_.error!==a||s!==void 0&&s!==k.form||d)&&(l.props.page={error:a,params:t,route:{id:i?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:d?c:k.data}),l}async function Oe({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let s=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(c.universal?.load){let d=function(...f){for(const u of f){const{href:h}=new URL(u,n);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Ke,current:Ke},route:new Proxy(a,{get:(f,u)=>(o&&(l.route=!0),f[u])}),params:new Proxy(r,{get:(f,u)=>(o&&l.params.add(u),f[u])}),data:i?.data??null,url:bt(n,()=>{o&&(l.url=!0)},f=>{o&&l.search_params.add(f)},v.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:h,promise:w}=ut(f,u,n);return o&&d(h.href),w},setHeaders:()=>{},depends:d,parent(){return o&&(l.parent=!0),t()},untrack(f){o=!1;try{return f()}finally{o=!0}}};s=await c.universal.load.call(null,p)??null}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:s,uses:l}:null,data:s??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function ut(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=se?xt(r,a.href,t):Rt(r,t);return{resolved:a,promise:i}}function Wt(e,t,n,r,a,i){if(Ie)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(i[s]!==_.params[s])return!0;for(const s of a.dependencies)if(ae.some(o=>o(new URL(s))))return!0;return!1}function $e(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Yt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(s=>i.includes(s))&&i.every(s=>a.includes(s))&&n.delete(r)}return n}function Xt({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:je(k),constructors:[]}}}async function ft({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(L?.id===e)return ie.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:l}=a,c=[...o,l];s.forEach(m=>m?.().catch(()=>{})),c.forEach(m=>m?.[1]().catch(()=>{}));const d=_.url?e!==ce(_.url):!1,p=_.route?a.id!==_.route.id:!1,f=Yt(_.url,n);let u=!1;const h=c.map(async(m,g)=>{if(!m)return;const S=_.branch[g];return m[1]===S?.loader&&!Wt(u,p,d,f,S.universal?.uses,r)?S:(u=!0,Oe({loader:m[1],url:n,params:r,route:a,parent:async()=>{const I={};for(let O=0;O<g;O+=1)Object.assign(I,(await h[O])?.data);return I},server_data_node:$e(m[0]?{type:"skip"}:null,m[0]?S?.server:void 0)}))});for(const m of h)m.catch(()=>{});const w=[];for(let m=0;m<c.length;m+=1)if(c[m])try{w.push(await h[m])}catch(g){if(g instanceof Re)return{type:"redirect",location:g.location};if(ie.has(i))return Xt({error:await Q(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let S=Ue(g),E;if(g instanceof Ee)E=g.body;else{if(await $.updated.check())return await nt(),await Y(n);E=await Q(g,{params:r,url:n,route:{id:a.id}})}const I=await Qt(m,w,s);return I?le({url:n,params:r,branch:w.slice(0,I.idx).concat(I.node),status:S,error:E,route:a}):await ht(n,{id:a.id},E,S)}else w.push(void 0);return le({url:n,params:r,branch:w,status:200,error:null,route:a,form:t?void 0:null})}async function Qt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Ce({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const s=await Oe({loader:ve,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:$e(i)}),o={node:await re(),loader:re,universal:null,server:null,data:null};return le({url:n,params:a,branch:[s,o],status:e,error:t,route:null})}catch(s){if(s instanceof Re)return Ht(new URL(s.location,location.href),{},0);throw s}}async function Zt(e){const t=e.href;if(ee.has(t))return ee.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(i,s)=>ut(i,s,e).promise})??e;if(typeof a=="string"){const i=new URL(e);v.hash?i.hash=a:i.pathname=a,a=i}return a})();ee.set(t,r),n=await r}catch{ee.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,x,v.hash)){const n=await Zt(e);if(!n)return;const r=en(n);for(const a of Pe){const i=a.exec(r);if(i)return{id:ce(e),invalidating:t,route:a,params:yt(i),url:e}}}}function en(e){return vt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function ce(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function dt({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let s=!1;const o=Ne(_,n,e,t,i??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const l={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return X||rt.forEach(c=>c(l)),s?null:o}async function B({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s={},redirect_count:o=0,nav_token:l={},accept:c=Be,block:d=Be,event:p}){const f=j;j=l;const u=await fe(t,!1),h=e==="enter"?Ne(_,u,t,e):dt({url:t,type:e,delta:n?.delta,intent:u,scroll:n?.scroll,event:p});if(!h){d(),j===l&&(j=f);return}const w=y,m=R;c(),X=!0,se&&h.navigation.type!=="enter"&&$.navigating.set(J.current=h.navigation);let g=u&&await ft(u);if(!g){if(ue(t,x,v.hash))return await Y(t,i);g=await ht(t,{id:null},await Q(new xe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,j!==l)return h.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(o<20){await B({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s,redirect_count:o+1,nav_token:l}),h.fulfil(void 0);return}g=await Ce({status:500,error:await Q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await $.updated.check()&&(await nt(),await Y(t,i));if(Mt(),Te(w),it(m),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),s=n?n.state:s,!n){const b=i?0:1,Z={[K]:y+=b,[H]:R+=b,[Ye]:s};(i?history.replaceState:history.pushState).call(history,Z,"",t),i||Ft(y,R)}const S=u&&L?.id===u.id?L.fork:null;L=null,g.props.page.state=s;let E;if(se){const b=(await Promise.all(Array.from(Gt,D=>D(h.navigation)))).filter(D=>typeof D=="function");if(b.length>0){let D=function(){b.forEach(de=>{M.delete(de)})};b.push(D),b.forEach(de=>{M.add(de)})}_=g.state,g.props.page&&(g.props.page.url=t);const Z=S&&await S;Z?E=Z.commit():(st.$set(g.props),zt(g.props.page),E=_t?.()),ot=!0}else await ct(g,ye,!1);const{activeElement:I}=document;await E,await te(),await te();let O=null;if(Fe){const b=n?n.scroll:a?q():null;b?scrollTo(b.x,b.y):(O=t.hash&&document.getElementById(pt(t)))?O.scrollIntoView():scrollTo(0,0)}const gt=document.activeElement!==I&&document.activeElement!==document.body;!r&&!gt&&sn(t,!O),Fe=!0,g.props.page&&Object.assign(k,g.props.page),X=!1,e==="popstate"&&lt(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=q()),M.forEach(b=>b(h.navigation)),$.navigating.set(J.current=null)}async function ht(e,t,n,r,a){return e.origin===Ae&&e.pathname===location.pathname&&!at?await Ce({status:r,error:n,url:e,route:t}):await Y(e,a)}function tn(){let e,t={element:void 0,href:void 0},n;P.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(e),e=setTimeout(()=>{i(l,N.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],N.tap)}P.addEventListener("mousedown",r),P.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(_e(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function i(o,l){const c=Ze(o,P),d=c===t.element&&c?.href===t.href&&l>=n;if(!c||d)return;const{url:p,external:f,download:u}=we(c,x,v.hash);if(f||u)return;const h=ne(c),w=p&&ce(_.url)===ce(p);if(!(h.reload||w))if(l<=h.preload_data){t={element:c,href:c.href},n=N.tap;const m=await fe(p,!1);if(!m)return;Jt(m)}else l<=h.preload_code&&(t={element:c,href:c.href},n=l,_e(p))}function s(){a.disconnect();for(const o of P.querySelectorAll("a")){const{url:l,external:c,download:d}=we(o,x,v.hash);if(c||d)continue;const p=ne(o);p.reload||(p.preload_code===N.viewport&&a.observe(o),p.preload_code===N.eager&&_e(l))}}M.add(s),s()}function Q(e,t){if(e instanceof Ee)return e.body;const n=Ue(e),r=Dt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function nn(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function rn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Me(),!X){const r=Ne(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};rt.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Me()}),navigator.connection?.saveData||tn(),P.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ze(t.composedPath()[0],P);if(!n)return;const{url:r,external:a,target:i,download:s}=we(n,x,v.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const o=ne(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[c,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=c===pe(location);if(a||o.reload&&(!p||!d)){dt({url:r,type:"link",event:t})?X=!0:t.preventDefault();return}if(d!==void 0&&p){const[,f]=_.url.href.split("#");if(f===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(d));u&&(u.scrollIntoView(),u.focus())}return}if(F=!0,Te(y),e(r),!o.replace_state)return;F=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await B({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),P.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ue(s,x,!1))return;const o=t.target,l=ne(o);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(o,r);s.search=new URLSearchParams(c).toString(),B({type:"form",url:s,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!ke){if(t.state?.[K]){const n=t.state[K];if(j={},n===y)return;const r=C[n],a=t.state[Ye]??{},i=new URL(t.state[Ct]??location.href),s=t.state[H],o=_.url?pe(location)===pe(_.url):!1;if(s===R&&(ot||o)){a!==k.state&&(k.state=a),e(i),C[y]=q(),r&&scrollTo(r.x,r.y),y=n;return}const c=n-y;await B({type:"popstate",url:i,popped:{state:a,scroll:r,delta:c},accept:()=>{y=n,R=s},block:()=>{history.go(-c)},nav_token:j,event:t})}else if(!F){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[K]:++y,[H]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Bt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&$.navigating.set(J.current=null)});function e(t){_.url=k.url=t,$.page.set(je(k)),$.page.notify()}}async function an(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:s,data:o,form:l}){at=!0;const c=new URL(location.href);let d;({params:a={},route:i={id:null}}=await fe(c,!1)||{}),d=Pe.find(({id:u})=>u===i.id);let p,f=!0;try{const u=r.map(async(w,m)=>{const g=o[m];return g?.uses&&(g.uses=on(g.uses)),Oe({loader:v.nodes[w],url:c,params:a,route:i,parent:async()=>{const S={};for(let E=0;E<m;E+=1)Object.assign(S,(await u[E]).data);return S},server_data_node:$e(g)})}),h=await Promise.all(u);if(d){const w=d.layouts;for(let m=0;m<w.length;m++)w[m]||h.splice(m,0,void 0)}p=le({url:c,params:a,branch:h,status:t,error:n,form:l,route:d??null})}catch(u){if(u instanceof Re){await Y(new URL(u.location,location.href));return}p=await Ce({status:Ue(u),error:await Q(u,{url:c,params:a,route:i}),url:c,route:i}),e.textContent="",f=!1}p.props.page&&(p.props.page.state={}),await ct(p,e,f)}function on(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let ke=!1;function sn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=pt(e);if(r&&document.getElementById(r)){const{x:i,y:s}=q();setTimeout(()=>{const o=history.state;ke=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(i,s),ke=!1})}else{const i=document.body,s=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),s!==null?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let s=0;s<a.rangeCount;s+=1)i.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===i.length){for(let s=0;s<a.rangeCount;s+=1){const o=i[s],l=a.getRangeAt(s);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function Ne(e,t,n,r,a=null){let i,s;const o=new Promise((c,d)=>{i=c,s=d});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:q()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:i,reject:s}}function je(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 ln(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function pt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{gn as a,fn as l,k as p,$ as s};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BZSViVUm.js","../chunks/BDTjsgX_.js","../chunks/BgyhSYBR.js","../chunks/LB_B8bnq.js","../assets/0.CHlQvdd5.css","../nodes/1.BBi7MY2x.js","../chunks/BLwfUV_X.js","../chunks/BBU56p10.js","../chunks/CSXJCotK.js","../nodes/2.4kZUm8L6.js","../chunks/CeI9go5C.js","../assets/2.Nit4L07m.css"])))=>i.map(i=>d[i]);
2
- import{h as G,g as W,f as H,E as J,au as K,av as Q,aw as X,L as v,ax as Z,ay as O,az as p,A as $,aA as ee,aB as te,u as re,x as ae,aC as ne,aD as se,N as ie,aE as oe,aF as ce,S as ue,aG as M,aH as le,ai as fe,aI as de,P as _e,I as me,v as ve,aJ as he,y as w,X as ge,U as ye,aK as I,V as Ee,W as be,Q as Pe,aL as L}from"../chunks/BgyhSYBR.js";import{h as Se,m as Re,u as Oe,s as we}from"../chunks/BLwfUV_X.js";import{a as R,c as x,f as U,t as Ae}from"../chunks/BDTjsgX_.js";import{o as Ie}from"../chunks/CSXJCotK.js";import{i as T,b as C}from"../chunks/CeI9go5C.js";import{B as Le}from"../chunks/LB_B8bnq.js";function D(r,e,n){G&&W();var c=new Le(r);H(()=>{var i=e()??null;c.ensure(i,i&&(t=>n(t,i)))},J)}let A=!1;function xe(r){var e=A;try{return A=!1,[r(),A]}finally{A=e}}function N(r,e,n,c){var i=!ae||(n&ne)!==0,t=(n&te)!==0,a=(n&ce)!==0,s=c,E=!0,P=()=>(E&&(E=!1,s=a?re(c):c),s),u;if(t){var h=ue in r||M in r;u=K(r,e)?.set??(h&&e in r?o=>r[e]=o:void 0)}var d,_=!1;t?[d,_]=xe(()=>r[e]):d=r[e],d===void 0&&c!==void 0&&(d=P(),u&&(i&&Q(),u(d)));var f;if(i?f=()=>{var o=r[e];return o===void 0?P():(E=!0,o)}:f=()=>{var o=r[e];return o!==void 0&&(s=void 0),o===void 0?s:o},i&&(n&X)===0)return f;if(u){var l=r.$$legacy;return(function(o,y){return arguments.length>0?((!i||!y||l||_)&&u(y?f():o),o):f()})}var g=!1,m=((n&se)!==0?ie:oe)(()=>(g=!1,f()));t&&v(m);var S=$;return(function(o,y){if(arguments.length>0){const b=y?v(m):i&&t?Z(o):o;return O(m,b),g=!0,s!==void 0&&(s=b),o}return p&&g||(S.f&ee)!==0?m.v:v(m)})}function Te(r){return class extends Ce{constructor(e){super({component:r,...e})}}}class Ce{#t;#e;constructor(e){var n=new Map,c=(t,a)=>{var s=de(a,!1,!1);return n.set(t,s),s};const i=new Proxy({...e.props||{},$$events:{}},{get(t,a){return v(n.get(a)??c(a,Reflect.get(t,a)))},has(t,a){return a===M?!0:(v(n.get(a)??c(a,Reflect.get(t,a))),Reflect.has(t,a))},set(t,a,s){return O(n.get(a)??c(a,s),s),Reflect.set(t,a,s)}});this.#e=(e.hydrate?Se:Re)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&le(),this.#t=i.$$events;for(const t of Object.keys(this.#e))t==="$set"||t==="$destroy"||t==="$on"||fe(this,t,{get(){return this.#e[t]},set(a){this.#e[t]=a},enumerable:!0});this.#e.$set=t=>{Object.assign(i,t)},this.#e.$destroy=()=>{Oe(this.#e)}}$set(e){this.#e.$set(e)}$on(e,n){this.#t[e]=this.#t[e]||[];const c=(...i)=>n.call(this,...i);return this.#t[e].push(c),()=>{this.#t[e]=this.#t[e].filter(i=>i!==c)}}$destroy(){this.#e.$destroy()}}const De="modulepreload",Ne=function(r,e){return new URL(r,e).href},k={},j=function(e,n,c){let i=Promise.resolve();if(n&&n.length>0){let P=function(u){return Promise.all(u.map(h=>Promise.resolve(h).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),E=s?.nonce||s?.getAttribute("nonce");i=P(n.map(u=>{if(u=Ne(u,c),u in k)return;k[u]=!0;const h=u.endsWith(".css"),d=h?'[rel="stylesheet"]':"";if(c)for(let f=a.length-1;f>=0;f--){const l=a[f];if(l.href===u&&(!h||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${d}`))return;const _=document.createElement("link");if(_.rel=h?"stylesheet":De,h||(_.as="script"),_.crossOrigin="",_.href=u,E&&_.setAttribute("nonce",E),document.head.appendChild(_),h)return new Promise((f,l)=>{_.addEventListener("load",f),_.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${u}`)))})}))}function t(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&t(s.reason);return e().catch(t)})},We={};var je=U('<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>'),Be=U("<!> <!>",1);function ke(r,e){_e(e,!0);let n=N(e,"components",23,()=>[]),c=N(e,"data_0",3,null),i=N(e,"data_1",3,null);me(()=>e.stores.page.set(e.page)),ve(()=>{e.stores,e.page,e.constructors,n(),e.form,c(),i(),e.stores.page.notify()});let t=I(!1),a=I(!1),s=I(null);Ie(()=>{const l=e.stores.page.subscribe(()=>{v(t)&&(O(a,!0),he().then(()=>{O(s,document.title||"untitled page",!0)}))});return O(t,!0),l});const E=L(()=>e.constructors[1]);var P=Be(),u=w(P);{var h=l=>{const g=L(()=>e.constructors[0]);var m=x(),S=w(m);D(S,()=>v(g),(o,y)=>{C(y(o,{get data(){return c()},get form(){return e.form},get params(){return e.page.params},children:(b,Ue)=>{var B=x(),Y=w(B);D(Y,()=>v(E),(q,F)=>{C(F(q,{get data(){return i()},get form(){return e.form},get params(){return e.page.params}}),z=>n()[1]=z,()=>n()?.[1])}),R(b,B)},$$slots:{default:!0}}),b=>n()[0]=b,()=>n()?.[0])}),R(l,m)},d=l=>{const g=L(()=>e.constructors[0]);var m=x(),S=w(m);D(S,()=>v(g),(o,y)=>{C(y(o,{get data(){return c()},get form(){return e.form},get params(){return e.page.params}}),b=>n()[0]=b,()=>n()?.[0])}),R(l,m)};T(u,l=>{e.constructors[1]?l(h):l(d,!1)})}var _=ge(u,2);{var f=l=>{var g=je(),m=Ee(g);{var S=o=>{var y=Ae();Pe(()=>we(y,v(s))),R(o,y)};T(m,o=>{v(a)&&o(S)})}be(g),R(l,g)};T(_,l=>{v(t)&&l(f)})}R(r,P),ye()}const He=Te(ke),Je=[()=>j(()=>import("../nodes/0.BZSViVUm.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>j(()=>import("../nodes/1.BBi7MY2x.js"),__vite__mapDeps([5,1,2,6,7,8]),import.meta.url),()=>j(()=>import("../nodes/2.4kZUm8L6.js"),__vite__mapDeps([9,1,2,8,6,10,3,11]),import.meta.url)],Ke=[],Qe={"/":[2]},V={handleError:(({error:r})=>{console.error(r)}),reroute:(()=>{}),transport:{}},Me=Object.fromEntries(Object.entries(V.transport).map(([r,e])=>[r,e.decode])),Xe=Object.fromEntries(Object.entries(V.transport).map(([r,e])=>[r,e.encode])),Ze=!1,pe=(r,e)=>Me[r](e);export{pe as decode,Me as decoders,Qe as dictionary,Xe as encoders,Ze as hash,V as hooks,We as matchers,Je as nodes,He as root,Ke as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BZSViVUm.js","../chunks/BDTjsgX_.js","../chunks/BgyhSYBR.js","../chunks/LB_B8bnq.js","../assets/0.CHlQvdd5.css","../nodes/1.DeQ78LGT.js","../chunks/BLwfUV_X.js","../chunks/Z7wY424r.js","../chunks/CSXJCotK.js","../nodes/2.4kZUm8L6.js","../chunks/CeI9go5C.js","../assets/2.Nit4L07m.css"])))=>i.map(i=>d[i]);
2
+ import{h as G,g as W,f as H,E as J,au as K,av as Q,aw as X,L as v,ax as Z,ay as O,az as p,A as $,aA as ee,aB as te,u as re,x as ae,aC as ne,aD as se,N as ie,aE as oe,aF as ce,S as ue,aG as M,aH as le,ai as fe,aI as de,P as _e,I as me,v as ve,aJ as he,y as w,X as ge,U as ye,aK as I,V as Ee,W as be,Q as Pe,aL as L}from"../chunks/BgyhSYBR.js";import{h as Se,m as Re,u as Oe,s as we}from"../chunks/BLwfUV_X.js";import{a as R,c as x,f as U,t as Ae}from"../chunks/BDTjsgX_.js";import{o as Ie}from"../chunks/CSXJCotK.js";import{i as T,b as C}from"../chunks/CeI9go5C.js";import{B as Le}from"../chunks/LB_B8bnq.js";function D(r,e,n){G&&W();var c=new Le(r);H(()=>{var i=e()??null;c.ensure(i,i&&(t=>n(t,i)))},J)}let A=!1;function xe(r){var e=A;try{return A=!1,[r(),A]}finally{A=e}}function N(r,e,n,c){var i=!ae||(n&ne)!==0,t=(n&te)!==0,a=(n&ce)!==0,s=c,E=!0,P=()=>(E&&(E=!1,s=a?re(c):c),s),u;if(t){var h=ue in r||M in r;u=K(r,e)?.set??(h&&e in r?o=>r[e]=o:void 0)}var d,_=!1;t?[d,_]=xe(()=>r[e]):d=r[e],d===void 0&&c!==void 0&&(d=P(),u&&(i&&Q(),u(d)));var f;if(i?f=()=>{var o=r[e];return o===void 0?P():(E=!0,o)}:f=()=>{var o=r[e];return o!==void 0&&(s=void 0),o===void 0?s:o},i&&(n&X)===0)return f;if(u){var l=r.$$legacy;return(function(o,y){return arguments.length>0?((!i||!y||l||_)&&u(y?f():o),o):f()})}var g=!1,m=((n&se)!==0?ie:oe)(()=>(g=!1,f()));t&&v(m);var S=$;return(function(o,y){if(arguments.length>0){const b=y?v(m):i&&t?Z(o):o;return O(m,b),g=!0,s!==void 0&&(s=b),o}return p&&g||(S.f&ee)!==0?m.v:v(m)})}function Te(r){return class extends Ce{constructor(e){super({component:r,...e})}}}class Ce{#t;#e;constructor(e){var n=new Map,c=(t,a)=>{var s=de(a,!1,!1);return n.set(t,s),s};const i=new Proxy({...e.props||{},$$events:{}},{get(t,a){return v(n.get(a)??c(a,Reflect.get(t,a)))},has(t,a){return a===M?!0:(v(n.get(a)??c(a,Reflect.get(t,a))),Reflect.has(t,a))},set(t,a,s){return O(n.get(a)??c(a,s),s),Reflect.set(t,a,s)}});this.#e=(e.hydrate?Se:Re)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&le(),this.#t=i.$$events;for(const t of Object.keys(this.#e))t==="$set"||t==="$destroy"||t==="$on"||fe(this,t,{get(){return this.#e[t]},set(a){this.#e[t]=a},enumerable:!0});this.#e.$set=t=>{Object.assign(i,t)},this.#e.$destroy=()=>{Oe(this.#e)}}$set(e){this.#e.$set(e)}$on(e,n){this.#t[e]=this.#t[e]||[];const c=(...i)=>n.call(this,...i);return this.#t[e].push(c),()=>{this.#t[e]=this.#t[e].filter(i=>i!==c)}}$destroy(){this.#e.$destroy()}}const De="modulepreload",Ne=function(r,e){return new URL(r,e).href},k={},j=function(e,n,c){let i=Promise.resolve();if(n&&n.length>0){let P=function(u){return Promise.all(u.map(h=>Promise.resolve(h).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),E=s?.nonce||s?.getAttribute("nonce");i=P(n.map(u=>{if(u=Ne(u,c),u in k)return;k[u]=!0;const h=u.endsWith(".css"),d=h?'[rel="stylesheet"]':"";if(c)for(let f=a.length-1;f>=0;f--){const l=a[f];if(l.href===u&&(!h||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${d}`))return;const _=document.createElement("link");if(_.rel=h?"stylesheet":De,h||(_.as="script"),_.crossOrigin="",_.href=u,E&&_.setAttribute("nonce",E),document.head.appendChild(_),h)return new Promise((f,l)=>{_.addEventListener("load",f),_.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${u}`)))})}))}function t(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&t(s.reason);return e().catch(t)})},We={};var je=U('<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>'),Be=U("<!> <!>",1);function ke(r,e){_e(e,!0);let n=N(e,"components",23,()=>[]),c=N(e,"data_0",3,null),i=N(e,"data_1",3,null);me(()=>e.stores.page.set(e.page)),ve(()=>{e.stores,e.page,e.constructors,n(),e.form,c(),i(),e.stores.page.notify()});let t=I(!1),a=I(!1),s=I(null);Ie(()=>{const l=e.stores.page.subscribe(()=>{v(t)&&(O(a,!0),he().then(()=>{O(s,document.title||"untitled page",!0)}))});return O(t,!0),l});const E=L(()=>e.constructors[1]);var P=Be(),u=w(P);{var h=l=>{const g=L(()=>e.constructors[0]);var m=x(),S=w(m);D(S,()=>v(g),(o,y)=>{C(y(o,{get data(){return c()},get form(){return e.form},get params(){return e.page.params},children:(b,Ue)=>{var B=x(),Y=w(B);D(Y,()=>v(E),(q,F)=>{C(F(q,{get data(){return i()},get form(){return e.form},get params(){return e.page.params}}),z=>n()[1]=z,()=>n()?.[1])}),R(b,B)},$$slots:{default:!0}}),b=>n()[0]=b,()=>n()?.[0])}),R(l,m)},d=l=>{const g=L(()=>e.constructors[0]);var m=x(),S=w(m);D(S,()=>v(g),(o,y)=>{C(y(o,{get data(){return c()},get form(){return e.form},get params(){return e.page.params}}),b=>n()[0]=b,()=>n()?.[0])}),R(l,m)};T(u,l=>{e.constructors[1]?l(h):l(d,!1)})}var _=ge(u,2);{var f=l=>{var g=je(),m=Ee(g);{var S=o=>{var y=Ae();Pe(()=>we(y,v(s))),R(o,y)};T(m,o=>{v(a)&&o(S)})}be(g),R(l,g)};T(_,l=>{v(t)&&l(f)})}R(r,P),ye()}const He=Te(ke),Je=[()=>j(()=>import("../nodes/0.BZSViVUm.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>j(()=>import("../nodes/1.DeQ78LGT.js"),__vite__mapDeps([5,1,2,6,7,8]),import.meta.url),()=>j(()=>import("../nodes/2.4kZUm8L6.js"),__vite__mapDeps([9,1,2,8,6,10,3,11]),import.meta.url)],Ke=[],Qe={"/":[2]},V={handleError:(({error:r})=>{console.error(r)}),reroute:(()=>{}),transport:{}},Me=Object.fromEntries(Object.entries(V.transport).map(([r,e])=>[r,e.decode])),Xe=Object.fromEntries(Object.entries(V.transport).map(([r,e])=>[r,e.encode])),Ze=!1,pe=(r,e)=>Me[r](e);export{pe as decode,Me as decoders,Qe as dictionary,Xe as encoders,Ze as hash,V as hooks,We as matchers,Je as nodes,He as root,Ke as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/Z7wY424r.js";export{o as load_css,r as start};
@@ -1 +1 @@
1
- import{a as b,f as k}from"../chunks/BDTjsgX_.js";import{w as x,I as y,v as i,u as $,J as l,K as w,L as v,M as E,N as I,O as J,P as K,y as L,Q as M,U as N,V as u,W as m,X as O}from"../chunks/BgyhSYBR.js";import{s as _}from"../chunks/BLwfUV_X.js";import{s as P,p as g}from"../chunks/BBU56p10.js";function Q(a=!1){const t=x,e=t.l.u;if(!e)return;let r=()=>E(t.s);if(a){let o=0,s={};const f=I(()=>{let p=!1;const c=t.s;for(const n in c)c[n]!==s[n]&&(s[n]=c[n],p=!0);return p&&o++,o});r=()=>v(f)}e.b.length&&y(()=>{d(t,r),l(e.b)}),i(()=>{const o=$(()=>e.m.map(w));return()=>{for(const s of o)typeof s=="function"&&s()}}),e.a.length&&i(()=>{d(t,r),l(e.a)})}function d(a,t){if(a.l.s)for(const e of a.l.s)v(e);t()}J();const U={get error(){return g.error},get status(){return g.status}};P.updated.check;const h=U;var V=k("<h1> </h1> <p> </p>",1);function z(a,t){K(t,!1),Q();var e=V(),r=L(e),o=u(r,!0);m(r);var s=O(r,2),f=u(s,!0);m(s),M(()=>{_(o,h.status),_(f,h.error?.message)}),b(a,e),N()}export{z as component};
1
+ import{a as b,f as k}from"../chunks/BDTjsgX_.js";import{w as x,I as y,v as i,u as $,J as l,K as w,L as v,M as E,N as I,O as J,P as K,y as L,Q as M,U as N,V as u,W as m,X as O}from"../chunks/BgyhSYBR.js";import{s as _}from"../chunks/BLwfUV_X.js";import{s as P,p as g}from"../chunks/Z7wY424r.js";function Q(a=!1){const t=x,e=t.l.u;if(!e)return;let r=()=>E(t.s);if(a){let o=0,s={};const f=I(()=>{let p=!1;const c=t.s;for(const n in c)c[n]!==s[n]&&(s[n]=c[n],p=!0);return p&&o++,o});r=()=>v(f)}e.b.length&&y(()=>{d(t,r),l(e.b)}),i(()=>{const o=$(()=>e.m.map(w));return()=>{for(const s of o)typeof s=="function"&&s()}}),e.a.length&&i(()=>{d(t,r),l(e.a)})}function d(a,t){if(a.l.s)for(const e of a.l.s)v(e);t()}J();const U={get error(){return g.error},get status(){return g.status}};P.updated.check;const h=U;var V=k("<h1> </h1> <p> </p>",1);function z(a,t){K(t,!1),Q();var e=V(),r=L(e),o=u(r,!0);m(r);var s=O(r,2),f=u(s,!0);m(s),M(()=>{_(o,h.status),_(f,h.error?.message)}),b(a,e),N()}export{z as component};
@@ -1 +1 @@
1
- {"version":"1771677647749"}
1
+ {"version":"1771679200863"}
@@ -17,11 +17,11 @@
17
17
  document.documentElement.dataset.theme = t;
18
18
  })();
19
19
  </script>
20
- <link href="/_app/immutable/entry/start.ChPqq9fC.js" rel="modulepreload">
21
- <link href="/_app/immutable/chunks/BBU56p10.js" rel="modulepreload">
20
+ <link href="/_app/immutable/entry/start.2_-K8ht9.js" rel="modulepreload">
21
+ <link href="/_app/immutable/chunks/Z7wY424r.js" rel="modulepreload">
22
22
  <link href="/_app/immutable/chunks/BgyhSYBR.js" rel="modulepreload">
23
23
  <link href="/_app/immutable/chunks/CSXJCotK.js" rel="modulepreload">
24
- <link href="/_app/immutable/entry/app.D79gwDvV.js" rel="modulepreload">
24
+ <link href="/_app/immutable/entry/app.CXqPOJTd.js" rel="modulepreload">
25
25
  <link href="/_app/immutable/chunks/BLwfUV_X.js" rel="modulepreload">
26
26
  <link href="/_app/immutable/chunks/BDTjsgX_.js" rel="modulepreload">
27
27
  <link href="/_app/immutable/chunks/CeI9go5C.js" rel="modulepreload">
@@ -32,15 +32,15 @@
32
32
  <div style="display: contents">
33
33
  <script>
34
34
  {
35
- __sveltekit_o6nrto = {
35
+ __sveltekit_1itfz76 = {
36
36
  base: ""
37
37
  };
38
38
 
39
39
  const element = document.currentScript.parentElement;
40
40
 
41
41
  Promise.all([
42
- import("/_app/immutable/entry/start.ChPqq9fC.js"),
43
- import("/_app/immutable/entry/app.D79gwDvV.js")
42
+ import("/_app/immutable/entry/start.2_-K8ht9.js"),
43
+ import("/_app/immutable/entry/app.CXqPOJTd.js")
44
44
  ]).then(([kit, app]) => {
45
45
  kit.start(app, element);
46
46
  });
package/dist/cli.js CHANGED
@@ -7735,7 +7735,7 @@ var esm_default6 = createPrompt((config, done) => {
7735
7735
  });
7736
7736
  // ../cli/src/cli.ts
7737
7737
  import { spawn, spawnSync as spawnSync2 } from "child_process";
7738
- import { homedir as homedir5, platform as platform2 } from "os";
7738
+ import { homedir as homedir6, platform as platform2 } from "os";
7739
7739
  import { join as join11, dirname } from "path";
7740
7740
  import {
7741
7741
  existsSync as existsSync10,
@@ -7743,7 +7743,7 @@ import {
7743
7743
  writeFileSync as writeFileSync6,
7744
7744
  readFileSync as readFileSync9,
7745
7745
  copyFileSync,
7746
- readdirSync as readdirSync4,
7746
+ readdirSync,
7747
7747
  rmSync as rmSync3,
7748
7748
  statSync as statSync7,
7749
7749
  lstatSync as lstatSync3
@@ -8266,7 +8266,7 @@ var open_default = open;
8266
8266
 
8267
8267
  // ../core/dist/index.js
8268
8268
  import { createRequire as createRequire2 } from "node:module";
8269
- import { homedir } from "os";
8269
+ import { homedir as homedir2 } from "os";
8270
8270
  import { join as join2 } from "path";
8271
8271
  import { existsSync as existsSync3, readFileSync as readFileSync2, statSync } from "node:fs";
8272
8272
  import { join as join4 } from "node:path";
@@ -8275,14 +8275,14 @@ import {
8275
8275
  lstatSync,
8276
8276
  mkdirSync as mkdirSync2,
8277
8277
  readFileSync as readFileSync3,
8278
- readdirSync,
8278
+ readdirSync as readdirSync2,
8279
8279
  statSync as statSync2,
8280
8280
  symlinkSync,
8281
8281
  unlinkSync,
8282
8282
  writeFileSync as writeFileSync2
8283
8283
  } from "node:fs";
8284
8284
  import { join as join5 } from "node:path";
8285
- import { existsSync as existsSync5, readFileSync as readFileSync4, readdirSync as readdirSync2 } from "node:fs";
8285
+ import { existsSync as existsSync5, readFileSync as readFileSync4, readdirSync as readdirSync3 } from "node:fs";
8286
8286
  import { join as join6 } from "node:path";
8287
8287
  import { existsSync as existsSync7, readFileSync as readFileSync5 } from "node:fs";
8288
8288
  import { spawnSync } from "node:child_process";
@@ -16317,7 +16317,7 @@ var $parseDocument = publicApi.parseDocument;
16317
16317
  var $stringify = publicApi.stringify;
16318
16318
  var $visit = visit.visit;
16319
16319
  var $visitAsync = visit.visitAsync;
16320
- var DEFAULT_BASE_PATH = join2(homedir(), ".agents");
16320
+ var DEFAULT_BASE_PATH = join2(homedir2(), ".agents");
16321
16321
  function detectSchema(db) {
16322
16322
  let columns = [];
16323
16323
  let hasMemories = false;
@@ -16797,8 +16797,8 @@ function detectExistingSetup(basePath) {
16797
16797
  let memoryLogCount = 0;
16798
16798
  if (existsSync3(memoryDir)) {
16799
16799
  try {
16800
- const { readdirSync: readdirSync3 } = __require2("node:fs");
16801
- const files = readdirSync3(memoryDir);
16800
+ const { readdirSync: readdirSync22 } = __require2("node:fs");
16801
+ const files = readdirSync22(memoryDir);
16802
16802
  memoryLogCount = files.filter((f) => f.endsWith(".md") && !f.startsWith("TEMPLATE")).length;
16803
16803
  } catch {}
16804
16804
  }
@@ -16846,7 +16846,7 @@ function symlinkClaudeSkills(basePath) {
16846
16846
  }
16847
16847
  const symlinkedSkills = [];
16848
16848
  try {
16849
- const skills = readdirSync(claudeSkillsDir);
16849
+ const skills = readdirSync2(claudeSkillsDir);
16850
16850
  for (const skill of skills) {
16851
16851
  const src = join5(claudeSkillsDir, skill);
16852
16852
  const dest = join5(targetSkillsDir, skill);
@@ -16943,7 +16943,7 @@ async function unifySkills(basePath, config = {}) {
16943
16943
  path: reg.path
16944
16944
  });
16945
16945
  try {
16946
- const entries = readdirSync(reg.path);
16946
+ const entries = readdirSync2(reg.path);
16947
16947
  for (const entry of entries) {
16948
16948
  const entryPath = join5(reg.path, entry);
16949
16949
  try {
@@ -17090,7 +17090,7 @@ function importMemoryLogs(basePath, db) {
17090
17090
  }
17091
17091
  let files;
17092
17092
  try {
17093
- files = readdirSync2(memoryDir).filter((f) => f.endsWith(".md") && !f.startsWith("TEMPLATE"));
17093
+ files = readdirSync3(memoryDir).filter((f) => f.endsWith(".md") && !f.startsWith("TEMPLATE"));
17094
17094
  } catch (err) {
17095
17095
  const message = err instanceof Error ? err.message : String(err);
17096
17096
  result.errors.push(`Failed to read memory directory: ${message}`);
@@ -17376,13 +17376,13 @@ function getSkillsRunnerCommand(family, skillsArgs) {
17376
17376
 
17377
17377
  // ../connector-openclaw/dist/index.js
17378
17378
  import { createRequire as createRequire3 } from "node:module";
17379
- import { homedir as homedir2 } from "os";
17379
+ import { homedir as homedir22 } from "os";
17380
17380
  import { join as join22 } from "path";
17381
17381
  import {
17382
17382
  existsSync as existsSync6,
17383
17383
  lstatSync as lstatSync2,
17384
17384
  mkdirSync as mkdirSync3,
17385
- readdirSync as readdirSync3,
17385
+ readdirSync as readdirSync4,
17386
17386
  statSync as statSync3,
17387
17387
  symlinkSync as symlinkSync2,
17388
17388
  unlinkSync as unlinkSync2
@@ -17395,7 +17395,7 @@ import {
17395
17395
  rmSync,
17396
17396
  writeFileSync
17397
17397
  } from "node:fs";
17398
- import { homedir as homedir22 } from "node:os";
17398
+ import { homedir } from "node:os";
17399
17399
  import { delimiter, join } from "node:path";
17400
17400
  import { runInNewContext } from "node:vm";
17401
17401
  var __commonJS3 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
@@ -24941,7 +24941,7 @@ var $parseDocument2 = publicApi2.parseDocument;
24941
24941
  var $stringify2 = publicApi2.stringify;
24942
24942
  var $visit2 = visit2.visit;
24943
24943
  var $visitAsync2 = visit2.visitAsync;
24944
- var DEFAULT_BASE_PATH2 = join22(homedir2(), ".agents");
24944
+ var DEFAULT_BASE_PATH2 = join22(homedir22(), ".agents");
24945
24945
  var IDENTITY_FILES2 = {
24946
24946
  agents: {
24947
24947
  path: "AGENTS.md",
@@ -25059,7 +25059,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
25059
25059
  }
25060
25060
  let entries;
25061
25061
  try {
25062
- entries = readdirSync3(sourceDir);
25062
+ entries = readdirSync4(sourceDir);
25063
25063
  } catch (e) {
25064
25064
  result.errors.push({
25065
25065
  path: sourceDir,
@@ -25345,7 +25345,7 @@ class OpenClawConnector extends BaseConnector {
25345
25345
  }
25346
25346
  });
25347
25347
  const configsPatched = patchResult.patched;
25348
- const basePath = join(homedir22(), ".agents");
25348
+ const basePath = join(homedir(), ".agents");
25349
25349
  const hookDir = join(basePath, "hooks", "agent-memory");
25350
25350
  for (const file of ["HOOK.md", "handler.js", "package.json"]) {
25351
25351
  const filePath = join(hookDir, file);
@@ -25394,7 +25394,7 @@ class OpenClawConnector extends BaseConnector {
25394
25394
  push(pathEntry);
25395
25395
  }
25396
25396
  }
25397
- const home22 = homedir22();
25397
+ const home22 = homedir();
25398
25398
  const xdgConfigHome = process.env.XDG_CONFIG_HOME ? this.expandPath(process.env.XDG_CONFIG_HOME) : join(home22, ".config");
25399
25399
  const xdgStateHome = process.env.XDG_STATE_HOME ? this.expandPath(process.env.XDG_STATE_HOME) : join(home22, ".local", "state");
25400
25400
  push(process.env.OPENCLAW_HOME ? join(this.expandPath(process.env.OPENCLAW_HOME), "openclaw.json") : undefined);
@@ -25591,7 +25591,7 @@ configured by rejecting session claims from the second path (HTTP 409).
25591
25591
  }
25592
25592
  expandPath(path2) {
25593
25593
  if (path2.startsWith("~")) {
25594
- return join(homedir22(), path2.slice(1));
25594
+ return join(homedir(), path2.slice(1));
25595
25595
  }
25596
25596
  return path2;
25597
25597
  }
@@ -25599,23 +25599,23 @@ configured by rejecting session claims from the second path (HTTP 409).
25599
25599
 
25600
25600
  // ../connector-claude-code/dist/index.js
25601
25601
  import { createRequire as createRequire4 } from "node:module";
25602
- import { homedir as homedir3 } from "os";
25602
+ import { homedir as homedir23 } from "os";
25603
25603
  import { join as join23 } from "path";
25604
25604
  import {
25605
25605
  existsSync as existsSync62,
25606
25606
  lstatSync as lstatSync22,
25607
25607
  mkdirSync as mkdirSync32,
25608
- readdirSync as readdirSync32,
25608
+ readdirSync as readdirSync42,
25609
25609
  statSync as statSync32,
25610
25610
  symlinkSync as symlinkSync22,
25611
25611
  unlinkSync as unlinkSync22
25612
25612
  } from "node:fs";
25613
25613
  import { join as join72 } from "node:path";
25614
25614
  import { existsSync as existsSync2, mkdirSync as mkdirSync4, readFileSync as readFileSync6, writeFileSync as writeFileSync3 } from "node:fs";
25615
- import { homedir as homedir32 } from "node:os";
25615
+ import { homedir as homedir3 } from "node:os";
25616
25616
  import { join as join3 } from "node:path";
25617
25617
  import { createRequire as createRequire22 } from "node:module";
25618
- import { homedir as homedir23 } from "os";
25618
+ import { homedir as homedir222 } from "os";
25619
25619
  import { join as join222 } from "path";
25620
25620
  import { existsSync as existsSync32, readFileSync as readFileSync22, statSync as statSync4 } from "node:fs";
25621
25621
  import { join as join42 } from "node:path";
@@ -33162,7 +33162,7 @@ var $parseDocument3 = publicApi3.parseDocument;
33162
33162
  var $stringify3 = publicApi3.stringify;
33163
33163
  var $visit3 = visit3.visit;
33164
33164
  var $visitAsync3 = visit3.visitAsync;
33165
- var DEFAULT_BASE_PATH3 = join23(homedir3(), ".agents");
33165
+ var DEFAULT_BASE_PATH3 = join23(homedir23(), ".agents");
33166
33166
  var IDENTITY_FILES3 = {
33167
33167
  agents: {
33168
33168
  path: "AGENTS.md",
@@ -33280,7 +33280,7 @@ function symlinkSkills2(sourceDir, targetDir, options = {}) {
33280
33280
  }
33281
33281
  let entries;
33282
33282
  try {
33283
- entries = readdirSync32(sourceDir);
33283
+ entries = readdirSync42(sourceDir);
33284
33284
  } catch (e) {
33285
33285
  result.errors.push({
33286
33286
  path: sourceDir,
@@ -40895,7 +40895,7 @@ var $parseDocument22 = publicApi22.parseDocument;
40895
40895
  var $stringify22 = publicApi22.stringify;
40896
40896
  var $visit22 = visit22.visit;
40897
40897
  var $visitAsync22 = visit22.visitAsync;
40898
- var DEFAULT_BASE_PATH22 = join222(homedir23(), ".agents");
40898
+ var DEFAULT_BASE_PATH22 = join222(homedir222(), ".agents");
40899
40899
  var IDENTITY_FILES22 = {
40900
40900
  agents: {
40901
40901
  path: "AGENTS.md",
@@ -40988,7 +40988,7 @@ class ClaudeCodeConnector extends BaseConnector2 {
40988
40988
  filesWritten.push(claudeMdPath);
40989
40989
  }
40990
40990
  const sourceSkillsDir = join3(expandedBasePath, "skills");
40991
- const targetSkillsDir = join3(homedir32(), ".claude", "skills");
40991
+ const targetSkillsDir = join3(homedir3(), ".claude", "skills");
40992
40992
  this.symlinkSkills(sourceSkillsDir, targetSkillsDir);
40993
40993
  return {
40994
40994
  success: true,
@@ -41031,7 +41031,7 @@ class ClaudeCodeConnector extends BaseConnector2 {
41031
41031
  }
41032
41032
  }
41033
41033
  getConfigPath() {
41034
- return join3(homedir32(), ".claude", "settings.json");
41034
+ return join3(homedir3(), ".claude", "settings.json");
41035
41035
  }
41036
41036
  async onSessionStart(ctx) {
41037
41037
  try {
@@ -41082,7 +41082,7 @@ class ClaudeCodeConnector extends BaseConnector2 {
41082
41082
  }
41083
41083
  async configureHooks(_basePath) {
41084
41084
  const settingsPath = this.getConfigPath();
41085
- const claudeDir = join3(homedir32(), ".claude");
41085
+ const claudeDir = join3(homedir3(), ".claude");
41086
41086
  mkdirSync4(claudeDir, { recursive: true });
41087
41087
  let settings = {};
41088
41088
  if (existsSync2(settingsPath)) {
@@ -41144,9 +41144,9 @@ class ClaudeCodeConnector extends BaseConnector2 {
41144
41144
  writeFileSync3(settingsPath, JSON.stringify(settings, null, 2));
41145
41145
  }
41146
41146
  async generateClaudeMd(basePath) {
41147
- const claudeMdPath = join3(homedir32(), ".claude", "CLAUDE.md");
41147
+ const claudeMdPath = join3(homedir3(), ".claude", "CLAUDE.md");
41148
41148
  const agentsMdPath = join3(basePath, "AGENTS.md");
41149
- mkdirSync4(join3(homedir32(), ".claude"), { recursive: true });
41149
+ mkdirSync4(join3(homedir3(), ".claude"), { recursive: true });
41150
41150
  if (existsSync2(agentsMdPath)) {
41151
41151
  const raw = readFileSync6(agentsMdPath, "utf-8");
41152
41152
  const userContent = this.stripSignetBlock(raw);
@@ -41186,7 +41186,7 @@ class ClaudeCodeConnector extends BaseConnector2 {
41186
41186
  }
41187
41187
  expandPath(path2) {
41188
41188
  if (path2.startsWith("~")) {
41189
- return join3(homedir32(), path2.slice(1));
41189
+ return join3(homedir3(), path2.slice(1));
41190
41190
  }
41191
41191
  return path2;
41192
41192
  }
@@ -41194,20 +41194,20 @@ class ClaudeCodeConnector extends BaseConnector2 {
41194
41194
 
41195
41195
  // ../connector-opencode/dist/index.js
41196
41196
  import { createRequire as createRequire5 } from "node:module";
41197
- import { homedir as homedir4 } from "os";
41197
+ import { homedir as homedir24 } from "os";
41198
41198
  import { join as join24 } from "path";
41199
41199
  import {
41200
41200
  existsSync as existsSync63,
41201
41201
  lstatSync as lstatSync23,
41202
41202
  mkdirSync as mkdirSync33,
41203
- readdirSync as readdirSync33,
41203
+ readdirSync as readdirSync43,
41204
41204
  statSync as statSync33,
41205
41205
  symlinkSync as symlinkSync23,
41206
41206
  unlinkSync as unlinkSync23
41207
41207
  } from "node:fs";
41208
41208
  import { join as join73 } from "node:path";
41209
41209
  import { createRequire as createRequire23 } from "node:module";
41210
- import { homedir as homedir24 } from "os";
41210
+ import { homedir as homedir223 } from "os";
41211
41211
  import { join as join223 } from "path";
41212
41212
  import { existsSync as existsSync33, readFileSync as readFileSync23, statSync as statSync6 } from "node:fs";
41213
41213
  import { join as join43 } from "node:path";
@@ -41218,7 +41218,7 @@ import {
41218
41218
  rmSync as rmSync2,
41219
41219
  writeFileSync as writeFileSync5
41220
41220
  } from "node:fs";
41221
- import { homedir as homedir33 } from "node:os";
41221
+ import { homedir as homedir5 } from "node:os";
41222
41222
  import { join as join9 } from "node:path";
41223
41223
  import { pathToFileURL } from "node:url";
41224
41224
  var __commonJS5 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
@@ -48764,7 +48764,7 @@ var $parseDocument4 = publicApi4.parseDocument;
48764
48764
  var $stringify4 = publicApi4.stringify;
48765
48765
  var $visit4 = visit4.visit;
48766
48766
  var $visitAsync4 = visit4.visitAsync;
48767
- var DEFAULT_BASE_PATH4 = join24(homedir4(), ".agents");
48767
+ var DEFAULT_BASE_PATH4 = join24(homedir24(), ".agents");
48768
48768
  var IDENTITY_FILES4 = {
48769
48769
  agents: {
48770
48770
  path: "AGENTS.md",
@@ -48882,7 +48882,7 @@ function symlinkSkills3(sourceDir, targetDir, options = {}) {
48882
48882
  }
48883
48883
  let entries;
48884
48884
  try {
48885
- entries = readdirSync33(sourceDir);
48885
+ entries = readdirSync43(sourceDir);
48886
48886
  } catch (e) {
48887
48887
  result.errors.push({
48888
48888
  path: sourceDir,
@@ -56497,7 +56497,7 @@ var $parseDocument23 = publicApi23.parseDocument;
56497
56497
  var $stringify23 = publicApi23.stringify;
56498
56498
  var $visit23 = visit23.visit;
56499
56499
  var $visitAsync23 = visit23.visitAsync;
56500
- var DEFAULT_BASE_PATH23 = join223(homedir24(), ".agents");
56500
+ var DEFAULT_BASE_PATH23 = join223(homedir223(), ".agents");
56501
56501
  var IDENTITY_FILES23 = {
56502
56502
  agents: {
56503
56503
  path: "AGENTS.md",
@@ -56795,7 +56795,7 @@ class OpenCodeConnector extends BaseConnector3 {
56795
56795
  name = "OpenCode";
56796
56796
  harnessId = "opencode";
56797
56797
  getOpenCodePath() {
56798
- return join9(homedir33(), ".config", "opencode");
56798
+ return join9(homedir5(), ".config", "opencode");
56799
56799
  }
56800
56800
  getConfigPath() {
56801
56801
  for (const candidate of this.getConfigCandidates()) {
@@ -56909,7 +56909,7 @@ ${identity32.memory.content}`);
56909
56909
  return pluginPath;
56910
56910
  }
56911
56911
  static isHarnessInstalled() {
56912
- const opencodePath = join9(homedir33(), ".config", "opencode");
56912
+ const opencodePath = join9(homedir5(), ".config", "opencode");
56913
56913
  const candidates = [
56914
56914
  join9(opencodePath, "opencode.json"),
56915
56915
  join9(opencodePath, "opencode.jsonc"),
@@ -57068,7 +57068,7 @@ function getTemplatesDir() {
57068
57068
  }
57069
57069
  function copyDirRecursive(src, dest) {
57070
57070
  mkdirSync7(dest, { recursive: true });
57071
- const entries = readdirSync4(src, { withFileTypes: true });
57071
+ const entries = readdirSync(src, { withFileTypes: true });
57072
57072
  for (const entry of entries) {
57073
57073
  const srcPath = join11(src, entry.name);
57074
57074
  const destPath = join11(dest, entry.name);
@@ -57107,7 +57107,7 @@ function syncBuiltinSkills(templatesDir, basePath) {
57107
57107
  return result;
57108
57108
  }
57109
57109
  mkdirSync7(skillsDest, { recursive: true });
57110
- const entries = readdirSync4(skillsSource, { withFileTypes: true }).filter((d) => d.isDirectory());
57110
+ const entries = readdirSync(skillsSource, { withFileTypes: true }).filter((d) => d.isDirectory());
57111
57111
  for (const entry of entries) {
57112
57112
  const src = join11(skillsSource, entry.name);
57113
57113
  const dest = join11(skillsDest, entry.name);
@@ -57178,7 +57178,7 @@ async function gitAddAndCommit(dir, message) {
57178
57178
  add.on("error", () => resolve(false));
57179
57179
  });
57180
57180
  }
57181
- var AGENTS_DIR = join11(homedir5(), ".agents");
57181
+ var AGENTS_DIR = join11(homedir6(), ".agents");
57182
57182
  var DAEMON_DIR = join11(AGENTS_DIR, ".daemon");
57183
57183
  var PID_FILE = join11(DAEMON_DIR, "pid");
57184
57184
  var LOG_DIR = join11(DAEMON_DIR, "logs");
@@ -57958,7 +57958,7 @@ async function existingSetupWizard(basePath, detection, existingConfig) {
57958
57958
  skillsResult = await unifySkills(basePath, {
57959
57959
  registries: [
57960
57960
  detection.harnesses.opencode ? {
57961
- path: join11(homedir5(), ".config", "opencode", "skills"),
57961
+ path: join11(homedir6(), ".config", "opencode", "skills"),
57962
57962
  harness: "opencode",
57963
57963
  symlink: true
57964
57964
  } : null
@@ -58635,7 +58635,7 @@ async function importFromGitHub(basePath) {
58635
58635
  }
58636
58636
  const skillsDir = join11(tmpDir, "skills");
58637
58637
  if (existsSync10(skillsDir)) {
58638
- const skills = readdirSync4(skillsDir);
58638
+ const skills = readdirSync(skillsDir);
58639
58639
  if (skills.length > 0) {
58640
58640
  mkdirSync7(join11(basePath, "skills"), { recursive: true });
58641
58641
  for (const skill of skills) {
@@ -59026,10 +59026,10 @@ program2.command("sync").description("Sync built-in templates and skills").actio
59026
59026
  }
59027
59027
  synced += skillSyncResult.installed.length + skillSyncResult.updated.length;
59028
59028
  const detectedHarnesses = [];
59029
- if (existsSync10(join11(homedir5(), ".claude", "settings.json"))) {
59029
+ if (existsSync10(join11(homedir6(), ".claude", "settings.json"))) {
59030
59030
  detectedHarnesses.push("claude-code");
59031
59031
  }
59032
- if (existsSync10(join11(homedir5(), ".config", "opencode"))) {
59032
+ if (existsSync10(join11(homedir6(), ".config", "opencode"))) {
59033
59033
  detectedHarnesses.push("opencode");
59034
59034
  }
59035
59035
  const ocConnector = new OpenClawConnector;
@@ -59374,7 +59374,7 @@ function parseSkillFrontmatter(content) {
59374
59374
  function listLocalSkills() {
59375
59375
  if (!existsSync10(SKILLS_DIR))
59376
59376
  return [];
59377
- return readdirSync4(SKILLS_DIR, { withFileTypes: true }).filter((d) => d.isDirectory()).flatMap((d) => {
59377
+ return readdirSync(SKILLS_DIR, { withFileTypes: true }).filter((d) => d.isDirectory()).flatMap((d) => {
59378
59378
  const skillMdPath = join11(SKILLS_DIR, d.name, "SKILL.md");
59379
59379
  if (!existsSync10(skillMdPath))
59380
59380
  return [];
@@ -59898,10 +59898,10 @@ updateCmd.command("install").description("Install the latest update").action(asy
59898
59898
  console.log(source_default.green(` ✓ ${totalSynced} skills synced`));
59899
59899
  }
59900
59900
  const harnesses = [];
59901
- if (existsSync10(join11(homedir5(), ".claude", "settings.json"))) {
59901
+ if (existsSync10(join11(homedir6(), ".claude", "settings.json"))) {
59902
59902
  harnesses.push("claude-code");
59903
59903
  }
59904
- if (existsSync10(join11(homedir5(), ".config", "opencode"))) {
59904
+ if (existsSync10(join11(homedir6(), ".config", "opencode"))) {
59905
59905
  harnesses.push("opencode");
59906
59906
  }
59907
59907
  const oc = new OpenClawConnector;