vag_tools 0.0.7 → 0.0.9

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
+ export const env={}
@@ -0,0 +1 @@
1
+ body{font-family:Courier New,Helvetica,Arial,Verdana;margin:0;background-color:#008b8b}header.svelte-12vn5r8{margin:1rem}h1.svelte-12vn5r8{color:#7fffd4;margin:1rem 1rem .2rem}main.svelte-12vn5r8{background-color:#f8f8ff;min-height:70vh;padding:2rem 1rem 3rem}footer.svelte-12vn5r8{margin:2rem 1rem 5rem}
@@ -0,0 +1 @@
1
+ button.svelte-s3y5ud{padding:1rem;background-color:#add8e6;color:#00f}
@@ -0,0 +1 @@
1
+ body{font-family:Courier New,Helvetica,Arial,Verdana;margin:0;background-color:#008b8b}header.svelte-12vn5r8{margin:1rem}h1.svelte-12vn5r8{color:#7fffd4;margin:1rem 1rem .2rem}main.svelte-12vn5r8{background-color:#f8f8ff;min-height:70vh;padding:2rem 1rem 3rem}footer.svelte-12vn5r8{margin:2rem 1rem 5rem}
@@ -0,0 +1 @@
1
+ button.svelte-s3y5ud{padding:1rem;background-color:#add8e6;color:#00f}
@@ -0,0 +1,3 @@
1
+ import{n as le,s as ft,t as ut}from"./scheduler.Bmg8oFKD.js";new URL("sveltekit-internal://");function dt(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function ht(e){return e.split("%25").map(decodeURI).join("%25")}function pt(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function fe({href:e}){return e.split("#")[0]}const gt=["href","pathname","search","toString","toJSON"];function mt(e,n,t){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(t(s),a[o](s));n();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of gt)Object.defineProperty(r,a,{get(){return n(),e[a]},enumerable:!0,configurable:!0});return r}const yt="/__data.json",_t=".html__data.json";function wt(e){return e.endsWith(".html")?e.replace(/\.html$/,_t):e.replace(/\/$/,"")+yt}function bt(...e){let n=5381;for(const t of e)if(typeof t=="string"){let r=t.length;for(;r;)n=n*33^t.charCodeAt(--r)}else if(ArrayBuffer.isView(t)){const r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);let a=r.length;for(;a;)n=n*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function vt(e){const n=atob(e),t=new Uint8Array(n.length);for(let r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t.buffer}const Ve=window.fetch;window.fetch=(e,n)=>((e instanceof Request?e.method:(n==null?void 0:n.method)||"GET")!=="GET"&&q.delete(me(e)),Ve(e,n));const q=new Map;function At(e,n){const t=me(e,n),r=document.querySelector(t);if(r!=null&&r.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&q.set(t,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=vt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,n)}function kt(e,n,t){if(q.size>0){const r=me(e,t),a=q.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(t==null?void 0:t.cache))return new Response(a.body,a.init);q.delete(r)}}return window.fetch(n,t)}function me(e,n){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(n!=null&&n.headers||n!=null&&n.body){const a=[];n.headers&&a.push([...new Headers(n.headers)].join(",")),n.body&&(typeof n.body=="string"||ArrayBuffer.isView(n.body))&&a.push(n.body),r+=`[data-hash="${bt(...a)}"]`}return r}const Et=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function St(e){const n=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${It(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return n.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ue(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ue(String.fromCharCode(...c.slice(2).split("-").map(f=>parseInt(f,16))));const d=Et.exec(c),[,h,g,u,m]=d;return n.push({name:u,matcher:m,optional:!!h,rest:!!g,chained:g?l===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return ue(c)}).join("")}).join("")}/?$`),params:n}}function Rt(e){return!/^\([^)]+\)$/.test(e)}function It(e){return e.slice(1).split("/").filter(Rt)}function Tt(e,n,t){const r={},a=e.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;s<n.length;s+=1){const c=n[s];let l=a[s-i];if(c.chained&&c.rest&&i&&(l=a.slice(s-i,s+1).filter(d=>d).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||t[c.matcher](l)){r[c.name]=l;const d=n[s+1],h=a[s+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function ue(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Lt({nodes:e,server_loads:n,dictionary:t,matchers:r}){const a=new Set(n);return Object.entries(t).map(([s,[c,l,d]])=>{const{pattern:h,params:g}=St(s),u={id:s,exec:m=>{const f=h.exec(m);if(f)return Tt(f,g,r)},errors:[1,...d||[]].map(m=>e[m]),layouts:[0,...l||[]].map(i),leaf:o(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[a.has(s),e[s]]}}function Be(e,n=JSON.parse){try{return n(sessionStorage[e])}catch{}}function Le(e,n,t=JSON.stringify){const r=t(n);try{sessionStorage[e]=r}catch{}}const N=[];function ye(e,n=le){let t;const r=new Set;function a(s){if(ft(e,s)&&(e=s,t)){const c=!N.length;for(const l of r)l[1](),N.push(l,e);if(c){for(let l=0;l<N.length;l+=2)N[l][0](N[l+1]);N.length=0}}}function o(s){a(s(e))}function i(s,c=le){const l=[s,c];return r.add(l),r.size===1&&(t=n(a,o)||le),s(e),()=>{r.delete(l),r.size===0&&t&&(t(),t=null)}}return{set:a,update:o,subscribe:i}}var $e;const L=(($e=globalThis.__sveltekit_1i1kjti)==null?void 0:$e.base)??"";var Fe;const Ut=((Fe=globalThis.__sveltekit_1i1kjti)==null?void 0:Fe.assets)??L,Pt="1727468009254",qe="sveltekit:snapshot",Ge="sveltekit:scroll",Me="sveltekit:states",xt="sveltekit:pageurl",D="sveltekit:history",M="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Y=location.origin;function He(e){if(e instanceof URL)return e;let n=document.baseURI;if(!n){const t=document.getElementsByTagName("base");n=t.length?t[0].href:document.URL}return new URL(e,n)}function _e(){return{x:pageXOffset,y:pageYOffset}}function O(e,n){return e.getAttribute(`data-sveltekit-${n}`)}const Ue={...J,"":J.hover};function Ke(e){let n=e.assignedSlot??e.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function Ye(e,n){for(;e&&e!==n;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ke(e)}}function he(e,n){let t;try{t=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,a=!t||!!r||re(t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(t==null?void 0:t.origin)===Y&&e.hasAttribute("download");return{url:t,external:a,target:r,download:o}}function W(e){let n=null,t=null,r=null,a=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=O(s,"preload-code")),a===null&&(a=O(s,"preload-data")),n===null&&(n=O(s,"keepfocus")),t===null&&(t=O(s,"noscroll")),o===null&&(o=O(s,"reload")),i===null&&(i=O(s,"replacestate")),s=Ke(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ue[r??"off"],preload_data:Ue[a??"off"],keepfocus:c(n),noscroll:c(t),reload:c(o),replace_state:c(i)}}function Pe(e){const n=ye(e);let t=!0;function r(){t=!0,n.update(i=>i)}function a(i){t=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||t&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function Ct(){const{set:e,subscribe:n}=ye(!1);let t;async function r(){clearTimeout(t);try{const a=await fetch(`${Ut}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==Pt;return i&&(e(!0),clearTimeout(t)),i}catch{return!1}}return{subscribe:n,check:r}}function re(e,n){return e.origin!==Y||!e.pathname.startsWith(n)}function xe(e){const n=Ot(e),t=new ArrayBuffer(n.length),r=new DataView(t);for(let a=0;a<t.byteLength;a++)r.setUint8(a,n.charCodeAt(a));return t}const Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ot(e){e.length%4===0&&(e=e.replace(/==?$/,""));let n="",t=0,r=0;for(let a=0;a<e.length;a++)t<<=6,t|=Nt.indexOf(e[a]),r+=6,r===24&&(n+=String.fromCharCode((t&16711680)>>16),n+=String.fromCharCode((t&65280)>>8),n+=String.fromCharCode(t&255),t=r=0);return r===12?(t>>=4,n+=String.fromCharCode(t)):r===18&&(t>>=2,n+=String.fromCharCode((t&65280)>>8),n+=String.fromCharCode(t&255)),n}const jt=-1,Dt=-2,$t=-3,Ft=-4,Vt=-5,Bt=-6;function qt(e,n){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,r=Array(t.length);function a(o,i=!1){if(o===jt)return;if(o===$t)return NaN;if(o===Ft)return 1/0;if(o===Vt)return-1/0;if(o===Bt)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=t[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=n==null?void 0:n[c];if(l)return r[o]=l(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const d=new Set;r[o]=d;for(let u=1;u<s.length;u+=1)d.add(a(s[u]));break;case"Map":const h=new Map;r[o]=h;for(let u=1;u<s.length;u+=2)h.set(a(s[u]),a(s[u+1]));break;case"RegExp":r[o]=new RegExp(s[1],s[2]);break;case"Object":r[o]=Object(s[1]);break;case"BigInt":r[o]=BigInt(s[1]);break;case"null":const g=Object.create(null);r[o]=g;for(let u=1;u<s.length;u+=2)g[s[u]]=a(s[u+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const u=globalThis[c],m=s[1],f=xe(m),y=new u(f);r[o]=y;break}case"ArrayBuffer":{const u=s[1],m=xe(u);r[o]=m;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(s.length);r[o]=c;for(let l=0;l<s.length;l+=1){const d=s[l];d!==Dt&&(c[l]=a(d))}}else{const c={};r[o]=c;for(const l in s){const d=s[l];c[l]=a(d)}}return r[o]}return a(0)}const ze=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ze];const Gt=new Set([...ze]);[...Gt];function Mt(e){return e.filter(n=>n!=null)}class ae{constructor(n,t){this.status=n,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class Je{constructor(n,t){this.status=n,this.location=t}}class we extends Error{constructor(n,t,r){super(r),this.status=n,this.text=t}}const Ht="x-sveltekit-invalidated",Kt="x-sveltekit-trailing-slash";function X(e){return e instanceof ae||e instanceof we?e.status:500}function Yt(e){return e instanceof we?e.text:"Internal Error"}const C=Be(Ge)??{},H=Be(qe)??{},P={url:Pe({}),page:Pe({}),navigating:ye(null),updated:Ct()};function be(e){C[e]=_e()}function zt(e,n){let t=e+1;for(;C[t];)delete C[t],t+=1;for(t=n+1;H[t];)delete H[t],t+=1}function F(e){return location.href=e.href,new Promise(()=>{})}function Ce(){}let oe,pe,Z,U,ge,V;const We=[],Q=[];let R=null;const Xe=[],Jt=[];let j=[],_={branch:[],error:null,url:null},ve=!1,ee=!1,Ne=!0,K=!1,B=!1,Ze=!1,Ae=!1,ke,E,T,I,te;const G=new Set;async function sn(e,n,t){var a,o;document.URL!==location.href&&(location.href=location.href),V=e,oe=Lt(e),U=document.documentElement,ge=n,pe=e.nodes[0],Z=e.nodes[1],pe(),Z(),E=(a=history.state)==null?void 0:a[D],T=(o=history.state)==null?void 0:o[M],E||(E=T=Date.now(),history.replaceState({...history.state,[D]:E,[M]:T},""));const r=C[E];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),t?await rn(ge,t):tn(location.href,{replaceState:!0}),nn()}function Wt(){We.length=0,Ae=!1}function Qe(e){Q.some(n=>n==null?void 0:n.snapshot)&&(H[e]=Q.map(n=>{var t;return(t=n==null?void 0:n.snapshot)==null?void 0:t.capture()}))}function et(e){var n;(n=H[e])==null||n.forEach((t,r)=>{var a,o;(o=(a=Q[r])==null?void 0:a.snapshot)==null||o.restore(t)})}function Oe(){be(E),Le(Ge,C),Qe(T),Le(qe,H)}async function tt(e,n,t,r){return z({type:"goto",url:He(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:t,nav_token:r,accept:()=>{n.invalidateAll&&(Ae=!0)}})}async function Xt(e){if(e.id!==(R==null?void 0:R.id)){const n={};G.add(n),R={id:e.id,token:n,promise:rt({...e,preload:n}).then(t=>(G.delete(n),t.type==="loaded"&&t.state.error&&(R=null),t))}}return R.promise}async function de(e){const n=oe.find(t=>t.exec(at(e)));n&&await Promise.all([...n.layouts,n.leaf].map(t=>t==null?void 0:t[1]()))}function nt(e,n,t){var o;_=e.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),I=e.props.page,ke=new V.root({target:n,props:{...e.props,stores:P,components:Q},hydrate:t,sync:!1}),et(T);const a={from:null,to:{params:_.params,route:{id:((o=_.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};j.forEach(i=>i(a)),ee=!0}function ne({url:e,params:n,branch:t,status:r,error:a,route:o,form:i}){let s="never";if(L&&(e.pathname===L||e.pathname===L+"/"))s="always";else for(const u of t)(u==null?void 0:u.slash)!==void 0&&(s=u.slash);e.pathname=dt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:n,branch:t,error:a,route:o},props:{constructors:Mt(t).map(u=>u.node.component),page:I}};i!==void 0&&(c.props.form=i);let l={},d=!I,h=0;for(let u=0;u<Math.max(t.length,_.branch.length);u+=1){const m=t[u],f=_.branch[u];(m==null?void 0:m.data)!==(f==null?void 0:f.data)&&(d=!0),m&&(l={...l,...m.data},d&&(c.props[`data_${h}`]=l),h+=1)}return(!_.url||e.href!==_.url.href||_.error!==a||i!==void 0&&i!==I.form||d)&&(c.props.page={error:a,params:n,route:{id:(o==null?void 0:o.id)??null},state:{},status:r,url:new URL(e),form:i??null,data:d?l:I.data}),c}async function Ee({loader:e,parent:n,url:t,params:r,route:a,server_data_node:o}){var d,h,g;let i=null,s=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if((d=l.universal)!=null&&d.load){let u=function(...f){for(const y of f){const{href:v}=new URL(y,t);c.dependencies.add(v)}};const m={route:new Proxy(a,{get:(f,y)=>(s&&(c.route=!0),f[y])}),params:new Proxy(r,{get:(f,y)=>(s&&c.params.add(y),f[y])}),data:(o==null?void 0:o.data)??null,url:mt(t,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)}),async fetch(f,y){let v;f instanceof Request?(v=f.url,y={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:f.headers,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...y}):v=f;const S=new URL(v,t);return s&&u(S.href),S.origin===t.origin&&(v=S.href.slice(t.origin.length)),ee?kt(v,S.href,y):At(v,y)},setHeaders:()=>{},depends:u,parent(){return s&&(c.parent=!0),n()},untrack(f){s=!1;try{return f()}finally{s=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:e,server:o,universal:(h=l.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=l.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function je(e,n,t,r,a,o){if(Ae)return!0;if(!a)return!1;if(a.parent&&e||a.route&&n||a.url&&t)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==_.params[i])return!0;for(const i of a.dependencies)if(We.some(s=>s(new URL(i))))return!0;return!1}function Se(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}function Zt(e,n){if(!e)return new Set(n.searchParams.keys());const t=new Set([...e.searchParams.keys(),...n.searchParams.keys()]);for(const r of t){const a=e.searchParams.getAll(r),o=n.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&t.delete(r)}return t}function De({error:e,url:n,route:t,params:r}){return{type:"loaded",state:{error:e,url:n,route:t,params:r,branch:[]},props:{page:I,constructors:[]}}}async function rt({id:e,invalidating:n,url:t,params:r,route:a,preload:o}){if((R==null?void 0:R.id)===e)return G.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=a,l=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),l.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let d=null;const h=_.url?e!==_.url.pathname+_.url.search:!1,g=_.route?a.id!==_.route.id:!1,u=Zt(_.url,t);let m=!1;const f=l.map((p,b)=>{var x;const A=_.branch[b],k=!!(p!=null&&p[0])&&((A==null?void 0:A.loader)!==p[1]||je(m,g,h,u,(x=A.server)==null?void 0:x.uses,r));return k&&(m=!0),k});if(f.some(Boolean)){try{d=await it(t,f)}catch(p){const b=await $(p,{url:t,params:r,route:{id:e}});return G.has(o)?De({error:b,url:t,params:r,route:a}):se({status:X(p),error:b,url:t,route:a})}if(d.type==="redirect")return d}const y=d==null?void 0:d.nodes;let v=!1;const S=l.map(async(p,b)=>{var ie;if(!p)return;const A=_.branch[b],k=y==null?void 0:y[b];if((!k||k.type==="skip")&&p[1]===(A==null?void 0:A.loader)&&!je(v,g,h,u,(ie=A.universal)==null?void 0:ie.uses,r))return A;if(v=!0,(k==null?void 0:k.type)==="error")throw k;return Ee({loader:p[1],url:t,params:r,route:a,parent:async()=>{var Te;const Ie={};for(let ce=0;ce<b;ce+=1)Object.assign(Ie,(Te=await S[ce])==null?void 0:Te.data);return Ie},server_data_node:Se(k===void 0&&p[0]?{type:"skip"}:k??null,p[0]?A==null?void 0:A.server:void 0)})});for(const p of S)p.catch(()=>{});const w=[];for(let p=0;p<l.length;p+=1)if(l[p])try{w.push(await S[p])}catch(b){if(b instanceof Je)return{type:"redirect",location:b.location};if(G.has(o))return De({error:await $(b,{params:r,url:t,route:{id:a.id}}),url:t,params:r,route:a});let A=X(b),k;if(y!=null&&y.includes(b))A=b.status??A,k=b.error;else if(b instanceof ae)k=b.body;else{if(await P.updated.check())return await F(t);k=await $(b,{params:r,url:t,route:{id:a.id}})}const x=await Qt(p,w,i);return x?ne({url:t,params:r,branch:w.slice(0,x.idx).concat(x.node),status:A,error:k,route:a}):await st(t,{id:a.id},k,A)}else w.push(void 0);return ne({url:t,params:r,branch:w,status:200,error:null,route:a,form:n?void 0:null})}async function Qt(e,n,t){for(;e--;)if(t[e]){let r=e;for(;!n[r];)r-=1;try{return{idx:r+1,node:{node:await t[e](),loader:t[e],data:{},server:null,universal:null}}}catch{continue}}}async function se({status:e,error:n,url:t,route:r}){const a={};let o=null;if(V.server_loads[0]===0)try{const l=await it(t,[!0]);if(l.type!=="data"||l.nodes[0]&&l.nodes[0].type!=="data")throw 0;o=l.nodes[0]??null}catch{(t.origin!==Y||t.pathname!==location.pathname||ve)&&await F(t)}const s=await Ee({loader:pe,url:t,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Se(o)}),c={node:await Z(),loader:Z,universal:null,server:null,data:null};return ne({url:t,params:a,branch:[s,c],status:e,error:n,route:null})}function Re(e,n){if(!e||re(e,L))return;let t;try{t=V.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=at(t);for(const a of oe){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:n,route:a,params:pt(o),url:e}}}function at(e){return ht(e.slice(L.length)||"/")}function ot({url:e,type:n,intent:t,delta:r}){let a=!1;const o=lt(_,t,e,n);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return K||Xe.forEach(s=>s(i)),a?null:o}async function z({type:e,url:n,popped:t,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ce,block:d=Ce}){const h=Re(n,!1),g=ot({url:n,type:e,delta:t==null?void 0:t.delta,intent:h});if(!g){d();return}const u=E,m=T;l(),K=!0,ee&&P.navigating.set(g.navigation),te=c;let f=h&&await rt(h);if(!f){if(re(n,L))return await F(n);f=await st(n,{id:null},await $(new we(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,te!==c)return g.reject(new Error("navigation aborted")),!1;if(f.type==="redirect")if(s>=20)f=await se({status:500,error:await $(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return tt(new URL(f.location,n).href,{},s+1,c),!1;else f.props.page.status>=400&&await P.updated.check()&&await F(n);if(Wt(),be(u),Qe(m),f.props.page.url.pathname!==n.pathname&&(n.pathname=f.props.page.url.pathname),i=t?t.state:i,!t){const w=o?0:1,p={[D]:E+=w,[M]:T+=w,[Me]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||zt(E,T)}if(R=null,f.props.page.state=i,ee){_=f.state,f.props.page&&(f.props.page.url=n);const w=(await Promise.all(Jt.map(p=>p(g.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){j=j.filter(b=>!w.includes(b))};w.push(p),j.push(...w)}ke.$set(f.props),Ze=!0}else nt(f,ge,!1);const{activeElement:y}=document;await ut();const v=t?t.scroll:a?_e():null;if(Ne){const w=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));v?scrollTo(v.x,v.y):w?w.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==y&&document.activeElement!==document.body;!r&&!S&&an(),Ne=!0,f.props.page&&(I=f.props.page),K=!1,e==="popstate"&&et(T),g.fulfil(void 0),j.forEach(w=>w(g.navigation)),P.navigating.set(null)}async function st(e,n,t,r){return e.origin===Y&&e.pathname===location.pathname&&!ve?await se({status:r,error:t,url:e,route:n}):await F(e)}function en(){let e;U.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function n(o){r(o.composedPath()[0],1)}U.addEventListener("mousedown",n),U.addEventListener("touchstart",n,{passive:!0});const t=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(de(i.target.href),t.unobserve(i.target))},{threshold:0});function r(o,i){const s=Ye(o,U);if(!s)return;const{url:c,external:l,download:d}=he(s,L);if(l||d)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Re(c,!1);g&&Xt(g)}else i<=h.preload_code&&de(c.pathname)}function a(){t.disconnect();for(const o of U.querySelectorAll("a")){const{url:i,external:s,download:c}=he(o,L);if(s||c)continue;const l=W(o);l.reload||(l.preload_code===J.viewport&&t.observe(o),l.preload_code===J.eager&&de(i.pathname))}}j.push(a),a()}function $(e,n){if(e instanceof ae)return e.body;const t=X(e),r=Yt(e);return V.hooks.handleError({error:e,event:n,status:t,message:r})??{message:r}}function tn(e,n={}){return e=He(e),e.origin!==Y?Promise.reject(new Error("goto: invalid URL")):tt(e,n,0)}function nn(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Oe(),!K){const a=lt(_,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};Xe.forEach(i=>i(o))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Oe()}),(n=navigator.connection)!=null&&n.saveData||en(),U.addEventListener("click",async t=>{var g;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=Ye(t.composedPath()[0],U);if(!r)return;const{url:a,external:o,target:i,download:s}=he(r,L);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||s)return;if(o||c.reload){ot({url:a,type:"link"})?K=!0:t.preventDefault();return}const[d,h]=a.href.split("#");if(h!==void 0&&d===fe(location)){const[,u]=_.url.href.split("#");if(u===h){t.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=r.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(B=!0,be(E),e(a),!c.replace_state)return;B=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),z({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),U.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const s=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(re(s,L))return;const c=t.target,l=W(c);if(l.reload)return;t.preventDefault(),t.stopPropagation();const d=new FormData(c),h=a==null?void 0:a.getAttribute("name");h&&d.append(h,(a==null?void 0:a.getAttribute("value"))??""),s.search=new URLSearchParams(d).toString(),z({type:"form",url:s,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??s.href===location.href})}),addEventListener("popstate",async t=>{var r;if((r=t.state)!=null&&r[D]){const a=t.state[D];if(te={},a===E)return;const o=C[a],i=t.state[Me]??{},s=new URL(t.state[xt]??location.href),c=t.state[M],l=fe(location)===fe(_.url);if(c===T&&(Ze||l)){e(s),C[E]=_e(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},ke.$set({page:I})),E=a;return}const h=a-E;await z({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{E=a,T=c},block:()=>{history.go(-h)},nav_token:te})}else if(!B){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{B&&(B=!1,history.replaceState({...history.state,[D]:++E,[M]:T},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&P.navigating.set(null)});function e(t){_.url=t,P.page.set({...I,url:t}),P.page.notify()}}async function rn(e,{status:n=200,error:t,node_ids:r,params:a,route:o,data:i,form:s}){ve=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Re(c,!1)||{});let l;try{const d=r.map(async(u,m)=>{const f=i[m];return f!=null&&f.uses&&(f.uses=ct(f.uses)),Ee({loader:V.nodes[u],url:c,params:a,route:o,parent:async()=>{const y={};for(let v=0;v<m;v+=1)Object.assign(y,(await d[v]).data);return y},server_data_node:Se(f)})}),h=await Promise.all(d),g=oe.find(({id:u})=>u===o.id);if(g){const u=g.layouts;for(let m=0;m<u.length;m++)u[m]||h.splice(m,0,void 0)}l=ne({url:c,params:a,branch:h,status:n,error:t,form:s,route:g??null})}catch(d){if(d instanceof Je){await F(new URL(d.location,location.href));return}l=await se({status:X(d),error:await $(d,{url:c,params:a,route:o}),url:c,route:o})}l.props.page&&(l.props.page.state={}),nt(l,e,!0)}async function it(e,n){var a;const t=new URL(e);t.pathname=wt(e.pathname),e.pathname.endsWith("/")&&t.searchParams.append(Kt,"1"),t.searchParams.append(Ht,n.map(o=>o?"1":"0").join(""));const r=await Ve(t.href);if(!r.ok){let o;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new ae(r.status,o)}return new Promise(async o=>{var h;const i=new Map,s=r.body.getReader(),c=new TextDecoder;function l(g){return qt(g,{Promise:u=>new Promise((m,f)=>{i.set(u,{fulfil:m,reject:f})})})}let d="";for(;;){const{done:g,value:u}=await s.read();if(g&&!d)break;for(d+=!u&&d?`
2
+ `:c.decode(u,{stream:!0});;){const m=d.indexOf(`
3
+ `);if(m===-1)break;const f=JSON.parse(d.slice(0,m));if(d=d.slice(m+1),f.type==="redirect")return o(f);if(f.type==="data")(h=f.nodes)==null||h.forEach(y=>{(y==null?void 0:y.type)==="data"&&(y.uses=ct(y.uses),y.data=l(y.data))}),o(f);else if(f.type==="chunk"){const{id:y,data:v,error:S}=f,w=i.get(y);i.delete(y),S?w.reject(l(S)):w.fulfil(l(v))}}}})}function ct(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function an(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const n=document.body,t=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),t!==null?n.setAttribute("tabindex",t):n.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let o=0;o<r.rangeCount;o+=1)a.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===a.length){for(let o=0;o<r.rangeCount;o+=1){const i=a[o],s=r.getRangeAt(o);if(i.commonAncestorContainer!==s.commonAncestorContainer||i.startContainer!==s.startContainer||i.endContainer!==s.endContainer||i.startOffset!==s.startOffset||i.endOffset!==s.endOffset)return}r.removeAllRanges()}})}}}function lt(e,n,t,r){var c,l;let a,o;const i=new Promise((d,h)=>{a=d,o=h});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:t&&{params:(n==null?void 0:n.params)??null,route:{id:((l=n==null?void 0:n.route)==null?void 0:l.id)??null},url:t},willUnload:!n,type:r,complete:i},fulfil:a,reject:o}}export{sn as a,P as s};
@@ -0,0 +1 @@
1
+ var E=Object.defineProperty;var j=(e,t,n)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var p=(e,t,n)=>j(e,typeof t!="symbol"?t+"":t,n);import{r as h,n as y,f as w,h as C,i as S,j as B,k as b,l as I,m as L,p as N,q as P,v as T,w as q}from"./scheduler.Bmg8oFKD.js";let $=!1;function H(){$=!0}function M(){$=!1}function O(e,t,n,r){for(;e<t;){const s=e+(t-e>>1);n(s)<=r?e=s+1:t=s}return e}function z(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if(e.nodeName==="HEAD"){const i=[];for(let a=0;a<t.length;a++){const o=t[a];o.claim_order!==void 0&&i.push(o)}t=i}const n=new Int32Array(t.length+1),r=new Int32Array(t.length);n[0]=-1;let s=0;for(let i=0;i<t.length;i++){const a=t[i].claim_order,o=(s>0&&t[n[s]].claim_order<=a?s+1:O(1,s,_=>t[n[_]].claim_order,a))-1;r[i]=n[o]+1;const u=o+1;n[u]=i,s=Math.max(u,s)}const c=[],l=[];let f=t.length-1;for(let i=n[s]+1;i!=0;i=r[i-1]){for(c.push(t[i-1]);f>=i;f--)l.push(t[f]);f--}for(;f>=0;f--)l.push(t[f]);c.reverse(),l.sort((i,a)=>i.claim_order-a.claim_order);for(let i=0,a=0;i<l.length;i++){for(;a<c.length&&l[i].claim_order>=c[a].claim_order;)a++;const o=a<c.length?c[a]:null;e.insertBefore(l[i],o)}}function D(e,t){if($){for(z(e),(e.actual_end_child===void 0||e.actual_end_child!==null&&e.actual_end_child.parentNode!==e)&&(e.actual_end_child=e.firstChild);e.actual_end_child!==null&&e.actual_end_child.claim_order===void 0;)e.actual_end_child=e.actual_end_child.nextSibling;t!==e.actual_end_child?(t.claim_order!==void 0||t.parentNode!==e)&&e.insertBefore(t,e.actual_end_child):e.actual_end_child=t.nextSibling}else(t.parentNode!==e||t.nextSibling!==null)&&e.appendChild(t)}function ee(e,t,n){$&&!n?D(e,t):(t.parentNode!==e||t.nextSibling!=n)&&e.insertBefore(t,n||null)}function R(e){e.parentNode&&e.parentNode.removeChild(e)}function U(e){return document.createElement(e)}function x(e){return document.createTextNode(e)}function te(){return x(" ")}function ne(){return x("")}function ie(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function re(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function ae(e){return e.dataset.svelteH}function V(e){return Array.from(e.childNodes)}function W(e){e.claim_info===void 0&&(e.claim_info={last_index:0,total_claimed:0})}function A(e,t,n,r,s=!1){W(e);const c=(()=>{for(let l=e.claim_info.last_index;l<e.length;l++){const f=e[l];if(t(f)){const i=n(f);return i===void 0?e.splice(l,1):e[l]=i,s||(e.claim_info.last_index=l),f}}for(let l=e.claim_info.last_index-1;l>=0;l--){const f=e[l];if(t(f)){const i=n(f);return i===void 0?e.splice(l,1):e[l]=i,s?i===void 0&&e.claim_info.last_index--:e.claim_info.last_index=l,f}}return r()})();return c.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,c}function F(e,t,n,r){return A(e,s=>s.nodeName===t,s=>{const c=[];for(let l=0;l<s.attributes.length;l++){const f=s.attributes[l];n[f.name]||c.push(f.name)}c.forEach(l=>s.removeAttribute(l))},()=>r(t))}function le(e,t,n){return F(e,t,n,U)}function G(e,t){return A(e,n=>n.nodeType===3,n=>{const r=""+t;if(n.data.startsWith(r)){if(n.data.length!==r.length)return n.splitText(r.length)}else n.data=r},()=>x(t),!0)}function se(e){return G(e," ")}function fe(e,t){t=""+t,e.data!==t&&(e.data=t)}function ce(e,t,n,r){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,"")}function ue(e,t){return new e(t)}const m=new Set;let d;function oe(){d={r:0,c:[],p:d}}function de(){d.r||h(d.c),d=d.p}function J(e,t){e&&e.i&&(m.delete(e),e.i(t))}function _e(e,t,n,r){if(e&&e.o){if(m.has(e))return;m.add(e),d.c.push(()=>{m.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function me(e){e&&e.c()}function he(e,t){e&&e.l(t)}function K(e,t,n){const{fragment:r,after_update:s}=e.$$;r&&r.m(t,n),b(()=>{const c=e.$$.on_mount.map(P).filter(S);e.$$.on_destroy?e.$$.on_destroy.push(...c):h(c),e.$$.on_mount=[]}),s.forEach(b)}function Q(e,t){const n=e.$$;n.fragment!==null&&(I(n.after_update),h(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function X(e,t){e.$$.dirty[0]===-1&&(T.push(e),q(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function $e(e,t,n,r,s,c,l=null,f=[-1]){const i=L;N(e);const a=e.$$={fragment:null,ctx:[],props:c,update:y,not_equal:s,bound:w(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(i?i.$$.context:[])),callbacks:w(),dirty:f,skip_bound:!1,root:t.target||i.$$.root};l&&l(a.root);let o=!1;if(a.ctx=n?n(e,t.props||{},(u,_,...g)=>{const v=g.length?g[0]:_;return a.ctx&&s(a.ctx[u],a.ctx[u]=v)&&(!a.skip_bound&&a.bound[u]&&a.bound[u](v),o&&X(e,u)),_}):[],a.update(),o=!0,h(a.before_update),a.fragment=r?r(a.ctx):!1,t.target){if(t.hydrate){H();const u=V(t.target);a.fragment&&a.fragment.l(u),u.forEach(R)}else a.fragment&&a.fragment.c();t.intro&&J(e.$$.fragment),K(e,t.target,t.anchor),M(),C()}N(i)}class pe{constructor(){p(this,"$$");p(this,"$$set")}$destroy(){Q(this,1),this.$destroy=y}$on(t,n){if(!S(n))return y;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const s=r.indexOf(n);s!==-1&&r.splice(s,1)}}$set(t){this.$$set&&!B(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Y="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Y);export{pe as S,V as a,G as b,le as c,R as d,U as e,se as f,ee as g,D as h,$e as i,fe as j,ae as k,re as l,ie as m,ne as n,_e as o,de as p,J as q,ce as r,te as s,x as t,oe as u,ue as v,me as w,he as x,K as y,Q as z};
@@ -0,0 +1 @@
1
+ function k(){}function x(t,n){for(const e in n)t[e]=n[e];return t}function w(t){return t()}function z(){return Object.create(null)}function j(t){t.forEach(w)}function F(t){return typeof t=="function"}function P(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function S(t){return Object.keys(t).length===0}function E(t,...n){if(t==null){for(const o of n)o(void 0);return k}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function U(t,n,e){t.$$.on_destroy.push(E(n,e))}function A(t,n,e,o){if(t){const r=g(t,n,e,o);return t[0](r)}}function g(t,n,e,o){return t[1]&&o?x(e.ctx.slice(),t[1](o(n))):e.ctx}function B(t,n,e,o){if(t[2]&&o){const r=t[2](o(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const a=[],f=Math.max(n.dirty.length,r.length);for(let s=0;s<f;s+=1)a[s]=n.dirty[s]|r[s];return a}return n.dirty|r}return n.dirty}function C(t,n,e,o,r,a){if(r){const f=g(n,e,o,a);t.p(f,r)}}function D(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let o=0;o<e;o++)n[o]=-1;return n}return-1}let i;function d(t){i=t}function m(){if(!i)throw new Error("Function called outside component initialization");return i}function G(t){m().$$.on_mount.push(t)}function H(t){m().$$.after_update.push(t)}const l=[],p=[];let u=[];const b=[],y=Promise.resolve();let h=!1;function v(){h||(h=!0,y.then(q))}function I(){return v(),y}function O(t){u.push(t)}const _=new Set;let c=0;function q(){if(c!==0)return;const t=i;do{try{for(;c<l.length;){const n=l[c];c++,d(n),M(n.$$)}}catch(n){throw l.length=0,c=0,n}for(d(null),l.length=0,c=0;p.length;)p.pop()();for(let n=0;n<u.length;n+=1){const e=u[n];_.has(e)||(_.add(e),e())}u.length=0}while(l.length);for(;b.length;)b.pop()();h=!1,_.clear(),d(t)}function M(t){if(t.fragment!==null){t.update(),j(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(O)}}function J(t){const n=[],e=[];u.forEach(o=>t.indexOf(o)===-1?n.push(o):e.push(o)),e.forEach(o=>o()),u=n}export{H as a,p as b,U as c,A as d,B as e,z as f,D as g,q as h,F as i,S as j,O as k,J as l,i as m,k as n,G as o,d as p,w as q,j as r,P as s,I as t,C as u,l as v,v as w};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_app/immutable/nodes/0.CGj23tGJ.js","_app/immutable/chunks/scheduler.Bmg8oFKD.js","_app/immutable/chunks/index.Q3sXdwuS.js","_app/immutable/assets/0.C7lbsLW4.css","_app/immutable/nodes/1.BeHD1oMX.js","_app/immutable/chunks/entry.BC6ZiVP6.js","_app/immutable/nodes/2.ydMGe4kB.js","_app/immutable/assets/2.DCg60gzD.css"])))=>i.map(i=>d[i]);
2
+ import{s as U,a as V,o as j,b as R,t as z}from"../chunks/scheduler.Bmg8oFKD.js";import{S as B,i as W,s as F,n as h,f as G,g as b,o as p,p as P,q as g,d as w,e as H,c as J,a as K,l as A,r as m,t as Q,b as X,j as Y,u as S,v as k,w as v,x as C,y as E,z as y}from"../chunks/index.Q3sXdwuS.js";const Z="modulepreload",M=function(a){return"/"+a},D={},q=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),i=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));s=Promise.allSettled(n.map(o=>{if(o=M(o),o in D)return;D[o]=!0;const c=o.endsWith(".css"),l=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${l}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":Z,c||(u.as="script"),u.crossOrigin="",u.href=o,i&&u.setAttribute("nonce",i),document.head.appendChild(u),c)return new Promise((d,L)=>{u.addEventListener("load",d),u.addEventListener("error",()=>L(new Error(`Unable to preload CSS for ${o}`)))})}))}function _(t){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=t,window.dispatchEvent(i),!i.defaultPrevented)throw t}return s.then(t=>{for(const i of t||[])i.status==="rejected"&&_(i.reason);return e().catch(_)})},re={};function $(a){let e,n,r;var s=a[1][0];function _(t,i){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,_(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&C(e.$$.fragment,t),n=h()},m(t,i){e&&E(e,t,i),b(t,n,i),r=!0},p(t,i){if(i&2&&s!==(s=t[1][0])){if(e){S();const o=e;p(o.$$.fragment,1,0,()=>{y(o,1)}),P()}s?(e=k(s,_(t)),t[12](e),v(e.$$.fragment),g(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const o={};i&8&&(o.data=t[3]),i&4&&(o.form=t[2]),e.$set(o)}},i(t){r||(e&&g(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){t&&w(n),a[12](null),e&&y(e,t)}}}function x(a){let e,n,r;var s=a[1][0];function _(t,i){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=k(s,_(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&C(e.$$.fragment,t),n=h()},m(t,i){e&&E(e,t,i),b(t,n,i),r=!0},p(t,i){if(i&2&&s!==(s=t[1][0])){if(e){S();const o=e;p(o.$$.fragment,1,0,()=>{y(o,1)}),P()}s?(e=k(s,_(t)),t[11](e),v(e.$$.fragment),g(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const o={};i&8&&(o.data=t[3]),i&8215&&(o.$$scope={dirty:i,ctx:t}),e.$set(o)}},i(t){r||(e&&g(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){t&&w(n),a[11](null),e&&y(e,t)}}}function ee(a){let e,n,r;var s=a[1][1];function _(t,i){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,_(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&C(e.$$.fragment,t),n=h()},m(t,i){e&&E(e,t,i),b(t,n,i),r=!0},p(t,i){if(i&2&&s!==(s=t[1][1])){if(e){S();const o=e;p(o.$$.fragment,1,0,()=>{y(o,1)}),P()}s?(e=k(s,_(t)),t[10](e),v(e.$$.fragment),g(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const o={};i&16&&(o.data=t[4]),i&4&&(o.form=t[2]),e.$set(o)}},i(t){r||(e&&g(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){t&&w(n),a[10](null),e&&y(e,t)}}}function I(a){let e,n=a[6]&&N(a);return{c(){e=H("div"),n&&n.c(),this.h()},l(r){e=J(r,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=K(e);n&&n.l(s),s.forEach(w),this.h()},h(){A(e,"id","svelte-announcer"),A(e,"aria-live","assertive"),A(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(r,s){b(r,e,s),n&&n.m(e,null)},p(r,s){r[6]?n?n.p(r,s):(n=N(r),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(r){r&&w(e),n&&n.d()}}}function N(a){let e;return{c(){e=Q(a[7])},l(n){e=X(n,a[7])},m(n,r){b(n,e,r)},p(n,r){r&128&&Y(e,n[7])},d(n){n&&w(e)}}}function te(a){let e,n,r,s,_;const t=[x,$],i=[];function o(l,u){return l[1][1]?0:1}e=o(a),n=i[e]=t[e](a);let c=a[5]&&I(a);return{c(){n.c(),r=F(),c&&c.c(),s=h()},l(l){n.l(l),r=G(l),c&&c.l(l),s=h()},m(l,u){i[e].m(l,u),b(l,r,u),c&&c.m(l,u),b(l,s,u),_=!0},p(l,[u]){let d=e;e=o(l),e===d?i[e].p(l,u):(S(),p(i[d],1,1,()=>{i[d]=null}),P(),n=i[e],n?n.p(l,u):(n=i[e]=t[e](l),n.c()),g(n,1),n.m(r.parentNode,r)),l[5]?c?c.p(l,u):(c=I(l),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null)},i(l){_||(g(n),_=!0)},o(l){p(n),_=!1},d(l){l&&(w(r),w(s)),i[e].d(l),c&&c.d(l)}}}function ne(a,e,n){let{stores:r}=e,{page:s}=e,{constructors:_}=e,{components:t=[]}=e,{form:i}=e,{data_0:o=null}=e,{data_1:c=null}=e;V(r.page.notify);let l=!1,u=!1,d=null;j(()=>{const f=r.page.subscribe(()=>{l&&(n(6,u=!0),z().then(()=>{n(7,d=document.title||"untitled page")}))});return n(5,l=!0),f});function L(f){R[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function O(f){R[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function T(f){R[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(8,r=f.stores),"page"in f&&n(9,s=f.page),"constructors"in f&&n(1,_=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,i=f.form),"data_0"in f&&n(3,o=f.data_0),"data_1"in f&&n(4,c=f.data_1)},a.$$.update=()=>{a.$$.dirty&768&&r.page.set(s)},[t,_,i,o,c,l,u,d,r,s,L,O,T]}class oe extends B{constructor(e){super(),W(this,e,ne,te,U,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>q(()=>import("../nodes/0.CGj23tGJ.js"),__vite__mapDeps([0,1,2,3])),()=>q(()=>import("../nodes/1.BeHD1oMX.js"),__vite__mapDeps([4,1,2,5])),()=>q(()=>import("../nodes/2.ydMGe4kB.js"),__vite__mapDeps([6,1,2,7]))],le=[],fe={"/":[2]},ce={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads};
@@ -0,0 +1 @@
1
+ import{a as t}from"../chunks/entry.BC6ZiVP6.js";export{t as start};
@@ -0,0 +1,7 @@
1
+ import{s as W,d as X,u as Y,g as Z,e as ee,o as te}from"../chunks/scheduler.Bmg8oFKD.js";import{S as se,i as ae,e as u,s as T,t as d,c as v,a as E,k as U,f as x,b as m,d as i,l as D,g as C,h as t,j as le,q as ne,o as re}from"../chunks/index.Q3sXdwuS.js";const ie=!0,ge=Object.freeze(Object.defineProperty({__proto__:null,prerender:ie},Symbol.toStringTag,{value:"Module"})),oe="vag_ui",ce="0.0.3",pe="The webUI of vag",ue="module",ve={dev:"vite dev",build:"vite build",preview:"vite preview",check:"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json","check:watch":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch","test:unit":"vitest","test:unit:once":"vitest --run",lint:"prettier --check . && eslint .",ci:"run-s build lint check test:unit:once",format:"prettier --write .",clean:"shx rm -fr .svelte-kit build node_modules"},he={"@sveltejs/adapter-auto":"^3.2.5","@sveltejs/adapter-static":"^3.0.5","@sveltejs/kit":"^2.6.0","@sveltejs/vite-plugin-svelte":"^3.1.2","@types/eslint":"^9.6.1",eslint:"^9.11.1","eslint-config-prettier":"^9.1.0","eslint-plugin-svelte":"^2.44.1",globals:"^15.9.0","npm-run-all":"^4.1.5",prettier:"^3.3.3","prettier-plugin-svelte":"^3.2.7",sass:"^1.79.3",shx:"^0.3.4",svelte:"^4.2.19","svelte-check":"^4.0.3",typescript:"^5.6.2","typescript-eslint":"^8.7.0",vite:"^5.4.8",vitest:"^2.1.1"},Q={name:oe,version:ce,description:pe,private:!0,type:ue,scripts:ve,devDependencies:he};function fe(h){let a,o,L="Vag webUI",g,c,n,M,$,f,A,r,k,F='<ol><li><a href="https://charlyoleg2.github.io/vag">homepage</a></li> <li><a href="https://www.npmjs.com/package/vag_tools">npm-package</a></li> <li><a href="https://github.com/charlyoleg2/vag">sources</a></li></ol>',H,y,V='<h6>Examples</h6> <ol><li><a href="https://github.com/charlyoleg2/parametrix_vag">parametrix_vag</a></li></ol>',I,j,p,R,B=Q.name+"",S,O,G=Q.version+"",P,q,_;const z=h[2].default,l=X(z,h,h[1],null);return{c(){a=u("header"),o=u("h1"),o.textContent=L,g=T(),c=u("span"),n=d("running in the directory : "),M=d(h[0]),$=T(),f=u("main"),l&&l.c(),A=T(),r=u("footer"),k=u("article"),k.innerHTML=F,H=T(),y=u("article"),y.innerHTML=V,I=T(),j=u("article"),p=u("pre"),R=d(`npm package:
2
+ name: `),S=d(B),O=d(`
3
+ version : `),P=d(G),q=d(`
4
+ `),this.h()},l(e){a=v(e,"HEADER",{class:!0});var s=E(a);o=v(s,"H1",{class:!0,"data-svelte-h":!0}),U(o)!=="svelte-1rc6va0"&&(o.textContent=L),g=x(s),c=v(s,"SPAN",{});var N=E(c);n=m(N,"running in the directory : "),M=m(N,h[0]),N.forEach(i),s.forEach(i),$=x(e),f=v(e,"MAIN",{class:!0});var J=E(f);l&&l.l(J),J.forEach(i),A=x(e),r=v(e,"FOOTER",{class:!0});var b=E(r);k=v(b,"ARTICLE",{"data-svelte-h":!0}),U(k)!=="svelte-b8gwxe"&&(k.innerHTML=F),H=x(b),y=v(b,"ARTICLE",{"data-svelte-h":!0}),U(y)!=="svelte-x5z1nf"&&(y.innerHTML=V),I=x(b),j=v(b,"ARTICLE",{});var K=E(j);p=v(K,"PRE",{});var w=E(p);R=m(w,`npm package:
5
+ name: `),S=m(w,B),O=m(w,`
6
+ version : `),P=m(w,G),q=m(w,`
7
+ `),w.forEach(i),K.forEach(i),b.forEach(i),this.h()},h(){D(o,"class","svelte-12vn5r8"),D(a,"class","svelte-12vn5r8"),D(f,"class","svelte-12vn5r8"),D(r,"class","svelte-12vn5r8")},m(e,s){C(e,a,s),t(a,o),t(a,g),t(a,c),t(c,n),t(c,M),C(e,$,s),C(e,f,s),l&&l.m(f,null),C(e,A,s),C(e,r,s),t(r,k),t(r,H),t(r,y),t(r,I),t(r,j),t(j,p),t(p,R),t(p,S),t(p,O),t(p,P),t(p,q),_=!0},p(e,[s]){(!_||s&1)&&le(M,e[0]),l&&l.p&&(!_||s&2)&&Y(l,z,e,e[1],_?ee(z,e[1],s,null):Z(e[1]),null)},i(e){_||(ne(l,e),_=!0)},o(e){re(l,e),_=!1},d(e){e&&(i(a),i($),i(f),i(A),i(r)),l&&l.d(e)}}}function _e(h,a,o){let{$$slots:L={},$$scope:g}=a,c="unknown";return te(async()=>{try{const n=await fetch("/api/currDir");if(n.ok)o(0,c=await n.text());else throw`err312: fetch response status ${n.status}`}catch(n){console.log("err621: error while fetching /api/currDir"),console.log(n)}}),h.$$set=n=>{"$$scope"in n&&o(1,g=n.$$scope)},[c,g,L]}class ke extends se{constructor(a){super(),ae(this,a,_e,fe,W,{})}}export{ke as component,ge as universal};
@@ -0,0 +1 @@
1
+ import{s as S,n as _,c as x}from"../chunks/scheduler.Bmg8oFKD.js";import{S as j,i as q,e as f,t as d,s as y,c as g,a as h,b as v,d as u,f as C,g as m,h as $,j as E}from"../chunks/index.Q3sXdwuS.js";import{s as H}from"../chunks/entry.BC6ZiVP6.js";const P=()=>{const s=H;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},k={subscribe(s){return P().page.subscribe(s)}};function w(s){var b;let t,r=s[0].status+"",o,n,i,c=((b=s[0].error)==null?void 0:b.message)+"",l;return{c(){t=f("h1"),o=d(r),n=y(),i=f("p"),l=d(c)},l(e){t=g(e,"H1",{});var a=h(t);o=v(a,r),a.forEach(u),n=C(e),i=g(e,"P",{});var p=h(i);l=v(p,c),p.forEach(u)},m(e,a){m(e,t,a),$(t,o),m(e,n,a),m(e,i,a),$(i,l)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&E(o,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&E(l,c)},i:_,o:_,d(e){e&&(u(t),u(n),u(i))}}}function z(s,t,r){let o;return x(s,k,n=>r(0,o=n)),[o]}let F=class extends j{constructor(t){super(),q(this,t,z,w,S,{})}};export{F as component};
@@ -0,0 +1 @@
1
+ import{s as G,n as F,r as I}from"../chunks/scheduler.Bmg8oFKD.js";import{S as J,i as K,e as o,s as x,t as L,c,k as C,f as m,a as E,d as s,b as M,l as N,g as a,h as q,m as O,j as Q}from"../chunks/index.Q3sXdwuS.js";function R(r){let n,T="Trigger a sequence of tasks",f,l,i,z="task-1",k,u,_,U="task-2",b,h,p,j="task-3",y,d,H="last task",P,v,$,B,S;return{c(){n=o("h1"),n.textContent=T,f=x(),l=o("p"),i=o("button"),i.textContent=z,k=x(),u=o("p"),_=o("button"),_.textContent=U,b=x(),h=o("p"),p=o("button"),p.textContent=j,y=x(),d=o("h6"),d.textContent=H,P=x(),v=o("p"),$=L(r[0]),this.h()},l(t){n=c(t,"H1",{"data-svelte-h":!0}),C(n)!=="svelte-xgr9af"&&(n.textContent=T),f=m(t),l=c(t,"P",{});var e=E(l);i=c(e,"BUTTON",{class:!0,"data-svelte-h":!0}),C(i)!=="svelte-dxvtgv"&&(i.textContent=z),e.forEach(s),k=m(t),u=c(t,"P",{});var w=E(u);_=c(w,"BUTTON",{class:!0,"data-svelte-h":!0}),C(_)!=="svelte-txz99p"&&(_.textContent=U),w.forEach(s),b=m(t),h=c(t,"P",{});var A=E(h);p=c(A,"BUTTON",{class:!0,"data-svelte-h":!0}),C(p)!=="svelte-1uth7kz"&&(p.textContent=j),A.forEach(s),y=m(t),d=c(t,"H6",{"data-svelte-h":!0}),C(d)!=="svelte-zjuiq9"&&(d.textContent=H),P=m(t),v=c(t,"P",{});var D=E(v);$=M(D,r[0]),D.forEach(s),this.h()},h(){N(i,"class","svelte-s3y5ud"),N(_,"class","svelte-s3y5ud"),N(p,"class","svelte-s3y5ud")},m(t,e){a(t,n,e),a(t,f,e),a(t,l,e),q(l,i),a(t,k,e),a(t,u,e),q(u,_),a(t,b,e),a(t,h,e),q(h,p),a(t,y,e),a(t,d,e),a(t,P,e),a(t,v,e),q(v,$),B||(S=[O(i,"click",r[2]),O(_,"click",r[3]),O(p,"click",r[4])],B=!0)},p(t,[e]){e&1&&Q($,t[0])},i:F,o:F,d(t){t&&(s(n),s(f),s(l),s(k),s(u),s(b),s(h),s(y),s(d),s(P),s(v)),B=!1,I(S)}}}function V(r,n,T){let f="0";function l(u){T(0,f=`task-${u}`)}return[f,l,()=>l(1),()=>l(2),()=>l(3)]}class Y extends J{constructor(n){super(),K(this,n,V,R,G,{})}}export{Y as component};
@@ -0,0 +1 @@
1
+ {"version":"1727468009254"}
Binary file
@@ -0,0 +1,49 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <link rel="icon" href="/favicon.png" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+
8
+ <link href="/_app/immutable/assets/0.C7lbsLW4.css" rel="stylesheet">
9
+ <link href="/_app/immutable/assets/2.DCg60gzD.css" rel="stylesheet">
10
+ <link rel="modulepreload" href="/_app/immutable/entry/start.BxuWhAlv.js">
11
+ <link rel="modulepreload" href="/_app/immutable/chunks/entry.BC6ZiVP6.js">
12
+ <link rel="modulepreload" href="/_app/immutable/chunks/scheduler.Bmg8oFKD.js">
13
+ <link rel="modulepreload" href="/_app/immutable/entry/app.TA4GJhIR.js">
14
+ <link rel="modulepreload" href="/_app/immutable/chunks/index.Q3sXdwuS.js">
15
+ <link rel="modulepreload" href="/_app/immutable/nodes/0.CGj23tGJ.js">
16
+ <link rel="modulepreload" href="/_app/immutable/nodes/2.ydMGe4kB.js">
17
+ </head>
18
+ <body data-sveltekit-preload-data="hover">
19
+ <div style="display: contents"> <header class="svelte-12vn5r8"><h1 class="svelte-12vn5r8" data-svelte-h="svelte-1rc6va0">Vag webUI</h1> <span>running in the directory : unknown</span></header> <main class="svelte-12vn5r8"><h1 data-svelte-h="svelte-xgr9af">Trigger a sequence of tasks</h1> <p><button class="svelte-s3y5ud" data-svelte-h="svelte-dxvtgv">task-1</button></p> <p><button class="svelte-s3y5ud" data-svelte-h="svelte-txz99p">task-2</button></p> <p><button class="svelte-s3y5ud" data-svelte-h="svelte-1uth7kz">task-3</button></p> <h6 data-svelte-h="svelte-zjuiq9">last task</h6> <p>0</p></main> <footer class="svelte-12vn5r8"><article data-svelte-h="svelte-b8gwxe"><ol><li><a href="https://charlyoleg2.github.io/vag">homepage</a></li> <li><a href="https://www.npmjs.com/package/vag_tools">npm-package</a></li> <li><a href="https://github.com/charlyoleg2/vag">sources</a></li></ol></article> <article data-svelte-h="svelte-x5z1nf"><h6>Examples</h6> <ol><li><a href="https://github.com/charlyoleg2/parametrix_vag">parametrix_vag</a></li></ol></article> <article><pre>npm package:
20
+ name: vag_ui
21
+ version : 0.0.3
22
+ </pre></article> </footer>
23
+
24
+ <script>
25
+ {
26
+ __sveltekit_1i1kjti = {
27
+ base: ""
28
+ };
29
+
30
+ const element = document.currentScript.parentElement;
31
+
32
+ const data = [null,null];
33
+
34
+ Promise.all([
35
+ import("/_app/immutable/entry/start.BxuWhAlv.js"),
36
+ import("/_app/immutable/entry/app.TA4GJhIR.js")
37
+ ]).then(([kit, app]) => {
38
+ kit.start(app, element, {
39
+ node_ids: [0, 2],
40
+ data,
41
+ form: null,
42
+ error: null
43
+ });
44
+ });
45
+ }
46
+ </script>
47
+ </div>
48
+ </body>
49
+ </html>
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/tester_websocket_client.ts
4
+ import { io } from "socket.io-client";
5
+ var socket = io("ws://localhost:3000");
6
+ socket.on("hello", (arg) => {
7
+ console.log(`tester-client receives: ${arg}`);
8
+ });
9
+ //# sourceMappingURL=tester_websocket_client.js.map
package/dist/vag_cli.js CHANGED
@@ -15,7 +15,7 @@ import { simpleGit } from "simple-git";
15
15
  // package.json
16
16
  var package_default = {
17
17
  name: "vag_tools",
18
- version: "0.0.7",
18
+ version: "0.0.9",
19
19
  description: "api and cli for managing sub-git-repositories",
20
20
  type: "module",
21
21
  private: false,
@@ -38,7 +38,8 @@ var package_default = {
38
38
  entry: [
39
39
  "src/vag_core.ts",
40
40
  "src/vag_cli.ts",
41
- "src/vagg_server.ts"
41
+ "src/vagg_server.ts",
42
+ "src/tester_websocket_client.ts"
42
43
  ],
43
44
  format: "esm",
44
45
  splitting: false,
@@ -55,13 +56,14 @@ var package_default = {
55
56
  lint: "eslint .",
56
57
  "test:unit": "vitest",
57
58
  "test:unit:once": "vitest --run",
58
- ci: "run-s check build pretty lint",
59
- clean: "shx rm -fr build dist tmp",
60
- "test:basic": "node build/tests/vag.test.js",
61
- "test:cli": "tests/vag-cli.test.sh",
62
- "test:coverage": "vitest run --coverage",
63
- test: "run-s test:basic test:cli test:vitest",
64
- "dist:build": "tsc --build tsconfig.dist.json",
59
+ clean_public: "shx rm -fr dist/public",
60
+ copy: "shx cp -r ../vag_ui/build dist/public",
61
+ checkCopy: "ls -l dist/public/index.html",
62
+ ci: "run-s check build pretty lint test:unit:once clean_public copy checkCopy",
63
+ clean: "shx rm -fr build dist tmp node_modules",
64
+ "run:cli": "node dist/vag_cli.js",
65
+ "run:server": "node dist/vagg_server.js",
66
+ "run:clients": "tests/run_clients.sh",
65
67
  clean_all: "run-s clean"
66
68
  },
67
69
  repository: {
@@ -85,23 +87,27 @@ var package_default = {
85
87
  },
86
88
  homepage: "https://github.com/charlyoleg2/vag#readme",
87
89
  dependencies: {
90
+ "@hono/node-server": "^1.13.1",
88
91
  "fs-extra": "^11.2.0",
89
- "simple-git": "^3.25.0",
90
- yaml: "^2.5.0",
92
+ hono: "^4.6.3",
93
+ "simple-git": "^3.27.0",
94
+ "socket.io": "^4.8.0",
95
+ "socket.io-client": "^4.8.0",
96
+ yaml: "^2.5.1",
91
97
  yargs: "^17.7.2"
92
98
  },
93
99
  devDependencies: {
94
100
  "@types/fs-extra": "^11.0.4",
95
- "@types/node": "^22.1.0",
96
- "@types/yargs": "^17.0.32",
97
- eslint: "^9.8.0",
101
+ "@types/node": "^22.7.4",
102
+ "@types/yargs": "^17.0.33",
103
+ eslint: "^9.11.1",
98
104
  "npm-run-all": "^4.1.5",
99
105
  prettier: "^3.3.3",
100
106
  shx: "^0.3.4",
101
- tsup: "^8.2.4",
102
- typescript: "^5.5.4",
103
- "typescript-eslint": "^8.0.0",
104
- vitest: "^2.0.5"
107
+ tsup: "^8.3.0",
108
+ typescript: "^5.6.2",
109
+ "typescript-eslint": "^8.7.0",
110
+ vitest: "^2.1.1"
105
111
  },
106
112
  prettier: {
107
113
  useTabs: true,
package/dist/vag_core.js CHANGED
@@ -9,7 +9,7 @@ import { simpleGit } from "simple-git";
9
9
  // package.json
10
10
  var package_default = {
11
11
  name: "vag_tools",
12
- version: "0.0.7",
12
+ version: "0.0.9",
13
13
  description: "api and cli for managing sub-git-repositories",
14
14
  type: "module",
15
15
  private: false,
@@ -32,7 +32,8 @@ var package_default = {
32
32
  entry: [
33
33
  "src/vag_core.ts",
34
34
  "src/vag_cli.ts",
35
- "src/vagg_server.ts"
35
+ "src/vagg_server.ts",
36
+ "src/tester_websocket_client.ts"
36
37
  ],
37
38
  format: "esm",
38
39
  splitting: false,
@@ -49,13 +50,14 @@ var package_default = {
49
50
  lint: "eslint .",
50
51
  "test:unit": "vitest",
51
52
  "test:unit:once": "vitest --run",
52
- ci: "run-s check build pretty lint",
53
- clean: "shx rm -fr build dist tmp",
54
- "test:basic": "node build/tests/vag.test.js",
55
- "test:cli": "tests/vag-cli.test.sh",
56
- "test:coverage": "vitest run --coverage",
57
- test: "run-s test:basic test:cli test:vitest",
58
- "dist:build": "tsc --build tsconfig.dist.json",
53
+ clean_public: "shx rm -fr dist/public",
54
+ copy: "shx cp -r ../vag_ui/build dist/public",
55
+ checkCopy: "ls -l dist/public/index.html",
56
+ ci: "run-s check build pretty lint test:unit:once clean_public copy checkCopy",
57
+ clean: "shx rm -fr build dist tmp node_modules",
58
+ "run:cli": "node dist/vag_cli.js",
59
+ "run:server": "node dist/vagg_server.js",
60
+ "run:clients": "tests/run_clients.sh",
59
61
  clean_all: "run-s clean"
60
62
  },
61
63
  repository: {
@@ -79,23 +81,27 @@ var package_default = {
79
81
  },
80
82
  homepage: "https://github.com/charlyoleg2/vag#readme",
81
83
  dependencies: {
84
+ "@hono/node-server": "^1.13.1",
82
85
  "fs-extra": "^11.2.0",
83
- "simple-git": "^3.25.0",
84
- yaml: "^2.5.0",
86
+ hono: "^4.6.3",
87
+ "simple-git": "^3.27.0",
88
+ "socket.io": "^4.8.0",
89
+ "socket.io-client": "^4.8.0",
90
+ yaml: "^2.5.1",
85
91
  yargs: "^17.7.2"
86
92
  },
87
93
  devDependencies: {
88
94
  "@types/fs-extra": "^11.0.4",
89
- "@types/node": "^22.1.0",
90
- "@types/yargs": "^17.0.32",
91
- eslint: "^9.8.0",
95
+ "@types/node": "^22.7.4",
96
+ "@types/yargs": "^17.0.33",
97
+ eslint: "^9.11.1",
92
98
  "npm-run-all": "^4.1.5",
93
99
  prettier: "^3.3.3",
94
100
  shx: "^0.3.4",
95
- tsup: "^8.2.4",
96
- typescript: "^5.5.4",
97
- "typescript-eslint": "^8.0.0",
98
- vitest: "^2.0.5"
101
+ tsup: "^8.3.0",
102
+ typescript: "^5.6.2",
103
+ "typescript-eslint": "^8.7.0",
104
+ vitest: "^2.1.1"
99
105
  },
100
106
  prettier: {
101
107
  useTabs: true,
@@ -1,5 +1,40 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/vagg_server.ts
4
+ import { Hono } from "hono";
5
+ import { serve as honoServer } from "@hono/node-server";
6
+ import { serveStatic } from "@hono/node-server/serve-static";
7
+ import { Server as WSserver } from "socket.io";
4
8
  console.log("hello from vagg_server.ts!");
9
+ var app = new Hono();
10
+ var port = 3e3;
11
+ var httpServer = honoServer({
12
+ fetch: app.fetch,
13
+ port: 3e3
14
+ });
15
+ app.get("/api/abc", (ctx) => {
16
+ return ctx.text("Hello from /api/abc");
17
+ });
18
+ app.get("/api/currDir", (ctx) => {
19
+ const rCurrDir = process.cwd();
20
+ return ctx.text(rCurrDir);
21
+ });
22
+ app.use(
23
+ "*",
24
+ serveStatic({
25
+ root: "./dist/public",
26
+ // TODO: change it to absolute path
27
+ onNotFound: (path, ctx) => {
28
+ console.log(`dbg028: ${path} is not found, request to ${ctx.req.path}`);
29
+ }
30
+ })
31
+ );
32
+ var io = new WSserver(httpServer, {});
33
+ io.on("connection", (socket) => {
34
+ socket.emit("hello", "worldy");
35
+ socket.on("howdy", (arg) => {
36
+ console.log(`server receives: ${arg}`);
37
+ });
38
+ });
39
+ console.log(`vagg_server is running on port ${port}`);
5
40
  //# sourceMappingURL=vagg_server.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vag_tools",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "api and cli for managing sub-git-repositories",
5
5
  "type": "module",
6
6
  "private": false,
@@ -23,7 +23,8 @@
23
23
  "entry": [
24
24
  "src/vag_core.ts",
25
25
  "src/vag_cli.ts",
26
- "src/vagg_server.ts"
26
+ "src/vagg_server.ts",
27
+ "src/tester_websocket_client.ts"
27
28
  ],
28
29
  "format": "esm",
29
30
  "splitting": false,
@@ -40,13 +41,14 @@
40
41
  "lint": "eslint .",
41
42
  "test:unit": "vitest",
42
43
  "test:unit:once": "vitest --run",
43
- "ci": "run-s check build pretty lint",
44
- "clean": "shx rm -fr build dist tmp",
45
- "test:basic": "node build/tests/vag.test.js",
46
- "test:cli": "tests/vag-cli.test.sh",
47
- "test:coverage": "vitest run --coverage",
48
- "test": "run-s test:basic test:cli test:vitest",
49
- "dist:build": "tsc --build tsconfig.dist.json",
44
+ "clean_public": "shx rm -fr dist/public",
45
+ "copy": "shx cp -r ../vag_ui/build dist/public",
46
+ "checkCopy": "ls -l dist/public/index.html",
47
+ "ci": "run-s check build pretty lint test:unit:once clean_public copy checkCopy",
48
+ "clean": "shx rm -fr build dist tmp node_modules",
49
+ "run:cli": "node dist/vag_cli.js",
50
+ "run:server": "node dist/vagg_server.js",
51
+ "run:clients": "tests/run_clients.sh",
50
52
  "clean_all": "run-s clean"
51
53
  },
52
54
  "repository": {
@@ -70,23 +72,27 @@
70
72
  },
71
73
  "homepage": "https://github.com/charlyoleg2/vag#readme",
72
74
  "dependencies": {
75
+ "@hono/node-server": "^1.13.1",
73
76
  "fs-extra": "^11.2.0",
74
- "simple-git": "^3.25.0",
75
- "yaml": "^2.5.0",
77
+ "hono": "^4.6.3",
78
+ "simple-git": "^3.27.0",
79
+ "socket.io": "^4.8.0",
80
+ "socket.io-client": "^4.8.0",
81
+ "yaml": "^2.5.1",
76
82
  "yargs": "^17.7.2"
77
83
  },
78
84
  "devDependencies": {
79
85
  "@types/fs-extra": "^11.0.4",
80
- "@types/node": "^22.1.0",
81
- "@types/yargs": "^17.0.32",
82
- "eslint": "^9.8.0",
86
+ "@types/node": "^22.7.4",
87
+ "@types/yargs": "^17.0.33",
88
+ "eslint": "^9.11.1",
83
89
  "npm-run-all": "^4.1.5",
84
90
  "prettier": "^3.3.3",
85
91
  "shx": "^0.3.4",
86
- "tsup": "^8.2.4",
87
- "typescript": "^5.5.4",
88
- "typescript-eslint": "^8.0.0",
89
- "vitest": "^2.0.5"
92
+ "tsup": "^8.3.0",
93
+ "typescript": "^5.6.2",
94
+ "typescript-eslint": "^8.7.0",
95
+ "vitest": "^2.1.1"
90
96
  },
91
97
  "prettier": {
92
98
  "useTabs": true,