@orgsdk/cli 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +1 -1
  2. package/dist/server/index.js +49 -20
  3. package/dist/server/out/_next/static/chunks/0-dbj7aol0zyd.js +1 -0
  4. package/dist/server/out/_next/static/chunks/05kayq1r2gs1z.js +1 -0
  5. package/dist/server/out/_next/static/chunks/06d-5nusxsw-a.js +3 -0
  6. package/dist/server/out/_next/static/chunks/{310vm2bl3xxpt.js → 1pcw6gskne7pf.js} +2 -2
  7. package/dist/server/out/_next/static/chunks/1qffufywmjevt.js +1 -0
  8. package/dist/server/out/_next/static/chunks/22w_ipn94al45.css +1 -0
  9. package/dist/server/out/_next/static/chunks/24ibrv-d0hjeh.js +1 -0
  10. package/dist/server/out/_next/static/chunks/{23e6jep2anmtk.js → 3jn_x8ihwq16e.js} +1 -1
  11. package/dist/server/out/_next/static/chunks/3jwn7o4i7hfd9.js +3 -0
  12. package/dist/server/out/_next/static/chunks/3rzpzo391qxot.js +1 -0
  13. package/dist/server/out/_next/static/chunks/3ux6647-rknsm.js +1 -0
  14. package/dist/server/out/_next/static/media/orgsdk-wordmark.2l7fnrvm28urx.webp +0 -0
  15. package/dist/server/out/accounts/2fa/__next._full.txt +17 -16
  16. package/dist/server/out/accounts/2fa/__next._tree.txt +2 -2
  17. package/dist/server/out/accounts/2fa/__next.accounts.2fa.__PAGE__.txt +18 -17
  18. package/dist/server/out/accounts/2fa/index.html +1 -1
  19. package/dist/server/out/accounts/2fa/index.txt +17 -16
  20. package/dist/server/out/accounts/email/__next._full.txt +17 -16
  21. package/dist/server/out/accounts/email/__next._tree.txt +2 -2
  22. package/dist/server/out/accounts/email/__next.accounts.email.__PAGE__.txt +18 -17
  23. package/dist/server/out/accounts/email/index.html +1 -1
  24. package/dist/server/out/accounts/email/index.txt +17 -16
  25. package/dist/server/out/accounts/login/__next._full.txt +17 -16
  26. package/dist/server/out/accounts/login/__next._tree.txt +2 -2
  27. package/dist/server/out/accounts/login/__next.accounts.login.__PAGE__.txt +18 -17
  28. package/dist/server/out/accounts/login/index.html +1 -1
  29. package/dist/server/out/accounts/login/index.txt +17 -16
  30. package/dist/server/out/accounts/logout/__next._full.txt +17 -16
  31. package/dist/server/out/accounts/logout/__next._tree.txt +2 -2
  32. package/dist/server/out/accounts/logout/__next.accounts.logout.__PAGE__.txt +18 -17
  33. package/dist/server/out/accounts/logout/index.html +1 -1
  34. package/dist/server/out/accounts/logout/index.txt +17 -16
  35. package/dist/server/out/accounts/password/change/__next._full.txt +17 -16
  36. package/dist/server/out/accounts/password/change/__next._tree.txt +2 -2
  37. package/dist/server/out/accounts/password/change/__next.accounts.password.change.__PAGE__.txt +18 -17
  38. package/dist/server/out/accounts/password/change/index.html +1 -1
  39. package/dist/server/out/accounts/password/change/index.txt +17 -16
  40. package/dist/server/out/accounts/password/reset/__next._full.txt +17 -16
  41. package/dist/server/out/accounts/password/reset/__next._tree.txt +2 -2
  42. package/dist/server/out/accounts/password/reset/__next.accounts.password.reset.__PAGE__.txt +18 -17
  43. package/dist/server/out/accounts/password/reset/index.html +1 -1
  44. package/dist/server/out/accounts/password/reset/index.txt +17 -16
  45. package/dist/server/out/accounts/signup/__next._full.txt +17 -16
  46. package/dist/server/out/accounts/signup/__next._tree.txt +2 -2
  47. package/dist/server/out/accounts/signup/__next.accounts.signup.__PAGE__.txt +18 -17
  48. package/dist/server/out/accounts/signup/index.html +1 -1
  49. package/dist/server/out/accounts/signup/index.txt +17 -16
  50. package/dist/server/out/setup/__next._full.txt +19 -18
  51. package/dist/server/out/setup/__next._tree.txt +2 -2
  52. package/dist/server/out/setup/__next.setup.__PAGE__.txt +20 -19
  53. package/dist/server/out/setup/index.html +1 -1
  54. package/dist/server/out/setup/index.txt +19 -18
  55. package/dist/server/out/studio/approve/__next._full.txt +19 -18
  56. package/dist/server/out/studio/approve/__next._tree.txt +2 -2
  57. package/dist/server/out/studio/approve/__next.studio.approve.__PAGE__.txt +20 -19
  58. package/dist/server/out/studio/approve/index.html +1 -1
  59. package/dist/server/out/studio/approve/index.txt +19 -18
  60. package/dist/server/out/workspaces/invite/__next._full.txt +3 -3
  61. package/dist/server/out/workspaces/invite/__next._tree.txt +2 -2
  62. package/dist/server/out/workspaces/invite/__next.workspaces.invite.__PAGE__.txt +2 -2
  63. package/dist/server/out/workspaces/invite/index.html +1 -1
  64. package/dist/server/out/workspaces/invite/index.txt +3 -3
  65. package/docs/browser-sessions.md +1 -1
  66. package/docs/studio.md +7 -5
  67. package/package.json +1 -1
  68. package/dist/server/out/_next/static/chunks/0rlc9tihf4po6.css +0 -1
  69. package/dist/server/out/_next/static/chunks/1r6fntqlmum9s.js +0 -1
  70. package/dist/server/out/_next/static/chunks/27nl6dxk63itx.js +0 -1
  71. package/dist/server/out/_next/static/chunks/2vlk6pv7w2mqf.js +0 -1
  72. package/dist/server/out/_next/static/chunks/32whft3914fyd.js +0 -1
  73. package/dist/server/out/_next/static/chunks/3fotzxv1-f1pv.js +0 -1
  74. package/dist/server/out/_next/static/chunks/3wbj1zftre8tm.js +0 -1
  75. package/dist/server/out/_next/static/chunks/3zt_16xndew4w.js +0 -1
  76. /package/dist/server/out/_next/static/{nuueL_zaptsiP6lJ6gOqq → CkCrHy-m0W4Wo6_2T25_g}/_buildManifest.js +0 -0
  77. /package/dist/server/out/_next/static/{nuueL_zaptsiP6lJ6gOqq → CkCrHy-m0W4Wo6_2T25_g}/_clientMiddlewareManifest.js +0 -0
  78. /package/dist/server/out/_next/static/{nuueL_zaptsiP6lJ6gOqq → CkCrHy-m0W4Wo6_2T25_g}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},useLinkStatus:function(){return b}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(90809),s=e.r(43476),i=o._(e.r(71645)),c=e.r(95057),u=e.r(8372),l=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),p=e.r(91949),m=e.r(73668),y=e.r(9396);function x(t){var r;let n,a,o,[x,b]=(0,i.useOptimistic)(p.IDLE_LINK_STATUS),j=(0,i.useRef)(null),{href:w,as:v,children:S,prefetch:N=null,passHref:P,replace:C,shallow:T,scroll:E,onClick:U,onMouseEnter:_,onTouchStart:R,legacyBehavior:L=!1,onNavigate:O,transitionTypes:k,ref:A,unstable_dynamicOnHover:F,...$}=t;n=S,L&&("string"==typeof n||"number"==typeof n)&&(n=(0,s.jsx)("a",{children:n}));let I=i.default.useContext(u.AppRouterContext),M=!1!==N,B=!1===N?"none":!0===N?"full":"auto",D="none"!==B?"auto"===B?y.FetchStrategy.PPR:y.FetchStrategy.Full:y.FetchStrategy.PPR,q="string"==typeof(r=v||w)?r:(0,c.formatUrl)(r);if(L){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");a=i.default.Children.only(n)}let K=L?a&&"object"==typeof a&&a.ref:A,W,z=i.default.useCallback(e=>(null!==I&&(j.current=(0,p.mountLinkInstance)(e,q,I,D,M,b,W)),()=>{j.current&&((0,p.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,p.unmountPrefetchableInstance)(e)}),[M,q,I,D,b,W]),G={ref:(0,l.useMergedRef)(z,K),onClick(t){L||"function"!=typeof U||U(t),L&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!I||t.defaultPrevented||function(t,r,n,a,o,s,i,c="none"){if("u">typeof window){let u,{nodeName:l}=t.currentTarget;if("A"===l.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{navigate:d}=e.r(32916);d(r,a?"replace":"push",!1===o?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,i,c)}}(t,q,j,C,E,O,k,B)},onMouseEnter(e){L||"function"!=typeof _||_(e),L&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),I&&M&&(0,p.onNavigationIntent)(e.currentTarget,!0===F)},onTouchStart:function(e){L||"function"!=typeof R||R(e),L&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),I&&M&&(0,p.onNavigationIntent)(e.currentTarget,!0===F)}};return(0,d.isAbsoluteUrl)(q)?G.href=q:L&&!P&&("a"!==a.type||"href"in a.props)||(G.href=(0,f.addBasePath)(q)),o=L?i.default.cloneElement(a,G):(0,s.jsx)("a",{...$,...G,children:n}),(0,s.jsx)(g.Provider,{value:x,children:o})}let g=(0,i.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,i.useContext)(g);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=o(e,n)),t&&(a.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 r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(90809)._(e.r(98183)),s=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",i=e.hash||"",c=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),c&&"object"==typeof c&&(c=String(o.urlQueryToSearchParams(c)));let l=e.search||c&&`?${c}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||s.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),i&&"#"!==i[0]&&(i="#"+i),l&&"?"!==l[0]&&(l="?"+l),a=a.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),`${n}${u}${a}${l}${i}`}let c=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=e.r(18967),a=e.r(52817);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,a.hasBasePath)(r.pathname)}catch(e){return!1}}},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return j},NormalizeError:function(){return g},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return y},WEB_VITALS:function(){return o},execOnce:function(){return s},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return l},isAbsoluteUrl:function(){return c},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return v}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=["CLS","FCP","INP","LCP","TTFB"];function s(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,c=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&i.test(e)};function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function l(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let m="u">typeof performance,y=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class g extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w 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})}},95813,e=>{"use strict";e.s(["f",0,function(e,t="The request failed. Please try again."){return e instanceof Error?e.message:t}])},86441,e=>{"use strict";var t=e.i(43476),r=e.i(22016),n=e.i(73656),a=e.i(71645),o=e.i(92229),s=e.i(18879),i=e.i(11105);function c(){let e=(0,n.S)("/accounts/email/");return e.startsWith("https:")||e.startsWith("http:")?(0,t.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",children:"Confirm your identity on your installation, then retry."}):(0,t.jsxs)("details",{open:!0,className:"mt-6 border-t border-slate-200 pt-4",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-sm font-medium",children:"Confirm your identity"}),(0,t.jsxs)("p",{className:"text-sm",children:["Session expired? ",(0,t.jsx)(r.default,{href:"/accounts/login/",children:"Sign in again"}),"."]}),(0,t.jsx)("p",{className:"text-sm",children:"If a security change asks you to confirm your identity, enter your password or an authenticator code, then retry the change."}),(0,t.jsx)(i.F,{submitLabel:"Confirm password",onSubmit:async e=>(await n.U.auth.reauthenticate.mutate({password:(0,s.f)(e,"password")}),"Identity confirmed. Retry your change."),children:(0,t.jsx)(i.j,{label:"Password",type:"password",name:"password",autoComplete:"current-password",required:!0})}),(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)(i.F,{submitLabel:"Confirm code",onSubmit:async e=>(await n.U.auth.mfaReauthenticate.mutate({code:(0,s.f)(e,"code")}),"Identity confirmed. Retry your change."),children:(0,t.jsx)(i.j,{label:"Authenticator or recovery code",name:"code",autoComplete:"one-time-code",required:!0})})})]})}e.s(["f",0,function({children:e}){let[s,i]=(0,a.useState)(),[u,l]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=new AbortController;return(0,n.m)(e.signal).then(t=>{e.signal.aborted||i(t)}).catch(()=>{e.signal.aborted||l(!0)}),()=>{e.abort()}},[]);let[d,f]=(0,a.useState)(!1);return u?(0,t.jsx)("p",{role:"alert",children:"Unable to load your account. Reload to try again."}):s?s.is_authenticated?(0,t.jsxs)(o.T,{value:()=>{f(!0)},children:[e,d&&(0,t.jsx)(c,{})]}):(0,t.jsxs)("p",{children:["Please ",(0,t.jsx)(r.default,{href:"/accounts/login/",children:"sign in"})," to manage your account."]}):(0,t.jsx)("p",{role:"status",children:"Loading your account…"})}],86441)},11105,76046,92229,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.i(44362);var n=e.i(14778);e.i(73656);let a="Confirm your identity below, then retry your change.";function o(e){return(0,n.f)(e)&&e.data?.code==="UNAUTHORIZED"}function s(e){let t=new URLSearchParams(e).get("next");if(!t||!t.startsWith("/")||t.startsWith("//")||t.includes("\\"))return"/";for(let e of t)if((e.codePointAt(0)??0)<=32)return"/";let r=new URL(t,location.origin);return r.origin===location.origin?`${r.pathname}${r.search}${r.hash}`:"/"}e.s(["k",0,function(){location.assign(s(location.search))},"z",0,a,"$",0,o,"u",0,function(e){return!e.is_authenticated&&e.flows.some(e=>"mfa_authenticate"===e.id)},"N",0,s],76046);var i=e.i(95813);let c=(0,r.createContext)(void 0);function u(){let e=(0,r.useContext)(c);return(t,r)=>e&&o(t)?(e(),a):(0,i.f)(t,r)}e.s(["T",0,c,"G",0,u],92229);var l=e.i(19455),d=e.i(93479);e.s(["j",0,function({label:e,...r}){return(0,t.jsxs)("label",{children:[e,(0,t.jsx)(d.f,{...r})]})},"F",0,function({children:e,submitLabel:n,onSubmit:a}){let o=u(),[s,i]=(0,r.useState)(!1),[c,d]=(0,r.useState)(""),[f,h]=(0,r.useState)("");async function p(e){e.preventDefault();let t=new FormData(e.currentTarget);i(!0),d(""),h("");try{h(await a(t)??"")}catch(e){d(o(e,"Unable to save. Please try again."))}finally{i(!1)}}return(0,t.jsxs)("form",{onSubmit:e=>{p(e)},children:[(0,t.jsxs)("fieldset",{disabled:s,className:"min-w-0 border-0 p-0",children:[e,(0,t.jsx)(l.f,{type:"submit",disabled:s,children:s?"Please wait…":n})]}),c&&(0,t.jsx)("p",{role:"alert",className:"error mt-4",children:c}),f&&(0,t.jsx)("p",{role:"status",className:"notice mt-4",children:f})]})}],11105)},15448,e=>{"use strict";var t=e.i(43476),r=e.i(22016);function n({className:e,...r}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none","aria-hidden":"true",className:e,...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"19",stroke:"#4f46e5",strokeWidth:"12"}),(0,t.jsx)("circle",{cx:"50",cy:"14",r:"6",fill:"#8b5cf6"})]})}e.s(["f",0,function({title:e,description:a,children:o,showAccountNavigation:s=!1}){return(0,t.jsxs)("div",{className:"min-h-screen",children:[(0,t.jsxs)("header",{className:"flex items-center justify-between border-b border-slate-200 bg-white px-6 py-4 sm:px-10",children:[(0,t.jsxs)("a",{href:"/",className:"flex items-center gap-2 text-lg font-semibold text-slate-900",children:[(0,t.jsx)(n,{className:"h-9 w-9"}),"OrgSDK"]}),(0,t.jsx)("a",{href:"/",className:"text-sm",children:"Back to app"})]}),(0,t.jsxs)("main",{className:"mx-auto w-full max-w-xl px-4 py-10 sm:py-16",children:[s&&(0,t.jsxs)("nav",{"aria-label":"Account",className:"mb-6 flex flex-wrap gap-4 text-sm",children:[(0,t.jsx)(r.default,{href:"/accounts/email/",children:"Account"}),(0,t.jsx)(r.default,{href:"/accounts/password/change/",children:"Password"}),(0,t.jsx)(r.default,{href:"/accounts/2fa/",children:"Two-factor authentication"}),(0,t.jsx)(r.default,{href:"/accounts/logout/",children:"Sign out"})]}),(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsx)("h1",{className:"!text-2xl",children:e}),a&&(0,t.jsx)("p",{className:"mb-6 text-sm",children:a}),o]})]})]})}],15448)},81010,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(73656),a=e.i(95813),o=e.i(18879),s=e.i(19455),i=e.i(15448),c=e.i(86441),u=e.i(92229),l=e.i(11105);function d(){let e=(0,u.G)(),[i,c]=(0,r.useState)(),[d,f]=(0,r.useState)(!1),[h,p]=(0,r.useState)(""),[m,y]=(0,r.useState)([]),[x,g]=(0,r.useState)("");return(0,r.useEffect)(()=>{let e=!0;return n.U.auth.authenticators.query().then(t=>{e&&c(t.some(e=>"totp"===e.type))}).catch(t=>{e&&g((0,a.f)(t,"Unable to load authenticators."))}),()=>{e=!1}},[]),(0,t.jsxs)(t.Fragment,{children:[x&&(0,t.jsx)("p",{role:"alert",className:"error",children:x}),void 0===i&&!x&&(0,t.jsx)("p",{role:"status",children:"Loading security settings…"}),!1===i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm",children:"Add two-factor authentication using an authenticator app. You will enter a code when signing in."}),h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm",children:"Add an account in your authenticator app with this setup key. Select time-based codes."}),(0,t.jsx)("code",{className:"block break-all rounded bg-slate-100 p-3 text-sm",children:h}),(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)(l.F,{submitLabel:"Enable two-factor authentication",onSubmit:async e=>(await n.U.auth.enableTotp.mutate({code:(0,o.f)(e,"code")}),c(!0),p(""),"Two-factor authentication enabled. Generate recovery codes below."),children:(0,t.jsx)(l.j,{label:"Code from your authenticator",name:"code",autoComplete:"one-time-code",inputMode:"numeric",required:!0})})})]}):(0,t.jsx)(s.f,{disabled:d,onClick:()=>{g(""),f(!0),n.U.auth.totpSetup.mutate().then(e=>{if(c(e.enabled),!e.enabled){if(!e.secret)throw Error("Unable to start authenticator setup. Reload and try again.");p(e.secret)}}).catch(t=>{g(e(t,"Unable to start setup."))}).finally(()=>{f(!1)})},children:d?"Preparing setup…":"Set up authenticator"})]}),!0===i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm",children:"Two-factor authentication is enabled."}),(0,t.jsx)("h2",{className:"mt-6",children:"Recovery codes"}),(0,t.jsx)("p",{className:"text-sm",children:"Save these codes somewhere safe. Each code can be used once if you lose access to your authenticator. Generating new codes replaces your previous codes."}),(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)(l.F,{submitLabel:"Show recovery codes",onSubmit:async()=>{let e=await n.U.auth.recoveryCodes.query();return 0===e.unused_codes.length?"These codes have already been shown. Use your saved copy or generate new codes.":(y(e.unused_codes),"Store these codes somewhere safe.")},children:null})}),(0,t.jsx)(l.F,{submitLabel:"Generate new recovery codes",onSubmit:async()=>(y((await n.U.auth.generateRecoveryCodes.mutate()).unused_codes),"Store your recovery codes before leaving this page."),children:null}),m.length>0&&(0,t.jsx)("pre",{className:"mt-4 overflow-x-auto rounded bg-slate-100 p-4","aria-label":"Recovery codes",children:m.join("\n")}),(0,t.jsxs)("details",{className:"mt-8 border-t border-slate-200 pt-4",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-sm font-medium",children:"Disable two-factor authentication"}),(0,t.jsx)("p",{className:"text-sm",children:"Your next sign-in will require only your password. Confirm your identity below if requested."}),(0,t.jsx)(l.F,{submitLabel:"Disable two-factor authentication",onSubmit:async()=>(await n.U.auth.disableTotp.mutate(),c(!1),y([]),"Two-factor authentication disabled."),children:null})]})]})]})}e.s(["TwoFactor",0,function(){return(0,t.jsx)(i.f,{title:"Two-factor authentication",description:"Protect your account with an authenticator and recovery codes.",showAccountNavigation:!0,children:(0,t.jsx)(c.f,{children:(0,t.jsx)(d,{})})})}])},93479,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(39689);let a=r.forwardRef(({className:e,type:r,...a},o)=>(0,t.jsx)("input",{type:r,className:(0,n.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));a.displayName="Input",e.s(["f",0,a])},18879,e=>{"use strict";e.s(["f",0,function(e,t){let r=e.get(t);return"string"==typeof r?r:""}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return b}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(90809),s=e.r(43476),i=o._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),p=e.r(91949),m=e.r(73668),g=e.r(9396);function y(t){var r;let n,a,o,[y,b]=(0,i.useOptimistic)(p.IDLE_LINK_STATUS),w=(0,i.useRef)(null),{href:j,as:v,children:S,prefetch:C=null,passHref:N,replace:P,shallow:_,scroll:E,onClick:T,onMouseEnter:U,onTouchStart:L,legacyBehavior:O=!1,onNavigate:R,transitionTypes:A,ref:k,unstable_dynamicOnHover:$,...I}=t;n=S,O&&("string"==typeof n||"number"==typeof n)&&(n=(0,s.jsx)("a",{children:n}));let M=i.default.useContext(l.AppRouterContext),F=!1!==C,B=!1===C?"none":!0===C?"full":"auto",D="none"!==B?"auto"===B?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,q="string"==typeof(r=v||j)?r:(0,u.formatUrl)(r);if(O){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");a=i.default.Children.only(n)}let K=O?a&&"object"==typeof a&&a.ref:k,W,z=i.default.useCallback(e=>(null!==M&&(w.current=(0,p.mountLinkInstance)(e,q,M,D,F,b,W)),()=>{w.current&&((0,p.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,q,M,D,b,W]),V={ref:(0,c.useMergedRef)(z,K),onClick(t){O||"function"!=typeof T||T(t),O&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,a,o,s,i,u="none"){if("u">typeof window){let l,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((l=t.currentTarget.getAttribute("target"))&&"_self"!==l||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{navigate:d}=e.r(32916);d(r,a?"replace":"push",!1===o?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,i,u)}}(t,q,w,P,E,R,A,B)},onMouseEnter(e){O||"function"!=typeof U||U(e),O&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),M&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){O||"function"!=typeof L||L(e),O&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),M&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,d.isAbsoluteUrl)(q)?V.href=q:O&&!N&&("a"!==a.type||"href"in a.props)||(V.href=(0,f.addBasePath)(q)),o=O?i.default.cloneElement(a,V):(0,s.jsx)("a",{...I,...V,children:n}),(0,s.jsx)(x.Provider,{value:y,children:o})}let x=(0,i.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,i.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=o(e,n)),t&&(a.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 r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(90809)._(e.r(98183)),s=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",i=e.hash||"",u=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)),u&&"object"==typeof u&&(u=String(o.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||s.test(n))&&!1!==l?(l="//"+(l||""),a&&"/"!==a[0]&&(a="/"+a)):l||(l=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${a}${c}${i}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return i(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=e.r(18967),a=e.r(52817);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,a.hasBasePath)(r.pathname)}catch(e){return!1}}},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return w},NormalizeError:function(){return x},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return o},execOnce:function(){return s},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return v}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=["CLS","FCP","INP","LCP","TTFB"];function s(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&i.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class x extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class w extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j 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})}},95813,e=>{"use strict";e.s(["f",0,function(e,t="The request failed. Please try again."){return e instanceof Error?e.message:t}])},86441,e=>{"use strict";var t=e.i(43476),r=e.i(22016),n=e.i(73656),a=e.i(71645),o=e.i(92229),s=e.i(18879),i=e.i(11105);function u(){let e=(0,n.S)("/accounts/email/");return e.startsWith("https:")||e.startsWith("http:")?(0,t.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",children:"Confirm your identity on your installation, then retry."}):(0,t.jsxs)("details",{open:!0,className:"mt-6 border-t border-slate-200 pt-4",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-sm font-medium",children:"Confirm your identity"}),(0,t.jsxs)("p",{className:"text-sm",children:["Session expired? ",(0,t.jsx)(r.default,{href:"/accounts/login/",children:"Sign in again"}),"."]}),(0,t.jsx)("p",{className:"text-sm",children:"If a security change asks you to confirm your identity, enter your password or an authenticator code, then retry the change."}),(0,t.jsx)(i.F,{submitLabel:"Confirm password",onSubmit:async e=>(await n.U.auth.reauthenticate.mutate({password:(0,s.f)(e,"password")}),"Identity confirmed. Retry your change."),children:(0,t.jsx)(i.j,{label:"Password",type:"password",name:"password",autoComplete:"current-password",required:!0})}),(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)(i.F,{submitLabel:"Confirm code",onSubmit:async e=>(await n.U.auth.mfaReauthenticate.mutate({code:(0,s.f)(e,"code")}),"Identity confirmed. Retry your change."),children:(0,t.jsx)(i.j,{label:"Authenticator or recovery code",name:"code",autoComplete:"one-time-code",required:!0})})})]})}e.s(["f",0,function({children:e}){let[s,i]=(0,a.useState)(),[l,c]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=new AbortController;return(0,n.m)(e.signal).then(t=>{e.signal.aborted||i(t)}).catch(()=>{e.signal.aborted||c(!0)}),()=>{e.abort()}},[]);let[d,f]=(0,a.useState)(!1);return l?(0,t.jsx)("p",{role:"alert",children:"Unable to load your account. Reload to try again."}):s?s.is_authenticated?(0,t.jsxs)(o.T,{value:()=>{f(!0)},children:[e,d&&(0,t.jsx)(u,{})]}):(0,t.jsxs)("p",{children:["Please ",(0,t.jsx)(r.default,{href:"/accounts/login/",children:"sign in"})," to manage your account."]}):(0,t.jsx)("p",{role:"status",children:"Loading your account…"})}],86441)},11105,76046,92229,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.i(44362);var n=e.i(14778);e.i(73656);let a="Confirm your identity below, then retry your change.";function o(e){return(0,n.f)(e)&&e.data?.code==="UNAUTHORIZED"}function s(e){let t=new URLSearchParams(e).get("next");if(!t||!t.startsWith("/")||t.startsWith("//")||t.includes("\\"))return"/";for(let e of t)if((e.codePointAt(0)??0)<=32)return"/";let r=new URL(t,location.origin);return r.origin===location.origin?`${r.pathname}${r.search}${r.hash}`:"/"}e.s(["k",0,function(){location.assign(s(location.search))},"z",0,a,"$",0,o,"u",0,function(e){return!e.is_authenticated&&e.flows.some(e=>"mfa_authenticate"===e.id)},"N",0,s],76046);var i=e.i(95813);let u=(0,r.createContext)(void 0);function l(){let e=(0,r.useContext)(u);return(t,r)=>e&&o(t)?(e(),a):(0,i.f)(t,r)}e.s(["T",0,u,"G",0,l],92229);var c=e.i(19455),d=e.i(93479);e.s(["j",0,function({label:e,...r}){return(0,t.jsxs)("label",{children:[e,(0,t.jsx)(d.f,{...r})]})},"F",0,function({children:e,submitLabel:n,onSubmit:a}){let o=l(),[s,i]=(0,r.useState)(!1),[u,d]=(0,r.useState)(""),[f,h]=(0,r.useState)("");async function p(e){e.preventDefault();let t=new FormData(e.currentTarget);i(!0),d(""),h("");try{h(await a(t)??"")}catch(e){d(o(e,"Unable to save. Please try again."))}finally{i(!1)}}return(0,t.jsxs)("form",{onSubmit:e=>{p(e)},children:[(0,t.jsxs)("fieldset",{disabled:s,className:"min-w-0 border-0 p-0",children:[e,(0,t.jsx)(c.f,{type:"submit",disabled:s,children:s?"Please wait…":n})]}),u&&(0,t.jsx)("p",{role:"alert",className:"error mt-4",children:u}),f&&(0,t.jsx)("p",{role:"status",className:"notice mt-4",children:f})]})}],11105)},15448,e=>{"use strict";var t=e.i(43476),r=e.i(22016);function n({className:e,...r}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none","aria-hidden":"true",className:e,...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"19",stroke:"#4f46e5",strokeWidth:"12"}),(0,t.jsx)("circle",{cx:"50",cy:"14",r:"6",fill:"#8b5cf6"})]})}e.s(["f",0,function({title:e,description:a,children:o,showAccountNavigation:s=!1}){return(0,t.jsxs)("div",{className:"min-h-screen",children:[(0,t.jsxs)("header",{className:"flex items-center justify-between border-b border-slate-200 bg-white px-6 py-4 sm:px-10",children:[(0,t.jsxs)("a",{href:"/",className:"flex items-center gap-2 text-lg font-semibold text-slate-900",children:[(0,t.jsx)(n,{className:"h-9 w-9"}),"OrgSDK"]}),(0,t.jsx)("a",{href:"/",className:"text-sm",children:"Back to app"})]}),(0,t.jsxs)("main",{className:"mx-auto w-full max-w-xl px-4 py-10 sm:py-16",children:[s&&(0,t.jsxs)("nav",{"aria-label":"Account",className:"mb-6 flex flex-wrap gap-4 text-sm",children:[(0,t.jsx)(r.default,{href:"/accounts/email/",children:"Account"}),(0,t.jsx)(r.default,{href:"/accounts/password/change/",children:"Password"}),(0,t.jsx)(r.default,{href:"/accounts/2fa/",children:"Two-factor authentication"}),(0,t.jsx)(r.default,{href:"/accounts/logout/",children:"Sign out"})]}),(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsx)("h1",{className:"!text-2xl",children:e}),a&&(0,t.jsx)("p",{className:"mb-6 text-sm",children:a}),o]})]})]})}],15448)},32286,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(73656),a=e.i(95813),o=e.i(18879),s=e.i(15448),i=e.i(86441),u=e.i(11105);function l(){let[e,s]=(0,r.useState)(""),[i,l]=(0,r.useState)("");return(0,r.useEffect)(()=>{let e=!0;return n.U.auth.emails.query().then(t=>{e&&s(t.find(e=>e.primary)?.email??"")}).catch(t=>{e&&l((0,a.f)(t,"Unable to load email address."))}),()=>{e=!1}},[]),(0,t.jsxs)(t.Fragment,{children:[i&&(0,t.jsx)("p",{role:"alert",className:"error",children:i}),(0,t.jsx)(u.F,{submitLabel:"Save email address",onSubmit:async e=>(await n.U.auth.changeEmail.mutate({email:(0,o.f)(e,"email")}),s((0,o.f)(e,"email")),"Email address saved."),children:(0,t.jsx)(u.j,{label:"Email address",name:"email",type:"email",defaultValue:e,autoComplete:"email",required:!0},e)})]})}e.s(["ChangePassword",0,function(){return(0,t.jsx)(s.f,{title:"Change password",description:"Choose a strong password you do not use elsewhere.",showAccountNavigation:!0,children:(0,t.jsx)(i.f,{children:(0,t.jsxs)(u.F,{submitLabel:"Change password",onSubmit:async e=>{let t=(0,o.f)(e,"new_password");if(t!==(0,o.f)(e,"confirm_password"))throw Error("The new passwords do not match.");return await n.U.auth.changePassword.mutate({current_password:(0,o.f)(e,"current_password"),new_password:t}),"Your password has been changed."},children:[(0,t.jsx)(u.j,{label:"Current password",name:"current_password",type:"password",autoComplete:"current-password",required:!0}),(0,t.jsx)(u.j,{label:"New password",name:"new_password",type:"password",autoComplete:"new-password",required:!0}),(0,t.jsx)(u.j,{label:"Confirm new password",name:"confirm_password",type:"password",autoComplete:"new-password",required:!0})]})})})},"ManageAccount",0,function(){return(0,t.jsx)(s.f,{title:"Account settings",description:"Manage the email address you use to sign in.",showAccountNavigation:!0,children:(0,t.jsx)(i.f,{children:(0,t.jsx)(l,{})})})}])},93479,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(39689);let a=r.forwardRef(({className:e,type:r,...a},o)=>(0,t.jsx)("input",{type:r,className:(0,n.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));a.displayName="Input",e.s(["f",0,a])},18879,e=>{"use strict";e.s(["f",0,function(e,t){let r=e.get(t);return"string"==typeof r?r:""}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return b}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809),i=e.r(43476),s=a._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),f=e.r(18967),d=e.r(5550),p=e.r(88540),h=e.r(91949),m=e.r(73668),g=e.r(9396);function y(t){var r;let n,o,a,[y,b]=(0,s.useOptimistic)(h.IDLE_LINK_STATUS),j=(0,s.useRef)(null),{href:v,as:w,children:S,prefetch:P=null,passHref:N,replace:C,shallow:E,scroll:_,onClick:T,onMouseEnter:U,onTouchStart:O,legacyBehavior:k=!1,onNavigate:A,transitionTypes:L,ref:R,unstable_dynamicOnHover:$,...I}=t;n=S,k&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let M=s.default.useContext(l.AppRouterContext),F=!1!==P,B=!1===P?"none":!0===P?"full":"auto",D="none"!==B?"auto"===B?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,K="string"==typeof(r=w||v)?r:(0,u.formatUrl)(r);if(k){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");o=s.default.Children.only(n)}let q=k?o&&"object"==typeof o&&o.ref:R,z,W=s.default.useCallback(e=>(null!==M&&(j.current=(0,h.mountLinkInstance)(e,K,M,D,F,b,z)),()=>{j.current&&((0,h.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,h.unmountPrefetchableInstance)(e)}),[F,K,M,D,b,z]),V={ref:(0,c.useMergedRef)(W,q),onClick(t){k||"function"!=typeof T||T(t),k&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,o,a,i,s,u="none"){if("u">typeof window){let l,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((l=t.currentTarget.getAttribute("target"))&&"_self"!==l||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{navigate:f}=e.r(32916);f(r,o?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,s,u)}}(t,K,j,C,_,A,L,B)},onMouseEnter(e){k||"function"!=typeof U||U(e),k&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),M&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){k||"function"!=typeof O||O(e),k&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),M&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,f.isAbsoluteUrl)(K)?V.href=K:k&&!N&&("a"!==o.type||"href"in o.props)||(V.href=(0,d.addBasePath)(K)),a=k?s.default.cloneElement(o,V):(0,i.jsx)("a",{...I,...V,children:n}),(0,i.jsx)(x.Provider,{value:y,children:a})}let x=(0,s.createContext)(h.IDLE_LINK_STATUS),b=()=>(0,s.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(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 r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=e.hash||"",u=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)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==l?(l="//"+(l||""),o&&"/"!==o[0]&&(o="/"+o)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${o}${c}${s}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return s(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),o=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return j},NormalizeError:function(){return x},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return f},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return d},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["CLS","FCP","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&s.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class x extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},95813,e=>{"use strict";e.s(["f",0,function(e,t="The request failed. Please try again."){return e instanceof Error?e.message:t}])},11105,76046,92229,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.i(44362);var n=e.i(14778);e.i(73656);let o="Confirm your identity below, then retry your change.";function a(e){return(0,n.f)(e)&&e.data?.code==="UNAUTHORIZED"}function i(e){let t=new URLSearchParams(e).get("next");if(!t||!t.startsWith("/")||t.startsWith("//")||t.includes("\\"))return"/";for(let e of t)if((e.codePointAt(0)??0)<=32)return"/";let r=new URL(t,location.origin);return r.origin===location.origin?`${r.pathname}${r.search}${r.hash}`:"/"}e.s(["k",0,function(){location.assign(i(location.search))},"z",0,o,"$",0,a,"u",0,function(e){return!e.is_authenticated&&e.flows.some(e=>"mfa_authenticate"===e.id)},"N",0,i],76046);var s=e.i(95813);let u=(0,r.createContext)(void 0);function l(){let e=(0,r.useContext)(u);return(t,r)=>e&&a(t)?(e(),o):(0,s.f)(t,r)}e.s(["T",0,u,"G",0,l],92229);var c=e.i(19455),f=e.i(93479);e.s(["j",0,function({label:e,...r}){return(0,t.jsxs)("label",{children:[e,(0,t.jsx)(f.f,{...r})]})},"F",0,function({children:e,submitLabel:n,onSubmit:o}){let a=l(),[i,s]=(0,r.useState)(!1),[u,f]=(0,r.useState)(""),[d,p]=(0,r.useState)("");async function h(e){e.preventDefault();let t=new FormData(e.currentTarget);s(!0),f(""),p("");try{p(await o(t)??"")}catch(e){f(a(e,"Unable to save. Please try again."))}finally{s(!1)}}return(0,t.jsxs)("form",{onSubmit:e=>{h(e)},children:[(0,t.jsxs)("fieldset",{disabled:i,className:"min-w-0 border-0 p-0",children:[e,(0,t.jsx)(c.f,{type:"submit",disabled:i,children:i?"Please wait…":n})]}),u&&(0,t.jsx)("p",{role:"alert",className:"error mt-4",children:u}),d&&(0,t.jsx)("p",{role:"status",className:"notice mt-4",children:d})]})}],11105)},15448,e=>{"use strict";var t=e.i(43476),r=e.i(22016);function n({className:e,...r}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none","aria-hidden":"true",className:e,...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"19",stroke:"#4f46e5",strokeWidth:"12"}),(0,t.jsx)("circle",{cx:"50",cy:"14",r:"6",fill:"#8b5cf6"})]})}e.s(["f",0,function({title:e,description:o,children:a,showAccountNavigation:i=!1}){return(0,t.jsxs)("div",{className:"min-h-screen",children:[(0,t.jsxs)("header",{className:"flex items-center justify-between border-b border-slate-200 bg-white px-6 py-4 sm:px-10",children:[(0,t.jsxs)("a",{href:"/",className:"flex items-center gap-2 text-lg font-semibold text-slate-900",children:[(0,t.jsx)(n,{className:"h-9 w-9"}),"OrgSDK"]}),(0,t.jsx)("a",{href:"/",className:"text-sm",children:"Back to app"})]}),(0,t.jsxs)("main",{className:"mx-auto w-full max-w-xl px-4 py-10 sm:py-16",children:[i&&(0,t.jsxs)("nav",{"aria-label":"Account",className:"mb-6 flex flex-wrap gap-4 text-sm",children:[(0,t.jsx)(r.default,{href:"/accounts/email/",children:"Account"}),(0,t.jsx)(r.default,{href:"/accounts/password/change/",children:"Password"}),(0,t.jsx)(r.default,{href:"/accounts/2fa/",children:"Two-factor authentication"}),(0,t.jsx)(r.default,{href:"/accounts/logout/",children:"Sign out"})]}),(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsx)("h1",{className:"!text-2xl",children:e}),o&&(0,t.jsx)("p",{className:"mb-6 text-sm",children:o}),a]})]})]})}],15448)},4767,e=>{"use strict";var t=e.i(43476),r=e.i(22016),n=e.i(71645),o=e.i(76046),a=e.i(73656),i=e.i(15448),s=e.i(11105),u=e.i(18879);e.s(["SignIn",0,function({signup:e=!1}){let[l,c]=(0,n.useState)(!1),[f,d]=(0,n.useState)(""),[p,h]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=new AbortController;return(0,a.m)(e.signal).then(()=>a.U.auth.browserSession.query(void 0,{signal:e.signal})).then(t=>{if(!e.signal.aborted){if(t.is_authenticated)return void(0,o.k)();h((0,o.u)(t)),c(!0)}}).catch(()=>{e.signal.aborted||d("Unable to load your session. Reload this page to try again.")}),()=>{e.abort()}},[]),(0,t.jsxs)(i.f,{title:p?"Two-factor authentication":e?"Create your account":"Welcome back",description:p?"Enter a code from your authenticator app or an unused recovery code.":"Your projects, actions and workspace in one place.",children:[f&&(0,t.jsx)("p",{role:"alert",className:"error",children:f}),!l&&!f&&(0,t.jsx)("p",{role:"status",children:"Loading your session…"}),l&&(0,t.jsx)(s.F,{submitLabel:p?"Verify code":e?"Create account":"Sign in",onSubmit:async t=>{let r=await (p?a.U.auth.mfaAuthenticate.mutate({code:(0,u.f)(t,"code")}):e?a.U.auth.signup.mutate({email:(0,u.f)(t,"email"),username:(0,u.f)(t,"username"),password:(0,u.f)(t,"password")}):a.U.auth.login.mutate({email:(0,u.f)(t,"email"),password:(0,u.f)(t,"password")}));if(r.is_authenticated)return(0,o.k)(),"";if((0,o.u)(r))return h(!0),"";throw Error("Unable to sign in. Please try again.")},children:p?(0,t.jsx)(s.j,{label:"Authentication or recovery code",name:"code",autoComplete:"one-time-code",required:!0}):(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)(s.j,{label:"Username",name:"username",autoComplete:"username",required:!0}),(0,t.jsx)(s.j,{label:"Email address",name:"email",type:"email",autoComplete:e?"email":"username",required:!0}),(0,t.jsx)(s.j,{label:"Password",name:"password",type:"password",autoComplete:e?"new-password":"current-password",required:!0})]})}),(0,t.jsxs)("div",{className:"mt-6 flex flex-wrap gap-4 text-sm",children:[(0,t.jsx)(r.default,{href:e?"/accounts/login/":"/accounts/signup/",children:e?"Already have an account? Sign in":"Create an account"}),(0,t.jsx)(r.default,{href:"/accounts/password/reset/",children:"Forgot password?"})]})]})}])},93479,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(39689);let o=r.forwardRef(({className:e,type:r,...o},a)=>(0,t.jsx)("input",{type:r,className:(0,n.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...o}));o.displayName="Input",e.s(["f",0,o])},18879,e=>{"use strict";e.s(["f",0,function(e,t){let r=e.get(t);return"string"==typeof r?r:""}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return b}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809),i=e.r(43476),s=a._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),f=e.r(18967),d=e.r(5550),p=e.r(88540),h=e.r(91949),m=e.r(73668),g=e.r(9396);function y(t){var r;let n,o,a,[y,b]=(0,s.useOptimistic)(h.IDLE_LINK_STATUS),v=(0,s.useRef)(null),{href:j,as:S,children:w,prefetch:P=null,passHref:E,replace:N,shallow:C,scroll:_,onClick:O,onMouseEnter:T,onTouchStart:U,legacyBehavior:k=!1,onNavigate:A,transitionTypes:R,ref:L,unstable_dynamicOnHover:$,...I}=t;n=w,k&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let M=s.default.useContext(l.AppRouterContext),B=!1!==P,F=!1===P?"none":!0===P?"full":"auto",K="none"!==F?"auto"===F?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,D="string"==typeof(r=S||j)?r:(0,u.formatUrl)(r);if(k){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");o=s.default.Children.only(n)}let q=k?o&&"object"==typeof o&&o.ref:L,z,W=s.default.useCallback(e=>(null!==M&&(v.current=(0,h.mountLinkInstance)(e,D,M,K,B,b,z)),()=>{v.current&&((0,h.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,h.unmountPrefetchableInstance)(e)}),[B,D,M,K,b,z]),J={ref:(0,c.useMergedRef)(W,q),onClick(t){k||"function"!=typeof O||O(t),k&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,o,a,i,s,u="none"){if("u">typeof window){let l,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((l=t.currentTarget.getAttribute("target"))&&"_self"!==l||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{navigate:f}=e.r(32916);f(r,o?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,s,u)}}(t,D,v,N,_,A,R,F)},onMouseEnter(e){k||"function"!=typeof T||T(e),k&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),M&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){k||"function"!=typeof U||U(e),k&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),M&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,f.isAbsoluteUrl)(D)?J.href=D:k&&!E&&("a"!==o.type||"href"in o.props)||(J.href=(0,d.addBasePath)(D)),a=k?s.default.cloneElement(o,J):(0,i.jsx)("a",{...I,...J,children:n}),(0,i.jsx)(x.Provider,{value:y,children:a})}let x=(0,s.createContext)(h.IDLE_LINK_STATUS),b=()=>(0,s.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(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 r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=e.hash||"",u=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)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==l?(l="//"+(l||""),o&&"/"!==o[0]&&(o="/"+o)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${o}${c}${s}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return s(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),o=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return x},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return f},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return d},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return S}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["CLS","FCP","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&s.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class x extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(e){return JSON.stringify({message:e.message,stack:e.stack})}},61578,e=>{"use strict";var t=e.i(43476),r=e.i(19455),n=e.i(71645),o=e.i(15448),a=e.i(73656);e.s(["default",0,function(){let[e,i]=(0,n.useState)(""),[s,u]=(0,n.useState)(""),[l,c]=(0,n.useState)("loading"),[f,d]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{(async()=>{if(!/^[a-f0-9]{64}$/.test(location.hash.slice(1)))throw Error("Start this connection from your dashboard.");let{audience:e}=await a.U.studio.discover.query();(i(e),(await a.U.auth.setupStatus.query()).setup_required)?c("setup"):c((await a.U.auth.browserSession.query()).is_authenticated?"ready":"login")})().catch(e=>{u(e instanceof Error?e.message:"Unable to connect.")})},[]),(0,t.jsxs)(o.f,{title:"Approve dashboard access",description:e?"Allow "+e+" to use your signed-in workspace for 30 minutes.":"",children:[s&&(0,t.jsx)("p",{role:"alert",className:"error",children:s}),"setup"===l&&(0,t.jsxs)("p",{children:[(0,t.jsx)("a",{href:"/setup/",target:"_blank",rel:"noreferrer",children:"Set up this installation"}),", then reload this page."]}),"login"===l&&(0,t.jsx)("a",{href:"/accounts/login/?next="+encodeURIComponent(location.pathname+location.hash),children:"Sign in to this installation"}),"ready"===l&&(0,t.jsx)(r.f,{disabled:f,onClick:()=>{d(!0),a.U.studio.approve.mutate({challenge:location.hash.slice(1)}).then(e=>{location.replace(e.audience+"/#code="+encodeURIComponent(e.code))}).catch(e=>{d(!1),u(e instanceof Error?e.message:"Unable to approve.")})},children:"Approve connection"})]})}])},15448,e=>{"use strict";var t=e.i(43476),r=e.i(22016);function n({className:e,...r}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none","aria-hidden":"true",className:e,...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"19",stroke:"#4f46e5",strokeWidth:"12"}),(0,t.jsx)("circle",{cx:"50",cy:"14",r:"6",fill:"#8b5cf6"})]})}e.s(["f",0,function({title:e,description:o,children:a,showAccountNavigation:i=!1}){return(0,t.jsxs)("div",{className:"min-h-screen",children:[(0,t.jsxs)("header",{className:"flex items-center justify-between border-b border-slate-200 bg-white px-6 py-4 sm:px-10",children:[(0,t.jsxs)("a",{href:"/",className:"flex items-center gap-2 text-lg font-semibold text-slate-900",children:[(0,t.jsx)(n,{className:"h-9 w-9"}),"OrgSDK"]}),(0,t.jsx)("a",{href:"/",className:"text-sm",children:"Back to app"})]}),(0,t.jsxs)("main",{className:"mx-auto w-full max-w-xl px-4 py-10 sm:py-16",children:[i&&(0,t.jsxs)("nav",{"aria-label":"Account",className:"mb-6 flex flex-wrap gap-4 text-sm",children:[(0,t.jsx)(r.default,{href:"/accounts/email/",children:"Account"}),(0,t.jsx)(r.default,{href:"/accounts/password/change/",children:"Password"}),(0,t.jsx)(r.default,{href:"/accounts/2fa/",children:"Two-factor authentication"}),(0,t.jsx)(r.default,{href:"/accounts/logout/",children:"Sign out"})]}),(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsx)("h1",{className:"!text-2xl",children:e}),o&&(0,t.jsx)("p",{className:"mb-6 text-sm",children:o}),a]})]})]})}],15448)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return b}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809),i=e.r(43476),s=a._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),f=e.r(18967),d=e.r(5550),h=e.r(88540),p=e.r(91949),m=e.r(73668),g=e.r(9396);function y(t){var r;let n,o,a,[y,b]=(0,s.useOptimistic)(p.IDLE_LINK_STATUS),j=(0,s.useRef)(null),{href:v,as:w,children:S,prefetch:P=null,passHref:N,replace:C,shallow:E,scroll:_,onClick:T,onMouseEnter:O,onTouchStart:R,legacyBehavior:L=!1,onNavigate:U,transitionTypes:k,ref:A,unstable_dynamicOnHover:$,...I}=t;n=S,L&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let M=s.default.useContext(l.AppRouterContext),F=!1!==P,B=!1===P?"none":!0===P?"full":"auto",D="none"!==B?"auto"===B?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,K="string"==typeof(r=w||v)?r:(0,u.formatUrl)(r);if(L){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");o=s.default.Children.only(n)}let W=L?o&&"object"==typeof o&&o.ref:A,z,q=s.default.useCallback(e=>(null!==M&&(j.current=(0,p.mountLinkInstance)(e,K,M,D,F,b,z)),()=>{j.current&&((0,p.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,K,M,D,b,z]),Z={ref:(0,c.useMergedRef)(q,W),onClick(t){L||"function"!=typeof T||T(t),L&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,o,a,i,s,u="none"){if("u">typeof window){let l,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((l=t.currentTarget.getAttribute("target"))&&"_self"!==l||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{navigate:f}=e.r(32916);f(r,o?"replace":"push",!1===a?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,s,u)}}(t,K,j,C,_,U,k,B)},onMouseEnter(e){L||"function"!=typeof O||O(e),L&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),M&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){L||"function"!=typeof R||R(e),L&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),M&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,f.isAbsoluteUrl)(K)?Z.href=K:L&&!N&&("a"!==o.type||"href"in o.props)||(Z.href=(0,d.addBasePath)(K)),a=L?s.default.cloneElement(o,Z):(0,i.jsx)("a",{...I,...Z,children:n}),(0,i.jsx)(x.Provider,{value:y,children:a})}let x=(0,s.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,s.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(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 r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=e.hash||"",u=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)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==l?(l="//"+(l||""),o&&"/"!==o[0]&&(o="/"+o)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${o}${c}${s}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return s(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),o=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return j},NormalizeError:function(){return x},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return f},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return d},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return w}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["CLS","FCP","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&s.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class x extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},95813,e=>{"use strict";e.s(["f",0,function(e,t="The request failed. Please try again."){return e instanceof Error?e.message:t}])},86441,e=>{"use strict";var t=e.i(43476),r=e.i(22016),n=e.i(73656),o=e.i(71645),a=e.i(92229),i=e.i(18879),s=e.i(11105);function u(){let e=(0,n.S)("/accounts/email/");return e.startsWith("https:")||e.startsWith("http:")?(0,t.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",children:"Confirm your identity on your installation, then retry."}):(0,t.jsxs)("details",{open:!0,className:"mt-6 border-t border-slate-200 pt-4",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-sm font-medium",children:"Confirm your identity"}),(0,t.jsxs)("p",{className:"text-sm",children:["Session expired? ",(0,t.jsx)(r.default,{href:"/accounts/login/",children:"Sign in again"}),"."]}),(0,t.jsx)("p",{className:"text-sm",children:"If a security change asks you to confirm your identity, enter your password or an authenticator code, then retry the change."}),(0,t.jsx)(s.F,{submitLabel:"Confirm password",onSubmit:async e=>(await n.U.auth.reauthenticate.mutate({password:(0,i.f)(e,"password")}),"Identity confirmed. Retry your change."),children:(0,t.jsx)(s.j,{label:"Password",type:"password",name:"password",autoComplete:"current-password",required:!0})}),(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)(s.F,{submitLabel:"Confirm code",onSubmit:async e=>(await n.U.auth.mfaReauthenticate.mutate({code:(0,i.f)(e,"code")}),"Identity confirmed. Retry your change."),children:(0,t.jsx)(s.j,{label:"Authenticator or recovery code",name:"code",autoComplete:"one-time-code",required:!0})})})]})}e.s(["f",0,function({children:e}){let[i,s]=(0,o.useState)(),[l,c]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=new AbortController;return(0,n.m)(e.signal).then(t=>{e.signal.aborted||s(t)}).catch(()=>{e.signal.aborted||c(!0)}),()=>{e.abort()}},[]);let[f,d]=(0,o.useState)(!1);return l?(0,t.jsx)("p",{role:"alert",children:"Unable to load your account. Reload to try again."}):i?i.is_authenticated?(0,t.jsxs)(a.T,{value:()=>{d(!0)},children:[e,f&&(0,t.jsx)(u,{})]}):(0,t.jsxs)("p",{children:["Please ",(0,t.jsx)(r.default,{href:"/accounts/login/",children:"sign in"})," to manage your account."]}):(0,t.jsx)("p",{role:"status",children:"Loading your account…"})}],86441)},11105,76046,92229,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.i(44362);var n=e.i(14778);e.i(73656);let o="Confirm your identity below, then retry your change.";function a(e){return(0,n.f)(e)&&e.data?.code==="UNAUTHORIZED"}function i(e){let t=new URLSearchParams(e).get("next");if(!t||!t.startsWith("/")||t.startsWith("//")||t.includes("\\"))return"/";for(let e of t)if((e.codePointAt(0)??0)<=32)return"/";let r=new URL(t,location.origin);return r.origin===location.origin?`${r.pathname}${r.search}${r.hash}`:"/"}e.s(["k",0,function(){location.assign(i(location.search))},"z",0,o,"$",0,a,"u",0,function(e){return!e.is_authenticated&&e.flows.some(e=>"mfa_authenticate"===e.id)},"N",0,i],76046);var s=e.i(95813);let u=(0,r.createContext)(void 0);function l(){let e=(0,r.useContext)(u);return(t,r)=>e&&a(t)?(e(),o):(0,s.f)(t,r)}e.s(["T",0,u,"G",0,l],92229);var c=e.i(19455),f=e.i(93479);e.s(["j",0,function({label:e,...r}){return(0,t.jsxs)("label",{children:[e,(0,t.jsx)(f.f,{...r})]})},"F",0,function({children:e,submitLabel:n,onSubmit:o}){let a=l(),[i,s]=(0,r.useState)(!1),[u,f]=(0,r.useState)(""),[d,h]=(0,r.useState)("");async function p(e){e.preventDefault();let t=new FormData(e.currentTarget);s(!0),f(""),h("");try{h(await o(t)??"")}catch(e){f(a(e,"Unable to save. Please try again."))}finally{s(!1)}}return(0,t.jsxs)("form",{onSubmit:e=>{p(e)},children:[(0,t.jsxs)("fieldset",{disabled:i,className:"min-w-0 border-0 p-0",children:[e,(0,t.jsx)(c.f,{type:"submit",disabled:i,children:i?"Please wait…":n})]}),u&&(0,t.jsx)("p",{role:"alert",className:"error mt-4",children:u}),d&&(0,t.jsx)("p",{role:"status",className:"notice mt-4",children:d})]})}],11105)},15448,e=>{"use strict";var t=e.i(43476),r=e.i(22016);function n({className:e,...r}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none","aria-hidden":"true",className:e,...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"19",stroke:"#4f46e5",strokeWidth:"12"}),(0,t.jsx)("circle",{cx:"50",cy:"14",r:"6",fill:"#8b5cf6"})]})}e.s(["f",0,function({title:e,description:o,children:a,showAccountNavigation:i=!1}){return(0,t.jsxs)("div",{className:"min-h-screen",children:[(0,t.jsxs)("header",{className:"flex items-center justify-between border-b border-slate-200 bg-white px-6 py-4 sm:px-10",children:[(0,t.jsxs)("a",{href:"/",className:"flex items-center gap-2 text-lg font-semibold text-slate-900",children:[(0,t.jsx)(n,{className:"h-9 w-9"}),"OrgSDK"]}),(0,t.jsx)("a",{href:"/",className:"text-sm",children:"Back to app"})]}),(0,t.jsxs)("main",{className:"mx-auto w-full max-w-xl px-4 py-10 sm:py-16",children:[i&&(0,t.jsxs)("nav",{"aria-label":"Account",className:"mb-6 flex flex-wrap gap-4 text-sm",children:[(0,t.jsx)(r.default,{href:"/accounts/email/",children:"Account"}),(0,t.jsx)(r.default,{href:"/accounts/password/change/",children:"Password"}),(0,t.jsx)(r.default,{href:"/accounts/2fa/",children:"Two-factor authentication"}),(0,t.jsx)(r.default,{href:"/accounts/logout/",children:"Sign out"})]}),(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsx)("h1",{className:"!text-2xl",children:e}),o&&(0,t.jsx)("p",{className:"mb-6 text-sm",children:o}),a]})]})]})}],15448)},42498,e=>{"use strict";var t=e.i(43476),r=e.i(76046),n=e.i(73656),o=e.i(15448),a=e.i(86441),i=e.i(11105);e.s(["SignOut",0,function(){return(0,t.jsx)(o.f,{title:"Sign out",description:"Sign out of your account on this browser.",children:(0,t.jsx)(a.f,{children:(0,t.jsx)(i.F,{submitLabel:"Sign out",onSubmit:async()=>{await n.U.auth.logout.mutate();let e=(0,r.N)(location.search);return location.assign("/"===e?"/accounts/login/":e),""},children:null})})})}])},93479,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(39689);let o=r.forwardRef(({className:e,type:r,...o},a)=>(0,t.jsx)("input",{type:r,className:(0,n.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...o}));o.displayName="Input",e.s(["f",0,o])},18879,e=>{"use strict";e.s(["f",0,function(e,t){let r=e.get(t);return"string"==typeof r?r:""}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},useLinkStatus:function(){return b}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(90809),o=e.r(43476),i=s._(e.r(71645)),l=e.r(95057),u=e.r(8372),c=e.r(18581),f=e.r(18967),d=e.r(5550),p=e.r(88540),m=e.r(91949),h=e.r(73668),g=e.r(9396);function x(t){var r;let n,a,s,[x,b]=(0,i.useOptimistic)(m.IDLE_LINK_STATUS),j=(0,i.useRef)(null),{href:w,as:v,children:N,prefetch:S=null,passHref:C,replace:P,shallow:_,scroll:k,onClick:E,onMouseEnter:T,onTouchStart:O,legacyBehavior:L=!1,onNavigate:U,transitionTypes:R,ref:A,unstable_dynamicOnHover:M,...$}=t;n=N,L&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let I=i.default.useContext(u.AppRouterContext),B=!1!==S,F=!1===S?"none":!0===S?"full":"auto",q="none"!==F?"auto"===F?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,D="string"==typeof(r=v||w)?r:(0,l.formatUrl)(r);if(L){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");a=i.default.Children.only(n)}let K=L?a&&"object"==typeof a&&a.ref:A,z,W=i.default.useCallback(e=>(null!==I&&(j.current=(0,m.mountLinkInstance)(e,D,I,q,B,b,z)),()=>{j.current&&((0,m.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,m.unmountPrefetchableInstance)(e)}),[B,D,I,q,b,z]),V={ref:(0,c.useMergedRef)(W,K),onClick(t){L||"function"!=typeof E||E(t),L&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!I||t.defaultPrevented||function(t,r,n,a,s,o,i,l="none"){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{navigate:f}=e.r(32916);f(r,a?"replace":"push",!1===s?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,i,l)}}(t,D,j,P,k,U,R,F)},onMouseEnter(e){L||"function"!=typeof T||T(e),L&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),I&&B&&(0,m.onNavigationIntent)(e.currentTarget,!0===M)},onTouchStart:function(e){L||"function"!=typeof O||O(e),L&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),I&&B&&(0,m.onNavigationIntent)(e.currentTarget,!0===M)}};return(0,f.isAbsoluteUrl)(D)?V.href=D:L&&!C&&("a"!==a.type||"href"in a.props)||(V.href=(0,d.addBasePath)(D)),s=L?i.default.cloneElement(a,V):(0,o.jsx)("a",{...$,...V,children:n}),(0,o.jsx)(y.Provider,{value:x,children:s})}let y=(0,i.createContext)(m.IDLE_LINK_STATUS),b=()=>(0,i.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=s(e,n)),t&&(a.current=s(t,n))},[e,t])}function s(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 r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",i=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${i}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(18967),a=e.r(52817);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return j},NormalizeError:function(){return y},PageNotFoundError:function(){return b},SP:function(){return h},ST:function(){return g},WEB_VITALS:function(){return s},execOnce:function(){return o},getDisplayName:function(){return f},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return d},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return v}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=["CLS","FCP","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&i.test(e)};function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let h="u">typeof performance,g=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class y extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w 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})}},95813,e=>{"use strict";e.s(["f",0,function(e,t="The request failed. Please try again."){return e instanceof Error?e.message:t}])},87397,e=>{"use strict";var t=e.i(43476),r=e.i(22016),n=e.i(71645),a=e.i(73656),s=e.i(95813),o=e.i(15448),i=e.i(19455),l=e.i(93479),u=e.i(18879);e.s(["default",0,function(){let[e,c]=(0,n.useState)(),[f,d]=(0,n.useState)(""),[p,m]=(0,n.useState)(!1),[h,g]=(0,n.useState)(!1),[x,y]=(0,n.useState)(0);return(0,n.useEffect)(()=>{let e=new AbortController;return a.U.auth.setupStatus.query(void 0,{signal:e.signal}).then(t=>{e.signal.aborted||c(t)}).catch(t=>{e.signal.aborted||d((0,s.f)(t))}),()=>{e.abort()}},[x]),(0,t.jsxs)(o.f,{title:"Set up your workspace",description:"Create your local administrator and first project. Configure a runner and connect your external client after signing in.",children:[h&&(0,t.jsxs)("div",{role:"status",children:[(0,t.jsx)("p",{children:"Your workspace is ready. Sign in to get started."}),(0,t.jsx)(i.f,{asChild:!0,children:(0,t.jsx)(r.default,{href:"/accounts/login/",children:"Sign in"})})]}),!h&&e?.setup_required===!1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{children:"This server is already set up."}),(0,t.jsx)(i.f,{asChild:!0,children:(0,t.jsx)(r.default,{href:"/accounts/login/",children:"Sign in"})})]}),!h&&e?.setup_required&&(0,t.jsx)("form",{className:"space-y-4",onSubmit:t=>{t.preventDefault();let r=new FormData(t.currentTarget);m(!0),d(""),(async()=>{try{let t=(0,u.f)(r,"password1");if(t!==(0,u.f)(r,"password2"))throw Error("The passwords do not match.");await a.U.auth.setup.mutate({domain:e.hostname,workspace_name:(0,u.f)(r,"workspace_name"),username:(0,u.f)(r,"username"),email:(0,u.f)(r,"email"),password1:t,password2:(0,u.f)(r,"password2"),project_name:(0,u.f)(r,"project_name")}),g(!0)}catch(e){d((0,s.f)(e))}finally{m(!1)}})()},children:(0,t.jsxs)("fieldset",{disabled:p,className:"space-y-4 border-0 p-0",children:[(0,t.jsxs)("label",{className:"block text-sm font-medium",children:["Workspace name",(0,t.jsx)(l.f,{name:"workspace_name",autoComplete:"organization",required:!0,maxLength:100})]}),(0,t.jsxs)("label",{className:"block text-sm font-medium",children:["Username",(0,t.jsx)(l.f,{name:"username",autoComplete:"username",required:!0,maxLength:150})]}),(0,t.jsxs)("label",{className:"block text-sm font-medium",children:["Email",(0,t.jsx)(l.f,{name:"email",type:"email",autoComplete:"email",required:!0})]}),(0,t.jsx)("p",{className:"small",children:"Use this email to sign in. No email verification is needed."}),(0,t.jsxs)("label",{className:"block text-sm font-medium",children:["Password",(0,t.jsx)(l.f,{name:"password1",type:"password",autoComplete:"new-password",required:!0})]}),(0,t.jsxs)("label",{className:"block text-sm font-medium",children:["Confirm password",(0,t.jsx)(l.f,{name:"password2",type:"password",autoComplete:"new-password",required:!0})]}),(0,t.jsxs)("label",{className:"block text-sm font-medium",children:["First project name",(0,t.jsx)(l.f,{name:"project_name",defaultValue:"My project",maxLength:100})]}),(0,t.jsx)(i.f,{type:"submit",children:p?"Creating workspace…":"Create workspace"})]})}),!h&&!e&&!f&&(0,t.jsx)("p",{role:"status",children:"Checking this installation…"}),f&&(0,t.jsxs)("div",{role:"alert",children:[(0,t.jsx)("p",{className:"error",children:f}),!e&&(0,t.jsx)(i.f,{variant:"outline",onClick:()=>{d(""),y(e=>e+1)},children:"Try again"})]})]})}])},15448,e=>{"use strict";var t=e.i(43476),r=e.i(22016);function n({className:e,...r}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none","aria-hidden":"true",className:e,...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"19",stroke:"#4f46e5",strokeWidth:"12"}),(0,t.jsx)("circle",{cx:"50",cy:"14",r:"6",fill:"#8b5cf6"})]})}e.s(["f",0,function({title:e,description:a,children:s,showAccountNavigation:o=!1}){return(0,t.jsxs)("div",{className:"min-h-screen",children:[(0,t.jsxs)("header",{className:"flex items-center justify-between border-b border-slate-200 bg-white px-6 py-4 sm:px-10",children:[(0,t.jsxs)("a",{href:"/",className:"flex items-center gap-2 text-lg font-semibold text-slate-900",children:[(0,t.jsx)(n,{className:"h-9 w-9"}),"OrgSDK"]}),(0,t.jsx)("a",{href:"/",className:"text-sm",children:"Back to app"})]}),(0,t.jsxs)("main",{className:"mx-auto w-full max-w-xl px-4 py-10 sm:py-16",children:[o&&(0,t.jsxs)("nav",{"aria-label":"Account",className:"mb-6 flex flex-wrap gap-4 text-sm",children:[(0,t.jsx)(r.default,{href:"/accounts/email/",children:"Account"}),(0,t.jsx)(r.default,{href:"/accounts/password/change/",children:"Password"}),(0,t.jsx)(r.default,{href:"/accounts/2fa/",children:"Two-factor authentication"}),(0,t.jsx)(r.default,{href:"/accounts/logout/",children:"Sign out"})]}),(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsx)("h1",{className:"!text-2xl",children:e}),a&&(0,t.jsx)("p",{className:"mb-6 text-sm",children:a}),s]})]})]})}],15448)},93479,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(39689);let a=r.forwardRef(({className:e,type:r,...a},s)=>(0,t.jsx)("input",{type:r,className:(0,n.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...a}));a.displayName="Input",e.s(["f",0,a])},18879,e=>{"use strict";e.s(["f",0,function(e,t){let r=e.get(t);return"string"==typeof r?r:""}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return m},useLinkStatus:function(){return v}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=e.r(90809),i=e.r(43476),a=u._(e.r(71645)),l=e.r(95057),c=e.r(8372),s=e.r(18581),f=e.r(18967),p=e.r(5550),d=e.r(88540),h=e.r(91949),g=e.r(73668),y=e.r(9396);function m(t){var r;let n,o,u,[m,v]=(0,a.useOptimistic)(h.IDLE_LINK_STATUS),P=(0,a.useRef)(null),{href:S,as:E,children:C,prefetch:_=null,passHref:j,replace:O,shallow:T,scroll:x,onClick:L,onMouseEnter:N,onTouchStart:R,legacyBehavior:w=!1,onNavigate:$,transitionTypes:M,ref:U,unstable_dynamicOnHover:A,...I}=t;n=C,w&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let k=a.default.useContext(c.AppRouterContext),B=!1!==_,F=!1===_?"none":!0===_?"full":"auto",K="none"!==F?"auto"===F?y.FetchStrategy.PPR:y.FetchStrategy.Full:y.FetchStrategy.PPR,D="string"==typeof(r=E||S)?r:(0,l.formatUrl)(r);if(w){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");o=a.default.Children.only(n)}let z=w?o&&"object"==typeof o&&o.ref:U,W,q=a.default.useCallback(e=>(null!==k&&(P.current=(0,h.mountLinkInstance)(e,D,k,K,B,v,W)),()=>{P.current&&((0,h.unmountLinkForCurrentNavigation)(P.current),P.current=null),(0,h.unmountPrefetchableInstance)(e)}),[B,D,k,K,v,W]),J={ref:(0,s.useMergedRef)(q,z),onClick(t){w||"function"!=typeof L||L(t),w&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!k||t.defaultPrevented||function(t,r,n,o,u,i,a,l="none"){if("u">typeof window){let c,{nodeName:s}=t.currentTarget;if("A"===s.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{navigate:f}=e.r(32916);f(r,o?"replace":"push",!1===u?d.ScrollBehavior.NoScroll:d.ScrollBehavior.Default,n.current,a,l)}}(t,D,P,O,x,$,M,F)},onMouseEnter(e){w||"function"!=typeof N||N(e),w&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),k&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===A)},onTouchStart:function(e){w||"function"!=typeof R||R(e),w&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),k&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===A)}};return(0,f.isAbsoluteUrl)(D)?J.href=D:w&&!j&&("a"!==o.type||"href"in o.props)||(J.href=(0,p.addBasePath)(D)),u=w?a.default.cloneElement(o,J):(0,i.jsx)("a",{...I,...J,children:n}),(0,i.jsx)(b.Provider,{value:m,children:u})}let b=(0,a.createContext)(h.IDLE_LINK_STATUS),v=()=>(0,a.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=u(e,n)),t&&(o.current=u(t,n))},[e,t])}function u(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 r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",a=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(u.urlQueryToSearchParams(l)));let s=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),a&&"#"!==a[0]&&(a="#"+a),s&&"?"!==s[0]&&(s="?"+s),o=o.replace(/[?#]/g,encodeURIComponent),s=s.replace("#","%23"),`${n}${c}${o}${s}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return a(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return u}});let n=e.r(18967),o=e.r(52817);function u(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return m},MiddlewareNotFoundError:function(){return S},MissingStaticPage:function(){return P},NormalizeError:function(){return b},PageNotFoundError:function(){return v},SP:function(){return g},ST:function(){return y},WEB_VITALS:function(){return u},execOnce:function(){return i},getDisplayName:function(){return f},getLocationOrigin:function(){return c},getURL:function(){return s},isAbsoluteUrl:function(){return l},isResSent:function(){return p},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return E}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=["CLS","FCP","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&a.test(e)};function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function s(){let{href:e}=window.location,t=c();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function d(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&p(r))return n;if(!n)throw Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let g="u">typeof performance,y=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class b extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class P extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class S extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}}]);