@stoneforge/smithy 1.5.0 → 1.6.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/api/orchestrator-api.d.ts.map +1 -1
- package/dist/api/orchestrator-api.js +9 -0
- package/dist/api/orchestrator-api.js.map +1 -1
- package/dist/git/worktree-manager.d.ts.map +1 -1
- package/dist/git/worktree-manager.js +7 -0
- package/dist/git/worktree-manager.js.map +1 -1
- package/package.json +5 -5
- package/web/assets/{index-8dBly5AJ.js → index--kBvwTYH.js} +100 -100
- package/web/assets/{utils-vendor-B7jOGaxP.js → utils-vendor-CnRJgAVd.js} +1 -1
- package/web/index.html +2 -2
|
@@ -908,4 +908,4 @@ import{R as d,a as Nt,r as u,j as Le,b as $t}from"./router-vendor-DHlGizSU.js";i
|
|
|
908
908
|
*
|
|
909
909
|
* This source code is licensed under the ISC license.
|
|
910
910
|
* See the LICENSE file in the root directory of this source tree.
|
|
911
|
-
*/const br=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],m0=t("zap",br);var et=1,wr=.9,_r=.8,Mr=.17,Re=.1,He=.999,Nr=.9999,$r=.99,Er=/[\\\/_+.#"@\[\(\{&]/,zr=/[\\\/_+.#"@\[\(\{&]/g,Cr=/[\s-]/,nt=/[\s-]/g;function Ie(a,n,e,r,l,i,p){if(i===n.length)return l===a.length?et:$r;var f=`${l},${i}`;if(p[f]!==void 0)return p[f];for(var k=r.charAt(i),c=e.indexOf(k,l),v=0,o,$,E,z;c>=0;)o=Ie(a,n,e,r,c+1,i+1,p),o>v&&(c===l?o*=et:Er.test(a.charAt(c-1))?(o*=_r,E=a.slice(l,c-1).match(zr),E&&l>0&&(o*=Math.pow(He,E.length))):Cr.test(a.charAt(c-1))?(o*=wr,z=a.slice(l,c-1).match(nt),z&&l>0&&(o*=Math.pow(He,z.length))):(o*=Mr,l>0&&(o*=Math.pow(He,c-l))),a.charAt(c)!==n.charAt(i)&&(o*=Nr)),(o<Re&&e.charAt(c-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&e.charAt(c-1)!==r.charAt(i))&&($=Ie(a,n,e,r,c+1,i+2,p),$*Re>o&&(o=$*Re)),o>v&&(v=o),c=e.indexOf(k,c+1);return p[f]=v,v}function tt(a){return a.toLowerCase().replace(nt," ")}function Sr(a,n,e){return a=e&&e.length>0?`${a+" "+e.join(" ")}`:a,Ie(a,n,tt(a),tt(n),0,0,{})}var jr=Symbol.for("react.lazy"),Ce=$t[" use ".trim().toString()];function Ar(a){return typeof a=="object"&&a!==null&&"then"in a}function rt(a){return a!=null&&typeof a=="object"&&"$$typeof"in a&&a.$$typeof===jr&&"_payload"in a&&Ar(a._payload)}function qr(a){const n=Rr(a),e=u.forwardRef((r,l)=>{let{children:i,...p}=r;rt(i)&&typeof Ce=="function"&&(i=Ce(i._payload));const f=u.Children.toArray(i),k=f.find(Tr);if(k){const c=k.props.children,v=f.map(o=>o===k?u.Children.count(c)>1?u.Children.only(null):u.isValidElement(c)?c.props.children:null:o);return Le.jsx(n,{...p,ref:l,children:u.isValidElement(c)?u.cloneElement(c,void 0,v):null})}return Le.jsx(n,{...p,ref:l,children:i})});return e.displayName=`${a}.Slot`,e}function Rr(a){const n=u.forwardRef((e,r)=>{let{children:l,...i}=e;if(rt(l)&&typeof Ce=="function"&&(l=Ce(l._payload)),u.isValidElement(l)){const p=Vr(l),f=Lr(i,l.props);return l.type!==u.Fragment&&(f.ref=r?xe(r,p):p),u.cloneElement(l,f)}return u.Children.count(l)>1?u.Children.only(null):null});return n.displayName=`${a}.SlotClone`,n}var Hr=Symbol("radix.slottable");function Tr(a){return u.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===Hr}function Lr(a,n){const e={...n};for(const r in n){const l=a[r],i=n[r];/^on[A-Z]/.test(r)?l&&i?e[r]=(...f)=>{const k=i(...f);return l(...f),k}:l&&(e[r]=l):r==="style"?e[r]={...l,...i}:r==="className"&&(e[r]=[l,i].filter(Boolean).join(" "))}return{...a,...e}}function Vr(a){let n=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,e=n&&"isReactWarning"in n&&n.isReactWarning;return e?a.ref:(n=Object.getOwnPropertyDescriptor(a,"ref")?.get,e=n&&"isReactWarning"in n&&n.isReactWarning,e?a.props.ref:a.props.ref||a.ref)}var Ir=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ie=Ir.reduce((a,n)=>{const e=qr(`Primitive.${n}`),r=u.forwardRef((l,i)=>{const{asChild:p,...f}=l,k=p?e:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Le.jsx(k,{...f,ref:i})});return r.displayName=`Primitive.${n}`,{...a,[n]:r}},{}),we='[cmdk-group=""]',Te='[cmdk-group-items=""]',Dr='[cmdk-group-heading=""]',st='[cmdk-item=""]',at=`${st}:not([aria-disabled="true"])`,De="cmdk-item-select",ke="data-value",Br=(a,n,e)=>Sr(a,n,e),it=u.createContext(void 0),_e=()=>u.useContext(it),ct=u.createContext(void 0),Be=()=>u.useContext(ct),lt=u.createContext(void 0),dt=u.forwardRef((a,n)=>{let e=ve(()=>{var s,h;return{search:"",value:(h=(s=a.value)!=null?s:a.defaultValue)!=null?h:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=ve(()=>new Set),l=ve(()=>new Map),i=ve(()=>new Map),p=ve(()=>new Set),f=ut(a),{label:k,children:c,value:v,onValueChange:o,filter:$,shouldFilter:E,loop:z,disablePointerSelection:ce=!1,vimBindings:H=!0,...w}=a,ae=ge(),J=ge(),oe=ge(),P=u.useRef(null),_=Jr();ue(()=>{if(v!==void 0){let s=v.trim();e.current.value=s,j.emit()}},[v]),ue(()=>{_(6,V)},[]);let j=u.useMemo(()=>({subscribe:s=>(p.current.add(s),()=>p.current.delete(s)),snapshot:()=>e.current,setState:(s,h,m)=>{var y,x,N,b;if(!Object.is(e.current[s],h)){if(e.current[s]=h,s==="search")Q(),ne(),_(1,le);else if(s==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let C=document.getElementById(oe);C?C.focus():(y=document.getElementById(ae))==null||y.focus()}if(_(7,()=>{var C;e.current.selectedItemId=(C=F())==null?void 0:C.id,j.emit()}),m||_(5,V),((x=f.current)==null?void 0:x.value)!==void 0){let C=h??"";(b=(N=f.current).onValueChange)==null||b.call(N,C);return}}j.emit()}},emit:()=>{p.current.forEach(s=>s())}}),[]),O=u.useMemo(()=>({value:(s,h,m)=>{var y;h!==((y=i.current.get(s))==null?void 0:y.value)&&(i.current.set(s,{value:h,keywords:m}),e.current.filtered.items.set(s,he(h,m)),_(2,()=>{ne(),j.emit()}))},item:(s,h)=>(r.current.add(s),h&&(l.current.has(h)?l.current.get(h).add(s):l.current.set(h,new Set([s]))),_(3,()=>{Q(),ne(),e.current.value||le(),j.emit()}),()=>{i.current.delete(s),r.current.delete(s),e.current.filtered.items.delete(s);let m=F();_(4,()=>{Q(),m?.getAttribute("id")===s&&le(),j.emit()})}),group:s=>(l.current.has(s)||l.current.set(s,new Set),()=>{i.current.delete(s),l.current.delete(s)}),filter:()=>f.current.shouldFilter,label:k||a["aria-label"],getDisablePointerSelection:()=>f.current.disablePointerSelection,listId:ae,inputId:oe,labelId:J,listInnerRef:P}),[]);function he(s,h){var m,y;let x=(y=(m=f.current)==null?void 0:m.filter)!=null?y:Br;return s?x(s,e.current.search,h):0}function ne(){if(!e.current.search||f.current.shouldFilter===!1)return;let s=e.current.filtered.items,h=[];e.current.filtered.groups.forEach(y=>{let x=l.current.get(y),N=0;x.forEach(b=>{let C=s.get(b);N=Math.max(C,N)}),h.push([y,N])});let m=P.current;U().sort((y,x)=>{var N,b;let C=y.getAttribute("id"),ee=x.getAttribute("id");return((N=s.get(ee))!=null?N:0)-((b=s.get(C))!=null?b:0)}).forEach(y=>{let x=y.closest(Te);x?x.appendChild(y.parentElement===x?y:y.closest(`${Te} > *`)):m.appendChild(y.parentElement===m?y:y.closest(`${Te} > *`))}),h.sort((y,x)=>x[1]-y[1]).forEach(y=>{var x;let N=(x=P.current)==null?void 0:x.querySelector(`${we}[${ke}="${encodeURIComponent(y[0])}"]`);N?.parentElement.appendChild(N)})}function le(){let s=U().find(m=>m.getAttribute("aria-disabled")!=="true"),h=s?.getAttribute(ke);j.setState("value",h||void 0)}function Q(){var s,h,m,y;if(!e.current.search||f.current.shouldFilter===!1){e.current.filtered.count=r.current.size;return}e.current.filtered.groups=new Set;let x=0;for(let N of r.current){let b=(h=(s=i.current.get(N))==null?void 0:s.value)!=null?h:"",C=(y=(m=i.current.get(N))==null?void 0:m.keywords)!=null?y:[],ee=he(b,C);e.current.filtered.items.set(N,ee),ee>0&&x++}for(let[N,b]of l.current)for(let C of b)if(e.current.filtered.items.get(C)>0){e.current.filtered.groups.add(N);break}e.current.filtered.count=x}function V(){var s,h,m;let y=F();y&&(((s=y.parentElement)==null?void 0:s.firstChild)===y&&((m=(h=y.closest(we))==null?void 0:h.querySelector(Dr))==null||m.scrollIntoView({block:"nearest"})),y.scrollIntoView({block:"nearest"}))}function F(){var s;return(s=P.current)==null?void 0:s.querySelector(`${st}[aria-selected="true"]`)}function U(){var s;return Array.from(((s=P.current)==null?void 0:s.querySelectorAll(at))||[])}function M(s){let h=U()[s];h&&j.setState("value",h.getAttribute(ke))}function S(s){var h;let m=F(),y=U(),x=y.findIndex(b=>b===m),N=y[x+s];(h=f.current)!=null&&h.loop&&(N=x+s<0?y[y.length-1]:x+s===y.length?y[0]:y[x+s]),N&&j.setState("value",N.getAttribute(ke))}function Y(s){let h=F(),m=h?.closest(we),y;for(;m&&!y;)m=s>0?Gr(m,we):Zr(m,we),y=m?.querySelector(at);y?j.setState("value",y.getAttribute(ke)):S(s)}let X=()=>M(U().length-1),T=s=>{s.preventDefault(),s.metaKey?X():s.altKey?Y(1):S(1)},G=s=>{s.preventDefault(),s.metaKey?M(0):s.altKey?Y(-1):S(-1)};return u.createElement(ie.div,{ref:n,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:s=>{var h;(h=w.onKeyDown)==null||h.call(w,s);let m=s.nativeEvent.isComposing||s.keyCode===229;if(!(s.defaultPrevented||m))switch(s.key){case"n":case"j":{H&&s.ctrlKey&&T(s);break}case"ArrowDown":{T(s);break}case"p":case"k":{H&&s.ctrlKey&&G(s);break}case"ArrowUp":{G(s);break}case"Home":{s.preventDefault(),M(0);break}case"End":{s.preventDefault(),X();break}case"Enter":{s.preventDefault();let y=F();if(y){let x=new Event(De);y.dispatchEvent(x)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:O.inputId,id:O.labelId,style:es},k),Se(a,s=>u.createElement(ct.Provider,{value:j},u.createElement(it.Provider,{value:O},s))))}),Pr=u.forwardRef((a,n)=>{var e,r;let l=ge(),i=u.useRef(null),p=u.useContext(lt),f=_e(),k=ut(a),c=(r=(e=k.current)==null?void 0:e.forceMount)!=null?r:p?.forceMount;ue(()=>{if(!c)return f.item(l,p?.id)},[c]);let v=ht(l,i,[a.value,a.children,i],a.keywords),o=Be(),$=se(_=>_.value&&_.value===v.current),E=se(_=>c||f.filter()===!1?!0:_.search?_.filtered.items.get(l)>0:!0);u.useEffect(()=>{let _=i.current;if(!(!_||a.disabled))return _.addEventListener(De,z),()=>_.removeEventListener(De,z)},[E,a.onSelect,a.disabled]);function z(){var _,j;ce(),(j=(_=k.current).onSelect)==null||j.call(_,v.current)}function ce(){o.setState("value",v.current,!0)}if(!E)return null;let{disabled:H,value:w,onSelect:ae,forceMount:J,keywords:oe,...P}=a;return u.createElement(ie.div,{ref:xe(i,n),...P,id:l,"cmdk-item":"",role:"option","aria-disabled":!!H,"aria-selected":!!$,"data-disabled":!!H,"data-selected":!!$,onPointerMove:H||f.getDisablePointerSelection()?void 0:ce,onClick:H?void 0:z},a.children)}),Or=u.forwardRef((a,n)=>{let{heading:e,children:r,forceMount:l,...i}=a,p=ge(),f=u.useRef(null),k=u.useRef(null),c=ge(),v=_e(),o=se(E=>l||v.filter()===!1?!0:E.search?E.filtered.groups.has(p):!0);ue(()=>v.group(p),[]),ht(p,f,[a.value,a.heading,k]);let $=u.useMemo(()=>({id:p,forceMount:l}),[l]);return u.createElement(ie.div,{ref:xe(f,n),...i,"cmdk-group":"",role:"presentation",hidden:o?void 0:!0},e&&u.createElement("div",{ref:k,"cmdk-group-heading":"","aria-hidden":!0,id:c},e),Se(a,E=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":e?c:void 0},u.createElement(lt.Provider,{value:$},E))))}),Fr=u.forwardRef((a,n)=>{let{alwaysRender:e,...r}=a,l=u.useRef(null),i=se(p=>!p.search);return!e&&!i?null:u.createElement(ie.div,{ref:xe(l,n),...r,"cmdk-separator":"",role:"separator"})}),Ur=u.forwardRef((a,n)=>{let{onValueChange:e,...r}=a,l=a.value!=null,i=Be(),p=se(c=>c.search),f=se(c=>c.selectedItemId),k=_e();return u.useEffect(()=>{a.value!=null&&i.setState("search",a.value)},[a.value]),u.createElement(ie.input,{ref:n,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":k.listId,"aria-labelledby":k.labelId,"aria-activedescendant":f,id:k.inputId,type:"text",value:l?a.value:p,onChange:c=>{l||i.setState("search",c.target.value),e?.(c.target.value)}})}),Yr=u.forwardRef((a,n)=>{let{children:e,label:r="Suggestions",...l}=a,i=u.useRef(null),p=u.useRef(null),f=se(c=>c.selectedItemId),k=_e();return u.useEffect(()=>{if(p.current&&i.current){let c=p.current,v=i.current,o,$=new ResizeObserver(()=>{o=requestAnimationFrame(()=>{let E=c.offsetHeight;v.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return $.observe(c),()=>{cancelAnimationFrame(o),$.unobserve(c)}}},[]),u.createElement(ie.div,{ref:xe(i,n),...l,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":f,"aria-label":r,id:k.listId},Se(a,c=>u.createElement("div",{ref:xe(p,k.listInnerRef),"cmdk-list-sizer":""},c)))}),Wr=u.forwardRef((a,n)=>{let{open:e,onOpenChange:r,overlayClassName:l,contentClassName:i,container:p,...f}=a;return u.createElement(Et,{open:e,onOpenChange:r},u.createElement(zt,{container:p},u.createElement(Ct,{"cmdk-overlay":"",className:l}),u.createElement(St,{"aria-label":a.label,"cmdk-dialog":"",className:i},u.createElement(dt,{ref:n,...f}))))}),Kr=u.forwardRef((a,n)=>se(e=>e.filtered.count===0)?u.createElement(ie.div,{ref:n,...a,"cmdk-empty":"",role:"presentation"}):null),Xr=u.forwardRef((a,n)=>{let{progress:e,children:r,label:l="Loading...",...i}=a;return u.createElement(ie.div,{ref:n,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},Se(a,p=>u.createElement("div",{"aria-hidden":!0},p)))}),k0=Object.assign(dt,{List:Yr,Item:Pr,Input:Ur,Group:Or,Separator:Fr,Dialog:Wr,Empty:Kr,Loading:Xr});function Gr(a,n){let e=a.nextElementSibling;for(;e;){if(e.matches(n))return e;e=e.nextElementSibling}}function Zr(a,n){let e=a.previousElementSibling;for(;e;){if(e.matches(n))return e;e=e.previousElementSibling}}function ut(a){let n=u.useRef(a);return ue(()=>{n.current=a}),n}var ue=typeof window>"u"?u.useEffect:u.useLayoutEffect;function ve(a){let n=u.useRef();return n.current===void 0&&(n.current=a()),n}function se(a){let n=Be(),e=()=>a(n.snapshot());return u.useSyncExternalStore(n.subscribe,e,e)}function ht(a,n,e,r=[]){let l=u.useRef(),i=_e();return ue(()=>{var p;let f=(()=>{var c;for(let v of e){if(typeof v=="string")return v.trim();if(typeof v=="object"&&"current"in v)return v.current?(c=v.current.textContent)==null?void 0:c.trim():l.current}})(),k=r.map(c=>c.trim());i.value(a,f,k),(p=n.current)==null||p.setAttribute(ke,f),l.current=f}),l}var Jr=()=>{let[a,n]=u.useState(),e=ve(()=>new Map);return ue(()=>{e.current.forEach(r=>r()),e.current=new Map},[a]),(r,l)=>{e.current.set(r,l),n({})}};function Qr(a){let n=a.type;return typeof n=="function"?n(a.props):"render"in n?n.render(a.props):a}function Se({asChild:a,children:n},e){return a&&u.isValidElement(n)?u.cloneElement(Qr(n),{ref:n.ref},e(n.props.children)):e(n)}var es={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Yi as $,cs as A,xs as B,Cs as C,Xi as D,o1 as E,m1 as F,_1 as G,C1 as H,O1 as I,ki as J,pi as K,D1 as L,ni as M,fs as N,mi as O,ui as P,Fs as Q,q1 as R,Ui as S,Wi as T,s0 as U,u1 as V,y0 as W,f0 as X,Ni as Y,hs as Z,w1 as _,As as a,bi as a$,vs as a0,R1 as a1,Ys as a2,i1 as a3,gi as a4,P1 as a5,Vi as a6,Di as a7,h1 as a8,I1 as a9,di as aA,Is as aB,ns as aC,Bs as aD,ks as aE,ms as aF,k0 as aG,us as aH,p1 as aI,qi as aJ,Ms as aK,u0 as aL,_i as aM,J1 as aN,Ks as aO,Y1 as aP,e0 as aQ,B1 as aR,Ts as aS,Bi as aT,Hi as aU,N1 as aV,xi as aW,h0 as aX,t1 as aY,r1 as aZ,Ds as a_,Qi as aa,Fi as ab,t0 as ac,$1 as ad,j1 as ae,X1 as af,Zs as ag,n0 as ah,r0 as ai,ss as aj,A1 as ak,M1 as al,L1 as am,ti as an,Ns as ao,li as ap,wi as aq,G1 as ar,Es as as,ji as at,Ki as au,Os as av,fi as aw,Pi as ax,ai as ay,Z1 as az,zs as b,_s as b0,S1 as b1,k1 as b2,T1 as b3,is as b4,a0 as b5,qs as b6,Rs as b7,n1 as b8,hi as b9,Gs as bA,Q1 as bB,x1 as bC,y1 as bD,V1 as bE,g1 as bF,Ti as bG,a1 as bH,Li as bI,ii as bJ,c1 as bK,d1 as bL,Js as bM,s1 as bN,vi as bO,Ci as bP,Oi as bQ,v1 as bR,bs as bS,f1 as bT,z1 as bU,rs as bV,m0 as ba,ps as bb,ls as bc,e1 as bd,gs as be,c0 as bf,yi as bg,zi as bh,E1 as bi,Xs as bj,Qs as bk,si as bl,$i as bm,ei as bn,Ws as bo,Ei as bp,ds as bq,Zi as br,Gi as bs,ci as bt,b1 as bu,l0 as bv,d0 as bw,H1 as bx,K1 as by,Mi as bz,ri as c,Ss as d,Ai as e,js as f,i0 as g,oi as h,ys as i,Ji as j,Vs as k,p0 as l,Ii as m,ws as n,U1 as o,Us as p,Ri as q,o0 as r,W1 as s,Ps as t,Ls as u,l1 as v,F1 as w,$s as x,Si as y,Hs as z};
|
|
911
|
+
*/const br=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],m0=t("zap",br);var et=1,wr=.9,_r=.8,Mr=.17,Re=.1,He=.999,Nr=.9999,$r=.99,Er=/[\\\/_+.#"@\[\(\{&]/,zr=/[\\\/_+.#"@\[\(\{&]/g,Cr=/[\s-]/,nt=/[\s-]/g;function Ie(a,n,e,r,l,i,p){if(i===n.length)return l===a.length?et:$r;var f=`${l},${i}`;if(p[f]!==void 0)return p[f];for(var k=r.charAt(i),c=e.indexOf(k,l),v=0,o,$,E,z;c>=0;)o=Ie(a,n,e,r,c+1,i+1,p),o>v&&(c===l?o*=et:Er.test(a.charAt(c-1))?(o*=_r,E=a.slice(l,c-1).match(zr),E&&l>0&&(o*=Math.pow(He,E.length))):Cr.test(a.charAt(c-1))?(o*=wr,z=a.slice(l,c-1).match(nt),z&&l>0&&(o*=Math.pow(He,z.length))):(o*=Mr,l>0&&(o*=Math.pow(He,c-l))),a.charAt(c)!==n.charAt(i)&&(o*=Nr)),(o<Re&&e.charAt(c-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&e.charAt(c-1)!==r.charAt(i))&&($=Ie(a,n,e,r,c+1,i+2,p),$*Re>o&&(o=$*Re)),o>v&&(v=o),c=e.indexOf(k,c+1);return p[f]=v,v}function tt(a){return a.toLowerCase().replace(nt," ")}function Sr(a,n,e){return a=e&&e.length>0?`${a+" "+e.join(" ")}`:a,Ie(a,n,tt(a),tt(n),0,0,{})}var jr=Symbol.for("react.lazy"),Ce=$t[" use ".trim().toString()];function Ar(a){return typeof a=="object"&&a!==null&&"then"in a}function rt(a){return a!=null&&typeof a=="object"&&"$$typeof"in a&&a.$$typeof===jr&&"_payload"in a&&Ar(a._payload)}function qr(a){const n=Rr(a),e=u.forwardRef((r,l)=>{let{children:i,...p}=r;rt(i)&&typeof Ce=="function"&&(i=Ce(i._payload));const f=u.Children.toArray(i),k=f.find(Tr);if(k){const c=k.props.children,v=f.map(o=>o===k?u.Children.count(c)>1?u.Children.only(null):u.isValidElement(c)?c.props.children:null:o);return Le.jsx(n,{...p,ref:l,children:u.isValidElement(c)?u.cloneElement(c,void 0,v):null})}return Le.jsx(n,{...p,ref:l,children:i})});return e.displayName=`${a}.Slot`,e}function Rr(a){const n=u.forwardRef((e,r)=>{let{children:l,...i}=e;if(rt(l)&&typeof Ce=="function"&&(l=Ce(l._payload)),u.isValidElement(l)){const p=Vr(l),f=Lr(i,l.props);return l.type!==u.Fragment&&(f.ref=r?xe(r,p):p),u.cloneElement(l,f)}return u.Children.count(l)>1?u.Children.only(null):null});return n.displayName=`${a}.SlotClone`,n}var Hr=Symbol("radix.slottable");function Tr(a){return u.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===Hr}function Lr(a,n){const e={...n};for(const r in n){const l=a[r],i=n[r];/^on[A-Z]/.test(r)?l&&i?e[r]=(...f)=>{const k=i(...f);return l(...f),k}:l&&(e[r]=l):r==="style"?e[r]={...l,...i}:r==="className"&&(e[r]=[l,i].filter(Boolean).join(" "))}return{...a,...e}}function Vr(a){let n=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,e=n&&"isReactWarning"in n&&n.isReactWarning;return e?a.ref:(n=Object.getOwnPropertyDescriptor(a,"ref")?.get,e=n&&"isReactWarning"in n&&n.isReactWarning,e?a.props.ref:a.props.ref||a.ref)}var Ir=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ie=Ir.reduce((a,n)=>{const e=qr(`Primitive.${n}`),r=u.forwardRef((l,i)=>{const{asChild:p,...f}=l,k=p?e:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Le.jsx(k,{...f,ref:i})});return r.displayName=`Primitive.${n}`,{...a,[n]:r}},{}),we='[cmdk-group=""]',Te='[cmdk-group-items=""]',Dr='[cmdk-group-heading=""]',st='[cmdk-item=""]',at=`${st}:not([aria-disabled="true"])`,De="cmdk-item-select",ke="data-value",Br=(a,n,e)=>Sr(a,n,e),it=u.createContext(void 0),_e=()=>u.useContext(it),ct=u.createContext(void 0),Be=()=>u.useContext(ct),lt=u.createContext(void 0),dt=u.forwardRef((a,n)=>{let e=ve(()=>{var s,h;return{search:"",value:(h=(s=a.value)!=null?s:a.defaultValue)!=null?h:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=ve(()=>new Set),l=ve(()=>new Map),i=ve(()=>new Map),p=ve(()=>new Set),f=ut(a),{label:k,children:c,value:v,onValueChange:o,filter:$,shouldFilter:E,loop:z,disablePointerSelection:ce=!1,vimBindings:H=!0,...w}=a,ae=ge(),J=ge(),oe=ge(),P=u.useRef(null),_=Jr();ue(()=>{if(v!==void 0){let s=v.trim();e.current.value=s,j.emit()}},[v]),ue(()=>{_(6,V)},[]);let j=u.useMemo(()=>({subscribe:s=>(p.current.add(s),()=>p.current.delete(s)),snapshot:()=>e.current,setState:(s,h,m)=>{var y,x,N,b;if(!Object.is(e.current[s],h)){if(e.current[s]=h,s==="search")Q(),ne(),_(1,le);else if(s==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let C=document.getElementById(oe);C?C.focus():(y=document.getElementById(ae))==null||y.focus()}if(_(7,()=>{var C;e.current.selectedItemId=(C=F())==null?void 0:C.id,j.emit()}),m||_(5,V),((x=f.current)==null?void 0:x.value)!==void 0){let C=h??"";(b=(N=f.current).onValueChange)==null||b.call(N,C);return}}j.emit()}},emit:()=>{p.current.forEach(s=>s())}}),[]),O=u.useMemo(()=>({value:(s,h,m)=>{var y;h!==((y=i.current.get(s))==null?void 0:y.value)&&(i.current.set(s,{value:h,keywords:m}),e.current.filtered.items.set(s,he(h,m)),_(2,()=>{ne(),j.emit()}))},item:(s,h)=>(r.current.add(s),h&&(l.current.has(h)?l.current.get(h).add(s):l.current.set(h,new Set([s]))),_(3,()=>{Q(),ne(),e.current.value||le(),j.emit()}),()=>{i.current.delete(s),r.current.delete(s),e.current.filtered.items.delete(s);let m=F();_(4,()=>{Q(),m?.getAttribute("id")===s&&le(),j.emit()})}),group:s=>(l.current.has(s)||l.current.set(s,new Set),()=>{i.current.delete(s),l.current.delete(s)}),filter:()=>f.current.shouldFilter,label:k||a["aria-label"],getDisablePointerSelection:()=>f.current.disablePointerSelection,listId:ae,inputId:oe,labelId:J,listInnerRef:P}),[]);function he(s,h){var m,y;let x=(y=(m=f.current)==null?void 0:m.filter)!=null?y:Br;return s?x(s,e.current.search,h):0}function ne(){if(!e.current.search||f.current.shouldFilter===!1)return;let s=e.current.filtered.items,h=[];e.current.filtered.groups.forEach(y=>{let x=l.current.get(y),N=0;x.forEach(b=>{let C=s.get(b);N=Math.max(C,N)}),h.push([y,N])});let m=P.current;U().sort((y,x)=>{var N,b;let C=y.getAttribute("id"),ee=x.getAttribute("id");return((N=s.get(ee))!=null?N:0)-((b=s.get(C))!=null?b:0)}).forEach(y=>{let x=y.closest(Te);x?x.appendChild(y.parentElement===x?y:y.closest(`${Te} > *`)):m.appendChild(y.parentElement===m?y:y.closest(`${Te} > *`))}),h.sort((y,x)=>x[1]-y[1]).forEach(y=>{var x;let N=(x=P.current)==null?void 0:x.querySelector(`${we}[${ke}="${encodeURIComponent(y[0])}"]`);N?.parentElement.appendChild(N)})}function le(){let s=U().find(m=>m.getAttribute("aria-disabled")!=="true"),h=s?.getAttribute(ke);j.setState("value",h||void 0)}function Q(){var s,h,m,y;if(!e.current.search||f.current.shouldFilter===!1){e.current.filtered.count=r.current.size;return}e.current.filtered.groups=new Set;let x=0;for(let N of r.current){let b=(h=(s=i.current.get(N))==null?void 0:s.value)!=null?h:"",C=(y=(m=i.current.get(N))==null?void 0:m.keywords)!=null?y:[],ee=he(b,C);e.current.filtered.items.set(N,ee),ee>0&&x++}for(let[N,b]of l.current)for(let C of b)if(e.current.filtered.items.get(C)>0){e.current.filtered.groups.add(N);break}e.current.filtered.count=x}function V(){var s,h,m;let y=F();y&&(((s=y.parentElement)==null?void 0:s.firstChild)===y&&((m=(h=y.closest(we))==null?void 0:h.querySelector(Dr))==null||m.scrollIntoView({block:"nearest"})),y.scrollIntoView({block:"nearest"}))}function F(){var s;return(s=P.current)==null?void 0:s.querySelector(`${st}[aria-selected="true"]`)}function U(){var s;return Array.from(((s=P.current)==null?void 0:s.querySelectorAll(at))||[])}function M(s){let h=U()[s];h&&j.setState("value",h.getAttribute(ke))}function S(s){var h;let m=F(),y=U(),x=y.findIndex(b=>b===m),N=y[x+s];(h=f.current)!=null&&h.loop&&(N=x+s<0?y[y.length-1]:x+s===y.length?y[0]:y[x+s]),N&&j.setState("value",N.getAttribute(ke))}function Y(s){let h=F(),m=h?.closest(we),y;for(;m&&!y;)m=s>0?Gr(m,we):Zr(m,we),y=m?.querySelector(at);y?j.setState("value",y.getAttribute(ke)):S(s)}let X=()=>M(U().length-1),T=s=>{s.preventDefault(),s.metaKey?X():s.altKey?Y(1):S(1)},G=s=>{s.preventDefault(),s.metaKey?M(0):s.altKey?Y(-1):S(-1)};return u.createElement(ie.div,{ref:n,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:s=>{var h;(h=w.onKeyDown)==null||h.call(w,s);let m=s.nativeEvent.isComposing||s.keyCode===229;if(!(s.defaultPrevented||m))switch(s.key){case"n":case"j":{H&&s.ctrlKey&&T(s);break}case"ArrowDown":{T(s);break}case"p":case"k":{H&&s.ctrlKey&&G(s);break}case"ArrowUp":{G(s);break}case"Home":{s.preventDefault(),M(0);break}case"End":{s.preventDefault(),X();break}case"Enter":{s.preventDefault();let y=F();if(y){let x=new Event(De);y.dispatchEvent(x)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:O.inputId,id:O.labelId,style:es},k),Se(a,s=>u.createElement(ct.Provider,{value:j},u.createElement(it.Provider,{value:O},s))))}),Pr=u.forwardRef((a,n)=>{var e,r;let l=ge(),i=u.useRef(null),p=u.useContext(lt),f=_e(),k=ut(a),c=(r=(e=k.current)==null?void 0:e.forceMount)!=null?r:p?.forceMount;ue(()=>{if(!c)return f.item(l,p?.id)},[c]);let v=ht(l,i,[a.value,a.children,i],a.keywords),o=Be(),$=se(_=>_.value&&_.value===v.current),E=se(_=>c||f.filter()===!1?!0:_.search?_.filtered.items.get(l)>0:!0);u.useEffect(()=>{let _=i.current;if(!(!_||a.disabled))return _.addEventListener(De,z),()=>_.removeEventListener(De,z)},[E,a.onSelect,a.disabled]);function z(){var _,j;ce(),(j=(_=k.current).onSelect)==null||j.call(_,v.current)}function ce(){o.setState("value",v.current,!0)}if(!E)return null;let{disabled:H,value:w,onSelect:ae,forceMount:J,keywords:oe,...P}=a;return u.createElement(ie.div,{ref:xe(i,n),...P,id:l,"cmdk-item":"",role:"option","aria-disabled":!!H,"aria-selected":!!$,"data-disabled":!!H,"data-selected":!!$,onPointerMove:H||f.getDisablePointerSelection()?void 0:ce,onClick:H?void 0:z},a.children)}),Or=u.forwardRef((a,n)=>{let{heading:e,children:r,forceMount:l,...i}=a,p=ge(),f=u.useRef(null),k=u.useRef(null),c=ge(),v=_e(),o=se(E=>l||v.filter()===!1?!0:E.search?E.filtered.groups.has(p):!0);ue(()=>v.group(p),[]),ht(p,f,[a.value,a.heading,k]);let $=u.useMemo(()=>({id:p,forceMount:l}),[l]);return u.createElement(ie.div,{ref:xe(f,n),...i,"cmdk-group":"",role:"presentation",hidden:o?void 0:!0},e&&u.createElement("div",{ref:k,"cmdk-group-heading":"","aria-hidden":!0,id:c},e),Se(a,E=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":e?c:void 0},u.createElement(lt.Provider,{value:$},E))))}),Fr=u.forwardRef((a,n)=>{let{alwaysRender:e,...r}=a,l=u.useRef(null),i=se(p=>!p.search);return!e&&!i?null:u.createElement(ie.div,{ref:xe(l,n),...r,"cmdk-separator":"",role:"separator"})}),Ur=u.forwardRef((a,n)=>{let{onValueChange:e,...r}=a,l=a.value!=null,i=Be(),p=se(c=>c.search),f=se(c=>c.selectedItemId),k=_e();return u.useEffect(()=>{a.value!=null&&i.setState("search",a.value)},[a.value]),u.createElement(ie.input,{ref:n,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":k.listId,"aria-labelledby":k.labelId,"aria-activedescendant":f,id:k.inputId,type:"text",value:l?a.value:p,onChange:c=>{l||i.setState("search",c.target.value),e?.(c.target.value)}})}),Yr=u.forwardRef((a,n)=>{let{children:e,label:r="Suggestions",...l}=a,i=u.useRef(null),p=u.useRef(null),f=se(c=>c.selectedItemId),k=_e();return u.useEffect(()=>{if(p.current&&i.current){let c=p.current,v=i.current,o,$=new ResizeObserver(()=>{o=requestAnimationFrame(()=>{let E=c.offsetHeight;v.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return $.observe(c),()=>{cancelAnimationFrame(o),$.unobserve(c)}}},[]),u.createElement(ie.div,{ref:xe(i,n),...l,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":f,"aria-label":r,id:k.listId},Se(a,c=>u.createElement("div",{ref:xe(p,k.listInnerRef),"cmdk-list-sizer":""},c)))}),Wr=u.forwardRef((a,n)=>{let{open:e,onOpenChange:r,overlayClassName:l,contentClassName:i,container:p,...f}=a;return u.createElement(Et,{open:e,onOpenChange:r},u.createElement(zt,{container:p},u.createElement(Ct,{"cmdk-overlay":"",className:l}),u.createElement(St,{"aria-label":a.label,"cmdk-dialog":"",className:i},u.createElement(dt,{ref:n,...f}))))}),Kr=u.forwardRef((a,n)=>se(e=>e.filtered.count===0)?u.createElement(ie.div,{ref:n,...a,"cmdk-empty":"",role:"presentation"}):null),Xr=u.forwardRef((a,n)=>{let{progress:e,children:r,label:l="Loading...",...i}=a;return u.createElement(ie.div,{ref:n,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},Se(a,p=>u.createElement("div",{"aria-hidden":!0},p)))}),k0=Object.assign(dt,{List:Yr,Item:Pr,Input:Ur,Group:Or,Separator:Fr,Dialog:Wr,Empty:Kr,Loading:Xr});function Gr(a,n){let e=a.nextElementSibling;for(;e;){if(e.matches(n))return e;e=e.nextElementSibling}}function Zr(a,n){let e=a.previousElementSibling;for(;e;){if(e.matches(n))return e;e=e.previousElementSibling}}function ut(a){let n=u.useRef(a);return ue(()=>{n.current=a}),n}var ue=typeof window>"u"?u.useEffect:u.useLayoutEffect;function ve(a){let n=u.useRef();return n.current===void 0&&(n.current=a()),n}function se(a){let n=Be(),e=()=>a(n.snapshot());return u.useSyncExternalStore(n.subscribe,e,e)}function ht(a,n,e,r=[]){let l=u.useRef(),i=_e();return ue(()=>{var p;let f=(()=>{var c;for(let v of e){if(typeof v=="string")return v.trim();if(typeof v=="object"&&"current"in v)return v.current?(c=v.current.textContent)==null?void 0:c.trim():l.current}})(),k=r.map(c=>c.trim());i.value(a,f,k),(p=n.current)==null||p.setAttribute(ke,f),l.current=f}),l}var Jr=()=>{let[a,n]=u.useState(),e=ve(()=>new Map);return ue(()=>{e.current.forEach(r=>r()),e.current=new Map},[a]),(r,l)=>{e.current.set(r,l),n({})}};function Qr(a){let n=a.type;return typeof n=="function"?n(a.props):"render"in n?n.render(a.props):a}function Se({asChild:a,children:n},e){return a&&u.isValidElement(n)?u.cloneElement(Qr(n),{ref:n.ref},e(n.props.children)):e(n)}var es={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Yi as $,cs as A,xs as B,Cs as C,Xi as D,o1 as E,m1 as F,_1 as G,C1 as H,O1 as I,ki as J,pi as K,D1 as L,ni as M,fs as N,mi as O,ui as P,Fs as Q,q1 as R,Ui as S,Wi as T,s0 as U,u1 as V,y0 as W,f0 as X,Ni as Y,hs as Z,w1 as _,As as a,B1 as a$,vs as a0,R1 as a1,Ys as a2,i1 as a3,gi as a4,P1 as a5,Vi as a6,Di as a7,h1 as a8,I1 as a9,ti as aA,Ns as aB,li as aC,wi as aD,G1 as aE,Es as aF,ji as aG,fi as aH,Pi as aI,ai as aJ,Z1 as aK,di as aL,Is as aM,ns as aN,Bs as aO,ks as aP,ms as aQ,k0 as aR,p1 as aS,qi as aT,Ms as aU,u0 as aV,_i as aW,J1 as aX,Ks as aY,Y1 as aZ,e0 as a_,Qi as aa,Fi as ab,t0 as ac,$1 as ad,j1 as ae,X1 as af,Zs as ag,n0 as ah,r0 as ai,Ts as aj,gs as ak,e1 as al,r1 as am,c0 as an,Ki as ao,yi as ap,zi as aq,E1 as ar,Xs as as,Qs as at,us as au,Os as av,ss as aw,A1 as ax,M1 as ay,L1 as az,zs as b,Bi as b0,Hi as b1,N1 as b2,xi as b3,h0 as b4,t1 as b5,Ds as b6,bi as b7,_s as b8,S1 as b9,Gs as bA,Q1 as bB,x1 as bC,y1 as bD,V1 as bE,g1 as bF,Ti as bG,a1 as bH,Li as bI,ii as bJ,c1 as bK,d1 as bL,Js as bM,s1 as bN,vi as bO,Ci as bP,Oi as bQ,v1 as bR,bs as bS,f1 as bT,z1 as bU,rs as bV,k1 as ba,T1 as bb,is as bc,a0 as bd,qs as be,Rs as bf,n1 as bg,hi as bh,m0 as bi,ps as bj,ls as bk,si as bl,$i as bm,ei as bn,Ws as bo,Ei as bp,ds as bq,Zi as br,Gi as bs,ci as bt,b1 as bu,l0 as bv,d0 as bw,H1 as bx,K1 as by,Mi as bz,ri as c,Ss as d,Ai as e,js as f,i0 as g,oi as h,ys as i,Ji as j,Vs as k,p0 as l,Ii as m,ws as n,U1 as o,Us as p,Ri as q,o0 as r,W1 as s,Ps as t,Ls as u,l1 as v,F1 as w,$s as x,Si as y,Hs as z};
|
package/web/index.html
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600&display=swap" rel="stylesheet" />
|
|
9
9
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
10
10
|
<title>Stoneforge</title>
|
|
11
|
-
<script type="module" crossorigin src="/assets/index
|
|
11
|
+
<script type="module" crossorigin src="/assets/index--kBvwTYH.js"></script>
|
|
12
12
|
<link rel="modulepreload" crossorigin href="/assets/router-vendor-DHlGizSU.js">
|
|
13
13
|
<link rel="modulepreload" crossorigin href="/assets/ui-vendor-BSco96uv.js">
|
|
14
|
-
<link rel="modulepreload" crossorigin href="/assets/utils-vendor-
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/assets/utils-vendor-CnRJgAVd.js">
|
|
15
15
|
<link rel="modulepreload" crossorigin href="/assets/monaco-editor-B4lwqA13.js">
|
|
16
16
|
<link rel="stylesheet" crossorigin href="/assets/monaco-editor-CQpyCxOA.css">
|
|
17
17
|
<link rel="stylesheet" crossorigin href="/assets/index-CNcjZKzg.css">
|