@dhzh/foundry 0.0.3-beta.1 → 0.0.3-beta.2
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/README.md +28 -7
- package/dist/cli/index.mjs +25 -1
- package/dist/web/index.html +1 -1
- package/dist/web/static/css/index.400108c990.css +1 -0
- package/dist/web/static/js/304.ae01979a4b.js +3 -0
- package/dist/web/static/js/index.93ad4f2a33.js +1 -0
- package/dist/web/static/js/lib-react.8689a73639.js +2 -0
- package/dist/web/static/js/lib-router.7aa1b84d62.js +2 -0
- package/dist/web/static/js/lib-router.7aa1b84d62.js.LICENSE.txt +10 -0
- package/package.json +6 -2
- package/dist/web/static/css/index.ef46db3751.css +0 -0
- package/dist/web/static/js/488.ff29f65580.js +0 -1
- package/dist/web/static/js/async/973.3e764f383c.js +0 -1
- package/dist/web/static/js/index.8be18902e4.js +0 -1
- package/dist/web/static/js/lib-react.bf6574ea51.js +0 -2
- /package/dist/web/static/css/{488.399a9465c7.css → 304.399a9465c7.css} +0 -0
- /package/dist/web/static/js/{lib-react.bf6574ea51.js.LICENSE.txt → lib-react.8689a73639.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! LICENSE: lib-router.7aa1b84d62.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.rspackChunkweb=self.rspackChunkweb||[]).push([[535],{1413(e,t,n){var r=n(9855),a=n(6958),o=n(4402),i=n(6234),l=n(405);function u({to:e,replace:t,state:n,relative:s}){(0,r.V1)((0,i.Ri)(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=l.useContext(o._3);(0,r.$e)(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=l.useContext(o.Pl),{pathname:d}=(0,i.zy)(),p=(0,i.Zp)(),m=JSON.stringify((0,a.Gh)(e,(0,a.PD)(h),d,"path"===s));return l.useEffect(()=>{p(JSON.parse(m),{replace:t,state:n,relative:s})},[p,m,s,t,n]),null}function s(e){(0,r.V1)(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function c({basename:e="/",children:t=null,location:n,navigationType:u="POP",navigator:s,static:h=!1,useTransitions:d}){(0,r.V1)(!(0,i.Ri)(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=e.replace(/^\/*/,"/"),m=l.useMemo(()=>({basename:p,navigator:s,static:h,useTransitions:d,future:{}}),[p,s,h,d]);"string"==typeof n&&(n=(0,r.Rr)(n));let{pathname:f="/",search:g="",hash:y="",state:v=null,key:w="default",mask:b}=n,x=l.useMemo(()=>{let e=(0,a.pb)(f,p);return null==e?null:{location:{pathname:e,search:g,hash:y,state:v,key:w,mask:b},navigationType:u}},[p,f,g,y,v,w,u,b]);return((0,r.$e)(null!=x,`<Router basename="${p}"> is not able to match the URL "${f}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),null==x)?null:l.createElement(o._3.Provider,{value:m},l.createElement(o.di.Provider,{children:t,value:x}))}function h({children:e,location:t}){return(0,i.Ye)(function e(t,n=[]){let a=[];return l.Children.forEach(t,(t,o)=>{if(!l.isValidElement(t))return;let i=[...n,o];if(t.type===l.Fragment)return void a.push.apply(a,e(t.props.children,i));(0,r.V1)(t.type===s,`[${"string"==typeof t.type?t.type:t.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);let u=t.props;(0,r.V1)(!u.index||!u.children,"An index route cannot have child routes.");let c={id:u.id||i.join("-"),caseSensitive:u.caseSensitive,element:u.element,Component:u.Component,index:u.index,path:u.path,middleware:u.middleware,loader:u.loader,action:u.action,hydrateFallbackElement:u.hydrateFallbackElement,HydrateFallback:u.HydrateFallback,errorElement:u.errorElement,ErrorBoundary:u.ErrorBoundary,shouldRevalidate:u.shouldRevalidate,handle:u.handle,lazy:u.lazy};u.children&&(c.children=e(u.children,i)),a.push(c)}),a}(e),t)}l.memo(function({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:o}){return(0,i.uG)(e,void 0,{manifest:t,state:r,isStatic:a,onError:o,future:n})}),l.Component,n.d(t,{BV:()=>h,C5:()=>u,Ix:()=>c,qh:()=>s})},4402(e,t,n){var r=n(405);let a=r.createContext(null);a.displayName="DataRouter";let o=r.createContext(null);o.displayName="DataRouterState";let i=r.createContext(!1);function l(){return r.useContext(i)}let u=r.createContext({isTransitioning:!1});u.displayName="ViewTransition",r.createContext(new Map).displayName="Fetchers";let s=r.createContext(null);s.displayName="Await";let c=r.createContext(null);c.displayName="Navigation";let h=r.createContext(null);h.displayName="Location";let d=r.createContext({outlet:null,matches:[],isDataRoute:!1});d.displayName="Route";let p=r.createContext(null);p.displayName="RouteError",n.d(t,{OA:()=>l},{Bu:i,KZ:u,Pl:d,_3:c,ay:o,di:h,hf:a,m4:s,xN:p})},4884(e,t,n){n.d(t,{I9:()=>k,N_:()=>L});var r=n(2658),a=n(9855),o=n(6958),i=n(4402),l=n(6234),u=n(1413);let s="application/x-www-form-urlencoded";function c(e){return"u">typeof HTMLElement&&e instanceof HTMLElement}let h=null,d=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function p(e){return null==e||d.has(e)?e:((0,a.$e)(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${s}"`),null)}function m(e,t){if(!1===e||null==e)throw Error(t)}async function f(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function g(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function y(e,t,n){var r;let a,o;return r=(await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await f(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(g).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}),a=new Set,o=new Set(void 0),r.reduce((e,t)=>{!1;let n=JSON.stringify(function(e){let t={};for(let n of Object.keys(e).sort())t[n]=e[n];return t}(t));return a.has(n)||(a.add(n),e.push({key:n,link:t})),e},[])}function v(e,t,n,r,a,o){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,l=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>i(e,t)||l(e,t)):"data"===o?t.filter((t,o)=>{let u=r.routes[t.route.id];if(!u||!u.hasLoader)return!1;if(i(t,o)||l(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}var w=n(405);function b(e,t){let n="string"==typeof e?new URL(e,"u"<typeof window?"server://singlefetch/":window.location.origin):e;return n.pathname.endsWith("/")?n.pathname=`${n.pathname}_.${t}`:n.pathname=`${n.pathname}.${t}`,n}Symbol("SingleFetchRedirect");let x=w.createContext(void 0);function R(){let e=w.useContext(x);return m(e,"You must render this element inside a <HydratedRouter> element"),e}function E(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function C({page:e,...t}){let n,r=(0,i.OA)(),{nonce:a}=R(),{router:l}=(m(n=w.useContext(i.hf),"You must render this element inside a <DataRouterContext.Provider> element"),n),u=w.useMemo(()=>(0,o.ue)(l.routes,e,l.basename),[l.routes,e,l.basename]);return u?(null==t.nonce&&a&&(t={...t,nonce:a}),r)?w.createElement(S,{page:e,matches:u,...t}):w.createElement($,{page:e,matches:u,...t}):null}function S({page:e,matches:t,...n}){let r=(0,l.zy)(),a=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=b(e,"rsc"),a=!1,o=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?a=!0:o.push(e.route.id);return a&&o.length>0&&n.searchParams.set("_routes",o.join(",")),[n.pathname+n.search]},[e,r,t]);return w.createElement(w.Fragment,null,a.map(e=>w.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})))}function $({page:e,matches:t,...n}){let r,a=(0,l.zy)(),{manifest:o,routeModules:u}=R(),{loaderData:s,matches:c}=(m(r=w.useContext(i.ay),"You must render this element inside a <DataRouterStateContext.Provider> element"),r),h=w.useMemo(()=>v(e,t,c,o,a,"data"),[e,t,c,o,a]),d=w.useMemo(()=>v(e,t,c,o,a,"assets"),[e,t,c,o,a]),p=w.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let n=new Set,r=!1;if(t.forEach(e=>{let t=o.routes[e.route.id];t&&t.hasLoader&&(!h.some(t=>t.route.id===e.route.id)&&e.route.id in s&&u[e.route.id]?.shouldRevalidate||t.hasClientLoader?r=!0:n.add(e.route.id))}),0===n.size)return[];let i=b(e,"data");return r&&n.size>0&&i.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[i.pathname+i.search]},[s,a,o,h,t,e,u]),f=w.useMemo(()=>(function(e,t,{includeHydrateFallback:n}={}){return[...new Set(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1))]})(d,o),[d,o]),g=function(e){let{manifest:t,routeModules:n}=R(),[r,a]=w.useState([]);return w.useEffect(()=>{let r=!1;return y(e,t,n).then(e=>{r||a(e)}),()=>{r=!0}},[e,t,n]),r}(d);return w.createElement(w.Fragment,null,p.map(e=>w.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),f.map(e=>w.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),g.map(({key:e,link:t})=>w.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}x.displayName="FrameworkContext";let P="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{P&&(window.__reactRouterVersion="8.2.0")}catch(e){}function k({basename:e,children:t,useTransitions:n,window:r}){let o=w.useRef(null);null==o.current&&(o.current=(0,a.TM)({window:r,v5Compat:!0}));let i=o.current,[l,s]=w.useState({action:i.action,location:i.location}),c=w.useCallback(e=>{!1===n?s(e):w.startTransition(()=>s(e))},[n]);return w.useLayoutEffect(()=>i.listen(c),[i,c]),w.createElement(u.Ix,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i,useTransitions:n})}let L=w.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:u,reloadDocument:s,replace:c,mask:h,state:d,target:p,to:m,preventScrollReset:f,viewTransition:g,defaultShouldRevalidate:y,...v},b){let{basename:R,navigator:S,useTransitions:$}=w.useContext(i._3),P="string"==typeof m&&r.E6.test(m),k=(0,o.X9)(m,R);m=k.to;let L=(0,l.$P)(m,{relative:u}),N=(0,l.zy)(),O=null;if(h){let e=(0,o.Gh)(h,[],N.mask?N.mask.pathname:"/",!0);"/"!==R&&(e.pathname="/"===e.pathname?R:(0,o.HS)([R,e.pathname])),O=S.createHref(e)}let[A,T,F]=function(e,t){let n=w.useContext(x),[r,a]=w.useState(!1),[o,i]=w.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:s,onMouseLeave:c,onTouchStart:h}=t,d=w.useRef(null);w.useEffect(()=>{if("render"===e&&i(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{i(e.isIntersecting)})},{threshold:.5});return d.current&&e.observe(d.current),()=>{e.disconnect()}}},[e]),w.useEffect(()=>{if(r){let e=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{a(!0)},m=()=>{a(!1),i(!1)};return n?"intent"!==e?[o,d,{}]:[o,d,{onFocus:E(l,p),onBlur:E(u,m),onMouseEnter:E(s,p),onMouseLeave:E(c,m),onTouchStart:E(h,p)}]:[!1,d,{}]}(n,v),M=function(e,{target:t,replace:n,mask:r,state:o,preventScrollReset:i,relative:u,viewTransition:s,defaultShouldRevalidate:c,useTransitions:h}={}){let d=(0,l.Zp)(),p=(0,l.zy)(),m=(0,l.x$)(e,{relative:u});return w.useCallback(l=>{if(0===l.button&&(!t||"_self"===t)&&!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)){l.preventDefault();let t=void 0!==n?n:(0,a.AO)(p)===(0,a.AO)(m),f=()=>d(e,{replace:t,mask:r,state:o,preventScrollReset:i,relative:u,viewTransition:s,defaultShouldRevalidate:c});h?w.startTransition(()=>f()):f()}},[p,d,m,n,r,o,t,e,i,u,s,c,h])}(m,{replace:c,mask:h,state:d,target:p,preventScrollReset:f,relative:u,viewTransition:g,defaultShouldRevalidate:y,useTransitions:$}),_=!(k.isExternal||s),V=w.createElement("a",{...v,...F,href:(_?O:void 0)||k.absoluteURL||L,onClick:_?function(t){e&&e(t),t.defaultPrevented||M(t)}:e,ref:function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(b,T),target:p,"data-discover":P||"render"!==t?void 0:"true"});return A&&!P?w.createElement(w.Fragment,null,V,w.createElement(C,{page:L})):V});L.displayName="Link",w.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:u,to:s,viewTransition:c,children:h,...d},p){let m,f=(0,l.x$)(s,{relative:d.relative}),g=(0,l.zy)(),y=w.useContext(i.ay),{navigator:v,basename:b}=w.useContext(i._3),x=null!=y&&function(e,{relative:t}={}){let n=w.useContext(i.KZ);(0,a.V1)(null!=n,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=N("useViewTransitionState"),u=(0,l.x$)(e,{relative:t});if(!n.isTransitioning)return!1;let s=(0,o.pb)(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=(0,o.pb)(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=(0,o.B6)(u.pathname,c)||null!=(0,o.B6)(u.pathname,s)}(f)&&!0===c,R=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,E=g.pathname,C=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;t||(E=E.toLowerCase(),C=C?C.toLowerCase():null,R=R.toLowerCase()),C&&b&&(C=(0,o.pb)(C,b)||C);let S="/"!==R&&R.endsWith("/")?R.length-1:R.length,$=E===R||!r&&E.startsWith(R)&&"/"===E.charAt(S),P=null!=C&&(C===R||!r&&C.startsWith(R)&&"/"===C.charAt(R.length)),k={isActive:$,isPending:P,isTransitioning:x},O=$?e:void 0;m="function"==typeof n?n(k):[n,$?"active":null,P?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let A="function"==typeof u?u(k):u;return w.createElement(L,{...d,"aria-current":O,className:m,ref:p,style:A,to:s,viewTransition:c},"function"==typeof h?h(k):h)}).displayName="NavLink",w.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:u,replace:d,state:m,method:f="get",action:g,onSubmit:y,relative:v,preventScrollReset:b,viewTransition:x,defaultShouldRevalidate:R,...E},C)=>{let{useTransitions:S}=w.useContext(i._3),$=function(){let{router:e}=N("useSubmit"),{basename:t}=w.useContext(i._3),n=(0,l.Gw)(),r=e.fetch,a=e.navigate;return w.useCallback(async(e,i={})=>{let{action:l,method:u,encType:d,formData:m,body:f}=function(e,t){let n,r,a,i,l;if(c(e)&&"form"===e.tagName.toLowerCase()){let l=e.getAttribute("action");r=l?(0,o.pb)(l,t):null,n=e.getAttribute("method")||"get",a=p(e.getAttribute("enctype"))||s,i=new FormData(e)}else if(c(e)&&"button"===e.tagName.toLowerCase()||c(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let l=e.form;if(null==l)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||l.getAttribute("action");if(r=u?(0,o.pb)(u,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||"get",a=p(e.getAttribute("formenctype"))||p(l.getAttribute("enctype"))||s,i=new FormData(l,e),!function(){if(null===h)try{new FormData(document.createElement("form"),0),h=!1}catch(e){h=!0}return h}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,r)}}else if(c(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else n="get",r=null,a=s,l=e;return i&&"text/plain"===a&&(l=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:l}}(e,t);!1===i.navigate?await r(i.fetcherKey||`__${String(++O)}__`,n,i.action||l,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:m,body:f,formMethod:i.method||u,formEncType:i.encType||d,flushSync:i.flushSync}):await a(i.action||l,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:m,body:f,formMethod:i.method||u,formEncType:i.encType||d,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,a,t,n])}(),P=function(e,{relative:t}={}){let{basename:n}=w.useContext(i._3),r=w.useContext(i.Pl);(0,a.V1)(r,"useFormAction must be used inside a RouteContext");let[u]=r.matches.slice(-1),s={...(0,l.x$)(e||".",{relative:t})},c=(0,l.zy)();if(null==e){s.search=c.search;let e=new URLSearchParams(s.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();s.search=n?`?${n}`:""}}return(!e||"."===e)&&u.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(s.pathname="/"===s.pathname?n:(0,o.HS)([n,s.pathname])),(0,a.AO)(s)}(g,{relative:v}),k="get"===f.toLowerCase()?"get":"post",L="string"==typeof g&&r.E6.test(g);return w.createElement("form",{ref:C,method:k,action:P,onSubmit:u?y:e=>{if(y&&y(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,a=r?.getAttribute("formmethod")||f,o=()=>$(r||e.currentTarget,{fetcherKey:t,method:a,navigate:n,replace:d,state:m,relative:v,preventScrollReset:b,viewTransition:x,defaultShouldRevalidate:R});S&&!1!==n?w.startTransition(()=>o()):o()},...E,"data-discover":L||"render"!==e?void 0:"true"})}).displayName="Form";function N(e){var t;let n=w.useContext(i.hf);return(0,a.V1)(n,(t=e,`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`)),n}let O=0},6234(e,t,n){n.d(t,{$P:()=>s,Ri:()=>c,zy:()=>h,FE:()=>P,Zp:()=>p,cq:()=>$,x$:()=>m,Gw:()=>S,Ye:()=>f,uG:()=>g});var r=n(9855),a=n(6958);Symbol("ResetLoaderData");let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];var i=n(4402);let l="REACT_ROUTER_ERROR";var u=n(405);function s(e,{relative:t}={}){(0,r.V1)(c(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:o}=u.useContext(i._3),{hash:l,pathname:h,search:d}=m(e,{relative:t}),p=h;return"/"!==n&&(p="/"===h?n:(0,a.HS)([n,h])),o.createHref({pathname:p,search:d,hash:l})}function c(){return null!=u.useContext(i.di)}function h(){return(0,r.V1)(c(),"useLocation() may be used only in the context of a <Router> component."),u.useContext(i.di).location}let d="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function p(){let{isDataRoute:e}=u.useContext(i.Pl);return e?function(){let e,{router:t}=(e=u.useContext(i.hf),(0,r.V1)(e,R("useNavigate")),e),n=C("useNavigate"),a=u.useRef(!1);return u.useLayoutEffect(()=>{a.current=!0}),u.useCallback(async(e,o={})=>{(0,r.$e)(a.current,d),a.current&&("number"==typeof e?await t.navigate(e):await t.navigate(e,{fromRouteId:n,...o}))},[t,n])}():function(){(0,r.V1)(c(),"useNavigate() may be used only in the context of a <Router> component.");let e=u.useContext(i.hf),{basename:t,navigator:n}=u.useContext(i._3),{matches:o}=u.useContext(i.Pl),{pathname:l}=h(),s=JSON.stringify((0,a.PD)(o)),p=u.useRef(!1);return u.useLayoutEffect(()=>{p.current=!0}),u.useCallback((o,i={})=>{if((0,r.$e)(p.current,d),!p.current)return;if("number"==typeof o)return void n.go(o);let u=(0,a.Gh)(o,JSON.parse(s),l,"path"===i.relative);null==e&&"/"!==t&&(u.pathname="/"===u.pathname?t:(0,a.HS)([t,u.pathname])),(i.replace?n.replace:n.push)(u,i.state,i)},[t,n,s,l,e])}()}function m(e,{relative:t}={}){let{matches:n}=u.useContext(i.Pl),{pathname:r}=h(),o=JSON.stringify((0,a.PD)(n));return u.useMemo(()=>(0,a.Gh)(e,JSON.parse(o),r,"path"===t),[e,o,r,t])}function f(e,t){return g(e,t)}function g(e,t,n){let o;(0,r.V1)(c(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=u.useContext(i._3),{matches:s}=u.useContext(i.Pl),d=s[s.length-1],p=d?d.params:{};d&&d.pathname;let m=d?d.pathnameBase:"/";d&&d.route;let f=h();if(t){let e="string"==typeof t?(0,r.Rr)(t):t;(0,r.V1)("/"===m||e.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${e.pathname}" was given in the \`location\` prop.`),o=e}else o=f;let g=o.pathname||"/",w=g;if("/"!==m){let e=m.replace(/^\//,"").split("/");w="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):(0,a.ue)(e,{pathname:w}),R=function(e,t=[],n){let o=n?.state;if(null==e){if(!o)return null;if(o.errors)e=o.matches;else{if(0!==t.length||o.initialized||!(o.matches.length>0))return null;e=o.matches}}let i=e,l=o?.errors;if(null!=l){let e=i.findIndex(e=>e.route.id&&l?.[e.route.id]!==void 0);(0,r.V1)(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,c=-1;if(n&&o){s=o.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=o,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){n.isStatic&&(s=!0),i=c>=0?i.slice(0,c+1):[i[0]];break}}}}let h=n?.onError,d=o&&h?(e,t)=>{h(e,{location:o.location,params:o.matches?.[0]?.params??{},pattern:(0,a.gU)(o.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,a)=>{var h,p;let m,f=!1,g=null,w=null;o&&(m=l&&n.route.id?l[n.route.id]:void 0,g=n.route.errorElement||y,s&&(c<0&&0===a?(h="route-fallback",p="No `HydrateFallback` element provided to render during initial hydration",k[h]||(k[h]=!0,(0,r.$e)(!1,p)),f=!0,w=null):c===a&&(f=!0,w=n.route.hydrateFallbackElement||null)));let b=t.concat(i.slice(0,a+1)),R=()=>{let t;return t=m?g:f?w:n.route.Component?u.createElement(n.route.Component,null):n.route.element?n.route.element:e,u.createElement(x,{match:n,routeContext:{outlet:e,matches:b,isDataRoute:null!=o},children:t})};return o&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?u.createElement(v,{location:o.location,revalidation:o.revalidation,component:g,error:m,children:R(),routeContext:{outlet:null,matches:b,isDataRoute:!0},onError:d}):R()},null)}(b&&b.map(e=>Object.assign({},e,{params:Object.assign({},p,e.params),pathname:(0,a.HS)([m,l.encodeLocation?l.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?m:(0,a.HS)([m,l.encodeLocation?l.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),s,n);return t&&R?u.createElement(i.di.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...o},navigationType:"POP"}},R):R}u.createContext(null);let y=u.createElement(function(){let e,t,n,r=(e=u.useContext(i.xN),t=E("useRouteError"),n=C("useRouteError"),void 0!==e?e:t.errors?.[n]),o=(0,a.pX)(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),l=r instanceof Error?r.stack:null;return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},o),l?u.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},l):null,null)},null);var v=class extends u.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=i.Bu;static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){let t=function(e){if(e.startsWith(`${l}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new a.cj(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?u.createElement(i.Pl.Provider,{value:this.props.routeContext},u.createElement(i.xN.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?u.createElement(b,{error:e},t):t}};let w=new WeakMap;function b({children:e,error:t}){let{basename:n}=u.useContext(i._3);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${l}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=w.get(t);if(r)throw r;let i=(0,a.X9)(e.location,n),l=i.absoluteURL||i.to;if(function(e){try{return o.includes(new URL(e).protocol)}catch{return!1}}(l))throw Error("Invalid redirect location");if(a.Bd&&!w.get(t))if(i.isExternal||e.reloadDocument)window.location.href=l;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw w.set(t,n),n}return u.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return e}function x({routeContext:e,match:t,children:n}){let r=u.useContext(i.hf);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),u.createElement(i.Pl.Provider,{value:e},n)}function R(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function E(e){let t=u.useContext(i.ay);return(0,r.V1)(t,R(e)),t}function C(e){let t,n=(t=u.useContext(i.Pl),(0,r.V1)(t,R(e)),t),a=n.matches[n.matches.length-1];return(0,r.V1)(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function S(){return C("useRouteId")}function $(){let e=E("useNavigation");return u.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function P(){let{matches:e,loaderData:t}=E("useMatches");return u.useMemo(()=>e.map(e=>(0,a.wy)(e,t)),[e,t])}let k={}},9855(e,t,n){var r=n(2658);let a="popstate";function o(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function i(e={}){return function(e,t,n,i={}){let{window:u=document.defaultView,v5Compat:d=!1}=i,p=u.history,m="POP",f=null,g=y();function y(){return(p.state||{idx:null}).idx}function v(){m="POP";let e=y(),t=null==e?null:e-g;g=e,f&&f({action:m,location:b.location,delta:t})}function w(e){return function(e,t,n=!1){let a="http://localhost";e&&(a="null"!==e.location.origin?e.location.origin:e.location.href),l(a,"No window.location.(origin|href) available to create URL");let o="string"==typeof t?t:h(t);return o=o.replace(/ $/,"%20"),!n&&r.iA.test(o)&&(o=a+o),new URL(o,a)}(u,e)}null==g&&(g=0,p.replaceState({...p.state,idx:g},""));let b={get action(){return m},get location(){return e(u,p)},listen(e){if(f)throw Error("A history only accepts one active listener");return u.addEventListener(a,v),f=e,()=>{u.removeEventListener(a,v),f=null}},createHref:e=>t(u,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){m="PUSH";let r=o(e)?e:c(b.location,e,t);n&&n(r,e);let a=s(r,g=y()+1),i=b.createHref(r.mask||r);try{p.pushState(a,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;u.location.assign(i)}d&&f&&f({action:m,location:b.location,delta:1})},replace:function(e,t){m="REPLACE";let r=o(e)?e:c(b.location,e,t);n&&n(r,e);let a=s(r,g=y()),i=b.createHref(r.mask||r);p.replaceState(a,"",i),d&&f&&f({action:m,location:b.location,delta:0})},go:e=>p.go(e)};return b}(function(e,t){let{pathname:n="/",search:r="",hash:a=""}=d(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),c("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:h(t))},function(e,t){u("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function l(e,t){if(!1===e||null==e)throw Error(t)}function u(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function s(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function c(e,t,n=null,r,a){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?d(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),mask:a}}function h({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function d(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}n.d(t,{$e:()=>u,AO:()=>h,Rr:()=>d,TM:()=>i,V1:()=>l})},2658(e,t,n){function r(e,t){return t+e.replace(/\\/g,"/")}n.d(t,{lS:()=>r},{E6:/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,iA:/^[\\/]{2}/})},6958(e,t,n){var r=n(2658),a=n(9855);function o(e,t,n="/"){return function(e,t,n,r){let o,i=p(("string"==typeof t?(0,a.Rr)(t):t).pathname||"/",n);if(null==i)return null;let m=(void 0)??((o=function e(t,n=[],r=[],o="",i=!1){let c=(t,c,h=i,p)=>{var m,f;let g,y,v={relativePath:void 0===p?t.path||"":p,caseSensitive:!0===t.caseSensitive,childrenIndex:c,route:t};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(o)&&h)return;(0,a.V1)(v.relativePath.startsWith(o),`Absolute route path "${v.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(o.length)}let b=w([o,v.relativePath]),x=r.concat(v);t.children&&t.children.length>0&&((0,a.V1)(!0!==t.index,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),e(t.children,n,x,b,h)),(null!=t.path||t.index)&&n.push({path:b,score:(m=b,f=t.index,y=(g=m.split("/")).length,g.some(s)&&(y+=-2),f&&(y+=2),g.filter(e=>!s(e)).reduce((e,t)=>e+(l.test(t)?3:u.test(t)?3.5:""===t?1:10),y)),routesMeta:x.map((e,t)=>{let[n,r]=d(e.relativePath,e.caseSensitive,t===x.length-1);return{...e,matcher:n,compiledParams:r}})})};return t.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[r,...a]=n,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),u=[];return u.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&u.push(...l),u.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))c(e,t,!0,n);else c(e,t)}),n}(e)).sort((e,t)=>{var n,r;return e.score!==t.score?t.score-e.score:(n=e.routesMeta.map(e=>e.childrenIndex),r=t.routesMeta.map(e=>e.childrenIndex),n.length===r.length&&n.slice(0,-1).every((e,t)=>e===r[t])?n[n.length-1]-r[r.length-1]:0)}),o),f=null,g=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return(0,a.$e)(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}(i);for(let e=0;null==f&&e<m.length;++e)f=function(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",i=[];for(let e=0;e<r.length;++e){let l=r[e],u=e===r.length-1,s="/"===o?t:t.slice(o.length)||"/",d={path:l.relativePath,caseSensitive:l.caseSensitive,end:u},p=l.matcher&&l.compiledParams?h(d,s,l.matcher,l.compiledParams):c(d,s),m=l.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=c({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},s)),!p)return null;Object.assign(a,p.params),i.push({params:a,pathname:w([o,p.pathname]),pathnameBase:x(w([o,p.pathnameBase])),route:m}),"/"!==p.pathnameBase&&(o=w([o,p.pathnameBase]))}return i}(m[e],g,r);return f}(e,t,n,!1)}function i(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,loaderData:t[n.id],handle:n.handle}}n(405);let l=/^:[\w-]+$/,u=/^:[\w-]+/,s=e=>"*"===e;function c(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=d(e.path,e.caseSensitive,e.end);return h(e,t,n,r)}function h(e,t,n,r){let a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}let a=l[r];return n&&!a?e[t]=void 0:e[t]=(a||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function d(e,t=!1,n=!0){(0,a.$e)("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,a,o)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=o.charAt(a+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,"(?:/$1)?");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function p(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function m(e,t){let n=b(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function f(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function g(e){let t=e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function y(e,t,n,r=!1){let o,i;"string"==typeof e?o=(0,a.Rr)(e):(o={...e},(0,a.V1)(!o.pathname||!o.pathname.includes("?"),f("?","pathname","search",o)),(0,a.V1)(!o.pathname||!o.pathname.includes("#"),f("#","pathname","hash",o)),(0,a.V1)(!o.search||!o.search.includes("#"),f("#","search","hash",o)));let l=""===e||""===o.pathname,u=l?"/":o.pathname;if(null==u)i=n;else{let e=t.length-1;if(!r&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?(0,a.Rr)(e):e;return{pathname:n?(n=v(n)).startsWith("/")?m(n.substring(1),"/"):m(n,t):t,search:R(r),hash:E(o)}}(o,i),c=u&&"/"!==u&&u.endsWith("/"),h=(l||"."===u)&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||h)&&(s.pathname+="/"),s}let v=e=>e.replace(/[\\/]{2,}/g,"/"),w=e=>v(e.join("/")),b=e=>e.replace(/\/+$/,""),x=e=>b(e).replace(/^\/*/,"/"),R=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",E=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var C=class{status;statusText;data;error;internal;constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function S(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function $(e){return w(e.map(e=>e.route.path).filter(Boolean))||"/"}let P="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function k(e,t){let n=e;if("string"!=typeof n||!r.E6.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let o=n,i=!1;if(P)try{let e=new URL(window.location.href),a=new URL(r.iA.test(n)?(0,r.lS)(n,e.protocol):n),o=p(a.pathname,t);a.origin===e.origin&&null!=o?n=o+a.search+a.hash:i=!0}catch(e){(0,a.$e)(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:i,to:n}}n.d(t,{B6:()=>c,Gh:()=>y,PD:()=>g,X9:()=>k,cj:()=>C,gU:()=>$,pX:()=>S,pb:()=>p,ue:()=>o,wy:()=>i},{Bd:P,HS:w})}}]);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhzh/foundry",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.3-beta.
|
|
4
|
+
"version": "0.0.3-beta.2",
|
|
5
5
|
"devEngines": {
|
|
6
6
|
"packageManager": {
|
|
7
7
|
"name": "pnpm",
|
|
@@ -58,9 +58,13 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@hono/node-server": "^2.0.8",
|
|
61
|
+
"@hono/zod-validator": "^0.9.0",
|
|
61
62
|
"cac": "^7.0.0",
|
|
63
|
+
"cli-table3": "^0.6.5",
|
|
64
|
+
"consola": "^3.4.2",
|
|
62
65
|
"hono": "^4.12.27",
|
|
63
|
-
"terminal-link": "^5.0.0"
|
|
66
|
+
"terminal-link": "^5.0.0",
|
|
67
|
+
"zod": "^4.4.3"
|
|
64
68
|
},
|
|
65
69
|
"scripts": {
|
|
66
70
|
"build": "pnpm run build:cli && pnpm run build:web",
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.rspackChunkweb=self.rspackChunkweb||[]).push([[488],{306(e,t,r){r.d(t,{$:()=>eF});var l=r(405),a=r(472),o=r(101),n=r(929);let i={...n._R,...n.gN,...n.Kn,...n.BM,...n.tj,...n.Hc,...n.D5,...n._0,...n.e1,...n.jx,...n.QE,...n.Np,"--color-syntax-keyword":"var(--color-text-accent)","--color-syntax-string":"var(--color-text-green)","--color-syntax-comment":"var(--color-text-secondary)","--color-syntax-number":"var(--color-text-orange)","--color-syntax-function":"var(--color-text-blue)","--color-syntax-type":"var(--color-text-purple)","--color-syntax-variable":"var(--color-text-primary)","--color-syntax-operator":"var(--color-text-cyan)","--color-syntax-constant":"var(--color-text-orange)","--color-syntax-tag":"var(--color-text-red)","--color-syntax-attribute":"var(--color-text-teal)","--color-syntax-property":"var(--color-text-cyan)","--color-syntax-punctuation":"var(--color-text-disabled)","--color-syntax-background":"var(--color-background-muted)","--color-data-categorical-blue":"light-dark(#0171E3, #0171E3)","--color-data-categorical-orange":"light-dark(#EB6E00, #EB6E00)","--color-data-categorical-purple":"light-dark(#6B1EFD, #6B1EFD)","--color-data-categorical-green":"light-dark(#0B991F, #0B991F)","--color-data-categorical-pink":"light-dark(#F351C0, #F351C0)","--color-data-categorical-cyan":"light-dark(#0171A4, #0171A4)","--color-data-categorical-red":"light-dark(#F5394F, #F5394F)","--color-data-categorical-teal":"light-dark(#08A3A3, #08A3A3)","--color-data-categorical-brown":"light-dark(#965E03, #965E03)","--color-data-categorical-indigo":"light-dark(#6F8AFF, #6F8AFF)","--color-data-neutral":"light-dark(#8494A3, #8C939B)","--color-data-blue-5":"light-dark(#02165E, #02165E)","--color-data-blue-4":"light-dark(#004CBC, #004CBC)","--color-data-blue-3":"light-dark(#2694FE, #2694FE)","--color-data-blue-2":"light-dark(#78BEFF, #78BEFF)","--color-data-blue-1":"light-dark(#DBECFF, #DBECFF)","--color-data-shamrock-5":"light-dark(#0B603D, #0B603D)","--color-data-shamrock-4":"light-dark(#138546, #138546)","--color-data-shamrock-3":"light-dark(#24BB5E, #24BB5E)","--color-data-shamrock-2":"light-dark(#8EF7AA, #8EF7AA)","--color-data-shamrock-1":"light-dark(#D6FEE4, #D6FEE4)","--color-data-orange-5":"light-dark(#A13F04, #A13F04)","--color-data-orange-4":"light-dark(#D66100, #D66100)","--color-data-orange-3":"light-dark(#FD9537, #FD9537)","--color-data-orange-2":"light-dark(#FDB876, #FDB876)","--color-data-orange-1":"light-dark(#FFE6CF, #FFE6CF)","--color-data-pink-5":"light-dark(#8E1073, #8E1073)","--color-data-pink-4":"light-dark(#D123A1, #D123A1)","--color-data-pink-3":"light-dark(#F989D3, #F989D3)","--color-data-pink-2":"light-dark(#FEADE3, #FEADE3)","--color-data-pink-1":"light-dark(#FCE3F4, #FCE3F4)","--color-data-purple-5":"light-dark(#3E0697, #3E0697)","--color-data-purple-4":"light-dark(#6B1EFD, #6B1EFD)","--color-data-purple-3":"light-dark(#9081FF, #9081FF)","--color-data-purple-2":"light-dark(#B3B0FE, #B3B0FE)","--color-data-purple-1":"light-dark(#E8E8FB, #E8E8FB)","--color-data-red-5":"light-dark(#9D0519, #9D0519)","--color-data-red-4":"light-dark(#D31130, #D31130)","--color-data-red-3":"light-dark(#FB7D87, #FB7D87)","--color-data-red-2":"light-dark(#FFB2B8, #FFB2B8)","--color-data-red-1":"light-dark(#FEE4E6, #FEE4E6)","--color-data-teal-5":"light-dark(#08767D, #08767D)","--color-data-teal-4":"light-dark(#0C9293, #0C9293)","--color-data-teal-3":"light-dark(#0DB7AF, #0DB7AF)","--color-data-teal-2":"light-dark(#6CE6D8, #6CE6D8)","--color-data-teal-1":"light-dark(#D7FCF8, #D7FCF8)","--color-data-yellow-5":"light-dark(#8A5001, #8A5001)","--color-data-yellow-4":"light-dark(#D69804, #D69804)","--color-data-yellow-3":"light-dark(#FBCE03, #FBCE03)","--color-data-yellow-2":"light-dark(#FCEC85, #FCEC85)","--color-data-yellow-1":"light-dark(#FDF6BA, #FDF6BA)","--color-data-gray-5":"light-dark(#25363F, #333338)","--color-data-gray-4":"light-dark(#5D6C7B, #666A72)","--color-data-gray-3":"light-dark(#AFB9C4, #B2B8BE)","--color-data-gray-2":"light-dark(#CCD3DB, #D0D3D6)","--color-data-gray-1":"light-dark(#F1F4F7, #F2F4F6)"},s={transparent:{r:0,g:0,b:0,a:0},black:{r:0,g:0,b:0,a:1},white:{r:255,g:255,b:255,a:1}},c=(e,t,r)=>Math.max(t,Math.min(r,e));function d(e){let t=e.trim(),r=s[t.toLowerCase()];if(r)return{...r};if(t.startsWith("#")){if("string"!=typeof t)return null;let e=t.trim().replace(/^#/,""),r=3===e.length||4===e.length?e.split("").map(e=>e+e).join(""):e;return(6===r.length||8===r.length)&&/^[0-9a-fA-F]+$/.test(r)?{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a:8===r.length?parseInt(r.slice(6,8),16)/255:1}:null}return/^rgba?\(/i.test(t)?function(e){let t=e.indexOf("(");if(-1===t||!e.trim().endsWith(")"))return null;let r=e.slice(t+1,e.lastIndexOf(")")).replace(/\//g," ").split(/[\s,]+/).map(e=>e.trim()).filter(Boolean);if(r.length<3)return null;let l=e=>c(e.endsWith("%")?parseFloat(e)/100*255:parseFloat(e),0,255),a=l(r[0]),o=l(r[1]),n=l(r[2]);if([a,o,n].some(Number.isNaN))return null;let i=1;if(r.length>=4){let e=r[3];if(Number.isNaN(i=e.endsWith("%")?parseFloat(e)/100:parseFloat(e)))return null;i=c(i,0,1)}return{r:a,g:o,b:n,a:i}}(t):null}function u(e){let t=0,r=null,l=!1;for(let a=0;a<e.length;a++){let o=e[a];if(null!==r){l?l=!1:"\\"===o?l=!0:o===r&&(r=null);continue}if('"'===o||"'"===o){r=o;continue}if("("===o){t++;continue}if(")"===o){t=Math.max(0,t-1);continue}if(","===o&&0===t)return[e.slice(0,a).trim(),e.slice(a+1).trim()]}return null}function x(e,t){let r,l;if(Array.isArray(e))return"dark"===t?e[1]:e[0];let a=(r=e.trim(),l="light-dark(",r.startsWith(l)&&r.endsWith(")")?u(r.slice(l.length,-1)):null);return null!==a?"dark"===t?a[1]:a[0]:e}function k(e,t){let r=0;for(let l=t;l<e.length;l++){let t=e[l];if("("===t)r++;else if(")"===t&&0==--r)return l}return -1}function g(e){let t=e.trim(),r=t.match(/\s+([\d.]+)%$/);return r?{color:t.slice(0,r.index).trim(),percentage:parseFloat(r[1])}:{color:t,percentage:null}}Object.fromEntries(Object.keys(i).map(e=>[e,`var(${e})`]));function h(e){let t={};for(let r of Object.keys(e))!function e(t,r,l,a){if(t in l)return l[t];let o=r[t];if(void 0===o)return"";let n=o.includes("var(")||o.includes("color-mix(")?function e(t){let r=t.indexOf("color-mix(");if(-1===r)return t;let l=r+9,a=k(t,l);if(-1===a)return t;let o=e(t.slice(l+1,a)),n=function(e){let t,r,l=e.match(/^in\s+([\w-]+)\s*,\s*(.+)$/s);if(!l)return null;let[,a,o]=l;if("srgb"!==a.toLowerCase())return null;let n=u(o);if(null===n)return null;let i=g(n[0]),s=g(n[1]);if(null===i||null===s)return null;let x=d(i.color),k=d(s.color);if(null===x||null===k)return null;null!==i.percentage&&null!==s.percentage?(t=i.percentage,r=s.percentage):null!==i.percentage?r=100-(t=i.percentage):null!==s.percentage?t=100-(r=s.percentage):(t=50,r=50);let h=t+r;if(h<=0)return null;let p=t/h,f=r/h,m=p*x.a+f*k.a,b=(e,t)=>p*e*x.a+f*t*k.a,y=b(x.r,k.r),F=b(x.g,k.g),v=b(x.b,k.b);return function({r:e,g:t,b:r,a:l}){if(l>=1){let l;return l=e=>c(Math.round(e),0,255).toString(16).padStart(2,"0").toUpperCase(),`#${l(e)}${l(t)}${l(r)}`}let a=e=>c(Math.round(e),0,255);return`rgba(${a(e)}, ${a(t)}, ${a(r)}, ${parseFloat(l.toFixed(4))})`}({...0===m?{r:0,g:0,b:0}:{r:y/m,g:F/m,b:v/m},a:m*(h<100?h/100:1)})}(o)??`color-mix(${o})`;return t.slice(0,r)+n+e(t.slice(a+1))}(function t(r,l,a,o){let n,i=r.indexOf("var(");if(-1===i)return r;let s=i+3,c=k(r,s);if(-1===c)return r;let d=r.slice(s+1,c),x=u(d),g=(x?x[0]:d).trim(),h=x?x[1]:null;o.has(g)?n=r.slice(i,c+1):g in l?(o.add(g),n=e(g,l,a,o),o.delete(g)):n=null!==h?t(h.trim(),l,a,o):r.slice(i,c+1);let p=t(r.slice(c+1),l,a,o);return r.slice(0,i)+n+p}(o,r,l,a)):o;return l[t]=n,n}(r,e,t,new Set);return t}let p=(0,l.createContext)(null);function f(){if("u"<typeof document)return null;let e=document.documentElement.getAttribute("data-theme");return"light"===e||"dark"===e?e:null}function m(){return null}function b(){return null}p.displayName="ThemeContext";let y=new Set,F=null;function v(){for(let e of y)e()}function $(e){return y.add(e),1===y.size&&"u">typeof MutationObserver&&(F=new MutationObserver(v)).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>{y.delete(e),0===y.size&&F&&(F.disconnect(),F=null)}}function w(){return()=>{}}let E={primary:{kMwMTN:"x1tgivj0",$$css:!0},secondary:{kMwMTN:"xv1l7n4",$$css:!0},disabled:{kMwMTN:"xnbbluu",$$css:!0},placeholder:{kMwMTN:"xv1l7n4",$$css:!0},accent:{kMwMTN:"xjse4m1",$$css:!0},inherit:{kMwMTN:"x1heor9g",$$css:!0}},B={normal:{k63SB2:"x1sodnla",$$css:!0},medium:{k63SB2:"x1e4wzip",$$css:!0},semibold:{k63SB2:"x2mo6ok",$$css:!0},bold:{k63SB2:"x1lvx875",$$css:!0}},j={body:{k63SB2:"xxovm9e",$$css:!0},large:{k63SB2:"x149oux8",$$css:!0},label:{k63SB2:"xmhvcl5",$$css:!0},code:{k63SB2:"xx3eeay",$$css:!0},supporting:{k63SB2:"xv8on6e",$$css:!0},"display-1":{k63SB2:"x1txul5o",$$css:!0},"display-2":{k63SB2:"x1y36c3f",$$css:!0},"display-3":{k63SB2:"x1on40hk",$$css:!0},inherit:{k63SB2:"x1pd3egz",$$css:!0}},z={body:{kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0},large:{kGuDYH:"x18juvz8",kLWn49:"xf74fhv",$$css:!0},label:{kGuDYH:"xcr08ib",kLWn49:"x1kq96og",$$css:!0},code:{kGuDYH:"xp03k98",kLWn49:"x17iicif",kMv6JI:"x9m5x89",$$css:!0},supporting:{kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",$$css:!0},"display-1":{kGuDYH:"xsub3ws",kLWn49:"x112ttwr",$$css:!0},"display-2":{kGuDYH:"x1yego12",kLWn49:"xh0iwvy",$$css:!0},"display-3":{kGuDYH:"xlgnzhf",kLWn49:"x1ujwuaq",$$css:!0},inherit:{kGuDYH:"x1qlqyl8",kLWn49:"x15bjb6t",$$css:!0}},D={"4xs":{kGuDYH:"xxc45ev",$$css:!0},"3xs":{kGuDYH:"x10p7juq",$$css:!0},"2xs":{kGuDYH:"x16a80zy",$$css:!0},xsm:{kGuDYH:"x51wmvv",$$css:!0},sm:{kGuDYH:"x1eqnyfr",$$css:!0},base:{kGuDYH:"x1j29vfg",$$css:!0},lg:{kGuDYH:"xc7cgfe",$$css:!0},xl:{kGuDYH:"x1wqms48",$$css:!0},"2xl":{kGuDYH:"xhs0kqb",$$css:!0},"3xl":{kGuDYH:"x10srzze",$$css:!0},"4xl":{kGuDYH:"xqcvi3d",$$css:!0}},C={inline:{k1xSpc:"xt0psk2",$$css:!0},block:{k1xSpc:"x1lliihq",$$css:!0}},A={kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",k1xSpc:"x1lliihq",$$css:!0},N={kVQacm:"xb3r6kr",k1xSpc:"x104kibb",kgKLqz:"x1ua5tub",$$css:!0},M={"break-word":{kTgw9:"x1lldw8n",kHjlTd:"x1mzt3pk",$$css:!0},"break-all":{kTgw9:"x1yn0g08",$$css:!0}},q={wrap:{kN2L0X:"xk4td0m",$$css:!0},nowrap:{kN2L0X:"xebhuq6",$$css:!0},balance:{kN2L0X:"x1w2vvpw",$$css:!0},pretty:{kN2L0X:"x1fzhlzt",$$css:!0}},S={kxwWH2:"x1b2iylo",kzeHkT:"xwgcxoh",k1xSpc:"x1lliihq",$$css:!0},W={kybGjl:"xmqliwb",$$css:!0},L={kcqcaj:"xss6m8b",$$css:!0},T={start:{k9WMMc:"x1yc453h",$$css:!0},center:{k9WMMc:"x2b8uid",$$css:!0},end:{k9WMMc:"xp4054r",$$css:!0}},G={ks0D6T:"xw5ewwj",kTgw9:"x13faqbe",$$css:!0},H=null,I=new Map;function R(...e){return t=>{let r=[];for(let l of e)if("function"==typeof l){let e=l(t);"function"==typeof e&&r.push(e)}else null!=l&&(l.current=t);if(r.length>0)return()=>{for(let e of r)e()}}}function O(e,t){let r={...e,...t},l=[e.className,t.className].filter(Boolean).join(" ");l?r.className=l:delete r.className;let a=t.style&&e.style?{...e.style,...t.style}:t.style||e.style;return a?r.style=a:delete r.style,r}function K(e,t,r,l){if("string"==typeof e){let a=t??{className:""},o=a.className?`${e} ${a.className}`:e;r&&(o=`${o} ${r}`);let n=l&&a.style?{...a.style,...l}:l||a.style;return{...a,className:o,style:n}}let a=O(e,"string"==typeof t?{className:t}:t??{});return"string"==typeof r?a=O(a,{className:r}):null!=r&&(a=O(a,{style:r})),null!=l&&(a=O(a,{style:l})),a}var Y=r(702),V=r(793);let P=(0,l.lazy)(async()=>r.e(973).then(r.bind(r,756)).then(e=>({default:e.Tooltip}))),X={body:"primary",large:"primary",label:"primary",supporting:"secondary",code:"primary","display-1":"primary","display-2":"primary","display-3":"primary",inherit:"inherit"};function _({type:e="body",size:t,color:r,weight:o,display:n="inline",maxLines:i=0,hasTruncateTooltip:s=!0,wordBreak:c,textWrap:d,justify:u="start",hasCapsize:x=!1,hasStrikethrough:k=!1,hasTabularNumbers:g=!1,xstyle:h,className:p,style:f,as:m="span",children:b,ref:y,...F}){let v=r??X[e]??"primary",$=e in z?e:"body",w=c??(1===i?"break-all":"break-word"),O=i>0||x?"block":n,Z=function(e){let{maxLines:t}=e,[r,a]=(0,l.useState)(!1),[o,n]=(0,l.useState)(""),i=(0,l.useRef)(null),s=(0,l.useCallback)(e=>{if(0===t)return void a(!1);if(n(e.textContent??""),1===t)a(e.scrollWidth>e.offsetWidth);else{let t=e.scrollHeight;try{let r=document.createRange();r.selectNodeContents(e),t=r.getBoundingClientRect().height,r.detach()}catch{}a(t>e.offsetHeight)}},[t]);return{ref:(0,l.useCallback)(e=>{var r,l;(i.current&&(r=i.current,I.delete(r),H&&(H.unobserve(r),0===I.size&&(H.disconnect(),H=null))),i.current=e,e&&t>0)?"u">typeof ResizeObserver?(l=()=>{s(e)},I.set(e,l),(!H&&(H=new ResizeObserver(e=>{for(let t of e){let e=I.get(t.target);e&&e(t)}})),H).observe(e),l()):s(e):(a(!1),n(""))},[t,s]),isTruncated:r,fullText:o}}({maxLines:i}),Q=i>0&&!1!==s&&Z.isTruncated,U=(0,l.useRef)(null),J=i>1?{WebkitLineClamp:i}:void 0;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(m,{ref:R(y,Z.ref,U),...K((0,Y.G)("text",{type:e,size:t,color:v}),a.xk(E[v],z[$],t&&D[t],j[$],o&&B[o],1===i?A:i>1?N:C[O],i>0&&M[w],d&&q[d],"start"!==u&&T[u],x&&S,k&&W,g&&L,h),p,{...f,...J}),title:Q?Z.fullText:void 0,...F,children:b}),Q&&(0,V.jsx)(l.Suspense,{fallback:null,children:(0,V.jsx)(P,{anchorRef:U,content:(0,V.jsx)("span",{...a.xk(G),children:Z.fullText}),placement:"string"==typeof s?s:"above"})})]})}_.displayName="Text";let Z={sm:{diameter:10,border:2},md:{diameter:14,border:3},lg:{diameter:18,border:3},xl:{diameter:28,border:4}},Q={k1xSpc:"x3nfvp2",kXwgrk:"xdt5ytf",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj",$$css:!0},U={k1xSpc:"xwz0xwf",kgQiWS:"x1ku5rj1",kVQacm:"xb3r6kr",kXLuUW:"xxymvpz",$$css:!0};function J({size:e="md",shade:t="default",label:r,xstyle:o,className:n,style:s,"aria-label":c,"data-testid":d,ref:u,...k}){var g;let y,F,v,E,B,j,z,D=(0,l.useRef)(null),{tokens:C}=(g=null!=(y=(0,l.use)(p)),F=(0,l.useSyncExternalStore)(g?w:$,g?b:f,m),v=function(e,t=!1){let r=(0,l.useCallback)(t=>{let r=window.matchMedia(e);return r.addEventListener("change",t),()=>r.removeEventListener("change",t)},[e]),a=(0,l.useCallback)(()=>window.matchMedia(e).matches,[e]),o=(0,l.useCallback)(()=>t,[t]);return(0,l.useSyncExternalStore)(r,a,o)}("(prefers-color-scheme: dark)"),E=y?.mode??F??"system",B=y?.theme??null,j="system"===E?v?"dark":"light":E,z=(0,l.useMemo)(()=>(function(e,t){let{mode:r}=t,l={};for(let[e,t]of Object.entries(i))l[e]=x(t,r);if(null==e)return h(l);for(let[t,a]of Object.entries(e.tokens))l[t]=x(a,r);if(e.__inputTokens)for(let[t,a]of Object.entries(e.__inputTokens))void 0!==a&&(l[t]=x(a,r));return h(l)})(B,{mode:j}),[B,j]),{name:B?.name??"default",mode:j,token:e=>z[e]??"",tokens:z});(0,l.useEffect)(()=>{let r=D.current;if(null==r)return;let l=r.getContext("2d");if(!l)return;let{border:a,diameter:o}=Z[e],n=window.devicePixelRatio||1,i="inherit"===t?getComputedStyle(r).color:null,s="inherit"===t?i:"onMedia"===t?C["--color-on-dark"]:"subtle"===t?C["--color-text-secondary"]:C["--color-accent"],c="inherit"===t?i:"onMedia"===t?`${C["--color-on-dark"]}4D`:C["--color-track"],d=o+2*a,u=Math.round(d*n),x=u+u%2,k=x/d,g=o/2*k;r.height=r.width=x,r.style.width=r.style.height=d+"px",l.lineCap="round",l.lineWidth=a*k;let h=x/2;l.beginPath(),l.arc(h,h,g,0,2*Math.PI),l.strokeStyle=c,"inherit"===t&&(l.globalAlpha=.3),l.stroke(),l.globalAlpha=1,l.beginPath(),l.arc(h,h,g,1.5*Math.PI,.25*Math.PI),l.strokeStyle=s,l.stroke()},[t,e,C]);let{border:A,diameter:N}=Z[e],M=N+2*A,q=null!=r,S=(0,V.jsx)("span",{ref:q?void 0:u,role:"status","aria-label":c??("string"==typeof r?r:void 0)??"Loading","data-testid":q?void 0:d,...q?{}:k,...K(q?"":(0,Y.G)("spinner",{size:e,shade:t}),a.xk(U,!q&&o),q?void 0:n,{...q?{}:s,width:M,height:M}),children:(0,V.jsx)("canvas",{ref:D,className:"xlp1x4z x1lliihq x1so62im x14qxm4i xnh0sag xa4qsjk x1ka1v4i x1esw782"})});return q?(0,V.jsxs)("div",{ref:u,"data-testid":d,...k,...K((0,Y.G)("spinner",{size:e,shade:t}),a.xk(Q,o),n,s),children:[S,"string"==typeof r?(0,V.jsx)(_,{type:"body",weight:"bold",children:r}):r]}):S}function ee({children:e,as:t="span",ref:r,...a}){return(0,l.createElement)(t,{ref:r,...a,className:"x10l6tqk x1i1rx1s xjm9jq1 xkdpibf x1717udv xb3r6kr xzpqnlu xuxw1ft xng3xce x13vifvy x1o0tod x47corl x87ps6o"},e)}J.displayName="Spinner",ee.displayName="VisuallyHidden";let et=(0,l.createContext)(null);et.displayName="SizeContext",et.Provider;let er=(0,l.createContext)(null);er.displayName="ButtonGroupContext";let el=(0,l.createContext)(null);el.displayName="LinkContext";let ea={kVAEAm:"x1n2onr6",k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kOIVth:"x1txdalj",k8WAf4:"xce4md1",kg3NbH:"xrrkdod",kMzoRj:"xc342km",ksu8eU:"xng3xce",kaIpWk:"x1jxw6zd",kMv6JI:"xjb2p0i",kGuDYH:"xcr08ib",kLWn49:"x1kq96og",k63SB2:"x1e4wzip",khDVqt:"xuxw1ft",kkrTdU:"x1ypdohk",k1ekBW:"xrafxwg",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",$$css:!0},eo={k3aq6I:"x3oybdh xk4oym4",$$css:!0},en={kkrTdU:"x1h6gzvc",kSiTet:"xbyyjgo",kKwaWg:"x18o3ruo",k3aq6I:"x1c071of x1pdlv7q",$$css:!0},ei={kKwaWg:"x18o3ruo x8o3jvd xuqm82a",$$css:!0},es={"--button-icon-only-aspect":"x1v15ycx",kOBAk4:"xioom0i",kg3NbH:"xnjsko4",k8WAf4:"xt970qd",$$css:!0},ec={k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",$$css:!0},ed={k1xSpc:"xjp7ctv",$$css:!0},eu={kybGjl:"x1hl2dhg",$$css:!0},ex={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}},ek={sm:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",kGuDYH:"x1j61zf2",$$css:!0},md:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",kGuDYH:"x1j61zf2",$$css:!0},lg:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",kGuDYH:"xwsyq91",$$css:!0}},eg={primary:{kWkggS:"x1ewilqj",kMwMTN:"x17wrial",kKwaWg:"x1ilzqfv xq8i9tn",kI3sdo:"x17nn4n9","--button-focus-offset":"xkzo27j",kInvED:"x1wfwxd8 x13aywxo",$$css:!0},secondary:{kWkggS:"x17x4s8c",kMwMTN:"x1tgivj0",kKwaWg:"x1ilzqfv xq8i9tn",kI3sdo:"x17nn4n9","--button-focus-offset":"xkzo27j",kInvED:"x1wfwxd8 x13aywxo",$$css:!0},ghost:{kWkggS:"xjbqb8w",kMwMTN:"x1tgivj0",kKwaWg:"x1ilzqfv xq8i9tn",kI3sdo:"x17nn4n9","--button-focus-offset":"xkzo27j",kInvED:"x1wfwxd8 x13aywxo",$$css:!0},destructive:{kWkggS:"x1pjz0fi",kMwMTN:"x1m024r3",kKwaWg:"x1ilzqfv xq8i9tn",kI3sdo:"x1p73he7","--button-focus-offset":"xkzo27j",kInvED:"x1wfwxd8 x13aywxo",$$css:!0}};n.lR["--duration-medium-min"];let eh={kMwMTN:"x19co3pv",$$css:!0},ep={kKVMdj:"x1ffowhz",k44tkh:"xjlvqhv",kWV6AL:"x10e4vud",kKxzle:"x17yabm6 x14q22ui",$$css:!0},ef={krdFHd:"x15mokao x8eehn2",kVL7Gh:"xbiv7yw x1xrp5p4",kfmiAY:"x1ga7v0g xbfdvlp",kT0f0o:"x16uus16 xajhecq",k2ei4v:"xgbv0en x1pjv70x",kVhnKS:"x1t7ytsu xyf0ibl",kGJrpR:"x1j92z86",$$css:!0},em={krdFHd:"x15mokao x8eehn2",kfmiAY:"x1ga7v0g x2qxyot",kVL7Gh:"xbiv7yw x12tyzlf",kT0f0o:"x16uus16 xajhecq",kEafiO:"x11xkdxz x1g31smg",kPef9Z:"x13fuv20 x1d9v4yf",kLZC3w:"x1pc3f07",$$css:!0},eb={kGJrpR:"xrvmtm5",$$css:!0},ey={kLZC3w:"x11npmm7",$$css:!0};function eF({label:e,variant:t="secondary",size:r,type:n="button",isDisabled:i=!1,isLoading:s=!1,isInterruptible:c=!1,clickAction:d,icon:u,isIconOnly:x=!1,width:k,children:g,endContent:h,tooltip:p,href:f,as:m,target:b,rel:y,xstyle:F,className:v,style:$,ref:w,...E}){let B,j,z,D=function(e,t="md"){let r=(0,l.use)(et);return e??r??t}(r,"md"),C=(0,l.use)(er),[A,N]=(0,l.useTransition)(),M=(0,l.useRef)(!1),q=s||A,S=A||c,W=C?.isDisabled??!1,L=i||W||q&&!c,T=(j=(0,l.use)(el),z=m??j?.component??"a",(0,l.useMemo)(()=>{if("a"===z)return"a";function e({href:t,ref:r,...a}){return(0,l.createElement)(z,{ref:r,href:t,to:t,...a})}return e.displayName=`LinkWithTo(${"string"==typeof z?z:z.displayName||z.name||"Component"})`,e},[z])),G=null!=f&&!L,H=null!=p&&L,I=(0,o.f)({placement:"above",isEnabled:null!=p}),O=e=>{L||M.current&&!c?e.preventDefault():(E.onClick?.(e),d&&!e.defaultPrevented&&(M.current=!0,N(async()=>{try{await d(e)}finally{M.current=!1}})))},P=H?e=>{"Enter"===e.key||" "===e.key?e.preventDefault():E.onKeyDown?.(e)}:void 0,X="ghost"===t?{"data-astryx-edge-comp":""}:null,_=a.xk(ea,ex[D],eg[t],x&&es,L&&en,H&&ei,G&&eu,!C&&eo,C&&("horizontal"===C.orientation?ef:em),C&&("primary"===t||"destructive"===t)&&("horizontal"===C.orientation?eb:ey),null!=k&&(e=>[{kzqmXN:null!=e?"x5lhr3w":e,$$css:!0},{"--x-width":"number"==typeof e?e+"px":null!=e?e:void 0}])(k),F),Z=K((0,Y.G)("button",{variant:t,size:D}),_,v,$),Q=(0,V.jsxs)(V.Fragment,{children:[q&&(0,V.jsx)("span",{...{0:{className:"x10l6tqk x13vifvy xu96u03 x3m8u43 x1ey2m1c xrvj5dj x1ku5rj1"},1:{className:"x10l6tqk x13vifvy xu96u03 x3m8u43 x1ey2m1c xrvj5dj x1ku5rj1 xqcmdr3 xb2rp9n xskzprw x17yabm6 x14q22ui"}}[0|!!S],"aria-hidden":"true",children:(0,V.jsx)(J,{size:"sm",shade:"inherit"})}),(0,V.jsxs)("span",{...a.xk(ed,q&&(S?ep:eh)),"aria-hidden":q||void 0,children:[u&&(0,V.jsx)("span",{...a.xk(ec,ek[D]),children:u}),x?null:(0,V.jsx)("span",{className:"xb3r6kr xlyipyv xeuugli",children:g??e}),!x&&h&&(0,V.jsx)("span",{className:"x3nfvp2 x6s0dn4 x1heor9g",children:h})]}),(0,V.jsx)(ee,{role:"status","aria-live":"polite",children:q?"Loading":""})]}),U=x&&""!==e||q&&!x||null!=g&&g!==e?{"aria-label":e}:null,ev=null!=p?{"aria-describedby":[E["aria-describedby"],I.describedBy].filter(Boolean).join(" ")||void 0}:null,e$=R(w,null!=p?I.ref:void 0);return(B=G?(0,V.jsx)(T,{ref:e$,href:f,target:b,rel:y,...Z,...E,...U,...ev,...X,onClick:O,children:Q}):(0,V.jsx)("button",{ref:e$,type:n,disabled:H?void 0:L,...Z,...E,...U,...ev,...X,"aria-busy":q||void 0,"aria-disabled":H||void 0,onClick:O,...P?{onKeyDown:P}:null,children:Q}),p)?(0,V.jsxs)(V.Fragment,{children:[B,I.renderTooltip(p)]}):B}eF.displayName="Button"},101(e,t,r){r.d(t,{f:()=>p});var l=r(405),a=r(472);function o(e){return(e.style.anchorName??"").split(",").map(e=>e.trim()).filter(Boolean)}function n(e,t){e.style.anchorName=t.join(", ")}var i=r(929),s=r(793);let c={keoZOQ:"xdj266r",k1K539:"xat24cr",keTefX:"x1lziwak",k71WvV:"x14z9mp",kLKAdn:"xexx8yu",kGO01o:"x18d9i69",kZCmMZ:"x1c1uobl",kwRFfy:"xyri2b",kMzoRj:"xc342km",ksu8eU:"xng3xce",kVQacm:"x1rea2x4",kMv6JI:"x9ynric",kWkggS:"xjbqb8w",$$css:!0},d={kVAEAm:"xixxii4",$$css:!0};i.lR["--duration-fast-max"],i.Lh["--ease-standard"];let u={below:{kKVMdj:"xl1vlw0 x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},above:{kKVMdj:"x3psbcj x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},end:{kKVMdj:"x1i331go x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},start:{kKVMdj:"xck01x9 x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0}};var x=r(702);let k={kWkggS:"x19aspcf",kMwMTN:"xrkvqaz",kaIpWk:"x1hviunn",kMv6JI:"x9ynric",kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0},g={keoZOQ:"xcsaf9d",k1K539:"x14cgwvg",keTefX:"x1lziwak",k71WvV:"x14z9mp",$$css:!0},h={keoZOQ:"xdj266r",k1K539:"xat24cr",keTefX:"x11g1kdw",k71WvV:"xnur1sd",$$css:!0};function p(e={}){let{placement:t="above",alignment:r="center",delay:i=200,hideDelay:f=0,focusTrigger:m="auto",isEnabled:b=!0,isOpen:y,isDefaultOpen:F=!1,onShow:v,onHide:$}=e,w="above"===t||"below"===t?g:h,E=function(e){let{mode:t,onShow:r,onHide:i,lightDismiss:u=!1}=e,x=(0,l.useId)(),k=`--astryx-layer-${x.replace(/:/g,"")}`,[g,h]=(0,l.useState)(!1),p=(0,l.useRef)(null),f=(0,l.useRef)(null),m=(0,l.useRef)(!1),b=(0,l.useCallback)(()=>{let e=p.current;e&&!m.current&&("function"==typeof e.showPopover?e.showPopover():e.style.display="block",m.current=!0,h(!0),r?.())},[r]),y=(0,l.useCallback)(()=>{if(m.current){let e=p.current;e&&("function"==typeof e.hidePopover?e.hidePopover():e.style.display="none"),m.current=!1,h(!1),i?.()}},[i]),F="context"===t?e=>{var t;let r;f.current&&f.current!==e&&(t=f.current,n(t,o(t).filter(e=>e!==k))),e&&((r=o(e)).includes(k)||(r.push(k),n(e,r))),f.current=e}:void 0,v=(0,l.useCallback)(e=>{"closed"===e.newState&&m.current&&(m.current=!1,h(!1),i?.())},[i]),$=(0,l.useRef)(null),w=(0,l.useRef)(null),E=(0,l.useCallback)((e,t)=>{$.current&&w.current&&($.current!==e||w.current!==t)&&($.current.removeEventListener("toggle",w.current),$.current=null,w.current=null),e&&$.current!==e&&(e.addEventListener("toggle",t),$.current=e,w.current=t)},[]),B=(0,l.useCallback)(e=>{p.current=e,E(e,v)},[v,E]);(0,l.useEffect)(()=>(p.current&&E(p.current,v),()=>{$.current&&w.current&&($.current.removeEventListener("toggle",w.current),$.current=null,w.current=null)}),[v,E]);let j=(0,l.useCallback)((e,t)=>{let{placement:r="above",alignment:l="center",positioning:o="anchor",role:n,xstyle:i,className:d,style:g,as:h="div",onMouseEnter:p,onMouseLeave:f}=t||{},m="custom"===o?{positionAnchor:k}:{positionAnchor:k,positionArea:function(e="above",t="center"){if("above"===e||"below"===e){let r="above"===e?"self-block-start":"self-block-end";return"start"===t?`${r} span-self-inline-end`:"end"===t?`${r} span-self-inline-start`:r}let r="start"===e?"self-inline-start":"self-inline-end";return"start"===t?`${r} span-self-block-end`:"end"===t?`${r} span-self-block-start`:r}(r,l),positionTryFallbacks:function(e="above",t="center"){let r="flip-block, flip-inline, flip-block flip-inline";if("center"!==t)return r;if("above"===e||"below"===e){let[t,l]="above"===e?["top","bottom"]:["bottom","top"];return`${r}, ${t} span-left, ${t} span-right, ${l} span-left, ${l} span-right`}let[l,a]="start"===e?["left","right"]:["right","left"];return`${r}, ${l} span-top, ${l} span-bottom, ${a} span-top, ${a} span-bottom`}(r,l)},b=a.xk(c,i),y=d?`${d} ${b.className??""}`:b.className;return(0,s.jsx)(h,{ref:B,id:x,role:n,popover:u?"auto":"manual",className:y,style:{...b.style,...m,...g},onMouseEnter:p,onMouseLeave:f,children:e})},[k,x,u,B]),z=(0,l.useCallback)((e,t)=>{let{x:r,y:l,xstyle:o,className:n,style:i}=t,k=a.xk(c,d,o),g=n?`${n} ${k.className??""}`:k.className;return(0,s.jsx)("div",{ref:B,id:x,popover:u?"auto":"manual",className:g,style:{...k.style,top:l,left:r,...i},children:e})},[B,x,u]);return"context"===t?{ref:F,anchorId:k,show:b,hide:y,isOpen:g,id:x,render:j}:{ref:void 0,show:b,hide:y,isOpen:g,id:x,render:z}}({mode:"context",onShow:v,onHide:$}),B=(0,l.useMemo)(()=>[k,w],[w]),j=(0,l.useRef)(null),z=(0,l.useRef)(null),D=(0,l.useRef)(null),C=(0,l.useCallback)(()=>{j.current&&(clearTimeout(j.current),j.current=null),z.current&&(clearTimeout(z.current),z.current=null)},[]),A=(0,l.useCallback)(()=>{b&&!1!==y&&(C(),j.current=setTimeout(()=>{E.show()},i))},[b,y,C,E,i]),N=(0,l.useCallback)(()=>{!0===y||(C(),z.current=setTimeout(()=>{E.hide()},f>0?f:100))},[y,C,E,f]),M=(0,l.useCallback)(()=>{z.current&&(clearTimeout(z.current),z.current=null)},[]),q=(0,l.useCallback)(()=>{("u"<typeof window||"function"!=typeof window.matchMedia||!window.matchMedia("(hover: none)").matches)&&A()},[A]),S=(0,l.useCallback)(()=>{N()},[N]),W=(0,l.useCallback)(e=>{!b||e.target.matches(":focus-visible")&&(C(),E.show())},[b,C,E]),L=(0,l.useCallback)(()=>{N()},[N]),T=(0,l.useCallback)(e=>{(D.current&&(D.current.removeEventListener("mouseenter",q),D.current.removeEventListener("mouseleave",S),D.current.removeEventListener("focusin",W),D.current.removeEventListener("focusout",L)),e)&&(e.addEventListener("mouseenter",q),e.addEventListener("mouseleave",S),"always"!==m&&("auto"!==m||(e.hasAttribute("tabindex")?!(e.tabIndex>=0):["A","BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)?e.disabled:!e.isContentEditable&&1))||(e.addEventListener("focusin",W),e.addEventListener("focusout",L)));D.current=e},[m,q,S,W,L]),G=(0,l.useCallback)(e=>{E.ref(e),T(e)},[E,T]);(0,l.useEffect)(()=>()=>{C()},[C]),(0,l.useEffect)(()=>{F&&E.show()},[]),(0,l.useEffect)(()=>{void 0!==y&&(y?(C(),E.show()):(C(),E.hide()))},[y,C,E]),(0,l.useEffect)(()=>{if(void 0!==y)return;let e=e=>{"Escape"!==e.key||e.isComposing||229===e.keyCode||(C(),E.hide())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[y,E,C]);let H=(0,l.useCallback)((e,l)=>{let a=l?.placement??t,o={placement:a,alignment:l?.alignment??r,role:"tooltip",xstyle:[B,u[a]],className:(0,x.G)("tooltip").className,onMouseEnter:M,onMouseLeave:N};return E.render((0,s.jsx)("div",{className:"xfsso4q xy143xn x12gdq22 x1djylfy xw5ewwj x13faqbe",children:e}),o)},[E,t,r,B,M,N]);return{ref:G,positionRef:E.ref,interactionRef:T,anchorId:E.anchorId,describedBy:E.id,renderTooltip:H}}},929(e,t,r){r.d(t,{},{BM:{"--radius-none":"0px","--radius-inner":"4px","--radius-element":"8px","--radius-container":"12px","--radius-page":"28px","--radius-chat":"28px","--radius-full":"9999px"},D5:{"--ease-standard":"cubic-bezier(0.24, 1, 0.4, 1)"},Hc:{"--duration-fast-min":"130ms","--duration-fast":"175ms","--duration-fast-max":"230ms","--duration-medium-min":"310ms","--duration-medium":"410ms","--duration-medium-max":"550ms","--duration-slow-min":"730ms","--duration-slow":"975ms","--duration-slow-max":"1300ms"},Kn:{"--size-element-sm":"28px","--size-element-md":"32px","--size-element-lg":"36px"},Lh:{"--ease-standard":"var(--ease-standard)",__varGroupHash__:"xf09i69"},Np:{"--text-heading-1-size":"var(--font-size-2xl)","--text-heading-1-weight":"var(--font-weight-semibold)","--text-heading-1-leading":"1.3333","--text-heading-2-size":"var(--font-size-xl)","--text-heading-2-weight":"var(--font-weight-semibold)","--text-heading-2-leading":"1.4","--text-heading-3-size":"var(--font-size-lg)","--text-heading-3-weight":"var(--font-weight-semibold)","--text-heading-3-leading":"1.4118","--text-heading-4-size":"var(--font-size-base)","--text-heading-4-weight":"var(--font-weight-semibold)","--text-heading-4-leading":"1.4286","--text-heading-5-size":"var(--font-size-sm)","--text-heading-5-weight":"var(--font-weight-semibold)","--text-heading-5-leading":"1.6667","--text-heading-6-size":"var(--font-size-xs)","--text-heading-6-weight":"var(--font-weight-semibold)","--text-heading-6-leading":"1.6","--text-body-size":"var(--font-size-base)","--text-body-weight":"var(--font-weight-normal)","--text-body-leading":"1.4286","--text-large-size":"var(--font-size-lg)","--text-large-weight":"var(--font-weight-semibold)","--text-large-leading":"1.4118","--text-label-size":"var(--font-size-base)","--text-label-weight":"var(--font-weight-medium)","--text-label-leading":"1.4286","--text-code-size":"var(--font-size-base)","--text-code-weight":"var(--font-weight-normal)","--text-code-leading":"1.4286","--text-supporting-size":"var(--font-size-sm)","--text-supporting-weight":"var(--font-weight-normal)","--text-supporting-leading":"1.6667","--text-display-1-size":"var(--font-size-5xl)","--text-display-1-weight":"var(--font-weight-normal)","--text-display-1-leading":"1.2381","--text-display-2-size":"var(--font-size-4xl)","--text-display-2-weight":"var(--font-weight-normal)","--text-display-2-leading":"1.2571","--text-display-3-size":"var(--font-size-3xl)","--text-display-3-weight":"var(--font-weight-normal)","--text-display-3-leading":"1.2414"},QE:{"--font-weight-normal":"400","--font-weight-medium":"500","--font-weight-semibold":"600","--font-weight-bold":"700"},_0:{"--transition-fast":"0.15s ease","--transition-normal":"0.2s ease"},_R:{"--color-accent":"light-dark(#0064E0, #2694FE)","--color-accent-muted":"light-dark(#0082FB33, #0082FB3F)","--color-on-accent":"light-dark(#FFFFFF, #FFFFFF)","--color-neutral":"light-dark(rgba(5, 54, 89, 0.1), rgba(223, 226, 229, 0.2))","--color-background-surface":"light-dark(#FFFFFF, #1F1F22)","--color-background-body":"light-dark(#F1F4F7, #111112)","--color-overlay":"light-dark(#01122866, #11111299)","--color-overlay-hover":"light-dark(#0536590C, #FFFFFF0C)","--color-overlay-pressed":"light-dark(#05365919, #FFFFFF19)","--color-background-muted":"light-dark(#0536590C, #1111127F)","--color-text-primary":"light-dark(#0A1317, #DFE2E5)","--color-text-secondary":"light-dark(#4E606F, #AAAFB5)","--color-text-disabled":"light-dark(#A4B0BC, #6F747C)","--color-text-accent":"light-dark(#0064E0, #3E9EFB)","--color-on-dark":"light-dark(#FFFFFF, #FFFFFF)","--color-on-light":"light-dark(#000000, #000000)","--color-icon-accent":"light-dark(#0064E0, #2694FE)","--color-icon-primary":"light-dark(#0A1317, #DFE2E5)","--color-icon-secondary":"light-dark(#4E606F, #AAAFB5)","--color-icon-disabled":"light-dark(#A4B0BC, #6F747C)","--color-background-card":"light-dark(#FFFFFF, #1F1F22)","--color-background-popover":"light-dark(#FFFFFF, #28292C)","--color-background-inverted":"light-dark(#0A1317, #FFFFFF)","--color-background-error-inverted":"light-dark(#AA071E, #E3193B)","--color-success":"light-dark(#0D8626, #0D8626)","--color-success-muted":"light-dark(#0B991F33, #0B991F3F)","--color-on-success":"light-dark(#FFFFFF, #FFFFFF)","--color-error":"light-dark(#E3193B, #F5394F)","--color-error-muted":"light-dark(#E3193B33, #F5394F3F)","--color-on-error":"light-dark(#FFFFFF, #FFFFFF)","--color-warning":"light-dark(#E9AF08, #F2C00B)","--color-warning-muted":"light-dark(#E2A40033, #E2A4003F)","--color-on-warning":"light-dark(#0A1317, #0A1317)","--color-border":"light-dark(#05365919, #F2F4F619)","--color-border-emphasized":"light-dark(#CCD3DB, #494D53)","--color-skeleton":"light-dark(#CCD3DB, #5A5E66)","--color-track":"light-dark(#CCD3DB, #5A5E66)","--color-shadow":"light-dark(rgba(5, 54, 89, 0.1), rgba(0, 0, 0, 0.3))","--color-tint-hover":"light-dark(black, white)","--color-background-blue":"light-dark(#0171E333, #0171E333)","--color-border-blue":"light-dark(#0064E0, #2694FE)","--color-icon-blue":"light-dark(#0064E0, #2694FE)","--color-text-blue":"light-dark(#042F97, #AFD7FF)","--color-background-cyan":"light-dark(#03A7D733, #03A7D733)","--color-border-cyan":"light-dark(#089DD0, #0171A4)","--color-icon-cyan":"light-dark(#00ACC1, #26C6DA)","--color-text-cyan":"light-dark(#014975, #A1EEF9)","--color-background-gray":"light-dark(#0A131733, #666A724C)","--color-border-gray":"light-dark(#647685, #748695)","--color-icon-gray":"light-dark(#4E606F, #AAAFB5)","--color-text-gray":"light-dark(#0A1317, #E7EAED)","--color-background-green":"light-dark(#24BB5E33, #24BB5E33)","--color-border-green":"light-dark(#0D8626, #0B991F)","--color-icon-green":"light-dark(#0D8626, #26A756)","--color-text-green":"light-dark(#09441F, #A5F690)","--color-background-orange":"light-dark(#F2790233, #F2790233)","--color-border-orange":"light-dark(#EB6E00, #B34A01)","--color-icon-orange":"light-dark(#E9690B, #FB8C00)","--color-text-orange":"light-dark(#6B2203, #FDB876)","--color-background-pink":"light-dark(#E638B333, #E638B333)","--color-border-pink":"light-dark(#F351C0, #C02294)","--color-icon-pink":"light-dark(#C2185B, #EC407A)","--color-text-pink":"light-dark(#650053, #FEADE3)","--color-background-purple":"light-dark(#7952FF33, #7952FF33)","--color-border-purple":"light-dark(#9081FF, #7340FE)","--color-icon-purple":"light-dark(#5B08D8, #7952FF)","--color-text-purple":"light-dark(#3E0697, #B3B0FE)","--color-background-red":"light-dark(#E3193B33, #E3193B33)","--color-border-red":"light-dark(#E3193B, #F5394F)","--color-icon-red":"light-dark(#D31130, #E3193B)","--color-text-red":"light-dark(#7B0210, #FFB2B8)","--color-background-teal":"light-dark(#0DB7AF33, #0DB7AF33)","--color-border-teal":"light-dark(#08A3A3, #08767D)","--color-icon-teal":"light-dark(#009688, #26A69A)","--color-text-teal":"light-dark(#083943, #40DCCD)","--color-background-yellow":"light-dark(#E2A40033, #E2A40033)","--color-border-yellow":"light-dark(#C58600, #B47700)","--color-icon-yellow":"light-dark(#FBC02D, #FFEE58)","--color-text-yellow":"light-dark(#753F07, #FBCE03)"},e1:{"--font-family-body":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',"--font-family-code":'"SF Mono", Monaco, Consolas, monospace',"--font-family-heading":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'},gN:{"--spacing-0":"0px","--spacing-0-5":"2px","--spacing-1":"4px","--spacing-1-5":"6px","--spacing-2":"8px","--spacing-3":"12px","--spacing-4":"16px","--spacing-5":"20px","--spacing-6":"24px","--spacing-7":"28px","--spacing-8":"32px","--spacing-9":"36px","--spacing-10":"40px","--spacing-11":"44px","--spacing-12":"48px"},jx:{"--font-size-4xs":"0.375rem","--font-size-3xs":"0.4375rem","--font-size-2xs":"0.5rem","--font-size-xs":"0.625rem","--font-size-sm":"0.75rem","--font-size-base":"0.875rem","--font-size-lg":"1.0625rem","--font-size-xl":"1.25rem","--font-size-2xl":"1.5rem","--font-size-3xl":"1.8125rem","--font-size-4xl":"2.1875rem","--font-size-5xl":"2.625rem"},lR:{"--duration-fast-min":"var(--duration-fast-min)","--duration-fast":"var(--duration-fast)","--duration-fast-max":"var(--duration-fast-max)","--duration-medium-min":"var(--duration-medium-min)","--duration-medium":"var(--duration-medium)","--duration-medium-max":"var(--duration-medium-max)","--duration-slow-min":"var(--duration-slow-min)","--duration-slow":"var(--duration-slow)","--duration-slow-max":"var(--duration-slow-max)",__varGroupHash__:"x14lkjui"},tj:{"--shadow-low":"0px 1px 1px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 2px 8px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2))","--shadow-med":"0px 1px 2px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 2px 12px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2))","--shadow-high":"0px 2px 2px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 8px 24px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3))","--shadow-inset-hover":"inset 0px 0px 0px 2px light-dark(rgba(5, 54, 89, 0.15), rgba(223, 226, 229, 0.2))","--shadow-inset-selected":"inset 0px 0px 0px 2px rgba(1, 113, 227, 0.5)","--shadow-inset-success":"inset 0px 0px 0px 2px rgba(38, 167, 86, 0.3)","--shadow-inset-warning":"inset 0px 0px 0px 2px rgba(226, 164, 0, 0.3)","--shadow-inset-error":"inset 0px 0px 0px 2px rgba(227, 25, 59, 0.3)"}})},702(e,t,r){r.d(t,{G:()=>l});function l(e,t){return{className:function(e,t){var r;let l=[`astryx-${e}`];if(t)for(let[e,a]of Object.entries(t))null!=a&&l.push((r=String(a),/^\d/.test(r)?`${e}-${r}`:r));return l.join(" ")}(e,t),...function(e){let t={};if(e)for(let[r,l]of Object.entries(e))null!=l&&(t[`data-${r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`]=String(l));return t}(t)}}},472(e,t,r){var l,a={},o=function(){if(l)return a;l=1,Object.defineProperty(a,"__esModule",{value:!0}),a.styleq=void 0;var e=new WeakMap;function t(t){var r,l,a;return null!=t&&(r=!0===t.disableCache,l=!0===t.disableMix,a=t.transform),function(){for(var t=[],o="",n=null,i="",s=r?null:e,c=Array(arguments.length),d=0;d<arguments.length;d++)c[d]=arguments[d];for(;c.length>0;){var u=c.pop();if(null!=u&&!1!==u){if(Array.isArray(u)){for(var x=0;x<u.length;x++)c.push(u[x]);continue}var k=null!=a?a(u):u;if(null!=k.$$css){var g="";if(null!=s&&s.has(k)){var h=s.get(k);null!=h&&(g=h[0],i=h[2],t.push.apply(t,h[1]),s=h[3])}else{var p=[];for(var f in k){var m=k[f];if("$$css"===f){var b=k[f];!0!==b&&(i=i?b+"; "+i:b);continue}"string"==typeof m||null===m?t.includes(f)||(t.push(f),null!=s&&p.push(f),"string"==typeof m&&(g+=g?" "+m:m)):console.error("styleq: ".concat(f," typeof ").concat(String(m),' is not "string" or "null".'))}if(null!=s){var y=new WeakMap;s.set(k,[g,p,i,y]),s=y}}g&&(o=o?g+" "+o:g)}else if(l)null==n&&(n={}),n=Object.assign({},k,n);else{var F=null;for(var v in k){var $=k[v];void 0===$||t.includes(v)||(null!=$&&(null==n&&(n={}),null==F&&(F={}),F[v]=$),t.push(v),s=null)}null!=F&&(n=Object.assign(F,n))}}}return[o,n,i]}}return(a.styleq=t()).factory=t,a}();function n(...e){let[t,r,l]=o.styleq(e),a={};return null!=t&&""!==t&&(a.className=t),null!=r&&Object.keys(r).length>0&&(a.style=r),null!=l&&""!==l&&(a["data-style-src"]=l),a}Object.freeze({}),r.d(t,{xk:()=>n})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.rspackChunkweb=self.rspackChunkweb||[]).push([[973],{756(e,r,t){t.d(r,{Tooltip:()=>n});var i=t(405);let s="u">typeof window?i.useLayoutEffect:i.useEffect;var a=t(101);t(929);var d=t(793);function l(...e){let r=e.filter(Boolean);return r.length>0?r.join(" "):void 0}function n({children:e,anchorRef:r,content:t,placement:u="above",alignment:b="center",delay:c=200,hideDelay:o=0,focusTrigger:f="auto",isEnabled:y=!0,onOpenChange:p,hasHoverIndication:x="auto",isOpen:m,isDefaultOpen:h}){let v=(0,i.useRef)(null),j=null!=e&&("string"==typeof e||"number"==typeof e),g=!0===x||"auto"===x&&j,k=(0,i.useCallback)(()=>{p?.(!0)},[p]),A=(0,i.useCallback)(()=>{p?.(!1)},[p]),B=(0,a.f)({placement:u,alignment:b,delay:c,hideDelay:o,focusTrigger:f,isEnabled:y,isOpen:m,isDefaultOpen:h,onShow:k,onHide:A});return(s(()=>{if(!r)return;let e=r.current;if(!e)return;B.ref(e);let t=e.getAttribute("aria-describedby");return e.setAttribute("aria-describedby",l(t,B.describedBy)??""),()=>{B.ref(null),t?e.setAttribute("aria-describedby",t):e.removeAttribute("aria-describedby")}},[r,B.ref,B.describedBy]),s(()=>{if(r||j)return;let e=v.current;if(!e)return;let t=e.firstElementChild;if(!t)return;B.ref(t);let i=t.getAttribute("aria-describedby");return t.setAttribute("aria-describedby",l(i,B.describedBy)??""),()=>{B.ref(null),i?t.setAttribute("aria-describedby",i):t.removeAttribute("aria-describedby")}},[r,j,B.ref,B.describedBy]),r&&null==e)?(0,d.jsx)(d.Fragment,{children:B.renderTooltip(t)}):j?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{ref:B.ref,tabIndex:0,"aria-describedby":B.describedBy,...{0:{className:"xt0psk2"},1:{className:"xt0psk2 xujl8zx xev0dqp xycaml9 xrys4gj"}}[0|!!g],children:e}),B.renderTooltip(t)]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{ref:v,className:"xjp7ctv",children:e}),B.renderTooltip(t)]})}n.displayName="Tooltip"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";var e,r,t,n,o,a={247(e,r,t){var n=t(793),o=t(405),a=t(541),i=t(185),s=t(306);let l=document.getElementById("root");l&&a.createRoot(l).render((0,n.jsx)(o.StrictMode,{children:(0,n.jsx)(function(){let e,r=(0,i.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(s.$,{label:"Hello Astryx"}),r[0]=e):e=r[0],e},{})}))}},i={};function s(e){var r=i[e];if(void 0!==r)return r.exports;var t=i[e]={exports:{}};return a[e](t,t.exports,s),t.exports}s.m=a,s.d=(e,r,t)=>{var n=(r,t)=>{for(var n in r)s.o(r,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,[t]:r[n]})};n(r,"get"),n(t,"value")},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((r,t)=>(s.f[t](e,r),r),[])),s.u=e=>"static/js/async/"+e+".3e764f383c.js",s.miniCssF=e=>""+e+".css",s.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},s.l=function(r,t,n,o){if(e[r])return void e[r].push(t);if(void 0!==n)for(var a,i,l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var c=l[u];if(c.getAttribute("src")==r||c.getAttribute("data-rspack")=="web:"+n){a=c;break}}a||(i=!0,(a=document.createElement("script")).timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-rspack","web:"+n),a.src=r),e[r]=[t];var d=function(t,n){a.onerror=a.onload=null,clearTimeout(f);var o=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(function(e){return e(n)}),t)return t(n)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),i&&document.head.appendChild(a)},r=[],s.O=(e,t,n,o)=>{if(t){o=o||0;for(var a=r.length;a>0&&r[a-1][2]>o;a--)r[a]=r[a-1];r[a]=[t,n,o];return}for(var i=1/0,a=0;a<r.length;a++){for(var[t,n,o]=r[a],l=!0,u=0;u<t.length;u++)(!1&o||i>=o)&&Object.keys(s.O).every(e=>s.O[e](t[u]))?t.splice(u--,1):(l=!1,o<i&&(i=o));if(l){r.splice(a--,1);var c=n();void 0!==c&&(e=c)}}return e},s.p="/",t={410:0},s.f.j=function(e,r){var n=s.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((r,o)=>n=t[e]=[r,o]);r.push(n[2]=o);var a=s.p+s.u(e),i=Error();s.l(a,function(r){if(s.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;i.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}},"chunk-"+e,e)}},s.O.j=e=>0===t[e],n=(e,r)=>{var n,o,[a,i,l]=r,u=0;if(a.some(e=>0!==t[e])){for(n in i)s.o(i,n)&&(s.m[n]=i[n]);if(l)var c=l(s)}for(e&&e(r);u<a.length;u++)o=a[u],s.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return s.O(c)},(o=self.rspackChunkweb=self.rspackChunkweb||[]).forEach(n.bind(null,0)),o.push=n.bind(null,o.push.bind(o));var l=s.O(void 0,["783","488"],()=>s(247));l=s.O(l)})();
|