jinn-cli 0.2.0 → 0.3.1
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/LICENSE +21 -0
- package/dist/bin/jimmy.js +1 -1
- package/dist/src/cli/chrome-allow.d.ts.map +1 -1
- package/dist/src/cli/chrome-allow.js +14 -5
- package/dist/src/cli/chrome-allow.js.map +1 -1
- package/dist/src/cli/list.js +1 -1
- package/dist/src/cli/list.js.map +1 -1
- package/dist/src/cli/nuke.js +2 -2
- package/dist/src/cli/nuke.js.map +1 -1
- package/dist/src/cli/setup.d.ts.map +1 -1
- package/dist/src/cli/setup.js +2 -1
- package/dist/src/cli/setup.js.map +1 -1
- package/dist/src/connectors/slack/index.d.ts +9 -1
- package/dist/src/connectors/slack/index.d.ts.map +1 -1
- package/dist/src/connectors/slack/index.js +172 -8
- package/dist/src/connectors/slack/index.js.map +1 -1
- package/dist/src/connectors/slack/threads.d.ts +1 -4
- package/dist/src/connectors/slack/threads.d.ts.map +1 -1
- package/dist/src/connectors/slack/threads.js +17 -7
- package/dist/src/connectors/slack/threads.js.map +1 -1
- package/dist/src/connectors/slack/threads.test.js +42 -8
- package/dist/src/connectors/slack/threads.test.js.map +1 -1
- package/dist/src/cron/runner.d.ts.map +1 -1
- package/dist/src/cron/runner.js +16 -5
- package/dist/src/cron/runner.js.map +1 -1
- package/dist/src/engines/claude.d.ts.map +1 -1
- package/dist/src/engines/claude.js +19 -4
- package/dist/src/engines/claude.js.map +1 -1
- package/dist/src/engines/codex.js +2 -2
- package/dist/src/engines/codex.js.map +1 -1
- package/dist/src/gateway/api.d.ts.map +1 -1
- package/dist/src/gateway/api.js +207 -3
- package/dist/src/gateway/api.js.map +1 -1
- package/dist/src/gateway/lifecycle.d.ts.map +1 -1
- package/dist/src/gateway/lifecycle.js +16 -6
- package/dist/src/gateway/lifecycle.js.map +1 -1
- package/dist/src/gateway/org.d.ts.map +1 -1
- package/dist/src/gateway/org.js +1 -0
- package/dist/src/gateway/org.js.map +1 -1
- package/dist/src/gateway/server.d.ts.map +1 -1
- package/dist/src/gateway/server.js +40 -1
- package/dist/src/gateway/server.js.map +1 -1
- package/dist/src/gateway/watcher.d.ts.map +1 -1
- package/dist/src/gateway/watcher.js +9 -2
- package/dist/src/gateway/watcher.js.map +1 -1
- package/dist/src/mcp/gateway-server.d.ts +13 -0
- package/dist/src/mcp/gateway-server.d.ts.map +1 -0
- package/dist/src/mcp/gateway-server.js +375 -0
- package/dist/src/mcp/gateway-server.js.map +1 -0
- package/dist/src/mcp/resolver.d.ts +19 -0
- package/dist/src/mcp/resolver.d.ts.map +1 -0
- package/dist/src/mcp/resolver.js +153 -0
- package/dist/src/mcp/resolver.js.map +1 -0
- package/dist/src/sessions/context.d.ts +1 -0
- package/dist/src/sessions/context.d.ts.map +1 -1
- package/dist/src/sessions/context.js +34 -3
- package/dist/src/sessions/context.js.map +1 -1
- package/dist/src/sessions/limits.d.ts +7 -0
- package/dist/src/sessions/limits.d.ts.map +1 -0
- package/dist/src/sessions/limits.js +42 -0
- package/dist/src/sessions/limits.js.map +1 -0
- package/dist/src/sessions/manager.d.ts +3 -1
- package/dist/src/sessions/manager.d.ts.map +1 -1
- package/dist/src/sessions/manager.js +38 -17
- package/dist/src/sessions/manager.js.map +1 -1
- package/dist/src/sessions/registry.d.ts +6 -0
- package/dist/src/sessions/registry.d.ts.map +1 -1
- package/dist/src/sessions/registry.js +34 -5
- package/dist/src/sessions/registry.js.map +1 -1
- package/dist/src/shared/effort.d.ts +17 -0
- package/dist/src/shared/effort.d.ts.map +1 -0
- package/dist/src/shared/effort.js +44 -0
- package/dist/src/shared/effort.js.map +1 -0
- package/dist/src/shared/paths.d.ts +2 -0
- package/dist/src/shared/paths.d.ts.map +1 -1
- package/dist/src/shared/paths.js +2 -0
- package/dist/src/shared/paths.js.map +1 -1
- package/dist/src/shared/types.d.ts +57 -1
- package/dist/src/shared/types.d.ts.map +1 -1
- package/dist/src/stt/stt.d.ts +24 -0
- package/dist/src/stt/stt.d.ts.map +1 -0
- package/dist/src/stt/stt.js +203 -0
- package/dist/src/stt/stt.js.map +1 -0
- package/dist/web/404.html +1 -1
- package/dist/web/_next/static/chunks/198-3e82ded4f04a0aae.js +1 -0
- package/dist/web/_next/static/chunks/{704-af2893821e1d18dc.js → 704-ca24be493a922639.js} +1 -1
- package/dist/web/_next/static/chunks/{73-c226535579393e21.js → 73-2d6e730cea0fe6c8.js} +1 -1
- package/dist/web/_next/static/chunks/app/_not-found/{page-bb075b0779827928.js → page-7d43a486b7014af3.js} +1 -1
- package/dist/web/_next/static/chunks/app/chat/page-2f3c561ed768ed58.js +1 -0
- package/dist/web/_next/static/chunks/app/costs/{page-d6c03718defdb599.js → page-13a6f2c65a827f8a.js} +1 -1
- package/dist/web/_next/static/chunks/app/cron/{page-4c563eef2b6231fe.js → page-0ee07a679c7b79aa.js} +1 -1
- package/dist/web/_next/static/chunks/app/kanban/{page-55a73165a36f4077.js → page-a7facadd4194faae.js} +1 -1
- package/dist/web/_next/static/chunks/app/layout-fd975d16033dab25.js +1 -0
- package/dist/web/_next/static/chunks/app/logs/page-6de6b16523e85193.js +1 -0
- package/dist/web/_next/static/chunks/app/org/{page-d5cd8d9b7864737b.js → page-cd9d362e77f4799e.js} +1 -1
- package/dist/web/_next/static/chunks/app/{page-b81992940fd1dbc6.js → page-b98417ed4f4d45a0.js} +1 -1
- package/dist/web/_next/static/chunks/app/sessions/page-7148306182017841.js +1 -0
- package/dist/web/_next/static/chunks/app/settings/page-34c9276e2a012445.js +1 -0
- package/dist/web/_next/static/chunks/app/skills/page-18cf3b7bb9a7339c.js +1 -0
- package/dist/web/_next/static/chunks/main-app-0c65af8a0fd99888.js +1 -0
- package/dist/web/_next/static/css/24da9dfc818cea32.css +1 -0
- package/dist/web/chat.html +1 -1
- package/dist/web/chat.txt +5 -5
- package/dist/web/costs.html +2 -2
- package/dist/web/costs.txt +5 -5
- package/dist/web/cron.html +1 -1
- package/dist/web/cron.txt +5 -5
- package/dist/web/index.html +1 -1
- package/dist/web/index.txt +5 -5
- package/dist/web/kanban.html +1 -1
- package/dist/web/kanban.txt +5 -5
- package/dist/web/logs.html +2 -2
- package/dist/web/logs.txt +5 -5
- package/dist/web/org.html +1 -1
- package/dist/web/org.txt +5 -5
- package/dist/web/sessions.html +1 -1
- package/dist/web/sessions.txt +5 -5
- package/dist/web/settings.html +1 -1
- package/dist/web/settings.txt +5 -5
- package/dist/web/skills.html +1 -1
- package/dist/web/skills.txt +5 -5
- package/package.json +9 -9
- package/template/config.default.yaml +33 -1
- package/template/docs/mcp.md +108 -0
- package/dist/web/_next/static/chunks/198-fd91406a158c5c25.js +0 -1
- package/dist/web/_next/static/chunks/app/chat/page-6d5bc707a45c92c6.js +0 -1
- package/dist/web/_next/static/chunks/app/layout-5129b67d5f126cf0.js +0 -1
- package/dist/web/_next/static/chunks/app/logs/page-e18889d67e48c9c9.js +0 -1
- package/dist/web/_next/static/chunks/app/sessions/page-c83c890177c18258.js +0 -1
- package/dist/web/_next/static/chunks/app/settings/page-2583d55551abdf72.js +0 -1
- package/dist/web/_next/static/chunks/app/skills/page-df9465e314561bb5.js +0 -1
- package/dist/web/_next/static/chunks/main-app-437f51faf74fbb3b.js +0 -1
- package/dist/web/_next/static/css/4a6a5bca9238c104.css +0 -1
- /package/dist/web/_next/static/{jt8R5JvUgfB9CMfFwWFr0 → Zn588p2VvgjCSLr44R__1}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{jt8R5JvUgfB9CMfFwWFr0 → Zn588p2VvgjCSLr44R__1}/_ssgManifest.js +0 -0
package/dist/web/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--Zn588p2VvgjCSLr44R__1--><html lang="en" data-theme="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/><link rel="stylesheet" href="/_next/static/css/24da9dfc818cea32.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-0f39b7e91dce9791.js"/><script src="/_next/static/chunks/8e6518bb-c26e82767f1faf66.js" async=""></script><script src="/_next/static/chunks/743-5bb03adbb0e4ddec.js" async=""></script><script src="/_next/static/chunks/main-app-0c65af8a0fd99888.js" async=""></script><script src="/_next/static/chunks/app/layout-fd975d16033dab25.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><meta name="description" content="AI Gateway Dashboard"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-0f39b7e91dce9791.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[1150,[\"177\",\"static/chunks/app/layout-fd975d16033dab25.js\"],\"ClientProviders\"]\n3:I[8954,[],\"\"]\n4:I[5640,[],\"\"]\n5:I[2051,[],\"OutletBoundary\"]\n7:I[6658,[],\"AsyncMetadataOutlet\"]\n9:I[2051,[],\"ViewportBoundary\"]\nb:I[2051,[],\"MetadataBoundary\"]\nc:\"$Sreact.suspense\"\ne:I[7698,[],\"\"]\n:HL[\"/_next/static/css/24da9dfc818cea32.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"Zn588p2VvgjCSLr44R__1\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/24da9dfc818cea32.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"data-theme\":\"dark\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"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\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"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)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$L6\",[\"$\",\"$L7\",null,{\"promise\":\"$@8\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$L9\",null,{\"children\":\"$La\"}],null],[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$c\",null,{\"fallback\":null,\"children\":\"$Ld\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$e\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"}]]\n6:null\n"])</script><script>self.__next_f.push([1,"8:{\"metadata\":[[\"$\",\"meta\",\"0\",{\"name\":\"description\",\"content\":\"AI Gateway Dashboard\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"d:\"$8:metadata\"\n"])</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[198],{39:(e,t,n)=>{n.d(t,{A:()=>u,q:()=>o});var r=n(5271),l=n(8111);function o(e,t){let n=r.createContext(t),o=e=>{let{children:t,...o}=e,u=r.useMemo(()=>o,Object.values(o));return(0,l.jsx)(n.Provider,{value:u,children:t})};return o.displayName=e+"Provider",[o,function(l){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${l}\` must be used within \`${e}\``)}]}function u(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let l=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:l}}),[n,l])}};return o.scopeName=e,[function(t,o){let u=r.createContext(o),i=n.length;n=[...n,o];let a=t=>{let{scope:n,children:o,...a}=t,s=n?.[e]?.[i]||u,c=r.useMemo(()=>a,Object.values(a));return(0,l.jsx)(s.Provider,{value:c,children:o})};return a.displayName=t+"Provider",[a,function(n,l){let a=l?.[e]?.[i]||u,s=r.useContext(a);if(s)return s;if(void 0!==o)return o;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 l=n.reduce((t,{useScope:n,scopeName:r})=>{let l=n(e)[`__scope${r}`];return{...t,...l}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}(o,...t)]}},1232:(e,t,n)=>{n.d(t,{hO:()=>a,sG:()=>i});var r=n(5271),l=n(8054),o=n(1373),u=n(8111),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,o.TL)(`Primitive.${t}`),l=r.forwardRef((e,r)=>{let{asChild:l,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(l?n:t,{...o,ref:r})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{});function a(e,t){e&&l.flushSync(()=>e.dispatchEvent(t))}},1373:(e,t,n)=>{n.d(t,{TL:()=>u});var r=n(5271),l=n(8643),o=n(8111);function u(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){var u;let e,i,a=(u=n,(i=(e=Object.getOwnPropertyDescriptor(u.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?u.ref:(i=(e=Object.getOwnPropertyDescriptor(u,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?u.props.ref:u.props.ref||u.ref),s=function(e,t){let n={...t};for(let r in t){let l=e[r],o=t[r];/^on[A-Z]/.test(r)?l&&o?n[r]=(...e)=>{let t=o(...e);return l(...e),t}:l&&(n[r]=l):"style"===r?n[r]={...l,...o}:"className"===r&&(n[r]=[l,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(s.ref=t?(0,l.t)(t,a):a),r.cloneElement(n,s)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:l,...u}=e,i=r.Children.toArray(l),s=i.find(a);if(s){let e=s.props.children,l=i.map(t=>t!==s?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...u,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,l):null})}return(0,o.jsx)(t,{...u,ref:n,children:l})});return n.displayName=`${e}.Slot`,n}var i=Symbol("radix.slottable");function a(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===i}},1742:(e,t,n)=>{n.d(t,{N:()=>l});var r=n(5271),l=globalThis?.document?r.useLayoutEffect:()=>{}},3250:(e,t,n)=>{n.d(t,{c:()=>l});var r=n(5271);function l(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},3916:(e,t,n)=>{n.d(t,{F:()=>u});var r=n(5242);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=r.$,u=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return o(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:u,defaultVariants:i}=t,a=Object.keys(u).map(e=>{let t=null==n?void 0:n[e],r=null==i?void 0:i[e];if(null===t)return null;let o=l(t)||l(r);return u[e][o]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return o(e,a,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...l}=t;return Object.entries(l).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...s}[t]):({...i,...s})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},6937:(e,t,n)=>{n.d(t,{C:()=>u});var r=n(5271),l=n(8643),o=n(1742),u=e=>{let{present:t,children:n}=e,u=function(e){var t,n;let[l,u]=r.useState(),a=r.useRef(null),s=r.useRef(e),c=r.useRef("none"),[d,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=i(a.current);c.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=a.current,n=s.current;if(n!==e){let r=c.current,l=i(t);e?f("MOUNT"):"none"===l||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==l?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,o.N)(()=>{if(l){var e;let t,n=null!=(e=l.ownerDocument.defaultView)?e:window,r=e=>{let r=i(a.current).includes(CSS.escape(e.animationName));if(e.target===l&&r&&(f("ANIMATION_END"),!s.current)){let e=l.style.animationFillMode;l.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===l.style.animationFillMode&&(l.style.animationFillMode=e)})}},o=e=>{e.target===l&&(c.current=i(a.current))};return l.addEventListener("animationstart",o),l.addEventListener("animationcancel",r),l.addEventListener("animationend",r),()=>{n.clearTimeout(t),l.removeEventListener("animationstart",o),l.removeEventListener("animationcancel",r),l.removeEventListener("animationend",r)}}f("ANIMATION_END")},[l,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{a.current=e?getComputedStyle(e):null,u(e)},[])}}(t),a="function"==typeof n?n({present:u.isPresent}):r.Children.only(n),s=(0,l.s)(u.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?e.ref:(l=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof n||u.isPresent?r.cloneElement(a,{ref:s}):null};function i(e){return(null==e?void 0:e.animationName)||"none"}u.displayName="Presence"},8106:(e,t,n)=>{n.d(t,{i:()=>i});var r,l=n(5271),o=n(1742),u=(r||(r=n.t(l,2)))[" useInsertionEffect ".trim().toString()]||o.N;function i({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,i,a]=function({defaultProp:e,onChange:t}){let[n,r]=l.useState(e),o=l.useRef(n),i=l.useRef(t);return u(()=>{i.current=t},[t]),l.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),s=void 0!==e,c=s?e:o;{let t=l.useRef(void 0!==e);l.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,l.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else i(t)},[s,e,i,a])]}Symbol("RADIX:SYNC_STATE")},8325:(e,t,n)=>{n.d(t,{B:()=>a});var r,l=n(5271),o=n(1742),u=(r||(r=n.t(l,2)))[" useId ".trim().toString()]||(()=>void 0),i=0;function a(e){let[t,n]=l.useState(u());return(0,o.N)(()=>{e||n(e=>e??String(i++))},[e]),e||(t?`radix-${t}`:"")}},8643:(e,t,n)=>{n.d(t,{s:()=>u,t:()=>o});var r=n(5271);function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():l(e[t],null)}}}}function u(...e){return r.useCallback(o(...e),e)}},9479:(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}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[704],{706:(e,t)=>{"use strict";function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,i]of Object.entries(e))if(Array.isArray(i))for(let e of i)t.append(r,n(e));else t.set(r,n(i));return t}function o(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i}})},1061:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},1162:(e,t,r)=>{"use strict";var n=r(1756);r(7123);var i=r(5271),o=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),s=void 0!==n&&n.env&&!0,u=function(e){return"[object String]"===Object.prototype.toString.call(e)},a=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,o=void 0===i?s:i;l(u(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",l("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var a="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=a?a.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){l("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),l(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(l(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(l(u(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var r="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];l(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];l(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&l(u(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function l(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+c(e+"-"+r)),d[n]}function f(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var p=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=n||new a({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),n&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=o,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=h(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:h(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),y=i.createContext(null);y.displayName="StyleSheetContext";var m=o.default.useInsertionEffect||o.default.useLayoutEffect,_="undefined"!=typeof window?new p:void 0;function g(e){var t=_||i.useContext(y);return t&&("undefined"==typeof window?t.add(e):m(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}g.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=g},1251:(e,t,r)=>{"use strict";e.exports=r(1162).style},1509:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},1935:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]])},1983:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(5271);let i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},o=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var s={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 u=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:u=2,absoluteStrokeWidth:a,className:l="",children:c,iconNode:d,...h}=e;return(0,n.createElement)("svg",{ref:t,...s,width:o,height:o,stroke:r,strokeWidth:a?24*Number(u)/Number(o):u,className:i("lucide",l),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(h)&&{"aria-hidden":"true"},...h},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),a=(e,t)=>{let r=(0,n.forwardRef)((r,s)=>{let{className:a,...l}=r;return(0,n.createElement)(u,{ref:s,iconNode:t,className:i("lucide-".concat(o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),a),...l})});return r.displayName=o(e),r}},2265:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},2407:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]])},2823:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(5271);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("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)},3254:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},4206:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]])},4430:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("columns-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},4514:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},4640:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]])},4736:(e,t,r)=>{"use strict";var n=r(1504);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},5073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},5136:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},5275:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},5935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},useLinkStatus:function(){return g}});let n=r(4284),i=r(8111),o=n._(r(5271)),s=r(9642),u=r(5911),a=r(2823),l=r(7076),c=r(3790);r(4209);let d=r(7335),h=r(7843),f=r(587);r(5073);let p=r(5564);function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}function m(e){var t;let r,n,s,[m,g]=(0,o.useOptimistic)(d.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:S,as:k,children:A,prefetch:b=null,passHref:w,replace:x,shallow:j,scroll:R,onClick:C,onMouseEnter:M,onTouchStart:P,legacyBehavior:z=!1,onNavigate:E,ref:F,unstable_dynamicOnHover:O,...T}=e;r=A,z&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let N=o.default.useContext(u.AppRouterContext),I=!1!==b,L=!1!==b?null===(t=b)||"auto"===t?p.FetchStrategy.PPR:p.FetchStrategy.Full:p.FetchStrategy.PPR,{href:U,as:q}=o.default.useMemo(()=>{let e=y(S);return{href:e,as:k?y(k):e}},[S,k]);z&&(n=o.default.Children.only(r));let B=z?n&&"object"==typeof n&&n.ref:F,D=o.default.useCallback(e=>(null!==N&&(v.current=(0,d.mountLinkInstance)(e,U,N,L,I,g)),()=>{v.current&&((0,d.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,d.unmountPrefetchableInstance)(e)}),[I,U,N,L,g]),H={ref:(0,a.useMergedRef)(D,B),onClick(e){z||"function"!=typeof C||C(e),z&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),N&&(e.defaultPrevented||function(e,t,r,n,i,s,u){let{nodeName:a}=e.currentTarget;if(!("A"===a.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,h.isLocalURL)(t)){i&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}o.default.startTransition(()=>{(0,f.dispatchNavigateAction)(r||t,i?"replace":"push",null==s||s,n.current)})}}(e,U,q,v,x,R,E))},onMouseEnter(e){z||"function"!=typeof M||M(e),z&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),N&&I&&(0,d.onNavigationIntent)(e.currentTarget,!0===O)},onTouchStart:function(e){z||"function"!=typeof P||P(e),z&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),N&&I&&(0,d.onNavigationIntent)(e.currentTarget,!0===O)}};return(0,l.isAbsoluteUrl)(q)?H.href=q:z&&!w&&("a"!==n.type||"href"in n.props)||(H.href=(0,c.addBasePath)(q)),s=z?o.default.cloneElement(n,H):(0,i.jsx)("a",{...T,...H,children:r}),(0,i.jsx)(_.Provider,{value:m,children:s})}let _=(0,o.createContext)(d.IDLE_LINK_STATUS),g=()=>(0,o.useContext)(_);("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)},6361:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},6650:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).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"}]])},6778:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]])},6808:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},7076:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return g},MissingStaticPage:function(){return _},NormalizeError:function(){return y},PageNotFoundError:function(){return m},SP:function(){return h},ST:function(){return f},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return a},getLocationOrigin:function(){return s},getURL:function(){return u},isAbsoluteUrl:function(){return o},isResSent:function(){return l},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return v}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return r||(r=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function s(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function u(){let{href:e}=window.location,t=s();return e.substring(t.length)}function a(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function l(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&l(r))return n;if(!n)throw Object.defineProperty(Error('"'+a(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let h="undefined"!=typeof performance,f=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class y extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class _ extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class g 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})}},7123:()=>{},7549:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},7836:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},7843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=r(7076),i=r(3506);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},8067:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},8146:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},8193:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]])},9006:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]])},9026:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},9642:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}});let n=r(4284)._(r(706)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,o=e.protocol||"",s=e.pathname||"",u=e.hash||"",a=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(l+=":"+e.port)),a&&"object"==typeof a&&(a=String(n.urlQueryToSearchParams(a)));let c=e.search||a&&"?"+a||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+o+l+(s=s.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}}}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[704],{706:(e,t)=>{"use strict";function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,i]of Object.entries(e))if(Array.isArray(i))for(let e of i)t.append(r,n(e));else t.set(r,n(i));return t}function o(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i}})},1061:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},1162:(e,t,r)=>{"use strict";var n=r(1756);r(9504);var i=r(5271),o=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),s=void 0!==n&&n.env&&!0,u=function(e){return"[object String]"===Object.prototype.toString.call(e)},a=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,o=void 0===i?s:i;l(u(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",l("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var a="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=a?a.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){l("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),l(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(l(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(l(u(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var r="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];l(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];l(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&l(u(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function l(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+c(e+"-"+r)),d[n]}function f(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var p=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=n||new a({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),n&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=o,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=h(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:h(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),y=i.createContext(null);y.displayName="StyleSheetContext";var m=o.default.useInsertionEffect||o.default.useLayoutEffect,_="undefined"!=typeof window?new p:void 0;function g(e){var t=_||i.useContext(y);return t&&("undefined"==typeof window?t.add(e):m(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}g.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=g},1251:(e,t,r)=>{"use strict";e.exports=r(1162).style},1509:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},1935:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]])},1983:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(5271);let i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},o=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var s={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 u=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:u=2,absoluteStrokeWidth:a,className:l="",children:c,iconNode:d,...h}=e;return(0,n.createElement)("svg",{ref:t,...s,width:o,height:o,stroke:r,strokeWidth:a?24*Number(u)/Number(o):u,className:i("lucide",l),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(h)&&{"aria-hidden":"true"},...h},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),a=(e,t)=>{let r=(0,n.forwardRef)((r,s)=>{let{className:a,...l}=r;return(0,n.createElement)(u,{ref:s,iconNode:t,className:i("lucide-".concat(o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),a),...l})});return r.displayName=o(e),r}},2265:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},2407:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]])},2823:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(5271);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("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)},3254:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},4206:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]])},4430:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("columns-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},4514:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},4640:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]])},4736:(e,t,r)=>{"use strict";var n=r(1504);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},5073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},5136:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},5275:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},5935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},useLinkStatus:function(){return g}});let n=r(4284),i=r(8111),o=n._(r(5271)),s=r(9642),u=r(5911),a=r(2823),l=r(7076),c=r(3790);r(4209);let d=r(7335),h=r(7843),f=r(587);r(5073);let p=r(5564);function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}function m(e){var t;let r,n,s,[m,g]=(0,o.useOptimistic)(d.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:S,as:k,children:A,prefetch:b=null,passHref:w,replace:x,shallow:j,scroll:R,onClick:C,onMouseEnter:M,onTouchStart:P,legacyBehavior:z=!1,onNavigate:E,ref:F,unstable_dynamicOnHover:O,...T}=e;r=A,z&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let N=o.default.useContext(u.AppRouterContext),I=!1!==b,L=!1!==b?null===(t=b)||"auto"===t?p.FetchStrategy.PPR:p.FetchStrategy.Full:p.FetchStrategy.PPR,{href:U,as:q}=o.default.useMemo(()=>{let e=y(S);return{href:e,as:k?y(k):e}},[S,k]);z&&(n=o.default.Children.only(r));let B=z?n&&"object"==typeof n&&n.ref:F,D=o.default.useCallback(e=>(null!==N&&(v.current=(0,d.mountLinkInstance)(e,U,N,L,I,g)),()=>{v.current&&((0,d.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,d.unmountPrefetchableInstance)(e)}),[I,U,N,L,g]),H={ref:(0,a.useMergedRef)(D,B),onClick(e){z||"function"!=typeof C||C(e),z&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),N&&(e.defaultPrevented||function(e,t,r,n,i,s,u){let{nodeName:a}=e.currentTarget;if(!("A"===a.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,h.isLocalURL)(t)){i&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}o.default.startTransition(()=>{(0,f.dispatchNavigateAction)(r||t,i?"replace":"push",null==s||s,n.current)})}}(e,U,q,v,x,R,E))},onMouseEnter(e){z||"function"!=typeof M||M(e),z&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),N&&I&&(0,d.onNavigationIntent)(e.currentTarget,!0===O)},onTouchStart:function(e){z||"function"!=typeof P||P(e),z&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),N&&I&&(0,d.onNavigationIntent)(e.currentTarget,!0===O)}};return(0,l.isAbsoluteUrl)(q)?H.href=q:z&&!w&&("a"!==n.type||"href"in n.props)||(H.href=(0,c.addBasePath)(q)),s=z?o.default.cloneElement(n,H):(0,i.jsx)("a",{...T,...H,children:r}),(0,i.jsx)(_.Provider,{value:m,children:s})}let _=(0,o.createContext)(d.IDLE_LINK_STATUS),g=()=>(0,o.useContext)(_);("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)},6361:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},6650:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).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"}]])},6778:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]])},6808:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},7076:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return g},MissingStaticPage:function(){return _},NormalizeError:function(){return y},PageNotFoundError:function(){return m},SP:function(){return h},ST:function(){return f},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return a},getLocationOrigin:function(){return s},getURL:function(){return u},isAbsoluteUrl:function(){return o},isResSent:function(){return l},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return v}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return r||(r=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function s(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function u(){let{href:e}=window.location,t=s();return e.substring(t.length)}function a(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function l(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&l(r))return n;if(!n)throw Object.defineProperty(Error('"'+a(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let h="undefined"!=typeof performance,f=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class y extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class _ extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class g 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})}},7549:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},7836:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},7843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=r(7076),i=r(3506);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},8067:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},8146:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},8193:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]])},9006:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]])},9026:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(1983).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},9504:()=>{},9642:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}});let n=r(4284)._(r(706)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,o=e.protocol||"",s=e.pathname||"",u=e.hash||"",a=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(l+=":"+e.port)),a&&"object"==typeof a&&(a=String(n.urlQueryToSearchParams(a)));let c=e.search||a&&"?"+a||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+o+l+(s=s.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73],{1298:(e,t,a)=>{a.d(t,{E:()=>r});function r(e,t){let a="".concat("https:"===window.location.protocol?"wss:":"ws:","//").concat(window.location.host,"/ws"),r=null,n=null,l=!1;return!function i(){l||((r=new WebSocket(a)).onopen=()=>{var e;null==t||null==(e=t.onOpen)||e.call(t)},r.onmessage=t=>{try{let a=JSON.parse(t.data);e(a.event,a.payload)}catch(e){}},r.onclose=()=>{var e;null==t||null==(e=t.onClose)||e.call(t),l||(n=setTimeout(i,3e3))},r.onerror=()=>null==r?void 0:r.close())}(),{close:()=>{l=!0,n&&clearTimeout(n),null==r||r.close()}}}},2755:(e,t,a)=>{a.d(t,{Qc:()=>u,Z6:()=>d,t0:()=>p});var r=a(8111),n=a(5271);let l={accentColor:null,portalName:null,portalSubtitle:null,portalEmoji:null,portalIcon:null,iconBgHidden:!1,emojiOnly:!1,operatorName:null,language:"English",employeeOverrides:{}},i="jinn-settings";function o(e){localStorage.setItem(i,JSON.stringify(e))}var s=a(3176);let c=(0,n.createContext)({settings:{accentColor:null,portalName:null,portalSubtitle:null,portalEmoji:null,portalIcon:null,iconBgHidden:!1,emojiOnly:!1,operatorName:null,language:"English",employeeOverrides:{}},setAccentColor:()=>{},setPortalName:()=>{},setPortalSubtitle:()=>{},setPortalEmoji:()=>{},setPortalIcon:()=>{},setIconBgHidden:()=>{},setEmojiOnly:()=>{},setOperatorName:()=>{},setLanguage:()=>{},setEmployeeOverride:()=>{},clearEmployeeOverride:()=>{},getEmployeeDisplay:e=>({emoji:e.emoji}),resetAll:()=>{}});function d(e){let{children:t}=e,[a,d]=(0,n.useState)({...l});(0,n.useEffect)(()=>{let e=function(){try{let e=localStorage.getItem(i);if(!e)return{...l};let t=JSON.parse(e);return{...l,...t}}catch(e){return{...l}}}();d(e),s.F.getOnboarding().then(t=>{if(t.portalName||t.operatorName){let a={...e,...t.portalName&&{portalName:t.portalName},...t.operatorName&&{operatorName:t.operatorName}};d(a),o(a)}}).catch(()=>{})},[]),(0,n.useEffect)(()=>{let e=document.documentElement.style;a.accentColor?(e.setProperty("--accent",a.accentColor),e.setProperty("--accent-fill",function(e){let t=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return"rgba(".concat(t,",").concat(a,",").concat(r,",0.15)")}(a.accentColor)),e.setProperty("--accent-contrast",function(e){let t=parseInt(e.slice(1,3),16)/255,a=parseInt(e.slice(3,5),16)/255,r=parseInt(e.slice(5,7),16)/255,n=e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4);return .2126*n(t)+.7152*n(a)+.0722*n(r)>.4?"#000":"#fff"}(a.accentColor))):(e.removeProperty("--accent"),e.removeProperty("--accent-fill"),e.removeProperty("--accent-contrast"))},[a.accentColor]);let p=(0,n.useCallback)(e=>{d(e),o(e)},[]),u=(0,n.useCallback)(e=>{p({...a,accentColor:e})},[a,p]),h=(0,n.useCallback)(e=>{p({...a,portalName:e||null})},[a,p]),g=(0,n.useCallback)(e=>{p({...a,portalSubtitle:e||null})},[a,p]),x=(0,n.useCallback)(e=>{p({...a,portalEmoji:e||null})},[a,p]),f=(0,n.useCallback)(e=>{p({...a,portalIcon:e})},[a,p]),m=(0,n.useCallback)(e=>{p({...a,iconBgHidden:e})},[a,p]),v=(0,n.useCallback)(e=>{p({...a,emojiOnly:e})},[a,p]),y=(0,n.useCallback)(e=>{p({...a,operatorName:e||null})},[a,p]),b=(0,n.useCallback)(e=>{p({...a,language:e||"English"})},[a,p]),j=(0,n.useCallback)((e,t)=>{let r=a.employeeOverrides[e]||{};p({...a,employeeOverrides:{...a.employeeOverrides,[e]:{...r,...t}}})},[a,p]),k=(0,n.useCallback)(e=>{let{[e]:t,...r}=a.employeeOverrides;p({...a,employeeOverrides:r})},[a,p]),w=(0,n.useCallback)(e=>{let t=a.employeeOverrides[e.id];return{emoji:(null==t?void 0:t.emoji)||e.emoji,profileImage:null==t?void 0:t.profileImage,emojiOnly:a.emojiOnly}},[a.employeeOverrides,a.emojiOnly]),S=(0,n.useCallback)(()=>{p({accentColor:null,portalName:null,portalSubtitle:null,portalEmoji:null,portalIcon:null,iconBgHidden:!1,emojiOnly:!1,operatorName:null,language:"English",employeeOverrides:{}})},[p]);return(0,r.jsx)(c.Provider,{value:{settings:a,setAccentColor:u,setPortalName:h,setPortalSubtitle:g,setPortalEmoji:x,setPortalIcon:f,setIconBgHidden:m,setEmojiOnly:v,setOperatorName:y,setLanguage:b,setEmployeeOverride:j,clearEmployeeOverride:k,getEmployeeDisplay:w,resetAll:S},children:t})}let p=()=>(0,n.useContext)(c);function u(){let{settings:e}=p(),t=(0,n.useRef)(e.portalName);return t.current=e.portalName,(0,n.useEffect)(()=>{function e(){let e=t.current||"Jinn",a="".concat(e," - AI Gateway");document.title!==a&&(document.title=a)}e();let a=document.querySelector("title");if(!a)return;let r=new MutationObserver(()=>e());return r.observe(a,{childList:!0,characterData:!0,subtree:!0}),()=>r.disconnect()},[e.portalName]),null}},3073:(e,t,a)=>{a.d(t,{M:()=>ea});var r=a(8111),n=a(1251),l=a.n(n),i=a(5271),o=a(5935),s=a.n(o),c=a(4736),d=a(2755),p=a(8193),u=a(6778),h=a(7549),g=a(2265),x=a(6808),f=a(1935),m=a(6361),v=a(4514),y=a(9026),b=a(3254),j=a(5275),k=a(9006),w=a(4206),S=a(7460),C=a(9834);let N=[{href:"/",label:"Home",icon:p.A},{href:"/chat",label:"Chat",icon:u.A},{href:"/sessions",label:"Sessions",icon:h.A},{href:"/org",label:"Organization",icon:g.A},{href:"/kanban",label:"Kanban",icon:x.A},{href:"/cron",label:"Cron",icon:f.A},{href:"/costs",label:"Costs",icon:m.A},{href:"/logs",label:"Activity",icon:v.A},{href:"/skills",label:"Skills",icon:y.A},{href:"/settings",label:"Settings",icon:b.A}];function z(e){let{theme:t}=e;switch(t){case"light":return(0,r.jsx)(j.A,{size:18});case"dark":return(0,r.jsx)(k.A,{size:18});default:return(0,r.jsx)(w.A,{size:18})}}function A(){var e,t;let a=(0,c.usePathname)(),{theme:n,setTheme:l}=(0,S.D)(),{settings:o}=(0,d.t0)(),[p,u]=(0,i.useState)(!1),h=null!=(e=o.portalEmoji)?e:"\uD83E\uDD16",g=null!=(t=o.portalName)?t:"Jinn";return(0,r.jsxs)("aside",{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:{position:"fixed",left:0,top:0,bottom:0,width:p?200:56,background:"var(--bg-secondary)",borderRight:"1px solid var(--separator)",flexDirection:"column",zIndex:50,transition:"width 200ms var(--ease-smooth)",overflow:"hidden"},className:"hidden lg:flex",children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"16px 14px 12px",minHeight:56,flexShrink:0},children:[(0,r.jsx)("span",{style:{fontSize:24,lineHeight:1,flexShrink:0,width:28,textAlign:"center"},children:h}),(0,r.jsx)("span",{style:{fontSize:17,fontWeight:600,color:"var(--text-primary)",whiteSpace:"nowrap",opacity:+!!p,transition:"opacity 200ms var(--ease-smooth)"},children:g})]}),(0,r.jsx)("nav",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,padding:"0 8px"},children:N.map(e=>{let t="/"===e.href?"/"===a:a.startsWith(e.href),n=e.icon;return(0,r.jsxs)(s(),{href:e.href,className:"nav-item","aria-label":e.label,"aria-current":t?"page":void 0,style:{display:"flex",alignItems:"center",gap:10,height:40,padding:"0 12px",textDecoration:"none",color:t?"var(--accent)":"var(--text-secondary)",background:t?"var(--accent-fill)":"transparent",fontWeight:t?600:400,fontSize:13,whiteSpace:"nowrap"},children:[(0,r.jsx)(n,{size:18,style:{flexShrink:0,color:t?"var(--accent)":"var(--text-secondary)"}}),(0,r.jsx)("span",{style:{opacity:+!!p,transition:"opacity 200ms var(--ease-smooth)"},children:e.label})]},e.href)})}),(0,r.jsx)("div",{style:{padding:"8px 8px 12px",flexShrink:0},children:(0,r.jsxs)("button",{onClick:function(){let e=C.z.map(e=>e.id),t=e.indexOf(n);l(e[(t+1)%e.length])},className:"nav-item","aria-label":"Theme: ".concat(n,". Click to cycle."),style:{display:"flex",alignItems:"center",gap:10,height:40,padding:"0 12px",width:"100%",border:"none",background:"transparent",color:"var(--text-secondary)",cursor:"pointer",fontSize:13,whiteSpace:"nowrap"},children:[(0,r.jsx)("span",{style:{flexShrink:0},children:(0,r.jsx)(z,{theme:n})}),(0,r.jsx)("span",{style:{opacity:+!!p,transition:"opacity 200ms var(--ease-smooth)",textTransform:"capitalize"},children:n})]})})]})}var E=a(8067);let I=window.location.origin,R=[{id:"page-home",label:"Dashboard",icon:(0,r.jsx)(p.A,{size:16}),href:"/",category:"Pages"},{id:"page-chat",label:"Chat",icon:(0,r.jsx)(u.A,{size:16}),href:"/chat",category:"Pages"},{id:"page-sessions",label:"Sessions",icon:(0,r.jsx)(h.A,{size:16}),href:"/sessions",category:"Pages"},{id:"page-org",label:"Organization",icon:(0,r.jsx)(g.A,{size:16}),href:"/org",category:"Pages"},{id:"page-kanban",label:"Kanban",icon:(0,r.jsx)(x.A,{size:16}),href:"/kanban",category:"Pages"},{id:"page-cron",label:"Cron",icon:(0,r.jsx)(f.A,{size:16}),href:"/cron",category:"Pages"},{id:"page-costs",label:"Costs",icon:(0,r.jsx)(m.A,{size:16}),href:"/costs",category:"Pages"},{id:"page-logs",label:"Activity",icon:(0,r.jsx)(v.A,{size:16}),href:"/logs",category:"Pages"},{id:"page-skills",label:"Skills",icon:(0,r.jsx)(y.A,{size:16}),href:"/skills",category:"Pages"},{id:"page-settings",label:"Settings",icon:(0,r.jsx)(b.A,{size:16}),href:"/settings",category:"Pages"}];function W(e,t){return t.toLowerCase().includes(e.toLowerCase())}function O(){var e;let{settings:t}=(0,d.t0)(),a=null!=(e=t.portalName)?e:"Jinn",[n,l]=(0,i.useState)(!1),[o,s]=(0,i.useState)(""),[p,u]=(0,i.useState)(0),[h,x]=(0,i.useState)([]),[m,v]=(0,i.useState)([]),y=(0,i.useRef)(null),b=(0,i.useRef)(null),j=(0,c.useRouter)();(0,i.useEffect)(()=>{function e(e){(e.metaKey||e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),l(e=>!e))}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,i.useEffect)(()=>{n&&(s(""),u(0),fetch("".concat(I,"/api/org")).then(e=>{if(!e.ok)throw Error("HTTP ".concat(e.status));return e.json()}).then(e=>{if(Array.isArray(e))x(e);else if(e&&"object"==typeof e&&"employees"in e){var t;x(null!=(t=e.employees)?t:[])}}).catch(()=>x([])),fetch("".concat(I,"/api/cron")).then(e=>{if(!e.ok)throw Error("HTTP ".concat(e.status));return e.json()}).then(e=>{if(Array.isArray(e))v(e);else if(e&&"object"==typeof e&&"crons"in e){var t;v(null!=(t=e.crons)?t:[])}}).catch(()=>v([])))},[n]),(0,i.useEffect)(()=>{n&&requestAnimationFrame(()=>{var e;return null==(e=y.current)?void 0:e.focus()})},[n]),(0,i.useEffect)(()=>(n?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[n]);let k=(0,i.useMemo)(()=>{let e=[...R];return(h.forEach(t=>{e.push({id:"emp-".concat(t.id),label:t.name,subtitle:t.title,icon:(0,r.jsx)(g.A,{size:16}),href:"/org",category:"Employees"})}),m.forEach(t=>{e.push({id:"cron-".concat(t.id),label:t.name,subtitle:t.schedule,icon:(0,r.jsx)(f.A,{size:16}),href:"/cron",category:"Cron Jobs"})}),o.trim())?e.filter(e=>W(o,e.label)||e.subtitle&&W(o,e.subtitle)):e},[o,h,m]),w=(0,i.useMemo)(()=>{let e=[];for(let t of["Pages","Employees","Cron Jobs"]){let a=k.filter(e=>e.category===t);a.length>0&&e.push({category:t,items:a})}return e},[k]),S=(0,i.useMemo)(()=>w.flatMap(e=>e.items),[w]),C=(0,i.useCallback)(e=>{l(!1),j.push(e.href)},[j]),N=(0,i.useCallback)(e=>{if("Escape"===e.key){e.preventDefault(),l(!1);return}if("ArrowDown"===e.key){e.preventDefault(),u(e=>Math.min(e+1,S.length-1));return}if("ArrowUp"===e.key){e.preventDefault(),u(e=>Math.max(e-1,0));return}if("Enter"===e.key){e.preventDefault(),S[p]&&C(S[p]);return}},[p,S,C]);if((0,i.useEffect)(()=>{u(0)},[o]),(0,i.useEffect)(()=>{if(!b.current)return;let e=b.current.querySelector('[data-active="true"]');e&&e.scrollIntoView({block:"nearest"})},[p]),!n)return null;let z=0;return(0,r.jsxs)("div",{style:{position:"fixed",inset:0,zIndex:100,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"20vh"},children:[(0,r.jsx)("div",{style:{position:"absolute",inset:0,background:"rgba(0,0,0,0.5)",backdropFilter:"blur(4px)",WebkitBackdropFilter:"blur(4px)"},onClick:()=>l(!1),"aria-hidden":"true"}),(0,r.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Search ".concat(a),className:"animate-scale-in",onKeyDown:N,style:{position:"relative",width:"100%",maxWidth:560,margin:"0 16px",borderRadius:"var(--radius-xl)",background:"var(--bg-secondary)",border:"1px solid var(--separator)",boxShadow:"var(--shadow-overlay)",overflow:"hidden",display:"flex",flexDirection:"column",maxHeight:480},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"14px 16px",borderBottom:"1px solid var(--separator)"},children:[(0,r.jsx)(E.A,{size:18,style:{color:"var(--text-tertiary)",flexShrink:0},"aria-hidden":"true"}),(0,r.jsx)("input",{ref:y,type:"text",value:o,onChange:e=>s(e.target.value),placeholder:"Search ".concat(a,"..."),"aria-label":"Search ".concat(a),style:{flex:1,background:"transparent",border:"none",outline:"none",fontSize:15,color:"var(--text-primary)",fontFamily:"inherit"}}),(0,r.jsx)("kbd",{style:{fontSize:11,fontFamily:"var(--font-mono)",padding:"2px 6px",borderRadius:4,background:"var(--fill-quaternary)",color:"var(--text-quaternary)",border:"1px solid var(--separator)",lineHeight:"16px"},children:"esc"})]}),(0,r.jsxs)("div",{ref:b,role:"listbox","aria-label":"Search results",style:{flex:1,overflowY:"auto",padding:8},children:[0===S.length&&o.trim()&&(0,r.jsxs)("div",{style:{padding:"24px 16px",textAlign:"center",color:"var(--text-tertiary)",fontSize:13},children:["No results for “",o,"”"]}),w.map(e=>(0,r.jsxs)("div",{style:{marginBottom:4},children:[(0,r.jsx)("div",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--text-tertiary)",padding:"6px 8px 4px"},children:e.category}),e.items.map(e=>{let t=z++,a=t===p;return(0,r.jsxs)("button",{role:"option","aria-selected":a,"data-active":a,onClick:()=>C(e),onMouseEnter:()=>u(t),style:{display:"flex",alignItems:"center",gap:10,width:"100%",minHeight:40,padding:"8px 10px",borderRadius:"var(--radius-sm)",border:"none",background:a?"var(--accent-fill)":"transparent",cursor:"pointer",textAlign:"left",transition:"background 80ms var(--ease-smooth)",outline:"none",color:"var(--text-primary)",fontFamily:"inherit",fontSize:13},children:[(0,r.jsx)("span",{style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:6,background:"var(--fill-quaternary)",flexShrink:0,color:"var(--text-secondary)"},children:e.icon}),(0,r.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,r.jsx)("div",{style:{fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.label}),e.subtitle&&(0,r.jsx)("div",{style:{fontSize:11,color:"var(--text-tertiary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.subtitle})]})]},e.id)})]},e.category))]}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:16,padding:"8px 16px",borderTop:"1px solid var(--separator)",fontSize:11,color:"var(--text-quaternary)"},children:[(0,r.jsxs)("span",{children:[(0,r.jsx)("kbd",{style:{fontFamily:"var(--font-mono)"},children:"↑↓"})," Navigate"]}),(0,r.jsxs)("span",{children:[(0,r.jsx)("kbd",{style:{fontFamily:"var(--font-mono)"},children:"↵"})," Open"]}),(0,r.jsxs)("span",{children:[(0,r.jsx)("kbd",{style:{fontFamily:"var(--font-mono)"},children:"esc"})," Close"]})]})]})]})}var B=a(6650),D=a(4640),P=a(1061),F=a(3176),L=a(4263),T=a(5310);let H="open-live-stream",J={info:{bg:"rgba(48,209,88,0.12)",color:"var(--system-green)",label:"INF"},warn:{bg:"rgba(255,159,10,0.12)",color:"var(--system-orange)",label:"WRN"},error:{bg:"rgba(255,69,58,0.12)",color:"var(--system-red)",label:"ERR"},debug:{bg:"var(--fill-secondary)",color:"var(--text-tertiary)",label:"DBG"}};function M(e){return"[".concat(e.timestamp,"] [").concat(e.level.toUpperCase(),"] ").concat(e.message)}function q(e){var t;let{entry:a}=e,[n,l]=(0,i.useState)(!1),o=null!=(t=J[a.level])?t:J.debug,s=a.message.length>100;return(0,r.jsxs)("div",{style:{borderBottom:"1px solid var(--separator)",background:"error"===a.level?"rgba(255,69,58,0.03)":void 0},children:[(0,r.jsxs)("button",{onClick:()=>s&&l(e=>!e),style:{display:"flex",alignItems:"center",width:"100%",padding:"5px 12px",gap:8,border:"none",background:"transparent",cursor:s?"pointer":"default",textAlign:"left"},children:[s?(0,r.jsx)("span",{style:{fontSize:10,color:"var(--text-tertiary)",flexShrink:0,transition:"transform 150ms var(--ease-smooth)",transform:n?"rotate(90deg)":"rotate(0deg)",display:"inline-block"},children:"›"}):(0,r.jsx)("span",{style:{width:10,flexShrink:0}}),(0,r.jsx)("span",{className:"font-mono",style:{color:"var(--text-tertiary)",fontSize:10,flexShrink:0,minWidth:58},children:function(e){if(!e)return"";let t=e.split(" ");return t.length>1?t[1]:e}(a.timestamp)}),(0,r.jsx)("span",{style:{fontSize:9,fontWeight:700,letterSpacing:"0.5px",padding:"1px 5px",borderRadius:3,background:o.bg,color:o.color,flexShrink:0,lineHeight:"14px"},children:o.label}),(0,r.jsx)("span",{className:"font-mono",style:{color:"error"===a.level?"var(--system-red)":"var(--text-secondary)",fontSize:10,lineHeight:1.4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0},children:a.message})]}),n&&s&&(0,r.jsx)("div",{style:{padding:"6px 12px 8px 30px",borderTop:"1px solid var(--separator)",background:"var(--fill-secondary)"},children:(0,r.jsx)("pre",{className:"font-mono",style:{fontSize:9,lineHeight:1.5,color:"var(--text-secondary)",whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0},children:a.message})})]})}function K(){let[e,t]=(0,i.useState)("hidden"),[a,n]=(0,i.useState)([]),[l,o]=(0,i.useState)(!0),[s,c]=(0,i.useState)(!1),[d,p]=(0,i.useState)(null),u=(0,i.useRef)(null),{events:h}=(0,L.G)();(0,i.useEffect)(()=>{l&&u.current&&(u.current.scrollTop=u.current.scrollHeight)},[a,l]);let g=(0,i.useCallback)(()=>{if(!u.current)return;let{scrollTop:e,scrollHeight:t,clientHeight:a}=u.current;t-e-a<40?o(!0):o(!1)},[]);(0,i.useEffect)(()=>{"expanded"===e&&F.F.getLogs(50).then(e=>{var t;n((null!=(t=e.lines)?t:[]).map(T.w)),p(null)}).catch(e=>{p(e instanceof Error?e.message:"Failed to load logs")})},[e]),(0,i.useEffect)(()=>{if("hidden"===e||0===h.length)return;let t=h[h.length-1];if("log"===t.event&&"object"==typeof t.payload&&null!==t.payload){let e=t.payload,a=e.line||e.message||JSON.stringify(t.payload),r=(0,T.w)(a,Date.now());n(e=>[...e,r].slice(-500))}},[h,e]);let x=(0,i.useCallback)(()=>{t("hidden")},[]),f=(0,i.useCallback)(async()=>{let e=a.map(M).join("\n");await navigator.clipboard.writeText(e),c(!0),setTimeout(()=>c(!1),1500)},[a]);return((0,i.useEffect)(()=>{function e(){t("expanded")}return window.addEventListener(H,e),()=>window.removeEventListener(H,e)},[]),"hidden"===e)?null:"collapsed"===e?(0,r.jsxs)("button",{onClick:()=>t("expanded"),className:"focus-ring flex items-center",style:{position:"fixed",bottom:20,right:20,zIndex:50,padding:"8px 14px",borderRadius:"var(--radius-pill)",border:"1px solid var(--separator)",background:"var(--material-regular)",backdropFilter:"blur(40px) saturate(180%)",WebkitBackdropFilter:"blur(40px) saturate(180%)",cursor:"pointer",gap:8,boxShadow:"0 4px 24px rgba(0,0,0,0.25)"},children:[(0,r.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:"var(--system-green)",animation:"lsw-pulse 2s ease-in-out infinite",flexShrink:0}}),(0,r.jsx)("span",{style:{fontSize:"var(--text-caption1)",color:"var(--text-secondary)",fontWeight:"var(--weight-medium)"},children:"Live Stream"}),a.length>0&&(0,r.jsx)("span",{style:{fontSize:"var(--text-caption2)",color:"var(--text-tertiary)",background:"var(--fill-secondary)",padding:"1px 6px",borderRadius:"var(--radius-sm)"},children:a.length}),(0,r.jsx)("style",{children:"@keyframes lsw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }"})]}):(0,r.jsxs)("div",{className:"panel-slide-in",style:{position:"fixed",bottom:20,right:20,zIndex:50,width:440,height:400,borderRadius:"var(--radius-lg)",border:"1px solid var(--separator)",background:"var(--material-regular)",backdropFilter:"blur(40px) saturate(180%)",WebkitBackdropFilter:"blur(40px) saturate(180%)",boxShadow:"0 8px 40px rgba(0,0,0,0.35)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[(0,r.jsxs)("div",{className:"flex items-center flex-shrink-0",style:{padding:"10px 14px",borderBottom:"1px solid var(--separator)",gap:8},children:[(0,r.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:"var(--system-green)",animation:"lsw-pulse 2s ease-in-out infinite",flexShrink:0}}),(0,r.jsx)("span",{style:{fontSize:"var(--text-footnote)",fontWeight:"var(--weight-semibold)",color:"var(--text-primary)"},children:"Live Stream"}),a.length>0&&(0,r.jsxs)("span",{style:{fontSize:"var(--text-caption2)",color:"var(--text-tertiary)"},children:[a.length," line",1!==a.length?"s":""]}),(0,r.jsxs)("div",{style:{marginLeft:"auto",display:"flex",gap:4},children:[(0,r.jsx)("button",{onClick:f,className:"focus-ring",title:"Copy all logs",disabled:0===a.length,style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--radius-sm)",border:"none",background:s?"var(--accent-fill)":"transparent",color:s?"var(--accent)":"var(--text-tertiary)",cursor:0===a.length?"default":"pointer",opacity:0===a.length?.3:1,transition:"all 150ms var(--ease-smooth)"},children:(0,r.jsx)(B.A,{size:14})}),(0,r.jsx)("button",{onClick:()=>t("collapsed"),className:"focus-ring",title:"Minimize",style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--radius-sm)",border:"none",background:"transparent",color:"var(--text-tertiary)",cursor:"pointer",transition:"color 150ms var(--ease-smooth)"},children:(0,r.jsx)(D.A,{size:14})}),(0,r.jsx)("button",{onClick:x,className:"focus-ring",title:"Close",style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--radius-sm)",border:"none",background:"transparent",color:"var(--text-tertiary)",cursor:"pointer",transition:"color 150ms var(--ease-smooth)"},children:(0,r.jsx)(P.A,{size:14})})]})]}),d&&(0,r.jsx)("div",{style:{padding:"6px 14px",background:"rgba(255,69,58,0.06)",borderBottom:"1px solid rgba(255,69,58,0.15)",fontSize:"var(--text-caption2)",color:"var(--system-red)",flexShrink:0},children:d}),(0,r.jsx)("div",{ref:u,onScroll:g,style:{flex:1,minHeight:0,overflowY:"auto",overflowX:"hidden"},children:0===a.length?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center",style:{height:"100%",color:"var(--text-secondary)",gap:"var(--space-2)",padding:"var(--space-4)"},children:[(0,r.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:"var(--text-tertiary)"},children:(0,r.jsx)("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})}),(0,r.jsx)("span",{style:{fontSize:"var(--text-caption1)",fontWeight:"var(--weight-medium)"},children:"Waiting for log data..."})]}):(0,r.jsx)("div",{children:a.map(e=>(0,r.jsx)(q,{entry:e},e.id))})}),(0,r.jsx)("div",{className:"flex items-center flex-shrink-0",style:{padding:"8px 14px",borderTop:"1px solid var(--separator)",gap:8},children:!l&&a.length>0&&(0,r.jsx)("button",{onClick:()=>o(!0),className:"focus-ring",style:{padding:"4px 10px",borderRadius:"var(--radius-sm)",border:"none",cursor:"pointer",fontSize:"var(--text-caption2)",fontWeight:"var(--weight-medium)",background:"var(--fill-secondary)",color:"var(--text-secondary)"},children:"Scroll to bottom"})}),(0,r.jsx)("style",{children:"@keyframes lsw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }"})]})}var G=a(4430),Y=a(1509),_=a(8146),U=a(2407),V=a(5136);let Q=[{label:"Red",value:"#EF4444"},{label:"Orange",value:"#F97316"},{label:"Amber",value:"#F59E0B"},{label:"Yellow",value:"#EAB308"},{label:"Lime",value:"#84CC16"},{label:"Green",value:"#22C55E"},{label:"Emerald",value:"#10B981"},{label:"Cyan",value:"#06B6D4"},{label:"Blue",value:"#3B82F6"},{label:"Indigo",value:"#6366F1"},{label:"Violet",value:"#8B5CF6"},{label:"Pink",value:"#EC4899"}],X=[{icon:u.A,name:"Chat",desc:"Direct conversations with any employee"},{icon:g.A,name:"Organization",desc:"Visual org chart of your AI team"},{icon:G.A,name:"Kanban",desc:"Task boards for work management"},{icon:f.A,name:"Cron",desc:"Scheduled jobs with status monitoring"},{icon:m.A,name:"Costs",desc:"Token usage and cost tracking"},{icon:v.A,name:"Activity",desc:"Real-time logs and event stream"}];function Z(e){var t;let{forceOpen:a,onClose:n}=e,{settings:l,setPortalName:o,setOperatorName:s,setAccentColor:p,setLanguage:u}=(0,d.t0)(),{theme:h,setTheme:g}=(0,S.D)(),x=(0,c.useRouter)(),[f,m]=(0,i.useState)(!1),[v,y]=(0,i.useState)(0),[b,j]=(0,i.useState)("forward"),[k,w]=(0,i.useState)(""),[N,z]=(0,i.useState)(""),[A,E]=(0,i.useState)(null!=(t=l.language)?t:"English");(0,i.useEffect)(()=>{if(a){var e,t;w(null!=(e=l.portalName)?e:""),z(null!=(t=l.operatorName)?t:""),m(!0);return}localStorage.getItem("jinn-onboarded")||m(!0)},[a]);let I=(0,i.useCallback)(()=>{0===v&&(o(k||null),s(N||null),u(A||"English")),v<3?(j("forward"),y(v+1)):(F.F.completeOnboarding({portalName:k||void 0,operatorName:N||void 0,language:A||void 0}).catch(()=>{}),a||localStorage.setItem("jinn-onboarded","true"),m(!1),null==n||n(),x.push("/chat"))},[v,k,N,a,n,o,s,x]),R=(0,i.useCallback)(()=>{v>0&&(j("back"),y(v-1))},[v]);return f?(0,r.jsx)("div",{style:{position:"fixed",inset:0,zIndex:50,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(0,0,0,0.6)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)"},children:(0,r.jsxs)("div",{className:"animate-fade-in",style:{width:"100%",maxWidth:520,margin:"0 var(--space-4)",background:"var(--material-regular)",borderRadius:"var(--radius-lg)",border:"1px solid var(--separator)",boxShadow:"0 24px 48px rgba(0,0,0,0.3)",overflow:"hidden",display:"flex",flexDirection:"column",maxHeight:"90vh"},children:[(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center",gap:8,padding:"var(--space-4) var(--space-4) 0"},children:Array.from({length:4}).map((e,t)=>(0,r.jsx)("div",{style:{width:t===v?24:8,height:8,borderRadius:4,background:t===v||t<v?"var(--accent)":"var(--fill-tertiary)",opacity:t<v?.5:1,transition:"all 200ms var(--ease-smooth)"}},t))}),(0,r.jsxs)("div",{style:{padding:"var(--space-5) var(--space-5) var(--space-4)",overflowY:"auto",flex:1},children:[0===v&&(0,r.jsxs)("div",{className:"animate-fade-in",style:{textAlign:"center"},children:[(0,r.jsx)("div",{style:{fontSize:56,marginBottom:"var(--space-3)",lineHeight:1},children:"\ud83e\udd16"}),(0,r.jsxs)("h2",{style:{fontSize:"var(--text-large-title)",fontWeight:"var(--weight-bold)",letterSpacing:"var(--tracking-tight)",color:"var(--text-primary)",marginBottom:"var(--space-2)"},children:["Welcome to ",k||"Jinn"]}),(0,r.jsx)("p",{style:{fontSize:"var(--text-body)",color:"var(--text-secondary)",lineHeight:"var(--leading-relaxed)",maxWidth:400,margin:"0 auto var(--space-5)"},children:"Your AI team management portal. Let's get you set up."}),(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-3)",textAlign:"left"},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{style:{display:"block",fontSize:"var(--text-caption1)",color:"var(--text-tertiary)",marginBottom:"var(--space-1)"},children:"Portal Name"}),(0,r.jsx)("input",{type:"text",className:"apple-input",placeholder:"Jinn",value:k,onChange:e=>w(e.target.value),autoFocus:!0,style:{width:"100%",background:"var(--bg-secondary)",border:"1px solid var(--separator)",borderRadius:"var(--radius-sm)",padding:"8px 12px",fontSize:"var(--text-body)",color:"var(--text-primary)"}})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{style:{display:"block",fontSize:"var(--text-caption1)",color:"var(--text-tertiary)",marginBottom:"var(--space-1)"},children:"What should we call you?"}),(0,r.jsx)("input",{type:"text",className:"apple-input",placeholder:"Your Name",value:N,onChange:e=>z(e.target.value),style:{width:"100%",background:"var(--bg-secondary)",border:"1px solid var(--separator)",borderRadius:"var(--radius-sm)",padding:"8px 12px",fontSize:"var(--text-body)",color:"var(--text-primary)"}})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{style:{display:"block",fontSize:"var(--text-caption1)",color:"var(--text-tertiary)",marginBottom:"var(--space-1)"},children:"Preferred Language"}),(0,r.jsxs)("select",{value:A,onChange:e=>E(e.target.value),style:{width:"100%",background:"var(--bg-secondary)",border:"1px solid var(--separator)",borderRadius:"var(--radius-sm)",padding:"8px 12px",fontSize:"var(--text-body)",color:"var(--text-primary)",cursor:"pointer"},children:[(0,r.jsx)("option",{value:"English",children:"English"}),(0,r.jsx)("option",{value:"Spanish",children:"Spanish"}),(0,r.jsx)("option",{value:"French",children:"French"}),(0,r.jsx)("option",{value:"German",children:"German"}),(0,r.jsx)("option",{value:"Portuguese",children:"Portuguese"}),(0,r.jsx)("option",{value:"Italian",children:"Italian"}),(0,r.jsx)("option",{value:"Dutch",children:"Dutch"}),(0,r.jsx)("option",{value:"Russian",children:"Russian"}),(0,r.jsx)("option",{value:"Chinese",children:"Chinese"}),(0,r.jsx)("option",{value:"Japanese",children:"Japanese"}),(0,r.jsx)("option",{value:"Korean",children:"Korean"}),(0,r.jsx)("option",{value:"Arabic",children:"Arabic"}),(0,r.jsx)("option",{value:"Hindi",children:"Hindi"}),(0,r.jsx)("option",{value:"Bulgarian",children:"Bulgarian"})]})]})]})]},"step-0"),1===v&&(0,r.jsxs)("div",{className:"animate-fade-in",children:[(0,r.jsx)("h2",{style:{fontSize:"var(--text-title1)",fontWeight:"var(--weight-bold)",letterSpacing:"var(--tracking-tight)",color:"var(--text-primary)",marginBottom:"var(--space-1)"},children:"Choose your theme"}),(0,r.jsx)("p",{style:{fontSize:"var(--text-subheadline)",color:"var(--text-tertiary)",marginBottom:"var(--space-4)"},children:"Pick the look that suits you. This applies live."}),(0,r.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(130px, 1fr))",gap:"var(--space-3)"},children:C.z.map(e=>{let t=h===e.id;return(0,r.jsxs)("button",{onClick:()=>g(e.id),style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--space-2)",padding:"var(--space-4) var(--space-3)",borderRadius:"var(--radius-md)",background:"var(--fill-quaternary)",border:t?"2px solid var(--accent)":"2px solid var(--separator)",cursor:"pointer",transition:"all 150ms var(--ease-smooth)"},children:[(0,r.jsx)("span",{style:{fontSize:28},children:e.emoji}),(0,r.jsx)("span",{style:{fontSize:"var(--text-footnote)",fontWeight:t?"var(--weight-semibold)":"var(--weight-medium)",color:t?"var(--accent)":"var(--text-secondary)"},children:e.label})]},e.id)})})]},"step-1"),2===v&&(0,r.jsxs)("div",{className:"animate-fade-in",children:[(0,r.jsx)("h2",{style:{fontSize:"var(--text-title1)",fontWeight:"var(--weight-bold)",letterSpacing:"var(--tracking-tight)",color:"var(--text-primary)",marginBottom:"var(--space-1)"},children:"Pick an accent color"}),(0,r.jsx)("p",{style:{fontSize:"var(--text-subheadline)",color:"var(--text-tertiary)",marginBottom:"var(--space-4)"},children:"Personalize with your favorite color."}),(0,r.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(6, 1fr)",gap:"var(--space-3)",justifyItems:"center"},children:Q.map(e=>{let t=l.accentColor===e.value;return(0,r.jsx)("button",{onClick:()=>p(e.value),"aria-label":e.label,title:e.label,style:{width:40,height:40,borderRadius:"50%",background:e.value,border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",outline:t?"3px solid ".concat(e.value):"none",outlineOffset:3,transition:"all 100ms var(--ease-smooth)"},children:t&&(0,r.jsx)(Y.A,{size:18,color:"#fff",strokeWidth:3})},e.value)})})]},"step-2"),3===v&&(0,r.jsxs)("div",{className:"animate-fade-in",children:[(0,r.jsx)("h2",{style:{fontSize:"var(--text-title1)",fontWeight:"var(--weight-bold)",letterSpacing:"var(--tracking-tight)",color:"var(--text-primary)",marginBottom:"var(--space-1)"},children:"You're all set!"}),(0,r.jsx)("p",{style:{fontSize:"var(--text-subheadline)",color:"var(--text-tertiary)",marginBottom:"var(--space-4)"},children:"Here's what you can do."}),(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-2)"},children:X.map(e=>{let t=e.icon;return(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-3)",padding:"var(--space-3)",borderRadius:"var(--radius-md)",background:"var(--fill-quaternary)",border:"1px solid var(--separator)"},children:[(0,r.jsx)("div",{style:{width:36,height:36,borderRadius:8,background:"var(--accent-fill)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,r.jsx)(t,{size:18,style:{color:"var(--accent)"}})}),(0,r.jsxs)("div",{style:{minWidth:0},children:[(0,r.jsx)("div",{style:{fontSize:"var(--text-subheadline)",fontWeight:"var(--weight-semibold)",color:"var(--text-primary)"},children:e.name}),(0,r.jsx)("div",{style:{fontSize:"var(--text-caption1)",color:"var(--text-tertiary)"},children:e.desc})]})]},e.name)})})]},"step-3")]}),(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"var(--space-3) var(--space-5) var(--space-5)",gap:"var(--space-3)"},children:[v>0?(0,r.jsxs)("button",{onClick:R,style:{padding:"var(--space-2) var(--space-4)",borderRadius:"var(--radius-md)",background:"var(--fill-tertiary)",color:"var(--text-secondary)",border:"none",cursor:"pointer",fontSize:"var(--text-subheadline)",fontWeight:"var(--weight-medium)",transition:"all 150ms var(--ease-smooth)",display:"inline-flex",alignItems:"center",gap:6},children:[(0,r.jsx)(_.A,{size:16}),"Back"]}):(0,r.jsx)("div",{}),(0,r.jsxs)("button",{onClick:I,style:{padding:"var(--space-2) var(--space-6)",borderRadius:"var(--radius-md)",background:"var(--accent)",color:"var(--accent-contrast)",border:"none",cursor:"pointer",fontSize:"var(--text-subheadline)",fontWeight:"var(--weight-semibold)",transition:"all 150ms var(--ease-smooth)",display:"inline-flex",alignItems:"center",gap:6},children:[0===v?"Next":3===v?"Get Started":"Next",3===v?(0,r.jsx)(U.A,{size:16}):(0,r.jsx)(V.A,{size:16})]})]})]})}):null}var $=a(7836);let ee=[{href:"/",label:"Home",icon:p.A},{href:"/chat",label:"Chat",icon:u.A},{href:"/sessions",label:"Sessions",icon:h.A},{href:"/org",label:"Organization",icon:g.A},{href:"/kanban",label:"Kanban",icon:x.A},{href:"/cron",label:"Cron",icon:f.A},{href:"/costs",label:"Costs",icon:m.A},{href:"/logs",label:"Activity",icon:v.A},{href:"/skills",label:"Skills",icon:y.A},{href:"/settings",label:"Settings",icon:b.A}];function et(){var e,t;let[a,n]=(0,i.useState)(!1),o=(0,c.usePathname)(),{settings:p}=(0,d.t0)(),u=null!=(e=p.portalEmoji)?e:"\uD83E\uDD16",h=null!=(t=p.portalName)?t:"Jinn";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{style:{height:48,display:"flex",alignItems:"center",padding:"0 12px",borderBottom:"1px solid var(--separator)",background:"var(--material-thick)",flexShrink:0,position:"relative",zIndex:60},className:"jsx-906cbf20b7aa1777 lg:hidden",children:[(0,r.jsx)("button",{onClick:()=>n(!0),"aria-label":"Open menu",style:{width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",background:"transparent",border:"none",cursor:"pointer",color:"var(--text-primary)"},className:"jsx-906cbf20b7aa1777",children:(0,r.jsx)($.A,{size:20})}),(0,r.jsxs)("div",{style:{flex:1,textAlign:"center"},className:"jsx-906cbf20b7aa1777",children:[(0,r.jsx)("span",{style:{fontSize:18,marginRight:6},className:"jsx-906cbf20b7aa1777",children:u}),(0,r.jsx)("span",{style:{fontSize:15,fontWeight:600,color:"var(--text-primary)"},className:"jsx-906cbf20b7aa1777",children:h})]}),(0,r.jsx)("div",{style:{width:36},className:"jsx-906cbf20b7aa1777"})]}),a&&(0,r.jsxs)("div",{style:{position:"fixed",inset:0,zIndex:100},className:"jsx-906cbf20b7aa1777 lg:hidden",children:[(0,r.jsx)("div",{style:{position:"absolute",inset:0,background:"rgba(0,0,0,0.5)"},onClick:()=>n(!1),className:"jsx-906cbf20b7aa1777"}),(0,r.jsxs)("nav",{style:{position:"absolute",top:0,left:0,bottom:0,width:260,background:"var(--bg-secondary)",borderRight:"1px solid var(--separator)",display:"flex",flexDirection:"column",animation:"slideInLeft 200ms ease"},className:"jsx-906cbf20b7aa1777",children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 14px",borderBottom:"1px solid var(--separator)"},className:"jsx-906cbf20b7aa1777",children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},className:"jsx-906cbf20b7aa1777",children:[(0,r.jsx)("span",{style:{fontSize:22},className:"jsx-906cbf20b7aa1777",children:u}),(0,r.jsx)("span",{style:{fontSize:16,fontWeight:600,color:"var(--text-primary)"},className:"jsx-906cbf20b7aa1777",children:h})]}),(0,r.jsx)("button",{onClick:()=>n(!1),"aria-label":"Close menu",style:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",background:"transparent",border:"none",cursor:"pointer",color:"var(--text-secondary)"},className:"jsx-906cbf20b7aa1777",children:(0,r.jsx)(P.A,{size:18})})]}),(0,r.jsx)("div",{style:{flex:1,padding:"8px",display:"flex",flexDirection:"column",gap:2},className:"jsx-906cbf20b7aa1777",children:ee.map(e=>{let t="/"===e.href?"/"===o:o.startsWith(e.href),a=e.icon;return(0,r.jsxs)(s(),{href:e.href,onClick:()=>n(!1),style:{display:"flex",alignItems:"center",gap:12,height:44,padding:"0 14px",borderRadius:10,textDecoration:"none",color:t?"var(--accent)":"var(--text-secondary)",background:t?"var(--accent-fill)":"transparent",fontWeight:t?600:400,fontSize:15},children:[(0,r.jsx)(a,{size:18,style:{flexShrink:0},className:"jsx-906cbf20b7aa1777"}),e.label]},e.href)})})]})]}),(0,r.jsx)(l(),{id:"906cbf20b7aa1777",children:"@keyframes slideInLeft{from{transform:translatex(-100%)}to{transform:translatex(0)}}"})]})}function ea(e){let{children:t}=e;return(0,r.jsxs)("div",{className:"flex h-screen overflow-hidden",style:{background:"var(--bg)"},children:[(0,r.jsx)(A,{}),(0,r.jsx)(O,{}),(0,r.jsxs)("main",{className:"flex-1 overflow-hidden lg:ml-[56px]",children:[(0,r.jsx)(et,{}),t]}),(0,r.jsx)(K,{}),(0,r.jsx)(Z,{})]})}},3176:(e,t,a)=>{a.d(t,{F:()=>s});let r=window.location.origin;async function n(e){let t=await fetch("".concat(r).concat(e));if(!t.ok)throw Error("API error: ".concat(t.status));return t.json()}async function l(e,t){let a=await fetch("".concat(r).concat(e),{method:"POST",headers:{"Content-Type":"application/json"},body:t?JSON.stringify(t):void 0});if(!a.ok)throw Error("API error: ".concat(a.status));return a.json()}async function i(e){let t=await fetch("".concat(r).concat(e),{method:"DELETE"});if(!t.ok)throw Error("API error: ".concat(t.status));return t.json()}async function o(e,t){let a=await fetch("".concat(r).concat(e),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!a.ok)throw Error("API error: ".concat(a.status));return a.json()}let s={getStatus:()=>n("/api/status"),getSessions:()=>n("/api/sessions"),getSession:e=>n("/api/sessions/".concat(e)),getSessionChildren:e=>n("/api/sessions/".concat(e,"/children")),deleteSession:e=>i("/api/sessions/".concat(e)),createSession:e=>l("/api/sessions",e),createStubSession:e=>l("/api/sessions/stub",e),sendMessage:(e,t)=>l("/api/sessions/".concat(e,"/message"),t),getCronJobs:()=>n("/api/cron"),getCronRuns:e=>n("/api/cron/".concat(e,"/runs")),updateCronJob:(e,t)=>o("/api/cron/".concat(e),t),getOrg:()=>n("/api/org"),getEmployee:e=>n("/api/org/employees/".concat(e)),getDepartmentBoard:e=>n("/api/org/departments/".concat(e,"/board")),getSkills:()=>n("/api/skills"),getSkill:e=>n("/api/skills/".concat(e)),getConfig:()=>n("/api/config"),updateConfig:e=>o("/api/config",e),getLogs:e=>n("/api/logs".concat(e?"?n=".concat(e):"")),getOnboarding:()=>n("/api/onboarding"),completeOnboarding:e=>l("/api/onboarding",e),getActivity:()=>n("/api/activity"),updateDepartmentBoard:(e,t)=>o("/api/org/departments/".concat(e,"/board"),t)}},4263:(e,t,a)=>{a.d(t,{G:()=>o});var r=a(5271),n=a(1298),l=a(2755);function i(e,t){"Notification"in window&&"granted"===Notification.permission&&document.hidden&&new Notification(e,{body:t,icon:"/favicon.ico",tag:"jinn-session"})}function o(){var e;let{settings:t}=(0,l.t0)(),a=null!=(e=t.portalName)?e:"Jinn",[o,s]=(0,r.useState)([]),[c,d]=(0,r.useState)(!1),[p,u]=(0,r.useState)(0),[h,g]=(0,r.useState)(0),x=(0,r.useRef)(!1),f=(0,r.useRef)(a);return f.current=a,(0,r.useEffect)(()=>{!x.current&&(x.current=!0,"Notification"in window&&"default"===Notification.permission&&Notification.requestPermission());let e=(0,n.E)((e,t)=>{if(s(a=>[...a.slice(-99),{event:e,payload:t}]),"skills:changed"===e&&g(e=>e+1),"session:completed"===e){let e=t.employee||f.current,a=t.error;a?i("".concat(e," - Error"),a.slice(0,100)):i("".concat(e," - Done"),"Session completed successfully")}},{onOpen:()=>{d(!0),u(e=>e+1)},onClose:()=>{d(!1)}});return()=>e.close()},[]),{events:o,connected:c,connectionSeq:p,skillsVersion:h}}},5310:(e,t,a)=>{a.d(t,{b:()=>c,w:()=>s});var r=a(8111),n=a(5271);let l={info:"var(--system-green)",warn:"var(--system-orange)",error:"var(--system-red)",debug:"var(--text-tertiary)"},i={info:"rgba(48,209,88,0.12)",warn:"rgba(255,159,10,0.12)",error:"rgba(255,69,58,0.12)",debug:"var(--fill-secondary)"},o=[{key:"all",label:"All"},{key:"info",label:"Info"},{key:"warn",label:"Warn"},{key:"error",label:"Errors"}];function s(e,t){let a=e.match(/^(\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2})\s+\[(\w+)\]\s*(.*)$/);return a?{id:"log-".concat(t),timestamp:a[1],level:a[2].toLowerCase(),message:a[3]}:{id:"log-".concat(t),timestamp:"",level:"info",message:e}}function c(e){let{lines:t}=e,[a,c]=(0,n.useState)("all"),[d,p]=(0,n.useState)(""),[u,h]=(0,n.useState)(null),g=t.map(s),x=g.filter(e=>("all"===a||e.level===a)&&(!d||!!e.message.toLowerCase().includes(d.toLowerCase()))),f={all:g.length,info:g.filter(e=>"info"===e.level).length,warn:g.filter(e=>"warn"===e.level).length,error:g.filter(e=>"error"===e.level).length};return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center flex-wrap",style:{gap:"var(--space-2)",marginBottom:"var(--space-3)"},children:[o.map(e=>{let t=a===e.key;return(0,r.jsxs)("button",{onClick:()=>c(e.key),className:"focus-ring flex items-center flex-shrink-0",style:{borderRadius:20,padding:"6px 14px",fontSize:"var(--text-footnote)",fontWeight:"var(--weight-medium)",border:"none",cursor:"pointer",gap:"var(--space-2)",transition:"all 200ms var(--ease-smooth)",...t?{background:"var(--accent-fill)",color:"var(--accent)",boxShadow:"0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent)"}:{background:"var(--fill-secondary)",color:"var(--text-primary)"}},children:[(0,r.jsx)("span",{children:e.label}),(0,r.jsx)("span",{style:{fontWeight:"var(--weight-semibold)",color:t?"var(--accent)":"var(--text-secondary)"},children:f[e.key]})]},e.key)}),(0,r.jsx)("input",{type:"text",placeholder:"Search logs...",value:d,onChange:e=>p(e.target.value),className:"focus-ring",style:{marginLeft:"auto",padding:"6px 12px",fontSize:"var(--text-footnote)",borderRadius:"var(--radius-sm)",border:"1px solid var(--separator)",background:"var(--fill-secondary)",color:"var(--text-primary)",outline:"none",minWidth:160,maxWidth:240}})]}),0===x.length?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center",style:{height:200,color:"var(--text-secondary)",gap:"var(--space-2)"},children:[(0,r.jsx)("span",{style:{fontSize:"var(--text-subheadline)",fontWeight:"var(--weight-medium)"},children:0===g.length?"No log entries found":"No entries match this filter"}),(0,r.jsx)("span",{style:{fontSize:"var(--text-footnote)",color:"var(--text-tertiary)"},children:0===g.length?"Log entries will appear here when available":"Try adjusting your filter or search"})]}):(0,r.jsx)("div",{style:{borderRadius:"var(--radius-md)",overflow:"hidden",background:"var(--material-regular)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:x.map((e,t)=>{var a,n;let o=u===e.id,s=null!=(a=l[e.level])?a:"var(--text-tertiary)",c=e.message.length>120;return(0,r.jsxs)("div",{children:[t>0&&(0,r.jsx)("div",{style:{height:1,background:"var(--separator)",marginLeft:"var(--space-4)",marginRight:"var(--space-4)"}}),(0,r.jsxs)("div",{role:"button",tabIndex:0,"aria-expanded":c?o:void 0,onClick:()=>c&&h(o?null:e.id),onKeyDown:t=>{c&&("Enter"===t.key||" "===t.key)&&(t.preventDefault(),h(o?null:e.id))},className:"flex items-center hover-bg focus-ring",style:{minHeight:44,padding:"0 var(--space-4)",cursor:c?"pointer":"default",background:"error"===e.level?"rgba(255,69,58,0.06)":void 0},children:[(0,r.jsx)("span",{className:"flex-shrink-0 rounded-full",style:{width:8,height:8,background:s}}),e.timestamp&&(0,r.jsx)("span",{className:"flex-shrink-0 font-mono",style:{fontSize:"var(--text-caption1)",color:"var(--text-tertiary)",marginLeft:"var(--space-3)",minWidth:130},children:e.timestamp}),(0,r.jsx)("span",{className:"flex-shrink-0",style:{fontSize:"var(--text-caption2)",fontWeight:"var(--weight-semibold)",padding:"1px 6px",borderRadius:4,background:null!=(n=i[e.level])?n:"var(--fill-secondary)",color:s,marginLeft:"var(--space-2)",letterSpacing:"0.04em",textTransform:"uppercase"},children:e.level}),(0,r.jsx)("span",{className:"truncate",style:{fontSize:"var(--text-footnote)",color:"var(--text-primary)",marginLeft:"var(--space-3)",flex:1,minWidth:0},children:c&&!o?e.message.slice(0,117)+"...":e.message}),c&&(0,r.jsx)("span",{"aria-hidden":"true",style:{fontSize:"var(--text-footnote)",color:"var(--text-tertiary)",transition:"transform 200ms var(--ease-smooth)",transform:o?"rotate(90deg)":"rotate(0deg)",display:"inline-block",marginLeft:"var(--space-2)"},children:"›"})]}),o&&c&&(0,r.jsx)("div",{className:"animate-slide-down",style:{padding:"0 var(--space-4) var(--space-4) var(--space-4)"},children:(0,r.jsx)("div",{style:{borderRadius:"var(--radius-sm)",background:"var(--fill-secondary)",padding:"var(--space-3)",marginTop:"var(--space-2)"},children:(0,r.jsx)("pre",{className:"font-mono",style:{fontSize:"var(--text-caption2)",color:"var(--text-secondary)",whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0,maxHeight:300,overflow:"auto",lineHeight:"var(--leading-relaxed)"},children:e.message})})})]},e.id)})})]})}},7460:(e,t,a)=>{a.d(t,{D:()=>o,N:()=>i});var r=a(8111),n=a(5271);let l=(0,n.createContext)({theme:"dark",setTheme:()=>{}});function i(e){let{children:t}=e,[a,i]=(0,n.useState)("dark"),o=(0,n.useCallback)(e=>{i(e),localStorage.setItem("jinn-theme",e);let t=document.documentElement;if(t.removeAttribute("data-theme"),"system"===e){let e=window.matchMedia("(prefers-color-scheme: dark)").matches;t.setAttribute("data-theme",e?"dark":"light")}else t.setAttribute("data-theme",e)},[]);return(0,n.useEffect)(()=>{let e=localStorage.getItem("jinn-theme");e&&o(e)},[o]),(0,r.jsx)(l.Provider,{value:{theme:a,setTheme:o},children:t})}function o(){return(0,n.useContext)(l)}},9834:(e,t,a)=>{a.d(t,{z:()=>r});let r=[{id:"dark",label:"Dark",emoji:"\uD83C\uDF11"},{id:"glass",label:"Glass",emoji:"\uD83E\uDE9F"},{id:"color",label:"Color",emoji:"\uD83C\uDFA8"},{id:"light",label:"Light",emoji:"☀️"},{id:"system",label:"System",emoji:"⚙️"}]}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73],{1298:(e,t,a)=>{a.d(t,{E:()=>r});function r(e,t){let a="".concat("https:"===window.location.protocol?"wss:":"ws:","//").concat(window.location.host,"/ws"),r=null,n=null,l=!1;return!function i(){l||((r=new WebSocket(a)).onopen=()=>{var e;null==t||null==(e=t.onOpen)||e.call(t)},r.onmessage=t=>{try{let a=JSON.parse(t.data);e(a.event,a.payload)}catch(e){}},r.onclose=()=>{var e;null==t||null==(e=t.onClose)||e.call(t),l||(n=setTimeout(i,3e3))},r.onerror=()=>null==r?void 0:r.close())}(),{close:()=>{l=!0,n&&clearTimeout(n),null==r||r.close()}}}},2755:(e,t,a)=>{a.d(t,{Qc:()=>u,Z6:()=>d,t0:()=>p});var r=a(8111),n=a(5271);let l={accentColor:null,portalName:null,portalSubtitle:null,portalEmoji:null,portalIcon:null,iconBgHidden:!1,emojiOnly:!1,operatorName:null,language:"English",employeeOverrides:{}},i="jinn-settings";function o(e){localStorage.setItem(i,JSON.stringify(e))}var s=a(3176);let c=(0,n.createContext)({settings:{accentColor:null,portalName:null,portalSubtitle:null,portalEmoji:null,portalIcon:null,iconBgHidden:!1,emojiOnly:!1,operatorName:null,language:"English",employeeOverrides:{}},setAccentColor:()=>{},setPortalName:()=>{},setPortalSubtitle:()=>{},setPortalEmoji:()=>{},setPortalIcon:()=>{},setIconBgHidden:()=>{},setEmojiOnly:()=>{},setOperatorName:()=>{},setLanguage:()=>{},setEmployeeOverride:()=>{},clearEmployeeOverride:()=>{},getEmployeeDisplay:e=>({emoji:e.emoji}),resetAll:()=>{}});function d(e){let{children:t}=e,[a,d]=(0,n.useState)({...l});(0,n.useEffect)(()=>{let e=function(){try{let e=localStorage.getItem(i);if(!e)return{...l};let t=JSON.parse(e);return{...l,...t}}catch(e){return{...l}}}();d(e),s.F.getOnboarding().then(t=>{if(t.portalName||t.operatorName){let a={...e,...t.portalName&&{portalName:t.portalName},...t.operatorName&&{operatorName:t.operatorName}};d(a),o(a)}}).catch(()=>{})},[]),(0,n.useEffect)(()=>{let e=document.documentElement.style;a.accentColor?(e.setProperty("--accent",a.accentColor),e.setProperty("--accent-fill",function(e){let t=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return"rgba(".concat(t,",").concat(a,",").concat(r,",0.15)")}(a.accentColor)),e.setProperty("--accent-contrast",function(e){let t=parseInt(e.slice(1,3),16)/255,a=parseInt(e.slice(3,5),16)/255,r=parseInt(e.slice(5,7),16)/255,n=e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4);return .2126*n(t)+.7152*n(a)+.0722*n(r)>.4?"#000":"#fff"}(a.accentColor))):(e.removeProperty("--accent"),e.removeProperty("--accent-fill"),e.removeProperty("--accent-contrast"))},[a.accentColor]);let p=(0,n.useCallback)(e=>{d(e),o(e)},[]),u=(0,n.useCallback)(e=>{p({...a,accentColor:e})},[a,p]),h=(0,n.useCallback)(e=>{p({...a,portalName:e||null})},[a,p]),g=(0,n.useCallback)(e=>{p({...a,portalSubtitle:e||null})},[a,p]),x=(0,n.useCallback)(e=>{p({...a,portalEmoji:e||null})},[a,p]),f=(0,n.useCallback)(e=>{p({...a,portalIcon:e})},[a,p]),m=(0,n.useCallback)(e=>{p({...a,iconBgHidden:e})},[a,p]),v=(0,n.useCallback)(e=>{p({...a,emojiOnly:e})},[a,p]),y=(0,n.useCallback)(e=>{p({...a,operatorName:e||null})},[a,p]),b=(0,n.useCallback)(e=>{p({...a,language:e||"English"})},[a,p]),j=(0,n.useCallback)((e,t)=>{let r=a.employeeOverrides[e]||{};p({...a,employeeOverrides:{...a.employeeOverrides,[e]:{...r,...t}}})},[a,p]),k=(0,n.useCallback)(e=>{let{[e]:t,...r}=a.employeeOverrides;p({...a,employeeOverrides:r})},[a,p]),w=(0,n.useCallback)(e=>{let t=a.employeeOverrides[e.id];return{emoji:(null==t?void 0:t.emoji)||e.emoji,profileImage:null==t?void 0:t.profileImage,emojiOnly:a.emojiOnly}},[a.employeeOverrides,a.emojiOnly]),S=(0,n.useCallback)(()=>{p({accentColor:null,portalName:null,portalSubtitle:null,portalEmoji:null,portalIcon:null,iconBgHidden:!1,emojiOnly:!1,operatorName:null,language:"English",employeeOverrides:{}})},[p]);return(0,r.jsx)(c.Provider,{value:{settings:a,setAccentColor:u,setPortalName:h,setPortalSubtitle:g,setPortalEmoji:x,setPortalIcon:f,setIconBgHidden:m,setEmojiOnly:v,setOperatorName:y,setLanguage:b,setEmployeeOverride:j,clearEmployeeOverride:k,getEmployeeDisplay:w,resetAll:S},children:t})}let p=()=>(0,n.useContext)(c);function u(){let{settings:e}=p(),t=(0,n.useRef)(e.portalName);return t.current=e.portalName,(0,n.useEffect)(()=>{function e(){let e=t.current||"Jinn",a="".concat(e," - AI Gateway");document.title!==a&&(document.title=a)}e();let a=document.querySelector("title");if(!a)return;let r=new MutationObserver(()=>e());return r.observe(a,{childList:!0,characterData:!0,subtree:!0}),()=>r.disconnect()},[e.portalName]),null}},3073:(e,t,a)=>{a.d(t,{M:()=>ea});var r=a(8111),n=a(1251),l=a.n(n),i=a(5271),o=a(5935),s=a.n(o),c=a(4736),d=a(2755),p=a(8193),u=a(6778),h=a(7549),g=a(2265),x=a(6808),f=a(1935),m=a(6361),v=a(4514),y=a(9026),b=a(3254),j=a(5275),k=a(9006),w=a(4206),S=a(7460),C=a(9834);let N=[{href:"/",label:"Home",icon:p.A},{href:"/chat",label:"Chat",icon:u.A},{href:"/sessions",label:"Sessions",icon:h.A},{href:"/org",label:"Organization",icon:g.A},{href:"/kanban",label:"Kanban",icon:x.A},{href:"/cron",label:"Cron",icon:f.A},{href:"/costs",label:"Costs",icon:m.A},{href:"/logs",label:"Activity",icon:v.A},{href:"/skills",label:"Skills",icon:y.A},{href:"/settings",label:"Settings",icon:b.A}];function z(e){let{theme:t}=e;switch(t){case"light":return(0,r.jsx)(j.A,{size:18});case"dark":return(0,r.jsx)(k.A,{size:18});default:return(0,r.jsx)(w.A,{size:18})}}function A(){var e,t;let a=(0,c.usePathname)(),{theme:n,setTheme:l}=(0,S.D)(),{settings:o}=(0,d.t0)(),[p,u]=(0,i.useState)(!1),h=null!=(e=o.portalEmoji)?e:"\uD83E\uDD16",g=null!=(t=o.portalName)?t:"Jinn";return(0,r.jsxs)("aside",{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:{position:"fixed",left:0,top:0,bottom:0,width:p?200:56,background:"var(--bg-secondary)",borderRight:"1px solid var(--separator)",flexDirection:"column",zIndex:50,transition:"width 200ms var(--ease-smooth)",overflow:"hidden"},className:"hidden lg:flex",children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"16px 14px 12px",minHeight:56,flexShrink:0},children:[(0,r.jsx)("span",{style:{fontSize:24,lineHeight:1,flexShrink:0,width:28,textAlign:"center"},children:h}),(0,r.jsx)("span",{style:{fontSize:17,fontWeight:600,color:"var(--text-primary)",whiteSpace:"nowrap",opacity:+!!p,transition:"opacity 200ms var(--ease-smooth)"},children:g})]}),(0,r.jsx)("nav",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,padding:"0 8px"},children:N.map(e=>{let t="/"===e.href?"/"===a:a.startsWith(e.href),n=e.icon;return(0,r.jsxs)(s(),{href:e.href,className:"nav-item","aria-label":e.label,"aria-current":t?"page":void 0,style:{display:"flex",alignItems:"center",gap:10,height:40,padding:"0 12px",textDecoration:"none",color:t?"var(--accent)":"var(--text-secondary)",background:t?"var(--accent-fill)":"transparent",fontWeight:t?600:400,fontSize:13,whiteSpace:"nowrap"},children:[(0,r.jsx)(n,{size:18,style:{flexShrink:0,color:t?"var(--accent)":"var(--text-secondary)"}}),(0,r.jsx)("span",{style:{opacity:+!!p,transition:"opacity 200ms var(--ease-smooth)"},children:e.label})]},e.href)})}),(0,r.jsx)("div",{style:{padding:"8px 8px 12px",flexShrink:0},children:(0,r.jsxs)("button",{onClick:function(){let e=C.z.map(e=>e.id),t=e.indexOf(n);l(e[(t+1)%e.length])},className:"nav-item","aria-label":"Theme: ".concat(n,". Click to cycle."),style:{display:"flex",alignItems:"center",gap:10,height:40,padding:"0 12px",width:"100%",border:"none",background:"transparent",color:"var(--text-secondary)",cursor:"pointer",fontSize:13,whiteSpace:"nowrap"},children:[(0,r.jsx)("span",{style:{flexShrink:0},children:(0,r.jsx)(z,{theme:n})}),(0,r.jsx)("span",{style:{opacity:+!!p,transition:"opacity 200ms var(--ease-smooth)",textTransform:"capitalize"},children:n})]})})]})}var E=a(8067);let I=window.location.origin,R=[{id:"page-home",label:"Dashboard",icon:(0,r.jsx)(p.A,{size:16}),href:"/",category:"Pages"},{id:"page-chat",label:"Chat",icon:(0,r.jsx)(u.A,{size:16}),href:"/chat",category:"Pages"},{id:"page-sessions",label:"Sessions",icon:(0,r.jsx)(h.A,{size:16}),href:"/sessions",category:"Pages"},{id:"page-org",label:"Organization",icon:(0,r.jsx)(g.A,{size:16}),href:"/org",category:"Pages"},{id:"page-kanban",label:"Kanban",icon:(0,r.jsx)(x.A,{size:16}),href:"/kanban",category:"Pages"},{id:"page-cron",label:"Cron",icon:(0,r.jsx)(f.A,{size:16}),href:"/cron",category:"Pages"},{id:"page-costs",label:"Costs",icon:(0,r.jsx)(m.A,{size:16}),href:"/costs",category:"Pages"},{id:"page-logs",label:"Activity",icon:(0,r.jsx)(v.A,{size:16}),href:"/logs",category:"Pages"},{id:"page-skills",label:"Skills",icon:(0,r.jsx)(y.A,{size:16}),href:"/skills",category:"Pages"},{id:"page-settings",label:"Settings",icon:(0,r.jsx)(b.A,{size:16}),href:"/settings",category:"Pages"}];function W(e,t){return t.toLowerCase().includes(e.toLowerCase())}function O(){var e;let{settings:t}=(0,d.t0)(),a=null!=(e=t.portalName)?e:"Jinn",[n,l]=(0,i.useState)(!1),[o,s]=(0,i.useState)(""),[p,u]=(0,i.useState)(0),[h,x]=(0,i.useState)([]),[m,v]=(0,i.useState)([]),y=(0,i.useRef)(null),b=(0,i.useRef)(null),j=(0,c.useRouter)();(0,i.useEffect)(()=>{function e(e){(e.metaKey||e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),l(e=>!e))}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,i.useEffect)(()=>{n&&(s(""),u(0),fetch("".concat(I,"/api/org")).then(e=>{if(!e.ok)throw Error("HTTP ".concat(e.status));return e.json()}).then(e=>{if(Array.isArray(e))x(e);else if(e&&"object"==typeof e&&"employees"in e){var t;x(null!=(t=e.employees)?t:[])}}).catch(()=>x([])),fetch("".concat(I,"/api/cron")).then(e=>{if(!e.ok)throw Error("HTTP ".concat(e.status));return e.json()}).then(e=>{if(Array.isArray(e))v(e);else if(e&&"object"==typeof e&&"crons"in e){var t;v(null!=(t=e.crons)?t:[])}}).catch(()=>v([])))},[n]),(0,i.useEffect)(()=>{n&&requestAnimationFrame(()=>{var e;return null==(e=y.current)?void 0:e.focus()})},[n]),(0,i.useEffect)(()=>(n?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[n]);let k=(0,i.useMemo)(()=>{let e=[...R];return(h.forEach(t=>{e.push({id:"emp-".concat(t.id),label:t.name,subtitle:t.title,icon:(0,r.jsx)(g.A,{size:16}),href:"/org",category:"Employees"})}),m.forEach(t=>{e.push({id:"cron-".concat(t.id),label:t.name,subtitle:t.schedule,icon:(0,r.jsx)(f.A,{size:16}),href:"/cron",category:"Cron Jobs"})}),o.trim())?e.filter(e=>W(o,e.label)||e.subtitle&&W(o,e.subtitle)):e},[o,h,m]),w=(0,i.useMemo)(()=>{let e=[];for(let t of["Pages","Employees","Cron Jobs"]){let a=k.filter(e=>e.category===t);a.length>0&&e.push({category:t,items:a})}return e},[k]),S=(0,i.useMemo)(()=>w.flatMap(e=>e.items),[w]),C=(0,i.useCallback)(e=>{l(!1),j.push(e.href)},[j]),N=(0,i.useCallback)(e=>{if("Escape"===e.key){e.preventDefault(),l(!1);return}if("ArrowDown"===e.key){e.preventDefault(),u(e=>Math.min(e+1,S.length-1));return}if("ArrowUp"===e.key){e.preventDefault(),u(e=>Math.max(e-1,0));return}if("Enter"===e.key){e.preventDefault(),S[p]&&C(S[p]);return}},[p,S,C]);if((0,i.useEffect)(()=>{u(0)},[o]),(0,i.useEffect)(()=>{if(!b.current)return;let e=b.current.querySelector('[data-active="true"]');e&&e.scrollIntoView({block:"nearest"})},[p]),!n)return null;let z=0;return(0,r.jsxs)("div",{style:{position:"fixed",inset:0,zIndex:100,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"20vh"},children:[(0,r.jsx)("div",{style:{position:"absolute",inset:0,background:"rgba(0,0,0,0.5)",backdropFilter:"blur(4px)",WebkitBackdropFilter:"blur(4px)"},onClick:()=>l(!1),"aria-hidden":"true"}),(0,r.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Search ".concat(a),className:"animate-scale-in",onKeyDown:N,style:{position:"relative",width:"100%",maxWidth:560,margin:"0 16px",borderRadius:"var(--radius-xl)",background:"var(--bg-secondary)",border:"1px solid var(--separator)",boxShadow:"var(--shadow-overlay)",overflow:"hidden",display:"flex",flexDirection:"column",maxHeight:480},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"14px 16px",borderBottom:"1px solid var(--separator)"},children:[(0,r.jsx)(E.A,{size:18,style:{color:"var(--text-tertiary)",flexShrink:0},"aria-hidden":"true"}),(0,r.jsx)("input",{ref:y,type:"text",value:o,onChange:e=>s(e.target.value),placeholder:"Search ".concat(a,"..."),"aria-label":"Search ".concat(a),style:{flex:1,background:"transparent",border:"none",outline:"none",fontSize:15,color:"var(--text-primary)",fontFamily:"inherit"}}),(0,r.jsx)("kbd",{style:{fontSize:11,fontFamily:"var(--font-mono)",padding:"2px 6px",borderRadius:4,background:"var(--fill-quaternary)",color:"var(--text-quaternary)",border:"1px solid var(--separator)",lineHeight:"16px"},children:"esc"})]}),(0,r.jsxs)("div",{ref:b,role:"listbox","aria-label":"Search results",style:{flex:1,overflowY:"auto",padding:8},children:[0===S.length&&o.trim()&&(0,r.jsxs)("div",{style:{padding:"24px 16px",textAlign:"center",color:"var(--text-tertiary)",fontSize:13},children:["No results for “",o,"”"]}),w.map(e=>(0,r.jsxs)("div",{style:{marginBottom:4},children:[(0,r.jsx)("div",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--text-tertiary)",padding:"6px 8px 4px"},children:e.category}),e.items.map(e=>{let t=z++,a=t===p;return(0,r.jsxs)("button",{role:"option","aria-selected":a,"data-active":a,onClick:()=>C(e),onMouseEnter:()=>u(t),style:{display:"flex",alignItems:"center",gap:10,width:"100%",minHeight:40,padding:"8px 10px",borderRadius:"var(--radius-sm)",border:"none",background:a?"var(--accent-fill)":"transparent",cursor:"pointer",textAlign:"left",transition:"background 80ms var(--ease-smooth)",outline:"none",color:"var(--text-primary)",fontFamily:"inherit",fontSize:13},children:[(0,r.jsx)("span",{style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:6,background:"var(--fill-quaternary)",flexShrink:0,color:"var(--text-secondary)"},children:e.icon}),(0,r.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,r.jsx)("div",{style:{fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.label}),e.subtitle&&(0,r.jsx)("div",{style:{fontSize:11,color:"var(--text-tertiary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.subtitle})]})]},e.id)})]},e.category))]}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:16,padding:"8px 16px",borderTop:"1px solid var(--separator)",fontSize:11,color:"var(--text-quaternary)"},children:[(0,r.jsxs)("span",{children:[(0,r.jsx)("kbd",{style:{fontFamily:"var(--font-mono)"},children:"↑↓"})," Navigate"]}),(0,r.jsxs)("span",{children:[(0,r.jsx)("kbd",{style:{fontFamily:"var(--font-mono)"},children:"↵"})," Open"]}),(0,r.jsxs)("span",{children:[(0,r.jsx)("kbd",{style:{fontFamily:"var(--font-mono)"},children:"esc"})," Close"]})]})]})]})}var D=a(6650),B=a(4640),P=a(1061),T=a(3176),F=a(4263),L=a(5310);let H="open-live-stream",J={info:{bg:"rgba(48,209,88,0.12)",color:"var(--system-green)",label:"INF"},warn:{bg:"rgba(255,159,10,0.12)",color:"var(--system-orange)",label:"WRN"},error:{bg:"rgba(255,69,58,0.12)",color:"var(--system-red)",label:"ERR"},debug:{bg:"var(--fill-secondary)",color:"var(--text-tertiary)",label:"DBG"}};function M(e){return"[".concat(e.timestamp,"] [").concat(e.level.toUpperCase(),"] ").concat(e.message)}function q(e){var t;let{entry:a}=e,[n,l]=(0,i.useState)(!1),o=null!=(t=J[a.level])?t:J.debug,s=a.message.length>100;return(0,r.jsxs)("div",{style:{borderBottom:"1px solid var(--separator)",background:"error"===a.level?"rgba(255,69,58,0.03)":void 0},children:[(0,r.jsxs)("button",{onClick:()=>s&&l(e=>!e),style:{display:"flex",alignItems:"center",width:"100%",padding:"5px 12px",gap:8,border:"none",background:"transparent",cursor:s?"pointer":"default",textAlign:"left"},children:[s?(0,r.jsx)("span",{style:{fontSize:10,color:"var(--text-tertiary)",flexShrink:0,transition:"transform 150ms var(--ease-smooth)",transform:n?"rotate(90deg)":"rotate(0deg)",display:"inline-block"},children:"›"}):(0,r.jsx)("span",{style:{width:10,flexShrink:0}}),(0,r.jsx)("span",{className:"font-mono",style:{color:"var(--text-tertiary)",fontSize:10,flexShrink:0,minWidth:58},children:function(e){if(!e)return"";let t=e.split(" ");return t.length>1?t[1]:e}(a.timestamp)}),(0,r.jsx)("span",{style:{fontSize:9,fontWeight:700,letterSpacing:"0.5px",padding:"1px 5px",borderRadius:3,background:o.bg,color:o.color,flexShrink:0,lineHeight:"14px"},children:o.label}),(0,r.jsx)("span",{className:"font-mono",style:{color:"error"===a.level?"var(--system-red)":"var(--text-secondary)",fontSize:10,lineHeight:1.4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0},children:a.message})]}),n&&s&&(0,r.jsx)("div",{style:{padding:"6px 12px 8px 30px",borderTop:"1px solid var(--separator)",background:"var(--fill-secondary)"},children:(0,r.jsx)("pre",{className:"font-mono",style:{fontSize:9,lineHeight:1.5,color:"var(--text-secondary)",whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0},children:a.message})})]})}function K(){let[e,t]=(0,i.useState)("hidden"),[a,n]=(0,i.useState)([]),[l,o]=(0,i.useState)(!0),[s,c]=(0,i.useState)(!1),[d,p]=(0,i.useState)(null),u=(0,i.useRef)(null),{events:h}=(0,F.G)();(0,i.useEffect)(()=>{l&&u.current&&(u.current.scrollTop=u.current.scrollHeight)},[a,l]);let g=(0,i.useCallback)(()=>{if(!u.current)return;let{scrollTop:e,scrollHeight:t,clientHeight:a}=u.current;t-e-a<40?o(!0):o(!1)},[]);(0,i.useEffect)(()=>{"expanded"===e&&T.F.getLogs(50).then(e=>{var t;n((null!=(t=e.lines)?t:[]).map(L.w)),p(null)}).catch(e=>{p(e instanceof Error?e.message:"Failed to load logs")})},[e]),(0,i.useEffect)(()=>{if("hidden"===e||0===h.length)return;let t=h[h.length-1];if("log"===t.event&&"object"==typeof t.payload&&null!==t.payload){let e=t.payload,a=e.line||e.message||JSON.stringify(t.payload),r=(0,L.w)(a,Date.now());n(e=>[...e,r].slice(-500))}},[h,e]);let x=(0,i.useCallback)(()=>{t("hidden")},[]),f=(0,i.useCallback)(async()=>{let e=a.map(M).join("\n");await navigator.clipboard.writeText(e),c(!0),setTimeout(()=>c(!1),1500)},[a]);return((0,i.useEffect)(()=>{function e(){t("expanded")}return window.addEventListener(H,e),()=>window.removeEventListener(H,e)},[]),"hidden"===e)?null:"collapsed"===e?(0,r.jsxs)("button",{onClick:()=>t("expanded"),className:"focus-ring flex items-center",style:{position:"fixed",bottom:20,right:20,zIndex:50,padding:"8px 14px",borderRadius:"var(--radius-pill)",border:"1px solid var(--separator)",background:"var(--material-regular)",backdropFilter:"blur(40px) saturate(180%)",WebkitBackdropFilter:"blur(40px) saturate(180%)",cursor:"pointer",gap:8,boxShadow:"0 4px 24px rgba(0,0,0,0.25)"},children:[(0,r.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:"var(--system-green)",animation:"lsw-pulse 2s ease-in-out infinite",flexShrink:0}}),(0,r.jsx)("span",{style:{fontSize:"var(--text-caption1)",color:"var(--text-secondary)",fontWeight:"var(--weight-medium)"},children:"Live Stream"}),a.length>0&&(0,r.jsx)("span",{style:{fontSize:"var(--text-caption2)",color:"var(--text-tertiary)",background:"var(--fill-secondary)",padding:"1px 6px",borderRadius:"var(--radius-sm)"},children:a.length}),(0,r.jsx)("style",{children:"@keyframes lsw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }"})]}):(0,r.jsxs)("div",{className:"panel-slide-in",style:{position:"fixed",bottom:20,right:20,zIndex:50,width:440,height:400,borderRadius:"var(--radius-lg)",border:"1px solid var(--separator)",background:"var(--material-regular)",backdropFilter:"blur(40px) saturate(180%)",WebkitBackdropFilter:"blur(40px) saturate(180%)",boxShadow:"0 8px 40px rgba(0,0,0,0.35)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[(0,r.jsxs)("div",{className:"flex items-center flex-shrink-0",style:{padding:"10px 14px",borderBottom:"1px solid var(--separator)",gap:8},children:[(0,r.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:"var(--system-green)",animation:"lsw-pulse 2s ease-in-out infinite",flexShrink:0}}),(0,r.jsx)("span",{style:{fontSize:"var(--text-footnote)",fontWeight:"var(--weight-semibold)",color:"var(--text-primary)"},children:"Live Stream"}),a.length>0&&(0,r.jsxs)("span",{style:{fontSize:"var(--text-caption2)",color:"var(--text-tertiary)"},children:[a.length," line",1!==a.length?"s":""]}),(0,r.jsxs)("div",{style:{marginLeft:"auto",display:"flex",gap:4},children:[(0,r.jsx)("button",{onClick:f,className:"focus-ring",title:"Copy all logs",disabled:0===a.length,style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--radius-sm)",border:"none",background:s?"var(--accent-fill)":"transparent",color:s?"var(--accent)":"var(--text-tertiary)",cursor:0===a.length?"default":"pointer",opacity:0===a.length?.3:1,transition:"all 150ms var(--ease-smooth)"},children:(0,r.jsx)(D.A,{size:14})}),(0,r.jsx)("button",{onClick:()=>t("collapsed"),className:"focus-ring",title:"Minimize",style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--radius-sm)",border:"none",background:"transparent",color:"var(--text-tertiary)",cursor:"pointer",transition:"color 150ms var(--ease-smooth)"},children:(0,r.jsx)(B.A,{size:14})}),(0,r.jsx)("button",{onClick:x,className:"focus-ring",title:"Close",style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--radius-sm)",border:"none",background:"transparent",color:"var(--text-tertiary)",cursor:"pointer",transition:"color 150ms var(--ease-smooth)"},children:(0,r.jsx)(P.A,{size:14})})]})]}),d&&(0,r.jsx)("div",{style:{padding:"6px 14px",background:"rgba(255,69,58,0.06)",borderBottom:"1px solid rgba(255,69,58,0.15)",fontSize:"var(--text-caption2)",color:"var(--system-red)",flexShrink:0},children:d}),(0,r.jsx)("div",{ref:u,onScroll:g,style:{flex:1,minHeight:0,overflowY:"auto",overflowX:"hidden"},children:0===a.length?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center",style:{height:"100%",color:"var(--text-secondary)",gap:"var(--space-2)",padding:"var(--space-4)"},children:[(0,r.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:"var(--text-tertiary)"},children:(0,r.jsx)("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})}),(0,r.jsx)("span",{style:{fontSize:"var(--text-caption1)",fontWeight:"var(--weight-medium)"},children:"Waiting for log data..."})]}):(0,r.jsx)("div",{children:a.map(e=>(0,r.jsx)(q,{entry:e},e.id))})}),(0,r.jsx)("div",{className:"flex items-center flex-shrink-0",style:{padding:"8px 14px",borderTop:"1px solid var(--separator)",gap:8},children:!l&&a.length>0&&(0,r.jsx)("button",{onClick:()=>o(!0),className:"focus-ring",style:{padding:"4px 10px",borderRadius:"var(--radius-sm)",border:"none",cursor:"pointer",fontSize:"var(--text-caption2)",fontWeight:"var(--weight-medium)",background:"var(--fill-secondary)",color:"var(--text-secondary)"},children:"Scroll to bottom"})}),(0,r.jsx)("style",{children:"@keyframes lsw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }"})]})}var G=a(4430),Y=a(1509),U=a(8146),_=a(2407),V=a(5136);let Q=[{label:"Red",value:"#EF4444"},{label:"Orange",value:"#F97316"},{label:"Amber",value:"#F59E0B"},{label:"Yellow",value:"#EAB308"},{label:"Lime",value:"#84CC16"},{label:"Green",value:"#22C55E"},{label:"Emerald",value:"#10B981"},{label:"Cyan",value:"#06B6D4"},{label:"Blue",value:"#3B82F6"},{label:"Indigo",value:"#6366F1"},{label:"Violet",value:"#8B5CF6"},{label:"Pink",value:"#EC4899"}],X=[{icon:u.A,name:"Chat",desc:"Direct conversations with any employee"},{icon:g.A,name:"Organization",desc:"Visual org chart of your AI team"},{icon:G.A,name:"Kanban",desc:"Task boards for work management"},{icon:f.A,name:"Cron",desc:"Scheduled jobs with status monitoring"},{icon:m.A,name:"Costs",desc:"Token usage and cost tracking"},{icon:v.A,name:"Activity",desc:"Real-time logs and event stream"}];function Z(e){var t;let{forceOpen:a,onClose:n}=e,{settings:l,setPortalName:o,setOperatorName:s,setAccentColor:p,setLanguage:u}=(0,d.t0)(),{theme:h,setTheme:g}=(0,S.D)(),x=(0,c.useRouter)(),[f,m]=(0,i.useState)(!1),[v,y]=(0,i.useState)(0),[b,j]=(0,i.useState)("forward"),[k,w]=(0,i.useState)(""),[N,z]=(0,i.useState)(""),[A,E]=(0,i.useState)(null!=(t=l.language)?t:"English");(0,i.useEffect)(()=>{if(a){var e,t;w(null!=(e=l.portalName)?e:""),z(null!=(t=l.operatorName)?t:""),m(!0);return}localStorage.getItem("jinn-onboarded")||m(!0)},[a]);let I=(0,i.useCallback)(()=>{0===v&&(o(k||null),s(N||null),u(A||"English")),v<3?(j("forward"),y(v+1)):(T.F.completeOnboarding({portalName:k||void 0,operatorName:N||void 0,language:A||void 0}).catch(()=>{}),a||localStorage.setItem("jinn-onboarded","true"),m(!1),null==n||n(),x.push("/chat"))},[v,k,N,a,n,o,s,x]),R=(0,i.useCallback)(()=>{v>0&&(j("back"),y(v-1))},[v]);return f?(0,r.jsx)("div",{style:{position:"fixed",inset:0,zIndex:50,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(0,0,0,0.6)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)"},children:(0,r.jsxs)("div",{className:"animate-fade-in",style:{width:"100%",maxWidth:520,margin:"0 var(--space-4)",background:"var(--material-regular)",borderRadius:"var(--radius-lg)",border:"1px solid var(--separator)",boxShadow:"0 24px 48px rgba(0,0,0,0.3)",overflow:"hidden",display:"flex",flexDirection:"column",maxHeight:"90vh"},children:[(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center",gap:8,padding:"var(--space-4) var(--space-4) 0"},children:Array.from({length:4}).map((e,t)=>(0,r.jsx)("div",{style:{width:t===v?24:8,height:8,borderRadius:4,background:t===v||t<v?"var(--accent)":"var(--fill-tertiary)",opacity:t<v?.5:1,transition:"all 200ms var(--ease-smooth)"}},t))}),(0,r.jsxs)("div",{style:{padding:"var(--space-5) var(--space-5) var(--space-4)",overflowY:"auto",flex:1},children:[0===v&&(0,r.jsxs)("div",{className:"animate-fade-in",style:{textAlign:"center"},children:[(0,r.jsx)("div",{style:{fontSize:56,marginBottom:"var(--space-3)",lineHeight:1},children:"\ud83e\udd16"}),(0,r.jsxs)("h2",{style:{fontSize:"var(--text-large-title)",fontWeight:"var(--weight-bold)",letterSpacing:"var(--tracking-tight)",color:"var(--text-primary)",marginBottom:"var(--space-2)"},children:["Welcome to ",k||"Jinn"]}),(0,r.jsx)("p",{style:{fontSize:"var(--text-body)",color:"var(--text-secondary)",lineHeight:"var(--leading-relaxed)",maxWidth:400,margin:"0 auto var(--space-5)"},children:"Your AI team management portal. Let's get you set up."}),(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-3)",textAlign:"left"},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{style:{display:"block",fontSize:"var(--text-caption1)",color:"var(--text-tertiary)",marginBottom:"var(--space-1)"},children:"Portal Name"}),(0,r.jsx)("input",{type:"text",className:"apple-input",placeholder:"Jinn",value:k,onChange:e=>w(e.target.value),autoFocus:!0,style:{width:"100%",background:"var(--bg-secondary)",border:"1px solid var(--separator)",borderRadius:"var(--radius-sm)",padding:"8px 12px",fontSize:"var(--text-body)",color:"var(--text-primary)"}})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{style:{display:"block",fontSize:"var(--text-caption1)",color:"var(--text-tertiary)",marginBottom:"var(--space-1)"},children:"What should we call you?"}),(0,r.jsx)("input",{type:"text",className:"apple-input",placeholder:"Your Name",value:N,onChange:e=>z(e.target.value),style:{width:"100%",background:"var(--bg-secondary)",border:"1px solid var(--separator)",borderRadius:"var(--radius-sm)",padding:"8px 12px",fontSize:"var(--text-body)",color:"var(--text-primary)"}})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{style:{display:"block",fontSize:"var(--text-caption1)",color:"var(--text-tertiary)",marginBottom:"var(--space-1)"},children:"Preferred Language"}),(0,r.jsxs)("select",{value:A,onChange:e=>E(e.target.value),style:{width:"100%",background:"var(--bg-secondary)",border:"1px solid var(--separator)",borderRadius:"var(--radius-sm)",padding:"8px 12px",fontSize:"var(--text-body)",color:"var(--text-primary)",cursor:"pointer"},children:[(0,r.jsx)("option",{value:"English",children:"English"}),(0,r.jsx)("option",{value:"Spanish",children:"Spanish"}),(0,r.jsx)("option",{value:"French",children:"French"}),(0,r.jsx)("option",{value:"German",children:"German"}),(0,r.jsx)("option",{value:"Portuguese",children:"Portuguese"}),(0,r.jsx)("option",{value:"Italian",children:"Italian"}),(0,r.jsx)("option",{value:"Dutch",children:"Dutch"}),(0,r.jsx)("option",{value:"Russian",children:"Russian"}),(0,r.jsx)("option",{value:"Chinese",children:"Chinese"}),(0,r.jsx)("option",{value:"Japanese",children:"Japanese"}),(0,r.jsx)("option",{value:"Korean",children:"Korean"}),(0,r.jsx)("option",{value:"Arabic",children:"Arabic"}),(0,r.jsx)("option",{value:"Hindi",children:"Hindi"}),(0,r.jsx)("option",{value:"Bulgarian",children:"Bulgarian"})]})]})]})]},"step-0"),1===v&&(0,r.jsxs)("div",{className:"animate-fade-in",children:[(0,r.jsx)("h2",{style:{fontSize:"var(--text-title1)",fontWeight:"var(--weight-bold)",letterSpacing:"var(--tracking-tight)",color:"var(--text-primary)",marginBottom:"var(--space-1)"},children:"Choose your theme"}),(0,r.jsx)("p",{style:{fontSize:"var(--text-subheadline)",color:"var(--text-tertiary)",marginBottom:"var(--space-4)"},children:"Pick the look that suits you. This applies live."}),(0,r.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(130px, 1fr))",gap:"var(--space-3)"},children:C.z.map(e=>{let t=h===e.id;return(0,r.jsxs)("button",{onClick:()=>g(e.id),style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--space-2)",padding:"var(--space-4) var(--space-3)",borderRadius:"var(--radius-md)",background:"var(--fill-quaternary)",border:t?"2px solid var(--accent)":"2px solid var(--separator)",cursor:"pointer",transition:"all 150ms var(--ease-smooth)"},children:[(0,r.jsx)("span",{style:{fontSize:28},children:e.emoji}),(0,r.jsx)("span",{style:{fontSize:"var(--text-footnote)",fontWeight:t?"var(--weight-semibold)":"var(--weight-medium)",color:t?"var(--accent)":"var(--text-secondary)"},children:e.label})]},e.id)})})]},"step-1"),2===v&&(0,r.jsxs)("div",{className:"animate-fade-in",children:[(0,r.jsx)("h2",{style:{fontSize:"var(--text-title1)",fontWeight:"var(--weight-bold)",letterSpacing:"var(--tracking-tight)",color:"var(--text-primary)",marginBottom:"var(--space-1)"},children:"Pick an accent color"}),(0,r.jsx)("p",{style:{fontSize:"var(--text-subheadline)",color:"var(--text-tertiary)",marginBottom:"var(--space-4)"},children:"Personalize with your favorite color."}),(0,r.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(6, 1fr)",gap:"var(--space-3)",justifyItems:"center"},children:Q.map(e=>{let t=l.accentColor===e.value;return(0,r.jsx)("button",{onClick:()=>p(e.value),"aria-label":e.label,title:e.label,style:{width:40,height:40,borderRadius:"50%",background:e.value,border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",outline:t?"3px solid ".concat(e.value):"none",outlineOffset:3,transition:"all 100ms var(--ease-smooth)"},children:t&&(0,r.jsx)(Y.A,{size:18,color:"#fff",strokeWidth:3})},e.value)})})]},"step-2"),3===v&&(0,r.jsxs)("div",{className:"animate-fade-in",children:[(0,r.jsx)("h2",{style:{fontSize:"var(--text-title1)",fontWeight:"var(--weight-bold)",letterSpacing:"var(--tracking-tight)",color:"var(--text-primary)",marginBottom:"var(--space-1)"},children:"You're all set!"}),(0,r.jsx)("p",{style:{fontSize:"var(--text-subheadline)",color:"var(--text-tertiary)",marginBottom:"var(--space-4)"},children:"Here's what you can do."}),(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-2)"},children:X.map(e=>{let t=e.icon;return(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-3)",padding:"var(--space-3)",borderRadius:"var(--radius-md)",background:"var(--fill-quaternary)",border:"1px solid var(--separator)"},children:[(0,r.jsx)("div",{style:{width:36,height:36,borderRadius:8,background:"var(--accent-fill)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,r.jsx)(t,{size:18,style:{color:"var(--accent)"}})}),(0,r.jsxs)("div",{style:{minWidth:0},children:[(0,r.jsx)("div",{style:{fontSize:"var(--text-subheadline)",fontWeight:"var(--weight-semibold)",color:"var(--text-primary)"},children:e.name}),(0,r.jsx)("div",{style:{fontSize:"var(--text-caption1)",color:"var(--text-tertiary)"},children:e.desc})]})]},e.name)})})]},"step-3")]}),(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"var(--space-3) var(--space-5) var(--space-5)",gap:"var(--space-3)"},children:[v>0?(0,r.jsxs)("button",{onClick:R,style:{padding:"var(--space-2) var(--space-4)",borderRadius:"var(--radius-md)",background:"var(--fill-tertiary)",color:"var(--text-secondary)",border:"none",cursor:"pointer",fontSize:"var(--text-subheadline)",fontWeight:"var(--weight-medium)",transition:"all 150ms var(--ease-smooth)",display:"inline-flex",alignItems:"center",gap:6},children:[(0,r.jsx)(U.A,{size:16}),"Back"]}):(0,r.jsx)("div",{}),(0,r.jsxs)("button",{onClick:I,style:{padding:"var(--space-2) var(--space-6)",borderRadius:"var(--radius-md)",background:"var(--accent)",color:"var(--accent-contrast)",border:"none",cursor:"pointer",fontSize:"var(--text-subheadline)",fontWeight:"var(--weight-semibold)",transition:"all 150ms var(--ease-smooth)",display:"inline-flex",alignItems:"center",gap:6},children:[0===v?"Next":3===v?"Get Started":"Next",3===v?(0,r.jsx)(_.A,{size:16}):(0,r.jsx)(V.A,{size:16})]})]})]})}):null}var $=a(7836);let ee=[{href:"/",label:"Home",icon:p.A},{href:"/chat",label:"Chat",icon:u.A},{href:"/sessions",label:"Sessions",icon:h.A},{href:"/org",label:"Organization",icon:g.A},{href:"/kanban",label:"Kanban",icon:x.A},{href:"/cron",label:"Cron",icon:f.A},{href:"/costs",label:"Costs",icon:m.A},{href:"/logs",label:"Activity",icon:v.A},{href:"/skills",label:"Skills",icon:y.A},{href:"/settings",label:"Settings",icon:b.A}];function et(){var e,t;let[a,n]=(0,i.useState)(!1),o=(0,c.usePathname)(),{settings:p}=(0,d.t0)(),u=null!=(e=p.portalEmoji)?e:"\uD83E\uDD16",h=null!=(t=p.portalName)?t:"Jinn";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{style:{height:48,display:"flex",alignItems:"center",padding:"0 12px",borderBottom:"1px solid var(--separator)",background:"var(--material-thick)",flexShrink:0,position:"relative",zIndex:60},className:"jsx-906cbf20b7aa1777 lg:hidden",children:[(0,r.jsx)("button",{onClick:()=>n(!0),"aria-label":"Open menu",style:{width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",background:"transparent",border:"none",cursor:"pointer",color:"var(--text-primary)"},className:"jsx-906cbf20b7aa1777",children:(0,r.jsx)($.A,{size:20})}),(0,r.jsxs)("div",{style:{flex:1,textAlign:"center"},className:"jsx-906cbf20b7aa1777",children:[(0,r.jsx)("span",{style:{fontSize:18,marginRight:6},className:"jsx-906cbf20b7aa1777",children:u}),(0,r.jsx)("span",{style:{fontSize:15,fontWeight:600,color:"var(--text-primary)"},className:"jsx-906cbf20b7aa1777",children:h})]}),(0,r.jsx)("div",{style:{width:36},className:"jsx-906cbf20b7aa1777"})]}),a&&(0,r.jsxs)("div",{style:{position:"fixed",inset:0,zIndex:100},className:"jsx-906cbf20b7aa1777 lg:hidden",children:[(0,r.jsx)("div",{style:{position:"absolute",inset:0,background:"rgba(0,0,0,0.5)"},onClick:()=>n(!1),className:"jsx-906cbf20b7aa1777"}),(0,r.jsxs)("nav",{style:{position:"absolute",top:0,left:0,bottom:0,width:260,background:"var(--bg-secondary)",borderRight:"1px solid var(--separator)",display:"flex",flexDirection:"column",animation:"slideInLeft 200ms ease"},className:"jsx-906cbf20b7aa1777",children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 14px",borderBottom:"1px solid var(--separator)"},className:"jsx-906cbf20b7aa1777",children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},className:"jsx-906cbf20b7aa1777",children:[(0,r.jsx)("span",{style:{fontSize:22},className:"jsx-906cbf20b7aa1777",children:u}),(0,r.jsx)("span",{style:{fontSize:16,fontWeight:600,color:"var(--text-primary)"},className:"jsx-906cbf20b7aa1777",children:h})]}),(0,r.jsx)("button",{onClick:()=>n(!1),"aria-label":"Close menu",style:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",background:"transparent",border:"none",cursor:"pointer",color:"var(--text-secondary)"},className:"jsx-906cbf20b7aa1777",children:(0,r.jsx)(P.A,{size:18})})]}),(0,r.jsx)("div",{style:{flex:1,padding:"8px",display:"flex",flexDirection:"column",gap:2},className:"jsx-906cbf20b7aa1777",children:ee.map(e=>{let t="/"===e.href?"/"===o:o.startsWith(e.href),a=e.icon;return(0,r.jsxs)(s(),{href:e.href,onClick:()=>n(!1),style:{display:"flex",alignItems:"center",gap:12,height:44,padding:"0 14px",borderRadius:10,textDecoration:"none",color:t?"var(--accent)":"var(--text-secondary)",background:t?"var(--accent-fill)":"transparent",fontWeight:t?600:400,fontSize:15},children:[(0,r.jsx)(a,{size:18,style:{flexShrink:0},className:"jsx-906cbf20b7aa1777"}),e.label]},e.href)})})]})]}),(0,r.jsx)(l(),{id:"906cbf20b7aa1777",children:"@keyframes slideInLeft{from{transform:translatex(-100%)}to{transform:translatex(0)}}"})]})}function ea(e){let{children:t}=e;return(0,r.jsxs)("div",{className:"flex h-dvh overflow-hidden",style:{background:"var(--bg)"},children:[(0,r.jsx)(A,{}),(0,r.jsx)(O,{}),(0,r.jsxs)("main",{className:"flex-1 overflow-hidden lg:ml-[56px]",children:[(0,r.jsx)(et,{}),t]}),(0,r.jsx)(K,{}),(0,r.jsx)(Z,{})]})}},3176:(e,t,a)=>{a.d(t,{F:()=>s});let r=window.location.origin;async function n(e){let t=await fetch("".concat(r).concat(e));if(!t.ok)throw Error("API error: ".concat(t.status));return t.json()}async function l(e,t){let a=await fetch("".concat(r).concat(e),{method:"POST",headers:{"Content-Type":"application/json"},body:t?JSON.stringify(t):void 0});if(!a.ok)throw Error("API error: ".concat(a.status));return a.json()}async function i(e){let t=await fetch("".concat(r).concat(e),{method:"DELETE"});if(!t.ok)throw Error("API error: ".concat(t.status));return t.json()}async function o(e,t){let a=await fetch("".concat(r).concat(e),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!a.ok)throw Error("API error: ".concat(a.status));return a.json()}let s={getStatus:()=>n("/api/status"),getSessions:()=>n("/api/sessions"),getSession:e=>n("/api/sessions/".concat(e)),getSessionChildren:e=>n("/api/sessions/".concat(e,"/children")),deleteSession:e=>i("/api/sessions/".concat(e)),bulkDeleteSessions:e=>l("/api/sessions/bulk-delete",{ids:e}),createSession:e=>l("/api/sessions",e),createStubSession:e=>l("/api/sessions/stub",e),sendMessage:(e,t)=>l("/api/sessions/".concat(e,"/message"),t),getCronJobs:()=>n("/api/cron"),getCronRuns:e=>n("/api/cron/".concat(e,"/runs")),updateCronJob:(e,t)=>o("/api/cron/".concat(e),t),triggerCronJob:e=>l("/api/cron/".concat(e,"/trigger"),{}),getOrg:()=>n("/api/org"),getEmployee:e=>n("/api/org/employees/".concat(e)),getDepartmentBoard:e=>n("/api/org/departments/".concat(e,"/board")),getSkills:()=>n("/api/skills"),getSkill:e=>n("/api/skills/".concat(e)),getConfig:()=>n("/api/config"),updateConfig:e=>o("/api/config",e),getLogs:e=>n("/api/logs".concat(e?"?n=".concat(e):"")),getOnboarding:()=>n("/api/onboarding"),completeOnboarding:e=>l("/api/onboarding",e),getActivity:()=>n("/api/activity"),updateDepartmentBoard:(e,t)=>o("/api/org/departments/".concat(e,"/board"),t),sttStatus:()=>n("/api/stt/status"),sttDownload:()=>l("/api/stt/download",{}),sttTranscribe:async(e,t)=>{let a=t?"?language=".concat(encodeURIComponent(t)):"",n=new AbortController,l=setTimeout(()=>n.abort(),3e5);try{let t=await fetch("".concat(r,"/api/stt/transcribe").concat(a),{method:"POST",headers:{"Content-Type":e.type||"audio/webm"},body:e,signal:n.signal});if(!t.ok)throw Error("API error: ".concat(t.status));return t.json()}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)throw Error("Transcription timed out (5 min)");throw e}finally{clearTimeout(l)}},sttUpdateConfig:e=>o("/api/stt/config",{languages:e})}},4263:(e,t,a)=>{a.d(t,{G:()=>o});var r=a(5271),n=a(1298),l=a(2755);function i(e,t){"Notification"in window&&"granted"===Notification.permission&&document.hidden&&new Notification(e,{body:t,icon:"/favicon.ico",tag:"jinn-session"})}function o(){var e;let{settings:t}=(0,l.t0)(),a=null!=(e=t.portalName)?e:"Jinn",[o,s]=(0,r.useState)([]),[c,d]=(0,r.useState)(!1),[p,u]=(0,r.useState)(0),[h,g]=(0,r.useState)(0),x=(0,r.useRef)(!1),f=(0,r.useRef)(a);return f.current=a,(0,r.useEffect)(()=>{!x.current&&(x.current=!0,"Notification"in window&&"default"===Notification.permission&&Notification.requestPermission());let e=(0,n.E)((e,t)=>{if(s(a=>[...a.slice(-99),{event:e,payload:t}]),"skills:changed"===e&&g(e=>e+1),"session:completed"===e){let e=t.employee||f.current,a=t.error;a?i("".concat(e," - Error"),a.slice(0,100)):i("".concat(e," - Done"),"Session completed successfully")}},{onOpen:()=>{d(!0),u(e=>e+1)},onClose:()=>{d(!1)}});return()=>e.close()},[]),{events:o,connected:c,connectionSeq:p,skillsVersion:h}}},5310:(e,t,a)=>{a.d(t,{b:()=>c,w:()=>s});var r=a(8111),n=a(5271);let l={info:"var(--system-green)",warn:"var(--system-orange)",error:"var(--system-red)",debug:"var(--text-tertiary)"},i={info:"rgba(48,209,88,0.12)",warn:"rgba(255,159,10,0.12)",error:"rgba(255,69,58,0.12)",debug:"var(--fill-secondary)"},o=[{key:"all",label:"All"},{key:"info",label:"Info"},{key:"warn",label:"Warn"},{key:"error",label:"Errors"}];function s(e,t){let a=e.match(/^(\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2})\s+\[(\w+)\]\s*(.*)$/);return a?{id:"log-".concat(t),timestamp:a[1],level:a[2].toLowerCase(),message:a[3]}:{id:"log-".concat(t),timestamp:"",level:"info",message:e}}function c(e){let{lines:t}=e,[a,c]=(0,n.useState)("all"),[d,p]=(0,n.useState)(""),[u,h]=(0,n.useState)(null),g=t.map(s),x=g.filter(e=>("all"===a||e.level===a)&&(!d||!!e.message.toLowerCase().includes(d.toLowerCase()))),f={all:g.length,info:g.filter(e=>"info"===e.level).length,warn:g.filter(e=>"warn"===e.level).length,error:g.filter(e=>"error"===e.level).length};return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center flex-wrap",style:{gap:"var(--space-2)",marginBottom:"var(--space-3)"},children:[o.map(e=>{let t=a===e.key;return(0,r.jsxs)("button",{onClick:()=>c(e.key),className:"focus-ring flex items-center flex-shrink-0",style:{borderRadius:20,padding:"6px 14px",fontSize:"var(--text-footnote)",fontWeight:"var(--weight-medium)",border:"none",cursor:"pointer",gap:"var(--space-2)",transition:"all 200ms var(--ease-smooth)",...t?{background:"var(--accent-fill)",color:"var(--accent)",boxShadow:"0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent)"}:{background:"var(--fill-secondary)",color:"var(--text-primary)"}},children:[(0,r.jsx)("span",{children:e.label}),(0,r.jsx)("span",{style:{fontWeight:"var(--weight-semibold)",color:t?"var(--accent)":"var(--text-secondary)"},children:f[e.key]})]},e.key)}),(0,r.jsx)("input",{type:"text",placeholder:"Search logs...",value:d,onChange:e=>p(e.target.value),className:"focus-ring",style:{marginLeft:"auto",padding:"6px 12px",fontSize:"var(--text-footnote)",borderRadius:"var(--radius-sm)",border:"1px solid var(--separator)",background:"var(--fill-secondary)",color:"var(--text-primary)",outline:"none",minWidth:160,maxWidth:240}})]}),0===x.length?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center",style:{height:200,color:"var(--text-secondary)",gap:"var(--space-2)"},children:[(0,r.jsx)("span",{style:{fontSize:"var(--text-subheadline)",fontWeight:"var(--weight-medium)"},children:0===g.length?"No log entries found":"No entries match this filter"}),(0,r.jsx)("span",{style:{fontSize:"var(--text-footnote)",color:"var(--text-tertiary)"},children:0===g.length?"Log entries will appear here when available":"Try adjusting your filter or search"})]}):(0,r.jsx)("div",{style:{borderRadius:"var(--radius-md)",overflow:"hidden",background:"var(--material-regular)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:x.map((e,t)=>{var a,n;let o=u===e.id,s=null!=(a=l[e.level])?a:"var(--text-tertiary)",c=e.message.length>120;return(0,r.jsxs)("div",{children:[t>0&&(0,r.jsx)("div",{style:{height:1,background:"var(--separator)",marginLeft:"var(--space-4)",marginRight:"var(--space-4)"}}),(0,r.jsxs)("div",{role:"button",tabIndex:0,"aria-expanded":c?o:void 0,onClick:()=>c&&h(o?null:e.id),onKeyDown:t=>{c&&("Enter"===t.key||" "===t.key)&&(t.preventDefault(),h(o?null:e.id))},className:"flex items-center hover-bg focus-ring",style:{minHeight:44,padding:"0 var(--space-4)",cursor:c?"pointer":"default",background:"error"===e.level?"rgba(255,69,58,0.06)":void 0},children:[(0,r.jsx)("span",{className:"flex-shrink-0 rounded-full",style:{width:8,height:8,background:s}}),e.timestamp&&(0,r.jsx)("span",{className:"flex-shrink-0 font-mono",style:{fontSize:"var(--text-caption1)",color:"var(--text-tertiary)",marginLeft:"var(--space-3)",minWidth:130},children:e.timestamp}),(0,r.jsx)("span",{className:"flex-shrink-0",style:{fontSize:"var(--text-caption2)",fontWeight:"var(--weight-semibold)",padding:"1px 6px",borderRadius:4,background:null!=(n=i[e.level])?n:"var(--fill-secondary)",color:s,marginLeft:"var(--space-2)",letterSpacing:"0.04em",textTransform:"uppercase"},children:e.level}),(0,r.jsx)("span",{className:"truncate",style:{fontSize:"var(--text-footnote)",color:"var(--text-primary)",marginLeft:"var(--space-3)",flex:1,minWidth:0},children:c&&!o?e.message.slice(0,117)+"...":e.message}),c&&(0,r.jsx)("span",{"aria-hidden":"true",style:{fontSize:"var(--text-footnote)",color:"var(--text-tertiary)",transition:"transform 200ms var(--ease-smooth)",transform:o?"rotate(90deg)":"rotate(0deg)",display:"inline-block",marginLeft:"var(--space-2)"},children:"›"})]}),o&&c&&(0,r.jsx)("div",{className:"animate-slide-down",style:{padding:"0 var(--space-4) var(--space-4) var(--space-4)"},children:(0,r.jsx)("div",{style:{borderRadius:"var(--radius-sm)",background:"var(--fill-secondary)",padding:"var(--space-3)",marginTop:"var(--space-2)"},children:(0,r.jsx)("pre",{className:"font-mono",style:{fontSize:"var(--text-caption2)",color:"var(--text-secondary)",whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0,maxHeight:300,overflow:"auto",lineHeight:"var(--leading-relaxed)"},children:e.message})})})]},e.id)})})]})}},7460:(e,t,a)=>{a.d(t,{D:()=>o,N:()=>i});var r=a(8111),n=a(5271);let l=(0,n.createContext)({theme:"dark",setTheme:()=>{}});function i(e){let{children:t}=e,[a,i]=(0,n.useState)("dark"),o=(0,n.useCallback)(e=>{i(e),localStorage.setItem("jinn-theme",e);let t=document.documentElement;if(t.removeAttribute("data-theme"),"system"===e){let e=window.matchMedia("(prefers-color-scheme: dark)").matches;t.setAttribute("data-theme",e?"dark":"light")}else t.setAttribute("data-theme",e)},[]);return(0,n.useEffect)(()=>{let e=localStorage.getItem("jinn-theme");e&&o(e)},[o]),(0,r.jsx)(l.Provider,{value:{theme:a,setTheme:o},children:t})}function o(){return(0,n.useContext)(l)}},9834:(e,t,a)=>{a.d(t,{z:()=>r});let r=[{id:"dark",label:"Dark",emoji:"\uD83C\uDF11"},{id:"glass",label:"Glass",emoji:"\uD83E\uDE9F"},{id:"color",label:"Color",emoji:"\uD83C\uDFA8"},{id:"light",label:"Light",emoji:"☀️"},{id:"system",label:"System",emoji:"⚙️"}]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{1898:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}});let r=l(8111),n=l(4733);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)},4733:(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)},5455:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=l(8111),n=l(1898),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)},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{1898:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}});let r=l(8111),n=l(4733);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)},4733:(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)},5455:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=l(8111),n=l(1898),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)},7409:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return l(5455)}])}},e=>{e.O(0,[814,743,358],()=>e(e.s=7409)),_N_E=e.O()}]);
|