@tapni/auth 1.0.71 → 1.0.73

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.
@@ -1,9 +1,9 @@
1
- (function(a,en){typeof exports=="object"&&typeof module<"u"?module.exports=en(require("vue"),require("vue-router"),require("await-to-js"),require("@capacitor/core"),require("jwt-decode"),require("js-sha256"),require("axios"),require("@capacitor/browser"),require("qr-code-styling"),require("@braintree/sanitize-url"),require("vuex"),require("@capacitor/device")):typeof define=="function"&&define.amd?define(["vue","vue-router","await-to-js","@capacitor/core","jwt-decode","js-sha256","axios","@capacitor/browser","qr-code-styling","@braintree/sanitize-url","vuex","@capacitor/device"],en):(a=typeof globalThis<"u"?globalThis:a||self,a.TapniAuth=en(a.Vue,a.vueRouter,a.to,a.core,a.jwtDecode,a.jsSha256,a.axios,a.browser$1,a.QRCodeStyling,a.sanitizeUrl,a.vuex,a.device))})(this,function(a,en,fe,tt,or,rr,mo,Vn,ir,pi,ar,fo){"use strict";function hi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var sr={exports:{}},Te=sr.exports={},Ct,Et;function go(){throw new Error("setTimeout has not been defined")}function _o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ct=setTimeout:Ct=go}catch{Ct=go}try{typeof clearTimeout=="function"?Et=clearTimeout:Et=_o}catch{Et=_o}})();function cr(n){if(Ct===setTimeout)return setTimeout(n,0);if((Ct===go||!Ct)&&setTimeout)return Ct=setTimeout,setTimeout(n,0);try{return Ct(n,0)}catch{try{return Ct.call(null,n,0)}catch{return Ct.call(this,n,0)}}}function mi(n){if(Et===clearTimeout)return clearTimeout(n);if((Et===_o||!Et)&&clearTimeout)return Et=clearTimeout,clearTimeout(n);try{return Et(n)}catch{try{return Et.call(null,n)}catch{return Et.call(this,n)}}}var Ut=[],mn=!1,tn,Hn=-1;function fi(){!mn||!tn||(mn=!1,tn.length?Ut=tn.concat(Ut):Hn=-1,Ut.length&&lr())}function lr(){if(!mn){var n=cr(fi);mn=!0;for(var e=Ut.length;e;){for(tn=Ut,Ut=[];++Hn<e;)tn&&tn[Hn].run();Hn=-1,e=Ut.length}tn=null,mn=!1,mi(n)}}Te.nextTick=function(n){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];Ut.push(new dr(n,e)),Ut.length===1&&!mn&&cr(lr)};function dr(n,e){this.fun=n,this.array=e}dr.prototype.run=function(){this.fun.apply(null,this.array)},Te.title="browser",Te.browser=!0,Te.env={},Te.argv=[],Te.version="",Te.versions={};function Dt(){}Te.on=Dt,Te.addListener=Dt,Te.once=Dt,Te.off=Dt,Te.removeListener=Dt,Te.removeAllListeners=Dt,Te.emit=Dt,Te.prependListener=Dt,Te.prependOnceListener=Dt,Te.listeners=function(n){return[]},Te.binding=function(n){throw new Error("process.binding is not supported")},Te.cwd=function(){return"/"},Te.chdir=function(n){throw new Error("process.chdir is not supported")},Te.umask=function(){return 0};var gi=sr.exports;const _i=hi(gi);var vo={},Kn={};Kn.byteLength=bi,Kn.toByteArray=ki,Kn.fromByteArray=Ti;for(var Tt=[],dt=[],vi=typeof Uint8Array<"u"?Uint8Array:Array,yo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fn=0,yi=yo.length;fn<yi;++fn)Tt[fn]=yo[fn],dt[yo.charCodeAt(fn)]=fn;dt[45]=62,dt[95]=63;function ur(n){var e=n.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=n.indexOf("=");t===-1&&(t=e);var o=t===e?0:4-t%4;return[t,o]}function bi(n){var e=ur(n),t=e[0],o=e[1];return(t+o)*3/4-o}function wi(n,e,t){return(e+t)*3/4-t}function ki(n){var e,t=ur(n),o=t[0],r=t[1],i=new vi(wi(n,o,r)),s=0,c=r>0?o-4:o,l;for(l=0;l<c;l+=4)e=dt[n.charCodeAt(l)]<<18|dt[n.charCodeAt(l+1)]<<12|dt[n.charCodeAt(l+2)]<<6|dt[n.charCodeAt(l+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return r===2&&(e=dt[n.charCodeAt(l)]<<2|dt[n.charCodeAt(l+1)]>>4,i[s++]=e&255),r===1&&(e=dt[n.charCodeAt(l)]<<10|dt[n.charCodeAt(l+1)]<<4|dt[n.charCodeAt(l+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function Ci(n){return Tt[n>>18&63]+Tt[n>>12&63]+Tt[n>>6&63]+Tt[n&63]}function Ei(n,e,t){for(var o,r=[],i=e;i<t;i+=3)o=(n[i]<<16&16711680)+(n[i+1]<<8&65280)+(n[i+2]&255),r.push(Ci(o));return r.join("")}function Ti(n){for(var e,t=n.length,o=t%3,r=[],i=16383,s=0,c=t-o;s<c;s+=i)r.push(Ei(n,s,s+i>c?c:s+i));return o===1?(e=n[t-1],r.push(Tt[e>>2]+Tt[e<<4&63]+"==")):o===2&&(e=(n[t-2]<<8)+n[t-1],r.push(Tt[e>>10]+Tt[e>>4&63]+Tt[e<<2&63]+"=")),r.join("")}var bo={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */bo.read=function(n,e,t,o,r){var i,s,c=r*8-o-1,l=(1<<c)-1,h=l>>1,u=-7,g=t?r-1:0,f=t?-1:1,w=n[e+g];for(g+=f,i=w&(1<<-u)-1,w>>=-u,u+=c;u>0;i=i*256+n[e+g],g+=f,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=o;u>0;s=s*256+n[e+g],g+=f,u-=8);if(i===0)i=1-h;else{if(i===l)return s?NaN:(w?-1:1)*(1/0);s=s+Math.pow(2,o),i=i-h}return(w?-1:1)*s*Math.pow(2,i-o)},bo.write=function(n,e,t,o,r,i){var s,c,l,h=i*8-r-1,u=(1<<h)-1,g=u>>1,f=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=o?0:i-1,C=o?1:-1,P=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+g>=1?e+=f/l:e+=f*Math.pow(2,1-g),e*l>=2&&(s++,l/=2),s+g>=u?(c=0,s=u):s+g>=1?(c=(e*l-1)*Math.pow(2,r),s=s+g):(c=e*Math.pow(2,g-1)*Math.pow(2,r),s=0));r>=8;n[t+w]=c&255,w+=C,c/=256,r-=8);for(s=s<<r|c,h+=r;h>0;n[t+w]=s&255,w+=C,s/=256,h-=8);n[t+w-C]|=P*128};/*!
1
+ (function(s,cn){typeof exports=="object"&&typeof module<"u"?module.exports=cn(require("vue"),require("vue-router"),require("await-to-js"),require("@capacitor/core"),require("jwt-decode"),require("js-sha256"),require("axios"),require("@capacitor/browser"),require("qr-code-styling"),require("@braintree/sanitize-url"),require("vuex"),require("@capacitor/device")):typeof define=="function"&&define.amd?define(["vue","vue-router","await-to-js","@capacitor/core","jwt-decode","js-sha256","axios","@capacitor/browser","qr-code-styling","@braintree/sanitize-url","vuex","@capacitor/device"],cn):(s=typeof globalThis<"u"?globalThis:s||self,s.TapniAuth=cn(s.Vue,s.vueRouter,s.to,s.core,s.jwtDecode,s.jsSha256,s.axios,s.browser$1,s.QRCodeStyling,s.sanitizeUrl,s.vuex,s.device))})(this,function(s,cn,be,ct,so,co,_r,Gn,lo,wi,uo,yr){"use strict";function bi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var po={exports:{}},Me=po.exports={},Mt,Lt;function vr(){throw new Error("setTimeout has not been defined")}function wr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Mt=setTimeout:Mt=vr}catch{Mt=vr}try{typeof clearTimeout=="function"?Lt=clearTimeout:Lt=wr}catch{Lt=wr}})();function ho(n){if(Mt===setTimeout)return setTimeout(n,0);if((Mt===vr||!Mt)&&setTimeout)return Mt=setTimeout,setTimeout(n,0);try{return Mt(n,0)}catch{try{return Mt.call(null,n,0)}catch{return Mt.call(this,n,0)}}}function ki(n){if(Lt===clearTimeout)return clearTimeout(n);if((Lt===wr||!Lt)&&clearTimeout)return Lt=clearTimeout,clearTimeout(n);try{return Lt(n)}catch{try{return Lt.call(null,n)}catch{return Lt.call(this,n)}}}var Ht=[],gn=!1,ln,$n=-1;function Ei(){!gn||!ln||(gn=!1,ln.length?Ht=ln.concat(Ht):$n=-1,Ht.length&&mo())}function mo(){if(!gn){var n=ho(Ei);gn=!0;for(var e=Ht.length;e;){for(ln=Ht,Ht=[];++$n<e;)ln&&ln[$n].run();$n=-1,e=Ht.length}ln=null,gn=!1,ki(n)}}Me.nextTick=function(n){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];Ht.push(new fo(n,e)),Ht.length===1&&!gn&&ho(mo)};function fo(n,e){this.fun=n,this.array=e}fo.prototype.run=function(){this.fun.apply(null,this.array)},Me.title="browser",Me.browser=!0,Me.env={},Me.argv=[],Me.version="",Me.versions={};function Kt(){}Me.on=Kt,Me.addListener=Kt,Me.once=Kt,Me.off=Kt,Me.removeListener=Kt,Me.removeAllListeners=Kt,Me.emit=Kt,Me.prependListener=Kt,Me.prependOnceListener=Kt,Me.listeners=function(n){return[]},Me.binding=function(n){throw new Error("process.binding is not supported")},Me.cwd=function(){return"/"},Me.chdir=function(n){throw new Error("process.chdir is not supported")},Me.umask=function(){return 0};var Ci=po.exports;const Ti=bi(Ci);var go={},Qn={};Qn.byteLength=Ai,Qn.toByteArray=Ni,Qn.fromByteArray=Li;for(var Ot=[],_t=[],Si=typeof Uint8Array<"u"?Uint8Array:Array,br="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_n=0,Ii=br.length;_n<Ii;++_n)Ot[_n]=br[_n],_t[br.charCodeAt(_n)]=_n;_t[45]=62,_t[95]=63;function _o(n){var e=n.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=n.indexOf("=");t===-1&&(t=e);var r=t===e?0:4-t%4;return[t,r]}function Ai(n){var e=_o(n),t=e[0],r=e[1];return(t+r)*3/4-r}function Ri(n,e,t){return(e+t)*3/4-t}function Ni(n){var e,t=_o(n),r=t[0],o=t[1],i=new Si(Ri(n,r,o)),l=0,d=o>0?r-4:r,h;for(h=0;h<d;h+=4)e=_t[n.charCodeAt(h)]<<18|_t[n.charCodeAt(h+1)]<<12|_t[n.charCodeAt(h+2)]<<6|_t[n.charCodeAt(h+3)],i[l++]=e>>16&255,i[l++]=e>>8&255,i[l++]=e&255;return o===2&&(e=_t[n.charCodeAt(h)]<<2|_t[n.charCodeAt(h+1)]>>4,i[l++]=e&255),o===1&&(e=_t[n.charCodeAt(h)]<<10|_t[n.charCodeAt(h+1)]<<4|_t[n.charCodeAt(h+2)]>>2,i[l++]=e>>8&255,i[l++]=e&255),i}function Pi(n){return Ot[n>>18&63]+Ot[n>>12&63]+Ot[n>>6&63]+Ot[n&63]}function Mi(n,e,t){for(var r,o=[],i=e;i<t;i+=3)r=(n[i]<<16&16711680)+(n[i+1]<<8&65280)+(n[i+2]&255),o.push(Pi(r));return o.join("")}function Li(n){for(var e,t=n.length,r=t%3,o=[],i=16383,l=0,d=t-r;l<d;l+=i)o.push(Mi(n,l,l+i>d?d:l+i));return r===1?(e=n[t-1],o.push(Ot[e>>2]+Ot[e<<4&63]+"==")):r===2&&(e=(n[t-2]<<8)+n[t-1],o.push(Ot[e>>10]+Ot[e>>4&63]+Ot[e<<2&63]+"=")),o.join("")}var kr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */kr.read=function(n,e,t,r,o){var i,l,d=o*8-r-1,h=(1<<d)-1,f=h>>1,u=-7,y=t?o-1:0,_=t?-1:1,k=n[e+y];for(y+=_,i=k&(1<<-u)-1,k>>=-u,u+=d;u>0;i=i*256+n[e+y],y+=_,u-=8);for(l=i&(1<<-u)-1,i>>=-u,u+=r;u>0;l=l*256+n[e+y],y+=_,u-=8);if(i===0)i=1-f;else{if(i===h)return l?NaN:(k?-1:1)*(1/0);l=l+Math.pow(2,r),i=i-f}return(k?-1:1)*l*Math.pow(2,i-r)},kr.write=function(n,e,t,r,o,i){var l,d,h,f=i*8-o-1,u=(1<<f)-1,y=u>>1,_=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=r?0:i-1,T=r?1:-1,O=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(d=isNaN(e)?1:0,l=u):(l=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-l))<1&&(l--,h*=2),l+y>=1?e+=_/h:e+=_*Math.pow(2,1-y),e*h>=2&&(l++,h/=2),l+y>=u?(d=0,l=u):l+y>=1?(d=(e*h-1)*Math.pow(2,o),l=l+y):(d=e*Math.pow(2,y-1)*Math.pow(2,o),l=0));o>=8;n[t+k]=d&255,k+=T,d/=256,o-=8);for(l=l<<o|d,f+=o;f>0;n[t+k]=l&255,k+=T,l/=256,f-=8);n[t+k-T]|=O*128};/*!
2
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
5
5
  * @license MIT
6
- */(function(n){const e=Kn,t=bo,o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=u,n.SlowBuffer=V,n.INSPECT_MAX_BYTES=50;const r=2147483647;n.kMaxLength=r;const{Uint8Array:i,ArrayBuffer:s,SharedArrayBuffer:c}=globalThis;u.TYPED_ARRAY_SUPPORT=l(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function l(){try{const m=new i(1),d={foo:function(){return 42}};return Object.setPrototypeOf(d,i.prototype),Object.setPrototypeOf(m,d),m.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function h(m){if(m>r)throw new RangeError('The value "'+m+'" is invalid for option "size"');const d=new i(m);return Object.setPrototypeOf(d,u.prototype),d}function u(m,d,p){if(typeof m=="number"){if(typeof d=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return C(m)}return g(m,d,p)}u.poolSize=8192;function g(m,d,p){if(typeof m=="string")return P(m,d);if(s.isView(m))return j(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(Oe(m,s)||m&&Oe(m.buffer,s)||typeof c<"u"&&(Oe(m,c)||m&&Oe(m.buffer,c)))return N(m,d,p);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const _=m.valueOf&&m.valueOf();if(_!=null&&_!==m)return u.from(_,d,p);const k=T(m);if(k)return k;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return u.from(m[Symbol.toPrimitive]("string"),d,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}u.from=function(m,d,p){return g(m,d,p)},Object.setPrototypeOf(u.prototype,i.prototype),Object.setPrototypeOf(u,i);function f(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function w(m,d,p){return f(m),m<=0?h(m):d!==void 0?typeof p=="string"?h(m).fill(d,p):h(m).fill(d):h(m)}u.alloc=function(m,d,p){return w(m,d,p)};function C(m){return f(m),h(m<0?0:B(m)|0)}u.allocUnsafe=function(m){return C(m)},u.allocUnsafeSlow=function(m){return C(m)};function P(m,d){if((typeof d!="string"||d==="")&&(d="utf8"),!u.isEncoding(d))throw new TypeError("Unknown encoding: "+d);const p=G(m,d)|0;let _=h(p);const k=_.write(m,d);return k!==p&&(_=_.slice(0,k)),_}function M(m){const d=m.length<0?0:B(m.length)|0,p=h(d);for(let _=0;_<d;_+=1)p[_]=m[_]&255;return p}function j(m){if(Oe(m,i)){const d=new i(m);return N(d.buffer,d.byteOffset,d.byteLength)}return M(m)}function N(m,d,p){if(d<0||m.byteLength<d)throw new RangeError('"offset" is outside of buffer bounds');if(m.byteLength<d+(p||0))throw new RangeError('"length" is outside of buffer bounds');let _;return d===void 0&&p===void 0?_=new i(m):p===void 0?_=new i(m,d):_=new i(m,d,p),Object.setPrototypeOf(_,u.prototype),_}function T(m){if(u.isBuffer(m)){const d=B(m.length)|0,p=h(d);return p.length===0||m.copy(p,0,0,d),p}if(m.length!==void 0)return typeof m.length!="number"||lt(m.length)?h(0):M(m);if(m.type==="Buffer"&&Array.isArray(m.data))return M(m.data)}function B(m){if(m>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return m|0}function V(m){return+m!=m&&(m=0),u.alloc(+m)}u.isBuffer=function(d){return d!=null&&d._isBuffer===!0&&d!==u.prototype},u.compare=function(d,p){if(Oe(d,i)&&(d=u.from(d,d.offset,d.byteLength)),Oe(p,i)&&(p=u.from(p,p.offset,p.byteLength)),!u.isBuffer(d)||!u.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===p)return 0;let _=d.length,k=p.length;for(let S=0,L=Math.min(_,k);S<L;++S)if(d[S]!==p[S]){_=d[S],k=p[S];break}return _<k?-1:k<_?1:0},u.isEncoding=function(d){switch(String(d).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(d,p){if(!Array.isArray(d))throw new TypeError('"list" argument must be an Array of Buffers');if(d.length===0)return u.alloc(0);let _;if(p===void 0)for(p=0,_=0;_<d.length;++_)p+=d[_].length;const k=u.allocUnsafe(p);let S=0;for(_=0;_<d.length;++_){let L=d[_];if(Oe(L,i))S+L.length>k.length?(u.isBuffer(L)||(L=u.from(L)),L.copy(k,S)):i.prototype.set.call(k,L,S);else if(u.isBuffer(L))L.copy(k,S);else throw new TypeError('"list" argument must be an Array of Buffers');S+=L.length}return k};function G(m,d){if(u.isBuffer(m))return m.length;if(s.isView(m)||Oe(m,s))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);const p=m.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&p===0)return 0;let k=!1;for(;;)switch(d){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return ht(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return je(m).length;default:if(k)return _?-1:ht(m).length;d=(""+d).toLowerCase(),k=!0}}u.byteLength=G;function J(m,d,p){let _=!1;if((d===void 0||d<0)&&(d=0),d>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,d>>>=0,p<=d))return"";for(m||(m="utf8");;)switch(m){case"hex":return Xt(this,d,p);case"utf8":case"utf-8":return Pt(this,d,p);case"ascii":return Jt(this,d,p);case"latin1":case"binary":return un(this,d,p);case"base64":return yt(this,d,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sn(this,d,p);default:if(_)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),_=!0}}u.prototype._isBuffer=!0;function I(m,d,p){const _=m[d];m[d]=m[p],m[p]=_}u.prototype.swap16=function(){const d=this.length;if(d%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let p=0;p<d;p+=2)I(this,p,p+1);return this},u.prototype.swap32=function(){const d=this.length;if(d%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let p=0;p<d;p+=4)I(this,p,p+3),I(this,p+1,p+2);return this},u.prototype.swap64=function(){const d=this.length;if(d%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let p=0;p<d;p+=8)I(this,p,p+7),I(this,p+1,p+6),I(this,p+2,p+5),I(this,p+3,p+4);return this},u.prototype.toString=function(){const d=this.length;return d===0?"":arguments.length===0?Pt(this,0,d):J.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(d){if(!u.isBuffer(d))throw new TypeError("Argument must be a Buffer");return this===d?!0:u.compare(this,d)===0},u.prototype.inspect=function(){let d="";const p=n.INSPECT_MAX_BYTES;return d=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(d+=" ... "),"<Buffer "+d+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(d,p,_,k,S){if(Oe(d,i)&&(d=u.from(d,d.offset,d.byteLength)),!u.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(p===void 0&&(p=0),_===void 0&&(_=d?d.length:0),k===void 0&&(k=0),S===void 0&&(S=this.length),p<0||_>d.length||k<0||S>this.length)throw new RangeError("out of range index");if(k>=S&&p>=_)return 0;if(k>=S)return-1;if(p>=_)return 1;if(p>>>=0,_>>>=0,k>>>=0,S>>>=0,this===d)return 0;let L=S-k,se=_-p;const ye=Math.min(L,se),_e=this.slice(k,S),be=d.slice(p,_);for(let me=0;me<ye;++me)if(_e[me]!==be[me]){L=_e[me],se=be[me];break}return L<se?-1:se<L?1:0};function W(m,d,p,_,k){if(m.length===0)return-1;if(typeof p=="string"?(_=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,lt(p)&&(p=k?0:m.length-1),p<0&&(p=m.length+p),p>=m.length){if(k)return-1;p=m.length-1}else if(p<0)if(k)p=0;else return-1;if(typeof d=="string"&&(d=u.from(d,_)),u.isBuffer(d))return d.length===0?-1:ie(m,d,p,_,k);if(typeof d=="number")return d=d&255,typeof i.prototype.indexOf=="function"?k?i.prototype.indexOf.call(m,d,p):i.prototype.lastIndexOf.call(m,d,p):ie(m,[d],p,_,k);throw new TypeError("val must be string, number or Buffer")}function ie(m,d,p,_,k){let S=1,L=m.length,se=d.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(m.length<2||d.length<2)return-1;S=2,L/=2,se/=2,p/=2}function ye(be,me){return S===1?be[me]:be.readUInt16BE(me*S)}let _e;if(k){let be=-1;for(_e=p;_e<L;_e++)if(ye(m,_e)===ye(d,be===-1?0:_e-be)){if(be===-1&&(be=_e),_e-be+1===se)return be*S}else be!==-1&&(_e-=_e-be),be=-1}else for(p+se>L&&(p=L-se),_e=p;_e>=0;_e--){let be=!0;for(let me=0;me<se;me++)if(ye(m,_e+me)!==ye(d,me)){be=!1;break}if(be)return _e}return-1}u.prototype.includes=function(d,p,_){return this.indexOf(d,p,_)!==-1},u.prototype.indexOf=function(d,p,_){return W(this,d,p,_,!0)},u.prototype.lastIndexOf=function(d,p,_){return W(this,d,p,_,!1)};function ee(m,d,p,_){p=Number(p)||0;const k=m.length-p;_?(_=Number(_),_>k&&(_=k)):_=k;const S=d.length;_>S/2&&(_=S/2);let L;for(L=0;L<_;++L){const se=parseInt(d.substr(L*2,2),16);if(lt(se))return L;m[p+L]=se}return L}function ve(m,d,p,_){return mt(ht(d,m.length-p),m,p,_)}function Re(m,d,p,_){return mt(pn(d),m,p,_)}function le(m,d,p,_){return mt(je(d),m,p,_)}function Me(m,d,p,_){return mt(wt(d,m.length-p),m,p,_)}u.prototype.write=function(d,p,_,k){if(p===void 0)k="utf8",_=this.length,p=0;else if(_===void 0&&typeof p=="string")k=p,_=this.length,p=0;else if(isFinite(p))p=p>>>0,isFinite(_)?(_=_>>>0,k===void 0&&(k="utf8")):(k=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const S=this.length-p;if((_===void 0||_>S)&&(_=S),d.length>0&&(_<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");k||(k="utf8");let L=!1;for(;;)switch(k){case"hex":return ee(this,d,p,_);case"utf8":case"utf-8":return ve(this,d,p,_);case"ascii":case"latin1":case"binary":return Re(this,d,p,_);case"base64":return le(this,d,p,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Me(this,d,p,_);default:if(L)throw new TypeError("Unknown encoding: "+k);k=(""+k).toLowerCase(),L=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function yt(m,d,p){return d===0&&p===m.length?e.fromByteArray(m):e.fromByteArray(m.slice(d,p))}function Pt(m,d,p){p=Math.min(m.length,p);const _=[];let k=d;for(;k<p;){const S=m[k];let L=null,se=S>239?4:S>223?3:S>191?2:1;if(k+se<=p){let ye,_e,be,me;switch(se){case 1:S<128&&(L=S);break;case 2:ye=m[k+1],(ye&192)===128&&(me=(S&31)<<6|ye&63,me>127&&(L=me));break;case 3:ye=m[k+1],_e=m[k+2],(ye&192)===128&&(_e&192)===128&&(me=(S&15)<<12|(ye&63)<<6|_e&63,me>2047&&(me<55296||me>57343)&&(L=me));break;case 4:ye=m[k+1],_e=m[k+2],be=m[k+3],(ye&192)===128&&(_e&192)===128&&(be&192)===128&&(me=(S&15)<<18|(ye&63)<<12|(_e&63)<<6|be&63,me>65535&&me<1114112&&(L=me))}}L===null?(L=65533,se=1):L>65535&&(L-=65536,_.push(L>>>10&1023|55296),L=56320|L&1023),_.push(L),k+=se}return dn(_)}const at=4096;function dn(m){const d=m.length;if(d<=at)return String.fromCharCode.apply(String,m);let p="",_=0;for(;_<d;)p+=String.fromCharCode.apply(String,m.slice(_,_+=at));return p}function Jt(m,d,p){let _="";p=Math.min(m.length,p);for(let k=d;k<p;++k)_+=String.fromCharCode(m[k]&127);return _}function un(m,d,p){let _="";p=Math.min(m.length,p);for(let k=d;k<p;++k)_+=String.fromCharCode(m[k]);return _}function Xt(m,d,p){const _=m.length;(!d||d<0)&&(d=0),(!p||p<0||p>_)&&(p=_);let k="";for(let S=d;S<p;++S)k+=hn[m[S]];return k}function Sn(m,d,p){const _=m.slice(d,p);let k="";for(let S=0;S<_.length-1;S+=2)k+=String.fromCharCode(_[S]+_[S+1]*256);return k}u.prototype.slice=function(d,p){const _=this.length;d=~~d,p=p===void 0?_:~~p,d<0?(d+=_,d<0&&(d=0)):d>_&&(d=_),p<0?(p+=_,p<0&&(p=0)):p>_&&(p=_),p<d&&(p=d);const k=this.subarray(d,p);return Object.setPrototypeOf(k,u.prototype),k};function Ce(m,d,p){if(m%1!==0||m<0)throw new RangeError("offset is not uint");if(m+d>p)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(d,p,_){d=d>>>0,p=p>>>0,_||Ce(d,p,this.length);let k=this[d],S=1,L=0;for(;++L<p&&(S*=256);)k+=this[d+L]*S;return k},u.prototype.readUintBE=u.prototype.readUIntBE=function(d,p,_){d=d>>>0,p=p>>>0,_||Ce(d,p,this.length);let k=this[d+--p],S=1;for(;p>0&&(S*=256);)k+=this[d+--p]*S;return k},u.prototype.readUint8=u.prototype.readUInt8=function(d,p){return d=d>>>0,p||Ce(d,1,this.length),this[d]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(d,p){return d=d>>>0,p||Ce(d,2,this.length),this[d]|this[d+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(d,p){return d=d>>>0,p||Ce(d,2,this.length),this[d]<<8|this[d+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(d,p){return d=d>>>0,p||Ce(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+this[d+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(d,p){return d=d>>>0,p||Ce(d,4,this.length),this[d]*16777216+(this[d+1]<<16|this[d+2]<<8|this[d+3])},u.prototype.readBigUInt64LE=qe(function(d){d=d>>>0,Ie(d,"offset");const p=this[d],_=this[d+7];(p===void 0||_===void 0)&&ct(d,this.length-8);const k=p+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24,S=this[++d]+this[++d]*2**8+this[++d]*2**16+_*2**24;return BigInt(k)+(BigInt(S)<<BigInt(32))}),u.prototype.readBigUInt64BE=qe(function(d){d=d>>>0,Ie(d,"offset");const p=this[d],_=this[d+7];(p===void 0||_===void 0)&&ct(d,this.length-8);const k=p*2**24+this[++d]*2**16+this[++d]*2**8+this[++d],S=this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+_;return(BigInt(k)<<BigInt(32))+BigInt(S)}),u.prototype.readIntLE=function(d,p,_){d=d>>>0,p=p>>>0,_||Ce(d,p,this.length);let k=this[d],S=1,L=0;for(;++L<p&&(S*=256);)k+=this[d+L]*S;return S*=128,k>=S&&(k-=Math.pow(2,8*p)),k},u.prototype.readIntBE=function(d,p,_){d=d>>>0,p=p>>>0,_||Ce(d,p,this.length);let k=p,S=1,L=this[d+--k];for(;k>0&&(S*=256);)L+=this[d+--k]*S;return S*=128,L>=S&&(L-=Math.pow(2,8*p)),L},u.prototype.readInt8=function(d,p){return d=d>>>0,p||Ce(d,1,this.length),this[d]&128?(255-this[d]+1)*-1:this[d]},u.prototype.readInt16LE=function(d,p){d=d>>>0,p||Ce(d,2,this.length);const _=this[d]|this[d+1]<<8;return _&32768?_|4294901760:_},u.prototype.readInt16BE=function(d,p){d=d>>>0,p||Ce(d,2,this.length);const _=this[d+1]|this[d]<<8;return _&32768?_|4294901760:_},u.prototype.readInt32LE=function(d,p){return d=d>>>0,p||Ce(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},u.prototype.readInt32BE=function(d,p){return d=d>>>0,p||Ce(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},u.prototype.readBigInt64LE=qe(function(d){d=d>>>0,Ie(d,"offset");const p=this[d],_=this[d+7];(p===void 0||_===void 0)&&ct(d,this.length-8);const k=this[d+4]+this[d+5]*2**8+this[d+6]*2**16+(_<<24);return(BigInt(k)<<BigInt(32))+BigInt(p+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24)}),u.prototype.readBigInt64BE=qe(function(d){d=d>>>0,Ie(d,"offset");const p=this[d],_=this[d+7];(p===void 0||_===void 0)&&ct(d,this.length-8);const k=(p<<24)+this[++d]*2**16+this[++d]*2**8+this[++d];return(BigInt(k)<<BigInt(32))+BigInt(this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+_)}),u.prototype.readFloatLE=function(d,p){return d=d>>>0,p||Ce(d,4,this.length),t.read(this,d,!0,23,4)},u.prototype.readFloatBE=function(d,p){return d=d>>>0,p||Ce(d,4,this.length),t.read(this,d,!1,23,4)},u.prototype.readDoubleLE=function(d,p){return d=d>>>0,p||Ce(d,8,this.length),t.read(this,d,!0,52,8)},u.prototype.readDoubleBE=function(d,p){return d=d>>>0,p||Ce(d,8,this.length),t.read(this,d,!1,52,8)};function Se(m,d,p,_,k,S){if(!u.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>k||d<S)throw new RangeError('"value" argument is out of bounds');if(p+_>m.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(d,p,_,k){if(d=+d,p=p>>>0,_=_>>>0,!k){const se=Math.pow(2,8*_)-1;Se(this,d,p,_,se,0)}let S=1,L=0;for(this[p]=d&255;++L<_&&(S*=256);)this[p+L]=d/S&255;return p+_},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(d,p,_,k){if(d=+d,p=p>>>0,_=_>>>0,!k){const se=Math.pow(2,8*_)-1;Se(this,d,p,_,se,0)}let S=_-1,L=1;for(this[p+S]=d&255;--S>=0&&(L*=256);)this[p+S]=d/L&255;return p+_},u.prototype.writeUint8=u.prototype.writeUInt8=function(d,p,_){return d=+d,p=p>>>0,_||Se(this,d,p,1,255,0),this[p]=d&255,p+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(d,p,_){return d=+d,p=p>>>0,_||Se(this,d,p,2,65535,0),this[p]=d&255,this[p+1]=d>>>8,p+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(d,p,_){return d=+d,p=p>>>0,_||Se(this,d,p,2,65535,0),this[p]=d>>>8,this[p+1]=d&255,p+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(d,p,_){return d=+d,p=p>>>0,_||Se(this,d,p,4,4294967295,0),this[p+3]=d>>>24,this[p+2]=d>>>16,this[p+1]=d>>>8,this[p]=d&255,p+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(d,p,_){return d=+d,p=p>>>0,_||Se(this,d,p,4,4294967295,0),this[p]=d>>>24,this[p+1]=d>>>16,this[p+2]=d>>>8,this[p+3]=d&255,p+4};function Kt(m,d,p,_,k){Ge(d,_,k,m,p,7);let S=Number(d&BigInt(4294967295));m[p++]=S,S=S>>8,m[p++]=S,S=S>>8,m[p++]=S,S=S>>8,m[p++]=S;let L=Number(d>>BigInt(32)&BigInt(4294967295));return m[p++]=L,L=L>>8,m[p++]=L,L=L>>8,m[p++]=L,L=L>>8,m[p++]=L,p}function De(m,d,p,_,k){Ge(d,_,k,m,p,7);let S=Number(d&BigInt(4294967295));m[p+7]=S,S=S>>8,m[p+6]=S,S=S>>8,m[p+5]=S,S=S>>8,m[p+4]=S;let L=Number(d>>BigInt(32)&BigInt(4294967295));return m[p+3]=L,L=L>>8,m[p+2]=L,L=L>>8,m[p+1]=L,L=L>>8,m[p]=L,p+8}u.prototype.writeBigUInt64LE=qe(function(d,p=0){return Kt(this,d,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=qe(function(d,p=0){return De(this,d,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(d,p,_,k){if(d=+d,p=p>>>0,!k){const ye=Math.pow(2,8*_-1);Se(this,d,p,_,ye-1,-ye)}let S=0,L=1,se=0;for(this[p]=d&255;++S<_&&(L*=256);)d<0&&se===0&&this[p+S-1]!==0&&(se=1),this[p+S]=(d/L>>0)-se&255;return p+_},u.prototype.writeIntBE=function(d,p,_,k){if(d=+d,p=p>>>0,!k){const ye=Math.pow(2,8*_-1);Se(this,d,p,_,ye-1,-ye)}let S=_-1,L=1,se=0;for(this[p+S]=d&255;--S>=0&&(L*=256);)d<0&&se===0&&this[p+S+1]!==0&&(se=1),this[p+S]=(d/L>>0)-se&255;return p+_},u.prototype.writeInt8=function(d,p,_){return d=+d,p=p>>>0,_||Se(this,d,p,1,127,-128),d<0&&(d=255+d+1),this[p]=d&255,p+1},u.prototype.writeInt16LE=function(d,p,_){return d=+d,p=p>>>0,_||Se(this,d,p,2,32767,-32768),this[p]=d&255,this[p+1]=d>>>8,p+2},u.prototype.writeInt16BE=function(d,p,_){return d=+d,p=p>>>0,_||Se(this,d,p,2,32767,-32768),this[p]=d>>>8,this[p+1]=d&255,p+2},u.prototype.writeInt32LE=function(d,p,_){return d=+d,p=p>>>0,_||Se(this,d,p,4,2147483647,-2147483648),this[p]=d&255,this[p+1]=d>>>8,this[p+2]=d>>>16,this[p+3]=d>>>24,p+4},u.prototype.writeInt32BE=function(d,p,_){return d=+d,p=p>>>0,_||Se(this,d,p,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[p]=d>>>24,this[p+1]=d>>>16,this[p+2]=d>>>8,this[p+3]=d&255,p+4},u.prototype.writeBigInt64LE=qe(function(d,p=0){return Kt(this,d,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=qe(function(d,p=0){return De(this,d,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Le(m,d,p,_,k,S){if(p+_>m.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function Mt(m,d,p,_,k){return d=+d,p=p>>>0,k||Le(m,d,p,4),t.write(m,d,p,_,23,4),p+4}u.prototype.writeFloatLE=function(d,p,_){return Mt(this,d,p,!0,_)},u.prototype.writeFloatBE=function(d,p,_){return Mt(this,d,p,!1,_)};function bt(m,d,p,_,k){return d=+d,p=p>>>0,k||Le(m,d,p,8),t.write(m,d,p,_,52,8),p+8}u.prototype.writeDoubleLE=function(d,p,_){return bt(this,d,p,!0,_)},u.prototype.writeDoubleBE=function(d,p,_){return bt(this,d,p,!1,_)},u.prototype.copy=function(d,p,_,k){if(!u.isBuffer(d))throw new TypeError("argument should be a Buffer");if(_||(_=0),!k&&k!==0&&(k=this.length),p>=d.length&&(p=d.length),p||(p=0),k>0&&k<_&&(k=_),k===_||d.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("sourceEnd out of bounds");k>this.length&&(k=this.length),d.length-p<k-_&&(k=d.length-p+_);const S=k-_;return this===d&&typeof i.prototype.copyWithin=="function"?this.copyWithin(p,_,k):i.prototype.set.call(d,this.subarray(_,k),p),S},u.prototype.fill=function(d,p,_,k){if(typeof d=="string"){if(typeof p=="string"?(k=p,p=0,_=this.length):typeof _=="string"&&(k=_,_=this.length),k!==void 0&&typeof k!="string")throw new TypeError("encoding must be a string");if(typeof k=="string"&&!u.isEncoding(k))throw new TypeError("Unknown encoding: "+k);if(d.length===1){const L=d.charCodeAt(0);(k==="utf8"&&L<128||k==="latin1")&&(d=L)}}else typeof d=="number"?d=d&255:typeof d=="boolean"&&(d=Number(d));if(p<0||this.length<p||this.length<_)throw new RangeError("Out of range index");if(_<=p)return this;p=p>>>0,_=_===void 0?this.length:_>>>0,d||(d=0);let S;if(typeof d=="number")for(S=p;S<_;++S)this[S]=d;else{const L=u.isBuffer(d)?d:u.from(d,k),se=L.length;if(se===0)throw new TypeError('The value "'+d+'" is invalid for argument "value"');for(S=0;S<_-p;++S)this[S+p]=L[S%se]}return this};const Qe={};function st(m,d,p){Qe[m]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:d.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${m}]`,this.stack,delete this.name}get code(){return m}set code(k){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:k,writable:!0})}toString(){return`${this.name} [${m}]: ${this.message}`}}}st("ERR_BUFFER_OUT_OF_BOUNDS",function(m){return m?`${m} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),st("ERR_INVALID_ARG_TYPE",function(m,d){return`The "${m}" argument must be of type number. Received type ${typeof d}`},TypeError),st("ERR_OUT_OF_RANGE",function(m,d,p){let _=`The value of "${m}" is out of range.`,k=p;return Number.isInteger(p)&&Math.abs(p)>2**32?k=Gt(String(p)):typeof p=="bigint"&&(k=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(k=Gt(k)),k+="n"),_+=` It must be ${d}. Received ${k}`,_},RangeError);function Gt(m){let d="",p=m.length;const _=m[0]==="-"?1:0;for(;p>=_+4;p-=3)d=`_${m.slice(p-3,p)}${d}`;return`${m.slice(0,p)}${d}`}function Lt(m,d,p){Ie(d,"offset"),(m[d]===void 0||m[d+p]===void 0)&&ct(d,m.length-(p+1))}function Ge(m,d,p,_,k,S){if(m>p||m<d){const L=typeof d=="bigint"?"n":"";let se;throw d===0||d===BigInt(0)?se=`>= 0${L} and < 2${L} ** ${(S+1)*8}${L}`:se=`>= -(2${L} ** ${(S+1)*8-1}${L}) and < 2 ** ${(S+1)*8-1}${L}`,new Qe.ERR_OUT_OF_RANGE("value",se,m)}Lt(_,k,S)}function Ie(m,d){if(typeof m!="number")throw new Qe.ERR_INVALID_ARG_TYPE(d,"number",m)}function ct(m,d,p){throw Math.floor(m)!==m?(Ie(m,p),new Qe.ERR_OUT_OF_RANGE("offset","an integer",m)):d<0?new Qe.ERR_BUFFER_OUT_OF_BOUNDS:new Qe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${d}`,m)}const Ot=/[^+/0-9A-Za-z-_]/g;function zt(m){if(m=m.split("=")[0],m=m.trim().replace(Ot,""),m.length<2)return"";for(;m.length%4!==0;)m=m+"=";return m}function ht(m,d){d=d||1/0;let p;const _=m.length;let k=null;const S=[];for(let L=0;L<_;++L){if(p=m.charCodeAt(L),p>55295&&p<57344){if(!k){if(p>56319){(d-=3)>-1&&S.push(239,191,189);continue}else if(L+1===_){(d-=3)>-1&&S.push(239,191,189);continue}k=p;continue}if(p<56320){(d-=3)>-1&&S.push(239,191,189),k=p;continue}p=(k-55296<<10|p-56320)+65536}else k&&(d-=3)>-1&&S.push(239,191,189);if(k=null,p<128){if((d-=1)<0)break;S.push(p)}else if(p<2048){if((d-=2)<0)break;S.push(p>>6|192,p&63|128)}else if(p<65536){if((d-=3)<0)break;S.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((d-=4)<0)break;S.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return S}function pn(m){const d=[];for(let p=0;p<m.length;++p)d.push(m.charCodeAt(p)&255);return d}function wt(m,d){let p,_,k;const S=[];for(let L=0;L<m.length&&!((d-=2)<0);++L)p=m.charCodeAt(L),_=p>>8,k=p%256,S.push(k),S.push(_);return S}function je(m){return e.toByteArray(zt(m))}function mt(m,d,p,_){let k;for(k=0;k<_&&!(k+p>=d.length||k>=m.length);++k)d[k+p]=m[k];return k}function Oe(m,d){return m instanceof d||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===d.name}function lt(m){return m!==m}const hn=function(){const m="0123456789abcdef",d=new Array(256);for(let p=0;p<16;++p){const _=p*16;for(let k=0;k<16;++k)d[_+k]=m[p]+m[k]}return d}();function qe(m){return typeof BigInt>"u"?xt:m}function xt(){throw new Error("BigInt not supported")}})(vo);const nn=vo.Buffer,Si=vo.Buffer,Gn=a.reactive(new Map),X={$on(n,e){let t=Gn.get(n);t||(t=new Set,Gn.set(n,t)),t.add(e)},$emit(n,...e){const t=Gn.get(n);if(t)for(const o of t)o(...e)},$off(n,e){const t=Gn.get(n);t&&t.delete(e)}};a.readonly(X);const Ii={computed:{home(){return this.$storex&&this.$storex.token&&this.$storex.username?"/"+this.$storex.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||tt.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||tt.Capacitor.getPlatform()==="ios"},isNative(){return tt.Capacitor.isNativePlatform()}},methods:{getIcon(n){return this.isNative?`/icons/${n}`:"https://cdn.tapni.co/icons/"+n},errorHandler(n){return n&&n.response&&n.response.data&&n.response.data.error&&((n.response.data.error==="ACCESS_DENIED"||n.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!n.response.data.error.includes("Network Error")&&!n.response.data.error.includes("Cannot read properties")&&this.errorSnack(n.response.data.error)),n},errorSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("errorMessage"),o=document.getElementById("errorSnack");t.innerHTML=n,e.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},successSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("successMessage"),o=document.getElementById("successSnack");t.innerHTML=n,e.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(n){return n<10?"":n<=50?"🔥":n<=100?"💥":n<=300?"💎":n>300?"🚀":""},isEmpty(n){if(!n)return!0;for(let e in n)if(n.hasOwnProperty(e))return!1;return JSON.stringify(n)===JSON.stringify({})},copy(n=""){const e=document.createElement("textarea");e.value=n,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(n){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:n})}catch(e){return console.error("grecaptcha_error",e),null}}}},{mapState:Ai,mapActions:Ri,mapGetters:Ni}=ar.createNamespacedHelpers("auth"),We={mixins:[Ii],props:{isModal:{type:Boolean,required:!1,default:!1}},computed:{...Ai(["$storex","refreshing","loggedInUserId","account","device","loggedInAccounts","ssoLang","display","redirect_uri","response_type","state","allowedOriginsAuth"]),...Ni(["accessToken","refreshTokens","isLoggedIn","renderView","appLanguage"])},methods:{...Ri(["setLoggedInAccounts","setLoggedInUserId","setRefreshToken","unsetRefreshToken","setToken","setView","setStorage","setStorageItem","updateLang","login","register","verify","reset","exchangeAuthCode","changePassword","newPassword","deleteAccount","registerDevice","addFcmToken","acceptCompanyInvitation","logout","getCompanyBySSOEmail","getLoggedInAccounts","loginUsingQR","getAccountSettings","setRedirectUri","setDisplay","setState","setRealm","setResponseType","switchAccount","loginSetup","loginSuccess","refreshTokenAction"])},watch:{"$route.query":{handler:function(){this.$route.query.redirect_uri&&this.setRedirectUri(this.$route.query.redirect_uri),this.$route.query.display&&this.setDisplay(this.$route.query.display),this.$route.query.state&&this.setState(this.$route.query.state),this.$route.query.response_type&&this.setResponseType(this.$route.query.response_type),this.$route.query.realm&&this.setRealm(this.$route.query.realm)},deep:!0}}},nt=(n,e)=>{const t=n.__vccOpts||n;for(const[o,r]of e)t[o]=r;return t},Pi={name:"AuthWelcome",mixins:[We],data(){return{loading:!0}},computed:{isTapstackOrigin(){if(typeof window>"u")return!1;try{const n=new URL(window.location.origin).hostname;return/(^|\.)tapstack\.com$/i.test(n)}catch{return!1}},videoSource(){return this.isTapstackOrigin?"https://cdn.tapni.co/images/tapstack-video.mp4":"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4"},welcomeTitle(){return this.isTapstackOrigin?"Welcome":this.ssoLang[this.appLanguage].welcome},welcomeSubtitle(){return this.isTapstackOrigin?"The modern stack for interactive docs and tools":this.ssoLang[this.appLanguage].welcome_p1}},async mounted(){let n=document.getElementById("tapniVideo");n.addEventListener("canplay",function(){if(document.body.contains(n))try{n.play()}catch(e){console.error("Play was interrupted:",e)}}),setTimeout(()=>{this.$storex&&this.$storex.token?this.$router.push(this.home):X.$emit("ssoEvent",{name:"setLoading",data:!1})},500)},methods:{}},Mi={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},Li=["autoplay"],Oi=["src"],zi={class:"bold full-top no-bottom center-text text-[24px]"},xi={class:"full-bottom half-top center-text color-black font-16"},Bi={class:"page-login-links center-text"},Ui={key:3,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}};function Di(n,e,t,o,r,i){const s=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",Mi,[a.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:n.isNative},[a.createElementVNode("source",{src:i.videoSource,type:"video/mp4"},null,8,Oi)],8,Li),a.createElementVNode("h1",zi,a.toDisplayString(i.welcomeTitle),1),a.createElementVNode("p",xi,a.toDisplayString(i.welcomeSubtitle),1),a.createCommentVNode("",!0),a.createCommentVNode("",!0),a.createVNode(s,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(n.ssoLang[this.appLanguage].create_account),1)]),_:1}),a.createElementVNode("div",Bi,[a.createVNode(s,{to:"/login"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(n.ssoLang[this.appLanguage].already_registered)+"? ",1),a.createElementVNode("b",null,a.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),e[1]||(e[1]=a.createElementVNode("div",{class:"clear"},null,-1))]),a.createCommentVNode("",!0),this.isNative?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Ui,e[2]||(e[2]=[a.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-465df13a><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-465df13a></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-465df13a><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-465df13a></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-465df13a><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-465df13a></a>',3)])))])}const wo=nt(Pi,[["render",Di],["__scopeId","data-v-465df13a"]]),ji=Object.freeze(Object.defineProperty({__proto__:null,default:wo},Symbol.toStringTag,{value:"Module"})),In={getMe(){return ce().get("/users/me")},getByUsername(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),ce().get(`/users/${n.username}`,{params:t,headers:{"X-Referer":e}})},getByNumber(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),ce().get(`/users/tag/${n.serial}`,{params:t,headers:{"X-Referer":e}})},save(n){return ce().put("/users",n)},newPassword(n){return ce().put("/users/new-password",n)},connect(n){return ce().post("/users/connect",n)},eventLog(n){return ce().post("/users/log",n)},deleteAccount(n){return ce().post("/users/profile/delete",n)},registerDevice(n){return ce().post("/users/device/register",n)},addFcmToken(n){return ce().post("/users/device/fcm",n)},loginUsingQR(n){return ce().post("/users/qr/login",n)},updateAccount(n){return ce().put("/accounts/me",n)}},pr={registerDevice(n){return ce().post("/devices/add",n)},addFcmToken(n){return ce().post("/devices/fcm/add",n)}},ko={getBySSOEmail(n){return ce().get(`/company/sso/${n}`)},acceptCompanyInvitation(n){return ce().get(`/users/invitation?ic=${n}`)},qrCodePooling(n){return ce().post("/company/login/qr",n)}},hr={state:{english:"English",spanish:"Spanish",german:"German",korean:"Korean",italian:"Italian",french:"French",serbian:"Serbian",turkish:"Turkish",chinese:"Chinese",japanese:"Japanese",portuguese:"Portuguese",app_language:"Language",profile_preview:"Profile preview",edit_profile:"Edit profile",login:"Login",referral_reach:"Provide us with more information about you and your reach.",referral_apply_placeholder:"How do you plan to promote Tapni?",referral_apply_note:`Add as many links as possible in your account, <br>
6
+ */(function(n){const e=Qn,t=kr,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=u,n.SlowBuffer=V,n.INSPECT_MAX_BYTES=50;const o=2147483647;n.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:l,SharedArrayBuffer:d}=globalThis;u.TYPED_ARRAY_SUPPORT=h(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function h(){try{const p=new i(1),a={foo:function(){return 42}};return Object.setPrototypeOf(a,i.prototype),Object.setPrototypeOf(p,a),p.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function f(p){if(p>o)throw new RangeError('The value "'+p+'" is invalid for option "size"');const a=new i(p);return Object.setPrototypeOf(a,u.prototype),a}function u(p,a,c){if(typeof p=="number"){if(typeof a=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return T(p)}return y(p,a,c)}u.poolSize=8192;function y(p,a,c){if(typeof p=="string")return O(p,a);if(l.isView(p))return F(p);if(p==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p);if(Ee(p,l)||p&&Ee(p.buffer,l)||typeof d<"u"&&(Ee(p,d)||p&&Ee(p.buffer,d)))return N(p,a,c);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const m=p.valueOf&&p.valueOf();if(m!=null&&m!==p)return u.from(m,a,c);const g=S(p);if(g)return g;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]=="function")return u.from(p[Symbol.toPrimitive]("string"),a,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p)}u.from=function(p,a,c){return y(p,a,c)},Object.setPrototypeOf(u.prototype,i.prototype),Object.setPrototypeOf(u,i);function _(p){if(typeof p!="number")throw new TypeError('"size" argument must be of type number');if(p<0)throw new RangeError('The value "'+p+'" is invalid for option "size"')}function k(p,a,c){return _(p),p<=0?f(p):a!==void 0?typeof c=="string"?f(p).fill(a,c):f(p).fill(a):f(p)}u.alloc=function(p,a,c){return k(p,a,c)};function T(p){return _(p),f(p<0?0:z(p)|0)}u.allocUnsafe=function(p){return T(p)},u.allocUnsafeSlow=function(p){return T(p)};function O(p,a){if((typeof a!="string"||a==="")&&(a="utf8"),!u.isEncoding(a))throw new TypeError("Unknown encoding: "+a);const c=G(p,a)|0;let m=f(c);const g=m.write(p,a);return g!==c&&(m=m.slice(0,g)),m}function M(p){const a=p.length<0?0:z(p.length)|0,c=f(a);for(let m=0;m<a;m+=1)c[m]=p[m]&255;return c}function F(p){if(Ee(p,i)){const a=new i(p);return N(a.buffer,a.byteOffset,a.byteLength)}return M(p)}function N(p,a,c){if(a<0||p.byteLength<a)throw new RangeError('"offset" is outside of buffer bounds');if(p.byteLength<a+(c||0))throw new RangeError('"length" is outside of buffer bounds');let m;return a===void 0&&c===void 0?m=new i(p):c===void 0?m=new i(p,a):m=new i(p,a,c),Object.setPrototypeOf(m,u.prototype),m}function S(p){if(u.isBuffer(p)){const a=z(p.length)|0,c=f(a);return c.length===0||p.copy(c,0,0,a),c}if(p.length!==void 0)return typeof p.length!="number"||Ge(p.length)?f(0):M(p);if(p.type==="Buffer"&&Array.isArray(p.data))return M(p.data)}function z(p){if(p>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return p|0}function V(p){return+p!=p&&(p=0),u.alloc(+p)}u.isBuffer=function(a){return a!=null&&a._isBuffer===!0&&a!==u.prototype},u.compare=function(a,c){if(Ee(a,i)&&(a=u.from(a,a.offset,a.byteLength)),Ee(c,i)&&(c=u.from(c,c.offset,c.byteLength)),!u.isBuffer(a)||!u.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===c)return 0;let m=a.length,g=c.length;for(let v=0,w=Math.min(m,g);v<w;++v)if(a[v]!==c[v]){m=a[v],g=c[v];break}return m<g?-1:g<m?1:0},u.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(a,c){if(!Array.isArray(a))throw new TypeError('"list" argument must be an Array of Buffers');if(a.length===0)return u.alloc(0);let m;if(c===void 0)for(c=0,m=0;m<a.length;++m)c+=a[m].length;const g=u.allocUnsafe(c);let v=0;for(m=0;m<a.length;++m){let w=a[m];if(Ee(w,i))v+w.length>g.length?(u.isBuffer(w)||(w=u.from(w)),w.copy(g,v)):i.prototype.set.call(g,w,v);else if(u.isBuffer(w))w.copy(g,v);else throw new TypeError('"list" argument must be an Array of Buffers');v+=w.length}return g};function G(p,a){if(u.isBuffer(p))return p.length;if(l.isView(p)||Ee(p,l))return p.byteLength;if(typeof p!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);const c=p.length,m=arguments.length>2&&arguments[2]===!0;if(!m&&c===0)return 0;let g=!1;for(;;)switch(a){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return Ze(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return Be(p).length;default:if(g)return m?-1:Ze(p).length;a=(""+a).toLowerCase(),g=!0}}u.byteLength=G;function Z(p,a,c){let m=!1;if((a===void 0||a<0)&&(a=0),a>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,a>>>=0,c<=a))return"";for(p||(p="utf8");;)switch(p){case"hex":return qt(this,a,c);case"utf8":case"utf-8":return mt(this,a,c);case"ascii":return jt(this,a,c);case"latin1":case"binary":return Yt(this,a,c);case"base64":return ht(this,a,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return an(this,a,c);default:if(m)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),m=!0}}u.prototype._isBuffer=!0;function A(p,a,c){const m=p[a];p[a]=p[c],p[c]=m}u.prototype.swap16=function(){const a=this.length;if(a%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let c=0;c<a;c+=2)A(this,c,c+1);return this},u.prototype.swap32=function(){const a=this.length;if(a%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let c=0;c<a;c+=4)A(this,c,c+3),A(this,c+1,c+2);return this},u.prototype.swap64=function(){const a=this.length;if(a%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let c=0;c<a;c+=8)A(this,c,c+7),A(this,c+1,c+6),A(this,c+2,c+5),A(this,c+3,c+4);return this},u.prototype.toString=function(){const a=this.length;return a===0?"":arguments.length===0?mt(this,0,a):Z.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(a){if(!u.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?!0:u.compare(this,a)===0},u.prototype.inspect=function(){let a="";const c=n.INSPECT_MAX_BYTES;return a=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(a+=" ... "),"<Buffer "+a+">"},r&&(u.prototype[r]=u.prototype.inspect),u.prototype.compare=function(a,c,m,g,v){if(Ee(a,i)&&(a=u.from(a,a.offset,a.byteLength)),!u.isBuffer(a))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof a);if(c===void 0&&(c=0),m===void 0&&(m=a?a.length:0),g===void 0&&(g=0),v===void 0&&(v=this.length),c<0||m>a.length||g<0||v>this.length)throw new RangeError("out of range index");if(g>=v&&c>=m)return 0;if(g>=v)return-1;if(c>=m)return 1;if(c>>>=0,m>>>=0,g>>>=0,v>>>=0,this===a)return 0;let w=v-g,H=m-c;const oe=Math.min(w,H),ne=this.slice(g,v),ie=a.slice(c,m);for(let ee=0;ee<oe;++ee)if(ne[ee]!==ie[ee]){w=ne[ee],H=ie[ee];break}return w<H?-1:H<w?1:0};function W(p,a,c,m,g){if(p.length===0)return-1;if(typeof c=="string"?(m=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,Ge(c)&&(c=g?0:p.length-1),c<0&&(c=p.length+c),c>=p.length){if(g)return-1;c=p.length-1}else if(c<0)if(g)c=0;else return-1;if(typeof a=="string"&&(a=u.from(a,m)),u.isBuffer(a))return a.length===0?-1:ae(p,a,c,m,g);if(typeof a=="number")return a=a&255,typeof i.prototype.indexOf=="function"?g?i.prototype.indexOf.call(p,a,c):i.prototype.lastIndexOf.call(p,a,c):ae(p,[a],c,m,g);throw new TypeError("val must be string, number or Buffer")}function ae(p,a,c,m,g){let v=1,w=p.length,H=a.length;if(m!==void 0&&(m=String(m).toLowerCase(),m==="ucs2"||m==="ucs-2"||m==="utf16le"||m==="utf-16le")){if(p.length<2||a.length<2)return-1;v=2,w/=2,H/=2,c/=2}function oe(ie,ee){return v===1?ie[ee]:ie.readUInt16BE(ee*v)}let ne;if(g){let ie=-1;for(ne=c;ne<w;ne++)if(oe(p,ne)===oe(a,ie===-1?0:ne-ie)){if(ie===-1&&(ie=ne),ne-ie+1===H)return ie*v}else ie!==-1&&(ne-=ne-ie),ie=-1}else for(c+H>w&&(c=w-H),ne=c;ne>=0;ne--){let ie=!0;for(let ee=0;ee<H;ee++)if(oe(p,ne+ee)!==oe(a,ee)){ie=!1;break}if(ie)return ne}return-1}u.prototype.includes=function(a,c,m){return this.indexOf(a,c,m)!==-1},u.prototype.indexOf=function(a,c,m){return W(this,a,c,m,!0)},u.prototype.lastIndexOf=function(a,c,m){return W(this,a,c,m,!1)};function re(p,a,c,m){c=Number(c)||0;const g=p.length-c;m?(m=Number(m),m>g&&(m=g)):m=g;const v=a.length;m>v/2&&(m=v/2);let w;for(w=0;w<m;++w){const H=parseInt(a.substr(w*2,2),16);if(Ge(H))return w;p[c+w]=H}return w}function we(p,a,c,m){return Ke(Ze(a,p.length-c),p,c,m)}function Re(p,a,c,m){return Ke(Jt(a),p,c,m)}function me(p,a,c,m){return Ke(Be(a),p,c,m)}function Le(p,a,c,m){return Ke(gt(a,p.length-c),p,c,m)}u.prototype.write=function(a,c,m,g){if(c===void 0)g="utf8",m=this.length,c=0;else if(m===void 0&&typeof c=="string")g=c,m=this.length,c=0;else if(isFinite(c))c=c>>>0,isFinite(m)?(m=m>>>0,g===void 0&&(g="utf8")):(g=m,m=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const v=this.length-c;if((m===void 0||m>v)&&(m=v),a.length>0&&(m<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");let w=!1;for(;;)switch(g){case"hex":return re(this,a,c,m);case"utf8":case"utf-8":return we(this,a,c,m);case"ascii":case"latin1":case"binary":return Re(this,a,c,m);case"base64":return me(this,a,c,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Le(this,a,c,m);default:if(w)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),w=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ht(p,a,c){return a===0&&c===p.length?e.fromByteArray(p):e.fromByteArray(p.slice(a,c))}function mt(p,a,c){c=Math.min(p.length,c);const m=[];let g=a;for(;g<c;){const v=p[g];let w=null,H=v>239?4:v>223?3:v>191?2:1;if(g+H<=c){let oe,ne,ie,ee;switch(H){case 1:v<128&&(w=v);break;case 2:oe=p[g+1],(oe&192)===128&&(ee=(v&31)<<6|oe&63,ee>127&&(w=ee));break;case 3:oe=p[g+1],ne=p[g+2],(oe&192)===128&&(ne&192)===128&&(ee=(v&15)<<12|(oe&63)<<6|ne&63,ee>2047&&(ee<55296||ee>57343)&&(w=ee));break;case 4:oe=p[g+1],ne=p[g+2],ie=p[g+3],(oe&192)===128&&(ne&192)===128&&(ie&192)===128&&(ee=(v&15)<<18|(oe&63)<<12|(ne&63)<<6|ie&63,ee>65535&&ee<1114112&&(w=ee))}}w===null?(w=65533,H=1):w>65535&&(w-=65536,m.push(w>>>10&1023|55296),w=56320|w&1023),m.push(w),g+=H}return Wt(m)}const Xe=4096;function Wt(p){const a=p.length;if(a<=Xe)return String.fromCharCode.apply(String,p);let c="",m=0;for(;m<a;)c+=String.fromCharCode.apply(String,p.slice(m,m+=Xe));return c}function jt(p,a,c){let m="";c=Math.min(p.length,c);for(let g=a;g<c;++g)m+=String.fromCharCode(p[g]&127);return m}function Yt(p,a,c){let m="";c=Math.min(p.length,c);for(let g=a;g<c;++g)m+=String.fromCharCode(p[g]);return m}function qt(p,a,c){const m=p.length;(!a||a<0)&&(a=0),(!c||c<0||c>m)&&(c=m);let g="";for(let v=a;v<c;++v)g+=Xt[p[v]];return g}function an(p,a,c){const m=p.slice(a,c);let g="";for(let v=0;v<m.length-1;v+=2)g+=String.fromCharCode(m[v]+m[v+1]*256);return g}u.prototype.slice=function(a,c){const m=this.length;a=~~a,c=c===void 0?m:~~c,a<0?(a+=m,a<0&&(a=0)):a>m&&(a=m),c<0?(c+=m,c<0&&(c=0)):c>m&&(c=m),c<a&&(c=a);const g=this.subarray(a,c);return Object.setPrototypeOf(g,u.prototype),g};function pe(p,a,c){if(p%1!==0||p<0)throw new RangeError("offset is not uint");if(p+a>c)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(a,c,m){a=a>>>0,c=c>>>0,m||pe(a,c,this.length);let g=this[a],v=1,w=0;for(;++w<c&&(v*=256);)g+=this[a+w]*v;return g},u.prototype.readUintBE=u.prototype.readUIntBE=function(a,c,m){a=a>>>0,c=c>>>0,m||pe(a,c,this.length);let g=this[a+--c],v=1;for(;c>0&&(v*=256);)g+=this[a+--c]*v;return g},u.prototype.readUint8=u.prototype.readUInt8=function(a,c){return a=a>>>0,c||pe(a,1,this.length),this[a]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(a,c){return a=a>>>0,c||pe(a,2,this.length),this[a]|this[a+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(a,c){return a=a>>>0,c||pe(a,2,this.length),this[a]<<8|this[a+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(a,c){return a=a>>>0,c||pe(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+this[a+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(a,c){return a=a>>>0,c||pe(a,4,this.length),this[a]*16777216+(this[a+1]<<16|this[a+2]<<8|this[a+3])},u.prototype.readBigUInt64LE=Ie(function(a){a=a>>>0,Ce(a,"offset");const c=this[a],m=this[a+7];(c===void 0||m===void 0)&&Fe(a,this.length-8);const g=c+this[++a]*2**8+this[++a]*2**16+this[++a]*2**24,v=this[++a]+this[++a]*2**8+this[++a]*2**16+m*2**24;return BigInt(g)+(BigInt(v)<<BigInt(32))}),u.prototype.readBigUInt64BE=Ie(function(a){a=a>>>0,Ce(a,"offset");const c=this[a],m=this[a+7];(c===void 0||m===void 0)&&Fe(a,this.length-8);const g=c*2**24+this[++a]*2**16+this[++a]*2**8+this[++a],v=this[++a]*2**24+this[++a]*2**16+this[++a]*2**8+m;return(BigInt(g)<<BigInt(32))+BigInt(v)}),u.prototype.readIntLE=function(a,c,m){a=a>>>0,c=c>>>0,m||pe(a,c,this.length);let g=this[a],v=1,w=0;for(;++w<c&&(v*=256);)g+=this[a+w]*v;return v*=128,g>=v&&(g-=Math.pow(2,8*c)),g},u.prototype.readIntBE=function(a,c,m){a=a>>>0,c=c>>>0,m||pe(a,c,this.length);let g=c,v=1,w=this[a+--g];for(;g>0&&(v*=256);)w+=this[a+--g]*v;return v*=128,w>=v&&(w-=Math.pow(2,8*c)),w},u.prototype.readInt8=function(a,c){return a=a>>>0,c||pe(a,1,this.length),this[a]&128?(255-this[a]+1)*-1:this[a]},u.prototype.readInt16LE=function(a,c){a=a>>>0,c||pe(a,2,this.length);const m=this[a]|this[a+1]<<8;return m&32768?m|4294901760:m},u.prototype.readInt16BE=function(a,c){a=a>>>0,c||pe(a,2,this.length);const m=this[a+1]|this[a]<<8;return m&32768?m|4294901760:m},u.prototype.readInt32LE=function(a,c){return a=a>>>0,c||pe(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},u.prototype.readInt32BE=function(a,c){return a=a>>>0,c||pe(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},u.prototype.readBigInt64LE=Ie(function(a){a=a>>>0,Ce(a,"offset");const c=this[a],m=this[a+7];(c===void 0||m===void 0)&&Fe(a,this.length-8);const g=this[a+4]+this[a+5]*2**8+this[a+6]*2**16+(m<<24);return(BigInt(g)<<BigInt(32))+BigInt(c+this[++a]*2**8+this[++a]*2**16+this[++a]*2**24)}),u.prototype.readBigInt64BE=Ie(function(a){a=a>>>0,Ce(a,"offset");const c=this[a],m=this[a+7];(c===void 0||m===void 0)&&Fe(a,this.length-8);const g=(c<<24)+this[++a]*2**16+this[++a]*2**8+this[++a];return(BigInt(g)<<BigInt(32))+BigInt(this[++a]*2**24+this[++a]*2**16+this[++a]*2**8+m)}),u.prototype.readFloatLE=function(a,c){return a=a>>>0,c||pe(a,4,this.length),t.read(this,a,!0,23,4)},u.prototype.readFloatBE=function(a,c){return a=a>>>0,c||pe(a,4,this.length),t.read(this,a,!1,23,4)},u.prototype.readDoubleLE=function(a,c){return a=a>>>0,c||pe(a,8,this.length),t.read(this,a,!0,52,8)},u.prototype.readDoubleBE=function(a,c){return a=a>>>0,c||pe(a,8,this.length),t.read(this,a,!1,52,8)};function fe(p,a,c,m,g,v){if(!u.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>g||a<v)throw new RangeError('"value" argument is out of bounds');if(c+m>p.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(a,c,m,g){if(a=+a,c=c>>>0,m=m>>>0,!g){const H=Math.pow(2,8*m)-1;fe(this,a,c,m,H,0)}let v=1,w=0;for(this[c]=a&255;++w<m&&(v*=256);)this[c+w]=a/v&255;return c+m},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(a,c,m,g){if(a=+a,c=c>>>0,m=m>>>0,!g){const H=Math.pow(2,8*m)-1;fe(this,a,c,m,H,0)}let v=m-1,w=1;for(this[c+v]=a&255;--v>=0&&(w*=256);)this[c+v]=a/w&255;return c+m},u.prototype.writeUint8=u.prototype.writeUInt8=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,1,255,0),this[c]=a&255,c+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,2,65535,0),this[c]=a&255,this[c+1]=a>>>8,c+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,2,65535,0),this[c]=a>>>8,this[c+1]=a&255,c+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,4,4294967295,0),this[c+3]=a>>>24,this[c+2]=a>>>16,this[c+1]=a>>>8,this[c]=a&255,c+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,4,4294967295,0),this[c]=a>>>24,this[c+1]=a>>>16,this[c+2]=a>>>8,this[c+3]=a&255,c+4};function bt(p,a,c,m,g){De(a,m,g,p,c,7);let v=Number(a&BigInt(4294967295));p[c++]=v,v=v>>8,p[c++]=v,v=v>>8,p[c++]=v,v=v>>8,p[c++]=v;let w=Number(a>>BigInt(32)&BigInt(4294967295));return p[c++]=w,w=w>>8,p[c++]=w,w=w>>8,p[c++]=w,w=w>>8,p[c++]=w,c}function xe(p,a,c,m,g){De(a,m,g,p,c,7);let v=Number(a&BigInt(4294967295));p[c+7]=v,v=v>>8,p[c+6]=v,v=v>>8,p[c+5]=v,v=v>>8,p[c+4]=v;let w=Number(a>>BigInt(32)&BigInt(4294967295));return p[c+3]=w,w=w>>8,p[c+2]=w,w=w>>8,p[c+1]=w,w=w>>8,p[c]=w,c+8}u.prototype.writeBigUInt64LE=Ie(function(a,c=0){return bt(this,a,c,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Ie(function(a,c=0){return xe(this,a,c,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(a,c,m,g){if(a=+a,c=c>>>0,!g){const oe=Math.pow(2,8*m-1);fe(this,a,c,m,oe-1,-oe)}let v=0,w=1,H=0;for(this[c]=a&255;++v<m&&(w*=256);)a<0&&H===0&&this[c+v-1]!==0&&(H=1),this[c+v]=(a/w>>0)-H&255;return c+m},u.prototype.writeIntBE=function(a,c,m,g){if(a=+a,c=c>>>0,!g){const oe=Math.pow(2,8*m-1);fe(this,a,c,m,oe-1,-oe)}let v=m-1,w=1,H=0;for(this[c+v]=a&255;--v>=0&&(w*=256);)a<0&&H===0&&this[c+v+1]!==0&&(H=1),this[c+v]=(a/w>>0)-H&255;return c+m},u.prototype.writeInt8=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,1,127,-128),a<0&&(a=255+a+1),this[c]=a&255,c+1},u.prototype.writeInt16LE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,2,32767,-32768),this[c]=a&255,this[c+1]=a>>>8,c+2},u.prototype.writeInt16BE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,2,32767,-32768),this[c]=a>>>8,this[c+1]=a&255,c+2},u.prototype.writeInt32LE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,4,2147483647,-2147483648),this[c]=a&255,this[c+1]=a>>>8,this[c+2]=a>>>16,this[c+3]=a>>>24,c+4},u.prototype.writeInt32BE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),this[c]=a>>>24,this[c+1]=a>>>16,this[c+2]=a>>>8,this[c+3]=a&255,c+4},u.prototype.writeBigInt64LE=Ie(function(a,c=0){return bt(this,a,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Ie(function(a,c=0){return xe(this,a,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ne(p,a,c,m,g,v){if(c+m>p.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function ft(p,a,c,m,g){return a=+a,c=c>>>0,g||Ne(p,a,c,4),t.write(p,a,c,m,23,4),c+4}u.prototype.writeFloatLE=function(a,c,m){return ft(this,a,c,!0,m)},u.prototype.writeFloatBE=function(a,c,m){return ft(this,a,c,!1,m)};function at(p,a,c,m,g){return a=+a,c=c>>>0,g||Ne(p,a,c,8),t.write(p,a,c,m,52,8),c+8}u.prototype.writeDoubleLE=function(a,c,m){return at(this,a,c,!0,m)},u.prototype.writeDoubleBE=function(a,c,m){return at(this,a,c,!1,m)},u.prototype.copy=function(a,c,m,g){if(!u.isBuffer(a))throw new TypeError("argument should be a Buffer");if(m||(m=0),!g&&g!==0&&(g=this.length),c>=a.length&&(c=a.length),c||(c=0),g>0&&g<m&&(g=m),g===m||a.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(m<0||m>=this.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),a.length-c<g-m&&(g=a.length-c+m);const v=g-m;return this===a&&typeof i.prototype.copyWithin=="function"?this.copyWithin(c,m,g):i.prototype.set.call(a,this.subarray(m,g),c),v},u.prototype.fill=function(a,c,m,g){if(typeof a=="string"){if(typeof c=="string"?(g=c,c=0,m=this.length):typeof m=="string"&&(g=m,m=this.length),g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!u.isEncoding(g))throw new TypeError("Unknown encoding: "+g);if(a.length===1){const w=a.charCodeAt(0);(g==="utf8"&&w<128||g==="latin1")&&(a=w)}}else typeof a=="number"?a=a&255:typeof a=="boolean"&&(a=Number(a));if(c<0||this.length<c||this.length<m)throw new RangeError("Out of range index");if(m<=c)return this;c=c>>>0,m=m===void 0?this.length:m>>>0,a||(a=0);let v;if(typeof a=="number")for(v=c;v<m;++v)this[v]=a;else{const w=u.isBuffer(a)?a:u.from(a,g),H=w.length;if(H===0)throw new TypeError('The value "'+a+'" is invalid for argument "value"');for(v=0;v<m-c;++v)this[v+c]=w[v%H]}return this};const Pe={};function He(p,a,c){Pe[p]=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:a.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${p}]`,this.stack,delete this.name}get code(){return p}set code(g){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:g,writable:!0})}toString(){return`${this.name} [${p}]: ${this.message}`}}}He("ERR_BUFFER_OUT_OF_BOUNDS",function(p){return p?`${p} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),He("ERR_INVALID_ARG_TYPE",function(p,a){return`The "${p}" argument must be of type number. Received type ${typeof a}`},TypeError),He("ERR_OUT_OF_RANGE",function(p,a,c){let m=`The value of "${p}" is out of range.`,g=c;return Number.isInteger(c)&&Math.abs(c)>2**32?g=kt(String(c)):typeof c=="bigint"&&(g=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(g=kt(g)),g+="n"),m+=` It must be ${a}. Received ${g}`,m},RangeError);function kt(p){let a="",c=p.length;const m=p[0]==="-"?1:0;for(;c>=m+4;c-=3)a=`_${p.slice(c-3,c)}${a}`;return`${p.slice(0,c)}${a}`}function Et(p,a,c){Ce(a,"offset"),(p[a]===void 0||p[a+c]===void 0)&&Fe(a,p.length-(c+1))}function De(p,a,c,m,g,v){if(p>c||p<a){const w=typeof a=="bigint"?"n":"";let H;throw a===0||a===BigInt(0)?H=`>= 0${w} and < 2${w} ** ${(v+1)*8}${w}`:H=`>= -(2${w} ** ${(v+1)*8-1}${w}) and < 2 ** ${(v+1)*8-1}${w}`,new Pe.ERR_OUT_OF_RANGE("value",H,p)}Et(m,g,v)}function Ce(p,a){if(typeof p!="number")throw new Pe.ERR_INVALID_ARG_TYPE(a,"number",p)}function Fe(p,a,c){throw Math.floor(p)!==p?(Ce(p,c),new Pe.ERR_OUT_OF_RANGE("offset","an integer",p)):a<0?new Pe.ERR_BUFFER_OUT_OF_BOUNDS:new Pe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${a}`,p)}const Ct=/[^+/0-9A-Za-z-_]/g;function Tt(p){if(p=p.split("=")[0],p=p.trim().replace(Ct,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function Ze(p,a){a=a||1/0;let c;const m=p.length;let g=null;const v=[];for(let w=0;w<m;++w){if(c=p.charCodeAt(w),c>55295&&c<57344){if(!g){if(c>56319){(a-=3)>-1&&v.push(239,191,189);continue}else if(w+1===m){(a-=3)>-1&&v.push(239,191,189);continue}g=c;continue}if(c<56320){(a-=3)>-1&&v.push(239,191,189),g=c;continue}c=(g-55296<<10|c-56320)+65536}else g&&(a-=3)>-1&&v.push(239,191,189);if(g=null,c<128){if((a-=1)<0)break;v.push(c)}else if(c<2048){if((a-=2)<0)break;v.push(c>>6|192,c&63|128)}else if(c<65536){if((a-=3)<0)break;v.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((a-=4)<0)break;v.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return v}function Jt(p){const a=[];for(let c=0;c<p.length;++c)a.push(p.charCodeAt(c)&255);return a}function gt(p,a){let c,m,g;const v=[];for(let w=0;w<p.length&&!((a-=2)<0);++w)c=p.charCodeAt(w),m=c>>8,g=c%256,v.push(g),v.push(m);return v}function Be(p){return e.toByteArray(Tt(p))}function Ke(p,a,c,m){let g;for(g=0;g<m&&!(g+c>=a.length||g>=p.length);++g)a[g+c]=p[g];return g}function Ee(p,a){return p instanceof a||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===a.name}function Ge(p){return p!==p}const Xt=function(){const p="0123456789abcdef",a=new Array(256);for(let c=0;c<16;++c){const m=c*16;for(let g=0;g<16;++g)a[m+g]=p[c]+p[g]}return a}();function Ie(p){return typeof BigInt>"u"?St:p}function St(){throw new Error("BigInt not supported")}})(go);const Oi=go.Buffer,Wn=s.reactive(new Map),J={$on(n,e){let t=Wn.get(n);t||(t=new Set,Wn.set(n,t)),t.add(e)},$emit(n,...e){const t=Wn.get(n);if(t)for(const r of t)r(...e)},$off(n,e){const t=Wn.get(n);t&&t.delete(e)}};s.readonly(J);const xi={computed:{home(){return this.$storex&&this.$storex.token&&this.$storex.username?"/"+this.$storex.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||ct.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||ct.Capacitor.getPlatform()==="ios"},isNative(){return ct.Capacitor.isNativePlatform()}},methods:{getIcon(n){return this.isNative?`/icons/${n}`:"https://cdn.tapni.co/icons/"+n},errorHandler(n){return n&&n.response&&n.response.data&&n.response.data.error&&((n.response.data.error==="ACCESS_DENIED"||n.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!n.response.data.error.includes("Network Error")&&!n.response.data.error.includes("Cannot read properties")&&this.errorSnack(n.response.data.error)),n},errorSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("errorMessage"),r=document.getElementById("errorSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},successSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("successMessage"),r=document.getElementById("successSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(n){return n<10?"":n<=50?"🔥":n<=100?"💥":n<=300?"💎":n>300?"🚀":""},isEmpty(n){if(!n)return!0;for(let e in n)if(n.hasOwnProperty(e))return!1;return JSON.stringify(n)===JSON.stringify({})},copy(n=""){const e=document.createElement("textarea");e.value=n,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(n){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:n})}catch(e){return console.error("grecaptcha_error",e),null}}}},{mapState:Bi,mapActions:zi,mapGetters:Ui}=uo.createNamespacedHelpers("auth"),et={mixins:[xi],props:{isModal:{type:Boolean,required:!1,default:!1}},computed:{...Bi(["$storex","refreshing","loggedInUserId","account","device","loggedInAccounts","ssoLang","display","redirect_uri","response_type","state","allowedOriginsAuth"]),...Ui(["accessToken","refreshTokens","isLoggedIn","renderView","appLanguage"])},methods:{...zi(["setLoggedInAccounts","setLoggedInUserId","setRefreshToken","unsetRefreshToken","setToken","setView","setStorage","setStorageItem","updateLang","login","register","verify","reset","exchangeAuthCode","changePassword","newPassword","deleteAccount","registerDevice","addFcmToken","acceptCompanyInvitation","logout","getCompanyBySSOEmail","getLoggedInAccounts","loginUsingQR","getAccountSettings","setRedirectUri","setDisplay","setState","setRealm","setResponseType","switchAccount","loginSetup","loginSuccess","refreshTokenAction"])},watch:{"$route.query":{handler:function(){this.$route.query.redirect_uri&&this.setRedirectUri(this.$route.query.redirect_uri),this.$route.query.display&&this.setDisplay(this.$route.query.display),this.$route.query.state&&this.setState(this.$route.query.state),this.$route.query.response_type&&this.setResponseType(this.$route.query.response_type),this.$route.query.realm&&this.setRealm(this.$route.query.realm)},deep:!0}}},lt=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},Di={name:"AuthWelcome",mixins:[et],data(){return{loading:!0}},computed:{isTapstackOrigin(){if(typeof window>"u")return!1;try{const n=new URL(window.location.origin).hostname;return/(^|\.)tapstack\.com$/i.test(n)}catch{return!1}},videoSource(){return this.isTapstackOrigin?"https://cdn.tapni.co/images/tapstack-video.mp4":"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4"},welcomeTitle(){return this.isTapstackOrigin?"Welcome":this.ssoLang[this.appLanguage].welcome},welcomeSubtitle(){return this.isTapstackOrigin?"The modern stack for interactive docs and tools":this.ssoLang[this.appLanguage].welcome_p1}},async mounted(){let n=document.getElementById("tapniVideo");n&&document.body&&n.addEventListener("canplay",function(){if(document.body&&n&&document.body.contains(n))try{n.play()}catch(e){console.error("Play was interrupted:",e)}}),setTimeout(()=>{this.$storex&&this.$storex.token?this.$router.push(this.home):J.$emit("ssoEvent",{name:"setLoading",data:!1})},500)},methods:{}},Fi={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},ji=["autoplay"],qi=["src"],Vi={class:"bold full-top no-bottom center-text text-[24px]"},Hi={class:"full-bottom half-top center-text color-black font-16"},Ki={class:"page-login-links center-text"},Gi={key:3,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}};function $i(n,e,t,r,o,i){const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",Fi,[s.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:n.isNative},[s.createElementVNode("source",{src:i.videoSource,type:"video/mp4"},null,8,qi)],8,ji),s.createElementVNode("h1",Vi,s.toDisplayString(i.welcomeTitle),1),s.createElementVNode("p",Hi,s.toDisplayString(i.welcomeSubtitle),1),s.createCommentVNode("",!0),s.createCommentVNode("",!0),s.createVNode(l,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:s.withCtx(()=>[s.createElementVNode("span",null,s.toDisplayString(n.ssoLang[this.appLanguage].create_account),1)]),_:1}),s.createElementVNode("div",Ki,[s.createVNode(l,{to:"/login"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(n.ssoLang[this.appLanguage].already_registered)+"? ",1),s.createElementVNode("b",null,s.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),e[1]||(e[1]=s.createElementVNode("div",{class:"clear"},null,-1))]),s.createCommentVNode("",!0),this.isNative?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Gi,[...e[2]||(e[2]=[s.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-4abaaa1d><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-4abaaa1d></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-4abaaa1d><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-4abaaa1d></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-4abaaa1d><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-4abaaa1d></a>',3)])]))])}const Er=lt(Di,[["render",$i],["__scopeId","data-v-4abaaa1d"]]),Qi=Object.freeze(Object.defineProperty({__proto__:null,default:Er},Symbol.toStringTag,{value:"Module"})),Pn={getMe(){return he().get("/users/me")},getByUsername(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),he().get(`/users/${n.username}`,{params:t,headers:{"X-Referer":e}})},getByNumber(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),he().get(`/users/tag/${n.serial}`,{params:t,headers:{"X-Referer":e}})},save(n){return he().put("/users",n)},newPassword(n){return he().put("/users/new-password",n)},connect(n){return he().post("/users/connect",n)},eventLog(n){return he().post("/users/log",n)},deleteAccount(n){return he().post("/users/profile/delete",n)},registerDevice(n){return he().post("/users/device/register",n)},addFcmToken(n){return he().post("/users/device/fcm",n)},loginUsingQR(n){return he().post("/users/qr/login",n)},updateAccount(n){return he().put("/accounts/me",n)}},yo={registerDevice(n){return he().post("/devices/add",n)},addFcmToken(n){return he().post("/devices/fcm/add",n)}},Cr={getBySSOEmail(n){return he().get(`/company/sso/${n}`)},acceptCompanyInvitation(n){return he().get(`/users/invitation?ic=${n}`)},qrCodePooling(n){return he().post("/company/login/qr",n)}},vo={state:{english:"English",spanish:"Spanish",german:"German",korean:"Korean",italian:"Italian",french:"French",serbian:"Serbian",turkish:"Turkish",chinese:"Chinese",japanese:"Japanese",portuguese:"Portuguese",app_language:"Language",profile_preview:"Profile preview",edit_profile:"Edit profile",login:"Login",referral_reach:"Provide us with more information about you and your reach.",referral_apply_placeholder:"How do you plan to promote Tapni?",referral_apply_note:`Add as many links as possible in your account, <br>
7
7
  so that we can know who you are.
8
8
  <br><br>Be exclusive.
9
9
  <br>Not everyone gets accepted.😉`,referral_apply_now:"Apply now",referral_apply_thanks:"Thanks for applying. We will review your application soon!",connect:"Connect",with:"with",exchange_contact:"Exchange Contact",add_details:"Add more",show_details:"Show more",download_contact:"Download Contact",stay_in_touch:"Stay in touch with",no_thanks:"No Thanks",connect_join:"Join Tapni",connect_with:"Exchange contact with",connect_required_fields:"One of the two contact fields must be provided",name:"Name",first_name:"First name",last_name:"Last name",email:"Email",phone:"Phone number",phone_p:"Phone",company:"Company",address:"Address",website:"Website",open:"Open",delete:"Delete",confirm:"Confirm",cancel:"Cancel",save:"Save",code:"Code",note:"Note",note_p:"Add a note",contact_card_icon:"Set text under the contact card icon",contact_card_name:"Enter first and lastname",contact_card_name_p:"Contact card name",contact_card_email:"Enter personal email address",contact_card_email_p:"Contact card email",contact_card_phone:"Enter personal phone number",contact_card_phone_p:"Contact card phone",contact_card_website:"Enter personal website",contact_card_website_p:"Contact card website",contact_card_company_name:"Enter company name",contact_card_company_name_p:"Contact card company name",contact_card_job_title:"Job title",contact_card_job_title_p:"Enter job title",contact_card_company_website:"Company website",contact_card_company_website_p:"Enter company website",contact_card_bio:"Enter bio for the contact card",contact_card_bio_p:"Enter bio for the contact card",contact_card_home_address:"Enter home address",contact_card_home_address_p:"Contact card home address",contact_card_work_address:"Enter work address",contact_card_work_address_p:"Contact card work address",contact_card_social:"Choose social media links to your Tapni profile <br>in order to add them in the contact card",contact_card_social_p:"Choose social media links for the contact card",link_text_p:"Link Text",link_icon:"Set text under the link icon",direct_pick:"Pick a direct link",direct_p:"When you tap someone's phone, <br> this link will be opened instead of your full profile.",password_change:"Change password",password_repeat:"Repeat password",password_reset_t:"Password reset",password_current:"Enter your current password",password_current_p:"Current Password",password_new:"Enter your new password",password_new_p:"New Password",password_new_repeat:"Enter your new password again",password_new_repeat_p:"Enter your new password again",password_update:"Password update",password_reset:`If you can't remember your current password,<br>
@@ -16,7 +16,7 @@
16
16
  or if you have any questions,<br>
17
17
  write us on`,referral_p5:"Start earning money now!",referral_p66:"Share your referral link and make money!",referral_p6:`If you are a blogger, influencer or social media enthusiast you are a perfect fit for our Referral Program.
18
18
  Promote our Brand and earn a 20% commission on purchases made with your discount code or referral link.`,referral_p7:`After registering for the Tapni Referral Program, you will get a personal referral link and discount code.
19
- Share them on your website and social media, and make money while we deliver a great connecting experience.`,referral_p8:"Payout Note",referral_p9:"Paypal (Worldwide) and Bank Transfers (EU) <br> Minimum payout amount is 25€.",referral_p10:"Request Payout",referral_p11:"Requested Payout",your_connections:"Your connections",connections_p1:"Get in touch with people you met",connections_p2:"<br><br>No connections so far. <br> Let's get tappin'💥",connections_p3:"No connections found.",connection_success:"Successfully sent a connection request",exchange_success:"Successfully exchanged contacts.",create_free_account:"Create a free Tapni account and keep your contacts up to date!",connection_edit:"Manage connection",connection_edit_success:"Successfully updated connection",connection_delete_success:"Successfully deleted connection",search:"Search",devices_p1:"Devices compatibility list",devices_p2:"Tapni uses technology that is compatible with most newer iPhone and Android devices.",devices_p3:"Some Android phones might have NFC turned off. If your Tapni is not working on an Android device, search for NFC in settings and make sure it is turned on.",devices_p4:"with iOS 14 NFC widget in control center",download_p1:"Download Tapni App",download_p2:"Available for Apple and Android devices",user_not_found:"User not found",user_not_found_p:"We couldn't find the user in our database🤷",taps:"taps",private_profile:"Private profile",private_profile_p:"is a private profile. <br> Profile is visible using Tapni tags only ",profile_bio_p:"Write something about you or your brand",add_to_contacts:"Add to contacts",drag_and_drop_links:"Drag & Drop links in the desired order",no_links:"There are no links in your profile.",add_link:"Add link",direct_link_p1:"Visitors will be automatically redirected to:",profile_not_active:"Your profile is currently not active <br> and only you can see it when logged in.",profile_not_public:"Your profile is currently not public <br> and only those who tap you can see it.",activate_profile_now:"Activate your profile now",publish_profile_now:"Make your profile public now",link_add_p1:"Choose a link type",link_add_not_found:"No links found 🤷",link_add_not_found_p2:"If we missed your favourite platform, please drop us and email (<b>support@tapni.com</b>) or DM us on social media (<b>@tapni</b>)",link_add_not_found_p3:"We will try our best to support all platforms 😉",featured:"Featured",social_media:"Social media",contact:"Contact",finance:"Finance",portfolio:"Portfolio",music:"Music",business:"Business",fun:"Fun",ecommerce:"Ecommerce",more:"More",email_username:"Email / Username",username:"Username",password:"Password",sign_in:"Sign In",sign_in_with:"Sign In with",sign_in_with_new:"Sign In with new account",sign_up_with:"Sign Up with",select_sign_method:"Select a Sign In method",verify_account:"Verify account",terms_by_signing_in:"By signing in, you agree to our",terms_by_registering:"By registering, you agree to our",terms_by_submitting:"By submitting this form, you agree to our Terms of Service",terms_of_service:"Terms of Service",and:"and",refresh:"Refresh",privacy_policy:"Privacy Policy",create_account:"Create account",reset_password:"Reset password",reset_password_p1:"If you couldn't reset your password,<br> feel free to contact us at ",reset_password_p2:"If you couldn't reset your password,<br> feel free to contact us at",create_new_account:"Create new account",maintenance_p1:"We will be back soon",maintenance_p2:"Explore Tapni collections in the meantime",maintenance_p3:"Tapni is down for a scheduled maintenance <br> and is expected to be back online in a few minutes.",offline_p1:"No Internet connection",offline_p2:"Check your connection, then refresh the page",offline_p3_1:"While you are offline,",offline_p3_2:"you can share your contact card using this QR code",products_p1:"Impress everyone you meet 😎 <br> Get yours now 👇",cards:"Cards",stickers:"Stickers",keychains:"Keychains",explore_collection:"Explore collection",register:"Register",register_success:"You are almost done. Please confirm your email.",register_success_modal:"Successfully logged in with another account.",check_your_inbox:"Check your inbox",tapni_tags:"Tapni tags",tapni_tags_p1:"Configure tags connected to your profile",tapni_tags_p2:"There are no tags connected to your profile. <br> Connect one now!",verify_account_p1:"If you didn't receive a code, check your <br> spam folder or contact us at",verify_account_success:"Successfully verified account. Please change your password now.",verify_account_success2:"Successfully verified account. You are all set!🥳",welcome:"Welcome",welcome_p1:"to the future of business cards",how_it_works:"How it works",already_registered:"Already registered",error:"Error",success:"Success",copied:"Copied to clipboard",connect_validate:"One of the two contact fields must be provided",connect_validate_name:"Please enter your name",connect_validate_email:"Please enter a valid email address",link_validate:"Invalid link data.",link_text_contact_card:"Contact card",link_text_custom_link:"Custom link",link_text_menu:"Menu",link_text_phone:"Phone",save_to_apple_wallet:"Add to Apple Wallet",save_to_google_wallet:"Add to Google Wallet",card:"Card",sticker:"Sticker",keychain:"Keychain",band:"Band",case:"Case",standee:"Standee",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Outdated app version detected",update_p2:"Update",update_p3:"Please update the app to the newest version",company_domain:"Your company domain",search_company_domain:"Search your company domain",enter_company_email:"Enter business email",company_not_found:"Company not found",ik_company_domain:"I know the company domain",idk_company_domain:"I don't know the company domain",continue:"Continue",forbidden_rule:"This option is disabled, contact your company administrator.",companyName:"Company Name",createMarkerPlaceholder:"Create or select a marker",clickToCreateMarker:"Click here to create marker",pleaseInviteUser:"Please invite user to join Tapni in order to have synchronized data with you.",connectionSynchronized:"Connection data is automatically synchronized.",viewProfile:"View Profile",createConnectionHeader:"Create new connection",createConnectionButton:"Create connection",createConnectionSuccess:"Connection has been created.",allow_company_management:"Allow company management",company_join_request:"is requesting to manage your profile and associate it to it's Enterprise account.",account_ownership_transfer:"Ownership of your account will be transferred to the company if you accept the request. The company will be able to modify your profile, edit and add links, see your connections, modify your password, delete your account, and more. Make sure to check with your company before accepting the request.",request_expired:"The request has expired, ask your company to send a new request.",request_expiration_desc:"For added security, the request will only work for 14 days after it was sent.",invitation_link_not_valid:"The invitation link is not valid!",invitation_link_not_valid2:"Click the button from the invitation email again or copy the invitation link.",accept_request:"Accept request",close:"Close",request_accepted:"The request was successfully accepted",companyEmail:"Company Email",companyPhone:"Company Phone",addBusinessInformations:"Add business informations",resetFilter:"Reset",selectMarkers:"Select Markers",filterConnectionsHeader:"Filter Connections",selectConnectionType:"Select Connection Type",all:"All",direct:"Direct",form:"Form",manually:"Manually",scan:"Scan",sortOptions:"Sort Options",date:"Creation Date",fullName:"Full Name",descending:"Descending",ascending:"Ascending",selectDateRange:"Select Date Range",follow_up_reminder:"Follow Up Reminder",now:"Now",one_hour:"1 Hour",one_day:"1 Day",three_days:"3 Days",one_week:"1 Week",two_weeks:"2 Weeks",one_month:"1 Month",custom:"Choose time",set_reminder:"Set Reminder",select_date_time:"Seleccione la fecha y la hora",enter_reminder_text:"Introduzca el texto del recordatorio",reminder_created:"Reminder successfully created",connectionNameLabel:"Enter connection Name",connectionEmailLabel:"Enter private email address",privatePhoneLabel:"Enter private phone number",companyNameLabel:"Enter company name",businessEmail:"Business email address",businessEmailLabel:"Enter business email address",businessPhone:"Business phone number",businessPhoneLabel:"Enter business phone number",noteLabel:"Enter note",markersLabel:"Add connection markers",showScan:"Show Scan",hideScan:"Hide Scan",create_connection:"Create connection",create_manually:"Create Manually",create_using_scanner:"Scan paper business card",companyTitle:"Job Title",companyTitleLabel:"Enter Job Title",allConnectionsLabel:"All connection types",directConnectionsLabel:"Direct in-app connection with Tapni Users",formConnectionsLabel:"Connections filled on connect form",manualConnectionsLabel:"Manually created connections",scanConnectionsLabel:"Card scanner created connections",analyticsHeader:"Analytics",analyticsProfileViews:"Profile Views",analyticsLinkClicks:"Link Clicks",analyticsClickTroughRatio:"Click Trough Ratio",analyticsTotalConnections:"Total Connections",analyticsTopLinks:"Most Popular Links",analyticsProfileVisits:"Profile Visits",analyticsLinkVisits:"Link Visits",analyticsNewConnections:"New Connections",analyticsTopCountries:"Top Countries",analyticsTopReferers:"Top Referrers",please_wait:"Please wait...",click_here:"click here",if_redirect_not_directly:"If the redirect is not performed automatically",you_will_be_redirected:"You will be redirected to Tapni application.",use_tapni_on_the_web:"Use Tapni on the Web",login_by_scanning_qr_code:"Login by scanning QR Code",open_tapni_app_on_your_phone:"1. Open Tapni App on your phone",go_to_settings_link_a_device:"2. Go to Settings > Link a device",point_your_phone_at_this_qr_code:"3. Point your phone at this QR Code",choose_other_login_methods:"Choose other login methods",no_sso_logins:"Your company does not use SSO login, please contact your administrator",mfa:"Multi-Factor Authentication",otp_title:"Enter MFA Code to continue",otp_code:"MFA Code",otp_subtitle:"Enter the code from your authenticator app",otp_p1:"If you have trouble with MFA, <br> please contact us at",change_language:"Change language",welcome_account:"Welcome to Account Center",security:"Security",security_p:"Manage your authentication options & account status",general:"General",general_p:"Manage your personal details & other preferences",billing:"Billing",billing_p:"Manage your subscriptions & payment profiles",apps:"Apps",apps_p:"View your active apps & explore other",apps_my:"My apps",mfa_auth:"2 Factor Authentication",mfa_auth_enabled:"Your account is protected via MFA.",mfa_auth_p:"Protect your account from unauthorized access by enabling multi-factor authentication (MFA)",mfa_auth_qr:"Scan the QR code above or enter the secret key into your authenticator app.",change_password:"Change Password",active_account:"Active Account",active_account_p:"When turned off, your account will be temporary deactivated until turned back on.",delete_account:"Delete Account",delete_account_p:"Delete Account",permanent_delete:"Permanent delete",permanent_delete_p:"If you delete your account, all your data will be permanently deleted. This action cannot be undone. If you are unsure, you can temporary deactivate your account.",personal_details:"Personal Details",app_language_p:"Translate the app on your preferred language",app_region:"Region",app_region_p:"Select your region for personalized billing and support experience"}},mr={state:{english:"Englisch",spanish:"Spanisch",german:"Deutsch",korean:"Koreanisch",italian:"Italienisch",french:"Französisch",serbian:"Serbisch",turkish:"Türkisch",chinese:"Chinesisch",japanese:"Japanisch",portuguese:"Portugiesisch",app_language:"Sprache",profile_preview:"Profil ansehen",edit_profile:"Profil bearbeiten",login:"Einloggen",referral_reach:"Geben Sie uns weitere Informationen über Sie und Ihre Reichweite.",referral_apply_placeholder:"Wie würden Sie Tapni promoten?",referral_apply_note:`Bitte vervollständigen Sie Ihr Profil, <br>
19
+ Share them on your website and social media, and make money while we deliver a great connecting experience.`,referral_p8:"Payout Note",referral_p9:"Paypal (Worldwide) and Bank Transfers (EU) <br> Minimum payout amount is 25€.",referral_p10:"Request Payout",referral_p11:"Requested Payout",your_connections:"Your connections",connections_p1:"Get in touch with people you met",connections_p2:"<br><br>No connections so far. <br> Let's get tappin'💥",connections_p3:"No connections found.",connection_success:"Successfully sent a connection request",exchange_success:"Successfully exchanged contacts.",create_free_account:"Create a free Tapni account and keep your contacts up to date!",connection_edit:"Manage connection",connection_edit_success:"Successfully updated connection",connection_delete_success:"Successfully deleted connection",search:"Search",devices_p1:"Devices compatibility list",devices_p2:"Tapni uses technology that is compatible with most newer iPhone and Android devices.",devices_p3:"Some Android phones might have NFC turned off. If your Tapni is not working on an Android device, search for NFC in settings and make sure it is turned on.",devices_p4:"with iOS 14 NFC widget in control center",download_p1:"Download Tapni App",download_p2:"Available for Apple and Android devices",user_not_found:"User not found",user_not_found_p:"We couldn't find the user in our database🤷",taps:"taps",private_profile:"Private profile",private_profile_p:"is a private profile. <br> Profile is visible using Tapni tags only ",profile_bio_p:"Write something about you or your brand",add_to_contacts:"Add to contacts",drag_and_drop_links:"Drag & Drop links in the desired order",no_links:"There are no links in your profile.",add_link:"Add link",direct_link_p1:"Visitors will be automatically redirected to:",profile_not_active:"Your profile is currently not active <br> and only you can see it when logged in.",profile_not_public:"Your profile is currently not public <br> and only those who tap you can see it.",activate_profile_now:"Activate your profile now",publish_profile_now:"Make your profile public now",link_add_p1:"Choose a link type",link_add_not_found:"No links found 🤷",link_add_not_found_p2:"If we missed your favourite platform, please drop us and email (<b>support@tapni.com</b>) or DM us on social media (<b>@tapni</b>)",link_add_not_found_p3:"We will try our best to support all platforms 😉",featured:"Featured",social_media:"Social media",contact:"Contact",finance:"Finance",portfolio:"Portfolio",music:"Music",business:"Business",fun:"Fun",ecommerce:"Ecommerce",more:"More",email_username:"Email / Username",username:"Username",password:"Password",sign_in:"Sign In",sign_in_with:"Sign In with",sign_in_with_new:"Sign In with new account",sign_up_with:"Sign Up with",select_sign_method:"Select a Sign In method",verify_account:"Verify account",terms_by_signing_in:"By signing in, you agree to our",terms_by_registering:"By registering, you agree to our",terms_by_submitting:"By submitting this form, you agree to our Terms of Service",terms_of_service:"Terms of Service",and:"and",refresh:"Refresh",privacy_policy:"Privacy Policy",create_account:"Create account",reset_password:"Reset password",reset_password_p1:"If you couldn't reset your password,<br> feel free to contact us at ",reset_password_p2:"If you couldn't reset your password,<br> feel free to contact us at",create_new_account:"Create new account",maintenance_p1:"We will be back soon",maintenance_p2:"Explore Tapni collections in the meantime",maintenance_p3:"Tapni is down for a scheduled maintenance <br> and is expected to be back online in a few minutes.",offline_p1:"No Internet connection",offline_p2:"Check your connection, then refresh the page",offline_p3_1:"While you are offline,",offline_p3_2:"you can share your contact card using this QR code",products_p1:"Impress everyone you meet 😎 <br> Get yours now 👇",cards:"Cards",stickers:"Stickers",keychains:"Keychains",explore_collection:"Explore collection",register:"Register",register_success:"You are almost done. Please confirm your email.",register_success_modal:"Successfully logged in with another account.",check_your_inbox:"Check your inbox",tapni_tags:"Tapni tags",tapni_tags_p1:"Configure tags connected to your profile",tapni_tags_p2:"There are no tags connected to your profile. <br> Connect one now!",verify_account_p1:"If you didn't receive a code, check your <br> spam folder or contact us at",verify_account_success:"Successfully verified account. Please change your password now.",verify_account_success2:"Successfully verified account. You are all set!🥳",welcome:"Welcome",welcome_p1:"to the future of business cards",how_it_works:"How it works",already_registered:"Already registered",error:"Error",success:"Success",copied:"Copied to clipboard",connect_validate:"One of the two contact fields must be provided",connect_validate_name:"Please enter your name",connect_validate_email:"Please enter a valid email address",link_validate:"Invalid link data.",link_text_contact_card:"Contact card",link_text_custom_link:"Custom link",link_text_menu:"Menu",link_text_phone:"Phone",save_to_apple_wallet:"Add to Apple Wallet",save_to_google_wallet:"Add to Google Wallet",card:"Card",sticker:"Sticker",keychain:"Keychain",band:"Band",case:"Case",standee:"Standee",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Outdated app version detected",update_p2:"Update",update_p3:"Please update the app to the newest version",company_domain:"Your company domain",search_company_domain:"Search your company domain",enter_company_email:"Enter business email",company_not_found:"Company not found",ik_company_domain:"I know the company domain",idk_company_domain:"I don't know the company domain",continue:"Continue",forbidden_rule:"This option is disabled, contact your company administrator.",companyName:"Company Name",createMarkerPlaceholder:"Create or select a marker",clickToCreateMarker:"Click here to create marker",pleaseInviteUser:"Please invite user to join Tapni in order to have synchronized data with you.",connectionSynchronized:"Connection data is automatically synchronized.",viewProfile:"View Profile",createConnectionHeader:"Create new connection",createConnectionButton:"Create connection",createConnectionSuccess:"Connection has been created.",allow_company_management:"Allow company management",company_join_request:"is requesting to manage your profile and associate it to it's Enterprise account.",account_ownership_transfer:"Ownership of your account will be transferred to the company if you accept the request. The company will be able to modify your profile, edit and add links, see your connections, modify your password, delete your account, and more. Make sure to check with your company before accepting the request.",request_expired:"The request has expired, ask your company to send a new request.",request_expiration_desc:"For added security, the request will only work for 14 days after it was sent.",invitation_link_not_valid:"The invitation link is not valid!",invitation_link_not_valid2:"Click the button from the invitation email again or copy the invitation link.",accept_request:"Accept request",close:"Close",request_accepted:"The request was successfully accepted",companyEmail:"Company Email",companyPhone:"Company Phone",addBusinessInformations:"Add business informations",resetFilter:"Reset",selectMarkers:"Select Markers",filterConnectionsHeader:"Filter Connections",selectConnectionType:"Select Connection Type",all:"All",direct:"Direct",form:"Form",manually:"Manually",scan:"Scan",sortOptions:"Sort Options",date:"Creation Date",fullName:"Full Name",descending:"Descending",ascending:"Ascending",selectDateRange:"Select Date Range",follow_up_reminder:"Follow Up Reminder",now:"Now",one_hour:"1 Hour",one_day:"1 Day",three_days:"3 Days",one_week:"1 Week",two_weeks:"2 Weeks",one_month:"1 Month",custom:"Choose time",set_reminder:"Set Reminder",select_date_time:"Seleccione la fecha y la hora",enter_reminder_text:"Introduzca el texto del recordatorio",reminder_created:"Reminder successfully created",connectionNameLabel:"Enter connection Name",connectionEmailLabel:"Enter private email address",privatePhoneLabel:"Enter private phone number",companyNameLabel:"Enter company name",businessEmail:"Business email address",businessEmailLabel:"Enter business email address",businessPhone:"Business phone number",businessPhoneLabel:"Enter business phone number",noteLabel:"Enter note",markersLabel:"Add connection markers",showScan:"Show Scan",hideScan:"Hide Scan",create_connection:"Create connection",create_manually:"Create Manually",create_using_scanner:"Scan paper business card",companyTitle:"Job Title",companyTitleLabel:"Enter Job Title",allConnectionsLabel:"All connection types",directConnectionsLabel:"Direct in-app connection with Tapni Users",formConnectionsLabel:"Connections filled on connect form",manualConnectionsLabel:"Manually created connections",scanConnectionsLabel:"Card scanner created connections",analyticsHeader:"Analytics",analyticsProfileViews:"Profile Views",analyticsLinkClicks:"Link Clicks",analyticsClickTroughRatio:"Click Trough Ratio",analyticsTotalConnections:"Total Connections",analyticsTopLinks:"Most Popular Links",analyticsProfileVisits:"Profile Visits",analyticsLinkVisits:"Link Visits",analyticsNewConnections:"New Connections",analyticsTopCountries:"Top Countries",analyticsTopReferers:"Top Referrers",please_wait:"Please wait...",click_here:"click here",if_redirect_not_directly:"If the redirect is not performed automatically",you_will_be_redirected:"You will be redirected to Tapni application.",use_tapni_on_the_web:"Use Tapni on the Web",login_by_scanning_qr_code:"Login by scanning QR Code",open_tapni_app_on_your_phone:"1. Open Tapni App on your phone",go_to_settings_link_a_device:"2. Go to Settings > Link a device",point_your_phone_at_this_qr_code:"3. Point your phone at this QR Code",choose_other_login_methods:"Choose other login methods",no_sso_logins:"Your company does not use SSO login, please contact your administrator",mfa:"Multi-Factor Authentication",otp_title:"Enter MFA Code to continue",otp_code:"MFA Code",otp_subtitle:"Enter the code from your authenticator app",otp_p1:"If you have trouble with MFA, <br> please contact us at",change_language:"Change language",welcome_account:"Welcome to Account Center",security:"Security",security_p:"Manage your authentication options & account status",general:"General",general_p:"Manage your personal details & other preferences",billing:"Billing",billing_p:"Manage your subscriptions & payment profiles",apps:"Apps",apps_p:"View your active apps & explore other",apps_my:"My apps",mfa_auth:"2 Factor Authentication",mfa_auth_enabled:"Your account is protected via MFA.",mfa_auth_p:"Protect your account from unauthorized access by enabling multi-factor authentication (MFA)",mfa_auth_qr:"Scan the QR code above or enter the secret key into your authenticator app.",change_password:"Change Password",active_account:"Active Account",active_account_p:"When turned off, your account will be temporary deactivated until turned back on.",delete_account:"Delete Account",delete_account_p:"Delete Account",permanent_delete:"Permanent delete",permanent_delete_p:"If you delete your account, all your data will be permanently deleted. This action cannot be undone. If you are unsure, you can temporary deactivate your account.",personal_details:"Personal Details",app_language_p:"Translate the app on your preferred language",app_region:"Region",app_region_p:"Select your region for personalized billing and support experience"}},wo={state:{english:"Englisch",spanish:"Spanisch",german:"Deutsch",korean:"Koreanisch",italian:"Italienisch",french:"Französisch",serbian:"Serbisch",turkish:"Türkisch",chinese:"Chinesisch",japanese:"Japanisch",portuguese:"Portugiesisch",app_language:"Sprache",profile_preview:"Profil ansehen",edit_profile:"Profil bearbeiten",login:"Einloggen",referral_reach:"Geben Sie uns weitere Informationen über Sie und Ihre Reichweite.",referral_apply_placeholder:"Wie würden Sie Tapni promoten?",referral_apply_note:`Bitte vervollständigen Sie Ihr Profil, <br>
20
20
  damit wir wissen, wer Sie sind.
21
21
  <br><br>Seien Sie exklusiv.
22
22
  <br>Nicht jeder wird akzeptiert.😉`,referral_apply_now:"Jetzt bewerben",referral_apply_thanks:"Danke für die Bewerbung. Wir prüfen Ihre Bewerbung in Kürze!",connect:"Verbinden",with:"mit",exchange_contact:"Kontakt austauschen",add_details:"Mehr hinzufügen",show_details:"Mehr anzeigen",download_contact:"Kontakt herunterladen",stay_in_touch:"Bleiben Sie in Kontakt mit",no_thanks:"Nein Danke",connect_join:"Tapni beitreten",connect_with:"Verbinden mit",connect_required_fields:"Ein Kontaktfeld muss angegeben werden",name:"Name",first_name:"Vorname",last_name:"Nachname",email:"Email",phone:"Handynummer",phone_p:"Handy",company:"Unternehmen",address:"Anschrift",website:"Website",open:"Öffnen",delete:"Löschen",confirm:"Bestätigen",cancel:"Abbrechen",save:"Speichern",code:"Code",note:"Notiz",note_p:"Notiz hinzufügen",contact_card_icon:"Legen Sie Text unter dem Kontaktkartensymbol fest",contact_card_name:"Namen für die Kontaktkarte eingeben",contact_card_name_p:"Name der Kontaktkarte",contact_card_email:"Email für die Kontaktkarte eingeben",contact_card_email_p:"Kontaktkarten-Email",contact_card_phone:"Telefon für die Kontaktkarte eingeben",contact_card_phone_p:"Kontaktkarte Telefon",contact_card_website:"Webseite für die Kontaktkarte eingeben",contact_card_website_p:"Kontaktkarte Webseite",contact_card_company_name:"Firmennamen für die Kontaktkarte eingeben",contact_card_company_name_p:"Kontaktkarte Firmennamen",contact_card_job_title:"Berufsbezeichnung",contact_card_job_title_p:"Berufsbezeichnung eingeben",contact_card_company_website:"Website des Unternehmens",contact_card_company_website_p:"Unternehmenswebsite eingeben",contact_card_bio:"Bio für die Kontaktkarte eingeben",contact_card_bio_p:"Kontaktkarte bio",contact_card_home_address:"Privatadresse für die Kontaktkarte eingeben",contact_card_home_address_p:"Privatadresse der Kontaktkarte",contact_card_work_address:"Arbeitsadresse für die Kontaktkarte eingeben",contact_card_work_address_p:"Kontaktkarte Arbeitsadresse",contact_card_social:"Wählen Sie Social-Media-Links zu Ihrem Tapni-Profil aus <br>um sie in die Kontaktkarte aufzunehmen",contact_card_social_p:"Wählen Sie Social-Media-Links für die Kontaktkarte aus",link_text_p:"Link Text",link_icon:"Text unter dem Link setzen",direct_pick:"Direktlink auswählen",direct_p:"Leiten Sie Besucher auf diesen Link, <br> statt auf Ihr Tapni Profil um.",password_change:"Passwort ändern",password_repeat:"Wiederhole das Passwort",password_reset_t:"Passwort zurücksetzen",password_current:"Aktuelles Passwort eingeben",password_current_p:"Aktuelles Passwort",password_new:"Neues Passwort eingeben",password_new_p:"Neues Passwort",password_new_repeat:"Neues Passwort wiederholen",password_new_repeat_p:"Neues Passwort erneut eingeben",password_update:"Passwort aktualisieren",password_reset:`Wenn Sie Ihr aktuelles Passwort vergessen haben,<br>
@@ -29,7 +29,7 @@
29
29
  oder Fragen haben,<br>
30
30
  schreiben Sie uns an`,referral_p5:"Jetzt Geld verdienen!",referral_p66:"Teilen Sie Ihren Affiliate-Link und verdienen Sie Geld!",referral_p6:`Wenn Sie Blogger, Influencer oder Social Media-Enthusiast sind, passen Sie perfekt in unser Referral-Programm.
31
31
  Promoten Sie Tapni und verdienen Sie 20% Provision auf Einkäufe, die mit Ihrem Rabattcode oder Empfehlungslink getätigt wurden.`,referral_p7:`Nach der Registrierung für das Tapni Referral-Programm erhalten Sie einen persönlichen Empfehlungslink und einen Rabattcode.
32
- Teilen Sie sie auf Ihrer Website und in sozialen Medien und verdienen Sie Geld, während wir ein großartiges Verbindungserlebnis bieten.`,referral_p8:"Auszahlungshinweis",referral_p9:"Paypal (weltweit) und Banküberweisungen (EU) <br> Der Mindestauszahlungsbetrag beträgt 25€.",referral_p10:"Auszahlung anfordern",referral_p11:"Auszahlung angefordert",your_connections:"Ihre Kontakte",connections_p1:"Treten Sie mit Leuten in Kontakt, die Sie kennengelernt haben",connections_p2:"<br><br>Bisher keine Kontakte.<br> Let's get tappin'💥",connections_p3:"Keine Kontakten gefunden.",connection_success:"Verbindungsanfrage erfolgreich gesendet",exchange_success:"Erfolgreicher Austausch von Kontakten.",create_free_account:"Erstellen Sie ein kostenloses Tapni-Konto und halten Sie Ihre Kontakte auf dem Laufenden!",connection_edit:"Kontakt bearbeiten",connection_edit_success:"Kontakt erfolgreich aktualisiert",connection_delete_success:"Kontakt erfolgreich gelöscht",search:"Suche",devices_p1:"Liste der Gerätekompatibilität",devices_p2:"Tapni verwendet eine Technologie, die mit den meisten neueren iPhone- und Android-Geräten kompatibel ist.",devices_p3:"Wenn dein Tapni auf einem Android nicht funktioniert - suche in den Einstellungen nach NFC und stelle sicher, dass es eingeschaltet ist.",devices_p4:"mit iOS 14 NFC-Widget im Kontrollzentrum",download_p1:"Tapni App herunterladen",download_p2:"Verfügbar für Apple- und Android-Geräte",user_not_found:"Benutzer nicht gefunden",user_not_found_p:"Wir konnten den Benutzer nicht in unserer Datenbank finden 🤷",taps:"tipps",private_profile:"Privates Profil",private_profile_p:"ist ein privates Profil. <br> Profil ist nur mit Tapni-Tags sichtbar ",profile_bio_p:"Schreib etwas über dich oder deine Marke",add_to_contacts:"Zu den Kontakten hinzufügen",drag_and_drop_links:"Links mit Drag & Drop sortieren",no_links:"Ihr Profil enthält keine Links.",add_link:"Hinzufügen",direct_link_p1:"Besucher werden automatisch weitergeleitet zu:",profile_not_active:"Ihr Profil ist derzeit nicht aktiv <br> und nur Sie können es sehen, wenn Sie eingeloggt sind.",profile_not_public:"Ihr Profil ist derzeit nicht öffentlich <br> und nur diejenigen, die auf Sie tippen, können es sehen.",activate_profile_now:"Aktiviere jetzt dein Profil",publish_profile_now:"Mach dein Profil jetzt öffentlich",link_add_p1:"Linktyp auswählen",link_add_not_found:"Keine Links gefunden 🤷",link_add_not_found_p2:"Wenn wir Ihre Lieblingsplattform verpasst haben, senden Sie uns bitte eine Email (<b>support@tapni.com</b>) oder eine DM in den sozialen Medien (<b>@tapni</b>).",link_add_not_found_p3:"Wir werden unser Bestes geben, um alle Plattformen zu unterstützen 😉",featured:"Populär",social_media:"Soziale Netzwerke",contact:"Kontakt",finance:"Finanzen",portfolio:"Portfolio",music:"Musik",business:"Business",fun:"Spaß",ecommerce:"Ecommerce",more:"Mehr",email_username:"Email / Benutzername",username:"Benutzername",password:"Passwort",sign_in:"Einloggen",sign_in_with:"Einloggen mit",sign_in_with_new:"Mit neuem Konto anmelden",sign_up_with:"Registrieren mit",select_sign_method:"Wählen Sie eine Anmeldemethode aus",verify_account:"Konto bestätigen",terms_by_signing_in:"Beim Einloggen akzeptieren Sie unsere",terms_by_registering:"Beim Registrieren akzeptieren Sie unsere",terms_by_submitting:"Mit dem Absenden dieses Formulars erklären Sie sich mit unseren Allgemeinen Geschäftsbedingungen einverstanden.",terms_of_service:"Nutzungsbedingungen",and:"und",refresh:"Aktualisieren",privacy_policy:"Datenschutzbestimmungen",create_account:"Konto erstellen",reset_password:"Passwort zurücksetzen",reset_password_p1:"Wenn Sie Ihr Passwort nicht zurücksetzen konnten,<br> kontaktieren Sie uns bitte unter ",reset_password_p2:"Wenn Sie Ihr Passwort nicht zurücksetzen konnten,<br> kontaktieren Sie uns bitte unter",create_new_account:"Neuen Account erstellen",maintenance_p1:"Wir werden bald zurück sein",maintenance_p2:"Entdecken Sie in der Zwischenzeit die Tapni-Kollektionen",maintenance_p3:"Tapni ist wegen einer geplanten Wartung nicht erreichbar <br> und wird voraussichtlich in wenigen Minuten wieder online sein.",offline_p1:"Keine Internetverbindung",offline_p2:"Überprüfen Sie Ihre Verbindung und aktualisieren Sie dann die Seitee",offline_p3_1:"Wenn Sie offline sind,",offline_p3_2:"können Sie Ihre Kontaktkarte mit diesem QR-Code freigeben",products_p1:"Beeindrucke jeden, den du triffst 😎 <br> Hol dir jetzt deinen 👇",cards:"Karten",stickers:"Stickers",keychains:"Schlüsselanhänger",explore_collection:"Produkte anschauen",register:"Registrieren",register_success:"Sie sind fast fertig. Bitte bestätige deine Email.",register_success_modal:"Erfolgreich mit einem anderen Konto angemeldet.",check_your_inbox:"Inbox überprüfen",tapni_tags:"Tapni Tags",tapni_tags_p1:"Konfigurieren Sie Tags, die mit Ihrem Profil verbunden sind",tapni_tags_p2:"Es sind keine Tags mit Ihrem Profil verknüpft. <br> Aktivieren Sie jetzt eines!",verify_account_p1:"Wenn Sie keinen Code erhalten haben, <br> überprüfen Sie Ihren Spam-Ordner oder<br> kontaktieren Sie uns unter",verify_account_success:"Konto erfolgreich verifiziert. Bitte ändern Sie jetzt Ihr Passwort password.",verify_account_success2:"Konto erfolgreich verifiziert. Jetzt geht's los!🥳",welcome:"Willkommen",welcome_p1:"in der Zukunft der Visitenkarten",how_it_works:"Wie funktioniert's",already_registered:"Bereits registriert",error:"Fehler",success:"Erfolg",copied:"Kopiert",connect_validate:"Ein Kontaktfeld muss angegeben werden",connect_validate_name:"Bitte geben Sie Ihren Namen ein",connect_validate_email:"Bitte geben Sie eine gültige E-Mail Adresse ein",link_validate:"Ungültige Linkdaten.",link_text_contact_card:"Kontaktkarte",link_text_custom_link:"Custom Link",link_text_menu:"Menü",link_text_phone:"Telefon",save_to_apple_wallet:"Hinzufügen zu Apple Wallet",save_to_google_wallet:"Hinzufügen zu Google Wallet",card:"Karte",sticker:"Aufkleber",keychain:"Schlüsselbund",band:"Band",case:"Case",standee:"Aufsteller",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Veraltete App Version erkannt",update_p2:"Aktualisieren",update_p3:"Bitte aktualisieren Sie die App auf die neueste Version",company_domain:"Ihre Unternehmensdomäne",search_company_domain:"Suchen Sie Ihre Firmendomain",enter_company_email:"Geben Sie die Firmen-E-Mail ein",company_not_found:"Unternehmen nicht gefunden",ik_company_domain:"Ich kenne die Firmendomain",idk_company_domain:"Ich kenne die Firmendomain nicht",continue:"Weiter",forbidden_rule:"Diese Option ist deaktiviert, wenden Sie sich an Ihren Firmenadministrator.",companyName:"Name des Unternehmens",createMarkerPlaceholder:"Erstellen oder Auswählen einer Markierung",clickToCreateMarker:"Klicken Sie hier, um eine Markierung zu erstellen",pleaseInviteUser:"Bitte laden Sie den Benutzer ein, Tapni beizutreten, um die Daten mit Ihnen zu synchronisieren.",connectionSynchronized:"Die Verbindungsdaten werden automatisch synchronisiert.",viewProfile:"Profil ansehen",createConnectionHeader:"Neuen Kontakt hinzufügen",createConnectionButton:"Hinzufügen",createConnectionSuccess:"Die Verbindung wurde hergestellt.",allow_company_management:"Ermöglichen Sie der Unternehmensleitung",company_join_request:"bittet darum, Ihr Profil zu verwalten und es mit seinem Enterprise-Konto zu verknüpfen",account_ownership_transfer:"Das Eigentum an Ihrem Konto geht auf das Unternehmen über, wenn Sie die Anfrage annehmen. Das Unternehmen hat dann die Möglichkeit, Ihr Profil zu ändern, Links zu bearbeiten und hinzuzufügen, Ihre Verbindungen einzusehen, Ihr Passwort zu ändern, Ihr Konto zu löschen und vieles mehr. Erkundigen Sie sich bei Ihrem Unternehmen, bevor Sie die Anfrage annehmen.",request_expired:"Der Antrag ist abgelaufen. Bitten Sie Ihr Unternehmen, einen neuen Antrag zu stellen.",request_expiration_desc:"Aus Sicherheitsgründen wird der Antrag nur 14 Tage nach seiner Absendung bearbeitet.",invitation_link_not_valid:"Der Einladungslink ist nicht gültig!",invitation_link_not_valid2:"Klicken Sie erneut auf die Schaltfläche in der Einladungs-E-Mail oder kopieren Sie den Einladungslink.",accept_request:"Anfrage annehmen",close:"Schließen",request_accepted:"Die Anfrage wurde erfolgreich angenommen",companyEmail:"Unternehmen E-Mail",companyPhone:"Unternehmen Telefon",addBusinessInformations:"Geschäftsinformationen hinzufügen",resetFilter:"Zurücksetzen",selectMarkers:"Markierungen auswählen",filterConnectionsHeader:"Kontakte filtern",selectConnectionType:"Verbindungstyp auswählen",all:"Alle",direct:"Direkt",form:"Formular",manually:"Manuell",scan:"Scannen",sortOptions:"Optionen sortieren",date:"Erstellungsdatum",fullName:"Vollständiger Name",descending:"Absteigend",ascending:"Aufsteigend",selectDateRange:"Datumsbereich auswählen",follow_up_reminder:"Erinnerungsschreiben",now:"Jetzt",one_hour:"1 Stunde",one_day:"1 Tag",three_days:"3 Tage",one_week:"1 Woche",two_weeks:"2 Wochen",one_month:"1 Monat",custom:"Zeit wählen",set_reminder:"Erinnerung einstellen",select_date_time:"Datum und Uhrzeit auswählen",enter_reminder_text:"Erinnerungstext eingeben",reminder_created:"Erinnerung erfolgreich erstellt",connectionNameLabel:"Name der Verbindung eingeben",connectionEmailLabel:"Private E-Mail-Adresse eingeben",privatePhoneLabel:"Private Rufnummer eingeben",companyNameLabel:"Firmenname eingeben",businessEmail:"Geschäftliche E-Mail Adresse",businessEmailLabel:"Geschäfts-E-Mail-Adresse eingeben",businessPhone:"Telefonnummer des Unternehmens",businessPhoneLabel:"Geschäftliche Rufnummer eingeben",noteLabel:"Notiz eingeben",markersLabel:"Verbindungsmarkierungen hinzufügen",showScan:"Scan anzeigen",hideScan:"Scan ausblenden",create_connection:"Kontakt hinzufügen",create_manually:"Manuell hinzufügen",create_using_scanner:"Hinzufügen mit Kartenscanner",companyTitle:"Titel des Unternehmens",companyTitleLabel:"Titel des Unternehmens eingeben",allConnectionsLabel:"Alle Verbindungsarten",directConnectionsLabel:"Direkte In-App-Verbindung mit Tapni-Nutzern",formConnectionsLabel:"Über das Verbindungsformular ausgefüllte Verbindungen",manualConnectionsLabel:"Manuell erstellte Verbindungen",scanConnectionsLabel:"Kartenleser erstellt Verbindungen",analyticsHeader:"Analytik",analyticsProfileViews:"Profilansichten",analyticsLinkClicks:"Link Klicks",analyticsClickTroughRatio:"Klick-Trog-Verhältnis",analyticsTotalConnections:"Verbindungen insgesamt",analyticsTopLinks:"Beliebteste Links",analyticsProfileVisits:"Profil Besuche",analyticsLinkVisits:"Link Besuche",analyticsNewConnections:"Neue Verbindungen",analyticsTopCountries:"Top-Länder",analyticsTopReferers:"Top-Referenten",please_wait:"Bitte warten...",click_here:"hier klicken",if_redirect_not_directly:"Wenn die Umleitung nicht automatisch ausgeführt wird",you_will_be_redirected:"Sie werden zu Tapni weitergeleitet.",use_tapni_on_the_web:"Verwenden Sie Tapni im Web",login_by_scanning_qr_code:"Einloggen durch Scannen des QR-Codes",open_tapni_app_on_your_phone:"1. Öffnen Sie die Tapni-App auf Ihrem Telefon",go_to_settings_link_a_device:"2. Gehen Sie zu Einstellungen > Gerät verbinden",point_your_phone_at_this_qr_code:"3. Richten Sie Ihr Telefon auf diesen QR-Code",choose_other_login_methods:"Wählen Sie andere Anmeldeverfahren",no_sso_logins:"Ihr Unternehmen verwendet keine SSO-Anmeldung. Bitte wenden Sie sich an Ihren Administrator",mfa:"Multi-Faktor-Auth",otp_title:"MFA-Code eingeben zum Fortfahren",otp_code:"MFA-Code",otp_subtitle:"Code aus Auth-App eingeben",otp_p1:"Bei MFA-Problemen <br> kontaktiere uns unter",change_language:"Sprache ändern",welcome_account:"Willkommen im Konto-Center",security:"Sicherheit",security_p:"Verwalte Auth-Optionen & Kontostatus",general:"Allgemein",general_p:"Verwalte persönliche Daten & Einstellungen",billing:"Abrechnung",billing_p:"Verwalte Abos & Zahlungsprofile",apps:"Apps",apps_p:"Aktive Apps ansehen & mehr entdecken",apps_my:"Meine Apps",mfa_auth:"Zwei-Faktor-Auth",mfa_auth_enabled:"Dein Konto ist durch MFA gesichert.",mfa_auth_p:"Schütze dein Konto vor unbefugtem Zugriff mit MFA",mfa_auth_qr:"QR-Code scannen oder Geheimschlüssel in die Auth-App eingeben.",change_password:"Passwort ändern",active_account:"Konto aktiv",active_account_p:"Aus = Konto vorübergehend deaktiviert, bis wieder aktiviert.",delete_account:"Konto löschen",delete_account_p:"Konto löschen",permanent_delete:"Dauerhaft löschen",permanent_delete_p:"Löscht alle Daten unwiderruflich. Bei Unsicherheit lieber nur deaktivieren.",personal_details:"Persönliche Daten",app_language_p:"Übersetze die App in deine bevorzugte Sprache",app_region:"Region",app_region_p:"Region für passende Abrechnung & Support wählen"}},fr={state:{english:"Inglés",spanish:"Español",german:"Alemán",korean:"Koreano",italian:"Italiano",french:"Francés",serbian:"Serbio",turkish:"Turco",chinese:"Chino",japanese:"Japonés",portuguese:"Portugués",app_language:"Idioma",profile_preview:"Ver perfil",edit_profile:"Editar perfil",login:"Ingresar",referral_reach:"Proporciónanos mas información acerca de ti y tu alcance.",referral_apply_placeholder:"Cómo planeas promover Tapni?",referral_apply_note:`Agrega todos los links que tengas en tu cuenta, <br>
32
+ Teilen Sie sie auf Ihrer Website und in sozialen Medien und verdienen Sie Geld, während wir ein großartiges Verbindungserlebnis bieten.`,referral_p8:"Auszahlungshinweis",referral_p9:"Paypal (weltweit) und Banküberweisungen (EU) <br> Der Mindestauszahlungsbetrag beträgt 25€.",referral_p10:"Auszahlung anfordern",referral_p11:"Auszahlung angefordert",your_connections:"Ihre Kontakte",connections_p1:"Treten Sie mit Leuten in Kontakt, die Sie kennengelernt haben",connections_p2:"<br><br>Bisher keine Kontakte.<br> Let's get tappin'💥",connections_p3:"Keine Kontakten gefunden.",connection_success:"Verbindungsanfrage erfolgreich gesendet",exchange_success:"Erfolgreicher Austausch von Kontakten.",create_free_account:"Erstellen Sie ein kostenloses Tapni-Konto und halten Sie Ihre Kontakte auf dem Laufenden!",connection_edit:"Kontakt bearbeiten",connection_edit_success:"Kontakt erfolgreich aktualisiert",connection_delete_success:"Kontakt erfolgreich gelöscht",search:"Suche",devices_p1:"Liste der Gerätekompatibilität",devices_p2:"Tapni verwendet eine Technologie, die mit den meisten neueren iPhone- und Android-Geräten kompatibel ist.",devices_p3:"Wenn dein Tapni auf einem Android nicht funktioniert - suche in den Einstellungen nach NFC und stelle sicher, dass es eingeschaltet ist.",devices_p4:"mit iOS 14 NFC-Widget im Kontrollzentrum",download_p1:"Tapni App herunterladen",download_p2:"Verfügbar für Apple- und Android-Geräte",user_not_found:"Benutzer nicht gefunden",user_not_found_p:"Wir konnten den Benutzer nicht in unserer Datenbank finden 🤷",taps:"tipps",private_profile:"Privates Profil",private_profile_p:"ist ein privates Profil. <br> Profil ist nur mit Tapni-Tags sichtbar ",profile_bio_p:"Schreib etwas über dich oder deine Marke",add_to_contacts:"Zu den Kontakten hinzufügen",drag_and_drop_links:"Links mit Drag & Drop sortieren",no_links:"Ihr Profil enthält keine Links.",add_link:"Hinzufügen",direct_link_p1:"Besucher werden automatisch weitergeleitet zu:",profile_not_active:"Ihr Profil ist derzeit nicht aktiv <br> und nur Sie können es sehen, wenn Sie eingeloggt sind.",profile_not_public:"Ihr Profil ist derzeit nicht öffentlich <br> und nur diejenigen, die auf Sie tippen, können es sehen.",activate_profile_now:"Aktiviere jetzt dein Profil",publish_profile_now:"Mach dein Profil jetzt öffentlich",link_add_p1:"Linktyp auswählen",link_add_not_found:"Keine Links gefunden 🤷",link_add_not_found_p2:"Wenn wir Ihre Lieblingsplattform verpasst haben, senden Sie uns bitte eine Email (<b>support@tapni.com</b>) oder eine DM in den sozialen Medien (<b>@tapni</b>).",link_add_not_found_p3:"Wir werden unser Bestes geben, um alle Plattformen zu unterstützen 😉",featured:"Populär",social_media:"Soziale Netzwerke",contact:"Kontakt",finance:"Finanzen",portfolio:"Portfolio",music:"Musik",business:"Business",fun:"Spaß",ecommerce:"Ecommerce",more:"Mehr",email_username:"Email / Benutzername",username:"Benutzername",password:"Passwort",sign_in:"Einloggen",sign_in_with:"Einloggen mit",sign_in_with_new:"Mit neuem Konto anmelden",sign_up_with:"Registrieren mit",select_sign_method:"Wählen Sie eine Anmeldemethode aus",verify_account:"Konto bestätigen",terms_by_signing_in:"Beim Einloggen akzeptieren Sie unsere",terms_by_registering:"Beim Registrieren akzeptieren Sie unsere",terms_by_submitting:"Mit dem Absenden dieses Formulars erklären Sie sich mit unseren Allgemeinen Geschäftsbedingungen einverstanden.",terms_of_service:"Nutzungsbedingungen",and:"und",refresh:"Aktualisieren",privacy_policy:"Datenschutzbestimmungen",create_account:"Konto erstellen",reset_password:"Passwort zurücksetzen",reset_password_p1:"Wenn Sie Ihr Passwort nicht zurücksetzen konnten,<br> kontaktieren Sie uns bitte unter ",reset_password_p2:"Wenn Sie Ihr Passwort nicht zurücksetzen konnten,<br> kontaktieren Sie uns bitte unter",create_new_account:"Neuen Account erstellen",maintenance_p1:"Wir werden bald zurück sein",maintenance_p2:"Entdecken Sie in der Zwischenzeit die Tapni-Kollektionen",maintenance_p3:"Tapni ist wegen einer geplanten Wartung nicht erreichbar <br> und wird voraussichtlich in wenigen Minuten wieder online sein.",offline_p1:"Keine Internetverbindung",offline_p2:"Überprüfen Sie Ihre Verbindung und aktualisieren Sie dann die Seitee",offline_p3_1:"Wenn Sie offline sind,",offline_p3_2:"können Sie Ihre Kontaktkarte mit diesem QR-Code freigeben",products_p1:"Beeindrucke jeden, den du triffst 😎 <br> Hol dir jetzt deinen 👇",cards:"Karten",stickers:"Stickers",keychains:"Schlüsselanhänger",explore_collection:"Produkte anschauen",register:"Registrieren",register_success:"Sie sind fast fertig. Bitte bestätige deine Email.",register_success_modal:"Erfolgreich mit einem anderen Konto angemeldet.",check_your_inbox:"Inbox überprüfen",tapni_tags:"Tapni Tags",tapni_tags_p1:"Konfigurieren Sie Tags, die mit Ihrem Profil verbunden sind",tapni_tags_p2:"Es sind keine Tags mit Ihrem Profil verknüpft. <br> Aktivieren Sie jetzt eines!",verify_account_p1:"Wenn Sie keinen Code erhalten haben, <br> überprüfen Sie Ihren Spam-Ordner oder<br> kontaktieren Sie uns unter",verify_account_success:"Konto erfolgreich verifiziert. Bitte ändern Sie jetzt Ihr Passwort password.",verify_account_success2:"Konto erfolgreich verifiziert. Jetzt geht's los!🥳",welcome:"Willkommen",welcome_p1:"in der Zukunft der Visitenkarten",how_it_works:"Wie funktioniert's",already_registered:"Bereits registriert",error:"Fehler",success:"Erfolg",copied:"Kopiert",connect_validate:"Ein Kontaktfeld muss angegeben werden",connect_validate_name:"Bitte geben Sie Ihren Namen ein",connect_validate_email:"Bitte geben Sie eine gültige E-Mail Adresse ein",link_validate:"Ungültige Linkdaten.",link_text_contact_card:"Kontaktkarte",link_text_custom_link:"Custom Link",link_text_menu:"Menü",link_text_phone:"Telefon",save_to_apple_wallet:"Hinzufügen zu Apple Wallet",save_to_google_wallet:"Hinzufügen zu Google Wallet",card:"Karte",sticker:"Aufkleber",keychain:"Schlüsselbund",band:"Band",case:"Case",standee:"Aufsteller",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Veraltete App Version erkannt",update_p2:"Aktualisieren",update_p3:"Bitte aktualisieren Sie die App auf die neueste Version",company_domain:"Ihre Unternehmensdomäne",search_company_domain:"Suchen Sie Ihre Firmendomain",enter_company_email:"Geben Sie die Firmen-E-Mail ein",company_not_found:"Unternehmen nicht gefunden",ik_company_domain:"Ich kenne die Firmendomain",idk_company_domain:"Ich kenne die Firmendomain nicht",continue:"Weiter",forbidden_rule:"Diese Option ist deaktiviert, wenden Sie sich an Ihren Firmenadministrator.",companyName:"Name des Unternehmens",createMarkerPlaceholder:"Erstellen oder Auswählen einer Markierung",clickToCreateMarker:"Klicken Sie hier, um eine Markierung zu erstellen",pleaseInviteUser:"Bitte laden Sie den Benutzer ein, Tapni beizutreten, um die Daten mit Ihnen zu synchronisieren.",connectionSynchronized:"Die Verbindungsdaten werden automatisch synchronisiert.",viewProfile:"Profil ansehen",createConnectionHeader:"Neuen Kontakt hinzufügen",createConnectionButton:"Hinzufügen",createConnectionSuccess:"Die Verbindung wurde hergestellt.",allow_company_management:"Ermöglichen Sie der Unternehmensleitung",company_join_request:"bittet darum, Ihr Profil zu verwalten und es mit seinem Enterprise-Konto zu verknüpfen",account_ownership_transfer:"Das Eigentum an Ihrem Konto geht auf das Unternehmen über, wenn Sie die Anfrage annehmen. Das Unternehmen hat dann die Möglichkeit, Ihr Profil zu ändern, Links zu bearbeiten und hinzuzufügen, Ihre Verbindungen einzusehen, Ihr Passwort zu ändern, Ihr Konto zu löschen und vieles mehr. Erkundigen Sie sich bei Ihrem Unternehmen, bevor Sie die Anfrage annehmen.",request_expired:"Der Antrag ist abgelaufen. Bitten Sie Ihr Unternehmen, einen neuen Antrag zu stellen.",request_expiration_desc:"Aus Sicherheitsgründen wird der Antrag nur 14 Tage nach seiner Absendung bearbeitet.",invitation_link_not_valid:"Der Einladungslink ist nicht gültig!",invitation_link_not_valid2:"Klicken Sie erneut auf die Schaltfläche in der Einladungs-E-Mail oder kopieren Sie den Einladungslink.",accept_request:"Anfrage annehmen",close:"Schließen",request_accepted:"Die Anfrage wurde erfolgreich angenommen",companyEmail:"Unternehmen E-Mail",companyPhone:"Unternehmen Telefon",addBusinessInformations:"Geschäftsinformationen hinzufügen",resetFilter:"Zurücksetzen",selectMarkers:"Markierungen auswählen",filterConnectionsHeader:"Kontakte filtern",selectConnectionType:"Verbindungstyp auswählen",all:"Alle",direct:"Direkt",form:"Formular",manually:"Manuell",scan:"Scannen",sortOptions:"Optionen sortieren",date:"Erstellungsdatum",fullName:"Vollständiger Name",descending:"Absteigend",ascending:"Aufsteigend",selectDateRange:"Datumsbereich auswählen",follow_up_reminder:"Erinnerungsschreiben",now:"Jetzt",one_hour:"1 Stunde",one_day:"1 Tag",three_days:"3 Tage",one_week:"1 Woche",two_weeks:"2 Wochen",one_month:"1 Monat",custom:"Zeit wählen",set_reminder:"Erinnerung einstellen",select_date_time:"Datum und Uhrzeit auswählen",enter_reminder_text:"Erinnerungstext eingeben",reminder_created:"Erinnerung erfolgreich erstellt",connectionNameLabel:"Name der Verbindung eingeben",connectionEmailLabel:"Private E-Mail-Adresse eingeben",privatePhoneLabel:"Private Rufnummer eingeben",companyNameLabel:"Firmenname eingeben",businessEmail:"Geschäftliche E-Mail Adresse",businessEmailLabel:"Geschäfts-E-Mail-Adresse eingeben",businessPhone:"Telefonnummer des Unternehmens",businessPhoneLabel:"Geschäftliche Rufnummer eingeben",noteLabel:"Notiz eingeben",markersLabel:"Verbindungsmarkierungen hinzufügen",showScan:"Scan anzeigen",hideScan:"Scan ausblenden",create_connection:"Kontakt hinzufügen",create_manually:"Manuell hinzufügen",create_using_scanner:"Hinzufügen mit Kartenscanner",companyTitle:"Titel des Unternehmens",companyTitleLabel:"Titel des Unternehmens eingeben",allConnectionsLabel:"Alle Verbindungsarten",directConnectionsLabel:"Direkte In-App-Verbindung mit Tapni-Nutzern",formConnectionsLabel:"Über das Verbindungsformular ausgefüllte Verbindungen",manualConnectionsLabel:"Manuell erstellte Verbindungen",scanConnectionsLabel:"Kartenleser erstellt Verbindungen",analyticsHeader:"Analytik",analyticsProfileViews:"Profilansichten",analyticsLinkClicks:"Link Klicks",analyticsClickTroughRatio:"Klick-Trog-Verhältnis",analyticsTotalConnections:"Verbindungen insgesamt",analyticsTopLinks:"Beliebteste Links",analyticsProfileVisits:"Profil Besuche",analyticsLinkVisits:"Link Besuche",analyticsNewConnections:"Neue Verbindungen",analyticsTopCountries:"Top-Länder",analyticsTopReferers:"Top-Referenten",please_wait:"Bitte warten...",click_here:"hier klicken",if_redirect_not_directly:"Wenn die Umleitung nicht automatisch ausgeführt wird",you_will_be_redirected:"Sie werden zu Tapni weitergeleitet.",use_tapni_on_the_web:"Verwenden Sie Tapni im Web",login_by_scanning_qr_code:"Einloggen durch Scannen des QR-Codes",open_tapni_app_on_your_phone:"1. Öffnen Sie die Tapni-App auf Ihrem Telefon",go_to_settings_link_a_device:"2. Gehen Sie zu Einstellungen > Gerät verbinden",point_your_phone_at_this_qr_code:"3. Richten Sie Ihr Telefon auf diesen QR-Code",choose_other_login_methods:"Wählen Sie andere Anmeldeverfahren",no_sso_logins:"Ihr Unternehmen verwendet keine SSO-Anmeldung. Bitte wenden Sie sich an Ihren Administrator",mfa:"Multi-Faktor-Auth",otp_title:"MFA-Code eingeben zum Fortfahren",otp_code:"MFA-Code",otp_subtitle:"Code aus Auth-App eingeben",otp_p1:"Bei MFA-Problemen <br> kontaktiere uns unter",change_language:"Sprache ändern",welcome_account:"Willkommen im Konto-Center",security:"Sicherheit",security_p:"Verwalte Auth-Optionen & Kontostatus",general:"Allgemein",general_p:"Verwalte persönliche Daten & Einstellungen",billing:"Abrechnung",billing_p:"Verwalte Abos & Zahlungsprofile",apps:"Apps",apps_p:"Aktive Apps ansehen & mehr entdecken",apps_my:"Meine Apps",mfa_auth:"Zwei-Faktor-Auth",mfa_auth_enabled:"Dein Konto ist durch MFA gesichert.",mfa_auth_p:"Schütze dein Konto vor unbefugtem Zugriff mit MFA",mfa_auth_qr:"QR-Code scannen oder Geheimschlüssel in die Auth-App eingeben.",change_password:"Passwort ändern",active_account:"Konto aktiv",active_account_p:"Aus = Konto vorübergehend deaktiviert, bis wieder aktiviert.",delete_account:"Konto löschen",delete_account_p:"Konto löschen",permanent_delete:"Dauerhaft löschen",permanent_delete_p:"Löscht alle Daten unwiderruflich. Bei Unsicherheit lieber nur deaktivieren.",personal_details:"Persönliche Daten",app_language_p:"Übersetze die App in deine bevorzugte Sprache",app_region:"Region",app_region_p:"Region für passende Abrechnung & Support wählen"}},bo={state:{english:"Inglés",spanish:"Español",german:"Alemán",korean:"Koreano",italian:"Italiano",french:"Francés",serbian:"Serbio",turkish:"Turco",chinese:"Chino",japanese:"Japonés",portuguese:"Portugués",app_language:"Idioma",profile_preview:"Ver perfil",edit_profile:"Editar perfil",login:"Ingresar",referral_reach:"Proporciónanos mas información acerca de ti y tu alcance.",referral_apply_placeholder:"Cómo planeas promover Tapni?",referral_apply_note:`Agrega todos los links que tengas en tu cuenta, <br>
33
33
  para que podamos conocerte.
34
34
  <br><br>Programa exclusivo.
35
35
  <br>No todas las solicitudes son aceptadas.`,referral_apply_now:"Aplica ahora",referral_apply_thanks:"Gracias por aplicar. Revisaremos tu solicitud pronto.",connect:"Añadir",with:"con",exchange_contact:"Contacto de intercambio",add_details:"Añadir más",show_details:"Mostrar más",download_contact:"descargar contacto",stay_in_touch:"Manténgase en contacto con",no_thanks:"No, gracias",connect_join:"Unirse a Tapni",connect_with:"Añadir a",connect_required_fields:"Por favor ingresa al menos uno de los campos de contacto",name:"Nombre",first_name:"Nombre",last_name:"Apellido",email:"Email",phone:"Numero de teléfono",phone_p:"Teléfono",company:"Empresa",address:"Dirección",website:"Página web",open:"Abrir",delete:"Borrar",confirm:"Confirmar",cancel:"Cancelar",save:"Guardar",code:"Código",note:"Nota",note_p:"Añadir nota",contact_card_icon:"Ingresa el texto que aparece bajo la tarjeta de contacto",contact_card_name:"Ingresa el nombre para la tarjeta de contacto",contact_card_name_p:"Nombre del contacto",contact_card_email:"Ingresa el email para la tarjeta de contacto",contact_card_email_p:"Email del contacto",contact_card_phone:"Ingresa el teléfono para la tarjeta de contacto",contact_card_phone_p:"Teléfono del contacto",contact_card_website:"Ingresa el sitio web para la tarjeta de contacto",contact_card_website_p:"Sitio web de la tarjeta de contacto",contact_card_company_name:"Introduzca el nombre de la empresa para la tarjeta de contacto",contact_card_company_name_p:"Nombre de la empresa de la tarjeta de contacto",contact_card_job_title:"Cargo",contact_card_job_title_p:"Introduzca el título del trabajo",contact_card_company_website:"Página web de la empresa",contact_card_company_website_p:"Introduzca el sitio web de la empresa",contact_card_bio:"Ingresa la descripción para la tarjeta de contacto",contact_card_bio_p:"Descripción del contacto",contact_card_home_address:"Ingresa la dirección de casa para la tarjeta de contacto",contact_card_home_address_p:"Dirección de casa de la tarjeta de contacto",contact_card_work_address:"Ingresa la dirección de trabajo de la tarjeta de contacto",contact_card_work_address_p:"Dirección de trabajo de la tarjeta de contacto",contact_card_social:"Ingresa los enlaces de tus redes sociales a tu perfil de Tapni <br>para agregarlos a tu tarjeta de contacto",contact_card_social_p:"Selecciona las redes sociales que quieres incluir",link_text_p:"Descripción del Enlace",link_icon:"Ingresa el texto que aparece bajo el enlace",direct_pick:"Escoge un enlace directo",direct_p:"Cuando uses tus productos Tapni, <br> se abrirá éste enlace en vez de tu perfil completo.",password_change:"Cambiar contraseña",password_repeat:"Vuelve a ingresar tu contraseña",password_reset_t:"Restablecer contraseña",password_current:"Ingresa tu contraseña actual",password_current_p:"Contraseña actual",password_new:"Ingresa tu nueva contraseña",password_new_p:"Nueva contraseña",password_new_repeat:"Vuelve a ingresar tu nueva contraseña",password_new_repeat_p:"Vuelve a ingresar tu nueva contraseña",password_update:"Actualizar contraseña",password_reset:`Si no recuerdas tu contraseña actual,<br>
@@ -42,7 +42,7 @@
42
42
  o si tienes alguna duda,<br>
43
43
  escríbenos en`,referral_p5:"Empieza a ganar dinero ahora!",referral_p66:"Comparte tu código de descuento y gana dinero!",referral_p6:`Si eres blogger, influencer o te encantan las redes sociales, eres ideal para nuestro Programa de Embajadores.
44
44
  Promueve nuestra marca y gana un 20% de comisión en las ventas que generes a través de tu código de descuento.`,referral_p7:`Una vez que te registres en el Programa de Embajadores de tapni, recibirás un código de descuento personalizado.
45
- Compártelo en tu página y redes sociales, y gana dinero mientras nosotros creamos una nueva experiencia de conexión.`,referral_p8:"Nota de Pago",referral_p9:"Paypal (Mundial) y Transferencias Bancarias (Europa) <br> La cantidad mínima de pago es de 25€.",referral_p10:"Solicitar Pago",referral_p11:"Pago Solicitado",your_connections:"Tus conexiones",connections_p1:"Ponte en contacto con las personas que conociste",connections_p2:"<br><br>No tienes ninguna conexión. <br> Comienza a usar Tapni!",connections_p3:"Ninguna conexión encontrada.",connection_success:"Solicitud de conexión enviada exitosamente",exchange_success:"Intercambio de contactos con éxito.",create_free_account:"Crea una cuenta gratuita en Tapni y mantén tus contactos actualizados!",connection_edit:"Editar conexión",connection_edit_success:"Conexión actualizada con éxito",connection_delete_success:"Conexión eliminada con éxito",search:"Buscar",devices_p1:"Lista de dispositivos compatibles",devices_p2:"Tapni usa tecnología compatible con la mayoría de los iPhones nuevos y dispositivos Android.",devices_p3:"Algunos dispositivos Android pueden tener NFC desactivado. Si tu Tapni no funciona en un dispositivo Android, busca NFC en configuración y asegúrate de que esté encendido.",devices_p4:"con el widged de NFC en el centro de control de iOS 14",download_p1:"Descarga la aplicación Tapni",download_p2:"Disponible para dispositivos Apple y Android",user_not_found:"Usuario no encontrado",user_not_found_p:"No pudimos encontrar el usuario en nuestra base de datos 🤷",taps:"Interacciones",private_profile:"Perfil privado",private_profile_p:"es un perfil privado. <br> El perfil es visible usando tags de Tapni solamente ",profile_bio_p:"Escribe algo acerca de tí o tu marca",add_to_contacts:"Agregar a contactos",drag_and_drop_links:"Arrastra tus enlaces en el orden que quieras",no_links:"No hay enlaces en tu perfil.",add_link:"Añadir enlace",direct_link_p1:"Tus visitantes serán redireccionados automáticamente a:",profile_not_active:"Tu perfil está desactivado <br> y sólo tú lo puedes ver.",profile_not_public:"Tu perfil no es público <br> y solo lo podrán ver las personas que escaneen tu tag.",activate_profile_now:"Activa tu perfil ahora",publish_profile_now:"Haz tu perfil público ahora",link_add_p1:"Escoge un tipo de enlace",link_add_not_found:"Ningún enlace encontrado 🤷",link_add_not_found_p2:"Si no encuentras tu plataforma favorita, mándanos un correo (<b>support@tapni.com</b>) o envíanos un mensaje en nuestras redes sociales (<b>@tapni</b>)",link_add_not_found_p3:"Haremos lo posible para incluir todas las plataformas 😉",featured:"Destacado",social_media:"Redes Sociales",contact:"Contacto",finance:"Finanzas",portfolio:"Portafolio",music:"Música",business:"Negocios",fun:"Diversión",ecommerce:"E-commerce",more:"Más",email_username:"Correo / Nombre de Usuario",username:"Nombre de Usuario",password:"Contraseña",sign_in:"Iniciar sesión",sign_in_with:"Iniciar sesión con",sign_in_with_new:"Iniciar sesión con una nueva cuenta",sign_up_with:"Registrarse con",select_sign_method:"Seleccione un método de inicio de sesión",verify_account:"Verificar cuenta",terms_by_signing_in:"Al iniciar sesión, aceptas nuestros",terms_by_registering:"Al registrarte, aceptas nuestros",terms_by_submitting:"Al enviar este formulario, usted acepta nuestras condiciones de servicio",terms_of_service:"Términos de Servicio",and:"y",refresh:"Actualizar",privacy_policy:"Política de Privacidad",create_account:"Crear cuenta",reset_password:"Restablecer contraseña",reset_password_p1:"Si no pudiste restablecer tu contraseña,<br> contáctanos en ",reset_password_p2:"Si no pudiste restablecer tu contraseña,<br> contáctanos en",create_new_account:"Crear una cuenta nueva",maintenance_p1:"Estaremos de regreso pronto",maintenance_p2:"Mientras tanto, puedes explorar nuestros productos",maintenance_p3:"Tapni está en un mantenimiento programado <br> y estará de regreso en unos minutos.",offline_p1:"Sin conexión a Internet",offline_p2:"Checa tu conexión, y actualiza la página",offline_p3_1:"Mientras estés desconectado,",offline_p3_2:"puedes compartir tu tarjeta de contacto utilizando este código QR",products_p1:"Impresiona a todas las personas que conozcas 😎 <br> Compra el tuyo ahora 👇",cards:"Tarjetas",stickers:"Stickers",keychains:"Llaveros",explore_collection:"Explora nuestra colección",register:"Registrarse",register_success:"Ya casi terminas. Por favor confirma tu correo electrónico.",register_success_modal:"Has iniciado sesión con otra cuenta exitosamente.",check_your_inbox:"Checa tu bandeja de entrada",tapni_tags:"Tags Tapni",tapni_tags_p1:"Configura los tags conectados a tu perfil",tapni_tags_p2:"No hay ningún tag conectado a tu perfil. <br> Conecta uno ahora!",verify_account_p1:"Si no recibiste un código, checa tu <br> folder de spam o contáctanos en",verify_account_success:"Cuenta verificada exitosamente. Por favor cambia tu contraseña ahora.",verify_account_success2:"Cuenta verificada exitosamente. Todo está listo! 🥳",welcome:"Te damos la bienvenida",welcome_p1:"al futuro de las tarjetas de presentación",how_it_works:"Cómo funciona",already_registered:"Ya estás registrado",error:"Error",success:"Éxito",copied:"Copiado al portapapeles",connect_validate:"Por favor ingresa al menos uno de los campos de contacto",connect_validate_name:"Por favor ingresa tu nombre",connect_validate_email:"Por favor, introduzca una dirección de correo electrónico válida",link_validate:"Datos del enlace inválidos.",link_text_contact_card:"Tarjeta de contacto",link_text_custom_link:"Enlace personalizado",link_text_menu:"Menu",link_text_phone:"Teléfono",save_to_apple_wallet:"Añadir a Cartera de Apple",save_to_google_wallet:"Añadir a Google Wallet",card:"Tarjeta",sticker:"Sticker",keychain:"Llavero",band:"Banda",case:"Caso",standee:"Standee",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Versión de la aplicación obsoleta detectada",update_p2:"Actualizar",update_p3:"Actualice la aplicación a la versión más reciente",company_domain:"El dominio de su empresa",search_company_domain:"Busca el dominio de tu empresa",enter_company_email:"Ingresa el correo electrónico de la empresa",company_not_found:"Empresa no encontrada",ik_company_domain:"Conozco el dominio de la empresa",idk_company_domain:"No conozco el dominio de la empresa",continue:"Continuar",forbidden_rule:"Esta opción está deshabilitada, comuníquese con el administrador de su empresa.",companyName:"Nombre de la empresa",createMarkerPlaceholder:"Crear o seleccionar un marcador",clickToCreateMarker:"Haga clic aquí para crear un marcador",pleaseInviteUser:"Invite al usuario a unirse a Tapni para tener los datos sincronizados con usted.",connectionSynchronized:"Los datos de conexión se sincronizan automáticamente.",viewProfile:"Ver perfil",createConnectionHeader:"Añadir nueva conexión",createConnectionButton:"Añadir",createConnectionSuccess:"Se ha creado la conexión.",allow_company_management:"Permitir a la dirección de la empresa",company_join_request:"solicita gestionar su perfil y asociarlo a su cuenta de empresa",account_ownership_transfer:"La propiedad de tu cuenta se transferirá a la empresa si aceptas la solicitud. La empresa podrá modificar tu perfil, editar y añadir enlaces, ver tus conexiones, modificar tu contraseña, eliminar tu cuenta, etc. Asegúrate de consultar con tu empresa antes de aceptar la solicitud.",request_expired:"Der Antrag ist abgelaufen. Bitten Sie Ihr Unternehmen, einen neuen Antrag zu stellen.",request_expiration_desc:"Para mayor seguridad, la solicitud sólo funcionará durante 14 días después de su envío.",invitation_link_not_valid:"El enlace de invitación no es válido.",invitation_link_not_valid2:"Vuelva a hacer clic en el botón del correo electrónico de invitación o copie el enlace de invitación.",accept_request:"Aceptar la solicitud",close:"Cerrar",request_accepted:"La solicitud ha sido aceptada con éxito",companyEmail:"Correo electrónico de la empresa",companyPhone:"Teléfono de la empresa",addBusinessInformations:"Añadir información de la empresa",resetFilter:"Restablecer",selectMarkers:"Seleccionar marcadores",filterConnectionsHeader:"Conexiones del filtro",selectConnectionType:"Seleccione el tipo de conexión",all:"Todo",direct:"Directo",form:"Formulario",manually:"Manualmente",scan:"Escáner",sortOptions:"Opciones de clasificación",date:"Fecha de creación",fullName:"Nombre completo",descending:"Descendiendo",ascending:"Ascendente",selectDateRange:"Seleccione el rango de fechas",follow_up_reminder:"Recordatorio de seguimiento",now:"ahora",one_hour:"1 Stunde",one_day:"1 Día",three_days:"3 Días",one_week:"1 Semana",two_weeks:"2 Semanas",one_month:"1 Mes",custom:"Elija la hora",set_reminder:"Establecer recordatorio",select_date_time:"Seleccione la fecha y la hora",enter_reminder_text:"Introduzca el texto del recordatorio",reminder_created:"Recordatorio creado con éxito",connectionNameLabel:"Introduzca el nombre de la conexión",connectionEmailLabel:"Introduzca la dirección de correo electrónico privada",privatePhoneLabel:"Introduzca el número de teléfono privado",companyNameLabel:"Introduzca el nombre de la empresa",businessEmail:"Dirección de correo electrónico de la empresa",businessEmailLabel:"Introduzca la dirección de correo electrónico de la empresa",businessPhone:"Número de teléfono de la empresa",businessPhoneLabel:"Introduzca el número de teléfono de la empresa",noteLabel:"Introduzca la nota",markersLabel:"Añadir marcadores de conexión",showScan:"Mostrar escaneo",hideScan:"Ocultar la exploración",create_connection:"Añadir conexiones",create_manually:"Añadir manualmente",create_using_scanner:"Añadir usando el escáner de tarjetas",companyTitle:"Título de la empresa",companyTitleLabel:"Introduzca el título de la empresa",allConnectionsLabel:"Todos los tipos de conexión",directConnectionsLabel:"Conexión directa en la aplicación con los usuarios de Tapni",formConnectionsLabel:"Conexiones rellenadas en el formulario de conexión",manualConnectionsLabel:"Conexiones creadas manualmente",scanConnectionsLabel:"Conexiones creadas por el escáner de tarjetas",analyticsHeader:"Analítica",analyticsProfileViews:"Vistas del perfil",analyticsLinkClicks:"Enlaces",analyticsClickTroughRatio:"Clic por calificaciones",analyticsTotalConnections:"Conexiones totales",analyticsTopLinks:"Enlaces más populares",analyticsProfileVisits:"Perfil Visitas",analyticsLinkVisits:"Enlace Visitas",analyticsNewConnections:"Nuevas conexiones",analyticsTopCountries:"Países principales",analyticsTopReferers:"Top Referentes",please_wait:"Por favor, espera...",click_here:"haz clic aquí",if_redirect_not_directly:"Si la redirección no se realiza automáticamente",you_will_be_redirected:"Serás redirigido a la aplicación Tapni.",use_tapni_on_the_web:"Usa Tapni en la Web",login_by_scanning_qr_code:"Inicia sesión escaneando el Código QR",open_tapni_app_on_your_phone:"1. Abre la App Tapni en tu teléfono",go_to_settings_link_a_device:"2. Ve a Configuración > Vincular un dispositivo",point_your_phone_at_this_qr_code:"3. Apunta tu teléfono a este Código QR",choose_other_login_methods:"Elige otros métodos de inicio de sesión",no_sso_logins:"Su empresa no utiliza el inicio de sesión SSO. Comuníquese con su administrador",mfa:"Autenticación Multi-Factor",otp_title:"Ingresa el código MFA para continuar",otp_code:"Código MFA",otp_subtitle:"Ingresa el código de tu app de autenticación",otp_p1:"Si tienes problemas con MFA, <br> contáctanos en",change_language:"Cambiar idioma",welcome_account:"Bienvenido al Centro de Cuentas",security:"Seguridad",security_p:"Administra opciones de autenticación y estado de cuenta",general:"General",general_p:"Administra tus datos personales y otras preferencias",billing:"Facturación",billing_p:"Administra tus suscripciones y métodos de pago",apps:"Apps",apps_p:"Ver tus apps activas y descubrir más",apps_my:"Mis Apps",mfa_auth:"Autenticación 2 Factores",mfa_auth_enabled:"Tu cuenta está protegida con MFA.",mfa_auth_p:"Protege tu cuenta contra accesos no autorizados habilitando MFA",mfa_auth_qr:"Escanea el QR o ingresa la clave secreta en tu app de autenticación.",change_password:"Cambiar Contraseña",active_account:"Cuenta Activa",active_account_p:"Si está desactivada, tu cuenta quedará inactiva hasta reactivarla.",delete_account:"Eliminar Cuenta",delete_account_p:"Eliminar Cuenta",permanent_delete:"Eliminación permanente",permanent_delete_p:"Si eliminas tu cuenta, se borrarán todos los datos. Acción irreversible. Si no estás seguro, desactiva temporalmente.",personal_details:"Datos Personales",app_language_p:"Traduce la app a tu idioma preferido",app_region:"Región",app_region_p:"Selecciona tu región para facturación y soporte personalizados"}},gr={state:{english:"Anglais",spanish:"Espagnol",german:"Allemand",italian:"Italien",korean:"Coréen",french:"Français",serbian:"Serbe",turkish:"Turc",chinese:"Chinois",japanese:"Japonais",portuguese:"Portugais",app_language:"Langue",profile_preview:"Aperçu du profil",edit_profile:"Editer le profil",login:"Connexion",referral_reach:"Fournissez-nous plus d'informations sur vous et votre portée.",referral_apply_placeholder:"Comment envisagez-vous de promouvoir Tapni?",referral_apply_note:`Ajouter autant de liens que possible sur votre compte, <br>
45
+ Compártelo en tu página y redes sociales, y gana dinero mientras nosotros creamos una nueva experiencia de conexión.`,referral_p8:"Nota de Pago",referral_p9:"Paypal (Mundial) y Transferencias Bancarias (Europa) <br> La cantidad mínima de pago es de 25€.",referral_p10:"Solicitar Pago",referral_p11:"Pago Solicitado",your_connections:"Tus conexiones",connections_p1:"Ponte en contacto con las personas que conociste",connections_p2:"<br><br>No tienes ninguna conexión. <br> Comienza a usar Tapni!",connections_p3:"Ninguna conexión encontrada.",connection_success:"Solicitud de conexión enviada exitosamente",exchange_success:"Intercambio de contactos con éxito.",create_free_account:"Crea una cuenta gratuita en Tapni y mantén tus contactos actualizados!",connection_edit:"Editar conexión",connection_edit_success:"Conexión actualizada con éxito",connection_delete_success:"Conexión eliminada con éxito",search:"Buscar",devices_p1:"Lista de dispositivos compatibles",devices_p2:"Tapni usa tecnología compatible con la mayoría de los iPhones nuevos y dispositivos Android.",devices_p3:"Algunos dispositivos Android pueden tener NFC desactivado. Si tu Tapni no funciona en un dispositivo Android, busca NFC en configuración y asegúrate de que esté encendido.",devices_p4:"con el widged de NFC en el centro de control de iOS 14",download_p1:"Descarga la aplicación Tapni",download_p2:"Disponible para dispositivos Apple y Android",user_not_found:"Usuario no encontrado",user_not_found_p:"No pudimos encontrar el usuario en nuestra base de datos 🤷",taps:"Interacciones",private_profile:"Perfil privado",private_profile_p:"es un perfil privado. <br> El perfil es visible usando tags de Tapni solamente ",profile_bio_p:"Escribe algo acerca de tí o tu marca",add_to_contacts:"Agregar a contactos",drag_and_drop_links:"Arrastra tus enlaces en el orden que quieras",no_links:"No hay enlaces en tu perfil.",add_link:"Añadir enlace",direct_link_p1:"Tus visitantes serán redireccionados automáticamente a:",profile_not_active:"Tu perfil está desactivado <br> y sólo tú lo puedes ver.",profile_not_public:"Tu perfil no es público <br> y solo lo podrán ver las personas que escaneen tu tag.",activate_profile_now:"Activa tu perfil ahora",publish_profile_now:"Haz tu perfil público ahora",link_add_p1:"Escoge un tipo de enlace",link_add_not_found:"Ningún enlace encontrado 🤷",link_add_not_found_p2:"Si no encuentras tu plataforma favorita, mándanos un correo (<b>support@tapni.com</b>) o envíanos un mensaje en nuestras redes sociales (<b>@tapni</b>)",link_add_not_found_p3:"Haremos lo posible para incluir todas las plataformas 😉",featured:"Destacado",social_media:"Redes Sociales",contact:"Contacto",finance:"Finanzas",portfolio:"Portafolio",music:"Música",business:"Negocios",fun:"Diversión",ecommerce:"E-commerce",more:"Más",email_username:"Correo / Nombre de Usuario",username:"Nombre de Usuario",password:"Contraseña",sign_in:"Iniciar sesión",sign_in_with:"Iniciar sesión con",sign_in_with_new:"Iniciar sesión con una nueva cuenta",sign_up_with:"Registrarse con",select_sign_method:"Seleccione un método de inicio de sesión",verify_account:"Verificar cuenta",terms_by_signing_in:"Al iniciar sesión, aceptas nuestros",terms_by_registering:"Al registrarte, aceptas nuestros",terms_by_submitting:"Al enviar este formulario, usted acepta nuestras condiciones de servicio",terms_of_service:"Términos de Servicio",and:"y",refresh:"Actualizar",privacy_policy:"Política de Privacidad",create_account:"Crear cuenta",reset_password:"Restablecer contraseña",reset_password_p1:"Si no pudiste restablecer tu contraseña,<br> contáctanos en ",reset_password_p2:"Si no pudiste restablecer tu contraseña,<br> contáctanos en",create_new_account:"Crear una cuenta nueva",maintenance_p1:"Estaremos de regreso pronto",maintenance_p2:"Mientras tanto, puedes explorar nuestros productos",maintenance_p3:"Tapni está en un mantenimiento programado <br> y estará de regreso en unos minutos.",offline_p1:"Sin conexión a Internet",offline_p2:"Checa tu conexión, y actualiza la página",offline_p3_1:"Mientras estés desconectado,",offline_p3_2:"puedes compartir tu tarjeta de contacto utilizando este código QR",products_p1:"Impresiona a todas las personas que conozcas 😎 <br> Compra el tuyo ahora 👇",cards:"Tarjetas",stickers:"Stickers",keychains:"Llaveros",explore_collection:"Explora nuestra colección",register:"Registrarse",register_success:"Ya casi terminas. Por favor confirma tu correo electrónico.",register_success_modal:"Has iniciado sesión con otra cuenta exitosamente.",check_your_inbox:"Checa tu bandeja de entrada",tapni_tags:"Tags Tapni",tapni_tags_p1:"Configura los tags conectados a tu perfil",tapni_tags_p2:"No hay ningún tag conectado a tu perfil. <br> Conecta uno ahora!",verify_account_p1:"Si no recibiste un código, checa tu <br> folder de spam o contáctanos en",verify_account_success:"Cuenta verificada exitosamente. Por favor cambia tu contraseña ahora.",verify_account_success2:"Cuenta verificada exitosamente. Todo está listo! 🥳",welcome:"Te damos la bienvenida",welcome_p1:"al futuro de las tarjetas de presentación",how_it_works:"Cómo funciona",already_registered:"Ya estás registrado",error:"Error",success:"Éxito",copied:"Copiado al portapapeles",connect_validate:"Por favor ingresa al menos uno de los campos de contacto",connect_validate_name:"Por favor ingresa tu nombre",connect_validate_email:"Por favor, introduzca una dirección de correo electrónico válida",link_validate:"Datos del enlace inválidos.",link_text_contact_card:"Tarjeta de contacto",link_text_custom_link:"Enlace personalizado",link_text_menu:"Menu",link_text_phone:"Teléfono",save_to_apple_wallet:"Añadir a Cartera de Apple",save_to_google_wallet:"Añadir a Google Wallet",card:"Tarjeta",sticker:"Sticker",keychain:"Llavero",band:"Banda",case:"Caso",standee:"Standee",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Versión de la aplicación obsoleta detectada",update_p2:"Actualizar",update_p3:"Actualice la aplicación a la versión más reciente",company_domain:"El dominio de su empresa",search_company_domain:"Busca el dominio de tu empresa",enter_company_email:"Ingresa el correo electrónico de la empresa",company_not_found:"Empresa no encontrada",ik_company_domain:"Conozco el dominio de la empresa",idk_company_domain:"No conozco el dominio de la empresa",continue:"Continuar",forbidden_rule:"Esta opción está deshabilitada, comuníquese con el administrador de su empresa.",companyName:"Nombre de la empresa",createMarkerPlaceholder:"Crear o seleccionar un marcador",clickToCreateMarker:"Haga clic aquí para crear un marcador",pleaseInviteUser:"Invite al usuario a unirse a Tapni para tener los datos sincronizados con usted.",connectionSynchronized:"Los datos de conexión se sincronizan automáticamente.",viewProfile:"Ver perfil",createConnectionHeader:"Añadir nueva conexión",createConnectionButton:"Añadir",createConnectionSuccess:"Se ha creado la conexión.",allow_company_management:"Permitir a la dirección de la empresa",company_join_request:"solicita gestionar su perfil y asociarlo a su cuenta de empresa",account_ownership_transfer:"La propiedad de tu cuenta se transferirá a la empresa si aceptas la solicitud. La empresa podrá modificar tu perfil, editar y añadir enlaces, ver tus conexiones, modificar tu contraseña, eliminar tu cuenta, etc. Asegúrate de consultar con tu empresa antes de aceptar la solicitud.",request_expired:"Der Antrag ist abgelaufen. Bitten Sie Ihr Unternehmen, einen neuen Antrag zu stellen.",request_expiration_desc:"Para mayor seguridad, la solicitud sólo funcionará durante 14 días después de su envío.",invitation_link_not_valid:"El enlace de invitación no es válido.",invitation_link_not_valid2:"Vuelva a hacer clic en el botón del correo electrónico de invitación o copie el enlace de invitación.",accept_request:"Aceptar la solicitud",close:"Cerrar",request_accepted:"La solicitud ha sido aceptada con éxito",companyEmail:"Correo electrónico de la empresa",companyPhone:"Teléfono de la empresa",addBusinessInformations:"Añadir información de la empresa",resetFilter:"Restablecer",selectMarkers:"Seleccionar marcadores",filterConnectionsHeader:"Conexiones del filtro",selectConnectionType:"Seleccione el tipo de conexión",all:"Todo",direct:"Directo",form:"Formulario",manually:"Manualmente",scan:"Escáner",sortOptions:"Opciones de clasificación",date:"Fecha de creación",fullName:"Nombre completo",descending:"Descendiendo",ascending:"Ascendente",selectDateRange:"Seleccione el rango de fechas",follow_up_reminder:"Recordatorio de seguimiento",now:"ahora",one_hour:"1 Stunde",one_day:"1 Día",three_days:"3 Días",one_week:"1 Semana",two_weeks:"2 Semanas",one_month:"1 Mes",custom:"Elija la hora",set_reminder:"Establecer recordatorio",select_date_time:"Seleccione la fecha y la hora",enter_reminder_text:"Introduzca el texto del recordatorio",reminder_created:"Recordatorio creado con éxito",connectionNameLabel:"Introduzca el nombre de la conexión",connectionEmailLabel:"Introduzca la dirección de correo electrónico privada",privatePhoneLabel:"Introduzca el número de teléfono privado",companyNameLabel:"Introduzca el nombre de la empresa",businessEmail:"Dirección de correo electrónico de la empresa",businessEmailLabel:"Introduzca la dirección de correo electrónico de la empresa",businessPhone:"Número de teléfono de la empresa",businessPhoneLabel:"Introduzca el número de teléfono de la empresa",noteLabel:"Introduzca la nota",markersLabel:"Añadir marcadores de conexión",showScan:"Mostrar escaneo",hideScan:"Ocultar la exploración",create_connection:"Añadir conexiones",create_manually:"Añadir manualmente",create_using_scanner:"Añadir usando el escáner de tarjetas",companyTitle:"Título de la empresa",companyTitleLabel:"Introduzca el título de la empresa",allConnectionsLabel:"Todos los tipos de conexión",directConnectionsLabel:"Conexión directa en la aplicación con los usuarios de Tapni",formConnectionsLabel:"Conexiones rellenadas en el formulario de conexión",manualConnectionsLabel:"Conexiones creadas manualmente",scanConnectionsLabel:"Conexiones creadas por el escáner de tarjetas",analyticsHeader:"Analítica",analyticsProfileViews:"Vistas del perfil",analyticsLinkClicks:"Enlaces",analyticsClickTroughRatio:"Clic por calificaciones",analyticsTotalConnections:"Conexiones totales",analyticsTopLinks:"Enlaces más populares",analyticsProfileVisits:"Perfil Visitas",analyticsLinkVisits:"Enlace Visitas",analyticsNewConnections:"Nuevas conexiones",analyticsTopCountries:"Países principales",analyticsTopReferers:"Top Referentes",please_wait:"Por favor, espera...",click_here:"haz clic aquí",if_redirect_not_directly:"Si la redirección no se realiza automáticamente",you_will_be_redirected:"Serás redirigido a la aplicación Tapni.",use_tapni_on_the_web:"Usa Tapni en la Web",login_by_scanning_qr_code:"Inicia sesión escaneando el Código QR",open_tapni_app_on_your_phone:"1. Abre la App Tapni en tu teléfono",go_to_settings_link_a_device:"2. Ve a Configuración > Vincular un dispositivo",point_your_phone_at_this_qr_code:"3. Apunta tu teléfono a este Código QR",choose_other_login_methods:"Elige otros métodos de inicio de sesión",no_sso_logins:"Su empresa no utiliza el inicio de sesión SSO. Comuníquese con su administrador",mfa:"Autenticación Multi-Factor",otp_title:"Ingresa el código MFA para continuar",otp_code:"Código MFA",otp_subtitle:"Ingresa el código de tu app de autenticación",otp_p1:"Si tienes problemas con MFA, <br> contáctanos en",change_language:"Cambiar idioma",welcome_account:"Bienvenido al Centro de Cuentas",security:"Seguridad",security_p:"Administra opciones de autenticación y estado de cuenta",general:"General",general_p:"Administra tus datos personales y otras preferencias",billing:"Facturación",billing_p:"Administra tus suscripciones y métodos de pago",apps:"Apps",apps_p:"Ver tus apps activas y descubrir más",apps_my:"Mis Apps",mfa_auth:"Autenticación 2 Factores",mfa_auth_enabled:"Tu cuenta está protegida con MFA.",mfa_auth_p:"Protege tu cuenta contra accesos no autorizados habilitando MFA",mfa_auth_qr:"Escanea el QR o ingresa la clave secreta en tu app de autenticación.",change_password:"Cambiar Contraseña",active_account:"Cuenta Activa",active_account_p:"Si está desactivada, tu cuenta quedará inactiva hasta reactivarla.",delete_account:"Eliminar Cuenta",delete_account_p:"Eliminar Cuenta",permanent_delete:"Eliminación permanente",permanent_delete_p:"Si eliminas tu cuenta, se borrarán todos los datos. Acción irreversible. Si no estás seguro, desactiva temporalmente.",personal_details:"Datos Personales",app_language_p:"Traduce la app a tu idioma preferido",app_region:"Región",app_region_p:"Selecciona tu región para facturación y soporte personalizados"}},ko={state:{english:"Anglais",spanish:"Espagnol",german:"Allemand",italian:"Italien",korean:"Coréen",french:"Français",serbian:"Serbe",turkish:"Turc",chinese:"Chinois",japanese:"Japonais",portuguese:"Portugais",app_language:"Langue",profile_preview:"Aperçu du profil",edit_profile:"Editer le profil",login:"Connexion",referral_reach:"Fournissez-nous plus d'informations sur vous et votre portée.",referral_apply_placeholder:"Comment envisagez-vous de promouvoir Tapni?",referral_apply_note:`Ajouter autant de liens que possible sur votre compte, <br>
46
46
  afin que nous puissions savoir qui vous êtes.
47
47
  <br><br> Soyez exclusif.
48
48
  <br>Tout le monde ne peut pas être accepté.😉`,referral_apply_now:"Postulez maintenant",referral_apply_thanks:"Merci d'avoir postulé. Nous allons étudier votre candidature très bientôt!",connect:"Connecter",with:"avec",exchange_contact:"Échanger mes coordonnées",add_details:"Ajouter plus",show_details:"Montrer plus",download_contact:"télécharger le contact",stay_in_touch:"Restez en contact avec",no_thanks:"Non merci",connect_join:"Rejoindre Tapni",connect_with:"Se connecter à",connect_required_fields:"L'un des deux champs de contact doit être fourni",name:"Nom",first_name:"Prénom",last_name:"Nom de famille",email:"E-mail",phone:"Numéro de téléphone",phone_p:"Téléphone",company:"Société",address:"Adresse",website:"Site web",open:"Ouvrir",delete:"Supprimer",confirm:"Confirmer",cancel:"Annuler",save:"Sauvegarder",code:"Code",note:"Note",note_p:"Ajouter une note",contact_card_icon:"Définir le texte sous l'icône de la fiche contact",contact_card_name:"Entrez le nom de la fiche contact",contact_card_name_p:"Nom de la fiche contact",contact_card_email:"Entrez l'e-mail pour la fiche contact",contact_card_email_p:"Email de la fiche contact",contact_card_phone:"Entrez le téléphone pour la fiche contact",contact_card_phone_p:"Téléphone de la fiche contact",contact_card_website:"Entrez le site Web pour la fiche contact",contact_card_website_p:"Site Web de la fiche contact",contact_card_company_name:"Entrez le nom de l'entreprise pour la fiche contact",contact_card_company_name_p:"Nom de l'entreprise pour la fiche contact",contact_card_job_title:"Titre du poste",contact_card_job_title_p:"Entrez le titre du poste",contact_card_company_website:"Site web de l'entreprise",contact_card_company_website_p:"Entrez le site web de l'entreprise",contact_card_bio:"Entrez la bio pour la fiche contact",contact_card_bio_p:"Entrez la bio pour la fiche contact",contact_card_home_address:"Entrez l'adresse du domicile pour la fiche contact",contact_card_home_address_p:"Adresse du domicile de la fiche contact",contact_card_work_address:"Entrez l'adresse de travail de la fiche contact",contact_card_work_address_p:"Adresse de travail de la fiche contact",contact_card_social:"Entrez les liens de vos réseaux sociaux sur votre profil Tapni <br>afin de les ajouter dans la fiche contact",contact_card_social_p:"Entrez les liens de vos réseaux sociaux pour la fiche contact",link_text_p:"Texte du lien",link_icon:"Définir le texte sous l'icône du lien",direct_pick:"Choisissez un lien direct",direct_p:"Lorsque vous tapez sur le téléphone de quelqu'un, <br> ce lien s'ouvrira au lieu de votre profil complet.",password_change:"Changez le mot de passe",password_repeat:"Répétez le mot de passe",password_reset_t:"Réinitialisez le mot de passe",password_current:"Entrez votre mot de passe actuel",password_current_p:"Mot de passe actuel",password_new:"Entrez votre nouveau mot de passe",password_new_p:"nouveau mot de passe",password_new_repeat:"Entrez à nouveau votre nouveau mot de passe",password_new_repeat_p:"Entrez à nouveau votre nouveau mot de passe",password_update:"Mise à jour du mot de passe",password_reset:`Si vous ne vous souvenez plus de votre mot de passe actuel,<br>
@@ -57,7 +57,7 @@ ou glissez-déposez si vous utilisez un ordinateur`,crop:"Recadrez",crop_upload:
57
57
  écrivez-nous sur`,referral_p5:"Commencez à gagner de l'argent maintenant!",referral_p66:"Partagez votre lien d'affiliation et gagnez de l'argent!",referral_p6:`Si vous êtes blogueur, influenceur ou un passionné des réseaux sociaux, vous êtes parfaitement adapté à notre programme d'ambassadeurs.
58
58
  Faites la promotion de notre Marque et gagnez une commission de 20% sur les achats effectués avec votre code de réduction ou votre lien de parrainage.`,referral_p7:`Après vous être inscrit au programme d'ambassadeurs Tapni, vous recevrez un lien de parrainage personnel et un code de réduction.
59
59
  Partagez-les sur votre site web et vos réseaux sociaux, et gagnez de l'argent pendant que nous vous offrons une expérience de connexion exceptionnelle.`,referral_p8:"Note de paiement",referral_p9:"PayPal (Dans le monde entier) et Transferts bancaires (UE) <br> Le montant minimum de paiement est de 25 €.",referral_p10:"Demande de paiement",referral_p11:"Paiement demandé",your_connections:"Vos connexions",connections_p1:"Entrez en contact avec les personnes que vous avez rencontrées",connections_p2:"<br><br>Pas de connexions jusqu'à présent. <br> Commencez à taper💥",connections_p3:"Aucune connexion trouvée.",connection_success:"Demande de connexion envoyée avec succès",exchange_success:"Les contacts ont été échangés avec succès.",create_free_account:"Créez un compte Tapni gratuit et tenez vos contacts à jour!",connection_edit:"Modifier la connexion",connection_edit_success:"Mise à jour réussie de la connexion",connection_delete_success:"Succès de la suppression de la connexion",search:"Rechercher",devices_p1:"Liste des appareils compatibles",devices_p2:"Tapni utilise une technologie qui est compatible avec la plupart des nouveaux appareils iPhone et Android.",devices_p3:"Sur certains téléphones Android, la fonction NFC peut être désactivée. Si votre Tapni ne fonctionne pas sur un appareil Android, recherchez NFC dans les paramètres et assurez-vous qu'il est activé.",devices_p4:"avec le widget NFC d'iOS 14 dans le centre de contrôle",download_p1:"Téléchargez l'application Tapni",download_p2:"Disponible pour les appareils Apple et Android",user_not_found:"Utilisateur non trouvé",user_not_found_p:"Nous n'avons pas pu trouver l'utilisateur dans notre base de données🤷",taps:"Tapes",private_profile:"Profil privé",private_profile_p:"est un profil privé. <br> Le profil est visible uniquement en utilisant les produits Tapni",profile_bio_p:"Écrivez quelque chose à propos de vous ou de votre marque",add_to_contacts:"Ajoutez aux contacts",drag_and_drop_links:"Glissez-déposez les liens dans l'ordre souhaité",no_links:`
60
- Il n'y a aucun lien dans votre profil.`,add_link:"Ajoutez un lien",direct_link_p1:"Les visiteurs seront automatiquement redirigés vers:",profile_not_active:"Votre profil n'est actuellement pas actif <br> et vous seul pouvez le voir lorsque vous êtes connecté.",profile_not_public:"Votre profil n'est actuellement pas public <br> et seuls ceux qui tape avec vous peuvent le voir.",activate_profile_now:"Activez votre profil maintenant",publish_profile_now:"Rendez votre profil public maintenant",link_add_p1:"Choisissez un type de lien",link_add_not_found:"Aucun lien trouvé 🤷",link_add_not_found_p2:"Si nous avons manqué votre plate-forme préférée, veuillez nous envoyer un courriel (<b> support@tapni.com </b>) ou un MP sur les réseaux sociaux (<b> @tapni </b>)",link_add_not_found_p3:"Nous ferons de notre mieux pour prendre en charge toutes les plateformes 😉",featured:"Les vedettes",social_media:"Réseaux sociaux",contact:"Contact",finance:"Finance",portfolio:"Portefeuille",music:"Musique",business:"Entreprise",fun:"Amusement",ecommerce:"Ecommerce",more:"Autre",email_username:"Email / Nom d'utilisateur",username:"Nom d'utilisateur",password:"Mot de passe",sign_in:"Se connecter",sign_in_with:"Se connecter avec",sign_in_with_new:"Connectez-vous avec un nouveau compte",sign_up_with:"Se connecter avec",select_sign_method:"Sélectionnez une méthode de connexion",verify_account:"Vérifier le compte",terms_by_signing_in:"En vous connectant, vous acceptez notre",terms_by_registering:"En vous inscrivant, vous acceptez notre",terms_by_submitting:"En soumettant ce formulaire, vous acceptez nos conditions d'utilisation.",terms_of_service:"Conditions d'utilisation",and:"et",refresh:"Rafraîchir",privacy_policy:"Politique de confidentialité",create_account:"Créer un compte",reset_password:"Réinitialiser le mot de passe",reset_password_p1:"Si vous ne pouvez pas réinitialiser votre mot de passe,<br> n'hésitez pas à nous contacter à",reset_password_p2:"Si vous ne pouvez pas réinitialiser votre mot de passe,<br> n'hésitez pas à nous contacter à",create_new_account:"Créer un nouveau compte",maintenance_p1:"Nous serons bientôt de retour ",maintenance_p2:"En attendant, explorez les collections de tapni",maintenance_p3:"Tapni est en panne pour un entretien programmé <br> et devrait être de retour en ligne dans quelques minutes.",offline_p1:"Pas de connexion Internet",offline_p2:"Vérifiez votre connexion, puis rafraîchissez la page.",offline_p3_1:"Lorsque vous êtes hors ligne,",offline_p3_2:"vous pouvez partager votre carte de contact en utilisant ce code QR.",products_p1:"Impressionnez tout le monde que vous rencontrez 😎 <br> Obtenez le vôtre maintenant 👇",cards:"Cartes",stickers:"Stickers",keychains:"Porte-clés",explore_collection:"Explorez la collection",register:"S'inscrire",register_success:"Vous avez presque terminé. Veuillez confirmer votre courriel.",register_success_modal:"Connecté avec succès avec un autre compte.",check_your_inbox:"Vérifiez votre boîte de réception",tapni_tags:"Tags Tapni",tapni_tags_p1:"Configurez les Tags connectées à votre profil",tapni_tags_p2:"Il n'y a aucun tag connecté à votre profil. <br> Connectez-en un maintenant !",verify_account_p1:"Si vous n'avez pas reçu de code, vérifiez votre <br> dossier Spam ou contactez-nous à",verify_account_success:"Compte vérifié avec succès. Veuillez changer votre mot de passe maintenant.",verify_account_success2:"Compte vérifié avec succès. Vous êtes prêt! 🥳",welcome:"Bienvenue",welcome_p1:"à l'avenir des cartes de visite",how_it_works:"Comment ça fonctionne",already_registered:"Déjà enregistré",error:"Erreur",success:"Succès",copied:"Copié dans le presse-papier",connect_validate:"L'un des deux champs de contact doit être fourni",connect_validate_name:"Veuillez entrez votre nom",connect_validate_email:"Veuillez entrer une adresse électronique valide",link_validate:"Données de liaison non valides.",link_text_contact_card:"Fiche contact",link_text_custom_link:"Lien personnalisé",link_text_menu:"Menu",link_text_phone:"Téléphone",save_to_apple_wallet:"Ajouter à l'app Cartes Apple",save_to_google_wallet:"Ajouter a Google Wallet",card:"Carte",sticker:"Sticker",keychain:"Trousseau",band:"Band",case:"Case",standee:"Standee",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Version d'application obsolète détectée",update_p2:"Update",update_p3:"Veuillez mettre à jour l'application avec la version la plus récente",company_domain:"Le domaine de votre entreprise",search_company_domain:"Recherchez le domaine de votre entreprise",enter_company_email:"Entrez l'adresse e-mail de l'entreprise",company_not_found:"Entreprise non trouvée",ik_company_domain:"Je connais le domaine de l'entreprise",idk_company_domain:"Je ne connais pas le domaine de l'entreprise",continue:"Continuer",forbidden_rule:"Cette option est désactivée, contactez l'administrateur de votre entreprise.",companyName:"Nom de la société",createMarkerPlaceholder:"Créer ou sélectionner un marqueur",clickToCreateMarker:"Cliquez ici pour créer un marqueur",pleaseInviteUser:"Invite al usuario a unirse a Tapni para tener los datos sincronizados con usted.",connectionSynchronized:"Les données de connexion sont automatiquement synchronisées.",viewProfile:"Voir le profil",createConnectionHeader:"Ajouter une nouvelle connexion",createConnectionButton:"Ajouter",createConnectionSuccess:"La connexion a été créée.",allow_company_management:"Permettre la gestion de l'entreprise",company_join_request:"demande à gérer votre profil et à l'associer à son compte Entreprise.",account_ownership_transfer:"La propriété de votre compte sera transférée à l'entreprise si vous acceptez la demande. L'entreprise pourra modifier votre profil, éditer et ajouter des liens, voir vos connexions, modifier votre mot de passe, supprimer votre compte, etc. Vérifiez auprès de votre entreprise avant d'accepter la demande.",request_expired:"La demande a expiré, demandez à votre entreprise d'envoyer une nouvelle demande.",request_expiration_desc:"Pour plus de sécurité, la demande ne fonctionnera que pendant 14 jours après son envoi.",invitation_link_not_valid:"Le lien d'invitation n'est pas valide !",invitation_link_not_valid2:"Cliquez à nouveau sur le bouton de l'e-mail d'invitation ou copiez le lien d'invitation.",accept_request:"Accepter la demande",close:"Fermer",request_accepted:"La demande a été acceptée avec succès",companyEmail:"Courriel de l'entreprise",companyPhone:"Téléphone de l'entreprise",addBusinessInformations:"Ajouter des informations sur les busines",resetFilter:"Réinitialiser",selectMarkers:"Sélectionner les marqueurs",filterConnectionsHeader:"Filtrer mes connexions",selectConnectionType:"Sélectionnez le type de connexion",all:"Tous",direct:"Direct",form:"Formulaire",manually:"Manuellement",scan:"Scanner",sortOptions:"Options de tri",date:"Date de création",fullName:"Nom complet",descending:"Descendant",ascending:"Ascendant",selectDateRange:"Sélectionnez la plage de dates",follow_up_reminder:"Rappel de suivi",now:"Maintenant",one_hour:"1 heure",one_day:"1 Jour",three_days:"3 Jours",one_week:"1 Semaine",two_weeks:"2 Semaines",one_month:"1 Mois",custom:"Choisir l'heure",set_reminder:"Fixer un rappel",select_date_time:"Sélectionnez la date et l'heure",enter_reminder_text:"Saisir le texte du rappel",reminder_created:"Rappel créé avec succès",connectionNameLabel:"Entrez le nom de la connexion",connectionEmailLabel:"Entrez l'adresse e-mail privée",privatePhoneLabel:"Entrez le numéro de téléphone privé",companyNameLabel:"Entrez le nom de l'entreprise",businessEmail:"Adresse électronique professionnelle",businessEmailLabel:"Entrez l'adresse électronique professionnelle",businessPhone:"Numéro de téléphone professionnel",businessPhoneLabel:"Entrez le numéro de téléphone de l'entreprise",noteLabel:"Entrez la note",markersLabel:"Ajouter des marqueurs de connexion",showScan:"Afficher le scan",hideScan:"Masquer le scan",create_connection:"Ajouter des connexions",create_manually:"Ajouter manuellement",create_using_scanner:"Ajouter en utilisant le scanner de cartes",companyTitle:"Título de la empresa",companyTitleLabel:"Introduzca el título de la empresa",allConnectionsLabel:"Tous les types de connexion",directConnectionsLabel:"Connexion directe in-app avec les utilisateurs de Tapni",formConnectionsLabel:"Connexions remplies sur le formulaire de connexion",manualConnectionsLabel:"Connexions créées manuellement",scanConnectionsLabel:"Le scanner de cartes a créé des connexions",analyticsHeader:"Analyse",analyticsProfileViews:"Vues du profil",analyticsLinkClicks:"Clics sur les liens",analyticsClickTroughRatio:"Rapport entre le clic et le creux",analyticsTotalConnections:"Total des connexions",analyticsTopLinks:"Liens les plus populaires",analyticsProfileVisits:"Visites de profil",analyticsLinkVisits:"Visites de liens",analyticsNewConnections:"Nouvelles connexions",analyticsTopCountries:"Principaux pays",analyticsTopReferers:"Principaux référents",please_wait:"Veuillez patienter...",click_here:"cliquez ici",if_redirect_not_directly:"Si la redirection ne se fait pas automatiquement",you_will_be_redirected:"Vous serez redirigé vers l'application Tapni.",use_tapni_on_the_web:"Utilisez Tapni sur le Web",login_by_scanning_qr_code:"Connectez-vous en scannant le QR Code",open_tapni_app_on_your_phone:"1. Ouvrez l'application Tapni sur votre téléphone",go_to_settings_link_a_device:"2. Aller dans les paramètres > Lier un appareil",point_your_phone_at_this_qr_code:"3. Pointez votre téléphone sur ce QR Code",choose_other_login_methods:"Choisissez d'autres méthodes de connexion",no_sso_logins:"Votre entreprise n'utilise pas de login SSO, veuillez contacter votre administrateur",mfa:"Auth. Multi-Facteurs",otp_title:"Entrez le code MFA pour continuer",otp_code:"Code MFA",otp_subtitle:"Saisissez le code de votre app d’authentification",otp_p1:"En cas de souci avec MFA, <br> contactez-nous à",change_language:"Changer la langue",welcome_account:"Bienvenue dans le Centre de Compte",security:"Sécurité",security_p:"Gérez vos options d’authentification & le statut du compte",general:"Général",general_p:"Gérez vos infos personnelles & préférences",billing:"Facturation",billing_p:"Gérez vos abonnements & profils de paiement",apps:"Apps",apps_p:"Voir vos apps actives & découvrir d’autres options",apps_my:"Mes Apps",mfa_auth:"Auth. à deux facteurs",mfa_auth_enabled:"Votre compte est protégé par MFA.",mfa_auth_p:"Protégez votre compte via l’authentification à facteurs multiples",mfa_auth_qr:"Scannez le QR ou saisissez la clé secrète dans l’app d’authentification.",change_password:"Changer le mot de passe",active_account:"Compte actif",active_account_p:"Si désactivé, votre compte est temporairement inactif jusqu’à réactivation.",delete_account:"Supprimer le compte",delete_account_p:"Supprimer le compte",permanent_delete:"Suppression définitive",permanent_delete_p:"Tous vos données seront effacées. Action irréversible. Si incertain, désactivez simplement.",personal_details:"Détails personnels",app_language_p:"Traduisez l’app dans votre langue préférée",app_region:"Région",app_region_p:"Sélectionnez votre région pour une facturation & assistance personnalisées"}},_r={state:{english:"Inglese",spanish:"Spagnolo",german:"Tedesco",korean:"Coreano",italian:"Italiano",french:"Francese",serbian:"Serba",turkish:"Turco",chinese:"Cinese",japanese:"Giapponese",portuguese:"Portoghese",app_language:"Lingua dell'app",profile_preview:"Visualizza Profilo",edit_profile:"Modifica Profilo",login:"Login",referral_reach:"Forniscici maggiori informazioni su di te e sulla tua portata",referral_apply_placeholder:"Come pensi di promuovere Tapni?",referral_apply_note:"Agguingi piu link possibili ai tuoi social, In modo che possiamo sapere chi sei. Sii esclusivo. Non tutti vengono accettati",referral_apply_now:"Applica ora",referral_apply_thanks:"Grazie per l'applicazione. Esamineremo presto la tua candidatura!",connect:"Connettiti",with:"con",exchange_contact:"Exchange Contact",add_details:"Aggiungi altro",show_details:"Mostra di più",download_contact:"scaricare il contatto",stay_in_touch:"Rimanete in contatto con",no_thanks:"No Grazie",connect_join:"Unisciti a Tapni",connect_with:"Connettiti con",connect_required_fields:"Uno dei due campi di contatto devono essere forniti",name:"Nome",first_name:"Nome",last_name:"Cognome",email:"Email",phone:"Numero di telefono",phone_p:"Telefono",company:"Azienda",address:"Indirizzo",website:"Sito web",open:"Apri",delete:"Cancella",confirm:"Conferma",cancel:"Annullamento",save:"Salva",code:"Codice",note:"Nota",note_p:"Aggiungi una nota",contact_card_icon:"Imposta il testo sotto l'icona della scheda di contatto",contact_card_name:"Inserire il nome per la scheda contatto",contact_card_name_p:"Nome della scheda di contatto",contact_card_email:"Inserire l'email per la scheda contatto",contact_card_email_p:"E-mail della scheda di contatto",contact_card_phone:"Inserire telefono per la scheda di contatto",contact_card_phone_p:"Telefono della scheda di contatto",contact_card_website:"Inserire il sito Web per la scheda di contatto",contact_card_website_p:"Sito Web della scheda di contatto",contact_card_company_name:"Inserisci il nome dell'azienda per la scheda contatto",contact_card_company_name_p:"Nome dell'azienda della scheda di contatto",contact_card_job_title:"Titolo del lavoro",contact_card_job_title_p:"Inserire il titolo del lavoro",contact_card_company_website:"Sito web dell'azienda",contact_card_company_website_p:"Inserire il sito web dell'azienda",contact_card_bio:"Inserisci la bio per la scheda di contatto",contact_card_bio_p:"Inserisci la bio per la scheda di contatto",contact_card_home_address:"Inserire l'indirizzo di casa per la scheda di contatto",contact_card_home_address_p:"Indirizzo di casa della scheda di contatto",contact_card_work_address:"Inserire l'indirizzo di lavoro per la scheda contatto",contact_card_work_address_p:"l'indirizzo di lavoro della scheda contatto",contact_card_social:"Inserisci i link dei social media al tuo profilo Tapni <br>per aggiungerli nella scheda dei contatti",contact_card_social_p:"Inserisci i link ai social media per la scheda di contatto",link_text_p:"Testo del link",link_icon:"Imposta il testo sotto l'icona del link",direct_pick:"Scegli un link diretto",direct_p:"Quando con il tuo tapni tocchi il telefono di qualcuno,<br> questo link verrà aperto al posto del tuo profilo completo.",password_change:"Cambia la password",password_repeat:"Ripeti la password",password_reset_t:"Reimpostazione della password",password_current:"Inserisci la tua password attuale",password_current_p:"Password attuale",password_new:"Inserisci la tua nuova password",password_new_p:"Nuova Password",password_new_repeat:"Inserisci di nuovo la tua nuova password",password_new_repeat_p:"Inserisci di nuovo la tua nuova password",password_update:"Aggiornamento password",password_reset:`Se non ti ricordi la tua password attuale,<br>
60
+ Il n'y a aucun lien dans votre profil.`,add_link:"Ajoutez un lien",direct_link_p1:"Les visiteurs seront automatiquement redirigés vers:",profile_not_active:"Votre profil n'est actuellement pas actif <br> et vous seul pouvez le voir lorsque vous êtes connecté.",profile_not_public:"Votre profil n'est actuellement pas public <br> et seuls ceux qui tape avec vous peuvent le voir.",activate_profile_now:"Activez votre profil maintenant",publish_profile_now:"Rendez votre profil public maintenant",link_add_p1:"Choisissez un type de lien",link_add_not_found:"Aucun lien trouvé 🤷",link_add_not_found_p2:"Si nous avons manqué votre plate-forme préférée, veuillez nous envoyer un courriel (<b> support@tapni.com </b>) ou un MP sur les réseaux sociaux (<b> @tapni </b>)",link_add_not_found_p3:"Nous ferons de notre mieux pour prendre en charge toutes les plateformes 😉",featured:"Les vedettes",social_media:"Réseaux sociaux",contact:"Contact",finance:"Finance",portfolio:"Portefeuille",music:"Musique",business:"Entreprise",fun:"Amusement",ecommerce:"Ecommerce",more:"Autre",email_username:"Email / Nom d'utilisateur",username:"Nom d'utilisateur",password:"Mot de passe",sign_in:"Se connecter",sign_in_with:"Se connecter avec",sign_in_with_new:"Connectez-vous avec un nouveau compte",sign_up_with:"Se connecter avec",select_sign_method:"Sélectionnez une méthode de connexion",verify_account:"Vérifier le compte",terms_by_signing_in:"En vous connectant, vous acceptez notre",terms_by_registering:"En vous inscrivant, vous acceptez notre",terms_by_submitting:"En soumettant ce formulaire, vous acceptez nos conditions d'utilisation.",terms_of_service:"Conditions d'utilisation",and:"et",refresh:"Rafraîchir",privacy_policy:"Politique de confidentialité",create_account:"Créer un compte",reset_password:"Réinitialiser le mot de passe",reset_password_p1:"Si vous ne pouvez pas réinitialiser votre mot de passe,<br> n'hésitez pas à nous contacter à",reset_password_p2:"Si vous ne pouvez pas réinitialiser votre mot de passe,<br> n'hésitez pas à nous contacter à",create_new_account:"Créer un nouveau compte",maintenance_p1:"Nous serons bientôt de retour ",maintenance_p2:"En attendant, explorez les collections de tapni",maintenance_p3:"Tapni est en panne pour un entretien programmé <br> et devrait être de retour en ligne dans quelques minutes.",offline_p1:"Pas de connexion Internet",offline_p2:"Vérifiez votre connexion, puis rafraîchissez la page.",offline_p3_1:"Lorsque vous êtes hors ligne,",offline_p3_2:"vous pouvez partager votre carte de contact en utilisant ce code QR.",products_p1:"Impressionnez tout le monde que vous rencontrez 😎 <br> Obtenez le vôtre maintenant 👇",cards:"Cartes",stickers:"Stickers",keychains:"Porte-clés",explore_collection:"Explorez la collection",register:"S'inscrire",register_success:"Vous avez presque terminé. Veuillez confirmer votre courriel.",register_success_modal:"Connecté avec succès avec un autre compte.",check_your_inbox:"Vérifiez votre boîte de réception",tapni_tags:"Tags Tapni",tapni_tags_p1:"Configurez les Tags connectées à votre profil",tapni_tags_p2:"Il n'y a aucun tag connecté à votre profil. <br> Connectez-en un maintenant !",verify_account_p1:"Si vous n'avez pas reçu de code, vérifiez votre <br> dossier Spam ou contactez-nous à",verify_account_success:"Compte vérifié avec succès. Veuillez changer votre mot de passe maintenant.",verify_account_success2:"Compte vérifié avec succès. Vous êtes prêt! 🥳",welcome:"Bienvenue",welcome_p1:"à l'avenir des cartes de visite",how_it_works:"Comment ça fonctionne",already_registered:"Déjà enregistré",error:"Erreur",success:"Succès",copied:"Copié dans le presse-papier",connect_validate:"L'un des deux champs de contact doit être fourni",connect_validate_name:"Veuillez entrez votre nom",connect_validate_email:"Veuillez entrer une adresse électronique valide",link_validate:"Données de liaison non valides.",link_text_contact_card:"Fiche contact",link_text_custom_link:"Lien personnalisé",link_text_menu:"Menu",link_text_phone:"Téléphone",save_to_apple_wallet:"Ajouter à l'app Cartes Apple",save_to_google_wallet:"Ajouter a Google Wallet",card:"Carte",sticker:"Sticker",keychain:"Trousseau",band:"Band",case:"Case",standee:"Standee",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Version d'application obsolète détectée",update_p2:"Update",update_p3:"Veuillez mettre à jour l'application avec la version la plus récente",company_domain:"Le domaine de votre entreprise",search_company_domain:"Recherchez le domaine de votre entreprise",enter_company_email:"Entrez l'adresse e-mail de l'entreprise",company_not_found:"Entreprise non trouvée",ik_company_domain:"Je connais le domaine de l'entreprise",idk_company_domain:"Je ne connais pas le domaine de l'entreprise",continue:"Continuer",forbidden_rule:"Cette option est désactivée, contactez l'administrateur de votre entreprise.",companyName:"Nom de la société",createMarkerPlaceholder:"Créer ou sélectionner un marqueur",clickToCreateMarker:"Cliquez ici pour créer un marqueur",pleaseInviteUser:"Invite al usuario a unirse a Tapni para tener los datos sincronizados con usted.",connectionSynchronized:"Les données de connexion sont automatiquement synchronisées.",viewProfile:"Voir le profil",createConnectionHeader:"Ajouter une nouvelle connexion",createConnectionButton:"Ajouter",createConnectionSuccess:"La connexion a été créée.",allow_company_management:"Permettre la gestion de l'entreprise",company_join_request:"demande à gérer votre profil et à l'associer à son compte Entreprise.",account_ownership_transfer:"La propriété de votre compte sera transférée à l'entreprise si vous acceptez la demande. L'entreprise pourra modifier votre profil, éditer et ajouter des liens, voir vos connexions, modifier votre mot de passe, supprimer votre compte, etc. Vérifiez auprès de votre entreprise avant d'accepter la demande.",request_expired:"La demande a expiré, demandez à votre entreprise d'envoyer une nouvelle demande.",request_expiration_desc:"Pour plus de sécurité, la demande ne fonctionnera que pendant 14 jours après son envoi.",invitation_link_not_valid:"Le lien d'invitation n'est pas valide !",invitation_link_not_valid2:"Cliquez à nouveau sur le bouton de l'e-mail d'invitation ou copiez le lien d'invitation.",accept_request:"Accepter la demande",close:"Fermer",request_accepted:"La demande a été acceptée avec succès",companyEmail:"Courriel de l'entreprise",companyPhone:"Téléphone de l'entreprise",addBusinessInformations:"Ajouter des informations sur les busines",resetFilter:"Réinitialiser",selectMarkers:"Sélectionner les marqueurs",filterConnectionsHeader:"Filtrer mes connexions",selectConnectionType:"Sélectionnez le type de connexion",all:"Tous",direct:"Direct",form:"Formulaire",manually:"Manuellement",scan:"Scanner",sortOptions:"Options de tri",date:"Date de création",fullName:"Nom complet",descending:"Descendant",ascending:"Ascendant",selectDateRange:"Sélectionnez la plage de dates",follow_up_reminder:"Rappel de suivi",now:"Maintenant",one_hour:"1 heure",one_day:"1 Jour",three_days:"3 Jours",one_week:"1 Semaine",two_weeks:"2 Semaines",one_month:"1 Mois",custom:"Choisir l'heure",set_reminder:"Fixer un rappel",select_date_time:"Sélectionnez la date et l'heure",enter_reminder_text:"Saisir le texte du rappel",reminder_created:"Rappel créé avec succès",connectionNameLabel:"Entrez le nom de la connexion",connectionEmailLabel:"Entrez l'adresse e-mail privée",privatePhoneLabel:"Entrez le numéro de téléphone privé",companyNameLabel:"Entrez le nom de l'entreprise",businessEmail:"Adresse électronique professionnelle",businessEmailLabel:"Entrez l'adresse électronique professionnelle",businessPhone:"Numéro de téléphone professionnel",businessPhoneLabel:"Entrez le numéro de téléphone de l'entreprise",noteLabel:"Entrez la note",markersLabel:"Ajouter des marqueurs de connexion",showScan:"Afficher le scan",hideScan:"Masquer le scan",create_connection:"Ajouter des connexions",create_manually:"Ajouter manuellement",create_using_scanner:"Ajouter en utilisant le scanner de cartes",companyTitle:"Título de la empresa",companyTitleLabel:"Introduzca el título de la empresa",allConnectionsLabel:"Tous les types de connexion",directConnectionsLabel:"Connexion directe in-app avec les utilisateurs de Tapni",formConnectionsLabel:"Connexions remplies sur le formulaire de connexion",manualConnectionsLabel:"Connexions créées manuellement",scanConnectionsLabel:"Le scanner de cartes a créé des connexions",analyticsHeader:"Analyse",analyticsProfileViews:"Vues du profil",analyticsLinkClicks:"Clics sur les liens",analyticsClickTroughRatio:"Rapport entre le clic et le creux",analyticsTotalConnections:"Total des connexions",analyticsTopLinks:"Liens les plus populaires",analyticsProfileVisits:"Visites de profil",analyticsLinkVisits:"Visites de liens",analyticsNewConnections:"Nouvelles connexions",analyticsTopCountries:"Principaux pays",analyticsTopReferers:"Principaux référents",please_wait:"Veuillez patienter...",click_here:"cliquez ici",if_redirect_not_directly:"Si la redirection ne se fait pas automatiquement",you_will_be_redirected:"Vous serez redirigé vers l'application Tapni.",use_tapni_on_the_web:"Utilisez Tapni sur le Web",login_by_scanning_qr_code:"Connectez-vous en scannant le QR Code",open_tapni_app_on_your_phone:"1. Ouvrez l'application Tapni sur votre téléphone",go_to_settings_link_a_device:"2. Aller dans les paramètres > Lier un appareil",point_your_phone_at_this_qr_code:"3. Pointez votre téléphone sur ce QR Code",choose_other_login_methods:"Choisissez d'autres méthodes de connexion",no_sso_logins:"Votre entreprise n'utilise pas de login SSO, veuillez contacter votre administrateur",mfa:"Auth. Multi-Facteurs",otp_title:"Entrez le code MFA pour continuer",otp_code:"Code MFA",otp_subtitle:"Saisissez le code de votre app d’authentification",otp_p1:"En cas de souci avec MFA, <br> contactez-nous à",change_language:"Changer la langue",welcome_account:"Bienvenue dans le Centre de Compte",security:"Sécurité",security_p:"Gérez vos options d’authentification & le statut du compte",general:"Général",general_p:"Gérez vos infos personnelles & préférences",billing:"Facturation",billing_p:"Gérez vos abonnements & profils de paiement",apps:"Apps",apps_p:"Voir vos apps actives & découvrir d’autres options",apps_my:"Mes Apps",mfa_auth:"Auth. à deux facteurs",mfa_auth_enabled:"Votre compte est protégé par MFA.",mfa_auth_p:"Protégez votre compte via l’authentification à facteurs multiples",mfa_auth_qr:"Scannez le QR ou saisissez la clé secrète dans l’app d’authentification.",change_password:"Changer le mot de passe",active_account:"Compte actif",active_account_p:"Si désactivé, votre compte est temporairement inactif jusqu’à réactivation.",delete_account:"Supprimer le compte",delete_account_p:"Supprimer le compte",permanent_delete:"Suppression définitive",permanent_delete_p:"Tous vos données seront effacées. Action irréversible. Si incertain, désactivez simplement.",personal_details:"Détails personnels",app_language_p:"Traduisez l’app dans votre langue préférée",app_region:"Région",app_region_p:"Sélectionnez votre région pour une facturation & assistance personnalisées"}},Eo={state:{english:"Inglese",spanish:"Spagnolo",german:"Tedesco",korean:"Coreano",italian:"Italiano",french:"Francese",serbian:"Serba",turkish:"Turco",chinese:"Cinese",japanese:"Giapponese",portuguese:"Portoghese",app_language:"Lingua dell'app",profile_preview:"Visualizza Profilo",edit_profile:"Modifica Profilo",login:"Login",referral_reach:"Forniscici maggiori informazioni su di te e sulla tua portata",referral_apply_placeholder:"Come pensi di promuovere Tapni?",referral_apply_note:"Agguingi piu link possibili ai tuoi social, In modo che possiamo sapere chi sei. Sii esclusivo. Non tutti vengono accettati",referral_apply_now:"Applica ora",referral_apply_thanks:"Grazie per l'applicazione. Esamineremo presto la tua candidatura!",connect:"Connettiti",with:"con",exchange_contact:"Exchange Contact",add_details:"Aggiungi altro",show_details:"Mostra di più",download_contact:"scaricare il contatto",stay_in_touch:"Rimanete in contatto con",no_thanks:"No Grazie",connect_join:"Unisciti a Tapni",connect_with:"Connettiti con",connect_required_fields:"Uno dei due campi di contatto devono essere forniti",name:"Nome",first_name:"Nome",last_name:"Cognome",email:"Email",phone:"Numero di telefono",phone_p:"Telefono",company:"Azienda",address:"Indirizzo",website:"Sito web",open:"Apri",delete:"Cancella",confirm:"Conferma",cancel:"Annullamento",save:"Salva",code:"Codice",note:"Nota",note_p:"Aggiungi una nota",contact_card_icon:"Imposta il testo sotto l'icona della scheda di contatto",contact_card_name:"Inserire il nome per la scheda contatto",contact_card_name_p:"Nome della scheda di contatto",contact_card_email:"Inserire l'email per la scheda contatto",contact_card_email_p:"E-mail della scheda di contatto",contact_card_phone:"Inserire telefono per la scheda di contatto",contact_card_phone_p:"Telefono della scheda di contatto",contact_card_website:"Inserire il sito Web per la scheda di contatto",contact_card_website_p:"Sito Web della scheda di contatto",contact_card_company_name:"Inserisci il nome dell'azienda per la scheda contatto",contact_card_company_name_p:"Nome dell'azienda della scheda di contatto",contact_card_job_title:"Titolo del lavoro",contact_card_job_title_p:"Inserire il titolo del lavoro",contact_card_company_website:"Sito web dell'azienda",contact_card_company_website_p:"Inserire il sito web dell'azienda",contact_card_bio:"Inserisci la bio per la scheda di contatto",contact_card_bio_p:"Inserisci la bio per la scheda di contatto",contact_card_home_address:"Inserire l'indirizzo di casa per la scheda di contatto",contact_card_home_address_p:"Indirizzo di casa della scheda di contatto",contact_card_work_address:"Inserire l'indirizzo di lavoro per la scheda contatto",contact_card_work_address_p:"l'indirizzo di lavoro della scheda contatto",contact_card_social:"Inserisci i link dei social media al tuo profilo Tapni <br>per aggiungerli nella scheda dei contatti",contact_card_social_p:"Inserisci i link ai social media per la scheda di contatto",link_text_p:"Testo del link",link_icon:"Imposta il testo sotto l'icona del link",direct_pick:"Scegli un link diretto",direct_p:"Quando con il tuo tapni tocchi il telefono di qualcuno,<br> questo link verrà aperto al posto del tuo profilo completo.",password_change:"Cambia la password",password_repeat:"Ripeti la password",password_reset_t:"Reimpostazione della password",password_current:"Inserisci la tua password attuale",password_current_p:"Password attuale",password_new:"Inserisci la tua nuova password",password_new_p:"Nuova Password",password_new_repeat:"Inserisci di nuovo la tua nuova password",password_new_repeat_p:"Inserisci di nuovo la tua nuova password",password_update:"Aggiornamento password",password_reset:`Se non ti ricordi la tua password attuale,<br>
61
61
  puoi resettarla`,delete_account_permanently:"Sei sicuro di voler eliminare il tuo account Tapni in modo permanente?",by_clicking_here:"cliccando qui",password_8_chars:"La password deve contenere almeno 8 caratteri",password_least_one_lowercase:"La password deve contenere almeno una lettera minuscola",password_least_one_uppercase:"La password deve contenere almeno una lettera maiuscola",password_least_one_number:"La password deve contenere almeno un numero",password_not_match:"Le password non corrispondono",password_change_success:"Password cambiata con successo",or:"o",profile:"Profilo",account_settings:"Impostazioni dell'account",profile_public:"Profilo pubblico",profile_public_p:"Il tuo profilo è disponibile pubblicamente tramite:",profile_active:"Profilo attivo",profile_active_p:"Se disattivi il tuo profilo, nessuno avrà accesso al tuo profilo e i tag collegati non funzioneranno più",profile_change_password:"Cambia la password",profile_change_username:"Cambia username",profile_change_language:"Cambia la lingua",profile_delete_account:"Cancellare l'account",profile_confirm_delete_account:"Cancellare l'account",profile_cancel_delete_account:"Annullamento",profile_delete_account_success:"L'account è stato eliminato con successo",profile_remove_p:`Se desideri rimuovere il tuo account,<br>
62
62
  per favore scrivici a`,profile_contact_support:`Se desiderate rimuovere il vostro account,<br>
63
63
  scriveteci a`,profile_email_subject:"Tapni App Support",profile_remove_subject:"Tapni settings support",profile_update_success:"Profilo aggiornato con successo",profile_complete:"Completa il tuo profilo",completed:"Completo",uncompleted:"Incompleto",contact_us:"Scrivici",contact_us_verify:"per verificare il tuo indirizzo email.",verify_email:"Verifica indirizzo e-mail",verify_email_subject:"Verificazione E-mail",verify_email_inbox:"Controlla il tuo inbox per",add_first_link:"Aggiungi il tuo primo link",add_first_link_p:`Clicca qui per aggiungere i tuoi canali di social media <br>
@@ -67,12 +67,12 @@ Il n'y a aucun lien dans votre profil.`,add_link:"Ajoutez un lien",direct_link_p
67
67
  o se hai domande,<br>
68
68
  scrivici su`,referral_p5:"Inizia a guadagnare ora!",referral_p66:"Condividi il tuo link di affiliazione e guadagna!",referral_p6:`Se sei un blogger, un influencer o un appassionato di social media, sei perfetto per il nostro programma Ambasciatore Tapni
69
69
  Promuovi il nostro Brand e guadagna una commissione del 20% sugli acquisti effettuati con il tuo codice sconto o link di riferimento.`,referral_p7:`Dopo la registrazione al programma Tapni Ambassador, riceverai un link di riferimento personale e un codice sconto.
70
- Condividili sul tuo sito Web e sui social media e guadagna mentre noi offriamo un'esperienza di connessione eccezionale.`,referral_p8:"Nota di pagamenti",referral_p9:"Paypal (Worldwide) e trasferimenti bancari (EU) <br> l'importo minimo di pagamento è di 25€.",referral_p10:"Richiedi pagamento",referral_p11:"Pagamento richiesto",your_connections:"Le tue connessioni",connections_p1:"Mettiti in contatto con le persone che hai incontrato",connections_p2:"<br><br>Nessuna connessione finora. <br> Facciamo i tap!💥",connections_p3:"Nessuna connessione trovata",connection_success:"Inviata con successo una richiesta di connessione.",exchange_success:"Scambio di contatti riuscito.",create_free_account:"Crea un account Tapni gratuito e tieni aggiornati i tuoi contatti!",connection_edit:"Modifica connessione",connection_edit_success:"Connessione aggiornata con successo",connection_delete_success:"Connessione eliminata con successo",search:"Cerca",devices_p1:"Elenco dei dispositivi compatibili",devices_p2:"Tapni utilizza una tecnologia compatibile con la maggior parte dei nuovi dispositivi iPhone e Android",devices_p3:"Alcuni telefoni Android potrebbero avere il NFC disattivato. Se il tuo Tapni non funziona su un dispositivo Android, cerca NFC nelle impostazioni e assicurati che sia acceso.",devices_p4:"con iOS 14, il widget NFC si trova nel centro di controllo",download_p1:"Scarica Tapni App",download_p2:"Disponibile per dispositivi Apple e Android",user_not_found:"Utente non trovato",user_not_found_p:"Non siamo riusciti a trovare l'utente nel nostro database🤷",taps:"I Tap",private_profile:"Profilo privato",private_profile_p:"è un profilo privato. <br> Il profilo è visibile solo utilizzando i tag Tapni",profile_bio_p:"Scrivi qualcosa su di te o sul tuo marchio",add_to_contacts:"Aggiungi ai contatti",drag_and_drop_links:"Trascina e rilascia i link nell'ordine desiderato",no_links:"Non ci sono link nel tuo profilo.",add_link:"Aggiungi un link",direct_link_p1:"I visitatori verranno automaticamente reindirizzati a:",profile_not_active:"Il tuo profilo non è attivo al momento <br> e solo tu puoi vederlo una volta effettuato il login.",profile_not_public:"Il tuo profilo al momento non è pubblico <br> e solo chi ti un tap, può vederlo.",activate_profile_now:"Attiva ora il tuo profilo",publish_profile_now:"Rendi pubblico il tuo profilo ora",link_add_p1:"Scegli un tipo di link",link_add_not_found:"Nessun link trovato 🤷",link_add_not_found_p2:"Se abbiamo dimenticato la tua social piattaforma preferita, inviaci un'e-mail (<b>support@tapni.com</b>) o inviaci un messaggio DM sui social media (<b>@tapni</b>)",link_add_not_found_p3:"Faremo del nostro meglio per supportare tutte le piattaforme 😉",featured:"In primo piano",social_media:"I Social media",contact:"Contatto",finance:"La Finanza",portfolio:"Il portfolio",music:"Musica",business:"Business",fun:"Divertimento",ecommerce:"E-commerce",more:"mostra di più",email_username:"Email/Nome utente",username:"Username",password:"Password",sign_in:"Registrazione",sign_in_with:"Registrati con",sign_in_with_new:"Accedi con un nuovo account",sign_up_with:"Iscriviti con",select_sign_method:"Seleziona un metodo di accesso",verify_account:"Verifica Account",terms_by_signing_in:"Effettuando l'accesso, accetti il ​​nostro",terms_by_registering:"Registrandoti accetti il ​​nostro",terms_by_submitting:"Inviando questo modulo, accettate i nostri Termini di servizio.",terms_of_service:"Termini di servizio",and:"e",refresh:"Ricaricare",privacy_policy:"Politica sulla riservatezza",create_account:"Crea un profilo",reset_password:"Resetta la password",reset_password_p1:"Se non sei riuscito a reimpostare la password,<br> non esitare a contattarci all'indirizzo",reset_password_p2:"Se non sei riuscito a resettare la password,<br> non esitare a contattarci all'indirizzo",create_new_account:"Crea un nuovo account",maintenance_p1:"Torniamo presto",maintenance_p2:"Nel frattempo esplora le collezioni Tapni",maintenance_p3:"Tapni è inattivo per una manutenzione programmata. <br> e dovrebbe tornare online tra pochi minuti.",offline_p1:"Nessuna connessione internet",offline_p2:"Controlla la tua connessione, quindi aggiorna la pagina",offline_p3_1:"Mentre si è offline,",offline_p3_2:"è possibile condividere la scheda di contatto utilizzando questo codice QR",products_p1:"Stupisci tutti quelli che incontri 😎 <br> Ottieni il tuo ora 👇",cards:"Biglietti da visita",stickers:"Adesivi",keychains:"Portachiavi",explore_collection:"Esplora collezione",register:"Registrati",register_success:"Hai quasi finito. Per favore, conferma la tua email.",register_success_modal:"Accesso riuscito con un altro account.",check_your_inbox:"Controlla il tuo DM",tapni_tags:"I Tapni tag",tapni_tags_p1:"Configura i tag collegati al tuo profilo",tapni_tags_p2:"Non ci sono tag collegati al tuo profilo. <br> Collegane uno ora!",verify_account_p1:"Se non hai ricevuto un codice, controlla la tua cartella spam di <br> o contattaci all'indirizzo",verify_account_success:"Account verificato con successo. Si prega di cambiare password ora.",verify_account_success2:"Account verificato con successo. Ora sei tutto pronto!",welcome:"Benvenuto",welcome_p1:"al futuro dei biglietti da visita",how_it_works:"Come funziona",already_registered:"Già registrato",error:"Errore",success:"Successo",copied:"Copiato negli appunti",connect_validate:"Deve essere fornito uno dei due campi di contatto",connect_validate_name:"Per favore inserisci il tuo nome",connect_validate_email:"Inserire un'e-mail valida",link_validate:"Dati di collegamento non validi.",link_text_contact_card:"Scheda di contatto",link_text_custom_link:"Link personalizzato",link_text_menu:"Menù",link_text_phone:"Telefono",save_to_apple_wallet:"Aggiungi a Apple Wallet",save_to_google_wallet:"Aggiungi a Google Wallet",card:"Carta",sticker:"Adesivo",keychain:"Portachiavi",band:"Banda",case:"Caso",standee:"Standee",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Rilevata versione app obsoleta",update_p2:"Aggiorna",update_p3:"Aggiorna l'app alla versione più recente",company_domain:"Il dominio della tua azienda",search_company_domain:"Cerca il dominio della tua azienda",enter_company_email:"Inserisci l'indirizzo e-mail aziendale",company_not_found:"Azienda non trovata",ik_company_domain:"Conosco il dominio dell'azienda",idk_company_domain:"Non conosco il dominio dell'azienda",continue:"Continua",forbidden_rule:"Questa opzione è disabilitata, contatta l'amministratore della tua azienda.",companyName:"Nome della società",createMarkerPlaceholder:"Creare o selezionare un marcatore",clickToCreateMarker:"Fare clic qui per creare il marcatore",pleaseInviteUser:"Invitate l'utente a iscriversi a Tapni per avere i dati sincronizzati con voi.",connectionSynchronized:"I dati di connessione vengono sincronizzati automaticamente.",viewProfile:"Visualizza il profilo",createConnectionHeader:"Aggiungi nuova connessione",createConnectionButton:"Aggiungi",createConnectionSuccess:"La connessione è stata creata.",allow_company_management:"Consentire la gestione dell'azienda",company_join_request:"chiede di gestire il suo profilo e di associarlo al suo account Enterprise.",account_ownership_transfer:"Se accettate la richiesta, la proprietà del vostro account sarà trasferita all'azienda. L'azienda potrà modificare il vostro profilo, modificare e aggiungere link, vedere le vostre connessioni, modificare la vostra password, cancellare il vostro account e altro ancora. Prima di accettare la richiesta, verificare con l'azienda.",request_expired:"La richiesta è scaduta, chiedete alla vostra azienda di inviare una nuova richiesta.",request_expiration_desc:"Per maggiore sicurezza, la richiesta funzionerà solo per 14 giorni dall'invio.",invitation_link_not_valid:"Il link di invito non è valido!",invitation_link_not_valid2:"Fare nuovamente clic sul pulsante dell'e-mail di invito o copiare il link dell'invito.",accept_request:"Accettare la richiesta",close:"Chiudere",request_accepted:"La richiesta è stata accettata con successo",companyEmail:"Email aziendale",companyPhone:"Telefono dell'azienda",addBusinessInformations:"Aggiungi informazioni sulle attività commerciali",resetFilter:"Reset",selectMarkers:"Selezionare i marcatori",filterConnectionsHeader:"Connessioni del filtro",selectConnectionType:"Selezionare il tipo di connessione",all:"Tutti",direct:"Diretto",form:"Forma",manually:"Manualmente",scan:"Scansione",sortOptions:"Opzioni di ordinamento",date:"Data di creazione",fullName:"Nome completo",descending:"In discesa",ascending:"Ascendente",selectDateRange:"Selezionare l'intervallo di date",follow_up_reminder:"Promemoria di follow-up",now:"Ora",one_hour:"1 Ora",one_day:"1 Gioro",three_days:"3 Giorni",one_week:"1 Settimana",two_weeks:"2 Settimane",one_month:"1 Mese",custom:"Scegliere l'ora",set_reminder:"Imposta promemoria",select_date_time:"Selezionare data e ora",enter_reminder_text:"Inserire il testo del promemoria",reminder_created:"Promemoria creato con successo",connectionNameLabel:"Inserire il nome della connessione",connectionEmailLabel:"Inserire l'indirizzo e-mail privato",privatePhoneLabel:"Inserire il numero di telefono privato",companyNameLabel:"Inserire il nome della società",businessEmail:"Indirizzo e-mail aziendale",businessEmailLabel:"Inserire l'indirizzo e-mail aziendale",businessPhone:"Numero di telefono aziendale",businessPhoneLabel:"Inserire il numero di telefono dell'azienda",noteLabel:"Inserire la nota",markersLabel:"Aggiungere i marcatori di connessione",showScan:"Mostra scansione",hideScan:"Nascondi scansione",create_connection:"Aggiungi connessioni",create_manually:"Aggiungi manualmente",create_using_scanner:"Aggiungi utilizzando lo scanner per schede",companyTitle:"Titolo dell'azienda",companyTitleLabel:"Inserire il titolo dell'azienda",allConnectionsLabel:"Tutti i tipi di connessione",directConnectionsLabel:"Connessione diretta in-app con gli utenti Tapni",formConnectionsLabel:"Connessioni compilate sul modulo di connessione",manualConnectionsLabel:"Connessioni create manualmente",scanConnectionsLabel:"Lo scanner per schede ha creato connessioni",analyticsHeader:"Analisi",analyticsProfileViews:"Visualizzazioni del profilo",analyticsLinkClicks:"Link cliccati",analyticsClickTroughRatio:"Rapporto click-trough",analyticsTotalConnections:"Connessioni totali",analyticsTopLinks:"I link più popolari",analyticsProfileVisits:"Visite al profilo",analyticsLinkVisits:"Visite di collegamento",analyticsNewConnections:"Nuove connessioni",analyticsTopCountries:"Paesi Top",analyticsTopReferers:"I migliori referenti",please_wait:"Attendere prego...",click_here:"clicca qui",if_redirect_not_directly:"Se il reindirizzamento non avviene automaticamente",you_will_be_redirected:"Sarai reindirizzato all'applicazione Tapni.",use_tapni_on_the_web:"Usa Tapni sul Web",login_by_scanning_qr_code:"Accedi scansionando il QR Code",open_tapni_app_on_your_phone:"1. Apri l'App Tapni sul tuo telefono",go_to_settings_link_a_device:"2. Vai su Impostazioni > Collega un dispositivo",point_your_phone_at_this_qr_code:"3. Punta il tuo telefono su questo QR Code",choose_other_login_methods:"Scegli altri metodi di accesso",no_sso_logins:"La tua azienda non utilizza l'accesso SSO, contatta il tuo amministratore",mfa:"Autenticazione Multi-Fattore",otp_title:"Inserisci il codice MFA per continuare",otp_code:"Codice MFA",otp_subtitle:"Inserisci il codice dall’app di autenticazione",otp_p1:"Se hai problemi con MFA, <br> contattaci a",change_language:"Cambia lingua",welcome_account:"Benvenuto nel Centro Account",security:"Sicurezza",security_p:"Gestisci opzioni di autenticazione & stato account",general:"Generale",general_p:"Gestisci dati personali & altre preferenze",billing:"Fatturazione",billing_p:"Gestisci abbonamenti & profili di pagamento",apps:"App",apps_p:"Visualizza le tue app attive & scopri altro",apps_my:"Le mie App",mfa_auth:"Autenticazione a 2 Fattori",mfa_auth_enabled:"Il tuo account è protetto da MFA.",mfa_auth_p:"Proteggi l’account da accessi non autorizzati attivando MFA",mfa_auth_qr:"Scansiona il QR o inserisci la chiave segreta nell’app di autenticazione.",change_password:"Cambia Password",active_account:"Account attivo",active_account_p:"Se disattivato, l’account resta inattivo finché non lo riattivi.",delete_account:"Elimina Account",delete_account_p:"Elimina Account",permanent_delete:"Eliminazione definitiva",permanent_delete_p:"Se elimini l’account, tutti i dati saranno persi. Azione irreversibile. In dubbio, disattivalo temporaneamente.",personal_details:"Dettagli Personali",app_language_p:"Traduci l’app nella tua lingua preferita",app_region:"Regione",app_region_p:"Seleziona la tua regione per fatturazione e supporto personalizzati"}},vr={state:{english:"Engleski",spanish:"Španski",german:"Nemački",korean:"Korejski",italian:"Italijanski",french:"Francuski",serbian:"Srpski",turkish:"Turski",chinese:"Kineski",japanese:"Japanski",portuguese:"Portugalski",app_language:"Jezik",profile_preview:"Pogledaj profil",edit_profile:"Uredi profil",login:"Prijavi se",referral_reach:"Napiši nam nešto više o sebi",referral_apply_placeholder:"Na koji način planiraš da promovišeš Tapni?",referral_apply_note:`Dodaj što više linkova na svom profilu, <br> tako da možemo bolje da te upoznamo.
70
+ Condividili sul tuo sito Web e sui social media e guadagna mentre noi offriamo un'esperienza di connessione eccezionale.`,referral_p8:"Nota di pagamenti",referral_p9:"Paypal (Worldwide) e trasferimenti bancari (EU) <br> l'importo minimo di pagamento è di 25€.",referral_p10:"Richiedi pagamento",referral_p11:"Pagamento richiesto",your_connections:"Le tue connessioni",connections_p1:"Mettiti in contatto con le persone che hai incontrato",connections_p2:"<br><br>Nessuna connessione finora. <br> Facciamo i tap!💥",connections_p3:"Nessuna connessione trovata",connection_success:"Inviata con successo una richiesta di connessione.",exchange_success:"Scambio di contatti riuscito.",create_free_account:"Crea un account Tapni gratuito e tieni aggiornati i tuoi contatti!",connection_edit:"Modifica connessione",connection_edit_success:"Connessione aggiornata con successo",connection_delete_success:"Connessione eliminata con successo",search:"Cerca",devices_p1:"Elenco dei dispositivi compatibili",devices_p2:"Tapni utilizza una tecnologia compatibile con la maggior parte dei nuovi dispositivi iPhone e Android",devices_p3:"Alcuni telefoni Android potrebbero avere il NFC disattivato. Se il tuo Tapni non funziona su un dispositivo Android, cerca NFC nelle impostazioni e assicurati che sia acceso.",devices_p4:"con iOS 14, il widget NFC si trova nel centro di controllo",download_p1:"Scarica Tapni App",download_p2:"Disponibile per dispositivi Apple e Android",user_not_found:"Utente non trovato",user_not_found_p:"Non siamo riusciti a trovare l'utente nel nostro database🤷",taps:"I Tap",private_profile:"Profilo privato",private_profile_p:"è un profilo privato. <br> Il profilo è visibile solo utilizzando i tag Tapni",profile_bio_p:"Scrivi qualcosa su di te o sul tuo marchio",add_to_contacts:"Aggiungi ai contatti",drag_and_drop_links:"Trascina e rilascia i link nell'ordine desiderato",no_links:"Non ci sono link nel tuo profilo.",add_link:"Aggiungi un link",direct_link_p1:"I visitatori verranno automaticamente reindirizzati a:",profile_not_active:"Il tuo profilo non è attivo al momento <br> e solo tu puoi vederlo una volta effettuato il login.",profile_not_public:"Il tuo profilo al momento non è pubblico <br> e solo chi ti un tap, può vederlo.",activate_profile_now:"Attiva ora il tuo profilo",publish_profile_now:"Rendi pubblico il tuo profilo ora",link_add_p1:"Scegli un tipo di link",link_add_not_found:"Nessun link trovato 🤷",link_add_not_found_p2:"Se abbiamo dimenticato la tua social piattaforma preferita, inviaci un'e-mail (<b>support@tapni.com</b>) o inviaci un messaggio DM sui social media (<b>@tapni</b>)",link_add_not_found_p3:"Faremo del nostro meglio per supportare tutte le piattaforme 😉",featured:"In primo piano",social_media:"I Social media",contact:"Contatto",finance:"La Finanza",portfolio:"Il portfolio",music:"Musica",business:"Business",fun:"Divertimento",ecommerce:"E-commerce",more:"mostra di più",email_username:"Email/Nome utente",username:"Username",password:"Password",sign_in:"Registrazione",sign_in_with:"Registrati con",sign_in_with_new:"Accedi con un nuovo account",sign_up_with:"Iscriviti con",select_sign_method:"Seleziona un metodo di accesso",verify_account:"Verifica Account",terms_by_signing_in:"Effettuando l'accesso, accetti il ​​nostro",terms_by_registering:"Registrandoti accetti il ​​nostro",terms_by_submitting:"Inviando questo modulo, accettate i nostri Termini di servizio.",terms_of_service:"Termini di servizio",and:"e",refresh:"Ricaricare",privacy_policy:"Politica sulla riservatezza",create_account:"Crea un profilo",reset_password:"Resetta la password",reset_password_p1:"Se non sei riuscito a reimpostare la password,<br> non esitare a contattarci all'indirizzo",reset_password_p2:"Se non sei riuscito a resettare la password,<br> non esitare a contattarci all'indirizzo",create_new_account:"Crea un nuovo account",maintenance_p1:"Torniamo presto",maintenance_p2:"Nel frattempo esplora le collezioni Tapni",maintenance_p3:"Tapni è inattivo per una manutenzione programmata. <br> e dovrebbe tornare online tra pochi minuti.",offline_p1:"Nessuna connessione internet",offline_p2:"Controlla la tua connessione, quindi aggiorna la pagina",offline_p3_1:"Mentre si è offline,",offline_p3_2:"è possibile condividere la scheda di contatto utilizzando questo codice QR",products_p1:"Stupisci tutti quelli che incontri 😎 <br> Ottieni il tuo ora 👇",cards:"Biglietti da visita",stickers:"Adesivi",keychains:"Portachiavi",explore_collection:"Esplora collezione",register:"Registrati",register_success:"Hai quasi finito. Per favore, conferma la tua email.",register_success_modal:"Accesso riuscito con un altro account.",check_your_inbox:"Controlla il tuo DM",tapni_tags:"I Tapni tag",tapni_tags_p1:"Configura i tag collegati al tuo profilo",tapni_tags_p2:"Non ci sono tag collegati al tuo profilo. <br> Collegane uno ora!",verify_account_p1:"Se non hai ricevuto un codice, controlla la tua cartella spam di <br> o contattaci all'indirizzo",verify_account_success:"Account verificato con successo. Si prega di cambiare password ora.",verify_account_success2:"Account verificato con successo. Ora sei tutto pronto!",welcome:"Benvenuto",welcome_p1:"al futuro dei biglietti da visita",how_it_works:"Come funziona",already_registered:"Già registrato",error:"Errore",success:"Successo",copied:"Copiato negli appunti",connect_validate:"Deve essere fornito uno dei due campi di contatto",connect_validate_name:"Per favore inserisci il tuo nome",connect_validate_email:"Inserire un'e-mail valida",link_validate:"Dati di collegamento non validi.",link_text_contact_card:"Scheda di contatto",link_text_custom_link:"Link personalizzato",link_text_menu:"Menù",link_text_phone:"Telefono",save_to_apple_wallet:"Aggiungi a Apple Wallet",save_to_google_wallet:"Aggiungi a Google Wallet",card:"Carta",sticker:"Adesivo",keychain:"Portachiavi",band:"Banda",case:"Caso",standee:"Standee",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Rilevata versione app obsoleta",update_p2:"Aggiorna",update_p3:"Aggiorna l'app alla versione più recente",company_domain:"Il dominio della tua azienda",search_company_domain:"Cerca il dominio della tua azienda",enter_company_email:"Inserisci l'indirizzo e-mail aziendale",company_not_found:"Azienda non trovata",ik_company_domain:"Conosco il dominio dell'azienda",idk_company_domain:"Non conosco il dominio dell'azienda",continue:"Continua",forbidden_rule:"Questa opzione è disabilitata, contatta l'amministratore della tua azienda.",companyName:"Nome della società",createMarkerPlaceholder:"Creare o selezionare un marcatore",clickToCreateMarker:"Fare clic qui per creare il marcatore",pleaseInviteUser:"Invitate l'utente a iscriversi a Tapni per avere i dati sincronizzati con voi.",connectionSynchronized:"I dati di connessione vengono sincronizzati automaticamente.",viewProfile:"Visualizza il profilo",createConnectionHeader:"Aggiungi nuova connessione",createConnectionButton:"Aggiungi",createConnectionSuccess:"La connessione è stata creata.",allow_company_management:"Consentire la gestione dell'azienda",company_join_request:"chiede di gestire il suo profilo e di associarlo al suo account Enterprise.",account_ownership_transfer:"Se accettate la richiesta, la proprietà del vostro account sarà trasferita all'azienda. L'azienda potrà modificare il vostro profilo, modificare e aggiungere link, vedere le vostre connessioni, modificare la vostra password, cancellare il vostro account e altro ancora. Prima di accettare la richiesta, verificare con l'azienda.",request_expired:"La richiesta è scaduta, chiedete alla vostra azienda di inviare una nuova richiesta.",request_expiration_desc:"Per maggiore sicurezza, la richiesta funzionerà solo per 14 giorni dall'invio.",invitation_link_not_valid:"Il link di invito non è valido!",invitation_link_not_valid2:"Fare nuovamente clic sul pulsante dell'e-mail di invito o copiare il link dell'invito.",accept_request:"Accettare la richiesta",close:"Chiudere",request_accepted:"La richiesta è stata accettata con successo",companyEmail:"Email aziendale",companyPhone:"Telefono dell'azienda",addBusinessInformations:"Aggiungi informazioni sulle attività commerciali",resetFilter:"Reset",selectMarkers:"Selezionare i marcatori",filterConnectionsHeader:"Connessioni del filtro",selectConnectionType:"Selezionare il tipo di connessione",all:"Tutti",direct:"Diretto",form:"Forma",manually:"Manualmente",scan:"Scansione",sortOptions:"Opzioni di ordinamento",date:"Data di creazione",fullName:"Nome completo",descending:"In discesa",ascending:"Ascendente",selectDateRange:"Selezionare l'intervallo di date",follow_up_reminder:"Promemoria di follow-up",now:"Ora",one_hour:"1 Ora",one_day:"1 Gioro",three_days:"3 Giorni",one_week:"1 Settimana",two_weeks:"2 Settimane",one_month:"1 Mese",custom:"Scegliere l'ora",set_reminder:"Imposta promemoria",select_date_time:"Selezionare data e ora",enter_reminder_text:"Inserire il testo del promemoria",reminder_created:"Promemoria creato con successo",connectionNameLabel:"Inserire il nome della connessione",connectionEmailLabel:"Inserire l'indirizzo e-mail privato",privatePhoneLabel:"Inserire il numero di telefono privato",companyNameLabel:"Inserire il nome della società",businessEmail:"Indirizzo e-mail aziendale",businessEmailLabel:"Inserire l'indirizzo e-mail aziendale",businessPhone:"Numero di telefono aziendale",businessPhoneLabel:"Inserire il numero di telefono dell'azienda",noteLabel:"Inserire la nota",markersLabel:"Aggiungere i marcatori di connessione",showScan:"Mostra scansione",hideScan:"Nascondi scansione",create_connection:"Aggiungi connessioni",create_manually:"Aggiungi manualmente",create_using_scanner:"Aggiungi utilizzando lo scanner per schede",companyTitle:"Titolo dell'azienda",companyTitleLabel:"Inserire il titolo dell'azienda",allConnectionsLabel:"Tutti i tipi di connessione",directConnectionsLabel:"Connessione diretta in-app con gli utenti Tapni",formConnectionsLabel:"Connessioni compilate sul modulo di connessione",manualConnectionsLabel:"Connessioni create manualmente",scanConnectionsLabel:"Lo scanner per schede ha creato connessioni",analyticsHeader:"Analisi",analyticsProfileViews:"Visualizzazioni del profilo",analyticsLinkClicks:"Link cliccati",analyticsClickTroughRatio:"Rapporto click-trough",analyticsTotalConnections:"Connessioni totali",analyticsTopLinks:"I link più popolari",analyticsProfileVisits:"Visite al profilo",analyticsLinkVisits:"Visite di collegamento",analyticsNewConnections:"Nuove connessioni",analyticsTopCountries:"Paesi Top",analyticsTopReferers:"I migliori referenti",please_wait:"Attendere prego...",click_here:"clicca qui",if_redirect_not_directly:"Se il reindirizzamento non avviene automaticamente",you_will_be_redirected:"Sarai reindirizzato all'applicazione Tapni.",use_tapni_on_the_web:"Usa Tapni sul Web",login_by_scanning_qr_code:"Accedi scansionando il QR Code",open_tapni_app_on_your_phone:"1. Apri l'App Tapni sul tuo telefono",go_to_settings_link_a_device:"2. Vai su Impostazioni > Collega un dispositivo",point_your_phone_at_this_qr_code:"3. Punta il tuo telefono su questo QR Code",choose_other_login_methods:"Scegli altri metodi di accesso",no_sso_logins:"La tua azienda non utilizza l'accesso SSO, contatta il tuo amministratore",mfa:"Autenticazione Multi-Fattore",otp_title:"Inserisci il codice MFA per continuare",otp_code:"Codice MFA",otp_subtitle:"Inserisci il codice dall’app di autenticazione",otp_p1:"Se hai problemi con MFA, <br> contattaci a",change_language:"Cambia lingua",welcome_account:"Benvenuto nel Centro Account",security:"Sicurezza",security_p:"Gestisci opzioni di autenticazione & stato account",general:"Generale",general_p:"Gestisci dati personali & altre preferenze",billing:"Fatturazione",billing_p:"Gestisci abbonamenti & profili di pagamento",apps:"App",apps_p:"Visualizza le tue app attive & scopri altro",apps_my:"Le mie App",mfa_auth:"Autenticazione a 2 Fattori",mfa_auth_enabled:"Il tuo account è protetto da MFA.",mfa_auth_p:"Proteggi l’account da accessi non autorizzati attivando MFA",mfa_auth_qr:"Scansiona il QR o inserisci la chiave segreta nell’app di autenticazione.",change_password:"Cambia Password",active_account:"Account attivo",active_account_p:"Se disattivato, l’account resta inattivo finché non lo riattivi.",delete_account:"Elimina Account",delete_account_p:"Elimina Account",permanent_delete:"Eliminazione definitiva",permanent_delete_p:"Se elimini l’account, tutti i dati saranno persi. Azione irreversibile. In dubbio, disattivalo temporaneamente.",personal_details:"Dettagli Personali",app_language_p:"Traduci l’app nella tua lingua preferita",app_region:"Regione",app_region_p:"Seleziona la tua regione per fatturazione e supporto personalizzati"}},Co={state:{english:"Engleski",spanish:"Španski",german:"Nemački",korean:"Korejski",italian:"Italijanski",french:"Francuski",serbian:"Srpski",turkish:"Turski",chinese:"Kineski",japanese:"Japanski",portuguese:"Portugalski",app_language:"Jezik",profile_preview:"Pogledaj profil",edit_profile:"Uredi profil",login:"Prijavi se",referral_reach:"Napiši nam nešto više o sebi",referral_apply_placeholder:"Na koji način planiraš da promovišeš Tapni?",referral_apply_note:`Dodaj što više linkova na svom profilu, <br> tako da možemo bolje da te upoznamo.
71
71
  <br><br>Budi ekskluzivan.
72
72
  <br>Ne prihvataju se svi.😉`,referral_apply_now:"Prijavi se odmah",referral_apply_thanks:"Hvala na prijavljivanju. Uskoro ćemo pregledati tvoju prijavu!",connect:"Poveži se",with:"sa",exchange_contact:"Razmeni kontakt",add_details:"Dodaj još",show_details:"Prikaži više",download_contact:"Preuzmi kontakt",stay_in_touch:"Ostanite u kontaktu sa",no_thanks:"Ne, hvala",connect_join:"Pridruži se",connect_with:"Poveži se sa",connect_required_fields:"Potrebno je popuniti jedno od dva polja",name:"Ime",first_name:"Ime",last_name:"Prezime",email:"Email adresa",phone:"Broj telefona",phone_p:"Telefon",company:"Kompanija",address:"Adresa",website:"Website",open:"Otvori",delete:"Izbriši",confirm:"Potvrdi",cancel:"Otkaži",save:"Sačuvaj",code:"Kod",note:"Beleška",note_p:"Dodaj belešku",contact_card_icon:"Podesi tekst ispod ikone za kontakt karticu",contact_card_name:"Unesite ime i prezime",contact_card_name_p:"Ime kontakt kartice",contact_card_email:"Unesite privatnu email adresu",contact_card_email_p:"Email adresa kontakt kartice",contact_card_phone:"Unesite privatni broj telefona",contact_card_phone_p:"Telefon kontakt kartice",contact_card_website:"Unesite privatnu internet stranicu",contact_card_website_p:"Internet stranica kontakt kartice",contact_card_company_name:"Unesite ime kompanije",contact_card_company_name_p:"Ime kompanije",contact_card_job_title:"Pozicija",contact_card_job_title_p:"Unesite naziv pozicije",contact_card_company_website:"Website kompanije",contact_card_company_website_p:"Unesite website kompanije",contact_card_bio:"Unesite opis kontakt kartice",contact_card_bio_p:"Opis kontakt kartice",contact_card_home_address:"Unesite adresu kontakt kartice",contact_card_home_address_p:"Adresa kontakt kartice",contact_card_work_address:"Unesite poslovnu adresu",contact_card_work_address_p:"Poslovna adresa",contact_card_social:"Unesi linkove društvenih mreža na svoj Tapni profil <br>kako bi ih dodao/la u kontakt karticu",contact_card_social_p:"Unesite linkove društvenih mreža u kontakt karticu",link_text_p:"Tekst Linka",link_icon:"Podesite tekst ispod ikonice za link",direct_pick:"Izaberite direktan link",direct_p:"Kada dodirnete nečiji telefon, <br> otvoriće se ovaj link umesto Vašeg profila.",password_change:"Promeni lozinku",password_repeat:"Ponovo unesi lozinku",password_reset_t:"Resetovanje lozinke",password_current:"Unesi svoju trenutnu lozinku",password_current_p:"Trenutna lozinka",password_new:"Unesi svoju novu lozinku",password_new_p:"Nova lozinka",password_new_repeat:"Unesi svoju novu lozinku ponovo",password_new_repeat_p:"Ponovo unesi svoju novu lozinku",password_update:"Ažuriranje lozinke",password_reset:"Ako ne možete da se setite svoje lozinke,<br> resetujte je ",delete_account_permanently:"Da li ste sigurni da želite da trajno obrišete Vaš Tapni nalog?",by_clicking_here:"klikom ovde",password_8_chars:"Lozinka mora imati najmanje 8 karaktera",password_least_one_lowercase:"Lozinka mora sadržati najmanje jedno malo slovo",password_least_one_uppercase:"Lozinka mora sadržati najmanje jedno veliko slovo",password_least_one_number:"Lozinka mora sadržati najmanje jedan broj",password_not_match:"Lozinke se ne podudaraju",password_change_success:"Uspešno promenjena lozinka",or:"ili",profile:"Profil",account_settings:"Podešavanje naloga",profile_public:"Javni profil",profile_public_p:"Tvoj profil je javno dostupan preko linka:",profile_active:"Aktivni profil",profile_active_p:"Ukoliko deaktiviraš svoj profil, niko neće imati pristup njemu i svi povezani linkovi neće više raditi",profile_change_password:"Promeni lozinku",profile_change_username:"Promeni korisničko ime",profile_change_language:"Promeni jezik",profile_delete_account:"Obriši nalog",profile_confirm_delete_account:"Obriši nalog",profile_cancel_delete_account:"Odustani",profile_delete_account_success:"Nalog je uspešno obrisan",profile_remove_p:"Ako želiš da ukloniš svoj nalog,<br> piši nam na:",profile_contact_support:"Ukoliko imaš problema sa podešavanjima<br> piši nam na: ",profile_email_subject:"Tapni App Podrška",profile_remove_subject:"Zahtev za uklanjanje naloga",profile_update_success:"Profil je uspešno ažuriran",profile_complete:"Popuni svoj profil",completed:"Dovršeno",uncompleted:"Nedovršeno",contact_us:"Kontaktiraj nas",contact_us_verify:"kako biste verifikovali Vašu email adresu.",verify_email:"Verifikuj email adresu",verify_email_subject:"Verifikacija Email adrese",verify_email_inbox:"Proveri svoj inbox za:",add_first_link:"Dodaj svoj prvi link",add_first_link_p:"Tapni ovde kako bi dodao/la svoje društvene mreže <br> ili kontakt informacije na svoj Tapni profil.",add_picture:"Dodaj svoju sliku profila",add_picture_p:"Tapni ovde kako bi dodao svoju sliku profila",add_tag:"Aktiviraj svoj Tapni",add_tag_p:"Tapni ovde kako bi aktivirao svoju Tapni NFC oznaku",completing_profile:"Imaš problema prilikom popunjavanja svog profila?<br> Slobodno nam piši na:",completing_profile_subject:"Popuni profil",share_profile:"Podeli profil",share_profile_p:"Ostali mogu da skeniraju ovaj QR kod <br> kako bi videli tvoj profil",share_profile_change_username:"Ukoliko želiš da izmeniš svoj link, <br> <u>klikni ovde</u> za promenu korisničkog imena.",share_profile_qr:"Podeli profil",share_contactcard_qr:"Kontakt kartica",scan_qr_code:"Skeniraj QR kod",enter_activation_code:"Unesite aktivacioni kod",activate_tag:"Aktiviraj tag",order_tapni:"Ukoliko još uvek nisi naručio/la Tapni proizvod,<br> možeš izabrati svoj ovde ",activation_success:"Tag je uspesno povezan. <br> Sad je sve spremno!🥳",activation_success_message:"Tag je uspesno povezan. Sad je sve spremno!🥳",activation_error:"Ovaj tag nije važeći. <br> Pokušaj ponovo.",activation_error_message:"Ovo nije važeći tag. <br> Pokušaj ponovo.",activation_progress:"Registracija u procesu...",activation_invalid_code:"Aktivacioni kod nije važeći.",activation_qr_failed:"Skeniranje QR koda nije uspelo.",activation_qr_area:"Postaviti QR kod unutar oblasti za skeniranje",activation_code:"Aktivacioni kod",invalid_code:"Nevažeći kod",total_taps:"Ukupan broj deljenja",active:"Aktivan",tag_active_p:"Ako je deaktiviran, Vaš profil neće biti otvoren <br> kada tapnete nečiji telefon.",tag_delete_confirm:"Sačuvajte aktivacioni kod pre nego što prekinete vezu sa tagom,<br> inače se ne može ponovo aktivirati",upload_profile_picture:"Dodaj sliku profila",upload_cover_picture:"Dodaj sliku pozadine",upload_link_picture:"Dodaj sliku linka",select_from_device:"Izaberi sa uređaja",select_from_mobile:"Izaberite sliku sa svog mobilnog uređaja",select_from_computer:"ili je prevucite i pustite ukoliko koristite računar",crop:"Iseci",crop_upload:"Iseci i dodaj",crop_image:"Isecite sliku",drag_and_drop:"Prevuci i pusti datoteke ovde",upload_success:"Datoteke uspešno otpremljene",browser_not_supported:"Tvoj pretraživač ne podržava",change_username:"Promeni korisničko ime",change_username_success:"Uspešno promenjeno korisničko ime",update_username:"Ažuriraj korisničko ime",new_username:"Unesi svoje novo korisničko ime",username_check:"Molimo Vas da navedete odgovarajuće korisničko ime",username_is_free:"Korisničko ime je dostupno",anonymous:"Anonimno",connected:"Povezano",exchanged:"Razmenjeno",accept:"Prihvati",view:"Pogledaj",join:"Pridruži se",add_account:"Dodaj nalog",complete_profile:"Dovršite profil",my_profile:"Moj profil",my_qr:"Moj QR kod",my_connections:"Moja povezivanja",contacts:"Kontakti",my_tags:"Moji tagovi",buy_tapni:"Kupi Tapni",referral_program:"Ambasador program",device_compatibility:"Kompatibilnost uređaja",help:"Pomoć",settings:"Podešavanja",logout:"Odjavi se",version:"Verzija",configure:"Konfiguriši",unexpected_err:"Došlo je do neočekivane greške, kontaktirajte nas na support@tapni.com",success_login:"Uspešno ste prijavljeni sa drugim nalogom.",password_reset_success:"Kod za resetovanje lozinke je poslat na vašu email adresu.",password_reseted_success:"Uspešno promenjena lozinka. Možete se prijaviti sada.",success_remove_link:"Link je uspešno uklonjen",success_remove_picture:"Slika je uspešno uklonjena",profile_active_message:"Tvoj profil je sada aktivan",profile_inactive_message:"Tvoj profil je sada onemogućen",profile_public_message:"Tvoj profil je sada javan",profile_private_message:"Tvoj profil je sada privatan",redirect_enabled:"Link za automatsko preusmeravanje je omogućen",redirect_disabled:"Link za automatsko preusmeravanje je onemogućen",tag_active:"Tag je sada aktivan. Preostaje samo da tapneš!",tag_inactive:"Tag je sada onemogućen. Tvoj posetioci će biti preusmereni na tapni.co",tag_removed:"Tag je uklonjen. Pišite nam na support@tapni.com",connection_accepted:"Zahtev za povezivanje je prihvaćen",connection_added:"Nova konekcija uspešno dodata",connection_exist:"Konekcija već postoji",not_found:"Nije pronađen",not_found_p:"Izgleda da ste se izgubili",go_back:"Vratite se nazad",referral_p1:"Zaradite 20% provizije<br> na prodaju ostvarenu preko affiliate marketinga. 💰",referral_p2:"Dajte drugima 20% popusta<br> pomoću Vašeg promo koda🎁",referral_p3:"To je vin-vin situacija 🤝",referral_p4:"Ako želite da promenite svoje preporuke,<br> ili ako imate pitanja,<br> pišite nam na",referral_p5:"Počnite da zarađujete sada!",referral_p66:"Podelite svoj personalni affiliate link za prodaju i zaradite!",referral_p6:`Ako ste bloger, influencer ili entuzijasta društvenih medija, savršeno se uklapate za naš program ambasadora.
73
73
  Promovišite naš brend i zaradite 20% provizije na kupovine obavljene sa vašim kodom ili ličnim linkom za prodaju Tapni proizvoda.`,referral_p7:`Nakon registracije za program Tapni Ambasador, dobićete svoj link za prodaju, preporuke i kod za popust.
74
74
  Podelite ga na svojoj veb stranici i društvenim medijima i zaradite dok mi pružamo odlično iskustvo povezivanja.`,referral_p8:"Napomena o isplati",referral_p9:"Paypal (širom sveta) i bankovni transferi (EU) <br> Minimalni iznos isplate je 25€.",referral_p10:"Zahtevaj isplatu",referral_p11:"Isplata zahtevana",your_connections:"Tvoja povezivanja",connections_p1:"Stupite u kontakt sa ljudima koje ste upoznali",connections_p2:"<br><br>Bez konekcija za sada <br> Započni deljenje!💥",connections_p3:"Nije pronađena nijedna konekcija",connection_success:"Uspešno je poslat zahtev za povezivanje",exchange_success:"Uspešno razmenjeni kontakti.",create_free_account:"Napravite besplatan Tapni nalog i održavajte svoje kontakte ažurnim!",connection_edit:"Izmeni konekciju",connection_edit_success:"Uspešno izmenjena konekcija",connection_delete_success:"Uspešno obrisana konekcija",search:"Pretraga",devices_p1:"Lista kompatibilnih uređaja",devices_p2:"Tapni koristi tehnologiju koja je kompatibilna sa većinom novijih iPhone i Android uređaja.",devices_p3:"Neki Android telefoni možda imaju isključen NFC. Ako vaš Tapni ne radi na Android uređaju, potražite NFC u podešavanjima i proverite da li je uključen.",devices_p4:"sa iOS 14 NFC vidžet se nalazi u kontrolnom centru",download_p1:"Preuzmi Tapni aplikaciju",download_p2:"Dostupno za Apple i Android uređaje",user_not_found:`Korisnik nije pronađen
75
- `,user_not_found_p:"Nismo mogli da pronađemo korisnika u našoj bazi podataka🤷",taps:"deljenja",private_profile:"Privatan profil",private_profile_p:"je privatan profil. <br> Profil je vidljiv samo pomoću Tapni tagova",profile_bio_p:"Napišite nešto o sebi ili vašem brendu",add_to_contacts:"Dodaj u kontakte",drag_and_drop_links:"Prevucite i nalepite linkove po željenom redosledu",no_links:"Nema linkova na vašem profilu.",add_link:"Dodaj link",direct_link_p1:"Posetioci će automatski biti preusmereni na:",profile_not_active:"Vaš profil trenutno nije aktivan <br> i samo ga Vi možete videti kada ste prijavljeni.",profile_not_public:"Vaš profil trenutno nije javan <br> i mogu ga videti samo oni koji prislone uređaj uz Vaš Tapni.",activate_profile_now:"Aktivirajte svoj profil sada",publish_profile_now:"Učinite svoj profil sada javnim",link_add_p1:"Izaberite tip linka",link_add_not_found:"Nisu pronađeni linkovi 🤷",link_add_not_found_p2:"Ako smo propustili vašu omiljenu platformu, javite nam se i pošaljite nam email (<b>support@tapni.com</b>) ili nam pošaljite DM na društvenim mrežama (<b>@tapni</b>)",link_add_not_found_p3:"Daćemo sve od sebe da podržimo sve platforme 😉",featured:"Istaknuto",social_media:"Društvene mreže",contact:"Kontakt",finance:"Finansije",portfolio:"Portfolio",music:"Muzika",business:"Biznis",fun:"Zabava",ecommerce:"Ecommerce",more:"Još",email_username:"Email / Korisničko ime",username:"Korisničko ime",password:"Lozinka",sign_in:"Prijavi se",sign_in_with:"Prijavi se preko:",sign_in_with_new:"Prijavite se sa novim nalogom",sign_up_with:"Registruj se preko:",select_sign_method:"Izaberite metod prijave",verify_account:"Verifikuj nalog",terms_by_signing_in:"Prijavljivanjem prihvatate naše",terms_by_registering:"Registracijom prihvatate naše",terms_by_submitting:"Podnošenjem ovog obrasca slažete se sa našim uslovima koriscenja",terms_of_service:"Uslovima korišćenja",and:"i",refresh:"Osveži",privacy_policy:"Pravilima o privatnosti",create_account:"Kreiraj nalog",reset_password:"Resetuj šifru",reset_password_p1:"Ako niste uspeli da resetujete lozinku,<br> slobodno nas kontaktirajte na",reset_password_p2:"Ako niste uspeli da resetujete lozinku,<br> slobodno nas kontaktirajte na",create_new_account:"Napravite novi nalog",maintenance_p1:"Vraćamo se uskoro",maintenance_p2:"u međuvremenu pregledajte Tapni proizvode",maintenance_p3:"Tapni ne radi zbog planiranog održavanja <br> i očekuje se da će ponovo biti na mreži za nekoliko minuta.",offline_p1:"Nema internet veze",offline_p2:"Proverite svoju internet konekciju, a zatim osvežite stranicu",offline_p3_1:"Dok ste van mreže,",offline_p3_2:"možete deliti svoju kontakt karticu pomoću ovog QR koda",products_p1:"Impresionirajte sve koje sretnete 😎 <br> Nabavite svoj sada 👇",cards:"Kartice",stickers:"Stikeri",keychains:"Privesci za ključeve",explore_collection:"Istražite kolekciju",register:"Registruj se",register_success:"Skoro smo gotovi. Molimo Vas da potvrdite email.",register_success_modal:"Uspešno ste prijavljeni sa drugim nalogom.",check_your_inbox:"Proverite svoj inbox",tapni_tags:"Tapni tags",tapni_tags_p1:"Konfigurišite tagove povezane sa Vašim profilom",tapni_tags_p2:"Nema tagova povezanih sa vašim profilom. <br> Povežite se sada!",verify_account_p1:"Ako niste primili kod, proverite svoj <br> spam folder ili nas kontaktirajte na",verify_account_success:"Nalog je uspešno verifikovan. Molimo vas da promenite svoju lozinku.",verify_account_success2:"Nalog je uspešno verifikovan. Sve je spremno! 🥳",welcome:"Dobrodošli",welcome_p1:"u budućnost vizitkarti",how_it_works:"Kako funkcioniše?",already_registered:"Već registrovano",error:"Greška",success:"Uspešno",copied:"Kopirano u međuspremniku",connect_validate:"Potrebno je popuniti jedno od dva kontakt polja",connect_validate_name:"Molimo Vas da unesete svoje ime",connect_validate_email:"Molimo Vas, unesite validnu e-mail adresu",link_validate:"Nevažeći podaci link",link_text_contact_card:"Kontakt kartica",link_text_custom_link:"Custom link",link_text_menu:"Meni",link_text_phone:"Telefon",save_to_apple_wallet:"Dodaj u Apple Wallet",save_to_google_wallet:"Dodaj u Google Wallet",card:"Kartica",sticker:"Stiker",keychain:"Privezak",band:"Narukvica",case:"Maska",standee:"Stend",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Otkrivena je zastarela verzija aplikacije",update_p2:"Ažuriraj",update_p3:"Ažuriraj aplikaciju na najnoviju verziju",company_domain:"Domain tvoje kompanije",search_company_domain:"Pretražite domain vaše kompanije",enter_company_email:"Unesite poslovnu e-mail adresu",company_not_found:"Kompanija nije pronađena",ik_company_domain:"Znam domain kompanije",idk_company_domain:"Ne znam domain kompanije",continue:"Nastavi",forbidden_rule:"Ova opcija je onemogućena, obratite se administratoru kompanije.",companyName:"Ime Kompanije",createMarkerPlaceholder:"Kreirajte ili izaberite marker",clickToCreateMarker:"Kliknite ovde da biste kreirali marker",pleaseInviteUser:"Molimo pozovite korisnika da se pridruzi Tapniju da bi imali sinhronizovane podatke.",connectionSynchronized:"Podaci o vezi se automatski sinhronizuju.",viewProfile:"Pogledaj Profil",createConnectionHeader:"Dodaj novu konekciju",createConnectionButton:"Dodaj",createConnectionSuccess:"Konekcija je dodata.",allow_company_management:"Dozvolite kompanijsko upravljanje",company_join_request:"zahteva da upravlja Vašim profilom i da ga poveže sa svojim Enterprise nalogom.",account_ownership_transfer:"Ukoliko prihvatite zahtev, vlasništvo nad Vašim nalogom biće preneto na kompanijU. Kompanija će moći da menja Vaš profil, izmeni, doda i vidi veze, izmeni Vašu lozinku, izbriše vaš nalog i još mnogo toga. Obavezno proverite sa Vašom kompanijom pre nego što prihvatite zahtev.",request_expired:"Zahtev je istekao, zatražite od kompanije da pošalje novi zahtev.",request_expiration_desc:"Radi dodatne sigurnosti, zahtev biće validan samo 14 dana nakon što je poslat.",invitation_link_not_valid:"Link za poziv nije validan!",invitation_link_not_valid2:"Ponovo kliknite na dugme u e-mailu sa pozivnicom ili kopirajte link.",accept_request:"Prihvati zahtev",close:"Zatvori",request_accepted:"Zahtev je uspešno prihvaćen",companyEmail:"Poslovna email adresa",companyPhone:"Poslovni broj telefona",addBusinessInformations:"Dodajte poslovne informacije",resetFilter:"Resetuj",selectMarkers:"Izaberi marker",filterConnectionsHeader:"Filtriraj Konekcije",selectConnectionType:"Izaberi tip konekcije",all:"Sve",direct:"Direktne",form:"Forme",manually:"Manuelne",scan:"Skeniranja",sortOptions:"Opcije Sortiranja",date:"Datum Kreiranja",fullName:"Ime i Prezime",descending:"Silazno",ascending:"Uzlazno",selectDateRange:"Izaberi opseg datuma",follow_up_reminder:"Follow-up podsetnik",now:"Sad",one_hour:"1 Sat",one_day:"1 Dan",three_days:"3 Dana",one_week:"1 Nedelja",two_weeks:"2 Nedelje",one_month:"1 Mesec",custom:"Izaberite vreme",set_reminder:"Podesi podsetnik",select_date_time:"Izaberite datum i vreme",enter_reminder_text:"Unesite tekst podsetnika",reminder_created:"Podsetnik je uspešno kreiran",connectionNameLabel:"Unesite ime konekcije",connectionEmailLabel:"Unesite privatnu email adresu",privatePhoneLabel:"Unesi privatni broj telefona",companyNameLabel:"Unesi ime kompanije",businessEmail:"Poslovna email adresa",businessEmailLabel:"Unesite poslovnu email adresu",businessPhone:"Poslovni broj telefona",businessPhoneLabel:"Unesite poslovni broj telefona",noteLabel:"Dodajte belešku",markersLabel:"Dodajte markere konekcije",showScan:"Prikazi sliku",hideScan:"Sakrij sliku",create_connection:"Dodaj konekcije",create_manually:"Dodaj ručno",create_using_scanner:"Dodajte pomoću skenera kartica",companyTitle:"Titula",companyTitleLabel:"Dodajte tituli",allConnectionsLabel:"Sve konekcije",directConnectionsLabel:"Direktne konekcije sa korisnicima Tapni aplikacije",formConnectionsLabel:"Konekcije ostvarne putem forme za povezivanje",manualConnectionsLabel:"Manualno dodate konekcije",scanConnectionsLabel:"Konekcije kreirane skenerom za kartice",analyticsHeader:"Analitika",analyticsProfileViews:"Broj Pregleda profila",analyticsLinkClicks:"Broj Klikova na Link",analyticsClickTroughRatio:"Stopa učestalosti klika",analyticsTotalConnections:"Ukupno Konekcija",analyticsTopLinks:"Najpopularniji Linkovi",analyticsProfileVisits:"Broj Poseta Profila",analyticsLinkVisits:"Broj Posecenih Linkova",analyticsNewConnections:"Nove Konekcije",analyticsTopCountries:"Top Zemlje",analyticsTopReferers:"Top Referali",please_wait:"Molimo sačekajte...",click_here:"kliknite ovde",if_redirect_not_directly:"Ako preusmeravanje nije izvršeno automatski",you_will_be_redirected:"Bićete preusmereni na Tapni aplikaciju.",use_tapni_on_the_web:"Koristite Tapni na webu",login_by_scanning_qr_code:"Prijavite se skeniranjem QR koda",open_tapni_app_on_your_phone:"1. Otvorite Tapni aplikaciju na telefonu",go_to_settings_link_a_device:"2. Idite na podešavanja > Poveži uređaj",point_your_phone_at_this_qr_code:"3. Usmerite telefon na ovaj QR kod",choose_other_login_methods:"Izaberite druge metode prijavljivanja",no_sso_logins:"Vaša kompanija ne koristi SSO prijavu, kontaktirajte svog administratora",mfa:"Višefaktorska autentikacija",otp_title:"Unesite MFA kod za nastavak",otp_code:"MFA kod",otp_subtitle:"Unesite kod iz aplikacije za autentikaciju",otp_p1:"Ako imate problem sa MFA, <br> kontaktirajte nas na",change_language:"Promeni jezik",welcome_account:"Dobrodošli u Centar naloga",security:"Bezbednost",security_p:"Upravljajte opcijama autentikacije & statusom naloga",general:"Opšte",general_p:"Upravljajte ličnim podacima & drugim preferencama",billing:"Fakturisanje",billing_p:"Upravljajte pretplatama & načinima plaćanja",apps:"Aplikacije",apps_p:"Pregled aktivnih aplikacija i još opcija",apps_my:"Moje aplikacije",mfa_auth:"Dvofaktorska autentikacija",mfa_auth_enabled:"Vaš nalog je zaštićen MFA-om.",mfa_auth_p:"Zaštitite nalog od neovlašćenog pristupa uključivanjem MFA",mfa_auth_qr:"Skenirajte QR kod ili unesite tajni ključ u aplikaciju za autentikaciju.",change_password:"Promeni lozinku",active_account:"Aktivan nalog",active_account_p:"Ako je isključeno, nalog je privremeno deaktiviran dok ga ne uključite.",delete_account:"Obriši nalog",delete_account_p:"Obriši nalog",permanent_delete:"Trajno brisanje",permanent_delete_p:"Brisanjem naloga svi podaci se trajno gube. Ova akcija je neopoziva. Ako niste sigurni, privremeno deaktivirajte nalog.",personal_details:"Lični detalji",app_language_p:"Prevedite aplikaciju na željeni jezik",app_region:"Region",app_region_p:"Izaberite region radi prilagođenog plaćanja i podrške"}},yr={state:{english:"İngilizce",spanish:"İspanyolca",german:"Alman",korean:"Korece",italian:"İtalyanca",french:"Fransızca",serbian:"Sırpça",turkish:"Çince",chinese:"Kineski",japanese:"Japonca",portuguese:"Portekizce",app_language:"Dil seçin",profile_preview:"Profil Önizlemesi",edit_profile:"Profili Düzenle",login:"Giriş yap",referral_reach:"Bize kendiniz ve erişiminiz hakkında daha fazla bilgi verin.",referral_apply_placeholder:"Tapni'yi nasıl tanıtmayı planlıyorsunuz?",referral_apply_note:`Hesabınıza mümkün olduğunca çok bağlantı ekleyin, <br>
75
+ `,user_not_found_p:"Nismo mogli da pronađemo korisnika u našoj bazi podataka🤷",taps:"deljenja",private_profile:"Privatan profil",private_profile_p:"je privatan profil. <br> Profil je vidljiv samo pomoću Tapni tagova",profile_bio_p:"Napišite nešto o sebi ili vašem brendu",add_to_contacts:"Dodaj u kontakte",drag_and_drop_links:"Prevucite i nalepite linkove po željenom redosledu",no_links:"Nema linkova na vašem profilu.",add_link:"Dodaj link",direct_link_p1:"Posetioci će automatski biti preusmereni na:",profile_not_active:"Vaš profil trenutno nije aktivan <br> i samo ga Vi možete videti kada ste prijavljeni.",profile_not_public:"Vaš profil trenutno nije javan <br> i mogu ga videti samo oni koji prislone uređaj uz Vaš Tapni.",activate_profile_now:"Aktivirajte svoj profil sada",publish_profile_now:"Učinite svoj profil sada javnim",link_add_p1:"Izaberite tip linka",link_add_not_found:"Nisu pronađeni linkovi 🤷",link_add_not_found_p2:"Ako smo propustili vašu omiljenu platformu, javite nam se i pošaljite nam email (<b>support@tapni.com</b>) ili nam pošaljite DM na društvenim mrežama (<b>@tapni</b>)",link_add_not_found_p3:"Daćemo sve od sebe da podržimo sve platforme 😉",featured:"Istaknuto",social_media:"Društvene mreže",contact:"Kontakt",finance:"Finansije",portfolio:"Portfolio",music:"Muzika",business:"Biznis",fun:"Zabava",ecommerce:"Ecommerce",more:"Još",email_username:"Email / Korisničko ime",username:"Korisničko ime",password:"Lozinka",sign_in:"Prijavi se",sign_in_with:"Prijavi se preko:",sign_in_with_new:"Prijavite se sa novim nalogom",sign_up_with:"Registruj se preko:",select_sign_method:"Izaberite metod prijave",verify_account:"Verifikuj nalog",terms_by_signing_in:"Prijavljivanjem prihvatate naše",terms_by_registering:"Registracijom prihvatate naše",terms_by_submitting:"Podnošenjem ovog obrasca slažete se sa našim uslovima koriscenja",terms_of_service:"Uslovima korišćenja",and:"i",refresh:"Osveži",privacy_policy:"Pravilima o privatnosti",create_account:"Kreiraj nalog",reset_password:"Resetuj šifru",reset_password_p1:"Ako niste uspeli da resetujete lozinku,<br> slobodno nas kontaktirajte na",reset_password_p2:"Ako niste uspeli da resetujete lozinku,<br> slobodno nas kontaktirajte na",create_new_account:"Napravite novi nalog",maintenance_p1:"Vraćamo se uskoro",maintenance_p2:"u međuvremenu pregledajte Tapni proizvode",maintenance_p3:"Tapni ne radi zbog planiranog održavanja <br> i očekuje se da će ponovo biti na mreži za nekoliko minuta.",offline_p1:"Nema internet veze",offline_p2:"Proverite svoju internet konekciju, a zatim osvežite stranicu",offline_p3_1:"Dok ste van mreže,",offline_p3_2:"možete deliti svoju kontakt karticu pomoću ovog QR koda",products_p1:"Impresionirajte sve koje sretnete 😎 <br> Nabavite svoj sada 👇",cards:"Kartice",stickers:"Stikeri",keychains:"Privesci za ključeve",explore_collection:"Istražite kolekciju",register:"Registruj se",register_success:"Skoro smo gotovi. Molimo Vas da potvrdite email.",register_success_modal:"Uspešno ste prijavljeni sa drugim nalogom.",check_your_inbox:"Proverite svoj inbox",tapni_tags:"Tapni tags",tapni_tags_p1:"Konfigurišite tagove povezane sa Vašim profilom",tapni_tags_p2:"Nema tagova povezanih sa vašim profilom. <br> Povežite se sada!",verify_account_p1:"Ako niste primili kod, proverite svoj <br> spam folder ili nas kontaktirajte na",verify_account_success:"Nalog je uspešno verifikovan. Molimo vas da promenite svoju lozinku.",verify_account_success2:"Nalog je uspešno verifikovan. Sve je spremno! 🥳",welcome:"Dobrodošli",welcome_p1:"u budućnost vizitkarti",how_it_works:"Kako funkcioniše?",already_registered:"Već registrovano",error:"Greška",success:"Uspešno",copied:"Kopirano u međuspremniku",connect_validate:"Potrebno je popuniti jedno od dva kontakt polja",connect_validate_name:"Molimo Vas da unesete svoje ime",connect_validate_email:"Molimo Vas, unesite validnu e-mail adresu",link_validate:"Nevažeći podaci link",link_text_contact_card:"Kontakt kartica",link_text_custom_link:"Custom link",link_text_menu:"Meni",link_text_phone:"Telefon",save_to_apple_wallet:"Dodaj u Apple Wallet",save_to_google_wallet:"Dodaj u Google Wallet",card:"Kartica",sticker:"Stiker",keychain:"Privezak",band:"Narukvica",case:"Maska",standee:"Stend",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Otkrivena je zastarela verzija aplikacije",update_p2:"Ažuriraj",update_p3:"Ažuriraj aplikaciju na najnoviju verziju",company_domain:"Domain tvoje kompanije",search_company_domain:"Pretražite domain vaše kompanije",enter_company_email:"Unesite poslovnu e-mail adresu",company_not_found:"Kompanija nije pronađena",ik_company_domain:"Znam domain kompanije",idk_company_domain:"Ne znam domain kompanije",continue:"Nastavi",forbidden_rule:"Ova opcija je onemogućena, obratite se administratoru kompanije.",companyName:"Ime Kompanije",createMarkerPlaceholder:"Kreirajte ili izaberite marker",clickToCreateMarker:"Kliknite ovde da biste kreirali marker",pleaseInviteUser:"Molimo pozovite korisnika da se pridruzi Tapniju da bi imali sinhronizovane podatke.",connectionSynchronized:"Podaci o vezi se automatski sinhronizuju.",viewProfile:"Pogledaj Profil",createConnectionHeader:"Dodaj novu konekciju",createConnectionButton:"Dodaj",createConnectionSuccess:"Konekcija je dodata.",allow_company_management:"Dozvolite kompanijsko upravljanje",company_join_request:"zahteva da upravlja Vašim profilom i da ga poveže sa svojim Enterprise nalogom.",account_ownership_transfer:"Ukoliko prihvatite zahtev, vlasništvo nad Vašim nalogom biće preneto na kompanijU. Kompanija će moći da menja Vaš profil, izmeni, doda i vidi veze, izmeni Vašu lozinku, izbriše vaš nalog i još mnogo toga. Obavezno proverite sa Vašom kompanijom pre nego što prihvatite zahtev.",request_expired:"Zahtev je istekao, zatražite od kompanije da pošalje novi zahtev.",request_expiration_desc:"Radi dodatne sigurnosti, zahtev biće validan samo 14 dana nakon što je poslat.",invitation_link_not_valid:"Link za poziv nije validan!",invitation_link_not_valid2:"Ponovo kliknite na dugme u e-mailu sa pozivnicom ili kopirajte link.",accept_request:"Prihvati zahtev",close:"Zatvori",request_accepted:"Zahtev je uspešno prihvaćen",companyEmail:"Poslovna email adresa",companyPhone:"Poslovni broj telefona",addBusinessInformations:"Dodajte poslovne informacije",resetFilter:"Resetuj",selectMarkers:"Izaberi marker",filterConnectionsHeader:"Filtriraj Konekcije",selectConnectionType:"Izaberi tip konekcije",all:"Sve",direct:"Direktne",form:"Forme",manually:"Manuelne",scan:"Skeniranja",sortOptions:"Opcije Sortiranja",date:"Datum Kreiranja",fullName:"Ime i Prezime",descending:"Silazno",ascending:"Uzlazno",selectDateRange:"Izaberi opseg datuma",follow_up_reminder:"Follow-up podsetnik",now:"Sad",one_hour:"1 Sat",one_day:"1 Dan",three_days:"3 Dana",one_week:"1 Nedelja",two_weeks:"2 Nedelje",one_month:"1 Mesec",custom:"Izaberite vreme",set_reminder:"Podesi podsetnik",select_date_time:"Izaberite datum i vreme",enter_reminder_text:"Unesite tekst podsetnika",reminder_created:"Podsetnik je uspešno kreiran",connectionNameLabel:"Unesite ime konekcije",connectionEmailLabel:"Unesite privatnu email adresu",privatePhoneLabel:"Unesi privatni broj telefona",companyNameLabel:"Unesi ime kompanije",businessEmail:"Poslovna email adresa",businessEmailLabel:"Unesite poslovnu email adresu",businessPhone:"Poslovni broj telefona",businessPhoneLabel:"Unesite poslovni broj telefona",noteLabel:"Dodajte belešku",markersLabel:"Dodajte markere konekcije",showScan:"Prikazi sliku",hideScan:"Sakrij sliku",create_connection:"Dodaj konekcije",create_manually:"Dodaj ručno",create_using_scanner:"Dodajte pomoću skenera kartica",companyTitle:"Titula",companyTitleLabel:"Dodajte tituli",allConnectionsLabel:"Sve konekcije",directConnectionsLabel:"Direktne konekcije sa korisnicima Tapni aplikacije",formConnectionsLabel:"Konekcije ostvarne putem forme za povezivanje",manualConnectionsLabel:"Manualno dodate konekcije",scanConnectionsLabel:"Konekcije kreirane skenerom za kartice",analyticsHeader:"Analitika",analyticsProfileViews:"Broj Pregleda profila",analyticsLinkClicks:"Broj Klikova na Link",analyticsClickTroughRatio:"Stopa učestalosti klika",analyticsTotalConnections:"Ukupno Konekcija",analyticsTopLinks:"Najpopularniji Linkovi",analyticsProfileVisits:"Broj Poseta Profila",analyticsLinkVisits:"Broj Posecenih Linkova",analyticsNewConnections:"Nove Konekcije",analyticsTopCountries:"Top Zemlje",analyticsTopReferers:"Top Referali",please_wait:"Molimo sačekajte...",click_here:"kliknite ovde",if_redirect_not_directly:"Ako preusmeravanje nije izvršeno automatski",you_will_be_redirected:"Bićete preusmereni na Tapni aplikaciju.",use_tapni_on_the_web:"Koristite Tapni na webu",login_by_scanning_qr_code:"Prijavite se skeniranjem QR koda",open_tapni_app_on_your_phone:"1. Otvorite Tapni aplikaciju na telefonu",go_to_settings_link_a_device:"2. Idite na podešavanja > Poveži uređaj",point_your_phone_at_this_qr_code:"3. Usmerite telefon na ovaj QR kod",choose_other_login_methods:"Izaberite druge metode prijavljivanja",no_sso_logins:"Vaša kompanija ne koristi SSO prijavu, kontaktirajte svog administratora",mfa:"Višefaktorska autentikacija",otp_title:"Unesite MFA kod za nastavak",otp_code:"MFA kod",otp_subtitle:"Unesite kod iz aplikacije za autentikaciju",otp_p1:"Ako imate problem sa MFA, <br> kontaktirajte nas na",change_language:"Promeni jezik",welcome_account:"Dobrodošli u Centar naloga",security:"Bezbednost",security_p:"Upravljajte opcijama autentikacije & statusom naloga",general:"Opšte",general_p:"Upravljajte ličnim podacima & drugim preferencama",billing:"Fakturisanje",billing_p:"Upravljajte pretplatama & načinima plaćanja",apps:"Aplikacije",apps_p:"Pregled aktivnih aplikacija i još opcija",apps_my:"Moje aplikacije",mfa_auth:"Dvofaktorska autentikacija",mfa_auth_enabled:"Vaš nalog je zaštićen MFA-om.",mfa_auth_p:"Zaštitite nalog od neovlašćenog pristupa uključivanjem MFA",mfa_auth_qr:"Skenirajte QR kod ili unesite tajni ključ u aplikaciju za autentikaciju.",change_password:"Promeni lozinku",active_account:"Aktivan nalog",active_account_p:"Ako je isključeno, nalog je privremeno deaktiviran dok ga ne uključite.",delete_account:"Obriši nalog",delete_account_p:"Obriši nalog",permanent_delete:"Trajno brisanje",permanent_delete_p:"Brisanjem naloga svi podaci se trajno gube. Ova akcija je neopoziva. Ako niste sigurni, privremeno deaktivirajte nalog.",personal_details:"Lični detalji",app_language_p:"Prevedite aplikaciju na željeni jezik",app_region:"Region",app_region_p:"Izaberite region radi prilagođenog plaćanja i podrške"}},To={state:{english:"İngilizce",spanish:"İspanyolca",german:"Alman",korean:"Korece",italian:"İtalyanca",french:"Fransızca",serbian:"Sırpça",turkish:"Çince",chinese:"Kineski",japanese:"Japonca",portuguese:"Portekizce",app_language:"Dil seçin",profile_preview:"Profil Önizlemesi",edit_profile:"Profili Düzenle",login:"Giriş yap",referral_reach:"Bize kendiniz ve erişiminiz hakkında daha fazla bilgi verin.",referral_apply_placeholder:"Tapni'yi nasıl tanıtmayı planlıyorsunuz?",referral_apply_note:`Hesabınıza mümkün olduğunca çok bağlantı ekleyin, <br>
76
76
  böylece kim olduğunuzu öğrenebiliriz. <br><br>Özel ol.
77
77
  <br>Herkes kabul edilmez.😉`,referral_apply_now:"Şimdi başvur",referral_apply_thanks:"Başvurduğunuz için teşekkürler. Başvurunuzu yakında gözden geçireceğiz!",connect:"Bağlan",with:"ile",exchange_contact:"Değişim İletişim",add_details:"Daha fazlasını ekle",show_details:"Daha fazlasını göster",download_contact:"İletişim Kartını İndir",stay_in_touch:"İle iletişim kurun",no_thanks:"Hayır, teşekkürler",connect_join:"Tapni'ye katıl",connect_with:"ile bağlanın",connect_required_fields:"İki iletişim alanından biri sağlanmalıdır",name:"İsim",first_name:"İlk isim",last_name:"Soyadı",email:"E posta",phone:"Telefon numarası",phone_p:"Telefon",company:"Şirket",address:"Adres",website:"Web sitesi",open:"Aç",delete:"sil",confirm:"Onayla",cancel:"Iptal",save:"Kaydet",code:"Kod",note:"Not",note_p:"Bir not ekleyin",contact_card_icon:"Kişi kartı simgesinin altındaki metni ayarlayın",contact_card_name:"Kişi kartı için isim girin",contact_card_name_p:"Kişi kartı adı",contact_card_email:"Kişi kartı için e-posta girin",contact_card_email_p:"Kişi kartı e-postası",contact_card_phone:"Kişi kartı için telefonu girin",contact_card_phone_p:"Kişi kartı telefonu",contact_card_website:"Kişi kartı için web sitesini girin",contact_card_website_p:"Kişi kartı web sitesi",contact_card_company_name:"Kişi kartı için şirket adını girin",contact_card_company_name_p:"İletişim kartı şirket adı",contact_card_job_title:"İş unvanı",contact_card_job_title_p:"İş unvanını girin",contact_card_company_website:"Şirket web sitesi",contact_card_company_website_p:"Şirket web sitesini girin",contact_card_bio:"Kişi kartı için biyografiyi girin",contact_card_bio_p:"Kişi kartı için biyografiyi girin",contact_card_home_address:"Kişi kartı için ev adresini girin",contact_card_home_address_p:"Kişi kartı ev adresi",contact_card_work_address:"Kişi kartı için iş adresini girin",contact_card_work_address_p:"Kişi kartı iş adresi",contact_card_social:`Kişi kartına eklemek için <br> Tapni profilinize sosyal medya bağlantılarını girin
78
78
  `,contact_card_social_p:"Kişi kartı için sosyal medya bağlantılarını girin",link_text_p:"Bağlantı metni",link_icon:"Bağlantı simgesinin altındaki metni ayarla",direct_pick:"Doğrudan bir bağlantı seçin",direct_p:`Birinin telefonuna dokunduğunuzda, <br> profiliniz yerine bu bağlantı açılacaktır.
@@ -85,12 +85,12 @@ Bize yazmaktan çekinmeyin`,completing_profile_subject:"Profilinizi Tamamlayın"
85
85
  bize yazın`,referral_p5:"Şimdi para kazanmaya başlayın!",referral_p66:"Ortaklık linkinizi paylaşın ve para kazanın!",referral_p6:`Bir blog yazarı, influencer veya sosyal medya meraklısıysanız, İş birliği Programımız için mükemmel bir seçimsiniz.
86
86
  Markamızı tanıtın ve indirim kodunuz veya referans linkinizle yaptılan her alışverişte %20 komisyon kazanın.`,referral_p7:`Tapni İşbirliği Programına kaydolduktan sonra kişisel bir referans linki ve indirim kodu alacaksınız.
87
87
  Bunları web sitenizde ve sosyal medyada paylaşın ve biz insanlara harika bir deneyim sunarken siz de para kazanın.`,referral_p8:"Ödeme Notu",referral_p9:"Banka transfer ödemeleri için <br> minimum tutar 25€.",referral_p10:"Ödeme İsteği",referral_p11:"Ödeme isteği gerçekleştirildi",your_connections:"Bağlantılarınız",connections_p1:"Tanıştığınız insanlarla iletişimde kalın",connections_p2:"<br><br>Şu ana kadar bağlantı yok<br> Hadi başlayalım💥",connections_p3:"Bağlantı bulunamadı.",connection_success:"Bağlantı isteği başarıyla gönderildi",exchange_success:"Kişiler başarıyla değiştirildi.",create_free_account:"Ücretsiz bir Tapni hesabı oluşturun ve kişilerinizi güncel tutun!",connection_edit:"Bağlantıyı düzenle",connection_edit_success:"Bağlantı başarıyla güncellendi",connection_delete_success:"Bağlantı başarıyla silindi",search:"Arama",devices_p1:"Uyumlu cihazlar listesi",devices_p2:"Tapni, çoğu iPhone ve Android cihazıyla uyumlu teknolojiyi kullanır.",devices_p3:"Bazı Android telefonlarda NFC kapalı olabilir. Tapni'niz bir Android cihazda çalışmıyorsa, ayarlarda NFC'yi arayın ve açık olduğundan emin olun.",devices_p4:"kontrol merkezinde iOS 14 NFC widget'i ile",download_p1:"Tapni Uygulamasını İndirin",download_p2:"Apple ve Android cihazlar için kullanılabilir",user_not_found:"Kullanıcı bulunamadı",user_not_found_p:"Kullanıcıyı veritabanımızda bulamadık🤷",taps:"etkileşimler",private_profile:"Gizli profil",private_profile_p:"Gizli bir profildir.<br> Profil yalnızca Tapni Tag'leri kullanılarak görünür ",profile_bio_p:"Kendiniz veya markanız hakkında bir şeyler yazın",add_to_contacts:"Kişilere ekle",drag_and_drop_links:"Linkleri istediğiniz sırayla Sürükleyin ve Bırakın",no_links:"Profilinizde link yok.",add_link:"Link ekle",direct_link_p1:"Ziyaretçiler otomatik olarak şu adrese yönlendirilecektir:",profile_not_active:"Profiliniz şuanda aktif değil. <br> ve giriş yaptığınızda sadece siz görebilirsiniz.",profile_not_public:"Profiliniz şu anda herkese açık değil <br> yalnızca Tapni ile iletişim kurduklarınız görebilir.",activate_profile_now:"Profilinizi şimdi etkinleştirin",publish_profile_now:"Profilinizi şimdi herkese açık yapın",link_add_p1:"Bir link tipi seçin",link_add_not_found:"Link bulunamadı🤷",link_add_not_found_p2:"Eğer favori platformunuzu kaçırdıysak lütfen bize e mail gönderin (<b>support@tapni.com</b>) ya da sosyal medya üzerinden meesaj atabilirsiniz (<b>@tapni</b>)",link_add_not_found_p3:"Tüm platformları desteklemek için elimizden geleni yapıyoruz 😉",featured:"Önce çıkanlar",social_media:"Sosyal medya",contact:"İletişim",finance:"Finans",portfolio:"Portfolyo",music:"Müzik",business:"İş",fun:"Eğlence",ecommerce:"E Ticaret",more:"Daha fazla",email_username:"E posta / Kullanıcı adı",username:"Kullanıcı adı",password:"Parola",sign_in:"Oturum aç",sign_in_with:"ile oturum aç",sign_in_with_new:"Yeni hesapla oturum açın",sign_up_with:"ile kaydol",select_sign_method:"Bir Oturum Açma yöntemi seçin",verify_account:"Hesabı Doğrula",terms_by_signing_in:"Giriş yaparak, kabul etmiş olursunuz",terms_by_registering:"Kayıt olarak, kabul etmiş olursunuz",terms_by_submitting:"Bu formu göndererek Hizmet Şartlarımızı kabul etmiş olursunuz",terms_of_service:"Kullanım Şartları",and:"ve",refresh:"yenile",privacy_policy:"Gizlilik Politikası",create_account:"Hesap oluştur",reset_password:"Parolayı yenile",reset_password_p1:"Şifrenizi yenileyemediyseniz <br> bizimle iletişime geçmekten çekinmeyin",reset_password_p2:"Şifrenizi yenileyemediyseniz <br> bizimle iletişime geçmekten çekinmeyin",create_new_account:"Yeni hesap oluştur",maintenance_p1:"yakında dönüş yapacağız",maintenance_p2:" Tapni koleksiyonlarını keşfedin",maintenance_p3:"Tapni planlı bir bakım için kapalı <br> ve birkaç dakika içinde tekrar çevrimiçi olması bekleniyor.",offline_p1:"İnternet bağlantısı yok",offline_p2:"Bağlantınızı kontrol edin, ardından sayfayı yenileyin",offline_p3_1:"Çevrimdışıyken,",offline_p3_2:"bu QR kodunu kullanarak kişi kartınızı paylaşabilirsiniz",products_p1:`
88
- Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`,cards:"Kartlar",stickers:"Stickerlar",keychains:"Anahtarlıklar",explore_collection:"Koleksiyonu keşfedin",register:"Kayıt ol",register_success:"Neredeyse tamamladınız. Lütfen e-postanızı onaylayın.",register_success_modal:"Başka bir hesapla başarıyla giriş yapıldı.",check_your_inbox:"Check your inbox",tapni_tags:"Tapni tagler",tapni_tags_p1:"Profilinize bağlı Tag'leri yapılandırın",tapni_tags_p2:"Profilinize bağlı Tag yok. <br> Şimdi bir tane bağlayın!",verify_account_p1:"Bir kod almadıysanız, spam kutunuzu <br> kontrol edin veya bize ulaşın",verify_account_success:"Hesap başarıyla doğrulandı. Lütfen şimdi şifrenizi değiştirin.",verify_account_success2:"Hesap başarıyla doğrulandı. Hazırsınız!🥳",welcome:"Hoşgeldiniz",welcome_p1:"kartvizitlerin geleceğine",how_it_works:"Nasıl çalışır?",already_registered:"Zaten kayıtlı",error:"Hata",success:"Başarı",copied:"Panoya kopyalandı",connect_validate:"İki iletişim alanından biri sağlanmalıdır",connect_validate_name:"Lütfen adınızı giriniz",connect_validate_email:"Lütfen geçerli bir e-posta girin",link_validate:"Geçersiz bağlantı verileri.",link_text_contact_card:"Kişi kartı",link_text_custom_link:"Özel bağlantı",link_text_menu:"Menü",link_text_phone:"Telefon",save_to_apple_wallet:"Apple Cüzdan'a Ekle",save_to_google_wallet:"Google cuzdanına ekle",card:"Kart",sticker:"Sticker",keychain:"Anahtarlık",band:"Band",case:"Vaka",standee:"Standee",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Güncel olmayan uygulama sürümü algılandı",update_p2:"Güncelle",update_p3:"Lütfen uygulamayı en yeni sürüme güncelleyin",company_domain:"Şirketinizin alan adı",search_company_domain:"Şirket alan adınızı arayın",enter_company_email:"Şirket e-postasını girin",company_not_found:"Şirket bulunamadı",ik_company_domain:"Şirket alan adını biliyorum",idk_company_domain:"Şirketin alan adını bilmiyorum",continue:"Devam et",forbidden_rule:"Bu seçenek devre dışıdır, şirket yöneticinize başvurun.",companyName:"Şirket Adı",createMarkerPlaceholder:"Bir işaretleyici oluşturma veya seçme",clickToCreateMarker:"İşaretleyici oluşturmak için buraya tıklayın",pleaseInviteUser:"Lütfen kullanıcıyı sizinle senkronize edilmiş verilere sahip olması için Tapni'ye katılmaya davet edin.",connectionSynchronized:"Bağlantı verileri otomatik olarak senkronize edilir.",viewProfile:"Profili Görüntüle",createConnectionHeader:"Yeni Bağlantı Ekle",createConnectionButton:"Ekle",createConnectionSuccess:"Bağlantı oluşturuldu.",allow_company_management:"Şirket yönetimine izin verin",company_join_request:"profilinizi yönetmek ve Enterprise hesabıyla ilişkilendirmek istiyor.",account_ownership_transfer:"Talebi kabul etmeniz halinde hesabınızın mülkiyeti şirkete devredilecektir. Şirket profilinizi değiştirebilir, bağlantıları düzenleyebilir ve ekleyebilir, bağlantılarınızı görebilir, şifrenizi değiştirebilir, hesabınızı silebilir ve daha fazlasını yapabilir. Talebi kabul etmeden önce şirketinizle görüştüğünüzden emin olun.",request_expired:"Talebin süresi doldu, şirketinizden yeni bir talep göndermesini isteyin.",request_expiration_desc:"Daha fazla güvenlik için, talep gönderildikten sonra yalnızca 14 gün boyunca çalışacaktır.",invitation_link_not_valid:"Davetiye bağlantısı geçerli değil!",invitation_link_not_valid2:"Davet e-postasındaki düğmeye tekrar tıklayın veya davet bağlantısını kopyalayın.",accept_request:"İsteği kabul et",close:"Kapat",request_accepted:"İstek başarıyla kabul edildi",companyEmail:"Şirket e-postası",companyPhone:"Şirket telefon numarası",addBusinessInformations:"İş bilgilerini ekle",resetFilter:"Sıfırla",selectMarkers:"İşaretleyicileri Seçin",filterConnectionsHeader:"Filtre Bağlantıları",selectConnectionType:"Bağlantı Türünü Seçin",all:"Tümü",direct:"Doğrudan",form:"Form",manually:"Manuel olarak",scan:"Tarama",sortOptions:"Sıralama Seçenekleri",date:"Oluşturulma Tarihi",fullName:"Ad Soyad",descending:"Alçalma",ascending:"Yükselen",selectDateRange:"Tarih Aralığı Seçin",follow_up_reminder:"Takip hatırlatması",now:"Şimdi",one_hour:"1 saat",one_day:"1 Gün",three_days:"3 Gün",one_week:"1 Hafta",two_weeks:"2 Hafta",one_month:"1 Ay",custom:"Zaman seçin",set_reminder:"Hatırlatma ayarla",select_date_time:"Tarih ve saati seçin",enter_reminder_text:"Hatırlatma metnini girin",reminder_created:"Hatırlatma başarıyla oluşturuldu",connectionNameLabel:"Bağlantı adını girin",connectionEmailLabel:"Özel e-posta adresinizi girin",privatePhoneLabel:"Özel telefon numarasını girin",companyNameLabel:"Şirket adını girin",businessEmail:"İş e-posta adresi",businessEmailLabel:"İş e-posta adresini girin",businessPhone:"İş telefon numarası",businessPhoneLabel:"İş telefon numarasını girin",noteLabel:"Not girin",markersLabel:"Bağlantı işaretleri ekleyin",showScan:"Taramayı Göster",hideScan:"Taramayı Gizle",create_connection:"Bağlantı Ekleme",create_manually:"Manuel Olarak Ekle",create_using_scanner:"Kart Tarayıcı Kullanarak Ekleme",companyTitle:"Şirket Unvanı",companyTitleLabel:"Şirket Unvanını Girin",allConnectionsLabel:"Tüm bağlantı türleri",directConnectionsLabel:"Tapni Kullanıcıları ile doğrudan uygulama içi bağlantı",formConnectionsLabel:"Bağlantı formunda doldurulan bağlantılar",manualConnectionsLabel:"Manuel olarak oluşturulan bağlantılar",scanConnectionsLabel:"Kart tarayıcı bağlantıları oluşturdu",analyticsHeader:"Analitik",analyticsProfileViews:"Profil Görünümleri",analyticsLinkClicks:"Bağlantı Tıklamaları",analyticsClickTroughRatio:"Tıklama Çukuru Oranı",analyticsTotalConnections:"Toplam Bağlantılar",analyticsTopLinks:"En Popüler Bağlantılar",analyticsProfileVisits:"Profil Ziyaretleri",analyticsLinkVisits:"Bağlantı Ziyaretleri",analyticsNewConnections:"Yeni Bağlantılar",analyticsTopCountries:"En İyi Ülkeler",analyticsTopReferers:"En İyi Referanslar",please_wait:"Lütfen bekleyin...",click_here:"buraya tıklayın",if_redirect_not_directly:"Yönlendirme otomatik olarak gerçekleştirilmezse",you_will_be_redirected:"Tapni uygulamasına yönlendirileceksiniz.",use_tapni_on_the_web:"Web'de Tapni Kullanın",login_by_scanning_qr_code:"QR Kod Tarayarak Giriş Yapın",open_tapni_app_on_your_phone:"1. Telefonunuzda Tapni Uygulamasını Açın",go_to_settings_link_a_device:"2. Ayarlar'a gidin > Bir cihazı bağlayın",point_your_phone_at_this_qr_code:"3. Telefonunuzu bu QR Koduna yönlendirin",choose_other_login_methods:"Diğer giriş yöntemlerini seçin",no_sso_logins:"Şirketiniz SSO girişini kullanmıyor, lütfen yöneticinizle iletişime geçin",mfa:"Çok Faktörlü Kimlik Doğrulama",otp_title:"Devam etmek için MFA kodunu girin",otp_code:"MFA Kodu",otp_subtitle:"Kimlik doğrulama uygulamasındaki kodu girin",otp_p1:"MFA ile ilgili sorun yaşıyorsanız, <br> bize ulaşın:",change_language:"Dili Değiştir",welcome_account:"Hesap Merkezine Hoş Geldiniz",security:"Güvenlik",security_p:"Kimlik doğrulama seçeneklerinizi & hesap durumunuzu yönetin",general:"Genel",general_p:"Kişisel bilgilerinizi & diğer tercihlerinizi yönetin",billing:"Faturalama",billing_p:"Aboneliklerinizi & ödeme profillerinizi yönetin",apps:"Uygulamalar",apps_p:"Aktif uygulamalarınızı görüntüleyin & diğerlerini keşfedin",apps_my:"Uygulamalarım",mfa_auth:"2 Faktörlü Doğrulama",mfa_auth_enabled:"Hesabınız MFA ile korunuyor.",mfa_auth_p:"Hesabınızı çok faktörlü doğrulama (MFA) ile koruyun",mfa_auth_qr:"Yukarıdaki QR kodunu tarayın ya da gizli anahtarı doğrulama uygulamanıza girin.",change_password:"Şifreyi Değiştir",active_account:"Aktif Hesap",active_account_p:"Kapatılırsa hesabınız yeniden açılana dek geçici olarak devre dışı kalır.",delete_account:"Hesabı Sil",delete_account_p:"Hesabı Sil",permanent_delete:"Kalıcı Silme",permanent_delete_p:"Hesabınızı silerseniz tüm verileriniz kalıcı olarak silinir. Geri alınamaz. Emin değilseniz hesabı geçici olarak devre dışı bırakın.",personal_details:"Kişisel Bilgiler",app_language_p:"Uygulamayı tercih ettiğiniz dile çevirin",app_region:"Bölge",app_region_p:"Kişiselleştirilmiş faturalama ve destek için bölgenizi seçin"}},qi={state:{english:"英文",spanish:"西班牙文",german:"德文",korean:"韩文",italian:"意大利文",french:"法文",serbian:"塞尔维亚文",turkish:"土耳其文",chinese:"簡体中文",japanese:"日语",portuguese:"葡萄牙语",app_language:"语言",profile_preview:"个人资料预览",edit_profile:"编辑个人资料",login:"登录",referral_reach:"向我们提供有关您和您的推广范围的更多信息。",referral_apply_placeholder:"您打算如何推广Tapni?",referral_apply_note:`在您的帐户中添加尽可能多的链接,<br>
88
+ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`,cards:"Kartlar",stickers:"Stickerlar",keychains:"Anahtarlıklar",explore_collection:"Koleksiyonu keşfedin",register:"Kayıt ol",register_success:"Neredeyse tamamladınız. Lütfen e-postanızı onaylayın.",register_success_modal:"Başka bir hesapla başarıyla giriş yapıldı.",check_your_inbox:"Check your inbox",tapni_tags:"Tapni tagler",tapni_tags_p1:"Profilinize bağlı Tag'leri yapılandırın",tapni_tags_p2:"Profilinize bağlı Tag yok. <br> Şimdi bir tane bağlayın!",verify_account_p1:"Bir kod almadıysanız, spam kutunuzu <br> kontrol edin veya bize ulaşın",verify_account_success:"Hesap başarıyla doğrulandı. Lütfen şimdi şifrenizi değiştirin.",verify_account_success2:"Hesap başarıyla doğrulandı. Hazırsınız!🥳",welcome:"Hoşgeldiniz",welcome_p1:"kartvizitlerin geleceğine",how_it_works:"Nasıl çalışır?",already_registered:"Zaten kayıtlı",error:"Hata",success:"Başarı",copied:"Panoya kopyalandı",connect_validate:"İki iletişim alanından biri sağlanmalıdır",connect_validate_name:"Lütfen adınızı giriniz",connect_validate_email:"Lütfen geçerli bir e-posta girin",link_validate:"Geçersiz bağlantı verileri.",link_text_contact_card:"Kişi kartı",link_text_custom_link:"Özel bağlantı",link_text_menu:"Menü",link_text_phone:"Telefon",save_to_apple_wallet:"Apple Cüzdan'a Ekle",save_to_google_wallet:"Google cuzdanına ekle",card:"Kart",sticker:"Sticker",keychain:"Anahtarlık",band:"Band",case:"Vaka",standee:"Standee",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Güncel olmayan uygulama sürümü algılandı",update_p2:"Güncelle",update_p3:"Lütfen uygulamayı en yeni sürüme güncelleyin",company_domain:"Şirketinizin alan adı",search_company_domain:"Şirket alan adınızı arayın",enter_company_email:"Şirket e-postasını girin",company_not_found:"Şirket bulunamadı",ik_company_domain:"Şirket alan adını biliyorum",idk_company_domain:"Şirketin alan adını bilmiyorum",continue:"Devam et",forbidden_rule:"Bu seçenek devre dışıdır, şirket yöneticinize başvurun.",companyName:"Şirket Adı",createMarkerPlaceholder:"Bir işaretleyici oluşturma veya seçme",clickToCreateMarker:"İşaretleyici oluşturmak için buraya tıklayın",pleaseInviteUser:"Lütfen kullanıcıyı sizinle senkronize edilmiş verilere sahip olması için Tapni'ye katılmaya davet edin.",connectionSynchronized:"Bağlantı verileri otomatik olarak senkronize edilir.",viewProfile:"Profili Görüntüle",createConnectionHeader:"Yeni Bağlantı Ekle",createConnectionButton:"Ekle",createConnectionSuccess:"Bağlantı oluşturuldu.",allow_company_management:"Şirket yönetimine izin verin",company_join_request:"profilinizi yönetmek ve Enterprise hesabıyla ilişkilendirmek istiyor.",account_ownership_transfer:"Talebi kabul etmeniz halinde hesabınızın mülkiyeti şirkete devredilecektir. Şirket profilinizi değiştirebilir, bağlantıları düzenleyebilir ve ekleyebilir, bağlantılarınızı görebilir, şifrenizi değiştirebilir, hesabınızı silebilir ve daha fazlasını yapabilir. Talebi kabul etmeden önce şirketinizle görüştüğünüzden emin olun.",request_expired:"Talebin süresi doldu, şirketinizden yeni bir talep göndermesini isteyin.",request_expiration_desc:"Daha fazla güvenlik için, talep gönderildikten sonra yalnızca 14 gün boyunca çalışacaktır.",invitation_link_not_valid:"Davetiye bağlantısı geçerli değil!",invitation_link_not_valid2:"Davet e-postasındaki düğmeye tekrar tıklayın veya davet bağlantısını kopyalayın.",accept_request:"İsteği kabul et",close:"Kapat",request_accepted:"İstek başarıyla kabul edildi",companyEmail:"Şirket e-postası",companyPhone:"Şirket telefon numarası",addBusinessInformations:"İş bilgilerini ekle",resetFilter:"Sıfırla",selectMarkers:"İşaretleyicileri Seçin",filterConnectionsHeader:"Filtre Bağlantıları",selectConnectionType:"Bağlantı Türünü Seçin",all:"Tümü",direct:"Doğrudan",form:"Form",manually:"Manuel olarak",scan:"Tarama",sortOptions:"Sıralama Seçenekleri",date:"Oluşturulma Tarihi",fullName:"Ad Soyad",descending:"Alçalma",ascending:"Yükselen",selectDateRange:"Tarih Aralığı Seçin",follow_up_reminder:"Takip hatırlatması",now:"Şimdi",one_hour:"1 saat",one_day:"1 Gün",three_days:"3 Gün",one_week:"1 Hafta",two_weeks:"2 Hafta",one_month:"1 Ay",custom:"Zaman seçin",set_reminder:"Hatırlatma ayarla",select_date_time:"Tarih ve saati seçin",enter_reminder_text:"Hatırlatma metnini girin",reminder_created:"Hatırlatma başarıyla oluşturuldu",connectionNameLabel:"Bağlantı adını girin",connectionEmailLabel:"Özel e-posta adresinizi girin",privatePhoneLabel:"Özel telefon numarasını girin",companyNameLabel:"Şirket adını girin",businessEmail:"İş e-posta adresi",businessEmailLabel:"İş e-posta adresini girin",businessPhone:"İş telefon numarası",businessPhoneLabel:"İş telefon numarasını girin",noteLabel:"Not girin",markersLabel:"Bağlantı işaretleri ekleyin",showScan:"Taramayı Göster",hideScan:"Taramayı Gizle",create_connection:"Bağlantı Ekleme",create_manually:"Manuel Olarak Ekle",create_using_scanner:"Kart Tarayıcı Kullanarak Ekleme",companyTitle:"Şirket Unvanı",companyTitleLabel:"Şirket Unvanını Girin",allConnectionsLabel:"Tüm bağlantı türleri",directConnectionsLabel:"Tapni Kullanıcıları ile doğrudan uygulama içi bağlantı",formConnectionsLabel:"Bağlantı formunda doldurulan bağlantılar",manualConnectionsLabel:"Manuel olarak oluşturulan bağlantılar",scanConnectionsLabel:"Kart tarayıcı bağlantıları oluşturdu",analyticsHeader:"Analitik",analyticsProfileViews:"Profil Görünümleri",analyticsLinkClicks:"Bağlantı Tıklamaları",analyticsClickTroughRatio:"Tıklama Çukuru Oranı",analyticsTotalConnections:"Toplam Bağlantılar",analyticsTopLinks:"En Popüler Bağlantılar",analyticsProfileVisits:"Profil Ziyaretleri",analyticsLinkVisits:"Bağlantı Ziyaretleri",analyticsNewConnections:"Yeni Bağlantılar",analyticsTopCountries:"En İyi Ülkeler",analyticsTopReferers:"En İyi Referanslar",please_wait:"Lütfen bekleyin...",click_here:"buraya tıklayın",if_redirect_not_directly:"Yönlendirme otomatik olarak gerçekleştirilmezse",you_will_be_redirected:"Tapni uygulamasına yönlendirileceksiniz.",use_tapni_on_the_web:"Web'de Tapni Kullanın",login_by_scanning_qr_code:"QR Kod Tarayarak Giriş Yapın",open_tapni_app_on_your_phone:"1. Telefonunuzda Tapni Uygulamasını Açın",go_to_settings_link_a_device:"2. Ayarlar'a gidin > Bir cihazı bağlayın",point_your_phone_at_this_qr_code:"3. Telefonunuzu bu QR Koduna yönlendirin",choose_other_login_methods:"Diğer giriş yöntemlerini seçin",no_sso_logins:"Şirketiniz SSO girişini kullanmıyor, lütfen yöneticinizle iletişime geçin",mfa:"Çok Faktörlü Kimlik Doğrulama",otp_title:"Devam etmek için MFA kodunu girin",otp_code:"MFA Kodu",otp_subtitle:"Kimlik doğrulama uygulamasındaki kodu girin",otp_p1:"MFA ile ilgili sorun yaşıyorsanız, <br> bize ulaşın:",change_language:"Dili Değiştir",welcome_account:"Hesap Merkezine Hoş Geldiniz",security:"Güvenlik",security_p:"Kimlik doğrulama seçeneklerinizi & hesap durumunuzu yönetin",general:"Genel",general_p:"Kişisel bilgilerinizi & diğer tercihlerinizi yönetin",billing:"Faturalama",billing_p:"Aboneliklerinizi & ödeme profillerinizi yönetin",apps:"Uygulamalar",apps_p:"Aktif uygulamalarınızı görüntüleyin & diğerlerini keşfedin",apps_my:"Uygulamalarım",mfa_auth:"2 Faktörlü Doğrulama",mfa_auth_enabled:"Hesabınız MFA ile korunuyor.",mfa_auth_p:"Hesabınızı çok faktörlü doğrulama (MFA) ile koruyun",mfa_auth_qr:"Yukarıdaki QR kodunu tarayın ya da gizli anahtarı doğrulama uygulamanıza girin.",change_password:"Şifreyi Değiştir",active_account:"Aktif Hesap",active_account_p:"Kapatılırsa hesabınız yeniden açılana dek geçici olarak devre dışı kalır.",delete_account:"Hesabı Sil",delete_account_p:"Hesabı Sil",permanent_delete:"Kalıcı Silme",permanent_delete_p:"Hesabınızı silerseniz tüm verileriniz kalıcı olarak silinir. Geri alınamaz. Emin değilseniz hesabı geçici olarak devre dışı bırakın.",personal_details:"Kişisel Bilgiler",app_language_p:"Uygulamayı tercih ettiğiniz dile çevirin",app_region:"Bölge",app_region_p:"Kişiselleştirilmiş faturalama ve destek için bölgenizi seçin"}},Wi={state:{english:"英文",spanish:"西班牙文",german:"德文",korean:"韩文",italian:"意大利文",french:"法文",serbian:"塞尔维亚文",turkish:"土耳其文",chinese:"簡体中文",japanese:"日语",portuguese:"葡萄牙语",app_language:"语言",profile_preview:"个人资料预览",edit_profile:"编辑个人资料",login:"登录",referral_reach:"向我们提供有关您和您的推广范围的更多信息。",referral_apply_placeholder:"您打算如何推广Tapni?",referral_apply_note:`在您的帐户中添加尽可能多的链接,<br>
89
89
  以便我们了解您是谁。<br><br>独一无二。<br>并非每个人都会被接受。😉`,referral_apply_now:"立即申请",referral_apply_thanks:"感谢申请。我们将尽快审查您的申请!",connect:"连接",with:"与",exchange_contact:"交换联系方式",add_details:"添加更多信息",show_details:"显示更多信息",download_contact:"下载联系方式",stay_in_touch:"与...保持联系",no_thanks:"不,谢谢",connect_join:"加入Tapni",connect_with:"与...交换联系方式",connect_required_fields:"必须提供两个联系方式之一",name:"姓名",first_name:"名字",last_name:"姓氏",email:"电子邮件",phone:"电话号码",phone_p:"电话",company:"公司",address:"地址",website:"网站",open:"打开",delete:"删除",confirm:"确认",cancel:"取消",save:"保存",code:"代码",note:"备注",note_p:"添加备注",contact_card_icon:"在联系人卡片图标下设置文本",contact_card_name:"输入名字和姓氏",contact_card_name_p:"联系人卡片姓名",contact_card_email:"输入个人电子邮件地址",contact_card_email_p:"联系人卡片电子邮件",contact_card_phone:"输入个人电话号码",contact_card_phone_p:"联系人卡片电话",contact_card_website:"输入个人网站",contact_card_website_p:"联系人卡片网站",contact_card_company_name:"输入公司名称",contact_card_company_name_p:"联系人卡片公司名称",contact_card_job_title:"职位",contact_card_job_title_p:"输入职位",contact_card_company_website:"公司网站",contact_card_company_website_p:"输入公司网站",contact_card_bio:"输入联系人卡片的个人简介",contact_card_bio_p:"输入联系人卡片的个人简介",contact_card_home_address:"输入家庭地址",contact_card_home_address_p:"联系人卡片家庭地址",contact_card_work_address:"输入工作地址",contact_card_work_address_p:"联系人卡片工作地址",contact_card_social:"选择与您的Tapni个人资料相关的社交媒体链接<br>以便将其添加到联系人卡片中",contact_card_social_p:"选择联系人卡片的社交媒体链接",link_text_p:"链接文本",link_icon:"在链接图标下设置文本",direct_pick:"选择直接链接",direct_p:"当您点击某人的电话时,将打开此链接,而不是您的完整个人资料。",password_change:"更改密码",password_repeat:"重复密码",password_reset_t:"重置密码",password_current:"输入当前密码",password_current_p:"当前密码",password_new:"输入新密码",password_new_p:"新密码",password_new_repeat:"再次输入新密码",password_new_repeat_p:"再次输入新密码",password_update:"更新密码",password_reset:"如果您无法记住当前密码,您可以重置密码",delete_account_permanently:"您确定要永久删除Tapni帐户吗?",by_clicking_here:"点击此处",password_8_chars:"密码必须至少包含8个字符",password_least_one_lowercase:"密码必须至少包含一个小写字母",password_least_one_uppercase:"密码必须至少包含一个大写字母",password_least_one_number:"密码必须包含至少一个数字",password_not_match:"密码不匹配",password_change_success:"密码已成功更改",or:"或",profile:"个人资料",account_settings:"帐户设置",profile_public:"公开个人资料",profile_public_p:"通过以下方式公开您的个人资料:",profile_active:"激活个人资料",profile_active_p:"如果停用个人资料,将无法再访问该资料,并且相关的标签将不再起作用",profile_change_password:"更改密码",profile_change_username:"更改用户名",profile_change_language:"更改语言",profile_delete_account:"删除帐户",profile_confirm_delete_account:"删除帐户",profile_cancel_delete_account:"取消",profile_delete_account_success:"帐户已成功删除",profile_remove_p:"如果您想删除帐户,请发送邮件至",profile_contact_support:"如果您对设置有问题,请发送邮件至",profile_email_subject:"Tapni应用支持",profile_remove_subject:"帐户删除请求",profile_update_success:"个人资料已成功更新",profile_complete:"完成个人资料",completed:"已完成",uncompleted:"未完成",contact_us:"联系我们",contact_us_verify:"以验证您的电子邮件地址。",verify_email:"验证电子邮件地址",verify_email_subject:"电子邮件验证",verify_email_inbox:"请在收件箱中查看",add_first_link:"添加您的第一个链接",add_first_link_p:"点击此处将您的社交媒体渠道<br>或联系信息添加到您的Tapni个人资料。",add_picture:"添加个人头像",add_picture_p:"点击此处上传您的个人头像。",add_tag:"激活您的Tapni",add_tag_p:"点击此处激活您的Tapni NFC标签。",completing_profile:"填写个人资料时有问题?<br>请随时写信给我们,联系方式为",completing_profile_subject:"完善个人资料",share_profile:"分享个人资料",share_profile_p:"他人可以扫描此二维码<br>以查看您的个人资料",share_profile_change_username:"如果您想更改链接,<br><u>点击此处</u>更改用户名。",share_profile_qr:"分享个人资料",share_contactcard_qr:"联系卡",scan_qr_code:"扫描二维码",enter_activation_code:"输入激活码",activate_tag:"激活标签",order_tapni:"如果您还没有订购Tapni,请选择您的",activation_success:"成功连接标签。一切就绪!🥳",activation_success_message:"成功连接标签。一切就绪!🥳",activation_error:"这不是一个有效的标签。请重试。",activation_error_message:"这不是一个有效的标签。请重试。",activation_progress:"标签注册进行中...",activation_invalid_code:"无效的激活码。",activation_qr_failed:"扫描二维码失败",activation_qr_area:"将二维码放置在扫描区域内",activation_code:"激活码",invalid_code:"无效的代码",total_taps:"总点击次数",active:"激活",tag_active_p:"如果停用,当您点击某人的电话时,将不会打开您的个人资料。",tag_delete_confirm:"在取消标签链接之前,请保存激活码,否则将无法重新激活。",upload_profile_picture:"上传个人头像",upload_cover_picture:"上传封面图片",upload_link_picture:"上传链接图片",select_from_device:"从设备中选择",select_from_mobile:"从您的移动设备选择图片",select_from_computer:"或者,如果您使用的是计算机,可以拖放图片",crop:"裁剪",crop_upload:"裁剪并上传",crop_image:"裁剪图片",drag_and_drop:"拖放文件到这里",upload_success:"媒体上传成功",browser_not_supported:"您的浏览器不支持",change_username:"更改用户名",change_username_success:"用户名更改成功",update_username:"更新用户名",new_username:"请输入新用户名",username_check:"请提供正确的用户名",anonymous:"匿名",connected:"已连接",exchanged:"已交换",accept:"接受",view:"查看",join:"加入",add_account:"添加账号",complete_profile:"完善个人资料",my_profile:"我的个人资料",my_qr:"我的二维码",my_connections:"我的联系人",contacts:"联系人",my_tags:"我的标签",buy_tapni:"购买 Tapni",referral_program:"推荐计划",device_compatibility:"设备兼容性",help:"帮助",settings:"设置",logout:"退出",version:"版本",configure:"配置",unexpected_err:"出现意外错误,请联系我们:support@tapni.com",success_login:"成功使用其他帐户登录。",password_reset_success:"密码重置代码已发送到您的电子邮件。",password_reseted_success:"密码成功更改。您现在可以登录了。",success_remove_link:"链接已成功移除",success_remove_picture:"图片已成功移除",profile_active_message:"您的个人资料现已激活",profile_inactive_message:"您的个人资料现已停用",profile_public_message:"您的个人资料现已公开",profile_private_message:"您的个人资料现已设为私密",redirect_enabled:"自动重定向链接已启用",redirect_disabled:"自动重定向链接已禁用",tag_active:"标签现已激活。开始使用 Tapni 吧!",tag_inactive:"标签现已停用。您的访客将会进入 tapni.co",tag_removed:"标签已成功移除",connection_accepted:"连接请求已接受",connection_added:"新的连接已成功添加",connection_exist:"您已与此用户建立连接",not_found:"未找到",not_found_p:"看起来你迷路了",go_back:"返回",referral_p1:"在推荐销售中赚取20%的佣金💰",referral_p2:"通过您的折扣代码给别人打20%的折扣🎁",referral_p3:"这是一个双赢的局面🤝",referral_p4:`如果您想更改您的推荐人,<br>
90
90
  或者如果您有任何问题,<br>
91
91
  请写信给我们`,referral_p5:"立即开始赚钱!",referral_p66:"分享您的推荐链接并赚钱!",referral_p6:`如果您是博主、影响者或社交媒体爱好者,那么我们的推荐计划非常适合您。
92
92
  在使用您的折扣代码或推荐链接购买时,推广我们的品牌并获得20%的佣金。`,referral_p7:`在注册Tapni推荐计划后,您将获得个人推荐链接和折扣代码。
93
- 在您的网站和社交媒体上分享它们,在我们提供出色的连接体验的同时赚钱。`,referral_p8:"支付注意事项",referral_p9:"Paypal(全球范围)和银行转账(欧盟)<br>最低支付金额为25€。",referral_p10:"申请支付",referral_p11:"已申请支付",your_connections:"您的联系人",connections_p1:"与您认识的人保持联系",connections_p2:"<br><br>目前还没有联系人。开始连接吧💥",connections_p3:"未找到联系人。",connection_success:"成功发送连接请求",exchange_success:"成功交换联系方式。",create_free_account:"创建免费的Tapni账户,保持联系人的最新信息!",connection_edit:"管理联系人",connection_edit_success:"成功更新联系人",connection_delete_success:"成功删除联系人",search:"搜索",devices_p1:"设备兼容性列表",devices_p2:"Tapni使用的技术与大多数较新的iPhone和Android设备兼容。",devices_p3:"一些Android手机可能已关闭NFC功能。如果您的Tapni在Android设备上无法工作,请在设置中搜索NFC并确保其已打开。",devices_p4:"在iOS 14控制中心的NFC小部件中",download_p1:"下载Tapni应用",download_p2:"适用于苹果和安卓设备",user_not_found:"未找到用户",user_not_found_p:"在我们的数据库中找不到该用户🤷",taps:"次点击",private_profile:"私人资料",private_profile_p:"是一个私人资料。<br>只有使用Tapni标签才能看到个人资料",profile_bio_p:"写点关于您或您的品牌的内容",add_to_contacts:"添加到联系人",drag_and_drop_links:"拖放链接以按所需顺序排列",no_links:"您的个人资料中没有链接。",add_link:"添加链接",direct_link_p1:"访客将自动重定向到:",profile_not_active:"您的个人资料当前未激活<br>只有在登录时才能看到。",profile_not_public:"您的个人资料当前未公开<br>只有点击您的人才能看到。",activate_profile_now:"立即激活您的个人资料",publish_profile_now:"立即公开您的个人资料",link_add_p1:"选择链接类型",link_add_not_found:"未找到链接🤷",link_add_not_found_p2:"如果我们遗漏了您最喜欢的平台,请给我们发送电子邮件(<b>support@tapni.com</b>)或在社交媒体上私信我们(<b>@tapni</b>)",link_add_not_found_p3:"我们将尽力支持所有平台😉",featured:"特色",social_media:"社交媒体",contact:"联系方式",finance:"金融",portfolio:"作品集",music:"音乐",business:"商务",fun:"娱乐",ecommerce:"电子商务",more:"更多",email_username:"电子邮件/用户名",username:"用户名",password:"密码",sign_in:"登录",sign_in_with:"使用以下方式登录",sign_in_with_new:"使用新账户登录",sign_up_with:"使用以下方式注册",select_sign_method:"选择登录方式",verify_account:"验证账户",terms_by_signing_in:"通过登录,即表示您同意我们的",terms_by_registering:"通过注册,即表示您同意我们的",terms_by_submitting:"提交此表单即表示您同意我们的服务条款",terms_of_service:"服务条款",and:"和",refresh:"刷新",privacy_policy:"隐私政策",create_account:"创建账户",reset_password:"重置密码",reset_password_p1:"如果您无法重置密码,<br>请随时联系我们 ",reset_password_p2:"如果您无法重置密码,<br>请随时联系我们",create_new_account:"创建新账户",maintenance_p1:"我们即将回来",maintenance_p2:"在此期间,请浏览Tapni的收藏品",maintenance_p3:"Tapni正在进行计划中的维护<br>预计将在几分钟内恢复在线状态。",offline_p1:"没有网络连接",offline_p2:"检查您的连接,然后刷新页面",offline_p3_1:"当您离线时,",offline_p3_2:"您可以使用此二维码分享您的联系卡",products_p1:"给您遇见的每个人留下深刻印象 😎 <br> 立即获取您的产品 👇",cards:"名片",stickers:"贴纸",keychains:"钥匙扣",explore_collection:"探索收藏",register:"注册",register_success:"您就快完成了。请确认您的电子邮件。",register_success_modal:"成功用另一个账户登录。",check_your_inbox:"查看您的收件箱",tapni_tags:"Tapni标签",tapni_tags_p1:"配置与您的个人资料相关联的标签",tapni_tags_p2:"您的个人资料中没有连接的标签。<br>立即连接一个吧!",verify_account_p1:"如果您未收到验证码,请检查您的<br>垃圾邮件文件夹或与我们联系",verify_account_success:"账户验证成功。请立即更改您的密码。",verify_account_success2:"账户验证成功。您已准备就绪!🥳",welcome:"欢迎",welcome_p1:"来到名片的未来",how_it_works:"工作原理",already_registered:"已注册",error:"错误",success:"成功",copied:"已复制到剪贴板",connect_validate:"必须提供两个联系方式字段中的一个",connect_validate_name:"请输入您的姓名",connect_validate_email:"请输入有效的电子邮件地址",link_validate:"无效的链接数据。",link_text_contact_card:"联系卡",link_text_custom_link:"自定义链接",link_text_menu:"菜单",link_text_phone:"电话",save_to_apple_wallet:"保存到Apple Wallet",save_to_google_wallet:"添加到Google Wallet",card:"名片",sticker:"贴纸",keychain:"钥匙扣",band:"手环",case:"盒子",standee:"立牌",decoded:"解码",wristbanditz:"Wristbanditz",update_p1:"检测到过时的应用版本",update_p2:"更新",update_p3:"请更新至最新版本的应用",company_domain:"您的公司域名",search_company_domain:"搜索您的公司域名",enter_company_email:"输入公司电子邮件",company_not_found:"未找到公司",ik_company_domain:"我知道公司域名",idk_company_domain:"我不知道公司域名",continue:"继续",forbidden_rule:"此选项已禁用,请联系您的公司管理员。",companyName:"公司名称",createMarkerPlaceholder:"创建或选择标记",clickToCreateMarker:"点击此处创建标记",pleaseInviteUser:"请邀请用户加入Tapni,以便与您同步数据。",connectionSynchronized:"连接数据会自动同步。",viewProfile:"查看个人资料",createConnectionHeader:"创建新连接",createConnectionButton:"创建连接",createConnectionSuccess:"连接已创建。",allow_company_management:"允许公司管理",company_join_request:"正在请求管理您的个人资料,并将其关联到其企业账户。",account_ownership_transfer:"如果您接受请求,您的账户所有权将转移给公司。公司将能够修改您的个人资料,编辑和添加链接,查看您的连接,修改您的密码,删除您的账户等。在接受请求之前,请与您的公司核实。",request_expired:"请求已过期,请向您的公司发送新的请求。",request_expiration_desc:"为增加安全性,请求在发送后的14天内有效。",invitation_link_not_valid:"邀请链接无效!",invitation_link_not_valid2:"请再次点击邀请电子邮件中的按钮或复制邀请链接。",accept_request:"接受请求",close:"关闭",request_accepted:"请求已成功接受",companyEmail:"公司电子邮件",companyPhone:"公司电话",addBusinessInformations:"添加商业信息",resetFilter:"重置",selectMarkers:"选择标记",filterConnectionsHeader:"筛选连接",selectConnectionType:"选择连接类型",all:"全部",direct:"直接",form:"表单",manually:"手动",scan:"扫描",sortOptions:"排序选项",date:"创建日期",fullName:"全名",descending:"降序",ascending:"升序",selectDateRange:"选择日期范围",follow_up_reminder:"跟进提醒",now:"现在",one_hour:"1小时",one_day:"1天",three_days:"3天",one_week:"1周",two_weeks:"2周",one_month:"1个月",custom:"自定义时间",set_reminder:"设置提醒",select_date_time:"选择日期和时间",enter_reminder_text:"输入提醒内容",reminder_created:"提醒创建成功",connectionNameLabel:"输入连接名称",connectionEmailLabel:"输入私人电子邮件地址",privatePhoneLabel:"输入私人电话号码",companyNameLabel:"输入公司名称",businessEmail:"商业电子邮件地址",businessEmailLabel:"输入商业电子邮件地址",businessPhone:"商业电话号码",businessPhoneLabel:"输入商业电话号码",noteLabel:"输入备注",markersLabel:"添加连接标记",showScan:"显示扫描",hideScan:"隐藏扫描",create_connection:"创建连接",create_manually:"手动创建",create_using_scanner:"扫描纸质名片",companyTitle:"职位",companyTitleLabel:"输入职位",allConnectionsLabel:"所有连接类型",directConnectionsLabel:"与Tapni用户的直接应用内连接",formConnectionsLabel:"在连接表单上填写的连接",manualConnectionsLabel:"手动创建的连接",scanConnectionsLabel:"通过名片扫描仪创建的连接",analyticsHeader:"分析",analyticsProfileViews:"个人资料浏览次数",analyticsLinkClicks:"链接点击次数",analyticsClickTroughRatio:"点击转化率",analyticsTotalConnections:"总连接数",analyticsTopLinks:"最受欢迎的链接",analyticsProfileVisits:"个人资料访问次数",analyticsLinkVisits:"链接访问次数",analyticsNewConnections:"新连接数",analyticsTopCountries:"热门国家",analyticsTopReferers:"热门引荐来源",please_wait:"请稍候...",click_here:"点击这里",if_redirect_not_directly:"如果重定向没有自动进行",you_will_be_redirected:"您将被重定向到Tapni应用程序。",use_tapni_on_the_web:"在网页上使用Tapni",login_by_scanning_qr_code:"扫描QR码登录",open_tapni_app_on_your_phone:"1. 在手机上打开Tapni应用",go_to_settings_link_a_device:"2. 前往设置 > 链接设备",point_your_phone_at_this_qr_code:"3. 将手机对准这个QR码",choose_other_login_methods:"选择其他登录方法",no_sso_logins:"您的公司不使用 SSO 登录。 请联系您的管理员",mfa:"多重驗證(MFA)",otp_title:"輸入 MFA 代碼以繼續",otp_code:"MFA 代碼",otp_subtitle:"請輸入認證應用程式中的代碼",otp_p1:"若您在使用 MFA 時遇到問題,<br> 請聯繫我們:",change_language:"切換語言",welcome_account:"歡迎使用帳號中心",security:"安全",security_p:"管理驗證選項與帳號狀態",general:"一般",general_p:"管理個人資料與偏好設定",billing:"帳單",billing_p:"管理訂閱與付款資料",apps:"應用",apps_p:"檢視您的啟用應用並探索更多",apps_my:"我的應用",mfa_auth:"雙因素驗證",mfa_auth_enabled:"您的帳號已使用 MFA 保護。",mfa_auth_p:"啟用多重驗證(MFA)以防止未授權存取",mfa_auth_qr:"掃描上方 QR 碼或將密鑰輸入認證應用程式。",change_password:"變更密碼",active_account:"啟用帳號",active_account_p:"關閉時,帳號將暫時停用,直到您再次啟用。",delete_account:"刪除帳號",delete_account_p:"刪除帳號",permanent_delete:"永久刪除",permanent_delete_p:"刪除後所有資料將被移除且無法復原。若不確定,可先暫時停用。",personal_details:"個人資料",app_language_p:"將應用程式切換成您偏好的語言",app_region:"地區",app_region_p:"選擇您的地區以獲得個人化的帳單與支援服務"}},br={state:{english:"영어",spanish:"스페인어",german:"독일어",korean:"한국인",italian:"이탈리아 사람",french:"프랑스 국민",serbian:"세르비아 사람",turkish:"터키인",chinese:"중국어",japanese:"일본어",portuguese:"포르투갈어",app_language:"언어",profile_preview:"프로필 미리보기",edit_profile:"프로필 수정",login:"로그인",referral_reach:"귀하와 귀하가 찾는 것에 대한 자세한 정보를 제공해 주십시오.",referral_apply_placeholder:"탭니를 홍보하기 위해 어떤 방법을 갖고있나요?",referral_apply_note:`가능한 많은 계정의 링크를 입력해주세요. <br>
93
+ 在您的网站和社交媒体上分享它们,在我们提供出色的连接体验的同时赚钱。`,referral_p8:"支付注意事项",referral_p9:"Paypal(全球范围)和银行转账(欧盟)<br>最低支付金额为25€。",referral_p10:"申请支付",referral_p11:"已申请支付",your_connections:"您的联系人",connections_p1:"与您认识的人保持联系",connections_p2:"<br><br>目前还没有联系人。开始连接吧💥",connections_p3:"未找到联系人。",connection_success:"成功发送连接请求",exchange_success:"成功交换联系方式。",create_free_account:"创建免费的Tapni账户,保持联系人的最新信息!",connection_edit:"管理联系人",connection_edit_success:"成功更新联系人",connection_delete_success:"成功删除联系人",search:"搜索",devices_p1:"设备兼容性列表",devices_p2:"Tapni使用的技术与大多数较新的iPhone和Android设备兼容。",devices_p3:"一些Android手机可能已关闭NFC功能。如果您的Tapni在Android设备上无法工作,请在设置中搜索NFC并确保其已打开。",devices_p4:"在iOS 14控制中心的NFC小部件中",download_p1:"下载Tapni应用",download_p2:"适用于苹果和安卓设备",user_not_found:"未找到用户",user_not_found_p:"在我们的数据库中找不到该用户🤷",taps:"次点击",private_profile:"私人资料",private_profile_p:"是一个私人资料。<br>只有使用Tapni标签才能看到个人资料",profile_bio_p:"写点关于您或您的品牌的内容",add_to_contacts:"添加到联系人",drag_and_drop_links:"拖放链接以按所需顺序排列",no_links:"您的个人资料中没有链接。",add_link:"添加链接",direct_link_p1:"访客将自动重定向到:",profile_not_active:"您的个人资料当前未激活<br>只有在登录时才能看到。",profile_not_public:"您的个人资料当前未公开<br>只有点击您的人才能看到。",activate_profile_now:"立即激活您的个人资料",publish_profile_now:"立即公开您的个人资料",link_add_p1:"选择链接类型",link_add_not_found:"未找到链接🤷",link_add_not_found_p2:"如果我们遗漏了您最喜欢的平台,请给我们发送电子邮件(<b>support@tapni.com</b>)或在社交媒体上私信我们(<b>@tapni</b>)",link_add_not_found_p3:"我们将尽力支持所有平台😉",featured:"特色",social_media:"社交媒体",contact:"联系方式",finance:"金融",portfolio:"作品集",music:"音乐",business:"商务",fun:"娱乐",ecommerce:"电子商务",more:"更多",email_username:"电子邮件/用户名",username:"用户名",password:"密码",sign_in:"登录",sign_in_with:"使用以下方式登录",sign_in_with_new:"使用新账户登录",sign_up_with:"使用以下方式注册",select_sign_method:"选择登录方式",verify_account:"验证账户",terms_by_signing_in:"通过登录,即表示您同意我们的",terms_by_registering:"通过注册,即表示您同意我们的",terms_by_submitting:"提交此表单即表示您同意我们的服务条款",terms_of_service:"服务条款",and:"和",refresh:"刷新",privacy_policy:"隐私政策",create_account:"创建账户",reset_password:"重置密码",reset_password_p1:"如果您无法重置密码,<br>请随时联系我们 ",reset_password_p2:"如果您无法重置密码,<br>请随时联系我们",create_new_account:"创建新账户",maintenance_p1:"我们即将回来",maintenance_p2:"在此期间,请浏览Tapni的收藏品",maintenance_p3:"Tapni正在进行计划中的维护<br>预计将在几分钟内恢复在线状态。",offline_p1:"没有网络连接",offline_p2:"检查您的连接,然后刷新页面",offline_p3_1:"当您离线时,",offline_p3_2:"您可以使用此二维码分享您的联系卡",products_p1:"给您遇见的每个人留下深刻印象 😎 <br> 立即获取您的产品 👇",cards:"名片",stickers:"贴纸",keychains:"钥匙扣",explore_collection:"探索收藏",register:"注册",register_success:"您就快完成了。请确认您的电子邮件。",register_success_modal:"成功用另一个账户登录。",check_your_inbox:"查看您的收件箱",tapni_tags:"Tapni标签",tapni_tags_p1:"配置与您的个人资料相关联的标签",tapni_tags_p2:"您的个人资料中没有连接的标签。<br>立即连接一个吧!",verify_account_p1:"如果您未收到验证码,请检查您的<br>垃圾邮件文件夹或与我们联系",verify_account_success:"账户验证成功。请立即更改您的密码。",verify_account_success2:"账户验证成功。您已准备就绪!🥳",welcome:"欢迎",welcome_p1:"来到名片的未来",how_it_works:"工作原理",already_registered:"已注册",error:"错误",success:"成功",copied:"已复制到剪贴板",connect_validate:"必须提供两个联系方式字段中的一个",connect_validate_name:"请输入您的姓名",connect_validate_email:"请输入有效的电子邮件地址",link_validate:"无效的链接数据。",link_text_contact_card:"联系卡",link_text_custom_link:"自定义链接",link_text_menu:"菜单",link_text_phone:"电话",save_to_apple_wallet:"保存到Apple Wallet",save_to_google_wallet:"添加到Google Wallet",card:"名片",sticker:"贴纸",keychain:"钥匙扣",band:"手环",case:"盒子",standee:"立牌",decoded:"解码",wristbanditz:"Wristbanditz",update_p1:"检测到过时的应用版本",update_p2:"更新",update_p3:"请更新至最新版本的应用",company_domain:"您的公司域名",search_company_domain:"搜索您的公司域名",enter_company_email:"输入公司电子邮件",company_not_found:"未找到公司",ik_company_domain:"我知道公司域名",idk_company_domain:"我不知道公司域名",continue:"继续",forbidden_rule:"此选项已禁用,请联系您的公司管理员。",companyName:"公司名称",createMarkerPlaceholder:"创建或选择标记",clickToCreateMarker:"点击此处创建标记",pleaseInviteUser:"请邀请用户加入Tapni,以便与您同步数据。",connectionSynchronized:"连接数据会自动同步。",viewProfile:"查看个人资料",createConnectionHeader:"创建新连接",createConnectionButton:"创建连接",createConnectionSuccess:"连接已创建。",allow_company_management:"允许公司管理",company_join_request:"正在请求管理您的个人资料,并将其关联到其企业账户。",account_ownership_transfer:"如果您接受请求,您的账户所有权将转移给公司。公司将能够修改您的个人资料,编辑和添加链接,查看您的连接,修改您的密码,删除您的账户等。在接受请求之前,请与您的公司核实。",request_expired:"请求已过期,请向您的公司发送新的请求。",request_expiration_desc:"为增加安全性,请求在发送后的14天内有效。",invitation_link_not_valid:"邀请链接无效!",invitation_link_not_valid2:"请再次点击邀请电子邮件中的按钮或复制邀请链接。",accept_request:"接受请求",close:"关闭",request_accepted:"请求已成功接受",companyEmail:"公司电子邮件",companyPhone:"公司电话",addBusinessInformations:"添加商业信息",resetFilter:"重置",selectMarkers:"选择标记",filterConnectionsHeader:"筛选连接",selectConnectionType:"选择连接类型",all:"全部",direct:"直接",form:"表单",manually:"手动",scan:"扫描",sortOptions:"排序选项",date:"创建日期",fullName:"全名",descending:"降序",ascending:"升序",selectDateRange:"选择日期范围",follow_up_reminder:"跟进提醒",now:"现在",one_hour:"1小时",one_day:"1天",three_days:"3天",one_week:"1周",two_weeks:"2周",one_month:"1个月",custom:"自定义时间",set_reminder:"设置提醒",select_date_time:"选择日期和时间",enter_reminder_text:"输入提醒内容",reminder_created:"提醒创建成功",connectionNameLabel:"输入连接名称",connectionEmailLabel:"输入私人电子邮件地址",privatePhoneLabel:"输入私人电话号码",companyNameLabel:"输入公司名称",businessEmail:"商业电子邮件地址",businessEmailLabel:"输入商业电子邮件地址",businessPhone:"商业电话号码",businessPhoneLabel:"输入商业电话号码",noteLabel:"输入备注",markersLabel:"添加连接标记",showScan:"显示扫描",hideScan:"隐藏扫描",create_connection:"创建连接",create_manually:"手动创建",create_using_scanner:"扫描纸质名片",companyTitle:"职位",companyTitleLabel:"输入职位",allConnectionsLabel:"所有连接类型",directConnectionsLabel:"与Tapni用户的直接应用内连接",formConnectionsLabel:"在连接表单上填写的连接",manualConnectionsLabel:"手动创建的连接",scanConnectionsLabel:"通过名片扫描仪创建的连接",analyticsHeader:"分析",analyticsProfileViews:"个人资料浏览次数",analyticsLinkClicks:"链接点击次数",analyticsClickTroughRatio:"点击转化率",analyticsTotalConnections:"总连接数",analyticsTopLinks:"最受欢迎的链接",analyticsProfileVisits:"个人资料访问次数",analyticsLinkVisits:"链接访问次数",analyticsNewConnections:"新连接数",analyticsTopCountries:"热门国家",analyticsTopReferers:"热门引荐来源",please_wait:"请稍候...",click_here:"点击这里",if_redirect_not_directly:"如果重定向没有自动进行",you_will_be_redirected:"您将被重定向到Tapni应用程序。",use_tapni_on_the_web:"在网页上使用Tapni",login_by_scanning_qr_code:"扫描QR码登录",open_tapni_app_on_your_phone:"1. 在手机上打开Tapni应用",go_to_settings_link_a_device:"2. 前往设置 > 链接设备",point_your_phone_at_this_qr_code:"3. 将手机对准这个QR码",choose_other_login_methods:"选择其他登录方法",no_sso_logins:"您的公司不使用 SSO 登录。 请联系您的管理员",mfa:"多重驗證(MFA)",otp_title:"輸入 MFA 代碼以繼續",otp_code:"MFA 代碼",otp_subtitle:"請輸入認證應用程式中的代碼",otp_p1:"若您在使用 MFA 時遇到問題,<br> 請聯繫我們:",change_language:"切換語言",welcome_account:"歡迎使用帳號中心",security:"安全",security_p:"管理驗證選項與帳號狀態",general:"一般",general_p:"管理個人資料與偏好設定",billing:"帳單",billing_p:"管理訂閱與付款資料",apps:"應用",apps_p:"檢視您的啟用應用並探索更多",apps_my:"我的應用",mfa_auth:"雙因素驗證",mfa_auth_enabled:"您的帳號已使用 MFA 保護。",mfa_auth_p:"啟用多重驗證(MFA)以防止未授權存取",mfa_auth_qr:"掃描上方 QR 碼或將密鑰輸入認證應用程式。",change_password:"變更密碼",active_account:"啟用帳號",active_account_p:"關閉時,帳號將暫時停用,直到您再次啟用。",delete_account:"刪除帳號",delete_account_p:"刪除帳號",permanent_delete:"永久刪除",permanent_delete_p:"刪除後所有資料將被移除且無法復原。若不確定,可先暫時停用。",personal_details:"個人資料",app_language_p:"將應用程式切換成您偏好的語言",app_region:"地區",app_region_p:"選擇您的地區以獲得個人化的帳單與支援服務"}},So={state:{english:"영어",spanish:"스페인어",german:"독일어",korean:"한국인",italian:"이탈리아 사람",french:"프랑스 국민",serbian:"세르비아 사람",turkish:"터키인",chinese:"중국어",japanese:"일본어",portuguese:"포르투갈어",app_language:"언어",profile_preview:"프로필 미리보기",edit_profile:"프로필 수정",login:"로그인",referral_reach:"귀하와 귀하가 찾는 것에 대한 자세한 정보를 제공해 주십시오.",referral_apply_placeholder:"탭니를 홍보하기 위해 어떤 방법을 갖고있나요?",referral_apply_note:`가능한 많은 계정의 링크를 입력해주세요. <br>
94
94
  당신이 누구인지 우리에게 보여주세요.
95
95
  <br><br>독점을 위해서.
96
96
  <br>모든 사람을 승낙할 순 없습니다.😉`,referral_apply_now:"신정하기",referral_apply_thanks:"신청해주셔서 감사합니다. 빠른 시일 내에 어플로 알려드리겠습니다!",connect:"연결",with:"와 함께",exchange_contact:"연락처 교환",add_details:"더 추가",show_details:"더 보기",download_contact:"연락처 다운로드",stay_in_touch:"연락을 유지",no_thanks:"고맙지 만 사양 할게",connect_join:"탭니 가입",connect_with:"연결",connect_required_fields:"두 개의 연락처 공간 중 하나는 작성해야 합니다.",name:"이름",first_name:"이름",last_name:"성",email:"이메일",phone:"휴대폰",phone_p:"휴대폰",company:"회사",address:"주소",website:"웹사이트",open:"열기",delete:"삭제",confirm:"확정하다",cancel:"취소",save:"저장",code:"코드",note:"참고",note_p:"메모 추가",contact_card_icon:"연락처 카드 아이콘 아래에 텍스트 저장",contact_card_name:"연락처 카드의 이름을 입력하세요",contact_card_name_p:"연락처 카드 이름",contact_card_email:"연락처 카드의 이메일 입력",contact_card_email_p:"연락처 카드 이메일",contact_card_phone:"연락처 카드의 전화번호 입력",contact_card_phone_p:"연락처 카드 전화번호",contact_card_website:"연락처 카드의 웹사이트 입력",contact_card_website_p:"연락처 카드 웹사이트",contact_card_company_name:"연락처 카드의 회사 이름 입력",contact_card_company_name_p:"연락처 카드 회사 이름",contact_card_job_title:"직위",contact_card_job_title_p:"직함을 입력하세요",contact_card_company_website:"C회사 웹 사이트",contact_card_company_website_p:"회사 웹사이트 입력",contact_card_bio:"연락처 카드의 소개글 입력",contact_card_bio_p:"연락처 카드의 소개글 입력",contact_card_home_address:"연락처 카드의 집 주로 입력",contact_card_home_address_p:"연락처 카드 집 주소",contact_card_work_address:"연락처 카드의 회사 주소 입력",contact_card_work_address_p:"연락처 카드 회사 주소",contact_card_social:"탭니 프로필에 쇼셜 미디어 링크 입력 <br> 연락처 카드에 추가하기 위하여",contact_card_social_p:"연락처 카드에 입력할 소셜 미디아 링크 입력",link_text_p:"링크 주소",link_icon:"링크 아이콘의 이름 입력",direct_pick:"메인 링크를 선택",direct_p:"누군가의 폰에 탭 했을때, <br> 나의 전체 프로필 대신에 링크를 열어줍니다.",password_change:"비밀번호 변경",password_repeat:"비밀번호 확인",password_reset_t:"비밀번호 재설정",password_current:"현재 비밀번호 입력",password_current_p:"현재 비밀번호",password_new:"새로운 비밀번호 입력",password_new_p:"새로운 비밀번호",password_new_repeat:"새로운 비밀번호 확인",password_new_repeat_p:"새로운 비밀번호 확인",password_update:"비밀번호 업데이트",password_reset:`만약 현재 비밀번호를 잊어버리셨을 경우,<br>
@@ -104,7 +104,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
104
104
  또는 궁금한 게 있으면,<br>
105
105
  저희에게 연락주세요`,referral_p5:"지금부터 돈을 벌기 시작하세요!",referral_p66:"제휴링크를 공유하고 돈을 벌어보세요!",referral_p6:`블로거, 인플루언서 또는 소셜 미디어 매니아라면 당사의 엠버서더 프로그램 에 완벽하게 적합합니다.
106
106
  브랜드를 홍보하고 할인 코드 또는 추천 링크를 사용하여 구입한 경우 20%의 수수료를 받으십시오.`,referral_p7:`탭니 엠버서더 프로그램에 등록하면 개인 추천 링크와 할인 코드가 발급됩니다.
107
- 웹 사이트 및 소셜 미디어에 공유하여 돈을 버는 동시에 최고의 연결 경험을 제공하십시오.`,referral_p8:"지불 메모",referral_p9:"Paypal (세계적인) 또는 계좌이체 (EU) <br> 최소 지급액은 25€입니다.",referral_p10:"지급 요청",referral_p11:"요청된 지불",your_connections:"나의 연결 기록",connections_p1:"사람들과 만나서 탭을 하세요.",connections_p2:"<br><br>지금까지 연결이 없습니다. <br> 탭을 시작해볼까요💥",connections_p3:"연결을 찾을 수 없습니다.",connection_success:"연결 요청을 보냈습니다.",exchange_success:"연락처를 교환했습니다.",create_free_account:"무료 Tapni 계정을 만들고 연락처를 최신 상태로 유지하십시오!",connection_edit:"연결 편집",connection_edit_success:"성공적으로 업데이트된 연결",connection_delete_success:"연결을 삭제했습니다.",search:"검색",devices_p1:"장치 호환성 목록",devices_p2:"탭니는 대부분의 최신 아이폰 및 안드로이드와 호환이 가능합니다.",devices_p3:"일부 안드로이드 폰은 NFC가 꺼져 있을 수 있습니다. 탭니가 안드로이드 장치에서 작동하지 않는 경우 설정에서 NFC를 검색하고 켜져 있는지 확인합니다.",devices_p4:"제어 센터에 iOS 14 NFC 위젯 포함",download_p1:"탭니 앱 다운로드",download_p2:"애플 및 안드로이드 기기에서 사용 가능",user_not_found:"사용자를 찾을 수 없음",user_not_found_p:"데이터베이스에서 사용자를 찾을 수 없습니다.🤷",taps:"탭",private_profile:"개인 프로필",private_profile_p:"은 개인 프로필입니다. <br> 프로필은 탭니 태그에서만 사용하며 표시됩니다.",profile_bio_p:"자기 소개를 해주세요.",add_to_contacts:"연락처에 추가",drag_and_drop_links:"링크를 원하는 순서대로 끌어서 놓기",no_links:"프로필에 링크가 없습니다.",add_link:"링크 추가",direct_link_p1:"방문자는 다음으로 자동 이동됩니다:",profile_not_active:"프로필이 현재 활성화되지 않았습니다. <br> 로그인을 해야 볼 수 있어요.",profile_not_public:"프로필이 현재 공개되지 않았습니다. <br> 누르신 분들만 볼 수 있습니다.",activate_profile_now:"프로필 활성화 완료",publish_profile_now:"지금 프로필을 공개하십시오.",link_add_p1:"링크 유형 선택",link_add_not_found:"링크를 찾을 수 없습니다. 🤷",link_add_not_found_p2:"즐겨찾는 플랫폼을 놓치셨다면, 저희에게 이메일을 보내주시기 바랍니다. (<b>support@tapni.com</b>) 아니면 소셜 미디어로 DM을 해주세요.(<b>@tapni</b>)",link_add_not_found_p3:"모든 플랫폼을 지원할 수 있도록 최선을 다하겠습니다. 😉",featured:"피처링",social_media:"소셜 미디어",contact:"연락처",finance:"금융",portfolio:"포트폴리오",music:"음악",business:"비지니스",fun:"재미",ecommerce:"전자상거래",more:"더 보기",email_username:"이메일 / 사용자 이름",username:"사용자 이름",password:"비밀번호",sign_in:"로그인",sign_in_with:"로그인",sign_in_with_new:"새 계정으로 로그인",sign_up_with:"등록하기",select_sign_method:"로그인 방법 선택",verify_account:"계정 확인",terms_by_signing_in:"회원님의 동의로 회원가입을 합니다.",terms_by_registering:"동의하시면 등록하여 주십시오.",terms_by_submitting:"이 양식을 제출하면 서비스 약관에 동의하는 것입니다",terms_of_service:"서비스 약관",and:"그리고",refresh:"새로 고침",privacy_policy:"개인 정보 보호 정책",create_account:"계정 만들기",reset_password:"비밀번호 재설정",reset_password_p1:"암호를 재설정할 수 없으면, <br> 언제든지 다음 주소로 연락하십시오.",reset_password_p2:"암호를 재설정할 수 없으면, <br> 언제든지 다음 주소로 연락하십시오.",create_new_account:"새 계정 만들기",maintenance_p1:"우리는 곧 돌아올 것이다.",maintenance_p2:"그동안 탭니 컬렉션 살펴보기",maintenance_p3:"탭니는 예정된 점검으로 인하여 잠시 중단되었습니다. <br> 몇 분 내로 다시 온라인 상태가 될 것입니다.",offline_p1:"인터넷에 연결되지 않음",offline_p2:"연결을 확인한 다음 페이지를 새로 고치십시오.",offline_p3_1:"오프라인일 때 이 QR 코드를 사용하여 연락처 카드를 공유할 수 있습니다.",offline_p3_2:"",products_p1:"만나는 모든 사람에게 깊은 인상을 남깁니다. 😎 <br> 지금 바로 구입하십시오 👇",cards:"카드",stickers:"스티커",keychains:"키 체인",explore_collection:"컬렉션 탐색",register:"등록",register_success:"거의 다 완료하였습니다. 이메일을 확인해 주세요.",register_success_modal:"다른 계정으로 로그인했습니다.",check_your_inbox:"첫 번째 링크를 추가 해 주세요.",tapni_tags:"탭니 태그",tapni_tags_p1:"프로필에 연결된 태그 구성",tapni_tags_p2:"프로필에 연결된 태그가 없습니다. <br> 지금 연결하세요!",verify_account_p1:"코드를 받지 못한 경우 다음을 확인하십시오. <br> 스팸 폴더 또는 연락주세요:",verify_account_success:"계정을 확인했습니다. 지금 비밀번호를 변경해 주세요.",verify_account_success2:"계정을 확인했습니다. 모두 완료 되었습니다.!🥳",welcome:"반갑습니다.",welcome_p1:"비지니스 카드의 미래까지",how_it_works:"작동 방식",already_registered:"이미 등록되어있습니다",error:"오류",success:"성공",copied:"클립보드에 복사됨",connect_validate:"두 개의 연락처 필드 중 하나를 제공해야 합니다.",connect_validate_name:"이름을 입력하십시오.",connect_validate_email:"유효한 이메일을 입력하세요",link_validate:"잘못된 링크 데이터입니다.",link_text_contact_card:"연락처 카드",link_text_custom_link:"사용자 지정 링크",link_text_menu:"메뉴",link_text_phone:"휴대폰",save_to_apple_wallet:"Apple 지갑에 저장",save_to_google_wallet:"Google 지갑에 저장",card:"카드",sticker:"상표",keychain:"키체인",band:"밴드",case:"사례",standee:"서다",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"오래된 앱 버전이 감지되었습니다",update_p2:"업데이트",update_p3:"앱을 최신 버전으로 업데이트하세요",company_domain:"귀하의 회사 도메인",search_company_domain:"회사 도메인 검색",enter_company_email:"회사 이메일을 입력하세요",company_not_found:"회사를 찾을 수 없음",ik_company_domain:"회사 도메인을 알고 있습니다",idk_company_domain:"회사 도메인을 모릅니다",continue:"계속",forbidden_rule:"이 옵션은 비활성화되어 있습니다. 회사 관리자에게 문의하십시오.",companyName:"회사 이름",createMarkerPlaceholder:"마커 생성 또는 선택",clickToCreateMarker:"마커를 만들려면 여기를 클릭하세요.",pleaseInviteUser:"데이터를 동기화하려면 사용자를 Tapni에 가입하도록 초대하세요.",connectionSynchronized:"연결 데이터가 자동으로 동기화됩니다.",viewProfile:"프로필보기",createConnectionHeader:"새 연결 추가",createConnectionButton:"추가하다",createConnectionSuccess:"연결이 생성되었습니다.",allow_company_management:"회사 관리 허용",company_join_request:"이 귀하의 프로필을 관리하고 이를 기업 계정에 연결하도록 요청하고 있습니다.",account_ownership_transfer:"귀하가 요청을 수락하면 귀하의 계정 소유권이 회사로 이전됩니다. 회사는 귀하의 프로필을 수정하고, 링크를 편집 및 추가하고, 연결을 확인하고, 비밀번호를 수정하고, 계정을 삭제하는 등의 작업을 수행할 수 있습니다. 요청을 수락하기 전에 회사에 확인하십시오.",request_expired:"요청이 만료되었습니다. 회사에 새 요청을 보내도록 요청하십시오.",request_expiration_desc:"보안 강화를 위해 요청은 전송된 후 14일 동안만 작동합니다.",invitation_link_not_valid:"초대 링크가 유효하지 않습니다!",invitation_link_not_valid2:"초대 이메일에서 버튼을 다시 클릭하거나 초대 링크를 복사합니다.",accept_request:"요청 수락",close:"닫다",request_accepted:"요청이 성공적으로 수락되었습니다.",companyEmail:"회사 이메일",companyPhone:"회사 전화",addBusinessInformations:"비즈니스 정보 추가",resetFilter:"초기화",selectMarkers:"마커 선택",filterConnectionsHeader:"필터 연결",selectConnectionType:"연결 유형 선택",all:"모두",direct:"직접",form:"형태",manually:"수동으로",scan:"주사",sortOptions:"정렬 옵션",date:"제작 일",fullName:"성명",descending:"내림차순",ascending:"오름차순",selectDateRange:"날짜 범위 선택",follow_up_reminder:"후속 알림",now:"지금",one_hour:"1 토",one_day:"1 일",three_days:"3 일",one_week:"일주",two_weeks:"이주",one_month:"개월",custom:"시간 선택",set_reminder:"알림 설정",select_date_time:"날짜 및 시간 선택",enter_reminder_text:"알림 텍스트 입력",reminder_created:"알림이 생성되었습니다.",connectionNameLabel:"연결 이름 입력",connectionEmailLabel:"개인 이메일 주소 입력",privatePhoneLabel:"개인 전화번호 입력",companyNameLabel:"회사 이름 입력",businessEmail:"비즈니스 이메일 주소",businessEmailLabel:"비즈니스 이메일 주소 입력",businessPhone:"회사 전화번호",businessPhoneLabel:"회사 전화번호 입력",noteLabel:"메모 입력",markersLabel:"연결 마커 추가",showScan:"스캔 표시",hideScan:"스캔 숨기기",create_connection:"연결 추가",create_manually:"수동으로 추가",create_using_scanner:"카드 스캐너를 사용하여 추가",companyTitle:"회사명",companyTitleLabel:"회사명 입력",allConnectionsLabel:"모든 연결 유형",directConnectionsLabel:"Tapni 사용자와 직접 앱 내 연결",formConnectionsLabel:"연결 양식에 채워진 연결",manualConnectionsLabel:"수동으로 생성된 연결",scanConnectionsLabel:"카드 스캐너가 연결을 생성했습니다.",analyticsHeader:"분석",analyticsProfileViews:"프로필 보기",analyticsLinkClicks:"링크 클릭 수",analyticsClickTroughRatio:"트로프 비율 클릭",analyticsTotalConnections:"총 연결 수",analyticsTopLinks:"가장 인기 있는 링크",analyticsProfileVisits:"프로필 방문",analyticsLinkVisits:"링크 방문",analyticsNewConnections:"새로운 연결",analyticsTopCountries:"상위 국가",analyticsTopReferers:"상위 추천인",please_wait:"잠시만 기다려 주세요...",click_here:"여기를 클릭하세요",if_redirect_not_directly:"리디렉션이 자동으로 수행되지 않는 경우",you_will_be_redirected:"Tapni 애플리케이션으로 리디렉션됩니다.",use_tapni_on_the_web:"웹에서 Tapni 사용하기",login_by_scanning_qr_code:"QR 코드 스캔하여 로그인하기",open_tapni_app_on_your_phone:"1. 휴대폰에서 Tapni 앱 열기",go_to_settings_link_a_device:"2. 설정 > 장치 연결로 이동하기",point_your_phone_at_this_qr_code:"3. 휴대폰을 이 QR 코드에 맞추기",choose_other_login_methods:"다른 로그인 방법 선택하기",no_sso_logins:"귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오.",mfa:"다중 인증(MFA)",otp_title:"계속하려면 MFA 코드를 입력하세요",otp_code:"MFA 코드",otp_subtitle:"인증 앱의 코드를 입력하세요",otp_p1:"MFA 문제 발생 시, <br> 아래로 문의해주세요",change_language:"언어 변경",welcome_account:"계정 센터에 오신 것을 환영합니다",security:"보안",security_p:"인증 옵션 및 계정 상태를 관리하세요",general:"일반",general_p:"개인 정보 및 기타 설정을 관리하세요",billing:"결제",billing_p:"구독 및 결제 프로필을 관리하세요",apps:"앱",apps_p:"활성 앱을 보고 더 많은 기능을 살펴보세요",apps_my:"내 앱",mfa_auth:"2단계 인증",mfa_auth_enabled:"계정이 MFA로 보호 중입니다.",mfa_auth_p:"다중 인증(MFA)으로 무단 접근을 방지하세요",mfa_auth_qr:"위 QR 코드를 스캔하거나 비밀 키를 인증 앱에 입력하세요.",change_password:"비밀번호 변경",active_account:"활성 계정",active_account_p:"끄면, 다시 켤 때까지 계정이 일시 비활성화됩니다.",delete_account:"계정 삭제",delete_account_p:"계정 삭제",permanent_delete:"영구 삭제",permanent_delete_p:"계정을 삭제하면 모든 데이터가 영구 삭제됩니다. 복구 불가. 확신이 없다면 일시 중지를 고려하세요.",personal_details:"개인 정보",app_language_p:"원하는 언어로 앱을 번역하세요",app_region:"지역",app_region_p:"맞춤형 결제 및 지원을 위해 지역을 선택하세요"}},Fi={state:{english:"英語",spanish:"スペイン語",german:"ドイツ語",korean:"韓国語",italian:"イタリア語",french:"フランス語",serbian:"セルビア語",turkish:"トルコ語",chinese:"中国語",japanese:"日本語",portuguese:"ポルトガル語",app_language:"言語",profile_preview:"プロフィールプレビュー",edit_profile:"プロフィール編集",login:"ログイン",referral_reach:"あなたとあなたのリーチについて詳しく教えてください。",referral_apply_placeholder:"Tapniをどのように宣伝する予定ですか?",referral_apply_note:`アカウントにできるだけ多くのリンクを追加してください。<br>
107
+ 웹 사이트 및 소셜 미디어에 공유하여 돈을 버는 동시에 최고의 연결 경험을 제공하십시오.`,referral_p8:"지불 메모",referral_p9:"Paypal (세계적인) 또는 계좌이체 (EU) <br> 최소 지급액은 25€입니다.",referral_p10:"지급 요청",referral_p11:"요청된 지불",your_connections:"나의 연결 기록",connections_p1:"사람들과 만나서 탭을 하세요.",connections_p2:"<br><br>지금까지 연결이 없습니다. <br> 탭을 시작해볼까요💥",connections_p3:"연결을 찾을 수 없습니다.",connection_success:"연결 요청을 보냈습니다.",exchange_success:"연락처를 교환했습니다.",create_free_account:"무료 Tapni 계정을 만들고 연락처를 최신 상태로 유지하십시오!",connection_edit:"연결 편집",connection_edit_success:"성공적으로 업데이트된 연결",connection_delete_success:"연결을 삭제했습니다.",search:"검색",devices_p1:"장치 호환성 목록",devices_p2:"탭니는 대부분의 최신 아이폰 및 안드로이드와 호환이 가능합니다.",devices_p3:"일부 안드로이드 폰은 NFC가 꺼져 있을 수 있습니다. 탭니가 안드로이드 장치에서 작동하지 않는 경우 설정에서 NFC를 검색하고 켜져 있는지 확인합니다.",devices_p4:"제어 센터에 iOS 14 NFC 위젯 포함",download_p1:"탭니 앱 다운로드",download_p2:"애플 및 안드로이드 기기에서 사용 가능",user_not_found:"사용자를 찾을 수 없음",user_not_found_p:"데이터베이스에서 사용자를 찾을 수 없습니다.🤷",taps:"탭",private_profile:"개인 프로필",private_profile_p:"은 개인 프로필입니다. <br> 프로필은 탭니 태그에서만 사용하며 표시됩니다.",profile_bio_p:"자기 소개를 해주세요.",add_to_contacts:"연락처에 추가",drag_and_drop_links:"링크를 원하는 순서대로 끌어서 놓기",no_links:"프로필에 링크가 없습니다.",add_link:"링크 추가",direct_link_p1:"방문자는 다음으로 자동 이동됩니다:",profile_not_active:"프로필이 현재 활성화되지 않았습니다. <br> 로그인을 해야 볼 수 있어요.",profile_not_public:"프로필이 현재 공개되지 않았습니다. <br> 누르신 분들만 볼 수 있습니다.",activate_profile_now:"프로필 활성화 완료",publish_profile_now:"지금 프로필을 공개하십시오.",link_add_p1:"링크 유형 선택",link_add_not_found:"링크를 찾을 수 없습니다. 🤷",link_add_not_found_p2:"즐겨찾는 플랫폼을 놓치셨다면, 저희에게 이메일을 보내주시기 바랍니다. (<b>support@tapni.com</b>) 아니면 소셜 미디어로 DM을 해주세요.(<b>@tapni</b>)",link_add_not_found_p3:"모든 플랫폼을 지원할 수 있도록 최선을 다하겠습니다. 😉",featured:"피처링",social_media:"소셜 미디어",contact:"연락처",finance:"금융",portfolio:"포트폴리오",music:"음악",business:"비지니스",fun:"재미",ecommerce:"전자상거래",more:"더 보기",email_username:"이메일 / 사용자 이름",username:"사용자 이름",password:"비밀번호",sign_in:"로그인",sign_in_with:"로그인",sign_in_with_new:"새 계정으로 로그인",sign_up_with:"등록하기",select_sign_method:"로그인 방법 선택",verify_account:"계정 확인",terms_by_signing_in:"회원님의 동의로 회원가입을 합니다.",terms_by_registering:"동의하시면 등록하여 주십시오.",terms_by_submitting:"이 양식을 제출하면 서비스 약관에 동의하는 것입니다",terms_of_service:"서비스 약관",and:"그리고",refresh:"새로 고침",privacy_policy:"개인 정보 보호 정책",create_account:"계정 만들기",reset_password:"비밀번호 재설정",reset_password_p1:"암호를 재설정할 수 없으면, <br> 언제든지 다음 주소로 연락하십시오.",reset_password_p2:"암호를 재설정할 수 없으면, <br> 언제든지 다음 주소로 연락하십시오.",create_new_account:"새 계정 만들기",maintenance_p1:"우리는 곧 돌아올 것이다.",maintenance_p2:"그동안 탭니 컬렉션 살펴보기",maintenance_p3:"탭니는 예정된 점검으로 인하여 잠시 중단되었습니다. <br> 몇 분 내로 다시 온라인 상태가 될 것입니다.",offline_p1:"인터넷에 연결되지 않음",offline_p2:"연결을 확인한 다음 페이지를 새로 고치십시오.",offline_p3_1:"오프라인일 때 이 QR 코드를 사용하여 연락처 카드를 공유할 수 있습니다.",offline_p3_2:"",products_p1:"만나는 모든 사람에게 깊은 인상을 남깁니다. 😎 <br> 지금 바로 구입하십시오 👇",cards:"카드",stickers:"스티커",keychains:"키 체인",explore_collection:"컬렉션 탐색",register:"등록",register_success:"거의 다 완료하였습니다. 이메일을 확인해 주세요.",register_success_modal:"다른 계정으로 로그인했습니다.",check_your_inbox:"첫 번째 링크를 추가 해 주세요.",tapni_tags:"탭니 태그",tapni_tags_p1:"프로필에 연결된 태그 구성",tapni_tags_p2:"프로필에 연결된 태그가 없습니다. <br> 지금 연결하세요!",verify_account_p1:"코드를 받지 못한 경우 다음을 확인하십시오. <br> 스팸 폴더 또는 연락주세요:",verify_account_success:"계정을 확인했습니다. 지금 비밀번호를 변경해 주세요.",verify_account_success2:"계정을 확인했습니다. 모두 완료 되었습니다.!🥳",welcome:"반갑습니다.",welcome_p1:"비지니스 카드의 미래까지",how_it_works:"작동 방식",already_registered:"이미 등록되어있습니다",error:"오류",success:"성공",copied:"클립보드에 복사됨",connect_validate:"두 개의 연락처 필드 중 하나를 제공해야 합니다.",connect_validate_name:"이름을 입력하십시오.",connect_validate_email:"유효한 이메일을 입력하세요",link_validate:"잘못된 링크 데이터입니다.",link_text_contact_card:"연락처 카드",link_text_custom_link:"사용자 지정 링크",link_text_menu:"메뉴",link_text_phone:"휴대폰",save_to_apple_wallet:"Apple 지갑에 저장",save_to_google_wallet:"Google 지갑에 저장",card:"카드",sticker:"상표",keychain:"키체인",band:"밴드",case:"사례",standee:"서다",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"오래된 앱 버전이 감지되었습니다",update_p2:"업데이트",update_p3:"앱을 최신 버전으로 업데이트하세요",company_domain:"귀하의 회사 도메인",search_company_domain:"회사 도메인 검색",enter_company_email:"회사 이메일을 입력하세요",company_not_found:"회사를 찾을 수 없음",ik_company_domain:"회사 도메인을 알고 있습니다",idk_company_domain:"회사 도메인을 모릅니다",continue:"계속",forbidden_rule:"이 옵션은 비활성화되어 있습니다. 회사 관리자에게 문의하십시오.",companyName:"회사 이름",createMarkerPlaceholder:"마커 생성 또는 선택",clickToCreateMarker:"마커를 만들려면 여기를 클릭하세요.",pleaseInviteUser:"데이터를 동기화하려면 사용자를 Tapni에 가입하도록 초대하세요.",connectionSynchronized:"연결 데이터가 자동으로 동기화됩니다.",viewProfile:"프로필보기",createConnectionHeader:"새 연결 추가",createConnectionButton:"추가하다",createConnectionSuccess:"연결이 생성되었습니다.",allow_company_management:"회사 관리 허용",company_join_request:"이 귀하의 프로필을 관리하고 이를 기업 계정에 연결하도록 요청하고 있습니다.",account_ownership_transfer:"귀하가 요청을 수락하면 귀하의 계정 소유권이 회사로 이전됩니다. 회사는 귀하의 프로필을 수정하고, 링크를 편집 및 추가하고, 연결을 확인하고, 비밀번호를 수정하고, 계정을 삭제하는 등의 작업을 수행할 수 있습니다. 요청을 수락하기 전에 회사에 확인하십시오.",request_expired:"요청이 만료되었습니다. 회사에 새 요청을 보내도록 요청하십시오.",request_expiration_desc:"보안 강화를 위해 요청은 전송된 후 14일 동안만 작동합니다.",invitation_link_not_valid:"초대 링크가 유효하지 않습니다!",invitation_link_not_valid2:"초대 이메일에서 버튼을 다시 클릭하거나 초대 링크를 복사합니다.",accept_request:"요청 수락",close:"닫다",request_accepted:"요청이 성공적으로 수락되었습니다.",companyEmail:"회사 이메일",companyPhone:"회사 전화",addBusinessInformations:"비즈니스 정보 추가",resetFilter:"초기화",selectMarkers:"마커 선택",filterConnectionsHeader:"필터 연결",selectConnectionType:"연결 유형 선택",all:"모두",direct:"직접",form:"형태",manually:"수동으로",scan:"주사",sortOptions:"정렬 옵션",date:"제작 일",fullName:"성명",descending:"내림차순",ascending:"오름차순",selectDateRange:"날짜 범위 선택",follow_up_reminder:"후속 알림",now:"지금",one_hour:"1 토",one_day:"1 일",three_days:"3 일",one_week:"일주",two_weeks:"이주",one_month:"개월",custom:"시간 선택",set_reminder:"알림 설정",select_date_time:"날짜 및 시간 선택",enter_reminder_text:"알림 텍스트 입력",reminder_created:"알림이 생성되었습니다.",connectionNameLabel:"연결 이름 입력",connectionEmailLabel:"개인 이메일 주소 입력",privatePhoneLabel:"개인 전화번호 입력",companyNameLabel:"회사 이름 입력",businessEmail:"비즈니스 이메일 주소",businessEmailLabel:"비즈니스 이메일 주소 입력",businessPhone:"회사 전화번호",businessPhoneLabel:"회사 전화번호 입력",noteLabel:"메모 입력",markersLabel:"연결 마커 추가",showScan:"스캔 표시",hideScan:"스캔 숨기기",create_connection:"연결 추가",create_manually:"수동으로 추가",create_using_scanner:"카드 스캐너를 사용하여 추가",companyTitle:"회사명",companyTitleLabel:"회사명 입력",allConnectionsLabel:"모든 연결 유형",directConnectionsLabel:"Tapni 사용자와 직접 앱 내 연결",formConnectionsLabel:"연결 양식에 채워진 연결",manualConnectionsLabel:"수동으로 생성된 연결",scanConnectionsLabel:"카드 스캐너가 연결을 생성했습니다.",analyticsHeader:"분석",analyticsProfileViews:"프로필 보기",analyticsLinkClicks:"링크 클릭 수",analyticsClickTroughRatio:"트로프 비율 클릭",analyticsTotalConnections:"총 연결 수",analyticsTopLinks:"가장 인기 있는 링크",analyticsProfileVisits:"프로필 방문",analyticsLinkVisits:"링크 방문",analyticsNewConnections:"새로운 연결",analyticsTopCountries:"상위 국가",analyticsTopReferers:"상위 추천인",please_wait:"잠시만 기다려 주세요...",click_here:"여기를 클릭하세요",if_redirect_not_directly:"리디렉션이 자동으로 수행되지 않는 경우",you_will_be_redirected:"Tapni 애플리케이션으로 리디렉션됩니다.",use_tapni_on_the_web:"웹에서 Tapni 사용하기",login_by_scanning_qr_code:"QR 코드 스캔하여 로그인하기",open_tapni_app_on_your_phone:"1. 휴대폰에서 Tapni 앱 열기",go_to_settings_link_a_device:"2. 설정 > 장치 연결로 이동하기",point_your_phone_at_this_qr_code:"3. 휴대폰을 이 QR 코드에 맞추기",choose_other_login_methods:"다른 로그인 방법 선택하기",no_sso_logins:"귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오.",mfa:"다중 인증(MFA)",otp_title:"계속하려면 MFA 코드를 입력하세요",otp_code:"MFA 코드",otp_subtitle:"인증 앱의 코드를 입력하세요",otp_p1:"MFA 문제 발생 시, <br> 아래로 문의해주세요",change_language:"언어 변경",welcome_account:"계정 센터에 오신 것을 환영합니다",security:"보안",security_p:"인증 옵션 및 계정 상태를 관리하세요",general:"일반",general_p:"개인 정보 및 기타 설정을 관리하세요",billing:"결제",billing_p:"구독 및 결제 프로필을 관리하세요",apps:"앱",apps_p:"활성 앱을 보고 더 많은 기능을 살펴보세요",apps_my:"내 앱",mfa_auth:"2단계 인증",mfa_auth_enabled:"계정이 MFA로 보호 중입니다.",mfa_auth_p:"다중 인증(MFA)으로 무단 접근을 방지하세요",mfa_auth_qr:"위 QR 코드를 스캔하거나 비밀 키를 인증 앱에 입력하세요.",change_password:"비밀번호 변경",active_account:"활성 계정",active_account_p:"끄면, 다시 켤 때까지 계정이 일시 비활성화됩니다.",delete_account:"계정 삭제",delete_account_p:"계정 삭제",permanent_delete:"영구 삭제",permanent_delete_p:"계정을 삭제하면 모든 데이터가 영구 삭제됩니다. 복구 불가. 확신이 없다면 일시 중지를 고려하세요.",personal_details:"개인 정보",app_language_p:"원하는 언어로 앱을 번역하세요",app_region:"지역",app_region_p:"맞춤형 결제 및 지원을 위해 지역을 선택하세요"}},Yi={state:{english:"英語",spanish:"スペイン語",german:"ドイツ語",korean:"韓国語",italian:"イタリア語",french:"フランス語",serbian:"セルビア語",turkish:"トルコ語",chinese:"中国語",japanese:"日本語",portuguese:"ポルトガル語",app_language:"言語",profile_preview:"プロフィールプレビュー",edit_profile:"プロフィール編集",login:"ログイン",referral_reach:"あなたとあなたのリーチについて詳しく教えてください。",referral_apply_placeholder:"Tapniをどのように宣伝する予定ですか?",referral_apply_note:`アカウントにできるだけ多くのリンクを追加してください。<br>
108
108
  あなたが誰であるかを知るために。
109
109
  <br><br>独占的になってください。
110
110
  <br>誰もが受け入れられるわけではありません。😉`,referral_apply_now:"今すぐ申し込む",referral_apply_thanks:"申し込みありがとうございます。間もなく審査いたします!",connect:"接続",with:"と",exchange_contact:"連絡先交換",add_details:"詳細追加",show_details:"詳細表示",download_contact:"連絡先ダウンロード",stay_in_touch:"連絡を取り続ける",no_thanks:"いいえ、結構です",connect_join:"Tapniに参加",connect_with:"連絡先を交換する",connect_required_fields:"2つの連絡先フィールドのうち1つは必須です",name:"名前",first_name:"名",last_name:"姓",email:"メール",phone:"電話番号",phone_p:"電話",company:"会社",address:"住所",website:"ウェブサイト",open:"開く",delete:"削除",confirm:"確認",cancel:"キャンセル",save:"保存",code:"コード",note:"メモ",note_p:"メモを追加",contact_card_icon:"連絡先カードアイコンの下にテキストを設定",contact_card_name:"姓名を入力",contact_card_name_p:"連絡先カード名",contact_card_email:"個人メールアドレスを入力",contact_card_email_p:"連絡先カードメール",contact_card_phone:"個人電話番号を入力",contact_card_phone_p:"連絡先カード電話",contact_card_website:"個人ウェブサイトを入力",contact_card_website_p:"連絡先カードウェブサイト",contact_card_company_name:"会社名を入力",contact_card_company_name_p:"連絡先カード会社名",contact_card_job_title:"職種",contact_card_job_title_p:"職種を入力",contact_card_company_website:"会社ウェブサイト",contact_card_company_website_p:"会社ウェブサイトを入力",contact_card_bio:"連絡先カードの自己紹介を入力",contact_card_bio_p:"連絡先カードの自己紹介を入力",contact_card_home_address:"自宅住所を入力",contact_card_home_address_p:"連絡先カード自宅住所",contact_card_work_address:"勤務先住所を入力",contact_card_work_address_p:"連絡先カード勤務先住所",contact_card_social:"Tapniプロフィールにソーシャルメディアリンクを選択して<br>連絡先カードに追加してください",contact_card_social_p:"連絡先カード用のソーシャルメディアリンクを選択",link_text_p:"リンクテキスト",link_icon:"リンクアイコンの下にテキストを設定",direct_pick:"ダイレクトリンクを選択",direct_p:"誰かの電話をタップすると、<br>フルプロフィールの代わりにこのリンクが開きます。",password_change:"パスワード変更",password_repeat:"パスワード再入力",password_reset_t:"パスワードリセット",password_current:"現在のパスワードを入力",password_current_p:"現在のパスワード",password_new:"新しいパスワードを入力",password_new_p:"新しいパスワード",password_new_repeat:"新しいパスワードを再入力",password_new_repeat_p:"新しいパスワードを再入力",password_update:"パスワード更新",password_reset:`現在のパスワードを思い出せない場合は、<br>
@@ -117,7 +117,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
117
117
  ご質問がある場合は、<br>
118
118
  こちらまでご連絡ください`,referral_p5:"今すぐお金を稼ぎ始めましょう!",referral_p66:"紹介リンクを共有してお金を稼ぎましょう!",referral_p6:`ブロガー、インフルエンサー、ソーシャルメディア愛好家の場合、私たちの紹介プログラムに最適です。
119
119
  私たちのブランドを宣伝し、割引コードや紹介リンクでの購入で20%のコミッションを獲得してください。`,referral_p7:`Tapni紹介プログラムに登録すると、個人の紹介リンクと割引コードを取得できます。
120
- ウェブサイトやソーシャルメディアで共有し、素晴らしい接続体験を提供しながらお金を稼ぎましょう。`,referral_p8:"支払いに関する注意",referral_p9:"Paypal(世界)および銀行振込(EU)<br>最小支払い金額は25€です。",referral_p10:"支払いをリクエスト",referral_p11:"支払いをリクエスト済み",your_connections:"あなたの接続",connections_p1:"出会った人々と連絡を取る",connections_p2:"<br><br>これまで接続はありません。<br>タップしましょう💥",connections_p3:"接続が見つかりません。",connection_success:"接続リクエストが正常に送信されました",exchange_success:"連絡先が正常に交換されました。",create_free_account:"無料のTapniアカウントを作成して、連絡先を最新の状態に保ちましょう!",connection_edit:"接続管理",connection_edit_success:"接続が正常に更新されました",connection_delete_success:"接続が正常に削除されました",search:"検索",devices_p1:"デバイス互換性リスト",devices_p2:"Tapniは、ほとんどの新しいiPhoneおよびAndroidデバイスと互換性のある技術を使用しています。",devices_p3:"一部のAndroid電話では、NFCがオフになっている場合があります。AndroidデバイスでTapniが動作しない場合は、設定でNFCを検索し、オンになっていることを確認してください。",devices_p4:"iOS 14 NFCウィジェットをコントロールセンターで",download_p1:"Tapniアプリをダウンロード",download_p2:"AppleおよびAndroidデバイスで利用可能",user_not_found:"ユーザーが見つかりません",user_not_found_p:"データベースでユーザーを見つけることができませんでした🤷",taps:"タップ",private_profile:"プライベートプロフィール",private_profile_p:"はプライベートプロフィールです。<br>プロフィールはTapniタグでのみ表示されます",profile_bio_p:"あなたやあなたのブランドについて何か書いてください",add_to_contacts:"連絡先に追加",drag_and_drop_links:"リンクを希望の順序にドラッグ&ドロップ",no_links:"プロフィールにリンクがありません。",add_link:"リンク追加",direct_link_p1:"訪問者は自動的に次にリダイレクトされます:",profile_not_active:"プロフィールは現在アクティブではありません<br>ログイン時のみ表示されます。",profile_not_public:"プロフィールは現在公開されていません<br>あなたをタップした人のみが見ることができます。",activate_profile_now:"今すぐプロフィールをアクティベート",publish_profile_now:"今すぐプロフィールを公開",link_add_p1:"リンクタイプを選択",link_add_not_found:"リンクが見つかりません🤷",link_add_not_found_p2:"お気に入りのプラットフォームを見逃した場合は、メール(<b>support@tapni.com</b>)を送信するか、ソーシャルメディア(<b>@tapni</b>)でDMしてください",link_add_not_found_p3:"すべてのプラットフォームをサポートするよう最善を尽くします😉",featured:"注目",social_media:"ソーシャルメディア",contact:"連絡先",finance:"金融",portfolio:"ポートフォリオ",music:"音楽",business:"ビジネス",fun:"楽しい",ecommerce:"eコマース",more:"もっと",email_username:"メール/ユーザー名",username:"ユーザー名",password:"パスワード",sign_in:"サインイン",sign_in_with:"でサインイン",sign_in_with_new:"新しいアカウントでサインイン",sign_up_with:"でサインアップ",select_sign_method:"サインイン方法を選択",verify_account:"アカウント確認",terms_by_signing_in:"サインインすることで、私たちの",terms_by_registering:"登録することで、私たちの",terms_by_submitting:"このフォームを送信することで、利用規約に同意します",terms_of_service:"利用規約",and:"および",refresh:"更新",privacy_policy:"プライバシーポリシー",create_account:"アカウント作成",reset_password:"パスワードリセット",reset_password_p1:"パスワードをリセットできなかった場合は、<br>お気軽にお問い合わせください",reset_password_p2:"パスワードをリセットできなかった場合は、<br>お気軽にお問い合わせください",create_new_account:"新しいアカウントを作成",maintenance_p1:"まもなく復旧します",maintenance_p2:"その間にTapniコレクションを探索してください",maintenance_p3:"Tapniは定期メンテナンスのためダウンしており、<br>数分後にオンラインに戻る予定です。",offline_p1:"インターネット接続なし",offline_p2:"接続を確認してからページを更新してください",offline_p3_1:"オフラインの間、",offline_p3_2:"このQRコードを使用して連絡先カードを共有できます",products_p1:"出会う皆を感動させましょう😎<br>今すぐ入手👇",cards:"カード",stickers:"ステッカー",keychains:"キーチェーン",explore_collection:"コレクション探索",register:"登録",register_success:"もうすぐ完了です。メールを確認してください。",register_success_modal:"別のアカウントで正常にログインしました。",check_your_inbox:"受信ボックスを確認",tapni_tags:"Tapniタグ",tapni_tags_p1:"プロフィールに接続されたタグを設定",tapni_tags_p2:"プロフィールに接続されたタグはありません。<br>今すぐ接続しましょう!",verify_account_p1:"コードを受信しなかった場合は、<br>スパムフォルダを確認するか、お問い合わせください",verify_account_success:"アカウントが正常に確認されました。今すぐパスワードを変更してください。",verify_account_success2:"アカウントが正常に確認されました。準備完了です!🥳",welcome:"ようこそ",welcome_p1:"名刺の未来へ",how_it_works:"仕組み",already_registered:"既に登録済み",error:"エラー",success:"成功",copied:"クリップボードにコピーされました",connect_validate:"2つの連絡先フィールドのうち1つは必須です",connect_validate_name:"名前を入力してください",connect_validate_email:"有効なメールアドレスを入力してください",link_validate:"無効なリンクデータ。",link_text_contact_card:"連絡先カード",link_text_custom_link:"カスタムリンク",link_text_menu:"メニュー",link_text_phone:"電話",save_to_apple_wallet:"Apple Walletに追加",save_to_google_wallet:"Google Walletに追加",card:"カード",sticker:"ステッカー",keychain:"キーチェーン",band:"バンド",case:"ケース",standee:"スタンディー",decoded:"デコード済み",wristbanditz:"リストバンディッツ",update_p1:"古いアプリバージョンが検出されました",update_p2:"更新",update_p3:"アプリを最新バージョンに更新してください",company_domain:"あなたの会社ドメイン",search_company_domain:"会社ドメインを検索",enter_company_email:"ビジネスメールを入力",company_not_found:"会社が見つかりません",ik_company_domain:"会社ドメインを知っています",idk_company_domain:"会社ドメインがわかりません",continue:"続行",forbidden_rule:"このオプションは無効です。会社の管理者にお問い合わせください。",companyName:"会社名",createMarkerPlaceholder:"マーカーを作成または選択",clickToCreateMarker:"ここをクリックしてマーカーを作成",pleaseInviteUser:"同期されたデータを持つために、ユーザーをTapniに招待してください。",connectionSynchronized:"接続データは自動的に同期されます。",viewProfile:"プロフィール表示",createConnectionHeader:"新しい接続を作成",createConnectionButton:"接続作成",createConnectionSuccess:"接続が作成されました。",allow_company_management:"会社管理を許可",company_join_request:"があなたのプロフィールを管理し、エンタープライズアカウントに関連付けることを要求しています。",account_ownership_transfer:"リクエストを承認すると、アカウントの所有権が会社に移転されます。会社はあなたのプロフィールを変更し、リンクを編集・追加し、接続を確認し、パスワードを変更し、アカウントを削除することなどができるようになります。リクエストを承認する前に、必ず会社に確認してください。",request_expired:"リクエストが期限切れです。新しいリクエストを送信するよう会社に依頼してください。",request_expiration_desc:"セキュリティ強化のため、リクエストは送信後14日間のみ有効です。",invitation_link_not_valid:"招待リンクが無効です!",invitation_link_not_valid2:"招待メールのボタンを再度クリックするか、招待リンクをコピーしてください。",accept_request:"リクエストを承認",close:"閉じる",request_accepted:"リクエストが正常に承認されました",companyEmail:"会社メール",companyPhone:"会社電話",addBusinessInformations:"ビジネス情報を追加",resetFilter:"リセット",selectMarkers:"マーカーを選択",filterConnectionsHeader:"接続をフィルター",selectConnectionType:"接続タイプを選択",all:"すべて",direct:"直接",form:"フォーム",manually:"手動",scan:"スキャン",sortOptions:"ソートオプション",date:"作成日",fullName:"フルネーム",descending:"降順",ascending:"昇順",selectDateRange:"日付範囲を選択",follow_up_reminder:"フォローアップリマインダー",now:"今すぐ",one_hour:"1時間",one_day:"1日",three_days:"3日",one_week:"1週間",two_weeks:"2週間",one_month:"1ヶ月",custom:"時間を選択",set_reminder:"リマインダー設定",select_date_time:"日時を選択",enter_reminder_text:"リマインダーテキストを入力",reminder_created:"リマインダーが正常に作成されました",connectionNameLabel:"接続名を入力",connectionEmailLabel:"個人メールアドレスを入力",privatePhoneLabel:"個人電話番号を入力",companyNameLabel:"会社名を入力",businessEmail:"ビジネスメールアドレス",businessEmailLabel:"ビジネスメールアドレスを入力",businessPhone:"ビジネス電話番号",businessPhoneLabel:"ビジネス電話番号を入力",noteLabel:"メモを入力",markersLabel:"接続マーカーを追加",showScan:"スキャン表示",hideScan:"スキャン非表示",create_connection:"接続作成",create_manually:"手動作成",create_using_scanner:"紙の名刺をスキャン",companyTitle:"職種",companyTitleLabel:"職種を入力",allConnectionsLabel:"すべての接続タイプ",directConnectionsLabel:"Tapniユーザーとの直接アプリ内接続",formConnectionsLabel:"接続フォームで入力された接続",manualConnectionsLabel:"手動で作成された接続",scanConnectionsLabel:"カードスキャナーで作成された接続",analyticsHeader:"分析",analyticsProfileViews:"プロフィール閲覧数",analyticsLinkClicks:"リンククリック数",analyticsClickTroughRatio:"クリックスルー率",analyticsTotalConnections:"総接続数",analyticsTopLinks:"最も人気のリンク",analyticsProfileVisits:"プロフィール訪問数",analyticsLinkVisits:"リンク訪問数",analyticsNewConnections:"新しい接続",analyticsTopCountries:"上位国",analyticsTopReferers:"上位リファラー",please_wait:"お待ちください...",click_here:"ここをクリック",if_redirect_not_directly:"リダイレクトが自動的に実行されない場合",you_will_be_redirected:"Tapniアプリケーションにリダイレクトされます。",use_tapni_on_the_web:"ウェブでTapniを使用",login_by_scanning_qr_code:"QRコードをスキャンしてログイン",open_tapni_app_on_your_phone:"1. 電話でTapniアプリを開く",go_to_settings_link_a_device:"2. 設定 > デバイスをリンクに移動",point_your_phone_at_this_qr_code:"3. このQRコードに電話を向ける",choose_other_login_methods:"他のログイン方法を選択",no_sso_logins:"あなたの会社はSSOログインを使用していません。管理者にお問い合わせください",mfa:"多要素認証",otp_title:"続行するにはMFAコードを入力",otp_code:"MFAコード",otp_subtitle:"認証アプリからコードを入力",otp_p1:"MFAに問題がある場合は、<br>お問い合わせください",change_language:"言語変更",welcome_account:"アカウントセンターへようこそ",security:"セキュリティ",security_p:"認証オプションとアカウントステータスを管理",general:"一般",general_p:"個人情報とその他の設定を管理",billing:"請求",billing_p:"サブスクリプションと支払いプロファイルを管理",apps:"アプリ",apps_p:"アクティブなアプリを表示し、他を探索",apps_my:"マイアプリ",mfa_auth:"2要素認証",mfa_auth_enabled:"あなたのアカウントはMFAで保護されています。",mfa_auth_p:"多要素認証(MFA)を有効にして、不正アクセスからアカウントを保護します",mfa_auth_qr:"上記のQRコードをスキャンするか、秘密鍵を認証アプリに入力してください。",change_password:"パスワード変更",active_account:"アクティブアカウント",active_account_p:"オフにすると、再度オンにするまでアカウントが一時的に無効になります。",delete_account:"アカウント削除",delete_account_p:"アカウント削除",permanent_delete:"完全削除",permanent_delete_p:"アカウントを削除すると、すべてのデータが完全に削除されます。この操作は元に戻せません。不明な場合は、アカウントを一時的に無効にできます。",personal_details:"個人情報",app_language_p:"お好みの言語でアプリを翻訳",app_region:"地域",app_region_p:"パーソナライズされた請求とサポート体験のために地域を選択"}},Vi={state:{english:"Inglês",spanish:"Espanhol",german:"Alemão",korean:"Coreano",italian:"Italiano",french:"Francês",serbian:"Sérvio",turkish:"Turco",chinese:"Chinês",japanese:"Japonês",portuguese:"Português",app_language:"Idioma",profile_preview:"Pré-visualização do perfil",edit_profile:"Editar perfil",login:"Entrar",referral_reach:"Forneça-nos mais informações sobre você e seu alcance.",referral_apply_placeholder:"Como você planeja promover a Tapni?",referral_apply_note:`Adicione o máximo possível de links na sua conta, <br>
120
+ ウェブサイトやソーシャルメディアで共有し、素晴らしい接続体験を提供しながらお金を稼ぎましょう。`,referral_p8:"支払いに関する注意",referral_p9:"Paypal(世界)および銀行振込(EU)<br>最小支払い金額は25€です。",referral_p10:"支払いをリクエスト",referral_p11:"支払いをリクエスト済み",your_connections:"あなたの接続",connections_p1:"出会った人々と連絡を取る",connections_p2:"<br><br>これまで接続はありません。<br>タップしましょう💥",connections_p3:"接続が見つかりません。",connection_success:"接続リクエストが正常に送信されました",exchange_success:"連絡先が正常に交換されました。",create_free_account:"無料のTapniアカウントを作成して、連絡先を最新の状態に保ちましょう!",connection_edit:"接続管理",connection_edit_success:"接続が正常に更新されました",connection_delete_success:"接続が正常に削除されました",search:"検索",devices_p1:"デバイス互換性リスト",devices_p2:"Tapniは、ほとんどの新しいiPhoneおよびAndroidデバイスと互換性のある技術を使用しています。",devices_p3:"一部のAndroid電話では、NFCがオフになっている場合があります。AndroidデバイスでTapniが動作しない場合は、設定でNFCを検索し、オンになっていることを確認してください。",devices_p4:"iOS 14 NFCウィジェットをコントロールセンターで",download_p1:"Tapniアプリをダウンロード",download_p2:"AppleおよびAndroidデバイスで利用可能",user_not_found:"ユーザーが見つかりません",user_not_found_p:"データベースでユーザーを見つけることができませんでした🤷",taps:"タップ",private_profile:"プライベートプロフィール",private_profile_p:"はプライベートプロフィールです。<br>プロフィールはTapniタグでのみ表示されます",profile_bio_p:"あなたやあなたのブランドについて何か書いてください",add_to_contacts:"連絡先に追加",drag_and_drop_links:"リンクを希望の順序にドラッグ&ドロップ",no_links:"プロフィールにリンクがありません。",add_link:"リンク追加",direct_link_p1:"訪問者は自動的に次にリダイレクトされます:",profile_not_active:"プロフィールは現在アクティブではありません<br>ログイン時のみ表示されます。",profile_not_public:"プロフィールは現在公開されていません<br>あなたをタップした人のみが見ることができます。",activate_profile_now:"今すぐプロフィールをアクティベート",publish_profile_now:"今すぐプロフィールを公開",link_add_p1:"リンクタイプを選択",link_add_not_found:"リンクが見つかりません🤷",link_add_not_found_p2:"お気に入りのプラットフォームを見逃した場合は、メール(<b>support@tapni.com</b>)を送信するか、ソーシャルメディア(<b>@tapni</b>)でDMしてください",link_add_not_found_p3:"すべてのプラットフォームをサポートするよう最善を尽くします😉",featured:"注目",social_media:"ソーシャルメディア",contact:"連絡先",finance:"金融",portfolio:"ポートフォリオ",music:"音楽",business:"ビジネス",fun:"楽しい",ecommerce:"eコマース",more:"もっと",email_username:"メール/ユーザー名",username:"ユーザー名",password:"パスワード",sign_in:"サインイン",sign_in_with:"でサインイン",sign_in_with_new:"新しいアカウントでサインイン",sign_up_with:"でサインアップ",select_sign_method:"サインイン方法を選択",verify_account:"アカウント確認",terms_by_signing_in:"サインインすることで、私たちの",terms_by_registering:"登録することで、私たちの",terms_by_submitting:"このフォームを送信することで、利用規約に同意します",terms_of_service:"利用規約",and:"および",refresh:"更新",privacy_policy:"プライバシーポリシー",create_account:"アカウント作成",reset_password:"パスワードリセット",reset_password_p1:"パスワードをリセットできなかった場合は、<br>お気軽にお問い合わせください",reset_password_p2:"パスワードをリセットできなかった場合は、<br>お気軽にお問い合わせください",create_new_account:"新しいアカウントを作成",maintenance_p1:"まもなく復旧します",maintenance_p2:"その間にTapniコレクションを探索してください",maintenance_p3:"Tapniは定期メンテナンスのためダウンしており、<br>数分後にオンラインに戻る予定です。",offline_p1:"インターネット接続なし",offline_p2:"接続を確認してからページを更新してください",offline_p3_1:"オフラインの間、",offline_p3_2:"このQRコードを使用して連絡先カードを共有できます",products_p1:"出会う皆を感動させましょう😎<br>今すぐ入手👇",cards:"カード",stickers:"ステッカー",keychains:"キーチェーン",explore_collection:"コレクション探索",register:"登録",register_success:"もうすぐ完了です。メールを確認してください。",register_success_modal:"別のアカウントで正常にログインしました。",check_your_inbox:"受信ボックスを確認",tapni_tags:"Tapniタグ",tapni_tags_p1:"プロフィールに接続されたタグを設定",tapni_tags_p2:"プロフィールに接続されたタグはありません。<br>今すぐ接続しましょう!",verify_account_p1:"コードを受信しなかった場合は、<br>スパムフォルダを確認するか、お問い合わせください",verify_account_success:"アカウントが正常に確認されました。今すぐパスワードを変更してください。",verify_account_success2:"アカウントが正常に確認されました。準備完了です!🥳",welcome:"ようこそ",welcome_p1:"名刺の未来へ",how_it_works:"仕組み",already_registered:"既に登録済み",error:"エラー",success:"成功",copied:"クリップボードにコピーされました",connect_validate:"2つの連絡先フィールドのうち1つは必須です",connect_validate_name:"名前を入力してください",connect_validate_email:"有効なメールアドレスを入力してください",link_validate:"無効なリンクデータ。",link_text_contact_card:"連絡先カード",link_text_custom_link:"カスタムリンク",link_text_menu:"メニュー",link_text_phone:"電話",save_to_apple_wallet:"Apple Walletに追加",save_to_google_wallet:"Google Walletに追加",card:"カード",sticker:"ステッカー",keychain:"キーチェーン",band:"バンド",case:"ケース",standee:"スタンディー",decoded:"デコード済み",wristbanditz:"リストバンディッツ",update_p1:"古いアプリバージョンが検出されました",update_p2:"更新",update_p3:"アプリを最新バージョンに更新してください",company_domain:"あなたの会社ドメイン",search_company_domain:"会社ドメインを検索",enter_company_email:"ビジネスメールを入力",company_not_found:"会社が見つかりません",ik_company_domain:"会社ドメインを知っています",idk_company_domain:"会社ドメインがわかりません",continue:"続行",forbidden_rule:"このオプションは無効です。会社の管理者にお問い合わせください。",companyName:"会社名",createMarkerPlaceholder:"マーカーを作成または選択",clickToCreateMarker:"ここをクリックしてマーカーを作成",pleaseInviteUser:"同期されたデータを持つために、ユーザーをTapniに招待してください。",connectionSynchronized:"接続データは自動的に同期されます。",viewProfile:"プロフィール表示",createConnectionHeader:"新しい接続を作成",createConnectionButton:"接続作成",createConnectionSuccess:"接続が作成されました。",allow_company_management:"会社管理を許可",company_join_request:"があなたのプロフィールを管理し、エンタープライズアカウントに関連付けることを要求しています。",account_ownership_transfer:"リクエストを承認すると、アカウントの所有権が会社に移転されます。会社はあなたのプロフィールを変更し、リンクを編集・追加し、接続を確認し、パスワードを変更し、アカウントを削除することなどができるようになります。リクエストを承認する前に、必ず会社に確認してください。",request_expired:"リクエストが期限切れです。新しいリクエストを送信するよう会社に依頼してください。",request_expiration_desc:"セキュリティ強化のため、リクエストは送信後14日間のみ有効です。",invitation_link_not_valid:"招待リンクが無効です!",invitation_link_not_valid2:"招待メールのボタンを再度クリックするか、招待リンクをコピーしてください。",accept_request:"リクエストを承認",close:"閉じる",request_accepted:"リクエストが正常に承認されました",companyEmail:"会社メール",companyPhone:"会社電話",addBusinessInformations:"ビジネス情報を追加",resetFilter:"リセット",selectMarkers:"マーカーを選択",filterConnectionsHeader:"接続をフィルター",selectConnectionType:"接続タイプを選択",all:"すべて",direct:"直接",form:"フォーム",manually:"手動",scan:"スキャン",sortOptions:"ソートオプション",date:"作成日",fullName:"フルネーム",descending:"降順",ascending:"昇順",selectDateRange:"日付範囲を選択",follow_up_reminder:"フォローアップリマインダー",now:"今すぐ",one_hour:"1時間",one_day:"1日",three_days:"3日",one_week:"1週間",two_weeks:"2週間",one_month:"1ヶ月",custom:"時間を選択",set_reminder:"リマインダー設定",select_date_time:"日時を選択",enter_reminder_text:"リマインダーテキストを入力",reminder_created:"リマインダーが正常に作成されました",connectionNameLabel:"接続名を入力",connectionEmailLabel:"個人メールアドレスを入力",privatePhoneLabel:"個人電話番号を入力",companyNameLabel:"会社名を入力",businessEmail:"ビジネスメールアドレス",businessEmailLabel:"ビジネスメールアドレスを入力",businessPhone:"ビジネス電話番号",businessPhoneLabel:"ビジネス電話番号を入力",noteLabel:"メモを入力",markersLabel:"接続マーカーを追加",showScan:"スキャン表示",hideScan:"スキャン非表示",create_connection:"接続作成",create_manually:"手動作成",create_using_scanner:"紙の名刺をスキャン",companyTitle:"職種",companyTitleLabel:"職種を入力",allConnectionsLabel:"すべての接続タイプ",directConnectionsLabel:"Tapniユーザーとの直接アプリ内接続",formConnectionsLabel:"接続フォームで入力された接続",manualConnectionsLabel:"手動で作成された接続",scanConnectionsLabel:"カードスキャナーで作成された接続",analyticsHeader:"分析",analyticsProfileViews:"プロフィール閲覧数",analyticsLinkClicks:"リンククリック数",analyticsClickTroughRatio:"クリックスルー率",analyticsTotalConnections:"総接続数",analyticsTopLinks:"最も人気のリンク",analyticsProfileVisits:"プロフィール訪問数",analyticsLinkVisits:"リンク訪問数",analyticsNewConnections:"新しい接続",analyticsTopCountries:"上位国",analyticsTopReferers:"上位リファラー",please_wait:"お待ちください...",click_here:"ここをクリック",if_redirect_not_directly:"リダイレクトが自動的に実行されない場合",you_will_be_redirected:"Tapniアプリケーションにリダイレクトされます。",use_tapni_on_the_web:"ウェブでTapniを使用",login_by_scanning_qr_code:"QRコードをスキャンしてログイン",open_tapni_app_on_your_phone:"1. 電話でTapniアプリを開く",go_to_settings_link_a_device:"2. 設定 > デバイスをリンクに移動",point_your_phone_at_this_qr_code:"3. このQRコードに電話を向ける",choose_other_login_methods:"他のログイン方法を選択",no_sso_logins:"あなたの会社はSSOログインを使用していません。管理者にお問い合わせください",mfa:"多要素認証",otp_title:"続行するにはMFAコードを入力",otp_code:"MFAコード",otp_subtitle:"認証アプリからコードを入力",otp_p1:"MFAに問題がある場合は、<br>お問い合わせください",change_language:"言語変更",welcome_account:"アカウントセンターへようこそ",security:"セキュリティ",security_p:"認証オプションとアカウントステータスを管理",general:"一般",general_p:"個人情報とその他の設定を管理",billing:"請求",billing_p:"サブスクリプションと支払いプロファイルを管理",apps:"アプリ",apps_p:"アクティブなアプリを表示し、他を探索",apps_my:"マイアプリ",mfa_auth:"2要素認証",mfa_auth_enabled:"あなたのアカウントはMFAで保護されています。",mfa_auth_p:"多要素認証(MFA)を有効にして、不正アクセスからアカウントを保護します",mfa_auth_qr:"上記のQRコードをスキャンするか、秘密鍵を認証アプリに入力してください。",change_password:"パスワード変更",active_account:"アクティブアカウント",active_account_p:"オフにすると、再度オンにするまでアカウントが一時的に無効になります。",delete_account:"アカウント削除",delete_account_p:"アカウント削除",permanent_delete:"完全削除",permanent_delete_p:"アカウントを削除すると、すべてのデータが完全に削除されます。この操作は元に戻せません。不明な場合は、アカウントを一時的に無効にできます。",personal_details:"個人情報",app_language_p:"お好みの言語でアプリを翻訳",app_region:"地域",app_region_p:"パーソナライズされた請求とサポート体験のために地域を選択"}},Ji={state:{english:"Inglês",spanish:"Espanhol",german:"Alemão",korean:"Coreano",italian:"Italiano",french:"Francês",serbian:"Sérvio",turkish:"Turco",chinese:"Chinês",japanese:"Japonês",portuguese:"Português",app_language:"Idioma",profile_preview:"Pré-visualização do perfil",edit_profile:"Editar perfil",login:"Entrar",referral_reach:"Forneça-nos mais informações sobre você e seu alcance.",referral_apply_placeholder:"Como você planeja promover a Tapni?",referral_apply_note:`Adicione o máximo possível de links na sua conta, <br>
121
121
  para que possamos saber quem você é.
122
122
  <br><br>Seja exclusivo.
123
123
  <br>Nem todos são aceitos.😉`,referral_apply_now:"Inscreva-se agora",referral_apply_thanks:"Obrigado por se inscrever. Analisaremos sua aplicação em breve!",connect:"Conectar",with:"com",exchange_contact:"Trocar contato",add_details:"Adicionar mais",show_details:"Mostrar mais",download_contact:"Baixar contato",stay_in_touch:"Mantenha contato com",no_thanks:"Não, obrigado",connect_join:"Junte-se à Tapni",connect_with:"Trocar contato com",connect_required_fields:"Um dos dois campos de contato deve ser fornecido",name:"Nome",first_name:"Nome",last_name:"Sobrenome",email:"Email",phone:"Número de telefone",phone_p:"Telefone",company:"Empresa",address:"Endereço",website:"Site",open:"Abrir",delete:"Excluir",confirm:"Confirmar",cancel:"Cancelar",save:"Salvar",code:"Código",note:"Nota",note_p:"Adicionar uma nota",contact_card_icon:"Definir texto abaixo do ícone da carta de contato",contact_card_name:"Insira nome e sobrenome",contact_card_name_p:"Nome da carta de contato",contact_card_email:"Insira o email pessoal",contact_card_email_p:"Email da carta de contato",contact_card_phone:"Insira o número de telefone pessoal",contact_card_phone_p:"Telefone da carta de contato",contact_card_website:"Insira o site pessoal",contact_card_website_p:"Site da carta de contato",contact_card_company_name:"Insira o nome da empresa",contact_card_company_name_p:"Nome da empresa da carta de contato",contact_card_job_title:"Cargo",contact_card_job_title_p:"Insira o cargo",contact_card_company_website:"Site da empresa",contact_card_company_website_p:"Insira o site da empresa",contact_card_bio:"Insira a biografia para a carta de contato",contact_card_bio_p:"Insira a biografia para a carta de contato",contact_card_home_address:"Insira o endereço residencial",contact_card_home_address_p:"Endereço residencial da carta de contato",contact_card_work_address:"Insira o endereço de trabalho",contact_card_work_address_p:"Endereço de trabalho da carta de contato",contact_card_social:"Escolha links de redes sociais para o seu perfil Tapni <br>para adicioná-los à carta de contato",contact_card_social_p:"Escolha links de redes sociais para a carta de contato",link_text_p:"Texto do link",link_icon:"Definir texto abaixo do ícone do link",direct_pick:"Escolha um link direto",direct_p:"Quando você encostar no telefone de alguém, <br> este link será aberto em vez do seu perfil completo.",password_change:"Alterar senha",password_repeat:"Repetir senha",password_reset_t:"Redefinir senha",password_current:"Insira sua senha atual",password_current_p:"Senha atual",password_new:"Insira sua nova senha",password_new_p:"Nova senha",password_new_repeat:"Insira novamente sua nova senha",password_new_repeat_p:"Insira novamente sua nova senha",password_update:"Atualização de senha",password_reset:`Se você não lembra sua senha atual,<br>
@@ -130,7 +130,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
130
130
  ou se tiver alguma dúvida,<br>
131
131
  escreva para nós em`,referral_p5:"Comece a ganhar dinheiro agora!",referral_p66:"Compartilhe seu link de indicação e ganhe dinheiro!",referral_p6:`Se você é blogueiro, influenciador ou entusiasta de mídia social, você se encaixa perfeitamente em nosso Programa de Indicação.
132
132
  Promova nossa marca e ganhe 20% de comissão nas compras feitas com seu código de desconto ou link de indicação.`,referral_p7:`Após se registrar no Programa de Indicação da Tapni, você receberá um link e um código de desconto pessoais.
133
- Compartilhe-os no seu site e nas redes sociais, e ganhe dinheiro enquanto oferecemos uma ótima experiência de conexão.`,referral_p8:"Nota de pagamento",referral_p9:"Paypal (Mundo todo) e Transferências bancárias (UE) <br> Valor mínimo para pagamento é 25€.",referral_p10:"Solicitar pagamento",referral_p11:"Pagamento solicitado",your_connections:"Suas conexões",connections_p1:"Entre em contato com as pessoas que você conheceu",connections_p2:"<br><br>Nenhuma conexão até agora. <br> Vamos começar💥",connections_p3:"Nenhuma conexão encontrada.",connection_success:"Solicitação de conexão enviada com sucesso",exchange_success:"Contato trocado com sucesso.",create_free_account:"Crie uma conta gratuita Tapni e mantenha seus contatos atualizados!",connection_edit:"Gerenciar conexão",connection_edit_success:"Conexão atualizada com sucesso",connection_delete_success:"Conexão excluída com sucesso",search:"Buscar",devices_p1:"Lista de compatibilidade de dispositivos",devices_p2:"A Tapni usa tecnologia compatível com a maioria dos iPhones e Androids recentes.",devices_p3:"Alguns Androids podem ter o NFC desligado. Se sua Tapni não funcionar em um Android, procure NFC nas configurações e certifique-se de que está ligado.",devices_p4:"com widget NFC do iOS 14 no centro de controle",download_p1:"Baixe o App Tapni",download_p2:"Disponível para dispositivos Apple e Android",user_not_found:"Usuário não encontrado",user_not_found_p:"Não conseguimos encontrar o usuário em nosso banco de dados🤷",taps:"toques",private_profile:"Perfil privado",private_profile_p:"é um perfil privado. <br> O perfil é visível usando apenas tags Tapni ",profile_bio_p:"Escreva algo sobre você ou sua marca",add_to_contacts:"Adicionar aos contatos",drag_and_drop_links:"Arraste e solte os links na ordem desejada",no_links:"Não há links em seu perfil.",add_link:"Adicionar link",direct_link_p1:"Os visitantes serão redirecionados automaticamente para:",profile_not_active:"Seu perfil atualmente não está ativo <br> e apenas você pode vê-lo quando estiver logado.",profile_not_public:"Seu perfil atualmente não é público <br> e apenas quem te tocar pode vê-lo.",activate_profile_now:"Ative seu perfil agora",publish_profile_now:"Torne seu perfil público agora",link_add_p1:"Escolha um tipo de link",link_add_not_found:"Nenhum link encontrado 🤷",link_add_not_found_p2:"Se sentimos falta da sua plataforma favorita, envie-nos um email (<b>support@tapni.com</b>) ou mensagem nas redes sociais (<b>@tapni</b>)",link_add_not_found_p3:"Faremos o possível para suportar todas as plataformas 😉",featured:"Destaques",social_media:"Redes sociais",contact:"Contato",finance:"Finanças",portfolio:"Portfólio",music:"Música",business:"Negócios",fun:"Diversão",ecommerce:"Ecommerce",more:"Mais",email_username:"Email / Usuário",username:"Nome de usuário",password:"Senha",sign_in:"Entrar",sign_in_with:"Entrar com",sign_in_with_new:"Entrar com nova conta",sign_up_with:"Registrar com",select_sign_method:"Selecione um método de login",verify_account:"Verificar conta",terms_by_signing_in:"Ao entrar, você concorda com nossos",terms_by_registering:"Ao se registrar, você concorda com nossos",terms_by_submitting:"Ao enviar este formulário, você concorda com nossos Termos de Serviço",terms_of_service:"Termos de Serviço",and:"e",refresh:"Atualizar",privacy_policy:"Política de Privacidade",create_account:"Criar conta",reset_password:"Redefinir senha",reset_password_p1:"Se você não conseguiu redefinir sua senha,<br> entre em contato conosco em ",reset_password_p2:"Se você não conseguiu redefinir sua senha,<br> entre em contato conosco em",create_new_account:"Criar nova conta",maintenance_p1:"Voltaremos em breve",maintenance_p2:"Explore as coleções Tapni enquanto isso",maintenance_p3:"A Tapni está em manutenção programada <br> e deve voltar em alguns minutos.",offline_p1:"Sem conexão com a Internet",offline_p2:"Verifique sua conexão e atualize a página",offline_p3_1:"Enquanto estiver offline,",offline_p3_2:"você pode compartilhar sua carta de contato usando este QR code",products_p1:"Impressione todos que você conhece 😎 <br> Garanta já o seu 👇",cards:"Cartões",stickers:"Adesivos",keychains:"Chaveiros",explore_collection:"Explorar coleção",register:"Registrar",register_success:"Você está quase lá. Confirme seu email.",register_success_modal:"Conectado com outra conta com sucesso.",check_your_inbox:"Verifique sua caixa de entrada",tapni_tags:"Tags Tapni",tapni_tags_p1:"Configure tags conectadas ao seu perfil",tapni_tags_p2:"Não há tags conectadas ao seu perfil. <br> Conecte uma agora!",verify_account_p1:"Se você não recebeu um código, verifique sua <br> pasta de spam ou entre em contato conosco em",verify_account_success:"Conta verificada com sucesso. Por favor, altere sua senha agora.",verify_account_success2:"Conta verificada com sucesso. Tudo pronto!🥳",welcome:"Bem-vindo",welcome_p1:"ao futuro dos cartões de visita",how_it_works:"Como funciona",already_registered:"Já registrado",error:"Erro",success:"Sucesso",copied:"Copiado para a área de transferência",connect_validate:"Um dos dois campos de contato deve ser fornecido",connect_validate_name:"Por favor, insira seu nome",connect_validate_email:"Por favor, insira um email válido",link_validate:"Dados do link inválidos.",link_text_contact_card:"Carta de contato",link_text_custom_link:"Link personalizado",link_text_menu:"Menu",link_text_phone:"Telefone",save_to_apple_wallet:"Adicionar ao Apple Wallet",save_to_google_wallet:"Adicionar ao Google Wallet",card:"Cartão",sticker:"Adesivo",keychain:"Chaveiro",band:"Pulseira",case:"Capa",standee:"Totem",decoded:"Decodificado",wristbanditz:"Wristbanditz",update_p1:"Versão desatualizada do app detectada",update_p2:"Atualizar",update_p3:"Atualize o app para a versão mais recente",company_domain:"Domínio da sua empresa",search_company_domain:"Pesquisar domínio da empresa",enter_company_email:"Inserir email corporativo",company_not_found:"Empresa não encontrada",ik_company_domain:"Eu sei o domínio da empresa",idk_company_domain:"Eu não sei o domínio da empresa",continue:"Continuar",forbidden_rule:"Esta opção está desabilitada, contate o administrador da sua empresa.",companyName:"Nome da empresa",createMarkerPlaceholder:"Crie ou selecione um marcador",clickToCreateMarker:"Clique aqui para criar marcador",pleaseInviteUser:"Convide o usuário para ingressar na Tapni para ter dados sincronizados com você.",connectionSynchronized:"Os dados da conexão são sincronizados automaticamente.",viewProfile:"Ver perfil",createConnectionHeader:"Criar nova conexão",createConnectionButton:"Criar conexão",createConnectionSuccess:"Conexão criada.",allow_company_management:"Permitir gestão da empresa",company_join_request:"está solicitando gerenciar seu perfil e associá-lo à conta corporativa.",account_ownership_transfer:"A propriedade da sua conta será transferida para a empresa se você aceitar a solicitação. A empresa poderá modificar seu perfil, editar e adicionar links, ver suas conexões, modificar sua senha, excluir sua conta e muito mais. Certifique-se de verificar com sua empresa antes de aceitar a solicitação.",request_expired:"A solicitação expirou, peça à sua empresa para enviar uma nova.",request_expiration_desc:"Por segurança adicional, a solicitação funcionará apenas por 14 dias após o envio.",invitation_link_not_valid:"O link de convite não é válido!",invitation_link_not_valid2:"Clique novamente no botão do email de convite ou copie o link.",accept_request:"Aceitar solicitação",close:"Fechar",request_accepted:"A solicitação foi aceita com sucesso",companyEmail:"Email da empresa",companyPhone:"Telefone da empresa",addBusinessInformations:"Adicionar informações comerciais",resetFilter:"Redefinir",selectMarkers:"Selecionar marcadores",filterConnectionsHeader:"Filtrar conexões",selectConnectionType:"Selecionar tipo de conexão",all:"Todos",direct:"Direto",form:"Formulário",manually:"Manual",scan:"Digitalizar",sortOptions:"Opções de ordenação",date:"Data de criação",fullName:"Nome completo",descending:"Descendente",ascending:"Ascendente",selectDateRange:"Selecionar período",follow_up_reminder:"Lembrete de acompanhamento",now:"Agora",one_hour:"1 hora",one_day:"1 dia",three_days:"3 dias",one_week:"1 semana",two_weeks:"2 semanas",one_month:"1 mês",custom:"Escolher horário",set_reminder:"Definir lembrete",select_date_time:"Selecione a data e a hora",enter_reminder_text:"Insira o texto do lembrete",reminder_created:"Lembrete criado com sucesso",connectionNameLabel:"Insira o nome da conexão",connectionEmailLabel:"Insira o email privado",privatePhoneLabel:"Insira o telefone privado",companyNameLabel:"Insira o nome da empresa",businessEmail:"Email corporativo",businessEmailLabel:"Insira o email corporativo",businessPhone:"Telefone corporativo",businessPhoneLabel:"Insira o telefone corporativo",noteLabel:"Insira a nota",markersLabel:"Adicionar marcadores de conexão",showScan:"Mostrar digitalização",hideScan:"Ocultar digitalização",create_connection:"Criar conexão",create_manually:"Criar manualmente",create_using_scanner:"Digitalizar cartão de visita",companyTitle:"Cargo",companyTitleLabel:"Insira o cargo",allConnectionsLabel:"Todos os tipos de conexão",directConnectionsLabel:"Conexão direta no app com usuários Tapni",formConnectionsLabel:"Conexões preenchidas no formulário",manualConnectionsLabel:"Conexões criadas manualmente",scanConnectionsLabel:"Conexões criadas pelo scanner de cartões",analyticsHeader:"Análises",analyticsProfileViews:"Visualizações de perfil",analyticsLinkClicks:"Cliques no link",analyticsClickTroughRatio:"Taxa de cliques",analyticsTotalConnections:"Total de conexões",analyticsTopLinks:"Links mais populares",analyticsProfileVisits:"Visitas ao perfil",analyticsLinkVisits:"Visitas ao link",analyticsNewConnections:"Novas conexões",analyticsTopCountries:"Países principais",analyticsTopReferers:"Principais referenciadores",please_wait:"Por favor, aguarde...",click_here:"clique aqui",if_redirect_not_directly:"Se o redirecionamento não for realizado automaticamente",you_will_be_redirected:"Você será redirecionado para o aplicativo Tapni.",use_tapni_on_the_web:"Use Tapni na Web",login_by_scanning_qr_code:"Entre escaneando o QR Code",open_tapni_app_on_your_phone:"1. Abra o app Tapni no seu telefone",go_to_settings_link_a_device:"2. Vá em Configurações > Vincular um dispositivo",point_your_phone_at_this_qr_code:"3. Aponte seu telefone para este QR Code",choose_other_login_methods:"Escolha outros métodos de login",no_sso_logins:"Sua empresa não usa login SSO, por favor contate o administrador",mfa:"Autenticação Multifator",otp_title:"Insira o código MFA para continuar",otp_code:"Código MFA",otp_subtitle:"Insira o código do seu aplicativo autenticador",otp_p1:"Se você tiver problemas com o MFA, <br> contate-nos em",change_language:"Mudar idioma",welcome_account:"Bem-vindo ao Centro de Contas",security:"Segurança",security_p:"Gerencie suas opções de autenticação e status da conta",general:"Geral",general_p:"Gerencie seus dados pessoais e outras preferências",billing:"Faturamento",billing_p:"Gerencie suas assinaturas e perfis de pagamento",apps:"Aplicativos",apps_p:"Veja seus apps ativos e explore outros",apps_my:"Meus apps",mfa_auth:"Autenticação em 2 fatores",mfa_auth_enabled:"Sua conta está protegida por MFA.",mfa_auth_p:"Proteja sua conta contra acesso não autorizado ativando a autenticação multifator (MFA)",mfa_auth_qr:"Escaneie o QR code acima ou insira a chave secreta no seu aplicativo autenticador.",change_password:"Alterar senha",active_account:"Conta ativa",active_account_p:"Quando desativada, sua conta ficará temporariamente desativada até ser reativada.",delete_account:"Excluir conta",delete_account_p:"Excluir conta",permanent_delete:"Exclusão permanente",permanent_delete_p:"Se você excluir sua conta, todos os seus dados serão permanentemente excluídos. Esta ação não pode ser desfeita. Se você não tiver certeza, pode desativar temporariamente sua conta.",personal_details:"Detalhes pessoais",app_language_p:"Traduza o app para o idioma de sua preferência",app_region:"Região",app_region_p:"Selecione sua região para experiência de faturamento e suporte personalizada"}},wr=()=>Promise.resolve().then(()=>ji),Hi=[{path:"/welcome",name:"AuthWelcome",component:wr},{path:"/login",name:"AuthLogin",component:()=>Promise.resolve().then(()=>zs)},{path:"/callback/saml",name:"Callback",alias:["/callback/okta","/callback/auth","/callback/redirect"],component:()=>Promise.resolve().then(()=>op)},{path:"/qr",name:"AuthQR",component:()=>Promise.resolve().then(()=>wp)},{path:"/security",name:"AuthSecurity",component:()=>Promise.resolve().then(()=>td)},{path:"/billing",name:"AuthBilling",component:()=>Promise.resolve().then(()=>Bd)},{path:"/apps",name:"AuthApps",component:()=>Promise.resolve().then(()=>xp)},{path:"/apps/:app",name:"AuthApp",component:()=>Promise.resolve().then(()=>Kp)},{path:"/general",name:"AuthGeneral",component:()=>Promise.resolve().then(()=>ku)},{path:"/account",name:"AuthAccount",component:()=>Promise.resolve().then(()=>hc)},{path:"/reset",name:"AuthReset",component:()=>Promise.resolve().then(()=>Ju)},{path:"/register",name:"AuthRegister",component:()=>Promise.resolve().then(()=>jc)},{path:"/verify",name:"AuthVerify",component:()=>Promise.resolve().then(()=>tl)},{path:"/",name:"404",component:wr}],kr=en.createRouter({history:en.createWebHistory("/"),routes:Hi}),Cr={namespaced:!0,state:{$storex:{},view:"",lang:"en",realm:"app",refreshing:!1,loggedInUserId:"",apiRoot:"",account:{},device:{},loggedInAccounts:{},ssoLang:{en:hr.state,de:mr.state,es:fr.state,fr:gr.state,it:_r.state,sr:vr.state,tr:yr.state,cn:qi.state,kr:br.state,pt:Vi.state,ja:Fi.state},display:"npm",redirect_uri:"https://tapni.com/app/callback/auth",response_type:"token",state:"",allowedOriginsAuth:["https://business.tapni.com","https://business-dev.tapni.com","https://tapni.com","https://tapni.co","https://t.link","https://my.tapni.com","https://my.tapni.co","https://dev.tapni.co","https://dev.tapni.com","https://auth.tapni.com","https://auth.tapni.co","https://dev.mailsign.link","https://mailsign.link","https://sign.tapni.com","https://qrcodetoolkit.com","https://qr.tapni.com","https://designer.tapni.com","https://designer-dev.tapni.com","http://localhost:8080","https://localhost:8080","http://localhost:8081","http://localhost:7777","https://localhost:7777","http://localhost:8086","https://localhost:8085","http://localhost:8085","http://localhost","https://localhost","https://bigeye.tapni.com","https://bigeye-dev.tapni.com"]},mutations:{setAccountSettings(n,e){n.account=e},setStorageItem(n,e){n.$storex[e.name]=e.data},setStorage(n,e){n.$storex={...n.$storex,...e}},setLoggedInAccounts(n,e){n.loggedInAccounts={},e.forEach(t=>{n.loggedInAccounts[t.username]=t})},setLoggedInUserId(n,e){n.loggedInUserId=e},setRefreshTokens(n,e){n.$storex.refreshTokens=e},setRefreshToken(n,e){if(!e)return;let t=n.$storex.refreshTokens?n.$storex.refreshTokens.split(","):[];t=[e,...t.filter(o=>o!==e)],n.$storex.refreshTokens=t.join(",")},setToken(n,e){n.$storex.token=e},updateLang(n,e){n.lang=e},setView(n,e){n.view=e},setRedirectUri(n,e){n.redirect_uri=e},setDisplay(n,e){n.display=e},setState(n,e){n.state=e},setResponseType(n,e){n.response_type=e},setRealm(n,e){n.realm=e},setApiRoot(n,e){n.apiRoot=e},addAllowedOrigin(n,e){n.allowedOriginsAuth.includes(e)||n.allowedOriginsAuth.push(e)}},actions:{async getAccountSettings({state:n,commit:e,dispatch:t}){const[o,r]=await fe(Fe.getAccountSettings());if(o)return t("errorHandler",o);r.data.success&&e("setAccountSettings",r.data.data)},setStorageItem({commit:n},e){n("setStorageItem",e)},setStorage({commit:n},e){n("setStorage",e)},errorHandler({dispatch:n},e){if(e&&e.response&&e.response.data&&e.response.data.error){if(e.response.data.error==="ACCESS_DENIED")return n("logout");if(e.response.data.error==="OTP_REQUIRED")return X.$emit("toggleOTPField",!0);!e.response.data.error.includes("Network Error")&&!e.response.data.error.includes("TOKEN_EXPIRED")&&!e.response.data.error.includes("Cannot read properties")&&n("errorSnack",e.response.data.error)}return e},errorSnack({commit:n},e){let t=document.getElementById("snackbar"),o=document.getElementById("errorMessage"),r=document.getElementById("errorSnack");o.innerHTML=e,t.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},successSnack({commit:n},e){let t=document.getElementById("snackbar"),o=document.getElementById("successMessage"),r=document.getElementById("successSnack");o.innerHTML=e,t.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},closeSnacks({commit:n}){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},async eventLog({commit:n,dispatch:e},t){const[o,r]=await fe(In.eventLog(t));return o?e("errorHandler",o):r},async maintenance({commit:n}){const[e,t]=await fe(mo.get("https://status.tapni.co/data/maintenance.json"));if(e)return console.error(e);if(t){let o=t.data;typeof t.data=="string"&&(o=JSON.parse(t.data)),o.api&&o.api.maintenanceActive&&(location.href="https://t.link/maintenance?msg="+o.api.msg)}},async loginSetup({commit:n,dispatch:e},t){t.data.refreshToken&&n("setRefreshToken",t.data.refreshToken),t.data.token&&n("setToken",t.data.token),n("setLoggedInUserId",t.data.data.id),n("setStorage",{UserId:t.data.data.id,username:t.data.data.username,localUser:t.data.data}),t.isModal===!0&&e("setLoggedInAccounts",[{id:t.data.data.id,username:t.data.data.username,name:t.data.data.name,refreshToken:t.data.refreshToken,photo:t.data.data.photo}])},async switchAccount({commit:n,dispatch:e,state:t},o){t.loggedInAccounts[o]&&(n("setStorage",{username:o,UserId:t.loggedInAccounts[o].id,localUser:t.loggedInAccounts[o]}),n("setLoggedInUserId",t.loggedInAccounts[o].id),n("setRefreshToken",t.loggedInAccounts[o].refreshToken),await e("refreshTokenAction",t.loggedInAccounts[o])),X.$emit("ssoEvent",{name:"switchAccount",data:{username:o}})},async refreshTokenAction({dispatch:n,commit:e,state:t,getters:o},r){if(t.refreshing)return null;t.refreshing=!0;const[i,s]=await fe(Fe.refreshToken({id:r.id,refreshToken:o.refreshTokens[0],refreshTokenAction:!0}));i&&i.response&&i.response.data.error==="ACCESS_DENIED"&&(n("logout",{refreshToken:o.refreshTokens[0]}),setTimeout(()=>location.reload(),1500)),s&&s.data&&(e("setToken",s.data.token),X.$emit("ssoEvent",{name:"setStorage",data:t.$storex})),t.refreshing=!1},async login({commit:n,state:e,dispatch:t},o){const[r,i]=await fe(Fe.login(o));if(r)return t("errorHandler",r);if(i.data.success)return e.display!=="popup"&&(t("loginSetup",{...i,isModal:o.isModal}),await t("getLoggedInAccounts")),t("loginSuccess",{...i,isModal:o.isModal}),!0},loginSuccess({commit:n,state:e,dispatch:t,getters:o},r){if(e.display==="redirect")return e.redirect_uri&&!e.allowedOriginsAuth.some(i=>e.redirect_uri.startsWith(i))?console.error("Redirect URI not allowed"):kr.push("/account");e.display==="popup"?e.allowedOriginsAuth.forEach(i=>{var s;(s=window.parent)==null||s.postMessage({code:r.data.auth_code,state:e.state},i)}):e.display==="npm"&&(X.$emit("ssoEvent",{name:"setLoading",data:!0}),X.$emit("ssoEvent",{name:"setStorage",data:e.$storex}),X.$emit("ssoEvent",{name:"getUser",data:{username:r.data.data.username}}),t("setLoggedInAccounts",[{id:r.data.data.id,username:r.data.data.username,name:r.data.data.name,refreshToken:r.data.refreshToken,photo:r.data.data.photo}]),r.isModal&&(t("successSnack",e.ssoLang[o.appLanguage].success_login),setTimeout(()=>{location.reload()},1500)),X.$emit("ssoEvent",{name:"redirect",data:"/"+r.data.data.username+"#edit"}))},async register({commit:n,dispatch:e},t){const[o,r]=await fe(Fe.register(t));return o?e("errorHandler",o):r},async verify({commit:n,dispatch:e},t){const[o,r]=await fe(Fe.verify(t));return o?e("errorHandler",o):r},async reset({commit:n,state:e,getters:t,dispatch:o},r){const[i,s]=await fe(Fe.sendResetEmail(r));if(i)return o("errorHandler",i);s.data.success&&o("successSnack",e.ssoLang[t.appLanguage].password_reset_success)},async exchangeAuthCode({commit:n,dispatch:e},t){const[o,r]=await fe(Fe.exchangeAuthCode(t));if(o)return e("errorHandler",o);await e("loginSetup",r),await e("getLoggedInAccounts"),e("loginSuccess",r)},async changePassword({commit:n,dispatch:e},t){const[o,r]=await fe(Fe.changePassword(t));return o?e("errorHandler",o):r.data.success},async newPassword({commit:n,dispatch:e},t){const[o,r]=await fe(In.newPassword(t));return o?e("errorHandler",o):r.data.success},async deleteAccount({commit:n,dispatch:e},t){const[o,r]=await fe(In.deleteAccount(t));return o?e("errorHandler",o):r.data.success},async registerDevice({commit:n,dispatch:e}){const t=await fo.Device.getId(),o=await fo.Device.getInfo();let r={device_id:t.uuid,platform:o.platform,device_info:{model:o.model,manufacturer:o.manufacturer,operatingSystem:o.operatingSystem,osVersion:o.osVersion,isVirtual:o.isVirtual,webViewVersion:o.webViewVersion}};const[i,s]=await fe(pr.registerDevice(r));return i?e("errorHandler",i):s},async addFcmToken({commit:n,dispatch:e},t){const[o,r]=await fe(pr.addFcmToken(t));return o?e("errorHandler",o):r},async acceptCompanyInvitation({commit:n,dispatch:e},t){const[o,r]=await fe(ko.acceptCompanyInvitation(t));return o?e("errorHandler",o):r},async logout({commit:n,dispatch:e,state:t},{refreshToken:o,sendRequest:r=!0}){r&&o&&Fe.logout({token:o}),t.$storex&&(t.$storex.username="",t.$storex.UserId="",t.$storex.localUser="",n("setToken","")),n("setLoggedInUserId","");const i=await e("unsetRefreshToken",o);if(i.length>=1)Object.keys(t.loggedInAccounts).forEach(s=>{t.loggedInAccounts[s].refreshToken===i[0]&&(n("setStorage",{username:s,UserId:t.loggedInAccounts[s].id,localUser:t.loggedInAccounts[s]}),n("setRefreshToken",i[0]),n("setLoggedInUserId",t.loggedInAccounts[s].id),e("refreshTokenAction",t.loggedInAccounts[s]).then(()=>{X.$emit("ssoEvent",{name:"switchAccount",data:{username:s}})}))});else{if(t.display==="redirect")return kr.push("/welcome");t.display==="npm"&&X.$emit("ssoEvent",{name:"redirect",data:"/welcome"})}},async getCompanyBySSOEmail({commit:n,dispatch:e},t){const[o,r]=await fe(ko.getBySSOEmail(t.email));if(o)return e("errorHandler",o);if(r.data.success)return r.data},async getLoggedInAccounts({getters:n,dispatch:e}){if(n.refreshTokens&&n.refreshTokens.length>=1){const[t,o]=await fe(Fe.getLoggedInAccounts({refreshTokens:n.refreshTokens}));if(t)return e("errorHandler",t);o&&o.data&&o.data.success&&e("setLoggedInAccounts",o.data.accounts)}},async loginUsingQR({commit:n,dispatch:e},t){const[o,r]=await fe(In.loginUsingQR(t));return o?e("errorHandler",o):r.data.success},setLoggedInAccounts({commit:n},e){n("setLoggedInAccounts",e),X.$emit("ssoEvent",{name:"setLoggedInAccounts",data:e})},setLoggedInUserId({commit:n},e){n("setLoggedInUserId",e)},setRefreshToken({commit:n},e){n("setRefreshToken",e)},async unsetRefreshToken({commit:n,state:e,dispatch:t,getters:o},r){let i=o.refreshTokens;return i=i==null?void 0:i.filter(s=>s!==r),n("setRefreshTokens",i.join(",")),i},setToken({commit:n},e){n("setToken",e)},updateLang({commit:n},e){n("updateLang",e)},setView({commit:n},e){n("setView",e)},setRedirectUri({commit:n},e){n("setRedirectUri",e)},setDisplay({commit:n},e){n("setDisplay",e)},setState({commit:n},e){n("setState",e)},setResponseType({commit:n},e){n("setResponseType",e)},setRealm({commit:n},e){n("setRealm",e)}},getters:{isLoggedIn:n=>!!n.$storex.token&&n.$storex.token!==""&&n.$storex.token!=="null",renderView:(n,e,t)=>{var o;return n.display!=="npm"?(o=t.route)==null?void 0:o.name:n.view},appRealm:n=>n.realm,appLanguage:n=>n.lang,accessToken:n=>n.$storex.token,refreshTokens:n=>n.$storex.refreshTokens.split(","),apiRoot:n=>n.apiRoot}},ft=ar.createStore({modules:{auth:Cr}}),ce=(n=null,e="v1")=>{const t=e;let o="https://api.tapni.com/"+e+"/";ft.getters["auth/apiRoot"]&&(o=ft.getters["auth/apiRoot"]+"/"+e+"/");let r=mo.create({baseURL:o,headers:{Authorization:`Bearer ${ft.getters["auth/accessToken"]}`,"X-Client-Name":"sso-"+t.platform,"X-Client-Version":t.version}});return r.interceptors.request.use(async function(i){if(["post","put","delete"].includes(i.method.toLowerCase())?i.data={...i.data,lang:ft.getters["auth/appLanguage"],realm:ft.getters["auth/appRealm"]||"app"}:i.method.toLowerCase()==="get"&&(i.params={...i.params,lang:ft.getters["auth/appLanguage"],realm:ft.getters["auth/appRealm"]||"app"}),ft.getters["auth/accessToken"]&&!n){const s=or.jwtDecode(ft.getters["auth/accessToken"]);if(s.exp-30<Math.floor(Date.now()/1e3))return ft.dispatch("auth/refreshTokenAction",s).then(()=>(i.headers={...i.headers,Authorization:`Bearer ${ft.getters["auth/accessToken"]}`},i))}return i}),r};let St;fo.Device.getId().then(n=>St=n.uuid);const Fe={register(n){return n.device_id=St,ce().post("/users/register",n)},login(n){return n.device_id=St,ce().post("/users/login",n)},logout(n){return n.device_id=St,ce().post("/users/logout",n)},refreshToken(n){return ce(!0).get(`/users/refresh-token?UserId=${n.id}&token=${n.refreshToken}`)},getLoggedInAccounts(n){return ce().post("/users/tokens",n)},sendResetEmail(n){return n.device_id=St,ce().post("/users/reset",n)},changePassword(n){return ce().put("/users/password",n,{headers:{Authorization:"Bearer "+n.token}})},verify(n){return ce().get("/users/verify",{params:{c:n.code,e:n.email,captchatoken:n.captchaToken}})},googleUrl(n){return ce().get("/users/google/url")},google(n){return n.device_id=St,ce().post("/users/google",n)},googleSDK(n){return n.device_id=St,ce().post("/users/google/sdk",n)},appleSDK(n){return n.device_id=St,ce().post("/users/apple/sdk",n)},microsoftSDK(n){return n.device_id=St,ce().post("/users/microsoft/sdk",n)},oktaSDK(n){return n.device_id=St,ce().post("/users/okta/sdk",n)},samlLoginUrl(n){return ce().post("/saml/url",n)},exchangeAuthCode(n){return ce().post("/users/auth-code",n)},setMfa(n){return ce().post("/users/set-mfa",n)},getAccountSettings(){return ce().get("/users/settings")},async getRecordById(n){return ce().post("/objects/record/"+n.id,n)},async getRecords(n){return ce().post("/objects/records",n)}},Er=tt.registerPlugin("GoogleAuth",{web:()=>Promise.resolve().then(()=>$p).then(n=>new n.GoogleAuthWeb)}),Tr={data(){return{googleLoad:!1}},computed:{displayGoogleLogin(){return!0}},mounted(){Er.initialize()},methods:{async googleLogin(){var t;this.googleLoad=!0;let[n,e]=await fe(Er.signIn());if(n)return this.googleLoad=!1;if(this.referral&&(e.ref=this.referral),e.authentication&&(e.authentication.accessToken||e.authentication.idToken)){this.referral&&(e.ref=this.referral),this.display==="popup"&&(e.response_type="code");const[o,r]=await fe(Fe.googleSDK(e,this.$storex));if(o)return this.googleLoad=!1,X.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(o);if(r.data.success){if(this.display==="popup")return(t=window.parent)==null?void 0:t.postMessage({code:r.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(r),await this.getLoggedInAccounts(),this.loginSuccess({...r,isModal:this.isModal}),setTimeout(()=>{this.googleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.googleLoad=!1,X.$emit("ssoEvent",{name:"setLoading",data:!1})}}},Ki=tt.registerPlugin("SignInWithApple",{web:()=>Promise.resolve().then(()=>Yp).then(n=>new n.SignInWithAppleWeb)}),Sr={data(){return{appleLoad:!1}},computed:{displayAppleLogin(){return Capacitor.isNativePlatform()&&Capacitor.getPlatform()==="ios"||!Capacitor.isNativePlatform()&&this.isiOS}},methods:{async appleLogin(){var t;this.appleLoad=!0;const[n,e]=await fe(Ki.authorize({clientId:"co.tapni.applelogin",redirectURI:"https://"+window.location.host+"/login",scopes:"email name"}));if(n)return this.appleLoad=!1;if(e.response.tokenData=or.jwtDecode(e.response.identityToken),e&&e.response&&e.response.identityToken){this.referral&&(e.response.ref=this.referral),this.display==="popup"&&(e.response_type="code");const[o,r]=await fe(Fe.appleSDK(e.response,this.$storex));if(o)return this.appleLoad=!1,X.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(o);if(r.data.success){if(this.display==="popup")return(t=window.parent)==null?void 0:t.postMessage({code:r.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(r),await this.getLoggedInAccounts(),this.loginSuccess({...r,isModal:this.isModal}),setTimeout(()=>{this.appleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.appleLoad=!1,X.$emit("ssoEvent",{name:"setLoading",data:!1})}}};/*! @azure/msal-browser v2.38.3 2023-10-27 *//*! *****************************************************************************
133
+ Compartilhe-os no seu site e nas redes sociais, e ganhe dinheiro enquanto oferecemos uma ótima experiência de conexão.`,referral_p8:"Nota de pagamento",referral_p9:"Paypal (Mundo todo) e Transferências bancárias (UE) <br> Valor mínimo para pagamento é 25€.",referral_p10:"Solicitar pagamento",referral_p11:"Pagamento solicitado",your_connections:"Suas conexões",connections_p1:"Entre em contato com as pessoas que você conheceu",connections_p2:"<br><br>Nenhuma conexão até agora. <br> Vamos começar💥",connections_p3:"Nenhuma conexão encontrada.",connection_success:"Solicitação de conexão enviada com sucesso",exchange_success:"Contato trocado com sucesso.",create_free_account:"Crie uma conta gratuita Tapni e mantenha seus contatos atualizados!",connection_edit:"Gerenciar conexão",connection_edit_success:"Conexão atualizada com sucesso",connection_delete_success:"Conexão excluída com sucesso",search:"Buscar",devices_p1:"Lista de compatibilidade de dispositivos",devices_p2:"A Tapni usa tecnologia compatível com a maioria dos iPhones e Androids recentes.",devices_p3:"Alguns Androids podem ter o NFC desligado. Se sua Tapni não funcionar em um Android, procure NFC nas configurações e certifique-se de que está ligado.",devices_p4:"com widget NFC do iOS 14 no centro de controle",download_p1:"Baixe o App Tapni",download_p2:"Disponível para dispositivos Apple e Android",user_not_found:"Usuário não encontrado",user_not_found_p:"Não conseguimos encontrar o usuário em nosso banco de dados🤷",taps:"toques",private_profile:"Perfil privado",private_profile_p:"é um perfil privado. <br> O perfil é visível usando apenas tags Tapni ",profile_bio_p:"Escreva algo sobre você ou sua marca",add_to_contacts:"Adicionar aos contatos",drag_and_drop_links:"Arraste e solte os links na ordem desejada",no_links:"Não há links em seu perfil.",add_link:"Adicionar link",direct_link_p1:"Os visitantes serão redirecionados automaticamente para:",profile_not_active:"Seu perfil atualmente não está ativo <br> e apenas você pode vê-lo quando estiver logado.",profile_not_public:"Seu perfil atualmente não é público <br> e apenas quem te tocar pode vê-lo.",activate_profile_now:"Ative seu perfil agora",publish_profile_now:"Torne seu perfil público agora",link_add_p1:"Escolha um tipo de link",link_add_not_found:"Nenhum link encontrado 🤷",link_add_not_found_p2:"Se sentimos falta da sua plataforma favorita, envie-nos um email (<b>support@tapni.com</b>) ou mensagem nas redes sociais (<b>@tapni</b>)",link_add_not_found_p3:"Faremos o possível para suportar todas as plataformas 😉",featured:"Destaques",social_media:"Redes sociais",contact:"Contato",finance:"Finanças",portfolio:"Portfólio",music:"Música",business:"Negócios",fun:"Diversão",ecommerce:"Ecommerce",more:"Mais",email_username:"Email / Usuário",username:"Nome de usuário",password:"Senha",sign_in:"Entrar",sign_in_with:"Entrar com",sign_in_with_new:"Entrar com nova conta",sign_up_with:"Registrar com",select_sign_method:"Selecione um método de login",verify_account:"Verificar conta",terms_by_signing_in:"Ao entrar, você concorda com nossos",terms_by_registering:"Ao se registrar, você concorda com nossos",terms_by_submitting:"Ao enviar este formulário, você concorda com nossos Termos de Serviço",terms_of_service:"Termos de Serviço",and:"e",refresh:"Atualizar",privacy_policy:"Política de Privacidade",create_account:"Criar conta",reset_password:"Redefinir senha",reset_password_p1:"Se você não conseguiu redefinir sua senha,<br> entre em contato conosco em ",reset_password_p2:"Se você não conseguiu redefinir sua senha,<br> entre em contato conosco em",create_new_account:"Criar nova conta",maintenance_p1:"Voltaremos em breve",maintenance_p2:"Explore as coleções Tapni enquanto isso",maintenance_p3:"A Tapni está em manutenção programada <br> e deve voltar em alguns minutos.",offline_p1:"Sem conexão com a Internet",offline_p2:"Verifique sua conexão e atualize a página",offline_p3_1:"Enquanto estiver offline,",offline_p3_2:"você pode compartilhar sua carta de contato usando este QR code",products_p1:"Impressione todos que você conhece 😎 <br> Garanta já o seu 👇",cards:"Cartões",stickers:"Adesivos",keychains:"Chaveiros",explore_collection:"Explorar coleção",register:"Registrar",register_success:"Você está quase lá. Confirme seu email.",register_success_modal:"Conectado com outra conta com sucesso.",check_your_inbox:"Verifique sua caixa de entrada",tapni_tags:"Tags Tapni",tapni_tags_p1:"Configure tags conectadas ao seu perfil",tapni_tags_p2:"Não há tags conectadas ao seu perfil. <br> Conecte uma agora!",verify_account_p1:"Se você não recebeu um código, verifique sua <br> pasta de spam ou entre em contato conosco em",verify_account_success:"Conta verificada com sucesso. Por favor, altere sua senha agora.",verify_account_success2:"Conta verificada com sucesso. Tudo pronto!🥳",welcome:"Bem-vindo",welcome_p1:"ao futuro dos cartões de visita",how_it_works:"Como funciona",already_registered:"Já registrado",error:"Erro",success:"Sucesso",copied:"Copiado para a área de transferência",connect_validate:"Um dos dois campos de contato deve ser fornecido",connect_validate_name:"Por favor, insira seu nome",connect_validate_email:"Por favor, insira um email válido",link_validate:"Dados do link inválidos.",link_text_contact_card:"Carta de contato",link_text_custom_link:"Link personalizado",link_text_menu:"Menu",link_text_phone:"Telefone",save_to_apple_wallet:"Adicionar ao Apple Wallet",save_to_google_wallet:"Adicionar ao Google Wallet",card:"Cartão",sticker:"Adesivo",keychain:"Chaveiro",band:"Pulseira",case:"Capa",standee:"Totem",decoded:"Decodificado",wristbanditz:"Wristbanditz",update_p1:"Versão desatualizada do app detectada",update_p2:"Atualizar",update_p3:"Atualize o app para a versão mais recente",company_domain:"Domínio da sua empresa",search_company_domain:"Pesquisar domínio da empresa",enter_company_email:"Inserir email corporativo",company_not_found:"Empresa não encontrada",ik_company_domain:"Eu sei o domínio da empresa",idk_company_domain:"Eu não sei o domínio da empresa",continue:"Continuar",forbidden_rule:"Esta opção está desabilitada, contate o administrador da sua empresa.",companyName:"Nome da empresa",createMarkerPlaceholder:"Crie ou selecione um marcador",clickToCreateMarker:"Clique aqui para criar marcador",pleaseInviteUser:"Convide o usuário para ingressar na Tapni para ter dados sincronizados com você.",connectionSynchronized:"Os dados da conexão são sincronizados automaticamente.",viewProfile:"Ver perfil",createConnectionHeader:"Criar nova conexão",createConnectionButton:"Criar conexão",createConnectionSuccess:"Conexão criada.",allow_company_management:"Permitir gestão da empresa",company_join_request:"está solicitando gerenciar seu perfil e associá-lo à conta corporativa.",account_ownership_transfer:"A propriedade da sua conta será transferida para a empresa se você aceitar a solicitação. A empresa poderá modificar seu perfil, editar e adicionar links, ver suas conexões, modificar sua senha, excluir sua conta e muito mais. Certifique-se de verificar com sua empresa antes de aceitar a solicitação.",request_expired:"A solicitação expirou, peça à sua empresa para enviar uma nova.",request_expiration_desc:"Por segurança adicional, a solicitação funcionará apenas por 14 dias após o envio.",invitation_link_not_valid:"O link de convite não é válido!",invitation_link_not_valid2:"Clique novamente no botão do email de convite ou copie o link.",accept_request:"Aceitar solicitação",close:"Fechar",request_accepted:"A solicitação foi aceita com sucesso",companyEmail:"Email da empresa",companyPhone:"Telefone da empresa",addBusinessInformations:"Adicionar informações comerciais",resetFilter:"Redefinir",selectMarkers:"Selecionar marcadores",filterConnectionsHeader:"Filtrar conexões",selectConnectionType:"Selecionar tipo de conexão",all:"Todos",direct:"Direto",form:"Formulário",manually:"Manual",scan:"Digitalizar",sortOptions:"Opções de ordenação",date:"Data de criação",fullName:"Nome completo",descending:"Descendente",ascending:"Ascendente",selectDateRange:"Selecionar período",follow_up_reminder:"Lembrete de acompanhamento",now:"Agora",one_hour:"1 hora",one_day:"1 dia",three_days:"3 dias",one_week:"1 semana",two_weeks:"2 semanas",one_month:"1 mês",custom:"Escolher horário",set_reminder:"Definir lembrete",select_date_time:"Selecione a data e a hora",enter_reminder_text:"Insira o texto do lembrete",reminder_created:"Lembrete criado com sucesso",connectionNameLabel:"Insira o nome da conexão",connectionEmailLabel:"Insira o email privado",privatePhoneLabel:"Insira o telefone privado",companyNameLabel:"Insira o nome da empresa",businessEmail:"Email corporativo",businessEmailLabel:"Insira o email corporativo",businessPhone:"Telefone corporativo",businessPhoneLabel:"Insira o telefone corporativo",noteLabel:"Insira a nota",markersLabel:"Adicionar marcadores de conexão",showScan:"Mostrar digitalização",hideScan:"Ocultar digitalização",create_connection:"Criar conexão",create_manually:"Criar manualmente",create_using_scanner:"Digitalizar cartão de visita",companyTitle:"Cargo",companyTitleLabel:"Insira o cargo",allConnectionsLabel:"Todos os tipos de conexão",directConnectionsLabel:"Conexão direta no app com usuários Tapni",formConnectionsLabel:"Conexões preenchidas no formulário",manualConnectionsLabel:"Conexões criadas manualmente",scanConnectionsLabel:"Conexões criadas pelo scanner de cartões",analyticsHeader:"Análises",analyticsProfileViews:"Visualizações de perfil",analyticsLinkClicks:"Cliques no link",analyticsClickTroughRatio:"Taxa de cliques",analyticsTotalConnections:"Total de conexões",analyticsTopLinks:"Links mais populares",analyticsProfileVisits:"Visitas ao perfil",analyticsLinkVisits:"Visitas ao link",analyticsNewConnections:"Novas conexões",analyticsTopCountries:"Países principais",analyticsTopReferers:"Principais referenciadores",please_wait:"Por favor, aguarde...",click_here:"clique aqui",if_redirect_not_directly:"Se o redirecionamento não for realizado automaticamente",you_will_be_redirected:"Você será redirecionado para o aplicativo Tapni.",use_tapni_on_the_web:"Use Tapni na Web",login_by_scanning_qr_code:"Entre escaneando o QR Code",open_tapni_app_on_your_phone:"1. Abra o app Tapni no seu telefone",go_to_settings_link_a_device:"2. Vá em Configurações > Vincular um dispositivo",point_your_phone_at_this_qr_code:"3. Aponte seu telefone para este QR Code",choose_other_login_methods:"Escolha outros métodos de login",no_sso_logins:"Sua empresa não usa login SSO, por favor contate o administrador",mfa:"Autenticação Multifator",otp_title:"Insira o código MFA para continuar",otp_code:"Código MFA",otp_subtitle:"Insira o código do seu aplicativo autenticador",otp_p1:"Se você tiver problemas com o MFA, <br> contate-nos em",change_language:"Mudar idioma",welcome_account:"Bem-vindo ao Centro de Contas",security:"Segurança",security_p:"Gerencie suas opções de autenticação e status da conta",general:"Geral",general_p:"Gerencie seus dados pessoais e outras preferências",billing:"Faturamento",billing_p:"Gerencie suas assinaturas e perfis de pagamento",apps:"Aplicativos",apps_p:"Veja seus apps ativos e explore outros",apps_my:"Meus apps",mfa_auth:"Autenticação em 2 fatores",mfa_auth_enabled:"Sua conta está protegida por MFA.",mfa_auth_p:"Proteja sua conta contra acesso não autorizado ativando a autenticação multifator (MFA)",mfa_auth_qr:"Escaneie o QR code acima ou insira a chave secreta no seu aplicativo autenticador.",change_password:"Alterar senha",active_account:"Conta ativa",active_account_p:"Quando desativada, sua conta ficará temporariamente desativada até ser reativada.",delete_account:"Excluir conta",delete_account_p:"Excluir conta",permanent_delete:"Exclusão permanente",permanent_delete_p:"Se você excluir sua conta, todos os seus dados serão permanentemente excluídos. Esta ação não pode ser desfeita. Se você não tiver certeza, pode desativar temporariamente sua conta.",personal_details:"Detalhes pessoais",app_language_p:"Traduza o app para o idioma de sua preferência",app_region:"Região",app_region_p:"Selecione sua região para experiência de faturamento e suporte personalizada"}},Io=()=>Promise.resolve().then(()=>Qi),Xi=[{path:"/welcome",name:"AuthWelcome",component:Io},{path:"/login",name:"AuthLogin",component:()=>Promise.resolve().then(()=>Vs)},{path:"/callback/saml",name:"Callback",alias:["/callback/okta","/callback/auth","/callback/redirect"],component:()=>Promise.resolve().then(()=>bp)},{path:"/qr",name:"AuthQR",component:()=>Promise.resolve().then(()=>Dp)},{path:"/security",name:"AuthSecurity",component:()=>Promise.resolve().then(()=>_d)},{path:"/billing",name:"AuthBilling",component:()=>Promise.resolve().then(()=>tu)},{path:"/apps",name:"AuthApps",component:()=>Promise.resolve().then(()=>eh)},{path:"/apps/:app",name:"AuthApp",component:()=>Promise.resolve().then(()=>lh)},{path:"/general",name:"AuthGeneral",component:()=>Promise.resolve().then(()=>Fu)},{path:"/account",name:"AuthAccount",component:()=>Promise.resolve().then(()=>bc)},{path:"/reset",name:"AuthReset",component:()=>Promise.resolve().then(()=>fp)},{path:"/register",name:"AuthRegister",component:()=>Promise.resolve().then(()=>Qc)},{path:"/verify",name:"AuthVerify",component:()=>Promise.resolve().then(()=>ll)},{path:"/",name:"404",component:Io}],Ao=cn.createRouter({history:cn.createWebHistory("/"),routes:Xi}),Ro={namespaced:!0,state:{$storex:{},view:"",lang:"en",realm:"app",refreshing:!1,loggedInUserId:"",apiRoot:"",account:{},device:{},loggedInAccounts:{},ssoLang:{en:vo.state,de:wo.state,es:bo.state,fr:ko.state,it:Eo.state,sr:Co.state,tr:To.state,cn:Wi.state,kr:So.state,pt:Ji.state,ja:Yi.state},display:"npm",redirect_uri:"https://tapni.com/app/callback/auth",response_type:"token",state:"",allowedOriginsAuth:["https://business.tapni.com","https://business-dev.tapni.com","https://tapni.com","https://tapni.co","https://t.link","https://my.tapni.com","https://my.tapni.co","https://dev.tapni.co","https://dev.tapni.com","https://auth.tapni.com","https://auth.tapni.co","https://dev.mailsign.link","https://mailsign.link","https://sign.tapni.com","https://qrcodetoolkit.com","https://qr.tapni.com","https://designer.tapni.com","https://designer-dev.tapni.com","http://localhost:8080","https://localhost:8080","http://localhost:8081","http://localhost:7777","https://localhost:7777","http://localhost:8086","https://localhost:8085","http://localhost:8085","http://localhost","https://localhost","https://bigeye.tapni.com","https://bigeye-dev.tapni.com"]},mutations:{setAccountSettings(n,e){n.account=e},setStorageItem(n,e){n.$storex[e.name]=e.data},setStorage(n,e){n.$storex={...n.$storex,...e}},setLoggedInAccounts(n,e){n.loggedInAccounts={},e.forEach(t=>{n.loggedInAccounts[t.username]=t})},setLoggedInUserId(n,e){n.loggedInUserId=e},setRefreshTokens(n,e){n.$storex.refreshTokens=e},setRefreshToken(n,e){if(!e)return;let t=n.$storex.refreshTokens?n.$storex.refreshTokens.split(","):[];t=[e,...t.filter(r=>r!==e)],n.$storex.refreshTokens=t.join(",")},setToken(n,e){n.$storex.token=e},updateLang(n,e){n.lang=e},setView(n,e){n.view=e},setRedirectUri(n,e){n.redirect_uri=e},setDisplay(n,e){n.display=e},setState(n,e){n.state=e},setResponseType(n,e){n.response_type=e},setRealm(n,e){n.realm=e},setApiRoot(n,e){n.apiRoot=e},addAllowedOrigin(n,e){n.allowedOriginsAuth.includes(e)||n.allowedOriginsAuth.push(e)}},actions:{async getAccountSettings({state:n,commit:e,dispatch:t}){const[r,o]=await be($e.getAccountSettings());if(r)return t("errorHandler",r);o.data.success&&e("setAccountSettings",o.data.data)},setStorageItem({commit:n},e){n("setStorageItem",e)},setStorage({commit:n},e){n("setStorage",e)},errorHandler({dispatch:n},e){if(e&&e.response&&e.response.data&&e.response.data.error){if(e.response.data.error==="ACCESS_DENIED")return n("logout");if(e.response.data.error==="OTP_REQUIRED")return J.$emit("toggleOTPField",!0);!e.response.data.error.includes("Network Error")&&!e.response.data.error.includes("TOKEN_EXPIRED")&&!e.response.data.error.includes("Cannot read properties")&&n("errorSnack",e.response.data.error)}return e},errorSnack({commit:n},e){let t=document.getElementById("snackbar"),r=document.getElementById("errorMessage"),o=document.getElementById("errorSnack");r.innerHTML=e,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},successSnack({commit:n},e){let t=document.getElementById("snackbar"),r=document.getElementById("successMessage"),o=document.getElementById("successSnack");r.innerHTML=e,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},closeSnacks({commit:n}){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},async eventLog({commit:n,dispatch:e},t){const[r,o]=await be(Pn.eventLog(t));return r?e("errorHandler",r):o},async maintenance({commit:n}){const[e,t]=await be(_r.get("https://status.tapni.co/data/maintenance.json"));if(e)return console.error(e);if(t){let r=t.data;typeof t.data=="string"&&(r=JSON.parse(t.data)),r.api&&r.api.maintenanceActive&&(location.href="https://t.link/maintenance?msg="+r.api.msg)}},async loginSetup({commit:n,dispatch:e},t){t.data.refreshToken&&n("setRefreshToken",t.data.refreshToken),t.data.token&&n("setToken",t.data.token),n("setLoggedInUserId",t.data.data.id),n("setStorage",{UserId:t.data.data.id,username:t.data.data.username,localUser:t.data.data}),t.isModal===!0&&e("setLoggedInAccounts",[{id:t.data.data.id,username:t.data.data.username,name:t.data.data.name,refreshToken:t.data.refreshToken,photo:t.data.data.photo}])},async switchAccount({commit:n,dispatch:e,state:t},r){t.loggedInAccounts[r]&&(n("setStorage",{username:r,UserId:t.loggedInAccounts[r].id,localUser:t.loggedInAccounts[r]}),n("setLoggedInUserId",t.loggedInAccounts[r].id),n("setRefreshToken",t.loggedInAccounts[r].refreshToken),await e("refreshTokenAction",t.loggedInAccounts[r])),J.$emit("ssoEvent",{name:"switchAccount",data:{username:r}})},async refreshTokenAction({dispatch:n,commit:e,state:t,getters:r},o){if(t.refreshing)return null;t.refreshing=!0;const[i,l]=await be($e.refreshToken({id:o.id,refreshToken:r.refreshTokens[0],refreshTokenAction:!0}));i&&i.response&&i.response.data.error==="ACCESS_DENIED"&&(n("logout",{refreshToken:r.refreshTokens[0]}),setTimeout(()=>location.reload(),1500)),l&&l.data&&(e("setToken",l.data.token),J.$emit("ssoEvent",{name:"setStorage",data:t.$storex})),t.refreshing=!1},async login({commit:n,state:e,dispatch:t},r){const[o,i]=await be($e.login(r));if(o)return t("errorHandler",o);if(i.data.success)return e.display!=="popup"&&(t("loginSetup",{...i,isModal:r.isModal}),await t("getLoggedInAccounts")),t("loginSuccess",{...i,isModal:r.isModal}),!0},loginSuccess({commit:n,state:e,dispatch:t,getters:r},o){if(e.display==="redirect")return e.redirect_uri&&!e.allowedOriginsAuth.some(i=>e.redirect_uri.startsWith(i))?console.error("Redirect URI not allowed"):Ao.push("/account");e.display==="popup"?e.allowedOriginsAuth.forEach(i=>{var l;(l=window.parent)==null||l.postMessage({code:o.data.auth_code,state:e.state},i)}):e.display==="npm"&&(J.$emit("ssoEvent",{name:"setLoading",data:!0}),J.$emit("ssoEvent",{name:"setStorage",data:e.$storex}),J.$emit("ssoEvent",{name:"getUser",data:{username:o.data.data.username}}),t("setLoggedInAccounts",[{id:o.data.data.id,username:o.data.data.username,name:o.data.data.name,refreshToken:o.data.refreshToken,photo:o.data.data.photo}]),o.isModal&&(t("successSnack",e.ssoLang[r.appLanguage].success_login),setTimeout(()=>{location.reload()},1500)),J.$emit("ssoEvent",{name:"redirect",data:"/"+o.data.data.username+"#edit"}))},async register({commit:n,dispatch:e},t){const[r,o]=await be($e.register(t));return r?e("errorHandler",r):o},async verify({commit:n,dispatch:e},t){const[r,o]=await be($e.verify(t));return r?e("errorHandler",r):o},async reset({commit:n,state:e,getters:t,dispatch:r},o){const[i,l]=await be($e.sendResetEmail(o));if(i)return r("errorHandler",i);l.data.success&&r("successSnack",e.ssoLang[t.appLanguage].password_reset_success)},async exchangeAuthCode({commit:n,dispatch:e},t){const[r,o]=await be($e.exchangeAuthCode(t));if(r)return e("errorHandler",r);await e("loginSetup",o),await e("getLoggedInAccounts"),e("loginSuccess",o)},async changePassword({commit:n,dispatch:e},t){const[r,o]=await be($e.changePassword(t));return r?e("errorHandler",r):o.data.success},async newPassword({commit:n,dispatch:e},t){const[r,o]=await be(Pn.newPassword(t));return r?e("errorHandler",r):o.data.success},async deleteAccount({commit:n,dispatch:e},t){const[r,o]=await be(Pn.deleteAccount(t));return r?e("errorHandler",r):o.data.success},async registerDevice({commit:n,dispatch:e}){const t=await yr.Device.getId(),r=await yr.Device.getInfo();let o={device_id:t.uuid,platform:r.platform,device_info:{model:r.model,manufacturer:r.manufacturer,operatingSystem:r.operatingSystem,osVersion:r.osVersion,isVirtual:r.isVirtual,webViewVersion:r.webViewVersion}};const[i,l]=await be(yo.registerDevice(o));return i?e("errorHandler",i):l},async addFcmToken({commit:n,dispatch:e},t){const[r,o]=await be(yo.addFcmToken(t));return r?e("errorHandler",r):o},async acceptCompanyInvitation({commit:n,dispatch:e},t){const[r,o]=await be(Cr.acceptCompanyInvitation(t));return r?e("errorHandler",r):o},async logout({commit:n,dispatch:e,state:t},{refreshToken:r,sendRequest:o=!0}){o&&r&&$e.logout({token:r}),t.$storex&&(t.$storex.username="",t.$storex.UserId="",t.$storex.localUser="",n("setToken","")),n("setLoggedInUserId","");const i=await e("unsetRefreshToken",r);if(i.length>=1)Object.keys(t.loggedInAccounts).forEach(l=>{t.loggedInAccounts[l].refreshToken===i[0]&&(n("setStorage",{username:l,UserId:t.loggedInAccounts[l].id,localUser:t.loggedInAccounts[l]}),n("setRefreshToken",i[0]),n("setLoggedInUserId",t.loggedInAccounts[l].id),e("refreshTokenAction",t.loggedInAccounts[l]).then(()=>{J.$emit("ssoEvent",{name:"switchAccount",data:{username:l}})}))});else{if(t.display==="redirect")return Ao.push("/welcome");t.display==="npm"&&J.$emit("ssoEvent",{name:"redirect",data:"/welcome"})}},async getCompanyBySSOEmail({commit:n,dispatch:e},t){const[r,o]=await be(Cr.getBySSOEmail(t.email));if(r)return e("errorHandler",r);if(o.data.success)return o.data},async getLoggedInAccounts({getters:n,dispatch:e}){if(n.refreshTokens&&n.refreshTokens.length>=1){const[t,r]=await be($e.getLoggedInAccounts({refreshTokens:n.refreshTokens}));if(t)return e("errorHandler",t);r&&r.data&&r.data.success&&e("setLoggedInAccounts",r.data.accounts)}},async loginUsingQR({commit:n,dispatch:e},t){const[r,o]=await be(Pn.loginUsingQR(t));return r?e("errorHandler",r):o.data.success},setLoggedInAccounts({commit:n},e){n("setLoggedInAccounts",e),J.$emit("ssoEvent",{name:"setLoggedInAccounts",data:e})},setLoggedInUserId({commit:n},e){n("setLoggedInUserId",e)},setRefreshToken({commit:n},e){n("setRefreshToken",e)},async unsetRefreshToken({commit:n,state:e,dispatch:t,getters:r},o){let i=r.refreshTokens;return i=i==null?void 0:i.filter(l=>l!==o),n("setRefreshTokens",i.join(",")),i},setToken({commit:n},e){n("setToken",e)},updateLang({commit:n},e){n("updateLang",e)},setView({commit:n},e){n("setView",e)},setRedirectUri({commit:n},e){n("setRedirectUri",e)},setDisplay({commit:n},e){n("setDisplay",e)},setState({commit:n},e){n("setState",e)},setResponseType({commit:n},e){n("setResponseType",e)},setRealm({commit:n},e){n("setRealm",e)}},getters:{isLoggedIn:n=>!!n.$storex.token&&n.$storex.token!==""&&n.$storex.token!=="null",renderView:(n,e,t)=>{var r;return n.display!=="npm"?(r=t.route)==null?void 0:r.name:n.view},appRealm:n=>n.realm,appLanguage:n=>n.lang,accessToken:n=>n.$storex.token,refreshTokens:n=>n.$storex.refreshTokens.split(","),apiRoot:n=>n.apiRoot}},It=uo.createStore({modules:{auth:Ro}}),he=(n=null,e="v1")=>{const t=e;let r="https://api.tapni.com/"+e+"/";It.getters["auth/apiRoot"]&&(r=It.getters["auth/apiRoot"]+"/"+e+"/");let o=_r.create({baseURL:r,headers:{Authorization:`Bearer ${It.getters["auth/accessToken"]}`,"X-Client-Name":"sso-"+t.platform,"X-Client-Version":t.version}});return o.interceptors.request.use(async function(i){if(["post","put","delete"].includes(i.method.toLowerCase())?i.data={...i.data,lang:It.getters["auth/appLanguage"],realm:It.getters["auth/appRealm"]||"app"}:i.method.toLowerCase()==="get"&&(i.params={...i.params,lang:It.getters["auth/appLanguage"],realm:It.getters["auth/appRealm"]||"app"}),It.getters["auth/accessToken"]&&!n){const l=so.jwtDecode(It.getters["auth/accessToken"]);if(l.exp-30<Math.floor(Date.now()/1e3))return It.dispatch("auth/refreshTokenAction",l).then(()=>(i.headers={...i.headers,Authorization:`Bearer ${It.getters["auth/accessToken"]}`},i))}return i}),o};let xt;yr.Device.getId().then(n=>xt=n.uuid);const $e={register(n){return n.device_id=xt,he().post("/users/register",n)},login(n){return n.device_id=xt,he().post("/users/login",n)},logout(n){return n.device_id=xt,he().post("/users/logout",n)},refreshToken(n){return he(!0).get(`/users/refresh-token?UserId=${n.id}&token=${n.refreshToken}`)},getLoggedInAccounts(n){return he().post("/users/tokens",n)},sendResetEmail(n){return n.device_id=xt,he().post("/users/reset",n)},changePassword(n){return he().put("/users/password",n,{headers:{Authorization:"Bearer "+n.token}})},verify(n){return he().get("/users/verify",{params:{c:n.code,e:n.email,captchatoken:n.captchaToken}})},googleUrl(n){return he().get("/users/google/url")},google(n){return n.device_id=xt,he().post("/users/google",n)},googleSDK(n){return n.device_id=xt,he().post("/users/google/sdk",n)},appleSDK(n){return n.device_id=xt,he().post("/users/apple/sdk",n)},microsoftSDK(n){return n.device_id=xt,he().post("/users/microsoft/sdk",n)},oktaSDK(n){return n.device_id=xt,he().post("/users/okta/sdk",n)},samlLoginUrl(n){return he().post("/saml/url",n)},exchangeAuthCode(n){return he().post("/users/auth-code",n)},setMfa(n){return he().post("/users/set-mfa",n)},getAccountSettings(){return he().get("/users/settings")},async getRecordById(n){return he().post("/objects/record/"+n.id,n)},async getRecords(n){return he().post("/objects/records",n)}},No=ct.registerPlugin("GoogleAuth",{web:()=>Promise.resolve().then(()=>uh).then(n=>new n.GoogleAuthWeb)}),Po={data(){return{googleLoad:!1}},computed:{displayGoogleLogin(){return!0}},mounted(){No.initialize()},methods:{async googleLogin(){var t;this.googleLoad=!0;let[n,e]=await be(No.signIn());if(n)return this.googleLoad=!1;if(this.referral&&(e.ref=this.referral),e.authentication&&(e.authentication.accessToken||e.authentication.idToken)){this.referral&&(e.ref=this.referral),this.display==="popup"&&(e.response_type="code");const[r,o]=await be($e.googleSDK(e,this.$storex));if(r)return this.googleLoad=!1,J.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(r);if(o.data.success){if(this.display==="popup")return(t=window.parent)==null?void 0:t.postMessage({code:o.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(o),await this.getLoggedInAccounts(),this.loginSuccess({...o,isModal:this.isModal}),setTimeout(()=>{this.googleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.googleLoad=!1,J.$emit("ssoEvent",{name:"setLoading",data:!1})}}},Zi=ct.registerPlugin("SignInWithApple",{web:()=>Promise.resolve().then(()=>mh).then(n=>new n.SignInWithAppleWeb)}),Mo={data(){return{appleLoad:!1}},computed:{displayAppleLogin(){return Capacitor.isNativePlatform()&&Capacitor.getPlatform()==="ios"||!Capacitor.isNativePlatform()&&this.isiOS}},methods:{async appleLogin(){var t;this.appleLoad=!0;const[n,e]=await be(Zi.authorize({clientId:"co.tapni.applelogin",redirectURI:"https://"+window.location.host+"/login",scopes:"email name"}));if(n)return this.appleLoad=!1;if(e.response.tokenData=so.jwtDecode(e.response.identityToken),e&&e.response&&e.response.identityToken){this.referral&&(e.response.ref=this.referral),this.display==="popup"&&(e.response_type="code");const[r,o]=await be($e.appleSDK(e.response,this.$storex));if(r)return this.appleLoad=!1,J.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(r);if(o.data.success){if(this.display==="popup")return(t=window.parent)==null?void 0:t.postMessage({code:o.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(o),await this.getLoggedInAccounts(),this.loginSuccess({...o,isModal:this.isModal}),setTimeout(()=>{this.appleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.appleLoad=!1,J.$emit("ssoEvent",{name:"setLoading",data:!1})}}};/*! @azure/msal-browser v2.39.0 2024-06-06 *//*! *****************************************************************************
134
134
  Copyright (c) Microsoft Corporation.
135
135
 
136
136
  Permission to use, copy, modify, and/or distribute this software for any
@@ -143,7 +143,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
143
143
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
144
144
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
145
145
  PERFORMANCE OF THIS SOFTWARE.
146
- ***************************************************************************** */var Co=function(n,e){return Co=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])},Co(n,e)};function xe(n,e){Co(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Q=function(){return Q=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++){t=arguments[o];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Q.apply(this,arguments)};function Ir(n,e){var t={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&e.indexOf(o)<0&&(t[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(n);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(n,o[r])&&(t[o[r]]=n[o[r]]);return t}function z(n,e,t,o){function r(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(u){try{h(o.next(u))}catch(g){s(g)}}function l(u){try{h(o.throw(u))}catch(g){s(g)}}function h(u){u.done?i(u.value):r(u.value).then(c,l)}h((o=o.apply(n,[])).next())})}function x(n,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(h){return function(u){return l([h,u])}}function l(h){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,r&&(i=h[0]&2?r.return:h[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,h[1])).done)return i;switch(r=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return t.label++,{value:h[1],done:!1};case 5:t.label++,r=h[1],h=[0];continue;case 7:h=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){t=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]<i[3])){t.label=h[1];break}if(h[0]===6&&t.label<i[1]){t.label=i[1],i=h;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(h);break}i[2]&&t.ops.pop(),t.trys.pop();continue}h=e.call(n,t)}catch(u){h=[6,u],r=0}finally{o=i=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function Gi(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var o=t.call(n),r,i=[],s;try{for(;(e===void 0||e-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(c){s={error:c}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(s)throw s.error}}return i}function Eo(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(Gi(arguments[e]));return n}/*! @azure/msal-common v13.3.1 2023-10-27 *//*! *****************************************************************************
146
+ ***************************************************************************** */var Tr=function(n,e){return Tr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Tr(n,e)};function qe(n,e){Tr(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var $=function(){return $=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$.apply(this,arguments)};function Lo(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(t[r[o]]=n[r[o]]);return t}function x(n,e,t,r){function o(i){return i instanceof t?i:new t(function(l){l(i)})}return new(t||(t=Promise))(function(i,l){function d(u){try{f(r.next(u))}catch(y){l(y)}}function h(u){try{f(r.throw(u))}catch(y){l(y)}}function f(u){u.done?i(u.value):o(u.value).then(d,h)}f((r=r.apply(n,[])).next())})}function B(n,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(u){return h([f,u])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,o=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){t.label=f[1];break}if(f[0]===6&&t.label<i[1]){t.label=i[1],i=f;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(f);break}i[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(n,t)}catch(u){f=[6,u],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function ea(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],l;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(d){l={error:d}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(l)throw l.error}}return i}function Sr(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(ea(arguments[e]));return n}/*! @azure/msal-common v13.3.3 2024-06-06 *//*! *****************************************************************************
147
147
  Copyright (c) Microsoft Corporation.
148
148
 
149
149
  Permission to use, copy, modify, and/or distribute this software for any
@@ -156,12 +156,17 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
156
156
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
157
157
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
158
158
  PERFORMANCE OF THIS SOFTWARE.
159
- ***************************************************************************** */var To=function(n,e){return To=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])},To(n,e)};function Ye(n,e){To(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var he=function(){return he=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++){t=arguments[o];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},he.apply(this,arguments)};function ne(n,e,t,o){function r(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(u){try{h(o.next(u))}catch(g){s(g)}}function l(u){try{h(o.throw(u))}catch(g){s(g)}}function h(u){u.done?i(u.value):r(u.value).then(c,l)}h((o=o.apply(n,[])).next())})}function oe(n,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(h){return function(u){return l([h,u])}}function l(h){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,r&&(i=h[0]&2?r.return:h[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,h[1])).done)return i;switch(r=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return t.label++,{value:h[1],done:!1};case 5:t.label++,r=h[1],h=[0];continue;case 7:h=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){t=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]<i[3])){t.label=h[1];break}if(h[0]===6&&t.label<i[1]){t.label=i[1],i=h;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(h);break}i[2]&&t.ops.pop(),t.trys.pop();continue}h=e.call(n,t)}catch(u){h=[6,u],r=0}finally{o=i=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function $n(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var o=Array(n),r=0,e=0;e<t;e++)for(var i=arguments[e],s=0,c=i.length;s<c;s++,r++)o[r]=i[s];return o}/*! @azure/msal-common v13.3.1 2023-10-27 */var b={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},An=[b.OPENID_SCOPE,b.PROFILE_SCOPE,b.OFFLINE_ACCESS_SCOPE],Ar=$n(An,[b.EMAIL_SCOPE]),ot;(function(n){n.CONTENT_TYPE="Content-Type",n.RETRY_AFTER="Retry-After",n.CCS_HEADER="X-AnchorMailbox",n.WWWAuthenticate="WWW-Authenticate",n.AuthenticationInfo="Authentication-Info",n.X_MS_REQUEST_ID="x-ms-request-id",n.X_MS_HTTP_VERSION="x-ms-httpver"})(ot||(ot={}));var Ne;(function(n){n.ID_TOKEN="idtoken",n.CLIENT_INFO="client.info",n.ADAL_ID_TOKEN="adal.idtoken",n.ERROR="error",n.ERROR_DESC="error.description",n.ACTIVE_ACCOUNT="active-account",n.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(Ne||(Ne={}));var on;(function(n){n.COMMON="common",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers"})(on||(on={}));var ae;(function(n){n.CLIENT_ID="client_id",n.REDIRECT_URI="redirect_uri",n.RESPONSE_TYPE="response_type",n.RESPONSE_MODE="response_mode",n.GRANT_TYPE="grant_type",n.CLAIMS="claims",n.SCOPE="scope",n.ERROR="error",n.ERROR_DESCRIPTION="error_description",n.ACCESS_TOKEN="access_token",n.ID_TOKEN="id_token",n.REFRESH_TOKEN="refresh_token",n.EXPIRES_IN="expires_in",n.STATE="state",n.NONCE="nonce",n.PROMPT="prompt",n.SESSION_STATE="session_state",n.CLIENT_INFO="client_info",n.CODE="code",n.CODE_CHALLENGE="code_challenge",n.CODE_CHALLENGE_METHOD="code_challenge_method",n.CODE_VERIFIER="code_verifier",n.CLIENT_REQUEST_ID="client-request-id",n.X_CLIENT_SKU="x-client-SKU",n.X_CLIENT_VER="x-client-VER",n.X_CLIENT_OS="x-client-OS",n.X_CLIENT_CPU="x-client-CPU",n.X_CLIENT_CURR_TELEM="x-client-current-telemetry",n.X_CLIENT_LAST_TELEM="x-client-last-telemetry",n.X_MS_LIB_CAPABILITY="x-ms-lib-capability",n.X_APP_NAME="x-app-name",n.X_APP_VER="x-app-ver",n.POST_LOGOUT_URI="post_logout_redirect_uri",n.ID_TOKEN_HINT="id_token_hint",n.DEVICE_CODE="device_code",n.CLIENT_SECRET="client_secret",n.CLIENT_ASSERTION="client_assertion",n.CLIENT_ASSERTION_TYPE="client_assertion_type",n.TOKEN_TYPE="token_type",n.REQ_CNF="req_cnf",n.OBO_ASSERTION="assertion",n.REQUESTED_TOKEN_USE="requested_token_use",n.ON_BEHALF_OF="on_behalf_of",n.FOCI="foci",n.CCS_HEADER="X-AnchorMailbox",n.RETURN_SPA_CODE="return_spa_code",n.NATIVE_BROKER="nativebroker",n.LOGOUT_HINT="logout_hint"})(ae||(ae={}));var gn;(function(n){n.ACCESS_TOKEN="access_token",n.XMS_CC="xms_cc"})(gn||(gn={}));var Ve={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},Rn;(function(n){n.ACCOUNT="account",n.SID="sid",n.LOGIN_HINT="login_hint",n.ID_TOKEN="id_token",n.DOMAIN_HINT="domain_hint",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers",n.ACCOUNT_ID="accountIdentifier",n.HOMEACCOUNT_ID="homeAccountIdentifier"})(Rn||(Rn={}));var Rr={PLAIN:"plain",S256:"S256"},Qn;(function(n){n.QUERY="query",n.FRAGMENT="fragment",n.FORM_POST="form_post"})(Qn||(Qn={}));var Wn;(function(n){n.IMPLICIT_GRANT="implicit",n.AUTHORIZATION_CODE_GRANT="authorization_code",n.CLIENT_CREDENTIALS_GRANT="client_credentials",n.RESOURCE_OWNER_PASSWORD_GRANT="password",n.REFRESH_TOKEN_GRANT="refresh_token",n.DEVICE_CODE_GRANT="device_code",n.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(Wn||(Wn={}));var jt;(function(n){n.MSSTS_ACCOUNT_TYPE="MSSTS",n.ADFS_ACCOUNT_TYPE="ADFS",n.MSAV1_ACCOUNT_TYPE="MSA",n.GENERIC_ACCOUNT_TYPE="Generic"})(jt||(jt={}));var Pe;(function(n){n.CACHE_KEY_SEPARATOR="-",n.CLIENT_INFO_SEPARATOR="."})(Pe||(Pe={}));var Z;(function(n){n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",n.REFRESH_TOKEN="RefreshToken"})(Z||(Z={}));var qt;(function(n){n[n.ADFS=1001]="ADFS",n[n.MSA=1002]="MSA",n[n.MSSTS=1003]="MSSTS",n[n.GENERIC=1004]="GENERIC",n[n.ACCESS_TOKEN=2001]="ACCESS_TOKEN",n[n.REFRESH_TOKEN=2002]="REFRESH_TOKEN",n[n.ID_TOKEN=2003]="ID_TOKEN",n[n.APP_METADATA=3001]="APP_METADATA",n[n.UNDEFINED=9999]="UNDEFINED"})(qt||(qt={}));var So="appmetadata",$i="client_info",Nn="1",Pn={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},ut;(function(n){n.CONFIG="config",n.CACHE="cache",n.NETWORK="network",n.HARDCODED_VALUES="hardcoded_values"})(ut||(ut={}));var Be={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},ge;(function(n){n.BEARER="Bearer",n.POP="pop",n.SSH="ssh-cert"})(ge||(ge={}));var Mn={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Nr={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Yn;(function(n){n.username="username",n.password="password"})(Yn||(Yn={}));var _n;(function(n){n[n.httpSuccess=200]="httpSuccess",n[n.httpBadRequest=400]="httpBadRequest"})(_n||(_n={}));var $t;(function(n){n.FAILED_AUTO_DETECTION="1",n.INTERNAL_CACHE="2",n.ENVIRONMENT_VARIABLE="3",n.IMDS="4"})($t||($t={}));var Ln;(function(n){n.CONFIGURED_MATCHES_DETECTED="1",n.CONFIGURED_NO_AUTO_DETECTION="2",n.CONFIGURED_NOT_DETECTED="3",n.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",n.AUTO_DETECTION_REQUESTED_FAILED="5"})(Ln||(Ln={}));var Qt;(function(n){n.NO_CACHE_HIT="0",n.FORCE_REFRESH="1",n.NO_CACHED_ACCESS_TOKEN="2",n.CACHED_ACCESS_TOKEN_EXPIRED="3",n.REFRESH_CACHED_ACCESS_TOKEN="4",n.CLAIMS_REQUESTED_CACHE_SKIPPED="5"})(Qt||(Qt={}));var Io;(function(n){n.Jwt="JWT",n.Jwk="JWK",n.Pop="pop"})(Io||(Io={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var Jn={unexpectedError:{code:"unexpected_error",desc:"Unexpected error in authentication."},postRequestFailed:{code:"post_request_failed",desc:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."}},Y=function(n){Ye(e,n);function e(t,o,r){var i=this,s=o?t+": "+o:t;return i=n.call(this,s)||this,Object.setPrototypeOf(i,e.prototype),i.errorCode=t||b.EMPTY_STRING,i.errorMessage=o||b.EMPTY_STRING,i.subError=r||b.EMPTY_STRING,i.name="AuthError",i}return e.prototype.setCorrelationId=function(t){this.correlationId=t},e.createUnexpectedError=function(t){return new e(Jn.unexpectedError.code,Jn.unexpectedError.desc+": "+t)},e.createPostRequestFailed=function(t){return new e(Jn.postRequestFailed.code,Jn.postRequestFailed.desc+": "+t)},e}(Error);/*! @azure/msal-common v13.3.1 2023-10-27 */var Xn={createNewGuid:function(){var n="Crypto interface - createNewGuid() has not been implemented";throw Y.createUnexpectedError(n)},base64Decode:function(){var n="Crypto interface - base64Decode() has not been implemented";throw Y.createUnexpectedError(n)},base64Encode:function(){var n="Crypto interface - base64Encode() has not been implemented";throw Y.createUnexpectedError(n)},generatePkceCodes:function(){return ne(this,void 0,void 0,function(){var n;return oe(this,function(e){throw n="Crypto interface - generatePkceCodes() has not been implemented",Y.createUnexpectedError(n)})})},getPublicKeyThumbprint:function(){return ne(this,void 0,void 0,function(){var n;return oe(this,function(e){throw n="Crypto interface - getPublicKeyThumbprint() has not been implemented",Y.createUnexpectedError(n)})})},removeTokenBindingKey:function(){return ne(this,void 0,void 0,function(){var n;return oe(this,function(e){throw n="Crypto interface - removeTokenBindingKey() has not been implemented",Y.createUnexpectedError(n)})})},clearKeystore:function(){return ne(this,void 0,void 0,function(){var n;return oe(this,function(e){throw n="Crypto interface - clearKeystore() has not been implemented",Y.createUnexpectedError(n)})})},signJwt:function(){return ne(this,void 0,void 0,function(){var n;return oe(this,function(e){throw n="Crypto interface - signJwt() has not been implemented",Y.createUnexpectedError(n)})})},hashString:function(){return ne(this,void 0,void 0,function(){var n;return oe(this,function(e){throw n="Crypto interface - hashString() has not been implemented",Y.createUnexpectedError(n)})})}};/*! @azure/msal-common v13.3.1 2023-10-27 */var D={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},K=function(n){Ye(e,n);function e(t,o){var r=n.call(this,t,o)||this;return r.name="ClientAuthError",Object.setPrototypeOf(r,e.prototype),r}return e.createClientInfoDecodingError=function(t){return new e(D.clientInfoDecodingError.code,D.clientInfoDecodingError.desc+" Failed with error: "+t)},e.createClientInfoEmptyError=function(){return new e(D.clientInfoEmptyError.code,""+D.clientInfoEmptyError.desc)},e.createTokenParsingError=function(t){return new e(D.tokenParsingError.code,D.tokenParsingError.desc+" Failed with error: "+t)},e.createTokenNullOrEmptyError=function(t){return new e(D.nullOrEmptyToken.code,D.nullOrEmptyToken.desc+" Raw Token Value: "+t)},e.createEndpointDiscoveryIncompleteError=function(t){return new e(D.endpointResolutionError.code,D.endpointResolutionError.desc+" Detail: "+t)},e.createNetworkError=function(t,o){return new e(D.networkError.code,D.networkError.desc+" | Fetch client threw: "+o+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToGetOpenidConfigError=function(t){return new e(D.unableToGetOpenidConfigError.code,D.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+t)},e.createHashNotDeserializedError=function(t){return new e(D.hashNotDeserialized.code,D.hashNotDeserialized.desc+" Given Object: "+t)},e.createInvalidStateError=function(t,o){return new e(D.invalidStateError.code,D.invalidStateError.desc+" Invalid State: "+t+", Root Err: "+o)},e.createStateMismatchError=function(){return new e(D.stateMismatchError.code,D.stateMismatchError.desc)},e.createStateNotFoundError=function(t){return new e(D.stateNotFoundError.code,D.stateNotFoundError.desc+": "+t)},e.createNonceMismatchError=function(){return new e(D.nonceMismatchError.code,D.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(D.authTimeNotFoundError.code,D.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(D.maxAgeTranspiredError.code,D.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(t){return new e(D.nonceNotFoundError.code,D.nonceNotFoundError.desc+": "+t)},e.createMultipleMatchingTokensInCacheError=function(){return new e(D.multipleMatchingTokens.code,D.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(D.multipleMatchingAccounts.code,D.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(D.multipleMatchingAppMetadata.code,D.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(D.tokenRequestCannotBeMade.code,D.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(t){return new e(D.appendEmptyScopeError.code,D.appendEmptyScopeError.desc+" Given Scope: "+t)},e.createRemoveEmptyScopeFromSetError=function(t){return new e(D.removeEmptyScopeError.code,D.removeEmptyScopeError.desc+" Given Scope: "+t)},e.createAppendScopeSetError=function(t){return new e(D.appendScopeSetError.code,D.appendScopeSetError.desc+" Detail Error: "+t)},e.createEmptyInputScopeSetError=function(){return new e(D.emptyInputScopeSetError.code,""+D.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(D.DeviceCodePollingCancelled.code,""+D.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(D.DeviceCodeExpired.code,""+D.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(D.DeviceCodeUnknownError.code,""+D.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(D.NoAccountInSilentRequest.code,""+D.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(D.invalidCacheRecord.code,D.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(D.invalidCacheEnvironment.code,D.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(D.noAccountFound.code,D.noAccountFound.desc)},e.createCachePluginError=function(){return new e(D.CachePluginError.code,""+D.CachePluginError.desc)},e.createNoCryptoObjectError=function(t){return new e(D.noCryptoObj.code,""+D.noCryptoObj.desc+t)},e.createInvalidCacheTypeError=function(){return new e(D.invalidCacheType.code,""+D.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(D.unexpectedAccountType.code,""+D.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(D.unexpectedCredentialType.code,""+D.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(D.invalidAssertion.code,""+D.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(D.invalidClientCredential.code,""+D.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(D.tokenRefreshRequired.code,D.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(D.userTimeoutReached.code,D.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(D.tokenClaimsRequired.code,D.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(D.noAuthorizationCodeFromServer.code,D.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(D.bindingKeyNotRemovedError.code,D.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(D.logoutNotSupported.code,D.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(D.keyIdMissing.code,D.keyIdMissing.desc)},e.createNoNetworkConnectivityError=function(){return new e(D.noNetworkConnectivity.code,D.noNetworkConnectivity.desc)},e.createUserCanceledError=function(){return new e(D.userCanceledError.code,D.userCanceledError.desc)},e}(Y);/*! @azure/msal-common v13.3.1 2023-10-27 */var H=function(){function n(){}return n.decodeAuthToken=function(e){if(n.isEmpty(e))throw K.createTokenNullOrEmptyError(e);var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,o=t.exec(e);if(!o||o.length<4)throw K.createTokenParsingError("Given token is malformed: "+JSON.stringify(e));var r={header:o[1],JWSPayload:o[2],JWSSig:o[3]};return r},n.isEmpty=function(e){return typeof e>"u"||!e||e.length===0},n.isEmptyObj=function(e){if(e&&!n.isEmpty(e))try{var t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0},n.startsWith=function(e,t){return e.indexOf(t)===0},n.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},n.queryStringToObject=function(e){var t={},o=e.split("&"),r=function(i){return decodeURIComponent(i.replace(/\+/g," "))};return o.forEach(function(i){if(i.trim()){var s=i.split(/=(.+)/g,2),c=s[0],l=s[1];c&&l&&(t[r(c)]=r(l))}}),t},n.trimArrayEntries=function(e){return e.map(function(t){return t.trim()})},n.removeEmptyStringsFromArray=function(e){return e.filter(function(t){return!n.isEmpty(t)})},n.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},n.matchPattern=function(e,t){var o=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return o.test(t)},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var ze;(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Verbose=3]="Verbose",n[n.Trace=4]="Trace"})(ze||(ze={}));var Ao=function(){function n(e,t,o){this.level=ze.Info;var r=function(){},i=e||n.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||r,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:ze.Info,this.correlationId=i.correlationId||b.EMPTY_STRING,this.packageName=t||b.EMPTY_STRING,this.packageVersion=o||b.EMPTY_STRING}return n.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:ze.Info}},n.prototype.clone=function(e,t,o){return new n({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:o||this.correlationId},e,t)},n.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var o=new Date().toUTCString(),r;H.isEmpty(t.correlationId)?H.isEmpty(this.correlationId)?r="["+o+"]":r="["+o+"] : ["+this.correlationId+"]":r="["+o+"] : ["+t.correlationId+"]";var i=r+" : "+this.packageName+"@"+this.packageVersion+" : "+ze[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,i,t.containsPii||!1)}},n.prototype.executeCallback=function(e,t,o){this.localCallback&&this.localCallback(e,t,o)},n.prototype.error=function(e,t){this.logMessage(e,{logLevel:ze.Error,containsPii:!1,correlationId:t||b.EMPTY_STRING})},n.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:ze.Error,containsPii:!0,correlationId:t||b.EMPTY_STRING})},n.prototype.warning=function(e,t){this.logMessage(e,{logLevel:ze.Warning,containsPii:!1,correlationId:t||b.EMPTY_STRING})},n.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:ze.Warning,containsPii:!0,correlationId:t||b.EMPTY_STRING})},n.prototype.info=function(e,t){this.logMessage(e,{logLevel:ze.Info,containsPii:!1,correlationId:t||b.EMPTY_STRING})},n.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:ze.Info,containsPii:!0,correlationId:t||b.EMPTY_STRING})},n.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:ze.Verbose,containsPii:!1,correlationId:t||b.EMPTY_STRING})},n.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:ze.Verbose,containsPii:!0,correlationId:t||b.EMPTY_STRING})},n.prototype.trace=function(e,t){this.logMessage(e,{logLevel:ze.Trace,containsPii:!1,correlationId:t||b.EMPTY_STRING})},n.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:ze.Trace,containsPii:!0,correlationId:t||b.EMPTY_STRING})},n.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Pr="@azure/msal-common",Ro="13.3.1";/*! @azure/msal-common v13.3.1 2023-10-27 */var On;(function(n){n[n.None=0]="None",n.AzurePublic="https://login.microsoftonline.com",n.AzurePpe="https://login.windows-ppe.net",n.AzureChina="https://login.chinacloudapi.cn",n.AzureGermany="https://login.microsoftonline.de",n.AzureUsGovernment="https://login.microsoftonline.us"})(On||(On={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var re={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},nonArrayScopesError:{code:"nonarray_input_scopes_error",desc:"Scopes cannot be passed as non-array."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"},authorityMismatch:{code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."}},we=function(n){Ye(e,n);function e(t,o){var r=n.call(this,t,o)||this;return r.name="ClientConfigurationError",Object.setPrototypeOf(r,e.prototype),r}return e.createRedirectUriEmptyError=function(){return new e(re.redirectUriNotSet.code,re.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(re.postLogoutUriNotSet.code,re.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(t){return new e(re.claimsRequestParsingError.code,re.claimsRequestParsingError.desc+" Given value: "+t)},e.createInsecureAuthorityUriError=function(t){return new e(re.authorityUriInsecure.code,re.authorityUriInsecure.desc+" Given URI: "+t)},e.createUrlParseError=function(t){return new e(re.urlParseError.code,re.urlParseError.desc+" Given Error: "+t)},e.createUrlEmptyError=function(){return new e(re.urlEmptyError.code,re.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(re.emptyScopesError.code,""+re.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(t){return new e(re.clientIdSingleScopeError.code,re.clientIdSingleScopeError.desc+" Given Scopes: "+t)},e.createInvalidPromptError=function(t){return new e(re.invalidPrompt.code,re.invalidPrompt.desc+" Given value: "+t)},e.createInvalidClaimsRequestError=function(){return new e(re.invalidClaimsRequest.code,re.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(re.logoutRequestEmptyError.code,re.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(re.tokenRequestEmptyError.code,re.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(re.invalidCodeChallengeMethod.code,re.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(re.invalidCodeChallengeParams.code,re.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(re.invalidCloudDiscoveryMetadata.code,re.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(re.invalidAuthorityMetadata.code,re.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(re.untrustedAuthority.code,re.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(re.invalidAzureCloudInstance.code,re.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(re.missingSshJwk.code,re.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(re.missingSshKid.code,re.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(re.missingNonceAuthenticationHeader.code,re.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(t,o){return new e(re.invalidAuthenticationHeader.code,re.invalidAuthenticationHeader.desc+". Invalid header: "+t+". Details: "+o)},e.createAuthorityMismatchError=function(){return new e(re.authorityMismatch.code,re.authorityMismatch.desc)},e}(K);/*! @azure/msal-common v13.3.1 2023-10-27 */var He=function(){function n(e){var t=this,o=e?H.trimArrayEntries($n(e)):[],r=o?H.removeEmptyStringsFromArray(o):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(function(i){return t.scopes.add(i)})}return n.fromString=function(e){var t=e||b.EMPTY_STRING,o=t.split(" ");return new n(o)},n.createSearchScopes=function(e){var t=new n(e);return t.containsOnlyOIDCScopes()?t.removeScope(b.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t},n.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw we.createEmptyScopesArrayError()},n.prototype.containsScope=function(e){var t=this.printScopesLowerCase().split(" "),o=new n(t);return H.isEmpty(e)?!1:o.scopes.has(e.toLowerCase())},n.prototype.containsScopeSet=function(e){var t=this;return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(function(o){return t.containsScope(o)})},n.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return Ar.forEach(function(o){e.containsScope(o)&&(t+=1)}),this.scopes.size===t},n.prototype.appendScope=function(e){H.isEmpty(e)||this.scopes.add(e.trim())},n.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(o){return t.appendScope(o)})}catch(o){throw K.createAppendScopeSetError(o)}},n.prototype.removeScope=function(e){if(H.isEmpty(e))throw K.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},n.prototype.removeOIDCScopes=function(){var e=this;Ar.forEach(function(t){e.scopes.delete(t)})},n.prototype.unionScopeSets=function(e){if(!e)throw K.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach(function(o){return t.add(o.toLowerCase())}),this.scopes.forEach(function(o){return t.add(o.toLowerCase())}),t},n.prototype.intersectingScopeSets=function(e){if(!e)throw K.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),o=e.getScopeCount(),r=this.getScopeCount(),i=t.size;return i<r+o},n.prototype.getScopeCount=function(){return this.scopes.size},n.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(t){return e.push(t)}),e},n.prototype.printScopes=function(){if(this.scopes){var e=this.asArray();return e.join(" ")}return b.EMPTY_STRING},n.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */function Zn(n,e){if(H.isEmpty(n))throw K.createClientInfoEmptyError();try{var t=e.base64Decode(n);return JSON.parse(t)}catch(o){throw K.createClientInfoDecodingError(o.message)}}function vn(n){if(H.isEmpty(n))throw K.createClientInfoDecodingError("Home account ID was empty.");var e=n.split(Pe.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?b.EMPTY_STRING:e[1]}}/*! @azure/msal-common v13.3.1 2023-10-27 */var $e;(function(n){n[n.Default=0]="Default",n[n.Adfs=1]="Adfs",n[n.Dsts=2]="Dsts",n[n.Ciam=3]="Ciam"})($e||($e={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var Ue=function(){function n(){}return n.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(Pe.CACHE_KEY_SEPARATOR).toLowerCase()},n.prototype.generateAccountKey=function(){return n.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},n.prototype.generateType=function(){switch(this.authorityType){case jt.ADFS_ACCOUNT_TYPE:return qt.ADFS;case jt.MSAV1_ACCOUNT_TYPE:return qt.MSA;case jt.MSSTS_ACCOUNT_TYPE:return qt.MSSTS;case jt.GENERIC_ACCOUNT_TYPE:return qt.GENERIC;default:throw K.createUnexpectedAccountTypeError()}},n.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},n.generateAccountCacheKey=function(e){var t=[e.homeAccountId,e.environment||b.EMPTY_STRING,e.tenantId||b.EMPTY_STRING];return t.join(Pe.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAccount=function(e,t,o,r,i,s,c,l){var h,u,g,f,w,C,P=new n;P.authorityType=jt.MSSTS_ACCOUNT_TYPE,P.clientInfo=e,P.homeAccountId=t,P.nativeAccountId=l;var M=c||r&&r.getPreferredCache();if(!M)throw K.createInvalidCacheEnvironmentError();if(P.environment=M,P.realm=((h=o==null?void 0:o.claims)===null||h===void 0?void 0:h.tid)||b.EMPTY_STRING,o){P.idTokenClaims=o.claims,P.localAccountId=((u=o==null?void 0:o.claims)===null||u===void 0?void 0:u.oid)||((g=o==null?void 0:o.claims)===null||g===void 0?void 0:g.sub)||b.EMPTY_STRING;var j=(f=o==null?void 0:o.claims)===null||f===void 0?void 0:f.preferred_username,N=!((w=o==null?void 0:o.claims)===null||w===void 0)&&w.emails?o.claims.emails[0]:null;P.username=j||N||b.EMPTY_STRING,P.name=(C=o==null?void 0:o.claims)===null||C===void 0?void 0:C.name}return P.cloudGraphHostName=i,P.msGraphHost=s,P},n.createGenericAccount=function(e,t,o,r,i,s){var c,l,h,u,g=new n;g.authorityType=o&&o.authorityType===$e.Adfs?jt.ADFS_ACCOUNT_TYPE:jt.GENERIC_ACCOUNT_TYPE,g.homeAccountId=e,g.realm=b.EMPTY_STRING;var f=s||o&&o.getPreferredCache();if(!f)throw K.createInvalidCacheEnvironmentError();return t&&(g.localAccountId=((c=t==null?void 0:t.claims)===null||c===void 0?void 0:c.oid)||((l=t==null?void 0:t.claims)===null||l===void 0?void 0:l.sub)||b.EMPTY_STRING,g.username=((h=t==null?void 0:t.claims)===null||h===void 0?void 0:h.upn)||b.EMPTY_STRING,g.name=((u=t==null?void 0:t.claims)===null||u===void 0?void 0:u.name)||b.EMPTY_STRING,g.idTokenClaims=t==null?void 0:t.claims),g.environment=f,g.cloudGraphHostName=r,g.msGraphHost=i,g},n.generateHomeAccountId=function(e,t,o,r,i){var s,c=!((s=i==null?void 0:i.claims)===null||s===void 0)&&s.sub?i.claims.sub:b.EMPTY_STRING;if(t===$e.Adfs||t===$e.Dsts)return c;if(e)try{var l=Zn(e,r);if(!H.isEmpty(l.uid)&&!H.isEmpty(l.utid))return""+l.uid+Pe.CLIENT_INFO_SEPARATOR+l.utid}catch{}return o.verbose("No client info in response"),c},n.isAccountEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1},n.accountInfoIsEqual=function(e,t,o){if(!e||!t)return!1;var r=!0;if(o){var i=e.idTokenClaims||{},s=t.idTokenClaims||{};r=i.iat===s.iat&&i.nonce===s.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&r},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var It=function(){function n(e,t){if(H.isEmpty(e))throw K.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=n.extractTokenClaims(e,t)}return n.extractTokenClaims=function(e,t){var o=H.decodeAuthToken(e);try{var r=o.JWSPayload,i=t.base64Decode(r);return JSON.parse(i)}catch(s){throw K.createTokenParsingError(s)}},n.checkMaxAge=function(e,t){var o=3e5;if(t===0||Date.now()-o>e+t)throw K.createMaxAgeTranspiredError()},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Je=function(){function n(e,t,o){this.clientId=e,this.cryptoImpl=t,this.commonLogger=o.clone(Pr,Ro)}return n.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();if(t.length<1)return[];var o=t.reduce(function(i,s){var c=e.getAccount(s);return c&&i.push(c),i},[]);if(o.length<1)return[];var r=o.map(function(i){return e.getAccountInfoFromEntity(i)});return r},n.prototype.getAccountInfoFilteredBy=function(e){var t=this.getAccountsFilteredBy(e);return t.length>0?this.getAccountInfoFromEntity(t[0]):null},n.prototype.getAccountInfoFromEntity=function(e){var t=e.getAccountInfo(),o=this.getIdToken(t);return o&&(t.idToken=o.secret,t.idTokenClaims=new It(o.secret,this.cryptoImpl).claims),t},n.prototype.saveCacheRecord=function(e){return ne(this,void 0,void 0,function(){return oe(this,function(t){switch(t.label){case 0:if(!e)throw K.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAccessToken(e.accessToken)]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}})})},n.prototype.saveAccessToken=function(e){return ne(this,void 0,void 0,function(){var t,o,r,i,s=this;return oe(this,function(c){switch(c.label){case 0:return t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},o=this.getTokenKeys(),r=He.fromString(e.target),i=[],o.accessToken.forEach(function(l){if(s.accessTokenKeyMatchesFilter(l,t,!1)){var h=s.getAccessTokenCredential(l);if(h&&s.credentialMatchesFilter(h,t)){var u=He.fromString(h.target);u.intersectingScopeSets(r)&&i.push(s.removeAccessToken(l))}}}),[4,Promise.all(i)];case 1:return c.sent(),this.setAccessTokenCredential(e),[2]}})})},n.prototype.getAccountsFilteredBy=function(e){var t=this,o=this.getAccountKeys(),r=[];return o.forEach(function(i){if(t.isAccountKey(i,e.homeAccountId,e.realm)){var s=t.getAccount(i);s&&(e.homeAccountId&&!t.matchHomeAccountId(s,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(s,e.localAccountId)||e.username&&!t.matchUsername(s,e.username)||e.environment&&!t.matchEnvironment(s,e.environment)||e.realm&&!t.matchRealm(s,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(s,e.nativeAccountId)||r.push(s))}}),r},n.prototype.isAccountKey=function(e,t,o){return!(e.split(Pe.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||o&&!e.toLowerCase().includes(o.toLowerCase()))},n.prototype.isCredentialKey=function(e){if(e.split(Pe.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(t.indexOf(Z.ID_TOKEN.toLowerCase())===-1&&t.indexOf(Z.ACCESS_TOKEN.toLowerCase())===-1&&t.indexOf(Z.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&t.indexOf(Z.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(t.indexOf(Z.REFRESH_TOKEN.toLowerCase())>-1){var o=""+Z.REFRESH_TOKEN+Pe.CACHE_KEY_SEPARATOR+this.clientId+Pe.CACHE_KEY_SEPARATOR,r=""+Z.REFRESH_TOKEN+Pe.CACHE_KEY_SEPARATOR+Nn+Pe.CACHE_KEY_SEPARATOR;if(t.indexOf(o.toLowerCase())===-1&&t.indexOf(r.toLowerCase())===-1)return!1}else if(t.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0},n.prototype.credentialMatchesFilter=function(e,t){return!(t.clientId&&!this.matchClientId(e,t.clientId)||t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash)||typeof t.homeAccountId=="string"&&!this.matchHomeAccountId(e,t.homeAccountId)||t.environment&&!this.matchEnvironment(e,t.environment)||t.realm&&!this.matchRealm(e,t.realm)||t.credentialType&&!this.matchCredentialType(e,t.credentialType)||t.familyId&&!this.matchFamilyId(e,t.familyId)||t.target&&!this.matchTarget(e,t.target)||(t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash||e.credentialType===Z.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===ge.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId)))},n.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},n.prototype.getAppMetadataFilteredByInternal=function(e,t){var o=this,r=this.getKeys(),i={};return r.forEach(function(s){if(o.isAppMetadata(s)){var c=o.getAppMetadata(s);c&&(e&&!o.matchEnvironment(c,e)||t&&!o.matchClientId(c,t)||(i[s]=c))}}),i},n.prototype.getAuthorityMetadataByAlias=function(e){var t=this,o=this.getAuthorityMetadataKeys(),r=null;return o.forEach(function(i){if(!(!t.isAuthorityMetadata(i)||i.indexOf(t.clientId)===-1)){var s=t.getAuthorityMetadata(i);s&&s.aliases.indexOf(e)!==-1&&(r=s)}}),r},n.prototype.removeAllAccounts=function(){return ne(this,void 0,void 0,function(){var e,t,o=this;return oe(this,function(r){switch(r.label){case 0:return e=this.getAccountKeys(),t=[],e.forEach(function(i){t.push(o.removeAccount(i))}),[4,Promise.all(t)];case 1:return r.sent(),[2]}})})},n.prototype.removeAccount=function(e){return ne(this,void 0,void 0,function(){var t;return oe(this,function(o){switch(o.label){case 0:if(t=this.getAccount(e),!t)throw K.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return o.sent(),this.removeItem(e),[2]}})})},n.prototype.removeAccountContext=function(e){return ne(this,void 0,void 0,function(){var t,o,r,i=this;return oe(this,function(s){switch(s.label){case 0:return t=this.getTokenKeys(),o=e.generateAccountId(),r=[],t.idToken.forEach(function(c){c.indexOf(o)===0&&i.removeIdToken(c)}),t.accessToken.forEach(function(c){c.indexOf(o)===0&&r.push(i.removeAccessToken(c))}),t.refreshToken.forEach(function(c){c.indexOf(o)===0&&i.removeRefreshToken(c)}),[4,Promise.all(r)];case 1:return s.sent(),[2]}})})},n.prototype.removeAccessToken=function(e){return ne(this,void 0,void 0,function(){var t,o,r;return oe(this,function(i){switch(i.label){case 0:if(t=this.getAccessTokenCredential(e),!t)return[2];if(t.credentialType.toLowerCase()!==Z.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==ge.POP)return[3,4];if(o=t,r=o.keyId,!r)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(r)];case 2:return i.sent(),[3,4];case 3:throw i.sent(),K.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}})})},n.prototype.removeAppMetadata=function(){var e=this,t=this.getKeys();return t.forEach(function(o){e.isAppMetadata(o)&&e.removeItem(o)}),!0},n.prototype.readCacheRecord=function(e,t,o){var r=this.getTokenKeys(),i=this.readAccountFromCache(e),s=this.getIdToken(e,r),c=this.getAccessToken(e,t,r),l=this.getRefreshToken(e,!1,r),h=this.readAppMetadataFromCache(o);return i&&s&&(i.idTokenClaims=new It(s.secret,this.cryptoImpl).claims),{account:i,idToken:s,accessToken:c,refreshToken:l,appMetadata:h}},n.prototype.readAccountFromCache=function(e){var t=Ue.generateAccountCacheKey(e);return this.getAccount(t)},n.prototype.getIdToken=function(e,t){var o=this;this.commonLogger.trace("CacheManager - getIdToken called");var r={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:Z.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},i=this.getIdTokensByFilter(r,t),s=i.length;return s<1?(this.commonLogger.info("CacheManager:getIdToken - No token found"),null):s>1?(this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them"),i.forEach(function(c){o.removeIdToken(c.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getIdToken - Returning id token"),i[0])},n.prototype.getIdTokensByFilter=function(e,t){var o=this,r=t&&t.idToken||this.getTokenKeys().idToken,i=[];return r.forEach(function(s){if(o.idTokenKeyMatchesFilter(s,he({clientId:o.clientId},e))){var c=o.getIdTokenCredential(s);c&&o.credentialMatchesFilter(c,e)&&i.push(c)}}),i},n.prototype.idTokenKeyMatchesFilter=function(e,t){var o=e.toLowerCase();return!(t.clientId&&o.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&o.indexOf(t.homeAccountId.toLowerCase())===-1)},n.prototype.removeIdToken=function(e){this.removeItem(e)},n.prototype.removeRefreshToken=function(e){this.removeItem(e)},n.prototype.getAccessToken=function(e,t,o){var r=this;this.commonLogger.trace("CacheManager - getAccessToken called");var i=He.createSearchScopes(t.scopes),s=t.authenticationScheme||ge.BEARER,c=s&&s.toLowerCase()!==ge.BEARER.toLowerCase()?Z.ACCESS_TOKEN_WITH_AUTH_SCHEME:Z.ACCESS_TOKEN,l={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:c,clientId:this.clientId,realm:e.tenantId,target:i,tokenType:s,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},h=o&&o.accessToken||this.getTokenKeys().accessToken,u=[];h.forEach(function(f){if(r.accessTokenKeyMatchesFilter(f,l,!0)){var w=r.getAccessTokenCredential(f);w&&r.credentialMatchesFilter(w,l)&&u.push(w)}});var g=u.length;return g<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):g>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),u.forEach(function(f){r.removeAccessToken(f.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),u[0])},n.prototype.accessTokenKeyMatchesFilter=function(e,t,o){var r=e.toLowerCase();if(t.clientId&&r.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&r.indexOf(t.homeAccountId.toLowerCase())===-1||t.realm&&r.indexOf(t.realm.toLowerCase())===-1||t.requestedClaimsHash&&r.indexOf(t.requestedClaimsHash.toLowerCase())===-1)return!1;if(t.target)for(var i=t.target.asArray(),s=0;s<i.length;s++){if(o&&!r.includes(i[s].toLowerCase()))return!1;if(!o&&r.includes(i[s].toLowerCase()))return!0}return!0},n.prototype.getAccessTokensByFilter=function(e){var t=this,o=this.getTokenKeys(),r=[];return o.accessToken.forEach(function(i){if(t.accessTokenKeyMatchesFilter(i,e,!0)){var s=t.getAccessTokenCredential(i);s&&t.credentialMatchesFilter(s,e)&&r.push(s)}}),r},n.prototype.getRefreshToken=function(e,t,o){var r=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var i=t?Nn:void 0,s={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:Z.REFRESH_TOKEN,clientId:this.clientId,familyId:i},c=o&&o.refreshToken||this.getTokenKeys().refreshToken,l=[];c.forEach(function(u){if(r.refreshTokenKeyMatchesFilter(u,s)){var g=r.getRefreshTokenCredential(u);g&&r.credentialMatchesFilter(g,s)&&l.push(g)}});var h=l.length;return h<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),l[0])},n.prototype.refreshTokenKeyMatchesFilter=function(e,t){var o=e.toLowerCase();return!(t.familyId&&o.indexOf(t.familyId.toLowerCase())===-1||!t.familyId&&t.clientId&&o.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&o.indexOf(t.homeAccountId.toLowerCase())===-1)},n.prototype.readAppMetadataFromCache=function(e){var t={environment:e,clientId:this.clientId},o=this.getAppMetadataFilteredBy(t),r=Object.keys(o).map(function(s){return o[s]}),i=r.length;if(i<1)return null;if(i>1)throw K.createMultipleMatchingAppMetadataInCacheError();return r[0]},n.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===Nn)},n.prototype.matchHomeAccountId=function(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId},n.prototype.matchLocalAccountId=function(e,t){return typeof e.localAccountId=="string"&&t===e.localAccountId},n.prototype.matchUsername=function(e,t){return typeof e.username=="string"&&t.toLowerCase()===e.username.toLowerCase()},n.prototype.matchUserAssertionHash=function(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)},n.prototype.matchEnvironment=function(e,t){var o=this.getAuthorityMetadataByAlias(t);return!!(o&&o.aliases.indexOf(e.environment)>-1)},n.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},n.prototype.matchClientId=function(e,t){return!!(e.clientId&&t===e.clientId)},n.prototype.matchFamilyId=function(e,t){return!!(e.familyId&&t===e.familyId)},n.prototype.matchRealm=function(e,t){return!!(e.realm&&t===e.realm)},n.prototype.matchNativeAccountId=function(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)},n.prototype.matchTarget=function(e,t){var o=e.credentialType!==Z.ACCESS_TOKEN&&e.credentialType!==Z.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(o||!e.target)return!1;var r=He.fromString(e.target);return r.containsScopeSet(t)},n.prototype.matchTokenType=function(e,t){return!!(e.tokenType&&e.tokenType===t)},n.prototype.matchKeyId=function(e,t){return!!(e.keyId&&e.keyId===t)},n.prototype.isAppMetadata=function(e){return e.indexOf(So)!==-1},n.prototype.isAuthorityMetadata=function(e){return e.indexOf(Pn.CACHE_KEY)!==-1},n.prototype.generateAuthorityMetadataCacheKey=function(e){return Pn.CACHE_KEY+"-"+this.clientId+"-"+e},n.toObject=function(e,t){for(var o in t)e[o]=t[o];return e},n}(),Qi=function(n){Ye(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.setAccount=function(){var t="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.getAccount=function(){var t="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.setIdTokenCredential=function(){var t="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.getIdTokenCredential=function(){var t="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.setAccessTokenCredential=function(){var t="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.getAccessTokenCredential=function(){var t="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.setRefreshTokenCredential=function(){var t="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.getRefreshTokenCredential=function(){var t="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.setAppMetadata=function(){var t="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.getAppMetadata=function(){var t="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.setServerTelemetry=function(){var t="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.getServerTelemetry=function(){var t="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.setAuthorityMetadata=function(){var t="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.getAuthorityMetadata=function(){var t="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.getAuthorityMetadataKeys=function(){var t="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.setThrottlingCache=function(){var t="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.getThrottlingCache=function(){var t="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.removeItem=function(){var t="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.containsKey=function(){var t="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.getKeys=function(){var t="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.getAccountKeys=function(){var t="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.getTokenKeys=function(){var t="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e.prototype.clear=function(){return ne(this,void 0,void 0,function(){var t;return oe(this,function(o){throw t="Storage interface - clear() has not been implemented for the cacheStorage interface.",Y.createUnexpectedError(t)})})},e.prototype.updateCredentialCacheKey=function(){var t="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw Y.createUnexpectedError(t)},e}(Je);/*! @azure/msal-common v13.3.1 2023-10-27 */var Wi=300,Mr={tokenRenewalOffsetSeconds:Wi,preventCorsPreflight:!1},Yi={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:ze.Info,correlationId:b.EMPTY_STRING},Ji={claimsBasedCachingEnabled:!0},Xi={sendGetRequestAsync:function(){return ne(this,void 0,void 0,function(){var n;return oe(this,function(e){throw n="Network interface - sendGetRequestAsync() has not been implemented",Y.createUnexpectedError(n)})})},sendPostRequestAsync:function(){return ne(this,void 0,void 0,function(){var n;return oe(this,function(e){throw n="Network interface - sendPostRequestAsync() has not been implemented",Y.createUnexpectedError(n)})})}},Zi={sku:b.SKU,version:Ro,cpu:b.EMPTY_STRING,os:b.EMPTY_STRING},ea={clientSecret:b.EMPTY_STRING,clientAssertion:void 0},ta={azureCloudInstance:On.None,tenant:""+b.DEFAULT_COMMON_TENANT},na={application:{appName:"",appVersion:""}};function oa(n){var e=n.authOptions,t=n.systemOptions,o=n.loggerOptions,r=n.cacheOptions,i=n.storageInterface,s=n.networkInterface,c=n.cryptoInterface,l=n.clientCredentials,h=n.libraryInfo,u=n.telemetry,g=n.serverTelemetryManager,f=n.persistencePlugin,w=n.serializableCache,C=he(he({},Yi),o);return{authOptions:ra(e),systemOptions:he(he({},Mr),t),loggerOptions:C,cacheOptions:he(he({},Ji),r),storageInterface:i||new Qi(e.clientId,Xn,new Ao(C)),networkInterface:s||Xi,cryptoInterface:c||Xn,clientCredentials:l||ea,libraryInfo:he(he({},Zi),h),telemetry:he(he({},na),u),serverTelemetryManager:g||null,persistencePlugin:f||null,serializableCache:w||null}}function ra(n){return he({clientCapabilities:[],azureCloudOptions:ta,skipAuthorityMetadataCache:!1},n)}/*! @azure/msal-common v13.3.1 2023-10-27 */var rn=function(n){Ye(e,n);function e(t,o,r){var i=n.call(this,t,o,r)||this;return i.name="ServerError",Object.setPrototypeOf(i,e.prototype),i}return e}(Y);/*! @azure/msal-common v13.3.1 2023-10-27 */var eo=function(){function n(){}return n.generateThrottlingStorageKey=function(e){return Mn.THROTTLING_PREFIX+"."+JSON.stringify(e)},n.preProcess=function(e,t){var o,r=n.generateThrottlingStorageKey(t),i=e.getThrottlingCache(r);if(i){if(i.throttleTime<Date.now()){e.removeItem(r);return}throw new rn(((o=i.errorCodes)===null||o===void 0?void 0:o.join(" "))||b.EMPTY_STRING,i.errorMessage,i.subError)}},n.postProcess=function(e,t,o){if(n.checkResponseStatus(o)||n.checkResponseForRetryAfter(o)){var r={throttleTime:n.calculateThrottleTime(parseInt(o.headers[ot.RETRY_AFTER])),error:o.body.error,errorCodes:o.body.error_codes,errorMessage:o.body.error_description,subError:o.body.suberror};e.setThrottlingCache(n.generateThrottlingStorageKey(t),r)}},n.checkResponseStatus=function(e){return e.status===429||e.status>=500&&e.status<600},n.checkResponseForRetryAfter=function(e){return e.headers?e.headers.hasOwnProperty(ot.RETRY_AFTER)&&(e.status<200||e.status>=300):!1},n.calculateThrottleTime=function(e){var t=e<=0?0:e,o=Date.now()/1e3;return Math.floor(Math.min(o+(t||Mn.DEFAULT_THROTTLE_TIME_SECONDS),o+Mn.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},n.removeThrottle=function(e,t,o,r){var i={clientId:t,authority:o.authority,scopes:o.scopes,homeAccountIdentifier:r,claims:o.claims,authenticationScheme:o.authenticationScheme,resourceRequestMethod:o.resourceRequestMethod,resourceRequestUri:o.resourceRequestUri,shrClaims:o.shrClaims,sshKid:o.sshKid},s=this.generateThrottlingStorageKey(i);e.removeItem(s)},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var ia=function(){function n(e,t){this.networkClient=e,this.cacheManager=t}return n.prototype.sendPostRequest=function(e,t,o){return ne(this,void 0,void 0,function(){var r,i;return oe(this,function(s){switch(s.label){case 0:eo.preProcess(this.cacheManager,e),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,o)];case 2:return r=s.sent(),[3,4];case 3:throw i=s.sent(),i instanceof Y?i:K.createNetworkError(t,i);case 4:return eo.postProcess(this.cacheManager,e,r),[2,r]}})})},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var rt;(function(n){n.HOME_ACCOUNT_ID="home_account_id",n.UPN="UPN"})(rt||(rt={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var an=function(){function n(){}return n.validateRedirectUri=function(e){if(H.isEmpty(e))throw we.createRedirectUriEmptyError()},n.validatePrompt=function(e){var t=[];for(var o in Ve)t.push(Ve[o]);if(t.indexOf(e)<0)throw we.createInvalidPromptError(e)},n.validateClaims=function(e){try{JSON.parse(e)}catch{throw we.createInvalidClaimsRequestError()}},n.validateCodeChallengeParams=function(e,t){if(H.isEmpty(e)||H.isEmpty(t))throw we.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},n.validateCodeChallengeMethod=function(e){if([Rr.PLAIN,Rr.S256].indexOf(e)<0)throw we.createInvalidCodeChallengeMethodError()},n.sanitizeEQParams=function(e,t){return e?(t.forEach(function(o,r){e[r]&&delete e[r]}),Object.fromEntries(Object.entries(e).filter(function(o){var r=o[1];return r!==""}))):{}},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var zn=function(){function n(){this.parameters=new Map}return n.prototype.addResponseTypeCode=function(){this.parameters.set(ae.RESPONSE_TYPE,encodeURIComponent(b.CODE_RESPONSE_TYPE))},n.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(ae.RESPONSE_TYPE,encodeURIComponent(b.TOKEN_RESPONSE_TYPE+" "+b.ID_TOKEN_RESPONSE_TYPE))},n.prototype.addResponseMode=function(e){this.parameters.set(ae.RESPONSE_MODE,encodeURIComponent(e||Qn.QUERY))},n.prototype.addNativeBroker=function(){this.parameters.set(ae.NATIVE_BROKER,encodeURIComponent("1"))},n.prototype.addScopes=function(e,t){t===void 0&&(t=!0);var o=t?$n(e||[],An):e||[],r=new He(o);this.parameters.set(ae.SCOPE,encodeURIComponent(r.printScopes()))},n.prototype.addClientId=function(e){this.parameters.set(ae.CLIENT_ID,encodeURIComponent(e))},n.prototype.addRedirectUri=function(e){an.validateRedirectUri(e),this.parameters.set(ae.REDIRECT_URI,encodeURIComponent(e))},n.prototype.addPostLogoutRedirectUri=function(e){an.validateRedirectUri(e),this.parameters.set(ae.POST_LOGOUT_URI,encodeURIComponent(e))},n.prototype.addIdTokenHint=function(e){this.parameters.set(ae.ID_TOKEN_HINT,encodeURIComponent(e))},n.prototype.addDomainHint=function(e){this.parameters.set(Rn.DOMAIN_HINT,encodeURIComponent(e))},n.prototype.addLoginHint=function(e){this.parameters.set(Rn.LOGIN_HINT,encodeURIComponent(e))},n.prototype.addCcsUpn=function(e){this.parameters.set(ot.CCS_HEADER,encodeURIComponent("UPN:"+e))},n.prototype.addCcsOid=function(e){this.parameters.set(ot.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},n.prototype.addSid=function(e){this.parameters.set(Rn.SID,encodeURIComponent(e))},n.prototype.addClaims=function(e,t){var o=this.addClientCapabilitiesToClaims(e,t);an.validateClaims(o),this.parameters.set(ae.CLAIMS,encodeURIComponent(o))},n.prototype.addCorrelationId=function(e){this.parameters.set(ae.CLIENT_REQUEST_ID,encodeURIComponent(e))},n.prototype.addLibraryInfo=function(e){this.parameters.set(ae.X_CLIENT_SKU,e.sku),this.parameters.set(ae.X_CLIENT_VER,e.version),e.os&&this.parameters.set(ae.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(ae.X_CLIENT_CPU,e.cpu)},n.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(ae.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(ae.X_APP_VER,e.appVersion)},n.prototype.addPrompt=function(e){an.validatePrompt(e),this.parameters.set(""+ae.PROMPT,encodeURIComponent(e))},n.prototype.addState=function(e){H.isEmpty(e)||this.parameters.set(ae.STATE,encodeURIComponent(e))},n.prototype.addNonce=function(e){this.parameters.set(ae.NONCE,encodeURIComponent(e))},n.prototype.addCodeChallengeParams=function(e,t){if(an.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(ae.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(ae.CODE_CHALLENGE_METHOD,encodeURIComponent(t));else throw we.createInvalidCodeChallengeParamsError()},n.prototype.addAuthorizationCode=function(e){this.parameters.set(ae.CODE,encodeURIComponent(e))},n.prototype.addDeviceCode=function(e){this.parameters.set(ae.DEVICE_CODE,encodeURIComponent(e))},n.prototype.addRefreshToken=function(e){this.parameters.set(ae.REFRESH_TOKEN,encodeURIComponent(e))},n.prototype.addCodeVerifier=function(e){this.parameters.set(ae.CODE_VERIFIER,encodeURIComponent(e))},n.prototype.addClientSecret=function(e){this.parameters.set(ae.CLIENT_SECRET,encodeURIComponent(e))},n.prototype.addClientAssertion=function(e){H.isEmpty(e)||this.parameters.set(ae.CLIENT_ASSERTION,encodeURIComponent(e))},n.prototype.addClientAssertionType=function(e){H.isEmpty(e)||this.parameters.set(ae.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},n.prototype.addOboAssertion=function(e){this.parameters.set(ae.OBO_ASSERTION,encodeURIComponent(e))},n.prototype.addRequestTokenUse=function(e){this.parameters.set(ae.REQUESTED_TOKEN_USE,encodeURIComponent(e))},n.prototype.addGrantType=function(e){this.parameters.set(ae.GRANT_TYPE,encodeURIComponent(e))},n.prototype.addClientInfo=function(){this.parameters.set($i,"1")},n.prototype.addExtraQueryParameters=function(e){var t=this,o=an.sanitizeEQParams(e,this.parameters);Object.keys(o).forEach(function(r){t.parameters.set(r,e[r])})},n.prototype.addClientCapabilitiesToClaims=function(e,t){var o;if(!e)o={};else try{o=JSON.parse(e)}catch{throw we.createInvalidClaimsRequestError()}return t&&t.length>0&&(o.hasOwnProperty(gn.ACCESS_TOKEN)||(o[gn.ACCESS_TOKEN]={}),o[gn.ACCESS_TOKEN][gn.XMS_CC]={values:t}),JSON.stringify(o)},n.prototype.addUsername=function(e){this.parameters.set(Yn.username,encodeURIComponent(e))},n.prototype.addPassword=function(e){this.parameters.set(Yn.password,encodeURIComponent(e))},n.prototype.addPopToken=function(e){H.isEmpty(e)||(this.parameters.set(ae.TOKEN_TYPE,ge.POP),this.parameters.set(ae.REQ_CNF,encodeURIComponent(e)))},n.prototype.addSshJwk=function(e){H.isEmpty(e)||(this.parameters.set(ae.TOKEN_TYPE,ge.SSH),this.parameters.set(ae.REQ_CNF,encodeURIComponent(e)))},n.prototype.addServerTelemetry=function(e){this.parameters.set(ae.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(ae.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},n.prototype.addThrottling=function(){this.parameters.set(ae.X_MS_LIB_CAPABILITY,Mn.X_MS_LIB_CAPABILITY_VALUE)},n.prototype.addLogoutHint=function(e){this.parameters.set(ae.LOGOUT_HINT,encodeURIComponent(e))},n.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(t,o){e.push(o+"="+t)}),e.join("&")},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var No=function(){function n(e,t){this.config=oa(e),this.logger=new Ao(this.config.loggerOptions,Pr,Ro),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new ia(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return n.prototype.createTokenRequestHeaders=function(e){var t={};if(t[ot.CONTENT_TYPE]=b.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case rt.HOME_ACCOUNT_ID:try{var o=vn(e.credential);t[ot.CCS_HEADER]="Oid:"+o.uid+"@"+o.utid}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case rt.UPN:t[ot.CCS_HEADER]="UPN: "+e.credential;break}return t},n.prototype.executePostToTokenEndpoint=function(e,t,o,r){return ne(this,void 0,void 0,function(){var i;return oe(this,function(s){switch(s.label){case 0:return[4,this.networkManager.sendPostRequest(r,e,{body:t,headers:o})];case 1:return i=s.sent(),this.config.serverTelemetryManager&&i.status<500&&i.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}})})},n.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw K.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},n.prototype.createTokenQueryParameters=function(e){var t=new zn;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Po=function(){function n(){}return n.prototype.generateAccountId=function(){return n.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},n.prototype.generateCredentialId=function(){return n.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},n.prototype.generateTarget=function(){return n.generateTargetForCacheKey(this.target)},n.prototype.generateCredentialKey=function(){return n.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},n.prototype.generateType=function(){switch(this.credentialType){case Z.ID_TOKEN:return qt.ID_TOKEN;case Z.ACCESS_TOKEN:case Z.ACCESS_TOKEN_WITH_AUTH_SCHEME:return qt.ACCESS_TOKEN;case Z.REFRESH_TOKEN:return qt.REFRESH_TOKEN;default:throw K.createUnexpectedCredentialTypeError()}},n.generateCredentialCacheKey=function(e,t,o,r,i,s,c,l,h){var u=[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(o,r,i,c),this.generateTargetForCacheKey(s),this.generateClaimsHashForCacheKey(h),this.generateSchemeForCacheKey(l)];return u.join(Pe.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateAccountIdForCacheKey=function(e,t){var o=[e,t];return o.join(Pe.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateCredentialIdForCacheKey=function(e,t,o,r){var i=e===Z.REFRESH_TOKEN&&r||t,s=[e,i,o||b.EMPTY_STRING];return s.join(Pe.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateTargetForCacheKey=function(e){return(e||b.EMPTY_STRING).toLowerCase()},n.generateClaimsHashForCacheKey=function(e){return(e||b.EMPTY_STRING).toLowerCase()},n.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==ge.BEARER.toLowerCase()?e.toLowerCase():b.EMPTY_STRING},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var sn=function(n){Ye(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createIdTokenEntity=function(t,o,r,i,s){var c=new e;return c.credentialType=Z.ID_TOKEN,c.homeAccountId=t,c.environment=o,c.clientId=i,c.secret=r,c.realm=s,c},e.isIdTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===Z.ID_TOKEN:!1},e}(Po);/*! @azure/msal-common v13.3.1 2023-10-27 */var pt=function(){function n(){}return n.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},n.isTokenExpired=function(e,t){var o=Number(e)||0,r=n.nowSeconds()+t;return r>o},n.wasClockTurnedBack=function(e){var t=Number(e);return t>n.nowSeconds()},n.delay=function(e,t){return new Promise(function(o){return setTimeout(function(){return o(t)},e)})},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var cn=function(n){Ye(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createAccessTokenEntity=function(t,o,r,i,s,c,l,h,u,g,f,w,C,P,M){var j,N,T=new e;T.homeAccountId=t,T.credentialType=Z.ACCESS_TOKEN,T.secret=r;var B=pt.nowSeconds();if(T.cachedAt=B.toString(),T.expiresOn=l.toString(),T.extendedExpiresOn=h.toString(),g&&(T.refreshOn=g.toString()),T.environment=o,T.clientId=i,T.realm=s,T.target=c,T.userAssertionHash=w,T.tokenType=H.isEmpty(f)?ge.BEARER:f,P&&(T.requestedClaims=P,T.requestedClaimsHash=M),((j=T.tokenType)===null||j===void 0?void 0:j.toLowerCase())!==ge.BEARER.toLowerCase())switch(T.credentialType=Z.ACCESS_TOKEN_WITH_AUTH_SCHEME,T.tokenType){case ge.POP:var V=It.extractTokenClaims(r,u);if(!(!((N=V==null?void 0:V.cnf)===null||N===void 0)&&N.kid))throw K.createTokenClaimsRequiredError();T.keyId=V.cnf.kid;break;case ge.SSH:T.keyId=C}return T},e.isAccessTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.hasOwnProperty("target")&&(t.credentialType===Z.ACCESS_TOKEN||t.credentialType===Z.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(Po);/*! @azure/msal-common v13.3.1 2023-10-27 */var yn=function(n){Ye(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(t,o,r,i,s,c){var l=new e;return l.clientId=i,l.credentialType=Z.REFRESH_TOKEN,l.environment=o,l.homeAccountId=t,l.secret=r,l.userAssertionHash=c,s&&(l.familyId=s),l},e.isRefreshTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===Z.REFRESH_TOKEN:!1},e}(Po);/*! @azure/msal-common v13.3.1 2023-10-27 */var Lr=["interaction_required","consent_required","login_required"],aa=["message_only","additional_action","basic_action","user_password_expired","consent_required"],bn={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},gt=function(n){Ye(e,n);function e(t,o,r,i,s,c,l){var h=n.call(this,t,o,r)||this;return Object.setPrototypeOf(h,e.prototype),h.timestamp=i||b.EMPTY_STRING,h.traceId=s||b.EMPTY_STRING,h.correlationId=c||b.EMPTY_STRING,h.claims=l||b.EMPTY_STRING,h.name="InteractionRequiredAuthError",h}return e.isInteractionRequiredError=function(t,o,r){var i=!!t&&Lr.indexOf(t)>-1,s=!!r&&aa.indexOf(r)>-1,c=!!o&&Lr.some(function(l){return o.indexOf(l)>-1});return i||c||s},e.createNoTokensFoundError=function(){return new e(bn.noTokensFoundError.code,bn.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(bn.native_account_unavailable.code,bn.native_account_unavailable.desc)},e}(Y);/*! @azure/msal-common v13.3.1 2023-10-27 */var xn=function(){function n(e,t,o,r,i){this.account=e||null,this.idToken=t||null,this.accessToken=o||null,this.refreshToken=r||null,this.appMetadata=i||null}return n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Ft=function(){function n(){}return n.setRequestState=function(e,t,o){var r=n.generateLibraryState(e,o);return H.isEmpty(t)?r:""+r+b.RESOURCE_DELIM+t},n.generateLibraryState=function(e,t){if(!e)throw K.createNoCryptoObjectError("generateLibraryState");var o={id:e.createNewGuid()};t&&(o.meta=t);var r=JSON.stringify(o);return e.base64Encode(r)},n.parseRequestState=function(e,t){if(!e)throw K.createNoCryptoObjectError("parseRequestState");if(H.isEmpty(t))throw K.createInvalidStateError(t,"Null, undefined or empty state");try{var o=t.split(b.RESOURCE_DELIM),r=o[0],i=o.length>1?o.slice(1).join(b.RESOURCE_DELIM):b.EMPTY_STRING,s=e.base64Decode(r),c=JSON.parse(s);return{userRequestState:H.isEmpty(i)?b.EMPTY_STRING:i,libraryState:c}}catch(l){throw K.createInvalidStateError(t,l)}},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var de=function(){function n(e){if(this._urlString=e,H.isEmpty(this._urlString))throw we.createUrlEmptyError();H.isEmpty(this.getHash())&&(this._urlString=n.canonicalizeUri(e))}return Object.defineProperty(n.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),n.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return H.endsWith(t,"?")?t=t.slice(0,-1):H.endsWith(t,"?/")&&(t=t.slice(0,-2)),H.endsWith(t,"/")||(t+="/"),t}return e},n.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw we.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw we.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw we.createInsecureAuthorityUriError(this.urlString)},n.appendQueryString=function(e,t){return H.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},n.removeHashFromUrl=function(e){return n.canonicalizeUri(e.split("#")[0])},n.prototype.replaceTenantPath=function(e){var t=this.getUrlComponents(),o=t.PathSegments;return e&&o.length!==0&&(o[0]===on.COMMON||o[0]===on.ORGANIZATIONS)&&(o[0]=e),n.constructAuthorityUriFromObject(t)},n.prototype.getHash=function(){return n.parseHash(this.urlString)},n.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw we.createUrlParseError("Given url string: "+this.urlString);var o={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},r=o.AbsolutePath.split("/");return r=r.filter(function(i){return i&&i.length>0}),o.PathSegments=r,!H.isEmpty(o.QueryString)&&o.QueryString.endsWith("/")&&(o.QueryString=o.QueryString.substring(0,o.QueryString.length-1)),o},n.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),o=e.match(t);if(!o)throw we.createUrlParseError("Given url string: "+e);return o[2]},n.getAbsoluteUrl=function(e,t){if(e[0]===b.FORWARD_SLASH){var o=new n(t),r=o.getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+e}return e},n.parseHash=function(e){var t=e.indexOf("#"),o=e.indexOf("#/");return o>-1?e.substring(o+2):t>-1?e.substring(t+1):b.EMPTY_STRING},n.parseQueryString=function(e){var t=e.indexOf("?"),o=e.indexOf("/?");return o>-1?e.substring(o+2):t>-1?e.substring(t+1):b.EMPTY_STRING},n.constructAuthorityUriFromObject=function(e){return new n(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},n.getDeserializedHash=function(e){if(H.isEmpty(e))return{};var t=n.parseHash(e),o=H.queryStringToObject(H.isEmpty(t)?e:t);if(!o)throw K.createHashNotDeserializedError(JSON.stringify(o));return o},n.getDeserializedQueryString=function(e){if(H.isEmpty(e))return{};var t=n.parseQueryString(e),o=H.queryStringToObject(H.isEmpty(t)?e:t);if(!o)throw K.createHashNotDeserializedError(JSON.stringify(o));return o},n.hashContainsKnownProperties=function(e){if(H.isEmpty(e)||e.indexOf("=")<0)return!1;var t=n.getDeserializedHash(e);return!!(t.code||t.error_description||t.error||t.state)},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var R;(function(n){n.AcquireTokenByCode="acquireTokenByCode",n.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",n.AcquireTokenSilent="acquireTokenSilent",n.AcquireTokenSilentAsync="acquireTokenSilentAsync",n.AcquireTokenPopup="acquireTokenPopup",n.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",n.CryptoOptsSignJwt="cryptoOptsSignJwt",n.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",n.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",n.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",n.SsoSilent="ssoSilent",n.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",n.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",n.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",n.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",n.BrokerHandhshake="brokerHandshake",n.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",n.AcquireTokenByBroker="acquireTokenByBroker",n.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",n.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",n.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",n.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",n.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",n.AcquireTokenFromCache="acquireTokenFromCache",n.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",n.InitializeBaseRequest="initializeBaseRequest",n.InitializeSilentRequest="initializeSilentRequest",n.InitializeClientApplication="initializeClientApplication",n.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",n.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",n.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",n.SilentHandlerLoadFrame="silentHandlerLoadFrame",n.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",n.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",n.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",n.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",n.GetAuthCodeUrl="getAuthCodeUrl",n.HandleCodeResponseFromServer="handleCodeResponseFromServer",n.HandleCodeResponseFromHash="handleCodeResponseFromHash",n.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",n.AuthClientAcquireToken="authClientAcquireToken",n.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",n.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",n.AuthClientCreateQueryString="authClientCreateQueryString",n.PopTokenGenerateCnf="popTokenGenerateCnf",n.PopTokenGenerateKid="popTokenGenerateKid",n.HandleServerTokenResponse="handleServerTokenResponse",n.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",n.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",n.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",n.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",n.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",n.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",n.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",n.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",n.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",n.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",n.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",n.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",n.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",n.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",n.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",n.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken",n.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake",n.ClearTokensAndKeysWithClaims="clearTokensAndKeysWithClaims"})(R||(R={}));var to;(function(n){n[n.NotStarted=0]="NotStarted",n[n.InProgress=1]="InProgress",n[n.Completed=2]="Completed"})(to||(to={}));var sa=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]);/*! @azure/msal-common v13.3.1 2023-10-27 */var Mo;(function(n){n.SW="sw",n.UHW="uhw"})(Mo||(Mo={}));var wn=function(){function n(e,t){this.cryptoUtils=e,this.performanceClient=t}return n.prototype.generateCnf=function(e){var t,o;return ne(this,void 0,void 0,function(){var r,i,s;return oe(this,function(c){switch(c.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(R.PopTokenGenerateCnf,e.correlationId),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(R.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return r=c.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(r)),s={kid:r.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(s.reqCnfHash=c.sent(),s)]}})})},n.prototype.generateKid=function(e){var t;return ne(this,void 0,void 0,function(){var o;return oe(this,function(r){switch(r.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(R.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return o=r.sent(),[2,{kid:o,xms_ksl:Mo.SW}]}})})},n.prototype.signPopToken=function(e,t,o){return ne(this,void 0,void 0,function(){return oe(this,function(r){return[2,this.signPayload(e,t,o)]})})},n.prototype.signPayload=function(e,t,o,r){return ne(this,void 0,void 0,function(){var i,s,c,l,h,u;return oe(this,function(g){switch(g.label){case 0:return i=o.resourceRequestMethod,s=o.resourceRequestUri,c=o.shrClaims,l=o.shrNonce,h=s?new de(s):void 0,u=h==null?void 0:h.getUrlComponents(),[4,this.cryptoUtils.signJwt(he({at:e,ts:pt.nowSeconds(),m:i==null?void 0:i.toUpperCase(),u:u==null?void 0:u.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:u==null?void 0:u.AbsolutePath,q:u!=null&&u.QueryString?[[],u.QueryString]:void 0,client_claims:c||void 0},r),t,o.correlationId)];case 1:return[2,g.sent()]}})})},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Lo=function(){function n(){}return n.prototype.generateAppMetadataKey=function(){return n.generateAppMetadataCacheKey(this.environment,this.clientId)},n.generateAppMetadataCacheKey=function(e,t){var o=[So,e,t];return o.join(Pe.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAppMetadataEntity=function(e,t,o){var r=new n;return r.clientId=e,r.environment=t,o&&(r.familyId=o),r},n.isAppMetadataEntity=function(e,t){return t?e.indexOf(So)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"):!1},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var ca=function(){function n(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(n.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var no=function(){function n(e,t,o,r,i,s,c){this.clientId=e,this.cacheStorage=t,this.cryptoObj=o,this.logger=r,this.serializableCache=i,this.persistencePlugin=s,this.performanceClient=c}return n.prototype.validateServerAuthorizationCodeResponse=function(e,t,o){if(!e.state||!t)throw e.state?K.createStateNotFoundError("Cached State"):K.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw K.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw gt.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new gt(e.error||b.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||b.EMPTY_STRING,e.trace_id||b.EMPTY_STRING,e.correlation_id||b.EMPTY_STRING,e.claims||b.EMPTY_STRING):new rn(e.error||b.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&Zn(e.client_info,o)},n.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(gt.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new gt(e.error,e.error_description,e.suberror,e.timestamp||b.EMPTY_STRING,e.trace_id||b.EMPTY_STRING,e.correlation_id||b.EMPTY_STRING,e.claims||b.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new rn(e.error,t,e.suberror)}},n.prototype.handleServerTokenResponse=function(e,t,o,r,i,s,c,l,h){var u;return ne(this,void 0,void 0,function(){var g,f,w,C,P,M,j;return oe(this,function(N){switch(N.label){case 0:if((u=this.performanceClient)===null||u===void 0||u.addQueueMeasurement(R.HandleServerTokenResponse,e.correlation_id),e.id_token){if(g=new It(e.id_token||b.EMPTY_STRING,this.cryptoObj),i&&!H.isEmpty(i.nonce)&&g.claims.nonce!==i.nonce)throw K.createNonceMismatchError();if(r.maxAge||r.maxAge===0){if(f=g.claims.auth_time,!f)throw K.createAuthTimeNotFoundError();It.checkMaxAge(f,r.maxAge)}}this.homeAccountIdentifier=Ue.generateHomeAccountId(e.client_info||b.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,g),i&&i.state&&(w=Ft.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||r.sshKid||void 0,C=this.generateCacheRecord(e,t,o,r,g,s,i),N.label=1;case 1:return N.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),P=new ca(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(P)]):[3,3];case 2:N.sent(),N.label=3;case 3:return c&&!l&&C.account&&(M=C.account.generateAccountKey(),j=this.cacheStorage.getAccount(M),!j)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,n.generateAuthenticationResult(this.cryptoObj,t,C,!1,r,g,w,void 0,h)]):[4,this.cacheStorage.saveCacheRecord(C)];case 4:return N.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&P?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(P)]):[3,7];case 6:N.sent(),N.label=7;case 7:return[7];case 8:return[2,n.generateAuthenticationResult(this.cryptoObj,t,C,!1,r,g,w,e,h)]}})})},n.prototype.generateCacheRecord=function(e,t,o,r,i,s,c){var l=t.getPreferredCache();if(H.isEmpty(l))throw K.createInvalidCacheEnvironmentError();var h,u;!H.isEmpty(e.id_token)&&i&&(h=sn.createIdTokenEntity(this.homeAccountIdentifier,l,e.id_token||b.EMPTY_STRING,this.clientId,i.claims.tid||b.EMPTY_STRING),u=this.generateAccountEntity(e,i,t,c));var g=null;if(!H.isEmpty(e.access_token)){var f=e.scope?He.fromString(e.scope):new He(r.scopes||[]),w=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,C=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,P=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,M=o+w,j=M+C,N=P&&P>0?o+P:void 0;g=cn.createAccessTokenEntity(this.homeAccountIdentifier,l,e.access_token||b.EMPTY_STRING,this.clientId,i?i.claims.tid||b.EMPTY_STRING:t.tenant,f.printScopes(),M,j,this.cryptoObj,N,e.token_type,s,e.key_id,r.claims,r.requestedClaimsHash)}var T=null;H.isEmpty(e.refresh_token)||(T=yn.createRefreshTokenEntity(this.homeAccountIdentifier,l,e.refresh_token||b.EMPTY_STRING,this.clientId,e.foci,s));var B=null;return H.isEmpty(e.foci)||(B=Lo.createAppMetadataEntity(this.clientId,l,e.foci)),new xn(u,h,g,T,B)},n.prototype.generateAccountEntity=function(e,t,o,r){var i=o.authorityType,s=r?r.cloud_graph_host_name:b.EMPTY_STRING,c=r?r.msgraph_host:b.EMPTY_STRING;if(i===$e.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Ue.createGenericAccount(this.homeAccountIdentifier,t,o,s,c);if(H.isEmpty(e.client_info)&&o.protocolMode==="AAD")throw K.createClientInfoEmptyError();return e.client_info?Ue.createAccount(e.client_info,this.homeAccountIdentifier,t,o,s,c):Ue.createGenericAccount(this.homeAccountIdentifier,t,o,s,c)},n.generateAuthenticationResult=function(e,t,o,r,i,s,c,l,h){var u,g,f;return ne(this,void 0,void 0,function(){var w,C,P,M,j,N,T,B,V,G,J;return oe(this,function(I){switch(I.label){case 0:if(w=b.EMPTY_STRING,C=[],P=null,j=b.EMPTY_STRING,!o.accessToken)return[3,4];if(o.accessToken.tokenType!==ge.POP)return[3,2];if(N=new wn(e),T=o.accessToken,B=T.secret,V=T.keyId,!V)throw K.createKeyIdMissingError();return[4,N.signPopToken(B,V,i)];case 1:return w=I.sent(),[3,3];case 2:w=o.accessToken.secret,I.label=3;case 3:C=He.fromString(o.accessToken.target).asArray(),P=new Date(Number(o.accessToken.expiresOn)*1e3),M=new Date(Number(o.accessToken.extendedExpiresOn)*1e3),I.label=4;case 4:return o.appMetadata&&(j=o.appMetadata.familyId===Nn?Nn:b.EMPTY_STRING),G=(s==null?void 0:s.claims.oid)||(s==null?void 0:s.claims.sub)||b.EMPTY_STRING,J=(s==null?void 0:s.claims.tid)||b.EMPTY_STRING,l!=null&&l.spa_accountid&&o.account&&(o.account.nativeAccountId=l==null?void 0:l.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:G,tenantId:J,scopes:C,account:o.account?o.account.getAccountInfo():null,idToken:s?s.rawToken:b.EMPTY_STRING,idTokenClaims:s?s.claims:{},accessToken:w,fromCache:r,expiresOn:P,correlationId:i.correlationId,requestId:h||b.EMPTY_STRING,extExpiresOn:M,familyId:j,tokenType:((u=o.accessToken)===null||u===void 0?void 0:u.tokenType)||b.EMPTY_STRING,state:c?c.userRequestState:b.EMPTY_STRING,cloudGraphHostName:((g=o.account)===null||g===void 0?void 0:g.cloudGraphHostName)||b.EMPTY_STRING,msGraphHost:((f=o.account)===null||f===void 0?void 0:f.msGraphHost)||b.EMPTY_STRING,code:l==null?void 0:l.spa_code,fromNativeBroker:!1}]}})})},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Or=function(n){Ye(e,n);function e(t,o){var r=n.call(this,t,o)||this;return r.includeRedirectUri=!0,r}return e.prototype.getAuthCodeUrl=function(t){var o,r;return ne(this,void 0,void 0,function(){var i;return oe(this,function(s){switch(s.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(R.GetAuthCodeUrl,t.correlationId),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(R.AuthClientCreateQueryString,t.correlationId),[4,this.createAuthCodeUrlQueryString(t)];case 1:return i=s.sent(),[2,de.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},e.prototype.acquireToken=function(t,o){var r,i,s,c,l,h;return ne(this,void 0,void 0,function(){var u,g,f,w,C,P,M=this;return oe(this,function(j){switch(j.label){case 0:if(!t||!t.code)throw K.createTokenRequestCannotBeMadeError();return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(R.AuthClientAcquireToken,t.correlationId),u=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement("AuthCodeClientAcquireToken",t.correlationId),this.logger.info("in acquireToken call in auth-code client"),g=pt.nowSeconds(),(s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(R.AuthClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(this.authority,t)];case 1:return f=j.sent(),w=(c=f.headers)===null||c===void 0?void 0:c[ot.X_MS_REQUEST_ID],C=(l=f.headers)===null||l===void 0?void 0:l[ot.X_MS_HTTP_VERSION],C&&(u==null||u.addStaticFields({httpVerAuthority:C})),P=new no(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),P.validateTokenResponse(f.body),(h=this.performanceClient)===null||h===void 0||h.setPreQueueTime(R.HandleServerTokenResponse,t.correlationId),[2,P.handleServerTokenResponse(f.body,this.authority,g,t,o,void 0,void 0,void 0,w).then(function(N){return u==null||u.endMeasurement({success:!0}),N}).catch(function(N){throw M.logger.verbose("Error in fetching token in ACC",t.correlationId),u==null||u.endMeasurement({errorCode:N.errorCode,subErrorCode:N.subError,success:!1}),N})]}})})},e.prototype.handleFragmentResponse=function(t,o){var r=new no(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),i=new de(t),s=de.getDeserializedHash(i.getHash());if(r.validateServerAuthorizationCodeResponse(s,o,this.cryptoUtils),!s.code)throw K.createNoAuthCodeInServerResponseError();return he(he({},s),{code:s.code})},e.prototype.getLogoutUri=function(t){if(!t)throw we.createEmptyLogoutRequestError();var o=this.createLogoutUrlQueryString(t);return de.appendQueryString(this.authority.endSessionEndpoint,o)},e.prototype.executeTokenRequest=function(t,o){var r,i;return ne(this,void 0,void 0,function(){var s,c,l,h,u,g,f;return oe(this,function(w){switch(w.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(R.AuthClientExecuteTokenRequest,o.correlationId),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(R.AuthClientCreateTokenRequestBody,o.correlationId),s=this.createTokenQueryParameters(o),c=de.appendQueryString(t.tokenEndpoint,s),[4,this.createTokenRequestBody(o)];case 1:if(l=w.sent(),h=void 0,o.clientInfo)try{u=Zn(o.clientInfo,this.cryptoUtils),h={credential:""+u.uid+Pe.CLIENT_INFO_SEPARATOR+u.utid,type:rt.HOME_ACCOUNT_ID}}catch(C){this.logger.verbose("Could not parse client info for CCS Header: "+C)}return g=this.createTokenRequestHeaders(h||o.ccsCredential),f={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:o.scopes,claims:o.claims,authenticationScheme:o.authenticationScheme,resourceRequestMethod:o.resourceRequestMethod,resourceRequestUri:o.resourceRequestUri,shrClaims:o.shrClaims,sshKid:o.sshKid},[2,this.executePostToTokenEndpoint(c,l,g,f)]}})})},e.prototype.createTokenRequestBody=function(t){var o,r;return ne(this,void 0,void 0,function(){var i,s,c,l,h,u,g,g,f;return oe(this,function(w){switch(w.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(R.AuthClientCreateTokenRequestBody,t.correlationId),i=new zn,i.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(t.redirectUri):an.validateRedirectUri(t.redirectUri),i.addScopes(t.scopes),i.addAuthorizationCode(t.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),t.codeVerifier&&i.addCodeVerifier(t.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(s=this.config.clientCredentials.clientAssertion,i.addClientAssertion(s.assertion),i.addClientAssertionType(s.assertionType)),i.addGrantType(Wn.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),t.authenticationScheme!==ge.POP?[3,2]:(c=new wn(this.cryptoUtils,this.performanceClient),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(R.PopTokenGenerateCnf,t.correlationId),[4,c.generateCnf(t)]);case 1:return l=w.sent(),i.addPopToken(l.reqCnfString),[3,3];case 2:if(t.authenticationScheme===ge.SSH)if(t.sshJwk)i.addSshJwk(t.sshJwk);else throw we.createMissingSshJwkError();w.label=3;case 3:if(h=t.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(h),(!H.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(t.claims,this.config.authOptions.clientCapabilities),u=void 0,t.clientInfo)try{g=Zn(t.clientInfo,this.cryptoUtils),u={credential:""+g.uid+Pe.CLIENT_INFO_SEPARATOR+g.utid,type:rt.HOME_ACCOUNT_ID}}catch(C){this.logger.verbose("Could not parse client info for CCS Header: "+C)}else u=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&u)switch(u.type){case rt.HOME_ACCOUNT_ID:try{g=vn(u.credential),i.addCcsOid(g)}catch(C){this.logger.verbose("Could not parse home account ID for CCS Header: "+C)}break;case rt.UPN:i.addCcsUpn(u.credential);break}return t.tokenBodyParameters&&i.addExtraQueryParameters(t.tokenBodyParameters),t.enableSpaAuthorizationCode&&(!t.tokenBodyParameters||!t.tokenBodyParameters[ae.RETURN_SPA_CODE])&&i.addExtraQueryParameters((f={},f[ae.RETURN_SPA_CODE]="1",f)),[2,i.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(t){var o;return ne(this,void 0,void 0,function(){var r,i,s,c,l,h,h,h,u,g;return oe(this,function(f){switch(f.label){case 0:if((o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(R.AuthClientCreateQueryString,t.correlationId),r=new zn,r.addClientId(this.config.authOptions.clientId),i=$n(t.scopes||[],t.extraScopesToConsent||[]),r.addScopes(i),r.addRedirectUri(t.redirectUri),s=t.correlationId||this.config.cryptoInterface.createNewGuid(),r.addCorrelationId(s),r.addResponseMode(t.responseMode),r.addResponseTypeCode(),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addClientInfo(),t.codeChallenge&&t.codeChallengeMethod&&r.addCodeChallengeParams(t.codeChallenge,t.codeChallengeMethod),t.prompt&&r.addPrompt(t.prompt),t.domainHint&&r.addDomainHint(t.domainHint),t.prompt!==Ve.SELECT_ACCOUNT)if(t.sid&&t.prompt===Ve.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),r.addSid(t.sid);else if(t.account){if(c=this.extractAccountSid(t.account),l=this.extractLoginHint(t.account),l){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),r.addLoginHint(l);try{h=vn(t.account.homeAccountId),r.addCcsOid(h)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(c&&t.prompt===Ve.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),r.addSid(c);try{h=vn(t.account.homeAccountId),r.addCcsOid(h)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(t.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),r.addLoginHint(t.loginHint),r.addCcsUpn(t.loginHint);else if(t.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),r.addLoginHint(t.account.username);try{h=vn(t.account.homeAccountId),r.addCcsOid(h)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else t.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),r.addLoginHint(t.loginHint),r.addCcsUpn(t.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return t.nonce&&r.addNonce(t.nonce),t.state&&r.addState(t.state),(!H.isEmpty(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(t.claims,this.config.authOptions.clientCapabilities),t.extraQueryParameters&&r.addExtraQueryParameters(t.extraQueryParameters),t.nativeBroker?(r.addNativeBroker(),t.authenticationScheme!==ge.POP?[3,2]:(u=new wn(this.cryptoUtils),[4,u.generateCnf(t)])):[3,2];case 1:g=f.sent(),r.addPopToken(g.reqCnfString),f.label=2;case 2:return[2,r.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(t){var o=new zn;return t.postLogoutRedirectUri&&o.addPostLogoutRedirectUri(t.postLogoutRedirectUri),t.correlationId&&o.addCorrelationId(t.correlationId),t.idTokenHint&&o.addIdTokenHint(t.idTokenHint),t.state&&o.addState(t.state),t.logoutHint&&o.addLogoutHint(t.logoutHint),t.extraQueryParameters&&o.addExtraQueryParameters(t.extraQueryParameters),o.createQueryString()},e.prototype.extractAccountSid=function(t){var o;return((o=t.idTokenClaims)===null||o===void 0?void 0:o.sid)||null},e.prototype.extractLoginHint=function(t){var o;return((o=t.idTokenClaims)===null||o===void 0?void 0:o.login_hint)||null},e}(No);/*! @azure/msal-common v13.3.1 2023-10-27 */var zr=function(n){Ye(e,n);function e(t,o){return n.call(this,t,o)||this}return e.prototype.acquireToken=function(t){var o,r,i,s,c,l,h;return ne(this,void 0,void 0,function(){var u,g,f,w,C,P,M=this;return oe(this,function(j){switch(j.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(R.RefreshTokenClientAcquireToken,t.correlationId),u=(r=this.performanceClient)===null||r===void 0?void 0:r.startMeasurement(R.RefreshTokenClientAcquireToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",t.correlationId),g=pt.nowSeconds(),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(R.RefreshTokenClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(t,this.authority)];case 1:return f=j.sent(),w=(s=f.headers)===null||s===void 0?void 0:s[ot.X_MS_HTTP_VERSION],u==null||u.addStaticFields({refreshTokenSize:((c=f.body.refresh_token)===null||c===void 0?void 0:c.length)||0}),w&&(u==null||u.addStaticFields({httpVerToken:w})),C=(l=f.headers)===null||l===void 0?void 0:l[ot.X_MS_REQUEST_ID],P=new no(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),P.validateTokenResponse(f.body),(h=this.performanceClient)===null||h===void 0||h.setPreQueueTime(R.HandleServerTokenResponse,t.correlationId),[2,P.handleServerTokenResponse(f.body,this.authority,g,t,void 0,void 0,!0,t.forceCache,C).then(function(N){return u==null||u.endMeasurement({success:!0}),N}).catch(function(N){throw M.logger.verbose("Error in fetching refresh token",t.correlationId),u==null||u.endMeasurement({errorCode:N.errorCode,subErrorCode:N.subError,success:!1}),N})]}})})},e.prototype.acquireTokenByRefreshToken=function(t){var o,r,i,s;return ne(this,void 0,void 0,function(){var c,l,h;return oe(this,function(u){if(!t)throw we.createEmptyTokenRequestError();if((o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(R.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),!t.account)throw K.createNoAccountInSilentRequestError();if(c=this.cacheManager.isAppMetadataFOCI(t.account.environment),c)try{return(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(R.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!0)]}catch(g){if(l=g instanceof gt&&g.errorCode===bn.noTokensFoundError.code,h=g instanceof rn&&g.errorCode===Nr.INVALID_GRANT_ERROR&&g.subError===Nr.CLIENT_MISMATCH_ERROR,l||h)return(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(R.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)];throw g}return(s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(R.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(t,o){var r,i,s;return ne(this,void 0,void 0,function(){var c,l,h;return oe(this,function(u){if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(R.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),c=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(R.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",t.correlationId),l=this.cacheManager.getRefreshToken(t.account,o),!l)throw c==null||c.discardMeasurement(),gt.createNoTokensFoundError();return c==null||c.endMeasurement({success:!0}),h=he(he({},t),{refreshToken:l.secret,authenticationScheme:t.authenticationScheme||ge.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:rt.HOME_ACCOUNT_ID}}),(s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(R.RefreshTokenClientAcquireToken,t.correlationId),[2,this.acquireToken(h)]})})},e.prototype.executeTokenRequest=function(t,o){var r,i,s;return ne(this,void 0,void 0,function(){var c,l,h,u,g,f;return oe(this,function(w){switch(w.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(R.RefreshTokenClientExecuteTokenRequest,t.correlationId),c=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(R.RefreshTokenClientExecuteTokenRequest,t.correlationId),(s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(R.RefreshTokenClientCreateTokenRequestBody,t.correlationId),l=this.createTokenQueryParameters(t),h=de.appendQueryString(o.tokenEndpoint,l),[4,this.createTokenRequestBody(t)];case 1:return u=w.sent(),g=this.createTokenRequestHeaders(t.ccsCredential),f={clientId:this.config.authOptions.clientId,authority:o.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[2,this.executePostToTokenEndpoint(h,u,g,f).then(function(C){return c==null||c.endMeasurement({success:!0}),C}).catch(function(C){throw c==null||c.endMeasurement({success:!1}),C})]}})})},e.prototype.createTokenRequestBody=function(t){var o,r,i;return ne(this,void 0,void 0,function(){var s,c,l,h,u,g,f;return oe(this,function(w){switch(w.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(R.RefreshTokenClientCreateTokenRequestBody,t.correlationId),s=t.correlationId,c=(r=this.performanceClient)===null||r===void 0?void 0:r.startMeasurement(R.BaseClientCreateTokenRequestHeaders,s),l=new zn,l.addClientId(this.config.authOptions.clientId),l.addScopes(t.scopes),l.addGrantType(Wn.REFRESH_TOKEN_GRANT),l.addClientInfo(),l.addLibraryInfo(this.config.libraryInfo),l.addApplicationTelemetry(this.config.telemetry.application),l.addThrottling(),this.serverTelemetryManager&&l.addServerTelemetry(this.serverTelemetryManager),l.addCorrelationId(s),l.addRefreshToken(t.refreshToken),this.config.clientCredentials.clientSecret&&l.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(h=this.config.clientCredentials.clientAssertion,l.addClientAssertion(h.assertion),l.addClientAssertionType(h.assertionType)),t.authenticationScheme!==ge.POP?[3,2]:(u=new wn(this.cryptoUtils,this.performanceClient),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(R.PopTokenGenerateCnf,t.correlationId),[4,u.generateCnf(t)]);case 1:return g=w.sent(),l.addPopToken(g.reqCnfString),[3,3];case 2:if(t.authenticationScheme===ge.SSH)if(t.sshJwk)l.addSshJwk(t.sshJwk);else throw c==null||c.endMeasurement({success:!1}),we.createMissingSshJwkError();w.label=3;case 3:if((!H.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&l.addClaims(t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case rt.HOME_ACCOUNT_ID:try{f=vn(t.ccsCredential.credential),l.addCcsOid(f)}catch(C){this.logger.verbose("Could not parse home account ID for CCS Header: "+C)}break;case rt.UPN:l.addCcsUpn(t.ccsCredential.credential);break}return c==null||c.endMeasurement({success:!0}),[2,l.createQueryString()]}})})},e}(No);/*! @azure/msal-common v13.3.1 2023-10-27 */var la=function(n){Ye(e,n);function e(t,o){return n.call(this,t,o)||this}return e.prototype.acquireToken=function(t){return ne(this,void 0,void 0,function(){var o,r;return oe(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.acquireCachedToken(t)];case 1:return[2,i.sent()];case 2:if(o=i.sent(),o instanceof K&&o.errorCode===D.tokenRefreshRequired.code)return r=new zr(this.config,this.performanceClient),[2,r.acquireTokenByRefreshToken(t)];throw o;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(t){var o,r,i,s,c;return ne(this,void 0,void 0,function(){var l,h;return oe(this,function(u){switch(u.label){case 0:if(!t)throw we.createEmptyTokenRequestError();if(t.forceRefresh)throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(Qt.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),K.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!H.isEmptyObj(t.claims))throw(r=this.serverTelemetryManager)===null||r===void 0||r.setCacheOutcome(Qt.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),K.createRefreshRequiredError();if(!t.account)throw K.createNoAccountInSilentRequestError();if(l=t.authority||this.authority.getPreferredCache(),h=this.cacheManager.readCacheRecord(t.account,t,l),h.accessToken){if(pt.wasClockTurnedBack(h.accessToken.cachedAt)||pt.isTokenExpired(h.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(s=this.serverTelemetryManager)===null||s===void 0||s.setCacheOutcome(Qt.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),K.createRefreshRequiredError();if(h.accessToken.refreshOn&&pt.isTokenExpired(h.accessToken.refreshOn,0))throw(c=this.serverTelemetryManager)===null||c===void 0||c.setCacheOutcome(Qt.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),K.createRefreshRequiredError()}else throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(Qt.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),K.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(h,t)];case 1:return[2,u.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(t,o){return ne(this,void 0,void 0,function(){var r,i;return oe(this,function(s){switch(s.label){case 0:if(t.idToken&&(r=new It(t.idToken.secret,this.config.cryptoInterface)),o.maxAge||o.maxAge===0){if(i=r==null?void 0:r.claims.auth_time,!i)throw K.createAuthTimeNotFoundError();It.checkMaxAge(i,o.maxAge)}return[4,no.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,o,r)];case 1:return[2,s.sent()]}})})},e}(No);/*! @azure/msal-common v13.3.1 2023-10-27 */function da(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v13.3.1 2023-10-27 */var xr={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},Br=xr.endpointMetadata,Ur=xr.instanceDiscoveryMetadata;/*! @azure/msal-common v13.3.1 2023-10-27 */var Bn;(function(n){n.AAD="AAD",n.OIDC="OIDC"})(Bn||(Bn={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var Oo=function(){function n(){this.expiresAt=pt.nowSeconds()+Pn.REFRESH_TIME_SECONDS}return n.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},n.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t,this.jwks_uri=e.jwks_uri},n.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},n.prototype.resetExpiresAt=function(){this.expiresAt=pt.nowSeconds()+Pn.REFRESH_TIME_SECONDS},n.prototype.isExpired=function(){return this.expiresAt<=pt.nowSeconds()},n.isAuthorityMetadataEntity=function(e,t){return t?e.indexOf(Pn.CACHE_KEY)===0&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"):!1},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */function ua(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}/*! @azure/msal-common v13.3.1 2023-10-27 */function pa(n){return n.hasOwnProperty("error")&&n.hasOwnProperty("error_description")}/*! @azure/msal-common v13.3.1 2023-10-27 */var ha=function(){function n(e,t,o){this.networkInterface=e,this.performanceClient=t,this.correlationId=o}return n.prototype.detectRegion=function(e,t){var o,r,i,s;return ne(this,void 0,void 0,function(){var c,l,h,u,g;return oe(this,function(f){switch(f.label){case 0:if((o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(R.RegionDiscoveryDetectRegion,this.correlationId),c=e,c)return[3,8];l=n.IMDS_OPTIONS,f.label=1;case 1:return f.trys.push([1,6,,7]),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(R.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(b.IMDS_VERSION,l)];case 2:return h=f.sent(),h.status===_n.httpSuccess&&(c=h.body,t.region_source=$t.IMDS),h.status!==_n.httpBadRequest?[3,5]:((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(R.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(l)]);case 3:return u=f.sent(),u?((s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(R.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(u,l)]):(t.region_source=$t.FAILED_AUTO_DETECTION,[2,null]);case 4:g=f.sent(),g.status===_n.httpSuccess&&(c=g.body,t.region_source=$t.IMDS),f.label=5;case 5:return[3,7];case 6:return f.sent(),t.region_source=$t.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:t.region_source=$t.ENVIRONMENT_VARIABLE,f.label=9;case 9:return c||(t.region_source=$t.FAILED_AUTO_DETECTION),[2,c||null]}})})},n.prototype.getRegionFromIMDS=function(e,t){var o;return ne(this,void 0,void 0,function(){return oe(this,function(r){return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(R.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(b.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,b.IMDS_TIMEOUT)]})})},n.prototype.getCurrentVersion=function(e){var t;return ne(this,void 0,void 0,function(){var o;return oe(this,function(r){switch(r.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(R.RegionDiscoveryGetCurrentVersion,this.correlationId),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(b.IMDS_ENDPOINT+"?format=json",e)];case 2:return o=r.sent(),o.status===_n.httpBadRequest&&o.body&&o.body["newest-versions"]&&o.body["newest-versions"].length>0?[2,o.body["newest-versions"][0]]:[2,null];case 3:return r.sent(),[2,null];case 4:return[2]}})})},n.IMDS_OPTIONS={headers:{Metadata:"true"}},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Un=function(){function n(e,t,o,r,i,s,c){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=o,this.authorityOptions=r,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=s,this.correlationId=c,this.regionDiscovery=new ha(t,this.performanceClient,this.correlationId)}return n.prototype.getAuthorityType=function(e){if(e.HostNameAndPort.endsWith(b.CIAM_AUTH_URL))return $e.Ciam;var t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case b.ADFS:return $e.Adfs;case b.DSTS:return $e.Dsts}return $e.Default},Object.defineProperty(n.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new de(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw K.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw K.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw K.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw K.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}else throw K.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw K.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw K.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),n.prototype.canReplaceTenant=function(e){return e.PathSegments.length===1&&!n.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===$e.Default&&this.protocolMode===Bn.AAD},n.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},n.prototype.replacePath=function(e){var t=this,o=e,r=new de(this.metadata.canonical_authority),i=r.getUrlComponents(),s=i.PathSegments,c=this.canonicalAuthorityUrlComponents.PathSegments;return c.forEach(function(l,h){var u=s[h];if(h===0&&t.canReplaceTenant(i)){var g=new de(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];u!==g&&(t.logger.verbose("Replacing tenant domain name "+u+" with id "+g),u=g)}l!==u&&(o=o.replace("/"+u+"/","/"+l+"/"))}),this.replaceTenant(o)},Object.defineProperty(n.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===$e.Adfs||this.authorityType===$e.Dsts||this.protocolMode===Bn.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),n.prototype.discoveryComplete=function(){return!!this.metadata},n.prototype.resolveEndpointsAsync=function(){var e,t,o;return ne(this,void 0,void 0,function(){var r,i,s,c;return oe(this,function(l){switch(l.label){case 0:return(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(R.AuthorityResolveEndpointsAsync,this.correlationId),r=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),r||(r=new Oo,r.updateCanonicalAuthority(this.canonicalAuthority)),(t=this.performanceClient)===null||t===void 0||t.setPreQueueTime(R.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(r)];case 1:return i=l.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,r.preferred_network),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(R.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(r)];case 2:return s=l.sent(),i!==ut.CACHE&&s!==ut.CACHE&&(r.resetExpiresAt(),r.updateCanonicalAuthority(this.canonicalAuthority)),c=this.cacheManager.generateAuthorityMetadataCacheKey(r.preferred_cache),this.cacheManager.setAuthorityMetadata(c,r),this.metadata=r,[2]}})})},n.prototype.updateEndpointMetadata=function(e){var t,o,r,i,s,c;return ne(this,void 0,void 0,function(){var l,h;return oe(this,function(u){switch(u.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(R.AuthorityUpdateEndpointMetadata,this.correlationId),l=this.getEndpointMetadataFromConfig(),l?(e.updateEndpointMetadata(l,!1),[2,ut.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,ut.CACHE]:((o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(R.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return l=u.sent(),l?!((r=this.authorityOptions.azureRegionConfiguration)===null||r===void 0)&&r.azureRegion?((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(R.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(l)]):[3,3]:[3,4];case 2:l=u.sent(),u.label=3;case 3:return e.updateEndpointMetadata(l,!0),[2,ut.NETWORK];case 4:return h=this.getEndpointMetadataFromHardcodedValues(),h&&!this.authorityOptions.skipAuthorityMetadataCache?!((s=this.authorityOptions.azureRegionConfiguration)===null||s===void 0)&&s.azureRegion?((c=this.performanceClient)===null||c===void 0||c.setPreQueueTime(R.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(h)]):[3,6]:[3,7];case 5:h=u.sent(),u.label=6;case 6:return e.updateEndpointMetadata(h,!1),[2,ut.HARDCODED_VALUES];case 7:throw K.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},n.prototype.isAuthoritySameType=function(e){var t=new de(e.canonical_authority),o=t.getUrlComponents().PathSegments;return o.length===this.canonicalAuthorityUrlComponents.PathSegments.length},n.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw we.createInvalidAuthorityMetadataError()}return null},n.prototype.getEndpointMetadataFromNetwork=function(){var e;return ne(this,void 0,void 0,function(){var t,o;return oe(this,function(r){switch(r.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(R.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),t={},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return o=r.sent(),[2,da(o.body)?o.body:null];case 3:return r.sent(),[2,null];case 4:return[2]}})})},n.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in Br?Br[this.canonicalAuthority]:null},n.prototype.updateMetadataWithRegionalInformation=function(e){var t,o,r,i;return ne(this,void 0,void 0,function(){var s,c;return oe(this,function(l){switch(l.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(R.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),s=(o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0?void 0:o.azureRegion,s?s!==b.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=Ln.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=s,[2,n.replaceWithRegionalInformation(e,s)]):((r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(R.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0?void 0:i.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(c=l.sent(),c)return this.regionDiscoveryMetadata.region_outcome=Ln.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=c,[2,n.replaceWithRegionalInformation(e,c)];this.regionDiscoveryMetadata.region_outcome=Ln.AUTO_DETECTION_REQUESTED_FAILED,l.label=2;case 2:return[2,e]}})})},n.prototype.updateCloudDiscoveryMetadata=function(e){var t,o;return ne(this,void 0,void 0,function(){var r,i,s;return oe(this,function(c){switch(c.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(R.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||b.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||b.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||b.NOT_APPLICABLE)),r=this.getCloudDiscoveryMetadataFromConfig(),r?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(r,!1),[2,ut.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),i=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!i?(this.logger.verbose("Found metadata in the cache."),[2,ut.CACHE]):(i&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(R.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(r=c.sent(),r)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(r,!0),[2,ut.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),s=this.getCloudDiscoveryMetadataFromHarcodedValues(),s&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(s,!1),[2,ut.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),we.createUntrustedAuthorityError()}})})},n.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===$e.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),t=n.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),t)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),t;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),we.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},n.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var e;return ne(this,void 0,void 0,function(){var t,o,r,i,s,c,l,h;return oe(this,function(u){switch(u.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(R.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),t=""+b.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",o={},r=null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(t,o)];case 2:if(i=u.sent(),s=void 0,c=void 0,ua(i.body))s=i.body,c=s.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+s.tenant_discovery_endpoint);else if(pa(i.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+i.status),s=i.body,s.error===b.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+s.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+s.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),c=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),r=n.getCloudDiscoveryMetadataFromNetworkResponse(c,this.hostnameAndPort),[3,4];case 3:return l=u.sent(),l instanceof Y?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
160
- Error: `+l.errorCode+`
161
- Error Description: `+l.errorMessage):(h=l,this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
162
- Error: `+h.name+`
163
- Error Description: `+h.message)),[2,null];case 4:return r||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),r=n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,r]}})})},n.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in Ur?Ur[this.canonicalAuthority]:null},n.prototype.isInKnownAuthorities=function(){var e=this,t=this.authorityOptions.knownAuthorities.filter(function(o){return de.getDomainFromUrl(o).toLowerCase()===e.hostnameAndPort});return t.length>0},n.generateAuthority=function(e,t){var o;if(t&&t.azureCloudInstance!==On.None){var r=t.tenant?t.tenant:b.DEFAULT_COMMON_TENANT;o=t.azureCloudInstance+"/"+r+"/"}return o||e},n.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},n.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var o=0;o<e.length;o++){var r=e[o];if(r.aliases.indexOf(t)>-1)return r}return null},n.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw K.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},n.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},n.isPublicCloudAuthority=function(e){return b.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},n.buildRegionalAuthorityString=function(e,t,o){var r=new de(e);r.validateAsUri();var i=r.getUrlComponents(),s=t+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(s=t+"."+b.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var c=de.constructAuthorityUriFromObject(he(he({},r.getUrlComponents()),{HostNameAndPort:s})).urlString;return o?c+"?"+o:c},n.replaceWithRegionalInformation=function(e,t){return e.authorization_endpoint=n.buildRegionalAuthorityString(e.authorization_endpoint,t),e.token_endpoint=n.buildRegionalAuthorityString(e.token_endpoint,t,b.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=n.buildRegionalAuthorityString(e.end_session_endpoint,t)),e},n.transformCIAMAuthority=function(e){var t=e.endsWith(b.FORWARD_SLASH)?e:""+e+b.FORWARD_SLASH,o=new de(e),r=o.getUrlComponents();if(r.PathSegments.length===0&&r.HostNameAndPort.endsWith(b.CIAM_AUTH_URL)){var i=r.HostNameAndPort.split(".")[0];t=""+t+i+b.AAD_TENANT_DOMAIN_SUFFIX}return t},n.reservedTenantDomains=new Set(["{tenant}","{tenantid}",on.COMMON,on.CONSUMERS,on.ORGANIZATIONS]),n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var oo=function(){function n(){}return n.createDiscoveredInstance=function(e,t,o,r,i,s,c){return ne(this,void 0,void 0,function(){var l,h,u;return oe(this,function(g){switch(g.label){case 0:s==null||s.addQueueMeasurement(R.AuthorityFactoryCreateDiscoveredInstance,c),l=Un.transformCIAMAuthority(e),h=n.createInstance(l,t,o,r,i,s,c),g.label=1;case 1:return g.trys.push([1,3,,4]),s==null||s.setPreQueueTime(R.AuthorityResolveEndpointsAsync,c),[4,h.resolveEndpointsAsync()];case 2:return g.sent(),[2,h];case 3:throw u=g.sent(),K.createEndpointDiscoveryIncompleteError(u);case 4:return[2]}})})},n.createInstance=function(e,t,o,r,i,s,c){if(H.isEmpty(e))throw we.createUrlEmptyError();return new Un(e,t,o,r,i,s,c)},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var ro=function(){function n(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return n.isServerTelemetryEntity=function(e,t){var o=e.indexOf(Be.CACHE_KEY)===0,r=!0;return t&&(r=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),o&&r},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Dr=function(){function n(){}return n.isThrottlingEntity=function(e,t){var o=!1;e&&(o=e.indexOf(Mn.THROTTLING_PREFIX)===0);var r=!0;return t&&(r=t.hasOwnProperty("throttleTime")),o&&r},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var ma={sendGetRequestAsync:function(){var n="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Y.createUnexpectedError(n))},sendPostRequestAsync:function(){var n="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Y.createUnexpectedError(n))}};/*! @azure/msal-common v13.3.1 2023-10-27 */var io={missingKidError:{code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},missingAlgError:{code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."}},jr=function(n){Ye(e,n);function e(t,o){var r=n.call(this,t,o)||this;return r.name="JoseHeaderError",Object.setPrototypeOf(r,e.prototype),r}return e.createMissingKidError=function(){return new e(io.missingKidError.code,io.missingKidError.desc)},e.createMissingAlgError=function(){return new e(io.missingAlgError.code,io.missingAlgError.desc)},e}(Y);/*! @azure/msal-common v13.3.1 2023-10-27 */var fa=function(){function n(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return n.getShrHeaderString=function(e){if(!e.kid)throw jr.createMissingKidError();if(!e.alg)throw jr.createMissingAlgError();var t=new n({typ:e.typ||Io.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var ga=function(){function n(e,t){this.cacheOutcome=Qt.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||b.EMPTY_STRING,this.wrapperVer=e.wrapperVer||b.EMPTY_STRING,this.telemetryCacheKey=Be.CACHE_KEY+Pe.CACHE_KEY_SEPARATOR+e.clientId}return n.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Be.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(Be.VALUE_SEPARATOR),o=this.getRegionDiscoveryFields(),r=[e,o].join(Be.VALUE_SEPARATOR);return[Be.SCHEMA_VERSION,r,t].join(Be.CATEGORY_SEPARATOR)},n.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),t=n.maxErrorsToSend(e),o=e.failedRequests.slice(0,2*t).join(Be.VALUE_SEPARATOR),r=e.errors.slice(0,t).join(Be.VALUE_SEPARATOR),i=e.errors.length,s=t<i?Be.OVERFLOW_TRUE:Be.OVERFLOW_FALSE,c=[i,s].join(Be.VALUE_SEPARATOR);return[Be.SCHEMA_VERSION,e.cacheHits,o,r,c].join(Be.CATEGORY_SEPARATOR)},n.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=Be.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),H.isEmpty(e.subError)?H.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(Be.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},n.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},n.prototype.getLastRequests=function(){var e=new ro,t=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return t||e},n.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),t=n.maxErrorsToSend(e),o=e.errors.length;if(t===o)this.cacheManager.removeItem(this.telemetryCacheKey);else{var r=new ro;r.failedRequests=e.failedRequests.slice(t*2),r.errors=e.errors.slice(t),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}},n.maxErrorsToSend=function(e){var t,o=0,r=0,i=e.errors.length;for(t=0;t<i;t++){var s=e.failedRequests[2*t]||b.EMPTY_STRING,c=e.failedRequests[2*t+1]||b.EMPTY_STRING,l=e.errors[t]||b.EMPTY_STRING;if(r+=s.toString().length+c.toString().length+l.length+3,r<Be.MAX_LAST_HEADER_BYTES)o+=1;else break}return o},n.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||b.EMPTY_STRING),e.push(this.regionSource||b.EMPTY_STRING),e.push(this.regionOutcome||b.EMPTY_STRING),e.join(",")},n.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},n.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var qr=function(){function n(e,t,o,r,i,s){this.authority=t,this.libraryName=r,this.libraryVersion=i,this.applicationTelemetry=s,this.clientId=e,this.logger=o,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return n.prototype.startPerformanceMeasurement=function(e,t){return{}},n.prototype.startPerformanceMeasuremeant=function(e,t){return{}},n.prototype.getIntFields=function(){return sa},n.prototype.getPreQueueTime=function(e,t){var o=this.preQueueTimeByCorrelationId.get(t);if(o){if(o.name!==e){this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement");return}}else{this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+t+", unable to add queue measurement");return}return o.time},n.prototype.calculateQueuedTime=function(e,t){return e<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+e),0):t<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+t),0):t<e?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):t-e},n.prototype.addQueueMeasurement=function(e,t,o,r){if(!t){this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement");return}if(o===0)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+o);else if(!o){this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);return}var i={eventName:e,queueTime:o,manuallyCompleted:r},s=this.queueMeasurements.get(t);if(s)s.push(i),this.queueMeasurements.set(t,s);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+t+" to queue measurements");var c=[i];this.queueMeasurements.set(t,c)}this.preQueueTimeByCorrelationId.delete(t)},n.prototype.startMeasurement=function(e,t){var o=this,r,i,s=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",s),this.logger.trace("PerformanceClient: Performance measurement started for "+e,s);var c=this.startPerformanceMeasuremeant(e,s);c.startMeasurement();var l={eventId:this.generateId(),status:to.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:s,appName:(r=this.applicationTelemetry)===null||r===void 0?void 0:r.appName,appVersion:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appVersion};return this.cacheEventByCorrelationId(l),{endMeasurement:function(h){return o.endMeasurement(he(he({},l),h),c)},discardMeasurement:function(){return o.discardMeasurements(l.correlationId)},addStaticFields:function(h){return o.addStaticFields(h,l.correlationId)},increment:function(h){return o.increment(h,l.correlationId)},measurement:c,event:l}},n.prototype.endMeasurement=function(e,t){var o=this,r,i,s=this.eventsByCorrelationId.get(e.correlationId);if(!s)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var c=e.eventId===s.eventId,l={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};c?(l=this.getQueueInfo(e.correlationId),this.discardCache(s.correlationId)):(r=s.incompleteSubMeasurements)===null||r===void 0||r.delete(e.eventId),t==null||t.endMeasurement();var h=t==null?void 0:t.flushMeasurement();if(!h)return this.logger.trace("PerformanceClient: Performance measurement not taken",s.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+h+" ms",e.correlationId),!c)return s[e.name+"DurationMs"]=Math.floor(h),he({},s);var u=he(he({},s),e),g=0;return(i=u.incompleteSubMeasurements)===null||i===void 0||i.forEach(function(f){o.logger.trace("PerformanceClient: Incomplete submeasurement "+f.name+" found for "+e.name,u.correlationId),g++}),u.incompleteSubMeasurements=void 0,u=he(he({},u),{durationMs:Math.round(h),queuedTimeMs:l.totalQueueTime,queuedCount:l.totalQueueCount,queuedManuallyCompletedCount:l.manuallyCompletedCount,status:to.Completed,incompleteSubsCount:g}),this.truncateIntegralFields(u,this.getIntFields()),this.emitEvents([u],e.correlationId),u},n.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var o=this.eventsByCorrelationId.get(t);o?this.eventsByCorrelationId.set(t,he(he({},o),e)):this.logger.trace("PerformanceClient: Event not found for",t)},n.prototype.increment=function(e,t){this.logger.trace("PerformanceClient: Updating counters");var o=this.eventsByCorrelationId.get(t);if(o)for(var r in e)o.hasOwnProperty(r)||(o[r]=0),o[r]+=e[r];else this.logger.trace("PerformanceClient: Event not found for",t)},n.prototype.cacheEventByCorrelationId=function(e){var t=this.eventsByCorrelationId.get(e.correlationId);t?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,he({},e)))},n.prototype.getQueueInfo=function(e){var t=this.queueMeasurements.get(e);t||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e);var o=0,r=0,i=0;return t==null||t.forEach(function(s){o+=s.queueTime,r++,i+=s.manuallyCompleted?1:0}),{totalQueueTime:o,totalQueueCount:r,manuallyCompletedCount:i}},n.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},n.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: QueueMeasurements discarded",e),this.queueMeasurements.delete(e),this.logger.trace("PerformanceClient: Pre-queue times discarded",e),this.preQueueTimeByCorrelationId.delete(e)},n.prototype.addPerformanceCallback=function(e){var t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+t),t},n.prototype.removePerformanceCallback=function(e){var t=this.callbacks.delete(e);return t?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),t},n.prototype.emitEvents=function(e,t){var o=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach(function(r,i){o.logger.trace("PerformanceClient: Emitting event to callback "+i,t),r.apply(null,[e])})},n.prototype.truncateIntegralFields=function(e,t){t.forEach(function(o){o in e&&typeof e[o]=="number"&&(e[o]=Math.floor(e[o]))})},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Fr=function(){function n(){}return n.prototype.startMeasurement=function(){},n.prototype.endMeasurement=function(){},n.prototype.flushMeasurement=function(){return null},n}(),_a=function(n){Ye(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new Fr},e.prototype.startPerformanceMeasurement=function(){return new Fr},e.prototype.calculateQueuedTime=function(t,o){return 0},e.prototype.addQueueMeasurement=function(t,o,r){},e.prototype.setPreQueueTime=function(t,o){},e}(qr);/*! @azure/msal-browser v2.38.3 2023-10-27 */var U={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},F=function(n){xe(e,n);function e(t,o){var r=n.call(this,t,o)||this;return Object.setPrototypeOf(r,e.prototype),r.name="BrowserAuthError",r}return e.createPkceNotGeneratedError=function(t){return new e(U.pkceNotGenerated.code,U.pkceNotGenerated.desc+" Detail:"+t)},e.createCryptoNotAvailableError=function(t){return new e(U.cryptoDoesNotExist.code,U.cryptoDoesNotExist.desc+" Detail:"+t)},e.createHttpMethodNotImplementedError=function(t){return new e(U.httpMethodNotImplementedError.code,U.httpMethodNotImplementedError.desc+" Given Method: "+t)},e.createEmptyNavigationUriError=function(){return new e(U.emptyNavigateUriError.code,U.emptyNavigateUriError.desc)},e.createEmptyHashError=function(t){return new e(U.hashEmptyError.code,U.hashEmptyError.desc+" Given Url: "+t)},e.createHashDoesNotContainStateError=function(){return new e(U.hashDoesNotContainStateError.code,U.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(U.hashDoesNotContainKnownPropertiesError.code,U.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(U.unableToParseStateError.code,U.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(U.stateInteractionTypeMismatchError.code,U.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(U.interactionInProgress.code,U.interactionInProgress.desc)},e.createPopupWindowError=function(t){var o=U.popupWindowError.desc;return o=H.isEmpty(t)?o:o+" Details: "+t,new e(U.popupWindowError.code,o)},e.createEmptyWindowCreatedError=function(){return new e(U.emptyWindowError.code,U.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(U.userCancelledError.code,U.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(U.monitorPopupTimeoutError.code,U.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(U.monitorIframeTimeoutError.code,U.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(t){return new e(U.redirectInIframeError.code,U.redirectInIframeError.desc+" (window.parent !== window) => "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(U.blockTokenRequestsInHiddenIframeError.code,U.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(U.blockAcquireTokenInPopupsError.code,U.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(U.iframeClosedPrematurelyError.code,U.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(U.silentLogoutUnsupportedError.code,U.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(U.noAccountError.code,U.noAccountError.desc)},e.createSilentPromptValueError=function(t){return new e(U.silentPromptValueError.code,U.silentPromptValueError.desc+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(U.unableToParseTokenRequestCacheError.code,U.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(U.noTokenRequestCacheError.code,U.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(U.authRequestNotSet.code,U.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(U.noCachedAuthorityError.code,U.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(U.invalidCacheType.code,""+U.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(U.notInBrowserEnvironment.code,U.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(U.databaseNotOpen.code,U.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(U.noNetworkConnectivity.code,U.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(t,o){return new e(U.postRequestFailed.code,U.postRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+o.split("?")[0])},e.createGetRequestFailedError=function(t,o){return new e(U.getRequestFailed.code,U.getRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+o.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(U.failedToParseNetworkResponse.code,U.failedToParseNetworkResponse.desc+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(U.unableToLoadTokenError.code,U.unableToLoadTokenError.desc+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(U.signingKeyNotFoundInStorage.code,U.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+t)},e.createAuthCodeRequiredError=function(){return new e(U.authCodeRequired.code,U.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(U.authCodeOrNativeAccountRequired.code,U.authCodeOrNativeAccountRequired.desc)},e.createSpaCodeAndNativeAccountIdPresentError=function(){return new e(U.spaCodeAndNativeAccountPresent.code,U.spaCodeAndNativeAccountPresent.desc)},e.createDatabaseUnavailableError=function(){return new e(U.databaseUnavailable.code,U.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(U.unableToAcquireTokenFromNativePlatform.code,U.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(U.nativeHandshakeTimeout.code,U.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(U.nativeExtensionNotInstalled.code,U.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(U.nativeConnectionNotEstablished.code,U.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(U.nativeBrokerCalledBeforeInitialize.code,U.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(U.nativePromptNotSupported.code,U.nativePromptNotSupported.desc)},e}(Y);/*! @azure/msal-browser v2.38.3 2023-10-27 */var _t={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},Dn={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Vt;(function(n){n.HandshakeRequest="Handshake",n.HandshakeResponse="HandshakeResponse",n.GetToken="GetToken",n.Response="Response"})(Vt||(Vt={}));var Ae;(function(n){n.LocalStorage="localStorage",n.SessionStorage="sessionStorage",n.MemoryStorage="memoryStorage"})(Ae||(Ae={}));var At;(function(n){n.GET="GET",n.POST="POST"})(At||(At={}));var ue;(function(n){n.AUTHORITY="authority",n.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",n.SESSION_STATE="session.state",n.REQUEST_STATE="request.state",n.NONCE_IDTOKEN="nonce.id_token",n.ORIGIN_URI="request.origin",n.RENEW_STATUS="token.renew.status",n.URL_HASH="urlHash",n.REQUEST_PARAMS="request.params",n.SCOPES="scopes",n.INTERACTION_STATUS_KEY="interaction.status",n.CCS_CREDENTIAL="ccs.credential",n.CORRELATION_ID="request.correlationId",n.NATIVE_REQUEST="request.native",n.REDIRECT_CONTEXT="request.redirect.context"})(ue||(ue={}));var Rt;(function(n){n.ACCOUNT_KEYS="msal.account.keys",n.TOKEN_KEYS="msal.token.keys"})(Rt||(Rt={}));var kn;(function(n){n.WRAPPER_SKU="wrapper.sku",n.WRAPPER_VER="wrapper.version"})(kn||(kn={}));var ke;(function(n){n[n.acquireTokenRedirect=861]="acquireTokenRedirect",n[n.acquireTokenPopup=862]="acquireTokenPopup",n[n.ssoSilent=863]="ssoSilent",n[n.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",n[n.handleRedirectPromise=865]="handleRedirectPromise",n[n.acquireTokenByCode=866]="acquireTokenByCode",n[n.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",n[n.logout=961]="logout",n[n.logoutPopup=962]="logoutPopup"})(ke||(ke={}));var $;(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"})($||($={}));var Vr;(function(n){n.Startup="startup",n.Login="login",n.Logout="logout",n.AcquireToken="acquireToken",n.SsoSilent="ssoSilent",n.HandleRedirect="handleRedirect",n.None="none"})(Vr||(Vr={}));var Hr={scopes:An},Cn="jwk",Kr;(function(n){n.React="@azure/msal-react",n.Angular="@azure/msal-angular"})(Kr||(Kr={}));var zo="msal.db",va=1,ya=zo+".keys",Xe;(function(n){n[n.Default=0]="Default",n[n.AccessToken=1]="AccessToken",n[n.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",n[n.RefreshToken=3]="RefreshToken",n[n.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",n[n.Skip=5]="Skip"})(Xe||(Xe={}));/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ze={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},invalidCallbackObject:{code:"invalid_callback_object",desc:"The object passed for the callback was invalid. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}},ao=function(n){xe(e,n);function e(t,o){var r=n.call(this,t,o)||this;return r.name="BrowserConfigurationAuthError",Object.setPrototypeOf(r,e.prototype),r}return e.createRedirectUriEmptyError=function(){return new e(Ze.redirectUriNotSet.code,Ze.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(Ze.postLogoutUriNotSet.code,Ze.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(t){return new e(Ze.storageNotSupportedError.code,Ze.storageNotSupportedError.desc+" Given Location: "+t)},e.createRedirectCallbacksNotSetError=function(){return new e(Ze.noRedirectCallbacksSet.code,Ze.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(Ze.stubPcaInstanceCalled.code,Ze.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(Ze.inMemRedirectUnavailable.code,Ze.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(Ze.entropyNotProvided.code,Ze.entropyNotProvided.desc)},e}(Y);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Gr=function(){function n(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return n.prototype.validateWindowStorage=function(e){if(e!==Ae.LocalStorage&&e!==Ae.SessionStorage)throw ao.createStorageNotSupportedError(e);var t=!!window[e];if(!t)throw ao.createStorageNotSupportedError(e)},n.prototype.getItem=function(e){return this.windowStorage.getItem(e)},n.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},n.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},n.prototype.getKeys=function(){return Object.keys(this.windowStorage)},n.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var xo=function(){function n(){this.cache=new Map}return n.prototype.getItem=function(e){return this.cache.get(e)||null},n.prototype.setItem=function(e,t){this.cache.set(e,t)},n.prototype.removeItem=function(e){this.cache.delete(e)},n.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,o){e.push(o)}),e},n.prototype.containsKey=function(e){return this.cache.has(e)},n.prototype.clear=function(){this.cache.clear()},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var $r=function(){function n(){}return n.extractBrowserRequestState=function(e,t){if(H.isEmpty(t))return null;try{var o=Ft.parseRequestState(e,t);return o.libraryState.meta}catch(r){throw K.createInvalidStateError(t,r)}},n.parseServerResponseFromHash=function(e){if(!e)return{};var t=new de(e);return de.getDeserializedHash(t.getHash())},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Bo=function(n){xe(e,n);function e(t,o,r,i){var s=n.call(this,t,r,i)||this;return s.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,s.cacheConfig=o,s.logger=i,s.internalStorage=new xo,s.browserStorage=s.setupBrowserStorage(s.cacheConfig.cacheLocation),s.temporaryCacheStorage=s.setupTemporaryCacheStorage(s.cacheConfig.temporaryCacheLocation,s.cacheConfig.cacheLocation),o.cacheMigrationEnabled&&(s.migrateCacheEntries(),s.createKeyMaps()),s}return e.prototype.setupBrowserStorage=function(t){switch(t){case Ae.LocalStorage:case Ae.SessionStorage:try{return new Gr(t)}catch(o){this.logger.verbose(o);break}}return this.cacheConfig.cacheLocation=Ae.MemoryStorage,new xo},e.prototype.setupTemporaryCacheStorage=function(t,o){switch(o){case Ae.LocalStorage:case Ae.SessionStorage:try{return new Gr(t||Ae.SessionStorage)}catch(r){return this.logger.verbose(r),this.internalStorage}case Ae.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,o=b.CACHE_PREFIX+"."+Ne.ID_TOKEN,r=b.CACHE_PREFIX+"."+Ne.CLIENT_INFO,i=b.CACHE_PREFIX+"."+Ne.ERROR,s=b.CACHE_PREFIX+"."+Ne.ERROR_DESC,c=this.browserStorage.getItem(o),l=this.browserStorage.getItem(r),h=this.browserStorage.getItem(i),u=this.browserStorage.getItem(s),g=[c,l,h,u],f=[Ne.ID_TOKEN,Ne.CLIENT_INFO,Ne.ERROR,Ne.ERROR_DESC];f.forEach(function(w,C){return t.migrateCacheEntry(w,g[C])})},e.prototype.migrateCacheEntry=function(t,o){o&&this.setTemporaryCache(t,o,!0)},e.prototype.createKeyMaps=function(){var t=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var o=this.getItem(Rt.ACCOUNT_KEYS),r=this.getItem(Rt.TOKEN_KEYS+"."+this.clientId);if(o&&r){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}var i=this.browserStorage.getKeys();i.forEach(function(s){if(t.isCredentialKey(s)){var c=t.getItem(s);if(c){var l=t.validateAndParseJson(c);if(l&&l.hasOwnProperty("credentialType"))switch(l.credentialType){case Z.ID_TOKEN:if(sn.isIdTokenEntity(l)){t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+s+" found, saving key to token key map");var h=Je.toObject(new sn,l),u=t.updateCredentialCacheKey(s,h);t.addTokenKey(u,Z.ID_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+s);break;case Z.ACCESS_TOKEN:case Z.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(cn.isAccessTokenEntity(l)){t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+s+" found, saving key to token key map");var g=Je.toObject(new cn,l),u=t.updateCredentialCacheKey(s,g);t.addTokenKey(u,Z.ACCESS_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+s);break;case Z.REFRESH_TOKEN:if(yn.isRefreshTokenEntity(l)){t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+s+" found, saving key to token key map");var f=Je.toObject(new yn,l),u=t.updateCredentialCacheKey(s,f);t.addTokenKey(u,Z.REFRESH_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+s);break}}}if(t.isAccountKey(s)){var c=t.getItem(s);if(c){var w=t.validateAndParseJson(c);w&&Ue.isAccountEntity(w)&&(t.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+s+" found, saving key to account key map"),t.addAccountKeyToMap(s))}}})},e.prototype.validateAndParseJson=function(t){try{var o=JSON.parse(t);return o&&typeof o=="object"?o:null}catch{return null}},e.prototype.getItem=function(t){return this.browserStorage.getItem(t)},e.prototype.setItem=function(t,o){this.browserStorage.setItem(t,o)},e.prototype.getAccount=function(t){this.logger.trace("BrowserCacheManager.getAccount called");var o=this.getItem(t);if(!o)return this.removeAccountKeyFromMap(t),null;var r=this.validateAndParseJson(o);return!r||!Ue.isAccountEntity(r)?(this.removeAccountKeyFromMap(t),null):Je.toObject(new Ue,r)},e.prototype.setAccount=function(t){this.logger.trace("BrowserCacheManager.setAccount called");var o=t.generateAccountKey();this.setItem(o,JSON.stringify(t)),this.addAccountKeyToMap(o)},e.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var t=this.getItem(Rt.ACCOUNT_KEYS);return t?JSON.parse(t):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},e.prototype.addAccountKeyToMap=function(t){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+t);var o=this.getAccountKeys();o.indexOf(t)===-1?(o.push(t),this.setItem(Rt.ACCOUNT_KEYS,JSON.stringify(o)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},e.prototype.removeAccountKeyFromMap=function(t){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+t);var o=this.getAccountKeys(),r=o.indexOf(t);r>-1?(o.splice(r,1),this.setItem(Rt.ACCOUNT_KEYS,JSON.stringify(o)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},e.prototype.removeAccount=function(t){return z(this,void 0,void 0,function(){return x(this,function(o){return n.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]})})},e.prototype.removeIdToken=function(t){n.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,Z.ID_TOKEN)},e.prototype.removeAccessToken=function(t){return z(this,void 0,void 0,function(){return x(this,function(o){return n.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,Z.ACCESS_TOKEN),[2]})})},e.prototype.removeRefreshToken=function(t){n.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,Z.REFRESH_TOKEN)},e.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var t=this.getItem(Rt.TOKEN_KEYS+"."+this.clientId);if(t){var o=this.validateAndParseJson(t);if(o&&o.hasOwnProperty("idToken")&&o.hasOwnProperty("accessToken")&&o.hasOwnProperty("refreshToken"))return o;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},e.prototype.addTokenKey=function(t,o){this.logger.trace("BrowserCacheManager addTokenKey called");var r=this.getTokenKeys();switch(o){case Z.ID_TOKEN:r.idToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),r.idToken.push(t));break;case Z.ACCESS_TOKEN:r.accessToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),r.accessToken.push(t));break;case Z.REFRESH_TOKEN:r.refreshToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),r.refreshToken.push(t));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+o),K.createUnexpectedCredentialTypeError()}this.setItem(Rt.TOKEN_KEYS+"."+this.clientId,JSON.stringify(r))},e.prototype.removeTokenKey=function(t,o){this.logger.trace("BrowserCacheManager removeTokenKey called");var r=this.getTokenKeys();switch(o){case Z.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+t+" from map");var i=r.idToken.indexOf(t);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),r.idToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case Z.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+t+" from map");var s=r.accessToken.indexOf(t);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),r.accessToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case Z.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+t+" from map");var c=r.refreshToken.indexOf(t);c>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),r.refreshToken.splice(c,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+o),K.createUnexpectedCredentialTypeError()}this.setItem(Rt.TOKEN_KEYS+"."+this.clientId,JSON.stringify(r))},e.prototype.getIdTokenCredential=function(t){var o=this.getItem(t);if(!o)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,Z.ID_TOKEN),null;var r=this.validateAndParseJson(o);return!r||!sn.isIdTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,Z.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Je.toObject(new sn,r))},e.prototype.setIdTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var o=t.generateCredentialKey();this.setItem(o,JSON.stringify(t)),this.addTokenKey(o,Z.ID_TOKEN)},e.prototype.getAccessTokenCredential=function(t){var o=this.getItem(t);if(!o)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,Z.ACCESS_TOKEN),null;var r=this.validateAndParseJson(o);return!r||!cn.isAccessTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,Z.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Je.toObject(new cn,r))},e.prototype.setAccessTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var o=t.generateCredentialKey();this.setItem(o,JSON.stringify(t)),this.addTokenKey(o,Z.ACCESS_TOKEN)},e.prototype.getRefreshTokenCredential=function(t){var o=this.getItem(t);if(!o)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,Z.REFRESH_TOKEN),null;var r=this.validateAndParseJson(o);return!r||!yn.isRefreshTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,Z.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Je.toObject(new yn,r))},e.prototype.setRefreshTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var o=t.generateCredentialKey();this.setItem(o,JSON.stringify(t)),this.addTokenKey(o,Z.REFRESH_TOKEN)},e.prototype.getAppMetadata=function(t){var o=this.getItem(t);if(!o)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var r=this.validateAndParseJson(o);return!r||!Lo.isAppMetadataEntity(t,r)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Je.toObject(new Lo,r))},e.prototype.setAppMetadata=function(t){this.logger.trace("BrowserCacheManager.setAppMetadata called");var o=t.generateAppMetadataKey();this.setItem(o,JSON.stringify(t))},e.prototype.getServerTelemetry=function(t){var o=this.getItem(t);if(!o)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var r=this.validateAndParseJson(o);return!r||!ro.isServerTelemetryEntity(t,r)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Je.toObject(new ro,r))},e.prototype.setServerTelemetry=function(t,o){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(t,JSON.stringify(o))},e.prototype.getAuthorityMetadata=function(t){var o=this.internalStorage.getItem(t);if(!o)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var r=this.validateAndParseJson(o);return r&&Oo.isAuthorityMetadataEntity(t,r)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Je.toObject(new Oo,r)):null},e.prototype.getAuthorityMetadataKeys=function(){var t=this,o=this.internalStorage.getKeys();return o.filter(function(r){return t.isAuthorityMetadata(r)})},e.prototype.setWrapperMetadata=function(t,o){this.internalStorage.setItem(kn.WRAPPER_SKU,t),this.internalStorage.setItem(kn.WRAPPER_VER,o)},e.prototype.getWrapperMetadata=function(){var t=this.internalStorage.getItem(kn.WRAPPER_SKU)||b.EMPTY_STRING,o=this.internalStorage.getItem(kn.WRAPPER_VER)||b.EMPTY_STRING;return[t,o]},e.prototype.setAuthorityMetadata=function(t,o){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(t,JSON.stringify(o))},e.prototype.getActiveAccount=function(){var t=this.generateCacheKey(Ne.ACTIVE_ACCOUNT_FILTERS),o=this.getItem(t);if(!o){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var r=this.generateCacheKey(Ne.ACTIVE_ACCOUNT),i=this.getItem(r);if(!i)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var s=this.getAccountInfoByFilter({localAccountId:i})[0]||null;return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(s),s):null}var c=this.validateAndParseJson(o);return c?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:c.homeAccountId,localAccountId:c.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},e.prototype.setActiveAccount=function(t){var o=this.generateCacheKey(Ne.ACTIVE_ACCOUNT_FILTERS),r=this.generateCacheKey(Ne.ACTIVE_ACCOUNT);if(t){this.logger.verbose("setActiveAccount: Active account set");var i={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId};this.browserStorage.setItem(o,JSON.stringify(i)),this.browserStorage.setItem(r,t.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(o),this.browserStorage.removeItem(r)},e.prototype.getAccountInfoByFilter=function(t){var o=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+o.length+" accounts found"),o.filter(function(r){return!(t.username&&t.username.toLowerCase()!==r.username.toLowerCase()||t.homeAccountId&&t.homeAccountId!==r.homeAccountId||t.localAccountId&&t.localAccountId!==r.localAccountId||t.tenantId&&t.tenantId!==r.tenantId||t.environment&&t.environment!==r.environment)})},e.prototype.getAccountInfoByHints=function(t,o){var r=this.getAllAccounts().filter(function(i){if(o){var s=i.idTokenClaims&&i.idTokenClaims.sid;return o===s}return t?t===i.username:!1});if(r.length===1)return r[0];if(r.length>1)throw K.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(t){var o=this.getItem(t);if(!o)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var r=this.validateAndParseJson(o);return!r||!Dr.isThrottlingEntity(t,r)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Je.toObject(new Dr,r))},e.prototype.setThrottlingCache=function(t,o){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(t,JSON.stringify(o))},e.prototype.getTemporaryCache=function(t,o){var r=o?this.generateCacheKey(t):t;if(this.cacheConfig.storeAuthStateInCookie){var i=this.getItemCookie(r);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),i}var s=this.temporaryCacheStorage.getItem(r);if(!s){if(this.cacheConfig.cacheLocation===Ae.LocalStorage){var c=this.browserStorage.getItem(r);if(c)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),c}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),s},e.prototype.setTemporaryCache=function(t,o,r){var i=r?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(i,o),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(i,o))},e.prototype.removeItem=function(t){this.browserStorage.removeItem(t),this.temporaryCacheStorage.removeItem(t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(t))},e.prototype.containsKey=function(t){return this.browserStorage.containsKey(t)||this.temporaryCacheStorage.containsKey(t)},e.prototype.getKeys=function(){return Eo(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return z(this,void 0,void 0,function(){var t=this;return x(this,function(o){switch(o.label){case 0:return[4,this.removeAllAccounts()];case 1:return o.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(r){(t.browserStorage.containsKey(r)||t.temporaryCacheStorage.containsKey(r))&&(r.indexOf(b.CACHE_PREFIX)!==-1||r.indexOf(t.clientId)!==-1)&&t.removeItem(r)}),this.internalStorage.clear(),[2]}})})},e.prototype.clearTokensAndKeysWithClaims=function(){return z(this,void 0,void 0,function(){var t,o,r=this;return x(this,function(i){switch(i.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),t=this.getTokenKeys(),o=[],t.accessToken.forEach(function(s){var c=r.getAccessTokenCredential(s);c!=null&&c.requestedClaimsHash&&s.includes(c.requestedClaimsHash.toLowerCase())&&o.push(r.removeAccessToken(s))}),[4,Promise.all(o)];case 1:return i.sent(),o.length>0&&this.logger.warning(o.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},e.prototype.setItemCookie=function(t,o,r){var i=encodeURIComponent(t)+"="+encodeURIComponent(o)+";path=/;SameSite=Lax;";if(r){var s=this.getCookieExpirationTime(r);i+="expires="+s+";"}this.cacheConfig.secureCookies&&(i+="Secure;"),document.cookie=i},e.prototype.getItemCookie=function(t){for(var o=encodeURIComponent(t)+"=",r=document.cookie.split(";"),i=0;i<r.length;i++){for(var s=r[i];s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(o)===0)return decodeURIComponent(s.substring(o.length,s.length))}return b.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var t=this,o=b.CACHE_PREFIX+"."+this.clientId,r=document.cookie.split(";");r.forEach(function(i){for(;i.charAt(0)===" ";)i=i.substring(1);if(i.indexOf(o)===0){var s=i.split("=")[0];t.clearItemCookie(s)}})},e.prototype.clearItemCookie=function(t){this.setItemCookie(t,b.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(t){var o=new Date,r=new Date(o.getTime()+t*this.COOKIE_LIFE_MULTIPLIER);return r.toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(t){var o=this.validateAndParseJson(t);return o?JSON.stringify(t):H.startsWith(t,b.CACHE_PREFIX)||H.startsWith(t,Ne.ADAL_ID_TOKEN)?t:b.CACHE_PREFIX+"."+this.clientId+"."+t},e.prototype.generateAuthorityKey=function(t){var o=Ft.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(ue.AUTHORITY+"."+o)},e.prototype.generateNonceKey=function(t){var o=Ft.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(ue.NONCE_IDTOKEN+"."+o)},e.prototype.generateStateKey=function(t){var o=Ft.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(ue.REQUEST_STATE+"."+o)},e.prototype.getCachedAuthority=function(t){var o=this.generateStateKey(t),r=this.getTemporaryCache(o);if(!r)return null;var i=this.generateAuthorityKey(r);return this.getTemporaryCache(i)},e.prototype.updateCacheEntries=function(t,o,r,i,s){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var c=this.generateStateKey(t);this.setTemporaryCache(c,t,!1);var l=this.generateNonceKey(t);this.setTemporaryCache(l,o,!1);var h=this.generateAuthorityKey(t);if(this.setTemporaryCache(h,r,!1),s){var u={credential:s.homeAccountId,type:rt.HOME_ACCOUNT_ID};this.setTemporaryCache(ue.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!H.isEmpty(i)){var u={credential:i,type:rt.UPN};this.setTemporaryCache(ue.CCS_CREDENTIAL,JSON.stringify(u),!0)}},e.prototype.resetRequestCache=function(t){var o=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),H.isEmpty(t)||this.getKeys().forEach(function(r){r.indexOf(t)!==-1&&o.removeItem(r)}),t&&(this.removeItem(this.generateStateKey(t)),this.removeItem(this.generateNonceKey(t)),this.removeItem(this.generateAuthorityKey(t))),this.removeItem(this.generateCacheKey(ue.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(ue.ORIGIN_URI)),this.removeItem(this.generateCacheKey(ue.URL_HASH)),this.removeItem(this.generateCacheKey(ue.CORRELATION_ID)),this.removeItem(this.generateCacheKey(ue.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(ue.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(t){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),t){var o=this.generateStateKey(t),r=this.temporaryCacheStorage.getItem(o);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+r),this.resetRequestCache(r||b.EMPTY_STRING)}this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(t){var o=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(r){if(r.indexOf(ue.REQUEST_STATE)!==-1){var i=o.temporaryCacheStorage.getItem(r);if(i){var s=$r.extractBrowserRequestState(o.cryptoImpl,i);s&&s.interactionType===t&&(o.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+i),o.resetRequestCache(i))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(t,o){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var r=o.base64Encode(JSON.stringify(t));this.setTemporaryCache(ue.REQUEST_PARAMS,r,!0)},e.prototype.getCachedRequest=function(t,o){this.logger.trace("BrowserCacheManager.getCachedRequest called");var r=this.getTemporaryCache(ue.REQUEST_PARAMS,!0);if(!r)throw F.createNoTokenRequestCacheError();var i=this.validateAndParseJson(o.base64Decode(r));if(!i)throw F.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(ue.REQUEST_PARAMS)),H.isEmpty(i.authority)){var s=this.generateAuthorityKey(t),c=this.getTemporaryCache(s);if(!c)throw F.createNoCachedAuthorityError();i.authority=c}return i},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var t=this.getTemporaryCache(ue.NATIVE_REQUEST,!0);if(!t)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var o=this.validateAndParseJson(t);return o||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},e.prototype.isInteractionInProgress=function(t){var o=this.getInteractionInProgress();return t?o===this.clientId:!!o},e.prototype.getInteractionInProgress=function(){var t=b.CACHE_PREFIX+"."+ue.INTERACTION_STATUS_KEY;return this.getTemporaryCache(t,!1)},e.prototype.setInteractionInProgress=function(t){var o=b.CACHE_PREFIX+"."+ue.INTERACTION_STATUS_KEY;if(t){if(this.getInteractionInProgress())throw F.createInteractionInProgressError();this.setTemporaryCache(o,this.clientId,!1)}else!t&&this.getInteractionInProgress()===this.clientId&&this.removeItem(o)},e.prototype.getLegacyLoginHint=function(){var t=this.getTemporaryCache(Ne.ADAL_ID_TOKEN);t&&(this.browserStorage.removeItem(Ne.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var o=this.getTemporaryCache(Ne.ID_TOKEN,!0);o&&(this.removeItem(this.generateCacheKey(Ne.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var r=o||t;if(r){var i=new It(r,this.cryptoImpl);if(i.claims&&i.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),i.claims.preferred_username;if(i.claims&&i.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),i.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},e.prototype.updateCredentialCacheKey=function(t,o){var r=o.generateCredentialKey();if(t!==r){var i=this.getItem(t);if(i)return this.removeItem(t),this.setItem(r,i),this.logger.verbose("Updated an outdated "+o.credentialType+" cache key"),r;this.logger.error("Attempted to update an outdated "+o.credentialType+" cache key but no item matching the outdated key was found in storage")}return t},e.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(ue.REDIRECT_CONTEXT,!0)},e.prototype.setRedirectRequestContext=function(t){this.setTemporaryCache(ue.REDIRECT_CONTEXT,t,!0)},e}(Je),ba=function(n,e){var t={cacheLocation:Ae.MemoryStorage,temporaryCacheLocation:Ae.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new Bo(n,t,Xn,e)};/*! @azure/msal-browser v2.38.3 2023-10-27 */var Uo="@azure/msal-browser",jn="2.38.3";/*! @azure/msal-browser v2.38.3 2023-10-27 */var wa=function(){function n(){}return n.prototype.sendGetRequestAsync=function(e,t){return z(this,void 0,void 0,function(){var o,r,i;return x(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,fetch(e,{method:At.GET,headers:this.getFetchHeaders(t)})];case 1:return o=s.sent(),[3,3];case 2:throw r=s.sent(),window.navigator.onLine?F.createGetRequestFailedError(r,e):F.createNoNetworkConnectivityError();case 3:return s.trys.push([3,5,,6]),i={headers:this.getHeaderDict(o.headers)},[4,o.json()];case 4:return[2,(i.body=s.sent(),i.status=o.status,i)];case 5:throw s.sent(),F.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},n.prototype.sendPostRequestAsync=function(e,t){return z(this,void 0,void 0,function(){var o,r,i,s;return x(this,function(c){switch(c.label){case 0:o=t&&t.body||b.EMPTY_STRING,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,fetch(e,{method:At.POST,headers:this.getFetchHeaders(t),body:o})];case 2:return r=c.sent(),[3,4];case 3:throw i=c.sent(),window.navigator.onLine?F.createPostRequestFailedError(i,e):F.createNoNetworkConnectivityError();case 4:return c.trys.push([4,6,,7]),s={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 5:return[2,(s.body=c.sent(),s.status=r.status,s)];case 6:throw c.sent(),F.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},n.prototype.getFetchHeaders=function(e){var t=new Headers;if(!(e&&e.headers))return t;var o=e.headers;return Object.keys(o).forEach(function(r){t.append(r,o[r])}),t},n.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(o,r){t[r]=o}),t},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var ka=function(){function n(){}return n.prototype.sendGetRequestAsync=function(e,t){return z(this,void 0,void 0,function(){return x(this,function(o){return[2,this.sendRequestAsync(e,At.GET,t)]})})},n.prototype.sendPostRequestAsync=function(e,t){return z(this,void 0,void 0,function(){return x(this,function(o){return[2,this.sendRequestAsync(e,At.POST,t)]})})},n.prototype.sendRequestAsync=function(e,t,o){var r=this;return new Promise(function(i,s){var c=new XMLHttpRequest;if(c.open(t,e,!0),r.setXhrHeaders(c,o),c.onload=function(){(c.status<200||c.status>=300)&&(t===At.POST?s(F.createPostRequestFailedError("Failed with status "+c.status,e)):s(F.createGetRequestFailedError("Failed with status "+c.status,e)));try{var l=JSON.parse(c.responseText),h={headers:r.getHeaderDict(c),body:l,status:c.status};i(h)}catch{s(F.createFailedToParseNetworkResponseError(e))}},c.onerror=function(){window.navigator.onLine?t===At.POST?s(F.createPostRequestFailedError("Failed with status "+c.status,e)):s(F.createGetRequestFailedError("Failed with status "+c.status,e)):s(F.createNoNetworkConnectivityError())},t===At.POST&&o&&o.body)c.send(o.body);else if(t===At.GET)c.send();else throw F.createHttpMethodNotImplementedError(t)})},n.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var o=t.headers;Object.keys(o).forEach(function(r){e.setRequestHeader(r,o[r])})}},n.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders(),o=t.trim().split(/[\r\n]+/),r={};return o.forEach(function(i){var s=i.split(": "),c=s.shift(),l=s.join(": ");c&&l&&(r[c]=l)}),r},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ee=function(){function n(){}return n.clearHash=function(e){e.location.hash=b.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,b.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},n.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):b.EMPTY_STRING},n.isInIframe=function(){return window.parent!==window},n.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(_t.POPUP_NAME_PREFIX+".")===0},n.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},n.getHomepage=function(){var e=new de(window.location.href),t=e.getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},n.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new wa:new ka},n.blockReloadInHiddenIframes=function(){var e=de.hashContainsKnownProperties(window.location.hash);if(e&&n.isInIframe())throw F.createBlockReloadInHiddenIframeError()},n.blockRedirectInIframe=function(e,t){var o=n.isInIframe();if(e===$.Redirect&&o&&!t)throw F.createRedirectInIframeError(o)},n.blockAcquireTokenInPopups=function(){if(n.isInPopup())throw F.createBlockAcquireTokenInPopupsError()},n.blockNonBrowserEnvironment=function(e){if(!e)throw F.createNonBrowserEnvironmentError()},n.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw F.createNativeBrokerCalledBeforeInitialize()},n.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),o=e.indexOf("Trident/"),r=e.indexOf("Edge/"),i=t>0||o>0,s=r>0;return i||s},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Qr=function(){function n(e,t,o,r,i,s,c,l,h){this.config=e,this.browserStorage=t,this.browserCrypto=o,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=s,this.nativeMessageHandler=l,this.correlationId=h||this.browserCrypto.createNewGuid(),this.logger=r.clone(_t.MSAL_SKU,jn,this.correlationId),this.performanceClient=c}return n.prototype.clearCacheOnLogout=function(e){return z(this,void 0,void 0,function(){return x(this,function(t){switch(t.label){case 0:if(!e)return[3,5];Ue.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(Ue.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},n.prototype.initializeBaseRequest=function(e,t){return z(this,void 0,void 0,function(){var o,r,i,s;return x(this,function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(R.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),o=e.authority||this.config.auth.authority,t?[4,this.validateRequestAuthority(o,t)]:[3,2];case 1:c.sent(),c.label=2;case 2:if(r=Eo(e&&e.scopes||[]),i=Q(Q({},e),{correlationId:this.correlationId,authority:o,scopes:r}),!i.authenticationScheme)i.authenticationScheme=ge.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(i.authenticationScheme===ge.SSH){if(!e.sshJwk)throw we.createMissingSshJwkError();if(!e.sshKid)throw we.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+i.authenticationScheme+'" as configured in Auth request')}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!H.isEmptyObj(e.claims)?(s=i,[4,this.browserCrypto.hashString(e.claims)]):[3,4];case 3:s.requestedClaimsHash=c.sent(),c.label=4;case 4:return[2,i]}})})},n.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||Ee.getCurrentUri();return de.getAbsoluteUrl(t,Ee.getCurrentUri())},n.prototype.validateRequestAuthority=function(e,t){return z(this,void 0,void 0,function(){var o;return x(this,function(r){switch(r.label){case 0:return[4,this.getDiscoveredAuthority(e)];case 1:if(o=r.sent(),!o.isAlias(t.environment))throw we.createAuthorityMismatchError();return[2]}})})},n.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var o={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new ga(o,this.browserStorage)},n.prototype.getDiscoveredAuthority=function(e){return z(this,void 0,void 0,function(){var t;return x(this,function(o){switch(o.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,oo.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,o.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,oo.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,o.sent()]}})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var En=function(n){xe(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(t){return z(this,void 0,void 0,function(){var o,r;return x(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(R.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),this.logger.verbose("initializeAuthorizationRequest called",t.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return o=i.sent(),r=Q(Q({},t),{redirectUri:t.redirectUri,code:b.EMPTY_STRING,codeVerifier:o.verifier}),t.codeChallenge=o.challenge,t.codeChallengeMethod=b.S256_CODE_CHALLENGE_METHOD,[2,r]}})})},e.prototype.initializeLogoutRequest=function(t){this.logger.verbose("initializeLogoutRequest called",t==null?void 0:t.correlationId);var o=Q({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},t);if(t)if(t.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(t.account){var r=this.getLogoutHintFromIdTokenClaims(t.account);r&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),o.logoutHint=r)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!t||t.postLogoutRedirectUri!==null?t&&t.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",o.correlationId),o.postLogoutRedirectUri=de.getAbsoluteUrl(t.postLogoutRedirectUri,Ee.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",o.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",o.correlationId),o.postLogoutRedirectUri=de.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Ee.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",o.correlationId),o.postLogoutRedirectUri=de.getAbsoluteUrl(Ee.getCurrentUri(),Ee.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",o.correlationId),o},e.prototype.getLogoutHintFromIdTokenClaims=function(t){var o=t.idTokenClaims;if(o){if(o.login_hint)return o.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},e.prototype.createAuthCodeClient=function(t,o,r){return z(this,void 0,void 0,function(){var i;return x(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(R.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(R.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,o,r)];case 1:return i=s.sent(),[2,new Or(i,this.performanceClient)]}})})},e.prototype.getClientConfiguration=function(t,o,r){return z(this,void 0,void 0,function(){var i,s;return x(this,function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(R.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(R.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(o,r)];case 1:return i=c.sent(),s=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:i,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:s.loggerCallback,piiLoggingEnabled:s.piiLoggingEnabled,logLevel:s.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:_t.MSAL_SKU,version:jn,cpu:b.EMPTY_STRING,os:b.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(t,o,r){if(this.logger.verbose("validateAndExtractStateFromHash called",r),!t.state)throw F.createHashDoesNotContainStateError();var i=$r.extractBrowserRequestState(this.browserCrypto,t.state);if(!i)throw F.createUnableToParseStateError();if(i.interactionType!==o)throw F.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",r),t.state},e.prototype.getDiscoveredAuthority=function(t,o){var r;return z(this,void 0,void 0,function(){var i,s,c,l;return x(this,function(h){switch(h.label){case 0:return this.performanceClient.addQueueMeasurement(R.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),i=(r=this.performanceClient)===null||r===void 0?void 0:r.startMeasurement(R.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),s={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},c=t||this.config.auth.authority,l=Un.generateAuthority(c,o||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(R.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,oo.createDiscoveredInstance(l,this.config.system.networkClient,this.browserStorage,s,this.logger,this.performanceClient,this.correlationId).then(function(u){return i.endMeasurement({success:!0}),u}).catch(function(u){throw i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})];case 1:return[2,h.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(t,o){return z(this,void 0,void 0,function(){var r,i,s,c,l,h,u;return x(this,function(g){switch(g.label){case 0:return this.performanceClient.addQueueMeasurement(R.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),r=this.getRedirectUri(t.redirectUri),i={interactionType:o},s=Ft.setRequestState(this.browserCrypto,t&&t.state||b.EMPTY_STRING,i),this.performanceClient.setPreQueueTime(R.InitializeBaseRequest,this.correlationId),l=[{}],[4,this.initializeBaseRequest(t)];case 1:return c=Q.apply(void 0,[Q.apply(void 0,l.concat([g.sent()])),{redirectUri:r,state:s,nonce:t.nonce||this.browserCrypto.createNewGuid(),responseMode:Qn.FRAGMENT}]),h=t.account||this.browserStorage.getActiveAccount(),h&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+h.homeAccountId,this.correlationId),c.account=h),H.isEmpty(c.loginHint)&&!h&&(u=this.browserStorage.getLegacyLoginHint(),u&&(c.loginHint=u)),[2,c]}})})},e}(Qr);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Do=function(){function n(e,t,o,r,i){this.authModule=e,this.browserStorage=t,this.authCodeRequest=o,this.logger=r,this.performanceClient=i}return n.prototype.handleCodeResponseFromHash=function(e,t,o,r){return z(this,void 0,void 0,function(){var i,s,c;return x(this,function(l){if(this.performanceClient.addQueueMeasurement(R.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),H.isEmpty(e))throw F.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(t),s=this.browserStorage.getTemporaryCache(i),!s)throw K.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(e,s)}catch(h){throw h instanceof rn&&h.subError===U.userCancelledError.code?F.createUserCancelledError():h}return this.performanceClient.setPreQueueTime(R.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(c,t,o,r)]})})},n.prototype.handleCodeResponseFromServer=function(e,t,o,r,i){return i===void 0&&(i=!0),z(this,void 0,void 0,function(){var s,c,l,h,u,g;return x(this,function(f){switch(f.label){case 0:if(this.performanceClient.addQueueMeasurement(R.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),s=this.browserStorage.generateStateKey(t),c=this.browserStorage.getTemporaryCache(s),!c)throw K.createStateNotFoundError("Cached State");return l=this.browserStorage.generateNonceKey(c),h=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(R.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,o,r)]):[3,2];case 1:f.sent(),f.label=2;case 2:return i&&(e.nonce=h||void 0),e.state=c,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(u=this.checkCcsCredentials(),u&&(this.authCodeRequest.ccsCredential=u)),this.performanceClient.setPreQueueTime(R.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return g=f.sent(),this.browserStorage.cleanRequestByState(t),[2,g]}})})},n.prototype.updateTokenEndpointAuthority=function(e,t,o){return z(this,void 0,void 0,function(){var r,i;return x(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(R.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),r="https://"+e+"/"+t.tenant+"/",[4,oo.createDiscoveredInstance(r,o,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return i=s.sent(),this.authModule.updateAuthority(i),[2]}})})},n.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(ue.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Wr=function(n){xe(e,n);function e(t,o,r,i,s,c){var l=n.call(this,t,o,r,i,c)||this;return l.browserCrypto=s,l}return e.prototype.initiateAuthRequest=function(t,o){return z(this,void 0,void 0,function(){var r,i;return x(this,function(s){switch(s.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),H.isEmpty(t)?[3,7]:(o.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(ue.ORIGIN_URI,o.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(ue.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),r={apiId:ke.acquireTokenRedirect,timeout:o.redirectTimeout,noHistory:!1},typeof o.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),i=o.onRedirectNavigate(t),i===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,o.navigationClient.navigateExternal(t,r)])));case 1:return s.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,o.navigationClient.navigateExternal(t,r)];case 5:return s.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),F.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(t,o,r,i){return z(this,void 0,void 0,function(){var s,c,l,h,u,g,f;return x(this,function(w){switch(w.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),H.isEmpty(t))throw F.createEmptyHashError(t);if(this.browserStorage.setInteractionInProgress(!1),s=this.browserStorage.generateStateKey(o),c=this.browserStorage.getTemporaryCache(s),!c)throw K.createStateNotFoundError("Cached State");try{l=this.authModule.handleFragmentResponse(t,c)}catch(C){throw C instanceof rn&&C.subError===U.userCancelledError.code?F.createUserCancelledError():C}return h=this.browserStorage.generateNonceKey(c),u=this.browserStorage.getTemporaryCache(h),this.authCodeRequest.code=l.code,l.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(l.cloud_instance_host_name,r,i)]:[3,2];case 1:w.sent(),w.label=2;case 2:return l.nonce=u||void 0,l.state=c,l.client_info?this.authCodeRequest.clientInfo=l.client_info:(g=this.checkCcsCredentials(),g&&(this.authCodeRequest.ccsCredential=g)),[4,this.authModule.acquireToken(this.authCodeRequest,l)];case 3:return f=w.sent(),this.browserStorage.cleanRequestByState(o),[2,f]}})})},e}(Do);/*! @azure/msal-browser v2.38.3 2023-10-27 */var te;(function(n){n.INITIALIZE_START="msal:initializeStart",n.INITIALIZE_END="msal:initializeEnd",n.ACCOUNT_ADDED="msal:accountAdded",n.ACCOUNT_REMOVED="msal:accountRemoved",n.LOGIN_START="msal:loginStart",n.LOGIN_SUCCESS="msal:loginSuccess",n.LOGIN_FAILURE="msal:loginFailure",n.ACQUIRE_TOKEN_START="msal:acquireTokenStart",n.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",n.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",n.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",n.SSO_SILENT_START="msal:ssoSilentStart",n.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",n.SSO_SILENT_FAILURE="msal:ssoSilentFailure",n.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",n.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",n.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",n.HANDLE_REDIRECT_START="msal:handleRedirectStart",n.HANDLE_REDIRECT_END="msal:handleRedirectEnd",n.POPUP_OPENED="msal:popupOpened",n.LOGOUT_START="msal:logoutStart",n.LOGOUT_SUCCESS="msal:logoutSuccess",n.LOGOUT_FAILURE="msal:logoutFailure",n.LOGOUT_END="msal:logoutEnd",n.RESTORE_FROM_BFCACHE="msal:restoreFromBFCache"})(te||(te={}));/*! @azure/msal-browser v2.38.3 2023-10-27 */var Wt;(function(n){n.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",n.USER_CANCEL="USER_CANCEL",n.NO_NETWORK="NO_NETWORK",n.TRANSIENT_ERROR="TRANSIENT_ERROR",n.PERSISTENT_ERROR="PERSISTENT_ERROR",n.DISABLED="DISABLED",n.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(Wt||(Wt={}));var qn={extensionError:{code:"ContentError"},userSwitch:{code:"user_switch",desc:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},tokensNotFoundInCache:{code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"}},Nt=function(n){xe(e,n);function e(t,o,r){var i=n.call(this,t,o)||this;return Object.setPrototypeOf(i,e.prototype),i.name="NativeAuthError",i.ext=r,i}return e.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===Wt.PERSISTENT_ERROR||this.ext.status===Wt.DISABLED))return!0;switch(this.errorCode){case qn.extensionError.code:return!0;default:return!1}},e.createError=function(t,o,r){if(r&&r.status)switch(r.status){case Wt.ACCOUNT_UNAVAILABLE:return gt.createNativeAccountUnavailableError();case Wt.USER_INTERACTION_REQUIRED:return new gt(t,o);case Wt.USER_CANCEL:return F.createUserCancelledError();case Wt.NO_NETWORK:return F.createNoNetworkConnectivityError()}return new e(t,o,r)},e.createUserSwitchError=function(){return new e(qn.userSwitch.code,qn.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(qn.tokensNotFoundInCache.code,qn.tokensNotFoundInCache.desc)},e}(Y);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Yr=function(n){xe(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return z(this,void 0,void 0,function(){var o,r,i,s,c;return x(this,function(l){switch(l.label){case 0:return o=this.performanceClient.startMeasurement(R.SilentCacheClientAcquireToken,t.correlationId),r=this.initializeServerTelemetryManager(ke.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(r,t.authority,t.azureCloudOptions)];case 1:i=l.sent(),this.logger.verbose("Silent auth client created"),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,i.acquireCachedToken(t)];case 3:return s=l.sent(),o.endMeasurement({success:!0,fromCache:!0}),[2,s];case 4:throw c=l.sent(),c instanceof F&&c.errorCode===U.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),o.endMeasurement({errorCode:c instanceof Y&&c.errorCode||void 0,subErrorCode:c instanceof Y&&c.subError||void 0,success:!1}),c;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(F.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(t,o,r){return z(this,void 0,void 0,function(){var i;return x(this,function(s){switch(s.label){case 0:return this.performanceClient.setPreQueueTime(R.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,o,r)];case 1:return i=s.sent(),[2,new la(i,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(t,o){return z(this,void 0,void 0,function(){var r;return x(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(R.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(R.InitializeBaseRequest,this.correlationId),r=[Q({},t)],[4,this.initializeBaseRequest(t,o)];case 1:return[2,Q.apply(void 0,[Q.apply(void 0,r.concat([i.sent()])),{account:o,forceRefresh:t.forceRefresh||!1}])]}})})},e}(En);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Tn=function(n){xe(e,n);function e(t,o,r,i,s,c,l,h,u,g,f,w){var C=n.call(this,t,o,r,i,s,c,h,u,w)||this;return C.apiId=l,C.accountId=g,C.nativeMessageHandler=u,C.nativeStorageManager=f,C.silentCacheClient=new Yr(t,C.nativeStorageManager,r,i,s,c,h,u,w),C}return e.prototype.acquireToken=function(t){return z(this,void 0,void 0,function(){var o,r,i,s,c,l,h;return x(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),o=this.performanceClient.startMeasurement(R.NativeInteractionClientAcquireToken,t.correlationId),r=pt.nowSeconds(),[4,this.initializeNativeRequest(t)];case 1:i=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,i)];case 3:return s=u.sent(),o.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,s];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return c={method:Vt.GetToken,request:i},[4,this.nativeMessageHandler.sendMessage(c)];case 6:return l=u.sent(),h=this.validateNativeResponse(l),[2,this.handleNativeResponse(h,i,r).then(function(g){return o.endMeasurement({success:!0,isNativeBroker:!0,requestId:g.requestId}),g}).catch(function(g){throw o.endMeasurement({success:!1,errorCode:g.errorCode,subErrorCode:g.subError,isNativeBroker:!0}),g})]}})})},e.prototype.createSilentCacheRequest=function(t,o){return{authority:t.authority,correlationId:this.correlationId,scopes:He.fromString(t.scope).asArray(),account:o,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(t,o){return z(this,void 0,void 0,function(){var r,i,s,c;return x(this,function(l){switch(l.label){case 0:if(!t)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),K.createNoAccountFoundError();if(r=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t}),!r)throw K.createNoAccountFoundError();l.label=1;case 1:return l.trys.push([1,3,,4]),i=this.createSilentCacheRequest(o,r),[4,this.silentCacheClient.acquireToken(i)];case 2:return s=l.sent(),[2,s];case 3:throw c=l.sent(),c;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(t){return z(this,void 0,void 0,function(){var o,r,i,s,c,l;return x(this,function(h){switch(h.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(t)];case 1:o=h.sent(),r={method:Vt.GetToken,request:o},h.label=2;case 2:return h.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(r)];case 3:return i=h.sent(),this.validateNativeResponse(i),[3,5];case 4:if(s=h.sent(),s instanceof Nt&&s.isFatal())throw s;return[3,5];case 5:return this.browserStorage.setTemporaryCache(ue.NATIVE_REQUEST,JSON.stringify(o),!0),c={apiId:ke.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},l=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(t.redirectUri),[4,this.navigationClient.navigateExternal(l,c)];case 6:return h.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return z(this,void 0,void 0,function(){var t,o,r,i,s,c,l,h;return x(this,function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(t=this.browserStorage.getCachedNativeRequest(),!t)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];o=t.prompt,r=Ir(t,["prompt"]),o&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ue.NATIVE_REQUEST)),i={method:Vt.GetToken,request:r},s=pt.nowSeconds(),u.label=1;case 1:return u.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(i)];case 2:return c=u.sent(),this.validateNativeResponse(c),l=this.handleNativeResponse(c,r,s),this.browserStorage.setInteractionInProgress(!1),[2,l];case 3:throw h=u.sent(),this.browserStorage.setInteractionInProgress(!1),h;case 4:return[2]}})})},e.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},e.prototype.handleNativeResponse=function(t,o,r){return z(this,void 0,void 0,function(){var i,s,c,l,h,u;return x(this,function(g){switch(g.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),t.account.id!==o.accountId)throw Nt.createUserSwitchError();return[4,this.getDiscoveredAuthority(o.authority)];case 1:return i=g.sent(),s=i.getPreferredCache(),c=this.createIdTokenObj(t),l=this.createHomeAccountIdentifier(t,c),h=this.createAccountEntity(t,l,c,s),[4,this.generateAuthenticationResult(t,o,c,h,i.canonicalAuthority,r)];case 2:return u=g.sent(),this.cacheAccount(h),this.cacheNativeTokens(t,o,l,h,c,u.accessToken,u.tenantId,r),[2,u]}})})},e.prototype.createIdTokenObj=function(t){return new It(t.id_token||b.EMPTY_STRING,this.browserCrypto)},e.prototype.createHomeAccountIdentifier=function(t,o){var r=Ue.generateHomeAccountId(t.client_info||b.EMPTY_STRING,$e.Default,this.logger,this.browserCrypto,o);return r},e.prototype.createAccountEntity=function(t,o,r,i){return Ue.createAccount(t.client_info,o,r,void 0,void 0,void 0,i,t.account.id)},e.prototype.generateScopes=function(t,o){return t.scope?He.fromString(t.scope):He.fromString(o.scope)},e.prototype.generatePopAccessToken=function(t,o){return z(this,void 0,void 0,function(){var r,i;return x(this,function(s){switch(s.label){case 0:if(o.tokenType!==ge.POP)return[3,2];if(t.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,t.shr];if(r=new wn(this.browserCrypto),i={resourceRequestMethod:o.resourceRequestMethod,resourceRequestUri:o.resourceRequestUri,shrClaims:o.shrClaims,shrNonce:o.shrNonce},!o.keyId)throw K.createKeyIdMissingError();return[4,r.signPopToken(t.access_token,o.keyId,i)];case 1:return[2,s.sent()];case 2:return[2,t.access_token]}})})},e.prototype.generateAuthenticationResult=function(t,o,r,i,s,c){return z(this,void 0,void 0,function(){var l,h,u,g,f,w,C,P;return x(this,function(M){switch(M.label){case 0:return l=this.addTelemetryFromNativeResponse(t),h=t.scope?He.fromString(t.scope):He.fromString(o.scope),u=t.account.properties||{},g=u.UID||r.claims.oid||r.claims.sub||b.EMPTY_STRING,f=u.TenantId||r.claims.tid||b.EMPTY_STRING,[4,this.generatePopAccessToken(t,o)];case 1:return w=M.sent(),C=o.tokenType===ge.POP?ge.POP:ge.BEARER,P={authority:s,uniqueId:g,tenantId:f,scopes:h.asArray(),account:i.getAccountInfo(),idToken:t.id_token,idTokenClaims:r.claims,accessToken:w,fromCache:l?this.isResponseFromCache(l):!1,expiresOn:new Date(Number(c+t.expires_in)*1e3),tokenType:C,correlationId:this.correlationId,state:t.state,fromNativeBroker:!0},[2,P]}})})},e.prototype.cacheAccount=function(t){var o=this;this.browserStorage.setAccount(t),this.browserStorage.removeAccountContext(t).catch(function(r){o.logger.error("Error occurred while removing account context from browser storage. "+r)})},e.prototype.cacheNativeTokens=function(t,o,r,i,s,c,l,h){var u=sn.createIdTokenEntity(r,o.authority,t.id_token||b.EMPTY_STRING,o.clientId,s.claims.tid||b.EMPTY_STRING),g=o.tokenType===ge.POP?b.SHR_NONCE_VALIDITY:(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,f=h+g,w=this.generateScopes(t,o),C=cn.createAccessTokenEntity(r,o.authority,c,o.clientId,s?s.claims.tid||b.EMPTY_STRING:l,w.printScopes(),f,0,this.browserCrypto),P=new xn(i,u,C);this.nativeStorageManager.saveCacheRecord(P)},e.prototype.addTelemetryFromNativeResponse=function(t){var o=this.getMATSFromResponse(t);return o?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:o.broker_version,matsAccountJoinOnStart:o.account_join_on_start,matsAccountJoinOnEnd:o.account_join_on_end,matsDeviceJoin:o.device_join,matsPromptBehavior:o.prompt_behavior,matsApiErrorCode:o.api_error_code,matsUiVisible:o.ui_visible,matsSilentCode:o.silent_code,matsSilentBiSubCode:o.silent_bi_sub_code,matsSilentMessage:o.silent_message,matsSilentStatus:o.silent_status,matsHttpStatus:o.http_status,matsHttpEventCount:o.http_event_count},this.correlationId),o):null},e.prototype.validateNativeResponse=function(t){if(t.hasOwnProperty("access_token")&&t.hasOwnProperty("id_token")&&t.hasOwnProperty("client_info")&&t.hasOwnProperty("account")&&t.hasOwnProperty("scope")&&t.hasOwnProperty("expires_in"))return t;throw Nt.createUnexpectedError("Response missing expected properties.")},e.prototype.getMATSFromResponse=function(t){if(t.properties.MATS)try{return JSON.parse(t.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},e.prototype.isResponseFromCache=function(t){return typeof t.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!t.is_cached},e.prototype.initializeNativeRequest=function(t){return z(this,void 0,void 0,function(){var o,r,i,s,c,l,h,u,g,f,w=this;return x(this,function(C){switch(C.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),o=t.authority||this.config.auth.authority,t.account?[4,this.validateRequestAuthority(o,t.account)]:[3,2];case 1:C.sent(),C.label=2;case 2:return r=new de(o),r.validateAsUri(),i=t.scopes,s=Ir(t,["scopes"]),c=new He(i||[]),c.appendScopes(An),l=function(){switch(w.apiId){case ke.ssoSilent:case ke.acquireTokenSilent_silentFlow:return w.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Ve.NONE}if(!t.prompt){w.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(t.prompt){case Ve.NONE:case Ve.CONSENT:case Ve.LOGIN:return w.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),t.prompt;default:throw w.logger.trace("initializeNativeRequest: prompt = "+t.prompt+" is not compatible with native flow"),F.createNativePromptParameterNotSupportedError()}},h=Q(Q({},s),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:r.urlString,scope:c.printScopes(),redirectUri:this.getRedirectUri(t.redirectUri),prompt:l(),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:Q(Q(Q({},t.extraQueryParameters),t.tokenQueryParameters),{telemetry:Dn.MATS_TELEMETRY}),extendedExpiryToken:!1}),t.authenticationScheme!==ge.POP?[3,4]:(u={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce},g=new wn(this.browserCrypto),[4,g.generateCnf(u)]);case 3:f=C.sent(),h.reqCnf=f.reqCnfString,h.keyId=f.kid,C.label=4;case 4:return[2,h]}})})},e}(Qr);/*! @azure/msal-browser v2.38.3 2023-10-27 */var ln=function(){function n(e,t,o,r){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=r,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=o,this.handshakeEvent=o.startMeasurement(R.NativeMessageHandlerHandshake)}return n.prototype.sendMessage=function(e){return z(this,void 0,void 0,function(){var t,o=this;return x(this,function(r){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:Dn.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(t)),this.messageChannel.port1.postMessage(t),[2,new Promise(function(i,s){o.resolvers.set(t.responseId,{resolve:i,reject:s})})]})})},n.createProvider=function(e,t,o){return z(this,void 0,void 0,function(){var r,i;return x(this,function(s){switch(s.label){case 0:e.trace("NativeMessageHandler - createProvider called."),s.label=1;case 1:return s.trys.push([1,3,,5]),r=new n(e,t,o,Dn.PREFERRED_EXTENSION_ID),[4,r.sendHandshakeRequest()];case 2:return s.sent(),[2,r];case 3:return s.sent(),i=new n(e,t,o),[4,i.sendHandshakeRequest()];case 4:return s.sent(),[2,i];case 5:return[2]}})})},n.prototype.sendHandshakeRequest=function(){return z(this,void 0,void 0,function(){var e,t=this;return x(this,function(o){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:Dn.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:Vt.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(r){t.onChannelMessage(r)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(r,i){t.handshakeResolvers.set(e.responseId,{resolve:r,reject:i}),t.timeoutId=window.setTimeout(function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),t.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),i(F.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)},t.handshakeTimeoutMs)})]})})},n.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(!(!t.channel||t.channel!==Dn.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===Vt.HandshakeRequest){this.logger.verbose(t.extensionId?"Extension with id: "+t.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var o=this.handshakeResolvers.get(t.responseId);o&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),o.reject(F.createNativeExtensionNotInstalledError()))}}},n.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,o=this.resolvers.get(t.responseId),r=this.handshakeResolvers.get(t.responseId);try{var i=t.body.method;if(i===Vt.Response){if(!o)return;var s=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(s)),s.status!=="Success")o.reject(Nt.createError(s.code,s.description,s.ext));else if(s.result)s.result.code&&s.result.description?o.reject(Nt.createError(s.result.code,s.result.description,s.result.ext)):o.resolve(s.result);else throw Y.createUnexpectedError("Event does not contain result.");this.resolvers.delete(t.responseId)}else if(i===Vt.HandshakeResponse){if(!r)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),r.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(c){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+c.toString()),this.logger.errorPii("Unable to parse "+e),o?o.reject(c):r&&r.reject(c)}},n.prototype.getExtensionId=function(){return this.extensionId},n.prototype.getExtensionVersion=function(){return this.extensionVersion},n.isNativeAvailable=function(e,t,o,r){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!o)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(r)switch(r){case ge.BEARER:case ge.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ca=function(n){xe(e,n);function e(t,o,r,i,s,c,l,h,u,g){var f=n.call(this,t,o,r,i,s,c,l,u,g)||this;return f.nativeStorage=h,f}return e.prototype.acquireToken=function(t){return z(this,void 0,void 0,function(){var o,r,i,s,c,l,h,u,g,f=this;return x(this,function(w){switch(w.label){case 0:return this.performanceClient.setPreQueueTime(R.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,$.Redirect)];case 1:o=w.sent(),this.browserStorage.updateCacheEntries(o.state,o.nonce,o.authority,o.loginHint||b.EMPTY_STRING,o.account||null),r=this.initializeServerTelemetryManager(ke.acquireTokenRedirect),i=function(C){C.persisted&&(f.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),f.browserStorage.cleanRequestByState(o.state),f.eventHandler.emitEvent(te.RESTORE_FROM_BFCACHE,$.Redirect))},w.label=2;case 2:return w.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(R.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(o)];case 3:return s=w.sent(),this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(r,o.authority,o.azureCloudOptions)];case 4:return c=w.sent(),this.logger.verbose("Auth code client created"),l=new Wr(c,this.browserStorage,s,this.logger,this.browserCrypto,this.performanceClient),[4,c.getAuthCodeUrl(Q(Q({},o),{nativeBroker:ln.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 5:return h=w.sent(),u=this.getRedirectStartPage(t.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",i),[4,l.initiateAuthRequest(h,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:t.onRedirectNavigate})];case 6:return[2,w.sent()];case 7:throw g=w.sent(),g instanceof Y&&g.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",i),r.cacheFailedRequest(g),this.browserStorage.cleanRequestByState(o.state),g;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(t){return z(this,void 0,void 0,function(){var o,r,i,s,c,l,h,u,g,f,w,C;return x(this,function(P){switch(P.label){case 0:o=this.initializeServerTelemetryManager(ke.handleRedirectPromise),P.label=1;case 1:if(P.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(r=this.getRedirectResponseHash(t||window.location.hash),!r)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType($.Redirect),[2,null];i=void 0;try{s=de.getDeserializedHash(r),i=this.validateAndExtractStateFromHash(s,$.Redirect),this.logger.verbose("State extracted from hash")}catch(M){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+M),this.browserStorage.cleanRequestByInteractionType($.Redirect),[2,null]}return c=this.browserStorage.getTemporaryCache(ue.ORIGIN_URI,!0)||b.EMPTY_STRING,l=de.removeHashFromUrl(c),h=de.removeHashFromUrl(window.location.href),l===h&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(r,i,o)]):[3,3];case 2:return u=P.sent(),c.indexOf("#")>-1&&Ee.replaceHash(c),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(r,i,o)]);case 4:return!Ee.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(ue.URL_HASH,r,!0),g={apiId:ke.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},f=!0,!c||c==="null"?(w=Ee.getHomepage(),this.browserStorage.setTemporaryCache(ue.ORIGIN_URI,w,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(w,g)]):[3,6]):[3,9];case 5:return f=P.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+c),[4,this.navigationClient.navigateInternal(c,g)];case 7:f=P.sent(),P.label=8;case 8:if(!f)return[2,this.handleHash(r,i,o)];P.label=9;case 9:return[2,null];case 10:throw C=P.sent(),C instanceof Y&&C.setCorrelationId(this.correlationId),o.cacheFailedRequest(C),this.browserStorage.cleanRequestByInteractionType($.Redirect),C;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(t){this.logger.verbose("getRedirectResponseHash called");var o=de.hashContainsKnownProperties(t);if(o)return Ee.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),t;var r=this.browserStorage.getTemporaryCache(ue.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ue.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),r},e.prototype.handleHash=function(t,o,r){return z(this,void 0,void 0,function(){var i,s,c,l,h,u,g,f=this;return x(this,function(w){switch(w.label){case 0:if(i=this.browserStorage.getCachedRequest(o,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),s=de.getDeserializedHash(t),s.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw F.createNativeConnectionNotEstablishedError();return c=new Tn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ke.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,s.accountId,this.nativeStorage,i.correlationId),l=Ft.parseRequestState(this.browserCrypto,o).userRequestState,[2,c.acquireToken(Q(Q({},i),{state:l,prompt:void 0})).finally(function(){f.browserStorage.cleanRequestByState(o)})]}if(h=this.browserStorage.getCachedAuthority(o),!h)throw F.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient,i.correlationId),[4,this.createAuthCodeClient(r,h)];case 1:return u=w.sent(),this.logger.verbose("Auth code client created"),eo.removeThrottle(this.browserStorage,this.config.auth.clientId,i),g=new Wr(u,this.browserStorage,i,this.logger,this.browserCrypto,this.performanceClient),[4,g.handleCodeResponseFromHash(t,o,u.authority,this.networkClient)];case 2:return[2,w.sent()]}})})},e.prototype.logout=function(t){return z(this,void 0,void 0,function(){var o,r,i,s,c,l,h;return x(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),o=this.initializeLogoutRequest(t),r=this.initializeServerTelemetryManager(ke.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(te.LOGOUT_START,$.Redirect,t),[4,this.clearCacheOnLogout(o.account)];case 2:return u.sent(),i={apiId:ke.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient,o.correlationId),[4,this.createAuthCodeClient(r,t&&t.authority)];case 3:return s=u.sent(),this.logger.verbose("Auth code client created"),c=s.getLogoutUri(o),this.eventHandler.emitEvent(te.LOGOUT_SUCCESS,$.Redirect,o),t&&typeof t.onRedirectNavigate=="function"?(l=t.onRedirectNavigate(c),l===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(c,i)])):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(c,i)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw h=u.sent(),h instanceof Y&&h.setCorrelationId(this.correlationId),r.cacheFailedRequest(h),this.eventHandler.emitEvent(te.LOGOUT_FAILURE,$.Redirect,null,h),this.eventHandler.emitEvent(te.LOGOUT_END,$.Redirect),h;case 11:return this.eventHandler.emitEvent(te.LOGOUT_END,$.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(t){var o=t||window.location.href;return de.getAbsoluteUrl(o,Ee.getCurrentUri())},e}(En);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ea=function(n){xe(e,n);function e(t,o,r,i,s,c,l,h,u,g){var f=n.call(this,t,o,r,i,s,c,l,u,g)||this;return f.unloadWindow=f.unloadWindow.bind(f),f.nativeStorage=h,f}return e.prototype.acquireToken=function(t){try{var o=this.generatePopupName(t.scopes||An,t.authority||this.config.auth.authority),r=t.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(t,o,r);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var i=this.openSizedPopup("about:blank",o,r);return this.acquireTokenPopupAsync(t,o,r,i)}catch(s){return Promise.reject(s)}},e.prototype.logout=function(t){try{this.logger.verbose("logoutPopup called");var o=this.initializeLogoutRequest(t),r=this.generateLogoutPopupName(o),i=t&&t.authority,s=t&&t.mainWindowRedirectUri,c=(t==null?void 0:t.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(o,r,c,i,void 0,s);this.logger.verbose("asyncPopup set to false, opening popup");var l=this.openSizedPopup("about:blank",r,c);return this.logoutPopupAsync(o,r,c,i,l,s)}catch(h){return Promise.reject(h)}},e.prototype.acquireTokenPopupAsync=function(t,o,r,i){return z(this,void 0,void 0,function(){var s,c,l,h,u,g,f,w,C,P,M,j,N,T,B,V,G,J=this;return x(this,function(I){switch(I.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),s=this.initializeServerTelemetryManager(ke.acquireTokenPopup),this.performanceClient.setPreQueueTime(R.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,$.Popup)];case 1:c=I.sent(),this.browserStorage.updateCacheEntries(c.state,c.nonce,c.authority,c.loginHint||b.EMPTY_STRING,c.account||null),I.label=2;case 2:return I.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(R.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(c)];case 3:return l=I.sent(),this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(s,c.authority,c.azureCloudOptions)];case 4:return h=I.sent(),this.logger.verbose("Auth code client created"),u=ln.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme),g=void 0,u&&(g=this.performanceClient.startMeasurement(R.FetchAccountIdWithNativeBroker,t.correlationId)),[4,h.getAuthCodeUrl(Q(Q({},c),{nativeBroker:u}))];case 5:return f=I.sent(),w=new Do(h,this.browserStorage,l,this.logger,this.performanceClient),C={popup:i,popupName:o,popupWindowAttributes:r},P=this.initiateAuthRequest(f,C),this.eventHandler.emitEvent(te.POPUP_OPENED,$.Popup,{popupWindow:P},null),[4,this.monitorPopupForHash(P)];case 6:if(M=I.sent(),j=de.getDeserializedHash(M),N=this.validateAndExtractStateFromHash(j,$.Popup,c.correlationId),eo.removeThrottle(this.browserStorage,this.config.auth.clientId,l),j.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),g&&g.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw F.createNativeConnectionNotEstablishedError();return T=new Tn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ke.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,j.accountId,this.nativeStorage,c.correlationId),B=Ft.parseRequestState(this.browserCrypto,N).userRequestState,[2,T.acquireToken(Q(Q({},c),{state:B,prompt:void 0})).finally(function(){J.browserStorage.cleanRequestByState(N)})]}return[4,w.handleCodeResponseFromHash(M,N,h.authority,this.networkClient)];case 7:return V=I.sent(),[2,V];case 8:throw G=I.sent(),i&&i.close(),G instanceof Y&&G.setCorrelationId(this.correlationId),s.cacheFailedRequest(G),this.browserStorage.cleanRequestByState(c.state),G;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(t,o,r,i,s,c){return z(this,void 0,void 0,function(){var l,h,u,g,f,w,C;return x(this,function(P){switch(P.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(te.LOGOUT_START,$.Popup,t),l=this.initializeServerTelemetryManager(ke.logoutPopup),P.label=1;case 1:return P.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(t.account)];case 2:return P.sent(),this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(l,i)];case 3:return h=P.sent(),this.logger.verbose("Auth code client created"),u=h.getLogoutUri(t),this.eventHandler.emitEvent(te.LOGOUT_SUCCESS,$.Popup,t),g=this.openPopup(u,{popupName:o,popupWindowAttributes:r,popup:s}),this.eventHandler.emitEvent(te.POPUP_OPENED,$.Popup,{popupWindow:g},null),[4,this.waitForLogoutPopup(g)];case 4:return P.sent(),c?(f={apiId:ke.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},w=de.getAbsoluteUrl(c,Ee.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+w),this.navigationClient.navigateInternal(w,f)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw C=P.sent(),s&&s.close(),C instanceof Y&&C.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(te.LOGOUT_FAILURE,$.Popup,null,C),this.eventHandler.emitEvent(te.LOGOUT_END,$.Popup),l.cacheFailedRequest(C),C;case 6:return this.eventHandler.emitEvent(te.LOGOUT_END,$.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(t,o){if(H.isEmpty(t))throw this.logger.error("Navigate url is empty"),F.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+t),this.openPopup(t,o)},e.prototype.monitorPopupForHash=function(t){var o=this;return new Promise(function(r,i){var s=o.config.system.windowHashTimeout/o.config.system.pollIntervalMilliseconds,c=0;o.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var l=setInterval(function(){if(t.closed){o.logger.error("PopupHandler.monitorPopupForHash - window closed"),o.cleanPopup(),clearInterval(l),i(F.createUserCancelledError());return}var h=b.EMPTY_STRING,u=b.EMPTY_STRING;try{h=t.location.href,u=t.location.hash}catch{}H.isEmpty(h)||h==="about:blank"||(o.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),c++,u?(o.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(l),o.cleanPopup(t),de.hashContainsKnownProperties(u)?(o.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),r(u)):(o.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),o.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+u),i(F.createHashDoesNotContainKnownPropertiesError()))):c>s&&(o.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(l),i(F.createMonitorPopupTimeoutError())))},o.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(t){var o=this;return new Promise(function(r){o.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var i=setInterval(function(){t.closed&&(o.logger.error("PopupHandler.waitForLogoutPopup - window closed"),o.cleanPopup(),clearInterval(i),r());var s=b.EMPTY_STRING;try{s=t.location.href}catch{}H.isEmpty(s)||s==="about:blank"||(o.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(i),o.cleanPopup(t),r())},o.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(t,o){try{var r=void 0;if(o.popup?(r=o.popup,this.logger.verbosePii("Navigating popup window to: "+t),r.location.assign(t)):typeof o.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+t),r=this.openSizedPopup(t,o.popupName,o.popupWindowAttributes)),!r)throw F.createEmptyWindowCreatedError();return r.focus&&r.focus(),this.currentWindow=r,window.addEventListener("beforeunload",this.unloadWindow),r}catch(i){throw this.logger.error("error opening popup "+i.message),this.browserStorage.setInteractionInProgress(!1),F.createPopupWindowError(i.toString())}},e.prototype.openSizedPopup=function(t,o,r){var i,s,c,l,h=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,g=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,f=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,w=(i=r.popupSize)===null||i===void 0?void 0:i.width,C=(s=r.popupSize)===null||s===void 0?void 0:s.height,P=(c=r.popupPosition)===null||c===void 0?void 0:c.top,M=(l=r.popupPosition)===null||l===void 0?void 0:l.left;return(!w||w<0||w>g)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),w=_t.POPUP_WIDTH),(!C||C<0||C>f)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),C=_t.POPUP_HEIGHT),(!P||P<0||P>f)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),P=Math.max(0,f/2-_t.POPUP_HEIGHT/2+u)),(!M||M<0||M>g)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),M=Math.max(0,g/2-_t.POPUP_WIDTH/2+h)),window.open(t,o,"width="+w+", height="+C+", top="+P+", left="+M+", scrollbars=yes")},e.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType($.Popup),this.currentWindow&&this.currentWindow.close(),t.preventDefault()},e.prototype.cleanPopup=function(t){t&&t.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},e.prototype.generatePopupName=function(t,o){return _t.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t.join("-")+"."+o+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(t){var o=t.account&&t.account.homeAccountId;return _t.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+o+"."+this.correlationId},e}(En);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ta=function(){function n(){}return n.prototype.navigateInternal=function(e,t){return n.defaultNavigateWindow(e,t)},n.prototype.navigateExternal=function(e,t){return n.defaultNavigateWindow(e,t)},n.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(o){setTimeout(function(){o(!0)},t.timeout)})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Sa=6e4,jo=6e3,Ia=3e4,Aa=2e3;function Ra(n,e){var t=n.auth,o=n.cache,r=n.system,i=n.telemetry,s={clientId:b.EMPTY_STRING,authority:""+b.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:b.EMPTY_STRING,authorityMetadata:b.EMPTY_STRING,redirectUri:b.EMPTY_STRING,postLogoutRedirectUri:b.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Bn.AAD,azureCloudOptions:{azureCloudInstance:On.None,tenant:b.EMPTY_STRING},skipAuthorityMetadataCache:!1},c={cacheLocation:Ae.SessionStorage,temporaryCacheLocation:Ae.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(o&&o.cacheLocation===Ae.LocalStorage),claimsBasedCachingEnabled:!0},l={loggerCallback:function(){},logLevel:ze.Info,piiLoggingEnabled:!1},h=Q(Q({},Mr),{loggerOptions:l,networkClient:e?Ee.getBrowserNetworkClient():ma,navigationClient:new Ta,loadFrameTimeout:0,windowHashTimeout:(r==null?void 0:r.loadFrameTimeout)||Sa,iframeHashTimeout:(r==null?void 0:r.loadFrameTimeout)||jo,navigateFrameWait:e&&Ee.detectIEOrEdge()?500:0,redirectNavigationTimeout:Ia,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(r==null?void 0:r.nativeBrokerHandshakeTimeout)||Aa,pollIntervalMilliseconds:_t.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u=Q(Q({},r),{loggerOptions:(r==null?void 0:r.loggerOptions)||l}),g={application:{appName:b.EMPTY_STRING,appVersion:b.EMPTY_STRING}},f={auth:Q(Q({},s),t),cache:Q(Q({},c),o),system:Q(Q({},h),u),telemetry:Q(Q({},g),i)};return f}/*! @azure/msal-browser v2.38.3 2023-10-27 */var Jr=function(n){xe(e,n);function e(t,o,r,i,s,c){var l=n.call(this,t,o,r,i,c)||this;return l.navigateFrameWait=s.navigateFrameWait,l.pollIntervalMilliseconds=s.pollIntervalMilliseconds,l}return e.prototype.initiateAuthRequest=function(t){return z(this,void 0,void 0,function(){return x(this,function(o){switch(o.label){case 0:if(this.performanceClient.addQueueMeasurement(R.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),H.isEmpty(t))throw this.logger.info("Navigate url is empty"),F.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(R.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(t)]):[3,2];case 1:return[2,o.sent()];case 2:return[2,this.loadFrameSync(t)]}})})},e.prototype.monitorIframeForHash=function(t,o){var r=this;return this.performanceClient.addQueueMeasurement(R.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(i,s){o<jo&&r.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+o+"ms) than the default ("+jo+"ms). This may result in timeouts.");var c=window.performance.now(),l=c+o,h=setInterval(function(){if(window.performance.now()>l){r.removeHiddenIframe(t),clearInterval(h),s(F.createMonitorIframeTimeoutError());return}var u=b.EMPTY_STRING,g=t.contentWindow;try{u=g?g.location.href:b.EMPTY_STRING}catch{}if(!H.isEmpty(u)){var f=g?g.location.hash:b.EMPTY_STRING;if(de.hashContainsKnownProperties(f)){r.removeHiddenIframe(t),clearInterval(h),i(f);return}}},r.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(t){var o=this;return this.performanceClient.addQueueMeasurement(R.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(r,i){var s=o.createHiddenIframe();setTimeout(function(){if(!s){i("Unable to load iframe");return}s.src=t,r(s)},o.navigateFrameWait)})},e.prototype.loadFrameSync=function(t){var o=this.createHiddenIframe();return o.src=t,o},e.prototype.createHiddenIframe=function(){var t=document.createElement("iframe");return t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(t),t},e.prototype.removeHiddenIframe=function(t){document.body===t.parentNode&&document.body.removeChild(t)},e}(Do);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Na=function(n){xe(e,n);function e(t,o,r,i,s,c,l,h,u,g,f){var w=n.call(this,t,o,r,i,s,c,h,g,f)||this;return w.apiId=l,w.nativeStorage=u,w}return e.prototype.acquireToken=function(t){return z(this,void 0,void 0,function(){var o,r,i,s,c;return x(this,function(l){switch(l.label){case 0:if(this.performanceClient.addQueueMeasurement(R.SilentIframeClientAcquireToken,t.correlationId),this.logger.verbose("acquireTokenByIframe called"),o=this.performanceClient.startMeasurement(R.SilentIframeClientAcquireToken,t.correlationId),H.isEmpty(t.loginHint)&&H.isEmpty(t.sid)&&(!t.account||H.isEmpty(t.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),t.prompt&&t.prompt!==Ve.NONE&&t.prompt!==Ve.NO_SESSION)throw o.endMeasurement({success:!1}),F.createSilentPromptValueError(t.prompt);return this.performanceClient.setPreQueueTime(R.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(Q(Q({},t),{prompt:t.prompt||Ve.NONE}),$.Silent)];case 1:r=l.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||b.EMPTY_STRING,r.account||null),i=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(R.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(i,r.authority,r.azureCloudOptions)];case 3:return s=l.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(R.SilentIframeClientTokenHelper,t.correlationId),[4,this.silentTokenHelper(s,r).then(function(h){return o.endMeasurement({success:!0,fromCache:!1,requestId:h.requestId}),h})];case 4:return[2,l.sent()];case 5:throw c=l.sent(),c instanceof Y&&c.setCorrelationId(this.correlationId),i.cacheFailedRequest(c),this.browserStorage.cleanRequestByState(r.state),o.endMeasurement({errorCode:c instanceof Y&&c.errorCode||void 0,subErrorCode:c instanceof Y&&c.subError||void 0,success:!1}),c;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(F.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,o){return z(this,void 0,void 0,function(){var r,i,s,c,l,h,u,g,f,w=this;return x(this,function(C){switch(C.label){case 0:return this.performanceClient.addQueueMeasurement(R.SilentIframeClientTokenHelper,o.correlationId),this.performanceClient.setPreQueueTime(R.StandardInteractionClientInitializeAuthorizationCodeRequest,o.correlationId),[4,this.initializeAuthorizationCodeRequest(o)];case 1:return r=C.sent(),this.performanceClient.setPreQueueTime(R.GetAuthCodeUrl,o.correlationId),[4,t.getAuthCodeUrl(Q(Q({},o),{nativeBroker:ln.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,o.authenticationScheme)}))];case 2:return i=C.sent(),s=new Jr(t,this.browserStorage,r,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(R.SilentHandlerInitiateAuthRequest,o.correlationId),[4,s.initiateAuthRequest(i)];case 3:return c=C.sent(),this.performanceClient.setPreQueueTime(R.SilentHandlerMonitorIframeForHash,o.correlationId),[4,s.monitorIframeForHash(c,this.config.system.iframeHashTimeout)];case 4:if(l=C.sent(),h=de.getDeserializedHash(l),u=this.validateAndExtractStateFromHash(h,$.Silent,r.correlationId),h.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw F.createNativeConnectionNotEstablishedError();return g=new Tn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,h.accountId,this.browserStorage,this.correlationId),f=Ft.parseRequestState(this.browserCrypto,u).userRequestState,[2,g.acquireToken(Q(Q({},o),{state:f,prompt:o.prompt||Ve.NONE})).finally(function(){w.browserStorage.cleanRequestByState(u)})]}return this.performanceClient.setPreQueueTime(R.HandleCodeResponseFromHash,o.correlationId),[2,s.handleCodeResponseFromHash(l,u,t.authority,this.networkClient)]}})})},e}(En);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Pa=function(n){xe(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return z(this,void 0,void 0,function(){var o,r,i,s,c,l=this;return x(this,function(h){switch(h.label){case 0:return this.performanceClient.addQueueMeasurement(R.SilentRefreshClientAcquireToken,t.correlationId),this.performanceClient.setPreQueueTime(R.InitializeBaseRequest,t.correlationId),r=[Q({},t)],[4,this.initializeBaseRequest(t,t.account)];case 1:return o=Q.apply(void 0,r.concat([h.sent()])),i=this.performanceClient.startMeasurement(R.SilentRefreshClientAcquireToken,o.correlationId),s=this.initializeServerTelemetryManager(ke.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(s,o.authority,o.azureCloudOptions)];case 2:return c=h.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(R.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),[2,c.acquireTokenByRefreshToken(o).then(function(u){return i.endMeasurement({success:!0,fromCache:u.fromCache,requestId:u.requestId}),u}).catch(function(u){throw u instanceof Y&&u.setCorrelationId(l.correlationId),s.cacheFailedRequest(u),i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},e.prototype.logout=function(){return Promise.reject(F.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,o,r){return z(this,void 0,void 0,function(){var i;return x(this,function(s){switch(s.label){case 0:return this.performanceClient.setPreQueueTime(R.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,o,r)];case 1:return i=s.sent(),[2,new zr(i,this.performanceClient)]}})})},e}(En);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ma=function(){function n(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return n.prototype.addEventCallback=function(e){if(typeof window<"u"){var t=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t}return null},n.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},n.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},n.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},n.prototype.emitEvent=function(e,t,o,r){var i=this;if(typeof window<"u"){var s={eventType:e,interactionType:t||null,payload:o||null,error:r||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(c,l){i.logger.verbose("Emitting event to callback "+l+": "+e),c.apply(null,[s])})}},n.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var o=JSON.parse(t);if(typeof o!="object"||!Ue.isAccountEntity(o))return;var r=Je.toObject(new Ue,o),i=r.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(te.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(te.ACCOUNT_REMOVED,void 0,i))}catch{return}},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ke=function(){function n(){}return n.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Xr=function(){function n(e){this.cryptoObj=e}return n.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,Ke.decimalToHex(e[0])+Ke.decimalToHex(e[1])+Ke.decimalToHex(e[2])+Ke.decimalToHex(e[3])+"-"+Ke.decimalToHex(e[4])+Ke.decimalToHex(e[5])+"-"+Ke.decimalToHex(e[6])+Ke.decimalToHex(e[7])+"-"+Ke.decimalToHex(e[8])+Ke.decimalToHex(e[9])+"-"+Ke.decimalToHex(e[10])+Ke.decimalToHex(e[11])+Ke.decimalToHex(e[12])+Ke.decimalToHex(e[13])+Ke.decimalToHex(e[14])+Ke.decimalToHex(e[15])}catch{for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",o="0123456789abcdef",r=0,i=b.EMPTY_STRING,s=0;s<36;s++)t[s]!=="-"&&t[s]!=="4"&&(r=Math.random()*16|0),t[s]==="x"?i+=o[r]:t[s]==="y"?(r&=3,r|=8,i+=o[r]):i+=t[s];return i}},n.prototype.isGuid=function(e){var t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return t.test(e)},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ht=function(){function n(){}return n.stringToUtf8Arr=function(e){for(var t,o=0,r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),o+=t<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var s=new Uint8Array(o),c=0,l=0;c<o;l++)t=e.charCodeAt(l),t<128?s[c++]=t:t<2048?(s[c++]=192+(t>>>6),s[c++]=128+(t&63)):t<65536?(s[c++]=224+(t>>>12),s[c++]=128+(t>>>6&63),s[c++]=128+(t&63)):t<2097152?(s[c++]=240+(t>>>18),s[c++]=128+(t>>>12&63),s[c++]=128+(t>>>6&63),s[c++]=128+(t&63)):t<67108864?(s[c++]=248+(t>>>24),s[c++]=128+(t>>>18&63),s[c++]=128+(t>>>12&63),s[c++]=128+(t>>>6&63),s[c++]=128+(t&63)):(s[c++]=252+(t>>>30),s[c++]=128+(t>>>24&63),s[c++]=128+(t>>>18&63),s[c++]=128+(t>>>12&63),s[c++]=128+(t>>>6&63),s[c++]=128+(t&63));return s},n.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),o=new Uint8Array(t),r=0;r<e.length;r++)o[r]=e.charCodeAt(r);return t},n.utf8ArrToString=function(e){for(var t=b.EMPTY_STRING,o=void 0,r=e.length,i=0;i<r;i++)o=e[i],t+=String.fromCharCode(o>251&&o<254&&i+5<r?(o-252)*1073741824+(e[++i]-128<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:o>247&&o<252&&i+4<r?(o-248<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:o>239&&o<248&&i+3<r?(o-240<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:o>223&&o<240&&i+2<r?(o-224<<12)+(e[++i]-128<<6)+e[++i]-128:o>191&&o<224&&i+1<r?(o-192<<6)+e[++i]-128:o);return t},n.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Zr=function(){function n(){}return n.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,b.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},n.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,b.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},n.prototype.encode=function(e){var t=Ht.stringToUtf8Arr(e);return this.base64EncArr(t)},n.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,o=b.EMPTY_STRING,r=void 0,i=e.length,s=0,c=0;c<i;c++)r=c%3,s|=e[c]<<(16>>>r&24),(r===2||e.length-c===1)&&(o+=String.fromCharCode(this.uint6ToB64(s>>>18&63),this.uint6ToB64(s>>>12&63),this.uint6ToB64(s>>>6&63),this.uint6ToB64(s&63)),s=0);return t===0?o:o.substring(0,o.length-t)+(t===1?"=":"==")},n.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var La=function(){function n(){}return n.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var o=this.base64DecToArr(t);return Ht.utf8ArrToString(o)},n.prototype.base64DecToArr=function(e,t){for(var o=e.replace(/[^A-Za-z0-9\+\/]/g,b.EMPTY_STRING),r=o.length,i=t?Math.ceil((r*3+1>>>2)/t)*t:r*3+1>>>2,s=new Uint8Array(i),c=void 0,l=void 0,h=0,u=0,g=0;g<r;g++)if(l=g&3,h|=this.b64ToUint6(o.charCodeAt(g))<<18-6*l,l===3||r-g===1){for(c=0;c<3&&u<i;c++,u++)s[u]=h>>>(16>>>c&24)&255;h=0}return s},n.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:e===43?62:e===47?63:0},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Oa=32,za=function(){function n(e){this.base64Encode=new Zr,this.cryptoObj=e}return n.prototype.generateCodes=function(){return z(this,void 0,void 0,function(){var e,t;return x(this,function(o){switch(o.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=o.sent(),[2,{verifier:e,challenge:t}]}})})},n.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(Oa);this.cryptoObj.getRandomValues(e);var t=this.base64Encode.urlEncodeArr(e);return t}catch(o){throw F.createPkceNotGeneratedError(o)}},n.prototype.generateCodeChallengeFromVerifier=function(e){return z(this,void 0,void 0,function(){var t,o;return x(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=r.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw o=r.sent(),F.createPkceNotGeneratedError(o);case 3:return[2]}})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var xa=function(){function n(){}return n.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,o){return z(this,void 0,void 0,function(){return x(this,function(r){return[2,window.crypto.subtle.generateKey(e,t,o)]})})},n.prototype.exportKey=function(e){return z(this,void 0,void 0,function(){return x(this,function(t){return[2,window.crypto.subtle.exportKey(Cn,e)]})})},n.prototype.importKey=function(e,t,o,r){return z(this,void 0,void 0,function(){return x(this,function(i){return[2,window.crypto.subtle.importKey(Cn,e,t,o,r)]})})},n.prototype.sign=function(e,t,o){return z(this,void 0,void 0,function(){return x(this,function(r){return[2,window.crypto.subtle.sign(e,t,o)]})})},n.prototype.digest=function(e,t){return z(this,void 0,void 0,function(){return x(this,function(o){return[2,window.crypto.subtle.digest(e,t)]})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ba=function(){function n(){}return n.prototype.initPrng=function(e){return window.msrCrypto.initPrng(Eo(e))},n.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,o){return z(this,void 0,void 0,function(){return x(this,function(r){return[2,window.msrCrypto.subtle.generateKey(e,t,o)]})})},n.prototype.exportKey=function(e){return z(this,void 0,void 0,function(){return x(this,function(t){return[2,window.msrCrypto.subtle.exportKey(Cn,e)]})})},n.prototype.importKey=function(e,t,o,r){return z(this,void 0,void 0,function(){return x(this,function(i){return[2,window.msrCrypto.subtle.importKey(Cn,e,t,o,r)]})})},n.prototype.sign=function(e,t,o){return z(this,void 0,void 0,function(){return x(this,function(r){return[2,window.msrCrypto.subtle.sign(e,t,o)]})})},n.prototype.digest=function(e,t){return z(this,void 0,void 0,function(){return x(this,function(o){return[2,window.msrCrypto.subtle.digest(e,t)]})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ua=function(){function n(){}return n.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,o){return z(this,void 0,void 0,function(){return x(this,function(r){return[2,new Promise(function(i,s){var c=window.msCrypto.subtle.generateKey(e,t,o);c.addEventListener("complete",function(l){i(l.target.result)}),c.addEventListener("error",function(l){s(l)})})]})})},n.prototype.exportKey=function(e){return z(this,void 0,void 0,function(){return x(this,function(t){return[2,new Promise(function(o,r){var i=window.msCrypto.subtle.exportKey(Cn,e);i.addEventListener("complete",function(s){var c=s.target.result,l=Ht.utf8ArrToString(new Uint8Array(c)).replace(/\r/g,b.EMPTY_STRING).replace(/\n/g,b.EMPTY_STRING).replace(/\t/g,b.EMPTY_STRING).split(" ").join(b.EMPTY_STRING).replace("\0",b.EMPTY_STRING);try{o(JSON.parse(l))}catch(h){r(h)}}),i.addEventListener("error",function(s){r(s)})})]})})},n.prototype.importKey=function(e,t,o,r){return z(this,void 0,void 0,function(){var i,s;return x(this,function(c){return i=Ht.getSortedObjectString(e),s=Ht.stringToArrayBuffer(i),[2,new Promise(function(l,h){var u=window.msCrypto.subtle.importKey(Cn,s,t,o,r);u.addEventListener("complete",function(g){l(g.target.result)}),u.addEventListener("error",function(g){h(g)})})]})})},n.prototype.sign=function(e,t,o){return z(this,void 0,void 0,function(){return x(this,function(r){return[2,new Promise(function(i,s){var c=window.msCrypto.subtle.sign(e,t,o);c.addEventListener("complete",function(l){i(l.target.result)}),c.addEventListener("error",function(l){s(l)})})]})})},n.prototype.digest=function(e,t){return z(this,void 0,void 0,function(){return x(this,function(o){return[2,new Promise(function(r,i){var s=window.msCrypto.subtle.digest(e,t.buffer);s.addEventListener("complete",function(c){r(c.target.result)}),s.addEventListener("error",function(c){i(c)})})]})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Da="RSASSA-PKCS1-v1_5",ei="SHA-256",ja=2048,qa=new Uint8Array([1,0,1]),ti=function(){function n(e,t){var o,r;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new xa;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new Ua;else if(this.hasMsrCrypto()&&(!((o=this.cryptoOptions)===null||o===void 0)&&o.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new Ba;else throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),F.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((r=this.cryptoOptions)===null||r===void 0)&&r.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),ao.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:Da,hash:ei,modulusLength:ja,publicExponent:qa}}return n.prototype.hasIECrypto=function(){return"msCrypto"in window},n.prototype.hasBrowserCrypto=function(){return"crypto"in window},n.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},n.prototype.sha256Digest=function(e){return z(this,void 0,void 0,function(){var t;return x(this,function(o){return t=Ht.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:ei},t)]})})},n.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},n.prototype.generateKeyPair=function(e,t){return z(this,void 0,void 0,function(){return x(this,function(o){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},n.prototype.exportJwk=function(e){return z(this,void 0,void 0,function(){return x(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},n.prototype.importJwk=function(e,t,o){return z(this,void 0,void 0,function(){return x(this,function(r){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,o)]})})},n.prototype.sign=function(e,t){return z(this,void 0,void 0,function(){return x(this,function(o){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Fa=function(){function n(){this.dbName=zo,this.version=va,this.tableName=ya,this.dbOpen=!1}return n.prototype.open=function(){return z(this,void 0,void 0,function(){var e=this;return x(this,function(t){return[2,new Promise(function(o,r){var i=window.indexedDB.open(e.dbName,e.version);i.addEventListener("upgradeneeded",function(s){var c=s;c.target.result.createObjectStore(e.tableName)}),i.addEventListener("success",function(s){var c=s;e.db=c.target.result,e.dbOpen=!0,o()}),i.addEventListener("error",function(){return r(F.createDatabaseUnavailableError())})})]})})},n.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},n.prototype.validateDbIsOpen=function(){return z(this,void 0,void 0,function(){return x(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},n.prototype.getItem=function(e){return z(this,void 0,void 0,function(){var t=this;return x(this,function(o){switch(o.label){case 0:return[4,this.validateDbIsOpen()];case 1:return o.sent(),[2,new Promise(function(r,i){if(!t.db)return i(F.createDatabaseNotOpenError());var s=t.db.transaction([t.tableName],"readonly"),c=s.objectStore(t.tableName),l=c.get(e);l.addEventListener("success",function(h){var u=h;t.closeConnection(),r(u.target.result)}),l.addEventListener("error",function(h){t.closeConnection(),i(h)})})]}})})},n.prototype.setItem=function(e,t){return z(this,void 0,void 0,function(){var o=this;return x(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(i,s){if(!o.db)return s(F.createDatabaseNotOpenError());var c=o.db.transaction([o.tableName],"readwrite"),l=c.objectStore(o.tableName),h=l.put(t,e);h.addEventListener("success",function(){o.closeConnection(),i()}),h.addEventListener("error",function(u){o.closeConnection(),s(u)})})]}})})},n.prototype.removeItem=function(e){return z(this,void 0,void 0,function(){var t=this;return x(this,function(o){switch(o.label){case 0:return[4,this.validateDbIsOpen()];case 1:return o.sent(),[2,new Promise(function(r,i){if(!t.db)return i(F.createDatabaseNotOpenError());var s=t.db.transaction([t.tableName],"readwrite"),c=s.objectStore(t.tableName),l=c.delete(e);l.addEventListener("success",function(){t.closeConnection(),r()}),l.addEventListener("error",function(h){t.closeConnection(),i(h)})})]}})})},n.prototype.getKeys=function(){return z(this,void 0,void 0,function(){var e=this;return x(this,function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise(function(o,r){if(!e.db)return r(F.createDatabaseNotOpenError());var i=e.db.transaction([e.tableName],"readonly"),s=i.objectStore(e.tableName),c=s.getAllKeys();c.addEventListener("success",function(l){var h=l;e.closeConnection(),o(h.target.result)}),c.addEventListener("error",function(l){e.closeConnection(),r(l)})})]}})})},n.prototype.containsKey=function(e){return z(this,void 0,void 0,function(){var t=this;return x(this,function(o){switch(o.label){case 0:return[4,this.validateDbIsOpen()];case 1:return o.sent(),[2,new Promise(function(r,i){if(!t.db)return i(F.createDatabaseNotOpenError());var s=t.db.transaction([t.tableName],"readonly"),c=s.objectStore(t.tableName),l=c.count(e);l.addEventListener("success",function(h){var u=h;t.closeConnection(),r(u.target.result===1)}),l.addEventListener("error",function(h){t.closeConnection(),i(h)})})]}})})},n.prototype.deleteDatabase=function(){return z(this,void 0,void 0,function(){return x(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(t,o){var r=window.indexedDB.deleteDatabase(zo);r.addEventListener("success",function(){return t(!0)}),r.addEventListener("blocked",function(){return t(!0)}),r.addEventListener("error",function(){return o(!1)})})]})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var ni=function(){function n(e,t){this.inMemoryCache=new xo,this.indexedDBCache=new Fa,this.logger=e,this.storeName=t}return n.prototype.handleDatabaseAccessError=function(e){if(e instanceof F&&e.errorCode===U.databaseUnavailable.code)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e},n.prototype.getItem=function(e){return z(this,void 0,void 0,function(){var t,o;return x(this,function(r){switch(r.label){case 0:if(t=this.inMemoryCache.getItem(e),t)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,r.sent()];case 3:return o=r.sent(),this.handleDatabaseAccessError(o),[3,4];case 4:return[2,t]}})})},n.prototype.setItem=function(e,t){return z(this,void 0,void 0,function(){var o;return x(this,function(r){switch(r.label){case 0:this.inMemoryCache.setItem(e,t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return r.sent(),[3,4];case 3:return o=r.sent(),this.handleDatabaseAccessError(o),[3,4];case 4:return[2]}})})},n.prototype.removeItem=function(e){return z(this,void 0,void 0,function(){var t;return x(this,function(o){switch(o.label){case 0:this.inMemoryCache.removeItem(e),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return o.sent(),[3,4];case 3:return t=o.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}})})},n.prototype.getKeys=function(){return z(this,void 0,void 0,function(){var e,t;return x(this,function(o){switch(o.label){case 0:if(e=this.inMemoryCache.getKeys(),e.length!==0)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,o.sent()];case 3:return t=o.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}})})},n.prototype.containsKey=function(e){return z(this,void 0,void 0,function(){var t,o;return x(this,function(r){switch(r.label){case 0:if(t=this.inMemoryCache.containsKey(e),t)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,r.sent()];case 3:return o=r.sent(),this.handleDatabaseAccessError(o),[3,4];case 4:return[2,t]}})})},n.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},n.prototype.clearPersistent=function(){return z(this,void 0,void 0,function(){var e,t;return x(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=o.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=o.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var so;(function(n){n.asymmetricKeys="asymmetricKeys",n.symmetricKeys="symmetricKeys"})(so||(so={}));var Va=function(){function n(e){this.logger=e,this.asymmetricKeys=new ni(this.logger,so.asymmetricKeys),this.symmetricKeys=new ni(this.logger,so.symmetricKeys)}return n.prototype.clear=function(){return z(this,void 0,void 0,function(){var e;return x(this,function(t){switch(t.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return t.sent(),[2,!0];case 3:return e=t.sent(),e instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ha=function(){function n(e,t,o){this.logger=e,this.browserCrypto=new ti(this.logger,o),this.b64Encode=new Zr,this.b64Decode=new La,this.guidGenerator=new Xr(this.browserCrypto),this.pkceGenerator=new za(this.browserCrypto),this.cache=new Va(this.logger),this.performanceClient=t}return n.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},n.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},n.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},n.prototype.generatePkceCodes=function(){return z(this,void 0,void 0,function(){return x(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},n.prototype.getPublicKeyThumbprint=function(e){var t;return z(this,void 0,void 0,function(){var o,r,i,s,c,l,h,u;return x(this,function(g){switch(g.label){case 0:return o=(t=this.performanceClient)===null||t===void 0?void 0:t.startMeasurement(R.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(n.EXTRACTABLE,n.POP_KEY_USAGES)];case 1:return r=g.sent(),[4,this.browserCrypto.exportJwk(r.publicKey)];case 2:return i=g.sent(),s={e:i.e,kty:i.kty,n:i.n},c=Ht.getSortedObjectString(s),[4,this.hashString(c)];case 3:return l=g.sent(),[4,this.browserCrypto.exportJwk(r.privateKey)];case 4:return h=g.sent(),[4,this.browserCrypto.importJwk(h,!1,["sign"])];case 5:return u=g.sent(),[4,this.cache.asymmetricKeys.setItem(l,{privateKey:u,publicKey:r.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return g.sent(),o&&o.endMeasurement({success:!0}),[2,l]}})})},n.prototype.removeTokenBindingKey=function(e){return z(this,void 0,void 0,function(){var t;return x(this,function(o){switch(o.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return o.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return t=o.sent(),[2,!t]}})})},n.prototype.clearKeystore=function(){return z(this,void 0,void 0,function(){return x(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},n.prototype.signJwt=function(e,t,o){var r;return z(this,void 0,void 0,function(){var i,s,c,l,h,u,g,f,w,C,P,M,j;return x(this,function(N){switch(N.label){case 0:return i=(r=this.performanceClient)===null||r===void 0?void 0:r.startMeasurement(R.CryptoOptsSignJwt,o),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(s=N.sent(),!s)throw F.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(s.publicKey)];case 2:return c=N.sent(),l=Ht.getSortedObjectString(c),h=this.b64Encode.urlEncode(JSON.stringify({kid:t})),u=fa.getShrHeaderString({kid:h,alg:c.alg}),g=this.b64Encode.urlEncode(u),e.cnf={jwk:JSON.parse(l)},f=this.b64Encode.urlEncode(JSON.stringify(e)),w=g+"."+f,C=Ht.stringToArrayBuffer(w),[4,this.browserCrypto.sign(s.privateKey,C)];case 3:return P=N.sent(),M=this.b64Encode.urlEncodeArr(new Uint8Array(P)),j=w+"."+M,i&&i.endMeasurement({success:!0}),[2,j]}})})},n.prototype.hashString=function(e){return z(this,void 0,void 0,function(){var t,o;return x(this,function(r){switch(r.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=r.sent(),o=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(o)]}})})},n.POP_KEY_USAGES=["sign","verify"],n.EXTRACTABLE=!0,n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var oi=function(){function n(e,t){this.correlationId=t,this.measureName=n.makeMeasureName(e,t),this.startMark=n.makeStartMark(e,t),this.endMark=n.makeEndMark(e,t)}return n.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},n.makeStartMark=function(e,t){return"msal.start."+e+"."+t},n.makeEndMark=function(e,t){return"msal.end."+e+"."+t},n.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.mark=="function"&&typeof window.performance.measure=="function"&&typeof window.performance.clearMarks=="function"&&typeof window.performance.clearMeasures=="function"&&typeof window.performance.getEntriesByName=="function"},n.flushMeasurements=function(e,t){if(n.supportsBrowserPerformance())try{t.forEach(function(o){var r=n.makeMeasureName(o.name,e),i=window.performance.getEntriesByName(r,"measure");i.length>0&&(window.performance.clearMeasures(r),window.performance.clearMarks(n.makeStartMark(r,e)),window.performance.clearMarks(n.makeEndMark(r,e)))})}catch{}},n.prototype.startMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},n.prototype.endMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},n.prototype.flushMeasurement=function(){if(n.supportsBrowserPerformance())try{var e=window.performance.getEntriesByName(this.measureName,"measure");if(e.length>0){var t=e[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),t}}catch{}return null},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ka=function(n){xe(e,n);function e(t,o,r,i,s,c,l){var h=n.call(this,t,o,r,i,s,c)||this;return h.browserCrypto=new ti(h.logger,l),h.guidGenerator=new Xr(h.browserCrypto),h}return e.prototype.startPerformanceMeasuremeant=function(t,o){return new oi(t,o)},e.prototype.generateId=function(){return this.guidGenerator.generateGuid()},e.prototype.getPageVisibility=function(){var t;return((t=document.visibilityState)===null||t===void 0?void 0:t.toString())||null},e.prototype.deleteIncompleteSubMeasurements=function(t){var o=this.eventsByCorrelationId.get(t.event.correlationId),r=o&&o.eventId===t.event.eventId,i=[];r&&(o!=null&&o.incompleteSubMeasurements)&&o.incompleteSubMeasurements.forEach(function(s){i.push(Q({},s))}),i.length>0&&oi.flushMeasurements(t.event.correlationId,i)},e.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.now=="function"},e.prototype.startMeasurement=function(t,o){var r=this,i=this.getPageVisibility(),s=n.prototype.startMeasurement.call(this,t,o);return Q(Q({},s),{endMeasurement:function(c){var l=s.endMeasurement(Q({startPageVisibility:i,endPageVisibility:r.getPageVisibility()},c));return r.deleteIncompleteSubMeasurements(s),l},discardMeasurement:function(){s.discardMeasurement(),r.deleteIncompleteSubMeasurements(s),s.measurement.flushMeasurement()}})},e.prototype.setPreQueueTime=function(t,o){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+t);return}if(!o){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to set telemetry queue time");return}var r=this.preQueueTimeByCorrelationId.get(o);r&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+r.name+" found",o),this.addQueueMeasurement(r.name,o,void 0,!0)),this.preQueueTimeByCorrelationId.set(o,{name:t,time:window.performance.now()})},e.prototype.addQueueMeasurement=function(t,o,r,i){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t);return}if(!o){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");return}var s=n.prototype.getPreQueueTime.call(this,t,o);if(s){var c=window.performance.now(),l=r||n.prototype.calculateQueuedTime.call(this,s,c);return n.prototype.addQueueMeasurement.call(this,t,o,l,i)}},e}(qr);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ga=function(){function n(e,t,o,r){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=o,this.cryptoObj=r}return n.prototype.loadExternalTokens=function(e,t,o){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw F.createUnableToLoadTokenError("Please ensure server response includes id token.");var r=new It(t.id_token,this.cryptoObj),i,s;if(e.account){var c=this.loadAccount(r,e.account.environment,void 0,void 0,e.account.homeAccountId);i=new xn(c,this.loadIdToken(r,c.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,c.homeAccountId,e.account.environment,e.account.tenantId,o),this.loadRefreshToken(e,t,c.homeAccountId,e.account.environment))}else if(e.authority){var l=Un.generateAuthority(e.authority,e.azureCloudOptions),h={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(s=new Un(l,this.config.system.networkClient,this.storage,h,this.logger),o.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var c=this.loadAccount(r,s.hostnameAndPort,o.clientInfo,s.authorityType);i=new xn(c,this.loadIdToken(r,c.homeAccountId,s.hostnameAndPort,s.tenant),this.loadAccessToken(e,t,c.homeAccountId,s.hostnameAndPort,s.tenant,o),this.loadRefreshToken(e,t,c.homeAccountId,s.hostnameAndPort))}else if(t.client_info){this.logger.trace("TokenCache - homeAccountId from response");var c=this.loadAccount(r,s.hostnameAndPort,t.client_info,s.authorityType);i=new xn(c,this.loadIdToken(r,c.homeAccountId,s.hostnameAndPort,s.tenant),this.loadAccessToken(e,t,c.homeAccountId,s.hostnameAndPort,s.tenant,o),this.loadRefreshToken(e,t,c.homeAccountId,s.hostnameAndPort))}else throw F.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw F.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,r,i,s)},n.prototype.loadAccount=function(e,t,o,r,i){var s;if(i?s=i:r!==void 0&&o&&(s=Ue.generateHomeAccountId(o,r,this.logger,this.cryptoObj,e)),!s)throw F.createUnableToLoadTokenError("Unexpected missing homeAccountId");var c=o?Ue.createAccount(o,s,e,void 0,void 0,void 0,t):Ue.createGenericAccount(s,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(c),c;throw F.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadIdToken=function(e,t,o,r){var i=sn.createIdTokenEntity(t,o,e.rawToken,this.config.auth.clientId,r);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw F.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadAccessToken=function(e,t,o,r,i,s){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw F.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!s.extendedExpiresOn)throw F.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var c=new He(e.scopes).printScopes(),l=s.expiresOn||t.expires_in+new Date().getTime()/1e3,h=s.extendedExpiresOn,u=cn.createAccessTokenEntity(o,r,t.access_token,this.config.auth.clientId,i,c,l,h,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw F.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadRefreshToken=function(e,t,o,r){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var i=yn.createRefreshTokenEntity(o,r,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw F.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.generateAuthenticationResult=function(e,t,o,r){var i,s,c,l=b.EMPTY_STRING,h=[],u=null,g;o!=null&&o.accessToken&&(l=o.accessToken.secret,h=He.fromString(o.accessToken.target).asArray(),u=new Date(Number(o.accessToken.expiresOn)*1e3),g=new Date(Number(o.accessToken.extendedExpiresOn)*1e3));var f=(t==null?void 0:t.claims.oid)||(t==null?void 0:t.claims.sub)||b.EMPTY_STRING,w=(t==null?void 0:t.claims.tid)||b.EMPTY_STRING;return{authority:r?r.canonicalAuthority:b.EMPTY_STRING,uniqueId:f,tenantId:w,scopes:h,account:o!=null&&o.account?o.account.getAccountInfo():null,idToken:t?t.rawToken:b.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:l,fromCache:!0,expiresOn:u,correlationId:e.correlationId||b.EMPTY_STRING,requestId:b.EMPTY_STRING,extExpiresOn:g,familyId:b.EMPTY_STRING,tokenType:((i=o==null?void 0:o.accessToken)===null||i===void 0?void 0:i.tokenType)||b.EMPTY_STRING,state:b.EMPTY_STRING,cloudGraphHostName:((s=o==null?void 0:o.account)===null||s===void 0?void 0:s.cloudGraphHostName)||b.EMPTY_STRING,msGraphHost:((c=o==null?void 0:o.account)===null||c===void 0?void 0:c.msGraphHost)||b.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var $a=function(n){xe(e,n);function e(t){var o=n.call(this,t)||this;return o.includeRedirectUri=!1,o}return e}(Or);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Qa=function(n){xe(e,n);function e(t,o,r,i,s,c,l,h,u,g){var f=n.call(this,t,o,r,i,s,c,h,u,g)||this;return f.apiId=l,f}return e.prototype.acquireToken=function(t){return z(this,void 0,void 0,function(){var o,r,i,s,c,l,h;return x(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!t.code)throw F.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(R.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,$.Silent)];case 1:o=u.sent(),this.browserStorage.updateCacheEntries(o.state,o.nonce,o.authority,o.loginHint||b.EMPTY_STRING,o.account||null),r=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),i=Q(Q({},o),{code:t.code}),this.performanceClient.setPreQueueTime(R.StandardInteractionClientGetClientConfiguration,t.correlationId),[4,this.getClientConfiguration(r,o.authority)];case 3:return s=u.sent(),c=new $a(s),this.logger.verbose("Auth code client created"),l=new Jr(c,this.browserStorage,i,this.logger,this.config.system,this.performanceClient),[2,l.handleCodeResponseFromServer({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},o.state,c.authority,this.networkClient,!1)];case 4:throw h=u.sent(),h instanceof Y&&h.setCorrelationId(this.correlationId),r.cacheFailedRequest(h),this.browserStorage.cleanRequestByState(o.state),h;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(F.createSilentLogoutUnsupportedError())},e}(En);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Wa=function(){function n(e){this.isBrowserEnvironment=typeof window<"u",this.config=Ra(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new Ao(this.config.system.loggerOptions,Uo,jn),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new Ka(this.config.auth.clientId,this.config.auth.authority,this.logger,Uo,jn,this.config.telemetry.application,this.config.system.cryptoOptions):new _a(this.config.auth.clientId,this.config.auth.authority,this.logger,Uo,jn,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new Ha(this.logger,this.performanceClient,this.config.system.cryptoOptions):Xn,this.eventHandler=new Ma(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Bo(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):ba(this.config.auth.clientId,this.logger);var t={cacheLocation:Ae.MemoryStorage,temporaryCacheLocation:Ae.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new Bo(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new Ga(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return n.prototype.initialize=function(){return z(this,void 0,void 0,function(){var e,t,o,r,i;return x(this,function(s){switch(s.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,t=this.performanceClient.startMeasurement(R.InitializeClientApplication),this.eventHandler.emitEvent(te.INITIALIZE_START),!e)return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),o=this,[4,ln.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return o.nativeExtensionProvider=s.sent(),[3,4];case 3:return r=s.sent(),this.logger.verbose(r),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),i=this.performanceClient.startMeasurement(R.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:s.sent(),i.endMeasurement({success:!0}),s.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(te.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},n.prototype.handleRedirectPromise=function(e){return z(this,void 0,void 0,function(){var t,o,r,i,s,c,l,h,u=this;return x(this,function(g){return this.logger.verbose("handleRedirectPromise called"),Ee.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(o=e||b.EMPTY_STRING,r=this.redirectResponse.get(o),typeof r>"u"?(this.eventHandler.emitEvent(te.HANDLE_REDIRECT_START,$.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getCachedNativeRequest(),s=void 0,i&&ln.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),c=new Tn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ke.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId),s=c.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),l=this.browserStorage.getTemporaryCache(ue.CORRELATION_ID,!0)||b.EMPTY_STRING,h=this.createRedirectClient(l),s=h.handleRedirectPromise(e)),r=s.then(function(f){if(f){var w=t.length<u.getAllAccounts().length;w?(u.eventHandler.emitEvent(te.LOGIN_SUCCESS,$.Redirect,f),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(te.ACQUIRE_TOKEN_SUCCESS,$.Redirect,f),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(te.HANDLE_REDIRECT_END,$.Redirect),f}).catch(function(f){throw t.length>0?u.eventHandler.emitEvent(te.ACQUIRE_TOKEN_FAILURE,$.Redirect,null,f):u.eventHandler.emitEvent(te.LOGIN_FAILURE,$.Redirect,null,f),u.eventHandler.emitEvent(te.HANDLE_REDIRECT_END,$.Redirect),f}),this.redirectResponse.set(o,r)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,r]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},n.prototype.acquireTokenRedirect=function(e){return z(this,void 0,void 0,function(){var t,o,r,i,s,c=this;return x(this,function(l){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck($.Redirect),o=this.getAllAccounts().length>0,o?this.eventHandler.emitEvent(te.ACQUIRE_TOKEN_START,$.Redirect,e):this.eventHandler.emitEvent(te.LOGIN_START,$.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(i=new Tn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ke.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),r=i.acquireTokenRedirect(e).catch(function(h){if(h instanceof Nt&&h.isFatal()){c.nativeExtensionProvider=void 0;var u=c.createRedirectClient(e.correlationId);return u.acquireToken(e)}else if(h instanceof gt){c.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var u=c.createRedirectClient(e.correlationId);return u.acquireToken(e)}throw c.browserStorage.setInteractionInProgress(!1),h})):(s=this.createRedirectClient(e.correlationId),r=s.acquireToken(e)),[2,r.catch(function(h){throw o?c.eventHandler.emitEvent(te.ACQUIRE_TOKEN_FAILURE,$.Redirect,null,h):c.eventHandler.emitEvent(te.LOGIN_FAILURE,$.Redirect,null,h),h})]})})},n.prototype.acquireTokenPopup=function(e){var t=this,o=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(R.AcquireTokenPopup,o);try{this.logger.verbose("acquireTokenPopup called",o),this.preflightBrowserEnvironmentCheck($.Popup)}catch(l){return Promise.reject(l)}var i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(te.ACQUIRE_TOKEN_START,$.Popup,e):this.eventHandler.emitEvent(te.LOGIN_START,$.Popup,e);var s;if(this.canUseNative(e))s=this.acquireTokenNative(e,ke.acquireTokenPopup).then(function(l){return t.browserStorage.setInteractionInProgress(!1),r.endMeasurement({success:!0,isNativeBroker:!0,requestId:l.requestId}),l}).catch(function(l){if(l instanceof Nt&&l.isFatal()){t.nativeExtensionProvider=void 0;var h=t.createPopupClient(e.correlationId);return h.acquireToken(e)}else if(l instanceof gt){t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var h=t.createPopupClient(e.correlationId);return h.acquireToken(e)}throw t.browserStorage.setInteractionInProgress(!1),l});else{var c=this.createPopupClient(e.correlationId);s=c.acquireToken(e)}return s.then(function(l){var h=i.length<t.getAllAccounts().length;return h?t.eventHandler.emitEvent(te.LOGIN_SUCCESS,$.Popup,l):t.eventHandler.emitEvent(te.ACQUIRE_TOKEN_SUCCESS,$.Popup,l),r.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),r.endMeasurement({success:!0,requestId:l.requestId}),l}).catch(function(l){return i.length>0?t.eventHandler.emitEvent(te.ACQUIRE_TOKEN_FAILURE,$.Popup,null,l):t.eventHandler.emitEvent(te.LOGIN_FAILURE,$.Popup,null,l),r.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),Promise.reject(l)})},n.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},n.prototype.ssoSilent=function(e){var t;return z(this,void 0,void 0,function(){var o,r,i,s,c=this;return x(this,function(l){return o=this.getRequestCorrelationId(e),r=Q(Q({},e),{prompt:e.prompt,correlationId:o}),this.preflightBrowserEnvironmentCheck($.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(R.SsoSilent,o),(t=this.ssoSilentMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",o),this.eventHandler.emitEvent(te.SSO_SILENT_START,$.Silent,r),this.canUseNative(r)?i=this.acquireTokenNative(r,ke.ssoSilent).catch(function(h){if(h instanceof Nt&&h.isFatal()){c.nativeExtensionProvider=void 0;var u=c.createSilentIframeClient(r.correlationId);return u.acquireToken(r)}throw h}):(s=this.createSilentIframeClient(r.correlationId),i=s.acquireToken(r)),[2,i.then(function(h){var u,g;return c.eventHandler.emitEvent(te.SSO_SILENT_SUCCESS,$.Silent,h),(u=c.ssoSilentMeasurement)===null||u===void 0||u.addStaticFields({accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length}),(g=c.ssoSilentMeasurement)===null||g===void 0||g.endMeasurement({success:!0,isNativeBroker:h.fromNativeBroker,requestId:h.requestId}),h}).catch(function(h){var u;throw c.eventHandler.emitEvent(te.SSO_SILENT_FAILURE,$.Silent,null,h),(u=c.ssoSilentMeasurement)===null||u===void 0||u.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h}).finally(function(){document.removeEventListener("visibilitychange",c.trackPageVisibilityWithMeasurement)})]})})},n.prototype.acquireTokenByCode=function(e){return z(this,void 0,void 0,function(){var t,o,r,i,s=this;return x(this,function(c){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck($.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(te.ACQUIRE_TOKEN_BY_CODE_START,$.Silent,e),o=this.performanceClient.startMeasurement(R.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw F.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return r=e.code,i=this.hybridAuthCodeResponses.get(r),i?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),o.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),i=this.acquireTokenByCodeAsync(Q(Q({},e),{correlationId:t})).then(function(l){return s.eventHandler.emitEvent(te.ACQUIRE_TOKEN_BY_CODE_SUCCESS,$.Silent,l),s.hybridAuthCodeResponses.delete(r),o.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),o.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),l}).catch(function(l){throw s.hybridAuthCodeResponses.delete(r),s.eventHandler.emitEvent(te.ACQUIRE_TOKEN_BY_CODE_FAILURE,$.Silent,null,l),o.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l}),this.hybridAuthCodeResponses.set(r,i)),[2,i];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,ke.acquireTokenByCode,e.nativeAccountId).catch(function(l){throw l instanceof Nt&&l.isFatal()&&(s.nativeExtensionProvider=void 0),l})];throw F.createUnableToAcquireTokenFromNativePlatformError()}else throw F.createAuthCodeOrNativeAccountIdRequiredError()}catch(l){throw this.eventHandler.emitEvent(te.ACQUIRE_TOKEN_BY_CODE_FAILURE,$.Silent,null,l),o.endMeasurement({errorCode:l instanceof Y&&l.errorCode||void 0,subErrorCode:l instanceof Y&&l.subError||void 0,success:!1}),l}return[2]})})},n.prototype.acquireTokenByCodeAsync=function(e){var t;return z(this,void 0,void 0,function(){var o,r,i=this;return x(this,function(s){switch(s.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(R.AcquireTokenByCodeAsync,e.correlationId),(t=this.acquireTokenByCodeAsyncMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),o=this.createSilentAuthCodeClient(e.correlationId),[4,o.acquireToken(e).then(function(c){var l;return(l=i.acquireTokenByCodeAsyncMeasurement)===null||l===void 0||l.endMeasurement({success:!0,fromCache:c.fromCache,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),c}).catch(function(c){var l;throw(l=i.acquireTokenByCodeAsyncMeasurement)===null||l===void 0||l.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),c}).finally(function(){document.removeEventListener("visibilitychange",i.trackPageVisibilityWithMeasurement)})];case 1:return r=s.sent(),[2,r]}})})},n.prototype.acquireTokenFromCache=function(e,t,o){return z(this,void 0,void 0,function(){return x(this,function(r){switch(this.performanceClient.addQueueMeasurement(R.AcquireTokenFromCache,t.correlationId),o.cacheLookupPolicy){case Xe.Default:case Xe.AccessToken:case Xe.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw K.createRefreshRequiredError()}return[2]})})},n.prototype.acquireTokenByRefreshToken=function(e,t){return z(this,void 0,void 0,function(){var o;return x(this,function(r){switch(this.performanceClient.addQueueMeasurement(R.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case Xe.Default:case Xe.AccessTokenAndRefreshToken:case Xe.RefreshToken:case Xe.RefreshTokenAndNetwork:return o=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(R.SilentRefreshClientAcquireToken,e.correlationId),[2,o.acquireToken(e)];default:throw K.createRefreshRequiredError()}return[2]})})},n.prototype.acquireTokenBySilentIframe=function(e){return z(this,void 0,void 0,function(){var t;return x(this,function(o){return this.performanceClient.addQueueMeasurement(R.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(R.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]})})},n.prototype.logout=function(e){return z(this,void 0,void 0,function(){var t;return x(this,function(o){return t=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),[2,this.logoutRedirect(Q({correlationId:t},e))]})})},n.prototype.logoutRedirect=function(e){return z(this,void 0,void 0,function(){var t,o;return x(this,function(r){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck($.Redirect),o=this.createRedirectClient(t),[2,o.logout(e)]})})},n.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck($.Popup);var o=this.createPopupClient(t);return o.logout(e)}catch(r){return Promise.reject(r)}},n.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},n.prototype.getAccountByUsername=function(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({username:e});return t?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),t):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},n.prototype.getAccountByHomeId=function(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return t?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),t):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},n.prototype.getAccountByLocalId=function(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return t?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),t):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},n.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},n.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},n.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(t===void 0&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Ee.blockNonBrowserEnvironment(this.isBrowserEnvironment),Ee.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),Ee.blockReloadInHiddenIframes(),Ee.blockAcquireTokenInPopups(),Ee.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===$.Redirect&&this.config.cache.cacheLocation===Ae.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw ao.createInMemoryRedirectUnavailableError();(e===$.Redirect||e===$.Popup)&&this.preflightInteractiveRequest(t)},n.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Ee.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},n.prototype.acquireTokenNative=function(e,t,o){return z(this,void 0,void 0,function(){var r;return x(this,function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw F.createNativeConnectionNotEstablishedError();return r=new Tn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,o||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,r.acquireToken(e)]})})},n.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!ln.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case Ve.NONE:case Ve.CONSENT:case Ve.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!t&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},n.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},n.prototype.createPopupClient=function(e){return new Ea(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},n.prototype.createRedirectClient=function(e){return new Ca(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},n.prototype.createSilentIframeClient=function(e){return new Na(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ke.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},n.prototype.createSilentCacheClient=function(e){return new Yr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},n.prototype.createSilentRefreshClient=function(e){return new Pa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},n.prototype.createSilentAuthCodeClient=function(e){return new Qa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ke.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},n.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},n.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},n.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},n.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},n.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},n.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},n.prototype.getTokenCache=function(){return this.tokenCache},n.prototype.getLogger=function(){return this.logger},n.prototype.setLogger=function(e){this.logger=e},n.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},n.prototype.setNavigationClient=function(e){this.navigationClient=e},n.prototype.getConfiguration=function(){return this.config},n.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():b.EMPTY_STRING},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ya=function(n){xe(e,n);function e(t){var o=n.call(this,t)||this;return o.astsAsyncMeasurement=void 0,o.activeSilentTokenRequests=new Map,o.trackPageVisibility=o.trackPageVisibility.bind(o),o}return e.prototype.loginRedirect=function(t){return z(this,void 0,void 0,function(){var o;return x(this,function(r){return o=this.getRequestCorrelationId(t),this.logger.verbose("loginRedirect called",o),[2,this.acquireTokenRedirect(Q({correlationId:o},t||Hr))]})})},e.prototype.loginPopup=function(t){var o=this.getRequestCorrelationId(t);return this.logger.verbose("loginPopup called",o),this.acquireTokenPopup(Q({correlationId:o},t||Hr))},e.prototype.acquireTokenSilent=function(t){return z(this,void 0,void 0,function(){var o,r,i,s,c,l,h,u=this;return x(this,function(g){if(o=this.getRequestCorrelationId(t),r=this.performanceClient.startMeasurement(R.AcquireTokenSilent,o),r.addStaticFields({cacheLookupPolicy:t.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck($.Silent),this.logger.verbose("acquireTokenSilent called",o),i=t.account||this.getActiveAccount(),!i)throw F.createNoAccountError();return s={clientId:this.config.auth.clientId,authority:t.authority||b.EMPTY_STRING,scopes:t.scopes,homeAccountIdentifier:i.homeAccountId,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},c=JSON.stringify(s),l=this.activeSilentTokenRequests.get(c),typeof l>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",o),this.performanceClient.setPreQueueTime(R.AcquireTokenSilentAsync,o),h=this.acquireTokenSilentAsync(Q(Q({},t),{correlationId:o}),i).then(function(f){return u.activeSilentTokenRequests.delete(c),r.addStaticFields({accessTokenSize:f.accessToken.length,idTokenSize:f.idToken.length}),r.endMeasurement({success:!0,fromCache:f.fromCache,isNativeBroker:f.fromNativeBroker,cacheLookupPolicy:t.cacheLookupPolicy,requestId:f.requestId}),f}).catch(function(f){throw u.activeSilentTokenRequests.delete(c),r.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f}),this.activeSilentTokenRequests.set(c,h),[2,h]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",o),r.discardMeasurement(),[2,l])})})},e.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},e.prototype.acquireTokenSilentAsync=function(t,o){var r;return z(this,void 0,void 0,function(){var i,s,c,l,h,u=this;return x(this,function(g){switch(g.label){case 0:return this.performanceClient.addQueueMeasurement(R.AcquireTokenSilentAsync,t.correlationId),this.eventHandler.emitEvent(te.ACQUIRE_TOKEN_START,$.Silent,t),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(R.AcquireTokenSilentAsync,t.correlationId),(r=this.astsAsyncMeasurement)===null||r===void 0||r.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),ln.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme)&&o.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),s=Q(Q({},t),{account:o}),i=this.acquireTokenNative(s,ke.acquireTokenSilent_silentFlow).catch(function(f){return z(u,void 0,void 0,function(){var w;return x(this,function(C){if(f instanceof Nt&&f.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,w=this.createSilentIframeClient(t.correlationId),[2,w.acquireToken(t)];throw f})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),c=this.createSilentCacheClient(t.correlationId),this.performanceClient.setPreQueueTime(R.InitializeSilentRequest,t.correlationId),[4,c.initializeSilentRequest(t,o)];case 2:l=g.sent(),h=Q(Q({},t),{cacheLookupPolicy:t.cacheLookupPolicy||Xe.Default}),this.performanceClient.setPreQueueTime(R.AcquireTokenFromCache,l.correlationId),i=this.acquireTokenFromCache(c,l,h).catch(function(f){if(h.cacheLookupPolicy===Xe.AccessToken)throw f;return Ee.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(te.ACQUIRE_TOKEN_NETWORK_START,$.Silent,l),u.performanceClient.setPreQueueTime(R.AcquireTokenByRefreshToken,l.correlationId),u.acquireTokenByRefreshToken(l,h).catch(function(w){var C=w instanceof rn,P=w instanceof gt,M=w.errorCode===bn.noTokensFoundError.code,j=w.errorCode===_t.INVALID_GRANT_ERROR;if((!C||!j||P||h.cacheLookupPolicy===Xe.AccessTokenAndRefreshToken||h.cacheLookupPolicy===Xe.RefreshToken)&&h.cacheLookupPolicy!==Xe.Skip&&!M)throw w;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",t.correlationId),u.performanceClient.setPreQueueTime(R.AcquireTokenBySilentIframe,l.correlationId),u.acquireTokenBySilentIframe(l)})}),g.label=3;case 3:return[2,i.then(function(f){var w;return u.eventHandler.emitEvent(te.ACQUIRE_TOKEN_SUCCESS,$.Silent,f),(w=u.astsAsyncMeasurement)===null||w===void 0||w.endMeasurement({success:!0,fromCache:f.fromCache,isNativeBroker:f.fromNativeBroker,requestId:f.requestId}),f}).catch(function(f){var w;throw u.eventHandler.emitEvent(te.ACQUIRE_TOKEN_FAILURE,$.Silent,null,f),(w=u.astsAsyncMeasurement)===null||w===void 0||w.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f}).finally(function(){document.removeEventListener("visibilitychange",u.trackPageVisibility)})]}})})},e}(Wa);class Ja extends tt.WebPlugin{async login(e){const t=this.createContext(e);try{return await this.acquireTokenSilently(t,e.scopes).catch(()=>this.acquireTokenInteractively(t,e.scopes))}catch(o){throw console.error("MSAL: Error occurred while logging in",o),o}}logout(e){const t=this.createContext(e);return t.getAllAccounts()[0]?t.logoutPopup():Promise.reject(new Error("Nothing to sign out from."))}logoutAll(e){return this.logout(e)}createContext(e){var t,o,r;const i={auth:{clientId:e.clientId,domainHint:e.domainHint,authority:(t=e.authorityUrl)!==null&&t!==void 0?t:`https://login.microsoftonline.com/${(o=e.tenant)!==null&&o!==void 0?o:"common"}`,knownAuthorities:e.knownAuthorities,redirectUri:(r=e.redirectUri)!==null&&r!==void 0?r:this.getCurrentUrl()},cache:{cacheLocation:"localStorage"}};return new Ya(i)}getCurrentUrl(){return window.location.href.split(/[?#]/)[0]}async acquireTokenInteractively(e,t){const{accessToken:o,idToken:r}=await e.acquireTokenPopup({scopes:t,prompt:"select_account"});return{accessToken:o,idToken:r,scopes:t}}async acquireTokenSilently(e,t){const{accessToken:o,idToken:r}=await e.acquireTokenSilent({scopes:t,account:e.getAllAccounts()[0]});return{accessToken:o,idToken:r,scopes:t}}}const Xa=tt.registerPlugin("MsAuthPlugin",{web:()=>new Ja}),ri={data(){return{microsoftLoad:!1,microsoftSSOLoad:!1}},computed:{displayMicrosoftSSOLogin(){return!1}},methods:{async microsoftLogin(n,e={}){var r;n==="sso"?this.microsoftSSOLoad=!0:this.microsoftLoad=!0;const[t,o]=await fe(Xa.login({clientId:n==="sso"?e.clientID:"9cd47053-080a-4df8-8fd8-ca4389163fde",tenant:n==="sso"?e.tenant:"consumers",scopes:["User.Read"],knownAuthorities:[],keyHash:"4+5wCp8QcLptlO0aeP5RDTTOWyg=",redirectUri:`${window.location.origin}/login`}));if(t)return console.error("MsAuthPlugin Error: "+JSON.stringify(t)),this.microsoftLoad=!1;if(this.referral&&(o.ref=this.referral),this.display==="popup"&&(o.response_type="code"),o&&(o.accessToken||o.idToken)){const[i,s]=await fe(Fe.microsoftSDK(o,this.$storex));if(i)return this.microsoftLoad=!1,this.microsoftSSOLoad=!1,X.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(i);if(s.data.success){if(this.display==="popup")return(r=window.parent)==null?void 0:r.postMessage({code:s.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(s),await this.getLoggedInAccounts(),this.loginSuccess({...s,isModal:this.isModal}),setTimeout(()=>{this.microsoftLoad=!1,this.microsoftSSOLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.microsoftLoad=!1,this.microsoftSSOLoad=!1,X.$emit("ssoEvent",{name:"setLoading",data:!1})}}},Za=n=>{try{return window.crypto.getRandomValues(n)}catch{for(let t=0;t<n.length;t++)n[t]=Math.floor(Math.random()*256);return n}},es=async n=>{try{return await window.crypto.subtle.digest("SHA-256",n)}catch{const t=rr.sha256(n);return new Uint8Array(t.match(/.{1,2}/g).map(o=>parseInt(o,16))).buffer}},ts=async(n,e,t)=>{try{return await window.crypto.subtle.encrypt(n,e,t)}catch{throw new Error("Encryption not supported in this environment")}},ns=async(n,e,t)=>{try{return await window.crypto.subtle.decrypt(n,e,t)}catch{throw new Error("Decryption not supported in this environment")}},Fn={getFirstBrowserLanguage(){let n=window.navigator,e=["language","browserLanguage","systemLanguage","userLanguage"],t,o;if(Array.isArray(n.languages)){for(t=0;t<n.languages.length;t++)if(o=n.languages[t],o&&o.length)return o.slice(0,2)}for(t=0;t<e.length;t++)if(o=n[e[t]],o&&o.length)return o.slice(0,2);return null},compareLangKeys(){const n=Object.keys(hr.state),e=Object.keys(mr.state),t=Object.keys(fr.state),o=Object.keys(br.state),r=Object.keys(_r.state),i=Object.keys(gr.state),s=Object.keys(vr.state),c=Object.keys(yr.state);console.log("In en but not in de",n.filter(l=>!e.includes(l))),console.log("In de but not in en",e.filter(l=>!n.includes(l))),console.log(),console.log("In en but not in es",n.filter(l=>!t.includes(l))),console.log("In es but not in en",t.filter(l=>!n.includes(l))),console.log(),console.log("In en but not in kr",n.filter(l=>!o.includes(l))),console.log("In kr but not in en",o.filter(l=>!n.includes(l))),console.log(),console.log("In en but not in it",n.filter(l=>!r.includes(l))),console.log("In it but not in en",r.filter(l=>!n.includes(l))),console.log(),console.log("In en but not in fr",n.filter(l=>!i.includes(l))),console.log("In fr but not in en",i.filter(l=>!n.includes(l))),console.log(),console.log("In en but not in sr",n.filter(l=>!s.includes(l))),console.log("In sr but not in en",s.filter(l=>!n.includes(l))),console.log(),console.log("In en but not in tr",n.filter(l=>!c.includes(l))),console.log("In tr but not in en",c.filter(l=>!n.includes(l))),console.log()},base64ImageToBlob(n){const e=n.split(";base64,"),t=e[0].split(":")[1],o=window.atob(e[1]),r=new Uint8Array(o.length);for(let i=0;i<o.length;++i)r[i]=o.charCodeAt(i);return new Blob([r],{type:t})},blobToBase64(n){const e=new FileReader;return e.readAsDataURL(n),new Promise(t=>{e.onloadend=()=>{t(e.result)}})},base64toFile(n,e){for(var t=n.split(","),o=t[0].match(/:(.*?);/)[1],r=atob(t[1]),i=r.length,s=new Uint8Array(i);i--;)s[i]=r.charCodeAt(i);return new File([s],e,{type:o})},fileToBase64(n){new Promise((e,t)=>{const o=new FileReader;o.readAsDataURL(n),o.onload=()=>e(o.result),o.onerror=r=>t(r)})},getUTMParams(n){let e={};return n.utm_source&&(e.utm_source=n.utm_source),n.utm_medium&&(e.utm_medium=n.utm_medium),n.utm_campaign&&(e.utm_campaign=n.utm_campaign),n.utm_term&&(e.utm_term=n.utm_term),n.utm_content&&(e.utm_content=n.utm_content),e},cropCardScan(n,e){const t=new window.Image,o=document.createElement("canvas"),r=o.getContext("2d");t.src="data:image/jpeg;base64,"+n,t.onload=()=>{const i=t.width,s=t.width/1.65,c=0,l=t.height/2-s/2,h=i,u=s;o.width=h,o.height=u,r.drawImage(t,c,l,i,s,0,0,h,u);const g=o.toDataURL();return e(g),g}},generateRandomString(n){let e=new Uint32Array(n);return Za(e),Array.from(e,t=>("0"+t.toString(16)).substr(-2)).join("")},async pkceChallengeFromVerifier(n){try{const t=new TextEncoder().encode(n),o=await es(t);return btoa(String.fromCharCode.apply(null,new Uint8Array(o))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch{const t=rr.sha256(n);return btoa(String.fromCharCode.apply(null,new Uint8Array(t.match(/.{1,2}/g).map(r=>parseInt(r,16))))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}},async encryptAES(n,e,t){try{let r=new TextEncoder().encode(t);return await ts({name:"AES-CBC",iv:e},n,r)}catch(o){throw o}},async decryptAES(n,e,t){try{const o=l=>Uint8Array.from(atob(l),h=>h.charCodeAt(0));t=t.replace(/ /g,"+");const r=new TextEncoder,i=new TextDecoder;n=r.encode(n),e=r.encode(e),t=o(t);const s=await window.crypto.subtle.importKey("raw",n,"AES-CBC",!0,["encrypt","decrypt"]);let c=await ns({name:"AES-CBC",iv:e},s,t);return c=i.decode(c),c=c.replace(/ /g,"+"),c=atob(c),c}catch(o){throw o}}},ii={data(){return{oktaAuth:null}},computed:{},watch:{},methods:{async exchangeCode(n){var r,i;let[e,t]=await fe(mo.post(n.domain+"/v1/token",new URLSearchParams({code:n.code,client_id:n.clientID,grant_type:"authorization_code",redirect_uri:this.isNative?"tapni://t.link/callback/okta":location.origin+"/callback/okta",code_verifier:localStorage.getItem("pkce_code_verifier")})));if(e)return this.errorHandler(e);localStorage.removeItem("pkce_code_verifier");let o={accessToken:(r=t.data)==null?void 0:r.access_token,domain:n.domain};if(this.display==="popup"&&(o.response_type="code"),[e,t]=await fe(Fe.oktaSDK(o,this.$storex)),e)return this.oktaLoad=!1,X.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(e);if(t.data.success){if(this.display==="popup")return(i=window.parent)==null?void 0:i.postMessage({code:t.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(t),await this.getLoggedInAccounts(),this.$router.push("/"+t.data.data.username+"#edit"),setTimeout(()=>{this.appleLoad=!1,X.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)},async oktaLogin(n){const e=tt.Capacitor.getPlatform()||"web";let t=btoa("domain="+n.domain+"&client_id="+n.clientID+"&platform="+e+"&rand="+Fn.generateRandomString(28)),o=Fn.generateRandomString(28);localStorage.setItem("pkce_code_verifier",o);let r=await Fn.pkceChallengeFromVerifier(o),i=n.domain+"/v1/authorize",s;this.isNative?s="tapni://t.link/callback/okta":s=location.origin+"/callback/okta";let c=i+"?response_type=code&client_id="+encodeURIComponent(n.clientID)+"&state="+encodeURIComponent(t)+"&scope="+encodeURIComponent("openid email profile")+"&redirect_uri="+encodeURIComponent(s)+"&code_challenge="+encodeURIComponent(r)+"&code_challenge_method=S256",l=this,h;window.addEventListener("message",async u=>{if(!this.allowedOriginsAuth.includes(u.origin))return console.error("Origin is not allowed!");u.data.type==="okta"&&(h=u.data.code,await l.exchangeCode({domain:n.domain,code:h,clientID:n.clientID}))},{once:!0}),this.isNative?await Vn.Browser.open({url:c,presentationStyle:"popover"}):window.open(c,"popup","width=600,height=600")},async handleOktaRedirect(){let n=this.$route.query.code,e,t,o,r,i={type:"okta"};if(n&&(i.code=n),this.$route.query.state){e=this.$route.query.state,e=atob(e);const s=new URLSearchParams(e);t=s.get("client_id"),o=s.get("domain"),r=s.get("platform")}window.opener?(window.opener.postMessage(i,location.origin),window.close()):(this.isNative&&this.isiOS&&await Vn.Browser.close(),X.$emit("ssoEvent",{name:"setLoading",data:!0}),n&&t&&o&&await this.exchangeCode({code:n,clientID:t,domain:o,platform:r}),localStorage.removeItem("pkce_code_verifier"),X.$emit("ssoEvent",{name:"setLoading",data:!1}))}}},ai={data(){return{code_verifier:"",code_challenge:"",shouldCloseWindow:!1,popupWindow:null,checkInterval:null}},computed:{},watch:{"$route.path"(n){n==="/callback/saml"&&this.handleSamlRedirect(n)}},methods:{closeWindow(){try{window.close()}catch{}},async samlLogin(n){this.code_verifier=Fn.generateRandomString(28),localStorage.setItem("pkce_code_verifier",this.code_verifier),this.code_challenge=await Fn.pkceChallengeFromVerifier(this.code_verifier);const e=tt.Capacitor.getPlatform();let t=`code_challenge=${this.code_challenge}&platform=${e}&redirect_uri=${location.origin+(this.display==="npm"?"/app":"")+"/callback/saml"}&realm=${this.realm}&display=${this.display}`,o=btoa(t);n=`${n}&RelayState=${o}`;let r=this;window.addEventListener("message",async i=>{var l;if(!this.allowedOriginsAuth.includes(i.origin))return console.error("Origin is not allowed! "+i.origin);const s=i.data.code,c=localStorage.getItem("pkce_code_verifier");if(s){if(r.display==="popup")return(l=window.parent)==null?void 0:l.postMessage({code:s,state:i.data.state,code_verifier:c},"*");c&&(await r.exchangeAuthCode({code:i.data.code,code_verifier:c}),localStorage.removeItem("pkce_code_verifier"))}},{once:!0}),this.isNative?this.popupWindow=await Vn.Browser.open({url:n,presentationStyle:"popover"}):(this.checkInterval=setInterval(()=>{var c;const i=localStorage.getItem("auth_code"),s=localStorage.getItem("pkce_code_verifier");i&&(clearInterval(this.checkInterval),localStorage.removeItem("auth_code"),localStorage.removeItem("pkce_code_verifier"),(c=window.parent)==null||c.postMessage({code:i,state:this.$route.query.state,code_verifier:s},"*"),s&&(this.display==="npm"||this.display==="redirect")&&this.exchangeAuthCode({code:i,code_verifier:s}))},500),this.popupWindow=window.open(window.location.origin+(this.display==="npm"?"/app":"")+"/callback/redirect?uri="+btoa(n),"popup","width=600,height=600"))},async handleSamlRedirect(){var e;let n;if(this.$route.query.code&&(n=this.$route.query.code),window.opener)window.opener.postMessage({type:"saml",code:n},"*"),this.closeWindow();else{if(this.isNative&&this.isiOS&&await Vn.Browser.close(),X.$emit("ssoEvent",{name:"setLoading",data:!0}),n&&((this.display==="popup"||this.display==="npm")&&(localStorage.setItem("auth_code",n),this.shouldCloseWindow=!0,(e=window.parent)==null||e.postMessage({code:n,state:this.$route.query.state},"*"),this.closeWindow()),this.display==="redirect"||location.host==="auth.tapni.com")){let t="https://auth.tapni.com/callback/auth";return this.realm==="dashboard"&&(t="https://business.tapni.com/login"),location.href=t+"?code="+n+"&code_verifier="+localStorage.getItem("pkce_code_verifier")}X.$emit("ssoEvent",{name:"setLoading",data:!1})}}}},si={data(){return{isQrCodeLogin:!1,qrCode:null,qrCodeHash:null,qrCodeRefreshInterval:null,poolingInterval:null}},props:{isModal:{type:Boolean,required:!1,default:!1}},computed:{displayQRLogin(){return this.$route.name==="AuthLogin"&&this.display!=="npm"}},mounted(){this.$route.name==="AuthQR"&&this.changeLoginToQr()},methods:{async changeLoginToQr(){this.isQrCodeLogin=!0,await a.nextTick(),await this.initQrCodeLogin()},generateRandomHash(){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=n.length;let t="";const o=new Uint32Array(32);return window.crypto.getRandomValues(o),o.forEach(r=>{t+=n.charAt(r%e)}),t},refreshQrCode(){var n,e;this.qrCode&&((e=(n=document.getElementById("qrCodeContainer"))==null?void 0:n.childNodes[0])==null||e.remove()),this.qrCodeHash=this.generateRandomHash(),this.qrCode=new ir({width:300,height:300,type:"png",image:"",imageOptions:{margin:15},data:this.qrCodeHash,dotsOptions:{type:"extra-rounded",color:"#000000"},cornersSquareOptions:{type:"extra-rounded",color:"#000000"},cornersDotOptions:{type:"",color:"#000000"},backgroundOptions:{color:"#ffffff00"}}),this.qrCode.append(document.getElementById("qrCodeContainer"))},async startQrCodePooling(){this.poolingInterval=setInterval(async()=>{const[n,e]=await fe(ko.qrCodePooling({qrToken:this.qrCodeHash},this.$storex));if(n)return this.errorHandler(n);e.data.auth_code&&(this.display!=="popup"&&(this.loginSetup({...e,isModal:this.isModal}),await this.getLoggedInAccounts()),this.loginSuccess({...e,isModal:this.isModal}),clearInterval(this.poolingInterval),clearInterval(this.qrCodeRefreshInterval))},2e3)},async initQrCodeLogin(){this.refreshQrCode(),await a.nextTick(),await this.startQrCodePooling(),this.qrCodeRefreshInterval=setInterval(()=>{this.refreshQrCode()},6e4)}}},os={name:"AuthLogin",mixins:[Tr,Sr,ri,ii,ai,We,si],data(){return{loading:!0,submitted:!1,emailOrUsername:"",password:"",captcha:"",revealPassword:!1,emailLogin:!0,isSSOLogin:!1,otpToken:"",showOTP:!1}},computed:{displayFormLogin(){return this.emailLogin},displayResetPasswordLogin(){return!this.isSSOLogin},displayRegisterLogin(){return!0}},async mounted(){if(!this.isModal){if(this.$route.path==="/login/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/login/callback/saml")return await this.handleSamlRedirect();this.$route.query.qrLogin&&this.changeLoginToQr(),setTimeout(()=>{this.$storex&&this.$storex.token?this.$router.push(this.home):X.$emit("ssoEvent",{name:"setLoading",data:!1})},2500)}X.$on("toggleOTPField",()=>{this.showOTP=!this.showOTP})},methods:{async ssoLoginSubmit(){this.loading=!0;const n=await this.getCompanyBySSOEmail({email:this.emailOrUsername});this.loading=!1;let e;if(!(!n||n.error))if(e=Object.keys(n.sso),e.length)e[0]==="azure"&&this.microsoftLogin("sso",n.sso.azure.sso),e[0]==="okta"&&this.oktaLogin(n.sso.okta.sso),e[0]==="saml"&&this.samlLogin(n.sso.saml.sso.loginUrl);else return this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins)},async submit(){if(this.submitted)return;if(this.submitted=!0,this.isSSOLogin)return this.ssoLoginSubmit();this.emailOrUsername=this.emailOrUsername.trim();let e={response_type:this.$route.query.response_type||"token",isModal:this.isModal,captcha:this.captcha,password:this.password,otpToken:this.otpToken};this.emailOrUsername.indexOf("@")!==-1?e.email=this.emailOrUsername:e.username=this.emailOrUsername;const[t,o]=await fe(this.login(e));t&&console.error(t),this.submitted=!1,o===!0&&(this.emailOrUsername="",this.password="")},close(){X.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})},createAccountModal(){X.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:{}})}},watch:{emailOrUsername(n){n.includes("@")&&(this.$storex.verifyEmail=n)},"$route.path":async function(n){if(n==="/login/callback/okta")return await this.handleOktaRedirect();if(n==="/login/callback/saml")return await this.handleSamlRedirect()}}},rs={class:"bold no-bottom center-text text-[22px]",style:{"margin-top":"63px"}},is={key:0},as={key:1},ss={key:1},cs={class:"page-login-field half-top"},ls=["placeholder"],ds={key:0,class:"page-login-field half-bottom"},us=["type","placeholder"],ps={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},hs={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},ms={key:1,class:"page-login-field half-bottom"},fs=["placeholder"],gs={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top pointer"},_s={key:0},vs={key:1,class:"button--loading button__loader"},ys={key:0},bs={key:1,class:"button--loading-black button__loader"},ws={key:0},ks={key:1,class:"button--loading-black button__loader"},Cs={key:0},Es={key:1,class:"button--loading-black button__loader"},Ts={key:0},Ss={key:1,class:"button--loading-black button__loader"},Is={key:0},As={key:1,class:"button--loading-black button__loader"},Rs={class:"close-text center-text half-top color-black"},Ns={class:"",href:"https://tapni.com/policies/terms-of-service"},Ps={href:"https://tapni.com/policies/privacy-policy"},Ms={key:2,class:"page-login-links"},Ls={class:"forgot center-text pointer small-top"};function Os(n,e,t,o,r,i){const s=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[15]||(e[15]=a.withModifiers((...c)=>i.submit&&i.submit(...c),["prevent"])),autocomplete:"on",style:a.normalizeStyle(n.isModal?"max-width: 500px;":"")},[n.isModal?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...c)=>i.close&&i.close(...c)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},e[16]||(e[16]=[a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)]))):a.createCommentVNode("",!0),a.createElementVNode("h2",rs,[r.isSSOLogin?(a.openBlock(),a.createElementBlock("span",is,a.toDisplayString(this.ssoLang[this.appLanguage].enter_company_email),1)):(a.openBlock(),a.createElementBlock("span",as,a.toDisplayString(this.ssoLang[this.appLanguage].login),1))]),e[34]||(e[34]=a.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),i.displayFormLogin?(a.openBlock(),a.createElementBlock("span",ss,[a.createElementVNode("div",cs,[e[17]||(e[17]=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1)),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=c=>r.emailOrUsername=c),onKeydown:e[2]||(e[2]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text",name:"email",placeholder:r.isSSOLogin?n.ssoLang[this.appLanguage].email:n.ssoLang[this.appLanguage].email_username,required:""},null,40,ls),[[a.vModelText,r.emailOrUsername]]),e[18]||(e[18]=a.createElementVNode("em",null,null,-1))]),r.isSSOLogin?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",ds,[e[19]||(e[19]=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=c=>r.password=c),type:r.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,us),[[a.vModelDynamic,r.password]]),a.createElementVNode("em",{onClick:e[4]||(e[4]=c=>r.revealPassword=!r.revealPassword),class:"pointer"},[a.withDirectives(a.createElementVNode("img",ps,null,512),[[a.vShow,!r.revealPassword]]),a.withDirectives(a.createElementVNode("img",hs,null,512),[[a.vShow,r.revealPassword]])])])),r.showOTP?(a.openBlock(),a.createElementBlock("div",ms,[e[20]||(e[20]=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":e[5]||(e[5]=c=>r.otpToken=c),type:"text",placeholder:n.ssoLang[this.appLanguage].otp_code,name:"otpToken",required:"",minlength:"6"},null,8,fs),[[a.vModelText,r.otpToken]]),e[21]||(e[21]=a.createElementVNode("em",null,null,-1))])):a.createCommentVNode("",!0),a.createElementVNode("button",gs,[r.submitted?(a.openBlock(),a.createElementBlock("span",vs)):(a.openBlock(),a.createElementBlock("span",_s,a.toDisplayString(n.ssoLang[n.appLanguage].login),1))])])):a.createCommentVNode("",!0),e[35]||(e[35]=a.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1)),a.withDirectives(a.createElementVNode("span",null,[n.displayAppleLogin?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:e[6]||(e[6]=(...c)=>n.appleLogin&&n.appleLogin(...c)),class:"button-center button button-90 google-button pointer"},[e[22]||(e[22]=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),n.appleLoad?(a.openBlock(),a.createElementBlock("span",bs)):(a.openBlock(),a.createElementBlock("span",ys,a.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Apple",1))])):a.createCommentVNode("",!0),n.displayGoogleLogin?(a.openBlock(),a.createElementBlock("a",{key:1,onClick:e[7]||(e[7]=(...c)=>n.googleLogin&&n.googleLogin(...c)),class:"button-center button button-90 google-button pointer"},[e[23]||(e[23]=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-10px",padding:"8px 0",height:"100%"}},null,-1)),n.googleLoad?(a.openBlock(),a.createElementBlock("span",ks)):(a.openBlock(),a.createElementBlock("span",ws,a.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Google",1))])):a.createCommentVNode("",!0),n.displayMicrosoftSSOLogin?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("a",{key:2,onClick:e[8]||(e[8]=(...c)=>n.microsoftLogin&&n.microsoftLogin(...c)),class:"button-center button button-90 google-button pointer"},[e[24]||(e[24]=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/outlook.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1)),n.microsoftLoad?(a.openBlock(),a.createElementBlock("span",Es)):(a.openBlock(),a.createElementBlock("span",Cs,a.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Outlook",1))])),n.displayMicrosoftSSOLogin?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("a",{key:3,onClick:e[9]||(e[9]=c=>r.isSSOLogin=!0),class:"button-center button button-90 google-button pointer"},[e[25]||(e[25]=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1)),n.microsoftSSOLoad?(a.openBlock(),a.createElementBlock("span",Ss)):(a.openBlock(),a.createElementBlock("span",Ts,a.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SSO",1))])),n.displayMicrosoftSSOLogin?(a.openBlock(),a.createElementBlock("a",{key:4,onClick:e[10]||(e[10]=c=>n.microsoftLogin("sso")),class:"button-center button button-90 google-button pointer"},[e[26]||(e[26]=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1)),n.microsoftSSOLoad?(a.openBlock(),a.createElementBlock("span",Is,a.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SSO",1)):(a.openBlock(),a.createElementBlock("span",As))])):a.createCommentVNode("",!0),i.displayFormLogin?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("a",{key:5,onClick:e[11]||(e[11]=c=>r.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[e[27]||(e[27]=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1)),a.createElementVNode("span",null,a.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Email",1)])),n.displayQRLogin?(a.openBlock(),a.createElementBlock("a",{key:6,onClick:e[12]||(e[12]=c=>n.$router.push("/qr")),class:"button-center button button-90 google-button pointer"},[e[28]||(e[28]=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/qr.png",style:{position:"absolute","margin-left":"-5px",padding:"15px 0",height:"100%"}},null,-1)),a.createElementVNode("span",null,a.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" QR",1)])):a.createCommentVNode("",!0),e[29]||(e[29]=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1))],512),[[a.vShow,!r.isSSOLogin]]),a.createElementVNode("p",Rs,[a.createTextVNode(a.toDisplayString(n.ssoLang[n.appLanguage].terms_by_signing_in)+" ",1),e[30]||(e[30]=a.createElementVNode("br",null,null,-1)),a.createElementVNode("a",Ns,a.toDisplayString(n.ssoLang[this.appLanguage].terms_of_service),1),a.createTextVNode(" "+a.toDisplayString(n.ssoLang[n.appLanguage].and)+" ",1),a.createElementVNode("a",Ps,a.toDisplayString(n.ssoLang[this.appLanguage].privacy_policy),1)]),e[36]||(e[36]=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),n.isModal?(a.openBlock(),a.createElementBlock("div",{key:3,class:"page-login-links",onClick:e[14]||(e[14]=(...c)=>i.createAccountModal&&i.createAccountModal(...c))},[a.createElementVNode("a",Ls,[a.createTextVNode(a.toDisplayString(n.ssoLang[n.appLanguage].or)+" ",1),e[32]||(e[32]=a.createElementVNode("br",null,null,-1)),a.createTextVNode(" "+a.toDisplayString(n.ssoLang[n.appLanguage].create_new_account),1)]),e[33]||(e[33]=a.createElementVNode("div",{class:"clear"},null,-1))])):(a.openBlock(),a.createElementBlock("div",Ms,[i.displayRegisterLogin?(a.openBlock(),a.createBlock(s,{key:0,class:"forgot float-right",to:"/register"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(n.ssoLang[n.appLanguage].create_account),1)]),_:1})):a.createCommentVNode("",!0),i.displayResetPasswordLogin?(a.openBlock(),a.createBlock(s,{key:1,class:"create float-left",to:"/reset"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(n.ssoLang[n.appLanguage].reset_password),1)]),_:1})):a.createCommentVNode("",!0),r.isSSOLogin?(a.openBlock(),a.createElementBlock("a",{key:2,onClick:e[13]||(e[13]=c=>r.isSSOLogin=!1),class:"create float-left pointer"},a.toDisplayString(n.ssoLang[n.appLanguage].go_back),1)):a.createCommentVNode("",!0),e[31]||(e[31]=a.createElementVNode("div",{class:"clear"},null,-1))]))],36)}const qo=nt(os,[["render",Os]]),zs=Object.freeze(Object.defineProperty({__proto__:null,default:qo},Symbol.toStringTag,{value:"Module"})),xs={WEB_VERSION:"1.0.1",SUPPORTED_LANGUAGES:["en","de","es","kr","it","fr","sr","tr","cn","pt","ja"]},Bs={mixins:[We],props:{isModal:{type:Boolean,default:!1}},data(){return{expanded:!1,addAccountReady:!1}},computed:{appVersion(){return xs.WEB_VERSION}},async mounted(){if(!this.isLoggedIn)return this.$router.push("/");await this.getAccountSettings()},methods:{continueTo(n){},addAccount(){this.$router.push("/login")},switchAccount(n){},toggleLanguageModal(){X.$emit("toggleSSOLanguageModal")},logoutAccount(){this.logout({refreshToken:this.refreshTokens[0],sendRequest:!0})}}},Us={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},Ds={class:"bold full-top no-bottom center-text text-[24px]"},js={class:"full-bottom half-top center-text font-16"},uh={key:1,class:"full-top full-bottom"},ph={class:"page-login-links center-text"},qs={class:"container left-text"},Fs={class:"firstRow"},Vs=["src"],Hs=["src"],Ks={class:"firstRow"},Gs=["src"],$s=["src"],Qs={class:"firstRow"},Ws=["src"],Ys=["src"],Js={class:"firstRow"},Xs=["src"],Zs=["src"],ec={class:"firstRow"},tc=["src"],nc=["src"],oc={class:"firstRow"},rc=["src"],ic=["src"],ac={class:"firstRow"},sc=["src"],cc={class:"red-text"},lc=["src"],dc={class:"moreFooter"},uc={class:"app-version",style:{"margin-top":"10px"}};function pc(n,e,t,o,r,i){const s=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",Us,[e[12]||(e[12]=a.createElementVNode("br",null,null,-1)),a.createCommentVNode("",!0),a.createElementVNode("h1",Ds,a.toDisplayString(n.ssoLang[n.appLanguage].welcome_account),1),a.createElementVNode("p",js,a.toDisplayString(n.account.email),1),(n.display,a.createCommentVNode("",!0)),a.createElementVNode("div",qs,[a.createCommentVNode("",!0),t.isModal?(a.openBlock(),a.createElementBlock("div",{key:1,class:"settingRow",onClick:e[4]||(e[4]=c=>n.$emit("update:viewProp","AuthGeneral"))},[a.createElementVNode("div",Fs,[a.createElementVNode("img",{src:n.getIcon("user-black.svg"),class:"withBackground"},null,8,Vs),a.createElementVNode("h4",null,a.toDisplayString(n.ssoLang[n.appLanguage].general),1),a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,Hs)])])):(a.openBlock(),a.createBlock(s,{key:2,to:"/general",class:"settingRow"},{default:a.withCtx(()=>[a.createElementVNode("div",Ks,[a.createElementVNode("img",{src:n.getIcon("user-black.svg"),class:"withBackground"},null,8,Gs),a.createElementVNode("h4",null,a.toDisplayString(n.ssoLang[n.appLanguage].general),1),a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,$s)])]),_:1})),t.isModal?(a.openBlock(),a.createElementBlock("div",{key:3,class:"settingRow",onClick:e[5]||(e[5]=c=>n.$emit("update:viewProp","AuthSecurity"))},[a.createElementVNode("div",Qs,[a.createElementVNode("img",{src:n.getIcon("shield-black.svg"),class:"withBackground"},null,8,Ws),a.createElementVNode("h4",null,a.toDisplayString(n.ssoLang[n.appLanguage].security),1),a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,Ys)])])):(a.openBlock(),a.createBlock(s,{key:4,to:"/security",class:"settingRow"},{default:a.withCtx(()=>[a.createElementVNode("div",Js,[a.createElementVNode("img",{src:n.getIcon("shield-black.svg"),class:"withBackground"},null,8,Xs),a.createElementVNode("h4",null,a.toDisplayString(n.ssoLang[n.appLanguage].security),1),a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,Zs)])]),_:1})),a.createCommentVNode("",!0),t.isModal?(a.openBlock(),a.createElementBlock("div",{key:6,class:"settingRow",onClick:e[6]||(e[6]=c=>n.$emit("update:viewProp","AuthBilling"))},[a.createElementVNode("div",ec,[a.createElementVNode("img",{src:n.getIcon("billing-card-black.svg"),class:"withBackground"},null,8,tc),a.createElementVNode("h4",null,a.toDisplayString(n.ssoLang[n.appLanguage].billing),1),a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,nc)])])):(a.openBlock(),a.createBlock(s,{key:7,to:"/billing",class:"settingRow"},{default:a.withCtx(()=>[a.createElementVNode("div",oc,[a.createElementVNode("img",{src:n.getIcon("billing-card-black.svg"),class:"withBackground"},null,8,rc),a.createElementVNode("h4",null,a.toDisplayString(n.ssoLang[n.appLanguage].billing),1),a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,ic)])]),_:1})),t.isModal?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:8,class:"settingRow",onClick:e[7]||(e[7]=(...c)=>i.logoutAccount&&i.logoutAccount(...c))},[a.createElementVNode("div",ac,[a.createElementVNode("img",{src:n.getIcon("logout-red.svg"),class:"withBackground"},null,8,sc),a.createElementVNode("h4",cc,a.toDisplayString(n.ssoLang[n.appLanguage].logout),1),a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,lc)])])),a.createElementVNode("div",dc,[a.createElementVNode("p",uc,a.toDisplayString(n.ssoLang[n.appLanguage].version)+": "+a.toDisplayString(i.appVersion),1),a.createCommentVNode("",!0)])])])}const Fo=nt(Bs,[["render",pc]]),hc=Object.freeze(Object.defineProperty({__proto__:null,default:Fo},Symbol.toStringTag,{value:"Module"})),mc={name:"AuthRegister",mixins:[Tr,Sr,ri,We],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{usernameRegister:!1,loading:!0,submitted:!1,formButtonText:"REGISTER",username:"",email:"",password:"",revealPassword:!1,emailLogin:!0,invitationCode:"",referral:""}},mounted(){this.isModal||(this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&X.$emit("ssoEvent",{name:"setLoading",data:!1}),this.invitationCode=this.$route.query.ic||"",this.$route.query.username&&(this.usernameRegister=!0,this.emailLogin=!0,this.username=this.$route.query.username),this.$route.query.ref?this.referral=this.$route.query.ref:this.$storex.referral&&(this.referral=this.$storex.referral))},methods:{async submit(){if(this.password.length<8)return this.errorSnack(this.ssoLang[this.appLanguage].password_8_chars);if(this.password.search(/[a-z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_lowercase);if(this.password.search(/[A-Z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_uppercase);if(this.password.search(/[0-9]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_number);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.username=this.username.trim();let n={response_type:this.response_type,email:this.email,username:this.username,password:this.password,ic:this.invitationCode,captchaToken:await this.getCaptchaToken("account_verify"),ref:this.referral},e=await this.register(n);this.submitted=!1,e.data&&e.data.success&&(e.data.message==="SUCCESS_REGISTER"?(this.isModal?X.$emit("ssoEvent",{name:"toggleAddAccountModalVerify",data:!1}):this.$router.push("/verify"),this.successSnack(this.ssoLang[this.appLanguage].register_success),this.formButtonText=this.ssoLang[this.appLanguage].check_your_inbox):e.data.message==="SUCCESS_LOGIN"&&(this.display!=="popup"&&(await this.loginSetup({...e,isModal:n.isModal}),await this.getLoggedInAccounts()),await this.loginSuccess({...e,isModal:n.isModal})))},close(){X.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},loginAccountModal(){X.$emit("ssoEvent",{name:"toggleAddAccountModalLogin",data:!1})}},watch:{email(n){this.$storex.verifyEmail=n},referral(n){this.$storex.referral=n}}},fc={class:"bold no-bottom center-text text-[24px]",style:{"margin-top":"63px"}},gc={class:"half-bottom small-top center-text color-black"},_c={key:0},vc={key:1},yc={class:"page-login-field half-top"},bc=["placeholder"],wc={class:"page-login-field half-top"},kc=["placeholder","disabled"],Cc={class:"page-login-field half-top half-bottom"},Ec=["type","placeholder"],Tc={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Sc={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Ic={type:"submit",class:"button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"},Ac={key:0},Rc={key:1,class:"button--loading button__loader"},Nc={key:0},Pc={key:1,class:"button--loading-black button__loader"},Mc={key:0},Lc={key:1,class:"button--loading-black button__loader"},Oc={class:"close-text center-text half-top color-black"},zc={class:"",href:"https://tapni.co/policies/terms-of-service"},xc={href:"https://tapni.co/policies/privacy-policy"},Bc={key:4,class:"page-login-links"},Uc={class:"forgot center-text pointer small-top"};function Dc(n,e,t,o,r,i){const s=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[11]||(e[11]=a.withModifiers((...c)=>i.submit&&i.submit(...c),["prevent"])),autocomplete:"on",style:a.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...c)=>i.close&&i.close(...c)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},e[12]||(e[12]=[a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)]))):a.createCommentVNode("",!0),a.createElementVNode("h1",fc,a.toDisplayString(n.ssoLang[this.appLanguage].register),1),a.createElementVNode("p",gc,[r.usernameRegister?(a.openBlock(),a.createElementBlock("span",_c,[a.createTextVNode(" t.link/"+a.toDisplayString(r.username)+" "+a.toDisplayString(n.ssoLang[this.appLanguage].username_is_free)+" ✅ ",1),e[13]||(e[13]=a.createElementVNode("br",null,null,-1))])):a.createCommentVNode("",!0)]),r.emailLogin?(a.openBlock(),a.createElementBlock("span",vc,[a.createElementVNode("div",yc,[e[14]||(e[14]=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"60%"}})],-1)),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=c=>r.email=c),onKeydown:e[2]||(e[2]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,name:"email",required:""},null,40,bc),[[a.vModelText,r.email]]),e[15]||(e[15]=a.createElementVNode("em",null,null,-1))]),a.createElementVNode("div",wc,[e[16]||(e[16]=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1)),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=c=>r.username=c),onKeydown:e[4]||(e[4]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",placeholder:n.ssoLang[this.appLanguage].username,name:"username",required:"",disabled:r.usernameRegister,class:a.normalizeClass({"input-disabled":r.usernameRegister})},null,42,kc),[[a.vModelText,r.username]]),e[17]||(e[17]=a.createElementVNode("em",null,null,-1))]),a.createElementVNode("div",Cc,[e[18]||(e[18]=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":e[5]||(e[5]=c=>r.password=c),type:r.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Ec),[[a.vModelDynamic,r.password]]),a.createElementVNode("em",{onClick:e[6]||(e[6]=c=>r.revealPassword=!r.revealPassword),class:"pointer"},[a.withDirectives(a.createElementVNode("img",Tc,null,512),[[a.vShow,!r.revealPassword]]),a.withDirectives(a.createElementVNode("img",Sc,null,512),[[a.vShow,r.revealPassword]])])]),a.createElementVNode("button",Ic,[r.submitted?(a.openBlock(),a.createElementBlock("span",Rc)):(a.openBlock(),a.createElementBlock("span",Ac,a.toDisplayString(r.formButtonText),1))])])):a.createCommentVNode("",!0),e[26]||(e[26]=a.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1)),n.displayAppleLogin?(a.openBlock(),a.createElementBlock("a",{key:2,onClick:e[7]||(e[7]=(...c)=>n.appleLogin&&n.appleLogin(...c)),class:"button-center button button-90 google-button pointer"},[e[19]||(e[19]=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),n.appleLoad?(a.openBlock(),a.createElementBlock("span",Pc)):(a.openBlock(),a.createElementBlock("span",Nc,a.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Apple",1))])):a.createCommentVNode("",!0),a.createElementVNode("a",{onClick:e[8]||(e[8]=(...c)=>n.googleLogin&&n.googleLogin(...c)),class:"button-center button button-90 google-button pointer"},[e[20]||(e[20]=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-9px",padding:"8px 0",height:"100%"}},null,-1)),n.googleLoad?(a.openBlock(),a.createElementBlock("span",Lc)):(a.openBlock(),a.createElementBlock("span",Mc,a.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Google",1))]),r.emailLogin?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("a",{key:3,onClick:e[9]||(e[9]=c=>r.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[e[21]||(e[21]=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1)),a.createElementVNode("span",null,a.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Email",1)])),e[27]||(e[27]=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),a.createElementVNode("p",Oc,[a.createTextVNode(a.toDisplayString(n.ssoLang[this.appLanguage].terms_by_registering)+" ",1),e[22]||(e[22]=a.createElementVNode("br",null,null,-1)),a.createElementVNode("a",zc,a.toDisplayString(n.ssoLang[this.appLanguage].terms_of_service),1),a.createTextVNode(" "+a.toDisplayString(n.ssoLang[this.appLanguage].and)+" ",1),a.createElementVNode("a",xc,a.toDisplayString(n.ssoLang[this.appLanguage].privacy_policy),1)]),e[28]||(e[28]=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),t.isModal?(a.openBlock(),a.createElementBlock("div",{key:5,class:"page-login-links",onClick:e[10]||(e[10]=(...c)=>i.loginAccountModal&&i.loginAccountModal(...c))},[a.createElementVNode("a",Uc,[a.createTextVNode(a.toDisplayString(n.ssoLang[this.appLanguage].or)+" ",1),e[24]||(e[24]=a.createElementVNode("br",null,null,-1)),a.createTextVNode(" "+a.toDisplayString(n.ssoLang[this.appLanguage].sign_in_with_new),1)]),e[25]||(e[25]=a.createElementVNode("div",{class:"clear"},null,-1))])):(a.openBlock(),a.createElementBlock("div",Bc,[a.createVNode(s,{class:"create float-right",to:"/verify"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1)]),_:1}),a.createVNode(s,{class:"forgot float-left",to:"/login"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),e[23]||(e[23]=a.createElementVNode("div",{class:"clear"},null,-1))]))],36)}const Vo=nt(mc,[["render",Dc]]),jc=Object.freeze(Object.defineProperty({__proto__:null,default:Vo},Symbol.toStringTag,{value:"Module"})),qc={name:"AuthVerify",mixins:[We],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,action:"verify",email:"",code:"",captcha:""}},mounted(){this.$storex.verifyEmail&&(this.email=this.$storex.verifyEmail),this.$route&&this.init()},methods:{init(){this.$storex.verifyEmail&&(this.email=this.$storex.verifyEmail),this.$route.hash==="#reset"&&(this.action="reset"),this.$route.query.e&&(this.email=this.$route.query.e),this.$route.query.c&&(this.code=this.$route.query.c),X.$emit("ssoEvent",{name:"setLoading",data:!1})},async submit(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);this.email=this.email.trim(),this.code=this.code.trim();let n={code:this.code,email:this.email,captchaToken:await this.getCaptchaToken("account_verify")};if(this.submitted)return!1;this.submitted=!0;let e=await this.verify(n);this.submitted=!1,e&&e.data&&e.data.success===!0?(this.action==="reset"&&(this.$router.push("/reset?c="+this.code+"&e="+this.email),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)),this.action==="verify"&&(this.isModal&&(this.email="",this.code="",X.$emit("closeModal")),await this.loginSetup(e),await this.getLoggedInAccounts(),this.$storex.verifyEmail="",this.$router.push("/"+e.data.data.username+"#edit"),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))):this.submitted=!1},registerAccountModal(){X.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:!1})},close(){X.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})}},watch:{"$storage.verifyEmail"(n){n&&(this.email=n)},"route.name"(n,e){!e&&n&&this.init()},"route.query":{handler(n){this.isEmpty(n)||this.init()},deep:!0}}},Fc={class:"bold no-bottom center-text text-[24px]",style:{"margin-top":"63px"}},Vc={class:"page-login-field half-top"},Hc=["placeholder"],Kc={class:"page-login-field half-top"},Gc=["placeholder"],$c={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Qc={key:0,class:"uppercase"},Wc={key:1,class:"button--loading button__loader"},Yc={class:"close-text center-text half-top color-black"},Jc=["innerHTML"],Xc={key:1,class:"page-login-links"},Zc={key:2,class:"page-login-links"};function el(n,e,t,o,r,i){const s=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[6]||(e[6]=a.withModifiers((...c)=>i.submit&&i.submit(...c),["prevent"])),style:a.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...c)=>i.close&&i.close(...c)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},e[7]||(e[7]=[a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)]))):a.createCommentVNode("",!0),a.createElementVNode("h1",Fc,a.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1),e[16]||(e[16]=a.createElementVNode("p",{class:"half-bottom half-top center-text color-black"},null,-1)),a.createElementVNode("div",Vc,[e[8]||(e[8]=a.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),a.withDirectives(a.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":e[1]||(e[1]=c=>r.email=c),onKeydown:e[2]||(e[2]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,required:""},null,40,Hc),[[a.vModelText,r.email]]),e[9]||(e[9]=a.createElementVNode("em",null,null,-1))]),a.createElementVNode("div",Kc,[e[10]||(e[10]=a.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/password2.png",class:"responsive-image",style:{width:"100%"}})],-1)),a.withDirectives(a.createElementVNode("input",{id:"codeInput","onUpdate:modelValue":e[3]||(e[3]=c=>r.code=c),onKeydown:e[4]||(e[4]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"tel",placeholder:n.ssoLang[this.appLanguage].code,required:""},null,40,Gc),[[a.vModelText,r.code]]),e[11]||(e[11]=a.createElementVNode("em",null,null,-1))]),a.createElementVNode("button",$c,[r.submitted?(a.openBlock(),a.createElementBlock("span",Wc)):(a.openBlock(),a.createElementBlock("span",Qc,a.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1))]),e[17]||(e[17]=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),a.createElementVNode("p",Yc,[a.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].verify_account_p1},null,8,Jc),e[12]||(e[12]=a.createElementVNode("a",{href:"mailto:support@tapni.com?subject=Email Verification"}," support@tapni.com",-1))]),e[18]||(e[18]=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),t.isModal?(a.openBlock(),a.createElementBlock("div",Zc,[a.createElementVNode("a",{class:"forgot center-text pointer small-top",onClick:e[5]||(e[5]=a.withModifiers((...c)=>i.registerAccountModal&&i.registerAccountModal(...c),["prevent"]))},[a.createTextVNode(a.toDisplayString(n.ssoLang[this.appLanguage].or)+" ",1),e[14]||(e[14]=a.createElementVNode("br",null,null,-1)),a.createTextVNode(" "+a.toDisplayString(n.ssoLang[this.appLanguage].create_new_account),1)]),e[15]||(e[15]=a.createElementVNode("div",{class:"clear"},null,-1))])):(a.openBlock(),a.createElementBlock("div",Xc,[a.createVNode(s,{class:"create float-right",to:"/register"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(n.ssoLang[this.appLanguage].register),1)]),_:1}),a.createVNode(s,{class:"forgot float-left",to:"/login"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),e[13]||(e[13]=a.createElementVNode("div",{class:"clear"},null,-1))]))],36)}const Ho=nt(qc,[["render",el],["__scopeId","data-v-96f72130"]]),tl=Object.freeze(Object.defineProperty({__proto__:null,default:Ho},Symbol.toStringTag,{value:"Module"}));var ci={exports:{}};(function(n,e){(function(t,o){n.exports=o()})(window,function(){return function(t){var o={};function r(i){if(o[i])return o[i].exports;var s=o[i]={i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=t,r.c=o,r.d=function(i,s,c){r.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:c})},r.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},r.t=function(i,s){if(1&s&&(i=r(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var c=Object.create(null);if(r.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var l in i)r.d(c,l,(function(h){return i[h]}).bind(null,l));return c},r.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(s,"a",s),s},r.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},r.p="",r(r.s=12)}([function(t,o,r){var i;t.exports=(i=i||function(s,c){var l=Object.create||function(){function T(){}return function(B){var V;return T.prototype=B,V=new T,T.prototype=null,V}}(),h={},u=h.lib={},g=u.Base={extend:function(T){var B=l(this);return T&&B.mixIn(T),B.hasOwnProperty("init")&&this.init!==B.init||(B.init=function(){B.$super.init.apply(this,arguments)}),B.init.prototype=B,B.$super=this,B},create:function(){var T=this.extend();return T.init.apply(T,arguments),T},init:function(){},mixIn:function(T){for(var B in T)T.hasOwnProperty(B)&&(this[B]=T[B]);T.hasOwnProperty("toString")&&(this.toString=T.toString)},clone:function(){return this.init.prototype.extend(this)}},f=u.WordArray=g.extend({init:function(T,B){T=this.words=T||[],this.sigBytes=B??4*T.length},toString:function(T){return(T||C).stringify(this)},concat:function(T){var B=this.words,V=T.words,G=this.sigBytes,J=T.sigBytes;if(this.clamp(),G%4)for(var I=0;I<J;I++){var W=V[I>>>2]>>>24-I%4*8&255;B[G+I>>>2]|=W<<24-(G+I)%4*8}else for(I=0;I<J;I+=4)B[G+I>>>2]=V[I>>>2];return this.sigBytes+=J,this},clamp:function(){var T=this.words,B=this.sigBytes;T[B>>>2]&=4294967295<<32-B%4*8,T.length=s.ceil(B/4)},clone:function(){var T=g.clone.call(this);return T.words=this.words.slice(0),T},random:function(T){for(var B,V=[],G=function(W){W=W;var ie=987654321,ee=4294967295;return function(){var ve=((ie=36969*(65535&ie)+(ie>>16)&ee)<<16)+(W=18e3*(65535&W)+(W>>16)&ee)&ee;return ve/=4294967296,(ve+=.5)*(s.random()>.5?1:-1)}},J=0;J<T;J+=4){var I=G(4294967296*(B||s.random()));B=987654071*I(),V.push(4294967296*I()|0)}return new f.init(V,T)}}),w=h.enc={},C=w.Hex={stringify:function(T){for(var B=T.words,V=T.sigBytes,G=[],J=0;J<V;J++){var I=B[J>>>2]>>>24-J%4*8&255;G.push((I>>>4).toString(16)),G.push((15&I).toString(16))}return G.join("")},parse:function(T){for(var B=T.length,V=[],G=0;G<B;G+=2)V[G>>>3]|=parseInt(T.substr(G,2),16)<<24-G%8*4;return new f.init(V,B/2)}},P=w.Latin1={stringify:function(T){for(var B=T.words,V=T.sigBytes,G=[],J=0;J<V;J++){var I=B[J>>>2]>>>24-J%4*8&255;G.push(String.fromCharCode(I))}return G.join("")},parse:function(T){for(var B=T.length,V=[],G=0;G<B;G++)V[G>>>2]|=(255&T.charCodeAt(G))<<24-G%4*8;return new f.init(V,B)}},M=w.Utf8={stringify:function(T){try{return decodeURIComponent(escape(P.stringify(T)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(T){return P.parse(unescape(encodeURIComponent(T)))}},j=u.BufferedBlockAlgorithm=g.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(T){typeof T=="string"&&(T=M.parse(T)),this._data.concat(T),this._nDataBytes+=T.sigBytes},_process:function(T){var B=this._data,V=B.words,G=B.sigBytes,J=this.blockSize,I=G/(4*J),W=(I=T?s.ceil(I):s.max((0|I)-this._minBufferSize,0))*J,ie=s.min(4*W,G);if(W){for(var ee=0;ee<W;ee+=J)this._doProcessBlock(V,ee);var ve=V.splice(0,W);B.sigBytes-=ie}return new f.init(ve,ie)},clone:function(){var T=g.clone.call(this);return T._data=this._data.clone(),T},_minBufferSize:0}),N=(u.Hasher=j.extend({cfg:g.extend(),init:function(T){this.cfg=this.cfg.extend(T),this.reset()},reset:function(){j.reset.call(this),this._doReset()},update:function(T){return this._append(T),this._process(),this},finalize:function(T){return T&&this._append(T),this._doFinalize()},blockSize:16,_createHelper:function(T){return function(B,V){return new T.init(V).finalize(B)}},_createHmacHelper:function(T){return function(B,V){return new N.HMAC.init(T,V).finalize(B)}}}),h.algo={});return h}(Math),i)},function(t,o,r){var i,s,c,l;t.exports=(i=r(0),c=(s=i).lib.Base,l=s.enc.Utf8,void(s.algo.HMAC=c.extend({init:function(h,u){h=this._hasher=new h.init,typeof u=="string"&&(u=l.parse(u));var g=h.blockSize,f=4*g;u.sigBytes>f&&(u=h.finalize(u)),u.clamp();for(var w=this._oKey=u.clone(),C=this._iKey=u.clone(),P=w.words,M=C.words,j=0;j<g;j++)P[j]^=1549556828,M[j]^=909522486;w.sigBytes=C.sigBytes=f,this.reset()},reset:function(){var h=this._hasher;h.reset(),h.update(this._iKey)},update:function(h){return this._hasher.update(h),this},finalize:function(h){var u=this._hasher,g=u.finalize(h);return u.reset(),u.finalize(this._oKey.clone().concat(g))}})))},function(t,o,r){var i;t.exports=(i=r(0),i.enc.Hex)},function(t,o,r){var i,s,c,l,h,u;t.exports=(u=r(0),s=(i=u).lib,c=s.Base,l=s.WordArray,(h=i.x64={}).Word=c.extend({init:function(g,f){this.high=g,this.low=f}}),h.WordArray=c.extend({init:function(g,f){g=this.words=g||[],this.sigBytes=f??8*g.length},toX32:function(){for(var g=this.words,f=g.length,w=[],C=0;C<f;C++){var P=g[C];w.push(P.high),w.push(P.low)}return l.create(w,this.sigBytes)},clone:function(){for(var g=c.clone.call(this),f=g.words=this.words.slice(0),w=f.length,C=0;C<w;C++)f[C]=f[C].clone();return g}}),u)},function(t,o,r){var i;t.exports=(i=r(0),r(9),r(1),i.HmacSHA1)},function(t,o,r){var i;t.exports=(i=r(0),r(10),r(1),i.HmacSHA256)},function(t,o,r){var i;t.exports=(i=r(0),r(3),r(11),r(1),i.HmacSHA512)},function(t,o){function r(i,s){var c=i.indexOf(s);if(c===-1)throw new Error("Invalid character found: "+s);return c}t.exports=function(i,s){var c;switch(s){case"RFC3548":case"RFC4648":c="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",i=i.replace(/=+$/,"");break;case"RFC4648-HEX":c="0123456789ABCDEFGHIJKLMNOPQRSTUV",i=i.replace(/=+$/,"");break;case"Crockford":c="0123456789ABCDEFGHJKMNPQRSTVWXYZ",i=i.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1");break;default:throw new Error("Unknown base32 variant: "+s)}for(var l=i.length,h=0,u=0,g=0,f=new Uint8Array(5*l/8|0),w=0;w<l;w++)u=u<<5|r(c,i[w]),(h+=5)>=8&&(f[g++]=u>>>h-8&255,h-=8);return f.buffer}},function(t,o){t.exports=function(r,i,s){var c,l;switch(s=s||{},i){case"RFC3548":case"RFC4648":c="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",l=!0;break;case"RFC4648-HEX":c="0123456789ABCDEFGHIJKLMNOPQRSTUV",l=!0;break;case"Crockford":c="0123456789ABCDEFGHJKMNPQRSTVWXYZ",l=!1;break;default:throw new Error("Unknown base32 variant: "+i)}for(var h=s.padding!==void 0?s.padding:l,u=r.byteLength,g=new Uint8Array(r),f=0,w=0,C="",P=0;P<u;P++)for(w=w<<8|g[P],f+=8;f>=5;)C+=c[w>>>f-5&31],f-=5;if(f>0&&(C+=c[w<<5-f&31]),h)for(;C.length%8!=0;)C+="=";return C}},function(t,o,r){var i,s,c,l,h,u,g,f;t.exports=(f=r(0),s=(i=f).lib,c=s.WordArray,l=s.Hasher,h=i.algo,u=[],g=h.SHA1=l.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,C){for(var P=this._hash.words,M=P[0],j=P[1],N=P[2],T=P[3],B=P[4],V=0;V<80;V++){if(V<16)u[V]=0|w[C+V];else{var G=u[V-3]^u[V-8]^u[V-14]^u[V-16];u[V]=G<<1|G>>>31}var J=(M<<5|M>>>27)+B+u[V];J+=V<20?1518500249+(j&N|~j&T):V<40?1859775393+(j^N^T):V<60?(j&N|j&T|N&T)-1894007588:(j^N^T)-899497514,B=T,T=N,N=j<<30|j>>>2,j=M,M=J}P[0]=P[0]+M|0,P[1]=P[1]+j|0,P[2]=P[2]+N|0,P[3]=P[3]+T|0,P[4]=P[4]+B|0},_doFinalize:function(){var w=this._data,C=w.words,P=8*this._nDataBytes,M=8*w.sigBytes;return C[M>>>5]|=128<<24-M%32,C[14+(M+64>>>9<<4)]=Math.floor(P/4294967296),C[15+(M+64>>>9<<4)]=P,w.sigBytes=4*C.length,this._process(),this._hash},clone:function(){var w=l.clone.call(this);return w._hash=this._hash.clone(),w}}),i.SHA1=l._createHelper(g),i.HmacSHA1=l._createHmacHelper(g),f.SHA1)},function(t,o,r){var i;t.exports=(i=r(0),function(s){var c=i,l=c.lib,h=l.WordArray,u=l.Hasher,g=c.algo,f=[],w=[];(function(){function M(B){for(var V=s.sqrt(B),G=2;G<=V;G++)if(!(B%G))return!1;return!0}function j(B){return 4294967296*(B-(0|B))|0}for(var N=2,T=0;T<64;)M(N)&&(T<8&&(f[T]=j(s.pow(N,.5))),w[T]=j(s.pow(N,1/3)),T++),N++})();var C=[],P=g.SHA256=u.extend({_doReset:function(){this._hash=new h.init(f.slice(0))},_doProcessBlock:function(M,j){for(var N=this._hash.words,T=N[0],B=N[1],V=N[2],G=N[3],J=N[4],I=N[5],W=N[6],ie=N[7],ee=0;ee<64;ee++){if(ee<16)C[ee]=0|M[j+ee];else{var ve=C[ee-15],Re=(ve<<25|ve>>>7)^(ve<<14|ve>>>18)^ve>>>3,le=C[ee-2],Me=(le<<15|le>>>17)^(le<<13|le>>>19)^le>>>10;C[ee]=Re+C[ee-7]+Me+C[ee-16]}var yt=T&B^T&V^B&V,Pt=(T<<30|T>>>2)^(T<<19|T>>>13)^(T<<10|T>>>22),at=ie+((J<<26|J>>>6)^(J<<21|J>>>11)^(J<<7|J>>>25))+(J&I^~J&W)+w[ee]+C[ee];ie=W,W=I,I=J,J=G+at|0,G=V,V=B,B=T,T=at+(Pt+yt)|0}N[0]=N[0]+T|0,N[1]=N[1]+B|0,N[2]=N[2]+V|0,N[3]=N[3]+G|0,N[4]=N[4]+J|0,N[5]=N[5]+I|0,N[6]=N[6]+W|0,N[7]=N[7]+ie|0},_doFinalize:function(){var M=this._data,j=M.words,N=8*this._nDataBytes,T=8*M.sigBytes;return j[T>>>5]|=128<<24-T%32,j[14+(T+64>>>9<<4)]=s.floor(N/4294967296),j[15+(T+64>>>9<<4)]=N,M.sigBytes=4*j.length,this._process(),this._hash},clone:function(){var M=u.clone.call(this);return M._hash=this._hash.clone(),M}});c.SHA256=u._createHelper(P),c.HmacSHA256=u._createHmacHelper(P)}(Math),i.SHA256)},function(t,o,r){var i;t.exports=(i=r(0),r(3),function(){var s=i,c=s.lib.Hasher,l=s.x64,h=l.Word,u=l.WordArray,g=s.algo;function f(){return h.create.apply(h,arguments)}var w=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],C=[];(function(){for(var M=0;M<80;M++)C[M]=f()})();var P=g.SHA512=c.extend({_doReset:function(){this._hash=new u.init([new h.init(1779033703,4089235720),new h.init(3144134277,2227873595),new h.init(1013904242,4271175723),new h.init(2773480762,1595750129),new h.init(1359893119,2917565137),new h.init(2600822924,725511199),new h.init(528734635,4215389547),new h.init(1541459225,327033209)])},_doProcessBlock:function(M,j){for(var N=this._hash.words,T=N[0],B=N[1],V=N[2],G=N[3],J=N[4],I=N[5],W=N[6],ie=N[7],ee=T.high,ve=T.low,Re=B.high,le=B.low,Me=V.high,yt=V.low,Pt=G.high,at=G.low,dn=J.high,Jt=J.low,un=I.high,Xt=I.low,Sn=W.high,Ce=W.low,Se=ie.high,Kt=ie.low,De=ee,Le=ve,Mt=Re,bt=le,Qe=Me,st=yt,Gt=Pt,Lt=at,Ge=dn,Ie=Jt,ct=un,Ot=Xt,zt=Sn,ht=Ce,pn=Se,wt=Kt,je=0;je<80;je++){var mt=C[je];if(je<16)var Oe=mt.high=0|M[j+2*je],lt=mt.low=0|M[j+2*je+1];else{var hn=C[je-15],qe=hn.high,xt=hn.low,m=(qe>>>1|xt<<31)^(qe>>>8|xt<<24)^qe>>>7,d=(xt>>>1|qe<<31)^(xt>>>8|qe<<24)^(xt>>>7|qe<<25),p=C[je-2],_=p.high,k=p.low,S=(_>>>19|k<<13)^(_<<3|k>>>29)^_>>>6,L=(k>>>19|_<<13)^(k<<3|_>>>29)^(k>>>6|_<<26),se=C[je-7],ye=se.high,_e=se.low,be=C[je-16],me=be.high,lo=be.low;Oe=(Oe=(Oe=m+ye+((lt=d+_e)>>>0<d>>>0?1:0))+S+((lt+=L)>>>0<L>>>0?1:0))+me+((lt+=lo)>>>0<lo>>>0?1:0),mt.high=Oe,mt.low=lt}var kt,Jo=Ge&ct^~Ge&zt,uo=Ie&Ot^~Ie&ht,Xo=De&Mt^De&Qe^Mt&Qe,Zo=Le&bt^Le&st^bt&st,po=(De>>>28|Le<<4)^(De<<30|Le>>>2)^(De<<25|Le>>>7),ho=(Le>>>28|De<<4)^(Le<<30|De>>>2)^(Le<<25|De>>>7),er=(Ge>>>14|Ie<<18)^(Ge>>>18|Ie<<14)^(Ge<<23|Ie>>>9),tr=(Ie>>>14|Ge<<18)^(Ie>>>18|Ge<<14)^(Ie<<23|Ge>>>9),v=w[je],y=v.high,E=v.low,A=pn+er+((kt=wt+tr)>>>0<wt>>>0?1:0),O=ho+Zo;pn=zt,wt=ht,zt=ct,ht=Ot,ct=Ge,Ot=Ie,Ge=Gt+(A=(A=(A=A+Jo+((kt+=uo)>>>0<uo>>>0?1:0))+y+((kt+=E)>>>0<E>>>0?1:0))+Oe+((kt+=lt)>>>0<lt>>>0?1:0))+((Ie=Lt+kt|0)>>>0<Lt>>>0?1:0)|0,Gt=Qe,Lt=st,Qe=Mt,st=bt,Mt=De,bt=Le,De=A+(po+Xo+(O>>>0<ho>>>0?1:0))+((Le=kt+O|0)>>>0<kt>>>0?1:0)|0}ve=T.low=ve+Le,T.high=ee+De+(ve>>>0<Le>>>0?1:0),le=B.low=le+bt,B.high=Re+Mt+(le>>>0<bt>>>0?1:0),yt=V.low=yt+st,V.high=Me+Qe+(yt>>>0<st>>>0?1:0),at=G.low=at+Lt,G.high=Pt+Gt+(at>>>0<Lt>>>0?1:0),Jt=J.low=Jt+Ie,J.high=dn+Ge+(Jt>>>0<Ie>>>0?1:0),Xt=I.low=Xt+Ot,I.high=un+ct+(Xt>>>0<Ot>>>0?1:0),Ce=W.low=Ce+ht,W.high=Sn+zt+(Ce>>>0<ht>>>0?1:0),Kt=ie.low=Kt+wt,ie.high=Se+pn+(Kt>>>0<wt>>>0?1:0)},_doFinalize:function(){var M=this._data,j=M.words,N=8*this._nDataBytes,T=8*M.sigBytes;return j[T>>>5]|=128<<24-T%32,j[30+(T+128>>>10<<5)]=Math.floor(N/4294967296),j[31+(T+128>>>10<<5)]=N,M.sigBytes=4*j.length,this._process(),this._hash.toX32()},clone:function(){var M=c.clone.call(this);return M._hash=this._hash.clone(),M},blockSize:32});s.SHA512=c._createHelper(P),s.HmacSHA512=c._createHmacHelper(P)}(),i.SHA512)},function(t,o,r){r.r(o);var i,s=r(0),c=r.n(s),l=r(4),h=r.n(l),u=r(5),g=r.n(u),f=r(6),w=r.n(f),C=r(2),P=r.n(C);function M(v,y){var E=Object.keys(v);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(v);y&&(A=A.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),E.push.apply(E,A)}return E}function j(v){for(var y=1;y<arguments.length;y++){var E=arguments[y]!=null?arguments[y]:{};y%2?M(Object(E),!0).forEach(function(A){N(v,A,E[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(E)):M(Object(E)).forEach(function(A){Object.defineProperty(v,A,Object.getOwnPropertyDescriptor(E,A))})}return v}function N(v,y,E){return y in v?Object.defineProperty(v,y,{value:E,enumerable:!0,configurable:!0,writable:!0}):v[y]=E,v}function T(v,y){for(var E=0;E<y.length;E++){var A=y[E];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(v,A.key,A)}}function B(v){return Object.keys(v).map(function(y){return v[y]})}(function(v){v.SHA1="sha1",v.SHA256="sha256",v.SHA512="sha512"})(i||(i={}));var V,G=B(i);(function(v){v.ASCII="ascii",v.BASE64="base64",v.HEX="hex",v.LATIN1="latin1",v.UTF8="utf8"})(V||(V={}));var J,I=B(V);(function(v){v.HOTP="hotp",v.TOTP="totp"})(J||(J={}));var W=B(J),ie=function(){throw new Error("Please provide an options.createDigest implementation.")};function ee(v){return/^(\d+)$/.test(v)}function ve(v,y,E){if(v.length>=y)return v;var A=Array(y+1).join(E);return"".concat(A).concat(v).slice(-1*y)}function Re(v){var y="otpauth://".concat(v.type,"/{labelPrefix}:{accountName}?secret={secret}{query}"),E=[];if(W.indexOf(v.type)<0)throw new Error("Expecting options.type to be one of ".concat(W.join(", "),". Received ").concat(v.type,"."));if(v.type==="hotp"){if(v.counter==null||typeof v.counter!="number")throw new Error('Expecting options.counter to be a number when options.type is "hotp".');E.push("&counter=".concat(v.counter))}return v.type==="totp"&&v.step&&E.push("&period=".concat(v.step)),v.digits&&E.push("&digits=".concat(v.digits)),v.algorithm&&E.push("&algorithm=".concat(v.algorithm.toUpperCase())),v.issuer&&E.push("&issuer=".concat(encodeURIComponent(v.issuer))),y.replace("{labelPrefix}",encodeURIComponent(v.issuer||v.accountName)).replace("{accountName}",encodeURIComponent(v.accountName)).replace("{secret}",v.secret).replace("{query}",E.join(""))}function le(v){return(le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(v)}function Me(v,y){for(var E=0;E<y.length;E++){var A=y[E];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(v,A.key,A)}}function yt(v,y){return!y||le(y)!=="object"&&typeof y!="function"?function(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}(v):y}function Pt(v){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)})(v)}function at(v,y){return(at=Object.setPrototypeOf||function(E,A){return E.__proto__=A,E})(v,y)}function dn(v,y){var E=Object.keys(v);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(v);y&&(A=A.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),E.push.apply(E,A)}return E}function Jt(v,y,E){return y in v?Object.defineProperty(v,y,{value:E,enumerable:!0,configurable:!0,writable:!0}):v[y]=E,v}function un(v){if(typeof v.createDigest!="function")throw new Error("Expecting options.createDigest to be a function.");if(typeof v.createHmacKey!="function")throw new Error("Expecting options.createHmacKey to be a function.");if(typeof v.digits!="number")throw new Error("Expecting options.digits to be a number.");if(!v.algorithm||G.indexOf(v.algorithm)<0)throw new Error("Expecting options.algorithm to be one of ".concat(G.join(", "),". Received ").concat(v.algorithm,"."));if(!v.encoding||I.indexOf(v.encoding)<0)throw new Error("Expecting options.encoding to be one of ".concat(I.join(", "),". Received ").concat(v.encoding,"."))}var Xt=function(v,y,E){return nn.from(y,E).toString("hex")};function Sn(v){var y=function(E){for(var A=1;A<arguments.length;A++){var O=arguments[A]!=null?arguments[A]:{};A%2?dn(Object(O),!0).forEach(function(q){Jt(E,q,O[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(O)):dn(Object(O)).forEach(function(q){Object.defineProperty(E,q,Object.getOwnPropertyDescriptor(O,q))})}return E}({},{algorithm:i.SHA1,createHmacKey:Xt,createDigest:ie,digits:6,encoding:V.ASCII},{},v);return un(y),Object.freeze(y)}function Ce(v,y,E){var A=function(q){return ve(q.toString(16),16,"0")}(y),O=E.createHmacKey(E.algorithm,v,E.encoding);return E.createDigest(E.algorithm,O,A)}function Se(v,y,E){return function(A,O){var q=nn.from(A,"hex"),pe=15&q[q.length-1],et=((127&q[pe])<<24|(255&q[pe+1])<<16|(255&q[pe+2])<<8|255&q[pe+3])%Math.pow(10,O);return ve(String(et),O,"0")}(E.digest||Ce(v,y,E),E.digits)}function Kt(v,y,E,A,O){return Re({algorithm:O.algorithm,digits:O.digits,type:J.HOTP,accountName:v,counter:A,issuer:y,secret:E})}var De=function(v){function y(){return function(O,q){if(!(O instanceof q))throw new TypeError("Cannot call a class as a function")}(this,y),yt(this,Pt(y).apply(this,arguments))}var E,A;return function(O,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(q&&q.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),q&&at(O,q)}(y,v),E=y,(A=[{key:"create",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new y(O)}},{key:"allOptions",value:function(){return Sn(this.options)}},{key:"generate",value:function(O,q){return Se(O,q,this.allOptions())}},{key:"check",value:function(O,q,pe){return function(et,Bt,Zt,nr){return!!ee(et)&&et===Se(Bt,Zt,nr)}(O,q,pe,this.allOptions())}},{key:"verify",value:function(O){if(le(O)!=="object")throw new Error("Expecting argument 0 of verify to be an object");return this.check(O.token,O.secret,O.counter)}},{key:"keyuri",value:function(O,q,pe,et){return Kt(O,q,pe,et,this.allOptions())}}])&&Me(E.prototype,A),y}(function(){function v(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(O,q){if(!(O instanceof q))throw new TypeError("Cannot call a class as a function")})(this,v),this._defaultOptions=Object.freeze(j({},A)),this._options=Object.freeze({})}var y,E;return y=v,(E=[{key:"create",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new v(A)}},{key:"clone",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=this.create(j({},this._defaultOptions,{},A));return O.options=this._options,O}},{key:"allOptions",value:function(){return this.options}},{key:"resetOptions",value:function(){this._options=Object.freeze({})}},{key:"options",get:function(){return Object.freeze(j({},this._defaultOptions,{},this._options))},set:function(A){this._options=Object.freeze(j({},this._options,{},A))}}])&&T(y.prototype,E),v}());function Le(v){return(Le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(v)}function Mt(v,y){for(var E=0;E<y.length;E++){var A=y[E];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(v,A.key,A)}}function bt(v,y){return!y||Le(y)!=="object"&&typeof y!="function"?function(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}(v):y}function Qe(v){return(Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)})(v)}function st(v,y){return(st=Object.setPrototypeOf||function(E,A){return E.__proto__=A,E})(v,y)}function Gt(v,y){var E=Object.keys(v);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(v);y&&(A=A.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),E.push.apply(E,A)}return E}function Lt(v){for(var y=1;y<arguments.length;y++){var E=arguments[y]!=null?arguments[y]:{};y%2?Gt(Object(E),!0).forEach(function(A){Ge(v,A,E[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(E)):Gt(Object(E)).forEach(function(A){Object.defineProperty(v,A,Object.getOwnPropertyDescriptor(E,A))})}return v}function Ge(v,y,E){return y in v?Object.defineProperty(v,y,{value:E,enumerable:!0,configurable:!0,writable:!0}):v[y]=E,v}function Ie(v,y){return function(E){if(Array.isArray(E))return E}(v)||function(E,A){if(Symbol.iterator in Object(E)||Object.prototype.toString.call(E)==="[object Arguments]"){var O=[],q=!0,pe=!1,et=void 0;try{for(var Bt,Zt=E[Symbol.iterator]();!(q=(Bt=Zt.next()).done)&&(O.push(Bt.value),!A||O.length!==A);q=!0);}catch(nr){pe=!0,et=nr}finally{try{q||Zt.return==null||Zt.return()}finally{if(pe)throw et}}return O}}(v,y)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ct(v){if(typeof v=="number")return[Math.abs(v),Math.abs(v)];if(Array.isArray(v)){var y=Ie(v,2),E=y[0],A=y[1];if(typeof E=="number"&&typeof A=="number")return[Math.abs(E),Math.abs(A)]}throw new Error("Expecting options.window to be an number or [number, number].")}function Ot(v){if(un(v),ct(v.window),typeof v.epoch!="number")throw new Error("Expecting options.epoch to be a number.");if(typeof v.step!="number")throw new Error("Expecting options.step to be a number.")}var zt=function(v,y,E){var A=v.length,O=nn.from(v,y).toString("hex");if(A<E){var q=new Array(E-A+1).join(O);return nn.from(q,"hex").slice(0,E).toString("hex")}return O},ht=function(v,y,E){switch(v){case i.SHA1:return zt(y,E,20);case i.SHA256:return zt(y,E,32);case i.SHA512:return zt(y,E,64);default:throw new Error("Expecting algorithm to be one of ".concat(G.join(", "),". Received ").concat(v,"."))}};function pn(v){var y=Lt({},{algorithm:i.SHA1,createDigest:ie,createHmacKey:ht,digits:6,encoding:V.ASCII,epoch:Date.now(),step:30,window:0},{},v);return Ot(y),Object.freeze(y)}function wt(v,y){var E,A;return Se(v,(E=y.epoch,A=y.step,Math.floor(E/A/1e3)),y)}function je(v,y,E,A){var O=[];if(A===0)return O;for(var q=1;q<=A;q++){var pe=y*q*E;O.push(v+pe)}return O}function mt(v,y,E){return!!ee(v)&&v===wt(y,E)}function Oe(v,y,E,A){var O=null;return v.some(function(q,pe){return!!mt(y,E,Lt({},A,{epoch:q}))&&(O=pe+1,!0)}),O}function lt(v,y,E){if(mt(v,y,E))return 0;var A,O,q,pe,et,Bt=(A=E.epoch,O=E.step,q=E.window,pe=ct(q),{current:A,past:je(A,-1,et=1e3*O,pe[0]),future:je(A,1,et,pe[1])}),Zt=Oe(Bt.past,v,y,E);return Zt!==null?-1*Zt:Oe(Bt.future,v,y,E)}function hn(v,y){return Math.floor(v/1e3)%y}function qe(v,y,E,A){return Re({algorithm:A.algorithm,digits:A.digits,step:A.step,type:J.TOTP,accountName:v,issuer:y,secret:E})}var xt=function(v){function y(){return function(O,q){if(!(O instanceof q))throw new TypeError("Cannot call a class as a function")}(this,y),bt(this,Qe(y).apply(this,arguments))}var E,A;return function(O,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(q&&q.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),q&&st(O,q)}(y,v),E=y,(A=[{key:"create",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new y(O)}},{key:"allOptions",value:function(){return pn(this.options)}},{key:"generate",value:function(O){return wt(O,this.allOptions())}},{key:"checkDelta",value:function(O,q){return lt(O,q,this.allOptions())}},{key:"check",value:function(O,q){return typeof this.checkDelta(O,q)=="number"}},{key:"verify",value:function(O){if(Le(O)!=="object")throw new Error("Expecting argument 0 of verify to be an object");return this.check(O.token,O.secret)}},{key:"timeRemaining",value:function(){var O,q,pe=this.allOptions();return O=pe.epoch,(q=pe.step)-hn(O,q)}},{key:"timeUsed",value:function(){var O=this.allOptions();return hn(O.epoch,O.step)}},{key:"keyuri",value:function(O,q,pe){return qe(O,q,pe,this.allOptions())}}])&&Mt(E.prototype,A),y}(De);function m(v){return(m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(v)}function d(v,y){for(var E=0;E<y.length;E++){var A=y[E];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(v,A.key,A)}}function p(v,y){return!y||m(y)!=="object"&&typeof y!="function"?function(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}(v):y}function _(v){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)})(v)}function k(v,y){return(k=Object.setPrototypeOf||function(E,A){return E.__proto__=A,E})(v,y)}function S(v,y){var E=Object.keys(v);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(v);y&&(A=A.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),E.push.apply(E,A)}return E}function L(v,y,E){return y in v?Object.defineProperty(v,y,{value:E,enumerable:!0,configurable:!0,writable:!0}):v[y]=E,v}function se(v){var y=function(E){for(var A=1;A<arguments.length;A++){var O=arguments[A]!=null?arguments[A]:{};A%2?S(Object(O),!0).forEach(function(q){L(E,q,O[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(O)):S(Object(O)).forEach(function(q){Object.defineProperty(E,q,Object.getOwnPropertyDescriptor(O,q))})}return E}({},{algorithm:i.SHA1,createDigest:ie,createHmacKey:ht,digits:6,encoding:V.HEX,epoch:Date.now(),step:30,window:0},{},v);return function(E){if(Ot(E),typeof E.keyDecoder!="function")throw new Error("Expecting options.keyDecoder to be a function.");if(E.keyEncoder&&typeof E.keyEncoder!="function")throw new Error("Expecting options.keyEncoder to be a function.")}(y),Object.freeze(y)}function ye(v,y){return y.keyEncoder(v,y.encoding)}function _e(v,y){return y.keyDecoder(v,y.encoding)}function be(v,y){return ye(y.createRandomBytes(v,y.encoding),y)}var me=function(v){function y(){return function(O,q){if(!(O instanceof q))throw new TypeError("Cannot call a class as a function")}(this,y),p(this,_(y).apply(this,arguments))}var E,A;return function(O,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(q&&q.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),q&&k(O,q)}(y,v),E=y,(A=[{key:"create",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new y(O)}},{key:"allOptions",value:function(){return se(this.options)}},{key:"generate",value:function(O){return function(q,pe){return wt(_e(q,pe),pe)}(O,this.allOptions())}},{key:"checkDelta",value:function(O,q){return function(pe,et,Bt){return lt(pe,_e(et,Bt),Bt)}(O,q,this.allOptions())}},{key:"encode",value:function(O){return ye(O,this.allOptions())}},{key:"decode",value:function(O){return _e(O,this.allOptions())}},{key:"generateSecret",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;return be(O,this.allOptions())}}])&&d(E.prototype,A),y}(xt),lo=c.a.lib.WordArray,kt=function(v,y,E){var A=function(pe){switch(pe){case i.SHA1:return h.a;case i.SHA256:return g.a;case i.SHA512:return w.a;default:throw new Error("Expecting argument 0 to be one of ".concat(G.join(", "),". Received ").concat(pe,"."))}}(v),O=P.a.parse(E),q=P.a.parse(y);return String(A(O,q))},Jo=r(7),uo=r.n(Jo),Xo=r(8),Zo=r.n(Xo);function po(v){return(po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(v)}r.d(o,"hotp",function(){return ho}),r.d(o,"totp",function(){return er}),r.d(o,"authenticator",function(){return tr}),(typeof window>"u"?"undefined":po(window))==="object"&&window.Buffer===void 0&&(window.Buffer=buffer.Buffer);var ho=new De({createDigest:kt}),er=new xt({createDigest:kt}),tr=new me({createDigest:kt,createRandomBytes:function(v,y){var E=lo.random(v);return nn.from(E.toString(),"hex").toString(y)},keyDecoder:function(v,y){var E=uo()(v.toUpperCase(),"RFC4648");return nn.from(E).toString(y)},keyEncoder:function(v,y){return Zo()(nn.from(v,y),"RFC4648",{padding:!1})}})}])})})(ci);var li=ci.exports;const nl={name:"AuthSecurity",mixins:[We],props:{payload:{type:Object,default:{}}},data(){return{accountDelete:!1,changePassword:!1,password:"",passwordRepeat:"",currentPassword:"",otpSecret:null,mfaEnable:!1,qrCodeHash:null,qrCodeRefreshInterval:null,poolingInterval:null,loading:!1}},async mounted(){this.isLoggedIn||this.$router.push("/login"),this.renderView==="AuthSecurity"&&(await this.getAccountSettings(),this.generateOTPQrCode())},methods:{close(){X.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})},async deleteAccountSubmit(){await this.deleteAccount()===!0&&(this.successSnack(this.ssoLang[this.appLanguage].profile_delete_account_success),setTimeout(this.$store.dispatch("logout"),1e3))},generateOTPQrCode(){const n=this.account.email;if(this.account.mfaEnabled)this.mfaEnable=!0;else{const e="Tapni",t=li.authenticator.generateSecret();this.otpSecret=t;const o=li.authenticator.keyuri(n,e,t);new ir({width:200,height:200,data:o}).append(document.getElementById("qrCodeContainer"))}},async cancelMFA(){X.$emit("ssoEvent",{name:"mfaCancel",data:!0})},async validateMFA(){if(!this.otp||this.otp.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);this.loading=!0;let n={otpToken:this.otp,otpSecret:this.otpSecret,enable:this.mfaEnable};this.mfaEnable||delete n.otpSecret;const[e,t]=await fe(Fe.setMfa(n,this.$storex));if(e)return X.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(e);t.data.success&&(this.getAccountSettings(),this.successSnack(t.data.message)),this.loading=!1},async submitChangePassword(){if(this.password.length<8)return this.errorSnack(this.ssoLang[this.appLanguage].password_8_chars);if(this.password!==this.passwordRepeat)return this.errorSnack(this.ssoLang[this.appLanguage].password_not_match);await this.newPassword({currentPassword:this.currentPassword,password:this.password,passwordRepeat:this.passwordRepeat})===!0&&(this.successSnack(this.ssoLang[this.appLanguage].password_change_success),this.changePassword=!1)}}},ol={class:"page-login content-boxed content-boxed-padding"},rl={class:"subheaderContainer full-top"},il=["src"],al=["src"],sl={class:"center-text",style:{"flex-grow":"1","text-align":"center",margin:"0","font-weight":"600"}},cl={class:"container center-text"},ll={class:"full-top"},dl={class:"settingRow"},ul={class:"firstRow"},pl={class:"ios-switch",style:{display:"inline-block"}},hl={class:"center-text half-top"},ml={class:"firstRow"},fl={class:"center-text no-margin"},gl={class:"margin-center left-text padding-left small-top"},_l={class:""},vl=["placeholder"],yl=["innerHTML"],bl={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top pointer"},wl={key:0},kl={key:1,class:"button--loading button__loader"},Cl={class:"close-text center-text half-top"},El=["innerHTML"],Tl={key:1,class:"margin-center small-top",style:{width:"100%"}},Sl={class:"left-text"},Il={key:0},Al={key:1},Rl={class:"firstRow"},Nl=["src"],Pl=["placeholder"],Ml={class:"small-text small-top-padding small-bottom"},Ll=["placeholder"],Ol={class:"small-text small-top-padding small-bottom"},zl=["placeholder"],xl={class:"small-text small-top-padding small-bottom"},Bl={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top pointer"},Ul={key:0},Dl={key:1,class:"button--loading button__loader"},jl={class:"center-text font-13 half-top half-bottom"},ql=["innerHTML"],Fl={class:"firstRow"},Vl={class:"red-text"},Hl=["src"],Kl={class:"center-text half-top"},Gl={class:"settingRow full-top"},$l={class:"firstRow"},Ql={class:"ios-switch",style:{display:"inline-block"}},Wl={class:"left-text small-top"},Yl={type:"submit",class:"button black-button button-full google-button bg-tapni-grey button-90 button-center uppercase bold full-top pointer"},Jl={key:0},Xl={key:1,class:"button--loading button__loader"},Zl={class:"small-bottom red-text"};function ed(n,e,t,o,r,i){const s=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",ol,[n.isModal?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...c)=>i.close&&i.close(...c)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},e[15]||(e[15]=[a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)]))):a.createCommentVNode("",!0),a.createElementVNode("div",rl,[n.isModal?(a.openBlock(),a.createElementBlock("div",{key:0,class:"pointer left-button",onClick:e[1]||(e[1]=c=>n.$emit("update:viewProp","AuthAccount"))},[a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,il)])):(a.openBlock(),a.createBlock(s,{key:1,to:"/account",class:"button gray-button pointer left-button"},{default:a.withCtx(()=>[a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,al)]),_:1})),a.createElementVNode("h2",sl,a.toDisplayString(n.ssoLang[n.appLanguage].security),1)]),a.createElementVNode("div",cl,[a.createElementVNode("p",null,a.toDisplayString(n.ssoLang[n.appLanguage].security_p),1),a.createElementVNode("div",ll,[a.createElementVNode("div",dl,[a.createElementVNode("div",ul,[a.createElementVNode("h4",null,a.toDisplayString(n.ssoLang[n.appLanguage].mfa_auth),1),a.createElementVNode("div",pl,[a.withDirectives(a.createElementVNode("input",{type:"checkbox",name:"ios-switch",class:"ios-switch-checkbox",id:"mfa-open-switch","onUpdate:modelValue":e[2]||(e[2]=c=>r.mfaEnable=c)},null,512),[[a.vModelCheckbox,r.mfaEnable]]),e[16]||(e[16]=a.createElementVNode("label",{class:"ios-switch-label",for:"mfa-open-switch"},null,-1))])])]),a.withDirectives(a.createElementVNode("div",hl,[e[17]||(e[17]=a.createElementVNode("div",{id:"qrCodeContainer",class:"qrCodeRounded",style:{"max-width":"100%"}},null,-1)),e[18]||(e[18]=a.createElementVNode("br",null,null,-1)),a.createElementVNode("div",{class:"settingRow",onClick:e[3]||(e[3]=c=>n.copy(r.otpSecret))},[a.createElementVNode("div",ml,[a.createElementVNode("h4",fl,a.toDisplayString(r.otpSecret),1)])]),a.createElementVNode("div",gl,[a.createElementVNode("p",_l,a.toDisplayString(n.ssoLang[n.appLanguage].mfa_auth_qr),1)])],512),[[a.vShow,r.mfaEnable&&!n.account.mfaEnabled]]),n.account.mfaEnabled!==r.mfaEnable?(a.openBlock(),a.createElementBlock("form",{key:0,onSubmit:e[6]||(e[6]=a.withModifiers((...c)=>i.validateMFA&&i.validateMFA(...c),["prevent"])),class:"half-top"},[a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("input",{type:"text","onUpdate:modelValue":e[4]||(e[4]=c=>n.otp=c),placeholder:n.ssoLang[n.appLanguage].otp_code,class:"edit-input h-40 lh-40",style:{margin:"0 auto",height:"25px",width:"100%"},required:"",onKeydown:e[5]||(e[5]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"]))},null,40,vl),[[a.vModelText,n.otp]]),a.createElementVNode("p",{class:"small-top full-bottom padding-left left-text",innerHTML:n.ssoLang[n.appLanguage].otp_subtitle},null,8,yl)]),a.createElementVNode("button",bl,[r.loading?(a.openBlock(),a.createElementBlock("span",kl)):(a.openBlock(),a.createElementBlock("span",wl,a.toDisplayString(n.ssoLang[n.appLanguage].continue),1))]),a.createElementVNode("p",Cl,[a.createElementVNode("span",{innerHTML:n.ssoLang[n.appLanguage].otp_p1},null,8,El),e[19]||(e[19]=a.createElementVNode("a",{href:"mailto:support@tapni.com?subject=MFA Authentication Problem"}," support@tapni.com",-1))])],32)):(a.openBlock(),a.createElementBlock("div",Tl,[a.createElementVNode("div",Sl,[r.mfaEnable?(a.openBlock(),a.createElementBlock("p",Il,a.toDisplayString(n.ssoLang[n.appLanguage].mfa_auth_enabled),1)):(a.openBlock(),a.createElementBlock("p",Al,a.toDisplayString(n.ssoLang[n.appLanguage].mfa_auth_p),1))])])),a.createElementVNode("div",{class:"settingRow full-top",onClick:e[7]||(e[7]=c=>r.changePassword=!r.changePassword)},[a.createElementVNode("div",Rl,[a.createElementVNode("h4",null,a.toDisplayString(n.ssoLang[n.appLanguage].change_password),1),a.createElementVNode("img",{class:a.normalizeClass(["transition-icon",{"rotate-icon":!!r.changePassword}]),src:n.getIcon("arrow-gray-down.svg")},null,10,Nl)])]),a.withDirectives(a.createElementVNode("form",{onSubmit:e[11]||(e[11]=a.withModifiers((...c)=>i.submitChangePassword&&i.submitChangePassword(...c),["prevent"])),class:"center-text half-top"},[a.withDirectives(a.createElementVNode("input",{type:"password","onUpdate:modelValue":e[8]||(e[8]=c=>r.currentPassword=c),placeholder:n.ssoLang[n.appLanguage].password_current_p,class:"edit-input h-40 lh-40",required:"",minlength:"8",style:{width:"100%"}},null,8,Pl),[[a.vModelText,r.currentPassword]]),a.createElementVNode("p",Ml,a.toDisplayString(n.ssoLang[n.appLanguage].password_current),1),a.withDirectives(a.createElementVNode("input",{type:"password","onUpdate:modelValue":e[9]||(e[9]=c=>r.password=c),placeholder:n.ssoLang[n.appLanguage].password_new_p,class:"bg-white edit-input h-40 lh-40",required:"",minlength:"8",style:{width:"100%"}},null,8,Ll),[[a.vModelText,r.password]]),a.createElementVNode("p",Ol,a.toDisplayString(n.ssoLang[n.appLanguage].password_new),1),a.withDirectives(a.createElementVNode("input",{type:"password","onUpdate:modelValue":e[10]||(e[10]=c=>r.passwordRepeat=c),placeholder:n.ssoLang[n.appLanguage].password_new_repeat_p,class:"edit-input h-40 lh-40",required:"",minlength:"8",style:{width:"100%"}},null,8,zl),[[a.vModelText,r.passwordRepeat]]),a.createElementVNode("p",xl,a.toDisplayString(n.ssoLang[n.appLanguage].password_new_repeat),1),a.createElementVNode("button",Bl,[r.loading?(a.openBlock(),a.createElementBlock("span",Dl)):(a.openBlock(),a.createElementBlock("span",Ul,a.toDisplayString(n.ssoLang[n.appLanguage].password_update),1))]),a.createElementVNode("p",jl,[a.createElementVNode("span",{innerHTML:n.ssoLang[n.appLanguage].password_reset},null,8,ql),a.createVNode(s,{to:"/reset",exact:"",class:"color-black"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(n.ssoLang[n.appLanguage].by_clicking_here),1)]),_:1})])],544),[[a.vShow,r.changePassword]]),a.createElementVNode("div",{class:"settingRow full-top",onClick:e[12]||(e[12]=c=>r.accountDelete=!r.accountDelete)},[a.createElementVNode("div",Fl,[a.createElementVNode("h4",Vl,a.toDisplayString(n.ssoLang[n.appLanguage].delete_account),1),a.createElementVNode("img",{class:a.normalizeClass(["transition-icon",{"rotate-icon":!!r.accountDelete}]),src:n.getIcon("arrow-gray-down.svg")},null,10,Hl)])]),a.withDirectives(a.createElementVNode("div",Kl,[a.createElementVNode("div",Gl,[a.createElementVNode("div",$l,[a.createElementVNode("h4",null,a.toDisplayString(n.ssoLang[n.appLanguage].active_account),1),a.createElementVNode("div",Ql,[a.withDirectives(a.createElementVNode("input",{type:"checkbox",name:"ios-switch",class:"ios-switch-checkbox",id:"active-open-switch","onUpdate:modelValue":e[13]||(e[13]=c=>n.account.is_active=c)},null,512),[[a.vModelCheckbox,n.account.is_active]]),e[20]||(e[20]=a.createElementVNode("label",{class:"ios-switch-label",for:"active-open-switch"},null,-1))])])]),a.createElementVNode("p",Wl,a.toDisplayString(n.ssoLang[n.appLanguage].active_account_p),1),a.createElementVNode("form",{onSubmit:e[14]||(e[14]=a.withModifiers((...c)=>i.deleteAccountSubmit&&i.deleteAccountSubmit(...c),["prevent"]))},[a.createElementVNode("button",Yl,[r.loading?(a.openBlock(),a.createElementBlock("span",Xl)):(a.openBlock(),a.createElementBlock("span",Jl,a.toDisplayString(n.ssoLang[n.appLanguage].permanent_delete),1))]),a.createElementVNode("p",Zl,a.toDisplayString(n.ssoLang[n.appLanguage].permanent_delete_p),1)],32)],512),[[a.vShow,r.accountDelete]])])])])}const Ko=nt(nl,[["render",ed],["__scopeId","data-v-64ae2517"]]),td=Object.freeze(Object.defineProperty({__proto__:null,default:Ko},Symbol.toStringTag,{value:"Module"})),nd={name:"AuthBilling",mixins:[We],props:{payload:{type:Object,default:{}}},data(){return{loading:!1,subscriptions:[],showCancelModal:!1,selectedSubscription:null,cancelFeedback:""}},async mounted(){this.isLoggedIn||this.$router.push("/login"),await this.getAccountSettings(),this.loadSubscriptions()},methods:{close(){X.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})},loadSubscriptions(){if(this.account.billing){const n=this.account.billing,e=[];for(const t in n)t!=="region"&&t!=="currency"&&t!=="paymentProfiles"&&typeof n[t]=="object"&&n[t].subscriptionId&&e.push(n[t]);this.subscriptions=e}},formatCurrency(n,e){return`${{EUR:"€",USD:"$",GBP:"£"}[e==null?void 0:e.toUpperCase()]||e||""}${(n==null?void 0:n.toFixed(2))||"0.00"}`},formatInterval(n){return n?`per ${n}`:""},formatDate(n){return n?new Date(n*1e3).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):""},getStatusText(n){return{trialing:"Trial",active:"Active",past_due:"Past Due",canceled:"Canceled",unpaid:"Unpaid"}[n]||n},getStatusClass(n){return`status-${n}`},openCancelModal(n){this.selectedSubscription=n,this.showCancelModal=!0,this.cancelFeedback=""},closeCancelModal(){this.showCancelModal=!1,this.selectedSubscription=null,this.cancelFeedback=""},async confirmCancel(){var n,e;if(this.selectedSubscription){if(this.selectedSubscription.paymentGateway==="revenuecat"){X.$emit("ssoEvent",{name:"subscriptionCancelled",data:{subscriptionId:this.selectedSubscription.subscriptionId,paymentGateway:this.selectedSubscription.paymentGateway,feedback:this.cancelFeedback}}),this.closeCancelModal();return}this.loading=!0;try{const t=await ce(!1,"v2").post("checkout/cancel/"+this.selectedSubscription.subscriptionId,{feedback:this.cancelFeedback});if(t.data.success)X.$emit("showToast",{type:"success",message:"Subscription canceled successfully"}),await this.getAccountSettings(),this.loadSubscriptions(),this.closeCancelModal();else throw new Error(t.data.message||"Failed to cancel subscription")}catch(t){console.error("Error canceling subscription:",t),X.$emit("showToast",{type:"error",message:((e=(n=t.response)==null?void 0:n.data)==null?void 0:e.message)||"Failed to cancel subscription. Please try again."})}finally{this.loading=!1}}}}},od={class:"page-login content-boxed content-boxed-padding tapni-auth-billing"},rd={class:"subheaderContainer full-top"},id=["src"],ad=["src"],sd={class:"center-text",style:{"flex-grow":"1","text-align":"center",margin:"0","font-weight":"600"}},cd={class:"container left-text"},ld={class:"center-text"},dd={class:"full-top"},ud={key:0,class:"no-subscriptions center-text full-top"},pd={key:1},hd={class:"subscription-header"},md={class:"subscription-info"},fd={class:"subscription-name"},gd={class:"subscription-details"},_d={class:"detail-row"},vd={class:"detail-value"},yd={class:"detail-row"},bd={class:"detail-value"},wd={class:"detail-row"},kd={class:"detail-value"},Cd={key:0,class:"detail-row"},Ed={class:"detail-value"},Td={key:1,class:"detail-row"},Sd={class:"detail-value"},Id={key:0,class:"subscription-actions"},Ad=["onClick","disabled"],Rd={class:"modal-content"},Nd={class:"modal-header"},Pd={class:"modal-body"},Md={class:"modal-text"},Ld={class:"feedback-section"},Od={class:"modal-footer"},zd=["disabled"];function xd(n,e,t,o,r,i){var c;const s=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",od,[n.isModal?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...l)=>i.close&&i.close(...l)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},e[7]||(e[7]=[a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)]))):a.createCommentVNode("",!0),a.createElementVNode("div",rd,[n.isModal?(a.openBlock(),a.createElementBlock("div",{key:0,class:"pointer left-button",onClick:e[1]||(e[1]=l=>n.$emit("update:viewProp","AuthAccount"))},[a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,id)])):(a.openBlock(),a.createBlock(s,{key:1,to:"/account",class:"button gray-button pointer left-button"},{default:a.withCtx(()=>[a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,ad)]),_:1})),a.createElementVNode("h2",sd,a.toDisplayString(n.ssoLang[n.appLanguage].billing),1)]),a.createElementVNode("div",cd,[a.createElementVNode("p",ld,a.toDisplayString(n.ssoLang[n.appLanguage].billing_p),1),a.createElementVNode("div",dd,[r.subscriptions.length===0?(a.openBlock(),a.createElementBlock("div",ud,e[8]||(e[8]=[a.createElementVNode("p",{class:"gray-text"},"There are no active subscriptions at this point.",-1)]))):(a.openBlock(),a.createElementBlock("div",pd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.subscriptions,l=>(a.openBlock(),a.createElementBlock("div",{key:l.subscriptionId,class:"subscription-card half-bottom"},[a.createElementVNode("div",hd,[a.createElementVNode("div",md,[a.createElementVNode("h3",fd,a.toDisplayString(l.subscriptionName),1),a.createElementVNode("span",{class:a.normalizeClass(["subscription-status",i.getStatusClass(l.status)])},a.toDisplayString(i.getStatusText(l.status)),3)])]),a.createElementVNode("div",gd,[a.createElementVNode("div",_d,[e[9]||(e[9]=a.createElementVNode("span",{class:"detail-label"},"Amount:",-1)),a.createElementVNode("span",vd,a.toDisplayString(i.formatCurrency(l.amount,l.currency)),1)]),a.createElementVNode("div",yd,[e[10]||(e[10]=a.createElementVNode("span",{class:"detail-label"},"Billing:",-1)),a.createElementVNode("span",bd,a.toDisplayString(i.formatInterval(l.interval)),1)]),a.createElementVNode("div",wd,[e[11]||(e[11]=a.createElementVNode("span",{class:"detail-label"},"Licenses:",-1)),a.createElementVNode("span",kd,a.toDisplayString(l.licenses),1)]),l.isTrial?(a.openBlock(),a.createElementBlock("div",Cd,[e[12]||(e[12]=a.createElementVNode("span",{class:"detail-label"},"Trial Ends:",-1)),a.createElementVNode("span",Ed,a.toDisplayString(i.formatDate(l.trialEnd)),1)])):l.endDate?(a.openBlock(),a.createElementBlock("div",Td,[e[13]||(e[13]=a.createElementVNode("span",{class:"detail-label"},"Next Billing:",-1)),a.createElementVNode("span",Sd,a.toDisplayString(i.formatDate(l.endDate)),1)])):a.createCommentVNode("",!0)]),l.status!=="canceled"?(a.openBlock(),a.createElementBlock("div",Id,[a.createElementVNode("button",{onClick:h=>i.openCancelModal(l),class:"cancel-button",disabled:r.loading},a.toDisplayString(r.loading?"Processing...":"Cancel Subscription"),9,Ad)])):a.createCommentVNode("",!0)]))),128))]))])]),r.showCancelModal?(a.openBlock(),a.createElementBlock("div",{key:1,class:"modal-overlay",onClick:e[6]||(e[6]=a.withModifiers((...l)=>i.closeCancelModal&&i.closeCancelModal(...l),["self"]))},[a.createElementVNode("div",Rd,[a.createElementVNode("div",Nd,[e[14]||(e[14]=a.createElementVNode("h3",null,"Cancel Subscription",-1)),a.createElementVNode("button",{onClick:e[2]||(e[2]=(...l)=>i.closeCancelModal&&i.closeCancelModal(...l)),class:"close-button"},"×")]),a.createElementVNode("div",Pd,[a.createElementVNode("p",Md,[e[15]||(e[15]=a.createTextVNode(" Are you sure you want to cancel your subscription to ")),a.createElementVNode("b",null,a.toDisplayString((c=r.selectedSubscription)==null?void 0:c.subscriptionName),1),e[16]||(e[16]=a.createTextVNode("? "))]),a.createElementVNode("div",Ld,[e[17]||(e[17]=a.createElementVNode("label",{class:"feedback-label"},"We'd love to know why you're canceling (optional):",-1)),a.withDirectives(a.createElementVNode("textarea",{"onUpdate:modelValue":e[3]||(e[3]=l=>r.cancelFeedback=l),class:"feedback-textarea",placeholder:"Your feedback helps us improve our service...",rows:"4"},null,512),[[a.vModelText,r.cancelFeedback]])])]),a.createElementVNode("div",Od,[a.createElementVNode("button",{onClick:e[4]||(e[4]=(...l)=>i.closeCancelModal&&i.closeCancelModal(...l)),class:"button-secondary"}," Keep Subscription "),a.createElementVNode("button",{onClick:e[5]||(e[5]=(...l)=>i.confirmCancel&&i.confirmCancel(...l)),class:"button-danger",disabled:r.loading},a.toDisplayString(r.loading?"Canceling...":"Confirm Cancellation"),9,zd)])])])):a.createCommentVNode("",!0)])}const Go=nt(nd,[["render",xd]]),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Go},Symbol.toStringTag,{value:"Module"}));(function(){try{if(typeof document<"u"){var n=document.createElement("style");n.appendChild(document.createTextNode('@keyframes spinner-circle-animation-ed866313{0%,39%,to{opacity:0}40%{opacity:1}}.spinner[data-v-ed866313]{position:relative;width:var(--vs-spinner-size);height:var(--vs-spinner-size);margin:0;padding:0}.spinner-circle[data-v-ed866313]{width:100%;height:100%;position:absolute;left:0;top:0}.spinner-circle[data-v-ed866313]:before{content:"";display:block;margin:0 auto;width:15%;height:15%;background-color:var(--vs-spinner-color);border-radius:100%;-webkit-animation:spinner-circle-animation-ed866313 1.2s infinite ease-in-out both;animation:spinner-circle-animation-ed866313 1.2s infinite ease-in-out both}.spinner-circle[data-v-ed866313]:nth-child(2){transform:rotate(30deg)}.spinner-circle[data-v-ed866313]:nth-child(3){transform:rotate(60deg)}.spinner-circle[data-v-ed866313]:nth-child(4){transform:rotate(90deg)}.spinner-circle[data-v-ed866313]:nth-child(5){transform:rotate(120deg)}.spinner-circle[data-v-ed866313]:nth-child(6){transform:rotate(150deg)}.spinner-circle[data-v-ed866313]:nth-child(7){transform:rotate(180deg)}.spinner-circle[data-v-ed866313]:nth-child(8){transform:rotate(210deg)}.spinner-circle[data-v-ed866313]:nth-child(9){transform:rotate(240deg)}.spinner-circle[data-v-ed866313]:nth-child(10){transform:rotate(270deg)}.spinner-circle[data-v-ed866313]:nth-child(11){transform:rotate(300deg)}.spinner-circle[data-v-ed866313]:nth-child(12){transform:rotate(330deg)}.spinner-circle[data-v-ed866313]:nth-child(2):before{animation-delay:-1.1s}.spinner-circle[data-v-ed866313]:nth-child(3):before{animation-delay:-1s}.spinner-circle[data-v-ed866313]:nth-child(4):before{animation-delay:-.9s}.spinner-circle[data-v-ed866313]:nth-child(5):before{animation-delay:-.8s}.spinner-circle[data-v-ed866313]:nth-child(6):before{animation-delay:-.7s}.spinner-circle[data-v-ed866313]:nth-child(7):before{animation-delay:-.6s}.spinner-circle[data-v-ed866313]:nth-child(8):before{animation-delay:-.5s}.spinner-circle[data-v-ed866313]:nth-child(9):before{animation-delay:-.4s}.spinner-circle[data-v-ed866313]:nth-child(10):before{animation-delay:-.3s}.spinner-circle[data-v-ed866313]:nth-child(11):before{animation-delay:-.2s}.spinner-circle[data-v-ed866313]:nth-child(12):before{animation-delay:-.1s}:root{--vs-input-bg: #fff;--vs-input-outline: #3b82f6;--vs-input-placeholder-color: #52525b;--vs-padding: .25rem .5rem;--vs-border: 1px solid #e4e4e7;--vs-border-radius: 4px;--vs-font-size: 16px;--vs-font-weight: 400;--vs-font-family: inherit;--vs-text-color: #18181b;--vs-line-height: 1.5;--vs-menu-offset-top: 8px;--vs-menu-height: 200px;--vs-menu-padding: 0;--vs-menu-border: 1px solid #e4e4e7;--vs-menu-bg: #fff;--vs-menu-box-shadow: none;--vs-menu-z-index: 2;--vs-option-padding: 8px 12px;--vs-option-font-size: var(--vs-font-size);--vs-option-font-weight: var(--vs-font-weight);--vs-option-text-color: var(--vs-text-color);--vs-option-bg: var(--vs-menu-bg);--vs-option-hover-color: #dbeafe;--vs-option-focused-color: var(--vs-option-hover-color);--vs-option-selected-color: #93c5fd;--vs-option-disabled-color: #f4f4f5;--vs-option-disabled-text-color: #52525b;--vs-multi-value-gap: 0px;--vs-multi-value-padding: 4px;--vs-multi-value-margin: 4px 0px 4px 6px;--vs-multi-value-font-size: 14px;--vs-multi-value-font-weight: 400;--vs-multi-value-line-height: 1;--vs-multi-value-text-color: #3f3f46;--vs-multi-value-bg: #f4f4f5;--vs-multi-value-xmark-size: 16px;--vs-multi-value-xmark-color: var(--vs-multi-value-text-color);--vs-indicators-gap: 4px;--vs-icon-size: 20px;--vs-icon-color: var(--vs-text-color);--vs-spinner-color: var(--vs-text-color);--vs-spinner-size: 20px;--vs-dropdown-transition: transform .25s ease-out}.vue-select[data-v-7f19f42a]{position:relative;box-sizing:border-box;width:100%}.vue-select[data-v-7f19f42a] *{box-sizing:border-box}.vue-select.open .single-value[data-v-7f19f42a]{position:absolute;opacity:.4}.vue-select.open .dropdown-icon[data-v-7f19f42a]{transform:rotate(180deg)}.vue-select.typing .single-value[data-v-7f19f42a]{opacity:0}.control[data-v-7f19f42a]{display:flex;min-height:32px;border:var(--vs-border);border-radius:var(--vs-border-radius);background-color:var(--vs-input-bg)}.control.focused[data-v-7f19f42a]{box-shadow:0 0 0 1px var(--vs-input-outline);border-color:var(--vs-input-outline)}.value-container[data-v-7f19f42a]{position:relative;display:flex;flex-wrap:wrap;align-items:center;flex-basis:100%;flex-grow:1}.value-container.multi[data-v-7f19f42a]{gap:var(--vs-multi-value-gap)}.single-value[data-v-7f19f42a]{display:flex;align-items:center;padding:var(--vs-padding);font-size:var(--vs-font-size);font-weight:var(--vs-font-weight);font-family:var(--vs-font-family);line-height:var(--vs-line-height);color:var(--vs-text-color);z-index:0}.multi-value[data-v-7f19f42a]{appearance:none;display:flex;align-items:center;gap:var(--vs-multi-value-gap);padding:var(--vs-multi-value-padding);margin:var(--vs-multi-value-margin);border:0;font-size:var(--vs-multi-value-font-size);font-weight:var(--vs-multi-value-font-weight);color:var(--vs-multi-value-text-color);line-height:var(--vs-multi-value-line-height);background:var(--vs-multi-value-bg);outline:none;cursor:pointer}.multi-value svg[data-v-7f19f42a]{width:var(--vs-multi-value-xmark-size);height:var(--vs-multi-value-xmark-size);fill:var(--vs-multi-value-xmark-color)}.search-input[data-v-7f19f42a]{appearance:none;display:inline-block;max-width:100%;flex-grow:1;width:0;margin:0;padding:0;border:0;background:none;padding:var(--vs-padding);font-size:var(--vs-font-size);font-family:var(--vs-font-family);line-height:var(--vs-line-height);color:var(--vs-text-color);outline:none;z-index:1}.search-input[data-v-7f19f42a]::placeholder{color:var(--vs-input-placeholder-color)}.indicators-container[data-v-7f19f42a]{display:flex;align-items:center;flex-shrink:0;gap:var(--vs-indicators-gap);padding:var(--vs-padding)}.clear-button[data-v-7f19f42a]{appearance:none;display:inline-block;padding:0;margin:0;border:0;width:var(--vs-icon-size);height:var(--vs-icon-size);color:var(--vs-icon-color);background:none;outline:none;cursor:pointer}.dropdown-icon[data-v-7f19f42a]{appearance:none;display:inline-block;padding:0;margin:0;border:0;width:var(--vs-icon-size);height:var(--vs-icon-size);color:var(--vs-icon-color);background:none;outline:none;cursor:pointer;transition:var(--vs-dropdown-transition)}.menu[data-v-7f19f42a]{position:absolute;left:0;right:0;padding:var(--vs-menu-padding);margin-top:var(--vs-menu-offset-top);max-height:var(--vs-menu-height);overflow-y:auto;border:var(--vs-menu-border);border-radius:var(--vs-border-radius);box-shadow:var(--vs-menu-box-shadow);background-color:var(--vs-menu-bg);z-index:var(--vs-menu-z-index)}.menu-option[data-v-7f19f42a]{display:flex;width:100%;border:0;margin:0;padding:var(--vs-option-padding);font-size:var(--vs-option-font-size);font-weight:var(--vs-option-font-weight);font-family:var(--vs-font-family);color:var(--vs-option-text-color);background-color:var(--vs-option-bg);text-align:-webkit-auto;cursor:pointer}.menu-option[data-v-7f19f42a]:hover{background-color:var(--vs-option-hover-color)}.menu-option.focused[data-v-7f19f42a]{background-color:var(--vs-option-focused-color)}.menu-option.selected[data-v-7f19f42a]{background-color:var(--vs-option-selected-color)}.menu-option.disabled[data-v-7f19f42a]{background-color:var(--vs-option-disabled-color);color:var(--vs-option-disabled-text-color)}.no-results[data-v-7f19f42a]{padding:var(--vs-option-padding);font-size:var(--vs-font-size);font-family:var(--vs-font-family);color:var(--vs-text-color)}')),document.head.appendChild(n)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const co=(n,e)=>{const t=n.__vccOpts||n;for(const[o,r]of e)t[o]=r;return t},Ud={},Dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"};function jd(n,e){return a.openBlock(),a.createElementBlock("svg",Dd,e[0]||(e[0]=[a.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"},null,-1)]))}const qd=co(Ud,[["render",jd]]),Fd={},Vd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"};function Hd(n,e){return a.openBlock(),a.createElementBlock("svg",Vd,e[0]||(e[0]=[a.createElementVNode("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"},null,-1)]))}const di=co(Fd,[["render",Hd]]),Kd=["aria-disabled","aria-selected"],Gd=a.defineComponent({__name:"MenuOption",props:{menu:{},index:{},isFocused:{type:Boolean},isSelected:{type:Boolean},isDisabled:{type:Boolean}},emits:["select"],setup(n,{emit:e}){const t=n,o=e,r=a.ref(null);return a.watch(()=>t.isFocused,()=>{if(t.isFocused&&t.menu){const i=t.menu.children[t.index],s=i.offsetTop,c=s+i.clientHeight,l=t.menu.scrollTop,h=t.menu.clientHeight;s<l?t.menu.scrollTop=s:c>l+h&&(t.menu.scrollTop=c-h)}}),(i,s)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"option",ref:r,tabindex:"-1",role:"option",class:a.normalizeClass({focused:i.isFocused,selected:i.isSelected,disabled:i.isDisabled}),"aria-disabled":i.isDisabled,"aria-selected":i.isSelected,onClick:s[0]||(s[0]=c=>o("select")),onKeydown:s[1]||(s[1]=a.withKeys(c=>o("select"),["enter"]))},[a.renderSlot(i.$slots,"default")],42,Kd))}}),$d={},Qd={className:"spinner"};function Wd(n,e){return a.openBlock(),a.createElementBlock("div",Qd,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(12,t=>a.createElementVNode("div",{key:t,class:"spinner-circle"})),64))])}const Yd=co($d,[["render",Wd],["__scopeId","data-v-ed866313"]]),Jd=["aria-expanded","aria-describedby","aria-description","aria-labelledby","aria-label","aria-required"],Xd=["onClick"],Zd=["id","disabled","placeholder"],eu={class:"indicators-container"},tu=["disabled"],nu=["disabled"],ou=["aria-label","aria-multiselectable"],ru={key:0,class:"no-results"},iu={name:"AuthGeneral",mixins:[We],components:{VueSelect:co(a.defineComponent({__name:"Select",props:a.mergeModels({options:{},displayedOptions:{},placeholder:{default:"Select an option"},isClearable:{type:Boolean,default:!0},isDisabled:{type:Boolean,default:!1},isSearchable:{type:Boolean,default:!0},isMulti:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},shouldAutofocusOption:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},teleport:{default:void 0},inputId:{default:void 0},aria:{default:void 0},filterBy:{type:Function,default:(n,e,t)=>e.toLowerCase().includes(t.toLowerCase())},getOptionLabel:{type:Function,default:n=>n.label},getMultiValueLabel:{type:Function,default:n=>n.label}},{modelValue:{required:!0,validator:(n,e)=>e.isMulti?Array.isArray(n):!Array.isArray(n)},modelModifiers:{}}),emits:a.mergeModels(["optionSelected","optionDeselected","search"],["update:modelValue"]),setup(n,{emit:e}){const t=n,o=e,r=a.useModel(n,"modelValue"),i=a.ref(null),s=a.ref(null),c=a.ref(null),l=a.ref(""),h=a.ref(!1),u=a.ref(-1),g=a.computed(()=>{const I=t.displayedOptions||t.options,W=ie=>ie.filter(ee=>!r.value.includes(ee.value));if(t.isSearchable&&l.value){const ie=I.filter(ee=>{const ve=t.isMulti?t.getMultiValueLabel(ee):t.getOptionLabel(ee);return t.filterBy(ee,ve,l.value)});return t.isMulti?W(ie):ie}return t.isMulti?W(I):I}),f=a.computed(()=>{if(t.isMulti&&Array.isArray(r.value))return r.value.map(W=>t.options.find(ie=>ie.value===W));t.isMulti&&!Array.isArray(r.value)&&console.warn(`[vue3-select-component warn]: The v-model provided should be an array when using \`isMulti\` prop, instead it was: ${r.value}`);const I=t.options.find(W=>W.value===r.value);return I?[I]:[]}),w=I=>{h.value=!0,t.shouldAutofocusOption&&(u.value=t.options.findIndex(W=>!W.disabled)),I!=null&&I.focusInput&&s.value&&s.value.focus()},C=()=>{h.value=!1,l.value=""},P=()=>{h.value?C():w()},M=I=>{I.disabled||(t.isMulti?r.value.push(I.value):r.value=I.value,o("optionSelected",I),l.value="",t.closeOnSelect&&(h.value=!1),s.value&&s.value.blur())},j=I=>{t.isMulti&&!t.isDisabled&&(r.value=r.value.filter(W=>W!==I.value),o("optionDeselected",I))},N=()=>{t.isMulti?(r.value=[],o("optionDeselected",null)):(r.value=void 0,o("optionDeselected",f.value[0])),h.value=!1,l.value="",s.value&&s.value.blur()},T=I=>{if(h.value){const W=u.value;if(I.key==="ArrowDown"){I.preventDefault();const ee=g.value.findIndex((Re,le)=>!Re.disabled&&le>W),ve=g.value.findIndex(Re=>!Re.disabled);u.value=ee===-1?ve:ee}if(I.key==="ArrowUp"){I.preventDefault();const ee=g.value.reduce((Re,le,Me)=>!le.disabled&&Me<W?Me:Re,-1),ve=g.value.reduce((Re,le,Me)=>le.disabled?Re:Me,-1);u.value=ee===-1?ve:ee}if(I.key==="Enter"){const ee=g.value[W];I.preventDefault(),ee&&M(ee)}if(I.code==="Space"&&l.value.length===0){const ee=g.value[W];I.preventDefault(),ee&&M(ee)}I.key==="Escape"&&(I.preventDefault(),h.value=!1,l.value="");const ie=t.isMulti?r.value.length>0:!!r.value;I.key==="Backspace"&&l.value.length===0&&ie&&(I.preventDefault(),t.isMulti?r.value=r.value.slice(0,-1):r.value=void 0)}},B=I=>{!h.value&&l.value.length===0&&(I.preventDefault(),I.stopImmediatePropagation(),w())},V=I=>{I.key==="Tab"?C():I.key==="Space"&&B(I)},G=I=>{i.value&&!i.value.contains(I.target)&&(h.value=!1,l.value="")},J=()=>{if(i.value){const I=i.value.getBoundingClientRect();return{left:`${I.x}px`,top:`${I.y+I.height}px`}}return console.warn("Unable to calculate dynamic menu position because of missing internal DOM reference."),{top:"0px",left:"0px"}};return a.watch(()=>l.value,()=>{o("search",l.value),l.value&&!h.value&&w()}),a.onMounted(()=>{document.addEventListener("click",G),document.addEventListener("keydown",T)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",G),document.removeEventListener("keydown",T)}),(I,W)=>{var ie,ee,ve,Re;return a.openBlock(),a.createElementBlock("div",{ref_key:"container",ref:i,dir:"auto",class:a.normalizeClass(["vue-select",{open:h.value,typing:h.value&&l.value.length>0,disabled:I.isDisabled}])},[a.createElementVNode("div",{class:a.normalizeClass(["control",{focused:h.value}])},[a.createElementVNode("div",{class:a.normalizeClass(["value-container",{multi:I.isMulti}]),role:"combobox","aria-expanded":h.value,"aria-describedby":I.placeholder,"aria-description":I.placeholder,"aria-labelledby":(ie=I.aria)==null?void 0:ie.labelledby,"aria-label":f.value.length?f.value.map(I.isMulti?I.getMultiValueLabel:I.getOptionLabel).join(", "):"","aria-required":(ee=I.aria)==null?void 0:ee.required},[!t.isMulti&&f.value[0]?(a.openBlock(),a.createElementBlock("div",{key:0,class:"single-value",onClick:W[0]||(W[0]=le=>t.isDisabled?null:w({focusInput:!0}))},[a.renderSlot(I.$slots,"value",{option:f.value[0]},()=>[a.createTextVNode(a.toDisplayString(I.getOptionLabel(f.value[0])),1)],!0)])):a.createCommentVNode("",!0),t.isMulti&&f.value.length?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(f.value,le=>a.renderSlot(I.$slots,"tag",{key:le.value,option:le,removeOption:()=>j(le)},()=>[a.createElementVNode("button",{type:"button",class:"multi-value",onClick:Me=>j(le)},[a.createTextVNode(a.toDisplayString(I.getMultiValueLabel(le)),1),a.createVNode(di)],8,Xd)],!0)),128)):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("input",{id:I.inputId,ref_key:"input",ref:s,"onUpdate:modelValue":W[1]||(W[1]=le=>l.value=le),class:"search-input",type:"text","aria-autocomplete":"list",autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:"false",tabindex:"0",disabled:I.isDisabled,placeholder:f.value.length===0?I.placeholder:"",onMousedown:W[2]||(W[2]=le=>w()),onKeydown:V},null,40,Zd),[[a.vModelText,l.value]])],10,Jd),a.createElementVNode("div",eu,[f.value.length>0&&I.isClearable&&!I.isLoading?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:"clear-button",tabindex:"-1",disabled:I.isDisabled,onClick:N},[a.renderSlot(I.$slots,"clear",{},()=>[a.createVNode(di)],!0)],8,tu)):a.createCommentVNode("",!0),I.isLoading?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",class:"dropdown-icon",tabindex:"-1",disabled:I.isDisabled,onClick:P},[a.renderSlot(I.$slots,"dropdown",{},()=>[a.createVNode(qd)],!0)],8,nu)),a.renderSlot(I.$slots,"loading",{},()=>[I.isLoading?(a.openBlock(),a.createBlock(Yd,{key:0})):a.createCommentVNode("",!0)],!0)])],2),(a.openBlock(),a.createBlock(a.Teleport,{to:I.teleport,disabled:!I.teleport,defer:!0},[h.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"menu",ref:c,class:"menu",role:"listbox","aria-label":(ve=I.aria)==null?void 0:ve.labelledby,"aria-multiselectable":I.isMulti,style:a.normalizeStyle({width:t.teleport?`${(Re=i.value)==null?void 0:Re.getBoundingClientRect().width}px`:"100%",top:t.teleport?J().top:"unset",left:t.teleport?J().left:"unset"})},[a.renderSlot(I.$slots,"menu-header",{},void 0,!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(g.value,(le,Me)=>(a.openBlock(),a.createBlock(Gd,{key:Me,type:"button",class:a.normalizeClass(["menu-option",{focused:u.value===Me,selected:le.value===r.value}]),menu:c.value,index:Me,"is-focused":u.value===Me,"is-selected":le.value===r.value,"is-disabled":le.disabled||!1,onSelect:yt=>M(le)},{default:a.withCtx(()=>[a.renderSlot(I.$slots,"option",{option:le},()=>[a.createTextVNode(a.toDisplayString(I.getOptionLabel(le)),1)],!0)]),_:2},1032,["class","menu","index","is-focused","is-selected","is-disabled","onSelect"]))),128)),g.value.length===0?(a.openBlock(),a.createElementBlock("div",ru,[a.renderSlot(I.$slots,"no-options",{},()=>[W[3]||(W[3]=a.createTextVNode(" No results found "))],!0)])):a.createCommentVNode("",!0)],12,ou)):a.createCommentVNode("",!0)],8,["to","disabled"]))],2)}}}),[["__scopeId","data-v-7f19f42a"]])},props:{isModal:{type:Boolean,default:!1},payload:{type:Object,default:{}}},data(){return{loading:!1}},watch:{"account.lang":{handler(n){n&&(this.updateLang(n),this.display==="npm"&&this.$store.commit("setLanguage",n))},immediate:!0}},async mounted(){this.isLoggedIn||this.$router.push("/login"),await this.getAccountSettings()},methods:{close(){X.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})},async submitGeneralUpdate(){var o;this.loading=!0;const n={name:this.account.name,lang:this.account.lang,email:this.account.email,region:(o=this.account.billing)==null?void 0:o.region},[e,t]=await fe(In.updateAccount(n));e?this.errorHandler(e):t.data.success&&(this.successSnack(this.ssoLang[this.appLanguage].profile_update_success),await this.getAccountSettings()),this.loading=!1}}},au={class:"page-login content-boxed content-boxed-padding tapni-auth-general"},su={class:"subheaderContainer full-top"},cu=["src"],lu=["src"],du={class:"center-text",style:{"flex-grow":"1","text-align":"center",margin:"0","font-weight":"600"}},uu={class:"container left-text"},pu={class:"center-text"},hu={class:"full-top bold small-bottom"},mu=["placeholder"],fu=["placeholder"],gu={class:"full-top bold"},_u={class:"full-top bold"},vu={type:"submit",class:"button black-button button-full google-button bg-tapni-grey button-90 button-center uppercase bold full-top pointer"},yu={key:0},bu={key:1,class:"button--loading button__loader"};function wu(n,e,t,o,r,i){const s=a.resolveComponent("router-link"),c=a.resolveComponent("VueSelect");return a.openBlock(),a.createElementBlock("div",au,[t.isModal?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...l)=>i.close&&i.close(...l)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},e[7]||(e[7]=[a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)]))):a.createCommentVNode("",!0),a.createElementVNode("div",su,[t.isModal?(a.openBlock(),a.createElementBlock("div",{key:0,class:"pointer left-button",onClick:e[1]||(e[1]=l=>n.$emit("update:viewProp","AuthAccount"))},[a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,cu)])):(a.openBlock(),a.createBlock(s,{key:1,to:"/account",class:"button gray-button pointer left-button"},{default:a.withCtx(()=>[a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,lu)]),_:1})),a.createElementVNode("h2",du,a.toDisplayString(n.ssoLang[n.appLanguage].general),1)]),a.createElementVNode("div",uu,[a.createElementVNode("p",pu,a.toDisplayString(n.ssoLang[n.appLanguage].general_p),1),a.createElementVNode("form",{class:"full-top",onSubmit:e[6]||(e[6]=a.withModifiers((...l)=>i.submitGeneralUpdate&&i.submitGeneralUpdate(...l),["prevent"]))},[a.createElementVNode("h3",hu,a.toDisplayString(n.ssoLang[n.appLanguage].personal_details),1),a.withDirectives(a.createElementVNode("input",{type:"text","onUpdate:modelValue":e[2]||(e[2]=l=>n.account.name=l),placeholder:n.ssoLang[n.appLanguage].name,class:"edit-input h-40 lh-40 small-bottom",required:"",style:{width:"100%"}},null,8,mu),[[a.vModelText,n.account.name]]),a.withDirectives(a.createElementVNode("input",{disabled:"",type:"email","onUpdate:modelValue":e[3]||(e[3]=l=>n.account.email=l),placeholder:n.ssoLang[n.appLanguage].email,class:"bg-white edit-input h-40 lh-40 small-bottom",required:"",style:{width:"100%"}},null,8,fu),[[a.vModelText,n.account.email]]),a.createElementVNode("h3",gu,a.toDisplayString(n.ssoLang[n.appLanguage].app_region),1),n.account.billing?(a.openBlock(),a.createBlock(c,{key:0,modelValue:n.account.billing.region,"onUpdate:modelValue":e[4]||(e[4]=l=>n.account.billing.region=l),options:[{label:"United States",value:"us"},{label:"United Kingdom",value:"uk"},{label:"European Union",value:"eu"},{label:"Mexico",value:"mx"},{label:"Mauritius",value:"mu"},{label:"Colombia",value:"co"},{label:"Serbia",value:"rs"},{label:"Singapore",value:"sg"},{label:"China",value:"cn"}],isClearable:!1,placeholder:"Select region"},null,8,["modelValue"])):a.createCommentVNode("",!0),a.createCommentVNode("",!0),a.createElementVNode("h3",_u,a.toDisplayString(n.ssoLang[n.appLanguage].app_language),1),a.createVNode(c,{modelValue:n.account.lang,"onUpdate:modelValue":e[5]||(e[5]=l=>n.account.lang=l),options:[{label:n.ssoLang[n.appLanguage].english,value:"en"},{label:n.ssoLang[n.appLanguage].german,value:"de"},{label:n.ssoLang[n.appLanguage].spanish,value:"es"},{label:n.ssoLang[n.appLanguage].italian,value:"it"},{label:n.ssoLang[n.appLanguage].french,value:"fr"},{label:n.ssoLang[n.appLanguage].turkish,value:"tr"},{label:n.ssoLang[n.appLanguage].serbian,value:"sr"},{label:n.ssoLang[n.appLanguage].korean,value:"kr"},{label:n.ssoLang[n.appLanguage].chinese,value:"cn"},{label:n.ssoLang[n.appLanguage].portuguese,value:"pt"},{label:n.ssoLang[n.appLanguage].japanese,value:"ja"}],isClearable:!1,placeholder:"Select language"},null,8,["modelValue","options"]),e[8]||(e[8]=a.createElementVNode("p",null,"Translate the app on your preferred language.",-1)),a.createElementVNode("button",vu,[r.loading?(a.openBlock(),a.createElementBlock("span",bu)):(a.openBlock(),a.createElementBlock("span",yu,a.toDisplayString(n.ssoLang[n.appLanguage].save),1))])],32)])])}const $o=nt(iu,[["render",wu]]),ku=Object.freeze(Object.defineProperty({__proto__:null,default:$o},Symbol.toStringTag,{value:"Module"})),Cu={name:"AuthReset",mixins:[We],data(){return{loading:!0,submitted:!1,passwordChange:!1,email:"",password:"",passwordRepeat:"",code:"",captcha:"",revealPassword:!1,revealPassword2:!1}},mounted(){this.$storex.verifyEmail&&(this.email=this.$storex.verifyEmail),this.$route.query.c&&(this.code=this.$route.query.c,this.passwordChange=!0),this.$route.query.e&&(this.email=this.$route.query.e),X.$emit("ssoEvent",{name:"setLoading",data:!1})},methods:{async resetEmail(){if(this.submitted)return;this.submitted=!0,this.email=this.email.trim();let n={email:this.email,captchaToken:await this.getCaptchaToken("password_reset")};await this.reset(n),this.submitted=!1,await this.$router.push("/verify?e="+this.email+"#reset")},async changePw(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);if(this.password!==this.passwordRepeat)return this.errorSnack(this.ssoLang[this.appLanguage].password_not_match);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.code=this.code.trim();let n={email:this.email,code:this.code,password:this.password,passwordRepeat:this.passwordRepeat,captchaToken:await this.getCaptchaToken("password_reset")},e=await this.changePassword(n);this.submitted=!1,e===!0&&(this.$router.push("/login"),this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success))}},watch:{email(n){this.$storex.verifyEmail=n}}},Eu={class:"bold no-bottom center-text text-[22px]",style:{"margin-top":"63px"}},Tu={class:"page-login-field half-top color-black"},Su=["placeholder"],Iu={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Au={key:0,class:"uppercase"},Ru={key:1,class:"button--loading button__loader"},Nu={class:"close-text center-text half-top color-black"},Pu=["innerHTML"],Mu=["href"],Lu={class:"page-login-links"},Ou={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},zu={class:"half-bottom small-top center-text color-black"},xu={class:"page-login-field half-top"},Bu=["type","placeholder"],Uu={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Du={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},ju={class:"page-login-field half-top"},qu=["type","placeholder"],Fu={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Vu={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Hu={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Ku={key:0,class:"uppercase"},Gu={key:1,class:"button--loading button__loader"},$u={class:"close-text center-text half-top color-black"},Qu=["innerHTML"],Wu=["href"];function Yu(n,e,t,o,r,i){const s=a.resolveComponent("router-link");return r.passwordChange?(a.openBlock(),a.createElementBlock("form",{key:1,class:"page-login content-boxed content-boxed-padding",onSubmit:e[7]||(e[7]=a.withModifiers((...c)=>i.changePw&&i.changePw(...c),["prevent"]))},[a.createElementVNode("h3",Ou,a.toDisplayString(n.ssoLang[this.appLanguage].password_change),1),a.createElementVNode("p",zu,a.toDisplayString(n.ssoLang[this.appLanguage].password_new),1),a.createElementVNode("div",xu,[e[14]||(e[14]=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=c=>r.password=c),type:r.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,required:""},null,8,Bu),[[a.vModelDynamic,r.password]]),a.createElementVNode("em",{onClick:e[4]||(e[4]=c=>r.revealPassword=!r.revealPassword)},[a.withDirectives(a.createElementVNode("img",Uu,null,512),[[a.vShow,!r.revealPassword]]),a.withDirectives(a.createElementVNode("img",Du,null,512),[[a.vShow,r.revealPassword]])])]),a.createElementVNode("div",ju,[e[15]||(e[15]=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":e[5]||(e[5]=c=>r.passwordRepeat=c),type:r.revealPassword2?"text":"password",placeholder:n.ssoLang[this.appLanguage].password_repeat,required:""},null,8,qu),[[a.vModelDynamic,r.passwordRepeat]]),a.createElementVNode("em",{onClick:e[6]||(e[6]=c=>r.revealPassword2=!r.revealPassword2)},[a.withDirectives(a.createElementVNode("img",Fu,null,512),[[a.vShow,!r.revealPassword2]]),a.withDirectives(a.createElementVNode("img",Vu,null,512),[[a.vShow,r.revealPassword2]])])]),a.createElementVNode("button",Hu,[r.submitted?(a.openBlock(),a.createElementBlock("span",Gu)):(a.openBlock(),a.createElementBlock("span",Ku,a.toDisplayString(n.ssoLang[this.appLanguage].password_change),1))]),e[17]||(e[17]=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),a.createElementVNode("p",$u,[a.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].reset_password_p2},null,8,Qu),e[16]||(e[16]=a.createTextVNode()),a.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+n.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,Wu)])],32)):(a.openBlock(),a.createElementBlock("form",{key:0,class:"page-login content-boxed content-boxed-padding",onSubmit:e[2]||(e[2]=a.withModifiers((...c)=>i.resetEmail&&i.resetEmail(...c),["prevent"])),autocomplete:"on"},[a.createElementVNode("h3",Eu,a.toDisplayString(n.ssoLang[this.appLanguage].reset_password),1),e[11]||(e[11]=a.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),a.createElementVNode("div",Tu,[e[8]||(e[8]=a.createElementVNode("i",{style:{"padding-top":"10px","margin-left":"10px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),a.withDirectives(a.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":e[0]||(e[0]=c=>r.email=c),onKeydown:e[1]||(e[1]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,required:""},null,40,Su),[[a.vModelText,r.email]]),e[9]||(e[9]=a.createElementVNode("em",null,null,-1))]),a.createElementVNode("button",Iu,[r.submitted?(a.openBlock(),a.createElementBlock("span",Ru)):(a.openBlock(),a.createElementBlock("span",Au,a.toDisplayString(n.ssoLang[this.appLanguage].reset_password),1))]),e[12]||(e[12]=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),a.createElementVNode("p",Nu,[a.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].reset_password_p1},null,8,Pu),a.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+n.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,Mu)]),e[13]||(e[13]=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),a.createElementVNode("div",Lu,[a.createVNode(s,{class:"create float-right",to:"/verify"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1)]),_:1}),a.createVNode(s,{class:"forgot float-left",to:"/login"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),e[10]||(e[10]=a.createElementVNode("div",{class:"clear"},null,-1))])],32))}const Qo=nt(Cu,[["render",Yu],["__scopeId","data-v-707a4b16"]]),Ju=Object.freeze(Object.defineProperty({__proto__:null,default:Qo},Symbol.toStringTag,{value:"Module"})),Xu={name:"AuthCallback",mixins:[ii,ai,We],data(){return{}},async mounted(){if(this.$route.path==="/callback/redirect")return location.href=atob(this.$route.query.uri);if(this.$route.path==="/callback/auth"&&this.exchangeAuthCode({code:this.$route.query.code,code_verifier:this.$route.query.code_verifier}),this.$route.path==="/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/callback/saml")return await this.handleSamlRedirect()},methods:{inAppRedirect(){let n=pi.sanitizeUrl(location.href);return n=n.replace("http","tapni"),n=n.replace("https","tapni"),window.open(n)}}},Zu={class:"page-login content-boxed content-boxed-padding"},ep={key:0,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}},tp={key:1,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}};function np(n,e,t,o,r,i){return a.openBlock(),a.createElementBlock("div",Zu,[(n.$route.query.platform==="android"||n.$route.query.platform==="ios")&&!n.isNative?(a.openBlock(),a.createElementBlock("h5",ep,[a.createTextVNode(a.toDisplayString(n.ssoLang[this.appLanguage].you_will_be_redirected),1),e[1]||(e[1]=a.createElementVNode("br",null,null,-1)),a.createTextVNode(" "+a.toDisplayString(n.ssoLang[this.appLanguage].if_redirect_not_directly)+", ",1),a.createElementVNode("span",{onClick:e[0]||(e[0]=(...s)=>i.inAppRedirect&&i.inAppRedirect(...s)),style:{color:"blue",cursor:"pointer"}},a.toDisplayString(n.ssoLang[this.appLanguage].click_here),1),e[2]||(e[2]=a.createTextVNode(". "))])):(a.openBlock(),a.createElementBlock("h4",tp,a.toDisplayString(n.ssoLang[this.appLanguage].please_wait),1))])}const Wo=nt(Xu,[["render",np]]),op=Object.freeze(Object.defineProperty({__proto__:null,default:Wo},Symbol.toStringTag,{value:"Module"})),Yt=tt.registerPlugin("Preferences",{web:()=>Promise.resolve().then(()=>Xp).then(n=>new n.PreferencesWeb)}),vt={async setObject(n,e){await Yt.set({key:n,value:JSON.stringify(e)})},async getAll(){const n=await this.keys(),e={};for(const t of n)e[t]=await Yt.get({key:t});return e},async setAll(n){const e=Object.keys(n);for(const t of e)await this.setItem(t,n[t])},async getObject(n){const e=await Yt.get({key:n});return JSON.parse(e.value)},async setItem(n,e){return await Yt.set({key:n,value:e})},async getItem(n){const{value:e}=await Yt.get({key:n});return e},async removeItem(n){return await Yt.remove({key:n})},async keys(){const{keys:n}=await Yt.keys();return n},async clear(){return await Yt.clear()}},it="vrs_",Yo={async _initialize(n){let e=await vt.getItem(it);if(e===null)await vt.setItem(it,JSON.stringify(n));else{let t=JSON.parse(e);this._objectDefaults(n,t),await vt.setItem(it,JSON.stringify(t))}},_objectDefaults(n,e){Object.keys(n).reduce((t,o)=>{let r=n[o];return typeof r=="object"?this._objectDefaults(e[o],r):e.hasOwnProperty(o)||(e[o]=r),t},[])},async getRaw(){let n=await vt.getItem(it);return JSON.parse(n)},async setRaw(n){let e=JSON.stringify(n);await vt.setItem(it,e)},async set(n,e){if(e===void 0)return this.remove(n);await vt.setItem(it+n,this.serialize(e));let t=this.getKeys();return t.indexOf(n)===-1&&t.push(n),await vt.setItem(it,this.serialize(t)),e},async get(n){let e=await vt.getItem(it+n);return e===null?null:this.deserialize(e)},async remove(n){let e=await this.get(n);await vt.removeItem(it+n);let t=await this.getKeys(),o=t.indexOf("test");return o!==-1&&t.splice(o,1),await vt.setItem(it,this.serialize(t)),e},async getAll(){let n=[],e=await this.getKeys();for(let t=0;t<e.length;t++)n[e[t]]=this.get(e[t]);return n},async getKeys(){return await this.deserialize(vt.getItem(it))},async clear(){await this.set(it,"[]");let n=this.getKeys();for(let e=0;e<n.length;e++)await this.remove(it+n[e])},serialize:function(n){return JSON.stringify(n)},deserialize:function(n,e){if(!n)return e;let t=JSON.parse(n);return t!==void 0?t:e}},rp={name:"ReactiveStorage",data(){return{strgReady:!1,strg:null}},async created(){this.strgReady=a.reactive({value:!1}),await Yo._initialize(this.options);let n=await Yo.getRaw();const e=a.reactive(n);this.strg=e,this.strgReady.value=!0,a.watch(e,async()=>{await Yo.setRaw(e)},{deep:!0})}},ip={key:0,href:"/",class:"header-logo"},ap=["src"],sp={class:"snackbar snackbar-boxed",id:"snackbar"},cp={class:"snack-body",id:"errorSnack"},lp={id:"errorMessage"},dp={class:"snack-body",id:"successSnack"},up={id:"successMessage"},pp=Object.assign({name:"TapniAuth",mixins:[rp,We],data(){return{storeInterval:null,isSetup:!1,isTapstackOrigin:typeof window<"u"?/(^|\.)tapstack\.com$/i.test(new URL(window.location.origin).hostname):!1}},components:{AuthCallback:Wo,AuthReset:Qo,AuthVerify:Ho,AuthSecurity:Ko,AuthRegister:Vo,AuthLogin:qo,AuthAccount:Fo,AuthBilling:Go,AuthWelcome:wo,AuthGeneral:$o},props:{viewProp:{type:String,default:""},isModal:{type:Boolean,default:!1},payload:{type:Object,default:{}},options:{type:Object,default:{token:"",refreshTokens:"",username:"",UserId:"",verifyEmail:"",subdomain:"",localUser:""}}},computed:{initialized(){return this.isSetup||this.isModal},headerLogoUrl(){return this.isTapstackOrigin?"https://cdn.tapni.co/company-media/e411a6e5-e8c1-40b3-aa4c-1214cfb43e8a/gallery/image/f910fa207addf7d3f7337faf098c4f82c79f755a3cf0032099655f2204e6a1e6.png":"https://cdn.tapni.co/images/logo-dark.png"},containerStyle(){return{maxHeight:this.isModal?"90vh":"auto",overflowY:this.isModal?"auto":"hidden"}}},async mounted(){this.checkAndClearStorage(),this.applyBgStyle(),this.setView(this.viewProp),this.updateMetadata(),X.$on("ssoEvent",this.ssoOutgoingEvent),X.$on("ssoLogout",n=>this.logout(n)),X.$on("getLoggedInAccounts",()=>this.getLoggedInAccounts()),X.$on("refreshTokenAction",n=>this.refreshTokenAction({...n,storage:this.$storex})),X.$on("switchAccount",n=>this.switchAccount(n)),X.$on("setToken",n=>this.setToken(n)),X.$on("setStorageItem",n=>this.setStorageItem(n)),this.isNative&&this.$nextTick(()=>{try{this.$store&&this.$store.state&&this.$store.state.auth&&this.$store.commit("auth/addAllowedOrigin","capacitor://localhost")}catch(n){console.error("Failed to add capacitor origin to allowed origins:",n)}})},methods:{checkAndClearStorage(){const n=new URLSearchParams(window.location.search);if(n.get("clean")==="true"){localStorage.clear(),sessionStorage.clear(),n.delete("clean");const e=window.location.pathname+(n.toString()?"?"+n.toString():"")+window.location.hash;window.history.replaceState({},"",e),console.log("Storage cleared due to clean=true parameter")}},async init(){this.$store.commit("auth/setApiRoot",this.$apiRoot||_i.env.VITE_APP_API_ROOT),this.setStorage(this.strg),!this.isSetup&&(this.isSetup=!0,await this.getLoggedInAccounts(),this.$emit("ssoLibraryReady",this.$storex))},ssoOutgoingEvent(n){this.$emit("ssoEvent",n)},ssoIncomingEvent(n){X.$emit(n.name,n.data)},updateMetadata(){if(!(typeof window>"u"))if(this.isTapstackOrigin){document.title="Tapstack - The modern stack for interactive docs and tools";const n=document.querySelector('meta[name="description"]');n&&n.setAttribute("content","The modern stack for interactive docs and tools. Build better documentation and developer experiences with Tapstack.");const e=document.querySelector('meta[property="og:title"]');e&&e.setAttribute("content","Tapstack - The modern stack for interactive docs and tools");const t=document.querySelector('meta[property="og:description"]');t&&t.setAttribute("content","The modern stack for interactive docs and tools. Build better documentation and developer experiences.");const o=document.querySelector('meta[property="twitter:title"]');o&&o.setAttribute("content","Tapstack - The modern stack for interactive docs and tools");const r=document.querySelector('meta[property="twitter:description"]');r&&r.setAttribute("content","The modern stack for interactive docs and tools. Build better documentation and developer experiences with Tapstack.")}else document.title="Tapni - Share everything with just a tap"},applyBgStyle(){this.display==="redirect"?document.getElementsByTagName("html")[0].style="background: #dfeefe;":document.getElementsByTagName("html")[0].style=""}},watch:{viewProp(n){this.setView(n)},display(){this.applyBgStyle()},"strgReady.value"(n){n&&this.$nextTick(()=>{this.init()})},$storex:{handler(n){clearInterval(this.storeInterval),this.storeInterval=setTimeout(()=>{Object.keys(n).forEach(e=>{this.strg[e]=n[e]})},250)},deep:!0}}},{setup(n){return window.Buffer=Si,document.addEventListener("DOMContentLoaded",function(){const e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js?render=undefined",document.head.appendChild(e)}),(e,t)=>(a.openBlock(),a.createElementBlock("div",{id:"ssoapp",style:a.normalizeStyle(e.containerStyle)},[e.display==="redirect"||e.renderView.includes("Auth")?(a.openBlock(),a.createElementBlock("a",ip,[a.createElementVNode("img",{src:e.headerLogoUrl,class:"header-logo-img"},null,8,ap)])):a.createCommentVNode("",!0),e.initialized&&e.renderView==="AuthWelcome"?(a.openBlock(),a.createBlock(wo,{key:1})):e.initialized&&e.renderView==="AuthLogin"?(a.openBlock(),a.createBlock(qo,{key:2,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthGeneral"?(a.openBlock(),a.createBlock($o,{key:3,isModal:n.isModal,"onUpdate:viewProp":e.setView},null,8,["isModal","onUpdate:viewProp"])):e.initialized&&e.renderView==="AuthAccount"?(a.openBlock(),a.createBlock(Fo,{key:4,isModal:n.isModal,"onUpdate:viewProp":e.setView},null,8,["isModal","onUpdate:viewProp"])):e.initialized&&e.renderView==="AuthRegister"?(a.openBlock(),a.createBlock(Vo,{key:5,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthVerify"?(a.openBlock(),a.createBlock(Ho,{key:6,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthSecurity"?(a.openBlock(),a.createBlock(Ko,{key:7,isModal:n.isModal,payload:n.payload,"onUpdate:viewProp":e.setView},null,8,["isModal","payload","onUpdate:viewProp"])):e.initialized&&e.renderView==="AuthBilling"?(a.openBlock(),a.createBlock(Go,{key:8,isModal:n.isModal,payload:n.payload,"onUpdate:viewProp":e.setView},null,8,["isModal","payload","onUpdate:viewProp"])):e.initialized&&e.renderView==="AuthReset"?(a.openBlock(),a.createBlock(Qo,{key:9})):e.initialized&&e.renderView==="AuthCallback"?(a.openBlock(),a.createBlock(Wo,{key:10})):e.display!=="npm"?(a.openBlock(),a.createBlock(a.unref(en.RouterView),{key:11})):a.createCommentVNode("",!0),a.createElementVNode("div",sp,[a.createElementVNode("p",cp,[a.createElementVNode("span",lp,a.toDisplayString(e.ssoLang[e.appLanguage].error),1),a.createElementVNode("a",{onClick:t[0]||(t[0]=(...o)=>e.closeSnacks&&e.closeSnacks(...o)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},t[2]||(t[2]=[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)]))]),a.createElementVNode("p",dp,[a.createElementVNode("span",up,a.toDisplayString(e.ssoLang[e.appLanguage].success),1),a.createElementVNode("a",{onClick:t[1]||(t[1]=(...o)=>e.closeSnacks&&e.closeSnacks(...o)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},t[3]||(t[3]=[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)]))])])],4))}}),hp={install:(n,{store:e,apiRoot:t})=>{n.component("TapniAuth",pp),e.hasModule("auth")||e.registerModule("auth",Cr),n.config.globalProperties.$apiRoot=t}},mp={name:"AuthQR",mixins:[We,si]},fp={class:"page-login content-boxed content-boxed-padding"},gp={style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"130px"}},_p={class:"center-text"},vp={style:{margin:"0 auto",width:"85%","text-align":"left"}},yp={class:"center-text"};function bp(n,e,t,o,r,i){const s=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",fp,[a.createElementVNode("h5",gp,a.toDisplayString(n.ssoLang[n.appLanguage].use_tapni_on_the_web),1),e[6]||(e[6]=a.createElementVNode("br",null,null,-1)),a.createElementVNode("div",_p,[e[3]||(e[3]=a.createElementVNode("div",{id:"qrCodeContainer",class:"qrCodeRounded",style:{"max-width":"100%"}},null,-1)),e[4]||(e[4]=a.createElementVNode("br",null,null,-1)),e[5]||(e[5]=a.createElementVNode("br",null,null,-1)),a.createElementVNode("div",vp,[a.createElementVNode("h2",yp,a.toDisplayString(n.ssoLang[n.appLanguage].login_by_scanning_qr_code),1),e[0]||(e[0]=a.createElementVNode("br",null,null,-1)),a.createElementVNode("h4",null,a.toDisplayString(n.ssoLang[n.appLanguage].open_tapni_app_on_your_phone),1),a.createElementVNode("h4",null,a.toDisplayString(n.ssoLang[n.appLanguage].go_to_settings_link_a_device),1),a.createElementVNode("h4",null,a.toDisplayString(n.ssoLang[n.appLanguage].point_your_phone_at_this_qr_code),1),e[1]||(e[1]=a.createElementVNode("br",null,null,-1)),e[2]||(e[2]=a.createElementVNode("br",null,null,-1))]),a.createVNode(s,{to:"/login"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(n.ssoLang[n.appLanguage].choose_other_login_methods),1)]),_:1})])])}const wp=Object.freeze(Object.defineProperty({__proto__:null,default:nt(mp,[["render",bp]])},Symbol.toStringTag,{value:"Module"})),kp={async getRecordById(n){return ce().post("/objects/record/"+n.id,n)},async getRecords(n){return ce().post("/objects/records",n)}},Cp={name:"AuthApps",mixins:[We],props:{payload:{type:Object,default:{}}},data(){return{loading:!1,apps:[]}},async mounted(){this.isLoggedIn||this.$router.push("/login");const n=await kp.getRecords({objectId:"6dc545ea-2e2f-4720-b4fe-c5ebdd8af063",query:{fields:["t_apps_name","t_apps_icon","t_apps_url"],relations:[]}});this.apps=n.data.records},methods:{close(){X.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})}}},Ep={class:"page-login content-boxed content-boxed-padding"},Tp={class:"subheaderContainer full-top"},Sp=["src"],Ip={class:"center-text",style:{"flex-grow":"1","text-align":"center",margin:"0","font-weight":"600"}},Ap={class:"container left-text"},Rp={class:"center-text"},Np={class:"full-top"},Pp=["href"],Mp={class:"firstRow"},Lp=["src"],Op=["src"];function zp(n,e,t,o,r,i){const s=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",Ep,[n.isModal?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...c)=>i.close&&i.close(...c)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},e[1]||(e[1]=[a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)]))):a.createCommentVNode("",!0),a.createElementVNode("div",Tp,[n.isModal?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(s,{key:0,to:"/account",class:"button gray-button pointer left-button"},{default:a.withCtx(()=>[a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,Sp)]),_:1})),a.createElementVNode("h2",Ip,a.toDisplayString(n.ssoLang[n.appLanguage].apps),1)]),a.createElementVNode("div",Ap,[a.createElementVNode("p",Rp,a.toDisplayString(n.ssoLang[n.appLanguage].apps_p),1),a.createElementVNode("div",Np,[a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.apps,c=>(a.openBlock(),a.createElementBlock("a",{key:c.id,href:c.t_apps_url,target:"_blank",class:"settingRow half-bottom"},[a.createElementVNode("div",Mp,[a.createElementVNode("img",{src:n.getIcon(c.t_apps_icon),class:"withBackground"},null,8,Lp),a.createElementVNode("h4",null,a.toDisplayString(c.t_apps_name),1),a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,Op)])],8,Pp))),128))])])])}const xp=Object.freeze(Object.defineProperty({__proto__:null,default:nt(Cp,[["render",zp],["__scopeId","data-v-2f7f5584"]])},Symbol.toStringTag,{value:"Module"})),Bp={name:"AuthCustomApp",mixins:[We],props:{payload:{type:Object,default:{}}},data(){return{loading:!1,app:{}}},async mounted(){this.isLoggedIn||this.$router.push("/login");const n=await Fe.getRecordById({id:this.$route.params.app,query:{fields:["t_apps_name","t_apps_icon","t_apps_url"],relations:[]}});this.app=n.data.record},methods:{close(){X.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})}}},Up={class:"page-login content-boxed content-boxed-padding"},Dp={class:"subheaderContainer full-top"},jp=["src"],qp={class:"center-text",style:{"flex-grow":"1","text-align":"center",margin:"0","font-weight":"600"}},Fp={class:"container left-text"},Vp={class:"center-text"};function Hp(n,e,t,o,r,i){const s=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",Up,[n.isModal?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...c)=>i.close&&i.close(...c)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},e[1]||(e[1]=[a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)]))):a.createCommentVNode("",!0),a.createElementVNode("div",Dp,[n.isModal?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(s,{key:0,to:"/apps",class:"button gray-button pointer left-button"},{default:a.withCtx(()=>[a.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,jp)]),_:1})),a.createElementVNode("h2",qp,a.toDisplayString(r.app.t_apps_name),1)]),a.createElementVNode("div",Fp,[a.createElementVNode("p",Vp,a.toDisplayString(n.ssoLang[n.appLanguage].apps_p),1),e[2]||(e[2]=a.createElementVNode("div",{class:"full-top"},null,-1))])])}const Kp=Object.freeze(Object.defineProperty({__proto__:null,default:nt(Bp,[["render",Hp],["__scopeId","data-v-36b27d1f"]])},Symbol.toStringTag,{value:"Module"}));class Gp extends tt.WebPlugin{constructor(){super()}loadScript(){if(typeof document>"u")return;const e="gapi";if(document==null?void 0:document.getElementById(e))return;const o=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.defer=!0,r.async=!0,r.id=e,r.onload=this.platformJsLoaded.bind(this),r.src="https://apis.google.com/js/platform.js",o.appendChild(r)}initialize(e={clientId:"",scopes:[],grantOfflineAccess:!1}){var t,o;if(typeof window>"u")return;const r=(t=document.getElementsByName("google-signin-client_id")[0])===null||t===void 0?void 0:t.content,i=e.clientId||r||"";return i||console.warn("GoogleAuthPlugin - clientId is empty"),this.options={clientId:i,grantOfflineAccess:(o=e.grantOfflineAccess)!==null&&o!==void 0?o:!1,scopes:e.scopes||[]},this.gapiLoaded=new Promise(s=>{window.gapiResolve=s,this.loadScript()}),this.addUserChangeListener(),this.gapiLoaded}platformJsLoaded(){gapi.load("auth2",()=>{const e={client_id:this.options.clientId,plugin_name:"CodetrixStudioCapacitorGoogleAuth"};this.options.scopes.length&&(e.scope=this.options.scopes.join(" ")),gapi.auth2.init(e),window.gapiResolve()})}async signIn(){return new Promise(async(e,t)=>{var o;try{let r;const i=(o=this.options.grantOfflineAccess)!==null&&o!==void 0?o:!1;i?r=(await gapi.auth2.getAuthInstance().grantOfflineAccess()).code:await gapi.auth2.getAuthInstance().signIn();const s=gapi.auth2.getAuthInstance().currentUser.get();i&&await s.reloadAuthResponse();const c=this.getUserFrom(s);c.serverAuthCode=r,e(c)}catch(r){t(r)}})}async refresh(){const e=await gapi.auth2.getAuthInstance().currentUser.get().reloadAuthResponse();return{accessToken:e.access_token,idToken:e.id_token,refreshToken:""}}async signOut(){return gapi.auth2.getAuthInstance().signOut()}async addUserChangeListener(){await this.gapiLoaded,gapi.auth2.getAuthInstance().currentUser.listen(e=>{this.notifyListeners("userChange",e.isSignedIn()?this.getUserFrom(e):null)})}getUserFrom(e){const t={},o=e.getBasicProfile();t.email=o.getEmail(),t.familyName=o.getFamilyName(),t.givenName=o.getGivenName(),t.id=o.getId(),t.imageUrl=o.getImageUrl(),t.name=o.getName();const r=e.getAuthResponse(!0);return t.authentication={accessToken:r.access_token,idToken:r.id_token,refreshToken:""},t}}const $p=Object.freeze(Object.defineProperty({__proto__:null,GoogleAuthWeb:Gp},Symbol.toStringTag,{value:"Module"}));var ui={exports:{}};/*!
159
+ ***************************************************************************** */var Ir=function(n,e){return Ir=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Ir(n,e)};function tt(n,e){Ir(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var ve=function(){return ve=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ve.apply(this,arguments)};function ce(n,e,t,r){function o(i){return i instanceof t?i:new t(function(l){l(i)})}return new(t||(t=Promise))(function(i,l){function d(u){try{f(r.next(u))}catch(y){l(y)}}function h(u){try{f(r.throw(u))}catch(y){l(y)}}function f(u){u.done?i(u.value):o(u.value).then(d,h)}f((r=r.apply(n,[])).next())})}function le(n,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(u){return h([f,u])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,o=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){t.label=f[1];break}if(f[0]===6&&t.label<i[1]){t.label=i[1],i=f;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(f);break}i[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(n,t)}catch(u){f=[6,u],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Yn(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var r=Array(n),o=0,e=0;e<t;e++)for(var i=arguments[e],l=0,d=i.length;l<d;l++,o++)r[o]=i[l];return r}/*! @azure/msal-common v13.3.3 2024-06-06 */var C={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},Mn=[C.OPENID_SCOPE,C.PROFILE_SCOPE,C.OFFLINE_ACCESS_SCOPE],Oo=Yn(Mn,[C.EMAIL_SCOPE]),dt;(function(n){n.CONTENT_TYPE="Content-Type",n.RETRY_AFTER="Retry-After",n.CCS_HEADER="X-AnchorMailbox",n.WWWAuthenticate="WWW-Authenticate",n.AuthenticationInfo="Authentication-Info",n.X_MS_REQUEST_ID="x-ms-request-id",n.X_MS_HTTP_VERSION="x-ms-httpver"})(dt||(dt={}));var ze;(function(n){n.ID_TOKEN="idtoken",n.CLIENT_INFO="client.info",n.ADAL_ID_TOKEN="adal.idtoken",n.ERROR="error",n.ERROR_DESC="error.description",n.ACTIVE_ACCOUNT="active-account",n.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(ze||(ze={}));var dn;(function(n){n.COMMON="common",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers"})(dn||(dn={}));var ue;(function(n){n.CLIENT_ID="client_id",n.REDIRECT_URI="redirect_uri",n.RESPONSE_TYPE="response_type",n.RESPONSE_MODE="response_mode",n.GRANT_TYPE="grant_type",n.CLAIMS="claims",n.SCOPE="scope",n.ERROR="error",n.ERROR_DESCRIPTION="error_description",n.ACCESS_TOKEN="access_token",n.ID_TOKEN="id_token",n.REFRESH_TOKEN="refresh_token",n.EXPIRES_IN="expires_in",n.STATE="state",n.NONCE="nonce",n.PROMPT="prompt",n.SESSION_STATE="session_state",n.CLIENT_INFO="client_info",n.CODE="code",n.CODE_CHALLENGE="code_challenge",n.CODE_CHALLENGE_METHOD="code_challenge_method",n.CODE_VERIFIER="code_verifier",n.CLIENT_REQUEST_ID="client-request-id",n.X_CLIENT_SKU="x-client-SKU",n.X_CLIENT_VER="x-client-VER",n.X_CLIENT_OS="x-client-OS",n.X_CLIENT_CPU="x-client-CPU",n.X_CLIENT_CURR_TELEM="x-client-current-telemetry",n.X_CLIENT_LAST_TELEM="x-client-last-telemetry",n.X_MS_LIB_CAPABILITY="x-ms-lib-capability",n.X_APP_NAME="x-app-name",n.X_APP_VER="x-app-ver",n.POST_LOGOUT_URI="post_logout_redirect_uri",n.ID_TOKEN_HINT="id_token_hint",n.DEVICE_CODE="device_code",n.CLIENT_SECRET="client_secret",n.CLIENT_ASSERTION="client_assertion",n.CLIENT_ASSERTION_TYPE="client_assertion_type",n.TOKEN_TYPE="token_type",n.REQ_CNF="req_cnf",n.OBO_ASSERTION="assertion",n.REQUESTED_TOKEN_USE="requested_token_use",n.ON_BEHALF_OF="on_behalf_of",n.FOCI="foci",n.CCS_HEADER="X-AnchorMailbox",n.RETURN_SPA_CODE="return_spa_code",n.NATIVE_BROKER="nativebroker",n.LOGOUT_HINT="logout_hint"})(ue||(ue={}));var yn;(function(n){n.ACCESS_TOKEN="access_token",n.XMS_CC="xms_cc"})(yn||(yn={}));var Qe={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},Ln;(function(n){n.ACCOUNT="account",n.SID="sid",n.LOGIN_HINT="login_hint",n.ID_TOKEN="id_token",n.DOMAIN_HINT="domain_hint",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers",n.ACCOUNT_ID="accountIdentifier",n.HOMEACCOUNT_ID="homeAccountIdentifier"})(Ln||(Ln={}));var xo={PLAIN:"plain",S256:"S256"},Jn;(function(n){n.QUERY="query",n.FRAGMENT="fragment",n.FORM_POST="form_post"})(Jn||(Jn={}));var Xn;(function(n){n.IMPLICIT_GRANT="implicit",n.AUTHORIZATION_CODE_GRANT="authorization_code",n.CLIENT_CREDENTIALS_GRANT="client_credentials",n.RESOURCE_OWNER_PASSWORD_GRANT="password",n.REFRESH_TOKEN_GRANT="refresh_token",n.DEVICE_CODE_GRANT="device_code",n.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(Xn||(Xn={}));var un;(function(n){n.MSSTS_ACCOUNT_TYPE="MSSTS",n.ADFS_ACCOUNT_TYPE="ADFS",n.MSAV1_ACCOUNT_TYPE="MSA",n.GENERIC_ACCOUNT_TYPE="Generic"})(un||(un={}));var Ue;(function(n){n.CACHE_KEY_SEPARATOR="-",n.CLIENT_INFO_SEPARATOR="."})(Ue||(Ue={}));var te;(function(n){n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",n.REFRESH_TOKEN="RefreshToken"})(te||(te={}));var On;(function(n){n[n.ADFS=1001]="ADFS",n[n.MSA=1002]="MSA",n[n.MSSTS=1003]="MSSTS",n[n.GENERIC=1004]="GENERIC",n[n.ACCESS_TOKEN=2001]="ACCESS_TOKEN",n[n.REFRESH_TOKEN=2002]="REFRESH_TOKEN",n[n.ID_TOKEN=2003]="ID_TOKEN",n[n.APP_METADATA=3001]="APP_METADATA",n[n.UNDEFINED=9999]="UNDEFINED"})(On||(On={}));var Ar="appmetadata",ta="client_info",xn="1",Bn={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},yt;(function(n){n.CONFIG="config",n.CACHE="cache",n.NETWORK="network",n.HARDCODED_VALUES="hardcoded_values"})(yt||(yt={}));var Ve={SCHEMA_VERSION:5,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},ke;(function(n){n.BEARER="Bearer",n.POP="pop",n.SSH="ssh-cert"})(ke||(ke={}));var zn={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Bo={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Zn;(function(n){n.username="username",n.password="password"})(Zn||(Zn={}));var vn;(function(n){n[n.httpSuccess=200]="httpSuccess",n[n.httpBadRequest=400]="httpBadRequest"})(vn||(vn={}));var Zt;(function(n){n.FAILED_AUTO_DETECTION="1",n.INTERNAL_CACHE="2",n.ENVIRONMENT_VARIABLE="3",n.IMDS="4"})(Zt||(Zt={}));var Un;(function(n){n.CONFIGURED_MATCHES_DETECTED="1",n.CONFIGURED_NO_AUTO_DETECTION="2",n.CONFIGURED_NOT_DETECTED="3",n.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",n.AUTO_DETECTION_REQUESTED_FAILED="5"})(Un||(Un={}));var en;(function(n){n.NO_CACHE_HIT="0",n.FORCE_REFRESH="1",n.NO_CACHED_ACCESS_TOKEN="2",n.CACHED_ACCESS_TOKEN_EXPIRED="3",n.REFRESH_CACHED_ACCESS_TOKEN="4",n.CLAIMS_REQUESTED_CACHE_SKIPPED="5"})(en||(en={}));var Rr;(function(n){n.Jwt="JWT",n.Jwk="JWK",n.Pop="pop"})(Rr||(Rr={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var er={unexpectedError:{code:"unexpected_error",desc:"Unexpected error in authentication."},postRequestFailed:{code:"post_request_failed",desc:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."}},X=function(n){tt(e,n);function e(t,r,o){var i=this,l=r?t+": "+r:t;return i=n.call(this,l)||this,Object.setPrototypeOf(i,e.prototype),i.errorCode=t||C.EMPTY_STRING,i.errorMessage=r||C.EMPTY_STRING,i.subError=o||C.EMPTY_STRING,i.name="AuthError",i}return e.prototype.setCorrelationId=function(t){this.correlationId=t},e.createUnexpectedError=function(t){return new e(er.unexpectedError.code,er.unexpectedError.desc+": "+t)},e.createPostRequestFailed=function(t){return new e(er.postRequestFailed.code,er.postRequestFailed.desc+": "+t)},e}(Error);/*! @azure/msal-common v13.3.3 2024-06-06 */var tr={createNewGuid:function(){var n="Crypto interface - createNewGuid() has not been implemented";throw X.createUnexpectedError(n)},base64Decode:function(){var n="Crypto interface - base64Decode() has not been implemented";throw X.createUnexpectedError(n)},base64Encode:function(){var n="Crypto interface - base64Encode() has not been implemented";throw X.createUnexpectedError(n)},generatePkceCodes:function(){return ce(this,void 0,void 0,function(){var n;return le(this,function(e){throw n="Crypto interface - generatePkceCodes() has not been implemented",X.createUnexpectedError(n)})})},getPublicKeyThumbprint:function(){return ce(this,void 0,void 0,function(){var n;return le(this,function(e){throw n="Crypto interface - getPublicKeyThumbprint() has not been implemented",X.createUnexpectedError(n)})})},removeTokenBindingKey:function(){return ce(this,void 0,void 0,function(){var n;return le(this,function(e){throw n="Crypto interface - removeTokenBindingKey() has not been implemented",X.createUnexpectedError(n)})})},clearKeystore:function(){return ce(this,void 0,void 0,function(){var n;return le(this,function(e){throw n="Crypto interface - clearKeystore() has not been implemented",X.createUnexpectedError(n)})})},signJwt:function(){return ce(this,void 0,void 0,function(){var n;return le(this,function(e){throw n="Crypto interface - signJwt() has not been implemented",X.createUnexpectedError(n)})})},hashString:function(){return ce(this,void 0,void 0,function(){var n;return le(this,function(e){throw n="Crypto interface - hashString() has not been implemented",X.createUnexpectedError(n)})})}};/*! @azure/msal-common v13.3.3 2024-06-06 */var D={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},Q=function(n){tt(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.name="ClientAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createClientInfoDecodingError=function(t){return new e(D.clientInfoDecodingError.code,D.clientInfoDecodingError.desc+" Failed with error: "+t)},e.createClientInfoEmptyError=function(){return new e(D.clientInfoEmptyError.code,""+D.clientInfoEmptyError.desc)},e.createTokenParsingError=function(t){return new e(D.tokenParsingError.code,D.tokenParsingError.desc+" Failed with error: "+t)},e.createTokenNullOrEmptyError=function(t){return new e(D.nullOrEmptyToken.code,D.nullOrEmptyToken.desc+" Raw Token Value: "+t)},e.createEndpointDiscoveryIncompleteError=function(t){return new e(D.endpointResolutionError.code,D.endpointResolutionError.desc+" Detail: "+t)},e.createNetworkError=function(t,r){return new e(D.networkError.code,D.networkError.desc+" | Fetch client threw: "+r+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToGetOpenidConfigError=function(t){return new e(D.unableToGetOpenidConfigError.code,D.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+t)},e.createHashNotDeserializedError=function(t){return new e(D.hashNotDeserialized.code,D.hashNotDeserialized.desc+" Given Object: "+t)},e.createInvalidStateError=function(t,r){return new e(D.invalidStateError.code,D.invalidStateError.desc+" Invalid State: "+t+", Root Err: "+r)},e.createStateMismatchError=function(){return new e(D.stateMismatchError.code,D.stateMismatchError.desc)},e.createStateNotFoundError=function(t){return new e(D.stateNotFoundError.code,D.stateNotFoundError.desc+": "+t)},e.createNonceMismatchError=function(){return new e(D.nonceMismatchError.code,D.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(D.authTimeNotFoundError.code,D.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(D.maxAgeTranspiredError.code,D.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(t){return new e(D.nonceNotFoundError.code,D.nonceNotFoundError.desc+": "+t)},e.createMultipleMatchingTokensInCacheError=function(){return new e(D.multipleMatchingTokens.code,D.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(D.multipleMatchingAccounts.code,D.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(D.multipleMatchingAppMetadata.code,D.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(D.tokenRequestCannotBeMade.code,D.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(t){return new e(D.appendEmptyScopeError.code,D.appendEmptyScopeError.desc+" Given Scope: "+t)},e.createRemoveEmptyScopeFromSetError=function(t){return new e(D.removeEmptyScopeError.code,D.removeEmptyScopeError.desc+" Given Scope: "+t)},e.createAppendScopeSetError=function(t){return new e(D.appendScopeSetError.code,D.appendScopeSetError.desc+" Detail Error: "+t)},e.createEmptyInputScopeSetError=function(){return new e(D.emptyInputScopeSetError.code,""+D.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(D.DeviceCodePollingCancelled.code,""+D.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(D.DeviceCodeExpired.code,""+D.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(D.DeviceCodeUnknownError.code,""+D.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(D.NoAccountInSilentRequest.code,""+D.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(D.invalidCacheRecord.code,D.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(D.invalidCacheEnvironment.code,D.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(D.noAccountFound.code,D.noAccountFound.desc)},e.createCachePluginError=function(){return new e(D.CachePluginError.code,""+D.CachePluginError.desc)},e.createNoCryptoObjectError=function(t){return new e(D.noCryptoObj.code,""+D.noCryptoObj.desc+t)},e.createInvalidCacheTypeError=function(){return new e(D.invalidCacheType.code,""+D.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(D.unexpectedAccountType.code,""+D.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(D.unexpectedCredentialType.code,""+D.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(D.invalidAssertion.code,""+D.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(D.invalidClientCredential.code,""+D.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(D.tokenRefreshRequired.code,D.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(D.userTimeoutReached.code,D.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(D.tokenClaimsRequired.code,D.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(D.noAuthorizationCodeFromServer.code,D.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(D.bindingKeyNotRemovedError.code,D.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(D.logoutNotSupported.code,D.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(D.keyIdMissing.code,D.keyIdMissing.desc)},e.createNoNetworkConnectivityError=function(){return new e(D.noNetworkConnectivity.code,D.noNetworkConnectivity.desc)},e.createUserCanceledError=function(){return new e(D.userCanceledError.code,D.userCanceledError.desc)},e}(X);/*! @azure/msal-common v13.3.3 2024-06-06 */var K=function(){function n(){}return n.decodeAuthToken=function(e){if(n.isEmpty(e))throw Q.createTokenNullOrEmptyError(e);var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,r=t.exec(e);if(!r||r.length<4)throw Q.createTokenParsingError("Given token is malformed: "+JSON.stringify(e));var o={header:r[1],JWSPayload:r[2],JWSSig:r[3]};return o},n.isEmpty=function(e){return typeof e>"u"||!e||e.length===0},n.isEmptyObj=function(e){if(e&&!n.isEmpty(e))try{var t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0},n.startsWith=function(e,t){return e.indexOf(t)===0},n.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},n.queryStringToObject=function(e){var t={},r=e.split("&"),o=function(i){return decodeURIComponent(i.replace(/\+/g," "))};return r.forEach(function(i){if(i.trim()){var l=i.split(/=(.+)/g,2),d=l[0],h=l[1];d&&h&&(t[o(d)]=o(h))}}),t},n.trimArrayEntries=function(e){return e.map(function(t){return t.trim()})},n.removeEmptyStringsFromArray=function(e){return e.filter(function(t){return!n.isEmpty(t)})},n.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},n.matchPattern=function(e,t){var r=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return r.test(t)},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var je;(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Verbose=3]="Verbose",n[n.Trace=4]="Trace"})(je||(je={}));var Nr=function(){function n(e,t,r){this.level=je.Info;var o=function(){},i=e||n.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||o,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:je.Info,this.correlationId=i.correlationId||C.EMPTY_STRING,this.packageName=t||C.EMPTY_STRING,this.packageVersion=r||C.EMPTY_STRING}return n.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:je.Info}},n.prototype.clone=function(e,t,r){return new n({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},e,t)},n.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var r=new Date().toUTCString(),o;K.isEmpty(t.correlationId)?K.isEmpty(this.correlationId)?o="["+r+"]":o="["+r+"] : ["+this.correlationId+"]":o="["+r+"] : ["+t.correlationId+"]";var i=o+" : "+this.packageName+"@"+this.packageVersion+" : "+je[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,i,t.containsPii||!1)}},n.prototype.executeCallback=function(e,t,r){this.localCallback&&this.localCallback(e,t,r)},n.prototype.error=function(e,t){this.logMessage(e,{logLevel:je.Error,containsPii:!1,correlationId:t||C.EMPTY_STRING})},n.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:je.Error,containsPii:!0,correlationId:t||C.EMPTY_STRING})},n.prototype.warning=function(e,t){this.logMessage(e,{logLevel:je.Warning,containsPii:!1,correlationId:t||C.EMPTY_STRING})},n.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:je.Warning,containsPii:!0,correlationId:t||C.EMPTY_STRING})},n.prototype.info=function(e,t){this.logMessage(e,{logLevel:je.Info,containsPii:!1,correlationId:t||C.EMPTY_STRING})},n.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:je.Info,containsPii:!0,correlationId:t||C.EMPTY_STRING})},n.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:je.Verbose,containsPii:!1,correlationId:t||C.EMPTY_STRING})},n.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:je.Verbose,containsPii:!0,correlationId:t||C.EMPTY_STRING})},n.prototype.trace=function(e,t){this.logMessage(e,{logLevel:je.Trace,containsPii:!1,correlationId:t||C.EMPTY_STRING})},n.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:je.Trace,containsPii:!0,correlationId:t||C.EMPTY_STRING})},n.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var zo="@azure/msal-common",Pr="13.3.3";/*! @azure/msal-common v13.3.3 2024-06-06 */var Dn;(function(n){n[n.None=0]="None",n.AzurePublic="https://login.microsoftonline.com",n.AzurePpe="https://login.windows-ppe.net",n.AzureChina="https://login.chinacloudapi.cn",n.AzureGermany="https://login.microsoftonline.de",n.AzureUsGovernment="https://login.microsoftonline.us"})(Dn||(Dn={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var de={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"},authorityMismatch:{code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."}},Te=function(n){tt(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(de.redirectUriNotSet.code,de.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(de.postLogoutUriNotSet.code,de.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(t){return new e(de.claimsRequestParsingError.code,de.claimsRequestParsingError.desc+" Given value: "+t)},e.createInsecureAuthorityUriError=function(t){return new e(de.authorityUriInsecure.code,de.authorityUriInsecure.desc+" Given URI: "+t)},e.createUrlParseError=function(t){return new e(de.urlParseError.code,de.urlParseError.desc+" Given Error: "+t)},e.createUrlEmptyError=function(){return new e(de.urlEmptyError.code,de.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(de.emptyScopesError.code,""+de.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(t){return new e(de.clientIdSingleScopeError.code,de.clientIdSingleScopeError.desc+" Given Scopes: "+t)},e.createInvalidPromptError=function(t){return new e(de.invalidPrompt.code,de.invalidPrompt.desc+" Given value: "+t)},e.createInvalidClaimsRequestError=function(){return new e(de.invalidClaimsRequest.code,de.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(de.logoutRequestEmptyError.code,de.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(de.tokenRequestEmptyError.code,de.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(de.invalidCodeChallengeMethod.code,de.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(de.invalidCodeChallengeParams.code,de.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(de.invalidCloudDiscoveryMetadata.code,de.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(de.invalidAuthorityMetadata.code,de.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(de.untrustedAuthority.code,de.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(de.invalidAzureCloudInstance.code,de.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(de.missingSshJwk.code,de.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(de.missingSshKid.code,de.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(de.missingNonceAuthenticationHeader.code,de.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(t,r){return new e(de.invalidAuthenticationHeader.code,de.invalidAuthenticationHeader.desc+". Invalid header: "+t+". Details: "+r)},e.createAuthorityMismatchError=function(){return new e(de.authorityMismatch.code,de.authorityMismatch.desc)},e}(Q);/*! @azure/msal-common v13.3.3 2024-06-06 */var We=function(){function n(e){var t=this,r=e?K.trimArrayEntries(Yn(e)):[],o=r?K.removeEmptyStringsFromArray(r):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(function(i){return t.scopes.add(i)})}return n.fromString=function(e){var t=e||C.EMPTY_STRING,r=t.split(" ");return new n(r)},n.createSearchScopes=function(e){var t=new n(e);return t.containsOnlyOIDCScopes()?t.removeScope(C.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t},n.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw Te.createEmptyScopesArrayError()},n.prototype.containsScope=function(e){var t=this.printScopesLowerCase().split(" "),r=new n(t);return K.isEmpty(e)?!1:r.scopes.has(e.toLowerCase())},n.prototype.containsScopeSet=function(e){var t=this;return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(function(r){return t.containsScope(r)})},n.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return Oo.forEach(function(r){e.containsScope(r)&&(t+=1)}),this.scopes.size===t},n.prototype.appendScope=function(e){K.isEmpty(e)||this.scopes.add(e.trim())},n.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(r){return t.appendScope(r)})}catch(r){throw Q.createAppendScopeSetError(r)}},n.prototype.removeScope=function(e){if(K.isEmpty(e))throw Q.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},n.prototype.removeOIDCScopes=function(){var e=this;Oo.forEach(function(t){e.scopes.delete(t)})},n.prototype.unionScopeSets=function(e){if(!e)throw Q.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach(function(r){return t.add(r.toLowerCase())}),this.scopes.forEach(function(r){return t.add(r.toLowerCase())}),t},n.prototype.intersectingScopeSets=function(e){if(!e)throw Q.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),r=e.getScopeCount(),o=this.getScopeCount(),i=t.size;return i<o+r},n.prototype.getScopeCount=function(){return this.scopes.size},n.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(t){return e.push(t)}),e},n.prototype.printScopes=function(){if(this.scopes){var e=this.asArray();return e.join(" ")}return C.EMPTY_STRING},n.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */function nr(n,e){if(K.isEmpty(n))throw Q.createClientInfoEmptyError();try{var t=e.base64Decode(n);return JSON.parse(t)}catch(r){throw Q.createClientInfoDecodingError(r.message)}}function wn(n){if(K.isEmpty(n))throw Q.createClientInfoDecodingError("Home account ID was empty.");var e=n.split(Ue.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?C.EMPTY_STRING:e[1]}}/*! @azure/msal-common v13.3.3 2024-06-06 */var nt;(function(n){n[n.Default=0]="Default",n[n.Adfs=1]="Adfs",n[n.Dsts=2]="Dsts",n[n.Ciam=3]="Ciam"})(nt||(nt={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var bn;(function(n){n.AAD="AAD",n.OIDC="OIDC"})(bn||(bn={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var Ye=function(){function n(){}return n.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(Ue.CACHE_KEY_SEPARATOR).toLowerCase()},n.prototype.generateAccountKey=function(){return n.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},n.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType}},n.generateAccountCacheKey=function(e){var t=[e.homeAccountId,e.environment||C.EMPTY_STRING,e.tenantId||C.EMPTY_STRING];return t.join(Ue.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAccount=function(e,t){var r=new n;t.authorityType===nt.Adfs?r.authorityType=un.ADFS_ACCOUNT_TYPE:t.protocolMode===bn.AAD?r.authorityType=un.MSSTS_ACCOUNT_TYPE:r.authorityType=un.GENERIC_ACCOUNT_TYPE,r.clientInfo=e.clientInfo,r.homeAccountId=e.homeAccountId,r.nativeAccountId=e.nativeAccountId;var o=e.environment||t&&t.getPreferredCache();if(!o)throw Q.createInvalidCacheEnvironmentError();if(r.environment=o,r.realm=e.idTokenClaims.tid||C.EMPTY_STRING,r.idTokenClaims=e.idTokenClaims,r.localAccountId=e.idTokenClaims.oid||e.idTokenClaims.sub||C.EMPTY_STRING,r.authorityType===un.MSSTS_ACCOUNT_TYPE){var i=e.idTokenClaims.preferred_username,l=e.idTokenClaims.emails?e.idTokenClaims.emails[0]:null;r.username=i||l||""}else r.username=e.idTokenClaims.upn||"";return r.name=e.idTokenClaims.name,r.cloudGraphHostName=e.cloudGraphHostName,r.msGraphHost=e.msGraphHost,r},n.createFromAccountInfo=function(e,t,r){var o=new n;return o.authorityType=e.authorityType||un.GENERIC_ACCOUNT_TYPE,o.homeAccountId=e.homeAccountId,o.localAccountId=e.localAccountId,o.nativeAccountId=e.nativeAccountId,o.realm=e.tenantId,o.environment=e.environment,o.username=e.username,o.name=e.name,o.idTokenClaims=e.idTokenClaims,o.cloudGraphHostName=t,o.msGraphHost=r,o},n.generateHomeAccountId=function(e,t,r,o,i){var l=i!=null&&i.sub?i.sub:C.EMPTY_STRING;if(t===nt.Adfs||t===nt.Dsts)return l;if(e)try{var d=nr(e,o);if(!K.isEmpty(d.uid)&&!K.isEmpty(d.utid))return""+d.uid+Ue.CLIENT_INFO_SEPARATOR+d.utid}catch{}return r.verbose("No client info in response"),l},n.isAccountEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1},n.accountInfoIsEqual=function(e,t,r){if(!e||!t)return!1;var o=!0;if(r){var i=e.idTokenClaims||{},l=t.idTokenClaims||{};o=i.iat===l.iat&&i.nonce===l.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&o},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var Bt=function(){function n(e,t){if(K.isEmpty(e))throw Q.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=n.extractTokenClaims(e,t)}return n.extractTokenClaims=function(e,t){var r=K.decodeAuthToken(e);try{var o=r.JWSPayload,i=t.base64Decode(o);return JSON.parse(i)}catch(l){throw Q.createTokenParsingError(l)}},n.checkMaxAge=function(e,t){var r=3e5;if(t===0||Date.now()-r>e+t)throw Q.createMaxAgeTranspiredError()},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var rt=function(){function n(e,t,r){this.clientId=e,this.cryptoImpl=t,this.commonLogger=r.clone(zo,Pr)}return n.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();if(t.length<1)return[];var r=t.reduce(function(i,l){var d=e.getAccount(l);return d&&i.push(d),i},[]);if(r.length<1)return[];var o=r.map(function(i){return e.getAccountInfoFromEntity(i)});return o},n.prototype.getAccountInfoFilteredBy=function(e){var t=this.getAccountsFilteredBy(e);return t.length>0?this.getAccountInfoFromEntity(t[0]):null},n.prototype.getAccountInfoFromEntity=function(e){var t=e.getAccountInfo(),r=this.getIdToken(t);return r&&(t.idToken=r.secret,t.idTokenClaims=new Bt(r.secret,this.cryptoImpl).claims),t},n.prototype.saveCacheRecord=function(e){return ce(this,void 0,void 0,function(){return le(this,function(t){switch(t.label){case 0:if(!e)throw Q.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAccessToken(e.accessToken)]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}})})},n.prototype.saveAccessToken=function(e){return ce(this,void 0,void 0,function(){var t,r,o,i,l=this;return le(this,function(d){switch(d.label){case 0:return t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},r=this.getTokenKeys(),o=We.fromString(e.target),i=[],r.accessToken.forEach(function(h){if(l.accessTokenKeyMatchesFilter(h,t,!1)){var f=l.getAccessTokenCredential(h);if(f&&l.credentialMatchesFilter(f,t)){var u=We.fromString(f.target);u.intersectingScopeSets(o)&&i.push(l.removeAccessToken(h))}}}),[4,Promise.all(i)];case 1:return d.sent(),this.setAccessTokenCredential(e),[2]}})})},n.prototype.getAccountsFilteredBy=function(e){var t=this,r=this.getAccountKeys(),o=[];return r.forEach(function(i){if(t.isAccountKey(i,e.homeAccountId,e.realm)){var l=t.getAccount(i);l&&(e.homeAccountId&&!t.matchHomeAccountId(l,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(l,e.localAccountId)||e.username&&!t.matchUsername(l,e.username)||e.environment&&!t.matchEnvironment(l,e.environment)||e.realm&&!t.matchRealm(l,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(l,e.nativeAccountId)||o.push(l))}}),o},n.prototype.isAccountKey=function(e,t,r){return!(e.split(Ue.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||r&&!e.toLowerCase().includes(r.toLowerCase()))},n.prototype.isCredentialKey=function(e){if(e.split(Ue.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(t.indexOf(te.ID_TOKEN.toLowerCase())===-1&&t.indexOf(te.ACCESS_TOKEN.toLowerCase())===-1&&t.indexOf(te.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&t.indexOf(te.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(t.indexOf(te.REFRESH_TOKEN.toLowerCase())>-1){var r=""+te.REFRESH_TOKEN+Ue.CACHE_KEY_SEPARATOR+this.clientId+Ue.CACHE_KEY_SEPARATOR,o=""+te.REFRESH_TOKEN+Ue.CACHE_KEY_SEPARATOR+xn+Ue.CACHE_KEY_SEPARATOR;if(t.indexOf(r.toLowerCase())===-1&&t.indexOf(o.toLowerCase())===-1)return!1}else if(t.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0},n.prototype.credentialMatchesFilter=function(e,t){return!(t.clientId&&!this.matchClientId(e,t.clientId)||t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash)||typeof t.homeAccountId=="string"&&!this.matchHomeAccountId(e,t.homeAccountId)||t.environment&&!this.matchEnvironment(e,t.environment)||t.realm&&!this.matchRealm(e,t.realm)||t.credentialType&&!this.matchCredentialType(e,t.credentialType)||t.familyId&&!this.matchFamilyId(e,t.familyId)||t.target&&!this.matchTarget(e,t.target)||(t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash||e.credentialType===te.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===ke.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId)))},n.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},n.prototype.getAppMetadataFilteredByInternal=function(e,t){var r=this,o=this.getKeys(),i={};return o.forEach(function(l){if(r.isAppMetadata(l)){var d=r.getAppMetadata(l);d&&(e&&!r.matchEnvironment(d,e)||t&&!r.matchClientId(d,t)||(i[l]=d))}}),i},n.prototype.getAuthorityMetadataByAlias=function(e){var t=this,r=this.getAuthorityMetadataKeys(),o=null;return r.forEach(function(i){if(!(!t.isAuthorityMetadata(i)||i.indexOf(t.clientId)===-1)){var l=t.getAuthorityMetadata(i);l&&l.aliases.indexOf(e)!==-1&&(o=l)}}),o},n.prototype.removeAllAccounts=function(){return ce(this,void 0,void 0,function(){var e,t,r=this;return le(this,function(o){switch(o.label){case 0:return e=this.getAccountKeys(),t=[],e.forEach(function(i){t.push(r.removeAccount(i))}),[4,Promise.all(t)];case 1:return o.sent(),[2]}})})},n.prototype.removeAccount=function(e){return ce(this,void 0,void 0,function(){var t;return le(this,function(r){switch(r.label){case 0:if(t=this.getAccount(e),!t)throw Q.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return r.sent(),this.removeItem(e),[2]}})})},n.prototype.removeAccountContext=function(e){return ce(this,void 0,void 0,function(){var t,r,o,i=this;return le(this,function(l){switch(l.label){case 0:return t=this.getTokenKeys(),r=e.generateAccountId(),o=[],t.idToken.forEach(function(d){d.indexOf(r)===0&&i.removeIdToken(d)}),t.accessToken.forEach(function(d){d.indexOf(r)===0&&o.push(i.removeAccessToken(d))}),t.refreshToken.forEach(function(d){d.indexOf(r)===0&&i.removeRefreshToken(d)}),[4,Promise.all(o)];case 1:return l.sent(),[2]}})})},n.prototype.removeAccessToken=function(e){return ce(this,void 0,void 0,function(){var t,r,o;return le(this,function(i){switch(i.label){case 0:if(t=this.getAccessTokenCredential(e),!t)return[2];if(t.credentialType.toLowerCase()!==te.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==ke.POP)return[3,4];if(r=t,o=r.keyId,!o)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(o)];case 2:return i.sent(),[3,4];case 3:throw i.sent(),Q.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}})})},n.prototype.removeAppMetadata=function(){var e=this,t=this.getKeys();return t.forEach(function(r){e.isAppMetadata(r)&&e.removeItem(r)}),!0},n.prototype.readCacheRecord=function(e,t,r){var o=this.getTokenKeys(),i=this.readAccountFromCache(e),l=this.getIdToken(e,o),d=this.getAccessToken(e,t,o),h=this.getRefreshToken(e,!1,o),f=this.readAppMetadataFromCache(r);return i&&l&&(i.idTokenClaims=new Bt(l.secret,this.cryptoImpl).claims),{account:i,idToken:l,accessToken:d,refreshToken:h,appMetadata:f}},n.prototype.readAccountFromCache=function(e){var t=Ye.generateAccountCacheKey(e);return this.getAccount(t)},n.prototype.getIdToken=function(e,t){var r=this;this.commonLogger.trace("CacheManager - getIdToken called");var o={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:te.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},i=this.getIdTokensByFilter(o,t),l=i.length;return l<1?(this.commonLogger.info("CacheManager:getIdToken - No token found"),null):l>1?(this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them"),i.forEach(function(d){r.removeIdToken(d.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getIdToken - Returning id token"),i[0])},n.prototype.getIdTokensByFilter=function(e,t){var r=this,o=t&&t.idToken||this.getTokenKeys().idToken,i=[];return o.forEach(function(l){if(r.idTokenKeyMatchesFilter(l,ve({clientId:r.clientId},e))){var d=r.getIdTokenCredential(l);d&&r.credentialMatchesFilter(d,e)&&i.push(d)}}),i},n.prototype.idTokenKeyMatchesFilter=function(e,t){var r=e.toLowerCase();return!(t.clientId&&r.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&r.indexOf(t.homeAccountId.toLowerCase())===-1)},n.prototype.removeIdToken=function(e){this.removeItem(e)},n.prototype.removeRefreshToken=function(e){this.removeItem(e)},n.prototype.getAccessToken=function(e,t,r){var o=this;this.commonLogger.trace("CacheManager - getAccessToken called");var i=We.createSearchScopes(t.scopes),l=t.authenticationScheme||ke.BEARER,d=l&&l.toLowerCase()!==ke.BEARER.toLowerCase()?te.ACCESS_TOKEN_WITH_AUTH_SCHEME:te.ACCESS_TOKEN,h={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:d,clientId:this.clientId,realm:e.tenantId,target:i,tokenType:l,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},f=r&&r.accessToken||this.getTokenKeys().accessToken,u=[];f.forEach(function(_){if(o.accessTokenKeyMatchesFilter(_,h,!0)){var k=o.getAccessTokenCredential(_);k&&o.credentialMatchesFilter(k,h)&&u.push(k)}});var y=u.length;return y<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):y>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),u.forEach(function(_){o.removeAccessToken(_.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),u[0])},n.prototype.accessTokenKeyMatchesFilter=function(e,t,r){var o=e.toLowerCase();if(t.clientId&&o.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&o.indexOf(t.homeAccountId.toLowerCase())===-1||t.realm&&o.indexOf(t.realm.toLowerCase())===-1||t.requestedClaimsHash&&o.indexOf(t.requestedClaimsHash.toLowerCase())===-1)return!1;if(t.target)for(var i=t.target.asArray(),l=0;l<i.length;l++){if(r&&!o.includes(i[l].toLowerCase()))return!1;if(!r&&o.includes(i[l].toLowerCase()))return!0}return!0},n.prototype.getAccessTokensByFilter=function(e){var t=this,r=this.getTokenKeys(),o=[];return r.accessToken.forEach(function(i){if(t.accessTokenKeyMatchesFilter(i,e,!0)){var l=t.getAccessTokenCredential(i);l&&t.credentialMatchesFilter(l,e)&&o.push(l)}}),o},n.prototype.getRefreshToken=function(e,t,r){var o=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var i=t?xn:void 0,l={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:te.REFRESH_TOKEN,clientId:this.clientId,familyId:i},d=r&&r.refreshToken||this.getTokenKeys().refreshToken,h=[];d.forEach(function(u){if(o.refreshTokenKeyMatchesFilter(u,l)){var y=o.getRefreshTokenCredential(u);y&&o.credentialMatchesFilter(y,l)&&h.push(y)}});var f=h.length;return f<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),h[0])},n.prototype.refreshTokenKeyMatchesFilter=function(e,t){var r=e.toLowerCase();return!(t.familyId&&r.indexOf(t.familyId.toLowerCase())===-1||!t.familyId&&t.clientId&&r.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&r.indexOf(t.homeAccountId.toLowerCase())===-1)},n.prototype.readAppMetadataFromCache=function(e){var t={environment:e,clientId:this.clientId},r=this.getAppMetadataFilteredBy(t),o=Object.keys(r).map(function(l){return r[l]}),i=o.length;if(i<1)return null;if(i>1)throw Q.createMultipleMatchingAppMetadataInCacheError();return o[0]},n.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===xn)},n.prototype.matchHomeAccountId=function(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId},n.prototype.matchLocalAccountId=function(e,t){return typeof e.localAccountId=="string"&&t===e.localAccountId},n.prototype.matchUsername=function(e,t){return typeof e.username=="string"&&t.toLowerCase()===e.username.toLowerCase()},n.prototype.matchUserAssertionHash=function(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)},n.prototype.matchEnvironment=function(e,t){var r=this.getAuthorityMetadataByAlias(t);return!!(r&&r.aliases.indexOf(e.environment)>-1)},n.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},n.prototype.matchClientId=function(e,t){return!!(e.clientId&&t===e.clientId)},n.prototype.matchFamilyId=function(e,t){return!!(e.familyId&&t===e.familyId)},n.prototype.matchRealm=function(e,t){return!!(e.realm&&t===e.realm)},n.prototype.matchNativeAccountId=function(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)},n.prototype.matchTarget=function(e,t){var r=e.credentialType!==te.ACCESS_TOKEN&&e.credentialType!==te.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(r||!e.target)return!1;var o=We.fromString(e.target);return o.containsScopeSet(t)},n.prototype.matchTokenType=function(e,t){return!!(e.tokenType&&e.tokenType===t)},n.prototype.matchKeyId=function(e,t){return!!(e.keyId&&e.keyId===t)},n.prototype.isAppMetadata=function(e){return e.indexOf(Ar)!==-1},n.prototype.isAuthorityMetadata=function(e){return e.indexOf(Bn.CACHE_KEY)!==-1},n.prototype.generateAuthorityMetadataCacheKey=function(e){return Bn.CACHE_KEY+"-"+this.clientId+"-"+e},n.toObject=function(e,t){for(var r in t)e[r]=t[r];return e},n}(),na=function(n){tt(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.setAccount=function(){var t="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.getAccount=function(){var t="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.setIdTokenCredential=function(){var t="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.getIdTokenCredential=function(){var t="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.setAccessTokenCredential=function(){var t="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.getAccessTokenCredential=function(){var t="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.setRefreshTokenCredential=function(){var t="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.getRefreshTokenCredential=function(){var t="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.setAppMetadata=function(){var t="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.getAppMetadata=function(){var t="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.setServerTelemetry=function(){var t="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.getServerTelemetry=function(){var t="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.setAuthorityMetadata=function(){var t="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.getAuthorityMetadata=function(){var t="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.getAuthorityMetadataKeys=function(){var t="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.setThrottlingCache=function(){var t="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.getThrottlingCache=function(){var t="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.removeItem=function(){var t="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.containsKey=function(){var t="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.getKeys=function(){var t="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.getAccountKeys=function(){var t="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.getTokenKeys=function(){var t="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e.prototype.clear=function(){return ce(this,void 0,void 0,function(){var t;return le(this,function(r){throw t="Storage interface - clear() has not been implemented for the cacheStorage interface.",X.createUnexpectedError(t)})})},e.prototype.updateCredentialCacheKey=function(){var t="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw X.createUnexpectedError(t)},e}(rt);/*! @azure/msal-common v13.3.3 2024-06-06 */var ra=300,Uo={tokenRenewalOffsetSeconds:ra,preventCorsPreflight:!1},oa={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:je.Info,correlationId:C.EMPTY_STRING},ia={claimsBasedCachingEnabled:!0},aa={sendGetRequestAsync:function(){return ce(this,void 0,void 0,function(){var n;return le(this,function(e){throw n="Network interface - sendGetRequestAsync() has not been implemented",X.createUnexpectedError(n)})})},sendPostRequestAsync:function(){return ce(this,void 0,void 0,function(){var n;return le(this,function(e){throw n="Network interface - sendPostRequestAsync() has not been implemented",X.createUnexpectedError(n)})})}},sa={sku:C.SKU,version:Pr,cpu:C.EMPTY_STRING,os:C.EMPTY_STRING},ca={clientSecret:C.EMPTY_STRING,clientAssertion:void 0},la={azureCloudInstance:Dn.None,tenant:""+C.DEFAULT_COMMON_TENANT},da={application:{appName:"",appVersion:""}};function ua(n){var e=n.authOptions,t=n.systemOptions,r=n.loggerOptions,o=n.cacheOptions,i=n.storageInterface,l=n.networkInterface,d=n.cryptoInterface,h=n.clientCredentials,f=n.libraryInfo,u=n.telemetry,y=n.serverTelemetryManager,_=n.persistencePlugin,k=n.serializableCache,T=ve(ve({},oa),r);return{authOptions:pa(e),systemOptions:ve(ve({},Uo),t),loggerOptions:T,cacheOptions:ve(ve({},ia),o),storageInterface:i||new na(e.clientId,tr,new Nr(T)),networkInterface:l||aa,cryptoInterface:d||tr,clientCredentials:h||ca,libraryInfo:ve(ve({},sa),f),telemetry:ve(ve({},da),u),serverTelemetryManager:y||null,persistencePlugin:_||null,serializableCache:k||null}}function pa(n){return ve({clientCapabilities:[],azureCloudOptions:la,skipAuthorityMetadataCache:!1},n)}/*! @azure/msal-common v13.3.3 2024-06-06 */var pn=function(n){tt(e,n);function e(t,r,o){var i=n.call(this,t,r,o)||this;return i.name="ServerError",Object.setPrototypeOf(i,e.prototype),i}return e}(X);/*! @azure/msal-common v13.3.3 2024-06-06 */var rr=function(){function n(){}return n.generateThrottlingStorageKey=function(e){return zn.THROTTLING_PREFIX+"."+JSON.stringify(e)},n.preProcess=function(e,t){var r,o=n.generateThrottlingStorageKey(t),i=e.getThrottlingCache(o);if(i){if(i.throttleTime<Date.now()){e.removeItem(o);return}throw new pn(((r=i.errorCodes)===null||r===void 0?void 0:r.join(" "))||C.EMPTY_STRING,i.errorMessage,i.subError)}},n.postProcess=function(e,t,r){if(n.checkResponseStatus(r)||n.checkResponseForRetryAfter(r)){var o={throttleTime:n.calculateThrottleTime(parseInt(r.headers[dt.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};e.setThrottlingCache(n.generateThrottlingStorageKey(t),o)}},n.checkResponseStatus=function(e){return e.status===429||e.status>=500&&e.status<600},n.checkResponseForRetryAfter=function(e){return e.headers?e.headers.hasOwnProperty(dt.RETRY_AFTER)&&(e.status<200||e.status>=300):!1},n.calculateThrottleTime=function(e){var t=e<=0?0:e,r=Date.now()/1e3;return Math.floor(Math.min(r+(t||zn.DEFAULT_THROTTLE_TIME_SECONDS),r+zn.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},n.removeThrottle=function(e,t,r,o){var i={clientId:t,authority:r.authority,scopes:r.scopes,homeAccountIdentifier:o,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},l=this.generateThrottlingStorageKey(i);e.removeItem(l)},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var ha=function(){function n(e,t){this.networkClient=e,this.cacheManager=t}return n.prototype.sendPostRequest=function(e,t,r){return ce(this,void 0,void 0,function(){var o,i;return le(this,function(l){switch(l.label){case 0:rr.preProcess(this.cacheManager,e),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,r)];case 2:return o=l.sent(),[3,4];case 3:throw i=l.sent(),i instanceof X?i:Q.createNetworkError(t,i);case 4:return rr.postProcess(this.cacheManager,e,o),[2,o]}})})},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var ut;(function(n){n.HOME_ACCOUNT_ID="home_account_id",n.UPN="UPN"})(ut||(ut={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var hn=function(){function n(){}return n.validateRedirectUri=function(e){if(K.isEmpty(e))throw Te.createRedirectUriEmptyError()},n.validatePrompt=function(e){var t=[];for(var r in Qe)t.push(Qe[r]);if(t.indexOf(e)<0)throw Te.createInvalidPromptError(e)},n.validateClaims=function(e){try{JSON.parse(e)}catch{throw Te.createInvalidClaimsRequestError()}},n.validateCodeChallengeParams=function(e,t){if(K.isEmpty(e)||K.isEmpty(t))throw Te.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},n.validateCodeChallengeMethod=function(e){if([xo.PLAIN,xo.S256].indexOf(e)<0)throw Te.createInvalidCodeChallengeMethodError()},n.sanitizeEQParams=function(e,t){return e?(t.forEach(function(r,o){e[o]&&delete e[o]}),Object.fromEntries(Object.entries(e).filter(function(r){var o=r[1];return o!==""}))):{}},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var Fn=function(){function n(){this.parameters=new Map}return n.prototype.addResponseTypeCode=function(){this.parameters.set(ue.RESPONSE_TYPE,encodeURIComponent(C.CODE_RESPONSE_TYPE))},n.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(ue.RESPONSE_TYPE,encodeURIComponent(C.TOKEN_RESPONSE_TYPE+" "+C.ID_TOKEN_RESPONSE_TYPE))},n.prototype.addResponseMode=function(e){this.parameters.set(ue.RESPONSE_MODE,encodeURIComponent(e||Jn.QUERY))},n.prototype.addNativeBroker=function(){this.parameters.set(ue.NATIVE_BROKER,encodeURIComponent("1"))},n.prototype.addScopes=function(e,t){t===void 0&&(t=!0);var r=t?Yn(e||[],Mn):e||[],o=new We(r);this.parameters.set(ue.SCOPE,encodeURIComponent(o.printScopes()))},n.prototype.addClientId=function(e){this.parameters.set(ue.CLIENT_ID,encodeURIComponent(e))},n.prototype.addRedirectUri=function(e){hn.validateRedirectUri(e),this.parameters.set(ue.REDIRECT_URI,encodeURIComponent(e))},n.prototype.addPostLogoutRedirectUri=function(e){hn.validateRedirectUri(e),this.parameters.set(ue.POST_LOGOUT_URI,encodeURIComponent(e))},n.prototype.addIdTokenHint=function(e){this.parameters.set(ue.ID_TOKEN_HINT,encodeURIComponent(e))},n.prototype.addDomainHint=function(e){this.parameters.set(Ln.DOMAIN_HINT,encodeURIComponent(e))},n.prototype.addLoginHint=function(e){this.parameters.set(Ln.LOGIN_HINT,encodeURIComponent(e))},n.prototype.addCcsUpn=function(e){this.parameters.set(dt.CCS_HEADER,encodeURIComponent("UPN:"+e))},n.prototype.addCcsOid=function(e){this.parameters.set(dt.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},n.prototype.addSid=function(e){this.parameters.set(Ln.SID,encodeURIComponent(e))},n.prototype.addClaims=function(e,t){var r=this.addClientCapabilitiesToClaims(e,t);hn.validateClaims(r),this.parameters.set(ue.CLAIMS,encodeURIComponent(r))},n.prototype.addCorrelationId=function(e){this.parameters.set(ue.CLIENT_REQUEST_ID,encodeURIComponent(e))},n.prototype.addLibraryInfo=function(e){this.parameters.set(ue.X_CLIENT_SKU,e.sku),this.parameters.set(ue.X_CLIENT_VER,e.version),e.os&&this.parameters.set(ue.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(ue.X_CLIENT_CPU,e.cpu)},n.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(ue.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(ue.X_APP_VER,e.appVersion)},n.prototype.addPrompt=function(e){hn.validatePrompt(e),this.parameters.set(""+ue.PROMPT,encodeURIComponent(e))},n.prototype.addState=function(e){K.isEmpty(e)||this.parameters.set(ue.STATE,encodeURIComponent(e))},n.prototype.addNonce=function(e){this.parameters.set(ue.NONCE,encodeURIComponent(e))},n.prototype.addCodeChallengeParams=function(e,t){if(hn.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(ue.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(ue.CODE_CHALLENGE_METHOD,encodeURIComponent(t));else throw Te.createInvalidCodeChallengeParamsError()},n.prototype.addAuthorizationCode=function(e){this.parameters.set(ue.CODE,encodeURIComponent(e))},n.prototype.addDeviceCode=function(e){this.parameters.set(ue.DEVICE_CODE,encodeURIComponent(e))},n.prototype.addRefreshToken=function(e){this.parameters.set(ue.REFRESH_TOKEN,encodeURIComponent(e))},n.prototype.addCodeVerifier=function(e){this.parameters.set(ue.CODE_VERIFIER,encodeURIComponent(e))},n.prototype.addClientSecret=function(e){this.parameters.set(ue.CLIENT_SECRET,encodeURIComponent(e))},n.prototype.addClientAssertion=function(e){K.isEmpty(e)||this.parameters.set(ue.CLIENT_ASSERTION,encodeURIComponent(e))},n.prototype.addClientAssertionType=function(e){K.isEmpty(e)||this.parameters.set(ue.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},n.prototype.addOboAssertion=function(e){this.parameters.set(ue.OBO_ASSERTION,encodeURIComponent(e))},n.prototype.addRequestTokenUse=function(e){this.parameters.set(ue.REQUESTED_TOKEN_USE,encodeURIComponent(e))},n.prototype.addGrantType=function(e){this.parameters.set(ue.GRANT_TYPE,encodeURIComponent(e))},n.prototype.addClientInfo=function(){this.parameters.set(ta,"1")},n.prototype.addExtraQueryParameters=function(e){var t=this,r=hn.sanitizeEQParams(e,this.parameters);Object.keys(r).forEach(function(o){t.parameters.set(o,e[o])})},n.prototype.addClientCapabilitiesToClaims=function(e,t){var r;if(!e)r={};else try{r=JSON.parse(e)}catch{throw Te.createInvalidClaimsRequestError()}return t&&t.length>0&&(r.hasOwnProperty(yn.ACCESS_TOKEN)||(r[yn.ACCESS_TOKEN]={}),r[yn.ACCESS_TOKEN][yn.XMS_CC]={values:t}),JSON.stringify(r)},n.prototype.addUsername=function(e){this.parameters.set(Zn.username,encodeURIComponent(e))},n.prototype.addPassword=function(e){this.parameters.set(Zn.password,encodeURIComponent(e))},n.prototype.addPopToken=function(e){K.isEmpty(e)||(this.parameters.set(ue.TOKEN_TYPE,ke.POP),this.parameters.set(ue.REQ_CNF,encodeURIComponent(e)))},n.prototype.addSshJwk=function(e){K.isEmpty(e)||(this.parameters.set(ue.TOKEN_TYPE,ke.SSH),this.parameters.set(ue.REQ_CNF,encodeURIComponent(e)))},n.prototype.addServerTelemetry=function(e){this.parameters.set(ue.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(ue.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},n.prototype.addThrottling=function(){this.parameters.set(ue.X_MS_LIB_CAPABILITY,zn.X_MS_LIB_CAPABILITY_VALUE)},n.prototype.addLogoutHint=function(e){this.parameters.set(ue.LOGOUT_HINT,encodeURIComponent(e))},n.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(t,r){e.push(r+"="+t)}),e.join("&")},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var Mr=function(){function n(e,t){this.config=ua(e),this.logger=new Nr(this.config.loggerOptions,zo,Pr),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new ha(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return n.prototype.createTokenRequestHeaders=function(e){var t={};if(t[dt.CONTENT_TYPE]=C.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case ut.HOME_ACCOUNT_ID:try{var r=wn(e.credential);t[dt.CCS_HEADER]="Oid:"+r.uid+"@"+r.utid}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case ut.UPN:t[dt.CCS_HEADER]="UPN: "+e.credential;break}return t},n.prototype.executePostToTokenEndpoint=function(e,t,r,o){return ce(this,void 0,void 0,function(){var i;return le(this,function(l){switch(l.label){case 0:return[4,this.networkManager.sendPostRequest(o,e,{body:t,headers:r})];case 1:return i=l.sent(),this.config.serverTelemetryManager&&i.status<500&&i.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}})})},n.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw Q.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},n.prototype.createTokenQueryParameters=function(e){var t=new Fn;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var Lr=function(){function n(){}return n.prototype.generateAccountId=function(){return n.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},n.prototype.generateCredentialId=function(){return n.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},n.prototype.generateTarget=function(){return n.generateTargetForCacheKey(this.target)},n.prototype.generateCredentialKey=function(){return n.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},n.prototype.generateType=function(){switch(this.credentialType){case te.ID_TOKEN:return On.ID_TOKEN;case te.ACCESS_TOKEN:case te.ACCESS_TOKEN_WITH_AUTH_SCHEME:return On.ACCESS_TOKEN;case te.REFRESH_TOKEN:return On.REFRESH_TOKEN;default:throw Q.createUnexpectedCredentialTypeError()}},n.generateCredentialCacheKey=function(e,t,r,o,i,l,d,h,f){var u=[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(r,o,i,d),this.generateTargetForCacheKey(l),this.generateClaimsHashForCacheKey(f),this.generateSchemeForCacheKey(h)];return u.join(Ue.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateAccountIdForCacheKey=function(e,t){var r=[e,t];return r.join(Ue.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateCredentialIdForCacheKey=function(e,t,r,o){var i=e===te.REFRESH_TOKEN&&o||t,l=[e,i,r||C.EMPTY_STRING];return l.join(Ue.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateTargetForCacheKey=function(e){return(e||C.EMPTY_STRING).toLowerCase()},n.generateClaimsHashForCacheKey=function(e){return(e||C.EMPTY_STRING).toLowerCase()},n.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==ke.BEARER.toLowerCase()?e.toLowerCase():C.EMPTY_STRING},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var tn=function(n){tt(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createIdTokenEntity=function(t,r,o,i,l){var d=new e;return d.credentialType=te.ID_TOKEN,d.homeAccountId=t,d.environment=r,d.clientId=i,d.secret=o,d.realm=l,d},e.isIdTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===te.ID_TOKEN:!1},e}(Lr);/*! @azure/msal-common v13.3.3 2024-06-06 */var vt=function(){function n(){}return n.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},n.isTokenExpired=function(e,t){var r=Number(e)||0,o=n.nowSeconds()+t;return o>r},n.wasClockTurnedBack=function(e){var t=Number(e);return t>n.nowSeconds()},n.delay=function(e,t){return new Promise(function(r){return setTimeout(function(){return r(t)},e)})},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var nn=function(n){tt(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createAccessTokenEntity=function(t,r,o,i,l,d,h,f,u,y,_,k,T,O,M){var F,N,S=new e;S.homeAccountId=t,S.credentialType=te.ACCESS_TOKEN,S.secret=o;var z=vt.nowSeconds();if(S.cachedAt=z.toString(),S.expiresOn=h.toString(),S.extendedExpiresOn=f.toString(),y&&(S.refreshOn=y.toString()),S.environment=r,S.clientId=i,S.realm=l,S.target=d,S.userAssertionHash=k,S.tokenType=K.isEmpty(_)?ke.BEARER:_,O&&(S.requestedClaims=O,S.requestedClaimsHash=M),((F=S.tokenType)===null||F===void 0?void 0:F.toLowerCase())!==ke.BEARER.toLowerCase())switch(S.credentialType=te.ACCESS_TOKEN_WITH_AUTH_SCHEME,S.tokenType){case ke.POP:var V=Bt.extractTokenClaims(o,u);if(!(!((N=V==null?void 0:V.cnf)===null||N===void 0)&&N.kid))throw Q.createTokenClaimsRequiredError();S.keyId=V.cnf.kid;break;case ke.SSH:S.keyId=T}return S},e.isAccessTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.hasOwnProperty("target")&&(t.credentialType===te.ACCESS_TOKEN||t.credentialType===te.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(Lr);/*! @azure/msal-common v13.3.3 2024-06-06 */var kn=function(n){tt(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(t,r,o,i,l,d){var h=new e;return h.clientId=i,h.credentialType=te.REFRESH_TOKEN,h.environment=r,h.homeAccountId=t,h.secret=o,h.userAssertionHash=d,l&&(h.familyId=l),h},e.isRefreshTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===te.REFRESH_TOKEN:!1},e}(Lr);/*! @azure/msal-common v13.3.3 2024-06-06 */var Do=["interaction_required","consent_required","login_required"],ma=["message_only","additional_action","basic_action","user_password_expired","consent_required"],En={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},At=function(n){tt(e,n);function e(t,r,o,i,l,d,h){var f=n.call(this,t,r,o)||this;return Object.setPrototypeOf(f,e.prototype),f.timestamp=i||C.EMPTY_STRING,f.traceId=l||C.EMPTY_STRING,f.correlationId=d||C.EMPTY_STRING,f.claims=h||C.EMPTY_STRING,f.name="InteractionRequiredAuthError",f}return e.isInteractionRequiredError=function(t,r,o){var i=!!t&&Do.indexOf(t)>-1,l=!!o&&ma.indexOf(o)>-1,d=!!r&&Do.some(function(h){return r.indexOf(h)>-1});return i||d||l},e.createNoTokensFoundError=function(){return new e(En.noTokensFoundError.code,En.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(En.native_account_unavailable.code,En.native_account_unavailable.desc)},e}(X);/*! @azure/msal-common v13.3.3 2024-06-06 */var Cn=function(){function n(e,t,r,o,i){this.account=e||null,this.idToken=t||null,this.accessToken=r||null,this.refreshToken=o||null,this.appMetadata=i||null}return n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var Gt=function(){function n(){}return n.setRequestState=function(e,t,r){var o=n.generateLibraryState(e,r);return K.isEmpty(t)?o:""+o+C.RESOURCE_DELIM+t},n.generateLibraryState=function(e,t){if(!e)throw Q.createNoCryptoObjectError("generateLibraryState");var r={id:e.createNewGuid()};t&&(r.meta=t);var o=JSON.stringify(r);return e.base64Encode(o)},n.parseRequestState=function(e,t){if(!e)throw Q.createNoCryptoObjectError("parseRequestState");if(K.isEmpty(t))throw Q.createInvalidStateError(t,"Null, undefined or empty state");try{var r=t.split(C.RESOURCE_DELIM),o=r[0],i=r.length>1?r.slice(1).join(C.RESOURCE_DELIM):C.EMPTY_STRING,l=e.base64Decode(o),d=JSON.parse(l);return{userRequestState:K.isEmpty(i)?C.EMPTY_STRING:i,libraryState:d}}catch(h){throw Q.createInvalidStateError(t,h)}},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var ge=function(){function n(e){if(this._urlString=e,K.isEmpty(this._urlString))throw Te.createUrlEmptyError();K.isEmpty(this.getHash())&&(this._urlString=n.canonicalizeUri(e))}return Object.defineProperty(n.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),n.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return K.endsWith(t,"?")?t=t.slice(0,-1):K.endsWith(t,"?/")&&(t=t.slice(0,-2)),K.endsWith(t,"/")||(t+="/"),t}return e},n.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw Te.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw Te.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Te.createInsecureAuthorityUriError(this.urlString)},n.appendQueryString=function(e,t){return K.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},n.removeHashFromUrl=function(e){return n.canonicalizeUri(e.split("#")[0])},n.prototype.replaceTenantPath=function(e){var t=this.getUrlComponents(),r=t.PathSegments;return e&&r.length!==0&&(r[0]===dn.COMMON||r[0]===dn.ORGANIZATIONS)&&(r[0]=e),n.constructAuthorityUriFromObject(t)},n.prototype.getHash=function(){return n.parseHash(this.urlString)},n.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw Te.createUrlParseError("Given url string: "+this.urlString);var r={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},o=r.AbsolutePath.split("/");return o=o.filter(function(i){return i&&i.length>0}),r.PathSegments=o,!K.isEmpty(r.QueryString)&&r.QueryString.endsWith("/")&&(r.QueryString=r.QueryString.substring(0,r.QueryString.length-1)),r},n.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),r=e.match(t);if(!r)throw Te.createUrlParseError("Given url string: "+e);return r[2]},n.getAbsoluteUrl=function(e,t){if(e[0]===C.FORWARD_SLASH){var r=new n(t),o=r.getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e},n.parseHash=function(e){var t=e.indexOf("#"),r=e.indexOf("#/");return r>-1?e.substring(r+2):t>-1?e.substring(t+1):C.EMPTY_STRING},n.parseQueryString=function(e){var t=e.indexOf("?"),r=e.indexOf("/?");return r>-1?e.substring(r+2):t>-1?e.substring(t+1):C.EMPTY_STRING},n.constructAuthorityUriFromObject=function(e){return new n(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},n.getDeserializedHash=function(e){if(K.isEmpty(e))return{};var t=n.parseHash(e),r=K.queryStringToObject(K.isEmpty(t)?e:t);if(!r)throw Q.createHashNotDeserializedError(JSON.stringify(r));return r},n.getDeserializedQueryString=function(e){if(K.isEmpty(e))return{};var t=n.parseQueryString(e),r=K.queryStringToObject(K.isEmpty(t)?e:t);if(!r)throw Q.createHashNotDeserializedError(JSON.stringify(r));return r},n.hashContainsKnownProperties=function(e){if(K.isEmpty(e)||e.indexOf("=")<0)return!1;var t=n.getDeserializedHash(e);return!!(t.code||t.error_description||t.error||t.state)},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var P;(function(n){n.AcquireTokenByCode="acquireTokenByCode",n.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",n.AcquireTokenSilent="acquireTokenSilent",n.AcquireTokenSilentAsync="acquireTokenSilentAsync",n.AcquireTokenPopup="acquireTokenPopup",n.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",n.CryptoOptsSignJwt="cryptoOptsSignJwt",n.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",n.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",n.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",n.SsoSilent="ssoSilent",n.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",n.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",n.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",n.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",n.BrokerHandhshake="brokerHandshake",n.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",n.AcquireTokenByBroker="acquireTokenByBroker",n.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",n.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",n.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",n.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",n.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",n.AcquireTokenFromCache="acquireTokenFromCache",n.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",n.InitializeBaseRequest="initializeBaseRequest",n.InitializeSilentRequest="initializeSilentRequest",n.InitializeClientApplication="initializeClientApplication",n.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",n.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",n.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",n.SilentHandlerLoadFrame="silentHandlerLoadFrame",n.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",n.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",n.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",n.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",n.GetAuthCodeUrl="getAuthCodeUrl",n.HandleCodeResponseFromServer="handleCodeResponseFromServer",n.HandleCodeResponseFromHash="handleCodeResponseFromHash",n.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",n.AuthClientAcquireToken="authClientAcquireToken",n.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",n.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",n.AuthClientCreateQueryString="authClientCreateQueryString",n.PopTokenGenerateCnf="popTokenGenerateCnf",n.PopTokenGenerateKid="popTokenGenerateKid",n.HandleServerTokenResponse="handleServerTokenResponse",n.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",n.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",n.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",n.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",n.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",n.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",n.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",n.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",n.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",n.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",n.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",n.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",n.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",n.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",n.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",n.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken",n.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake",n.ClearTokensAndKeysWithClaims="clearTokensAndKeysWithClaims"})(P||(P={}));var or;(function(n){n[n.NotStarted=0]="NotStarted",n[n.InProgress=1]="InProgress",n[n.Completed=2]="Completed"})(or||(or={}));var fa=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]);/*! @azure/msal-common v13.3.3 2024-06-06 */var Or;(function(n){n.SW="sw",n.UHW="uhw"})(Or||(Or={}));var Tn=function(){function n(e,t){this.cryptoUtils=e,this.performanceClient=t}return n.prototype.generateCnf=function(e){var t,r;return ce(this,void 0,void 0,function(){var o,i,l;return le(this,function(d){switch(d.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(P.PopTokenGenerateCnf,e.correlationId),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(P.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return o=d.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(o)),l={kid:o.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(l.reqCnfHash=d.sent(),l)]}})})},n.prototype.generateKid=function(e){var t;return ce(this,void 0,void 0,function(){var r;return le(this,function(o){switch(o.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(P.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return r=o.sent(),[2,{kid:r,xms_ksl:Or.SW}]}})})},n.prototype.signPopToken=function(e,t,r){return ce(this,void 0,void 0,function(){return le(this,function(o){return[2,this.signPayload(e,t,r)]})})},n.prototype.signPayload=function(e,t,r,o){return ce(this,void 0,void 0,function(){var i,l,d,h,f,u;return le(this,function(y){switch(y.label){case 0:return i=r.resourceRequestMethod,l=r.resourceRequestUri,d=r.shrClaims,h=r.shrNonce,f=l?new ge(l):void 0,u=f==null?void 0:f.getUrlComponents(),[4,this.cryptoUtils.signJwt(ve({at:e,ts:vt.nowSeconds(),m:i==null?void 0:i.toUpperCase(),u:u==null?void 0:u.HostNameAndPort,nonce:h||this.cryptoUtils.createNewGuid(),p:u==null?void 0:u.AbsolutePath,q:u!=null&&u.QueryString?[[],u.QueryString]:void 0,client_claims:d||void 0},o),t,r.correlationId)];case 1:return[2,y.sent()]}})})},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var xr=function(){function n(){}return n.prototype.generateAppMetadataKey=function(){return n.generateAppMetadataCacheKey(this.environment,this.clientId)},n.generateAppMetadataCacheKey=function(e,t){var r=[Ar,e,t];return r.join(Ue.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAppMetadataEntity=function(e,t,r){var o=new n;return o.clientId=e,o.environment=t,r&&(o.familyId=r),o},n.isAppMetadataEntity=function(e,t){return t?e.indexOf(Ar)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"):!1},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var ga=function(){function n(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(n.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var ir=function(){function n(e,t,r,o,i,l,d){this.clientId=e,this.cacheStorage=t,this.cryptoObj=r,this.logger=o,this.serializableCache=i,this.persistencePlugin=l,this.performanceClient=d}return n.prototype.validateServerAuthorizationCodeResponse=function(e,t,r){if(!e.state||!t)throw e.state?Q.createStateNotFoundError("Cached State"):Q.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw Q.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw At.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new At(e.error||C.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||C.EMPTY_STRING,e.trace_id||C.EMPTY_STRING,e.correlation_id||C.EMPTY_STRING,e.claims||C.EMPTY_STRING):new pn(e.error||C.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&nr(e.client_info,r)},n.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(At.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new At(e.error,e.error_description,e.suberror,e.timestamp||C.EMPTY_STRING,e.trace_id||C.EMPTY_STRING,e.correlation_id||C.EMPTY_STRING,e.claims||C.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new pn(e.error,t,e.suberror)}},n.prototype.handleServerTokenResponse=function(e,t,r,o,i,l,d,h,f){var u;return ce(this,void 0,void 0,function(){var y,_,k,T,O,M,F;return le(this,function(N){switch(N.label){case 0:if((u=this.performanceClient)===null||u===void 0||u.addQueueMeasurement(P.HandleServerTokenResponse,e.correlation_id),e.id_token){if(y=new Bt(e.id_token||C.EMPTY_STRING,this.cryptoObj),i&&!K.isEmpty(i.nonce)&&y.claims.nonce!==i.nonce)throw Q.createNonceMismatchError();if(o.maxAge||o.maxAge===0){if(_=y.claims.auth_time,!_)throw Q.createAuthTimeNotFoundError();Bt.checkMaxAge(_,o.maxAge)}}this.homeAccountIdentifier=Ye.generateHomeAccountId(e.client_info||C.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,y==null?void 0:y.claims),i&&i.state&&(k=Gt.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||o.sshKid||void 0,T=this.generateCacheRecord(e,t,r,o,y,l,i),N.label=1;case 1:return N.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),O=new ga(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(O)]):[3,3];case 2:N.sent(),N.label=3;case 3:return d&&!h&&T.account&&(M=T.account.generateAccountKey(),F=this.cacheStorage.getAccount(M),!F)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,n.generateAuthenticationResult(this.cryptoObj,t,T,!1,o,y,k,void 0,f)]):[4,this.cacheStorage.saveCacheRecord(T)];case 4:return N.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&O?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(O)]):[3,7];case 6:N.sent(),N.label=7;case 7:return[7];case 8:return[2,n.generateAuthenticationResult(this.cryptoObj,t,T,!1,o,y,k,e,f)]}})})},n.prototype.generateCacheRecord=function(e,t,r,o,i,l,d){var h=t.getPreferredCache();if(K.isEmpty(h))throw Q.createInvalidCacheEnvironmentError();var f,u;!K.isEmpty(e.id_token)&&i&&(f=tn.createIdTokenEntity(this.homeAccountIdentifier,h,e.id_token||C.EMPTY_STRING,this.clientId,i.claims.tid||C.EMPTY_STRING),u=Ye.createAccount({homeAccountId:this.homeAccountIdentifier,idTokenClaims:i.claims,clientInfo:e.client_info||C.EMPTY_STRING,cloudGraphHostName:d==null?void 0:d.cloud_graph_host_name,msGraphHost:d==null?void 0:d.msgraph_host},t));var y=null;if(!K.isEmpty(e.access_token)){var _=e.scope?We.fromString(e.scope):new We(o.scopes||[]),k=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,T=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,O=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,M=r+k,F=M+T,N=O&&O>0?r+O:void 0;y=nn.createAccessTokenEntity(this.homeAccountIdentifier,h,e.access_token||C.EMPTY_STRING,this.clientId,i?i.claims.tid||C.EMPTY_STRING:t.tenant,_.printScopes(),M,F,this.cryptoObj,N,e.token_type,l,e.key_id,o.claims,o.requestedClaimsHash)}var S=null;K.isEmpty(e.refresh_token)||(S=kn.createRefreshTokenEntity(this.homeAccountIdentifier,h,e.refresh_token||C.EMPTY_STRING,this.clientId,e.foci,l));var z=null;return K.isEmpty(e.foci)||(z=xr.createAppMetadataEntity(this.clientId,h,e.foci)),new Cn(u,f,y,S,z)},n.generateAuthenticationResult=function(e,t,r,o,i,l,d,h,f){var u,y,_;return ce(this,void 0,void 0,function(){var k,T,O,M,F,N,S,z,V,G,Z;return le(this,function(A){switch(A.label){case 0:if(k=C.EMPTY_STRING,T=[],O=null,F=C.EMPTY_STRING,!r.accessToken)return[3,4];if(r.accessToken.tokenType!==ke.POP)return[3,2];if(N=new Tn(e),S=r.accessToken,z=S.secret,V=S.keyId,!V)throw Q.createKeyIdMissingError();return[4,N.signPopToken(z,V,i)];case 1:return k=A.sent(),[3,3];case 2:k=r.accessToken.secret,A.label=3;case 3:T=We.fromString(r.accessToken.target).asArray(),O=new Date(Number(r.accessToken.expiresOn)*1e3),M=new Date(Number(r.accessToken.extendedExpiresOn)*1e3),A.label=4;case 4:return r.appMetadata&&(F=r.appMetadata.familyId===xn?xn:C.EMPTY_STRING),G=(l==null?void 0:l.claims.oid)||(l==null?void 0:l.claims.sub)||C.EMPTY_STRING,Z=(l==null?void 0:l.claims.tid)||C.EMPTY_STRING,h!=null&&h.spa_accountid&&r.account&&(r.account.nativeAccountId=h==null?void 0:h.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:G,tenantId:Z,scopes:T,account:r.account?r.account.getAccountInfo():null,idToken:l?l.rawToken:C.EMPTY_STRING,idTokenClaims:l?l.claims:{},accessToken:k,fromCache:o,expiresOn:O,correlationId:i.correlationId,requestId:f||C.EMPTY_STRING,extExpiresOn:M,familyId:F,tokenType:((u=r.accessToken)===null||u===void 0?void 0:u.tokenType)||C.EMPTY_STRING,state:d?d.userRequestState:C.EMPTY_STRING,cloudGraphHostName:((y=r.account)===null||y===void 0?void 0:y.cloudGraphHostName)||C.EMPTY_STRING,msGraphHost:((_=r.account)===null||_===void 0?void 0:_.msGraphHost)||C.EMPTY_STRING,code:h==null?void 0:h.spa_code,fromNativeBroker:!1}]}})})},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var Fo=function(n){tt(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.includeRedirectUri=!0,o}return e.prototype.getAuthCodeUrl=function(t){var r,o;return ce(this,void 0,void 0,function(){var i;return le(this,function(l){switch(l.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(P.GetAuthCodeUrl,t.correlationId),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(P.AuthClientCreateQueryString,t.correlationId),[4,this.createAuthCodeUrlQueryString(t)];case 1:return i=l.sent(),[2,ge.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},e.prototype.acquireToken=function(t,r){var o,i,l,d,h,f;return ce(this,void 0,void 0,function(){var u,y,_,k,T,O,M=this;return le(this,function(F){switch(F.label){case 0:if(!t||!t.code)throw Q.createTokenRequestCannotBeMadeError();return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(P.AuthClientAcquireToken,t.correlationId),u=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement("AuthCodeClientAcquireToken",t.correlationId),this.logger.info("in acquireToken call in auth-code client"),y=vt.nowSeconds(),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(P.AuthClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(this.authority,t)];case 1:return _=F.sent(),k=(d=_.headers)===null||d===void 0?void 0:d[dt.X_MS_REQUEST_ID],T=(h=_.headers)===null||h===void 0?void 0:h[dt.X_MS_HTTP_VERSION],T&&(u==null||u.addStaticFields({httpVerAuthority:T})),O=new ir(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),O.validateTokenResponse(_.body),(f=this.performanceClient)===null||f===void 0||f.setPreQueueTime(P.HandleServerTokenResponse,t.correlationId),[2,O.handleServerTokenResponse(_.body,this.authority,y,t,r,void 0,void 0,void 0,k).then(function(N){return u==null||u.endMeasurement({success:!0}),N}).catch(function(N){throw M.logger.verbose("Error in fetching token in ACC",t.correlationId),u==null||u.endMeasurement({errorCode:N.errorCode,subErrorCode:N.subError,success:!1}),N})]}})})},e.prototype.handleFragmentResponse=function(t,r){var o=new ir(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),i=new ge(t),l=ge.getDeserializedHash(i.getHash());if(o.validateServerAuthorizationCodeResponse(l,r,this.cryptoUtils),!l.code)throw Q.createNoAuthCodeInServerResponseError();return ve(ve({},l),{code:l.code})},e.prototype.getLogoutUri=function(t){if(!t)throw Te.createEmptyLogoutRequestError();var r=this.createLogoutUrlQueryString(t);return ge.appendQueryString(this.authority.endSessionEndpoint,r)},e.prototype.executeTokenRequest=function(t,r){var o,i;return ce(this,void 0,void 0,function(){var l,d,h,f,u,y,_;return le(this,function(k){switch(k.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(P.AuthClientExecuteTokenRequest,r.correlationId),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(P.AuthClientCreateTokenRequestBody,r.correlationId),l=this.createTokenQueryParameters(r),d=ge.appendQueryString(t.tokenEndpoint,l),[4,this.createTokenRequestBody(r)];case 1:if(h=k.sent(),f=void 0,r.clientInfo)try{u=nr(r.clientInfo,this.cryptoUtils),f={credential:""+u.uid+Ue.CLIENT_INFO_SEPARATOR+u.utid,type:ut.HOME_ACCOUNT_ID}}catch(T){this.logger.verbose("Could not parse client info for CCS Header: "+T)}return y=this.createTokenRequestHeaders(f||r.ccsCredential),_={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:r.scopes,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},[2,this.executePostToTokenEndpoint(d,h,y,_)]}})})},e.prototype.createTokenRequestBody=function(t){var r,o;return ce(this,void 0,void 0,function(){var i,l,d,h,f,u,y,y,_;return le(this,function(k){switch(k.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(P.AuthClientCreateTokenRequestBody,t.correlationId),i=new Fn,i.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(t.redirectUri):hn.validateRedirectUri(t.redirectUri),i.addScopes(t.scopes),i.addAuthorizationCode(t.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),t.codeVerifier&&i.addCodeVerifier(t.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(l=this.config.clientCredentials.clientAssertion,i.addClientAssertion(l.assertion),i.addClientAssertionType(l.assertionType)),i.addGrantType(Xn.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),t.authenticationScheme!==ke.POP?[3,2]:(d=new Tn(this.cryptoUtils,this.performanceClient),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(P.PopTokenGenerateCnf,t.correlationId),[4,d.generateCnf(t)]);case 1:return h=k.sent(),i.addPopToken(h.reqCnfString),[3,3];case 2:if(t.authenticationScheme===ke.SSH)if(t.sshJwk)i.addSshJwk(t.sshJwk);else throw Te.createMissingSshJwkError();k.label=3;case 3:if(f=t.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(f),(!K.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(t.claims,this.config.authOptions.clientCapabilities),u=void 0,t.clientInfo)try{y=nr(t.clientInfo,this.cryptoUtils),u={credential:""+y.uid+Ue.CLIENT_INFO_SEPARATOR+y.utid,type:ut.HOME_ACCOUNT_ID}}catch(T){this.logger.verbose("Could not parse client info for CCS Header: "+T)}else u=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&u)switch(u.type){case ut.HOME_ACCOUNT_ID:try{y=wn(u.credential),i.addCcsOid(y)}catch(T){this.logger.verbose("Could not parse home account ID for CCS Header: "+T)}break;case ut.UPN:i.addCcsUpn(u.credential);break}return t.tokenBodyParameters&&i.addExtraQueryParameters(t.tokenBodyParameters),t.enableSpaAuthorizationCode&&(!t.tokenBodyParameters||!t.tokenBodyParameters[ue.RETURN_SPA_CODE])&&i.addExtraQueryParameters((_={},_[ue.RETURN_SPA_CODE]="1",_)),[2,i.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(t){var r;return ce(this,void 0,void 0,function(){var o,i,l,d,h,f,f,f,u,y;return le(this,function(_){switch(_.label){case 0:if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(P.AuthClientCreateQueryString,t.correlationId),o=new Fn,o.addClientId(this.config.authOptions.clientId),i=Yn(t.scopes||[],t.extraScopesToConsent||[]),o.addScopes(i),o.addRedirectUri(t.redirectUri),l=t.correlationId||this.config.cryptoInterface.createNewGuid(),o.addCorrelationId(l),o.addResponseMode(t.responseMode),o.addResponseTypeCode(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addClientInfo(),t.codeChallenge&&t.codeChallengeMethod&&o.addCodeChallengeParams(t.codeChallenge,t.codeChallengeMethod),t.prompt&&o.addPrompt(t.prompt),t.domainHint&&o.addDomainHint(t.domainHint),t.prompt!==Qe.SELECT_ACCOUNT)if(t.sid&&t.prompt===Qe.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),o.addSid(t.sid);else if(t.account){if(d=this.extractAccountSid(t.account),h=this.extractLoginHint(t.account),h){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),o.addLoginHint(h);try{f=wn(t.account.homeAccountId),o.addCcsOid(f)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(d&&t.prompt===Qe.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),o.addSid(d);try{f=wn(t.account.homeAccountId),o.addCcsOid(f)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(t.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),o.addLoginHint(t.loginHint),o.addCcsUpn(t.loginHint);else if(t.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),o.addLoginHint(t.account.username);try{f=wn(t.account.homeAccountId),o.addCcsOid(f)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else t.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),o.addLoginHint(t.loginHint),o.addCcsUpn(t.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return t.nonce&&o.addNonce(t.nonce),t.state&&o.addState(t.state),(!K.isEmpty(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(t.claims,this.config.authOptions.clientCapabilities),t.extraQueryParameters&&o.addExtraQueryParameters(t.extraQueryParameters),t.nativeBroker?(o.addNativeBroker(),t.authenticationScheme!==ke.POP?[3,2]:(u=new Tn(this.cryptoUtils),[4,u.generateCnf(t)])):[3,2];case 1:y=_.sent(),o.addPopToken(y.reqCnfString),_.label=2;case 2:return[2,o.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(t){var r=new Fn;return t.postLogoutRedirectUri&&r.addPostLogoutRedirectUri(t.postLogoutRedirectUri),t.correlationId&&r.addCorrelationId(t.correlationId),t.idTokenHint&&r.addIdTokenHint(t.idTokenHint),t.state&&r.addState(t.state),t.logoutHint&&r.addLogoutHint(t.logoutHint),t.extraQueryParameters&&r.addExtraQueryParameters(t.extraQueryParameters),r.createQueryString()},e.prototype.extractAccountSid=function(t){var r;return((r=t.idTokenClaims)===null||r===void 0?void 0:r.sid)||null},e.prototype.extractLoginHint=function(t){var r;return((r=t.idTokenClaims)===null||r===void 0?void 0:r.login_hint)||null},e}(Mr);/*! @azure/msal-common v13.3.3 2024-06-06 */var jo=function(n){tt(e,n);function e(t,r){return n.call(this,t,r)||this}return e.prototype.acquireToken=function(t){var r,o,i,l,d,h,f;return ce(this,void 0,void 0,function(){var u,y,_,k,T,O,M=this;return le(this,function(F){switch(F.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(P.RefreshTokenClientAcquireToken,t.correlationId),u=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(P.RefreshTokenClientAcquireToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",t.correlationId),y=vt.nowSeconds(),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(P.RefreshTokenClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(t,this.authority)];case 1:return _=F.sent(),k=(l=_.headers)===null||l===void 0?void 0:l[dt.X_MS_HTTP_VERSION],u==null||u.addStaticFields({refreshTokenSize:((d=_.body.refresh_token)===null||d===void 0?void 0:d.length)||0}),k&&(u==null||u.addStaticFields({httpVerToken:k})),T=(h=_.headers)===null||h===void 0?void 0:h[dt.X_MS_REQUEST_ID],O=new ir(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),O.validateTokenResponse(_.body),(f=this.performanceClient)===null||f===void 0||f.setPreQueueTime(P.HandleServerTokenResponse,t.correlationId),[2,O.handleServerTokenResponse(_.body,this.authority,y,t,void 0,void 0,!0,t.forceCache,T).then(function(N){return u==null||u.endMeasurement({success:!0}),N}).catch(function(N){throw M.logger.verbose("Error in fetching refresh token",t.correlationId),u==null||u.endMeasurement({errorCode:N.errorCode,subErrorCode:N.subError,success:!1}),N})]}})})},e.prototype.acquireTokenByRefreshToken=function(t){var r,o,i,l;return ce(this,void 0,void 0,function(){var d,h,f;return le(this,function(u){if(!t)throw Te.createEmptyTokenRequestError();if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(P.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),!t.account)throw Q.createNoAccountInSilentRequestError();if(d=this.cacheManager.isAppMetadataFOCI(t.account.environment),d)try{return(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(P.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!0)]}catch(y){if(h=y instanceof At&&y.errorCode===En.noTokensFoundError.code,f=y instanceof pn&&y.errorCode===Bo.INVALID_GRANT_ERROR&&y.subError===Bo.CLIENT_MISMATCH_ERROR,h||f)return(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(P.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)];throw y}return(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(P.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(t,r){var o,i,l;return ce(this,void 0,void 0,function(){var d,h,f;return le(this,function(u){if((o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(P.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),d=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(P.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",t.correlationId),h=this.cacheManager.getRefreshToken(t.account,r),!h)throw d==null||d.discardMeasurement(),At.createNoTokensFoundError();return d==null||d.endMeasurement({success:!0}),f=ve(ve({},t),{refreshToken:h.secret,authenticationScheme:t.authenticationScheme||ke.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:ut.HOME_ACCOUNT_ID}}),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(P.RefreshTokenClientAcquireToken,t.correlationId),[2,this.acquireToken(f)]})})},e.prototype.executeTokenRequest=function(t,r){var o,i,l;return ce(this,void 0,void 0,function(){var d,h,f,u,y,_;return le(this,function(k){switch(k.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(P.RefreshTokenClientExecuteTokenRequest,t.correlationId),d=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(P.RefreshTokenClientExecuteTokenRequest,t.correlationId),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(P.RefreshTokenClientCreateTokenRequestBody,t.correlationId),h=this.createTokenQueryParameters(t),f=ge.appendQueryString(r.tokenEndpoint,h),[4,this.createTokenRequestBody(t)];case 1:return u=k.sent(),y=this.createTokenRequestHeaders(t.ccsCredential),_={clientId:this.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[2,this.executePostToTokenEndpoint(f,u,y,_).then(function(T){return d==null||d.endMeasurement({success:!0}),T}).catch(function(T){throw d==null||d.endMeasurement({success:!1}),T})]}})})},e.prototype.createTokenRequestBody=function(t){var r,o,i;return ce(this,void 0,void 0,function(){var l,d,h,f,u,y,_;return le(this,function(k){switch(k.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(P.RefreshTokenClientCreateTokenRequestBody,t.correlationId),l=t.correlationId,d=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(P.BaseClientCreateTokenRequestHeaders,l),h=new Fn,h.addClientId(this.config.authOptions.clientId),h.addScopes(t.scopes),h.addGrantType(Xn.REFRESH_TOKEN_GRANT),h.addClientInfo(),h.addLibraryInfo(this.config.libraryInfo),h.addApplicationTelemetry(this.config.telemetry.application),h.addThrottling(),this.serverTelemetryManager&&h.addServerTelemetry(this.serverTelemetryManager),h.addCorrelationId(l),h.addRefreshToken(t.refreshToken),this.config.clientCredentials.clientSecret&&h.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(f=this.config.clientCredentials.clientAssertion,h.addClientAssertion(f.assertion),h.addClientAssertionType(f.assertionType)),t.authenticationScheme!==ke.POP?[3,2]:(u=new Tn(this.cryptoUtils,this.performanceClient),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(P.PopTokenGenerateCnf,t.correlationId),[4,u.generateCnf(t)]);case 1:return y=k.sent(),h.addPopToken(y.reqCnfString),[3,3];case 2:if(t.authenticationScheme===ke.SSH)if(t.sshJwk)h.addSshJwk(t.sshJwk);else throw d==null||d.endMeasurement({success:!1}),Te.createMissingSshJwkError();k.label=3;case 3:if((!K.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&h.addClaims(t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case ut.HOME_ACCOUNT_ID:try{_=wn(t.ccsCredential.credential),h.addCcsOid(_)}catch(T){this.logger.verbose("Could not parse home account ID for CCS Header: "+T)}break;case ut.UPN:h.addCcsUpn(t.ccsCredential.credential);break}return d==null||d.endMeasurement({success:!0}),[2,h.createQueryString()]}})})},e}(Mr);/*! @azure/msal-common v13.3.3 2024-06-06 */var _a=function(n){tt(e,n);function e(t,r){return n.call(this,t,r)||this}return e.prototype.acquireToken=function(t){return ce(this,void 0,void 0,function(){var r,o;return le(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.acquireCachedToken(t)];case 1:return[2,i.sent()];case 2:if(r=i.sent(),r instanceof Q&&r.errorCode===D.tokenRefreshRequired.code)return o=new jo(this.config,this.performanceClient),[2,o.acquireTokenByRefreshToken(t)];throw r;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(t){var r,o,i,l,d;return ce(this,void 0,void 0,function(){var h,f;return le(this,function(u){switch(u.label){case 0:if(!t)throw Te.createEmptyTokenRequestError();if(t.forceRefresh)throw(r=this.serverTelemetryManager)===null||r===void 0||r.setCacheOutcome(en.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),Q.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!K.isEmptyObj(t.claims))throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(en.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),Q.createRefreshRequiredError();if(!t.account)throw Q.createNoAccountInSilentRequestError();if(h=t.authority||this.authority.getPreferredCache(),f=this.cacheManager.readCacheRecord(t.account,t,h),f.accessToken){if(vt.wasClockTurnedBack(f.accessToken.cachedAt)||vt.isTokenExpired(f.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(l=this.serverTelemetryManager)===null||l===void 0||l.setCacheOutcome(en.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),Q.createRefreshRequiredError();if(f.accessToken.refreshOn&&vt.isTokenExpired(f.accessToken.refreshOn,0))throw(d=this.serverTelemetryManager)===null||d===void 0||d.setCacheOutcome(en.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),Q.createRefreshRequiredError()}else throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(en.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),Q.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(f,t)];case 1:return[2,u.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(t,r){return ce(this,void 0,void 0,function(){var o,i;return le(this,function(l){switch(l.label){case 0:if(t.idToken&&(o=new Bt(t.idToken.secret,this.config.cryptoInterface)),r.maxAge||r.maxAge===0){if(i=o==null?void 0:o.claims.auth_time,!i)throw Q.createAuthTimeNotFoundError();Bt.checkMaxAge(i,r.maxAge)}return[4,ir.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,r,o)];case 1:return[2,l.sent()]}})})},e}(Mr);/*! @azure/msal-common v13.3.3 2024-06-06 */function ya(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v13.3.3 2024-06-06 */var qo={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},Vo=qo.endpointMetadata,Ho=qo.instanceDiscoveryMetadata;/*! @azure/msal-common v13.3.3 2024-06-06 */var Br=function(){function n(){this.expiresAt=vt.nowSeconds()+Bn.REFRESH_TIME_SECONDS}return n.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},n.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t,this.jwks_uri=e.jwks_uri},n.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},n.prototype.resetExpiresAt=function(){this.expiresAt=vt.nowSeconds()+Bn.REFRESH_TIME_SECONDS},n.prototype.isExpired=function(){return this.expiresAt<=vt.nowSeconds()},n.isAuthorityMetadataEntity=function(e,t){return t?e.indexOf(Bn.CACHE_KEY)===0&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"):!1},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */function va(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}/*! @azure/msal-common v13.3.3 2024-06-06 */function wa(n){return n.hasOwnProperty("error")&&n.hasOwnProperty("error_description")}/*! @azure/msal-common v13.3.3 2024-06-06 */var ba=function(){function n(e,t,r){this.networkInterface=e,this.performanceClient=t,this.correlationId=r}return n.prototype.detectRegion=function(e,t){var r,o,i,l;return ce(this,void 0,void 0,function(){var d,h,f,u,y;return le(this,function(_){switch(_.label){case 0:if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(P.RegionDiscoveryDetectRegion,this.correlationId),d=e,d)return[3,8];h=n.IMDS_OPTIONS,_.label=1;case 1:return _.trys.push([1,6,,7]),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(P.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(C.IMDS_VERSION,h)];case 2:return f=_.sent(),f.status===vn.httpSuccess&&(d=f.body,t.region_source=Zt.IMDS),f.status!==vn.httpBadRequest?[3,5]:((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(P.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(h)]);case 3:return u=_.sent(),u?((l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(P.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(u,h)]):(t.region_source=Zt.FAILED_AUTO_DETECTION,[2,null]);case 4:y=_.sent(),y.status===vn.httpSuccess&&(d=y.body,t.region_source=Zt.IMDS),_.label=5;case 5:return[3,7];case 6:return _.sent(),t.region_source=Zt.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:t.region_source=Zt.ENVIRONMENT_VARIABLE,_.label=9;case 9:return d||(t.region_source=Zt.FAILED_AUTO_DETECTION),[2,d||null]}})})},n.prototype.getRegionFromIMDS=function(e,t){var r;return ce(this,void 0,void 0,function(){return le(this,function(o){return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(P.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(C.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,C.IMDS_TIMEOUT)]})})},n.prototype.getCurrentVersion=function(e){var t;return ce(this,void 0,void 0,function(){var r;return le(this,function(o){switch(o.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(P.RegionDiscoveryGetCurrentVersion,this.correlationId),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(C.IMDS_ENDPOINT+"?format=json",e)];case 2:return r=o.sent(),r.status===vn.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?[2,r.body["newest-versions"][0]]:[2,null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},n.IMDS_OPTIONS={headers:{Metadata:"true"}},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var jn=function(){function n(e,t,r,o,i,l,d){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=r,this.authorityOptions=o,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=l,this.correlationId=d,this.regionDiscovery=new ba(t,this.performanceClient,this.correlationId)}return n.prototype.getAuthorityType=function(e){if(e.HostNameAndPort.endsWith(C.CIAM_AUTH_URL))return nt.Ciam;var t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case C.ADFS:return nt.Adfs;case C.DSTS:return nt.Dsts}return nt.Default},Object.defineProperty(n.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new ge(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw Q.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw Q.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw Q.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw Q.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}else throw Q.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw Q.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw Q.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),n.prototype.canReplaceTenant=function(e){return e.PathSegments.length===1&&!n.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===nt.Default&&this.protocolMode===bn.AAD},n.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},n.prototype.replacePath=function(e){var t=this,r=e,o=new ge(this.metadata.canonical_authority),i=o.getUrlComponents(),l=i.PathSegments,d=this.canonicalAuthorityUrlComponents.PathSegments;return d.forEach(function(h,f){var u=l[f];if(f===0&&t.canReplaceTenant(i)){var y=new ge(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];u!==y&&(t.logger.verbose("Replacing tenant domain name "+u+" with id "+y),u=y)}h!==u&&(r=r.replace("/"+u+"/","/"+h+"/"))}),this.replaceTenant(r)},Object.defineProperty(n.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===nt.Adfs||this.authorityType===nt.Dsts||this.protocolMode===bn.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),n.prototype.discoveryComplete=function(){return!!this.metadata},n.prototype.resolveEndpointsAsync=function(){var e,t,r;return ce(this,void 0,void 0,function(){var o,i,l,d;return le(this,function(h){switch(h.label){case 0:return(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(P.AuthorityResolveEndpointsAsync,this.correlationId),o=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),o||(o=new Br,o.updateCanonicalAuthority(this.canonicalAuthority)),(t=this.performanceClient)===null||t===void 0||t.setPreQueueTime(P.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(o)];case 1:return i=h.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,o.preferred_network),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(P.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(o)];case 2:return l=h.sent(),i!==yt.CACHE&&l!==yt.CACHE&&(o.resetExpiresAt(),o.updateCanonicalAuthority(this.canonicalAuthority)),d=this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache),this.cacheManager.setAuthorityMetadata(d,o),this.metadata=o,[2]}})})},n.prototype.updateEndpointMetadata=function(e){var t,r,o,i,l,d;return ce(this,void 0,void 0,function(){var h,f;return le(this,function(u){switch(u.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(P.AuthorityUpdateEndpointMetadata,this.correlationId),h=this.getEndpointMetadataFromConfig(),h?(e.updateEndpointMetadata(h,!1),[2,yt.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,yt.CACHE]:((r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(P.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return h=u.sent(),h?!((o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0)&&o.azureRegion?((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(P.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(h)]):[3,3]:[3,4];case 2:h=u.sent(),u.label=3;case 3:return e.updateEndpointMetadata(h,!0),[2,yt.NETWORK];case 4:return f=this.getEndpointMetadataFromHardcodedValues(),f&&!this.authorityOptions.skipAuthorityMetadataCache?!((l=this.authorityOptions.azureRegionConfiguration)===null||l===void 0)&&l.azureRegion?((d=this.performanceClient)===null||d===void 0||d.setPreQueueTime(P.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(f)]):[3,6]:[3,7];case 5:f=u.sent(),u.label=6;case 6:return e.updateEndpointMetadata(f,!1),[2,yt.HARDCODED_VALUES];case 7:throw Q.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},n.prototype.isAuthoritySameType=function(e){var t=new ge(e.canonical_authority),r=t.getUrlComponents().PathSegments;return r.length===this.canonicalAuthorityUrlComponents.PathSegments.length},n.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Te.createInvalidAuthorityMetadataError()}return null},n.prototype.getEndpointMetadataFromNetwork=function(){var e;return ce(this,void 0,void 0,function(){var t,r;return le(this,function(o){switch(o.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(P.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),t={},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return r=o.sent(),[2,ya(r.body)?r.body:null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},n.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in Vo?Vo[this.canonicalAuthority]:null},n.prototype.updateMetadataWithRegionalInformation=function(e){var t,r,o,i;return ce(this,void 0,void 0,function(){var l,d;return le(this,function(h){switch(h.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(P.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),l=(r=this.authorityOptions.azureRegionConfiguration)===null||r===void 0?void 0:r.azureRegion,l?l!==C.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=Un.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=l,[2,n.replaceWithRegionalInformation(e,l)]):((o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(P.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0?void 0:i.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(d=h.sent(),d)return this.regionDiscoveryMetadata.region_outcome=Un.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=d,[2,n.replaceWithRegionalInformation(e,d)];this.regionDiscoveryMetadata.region_outcome=Un.AUTO_DETECTION_REQUESTED_FAILED,h.label=2;case 2:return[2,e]}})})},n.prototype.updateCloudDiscoveryMetadata=function(e){var t,r;return ce(this,void 0,void 0,function(){var o,i,l;return le(this,function(d){switch(d.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(P.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||C.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||C.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||C.NOT_APPLICABLE)),o=this.getCloudDiscoveryMetadataFromConfig(),o?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(o,!1),[2,yt.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),i=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!i?(this.logger.verbose("Found metadata in the cache."),[2,yt.CACHE]):(i&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(P.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(o=d.sent(),o)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(o,!0),[2,yt.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),l=this.getCloudDiscoveryMetadataFromHarcodedValues(),l&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(l,!1),[2,yt.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),Te.createUntrustedAuthorityError()}})})},n.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===nt.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),t=n.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),t)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),t;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Te.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},n.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var e;return ce(this,void 0,void 0,function(){var t,r,o,i,l,d,h,f;return le(this,function(u){switch(u.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(P.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),t=""+C.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},o=null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(t,r)];case 2:if(i=u.sent(),l=void 0,d=void 0,va(i.body))l=i.body,d=l.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+l.tenant_discovery_endpoint);else if(wa(i.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+i.status),l=i.body,l.error===C.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+l.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+l.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),d=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=n.getCloudDiscoveryMetadataFromNetworkResponse(d,this.hostnameAndPort),[3,4];case 3:return h=u.sent(),h instanceof X?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
160
+ Error: `+h.errorCode+`
161
+ Error Description: `+h.errorMessage):(f=h,this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
162
+ Error: `+f.name+`
163
+ Error Description: `+f.message)),[2,null];case 4:return o||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),o=n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,o]}})})},n.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in Ho?Ho[this.canonicalAuthority]:null},n.prototype.isInKnownAuthorities=function(){var e=this,t=this.authorityOptions.knownAuthorities.filter(function(r){return ge.getDomainFromUrl(r).toLowerCase()===e.hostnameAndPort});return t.length>0},n.generateAuthority=function(e,t){var r;if(t&&t.azureCloudInstance!==Dn.None){var o=t.tenant?t.tenant:C.DEFAULT_COMMON_TENANT;r=t.azureCloudInstance+"/"+o+"/"}return r||e},n.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},n.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var r=0;r<e.length;r++){var o=e[r];if(o.aliases.indexOf(t)>-1)return o}return null},n.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw Q.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},n.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},n.isPublicCloudAuthority=function(e){return C.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},n.buildRegionalAuthorityString=function(e,t,r){var o=new ge(e);o.validateAsUri();var i=o.getUrlComponents(),l=t+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(l=t+"."+C.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var d=ge.constructAuthorityUriFromObject(ve(ve({},o.getUrlComponents()),{HostNameAndPort:l})).urlString;return r?d+"?"+r:d},n.replaceWithRegionalInformation=function(e,t){return e.authorization_endpoint=n.buildRegionalAuthorityString(e.authorization_endpoint,t),e.token_endpoint=n.buildRegionalAuthorityString(e.token_endpoint,t,C.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=n.buildRegionalAuthorityString(e.end_session_endpoint,t)),e},n.transformCIAMAuthority=function(e){var t=e.endsWith(C.FORWARD_SLASH)?e:""+e+C.FORWARD_SLASH,r=new ge(e),o=r.getUrlComponents();if(o.PathSegments.length===0&&o.HostNameAndPort.endsWith(C.CIAM_AUTH_URL)){var i=o.HostNameAndPort.split(".")[0];t=""+t+i+C.AAD_TENANT_DOMAIN_SUFFIX}return t},n.reservedTenantDomains=new Set(["{tenant}","{tenantid}",dn.COMMON,dn.CONSUMERS,dn.ORGANIZATIONS]),n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var ar=function(){function n(){}return n.createDiscoveredInstance=function(e,t,r,o,i,l,d){return ce(this,void 0,void 0,function(){var h,f,u;return le(this,function(y){switch(y.label){case 0:l==null||l.addQueueMeasurement(P.AuthorityFactoryCreateDiscoveredInstance,d),h=jn.transformCIAMAuthority(e),f=n.createInstance(h,t,r,o,i,l,d),y.label=1;case 1:return y.trys.push([1,3,,4]),l==null||l.setPreQueueTime(P.AuthorityResolveEndpointsAsync,d),[4,f.resolveEndpointsAsync()];case 2:return y.sent(),[2,f];case 3:throw u=y.sent(),Q.createEndpointDiscoveryIncompleteError(u);case 4:return[2]}})})},n.createInstance=function(e,t,r,o,i,l,d){if(K.isEmpty(e))throw Te.createUrlEmptyError();return new jn(e,t,r,o,i,l,d)},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var sr=function(){function n(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return n.isServerTelemetryEntity=function(e,t){var r=e.indexOf(Ve.CACHE_KEY)===0,o=!0;return t&&(o=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),r&&o},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var Ko=function(){function n(){}return n.isThrottlingEntity=function(e,t){var r=!1;e&&(r=e.indexOf(zn.THROTTLING_PREFIX)===0);var o=!0;return t&&(o=t.hasOwnProperty("throttleTime")),r&&o},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var ka={sendGetRequestAsync:function(){var n="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(X.createUnexpectedError(n))},sendPostRequestAsync:function(){var n="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(X.createUnexpectedError(n))}};/*! @azure/msal-common v13.3.3 2024-06-06 */var cr={missingKidError:{code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},missingAlgError:{code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."}},Go=function(n){tt(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.name="JoseHeaderError",Object.setPrototypeOf(o,e.prototype),o}return e.createMissingKidError=function(){return new e(cr.missingKidError.code,cr.missingKidError.desc)},e.createMissingAlgError=function(){return new e(cr.missingAlgError.code,cr.missingAlgError.desc)},e}(X);/*! @azure/msal-common v13.3.3 2024-06-06 */var Ea=function(){function n(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return n.getShrHeaderString=function(e){if(!e.kid)throw Go.createMissingKidError();if(!e.alg)throw Go.createMissingAlgError();var t=new n({typ:e.typ||Rr.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var Ca=function(){function n(e,t){this.cacheOutcome=en.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||C.EMPTY_STRING,this.wrapperVer=e.wrapperVer||C.EMPTY_STRING,this.telemetryCacheKey=Ve.CACHE_KEY+Ue.CACHE_KEY_SEPARATOR+e.clientId}return n.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Ve.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(Ve.VALUE_SEPARATOR),r=this.getRegionDiscoveryFields(),o=[e,r].join(Ve.VALUE_SEPARATOR);return[Ve.SCHEMA_VERSION,o,t].join(Ve.CATEGORY_SEPARATOR)},n.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),t=n.maxErrorsToSend(e),r=e.failedRequests.slice(0,2*t).join(Ve.VALUE_SEPARATOR),o=e.errors.slice(0,t).join(Ve.VALUE_SEPARATOR),i=e.errors.length,l=t<i?Ve.OVERFLOW_TRUE:Ve.OVERFLOW_FALSE,d=[i,l].join(Ve.VALUE_SEPARATOR);return[Ve.SCHEMA_VERSION,e.cacheHits,r,o,d].join(Ve.CATEGORY_SEPARATOR)},n.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=Ve.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),K.isEmpty(e.subError)?K.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(Ve.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},n.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},n.prototype.getLastRequests=function(){var e=new sr,t=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return t||e},n.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),t=n.maxErrorsToSend(e),r=e.errors.length;if(t===r)this.cacheManager.removeItem(this.telemetryCacheKey);else{var o=new sr;o.failedRequests=e.failedRequests.slice(t*2),o.errors=e.errors.slice(t),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,o)}},n.maxErrorsToSend=function(e){var t,r=0,o=0,i=e.errors.length;for(t=0;t<i;t++){var l=e.failedRequests[2*t]||C.EMPTY_STRING,d=e.failedRequests[2*t+1]||C.EMPTY_STRING,h=e.errors[t]||C.EMPTY_STRING;if(o+=l.toString().length+d.toString().length+h.length+3,o<Ve.MAX_LAST_HEADER_BYTES)r+=1;else break}return r},n.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||C.EMPTY_STRING),e.push(this.regionSource||C.EMPTY_STRING),e.push(this.regionOutcome||C.EMPTY_STRING),e.join(",")},n.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},n.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var $o=function(){function n(e,t,r,o,i,l){this.authority=t,this.libraryName=o,this.libraryVersion=i,this.applicationTelemetry=l,this.clientId=e,this.logger=r,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return n.prototype.startPerformanceMeasurement=function(e,t){return{}},n.prototype.startPerformanceMeasuremeant=function(e,t){return{}},n.prototype.getIntFields=function(){return fa},n.prototype.getPreQueueTime=function(e,t){var r=this.preQueueTimeByCorrelationId.get(t);if(r){if(r.name!==e){this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement");return}}else{this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+t+", unable to add queue measurement");return}return r.time},n.prototype.calculateQueuedTime=function(e,t){return e<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+e),0):t<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+t),0):t<e?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):t-e},n.prototype.addQueueMeasurement=function(e,t,r,o){if(!t){this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement");return}if(r===0)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+r);else if(!r){this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);return}var i={eventName:e,queueTime:r,manuallyCompleted:o},l=this.queueMeasurements.get(t);if(l)l.push(i),this.queueMeasurements.set(t,l);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+t+" to queue measurements");var d=[i];this.queueMeasurements.set(t,d)}this.preQueueTimeByCorrelationId.delete(t)},n.prototype.startMeasurement=function(e,t){var r=this,o,i,l=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",l),this.logger.trace("PerformanceClient: Performance measurement started for "+e,l);var d=this.startPerformanceMeasuremeant(e,l);d.startMeasurement();var h={eventId:this.generateId(),status:or.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:l,appName:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appName,appVersion:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appVersion};return this.cacheEventByCorrelationId(h),{endMeasurement:function(f){return r.endMeasurement(ve(ve({},h),f),d)},discardMeasurement:function(){return r.discardMeasurements(h.correlationId)},addStaticFields:function(f){return r.addStaticFields(f,h.correlationId)},increment:function(f){return r.increment(f,h.correlationId)},measurement:d,event:h}},n.prototype.endMeasurement=function(e,t){var r=this,o,i,l=this.eventsByCorrelationId.get(e.correlationId);if(!l)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var d=e.eventId===l.eventId,h={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};d?(h=this.getQueueInfo(e.correlationId),this.discardCache(l.correlationId)):(o=l.incompleteSubMeasurements)===null||o===void 0||o.delete(e.eventId),t==null||t.endMeasurement();var f=t==null?void 0:t.flushMeasurement();if(!f)return this.logger.trace("PerformanceClient: Performance measurement not taken",l.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+f+" ms",e.correlationId),!d)return l[e.name+"DurationMs"]=Math.floor(f),ve({},l);var u=ve(ve({},l),e),y=0;return(i=u.incompleteSubMeasurements)===null||i===void 0||i.forEach(function(_){r.logger.trace("PerformanceClient: Incomplete submeasurement "+_.name+" found for "+e.name,u.correlationId),y++}),u.incompleteSubMeasurements=void 0,u=ve(ve({},u),{durationMs:Math.round(f),queuedTimeMs:h.totalQueueTime,queuedCount:h.totalQueueCount,queuedManuallyCompletedCount:h.manuallyCompletedCount,status:or.Completed,incompleteSubsCount:y}),this.truncateIntegralFields(u,this.getIntFields()),this.emitEvents([u],e.correlationId),u},n.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var r=this.eventsByCorrelationId.get(t);r?this.eventsByCorrelationId.set(t,ve(ve({},r),e)):this.logger.trace("PerformanceClient: Event not found for",t)},n.prototype.increment=function(e,t){this.logger.trace("PerformanceClient: Updating counters");var r=this.eventsByCorrelationId.get(t);if(r)for(var o in e)r.hasOwnProperty(o)||(r[o]=0),r[o]+=e[o];else this.logger.trace("PerformanceClient: Event not found for",t)},n.prototype.cacheEventByCorrelationId=function(e){var t=this.eventsByCorrelationId.get(e.correlationId);t?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,ve({},e)))},n.prototype.getQueueInfo=function(e){var t=this.queueMeasurements.get(e);t||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e);var r=0,o=0,i=0;return t==null||t.forEach(function(l){r+=l.queueTime,o++,i+=l.manuallyCompleted?1:0}),{totalQueueTime:r,totalQueueCount:o,manuallyCompletedCount:i}},n.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},n.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: QueueMeasurements discarded",e),this.queueMeasurements.delete(e),this.logger.trace("PerformanceClient: Pre-queue times discarded",e),this.preQueueTimeByCorrelationId.delete(e)},n.prototype.addPerformanceCallback=function(e){var t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+t),t},n.prototype.removePerformanceCallback=function(e){var t=this.callbacks.delete(e);return t?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),t},n.prototype.emitEvents=function(e,t){var r=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach(function(o,i){r.logger.trace("PerformanceClient: Emitting event to callback "+i,t),o.apply(null,[e])})},n.prototype.truncateIntegralFields=function(e,t){t.forEach(function(r){r in e&&typeof e[r]=="number"&&(e[r]=Math.floor(e[r]))})},n}();/*! @azure/msal-common v13.3.3 2024-06-06 */var Qo=function(){function n(){}return n.prototype.startMeasurement=function(){},n.prototype.endMeasurement=function(){},n.prototype.flushMeasurement=function(){return null},n}(),Ta=function(n){tt(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new Qo},e.prototype.startPerformanceMeasurement=function(){return new Qo},e.prototype.calculateQueuedTime=function(t,r){return 0},e.prototype.addQueueMeasurement=function(t,r,o){},e.prototype.setPreQueueTime=function(t,r){},e}($o);/*! @azure/msal-browser v2.39.0 2024-06-06 */var U={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},q=function(n){qe(e,n);function e(t,r){var o=n.call(this,t,r)||this;return Object.setPrototypeOf(o,e.prototype),o.name="BrowserAuthError",o}return e.createPkceNotGeneratedError=function(t){return new e(U.pkceNotGenerated.code,U.pkceNotGenerated.desc+" Detail:"+t)},e.createCryptoNotAvailableError=function(t){return new e(U.cryptoDoesNotExist.code,U.cryptoDoesNotExist.desc+" Detail:"+t)},e.createHttpMethodNotImplementedError=function(t){return new e(U.httpMethodNotImplementedError.code,U.httpMethodNotImplementedError.desc+" Given Method: "+t)},e.createEmptyNavigationUriError=function(){return new e(U.emptyNavigateUriError.code,U.emptyNavigateUriError.desc)},e.createEmptyHashError=function(t){return new e(U.hashEmptyError.code,U.hashEmptyError.desc+" Given Url: "+t)},e.createHashDoesNotContainStateError=function(){return new e(U.hashDoesNotContainStateError.code,U.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(U.hashDoesNotContainKnownPropertiesError.code,U.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(U.unableToParseStateError.code,U.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(U.stateInteractionTypeMismatchError.code,U.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(U.interactionInProgress.code,U.interactionInProgress.desc)},e.createPopupWindowError=function(t){var r=U.popupWindowError.desc;return r=K.isEmpty(t)?r:r+" Details: "+t,new e(U.popupWindowError.code,r)},e.createEmptyWindowCreatedError=function(){return new e(U.emptyWindowError.code,U.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(U.userCancelledError.code,U.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(U.monitorPopupTimeoutError.code,U.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(U.monitorIframeTimeoutError.code,U.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(t){return new e(U.redirectInIframeError.code,U.redirectInIframeError.desc+" (window.parent !== window) => "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(U.blockTokenRequestsInHiddenIframeError.code,U.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(U.blockAcquireTokenInPopupsError.code,U.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(U.iframeClosedPrematurelyError.code,U.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(U.silentLogoutUnsupportedError.code,U.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(U.noAccountError.code,U.noAccountError.desc)},e.createSilentPromptValueError=function(t){return new e(U.silentPromptValueError.code,U.silentPromptValueError.desc+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(U.unableToParseTokenRequestCacheError.code,U.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(U.noTokenRequestCacheError.code,U.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(U.authRequestNotSet.code,U.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(U.noCachedAuthorityError.code,U.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(U.invalidCacheType.code,""+U.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(U.notInBrowserEnvironment.code,U.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(U.databaseNotOpen.code,U.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(U.noNetworkConnectivity.code,U.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(t,r){return new e(U.postRequestFailed.code,U.postRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+r.split("?")[0])},e.createGetRequestFailedError=function(t,r){return new e(U.getRequestFailed.code,U.getRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+r.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(U.failedToParseNetworkResponse.code,U.failedToParseNetworkResponse.desc+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(U.unableToLoadTokenError.code,U.unableToLoadTokenError.desc+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(U.signingKeyNotFoundInStorage.code,U.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+t)},e.createAuthCodeRequiredError=function(){return new e(U.authCodeRequired.code,U.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(U.authCodeOrNativeAccountRequired.code,U.authCodeOrNativeAccountRequired.desc)},e.createSpaCodeAndNativeAccountIdPresentError=function(){return new e(U.spaCodeAndNativeAccountPresent.code,U.spaCodeAndNativeAccountPresent.desc)},e.createDatabaseUnavailableError=function(){return new e(U.databaseUnavailable.code,U.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(U.unableToAcquireTokenFromNativePlatform.code,U.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(U.nativeHandshakeTimeout.code,U.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(U.nativeExtensionNotInstalled.code,U.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(U.nativeConnectionNotEstablished.code,U.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(U.nativeBrokerCalledBeforeInitialize.code,U.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(U.nativePromptNotSupported.code,U.nativePromptNotSupported.desc)},e}(X);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Rt={INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},qn={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},$t;(function(n){n.HandshakeRequest="Handshake",n.HandshakeResponse="HandshakeResponse",n.GetToken="GetToken",n.Response="Response"})($t||($t={}));var Oe;(function(n){n.LocalStorage="localStorage",n.SessionStorage="sessionStorage",n.MemoryStorage="memoryStorage"})(Oe||(Oe={}));var zt;(function(n){n.GET="GET",n.POST="POST"})(zt||(zt={}));var _e;(function(n){n.AUTHORITY="authority",n.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",n.SESSION_STATE="session.state",n.REQUEST_STATE="request.state",n.NONCE_IDTOKEN="nonce.id_token",n.ORIGIN_URI="request.origin",n.RENEW_STATUS="token.renew.status",n.URL_HASH="urlHash",n.REQUEST_PARAMS="request.params",n.SCOPES="scopes",n.INTERACTION_STATUS_KEY="interaction.status",n.CCS_CREDENTIAL="ccs.credential",n.CORRELATION_ID="request.correlationId",n.NATIVE_REQUEST="request.native",n.REDIRECT_CONTEXT="request.redirect.context"})(_e||(_e={}));var Ut;(function(n){n.ACCOUNT_KEYS="msal.account.keys",n.TOKEN_KEYS="msal.token.keys"})(Ut||(Ut={}));var Sn;(function(n){n.WRAPPER_SKU="wrapper.sku",n.WRAPPER_VER="wrapper.version"})(Sn||(Sn={}));var Se;(function(n){n[n.acquireTokenRedirect=861]="acquireTokenRedirect",n[n.acquireTokenPopup=862]="acquireTokenPopup",n[n.ssoSilent=863]="ssoSilent",n[n.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",n[n.handleRedirectPromise=865]="handleRedirectPromise",n[n.acquireTokenByCode=866]="acquireTokenByCode",n[n.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",n[n.logout=961]="logout",n[n.logoutPopup=962]="logoutPopup"})(Se||(Se={}));var Y;(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"})(Y||(Y={}));var Wo;(function(n){n.Startup="startup",n.Login="login",n.Logout="logout",n.AcquireToken="acquireToken",n.SsoSilent="ssoSilent",n.HandleRedirect="handleRedirect",n.None="none"})(Wo||(Wo={}));var Yo={scopes:Mn},In="jwk",Jo;(function(n){n.React="@azure/msal-react",n.Angular="@azure/msal-angular"})(Jo||(Jo={}));var zr="msal.db",Sa=1,Ia=zr+".keys",ot;(function(n){n[n.Default=0]="Default",n[n.AccessToken=1]="AccessToken",n[n.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",n[n.RefreshToken=3]="RefreshToken",n[n.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",n[n.Skip=5]="Skip"})(ot||(ot={}));/*! @azure/msal-browser v2.39.0 2024-06-06 */var it={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}},lr=function(n){qe(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(it.redirectUriNotSet.code,it.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(it.postLogoutUriNotSet.code,it.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(t){return new e(it.storageNotSupportedError.code,it.storageNotSupportedError.desc+" Given Location: "+t)},e.createRedirectCallbacksNotSetError=function(){return new e(it.noRedirectCallbacksSet.code,it.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(it.stubPcaInstanceCalled.code,it.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(it.inMemRedirectUnavailable.code,it.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(it.entropyNotProvided.code,it.entropyNotProvided.desc)},e}(X);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Xo=function(){function n(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return n.prototype.validateWindowStorage=function(e){if(e!==Oe.LocalStorage&&e!==Oe.SessionStorage)throw lr.createStorageNotSupportedError(e);var t=!!window[e];if(!t)throw lr.createStorageNotSupportedError(e)},n.prototype.getItem=function(e){return this.windowStorage.getItem(e)},n.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},n.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},n.prototype.getKeys=function(){return Object.keys(this.windowStorage)},n.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Ur=function(){function n(){this.cache=new Map}return n.prototype.getItem=function(e){return this.cache.get(e)||null},n.prototype.setItem=function(e,t){this.cache.set(e,t)},n.prototype.removeItem=function(e){this.cache.delete(e)},n.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,r){e.push(r)}),e},n.prototype.containsKey=function(e){return this.cache.has(e)},n.prototype.clear=function(){this.cache.clear()},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Zo=function(){function n(){}return n.extractBrowserRequestState=function(e,t){if(K.isEmpty(t))return null;try{var r=Gt.parseRequestState(e,t);return r.libraryState.meta}catch(o){throw Q.createInvalidStateError(t,o)}},n.parseServerResponseFromHash=function(e){if(!e)return{};var t=new ge(e);return ge.getDeserializedHash(t.getHash())},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Dr=function(n){qe(e,n);function e(t,r,o,i){var l=n.call(this,t,o,i)||this;return l.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,l.cacheConfig=r,l.logger=i,l.internalStorage=new Ur,l.browserStorage=l.setupBrowserStorage(l.cacheConfig.cacheLocation),l.temporaryCacheStorage=l.setupTemporaryCacheStorage(l.cacheConfig.temporaryCacheLocation,l.cacheConfig.cacheLocation),r.cacheMigrationEnabled&&(l.migrateCacheEntries(),l.createKeyMaps()),l}return e.prototype.setupBrowserStorage=function(t){switch(t){case Oe.LocalStorage:case Oe.SessionStorage:try{return new Xo(t)}catch(r){this.logger.verbose(r);break}}return this.cacheConfig.cacheLocation=Oe.MemoryStorage,new Ur},e.prototype.setupTemporaryCacheStorage=function(t,r){switch(r){case Oe.LocalStorage:case Oe.SessionStorage:try{return new Xo(t||Oe.SessionStorage)}catch(o){return this.logger.verbose(o),this.internalStorage}case Oe.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,r=C.CACHE_PREFIX+"."+ze.ID_TOKEN,o=C.CACHE_PREFIX+"."+ze.CLIENT_INFO,i=C.CACHE_PREFIX+"."+ze.ERROR,l=C.CACHE_PREFIX+"."+ze.ERROR_DESC,d=this.browserStorage.getItem(r),h=this.browserStorage.getItem(o),f=this.browserStorage.getItem(i),u=this.browserStorage.getItem(l),y=[d,h,f,u],_=[ze.ID_TOKEN,ze.CLIENT_INFO,ze.ERROR,ze.ERROR_DESC];_.forEach(function(k,T){return t.migrateCacheEntry(k,y[T])})},e.prototype.migrateCacheEntry=function(t,r){r&&this.setTemporaryCache(t,r,!0)},e.prototype.createKeyMaps=function(){var t=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var r=this.getItem(Ut.ACCOUNT_KEYS),o=this.getItem(Ut.TOKEN_KEYS+"."+this.clientId);if(r&&o){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}var i=this.browserStorage.getKeys();i.forEach(function(l){if(t.isCredentialKey(l)){var d=t.getItem(l);if(d){var h=t.validateAndParseJson(d);if(h&&h.hasOwnProperty("credentialType"))switch(h.credentialType){case te.ID_TOKEN:if(tn.isIdTokenEntity(h)){t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+l+" found, saving key to token key map");var f=rt.toObject(new tn,h),u=t.updateCredentialCacheKey(l,f);t.addTokenKey(u,te.ID_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+l);break;case te.ACCESS_TOKEN:case te.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(nn.isAccessTokenEntity(h)){t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+l+" found, saving key to token key map");var y=rt.toObject(new nn,h),u=t.updateCredentialCacheKey(l,y);t.addTokenKey(u,te.ACCESS_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+l);break;case te.REFRESH_TOKEN:if(kn.isRefreshTokenEntity(h)){t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+l+" found, saving key to token key map");var _=rt.toObject(new kn,h),u=t.updateCredentialCacheKey(l,_);t.addTokenKey(u,te.REFRESH_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+l);break}}}if(t.isAccountKey(l)){var d=t.getItem(l);if(d){var k=t.validateAndParseJson(d);k&&Ye.isAccountEntity(k)&&(t.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+l+" found, saving key to account key map"),t.addAccountKeyToMap(l))}}})},e.prototype.validateAndParseJson=function(t){try{var r=JSON.parse(t);return r&&typeof r=="object"?r:null}catch{return null}},e.prototype.getItem=function(t){return this.browserStorage.getItem(t)},e.prototype.setItem=function(t,r){this.browserStorage.setItem(t,r)},e.prototype.getAccount=function(t){this.logger.trace("BrowserCacheManager.getAccount called");var r=this.getItem(t);if(!r)return this.removeAccountKeyFromMap(t),null;var o=this.validateAndParseJson(r);return!o||!Ye.isAccountEntity(o)?(this.removeAccountKeyFromMap(t),null):rt.toObject(new Ye,o)},e.prototype.setAccount=function(t){this.logger.trace("BrowserCacheManager.setAccount called");var r=t.generateAccountKey();this.setItem(r,JSON.stringify(t)),this.addAccountKeyToMap(r)},e.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var t=this.getItem(Ut.ACCOUNT_KEYS);return t?JSON.parse(t):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},e.prototype.addAccountKeyToMap=function(t){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+t);var r=this.getAccountKeys();r.indexOf(t)===-1?(r.push(t),this.setItem(Ut.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},e.prototype.removeAccountKeyFromMap=function(t){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+t);var r=this.getAccountKeys(),o=r.indexOf(t);o>-1?(r.splice(o,1),this.setItem(Ut.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},e.prototype.removeAccount=function(t){return x(this,void 0,void 0,function(){return B(this,function(r){return n.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]})})},e.prototype.removeIdToken=function(t){n.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,te.ID_TOKEN)},e.prototype.removeAccessToken=function(t){return x(this,void 0,void 0,function(){return B(this,function(r){return n.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,te.ACCESS_TOKEN),[2]})})},e.prototype.removeRefreshToken=function(t){n.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,te.REFRESH_TOKEN)},e.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var t=this.getItem(Ut.TOKEN_KEYS+"."+this.clientId);if(t){var r=this.validateAndParseJson(t);if(r&&r.hasOwnProperty("idToken")&&r.hasOwnProperty("accessToken")&&r.hasOwnProperty("refreshToken"))return r;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},e.prototype.addTokenKey=function(t,r){this.logger.trace("BrowserCacheManager addTokenKey called");var o=this.getTokenKeys();switch(r){case te.ID_TOKEN:o.idToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),o.idToken.push(t));break;case te.ACCESS_TOKEN:o.accessToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),o.accessToken.push(t));break;case te.REFRESH_TOKEN:o.refreshToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),o.refreshToken.push(t));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+r),Q.createUnexpectedCredentialTypeError()}this.setItem(Ut.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},e.prototype.removeTokenKey=function(t,r){this.logger.trace("BrowserCacheManager removeTokenKey called");var o=this.getTokenKeys();switch(r){case te.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+t+" from map");var i=o.idToken.indexOf(t);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),o.idToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case te.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+t+" from map");var l=o.accessToken.indexOf(t);l>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),o.accessToken.splice(l,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case te.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+t+" from map");var d=o.refreshToken.indexOf(t);d>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),o.refreshToken.splice(d,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+r),Q.createUnexpectedCredentialTypeError()}this.setItem(Ut.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},e.prototype.getIdTokenCredential=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,te.ID_TOKEN),null;var o=this.validateAndParseJson(r);return!o||!tn.isIdTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,te.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),rt.toObject(new tn,o))},e.prototype.setIdTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var r=t.generateCredentialKey();this.setItem(r,JSON.stringify(t)),this.addTokenKey(r,te.ID_TOKEN)},e.prototype.getAccessTokenCredential=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,te.ACCESS_TOKEN),null;var o=this.validateAndParseJson(r);return!o||!nn.isAccessTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,te.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),rt.toObject(new nn,o))},e.prototype.setAccessTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var r=t.generateCredentialKey();this.setItem(r,JSON.stringify(t)),this.addTokenKey(r,te.ACCESS_TOKEN)},e.prototype.getRefreshTokenCredential=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,te.REFRESH_TOKEN),null;var o=this.validateAndParseJson(r);return!o||!kn.isRefreshTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,te.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),rt.toObject(new kn,o))},e.prototype.setRefreshTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var r=t.generateCredentialKey();this.setItem(r,JSON.stringify(t)),this.addTokenKey(r,te.REFRESH_TOKEN)},e.prototype.getAppMetadata=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(r);return!o||!xr.isAppMetadataEntity(t,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),rt.toObject(new xr,o))},e.prototype.setAppMetadata=function(t){this.logger.trace("BrowserCacheManager.setAppMetadata called");var r=t.generateAppMetadataKey();this.setItem(r,JSON.stringify(t))},e.prototype.getServerTelemetry=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var o=this.validateAndParseJson(r);return!o||!sr.isServerTelemetryEntity(t,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),rt.toObject(new sr,o))},e.prototype.setServerTelemetry=function(t,r){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(t,JSON.stringify(r))},e.prototype.getAuthorityMetadata=function(t){var r=this.internalStorage.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(r);return o&&Br.isAuthorityMetadataEntity(t,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),rt.toObject(new Br,o)):null},e.prototype.getAuthorityMetadataKeys=function(){var t=this,r=this.internalStorage.getKeys();return r.filter(function(o){return t.isAuthorityMetadata(o)})},e.prototype.setWrapperMetadata=function(t,r){this.internalStorage.setItem(Sn.WRAPPER_SKU,t),this.internalStorage.setItem(Sn.WRAPPER_VER,r)},e.prototype.getWrapperMetadata=function(){var t=this.internalStorage.getItem(Sn.WRAPPER_SKU)||C.EMPTY_STRING,r=this.internalStorage.getItem(Sn.WRAPPER_VER)||C.EMPTY_STRING;return[t,r]},e.prototype.setAuthorityMetadata=function(t,r){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(t,JSON.stringify(r))},e.prototype.getActiveAccount=function(){var t=this.generateCacheKey(ze.ACTIVE_ACCOUNT_FILTERS),r=this.getItem(t);if(!r){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var o=this.generateCacheKey(ze.ACTIVE_ACCOUNT),i=this.getItem(o);if(!i)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var l=this.getAccountInfoByFilter({localAccountId:i})[0]||null;return l?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(l),l):null}var d=this.validateAndParseJson(r);return d?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:d.homeAccountId,localAccountId:d.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},e.prototype.setActiveAccount=function(t){var r=this.generateCacheKey(ze.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(ze.ACTIVE_ACCOUNT);if(t){this.logger.verbose("setActiveAccount: Active account set");var i={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId};this.browserStorage.setItem(r,JSON.stringify(i)),this.browserStorage.setItem(o,t.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(r),this.browserStorage.removeItem(o)},e.prototype.getAccountInfoByFilter=function(t){var r=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+r.length+" accounts found"),r.filter(function(o){return!(t.username&&t.username.toLowerCase()!==o.username.toLowerCase()||t.homeAccountId&&t.homeAccountId!==o.homeAccountId||t.localAccountId&&t.localAccountId!==o.localAccountId||t.tenantId&&t.tenantId!==o.tenantId||t.environment&&t.environment!==o.environment)})},e.prototype.getAccountInfoByHints=function(t,r){var o=this.getAllAccounts().filter(function(i){if(r){var l=i.idTokenClaims&&i.idTokenClaims.sid;return r===l}return t?t===i.username:!1});if(o.length===1)return o[0];if(o.length>1)throw Q.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var o=this.validateAndParseJson(r);return!o||!Ko.isThrottlingEntity(t,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),rt.toObject(new Ko,o))},e.prototype.setThrottlingCache=function(t,r){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(t,JSON.stringify(r))},e.prototype.getTemporaryCache=function(t,r){var o=r?this.generateCacheKey(t):t;if(this.cacheConfig.storeAuthStateInCookie){var i=this.getItemCookie(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),i}var l=this.temporaryCacheStorage.getItem(o);if(!l){if(this.cacheConfig.cacheLocation===Oe.LocalStorage){var d=this.browserStorage.getItem(o);if(d)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),d}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),l},e.prototype.setTemporaryCache=function(t,r,o){var i=o?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(i,r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(i,r))},e.prototype.removeItem=function(t){this.browserStorage.removeItem(t),this.temporaryCacheStorage.removeItem(t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(t))},e.prototype.containsKey=function(t){return this.browserStorage.containsKey(t)||this.temporaryCacheStorage.containsKey(t)},e.prototype.getKeys=function(){return Sr(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return x(this,void 0,void 0,function(){var t=this;return B(this,function(r){switch(r.label){case 0:return[4,this.removeAllAccounts()];case 1:return r.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(o){(t.browserStorage.containsKey(o)||t.temporaryCacheStorage.containsKey(o))&&(o.indexOf(C.CACHE_PREFIX)!==-1||o.indexOf(t.clientId)!==-1)&&t.removeItem(o)}),this.internalStorage.clear(),[2]}})})},e.prototype.clearTokensAndKeysWithClaims=function(){return x(this,void 0,void 0,function(){var t,r,o=this;return B(this,function(i){switch(i.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),t=this.getTokenKeys(),r=[],t.accessToken.forEach(function(l){var d=o.getAccessTokenCredential(l);d!=null&&d.requestedClaimsHash&&l.includes(d.requestedClaimsHash.toLowerCase())&&r.push(o.removeAccessToken(l))}),[4,Promise.all(r)];case 1:return i.sent(),r.length>0&&this.logger.warning(r.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},e.prototype.setItemCookie=function(t,r,o){var i=encodeURIComponent(t)+"="+encodeURIComponent(r)+";path=/;SameSite=Lax;";if(o){var l=this.getCookieExpirationTime(o);i+="expires="+l+";"}this.cacheConfig.secureCookies&&(i+="Secure;"),document.cookie=i},e.prototype.getItemCookie=function(t){for(var r=encodeURIComponent(t)+"=",o=document.cookie.split(";"),i=0;i<o.length;i++){for(var l=o[i];l.charAt(0)===" ";)l=l.substring(1);if(l.indexOf(r)===0)return decodeURIComponent(l.substring(r.length,l.length))}return C.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var t=this,r=C.CACHE_PREFIX+"."+this.clientId,o=document.cookie.split(";");o.forEach(function(i){for(;i.charAt(0)===" ";)i=i.substring(1);if(i.indexOf(r)===0){var l=i.split("=")[0];t.clearItemCookie(l)}})},e.prototype.clearItemCookie=function(t){this.setItemCookie(t,C.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(t){var r=new Date,o=new Date(r.getTime()+t*this.COOKIE_LIFE_MULTIPLIER);return o.toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(t){var r=this.validateAndParseJson(t);return r?JSON.stringify(t):K.startsWith(t,C.CACHE_PREFIX)||K.startsWith(t,ze.ADAL_ID_TOKEN)?t:C.CACHE_PREFIX+"."+this.clientId+"."+t},e.prototype.generateAuthorityKey=function(t){var r=Gt.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(_e.AUTHORITY+"."+r)},e.prototype.generateNonceKey=function(t){var r=Gt.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(_e.NONCE_IDTOKEN+"."+r)},e.prototype.generateStateKey=function(t){var r=Gt.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(_e.REQUEST_STATE+"."+r)},e.prototype.getCachedAuthority=function(t){var r=this.generateStateKey(t),o=this.getTemporaryCache(r);if(!o)return null;var i=this.generateAuthorityKey(o);return this.getTemporaryCache(i)},e.prototype.updateCacheEntries=function(t,r,o,i,l){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var d=this.generateStateKey(t);this.setTemporaryCache(d,t,!1);var h=this.generateNonceKey(t);this.setTemporaryCache(h,r,!1);var f=this.generateAuthorityKey(t);if(this.setTemporaryCache(f,o,!1),l){var u={credential:l.homeAccountId,type:ut.HOME_ACCOUNT_ID};this.setTemporaryCache(_e.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!K.isEmpty(i)){var u={credential:i,type:ut.UPN};this.setTemporaryCache(_e.CCS_CREDENTIAL,JSON.stringify(u),!0)}},e.prototype.resetRequestCache=function(t){var r=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),K.isEmpty(t)||this.getKeys().forEach(function(o){o.indexOf(t)!==-1&&r.removeItem(o)}),t&&(this.removeItem(this.generateStateKey(t)),this.removeItem(this.generateNonceKey(t)),this.removeItem(this.generateAuthorityKey(t))),this.removeItem(this.generateCacheKey(_e.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(_e.ORIGIN_URI)),this.removeItem(this.generateCacheKey(_e.URL_HASH)),this.removeItem(this.generateCacheKey(_e.CORRELATION_ID)),this.removeItem(this.generateCacheKey(_e.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(_e.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(t){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),t){var r=this.generateStateKey(t),o=this.temporaryCacheStorage.getItem(r);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+o),this.resetRequestCache(o||C.EMPTY_STRING)}this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(t){var r=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(o){if(o.indexOf(_e.REQUEST_STATE)!==-1){var i=r.temporaryCacheStorage.getItem(o);if(i){var l=Zo.extractBrowserRequestState(r.cryptoImpl,i);l&&l.interactionType===t&&(r.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+i),r.resetRequestCache(i))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(t,r){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var o=r.base64Encode(JSON.stringify(t));this.setTemporaryCache(_e.REQUEST_PARAMS,o,!0)},e.prototype.getCachedRequest=function(t,r){this.logger.trace("BrowserCacheManager.getCachedRequest called");var o=this.getTemporaryCache(_e.REQUEST_PARAMS,!0);if(!o)throw q.createNoTokenRequestCacheError();var i=this.validateAndParseJson(r.base64Decode(o));if(!i)throw q.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(_e.REQUEST_PARAMS)),K.isEmpty(i.authority)){var l=this.generateAuthorityKey(t),d=this.getTemporaryCache(l);if(!d)throw q.createNoCachedAuthorityError();i.authority=d}return i},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var t=this.getTemporaryCache(_e.NATIVE_REQUEST,!0);if(!t)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var r=this.validateAndParseJson(t);return r||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},e.prototype.isInteractionInProgress=function(t){var r=this.getInteractionInProgress();return t?r===this.clientId:!!r},e.prototype.getInteractionInProgress=function(){var t=C.CACHE_PREFIX+"."+_e.INTERACTION_STATUS_KEY;return this.getTemporaryCache(t,!1)},e.prototype.setInteractionInProgress=function(t){var r=C.CACHE_PREFIX+"."+_e.INTERACTION_STATUS_KEY;if(t){if(this.getInteractionInProgress())throw q.createInteractionInProgressError();this.setTemporaryCache(r,this.clientId,!1)}else!t&&this.getInteractionInProgress()===this.clientId&&this.removeItem(r)},e.prototype.getLegacyLoginHint=function(){var t=this.getTemporaryCache(ze.ADAL_ID_TOKEN);t&&(this.browserStorage.removeItem(ze.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var r=this.getTemporaryCache(ze.ID_TOKEN,!0);r&&(this.removeItem(this.generateCacheKey(ze.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var o=r||t;if(o){var i=new Bt(o,this.cryptoImpl);if(i.claims&&i.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),i.claims.preferred_username;if(i.claims&&i.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),i.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},e.prototype.updateCredentialCacheKey=function(t,r){var o=r.generateCredentialKey();if(t!==o){var i=this.getItem(t);if(i)return this.removeItem(t),this.setItem(o,i),this.logger.verbose("Updated an outdated "+r.credentialType+" cache key"),o;this.logger.error("Attempted to update an outdated "+r.credentialType+" cache key but no item matching the outdated key was found in storage")}return t},e.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(_e.REDIRECT_CONTEXT,!0)},e.prototype.setRedirectRequestContext=function(t){this.setTemporaryCache(_e.REDIRECT_CONTEXT,t,!0)},e.prototype.hydrateCache=function(t,r){var o,i,l,d,h,f;return x(this,void 0,void 0,function(){var u,y,_,k;return B(this,function(T){switch(T.label){case 0:return u=tn.createIdTokenEntity(((o=t.account)===null||o===void 0?void 0:o.homeAccountId)||"",((i=t.account)===null||i===void 0?void 0:i.environment)||"",t.idToken,this.clientId,t.tenantId),r.claims?[4,this.cryptoImpl.hashString(r.claims)]:[3,2];case 1:y=T.sent(),T.label=2;case 2:return _=nn.createAccessTokenEntity(((l=t.account)===null||l===void 0?void 0:l.homeAccountId)||"",((d=t.account)===null||d===void 0?void 0:d.environment)||"",t.accessToken,this.clientId,t.tenantId,t.scopes.join(" "),((h=t.expiresOn)===null||h===void 0?void 0:h.getTime())||0,((f=t.extExpiresOn)===null||f===void 0?void 0:f.getTime())||0,this.cryptoImpl,void 0,t.tokenType,void 0,r.sshKid,r.claims,y),k=new Cn(void 0,u,_),[2,this.saveCacheRecord(k)]}})})},e}(rt),Aa=function(n,e){var t={cacheLocation:Oe.MemoryStorage,temporaryCacheLocation:Oe.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new Dr(n,t,tr,e)};/*! @azure/msal-browser v2.39.0 2024-06-06 */var Fr="@azure/msal-browser",Vn="2.39.0";/*! @azure/msal-browser v2.39.0 2024-06-06 */var Ra=function(){function n(){}return n.prototype.sendGetRequestAsync=function(e,t){return x(this,void 0,void 0,function(){var r,o,i;return B(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,fetch(e,{method:zt.GET,headers:this.getFetchHeaders(t)})];case 1:return r=l.sent(),[3,3];case 2:throw o=l.sent(),window.navigator.onLine?q.createGetRequestFailedError(o,e):q.createNoNetworkConnectivityError();case 3:return l.trys.push([3,5,,6]),i={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 4:return[2,(i.body=l.sent(),i.status=r.status,i)];case 5:throw l.sent(),q.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},n.prototype.sendPostRequestAsync=function(e,t){return x(this,void 0,void 0,function(){var r,o,i,l;return B(this,function(d){switch(d.label){case 0:r=t&&t.body||C.EMPTY_STRING,d.label=1;case 1:return d.trys.push([1,3,,4]),[4,fetch(e,{method:zt.POST,headers:this.getFetchHeaders(t),body:r})];case 2:return o=d.sent(),[3,4];case 3:throw i=d.sent(),window.navigator.onLine?q.createPostRequestFailedError(i,e):q.createNoNetworkConnectivityError();case 4:return d.trys.push([4,6,,7]),l={headers:this.getHeaderDict(o.headers)},[4,o.json()];case 5:return[2,(l.body=d.sent(),l.status=o.status,l)];case 6:throw d.sent(),q.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},n.prototype.getFetchHeaders=function(e){var t=new Headers;if(!(e&&e.headers))return t;var r=e.headers;return Object.keys(r).forEach(function(o){t.append(o,r[o])}),t},n.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(r,o){t[o]=r}),t},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Na=function(){function n(){}return n.prototype.sendGetRequestAsync=function(e,t){return x(this,void 0,void 0,function(){return B(this,function(r){return[2,this.sendRequestAsync(e,zt.GET,t)]})})},n.prototype.sendPostRequestAsync=function(e,t){return x(this,void 0,void 0,function(){return B(this,function(r){return[2,this.sendRequestAsync(e,zt.POST,t)]})})},n.prototype.sendRequestAsync=function(e,t,r){var o=this;return new Promise(function(i,l){var d=new XMLHttpRequest;if(d.open(t,e,!0),o.setXhrHeaders(d,r),d.onload=function(){(d.status<200||d.status>=300)&&(t===zt.POST?l(q.createPostRequestFailedError("Failed with status "+d.status,e)):l(q.createGetRequestFailedError("Failed with status "+d.status,e)));try{var h=JSON.parse(d.responseText),f={headers:o.getHeaderDict(d),body:h,status:d.status};i(f)}catch{l(q.createFailedToParseNetworkResponseError(e))}},d.onerror=function(){window.navigator.onLine?t===zt.POST?l(q.createPostRequestFailedError("Failed with status "+d.status,e)):l(q.createGetRequestFailedError("Failed with status "+d.status,e)):l(q.createNoNetworkConnectivityError())},t===zt.POST&&r&&r.body)d.send(r.body);else if(t===zt.GET)d.send();else throw q.createHttpMethodNotImplementedError(t)})},n.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var r=t.headers;Object.keys(r).forEach(function(o){e.setRequestHeader(o,r[o])})}},n.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders(),r=t.trim().split(/[\r\n]+/),o={};return r.forEach(function(i){var l=i.split(": "),d=l.shift(),h=l.join(": ");d&&h&&(o[d]=h)}),o},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Ae=function(){function n(){}return n.clearHash=function(e){e.location.hash=C.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,C.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},n.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):C.EMPTY_STRING},n.isInIframe=function(){return window.parent!==window},n.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(Rt.POPUP_NAME_PREFIX+".")===0},n.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},n.getHomepage=function(){var e=new ge(window.location.href),t=e.getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},n.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Ra:new Na},n.blockReloadInHiddenIframes=function(){var e=ge.hashContainsKnownProperties(window.location.hash);if(e&&n.isInIframe())throw q.createBlockReloadInHiddenIframeError()},n.blockRedirectInIframe=function(e,t){var r=n.isInIframe();if(e===Y.Redirect&&r&&!t)throw q.createRedirectInIframeError(r)},n.blockAcquireTokenInPopups=function(){if(n.isInPopup())throw q.createBlockAcquireTokenInPopupsError()},n.blockNonBrowserEnvironment=function(e){if(!e)throw q.createNonBrowserEnvironmentError()},n.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw q.createNativeBrokerCalledBeforeInitialize()},n.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/"),o=e.indexOf("Edge/"),i=t>0||r>0,l=o>0;return i||l},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var ei=function(){function n(e,t,r,o,i,l,d,h,f){this.config=e,this.browserStorage=t,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=l,this.nativeMessageHandler=h,this.correlationId=f||this.browserCrypto.createNewGuid(),this.logger=o.clone(Rt.MSAL_SKU,Vn,this.correlationId),this.performanceClient=d}return n.prototype.clearCacheOnLogout=function(e){return x(this,void 0,void 0,function(){return B(this,function(t){switch(t.label){case 0:if(!e)return[3,5];Ye.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(Ye.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},n.prototype.initializeBaseRequest=function(e,t){return x(this,void 0,void 0,function(){var r,o,i,l;return B(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(P.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),r=e.authority||this.config.auth.authority,t?[4,this.validateRequestAuthority(r,t)]:[3,2];case 1:d.sent(),d.label=2;case 2:if(o=Sr(e&&e.scopes||[]),i=$($({},e),{correlationId:this.correlationId,authority:r,scopes:o}),!i.authenticationScheme)i.authenticationScheme=ke.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(i.authenticationScheme===ke.SSH){if(!e.sshJwk)throw Te.createMissingSshJwkError();if(!e.sshKid)throw Te.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+i.authenticationScheme+'" as configured in Auth request')}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!K.isEmptyObj(e.claims)?(l=i,[4,this.browserCrypto.hashString(e.claims)]):[3,4];case 3:l.requestedClaimsHash=d.sent(),d.label=4;case 4:return[2,i]}})})},n.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||Ae.getCurrentUri();return ge.getAbsoluteUrl(t,Ae.getCurrentUri())},n.prototype.validateRequestAuthority=function(e,t){return x(this,void 0,void 0,function(){var r;return B(this,function(o){switch(o.label){case 0:return[4,this.getDiscoveredAuthority(e)];case 1:if(r=o.sent(),!r.isAlias(t.environment))throw Te.createAuthorityMismatchError();return[2]}})})},n.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var r={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Ca(r,this.browserStorage)},n.prototype.getDiscoveredAuthority=function(e){return x(this,void 0,void 0,function(){var t;return B(this,function(r){switch(r.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,ar.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,r.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,ar.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,r.sent()]}})})},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var An=function(n){qe(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(t){return x(this,void 0,void 0,function(){var r,o;return B(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(P.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),this.logger.verbose("initializeAuthorizationRequest called",t.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return r=i.sent(),o=$($({},t),{redirectUri:t.redirectUri,code:C.EMPTY_STRING,codeVerifier:r.verifier}),t.codeChallenge=r.challenge,t.codeChallengeMethod=C.S256_CODE_CHALLENGE_METHOD,[2,o]}})})},e.prototype.initializeLogoutRequest=function(t){this.logger.verbose("initializeLogoutRequest called",t==null?void 0:t.correlationId);var r=$({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},t);if(t)if(t.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(t.account){var o=this.getLogoutHintFromIdTokenClaims(t.account);o&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),r.logoutHint=o)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!t||t.postLogoutRedirectUri!==null?t&&t.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",r.correlationId),r.postLogoutRedirectUri=ge.getAbsoluteUrl(t.postLogoutRedirectUri,Ae.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",r.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",r.correlationId),r.postLogoutRedirectUri=ge.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Ae.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",r.correlationId),r.postLogoutRedirectUri=ge.getAbsoluteUrl(Ae.getCurrentUri(),Ae.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",r.correlationId),r},e.prototype.getLogoutHintFromIdTokenClaims=function(t){var r=t.idTokenClaims;if(r){if(r.login_hint)return r.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},e.prototype.createAuthCodeClient=function(t,r,o){return x(this,void 0,void 0,function(){var i;return B(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(P.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(P.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,r,o)];case 1:return i=l.sent(),[2,new Fo(i,this.performanceClient)]}})})},e.prototype.getClientConfiguration=function(t,r,o){return x(this,void 0,void 0,function(){var i,l;return B(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(P.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(P.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(r,o)];case 1:return i=d.sent(),l=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:i,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:l.loggerCallback,piiLoggingEnabled:l.piiLoggingEnabled,logLevel:l.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:Rt.MSAL_SKU,version:Vn,cpu:C.EMPTY_STRING,os:C.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(t,r,o){if(this.logger.verbose("validateAndExtractStateFromHash called",o),!t.state)throw q.createHashDoesNotContainStateError();var i=Zo.extractBrowserRequestState(this.browserCrypto,t.state);if(!i)throw q.createUnableToParseStateError();if(i.interactionType!==r)throw q.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",o),t.state},e.prototype.getDiscoveredAuthority=function(t,r){var o;return x(this,void 0,void 0,function(){var i,l,d,h;return B(this,function(f){switch(f.label){case 0:return this.performanceClient.addQueueMeasurement(P.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(P.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),l={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},d=t||this.config.auth.authority,h=jn.generateAuthority(d,r||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(P.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,ar.createDiscoveredInstance(h,this.config.system.networkClient,this.browserStorage,l,this.logger,this.performanceClient,this.correlationId).then(function(u){return i.endMeasurement({success:!0}),u}).catch(function(u){throw i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})];case 1:return[2,f.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(t,r){return x(this,void 0,void 0,function(){var o,i,l,d,h,f,u;return B(this,function(y){switch(y.label){case 0:return this.performanceClient.addQueueMeasurement(P.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),o=this.getRedirectUri(t.redirectUri),i={interactionType:r},l=Gt.setRequestState(this.browserCrypto,t&&t.state||C.EMPTY_STRING,i),this.performanceClient.setPreQueueTime(P.InitializeBaseRequest,this.correlationId),h=[{}],[4,this.initializeBaseRequest(t)];case 1:return d=$.apply(void 0,[$.apply(void 0,h.concat([y.sent()])),{redirectUri:o,state:l,nonce:t.nonce||this.browserCrypto.createNewGuid(),responseMode:Jn.FRAGMENT}]),f=t.account||this.browserStorage.getActiveAccount(),f&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+f.homeAccountId,this.correlationId),d.account=f),K.isEmpty(d.loginHint)&&!f&&(u=this.browserStorage.getLegacyLoginHint(),u&&(d.loginHint=u)),[2,d]}})})},e}(ei);/*! @azure/msal-browser v2.39.0 2024-06-06 */var jr=function(){function n(e,t,r,o,i){this.authModule=e,this.browserStorage=t,this.authCodeRequest=r,this.logger=o,this.performanceClient=i}return n.prototype.handleCodeResponseFromHash=function(e,t,r,o){return x(this,void 0,void 0,function(){var i,l,d;return B(this,function(h){if(this.performanceClient.addQueueMeasurement(P.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),K.isEmpty(e))throw q.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(t),l=this.browserStorage.getTemporaryCache(i),!l)throw Q.createStateNotFoundError("Cached State");try{d=this.authModule.handleFragmentResponse(e,l)}catch(f){throw f instanceof pn&&f.subError===U.userCancelledError.code?q.createUserCancelledError():f}return this.performanceClient.setPreQueueTime(P.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(d,t,r,o)]})})},n.prototype.handleCodeResponseFromServer=function(e,t,r,o,i){return i===void 0&&(i=!0),x(this,void 0,void 0,function(){var l,d,h,f,u,y;return B(this,function(_){switch(_.label){case 0:if(this.performanceClient.addQueueMeasurement(P.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),l=this.browserStorage.generateStateKey(t),d=this.browserStorage.getTemporaryCache(l),!d)throw Q.createStateNotFoundError("Cached State");return h=this.browserStorage.generateNonceKey(d),f=this.browserStorage.getTemporaryCache(h),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(P.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,r,o)]):[3,2];case 1:_.sent(),_.label=2;case 2:return i&&(e.nonce=f||void 0),e.state=d,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(u=this.checkCcsCredentials(),u&&(this.authCodeRequest.ccsCredential=u)),this.performanceClient.setPreQueueTime(P.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return y=_.sent(),this.browserStorage.cleanRequestByState(t),[2,y]}})})},n.prototype.updateTokenEndpointAuthority=function(e,t,r){return x(this,void 0,void 0,function(){var o,i;return B(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(P.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),o="https://"+e+"/"+t.tenant+"/",[4,ar.createDiscoveredInstance(o,r,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return i=l.sent(),this.authModule.updateAuthority(i),[2]}})})},n.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(_e.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var ti=function(n){qe(e,n);function e(t,r,o,i,l,d){var h=n.call(this,t,r,o,i,d)||this;return h.browserCrypto=l,h}return e.prototype.initiateAuthRequest=function(t,r){return x(this,void 0,void 0,function(){var o,i;return B(this,function(l){switch(l.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),K.isEmpty(t)?[3,7]:(r.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(_e.ORIGIN_URI,r.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(_e.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),o={apiId:Se.acquireTokenRedirect,timeout:r.redirectTimeout,noHistory:!1},typeof r.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),i=r.onRedirectNavigate(t),i===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,r.navigationClient.navigateExternal(t,o)])));case 1:return l.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,r.navigationClient.navigateExternal(t,o)];case 5:return l.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),q.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(t,r,o,i){return x(this,void 0,void 0,function(){var l,d,h,f,u,y,_;return B(this,function(k){switch(k.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),K.isEmpty(t))throw q.createEmptyHashError(t);if(this.browserStorage.setInteractionInProgress(!1),l=this.browserStorage.generateStateKey(r),d=this.browserStorage.getTemporaryCache(l),!d)throw Q.createStateNotFoundError("Cached State");try{h=this.authModule.handleFragmentResponse(t,d)}catch(T){throw T instanceof pn&&T.subError===U.userCancelledError.code?q.createUserCancelledError():T}return f=this.browserStorage.generateNonceKey(d),u=this.browserStorage.getTemporaryCache(f),this.authCodeRequest.code=h.code,h.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(h.cloud_instance_host_name,o,i)]:[3,2];case 1:k.sent(),k.label=2;case 2:return h.nonce=u||void 0,h.state=d,h.client_info?this.authCodeRequest.clientInfo=h.client_info:(y=this.checkCcsCredentials(),y&&(this.authCodeRequest.ccsCredential=y)),[4,this.authModule.acquireToken(this.authCodeRequest,h)];case 3:return _=k.sent(),this.browserStorage.cleanRequestByState(r),[2,_]}})})},e}(jr);/*! @azure/msal-browser v2.39.0 2024-06-06 */var se;(function(n){n.INITIALIZE_START="msal:initializeStart",n.INITIALIZE_END="msal:initializeEnd",n.ACCOUNT_ADDED="msal:accountAdded",n.ACCOUNT_REMOVED="msal:accountRemoved",n.LOGIN_START="msal:loginStart",n.LOGIN_SUCCESS="msal:loginSuccess",n.LOGIN_FAILURE="msal:loginFailure",n.ACQUIRE_TOKEN_START="msal:acquireTokenStart",n.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",n.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",n.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",n.SSO_SILENT_START="msal:ssoSilentStart",n.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",n.SSO_SILENT_FAILURE="msal:ssoSilentFailure",n.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",n.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",n.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",n.HANDLE_REDIRECT_START="msal:handleRedirectStart",n.HANDLE_REDIRECT_END="msal:handleRedirectEnd",n.POPUP_OPENED="msal:popupOpened",n.LOGOUT_START="msal:logoutStart",n.LOGOUT_SUCCESS="msal:logoutSuccess",n.LOGOUT_FAILURE="msal:logoutFailure",n.LOGOUT_END="msal:logoutEnd",n.RESTORE_FROM_BFCACHE="msal:restoreFromBFCache"})(se||(se={}));/*! @azure/msal-browser v2.39.0 2024-06-06 */var rn;(function(n){n.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",n.USER_CANCEL="USER_CANCEL",n.NO_NETWORK="NO_NETWORK",n.TRANSIENT_ERROR="TRANSIENT_ERROR",n.PERSISTENT_ERROR="PERSISTENT_ERROR",n.DISABLED="DISABLED",n.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(rn||(rn={}));var Hn={extensionError:{code:"ContentError"},userSwitch:{code:"user_switch",desc:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},tokensNotFoundInCache:{code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"}},Dt=function(n){qe(e,n);function e(t,r,o){var i=n.call(this,t,r)||this;return Object.setPrototypeOf(i,e.prototype),i.name="NativeAuthError",i.ext=o,i}return e.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===rn.PERSISTENT_ERROR||this.ext.status===rn.DISABLED))return!0;switch(this.errorCode){case Hn.extensionError.code:return!0;default:return!1}},e.createError=function(t,r,o){if(o&&o.status)switch(o.status){case rn.ACCOUNT_UNAVAILABLE:return At.createNativeAccountUnavailableError();case rn.USER_INTERACTION_REQUIRED:return new At(t,r);case rn.USER_CANCEL:return q.createUserCancelledError();case rn.NO_NETWORK:return q.createNoNetworkConnectivityError()}return new e(t,r,o)},e.createUserSwitchError=function(){return new e(Hn.userSwitch.code,Hn.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(Hn.tokensNotFoundInCache.code,Hn.tokensNotFoundInCache.desc)},e}(X);/*! @azure/msal-browser v2.39.0 2024-06-06 */var ni=function(n){qe(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return x(this,void 0,void 0,function(){var r,o,i,l,d;return B(this,function(h){switch(h.label){case 0:return r=this.performanceClient.startMeasurement(P.SilentCacheClientAcquireToken,t.correlationId),o=this.initializeServerTelemetryManager(Se.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(o,t.authority,t.azureCloudOptions)];case 1:i=h.sent(),this.logger.verbose("Silent auth client created"),h.label=2;case 2:return h.trys.push([2,4,,5]),[4,i.acquireCachedToken(t)];case 3:return l=h.sent(),r.endMeasurement({success:!0,fromCache:!0}),[2,l];case 4:throw d=h.sent(),d instanceof q&&d.errorCode===U.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),r.endMeasurement({errorCode:d instanceof X&&d.errorCode||void 0,subErrorCode:d instanceof X&&d.subError||void 0,success:!1}),d;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(q.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(t,r,o){return x(this,void 0,void 0,function(){var i;return B(this,function(l){switch(l.label){case 0:return this.performanceClient.setPreQueueTime(P.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,r,o)];case 1:return i=l.sent(),[2,new _a(i,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(t,r){return x(this,void 0,void 0,function(){var o;return B(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(P.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(P.InitializeBaseRequest,this.correlationId),o=[$({},t)],[4,this.initializeBaseRequest(t,r)];case 1:return[2,$.apply(void 0,[$.apply(void 0,o.concat([i.sent()])),{account:r,forceRefresh:t.forceRefresh||!1}])]}})})},e}(An);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Rn=function(n){qe(e,n);function e(t,r,o,i,l,d,h,f,u,y,_,k){var T=n.call(this,t,r,o,i,l,d,f,u,k)||this;return T.apiId=h,T.accountId=y,T.nativeMessageHandler=u,T.nativeStorageManager=_,T.silentCacheClient=new ni(t,T.nativeStorageManager,o,i,l,d,f,u,k),T}return e.prototype.acquireToken=function(t){return x(this,void 0,void 0,function(){var r,o,i,l,d,h,f;return B(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),r=this.performanceClient.startMeasurement(P.NativeInteractionClientAcquireToken,t.correlationId),o=vt.nowSeconds(),[4,this.initializeNativeRequest(t)];case 1:i=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,i)];case 3:return l=u.sent(),r.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,l];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return d={method:$t.GetToken,request:i},[4,this.nativeMessageHandler.sendMessage(d)];case 6:return h=u.sent(),f=this.validateNativeResponse(h),[2,this.handleNativeResponse(f,i,o).then(function(y){return r.endMeasurement({success:!0,isNativeBroker:!0,requestId:y.requestId}),y}).catch(function(y){throw r.endMeasurement({success:!1,errorCode:y.errorCode,subErrorCode:y.subError,isNativeBroker:!0}),y})]}})})},e.prototype.createSilentCacheRequest=function(t,r){return{authority:t.authority,correlationId:this.correlationId,scopes:We.fromString(t.scope).asArray(),account:r,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(t,r){return x(this,void 0,void 0,function(){var o,i,l,d,h;return B(this,function(f){switch(f.label){case 0:if(!t)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),Q.createNoAccountFoundError();if(o=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t}),!o)throw Q.createNoAccountFoundError();f.label=1;case 1:return f.trys.push([1,3,,4]),i=this.createSilentCacheRequest(r,o),[4,this.silentCacheClient.acquireToken(i)];case 2:return l=f.sent(),d=$($({},o),{idTokenClaims:l.idTokenClaims}),[2,$($({},l),{account:d})];case 3:throw h=f.sent(),h;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(t){return x(this,void 0,void 0,function(){var r,o,i,l,d,h;return B(this,function(f){switch(f.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(t)];case 1:r=f.sent(),o={method:$t.GetToken,request:r},f.label=2;case 2:return f.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(o)];case 3:return i=f.sent(),this.validateNativeResponse(i),[3,5];case 4:if(l=f.sent(),l instanceof Dt&&l.isFatal())throw l;return[3,5];case 5:return this.browserStorage.setTemporaryCache(_e.NATIVE_REQUEST,JSON.stringify(r),!0),d={apiId:Se.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},h=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(t.redirectUri),[4,this.navigationClient.navigateExternal(h,d)];case 6:return f.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return x(this,void 0,void 0,function(){var t,r,o,i,l,d,h,f;return B(this,function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(t=this.browserStorage.getCachedNativeRequest(),!t)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];r=t.prompt,o=Lo(t,["prompt"]),r&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(_e.NATIVE_REQUEST)),i={method:$t.GetToken,request:o},l=vt.nowSeconds(),u.label=1;case 1:return u.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(i)];case 2:return d=u.sent(),this.validateNativeResponse(d),h=this.handleNativeResponse(d,o,l),this.browserStorage.setInteractionInProgress(!1),[2,h];case 3:throw f=u.sent(),this.browserStorage.setInteractionInProgress(!1),f;case 4:return[2]}})})},e.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},e.prototype.handleNativeResponse=function(t,r,o){return x(this,void 0,void 0,function(){var i,l,d,h,f;return B(this,function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),t.account.id!==r.accountId)throw Dt.createUserSwitchError();return[4,this.getDiscoveredAuthority(r.authority)];case 1:return i=u.sent(),l=this.createIdTokenObj(t),d=this.createHomeAccountIdentifier(t,l),h=Ye.createAccount({homeAccountId:d,idTokenClaims:l.claims,clientInfo:t.client_info,nativeAccountId:t.account.id},i),[4,this.generateAuthenticationResult(t,r,l,h,i.canonicalAuthority,o)];case 2:return f=u.sent(),this.cacheAccount(h),this.cacheNativeTokens(t,r,d,l,f.accessToken,f.tenantId,o),[2,f]}})})},e.prototype.createIdTokenObj=function(t){return new Bt(t.id_token||C.EMPTY_STRING,this.browserCrypto)},e.prototype.createHomeAccountIdentifier=function(t,r){var o=Ye.generateHomeAccountId(t.client_info||C.EMPTY_STRING,nt.Default,this.logger,this.browserCrypto,r.claims);return o},e.prototype.generateScopes=function(t,r){return t.scope?We.fromString(t.scope):We.fromString(r.scope)},e.prototype.generatePopAccessToken=function(t,r){return x(this,void 0,void 0,function(){var o,i;return B(this,function(l){switch(l.label){case 0:if(r.tokenType!==ke.POP)return[3,2];if(t.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,t.shr];if(o=new Tn(this.browserCrypto),i={resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,shrNonce:r.shrNonce},!r.keyId)throw Q.createKeyIdMissingError();return[4,o.signPopToken(t.access_token,r.keyId,i)];case 1:return[2,l.sent()];case 2:return[2,t.access_token]}})})},e.prototype.generateAuthenticationResult=function(t,r,o,i,l,d){return x(this,void 0,void 0,function(){var h,f,u,y,_,k,T,O;return B(this,function(M){switch(M.label){case 0:return h=this.addTelemetryFromNativeResponse(t),f=t.scope?We.fromString(t.scope):We.fromString(r.scope),u=t.account.properties||{},y=u.UID||o.claims.oid||o.claims.sub||C.EMPTY_STRING,_=u.TenantId||o.claims.tid||C.EMPTY_STRING,[4,this.generatePopAccessToken(t,r)];case 1:return k=M.sent(),T=r.tokenType===ke.POP?ke.POP:ke.BEARER,O={authority:l,uniqueId:y,tenantId:_,scopes:f.asArray(),account:i.getAccountInfo(),idToken:t.id_token,idTokenClaims:o.claims,accessToken:k,fromCache:h?this.isResponseFromCache(h):!1,expiresOn:new Date(Number(d+t.expires_in)*1e3),tokenType:T,correlationId:this.correlationId,state:t.state,fromNativeBroker:!0},[2,O]}})})},e.prototype.cacheAccount=function(t){var r=this;this.browserStorage.setAccount(t),this.browserStorage.removeAccountContext(t).catch(function(o){r.logger.error("Error occurred while removing account context from browser storage. "+o)})},e.prototype.cacheNativeTokens=function(t,r,o,i,l,d,h){var f=tn.createIdTokenEntity(o,r.authority,t.id_token||C.EMPTY_STRING,r.clientId,i.claims.tid||C.EMPTY_STRING),u=r.tokenType===ke.POP?C.SHR_NONCE_VALIDITY:(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,y=h+u,_=this.generateScopes(t,r),k=nn.createAccessTokenEntity(o,r.authority,l,r.clientId,i?i.claims.tid||C.EMPTY_STRING:d,_.printScopes(),y,0,this.browserCrypto),T=new Cn(void 0,f,k);this.nativeStorageManager.saveCacheRecord(T)},e.prototype.addTelemetryFromNativeResponse=function(t){var r=this.getMATSFromResponse(t);return r?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:r.broker_version,matsAccountJoinOnStart:r.account_join_on_start,matsAccountJoinOnEnd:r.account_join_on_end,matsDeviceJoin:r.device_join,matsPromptBehavior:r.prompt_behavior,matsApiErrorCode:r.api_error_code,matsUiVisible:r.ui_visible,matsSilentCode:r.silent_code,matsSilentBiSubCode:r.silent_bi_sub_code,matsSilentMessage:r.silent_message,matsSilentStatus:r.silent_status,matsHttpStatus:r.http_status,matsHttpEventCount:r.http_event_count},this.correlationId),r):null},e.prototype.validateNativeResponse=function(t){if(t.hasOwnProperty("access_token")&&t.hasOwnProperty("id_token")&&t.hasOwnProperty("client_info")&&t.hasOwnProperty("account")&&t.hasOwnProperty("scope")&&t.hasOwnProperty("expires_in"))return t;throw Dt.createUnexpectedError("Response missing expected properties.")},e.prototype.getMATSFromResponse=function(t){if(t.properties.MATS)try{return JSON.parse(t.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},e.prototype.isResponseFromCache=function(t){return typeof t.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!t.is_cached},e.prototype.initializeNativeRequest=function(t){return x(this,void 0,void 0,function(){var r,o,i,l,d,h,f,u,y,_,k=this;return B(this,function(T){switch(T.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),r=t.authority||this.config.auth.authority,t.account?[4,this.validateRequestAuthority(r,t.account)]:[3,2];case 1:T.sent(),T.label=2;case 2:return o=new ge(r),o.validateAsUri(),i=t.scopes,l=Lo(t,["scopes"]),d=new We(i||[]),d.appendScopes(Mn),h=function(){switch(k.apiId){case Se.ssoSilent:case Se.acquireTokenSilent_silentFlow:return k.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Qe.NONE}if(!t.prompt){k.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(t.prompt){case Qe.NONE:case Qe.CONSENT:case Qe.LOGIN:return k.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),t.prompt;default:throw k.logger.trace("initializeNativeRequest: prompt = "+t.prompt+" is not compatible with native flow"),q.createNativePromptParameterNotSupportedError()}},f=$($({},l),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:d.printScopes(),redirectUri:this.getRedirectUri(t.redirectUri),prompt:h(),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:$($($({},t.extraQueryParameters),t.tokenQueryParameters),{telemetry:qn.MATS_TELEMETRY}),extendedExpiryToken:!1}),t.authenticationScheme!==ke.POP?[3,4]:(u={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce},y=new Tn(this.browserCrypto),[4,y.generateCnf(u)]);case 3:_=T.sent(),f.reqCnf=_.reqCnfString,f.keyId=_.kid,T.label=4;case 4:return[2,f]}})})},e}(ei);/*! @azure/msal-browser v2.39.0 2024-06-06 */var mn=function(){function n(e,t,r,o){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=o,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=r,this.handshakeEvent=r.startMeasurement(P.NativeMessageHandlerHandshake)}return n.prototype.sendMessage=function(e){return x(this,void 0,void 0,function(){var t,r=this;return B(this,function(o){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:qn.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(t)),this.messageChannel.port1.postMessage(t),[2,new Promise(function(i,l){r.resolvers.set(t.responseId,{resolve:i,reject:l})})]})})},n.createProvider=function(e,t,r){return x(this,void 0,void 0,function(){var o,i;return B(this,function(l){switch(l.label){case 0:e.trace("NativeMessageHandler - createProvider called."),l.label=1;case 1:return l.trys.push([1,3,,5]),o=new n(e,t,r,qn.PREFERRED_EXTENSION_ID),[4,o.sendHandshakeRequest()];case 2:return l.sent(),[2,o];case 3:return l.sent(),i=new n(e,t,r),[4,i.sendHandshakeRequest()];case 4:return l.sent(),[2,i];case 5:return[2]}})})},n.prototype.sendHandshakeRequest=function(){return x(this,void 0,void 0,function(){var e,t=this;return B(this,function(r){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:qn.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:$t.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(o){t.onChannelMessage(o)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(o,i){t.handshakeResolvers.set(e.responseId,{resolve:o,reject:i}),t.timeoutId=window.setTimeout(function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),t.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),i(q.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)},t.handshakeTimeoutMs)})]})})},n.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(!(!t.channel||t.channel!==qn.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===$t.HandshakeRequest){this.logger.verbose(t.extensionId?"Extension with id: "+t.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var r=this.handshakeResolvers.get(t.responseId);r&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),r.reject(q.createNativeExtensionNotInstalledError()))}}},n.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,r=this.resolvers.get(t.responseId),o=this.handshakeResolvers.get(t.responseId);try{var i=t.body.method;if(i===$t.Response){if(!r)return;var l=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(l)),l.status!=="Success")r.reject(Dt.createError(l.code,l.description,l.ext));else if(l.result)l.result.code&&l.result.description?r.reject(Dt.createError(l.result.code,l.result.description,l.result.ext)):r.resolve(l.result);else throw X.createUnexpectedError("Event does not contain result.");this.resolvers.delete(t.responseId)}else if(i===$t.HandshakeResponse){if(!o)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),o.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(d){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+d.toString()),this.logger.errorPii("Unable to parse "+e),r?r.reject(d):o&&o.reject(d)}},n.prototype.getExtensionId=function(){return this.extensionId},n.prototype.getExtensionVersion=function(){return this.extensionVersion},n.isNativeAvailable=function(e,t,r,o){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!r)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(o)switch(o){case ke.BEARER:case ke.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Pa=function(n){qe(e,n);function e(t,r,o,i,l,d,h,f,u,y){var _=n.call(this,t,r,o,i,l,d,h,u,y)||this;return _.nativeStorage=f,_}return e.prototype.acquireToken=function(t){return x(this,void 0,void 0,function(){var r,o,i,l,d,h,f,u,y,_=this;return B(this,function(k){switch(k.label){case 0:return this.performanceClient.setPreQueueTime(P.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,Y.Redirect)];case 1:r=k.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||C.EMPTY_STRING,r.account||null),o=this.initializeServerTelemetryManager(Se.acquireTokenRedirect),i=function(T){T.persisted&&(_.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),_.browserStorage.cleanRequestByState(r.state),_.eventHandler.emitEvent(se.RESTORE_FROM_BFCACHE,Y.Redirect))},k.label=2;case 2:return k.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(P.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(r)];case 3:return l=k.sent(),this.performanceClient.setPreQueueTime(P.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(o,r.authority,r.azureCloudOptions)];case 4:return d=k.sent(),this.logger.verbose("Auth code client created"),h=new ti(d,this.browserStorage,l,this.logger,this.browserCrypto,this.performanceClient),[4,d.getAuthCodeUrl($($({},r),{nativeBroker:mn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 5:return f=k.sent(),u=this.getRedirectStartPage(t.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",i),[4,h.initiateAuthRequest(f,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:t.onRedirectNavigate})];case 6:return[2,k.sent()];case 7:throw y=k.sent(),y instanceof X&&y.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",i),o.cacheFailedRequest(y),this.browserStorage.cleanRequestByState(r.state),y;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(t){return x(this,void 0,void 0,function(){var r,o,i,l,d,h,f,u,y,_,k,T;return B(this,function(O){switch(O.label){case 0:r=this.initializeServerTelemetryManager(Se.handleRedirectPromise),O.label=1;case 1:if(O.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(o=this.getRedirectResponseHash(t||window.location.hash),!o)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(Y.Redirect),[2,null];i=void 0;try{l=ge.getDeserializedHash(o),i=this.validateAndExtractStateFromHash(l,Y.Redirect),this.logger.verbose("State extracted from hash")}catch(M){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+M),this.browserStorage.cleanRequestByInteractionType(Y.Redirect),[2,null]}return d=this.browserStorage.getTemporaryCache(_e.ORIGIN_URI,!0)||C.EMPTY_STRING,h=ge.removeHashFromUrl(d),f=ge.removeHashFromUrl(window.location.href),h===f&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(o,i,r)]):[3,3];case 2:return u=O.sent(),d.indexOf("#")>-1&&Ae.replaceHash(d),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(o,i,r)]);case 4:return!Ae.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(_e.URL_HASH,o,!0),y={apiId:Se.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},_=!0,!d||d==="null"?(k=Ae.getHomepage(),this.browserStorage.setTemporaryCache(_e.ORIGIN_URI,k,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(k,y)]):[3,6]):[3,9];case 5:return _=O.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+d),[4,this.navigationClient.navigateInternal(d,y)];case 7:_=O.sent(),O.label=8;case 8:if(!_)return[2,this.handleHash(o,i,r)];O.label=9;case 9:return[2,null];case 10:throw T=O.sent(),T instanceof X&&T.setCorrelationId(this.correlationId),r.cacheFailedRequest(T),this.browserStorage.cleanRequestByInteractionType(Y.Redirect),T;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(t){this.logger.verbose("getRedirectResponseHash called");var r=ge.hashContainsKnownProperties(t);if(r)return Ae.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),t;var o=this.browserStorage.getTemporaryCache(_e.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(_e.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),o},e.prototype.handleHash=function(t,r,o){return x(this,void 0,void 0,function(){var i,l,d,h,f,u,y,_=this;return B(this,function(k){switch(k.label){case 0:if(i=this.browserStorage.getCachedRequest(r,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),l=ge.getDeserializedHash(t),l.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw q.createNativeConnectionNotEstablishedError();return d=new Rn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Se.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,l.accountId,this.nativeStorage,i.correlationId),h=Gt.parseRequestState(this.browserCrypto,r).userRequestState,[2,d.acquireToken($($({},i),{state:h,prompt:void 0})).finally(function(){_.browserStorage.cleanRequestByState(r)})]}if(f=this.browserStorage.getCachedAuthority(r),!f)throw q.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(P.StandardInteractionClientCreateAuthCodeClient,i.correlationId),[4,this.createAuthCodeClient(o,f)];case 1:return u=k.sent(),this.logger.verbose("Auth code client created"),rr.removeThrottle(this.browserStorage,this.config.auth.clientId,i),y=new ti(u,this.browserStorage,i,this.logger,this.browserCrypto,this.performanceClient),[4,y.handleCodeResponseFromHash(t,r,u.authority,this.networkClient)];case 2:return[2,k.sent()]}})})},e.prototype.logout=function(t){return x(this,void 0,void 0,function(){var r,o,i,l,d,h,f;return B(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),r=this.initializeLogoutRequest(t),o=this.initializeServerTelemetryManager(Se.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(se.LOGOUT_START,Y.Redirect,t),[4,this.clearCacheOnLogout(r.account)];case 2:return u.sent(),i={apiId:Se.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(P.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(o,t&&t.authority)];case 3:return l=u.sent(),this.logger.verbose("Auth code client created"),d=l.getLogoutUri(r),this.eventHandler.emitEvent(se.LOGOUT_SUCCESS,Y.Redirect,r),t&&typeof t.onRedirectNavigate=="function"?(h=t.onRedirectNavigate(d),h===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(d,i)])):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(d,i)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw f=u.sent(),f instanceof X&&f.setCorrelationId(this.correlationId),o.cacheFailedRequest(f),this.eventHandler.emitEvent(se.LOGOUT_FAILURE,Y.Redirect,null,f),this.eventHandler.emitEvent(se.LOGOUT_END,Y.Redirect),f;case 11:return this.eventHandler.emitEvent(se.LOGOUT_END,Y.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(t){var r=t||window.location.href;return ge.getAbsoluteUrl(r,Ae.getCurrentUri())},e}(An);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Ma=function(n){qe(e,n);function e(t,r,o,i,l,d,h,f,u,y){var _=n.call(this,t,r,o,i,l,d,h,u,y)||this;return _.unloadWindow=_.unloadWindow.bind(_),_.nativeStorage=f,_}return e.prototype.acquireToken=function(t){try{var r=this.generatePopupName(t.scopes||Mn,t.authority||this.config.auth.authority),o=t.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(t,r,o);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var i=this.openSizedPopup("about:blank",r,o);return this.acquireTokenPopupAsync(t,r,o,i)}catch(l){return Promise.reject(l)}},e.prototype.logout=function(t){try{this.logger.verbose("logoutPopup called");var r=this.initializeLogoutRequest(t),o=this.generateLogoutPopupName(r),i=t&&t.authority,l=t&&t.mainWindowRedirectUri,d=(t==null?void 0:t.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(r,o,d,i,void 0,l);this.logger.verbose("asyncPopup set to false, opening popup");var h=this.openSizedPopup("about:blank",o,d);return this.logoutPopupAsync(r,o,d,i,h,l)}catch(f){return Promise.reject(f)}},e.prototype.acquireTokenPopupAsync=function(t,r,o,i){return x(this,void 0,void 0,function(){var l,d,h,f,u,y,_,k,T,O,M,F,N,S,z,V,G,Z=this;return B(this,function(A){switch(A.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),l=this.initializeServerTelemetryManager(Se.acquireTokenPopup),this.performanceClient.setPreQueueTime(P.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,Y.Popup)];case 1:d=A.sent(),this.browserStorage.updateCacheEntries(d.state,d.nonce,d.authority,d.loginHint||C.EMPTY_STRING,d.account||null),A.label=2;case 2:return A.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(P.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(d)];case 3:return h=A.sent(),this.performanceClient.setPreQueueTime(P.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(l,d.authority,d.azureCloudOptions)];case 4:return f=A.sent(),this.logger.verbose("Auth code client created"),u=mn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme),y=void 0,u&&(y=this.performanceClient.startMeasurement(P.FetchAccountIdWithNativeBroker,t.correlationId)),[4,f.getAuthCodeUrl($($({},d),{nativeBroker:u}))];case 5:return _=A.sent(),k=new jr(f,this.browserStorage,h,this.logger,this.performanceClient),T={popup:i,popupName:r,popupWindowAttributes:o},O=this.initiateAuthRequest(_,T),this.eventHandler.emitEvent(se.POPUP_OPENED,Y.Popup,{popupWindow:O},null),[4,this.monitorPopupForHash(O)];case 6:if(M=A.sent(),F=ge.getDeserializedHash(M),N=this.validateAndExtractStateFromHash(F,Y.Popup,d.correlationId),rr.removeThrottle(this.browserStorage,this.config.auth.clientId,h),F.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),y&&y.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw q.createNativeConnectionNotEstablishedError();return S=new Rn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Se.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,F.accountId,this.nativeStorage,d.correlationId),z=Gt.parseRequestState(this.browserCrypto,N).userRequestState,[2,S.acquireToken($($({},d),{state:z,prompt:void 0})).finally(function(){Z.browserStorage.cleanRequestByState(N)})]}return[4,k.handleCodeResponseFromHash(M,N,f.authority,this.networkClient)];case 7:return V=A.sent(),[2,V];case 8:throw G=A.sent(),i&&i.close(),G instanceof X&&G.setCorrelationId(this.correlationId),l.cacheFailedRequest(G),this.browserStorage.cleanRequestByState(d.state),G;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(t,r,o,i,l,d){return x(this,void 0,void 0,function(){var h,f,u,y,_,k,T;return B(this,function(O){switch(O.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(se.LOGOUT_START,Y.Popup,t),h=this.initializeServerTelemetryManager(Se.logoutPopup),O.label=1;case 1:return O.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(t.account)];case 2:return O.sent(),this.performanceClient.setPreQueueTime(P.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(h,i)];case 3:return f=O.sent(),this.logger.verbose("Auth code client created"),u=f.getLogoutUri(t),this.eventHandler.emitEvent(se.LOGOUT_SUCCESS,Y.Popup,t),y=this.openPopup(u,{popupName:r,popupWindowAttributes:o,popup:l}),this.eventHandler.emitEvent(se.POPUP_OPENED,Y.Popup,{popupWindow:y},null),[4,this.waitForLogoutPopup(y)];case 4:return O.sent(),d?(_={apiId:Se.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},k=ge.getAbsoluteUrl(d,Ae.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+k),this.navigationClient.navigateInternal(k,_)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw T=O.sent(),l&&l.close(),T instanceof X&&T.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(se.LOGOUT_FAILURE,Y.Popup,null,T),this.eventHandler.emitEvent(se.LOGOUT_END,Y.Popup),h.cacheFailedRequest(T),T;case 6:return this.eventHandler.emitEvent(se.LOGOUT_END,Y.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(t,r){if(K.isEmpty(t))throw this.logger.error("Navigate url is empty"),q.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+t),this.openPopup(t,r)},e.prototype.monitorPopupForHash=function(t){var r=this;return new Promise(function(o,i){var l=r.config.system.windowHashTimeout/r.config.system.pollIntervalMilliseconds,d=0;r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var h=setInterval(function(){if(t.closed){r.logger.error("PopupHandler.monitorPopupForHash - window closed"),r.cleanPopup(),clearInterval(h),i(q.createUserCancelledError());return}var f=C.EMPTY_STRING,u=C.EMPTY_STRING;try{f=t.location.href,u=t.location.hash}catch{}K.isEmpty(f)||f==="about:blank"||(r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),d++,u?(r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(h),r.cleanPopup(t),ge.hashContainsKnownProperties(u)?(r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),o(u)):(r.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+u),i(q.createHashDoesNotContainKnownPropertiesError()))):d>l&&(r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(h),i(q.createMonitorPopupTimeoutError())))},r.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(t){var r=this;return new Promise(function(o){r.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var i=setInterval(function(){t.closed&&(r.logger.error("PopupHandler.waitForLogoutPopup - window closed"),r.cleanPopup(),clearInterval(i),o());var l=C.EMPTY_STRING;try{l=t.location.href}catch{}K.isEmpty(l)||l==="about:blank"||(r.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(i),r.cleanPopup(t),o())},r.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(t,r){try{var o=void 0;if(r.popup?(o=r.popup,this.logger.verbosePii("Navigating popup window to: "+t),o.location.assign(t)):typeof r.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+t),o=this.openSizedPopup(t,r.popupName,r.popupWindowAttributes)),!o)throw q.createEmptyWindowCreatedError();return o.focus&&o.focus(),this.currentWindow=o,window.addEventListener("beforeunload",this.unloadWindow),o}catch(i){throw this.logger.error("error opening popup "+i.message),this.browserStorage.setInteractionInProgress(!1),q.createPopupWindowError(i.toString())}},e.prototype.openSizedPopup=function(t,r,o){var i,l,d,h,f=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,y=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,_=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,k=(i=o.popupSize)===null||i===void 0?void 0:i.width,T=(l=o.popupSize)===null||l===void 0?void 0:l.height,O=(d=o.popupPosition)===null||d===void 0?void 0:d.top,M=(h=o.popupPosition)===null||h===void 0?void 0:h.left;return(!k||k<0||k>y)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),k=Rt.POPUP_WIDTH),(!T||T<0||T>_)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),T=Rt.POPUP_HEIGHT),(!O||O<0||O>_)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),O=Math.max(0,_/2-Rt.POPUP_HEIGHT/2+u)),(!M||M<0||M>y)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),M=Math.max(0,y/2-Rt.POPUP_WIDTH/2+f)),window.open(t,r,"width="+k+", height="+T+", top="+O+", left="+M+", scrollbars=yes")},e.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType(Y.Popup),this.currentWindow&&this.currentWindow.close(),t.preventDefault()},e.prototype.cleanPopup=function(t){t&&t.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},e.prototype.generatePopupName=function(t,r){return Rt.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t.join("-")+"."+r+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(t){var r=t.account&&t.account.homeAccountId;return Rt.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+r+"."+this.correlationId},e}(An);/*! @azure/msal-browser v2.39.0 2024-06-06 */var La=function(){function n(){}return n.prototype.navigateInternal=function(e,t){return n.defaultNavigateWindow(e,t)},n.prototype.navigateExternal=function(e,t){return n.defaultNavigateWindow(e,t)},n.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(r){setTimeout(function(){r(!0)},t.timeout)})},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Oa=6e4,qr=6e3,xa=3e4,Ba=2e3;function za(n,e){var t=n.auth,r=n.cache,o=n.system,i=n.telemetry,l={clientId:C.EMPTY_STRING,authority:""+C.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:C.EMPTY_STRING,authorityMetadata:C.EMPTY_STRING,redirectUri:C.EMPTY_STRING,postLogoutRedirectUri:C.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:bn.AAD,azureCloudOptions:{azureCloudInstance:Dn.None,tenant:C.EMPTY_STRING},skipAuthorityMetadataCache:!1},d={cacheLocation:Oe.SessionStorage,temporaryCacheLocation:Oe.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(r&&r.cacheLocation===Oe.LocalStorage),claimsBasedCachingEnabled:!0},h={loggerCallback:function(){},logLevel:je.Info,piiLoggingEnabled:!1},f=$($({},Uo),{loggerOptions:h,networkClient:e?Ae.getBrowserNetworkClient():ka,navigationClient:new La,loadFrameTimeout:0,windowHashTimeout:(o==null?void 0:o.loadFrameTimeout)||Oa,iframeHashTimeout:(o==null?void 0:o.loadFrameTimeout)||qr,navigateFrameWait:e&&Ae.detectIEOrEdge()?500:0,redirectNavigationTimeout:xa,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(o==null?void 0:o.nativeBrokerHandshakeTimeout)||Ba,pollIntervalMilliseconds:Rt.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u=$($({},o),{loggerOptions:(o==null?void 0:o.loggerOptions)||h}),y={application:{appName:C.EMPTY_STRING,appVersion:C.EMPTY_STRING}},_={auth:$($({},l),t),cache:$($({},d),r),system:$($({},f),u),telemetry:$($({},y),i)};return _}/*! @azure/msal-browser v2.39.0 2024-06-06 */var ri=function(n){qe(e,n);function e(t,r,o,i,l,d){var h=n.call(this,t,r,o,i,d)||this;return h.navigateFrameWait=l.navigateFrameWait,h.pollIntervalMilliseconds=l.pollIntervalMilliseconds,h}return e.prototype.initiateAuthRequest=function(t){return x(this,void 0,void 0,function(){return B(this,function(r){switch(r.label){case 0:if(this.performanceClient.addQueueMeasurement(P.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),K.isEmpty(t))throw this.logger.info("Navigate url is empty"),q.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(P.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(t)]):[3,2];case 1:return[2,r.sent()];case 2:return[2,this.loadFrameSync(t)]}})})},e.prototype.monitorIframeForHash=function(t,r){var o=this;return this.performanceClient.addQueueMeasurement(P.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(i,l){r<qr&&o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+r+"ms) than the default ("+qr+"ms). This may result in timeouts.");var d=window.performance.now(),h=d+r,f=setInterval(function(){if(window.performance.now()>h){o.removeHiddenIframe(t),clearInterval(f),l(q.createMonitorIframeTimeoutError());return}var u=C.EMPTY_STRING,y=t.contentWindow;try{u=y?y.location.href:C.EMPTY_STRING}catch{}if(!K.isEmpty(u)){var _=y?y.location.hash:C.EMPTY_STRING;if(ge.hashContainsKnownProperties(_)){o.removeHiddenIframe(t),clearInterval(f),i(_);return}}},o.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(t){var r=this;return this.performanceClient.addQueueMeasurement(P.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(o,i){var l=r.createHiddenIframe();setTimeout(function(){if(!l){i("Unable to load iframe");return}l.src=t,o(l)},r.navigateFrameWait)})},e.prototype.loadFrameSync=function(t){var r=this.createHiddenIframe();return r.src=t,r},e.prototype.createHiddenIframe=function(){var t=document.createElement("iframe");return t.className="msalSilentIframe",t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(t),t},e.prototype.removeHiddenIframe=function(t){document.body===t.parentNode&&document.body.removeChild(t)},e}(jr);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Ua=function(n){qe(e,n);function e(t,r,o,i,l,d,h,f,u,y,_){var k=n.call(this,t,r,o,i,l,d,f,y,_)||this;return k.apiId=h,k.nativeStorage=u,k}return e.prototype.acquireToken=function(t){return x(this,void 0,void 0,function(){var r,o,i,l,d;return B(this,function(h){switch(h.label){case 0:if(this.performanceClient.addQueueMeasurement(P.SilentIframeClientAcquireToken,t.correlationId),this.logger.verbose("acquireTokenByIframe called"),r=this.performanceClient.startMeasurement(P.SilentIframeClientAcquireToken,t.correlationId),K.isEmpty(t.loginHint)&&K.isEmpty(t.sid)&&(!t.account||K.isEmpty(t.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),t.prompt&&t.prompt!==Qe.NONE&&t.prompt!==Qe.NO_SESSION)throw r.endMeasurement({success:!1}),q.createSilentPromptValueError(t.prompt);return this.performanceClient.setPreQueueTime(P.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest($($({},t),{prompt:t.prompt||Qe.NONE}),Y.Silent)];case 1:o=h.sent(),this.browserStorage.updateCacheEntries(o.state,o.nonce,o.authority,o.loginHint||C.EMPTY_STRING,o.account||null),i=this.initializeServerTelemetryManager(this.apiId),h.label=2;case 2:return h.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(P.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(i,o.authority,o.azureCloudOptions)];case 3:return l=h.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(P.SilentIframeClientTokenHelper,t.correlationId),[4,this.silentTokenHelper(l,o).then(function(f){return r.endMeasurement({success:!0,fromCache:!1,requestId:f.requestId}),f})];case 4:return[2,h.sent()];case 5:throw d=h.sent(),d instanceof X&&d.setCorrelationId(this.correlationId),i.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(o.state),r.endMeasurement({errorCode:d instanceof X&&d.errorCode||void 0,subErrorCode:d instanceof X&&d.subError||void 0,success:!1}),d;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(q.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,r){return x(this,void 0,void 0,function(){var o,i,l,d,h,f,u,y,_,k=this;return B(this,function(T){switch(T.label){case 0:return this.performanceClient.addQueueMeasurement(P.SilentIframeClientTokenHelper,r.correlationId),this.performanceClient.setPreQueueTime(P.StandardInteractionClientInitializeAuthorizationCodeRequest,r.correlationId),[4,this.initializeAuthorizationCodeRequest(r)];case 1:return o=T.sent(),this.performanceClient.setPreQueueTime(P.GetAuthCodeUrl,r.correlationId),[4,t.getAuthCodeUrl($($({},r),{nativeBroker:mn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 2:return i=T.sent(),l=new ri(t,this.browserStorage,o,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(P.SilentHandlerInitiateAuthRequest,r.correlationId),[4,l.initiateAuthRequest(i)];case 3:return d=T.sent(),this.performanceClient.setPreQueueTime(P.SilentHandlerMonitorIframeForHash,r.correlationId),[4,l.monitorIframeForHash(d,this.config.system.iframeHashTimeout)];case 4:if(h=T.sent(),f=ge.getDeserializedHash(h),u=this.validateAndExtractStateFromHash(f,Y.Silent,o.correlationId),f.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw q.createNativeConnectionNotEstablishedError();return y=new Rn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,f.accountId,this.browserStorage,this.correlationId),_=Gt.parseRequestState(this.browserCrypto,u).userRequestState,[2,y.acquireToken($($({},r),{state:_,prompt:r.prompt||Qe.NONE})).finally(function(){k.browserStorage.cleanRequestByState(u)})]}return this.performanceClient.setPreQueueTime(P.HandleCodeResponseFromHash,r.correlationId),[2,l.handleCodeResponseFromHash(h,u,t.authority,this.networkClient)]}})})},e}(An);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Da=function(n){qe(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return x(this,void 0,void 0,function(){var r,o,i,l,d,h=this;return B(this,function(f){switch(f.label){case 0:return this.performanceClient.addQueueMeasurement(P.SilentRefreshClientAcquireToken,t.correlationId),this.performanceClient.setPreQueueTime(P.InitializeBaseRequest,t.correlationId),o=[$({},t)],[4,this.initializeBaseRequest(t,t.account)];case 1:return r=$.apply(void 0,o.concat([f.sent()])),i=this.performanceClient.startMeasurement(P.SilentRefreshClientAcquireToken,r.correlationId),l=this.initializeServerTelemetryManager(Se.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(l,r.authority,r.azureCloudOptions)];case 2:return d=f.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(P.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),[2,d.acquireTokenByRefreshToken(r).then(function(u){return i.endMeasurement({success:!0,fromCache:u.fromCache,requestId:u.requestId}),u}).catch(function(u){throw u instanceof X&&u.setCorrelationId(h.correlationId),l.cacheFailedRequest(u),i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},e.prototype.logout=function(){return Promise.reject(q.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,r,o){return x(this,void 0,void 0,function(){var i;return B(this,function(l){switch(l.label){case 0:return this.performanceClient.setPreQueueTime(P.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,r,o)];case 1:return i=l.sent(),[2,new jo(i,this.performanceClient)]}})})},e}(An);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Fa=function(){function n(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return n.prototype.addEventCallback=function(e){if(typeof window<"u"){var t=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t}return null},n.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},n.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},n.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},n.prototype.emitEvent=function(e,t,r,o){var i=this;if(typeof window<"u"){var l={eventType:e,interactionType:t||null,payload:r||null,error:o||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(d,h){i.logger.verbose("Emitting event to callback "+h+": "+e),d.apply(null,[l])})}},n.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var r=JSON.parse(t);if(typeof r!="object"||!Ye.isAccountEntity(r))return;var o=rt.toObject(new Ye,r),i=o.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(se.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(se.ACCOUNT_REMOVED,void 0,i))}catch{return}},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Je=function(){function n(){}return n.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var oi=function(){function n(e){this.cryptoObj=e}return n.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,Je.decimalToHex(e[0])+Je.decimalToHex(e[1])+Je.decimalToHex(e[2])+Je.decimalToHex(e[3])+"-"+Je.decimalToHex(e[4])+Je.decimalToHex(e[5])+"-"+Je.decimalToHex(e[6])+Je.decimalToHex(e[7])+"-"+Je.decimalToHex(e[8])+Je.decimalToHex(e[9])+"-"+Je.decimalToHex(e[10])+Je.decimalToHex(e[11])+Je.decimalToHex(e[12])+Je.decimalToHex(e[13])+Je.decimalToHex(e[14])+Je.decimalToHex(e[15])}catch{for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",r="0123456789abcdef",o=0,i=C.EMPTY_STRING,l=0;l<36;l++)t[l]!=="-"&&t[l]!=="4"&&(o=Math.random()*16|0),t[l]==="x"?i+=r[o]:t[l]==="y"?(o&=3,o|=8,i+=r[o]):i+=t[l];return i}},n.prototype.isGuid=function(e){var t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return t.test(e)},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Qt=function(){function n(){}return n.stringToUtf8Arr=function(e){for(var t,r=0,o=e.length,i=0;i<o;i++)t=e.charCodeAt(i),r+=t<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var l=new Uint8Array(r),d=0,h=0;d<r;h++)t=e.charCodeAt(h),t<128?l[d++]=t:t<2048?(l[d++]=192+(t>>>6),l[d++]=128+(t&63)):t<65536?(l[d++]=224+(t>>>12),l[d++]=128+(t>>>6&63),l[d++]=128+(t&63)):t<2097152?(l[d++]=240+(t>>>18),l[d++]=128+(t>>>12&63),l[d++]=128+(t>>>6&63),l[d++]=128+(t&63)):t<67108864?(l[d++]=248+(t>>>24),l[d++]=128+(t>>>18&63),l[d++]=128+(t>>>12&63),l[d++]=128+(t>>>6&63),l[d++]=128+(t&63)):(l[d++]=252+(t>>>30),l[d++]=128+(t>>>24&63),l[d++]=128+(t>>>18&63),l[d++]=128+(t>>>12&63),l[d++]=128+(t>>>6&63),l[d++]=128+(t&63));return l},n.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);return t},n.utf8ArrToString=function(e){for(var t=C.EMPTY_STRING,r=void 0,o=e.length,i=0;i<o;i++)r=e[i],t+=String.fromCharCode(r>251&&r<254&&i+5<o?(r-252)*1073741824+(e[++i]-128<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:r>247&&r<252&&i+4<o?(r-248<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:r>239&&r<248&&i+3<o?(r-240<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:r>223&&r<240&&i+2<o?(r-224<<12)+(e[++i]-128<<6)+e[++i]-128:r>191&&r<224&&i+1<o?(r-192<<6)+e[++i]-128:r);return t},n.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var ii=function(){function n(){}return n.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,C.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},n.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,C.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},n.prototype.encode=function(e){var t=Qt.stringToUtf8Arr(e);return this.base64EncArr(t)},n.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,r=C.EMPTY_STRING,o=void 0,i=e.length,l=0,d=0;d<i;d++)o=d%3,l|=e[d]<<(16>>>o&24),(o===2||e.length-d===1)&&(r+=String.fromCharCode(this.uint6ToB64(l>>>18&63),this.uint6ToB64(l>>>12&63),this.uint6ToB64(l>>>6&63),this.uint6ToB64(l&63)),l=0);return t===0?r:r.substring(0,r.length-t)+(t===1?"=":"==")},n.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var ja=function(){function n(){}return n.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var r=this.base64DecToArr(t);return Qt.utf8ArrToString(r)},n.prototype.base64DecToArr=function(e,t){for(var r=e.replace(/[^A-Za-z0-9\+\/]/g,C.EMPTY_STRING),o=r.length,i=t?Math.ceil((o*3+1>>>2)/t)*t:o*3+1>>>2,l=new Uint8Array(i),d=void 0,h=void 0,f=0,u=0,y=0;y<o;y++)if(h=y&3,f|=this.b64ToUint6(r.charCodeAt(y))<<18-6*h,h===3||o-y===1){for(d=0;d<3&&u<i;d++,u++)l[u]=f>>>(16>>>d&24)&255;f=0}return l},n.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:e===43?62:e===47?63:0},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var qa=32,Va=function(){function n(e){this.base64Encode=new ii,this.cryptoObj=e}return n.prototype.generateCodes=function(){return x(this,void 0,void 0,function(){var e,t;return B(this,function(r){switch(r.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=r.sent(),[2,{verifier:e,challenge:t}]}})})},n.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(qa);this.cryptoObj.getRandomValues(e);var t=this.base64Encode.urlEncodeArr(e);return t}catch(r){throw q.createPkceNotGeneratedError(r)}},n.prototype.generateCodeChallengeFromVerifier=function(e){return x(this,void 0,void 0,function(){var t,r;return B(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=o.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw r=o.sent(),q.createPkceNotGeneratedError(r);case 3:return[2]}})})},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Ha=function(){function n(){}return n.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,r){return x(this,void 0,void 0,function(){return B(this,function(o){return[2,window.crypto.subtle.generateKey(e,t,r)]})})},n.prototype.exportKey=function(e){return x(this,void 0,void 0,function(){return B(this,function(t){return[2,window.crypto.subtle.exportKey(In,e)]})})},n.prototype.importKey=function(e,t,r,o){return x(this,void 0,void 0,function(){return B(this,function(i){return[2,window.crypto.subtle.importKey(In,e,t,r,o)]})})},n.prototype.sign=function(e,t,r){return x(this,void 0,void 0,function(){return B(this,function(o){return[2,window.crypto.subtle.sign(e,t,r)]})})},n.prototype.digest=function(e,t){return x(this,void 0,void 0,function(){return B(this,function(r){return[2,window.crypto.subtle.digest(e,t)]})})},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Ka=function(){function n(){}return n.prototype.initPrng=function(e){return window.msrCrypto.initPrng(Sr(e))},n.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,r){return x(this,void 0,void 0,function(){return B(this,function(o){return[2,window.msrCrypto.subtle.generateKey(e,t,r)]})})},n.prototype.exportKey=function(e){return x(this,void 0,void 0,function(){return B(this,function(t){return[2,window.msrCrypto.subtle.exportKey(In,e)]})})},n.prototype.importKey=function(e,t,r,o){return x(this,void 0,void 0,function(){return B(this,function(i){return[2,window.msrCrypto.subtle.importKey(In,e,t,r,o)]})})},n.prototype.sign=function(e,t,r){return x(this,void 0,void 0,function(){return B(this,function(o){return[2,window.msrCrypto.subtle.sign(e,t,r)]})})},n.prototype.digest=function(e,t){return x(this,void 0,void 0,function(){return B(this,function(r){return[2,window.msrCrypto.subtle.digest(e,t)]})})},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Ga=function(){function n(){}return n.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,r){return x(this,void 0,void 0,function(){return B(this,function(o){return[2,new Promise(function(i,l){var d=window.msCrypto.subtle.generateKey(e,t,r);d.addEventListener("complete",function(h){i(h.target.result)}),d.addEventListener("error",function(h){l(h)})})]})})},n.prototype.exportKey=function(e){return x(this,void 0,void 0,function(){return B(this,function(t){return[2,new Promise(function(r,o){var i=window.msCrypto.subtle.exportKey(In,e);i.addEventListener("complete",function(l){var d=l.target.result,h=Qt.utf8ArrToString(new Uint8Array(d)).replace(/\r/g,C.EMPTY_STRING).replace(/\n/g,C.EMPTY_STRING).replace(/\t/g,C.EMPTY_STRING).split(" ").join(C.EMPTY_STRING).replace("\0",C.EMPTY_STRING);try{r(JSON.parse(h))}catch(f){o(f)}}),i.addEventListener("error",function(l){o(l)})})]})})},n.prototype.importKey=function(e,t,r,o){return x(this,void 0,void 0,function(){var i,l;return B(this,function(d){return i=Qt.getSortedObjectString(e),l=Qt.stringToArrayBuffer(i),[2,new Promise(function(h,f){var u=window.msCrypto.subtle.importKey(In,l,t,r,o);u.addEventListener("complete",function(y){h(y.target.result)}),u.addEventListener("error",function(y){f(y)})})]})})},n.prototype.sign=function(e,t,r){return x(this,void 0,void 0,function(){return B(this,function(o){return[2,new Promise(function(i,l){var d=window.msCrypto.subtle.sign(e,t,r);d.addEventListener("complete",function(h){i(h.target.result)}),d.addEventListener("error",function(h){l(h)})})]})})},n.prototype.digest=function(e,t){return x(this,void 0,void 0,function(){return B(this,function(r){return[2,new Promise(function(o,i){var l=window.msCrypto.subtle.digest(e,t.buffer);l.addEventListener("complete",function(d){o(d.target.result)}),l.addEventListener("error",function(d){i(d)})})]})})},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var $a="RSASSA-PKCS1-v1_5",ai="SHA-256",Qa=2048,Wa=new Uint8Array([1,0,1]),si=function(){function n(e,t){var r,o;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new Ha;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new Ga;else if(this.hasMsrCrypto()&&(!((r=this.cryptoOptions)===null||r===void 0)&&r.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new Ka;else throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),q.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((o=this.cryptoOptions)===null||o===void 0)&&o.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),lr.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:$a,hash:ai,modulusLength:Qa,publicExponent:Wa}}return n.prototype.hasIECrypto=function(){return"msCrypto"in window},n.prototype.hasBrowserCrypto=function(){return"crypto"in window},n.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},n.prototype.sha256Digest=function(e){return x(this,void 0,void 0,function(){var t;return B(this,function(r){return t=Qt.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:ai},t)]})})},n.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},n.prototype.generateKeyPair=function(e,t){return x(this,void 0,void 0,function(){return B(this,function(r){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},n.prototype.exportJwk=function(e){return x(this,void 0,void 0,function(){return B(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},n.prototype.importJwk=function(e,t,r){return x(this,void 0,void 0,function(){return B(this,function(o){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,r)]})})},n.prototype.sign=function(e,t){return x(this,void 0,void 0,function(){return B(this,function(r){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Ya=function(){function n(){this.dbName=zr,this.version=Sa,this.tableName=Ia,this.dbOpen=!1}return n.prototype.open=function(){return x(this,void 0,void 0,function(){var e=this;return B(this,function(t){return[2,new Promise(function(r,o){var i=window.indexedDB.open(e.dbName,e.version);i.addEventListener("upgradeneeded",function(l){var d=l;d.target.result.createObjectStore(e.tableName)}),i.addEventListener("success",function(l){var d=l;e.db=d.target.result,e.dbOpen=!0,r()}),i.addEventListener("error",function(){return o(q.createDatabaseUnavailableError())})})]})})},n.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},n.prototype.validateDbIsOpen=function(){return x(this,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},n.prototype.getItem=function(e){return x(this,void 0,void 0,function(){var t=this;return B(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(o,i){if(!t.db)return i(q.createDatabaseNotOpenError());var l=t.db.transaction([t.tableName],"readonly"),d=l.objectStore(t.tableName),h=d.get(e);h.addEventListener("success",function(f){var u=f;t.closeConnection(),o(u.target.result)}),h.addEventListener("error",function(f){t.closeConnection(),i(f)})})]}})})},n.prototype.setItem=function(e,t){return x(this,void 0,void 0,function(){var r=this;return B(this,function(o){switch(o.label){case 0:return[4,this.validateDbIsOpen()];case 1:return o.sent(),[2,new Promise(function(i,l){if(!r.db)return l(q.createDatabaseNotOpenError());var d=r.db.transaction([r.tableName],"readwrite"),h=d.objectStore(r.tableName),f=h.put(t,e);f.addEventListener("success",function(){r.closeConnection(),i()}),f.addEventListener("error",function(u){r.closeConnection(),l(u)})})]}})})},n.prototype.removeItem=function(e){return x(this,void 0,void 0,function(){var t=this;return B(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(o,i){if(!t.db)return i(q.createDatabaseNotOpenError());var l=t.db.transaction([t.tableName],"readwrite"),d=l.objectStore(t.tableName),h=d.delete(e);h.addEventListener("success",function(){t.closeConnection(),o()}),h.addEventListener("error",function(f){t.closeConnection(),i(f)})})]}})})},n.prototype.getKeys=function(){return x(this,void 0,void 0,function(){var e=this;return B(this,function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise(function(r,o){if(!e.db)return o(q.createDatabaseNotOpenError());var i=e.db.transaction([e.tableName],"readonly"),l=i.objectStore(e.tableName),d=l.getAllKeys();d.addEventListener("success",function(h){var f=h;e.closeConnection(),r(f.target.result)}),d.addEventListener("error",function(h){e.closeConnection(),o(h)})})]}})})},n.prototype.containsKey=function(e){return x(this,void 0,void 0,function(){var t=this;return B(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(o,i){if(!t.db)return i(q.createDatabaseNotOpenError());var l=t.db.transaction([t.tableName],"readonly"),d=l.objectStore(t.tableName),h=d.count(e);h.addEventListener("success",function(f){var u=f;t.closeConnection(),o(u.target.result===1)}),h.addEventListener("error",function(f){t.closeConnection(),i(f)})})]}})})},n.prototype.deleteDatabase=function(){return x(this,void 0,void 0,function(){return B(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(t,r){var o=window.indexedDB.deleteDatabase(zr);o.addEventListener("success",function(){return t(!0)}),o.addEventListener("blocked",function(){return t(!0)}),o.addEventListener("error",function(){return r(!1)})})]})})},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var ci=function(){function n(e,t){this.inMemoryCache=new Ur,this.indexedDBCache=new Ya,this.logger=e,this.storeName=t}return n.prototype.handleDatabaseAccessError=function(e){if(e instanceof q&&e.errorCode===U.databaseUnavailable.code)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e},n.prototype.getItem=function(e){return x(this,void 0,void 0,function(){var t,r;return B(this,function(o){switch(o.label){case 0:if(t=this.inMemoryCache.getItem(e),t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,o.sent()];case 3:return r=o.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,t]}})})},n.prototype.setItem=function(e,t){return x(this,void 0,void 0,function(){var r;return B(this,function(o){switch(o.label){case 0:this.inMemoryCache.setItem(e,t),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return o.sent(),[3,4];case 3:return r=o.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2]}})})},n.prototype.removeItem=function(e){return x(this,void 0,void 0,function(){var t;return B(this,function(r){switch(r.label){case 0:this.inMemoryCache.removeItem(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return r.sent(),[3,4];case 3:return t=r.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}})})},n.prototype.getKeys=function(){return x(this,void 0,void 0,function(){var e,t;return B(this,function(r){switch(r.label){case 0:if(e=this.inMemoryCache.getKeys(),e.length!==0)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,r.sent()];case 3:return t=r.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}})})},n.prototype.containsKey=function(e){return x(this,void 0,void 0,function(){var t,r;return B(this,function(o){switch(o.label){case 0:if(t=this.inMemoryCache.containsKey(e),t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,o.sent()];case 3:return r=o.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,t]}})})},n.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},n.prototype.clearPersistent=function(){return x(this,void 0,void 0,function(){var e,t;return B(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=r.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=r.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}})})},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var dr;(function(n){n.asymmetricKeys="asymmetricKeys",n.symmetricKeys="symmetricKeys"})(dr||(dr={}));var Ja=function(){function n(e){this.logger=e,this.asymmetricKeys=new ci(this.logger,dr.asymmetricKeys),this.symmetricKeys=new ci(this.logger,dr.symmetricKeys)}return n.prototype.clear=function(){return x(this,void 0,void 0,function(){var e;return B(this,function(t){switch(t.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return t.sent(),[2,!0];case 3:return e=t.sent(),e instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Xa=function(){function n(e,t,r){this.logger=e,this.browserCrypto=new si(this.logger,r),this.b64Encode=new ii,this.b64Decode=new ja,this.guidGenerator=new oi(this.browserCrypto),this.pkceGenerator=new Va(this.browserCrypto),this.cache=new Ja(this.logger),this.performanceClient=t}return n.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},n.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},n.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},n.prototype.generatePkceCodes=function(){return x(this,void 0,void 0,function(){return B(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},n.prototype.getPublicKeyThumbprint=function(e){var t;return x(this,void 0,void 0,function(){var r,o,i,l,d,h,f,u;return B(this,function(y){switch(y.label){case 0:return r=(t=this.performanceClient)===null||t===void 0?void 0:t.startMeasurement(P.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(n.EXTRACTABLE,n.POP_KEY_USAGES)];case 1:return o=y.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return i=y.sent(),l={e:i.e,kty:i.kty,n:i.n},d=Qt.getSortedObjectString(l),[4,this.hashString(d)];case 3:return h=y.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return f=y.sent(),[4,this.browserCrypto.importJwk(f,!1,["sign"])];case 5:return u=y.sent(),[4,this.cache.asymmetricKeys.setItem(h,{privateKey:u,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return y.sent(),r&&r.endMeasurement({success:!0}),[2,h]}})})},n.prototype.removeTokenBindingKey=function(e){return x(this,void 0,void 0,function(){var t;return B(this,function(r){switch(r.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return r.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return t=r.sent(),[2,!t]}})})},n.prototype.clearKeystore=function(){return x(this,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},n.prototype.signJwt=function(e,t,r){var o;return x(this,void 0,void 0,function(){var i,l,d,h,f,u,y,_,k,T,O,M,F;return B(this,function(N){switch(N.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(P.CryptoOptsSignJwt,r),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(l=N.sent(),!l)throw q.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(l.publicKey)];case 2:return d=N.sent(),h=Qt.getSortedObjectString(d),f=this.b64Encode.urlEncode(JSON.stringify({kid:t})),u=Ea.getShrHeaderString({kid:f,alg:d.alg}),y=this.b64Encode.urlEncode(u),e.cnf={jwk:JSON.parse(h)},_=this.b64Encode.urlEncode(JSON.stringify(e)),k=y+"."+_,T=Qt.stringToArrayBuffer(k),[4,this.browserCrypto.sign(l.privateKey,T)];case 3:return O=N.sent(),M=this.b64Encode.urlEncodeArr(new Uint8Array(O)),F=k+"."+M,i&&i.endMeasurement({success:!0}),[2,F]}})})},n.prototype.hashString=function(e){return x(this,void 0,void 0,function(){var t,r;return B(this,function(o){switch(o.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=o.sent(),r=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(r)]}})})},n.POP_KEY_USAGES=["sign","verify"],n.EXTRACTABLE=!0,n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var li=function(){function n(e,t){this.correlationId=t,this.measureName=n.makeMeasureName(e,t),this.startMark=n.makeStartMark(e,t),this.endMark=n.makeEndMark(e,t)}return n.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},n.makeStartMark=function(e,t){return"msal.start."+e+"."+t},n.makeEndMark=function(e,t){return"msal.end."+e+"."+t},n.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.mark=="function"&&typeof window.performance.measure=="function"&&typeof window.performance.clearMarks=="function"&&typeof window.performance.clearMeasures=="function"&&typeof window.performance.getEntriesByName=="function"},n.flushMeasurements=function(e,t){if(n.supportsBrowserPerformance())try{t.forEach(function(r){var o=n.makeMeasureName(r.name,e),i=window.performance.getEntriesByName(o,"measure");i.length>0&&(window.performance.clearMeasures(o),window.performance.clearMarks(n.makeStartMark(o,e)),window.performance.clearMarks(n.makeEndMark(o,e)))})}catch{}},n.prototype.startMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},n.prototype.endMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},n.prototype.flushMeasurement=function(){if(n.supportsBrowserPerformance())try{var e=window.performance.getEntriesByName(this.measureName,"measure");if(e.length>0){var t=e[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),t}}catch{}return null},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Za=function(n){qe(e,n);function e(t,r,o,i,l,d,h){var f=n.call(this,t,r,o,i,l,d)||this;return f.browserCrypto=new si(f.logger,h),f.guidGenerator=new oi(f.browserCrypto),f}return e.prototype.startPerformanceMeasuremeant=function(t,r){return new li(t,r)},e.prototype.generateId=function(){return this.guidGenerator.generateGuid()},e.prototype.getPageVisibility=function(){var t;return((t=document.visibilityState)===null||t===void 0?void 0:t.toString())||null},e.prototype.deleteIncompleteSubMeasurements=function(t){var r=this.eventsByCorrelationId.get(t.event.correlationId),o=r&&r.eventId===t.event.eventId,i=[];o&&(r!=null&&r.incompleteSubMeasurements)&&r.incompleteSubMeasurements.forEach(function(l){i.push($({},l))}),i.length>0&&li.flushMeasurements(t.event.correlationId,i)},e.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.now=="function"},e.prototype.startMeasurement=function(t,r){var o=this,i=this.getPageVisibility(),l=n.prototype.startMeasurement.call(this,t,r);return $($({},l),{endMeasurement:function(d){var h=l.endMeasurement($({startPageVisibility:i,endPageVisibility:o.getPageVisibility()},d));return o.deleteIncompleteSubMeasurements(l),h},discardMeasurement:function(){l.discardMeasurement(),o.deleteIncompleteSubMeasurements(l),l.measurement.flushMeasurement()}})},e.prototype.setPreQueueTime=function(t,r){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+t);return}if(!r){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to set telemetry queue time");return}var o=this.preQueueTimeByCorrelationId.get(r);o&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+o.name+" found",r),this.addQueueMeasurement(o.name,r,void 0,!0)),this.preQueueTimeByCorrelationId.set(r,{name:t,time:window.performance.now()})},e.prototype.addQueueMeasurement=function(t,r,o,i){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t);return}if(!r){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");return}var l=n.prototype.getPreQueueTime.call(this,t,r);if(l){var d=window.performance.now(),h=o||n.prototype.calculateQueuedTime.call(this,l,d);return n.prototype.addQueueMeasurement.call(this,t,r,h,i)}},e}($o);/*! @azure/msal-browser v2.39.0 2024-06-06 */var es=function(){function n(e,t,r,o){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=r,this.cryptoObj=o}return n.prototype.loadExternalTokens=function(e,t,r){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw q.createUnableToLoadTokenError("Please ensure server response includes id token.");var o=new Bt(t.id_token,this.cryptoObj),i,l,d;if(e.account)d=Ye.createFromAccountInfo(e.account),i=new Cn(d,this.loadIdToken(o,d.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,d.homeAccountId,e.account.environment,e.account.tenantId,r),this.loadRefreshToken(e,t,d.homeAccountId,e.account.environment));else if(e.authority){var h=jn.generateAuthority(e.authority,e.azureCloudOptions),f={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(l=new jn(h,this.config.system.networkClient,this.storage,f,this.logger),r.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),d=this.loadAccount(o,l,r.clientInfo),i=new Cn(d,this.loadIdToken(o,d.homeAccountId,l.hostnameAndPort,l.tenant),this.loadAccessToken(e,t,d.homeAccountId,l.hostnameAndPort,l.tenant,r),this.loadRefreshToken(e,t,d.homeAccountId,l.hostnameAndPort));else if(t.client_info)this.logger.trace("TokenCache - homeAccountId from response"),d=this.loadAccount(o,l,t.client_info),i=new Cn(d,this.loadIdToken(o,d.homeAccountId,l.hostnameAndPort,l.tenant),this.loadAccessToken(e,t,d.homeAccountId,l.hostnameAndPort,l.tenant,r),this.loadRefreshToken(e,t,d.homeAccountId,l.hostnameAndPort));else throw q.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw q.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,o,i,d,l)},n.prototype.loadAccount=function(e,t,r,o){var i;if(o?i=o:t.authorityType!==void 0&&r&&(i=Ye.generateHomeAccountId(r,t.authorityType,this.logger,this.cryptoObj,e.claims)),!i)throw q.createUnableToLoadTokenError("Unexpected missing homeAccountId");var l=Ye.createAccount({homeAccountId:i,idTokenClaims:e.claims,clientInfo:r,environment:t.hostnameAndPort},t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(l),l;throw q.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadIdToken=function(e,t,r,o){var i=tn.createIdTokenEntity(t,r,e.rawToken,this.config.auth.clientId,o);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw q.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadAccessToken=function(e,t,r,o,i,l){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw q.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!l.extendedExpiresOn)throw q.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var d=new We(e.scopes).printScopes(),h=l.expiresOn||t.expires_in+new Date().getTime()/1e3,f=l.extendedExpiresOn,u=nn.createAccessTokenEntity(r,o,t.access_token,this.config.auth.clientId,i,d,h,f,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw q.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadRefreshToken=function(e,t,r,o){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var i=kn.createRefreshTokenEntity(r,o,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw q.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.generateAuthenticationResult=function(e,t,r,o,i){var l,d=C.EMPTY_STRING,h=[],f=null,u;r.accessToken&&(d=r.accessToken.secret,h=We.fromString(r.accessToken.target).asArray(),f=new Date(Number(r.accessToken.expiresOn)*1e3),u=new Date(Number(r.accessToken.extendedExpiresOn)*1e3));var y=(t==null?void 0:t.claims.oid)||(t==null?void 0:t.claims.sub)||C.EMPTY_STRING,_=(t==null?void 0:t.claims.tid)||C.EMPTY_STRING;return{authority:i?i.canonicalAuthority:C.EMPTY_STRING,uniqueId:y,tenantId:_,scopes:h,account:o?o.getAccountInfo():null,idToken:t?t.rawToken:C.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:d,fromCache:!0,expiresOn:f,correlationId:e.correlationId||C.EMPTY_STRING,requestId:C.EMPTY_STRING,extExpiresOn:u,familyId:C.EMPTY_STRING,tokenType:((l=r==null?void 0:r.accessToken)===null||l===void 0?void 0:l.tokenType)||C.EMPTY_STRING,state:C.EMPTY_STRING,cloudGraphHostName:o.cloudGraphHostName||C.EMPTY_STRING,msGraphHost:o.msGraphHost||C.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var ts=function(n){qe(e,n);function e(t){var r=n.call(this,t)||this;return r.includeRedirectUri=!1,r}return e}(Fo);/*! @azure/msal-browser v2.39.0 2024-06-06 */var ns=function(n){qe(e,n);function e(t,r,o,i,l,d,h,f,u,y){var _=n.call(this,t,r,o,i,l,d,f,u,y)||this;return _.apiId=h,_}return e.prototype.acquireToken=function(t){return x(this,void 0,void 0,function(){var r,o,i,l,d,h,f;return B(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!t.code)throw q.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(P.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,Y.Silent)];case 1:r=u.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||C.EMPTY_STRING,r.account||null),o=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),i=$($({},r),{code:t.code}),this.performanceClient.setPreQueueTime(P.StandardInteractionClientGetClientConfiguration,t.correlationId),[4,this.getClientConfiguration(o,r.authority)];case 3:return l=u.sent(),d=new ts(l),this.logger.verbose("Auth code client created"),h=new ri(d,this.browserStorage,i,this.logger,this.config.system,this.performanceClient),[2,h.handleCodeResponseFromServer({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},r.state,d.authority,this.networkClient,!1)];case 4:throw f=u.sent(),f instanceof X&&f.setCorrelationId(this.correlationId),o.cacheFailedRequest(f),this.browserStorage.cleanRequestByState(r.state),f;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(q.createSilentLogoutUnsupportedError())},e}(An);/*! @azure/msal-browser v2.39.0 2024-06-06 */var rs=function(){function n(e){this.isBrowserEnvironment=typeof window<"u",this.config=za(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new Nr(this.config.system.loggerOptions,Fr,Vn),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new Za(this.config.auth.clientId,this.config.auth.authority,this.logger,Fr,Vn,this.config.telemetry.application,this.config.system.cryptoOptions):new Ta(this.config.auth.clientId,this.config.auth.authority,this.logger,Fr,Vn,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new Xa(this.logger,this.performanceClient,this.config.system.cryptoOptions):tr,this.eventHandler=new Fa(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Dr(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):Aa(this.config.auth.clientId,this.logger);var t={cacheLocation:Oe.MemoryStorage,temporaryCacheLocation:Oe.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new Dr(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new es(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return n.prototype.initialize=function(){return x(this,void 0,void 0,function(){var e,t,r,o,i;return B(this,function(l){switch(l.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,t=this.performanceClient.startMeasurement(P.InitializeClientApplication),this.eventHandler.emitEvent(se.INITIALIZE_START),!e)return[3,4];l.label=1;case 1:return l.trys.push([1,3,,4]),r=this,[4,mn.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return r.nativeExtensionProvider=l.sent(),[3,4];case 3:return o=l.sent(),this.logger.verbose(o),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),i=this.performanceClient.startMeasurement(P.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:l.sent(),i.endMeasurement({success:!0}),l.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(se.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},n.prototype.handleRedirectPromise=function(e){return x(this,void 0,void 0,function(){var t,r,o,i,l,d,h,f,u=this;return B(this,function(y){return this.logger.verbose("handleRedirectPromise called"),Ae.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(r=e||C.EMPTY_STRING,o=this.redirectResponse.get(r),typeof o>"u"?(this.eventHandler.emitEvent(se.HANDLE_REDIRECT_START,Y.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getCachedNativeRequest(),l=void 0,i&&mn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),d=new Rn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Se.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId),l=d.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),h=this.browserStorage.getTemporaryCache(_e.CORRELATION_ID,!0)||C.EMPTY_STRING,f=this.createRedirectClient(h),l=f.handleRedirectPromise(e)),o=l.then(function(_){if(_){var k=t.length<u.getAllAccounts().length;k?(u.eventHandler.emitEvent(se.LOGIN_SUCCESS,Y.Redirect,_),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(se.ACQUIRE_TOKEN_SUCCESS,Y.Redirect,_),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(se.HANDLE_REDIRECT_END,Y.Redirect),_}).catch(function(_){throw t.length>0?u.eventHandler.emitEvent(se.ACQUIRE_TOKEN_FAILURE,Y.Redirect,null,_):u.eventHandler.emitEvent(se.LOGIN_FAILURE,Y.Redirect,null,_),u.eventHandler.emitEvent(se.HANDLE_REDIRECT_END,Y.Redirect),_}),this.redirectResponse.set(r,o)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,o]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},n.prototype.acquireTokenRedirect=function(e){return x(this,void 0,void 0,function(){var t,r,o,i,l,d=this;return B(this,function(h){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(Y.Redirect),r=this.getAllAccounts().length>0,r?this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_START,Y.Redirect,e):this.eventHandler.emitEvent(se.LOGIN_START,Y.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(i=new Rn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Se.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),o=i.acquireTokenRedirect(e).catch(function(f){if(f instanceof Dt&&f.isFatal()){d.nativeExtensionProvider=void 0;var u=d.createRedirectClient(e.correlationId);return u.acquireToken(e)}else if(f instanceof At){d.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var u=d.createRedirectClient(e.correlationId);return u.acquireToken(e)}throw d.browserStorage.setInteractionInProgress(!1),f})):(l=this.createRedirectClient(e.correlationId),o=l.acquireToken(e)),[2,o.catch(function(f){throw r?d.eventHandler.emitEvent(se.ACQUIRE_TOKEN_FAILURE,Y.Redirect,null,f):d.eventHandler.emitEvent(se.LOGIN_FAILURE,Y.Redirect,null,f),f})]})})},n.prototype.acquireTokenPopup=function(e){var t=this,r=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(P.AcquireTokenPopup,r);try{this.logger.verbose("acquireTokenPopup called",r),this.preflightBrowserEnvironmentCheck(Y.Popup)}catch(h){return Promise.reject(h)}var i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_START,Y.Popup,e):this.eventHandler.emitEvent(se.LOGIN_START,Y.Popup,e);var l;if(this.canUseNative(e))l=this.acquireTokenNative(e,Se.acquireTokenPopup).then(function(h){return t.browserStorage.setInteractionInProgress(!1),o.endMeasurement({success:!0,isNativeBroker:!0,requestId:h.requestId}),h}).catch(function(h){if(h instanceof Dt&&h.isFatal()){t.nativeExtensionProvider=void 0;var f=t.createPopupClient(e.correlationId);return f.acquireToken(e)}else if(h instanceof At){t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var f=t.createPopupClient(e.correlationId);return f.acquireToken(e)}throw t.browserStorage.setInteractionInProgress(!1),h});else{var d=this.createPopupClient(e.correlationId);l=d.acquireToken(e)}return l.then(function(h){var f=i.length<t.getAllAccounts().length;return f?t.eventHandler.emitEvent(se.LOGIN_SUCCESS,Y.Popup,h):t.eventHandler.emitEvent(se.ACQUIRE_TOKEN_SUCCESS,Y.Popup,h),o.addStaticFields({accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length}),o.endMeasurement({success:!0,requestId:h.requestId}),h}).catch(function(h){return i.length>0?t.eventHandler.emitEvent(se.ACQUIRE_TOKEN_FAILURE,Y.Popup,null,h):t.eventHandler.emitEvent(se.LOGIN_FAILURE,Y.Popup,null,h),o.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),Promise.reject(h)})},n.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},n.prototype.ssoSilent=function(e){var t;return x(this,void 0,void 0,function(){var r,o,i,l,d=this;return B(this,function(h){return r=this.getRequestCorrelationId(e),o=$($({},e),{prompt:e.prompt,correlationId:r}),this.preflightBrowserEnvironmentCheck(Y.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(P.SsoSilent,r),(t=this.ssoSilentMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(se.SSO_SILENT_START,Y.Silent,o),this.canUseNative(o)?i=this.acquireTokenNative(o,Se.ssoSilent).catch(function(f){if(f instanceof Dt&&f.isFatal()){d.nativeExtensionProvider=void 0;var u=d.createSilentIframeClient(o.correlationId);return u.acquireToken(o)}throw f}):(l=this.createSilentIframeClient(o.correlationId),i=l.acquireToken(o)),[2,i.then(function(f){var u,y;return d.eventHandler.emitEvent(se.SSO_SILENT_SUCCESS,Y.Silent,f),(u=d.ssoSilentMeasurement)===null||u===void 0||u.addStaticFields({accessTokenSize:f.accessToken.length,idTokenSize:f.idToken.length}),(y=d.ssoSilentMeasurement)===null||y===void 0||y.endMeasurement({success:!0,isNativeBroker:f.fromNativeBroker,requestId:f.requestId}),f}).catch(function(f){var u;throw d.eventHandler.emitEvent(se.SSO_SILENT_FAILURE,Y.Silent,null,f),(u=d.ssoSilentMeasurement)===null||u===void 0||u.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f}).finally(function(){document.removeEventListener("visibilitychange",d.trackPageVisibilityWithMeasurement)})]})})},n.prototype.acquireTokenByCode=function(e){return x(this,void 0,void 0,function(){var t,r,o,i,l=this;return B(this,function(d){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(Y.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_BY_CODE_START,Y.Silent,e),r=this.performanceClient.startMeasurement(P.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw q.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return o=e.code,i=this.hybridAuthCodeResponses.get(o),i?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),r.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),i=this.acquireTokenByCodeAsync($($({},e),{correlationId:t})).then(function(h){return l.eventHandler.emitEvent(se.ACQUIRE_TOKEN_BY_CODE_SUCCESS,Y.Silent,h),l.hybridAuthCodeResponses.delete(o),r.addStaticFields({accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length}),r.endMeasurement({success:!0,isNativeBroker:h.fromNativeBroker,requestId:h.requestId}),h}).catch(function(h){throw l.hybridAuthCodeResponses.delete(o),l.eventHandler.emitEvent(se.ACQUIRE_TOKEN_BY_CODE_FAILURE,Y.Silent,null,h),r.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h}),this.hybridAuthCodeResponses.set(o,i)),[2,i];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,Se.acquireTokenByCode,e.nativeAccountId).catch(function(h){throw h instanceof Dt&&h.isFatal()&&(l.nativeExtensionProvider=void 0),h})];throw q.createUnableToAcquireTokenFromNativePlatformError()}else throw q.createAuthCodeOrNativeAccountIdRequiredError()}catch(h){throw this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_BY_CODE_FAILURE,Y.Silent,null,h),r.endMeasurement({errorCode:h instanceof X&&h.errorCode||void 0,subErrorCode:h instanceof X&&h.subError||void 0,success:!1}),h}return[2]})})},n.prototype.acquireTokenByCodeAsync=function(e){var t;return x(this,void 0,void 0,function(){var r,o,i=this;return B(this,function(l){switch(l.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(P.AcquireTokenByCodeAsync,e.correlationId),(t=this.acquireTokenByCodeAsyncMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),r=this.createSilentAuthCodeClient(e.correlationId),[4,r.acquireToken(e).then(function(d){var h;return(h=i.acquireTokenByCodeAsyncMeasurement)===null||h===void 0||h.endMeasurement({success:!0,fromCache:d.fromCache,isNativeBroker:d.fromNativeBroker,requestId:d.requestId}),d}).catch(function(d){var h;throw(h=i.acquireTokenByCodeAsyncMeasurement)===null||h===void 0||h.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d}).finally(function(){document.removeEventListener("visibilitychange",i.trackPageVisibilityWithMeasurement)})];case 1:return o=l.sent(),[2,o]}})})},n.prototype.acquireTokenFromCache=function(e,t,r){return x(this,void 0,void 0,function(){return B(this,function(o){switch(this.performanceClient.addQueueMeasurement(P.AcquireTokenFromCache,t.correlationId),r.cacheLookupPolicy){case ot.Default:case ot.AccessToken:case ot.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw Q.createRefreshRequiredError()}return[2]})})},n.prototype.acquireTokenByRefreshToken=function(e,t){return x(this,void 0,void 0,function(){var r;return B(this,function(o){switch(this.performanceClient.addQueueMeasurement(P.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case ot.Default:case ot.AccessTokenAndRefreshToken:case ot.RefreshToken:case ot.RefreshTokenAndNetwork:return r=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(P.SilentRefreshClientAcquireToken,e.correlationId),[2,r.acquireToken(e)];default:throw Q.createRefreshRequiredError()}return[2]})})},n.prototype.acquireTokenBySilentIframe=function(e){return x(this,void 0,void 0,function(){var t;return B(this,function(r){return this.performanceClient.addQueueMeasurement(P.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(P.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]})})},n.prototype.logout=function(e){return x(this,void 0,void 0,function(){var t;return B(this,function(r){return t=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),[2,this.logoutRedirect($({correlationId:t},e))]})})},n.prototype.logoutRedirect=function(e){return x(this,void 0,void 0,function(){var t,r;return B(this,function(o){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(Y.Redirect),r=this.createRedirectClient(t),[2,r.logout(e)]})})},n.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(Y.Popup);var r=this.createPopupClient(t);return r.logout(e)}catch(o){return Promise.reject(o)}},n.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},n.prototype.getAccountByUsername=function(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({username:e});return t?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),t):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},n.prototype.getAccountByHomeId=function(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return t?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),t):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},n.prototype.getAccountByLocalId=function(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return t?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),t):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},n.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},n.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},n.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(t===void 0&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Ae.blockNonBrowserEnvironment(this.isBrowserEnvironment),Ae.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),Ae.blockReloadInHiddenIframes(),Ae.blockAcquireTokenInPopups(),Ae.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===Y.Redirect&&this.config.cache.cacheLocation===Oe.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw lr.createInMemoryRedirectUnavailableError();(e===Y.Redirect||e===Y.Popup)&&this.preflightInteractiveRequest(t)},n.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Ae.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},n.prototype.acquireTokenNative=function(e,t,r){return x(this,void 0,void 0,function(){var o;return B(this,function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw q.createNativeConnectionNotEstablishedError();return o=new Rn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,r||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,o.acquireToken(e)]})})},n.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!mn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case Qe.NONE:case Qe.CONSENT:case Qe.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!t&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},n.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},n.prototype.createPopupClient=function(e){return new Ma(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},n.prototype.createRedirectClient=function(e){return new Pa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},n.prototype.createSilentIframeClient=function(e){return new Ua(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Se.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},n.prototype.createSilentCacheClient=function(e){return new ni(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},n.prototype.createSilentRefreshClient=function(e){return new Da(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},n.prototype.createSilentAuthCodeClient=function(e){return new ns(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Se.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},n.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},n.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},n.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},n.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},n.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},n.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},n.prototype.getTokenCache=function(){return this.tokenCache},n.prototype.getLogger=function(){return this.logger},n.prototype.setLogger=function(e){this.logger=e},n.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},n.prototype.setNavigationClient=function(e){this.navigationClient=e},n.prototype.getConfiguration=function(){return this.config},n.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():C.EMPTY_STRING},n}();/*! @azure/msal-browser v2.39.0 2024-06-06 */var os=function(n){qe(e,n);function e(t){var r=n.call(this,t)||this;return r.astsAsyncMeasurement=void 0,r.activeSilentTokenRequests=new Map,r.trackPageVisibility=r.trackPageVisibility.bind(r),r}return e.prototype.loginRedirect=function(t){return x(this,void 0,void 0,function(){var r;return B(this,function(o){return r=this.getRequestCorrelationId(t),this.logger.verbose("loginRedirect called",r),[2,this.acquireTokenRedirect($({correlationId:r},t||Yo))]})})},e.prototype.loginPopup=function(t){var r=this.getRequestCorrelationId(t);return this.logger.verbose("loginPopup called",r),this.acquireTokenPopup($({correlationId:r},t||Yo))},e.prototype.acquireTokenSilent=function(t){return x(this,void 0,void 0,function(){var r,o,i,l,d,h,f,u=this;return B(this,function(y){if(r=this.getRequestCorrelationId(t),o=this.performanceClient.startMeasurement(P.AcquireTokenSilent,r),o.addStaticFields({cacheLookupPolicy:t.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(Y.Silent),this.logger.verbose("acquireTokenSilent called",r),i=t.account||this.getActiveAccount(),!i)throw q.createNoAccountError();return l={clientId:this.config.auth.clientId,authority:t.authority||C.EMPTY_STRING,scopes:t.scopes,homeAccountIdentifier:i.homeAccountId,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},d=JSON.stringify(l),h=this.activeSilentTokenRequests.get(d),typeof h>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",r),this.performanceClient.setPreQueueTime(P.AcquireTokenSilentAsync,r),f=this.acquireTokenSilentAsync($($({},t),{correlationId:r}),i).then(function(_){return u.activeSilentTokenRequests.delete(d),o.addStaticFields({accessTokenSize:_.accessToken.length,idTokenSize:_.idToken.length}),o.endMeasurement({success:!0,fromCache:_.fromCache,isNativeBroker:_.fromNativeBroker,cacheLookupPolicy:t.cacheLookupPolicy,requestId:_.requestId}),_}).catch(function(_){throw u.activeSilentTokenRequests.delete(d),o.endMeasurement({errorCode:_.errorCode,subErrorCode:_.subError,success:!1}),_}),this.activeSilentTokenRequests.set(d,f),[2,f]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",r),o.discardMeasurement(),[2,h])})})},e.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},e.prototype.acquireTokenSilentAsync=function(t,r){var o;return x(this,void 0,void 0,function(){var i,l,d,h,f,u=this;return B(this,function(y){switch(y.label){case 0:return this.performanceClient.addQueueMeasurement(P.AcquireTokenSilentAsync,t.correlationId),this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_START,Y.Silent,t),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(P.AcquireTokenSilentAsync,t.correlationId),(o=this.astsAsyncMeasurement)===null||o===void 0||o.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),mn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme)&&r.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),l=$($({},t),{account:r}),i=this.acquireTokenNative(l,Se.acquireTokenSilent_silentFlow).catch(function(_){return x(u,void 0,void 0,function(){var k;return B(this,function(T){if(_ instanceof Dt&&_.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,k=this.createSilentIframeClient(t.correlationId),[2,k.acquireToken(t)];throw _})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),d=this.createSilentCacheClient(t.correlationId),this.performanceClient.setPreQueueTime(P.InitializeSilentRequest,t.correlationId),[4,d.initializeSilentRequest(t,r)];case 2:h=y.sent(),f=$($({},t),{cacheLookupPolicy:t.cacheLookupPolicy||ot.Default}),this.performanceClient.setPreQueueTime(P.AcquireTokenFromCache,h.correlationId),i=this.acquireTokenFromCache(d,h,f).catch(function(_){if(f.cacheLookupPolicy===ot.AccessToken)throw _;return Ae.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(se.ACQUIRE_TOKEN_NETWORK_START,Y.Silent,h),u.performanceClient.setPreQueueTime(P.AcquireTokenByRefreshToken,h.correlationId),u.acquireTokenByRefreshToken(h,f).catch(function(k){var T=k instanceof pn,O=k instanceof At,M=k.errorCode===En.noTokensFoundError.code,F=k.errorCode===Rt.INVALID_GRANT_ERROR;if((!T||!F||O||f.cacheLookupPolicy===ot.AccessTokenAndRefreshToken||f.cacheLookupPolicy===ot.RefreshToken)&&f.cacheLookupPolicy!==ot.Skip&&!M)throw k;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",t.correlationId),u.performanceClient.setPreQueueTime(P.AcquireTokenBySilentIframe,h.correlationId),u.acquireTokenBySilentIframe(h)})}),y.label=3;case 3:return[2,i.then(function(_){var k;return u.eventHandler.emitEvent(se.ACQUIRE_TOKEN_SUCCESS,Y.Silent,_),(k=u.astsAsyncMeasurement)===null||k===void 0||k.endMeasurement({success:!0,fromCache:_.fromCache,isNativeBroker:_.fromNativeBroker,requestId:_.requestId}),_}).catch(function(_){var k;throw u.eventHandler.emitEvent(se.ACQUIRE_TOKEN_FAILURE,Y.Silent,null,_),(k=u.astsAsyncMeasurement)===null||k===void 0||k.endMeasurement({errorCode:_.errorCode,subErrorCode:_.subError,success:!1}),_}).finally(function(){document.removeEventListener("visibilitychange",u.trackPageVisibility)})]}})})},e.prototype.hydrateCache=function(t,r){return x(this,void 0,void 0,function(){var o;return B(this,function(i){return this.logger.verbose("hydrateCache called"),t.account?(o=Ye.createFromAccountInfo(t.account,t.cloudGraphHostName,t.msGraphHost),this.browserStorage.setAccount(o),t.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),[2,this.nativeInternalStorage.hydrateCache(t,r)]):[2,this.browserStorage.hydrateCache(t,r)]):[2]})})},e}(rs);class is extends ct.WebPlugin{async login(e){const t=this.createContext(e);try{return await this.acquireTokenSilently(t,e.scopes).catch(()=>this.acquireTokenInteractively(t,e.scopes))}catch(r){throw console.error("MSAL: Error occurred while logging in",r),r}}logout(e){const t=this.createContext(e);return t.getAllAccounts()[0]?t.logoutPopup():Promise.reject(new Error("Nothing to sign out from."))}logoutAll(e){return this.logout(e)}createContext(e){var t,r,o;const i={auth:{clientId:e.clientId,domainHint:e.domainHint,authority:(t=e.authorityUrl)!==null&&t!==void 0?t:`https://login.microsoftonline.com/${(r=e.tenant)!==null&&r!==void 0?r:"common"}`,knownAuthorities:e.knownAuthorities,redirectUri:(o=e.redirectUri)!==null&&o!==void 0?o:this.getCurrentUrl()},cache:{cacheLocation:"localStorage"}};return new os(i)}getCurrentUrl(){return window.location.href.split(/[?#]/)[0]}async acquireTokenInteractively(e,t){const{accessToken:r,idToken:o}=await e.acquireTokenPopup({scopes:t,prompt:"select_account"});return{accessToken:r,idToken:o,scopes:t}}async acquireTokenSilently(e,t){const{accessToken:r,idToken:o}=await e.acquireTokenSilent({scopes:t,account:e.getAllAccounts()[0]});return{accessToken:r,idToken:o,scopes:t}}}const as=ct.registerPlugin("MsAuthPlugin",{web:()=>new is}),di={data(){return{microsoftLoad:!1,microsoftSSOLoad:!1}},computed:{displayMicrosoftSSOLogin(){return!1}},methods:{async microsoftLogin(n,e={}){var o;n==="sso"?this.microsoftSSOLoad=!0:this.microsoftLoad=!0;const[t,r]=await be(as.login({clientId:n==="sso"?e.clientID:"9cd47053-080a-4df8-8fd8-ca4389163fde",tenant:n==="sso"?e.tenant:"consumers",scopes:["User.Read"],knownAuthorities:[],keyHash:"4+5wCp8QcLptlO0aeP5RDTTOWyg=",redirectUri:`${window.location.origin}/login`}));if(t)return console.error("MsAuthPlugin Error: "+JSON.stringify(t)),this.microsoftLoad=!1;if(this.referral&&(r.ref=this.referral),this.display==="popup"&&(r.response_type="code"),r&&(r.accessToken||r.idToken)){const[i,l]=await be($e.microsoftSDK(r,this.$storex));if(i)return this.microsoftLoad=!1,this.microsoftSSOLoad=!1,J.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(i);if(l.data.success){if(this.display==="popup")return(o=window.parent)==null?void 0:o.postMessage({code:l.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(l),await this.getLoggedInAccounts(),this.loginSuccess({...l,isModal:this.isModal}),setTimeout(()=>{this.microsoftLoad=!1,this.microsoftSSOLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.microsoftLoad=!1,this.microsoftSSOLoad=!1,J.$emit("ssoEvent",{name:"setLoading",data:!1})}}},ss=n=>{try{return window.crypto.getRandomValues(n)}catch{for(let t=0;t<n.length;t++)n[t]=Math.floor(Math.random()*256);return n}},cs=async n=>{try{return await window.crypto.subtle.digest("SHA-256",n)}catch{const t=co.sha256(n);return new Uint8Array(t.match(/.{1,2}/g).map(r=>parseInt(r,16))).buffer}},ls=async(n,e,t)=>{try{return await window.crypto.subtle.encrypt(n,e,t)}catch{throw new Error("Encryption not supported in this environment")}},ds=async(n,e,t)=>{try{return await window.crypto.subtle.decrypt(n,e,t)}catch{throw new Error("Decryption not supported in this environment")}},Kn={getFirstBrowserLanguage(){let n=window.navigator,e=["language","browserLanguage","systemLanguage","userLanguage"],t,r;if(Array.isArray(n.languages)){for(t=0;t<n.languages.length;t++)if(r=n.languages[t],r&&r.length)return r.slice(0,2)}for(t=0;t<e.length;t++)if(r=n[e[t]],r&&r.length)return r.slice(0,2);return null},compareLangKeys(){const n=Object.keys(vo.state),e=Object.keys(wo.state),t=Object.keys(bo.state),r=Object.keys(So.state),o=Object.keys(Eo.state),i=Object.keys(ko.state),l=Object.keys(Co.state),d=Object.keys(To.state);console.log("In en but not in de",n.filter(h=>!e.includes(h))),console.log("In de but not in en",e.filter(h=>!n.includes(h))),console.log(),console.log("In en but not in es",n.filter(h=>!t.includes(h))),console.log("In es but not in en",t.filter(h=>!n.includes(h))),console.log(),console.log("In en but not in kr",n.filter(h=>!r.includes(h))),console.log("In kr but not in en",r.filter(h=>!n.includes(h))),console.log(),console.log("In en but not in it",n.filter(h=>!o.includes(h))),console.log("In it but not in en",o.filter(h=>!n.includes(h))),console.log(),console.log("In en but not in fr",n.filter(h=>!i.includes(h))),console.log("In fr but not in en",i.filter(h=>!n.includes(h))),console.log(),console.log("In en but not in sr",n.filter(h=>!l.includes(h))),console.log("In sr but not in en",l.filter(h=>!n.includes(h))),console.log(),console.log("In en but not in tr",n.filter(h=>!d.includes(h))),console.log("In tr but not in en",d.filter(h=>!n.includes(h))),console.log()},base64ImageToBlob(n){const e=n.split(";base64,"),t=e[0].split(":")[1],r=window.atob(e[1]),o=new Uint8Array(r.length);for(let i=0;i<r.length;++i)o[i]=r.charCodeAt(i);return new Blob([o],{type:t})},blobToBase64(n){const e=new FileReader;return e.readAsDataURL(n),new Promise(t=>{e.onloadend=()=>{t(e.result)}})},base64toFile(n,e){for(var t=n.split(","),r=t[0].match(/:(.*?);/)[1],o=atob(t[1]),i=o.length,l=new Uint8Array(i);i--;)l[i]=o.charCodeAt(i);return new File([l],e,{type:r})},fileToBase64(n){new Promise((e,t)=>{const r=new FileReader;r.readAsDataURL(n),r.onload=()=>e(r.result),r.onerror=o=>t(o)})},getUTMParams(n){let e={};return n.utm_source&&(e.utm_source=n.utm_source),n.utm_medium&&(e.utm_medium=n.utm_medium),n.utm_campaign&&(e.utm_campaign=n.utm_campaign),n.utm_term&&(e.utm_term=n.utm_term),n.utm_content&&(e.utm_content=n.utm_content),e},cropCardScan(n,e){const t=new window.Image,r=document.createElement("canvas"),o=r.getContext("2d");t.src="data:image/jpeg;base64,"+n,t.onload=()=>{const i=t.width,l=t.width/1.65,d=0,h=t.height/2-l/2,f=i,u=l;r.width=f,r.height=u,o.drawImage(t,d,h,i,l,0,0,f,u);const y=r.toDataURL();return e(y),y}},generateRandomString(n){let e=new Uint32Array(n);return ss(e),Array.from(e,t=>("0"+t.toString(16)).substr(-2)).join("")},async pkceChallengeFromVerifier(n){try{const t=new TextEncoder().encode(n),r=await cs(t);return btoa(String.fromCharCode.apply(null,new Uint8Array(r))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch{const t=co.sha256(n);return btoa(String.fromCharCode.apply(null,new Uint8Array(t.match(/.{1,2}/g).map(o=>parseInt(o,16))))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}},async encryptAES(n,e,t){try{let o=new TextEncoder().encode(t);return await ls({name:"AES-CBC",iv:e},n,o)}catch(r){throw r}},async decryptAES(n,e,t){try{const r=h=>Uint8Array.from(atob(h),f=>f.charCodeAt(0));t=t.replace(/ /g,"+");const o=new TextEncoder,i=new TextDecoder;n=o.encode(n),e=o.encode(e),t=r(t);const l=await window.crypto.subtle.importKey("raw",n,"AES-CBC",!0,["encrypt","decrypt"]);let d=await ds({name:"AES-CBC",iv:e},l,t);return d=i.decode(d),d=d.replace(/ /g,"+"),d=atob(d),d}catch(r){throw r}}},ui={data(){return{oktaAuth:null}},computed:{},watch:{},methods:{async exchangeCode(n){var o,i;let[e,t]=await be(_r.post(n.domain+"/v1/token",new URLSearchParams({code:n.code,client_id:n.clientID,grant_type:"authorization_code",redirect_uri:this.isNative?"tapni://t.link/callback/okta":location.origin+"/callback/okta",code_verifier:localStorage.getItem("pkce_code_verifier")})));if(e)return this.errorHandler(e);localStorage.removeItem("pkce_code_verifier");let r={accessToken:(o=t.data)==null?void 0:o.access_token,domain:n.domain};if(this.display==="popup"&&(r.response_type="code"),[e,t]=await be($e.oktaSDK(r,this.$storex)),e)return this.oktaLoad=!1,J.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(e);if(t.data.success){if(this.display==="popup")return(i=window.parent)==null?void 0:i.postMessage({code:t.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(t),await this.getLoggedInAccounts(),this.$router.push("/"+t.data.data.username+"#edit"),setTimeout(()=>{this.appleLoad=!1,J.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)},async oktaLogin(n){const e=ct.Capacitor.getPlatform()||"web";let t=btoa("domain="+n.domain+"&client_id="+n.clientID+"&platform="+e+"&rand="+Kn.generateRandomString(28)),r=Kn.generateRandomString(28);localStorage.setItem("pkce_code_verifier",r);let o=await Kn.pkceChallengeFromVerifier(r),i=n.domain+"/v1/authorize",l;this.isNative?l="tapni://t.link/callback/okta":l=location.origin+"/callback/okta";let d=i+"?response_type=code&client_id="+encodeURIComponent(n.clientID)+"&state="+encodeURIComponent(t)+"&scope="+encodeURIComponent("openid email profile")+"&redirect_uri="+encodeURIComponent(l)+"&code_challenge="+encodeURIComponent(o)+"&code_challenge_method=S256",h=this,f;window.addEventListener("message",async u=>{if(!this.allowedOriginsAuth.includes(u.origin))return console.error("Origin is not allowed!");u.data.type==="okta"&&(f=u.data.code,await h.exchangeCode({domain:n.domain,code:f,clientID:n.clientID}))},{once:!0}),this.isNative?await Gn.Browser.open({url:d,presentationStyle:"popover"}):window.open(d,"popup","width=600,height=600")},async handleOktaRedirect(){let n=this.$route.query.code,e,t,r,o,i={type:"okta"};if(n&&(i.code=n),this.$route.query.state){e=this.$route.query.state,e=atob(e);const l=new URLSearchParams(e);t=l.get("client_id"),r=l.get("domain"),o=l.get("platform")}window.opener?(window.opener.postMessage(i,location.origin),window.close()):(this.isNative&&this.isiOS&&await Gn.Browser.close(),J.$emit("ssoEvent",{name:"setLoading",data:!0}),n&&t&&r&&await this.exchangeCode({code:n,clientID:t,domain:r,platform:o}),localStorage.removeItem("pkce_code_verifier"),J.$emit("ssoEvent",{name:"setLoading",data:!1}))}}},pi={data(){return{code_verifier:"",code_challenge:"",shouldCloseWindow:!1,popupWindow:null,checkInterval:null}},computed:{},watch:{"$route.path"(n){n==="/callback/saml"&&this.handleSamlRedirect(n)}},methods:{closeWindow(){try{window.close()}catch{}},async samlLogin(n){this.code_verifier=Kn.generateRandomString(28),localStorage.setItem("pkce_code_verifier",this.code_verifier),this.code_challenge=await Kn.pkceChallengeFromVerifier(this.code_verifier);const e=ct.Capacitor.getPlatform();let t=`code_challenge=${this.code_challenge}&platform=${e}&redirect_uri=${location.origin+(this.display==="npm"?"/app":"")+"/callback/saml"}&realm=${this.realm}&display=${this.display}`,r=btoa(t);n=`${n}&RelayState=${r}`;let o=this;window.addEventListener("message",async i=>{var h;if(!this.allowedOriginsAuth.includes(i.origin))return console.error("Origin is not allowed! "+i.origin);const l=i.data.code,d=localStorage.getItem("pkce_code_verifier");if(l){if(o.display==="popup")return(h=window.parent)==null?void 0:h.postMessage({code:l,state:i.data.state,code_verifier:d},"*");d&&(await o.exchangeAuthCode({code:i.data.code,code_verifier:d}),localStorage.removeItem("pkce_code_verifier"))}},{once:!0}),this.isNative?this.popupWindow=await Gn.Browser.open({url:n,presentationStyle:"popover"}):(this.checkInterval=setInterval(()=>{var d;const i=localStorage.getItem("auth_code"),l=localStorage.getItem("pkce_code_verifier");i&&(clearInterval(this.checkInterval),localStorage.removeItem("auth_code"),localStorage.removeItem("pkce_code_verifier"),(d=window.parent)==null||d.postMessage({code:i,state:this.$route.query.state,code_verifier:l},"*"),l&&(this.display==="npm"||this.display==="redirect")&&this.exchangeAuthCode({code:i,code_verifier:l}))},500),this.popupWindow=window.open(window.location.origin+(this.display==="npm"?"/app":"")+"/callback/redirect?uri="+btoa(n),"popup","width=600,height=600"))},async handleSamlRedirect(){var e;let n;if(this.$route.query.code&&(n=this.$route.query.code),window.opener)window.opener.postMessage({type:"saml",code:n},"*"),this.closeWindow();else{if(this.isNative&&this.isiOS&&await Gn.Browser.close(),J.$emit("ssoEvent",{name:"setLoading",data:!0}),n&&((this.display==="popup"||this.display==="npm")&&(localStorage.setItem("auth_code",n),this.shouldCloseWindow=!0,(e=window.parent)==null||e.postMessage({code:n,state:this.$route.query.state},"*"),this.closeWindow()),this.display==="redirect"||location.host==="auth.tapni.com")){let t="https://auth.tapni.com/callback/auth";return this.realm==="dashboard"&&(t="https://business.tapni.com/login"),location.href=t+"?code="+n+"&code_verifier="+localStorage.getItem("pkce_code_verifier")}J.$emit("ssoEvent",{name:"setLoading",data:!1})}}}},hi={data(){return{isQrCodeLogin:!1,qrCode:null,qrCodeHash:null,qrCodeRefreshInterval:null,poolingInterval:null}},props:{isModal:{type:Boolean,required:!1,default:!1}},computed:{displayQRLogin(){return this.$route.name==="AuthLogin"&&this.display!=="npm"}},mounted(){this.$route.name==="AuthQR"&&this.changeLoginToQr()},methods:{async changeLoginToQr(){this.isQrCodeLogin=!0,await s.nextTick(),await this.initQrCodeLogin()},generateRandomHash(){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=n.length;let t="";const r=new Uint32Array(32);return window.crypto.getRandomValues(r),r.forEach(o=>{t+=n.charAt(o%e)}),t},refreshQrCode(){var n,e;this.qrCode&&((e=(n=document.getElementById("qrCodeContainer"))==null?void 0:n.childNodes[0])==null||e.remove()),this.qrCodeHash=this.generateRandomHash(),this.qrCode=new lo({width:300,height:300,type:"png",image:"",imageOptions:{margin:15},data:this.qrCodeHash,dotsOptions:{type:"extra-rounded",color:"#000000"},cornersSquareOptions:{type:"extra-rounded",color:"#000000"},cornersDotOptions:{type:"",color:"#000000"},backgroundOptions:{color:"#ffffff00"}}),this.qrCode.append(document.getElementById("qrCodeContainer"))},async startQrCodePooling(){this.poolingInterval=setInterval(async()=>{const[n,e]=await be(Cr.qrCodePooling({qrToken:this.qrCodeHash},this.$storex));if(n)return this.errorHandler(n);e.data.auth_code&&(this.display!=="popup"&&(this.loginSetup({...e,isModal:this.isModal}),await this.getLoggedInAccounts()),this.loginSuccess({...e,isModal:this.isModal}),clearInterval(this.poolingInterval),clearInterval(this.qrCodeRefreshInterval))},2e3)},async initQrCodeLogin(){this.refreshQrCode(),await s.nextTick(),await this.startQrCodePooling(),this.qrCodeRefreshInterval=setInterval(()=>{this.refreshQrCode()},6e4)}}},us={name:"AuthLogin",mixins:[Po,Mo,di,ui,pi,et,hi],data(){return{loading:!0,submitted:!1,emailOrUsername:"",password:"",captcha:"",revealPassword:!1,emailLogin:!0,isSSOLogin:!1,otpToken:"",showOTP:!1}},computed:{displayFormLogin(){return this.emailLogin},displayResetPasswordLogin(){return!this.isSSOLogin},displayRegisterLogin(){return!0}},async mounted(){if(!this.isModal){if(this.$route.path==="/login/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/login/callback/saml")return await this.handleSamlRedirect();this.$route.query.qrLogin&&this.changeLoginToQr(),setTimeout(()=>{this.$storex&&this.$storex.token?this.$router.push(this.home):J.$emit("ssoEvent",{name:"setLoading",data:!1})},2500)}J.$on("toggleOTPField",()=>{this.showOTP=!this.showOTP})},methods:{async ssoLoginSubmit(){this.loading=!0;const n=await this.getCompanyBySSOEmail({email:this.emailOrUsername});this.loading=!1;let e;if(!(!n||n.error))if(e=Object.keys(n.sso),e.length)e[0]==="azure"&&this.microsoftLogin("sso",n.sso.azure.sso),e[0]==="okta"&&this.oktaLogin(n.sso.okta.sso),e[0]==="saml"&&this.samlLogin(n.sso.saml.sso.loginUrl);else return this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins)},async submit(){if(this.submitted)return;if(this.submitted=!0,this.isSSOLogin)return this.ssoLoginSubmit();this.emailOrUsername=this.emailOrUsername.trim();let e={response_type:this.$route.query.response_type||"token",isModal:this.isModal,captcha:this.captcha,password:this.password,otpToken:this.otpToken};this.emailOrUsername.indexOf("@")!==-1?e.email=this.emailOrUsername:e.username=this.emailOrUsername;const[t,r]=await be(this.login(e));t&&console.error(t),this.submitted=!1,r===!0&&(this.emailOrUsername="",this.password="")},close(){J.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})},createAccountModal(){J.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:{}})}},watch:{emailOrUsername(n){n.includes("@")&&(this.$storex.verifyEmail=n)},"$route.path":async function(n){if(n==="/login/callback/okta")return await this.handleOktaRedirect();if(n==="/login/callback/saml")return await this.handleSamlRedirect()}}},ps={class:"bold no-bottom center-text text-[22px]",style:{"margin-top":"63px"}},hs={key:0},ms={key:1},fs={key:1},gs={class:"page-login-field half-top"},_s=["placeholder"],ys={key:0,class:"page-login-field half-bottom"},vs=["type","placeholder"],ws={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},bs={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},ks={key:1,class:"page-login-field half-bottom"},Es=["placeholder"],Cs={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top pointer"},Ts={key:0},Ss={key:1,class:"button--loading button__loader"},Is={key:0},As={key:1,class:"button--loading-black button__loader"},Rs={key:0},Ns={key:1,class:"button--loading-black button__loader"},Ps={key:0},Ms={key:1,class:"button--loading-black button__loader"},Ls={key:0},Os={key:1,class:"button--loading-black button__loader"},xs={key:0},Bs={key:1,class:"button--loading-black button__loader"},zs={class:"close-text center-text half-top color-black"},Us={class:"",href:"https://tapni.com/policies/terms-of-service"},Ds={href:"https://tapni.com/policies/privacy-policy"},Fs={key:2,class:"page-login-links"},js={class:"forgot center-text pointer small-top"};function qs(n,e,t,r,o,i){const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[15]||(e[15]=s.withModifiers((...d)=>i.submit&&i.submit(...d),["prevent"])),autocomplete:"on",style:s.normalizeStyle(n.isModal?"max-width: 500px;":"")},[n.isModal?(s.openBlock(),s.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...d)=>i.close&&i.close(...d)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},[...e[16]||(e[16]=[s.createElementVNode("i",{class:"font-17 color-black"},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)])])):s.createCommentVNode("",!0),s.createElementVNode("h2",ps,[o.isSSOLogin?(s.openBlock(),s.createElementBlock("span",hs,s.toDisplayString(this.ssoLang[this.appLanguage].enter_company_email),1)):(s.openBlock(),s.createElementBlock("span",ms,s.toDisplayString(this.ssoLang[this.appLanguage].login),1))]),e[34]||(e[34]=s.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),i.displayFormLogin?(s.openBlock(),s.createElementBlock("span",fs,[s.createElementVNode("div",gs,[e[17]||(e[17]=s.createElementVNode("i",{style:{"padding-top":"15px"}},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=d=>o.emailOrUsername=d),onKeydown:e[2]||(e[2]=s.withKeys(s.withModifiers(()=>{},["prevent"]),["space"])),autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text",name:"email",placeholder:o.isSSOLogin?n.ssoLang[this.appLanguage].email:n.ssoLang[this.appLanguage].email_username,required:""},null,40,_s),[[s.vModelText,o.emailOrUsername]]),e[18]||(e[18]=s.createElementVNode("em",null,null,-1))]),o.isSSOLogin?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",ys,[e[19]||(e[19]=s.createElementVNode("i",{style:{"padding-top":"15px"}},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=d=>o.password=d),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,vs),[[s.vModelDynamic,o.password]]),s.createElementVNode("em",{onClick:e[4]||(e[4]=d=>o.revealPassword=!o.revealPassword),class:"pointer"},[s.withDirectives(s.createElementVNode("img",ws,null,512),[[s.vShow,!o.revealPassword]]),s.withDirectives(s.createElementVNode("img",bs,null,512),[[s.vShow,o.revealPassword]])])])),o.showOTP?(s.openBlock(),s.createElementBlock("div",ks,[e[20]||(e[20]=s.createElementVNode("i",{style:{"padding-top":"15px"}},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":e[5]||(e[5]=d=>o.otpToken=d),type:"text",placeholder:n.ssoLang[this.appLanguage].otp_code,name:"otpToken",required:"",minlength:"6"},null,8,Es),[[s.vModelText,o.otpToken]]),e[21]||(e[21]=s.createElementVNode("em",null,null,-1))])):s.createCommentVNode("",!0),s.createElementVNode("button",Cs,[o.submitted?(s.openBlock(),s.createElementBlock("span",Ss)):(s.openBlock(),s.createElementBlock("span",Ts,s.toDisplayString(n.ssoLang[n.appLanguage].login),1))])])):s.createCommentVNode("",!0),e[35]||(e[35]=s.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1)),s.withDirectives(s.createElementVNode("span",null,[n.displayAppleLogin?(s.openBlock(),s.createElementBlock("a",{key:0,onClick:e[6]||(e[6]=(...d)=>n.appleLogin&&n.appleLogin(...d)),class:"button-center button button-90 google-button pointer"},[e[22]||(e[22]=s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),n.appleLoad?(s.openBlock(),s.createElementBlock("span",As)):(s.openBlock(),s.createElementBlock("span",Is,s.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Apple",1))])):s.createCommentVNode("",!0),n.displayGoogleLogin?(s.openBlock(),s.createElementBlock("a",{key:1,onClick:e[7]||(e[7]=(...d)=>n.googleLogin&&n.googleLogin(...d)),class:"button-center button button-90 google-button pointer"},[e[23]||(e[23]=s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-10px",padding:"8px 0",height:"100%"}},null,-1)),n.googleLoad?(s.openBlock(),s.createElementBlock("span",Ns)):(s.openBlock(),s.createElementBlock("span",Rs,s.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Google",1))])):s.createCommentVNode("",!0),n.displayMicrosoftSSOLogin?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("a",{key:2,onClick:e[8]||(e[8]=(...d)=>n.microsoftLogin&&n.microsoftLogin(...d)),class:"button-center button button-90 google-button pointer"},[e[24]||(e[24]=s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/outlook.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1)),n.microsoftLoad?(s.openBlock(),s.createElementBlock("span",Ms)):(s.openBlock(),s.createElementBlock("span",Ps,s.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Outlook",1))])),n.displayMicrosoftSSOLogin?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("a",{key:3,onClick:e[9]||(e[9]=d=>o.isSSOLogin=!0),class:"button-center button button-90 google-button pointer"},[e[25]||(e[25]=s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1)),n.microsoftSSOLoad?(s.openBlock(),s.createElementBlock("span",Os)):(s.openBlock(),s.createElementBlock("span",Ls,s.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SSO",1))])),n.displayMicrosoftSSOLogin?(s.openBlock(),s.createElementBlock("a",{key:4,onClick:e[10]||(e[10]=d=>n.microsoftLogin("sso")),class:"button-center button button-90 google-button pointer"},[e[26]||(e[26]=s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1)),n.microsoftSSOLoad?(s.openBlock(),s.createElementBlock("span",xs,s.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SSO",1)):(s.openBlock(),s.createElementBlock("span",Bs))])):s.createCommentVNode("",!0),i.displayFormLogin?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("a",{key:5,onClick:e[11]||(e[11]=d=>o.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[e[27]||(e[27]=s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1)),s.createElementVNode("span",null,s.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Email",1)])),n.displayQRLogin?(s.openBlock(),s.createElementBlock("a",{key:6,onClick:e[12]||(e[12]=d=>n.$router.push("/qr")),class:"button-center button button-90 google-button pointer"},[e[28]||(e[28]=s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/qr.png",style:{position:"absolute","margin-left":"-5px",padding:"15px 0",height:"100%"}},null,-1)),s.createElementVNode("span",null,s.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" QR",1)])):s.createCommentVNode("",!0),e[29]||(e[29]=s.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1))],512),[[s.vShow,!o.isSSOLogin]]),s.createElementVNode("p",zs,[s.createTextVNode(s.toDisplayString(n.ssoLang[n.appLanguage].terms_by_signing_in)+" ",1),e[30]||(e[30]=s.createElementVNode("br",null,null,-1)),s.createElementVNode("a",Us,s.toDisplayString(n.ssoLang[this.appLanguage].terms_of_service),1),s.createTextVNode(" "+s.toDisplayString(n.ssoLang[n.appLanguage].and)+" ",1),s.createElementVNode("a",Ds,s.toDisplayString(n.ssoLang[this.appLanguage].privacy_policy),1)]),e[36]||(e[36]=s.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),n.isModal?(s.openBlock(),s.createElementBlock("div",{key:3,class:"page-login-links",onClick:e[14]||(e[14]=(...d)=>i.createAccountModal&&i.createAccountModal(...d))},[s.createElementVNode("a",js,[s.createTextVNode(s.toDisplayString(n.ssoLang[n.appLanguage].or)+" ",1),e[32]||(e[32]=s.createElementVNode("br",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(n.ssoLang[n.appLanguage].create_new_account),1)]),e[33]||(e[33]=s.createElementVNode("div",{class:"clear"},null,-1))])):(s.openBlock(),s.createElementBlock("div",Fs,[i.displayRegisterLogin?(s.openBlock(),s.createBlock(l,{key:0,class:"forgot float-right",to:"/register"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(n.ssoLang[n.appLanguage].create_account),1)]),_:1})):s.createCommentVNode("",!0),i.displayResetPasswordLogin?(s.openBlock(),s.createBlock(l,{key:1,class:"create float-left",to:"/reset"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(n.ssoLang[n.appLanguage].reset_password),1)]),_:1})):s.createCommentVNode("",!0),o.isSSOLogin?(s.openBlock(),s.createElementBlock("a",{key:2,onClick:e[13]||(e[13]=d=>o.isSSOLogin=!1),class:"create float-left pointer"},s.toDisplayString(n.ssoLang[n.appLanguage].go_back),1)):s.createCommentVNode("",!0),e[31]||(e[31]=s.createElementVNode("div",{class:"clear"},null,-1))]))],36)}const Vr=lt(us,[["render",qs]]),Vs=Object.freeze(Object.defineProperty({__proto__:null,default:Vr},Symbol.toStringTag,{value:"Module"})),Hs={WEB_VERSION:"1.0.1"},Ks={mixins:[et],props:{isModal:{type:Boolean,default:!1}},data(){return{expanded:!1,addAccountReady:!1}},computed:{appVersion(){return Hs.WEB_VERSION}},async mounted(){if(!this.isLoggedIn)return this.$router.push("/");await this.getAccountSettings()},methods:{continueTo(n){},addAccount(){this.$router.push("/login")},switchAccount(n){},toggleLanguageModal(){J.$emit("toggleSSOLanguageModal")},logoutAccount(){this.logout({refreshToken:this.refreshTokens[0],sendRequest:!0})}}},Gs={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},$s={class:"bold full-top no-bottom center-text text-[24px]"},Qs={class:"full-bottom half-top center-text font-16"},Rh={key:1,class:"full-top full-bottom"},Nh={class:"page-login-links center-text"},Ws={class:"container left-text"},Ys={class:"firstRow"},Js=["src"],Xs=["src"],Zs={class:"firstRow"},ec=["src"],tc=["src"],nc={class:"firstRow"},rc=["src"],oc=["src"],ic={class:"firstRow"},ac=["src"],sc=["src"],cc={class:"firstRow"},lc=["src"],dc=["src"],uc={class:"firstRow"},pc=["src"],hc=["src"],mc={class:"firstRow"},fc=["src"],gc={class:"red-text"},_c=["src"],yc={class:"moreFooter"},vc={class:"app-version",style:{"margin-top":"10px"}};function wc(n,e,t,r,o,i){const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",Gs,[e[12]||(e[12]=s.createElementVNode("br",null,null,-1)),s.createCommentVNode("",!0),s.createElementVNode("h1",$s,s.toDisplayString(n.ssoLang[n.appLanguage].welcome_account),1),s.createElementVNode("p",Qs,s.toDisplayString(n.account.email),1),(n.display,s.createCommentVNode("",!0)),s.createElementVNode("div",Ws,[s.createCommentVNode("",!0),t.isModal?(s.openBlock(),s.createElementBlock("div",{key:1,class:"settingRow",onClick:e[4]||(e[4]=d=>n.$emit("update:viewProp","AuthGeneral"))},[s.createElementVNode("div",Ys,[s.createElementVNode("img",{src:n.getIcon("user-black.svg"),class:"withBackground"},null,8,Js),s.createElementVNode("h4",null,s.toDisplayString(n.ssoLang[n.appLanguage].general),1),s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,Xs)])])):(s.openBlock(),s.createBlock(l,{key:2,to:"/general",class:"settingRow"},{default:s.withCtx(()=>[s.createElementVNode("div",Zs,[s.createElementVNode("img",{src:n.getIcon("user-black.svg"),class:"withBackground"},null,8,ec),s.createElementVNode("h4",null,s.toDisplayString(n.ssoLang[n.appLanguage].general),1),s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,tc)])]),_:1})),t.isModal?(s.openBlock(),s.createElementBlock("div",{key:3,class:"settingRow",onClick:e[5]||(e[5]=d=>n.$emit("update:viewProp","AuthSecurity"))},[s.createElementVNode("div",nc,[s.createElementVNode("img",{src:n.getIcon("shield-black.svg"),class:"withBackground"},null,8,rc),s.createElementVNode("h4",null,s.toDisplayString(n.ssoLang[n.appLanguage].security),1),s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,oc)])])):(s.openBlock(),s.createBlock(l,{key:4,to:"/security",class:"settingRow"},{default:s.withCtx(()=>[s.createElementVNode("div",ic,[s.createElementVNode("img",{src:n.getIcon("shield-black.svg"),class:"withBackground"},null,8,ac),s.createElementVNode("h4",null,s.toDisplayString(n.ssoLang[n.appLanguage].security),1),s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,sc)])]),_:1})),s.createCommentVNode("",!0),t.isModal?(s.openBlock(),s.createElementBlock("div",{key:6,class:"settingRow",onClick:e[6]||(e[6]=d=>n.$emit("update:viewProp","AuthBilling"))},[s.createElementVNode("div",cc,[s.createElementVNode("img",{src:n.getIcon("billing-card-black.svg"),class:"withBackground"},null,8,lc),s.createElementVNode("h4",null,s.toDisplayString(n.ssoLang[n.appLanguage].billing),1),s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,dc)])])):(s.openBlock(),s.createBlock(l,{key:7,to:"/billing",class:"settingRow"},{default:s.withCtx(()=>[s.createElementVNode("div",uc,[s.createElementVNode("img",{src:n.getIcon("billing-card-black.svg"),class:"withBackground"},null,8,pc),s.createElementVNode("h4",null,s.toDisplayString(n.ssoLang[n.appLanguage].billing),1),s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,hc)])]),_:1})),t.isModal?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:8,class:"settingRow",onClick:e[7]||(e[7]=(...d)=>i.logoutAccount&&i.logoutAccount(...d))},[s.createElementVNode("div",mc,[s.createElementVNode("img",{src:n.getIcon("logout-red.svg"),class:"withBackground"},null,8,fc),s.createElementVNode("h4",gc,s.toDisplayString(n.ssoLang[n.appLanguage].logout),1),s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,_c)])])),s.createElementVNode("div",yc,[s.createElementVNode("p",vc,s.toDisplayString(n.ssoLang[n.appLanguage].version)+": "+s.toDisplayString(i.appVersion),1),s.createCommentVNode("",!0)])])])}const Hr=lt(Ks,[["render",wc]]),bc=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"})),kc={name:"AuthRegister",mixins:[Po,Mo,di,et],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{usernameRegister:!1,loading:!0,submitted:!1,formButtonText:"REGISTER",username:"",email:"",password:"",revealPassword:!1,emailLogin:!0,invitationCode:"",referral:""}},mounted(){this.isModal||(this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&J.$emit("ssoEvent",{name:"setLoading",data:!1}),this.invitationCode=this.$route.query.ic||"",this.$route.query.username&&(this.usernameRegister=!0,this.emailLogin=!0,this.username=this.$route.query.username),this.$route.query.ref?this.referral=this.$route.query.ref:this.$storex.referral&&(this.referral=this.$storex.referral))},methods:{async submit(){if(this.password.length<8)return this.errorSnack(this.ssoLang[this.appLanguage].password_8_chars);if(this.password.search(/[a-z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_lowercase);if(this.password.search(/[A-Z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_uppercase);if(this.password.search(/[0-9]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_number);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.username=this.username.trim();let n={response_type:this.response_type,email:this.email,username:this.username,password:this.password,ic:this.invitationCode,captchaToken:await this.getCaptchaToken("account_verify"),ref:this.referral},e=await this.register(n);this.submitted=!1,e.data&&e.data.success&&(e.data.message==="SUCCESS_REGISTER"?(this.isModal?J.$emit("ssoEvent",{name:"toggleAddAccountModalVerify",data:!1}):this.$router.push("/verify"),this.successSnack(this.ssoLang[this.appLanguage].register_success),this.formButtonText=this.ssoLang[this.appLanguage].check_your_inbox):e.data.message==="SUCCESS_LOGIN"&&(this.display!=="popup"&&(await this.loginSetup({...e,isModal:n.isModal}),await this.getLoggedInAccounts()),await this.loginSuccess({...e,isModal:n.isModal})))},close(){J.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},loginAccountModal(){J.$emit("ssoEvent",{name:"toggleAddAccountModalLogin",data:!1})}},watch:{email(n){this.$storex.verifyEmail=n},referral(n){this.$storex.referral=n}}},Ec={class:"bold no-bottom center-text text-[24px]",style:{"margin-top":"63px"}},Cc={class:"half-bottom small-top center-text color-black"},Tc={key:0},Sc={key:1},Ic={class:"page-login-field half-top"},Ac=["placeholder"],Rc={class:"page-login-field half-top"},Nc=["placeholder","disabled"],Pc={class:"page-login-field half-top half-bottom"},Mc=["type","placeholder"],Lc={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Oc={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},xc={type:"submit",class:"button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"},Bc={key:0},zc={key:1,class:"button--loading button__loader"},Uc={key:0},Dc={key:1,class:"button--loading-black button__loader"},Fc={key:0},jc={key:1,class:"button--loading-black button__loader"},qc={class:"close-text center-text half-top color-black"},Vc={class:"",href:"https://tapni.co/policies/terms-of-service"},Hc={href:"https://tapni.co/policies/privacy-policy"},Kc={key:4,class:"page-login-links"},Gc={class:"forgot center-text pointer small-top"};function $c(n,e,t,r,o,i){const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[11]||(e[11]=s.withModifiers((...d)=>i.submit&&i.submit(...d),["prevent"])),autocomplete:"on",style:s.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(s.openBlock(),s.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...d)=>i.close&&i.close(...d)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},[...e[12]||(e[12]=[s.createElementVNode("i",{class:"font-17 color-black"},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)])])):s.createCommentVNode("",!0),s.createElementVNode("h1",Ec,s.toDisplayString(n.ssoLang[this.appLanguage].register),1),s.createElementVNode("p",Cc,[o.usernameRegister?(s.openBlock(),s.createElementBlock("span",Tc,[s.createTextVNode(" t.link/"+s.toDisplayString(o.username)+" "+s.toDisplayString(n.ssoLang[this.appLanguage].username_is_free)+" ✅ ",1),e[13]||(e[13]=s.createElementVNode("br",null,null,-1))])):s.createCommentVNode("",!0)]),o.emailLogin?(s.openBlock(),s.createElementBlock("span",Sc,[s.createElementVNode("div",Ic,[e[14]||(e[14]=s.createElementVNode("i",{style:{"padding-top":"15px"}},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"60%"}})],-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=d=>o.email=d),onKeydown:e[2]||(e[2]=s.withKeys(s.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,name:"email",required:""},null,40,Ac),[[s.vModelText,o.email]]),e[15]||(e[15]=s.createElementVNode("em",null,null,-1))]),s.createElementVNode("div",Rc,[e[16]||(e[16]=s.createElementVNode("i",{style:{"padding-top":"15px"}},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=d=>o.username=d),onKeydown:e[4]||(e[4]=s.withKeys(s.withModifiers(()=>{},["prevent"]),["space"])),type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",placeholder:n.ssoLang[this.appLanguage].username,name:"username",required:"",disabled:o.usernameRegister,class:s.normalizeClass({"input-disabled":o.usernameRegister})},null,42,Nc),[[s.vModelText,o.username]]),e[17]||(e[17]=s.createElementVNode("em",null,null,-1))]),s.createElementVNode("div",Pc,[e[18]||(e[18]=s.createElementVNode("i",{style:{"padding-top":"15px"}},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":e[5]||(e[5]=d=>o.password=d),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Mc),[[s.vModelDynamic,o.password]]),s.createElementVNode("em",{onClick:e[6]||(e[6]=d=>o.revealPassword=!o.revealPassword),class:"pointer"},[s.withDirectives(s.createElementVNode("img",Lc,null,512),[[s.vShow,!o.revealPassword]]),s.withDirectives(s.createElementVNode("img",Oc,null,512),[[s.vShow,o.revealPassword]])])]),s.createElementVNode("button",xc,[o.submitted?(s.openBlock(),s.createElementBlock("span",zc)):(s.openBlock(),s.createElementBlock("span",Bc,s.toDisplayString(o.formButtonText),1))])])):s.createCommentVNode("",!0),e[26]||(e[26]=s.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1)),n.displayAppleLogin?(s.openBlock(),s.createElementBlock("a",{key:2,onClick:e[7]||(e[7]=(...d)=>n.appleLogin&&n.appleLogin(...d)),class:"button-center button button-90 google-button pointer"},[e[19]||(e[19]=s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),n.appleLoad?(s.openBlock(),s.createElementBlock("span",Dc)):(s.openBlock(),s.createElementBlock("span",Uc,s.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Apple",1))])):s.createCommentVNode("",!0),s.createElementVNode("a",{onClick:e[8]||(e[8]=(...d)=>n.googleLogin&&n.googleLogin(...d)),class:"button-center button button-90 google-button pointer"},[e[20]||(e[20]=s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-9px",padding:"8px 0",height:"100%"}},null,-1)),n.googleLoad?(s.openBlock(),s.createElementBlock("span",jc)):(s.openBlock(),s.createElementBlock("span",Fc,s.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Google",1))]),o.emailLogin?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("a",{key:3,onClick:e[9]||(e[9]=d=>o.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[e[21]||(e[21]=s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1)),s.createElementVNode("span",null,s.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Email",1)])),e[27]||(e[27]=s.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),s.createElementVNode("p",qc,[s.createTextVNode(s.toDisplayString(n.ssoLang[this.appLanguage].terms_by_registering)+" ",1),e[22]||(e[22]=s.createElementVNode("br",null,null,-1)),s.createElementVNode("a",Vc,s.toDisplayString(n.ssoLang[this.appLanguage].terms_of_service),1),s.createTextVNode(" "+s.toDisplayString(n.ssoLang[this.appLanguage].and)+" ",1),s.createElementVNode("a",Hc,s.toDisplayString(n.ssoLang[this.appLanguage].privacy_policy),1)]),e[28]||(e[28]=s.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),t.isModal?(s.openBlock(),s.createElementBlock("div",{key:5,class:"page-login-links",onClick:e[10]||(e[10]=(...d)=>i.loginAccountModal&&i.loginAccountModal(...d))},[s.createElementVNode("a",Gc,[s.createTextVNode(s.toDisplayString(n.ssoLang[this.appLanguage].or)+" ",1),e[24]||(e[24]=s.createElementVNode("br",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(n.ssoLang[this.appLanguage].sign_in_with_new),1)]),e[25]||(e[25]=s.createElementVNode("div",{class:"clear"},null,-1))])):(s.openBlock(),s.createElementBlock("div",Kc,[s.createVNode(l,{class:"create float-right",to:"/verify"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1)]),_:1}),s.createVNode(l,{class:"forgot float-left",to:"/login"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),e[23]||(e[23]=s.createElementVNode("div",{class:"clear"},null,-1))]))],36)}const Kr=lt(kc,[["render",$c]]),Qc=Object.freeze(Object.defineProperty({__proto__:null,default:Kr},Symbol.toStringTag,{value:"Module"})),Wc={name:"AuthVerify",mixins:[et],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,action:"verify",email:"",code:"",captcha:""}},mounted(){this.$storex.verifyEmail&&(this.email=this.$storex.verifyEmail),this.$route&&this.init()},methods:{init(){this.$storex.verifyEmail&&(this.email=this.$storex.verifyEmail),this.$route.hash==="#reset"&&(this.action="reset"),this.$route.query.e&&(this.email=this.$route.query.e),this.$route.query.c&&(this.code=this.$route.query.c),J.$emit("ssoEvent",{name:"setLoading",data:!1})},async submit(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);this.email=this.email.trim(),this.code=this.code.trim();let n={code:this.code,email:this.email,captchaToken:await this.getCaptchaToken("account_verify")};if(this.submitted)return!1;this.submitted=!0;let e=await this.verify(n);this.submitted=!1,e&&e.data&&e.data.success===!0?(this.action==="reset"&&(this.$router.push("/reset?c="+this.code+"&e="+this.email),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)),this.action==="verify"&&(this.isModal&&(this.email="",this.code="",J.$emit("closeModal")),await this.loginSetup(e),await this.getLoggedInAccounts(),this.$storex.verifyEmail="",this.$router.push("/"+e.data.data.username+"#edit"),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))):this.submitted=!1},registerAccountModal(){J.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:!1})},close(){J.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})}},watch:{"$storage.verifyEmail"(n){n&&(this.email=n)},"route.name"(n,e){!e&&n&&this.init()},"route.query":{handler(n){this.isEmpty(n)||this.init()},deep:!0}}},Yc={class:"bold no-bottom center-text text-[24px]",style:{"margin-top":"63px"}},Jc={class:"page-login-field half-top"},Xc=["placeholder"],Zc={class:"page-login-field half-top"},el=["placeholder"],tl={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},nl={key:0,class:"uppercase"},rl={key:1,class:"button--loading button__loader"},ol={class:"close-text center-text half-top color-black"},il=["innerHTML"],al={key:1,class:"page-login-links"},sl={key:2,class:"page-login-links"};function cl(n,e,t,r,o,i){const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[6]||(e[6]=s.withModifiers((...d)=>i.submit&&i.submit(...d),["prevent"])),style:s.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(s.openBlock(),s.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...d)=>i.close&&i.close(...d)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},[...e[7]||(e[7]=[s.createElementVNode("i",{class:"font-17 color-black"},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)])])):s.createCommentVNode("",!0),s.createElementVNode("h1",Yc,s.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1),e[16]||(e[16]=s.createElementVNode("p",{class:"half-bottom half-top center-text color-black"},null,-1)),s.createElementVNode("div",Jc,[e[8]||(e[8]=s.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),s.withDirectives(s.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":e[1]||(e[1]=d=>o.email=d),onKeydown:e[2]||(e[2]=s.withKeys(s.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,required:""},null,40,Xc),[[s.vModelText,o.email]]),e[9]||(e[9]=s.createElementVNode("em",null,null,-1))]),s.createElementVNode("div",Zc,[e[10]||(e[10]=s.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/password2.png",class:"responsive-image",style:{width:"100%"}})],-1)),s.withDirectives(s.createElementVNode("input",{id:"codeInput","onUpdate:modelValue":e[3]||(e[3]=d=>o.code=d),onKeydown:e[4]||(e[4]=s.withKeys(s.withModifiers(()=>{},["prevent"]),["space"])),type:"tel",placeholder:n.ssoLang[this.appLanguage].code,required:""},null,40,el),[[s.vModelText,o.code]]),e[11]||(e[11]=s.createElementVNode("em",null,null,-1))]),s.createElementVNode("button",tl,[o.submitted?(s.openBlock(),s.createElementBlock("span",rl)):(s.openBlock(),s.createElementBlock("span",nl,s.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1))]),e[17]||(e[17]=s.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),s.createElementVNode("p",ol,[s.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].verify_account_p1},null,8,il),e[12]||(e[12]=s.createElementVNode("a",{href:"mailto:support@tapni.com?subject=Email Verification"}," support@tapni.com",-1))]),e[18]||(e[18]=s.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),t.isModal?(s.openBlock(),s.createElementBlock("div",sl,[s.createElementVNode("a",{class:"forgot center-text pointer small-top",onClick:e[5]||(e[5]=s.withModifiers((...d)=>i.registerAccountModal&&i.registerAccountModal(...d),["prevent"]))},[s.createTextVNode(s.toDisplayString(n.ssoLang[this.appLanguage].or)+" ",1),e[14]||(e[14]=s.createElementVNode("br",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(n.ssoLang[this.appLanguage].create_new_account),1)]),e[15]||(e[15]=s.createElementVNode("div",{class:"clear"},null,-1))])):(s.openBlock(),s.createElementBlock("div",al,[s.createVNode(l,{class:"create float-right",to:"/register"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(n.ssoLang[this.appLanguage].register),1)]),_:1}),s.createVNode(l,{class:"forgot float-left",to:"/login"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),e[13]||(e[13]=s.createElementVNode("div",{class:"clear"},null,-1))]))],36)}const Gr=lt(Wc,[["render",cl],["__scopeId","data-v-96f72130"]]),ll=Object.freeze(Object.defineProperty({__proto__:null,default:Gr},Symbol.toStringTag,{value:"Module"}));var mi={},ur={};ur.byteLength=pl,ur.toByteArray=ml,ur.fromByteArray=_l;for(var Ft=[],wt=[],dl=typeof Uint8Array<"u"?Uint8Array:Array,$r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nn=0,ul=$r.length;Nn<ul;++Nn)Ft[Nn]=$r[Nn],wt[$r.charCodeAt(Nn)]=Nn;wt[45]=62,wt[95]=63;function fi(n){var e=n.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=n.indexOf("=");t===-1&&(t=e);var r=t===e?0:4-t%4;return[t,r]}function pl(n){var e=fi(n),t=e[0],r=e[1];return(t+r)*3/4-r}function hl(n,e,t){return(e+t)*3/4-t}function ml(n){var e,t=fi(n),r=t[0],o=t[1],i=new dl(hl(n,r,o)),l=0,d=o>0?r-4:r,h;for(h=0;h<d;h+=4)e=wt[n.charCodeAt(h)]<<18|wt[n.charCodeAt(h+1)]<<12|wt[n.charCodeAt(h+2)]<<6|wt[n.charCodeAt(h+3)],i[l++]=e>>16&255,i[l++]=e>>8&255,i[l++]=e&255;return o===2&&(e=wt[n.charCodeAt(h)]<<2|wt[n.charCodeAt(h+1)]>>4,i[l++]=e&255),o===1&&(e=wt[n.charCodeAt(h)]<<10|wt[n.charCodeAt(h+1)]<<4|wt[n.charCodeAt(h+2)]>>2,i[l++]=e>>8&255,i[l++]=e&255),i}function fl(n){return Ft[n>>18&63]+Ft[n>>12&63]+Ft[n>>6&63]+Ft[n&63]}function gl(n,e,t){for(var r,o=[],i=e;i<t;i+=3)r=(n[i]<<16&16711680)+(n[i+1]<<8&65280)+(n[i+2]&255),o.push(fl(r));return o.join("")}function _l(n){for(var e,t=n.length,r=t%3,o=[],i=16383,l=0,d=t-r;l<d;l+=i)o.push(gl(n,l,l+i>d?d:l+i));return r===1?(e=n[t-1],o.push(Ft[e>>2]+Ft[e<<4&63]+"==")):r===2&&(e=(n[t-2]<<8)+n[t-1],o.push(Ft[e>>10]+Ft[e>>4&63]+Ft[e<<2&63]+"=")),o.join("")}var Qr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Qr.read=function(n,e,t,r,o){var i,l,d=o*8-r-1,h=(1<<d)-1,f=h>>1,u=-7,y=t?o-1:0,_=t?-1:1,k=n[e+y];for(y+=_,i=k&(1<<-u)-1,k>>=-u,u+=d;u>0;i=i*256+n[e+y],y+=_,u-=8);for(l=i&(1<<-u)-1,i>>=-u,u+=r;u>0;l=l*256+n[e+y],y+=_,u-=8);if(i===0)i=1-f;else{if(i===h)return l?NaN:(k?-1:1)*(1/0);l=l+Math.pow(2,r),i=i-f}return(k?-1:1)*l*Math.pow(2,i-r)},Qr.write=function(n,e,t,r,o,i){var l,d,h,f=i*8-o-1,u=(1<<f)-1,y=u>>1,_=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=r?0:i-1,T=r?1:-1,O=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(d=isNaN(e)?1:0,l=u):(l=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-l))<1&&(l--,h*=2),l+y>=1?e+=_/h:e+=_*Math.pow(2,1-y),e*h>=2&&(l++,h/=2),l+y>=u?(d=0,l=u):l+y>=1?(d=(e*h-1)*Math.pow(2,o),l=l+y):(d=e*Math.pow(2,y-1)*Math.pow(2,o),l=0));o>=8;n[t+k]=d&255,k+=T,d/=256,o-=8);for(l=l<<o|d,f+=o;f>0;n[t+k]=l&255,k+=T,l/=256,f-=8);n[t+k-T]|=O*128};/*!
164
+ * The buffer module from node.js, for the browser.
165
+ *
166
+ * @author Feross Aboukhadijeh <https://feross.org>
167
+ * @license MIT
168
+ */(function(n){const e=ur,t=Qr,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=u,n.SlowBuffer=V,n.INSPECT_MAX_BYTES=50;const o=2147483647;n.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:l,SharedArrayBuffer:d}=globalThis;u.TYPED_ARRAY_SUPPORT=h(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function h(){try{const p=new i(1),a={foo:function(){return 42}};return Object.setPrototypeOf(a,i.prototype),Object.setPrototypeOf(p,a),p.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function f(p){if(p>o)throw new RangeError('The value "'+p+'" is invalid for option "size"');const a=new i(p);return Object.setPrototypeOf(a,u.prototype),a}function u(p,a,c){if(typeof p=="number"){if(typeof a=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return T(p)}return y(p,a,c)}u.poolSize=8192;function y(p,a,c){if(typeof p=="string")return O(p,a);if(l.isView(p))return F(p);if(p==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p);if(Ee(p,l)||p&&Ee(p.buffer,l)||typeof d<"u"&&(Ee(p,d)||p&&Ee(p.buffer,d)))return N(p,a,c);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const m=p.valueOf&&p.valueOf();if(m!=null&&m!==p)return u.from(m,a,c);const g=S(p);if(g)return g;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]=="function")return u.from(p[Symbol.toPrimitive]("string"),a,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p)}u.from=function(p,a,c){return y(p,a,c)},Object.setPrototypeOf(u.prototype,i.prototype),Object.setPrototypeOf(u,i);function _(p){if(typeof p!="number")throw new TypeError('"size" argument must be of type number');if(p<0)throw new RangeError('The value "'+p+'" is invalid for option "size"')}function k(p,a,c){return _(p),p<=0?f(p):a!==void 0?typeof c=="string"?f(p).fill(a,c):f(p).fill(a):f(p)}u.alloc=function(p,a,c){return k(p,a,c)};function T(p){return _(p),f(p<0?0:z(p)|0)}u.allocUnsafe=function(p){return T(p)},u.allocUnsafeSlow=function(p){return T(p)};function O(p,a){if((typeof a!="string"||a==="")&&(a="utf8"),!u.isEncoding(a))throw new TypeError("Unknown encoding: "+a);const c=G(p,a)|0;let m=f(c);const g=m.write(p,a);return g!==c&&(m=m.slice(0,g)),m}function M(p){const a=p.length<0?0:z(p.length)|0,c=f(a);for(let m=0;m<a;m+=1)c[m]=p[m]&255;return c}function F(p){if(Ee(p,i)){const a=new i(p);return N(a.buffer,a.byteOffset,a.byteLength)}return M(p)}function N(p,a,c){if(a<0||p.byteLength<a)throw new RangeError('"offset" is outside of buffer bounds');if(p.byteLength<a+(c||0))throw new RangeError('"length" is outside of buffer bounds');let m;return a===void 0&&c===void 0?m=new i(p):c===void 0?m=new i(p,a):m=new i(p,a,c),Object.setPrototypeOf(m,u.prototype),m}function S(p){if(u.isBuffer(p)){const a=z(p.length)|0,c=f(a);return c.length===0||p.copy(c,0,0,a),c}if(p.length!==void 0)return typeof p.length!="number"||Ge(p.length)?f(0):M(p);if(p.type==="Buffer"&&Array.isArray(p.data))return M(p.data)}function z(p){if(p>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return p|0}function V(p){return+p!=p&&(p=0),u.alloc(+p)}u.isBuffer=function(a){return a!=null&&a._isBuffer===!0&&a!==u.prototype},u.compare=function(a,c){if(Ee(a,i)&&(a=u.from(a,a.offset,a.byteLength)),Ee(c,i)&&(c=u.from(c,c.offset,c.byteLength)),!u.isBuffer(a)||!u.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===c)return 0;let m=a.length,g=c.length;for(let v=0,w=Math.min(m,g);v<w;++v)if(a[v]!==c[v]){m=a[v],g=c[v];break}return m<g?-1:g<m?1:0},u.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(a,c){if(!Array.isArray(a))throw new TypeError('"list" argument must be an Array of Buffers');if(a.length===0)return u.alloc(0);let m;if(c===void 0)for(c=0,m=0;m<a.length;++m)c+=a[m].length;const g=u.allocUnsafe(c);let v=0;for(m=0;m<a.length;++m){let w=a[m];if(Ee(w,i))v+w.length>g.length?(u.isBuffer(w)||(w=u.from(w)),w.copy(g,v)):i.prototype.set.call(g,w,v);else if(u.isBuffer(w))w.copy(g,v);else throw new TypeError('"list" argument must be an Array of Buffers');v+=w.length}return g};function G(p,a){if(u.isBuffer(p))return p.length;if(l.isView(p)||Ee(p,l))return p.byteLength;if(typeof p!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);const c=p.length,m=arguments.length>2&&arguments[2]===!0;if(!m&&c===0)return 0;let g=!1;for(;;)switch(a){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return Ze(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return Be(p).length;default:if(g)return m?-1:Ze(p).length;a=(""+a).toLowerCase(),g=!0}}u.byteLength=G;function Z(p,a,c){let m=!1;if((a===void 0||a<0)&&(a=0),a>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,a>>>=0,c<=a))return"";for(p||(p="utf8");;)switch(p){case"hex":return qt(this,a,c);case"utf8":case"utf-8":return mt(this,a,c);case"ascii":return jt(this,a,c);case"latin1":case"binary":return Yt(this,a,c);case"base64":return ht(this,a,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return an(this,a,c);default:if(m)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),m=!0}}u.prototype._isBuffer=!0;function A(p,a,c){const m=p[a];p[a]=p[c],p[c]=m}u.prototype.swap16=function(){const a=this.length;if(a%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let c=0;c<a;c+=2)A(this,c,c+1);return this},u.prototype.swap32=function(){const a=this.length;if(a%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let c=0;c<a;c+=4)A(this,c,c+3),A(this,c+1,c+2);return this},u.prototype.swap64=function(){const a=this.length;if(a%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let c=0;c<a;c+=8)A(this,c,c+7),A(this,c+1,c+6),A(this,c+2,c+5),A(this,c+3,c+4);return this},u.prototype.toString=function(){const a=this.length;return a===0?"":arguments.length===0?mt(this,0,a):Z.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(a){if(!u.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?!0:u.compare(this,a)===0},u.prototype.inspect=function(){let a="";const c=n.INSPECT_MAX_BYTES;return a=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(a+=" ... "),"<Buffer "+a+">"},r&&(u.prototype[r]=u.prototype.inspect),u.prototype.compare=function(a,c,m,g,v){if(Ee(a,i)&&(a=u.from(a,a.offset,a.byteLength)),!u.isBuffer(a))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof a);if(c===void 0&&(c=0),m===void 0&&(m=a?a.length:0),g===void 0&&(g=0),v===void 0&&(v=this.length),c<0||m>a.length||g<0||v>this.length)throw new RangeError("out of range index");if(g>=v&&c>=m)return 0;if(g>=v)return-1;if(c>=m)return 1;if(c>>>=0,m>>>=0,g>>>=0,v>>>=0,this===a)return 0;let w=v-g,H=m-c;const oe=Math.min(w,H),ne=this.slice(g,v),ie=a.slice(c,m);for(let ee=0;ee<oe;++ee)if(ne[ee]!==ie[ee]){w=ne[ee],H=ie[ee];break}return w<H?-1:H<w?1:0};function W(p,a,c,m,g){if(p.length===0)return-1;if(typeof c=="string"?(m=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,Ge(c)&&(c=g?0:p.length-1),c<0&&(c=p.length+c),c>=p.length){if(g)return-1;c=p.length-1}else if(c<0)if(g)c=0;else return-1;if(typeof a=="string"&&(a=u.from(a,m)),u.isBuffer(a))return a.length===0?-1:ae(p,a,c,m,g);if(typeof a=="number")return a=a&255,typeof i.prototype.indexOf=="function"?g?i.prototype.indexOf.call(p,a,c):i.prototype.lastIndexOf.call(p,a,c):ae(p,[a],c,m,g);throw new TypeError("val must be string, number or Buffer")}function ae(p,a,c,m,g){let v=1,w=p.length,H=a.length;if(m!==void 0&&(m=String(m).toLowerCase(),m==="ucs2"||m==="ucs-2"||m==="utf16le"||m==="utf-16le")){if(p.length<2||a.length<2)return-1;v=2,w/=2,H/=2,c/=2}function oe(ie,ee){return v===1?ie[ee]:ie.readUInt16BE(ee*v)}let ne;if(g){let ie=-1;for(ne=c;ne<w;ne++)if(oe(p,ne)===oe(a,ie===-1?0:ne-ie)){if(ie===-1&&(ie=ne),ne-ie+1===H)return ie*v}else ie!==-1&&(ne-=ne-ie),ie=-1}else for(c+H>w&&(c=w-H),ne=c;ne>=0;ne--){let ie=!0;for(let ee=0;ee<H;ee++)if(oe(p,ne+ee)!==oe(a,ee)){ie=!1;break}if(ie)return ne}return-1}u.prototype.includes=function(a,c,m){return this.indexOf(a,c,m)!==-1},u.prototype.indexOf=function(a,c,m){return W(this,a,c,m,!0)},u.prototype.lastIndexOf=function(a,c,m){return W(this,a,c,m,!1)};function re(p,a,c,m){c=Number(c)||0;const g=p.length-c;m?(m=Number(m),m>g&&(m=g)):m=g;const v=a.length;m>v/2&&(m=v/2);let w;for(w=0;w<m;++w){const H=parseInt(a.substr(w*2,2),16);if(Ge(H))return w;p[c+w]=H}return w}function we(p,a,c,m){return Ke(Ze(a,p.length-c),p,c,m)}function Re(p,a,c,m){return Ke(Jt(a),p,c,m)}function me(p,a,c,m){return Ke(Be(a),p,c,m)}function Le(p,a,c,m){return Ke(gt(a,p.length-c),p,c,m)}u.prototype.write=function(a,c,m,g){if(c===void 0)g="utf8",m=this.length,c=0;else if(m===void 0&&typeof c=="string")g=c,m=this.length,c=0;else if(isFinite(c))c=c>>>0,isFinite(m)?(m=m>>>0,g===void 0&&(g="utf8")):(g=m,m=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const v=this.length-c;if((m===void 0||m>v)&&(m=v),a.length>0&&(m<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");let w=!1;for(;;)switch(g){case"hex":return re(this,a,c,m);case"utf8":case"utf-8":return we(this,a,c,m);case"ascii":case"latin1":case"binary":return Re(this,a,c,m);case"base64":return me(this,a,c,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Le(this,a,c,m);default:if(w)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),w=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ht(p,a,c){return a===0&&c===p.length?e.fromByteArray(p):e.fromByteArray(p.slice(a,c))}function mt(p,a,c){c=Math.min(p.length,c);const m=[];let g=a;for(;g<c;){const v=p[g];let w=null,H=v>239?4:v>223?3:v>191?2:1;if(g+H<=c){let oe,ne,ie,ee;switch(H){case 1:v<128&&(w=v);break;case 2:oe=p[g+1],(oe&192)===128&&(ee=(v&31)<<6|oe&63,ee>127&&(w=ee));break;case 3:oe=p[g+1],ne=p[g+2],(oe&192)===128&&(ne&192)===128&&(ee=(v&15)<<12|(oe&63)<<6|ne&63,ee>2047&&(ee<55296||ee>57343)&&(w=ee));break;case 4:oe=p[g+1],ne=p[g+2],ie=p[g+3],(oe&192)===128&&(ne&192)===128&&(ie&192)===128&&(ee=(v&15)<<18|(oe&63)<<12|(ne&63)<<6|ie&63,ee>65535&&ee<1114112&&(w=ee))}}w===null?(w=65533,H=1):w>65535&&(w-=65536,m.push(w>>>10&1023|55296),w=56320|w&1023),m.push(w),g+=H}return Wt(m)}const Xe=4096;function Wt(p){const a=p.length;if(a<=Xe)return String.fromCharCode.apply(String,p);let c="",m=0;for(;m<a;)c+=String.fromCharCode.apply(String,p.slice(m,m+=Xe));return c}function jt(p,a,c){let m="";c=Math.min(p.length,c);for(let g=a;g<c;++g)m+=String.fromCharCode(p[g]&127);return m}function Yt(p,a,c){let m="";c=Math.min(p.length,c);for(let g=a;g<c;++g)m+=String.fromCharCode(p[g]);return m}function qt(p,a,c){const m=p.length;(!a||a<0)&&(a=0),(!c||c<0||c>m)&&(c=m);let g="";for(let v=a;v<c;++v)g+=Xt[p[v]];return g}function an(p,a,c){const m=p.slice(a,c);let g="";for(let v=0;v<m.length-1;v+=2)g+=String.fromCharCode(m[v]+m[v+1]*256);return g}u.prototype.slice=function(a,c){const m=this.length;a=~~a,c=c===void 0?m:~~c,a<0?(a+=m,a<0&&(a=0)):a>m&&(a=m),c<0?(c+=m,c<0&&(c=0)):c>m&&(c=m),c<a&&(c=a);const g=this.subarray(a,c);return Object.setPrototypeOf(g,u.prototype),g};function pe(p,a,c){if(p%1!==0||p<0)throw new RangeError("offset is not uint");if(p+a>c)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(a,c,m){a=a>>>0,c=c>>>0,m||pe(a,c,this.length);let g=this[a],v=1,w=0;for(;++w<c&&(v*=256);)g+=this[a+w]*v;return g},u.prototype.readUintBE=u.prototype.readUIntBE=function(a,c,m){a=a>>>0,c=c>>>0,m||pe(a,c,this.length);let g=this[a+--c],v=1;for(;c>0&&(v*=256);)g+=this[a+--c]*v;return g},u.prototype.readUint8=u.prototype.readUInt8=function(a,c){return a=a>>>0,c||pe(a,1,this.length),this[a]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(a,c){return a=a>>>0,c||pe(a,2,this.length),this[a]|this[a+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(a,c){return a=a>>>0,c||pe(a,2,this.length),this[a]<<8|this[a+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(a,c){return a=a>>>0,c||pe(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+this[a+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(a,c){return a=a>>>0,c||pe(a,4,this.length),this[a]*16777216+(this[a+1]<<16|this[a+2]<<8|this[a+3])},u.prototype.readBigUInt64LE=Ie(function(a){a=a>>>0,Ce(a,"offset");const c=this[a],m=this[a+7];(c===void 0||m===void 0)&&Fe(a,this.length-8);const g=c+this[++a]*2**8+this[++a]*2**16+this[++a]*2**24,v=this[++a]+this[++a]*2**8+this[++a]*2**16+m*2**24;return BigInt(g)+(BigInt(v)<<BigInt(32))}),u.prototype.readBigUInt64BE=Ie(function(a){a=a>>>0,Ce(a,"offset");const c=this[a],m=this[a+7];(c===void 0||m===void 0)&&Fe(a,this.length-8);const g=c*2**24+this[++a]*2**16+this[++a]*2**8+this[++a],v=this[++a]*2**24+this[++a]*2**16+this[++a]*2**8+m;return(BigInt(g)<<BigInt(32))+BigInt(v)}),u.prototype.readIntLE=function(a,c,m){a=a>>>0,c=c>>>0,m||pe(a,c,this.length);let g=this[a],v=1,w=0;for(;++w<c&&(v*=256);)g+=this[a+w]*v;return v*=128,g>=v&&(g-=Math.pow(2,8*c)),g},u.prototype.readIntBE=function(a,c,m){a=a>>>0,c=c>>>0,m||pe(a,c,this.length);let g=c,v=1,w=this[a+--g];for(;g>0&&(v*=256);)w+=this[a+--g]*v;return v*=128,w>=v&&(w-=Math.pow(2,8*c)),w},u.prototype.readInt8=function(a,c){return a=a>>>0,c||pe(a,1,this.length),this[a]&128?(255-this[a]+1)*-1:this[a]},u.prototype.readInt16LE=function(a,c){a=a>>>0,c||pe(a,2,this.length);const m=this[a]|this[a+1]<<8;return m&32768?m|4294901760:m},u.prototype.readInt16BE=function(a,c){a=a>>>0,c||pe(a,2,this.length);const m=this[a+1]|this[a]<<8;return m&32768?m|4294901760:m},u.prototype.readInt32LE=function(a,c){return a=a>>>0,c||pe(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},u.prototype.readInt32BE=function(a,c){return a=a>>>0,c||pe(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},u.prototype.readBigInt64LE=Ie(function(a){a=a>>>0,Ce(a,"offset");const c=this[a],m=this[a+7];(c===void 0||m===void 0)&&Fe(a,this.length-8);const g=this[a+4]+this[a+5]*2**8+this[a+6]*2**16+(m<<24);return(BigInt(g)<<BigInt(32))+BigInt(c+this[++a]*2**8+this[++a]*2**16+this[++a]*2**24)}),u.prototype.readBigInt64BE=Ie(function(a){a=a>>>0,Ce(a,"offset");const c=this[a],m=this[a+7];(c===void 0||m===void 0)&&Fe(a,this.length-8);const g=(c<<24)+this[++a]*2**16+this[++a]*2**8+this[++a];return(BigInt(g)<<BigInt(32))+BigInt(this[++a]*2**24+this[++a]*2**16+this[++a]*2**8+m)}),u.prototype.readFloatLE=function(a,c){return a=a>>>0,c||pe(a,4,this.length),t.read(this,a,!0,23,4)},u.prototype.readFloatBE=function(a,c){return a=a>>>0,c||pe(a,4,this.length),t.read(this,a,!1,23,4)},u.prototype.readDoubleLE=function(a,c){return a=a>>>0,c||pe(a,8,this.length),t.read(this,a,!0,52,8)},u.prototype.readDoubleBE=function(a,c){return a=a>>>0,c||pe(a,8,this.length),t.read(this,a,!1,52,8)};function fe(p,a,c,m,g,v){if(!u.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>g||a<v)throw new RangeError('"value" argument is out of bounds');if(c+m>p.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(a,c,m,g){if(a=+a,c=c>>>0,m=m>>>0,!g){const H=Math.pow(2,8*m)-1;fe(this,a,c,m,H,0)}let v=1,w=0;for(this[c]=a&255;++w<m&&(v*=256);)this[c+w]=a/v&255;return c+m},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(a,c,m,g){if(a=+a,c=c>>>0,m=m>>>0,!g){const H=Math.pow(2,8*m)-1;fe(this,a,c,m,H,0)}let v=m-1,w=1;for(this[c+v]=a&255;--v>=0&&(w*=256);)this[c+v]=a/w&255;return c+m},u.prototype.writeUint8=u.prototype.writeUInt8=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,1,255,0),this[c]=a&255,c+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,2,65535,0),this[c]=a&255,this[c+1]=a>>>8,c+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,2,65535,0),this[c]=a>>>8,this[c+1]=a&255,c+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,4,4294967295,0),this[c+3]=a>>>24,this[c+2]=a>>>16,this[c+1]=a>>>8,this[c]=a&255,c+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,4,4294967295,0),this[c]=a>>>24,this[c+1]=a>>>16,this[c+2]=a>>>8,this[c+3]=a&255,c+4};function bt(p,a,c,m,g){De(a,m,g,p,c,7);let v=Number(a&BigInt(4294967295));p[c++]=v,v=v>>8,p[c++]=v,v=v>>8,p[c++]=v,v=v>>8,p[c++]=v;let w=Number(a>>BigInt(32)&BigInt(4294967295));return p[c++]=w,w=w>>8,p[c++]=w,w=w>>8,p[c++]=w,w=w>>8,p[c++]=w,c}function xe(p,a,c,m,g){De(a,m,g,p,c,7);let v=Number(a&BigInt(4294967295));p[c+7]=v,v=v>>8,p[c+6]=v,v=v>>8,p[c+5]=v,v=v>>8,p[c+4]=v;let w=Number(a>>BigInt(32)&BigInt(4294967295));return p[c+3]=w,w=w>>8,p[c+2]=w,w=w>>8,p[c+1]=w,w=w>>8,p[c]=w,c+8}u.prototype.writeBigUInt64LE=Ie(function(a,c=0){return bt(this,a,c,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Ie(function(a,c=0){return xe(this,a,c,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(a,c,m,g){if(a=+a,c=c>>>0,!g){const oe=Math.pow(2,8*m-1);fe(this,a,c,m,oe-1,-oe)}let v=0,w=1,H=0;for(this[c]=a&255;++v<m&&(w*=256);)a<0&&H===0&&this[c+v-1]!==0&&(H=1),this[c+v]=(a/w>>0)-H&255;return c+m},u.prototype.writeIntBE=function(a,c,m,g){if(a=+a,c=c>>>0,!g){const oe=Math.pow(2,8*m-1);fe(this,a,c,m,oe-1,-oe)}let v=m-1,w=1,H=0;for(this[c+v]=a&255;--v>=0&&(w*=256);)a<0&&H===0&&this[c+v+1]!==0&&(H=1),this[c+v]=(a/w>>0)-H&255;return c+m},u.prototype.writeInt8=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,1,127,-128),a<0&&(a=255+a+1),this[c]=a&255,c+1},u.prototype.writeInt16LE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,2,32767,-32768),this[c]=a&255,this[c+1]=a>>>8,c+2},u.prototype.writeInt16BE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,2,32767,-32768),this[c]=a>>>8,this[c+1]=a&255,c+2},u.prototype.writeInt32LE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,4,2147483647,-2147483648),this[c]=a&255,this[c+1]=a>>>8,this[c+2]=a>>>16,this[c+3]=a>>>24,c+4},u.prototype.writeInt32BE=function(a,c,m){return a=+a,c=c>>>0,m||fe(this,a,c,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),this[c]=a>>>24,this[c+1]=a>>>16,this[c+2]=a>>>8,this[c+3]=a&255,c+4},u.prototype.writeBigInt64LE=Ie(function(a,c=0){return bt(this,a,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Ie(function(a,c=0){return xe(this,a,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ne(p,a,c,m,g,v){if(c+m>p.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function ft(p,a,c,m,g){return a=+a,c=c>>>0,g||Ne(p,a,c,4),t.write(p,a,c,m,23,4),c+4}u.prototype.writeFloatLE=function(a,c,m){return ft(this,a,c,!0,m)},u.prototype.writeFloatBE=function(a,c,m){return ft(this,a,c,!1,m)};function at(p,a,c,m,g){return a=+a,c=c>>>0,g||Ne(p,a,c,8),t.write(p,a,c,m,52,8),c+8}u.prototype.writeDoubleLE=function(a,c,m){return at(this,a,c,!0,m)},u.prototype.writeDoubleBE=function(a,c,m){return at(this,a,c,!1,m)},u.prototype.copy=function(a,c,m,g){if(!u.isBuffer(a))throw new TypeError("argument should be a Buffer");if(m||(m=0),!g&&g!==0&&(g=this.length),c>=a.length&&(c=a.length),c||(c=0),g>0&&g<m&&(g=m),g===m||a.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(m<0||m>=this.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),a.length-c<g-m&&(g=a.length-c+m);const v=g-m;return this===a&&typeof i.prototype.copyWithin=="function"?this.copyWithin(c,m,g):i.prototype.set.call(a,this.subarray(m,g),c),v},u.prototype.fill=function(a,c,m,g){if(typeof a=="string"){if(typeof c=="string"?(g=c,c=0,m=this.length):typeof m=="string"&&(g=m,m=this.length),g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!u.isEncoding(g))throw new TypeError("Unknown encoding: "+g);if(a.length===1){const w=a.charCodeAt(0);(g==="utf8"&&w<128||g==="latin1")&&(a=w)}}else typeof a=="number"?a=a&255:typeof a=="boolean"&&(a=Number(a));if(c<0||this.length<c||this.length<m)throw new RangeError("Out of range index");if(m<=c)return this;c=c>>>0,m=m===void 0?this.length:m>>>0,a||(a=0);let v;if(typeof a=="number")for(v=c;v<m;++v)this[v]=a;else{const w=u.isBuffer(a)?a:u.from(a,g),H=w.length;if(H===0)throw new TypeError('The value "'+a+'" is invalid for argument "value"');for(v=0;v<m-c;++v)this[v+c]=w[v%H]}return this};const Pe={};function He(p,a,c){Pe[p]=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:a.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${p}]`,this.stack,delete this.name}get code(){return p}set code(g){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:g,writable:!0})}toString(){return`${this.name} [${p}]: ${this.message}`}}}He("ERR_BUFFER_OUT_OF_BOUNDS",function(p){return p?`${p} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),He("ERR_INVALID_ARG_TYPE",function(p,a){return`The "${p}" argument must be of type number. Received type ${typeof a}`},TypeError),He("ERR_OUT_OF_RANGE",function(p,a,c){let m=`The value of "${p}" is out of range.`,g=c;return Number.isInteger(c)&&Math.abs(c)>2**32?g=kt(String(c)):typeof c=="bigint"&&(g=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(g=kt(g)),g+="n"),m+=` It must be ${a}. Received ${g}`,m},RangeError);function kt(p){let a="",c=p.length;const m=p[0]==="-"?1:0;for(;c>=m+4;c-=3)a=`_${p.slice(c-3,c)}${a}`;return`${p.slice(0,c)}${a}`}function Et(p,a,c){Ce(a,"offset"),(p[a]===void 0||p[a+c]===void 0)&&Fe(a,p.length-(c+1))}function De(p,a,c,m,g,v){if(p>c||p<a){const w=typeof a=="bigint"?"n":"";let H;throw a===0||a===BigInt(0)?H=`>= 0${w} and < 2${w} ** ${(v+1)*8}${w}`:H=`>= -(2${w} ** ${(v+1)*8-1}${w}) and < 2 ** ${(v+1)*8-1}${w}`,new Pe.ERR_OUT_OF_RANGE("value",H,p)}Et(m,g,v)}function Ce(p,a){if(typeof p!="number")throw new Pe.ERR_INVALID_ARG_TYPE(a,"number",p)}function Fe(p,a,c){throw Math.floor(p)!==p?(Ce(p,c),new Pe.ERR_OUT_OF_RANGE("offset","an integer",p)):a<0?new Pe.ERR_BUFFER_OUT_OF_BOUNDS:new Pe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${a}`,p)}const Ct=/[^+/0-9A-Za-z-_]/g;function Tt(p){if(p=p.split("=")[0],p=p.trim().replace(Ct,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function Ze(p,a){a=a||1/0;let c;const m=p.length;let g=null;const v=[];for(let w=0;w<m;++w){if(c=p.charCodeAt(w),c>55295&&c<57344){if(!g){if(c>56319){(a-=3)>-1&&v.push(239,191,189);continue}else if(w+1===m){(a-=3)>-1&&v.push(239,191,189);continue}g=c;continue}if(c<56320){(a-=3)>-1&&v.push(239,191,189),g=c;continue}c=(g-55296<<10|c-56320)+65536}else g&&(a-=3)>-1&&v.push(239,191,189);if(g=null,c<128){if((a-=1)<0)break;v.push(c)}else if(c<2048){if((a-=2)<0)break;v.push(c>>6|192,c&63|128)}else if(c<65536){if((a-=3)<0)break;v.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((a-=4)<0)break;v.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return v}function Jt(p){const a=[];for(let c=0;c<p.length;++c)a.push(p.charCodeAt(c)&255);return a}function gt(p,a){let c,m,g;const v=[];for(let w=0;w<p.length&&!((a-=2)<0);++w)c=p.charCodeAt(w),m=c>>8,g=c%256,v.push(g),v.push(m);return v}function Be(p){return e.toByteArray(Tt(p))}function Ke(p,a,c,m){let g;for(g=0;g<m&&!(g+c>=a.length||g>=p.length);++g)a[g+c]=p[g];return g}function Ee(p,a){return p instanceof a||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===a.name}function Ge(p){return p!==p}const Xt=function(){const p="0123456789abcdef",a=new Array(256);for(let c=0;c<16;++c){const m=c*16;for(let g=0;g<16;++g)a[m+g]=p[c]+p[g]}return a}();function Ie(p){return typeof BigInt>"u"?St:p}function St(){throw new Error("BigInt not supported")}})(mi);const fn=mi.Buffer;var gi={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(window,function(){return function(t){var r={};function o(i){if(r[i])return r[i].exports;var l=r[i]={i,l:!1,exports:{}};return t[i].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=t,o.c=r,o.d=function(i,l,d){o.o(i,l)||Object.defineProperty(i,l,{enumerable:!0,get:d})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,l){if(1&l&&(i=o(i)),8&l||4&l&&typeof i=="object"&&i&&i.__esModule)return i;var d=Object.create(null);if(o.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:i}),2&l&&typeof i!="string")for(var h in i)o.d(d,h,(function(f){return i[f]}).bind(null,h));return d},o.n=function(i){var l=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(l,"a",l),l},o.o=function(i,l){return Object.prototype.hasOwnProperty.call(i,l)},o.p="",o(o.s=12)}([function(t,r,o){var i;t.exports=(i=i||function(l,d){var h=Object.create||function(){function S(){}return function(z){var V;return S.prototype=z,V=new S,S.prototype=null,V}}(),f={},u=f.lib={},y=u.Base={extend:function(S){var z=h(this);return S&&z.mixIn(S),z.hasOwnProperty("init")&&this.init!==z.init||(z.init=function(){z.$super.init.apply(this,arguments)}),z.init.prototype=z,z.$super=this,z},create:function(){var S=this.extend();return S.init.apply(S,arguments),S},init:function(){},mixIn:function(S){for(var z in S)S.hasOwnProperty(z)&&(this[z]=S[z]);S.hasOwnProperty("toString")&&(this.toString=S.toString)},clone:function(){return this.init.prototype.extend(this)}},_=u.WordArray=y.extend({init:function(S,z){S=this.words=S||[],this.sigBytes=z??4*S.length},toString:function(S){return(S||T).stringify(this)},concat:function(S){var z=this.words,V=S.words,G=this.sigBytes,Z=S.sigBytes;if(this.clamp(),G%4)for(var A=0;A<Z;A++){var W=V[A>>>2]>>>24-A%4*8&255;z[G+A>>>2]|=W<<24-(G+A)%4*8}else for(A=0;A<Z;A+=4)z[G+A>>>2]=V[A>>>2];return this.sigBytes+=Z,this},clamp:function(){var S=this.words,z=this.sigBytes;S[z>>>2]&=4294967295<<32-z%4*8,S.length=l.ceil(z/4)},clone:function(){var S=y.clone.call(this);return S.words=this.words.slice(0),S},random:function(S){for(var z,V=[],G=function(W){W=W;var ae=987654321,re=4294967295;return function(){var we=((ae=36969*(65535&ae)+(ae>>16)&re)<<16)+(W=18e3*(65535&W)+(W>>16)&re)&re;return we/=4294967296,(we+=.5)*(l.random()>.5?1:-1)}},Z=0;Z<S;Z+=4){var A=G(4294967296*(z||l.random()));z=987654071*A(),V.push(4294967296*A()|0)}return new _.init(V,S)}}),k=f.enc={},T=k.Hex={stringify:function(S){for(var z=S.words,V=S.sigBytes,G=[],Z=0;Z<V;Z++){var A=z[Z>>>2]>>>24-Z%4*8&255;G.push((A>>>4).toString(16)),G.push((15&A).toString(16))}return G.join("")},parse:function(S){for(var z=S.length,V=[],G=0;G<z;G+=2)V[G>>>3]|=parseInt(S.substr(G,2),16)<<24-G%8*4;return new _.init(V,z/2)}},O=k.Latin1={stringify:function(S){for(var z=S.words,V=S.sigBytes,G=[],Z=0;Z<V;Z++){var A=z[Z>>>2]>>>24-Z%4*8&255;G.push(String.fromCharCode(A))}return G.join("")},parse:function(S){for(var z=S.length,V=[],G=0;G<z;G++)V[G>>>2]|=(255&S.charCodeAt(G))<<24-G%4*8;return new _.init(V,z)}},M=k.Utf8={stringify:function(S){try{return decodeURIComponent(escape(O.stringify(S)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(S){return O.parse(unescape(encodeURIComponent(S)))}},F=u.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new _.init,this._nDataBytes=0},_append:function(S){typeof S=="string"&&(S=M.parse(S)),this._data.concat(S),this._nDataBytes+=S.sigBytes},_process:function(S){var z=this._data,V=z.words,G=z.sigBytes,Z=this.blockSize,A=G/(4*Z),W=(A=S?l.ceil(A):l.max((0|A)-this._minBufferSize,0))*Z,ae=l.min(4*W,G);if(W){for(var re=0;re<W;re+=Z)this._doProcessBlock(V,re);var we=V.splice(0,W);z.sigBytes-=ae}return new _.init(we,ae)},clone:function(){var S=y.clone.call(this);return S._data=this._data.clone(),S},_minBufferSize:0}),N=(u.Hasher=F.extend({cfg:y.extend(),init:function(S){this.cfg=this.cfg.extend(S),this.reset()},reset:function(){F.reset.call(this),this._doReset()},update:function(S){return this._append(S),this._process(),this},finalize:function(S){return S&&this._append(S),this._doFinalize()},blockSize:16,_createHelper:function(S){return function(z,V){return new S.init(V).finalize(z)}},_createHmacHelper:function(S){return function(z,V){return new N.HMAC.init(S,V).finalize(z)}}}),f.algo={});return f}(Math),i)},function(t,r,o){var i,l,d,h;t.exports=(i=o(0),d=(l=i).lib.Base,h=l.enc.Utf8,void(l.algo.HMAC=d.extend({init:function(f,u){f=this._hasher=new f.init,typeof u=="string"&&(u=h.parse(u));var y=f.blockSize,_=4*y;u.sigBytes>_&&(u=f.finalize(u)),u.clamp();for(var k=this._oKey=u.clone(),T=this._iKey=u.clone(),O=k.words,M=T.words,F=0;F<y;F++)O[F]^=1549556828,M[F]^=909522486;k.sigBytes=T.sigBytes=_,this.reset()},reset:function(){var f=this._hasher;f.reset(),f.update(this._iKey)},update:function(f){return this._hasher.update(f),this},finalize:function(f){var u=this._hasher,y=u.finalize(f);return u.reset(),u.finalize(this._oKey.clone().concat(y))}})))},function(t,r,o){var i;t.exports=(i=o(0),i.enc.Hex)},function(t,r,o){var i,l,d,h,f,u;t.exports=(u=o(0),l=(i=u).lib,d=l.Base,h=l.WordArray,(f=i.x64={}).Word=d.extend({init:function(y,_){this.high=y,this.low=_}}),f.WordArray=d.extend({init:function(y,_){y=this.words=y||[],this.sigBytes=_??8*y.length},toX32:function(){for(var y=this.words,_=y.length,k=[],T=0;T<_;T++){var O=y[T];k.push(O.high),k.push(O.low)}return h.create(k,this.sigBytes)},clone:function(){for(var y=d.clone.call(this),_=y.words=this.words.slice(0),k=_.length,T=0;T<k;T++)_[T]=_[T].clone();return y}}),u)},function(t,r,o){var i;t.exports=(i=o(0),o(9),o(1),i.HmacSHA1)},function(t,r,o){var i;t.exports=(i=o(0),o(10),o(1),i.HmacSHA256)},function(t,r,o){var i;t.exports=(i=o(0),o(3),o(11),o(1),i.HmacSHA512)},function(t,r){function o(i,l){var d=i.indexOf(l);if(d===-1)throw new Error("Invalid character found: "+l);return d}t.exports=function(i,l){var d;switch(l){case"RFC3548":case"RFC4648":d="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",i=i.replace(/=+$/,"");break;case"RFC4648-HEX":d="0123456789ABCDEFGHIJKLMNOPQRSTUV",i=i.replace(/=+$/,"");break;case"Crockford":d="0123456789ABCDEFGHJKMNPQRSTVWXYZ",i=i.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1");break;default:throw new Error("Unknown base32 variant: "+l)}for(var h=i.length,f=0,u=0,y=0,_=new Uint8Array(5*h/8|0),k=0;k<h;k++)u=u<<5|o(d,i[k]),(f+=5)>=8&&(_[y++]=u>>>f-8&255,f-=8);return _.buffer}},function(t,r){t.exports=function(o,i,l){var d,h;switch(l=l||{},i){case"RFC3548":case"RFC4648":d="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",h=!0;break;case"RFC4648-HEX":d="0123456789ABCDEFGHIJKLMNOPQRSTUV",h=!0;break;case"Crockford":d="0123456789ABCDEFGHJKMNPQRSTVWXYZ",h=!1;break;default:throw new Error("Unknown base32 variant: "+i)}for(var f=l.padding!==void 0?l.padding:h,u=o.byteLength,y=new Uint8Array(o),_=0,k=0,T="",O=0;O<u;O++)for(k=k<<8|y[O],_+=8;_>=5;)T+=d[k>>>_-5&31],_-=5;if(_>0&&(T+=d[k<<5-_&31]),f)for(;T.length%8!=0;)T+="=";return T}},function(t,r,o){var i,l,d,h,f,u,y,_;t.exports=(_=o(0),l=(i=_).lib,d=l.WordArray,h=l.Hasher,f=i.algo,u=[],y=f.SHA1=h.extend({_doReset:function(){this._hash=new d.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(k,T){for(var O=this._hash.words,M=O[0],F=O[1],N=O[2],S=O[3],z=O[4],V=0;V<80;V++){if(V<16)u[V]=0|k[T+V];else{var G=u[V-3]^u[V-8]^u[V-14]^u[V-16];u[V]=G<<1|G>>>31}var Z=(M<<5|M>>>27)+z+u[V];Z+=V<20?1518500249+(F&N|~F&S):V<40?1859775393+(F^N^S):V<60?(F&N|F&S|N&S)-1894007588:(F^N^S)-899497514,z=S,S=N,N=F<<30|F>>>2,F=M,M=Z}O[0]=O[0]+M|0,O[1]=O[1]+F|0,O[2]=O[2]+N|0,O[3]=O[3]+S|0,O[4]=O[4]+z|0},_doFinalize:function(){var k=this._data,T=k.words,O=8*this._nDataBytes,M=8*k.sigBytes;return T[M>>>5]|=128<<24-M%32,T[14+(M+64>>>9<<4)]=Math.floor(O/4294967296),T[15+(M+64>>>9<<4)]=O,k.sigBytes=4*T.length,this._process(),this._hash},clone:function(){var k=h.clone.call(this);return k._hash=this._hash.clone(),k}}),i.SHA1=h._createHelper(y),i.HmacSHA1=h._createHmacHelper(y),_.SHA1)},function(t,r,o){var i;t.exports=(i=o(0),function(l){var d=i,h=d.lib,f=h.WordArray,u=h.Hasher,y=d.algo,_=[],k=[];(function(){function M(z){for(var V=l.sqrt(z),G=2;G<=V;G++)if(!(z%G))return!1;return!0}function F(z){return 4294967296*(z-(0|z))|0}for(var N=2,S=0;S<64;)M(N)&&(S<8&&(_[S]=F(l.pow(N,.5))),k[S]=F(l.pow(N,1/3)),S++),N++})();var T=[],O=y.SHA256=u.extend({_doReset:function(){this._hash=new f.init(_.slice(0))},_doProcessBlock:function(M,F){for(var N=this._hash.words,S=N[0],z=N[1],V=N[2],G=N[3],Z=N[4],A=N[5],W=N[6],ae=N[7],re=0;re<64;re++){if(re<16)T[re]=0|M[F+re];else{var we=T[re-15],Re=(we<<25|we>>>7)^(we<<14|we>>>18)^we>>>3,me=T[re-2],Le=(me<<15|me>>>17)^(me<<13|me>>>19)^me>>>10;T[re]=Re+T[re-7]+Le+T[re-16]}var ht=S&z^S&V^z&V,mt=(S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22),Xe=ae+((Z<<26|Z>>>6)^(Z<<21|Z>>>11)^(Z<<7|Z>>>25))+(Z&A^~Z&W)+k[re]+T[re];ae=W,W=A,A=Z,Z=G+Xe|0,G=V,V=z,z=S,S=Xe+(mt+ht)|0}N[0]=N[0]+S|0,N[1]=N[1]+z|0,N[2]=N[2]+V|0,N[3]=N[3]+G|0,N[4]=N[4]+Z|0,N[5]=N[5]+A|0,N[6]=N[6]+W|0,N[7]=N[7]+ae|0},_doFinalize:function(){var M=this._data,F=M.words,N=8*this._nDataBytes,S=8*M.sigBytes;return F[S>>>5]|=128<<24-S%32,F[14+(S+64>>>9<<4)]=l.floor(N/4294967296),F[15+(S+64>>>9<<4)]=N,M.sigBytes=4*F.length,this._process(),this._hash},clone:function(){var M=u.clone.call(this);return M._hash=this._hash.clone(),M}});d.SHA256=u._createHelper(O),d.HmacSHA256=u._createHmacHelper(O)}(Math),i.SHA256)},function(t,r,o){var i;t.exports=(i=o(0),o(3),function(){var l=i,d=l.lib.Hasher,h=l.x64,f=h.Word,u=h.WordArray,y=l.algo;function _(){return f.create.apply(f,arguments)}var k=[_(1116352408,3609767458),_(1899447441,602891725),_(3049323471,3964484399),_(3921009573,2173295548),_(961987163,4081628472),_(1508970993,3053834265),_(2453635748,2937671579),_(2870763221,3664609560),_(3624381080,2734883394),_(310598401,1164996542),_(607225278,1323610764),_(1426881987,3590304994),_(1925078388,4068182383),_(2162078206,991336113),_(2614888103,633803317),_(3248222580,3479774868),_(3835390401,2666613458),_(4022224774,944711139),_(264347078,2341262773),_(604807628,2007800933),_(770255983,1495990901),_(1249150122,1856431235),_(1555081692,3175218132),_(1996064986,2198950837),_(2554220882,3999719339),_(2821834349,766784016),_(2952996808,2566594879),_(3210313671,3203337956),_(3336571891,1034457026),_(3584528711,2466948901),_(113926993,3758326383),_(338241895,168717936),_(666307205,1188179964),_(773529912,1546045734),_(1294757372,1522805485),_(1396182291,2643833823),_(1695183700,2343527390),_(1986661051,1014477480),_(2177026350,1206759142),_(2456956037,344077627),_(2730485921,1290863460),_(2820302411,3158454273),_(3259730800,3505952657),_(3345764771,106217008),_(3516065817,3606008344),_(3600352804,1432725776),_(4094571909,1467031594),_(275423344,851169720),_(430227734,3100823752),_(506948616,1363258195),_(659060556,3750685593),_(883997877,3785050280),_(958139571,3318307427),_(1322822218,3812723403),_(1537002063,2003034995),_(1747873779,3602036899),_(1955562222,1575990012),_(2024104815,1125592928),_(2227730452,2716904306),_(2361852424,442776044),_(2428436474,593698344),_(2756734187,3733110249),_(3204031479,2999351573),_(3329325298,3815920427),_(3391569614,3928383900),_(3515267271,566280711),_(3940187606,3454069534),_(4118630271,4000239992),_(116418474,1914138554),_(174292421,2731055270),_(289380356,3203993006),_(460393269,320620315),_(685471733,587496836),_(852142971,1086792851),_(1017036298,365543100),_(1126000580,2618297676),_(1288033470,3409855158),_(1501505948,4234509866),_(1607167915,987167468),_(1816402316,1246189591)],T=[];(function(){for(var M=0;M<80;M++)T[M]=_()})();var O=y.SHA512=d.extend({_doReset:function(){this._hash=new u.init([new f.init(1779033703,4089235720),new f.init(3144134277,2227873595),new f.init(1013904242,4271175723),new f.init(2773480762,1595750129),new f.init(1359893119,2917565137),new f.init(2600822924,725511199),new f.init(528734635,4215389547),new f.init(1541459225,327033209)])},_doProcessBlock:function(M,F){for(var N=this._hash.words,S=N[0],z=N[1],V=N[2],G=N[3],Z=N[4],A=N[5],W=N[6],ae=N[7],re=S.high,we=S.low,Re=z.high,me=z.low,Le=V.high,ht=V.low,mt=G.high,Xe=G.low,Wt=Z.high,jt=Z.low,Yt=A.high,qt=A.low,an=W.high,pe=W.low,fe=ae.high,bt=ae.low,xe=re,Ne=we,ft=Re,at=me,Pe=Le,He=ht,kt=mt,Et=Xe,De=Wt,Ce=jt,Fe=Yt,Ct=qt,Tt=an,Ze=pe,Jt=fe,gt=bt,Be=0;Be<80;Be++){var Ke=T[Be];if(Be<16)var Ee=Ke.high=0|M[F+2*Be],Ge=Ke.low=0|M[F+2*Be+1];else{var Xt=T[Be-15],Ie=Xt.high,St=Xt.low,p=(Ie>>>1|St<<31)^(Ie>>>8|St<<24)^Ie>>>7,a=(St>>>1|Ie<<31)^(St>>>8|Ie<<24)^(St>>>7|Ie<<25),c=T[Be-2],m=c.high,g=c.low,v=(m>>>19|g<<13)^(m<<3|g>>>29)^m>>>6,w=(g>>>19|m<<13)^(g<<3|m>>>29)^(g>>>6|m<<26),H=T[Be-7],oe=H.high,ne=H.low,ie=T[Be-16],ee=ie.high,hr=ie.low;Ee=(Ee=(Ee=p+oe+((Ge=a+ne)>>>0<a>>>0?1:0))+v+((Ge+=w)>>>0<w>>>0?1:0))+ee+((Ge+=hr)>>>0<hr>>>0?1:0),Ke.high=Ee,Ke.low=Ge}var Pt,to=De&Fe^~De&Tt,mr=Ce&Ct^~Ce&Ze,no=xe&ft^xe&Pe^ft&Pe,ro=Ne&at^Ne&He^at&He,fr=(xe>>>28|Ne<<4)^(xe<<30|Ne>>>2)^(xe<<25|Ne>>>7),gr=(Ne>>>28|xe<<4)^(Ne<<30|xe>>>2)^(Ne<<25|xe>>>7),oo=(De>>>14|Ce<<18)^(De>>>18|Ce<<14)^(De<<23|Ce>>>9),io=(Ce>>>14|De<<18)^(Ce>>>18|De<<14)^(Ce<<23|De>>>9),b=k[Be],E=b.high,I=b.low,R=Jt+oo+((Pt=gt+io)>>>0<gt>>>0?1:0),L=gr+ro;Jt=Tt,gt=Ze,Tt=Fe,Ze=Ct,Fe=De,Ct=Ce,De=kt+(R=(R=(R=R+to+((Pt+=mr)>>>0<mr>>>0?1:0))+E+((Pt+=I)>>>0<I>>>0?1:0))+Ee+((Pt+=Ge)>>>0<Ge>>>0?1:0))+((Ce=Et+Pt|0)>>>0<Et>>>0?1:0)|0,kt=Pe,Et=He,Pe=ft,He=at,ft=xe,at=Ne,xe=R+(fr+no+(L>>>0<gr>>>0?1:0))+((Ne=Pt+L|0)>>>0<Pt>>>0?1:0)|0}we=S.low=we+Ne,S.high=re+xe+(we>>>0<Ne>>>0?1:0),me=z.low=me+at,z.high=Re+ft+(me>>>0<at>>>0?1:0),ht=V.low=ht+He,V.high=Le+Pe+(ht>>>0<He>>>0?1:0),Xe=G.low=Xe+Et,G.high=mt+kt+(Xe>>>0<Et>>>0?1:0),jt=Z.low=jt+Ce,Z.high=Wt+De+(jt>>>0<Ce>>>0?1:0),qt=A.low=qt+Ct,A.high=Yt+Fe+(qt>>>0<Ct>>>0?1:0),pe=W.low=pe+Ze,W.high=an+Tt+(pe>>>0<Ze>>>0?1:0),bt=ae.low=bt+gt,ae.high=fe+Jt+(bt>>>0<gt>>>0?1:0)},_doFinalize:function(){var M=this._data,F=M.words,N=8*this._nDataBytes,S=8*M.sigBytes;return F[S>>>5]|=128<<24-S%32,F[30+(S+128>>>10<<5)]=Math.floor(N/4294967296),F[31+(S+128>>>10<<5)]=N,M.sigBytes=4*F.length,this._process(),this._hash.toX32()},clone:function(){var M=d.clone.call(this);return M._hash=this._hash.clone(),M},blockSize:32});l.SHA512=d._createHelper(O),l.HmacSHA512=d._createHmacHelper(O)}(),i.SHA512)},function(t,r,o){o.r(r);var i,l=o(0),d=o.n(l),h=o(4),f=o.n(h),u=o(5),y=o.n(u),_=o(6),k=o.n(_),T=o(2),O=o.n(T);function M(b,E){var I=Object.keys(b);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(b);E&&(R=R.filter(function(L){return Object.getOwnPropertyDescriptor(b,L).enumerable})),I.push.apply(I,R)}return I}function F(b){for(var E=1;E<arguments.length;E++){var I=arguments[E]!=null?arguments[E]:{};E%2?M(Object(I),!0).forEach(function(R){N(b,R,I[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(I)):M(Object(I)).forEach(function(R){Object.defineProperty(b,R,Object.getOwnPropertyDescriptor(I,R))})}return b}function N(b,E,I){return E in b?Object.defineProperty(b,E,{value:I,enumerable:!0,configurable:!0,writable:!0}):b[E]=I,b}function S(b,E){for(var I=0;I<E.length;I++){var R=E[I];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(b,R.key,R)}}function z(b){return Object.keys(b).map(function(E){return b[E]})}(function(b){b.SHA1="sha1",b.SHA256="sha256",b.SHA512="sha512"})(i||(i={}));var V,G=z(i);(function(b){b.ASCII="ascii",b.BASE64="base64",b.HEX="hex",b.LATIN1="latin1",b.UTF8="utf8"})(V||(V={}));var Z,A=z(V);(function(b){b.HOTP="hotp",b.TOTP="totp"})(Z||(Z={}));var W=z(Z),ae=function(){throw new Error("Please provide an options.createDigest implementation.")};function re(b){return/^(\d+)$/.test(b)}function we(b,E,I){if(b.length>=E)return b;var R=Array(E+1).join(I);return"".concat(R).concat(b).slice(-1*E)}function Re(b){var E="otpauth://".concat(b.type,"/{labelPrefix}:{accountName}?secret={secret}{query}"),I=[];if(W.indexOf(b.type)<0)throw new Error("Expecting options.type to be one of ".concat(W.join(", "),". Received ").concat(b.type,"."));if(b.type==="hotp"){if(b.counter==null||typeof b.counter!="number")throw new Error('Expecting options.counter to be a number when options.type is "hotp".');I.push("&counter=".concat(b.counter))}return b.type==="totp"&&b.step&&I.push("&period=".concat(b.step)),b.digits&&I.push("&digits=".concat(b.digits)),b.algorithm&&I.push("&algorithm=".concat(b.algorithm.toUpperCase())),b.issuer&&I.push("&issuer=".concat(encodeURIComponent(b.issuer))),E.replace("{labelPrefix}",encodeURIComponent(b.issuer||b.accountName)).replace("{accountName}",encodeURIComponent(b.accountName)).replace("{secret}",b.secret).replace("{query}",I.join(""))}function me(b){return(me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(b)}function Le(b,E){for(var I=0;I<E.length;I++){var R=E[I];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(b,R.key,R)}}function ht(b,E){return!E||me(E)!=="object"&&typeof E!="function"?function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(b):E}function mt(b){return(mt=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)})(b)}function Xe(b,E){return(Xe=Object.setPrototypeOf||function(I,R){return I.__proto__=R,I})(b,E)}function Wt(b,E){var I=Object.keys(b);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(b);E&&(R=R.filter(function(L){return Object.getOwnPropertyDescriptor(b,L).enumerable})),I.push.apply(I,R)}return I}function jt(b,E,I){return E in b?Object.defineProperty(b,E,{value:I,enumerable:!0,configurable:!0,writable:!0}):b[E]=I,b}function Yt(b){if(typeof b.createDigest!="function")throw new Error("Expecting options.createDigest to be a function.");if(typeof b.createHmacKey!="function")throw new Error("Expecting options.createHmacKey to be a function.");if(typeof b.digits!="number")throw new Error("Expecting options.digits to be a number.");if(!b.algorithm||G.indexOf(b.algorithm)<0)throw new Error("Expecting options.algorithm to be one of ".concat(G.join(", "),". Received ").concat(b.algorithm,"."));if(!b.encoding||A.indexOf(b.encoding)<0)throw new Error("Expecting options.encoding to be one of ".concat(A.join(", "),". Received ").concat(b.encoding,"."))}var qt=function(b,E,I){return fn.from(E,I).toString("hex")};function an(b){var E=function(I){for(var R=1;R<arguments.length;R++){var L=arguments[R]!=null?arguments[R]:{};R%2?Wt(Object(L),!0).forEach(function(j){jt(I,j,L[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(L)):Wt(Object(L)).forEach(function(j){Object.defineProperty(I,j,Object.getOwnPropertyDescriptor(L,j))})}return I}({},{algorithm:i.SHA1,createHmacKey:qt,createDigest:ae,digits:6,encoding:V.ASCII},{},b);return Yt(E),Object.freeze(E)}function pe(b,E,I){var R=function(j){return we(j.toString(16),16,"0")}(E),L=I.createHmacKey(I.algorithm,b,I.encoding);return I.createDigest(I.algorithm,L,R)}function fe(b,E,I){return function(R,L){var j=fn.from(R,"hex"),ye=15&j[j.length-1],st=((127&j[ye])<<24|(255&j[ye+1])<<16|(255&j[ye+2])<<8|255&j[ye+3])%Math.pow(10,L);return we(String(st),L,"0")}(I.digest||pe(b,E,I),I.digits)}function bt(b,E,I,R,L){return Re({algorithm:L.algorithm,digits:L.digits,type:Z.HOTP,accountName:b,counter:R,issuer:E,secret:I})}var xe=function(b){function E(){return function(L,j){if(!(L instanceof j))throw new TypeError("Cannot call a class as a function")}(this,E),ht(this,mt(E).apply(this,arguments))}var I,R;return function(L,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(j&&j.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),j&&Xe(L,j)}(E,b),I=E,(R=[{key:"create",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new E(L)}},{key:"allOptions",value:function(){return an(this.options)}},{key:"generate",value:function(L,j){return fe(L,j,this.allOptions())}},{key:"check",value:function(L,j,ye){return function(st,Vt,sn,ao){return!!re(st)&&st===fe(Vt,sn,ao)}(L,j,ye,this.allOptions())}},{key:"verify",value:function(L){if(me(L)!=="object")throw new Error("Expecting argument 0 of verify to be an object");return this.check(L.token,L.secret,L.counter)}},{key:"keyuri",value:function(L,j,ye,st){return bt(L,j,ye,st,this.allOptions())}}])&&Le(I.prototype,R),E}(function(){function b(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(L,j){if(!(L instanceof j))throw new TypeError("Cannot call a class as a function")})(this,b),this._defaultOptions=Object.freeze(F({},R)),this._options=Object.freeze({})}var E,I;return E=b,(I=[{key:"create",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new b(R)}},{key:"clone",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=this.create(F({},this._defaultOptions,{},R));return L.options=this._options,L}},{key:"allOptions",value:function(){return this.options}},{key:"resetOptions",value:function(){this._options=Object.freeze({})}},{key:"options",get:function(){return Object.freeze(F({},this._defaultOptions,{},this._options))},set:function(R){this._options=Object.freeze(F({},this._options,{},R))}}])&&S(E.prototype,I),b}());function Ne(b){return(Ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(b)}function ft(b,E){for(var I=0;I<E.length;I++){var R=E[I];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(b,R.key,R)}}function at(b,E){return!E||Ne(E)!=="object"&&typeof E!="function"?function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(b):E}function Pe(b){return(Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)})(b)}function He(b,E){return(He=Object.setPrototypeOf||function(I,R){return I.__proto__=R,I})(b,E)}function kt(b,E){var I=Object.keys(b);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(b);E&&(R=R.filter(function(L){return Object.getOwnPropertyDescriptor(b,L).enumerable})),I.push.apply(I,R)}return I}function Et(b){for(var E=1;E<arguments.length;E++){var I=arguments[E]!=null?arguments[E]:{};E%2?kt(Object(I),!0).forEach(function(R){De(b,R,I[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(I)):kt(Object(I)).forEach(function(R){Object.defineProperty(b,R,Object.getOwnPropertyDescriptor(I,R))})}return b}function De(b,E,I){return E in b?Object.defineProperty(b,E,{value:I,enumerable:!0,configurable:!0,writable:!0}):b[E]=I,b}function Ce(b,E){return function(I){if(Array.isArray(I))return I}(b)||function(I,R){if(Symbol.iterator in Object(I)||Object.prototype.toString.call(I)==="[object Arguments]"){var L=[],j=!0,ye=!1,st=void 0;try{for(var Vt,sn=I[Symbol.iterator]();!(j=(Vt=sn.next()).done)&&(L.push(Vt.value),!R||L.length!==R);j=!0);}catch(ao){ye=!0,st=ao}finally{try{j||sn.return==null||sn.return()}finally{if(ye)throw st}}return L}}(b,E)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Fe(b){if(typeof b=="number")return[Math.abs(b),Math.abs(b)];if(Array.isArray(b)){var E=Ce(b,2),I=E[0],R=E[1];if(typeof I=="number"&&typeof R=="number")return[Math.abs(I),Math.abs(R)]}throw new Error("Expecting options.window to be an number or [number, number].")}function Ct(b){if(Yt(b),Fe(b.window),typeof b.epoch!="number")throw new Error("Expecting options.epoch to be a number.");if(typeof b.step!="number")throw new Error("Expecting options.step to be a number.")}var Tt=function(b,E,I){var R=b.length,L=fn.from(b,E).toString("hex");if(R<I){var j=new Array(I-R+1).join(L);return fn.from(j,"hex").slice(0,I).toString("hex")}return L},Ze=function(b,E,I){switch(b){case i.SHA1:return Tt(E,I,20);case i.SHA256:return Tt(E,I,32);case i.SHA512:return Tt(E,I,64);default:throw new Error("Expecting algorithm to be one of ".concat(G.join(", "),". Received ").concat(b,"."))}};function Jt(b){var E=Et({},{algorithm:i.SHA1,createDigest:ae,createHmacKey:Ze,digits:6,encoding:V.ASCII,epoch:Date.now(),step:30,window:0},{},b);return Ct(E),Object.freeze(E)}function gt(b,E){var I,R;return fe(b,(I=E.epoch,R=E.step,Math.floor(I/R/1e3)),E)}function Be(b,E,I,R){var L=[];if(R===0)return L;for(var j=1;j<=R;j++){var ye=E*j*I;L.push(b+ye)}return L}function Ke(b,E,I){return!!re(b)&&b===gt(E,I)}function Ee(b,E,I,R){var L=null;return b.some(function(j,ye){return!!Ke(E,I,Et({},R,{epoch:j}))&&(L=ye+1,!0)}),L}function Ge(b,E,I){if(Ke(b,E,I))return 0;var R,L,j,ye,st,Vt=(R=I.epoch,L=I.step,j=I.window,ye=Fe(j),{past:Be(R,-1,st=1e3*L,ye[0]),future:Be(R,1,st,ye[1])}),sn=Ee(Vt.past,b,E,I);return sn!==null?-1*sn:Ee(Vt.future,b,E,I)}function Xt(b,E){return Math.floor(b/1e3)%E}function Ie(b,E,I,R){return Re({algorithm:R.algorithm,digits:R.digits,step:R.step,type:Z.TOTP,accountName:b,issuer:E,secret:I})}var St=function(b){function E(){return function(L,j){if(!(L instanceof j))throw new TypeError("Cannot call a class as a function")}(this,E),at(this,Pe(E).apply(this,arguments))}var I,R;return function(L,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(j&&j.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),j&&He(L,j)}(E,b),I=E,(R=[{key:"create",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new E(L)}},{key:"allOptions",value:function(){return Jt(this.options)}},{key:"generate",value:function(L){return gt(L,this.allOptions())}},{key:"checkDelta",value:function(L,j){return Ge(L,j,this.allOptions())}},{key:"check",value:function(L,j){return typeof this.checkDelta(L,j)=="number"}},{key:"verify",value:function(L){if(Ne(L)!=="object")throw new Error("Expecting argument 0 of verify to be an object");return this.check(L.token,L.secret)}},{key:"timeRemaining",value:function(){var L,j,ye=this.allOptions();return L=ye.epoch,(j=ye.step)-Xt(L,j)}},{key:"timeUsed",value:function(){var L=this.allOptions();return Xt(L.epoch,L.step)}},{key:"keyuri",value:function(L,j,ye){return Ie(L,j,ye,this.allOptions())}}])&&ft(I.prototype,R),E}(xe);function p(b){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(b)}function a(b,E){for(var I=0;I<E.length;I++){var R=E[I];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(b,R.key,R)}}function c(b,E){return!E||p(E)!=="object"&&typeof E!="function"?function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(b):E}function m(b){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)})(b)}function g(b,E){return(g=Object.setPrototypeOf||function(I,R){return I.__proto__=R,I})(b,E)}function v(b,E){var I=Object.keys(b);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(b);E&&(R=R.filter(function(L){return Object.getOwnPropertyDescriptor(b,L).enumerable})),I.push.apply(I,R)}return I}function w(b,E,I){return E in b?Object.defineProperty(b,E,{value:I,enumerable:!0,configurable:!0,writable:!0}):b[E]=I,b}function H(b){var E=function(I){for(var R=1;R<arguments.length;R++){var L=arguments[R]!=null?arguments[R]:{};R%2?v(Object(L),!0).forEach(function(j){w(I,j,L[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(L)):v(Object(L)).forEach(function(j){Object.defineProperty(I,j,Object.getOwnPropertyDescriptor(L,j))})}return I}({},{algorithm:i.SHA1,createDigest:ae,createHmacKey:Ze,digits:6,encoding:V.HEX,epoch:Date.now(),step:30,window:0},{},b);return function(I){if(Ct(I),typeof I.keyDecoder!="function")throw new Error("Expecting options.keyDecoder to be a function.");if(I.keyEncoder&&typeof I.keyEncoder!="function")throw new Error("Expecting options.keyEncoder to be a function.")}(E),Object.freeze(E)}function oe(b,E){return E.keyEncoder(b,E.encoding)}function ne(b,E){return E.keyDecoder(b,E.encoding)}function ie(b,E){return oe(E.createRandomBytes(b,E.encoding),E)}var ee=function(b){function E(){return function(L,j){if(!(L instanceof j))throw new TypeError("Cannot call a class as a function")}(this,E),c(this,m(E).apply(this,arguments))}var I,R;return function(L,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(j&&j.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),j&&g(L,j)}(E,b),I=E,(R=[{key:"create",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new E(L)}},{key:"allOptions",value:function(){return H(this.options)}},{key:"generate",value:function(L){return function(j,ye){return gt(ne(j,ye),ye)}(L,this.allOptions())}},{key:"checkDelta",value:function(L,j){return function(ye,st,Vt){return Ge(ye,ne(st,Vt),Vt)}(L,j,this.allOptions())}},{key:"encode",value:function(L){return oe(L,this.allOptions())}},{key:"decode",value:function(L){return ne(L,this.allOptions())}},{key:"generateSecret",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;return ie(L,this.allOptions())}}])&&a(I.prototype,R),E}(St),hr=d.a.lib.WordArray,Pt=function(b,E,I){var R=function(ye){switch(ye){case i.SHA1:return f.a;case i.SHA256:return y.a;case i.SHA512:return k.a;default:throw new Error("Expecting argument 0 to be one of ".concat(G.join(", "),". Received ").concat(ye,"."))}}(b),L=O.a.parse(I),j=O.a.parse(E);return String(R(L,j))},to=o(7),mr=o.n(to),no=o(8),ro=o.n(no);function fr(b){return(fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(b)}o.d(r,"hotp",function(){return gr}),o.d(r,"totp",function(){return oo}),o.d(r,"authenticator",function(){return io}),(typeof window>"u"?"undefined":fr(window))==="object"&&window.Buffer===void 0&&(window.Buffer=buffer.Buffer);var gr=new xe({createDigest:Pt}),oo=new St({createDigest:Pt}),io=new ee({createDigest:Pt,createRandomBytes:function(b,E){var I=hr.random(b);return fn.from(I.toString(),"hex").toString(E)},keyDecoder:function(b,E){var I=mr()(b.toUpperCase(),"RFC4648");return fn.from(I).toString(E)},keyEncoder:function(b,E){return ro()(fn.from(b,E),"RFC4648",{padding:!1})}})}])})})(gi);var _i=gi.exports;const yl={name:"AuthSecurity",mixins:[et],props:{payload:{type:Object,default:{}}},data(){return{accountDelete:!1,changePassword:!1,password:"",passwordRepeat:"",currentPassword:"",otpSecret:null,mfaEnable:!1,qrCodeHash:null,qrCodeRefreshInterval:null,poolingInterval:null,loading:!1}},async mounted(){this.isLoggedIn||this.$router.push("/login"),this.renderView==="AuthSecurity"&&(await this.getAccountSettings(),this.generateOTPQrCode())},methods:{close(){J.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})},async deleteAccountSubmit(){await this.deleteAccount()===!0&&(this.successSnack(this.ssoLang[this.appLanguage].profile_delete_account_success),setTimeout(this.$store.dispatch("logout"),1e3))},generateOTPQrCode(){const n=this.account.email;if(this.account.mfaEnabled)this.mfaEnable=!0;else{const e="Tapni",t=_i.authenticator.generateSecret();this.otpSecret=t;const r=_i.authenticator.keyuri(n,e,t);new lo({width:200,height:200,data:r}).append(document.getElementById("qrCodeContainer"))}},async cancelMFA(){J.$emit("ssoEvent",{name:"mfaCancel",data:!0})},async validateMFA(){if(!this.otp||this.otp.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);this.loading=!0;let n={otpToken:this.otp,otpSecret:this.otpSecret,enable:this.mfaEnable};this.mfaEnable||delete n.otpSecret;const[e,t]=await be($e.setMfa(n,this.$storex));if(e)return J.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(e);t.data.success&&(this.getAccountSettings(),this.successSnack(t.data.message)),this.loading=!1},async submitChangePassword(){if(this.password.length<8)return this.errorSnack(this.ssoLang[this.appLanguage].password_8_chars);if(this.password!==this.passwordRepeat)return this.errorSnack(this.ssoLang[this.appLanguage].password_not_match);await this.newPassword({currentPassword:this.currentPassword,password:this.password,passwordRepeat:this.passwordRepeat})===!0&&(this.successSnack(this.ssoLang[this.appLanguage].password_change_success),this.changePassword=!1)}}},vl={class:"page-login content-boxed content-boxed-padding"},wl={class:"subheaderContainer full-top"},bl=["src"],kl=["src"],El={class:"center-text",style:{"flex-grow":"1","text-align":"center",margin:"0","font-weight":"600"}},Cl={class:"container center-text"},Tl={class:"full-top"},Sl={class:"settingRow"},Il={class:"firstRow"},Al={class:"ios-switch",style:{display:"inline-block"}},Rl={class:"center-text half-top"},Nl={class:"firstRow"},Pl={class:"center-text no-margin"},Ml={class:"margin-center left-text padding-left small-top"},Ll={class:""},Ol=["placeholder"],xl=["innerHTML"],Bl={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top pointer"},zl={key:0},Ul={key:1,class:"button--loading button__loader"},Dl={class:"close-text center-text half-top"},Fl=["innerHTML"],jl={key:1,class:"margin-center small-top",style:{width:"100%"}},ql={class:"left-text"},Vl={key:0},Hl={key:1},Kl={class:"firstRow"},Gl=["src"],$l=["placeholder"],Ql={class:"small-text small-top-padding small-bottom"},Wl=["placeholder"],Yl={class:"small-text small-top-padding small-bottom"},Jl=["placeholder"],Xl={class:"small-text small-top-padding small-bottom"},Zl={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top pointer"},ed={key:0},td={key:1,class:"button--loading button__loader"},nd={class:"center-text font-13 half-top half-bottom"},rd=["innerHTML"],od={class:"firstRow"},id={class:"red-text"},ad=["src"],sd={class:"center-text half-top"},cd={class:"settingRow full-top"},ld={class:"firstRow"},dd={class:"ios-switch",style:{display:"inline-block"}},ud={class:"left-text small-top"},pd={type:"submit",class:"button black-button button-full google-button bg-tapni-grey button-90 button-center uppercase bold full-top pointer"},hd={key:0},md={key:1,class:"button--loading button__loader"},fd={class:"small-bottom red-text"};function gd(n,e,t,r,o,i){const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",vl,[n.isModal?(s.openBlock(),s.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...d)=>i.close&&i.close(...d)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},[...e[15]||(e[15]=[s.createElementVNode("i",{class:"font-17 color-black"},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)])])):s.createCommentVNode("",!0),s.createElementVNode("div",wl,[n.isModal?(s.openBlock(),s.createElementBlock("div",{key:0,class:"pointer left-button",onClick:e[1]||(e[1]=d=>n.$emit("update:viewProp","AuthAccount"))},[s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,bl)])):(s.openBlock(),s.createBlock(l,{key:1,to:"/account",class:"button gray-button pointer left-button"},{default:s.withCtx(()=>[s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,kl)]),_:1})),s.createElementVNode("h2",El,s.toDisplayString(n.ssoLang[n.appLanguage].security),1)]),s.createElementVNode("div",Cl,[s.createElementVNode("p",null,s.toDisplayString(n.ssoLang[n.appLanguage].security_p),1),s.createElementVNode("div",Tl,[s.createElementVNode("div",Sl,[s.createElementVNode("div",Il,[s.createElementVNode("h4",null,s.toDisplayString(n.ssoLang[n.appLanguage].mfa_auth),1),s.createElementVNode("div",Al,[s.withDirectives(s.createElementVNode("input",{type:"checkbox",name:"ios-switch",class:"ios-switch-checkbox",id:"mfa-open-switch","onUpdate:modelValue":e[2]||(e[2]=d=>o.mfaEnable=d)},null,512),[[s.vModelCheckbox,o.mfaEnable]]),e[16]||(e[16]=s.createElementVNode("label",{class:"ios-switch-label",for:"mfa-open-switch"},null,-1))])])]),s.withDirectives(s.createElementVNode("div",Rl,[e[17]||(e[17]=s.createElementVNode("div",{id:"qrCodeContainer",class:"qrCodeRounded",style:{"max-width":"100%"}},null,-1)),e[18]||(e[18]=s.createElementVNode("br",null,null,-1)),s.createElementVNode("div",{class:"settingRow",onClick:e[3]||(e[3]=d=>n.copy(o.otpSecret))},[s.createElementVNode("div",Nl,[s.createElementVNode("h4",Pl,s.toDisplayString(o.otpSecret),1)])]),s.createElementVNode("div",Ml,[s.createElementVNode("p",Ll,s.toDisplayString(n.ssoLang[n.appLanguage].mfa_auth_qr),1)])],512),[[s.vShow,o.mfaEnable&&!n.account.mfaEnabled]]),n.account.mfaEnabled!==o.mfaEnable?(s.openBlock(),s.createElementBlock("form",{key:0,onSubmit:e[6]||(e[6]=s.withModifiers((...d)=>i.validateMFA&&i.validateMFA(...d),["prevent"])),class:"half-top"},[s.createElementVNode("div",null,[s.withDirectives(s.createElementVNode("input",{type:"text","onUpdate:modelValue":e[4]||(e[4]=d=>n.otp=d),placeholder:n.ssoLang[n.appLanguage].otp_code,class:"edit-input h-40 lh-40",style:{margin:"0 auto",height:"25px",width:"100%"},required:"",onKeydown:e[5]||(e[5]=s.withKeys(s.withModifiers(()=>{},["prevent"]),["space"]))},null,40,Ol),[[s.vModelText,n.otp]]),s.createElementVNode("p",{class:"small-top full-bottom padding-left left-text",innerHTML:n.ssoLang[n.appLanguage].otp_subtitle},null,8,xl)]),s.createElementVNode("button",Bl,[o.loading?(s.openBlock(),s.createElementBlock("span",Ul)):(s.openBlock(),s.createElementBlock("span",zl,s.toDisplayString(n.ssoLang[n.appLanguage].continue),1))]),s.createElementVNode("p",Dl,[s.createElementVNode("span",{innerHTML:n.ssoLang[n.appLanguage].otp_p1},null,8,Fl),e[19]||(e[19]=s.createElementVNode("a",{href:"mailto:support@tapni.com?subject=MFA Authentication Problem"}," support@tapni.com",-1))])],32)):(s.openBlock(),s.createElementBlock("div",jl,[s.createElementVNode("div",ql,[o.mfaEnable?(s.openBlock(),s.createElementBlock("p",Vl,s.toDisplayString(n.ssoLang[n.appLanguage].mfa_auth_enabled),1)):(s.openBlock(),s.createElementBlock("p",Hl,s.toDisplayString(n.ssoLang[n.appLanguage].mfa_auth_p),1))])])),s.createElementVNode("div",{class:"settingRow full-top",onClick:e[7]||(e[7]=d=>o.changePassword=!o.changePassword)},[s.createElementVNode("div",Kl,[s.createElementVNode("h4",null,s.toDisplayString(n.ssoLang[n.appLanguage].change_password),1),s.createElementVNode("img",{class:s.normalizeClass(["transition-icon",{"rotate-icon":!!o.changePassword}]),src:n.getIcon("arrow-gray-down.svg")},null,10,Gl)])]),s.withDirectives(s.createElementVNode("form",{onSubmit:e[11]||(e[11]=s.withModifiers((...d)=>i.submitChangePassword&&i.submitChangePassword(...d),["prevent"])),class:"center-text half-top"},[s.withDirectives(s.createElementVNode("input",{type:"password","onUpdate:modelValue":e[8]||(e[8]=d=>o.currentPassword=d),placeholder:n.ssoLang[n.appLanguage].password_current_p,class:"edit-input h-40 lh-40",required:"",minlength:"8",style:{width:"100%"}},null,8,$l),[[s.vModelText,o.currentPassword]]),s.createElementVNode("p",Ql,s.toDisplayString(n.ssoLang[n.appLanguage].password_current),1),s.withDirectives(s.createElementVNode("input",{type:"password","onUpdate:modelValue":e[9]||(e[9]=d=>o.password=d),placeholder:n.ssoLang[n.appLanguage].password_new_p,class:"bg-white edit-input h-40 lh-40",required:"",minlength:"8",style:{width:"100%"}},null,8,Wl),[[s.vModelText,o.password]]),s.createElementVNode("p",Yl,s.toDisplayString(n.ssoLang[n.appLanguage].password_new),1),s.withDirectives(s.createElementVNode("input",{type:"password","onUpdate:modelValue":e[10]||(e[10]=d=>o.passwordRepeat=d),placeholder:n.ssoLang[n.appLanguage].password_new_repeat_p,class:"edit-input h-40 lh-40",required:"",minlength:"8",style:{width:"100%"}},null,8,Jl),[[s.vModelText,o.passwordRepeat]]),s.createElementVNode("p",Xl,s.toDisplayString(n.ssoLang[n.appLanguage].password_new_repeat),1),s.createElementVNode("button",Zl,[o.loading?(s.openBlock(),s.createElementBlock("span",td)):(s.openBlock(),s.createElementBlock("span",ed,s.toDisplayString(n.ssoLang[n.appLanguage].password_update),1))]),s.createElementVNode("p",nd,[s.createElementVNode("span",{innerHTML:n.ssoLang[n.appLanguage].password_reset},null,8,rd),s.createVNode(l,{to:"/reset",exact:"",class:"color-black"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(n.ssoLang[n.appLanguage].by_clicking_here),1)]),_:1})])],544),[[s.vShow,o.changePassword]]),s.createElementVNode("div",{class:"settingRow full-top",onClick:e[12]||(e[12]=d=>o.accountDelete=!o.accountDelete)},[s.createElementVNode("div",od,[s.createElementVNode("h4",id,s.toDisplayString(n.ssoLang[n.appLanguage].delete_account),1),s.createElementVNode("img",{class:s.normalizeClass(["transition-icon",{"rotate-icon":!!o.accountDelete}]),src:n.getIcon("arrow-gray-down.svg")},null,10,ad)])]),s.withDirectives(s.createElementVNode("div",sd,[s.createElementVNode("div",cd,[s.createElementVNode("div",ld,[s.createElementVNode("h4",null,s.toDisplayString(n.ssoLang[n.appLanguage].active_account),1),s.createElementVNode("div",dd,[s.withDirectives(s.createElementVNode("input",{type:"checkbox",name:"ios-switch",class:"ios-switch-checkbox",id:"active-open-switch","onUpdate:modelValue":e[13]||(e[13]=d=>n.account.is_active=d)},null,512),[[s.vModelCheckbox,n.account.is_active]]),e[20]||(e[20]=s.createElementVNode("label",{class:"ios-switch-label",for:"active-open-switch"},null,-1))])])]),s.createElementVNode("p",ud,s.toDisplayString(n.ssoLang[n.appLanguage].active_account_p),1),s.createElementVNode("form",{onSubmit:e[14]||(e[14]=s.withModifiers((...d)=>i.deleteAccountSubmit&&i.deleteAccountSubmit(...d),["prevent"]))},[s.createElementVNode("button",pd,[o.loading?(s.openBlock(),s.createElementBlock("span",md)):(s.openBlock(),s.createElementBlock("span",hd,s.toDisplayString(n.ssoLang[n.appLanguage].permanent_delete),1))]),s.createElementVNode("p",fd,s.toDisplayString(n.ssoLang[n.appLanguage].permanent_delete_p),1)],32)],512),[[s.vShow,o.accountDelete]])])])])}const Wr=lt(yl,[["render",gd],["__scopeId","data-v-64ae2517"]]),_d=Object.freeze(Object.defineProperty({__proto__:null,default:Wr},Symbol.toStringTag,{value:"Module"})),yd={name:"AuthBilling",mixins:[et],props:{payload:{type:Object,default:{}}},data(){return{loading:!1,subscriptions:[],showCancelModal:!1,selectedSubscription:null,cancelFeedback:""}},async mounted(){this.isLoggedIn||this.$router.push("/login"),await this.getAccountSettings(),this.loadSubscriptions()},methods:{close(){J.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})},loadSubscriptions(){if(this.account.billing){const n=this.account.billing,e=[];for(const t in n)t!=="region"&&t!=="currency"&&t!=="paymentProfiles"&&typeof n[t]=="object"&&n[t].subscriptionId&&e.push(n[t]);this.subscriptions=e}},formatCurrency(n,e){return`${{EUR:"€",USD:"$",GBP:"£"}[e==null?void 0:e.toUpperCase()]||e||""}${(n==null?void 0:n.toFixed(2))||"0.00"}`},formatInterval(n){return n?`per ${n}`:""},formatDate(n){return n?new Date(n*1e3).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):""},getStatusText(n){return{trialing:"Trial",active:"Active",past_due:"Past Due",canceled:"Canceled",unpaid:"Unpaid",expired:"Expired"}[n]||n},getStatusClass(n){return`status-${n}`},openCancelModal(n){this.selectedSubscription=n,this.showCancelModal=!0,this.cancelFeedback=""},closeCancelModal(){this.showCancelModal=!1,this.selectedSubscription=null,this.cancelFeedback=""},async confirmCancel(){var n,e;if(this.selectedSubscription){if(this.selectedSubscription.paymentGateway==="revenuecat"){J.$emit("ssoEvent",{name:"subscriptionCancelled",data:{subscriptionId:this.selectedSubscription.subscriptionId,paymentGateway:this.selectedSubscription.paymentGateway,feedback:this.cancelFeedback}}),this.closeCancelModal();return}this.loading=!0;try{const t=await he(!1,"v2").post("checkout/cancel/"+this.selectedSubscription.subscriptionId,{feedback:this.cancelFeedback});if(t.data.success)J.$emit("showToast",{type:"success",message:"Subscription canceled successfully"}),await this.getAccountSettings(),this.loadSubscriptions(),this.closeCancelModal();else throw new Error(t.data.message||"Failed to cancel subscription")}catch(t){console.error("Error canceling subscription:",t),J.$emit("showToast",{type:"error",message:((e=(n=t.response)==null?void 0:n.data)==null?void 0:e.message)||"Failed to cancel subscription. Please try again."})}finally{this.loading=!1}}},async resubscribe(n){var e,t,r,o;if(n!=null&&n.subscriptionId){if(n.paymentGateway==="revenuecat"){J.$emit("ssoEvent",{name:"resubscribe",data:{subscriptionId:n.subscriptionId,paymentGateway:n.paymentGateway}});return}this.loading=!0;try{const i=await he(!1,"v2").post("checkout/resubscribe/"+n.subscriptionId);if(i.data.success)J.$emit("showToast",{type:"success",message:i.data.message||"Subscription reactivated successfully"}),await this.getAccountSettings(),this.loadSubscriptions(),i.data.clientSecret&&J.$emit("ssoEvent",{name:"resubscribePaymentRequired",data:{clientSecret:i.data.clientSecret}});else throw new Error(i.data.message||"Failed to resubscribe")}catch(i){J.$emit("showToast",{type:"error",message:((t=(e=i.response)==null?void 0:e.data)==null?void 0:t.error)||((o=(r=i.response)==null?void 0:r.data)==null?void 0:o.message)||"Failed to resubscribe. Please try again."})}finally{this.loading=!1}}},async retryPayment(n){var e,t,r,o;if(n!=null&&n.subscriptionId){this.loading=!0;try{const l=(await he(!1,"v2").post("checkout/retry-payment/"+n.subscriptionId)).data;if(l.paid)J.$emit("showToast",{type:"success",message:l.message||"Payment successful"}),await this.getAccountSettings(),this.loadSubscriptions();else if(l.hostedInvoiceUrl)window.open(l.hostedInvoiceUrl,"_blank","noopener,noreferrer"),J.$emit("showToast",{type:"info",message:l.message||"Please complete payment in the opened window."});else throw new Error(l.message||"Payment could not be processed")}catch(i){J.$emit("showToast",{type:"error",message:((t=(e=i.response)==null?void 0:e.data)==null?void 0:t.error)||((o=(r=i.response)==null?void 0:r.data)==null?void 0:o.message)||"Failed to retry payment. Please try again."})}finally{this.loading=!1}}}}},vd={class:"page-login content-boxed content-boxed-padding tapni-auth-billing"},wd={class:"subheaderContainer full-top"},bd=["src"],kd=["src"],Ed={class:"center-text",style:{"flex-grow":"1","text-align":"center",margin:"0","font-weight":"600"}},Cd={class:"container left-text"},Td={class:"center-text"},Sd={class:"full-top"},Id={key:0,class:"no-subscriptions center-text full-top"},Ad={key:1},Rd={class:"subscription-header"},Nd={class:"subscription-info"},Pd={class:"subscription-name"},Md={class:"subscription-details"},Ld={class:"detail-row"},Od={class:"detail-value"},xd={class:"detail-row"},Bd={class:"detail-value"},zd={class:"detail-row"},Ud={class:"detail-value"},Dd={key:0,class:"detail-row"},Fd={class:"detail-value"},jd={key:1,class:"detail-row"},qd={class:"detail-value"},Vd={class:"subscription-actions"},Hd=["onClick","disabled"],Kd=["onClick","disabled"],Gd=["onClick","disabled"],$d={class:"modal-content"},Qd={class:"modal-header"},Wd={class:"modal-body"},Yd={class:"modal-text"},Jd={class:"feedback-section"},Xd={class:"modal-footer"},Zd=["disabled"];function eu(n,e,t,r,o,i){var d;const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",vd,[n.isModal?(s.openBlock(),s.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...h)=>i.close&&i.close(...h)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},[...e[7]||(e[7]=[s.createElementVNode("i",{class:"font-17 color-black"},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)])])):s.createCommentVNode("",!0),s.createElementVNode("div",wd,[n.isModal?(s.openBlock(),s.createElementBlock("div",{key:0,class:"pointer left-button",onClick:e[1]||(e[1]=h=>n.$emit("update:viewProp","AuthAccount"))},[s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,bd)])):(s.openBlock(),s.createBlock(l,{key:1,to:"/account",class:"button gray-button pointer left-button"},{default:s.withCtx(()=>[s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,kd)]),_:1})),s.createElementVNode("h2",Ed,s.toDisplayString(n.ssoLang[n.appLanguage].billing),1)]),s.createElementVNode("div",Cd,[s.createElementVNode("p",Td,s.toDisplayString(n.ssoLang[n.appLanguage].billing_p),1),s.createElementVNode("div",Sd,[o.subscriptions.length===0?(s.openBlock(),s.createElementBlock("div",Id,[...e[8]||(e[8]=[s.createElementVNode("p",{class:"gray-text"},"There are no active subscriptions at this point.",-1)])])):(s.openBlock(),s.createElementBlock("div",Ad,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.subscriptions,h=>(s.openBlock(),s.createElementBlock("div",{key:h.subscriptionId,class:"subscription-card half-bottom"},[s.createElementVNode("div",Rd,[s.createElementVNode("div",Nd,[s.createElementVNode("h3",Pd,s.toDisplayString(h.subscriptionName),1),s.createElementVNode("span",{class:s.normalizeClass(["subscription-status",i.getStatusClass(h.status)])},s.toDisplayString(i.getStatusText(h.status)),3)])]),s.createElementVNode("div",Md,[s.createElementVNode("div",Ld,[e[9]||(e[9]=s.createElementVNode("span",{class:"detail-label"},"Amount:",-1)),s.createElementVNode("span",Od,s.toDisplayString(i.formatCurrency(h.amount,h.currency)),1)]),s.createElementVNode("div",xd,[e[10]||(e[10]=s.createElementVNode("span",{class:"detail-label"},"Billing:",-1)),s.createElementVNode("span",Bd,s.toDisplayString(i.formatInterval(h.interval)),1)]),s.createElementVNode("div",zd,[e[11]||(e[11]=s.createElementVNode("span",{class:"detail-label"},"Licenses:",-1)),s.createElementVNode("span",Ud,s.toDisplayString(h.licenses),1)]),h.isTrial?(s.openBlock(),s.createElementBlock("div",Dd,[e[12]||(e[12]=s.createElementVNode("span",{class:"detail-label"},"Trial Ends:",-1)),s.createElementVNode("span",Fd,s.toDisplayString(i.formatDate(h.trialEnd)),1)])):h.endDate?(s.openBlock(),s.createElementBlock("div",jd,[e[13]||(e[13]=s.createElementVNode("span",{class:"detail-label"},"Next Billing:",-1)),s.createElementVNode("span",qd,s.toDisplayString(i.formatDate(h.endDate)),1)])):s.createCommentVNode("",!0)]),s.createElementVNode("div",Vd,[h.status==="canceled"||h.status==="expired"?(s.openBlock(),s.createElementBlock("button",{key:0,onClick:f=>i.resubscribe(h),class:"resubscribe-button",disabled:o.loading},s.toDisplayString(o.loading?"Processing...":"Re-Subscribe"),9,Hd)):s.createCommentVNode("",!0),h.status==="past_due"||h.status==="unpaid"?(s.openBlock(),s.createElementBlock("button",{key:1,onClick:f=>i.retryPayment(h),class:"pay-now-button",disabled:o.loading},s.toDisplayString(o.loading?"Processing...":"Pay Now"),9,Kd)):s.createCommentVNode("",!0),h.status!=="canceled"&&h.status!=="expired"&&h.status!=="past_due"&&h.status!=="unpaid"?(s.openBlock(),s.createElementBlock("button",{key:2,onClick:f=>i.openCancelModal(h),class:"cancel-button",disabled:o.loading},s.toDisplayString(o.loading?"Processing...":"Cancel Subscription"),9,Gd)):s.createCommentVNode("",!0)])]))),128))]))])]),o.showCancelModal?(s.openBlock(),s.createElementBlock("div",{key:1,class:"modal-overlay",onClick:e[6]||(e[6]=s.withModifiers((...h)=>i.closeCancelModal&&i.closeCancelModal(...h),["self"]))},[s.createElementVNode("div",$d,[s.createElementVNode("div",Qd,[e[14]||(e[14]=s.createElementVNode("h3",null,"Cancel Subscription",-1)),s.createElementVNode("button",{onClick:e[2]||(e[2]=(...h)=>i.closeCancelModal&&i.closeCancelModal(...h)),class:"close-button"},"×")]),s.createElementVNode("div",Wd,[s.createElementVNode("p",Yd,[e[15]||(e[15]=s.createTextVNode(" Are you sure you want to cancel your subscription to ",-1)),s.createElementVNode("b",null,s.toDisplayString((d=o.selectedSubscription)==null?void 0:d.subscriptionName),1),e[16]||(e[16]=s.createTextVNode("? ",-1))]),s.createElementVNode("div",Jd,[e[17]||(e[17]=s.createElementVNode("label",{class:"feedback-label"},"We'd love to know why you're canceling (optional):",-1)),s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":e[3]||(e[3]=h=>o.cancelFeedback=h),class:"feedback-textarea",placeholder:"Your feedback helps us improve our service...",rows:"4"},null,512),[[s.vModelText,o.cancelFeedback]])])]),s.createElementVNode("div",Xd,[s.createElementVNode("button",{onClick:e[4]||(e[4]=(...h)=>i.closeCancelModal&&i.closeCancelModal(...h)),class:"button-secondary"}," Keep Subscription "),s.createElementVNode("button",{onClick:e[5]||(e[5]=(...h)=>i.confirmCancel&&i.confirmCancel(...h)),class:"button-danger",disabled:o.loading},s.toDisplayString(o.loading?"Canceling...":"Confirm Cancellation"),9,Zd)])])])):s.createCommentVNode("",!0)])}const Yr=lt(yd,[["render",eu]]),tu=Object.freeze(Object.defineProperty({__proto__:null,default:Yr},Symbol.toStringTag,{value:"Module"}));(function(){try{if(typeof document<"u"){var n=document.createElement("style");n.appendChild(document.createTextNode('@keyframes spinner-circle-animation-ed866313{0%,39%,to{opacity:0}40%{opacity:1}}.spinner[data-v-ed866313]{position:relative;width:var(--vs-spinner-size);height:var(--vs-spinner-size);margin:0;padding:0}.spinner-circle[data-v-ed866313]{width:100%;height:100%;position:absolute;left:0;top:0}.spinner-circle[data-v-ed866313]:before{content:"";display:block;margin:0 auto;width:15%;height:15%;background-color:var(--vs-spinner-color);border-radius:100%;-webkit-animation:spinner-circle-animation-ed866313 1.2s infinite ease-in-out both;animation:spinner-circle-animation-ed866313 1.2s infinite ease-in-out both}.spinner-circle[data-v-ed866313]:nth-child(2){transform:rotate(30deg)}.spinner-circle[data-v-ed866313]:nth-child(3){transform:rotate(60deg)}.spinner-circle[data-v-ed866313]:nth-child(4){transform:rotate(90deg)}.spinner-circle[data-v-ed866313]:nth-child(5){transform:rotate(120deg)}.spinner-circle[data-v-ed866313]:nth-child(6){transform:rotate(150deg)}.spinner-circle[data-v-ed866313]:nth-child(7){transform:rotate(180deg)}.spinner-circle[data-v-ed866313]:nth-child(8){transform:rotate(210deg)}.spinner-circle[data-v-ed866313]:nth-child(9){transform:rotate(240deg)}.spinner-circle[data-v-ed866313]:nth-child(10){transform:rotate(270deg)}.spinner-circle[data-v-ed866313]:nth-child(11){transform:rotate(300deg)}.spinner-circle[data-v-ed866313]:nth-child(12){transform:rotate(330deg)}.spinner-circle[data-v-ed866313]:nth-child(2):before{animation-delay:-1.1s}.spinner-circle[data-v-ed866313]:nth-child(3):before{animation-delay:-1s}.spinner-circle[data-v-ed866313]:nth-child(4):before{animation-delay:-.9s}.spinner-circle[data-v-ed866313]:nth-child(5):before{animation-delay:-.8s}.spinner-circle[data-v-ed866313]:nth-child(6):before{animation-delay:-.7s}.spinner-circle[data-v-ed866313]:nth-child(7):before{animation-delay:-.6s}.spinner-circle[data-v-ed866313]:nth-child(8):before{animation-delay:-.5s}.spinner-circle[data-v-ed866313]:nth-child(9):before{animation-delay:-.4s}.spinner-circle[data-v-ed866313]:nth-child(10):before{animation-delay:-.3s}.spinner-circle[data-v-ed866313]:nth-child(11):before{animation-delay:-.2s}.spinner-circle[data-v-ed866313]:nth-child(12):before{animation-delay:-.1s}:root{--vs-input-bg: #fff;--vs-input-outline: #3b82f6;--vs-input-placeholder-color: #52525b;--vs-padding: .25rem .5rem;--vs-border: 1px solid #e4e4e7;--vs-border-radius: 4px;--vs-font-size: 16px;--vs-font-weight: 400;--vs-font-family: inherit;--vs-text-color: #18181b;--vs-line-height: 1.5;--vs-menu-offset-top: 8px;--vs-menu-height: 200px;--vs-menu-padding: 0;--vs-menu-border: 1px solid #e4e4e7;--vs-menu-bg: #fff;--vs-menu-box-shadow: none;--vs-menu-z-index: 2;--vs-option-padding: 8px 12px;--vs-option-font-size: var(--vs-font-size);--vs-option-font-weight: var(--vs-font-weight);--vs-option-text-color: var(--vs-text-color);--vs-option-bg: var(--vs-menu-bg);--vs-option-hover-color: #dbeafe;--vs-option-focused-color: var(--vs-option-hover-color);--vs-option-selected-color: #93c5fd;--vs-option-disabled-color: #f4f4f5;--vs-option-disabled-text-color: #52525b;--vs-multi-value-gap: 0px;--vs-multi-value-padding: 4px;--vs-multi-value-margin: 4px 0px 4px 6px;--vs-multi-value-font-size: 14px;--vs-multi-value-font-weight: 400;--vs-multi-value-line-height: 1;--vs-multi-value-text-color: #3f3f46;--vs-multi-value-bg: #f4f4f5;--vs-multi-value-xmark-size: 16px;--vs-multi-value-xmark-color: var(--vs-multi-value-text-color);--vs-indicators-gap: 4px;--vs-icon-size: 20px;--vs-icon-color: var(--vs-text-color);--vs-spinner-color: var(--vs-text-color);--vs-spinner-size: 20px;--vs-dropdown-transition: transform .25s ease-out}.vue-select[data-v-7f19f42a]{position:relative;box-sizing:border-box;width:100%}.vue-select[data-v-7f19f42a] *{box-sizing:border-box}.vue-select.open .single-value[data-v-7f19f42a]{position:absolute;opacity:.4}.vue-select.open .dropdown-icon[data-v-7f19f42a]{transform:rotate(180deg)}.vue-select.typing .single-value[data-v-7f19f42a]{opacity:0}.control[data-v-7f19f42a]{display:flex;min-height:32px;border:var(--vs-border);border-radius:var(--vs-border-radius);background-color:var(--vs-input-bg)}.control.focused[data-v-7f19f42a]{box-shadow:0 0 0 1px var(--vs-input-outline);border-color:var(--vs-input-outline)}.value-container[data-v-7f19f42a]{position:relative;display:flex;flex-wrap:wrap;align-items:center;flex-basis:100%;flex-grow:1}.value-container.multi[data-v-7f19f42a]{gap:var(--vs-multi-value-gap)}.single-value[data-v-7f19f42a]{display:flex;align-items:center;padding:var(--vs-padding);font-size:var(--vs-font-size);font-weight:var(--vs-font-weight);font-family:var(--vs-font-family);line-height:var(--vs-line-height);color:var(--vs-text-color);z-index:0}.multi-value[data-v-7f19f42a]{appearance:none;display:flex;align-items:center;gap:var(--vs-multi-value-gap);padding:var(--vs-multi-value-padding);margin:var(--vs-multi-value-margin);border:0;font-size:var(--vs-multi-value-font-size);font-weight:var(--vs-multi-value-font-weight);color:var(--vs-multi-value-text-color);line-height:var(--vs-multi-value-line-height);background:var(--vs-multi-value-bg);outline:none;cursor:pointer}.multi-value svg[data-v-7f19f42a]{width:var(--vs-multi-value-xmark-size);height:var(--vs-multi-value-xmark-size);fill:var(--vs-multi-value-xmark-color)}.search-input[data-v-7f19f42a]{appearance:none;display:inline-block;max-width:100%;flex-grow:1;width:0;margin:0;padding:0;border:0;background:none;padding:var(--vs-padding);font-size:var(--vs-font-size);font-family:var(--vs-font-family);line-height:var(--vs-line-height);color:var(--vs-text-color);outline:none;z-index:1}.search-input[data-v-7f19f42a]::placeholder{color:var(--vs-input-placeholder-color)}.indicators-container[data-v-7f19f42a]{display:flex;align-items:center;flex-shrink:0;gap:var(--vs-indicators-gap);padding:var(--vs-padding)}.clear-button[data-v-7f19f42a]{appearance:none;display:inline-block;padding:0;margin:0;border:0;width:var(--vs-icon-size);height:var(--vs-icon-size);color:var(--vs-icon-color);background:none;outline:none;cursor:pointer}.dropdown-icon[data-v-7f19f42a]{appearance:none;display:inline-block;padding:0;margin:0;border:0;width:var(--vs-icon-size);height:var(--vs-icon-size);color:var(--vs-icon-color);background:none;outline:none;cursor:pointer;transition:var(--vs-dropdown-transition)}.menu[data-v-7f19f42a]{position:absolute;left:0;right:0;padding:var(--vs-menu-padding);margin-top:var(--vs-menu-offset-top);max-height:var(--vs-menu-height);overflow-y:auto;border:var(--vs-menu-border);border-radius:var(--vs-border-radius);box-shadow:var(--vs-menu-box-shadow);background-color:var(--vs-menu-bg);z-index:var(--vs-menu-z-index)}.menu-option[data-v-7f19f42a]{display:flex;width:100%;border:0;margin:0;padding:var(--vs-option-padding);font-size:var(--vs-option-font-size);font-weight:var(--vs-option-font-weight);font-family:var(--vs-font-family);color:var(--vs-option-text-color);background-color:var(--vs-option-bg);text-align:-webkit-auto;cursor:pointer}.menu-option[data-v-7f19f42a]:hover{background-color:var(--vs-option-hover-color)}.menu-option.focused[data-v-7f19f42a]{background-color:var(--vs-option-focused-color)}.menu-option.selected[data-v-7f19f42a]{background-color:var(--vs-option-selected-color)}.menu-option.disabled[data-v-7f19f42a]{background-color:var(--vs-option-disabled-color);color:var(--vs-option-disabled-text-color)}.no-results[data-v-7f19f42a]{padding:var(--vs-option-padding);font-size:var(--vs-font-size);font-family:var(--vs-font-family);color:var(--vs-text-color)}')),document.head.appendChild(n)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const pr=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},nu={},ru={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"};function ou(n,e){return s.openBlock(),s.createElementBlock("svg",ru,e[0]||(e[0]=[s.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"},null,-1)]))}const iu=pr(nu,[["render",ou]]),au={},su={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"};function cu(n,e){return s.openBlock(),s.createElementBlock("svg",su,e[0]||(e[0]=[s.createElementVNode("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"},null,-1)]))}const yi=pr(au,[["render",cu]]),lu=["aria-disabled","aria-selected"],du=s.defineComponent({__name:"MenuOption",props:{menu:{},index:{},isFocused:{type:Boolean},isSelected:{type:Boolean},isDisabled:{type:Boolean}},emits:["select"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(null);return s.watch(()=>t.isFocused,()=>{if(t.isFocused&&t.menu){const i=t.menu.children[t.index],l=i.offsetTop,d=l+i.clientHeight,h=t.menu.scrollTop,f=t.menu.clientHeight;l<h?t.menu.scrollTop=l:d>h+f&&(t.menu.scrollTop=d-f)}}),(i,l)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"option",ref:o,tabindex:"-1",role:"option",class:s.normalizeClass({focused:i.isFocused,selected:i.isSelected,disabled:i.isDisabled}),"aria-disabled":i.isDisabled,"aria-selected":i.isSelected,onClick:l[0]||(l[0]=d=>r("select")),onKeydown:l[1]||(l[1]=s.withKeys(d=>r("select"),["enter"]))},[s.renderSlot(i.$slots,"default")],42,lu))}}),uu={},pu={className:"spinner"};function hu(n,e){return s.openBlock(),s.createElementBlock("div",pu,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(12,t=>s.createElementVNode("div",{key:t,class:"spinner-circle"})),64))])}const mu=pr(uu,[["render",hu],["__scopeId","data-v-ed866313"]]),fu=["aria-expanded","aria-describedby","aria-description","aria-labelledby","aria-label","aria-required"],gu=["onClick"],_u=["id","disabled","placeholder"],yu={class:"indicators-container"},vu=["disabled"],wu=["disabled"],bu=["aria-label","aria-multiselectable"],ku={key:0,class:"no-results"},Eu={name:"AuthGeneral",mixins:[et],components:{VueSelect:pr(s.defineComponent({__name:"Select",props:s.mergeModels({options:{},displayedOptions:{},placeholder:{default:"Select an option"},isClearable:{type:Boolean,default:!0},isDisabled:{type:Boolean,default:!1},isSearchable:{type:Boolean,default:!0},isMulti:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},shouldAutofocusOption:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},teleport:{default:void 0},inputId:{default:void 0},aria:{default:void 0},filterBy:{type:Function,default:(n,e,t)=>e.toLowerCase().includes(t.toLowerCase())},getOptionLabel:{type:Function,default:n=>n.label},getMultiValueLabel:{type:Function,default:n=>n.label}},{modelValue:{required:!0,validator:(n,e)=>e.isMulti?Array.isArray(n):!Array.isArray(n)},modelModifiers:{}}),emits:s.mergeModels(["optionSelected","optionDeselected","search"],["update:modelValue"]),setup(n,{emit:e}){const t=n,r=e,o=s.useModel(n,"modelValue"),i=s.ref(null),l=s.ref(null),d=s.ref(null),h=s.ref(""),f=s.ref(!1),u=s.ref(-1),y=s.computed(()=>{const A=t.displayedOptions||t.options,W=ae=>ae.filter(re=>!o.value.includes(re.value));if(t.isSearchable&&h.value){const ae=A.filter(re=>{const we=t.isMulti?t.getMultiValueLabel(re):t.getOptionLabel(re);return t.filterBy(re,we,h.value)});return t.isMulti?W(ae):ae}return t.isMulti?W(A):A}),_=s.computed(()=>{if(t.isMulti&&Array.isArray(o.value))return o.value.map(W=>t.options.find(ae=>ae.value===W));t.isMulti&&!Array.isArray(o.value)&&console.warn(`[vue3-select-component warn]: The v-model provided should be an array when using \`isMulti\` prop, instead it was: ${o.value}`);const A=t.options.find(W=>W.value===o.value);return A?[A]:[]}),k=A=>{f.value=!0,t.shouldAutofocusOption&&(u.value=t.options.findIndex(W=>!W.disabled)),A!=null&&A.focusInput&&l.value&&l.value.focus()},T=()=>{f.value=!1,h.value=""},O=()=>{f.value?T():k()},M=A=>{A.disabled||(t.isMulti?o.value.push(A.value):o.value=A.value,r("optionSelected",A),h.value="",t.closeOnSelect&&(f.value=!1),l.value&&l.value.blur())},F=A=>{t.isMulti&&!t.isDisabled&&(o.value=o.value.filter(W=>W!==A.value),r("optionDeselected",A))},N=()=>{t.isMulti?(o.value=[],r("optionDeselected",null)):(o.value=void 0,r("optionDeselected",_.value[0])),f.value=!1,h.value="",l.value&&l.value.blur()},S=A=>{if(f.value){const W=u.value;if(A.key==="ArrowDown"){A.preventDefault();const re=y.value.findIndex((Re,me)=>!Re.disabled&&me>W),we=y.value.findIndex(Re=>!Re.disabled);u.value=re===-1?we:re}if(A.key==="ArrowUp"){A.preventDefault();const re=y.value.reduce((Re,me,Le)=>!me.disabled&&Le<W?Le:Re,-1),we=y.value.reduce((Re,me,Le)=>me.disabled?Re:Le,-1);u.value=re===-1?we:re}if(A.key==="Enter"){const re=y.value[W];A.preventDefault(),re&&M(re)}if(A.code==="Space"&&h.value.length===0){const re=y.value[W];A.preventDefault(),re&&M(re)}A.key==="Escape"&&(A.preventDefault(),f.value=!1,h.value="");const ae=t.isMulti?o.value.length>0:!!o.value;A.key==="Backspace"&&h.value.length===0&&ae&&(A.preventDefault(),t.isMulti?o.value=o.value.slice(0,-1):o.value=void 0)}},z=A=>{!f.value&&h.value.length===0&&(A.preventDefault(),A.stopImmediatePropagation(),k())},V=A=>{A.key==="Tab"?T():A.key==="Space"&&z(A)},G=A=>{i.value&&!i.value.contains(A.target)&&(f.value=!1,h.value="")},Z=()=>{if(i.value){const A=i.value.getBoundingClientRect();return{left:`${A.x}px`,top:`${A.y+A.height}px`}}return console.warn("Unable to calculate dynamic menu position because of missing internal DOM reference."),{top:"0px",left:"0px"}};return s.watch(()=>h.value,()=>{r("search",h.value),h.value&&!f.value&&k()}),s.onMounted(()=>{document.addEventListener("click",G),document.addEventListener("keydown",S)}),s.onBeforeUnmount(()=>{document.removeEventListener("click",G),document.removeEventListener("keydown",S)}),(A,W)=>{var ae,re,we,Re;return s.openBlock(),s.createElementBlock("div",{ref_key:"container",ref:i,dir:"auto",class:s.normalizeClass(["vue-select",{open:f.value,typing:f.value&&h.value.length>0,disabled:A.isDisabled}])},[s.createElementVNode("div",{class:s.normalizeClass(["control",{focused:f.value}])},[s.createElementVNode("div",{class:s.normalizeClass(["value-container",{multi:A.isMulti}]),role:"combobox","aria-expanded":f.value,"aria-describedby":A.placeholder,"aria-description":A.placeholder,"aria-labelledby":(ae=A.aria)==null?void 0:ae.labelledby,"aria-label":_.value.length?_.value.map(A.isMulti?A.getMultiValueLabel:A.getOptionLabel).join(", "):"","aria-required":(re=A.aria)==null?void 0:re.required},[!t.isMulti&&_.value[0]?(s.openBlock(),s.createElementBlock("div",{key:0,class:"single-value",onClick:W[0]||(W[0]=me=>t.isDisabled?null:k({focusInput:!0}))},[s.renderSlot(A.$slots,"value",{option:_.value[0]},()=>[s.createTextVNode(s.toDisplayString(A.getOptionLabel(_.value[0])),1)],!0)])):s.createCommentVNode("",!0),t.isMulti&&_.value.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(_.value,me=>s.renderSlot(A.$slots,"tag",{key:me.value,option:me,removeOption:()=>F(me)},()=>[s.createElementVNode("button",{type:"button",class:"multi-value",onClick:Le=>F(me)},[s.createTextVNode(s.toDisplayString(A.getMultiValueLabel(me)),1),s.createVNode(yi)],8,gu)],!0)),128)):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("input",{id:A.inputId,ref_key:"input",ref:l,"onUpdate:modelValue":W[1]||(W[1]=me=>h.value=me),class:"search-input",type:"text","aria-autocomplete":"list",autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:"false",tabindex:"0",disabled:A.isDisabled,placeholder:_.value.length===0?A.placeholder:"",onMousedown:W[2]||(W[2]=me=>k()),onKeydown:V},null,40,_u),[[s.vModelText,h.value]])],10,fu),s.createElementVNode("div",yu,[_.value.length>0&&A.isClearable&&!A.isLoading?(s.openBlock(),s.createElementBlock("button",{key:0,type:"button",class:"clear-button",tabindex:"-1",disabled:A.isDisabled,onClick:N},[s.renderSlot(A.$slots,"clear",{},()=>[s.createVNode(yi)],!0)],8,vu)):s.createCommentVNode("",!0),A.isLoading?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("button",{key:1,type:"button",class:"dropdown-icon",tabindex:"-1",disabled:A.isDisabled,onClick:O},[s.renderSlot(A.$slots,"dropdown",{},()=>[s.createVNode(iu)],!0)],8,wu)),s.renderSlot(A.$slots,"loading",{},()=>[A.isLoading?(s.openBlock(),s.createBlock(mu,{key:0})):s.createCommentVNode("",!0)],!0)])],2),(s.openBlock(),s.createBlock(s.Teleport,{to:A.teleport,disabled:!A.teleport,defer:!0},[f.value?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"menu",ref:d,class:"menu",role:"listbox","aria-label":(we=A.aria)==null?void 0:we.labelledby,"aria-multiselectable":A.isMulti,style:s.normalizeStyle({width:t.teleport?`${(Re=i.value)==null?void 0:Re.getBoundingClientRect().width}px`:"100%",top:t.teleport?Z().top:"unset",left:t.teleport?Z().left:"unset"})},[s.renderSlot(A.$slots,"menu-header",{},void 0,!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(y.value,(me,Le)=>(s.openBlock(),s.createBlock(du,{key:Le,type:"button",class:s.normalizeClass(["menu-option",{focused:u.value===Le,selected:me.value===o.value}]),menu:d.value,index:Le,"is-focused":u.value===Le,"is-selected":me.value===o.value,"is-disabled":me.disabled||!1,onSelect:ht=>M(me)},{default:s.withCtx(()=>[s.renderSlot(A.$slots,"option",{option:me},()=>[s.createTextVNode(s.toDisplayString(A.getOptionLabel(me)),1)],!0)]),_:2},1032,["class","menu","index","is-focused","is-selected","is-disabled","onSelect"]))),128)),y.value.length===0?(s.openBlock(),s.createElementBlock("div",ku,[s.renderSlot(A.$slots,"no-options",{},()=>[W[3]||(W[3]=s.createTextVNode(" No results found "))],!0)])):s.createCommentVNode("",!0)],12,bu)):s.createCommentVNode("",!0)],8,["to","disabled"]))],2)}}}),[["__scopeId","data-v-7f19f42a"]])},props:{isModal:{type:Boolean,default:!1},payload:{type:Object,default:{}}},data(){return{loading:!1}},watch:{"account.lang":{handler(n){n&&(this.updateLang(n),this.display==="npm"&&this.$store.commit("setLanguage",n))},immediate:!0}},async mounted(){this.isLoggedIn||this.$router.push("/login"),await this.getAccountSettings()},methods:{close(){J.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})},async submitGeneralUpdate(){var r;this.loading=!0;const n={name:this.account.name,lang:this.account.lang,email:this.account.email,region:(r=this.account.billing)==null?void 0:r.region},[e,t]=await be(Pn.updateAccount(n));e?this.errorHandler(e):t.data.success&&(this.successSnack(this.ssoLang[this.appLanguage].profile_update_success),await this.getAccountSettings()),this.loading=!1}}},Cu={class:"page-login content-boxed content-boxed-padding tapni-auth-general"},Tu={class:"subheaderContainer full-top"},Su=["src"],Iu=["src"],Au={class:"center-text",style:{"flex-grow":"1","text-align":"center",margin:"0","font-weight":"600"}},Ru={class:"container left-text"},Nu={class:"center-text"},Pu={class:"full-top bold small-bottom"},Mu=["placeholder"],Lu=["placeholder"],Ou={class:"full-top bold"},xu={class:"full-top bold"},Bu={type:"submit",class:"button black-button button-full google-button bg-tapni-grey button-90 button-center uppercase bold full-top pointer"},zu={key:0},Uu={key:1,class:"button--loading button__loader"};function Du(n,e,t,r,o,i){const l=s.resolveComponent("router-link"),d=s.resolveComponent("VueSelect");return s.openBlock(),s.createElementBlock("div",Cu,[t.isModal?(s.openBlock(),s.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...h)=>i.close&&i.close(...h)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},[...e[7]||(e[7]=[s.createElementVNode("i",{class:"font-17 color-black"},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)])])):s.createCommentVNode("",!0),s.createElementVNode("div",Tu,[t.isModal?(s.openBlock(),s.createElementBlock("div",{key:0,class:"pointer left-button",onClick:e[1]||(e[1]=h=>n.$emit("update:viewProp","AuthAccount"))},[s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,Su)])):(s.openBlock(),s.createBlock(l,{key:1,to:"/account",class:"button gray-button pointer left-button"},{default:s.withCtx(()=>[s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,Iu)]),_:1})),s.createElementVNode("h2",Au,s.toDisplayString(n.ssoLang[n.appLanguage].general),1)]),s.createElementVNode("div",Ru,[s.createElementVNode("p",Nu,s.toDisplayString(n.ssoLang[n.appLanguage].general_p),1),s.createElementVNode("form",{class:"full-top",onSubmit:e[6]||(e[6]=s.withModifiers((...h)=>i.submitGeneralUpdate&&i.submitGeneralUpdate(...h),["prevent"]))},[s.createElementVNode("h3",Pu,s.toDisplayString(n.ssoLang[n.appLanguage].personal_details),1),s.withDirectives(s.createElementVNode("input",{type:"text","onUpdate:modelValue":e[2]||(e[2]=h=>n.account.name=h),placeholder:n.ssoLang[n.appLanguage].name,class:"edit-input h-40 lh-40 small-bottom",required:"",style:{width:"100%"}},null,8,Mu),[[s.vModelText,n.account.name]]),s.withDirectives(s.createElementVNode("input",{disabled:"",type:"email","onUpdate:modelValue":e[3]||(e[3]=h=>n.account.email=h),placeholder:n.ssoLang[n.appLanguage].email,class:"bg-white edit-input h-40 lh-40 small-bottom",required:"",style:{width:"100%"}},null,8,Lu),[[s.vModelText,n.account.email]]),s.createElementVNode("h3",Ou,s.toDisplayString(n.ssoLang[n.appLanguage].app_region),1),n.account.billing?(s.openBlock(),s.createBlock(d,{key:0,modelValue:n.account.billing.region,"onUpdate:modelValue":e[4]||(e[4]=h=>n.account.billing.region=h),options:[{label:"United States",value:"us"},{label:"United Kingdom",value:"uk"},{label:"European Union",value:"eu"},{label:"Mexico",value:"mx"},{label:"Mauritius",value:"mu"},{label:"Colombia",value:"co"},{label:"Serbia",value:"rs"},{label:"Singapore",value:"sg"},{label:"China",value:"cn"}],isClearable:!1,placeholder:"Select region"},null,8,["modelValue"])):s.createCommentVNode("",!0),s.createCommentVNode("",!0),s.createElementVNode("h3",xu,s.toDisplayString(n.ssoLang[n.appLanguage].app_language),1),s.createVNode(d,{modelValue:n.account.lang,"onUpdate:modelValue":e[5]||(e[5]=h=>n.account.lang=h),options:[{label:n.ssoLang[n.appLanguage].english,value:"en"},{label:n.ssoLang[n.appLanguage].german,value:"de"},{label:n.ssoLang[n.appLanguage].spanish,value:"es"},{label:n.ssoLang[n.appLanguage].italian,value:"it"},{label:n.ssoLang[n.appLanguage].french,value:"fr"},{label:n.ssoLang[n.appLanguage].turkish,value:"tr"},{label:n.ssoLang[n.appLanguage].serbian,value:"sr"},{label:n.ssoLang[n.appLanguage].korean,value:"kr"},{label:n.ssoLang[n.appLanguage].chinese,value:"cn"},{label:n.ssoLang[n.appLanguage].portuguese,value:"pt"},{label:n.ssoLang[n.appLanguage].japanese,value:"ja"}],isClearable:!1,placeholder:"Select language"},null,8,["modelValue","options"]),e[8]||(e[8]=s.createElementVNode("p",null,"Translate the app on your preferred language.",-1)),s.createElementVNode("button",Bu,[o.loading?(s.openBlock(),s.createElementBlock("span",Uu)):(s.openBlock(),s.createElementBlock("span",zu,s.toDisplayString(n.ssoLang[n.appLanguage].save),1))])],32)])])}const Jr=lt(Eu,[["render",Du]]),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:Jr},Symbol.toStringTag,{value:"Module"})),ju={name:"AuthReset",mixins:[et],data(){return{loading:!0,submitted:!1,passwordChange:!1,email:"",password:"",passwordRepeat:"",code:"",captcha:"",revealPassword:!1,revealPassword2:!1}},mounted(){this.$storex.verifyEmail&&(this.email=this.$storex.verifyEmail),this.$route.query.c&&(this.code=this.$route.query.c,this.passwordChange=!0),this.$route.query.e&&(this.email=this.$route.query.e),J.$emit("ssoEvent",{name:"setLoading",data:!1})},methods:{async resetEmail(){if(this.submitted)return;this.submitted=!0,this.email=this.email.trim();let n={email:this.email,captchaToken:await this.getCaptchaToken("password_reset")};await this.reset(n),this.submitted=!1,await this.$router.push("/verify?e="+this.email+"#reset")},async changePw(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);if(this.password!==this.passwordRepeat)return this.errorSnack(this.ssoLang[this.appLanguage].password_not_match);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.code=this.code.trim();let n={email:this.email,code:this.code,password:this.password,passwordRepeat:this.passwordRepeat,captchaToken:await this.getCaptchaToken("password_reset")},e=await this.changePassword(n);this.submitted=!1,e===!0&&(this.$router.push("/login"),this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success))}},watch:{email(n){this.$storex.verifyEmail=n}}},qu={class:"bold no-bottom center-text text-[22px]",style:{"margin-top":"63px"}},Vu={class:"page-login-field half-top color-black"},Hu=["placeholder"],Ku={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Gu={key:0,class:"uppercase"},$u={key:1,class:"button--loading button__loader"},Qu={class:"close-text center-text half-top color-black"},Wu=["innerHTML"],Yu=["href"],Ju={class:"page-login-links"},Xu={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Zu={class:"half-bottom small-top center-text color-black"},ep={class:"page-login-field half-top"},tp=["type","placeholder"],np={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},rp={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},op={class:"page-login-field half-top"},ip=["type","placeholder"],ap={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},sp={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},cp={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},lp={key:0,class:"uppercase"},dp={key:1,class:"button--loading button__loader"},up={class:"close-text center-text half-top color-black"},pp=["innerHTML"],hp=["href"];function mp(n,e,t,r,o,i){const l=s.resolveComponent("router-link");return o.passwordChange?(s.openBlock(),s.createElementBlock("form",{key:1,class:"page-login content-boxed content-boxed-padding",onSubmit:e[7]||(e[7]=s.withModifiers((...d)=>i.changePw&&i.changePw(...d),["prevent"]))},[s.createElementVNode("h3",Xu,s.toDisplayString(n.ssoLang[this.appLanguage].password_change),1),s.createElementVNode("p",Zu,s.toDisplayString(n.ssoLang[this.appLanguage].password_new),1),s.createElementVNode("div",ep,[e[14]||(e[14]=s.createElementVNode("i",{style:{"padding-top":"15px"}},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=d=>o.password=d),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,required:""},null,8,tp),[[s.vModelDynamic,o.password]]),s.createElementVNode("em",{onClick:e[4]||(e[4]=d=>o.revealPassword=!o.revealPassword)},[s.withDirectives(s.createElementVNode("img",np,null,512),[[s.vShow,!o.revealPassword]]),s.withDirectives(s.createElementVNode("img",rp,null,512),[[s.vShow,o.revealPassword]])])]),s.createElementVNode("div",op,[e[15]||(e[15]=s.createElementVNode("i",{style:{"padding-top":"15px"}},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":e[5]||(e[5]=d=>o.passwordRepeat=d),type:o.revealPassword2?"text":"password",placeholder:n.ssoLang[this.appLanguage].password_repeat,required:""},null,8,ip),[[s.vModelDynamic,o.passwordRepeat]]),s.createElementVNode("em",{onClick:e[6]||(e[6]=d=>o.revealPassword2=!o.revealPassword2)},[s.withDirectives(s.createElementVNode("img",ap,null,512),[[s.vShow,!o.revealPassword2]]),s.withDirectives(s.createElementVNode("img",sp,null,512),[[s.vShow,o.revealPassword2]])])]),s.createElementVNode("button",cp,[o.submitted?(s.openBlock(),s.createElementBlock("span",dp)):(s.openBlock(),s.createElementBlock("span",lp,s.toDisplayString(n.ssoLang[this.appLanguage].password_change),1))]),e[17]||(e[17]=s.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),s.createElementVNode("p",up,[s.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].reset_password_p2},null,8,pp),e[16]||(e[16]=s.createTextVNode()),s.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+n.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,hp)])],32)):(s.openBlock(),s.createElementBlock("form",{key:0,class:"page-login content-boxed content-boxed-padding",onSubmit:e[2]||(e[2]=s.withModifiers((...d)=>i.resetEmail&&i.resetEmail(...d),["prevent"])),autocomplete:"on"},[s.createElementVNode("h3",qu,s.toDisplayString(n.ssoLang[this.appLanguage].reset_password),1),e[11]||(e[11]=s.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),s.createElementVNode("div",Vu,[e[8]||(e[8]=s.createElementVNode("i",{style:{"padding-top":"10px","margin-left":"10px"}},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),s.withDirectives(s.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":e[0]||(e[0]=d=>o.email=d),onKeydown:e[1]||(e[1]=s.withKeys(s.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,required:""},null,40,Hu),[[s.vModelText,o.email]]),e[9]||(e[9]=s.createElementVNode("em",null,null,-1))]),s.createElementVNode("button",Ku,[o.submitted?(s.openBlock(),s.createElementBlock("span",$u)):(s.openBlock(),s.createElementBlock("span",Gu,s.toDisplayString(n.ssoLang[this.appLanguage].reset_password),1))]),e[12]||(e[12]=s.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),s.createElementVNode("p",Qu,[s.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].reset_password_p1},null,8,Wu),s.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+n.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,Yu)]),e[13]||(e[13]=s.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),s.createElementVNode("div",Ju,[s.createVNode(l,{class:"create float-right",to:"/verify"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1)]),_:1}),s.createVNode(l,{class:"forgot float-left",to:"/login"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),e[10]||(e[10]=s.createElementVNode("div",{class:"clear"},null,-1))])],32))}const Xr=lt(ju,[["render",mp],["__scopeId","data-v-707a4b16"]]),fp=Object.freeze(Object.defineProperty({__proto__:null,default:Xr},Symbol.toStringTag,{value:"Module"})),gp={name:"AuthCallback",mixins:[ui,pi,et],data(){return{}},async mounted(){if(this.$route.path==="/callback/redirect")return location.href=atob(this.$route.query.uri);if(this.$route.path==="/callback/auth"&&this.exchangeAuthCode({code:this.$route.query.code,code_verifier:this.$route.query.code_verifier}),this.$route.path==="/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/callback/saml")return await this.handleSamlRedirect()},methods:{inAppRedirect(){let n=wi.sanitizeUrl(location.href);return n=n.replace("http","tapni"),n=n.replace("https","tapni"),window.open(n)}}},_p={class:"page-login content-boxed content-boxed-padding"},yp={key:0,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}},vp={key:1,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}};function wp(n,e,t,r,o,i){return s.openBlock(),s.createElementBlock("div",_p,[(n.$route.query.platform==="android"||n.$route.query.platform==="ios")&&!n.isNative?(s.openBlock(),s.createElementBlock("h5",yp,[s.createTextVNode(s.toDisplayString(n.ssoLang[this.appLanguage].you_will_be_redirected),1),e[1]||(e[1]=s.createElementVNode("br",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(n.ssoLang[this.appLanguage].if_redirect_not_directly)+", ",1),s.createElementVNode("span",{onClick:e[0]||(e[0]=(...l)=>i.inAppRedirect&&i.inAppRedirect(...l)),style:{color:"blue",cursor:"pointer"}},s.toDisplayString(n.ssoLang[this.appLanguage].click_here),1),e[2]||(e[2]=s.createTextVNode(". ",-1))])):(s.openBlock(),s.createElementBlock("h4",vp,s.toDisplayString(n.ssoLang[this.appLanguage].please_wait),1))])}const Zr=lt(gp,[["render",wp]]),bp=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"})),on=ct.registerPlugin("Preferences",{web:()=>Promise.resolve().then(()=>gh).then(n=>new n.PreferencesWeb)}),Nt={async setObject(n,e){await on.set({key:n,value:JSON.stringify(e)})},async getAll(){const n=await this.keys(),e={};for(const t of n)e[t]=await on.get({key:t});return e},async setAll(n){const e=Object.keys(n);for(const t of e)await this.setItem(t,n[t])},async getObject(n){const e=await on.get({key:n});return JSON.parse(e.value)},async setItem(n,e){return await on.set({key:n,value:e})},async getItem(n){const{value:e}=await on.get({key:n});return e},async removeItem(n){return await on.remove({key:n})},async keys(){const{keys:n}=await on.keys();return n},async clear(){return await on.clear()}},pt="vrs_",eo={async _initialize(n){let e=await Nt.getItem(pt);if(e===null)await Nt.setItem(pt,JSON.stringify(n));else{let t=JSON.parse(e);this._objectDefaults(n,t),await Nt.setItem(pt,JSON.stringify(t))}},_objectDefaults(n,e){Object.keys(n).reduce((t,r)=>{let o=n[r];return typeof o=="object"?this._objectDefaults(e[r],o):e.hasOwnProperty(r)||(e[r]=o),t},[])},async getRaw(){let n=await Nt.getItem(pt);return JSON.parse(n)},async setRaw(n){let e=JSON.stringify(n);await Nt.setItem(pt,e)},async set(n,e){if(e===void 0)return this.remove(n);await Nt.setItem(pt+n,this.serialize(e));let t=this.getKeys();return t.indexOf(n)===-1&&t.push(n),await Nt.setItem(pt,this.serialize(t)),e},async get(n){let e=await Nt.getItem(pt+n);return e===null?null:this.deserialize(e)},async remove(n){let e=await this.get(n);await Nt.removeItem(pt+n);let t=await this.getKeys(),r=t.indexOf("test");return r!==-1&&t.splice(r,1),await Nt.setItem(pt,this.serialize(t)),e},async getAll(){let n=[],e=await this.getKeys();for(let t=0;t<e.length;t++)n[e[t]]=this.get(e[t]);return n},async getKeys(){return await this.deserialize(Nt.getItem(pt))},async clear(){await this.set(pt,"[]");let n=this.getKeys();for(let e=0;e<n.length;e++)await this.remove(pt+n[e])},serialize:function(n){return JSON.stringify(n)},deserialize:function(n,e){if(!n)return e;let t=JSON.parse(n);return t!==void 0?t:e}},kp={name:"ReactiveStorage",data(){return{strgReady:!1,strg:null}},async created(){this.strgReady=s.reactive({value:!1}),await eo._initialize(this.options);let n=await eo.getRaw();const e=s.reactive(n);this.strg=e,this.strgReady.value=!0,s.watch(e,async()=>{await eo.setRaw(e)},{deep:!0})}},Ep={key:0,href:"/",class:"header-logo"},Cp=["src"],Tp={class:"snackbar snackbar-boxed",id:"snackbar"},Sp={class:"snack-body",id:"errorSnack"},Ip={id:"errorMessage"},Ap={class:"snack-body",id:"successSnack"},Rp={id:"successMessage"},Np=Object.assign({name:"TapniAuth",mixins:[kp,et],data(){return{storeInterval:null,isSetup:!1,isTapstackOrigin:typeof window<"u"?/(^|\.)tapstack\.com$/i.test(new URL(window.location.origin).hostname):!1}},components:{AuthCallback:Zr,AuthReset:Xr,AuthVerify:Gr,AuthSecurity:Wr,AuthRegister:Kr,AuthLogin:Vr,AuthAccount:Hr,AuthBilling:Yr,AuthWelcome:Er,AuthGeneral:Jr},props:{viewProp:{type:String,default:""},isModal:{type:Boolean,default:!1},payload:{type:Object,default:{}},options:{type:Object,default:{token:"",refreshTokens:"",username:"",UserId:"",verifyEmail:"",subdomain:"",localUser:""}}},computed:{initialized(){return this.isSetup||this.isModal},headerLogoUrl(){return this.isTapstackOrigin?"https://cdn.tapni.co/company-media/e411a6e5-e8c1-40b3-aa4c-1214cfb43e8a/gallery/image/f910fa207addf7d3f7337faf098c4f82c79f755a3cf0032099655f2204e6a1e6.png":"https://cdn.tapni.co/images/logo-dark.png"},containerStyle(){return{maxHeight:this.isModal?"90vh":"auto",overflowY:this.isModal?"auto":"hidden"}}},async mounted(){this.checkAndClearStorage(),this.applyBgStyle(),this.setView(this.viewProp),this.updateMetadata(),J.$on("ssoEvent",this.ssoOutgoingEvent),J.$on("ssoLogout",n=>this.logout(n)),J.$on("getLoggedInAccounts",()=>this.getLoggedInAccounts()),J.$on("refreshTokenAction",n=>this.refreshTokenAction({...n,storage:this.$storex})),J.$on("switchAccount",n=>this.switchAccount(n)),J.$on("setToken",n=>this.setToken(n)),J.$on("setStorageItem",n=>this.setStorageItem(n)),this.isNative&&this.$nextTick(()=>{try{this.$store&&this.$store.state&&this.$store.state.auth&&this.$store.commit("auth/addAllowedOrigin","capacitor://localhost")}catch(n){console.error("Failed to add capacitor origin to allowed origins:",n)}})},methods:{checkAndClearStorage(){const n=new URLSearchParams(window.location.search);if(n.get("clean")==="true"){localStorage.clear(),sessionStorage.clear(),n.delete("clean");const e=window.location.pathname+(n.toString()?"?"+n.toString():"")+window.location.hash;window.history.replaceState({},"",e),console.log("Storage cleared due to clean=true parameter")}},async init(){this.$store.commit("auth/setApiRoot",this.$apiRoot||Ti.env.VITE_APP_API_ROOT),this.setStorage(this.strg),!this.isSetup&&(this.isSetup=!0,await this.getLoggedInAccounts(),this.$emit("ssoLibraryReady",this.$storex))},ssoOutgoingEvent(n){this.$emit("ssoEvent",n)},ssoIncomingEvent(n){J.$emit(n.name,n.data)},updateMetadata(){if(!(typeof window>"u"))if(this.isTapstackOrigin){document.title="Tapstack - The modern stack for interactive docs and tools";const n=document.querySelector('meta[name="description"]');n&&n.setAttribute("content","The modern stack for interactive docs and tools. Build better documentation and developer experiences with Tapstack.");const e=document.querySelector('meta[property="og:title"]');e&&e.setAttribute("content","Tapstack - The modern stack for interactive docs and tools");const t=document.querySelector('meta[property="og:description"]');t&&t.setAttribute("content","The modern stack for interactive docs and tools. Build better documentation and developer experiences.");const r=document.querySelector('meta[property="twitter:title"]');r&&r.setAttribute("content","Tapstack - The modern stack for interactive docs and tools");const o=document.querySelector('meta[property="twitter:description"]');o&&o.setAttribute("content","The modern stack for interactive docs and tools. Build better documentation and developer experiences with Tapstack.")}else document.title="Tapni - Share everything with just a tap"},applyBgStyle(){this.display==="redirect"?document.getElementsByTagName("html")[0].style="background: #dfeefe;":document.getElementsByTagName("html")[0].style=""}},watch:{viewProp(n){this.setView(n)},display(){this.applyBgStyle()},"strgReady.value"(n){n&&this.$nextTick(()=>{this.init()})},$storex:{handler(n){clearInterval(this.storeInterval),this.storeInterval=setTimeout(()=>{Object.keys(n).forEach(e=>{this.strg[e]=n[e]})},250)},deep:!0}}},{setup(n){return window.Buffer=Oi,document.addEventListener("DOMContentLoaded",function(){const e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js?render=undefined",document.head.appendChild(e)}),(e,t)=>(s.openBlock(),s.createElementBlock("div",{id:"ssoapp",style:s.normalizeStyle(e.containerStyle)},[e.display==="redirect"||e.renderView.includes("Auth")?(s.openBlock(),s.createElementBlock("a",Ep,[s.createElementVNode("img",{src:e.headerLogoUrl,class:"header-logo-img"},null,8,Cp)])):s.createCommentVNode("",!0),e.initialized&&e.renderView==="AuthWelcome"?(s.openBlock(),s.createBlock(Er,{key:1})):e.initialized&&e.renderView==="AuthLogin"?(s.openBlock(),s.createBlock(Vr,{key:2,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthGeneral"?(s.openBlock(),s.createBlock(Jr,{key:3,isModal:n.isModal,"onUpdate:viewProp":e.setView},null,8,["isModal","onUpdate:viewProp"])):e.initialized&&e.renderView==="AuthAccount"?(s.openBlock(),s.createBlock(Hr,{key:4,isModal:n.isModal,"onUpdate:viewProp":e.setView},null,8,["isModal","onUpdate:viewProp"])):e.initialized&&e.renderView==="AuthRegister"?(s.openBlock(),s.createBlock(Kr,{key:5,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthVerify"?(s.openBlock(),s.createBlock(Gr,{key:6,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthSecurity"?(s.openBlock(),s.createBlock(Wr,{key:7,isModal:n.isModal,payload:n.payload,"onUpdate:viewProp":e.setView},null,8,["isModal","payload","onUpdate:viewProp"])):e.initialized&&e.renderView==="AuthBilling"?(s.openBlock(),s.createBlock(Yr,{key:8,isModal:n.isModal,payload:n.payload,"onUpdate:viewProp":e.setView},null,8,["isModal","payload","onUpdate:viewProp"])):e.initialized&&e.renderView==="AuthReset"?(s.openBlock(),s.createBlock(Xr,{key:9})):e.initialized&&e.renderView==="AuthCallback"?(s.openBlock(),s.createBlock(Zr,{key:10})):e.display!=="npm"?(s.openBlock(),s.createBlock(s.unref(cn.RouterView),{key:11})):s.createCommentVNode("",!0),s.createElementVNode("div",Tp,[s.createElementVNode("p",Sp,[s.createElementVNode("span",Ip,s.toDisplayString(e.ssoLang[e.appLanguage].error),1),s.createElementVNode("a",{onClick:t[0]||(t[0]=(...r)=>e.closeSnacks&&e.closeSnacks(...r)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},[...t[2]||(t[2]=[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)])])]),s.createElementVNode("p",Ap,[s.createElementVNode("span",Rp,s.toDisplayString(e.ssoLang[e.appLanguage].success),1),s.createElementVNode("a",{onClick:t[1]||(t[1]=(...r)=>e.closeSnacks&&e.closeSnacks(...r)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},[...t[3]||(t[3]=[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)])])])])],4))}}),Pp={install:(n,{store:e,apiRoot:t})=>{n.component("TapniAuth",Np),e.hasModule("auth")||e.registerModule("auth",Ro),n.config.globalProperties.$apiRoot=t}},Mp={name:"AuthQR",mixins:[et,hi]},Lp={class:"page-login content-boxed content-boxed-padding"},Op={style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"130px"}},xp={class:"center-text"},Bp={style:{margin:"0 auto",width:"85%","text-align":"left"}},zp={class:"center-text"};function Up(n,e,t,r,o,i){const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",Lp,[s.createElementVNode("h5",Op,s.toDisplayString(n.ssoLang[n.appLanguage].use_tapni_on_the_web),1),e[6]||(e[6]=s.createElementVNode("br",null,null,-1)),s.createElementVNode("div",xp,[e[3]||(e[3]=s.createElementVNode("div",{id:"qrCodeContainer",class:"qrCodeRounded",style:{"max-width":"100%"}},null,-1)),e[4]||(e[4]=s.createElementVNode("br",null,null,-1)),e[5]||(e[5]=s.createElementVNode("br",null,null,-1)),s.createElementVNode("div",Bp,[s.createElementVNode("h2",zp,s.toDisplayString(n.ssoLang[n.appLanguage].login_by_scanning_qr_code),1),e[0]||(e[0]=s.createElementVNode("br",null,null,-1)),s.createElementVNode("h4",null,s.toDisplayString(n.ssoLang[n.appLanguage].open_tapni_app_on_your_phone),1),s.createElementVNode("h4",null,s.toDisplayString(n.ssoLang[n.appLanguage].go_to_settings_link_a_device),1),s.createElementVNode("h4",null,s.toDisplayString(n.ssoLang[n.appLanguage].point_your_phone_at_this_qr_code),1),e[1]||(e[1]=s.createElementVNode("br",null,null,-1)),e[2]||(e[2]=s.createElementVNode("br",null,null,-1))]),s.createVNode(l,{to:"/login"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(n.ssoLang[n.appLanguage].choose_other_login_methods),1)]),_:1})])])}const Dp=Object.freeze(Object.defineProperty({__proto__:null,default:lt(Mp,[["render",Up]])},Symbol.toStringTag,{value:"Module"})),Fp={async getRecordById(n){return he().post("/objects/record/"+n.id,n)},async getRecords(n){return he().post("/objects/records",n)}},jp={name:"AuthApps",mixins:[et],props:{payload:{type:Object,default:{}}},data(){return{loading:!1,apps:[]}},async mounted(){this.isLoggedIn||this.$router.push("/login");const n=await Fp.getRecords({objectId:"6dc545ea-2e2f-4720-b4fe-c5ebdd8af063",query:{fields:["t_apps_name","t_apps_icon","t_apps_url"],relations:[]}});this.apps=n.data.records},methods:{close(){J.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})}}},qp={class:"page-login content-boxed content-boxed-padding"},Vp={class:"subheaderContainer full-top"},Hp=["src"],Kp={class:"center-text",style:{"flex-grow":"1","text-align":"center",margin:"0","font-weight":"600"}},Gp={class:"container left-text"},$p={class:"center-text"},Qp={class:"full-top"},Wp=["href"],Yp={class:"firstRow"},Jp=["src"],Xp=["src"];function Zp(n,e,t,r,o,i){const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",qp,[n.isModal?(s.openBlock(),s.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...d)=>i.close&&i.close(...d)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},[...e[1]||(e[1]=[s.createElementVNode("i",{class:"font-17 color-black"},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)])])):s.createCommentVNode("",!0),s.createElementVNode("div",Vp,[n.isModal?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(l,{key:0,to:"/account",class:"button gray-button pointer left-button"},{default:s.withCtx(()=>[s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,Hp)]),_:1})),s.createElementVNode("h2",Kp,s.toDisplayString(n.ssoLang[n.appLanguage].apps),1)]),s.createElementVNode("div",Gp,[s.createElementVNode("p",$p,s.toDisplayString(n.ssoLang[n.appLanguage].apps_p),1),s.createElementVNode("div",Qp,[s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.apps,d=>(s.openBlock(),s.createElementBlock("a",{key:d.id,href:d.t_apps_url,target:"_blank",class:"settingRow half-bottom"},[s.createElementVNode("div",Yp,[s.createElementVNode("img",{src:n.getIcon(d.t_apps_icon),class:"withBackground"},null,8,Jp),s.createElementVNode("h4",null,s.toDisplayString(d.t_apps_name),1),s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg")},null,8,Xp)])],8,Wp))),128))])])])}const eh=Object.freeze(Object.defineProperty({__proto__:null,default:lt(jp,[["render",Zp],["__scopeId","data-v-2f7f5584"]])},Symbol.toStringTag,{value:"Module"})),th={name:"AuthCustomApp",mixins:[et],props:{payload:{type:Object,default:{}}},data(){return{loading:!1,app:{}}},async mounted(){this.isLoggedIn||this.$router.push("/login");const n=await $e.getRecordById({id:this.$route.params.app,query:{fields:["t_apps_name","t_apps_icon","t_apps_url"],relations:[]}});this.app=n.data.record},methods:{close(){J.$emit("ssoEvent",{name:"toggleAuthModal",data:!0})}}},nh={class:"page-login content-boxed content-boxed-padding"},rh={class:"subheaderContainer full-top"},oh=["src"],ih={class:"center-text",style:{"flex-grow":"1","text-align":"center",margin:"0","font-weight":"600"}},ah={class:"container left-text"},sh={class:"center-text"};function ch(n,e,t,r,o,i){const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",nh,[n.isModal?(s.openBlock(),s.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...d)=>i.close&&i.close(...d)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},[...e[1]||(e[1]=[s.createElementVNode("i",{class:"font-17 color-black"},[s.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)])])):s.createCommentVNode("",!0),s.createElementVNode("div",rh,[n.isModal?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(l,{key:0,to:"/apps",class:"button gray-button pointer left-button"},{default:s.withCtx(()=>[s.createElementVNode("img",{src:n.getIcon("arrow-gray-right.svg"),height:"20",width:"20",class:"btn-icon",style:{rotate:"180deg"}},null,8,oh)]),_:1})),s.createElementVNode("h2",ih,s.toDisplayString(o.app.t_apps_name),1)]),s.createElementVNode("div",ah,[s.createElementVNode("p",sh,s.toDisplayString(n.ssoLang[n.appLanguage].apps_p),1),e[2]||(e[2]=s.createElementVNode("div",{class:"full-top"},null,-1))])])}const lh=Object.freeze(Object.defineProperty({__proto__:null,default:lt(th,[["render",ch],["__scopeId","data-v-36b27d1f"]])},Symbol.toStringTag,{value:"Module"}));class dh extends ct.WebPlugin{constructor(){super()}loadScript(){if(typeof document>"u")return;const e="gapi";if(document==null?void 0:document.getElementById(e))return;const r=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.defer=!0,o.async=!0,o.id=e,o.onload=this.platformJsLoaded.bind(this),o.src="https://apis.google.com/js/platform.js",r.appendChild(o)}initialize(e={clientId:"",scopes:[],grantOfflineAccess:!1}){var t,r;if(typeof window>"u")return;const o=(t=document.getElementsByName("google-signin-client_id")[0])===null||t===void 0?void 0:t.content,i=e.clientId||o||"";return i||console.warn("GoogleAuthPlugin - clientId is empty"),this.options={clientId:i,grantOfflineAccess:(r=e.grantOfflineAccess)!==null&&r!==void 0?r:!1,scopes:e.scopes||[]},this.gapiLoaded=new Promise(l=>{window.gapiResolve=l,this.loadScript()}),this.addUserChangeListener(),this.gapiLoaded}platformJsLoaded(){gapi.load("auth2",()=>{const e={client_id:this.options.clientId,plugin_name:"CodetrixStudioCapacitorGoogleAuth"};this.options.scopes.length&&(e.scope=this.options.scopes.join(" ")),gapi.auth2.init(e),window.gapiResolve()})}async signIn(){return new Promise(async(e,t)=>{var r;try{let o;const i=(r=this.options.grantOfflineAccess)!==null&&r!==void 0?r:!1;i?o=(await gapi.auth2.getAuthInstance().grantOfflineAccess()).code:await gapi.auth2.getAuthInstance().signIn();const l=gapi.auth2.getAuthInstance().currentUser.get();i&&await l.reloadAuthResponse();const d=this.getUserFrom(l);d.serverAuthCode=o,e(d)}catch(o){t(o)}})}async refresh(){const e=await gapi.auth2.getAuthInstance().currentUser.get().reloadAuthResponse();return{accessToken:e.access_token,idToken:e.id_token,refreshToken:""}}async signOut(){return gapi.auth2.getAuthInstance().signOut()}async addUserChangeListener(){await this.gapiLoaded,gapi.auth2.getAuthInstance().currentUser.listen(e=>{this.notifyListeners("userChange",e.isSignedIn()?this.getUserFrom(e):null)})}getUserFrom(e){const t={},r=e.getBasicProfile();t.email=r.getEmail(),t.familyName=r.getFamilyName(),t.givenName=r.getGivenName(),t.id=r.getId(),t.imageUrl=r.getImageUrl(),t.name=r.getName();const o=e.getAuthResponse(!0);return t.authentication={accessToken:o.access_token,idToken:o.id_token,refreshToken:""},t}}const uh=Object.freeze(Object.defineProperty({__proto__:null,GoogleAuthWeb:dh},Symbol.toStringTag,{value:"Module"}));var vi={exports:{}};/*!
164
169
  * $script.js JS loader & dependency manager
165
170
  * https://github.com/ded/script.js
166
171
  * (c) Dustin Diaz 2014 | License MIT
167
- */(function(n){(function(e,t){n.exports?n.exports=t():this[e]=t()})("$script",function(){var e=document,t=e.getElementsByTagName("head")[0],o=!1,r="push",i="readyState",s="onreadystatechange",c={},l={},h={},u,g;function f(M,j){for(var N=0,T=M.length;N<T;++N)if(!j(M[N]))return o;return 1}function w(M,j){f(M,function(N){return j(N),1})}function C(M,j,N){M=M[r]?M:[M];var T=j&&j.call,B=T?j:N,V=T?M.join(""):j,G=M.length;function J(W){return W.call?W():c[W]}function I(){if(!--G){c[V]=1,B&&B();for(var W in l)f(W.split("|"),J)&&!w(l[W],J)&&(l[W]=[])}}return setTimeout(function(){w(M,function W(ie,ee){if(ie===null)return I();if(!ee&&!/^https?:\/\//.test(ie)&&u&&(ie=ie.indexOf(".js")===-1?u+ie+".js":u+ie),h[ie])return h[ie]==2?I():setTimeout(function(){W(ie,!0)},0);h[ie]=1,P(ie,I)})},0),C}function P(M,j){var N=e.createElement("script"),T;N.onload=N.onerror=N[s]=function(){N[i]&&!/^c|loade/.test(N[i])||T||(N.onload=N[s]=null,T=1,h[M]=2,j())},N.async=1,N.src=g?M+(M.indexOf("?")===-1?"?":"&")+g:M,t.insertBefore(N,t.lastChild)}return C.get=P,C.order=function(M,j,N){(function T(B){B=M.shift(),M.length?C(B,T):C(B,j,N)})()},C.path=function(M){u=M},C.urlArgs=function(M){g=M},C.ready=function(M,j,N){M=M[r]?M:[M];var T=[];return!w(M,function(B){c[B]||T[r](B)})&&f(M,function(B){return c[B]})?j():function(B){l[B]=l[B]||[],l[B][r](j),N&&N(T)}(M.join("|")),C},C.done=function(M){C([null],M)},C})})(ui);var Qp=ui.exports;class Wp extends tt.WebPlugin{constructor(){super({name:"SignInWithApple",platforms:["web"]}),this.appleScriptUrl="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",this.isAppleScriptLoaded=!1}async authorize(e){return new Promise((t,o)=>{e?this.loadSignInWithAppleJS().then(r=>{var i,s,c;this.isAppleScriptLoaded=r,this.isAppleScriptLoaded?(AppleID.auth.init({clientId:e.clientId,redirectURI:e.redirectURI,scope:(i=e.scopes)!==null&&i!==void 0?i:void 0,state:(s=e.state)!==null&&s!==void 0?s:void 0,nonce:(c=e.nonce)!==null&&c!==void 0?c:void 0,usePopup:!0}),AppleID.auth.signIn().then(l=>{var h,u,g,f,w;const C={response:{user:null,email:(h=l.user)===null||h===void 0?void 0:h.email,givenName:(g=(u=l.user)===null||u===void 0?void 0:u.name)===null||g===void 0?void 0:g.firstName,familyName:(w=(f=l.user)===null||f===void 0?void 0:f.name)===null||w===void 0?void 0:w.lastName,identityToken:l.authorization.id_token,authorizationCode:l.authorization.code}};t(C)}).catch(l=>{o(l)})):o("Unable to load Sign in with Apple JS framework.")}):o("No options were provided.")})}loadSignInWithAppleJS(){return new Promise(e=>{this.isAppleScriptLoaded?e(!0):typeof window!==void 0?Qp.get(this.appleScriptUrl,()=>e(!0)):e(!1)})}}const Yp=Object.freeze(Object.defineProperty({__proto__:null,SignInWithAppleWeb:Wp},Symbol.toStringTag,{value:"Module"}));class Jp extends tt.WebPlugin{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],o=[],r="_cap_",i=Object.keys(this.impl).filter(s=>s.indexOf(r)===0);for(const s of i){const c=s.substring(r.length),l=(e=this.impl.getItem(s))!==null&&e!==void 0?e:"",{value:h}=await this.get({key:c});typeof h=="string"?o.push(c):(await this.set({key:c,value:l}),t.push(c))}return{migrated:t,existing:o}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(o=>o.indexOf(e)===0);for(const o of t)this.impl.removeItem(o)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}const Xp=Object.freeze(Object.defineProperty({__proto__:null,PreferencesWeb:Jp},Symbol.toStringTag,{value:"Module"}));return hp});
172
+ */(function(n){(function(e,t){n.exports?n.exports=t():this[e]=t()})("$script",function(){var e=document,t=e.getElementsByTagName("head")[0],r=!1,o="push",i="readyState",l="onreadystatechange",d={},h={},f={},u,y;function _(M,F){for(var N=0,S=M.length;N<S;++N)if(!F(M[N]))return r;return 1}function k(M,F){_(M,function(N){return F(N),1})}function T(M,F,N){M=M[o]?M:[M];var S=F&&F.call,z=S?F:N,V=S?M.join(""):F,G=M.length;function Z(W){return W.call?W():d[W]}function A(){if(!--G){d[V]=1,z&&z();for(var W in h)_(W.split("|"),Z)&&!k(h[W],Z)&&(h[W]=[])}}return setTimeout(function(){k(M,function W(ae,re){if(ae===null)return A();if(!re&&!/^https?:\/\//.test(ae)&&u&&(ae=ae.indexOf(".js")===-1?u+ae+".js":u+ae),f[ae])return f[ae]==2?A():setTimeout(function(){W(ae,!0)},0);f[ae]=1,O(ae,A)})},0),T}function O(M,F){var N=e.createElement("script"),S;N.onload=N.onerror=N[l]=function(){N[i]&&!/^c|loade/.test(N[i])||S||(N.onload=N[l]=null,S=1,f[M]=2,F())},N.async=1,N.src=y?M+(M.indexOf("?")===-1?"?":"&")+y:M,t.insertBefore(N,t.lastChild)}return T.get=O,T.order=function(M,F,N){(function S(z){z=M.shift(),M.length?T(z,S):T(z,F,N)})()},T.path=function(M){u=M},T.urlArgs=function(M){y=M},T.ready=function(M,F,N){M=M[o]?M:[M];var S=[];return!k(M,function(z){d[z]||S[o](z)})&&_(M,function(z){return d[z]})?F():function(z){h[z]=h[z]||[],h[z][o](F),N&&N(S)}(M.join("|")),T},T.done=function(M){T([null],M)},T})})(vi);var ph=vi.exports;class hh extends ct.WebPlugin{constructor(){super({name:"SignInWithApple",platforms:["web"]}),this.appleScriptUrl="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",this.isAppleScriptLoaded=!1}async authorize(e){return new Promise((t,r)=>{e?this.loadSignInWithAppleJS().then(o=>{var i,l,d;this.isAppleScriptLoaded=o,this.isAppleScriptLoaded?(AppleID.auth.init({clientId:e.clientId,redirectURI:e.redirectURI,scope:(i=e.scopes)!==null&&i!==void 0?i:void 0,state:(l=e.state)!==null&&l!==void 0?l:void 0,nonce:(d=e.nonce)!==null&&d!==void 0?d:void 0,usePopup:!0}),AppleID.auth.signIn().then(h=>{var f,u,y,_,k;const T={response:{user:null,email:(f=h.user)===null||f===void 0?void 0:f.email,givenName:(y=(u=h.user)===null||u===void 0?void 0:u.name)===null||y===void 0?void 0:y.firstName,familyName:(k=(_=h.user)===null||_===void 0?void 0:_.name)===null||k===void 0?void 0:k.lastName,identityToken:h.authorization.id_token,authorizationCode:h.authorization.code}};t(T)}).catch(h=>{r(h)})):r("Unable to load Sign in with Apple JS framework.")}):r("No options were provided.")})}loadSignInWithAppleJS(){return new Promise(e=>{this.isAppleScriptLoaded?e(!0):typeof window!==void 0?ph.get(this.appleScriptUrl,()=>e(!0)):e(!1)})}}const mh=Object.freeze(Object.defineProperty({__proto__:null,SignInWithAppleWeb:hh},Symbol.toStringTag,{value:"Module"}));class fh extends ct.WebPlugin{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],r=[],o="_cap_",i=Object.keys(this.impl).filter(l=>l.indexOf(o)===0);for(const l of i){const d=l.substring(o.length),h=(e=this.impl.getItem(l))!==null&&e!==void 0?e:"",{value:f}=await this.get({key:d});typeof f=="string"?r.push(d):(await this.set({key:d,value:h}),t.push(d))}return{migrated:t,existing:r}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(r=>r.indexOf(e)===0);for(const r of t)this.impl.removeItem(r)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}const gh=Object.freeze(Object.defineProperty({__proto__:null,PreferencesWeb:fh},Symbol.toStringTag,{value:"Module"}));return Pp});