@atproto/oauth-provider-ui 0.1.5 → 0.1.7
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.
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var ji=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);import{r as m,j as c,c as P,L as Ni,A as ki,u as B,U as Ci,T as v,M as Di,a as St,E as Ii,b as Ui,d as Bi,e as Oi,f as Sr,g as Tt,h as wt,S as $i,I as Yi,i as Gi,C as Bn,k as On,l as Li,X as Pi,m as Ai,n as Mi,o as Hi,p as qi}from"./error-view-BM14qVO0.js";var Ll=ji((Ml,Ri)=>{const Tr=m.createContext(null),Yt={didCatch:!1,error:null};class Fi extends m.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Yt}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:s,reason:"imperative-api"}),this.setState(Yt)}}componentDidCatch(t,n){var r,i;(r=(i=this.props).onError)===null||r===void 0||r.call(i,t,n)}componentDidUpdate(t,n){const{didCatch:r}=this.state,{resetKeys:i}=this.props;if(r&&n.error!==null&&Vi(t.resetKeys,i)){var s,a;(s=(a=this.props).onReset)===null||s===void 0||s.call(a,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(Yt)}}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:i}=this.props,{didCatch:s,error:a}=this.state;let o=t;if(s){const l={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")o=n(l);else if(r)o=m.createElement(r,l);else if(i!==void 0)o=i;else throw a}return m.createElement(Tr.Provider,{value:{didCatch:s,error:a,resetErrorBoundary:this.resetErrorBoundary}},o)}}function Vi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function zi(e){if(e==null||typeof e.didCatch!="boolean"||typeof e.resetErrorBoundary!="function")throw new Error("ErrorBoundaryContext not found")}function Xi(){const e=m.useContext(Tr);zi(e);const[t,n]=m.useState({error:null,hasError:!1}),r=m.useMemo(()=>({resetBoundary:()=>{e.resetErrorBoundary(),n({error:null,hasError:!1})},showBoundary:i=>n({error:i,hasError:!0})}),[e.resetErrorBoundary]);if(t.hasError)throw t.error;return r}function J({children:e,title:t,subtitle:n,className:r,...i}){return c.jsxs("div",{...i,className:P(r,"flex flex-col items-center","md:flex md:flex-row md:items-center md:justify-stretch","min-w-screen min-h-screen","bg-white text-slate-900","dark:bg-slate-900 dark:text-slate-100"),children:[t&&c.jsx("title",{children:t}),c.jsxs("div",{className:P("px-6 pt-4","w-full","md:max-w-lg","flex flex-row items-start","md:flex-col md:items-end","md:self-stretch","md:max-w-fix md:w-1/2 md:p-4","md:text-right","md:dark:border-r md:dark:border-slate-700","md:bg-slate-100 md:dark:bg-slate-800"),children:[c.jsxs("div",{className:"grid grow content-center md:justify-items-end",children:[t&&c.jsx("h1",{className:"text-primary text-xl font-semibold md:my-4 md:text-2xl lg:text-5xl",children:t},"title"),n&&c.jsx("p",{className:"hidden max-w-xs text-slate-600 md:block dark:text-slate-400",children:n},"subtitle")]}),c.jsx(Ni,{className:"m-1 md:m-2"},"localeSelector")]}),c.jsx("main",{className:"w-full p-6 md:max-w-3xl md:px-12",children:e})]})}function Wi(e,t,n){if(!e)return[t];const r=e.findIndex(n);return r===-1?[...e,t]:[...e.slice(0,r),t,...e.slice(r+1)]}function me(e,t){const{showBoundary:n}=Xi();return m.useCallback(async(...r)=>{try{return await e(...r)}catch(i){throw i instanceof Ci&&n(i),i}},t.concat(n))}function Ki({sessions:e=[],onRedirected:t}){const[n]=m.useState(()=>new ki),[r,i]=m.useState(e),{i18n:s,_:a}=B(),{locale:o}=s,l=m.useCallback(S=>{i(E=>{var w;return S===(((w=E.find(R=>R.selected))==null?void 0:w.account.sub)||null)?E:E.map(R=>({...R,selected:R.account.sub===S}))})},[i]),d=m.useCallback(({account:S,ephemeralToken:E,consentRequired:w=!0,selected:R=!0,loginRequired:k=!1})=>{const C={account:S,ephemeralToken:E,selected:R,loginRequired:k,consentRequired:w};i(F=>Wi(F,C,L=>L.account.sub===S.sub).map(L=>!R||L===C||!L.selected?L:{...L,selected:!1}))},[i]),u=m.useCallback(S=>{window.location.href=String(S),t&&setTimeout(t)},[t]),h=me(async(S,E)=>{const w=await n.fetch("POST","/sign-in",{...S,locale:o},{signal:E});d(w)},[n,o,d]),f=me(async(S,E)=>{await n.fetch("POST","/reset-password-request",{...S,locale:o},{signal:E})},[n,o]),p=me(async(S,E)=>{await n.fetch("POST","/reset-password-confirm",S,{signal:E})},[n]),y=me(async(S,E)=>{await n.fetch("POST","/verify-handle-availability",S,{signal:E})},[n]),b=me(async(S,E)=>{const w=await n.fetch("POST","/sign-up",{...S,locale:o},{signal:E});d(w)},[n,o,d]),x=me(async S=>{var R;const E=(R=r.find(k=>k.account.sub===S))==null?void 0:R.ephemeralToken,{url:w}=await n.fetch("POST","/accept",{sub:S},{bearer:E});u(w)},[n,r,u]),T=me(async()=>{const{url:S}=await n.fetch("POST","/reject",{});u(S)},[n,u]);return{sessions:r,selectSub:l,doSignIn:h,doInitiatePasswordReset:f,doConfirmResetPassword:p,doValidateNewHandle:y,doSignUp:b,doAccept:x,doReject:T}}function be(e,t){return m.useCallback(()=>e(t),[e,t])}function V({color:e="grey",transparent:t=!1,loading:n=void 0,square:r=!1,children:i,className:s,type:a="button",role:o="Button",disabled:l=!1,...d}){return c.jsx("button",{role:o,type:a,disabled:l||n===!0,...d,className:P("cursor-pointer touch-manipulation overflow-hidden truncate rounded-md tracking-wide",r?"p-2":"px-6 py-2",e==="primary"?P("accent-slate-100",t?"text-primary bg-transparent":"bg-primary text-primary-contrast"):e==="grey"?P("accent-primary","text-slate-600 dark:text-slate-300","hover:bg-gray-200 dark:hover:bg-gray-700",t?"bg-transparent":"bg-gray-100 dark:bg-gray-800"):void 0,"disabled:opacity-50",s),children:i})}function hn({actions:e,cancel:t,append:n,children:r,prepend:i,disabled:s,inert:a=s,...o}){return c.jsxs("form",{...o,inert:a,className:"flex flex-col space-y-4",children:[i&&c.jsx("div",{children:i},"prepend"),c.jsx("div",{className:"space-y-4",children:r},"children"),n&&c.jsx("div",{children:n},"append"),(e||t)&&c.jsxs("div",{className:"flex flex-row-reverse flex-wrap items-center justify-end space-x-2 space-x-reverse",children:[e,c.jsx("div",{className:"flex-auto"}),t]},"buttons")]})}function Ji({account:e,...t}){return c.jsx("b",{...t,children:e.preferred_username||e.email||e.sub})}const Zi=e=>{try{const t=new URL(e);return t.protocol==="https:"&&t.pathname==="/oauth-client-metadata.json"&&!t.port&&!t.search}catch{return!1}};function Qi({url:e,proto:t=!1,host:n=!0,path:r=!1,query:i=!1,hash:s=!1,as:a="span",...o}){const l=m.useMemo(()=>e instanceof URL?e:new URL(e),[e]);return c.jsxs(a,{...o,children:[t&&c.jsx(Ge,{value:`${l.protocol}//`,...t===!0?null:t}),n&&c.jsx(Ge,{value:l.host,...n===!0?{faded:!1,bold:!0}:n}),r&&c.jsx(Ge,{value:l.pathname,...r===!0?null:r}),i&&c.jsx(Ge,{value:l.search,...i===!0?null:i}),s&&c.jsx(Ge,{value:l.hash,...s===!0?null:s})]})}function Ge({value:e,faded:t=!0,bold:n=!1}){const r=n?"b":"span";return c.jsx(r,{className:t?"opacity-50":"",children:e})}function es({clientId:e,clientMetadata:t,clientTrusted:n,...r}){const i=m.useMemo(()=>{try{return new URL(e)}catch{return null}},[e]);if(n&&t.client_name)return c.jsx("span",{...r,children:t.client_name});if((i==null?void 0:i.protocol)==="http:")return c.jsx("span",{...r,children:c.jsx(v,{id:"eYNzrj"})});if((i==null?void 0:i.protocol)==="https:"){const s=Zi(e);return c.jsx(Qi,{...r,url:i,proto:!s,host:!0,path:!s,query:!s,hash:!1})}return c.jsx("span",{...r,children:e})}function ts({clientId:e,clientMetadata:t,clientTrusted:n,account:r,scopeDetails:i,onAccept:s,onReject:a,onBack:o,...l}){const{i18n:d,_:u}=B();return c.jsxs(hn,{...l,onSubmit:h=>{h.preventDefault(),s()},cancel:o&&c.jsx(V,{onClick:o,children:"Back"}),actions:c.jsxs(c.Fragment,{children:[c.jsx(V,{type:"submit",color:"primary",children:c.jsx(v,{id:"yIVrHZ"})}),c.jsx(V,{onClick:a,children:c.jsx(v,{id:"54JiGG"})})]}),children:[n&&t.logo_uri&&c.jsx("div",{className:"flex items-center justify-center",children:c.jsx("img",{src:t.logo_uri,alt:t.client_name,className:"h-16 w-16 rounded-full"})},"logo"),c.jsx("p",{children:c.jsx(v,{id:"BVbdlE",components:{0:c.jsx(es,{clientId:e,clientMetadata:t,clientTrusted:n}),1:c.jsx(Ji,{account:r})}})}),c.jsx("p",{children:c.jsx(v,{id:"/aj5l4",components:{0:c.jsx("b",{}),1:c.jsx("a",{role:"link",href:t.tos_uri,rel:"nofollow noopener",target:"_blank",className:"text-primary underline"}),2:c.jsx("a",{role:"link",href:t.policy_uri,rel:"nofollow noopener",target:"_blank",className:"text-primary underline"})}})}),i!=null&&i.length?c.jsx("ul",{className:"list-inside list-disc","aria-label":d._({id:"c7cY3z"}),children:i.map(({scope:h,description:f})=>c.jsx("li",{children:f?c.jsx(Di,{value:f}):c.jsx(ns,{scope:h})},h))},"scopes"):null]})}function ns({scope:e}){switch(e){case"atproto":return c.jsx(v,{id:"BWM1dL"});case"transition:email":return c.jsx(v,{id:"gISrde"});case"transition:generic":return c.jsx(v,{id:"myiH7A"});case"transition:chat.bsky":return c.jsx(v,{id:"kJrqQq"});default:return e}}function rs({clientId:e,clientMetadata:t,clientTrusted:n,account:r,scopeDetails:i,onAccept:s,onReject:a,onBack:o,title:l,subtitle:d=c.jsx(v,{id:"QdVx1C",values:{0:r.preferred_username||r.email||r.sub},components:{0:c.jsx("b",{className:"text-slate-800 dark:text-slate-200"})}}),...u}){const{i18n:h,_:f}=B();return c.jsx(J,{...u,title:l??h._({id:"yIVrHZ"}),subtitle:d,children:c.jsx(ts,{clientId:e,clientMetadata:t,clientTrusted:n,account:r,scopeDetails:i,onBack:o,onAccept:s,onReject:a})})}const Rt=m.createContext({disabled:!1});Rt.displayName="FieldsetContext";function ce({label:e,children:t,disabled:n,...r}){const i=St({prefix:"fieldset-"}),s=m.useMemo(()=>({disabled:n??!1,labelId:e?i:void 0}),[n,e,i]);return c.jsxs("fieldset",{...r,"aria-labelledby":i,disabled:n,children:[e&&c.jsx("legend",{id:i,className:"mb-1 text-sm font-medium text-slate-600 dark:text-slate-400",children:e},"title"),c.jsx("div",{className:"flex flex-col space-y-4",children:c.jsx(Rt,{value:s,children:t})})]})}function is(e,{ref:t,onLoading:n,onError:r}={}){const[i,s]=m.useState(!1),[a,o]=m.useState(),l=m.useCallback(p=>{o(p),r==null||r(p)},[r]),d=m.useCallback(p=>{s(p),n==null||n(p)},[n]),u=m.useRef(null),h=m.useRef(null);m.useEffect(()=>(h.current=()=>{var p;(p=u.current)==null||p.abort(),u.current=null,l(void 0),d(!1)},()=>{h.current=null}),[l,d]),m.useImperativeHandle(t,()=>({reset:()=>{var p;return(p=h.current)==null?void 0:p.call(h)}}),[]),m.useEffect(()=>()=>{var p;(p=u.current)==null||p.abort(),u.current=null},[]);const f=m.useCallback(async()=>{var b;(b=u.current)==null||b.abort(),d(!0),l(void 0);const p=new AbortController,{signal:y}=p;u.current=p;try{await e(y)}catch(x){p===u.current?l(x instanceof Error?x:new Error(String(x))):ss(y,x)||console.warn("Async action error after abort",x)}finally{p===u.current&&(u.current=null,d(!1)),p.abort()}},[e,d,l]);return{loading:i,error:a,run:f}}function ss(e,t){return e.aborted&&(e.reason===t||e.reason===(t==null?void 0:t.cause)||t instanceof DOMException&&t.name==="AbortError")}const as=({error:e})=>c.jsx(Ii,{error:e});function Be({invalid:e,disabled:t,onSubmit:n,submitLabel:r,onCancel:i=void 0,cancelLabel:s,errorRender:a=as,ref:o,onLoading:l,onError:d,children:u,...h}){const{run:f,loading:p,error:y}=is(n,{ref:o,onError:d,onLoading:l}),b=m.useCallback(x=>{x.preventDefault(),x.currentTarget.reportValidity()&&!t&&!e&&f()},[t,e,f]);return c.jsx(hn,{...h,onSubmit:b,disabled:t||p,prepend:y!=null?a({error:y}):void 0,cancel:i&&c.jsx(V,{onClick:i,children:s||c.jsx(v,{id:"dEgA5A"})}),actions:c.jsx(V,{color:"primary",type:"submit",loading:p,disabled:t,children:r||c.jsx(v,{id:"hQRttt"})}),children:u})}const se=8,os=/(\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/,Je=/[A-Z]/,Ze=/[a-z]/,Qe=/[0-9]/,et=/[^a-zA-Z0-9]/;var ve=function(e){return e[e.weak=1]="weak",e[e.moderate=2]="moderate",e[e.strong=3]="strong",e[e.extra=4]="extra",e}({});function wr(e){return e.length<se?1:e.length>=se+12?4:e.length>=se+8?ie(e,[et])||ie(e,[Je,Ze,Qe],2)?4:3:e.length>=se&&ie(e,[os])?3:e.length>=se+6?ie(e,[et])||ie(e,[Je,Ze,Qe],2)?3:2:e.length>=se+4?ie(e,[et])||ie(e,[Je,Ze,Qe],2)?2:1:e.length>=se&&(ie(e,[et])||ie(e,[Je,Ze,Qe]))?2:1}function ie(e,t,n=t.length){if(n<1||n>t.length)throw new TypeError("Invalid regexpsCountToMatch");for(const r of t)if(r.test(e)&&(n--,n===0))return!0;return!1}function cs({password:e,...t}){const{i18n:n,_:r}=B(),i=wr(e);return c.jsx("span",{...t,"aria-label":n._({id:"osAB4a"}),children:i===ve.extra?c.jsx(v,{id:"/Ltc/k"}):i===ve.strong?c.jsx(v,{id:"LLx/nr"}):i===ve.moderate?c.jsx(v,{id:"dvYuhh"}):e?c.jsx(v,{id:"9ls/Vs"}):c.jsx(v,{id:"VU3Nrn"})})}function ls({password:e,className:t,...n}){const{i18n:r,_:i}=B(),s=e?wr(e):0,a="bg-gray-300 dark:bg-slate-500",o=s===ve.extra||s===ve.strong?"bg-success":s===ve.moderate?"bg-warning":"bg-error";return c.jsx("div",{...n,className:P("flex h-1 w-full space-x-2",t),role:"meter","aria-label":r._({id:"xfNKwI"}),"aria-valuemin":0,"aria-valuemax":ve.extra,"aria-valuenow":s,children:Array.from({length:4},(l,d)=>c.jsx("div",{className:`h-1 w-1/4 rounded-sm ${s>d?o:a}`},d))})}function us(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function _e(e){return t=>{for(const n of e)n&&us(n,t)}}function ds({visible:e,toggleVisible:t,onClick:n,...r}){const{i18n:i,_:s}=B();return c.jsx(V,{...r,square:!0,onClick:a=>{n==null||n(a),a.defaultPrevented||t()},"aria-label":e?i._({id:"vLyv1R"}):i._({id:"huXYDE"}),children:e?c.jsx(Ui,{className:"w-5","aria-hidden":!0}):c.jsx(Bi,{className:"w-5","aria-hidden":!0})})}function gt({icon:e,append:t,bellow:n,className:r,children:i,onFocus:s,onBlur:a,...o}){const[l,d]=m.useState(!1);return c.jsxs("div",{...o,onFocus:u=>{s==null||s(u),u.defaultPrevented||d(!0)},onBlur:u=>{a==null||a(u),u.defaultPrevented||d(!1)},className:P("min-h-12","max-w-full","overflow-hidden","rounded-lg",r),children:[c.jsxs("div",{className:P("px-1","min-h-12 w-full","flex items-center justify-stretch","rounded-lg",n?"rounded-bl-none rounded-br-none":void 0,"outline-hidden","border-2 border-solid border-transparent","focus:border-primary has-focus:border-primary","hover:border-gray-400 hover:focus:border-gray-400","dark:hover:border-gray-500 dark:hover:focus:border-gray-500","has-focus:bg-slate-200 bg-gray-100 focus:bg-slate-200","dark:has-focus:bg-slate-700 dark:bg-slate-800 dark:focus:bg-slate-700","text-slate-600 dark:text-slate-300","accent-primary"),children:[e&&c.jsx("div",{className:P("shrink-0 grow-0","mx-1",l?"text-primary":"text-slate-500"),children:e}),i,c.jsx("div",{className:"ml-1 flex shrink-0 grow-0 items-center",children:t})]}),n&&c.jsx("div",{className:P("space-x-2 px-3 py-2","flex flex-row items-center gap-1","rounded-br-2 rounded-bl-2","bg-gray-200 dark:bg-slate-700","text-gray-700 dark:text-gray-300","text-sm italic"),children:n})]})}function Oe({icon:e,append:t,bellow:n,className:r,onFocus:i,onBlur:s,ref:a,disabled:o,title:l,"aria-label":d=l,"aria-labelledby":u,placeholder:h=d,...f}){const p=m.useContext(Rt),y=m.useRef(null),b=m.useRef(!1);return c.jsx(gt,{icon:e,append:t,bellow:n,className:P("cursor-text",r),tabIndex:-1,onClick:x=>{var T;y.current!==x.target&&(x.preventDefault(),x.stopPropagation(),(T=y.current)==null||T.focus())},onMouseDown:x=>{b.current&&x.target!==y.current&&(x.preventDefault(),x.stopPropagation())},children:c.jsx("input",{...f,disabled:o??p.disabled,title:l,placeholder:h,"aria-label":d,"aria-labelledby":u??p.labelId,ref:_e([a,y]),className:"outline-hidden w-full text-ellipsis bg-transparent bg-clip-padding text-base text-inherit dark:placeholder-gray-500",onFocus:x=>{i==null||i(x),x.defaultPrevented||(b.current=!0)},onBlur:x=>{s==null||s(x),x.defaultPrevented||(b.current=!1)}})})}function Rr({autoHide:e=!0,onBlur:t,onChange:n,append:r,autoComplete:i="current-password",icon:s=c.jsx(Oi,{className:"w-5"}),value:a,defaultValue:o=a,ref:l,title:d,dir:u="auto",autoCapitalize:h="none",autoCorrect:f="off",spellCheck:p="false",...y}){const{i18n:b,_:x}=B(),T=m.useRef(null),[S,E]=m.useState(!1),[w,R]=m.useState(typeof o=="string"?o:""),k=m.useCallback(C=>{n==null||n(C),R(C.target.value)},[n]);return c.jsx(Oe,{...y,title:d??b._({id:"8ZsakT"}),ref:_e([l,T]),dir:u,autoCapitalize:h,autoCorrect:f,spellCheck:p,icon:s,onBlur:e?C=>{t==null||t(C),C.defaultPrevented||E(!1)}:t,value:w,onChange:k,type:S?"text":"password",autoComplete:i,append:c.jsxs(c.Fragment,{children:[c.jsx(ds,{className:"m-1",visible:S,toggleVisible:()=>{var C;E(F=>!F),(C=T.current)==null||C.focus()}}),r]})})}function jr({password:e="",onPassword:t,onChange:n,autoComplete:r="new-password",minLength:i=se,...s}){const{i18n:a,_:o}=B(),[l,d]=m.useState(e),u=m.useCallback(h=>{const{value:f}=h.target;n==null||n(h),!h.defaultPrevented&&(d(f),t==null||t(h.target.validity.valid?f:void 0))},[n,t]);return c.jsx(Rr,{...s,placeholder:a._({id:"3tOlz6"}),"aria-label":a._({id:"0StR7t"}),title:a._({id:"5CqSPX",values:{MIN_PASSWORD_LENGTH:se}}),minLength:i,onChange:u,value:l,autoComplete:r,bellow:c.jsxs(c.Fragment,{children:[c.jsx(ls,{password:l}),c.jsx(cs,{className:"grow-1 min-w-max text-xs text-gray-500 dark:text-gray-400",password:l})]})})}const hs="XXXXX-XXXXX";function Nr({example:e=hs,onToken:t,icon:n=c.jsx(Sr,{className:"w-5"}),title:r=e,onChange:i,value:s,defaultValue:a=s,...o}){const{i18n:l,_:d}=B(),[u,h]=m.useState(typeof a=="string"?a:"");return c.jsx(Oe,{...o,type:"text",autoCapitalize:"characters",autoCorrect:"off",autoComplete:"one-time-code",spellCheck:"false",minLength:11,maxLength:11,dir:"auto",icon:n,pattern:"^[A-Z2-7]{5}-[A-Z2-7]{5}$",placeholder:l._({id:"0hTJM+",values:{example:e}}),title:r,value:u,onChange:f=>{const{value:p,selectionEnd:y,selectionStart:b}=f.currentTarget,x=$n(p);f.currentTarget.value=x;const T=y??b;if(T!=null){const S=$n(p.slice(0,T));f.currentTarget.selectionStart=f.currentTarget.selectionEnd=S.length}h(x),i==null||i(f),f.isDefaultPrevented()||t==null||t(x.length===11?x:null)}})}function $n(e){const t=e.toUpperCase().replaceAll(/[^A-Z2-7]/g,"");return t.length<=5?t:`${t.slice(0,5)}-${t.slice(5,10)}`}function ps({onSubmit:e,invalid:t,...n}){const r=St({prefix:"reset-pwd-email-"}),i=m.useRef(null),[s,a]=m.useState(null),[o,l]=m.useState(void 0);return c.jsxs(Be,{...n,onSubmit:d=>{if(s&&o)return e({token:s,password:o},d)},invalid:t||!s||!o,children:[c.jsx(Tt,{role:"info",children:c.jsx("p",{id:r,className:"text-md",children:c.jsx(v,{id:"imRJNy"})})}),c.jsx(ce,{label:c.jsx(v,{id:"vJgYMA"}),children:c.jsx(Nr,{name:"code","aria-labelledby":r,enterKeyHint:"next",required:!0,autoFocus:!0,onToken:d=>{var u;a(d),d&&((u=i.current)==null||u.focus())}})}),c.jsx(ce,{label:c.jsx(v,{id:"/nT6AE"}),children:c.jsx(jr,{ref:i,name:"password",enterKeyHint:"done",required:!0,password:o,onPassword:l})})]})}function kr({onEmail:e,autoCapitalize:t="none",autoComplete:n="email",autoCorrect:r="off",dir:i="auto",icon:s=c.jsx(wt,{className:"w-5"}),onBlur:a,onChange:o,pattern:l="^[^@]+@[^@]+\\.[^@]+$",spellCheck:d="false",value:u,defaultValue:h=u,title:f,...p}){const{i18n:y,_:b}=B(),[x,T]=m.useState(typeof h=="string"?h:""),S=m.useCallback(E=>{const w=E.target.value.toLowerCase();T(w),o==null||o(E),e==null||e(E.target.validity.valid?w:void 0)},[o,e]);return c.jsx(Oe,{...p,title:f??y._({id:"ATGYL1"}),type:"email",autoCapitalize:t,autoCorrect:r,dir:i,spellCheck:d,icon:s,pattern:l,autoComplete:n,value:x,onChange:S,onBlur:a})}function fs({emailDefault:e,onSubmit:t,invalid:n,ref:r,...i}){const{i18n:s,_:a}=B(),o=St({prefix:"reset-pwd-email-"}),[l,d]=m.useState(e),u=m.useRef(null),h=m.useCallback(f=>{if(l)return t({email:l},f)},[l,t]);return c.jsx(Be,{...i,ref:_e([r,u]),invalid:n||!l,onSubmit:h,children:c.jsxs(ce,{label:c.jsx(v,{id:"ATGYL1"}),children:[c.jsx(kr,{name:"email",placeholder:s._({id:"xRPn3U"}),"aria-labelledby":o,title:s._({id:"ATGYL1"}),required:!0,autoFocus:!0,value:l,onEmail:f=>{var p;(p=u.current)==null||p.reset(),d(f)}}),c.jsx(Tt,{role:"info",children:c.jsx("p",{id:o,className:"",children:c.jsx(v,{id:"cHrOqs"})})})]})})}function _s({emailDefault:e,onresetPasswordRequest:t,onResetPasswordConfirm:n,onBack:r,...i}){const{i18n:s,_:a}=B(),[o,l]=m.useState(0);if(o===0)return c.jsxs(J,{...i,title:i.title||s._({id:"dn8X5t"}),subtitle:i.subtitle||c.jsx(v,{id:"Esfg1M"}),children:[c.jsx(fs,{emailDefault:e,submitLabel:c.jsx(v,{id:"hXzOVo"}),onSubmit:async(d,u)=>{await t(d,u),u.aborted||l(1)},cancelLabel:c.jsx(v,{id:"iH8pgl"}),onCancel:r}),c.jsx("hr",{className:"my-5 border-gray-300 dark:border-gray-700"}),c.jsx("center",{children:c.jsx(V,{transparent:!0,onClick:()=>l(1),children:c.jsx(v,{id:"FTT4a4"})})})]});if(o===1)return c.jsx(J,{...i,title:i.title||s._({id:"KbS2K9"}),subtitle:i.subtitle||c.jsx(v,{id:"xg/UcZ"}),children:c.jsx(ps,{submitLabel:c.jsx(v,{id:"hXzOVo"}),onSubmit:async(d,u)=>{await n(d,u),u.aborted||l(2)},cancelLabel:c.jsx(v,{id:"iH8pgl"}),onCancel:r})});if(o===2)return c.jsx(J,{...i,title:i.title||s._({id:"fSy6T1"}),subtitle:i.subtitle||c.jsx(v,{id:"+qGdcW"}),children:c.jsxs("center",{children:[c.jsx("h2",{className:"pb-2 text-xl font-bold",children:c.jsx(v,{id:"DKeVgZ"})}),c.jsx("p",{className:"pb-4",children:c.jsx(v,{id:"67nRLM"})}),c.jsx(V,{color:"primary",onClick:r,children:c.jsx(v,{id:"UaXeX3"})})]})});throw new Error(`Invalid view: ${o}`)}function ms({className:e,children:t,id:n,ref:r,disabled:i,title:s,"aria-label":a=s,"aria-labelledby":o,...l}){const d=St("input-checkbox-"),u=m.useRef(null),h=m.useRef(null),f=m.useContext(Rt),p=n??d;return c.jsx(gt,{className:P("cursor-pointer",e),icon:c.jsx("input",{...l,disabled:i??f.disabled,title:s,"aria-label":a,"aria-labelledby":t?void 0:o??f.labelId,ref:_e([r,h]),id:p,className:"accent-primary outline-hidden",type:"checkbox"}),tabIndex:-1,onClick:({target:y})=>{var b;y!==u.current&&y!==h.current&&((b=h.current)==null||b.click())},children:t&&c.jsx("label",{ref:u,htmlFor:p,className:"block w-full cursor-pointer select-none leading-[1.6]",children:t})})}function tt({usernameDefault:e="",usernameReadonly:t=!1,rememberDefault:n=!1,onSubmit:r,onBack:i,backLabel:s,onForgotPassword:a,ref:o,invalid:l,children:d,...u}){const{i18n:h,_:f}=B(),[p,y]=m.useState(e),[b,x]=m.useState(""),[T,S]=m.useState(n),[E,w]=m.useState(null),[R,k]=m.useState(null),[C,F]=m.useState(!1),L=m.useRef(null),re=m.useCallback(()=>{w(null),k(null)},[w,k]),j=m.useCallback(()=>{var H;re(),(H=L.current)==null||H.reset()},[re,L]),M=m.useCallback(async H=>{try{await r({username:p,password:b,remember:T,...R?{[R.type]:E}:{}},H)}catch(q){if(H.aborted)return;if(q instanceof $i){k(q);return}throw q instanceof Yi&&re(),q}},[p,b,T,R,E,r]);return c.jsxs(Be,{...u,ref:_e([o,L]),onLoading:F,onCancel:i,cancelLabel:s??h._({id:"iH8pgl"}),append:d,invalid:l||!p||!b||R!=null&&!E,submitLabel:R?h._({id:"7VpPHA"}):h._({id:"5lWFkC"}),onSubmit:M,children:[c.jsx(ce,{disabled:C,label:c.jsx(v,{id:"sJGljQ"}),children:c.jsx(Oe,{icon:c.jsx(wt,{className:"w-5"}),name:"username",type:"text",title:h._({id:"nZx9mr"}),autoCapitalize:"none",autoCorrect:"off",autoComplete:"username",spellCheck:"false",dir:"auto",enterKeyHint:"next",required:!0,readOnly:t,disabled:t,autoFocus:!0,value:p,onChange:H=>{j(),y(H.target.value)}})}),c.jsx(ce,{disabled:C,label:c.jsx(v,{id:"8ZsakT"}),children:c.jsx(Rr,{name:"password",onChange:H=>{j(),x(H.target.value)},append:a&&c.jsx(V,{className:"text-sm",type:"button",onClick:()=>{a(p!=null&&p.includes("@")?p:void 0)},"aria-label":h._({id:"slOprG"}),children:c.jsx(v,{id:"F4OP4y"})}),enterKeyHint:R?"next":"done",disabled:C,required:!0})}),c.jsxs(Tt,{role:"status",children:[c.jsx("p",{className:"text-md text-primary pb-1 font-bold",children:c.jsx(v,{id:"r6y+jM"})}),c.jsx("p",{className:"text-sm",children:c.jsx(v,{id:"+Z2ZNt"})})]}),c.jsx(ms,{name:"remember",title:h._({id:"1TxdLU"}),enterKeyHint:R?"next":"done",checked:T,onChange:H=>S(H.target.checked),children:c.jsx(v,{id:"1TxdLU"})}),R&&c.jsx(ce,{disabled:C,label:c.jsx(v,{id:"4blS0m"}),children:c.jsxs("div",{children:[c.jsx(Nr,{title:h._({id:"ioZOzk"}),enterKeyHint:"done",required:!0,autoFocus:!0,value:E??"",onToken:w}),c.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400",children:c.jsx(v,{id:"B+Yy3b",values:{0:R.hint}})})]})},"2fa")]})}function gs({src:e,alt:t}){const[n,r]=m.useState(!1);return m.useEffect(()=>{r(!1)},[e]),e&&!n?c.jsx("img",{"aria-hidden":!0,src:e,alt:t,className:"-ml-1 h-6 w-6 rounded-full",onError:()=>r(!0)}):c.jsx("div",{"aria-hidden":!0,className:"bg-primary border-primary h-6 w-6 overflow-hidden rounded-full border-2 border-solid text-white",children:c.jsx(Gi,{className:"-mx-1 -mb-1"})})}function ys({accounts:e,onAccount:t,onOther:n=void 0,onBack:r,onSignUp:i,backLabel:s,children:a,...o}){const{i18n:l,_:d}=B();return c.jsxs(hn,{...o,append:a,actions:i&&c.jsx(V,{onClick:i,color:"primary",transparent:!0,children:c.jsx(v,{id:"e+RpCP"})}),cancel:r&&c.jsx(V,{onClick:r,children:s||c.jsx(v,{id:"iH8pgl"})}),children:[c.jsx("p",{className:"text-sm font-medium text-slate-600 dark:text-slate-400",children:c.jsx(v,{id:"FT1MVS"})}),e.map(u=>c.jsx(gt,{tabIndex:0,onKeyDown:h=>{(h.key==="Enter"||h.key===" ")&&t(u)},onClick:()=>t(u),role:"button","aria-label":l._({id:"N9o7n5",values:{0:u.name}}),icon:c.jsx(gs,{src:u.picture,alt:l._({id:"kfcRb0"})}),append:c.jsx(Bn,{"aria-hidden":!0,className:"h-4"}),className:"cursor-pointer",children:c.jsxs("span",{className:"flex flex-wrap items-center",children:[u.name&&c.jsx("span",{className:"mr-2 truncate font-medium","arial-label":l._({id:"6YtxFj"}),children:u.name}),c.jsx("span",{className:"truncate text-sm text-neutral-500 dark:text-neutral-400","arial-label":l._({id:"sJGljQ"}),children:u.preferred_username||u.email||u.sub})]})},u.sub)),n&&c.jsx(gt,{tabIndex:0,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&n()},onClick:n,"aria-label":l._({id:"cR9UpQ"}),role:"button",append:c.jsx(Bn,{"aria-hidden":!0,className:"h-4"}),icon:c.jsx(wt,{"aria-hidden":!0,className:"h-4"}),className:"cursor-pointer",children:c.jsx("span",{className:"truncate text-slate-700 dark:text-slate-400",children:c.jsx(v,{id:"+TaG50"})})},"other")]})}function vs({loginHint:e,sessions:t,selectSub:n,onSignIn:r,onSignUp:i,onForgotPassword:s,onBack:a,backLabel:o,title:l,subtitle:d,...u}){const{i18n:h,_:f}=B(),p=m.useMemo(()=>t.find(S=>S.selected),[t]),y=m.useCallback(()=>n(null),[n]),b=m.useMemo(()=>t.map(S=>S.account),[t]),[x,T]=m.useState(t.length===0);return l??(l=h._({id:"5lWFkC"})),m.useEffect(()=>{p&&T(!1)},[p]),p?p.loginRequired?c.jsx(J,{...u,title:l,subtitle:d??c.jsx(v,{id:"HaGV2g"}),children:c.jsx(tt,{onSubmit:r,onForgotPassword:s,onBack:y,usernameDefault:p.account.preferred_username||p.account.sub,usernameReadonly:!0,rememberDefault:!0})}):null:e?c.jsx(J,{...u,title:l,subtitle:d??c.jsx(v,{id:"NgaR6B"}),children:c.jsx(tt,{onSubmit:r,onForgotPassword:s,onBack:a,backLabel:o,usernameDefault:e,usernameReadonly:!0})}):t.length===0?c.jsx(J,{...u,title:l,subtitle:d??c.jsx(v,{id:"T0KLp4"}),children:c.jsx(tt,{onSubmit:r,onForgotPassword:s,onBack:a,backLabel:o})}):x?c.jsx(J,{...u,title:l,subtitle:d??c.jsx(v,{id:"T0KLp4"}),children:c.jsx(tt,{onSubmit:r,onForgotPassword:s,onBack:()=>T(!1)})}):c.jsx(J,{...u,title:l,subtitle:d??c.jsx(v,{id:"o3dwub"}),children:c.jsx(ys,{accounts:b,onAccount:S=>n(S.sub),onOther:()=>T(!0),onBack:a,backLabel:o,onSignUp:i})})}const ae=e=>e!=null&&e!==!1,xs=e=>ae(e)&&e.invalid===!0,Es=e=>!ae(e)||e.invalid===!1;function bs(e){const t=e.findIndex(ae),n=e.findLastIndex(ae),r=e.findIndex(xs),[i,s]=m.useState(t),a=m.useCallback(E=>E!==-1&&e[E]?(s(E),!0):!1,[e.map(ae).join()]),o=e.findLastIndex((E,w)=>ae(E)&&w<i),l=e.findIndex((E,w)=>ae(E)&&w>i),d=m.useCallback(()=>a(t),[a,t]),u=m.useCallback(()=>a(n),[a,n]),h=m.useCallback(()=>a(o),[a,o]),f=m.useCallback(()=>a(l),[a,l]),p=m.useCallback(()=>a(r),[a,r]),y=i+1+e.reduce((E,w,R)=>R>=i||ae(w)?E:E-1,0),b=e.filter(ae).length,x=e.every(Es),T=i===-1||!e[i]?void 0:e[i],S=i===-1;return m.useEffect(()=>{S&&d()},[S]),{current:T,currentPosition:y,count:b,completed:x,atFirst:y===1,atLast:y===b,toFirst:d,toLast:u,toPrev:h,toNext:f,toRequired:p}}function Ss({prevLabel:e,nextLabel:t,onBack:n,backLabel:r,onDone:i,doneLabel:s,steps:a,className:o,...l}){var k,C;const{atFirst:d,atLast:u,count:h,current:f,currentPosition:p,completed:y,toNext:b,toPrev:x,toRequired:T}=bs(a),S=m.useCallback(()=>{b()||T()},[b,T]),E={current:!0,invalid:f?f.invalid:!1,prevLabel:d&&r||e||c.jsx(v,{id:"iH8pgl"}),prev:d?n:x,nextLabel:u&&s||t||c.jsx(v,{id:"hXzOVo"}),next:u&&y?i:S},w=(k=f==null?void 0:f.titleRender)==null?void 0:k.call(f,E),R=(C=f==null?void 0:f.contentRender)==null?void 0:C.call(f,E);return c.jsxs("div",{className:P(o,"flex flex-col"),...l,children:[c.jsx("p",{className:"text-slate-500 dark:text-slate-400",children:c.jsx(v,{id:"BEx8rG",values:{currentPosition:p,count:h}})}),w&&c.jsx("h2",{className:"mb-4 text-xl font-medium",children:w}),R]})}function Ts({links:e,className:t,...n}){const r=e==null?void 0:e.find(i=>i.rel==="help");return r?c.jsx("p",{...n,className:P("rounded-md bg-slate-100 p-3 text-sm text-slate-800 dark:bg-slate-800 dark:text-slate-400",t),children:c.jsx(v,{id:"87VTIH",components:{0:c.jsx("a",{role:"link",href:r.href,rel:r.rel,target:"_blank",className:"text-primary"})}})}):null}function ws({inviteCodeRequired:e=!0,credentials:t,onCredentials:n,onNext:r,nextLabel:i,onPrev:s,prevLabel:a,children:o,ref:l,invalid:d,...u}){const{i18n:h,_:f}=B(),[p,y]=m.useState(t==null?void 0:t.email),[b,x]=m.useState(t==null?void 0:t.password),[T,S]=m.useState(t==null?void 0:t.inviteCode),E=m.useRef(null),w=()=>{var k;return(k=E.current)==null?void 0:k.reset()},R=m.useMemo(()=>p&&b&&(!e||T)?{email:p,password:b,inviteCode:e?T:void 0}:void 0,[p,b,T,e]);return m.useEffect(()=>{n==null||n(R)},[R,n]),c.jsxs(Be,{...u,ref:_e([l,E]),invalid:d||!R,onCancel:s,cancelLabel:a,onSubmit:r,submitLabel:i,append:o,children:[e&&c.jsx(ce,{label:c.jsx(v,{id:"6KlkHI"}),children:c.jsx(Oe,{icon:c.jsx(Sr,{className:"w-5"}),autoFocus:!0,name:"inviteCode",title:h._({id:"6KlkHI"}),placeholder:h._({id:"jxqcgY"}),required:!0,value:T||"",onChange:k=>{S(k.target.value||void 0),w()},enterKeyHint:"next"})}),c.jsx(ce,{label:c.jsx(v,{id:"O3oNi5"}),children:c.jsx(kr,{autoFocus:!e,name:"email",enterKeyHint:"next",required:!0,defaultValue:p,onEmail:k=>{y(k),w()}})}),c.jsx(ce,{label:c.jsx(v,{id:"8ZsakT"}),children:c.jsx(jr,{name:"password",enterKeyHint:"next",required:!0,password:b,onPassword:k=>{x(k),w()}})})]})}function Gt({links:e,className:t,...n}){const r=e==null?void 0:e.find(s=>s.rel==="terms-of-service"),i=e==null?void 0:e.find(s=>s.rel==="privacy-policy");return c.jsx("p",{className:P("text-sm text-slate-500 dark:text-slate-400",t),...n,children:c.jsx(v,{id:"mBUXx0",values:{0:r?c.jsx(On,{className:"text-primary underline",link:r,children:c.jsx(v,{id:"xowcRf"})}):c.jsx(v,{id:"xowcRf"}),1:i?c.jsx(On,{className:"text-primary underline",link:i,children:c.jsx(v,{id:"LcET2C"})}):c.jsx(v,{id:"LcET2C"})}})})}const Rs=18,Cr=3,Dr=30,js=e=>Cr+e.length<=Dr&&e.startsWith(".")&&!e.endsWith(".");function Ns(e){const t=Cr,n=Math.min(Rs,Dr-e.length),r=m.useCallback(i=>{const s=i.length>=t&&i.length<=n,a=/^[a-z0-9][a-z0-9-]+[a-z0-9]$/g.test(i);return{validLength:s,validCharset:a,valid:s&&a}},[n,t]);return{minLength:t,maxLength:n,validateSegment:r}}function ks({domains:e,onNext:t,nextLabel:n,onPrev:r,prevLabel:i,handle:s,onHandle:a,invalid:o,children:l,ref:d,...u}){const{i18n:h,_:f}=B(),p=e.filter(js),y=m.useRef(null),[b,x]=m.useState(()=>{const j=p.findIndex(M=>s==null?void 0:s.endsWith(M));return j===-1?0:j}),[T,S]=m.useState(()=>(s==null?void 0:s.split(".")[0])||"");m.useEffect(()=>{x(j=>Math.min(j,p.length-1))},[p.length]);const E=p[b]||p[0]||null,{minLength:w,maxLength:R,validateSegment:k}=Ns(E),C=k(T),F=E&&C.valid?`${T}${E}`:void 0;m.useEffect(()=>{var j;(j=y.current)==null||j.reset(),a==null||a(F)},[a,F]);const L=m.useRef(null),re=`@${T}${E}`;return c.jsxs(Be,{...u,ref:_e([d,y]),onCancel:r,cancelLabel:i,onSubmit:t,submitLabel:n,invalid:o||!F,append:l,children:[c.jsxs("div",{children:[c.jsx(Yn,{hasValue:!!T,valid:C.validLength,children:c.jsx(v,{id:"4Rgp24",values:{minLength:w,maxLength:R}})}),c.jsx(Yn,{hasValue:!!T,valid:C.validCharset,children:c.jsx(v,{id:"yDlXDJ"})})]}),c.jsx(Oe,{ref:L,icon:c.jsx(wt,{className:"w-5"}),name:"handle",type:"text",title:h._({id:"LX2sHe"}),pattern:"[a-z0-9][a-z0-9\\-]+[a-z0-9]",minLength:w,maxLength:R,autoCapitalize:"none",autoCorrect:"off",autoComplete:"off",dir:"auto",enterKeyHint:"done",autoFocus:!0,required:!0,value:T,onChange:j=>{const M=j.target.value.toLowerCase(),H=j.target.selectionStart,q=j.target.selectionEnd;j.target.value=M,j.target.setSelectionRange(H,q),S(M)},append:p.length>1&&c.jsx("select",{onClick:j=>j.stopPropagation(),onMouseDown:j=>j.stopPropagation(),value:b,"aria-label":h._({id:"HB+TbB"}),onChange:j=>{var M;x(Number(j.target.value)),(M=L.current)==null||M.focus()},className:P("block w-full","text-sm","rounded-lg p-2","bg-white dark:bg-slate-600"),children:p.map((j,M)=>c.jsx("option",{value:M,children:j},j))}),bellow:c.jsx(v,{id:"r/b/p8",values:{0:T.length?c.jsx("strong",{className:"text-gray-800 dark:text-gray-200",children:re}):c.jsx("span",{"aria-hidden":!0,className:"w-24 rounded-md bg-gray-300 p-2 dark:bg-slate-600"})}})}),c.jsx(Tt,{role:"status",children:c.jsx("p",{className:"text-md",children:c.jsx(v,{id:"B9VwbO"})})})]})}function Yn({valid:e,hasValue:t,children:n,className:r,...i}){const{i18n:s,_:a}=B();return c.jsxs("div",{...i,className:P("flex flex-row items-center gap-2",r),children:[t?c.jsx(c.Fragment,{children:e?c.jsx(Li,{className:"text-success inline-block h-4 w-4",title:s._({id:"nfagfM"})}):c.jsx(Pi,{className:"text-error inline-block h-4 w-4",title:s._({id:"JHB/Ky"})})}):c.jsx("div",{"aria-hidden":!0,className:"flex h-4 w-4 items-center justify-center",children:c.jsx("div",{className:"h-2 w-2 rounded-full bg-gray-300 dark:bg-slate-600"})}),c.jsx("div",{className:"text-sm",children:n})]})}function X(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ft(e,t){return Ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ft(e,t)}function Cs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ft(e,t)}var Ir=Object.defineProperty,Ds=Object.defineProperties,Is=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,Br=Object.prototype.propertyIsEnumerable,Gn=(e,t,n)=>t in e?Ir(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_=(e,t)=>{for(var n in t||(t={}))Ur.call(t,n)&&Gn(e,n,t[n]);if(yt)for(var n of yt(t))Br.call(t,n)&&Gn(e,n,t[n]);return e},N=(e,t)=>Ds(e,Is(t)),Us=(e,t)=>{var n={};for(var r in e)Ur.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&yt)for(var r of yt(e))t.indexOf(r)<0&&Br.call(e,r)&&(n[r]=e[r]);return n},Or=(e,t)=>{for(var n in t)Ir(e,n,{get:t[n],enumerable:!0})},pn=(e,t,n)=>new Promise((r,i)=>{var s=l=>{try{o(n.next(l))}catch(d){i(d)}},a=l=>{try{o(n.throw(l))}catch(d){i(d)}},o=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,a);o((n=n.apply(e,t)).next())});function Bs(e){return Object.entries(e).filter(([,t])=>t||t===!1).map(([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(String(n))}`).join("&")}function $r(e){let t=e&&e.ownerDocument||document,n=t.defaultView||t.parentWindow||window;return{document:t,window:n}}function Yr(e){return e||document.head}var Os="hCaptcha-script",pt="hCaptchaOnLoad",Vt="script-error",we="@hCaptcha/loader",Gr=Object.prototype.toString;function Lr(e){switch(Gr.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return le(e,Error)}}function $e(e,t){return Gr.call(e)===`[object ${t}]`}function fn(e){return $e(e,"ErrorEvent")}function Ln(e){return $e(e,"DOMError")}function $s(e){return $e(e,"DOMException")}function pe(e){return $e(e,"String")}function Pr(e){return e===null||typeof e!="object"&&typeof e!="function"}function ke(e){return $e(e,"Object")}function jt(e){return typeof Event<"u"&&le(e,Event)}function Ys(e){return typeof Element<"u"&&le(e,Element)}function Gs(e){return $e(e,"RegExp")}function _n(e){return!!(e&&e.then&&typeof e.then=="function")}function Ls(e){return ke(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ar(e){return typeof e=="number"&&e!==e}function le(e,t){try{return e instanceof t}catch{return!1}}function Mr(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function je(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Pn(e,t){if(!Array.isArray(e))return"";let n=[];for(let r=0;r<e.length;r++){let i=e[r];try{Mr(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Ps(e,t,n=!1){return pe(e)?Gs(t)?t.test(e):pe(t)?n?e===t:e.includes(t):!1:!1}function qe(e,t=[],n=!1){return t.some(r=>Ps(e,r,n))}function As(e,t,n=250,r,i,s,a){if(!s.exception||!s.exception.values||!a||!le(a.originalException,Error))return;let o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=Ms(zt(e,t,i,a.originalException,r,s.exception.values,o,0),n))}function zt(e,t,n,r,i,s,a,o){if(s.length>=n+1)return s;let l=[...s];if(le(r[i],Error)){An(a,o);let d=e(t,r[i]),u=l.length;Mn(d,i,u,o),l=zt(e,t,n,r[i],i,[d,...l],d,u)}return Array.isArray(r.errors)&&r.errors.forEach((d,u)=>{if(le(d,Error)){An(a,o);let h=e(t,d),f=l.length;Mn(h,`errors[${u}]`,f,o),l=zt(e,t,n,d,i,[h,...l],h,f)}}),l}function An(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=N(_({},e.mechanism),{is_exception_group:!0,exception_id:t})}function Mn(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=N(_({},e.mechanism),{type:"chained",source:t,exception_id:n,parent_id:r})}function Ms(e,t){return e.map(n=>(n.value&&(n.value=je(n.value,t)),n))}function nt(e){return e&&e.Math==Math?e:void 0}var $=typeof globalThis=="object"&&nt(globalThis)||typeof window=="object"&&nt(window)||typeof self=="object"&&nt(self)||typeof global=="object"&&nt(global)||function(){return this}()||{};function Fe(){return $}function Hr(e,t,n){let r=n||$,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}var ft=Fe(),Hs=80;function Ce(e,t={}){try{let n=e,r=5,i=[],s=0,a=0,o=" > ",l=o.length,d,u=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||Hs;for(;n&&s++<r&&(d=qs(n,u),!(d==="html"||s>1&&a+i.length*l+d.length>=h));)i.push(d),a+=d.length,n=n.parentNode;return i.reverse().join(o)}catch{return"<unknown>"}}function qs(e,t){let n=e,r=[],i,s,a,o,l;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());let d=t&&t.length?t.filter(h=>n.getAttribute(h)).map(h=>[h,n.getAttribute(h)]):null;if(d&&d.length)d.forEach(h=>{r.push(`[${h[0]}="${h[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&pe(i))for(s=i.split(/\s+/),l=0;l<s.length;l++)r.push(`.${s[l]}`);let u=["aria-label","type","name","title","alt"];for(l=0;l<u.length;l++)a=u[l],o=n.getAttribute(a),o&&r.push(`[${a}="${o}"]`);return r.join("")}function Fs(){try{return ft.document.location.href}catch{return""}}function Vs(e){return ft.document&&ft.document.querySelector?ft.document.querySelector(e):null}var zs="Sentry Logger ",Xt=["debug","info","warn","error","log","assert","trace"],vt={};function qr(e){if(!("console"in $))return e();let t=$.console,n={},r=Object.keys(vt);r.forEach(i=>{let s=vt[i];n[i]=t[i],t[i]=s});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function Xs(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Xt.forEach(n=>{t[n]=(...r)=>{e&&qr(()=>{$.console[n](`${zs}[${n}]:`,...r)})}}):Xt.forEach(n=>{t[n]=()=>{}}),t}var g=Xs(),Ws=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ks(e){return e==="http"||e==="https"}function Nt(e,t=!1){let{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${a}`}function Js(e){let t=Ws.exec(e);if(!t){console.error(`Invalid Sentry Dsn: ${e}`);return}let[n,r,i="",s,a="",o]=t.slice(1),l="",d=o,u=d.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),d=u.pop()),d){let h=d.match(/^\d+/);h&&(d=h[0])}return Fr({host:s,pass:i,path:l,projectId:d,port:a,protocol:n,publicKey:r})}function Fr(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Zs(e){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return!0;let{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(g.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?Ks(r)?t&&isNaN(parseInt(t,10))?(g.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(g.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(g.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Qs(e){let t=typeof e=="string"?Js(e):Fr(e);if(!(!t||!Zs(t)))return t}var te=class extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}};function A(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);typeof i=="function"&&Vr(i,r),e[t]=i}function mn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Vr(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,mn(e,"__sentry_original__",t)}catch{}}function gn(e){return e.__sentry_original__}function ea(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function zr(e){if(Lr(e))return _({message:e.message,name:e.name,stack:e.stack},qn(e));if(jt(e)){let t=_({type:e.type,target:Hn(e.target),currentTarget:Hn(e.currentTarget)},qn(e));return typeof CustomEvent<"u"&&le(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Hn(e){try{return Ys(e)?Ce(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function qn(e){if(typeof e=="object"&&e!==null){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function ta(e,t=40){let n=Object.keys(zr(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return je(n[0],t);for(let r=n.length;r>0;r--){let i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:je(i,t)}return""}function he(e){return Wt(e,new Map)}function Wt(e,t){if(ke(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let i of Object.keys(e))typeof e[i]<"u"&&(r[i]=Wt(e[i],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(i=>{r.push(Wt(i,t))}),r}return e}var Xr=50,Fn=/\(error: (.*)\)/,Vn=/captureMessage|captureException/;function na(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{let i=[],s=n.split(`
|
|
2
|
+
`);for(let a=r;a<s.length;a++){let o=s[a];if(o.length>1024)continue;let l=Fn.test(o)?o.replace(Fn,"$1"):o;if(!l.match(/\S*Error: /)){for(let d of t){let u=d(l);if(u){i.push(u);break}}if(i.length>=Xr)break}}return ra(i)}}function ra(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Vn.test(t[t.length-1].function||"")&&(t.pop(),Vn.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Xr).map(n=>N(_({},n),{filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}var Lt="<anonymous>";function fe(e){try{return!e||typeof e!="function"?Lt:e.name||Lt}catch{return Lt}}var Kt=Fe();function ia(){if(!("fetch"in Kt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Jt(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function sa(){if(!ia())return!1;if(Jt(Kt.fetch))return!0;let e=!1,t=Kt.document;if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Jt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}var rt=Fe();function aa(){let e=rt.chrome,t=e&&e.app&&e.app.runtime,n="history"in rt&&!!rt.history.pushState&&!!rt.history.replaceState;return!t&&n}var G=Fe(),Re="__sentry_xhr_v2__",Ae={},zn={};function oa(e){if(!zn[e])switch(zn[e]=!0,e){case"console":ca();break;case"dom":ma();break;case"xhr":da();break;case"fetch":la();break;case"history":ha();break;case"error":ga();break;case"unhandledrejection":ya();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn("unknown instrumentation type:",e);return}}function K(e,t){Ae[e]=Ae[e]||[],Ae[e].push(t),oa(e)}function Z(e,t){if(!(!e||!Ae[e]))for(let n of Ae[e]||[])try{n(t)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.error(`Error while triggering instrumentation handler.
|
|
3
|
+
Type: ${e}
|
|
4
|
+
Name: ${fe(n)}
|
|
5
|
+
Error:`,r)}}function ca(){"console"in $&&Xt.forEach(function(e){e in $.console&&A($.console,e,function(t){return vt[e]=t,function(...n){Z("console",{args:n,level:e});let r=vt[e];r&&r.apply($.console,n)}})})}function la(){sa()&&A($,"fetch",function(e){return function(...t){let{method:n,url:r}=ua(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Z("fetch",_({},i)),e.apply($,t).then(s=>(Z("fetch",N(_({},i),{endTimestamp:Date.now(),response:s})),s),s=>{throw Z("fetch",N(_({},i),{endTimestamp:Date.now(),error:s})),s})}})}function Zt(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Xn(e){return typeof e=="string"?e:e?Zt(e,"url")?e.url:e.toString?e.toString():"":""}function ua(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[n,r]=e;return{url:Xn(n),method:Zt(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:Xn(t),method:Zt(t,"method")?String(t.method).toUpperCase():"GET"}}function da(){if(!G.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;A(e,"open",function(t){return function(...n){let r=n[1],i=this[Re]={method:pe(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};pe(r)&&i.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let s=()=>{let a=this[Re];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}Z("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?A(this,"onreadystatechange",function(a){return function(...o){return s(),a.apply(this,o)}}):this.addEventListener("readystatechange",s),A(this,"setRequestHeader",function(a){return function(...o){let[l,d]=o,u=this[Re];return u&&(u.request_headers[l.toLowerCase()]=d),a.apply(this,o)}}),t.apply(this,n)}}),A(e,"send",function(t){return function(...n){let r=this[Re];return r&&n[0]!==void 0&&(r.body=n[0]),Z("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}})}var it;function ha(){if(!aa())return;let e=G.onpopstate;G.onpopstate=function(...n){let r=G.location.href,i=it;if(it=r,Z("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){let i=r.length>2?r[2]:void 0;if(i){let s=it,a=String(i);it=a,Z("history",{from:s,to:a})}return n.apply(this,r)}}A(G.history,"pushState",t),A(G.history,"replaceState",t)}var pa=1e3,st,at;function fa(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function _a(e){if(e.type!=="keypress")return!1;try{let t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function Wn(e,t=!1){return n=>{if(!n||at===n||_a(n))return;let r=n.type==="keypress"?"input":n.type;st===void 0?(e({event:n,name:r,global:t}),at=n):fa(at,n)&&(e({event:n,name:r,global:t}),at=n),clearTimeout(st),st=G.setTimeout(()=>{st=void 0},pa)}}function ma(){if(!G.document)return;let e=Z.bind(null,"dom"),t=Wn(e,!0);G.document.addEventListener("click",t,!1),G.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{let r=G[n]&&G[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(A(r,"addEventListener",function(i){return function(s,a,o){if(s==="click"||s=="keypress")try{let l=this,d=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},u=d[s]=d[s]||{refCount:0};if(!u.handler){let h=Wn(e);u.handler=h,i.call(this,s,h,o)}u.refCount++}catch{}return i.call(this,s,a,o)}}),A(r,"removeEventListener",function(i){return function(s,a,o){if(s==="click"||s=="keypress")try{let l=this,d=l.__sentry_instrumentation_handlers__||{},u=d[s];u&&(u.refCount--,u.refCount<=0&&(i.call(this,s,u.handler,o),u.handler=void 0,delete d[s]),Object.keys(d).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,a,o)}}))})}var ot=null;function ga(){ot=G.onerror,G.onerror=function(e,t,n,r,i){return Z("error",{column:r,error:i,line:n,msg:e,url:t}),ot&&!ot.__SENTRY_LOADER__?ot.apply(this,arguments):!1},G.onerror.__SENTRY_INSTRUMENTED__=!0}var ct=null;function ya(){ct=G.onunhandledrejection,G.onunhandledrejection=function(e){return Z("unhandledrejection",e),ct&&!ct.__SENTRY_LOADER__?ct.apply(this,arguments):!0},G.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function va(){let e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let s=0;s<t.length;s++)if(t[s]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let s=0;s<t.length;s++)if(t[s]===i){t.splice(s,1);break}}return[n,r]}function z(){let e=$,t=e.crypto||e.msCrypto,n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Wr(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function de(e){let{message:t,event_id:n}=e;if(t)return t;let r=Wr(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Qt(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function He(e,t){let n=Wr(e);if(!n)return;let r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism=_(_(_({},r),i),t),t&&"data"in t){let s=_(_({},i&&i.data),t.data);n.mechanism.data=s}}function Kn(e){if(e&&e.__sentry_captured__)return!0;try{mn(e,"__sentry_captured__",!0)}catch{}return!1}function xa(e){return Array.isArray(e)?e:[e]}function Ea(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function ba(){return"npm"}function Sa(){return!Ea()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Ta(e,t){return e.require(t)}function ue(e,t=100,n=1/0){try{return en("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Kr(e,t=3,n=100*1024){let r=ue(e,t);return Na(r)>n?Kr(e,t-1,n):r}function en(e,t,n=1/0,r=1/0,i=va()){let[s,a]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!Ar(t))return t;let o=wa(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;let l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(s(t))return"[Circular ~]";let d=t;if(d&&typeof d.toJSON=="function")try{let p=d.toJSON();return en("",p,l-1,r,i)}catch{}let u=Array.isArray(t)?[]:{},h=0,f=zr(t);for(let p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(h>=r){u[p]="[MaxProperties ~]";break}let y=f[p];u[p]=en(p,y,l-1,r,i),h++}return a(t),u}function wa(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Mr(t))return"[VueViewModel]";if(Ls(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${fe(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=Ra(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Ra(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function ja(e){return~-encodeURI(e).split(/%..|./).length}function Na(e){return ja(JSON.stringify(e))}var oe;(function(e){e[e.PENDING=0]="PENDING";let t=1;e[e.RESOLVED=t]="RESOLVED";let n=2;e[e.REJECTED=n]="REJECTED"})(oe||(oe={}));function xe(e){return new W(t=>{t(e)})}function yn(e){return new W((t,n)=>{n(e)})}var W=class{constructor(e){W.prototype.__init.call(this),W.prototype.__init2.call(this),W.prototype.__init3.call(this),W.prototype.__init4.call(this),this._state=oe.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new W((n,r)=>{this._handlers.push([!1,i=>{if(!e)n(i);else try{n(e(i))}catch(s){r(s)}},i=>{if(!t)r(i);else try{n(t(i))}catch(s){r(s)}}]),this._executeHandlers()})}catch(e){return this.then(t=>t,e)}finally(e){return new W((t,n)=>{let r,i;return this.then(s=>{i=!1,r=s,e&&e()},s=>{i=!0,r=s,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(oe.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(oe.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===oe.PENDING){if(_n(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===oe.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(t=>{t[0]||(this._state===oe.RESOLVED&&t[1](this._value),this._state===oe.REJECTED&&t[2](this._value),t[0]=!0)})}}};function ka(e){let t=[];function n(){return e===void 0||t.length<e}function r(a){return t.splice(t.indexOf(a),1)[0]}function i(a){if(!n())return yn(new te("Not adding Promise because buffer limit was reached."));let o=a();return t.indexOf(o)===-1&&t.push(o),o.then(()=>r(o)).then(null,()=>r(o).then(null,()=>{})),o}function s(a){return new W((o,l)=>{let d=t.length;if(!d)return o(!0);let u=setTimeout(()=>{a&&a>0&&o(!1)},a);t.forEach(h=>{xe(h).then(()=>{--d||(clearTimeout(u),o(!0))},l)})})}return{$:t,add:i,drain:s}}function Pt(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var Ca=["fatal","error","warning","log","info","debug"];function Da(e){return e==="warn"?"warning":Ca.includes(e)?e:"log"}var Jr=Fe(),tn={nowSeconds:()=>Date.now()/1e3};function Ia(){let{performance:e}=Jr;if(!e||!e.now)return;let t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function Ua(){try{return Ta(Ri,"perf_hooks").performance}catch{return}}var At=Sa()?Ua():Ia(),Jn=At===void 0?tn:{nowSeconds:()=>(At.timeOrigin+At.now())/1e3},kt=tn.nowSeconds.bind(tn),Ee=Jn.nowSeconds.bind(Jn),ne=(()=>{let{performance:e}=Jr;if(!e||!e.now)return;let t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i<t,a=e.timing&&e.timing.navigationStart,o=typeof a=="number"?Math.abs(a+n-r):t,l=o<t;return s||l?i<=o?e.timeOrigin:a:r})(),nn="baggage",Zr="sentry-",Ba=/^sentry-/,Oa=8192;function $a(e){if(!pe(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,i)=>{let s=Zn(i);return _(_({},r),s)},{});else{if(!e)return;t=Zn(e)}let n=Object.entries(t).reduce((r,[i,s])=>{if(i.match(Ba)){let a=i.slice(Zr.length);r[a]=s}return r},{});if(Object.keys(n).length>0)return n}function rn(e){if(!e)return;let t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${Zr}${r}`]=i),n),{});return Ya(t)}function Zn(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function Ya(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{let s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,a=i===0?s:`${t},${s}`;return a.length>Oa?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):a},"")}var Ga=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function La(e){if(!e)return;let t=e.match(Ga);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Pa(e,t){let n=La(e),r=$a(t),{traceId:i,parentSpanId:s,parentSampled:a}=n||{},o={traceId:i||z(),spanId:z().substring(16),sampled:a};return s&&(o.parentSpanId=s),r&&(o.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:o}}function vn(e=z(),t=z().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Ve(e,t=[]){return[e,t]}function Aa(e,t){let[n,r]=e;return[n,[...r,t]]}function Qn(e,t){let n=e[1];for(let r of n){let i=r[0].type;if(t(r,i))return!0}return!1}function sn(e,t){return(t||new TextEncoder).encode(e)}function Ma(e,t){let[n,r]=e,i=JSON.stringify(n);function s(a){typeof i=="string"?i=typeof a=="string"?i+a:[sn(i,t),a]:i.push(typeof a=="string"?sn(a,t):a)}for(let a of r){let[o,l]=a;if(s(`
|
|
6
|
+
${JSON.stringify(o)}
|
|
7
|
+
`),typeof l=="string"||l instanceof Uint8Array)s(l);else{let d;try{d=JSON.stringify(l)}catch{d=JSON.stringify(ue(l))}s(d)}}return typeof i=="string"?i:Ha(i)}function Ha(e){let t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t),r=0;for(let i of e)n.set(i,r),r+=i.length;return n}function qa(e,t){let n=typeof e.data=="string"?sn(e.data,t):e.data;return[he({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var Fa={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function er(e){return Fa[e]}function Qr(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Va(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return _(_(_({event_id:e.event_id,sent_at:new Date().toISOString()},t&&{sdk:t}),!!n&&r&&{dsn:Nt(r)}),i&&{trace:he(_({},i))})}function za(e,t,n){let r=[{type:"client_report"},{timestamp:kt(),discarded_events:e}];return Ve(t?{dsn:t}:{},[r])}function Xa(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function Wa(e,t){return e[t]||e.all||0}function Ka(e,t,n=Date.now()){return Wa(e,t)>n}function Ja(e,{statusCode:t,headers:n},r=Date.now()){let i=_({},e),s=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(s)for(let o of s.trim().split(",")){let[l,d]=o.split(":",2),u=parseInt(l,10),h=(isNaN(u)?60:u)*1e3;if(!d)i.all=r+h;else for(let f of d.split(";"))i[f]=r+h}else a?i.all=r+Xa(a,r):t===429&&(i.all=r+60*1e3);return i}var xn="production";function En(){return Hr("globalEventProcessors",()=>[])}function Za(e){En().push(e)}function xt(e,t,n,r=0){return new W((i,s)=>{let a=e[r];if(t===null||typeof a!="function")i(t);else{let o=a(_({},t),n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a.id&&o===null&&g.log(`Event processor "${a.id}" dropped event`),_n(o)?o.then(l=>xt(e,l,n,r+1).then(i)).then(null,s):xt(e,o,n,r+1).then(i).then(null,s)}})}function Qa(e){let t=Ee(),n={sid:z(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>to(n)};return e&&De(n,e),n}function De(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ee(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:z()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{let n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function eo(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),De(e,n)}function to(e){return he({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}var no=100,Ne=class{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=tr()}static clone(e){let t=new Ne;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags=_({},e._tags),t._extra=_({},e._extra),t._contexts=_({},e._contexts),t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata=_({},e._sdkProcessingMetadata),t._propagationContext=_({},e._propagationContext)),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&De(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=_(_({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,t){return this._tags=N(_({},this._tags),{[e]:t}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=_(_({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,t){return this._extra=N(_({},this._extra),{[e]:t}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if(typeof e=="function"){let t=e(this);return t instanceof Ne?t:this}return e instanceof Ne?(this._tags=_(_({},this._tags),e._tags),this._extra=_(_({},this._extra),e._extra),this._contexts=_(_({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):ke(e)&&(e=e,this._tags=_(_({},this._tags),e.tags),this._extra=_(_({},this._extra),e.extra),this._contexts=_(_({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=tr(),this}addBreadcrumb(e,t){let n=typeof t=="number"?t:no;if(n<=0)return this;let r=_({timestamp:kt()},e),i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={},n){if(this._extra&&Object.keys(this._extra).length&&(e.extra=_(_({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=_(_({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=_(_({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=_(_({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=_({trace:this._span.getTraceContext()},e.contexts);let s=this._span.transaction;if(s){e.sdkProcessingMetadata=_({dynamicSamplingContext:s.getDynamicSamplingContext()},e.sdkProcessingMetadata);let a=s.name;a&&(e.tags=_({transaction:a},e.tags))}}this._applyFingerprint(e);let r=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...r];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata=N(_(_({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),{propagationContext:this._propagationContext}),xt([...n||[],...En(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=_(_({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?xa(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}};function tr(){return{traceId:z(),spanId:z().substring(16)}}var ei=4,ro=100,bn=class{constructor(e,t=new Ne,n=ei){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=Ne.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){let t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let n=this._lastEventId=t&&t.event_id?t.event_id:z(),r=new Error("Sentry syntheticException");return this._withClient((i,s)=>{i.captureException(e,N(_({originalException:e,syntheticException:r},t),{event_id:n}),s)}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:z(),i=new Error(e);return this._withClient((s,a)=>{s.captureMessage(e,t,N(_({originalException:e,syntheticException:i},n),{event_id:r}),a)}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:z();return e.type||(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(e,N(_({},t),{event_id:n}),i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=ro}=r.getOptions&&r.getOptions()||{};if(s<=0)return;let a=kt(),o=_({timestamp:a},e),l=i?qr(()=>i(o,t)):o;l!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",l,t),n.addBreadcrumb(l,s))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=nr(this);try{e(this)}finally{nr(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&!n){let r=this.getClient();console.warn(r?`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
|
|
8
|
+
Sentry.addTracingExtensions();
|
|
9
|
+
Sentry.init({...});
|
|
10
|
+
`:"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop().scope,t=e.getSession();t&&eo(t),this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=xn}=n&&n.getOptions()||{},{userAgent:s}=$.navigator||{},a=Qa(_(_({release:r,environment:i,user:t.getUser()},s&&{userAgent:s}),e)),o=t.getSession&&t.getSession();return o&&o.status==="ok"&&De(o,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){let{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){let n=ze().__SENTRY__;if(n&&n.extensions&&typeof n.extensions[e]=="function")return n.extensions[e].apply(this,t);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function ze(){return $.__SENTRY__=$.__SENTRY__||{extensions:{},hub:void 0},$}function nr(e){let t=ze(),n=an(t);return ti(t,e),n}function Y(){let e=ze();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return io(e)}function io(e=ze()){return(!so(e)||an(e).isOlderThan(ei))&&ti(e,new bn),an(e)}function so(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function an(e){return Hr("hub",()=>new bn,e)}function ti(e,t){if(!e)return!1;let n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function Sn(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let t=Y().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Xe(e){return Y().getScope().getTransaction()}var rr=!1;function ao(){rr||(rr=!0,K("error",on),K("unhandledrejection",on))}function on(){let e=Xe();if(e){let t="internal_error";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}on.tag="sentry_tracingErrorCallback";var ni=class{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}},ri=class{constructor(e={}){this.traceId=e.traceId||z(),this.spanId=e.spanId||z().substring(16),this.startTimestamp=e.startTimestamp||Ee(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){let t=new ri(N(_({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&t.transaction){let n=e&&e.op||"< unknown op >",r=t.transaction.name||"< unknown name >",i=t.transaction.spanId,s=`[Tracing] Starting '${n}' span on transaction '${r}' (${i}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:s},g.log(s)}return t}setTag(e,t){return this.tags=N(_({},this.tags),{[e]:t}),this}setData(e,t){return this.data=N(_({},this.data),{[e]:t}),this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);let t=oo(e);return t!=="unknown_error"&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return this.status==="ok"}finish(e){if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){let{logMessage:t}=this.transaction.metadata.spanMetadata[this.spanId];t&&g.log(t.replace("Starting","Finishing"))}this.endTimestamp=typeof e=="number"?e:Ee()}toTraceparent(){return vn(this.traceId,this.spanId,this.sampled)}toContext(){return he({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return he({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return he({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}};function oo(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function Ct(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},a=he({environment:r.environment||xn,release:r.release,user_segment:s,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}var ii=class extends ri{constructor(e,t){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=t||Y(),this._name=e.name||"",this.metadata=N(_({source:"custom"},e.metadata),{spanMetadata:{}}),this._trimEnd=e.trimEnd,this.transaction=this;let n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext=_({},n))}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new ni(e)),this.spanRecorder.add(this)}setContext(e,t){t===null?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata=_(_({},this.metadata),e)}finish(e){let t=this._finishTransaction(e);if(t)return this._hub.captureEvent(t)}toContext(){let e=super.toContext();return he(N(_({},e),{name:this.name,trimEnd:this._trimEnd}))}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;let e=this._hub||Y(),t=e.getClient();if(!t)return{};let n=e.getScope(),r=Ct(this.traceId,t,n),i=this.metadata.sampleRate;i!==void 0&&(r.sample_rate=`${i}`);let s=this.metadata.source;return s&&s!=="url"&&(r.transaction=this.name),this.sampled!==void 0&&(r.sampled=String(this.sampled)),r}setHub(e){this._hub=e}_finishTransaction(e){if(this.endTimestamp!==void 0)return;this.name||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e);let t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),this.sampled!==!0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(s=>s!==this&&s.endTimestamp):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce((s,a)=>s.endTimestamp&&a.endTimestamp?s.endTimestamp>a.endTimestamp?s:a:s).endTimestamp);let r=this.metadata,i=_({contexts:N(_({},this._contexts),{trace:this.getTraceContext()}),spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:N(_({},r),{dynamicSamplingContext:this.getDynamicSamplingContext()})},r.source&&{transaction_info:{source:r.source}});return Object.keys(this._measurements).length>0&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),i}},_t={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},co="finishReason",Se=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"],lo=class extends ni{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp=typeof t=="number"?t:Ee(),this._popActivity(e.spanId)},e.endTimestamp===void 0&&this._pushActivity(e.spanId)),super.add(e)}},uo=class extends ii{constructor(e,t,n=_t.idleTimeout,r=_t.finalTimeout,i=_t.heartbeatInterval,s=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Se[4],s&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope(a=>a.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Se[3],this.finish())},this._finalTimeout)}finish(e=Ee()){if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setTag(co,this._finishReason),this.spanRecorder){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Tracing] finishing IdleTransaction",new Date(e*1e3).toISOString(),this.op);for(let t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));let n=t.startTimestamp<e,r=(this._finalTimeout+this._idleTimeout)/1e3,i=t.endTimestamp-this.startTimestamp<r;if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){let s=JSON.stringify(t,void 0,2);n?i||g.log("[Tracing] discarding Span since it finished after Transaction final timeout",s):g.log("[Tracing] discarding Span since it happened after Transaction was finished",s)}return n&&i}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Tracing] flushing IdleTransaction")}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Tracing] No active IdleTransaction");if(this._onScope){let t=this._idleHub.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){let t=r=>{this._finished||this._pushActivity(r)},n=r=>{this._finished||this._popActivity(r)};this.spanRecorder=new lo(t,n,this.spanId,e),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=t===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Se[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Se[1],this.finish(e))},this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`[Tracing] popActivity ${e}`),delete this.activities[e],(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){let t=Ee();this._idleTimeoutCanceledPermanently?(this._finishReason=Se[5],this.finish(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Se[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}};function ho(){let e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function si(e,t,n){if(!Sn(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setMetadata({sampleRate:Number(r)})):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setMetadata({sampleRate:Number(r)})):(r=1,e.setMetadata({sampleRate:r})),po(r)?r?(e.sampled=Math.random()<r,e.sampled?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function po(e){return Ar(e)||!(typeof e=="number"||typeof e=="boolean")?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function fo(e,t){let n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",s=e.instrumenter||"sentry";i!==s&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.error(`A transaction was started with instrumenter=\`${s}\`, but the SDK is configured with the \`${i}\` instrumenter.
|
|
11
|
+
The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let a=new ii(e,this);return a=si(a,r,_({parentSampled:e.parentSampled,transactionContext:e},t)),a.sampled&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function ir(e,t,n,r,i,s,a){let o=e.getClient(),l=o&&o.getOptions()||{},d=new uo(t,e,n,r,a,i);return d=si(d,l,_({parentSampled:t.parentSampled,transactionContext:t},s)),d.sampled&&d.initSpanRecorder(l._experiments&&l._experiments.maxSpans),o&&o.emit&&o.emit("startTransaction",d),d}function _o(){let e=ze();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=fo),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=ho),ao())}function mo(e,t){return Y().captureException(e,{captureContext:t})}function go(e){Y().withScope(e)}var yo="7";function vo(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function xo(e){return`${vo(e)}${e.projectId}/envelope/`}function Eo(e,t){return ea(_({sentry_key:e.publicKey,sentry_version:yo},t&&{sentry_client:`${t.name}/${t.version}`}))}function bo(e,t={}){let n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${xo(e)}?${Eo(e,r)}`}function So(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function To(e,t,n,r){let i=Qr(n),s=_(_({sent_at:new Date().toISOString()},i&&{sdk:i}),!!r&&t&&{dsn:Nt(t)}),a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Ve(s,[a])}function wo(e,t,n,r){let i=Qr(n),s=e.type&&e.type!=="replay_event"?e.type:"event";So(e,n&&n.sdk);let a=Va(e,i,r,t);return delete e.sdkProcessingMetadata,Ve(a,[[{type:s},e]])}var sr=[];function Ro(e,t){let n={};return t.forEach(r=>{r&&ai(e,r,n)}),n}function ai(e,t,n){if(n[t.name]=t,sr.indexOf(t.name)===-1&&(t.setupOnce(Za,Y),sr.push(t.name)),e.on&&typeof t.preprocessEvent=="function"){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,s)=>r(i,s,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){let r=t.processEvent.bind(t),i=Object.assign((s,a)=>r(s,a,e),{id:t.name});e.addEventProcessor(i)}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`Integration installed: ${t.name}`)}function jo(e,t,n,r,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,o=N(_({},t),{event_id:t.event_id||n.event_id||z(),timestamp:t.timestamp||kt()}),l=n.integrations||e.integrations.map(f=>f.name);No(o,e),Do(o,l),t.type===void 0&&ko(o,e.stackParser);let d=r;n.captureContext&&(d=Ne.clone(d).update(n.captureContext));let u=xe(o),h=i&&i.getEventProcessors?i.getEventProcessors():[];if(d){if(d.getAttachments){let f=[...n.attachments||[],...d.getAttachments()];f.length&&(n.attachments=f)}u=d.applyToEvent(o,n,h)}else u=xt([...h,...En()],o,n);return u.then(f=>(f&&Co(f),typeof s=="number"&&s>0?Io(f,s,a):f))}function No(e,t){let{environment:n,release:r,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:xn),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=je(e.message,s));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=je(a.value,s));let o=e.request;o&&o.url&&(o.url=je(o.url,s))}var ar=new WeakMap;function ko(e,t){let n=$._sentryDebugIds;if(!n)return;let r,i=ar.get(t);i?r=i:(r=new Map,ar.set(t,r));let s=Object.keys(n).reduce((a,o)=>{let l,d=r.get(o);d?l=d:(l=t(o),r.set(o,l));for(let u=l.length-1;u>=0;u--){let h=l[u];if(h.filename){a[h.filename]=n[o];break}}return a},{});try{e.exception.values.forEach(a=>{a.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=s[o.filename])})})}catch{}}function Co(e){let t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function Do(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Io(e,t,n){if(!e)return null;let r=_(_(_(_(_({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>_(_({},i),i.data&&{data:ue(i.data,t,n)}))}),e.user&&{user:ue(e.user,t,n)}),e.contexts&&{contexts:ue(e.contexts,t,n)}),e.extra&&{extra:ue(e.extra,t,n)});return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ue(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>(i.data&&(i.data=ue(i.data,t,n)),i))),r}var or="Not capturing exception because it's already been captured.",Uo=class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Qs(e.dsn):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn("No DSN provided, client will not send events."),this._dsn){let t=bo(this._dsn,e);this._transport=e.transport(N(_({recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:t}))}}captureException(e,t,n){if(Kn(e)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(or);return}let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(i=>this._captureEvent(i,t,n)).then(i=>{r=i})),r}captureMessage(e,t,n,r){let i=n&&n.event_id,s=Pr(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(s.then(a=>this._captureEvent(a,n,r)).then(a=>{i=a})),i}captureEvent(e,t,n){if(t&&t.originalException&&Kn(t.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(or);return}let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then(i=>{r=i})),r}captureSession(e){typeof e.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),De(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?this._isClientDoneProcessing(e).then(n=>t.flush(e).then(r=>n&&r)):xe(!0)}close(e){return this.flush(e).then(t=>(this.getOptions().enabled=!1,t))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=Ro(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){ai(this,e,this._integrations)}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=wo(e,this._dsn,this._options._metadata,this._options.tunnel);for(let i of t.attachments||[])n=Aa(n,qa(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then(i=>this.emit("afterSendEvent",e,i),null)}sendSession(e){let t=To(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r=`${e}:${t}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`Adding outcome: "${r}"`),this._outcomes[r]=this._outcomes[r]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(n=>n(...t))}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i){r=!0;for(let a of i){let o=a.mechanism;if(o&&o.handled===!1){n=!0;break}}}let s=e.status==="ok";(s&&e.errors===0||s&&n)&&(De(e,N(_({},n&&{status:"crashed"}),{errors:e.errors||Number(r||n)})),this.captureSession(e))}_isClientDoneProcessing(e){return new W(t=>{let n=0,r=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),t(!0)):(n+=r,e&&n>=e&&(clearInterval(i),t(!1)))},r)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n){let r=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),jo(r,e,t,n,this).then(s=>{if(s===null)return s;let{propagationContext:a}=s.sdkProcessingMetadata||{};if(!(s.contexts&&s.contexts.trace)&&a){let{traceId:o,spanId:l,parentSpanId:d,dsc:u}=a;s.contexts=_({trace:{trace_id:o,span_id:l,parent_span_id:d}},s.contexts);let h=u||Ct(o,this,n);s.sdkProcessingMetadata=_({dynamicSamplingContext:h},s.sdkProcessingMetadata)}return s})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(r=>r.event_id,r=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){let i=r;i.logLevel==="log"?g.log(i.message):g.warn(i)}})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,s=ci(e),a=oi(e),o=e.type||"error",l=`before send for type \`${o}\``;if(a&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),yn(new te(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let d=o==="replay_event"?"replay":o;return this._prepareEvent(e,t,n).then(u=>{if(u===null)throw this.recordDroppedEvent("event_processor",d,e),new te("An event processor returned `null`, will not send event.","log");if(t.data&&t.data.__sentry__===!0)return u;let h=Oo(r,u,t);return Bo(h,l)}).then(u=>{if(u===null)throw this.recordDroppedEvent("before_send",d,e),new te(`${l} returned \`null\`, will not send event.`,"log");let h=n&&n.getSession();!s&&h&&this._updateSessionFromEvent(h,u);let f=u.transaction_info;if(s&&f&&u.transaction!==e.transaction){let p="custom";u.transaction_info=N(_({},f),{source:p})}return this.sendEvent(u,t),u}).then(null,u=>{throw u instanceof te?u:(this.captureException(u,{data:{__sentry__:!0},originalException:u}),new te(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
12
|
+
Reason: ${u}`))})}_process(e){this._numProcessing++,e.then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,t=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.error("Error while sending event:",t)});(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}};function Bo(e,t){let n=`${t} must return \`null\` or a valid event.`;if(_n(e))return e.then(r=>{if(!ke(r)&&r!==null)throw new te(n);return r},r=>{throw new te(`${t} rejected with ${r}`)});if(!ke(e)&&e!==null)throw new te(n);return e}function Oo(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;return oi(t)&&r?r(t,n):ci(t)&&i?i(t,n):t}function oi(e){return e.type===void 0}function ci(e){return e.type==="transaction"}var $o=30;function li(e,t,n=ka(e.bufferSize||$o)){let r={},i=a=>n.drain(a);function s(a){let o=[];if(Qn(a,(h,f)=>{let p=er(f);if(Ka(r,p)){let y=cr(h,f);e.recordDroppedEvent("ratelimit_backoff",p,y)}else o.push(h)}),o.length===0)return xe();let l=Ve(a[0],o),d=h=>{Qn(l,(f,p)=>{let y=cr(f,p);e.recordDroppedEvent(h,er(p),y)})},u=()=>t({body:Ma(l,e.textEncoder)}).then(h=>(h.statusCode!==void 0&&(h.statusCode<200||h.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`Sentry responded with status code ${h.statusCode} to sent event.`),r=Ja(r,h),h),h=>{throw d("network_error"),h});return n.add(u).then(h=>h,h=>{if(h instanceof te)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.error("Skipped sending event because buffer is full."),d("queue_overflow"),xe();throw h})}return s.__sentry__baseTransport__=!0,{send:s,flush:i}}function cr(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}var lr="7.73.0",ui={};Or(ui,{FunctionToString:()=>Tn,InboundFilters:()=>wn});var ur,Tn=class{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=Tn.id}setupOnce(){ur=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=gn(this)||this;return ur.apply(t,e)}}catch{}}};Tn.__initStatic();var Yo=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Go=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/],wn=class{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=wn.id,this._options=e}setupOnce(e,t){}processEvent(e,t,n){let r=n.getOptions(),i=Lo(this._options,r);return Po(e,i)?null:e}};wn.__initStatic();function Lo(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Yo],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Go],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Po(e,t){return t.ignoreInternal&&Vo(e)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`Event dropped due to being internal Sentry Error.
|
|
13
|
+
Event: ${de(e)}`),!0):Ao(e,t.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
14
|
+
Event: ${de(e)}`),!0):Mo(e,t.ignoreTransactions)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
15
|
+
Event: ${de(e)}`),!0):Ho(e,t.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
16
|
+
Event: ${de(e)}.
|
|
17
|
+
Url: ${Et(e)}`),!0):qo(e,t.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
18
|
+
Event: ${de(e)}.
|
|
19
|
+
Url: ${Et(e)}`),!0)}function Ao(e,t){return e.type||!t||!t.length?!1:Fo(e).some(n=>qe(n,t))}function Mo(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;let n=e.transaction;return n?qe(n,t):!1}function Ho(e,t){if(!t||!t.length)return!1;let n=Et(e);return n?qe(n,t):!1}function qo(e,t){if(!t||!t.length)return!0;let n=Et(e);return n?qe(n,t):!0}function Fo(e){let t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&t.length===0&&g.error(`Could not extract message for event ${de(e)}`),t}function Vo(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function zo(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Et(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?zo(t):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.error(`Cannot extract url for event ${de(e)}`),null}}var I=$,cn=0;function di(){return cn>0}function Xo(){cn++,setTimeout(()=>{cn--})}function Ie(e,t={},n){if(typeof e!="function")return e;try{let i=e.__sentry_wrapped__;if(i)return i;if(gn(e))return e}catch{return e}let r=function(){let i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);let s=i.map(a=>Ie(a,t));return e.apply(this,s)}catch(s){throw Xo(),go(a=>{a.addEventProcessor(o=>(t.mechanism&&(Qt(o,void 0),He(o,t.mechanism)),o.extra=N(_({},o.extra),{arguments:i}),o)),mo(s)}),s}};try{for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Vr(r,e),mn(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function hi(e,t){let n=Rn(e,t),r={type:t&&t.name,value:Zo(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Wo(e,t,n,r){let i=Y().getClient(),s=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:jt(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:tc(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Kr(t,s)}};if(n){let o=Rn(e,n);o.length&&(a.exception.values[0].stacktrace={frames:o})}return a}function Mt(e,t){return{exception:{values:[hi(e,t)]}}}function Rn(e,t){let n=t.stacktrace||t.stack||"",r=Jo(t);try{return e(n,r)}catch{}return[]}var Ko=/Minified React error #\d+;/i;function Jo(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Ko.test(e.message))return 1}return 0}function Zo(e){let t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Qo(e,t,n,r){let i=n&&n.syntheticException||void 0,s=jn(e,t,i,r);return He(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),xe(s)}function ec(e,t,n="info",r,i){let s=r&&r.syntheticException||void 0,a=ln(e,t,s,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),xe(a)}function jn(e,t,n,r,i){let s;if(fn(t)&&t.error)return Mt(e,t.error);if(Ln(t)||$s(t)){let a=t;if("stack"in t)s=Mt(e,t);else{let o=a.name||(Ln(a)?"DOMError":"DOMException"),l=a.message?`${o}: ${a.message}`:o;s=ln(e,l,n,r),Qt(s,l)}return"code"in a&&(s.tags=N(_({},s.tags),{"DOMException.code":`${a.code}`})),s}return Lr(t)?Mt(e,t):ke(t)||jt(t)?(s=Wo(e,t,n,i),He(s,{synthetic:!0}),s):(s=ln(e,t,n,r),Qt(s,`${t}`),He(s,{synthetic:!0}),s)}function ln(e,t,n,r){let i={message:t};if(r&&n){let s=Rn(e,n);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]})}return i}function tc(e,{isUnhandledRejection:t}){let n=ta(e),r=t?"promise rejection":"exception";return fn(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:jt(e)?`Event \`${nc(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function nc(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function rc(e,{metadata:t,tunnel:n,dsn:r}){let i=_(_({event_id:e.event_id,sent_at:new Date().toISOString()},t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}}),!!n&&!!r&&{dsn:Nt(r)}),s=ic(e);return Ve(i,[s])}function ic(e){return[{type:"user_report"},e]}var sc=class extends Uo{constructor(e){let t=I.SENTRY_SDK_SOURCE||ba();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:lr}],version:lr},super(e),e.sendClientReports&&I.document&&I.document.addEventListener("visibilitychange",()=>{I.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,t){return Qo(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return ec(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn("SDK not enabled, will not capture user feedback.");return}let t=rc(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(e.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("Sending outcomes:",e);let t=za(e,this._options.tunnel&&Nt(this._dsn));this._sendEnvelope(t)}},Pe;function ac(){if(Pe)return Pe;if(Jt(I.fetch))return Pe=I.fetch.bind(I);let e=I.document,t=I.fetch;if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Pe=t.bind(I)}function oc(){Pe=void 0}function cc(e,t=ac()){let n=0,r=0;function i(s){let a=s.body.length;n+=a,r++;let o=_({body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);try{return t(e.url,o).then(l=>(n-=a,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return oc(),n-=a,r--,yn(l)}}return li(e,i)}var lc=4;function uc(e){function t(n){return new W((r,i)=>{let s=new XMLHttpRequest;s.onerror=i,s.onreadystatechange=()=>{s.readyState===lc&&r({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",e.url);for(let a in e.headers)Object.prototype.hasOwnProperty.call(e.headers,a)&&s.setRequestHeader(a,e.headers[a]);s.send(n.body)})}return li(e,t)}var Dt="?",dc=30,hc=40,pc=50;function Nn(e,t,n,r){let i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var fc=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_c=/\((\S*)(?::(\d+))(?::(\d+))\)/,mc=e=>{let t=fc.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){let i=_c.exec(t[2]);i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3])}let[n,r]=pi(t[1]||Dt,t[2]);return Nn(r,n,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},gc=[dc,mc],yc=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,vc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,xc=e=>{let t=yc.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let i=vc.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let n=t[3],r=t[1]||Dt;return[r,n]=pi(r,n),Nn(n,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Ec=[pc,xc],bc=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Sc=e=>{let t=bc.exec(e);return t?Nn(t[2],t[1]||Dt,+t[3],t[4]?+t[4]:void 0):void 0},Tc=[hc,Sc],wc=[gc,Ec,Tc],Rc=na(...wc),pi=(e,t)=>{let n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Dt,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ye=class{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=Ye.id,this._options=_({onerror:!0,onunhandledrejection:!0},e),this._installFunc={onerror:jc,onunhandledrejection:Nc}}setupOnce(){Error.stackTraceLimit=50;let e=this._options;for(let t in e){let n=this._installFunc[t];n&&e[t]&&(Dc(t),n(),this._installFunc[t]=void 0)}}};Ye.__initStatic();function jc(){K("error",e=>{let[t,n,r]=mi();if(!t.getIntegration(Ye))return;let{msg:i,url:s,line:a,column:o,error:l}=e;if(di()||l&&l.__sentry_own_request__)return;let d=l===void 0&&pe(i)?Cc(i,s,a,o):fi(jn(n,l||i,void 0,r,!1),s,a,o);d.level="error",_i(t,l,d,"onerror")})}function Nc(){K("unhandledrejection",e=>{let[t,n,r]=mi();if(!t.getIntegration(Ye))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch{}if(di()||i&&i.__sentry_own_request__)return!0;let s=Pr(i)?kc(i):jn(n,i,void 0,r,!0);s.level="error",_i(t,i,s,"onunhandledrejection")})}function kc(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Cc(e,t,n,r){let i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,s=fn(e)?e.message:e,a="Error",o=s.match(i);return o&&(a=o[1],s=o[2]),fi({exception:{values:[{type:a,value:s}]}},t,n,r)}function fi(e,t,n,r){let i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},l=o.frames=o.frames||[],d=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,h=pe(t)&&t.length>0?t:Fs();return l.length===0&&l.push({colno:d,filename:h,function:"?",in_app:!0,lineno:u}),e}function Dc(e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`Global Handler attached: ${e}`)}function _i(e,t,n,r){He(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function mi(){let e=Y(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}var Ic=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],kn=class{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=kn.id,this._options=_({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}setupOnce(){this._options.setTimeout&&A(I,"setTimeout",dr),this._options.setInterval&&A(I,"setInterval",dr),this._options.requestAnimationFrame&&A(I,"requestAnimationFrame",Uc),this._options.XMLHttpRequest&&"XMLHttpRequest"in I&&A(XMLHttpRequest.prototype,"send",Bc);let e=this._options.eventTarget;e&&(Array.isArray(e)?e:Ic).forEach(Oc)}};kn.__initStatic();function dr(e){return function(...t){let n=t[0];return t[0]=Ie(n,{mechanism:{data:{function:fe(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Uc(e){return function(t){return e.apply(this,[Ie(t,{mechanism:{data:{function:"requestAnimationFrame",handler:fe(e)},handled:!1,type:"instrument"}})])}}function Bc(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&A(n,r,function(i){let s={mechanism:{data:{function:r,handler:fe(i)},handled:!1,type:"instrument"}},a=gn(i);return a&&(s.mechanism.data.handler=fe(a)),Ie(i,s)})}),e.apply(this,t)}}function Oc(e){let t=I,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(A(n,"addEventListener",function(r){return function(i,s,a){try{typeof s.handleEvent=="function"&&(s.handleEvent=Ie(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:fe(s),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,Ie(s,{mechanism:{data:{function:"addEventListener",handler:fe(s),target:e},handled:!1,type:"instrument"}}),a])}}),A(n,"removeEventListener",function(r){return function(i,s,a){let o=s;try{let l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,a)}catch{}return r.call(this,i,o,a)}}))}var lt=1024,It=class{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=It.id,this.options=_({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}setupOnce(){if(this.options.console&&K("console",Gc),this.options.dom&&K("dom",Yc(this.options.dom)),this.options.xhr&&K("xhr",Lc),this.options.fetch&&K("fetch",Pc),this.options.history&&K("history",Ac),this.options.sentry){let e=Y().getClient();e&&e.on&&e.on("beforeSendEvent",$c)}}};It.__initStatic();function $c(e){Y().addBreadcrumb({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:de(e)},{event:e})}function Yc(e){function t(n){let r,i=typeof e=="object"?e.serializeAttribute:void 0,s=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;s&&s>lt&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`\`dom.maxStringLength\` cannot exceed ${lt}, but a value of ${s} was configured. Sentry will use ${lt} instead.`),s=lt),typeof i=="string"&&(i=[i]);try{let a=n.event;r=Mc(a)?Ce(a.target,{keyAttrs:i,maxStringLength:s}):Ce(a,{keyAttrs:i,maxStringLength:s})}catch{r="<unknown>"}r.length!==0&&Y().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return t}function Gc(e){let t={category:"console",data:{arguments:e.args,logger:"console"},level:Da(e.level),message:Pn(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message=`Assertion failed: ${Pn(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);else return;Y().addBreadcrumb(t,{input:e.args,level:e.level})}function Lc(e){let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[Re];if(!t||!n||!r)return;let{method:i,url:s,status_code:a,body:o}=r,l={method:i,url:s,status_code:a},d={xhr:e.xhr,input:o,startTimestamp:t,endTimestamp:n};Y().addBreadcrumb({category:"xhr",data:l,type:"http"},d)}function Pc(e){let{startTimestamp:t,endTimestamp:n}=e;if(n&&!(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"))if(e.error){let r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};Y().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{let r=N(_({},e.fetchData),{status_code:e.response&&e.response.status}),i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};Y().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function Ac(e){let t=e.from,n=e.to,r=Pt(I.location.href),i=Pt(t),s=Pt(n);i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),Y().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}function Mc(e){return!!e&&!!e.target}var Hc="cause",qc=5,Ut=class{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=Ut.id,this._key=e.key||Hc,this._limit=e.limit||qc}setupOnce(){}preprocessEvent(e,t,n){let r=n.getOptions();As(hi,r.stackParser,r.maxValueLength,this._key,this._limit,e,t)}};Ut.__initStatic();var Bt=class{static __initStatic(){this.id="HttpContext"}constructor(){this.name=Bt.id}setupOnce(){}preprocessEvent(e){if(!I.navigator&&!I.location&&!I.document)return;let t=e.request&&e.request.url||I.location&&I.location.href,{referrer:n}=I.document||{},{userAgent:r}=I.navigator||{},i=_(_(_({},e.request&&e.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),s=N(_(_({},e.request),t&&{url:t}),{headers:i});e.request=s}};Bt.__initStatic();var Ot=class{static __initStatic(){this.id="Dedupe"}constructor(){this.name=Ot.id}setupOnce(e,t){}processEvent(e){if(e.type)return e;try{if(Fc(e,this._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return this._previousEvent=e}};Ot.__initStatic();function Fc(e,t){return t?!!(Vc(e,t)||zc(e,t)):!1}function Vc(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!yi(e,t)||!gi(e,t))}function zc(e,t){let n=hr(t),r=hr(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!yi(e,t)||!gi(e,t))}function gi(e,t){let n=pr(e),r=pr(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){let s=r[i],a=n[i];if(s.filename!==a.filename||s.lineno!==a.lineno||s.colno!==a.colno||s.function!==a.function)return!1}return!0}function yi(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function hr(e){return e.exception&&e.exception.values&&e.exception.values[0]}function pr(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}var vi={};Or(vi,{Breadcrumbs:()=>It,Dedupe:()=>Ot,GlobalHandlers:()=>Ye,HttpContext:()=>Bt,LinkedErrors:()=>Ut,TryCatch:()=>kn});var D=$;function Xc(){D&&D.document?D.document.addEventListener("visibilitychange",()=>{let e=Xe();if(D.document.hidden&&e){let t="cancelled";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var Cn=(e,t,n)=>{let r,i;return s=>{t.value>=0&&(s||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},Wc=()=>`v3-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`,Kc=()=>{let e=D.performance.timing,t=D.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(let r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},xi=()=>D.__WEB_VITALS_POLYFILL__?D.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||Kc()):D.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Ei=()=>{let e=xi();return e&&e.activationStart||0},Dn=(e,t)=>{let n=xi(),r="navigate";return n&&(D.document.prerendering||Ei()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Wc(),navigationType:r}},We=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},$t=(e,t)=>{let n=r=>{(r.type==="pagehide"||D.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Jc=e=>{let t=Dn("CLS",0),n,r=0,i=[],s=o=>{o.forEach(l=>{if(!l.hadRecentInput){let d=i[0],u=i[i.length-1];r&&i.length!==0&&l.startTime-u.startTime<1e3&&l.startTime-d.startTime<5e3?(r+=l.value,i.push(l)):(r=l.value,i=[l]),r>t.value&&(t.value=r,t.entries=i,n&&n())}})},a=We("layout-shift",s);if(a){n=Cn(e,t);let o=()=>{s(a.takeRecords()),n(!0)};return $t(o),o}},mt=-1,Zc=()=>D.document.visibilityState==="hidden"&&!D.document.prerendering?0:1/0,Qc=()=>{$t(({timeStamp:e})=>{mt=e},!0)},In=()=>(mt<0&&(mt=Zc(),Qc()),{get firstHiddenTime(){return mt}}),el=e=>{let t=In(),n=Dn("FID"),r,i=o=>{o.startTime<t.firstHiddenTime&&(n.value=o.processingStart-o.startTime,n.entries.push(o),r(!0))},s=o=>{o.forEach(i)},a=We("first-input",s);r=Cn(e,n),a&&$t(()=>{s(a.takeRecords()),a.disconnect()},!0)},fr={},tl=e=>{let t=In(),n=Dn("LCP"),r,i=a=>{let o=a[a.length-1];if(o){let l=Math.max(o.startTime-Ei(),0);l<t.firstHiddenTime&&(n.value=l,n.entries=[o],r())}},s=We("largest-contentful-paint",i);if(s){r=Cn(e,n);let a=()=>{fr[n.id]||(i(s.takeRecords()),s.disconnect(),fr[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{addEventListener(o,a,{once:!0,capture:!0})}),$t(a,!0),a}};function Ht(e){return typeof e=="number"&&isFinite(e)}function Ue(e,t){var n=t,{startTimestamp:r}=n,i=Us(n,["startTimestamp"]);return r&&e.startTimestamp>r&&(e.startTimestamp=r),e.startChild(_({startTimestamp:r},i))}function O(e){return e/1e3}function bi(){return D&&D.addEventListener&&D.performance}var _r=0,U={},ee,Me;function nl(){let e=bi();if(e&&ne){e.mark&&D.performance.mark("sentry-tracing-init"),ol();let t=sl(),n=al();return()=>{t&&t(),n&&n()}}return()=>{}}function rl(){We("longtask",e=>{for(let t of e){let n=Xe();if(!n)return;let r=O(ne+t.startTime),i=O(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function il(){We("event",e=>{for(let t of e){let n=Xe();if(!n)return;if(t.name==="click"){let r=O(ne+t.startTime),i=O(t.duration);n.startChild({description:Ce(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}}},{durationThreshold:0})}function sl(){return Jc(e=>{let t=e.entries.pop();t&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Measurements] Adding CLS"),U.cls={value:e.value,unit:""},Me=t)})}function al(){return tl(e=>{let t=e.entries.pop();t&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Measurements] Adding LCP"),U.lcp={value:e.value,unit:"millisecond"},ee=t)})}function ol(){el(e=>{let t=e.entries.pop();if(!t)return;let n=O(ne),r=O(t.startTime);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Measurements] Adding FID"),U.fid={value:e.value,unit:"millisecond"},U["mark.fid"]={value:n+r,unit:"second"}})}function cl(e){let t=bi();if(!t||!D.performance.getEntries||!ne)return;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Tracing] Adding & adjusting spans using Performance API");let n=O(ne),r=t.getEntries(),i,s;if(r.slice(_r).forEach(a=>{let o=O(a.startTime),l=O(a.duration);if(!(e.op==="navigation"&&n+o<e.startTimestamp))switch(a.entryType){case"navigation":{ul(e,a,n),i=n+O(a.responseStart),s=n+O(a.requestStart);break}case"mark":case"paint":case"measure":{ll(e,a,o,l,n);let d=In(),u=a.startTime<d.firstHiddenTime;a.name==="first-paint"&&u&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Measurements] Adding FP"),U.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&u&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Measurements] Adding FCP"),U.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{let d=a.name.replace(D.location.origin,"");hl(e,a,d,o,l,n);break}}}),_r=Math.max(r.length-1,0),pl(e),e.op==="pageload"){typeof i=="number"&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Measurements] Adding TTFB"),U.ttfb={value:(i-e.startTimestamp)*1e3,unit:"millisecond"},typeof s=="number"&&s<=i&&(U["ttfb.requestTime"]={value:(i-s)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(o=>{if(!U[o]||n>=e.startTimestamp)return;let l=U[o].value,d=n+O(l),u=Math.abs((d-e.startTimestamp)*1e3),h=u-l;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`[Measurements] Normalized ${o} from ${l} to ${u} (${h})`),U[o].value=u});let a=U["mark.fid"];a&&U.fid&&(Ue(e,{description:"first input delay",endTimestamp:a.value+O(U.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:a.value}),delete U["mark.fid"]),"fcp"in U||delete U.cls,Object.keys(U).forEach(o=>{e.setMeasurement(o,U[o].value,U[o].unit)}),fl(e)}ee=void 0,Me=void 0,U={}}function ll(e,t,n,r,i){let s=i+n,a=s+r;return Ue(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s}),s}function ul(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{ut(e,t,r,n)}),ut(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),ut(e,t,"fetch",n,"cache","domainLookupStart"),ut(e,t,"domainLookup",n,"DNS"),dl(e,t,n)}function ut(e,t,n,r,i,s){let a=s?t[s]:t[`${n}End`],o=t[`${n}Start`];!o||!a||Ue(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+O(o),endTimestamp:r+O(a)})}function dl(e,t,n){Ue(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+O(t.requestStart),endTimestamp:n+O(t.responseEnd)}),Ue(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+O(t.responseStart),endTimestamp:n+O(t.responseEnd)})}function hl(e,t,n,r,i,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;let a={};"transferSize"in t&&(a["http.response_transfer_size"]=t.transferSize),"encodedBodySize"in t&&(a["http.response_content_length"]=t.encodedBodySize),"decodedBodySize"in t&&(a["http.decoded_response_content_length"]=t.decodedBodySize),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus);let o=s+r,l=o+i;Ue(e,{description:n,endTimestamp:l,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:o,data:a})}function pl(e){let t=D.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Ht(n.rtt)&&(U["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Ht(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),Ht(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function fl(e){ee&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Measurements] Adding LCP Data"),ee.element&&e.setTag("lcp.element",Ce(ee.element)),ee.id&&e.setTag("lcp.id",ee.id),ee.url&&e.setTag("lcp.url",ee.url.trim().slice(0,200)),e.setTag("lcp.size",ee.size)),Me&&Me.sources&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log("[Measurements] Adding CLS Data"),Me.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,Ce(t.node))))}var un=["localhost",/^\/(?!\/)/],dn={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:un,tracePropagationTargets:un};function _l(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s,enableHTTPTimings:a}=_({traceFetch:dn.traceFetch,traceXHR:dn.traceXHR},e),o=typeof s=="function"?s:u=>!0,l=u=>vl(u,r||i),d={};t&&K("fetch",u=>{let h=xl(u,o,l,d);a&&h&&mr(h)}),n&&K("xhr",u=>{let h=bl(u,o,l,d);a&&h&&mr(h)})}function ml(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function mr(e){let t=e.data.url,n=new PerformanceObserver(r=>{r.getEntries().forEach(i=>{ml(i)&&i.name.endsWith(t)&&(yl(i).forEach(s=>e.setData(...s)),n.disconnect())})});n.observe({entryTypes:["resource"]})}function gl(e){let t="unknown",n="unknown",r="";for(let i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function Q(e=0){return((ne||performance.timeOrigin)+e)/1e3}function yl(e){let{name:t,version:n}=gl(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),ne?[...r,["http.request.redirect_start",Q(e.redirectStart)],["http.request.fetch_start",Q(e.fetchStart)],["http.request.domain_lookup_start",Q(e.domainLookupStart)],["http.request.domain_lookup_end",Q(e.domainLookupEnd)],["http.request.connect_start",Q(e.connectStart)],["http.request.secure_connection_start",Q(e.secureConnectionStart)],["http.request.connection_end",Q(e.connectEnd)],["http.request.request_start",Q(e.requestStart)],["http.request.response_start",Q(e.responseStart)],["http.request.response_end",Q(e.responseEnd)]]:r}function vl(e,t){return qe(e,t||un)}function xl(e,t,n,r){if(!Sn()||!e.fetchData)return;let i=t(e.fetchData.url);if(e.endTimestamp&&i){let f=e.fetchData.__span;if(!f)return;let p=r[f];if(p){if(e.response){p.setHttpStatus(e.response.status);let y=e.response&&e.response.headers&&e.response.headers.get("content-length"),b=parseInt(y);b>0&&p.setData("http.response_content_length",b)}else e.error&&p.setStatus("internal_error");p.finish(),delete r[f]}return}let s=Y(),a=s.getScope(),o=s.getClient(),l=a.getSpan(),{method:d,url:u}=e.fetchData,h=i&&l?l.startChild({data:{url:u,type:"fetch","http.method":d},description:`${d} ${u}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(h&&(e.fetchData.__span=h.spanId,r[h.spanId]=h),n(e.fetchData.url)&&o){let f=e.args[0];e.args[1]=e.args[1]||{};let p=e.args[1];p.headers=El(f,o,a,p,h)}return h}function El(e,t,n,r,i){let s=i||n.getSpan(),a=s&&s.transaction,{traceId:o,sampled:l,dsc:d}=n.getPropagationContext(),u=s?s.toTraceparent():vn(o,void 0,l),h=a?a.getDynamicSamplingContext():d||Ct(o,t,n),f=rn(h),p=typeof Request<"u"&&le(e,Request)?e.headers:r.headers;if(p)if(typeof Headers<"u"&&le(p,Headers)){let y=new Headers(p);return y.append("sentry-trace",u),f&&y.append(nn,f),y}else if(Array.isArray(p)){let y=[...p,["sentry-trace",u]];return f&&y.push([nn,f]),y}else{let y="baggage"in p?p.baggage:void 0,b=[];return Array.isArray(y)?b.push(...y):y&&b.push(y),f&&b.push(f),N(_({},p),{"sentry-trace":u,baggage:b.length>0?b.join(","):void 0})}else return{"sentry-trace":u,baggage:f}}function bl(e,t,n,r){let i=e.xhr,s=i&&i[Re];if(!Sn()||i&&i.__sentry_own_request__||!i||!s)return;let a=t(s.url);if(e.endTimestamp&&a){let h=i.__sentry_xhr_span_id__;if(!h)return;let f=r[h];f&&(f.setHttpStatus(s.status_code),f.finish(),delete r[h]);return}let o=Y(),l=o.getScope(),d=l.getSpan(),u=a&&d?d.startChild({data:N(_({},s.data),{type:"xhr","http.method":s.method,url:s.url}),description:`${s.method} ${s.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(u&&(i.__sentry_xhr_span_id__=u.spanId,r[i.__sentry_xhr_span_id__]=u),i.setRequestHeader&&n(s.url))if(u){let h=u&&u.transaction,f=h&&h.getDynamicSamplingContext(),p=rn(f);gr(i,u.toTraceparent(),p)}else{let h=o.getClient(),{traceId:f,sampled:p,dsc:y}=l.getPropagationContext(),b=vn(f,void 0,p),x=y||(h?Ct(f,h,l):void 0),T=rn(x);gr(i,b,T)}return u}function gr(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(nn,n)}catch{}}function Sl(e,t=!0,n=!0){if(!D||!D.location){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn("Could not initialize routing instrumentation due to invalid location");return}let r=D.location.href,i;t&&(i=e({name:D.location.pathname,startTimestamp:ne?ne/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&K("history",({to:s,from:a})=>{if(a===void 0&&r&&r.indexOf(s)!==-1){r=void 0;return}a!==s&&(r=void 0,i&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=e({name:D.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}var Tl="BrowserTracing",wl=_(N(_({},_t),{markBackgroundTransactions:!0,routingInstrumentation:Sl,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{}}),dn),Rl=class{constructor(e){this.name=Tl,this._hasSetTracePropagationTargets=!1,_o(),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options=_(_({},wl),e),this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=nl(),this.options.enableLongTask&&rl(),this.options._experiments.enableInteractions&&il()}setupOnce(e,t){this._getCurrentHub=t;let n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:s,startTransactionOnPageLoad:a,markBackgroundTransactions:o,traceFetch:l,traceXHR:d,shouldCreateSpanForRequest:u,enableHTTPTimings:h,_experiments:f}=this.options,p=r&&r.tracePropagationTargets,y=p||this.options.tracePropagationTargets;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&p&&g.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i(b=>{let x=this._createRouteTransaction(b);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,b,t),x},a,s),o&&Xc(),f.enableInteractions&&this._registerInteractionListener(),_l({traceFetch:l,traceXHR:d,tracePropagationTargets:y,shouldCreateSpanForRequest:u,enableHTTPTimings:h})}_createRouteTransaction(e){if(!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}let t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:s}=this.options,a=e.op==="pageload",o=a?yr("sentry-trace"):"",l=a?yr("baggage"):"",{traceparentData:d,dynamicSamplingContext:u,propagationContext:h}=Pa(o,l),f=N(_(_({},e),d),{metadata:N(_({},e.metadata),{dynamicSamplingContext:d&&!u?{}:u}),trimEnd:!0}),p=typeof n=="function"?n(f):f,y=p===void 0?N(_({},f),{sampled:!1}):p;y.metadata=y.name!==f.name?N(_({},y.metadata),{source:"custom"}):y.metadata,this._latestRouteName=y.name,this._latestRouteSource=y.metadata&&y.metadata.source,y.sampled===!1&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`[Tracing] Will not send ${y.op} transaction because of beforeNavigate.`),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.log(`[Tracing] Starting ${y.op} transaction on scope`);let{location:b}=D,x=ir(t,y,r,i,!0,{location:b},s),T=t.getScope();return a&&d?T.setPropagationContext(h):T.setPropagationContext({traceId:x.traceId,spanId:x.spanId,parentSpanId:x.parentSpanId,sampled:x.sampled}),x.registerBeforeFinishCallback(S=>{this._collectWebVitals(),cl(S)}),x}_registerInteractionListener(){let e,t=()=>{let{idleTimeout:n,finalTimeout:r,heartbeatInterval:i}=this.options,s="ui.action.click",a=Xe();if(a&&a.op&&["navigation","pageload"].includes(a.op)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&g.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}let o=this._getCurrentHub(),{location:l}=D,d={name:this._latestRouteName,op:s,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=ir(o,d,n,r,!0,{location:l},i)};["click"].forEach(n=>{addEventListener(n,t,{once:!1,capture:!0})})}};function yr(e){let t=Vs(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}var Si={};I.Sentry&&I.Sentry.Integrations&&(Si=I.Sentry.Integrations);_(_(_({},Si),ui),vi);var jl="https://d233059272824702afc8c43834c4912d@sentry.hcaptcha.com/6",dt=null;function Ti(e,t){if(e===!1)return qt(e);if(dt)return qt(dt,t);let n=new sc({dsn:jl,transport:window.fetch?cc:uc,stackParser:Rc,integrations:[new It,new Ye,new Ut,new Ot,new Bt,new Rl]});return dt=new bn(n),qt(dt,t)}function qt(e,t={key:"source",value:"@hCaptcha/loader"}){return{addBreadcrumb:n=>{e&&e.addBreadcrumb(n)},captureMessage:n=>{e&&e.withScope(function(r){r.setTag(t.key,t.value),e.captureMessage(n)})},captureException:n=>{e&&e.withScope(function(r){r.setTag(t.key,t.value),e.captureEvent({message:Vt,level:"error",extra:n})})}}}function Nl({scriptLocation:e,query:t,loadAsync:n=!0,crossOrigin:r,apihost:i="https://js.hcaptcha.com",cleanup:s=!0,secureApi:a=!1,scriptSource:o=""}={}){let l=Yr(e),d=$r(l);return new Promise((u,h)=>{let f=d.document.createElement("script");f.id=Os,o?f.src=`${o}?onload=${pt}`:a?f.src=`${i}/1/secure-api.js?onload=${pt}`:f.src=`${i}/1/api.js?onload=${pt}`,f.crossOrigin=r,f.async=n;let p=(y,b)=>{try{!a&&s&&l.removeChild(f),b(y)}catch(x){h(x)}};f.onload=y=>p(y,u),f.onerror=y=>p(y,h),f.src+=t!==""?`&${t}`:"",l.appendChild(f)})}var ht=[];function kl(e={cleanup:!0},t){try{t.addBreadcrumb({category:we,message:"hCaptcha loader params",data:e});let n=Yr(e.scriptLocation),r=$r(n),i=ht.find(({scope:a})=>a===r.window);if(i)return t.addBreadcrumb({category:we,message:"hCaptcha already loaded"}),i.promise;let s=new Promise((a,o)=>pn(this,null,function*(){try{r.window[pt]=()=>{t.addBreadcrumb({category:we,message:"hCaptcha script called onload function"}),a(r.window.hcaptcha)};let l=Bs({custom:e.custom,render:e.render,sentry:e.sentry,assethost:e.assethost,imghost:e.imghost,reportapi:e.reportapi,endpoint:e.endpoint,host:e.host,recaptchacompat:e.recaptchacompat,hl:e.hl});yield Nl(_({query:l},e)),t.addBreadcrumb({category:we,message:"hCaptcha loaded",data:i})}catch(l){t.addBreadcrumb({category:we,message:"hCaptcha failed to load",data:l});let d=ht.findIndex(u=>u.scope===r.window);d!==-1&&ht.splice(d,1),t.captureException(l),o(new Error(Vt))}}));return ht.push({promise:s,scope:r.window}),s}catch(n){return t.captureException(n),Promise.reject(new Error(Vt))}}function wi(e,t=0){return pn(this,null,function*(){let n=t<2?"Retry loading hCaptcha Api":"Exceeded maximum retries",r=Ti(e.sentry);try{return yield kl(e,r)}catch(i){return r.addBreadcrumb({SENTRY_SOURCE:we,message:n,data:{error:i}}),t>=2?(r.captureException(i),Promise.reject(i)):(t+=1,wi(e,t))}})}function Cl(){return pn(this,arguments,function*(e={}){return yield wi(e)})}function vr(e){var t=e&&e.ownerDocument||document,n=t.defaultView||t.parentWindow||window;return{document:t,window:n}}function xr(e){return e||document.head}var Te={key:"source",value:"@hCaptcha/react"},Le={mounted:"hCaptcha component mounted",expired:"hCaptcha expired",unmounted:"hCaptcha component unmounted",reset:"hCaptcha reset",removed:"hCaptcha removed"},Dl=function(e){Cs(t,e);function t(r){var i;return i=e.call(this,r)||this,i._hcaptcha=void 0,i.renderCaptcha=i.renderCaptcha.bind(X(i)),i.resetCaptcha=i.resetCaptcha.bind(X(i)),i.removeCaptcha=i.removeCaptcha.bind(X(i)),i.isReady=i.isReady.bind(X(i)),i._onReady=null,i.loadCaptcha=i.loadCaptcha.bind(X(i)),i.handleOnLoad=i.handleOnLoad.bind(X(i)),i.handleSubmit=i.handleSubmit.bind(X(i)),i.handleExpire=i.handleExpire.bind(X(i)),i.handleError=i.handleError.bind(X(i)),i.handleOpen=i.handleOpen.bind(X(i)),i.handleClose=i.handleClose.bind(X(i)),i.handleChallengeExpired=i.handleChallengeExpired.bind(X(i)),i.ref=m.createRef(),i.apiScriptRequested=!1,i.sentryHub=null,i.captchaId="",i.state={isApiReady:!1,isRemoved:!1,elementId:r.id},i}var n=t.prototype;return n.componentDidMount=function(){var i=this,s=xr(this.props.scriptLocation),a=vr(s);this._hcaptcha=a.window.hcaptcha||void 0;var o=typeof this._hcaptcha<"u";if(this.sentryHub=Ti(this.props.sentry,Te),this.sentryHub.addBreadcrumb({category:Te.value,message:Le.mounted}),o){this.setState({isApiReady:!0},function(){i.renderCaptcha()});return}this.loadCaptcha()},n.componentWillUnmount=function(){var i=this._hcaptcha,s=this.captchaId;this.isReady()&&(i.reset(s),i.remove(s),this.sentryHub.addBreadcrumb({category:Te.value,message:Le.unmounted}))},n.shouldComponentUpdate=function(i,s){return!(this.state.isApiReady!==s.isApiReady||this.state.isRemoved!==s.isRemoved)},n.componentDidUpdate=function(i){var s=this,a=["sitekey","size","theme","tabindex","languageOverride","endpoint"],o=a.every(function(l){return i[l]===s.props[l]});o||this.removeCaptcha(function(){s.renderCaptcha()})},n.loadCaptcha=function(){if(!this.apiScriptRequested){var i=this.props,s=i.apihost,a=i.assethost,o=i.endpoint,l=i.host,d=i.imghost,u=i.languageOverride,h=i.reCaptchaCompat,f=i.reportapi,p=i.sentry,y=i.custom,b=i.loadAsync,x=i.scriptLocation,T=i.scriptSource,S=i.secureApi,E=i.cleanup,w=E===void 0?!0:E,R={render:"explicit",apihost:s,assethost:a,endpoint:o,hl:u,host:l,imghost:d,recaptchacompat:h===!1?"off":null,reportapi:f,sentry:p,custom:y,loadAsync:b,scriptLocation:x,scriptSource:T,secureApi:S,cleanup:w};Cl(R).then(this.handleOnLoad,this.handleError).catch(this.handleError),this.apiScriptRequested=!0}},n.renderCaptcha=function(i){var s=this,a=this.props.onReady,o=this.state.isApiReady,l=this.captchaId;if(!(!o||l)){var d=Object.assign({"open-callback":this.handleOpen,"close-callback":this.handleClose,"error-callback":this.handleError,"chalexpired-callback":this.handleChallengeExpired,"expired-callback":this.handleExpire,callback:this.handleSubmit},this.props,{hl:this.props.hl||this.props.languageOverride,languageOverride:void 0}),u=this._hcaptcha,h=u.render(this.ref.current,d);this.captchaId=h,this.setState({isRemoved:!1},function(){i&&i(),a&&a(),s._onReady&&s._onReady(h)})}},n.resetCaptcha=function(){var i=this._hcaptcha,s=this.captchaId;this.isReady()&&(i.reset(s),this.sentryHub.addBreadcrumb({category:Te.value,message:Le.reset}))},n.removeCaptcha=function(i){var s=this._hcaptcha,a=this.captchaId;this.isReady()&&(this.setState({isRemoved:!0},function(){s.remove(a),i&&i()}),this.sentryHub.addBreadcrumb({category:Te.value,message:Le.removed}))},n.handleOnLoad=function(){var i=this;this.setState({isApiReady:!0},function(){try{var s=xr(i.props.scriptLocation),a=vr(s);i._hcaptcha=a.window.hcaptcha,i.renderCaptcha(function(){var o=i.props.onLoad;o&&o()})}catch(o){i.sentryHub.captureException(o)}})},n.handleSubmit=function(i){var s=this.props.onVerify,a=this.state.isRemoved,o=this._hcaptcha,l=this.captchaId;if(!(typeof o>"u"||a)){var d=o.getResponse(l),u=o.getRespKey(l);s&&s(d,u)}},n.handleExpire=function(){var i=this.props.onExpire,s=this._hcaptcha,a=this.captchaId;this.isReady()&&(s.reset(a),i&&i(),this.sentryHub.addBreadcrumb({category:Te.value,message:Le.expired}))},n.handleError=function(i){var s=this.props.onError,a=this._hcaptcha,o=this.captchaId;this.isReady()&&a.reset(o),s&&s(i)},n.isReady=function(){var i=this.state,s=i.isApiReady,a=i.isRemoved;return s&&!a},n.handleOpen=function(){!this.isReady()||!this.props.onOpen||this.props.onOpen()},n.handleClose=function(){!this.isReady()||!this.props.onClose||this.props.onClose()},n.handleChallengeExpired=function(){!this.isReady()||!this.props.onChalExpired||this.props.onChalExpired()},n.execute=function(i){var s=this;i===void 0&&(i=null),i=typeof i=="object"?i:null;try{var a=this._hcaptcha,o=this.captchaId;if(!this.isReady()){var l,d=new Promise(function(u,h){s._onReady=function(f){try{var p=s._hcaptcha;i&&i.async?p.execute(f,i).then(u).catch(h):u(p.execute(f,i))}catch(y){h(y)}}});return(l=i)!=null&&l.async?d:null}return a.execute(o,i)}catch(u){return this.sentryHub.captureException(u),i&&i.async?Promise.reject(u):null}},n.close=function(){var i=this._hcaptcha,s=this.captchaId;if(this.isReady())return i.close(s)},n.setData=function(i){var s=this._hcaptcha,a=this.captchaId;this.isReady()&&(i&&typeof i!="object"&&(i=null),s.setData(a,i))},n.getResponse=function(){var i=this._hcaptcha;return i.getResponse(this.captchaId)},n.getRespKey=function(){var i=this._hcaptcha;return i.getRespKey(this.captchaId)},n.render=function(){var i=this.state.elementId;return m.createElement("div",{ref:this.ref,id:i})},t}(m.Component);const ge=typeof window>"u"?null:window.matchMedia("(prefers-color-scheme: dark)");function Il(){const[e,t]=m.useState(ge!=null&&ge.matches?"dark":"light");return m.useEffect(()=>{if(!ge)return;const n=()=>{t(ge.matches?"dark":"light")};return ge.addEventListener("change",n),()=>{ge.removeEventListener("change",n)}},[]),e}function Ul({siteKey:e,token:t,onToken:n,prevLabel:r,onPrev:i,nextLabel:s,onNext:a,ref:o,invalid:l,children:d,...u}){const h=m.useRef(null),f=Il(),[p,y]=m.useState(t),b=m.useCallback(()=>{var S;(S=h.current)==null||S.execute()},[]),x=m.useCallback((S,E)=>{y(S),n(S,E)},[n]),T=m.useCallback(S=>{if(p)return a(S);if(h.current)h.current.execute();else throw new Error("Unable to load hCaptcha")},[p,a]);return c.jsx(Be,{...u,cancelLabel:r,onCancel:i,submitLabel:s,onSubmit:T,append:d,invalid:l||!p,children:c.jsx(Dl,{theme:f,sitekey:e,onLoad:b,onVerify:x,ref:_e([o,h])})})}function Bl({customizationData:{availableUserDomains:e=[],hcaptchaSiteKey:t=void 0,inviteCodeRequired:n=!0,links:r}={},onValidateNewHandle:i,onDone:s,onBack:a,backLabel:o,...l}){const{i18n:d,_:u}=B(),[h,f]=m.useState(void 0),[p,y]=m.useState(void 0),[b,x]=m.useState(void 0),T=t==null?void 0:b||!1,S=m.useCallback(E=>{if(h&&p&&T!==!1)return s({...h,handle:p,hcaptchaToken:T},E)},[h,p,T,s]);return c.jsxs(J,{...l,title:l.title??d._({id:"IS0nrP"}),subtitle:l.subtitle??c.jsx(v,{id:"qjBGxf"}),children:[c.jsx(Ss,{doneLabel:c.jsx(v,{id:"e+RpCP"}),onBack:a,backLabel:o,onDone:S,steps:[{invalid:!p,titleRender:()=>c.jsx(v,{id:"khEQ02"}),contentRender:({prev:E,prevLabel:w,next:R,nextLabel:k,invalid:C})=>c.jsx(ks,{className:"grow",invalid:C,domains:e,handle:p,onHandle:y,prevLabel:w,onPrev:E,nextLabel:k,onNext:async F=>{if(p&&await i({handle:p},F),!F.aborted)return R(F)},children:c.jsx(Gt,{links:r})})},{invalid:!h,titleRender:()=>c.jsx(v,{id:"gdRnT7"}),contentRender:({prev:E,prevLabel:w,next:R,nextLabel:k,invalid:C})=>c.jsx(ws,{className:"grow",invalid:C,prevLabel:w,onPrev:E,nextLabel:k,onNext:R,inviteCodeRequired:n,credentials:h,onCredentials:f,children:c.jsx(Gt,{links:r})})},t!=null&&{invalid:T===!1,titleRender:()=>c.jsx(v,{id:"aIar4b"}),contentRender:({prev:E,prevLabel:w,next:R,nextLabel:k,invalid:C})=>c.jsx(Ul,{className:"grow",invalid:C,siteKey:t,token:b,onToken:x,prevLabel:w,onPrev:E,nextLabel:k,onNext:R,children:c.jsx(Gt,{links:r})})}]}),c.jsx(Ts,{className:"mt-4",links:r})]})}function Ol({onSignUp:e,onSignIn:t,onCancel:n,...r}){const{i18n:i,_:s}=B();return c.jsxs(Ai,{...r,title:r.title??i._({id:"OX6vme"}),children:[e&&c.jsx(V,{className:"m-1 w-60 min-w-min max-w-full",color:t?"primary":void 0,onClick:e,children:c.jsx(v,{id:"mpt9T+"})}),t&&c.jsx(V,{className:"m-1 w-60 min-w-min max-w-full",color:e?void 0:"primary",onClick:t,children:c.jsx(v,{id:"5lWFkC"})}),n&&c.jsx(V,{className:"m-1 w-60 min-w-min max-w-full",onClick:n,children:c.jsx(v,{id:"dEgA5A"})})]})}function $l({authorizeData:e,initialSessions:t,customizationData:n,...r}){var Un;const{i18n:i,_:s}=B(),a=e.loginHint!=null,o=!a&&!!((Un=n==null?void 0:n.availableUserDomains)!=null&&Un.length),l=!o||t.length?2:0,[d,u]=m.useState(l),h=be(u,5),f=be(u,2),p=be(u,3),y=be(u,1),b=be(u,4),[x,T]=m.useState(void 0),{sessions:S,selectSub:E,doValidateNewHandle:w,doSignUp:R,doSignIn:k,doInitiatePasswordReset:C,doConfirmResetPassword:F,doAccept:L,doReject:re}=Ki({sessions:t,onRedirected:h}),j=!o||S.length?2:0,M=be(u,j),H=o?y:void 0,q=S.find(Ke=>Ke.selected&&!Ke.loginRequired);if(m.useEffect(()=>{q&&(q.consentRequired?b():L(q.account.sub))},[q,L,b]),m.useEffect(()=>{d===1&&!o&&u(j)},[d,j,!o]),m.useEffect(()=>{d===4&&!q&&u(j)},[d,j,!q]),m.useEffect(()=>{d===0&&j!==0&&u(j)},[d,j]),d===0)return c.jsx(Ol,{...r,customizationData:n,onSignIn:f,onSignUp:H,onCancel:re});if(d===1)return c.jsx(Bl,{...r,customizationData:n,onValidateNewHandle:w,onBack:M,onDone:R});if(d===3)return c.jsx(_s,{...r,emailDefault:x,onresetPasswordRequest:C,onResetPasswordConfirm:F,onBack:M});if(d===2)return c.jsx(vs,{...r,loginHint:e.loginHint,sessions:S,selectSub:E,onSignIn:k,onSignUp:H,onBack:j===2?re:M,backLabel:j===2?i._({id:"dEgA5A"}):void 0,onForgotPassword:Ke=>{p(),T(Ke)}});if(d===4)return q?c.jsx(rs,{...r,clientId:e.clientId,clientMetadata:e.clientMetadata,clientTrusted:e.clientTrusted,account:q.account,scopeDetails:e.scopeDetails,onAccept:()=>L(q.account.sub),onReject:re,onBack:a?void 0:()=>{E(null),M()}}):null;if(d===5)return c.jsx(J,{...r,title:r.title??i._({id:"UCOd1e"}),children:c.jsx(v,{id:"qq6QQ5"})});throw new Error("Unexpected application state")}const{__authorizeData:bt,__customizationData:Er,__sessions:Yl}=window,ye=new URL(window.location.href);ye.pathname==="/oauth/authorize"&&!ye.searchParams.has("request_uri")&&(ye.search="",ye.searchParams.set("client_id",bt.clientId),ye.searchParams.set("request_uri",bt.requestUri),window.history.replaceState(history.state,"",ye.pathname+ye.search));const Gl=document.getElementById("root");var br;Mi.createRoot(Gl).render(c.jsx(m.StrictMode,{children:c.jsx(Hi,{userLocales:(br=bt.uiLocales)==null?void 0:br.split(" "),children:c.jsx(Fi,{fallbackRender:({error:e})=>c.jsx(qi,{error:e,customizationData:Er}),children:c.jsx($l,{authorizeData:bt,customizationData:Er,initialSessions:Yl})})})}))});export default Ll();
|
|
20
|
+
//# sourceMappingURL=authorization-page-Bx3N57o9.js.map
|