@workflow/web 4.0.1-beta.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/.next/BUILD_ID +1 -0
- package/.next/app-build-manifest.json +55 -0
- package/.next/app-path-routes-manifest.json +7 -0
- package/.next/build-manifest.json +33 -0
- package/.next/export-marker.json +6 -0
- package/.next/images-manifest.json +57 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +41 -0
- package/.next/react-loadable-manifest.json +1 -0
- package/.next/required-server-files.json +318 -0
- package/.next/routes-manifest.json +77 -0
- package/.next/server/app/_not-found/page.js +2 -0
- package/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
- package/.next/server/app/favicon.ico/route.js +1 -0
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
- package/.next/server/app/favicon.ico.body +0 -0
- package/.next/server/app/favicon.ico.meta +1 -0
- package/.next/server/app/page.js +2 -0
- package/.next/server/app/page.js.nft.json +1 -0
- package/.next/server/app/page_client-reference-manifest.js +1 -0
- package/.next/server/app/run/[runId]/page.js +5 -0
- package/.next/server/app/run/[runId]/page.js.nft.json +1 -0
- package/.next/server/app/run/[runId]/page_client-reference-manifest.js +1 -0
- package/.next/server/app/run/[runId]/streams/[streamId]/page.js +2 -0
- package/.next/server/app/run/[runId]/streams/[streamId]/page.js.nft.json +1 -0
- package/.next/server/app/run/[runId]/streams/[streamId]/page_client-reference-manifest.js +1 -0
- package/.next/server/app-paths-manifest.json +7 -0
- package/.next/server/chunks/111.js +1 -0
- package/.next/server/chunks/122.js +22 -0
- package/.next/server/chunks/138.js +1 -0
- package/.next/server/chunks/207.js +6 -0
- package/.next/server/chunks/255.js +1 -0
- package/.next/server/chunks/464.js +1 -0
- package/.next/server/chunks/656.js +42 -0
- package/.next/server/chunks/701.js +6 -0
- package/.next/server/chunks/907.js +1 -0
- package/.next/server/functions-config-manifest.json +4 -0
- package/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/.next/server/middleware-build-manifest.js +1 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +1 -0
- package/.next/server/pages/500.html +1 -0
- package/.next/server/pages/_app.js +1 -0
- package/.next/server/pages/_app.js.nft.json +1 -0
- package/.next/server/pages/_document.js +1 -0
- package/.next/server/pages/_document.js.nft.json +1 -0
- package/.next/server/pages/_error.js +19 -0
- package/.next/server/pages/_error.js.nft.json +1 -0
- package/.next/server/pages-manifest.json +5 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +1 -0
- package/.next/server/webpack-runtime.js +1 -0
- package/.next/static/chunks/412-a430cced2eddabdc.js +1 -0
- package/.next/static/chunks/508-34c7cba42228a753.js +1 -0
- package/.next/static/chunks/624-fa4aee3e4518a6bf.js +1 -0
- package/.next/static/chunks/687-ad38291defb5159c.js +1 -0
- package/.next/static/chunks/724-597f8080461271d4.js +1 -0
- package/.next/static/chunks/793.b2d5c21bf87e0c8f.js +1 -0
- package/.next/static/chunks/98-4fb0632ee8eb5945.js +1 -0
- package/.next/static/chunks/app/_not-found/page-e10213493435545e.js +1 -0
- package/.next/static/chunks/app/layout-5511efd4ea55fd71.js +1 -0
- package/.next/static/chunks/app/page-14a46aa6ed9fb9f8.js +1 -0
- package/.next/static/chunks/app/run/[runId]/page-b70fe3bd91479208.js +1 -0
- package/.next/static/chunks/app/run/[runId]/streams/[streamId]/page-5813197c8ca1670b.js +1 -0
- package/.next/static/chunks/c4f718af-c178cc1cc033b5b4.js +1 -0
- package/.next/static/chunks/framework-4334835da20708d1.js +1 -0
- package/.next/static/chunks/main-9b3d7ee2f9cd10fa.js +1 -0
- package/.next/static/chunks/main-app-2d7c43866080ba5d.js +1 -0
- package/.next/static/chunks/pages/_app-4e2b7a90afe6e377.js +1 -0
- package/.next/static/chunks/pages/_error-1e1f0821587194ac.js +1 -0
- package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/.next/static/chunks/webpack-b430e07cf9392cd1.js +1 -0
- package/.next/static/css/2002c05225ea0e5e.css +1 -0
- package/.next/static/css/bb92b93f39c57915.css +3 -0
- package/.next/static/idQnUYapsIqHwK0hfmmKZ/_buildManifest.js +1 -0
- package/.next/static/idQnUYapsIqHwK0hfmmKZ/_ssgManifest.js +1 -0
- package/.next/static/media/4cf2300e9c8272f7-s.p.woff2 +0 -0
- package/.next/static/media/747892c23ea88013-s.woff2 +0 -0
- package/.next/static/media/8d697b304b401681-s.woff2 +0 -0
- package/.next/static/media/93f479601ee12b01-s.p.woff2 +0 -0
- package/.next/static/media/9610d9e46709d722-s.woff2 +0 -0
- package/.next/static/media/ba015fad6dcf6784-s.woff2 +0 -0
- package/.next/trace +19 -0
- package/.next/types/app/page.ts +84 -0
- package/.next/types/app/run/[runId]/page.ts +84 -0
- package/.next/types/app/run/[runId]/streams/[streamId]/page.ts +84 -0
- package/.next/types/cache-life.d.ts +141 -0
- package/.next/types/package.json +1 -0
- package/.next/types/routes.d.ts +59 -0
- package/.next/types/validator.ts +79 -0
- package/LICENSE.md +21 -0
- package/README.md +47 -0
- package/package.json +50 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[724],{63:(e,t,n)=>{n.d(t,{hO:()=>u,sG:()=>a});var r=n(4773),o=n(1471),i=n(9280),l=n(5386),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o?n:t,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function u(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},607:(e,t,n)=>{n.d(t,{Qg:()=>l,bL:()=>u});var r=n(4773),o=n(63),i=n(5386),l=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),a=r.forwardRef((e,t)=>(0,i.jsx)(o.sG.span,{...e,ref:t,style:{...l,...e.style}}));a.displayName="VisuallyHidden";var u=a},819:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(4773);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},3049:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(4773),o=globalThis?.document?r.useLayoutEffect:()=>{}},4053:(e,t,n)=>{function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{mK:()=>r}),"undefined"!=typeof window&&window.document&&window.document.createElement},5987:(e,t,n)=>{n.d(t,{B:()=>u});var r,o=n(4773),i=n(3049),l=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function u(e){let[t,n]=o.useState(l());return(0,i.N)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},7328:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(4773),o=n(5386);function i(e,t=[]){let n=[],l=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return l.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;n=[...n,i];let u=t=>{let{scope:n,children:i,...u}=t,s=n?.[e]?.[a]||l,c=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(s.Provider,{value:c,children:i})};return u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e]?.[a]||l,s=r.useContext(u);if(s)return s;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(l,...t)]}},7536:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(8258).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},7740:(e,t,n)=>{n.d(t,{qW:()=>d});var r,o=n(4773),i=n(4053),l=n(63),a=n(5034),u=n(819),s=n(5386),c="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),d=o.forwardRef((e,t)=>{var n,d;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:w,onDismiss:x,...b}=e,E=o.useContext(f),[C,R]=o.useState(null),T=null!=(d=null==C?void 0:C.ownerDocument)?d:null==(n=globalThis)?void 0:n.document,[,L]=o.useState({}),A=(0,a.s)(t,e=>R(e)),O=Array.from(E.layers),[P]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),S=O.indexOf(P),N=C?O.indexOf(C):-1,k=E.layersWithOutsidePointerEventsDisabled.size>0,D=N>=S,M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){m("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));D&&!n&&(null==v||v(e),null==w||w(e),e.defaultPrevented||null==x||x())},T),j=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(null==y||y(e),null==w||w(e),e.defaultPrevented||null==x||x())},T);return!function(e,t=globalThis?.document){let n=(0,u.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{N===E.layers.size-1&&(null==g||g(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},T),o.useEffect(()=>{if(C)return h&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),p(),()=>{h&&1===E.layersWithOutsidePointerEventsDisabled.size&&(T.body.style.pointerEvents=r)}},[C,T,h,E]),o.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),p())},[C,E]),o.useEffect(()=>{let e=()=>L({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,s.jsx)(l.sG.div,{...b,ref:A,style:{pointerEvents:k?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.mK)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,i.mK)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,i.mK)(e.onPointerDownCapture,M.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,l.hO)(i,a):i.dispatchEvent(a)}d.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(f),r=o.useRef(null),i=(0,a.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(l.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},8251:(e,t,n)=>{n.d(t,{UC:()=>V,Kq:()=>z,bL:()=>U,Bc:()=>T,l9:()=>$});var r=n(4773),o=n(4053),i=n(5034),l=n(7328),a=n(7740),u=n(5987),s=n(9448),c=(n(9302),n(3049)),f=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,i]=r.useState(),l=r.useRef(null),a=r.useRef(e),u=r.useRef("none"),[s,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=d(l.current);u.current="mounted"===s?e:"none"},[s]),(0,c.N)(()=>{let t=l.current,n=a.current;if(n!==e){let r=u.current,o=d(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),a.current=e}},[e,f]),(0,c.N)(()=>{if(o){var e;let t,n=null!=(e=o.ownerDocument.defaultView)?e:window,r=e=>{let r=d(l.current).includes(CSS.escape(e.animationName));if(e.target===o&&r&&(f("ANIMATION_END"),!a.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(u.current=d(l.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:r.useCallback(e=>{l.current=e?getComputedStyle(e):null,i(e)},[])}}(t),l="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),a=(0,i.s)(o.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof n||o.isPresent?r.cloneElement(l,{ref:a}):null};function d(e){return(null==e?void 0:e.animationName)||"none"}f.displayName="Presence";var p=n(63),m=n(9280),h=n(9559),g=n(607),v=n(5386),[y,w]=(0,l.A)("Tooltip",[s.Bk]),x=(0,s.Bk)(),b="TooltipProvider",E="tooltip.open",[C,R]=y(b),T=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:l}=e,a=r.useRef(!0),u=r.useRef(!1),s=r.useRef(0);return r.useEffect(()=>{let e=s.current;return()=>window.clearTimeout(e)},[]),(0,v.jsx)(C,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(s.current),a.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:u,onPointerInTransitChange:r.useCallback(e=>{u.current=e},[]),disableHoverableContent:i,children:l})};T.displayName=b;var L="Tooltip",[A,O]=y(L),P=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:i,onOpenChange:l,disableHoverableContent:a,delayDuration:c}=e,f=R(L,e.__scopeTooltip),d=x(t),[p,m]=r.useState(null),g=(0,u.B)(),y=r.useRef(0),w=null!=a?a:f.disableHoverableContent,b=null!=c?c:f.delayDuration,C=r.useRef(!1),[T,O]=(0,h.i)({prop:o,defaultProp:null!=i&&i,onChange:e=>{e?(f.onOpen(),document.dispatchEvent(new CustomEvent(E))):f.onClose(),null==l||l(e)},caller:L}),P=r.useMemo(()=>T?C.current?"delayed-open":"instant-open":"closed",[T]),S=r.useCallback(()=>{window.clearTimeout(y.current),y.current=0,C.current=!1,O(!0)},[O]),N=r.useCallback(()=>{window.clearTimeout(y.current),y.current=0,O(!1)},[O]),k=r.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{C.current=!0,O(!0),y.current=0},b)},[b,O]);return r.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),(0,v.jsx)(s.bL,{...d,children:(0,v.jsx)(A,{scope:t,contentId:g,open:T,stateAttribute:P,trigger:p,onTriggerChange:m,onTriggerEnter:r.useCallback(()=>{f.isOpenDelayedRef.current?k():S()},[f.isOpenDelayedRef,k,S]),onTriggerLeave:r.useCallback(()=>{w?N():(window.clearTimeout(y.current),y.current=0)},[N,w]),onOpen:S,onClose:N,disableHoverableContent:w,children:n})})};P.displayName=L;var S="TooltipTrigger",N=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...l}=e,a=O(S,n),u=R(S,n),c=x(n),f=r.useRef(null),d=(0,i.s)(t,f,a.onTriggerChange),m=r.useRef(!1),h=r.useRef(!1),g=r.useCallback(()=>m.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,v.jsx)(s.Mz,{asChild:!0,...c,children:(0,v.jsx)(p.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...l,ref:d,onPointerMove:(0,o.mK)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(h.current||u.isPointerInTransitRef.current||(a.onTriggerEnter(),h.current=!0))}),onPointerLeave:(0,o.mK)(e.onPointerLeave,()=>{a.onTriggerLeave(),h.current=!1}),onPointerDown:(0,o.mK)(e.onPointerDown,()=>{a.open&&a.onClose(),m.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:(0,o.mK)(e.onFocus,()=>{m.current||a.onOpen()}),onBlur:(0,o.mK)(e.onBlur,a.onClose),onClick:(0,o.mK)(e.onClick,a.onClose)})})});N.displayName=S;var[k,D]=y("TooltipPortal",{forceMount:void 0}),M="TooltipContent",j=r.forwardRef((e,t)=>{let n=D(M,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=O(M,e.__scopeTooltip);return(0,v.jsx)(f,{present:r||l.open,children:l.disableHoverableContent?(0,v.jsx)(H,{side:o,...i,ref:t}):(0,v.jsx)(W,{side:o,...i,ref:t})})}),W=r.forwardRef((e,t)=>{let n=O(M,e.__scopeTooltip),o=R(M,e.__scopeTooltip),l=r.useRef(null),a=(0,i.s)(t,l),[u,s]=r.useState(null),{trigger:c,onClose:f}=n,d=l.current,{onPointerInTransitChange:p}=o,m=r.useCallback(()=>{s(null),p(!1)},[p]),h=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());s(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),p(!0)},[p]);return r.useEffect(()=>()=>m(),[m]),r.useEffect(()=>{if(c&&d){let e=e=>h(e,d),t=e=>h(e,c);return c.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[c,d,h,m]),r.useEffect(()=>{if(u){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==d?void 0:d.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],u=l.x,s=l.y,c=a.x,f=a.y;s>r!=f>r&&n<(c-u)*(r-s)/(f-s)+u&&(o=!o)}return o}(n,u);r?m():o&&(m(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,d,u,f,m]),(0,v.jsx)(H,{...e,ref:a})}),[_,F]=y(L,{isInside:!1}),B=(0,m.Dc)("TooltipContent"),H=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:u,...c}=e,f=O(M,n),d=x(n),{onClose:p}=f;return r.useEffect(()=>(document.addEventListener(E,p),()=>document.removeEventListener(E,p)),[p]),r.useEffect(()=>{if(f.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(f.trigger))&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[f.trigger,p]),(0,v.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,v.jsxs)(s.UC,{"data-state":f.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,v.jsx)(B,{children:o}),(0,v.jsx)(_,{scope:n,isInside:!0,children:(0,v.jsx)(g.bL,{id:f.contentId,role:"tooltip",children:i||o})})]})})});j.displayName=M;var I="TooltipArrow";r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=x(n);return F(I,n).isInside?null:(0,v.jsx)(s.i3,{...o,...r,ref:t})}).displayName=I;var z=T,U=P,$=N,V=j},9302:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(4773),o=n(1471),i=n(63),l=n(3049),a=n(5386),u=r.forwardRef((e,t)=>{var n,u;let{container:s,...c}=e,[f,d]=r.useState(!1);(0,l.N)(()=>d(!0),[]);let p=s||f&&(null==(u=globalThis)||null==(n=u.document)?void 0:n.body);return p?o.createPortal((0,a.jsx)(i.sG.div,{...c,ref:t}),p):null});u.displayName="Portal"},9448:(e,t,n)=>{n.d(t,{Mz:()=>e0,i3:()=>e3,UC:()=>e1,bL:()=>eJ,Bk:()=>e_});var r=n(4773);let o=["top","right","bottom","left"],i=Math.min,l=Math.max,a=Math.round,u=Math.floor,s=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}let v=new Set(["top","bottom"]);function y(e){return v.has(p(e))?"y":"x"}function w(e){return e.replace(/start|end/g,e=>f[e])}let x=["left","right"],b=["right","left"],E=["top","bottom"],C=["bottom","top"];function R(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function T(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function L(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function A(e,t,n){let r,{reference:o,floating:i}=e,l=y(t),a=h(y(t)),u=g(a),s=p(t),c="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,v=o[u]/2-i[u]/2;switch(s){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(m(t)){case"start":r[a]-=v*(n&&c?-1:1);break;case"end":r[a]+=v*(n&&c?-1:1)}return r}let O=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=A(s,r,u),d=r,p={},m=0;for(let n=0;n<a.length;n++){let{name:i,fn:h}=a[n],{x:g,y:v,data:y,reset:w}=await h({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});c=null!=g?g:c,f=null!=v?v:f,p={...p,[i]:{...p[i],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(s=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:c,y:f}=A(s,d,u)),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}};async function P(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=d(t,e),h=T(m),g=a[p?"floating"===f?"reference":"floating":f],v=L(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:u})),y="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=L(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:u}):y);return{top:(v.top-b.top+h.top)/x.y,bottom:(b.bottom-v.bottom+h.bottom)/x.y,left:(v.left-b.left+h.left)/x.x,right:(b.right-v.right+h.right)/x.x}}function S(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function N(e){return o.some(t=>e[t]>=0)}let k=new Set(["left","top"]);async function D(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=p(n),a=m(n),u="y"===y(n),s=k.has(l)?-1:1,c=i&&u?-1:1,f=d(t,e),{mainAxis:h,crossAxis:g,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof v&&(g="end"===a?-1*v:v),u?{x:g*c,y:h*s}:{x:h*s,y:g*c}}function M(){return"undefined"!=typeof window}function j(e){return F(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _(e){var t;return null==(t=(F(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function F(e){return!!M()&&(e instanceof Node||e instanceof W(e).Node)}function B(e){return!!M()&&(e instanceof Element||e instanceof W(e).Element)}function H(e){return!!M()&&(e instanceof HTMLElement||e instanceof W(e).HTMLElement)}function I(e){return!!M()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof W(e).ShadowRoot)}let z=new Set(["inline","contents"]);function U(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!z.has(o)}let $=new Set(["table","td","th"]),V=[":popover-open",":modal"];function K(e){return V.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let G=["transform","translate","scale","rotate","perspective"],Y=["transform","translate","scale","rotate","perspective","filter"],X=["paint","layout","strict","content"];function q(e){let t=Q(),n=B(e)?ee(e):e;return G.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Y.some(e=>(n.willChange||"").includes(e))||X.some(e=>(n.contain||"").includes(e))}function Q(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Z=new Set(["html","body","#document"]);function J(e){return Z.has(j(e))}function ee(e){return W(e).getComputedStyle(e)}function et(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function en(e){if("html"===j(e))return e;let t=e.assignedSlot||e.parentNode||I(e)&&e.host||_(e);return I(t)?t.host:t}function er(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=en(t);return J(n)?t.ownerDocument?t.ownerDocument.body:t.body:H(n)&&U(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=W(o);if(i){let e=eo(l);return t.concat(l,l.visualViewport||[],U(o)?o:[],e&&n?er(e):[])}return t.concat(o,er(o,[],n))}function eo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ei(e){let t=ee(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=H(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,u=a(n)!==i||a(r)!==l;return u&&(n=i,r=l),{width:n,height:r,$:u}}function el(e){return B(e)?e:e.contextElement}function ea(e){let t=el(e);if(!H(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ei(t),l=(i?a(n.width):n.width)/r,u=(i?a(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}let eu=s(0);function es(e){let t=W(e);return Q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eu}function ec(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=el(e),a=s(1);t&&(r?B(r)&&(a=ea(r)):a=ea(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===W(l))&&o)?es(l):s(0),c=(i.left+u.x)/a.x,f=(i.top+u.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(l){let e=W(l),t=r&&B(r)?W(r):r,n=e,o=eo(n);for(;o&&r&&t!==n;){let e=ea(o),t=o.getBoundingClientRect(),r=ee(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,f*=e.y,d*=e.x,p*=e.y,c+=i,f+=l,o=eo(n=W(o))}}return L({width:d,height:p,x:c,y:f})}function ef(e,t){let n=et(e).scrollLeft;return t?t.left+n:ec(_(e)).left+n}function ed(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ef(e,n),y:n.top+t.scrollTop}}let ep=new Set(["absolute","fixed"]);function em(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=W(e),r=_(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=Q();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let s=ef(r);if(s<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else s<=25&&(i+=s);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=_(e),n=et(e),r=e.ownerDocument.body,o=l(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=l(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+ef(e),u=-n.scrollTop;return"rtl"===ee(r).direction&&(a+=l(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:u}}(_(e));else if(B(t))r=function(e,t){let n=ec(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=H(e)?ea(e):s(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=es(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return L(r)}function eh(e){return"static"===ee(e).position}function eg(e,t){if(!H(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let n=e.offsetParent;return _(e)===n&&(n=n.ownerDocument.body),n}function ev(e,t){var n;let r=W(e);if(K(e))return r;if(!H(e)){let t=en(e);for(;t&&!J(t);){if(B(t)&&!eh(t))return t;t=en(t)}return r}let o=eg(e,t);for(;o&&(n=o,$.has(j(n)))&&eh(o);)o=eg(o,t);return o&&J(o)&&eh(o)&&!q(o)?r:o||function(e){let t=en(e);for(;H(t)&&!J(t);){if(q(t))return t;if(K(t))break;t=en(t)}return null}(e)||r}let ey=async function(e){let t=this.getOffsetParent||ev,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=H(t),o=_(t),i="fixed"===n,l=ec(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=s(0);if(r||!r&&!i)if(("body"!==j(t)||U(o))&&(a=et(t)),r){let e=ec(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=ef(o));i&&!r&&o&&(u.x=ef(o));let c=!o||r||i?s(0):ed(o,a);return{x:l.left+a.scrollLeft-u.x-c.x,y:l.top+a.scrollTop-u.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ew={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=_(r),a=!!t&&K(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=s(1),f=s(0),d=H(r);if((d||!d&&!i)&&(("body"!==j(r)||U(l))&&(u=et(r)),H(r))){let e=ec(r);c=ea(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let p=!l||d||i?s(0):ed(l,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+p.x,y:n.y*c.y-u.scrollTop*c.y+f.y+p.y}},getDocumentElement:_,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,a=[..."clippingAncestors"===n?K(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(e=>B(e)&&"body"!==j(e)),o=null,i="fixed"===ee(e).position,l=i?en(e):e;for(;B(l)&&!J(l);){let t=ee(l),n=q(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&ep.has(o.position)||U(l)&&!n&&function e(t,n){let r=en(t);return!(r===n||!B(r)||J(r))&&("fixed"===ee(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=en(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=a[0],s=a.reduce((e,n)=>{let r=em(t,n,o);return e.top=l(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=l(r.left,e.left),e},em(t,u,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ev,getElementRects:ey,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ei(e);return{width:t,height:n}},getScale:ea,isElement:B,isRTL:function(e){return"rtl"===ee(e).direction}};function ex(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eb=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:a,platform:u,elements:s,middlewareData:c}=t,{element:f,padding:p=0}=d(e,t)||{};if(null==f)return{};let v=T(p),w={x:n,y:r},x=h(y(o)),b=g(x),E=await u.getDimensions(f),C="y"===x,R=C?"clientHeight":"clientWidth",L=a.reference[b]+a.reference[x]-w[x]-a.floating[b],A=w[x]-a.reference[x],O=await (null==u.getOffsetParent?void 0:u.getOffsetParent(f)),P=O?O[R]:0;P&&await (null==u.isElement?void 0:u.isElement(O))||(P=s.floating[R]||a.floating[b]);let S=P/2-E[b]/2-1,N=i(v[C?"top":"left"],S),k=i(v[C?"bottom":"right"],S),D=P-E[b]-k,M=P/2-E[b]/2+(L/2-A/2),j=l(N,i(M,D)),W=!c.arrow&&null!=m(o)&&M!==j&&a.reference[b]/2-(M<N?N:k)-E[b]/2<0,_=W?M<N?M-N:M-D:0;return{[x]:w[x]+_,data:{[x]:j,centerOffset:M-j-_,...W&&{alignmentOffset:_}},reset:W}}});var eE=n(1471),eC="undefined"!=typeof document?r.useLayoutEffect:function(){};function eR(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eR(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eR(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eT(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eL(e,t){let n=eT(e);return Math.round(t*n)/n}function eA(e){let t=r.useRef(e);return eC(()=>{t.current=e}),t}var eO=n(63),eP=n(5386),eS=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eP.jsx)(eO.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eP.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eS.displayName="Arrow";var eN=n(5034),ek=n(7328),eD=n(819),eM=n(3049),ej="Popper",[eW,e_]=(0,ek.A)(ej),[eF,eB]=eW(ej),eH=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,eP.jsx)(eF,{scope:t,anchor:o,onAnchorChange:i,children:n})};eH.displayName=ej;var eI="PopperAnchor",ez=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,l=eB(eI,n),a=r.useRef(null),u=(0,eN.s)(t,a),s=r.useRef(null);return r.useEffect(()=>{let e=s.current;s.current=(null==o?void 0:o.current)||a.current,e!==s.current&&l.onAnchorChange(s.current)}),o?null:(0,eP.jsx)(eO.sG.div,{...i,ref:u})});ez.displayName=eI;var eU="PopperContent",[e$,eV]=eW(eU),eK=r.forwardRef((e,t)=>{var n,o,a,s,c,f,v,T;let{__scopePopper:L,side:A="bottom",sideOffset:M=0,align:j="center",alignOffset:W=0,arrowPadding:F=0,avoidCollisions:B=!0,collisionBoundary:H=[],collisionPadding:I=0,sticky:z="partial",hideWhenDetached:U=!1,updatePositionStrategy:$="optimized",onPlaced:V,...K}=e,G=eB(eU,L),[Y,X]=r.useState(null),q=(0,eN.s)(t,e=>X(e)),[Q,Z]=r.useState(null),J=function(e){let[t,n]=r.useState(void 0);return(0,eM.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(Q),ee=null!=(v=null==J?void 0:J.width)?v:0,et=null!=(T=null==J?void 0:J.height)?T:0,en="number"==typeof I?I:{top:0,right:0,bottom:0,left:0,...I},eo=Array.isArray(H)?H:[H],ei=eo.length>0,ea={padding:en,boundary:eo.filter(eq),altBoundary:ei},{refs:eu,floatingStyles:es,placement:ef,isPositioned:ed,middlewareData:ep}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[f,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=r.useState(o);eR(p,o)||m(o);let[h,g]=r.useState(null),[v,y]=r.useState(null),w=r.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),x=r.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),b=l||h,E=a||v,C=r.useRef(null),R=r.useRef(null),T=r.useRef(f),L=null!=s,A=eA(s),P=eA(i),S=eA(c),N=r.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),((e,t,n)=>{let r=new Map,o={platform:ew,...n},i={...o.platform,_c:r};return O(e,t,{...o,platform:i})})(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==S.current};k.current&&!eR(T.current,t)&&(T.current=t,eE.flushSync(()=>{d(t)}))})},[p,t,n,P,S]);eC(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let k=r.useRef(!1);eC(()=>(k.current=!0,()=>{k.current=!1}),[]),eC(()=>{if(b&&(C.current=b),E&&(R.current=E),b&&E){if(A.current)return A.current(b,E,N);N()}},[b,E,N,A,L]);let D=r.useMemo(()=>({reference:C,floating:R,setReference:w,setFloating:x}),[w,x]),M=r.useMemo(()=>({reference:b,floating:E}),[b,E]),j=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=eL(M.floating,f.x),r=eL(M.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eT(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,M.floating,f.x,f.y]);return r.useMemo(()=>({...f,update:N,refs:D,elements:M,floatingStyles:j}),[f,N,D,M,j])}({strategy:"fixed",placement:A+("center"!==j?"-"+j:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=el(e),m=a||s?[...p?er(p):[],...er(t)]:[];m.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let h=p&&f?function(e,t){let n,r=null,o=_(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),a();let d=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=d;if(c||t(),!h||!g)return;let v=u(m),y=u(o.clientWidth-(p+h)),w={rootMargin:-v+"px "+-y+"px "+-u(o.clientHeight-(m+g))+"px "+-u(p)+"px",threshold:l(0,i(1,f))||1},x=!0;function b(t){let r=t[0].intersectionRatio;if(r!==f){if(!x)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||ex(d,e.getBoundingClientRect())||s(),x=!1}try{r=new IntersectionObserver(b,{...w,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,w)}r.observe(e)}(!0),a}(p,n):null,g=-1,v=null;c&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),p&&!d&&v.observe(p),v.observe(t));let y=d?ec(e):null;return d&&function t(){let r=ec(e);y&&!ex(y,r)&&n(),y=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{a&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=v)||e.disconnect(),v=null,d&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===$})},elements:{reference:G.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await D(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}}(e),options:[e,t]}))({mainAxis:M+et,alignmentAxis:W}),B&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),f={x:n,y:r},m=await P(t,c),g=y(p(o)),v=h(g),w=f[v],x=f[g];if(a){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=w+m[e],r=w-m[t];w=l(n,i(w,r))}if(u){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=x+m[e],r=x-m[t];x=l(n,i(x,r))}let b=s.fn({...t,[v]:w,[g]:x});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[v]:a,[g]:u}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===z?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:s=!0}=d(e,t),c={x:n,y:r},f=y(o),m=h(f),g=c[m],v=c[f],w=d(a,t),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){let e="y"===m?"height":"width",t=i.reference[m]-i.floating[e]+x.mainAxis,n=i.reference[m]+i.reference[e]-x.mainAxis;g<t?g=t:g>n&&(g=n)}if(s){var b,E;let e="y"===m?"width":"height",t=k.has(p(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(b=l.offset)?void 0:b[f])||0)+(t?0:x.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(E=l.offset)?void 0:E[f])||0)-(t?x.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[m]:g,[f]:v}}}}(e),options:[e,t]}))():void 0,...ea}),B&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:c,platform:f,elements:v}=t,{mainAxis:T=!0,crossAxis:L=!0,fallbackPlacements:A,fallbackStrategy:O="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:N=!0,...k}=d(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let D=p(a),M=y(c),j=p(c)===c,W=await (null==f.isRTL?void 0:f.isRTL(v.floating)),_=A||(j||!N?[R(c)]:function(e){let t=R(e);return[w(e),t,w(t)]}(c)),F="none"!==S;!A&&F&&_.push(...function(e,t,n,r){let o=m(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?b:x;return t?x:b;case"left":case"right":return t?E:C;default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(w)))),i}(c,N,S,W));let B=[c,..._],H=await P(t,k),I=[],z=(null==(r=u.flip)?void 0:r.overflows)||[];if(T&&I.push(H[D]),L){let e=function(e,t,n){void 0===n&&(n=!1);let r=m(e),o=h(y(e)),i=g(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=R(l)),[l,R(l)]}(a,s,W);I.push(H[e[0]],H[e[1]])}if(z=[...z,{placement:a,overflows:I}],!I.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=B[e];if(t&&("alignment"!==L||M===y(t)||z.every(e=>y(e.placement)!==M||e.overflows[0]>0)))return{data:{index:e,overflows:z},reset:{placement:t}};let n=null==(i=z.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(O){case"bestFit":{let e=null==(l=z.filter(e=>{if(F){let t=y(e.placement);return t===M||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({...ea}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,a,{placement:u,rects:s,platform:c,elements:f}=t,{apply:h=()=>{},...g}=d(e,t),v=await P(t,g),w=p(u),x=m(u),b="y"===y(u),{width:E,height:C}=s.floating;"top"===w||"bottom"===w?(o=w,a=x===(await (null==c.isRTL?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(a=w,o="end"===x?"top":"bottom");let R=C-v.top-v.bottom,T=E-v.left-v.right,L=i(C-v[o],R),A=i(E-v[a],T),O=!t.middlewareData.shift,S=L,N=A;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(N=T),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=R),O&&!x){let e=l(v.left,0),t=l(v.right,0),n=l(v.top,0),r=l(v.bottom,0);b?N=E-2*(0!==e||0!==t?e+t:l(v.left,v.right)):S=C-2*(0!==n||0!==r?n+r:l(v.top,v.bottom))}await h({...t,availableWidth:N,availableHeight:S});let k=await c.getDimensions(f.floating);return E!==k.width||C!==k.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...ea,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),Q&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eb({element:n.current,padding:r}).fn(t):{}:n?eb({element:n,padding:r}).fn(t):{}}}))(e),options:[e,t]}))({element:Q,padding:F}),eQ({arrowWidth:ee,arrowHeight:et}),U&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=d(e,t);switch(r){case"referenceHidden":{let e=S(await P(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:N(e)}}}case"escaped":{let e=S(await P(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:N(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...ea})]}),[em,eh]=eZ(ef),eg=(0,eD.c)(V);(0,eM.N)(()=>{ed&&(null==eg||eg())},[ed,eg]);let ev=null==(n=ep.arrow)?void 0:n.x,ey=null==(o=ep.arrow)?void 0:o.y,eS=(null==(a=ep.arrow)?void 0:a.centerOffset)!==0,[ek,ej]=r.useState();return(0,eM.N)(()=>{Y&&ej(window.getComputedStyle(Y).zIndex)},[Y]),(0,eP.jsx)("div",{ref:eu.setFloating,"data-radix-popper-content-wrapper":"",style:{...es,transform:ed?es.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ek,"--radix-popper-transform-origin":[null==(s=ep.transformOrigin)?void 0:s.x,null==(c=ep.transformOrigin)?void 0:c.y].join(" "),...(null==(f=ep.hide)?void 0:f.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eP.jsx)(e$,{scope:L,placedSide:em,onArrowChange:Z,arrowX:ev,arrowY:ey,shouldHideArrow:eS,children:(0,eP.jsx)(eO.sG.div,{"data-side":em,"data-align":eh,...K,ref:q,style:{...K.style,animation:ed?void 0:"none"}})})})});eK.displayName=eU;var eG="PopperArrow",eY={top:"bottom",right:"left",bottom:"top",left:"right"},eX=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eV(eG,n),i=eY[o.placedSide];return(0,eP.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eP.jsx)(eS,{...r,ref:t,style:{...r.style,display:"block"}})})});function eq(e){return null!==e}eX.displayName=eG;var eQ=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null==(n=s.arrow)?void 0:n.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,m]=eZ(a),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!=(i=null==(r=s.arrow)?void 0:r.x)?i:0)+f/2,v=(null!=(l=null==(o=s.arrow)?void 0:o.y)?l:0)+d/2,y="",w="";return"bottom"===p?(y=c?h:"".concat(g,"px"),w="".concat(-d,"px")):"top"===p?(y=c?h:"".concat(g,"px"),w="".concat(u.floating.height+d,"px")):"right"===p?(y="".concat(-d,"px"),w=c?h:"".concat(v,"px")):"left"===p&&(y="".concat(u.floating.width+d,"px"),w=c?h:"".concat(v,"px")),{data:{x:y,y:w}}}});function eZ(e){let[t,n="center"]=e.split("-");return[t,n]}var eJ=eH,e0=ez,e1=eK,e3=eX},9559:(e,t,n)=>{n.d(t,{i:()=>a});var r,o=n(4773),i=n(3049),l=(r||(r=n.t(o,2)))[" useInsertionEffect ".trim().toString()]||i.N;function a({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,u]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),i=o.useRef(n),a=o.useRef(t);return l(()=>{a.current=t},[t]),o.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}({defaultProp:t,onChange:n}),s=void 0!==e,c=s?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}return[c,o.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u.current?.(n)}else a(t)},[s,e,a,u])]}Symbol("RADIX:SYNC_STATE")}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";new Intl.NumberFormat(void 0,{maximumFractionDigits:2}),new Intl.NumberFormat(void 0,{minimumFractionDigits:2,maximumFractionDigits:2});let e=(e,t,r)=>{let s=t.parent;for(let a=((null==s?void 0:s.row)||-1)+1;;++a){let s=e[a];if(s){if(!s.every(e=>{let{startTime:s,endTime:a}=e;return s+r>t.endTime||a-r<t.startTime}))continue}else s=[],e.push(s);t.row=a,s.push(t);break}},t=0;self.addEventListener("message",e=>{let r=e.data;switch(t=Math.max(t,r.requestId||0),r.type){case"calculateSpanPositions":s(r.root);break;case"filterSpans":i(r.root,r.filter)}});let r=(e,t)=>{for(let s of("parent"in e&&(e.row=-1,e.isVisible=!0,t.push(e)),e.children.slice().sort((e,t)=>e.startTime-t.startTime||t.duration-e.duration)))r(s,t)},s=s=>{let a=t,i=[],o=[];r(s,o);let l=Date.now()-10,n=-64,u=0,m=()=>{for(let e of i)e.sort((e,t)=>e.startTime-t.startTime);postMessage({requestId:a,type:"setRowsResult",rows:i,isEnd:!o.length}),l=Date.now(),n=u};for(;;){let t=o.shift();if(!t)return void m();e(i,t,.001),++u,(Date.now()-l>=15||u-n>=256)&&m()}},a=RegExp("(?<=^|\\s)(?<pair>(?<key>[\\w.]+):(?<value>\\S*))","g"),i=(e,r)=>{let s=t,i=new Set,o=r.replace(a,"").replace(/\s{2,}/g," ").trim(),l=[];for(let e of r.matchAll(a)){let{key:t="",value:r=""}=e.groups||{};l.push([t,r.toLocaleLowerCase()])}let n=e=>!!e.name.toLocaleLowerCase().includes(o)&&l.every(t=>{let[r,s]=t,a=e.attributes[r];return!!a&&String(a).toLocaleLowerCase().includes(s)}),u=e=>{for(let t of e.children)n(t.span)&&i.add(t.span.spanId),u(t)};u(e),postMessage({requestId:s,type:"updateHighlight",matches:i})}})(),_N_E={};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98],{951:(e,r)=>{function t(e){let r={};for(let[t,o]of e.entries()){let e=r[t];void 0===e?r[t]=o:Array.isArray(e)?e.push(o):r[t]=[e,o]}return r}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function n(e){let r=new URLSearchParams;for(let[t,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)r.append(t,o(e));else r.set(t,o(n));return r}function l(e){for(var r=arguments.length,t=Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,o]of r.entries())e.append(t,o)}return e}Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{assign:function(){return l},searchParamsToUrlQuery:function(){return t},urlQueryToSearchParams:function(){return n}})},1618:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return n}});let o=t(4773);function n(e,r){let t=(0,o.useRef)(null),n=(0,o.useRef)(null);return(0,o.useCallback)(o=>{if(null===o){let e=t.current;e&&(t.current=null,e());let r=n.current;r&&(n.current=null,r())}else e&&(t.current=l(e,o)),r&&(n.current=l(r,o))},[e,r])}function l(e,r){if("function"!=typeof e)return e.current=r,()=>{e.current=null};{let t=e(r);return"function"==typeof t?t:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},1801:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{formatUrl:function(){return l},formatWithValidation:function(){return i},urlObjectKeys:function(){return a}});let o=t(8242)._(t(951)),n=/https?|ftp|gopher|file/;function l(e){let{auth:r,hostname:t}=e,l=e.protocol||"",a=e.pathname||"",i=e.hash||"",s=e.query||"",c=!1;r=r?encodeURIComponent(r).replace(/%3A/i,":")+"@":"",e.host?c=r+e.host:t&&(c=r+(~t.indexOf(":")?"["+t+"]":t),e.port&&(c+=":"+e.port)),s&&"object"==typeof s&&(s=String(o.urlQueryToSearchParams(s)));let u=e.search||s&&"?"+s||"";return l&&!l.endsWith(":")&&(l+=":"),e.slashes||(!l||n.test(l))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),i&&"#"!==i[0]&&(i="#"+i),u&&"?"!==u[0]&&(u="?"+u),""+l+c+(a=a.replace(/[?#]/g,encodeURIComponent))+(u=u.replace("#","%23"))+i}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function i(e){return l(e)}},1884:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let o=t(2243),n=t(2965);function l(e){if(!(0,o.isAbsoluteUrl)(e))return!0;try{let r=(0,o.getLocationOrigin)(),t=new URL(e,r);return t.origin===r&&(0,n.hasBasePath)(t.pathname)}catch(e){return!1}}},2243:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{DecodeError:function(){return b},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return h},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return p},ST:function(){return f},WEB_VITALS:function(){return t},execOnce:function(){return o},getDisplayName:function(){return s},getLocationOrigin:function(){return a},getURL:function(){return i},isAbsoluteUrl:function(){return l},isResSent:function(){return c},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return u},stringifyError:function(){return v}});let t=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let r,t=!1;return function(){for(var o=arguments.length,n=Array(o),l=0;l<o;l++)n[l]=arguments[l];return t||(t=!0,r=e(...n)),r}}let n=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>n.test(e);function a(){let{protocol:e,hostname:r,port:t}=window.location;return e+"//"+r+(t?":"+t:"")}function i(){let{href:e}=window.location,r=a();return e.substring(r.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function u(e){let r=e.split("?");return r[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(r[1]?"?"+r.slice(1).join("?"):"")}async function d(e,r){let t=r.res||r.ctx&&r.ctx.res;if(!e.getInitialProps)return r.ctx&&r.Component?{pageProps:await d(r.Component,r.ctx)}:{};let o=await e.getInitialProps(r);if(t&&c(t))return o;if(!o)throw Object.defineProperty(Error('"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+o+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return o}let p="undefined"!=typeof performance,f=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class h extends Error{constructor(e,r){super(),this.message="Failed to load static file for page: "+e+" "+r}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},2928:(e,r,t)=>{function o(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=function e(r){var t,o,n="";if("string"==typeof r||"number"==typeof r)n+=r;else if("object"==typeof r)if(Array.isArray(r)){var l=r.length;for(t=0;t<l;t++)r[t]&&(o=e(r[t]))&&(n&&(n+=" "),n+=o)}else for(o in r)r[o]&&(n&&(n+=" "),n+=o);return n}(e))&&(o&&(o+=" "),o+=r);return o}t.d(r,{$:()=>o,A:()=>n});let n=o},3039:(e,r,t)=>{t.d(r,{A:()=>o});let o=(0,t(8258).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},3283:(e,r,t)=>{var o=t(2779);t.o(o,"useParams")&&t.d(r,{useParams:function(){return o.useParams}}),t.o(o,"usePathname")&&t.d(r,{usePathname:function(){return o.usePathname}}),t.o(o,"useRouter")&&t.d(r,{useRouter:function(){return o.useRouter}}),t.o(o,"useSearchParams")&&t.d(r,{useSearchParams:function(){return o.useSearchParams}})},5034:(e,r,t)=>{t.d(r,{s:()=>a,t:()=>l});var o=t(4773);function n(e,r){if("function"==typeof e)return e(r);null!=e&&(e.current=r)}function l(...e){return r=>{let t=!1,o=e.map(e=>{let o=n(e,r);return t||"function"!=typeof o||(t=!0),o});if(t)return()=>{for(let r=0;r<o.length;r++){let t=o[r];"function"==typeof t?t():n(e[r],null)}}}}function a(...e){return o.useCallback(l(...e),e)}},6488:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return t}});let t=e=>{}},7586:(e,r,t)=>{t.d(r,{F:()=>a});var o=t(2928);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,l=o.$,a=(e,r)=>t=>{var o;if((null==r?void 0:r.variants)==null)return l(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:a,defaultVariants:i}=r,s=Object.keys(a).map(e=>{let r=null==t?void 0:t[e],o=null==i?void 0:i[e];if(null===r)return null;let l=n(r)||n(o);return a[e][l]}),c=t&&Object.entries(t).reduce((e,r)=>{let[t,o]=r;return void 0===o||(e[t]=o),e},{});return l(e,s,null==r||null==(o=r.compoundVariants)?void 0:o.reduce((e,r)=>{let{class:t,className:o,...n}=r;return Object.entries(n).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...i,...c}[r]):({...i,...c})[r]===t})?[...e,t,o]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}},8033:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{callServer:function(){return o.callServer},createServerReference:function(){return l.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}});let o=t(3738),n=t(9094),l=t(9808)},8258:(e,r,t)=>{t.d(r,{A:()=>i});var o=t(4773);let n=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter((e,r,t)=>!!e&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim()};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,o.forwardRef)((e,r)=>{let{color:t="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:c="",children:u,iconNode:d,...p}=e;return(0,o.createElement)("svg",{ref:r,...l,width:a,height:a,stroke:t,strokeWidth:s?24*Number(i)/Number(a):i,className:n("lucide",c),...p},[...d.map(e=>{let[r,t]=e;return(0,o.createElement)(r,t)}),...Array.isArray(u)?u:[u]])}),i=(e,r)=>{let t=(0,o.forwardRef)((t,l)=>{let{className:i,...s}=t;return(0,o.createElement)(a,{ref:l,iconNode:r,className:n("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),i),...s})});return t.displayName="".concat(e),t}},8414:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{default:function(){return g},useLinkStatus:function(){return y}});let o=t(8242),n=t(5386),l=o._(t(4773)),a=t(1801),i=t(8175),s=t(1618),c=t(2243),u=t(9629);t(7490);let d=t(4686),p=t(1884),f=t(102);t(6488);let b=t(81);function m(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function g(e){var r;let t,o,a,[g,y]=(0,l.useOptimistic)(d.IDLE_LINK_STATUS),v=(0,l.useRef)(null),{href:x,as:w,children:k,prefetch:P=null,passHref:j,replace:S,shallow:_,scroll:E,onClick:z,onMouseEnter:C,onTouchStart:O,legacyBehavior:N=!1,onNavigate:R,ref:A,unstable_dynamicOnHover:M,...T}=e;t=k,N&&("string"==typeof t||"number"==typeof t)&&(t=(0,n.jsx)("a",{children:t}));let I=l.default.useContext(i.AppRouterContext),L=!1!==P,U=!1!==P?null===(r=P)||"auto"===r?b.FetchStrategy.PPR:b.FetchStrategy.Full:b.FetchStrategy.PPR,{href:F,as:$}=l.default.useMemo(()=>{let e=m(x);return{href:e,as:w?m(w):e}},[x,w]);N&&(o=l.default.Children.only(t));let D=N?o&&"object"==typeof o&&o.ref:A,W=l.default.useCallback(e=>(null!==I&&(v.current=(0,d.mountLinkInstance)(e,F,I,U,L,y)),()=>{v.current&&((0,d.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,d.unmountPrefetchableInstance)(e)}),[L,F,I,U,y]),G={ref:(0,s.useMergedRef)(W,D),onClick(e){N||"function"!=typeof z||z(e),N&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),I&&(e.defaultPrevented||function(e,r,t,o,n,a,i){let{nodeName:s}=e.currentTarget;if(!("A"===s.toUpperCase()&&function(e){let r=e.currentTarget.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,p.isLocalURL)(r)){n&&(e.preventDefault(),location.replace(r));return}if(e.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}l.default.startTransition(()=>{(0,f.dispatchNavigateAction)(t||r,n?"replace":"push",null==a||a,o.current)})}}(e,F,$,v,S,E,R))},onMouseEnter(e){N||"function"!=typeof C||C(e),N&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),I&&L&&(0,d.onNavigationIntent)(e.currentTarget,!0===M)},onTouchStart:function(e){N||"function"!=typeof O||O(e),N&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),I&&L&&(0,d.onNavigationIntent)(e.currentTarget,!0===M)}};return(0,c.isAbsoluteUrl)($)?G.href=$:N&&!j&&("a"!==o.type||"href"in o.props)||(G.href=(0,u.addBasePath)($)),a=N?l.default.cloneElement(o,G):(0,n.jsx)("a",{...T,...G,children:t}),(0,n.jsx)(h.Provider,{value:g,children:a})}let h=(0,l.createContext)(d.IDLE_LINK_STATUS),y=()=>(0,l.useContext)(h);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},8997:(e,r,t)=>{t.d(r,{QP:()=>W});let o=(e,r)=>{if(0===e.length)return r.classGroupId;let t=e[0],n=r.nextPart.get(t),l=n?o(e.slice(1),n):void 0;if(l)return l;if(0===r.validators.length)return;let a=e.join("-");return r.validators.find(({validator:e})=>e(a))?.classGroupId},n=/^\[(.+)\]$/,l=(e,r,t,o)=>{e.forEach(e=>{if("string"==typeof e){(""===e?r:a(r,e)).classGroupId=t;return}if("function"==typeof e)return i(e)?void l(e(o),r,t,o):void r.validators.push({validator:e,classGroupId:t});Object.entries(e).forEach(([e,n])=>{l(n,a(r,e),t,o)})})},a=(e,r)=>{let t=e;return r.split("-").forEach(e=>{t.nextPart.has(e)||t.nextPart.set(e,{nextPart:new Map,validators:[]}),t=t.nextPart.get(e)}),t},i=e=>e.isThemeGetter,s=(e,r)=>r?e.map(([e,t])=>[e,t.map(e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[r+e,t])):e)]):e,c=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(e=>{"["===e[0]?(r.push(...t.sort(),e),t=[]):t.push(e)}),r.push(...t.sort()),r},u=/\s+/;function d(){let e,r,t=0,o="";for(;t<arguments.length;)(e=arguments[t++])&&(r=p(e))&&(o&&(o+=" "),o+=r);return o}let p=e=>{let r;if("string"==typeof e)return e;let t="";for(let o=0;o<e.length;o++)e[o]&&(r=p(e[o]))&&(t&&(t+=" "),t+=r);return t},f=e=>{let r=r=>r[e]||[];return r.isThemeGetter=!0,r},b=/^\[(?:([a-z-]+):)?(.+)\]$/i,m=/^\d+\/\d+$/,g=new Set(["px","full","screen"]),h=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,y=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,v=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,x=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,w=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>j(e)||g.has(e)||m.test(e),P=e=>L(e,"length",U),j=e=>!!e&&!Number.isNaN(Number(e)),S=e=>L(e,"number",j),_=e=>!!e&&Number.isInteger(Number(e)),E=e=>e.endsWith("%")&&j(e.slice(0,-1)),z=e=>b.test(e),C=e=>h.test(e),O=new Set(["length","size","percentage"]),N=e=>L(e,O,F),R=e=>L(e,"position",F),A=new Set(["image","url"]),M=e=>L(e,A,D),T=e=>L(e,"",$),I=()=>!0,L=(e,r,t)=>{let o=b.exec(e);return!!o&&(o[1]?"string"==typeof r?o[1]===r:r.has(o[1]):t(o[2]))},U=e=>y.test(e)&&!v.test(e),F=()=>!1,$=e=>x.test(e),D=e=>w.test(e);Symbol.toStringTag;let W=function(e,...r){let t,a,i,p=function(c){let u;return a=(t={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,t=new Map,o=new Map,n=(n,l)=>{t.set(n,l),++r>e&&(r=0,o=t,t=new Map)};return{get(e){let r=t.get(e);return void 0!==r?r:void 0!==(r=o.get(e))?(n(e,r),r):void 0},set(e,r){t.has(e)?t.set(e,r):n(e,r)}}})((u=r.reduce((e,r)=>r(e),e())).cacheSize),parseClassName:(e=>{let{separator:r,experimentalParseClassName:t}=e,o=1===r.length,n=r[0],l=r.length,a=e=>{let t,a=[],i=0,s=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===i){if(u===n&&(o||e.slice(c,c+l)===r)){a.push(e.slice(s,c)),s=c+l;continue}if("/"===u){t=c;continue}}"["===u?i++:"]"===u&&i--}let c=0===a.length?e:e.substring(s),u=c.startsWith("!"),d=u?c.substring(1):c;return{modifiers:a,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:t&&t>s?t-s:void 0}};return t?e=>t({className:e,parseClassName:a}):a})(u),...(e=>{let r=(e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return s(Object.entries(e.classGroups),t).forEach(([e,t])=>{l(t,o,e,r)}),o})(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:e=>{let t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),o(t,r)||(e=>{if(n.test(e)){let r=n.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}})(e)},getConflictingClassGroupIds:(e,r)=>{let o=t[e]||[];return r&&a[e]?[...o,...a[e]]:o}}})(u)}).cache.get,i=t.cache.set,p=f,f(c)};function f(e){let r=a(e);if(r)return r;let o=((e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n}=r,l=[],a=e.trim().split(u),i="";for(let e=a.length-1;e>=0;e-=1){let r=a[e],{modifiers:s,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:p}=t(r),f=!!p,b=o(f?d.substring(0,p):d);if(!b){if(!f||!(b=o(d))){i=r+(i.length>0?" "+i:i);continue}f=!1}let m=c(s).join(":"),g=u?m+"!":m,h=g+b;if(l.includes(h))continue;l.push(h);let y=n(b,f);for(let e=0;e<y.length;++e){let r=y[e];l.push(g+r)}i=r+(i.length>0?" "+i:i)}return i})(e,t);return i(e,o),o}return function(){return p(d.apply(null,arguments))}}(()=>{let e=f("colors"),r=f("spacing"),t=f("blur"),o=f("brightness"),n=f("borderColor"),l=f("borderRadius"),a=f("borderSpacing"),i=f("borderWidth"),s=f("contrast"),c=f("grayscale"),u=f("hueRotate"),d=f("invert"),p=f("gap"),b=f("gradientColorStops"),m=f("gradientColorStopPositions"),g=f("inset"),h=f("margin"),y=f("opacity"),v=f("padding"),x=f("saturate"),w=f("scale"),O=f("sepia"),A=f("skew"),L=f("space"),U=f("translate"),F=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",z,r],W=()=>[z,r],G=()=>["",k,P],B=()=>["auto",j,z],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",z],X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[j,z];return{cacheSize:500,separator:":",theme:{colors:[I],spacing:[k,P],blur:["none","",C,z],brightness:J(),borderColor:[e],borderRadius:["none","","full",C,z],borderSpacing:W(),borderWidth:G(),contrast:J(),grayscale:Z(),hueRotate:J(),invert:Z(),gap:W(),gradientColorStops:[e],gradientColorStopPositions:[E,P],inset:D(),margin:D(),opacity:J(),padding:W(),saturate:J(),scale:J(),sepia:Z(),skew:J(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",z]}],container:["container"],columns:[{columns:[C]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...K(),z]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_,z]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",z]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",_,z]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:["full",_,z]},z]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[_,z]},z]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",z]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",z,r]}],"min-w":[{"min-w":[z,r,"min","max","fit"]}],"max-w":[{"max-w":[z,r,"none","full","min","max","fit","prose",{screen:[C]},C]}],h:[{h:[z,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[z,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[z,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[z,r,"auto","min","max","fit"]}],"font-size":[{text:["base",C,P]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",S]}],"font-family":[{font:[I]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",z]}],"line-clamp":[{"line-clamp":["none",j,S]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,z]}],"list-image":[{"list-image":["none",z]}],"list-style-type":[{list:["none","disc","decimal",z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",k,P]}],"underline-offset":[{"underline-offset":["auto",k,z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),R]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",N]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},M]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:V()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[k,z]}],"outline-w":[{outline:[k,P]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[k,P]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",C,T]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",C,z]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",z]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",z]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[_,z]}],"translate-x":[{"translate-x":[U]}],"translate-y":[{"translate-y":[U]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[k,P,S]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})},9280:(e,r,t)=>{t.d(r,{DX:()=>i,Dc:()=>c,TL:()=>a});var o=t(4773),n=t(5034),l=t(5386);function a(e){let r=function(e){let r=o.forwardRef((e,r)=>{let{children:t,...l}=e;if(o.isValidElement(t)){var a;let e,i,s=(a=t,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),c=function(e,r){let t={...r};for(let o in r){let n=e[o],l=r[o];/^on[A-Z]/.test(o)?n&&l?t[o]=(...e)=>{let r=l(...e);return n(...e),r}:n&&(t[o]=n):"style"===o?t[o]={...n,...l}:"className"===o&&(t[o]=[n,l].filter(Boolean).join(" "))}return{...e,...t}}(l,t.props);return t.type!==o.Fragment&&(c.ref=r?(0,n.t)(r,s):s),o.cloneElement(t,c)}return o.Children.count(t)>1?o.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}(e),t=o.forwardRef((e,t)=>{let{children:n,...a}=e,i=o.Children.toArray(n),s=i.find(u);if(s){let e=s.props.children,n=i.map(r=>r!==s?r:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,l.jsx)(r,{...a,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,l.jsx)(r,{...a,ref:t,children:n})});return t.displayName=`${e}.Slot`,t}var i=a("Slot"),s=Symbol("radix.slottable");function c(e){let r=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});return r.displayName=`${e}.Slottable`,r.__radixId=s,r}function u(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{1939:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=l(5386),n=l(4207),o=function(){return(0,r.jsx)("html",{children:(0,r.jsx)("body",{children:(0,r.jsx)(n.HTTPAccessErrorFallback,{status:404,message:"This page could not be found."})})})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3466:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return l(1939)}])},4207:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}});let r=l(5386),n=l(6362);function o(e){let{status:t,message:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:t+": "+l}),(0,r.jsx)("div",{style:n.styles.error,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,r.jsx)("h1",{className:"next-error-h1",style:n.styles.h1,children:t}),(0,r.jsx)("div",{style:n.styles.desc,children:(0,r.jsx)("h2",{style:n.styles.h2,children:l})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"styles",{enumerable:!0,get:function(){return l}});let l={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{e.O(0,[909,624,358],()=>e(e.s=3466)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{2287:(e,t,a)=>{"use strict";a.d(t,{$g:()=>d,Oc:()=>o,cn:()=>n,yQ:()=>l});var r=a(2928),s=a(8997);let l=10;function n(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,r.$)(t))}let o=5e3;function d(e,t,a){return a?"Page ".concat(e," of ").concat(t,"+"):"Page ".concat(e," of ").concat(t)}},2441:()=>{},6016:(e,t,a)=>{"use strict";a.d(t,{$:()=>i});var r=a(5386),s=a(9280),l=a(7586),n=a(4773),o=a(2287);let d=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),i=n.forwardRef((e,t)=>{let{className:a,variant:l,size:n,asChild:i=!1,...c}=e,u=i?s.DX:"button";return(0,r.jsx)(u,{className:(0,o.cn)(d({variant:l,size:n,className:a})),ref:t,...c})});i.displayName="Button"},6426:e=>{e.exports={style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"},className:"__className_188709",variable:"__variable_188709"}},7122:(e,t,a)=>{"use strict";a.d(t,{Fc:()=>d,TN:()=>c,XL:()=>i});var r=a(5386),s=a(7586),l=a(4773),n=a(2287);let o=(0,s.F)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),d=l.forwardRef((e,t)=>{let{className:a,variant:s,...l}=e;return(0,r.jsx)("div",{ref:t,role:"alert",className:(0,n.cn)(o({variant:s}),a),...l})});d.displayName="Alert";let i=l.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("h5",{ref:t,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",a),...s})});i.displayName="AlertTitle";let c=l.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",a),...s})});c.displayName="AlertDescription"},7222:e=>{e.exports={style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"},className:"__className_9a8899",variable:"__variable_9a8899"}},7923:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,6426,23)),Promise.resolve().then(a.t.bind(a,7222,23)),Promise.resolve().then(a.t.bind(a,2441,23)),Promise.resolve().then(a.bind(a,9373))},8052:(e,t,a)=>{"use strict";a.d(t,{Nt:()=>o,dL:()=>d,g0:()=>i,nO:()=>c});var r=a(3283),s=a(4773);let l={backend:"embedded",dataDir:"../../workbench/nextjs-turbopack/.next/workflow-data",port:"3000",env:"production"},n=["backend","env","authToken","project","team","port","dataDir"];function o(){let e=(0,r.useSearchParams)();return(0,s.useMemo)(()=>{let t={...l};for(let a of n){let r=e.get(a);r&&(t[a]=r)}return t},[e])}function d(){let e=(0,r.useRouter)(),t=(0,r.usePathname)(),a=(0,r.useSearchParams)();return(0,s.useMemo)(()=>r=>{let s=new URLSearchParams(a.toString());for(let e of n){let t=r[e];null!=t&&""!==t?(t!==l[e]||a.has(e))&&s.set(e,t):s.delete(e)}let o=s.toString(),d=o?"".concat(t,"?").concat(o):t;e.push(d)},[e,t,a])}function i(e,t,a){let r=function(e){let t=new URLSearchParams;for(let a of n){let r=e[a];null!=r&&""!==r&&r!==l[a]&&t.set(a,r)}return t}(t);if(a)for(let[e,t]of Object.entries(a))null!=t&&""!==t&&r.set(e,t);let s=r.toString();return s?"".concat(e,"?").concat(s):e}let c=e=>({WORKFLOW_TARGET_WORLD:e.backend,WORKFLOW_VERCEL_ENV:e.env,WORKFLOW_VERCEL_AUTH_TOKEN:e.authToken,WORKFLOW_VERCEL_PROJECT:e.project,WORKFLOW_VERCEL_TEAM:e.team})},8257:(e,t,a)=>{"use strict";a.d(t,{ZI:()=>i,k$:()=>d,m_:()=>o});var r=a(5386),s=a(8251),l=a(4773),n=a(2287);s.Kq;let o=s.bL,d=s.l9,i=l.forwardRef((e,t)=>{let{className:a,sideOffset:l=4,...o}=e;return(0,r.jsx)(s.UC,{ref:t,sideOffset:l,className:(0,n.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...o})});i.displayName=s.UC.displayName},9373:(e,t,a)=>{"use strict";a.d(t,{LayoutClient:()=>R});var r=a(5386),s=a(8251),l=a(8414),n=a.n(l),o=a(3283),d=a(4773),i=a(8258);let c=(0,i.A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var u=a(8257);function f(e){let{config:t}=e,{provider:a,parts:s}=((e,t)=>{if("vercel"===e){let e=[];return t.env&&e.push("env: ".concat(t.env)),t.project&&e.push("project: ".concat(t.project)),t.team&&e.push("team: ".concat(t.team)),{provider:"Vercel",parts:e}}if("embedded"===e){let e=[];return t.dataDir&&e.push("dir: ".concat(t.dataDir)),t.port&&e.push("port: ".concat(t.port)),{provider:"Embedded",parts:e}}return{provider:t.backend||"unknown",parts:[]}})(t.backend||"embedded",t);return(0,r.jsxs)("div",{className:"text-sm text-muted-foreground flex items-center gap-2",children:[(0,r.jsxs)("span",{className:"font-medium",children:["Connected to: ",a]}),(0,r.jsxs)(u.m_,{children:[(0,r.jsx)(u.k$,{asChild:!0,children:(0,r.jsx)(c,{className:"w-4 h-4"})}),(0,r.jsx)(u.ZI,{children:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:s.map(e=>(0,r.jsx)("span",{children:e},e))})})]})]})}let m=(0,i.A)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),p=(0,i.A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var h=a(3039),x=a(7122),g=a(6016),v=a(2287);let b=d.forwardRef((e,t)=>{let{className:a,type:s,...l}=e;return(0,r.jsx)("input",{type:s,className:(0,v.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...l})});b.displayName="Input";var j=a(63),N=d.forwardRef((e,t)=>(0,r.jsx)(j.sG.label,{...e,ref:t,onMouseDown:t=>{var a;t.target.closest("button, input, select, textarea")||(null==(a=e.onMouseDown)||a.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));N.displayName="Label";let y=(0,a(7586).F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),w=d.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(N,{ref:t,className:(0,v.cn)(y(),a),...s})});w.displayName=N.displayName;var C=a(9432),k=a(8052),L=a(8033);let V=(0,L.createServerReference)("40c434477dd067342283c21611a4ca7ee82e4d6aec",L.callServer,void 0,L.findSourceMapURL,"validateWorldConfig");function H(){let e=(0,k.Nt)(),t=(0,k.dL)(),[a,s]=(0,d.useState)(!1),[l,n]=(0,d.useState)(e),[o,i]=(0,d.useState)([]),[c,u]=(0,d.useState)(!1),f="embedded"===(l.backend||"embedded");(0,d.useEffect)(()=>{n(e)},[e]);let v=async()=>{u(!0);try{let e=await V(l);i(e),0===e.length&&(t(l),s(!1))}catch(e){console.error("Validation error:",e),i([{field:"general",message:e instanceof Error?e.message:"Unknown error"}])}finally{u(!1)}},j=(e,t)=>{n(a=>({...a,[e]:t})),i(t=>t.filter(t=>t.field!==e))},N=e=>{var t;return null==(t=o.find(t=>t.field===e))?void 0:t.message},y=JSON.stringify(l)!==JSON.stringify(e)||o.length>0;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:()=>s(!0),className:"p-2 rounded-full hover:bg-accent transition-colors",title:"Configuration",children:(0,r.jsx)(m,{className:"h-6 w-6"})}),a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",className:"fixed inset-0 bg-black/50 z-40 cursor-default",onClick:()=>s(!1),"aria-label":"Close configuration panel"}),(0,r.jsx)("div",{className:"fixed top-0 right-0 h-full w-96 bg-background border-l shadow-lg z-50 overflow-y-auto",children:(0,r.jsxs)("div",{className:"p-6",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold",children:"Configuration"}),(0,r.jsx)("button",{type:"button",onClick:()=>s(!1),className:"p-2 hover:bg-accent rounded-full transition-colors",children:(0,r.jsx)(p,{className:"h-5 w-5"})})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(w,{htmlFor:"backend",children:"Backend"}),(0,r.jsxs)(C.l6,{value:l.backend||"embedded",onValueChange:e=>j("backend",e),children:[(0,r.jsx)(C.bq,{id:"backend",children:(0,r.jsx)(C.yv,{placeholder:"Select backend"})}),(0,r.jsxs)(C.gC,{children:[(0,r.jsx)(C.eb,{value:"embedded",children:"Embedded"}),(0,r.jsx)(C.eb,{value:"vercel",children:"Vercel"})]})]})]}),f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(w,{htmlFor:"port",children:"Port"}),(0,r.jsx)(b,{id:"port",value:l.port||"",onChange:e=>j("port",e.target.value),placeholder:"3001",className:N("port")?"border-destructive":""}),N("port")&&(0,r.jsx)("p",{className:"text-sm text-destructive",children:N("port")})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(w,{htmlFor:"dataDir",children:"Data Directory"}),(0,r.jsx)(b,{id:"dataDir",value:l.dataDir||"",onChange:e=>j("dataDir",e.target.value),placeholder:".workflow-data or .next/workflow-data",className:N("dataDir")?"border-destructive":""}),N("dataDir")&&(0,r.jsx)("p",{className:"text-sm text-destructive",children:N("dataDir")}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:"Path to the workflow data directory. Can be relative or absolute."})]})]}),!f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(w,{htmlFor:"env",children:"Environment"}),(0,r.jsx)(b,{id:"env",value:l.env||"production",onChange:e=>j("env",e.target.value),placeholder:"production or preview"})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(w,{htmlFor:"authToken",children:"Auth Token"}),(0,r.jsx)(b,{id:"authToken",type:"password",value:l.authToken||"",onChange:e=>j("authToken",e.target.value),placeholder:"Vercel auth token"})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(w,{htmlFor:"project",children:"Project ID"}),(0,r.jsx)(b,{id:"project",value:l.project||"",onChange:e=>j("project",e.target.value),placeholder:"prj_..."})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(w,{htmlFor:"team",children:"Team ID"}),(0,r.jsx)(b,{id:"team",value:l.team||"",onChange:e=>j("team",e.target.value),placeholder:"team_..."})]})]}),o.length>0&&(0,r.jsxs)(x.Fc,{variant:"destructive",children:[(0,r.jsx)(h.A,{className:"h-4 w-4"}),(0,r.jsx)(x.XL,{children:"Configuration Error"}),(0,r.jsx)(x.TN,{children:(0,r.jsx)("ul",{className:"list-disc list-inside space-y-1",children:o.map((e,t)=>(0,r.jsxs)("li",{children:["general"!==e.field&&(0,r.jsxs)("strong",{children:[e.field,":"]})," ",e.message]},"error-".concat(t)))})})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 pt-4",children:[(0,r.jsx)(g.$,{onClick:v,disabled:c||!y,className:"w-full",children:c?"Validating...":"Apply Configuration"}),(0,r.jsx)(g.$,{variant:"outline",onClick:()=>{n(e),i([]),s(!1)},className:"w-full",children:"Cancel"})]})]})]})})]})]})}function _(){let{className:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.jsxs)("svg",{viewBox:"0 0 1792 240",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e||"h-6 w-auto",role:"img","aria-label":"Workflow Logo",children:[(0,r.jsx)("title",{children:"Workflow Logo"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M753.933 55.627C806.249 55.627 840.685 91.718 840.685 147.345C840.685 202.971 806.249 239.062 753.933 239.062C701.286 239.062 666.851 202.971 666.851 147.345C666.851 91.7181 701.286 55.6271 753.933 55.627ZM753.933 90.0625C726.451 90.0626 710.889 111.254 710.889 147.345C710.889 183.436 726.451 204.627 753.933 204.627C781.084 204.627 796.978 183.436 796.978 147.345C796.978 111.254 781.084 90.0625 753.933 90.0625Z",className:"fill-foreground"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1445.65 55.627C1497.96 55.627 1532.4 91.718 1532.4 147.345C1532.4 202.971 1497.96 239.062 1445.65 239.062C1393 239.062 1358.56 202.971 1358.56 147.345C1358.56 91.718 1393 55.627 1445.65 55.627ZM1445.65 90.0625C1418.16 90.0625 1402.6 111.254 1402.6 147.345C1402.6 183.436 1418.16 204.627 1445.65 204.627C1472.8 204.627 1488.69 183.436 1488.69 147.345C1488.69 111.254 1472.8 90.0626 1445.65 90.0625Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M902.473 94.0361C909.095 70.8584 922.34 59.5997 944.855 59.5996H961.079V92.3799H944.524C916.38 92.38 904.128 106.949 904.128 135.094V235.089H861.746V59.5996H901.48L902.473 94.0361Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M1019.25 138.735L1091.11 59.5996H1143.09L1074.55 132.113L1146.4 235.089H1098.72L1046.74 157.609L1019.25 187.078V235.089H976.872V0H1019.25V138.735Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M1263.63 32.7803H1235.82C1224.89 32.7803 1217.28 41.3893 1217.28 54.9648V59.5996H1260.98V92.3799H1217.28V235.089H1174.56V92.3799H1149.4V59.5996H1174.56V54.9648C1174.56 19.5359 1191.78 0 1230.85 0H1263.63V32.7803Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M1322.58 189.396C1322.58 197.673 1327.22 202.309 1335.5 202.31H1348.74V235.089H1324.57C1298.08 235.089 1280.2 218.534 1280.2 191.052V0H1322.58V189.396Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M1604.59 186.416L1641.02 59.5996H1677.77L1713.86 186.416L1749.95 59.5996H1791.34L1737.7 235.089H1694.32L1659.56 116.883L1624.79 235.089H1581.42L1527.77 59.5996H1568.83L1604.59 186.416Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M472.173 174.847L514.895 0.671875H554.66L598.038 174.847L640.432 0.671875H685.454L623.015 234H575.692L534.942 77.5713L493.863 234H446.869L384.1 0.671875H429.122L472.173 174.847Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M125.776 0C120.929 1.64945e-05 117 3.9291 117 8.77539V61.4248C117 66.2711 120.929 70.2002 125.776 70.2002H160.875L161.253 70.2051C169.032 70.4023 175.301 76.6734 175.495 84.4531L175.5 84.8252V143.325C175.5 148.171 179.429 152.101 184.276 152.101H219.375L219.753 152.105C227.53 152.303 233.798 158.571 233.995 166.348L234 166.726V225.225C234 230.071 237.929 234 242.776 234H295.425C300.271 234 304.2 230.071 304.2 225.225V172.575C304.2 167.729 300.271 163.8 295.425 163.8H260.25C252.334 163.76 245.905 157.43 245.705 149.553L245.7 149.176V90.6758C245.7 85.8295 241.771 81.9004 236.925 81.9004H201.825C193.874 81.9004 187.405 75.5551 187.205 67.6523L187.2 67.2754V8.77539C187.2 3.9291 183.271 1.64951e-05 178.425 0H125.776Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M67.2755 81.9004C62.4293 81.9004 58.5002 85.8295 58.5002 90.6758V143.325C58.5004 148.171 62.4294 152.101 67.2755 152.101H102.375L102.753 152.105C110.53 152.303 116.798 158.571 116.995 166.348L117 166.726V225.225C117 230.071 120.929 234 125.776 234H178.425C183.271 234 187.2 230.071 187.2 225.225V172.575C187.2 167.729 183.271 163.8 178.425 163.8H143.25C135.334 163.76 128.905 157.43 128.705 149.553L128.7 149.176V90.6758C128.7 85.8295 124.771 81.9004 119.925 81.9004H67.2755Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M8.77454 163.8C3.92844 163.8 0.00012207 167.729 0.00012207 172.575V225.225C0.00012207 230.071 3.92844 234 8.77454 234H61.4249C66.2712 234 70.2003 230.071 70.2003 225.225V172.575C70.2003 167.729 66.2712 163.8 61.4249 163.8H8.77454Z",className:"fill-foreground"})]})}function R(e){let{children:t}=e,a=(0,o.useRouter)(),l=(0,o.useSearchParams)(),i=(0,k.Nt)(),c=l.get("id"),u=l.get("runId"),m=l.get("stepId"),p=l.get("hookId"),h=l.get("resource"),x=l.get("theme")||"system";return(0,d.useEffect)(()=>{let e=document.documentElement;e.classList.remove("light","dark"),("light"===x||"dark"===x)&&e.classList.add(x)},[x]),(0,d.useEffect)(()=>{let e;if(!h){if(u){let e;e=m?(0,k.g0)("/run/".concat(u),i,{sidebar:"step",stepId:m}):p?(0,k.g0)("/run/".concat(u),i,{sidebar:"hook",hookId:p}):(0,k.g0)("/run/".concat(u),i),a.push(e)}return}if(c){if("run"===h)e=(0,k.g0)("/run/".concat(c),i);else if("step"===h&&u)e=(0,k.g0)("/run/".concat(u),i,{sidebar:"step",stepId:c});else if("stream"===h&&u)e=(0,k.g0)("/run/".concat(u),i,{sidebar:"stream",streamId:c});else if("event"===h&&u)e=(0,k.g0)("/run/".concat(u),i,{sidebar:"event",eventId:c});else if("hook"===h&&u)e=(0,k.g0)("/run/".concat(u),i,{sidebar:"hook",hookId:c});else{if("hook"!==h||u)return void console.warn("Can't deep-link to ".concat(h," ").concat(c,"."));e=(0,k.g0)("/",i,{sidebar:"hook",hookId:c})}a.push(e)}},[h,c,u,m,p,a,i]),(0,r.jsx)("div",{className:"min-h-screen p-8",children:(0,r.jsx)(s.Bc,{delayDuration:0,children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,r.jsx)("div",{className:"flex items-start justify-between",children:(0,r.jsxs)("div",{className:"mb-8 items-center flex justify-between w-full",children:[(0,r.jsx)(n(),{href:"https://useworkflow.dev",target:"_blank",children:(0,r.jsx)("h1",{className:"flex items-center gap-2 mb-2",title:"Workflow Observability",children:(0,r.jsx)(_,{})})}),(0,r.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,r.jsx)(f,{config:i}),(0,r.jsx)(H,{})]})]})}),t]})})})}},9432:(e,t,a)=>{"use strict";a.d(t,{bq:()=>f,eb:()=>x,gC:()=>h,l6:()=>c,yv:()=>u});var r=a(5386),s=a(2304),l=a(406),n=a(7163),o=a(7536),d=a(4773),i=a(2287);let c=s.bL;s.YJ;let u=s.WT,f=d.forwardRef((e,t)=>{let{className:a,children:n,...o}=e;return(0,r.jsxs)(s.l9,{ref:t,className:(0,i.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...o,children:[n,(0,r.jsx)(s.In,{asChild:!0,children:(0,r.jsx)(l.A,{className:"h-4 w-4 opacity-50"})})]})});f.displayName=s.l9.displayName;let m=d.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)(s.PP,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",a),...l,children:(0,r.jsx)(n.A,{className:"h-4 w-4"})})});m.displayName=s.PP.displayName;let p=d.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.wn,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",a),...n,children:(0,r.jsx)(l.A,{className:"h-4 w-4"})})});p.displayName=s.wn.displayName;let h=d.forwardRef((e,t)=>{let{className:a,children:l,position:n="popper",...o}=e;return(0,r.jsx)(s.ZL,{children:(0,r.jsxs)(s.UC,{ref:t,className:(0,i.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:n,...o,children:[(0,r.jsx)(m,{}),(0,r.jsx)(s.LM,{className:(0,i.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),(0,r.jsx)(p,{})]})})});h.displayName=s.UC.displayName,d.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)(s.JU,{ref:t,className:(0,i.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...l})}).displayName=s.JU.displayName;let x=d.forwardRef((e,t)=>{let{className:a,children:l,...n}=e;return(0,r.jsxs)(s.q7,{ref:t,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(s.VF,{children:(0,r.jsx)(o.A,{className:"h-4 w-4"})})}),(0,r.jsx)(s.p4,{children:l})]})});x.displayName=s.q7.displayName,d.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)(s.wv,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",a),...l})}).displayName=s.wv.displayName}},e=>{e.O(0,[880,98,724,687,909,624,358],()=>e(e.s=7923)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{3569:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>O});var a=t(5386),r=t(3283),n=t(7394),l=t(1402),d=t(5456),o=t(7973),i=t(4773),c=t(8414),h=t.n(c),m=t(2287);let x=i.forwardRef((e,s)=>{let{className:t,href:r,children:n,...l}=e,d=r.startsWith("http")?r:"https://useworkflow.dev/docs/".concat(r.replace(/^\//,""));return(0,a.jsx)(h(),{href:d,className:(0,m.cn)("font-medium underline underline-offset-4 transition-colors",t),style:{color:"var(--ds-blue-600)"},target:"_blank",rel:"noopener noreferrer",ref:s,...l,children:n})});x.displayName="DocsLink";var u=t(8257),f=t(960),j=t(316),p=t(8258);let g=(0,p.A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),N=(0,p.A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var v=t(7122),w=t(6016);let y=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:"relative w-full overflow-auto",children:(0,a.jsx)("table",{ref:s,className:(0,m.cn)("w-full caption-bottom text-sm",t),...r})})});y.displayName="Table";let b=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("thead",{ref:s,className:(0,m.cn)("[&_tr]:border-b",t),...r})});b.displayName="TableHeader";let k=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("tbody",{ref:s,className:(0,m.cn)("[&_tr:last-child]:border-0",t),...r})});k.displayName="TableBody",i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("tfoot",{ref:s,className:(0,m.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...r})}).displayName="TableFooter";let C=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("tr",{ref:s,className:(0,m.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...r})});C.displayName="TableRow";let I=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("th",{ref:s,className:(0,m.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...r})});I.displayName="TableHead";let R=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("td",{ref:s,className:(0,m.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...r})});R.displayName="TableCell",i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("caption",{ref:s,className:(0,m.cn)("mt-4 text-sm text-muted-foreground",t),...r})}).displayName="TableCaption";let M=e=>{var s,t;return(null==(s=e.message)?void 0:s.includes("403"))||(null==(t=e.message)?void 0:t.includes("Forbidden"))||403===e.status?"Your current Vercel account does not have access to this data. Please use `vercel login` to log in, or use `vercel switch` to ensure you can access the correct team.":e instanceof Error?e.message:"An error occurred"};var A=t(9432);function S(e){let{value:s,onChange:t,options:r=[5,10,20,50,100]}=e;return(0,a.jsxs)(A.l6,{value:String(s),onValueChange:e=>t(Number(e)),children:[(0,a.jsx)(A.bq,{className:"h-9",children:(0,a.jsx)(A.yv,{})}),(0,a.jsx)(A.gC,{children:r.map(e=>(0,a.jsx)(A.eb,{value:String(e),children:(0,a.jsxs)("span",{className:"pr-2",children:[e," / page"]})},e))})]})}function L(e){let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,m.cn)("animate-pulse rounded-md bg-muted",s),...t})}let T=e=>{let{rows:s}=e;return Array.from({length:s},(e,s)=>(0,a.jsxs)("div",{className:"flex gap-4 py-3",children:[(0,a.jsx)(L,{className:"h-4 w-1/4"}),(0,a.jsx)(L,{className:"h-4 w-1/4"}),(0,a.jsx)(L,{className:"h-4 w-1/6"}),(0,a.jsx)(L,{className:"h-4 w-1/6"}),(0,a.jsx)(L,{className:"h-4 w-1/6"})]},"skeleton-row-".concat(s)))};function E(e){let{title:s,rows:t=m.yQ,bodyOnly:r=!1}=e;return r?(0,a.jsx)(T,{rows:t}):(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[s?(0,a.jsx)(L,{className:"h-6 w-32"}):(0,a.jsx)(L,{className:"h-6 w-48"}),(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(L,{className:"h-4 w-24"}),(0,a.jsx)(L,{className:"h-9 w-24"})]})]}),(0,a.jsxs)("div",{className:"space-y-3",style:{minHeight:"512px"},children:[(0,a.jsxs)("div",{className:"flex gap-4 pb-3 border-b",children:[(0,a.jsx)(L,{className:"h-4 w-1/4"}),(0,a.jsx)(L,{className:"h-4 w-1/4"}),(0,a.jsx)(L,{className:"h-4 w-1/6"}),(0,a.jsx)(L,{className:"h-4 w-1/6"}),(0,a.jsx)(L,{className:"h-4 w-1/6"})]}),(0,a.jsx)(T,{rows:t})]})]})}function _(e){let{items:s,columns:t,title:r,loading:n=!1,error:l=null,getItemKey:d,onRowClick:o,isRowSelected:c,onRefresh:h,emptyMessage:x="No items found",headerActions:u,warningMessage:f,hasHitLimit:p=!1,hasReachedEnd:A=!1}=e,[L,T]=(0,i.useState)(m.yQ),[_,H]=(0,i.useState)(1),P=Math.max(1,Math.ceil(s.length/L)),F=(_-1)*L,z=Math.min(F+L,s.length),D=s.slice(F,z);return((0,i.useEffect)(()=>{_>P&&H(1)},[_,P]),n&&0===s.length)?(0,a.jsx)(E,{title:r}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("h2",{className:"text-2xl my-4 font-semibold leading-none tracking-tight",children:r}),(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[u,h&&(0,a.jsxs)(w.$,{variant:"outline",size:"sm",onClick:h,disabled:n,children:[(0,a.jsx)(j.A,{className:n?"animate-spin":""}),"Refresh"]})]})]}),f&&(0,a.jsxs)(v.Fc,{variant:"destructive",className:"mb-4",children:[(0,a.jsx)(v.XL,{children:"Warning"}),(0,a.jsx)(v.TN,{children:f})]}),l?(0,a.jsxs)(v.Fc,{variant:"destructive",children:[(0,a.jsxs)(v.XL,{children:["Error loading ",r.toLowerCase()]}),(0,a.jsx)(v.TN,{children:M(l)})]}):0===s.length?(0,a.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:x}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(y,{children:[(0,a.jsx)(b,{children:(0,a.jsx)(C,{children:t.map(e=>(0,a.jsx)(I,{children:e.header},e.key))})}),(0,a.jsx)(k,{children:D.map(e=>{var s;let r=d(e),n=null!=(s=null==c?void 0:c(e))&&s;return(0,a.jsx)(C,{className:"".concat(o?"cursor-pointer":""," ").concat(n?"bg-accent":"hover:bg-accent/50"),onClick:()=>null==o?void 0:o(e),children:t.map(s=>(0,a.jsx)(R,{children:s.render(e)},"".concat(r,"-").concat(s.key)))},r)})})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mt-4",children:[(0,a.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Showing ",F+1,"-",z," of ",s.length,p&&" (limit reached)"]}),(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)(S,{value:L,onChange:e=>{T(e),H(1)}}),(0,a.jsxs)(w.$,{variant:"outline",size:"sm",onClick:()=>{_>1&&H(e=>e-1)},disabled:1===_,children:[(0,a.jsx)(g,{}),"Previous"]}),(0,a.jsxs)(w.$,{variant:"outline",size:"sm",onClick:()=>{_<P&&H(e=>e+1)},disabled:_>=P,children:["Next",(0,a.jsx)(N,{})]})]})]}),_===P&&!A&&(0,a.jsx)("div",{className:"text-xs text-muted-foreground text-center py-2 bg-muted/30 rounded",children:p?"Displaying first 1,000 items. More data may be available but cannot be fetched due to the item limit.":"More data might be available but cannot currently be fetched."})]})]})]})}var H=t(5988);function P(e){let{config:s,hooks:t,loading:r,error:n,initialLoadComplete:l,hasHitLimit:d=!1,hasReachedEnd:o=!1,onHookClick:c,selectedHookId:h,onCloseDetailSidebar:m}=e,[j,p]=(0,i.useState)(new Map);(0,i.useEffect)(()=>{t.length&&(async()=>{let e=new Map;for(let s of t)e.set(s.hookId,{count:0,hasMore:!1,loading:!0});p(e);let a=await Promise.allSettled(t.map(async e=>{try{let t=await (0,f.u)(s,e.hookId,void 0,"asc",100),a=t.data.filter(e=>"hook_received"===e.eventType).length;return{hookId:e.hookId,count:a,hasMore:t.hasMore}}catch(s){return{hookId:e.hookId,count:s,hasMore:!1}}}));p(e=>{let s=new Map(e);for(let e=0;e<a.length;e++){let r=a[e],n=t[e].hookId;"fulfilled"===r.status?s.set(r.value.hookId,{count:r.value.count,hasMore:r.value.hasMore,loading:!1}):s.set(n,{count:0,hasMore:!1,loading:!1})}return s})})()},[t,s]);let g=[{key:"hookId",header:"Hook ID",render:e=>(0,a.jsx)("span",{className:"font-mono text-xs",children:e.hookId})},{key:"runId",header:"Run ID",render:e=>(0,a.jsx)("span",{className:"font-mono text-xs",children:e.runId})},{key:"token",header:"Token",render:e=>(0,a.jsxs)("span",{className:"font-mono text-xs",children:[e.token.substring(0,12),"..."]})},{key:"createdAt",header:"Created",render:e=>e.createdAt?(0,a.jsx)(H.s,{date:e.createdAt}):"-"},{key:"invocations",header:"Invocations",render:e=>{let s=j.get(e.hookId);if(!s||s.loading)return(0,a.jsx)("span",{className:"text-muted-foreground text-xs",children:"..."});if(s.count instanceof Error)return(0,a.jsx)("span",{className:"text-muted-foreground",children:"Error"});if(0===s.count)return(0,a.jsx)("span",{className:"text-muted-foreground",children:"0"});let t=s.hasMore?"".concat(s.count,"+"):"".concat(s.count);return s.hasMore?(0,a.jsxs)(u.m_,{children:[(0,a.jsx)(u.k$,{asChild:!0,children:(0,a.jsx)("span",{className:"font-semibold cursor-help",children:t})}),(0,a.jsx)(u.ZI,{children:(0,a.jsx)("div",{className:"text-xs",children:"Showing first 100 invocations. There may be more."})})]}):(0,a.jsx)("span",{className:"font-semibold",children:t})}}];return(0,a.jsx)(_,{items:t,columns:g,title:"Hooks",loading:r&&!l,error:n,getItemKey:e=>e.hookId,onRowClick:e=>c(e.hookId),isRowSelected:e=>e.hookId===h,emptyMessage:(0,a.jsxs)("div",{children:["No active hooks found."," ",(0,a.jsx)(x,{href:"api-reference/vercel-workflow/create-hook",children:"Learn about hooks"})]}),hasHitLimit:d,hasReachedEnd:o})}function F(e){let{config:s,runId:t,onHookClick:r,selectedHookId:n,onCloseDetailSidebar:i}=e,{items:c,loading:h,error:m,hasHitLimit:x,hasReachedEnd:u,initialLoadComplete:f}=(0,d.u)({createKey:(e,s)=>(0,l.wk)(e.config,"hooks-exhaustive",e.runId||"all",s,"asc"),fetcher:async(e,s,t,a)=>(0,o.h)(e.config,e.runId,s,t,a),params:{config:s,runId:t},live:!1});return(0,a.jsx)(P,{config:s,runId:t,hooks:c,loading:h,error:m||void 0,initialLoadComplete:f,hasHitLimit:x,hasReachedEnd:u,onHookClick:r,selectedHookId:n,onCloseDetailSidebar:i})}var z=t(2931);let D=(0,p.A)("ArrowDownAZ",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]),$=(0,p.A)("ArrowUpAZ",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]);var V=t(3039),Z=t(8052),q=t(7554),U=t(6810);function W(e){var s;let{config:t,onRunClick:r}=e,[n,l]=(0,i.useState)("desc"),[d,o]=(0,i.useState)(m.yQ),[c,h]=(0,i.useState)(()=>new Date),f=(0,i.useMemo)(()=>(0,Z.nO)(t),[t]),{data:p,error:A,nextPage:L,previousPage:T,hasNextPage:_,hasPreviousPage:P,reload:F,pageInfo:W}=(0,q.b_)(f,{sortOrder:n,limit:d}),O=p.isLoading;return!O||(null==p?void 0:p.data)?(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between my-4",children:[(0,a.jsx)("h2",{className:"text-2xl my-2 font-semibold leading-none tracking-tight",children:"Runs"}),(0,a.jsx)("div",{className:"flex items-center gap-4",children:(0,a.jsxs)(a.Fragment,{children:[c&&(0,a.jsx)(H.s,{date:c,className:"text-sm text-muted-foreground",type:"distance"}),(0,a.jsxs)(u.m_,{children:[(0,a.jsx)(u.k$,{asChild:!0,children:(0,a.jsxs)(w.$,{variant:"outline",size:"sm",onClick:()=>{h(()=>new Date),F()},disabled:O,children:[(0,a.jsx)(j.A,{className:O?"animate-spin":""}),"Refresh"]})}),(0,a.jsx)(u.ZI,{children:"Note that this resets pages"})]}),(0,a.jsxs)(u.m_,{children:[(0,a.jsx)(u.k$,{asChild:!0,children:(0,a.jsxs)(w.$,{variant:"outline",size:"sm",onClick:()=>{l(e=>"desc"===e?"asc":"desc")},disabled:O,children:["desc"===n?(0,a.jsx)(D,{className:"h-4 w-4"}):(0,a.jsx)($,{className:"h-4 w-4"}),"desc"===n?"Newest":"Oldest"]})}),(0,a.jsx)(u.ZI,{children:"desc"===n?"Showing newest first":"Showing oldest first"})]})]})})]}),A?(0,a.jsxs)(v.Fc,{variant:"destructive",children:[(0,a.jsx)(V.A,{className:"h-4 w-4"}),(0,a.jsx)(v.XL,{children:"Error loading runs"}),(0,a.jsx)(v.TN,{children:M(A)})]}):O||p.data&&0!==p.data.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(y,{children:[(0,a.jsx)(b,{children:(0,a.jsxs)(C,{children:[(0,a.jsx)(I,{children:"Workflow"}),(0,a.jsx)(I,{children:"Run ID"}),(0,a.jsx)(I,{children:"Status"}),(0,a.jsx)(I,{children:"Started"}),(0,a.jsx)(I,{children:"Completed"})]})}),(0,a.jsx)(k,{children:null==(s=p.data)?void 0:s.map(e=>{var s;return(0,a.jsxs)(C,{className:"cursor-pointer group relative",onClick:()=>r(e.runId),children:[(0,a.jsx)(R,{children:(null==(s=(0,z.s)(e.workflowName))?void 0:s.shortName)||"?"}),(0,a.jsx)(R,{className:"font-mono text-xs",children:e.runId}),(0,a.jsx)(R,{children:(0,a.jsx)(U.W,{status:e.status,context:e})}),(0,a.jsx)(R,{children:e.startedAt?(0,a.jsx)(H.s,{date:e.startedAt}):"-"}),(0,a.jsx)(R,{children:e.completedAt?(0,a.jsx)(H.s,{date:e.completedAt}):"-"})]},e.runId)})})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-4",children:[(0,a.jsx)("div",{className:"text-sm text-muted-foreground",children:W}),(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)(S,{value:d,onChange:o}),(0,a.jsxs)(w.$,{variant:"outline",size:"sm",onClick:T,disabled:!P,children:[(0,a.jsx)(g,{}),"Previous"]}),(0,a.jsxs)(w.$,{variant:"outline",size:"sm",onClick:L,disabled:!_,children:["Next",(0,a.jsx)(N,{})]})]})]})]}):(0,a.jsxs)("div",{className:"text-center py-8 text-muted-foreground",children:["No workflow runs found."," ",(0,a.jsx)(x,{href:"foundations/concepts",children:"Learn about workflows"})]})]}):(0,a.jsx)(E,{title:"Runs"})}function O(){let e=(0,r.useRouter)(),s=(0,r.useSearchParams)(),t=(0,Z.Nt)(),l=s.get("sidebar"),d=s.get("hookId")||s.get("hook"),o=s=>{s?e.push((0,Z.g0)("/",t,{sidebar:"hook",hookId:s})):e.push((0,Z.g0)("/",t))};return(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(n.t,{title:"Runs Error",description:"Failed to load workflow runs. Please try refreshing the page.",children:(0,a.jsx)(W,{config:t,onRunClick:(s,a)=>{a?e.push((0,Z.g0)("/run/".concat(s,"/streams/").concat(a),t)):e.push((0,Z.g0)("/run/".concat(s),t))}})}),(0,a.jsx)(n.t,{title:"Hooks Error",description:"Failed to load hooks. Please try refreshing the page.",children:(0,a.jsx)(F,{config:t,onHookClick:o,selectedHookId:"hook"===l&&d?d:void 0,onCloseDetailSidebar:()=>o(void 0)})})]})}},6741:(e,s,t)=>{Promise.resolve().then(t.bind(t,3569))},9432:(e,s,t)=>{"use strict";t.d(s,{bq:()=>m,eb:()=>j,gC:()=>f,l6:()=>c,yv:()=>h});var a=t(5386),r=t(2304),n=t(406),l=t(7163),d=t(7536),o=t(4773),i=t(2287);let c=r.bL;r.YJ;let h=r.WT,m=o.forwardRef((e,s)=>{let{className:t,children:l,...d}=e;return(0,a.jsxs)(r.l9,{ref:s,className:(0,i.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...d,children:[l,(0,a.jsx)(r.In,{asChild:!0,children:(0,a.jsx)(n.A,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=r.l9.displayName;let x=o.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)(r.PP,{ref:s,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",t),...n,children:(0,a.jsx)(l.A,{className:"h-4 w-4"})})});x.displayName=r.PP.displayName;let u=o.forwardRef((e,s)=>{let{className:t,...l}=e;return(0,a.jsx)(r.wn,{ref:s,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",t),...l,children:(0,a.jsx)(n.A,{className:"h-4 w-4"})})});u.displayName=r.wn.displayName;let f=o.forwardRef((e,s)=>{let{className:t,children:n,position:l="popper",...d}=e;return(0,a.jsx)(r.ZL,{children:(0,a.jsxs)(r.UC,{ref:s,className:(0,i.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:l,...d,children:[(0,a.jsx)(x,{}),(0,a.jsx)(r.LM,{className:(0,i.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,a.jsx)(u,{})]})})});f.displayName=r.UC.displayName,o.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)(r.JU,{ref:s,className:(0,i.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...n})}).displayName=r.JU.displayName;let j=o.forwardRef((e,s)=>{let{className:t,children:n,...l}=e;return(0,a.jsxs)(r.q7,{ref:s,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...l,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(r.VF,{children:(0,a.jsx)(d.A,{className:"h-4 w-4"})})}),(0,a.jsx)(r.p4,{children:n})]})});j.displayName=r.q7.displayName,o.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)(r.wv,{ref:s,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",t),...n})}).displayName=r.wv.displayName}},e=>{e.O(0,[222,98,724,412,687,508,909,624,358],()=>e(e.s=6741)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[417],{1189:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>_});var a=t(5386),r=t(3283),n=t(7394),c=t(2931),l=t(4773),d=t(1402),i=t(5456),o=t(8052),x=t(2287),u=t(8033);let h=(0,u.createServerReference)("7c8a6c644c58145a7602f0a668032f0016d389adad",u.callServer,void 0,u.findSourceMapURL,"fetchSteps"),m=(0,u.createServerReference)("7e0846243c317bfb3ef658067b2bdf9f713f88abcb",u.callServer,void 0,u.findSourceMapURL,"fetchEvents");var f=t(7973);let v=(0,u.createServerReference)("602b9f1816c8eb1547f0732fb5455f1d16a8e14ae7",u.callServer,void 0,u.findSourceMapURL,"cancelRun");var p=t(7554),g=t(6883),j=t(8258);let y=(0,j.A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var N=t(8257),b=t(6016);function k(e){let{canCancel:s,cancelling:t,cancelDisabledReason:r,onCancel:n}=e;return(0,a.jsxs)(N.m_,{children:[(0,a.jsx)(N.k$,{asChild:!0,children:(0,a.jsx)("span",{children:(0,a.jsxs)(b.$,{variant:"outline",size:"sm",onClick:n,disabled:!s||t,children:[(0,a.jsx)(y,{className:"h-4 w-4"}),t?"Cancelling...":"Cancel"]})})}),r&&(0,a.jsx)(N.ZI,{children:(0,a.jsx)("p",{children:r})})]})}var w=t(7536);let I=(0,j.A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);function C(e){let{text:s,children:t,className:r}=e,[n,c]=(0,l.useState)(!1),d=async()=>{try{await navigator.clipboard.writeText(s),c(!0),setTimeout(()=>c(!1),2e3)}catch(e){console.error("Failed to copy text:",e)}};return(0,a.jsxs)("div",{className:(0,x.cn)("flex items-center gap-2 group",r),children:[t,(0,a.jsxs)(N.m_,{children:[(0,a.jsx)(N.k$,{asChild:!0,children:(0,a.jsx)("button",{type:"button",onClick:d,className:"opacity-0 group-hover:opacity-100 transition-opacity","aria-label":"Copy to clipboard",children:n?(0,a.jsx)(w.A,{className:"h-3 w-3 text-green-600"}):(0,a.jsx)(I,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})}),(0,a.jsx)(N.ZI,{children:(0,a.jsx)("p",{children:n?"Copied!":"Copy to clipboard"})})]})]})}function S(e){let{hasError:s,errorMessage:t}=e;return(0,a.jsx)("div",{className:"flex items-center gap-2",children:(0,a.jsxs)(N.m_,{children:[(0,a.jsx)(N.k$,{asChild:!0,children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("div",{className:"w-2 h-2 rounded-full ".concat(s?"bg-red-500":"bg-green-500 animate-pulse")}),(0,a.jsx)("span",{className:"text-xs $\n hasError\n ? 'text-red-600 dark:text-red-400'\n : 'text-muted-foreground'",children:s?"Error":"Live"})]})}),(0,a.jsx)(N.ZI,{children:(0,a.jsx)("p",{children:s?"Error updating data: ".concat(t):"Content updates every ".concat(x.Oc/1e3," seconds")})})]})})}var R=t(5988),E=t(6810);function A(e){var s;let{config:t,runId:r,selectedId:n}=e,[u,j]=(0,l.useState)(!1),[y,N]=(0,l.useState)(Date.now()),{data:b,isLoading:w,error:I,mutate:A}=(0,d.Xt)(t,r,{refreshInterval:x.Oc});(0,l.useEffect)(()=>{b&&N(Date.now())},[b]);let{items:_,error:L,loading:M}=(0,i.u)({createKey:(e,s)=>(0,d.wk)(e.config,"steps-exhaustive",e.runId,s,"asc"),fetcher:async(e,s,t,a)=>h(e.config,e.runId,s,t,a),params:{config:t,runId:r},live:!0}),{items:z,error:D}=(0,i.u)({createKey:(e,s)=>(0,d.wk)(e.config,"events-exhaustive",e.runId,s,"asc"),fetcher:async(e,s,t,a)=>m(e.config,e.runId,s,t,a),params:{config:t,runId:r},live:!0}),{items:$,error:O}=(0,i.u)({createKey:(e,s)=>(0,d.wk)(e.config,"hooks-exhaustive",e.runId,s,"asc"),fetcher:async(e,s,t,a)=>(0,f.h)(e.config,e.runId,s,t,a),params:{config:t,runId:r},live:!0}),P=async()=>{if(!u)try{j(!0),await v(t,r),await A()}catch(e){console.error("Failed to cancel run:",e)}finally{j(!1)}};if(w)return(0,a.jsx)("div",{className:"text-center py-8",children:"Loading..."});if(I)return(0,a.jsxs)("div",{className:"text-center py-8",children:["Error: ",I.message]});if(!b)return(0,a.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"Run not found"});let U=(null==(s=(0,c.s)(b.workflowName))?void 0:s.shortName)||"?",F=I||L||D||O,K=F?(null==I?void 0:I.message)||(null==L?void 0:L.message)||(null==D?void 0:D.message)||(null==O?void 0:O.message)||"Unknown error":"",Z="pending"===b.status||"running"===b.status,T=u?"Cancelling run...":"completed"===b.status?"Run has already completed":"failed"===b.status?"Run has already failed":"cancelled"===b.status?"Run has already been cancelled":"";return(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(g.E,{href:(0,o.g0)("/",t)}),(0,a.jsxs)("div",{className:"space-y-4 pb-6 border-b",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsx)("div",{className:"mb-6",children:(0,a.jsx)("h1",{className:"text-2xl font-semibold",children:U})}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsx)(S,{hasError:F,errorMessage:K}),(0,a.jsx)(k,{canCancel:Z,cancelling:u,cancelDisabledReason:T,onCancel:P})]})]}),(0,a.jsxs)("div",{className:"flex items-start gap-8",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"Status"}),(0,a.jsx)(E.W,{status:b.status,context:b})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"Run ID"}),(0,a.jsx)(C,{text:b.runId,children:(0,a.jsx)("div",{className:"text-sm mt-0.5 font-mono",children:b.runId})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"Queued"}),(0,a.jsx)("div",{className:"text-sm",children:b.createdAt?(0,a.jsx)(R.s,{date:b.createdAt}):"-"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"Started"}),(0,a.jsx)("div",{className:"text-sm",children:b.startedAt?(0,a.jsx)(R.s,{date:b.startedAt}):"-"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"Completed"}),(0,a.jsx)("div",{className:"text-sm",children:b.completedAt?(0,a.jsx)(R.s,{date:b.completedAt}):"-"})]})]})]}),(0,a.jsx)(p.J9,{steps:_,events:z,hooks:$,config:t,run:b,isLoading:M})]})}function _(){let e=(0,r.useParams)(),s=(0,r.useSearchParams)(),t=(0,o.Nt)(),c=e.runId,l=s.get("stepId")||s.get("step"),d=s.get("eventId")||s.get("event"),i=s.get("hookId")||s.get("hook");return(0,a.jsx)(n.t,{title:"Run Detail Error",description:"Failed to load run details. Please try navigating back to the home page.",children:(0,a.jsx)(A,{config:t,runId:c,selectedId:l||d||i||void 0})})}},6883:(e,s,t)=>{"use strict";t.d(s,{E:()=>l});var a=t(5386);let r=(0,t(8258).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var n=t(8414),c=t.n(n);function l(e){let{href:s,label:t="Back"}=e;return(0,a.jsxs)(c(),{href:s,className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors mb-2",children:[(0,a.jsx)(r,{className:"h-4 w-4"}),t]})}},8252:(e,s,t)=>{Promise.resolve().then(t.bind(t,1189))}},e=>{e.O(0,[222,98,724,412,508,909,624,358],()=>e(e.s=8252)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[627],{316:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(8258).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},2287:(e,t,r)=>{"use strict";r.d(t,{$g:()=>d,Oc:()=>o,cn:()=>i,yQ:()=>n});var s=r(2928),a=r(8997);let n=10;function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,s.$)(t))}let o=5e3;function d(e,t,r){return r?"Page ".concat(e," of ").concat(t,"+"):"Page ".concat(e," of ").concat(t)}},2338:(e,t,r)=>{"use strict";r.d(t,{Wu:()=>c,ZB:()=>d,Zp:()=>i,aR:()=>o});var s=r(5386),a=r(4773),n=r(2287);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",r),...a})});i.displayName="Card";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",r),...a})});o.displayName="CardHeader";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("text-2xl font-semibold leading-none tracking-tight",r),...a})});d.displayName="CardTitle",a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...a})}).displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent",a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",r),...a})}).displayName="CardFooter"},3686:(e,t,r)=>{Promise.resolve().then(r.bind(r,7682))},6016:(e,t,r)=>{"use strict";r.d(t,{$:()=>c});var s=r(5386),a=r(9280),n=r(7586),i=r(4773),o=r(2287);let d=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=i.forwardRef((e,t)=>{let{className:r,variant:n,size:i,asChild:c=!1,...l}=e,u=c?a.DX:"button";return(0,s.jsx)(u,{className:(0,o.cn)(d({variant:n,size:i,className:r})),ref:t,...l})});c.displayName="Button"},6883:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var s=r(5386);let a=(0,r(8258).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var n=r(8414),i=r.n(n);function o(e){let{href:t,label:r="Back"}=e;return(0,s.jsxs)(i(),{href:t,className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors mb-2",children:[(0,s.jsx)(a,{className:"h-4 w-4"}),r]})}},7122:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>d,TN:()=>l,XL:()=>c});var s=r(5386),a=r(7586),n=r(4773),i=r(2287);let o=(0,a.F)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),d=n.forwardRef((e,t)=>{let{className:r,variant:a,...n}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,i.cn)(o({variant:a}),r),...n})});d.displayName="Alert";let c=n.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h5",{ref:t,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",r),...a})});c.displayName="AlertTitle";let l=n.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",r),...a})});l.displayName="AlertDescription"},7394:(e,t,r)=>{"use strict";r.d(t,{t:()=>l});var s=r(5386),a=r(3039),n=r(316),i=r(4773),o=r(7122),d=r(6016),c=r(2338);class l extends i.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("Error caught by boundary:",e,t)}render(){return this.state.hasError&&this.state.error?this.props.fallback?this.props.fallback(this.state.error,this.handleReset):(0,s.jsxs)(c.Zp,{className:"border-destructive/50 bg-destructive/5",children:[(0,s.jsx)(c.aR,{children:(0,s.jsxs)(c.ZB,{className:"flex items-center gap-2 text-destructive",children:[(0,s.jsx)(a.A,{className:"h-5 w-5"}),this.props.title||"Error"]})}),(0,s.jsxs)(c.Wu,{className:"space-y-4",children:[(0,s.jsxs)(o.Fc,{variant:"destructive",children:[(0,s.jsx)(a.A,{className:"h-4 w-4"}),(0,s.jsx)(o.XL,{children:"Something went wrong"}),(0,s.jsx)(o.TN,{children:this.props.description||"An unexpected error occurred in this section."})]}),(0,s.jsxs)("div",{className:"bg-muted p-3 rounded-md text-sm font-mono text-muted-foreground overflow-auto max-h-48",children:[(0,s.jsx)("div",{className:"text-xs font-semibold mb-2",children:"Error details:"}),(0,s.jsx)("div",{className:"whitespace-pre-wrap break-words text-xs",children:this.state.error.message}),this.state.error.stack&&(0,s.jsx)("div",{className:"mt-2 opacity-60 text-xs",children:this.state.error.stack})]}),!1!==this.props.showReset&&(0,s.jsxs)(d.$,{variant:"outline",size:"sm",onClick:this.handleReset,className:"gap-2",children:[(0,s.jsx)(n.A,{className:"h-4 w-4"}),"Try again"]})]})]}):this.props.children}constructor(e){super(e),this.handleReset=()=>{this.setState({hasError:!1,error:null})},this.state={hasError:!1,error:null}}}},7682:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var s=r(5386),a=r(3283),n=r(7394),i=r(4773),o=r(2338),d=r(8052),c=r(8033);let l=(0,c.createServerReference)("706bfed013d7e42bf8de2d77d11e9d64ab1e48a439",c.callServer,void 0,c.findSourceMapURL,"readStream");var u=r(6883);function f(e){let{config:t,streamId:r}=e,n=(0,a.useParams)().runId,[c,f]=(0,i.useState)([]),[h,m]=(0,i.useState)(!0),[x,g]=(0,i.useState)(null),v=(0,i.useRef)(null),p=(0,i.useRef)(null),b=(0,i.useRef)(0);(0,i.useEffect)(()=>{v.current&&(v.current.scrollTop=v.current.scrollHeight)},[c.length]),(0,i.useEffect)(()=>{let e=!0;p.current=new AbortController;let s=()=>{e&&m(!1)},a=t=>{if(e&&t){let e=b.current++;f(r=>[...r,{id:e,text:t}])}},n=async(e,t)=>{for(;;){var r;if(null==(r=p.current)?void 0:r.signal.aborted)break;let{value:n,done:i}=await e.read();if(i){s();break}n&&n.byteLength>0&&a(t.decode(n,{stream:!0}))}};return(async()=>{try{let e=(await l(t,r)).getReader(),s=new TextDecoder;await n(e,s)}catch(t){e&&(g(t instanceof Error?t.message:String(t)),m(!1))}})(),()=>{e=!1,p.current&&p.current.abort()}},[t,r]);let j=n?(0,d.g0)("/run/".concat(n),t):(0,d.g0)("/",t);return(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)(u.E,{href:j}),(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)(o.aR,{children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)(o.ZB,{className:"font-mono text-sm",children:r}),(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsx)("span",{className:"text-sm ".concat(h?"text-green-600 dark:text-green-400":"text-gray-600 dark:text-gray-400"),children:h?"● Live":"● Closed"})})]})}),(0,s.jsx)(o.Wu,{children:(0,s.jsx)("div",{ref:v,className:"bg-black text-green-400 font-mono text-sm p-4 rounded-md h-[600px] overflow-auto whitespace-pre-wrap break-words",children:x?(0,s.jsxs)("div",{className:"text-red-400",children:[(0,s.jsx)("div",{children:"Error reading stream:"}),(0,s.jsx)("div",{children:x})]}):0===c.length?(0,s.jsx)("div",{className:"text-gray-500",children:h?"Waiting for stream data...":"Stream is empty"}):(0,s.jsx)(s.Fragment,{children:c.map(e=>(0,s.jsx)("span",{children:e.text},"".concat(r,"-chunk-").concat(e.id)))})})})]})]})}function h(){let e=(0,a.useParams)(),t=(0,d.Nt)(),r=e.streamId;return(0,s.jsx)(n.t,{title:"Stream Error",description:"Failed to load stream data. Please try navigating back and selecting the stream again.",children:(0,s.jsx)(f,{config:t,streamId:r})})}},8052:(e,t,r)=>{"use strict";r.d(t,{Nt:()=>o,dL:()=>d,g0:()=>c,nO:()=>l});var s=r(3283),a=r(4773);let n={backend:"embedded",dataDir:"../../workbench/nextjs-turbopack/.next/workflow-data",port:"3000",env:"production"},i=["backend","env","authToken","project","team","port","dataDir"];function o(){let e=(0,s.useSearchParams)();return(0,a.useMemo)(()=>{let t={...n};for(let r of i){let s=e.get(r);s&&(t[r]=s)}return t},[e])}function d(){let e=(0,s.useRouter)(),t=(0,s.usePathname)(),r=(0,s.useSearchParams)();return(0,a.useMemo)(()=>s=>{let a=new URLSearchParams(r.toString());for(let e of i){let t=s[e];null!=t&&""!==t?(t!==n[e]||r.has(e))&&a.set(e,t):a.delete(e)}let o=a.toString(),d=o?"".concat(t,"?").concat(o):t;e.push(d)},[e,t,r])}function c(e,t,r){let s=function(e){let t=new URLSearchParams;for(let r of i){let s=e[r];null!=s&&""!==s&&s!==n[r]&&t.set(r,s)}return t}(t);if(r)for(let[e,t]of Object.entries(r))null!=t&&""!==t&&s.set(e,t);let a=s.toString();return a?"".concat(e,"?").concat(a):e}let l=e=>({WORKFLOW_TARGET_WORLD:e.backend,WORKFLOW_VERCEL_ENV:e.env,WORKFLOW_VERCEL_AUTH_TOKEN:e.authToken,WORKFLOW_VERCEL_PROJECT:e.project,WORKFLOW_VERCEL_TEAM:e.team})}},e=>{e.O(0,[98,909,624,358],()=>e(e.s=3686)),_N_E=e.O()}]);
|