https://www.ory.com/_next/static/chunks/428-287e1fc03b565353.js?dpl=dpl_48jKkk3zR51hnPWDTYJim6fxWTKo
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[428],{9790:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return o}});let o=(0,n(78784).createAsyncLocalStorage)()},10511:(e,t,n)=>{n.d(t,{F:()=>a});var o=n(52679);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,r=o.$,a=(e,t)=>n=>{var o;if((null==t?void 0:t.variants)==null)return r(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:l}=t,s=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],o=null==l?void 0:l[e];if(null===t)return null;let r=i(t)||i(o);return a[e][r]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,o]=t;return void 0===o||(e[n]=o),e},{});return r(e,s,null==t||null==(o=t.compoundVariants)?void 0:o.reduce((e,t)=>{let{class:n,className:o,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...u}[t]):({...l,...u})[t]===n})?[...e,n,o]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},11767:(e,t,n)=>{n.d(t,{A:()=>o});var o=(0,n(63210).A)("outline","menu","IconMenu",[["path",{d:"M4 8l16 0",key:"svg-0"}],["path",{d:"M4 16l16 0",key:"svg-1"}]])},33312:(e,t,n)=>{n.d(t,{y:()=>i});let o=e=>{let t,n=new Set,o=(e,o)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=o?o:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,r={setState:o,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(o,i,r);return r},i=e=>e?o(e):o},36575:(e,t,n)=>{n.d(t,{default:()=>a});var o=n(14540),i=n(68256);let r=(0,i.lazy)(()=>Promise.all([n.e(3569),n.e(2686),n.e(83),n.e(6900),n.e(9435),n.e(9993),n.e(1763)]).then(n.bind(n,96190)));function a(e){return(0,o.jsx)(i.Suspense,{fallback:null,children:(0,o.jsx)(r,{...e})})}},38478:(e,t,n)=>{function o(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return o}}),n(14540),n(68587),n(91605),n(34636)},47667:(e,t,n)=>{function o(e){let{reason:t,children:n}=e;return n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return o}}),n(94871)},64723:(e,t,n)=>{n.d(t,{r:()=>T});var o=n(72451);function i(e,t){var n,o;if(null==e)return e;return{challenge:e.challenge,client:(n=e.client,null==n?n:{access_token_strategy:null==n.access_token_strategy?void 0:n.access_token_strategy,allowed_cors_origins:null==n.allowed_cors_origins?void 0:n.allowed_cors_origins,audience:null==n.audience?void 0:n.audience,authorization_code_grant_access_token_lifespan:null==n.authorization_code_grant_access_token_lifespan?void 0:n.authorization_code_grant_access_token_lifespan,authorization_code_grant_id_token_lifespan:null==n.authorization_code_grant_id_token_lifespan?void 0:n.authorization_code_grant_id_token_lifespan,authorization_code_grant_refresh_token_lifespan:null==n.authorization_code_grant_refresh_token_lifespan?void 0:n.authorization_code_grant_refresh_token_lifespan,backchannel_logout_session_required:null==n.backchannel_logout_session_required?void 0:n.backchannel_logout_session_required,backchannel_logout_uri:null==n.backchannel_logout_uri?void 0:n.backchannel_logout_uri,client_credentials_grant_access_token_lifespan:null==n.client_credentials_grant_access_token_lifespan?void 0:n.client_credentials_grant_access_token_lifespan,client_id:null==n.client_id?void 0:n.client_id,client_name:null==n.client_name?void 0:n.client_name,client_secret:null==n.client_secret?void 0:n.client_secret,client_secret_expires_at:null==n.client_secret_expires_at?void 0:n.client_secret_expires_at,client_uri:null==n.client_uri?void 0:n.client_uri,contacts:null==n.contacts?void 0:n.contacts,created_at:null==n.created_at?void 0:new Date(n.created_at),frontchannel_logout_session_required:null==n.frontchannel_logout_session_required?void 0:n.frontchannel_logout_session_required,frontchannel_logout_uri:null==n.frontchannel_logout_uri?void 0:n.frontchannel_logout_uri,grant_types:null==n.grant_types?void 0:n.grant_types,implicit_grant_access_token_lifespan:null==n.implicit_grant_access_token_lifespan?void 0:n.implicit_grant_access_token_lifespan,impl
1icit_grant_id_token_lifespan:null==n.implicit_grant_id_token_lifespan?void 0:n.implicit_grant_id_token_lifespan,jwks:null==n.jwks?void 0:n.jwks,jwks_uri:null==n.jwks_uri?void 0:n.jwks_uri,jwt_bearer_grant_access_token_lifespan:null==n.jwt_bearer_grant_access_token_lifespan?void 0:n.jwt_bearer_grant_access_token_lifespan,logo_uri:null==n.logo_uri?void 0:n.logo_uri,metadata:null==n.metadata?void 0:n.metadata,owner:null==n.owner?void 0:n.owner,policy_uri:null==n.policy_uri?void 0:n.policy_uri,post_logout_redirect_uris:null==n.post_logout_redirect_uris?void 0:n.post_logout_redirect_uris,redirect_uris:null==n.redirect_uris?void 0:n.redirect_uris,refresh_token_grant_access_token_lifespan:null==n.refresh_token_grant_access_token_lifespan?void 0:n.refresh_token_grant_access_token_lifespan,refresh_token_grant_id_token_lifespan:null==n.refresh_token_grant_id_token_lifespan?void 0:n.refresh_token_grant_id_token_lifespan,refresh_token_grant_refresh_token_lifespan:null==n.refresh_token_grant_refresh_token_lifespan?void 0:n.refresh_token_grant_refresh_token_lifespan,registration_access_token:null==n.registration_access_token?void 0:n.registration_access_token,registration_client_uri:null==n.registration_client_uri?void 0:n.registration_client_uri,request_object_signing_alg:null==n.request_object_signing_alg?void 0:n.request_object_signing_alg,request_uris:null==n.request_uris?void 0:n.request_uris,response_types:null==n.response_types?void 0:n.response_types,scope:null==n.scope?void 0:n.scope,sector_identifier_uri:null==n.sector_identifier_uri?void 0:n.sector_identifier_uri,skip_consent:null==n.skip_consent?void 0:n.skip_consent,skip_logout_consent:null==n.skip_logout_consent?void 0:n.skip_logout_consent,subject_type:null==n.subject_type?void 0:n.subject_type,token_endpoint_auth_method:null==n.token_endpoint_auth_method?void 0:n.token_endpoint_auth_method,token_endpoint_auth_signing_alg:null==n.token_endpoint_auth_signing_alg?void 0:n.token_endpoint_auth_signing_alg,tos_uri:null==n.tos_uri?void 0:n.tos_uri,updated_at:null==n.updated_at?void 0:new Date(n.updated_at),userinfo_signed_response_alg:null==n.userinfo_signed_response_alg?void 0:n.userinfo_signed_response_alg}),oidc_context:null==e.oidc_context?void 0:(o=e.oidc_context,null==o?o:{acr_values:null==o.acr_values?void 0:o.acr_values,display:null==o.display?void 0:o.display,id_token_hint_claims:null==o.id_token_hint_claims?void 0:o.id_token_hint_claims,login_hint:null==o.login_hint?void 0:o.login_hint,ui_locales:null==o.ui_locales?void 0:o.ui_locales}),request_url:e.request_url,requested_access_token_audience:null==e.requested_access_token_audience?void 0:e.requested_access_token_audience,requested_scope:null==e.requested_scope?void 0:e.requested_scope,session_id:null==e.session_id?void 0:e.session_id,skip:e.skip,subject:e.subject}}function r(e){var t;return null==(t=e)?t:{context:null==t.context?void 0:t.context,id:t.id,text:t.text,type:t.type}}function a(e){var t,n=e;if(null==n)return n;return{attributes:function(e,t){if(null==e)return e;switch(e.node_type){case"a":return Object.assign({},null==e?e:{href:e.href,id:e.id,node_type:e.node_type,title:r(e.title)},{node_type:"a"});case"div":return Object.assign({},null==e?e:{_class:null==e.class?void 0:e.class,data:null==e.data?void 0:e.data,id:e.id,node_type:e.node_type},{node_type:"div"});case"img":return Object.assign({},null==e?e:{height:e.height,id:e.id,node_type:e.node_type,src:e.src,width:e.width},{node_type:"img"});case"input":return Object.assign({},null==e?e:{autocomplete:null==e.autocomplete?void 0:e.autocomplete,disabled:e.disabled,label:null==e.label?void 0:r(e.label),maxlength:null==e.maxlength?void 0:e.maxlength,name:e.name,node_type:e.node_type,onclick:null==e.onclick?void 0:e.onclick,onclickTrigger:null==e.onclickTrigger?void 0:e.onclickTrigger,onload:null==e.onload?void 0:e.onload,onloadTrigger:null==e.onloadTrigger?void 0:e.onloadTrigger,pattern:null==e.pattern?void 0:e.pattern,required:null==e.required?void 0:e.required,type:e.type,value:null==e.value?void 0:e.value},{node_type:"input"});case"script":return Object.assign({},null==e?e:{async:e.async,crossorigin:e.crossorigin,id:e.id,integrity:e.integrity,node_type:e.node_type,nonce:e.nonce,referrerpolicy:e.referrerpolicy,src:e.src,type:e.type},{node_type:"script"});case"text":return Object.assign({},null==e?e:{id:e.id,node_type:e.node_type,text:r(e.text)},{node_type:"text"});default:throw Error("No variant of UiNodeAttributes exists with 'node_type=".concat(e.node_type,"'"))}}(n.attributes,0),group:n.group,messages:n.messages.map(r),meta:(t=n.meta,null==t?t:{label:null==t.label?void 0:r(t.label)}),type:n.type}}function l(e){var t;return null==(t=e)?t:{action:t.action,messages:null==t.messages?void 0:t.messages.map(r),method:t.method,nodes:t.nodes.map(a)}}function s(e,t){var n;if(null==e)return e;return{active:null==e.active?void 0:e.active,created_at:null==e.created_at?void 0:new Date(e.created_at),expires_at:new Date(e.expires_at),id:e.id,issued_at:new Date(e.issued_at),oauth2_login_challenge:null==e.oauth2_login_challenge?void 0:e.oauth2_login_challenge,oauth2_login_request:null==e.oauth2_login_request?void 0:i(e.oauth2_login_request,!1),organization_id:null==e.organization_id?void 0:e.organization_id,refresh:null==e.refresh?void 0:e.refresh,request_url:e.request_url,requested_aal:null==e.requested_aal?void 0:(n=e.requested_aal,n),return_to:null==e.return_to?void 0:e.return_to,session_token_exchange_code:null==e.session_token_exchange_code?void 0:e.session_token_exchange_code,state:e.state,transient_payload:null==e.transient_payload?void 0:e.transient_payload,type:e.type,ui:l(e.ui),updated_at:null==e.updated_at?void 0:new Date(e.updated_at)}}function u(e){return function(e,t){if(null==e)return e;switch(e.action){case"redirect_browser_to":return Object.assign({},null==e?e:{action:e.action,redirect_browser_to:e.redirect_browser_to},{action:"redirect_browser_to"});case"set_ory_session_token":return Object.assign({},null==e?e:{action:e.action,ory_session_token:e.ory_session_token},{action:"set_ory_session_token"});case"show_recovery_ui":return Object.assign({},function(e,t){var n;if(null==e)return e;return{action:e.action,flow:(n=e.flow,null==n?n:{id:n.id,url:null==n.url?void 0:n.url})}}(e,0),{action:"show_recovery_ui"});case"show_settings_ui":return Object.assign({},function(e,t){var n;if(null==e)return e;return{action:e.action,flow:(n=e.flow,null==n?n:{id:n.id,url:null==n.url?void 0:n.url})}}(e,0),{action:"show_settings_ui"});case"show_verification_ui":return Object.assign({},function(e,t){var n;if(null==e)return e;return{action:e.action,flow:(n=e.flow,null==n?n:{id:n.id,url:null==n.url?void 0:n.url,verifiable_address:n.verifiable_address})}}(e,0),{action:"show_verification_ui"});default:throw Error("No variant of ContinueWith exists with 'action=".concat(e.action,"'"))}}(e,0)}function d(e,t){return null==e?e:{active:null==e.active?void 0:e.active,continue_with:null==e.continue_with?void 0:e.continue_with.map(u),expires_at:new Date(e.expires_at),id:e.id,issued_at:new Date(e.issued_at),request_url:e.request_url,return_to:null==e.return_to?void 0:e.return_to,state:e.state,transient_payload:null==e.transient_payload?void 0:e.transient_payload,type:e.type,ui:l(e.ui)}}function c(e,t){return null==e?e:{active:null==e.active?void 0:e.active,expires_at:new Date(e.expires_at),id:e.id,issued_at:new Date(e.issued_at),oauth2_login_challenge:null==e.oauth2_login_challenge?void 0:e.oauth2_login_challenge,oauth2_login_request:null==e.oauth2_login_request?void 0:i(e.oauth2_login_request,!1),organization_id:null==e.organization_id?void 0:e.organization_id,request_url:e.request_url,return_to:null==e.return_to?void 0:e.return_to,session_token_exchange_code:null==e.session_token_exchange_code?void 0:e.session_token_exchange_code,state:e.state,transient_payload:null==e.transient_payload?void 0:e.transient_payload,type:e.type,ui:l(e.ui)}}function _(e){var t;return null==(t=e)?t:{created_at:null==t.created_at?void 0:new Date(t.created_at),id:null==t.id?void 0:t.id,status:t.status,updated_at:null==t.updated_at?void 0:new Date(t.updated_at),value:t.value,verified:t.verified,verified_at:null==t.verified_at?void 0:new Date(t.verified_at),via:t.via}}function h(e){var t;return null==(t=e)?t:{created_at:null==t.created_at?void 0:new Date(t.created_at),id:t.id,updated_at:null==t.updated_at?void 0:new Date(t.updated_at),value:t.value,via:t.via}}function v(e){var t;return null==(t=e)?t:{config:null==t.config?void 0:t.config,created_at:null==t.created_at?void 0:new Date(t.created_at),identifiers:null==t.identifiers?void 0:t.identifiers,type:null==t.type?void 0:t.type,updated_at:null==t.updated_at?void 0:new Date(t.updated_at),version:null==t.ver
1sion?void 0:t.version}}function f(e,t){return null==e?e:{created_at:null==e.created_at?void 0:new Date(e.created_at),credentials:null==e.credentials?void 0:(0,o.LG)(e.credentials,v),id:e.id,metadata_admin:null==e.metadata_admin?void 0:e.metadata_admin,metadata_public:null==e.metadata_public?void 0:e.metadata_public,organization_id:null==e.organization_id?void 0:e.organization_id,recovery_addresses:null==e.recovery_addresses?void 0:e.recovery_addresses.map(h),schema_id:e.schema_id,schema_url:e.schema_url,state:null==e.state?void 0:e.state,state_changed_at:null==e.state_changed_at?void 0:new Date(e.state_changed_at),traits:e.traits,updated_at:null==e.updated_at?void 0:new Date(e.updated_at),verifiable_addresses:null==e.verifiable_addresses?void 0:e.verifiable_addresses.map(_)}}function p(e,t){return null==e?e:{active:null==e.active?void 0:e.active,continue_with:null==e.continue_with?void 0:e.continue_with.map(u),expires_at:new Date(e.expires_at),id:e.id,identity:f(e.identity,!1),issued_at:new Date(e.issued_at),request_url:e.request_url,return_to:null==e.return_to?void 0:e.return_to,state:e.state,transient_payload:null==e.transient_payload?void 0:e.transient_payload,type:e.type,ui:l(e.ui)}}function g(e,t){return null==e?e:{active:null==e.active?void 0:e.active,expires_at:null==e.expires_at?void 0:new Date(e.expires_at),id:e.id,issued_at:null==e.issued_at?void 0:new Date(e.issued_at),request_url:null==e.request_url?void 0:e.request_url,return_to:null==e.return_to?void 0:e.return_to,state:e.state,transient_payload:null==e.transient_payload?void 0:e.transient_payload,type:e.type,ui:l(e.ui)}}function w(e){var t;return null==(t=e)?t:{client_id:null==t.client_id?void 0:t.client_id,config_url:null==t.config_url?void 0:t.config_url,domain_hint:null==t.domain_hint?void 0:t.domain_hint,fields:null==t.fields?void 0:t.fields,login_hint:null==t.login_hint?void 0:t.login_hint,nonce:null==t.nonce?void 0:t.nonce,parameters:null==t.parameters?void 0:t.parameters}}function y(e){var t;return null==(t=e)?t:{id:t.id,ip_address:null==t.ip_address?void 0:t.ip_address,location:null==t.location?void 0:t.location,user_agent:null==t.user_agent?void 0:t.user_agent}}function m(e){var t,n=e;if(null==n)return n;return{aal:null==n.aal?void 0:(t=n.aal,t),completed_at:null==n.completed_at?void 0:new Date(n.completed_at),method:null==n.method?void 0:n.method,organization:null==n.organization?void 0:n.organization,provider:null==n.provider?void 0:n.provider}}function k(e){var t,n=e;if(null==n)return n;return{active:null==n.active?void 0:n.active,authenticated_at:null==n.authenticated_at?void 0:new Date(n.authenticated_at),authentication_methods:null==n.authentication_methods?void 0:n.authentication_methods.map(m),authenticator_assurance_level:null==n.authenticator_assurance_level?void 0:(t=n.authenticator_assurance_level,t),devices:null==n.devices?void 0:n.devices.map(y),expires_at:null==n.expires_at?void 0:new Date(n.expires_at),id:n.id,identity:null==n.identity?void 0:f(n.identity,!1),issued_at:null==n.issued_at?void 0:new Date(n.issued_at),tokenized:null==n.tokenized?void 0:n.tokenized}}function b(e,t){return null==e?e:{continue_with:null==e.continue_with?void 0:e.continue_with.map(u),session:k(e.session),session_token:null==e.session_token?void 0:e.session_token}}var R=function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function l(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((o=o.apply(e,t||[])).next())})};class T extends o.yi{createBrowserLoginFlowRaw(e,t){return R(this,void 0,void 0,function*(){let n={};null!=e.refresh&&(n.refresh=e.refresh),null!=e.aal&&(n.aal=e.aal),null!=e.returnTo&&(n.return_to=e.returnTo),null!=e.loginChallenge&&(n.login_challenge=e.loginChallenge),null!=e.organization&&(n.organization=e.organization),null!=e.via&&(n.via=e.via);let i={};null!=e.cookie&&(i.Cookie=String(e.cookie));let r=yield this.request({path:"/self-service/login/browser",method:"GET",headers:i,query:n},t);return new o.ko(r,e=>s(e,!1))})}createBrowserLoginFlow(){return R(this,arguments,void 0,function*(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=yield this.createBrowserLoginFlowRaw(e,t);
1return yield n.value()})}createBrowserLogoutFlowRaw(e,t){return R(this,void 0,void 0,function*(){let n={};null!=e.returnTo&&(n.return_to=e.returnTo);let i={};null!=e.cookie&&(i.cookie=String(e.cookie));let r=yield this.request({path:"/self-service/logout/browser",method:"GET",headers:i,query:n},t);return new o.ko(r,e=>{var t;return null==(t=e)?t:{logout_token:t.logout_token,logout_url:t.logout_url}})})}createBrowserLogoutFlow(){return R(this,arguments,void 0,function*(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=yield this.createBrowserLogoutFlowRaw(e,t);return yield n.value()})}createBrowserRecoveryFlowRaw(e,t){return R(this,void 0,void 0,function*(){let n={};null!=e.returnTo&&(n.return_to=e.returnTo);let i=yield this.request({path:"/self-service/recovery/browser",method:"GET",headers:{},query:n},t);return new o.ko(i,e=>d(e,!1))})}createBrowserRecoveryFlow(){return R(this,arguments,void 0,function*(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=yield this.createBrowserRecoveryFlowRaw(e,t);return yield n.value()})}createBrowserRegistrationFlowRaw(e,t){return R(this,void 0,void 0,function*(){let n={};null!=e.returnTo&&(n.return_to=e.returnTo),null!=e.loginChallenge&&(n.login_challenge=e.loginChallenge),null!=e.afterVerificationReturnTo&&(n.after_verification_return_to=e.afterVerificationReturnTo),null!=e.organization&&(n.organization=e.organization);let i=yield this.request({path:"/self-service/registration/browser",method:"GET",headers:{},query:n},t);return new o.ko(i,e=>c(e,!1))})}createBrowserRegistrationFlow(){return R(this,arguments,void 0,function*(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=yield this.createBrowserRegistrationFlowRaw(e,t);return yield n.value()})}createBrowserSettingsFlowRaw(e,t){return R(this,void 0,void 0,function*(){let n={};null!=e.returnTo&&(n.return_to=e.returnTo);let i={};null!=e.cookie&&(i.Cookie=String(e.cookie));let r=yield this.request({path:"/self-service/settings/browser",method:"GET",headers:i,query:n},t);return new o.ko(r,e=>p(e,!1))})}createBrowserSettingsFlow(){return R(this,arguments,void 0,function*(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=yield this.createBrowserSettingsFlowRaw(e,t);return yield n.value()})}createBrowserVerificationFlowRaw(e,t){return R(this,void 0,void 0,function*(){let n={};null!=e.returnTo&&(n.return_to=e.returnTo);let i=yield this.request({path:"/self-service/verification/browser",method:"GET",headers:{},query:n},t);return new o.ko(i,e=>g(e,!1))})}createBrowserVerificationFlow(){return R(this,arguments,void 0,function*(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=yield this.createBrowserVerificationFlowRaw(e,t);return yield n.value()})}createFedcmFlowRaw(e){return R(this,void 0,void 0,function*(){let t=yield this.request({path:"/self-service/fed-cm/parameters",method:"GET",headers:{},query:{}},e);return new o.ko(t,e=>{var t;return null==(t=e)?t:{csrf_token:null==t.csrf_token?void 0:t.csrf_token,providers:null==t.providers?void 0:t.providers.map(w)}})})}createFedcmFlow(e){return R(this,void 0,void 0,function*(){let t=yield this.createFedcmFlowRaw(e);return yield t.value()})}createNativeLoginFlowRaw(e,t){return R(this,void 0,void 0,function*(){let n={};null!=e.refresh&&(n.refresh=e.refresh),null!=e.aal&&(n.aal=e.aal),null!=e.returnSessionTokenExchangeCode&&(n.return_session_token_exchange_code=e.returnSessionTokenExchangeCode),null!=e.returnTo&&(n.return_to=e.returnTo),null!=e.organization&&(n.organization=e.organization),null!=e.via&&(n.via=e.via);let i={};null!=e.xSessionToken&&(i["X-Session-Token"]=String(e.xSessionToken));let r=yield this.request({path:"/self-service/login/api",method:"GET",headers:i,query:n},t);return new o.ko(r,e=>s(e,!1))})}createNativeLoginFlow(){return R(this,arguments,void 0,function*(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=yield this.createNativeLoginFlowRaw(e,t);
1return yield n.value()})}createNativeRecoveryFlowRaw(e){return R(this,void 0,void 0,function*(){let t=yield this.request({path:"/self-service/recovery/api",method:"GET",headers:{},query:{}},e);return new o.ko(t,e=>d(e,!1))})}createNativeRecoveryFlow(e){return R(this,void 0,void 0,function*(){let t=yield this.createNativeRecoveryFlowRaw(e);return yield t.value()})}createNativeRegistrationFlowRaw(e,t){return R(this,void 0,void 0,function*(){let n={};null!=e.returnSessionTokenExchangeCode&&(n.return_session_token_exchange_code=e.returnSessionTokenExchangeCode),null!=e.returnTo&&(n.return_to=e.returnTo),null!=e.organization&&(n.organization=e.organization);let i=yield this.request({path:"/self-service/registration/api",method:"GET",headers:{},query:n},t);return new o.ko(i,e=>c(e,!1))})}createNativeRegistrationFlow(){return R(this,arguments,void 0,function*(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=yield this.createNativeRegistrationFlowRaw(e,t);return yield n.value()})}createNativeSettingsFlowRaw(e,t){return R(this,void 0,void 0,function*(){let n={};null!=e.xSessionToken&&(n["X-Session-Token"]=String(e.xSessionToken));let i=yield this.request({path:"/self-service/settings/api",method:"GET",headers:n,query:{}},t);return new o.ko(i,e=>p(e,!1))})}createNativeSettingsFlow(){return R(this,arguments,void 0,function*(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=yield this.createNativeSettingsFlowRaw(e,t);return yield n.value()})}createNativeVerificationFlowRaw(e,t){return R(this,void 0,void 0,function*(){let n={};null!=e.returnTo&&(n.return_to=e.returnTo);let i=yield this.request({path:"/self-service/verification/api",method:"GET",headers:{},query:n},t);return new o.ko(i,e=>g(e,!1))})}createNativeVerificationFlow(){return R(this,arguments,void 0,function*(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=yield this.createNativeVerificationFlowRaw(e,t);return yield n.value()})}disableMyOtherSessionsRaw(e,t){return R(this,void 0,void 0,function*(){let n={};null!=e.xSessionToken&&(n["X-Session-Token"]=String(e.xSessionToken)),null!=e.cookie&&(n.Cookie=String(e.cookie));let i=yield this.request({path:"/sessions",method:"DELETE",headers:n,query:{}},t);return new o.ko(i,e=>{var t;return null==(t=e)?t:{count:null==t.count?void 0:t.count}})})}disableMyOtherSessions(){return R(this,arguments,void 0,function*(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=yield this.disableMyOtherSessionsRaw(e,t);return yield n.value()})}disableMySessionRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.id)throw new o.Q0("id",'Required parameter "id" was null or undefined when calling disableMySession().');let n={};null!=e.xSessionToken&&(n["X-Session-Token"]=String(e.xSessionToken)),null!=e.cookie&&(n.Cookie=String(e.cookie));let i=yield this.request({path:"/sessions/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:n,query:{}},t);return new o.cK(i)})}disableMySession(e,t){return R(this,void 0,void 0,function*(){yield this.disableMySessionRaw(e,t)})}exchangeSessionTokenRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.initCode)throw new o.Q0("initCode",'Required parameter "initCode" was null or undefined when calling exchangeSessionToken().');
1if(null==e.returnToCode)throw new o.Q0("returnToCode",'Required parameter "returnToCode" was null or undefined when calling exchangeSessionToken().');let n={};null!=e.initCode&&(n.init_code=e.initCode),null!=e.returnToCode&&(n.return_to_code=e.returnToCode);let i=yield this.request({path:"/sessions/token-exchange",method:"GET",headers:{},query:n},t);return new o.ko(i,e=>b(e,!1))})}exchangeSessionToken(e,t){return R(this,void 0,void 0,function*(){let n=yield this.exchangeSessionTokenRaw(e,t);return yield n.value()})}getFlowErrorRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.id)throw new o.Q0("id",'Required parameter "id" was null or undefined when calling getFlowError().');let n={};null!=e.id&&(n.id=e.id);let i=yield this.request({path:"/self-service/errors",method:"GET",headers:{},query:n},t);return new o.ko(i,e=>{var t;return null==(t=e)?t:{created_at:null==t.created_at?void 0:new Date(t.created_at),error:null==t.error?void 0:t.error,id:t.id,updated_at:null==t.updated_at?void 0:new Date(t.updated_at)}})})}getFlowError(e,t){return R(this,void 0,void 0,function*(){let n=yield this.getFlowErrorRaw(e,t);return yield n.value()})}getLoginFlowRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.id)throw new o.Q0("id",'Required parameter "id" was null or undefined when calling getLoginFlow().');let n={};null!=e.id&&(n.id=e.id);let i={};null!=e.cookie&&(i.Cookie=String(e.cookie));let r=yield this.request({path:"/self-service/login/flows",method:"GET",headers:i,query:n},t);return new o.ko(r,e=>s(e,!1))})}getLoginFlow(e,t){return R(this,void 0,void 0,function*(){let n=yield this.getLoginFlowRaw(e,t);return yield n.value()})}getRecoveryFlowRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.id)throw new o.Q0("id",'Required parameter "id" was null or undefined when calling getRecoveryFlow().');let n={};null!=e.id&&(n.id=e.id);let i={};null!=e.cookie&&(i.Cookie=String(e.cookie));let r=yield this.request({path:"/self-service/recovery/flows",method:"GET",headers:i,query:n},t);return new o.ko(r,e=>d(e,!1))})}getRecoveryFlow(e,t){return R(this,void 0,void 0,function*(){let n=yield this.getRecoveryFlowRaw(e,t);return yield n.value()})}getRegistrationFlowRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.id)throw new o.Q0("id",'Required parameter "id" was null or undefined when calling getRegistrationFlow().');let n={};null!=e.id&&(n.id=e.id);let i={};null!=e.cookie&&(i.Cookie=String(e.cookie));let r=yield this.request({path:"/self-service/registration/flows",method:"GET",headers:i,query:n},t);return new o.ko(r,e=>c(e,!1))})}getRegistrationFlow(e,t){return R(this,void 0,void 0,function*(){let n=yield this.getRegistrationFlowRaw(e,t);return yield n.value()})}getSettingsFlowRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.id)throw new o.Q0("id",'Required parameter "id" was null or undefined when calling getSettingsFlow().');let n={};null!=e.id&&(n.id=e.id);let i={};null!=e.xSessionToken&&(i["X-Session-Token"]=String(e.xSessionToken)),null!=e.cookie&&(i.Cookie=String(e.cookie));let r=yield this.request({path:"/self-service/settings/flows",method:"GET",headers:i,query:n},t);return new o.ko(r,e=>p(e,!1))})}getSettingsFlow(e,t){return R(this,void 0,void 0,function*(){let n=yield this.getSettingsFlowRaw(e,t);return yield n.value()})}getVerificationFlowRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.id)throw new o.Q0("id",'Required parameter "id" was null or undefined when calling getVerificationFlow().');let n={};null!=e.id&&(n.id=e.id);let i={};null!=e.cookie&&(i.cookie=String(e.cookie));let r=yield this.request({path:"/self-service/verification/flows",method:"GET",headers:i,query:n},t);return new o.ko(r,e=>g(e,!1))})}getVerificationFlow(e,t){return R(this,void 0,void 0,function*(){let n=yield this.getVerificationFlowRaw(e,t);return yield n.value()})}getWebAuthnJavaScriptRaw(e){return R(this,void 0,void 0,function*(){let t=yield this.request({path:"/.well-known/ory/webauthn.js",method:"GET",headers:{},query:{}},e);return this.isJsonMime(t.headers.get("content-type"))?new o.ko(t):new o.Pf(t)})}getWebAuthnJavaScript(e){return R(this,void 0,void 0,function*(){let t=yield this.getWebAuthnJavaScriptRaw(e);return yield t.value()})}listMySessionsRaw(e,t){return R(this,void 0,void 0,function*(){let n={};null!=e.perPage&&(n.per_page=e.perPage),null!=e.page&&(n.page=e.page),null!=e.pageSize&&(n.page_size=e.pageSize),null!=e.pageToken&&
1(n.page_token=e.pageToken);let i={};null!=e.xSessionToken&&(i["X-Session-Token"]=String(e.xSessionToken)),null!=e.cookie&&(i.Cookie=String(e.cookie));let r=yield this.request({path:"/sessions",method:"GET",headers:i,query:n},t);return new o.ko(r,e=>e.map(k))})}listMySessions(){return R(this,arguments,void 0,function*(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=yield this.listMySessionsRaw(e,t);return yield n.value()})}performNativeLogoutRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.performNativeLogoutBody)throw new o.Q0("performNativeLogoutBody",'Required parameter "performNativeLogoutBody" was null or undefined when calling performNativeLogout().');let n={};n["Content-Type"]="application/json";let i=yield this.request({path:"/self-service/logout/api",method:"DELETE",headers:n,query:{},body:function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{session_token:e.session_token}}(e.performNativeLogoutBody,!1)},t);return new o.cK(i)})}performNativeLogout(e,t){return R(this,void 0,void 0,function*(){yield this.performNativeLogoutRaw(e,t)})}toSessionRaw(e,t){return R(this,void 0,void 0,function*(){let n={};null!=e.tokenizeAs&&(n.tokenize_as=e.tokenizeAs);let i={};null!=e.xSessionToken&&(i["X-Session-Token"]=String(e.xSessionToken)),null!=e.cookie&&(i.Cookie=String(e.cookie));let r=yield this.request({path:"/sessions/whoami",method:"GET",headers:i,query:n},t);return new o.ko(r,e=>k(e))})}toSession(){return R(this,arguments,void 0,function*(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=yield this.toSessionRaw(e,t);return yield n.value()})}updateFedcmFlowRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.updateFedcmFlowBody)throw new o.Q0("updateFedcmFlowBody",'Required parameter "updateFedcmFlowBody" was null or undefined when calling updateFedcmFlow().');let n={};n["Content-Type"]="application/json";let i=yield this.request({path:"/self-service/fed-cm/token",method:"POST",headers:n,query:{},body:function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,nonce:e.nonce,token:e.token,transient_payload:e.transient_payload}}(e.updateFedcmFlowBody,!1)},t);return new o.ko(i,e=>b(e,!1))})}updateFedcmFlow(e,t){return R(this,void 0,void 0,function*(){let n=yield this.updateFedcmFlowRaw(e,t);return yield n.value()})}updateLoginFlowRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.flow)throw new o.Q0("flow",'Required parameter "flow" was null or undefined when calling updateLoginFlow().');if(null==e.updateLoginFlowBody)throw new o.Q0("updateLoginFlowBody",'Required parameter "updateLoginFlowBody" was null or undefined when calling updateLoginFlow().');let n={};null!=e.flow&&(n.flow=e.flow);let i={};i["Content-Type"]="application/json",null!=e.xSessionToken&&(i["X-Session-Token"]=String(e.xSessionToken)),null!=e.cookie&&(i.Cookie=String(e.cookie));let r=yield this.request({path:"/self-service/login",method:"POST",headers:i,query:n,body:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)return e;switch(e.method){case"code":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{address:e.address,code:e.code,csrf_token:e.csrf_token,identifier:e.identifier,method:e.method,resend:e.resend,transient_payload:e.transient_payload}}(e,!1),{method:"code"});case"identifier_first":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,identifier:e.identifier,method:e.method,transient_payload:e.transient_payload}}(e,!1),{method:"identifier_first"});case"lookup_secret":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,lookup_secret:e.lookup_secret,method:e.method}}(e,!1),{method:"lookup_secret"});case"oidc":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,id_token:e.id_token,id_token_nonce:e.id_token_nonce,method:e.method,provider:e.provider,traits:e.traits,transient_payload:e.transient_payload,upstream_parameters:e.upstream_parameters}}(e,!1),{method:"oidc"});case"passkey":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,method:e.method,passkey_login:e.passkey_login}}(e,!1),{method:"passkey"});case"password":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,identifier:e.identifier,method:e.method,password:e.password,password_identifier:e.password_identifier,transient_payload:e.transient_payload}}(e,!1),{method:"password"});case"saml":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,method:e.method,provider:e.provider,transient_payload:e.transient_payload}}(e,!1),{method:"saml"});case"totp":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,method:e.method,totp_code:e.totp_code,transient_payload:e.transient_payload}}(e,!1),{method:"totp"});case"webauthn":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,identifier:e.identifier,method:e.method,transient_payload:e.transient_payload,webauthn_login:e.webauthn_login}}(e,!1),{method:"webauthn"});default:throw Error("No variant of UpdateLoginFlowBody exists with 'method=".concat(e.method,"'"))}}(e.updateLoginFlowBody,!1)},t);return new o.ko(r,e=>b(e,!1))})}updateLoginFlow(e,t){return R(this,void 0,void 0,function*(){let n=yield this.updateLoginFlowRaw(e,t);
1return yield n.value()})}updateLogoutFlowRaw(e,t){return R(this,void 0,void 0,function*(){let n={};null!=e.token&&(n.token=e.token),null!=e.returnTo&&(n.return_to=e.returnTo);let i={};null!=e.cookie&&(i.Cookie=String(e.cookie));let r=yield this.request({path:"/self-service/logout",method:"GET",headers:i,query:n},t);return new o.cK(r)})}updateLogoutFlow(){return R(this,arguments,void 0,function*(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;yield this.updateLogoutFlowRaw(e,t)})}updateRecoveryFlowRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.flow)throw new o.Q0("flow",'Required parameter "flow" was null or undefined when calling updateRecoveryFlow().');if(null==e.updateRecoveryFlowBody)throw new o.Q0("updateRecoveryFlowBody",'Required parameter "updateRecoveryFlowBody" was null or undefined when calling updateRecoveryFlow().');let n={};null!=e.flow&&(n.flow=e.flow),null!=e.token&&(n.token=e.token);let i={};i["Content-Type"]="application/json",null!=e.cookie&&(i.Cookie=String(e.cookie));let r=yield this.request({path:"/self-service/recovery",method:"POST",headers:i,query:n,body:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)return e;switch(e.method){case"code":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{code:e.code,csrf_token:e.csrf_token,email:e.email,method:e.method,transient_payload:e.transient_payload}}(e,!1),{method:"code"});case"link":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,email:e.email,method:e.method,transient_payload:e.transient_payload}}(e,!1),{method:"link"});default:throw Error("No variant of UpdateRecoveryFlowBody exists with 'method=".concat(e.method,"'"))}}(e.updateRecoveryFlowBody,!1)},t);return new o.ko(r,e=>d(e,!1))})}updateRecoveryFlow(e,t){return R(this,void 0,void 0,function*(){let n=yield this.updateRecoveryFlowRaw(e,t);return yield n.value()})}updateRegistrationFlowRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.flow)throw new o.Q0("flow",'Required parameter "flow" was null or undefined when calling updateRegistrationFlow().');if(null==e.updateRegistrationFlowBody)throw new o.Q0("updateRegistrationFlowBody",'Required parameter "updateRegistrationFlowBody" was null or undefined when calling updateRegistrationFlow().');let n={};null!=e.flow&&(n.flow=e.flow);let i={};i["Content-Type"]="application/json",null!=e.cookie&&(i.Cookie=String(e.cookie));let r=yield this.request({path:"/self-service/registration",method:"POST",headers:i,query:n,body:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)return e;switch(e.method){case"code":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{code:e.code,csrf_token:e.csrf_token,method:e.method,resend:e.resend,traits:e.traits,transient_payload:e.transient_payload}}(e,!1),{method:"code"});case"oidc":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,id_token:e.id_token,id_token_nonce:e.id_token_nonce,method:e.method,provider:e.provider,traits:e.traits,transient_payload:e.transient_payload,upstream_parameters:e.upstream_parameters}}(e,!1),{method:"oidc"});case"passkey":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,method:e.method,passkey_register:e.passkey_register,traits:e.traits,transient_payload:e.transient_payload}}(e,!1),{method:"passkey"});case"password":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,method:e.method,password:e.password,traits:e.traits,transient_payload:e.transient_payload}}(e,!1),{method:"password"});case"profile":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,method:e.method,screen:e.screen,traits:e.traits,transient_payload:e.transient_payload}}(e,!1),{method:"profile"});case"saml":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,method:e.method,provider:e.provider,traits:e.traits,transient_payload:e.transient_payload}}(e,!1),{method:"saml"});case"webauthn":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,method:e.method,traits:e.traits,transient_payload:e.transient_payload,webauthn_register:e.webauthn_register,webauthn_register_displayname:e.webauthn_register_displayname}}(e,!1),{method:"webauthn"});default:throw Error("No variant of UpdateRegistrationFlowBody exists with 'method=".concat(e.method,"'"))}}(e.updateRegistrationFlowBody,!1)},t);return new o.ko(r,e=>{var t;return null==(t=e)?t:{continue_with:null==t.continue_with?void 0:t.continue_with.map(u),identity:f(t.identity,!1),session:null==t.session?void 0:k(t.session),session_token:null==t.session_token?void 0:t.session_token}})})}updateRegistrationFlow(e,t){return R(this,void 0,void 0,function*(){let n=yield this.updateRegistrationFlowRaw(e,t);
1return yield n.value()})}updateSettingsFlowRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.flow)throw new o.Q0("flow",'Required parameter "flow" was null or undefined when calling updateSettingsFlow().');if(null==e.updateSettingsFlowBody)throw new o.Q0("updateSettingsFlowBody",'Required parameter "updateSettingsFlowBody" was null or undefined when calling updateSettingsFlow().');let n={};null!=e.flow&&(n.flow=e.flow);let i={};i["Content-Type"]="application/json",null!=e.xSessionToken&&(i["X-Session-Token"]=String(e.xSessionToken)),null!=e.cookie&&(i.Cookie=String(e.cookie));let r=yield this.request({path:"/self-service/settings",method:"POST",headers:i,query:n,body:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)return e;switch(e.method){case"lookup_secret":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,lookup_secret_confirm:e.lookup_secret_confirm,lookup_secret_disable:e.lookup_secret_disable,lookup_secret_regenerate:e.lookup_secret_regenerate,lookup_secret_reveal:e.lookup_secret_reveal,method:e.method,transient_payload:e.transient_payload}}(e,!1),{method:"lookup_secret"});case"oidc":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{flow:e.flow,link:e.link,method:e.method,traits:e.traits,transient_payload:e.transient_payload,unlink:e.unlink,upstream_parameters:e.upstream_parameters}}(e,!1),{method:"oidc"});case"passkey":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,method:e.method,passkey_remove:e.passkey_remove,passkey_settings_register:e.passkey_settings_register}}(e,!1),{method:"passkey"});case"password":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,method:e.method,password:e.password,transient_payload:e.transient_payload}}(e,!1),{method:"password"});case"profile":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,method:e.method,traits:e.traits,transient_payload:e.transient_payload}}(e,!1),{method:"profile"});case"saml":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,flow:e.flow,link:e.link,method:e.method,traits:e.traits,transient_payload:e.transient_payload,unlink:e.unlink}}(e,!1),{method:"saml"});case"totp":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,method:e.method,totp_code:e.totp_code,totp_unlink:e.totp_unlink,transient_payload:e.transient_payload}}(e,!1),{method:"totp"});case"webauthn":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,method:e.method,transient_payload:e.transient_payload,webauthn_register:e.webauthn_register,webauthn_register_displayname:e.webauthn_register_displayname,webauthn_remove:e.webauthn_remove}}(e,!1),{method:"webauthn"});default:throw Error("No variant of UpdateSettingsFlowBody exists with 'method=".concat(e.method,"'"))}}(e.updateSettingsFlowBody,!1)},t);return new o.ko(r,e=>p(e,!1))})}updateSettingsFlow(e,t){return R(this,void 0,void 0,function*(){let n=yield this.updateSettingsFlowRaw(e,t);return yield n.value()})}updateVerificationFlowRaw(e,t){return R(this,void 0,void 0,function*(){if(null==e.flow)throw new o.Q0("flow",'Required parameter "flow" was null or undefined when calling updateVerificationFlow().');if(null==e.updateVerificationFlowBody)throw new o.Q0("updateVerificationFlowBody",'Required parameter "updateVerificationFlowBody" was null or undefined when calling updateVerificationFlow().');let n={};null!=e.flow&&(n.flow=e.flow),null!=e.token&&(n.token=e.token);let i={};i["Content-Type"]="application/json",null!=e.cookie&&(i.Cookie=String(e.cookie));let r=yield this.request({path:"/self-service/verification",method:"POST",headers:i,query:n,body:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)return e;switch(e.method){case"code":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{code:e.code,csrf_token:e.csrf_token,email:e.email,method:e.method,transient_payload:e.transient_payload}}(e,!1),{method:"code"});case"link":return Object.assign({},function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{csrf_token:e.csrf_token,email:e.email,method:e.method,transient_payload:e.transient_payload}}(e,!1),{method:"link"});default:throw Error("No variant of UpdateVerificationFlowBody exists with 'method=".concat(e.method,"'"))}}(e.updateVerificationFlowBody,!1)},t);return new o.ko(r,e=>g(e,!1))})}updateVerificationFlow(e,t){return R(this,void 0,void 0,function*(){let n=yield this.updateVerificationFlowRaw(e,t);
1return yield n.value()})}}},68972:(e,t,n)=>{n.d(t,{B8:()=>e_,LM:()=>ep,UC:()=>ef,bL:()=>ec,l9:()=>ev,q7:()=>eh});var o=n(68256),i=n(68587),r=n(38979),a=n(7101),l=n(36),s=n(26146),u=n(48185),d=n(18230),c=n(30565),_=n(31606),h=n(33774),v=n(30640),f=n(27858),p=n(95214),g=n(15942),w=n(9884),y=n(14540),m="NavigationMenu",[k,b,R]=(0,h.N)(m),[T,F,x]=(0,h.N)(m),[S,j]=(0,r.A)(m,[R,x]),[q,E]=S(m),[C,O]=S(m),N=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:i,onValueChange:r,defaultValue:a,delayDuration:c=200,skipDelayDuration:_=300,orientation:h="horizontal",dir:v,...f}=e,[p,g]=o.useState(null),w=(0,u.s)(t,e=>g(e)),k=(0,d.jH)(v),b=o.useRef(0),R=o.useRef(0),T=o.useRef(0),[F,x]=o.useState(!0),[S,j]=(0,s.i)({prop:i,onChange:e=>{let t=_>0;""!==e?(window.clearTimeout(T.current),t&&x(!1)):(window.clearTimeout(T.current),T.current=window.setTimeout(()=>x(!0),_)),null==r||r(e)},defaultProp:null!=a?a:"",caller:m}),q=o.useCallback(()=>{window.clearTimeout(R.current),R.current=window.setTimeout(()=>j(""),150)},[j]),E=o.useCallback(e=>{window.clearTimeout(R.current),j(e)},[j]),C=o.useCallback(e=>{S===e?window.clearTimeout(R.current):b.current=window.setTimeout(()=>{window.clearTimeout(R.current),j(e)},c)},[S,j,c]);return o.useEffect(()=>()=>{window.clearTimeout(b.current),window.clearTimeout(R.current),window.clearTimeout(T.current)},[]),(0,y.jsx)(P,{scope:n,isRootMenu:!0,value:S,dir:k,orientation:h,rootNavigationMenu:p,onTriggerEnter:e=>{window.clearTimeout(b.current),F?C(e):E(e)},onTriggerLeave:()=>{window.clearTimeout(b.current),q()},onContentEnter:()=>window.clearTimeout(R.current),onContentLeave:q,onItemSelect:e=>{j(t=>t===e?"":e)},onItemDismiss:()=>j(""),children:(0,y.jsx)(l.sG.nav,{"aria-label":"Main","data-orientation":h,dir:k,...f,ref:w})})});N.displayName=m;var L="NavigationMenuSub";o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:o,onValueChange:i,defaultValue:r,orientation:a="horizontal",...u}=e,d=E(L,n),[c,_]=(0,s.i)({prop:o,onChange:i,defaultProp:null!=r?r:"",caller:L});return(0,y.jsx)(P,{scope:n,isRootMenu:!1,value:c,dir:d.dir,orientation:a,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:e=>_(e),onItemSelect:e=>_(e),onItemDismiss:()=>_(""),children:(0,y.jsx)(l.sG.div,{"data-orientation":a,...u,ref:t})})}).displayName=L;var P=e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:i,dir:r,orientation:a,children:l,value:s,onItemSelect:u,onItemDismiss:d,onTriggerEnter:c,onTriggerLeave:h,onContentEnter:v,onContentLeave:p}=e,[w,m]=o.useState(null),[b,R]=o.useState(new Map),[T,F]=o.useState(null);return(0,y.jsx)(q,{scope:t,isRootMenu:n,rootNavigationMenu:i,value:s,previousValue:(0,f.Z)(s),baseId:(0,_.B)(),dir:r,orientation:a,viewport:w,onViewportChange:m,indicatorTrack:T,onIndicatorTrackChange:F,onTriggerEnter:(0,g.c)(c),onTriggerLeave:(0,g.c)(h),onContentEnter:(0,g.c)(v),onContentLeave:(0,g.c)(p),onItemSelect:(0,g.c)(u),onItemDismiss:(0,g.c)(d),onViewportContentChange:o.useCallback((e,t)=>{R(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:o.useCallback(e=>{R(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,y.jsx)(k.Provider,{scope:t,children:(0,y.jsx)(C,{scope:t,items:b,children:l})})})},M="NavigationMenuList",D=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...o}=e,i=E(M,n),r=(0,y.jsx)(l.sG.ul,{"data-orientation":i.orientation,...o,ref:t});return(0,y.jsx)(l.sG.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:(0,y.jsx)(k.Slot,{scope:n,children:i.isRootMenu?(0,y.jsx)(et,{asChild:!0,children:r}):r})})});D.displayName=M;var B="NavigationMenuItem",[A,z]=S(B),I=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:i,...r}=e,a=(0,_.B)(),s=o.useRef(null),u=o.useRef(null),d=o.useRef(null),c=o.useRef(()=>{}),h=o.useRef(!1),v=o.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(s.current){c.current();let t=ei(s.current);t.length&&er("start"===e?t:t.reverse())}},[]),f=o.useCallback(()=>{if(s.current){let e=ei(s.current);e.length&&(c.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>
1{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return(0,y.jsx)(A,{scope:n,value:i||a||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:s,focusProxyRef:d,wasEscapeCloseRef:h,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:f,onContentFocusOutside:f,children:(0,y.jsx)(l.sG.li,{...r,ref:t})})});I.displayName=B;var G="NavigationMenuTrigger",V=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:i,...r}=e,s=E(G,e.__scopeNavigationMenu),d=z(G,e.__scopeNavigationMenu),c=o.useRef(null),_=(0,u.s)(c,d.triggerRef,t),h=es(s.baseId,d.value),v=eu(s.baseId,d.value),f=o.useRef(!1),p=o.useRef(!1),g=d.value===s.value;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(k.ItemSlot,{scope:n,value:d.value,children:(0,y.jsx)(eo,{asChild:!0,children:(0,y.jsx)(l.sG.button,{id:h,disabled:i,"data-disabled":i?"":void 0,"data-state":el(g),"aria-expanded":g,"aria-controls":v,...r,ref:_,onPointerEnter:(0,a.m)(e.onPointerEnter,()=>{p.current=!1,d.wasEscapeCloseRef.current=!1}),onPointerMove:(0,a.m)(e.onPointerMove,ed(()=>{i||p.current||d.wasEscapeCloseRef.current||f.current||(s.onTriggerEnter(d.value),f.current=!0)})),onPointerLeave:(0,a.m)(e.onPointerLeave,ed(()=>{i||(s.onTriggerLeave(),f.current=!1)})),onClick:(0,a.m)(e.onClick,()=>{s.onItemSelect(d.value),p.current=g}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===s.dir?"ArrowLeft":"ArrowRight"}[s.orientation];g&&e.key===t&&(d.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(w.bL,{"aria-hidden":!0,tabIndex:0,ref:d.focusProxyRef,onFocus:e=>{let t=d.contentRef.current,n=e.relatedTarget,o=n===c.current,i=null==t?void 0:t.contains(n);(o||!i)&&d.onFocusProxyEnter(o?"start":"end")}}),s.viewport&&(0,y.jsx)("span",{"aria-owns":v})]})]})});V.displayName=G;var K="navigationMenu.linkSelect";o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,active:o,onSelect:i,...r}=e;return(0,y.jsx)(eo,{asChild:!0,children:(0,y.jsx)(l.sG.a,{"data-active":o?"":void 0,"aria-current":o?"page":void 0,...r,ref:t,onClick:(0,a.m)(e.onClick,e=>{let t=e.target,n=new CustomEvent(K,{bubbles:!0,cancelable:!0});if(t.addEventListener(K,e=>null==i?void 0:i(e),{once:!0}),(0,l.hO)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(H,{bubbles:!0,cancelable:!0});(0,l.hO)(t,e)}},{checkForDefaultPrevented:!1})})})}).displayName="NavigationMenuLink";var Q="NavigationMenuIndicator";o.forwardRef((e,t)=>{let{forceMount:n,...o}=e,r=E(Q,e.__scopeNavigationMenu),a=!!r.value;return r.indicatorTrack?i.createPortal((0,y.jsx)(c.C,{present:n||a,children:(0,y.jsx)(U,{...o,ref:t})}),r.indicatorTrack):null}).displayName=Q;var U=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...i}=e,r=E(Q,n),a=b(n),[s,u]=o.useState(null),[d,c]=o.useState(null),_="horizontal"===r.orientation,h=!!r.value;o.useEffect(()=>{var e;let t=null==(e=a().find(e=>e.value===r.value))?void 0:e.ref.current;t&&u(t)},[a,r.value]);let v=()=>{s&&c({size:_?s.offsetWidth:s.offsetHeight,offset:_?s.offsetLeft:s.offsetTop})};return ea(s,v),ea(r.indicatorTrack,v),d?(0,y.jsx)(l.sG.div,{"aria-hidden":!0,"data-state":h?"visible":"hidden","data-orientation":r.orientation,...i,ref:t,style:{position:"absolute",..._?{left:0,width:d.size+"px",transform:"translateX(".concat(d.offset,"px)")}:{top:0,height:d.size+"px",transform:"translateY(".concat(d.offset,"px)")},...i.style}}):null}),X="NavigationMenuContent",W=o.forwardRef((e,t)=>{let{forceMount:n,...o}=e,i=E(X,e.__scopeNavigationMenu),r=z(X,e.__scopeNavigationMenu),l=(0,u.s)(r.contentRef,t),s=r.value===i.value,d={value:r.value,triggerRef:r.triggerRef,focusProxyRef:r.focusProxyRef,wasEscapeCloseRef:r.wasEscapeCloseRef,onContentFocusOutside:r.onContentFocusOutside,onRootContentClose:r.onRootContentClose,...o};return i.viewport?(0,y.jsx)(J,{forceMount:n,...d,ref:l}):(0,y.jsx)(c.C,{present:n||s,children:(0,y.jsx)($,{"data-state":el(s),...d,ref:l,onPointerEnter:(0,a.m)(e.onPointerEnter,i.onContentEnter),onPointerLeave:(0,a.m)(e.onPointerLeave,ed(i.onContentLeave)),style:{pointerEvents:!s&&i.isRootMenu?"none":void 0,...d.style}})})});W.displayName=X;var J=o.forwardRef((e,t)=>
1{let{onViewportContentChange:n,onViewportContentRemove:o}=E(X,e.__scopeNavigationMenu);return(0,p.N)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,p.N)(()=>()=>o(e.value),[e.value,o]),null}),H="navigationMenu.rootContentDismiss",$=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:i,triggerRef:r,focusProxyRef:l,wasEscapeCloseRef:s,onRootContentClose:d,onContentFocusOutside:c,..._}=e,h=E(X,n),f=o.useRef(null),p=(0,u.s)(f,t),g=es(h.baseId,i),w=eu(h.baseId,i),m=b(n),k=o.useRef(null),{onItemDismiss:R}=h;o.useEffect(()=>{let e=f.current;if(h.isRootMenu&&e){let t=()=>{var t;R(),d(),e.contains(document.activeElement)&&(null==(t=r.current)||t.focus())};return e.addEventListener(H,t),()=>e.removeEventListener(H,t)}},[h.isRootMenu,e.value,r,R,d]);let T=o.useMemo(()=>{let e=m().map(e=>e.value);"rtl"===h.dir&&e.reverse();let t=e.indexOf(h.value),n=e.indexOf(h.previousValue),o=i===h.value,r=n===e.indexOf(i);if(!o&&!r)return k.current;let a=(()=>{if(t!==n){if(o&&-1!==n)return t>n?"from-end":"from-start";if(r&&-1!==t)return t>n?"to-start":"to-end"}return null})();return k.current=a,a},[h.previousValue,h.value,h.dir,m,i]);return(0,y.jsx)(et,{asChild:!0,children:(0,y.jsx)(v.qW,{id:w,"aria-labelledby":g,"data-motion":T,"data-orientation":h.orientation,..._,ref:p,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(H,{bubbles:!0,cancelable:!0});null==(e=f.current)||e.dispatchEvent(t)},onFocusOutside:(0,a.m)(e.onFocusOutside,e=>{var t;c();let n=e.target;(null==(t=h.rootNavigationMenu)?void 0:t.contains(n))&&e.preventDefault()}),onPointerDownOutside:(0,a.m)(e.onPointerDownOutside,e=>{var t;let n=e.target,o=m().some(e=>{var t;return null==(t=e.ref.current)?void 0:t.contains(n)}),i=h.isRootMenu&&(null==(t=h.viewport)?void 0:t.contains(n));(o||i||!h.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ei(e.currentTarget),o=document.activeElement,i=t.findIndex(e=>e===o);if(er(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length)))e.preventDefault();else{var n;null==(n=l.current)||n.focus()}}}),onEscapeKeyDown:(0,a.m)(e.onEscapeKeyDown,e=>{s.current=!0})})})}),Y="NavigationMenuViewport",Z=o.forwardRef((e,t)=>{let{forceMount:n,...o}=e,i=!!E(Y,e.__scopeNavigationMenu).value;return(0,y.jsx)(c.C,{present:n||i,children:(0,y.jsx)(ee,{...o,ref:t})})});Z.displayName=Y;var ee=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:i,...r}=e,s=E(Y,n),d=(0,u.s)(t,s.onViewportChange),_=O(X,e.__scopeNavigationMenu),[h,v]=o.useState(null),[f,p]=o.use
1State(null),g=h?(null==h?void 0:h.width)+"px":void 0,w=h?(null==h?void 0:h.height)+"px":void 0,m=!!s.value,k=m?s.value:s.previousValue;return ea(f,()=>{f&&v({width:f.offsetWidth,height:f.offsetHeight})}),(0,y.jsx)(l.sG.div,{"data-state":el(m),"data-orientation":s.orientation,...r,ref:d,style:{pointerEvents:!m&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":w,...r.style},onPointerEnter:(0,a.m)(e.onPointerEnter,s.onContentEnter),onPointerLeave:(0,a.m)(e.onPointerLeave,ed(s.onContentLeave)),children:Array.from(_.items).map(e=>{let[t,{ref:n,forceMount:o,...i}]=e,r=k===t;return(0,y.jsx)(c.C,{present:o||r,children:(0,y.jsx)($,{...i,ref:(0,u.t)(n,e=>{r&&e&&p(e)})})},t)})})}),et=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...o}=e,i=E("FocusGroup",n);return(0,y.jsx)(T.Provider,{scope:n,children:(0,y.jsx)(T.Slot,{scope:n,children:(0,y.jsx)(l.sG.div,{dir:i.dir,...o,ref:t})})})}),en=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],eo=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...o}=e,i=F(n),r=E("FocusGroupItem",n);return(0,y.jsx)(T.ItemSlot,{scope:n,children:(0,y.jsx)(l.sG.button,{...o,ref:t,onKeyDown:(0,a.m)(e.onKeyDown,e=>{if(["Home","End",...en].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===r.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),en.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>er(t)),e.preventDefault()}})})})});function ei(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function er(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ea(e,t){let n=(0,g.c)(t);(0,p.N)(()=>{let t=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(t),o.unobserve(e)}}},[e,n])}function el(e){return e?"open":"closed"}function es(e,t){return"".concat(e,"-trigger-").concat(t)}function eu(e,t){return"".concat(e,"-content-").concat(t)}function ed(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ec=N,e_=D,eh=I,ev=V,ef=W,ep=Z},72451:(e,t,n)=>{n.d(t,{LG:()=>c,Pf:()=>v,Q0:()=>d,Vk:()=>r,cK:()=>h,ko:()=>_,o3:()=>s,yi:()=>l});var o=function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function l(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((o=o.apply(e,t||[])).next())})};let i="https://playground.projects.oryapis.com".replace(/\/+$/,"");class r{set config(e){this.configuration=e}get basePath(){return null!=this.configuration.basePath?this.configuration.basePath:i}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).map(o=>(function t(n,o){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=i+(i.length?"[".concat(n,"]"):n);if(o instanceof Array){let e=o.map(e=>encodeURIComponent(String(e))).join("&".concat(encodeURIComponent(r),"="));return"".concat(encodeURIComponent(r),"=").concat(e)}return o instanceof Set?t(n,Array.from(o),i):o instanceof Date?"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(o.toISOString())):o instanceof Object?e(o,r):"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(String(o)))})(o,t[o],n)).filter(e=>e.length>0).join("&")}}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){let e=this.configuration.apiKey;if(e)return"function"==typeof e?e:()=>e}get accessToken(){let e=this.configuration.accessToken;if(e)return"function"==typeof e?e:()=>o(this,void 0,void 0,function*(){return e})}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}constructor(e={}){this.configuration=e}}let a=new r;class l{withMiddleware(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let o=this.clone();return o.middleware=o.middleware.concat(...t),o}withPreMiddleware(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let o=t.map(e=>({pre:e}));return this.withMiddleware(...o)}withPostMiddleware(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let o=t.map(e=>({post:e}));return this.withMiddleware(...o)}isJsonMime(e){return!!e&&l.jsonRegex.test(e)}request(e,t){return o(this,void 0,void 0,function*(){let{url:n,init:o}=yield this.createFetchParams(e,t),i=yield this.fetchApi(n,o);if(i&&i.status>=200&&i.status<300)return i;throw new s(i,"Response returned an error code")})}createFetchParams(e,t){return o(this,void 0,void 0,function*(){var n,i;let r,a=this.configuration.basePath+e.path;void 0!==e.query&&0!==Object.keys(e.query).length&&(a+="?"+this.configuration.queryParamsStringify(e.query));let l=Object.assign({},this.configuration.headers,e.headers);
1Object.keys(l).forEach(e=>void 0===l[e]?delete l[e]:{});let s={method:e.method,headers:l,body:e.body,credentials:this.configuration.credentials},u=Object.assign(Object.assign({},s),(yield("function"==typeof t?t:()=>o(this,void 0,void 0,function*(){return t}))({init:s,context:e})));return n=u.body,r="undefined"!=typeof FormData&&n instanceof FormData||u.body instanceof URLSearchParams||(i=u.body,"undefined"!=typeof Blob&&i instanceof Blob)?u.body:this.isJsonMime(l["Content-Type"])?JSON.stringify(u.body):u.body,{url:a,init:Object.assign(Object.assign({},u),{body:r})}})}clone(){let e=new this.constructor(this.configuration);return e.middleware=this.middleware.slice(),e}constructor(e=a){this.configuration=e,this.fetchApi=(e,t)=>o(this,void 0,void 0,function*(){let n,o={url:e,init:t};for(let e of this.middleware)e.pre&&(o=(yield e.pre(Object.assign({fetch:this.fetchApi},o)))||o);try{n=yield(this.configuration.fetchApi||fetch)(o.url,o.init)}catch(e){for(let t of this.middleware)t.onError&&(n=(yield t.onError({fetch:this.fetchApi,url:o.url,init:o.init,error:e,response:n?n.clone():void 0}))||n);if(void 0===n)if(e instanceof Error)throw new u(e,"The request failed and the interceptors did not return an alternative response");else throw e}for(let e of this.middleware)e.post&&(n=(yield e.post({fetch:this.fetchApi,url:o.url,init:o.init,response:n.clone()}))||n);return n}),this.middleware=e.middleware}}l.jsonRegex=RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");class s extends Error{constructor(e,t){super(t),this.response=e,this.name="ResponseError"}}class u extends Error{constructor(e,t){super(t),this.cause=e,this.name="FetchError"}}class d extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}function c(e,t){return Object.keys(e).reduce((n,o)=>Object.assign(Object.assign({},n),{[o]:t(e[o])}),{})}class _{value(){return o(this,void 0,void 0,function*(){return this.transformer((yield this.raw.json()))})}constructor(e,t=e=>e){this.raw=e,this.transformer=t}}class h{value(){return o(this,void 0,void 0,function*(){})}constructor(e){this.raw=e}}class v{value(){return o(this,void 0,void 0,function*(){return yield this.raw.text()})}constructor(e){this.raw=e}}},78784:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{bindSnapshot:function(){return a},createAsyncLocalStorage:function(){return r},createSnapshot:function(){return l}});let n=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class o{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}static bind(e){return e}}let i="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function r(){return i?new i:new o}function a(e){return i?i.bind(e):o.bind(e)}function l(){return i?i.snapshot():function(e,...t){return e(...t)}}},82344:(e,t,n)=>{n.d(t,{P:()=>a,v:()=>s});var o=n(68256),i=n(33312);let r=e=>e;function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=o.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return o.useDebugValue(n),n}let l=e=>{let t=(0,i.y)(e),n=e=>a(t,e);return Object.assign(n,t),n},s=e=>e?l(e):l},91605:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return o.workAsyncStorageInstance}});let o=n(9790)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.