keycloak-d4science-spi-parent/keycloak-d4science-theme/src/main/resources/theme/d4science/account/resources/assets/index-Bw6oJPms.js

56 lines
460 KiB
JavaScript
Raw Normal View History

function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["./SplitItem-CHt8naZV.css","./DataListItemRow-ZUMFKqGA.css","./DescriptionListTerm-CmoB2Pr4.css","./Label-MM5JkuIZ.css","./LinkedAccounts-BI_vPGkI.css","./PersonalInfo-cN5yF_Ay.css","./Resources-BMYXTluk.css","./AccountExtraPage-BBufCGSy.css"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{jsx as W,jsxs as Ze,Fragment as Ca}from"react/jsx-runtime";import*as l from"react";import Oe,{createContext as xr,useContext as wr,useState as ot,useRef as jn,useEffect as Mt,useCallback as Oa,forwardRef as Cc,useImperativeHandle as uf,useMemo as Tt,Fragment as Oc,useId as ff,Suspense as Ec,lazy as un,StrictMode as pf}from"react";import*as Cr from"react-dom";import hf from"react-dom";function mf(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var dr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function gf(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var _c,js=hf;_c=js.createRoot,js.hydrateRoot;/**
* @remix-run/router v1.15.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Ke(){return Ke=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ke.apply(this,arguments)}var Xe;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Xe||(Xe={}));const Us="popstate";function vf(t){t===void 0&&(t={});function e(r,i){let{pathname:a,search:o,hash:s}=r.location;return ni("",{pathname:a,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Un(i)}return yf(e,n,null,t)}function ke(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function hr(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function bf(){return Math.random().toString(36).substr(2,8)}function Vs(t,e){return{usr:t.state,key:t.key,idx:e}}function ni(t,e,n,r){return n===void 0&&(n=null),Ke({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?fn(e):e,{state:n,key:e&&e.key||r||bf()})}function Un(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function fn(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function yf(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=Xe.Pop,c=null,d=u();d==null&&(d=0,o.replaceState(Ke({},o.state,{idx:d}),""));function u(){return(o.state||{idx:null}).idx}function f(){s=Xe.Pop;let b=u(),_=b==null?null:b-d;d=b,c&&c({action:s,location:y.location,delta:_})}function p(b,_){s=Xe.Push;let k=ni(y.location,b,_);n&&n(k,b),d=u()+1;let B=Vs(k,d),I=y.createHref(k);try{o.pushState(B,"",I)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(I)}a&&c&&c({action:s,location:y.location,delta:1})}function m(b,_){s=Xe.Replace;let k=ni(y.location,b,_);n&&n(k,b),d=u();let B=Vs(k,d),I=y.createHref(k);o.replaceState(B,"",I),a&&c&&c({action:s,location:y.location,delta:0})}function g(b){let _=i.location.origin!=="null"?i.location.origin:i.location.href,k=typeof b=="string"?b:Un(b);return k=k.replace(/ $/,"%20"),ke(_,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,_)}let y={get action(){return s},get location(){return t(i,o)},listen(b){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(Us,f),c=b,()=>{i.removeEventListener(Us,f),c=null}},createHref(b){return e(i,b)},createURL:g,encodeLocation(b){let _=g(b);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:p,replace:m,go(b){return o.go(b)}};return y}var We;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(We||(We={}));const xf=new Set(["lazy","caseSensitive","path","id","index","children"]);function wf(t){return t.index===!0}function bo(t,e,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),t.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if(ke(i.index!==!0||!i.children,"Cannot specify children on an index route"),ke(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),wf(i)){let c=Ke({},i,e(i),{id:s});return r[s]=c,c}else{let c=Ke({},i,e(i),{id:s,children:void 0});return r[s]=c,i.children&&(c.children=bo(i.children,e,o,r)),c}})}function or(t,e,n){n===void 0&&(n="/");let r=typeof e=="string"?fn(e):e,i=xi(r.pathname||"/",n);if(i==null)return null;let a=kc(t);Of(a);let o=null;for(let s=0;o==null&&s<a.length;++s){let c=Af(i);o=Lf(a[s],c)}return o}function Cf(t,e){let{route:n,pathname:r,params:i}=t;return{id:n.id,pathname:r,params:i,data:e[n.id],handle:n.handle}}function kc(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,o,s)=>{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};c.relativePath.startsWith("/")&&(ke(c.relativePath.startsWith(r),'Abso
`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Lt(o))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}ke(typeof FormData=="function","FormData is not available in this environment");let c,d;if(r.formData)c=xo(r.formData),d=r.formData;else if(r.body instanceof FormData)c=xo(r.body),d=r.body;else if(r.body instanceof URLSearchParams)c=r.body,d=Gs(c);else if(r.body==null)c=new URLSearchParams,d=new FormData;else try{c=new URLSearchParams(r.body),d=Gs(c)}catch{return i()}let u={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Lt(u.formMethod))return{path:n,submission:u};let f=fn(n);return e&&f.search&&Yo(f.search)&&c.append("index",""),f.search="?"+c,{path:Un(f),submission:u}}function Xf(t,e){let n=t;if(e){let r=t.findIndex(i=>i.route.id===e);r>=0&&(n=t.slice(0,r))}return n}function zs(t,e,n,r,i,a,o,s,c,d,u,f,p,m,g,y){let b=y?Object.values(y)[0]:g?Object.values(g)[0]:void 0,_=t.createURL(e.location),k=t.createURL(i),B=y?Object.keys(y)[0]:void 0,R=Xf(n,B).filter((w,T)=>{let{route:N}=w;if(N.lazy)return!0;if(N.loader==null)return!1;if(a)return N.loader.hydrate?!0:e.loaderData[N.id]===void 0&&(!e.errors||e.errors[N.id]===void 0);if(Jf(e.loaderData,e.matches[T],w)||s.some(E=>E===w.route.id))return!0;let A=e.matches[T],x=w;return Ws(w,Ke({currentUrl:_,currentParams:A.params,nextUrl:k,nextParams:x.params},r,{actionResult:b,defaultShouldRevalidate:o||_.pathname+_.search===k.pathname+k.search||_.search!==k.search||Pc(A,x)}))}),h=[];return u.forEach((w,T)=>{if(a||!n.some(O=>O.route.id===w.routeId)||d.has(T))return;let N=or(p,w.path,m);if(!N){h.push({key:T,routeId:w.routeId,path:w.path,matches:null,match:null,controller:null});return}let A=e.fetchers.get(T),x=wo(N,w.path),E=!1;f.has(T)?E=!1:c.includes(T)?E=!0:A&&A.state!=="idle"&&A.data===void 0?E=o:E=Ws(x,Ke({currentUrl:_,currentParams:e.matches[e.matches.length-1].params,nextUrl:k,nextParams:n[n.length-1].params},r,{actionResult:b,defaultShouldRevalidate:o})),E&&h.push({key:T,routeId:w.routeId,path:w.path,matches:N,match:x,controller:new AbortController})}),[R,h]}function Jf(t,e,n){let r=!e||n.route.id!==e.route.id,i=t[n.route.id]===void 0;return r||i}function Pc(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function Ws(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}async function Ks(t,e,n){if(!t.lazy)return;let r=await t.lazy();if(!t.lazy)return;let i=n[t.id];ke(i,"No route found in manifest");let a={};for(let o in r){let c=i[o]!==void 0&&o!=="hasErrorBoundary";hr(!c,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!c&&!xf.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Ke({},e(i),{lazy:void 0}))}async function Pr(t,e,n,r,i,a,o,s,c){c===void 0&&(c={});let d,u,f,p=y=>{let b,_=new Promise((k,B)=>b=B);return f=()=>b(),e.signal.addEventListener("abort",f),Promise.race([y({request:e,params:n.params,context:c.requestContext}),_])};try{let y=n.route[t];if(n.route.lazy)if(y){let b,_=await Promise.all([p(y).catch(k=>{b=k}),Ks(n.route,a,i)]);if(b)throw b;u=_[0]}else if(await Ks(n.route,a,i),y=n.route[t],y)u=await p(y);else if(t==="action"){let b=new URL(e.url),_=b.pathname+b.search;throw St(405,{method:e.method,pathname:_,routeId:n.route.id})}else return{type:We.data,data:void 0};else if(y)u=await p(y);else{let b=new URL(e.url),_=b.pathname+b.search;throw St(404,{pathname:_})}ke(u!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please
* React Router v6.22.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ri(){return ri=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ri.apply(this,arguments)}const Ea=l.createContext(null),Mc=l.createContext(null),Or=l.createContext(null),Sa=l.createContext(null),pn=l.createContext({outlet:null,matches:[],isDataRoute:!1}),Dc=l.createContext(null);function Bc(t,e){let{relative:n}=e===void 0?{}:e;wi()||ke(!1);let{basename:r,navigator:i}=l.useContext(Or),{hash:a,pathname:o,search:s}=Uc(t,{relative:n}),c=o;return r!=="/"&&(c=o==="/"?r:rn([r,o])),i.createHref({pathname:c,search:s,hash:a})}function wi(){return l.useContext(Sa)!=null}function Ci(){return wi()||ke(!1),l.useContext(Sa).location}function jc(t){l.useContext(Or).static||l.useLayoutEffect(t)}function op(){let{isDataRoute:t}=l.useContext(pn);return t?yp():sp()}function sp(){wi()||ke(!1);let t=l.useContext(Ea),{basename:e,future:n,navigator:r}=l.useContext(Or),{matches:i}=l.useContext(pn),{pathname:a}=Ci(),o=JSON.stringify(Go(i,n.v7_relativeSplatPath)),s=l.useRef(!1);return jc(()=>{s.current=!0}),l.useCallback(function(d,u){if(u===void 0&&(u={}),!s.current)return;if(typeof d=="number"){r.go(d);return}let f=qo(d,JSON.parse(o),a,u.relative==="path");t==null&&e!=="/"&&(f.pathname=f.pathname==="/"?e:rn([e,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[e,r,o,a,t])}const lp=l.createContext(null);function cp(t){let e=l.useContext(pn).outlet;return e&&l.createElement(lp.Provider,{value:t},e)}function Z1(){let{matches:t}=l.useContext(pn),e=t[t.length-1];return e?e.params:{}}function Uc(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=l.useContext(Or),{matches:i}=l.useContext(pn),{pathname:a}=Ci(),o=JSON.stringify(Go(i,r.v7_relativeSplatPath));return l.useMemo(()=>qo(t,JSON.parse(o),a,n==="path"),[t,o,a,n])}function dp(t,e,n,r){wi()||ke(!1);let{navigator:i}=l.useContext(Or),{matches:a}=l.useContext(pn),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let d=Ci(),u;if(e){var f;let b=typeof e=="string"?fn(e):e;c==="/"||(f=b.pathname)!=null&&f.startsWith(c)||ke(!1),u=b}else u=d;let p=u.pathname||"/",m=p;if(c!=="/"){let b=c.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(b.length).join("/")}let g=or(t,{pathname:m}),y=mp(g&&g.map(b=>Object.assign({},b,{params:Object.assign({},s,b.params),pathname:rn([c,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:rn([c,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),a,n,r);return e&&y?l.createElement(Sa.Provider,{value:{location:ri({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Xe.Pop}},y):y}function up(){let t=Hc(),e=Jo(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},e),n?l.createElement("pre",{style:i},n):null,null)}const fp=l.createElement(up,null);class pp extends l.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?l.createElement(pn.Provider,{value:this.props.routeContext},l.createElement(Dc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hp(t){let{routeContext:e,match:n,children:r}=t,i=l.useContext(Ea);return i&&i.static&&i.staticContext&&(n.rou
* React Router DOM v6.22.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Qi(){return Qi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qi.apply(this,arguments)}function Ep(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Sp(t,e){return t.button===0&&(!e||e==="_self")&&!Ep(t)}const _p="6";try{window.__reactRouterVersion=_p}catch{}function kp(t,e){return Gf({basename:e?.basename,future:Qi({},e?.future,{v7_prependBasename:!0}),history:vf({window:e?.window}),hydrationData:e?.hydrationData||Rp(),routes:t,mapRouteProperties:Op,window:e?.window}).initialize()}function Rp(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=Qi({},e,{errors:Tp(e.errors)})),e}function Tp(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,i]of e)if(i&&i.__type==="RouteErrorResponse")n[r]=new Xo(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const Np=l.createContext({isTransitioning:!1}),Ip=l.createContext(new Map),Lp="startTransition",tl=l[Lp],Pp="flushSync",nl=Cr[Pp];function Ap(t){tl?tl(t):t()}function Mr(t){nl?nl(t):t()}class Fp{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Mp(t){let{fallbackElement:e,router:n,future:r}=t,[i,a]=l.useState(n.state),[o,s]=l.useState(),[c,d]=l.useState({isTransitioning:!1}),[u,f]=l.useState(),[p,m]=l.useState(),[g,y]=l.useState(),b=l.useRef(new Map),{v7_startTransition:_}=r||{},k=l.useCallback(w=>{_?Ap(w):w()},[_]),B=l.useCallback((w,T)=>{let{deletedFetchers:N,unstable_flushSync:A,unstable_viewTransitionOpts:x}=T;N.forEach(O=>b.current.delete(O)),w.fetchers.forEach((O,$)=>{O.data!==void 0&&b.current.set($,O.data)});let E=n.window==null||typeof n.window.document.startViewTransition!="function";if(!x||E){A?Mr(()=>a(w)):k(()=>a(w));return}if(A){Mr(()=>{p&&(u&&u.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:x.currentLocation,nextLocation:x.nextLocation})});let O=n.window.document.startViewTransition(()=>{Mr(()=>a(w))});O.finished.finally(()=>{Mr(()=>{f(void 0),m(void 0),s(void 0),d({isTransitioning:!1})})}),Mr(()=>m(O));return}p?(u&&u.resolve(),p.skipTransition(),y({state:w,currentLocation:x.currentLocation,nextLocation:x.nextLocation})):(s(w),d({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}))},[n.window,p,u,b,k]);l.useLayoutEffect(()=>n.subscribe(B),[n,B]),l.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new Fp)},[c]),l.useEffect(()=>{if(u&&o&&n.window){let w=o,T=u.promise,N=n.window.document.startViewTransition(async()=>{k(()=>a(w)),await T});N.finished.finally(()=>{f(void 0),m(void 0),s(void 0),d({isTransitioning:!1})}),m(N)}},[k,o,u,n.window]),l.useEffect(()=>{u&&o&&i.location.key===o.location.key&&u.resolve()},[u,p,i.location,o]),l.useEffect(()=>{!c.isTransitioning&&g&&(s(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[c.isTransitioning,g]),l.useEffect(()=>{},[]);let I=l.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:w=>n.navigate(w),push:(w,T,N)=>n.navigate(w,{state:T,preventScrollReset:N?.preventScrollReset}),replace:(w,T,N)=>n.navigate(w,{replace:!0,state:T,preventScrollReset:N?.preventScrollReset})}),[n]),R=n.basename||"/",h=l.useMemo(()=>({router:n,navigator:I,static:!1,basename:R}),[n,I,R]);return l.createElement(l.Fragment,null,l.createElement(Ea.Provider,{value:h},l.createElement(Mc.Provider,{value:i},l.createElement(Ip.Provider,{value:b.current},l.createElement(Np.Provider,{value:c},l.createElement(Cp,{basename:R,location:i.location,navigationType:i.historyAction,navigator:I,future:{v
`)===0?X.substr(1,X.length):X}).forEach(function(X){var G=X.split(":"),Z=G.shift().trim();if(Z){var v=G.join(":").trim();F.append(Z,v)}}),F}h.call(N.prototype);function E(C,F){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');F||(F={}),this.type="default",this.status=F.status===void 0?200:F.status,this.ok=this.status>=200&&this.status<300,this.statusText=F.statusText===void 0?"":""+F.statusText,this.headers=new y(F.headers),this.url=F.url||"",this._initBody(C)}h.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},E.error=function(){var C=new E(null,{status:0,statusText:""});return C.type="error",C};var O=[301,302,303,307,308];E.redirect=function(C,F){if(O.indexOf(F)===-1)throw new RangeError("Invalid status code");return new E(null,{status:F,headers:{location:C}})},o.DOMException=s.DOMException;try{new o.DOMException}catch{o.DOMException=function(F,j){this.message=F,this.name=j;var X=Error(F);this.stack=X.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function $(C,F){return new Promise(function(j,X){var G=new N(C,F);if(G.signal&&G.signal.aborted)return X(new o.DOMException("Aborted","AbortError"));var Z=new XMLHttpRequest;function v(){Z.abort()}Z.onload=function(){var H={status:Z.status,statusText:Z.statusText,headers:x(Z.getAllResponseHeaders()||"")};H.url="responseURL"in Z?Z.responseURL:H.headers.get("X-Request-URL");var K="response"in Z?Z.response:Z.responseText;setTimeout(function(){j(new E(K,H))},0)},Z.onerror=function(){setTimeout(function(){X(new TypeError("Network request failed"))},0)},Z.ontimeout=function(){setTimeout(function(){X(new TypeError("Network request failed"))},0)},Z.onabort=function(){setTimeout(function(){X(new o.DOMException("Aborted","AbortError"))},0)};function P(H){try{return H===""&&s.location.href?s.location.href:H}catch{return H}}Z.open(G.method,P(G.url),!0),G.credentials==="include"?Z.withCredentials=!0:G.credentials==="omit"&&(Z.withCredentials=!1),"responseType"in Z&&(c.blob?Z.responseType="blob":c.arrayBuffer&&G.headers.get("Content-Type")&&G.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(Z.responseType="arraybuffer")),F&&typeof F.headers=="object"&&!(F.headers instanceof y)?Object.getOwnPropertyNames(F.headers).forEach(function(H){Z.setRequestHeader(H,m(F.headers[H]))}):G.headers.forEach(function(H,K){Z.setRequestHeader(K,H)}),G.signal&&(G.signal.addEventListener("abort",v),Z.onreadystatechange=function(){Z.readyState===4&&G.signal.removeEventListener("abort",v)}),Z.send(typeof G._bodyInit>"u"?null:G._bodyInit)})}return $.polyfill=!0,s.fetch||(s.fetch=$,s.Headers=y,s.Request=N,s.Response=E),o.Headers=y,o.Request=N,o.Response=E,o.fetch=$,o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(Bi,Bi.exports)),Bi.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof dr<"u"&&dr.fetch?n=dr.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof uh<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||fh();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(Eo,Eo.exports);var Gc=Eo.exports;const qc=Sc(Gc),ml=mf({__proto__:null,default:qc},[Gc]);function gl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function vl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gl(Object(n),!0).forEach(function(r){ph(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gl(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ph(t,e,n){
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var nd=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ia=nd.join(","),rd=typeof Element>"u",$n=rd?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,aa=!rd&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},oa=function t(e,n){var r;n===void 0&&(n=!0);var i=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),a=i===""||i==="true",o=a||n&&e&&t(e.parentNode);return o},am=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},id=function(e,n,r){if(oa(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(ia));return n&&$n.call(e,ia)&&i.unshift(e),i=i.filter(r),i},ad=function t(e,n,r){for(var i=[],a=Array.from(e);a.length;){var o=a.shift();if(!oa(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),c=s.length?s:o.children,d=t(c,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:o,candidates:d})}else{var u=$n.call(o,ia);u&&r.filter(o)&&(n||!e.includes(o))&&i.push(o);var f=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),p=!oa(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(f&&p){var m=t(f===!0?o.children:f.children,!0,r);r.flatten?i.push.apply(i,m):i.push({scopeParent:o,candidates:m})}else a.unshift.apply(a,o.children)}}return i},od=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},An=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||am(e))&&!od(e)?0:e.tabIndex},om=function(e,n){var r=An(e);return r<0&&n&&!od(e)?0:r},sm=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},sd=function(e){return e.tagName==="INPUT"},lm=function(e){return sd(e)&&e.type==="hidden"},cm=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},dm=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},um=function(e){if(!e.name)return!0;var n=e.form||aa(e),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(e.name));else try{i=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=dm(i,e.form);return!a||a===e},fm=function(e){return sd(e)&&e.type==="radio"},pm=function(e){return fm(e)&&!um(e)},hm=function(e){var n,r=e&&aa(e),i=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==e){var o,s,c;for(a=!!((o=i)!==null&&o!==void 0&&(s=o.ownerDocument)!==null&&s!==void 0&&s.contains(i)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!a&&i;){var d,u,f;r=aa(i),i=(d=r)===null||d===void 0?void 0:d.host,a=!!((u=i)!==null&&u!==void 0&&(f=u.ownerDocument)!==null&&f!==void 0&&f.contains(i))}}return a},Tl=function(e){var n=e.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},mm=function(e,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var a=$n.call(e,"details>summary:first-of-type"),o=a?e.parentElement:e;if($n.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var s=e;e;){var c=e.parentElement,d=aa(e);if(c&&!c.shadowRoot&&i(c)===!0)return Tl(e);e.assignedSlot?e=e.assignedSlot:!c&&d!==e.ownerDocument?e=d.host:e=c}e=s}if(hm(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Tl(e
* focus-trap 7.5.2
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function Nl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Il(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nl(Object(n),!0).forEach(function(r){Cm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nl(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Cm(t,e,n){return e=Em(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Om(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Em(t){var e=Om(t,"string");return typeof e=="symbol"?e:String(e)}var Ll={activateTrap:function(e,n){if(e.length>0){var r=e[e.length-1];r!==n&&r.pause()}var i=e.indexOf(n);i===-1||e.splice(i,1),e.push(n)},deactivateTrap:function(e,n){var r=e.indexOf(n);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},Sm=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},_m=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Yr=function(e){return e?.key==="Tab"||e?.keyCode===9},km=function(e){return Yr(e)&&!e.shiftKey},Rm=function(e){return Yr(e)&&e.shiftKey},Pl=function(e){return setTimeout(e,0)},Al=function(e,n){var r=-1;return e.every(function(i,a){return n(i)?(r=a,!1):!0}),r},Vr=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,r):e},ji=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Tm=[],Nm=function(e,n){var r=n?.document||document,i=n?.trapStack||Tm,a=Il({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:km,isKeyBackward:Rm},n),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s,c=function(x,E,O){return x&&x[E]!==void 0?x[E]:a[O||E]},d=function(x,E){var O=typeof E?.composedPath=="function"?E.composedPath():void 0;return o.containerGroups.findIndex(function($){var C=$.container,F=$.tabbableNodes;return C.contains(x)||O?.includes(C)||F.find(function(j){return j===x})})},u=function(x){var E=a[x];if(typeof E=="function"){for(var O=arguments.length,$=new Array(O>1?O-1:0),C=1;C<O;C++)$[C-1]=arguments[C];E=E.apply(void 0,$)}if(E===!0&&(E=void 0),!E){if(E===void 0||E===!1)return E;throw new Error("`".concat(x,"` was specified but was not a node, or did not return a node"))}var F=E;if(typeof E=="string"&&(F=r.querySelector(E),!F))throw new Error("`".concat(x,"` as selector refers to no known node"));return F},f=function(){var x=u("initialFocus");if(x===!1)return!1;if(x===void 0||!Xa(x,a.tabbableOptions))if(d(r.activeElement)>=0)x=r.activeElement;else{var E=o.tabbableGroups[0],O=E&&E.firstTabbableNode;x=O||u("fallbackFocus")}if(!x)throw new Error("Your focus-trap needs to have at least one focusable element");return x},p=function(){if(o.containerGroups=o.containers.map(function(x){var E=ym(x,a.tabbableOptions),O=xm(x,a.tabbableOptions),$=E.length>0?E[0]:void 0,C=E.length>0?E[E.length-1]:void 0,F=O.find(function(G){return nr(G)}),j=O.slice().reverse().find(function(G){return nr(G)}),X=!!E.find(function(G){return An(G)>0});return{container:x,tabbableNodes:E,focusableNodes:O,posTabIndexesFound:X,firstTabbableNode:$,lastTabbableNode:C,firstDomTabbableNode:F,lastDomTabbableNode:j,nextTabbableNode:function(Z){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,P=E.indexOf(Z);return P<0?v?O.slice(O.indexOf(Z)+1).find(function(H){return nr(H)}):O.slice(0,O.indexOf(Z)).reverse().find(function(H){r
* [js-sha256]{@link https://github.com/emn178/js-sha256}
*
* @version 0.11.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2024
* @license MIT
*/(function(t){(function(){var e="input is invalid type",n=typeof window=="object",r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var i=!n&&typeof self=="object",a=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?r=dr:i&&(r=self);var o=!r.JS_SHA256_NO_COMMON_JS&&!0&&t.exports,s=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),d=[-2147483648,8388608,32768,128],u=[24,16,8,0],f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],p=["hex","array","digest","arrayBuffer"],m=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(h){return Object.prototype.toString.call(h)==="[object Array]"}),s&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(h){return typeof h=="object"&&h.buffer&&h.buffer.constructor===ArrayBuffer});var g=function(h,w){return function(T){return new B(w,!0).update(T)[h]()}},y=function(h){var w=g("hex",h);a&&(w=b(w,h)),w.create=function(){return new B(h)},w.update=function(A){return w.create().update(A)};for(var T=0;T<p.length;++T){var N=p[T];w[N]=g(N,h)}return w},b=function(h,w){var T=ic,N=ic.Buffer,A=w?"sha224":"sha256",x;N.from&&!r.JS_SHA256_NO_BUFFER_FROM?x=N.from:x=function(O){return new N(O)};var E=function(O){if(typeof O=="string")return T.createHash(A).update(O,"utf8").digest("hex");if(O==null)throw new Error(e);return O.constructor===ArrayBuffer&&(O=new Uint8Array(O)),Array.isArray(O)||ArrayBuffer.isView(O)||O.constructor===N?T.createHash(A).update(x(O)).digest("hex"):h(O)};return E},_=function(h,w){return function(T,N){return new I(T,w,!0).update(N)[h]()}},k=function(h){var w=_("hex",h);w.create=function(A){return new I(A,h)},w.update=function(A,x){return w.create(A).update(x)};for(var T=0;T<p.length;++T){var N=p[T];w[N]=_(N,h)}return w};function B(h,w){w?(m[0]=m[16]=m[1]=m[2]=m[3]=m[4]=m[5]=m[6]=m[7]=m[8]=m[9]=m[10]=m[11]=m[12]=m[13]=m[14]=m[15]=0,this.blocks=m):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=h}B.prototype.update=function(h){if(!this.finalized){var w,T=typeof h;if(T!=="string"){if(T==="object"){if(h===null)throw new Error(e);if(s&&h.constructor===ArrayBuffer)h=new Uint8Array(h);else if(!Array.isArray(h)&&(!s||!ArrayBuffer.isView(h)))throw new Error(e)}else throw new Error(e);w=!0}for(var N,A=0,x,E=h.length,O=this.blocks;A<E;){if(this.hashed&&(this.hashed=!1,O[0]=this.block,this.block=O[16]=O[1]=O[2]=O[3]=O[4]=O[5]=O[6]=O[7]=O[8]=O[9]=O[10]=O[11]=O[12]=O[13]=O[14]=O[15]=0),w)for(x=this.start;A<E&&x<64;++A)O[x>>>2]|=h[A]<<u[x++&3];else for(x=this.start;A<E&&x<64;++A)N=h.charCodeAt(A),N<128?O[x>>>2]|=N<<u[x++&3]:N<2048?(O[x>>>2]|=(192|N>>>6)<<u[x++&3],O[x>>>2]|=(128|N&63)<<u[x++&3]):N<55296||N>=57344?(O[x>>>2]|=(224|N>>>12)<<u[x++&3],O[x>>>2]|=(128|N>>>6&63)<<u[x++&3],O[x>>>2]|=(128|N&63)<<u[x++&3]):(N=65536+((N&1023)<<10|h.charCodeAt(++A)&1023),O[x>>>2]|=(240|N>>>18)<<u[x++&3],O[x>>>2]|=(128|N>>>12&63)<<u[x++&3],O[x>>>2]|=(128|N>>>6&63)<<u[x++&3],O[x>>>2]|=(128|N&63)<<u[x++&3]);this.lastByteIndex=x,this.bytes+=x-this.start,x>=64
- It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
- It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),a.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(P),window.removeEventListener("message",H),v.setSuccess()))};window.addEventListener("message",H,!1)}else v.setSuccess();return x(v.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function F(v){if(!v||v=="default")return{login:function(Q){return window.location.assign(e.createLoginUrl(Q)),A().promise},logout:async function(Q){if((Q?.logoutMethod??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(Q));return}const re=e.createLogoutUrl(Q),ne=await fetch(re,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:n.redirectUri(Q,!1)})});if(ne.redirected){window.location.href=ne.url;return}if(ne.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(Q){return window.location.assign(e.createRegisterUrl(Q)),A().promise},accountManagement:function(){var Q=e.createAccountUrl();if(typeof Q<"u")window.location.href=Q;else throw"Not supported by the OIDC server";return A().promise},redirectUri:function(Q,ee){return Q&&Q.redirectUri?Q.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(v=="cordova"){a.enable=!1;var P=function(Q,ee,re){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(Q,ee,re):window.open(Q,ee,re)},H=function(Q){return Q&&Q.cordovaOptions?Object.keys(Q.cordovaOptions).reduce(function(ee,re){return ee[re]=Q.cordovaOptions[re],ee},{}):{}},K=function(Q){return Object.keys(Q).reduce(function(ee,re){return ee.push(re+"="+Q[re]),ee},[]).join(",")},U=function(Q){var ee=H(Q);return ee.location="no",Q&&Q.prompt=="none"&&(ee.hidden="yes"),K(ee)},J=function(){return e.redirectUri||"http://localhost"};return{login:function(Q){var ee=A(),re=U(Q),ne=e.createLoginUrl(Q),se=P(ne,"_blank",re),fe=!1,Ie=!1,Ge=function(){Ie=!0,se.close()};return se.addEventListener("loadstart",function(Me){if(Me.url.indexOf(J())==0){var Ve=w(Me.url);k(Ve,ee),Ge(),fe=!0}}),se.addEventListener("loaderror",function(Me){if(!fe)if(Me.url.indexOf(J())==0){var Ve=w(Me.url);k(Ve,ee),Ge(),fe=!0}else ee.setError(),Ge()}),se.addEventListener("exit",function(Me){Ie||ee.setError({reason:"closed_by_user"})}),ee.promise},logout:function(Q){var ee=A(),re=e.createLogoutUrl(Q),ne=P(re,"_blank","location=no,hidden=yes,clearcache=yes"),se;return ne.addEventListener("loadstart",function(fe){fe.url.indexOf(J())==0&&ne.close()}),ne.addEventListener("loaderror",function(fe){fe.url.indexOf(J())==0||(se=!0),ne.close()}),ne.addEventListener("exit",function(fe){se?ee.setError():(e.clearToken(),ee.setSuccess())}),ee.promise},register:function(Q){var ee=A(),re=e.createRegisterUrl(),ne=U(Q),se=P(re,"_blank",ne);return se.addEventListener("loadstart",function(fe){if(fe.url.indexOf(J())==0){se.close();var Ie=w(fe.url);k(Ie,ee)}}),ee.promise},accountManagement:function(){var Q=e.createAccountUrl();if(typeof Q<"u"){var ee=P(Q,"_blank","location=no");ee.addEventListener("loadstart",function(re){re.url.indexOf(J())==0&&ee.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(Q){return J()}}}if(v=="cordova-native")return a.enable=!1,{login:function(Q){var ee=A(),re=e.createLoginUrl(Q);return universalLinks.subscribe("keycloak",function(ne){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var se=w(ne.url);k(se,ee)}),window.cordova.plugins.browsertab.openUrl(re),ee.promise},logout:function(Q){var ee=A(),re=e.createLogoutUrl(Q);return universalLinks.subscribe("keycloak",function(ne){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),ee.setSuccess()}),window.cordova.plugins.browsertab.openUrl(re),ee.promise},register:function(Q){var ee=A(),re=e.createRegisterUrl(Q);return universalLinks.subscribe("keycloak",function(ne){univers
//# sourceMappingURL=index-Bw6oJPms.js.map