dorkos 0.40.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +6 -6
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-qCkSGZav-y4VZHKeL.js → BaseTanStackRouterDevtoolsPanel-qCkSGZav-DszsBmbQ.js} +1 -1
- package/dist/client/assets/{ConfigTab-C1mbauBD.js → ConfigTab-mcQ5x4qU.js} +1 -1
- package/dist/client/assets/{FloatingTanStackRouterDevtools-Dz-7tBRe-2GNCjpSI.js → FloatingTanStackRouterDevtools-Dz-7tBRe-CN2bOoWg.js} +1 -1
- package/dist/client/assets/{RightPanelHeader-CJWAr3PG.js → RightPanelHeader-CGEG7LOq.js} +1 -1
- package/dist/client/assets/{SessionsTab-bTorghie.js → SessionsTab-DH9cLM2D.js} +1 -1
- package/dist/client/assets/{ToolkitTab-BcGP71Tx.js → ToolkitTab-GtFaxZsL.js} +1 -1
- package/dist/client/assets/{TopologyGraph-bI_Br0Hr.js → TopologyGraph-KYdcnTD_.js} +1 -1
- package/dist/client/assets/{highlighted-body-OFNGDK62-BeV1e3RF.js → highlighted-body-OFNGDK62-Mj9iOIGp.js} +1 -1
- package/dist/client/assets/{index-Bi7loucf.js → index-BaLWvgsm.js} +1 -1
- package/dist/client/assets/{index-DMueT7v7.js → index-DYmxKiJq.js} +257 -257
- package/dist/client/assets/{index-Dpw0VtOK.js → index-DqvXQL7O.js} +1 -1
- package/dist/client/assets/index-IvdM_5TV.js +11 -0
- package/dist/client/assets/{index-frwwj3e3.js → index-XEh-nhny.js} +1 -1
- package/dist/client/assets/index-XhuBRVOD.css +1 -0
- package/dist/client/assets/{index-51524ZkZ.js → index-xSpWVT1G.js} +2 -2
- package/dist/client/index.html +2 -2
- package/dist/server/index.js +94 -20
- package/dist/server/index.js.map +2 -2
- package/package.json +3 -3
- package/dist/client/assets/index-BekkpIbE.js +0 -11
- package/dist/client/assets/index-DPXiU-k1.css +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FloatingTanStackRouterDevtools-Dz-7tBRe-
|
|
2
|
-
var Fe=e=>{throw TypeError(e)};var Ve=(e,t,n)=>t.has(e)||Fe("Cannot "+n);var y=(e,t,n)=>(Ve(e,t,"read from private field"),n?n.call(e):t.get(e)),p=(e,t,n)=>t.has(e)?Fe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),m=(e,t,n,s)=>(Ve(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n);import{a4 as Ye,a5 as ze,a as Qe,r as C,j as le}from"./index-DMueT7v7.js";var d={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Be(this.context.count)},getNextContextId(){return Be(this.context.count++)}};function Be(e){const t=String(e),n=t.length-1;return d.context.id+(n?String.fromCharCode(96+n):"")+t}function ie(e){d.context=e}var dt=(e,t)=>e===t,be=Symbol("solid-proxy"),Je=typeof Proxy=="function",ht=Symbol("solid-track"),Se={equals:dt},Ze=rt,L=1,xe=2,et={owned:null,cleanups:null,context:null,owner:null},Re={},w=null,Ne=null,gt=null,v=null,E=null,$=null,Pe=0;function ve(e,t){const n=v,s=w,r=e.length===0,l=t===void 0?s:t,i=r?et:{owned:null,cleanups:null,context:l?l.context:null,owner:l},o=r?e:()=>e(()=>P(()=>ce(i)));w=i,v=null;try{return j(o,!0)}finally{v=n,w=s}}function D(e,t){t=t?Object.assign({},Se,t):Se;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},s=r=>(typeof r=="function"&&(r=r(n.value)),ot(n,r));return[st.bind(n),s]}function yt(e,t,n){const s=Ae(e,t,!0,L);se(s)}function V(e,t,n){const s=Ae(e,t,!1,L);se(s)}function yn(e,t,n){Ze=Ot;const s=Ae(e,t,!1,L);(!n||!n.render)&&(s.user=!0),$?$.push(s):se(s)}function x(e,t,n){n=n?Object.assign({},Se,n):Se;const s=Ae(e,t,!0,0);return s.observers=null,s.observerSlots=null,s.comparator=n.equals||void 0,se(s),st.bind(s)}function mt(e){return e&&typeof e=="object"&&"then"in e}function wt(e,t,n){let s,r,l;s=!0,r=e,l={};let i=null,o=Re,a=null,f=!1,u="initialValue"in l,c=typeof s=="function"&&x(s);const h=new Set,[g,R]=(l.storage||D)(l.initialValue),[M,U]=D(void 0),[oe,N]=D(void 0,{equals:!1}),[T,k]=D(u?"ready":"unresolved");d.context&&(a=d.getNextContextId(),l.ssrLoadFrom==="initial"?o=l.initialValue:d.load&&d.has(a)&&(o=d.load(a)));function A(S,b,I,O){return i===S&&(i=null,O!==void 0&&(u=!0),(S===o||b===o)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(O,{value:b})),o=Re,Te(b,I)),b}function Te(S,b){j(()=>{b===void 0&&R(()=>S),k(b!==void 0?"errored":u?"ready":"unresolved"),U(b);for(const I of h.keys())I.decrement();h.clear()},!1)}function Ce(){const S=St,b=g(),I=M();if(I!==void 0&&!i)throw I;return v&&v.user,b}function De(S=!0){if(S!==!1&&f)return;f=!1;const b=c?c():s;if(b==null||b===!1){A(i,P(g));return}let I;const O=o!==Re?o:P(()=>{try{return r(b,{value:g(),refetching:S})}catch(re){I=re}});if(I!==void 0){A(i,void 0,pe(I),b);return}else if(!mt(O))return A(i,O,void 0,b),O;return i=O,"v"in O?(O.s===1?A(i,O.v,void 0,b):A(i,void 0,pe(O.v),b),O):(f=!0,queueMicrotask(()=>f=!1),j(()=>{k(u?"refreshing":"pending"),N()},!1),O.then(re=>A(O,re,void 0,b),re=>A(O,void 0,pe(re),b)))}Object.defineProperties(Ce,{state:{get:()=>T()},error:{get:()=>M()},loading:{get(){const S=T();return S==="pending"||S==="refreshing"}},latest:{get(){if(!u)return Ce();const S=M();if(S&&!i)throw S;return g()}}});let _e=w;return c?yt(()=>(_e=w,De(!1))):De(!1),[Ce,{refetch:S=>pt(_e,()=>De(S)),mutate:R}]}function P(e){if(v===null)return e();const t=v;v=null;try{return e()}finally{v=t}}function vt(e){return w===null||(w.cleanups===null?w.cleanups=[e]:w.cleanups.push(e)),e}function pt(e,t){const n=w,s=v;w=e,v=null;try{return j(t,!0)}catch(r){je(r)}finally{w=n,v=s}}var[mn,wn]=D(!1);function tt(e,t){const n=Symbol("context");return{id:n,Provider:Pt(n),defaultValue:e}}function bt(e){let t;return w&&w.context&&(t=w.context[e.id])!==void 0?t:e.defaultValue}function nt(e){const t=x(e),n=x(()=>Me(t()));return n.toArray=()=>{const s=n();return Array.isArray(s)?s:s!=null?[s]:[]},n}var St;function st(){if(this.sources&&this.state)if(this.state===L)se(this);else{const e=E;E=null,j(()=>Oe(this),!1),E=e}if(v){const e=this.observers?this.observers.length:0;v.sources?(v.sources.push(this),v.sourceSlots.push(e)):(v.sources=[this],v.sourceSlots=[e]),this.observers?(this.observers.push(v),this.observerSlots.push(v.sources.length-1)):(this.observers=[v],this.observerSlots=[v.sources.length-1])}return this.value}function ot(e,t,n){let s=e.value;return(!e.comparator||!e.comparator(s,t))&&(e.value=t,e.observers&&e.observers.length&&j(()=>{for(let r=0;r<e.observers.length;r+=1){const l=e.observers[r],i=Ne&&Ne.running;i&&Ne.disposed.has(l),(i?!l.tState:!l.state)&&(l.pure?E.push(l):$.push(l),l.observers&&it(l)),i||(l.state=L)}if(E.length>1e6)throw E=[],new Error},!1)),t}function se(e){if(!e.fn)return;ce(e);const t=Pe;xt(e,e.value,t)}function xt(e,t,n){let s;const r=w,l=v;v=w=e;try{s=e.fn(t)}catch(i){return e.pure&&(e.state=L,e.owned&&e.owned.forEach(ce),e.owned=null),e.updatedAt=n+1,je(i)}finally{v=l,w=r}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?ot(e,s):e.value=s,e.updatedAt=n)}function Ae(e,t,n,s=L,r){const l={fn:e,state:s,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:w,context:w?w.context:null,pure:n};return w===null||w!==et&&(w.owned?w.owned.push(l):w.owned=[l]),l}function Ee(e){if(e.state===0)return;if(e.state===xe)return Oe(e);if(e.suspense&&P(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Pe);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===L)se(e);else if(e.state===xe){const s=E;E=null,j(()=>Oe(e,t[0]),!1),E=s}}function j(e,t){if(E)return e();let n=!1;t||(E=[]),$?n=!0:$=[],Pe++;try{const s=e();return Et(n),s}catch(s){n||($=null),E=null,je(s)}}function Et(e){if(E&&(rt(E),E=null),e)return;const t=$;$=null,t.length&&j(()=>Ze(t),!1)}function rt(e){for(let t=0;t<e.length;t++)Ee(e[t])}function Ot(e){let t,n=0;for(t=0;t<e.length;t++){const s=e[t];s.user?e[n++]=s:Ee(s)}if(d.context){if(d.count){d.effects||(d.effects=[]),d.effects.push(...e.slice(0,n));return}ie()}for(d.effects&&(d.done||!d.count)&&(e=[...d.effects,...e],n+=d.effects.length,delete d.effects),t=0;t<n;t++)Ee(e[t])}function Oe(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const s=e.sources[n];if(s.sources){const r=s.state;r===L?s!==t&&(!s.updatedAt||s.updatedAt<Pe)&&Ee(s):r===xe&&Oe(s,t)}}}function it(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=xe,n.pure?E.push(n):$.push(n),n.observers&&it(n))}}function ce(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),s=e.sourceSlots.pop(),r=n.observers;if(r&&r.length){const l=r.pop(),i=n.observerSlots.pop();s<r.length&&(l.sourceSlots[i]=s,r[s]=l,n.observerSlots[s]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)ce(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)ce(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function pe(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function je(e,t=w){throw pe(e)}function Me(e){if(typeof e=="function"&&!e.length)return Me(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const s=Me(e[n]);Array.isArray(s)?t.push.apply(t,s):t.push(s)}return t}return e}function Pt(e,t){return function(s){let r;return V(()=>r=P(()=>(w.context={...w.context,[e]:s.value},nt(()=>s.children))),void 0),r}}var At=Symbol("fallback");function Ue(e){for(let t=0;t<e.length;t++)e[t]()}function Tt(e,t,n={}){let s=[],r=[],l=[],i=0,o=t.length>1?[]:null;return vt(()=>Ue(l)),()=>{let a=e()||[],f=a.length,u,c;return a[ht],P(()=>{let g,R,M,U,oe,N,T,k,A;if(f===0)i!==0&&(Ue(l),l=[],s=[],r=[],i=0,o&&(o=[])),n.fallback&&(s=[At],r[0]=ve(Te=>(l[0]=Te,n.fallback())),i=1);else if(i===0){for(r=new Array(f),c=0;c<f;c++)s[c]=a[c],r[c]=ve(h);i=f}else{for(M=new Array(f),U=new Array(f),o&&(oe=new Array(f)),N=0,T=Math.min(i,f);N<T&&s[N]===a[N];N++);for(T=i-1,k=f-1;T>=N&&k>=N&&s[T]===a[k];T--,k--)M[k]=r[T],U[k]=l[T],o&&(oe[k]=o[T]);for(g=new Map,R=new Array(k+1),c=k;c>=N;c--)A=a[c],u=g.get(A),R[c]=u===void 0?-1:u,g.set(A,c);for(u=N;u<=T;u++)A=s[u],c=g.get(A),c!==void 0&&c!==-1?(M[c]=r[u],U[c]=l[u],o&&(oe[c]=o[u]),c=R[c],g.set(A,c)):l[u]();for(c=N;c<f;c++)c in M?(r[c]=M[c],l[c]=U[c],o&&(o[c]=oe[c],o[c](c))):r[c]=ve(h);r=r.slice(0,i=f),s=a.slice(0)}return r});function h(g){if(l[c]=g,o){const[R,M]=D(c);return o[c]=M,t(a[c],R)}return t(a[c])}}}function ae(e,t){return P(()=>e(t||{}))}function we(){return!0}var Ie={get(e,t,n){return t===be?n:e.get(t)},has(e,t){return t===be?!0:e.has(t)},set:we,deleteProperty:we,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:we,deleteProperty:we}},ownKeys(e){return e.keys()}};function ke(e){return(e=typeof e=="function"?e():e)?e:{}}function Ct(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function vn(...e){let t=!1;for(let i=0;i<e.length;i++){const o=e[i];t=t||!!o&&be in o,e[i]=typeof o=="function"?(t=!0,x(o)):o}if(Je&&t)return new Proxy({get(i){for(let o=e.length-1;o>=0;o--){const a=ke(e[o])[i];if(a!==void 0)return a}},has(i){for(let o=e.length-1;o>=0;o--)if(i in ke(e[o]))return!0;return!1},keys(){const i=[];for(let o=0;o<e.length;o++)i.push(...Object.keys(ke(e[o])));return[...new Set(i)]}},Ie);const n={},s=Object.create(null);for(let i=e.length-1;i>=0;i--){const o=e[i];if(!o)continue;const a=Object.getOwnPropertyNames(o);for(let f=a.length-1;f>=0;f--){const u=a[f];if(u==="__proto__"||u==="constructor")continue;const c=Object.getOwnPropertyDescriptor(o,u);if(!s[u])s[u]=c.get?{enumerable:!0,configurable:!0,get:Ct.bind(n[u]=[c.get.bind(o)])}:c.value!==void 0?c:void 0;else{const h=n[u];h&&(c.get?h.push(c.get.bind(o)):c.value!==void 0&&h.push(()=>c.value))}}}const r={},l=Object.keys(s);for(let i=l.length-1;i>=0;i--){const o=l[i],a=s[o];a&&a.get?Object.defineProperty(r,o,a):r[o]=a?a.value:void 0}return r}function Dt(e,...t){const n=t.length;if(Je&&be in e){const r=n>1?t.flat():t[0],l=t.map(i=>new Proxy({get(o){return i.includes(o)?e[o]:void 0},has(o){return i.includes(o)&&o in e},keys(){return i.filter(o=>o in e)}},Ie));return l.push(new Proxy({get(i){return r.includes(i)?void 0:e[i]},has(i){return r.includes(i)?!1:i in e},keys(){return Object.keys(e).filter(i=>!r.includes(i))}},Ie)),l}const s=[];for(let r=0;r<=n;r++)s[r]={};for(const r of Object.getOwnPropertyNames(e)){let l=n;for(let o=0;o<t.length;o++)if(t[o].includes(r)){l=o;break}const i=Object.getOwnPropertyDescriptor(e,r);!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable?s[l][r]=i.value:Object.defineProperty(s[l],r,i)}return s}function lt(e){let t,n;const s=r=>{const l=d.context;if(l){const[o,a]=D();d.count||(d.count=0),d.count++,(n||(n=e())).then(f=>{!d.done&&ie(l),d.count--,a(()=>f.default),ie()}),t=o}else if(!t){const[o]=wt(()=>(n||(n=e())).then(a=>a.default));t=o}let i;return x(()=>(i=t())?P(()=>{if(!l||d.done)return i(r);const o=d.context;ie(l);const a=i(r);return ie(o),a}):"")};return s.preload=()=>n||((n=e()).then(r=>t=()=>r.default),n),s}var Rt=0;function pn(){return d.context?d.getNextContextId():`cl-${Rt++}`}var at=e=>`Stale read from <${e}>.`;function bn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return x(Tt(()=>e.each,e.children,t||void 0))}function Sn(e){const t=e.keyed,n=x(()=>e.when,void 0,void 0),s=t?n:x(n,void 0,{equals:(r,l)=>!r==!l});return x(()=>{const r=s();if(r){const l=e.children;return typeof l=="function"&&l.length>0?P(()=>l(t?r:()=>{if(!P(s))throw at("Show");return n()})):l}return e.fallback},void 0,void 0)}function xn(e){const t=nt(()=>e.children),n=x(()=>{const s=t(),r=Array.isArray(s)?s:[s];let l=()=>{};for(let i=0;i<r.length;i++){const o=i,a=r[i],f=l,u=x(()=>f()?void 0:a.when,void 0,void 0),c=a.keyed?u:x(u,void 0,{equals:(h,g)=>!h==!g});l=()=>f()||(c()?[o,u,a]:void 0)}return l});return x(()=>{const s=n()();if(!s)return e.fallback;const[r,l,i]=s,o=i.children;return typeof o=="function"&&o.length>0?P(()=>o(i.keyed?l():()=>{var a;if(((a=P(n)())==null?void 0:a[0])!==r)throw at("Match");return l()})):o},void 0,void 0)}function En(e){return e}var Nt=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable","allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"]),kt=new Set(["innerHTML","textContent","innerText","children"]),Mt=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),It=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function $t(e,t){const n=It[e];return typeof n=="object"?n[t]?n.$:void 0:n}var Lt=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),jt=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),_t={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},On=e=>x(()=>e());function Ft(e,t,n){let s=n.length,r=t.length,l=s,i=0,o=0,a=t[r-1].nextSibling,f=null;for(;i<r||o<l;){if(t[i]===n[o]){i++,o++;continue}for(;t[r-1]===n[l-1];)r--,l--;if(r===i){const u=l<s?o?n[o-1].nextSibling:n[l-o]:a;for(;o<l;)e.insertBefore(n[o++],u)}else if(l===o)for(;i<r;)(!f||!f.has(t[i]))&&t[i].remove(),i++;else if(t[i]===n[l-1]&&n[o]===t[r-1]){const u=t[--r].nextSibling;e.insertBefore(n[o++],t[i++].nextSibling),e.insertBefore(n[--l],u),t[r]=n[l]}else{if(!f){f=new Map;let c=o;for(;c<l;)f.set(n[c],c++)}const u=f.get(t[i]);if(u!=null)if(o<u&&u<l){let c=i,h=1,g;for(;++c<r&&c<l&&!((g=f.get(t[c]))==null||g!==u+h);)h++;if(h>u-o){const R=t[i];for(;o<u;)e.insertBefore(n[o++],R)}else e.replaceChild(n[o++],t[i++])}else i++;else t[i++].remove()}}}var Ge="_$DX_DELEGATE";function ct(e,t,n,s={}){let r;return ve(l=>{r=l,t===document?e():Yt(t,e(),t.firstChild?null:void 0,n)},s.owner),()=>{r(),t.textContent=""}}function Pn(e,t,n,s){let r;const l=()=>{const o=document.createElement("template");return o.innerHTML=e,o.content.firstChild},i=()=>(r||(r=l())).cloneNode(!0);return i.cloneNode=i,i}function Vt(e,t=window.document){const n=t[Ge]||(t[Ge]=new Set);for(let s=0,r=e.length;s<r;s++){const l=e[s];n.has(l)||(n.add(l),t.addEventListener(l,Zt))}}function $e(e,t,n){B(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Bt(e,t,n,s){B(e)||(s==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,s))}function Ut(e,t,n){B(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function Gt(e,t){B(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Ht(e,t,n,s){if(s)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=l=>r.call(e,n[1],l))}else e.addEventListener(t,n,typeof n!="function"&&n)}function Kt(e,t,n={}){const s=Object.keys(t||{}),r=Object.keys(n);let l,i;for(l=0,i=r.length;l<i;l++){const o=r[l];!o||o==="undefined"||t[o]||(He(e,o,!1),delete n[o])}for(l=0,i=s.length;l<i;l++){const o=s[l],a=!!t[o];!o||o==="undefined"||n[o]===a||!a||(He(e,o,!0),n[o]=a)}return n}function qt(e,t,n){if(!t)return n?$e(e,"style"):t;const s=e.style;if(typeof t=="string")return s.cssText=t;typeof n=="string"&&(s.cssText=n=void 0),n||(n={}),t||(t={});let r,l;for(l in n)t[l]??s.removeProperty(l),delete n[l];for(l in t)r=t[l],r!==n[l]&&(s.setProperty(l,r),n[l]=r);return n}function Xt(e,t={},n,s){const r={};return s||V(()=>r.children=ue(e,t.children,r.children)),V(()=>typeof t.ref=="function"&&Wt(t.ref,e)),V(()=>zt(e,t,n,!0,r,!0)),r}function Wt(e,t,n){return P(()=>e(t,n))}function Yt(e,t,n,s){if(n!==void 0&&!s&&(s=[]),typeof t!="function")return ue(e,t,s,n);V(r=>ue(e,t(),r,n),s)}function zt(e,t,n,s,r={},l=!1){t||(t={});for(const i in r)if(!(i in t)){if(i==="children")continue;r[i]=Ke(e,i,null,r[i],n,l,t)}for(const i in t){if(i==="children")continue;const o=t[i];r[i]=Ke(e,i,o,r[i],n,l,t)}}function Qt(e){let t,n;return!B()||!(t=d.registry.get(n=en()))?e():(d.completed&&d.completed.add(t),d.registry.delete(n),t)}function B(e){return!!d.context&&!d.done&&(!e||e.isConnected)}function Jt(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function He(e,t,n){const s=t.trim().split(/\s+/);for(let r=0,l=s.length;r<l;r++)e.classList.toggle(s[r],n)}function Ke(e,t,n,s,r,l,i){let o,a,f,u,c;if(t==="style")return qt(e,n,s);if(t==="classList")return Kt(e,n,s);if(n===s)return s;if(t==="ref")l||n(e);else if(t.slice(0,3)==="on:"){const h=t.slice(3);s&&e.removeEventListener(h,s,typeof s!="function"&&s),n&&e.addEventListener(h,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const h=t.slice(10);s&&e.removeEventListener(h,s,!0),n&&e.addEventListener(h,n,!0)}else if(t.slice(0,2)==="on"){const h=t.slice(2).toLowerCase(),g=Lt.has(h);if(!g&&s){const R=Array.isArray(s)?s[0]:s;e.removeEventListener(h,R)}(g||n)&&(Ht(e,h,n,g),g&&Vt([h]))}else if(t.slice(0,5)==="attr:")$e(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")Ut(e,t.slice(5),n);else if((c=t.slice(0,5)==="prop:")||(f=kt.has(t))||!r&&((u=$t(t,e.tagName))||(a=Nt.has(t)))||(o=e.nodeName.includes("-")||"is"in i)){if(c)t=t.slice(5),a=!0;else if(B(e))return n;t==="class"||t==="className"?Gt(e,n):o&&!a&&!f?e[Jt(t)]=n:e[u||t]=n}else{const h=r&&t.indexOf(":")>-1&&_t[t.split(":")[0]];h?Bt(e,h,t,n):$e(e,Mt[t]||t,n)}return n}function Zt(e){if(d.registry&&d.events&&d.events.find(([a,f])=>f===e))return;let t=e.target;const n=`$$${e.type}`,s=e.target,r=e.currentTarget,l=a=>Object.defineProperty(e,"target",{configurable:!0,value:a}),i=()=>{const a=t[n];if(a&&!t.disabled){const f=t[`${n}Data`];if(f!==void 0?a.call(t,f,e):a.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&l(t.host),!0},o=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),d.registry&&!d.done&&(d.done=_$HY.done=!0),e.composedPath){const a=e.composedPath();l(a[0]);for(let f=0;f<a.length-2&&(t=a[f],!!i());f++){if(t._$host){t=t._$host,o();break}if(t.parentNode===r)break}}else o();l(s)}function ue(e,t,n,s,r){const l=B(e);if(l){!n&&(n=[...e.childNodes]);let a=[];for(let f=0;f<n.length;f++){const u=n[f];u.nodeType===8&&u.data.slice(0,2)==="!$"?u.remove():a.push(u)}n=a}for(;typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,o=s!==void 0;if(e=o&&n[0]&&n[0].parentNode||e,i==="string"||i==="number"){if(l||i==="number"&&(t=t.toString(),t===n))return n;if(o){let a=n[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),n=G(e,n,s,a)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||i==="boolean"){if(l)return n;n=G(e,n,s)}else{if(i==="function")return V(()=>{let a=t();for(;typeof a=="function";)a=a();n=ue(e,a,n,s)}),()=>n;if(Array.isArray(t)){const a=[],f=n&&Array.isArray(n);if(Le(a,t,n,r))return V(()=>n=ue(e,a,n,s,!0)),()=>n;if(l){if(!a.length)return n;if(s===void 0)return n=[...e.childNodes];let u=a[0];if(u.parentNode!==e)return n;const c=[u];for(;(u=u.nextSibling)!==s;)c.push(u);return n=c}if(a.length===0){if(n=G(e,n,s),o)return n}else f?n.length===0?qe(e,a,s):Ft(e,n,a):(n&&G(e),qe(e,a));n=a}else if(t.nodeType){if(l&&t.parentNode)return n=o?[t]:t;if(Array.isArray(n)){if(o)return n=G(e,n,s,t);G(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Le(e,t,n,s){let r=!1;for(let l=0,i=t.length;l<i;l++){let o=t[l],a=n&&n[e.length],f;if(!(o==null||o===!0||o===!1))if((f=typeof o)=="object"&&o.nodeType)e.push(o);else if(Array.isArray(o))r=Le(e,o,a)||r;else if(f==="function")if(s){for(;typeof o=="function";)o=o();r=Le(e,Array.isArray(o)?o:[o],Array.isArray(a)?a:[a])||r}else e.push(o),r=!0;else{const u=String(o);a&&a.nodeType===3&&a.data===u?e.push(a):e.push(document.createTextNode(u))}}return r}function qe(e,t,n=null){for(let s=0,r=t.length;s<r;s++)e.insertBefore(t[s],n)}function G(e,t,n,s){if(n===void 0)return e.textContent="";const r=s||document.createTextNode("");if(t.length){let l=!1;for(let i=t.length-1;i>=0;i--){const o=t[i];if(r!==o){const a=o.parentNode===e;!l&&!i?a?e.replaceChild(r,o):e.insertBefore(r,n):a&&o.remove()}else l=!0}}else e.insertBefore(r,n);return[r]}function en(){return d.getNextContextId()}var tn="http://www.w3.org/2000/svg";function nn(e,t=!1,n=void 0){return t?document.createElementNS(tn,e):document.createElement(e,{is:n})}function sn(e,t){const n=x(e);return x(()=>{const s=n();switch(typeof s){case"function":return P(()=>s(t));case"string":const r=jt.has(s),l=d.context?Qt():nn(s,r,P(()=>t.is));return Xt(l,t,r),l}})}function An(e){const[,t]=Dt(e,["component"]);return sn(()=>e.component,t)}var ut=tt(void 0),ft=tt(void 0),Tn=()=>{const e=bt(ft);if(!e)throw new Error("useDevtoolsOnClose must be used within a TanStackRouterDevtools component");return e},H,K,q,X,W,fe,de,he,Y,_,z,ge,Xe,on=(Xe=class{constructor(e){p(this,H);p(this,K);p(this,q);p(this,X);p(this,W);p(this,fe);p(this,de);p(this,he);p(this,Y);p(this,_,!1);p(this,z);p(this,ge);m(this,H,D(e.router)),m(this,K,D(e.routerState)),m(this,q,e.position??"bottom-left"),m(this,X,e.initialIsOpen??!1),m(this,W,e.shadowDOMTarget),m(this,fe,e.panelProps),m(this,de,e.closeButtonProps),m(this,he,e.toggleButtonProps),m(this,Y,e.containerElement)}mount(e){if(y(this,_))throw new Error("Devtools is already mounted");const t=ct(()=>{const[n]=y(this,H),[s]=y(this,K),r=y(this,q),l=y(this,X),i=y(this,W),o=y(this,fe),a=y(this,de),f=y(this,he),u=y(this,Y);let c;return y(this,z)?c=y(this,z):(c=lt(()=>Ye(()=>import("./FloatingTanStackRouterDevtools-Dz-7tBRe-2GNCjpSI.js"),__vite__mapDeps([0,1,2,3]))),m(this,z,c)),ae(ut.Provider,{value:i,get children(){return ae(c,{position:r,initialIsOpen:l,router:n,routerState:s,shadowDOMTarget:i,panelProps:o,closeButtonProps:a,toggleButtonProps:f,containerElement:u})}})},e);m(this,_,!0),m(this,ge,t)}unmount(){var e;if(!y(this,_))throw new Error("Devtools is not mounted");(e=y(this,ge))==null||e.call(this),m(this,_,!1)}setRouter(e){y(this,H)[1](e)}setRouterState(e){y(this,K)[1](e)}setOptions(e){e.position!==void 0&&m(this,q,e.position),e.initialIsOpen!==void 0&&m(this,X,e.initialIsOpen),e.shadowDOMTarget!==void 0&&m(this,W,e.shadowDOMTarget),e.containerElement!==void 0&&m(this,Y,e.containerElement)}},H=new WeakMap,K=new WeakMap,q=new WeakMap,X=new WeakMap,W=new WeakMap,fe=new WeakMap,de=new WeakMap,he=new WeakMap,Y=new WeakMap,_=new WeakMap,z=new WeakMap,ge=new WeakMap,Xe),Q,J,Z,ee,te,F,ye,me,ne,We,rn=(We=class{constructor(e){p(this,Q);p(this,J);p(this,Z);p(this,ee);p(this,te);p(this,F,!1);p(this,ye);p(this,me);p(this,ne);const{router:t,routerState:n,shadowDOMTarget:s,setIsOpen:r,style:l,className:i}=e;m(this,Q,D(t)),m(this,J,D(n)),m(this,Z,D(l)),m(this,ee,D(i)),m(this,te,s),m(this,ye,r)}mount(e){if(y(this,F))throw new Error("Devtools is already mounted");const t=ct(()=>{const[n]=y(this,Q),[s]=y(this,J),[r]=y(this,Z),[l]=y(this,ee),i=y(this,te),o=y(this,ye);let a;return y(this,ne)?a=y(this,ne):(a=lt(()=>Ye(()=>import("./BaseTanStackRouterDevtoolsPanel-qCkSGZav-y4VZHKeL.js"),__vite__mapDeps([1,2,3]))),m(this,ne,a)),ae(ut.Provider,{value:i,get children(){return ae(ft.Provider,{value:{onCloseClick:()=>{}},get children(){return ae(a,{router:n,routerState:s,shadowDOMTarget:i,setIsOpen:o,style:r,className:l})}})}})},e);m(this,F,!0),m(this,me,t)}unmount(){var e;if(!y(this,F))throw new Error("Devtools is not mounted");(e=y(this,me))==null||e.call(this),m(this,F,!1)}setRouter(e){y(this,Q)[1](e)}setRouterState(e){y(this,J)[1](e)}setStyle(e){y(this,Z)[1](e)}setClassName(e){y(this,ee)[1](e)}setOptions(e){e.shadowDOMTarget!==void 0&&m(this,te,e.shadowDOMTarget),e.router!==void 0&&this.setRouter(e.router),e.routerState!==void 0&&this.setRouterState(e.routerState),e.style!==void 0&&this.setStyle(e.style),e.className!==void 0&&this.setClassName(e.className)}},Q=new WeakMap,J=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,F=new WeakMap,ye=new WeakMap,me=new WeakMap,ne=new WeakMap,We);function ln(e){const{initialIsOpen:t,panelProps:n,closeButtonProps:s,toggleButtonProps:r,position:l,containerElement:i,shadowDOMTarget:o,router:a}=e,f=ze(),u=a??f,c=Qe({router:u}),h=C.useRef(null),[g]=C.useState(()=>new on({initialIsOpen:t,panelProps:n,closeButtonProps:s,toggleButtonProps:r,position:l,containerElement:i,shadowDOMTarget:o,router:u,routerState:c}));return C.useEffect(()=>{g.setRouter(u)},[g,u]),C.useEffect(()=>{g.setRouterState(c)},[g,c]),C.useEffect(()=>{g.setOptions({initialIsOpen:t,panelProps:n,closeButtonProps:s,toggleButtonProps:r,position:l,containerElement:i,shadowDOMTarget:o})},[g,t,n,s,r,l,i,o]),C.useEffect(()=>(h.current&&g.mount(h.current),()=>{g.unmount()}),[g]),le.jsx(C.Fragment,{children:le.jsx("div",{ref:h})})}var an=e=>{const{router:t,...n}=e,s=ze(),r=t??s,l=Qe({router:r}),i=C.useRef(null),[o]=C.useState(()=>new rn({...n,router:r,routerState:l}));return C.useEffect(()=>{o.setRouter(r)},[o,r]),C.useEffect(()=>{o.setRouterState(l)},[o,l]),C.useEffect(()=>{o.setOptions({className:e.className,style:e.style,shadowDOMTarget:e.shadowDOMTarget})},[o,e.className,e.style,e.shadowDOMTarget]),C.useEffect(()=>(i.current&&o.mount(i.current),()=>{o.unmount()}),[o]),le.jsx(le.Fragment,{children:le.jsx("div",{ref:i})})},cn=function(){return null},un=ln,fn=function(){return null},dn=an;const Cn=Object.freeze(Object.defineProperty({__proto__:null,TanStackRouterDevtools:cn,TanStackRouterDevtoolsInProd:un,TanStackRouterDevtoolsPanel:fn,TanStackRouterDevtoolsPanelInProd:dn},Symbol.toStringTag,{value:"Module"}));export{ft as D,bn as F,En as M,xn as S,yn as a,x as b,D as c,ae as d,V as e,Gt as f,An as g,pn as h,Yt as i,$e as j,Ht as k,On as l,vn as m,bt as n,Sn as o,vt as p,P as q,ut as r,Xt as s,Pn as t,Tn as u,Vt as v,Cn as w};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FloatingTanStackRouterDevtools-Dz-7tBRe-CN2bOoWg.js","assets/BaseTanStackRouterDevtoolsPanel-qCkSGZav-DszsBmbQ.js","assets/index-DYmxKiJq.js","assets/index-XhuBRVOD.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Fe=e=>{throw TypeError(e)};var Ve=(e,t,n)=>t.has(e)||Fe("Cannot "+n);var y=(e,t,n)=>(Ve(e,t,"read from private field"),n?n.call(e):t.get(e)),p=(e,t,n)=>t.has(e)?Fe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),m=(e,t,n,s)=>(Ve(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n);import{a4 as Ye,a5 as ze,a as Qe,r as C,j as le}from"./index-DYmxKiJq.js";var d={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Be(this.context.count)},getNextContextId(){return Be(this.context.count++)}};function Be(e){const t=String(e),n=t.length-1;return d.context.id+(n?String.fromCharCode(96+n):"")+t}function ie(e){d.context=e}var dt=(e,t)=>e===t,be=Symbol("solid-proxy"),Je=typeof Proxy=="function",ht=Symbol("solid-track"),Se={equals:dt},Ze=rt,L=1,xe=2,et={owned:null,cleanups:null,context:null,owner:null},Re={},w=null,Ne=null,gt=null,v=null,E=null,$=null,Pe=0;function ve(e,t){const n=v,s=w,r=e.length===0,l=t===void 0?s:t,i=r?et:{owned:null,cleanups:null,context:l?l.context:null,owner:l},o=r?e:()=>e(()=>P(()=>ce(i)));w=i,v=null;try{return j(o,!0)}finally{v=n,w=s}}function D(e,t){t=t?Object.assign({},Se,t):Se;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},s=r=>(typeof r=="function"&&(r=r(n.value)),ot(n,r));return[st.bind(n),s]}function yt(e,t,n){const s=Ae(e,t,!0,L);se(s)}function V(e,t,n){const s=Ae(e,t,!1,L);se(s)}function yn(e,t,n){Ze=Ot;const s=Ae(e,t,!1,L);(!n||!n.render)&&(s.user=!0),$?$.push(s):se(s)}function x(e,t,n){n=n?Object.assign({},Se,n):Se;const s=Ae(e,t,!0,0);return s.observers=null,s.observerSlots=null,s.comparator=n.equals||void 0,se(s),st.bind(s)}function mt(e){return e&&typeof e=="object"&&"then"in e}function wt(e,t,n){let s,r,l;s=!0,r=e,l={};let i=null,o=Re,a=null,f=!1,u="initialValue"in l,c=typeof s=="function"&&x(s);const h=new Set,[g,R]=(l.storage||D)(l.initialValue),[M,U]=D(void 0),[oe,N]=D(void 0,{equals:!1}),[T,k]=D(u?"ready":"unresolved");d.context&&(a=d.getNextContextId(),l.ssrLoadFrom==="initial"?o=l.initialValue:d.load&&d.has(a)&&(o=d.load(a)));function A(S,b,I,O){return i===S&&(i=null,O!==void 0&&(u=!0),(S===o||b===o)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(O,{value:b})),o=Re,Te(b,I)),b}function Te(S,b){j(()=>{b===void 0&&R(()=>S),k(b!==void 0?"errored":u?"ready":"unresolved"),U(b);for(const I of h.keys())I.decrement();h.clear()},!1)}function Ce(){const S=St,b=g(),I=M();if(I!==void 0&&!i)throw I;return v&&v.user,b}function De(S=!0){if(S!==!1&&f)return;f=!1;const b=c?c():s;if(b==null||b===!1){A(i,P(g));return}let I;const O=o!==Re?o:P(()=>{try{return r(b,{value:g(),refetching:S})}catch(re){I=re}});if(I!==void 0){A(i,void 0,pe(I),b);return}else if(!mt(O))return A(i,O,void 0,b),O;return i=O,"v"in O?(O.s===1?A(i,O.v,void 0,b):A(i,void 0,pe(O.v),b),O):(f=!0,queueMicrotask(()=>f=!1),j(()=>{k(u?"refreshing":"pending"),N()},!1),O.then(re=>A(O,re,void 0,b),re=>A(O,void 0,pe(re),b)))}Object.defineProperties(Ce,{state:{get:()=>T()},error:{get:()=>M()},loading:{get(){const S=T();return S==="pending"||S==="refreshing"}},latest:{get(){if(!u)return Ce();const S=M();if(S&&!i)throw S;return g()}}});let _e=w;return c?yt(()=>(_e=w,De(!1))):De(!1),[Ce,{refetch:S=>pt(_e,()=>De(S)),mutate:R}]}function P(e){if(v===null)return e();const t=v;v=null;try{return e()}finally{v=t}}function vt(e){return w===null||(w.cleanups===null?w.cleanups=[e]:w.cleanups.push(e)),e}function pt(e,t){const n=w,s=v;w=e,v=null;try{return j(t,!0)}catch(r){je(r)}finally{w=n,v=s}}var[mn,wn]=D(!1);function tt(e,t){const n=Symbol("context");return{id:n,Provider:Pt(n),defaultValue:e}}function bt(e){let t;return w&&w.context&&(t=w.context[e.id])!==void 0?t:e.defaultValue}function nt(e){const t=x(e),n=x(()=>Me(t()));return n.toArray=()=>{const s=n();return Array.isArray(s)?s:s!=null?[s]:[]},n}var St;function st(){if(this.sources&&this.state)if(this.state===L)se(this);else{const e=E;E=null,j(()=>Oe(this),!1),E=e}if(v){const e=this.observers?this.observers.length:0;v.sources?(v.sources.push(this),v.sourceSlots.push(e)):(v.sources=[this],v.sourceSlots=[e]),this.observers?(this.observers.push(v),this.observerSlots.push(v.sources.length-1)):(this.observers=[v],this.observerSlots=[v.sources.length-1])}return this.value}function ot(e,t,n){let s=e.value;return(!e.comparator||!e.comparator(s,t))&&(e.value=t,e.observers&&e.observers.length&&j(()=>{for(let r=0;r<e.observers.length;r+=1){const l=e.observers[r],i=Ne&&Ne.running;i&&Ne.disposed.has(l),(i?!l.tState:!l.state)&&(l.pure?E.push(l):$.push(l),l.observers&&it(l)),i||(l.state=L)}if(E.length>1e6)throw E=[],new Error},!1)),t}function se(e){if(!e.fn)return;ce(e);const t=Pe;xt(e,e.value,t)}function xt(e,t,n){let s;const r=w,l=v;v=w=e;try{s=e.fn(t)}catch(i){return e.pure&&(e.state=L,e.owned&&e.owned.forEach(ce),e.owned=null),e.updatedAt=n+1,je(i)}finally{v=l,w=r}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?ot(e,s):e.value=s,e.updatedAt=n)}function Ae(e,t,n,s=L,r){const l={fn:e,state:s,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:w,context:w?w.context:null,pure:n};return w===null||w!==et&&(w.owned?w.owned.push(l):w.owned=[l]),l}function Ee(e){if(e.state===0)return;if(e.state===xe)return Oe(e);if(e.suspense&&P(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Pe);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===L)se(e);else if(e.state===xe){const s=E;E=null,j(()=>Oe(e,t[0]),!1),E=s}}function j(e,t){if(E)return e();let n=!1;t||(E=[]),$?n=!0:$=[],Pe++;try{const s=e();return Et(n),s}catch(s){n||($=null),E=null,je(s)}}function Et(e){if(E&&(rt(E),E=null),e)return;const t=$;$=null,t.length&&j(()=>Ze(t),!1)}function rt(e){for(let t=0;t<e.length;t++)Ee(e[t])}function Ot(e){let t,n=0;for(t=0;t<e.length;t++){const s=e[t];s.user?e[n++]=s:Ee(s)}if(d.context){if(d.count){d.effects||(d.effects=[]),d.effects.push(...e.slice(0,n));return}ie()}for(d.effects&&(d.done||!d.count)&&(e=[...d.effects,...e],n+=d.effects.length,delete d.effects),t=0;t<n;t++)Ee(e[t])}function Oe(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const s=e.sources[n];if(s.sources){const r=s.state;r===L?s!==t&&(!s.updatedAt||s.updatedAt<Pe)&&Ee(s):r===xe&&Oe(s,t)}}}function it(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=xe,n.pure?E.push(n):$.push(n),n.observers&&it(n))}}function ce(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),s=e.sourceSlots.pop(),r=n.observers;if(r&&r.length){const l=r.pop(),i=n.observerSlots.pop();s<r.length&&(l.sourceSlots[i]=s,r[s]=l,n.observerSlots[s]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)ce(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)ce(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function pe(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function je(e,t=w){throw pe(e)}function Me(e){if(typeof e=="function"&&!e.length)return Me(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const s=Me(e[n]);Array.isArray(s)?t.push.apply(t,s):t.push(s)}return t}return e}function Pt(e,t){return function(s){let r;return V(()=>r=P(()=>(w.context={...w.context,[e]:s.value},nt(()=>s.children))),void 0),r}}var At=Symbol("fallback");function Ue(e){for(let t=0;t<e.length;t++)e[t]()}function Tt(e,t,n={}){let s=[],r=[],l=[],i=0,o=t.length>1?[]:null;return vt(()=>Ue(l)),()=>{let a=e()||[],f=a.length,u,c;return a[ht],P(()=>{let g,R,M,U,oe,N,T,k,A;if(f===0)i!==0&&(Ue(l),l=[],s=[],r=[],i=0,o&&(o=[])),n.fallback&&(s=[At],r[0]=ve(Te=>(l[0]=Te,n.fallback())),i=1);else if(i===0){for(r=new Array(f),c=0;c<f;c++)s[c]=a[c],r[c]=ve(h);i=f}else{for(M=new Array(f),U=new Array(f),o&&(oe=new Array(f)),N=0,T=Math.min(i,f);N<T&&s[N]===a[N];N++);for(T=i-1,k=f-1;T>=N&&k>=N&&s[T]===a[k];T--,k--)M[k]=r[T],U[k]=l[T],o&&(oe[k]=o[T]);for(g=new Map,R=new Array(k+1),c=k;c>=N;c--)A=a[c],u=g.get(A),R[c]=u===void 0?-1:u,g.set(A,c);for(u=N;u<=T;u++)A=s[u],c=g.get(A),c!==void 0&&c!==-1?(M[c]=r[u],U[c]=l[u],o&&(oe[c]=o[u]),c=R[c],g.set(A,c)):l[u]();for(c=N;c<f;c++)c in M?(r[c]=M[c],l[c]=U[c],o&&(o[c]=oe[c],o[c](c))):r[c]=ve(h);r=r.slice(0,i=f),s=a.slice(0)}return r});function h(g){if(l[c]=g,o){const[R,M]=D(c);return o[c]=M,t(a[c],R)}return t(a[c])}}}function ae(e,t){return P(()=>e(t||{}))}function we(){return!0}var Ie={get(e,t,n){return t===be?n:e.get(t)},has(e,t){return t===be?!0:e.has(t)},set:we,deleteProperty:we,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:we,deleteProperty:we}},ownKeys(e){return e.keys()}};function ke(e){return(e=typeof e=="function"?e():e)?e:{}}function Ct(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function vn(...e){let t=!1;for(let i=0;i<e.length;i++){const o=e[i];t=t||!!o&&be in o,e[i]=typeof o=="function"?(t=!0,x(o)):o}if(Je&&t)return new Proxy({get(i){for(let o=e.length-1;o>=0;o--){const a=ke(e[o])[i];if(a!==void 0)return a}},has(i){for(let o=e.length-1;o>=0;o--)if(i in ke(e[o]))return!0;return!1},keys(){const i=[];for(let o=0;o<e.length;o++)i.push(...Object.keys(ke(e[o])));return[...new Set(i)]}},Ie);const n={},s=Object.create(null);for(let i=e.length-1;i>=0;i--){const o=e[i];if(!o)continue;const a=Object.getOwnPropertyNames(o);for(let f=a.length-1;f>=0;f--){const u=a[f];if(u==="__proto__"||u==="constructor")continue;const c=Object.getOwnPropertyDescriptor(o,u);if(!s[u])s[u]=c.get?{enumerable:!0,configurable:!0,get:Ct.bind(n[u]=[c.get.bind(o)])}:c.value!==void 0?c:void 0;else{const h=n[u];h&&(c.get?h.push(c.get.bind(o)):c.value!==void 0&&h.push(()=>c.value))}}}const r={},l=Object.keys(s);for(let i=l.length-1;i>=0;i--){const o=l[i],a=s[o];a&&a.get?Object.defineProperty(r,o,a):r[o]=a?a.value:void 0}return r}function Dt(e,...t){const n=t.length;if(Je&&be in e){const r=n>1?t.flat():t[0],l=t.map(i=>new Proxy({get(o){return i.includes(o)?e[o]:void 0},has(o){return i.includes(o)&&o in e},keys(){return i.filter(o=>o in e)}},Ie));return l.push(new Proxy({get(i){return r.includes(i)?void 0:e[i]},has(i){return r.includes(i)?!1:i in e},keys(){return Object.keys(e).filter(i=>!r.includes(i))}},Ie)),l}const s=[];for(let r=0;r<=n;r++)s[r]={};for(const r of Object.getOwnPropertyNames(e)){let l=n;for(let o=0;o<t.length;o++)if(t[o].includes(r)){l=o;break}const i=Object.getOwnPropertyDescriptor(e,r);!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable?s[l][r]=i.value:Object.defineProperty(s[l],r,i)}return s}function lt(e){let t,n;const s=r=>{const l=d.context;if(l){const[o,a]=D();d.count||(d.count=0),d.count++,(n||(n=e())).then(f=>{!d.done&&ie(l),d.count--,a(()=>f.default),ie()}),t=o}else if(!t){const[o]=wt(()=>(n||(n=e())).then(a=>a.default));t=o}let i;return x(()=>(i=t())?P(()=>{if(!l||d.done)return i(r);const o=d.context;ie(l);const a=i(r);return ie(o),a}):"")};return s.preload=()=>n||((n=e()).then(r=>t=()=>r.default),n),s}var Rt=0;function pn(){return d.context?d.getNextContextId():`cl-${Rt++}`}var at=e=>`Stale read from <${e}>.`;function bn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return x(Tt(()=>e.each,e.children,t||void 0))}function Sn(e){const t=e.keyed,n=x(()=>e.when,void 0,void 0),s=t?n:x(n,void 0,{equals:(r,l)=>!r==!l});return x(()=>{const r=s();if(r){const l=e.children;return typeof l=="function"&&l.length>0?P(()=>l(t?r:()=>{if(!P(s))throw at("Show");return n()})):l}return e.fallback},void 0,void 0)}function xn(e){const t=nt(()=>e.children),n=x(()=>{const s=t(),r=Array.isArray(s)?s:[s];let l=()=>{};for(let i=0;i<r.length;i++){const o=i,a=r[i],f=l,u=x(()=>f()?void 0:a.when,void 0,void 0),c=a.keyed?u:x(u,void 0,{equals:(h,g)=>!h==!g});l=()=>f()||(c()?[o,u,a]:void 0)}return l});return x(()=>{const s=n()();if(!s)return e.fallback;const[r,l,i]=s,o=i.children;return typeof o=="function"&&o.length>0?P(()=>o(i.keyed?l():()=>{var a;if(((a=P(n)())==null?void 0:a[0])!==r)throw at("Match");return l()})):o},void 0,void 0)}function En(e){return e}var Nt=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable","allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"]),kt=new Set(["innerHTML","textContent","innerText","children"]),Mt=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),It=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function $t(e,t){const n=It[e];return typeof n=="object"?n[t]?n.$:void 0:n}var Lt=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),jt=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),_t={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},On=e=>x(()=>e());function Ft(e,t,n){let s=n.length,r=t.length,l=s,i=0,o=0,a=t[r-1].nextSibling,f=null;for(;i<r||o<l;){if(t[i]===n[o]){i++,o++;continue}for(;t[r-1]===n[l-1];)r--,l--;if(r===i){const u=l<s?o?n[o-1].nextSibling:n[l-o]:a;for(;o<l;)e.insertBefore(n[o++],u)}else if(l===o)for(;i<r;)(!f||!f.has(t[i]))&&t[i].remove(),i++;else if(t[i]===n[l-1]&&n[o]===t[r-1]){const u=t[--r].nextSibling;e.insertBefore(n[o++],t[i++].nextSibling),e.insertBefore(n[--l],u),t[r]=n[l]}else{if(!f){f=new Map;let c=o;for(;c<l;)f.set(n[c],c++)}const u=f.get(t[i]);if(u!=null)if(o<u&&u<l){let c=i,h=1,g;for(;++c<r&&c<l&&!((g=f.get(t[c]))==null||g!==u+h);)h++;if(h>u-o){const R=t[i];for(;o<u;)e.insertBefore(n[o++],R)}else e.replaceChild(n[o++],t[i++])}else i++;else t[i++].remove()}}}var Ge="_$DX_DELEGATE";function ct(e,t,n,s={}){let r;return ve(l=>{r=l,t===document?e():Yt(t,e(),t.firstChild?null:void 0,n)},s.owner),()=>{r(),t.textContent=""}}function Pn(e,t,n,s){let r;const l=()=>{const o=document.createElement("template");return o.innerHTML=e,o.content.firstChild},i=()=>(r||(r=l())).cloneNode(!0);return i.cloneNode=i,i}function Vt(e,t=window.document){const n=t[Ge]||(t[Ge]=new Set);for(let s=0,r=e.length;s<r;s++){const l=e[s];n.has(l)||(n.add(l),t.addEventListener(l,Zt))}}function $e(e,t,n){B(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Bt(e,t,n,s){B(e)||(s==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,s))}function Ut(e,t,n){B(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function Gt(e,t){B(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Ht(e,t,n,s){if(s)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=l=>r.call(e,n[1],l))}else e.addEventListener(t,n,typeof n!="function"&&n)}function Kt(e,t,n={}){const s=Object.keys(t||{}),r=Object.keys(n);let l,i;for(l=0,i=r.length;l<i;l++){const o=r[l];!o||o==="undefined"||t[o]||(He(e,o,!1),delete n[o])}for(l=0,i=s.length;l<i;l++){const o=s[l],a=!!t[o];!o||o==="undefined"||n[o]===a||!a||(He(e,o,!0),n[o]=a)}return n}function qt(e,t,n){if(!t)return n?$e(e,"style"):t;const s=e.style;if(typeof t=="string")return s.cssText=t;typeof n=="string"&&(s.cssText=n=void 0),n||(n={}),t||(t={});let r,l;for(l in n)t[l]??s.removeProperty(l),delete n[l];for(l in t)r=t[l],r!==n[l]&&(s.setProperty(l,r),n[l]=r);return n}function Xt(e,t={},n,s){const r={};return s||V(()=>r.children=ue(e,t.children,r.children)),V(()=>typeof t.ref=="function"&&Wt(t.ref,e)),V(()=>zt(e,t,n,!0,r,!0)),r}function Wt(e,t,n){return P(()=>e(t,n))}function Yt(e,t,n,s){if(n!==void 0&&!s&&(s=[]),typeof t!="function")return ue(e,t,s,n);V(r=>ue(e,t(),r,n),s)}function zt(e,t,n,s,r={},l=!1){t||(t={});for(const i in r)if(!(i in t)){if(i==="children")continue;r[i]=Ke(e,i,null,r[i],n,l,t)}for(const i in t){if(i==="children")continue;const o=t[i];r[i]=Ke(e,i,o,r[i],n,l,t)}}function Qt(e){let t,n;return!B()||!(t=d.registry.get(n=en()))?e():(d.completed&&d.completed.add(t),d.registry.delete(n),t)}function B(e){return!!d.context&&!d.done&&(!e||e.isConnected)}function Jt(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function He(e,t,n){const s=t.trim().split(/\s+/);for(let r=0,l=s.length;r<l;r++)e.classList.toggle(s[r],n)}function Ke(e,t,n,s,r,l,i){let o,a,f,u,c;if(t==="style")return qt(e,n,s);if(t==="classList")return Kt(e,n,s);if(n===s)return s;if(t==="ref")l||n(e);else if(t.slice(0,3)==="on:"){const h=t.slice(3);s&&e.removeEventListener(h,s,typeof s!="function"&&s),n&&e.addEventListener(h,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const h=t.slice(10);s&&e.removeEventListener(h,s,!0),n&&e.addEventListener(h,n,!0)}else if(t.slice(0,2)==="on"){const h=t.slice(2).toLowerCase(),g=Lt.has(h);if(!g&&s){const R=Array.isArray(s)?s[0]:s;e.removeEventListener(h,R)}(g||n)&&(Ht(e,h,n,g),g&&Vt([h]))}else if(t.slice(0,5)==="attr:")$e(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")Ut(e,t.slice(5),n);else if((c=t.slice(0,5)==="prop:")||(f=kt.has(t))||!r&&((u=$t(t,e.tagName))||(a=Nt.has(t)))||(o=e.nodeName.includes("-")||"is"in i)){if(c)t=t.slice(5),a=!0;else if(B(e))return n;t==="class"||t==="className"?Gt(e,n):o&&!a&&!f?e[Jt(t)]=n:e[u||t]=n}else{const h=r&&t.indexOf(":")>-1&&_t[t.split(":")[0]];h?Bt(e,h,t,n):$e(e,Mt[t]||t,n)}return n}function Zt(e){if(d.registry&&d.events&&d.events.find(([a,f])=>f===e))return;let t=e.target;const n=`$$${e.type}`,s=e.target,r=e.currentTarget,l=a=>Object.defineProperty(e,"target",{configurable:!0,value:a}),i=()=>{const a=t[n];if(a&&!t.disabled){const f=t[`${n}Data`];if(f!==void 0?a.call(t,f,e):a.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&l(t.host),!0},o=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),d.registry&&!d.done&&(d.done=_$HY.done=!0),e.composedPath){const a=e.composedPath();l(a[0]);for(let f=0;f<a.length-2&&(t=a[f],!!i());f++){if(t._$host){t=t._$host,o();break}if(t.parentNode===r)break}}else o();l(s)}function ue(e,t,n,s,r){const l=B(e);if(l){!n&&(n=[...e.childNodes]);let a=[];for(let f=0;f<n.length;f++){const u=n[f];u.nodeType===8&&u.data.slice(0,2)==="!$"?u.remove():a.push(u)}n=a}for(;typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,o=s!==void 0;if(e=o&&n[0]&&n[0].parentNode||e,i==="string"||i==="number"){if(l||i==="number"&&(t=t.toString(),t===n))return n;if(o){let a=n[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),n=G(e,n,s,a)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||i==="boolean"){if(l)return n;n=G(e,n,s)}else{if(i==="function")return V(()=>{let a=t();for(;typeof a=="function";)a=a();n=ue(e,a,n,s)}),()=>n;if(Array.isArray(t)){const a=[],f=n&&Array.isArray(n);if(Le(a,t,n,r))return V(()=>n=ue(e,a,n,s,!0)),()=>n;if(l){if(!a.length)return n;if(s===void 0)return n=[...e.childNodes];let u=a[0];if(u.parentNode!==e)return n;const c=[u];for(;(u=u.nextSibling)!==s;)c.push(u);return n=c}if(a.length===0){if(n=G(e,n,s),o)return n}else f?n.length===0?qe(e,a,s):Ft(e,n,a):(n&&G(e),qe(e,a));n=a}else if(t.nodeType){if(l&&t.parentNode)return n=o?[t]:t;if(Array.isArray(n)){if(o)return n=G(e,n,s,t);G(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Le(e,t,n,s){let r=!1;for(let l=0,i=t.length;l<i;l++){let o=t[l],a=n&&n[e.length],f;if(!(o==null||o===!0||o===!1))if((f=typeof o)=="object"&&o.nodeType)e.push(o);else if(Array.isArray(o))r=Le(e,o,a)||r;else if(f==="function")if(s){for(;typeof o=="function";)o=o();r=Le(e,Array.isArray(o)?o:[o],Array.isArray(a)?a:[a])||r}else e.push(o),r=!0;else{const u=String(o);a&&a.nodeType===3&&a.data===u?e.push(a):e.push(document.createTextNode(u))}}return r}function qe(e,t,n=null){for(let s=0,r=t.length;s<r;s++)e.insertBefore(t[s],n)}function G(e,t,n,s){if(n===void 0)return e.textContent="";const r=s||document.createTextNode("");if(t.length){let l=!1;for(let i=t.length-1;i>=0;i--){const o=t[i];if(r!==o){const a=o.parentNode===e;!l&&!i?a?e.replaceChild(r,o):e.insertBefore(r,n):a&&o.remove()}else l=!0}}else e.insertBefore(r,n);return[r]}function en(){return d.getNextContextId()}var tn="http://www.w3.org/2000/svg";function nn(e,t=!1,n=void 0){return t?document.createElementNS(tn,e):document.createElement(e,{is:n})}function sn(e,t){const n=x(e);return x(()=>{const s=n();switch(typeof s){case"function":return P(()=>s(t));case"string":const r=jt.has(s),l=d.context?Qt():nn(s,r,P(()=>t.is));return Xt(l,t,r),l}})}function An(e){const[,t]=Dt(e,["component"]);return sn(()=>e.component,t)}var ut=tt(void 0),ft=tt(void 0),Tn=()=>{const e=bt(ft);if(!e)throw new Error("useDevtoolsOnClose must be used within a TanStackRouterDevtools component");return e},H,K,q,X,W,fe,de,he,Y,_,z,ge,Xe,on=(Xe=class{constructor(e){p(this,H);p(this,K);p(this,q);p(this,X);p(this,W);p(this,fe);p(this,de);p(this,he);p(this,Y);p(this,_,!1);p(this,z);p(this,ge);m(this,H,D(e.router)),m(this,K,D(e.routerState)),m(this,q,e.position??"bottom-left"),m(this,X,e.initialIsOpen??!1),m(this,W,e.shadowDOMTarget),m(this,fe,e.panelProps),m(this,de,e.closeButtonProps),m(this,he,e.toggleButtonProps),m(this,Y,e.containerElement)}mount(e){if(y(this,_))throw new Error("Devtools is already mounted");const t=ct(()=>{const[n]=y(this,H),[s]=y(this,K),r=y(this,q),l=y(this,X),i=y(this,W),o=y(this,fe),a=y(this,de),f=y(this,he),u=y(this,Y);let c;return y(this,z)?c=y(this,z):(c=lt(()=>Ye(()=>import("./FloatingTanStackRouterDevtools-Dz-7tBRe-CN2bOoWg.js"),__vite__mapDeps([0,1,2,3]))),m(this,z,c)),ae(ut.Provider,{value:i,get children(){return ae(c,{position:r,initialIsOpen:l,router:n,routerState:s,shadowDOMTarget:i,panelProps:o,closeButtonProps:a,toggleButtonProps:f,containerElement:u})}})},e);m(this,_,!0),m(this,ge,t)}unmount(){var e;if(!y(this,_))throw new Error("Devtools is not mounted");(e=y(this,ge))==null||e.call(this),m(this,_,!1)}setRouter(e){y(this,H)[1](e)}setRouterState(e){y(this,K)[1](e)}setOptions(e){e.position!==void 0&&m(this,q,e.position),e.initialIsOpen!==void 0&&m(this,X,e.initialIsOpen),e.shadowDOMTarget!==void 0&&m(this,W,e.shadowDOMTarget),e.containerElement!==void 0&&m(this,Y,e.containerElement)}},H=new WeakMap,K=new WeakMap,q=new WeakMap,X=new WeakMap,W=new WeakMap,fe=new WeakMap,de=new WeakMap,he=new WeakMap,Y=new WeakMap,_=new WeakMap,z=new WeakMap,ge=new WeakMap,Xe),Q,J,Z,ee,te,F,ye,me,ne,We,rn=(We=class{constructor(e){p(this,Q);p(this,J);p(this,Z);p(this,ee);p(this,te);p(this,F,!1);p(this,ye);p(this,me);p(this,ne);const{router:t,routerState:n,shadowDOMTarget:s,setIsOpen:r,style:l,className:i}=e;m(this,Q,D(t)),m(this,J,D(n)),m(this,Z,D(l)),m(this,ee,D(i)),m(this,te,s),m(this,ye,r)}mount(e){if(y(this,F))throw new Error("Devtools is already mounted");const t=ct(()=>{const[n]=y(this,Q),[s]=y(this,J),[r]=y(this,Z),[l]=y(this,ee),i=y(this,te),o=y(this,ye);let a;return y(this,ne)?a=y(this,ne):(a=lt(()=>Ye(()=>import("./BaseTanStackRouterDevtoolsPanel-qCkSGZav-DszsBmbQ.js"),__vite__mapDeps([1,2,3]))),m(this,ne,a)),ae(ut.Provider,{value:i,get children(){return ae(ft.Provider,{value:{onCloseClick:()=>{}},get children(){return ae(a,{router:n,routerState:s,shadowDOMTarget:i,setIsOpen:o,style:r,className:l})}})}})},e);m(this,F,!0),m(this,me,t)}unmount(){var e;if(!y(this,F))throw new Error("Devtools is not mounted");(e=y(this,me))==null||e.call(this),m(this,F,!1)}setRouter(e){y(this,Q)[1](e)}setRouterState(e){y(this,J)[1](e)}setStyle(e){y(this,Z)[1](e)}setClassName(e){y(this,ee)[1](e)}setOptions(e){e.shadowDOMTarget!==void 0&&m(this,te,e.shadowDOMTarget),e.router!==void 0&&this.setRouter(e.router),e.routerState!==void 0&&this.setRouterState(e.routerState),e.style!==void 0&&this.setStyle(e.style),e.className!==void 0&&this.setClassName(e.className)}},Q=new WeakMap,J=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,F=new WeakMap,ye=new WeakMap,me=new WeakMap,ne=new WeakMap,We);function ln(e){const{initialIsOpen:t,panelProps:n,closeButtonProps:s,toggleButtonProps:r,position:l,containerElement:i,shadowDOMTarget:o,router:a}=e,f=ze(),u=a??f,c=Qe({router:u}),h=C.useRef(null),[g]=C.useState(()=>new on({initialIsOpen:t,panelProps:n,closeButtonProps:s,toggleButtonProps:r,position:l,containerElement:i,shadowDOMTarget:o,router:u,routerState:c}));return C.useEffect(()=>{g.setRouter(u)},[g,u]),C.useEffect(()=>{g.setRouterState(c)},[g,c]),C.useEffect(()=>{g.setOptions({initialIsOpen:t,panelProps:n,closeButtonProps:s,toggleButtonProps:r,position:l,containerElement:i,shadowDOMTarget:o})},[g,t,n,s,r,l,i,o]),C.useEffect(()=>(h.current&&g.mount(h.current),()=>{g.unmount()}),[g]),le.jsx(C.Fragment,{children:le.jsx("div",{ref:h})})}var an=e=>{const{router:t,...n}=e,s=ze(),r=t??s,l=Qe({router:r}),i=C.useRef(null),[o]=C.useState(()=>new rn({...n,router:r,routerState:l}));return C.useEffect(()=>{o.setRouter(r)},[o,r]),C.useEffect(()=>{o.setRouterState(l)},[o,l]),C.useEffect(()=>{o.setOptions({className:e.className,style:e.style,shadowDOMTarget:e.shadowDOMTarget})},[o,e.className,e.style,e.shadowDOMTarget]),C.useEffect(()=>(i.current&&o.mount(i.current),()=>{o.unmount()}),[o]),le.jsx(le.Fragment,{children:le.jsx("div",{ref:i})})},cn=function(){return null},un=ln,fn=function(){return null},dn=an;const Cn=Object.freeze(Object.defineProperty({__proto__:null,TanStackRouterDevtools:cn,TanStackRouterDevtoolsInProd:un,TanStackRouterDevtoolsPanel:fn,TanStackRouterDevtoolsPanelInProd:dn},Symbol.toStringTag,{value:"Module"}));export{ft as D,bn as F,En as M,xn as S,yn as a,x as b,D as c,ae as d,V as e,Gt as f,An as g,pn as h,Yt as i,$e as j,Ht as k,On as l,vn as m,bt as n,Sn as o,vt as p,P as q,ut as r,Xt as s,Pn as t,Tn as u,Vt as v,Cn as w};
|
package/dist/client/index.html
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
if (dark) document.documentElement.classList.add('dark');
|
|
16
16
|
})();
|
|
17
17
|
</script>
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
19
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-DYmxKiJq.js"></script>
|
|
19
|
+
<link rel="stylesheet" crossorigin href="/assets/index-XhuBRVOD.css">
|
|
20
20
|
</head>
|
|
21
21
|
<body>
|
|
22
22
|
<div id="root"></div>
|
package/dist/server/index.js
CHANGED
|
@@ -22855,7 +22855,7 @@ __export(plugin_activation_exports, {
|
|
|
22855
22855
|
import { access } from "node:fs/promises";
|
|
22856
22856
|
import path23 from "node:path";
|
|
22857
22857
|
async function buildClaudeAgentSdkPluginsArray(opts) {
|
|
22858
|
-
const packagesDir = path23.join(opts.dorkHome, "
|
|
22858
|
+
const packagesDir = path23.join(opts.dorkHome, "plugins");
|
|
22859
22859
|
const active = [];
|
|
22860
22860
|
for (const name of opts.enabledPluginNames) {
|
|
22861
22861
|
const pluginPath = path23.join(packagesDir, name);
|
|
@@ -83966,6 +83966,7 @@ var sessions_default = router;
|
|
|
83966
83966
|
|
|
83967
83967
|
// ../../apps/server/src/routes/commands.ts
|
|
83968
83968
|
import { Router as Router2 } from "express";
|
|
83969
|
+
init_logger();
|
|
83969
83970
|
var router2 = Router2();
|
|
83970
83971
|
router2.get("/", async (req, res) => {
|
|
83971
83972
|
const parsed = CommandsQuerySchema.safeParse(req.query);
|
|
@@ -83985,7 +83986,8 @@ router2.get("/", async (req, res) => {
|
|
|
83985
83986
|
if (err instanceof BoundaryError) {
|
|
83986
83987
|
return res.status(403).json({ error: err.message, code: err.code });
|
|
83987
83988
|
}
|
|
83988
|
-
|
|
83989
|
+
logger.error("[commands] GET / failed", { err, cwd: parsed.data.cwd });
|
|
83990
|
+
return res.status(500).json({ error: "Internal server error" });
|
|
83989
83991
|
}
|
|
83990
83992
|
});
|
|
83991
83993
|
var commands_default = router2;
|
|
@@ -84153,7 +84155,7 @@ var SERVER_VERSION = resolveVersion();
|
|
|
84153
84155
|
var IS_DEV_BUILD = checkDevBuild(SERVER_VERSION);
|
|
84154
84156
|
function resolveVersion() {
|
|
84155
84157
|
if (env.DORKOS_VERSION_OVERRIDE) return env.DORKOS_VERSION_OVERRIDE;
|
|
84156
|
-
if (true) return "0.
|
|
84158
|
+
if (true) return "0.41.0";
|
|
84157
84159
|
const pkgPath = path4.join(path4.dirname(fileURLToPath2(import.meta.url)), "../../package.json");
|
|
84158
84160
|
return JSON.parse(readFileSync(pkgPath, "utf-8")).version;
|
|
84159
84161
|
}
|
|
@@ -84375,6 +84377,7 @@ import { z as z7 } from "zod";
|
|
|
84375
84377
|
var AGENT_NAME_REGEX = /^[a-z][a-z0-9-]{0,62}[a-z0-9]$|^[a-z]$/;
|
|
84376
84378
|
|
|
84377
84379
|
// ../../apps/server/src/routes/directory.ts
|
|
84380
|
+
init_logger();
|
|
84378
84381
|
var CreateDirectoryBodySchema = z7.object({
|
|
84379
84382
|
parentPath: z7.string().min(1),
|
|
84380
84383
|
folderName: z7.string().min(1)
|
|
@@ -84400,16 +84403,19 @@ router4.get("/", async (req, res) => {
|
|
|
84400
84403
|
const code3 = err.code;
|
|
84401
84404
|
if (code3 === "ENOENT") return res.status(404).json({ error: "Directory not found" });
|
|
84402
84405
|
if (code3 === "EACCES") return res.status(403).json({ error: "Permission denied" });
|
|
84403
|
-
|
|
84406
|
+
logger.error("[directory] GET / validateBoundary failed", { err, targetPath });
|
|
84407
|
+
return res.status(500).json({ error: "Internal server error" });
|
|
84404
84408
|
}
|
|
84405
84409
|
let dirents;
|
|
84406
84410
|
try {
|
|
84407
84411
|
dirents = await fs4.readdir(resolved, { withFileTypes: true });
|
|
84408
84412
|
} catch (err) {
|
|
84409
84413
|
const code3 = err.code;
|
|
84414
|
+
if (code3 === "ENOENT") return res.status(404).json({ error: "Directory not found" });
|
|
84410
84415
|
if (code3 === "EACCES") return res.status(403).json({ error: "Permission denied" });
|
|
84411
84416
|
if (code3 === "ENOTDIR") return res.status(400).json({ error: "Not a directory" });
|
|
84412
|
-
|
|
84417
|
+
logger.error("[directory] GET / readdir failed", { err, resolved });
|
|
84418
|
+
return res.status(500).json({ error: "Internal server error" });
|
|
84413
84419
|
}
|
|
84414
84420
|
const entries = dirents.filter((d5) => d5.isDirectory()).filter((d5) => showHidden || !d5.name.startsWith(".")).map((d5) => ({
|
|
84415
84421
|
name: d5.name,
|
|
@@ -84450,7 +84456,8 @@ router4.post("/", async (req, res) => {
|
|
|
84450
84456
|
const code3 = err.code;
|
|
84451
84457
|
if (code3 === "ENOENT") return res.status(404).json({ error: "Parent directory not found" });
|
|
84452
84458
|
if (code3 === "EACCES") return res.status(403).json({ error: "Permission denied" });
|
|
84453
|
-
|
|
84459
|
+
logger.error("[directory] POST / validateBoundary failed", { err, parentPath });
|
|
84460
|
+
return res.status(500).json({ error: "Internal server error" });
|
|
84454
84461
|
}
|
|
84455
84462
|
const newDirPath = path6.join(resolvedParent, folderName);
|
|
84456
84463
|
try {
|
|
@@ -84458,7 +84465,12 @@ router4.post("/", async (req, res) => {
|
|
|
84458
84465
|
return res.status(409).json({ error: "Directory already exists" });
|
|
84459
84466
|
} catch {
|
|
84460
84467
|
}
|
|
84461
|
-
|
|
84468
|
+
try {
|
|
84469
|
+
await fs4.mkdir(newDirPath, { recursive: true });
|
|
84470
|
+
} catch (err) {
|
|
84471
|
+
logger.error("[directory] POST / mkdir failed", { err, newDirPath });
|
|
84472
|
+
return res.status(500).json({ error: "Failed to create directory" });
|
|
84473
|
+
}
|
|
84462
84474
|
res.status(201).json({ path: newDirPath });
|
|
84463
84475
|
});
|
|
84464
84476
|
var directory_default = router4;
|
|
@@ -84837,6 +84849,7 @@ var FileListService = class {
|
|
|
84837
84849
|
var fileLister = new FileListService();
|
|
84838
84850
|
|
|
84839
84851
|
// ../../apps/server/src/routes/files.ts
|
|
84852
|
+
init_logger();
|
|
84840
84853
|
var router6 = Router6();
|
|
84841
84854
|
router6.get("/", async (req, res) => {
|
|
84842
84855
|
const parsed = FileListQuerySchema.safeParse(req.query);
|
|
@@ -84851,7 +84864,8 @@ router6.get("/", async (req, res) => {
|
|
|
84851
84864
|
if (err instanceof BoundaryError) {
|
|
84852
84865
|
return res.status(403).json({ error: err.message, code: err.code });
|
|
84853
84866
|
}
|
|
84854
|
-
|
|
84867
|
+
logger.error("[files] GET / failed", { err, cwd: parsed.data.cwd });
|
|
84868
|
+
return res.status(500).json({ error: "Internal server error" });
|
|
84855
84869
|
}
|
|
84856
84870
|
});
|
|
84857
84871
|
var files_default = router6;
|
|
@@ -84950,6 +84964,7 @@ function parsePorcelainOutput(stdout2) {
|
|
|
84950
84964
|
}
|
|
84951
84965
|
|
|
84952
84966
|
// ../../apps/server/src/routes/git.ts
|
|
84967
|
+
init_logger();
|
|
84953
84968
|
var router7 = Router7();
|
|
84954
84969
|
var GitStatusQuerySchema = z8.object({
|
|
84955
84970
|
dir: z8.string().optional()
|
|
@@ -84971,7 +84986,8 @@ router7.get("/status", async (req, res) => {
|
|
|
84971
84986
|
if (err instanceof BoundaryError) {
|
|
84972
84987
|
return res.status(403).json({ error: err.message, code: err.code });
|
|
84973
84988
|
}
|
|
84974
|
-
|
|
84989
|
+
logger.error("[git] GET /status failed", { err, dir: parsed.data.dir });
|
|
84990
|
+
return res.status(500).json({ error: "Internal server error" });
|
|
84975
84991
|
}
|
|
84976
84992
|
});
|
|
84977
84993
|
var git_default = router7;
|
|
@@ -86150,6 +86166,7 @@ var UploadHandler = class {
|
|
|
86150
86166
|
var uploadHandler = new UploadHandler();
|
|
86151
86167
|
|
|
86152
86168
|
// ../../apps/server/src/routes/uploads.ts
|
|
86169
|
+
init_logger();
|
|
86153
86170
|
var router13 = Router13();
|
|
86154
86171
|
router13.post("/", async (req, res) => {
|
|
86155
86172
|
try {
|
|
@@ -86186,7 +86203,8 @@ router13.post("/", async (req, res) => {
|
|
|
86186
86203
|
if (err instanceof BoundaryError) {
|
|
86187
86204
|
return res.status(403).json({ error: err.message, code: err.code });
|
|
86188
86205
|
}
|
|
86189
|
-
|
|
86206
|
+
logger.error("[uploads] POST / failed", { err });
|
|
86207
|
+
return res.status(500).json({ error: "Internal server error" });
|
|
86190
86208
|
}
|
|
86191
86209
|
});
|
|
86192
86210
|
router13.get("/:filename", async (req, res) => {
|
|
@@ -86213,7 +86231,8 @@ router13.get("/:filename", async (req, res) => {
|
|
|
86213
86231
|
if (err instanceof BoundaryError) {
|
|
86214
86232
|
return res.status(403).json({ error: err.message, code: err.code });
|
|
86215
86233
|
}
|
|
86216
|
-
|
|
86234
|
+
logger.error("[uploads] GET /:filename failed", { err });
|
|
86235
|
+
return res.status(500).json({ error: "Internal server error" });
|
|
86217
86236
|
}
|
|
86218
86237
|
});
|
|
86219
86238
|
var uploads_default = router13;
|
|
@@ -86223,6 +86242,7 @@ import { Router as Router14 } from "express";
|
|
|
86223
86242
|
import { readFile } from "fs/promises";
|
|
86224
86243
|
import path10 from "path";
|
|
86225
86244
|
import { z as z9 } from "zod";
|
|
86245
|
+
init_logger();
|
|
86226
86246
|
var router14 = Router14();
|
|
86227
86247
|
var QuerySchema = z9.object({
|
|
86228
86248
|
path: z9.string().min(1)
|
|
@@ -86257,7 +86277,8 @@ router14.get("/", async (req, res) => {
|
|
|
86257
86277
|
if (err instanceof BoundaryError) {
|
|
86258
86278
|
return res.status(403).json({ error: err.message, code: err.code });
|
|
86259
86279
|
}
|
|
86260
|
-
|
|
86280
|
+
logger.error("[mcp-config] GET / failed", { err, path: parsed.data.path });
|
|
86281
|
+
return res.status(500).json({ error: "Internal server error" });
|
|
86261
86282
|
}
|
|
86262
86283
|
});
|
|
86263
86284
|
var mcp_config_default = router14;
|
|
@@ -86987,7 +87008,7 @@ var UpdateAccessRuleRequestSchema = z14.object({
|
|
|
86987
87008
|
action: z14.enum(["allow", "deny"])
|
|
86988
87009
|
}).openapi("UpdateAccessRuleRequest");
|
|
86989
87010
|
var ResolveAgentsRequestSchema = z14.object({
|
|
86990
|
-
paths: z14.array(z14.string().min(1)).min(1).max(
|
|
87011
|
+
paths: z14.array(z14.string().min(1)).min(1).max(100)
|
|
86991
87012
|
}).openapi("ResolveAgentsRequest");
|
|
86992
87013
|
var ResolveAgentsResponseSchema = z14.object({
|
|
86993
87014
|
agents: z14.record(z14.string(), AgentManifestSchema.nullable())
|
|
@@ -132467,7 +132488,8 @@ function createRelayRouter(relayCore2, adapterManager2, traceStore2) {
|
|
|
132467
132488
|
if (err?.code === "ENDPOINT_NOT_FOUND") {
|
|
132468
132489
|
return res.status(404).json({ error: "Endpoint not found" });
|
|
132469
132490
|
}
|
|
132470
|
-
|
|
132491
|
+
logger.error("[relay] GET /endpoints/:subject/inbox failed", { err });
|
|
132492
|
+
return res.status(500).json({ error: "Internal server error" });
|
|
132471
132493
|
}
|
|
132472
132494
|
});
|
|
132473
132495
|
router16.get("/dead-letters", async (_req, res) => {
|
|
@@ -136765,7 +136787,7 @@ function createAgentsRouter(meshCore2) {
|
|
|
136765
136787
|
const agentPath = await validateBoundary(rawPath);
|
|
136766
136788
|
const manifest = await readManifest(agentPath);
|
|
136767
136789
|
if (!manifest) {
|
|
136768
|
-
return res.
|
|
136790
|
+
return res.json(null);
|
|
136769
136791
|
}
|
|
136770
136792
|
const soulContent = await readConventionFile(agentPath, "SOUL.md");
|
|
136771
136793
|
const nopeContent = await readConventionFile(agentPath, "NOPE.md");
|
|
@@ -142178,7 +142200,16 @@ function mapErrorToStatus(err) {
|
|
|
142178
142200
|
};
|
|
142179
142201
|
}
|
|
142180
142202
|
function createMarketplaceRouter(deps) {
|
|
142181
|
-
const {
|
|
142203
|
+
const {
|
|
142204
|
+
sourceManager,
|
|
142205
|
+
cache,
|
|
142206
|
+
fetcher,
|
|
142207
|
+
installer,
|
|
142208
|
+
uninstallFlow,
|
|
142209
|
+
updateFlow,
|
|
142210
|
+
dorkHome,
|
|
142211
|
+
onPluginsChanged
|
|
142212
|
+
} = deps;
|
|
142182
142213
|
const router16 = Router29();
|
|
142183
142214
|
router16.get("/sources", async (_req, res) => {
|
|
142184
142215
|
try {
|
|
@@ -142371,6 +142402,7 @@ function createMarketplaceRouter(deps) {
|
|
|
142371
142402
|
name: req.params.name,
|
|
142372
142403
|
...parsed.data
|
|
142373
142404
|
});
|
|
142405
|
+
onPluginsChanged?.();
|
|
142374
142406
|
return res.json(result2);
|
|
142375
142407
|
} catch (err) {
|
|
142376
142408
|
logger.error(`[Marketplace] Failed to install package ${req.params.name}`, err);
|
|
@@ -142388,6 +142420,7 @@ function createMarketplaceRouter(deps) {
|
|
|
142388
142420
|
name: req.params.name,
|
|
142389
142421
|
...parsed.data
|
|
142390
142422
|
});
|
|
142423
|
+
onPluginsChanged?.();
|
|
142391
142424
|
return res.json(result2);
|
|
142392
142425
|
} catch (err) {
|
|
142393
142426
|
logger.error(`[Marketplace] Failed to uninstall package ${req.params.name}`, err);
|
|
@@ -142451,7 +142484,7 @@ async function aggregatePackages(sources, fetcher) {
|
|
|
142451
142484
|
});
|
|
142452
142485
|
}
|
|
142453
142486
|
for (const entry of entries) {
|
|
142454
|
-
results.push(flattenMergedEntry(entry, source.name));
|
|
142487
|
+
results.push(flattenMergedEntry(entry, source.name, source.source));
|
|
142455
142488
|
}
|
|
142456
142489
|
breakdown[source.name] = entries.length;
|
|
142457
142490
|
} catch (err) {
|
|
@@ -142467,10 +142500,30 @@ async function aggregatePackages(sources, fetcher) {
|
|
|
142467
142500
|
});
|
|
142468
142501
|
return results;
|
|
142469
142502
|
}
|
|
142470
|
-
function
|
|
142503
|
+
function resolvePackageSource(entrySource, marketplaceUrl) {
|
|
142504
|
+
if (typeof entrySource === "string") {
|
|
142505
|
+
if (!entrySource.startsWith("./") && !entrySource.startsWith("../")) return entrySource;
|
|
142506
|
+
const ghMatch = marketplaceUrl.match(/github\.com\/([^/]+\/[^/.]+)/);
|
|
142507
|
+
if (!ghMatch) return entrySource;
|
|
142508
|
+
const orgRepo = ghMatch[1];
|
|
142509
|
+
const subpath = entrySource.replace(/^\.\//, "");
|
|
142510
|
+
return `github:${orgRepo}/${subpath}`;
|
|
142511
|
+
}
|
|
142512
|
+
switch (entrySource.source) {
|
|
142513
|
+
case "github":
|
|
142514
|
+
return `github:${entrySource.repo}`;
|
|
142515
|
+
case "url":
|
|
142516
|
+
return entrySource.url;
|
|
142517
|
+
case "git-subdir":
|
|
142518
|
+
return entrySource.url;
|
|
142519
|
+
case "npm":
|
|
142520
|
+
return `npm:${entrySource.package}`;
|
|
142521
|
+
}
|
|
142522
|
+
}
|
|
142523
|
+
function flattenMergedEntry(entry, marketplace, marketplaceUrl) {
|
|
142471
142524
|
return {
|
|
142472
142525
|
name: entry.name,
|
|
142473
|
-
source:
|
|
142526
|
+
source: resolvePackageSource(entry.source, marketplaceUrl),
|
|
142474
142527
|
description: entry.description,
|
|
142475
142528
|
version: entry.version,
|
|
142476
142529
|
author: typeof entry.author === "object" ? entry.author?.name : void 0,
|
|
@@ -151058,6 +151111,9 @@ async function start() {
|
|
|
151058
151111
|
claudeRuntime.warmup().catch((err) => {
|
|
151059
151112
|
logger.warn("[Startup] Model warm-up failed (will retry on first API call)", { err });
|
|
151060
151113
|
});
|
|
151114
|
+
claudeRuntime.refreshActivatedPlugins().catch((err) => {
|
|
151115
|
+
logger.warn("[Startup] Plugin activation scan failed (will retry on next install)", { err });
|
|
151116
|
+
});
|
|
151061
151117
|
}
|
|
151062
151118
|
const schedulerConfig = configManager.get("scheduler");
|
|
151063
151119
|
const tasksEnabled = (
|
|
@@ -151388,7 +151444,12 @@ async function start() {
|
|
|
151388
151444
|
installer: marketplaceInstaller,
|
|
151389
151445
|
uninstallFlow: marketplaceUninstallFlow,
|
|
151390
151446
|
updateFlow: marketplaceUpdateFlow,
|
|
151391
|
-
dorkHome
|
|
151447
|
+
dorkHome,
|
|
151448
|
+
onPluginsChanged: () => {
|
|
151449
|
+
claudeRuntime?.refreshActivatedPlugins().catch((err) => {
|
|
151450
|
+
logger.warn("[Marketplace] Post-install plugin refresh failed", { err });
|
|
151451
|
+
});
|
|
151452
|
+
}
|
|
151392
151453
|
})
|
|
151393
151454
|
);
|
|
151394
151455
|
logger.info("[Marketplace] Routes mounted");
|
|
@@ -151524,6 +151585,19 @@ async function shutdown() {
|
|
|
151524
151585
|
}
|
|
151525
151586
|
process.on("SIGINT", shutdown);
|
|
151526
151587
|
process.on("SIGTERM", shutdown);
|
|
151588
|
+
process.on("uncaughtException", (err) => {
|
|
151589
|
+
logger.error("[DorkOS] Uncaught exception \u2014 shutting down", {
|
|
151590
|
+
message: err.message,
|
|
151591
|
+
stack: err.stack,
|
|
151592
|
+
name: err.name
|
|
151593
|
+
});
|
|
151594
|
+
process.exit(1);
|
|
151595
|
+
});
|
|
151596
|
+
process.on("unhandledRejection", (reason) => {
|
|
151597
|
+
logger.error("[DorkOS] Unhandled promise rejection", {
|
|
151598
|
+
reason: reason instanceof Error ? { message: reason.message, stack: reason.stack } : reason
|
|
151599
|
+
});
|
|
151600
|
+
});
|
|
151527
151601
|
start().catch((err) => {
|
|
151528
151602
|
const info = logError(err);
|
|
151529
151603
|
logger.error("[DorkOS] Fatal error during startup", info);
|