keycloak-theme/account/resources/assets/index-1537da3e.js

22 lines
111 KiB
JavaScript
Raw Normal View History

2023-12-06 17:55:36 +00:00
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();function Jr(e,t){const r=Object.create(null),n=e.split(",");for(let s=0;s<n.length;s++)r[n[s]]=!0;return t?s=>!!r[s.toLowerCase()]:s=>!!r[s]}const ge={},Ot=[],Ue=()=>{},Fo=()=>!1,cr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Yr=e=>e.startsWith("onUpdate:"),ye=Object.assign,Qr=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Po=Object.prototype.hasOwnProperty,le=(e,t)=>Po.call(e,t),se=Array.isArray,Ut=e=>ar(e)==="[object Map]",Io=e=>ar(e)==="[object Set]",oe=e=>typeof e=="function",we=e=>typeof e=="string",lr=e=>typeof e=="symbol",me=e=>e!==null&&typeof e=="object",bs=e=>(me(e)||oe(e))&&oe(e.then)&&oe(e.catch),To=Object.prototype.toString,ar=e=>To.call(e),Oo=e=>ar(e).slice(8,-1),Uo=e=>ar(e)==="[object Object]",Xr=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qt=Jr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ur=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Mo=/-(\w)/g,xt=ur(e=>e.replace(Mo,(t,r)=>r?r.toUpperCase():"")),Lo=/\B([A-Z])/g,kt=ur(e=>e.replace(Lo,"-$1").toLowerCase()),ys=ur(e=>e.charAt(0).toUpperCase()+e.slice(1)),yr=ur(e=>e?`on${ys(e)}`:""),lt=(e,t)=>!Object.is(e,t),wr=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},tr=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},No=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let En;const Tr=()=>En||(En=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zr(e){if(se(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],s=we(n)?Ko(n):Zr(n);if(s)for(const o in s)t[o]=s[o]}return t}else if(we(e)||me(e))return e}const jo=/;(?![^(]*\))/g,Ho=/:([^]+)/,Bo=/\/\*[^]*?\*\//g;function Ko(e){const t={};return e.replace(Bo,"").split(jo).forEach(r=>{if(r){const n=r.split(Ho);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Gr(e){let t="";if(we(e))t=e;else if(se(e))for(let r=0;r<e.length;r++){const n=Gr(e[r]);n&&(t+=n+" ")}else if(me(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const Do="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",$o=Jr(Do);function ws(e){return!!e||e===""}let Ie;class _s{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ie,!t&&Ie&&(this.index=(Ie.scopes||(Ie.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Ie;try{return Ie=this,t()}finally{Ie=r}}}on(){Ie=this}off(){Ie=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function zo(e){return new _s(e)}function Wo(e,t=Ie){t&&t.active&&t.effects.push(e)}function Vo(){return Ie}const en=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Es=e=>(e.w&tt)>0,ks=e=>(e.n&tt)>0,qo=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=tt},Jo=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const s=t[n];Es(s)&&!ks(s)?s.delete(e):t[r++]=s,s.w&=~tt,s.n&=~tt}t.length=r}},Or=new Weak
* pinia v2.1.7
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/const qc=Symbol();var Gn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Gn||(Gn={}));function Jc(){const e=zo(!0),t=e.run(()=>ln({}));let r=[],n=[];const s=on({install(o){s._a=o,o.provide(qc,s),o.config.globalProperties.$pinia=s,n.forEach(c=>r.push(c)),n=[]},use(o){return!this._a&&!Vc?n.push(o):r.push(o),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return s}/*!
* vue-router v4.2.5
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/const dt=typeof window<"u";function Yc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const de=Object.assign;function Sr(e,t){const r={};for(const n in t){const s=t[n];r[n]=Le(s)?s.map(e):e(s)}return r}const Lt=()=>{},Le=Array.isArray,Qc=/\/$/,Xc=e=>e.replace(Qc,"");function Cr(e,t,r="/"){let n,s={},o="",c="";const a=t.indexOf("#");let i=t.indexOf("?");return a<i&&a>=0&&(i=-1),i>-1&&(n=t.slice(0,i),o=t.slice(i+1,a>-1?a:t.length),s=e(o)),a>-1&&(n=n||t.slice(0,a),c=t.slice(a,t.length)),n=tl(n??t,r),{fullPath:n+(o&&"?")+o+c,path:n,query:s,hash:c}}function Zc(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function es(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Gc(e,t,r){const n=t.matched.length-1,s=r.matched.length-1;return n>-1&&n===s&&_t(t.matched[n],r.matched[s])&&po(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function _t(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function po(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!el(e[r],t[r]))return!1;return!0}function el(e,t){return Le(e)?ts(e,t):Le(t)?ts(t,e):e===t}function ts(e,t){return Le(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function tl(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),s=n[n.length-1];(s===".."||s===".")&&n.push("");let o=r.length-1,c,a;for(c=0;c<n.length;c++)if(a=n[c],a!==".")if(a==="..")o>1&&o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(c-(c===n.length?1:0)).join("/")}var $t;(function(e){e.pop="pop",e.push="push"})($t||($t={}));var Nt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Nt||(Nt={}));function rl(e){if(!e)if(dt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Xc(e)}const nl=/^[^#]+#/;function sl(e,t){return e.replace(nl,"#")+t}function ol(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const xr=()=>({left:window.pageXOffset,top:window.pageYOffset});function il(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=ol(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function rs(e,t){return(history.state?history.state.position-t:-1)+e}const Wr=new Map;function cl(e,t){Wr.set(e,t)}function ll(e){const t=Wr.get(e);return Wr.delete(e),t}let al=()=>location.protocol+"//"+location.host;function go(e,t){const{pathname:r,search:n,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,i=s.slice(a);return i[0]!=="/"&&(i="/"+i),es(i,"")}return es(r,e)+n+s}function ul(e,t,r,n){let s=[],o=[],c=null;const a=({state:b})=>{const k=go(e,location),K=r.value,W=t.value;let J=0;if(b){if(r.value=k,t.value=b,c&&c===K){c=null;return}J=W?b.position-W.position:0}else n(k);s.forEach(q=>{q(r.value,K,{delta:J,type:$t.pop,direction:J?J>0?Nt.forward:Nt.back:Nt.unknown})})};function i(){c=r.value}function h(b){s.push(b);const k=()=>{const K=s.indexOf(b);K>-1&&s.splice(K,1)};return o.push(k),k}function d(){const{history:b}=window;b.state&&b.replaceState(de({},b.state,{scroll:xr()}),"")}function v(){for(const b of o)b();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:i,listen:h,destroy:v}}function ns(e,t,r,n=!1,s=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:s?xr():null}}function fl(e){const{history:t,location:r}=window,n={value:go(e,r)},s={value:t.state};s.value||o(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replace
* [js-sha256]{@link https://github.com/emn178/js-sha256}
*
* @version 0.10.1
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2023
* @license MIT
*/(function(e){(function(){var t="input is invalid type",r=typeof window=="object",n=r?window:{};n.JS_SHA256_NO_WINDOW&&(r=!1);var s=!r&&typeof self=="object",o=!n.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?n=sa:s&&(n=self);var c=!n.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,a=!n.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",i="0123456789abcdef".split(""),h=[-2147483648,8388608,32768,128],d=[24,16,8,0],v=[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],b=["hex","array","digest","arrayBuffer"],k=[];(n.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(_){return Object.prototype.toString.call(_)==="[object Array]"}),a&&(n.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(_){return typeof _=="object"&&_.buffer&&_.buffer.constructor===ArrayBuffer});var K=function(_,T){return function(D){return new X(T,!0).update(D)[_]()}},W=function(_){var T=K("hex",_);o&&(T=J(T,_)),T.create=function(){return new X(_)},T.update=function(N){return T.create().update(N)};for(var D=0;D<b.length;++D){var L=b[D];T[L]=K(L,_)}return T},J=function(_,T){var D=xs,L=xs.Buffer,N=T?"sha224":"sha256",O;L.from&&!n.JS_SHA256_NO_BUFFER_FROM?O=L.from:O=function(S){return new L(S)};var Z=function(S){if(typeof S=="string")return D.createHash(N).update(S,"utf8").digest("hex");if(S==null)throw new Error(t);return S.constructor===ArrayBuffer&&(S=new Uint8Array(S)),Array.isArray(S)||ArrayBuffer.isView(S)||S.constructor===L?D.createHash(N).update(O(S)).digest("hex"):_(S)};return Z},q=function(_,T){return function(D,L){return new V(D,T,!0).update(L)[_]()}},$=function(_){var T=q("hex",_);T.create=function(N){return new V(N,_)},T.update=function(N,O){return T.create(N).update(O)};for(var D=0;D<b.length;++D){var L=b[D];T[L]=q(L,_)}return T};function X(_,T){T?(k[0]=k[16]=k[1]=k[2]=k[3]=k[4]=k[5]=k[6]=k[7]=k[8]=k[9]=k[10]=k[11]=k[12]=k[13]=k[14]=k[15]=0,this.blocks=k):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_?(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=_}X.prototype.update=function(_){if(!this.finalized){var T,D=typeof _;if(D!=="string"){if(D==="object"){if(_===null)throw new Error(t);if(a&&_.constructor===ArrayBuffer)_=new Uint8Array(_);else if(!Array.isArray(_)&&(!a||!ArrayBuffer.isView(_)))throw new Error(t)}else throw new Error(t);T=!0}for(var L,N=0,O,Z=_.length,S=this.blocks;N<Z;){if(this.hashed&&(this.hashed=!1,S[0]=this.block,S[16]=S[1]=S[2]=S[3]=S[4]=S[5]=S[6]=S[7]=S[8]=S[9]=S[10]=S[11]=S[12]=S[13]=S[14]=S[15]=0),T)for(O=this.start;N<Z&&O<64;++N)S[O>>2]|=_[N]<<d[O++&3];else for(O=this.start;N<Z&&O<64;++N)L=_.charCodeAt(N),L<128?S[O>>2]|=L<<d[O++&3]:L<2048?(S[O>>2]|=(192|L>>6)<<d[O++&3],S[O>>2]|=(128|L&63)<<d[O++&3]):L<55296||L>=57344?(S[O>>2]|=(224|L>>12)<<d[O++&3],S[O>>2]|=(128|L>>6&63)<<d[O++&3],S[O>>2]|=(128|L&63)<<d[O++&3]):(L=65536+((L&1023)<<10|_.charCodeAt(++N)&1023),S[O>>2]|=(240|L>>18)<<d[O++&3],S[O>>2]|=(128|L>>12&63)<<d[O++&3],S[O>>2]|=(128|L>>6&63)<<d[O++&3],S[O>>2]|=(128|L&63)<<d[O++&3]);this.lastByteIndex=O,this.bytes+=O-this.start,O>=64?(this.block=S[16],this.star
- 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`),o.enable=!1,t.silentCheckSsoFallback&&(t.silentCheckSsoRedirectUri=!1)),document.body.removeChild(g),window.removeEventListener("message",C),u.setSuccess()))};window.addEventListener("message",C,!1)}else u.setSuccess();return O(u.promise,t.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function ie(u){if(!u||u=="default")return{login:function(p){return window.location.assign(t.createLoginUrl(p)),N().promise},logout:function(p){return window.location.replace(t.createLogoutUrl(p)),N().promise},register:function(p){return window.location.assign(t.createRegisterUrl(p)),N().promise},accountManagement:function(){var p=t.createAccountUrl();if(typeof p<"u")window.location.href=p;else throw"Not supported by the OIDC server";return N().promise},redirectUri:function(p,x){return p&&p.redirectUri?p.redirectUri:t.redirectUri?t.redirectUri:location.href}};if(u=="cordova"){o.enable=!1;var g=function(p,x,y){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(p,x,y):window.open(p,x,y)},C=function(p){return p&&p.cordovaOptions?Object.keys(p.cordovaOptions).reduce(function(x,y){return x[y]=p.cordovaOptions[y],x},{}):{}},I=function(p){return Object.keys(p).reduce(function(x,y){return x.push(y+"="+p[y]),x},[]).join(",")},R=function(p){var x=C(p);return x.location="no",p&&p.prompt=="none"&&(x.hidden="yes"),I(x)},U=function(){return t.redirectUri||"http://localhost"};return{login:function(p){var x=N(),y=R(p),E=t.createLoginUrl(p),H=g(E,"_blank",y),l=!1,f=!1,m=function(){f=!0,H.close()};return H.addEventListener("loadstart",function(w){if(w.url.indexOf(U())==0){var A=T(w.url);$(A,x),m(),l=!0}}),H.addEventListener("loaderror",function(w){if(!l)if(w.url.indexOf(U())==0){var A=T(w.url);$(A,x),m(),l=!0}else x.setError(),m()}),H.addEventListener("exit",function(w){f||x.setError({reason:"closed_by_user"})}),x.promise},logout:function(p){var x=N(),y=t.createLogoutUrl(p),E=g(y,"_blank","location=no,hidden=yes,clearcache=yes"),H;return E.addEventListener("loadstart",function(l){l.url.indexOf(U())==0&&E.close()}),E.addEventListener("loaderror",function(l){l.url.indexOf(U())==0||(H=!0),E.close()}),E.addEventListener("exit",function(l){H?x.setError():(t.clearToken(),x.setSuccess())}),x.promise},register:function(p){var x=N(),y=t.createRegisterUrl(),E=R(p),H=g(y,"_blank",E);return H.addEventListener("loadstart",function(l){if(l.url.indexOf(U())==0){H.close();var f=T(l.url);$(f,x)}}),x.promise},accountManagement:function(){var p=t.createAccountUrl();if(typeof p<"u"){var x=g(p,"_blank","location=no");x.addEventListener("loadstart",function(y){y.url.indexOf(U())==0&&x.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(p){return U()}}}if(u=="cordova-native")return o.enable=!1,{login:function(p){var x=N(),y=t.createLoginUrl(p);return universalLinks.subscribe("keycloak",function(E){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var H=T(E.url);$(H,x)}),window.cordova.plugins.browsertab.openUrl(y),x.promise},logout:function(p){var x=N(),y=t.createLogoutUrl(p);return universalLinks.subscribe("keycloak",function(E){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),t.clearToken(),x.setSuccess()}),window.cordova.plugins.browsertab.openUrl(y),x.promise},register:function(p){var x=N(),y=t.createRegisterUrl(p);return universalLinks.subscribe("keycloak",function(E){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var H=T(E.url);$(H,x)}),window.cordova.plugins.browsertab.openUrl(y),x.promise},accountManagement:function(){var p=t.createAccountUrl();if(typeof p<"u")window.cordova.plugins.browsertab.openUrl(p);else throw"Not supported by the OIDC server"},redirectUri:function(p){return p&&p.redirectUri?p.redirectUri:t.redirectUri?t.redirectUri:"http://localhost"}};throw"invalid adapter type: "+u}var ee=function(){if(!(this instanceof ee))return new ee;localStorage.setItem("kc-test","test"),localS