PageSourceSearch

https://ui.eidr.org/_next/static/chunks/7859-183f744a44df8db2.js

js eidr.org collected 2026-09-24 08:43:58 UTC 556,801 bytes, 381 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7859],{19:function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/),t.normalize=function(e){return e.toLowerCase()},t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},t.stripPrefix=function(t){return t.replace(e,"")},t.parseNumbers=function(e){return isNaN(e)||(e=e%1==0?parseInt(e,10):parseFloat(e)),e},t.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e="true"===e.toLowerCase()),e}}).call(this)},603:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PageSignatureError:function(){return r},RemovedPageError:function(){return n},RemovedUAError:function(){return i}});class r extends Error{constructor({page:e}){super(`The middleware "${e}" accepts an async API directly with the form:
2  
3  export function middleware(request, event) {
4    return NextResponse.redirect('/new-location')
5  }
6  
7  Read more: https://nextjs.org/docs/messages/middleware-new-signature
8  `)}}class n extends Error{constructor(){super(`The request.page has been deprecated in favour of \`URLPattern\`.
9  Read more: https://nextjs.org/docs/messages/middleware-request-page
10  `)}}class i extends Error{constructor(){super(`The request.ua has been removed in favour of \`userAgent\` function.
11  Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
12  `)}}},1504:(e,t,r)=>{var n,i=r(87358),o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(s(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),c=n[r];r<i;c=n[++r])y(c)||!x(c)?a+=" "+c:a+=" "+s(c);return a},t.deprecate=function(e,n){if(g(r.g.process))return function(){return t.deprecate(e,n).apply(this,arguments)};if(!0===i.noDeprecation)return e;var o=!1;return function(){if(!o){if(i.throwDeprecation)throw Error(n);i.traceDeprecation?console.trace(n):console.error(n),o=!0}return e.apply(this,arguments)}};var a={};function s(e,r){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),g(n.showHidden)&&(n.showHidden=!1),g(n.depth)&&(n.depth=2),g(n.colors)&&(n.colors=!1),g(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),l(n,e,n.depth)}function c(e,t){var r=s.styles[t];return r?"\x1b["+s.colors[r][0]+"m"+e+"\x1b["+s.colors[r][1]+"m":e}function u(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&E(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o,a,s,c,u,x=r.inspect(n,e);return b(x)||(x=l(e,x,n)),x}var S=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,r);if(S)return S;var A=Object.keys(r),T=(c={},A.forEach(function(e,t){c[e]=!0}),c);if(e.showHidden&&(A=Object.getOwnPropertyNames(r)),_(r)&&(A.indexOf("message")>=0||A.indexOf("description")>=0))return d(r);if(0===A.length){if(E(r)){var R=r.name?": "+r.name:"";return e.stylize("[Function"+R+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(v(r))return e.stylize(Date.prototype.toString.call(r),"date");if(_(r))return d(r)}var O="",P=!1,C=["{","}"];if(h(r)&&(P=!0,C=["[","]"]),E(r)&&(O=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(O=" "+RegExp.prototype.toString.call(r)),v(r)&&(O=" "+Date.prototype.toUTCString.call(r)),_(r)&&(O=" "+d(r)),0===A.length&&(!P||0==r.length))return C[0]+O+C[1];if(n<0)if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),u=P?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)k(t,String(a))?o.push(f(e,t,r,n,String(a),!0)):o.push("");
12return i.forEach(function(i){i.match(/^\d+$/)||o.push(f(e,t,r,n,i,!0))}),o}(e,r,n,T,A):A.map(function(t){return f(e,r,n,T,t,P)}),e.seen.pop(),i=u,o=O,a=C,s=0,i.reduce(function(e,t){return s++,t.indexOf("\n")>=0&&s++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?a[0]+(""===o?"":o+"\n ")+" "+i.join(",\n  ")+" "+a[1]:a[0]+o+" "+i.join(", ")+" "+a[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),k(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(c.value)?(s=y(r)?l(e,c.value,null):l(e,c.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),g(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function y(e){return null===e}function m(e){return"number"==typeof e}function b(e){return"string"==typeof e}function g(e){return void 0===e}function w(e){return x(e)&&"[object RegExp]"===S(e)}function x(e){return"object"==typeof e&&null!==e}function v(e){return x(e)&&"[object Date]"===S(e)}function _(e){return x(e)&&("[object Error]"===S(e)||e instanceof Error)}function E(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(g(n)&&(n=i.env.NODE_DEBUG||""),!a[e=e.toUpperCase()])if(RegExp("\\b"+e+"\\b","i").test(n)){var r=i.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=p,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=g,t.isRegExp=w,t.isObject=x,t.isDate=v,t.isError=_,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(9742);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(r=[A((e=new Date).getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":"),[e.getDate(),T[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(84115),t._extend=function(e,t){if(!t||!x(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}},1950:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});let n=r(84074),i=r(91747);function o(e,t,r,o){if(!t||t===r)return e;let a=e.toLowerCase();return!o&&((0,i.pathHasPrefix)(a,"/api")||(0,i.pathHasPrefix)(a,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},4117:(e,t,r)=>{"use strict";var n=r(87358);Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{atLeastOneTask:function(){return a},scheduleImmediate:function(){return o},scheduleOnNextTick:function(){return i},waitAtLeastOneReactRenderTask:function(){return s}});let i=e=>{Promise.resolve().then(()=>{n.nextTick(e)})},o=e=>{setImmediate(e)};function a(){return new Promise(e=>o(e))}function s(){return new Promise(e=>setImmediate(e))}},4258:function(e,t,r){(function(){var t,n=function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t=r(28672),e.exports=function(e){function r(e,n,i){if(r.__super__.constructor.call(this,e),null==n)throw Error("Missing instruction target. "+this.debugInfo());this.type=t.ProcessingInstruction,this.target=this.stringify.insTarget(n),this.name=this.target,i&&(this.value=this.stringify.insValue(i))}return n(r,e),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(e){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(e))},r.prototype.isEqualNode=function(e){return!!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.target===this.target},r}(r(51816))}).call(this)},5867:function(e,t,r){(function(){var t,n,i,o=function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},a={}.hasOwnProperty;i=r(86200).isObject,n=r(20117),t=r(28672),e.exports=function(e){function r(e,n,o,a){var s;r.__super__.constructor.call(this,e),i(n)&&(n=(s=n).version,o=s.encoding,a=s.standalone),n||(n="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(n),null!=o&&(this.encoding=this.stringify.xmlEncoding(o)),null!=a&&(this.standalone=this.stringify.xmlStandalone(a))}return o(r,e),r.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},r}(n)}).call(this)},6493:(e,t,r)=>{"use strict";
12Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return i}});let n=r(91747);function i(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},7973:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(87559);let i=(e,t)=>{let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:parseInt(e.slice(-3),10)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"Ed25519":case"EdDSA":return{name:"Ed25519"};default:throw new n.T0(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}},8278:function(e,t,r){e.exports=function(e){var t=e.lib.WordArray,r=e.enc;function n(e){return e<<8&0xff00ff00|e>>>8&0xff00ff}return r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i<r;i++)n[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],o=0;o<r;o+=2){var a=n(t[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var r=e.length,i=[],o=0;o<r;o++)i[o>>>1]|=n(e.charCodeAt(o)<<16-o%2*16);return t.create(i,2*r)}},e.enc.Utf16}(r(23652))},8832:function(e,t,r){var n,i,o;e.exports=void(i=(n=r(23652)).lib.Base,o=n.enc.Utf8,n.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,c=a.words,u=0;u<r;u++)s[u]^=0x5c5c5c5c,c[u]^=0x36363636;i.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}}))},9349:function(e,t,r){var n;n=r(23652),r(51609),function(){var e=n.lib.Hasher,t=n.x64,r=t.Word,i=t.WordArray,o=n.algo;function a(){return r.create.apply(r,arguments)}for(var s=[a(0x428a2f98,0xd728ae22),a(0x71374491,0x23ef65cd),a(0xb5c0fbcf,0xec4d3b2f),a(0xe9b5dba5,0x8189dbbc),a(0x3956c25b,0xf348b538),a(0x59f111f1,0xb605d019),a(0x923f82a4,0xaf194f9b),a(0xab1c5ed5,0xda6d8118),a(0xd807aa98,0xa3030242),a(0x12835b01,0x45706fbe),a(0x243185be,0x4ee4b28c),a(0x550c7dc3,0xd5ffb4e2),a(0x72be5d74,0xf27b896f),a(0x80deb1fe,0x3b1696b1),a(0x9bdc06a7,0x25c71235),a(0xc19bf174,0xcf692694),a(0xe49b69c1,0x9ef14ad2),a(0xefbe4786,0x384f25e3),a(0xfc19dc6,0x8b8cd5b5),a(0x240ca1cc,0x77ac9c65),a(0x2de92c6f,0x592b0275),a(0x4a7484aa,0x6ea6e483),a(0x5cb0a9dc,0xbd41fbd4),a(0x76f988da,0x831153b5),a(0x983e5152,0xee66dfab),a(0xa831c66d,0x2db43210),a(0xb00327c8,0x98fb213f),a(0xbf597fc7,0xbeef0ee4),a(0xc6e00bf3,0x3da88fc2),a(0xd5a79147,0x930aa725),a(0x6ca6351,0xe003826f),a(0x14292967,0xa0e6e70),a(0x27b70a85,0x46d22ffc),a(0x2e1b2138,0x5c26c926),a(0x4d2c6dfc,0x5ac42aed),a(0x53380d13,0x9d95b3df),a(0x650a7354,0x8baf63de),a(0x766a0abb,0x3c77b2a8),a(0x81c2c92e,0x47edaee6),a(0x92722c85,0x1482353b),a(0xa2bfe8a1,0x4cf10364),a(0xa81a664b,0xbc423001),a(0xc24b8b70,0xd0f89791),a(0xc76c51a3,0x654be30),a(0xd192e819,0xd6ef5218),a(0xd6990624,0x5565a910),a(0xf40e3585,0x5771202a),a(0x106aa070,0x32bbd1b8),a(0x19a4c116,0xb8d2d0c8),a(0x1e376c08,0x5141ab53),a(0x2748774c,0xdf8eeb99),a(0x34b0bcb5,0xe19b48a8),a(0x391c0cb3,0xc5c95a63),a(0x4ed8aa4a,0xe3418acb),a(0x5b9cca4f,0x7763e373),a(0x682e6ff3,0xd6b2b8a3),a(0x748f82ee,0x5defb2fc),a(0x78a5636f,0x43172f60),a(0x84c87814,0xa1f0ab72),a(0x8cc70208,0x1a6439ec),a(0x90befffa,0x23631e28),a(0xa4506ceb,0xde82bde9),a(0xbef9a3f7,0xb2c67915),a(0xc67178f2,0xe372532b),a(0xca273ece,0xea26619c),a(0xd186b8c7,0x21c0c207),a(0xeada7dd6,0xcde0eb1e),a(0xf57d4f7f,0xee6ed178),a(0x6f067aa,0x72176fba),a(0xa637dc5,0xa2c898a6),a(0x113f9804,0xbef90dae),a(0x1b710b35,0x131c471b),a(0x28db77f5,0x23047d84),a(0x32caab7b,0x40c72493),a(0x3c9ebe0a,0x15c9bebc),a(0x431d67c4,0x9c100d4c),a(0x4cc5d4be,0xcb3e42b6),a(0x597f299c,0xfc657e2a),a(0x5fcb6fab,0x3ad6faec),a(0x6c44198c,0x4a475817)],c=[],u=0;u<80;u++)c[u]=a();var l=o.SHA512=e.extend({_doReset:function(){this._hash=new i.init([new r.init(0x6a09e66
127,0xf3bcc908),new r.init(0xbb67ae85,0x84caa73b),new r.init(0x3c6ef372,0xfe94f82b),new r.init(0xa54ff53a,0x5f1d36f1),new r.init(0x510e527f,0xade682d1),new r.init(0x9b05688c,0x2b3e6c1f),new r.init(0x1f83d9ab,0xfb41bd6b),new r.init(0x5be0cd19,0x137e2179)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],u=r[4],l=r[5],d=r[6],f=r[7],h=n.high,p=n.low,y=i.high,m=i.low,b=o.high,g=o.low,w=a.high,x=a.low,v=u.high,_=u.low,E=l.high,S=l.low,A=d.high,T=d.low,k=f.high,R=f.low,O=h,P=p,C=y,D=m,I=b,N=g,j=w,U=x,L=v,M=_,H=E,B=S,W=A,$=T,F=k,K=R,z=0;z<80;z++){var q,J,V=c[z];if(z<16)J=V.high=0|e[t+2*z],q=V.low=0|e[t+2*z+1];else{var G=c[z-15],X=G.high,Y=G.low,Q=(X>>>1|Y<<31)^(X>>>8|Y<<24)^X>>>7,Z=(Y>>>1|X<<31)^(Y>>>8|X<<24)^(Y>>>7|X<<25),ee=c[z-2],et=ee.high,er=ee.low,en=(et>>>19|er<<13)^(et<<3|er>>>29)^et>>>6,ei=(er>>>19|et<<13)^(er<<3|et>>>29)^(er>>>6|et<<26),eo=c[z-7],ea=eo.high,es=eo.low,ec=c[z-16],eu=ec.high,el=ec.low;J=Q+ea+ +((q=Z+es)>>>0<Z>>>0),q+=ei,J=J+en+ +(q>>>0<ei>>>0),q+=el,V.high=J=J+eu+ +(q>>>0<el>>>0),V.low=q}var ed=L&H^~L&W,ef=M&B^~M&$,eh=O&C^O&I^C&I,ep=P&D^P&N^D&N,ey=(O>>>28|P<<4)^(O<<30|P>>>2)^(O<<25|P>>>7),em=(P>>>28|O<<4)^(P<<30|O>>>2)^(P<<25|O>>>7),eb=(L>>>14|M<<18)^(L>>>18|M<<14)^(L<<23|M>>>9),eg=(M>>>14|L<<18)^(M>>>18|L<<14)^(M<<23|L>>>9),ew=s[z],ex=ew.high,ev=ew.low,e_=K+eg,eE=F+eb+ +(e_>>>0<K>>>0),e_=e_+ef,eE=eE+ed+ +(e_>>>0<ef>>>0),e_=e_+ev,eE=eE+ex+ +(e_>>>0<ev>>>0),e_=e_+q,eE=eE+J+ +(e_>>>0<q>>>0),eS=em+ep,eA=ey+eh+ +(eS>>>0<em>>>0);F=W,K=$,W=H,$=B,H=L,B=M,L=j+eE+ +((M=U+e_|0)>>>0<U>>>0)|0,j=I,U=N,I=C,N=D,C=O,D=P,O=eE+eA+ +((P=e_+eS|0)>>>0<e_>>>0)|0}p=n.low=p+P,n.high=h+O+ +(p>>>0<P>>>0),m=i.low=m+D,i.high=y+C+ +(m>>>0<D>>>0),g=o.low=g+N,o.high=b+I+ +(g>>>0<N>>>0),x=a.low=x+U,a.high=w+j+ +(x>>>0<U>>>0),_=u.low=_+M,u.high=v+L+ +(_>>>0<M>>>0),S=l.low=S+B,l.high=E+H+ +(S>>>0<B>>>0),T=d.low=T+$,d.high=A+W+ +(T>>>0<$>>>0),R=f.low=R+K,f.high=k+F+ +(R>>>0<K>>>0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[(n+128>>>10<<5)+30]=Math.floor(r/0x100000000),t[(n+128>>>10<<5)+31]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});n.SHA512=e._createHelper(l),n.HmacSHA512=e._createHmacHelper(l)}(),e.exports=n.SHA512},9403:function(e,t,r){var n;n=r(23652),r(35883),r(28261),r(25371),r(40092),function(){var e=n.lib.StreamCipher,t=n.algo,r=[],i=[],o=[],a=t.Rabbit=e.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=(e[r]<<8|e[r]>>>24)&0xff00ff|(e[r]<<24|e[r]>>>8)&0xff00ff00;var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,0xffff0000&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,0xffff0000&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,0xffff0000&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,0xffff0000&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)s.call(this);for(var r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],c=o[1],u=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00,l=(c<<8|c>>>24)&0xff00ff|(c<<24|c>>>8)&0xff00ff00,d=u>>>16|0xffff0000&l,f=l<<16|65535&u;i[0]^=u,i[1]^=d,i[2]^=l,i[3]^=f,i[4]^=u,i[5]^=d,i[6]^=l,i[7]^=f;for(var r=0;r<4;r++)s.call(this)}},_doProcessBlock:function(e,t){var n=this._X;s.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=(r[i]<<8|r[i]>>>24)&0xff00ff|(r[i]<<24|r[i]>>>8)&0xff00ff00,e[t+i]^=r[i]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];t[0]=t[0]+0x4d34d34d+this._b|0,t[1]=t[1]+0xd34d34d3+ +(t[0]>>>0<i[0]>>>0)|0,t[2]=t[2]+0x34d34d34+ +(t[1]>>>0<i[1]>>>0)|0,t[3]=t[3]+0x4d34d34d+ +(t[2]>>>0<i[2]>>>0)|0,t[4]=t[4]+0xd34d34d3+ +(t[3]>>>0<i[3]>>>0)|0,t[5]=t[5]+0x34d34d34+ +(t[4]>>>0<i[4]>>>0)|0,t[6]=t[6]+0x4d34d34d+ +(t[5]>>>0<i[5]>>>0)|0,t[7]=t[7]+0xd34d34d3+ +(t[6]>>>0<i[6]>>>0)|0,this._b=+(t[7]>>>0<i[7]>>>0);for(var r=0;r<8;r++){var n=e[r]+t[r],a=65535&n,s=n>>>16,c=((a*a>>>17)+a*s>>>15)+s*s,u=((0xffff0000&n)*n|0)+((65535&n)*n|0);o[r]=c^u}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}n.Rabbit=e._createHelper(a)}(),e.exports=n.Rabbit},9597:(e,t,r)=>{"use strict";
12Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getDraftModeProviderForCacheScope:function(){return l},getExpectedRequestStore:function(){return o},getHmrRefreshHash:function(){return u},getPrerenderResumeDataCache:function(){return s},getRenderResumeDataCache:function(){return c},throwForMissingRequestStore:function(){return a},workUnitAsyncStorage:function(){return n.workUnitAsyncStorageInstance}});let n=r(74931),i=r(27988);function o(e){let t=n.workUnitAsyncStorageInstance.getStore();switch(!t&&a(e),t.type){case"request":default:return t;case"prerender":case"prerender-ppr":case"prerender-legacy":throw Object.defineProperty(Error(`\`${e}\` cannot be called inside a prerender. This is a bug in Next.js.`),"__NEXT_ERROR_CODE",{value:"E401",enumerable:!1,configurable:!0});case"cache":throw Object.defineProperty(Error(`\`${e}\` cannot be called inside "use cache". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E37",enumerable:!1,configurable:!0});case"unstable-cache":throw Object.defineProperty(Error(`\`${e}\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E69",enumerable:!1,configurable:!0})}}function a(e){throw Object.defineProperty(Error(`\`${e}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E251",enumerable:!1,configurable:!0})}function s(e){return"prerender"===e.type||"prerender-ppr"===e.type?e.prerenderResumeDataCache:null}function c(e){return"prerender-legacy"!==e.type&&"cache"!==e.type&&"unstable-cache"!==e.type?"request"===e.type?e.renderResumeDataCache:e.prerenderResumeDataCache:null}function u(e,t){var r;if(e.dev)return"cache"===t.type||"prerender"===t.type?t.hmrRefreshHash:"request"===t.type?null==(r=t.cookies.get(i.NEXT_HMR_REFRESH_HASH_COOKIE))?void 0:r.value:void 0}function l(e,t){if(e.isDraftMode)switch(t.type){case"cache":case"unstable-cache":case"request":return t.draftMode}}},9742:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},10064:(e,t,r)=>{"use strict";Object.defineProperty(t,"b",{enumerable:!0,get:function(){return d}});let n=r(76688),i=r(85744),o=r(9597),a=r(87101),s=r(11881),c=r(44536),u=r(35260),l=(r(4117),r(65867));function d(){let e=i.workAsyncStorage.getStore(),t=o.workUnitAsyncStorage.getStore();if(e){if(t&&"after"===t.phase&&!(0,l.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${e.route} used "headers" inside "after(...)". This is not supported. If you need this data inside an "after" callback, use "headers" outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E367",enumerable:!1,configurable:!0});if(e.forceStatic)return h(n.HeadersAdapter.seal(new Headers({})));if(t){if("cache"===t.type)throw Object.defineProperty(Error(`Route ${e.route} used "headers" inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "headers" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E304",enumerable:!1,configurable:!0});else if("unstable-cache"===t.type)throw Object.defineProperty(Error(`Route ${e.route} used "headers" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "headers" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E127",enumerable:!1,
12configurable:!0})}if(e.dynamicShouldError)throw Object.defineProperty(new s.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E525",enumerable:!1,configurable:!0});if(t)if("prerender"===t.type){var r=e.route,u=t;let n=f.get(u);if(n)return n;let i=(0,c.makeHangingPromise)(u.renderSignal,"`headers()`");return f.set(u,i),Object.defineProperties(i,{append:{value:function(){let e=`\`headers().append(${p(arguments[0])}, ...)\``,t=m(r,e);(0,a.abortAndThrowOnSynchronousRequestDataAccess)(r,e,t,u)}},delete:{value:function(){let e=`\`headers().delete(${p(arguments[0])})\``,t=m(r,e);(0,a.abortAndThrowOnSynchronousRequestDataAccess)(r,e,t,u)}},get:{value:function(){let e=`\`headers().get(${p(arguments[0])})\``,t=m(r,e);(0,a.abortAndThrowOnSynchronousRequestDataAccess)(r,e,t,u)}},has:{value:function(){let e=`\`headers().has(${p(arguments[0])})\``,t=m(r,e);(0,a.abortAndThrowOnSynchronousRequestDataAccess)(r,e,t,u)}},set:{value:function(){let e=`\`headers().set(${p(arguments[0])}, ...)\``,t=m(r,e);(0,a.abortAndThrowOnSynchronousRequestDataAccess)(r,e,t,u)}},getSetCookie:{value:function(){let e="`headers().getSetCookie()`",t=m(r,e);(0,a.abortAndThrowOnSynchronousRequestDataAccess)(r,e,t,u)}},forEach:{value:function(){let e="`headers().forEach(...)`",t=m(r,e);(0,a.abortAndThrowOnSynchronousRequestDataAccess)(r,e,t,u)}},keys:{value:function(){let e="`headers().keys()`",t=m(r,e);(0,a.abortAndThrowOnSynchronousRequestDataAccess)(r,e,t,u)}},values:{value:function(){let e="`headers().values()`",t=m(r,e);(0,a.abortAndThrowOnSynchronousRequestDataAccess)(r,e,t,u)}},entries:{value:function(){let e="`headers().entries()`",t=m(r,e);(0,a.abortAndThrowOnSynchronousRequestDataAccess)(r,e,t,u)}},[Symbol.iterator]:{value:function(){let e="`headers()[Symbol.iterator]()`",t=m(r,e);(0,a.abortAndThrowOnSynchronousRequestDataAccess)(r,e,t,u)}}}),i}else"prerender-ppr"===t.type?(0,a.postponeWithTracking)(e.route,"headers",t.dynamicTracking):"prerender-legacy"===t.type&&(0,a.throwToInterruptStaticGeneration)("headers",e,t);(0,a.trackDynamicDataInDynamicRender)(e,t)}return h((0,o.getExpectedRequestStore)("headers").headers)}let f=new WeakMap;function h(e){let t=f.get(e);if(t)return t;let r=Promise.resolve(e);return f.set(e,r),Object.defineProperties(r,{append:{value:e.append.bind(e)},delete:{value:e.delete.bind(e)},get:{value:e.get.bind(e)},has:{value:e.has.bind(e)},set:{value:e.set.bind(e)},getSetCookie:{value:e.getSetCookie.bind(e)},forEach:{value:e.forEach.bind(e)},keys:{value:e.keys.bind(e)},values:{value:e.values.bind(e)},entries:{value:e.entries.bind(e)},[Symbol.iterator]:{value:e[Symbol.iterator].bind(e)}}),r}function p(e){return"string"==typeof e?`'${e}'`:"..."}let y=(0,u.createDedupedByCallsiteServerErrorLoggerDev)(m);function m(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`headers()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E277",enumerable:!1,configurable:!0})}},11395:function(e,t,r){var n;n=r(23652),r(35883),r(28261),r(25371),r(40092),function(){var e=n.lib.StreamCipher,t=n.algo,r=t.RC4=e.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;for(var i=0,o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}n.RC4=e._createHelper(r);var o=t.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});n.RC4Drop=e._createHelper(o)}(),e.exports=n.RC4},11881:(e,t)=>{"use strict";
12Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{StaticGenBailoutError:function(){return n},isStaticGenBailoutError:function(){return i}});let r="NEXT_STATIC_GEN_BAILOUT";class n extends Error{constructor(...e){super(...e),this.code=r}}function i(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12309:function(e,t,r){var n,i,o,a,s;n=r(23652),r(13656),i=n.lib.WordArray,a=(o=n.algo).SHA256,s=o.SHA224=a.extend({_doReset:function(){this._hash=new i.init([0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=a._createHelper(s),n.HmacSHA224=a._createHmacHelper(s),e.exports=n.SHA224},13656:function(e,t,r){var n;n=r(23652),function(e){var t=n.lib,r=t.WordArray,i=t.Hasher,o=n.algo,a=[],s=[];function c(e){return(e-(0|e))*0x100000000|0}for(var u=2,l=0;l<64;)(function(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0})(u)&&(l<8&&(a[l]=c(e.pow(u,.5))),s[l]=c(e.pow(u,1/3)),l++),u++;var d=[],f=o.SHA256=i.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],c=r[4],u=r[5],l=r[6],f=r[7],h=0;h<64;h++){if(h<16)d[h]=0|e[t+h];else{var p=d[h-15],y=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=d[h-2],b=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;d[h]=y+d[h-7]+b+d[h-16]}var g=c&u^~c&l,w=n&i^n&o^i&o,x=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),v=f+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+g+s[h]+d[h],_=x+w;f=l,l=u,u=c,c=a+v|0,a=o,o=i,i=n,n=v+_|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0,r[5]=r[5]+u|0,r[6]=r[6]+l|0,r[7]=r[7]+f|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[(i+64>>>9<<4)+14]=e.floor(n/0x100000000),r[(i+64>>>9<<4)+15]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(f),n.HmacSHA256=i._createHmacHelper(f)}(Math),e.exports=n.SHA256},15019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return i}});let n=r(70427);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:i,hash:o}=(0,n.parsePath)(e);return""+r+t+i+o}},15048:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{fromNodeOutgoingHttpHeaders:function(){return i},normalizeNextQueryParam:function(){return c},splitCookiesString:function(){return o},toNodeOutgoingHttpHeaders:function(){return a},validateURL:function(){return s}});let n=r(83633);function i(e){let t=new Headers;for(let[r,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])void 0!==e&&("number"==typeof e&&(e=e.toString()),t.append(r,e));return t}function o(e){var t,r,n,i,o,a=[],s=0;function c(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,o=!1;c();)if(","===(r=e.charAt(s))){for(n=s,s+=1,c(),i=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(o=!0,s=i,a.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!o||s>=e.length)&&a.push(e.substring(t,e.length))}return a}function a(e){let t={},r=[];if(e)for(let[n,i]of e.entries())"set-cookie"===n.toLowerCase()?(r.push(...o(i)),t[n]=1===r.length?r[0]:r):t[n]=i;return t}function s(e){try{return String(new URL(String(e)))}catch(t){throw Object.defineProperty(Error(`URL is malformed "${String(e)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:t}),"__NEXT_ERROR_CODE",{value:"E61",enumerable:!1,configurable:!0})}}function c(e){for(let t of[n.NEXT_QUERY_PARAM_PREFIX,n.NEXT_INTERCEPTION_MARKER_PREFIX])if(e!==t&&e.startsWith(t))return e.substring(t.length);return null}},16397:(e,t,r)=>{"use strict";
12Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{MutableRequestCookiesAdapter:function(){return f},ReadonlyRequestCookiesError:function(){return s},RequestCookiesAdapter:function(){return c},appendMutableCookies:function(){return d},areCookiesMutableInCurrentPhase:function(){return p},getModifiedCookieValues:function(){return l},responseCookiesToRequestCookies:function(){return m},wrapWithMutableAccessCheck:function(){return h}});let n=r(22116),i=r(93107),o=r(85744),a=r(9597);class s extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options")}static callable(){throw new s}}class c{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return s.callable;default:return i.ReflectAdapter.get(e,t,r)}}})}}let u=Symbol.for("next.mutated.cookies");function l(e){let t=e[u];return t&&Array.isArray(t)&&0!==t.length?t:[]}function d(e,t){let r=l(t);if(0===r.length)return!1;let i=new n.ResponseCookies(e),o=i.getAll();for(let e of r)i.set(e);for(let e of o)i.set(e);return!0}class f{static wrap(e,t){let r=new n.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let a=[],s=new Set,c=()=>{let e=o.workAsyncStorage.getStore();if(e&&(e.pathWasRevalidated=!0),a=r.getAll().filter(e=>s.has(e.name)),t){let e=[];for(let t of a){let r=new n.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}},l=new Proxy(r,{get(e,t,r){switch(t){case u:return a;case"delete":return function(...t){s.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.delete(...t),l}finally{c()}};case"set":return function(...t){s.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t),l}finally{c()}};default:return i.ReflectAdapter.get(e,t,r)}}});return l}}function h(e){let t=new Proxy(e,{get(e,r,n){switch(r){case"delete":return function(...r){return y("cookies().delete"),e.delete(...r),t};case"set":return function(...r){return y("cookies().set"),e.set(...r),t};default:return i.ReflectAdapter.get(e,r,n)}}});return t}function p(e){return"action"===e.phase}function y(e){if(!p((0,a.getExpectedRequestStore)(e)))throw new s}function m(e){let t=new n.RequestCookies(new Headers);for(let r of e.getAll())t.set(r);return t}},16692:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(...e)=>{let t,r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0}},16793:(e,t,r)=>{!function(){var t={845:function(e,t,n){var i=void 0!==r.g&&r.g||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new a(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(505),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==r.g&&r.g.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==r.g&&r.g.clearImmediate||this&&this.clearImmediate},505:function(e){"use strict";e.exports=r(50271)}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}},a=!0;try{t[e].call(o.exports,o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab="//",e.exports=i(845)}()},17828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(64054).createAsyncLocalStorage)()},18218:(e,t,r)=>{"use strict";
12Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERNALS:function(){return s},NextRequest:function(){return c}});let n=r(67382),i=r(15048),o=r(603),a=r(22116),s=Symbol("internal request");class c extends Request{constructor(e,t={}){let r="string"!=typeof e&&"url"in e?e.url:String(e);(0,i.validateURL)(r),t.body&&"half"!==t.duplex&&(t.duplex="half"),e instanceof Request?super(e,t):super(r,t);let o=new n.NextURL(r,{headers:(0,i.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:t.nextConfig});this[s]={cookies:new a.RequestCookies(this.headers),nextUrl:o,url:o.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[s].cookies}get nextUrl(){return this[s].nextUrl}get page(){throw new o.RemovedPageError}get ua(){throw new o.RemovedUAError}get url(){return this[s].url}}},18793:function(e,t,r){var n;n=r(23652),function(e){var t=n.lib,r=t.WordArray,i=t.Hasher,o=n.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=r.create([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]),d=r.create([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0])},_doProcessBlock:function(e,t){for(var r,n,i,o,f,p,y,m,b,g,w,x,v,_,E,S,A,T,k,R=0;R<16;R++){var O=t+R,P=e[O];e[O]=(P<<8|P>>>24)&0xff00ff|(P<<24|P>>>8)&0xff00ff00}var C=this._hash.words,D=l.words,I=d.words,N=a.words,j=s.words,U=c.words,L=u.words;_=b=C[0],E=g=C[1],S=w=C[2],A=x=C[3],T=v=C[4];for(var R=0;R<80;R+=1){k=b+e[t+N[R]]|0,R<16?k+=(g^w^x)+D[0]:R<32?k+=((r=g)&w|~r&x)+D[1]:R<48?k+=((g|~w)^x)+D[2]:R<64?k+=(n=g,i=w,(n&(o=x)|i&~o)+D[3]):k+=(g^(w|~x))+D[4],k|=0,k=(k=h(k,U[R]))+v|0,b=v,v=x,x=h(w,10),w=g,g=k,k=_+e[t+j[R]]|0,R<16?k+=(E^(S|~A))+I[0]:R<32?k+=(f=E,p=S,(f&(y=A)|p&~y)+I[1]):R<48?k+=((E|~S)^A)+I[2]:R<64?k+=((m=E)&S|~m&A)+I[3]:k+=(E^S^A)+I[4],k|=0,k=(k=h(k,L[R]))+T|0,_=T,T=A,A=h(S,10),S=E,E=k}k=C[1]+w+A|0,C[1]=C[2]+x+T|0,C[2]=C[3]+v+_|0,C[3]=C[4]+b+E|0,C[4]=C[0]+g+S|0,C[0]=k},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=(r<<8|r>>>24)&0xff00ff|(r<<24|r>>>8)&0xff00ff00,e.sigBytes=(t.length+1)*4,this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=(s<<8|s>>>24)&0xff00ff|(s<<24|s>>>8)&0xff00ff00}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t){return e<<t|e>>>32-t}n.RIPEMD160=i._createHelper(f),n.HmacRIPEMD160=i._createHmacHelper(f)}(Math),e.exports=n.RIPEMD160},19087:e=>{!function(){"use strict";var t={864:function(e){var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,n){var i,o,a;function s(r){e.removeListener(t,c),n(r)}function c(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}y(e,t,c,{once:!0}),"error"!==t&&(i=e,o=s,a={once:!0},"function"==typeof i.on&&y(i,"error",o,a))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,u=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):p(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
12,set:function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else for(var u=c.length,l=p(c,u),r=0;r<u;++r)n(l[r],this,t);return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//",e.exports=n(864)}()},20117:function(e,t,r){(function(){var t,n,i,o,a,s,c,u,l,d,f,h,p,y,m,b,g,w={}.hasOwnProperty;b=(g=r(86200)).isObject,m=g.isFunction,y=g.isEmpty,p=g.getValue,u=null,i=null,o=null,a=null,s=null,f=null,h=null,d=null,c=null,n=null,l=null,t=null,e.exports=function(){function e(e){this.parent=e,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,u||(u=r(34067),i=r(55002),o=r(88606),a=r(5867),s=r(77617),f=r(90229),h=r(57182),d=r(4258),c=r(43131),n=r(28672),l=r(53949),r(97700),t=r(61882))}return Object.defineProperty(e.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new l(this.children)),this.childNodeList}}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e-1]||null}}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e+1]||null}}),Object.defineProperty(e.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(e.prototype,"textContent",{get:function(){var e,t,r,i,o;if(this.nodeType!==n.Element&&this.nodeType!==n.DocumentFragment)return null;for(t=0,o="",r=(i=this.children).length;t<r;t++)(e=i[t]).textContent&&(o+=e.textContent);return o}
12,set:function(e){throw Error("This DOM method is not implemented."+this.debugInfo())}}),e.prototype.setParent=function(e){var t,r,n,i,o;for(this.parent=e,e&&(this.options=e.options,this.stringify=e.stringify),i=this.children,o=[],r=0,n=i.length;r<n;r++)t=i[r],o.push(t.setParent(this));return o},e.prototype.element=function(e,t,r){var n,i,o,a,s,c,u,l,d,f,h;if(c=null,null===t&&null==r&&(t=(d=[{},null])[0],r=d[1]),null==t&&(t={}),b(t=p(t))||(r=(f=[t,r])[0],t=f[1]),null!=e&&(e=p(e)),Array.isArray(e))for(o=0,u=e.length;o<u;o++)i=e[o],c=this.element(i);else if(m(e))c=this.element(e.apply());else if(b(e)){for(s in e)if(w.call(e,s))if(m(h=e[s])&&(h=h.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===s.indexOf(this.stringify.convertAttKey))c=this.attribute(s.substr(this.stringify.convertAttKey.length),h);else if(!this.options.separateArrayItems&&Array.isArray(h)&&y(h))c=this.dummy();else if(b(h)&&y(h))c=this.element(s);else if(this.options.keepNullNodes||null!=h)if(!this.options.separateArrayItems&&Array.isArray(h))for(a=0,l=h.length;a<l;a++)i=h[a],(n={})[s]=i,c=this.element(n);else b(h)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===s.indexOf(this.stringify.convertTextKey)?c=this.element(h):(c=this.element(s)).element(h):c=this.element(s,h);else c=this.dummy()}else c=this.options.keepNullNodes||null!==r?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===e.indexOf(this.stringify.convertTextKey)?this.text(r):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===e.indexOf(this.stringify.convertCDataKey)?this.cdata(r):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===e.indexOf(this.stringify.convertCommentKey)?this.comment(r):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===e.indexOf(this.stringify.convertRawKey)?this.raw(r):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===e.indexOf(this.stringify.convertPIKey)?this.instruction(e.substr(this.stringify.convertPIKey.length),r):this.node(e,t,r):this.dummy();if(null==c)throw Error("Could not create any elements with: "+e+". "+this.debugInfo());return c},e.prototype.insertBefore=function(e,t,r){var n,i,o;if(null!=e?e.type:void 0)return e.setParent(this),t?(i=children.indexOf(t),o=children.splice(i),children.push(e),Array.prototype.push.apply(children,o)):children.push(e),e;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(e));return i=this.parent.children.indexOf(this),o=this.parent.children.splice(i),n=this.parent.element(e,t,r),Array.prototype.push.apply(this.parent.children,o),n},e.prototype.insertAfter=function(e,t,r){var n,i,o;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(e));return i=this.parent.children.indexOf(this),o=this.parent.children.splice(i+1),n=this.parent.element(e,t,r),Array.prototype.push.apply(this.parent.children,o),n},e.prototype.remove=function(){var e;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1].concat([])),this.parent},e.prototype.node=function(e,t,r){var n,i;return null!=e&&(e=p(e)),t||(t={}),b(t=p(t))||(r=(i=[t,r])[0],t=i[1]),n=new u(this,e,t),null!=r&&n.text(r),this.children.push(n),n},e.prototype.text=function(e){var t;return b(e)&&this.element(e),t=new h(this,e),this.children.push(t),this},e.prototype.cdata=function(e){var t;return t=new i(this,e),this.children.push(t),this},e.prototype.comment=function(e){var t;return t=new o(this,e),this.children.push(t),this},e.prototype.commentBefore=function(e){var t,r;return t=this.parent.children.indexOf(this),r=this.parent.children.splice(t),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,r),this},e.prototype.commentAfter=function(e){var t,r;return t=this.parent.children.indexOf(this),r=this.parent.children.splice(t+1),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,r),this},e.prototype.raw=function(e){var t;return t=new f(this,e),this.children.push(t),this},e.prototype.dummy=function(){return new c(this)},e.prototype.instruction=function(e,t){var r,n,i,o,a;if(null!=e&&(e=p(e)),null!=t&&(t=p(t)),Array.isArray(e))for(o=0,a=e.length;o<a;o++)r=e[o],this.instruction(r);else if(b(e))for(r in e)w.call(e,r)&&(n=e[r],this.instruction(r,n));else m(t)&&(t=t.apply()),i=new d(this,e,t),this.children.push(i);return this},e.prototype.instructionBefore=function(e,t){var r,n;return r=this.parent.children.indexOf(this),n=this.parent.children.splice(r),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,n),this},e.prototype.instructionAfter=function(e,t){var r,n;return r=this.parent.children.indexOf(this),n=this.parent.children.splice(r+1),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,n),this},e.prototype.declaration=function(e,t,r){var i,o;return i=this.document(),o=new a(i,e,t,r),0===i.children.length?i.children.unshift(o):i.children[0].type===n.Declaration?i.children[0]=o:i.children.unshift(o),i.root()||i},e.prototype.dtd=function(e,t){var r,i,o,a,c,u,l,d,f,h;for(i=this.document(),o=new s(i,e,t),f=i.children,a=c=0,l=f.length;c<l;a=++c)if(f[a].type===n.DocType)return i.children[a]=o,o;for(h=i.children,a=u=0,d=h.length;u<d;a=++u)if(h[a].isRoot)return i.children.splice(a,0,o),o;return i.children.push(o),o},e.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},e.prototype.root=function(){var e;
12for(e=this;e;)if(e.type===n.Document)return e.rootObject;else{if(e.isRoot)return e;e=e.parent}},e.prototype.document=function(){var e;for(e=this;e;)if(e.type===n.Document)return e;else e=e.parent},e.prototype.end=function(e){return this.document().end(e)},e.prototype.prev=function(){var e;if((e=this.parent.children.indexOf(this))<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[e-1]},e.prototype.next=function(){var e;if(-1===(e=this.parent.children.indexOf(this))||e===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[e+1]},e.prototype.importDocument=function(e){var t;return(t=e.root().clone()).parent=this,t.isRoot=!1,this.children.push(t),this},e.prototype.debugInfo=function(e){var t,r;return null!=(e=e||this.name)||(null!=(t=this.parent)?t.name:void 0)?null==e?"parent: <"+this.parent.name+">":(null!=(r=this.parent)?r.name:void 0)?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},e.prototype.ele=function(e,t,r){return this.element(e,t,r)},e.prototype.nod=function(e,t,r){return this.node(e,t,r)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.doc=function(){return this.document()},e.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},e.prototype.e=function(e,t,r){return this.element(e,t,r)},e.prototype.n=function(e,t,r){return this.node(e,t,r)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.u=function(){return this.up()},e.prototype.importXMLBuilder=function(e){return this.importDocument(e)},e.prototype.replaceChild=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.removeChild=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.appendChild=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.hasChildNodes=function(){return 0!==this.children.length},e.prototype.cloneNode=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.normalize=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.isSupported=function(e,t){return!0},e.prototype.hasAttributes=function(){return 0!==this.attribs.length},e.prototype.compareDocumentPosition=function(e){var r;if(this===e)return 0;if(this.document()!==e.document())return r=t.Disconnected|t.ImplementationSpecific,.5>Math.random()?r|=t.Preceding:r|=t.Following,r;if(this.isAncestor(e))return t.Contains|t.Preceding;if(this.isDescendant(e))return t.Contains|t.Following;if(this.isPreceding(e))return t.Preceding;else return t.Following},e.prototype.isSameNode=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.lookupPrefix=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.isDefaultNamespace=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.lookupNamespaceURI=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.isEqualNode=function(e){var t,r,n;if(e.nodeType!==this.nodeType||e.children.length!==this.children.length)return!1;for(t=r=0,n=this.children.length-1;0<=n?r<=n:r>=n;t=0<=n?++r:--r)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0},e.prototype.getFeature=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.setUserData=function(e,t,r){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.getUserData=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.contains=function(e){return!!e&&(e===this||this.isDescendant(e))},e.prototype.isDescendant=function(e){var t,r,n,i;for(r=0,n=(i=this.children).length;r<n;r++)if(e===(t=i[r])||t.isDescendant(e))return!0;return!1},e.prototype.isAncestor=function(e){return e.isDescendant(this)},e.prototype.isPreceding=function(e){var t,r;return t=this.treePosition(e),r=this.treePosition(this),-1!==t&&-1!==r&&t<r},e.prototype.isFollowing=function(e){var t,r;return t=this.treePosition(e),r=this.treePosition(this),-1!==t&&-1!==r&&t>r},e.prototype.treePosition=function(e){var t,r;return(r=0,t=!1,this.foreachTreeNode(this.document(),function(n){if(r++,!t&&n===e)return t=!0}),t)?r:-1},e.prototype.foreachTreeNode=function(e,t){var r,n,i,o,a;for(e||(e=this.document()),n=0,i=(o=e.children).length;n<i;n++)if((a=t(r=o[n]))||(a=this.foreachTreeNode(r,t)))return a},e}()}).call(this)},20950:function(e,t,r){(function(){var t,n,i=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=r(20117),t=r(28672),e.exports=function(e){function r(e,n,i,o,a,s){if
12(r.__super__.constructor.call(this,e),null==n)throw Error("Missing DTD element name. "+this.debugInfo());if(null==i)throw Error("Missing DTD attribute name. "+this.debugInfo(n));if(!o)throw Error("Missing DTD attribute type. "+this.debugInfo(n));if(!a)throw Error("Missing DTD attribute default. "+this.debugInfo(n));if(0!==a.indexOf("#")&&(a="#"+a),!a.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(n));if(s&&!a.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(n));this.elementName=this.stringify.name(n),this.type=t.AttributeDeclaration,this.attributeName=this.stringify.name(i),this.attributeType=this.stringify.dtdAttType(o),s&&(this.defaultValue=this.stringify.dtdAttDefault(s)),this.defaultValueType=a}return i(r,e),r.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))},r}(n)}).call(this)},22116:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RequestCookies:function(){return n.RequestCookies},ResponseCookies:function(){return n.ResponseCookies},stringifyCookie:function(){return n.stringifyCookie}});let n=r(44187)},22436:(e,t,r)=>{"use strict";var n=r(12115),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&l({inst:i})},[e,r,t]),a(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},22993:function(e,t,r){(function(){var t,n,i=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=r(20117),t=r(28672),e.exports=function(e){function r(e,n,i){if(r.__super__.constructor.call(this,e),null==n)throw Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.name(n),this.type=t.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return i(r,e),r.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))},r}(n)}).call(this)},23652:function(e,t,r){var n;e.exports=n||function(e,t){if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(50477)}catch(e){}var n,i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),a={},s=a.lib={},c=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=s.WordArray=c.extend({init:function(e,r){e=this.words=e||[],t!=r?this.sigBytes=r:this.sigBytes=4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=0xffffffff<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(i());return new u.init(t,e)}}),l=a.enc={},d=l.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},f=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},h=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*c,o);if(c){for(var d=0;d<c;d+=a)this._doProcessBlock(i,d);r=i.splice(0,c),n.sigBytes-=l}return new u.init(r,l)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=p.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new y.HMAC.init(e,r).finalize(t)}}});var y=a.algo={};return a}(Math)},24628:function(e,t,r){var n,i,o;n=r(23652),r(40092),n.mode.OFB=(o=(i=n.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}}),i.Decryptor=o,i),e.exports=n.mode.OFB},24904:function(e,t,r){(function(){var t,n,i,o,a,s,c,u,l,d;
12u=(d=r(86200)).assign,l=d.isFunction,i=r(33357),o=r(60052),a=r(29225),c=r(28527),s=r(50998),t=r(28672),n=r(51968),e.exports.create=function(e,t,r,n){var i,a;if(null==e)throw Error("Root element needs a name.");return a=(i=new o(n=u({},t,r,n))).element(e),n.headless||(i.declaration(n),(null!=n.pubID||null!=n.sysID)&&i.dtd(n)),a},e.exports.begin=function(e,t,r){var n;return(l(e)&&(t=(n=[e,t])[0],r=n[1],e={}),t)?new a(e,t,r):new o(e)},e.exports.stringWriter=function(e){return new c(e)},e.exports.streamWriter=function(e,t){return new s(e,t)},e.exports.implementation=new i,e.exports.nodeType=t,e.exports.writerState=n}).call(this)},25e3:function(e,t,r){var n;n=r(23652),r(51609),function(e){var t=n.lib,r=t.WordArray,i=t.Hasher,o=n.x64.Word,a=n.algo,s=[],c=[],u=[];!function(){for(var e=1,t=0,r=0;r<24;r++){s[e+5*t]=(r+1)*(r+2)/2%64;var n=t%5,i=(2*e+3*t)%5;e=n,t=i}for(var e=0;e<5;e++)for(var t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,l=0;l<24;l++){for(var d=0,f=0,h=0;h<7;h++){if(1&a){var p=(1<<h)-1;p<32?f^=1<<p:d^=1<<p-32}128&a?a=a<<1^113:a<<=1}u[l]=o.create(d,f)}}();for(var l=[],d=0;d<25;d++)l[d]=o.create();var f=a.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],a=e[t+2*i+1];o=(o<<8|o>>>24)&0xff00ff|(o<<24|o>>>8)&0xff00ff00,a=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00;var d=r[i];d.high^=a,d.low^=o}for(var f=0;f<24;f++){for(var h=0;h<5;h++){for(var p=0,y=0,m=0;m<5;m++){var d=r[h+5*m];p^=d.high,y^=d.low}var b=l[h];b.high=p,b.low=y}for(var h=0;h<5;h++)for(var g=l[(h+4)%5],w=l[(h+1)%5],x=w.high,v=w.low,p=g.high^(x<<1|v>>>31),y=g.low^(v<<1|x>>>31),m=0;m<5;m++){var d=r[h+5*m];d.high^=p,d.low^=y}for(var _=1;_<25;_++){var p,y,d=r[_],E=d.high,S=d.low,A=s[_];A<32?(p=E<<A|S>>>32-A,y=S<<A|E>>>32-A):(p=S<<A-32|E>>>64-A,y=E<<A-32|S>>>64-A);var T=l[c[_]];T.high=p,T.low=y}var k=l[0],R=r[0];k.high=R.high,k.low=R.low;for(var h=0;h<5;h++)for(var m=0;m<5;m++){var _=h+5*m,d=r[_],O=l[_],P=l[(h+1)%5+5*m],C=l[(h+2)%5+5*m];d.high=O.high^~P.high&C.high,d.low=O.low^~P.low&C.low}var d=r[0],D=u[f];d.high^=D.high,d.low^=D.low}},_doFinalize:function(){var t=this._data,n=t.words;this._nDataBytes;var i=8*t.sigBytes,o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,u=[],l=0;l<c;l++){var d=a[l],f=d.high,h=d.low;f=(f<<8|f>>>24)&0xff00ff|(f<<24|f>>>8)&0xff00ff00,h=(h<<8|h>>>24)&0xff00ff|(h<<24|h>>>8)&0xff00ff00,u.push(h),u.push(f)}return new r.init(u,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});n.SHA3=i._createHelper(f),n.HmacSHA3=i._createHmacHelper(f)}(Math),e.exports=n.SHA3},25371:function(e,t,r){var n,i,o,a,s,c,u;n=r(23652),r(29734),r(8832),o=(i=n.lib).Base,a=i.WordArray,c=(s=n.algo).MD5,u=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,i=n.hasher.create(),o=a.create(),s=o.words,c=n.keySize,u=n.iterations;s.length<c;){r&&i.update(r),r=i.update(e).finalize(t),i.reset();for(var l=1;l<u;l++)r=i.finalize(r),i.reset();o.concat(r)}return o.sigBytes=4*c,o}}),n.EvpKDF=function(e,t,r){return u.create(r).compute(e,t)},e.exports=n.EvpKDF},25593:function(e){(function(){var t=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty;e.exports=function(){function e(e){var n,i,o;for(n in this.assertLegalName=t(this.assertLegalName,this),this.assertLegalChar=t(this.assertLegalChar,this),e||(e={}),this.options=e,this.options.version||(this.options.version="1.0"),i=e.stringify||{})r.call(i,n)&&(o=i[n],this[n]=o)}return e.prototype.name=function(e){return this.options.noValidation?e:this.assertLegalName(""+e||"")},e.prototype.text=function(e){return this.options.noValidation?e:this.assertLegalChar(this.textEscape(""+e||""))},e.prototype.cdata=function(e){return this.options.noValidation?e:(e=(e=""+e||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(e))},e.prototype.comment=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/--/))throw Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},e.prototype.raw=function(e){return this.options.noValidation?e:""+e||""},e.prototype.attValue=function(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=""+e||""))},e.prototype.insTarget=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.insValue=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/\?>/))throw Error("Invalid processing instruction value: "+e);return this.assertLegalChar(e)},e.prototype.xmlVersion=function(e){if(this.options.noValidation)return e;if(!(e=""+e||"").match(/1\.[0-9]+/))throw Error("Invalid version number: "+e);return e},e.prototype.xmlEncoding=function(e){if(this.options.noValidation)return e;if(!(e=""+e||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+e);return this.assertLegalChar(e)},e.prototype.xmlStandalone=function(e){return this.options.noValidation?e:e?"yes":"no"},e.prototype.dtdPubID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdSysID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdElementValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdAttType=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdAttDefault=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdEntityValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdNData=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e.prototype.assertLegalChar=function(e){var t,r;if(this.options.noValidation)return e;if(t="","1.0"===this.options.version){if(t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=e.match(t))throw Error("Invalid character in string: "+e+" at index "+r.index)}else if("1.1"===this.options.version&&(t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=e.match(t)))throw Error("Invalid character in string: "+e+" at index "+r.index);return e},e.prototype.assertLegalName=function(e){if(this.options.noValidation)return e;if(this.assertLegalChar(e),!e.match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw Error("Invalid character in name");return e},e.prototype.textEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},e.prototype.attEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},e}()}).call(this)},27284:(e,t,r)=>{"use strict";r.d(t,{M3:()=>a,W2:()=>o,ll:()=>i,t9:()=>s});var n=r(85859);function i(e){return(0,n.A)(e)&&"string"==typeof e.kty}function o(e){return"oct"!==e.kty&&"string"==typeof e.d}function a(e){return"oct"!==e.kty&&void 0===e.d}function s(e){return"oct"===e.kty&&"string"==typeof e.k}},27458:function(e,t,r){var n,i,o;n=r(23652),r(40092),n.mode.CTR=(o=(i=n.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[n-1]=o[n-1]+1|0;for(var s=0;s<n;s++)e[t+s]^=a[s]}}),i.Decryptor=o,i),e.exports=n.mode.CTR},27776:function(e,t,r){var n,i,o;n=r(23652),r(40092),i=n.lib.CipherParams,o=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return i.create({ciphertext:t})}},e.exports=n.format.Hex},27988:(e,t)=>
12{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_HEADER:function(){return n},FLIGHT_HEADERS:function(){return d},NEXT_DID_POSTPONE_HEADER:function(){return p},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return c},NEXT_HMR_REFRESH_HEADER:function(){return s},NEXT_IS_PRERENDER_HEADER:function(){return b},NEXT_REWRITTEN_PATH_HEADER:function(){return y},NEXT_REWRITTEN_QUERY_HEADER:function(){return m},NEXT_ROUTER_PREFETCH_HEADER:function(){return o},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return a},NEXT_ROUTER_STALE_TIME_HEADER:function(){return h},NEXT_ROUTER_STATE_TREE_HEADER:function(){return i},NEXT_RSC_UNION_QUERY:function(){return f},NEXT_URL:function(){return u},RSC_CONTENT_TYPE_HEADER:function(){return l},RSC_HEADER:function(){return r}});let r="RSC",n="Next-Action",i="Next-Router-State-Tree",o="Next-Router-Prefetch",a="Next-Router-Segment-Prefetch",s="Next-HMR-Refresh",c="__next_hmr_refresh_hash__",u="Next-Url",l="text/x-component",d=[r,i,o,s,a],f="_rsc",h="x-nextjs-stale-time",p="x-nextjs-postponed",y="x-nextjs-rewritten-path",m="x-nextjs-rewritten-query",b="x-nextjs-prerender";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28066:(e,t)=>{"use strict";t.q=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");var r={},n=e.length;if(n<2)return r;var i=t&&t.decode||u,o=0,a=0,l=0;do{if(-1===(a=e.indexOf("=",o)))break;if(-1===(l=e.indexOf(";",o)))l=n;else if(a>l){o=e.lastIndexOf(";",a-1)+1;continue}var d=s(e,o,a),f=c(e,a,d),h=e.slice(d,f);if(!r.hasOwnProperty(h)){var p=s(e,a+1,l),y=c(e,l,p);34===e.charCodeAt(p)&&34===e.charCodeAt(y-1)&&(p++,y--);var m=e.slice(p,y);r[h]=function(e,t){try{return t(e)}catch(t){return e}}(m,i)}o=l+1}while(o<n);return r},t.l=function(e,t,s){var c=s&&s.encode||encodeURIComponent;if("function"!=typeof c)throw TypeError("option encode is invalid");if(!n.test(e))throw TypeError("argument name is invalid");var u=c(t);if(!i.test(u))throw TypeError("argument val is invalid");var l=e+"="+u;if(!s)return l;if(null!=s.maxAge){var d=Math.floor(s.maxAge);if(!isFinite(d))throw TypeError("option maxAge is invalid");l+="; Max-Age="+d}if(s.domain){if(!o.test(s.domain))throw TypeError("option domain is invalid");l+="; Domain="+s.domain}if(s.path){if(!a.test(s.path))throw TypeError("option path is invalid");l+="; Path="+s.path}if(s.expires){var f,h=s.expires;if(f=h,"[object Date]"!==r.call(f)||isNaN(h.valueOf()))throw TypeError("option expires is invali
12d");l+="; Expires="+h.toUTCString()}if(s.httpOnly&&(l+="; HttpOnly"),s.secure&&(l+="; Secure"),s.partitioned&&(l+="; Partitioned"),s.priority)switch("string"==typeof s.priority?s.priority.toLowerCase():s.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l};var r=Object.prototype.toString,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,i=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,o=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function s(e,t,r){do{var n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<r);return r}function c(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return r}
12function u(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}},28155:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return a},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return s}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let i="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return i?new i:new n}function a(e){return i?i.bind(e):n.bind(e)}function s(){return i?i.snapshot():function(e,...t){return e(...t)}}},28261:function(e,t,r){var n;n=r(23652),function(e){for(var t=n.lib,r=t.WordArray,i=t.Hasher,o=n.algo,a=[],s=0;s<64;s++)a[s]=0x100000000*e.abs(e.sin(s+1))|0;var c=o.MD5=i.extend({_doReset:function(){this._hash=new r.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=(i<<8|i>>>24)&0xff00ff|(i<<24|i>>>8)&0xff00ff00}var o=this._hash.words,s=e[t+0],c=e[t+1],h=e[t+2],p=e[t+3],y=e[t+4],m=e[t+5],b=e[t+6],g=e[t+7],w=e[t+8],x=e[t+9],v=e[t+10],_=e[t+11],E=e[t+12],S=e[t+13],A=e[t+14],T=e[t+15],k=o[0],R=o[1],O=o[2],P=o[3];k=u(k,R,O,P,s,7,a[0]),P=u(P,k,R,O,c,12,a[1]),O=u(O,P,k,R,h,17,a[2]),R=u(R,O,P,k,p,22,a[3]),k=u(k,R,O,P,y,7,a[4]),P=u(P,k,R,O,m,12,a[5]),O=u(O,P,k,R,b,17,a[6]),R=u(R,O,P,k,g,22,a[7]),k=u(k,R,O,P,w,7,a[8]),P=u(P,k,R,O,x,12,a[9]),O=u(O,P,k,R,v,17,a[10]),R=u(R,O,P,k,_,22,a[11]),k=u(k,R,O,P,E,7,a[12]),P=u(P,k,R,O,S,12,a[13]),O=u(O,P,k,R,A,17,a[14]),R=u(R,O,P,k,T,22,a[15]),k=l(k,R,O,P,c,5,a[16]),P=l(P,k,R,O,b,9,a[17]),O=l(O,P,k,R,_,14,a[18]),R=l(R,O,P,k,s,20,a[19]),k=l(k,R,O,P,m,5,a[20]),P=l(P,k,R,O,v,9,a[21]),O=l(O,P,k,R,T,14,a[22]),R=l(R,O,P,k,y,20,a[23]),k=l(k,R,O,P,x,5,a[24]),P=l(P,k,R,O,A,9,a[25]),O=l(O,P,k,R,p,14,a[26]),R=l(R,O,P,k,w,20,a[27]),k=l(k,R,O,P,S,5,a[28]),P=l(P,k,R,O,h,9,a[29]),O=l(O,P,k,R,g,14,a[30]),R=l(R,O,P,k,E,20,a[31]),k=d(k,R,O,P,m,4,a[32]),P=d(P,k,R,O,w,11,a[33]),O=d(O,P,k,R,_,16,a[34]),R=d(R,O,P,k,A,23,a[35]),k=d(k,R,O,P,c,4,a[36]),P=d(P,k,R,O,y,11,a[37]),O=d(O,P,k,R,g,16,a[38]),R=d(R,O,P,k,v,23,a[39]),k=d(k,R,O,P,S,4,a[40]),P=d(P,k,R,O,s,11,a[41]),O=d(O,P,k,R,p,16,a[42]),R=d(R,O,P,k,b,23,a[43]),k=d(k,R,O,P,x,4,a[44]),P=d(P,k,R,O,E,11,a[45]),O=d(O,P,k,R,T,16,a[46]),R=d(R,O,P,k,h,23,a[47]),k=f(k,R,O,P,s,6,a[48]),P=f(P,k,R,O,g,10,a[49]),O=f(O,P,k,R,A,15,a[50]),R=f(R,O,P,k,m,21,a[51]),k=f(k,R,O,P,E,6,a[52]),P=f(P,k,R,O,p,10,a[53]),O=f(O,P,k,R,v,15,a[54]),R=f(R,O,P,k,c,21,a[55]),k=f(k,R,O,P,w,6,a[56]),P=f(P,k,R,O,T,10,a[57]),O=f(O,P,k,R,b,15,a[58]),R=f(R,O,P,k,S,21,a[59]),k=f(k,R,O,P,y,6,a[60]),P=f(P,k,R,O,_,10,a[61]),O=f(O,P,k,R,h,15,a[62]),R=f(R,O,P,k,x,21,a[63]),o[0]=o[0]+k|0,o[1]=o[1]+R|0,o[2]=o[2]+O|0,o[3]=o[3]+P|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/0x100000000);r[(i+64>>>9<<4)+15]=(o<<8|o>>>24)&0xff00ff|(o<<24|o>>>8)&0xff00ff00,r[(i+64>>>9<<4)+14]=(n<<8|n>>>24)&0xff00ff|(n<<24|n>>>8)&0xff00ff00,t.sigBytes=(r.length+1)*4,this._process();for(var a=this._hash,s=a.words,c=0;c<4;c++){var u=s[c];s[c]=(u<<8|u>>>24)&0xff00ff|(u<<24|u>>>8)&0xff00ff00}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function l(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}n.MD5=i._createHelper(c),n.HmacMD5=i._createHmacHelper(c)}(Math),e.exports=n.MD5},28527:function(e,t,r){(function(){var t=function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;e.exports=function(e){function r(e){r.__super__.constructor.call(this,e)}return t(r,e),r.prototype.document=function(e,t){var r,n,i,o,a;for(n=0,t=this.filterOptions(t),o="",i=(a=e.children).length;n<i;n++)r=a[n],o+=this.writeChildNode(r,t,0);return t.pretty&&o.slice(-t.newline.length)===t.newline&&(o=o.slice(0,-t.newline.length)),o},r}(r(51071))}).call(this)},28672:function(e){(function(){e.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},28765:function(e,t,r){var n;n=r(23652),r(40092),n.pad.NoPadding={pad:function(){},unpad:function(){}},e.exports=n.pad.NoPadding},29225:function(e,t,r){(function(){var t,n,i,o,a,s,c,u,l,d,f,h,p,y,m,b,g,w,x,v,_,E,S,A={}.hasOwnProperty;_=(S=r(86200)).isObject,v=S.isFunction,E=S.isPlainObject,x=S.getValue,t=r(28672),h=r(60052),p=r(34067),o=r(55002),a=r(88606),m=r(90229),w=r(57182),y=r(4258),d=r(5867),f=r(77617),s=r(20950),u=r(93880),c=r(22993),l=r(29245),i=r(57839),g=r(25593),b=r(28527),n=r(51968),e.exports=function(){function e(e,r,n){var i;this.name="?xml",this.type=t.Document,e||(e={}),i={},e.writer?E(e.writer)&&(i=e.writer,e.writer=new b):e.writer=new b,this.options=e,this.writer=e.writer,this.writerOptions=this.writer.filterOptions(i),this.stringify=new g(e),this.onDataCallback=r||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return e.prototype.createChildNode=function(e){var r,n,i,o,a,s,c,u;switch(e.type){case t.CData:this.cdata(e.value);break;case t.Comment:this.comment(e.value);break;case t.Element:for(n in i={},c=e.attribs)A.call(c,n)&&(r=c[n],i[n]=r.value);this.node(e.name,i);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(e.value);break;case t.Text:this.text(e.value);break;case t.ProcessingInstruction:this.instruction(e.target,e.value);break;default:throw Error("This XML node type is not supported in a JS object: "+e.constructor.name)}for(a=0,s=(u=e.children).length;a<s;a++)o=u[a],this.createChildNode(o),o.type===t.Element&&this.up();return this},e.prototype.dummy=function(){return this},e.prototype.node=function(e,t,r){var n;if(null==e)throw Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw Error("Document can only have one root node. "+this.debugInfo(e));return this.openCurrent(),e=x(e),null==t&&(t={}),_(t=x(t))||(r=(n=[t,r])[0],t=n[1]),this.currentNode=new p(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=r&&this.text(r),this},e.prototype.element=function(e,r,n){var i,o,a,s,c,u;if(this.currentNode&&this.currentNode.type===t.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(e)||_(e)||v(e))for(s=this.options.noValidation,this.options.noValidation=!0,(u=new h(this.options).element
12("TEMP_ROOT")).element(e),this.options.noValidation=s,o=0,a=(c=u.children).length;o<a;o++)i=c[o],this.createChildNode(i),i.type===t.Element&&this.up();else this.node(e,r,n);return this},e.prototype.attribute=function(e,t){var r,n;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(e));if(null!=e&&(e=x(e)),_(e))for(r in e)A.call(e,r)&&(n=e[r],this.attribute(r,n));else v(t)&&(t=t.apply()),this.options.keepNullAttributes&&null==t?this.currentNode.attribs[e]=new i(this,e,""):null!=t&&(this.currentNode.attribs[e]=new i(this,e,t));return this},e.prototype.text=function(e){var t;return this.openCurrent(),t=new w(this,e),this.onData(this.writer.text(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.cdata=function(e){var t;return this.openCurrent(),t=new o(this,e),this.onData(this.writer.cdata(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.comment=function(e){var t;return this.openCurrent(),t=new a(this,e),this.onData(this.writer.comment(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.raw=function(e){var t;return this.openCurrent(),t=new m(this,e),this.onData(this.writer.raw(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.instruction=function(e,t){var r,n,i,o,a;if(this.openCurrent(),null!=e&&(e=x(e)),null!=t&&(t=x(t)),Array.isArray(e))for(r=0,o=e.length;r<o;r++)n=e[r],this.instruction(n);else if(_(e))for(n in e)A.call(e,n)&&(i=e[n],this.instruction(n,i));else v(t)&&(t=t.apply()),a=new y(this,e,t),this.onData(this.writer.processingInstruction(a,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},e.prototype.declaration=function(e,t,r){var n;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return n=new d(this,e,t,r),this.onData(this.writer.declaration(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.doctype=function(e,t,r){if(this.openCurrent(),null==e)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new f(this,t,r),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},e.prototype.dtdElement=function(e,t){var r;return this.openCurrent(),r=new c(this,e,t),this.onData(this.writer.dtdElement(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.attList=function(e,t,r,n,i){var o;return this.openCurrent(),o=new s(this,e,t,r,n,i),this.onData(this.writer.dtdAttList(o,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.entity=function(e,t){var r;return this.openCurrent(),r=new u(this,!1,e,t),this.onData(this.writer.dtdEntity(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.pEntity=function(e,t){var r;return this.openCurrent(),r=new u(this,!0,e,t),this.onData(this.writer.dtdEntity(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.notation=function(e,t){var r;return this.openCurrent(),r=new l(this,e,t),this.onData(this.writer.dtdNotation(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.up=function(){if(this.currentLevel<0)throw Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},e.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(e){var r,i,o,a;if(!e.isOpen){if(this.root||0!==this.currentLevel||e.type!==t.Element||(this.root=e),i="",e.type===t.Element){for(o in this.writerOptions.state=n.OpenTag,i=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<"+e.name,a=e.attribs)A.call(a,o)&&(r=a[o],i+=this.writer.attribute(r,this.writerOptions,this.currentLevel));i+=(e.children?">":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=n.InsideTag}else this.writerOptions.state=n.OpenTag,i=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+e.rootNodeName,e.pubID&&e.sysID?i+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(i+=' SYSTEM "'+e.sysID+'"'),e.children?(i+=" [",this.writerOptions.state=n.InsideTag):(this.writerOptions.state=n.CloseTag,i+=">"),i+=this.writer.endline(e,this.writerOptions,this.currentLevel);return this.onData(i,this.currentLevel),e.isOpen=!0}},e.prototype.closeNode=function(e){var r;if(!e.isClosed)return r="",this.writerOptions.state=n.CloseTag,r=e.type===t.Element?this.writer.indent(e,this.writerOptions,this.currentLevel)+"</"+e.name+">"+this.writer.endline(e,this.writerOptions,this.currentLevel):this.writer.indent(e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=n.None,this.onData(r,this.currentLevel),e.isClosed=!0},e.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(e,t,r){return this.node(e,t,r)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},e.prototype.dtd=function(e,t,r){return this.doctype(e,t,r)}
12,e.prototype.e=function(e,t,r){return this.element(e,t,r)},e.prototype.n=function(e,t,r){return this.node(e,t,r)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.att=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e}()}).call(this)},29245:function(e,t,r){(function(){var t,n,i=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=r(20117),t=r(28672),e.exports=function(e){function r(e,n,i){if(r.__super__.constructor.call(this,e),null==n)throw Error("Missing DTD notation name. "+this.debugInfo(n));if(!i.pubID&&!i.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(n));this.name=this.stringify.name(n),this.type=t.NotationDeclaration,null!=i.pubID&&(this.pubID=this.stringify.dtdPubID(i.pubID)),null!=i.sysID&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return i(r,e),Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),r.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))},r}(n)}).call(this)},29734:function(e,t,r){var n,i,o,a,s,c,u;o=(i=(n=r(23652)).lib).WordArray,a=i.Hasher,s=n.algo,c=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=0;u<80;u++){if(u<16)c[u]=0|e[t+u];else{var l=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=l<<1|l>>>31}var d=(n<<5|n>>>27)+s+c[u];u<20?d+=(i&o|~i&a)+0x5a827999:u<40?d+=(i^o^a)+0x6ed9eba1:u<60?d+=(i&o|i&a|o&a)-0x70e44324:d+=(i^o^a)-0x359d3e2a,s=a,a=o,o=i<<30|i>>>2,i=n,n=d}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=Math.floor(r/0x100000000),t[(n+64>>>9<<4)+15]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=a._createHelper(u),n.HmacSHA1=a._createHmacHelper(u),e.exports=n.SHA1},29829:(e,t,r)=>{"use strict";r.d(t,{CM:()=>c,Hj:()=>R,Lx:()=>k,OZ:()=>y,Oy:()=>a,P8:()=>T,PM:()=>u,QU:()=>_,SW:()=>p,WS:()=>L,XP:()=>w,_2:()=>I,_z:()=>v,dy:()=>C,eH:()=>A,gs:()=>f,i8:()=>m,jo:()=>g,k9:()=>h,lR:()=>n,me:()=>l,nd:()=>j,o6:()=>P,om:()=>o,rk:()=>x,s5:()=>N,t3:()=>s,tP:()=>O,u$:()=>b,w2:()=>U,xm:()=>M,xz:()=>d});
12class n extends Error{constructor(e,t){e instanceof Error?super(void 0,{cause:{err:e,...e.cause,...t}}):"string"==typeof e?(t instanceof Error&&(t={err:t,...t.cause}),super(e,t)):super(void 0,e),this.name=this.constructor.name,this.type=this.constructor.type??"AuthError",this.kind=this.constructor.kind??"error",Error.captureStackTrace?.(this,this.constructor);let r=`https://errors.authjs.dev#${this.type.toLowerCase()}`;this.message+=`${this.message?". ":""}Read more at ${r}`}}class i extends n{}i.kind="signIn";class o extends n{}o.type="AdapterError";class a extends n{}a.type="AccessDenied";class s extends n{}s.type="CallbackRouteError";class c extends n{}c.type="ErrorPageLoop";class u extends n{}u.type="EventError";class l extends n{}l.type="InvalidCallbackUrl";class d extends i{constructor(){super(...arguments),this.code="credentials"}}d.type="CredentialsSignin";class f extends n{}f.type="InvalidEndpoints";class h extends n{}h.type="InvalidCheck";class p extends n{}p.type="JWTSessionError";class y extends n{}y.type="MissingAdapter";class m extends n{}m.type="MissingAdapterMethods";class b extends n{}b.type="MissingAuthorize";class g extends n{}g.type="MissingSecret";class w extends i{}w.type="OAuthAccountNotLinked";class x extends i{}x.type="OAuthCallbackError";class v extends n{}v.type="OAuthProfileParseError";class _ extends n{}_.type="SessionTokenError";class E extends i{}E.type="OAuthSignInError";class S extends i{}S.type="EmailSignInError";class A extends n{}A.type="SignOutError";class T extends n{}T.type="UnknownAction";class k extends n{}k.type="UnsupportedStrategy";class R extends n{}R.type="InvalidProvider";class O extends n{}O.type="UntrustedHost";class P extends n{}P.type="Verification";class C extends i{}C.type="MissingCSRF";let D=new Set(["CredentialsSignin","OAuthAccountNotLinked","OAuthCallbackError","AccessDenied","Verification","MissingCSRF","AccountNotLinked","WebAuthnVerificationError"]);function I(e){return e instanceof n&&D.has(e.type)}class N extends n{}N.type="DuplicateConditionalUI";class j extends n{}j.type="MissingWebAuthnAutocomplete";class U extends n{}U.type="WebAuthnVerificationError";class L extends i{}L.type="AccountNotLinked";class M extends n{}M.type="ExperimentalFeatureNotEnabled"},30402:function(e,t,r){var n,i,o,a,s,c,u,l,d,f,h,p,y,m,b;n=r(23652),r(35883),r(28261),r(25371),r(40092),i=n.lib.BlockCipher,o=n.algo,a=[],s=[],c=[],u=[],l=[],d=[],f=[],h=[],p=[],y=[],function(){for(var e=[],t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=0,n=0,t=0;t<256;t++){var i=n^n<<1^n<<2^n<<3^n<<4;i=i>>>8^255&i^99,a[r]=i,s[i]=r;var o=e[r],m=e[o],b=e[m],g=257*e[i]^0x1010100*i;c[r]=g<<24|g>>>8,u[r]=g<<16|g>>>16,l[r]=g<<8|g>>>24,d[r]=g;var g=0x1010101*b^65537*m^257*o^0x1010100*r;f[i]=g<<24|g>>>8,h[i]=g<<16|g>>>16,p[i]=g<<8|g>>>24,y[i]=g,r?(r=o^e[e[e[b^o]]],n^=e[e[n]]):r=n=1}}(),m=[0,1,2,4,8,16,32,64,128,27,54],b=o.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e,t=this._keyPriorReset=this._key,r=t.words,n=t.sigBytes/4,i=((this._nRounds=n+6)+1)*4,o=this._keySchedule=[],s=0;s<i;s++)s<n?o[s]=r[s]:(e=o[s-1],s%n?n>6&&s%n==4&&(e=a[e>>>24]<<24|a[e>>>16&255]<<16|a[e>>>8&255]<<8|a[255&e]):e=(a[(e=e<<8|e>>>24)>>>24]<<24|a[e>>>16&255]<<16|a[e>>>8&255]<<8|a[255&e])^m[s/n|0]<<24,o[s]=o[s-n]^e);for(var c=this._invKeySchedule=[],u=0;u<i;u++){var s=i-u;if(u%4)var e=o[s];else var e=o[s-4];u<4||s<=4?c[u]=e:c[u]=f[a[e>>>24]]^h[a[e>>>16&255]]^p[a[e>>>8&255]]^y[a[255&e]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,c,u,l,d,a)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,f,h,p,y,s);var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var y=n[u>>>24]^i[l>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],m=n[l>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&u]^r[h++],b=n[d>>>24]^i[f>>>16&255]^o[u>>>8&255]^a[255&l]^r[h++],g=n[f>>>24]^i[u>>>16&255]^o[l>>>8&255]^a[255&d]^r[h++];u=y,l=m,d=b,f=g}var y=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],m=(s[l>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&u])^r[h++],b=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[h++],g=(s[f>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&d])^r[h++];
12e[t]=y,e[t+1]=m,e[t+2]=b,e[t+3]=g},keySize:8}),n.AES=i._createHelper(b),e.exports=n.AES},30511:function(e,t,r){var n,i;n=r(23652),r(40092),n.mode.ECB=((i=n.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),i.Decryptor=i.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),i),e.exports=n.mode.ECB},30933:function(e,t,r){var n;n=r(23652),r(35883),r(28261),r(25371),r(40092),function(){var e=n.lib,t=e.WordArray,r=e.BlockCipher,i=n.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],s=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,0x10000000:32768,0x20000000:8421378,0x30000000:2,0x40000000:512,0x50000000:8421890,0x60000000:8389122,0x70000000:8388608,0x80000000:514,0x90000000:8389120,0xa0000000:33280,0xb0000000:8421376,0xc0000000:32770,0xd0000000:8388610,0xe0000000:0,0xf0000000:33282,0x8000000:0,0x18000000:8421890,0x28000000:33282,0x38000000:32768,0x48000000:8421888,0x58000000:512,0x68000000:8421378,0x78000000:2,0x88000000:8389120,0x98000000:33280,0xa8000000:8421376,0xb8000000:8389122,0xc8000000:8388610,0xd8000000:32770,0xe8000000:514,0xf8000000:8388608,1:32768,0x10000001:2,0x20000001:8421888,0x30000001:8388608,0x40000001:8421378,0x50000001:33280,0x60000001:512,0x70000001:8389122,0x80000001:8421890,0x90000001:8421376,0xa0000001:8388610,0xb0000001:33282,0xc0000001:514,0xd0000001:8389120,0xe0000001:32770,0xf0000001:0,0x8000001:8421890,0x18000001:8421376,0x28000001:8388608,0x38000001:512,0x48000001:32768,0x58000001:8388610,0x68000001:2,0x78000001:33282,0x88000001:32770,0x98000001:8389122,0xa8000001:514,0xb8000001:8421888,0xc8000001:8389120,0xd8000001:0,0xe8000001:33280,0xf8000001:8421378},{0:0x40084010,0x1000000:16384,0x2000000:524288,0x3000000:0x40080010,0x4000000:0x40000010,0x5000000:0x40084000,0x6000000:0x40004000,0x7000000:16,0x8000000:540672,0x9000000:0x40004010,0xa000000:0x40000000,0xb000000:540688,0xc000000:524304,0xd000000:0,0xe000000:16400,0xf000000:0x40080000,8388608:0x40004000,0x1800000:540688,0x2800000:16,0x3800000:0x40004010,0x4800000:0x40084010,0x5800000:0x40000000,0x6800000:524288,0x7800000:0x40080010,0x8800000:524304,0x9800000:0,0xa800000:16384,0xb800000:0x40080000,0xc800000:0x40000010,0xd800000:540672,0xe800000:0x40084000,0xf800000:16400,0x10000000:0,0x11000000:0x40080010,0x12000000:0x40004010,0x13000000:0x40084000,0x14000000:0x40080000,0x15000000:16,0x16000000:540688,0x17000000:16384,0x18000000:16400,0x19000000:524288,0x1a000000:524304,0x1b000000:0x40000010,0x1c000000:540672,0x1d000000:0x40004000,0x1e000000:0x40000000,0x1f000000:0x40084010,0x10800000:540688,0x11800000:524288,0x12800000:0x40080000,0x13800000:16384,0x14800000:0x40004000,0x15800000:0x40084010,0x16800000:16,0x17800000:0x40000000,0x18800000:0x40084000,0x19800000:0x40000010,0x1a800000:0x40004010,0x1b800000:524304,0x1c800000:0,0x1d800000:16400,0x1e800000:0x40080010,0x1f800000:540672},{0:260,1048576:0,2097152:0x4000100,3145728:65796,4194304:65540,5242880:0x4000004,6291456:0x4010104,7340032:0x4010000,8388608:0x4000000,9437184:0x4010100,0xa00000:65792,0xb00000:0x4010004,0xc00000:0x4000104,0
12xd00000:65536,0xe00000:4,0xf00000:256,524288:0x4010100,1572864:0x4010004,2621440:0,3670016:0x4000100,4718592:0x4000004,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,0xa80000:0x4010000,0xb80000:65796,0xc80000:65792,0xd80000:0x4000104,0xe80000:0x4010104,0xf80000:0x4000000,0x1000000:0x4010100,0x1100000:65540,0x1200000:65536,0x1300000:0x4000100,0x1400000:256,0x1500000:0x4010104,0x1600000:0x4000004,0x1700000:0,0x1800000:0x4000104,0x1900000:0x4000000,0x1a00000:4,0x1b00000:65792,0x1c00000:0x4010000,0x1d00000:260,0x1e00000:65796,0x1f00000:0x4010004,0x1080000:0x4000000,0x1180000:260,0x1280000:0x4010100,0x1380000:0,0x1480000:65540,0x1580000:0x4000100,0x1680000:256,0x1780000:0x4010004,0x1880000:65536,0x1980000:0x4010104,0x1a80000:65796,0x1b80000:0x4000004,0x1c80000:0x4000104,0x1d80000:0x4010000,0x1e80000:4,0x1f80000:65792},{0:0x80401000,65536:0x80001040,131072:4198464,196608:0x80400000,262144:0,327680:4198400,393216:0x80000040,458752:4194368,524288:0x80000000,589824:4194304,655360:64,720896:0x80001000,786432:0x80400040,851968:4160,917504:4096,983040:0x80401040,32768:0x80001040,98304:64,163840:0x80400040,229376:0x80001000,294912:4198400,360448:0x80401040,425984:0,491520:0x80400000,557056:4096,622592:0x80401000,688128:4194304,753664:4160,819200:0x80000000,884736:4194368,950272:4198464,1015808:0x80000040,1048576:4194368,1114112:4198400,1179648:0x80000040,1245184:0,1310720:4160,1376256:0x80400040,1441792:0x80401000,1507328:0x80001040,1572864:0x80401040,1638400:0x80000000,1703936:0x80400000,1769472:4198464,1835008:0x80001000,1900544:4194304,1966080:64,2031616:4096,1081344:0x80400000,1146880:0x80401040,1212416:0,1277952:4198400,1343488:4194368,1409024:0x80000000,1474560:0x80001040,1540096:64,1605632:0x80000040,1671168:4096,1736704:0x80001000,1802240:0x80400040,1867776:4160,1933312:0x80401000,1998848:4194304,2064384:4198464},{0:128,4096:0x1040000,8192:262144,12288:0x20000000,16384:0x20040080,20480:0x1000080,24576:0x21000080,28672:262272,32768:0x1000000,36864:0x20040000,40960:0x20000080,45056:0x21040080,49152:0x21040000,53248:0,57344:0x1040080,61440:0x21000000,2048:0x1040080,6144:0x21000080,10240:128,14336:0x1040000,18432:262144,22528:0x20040080,26624:0x21040000,30720:0x20000000,34816:0x20040000,38912:0,43008:0x21040080,47104:0x1000080,51200:0x20000080,55296:0x21000000,59392:0x1000000,63488:262272,65536:262144,69632:128,73728:0x20000000,77824:0x21000080,81920:0x1000080,86016:0x21040000,90112:0x20040080,94208:0x1000000,98304:0x21040080,102400:0x21000000,106496:0x1040000,110592:0x20040000,114688:262272,118784:0x20000080,122880:0,126976:0x1040080,67584:0x21000080,71680:0x1000000,75776:0x1040000,79872:0x20040080,83968:0x20000000,88064:0x1040080,92160:128,96256:0x21040000,100352:262272,104448:0x21040080,108544:0,112640:0x21000000,116736:0x1000080,120832:262144,124928:0x20040000,129024:0x20000080},{0:0x10000008,256:8192,512:0x10200000,768:0x10202008,1024:0x10002000,1280:2097152,1536:2097160,1792:0x10000000,2048:0,2304:0x10002008,2560:2105344,2816:8,3072:0x10200008,3328:2105352,3584:8200,3840:0x10202000,128:0x10200000,384:0x10202008,640:8,896:2097152,1152:2105352,1408:0x10000008,1664:0x10002000,1920:8200,2176:2097160,2432:8192,2688:0x10002008,2944:0x10200008,3200:0,3456:0x10202000,3712:2105344,3968:0x10000000,4096:0x10002000,4352:0x10200008,4608:0x10202008,4864:8200,5120:2097152,5376:0x10000000,5632:0x10000008,5888:2105344,6144:2105352,6400:0,6656:8,6912:0x10200000,7168:8192,7424:0x10002008,7680:0x10202000,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:0x10000008,5248:0x10002000,5504:8200,5760:0x10202008,6016:0x10200000,6272:0x10202000,6528:0x10200008,6784:8192,7040:2105352,7296:2097160,7552:0,7808:0x10000000,8064:0x10002008},{0:1048576,16:0x2000401,32:1024,48:1049601,64:0x2100401,80:0,96:1,112:0x2100001,128:0x2000400,144:1048577,160:0x2000001,176:0x2100400,192:0x2100000,208:1025,224:1049600,240:0x2000000,8:0x2100001,24:0,40:0x2000401,56:0x2100400,72:1048576,88:0x2000001,104:0x2000000,120:1025,136:1049601,152:0x2000400,168:0x2100000,184:1048577,200:1024,216:0x2100401,232:1,248:1049600,256:0x2000000,272:1048576,288:0x2000401,304:0x2100001,320:1048577,336:0x2000400,352:0x2100400,368:1049601,384:1025,400:0x2100401,416:1049600,432:1,448:0,464:0x2100000,480:0x2000001,496:1024,264:1049600,280:0x2000401,296:0x2100001,312:1,328:0x2000000,344:1048576,360:1025,376:0x2100400,392:0x2000001,408:0x2100000,424:0,440:0x2100401,456:1049601,472:1024,488:0x2000400,504:1048577},{0:0x8000820,1:131072,2:0x8000000,3:32,4:131104,5:0x8020820,6:0x8020800,7:2048,8:0x8020000,9:0x8000800,10:133120,11:0x8020020,12:2080,13:0,14:0x8000020,15:133152,0x80000000:2048,0x80000001:0x8020820,0x80000002:0x8000820,0x80000003:0x8000000,0x80000004:0x8020000,0x80000005:133120,0x80000006:133152,0x80000007:32,0x80000008:0x8000020,0x80000009:2080,0x8000000a:131104,0x8000000b:0x8020800,0x8000000c:0,0x8000000d:0x8020020,0x8000000e:0x8000800,0x8000000f:131072,16:133152,17:0x8020800,18:32,19:2048,20:0x8000800,21:0x8000020,22:0x8020020,23:131072,24:0,25:131104,26:0x8020000,27:0x8000820,28:0x8020820,29:133120,30:2080,31:0x8000000,0x80000010:131072,0x80000011:2048,0x80000012:0x8020020,0x80000013:133152,0x80000014:32,0x80000015:0x8020000,0x80000016:0x8000000,0x80000017:0x8000820,0x80000018:0x8020820,0x80000019:0x8000020,0x8000001a:0x8000800,0x8000001b:0,0x8000001c:133120,0x8000001d:2080,0x8000001e:131104,0x8000001f:0x8020800}],u=[0xf8000001,0x1f800000,0x1f80000,2064384,129024,8064,504,0x8000001f],l=i.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=o[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],c=0;c<16;c++){for(var u=i[c]=[],l=s[c],r=0;r<24;r++)u[r/6|0]|=t[(a[r]-1+l)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(a[r+24]-1+l)%28]<<31-r%6;u[0]=u[0]<<1|u[0]>>>31;for(var r=1;r<7;r++)u[r]=u[r]>>>(r-1)*4+3;u[7]=u[7]<<5|u[7]>>>27}for(var d=this._invSubKeys=[],r=0;r<16;r++)d[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,0xf0f0f0f),d.call(this,16,65535),f.call(this,2,0x33333333),f.call(this,8,0xff00ff),d.call(this,1,0x55555555);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^i[l])&u[l])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,0x55555555),f.call(this,8,0xff00ff),f.call(this,2,0x33333333),d.call(this,16,65535),d.call(this,4,0xf0f0f0f),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function f(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}n.DES=r._createHelper(l);var h=i.TripleDES=r.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=l.createEncryptor(t.create(r)),this._des2=l.createEncryptor(t.create(n)),this._des3=l.createEncryptor(t.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});n.TripleDES=r._createHelper(h)}(),e.exports=n.TripleDES},30992:function(e,t,r){var n;n=r(23652),r(40092),n.mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;a<r;a++)e[t+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i,n),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);t.call(this,e,r,i,n),this._prevBlock=o}}),e}(),e.exports=n.mode.CFB},32011:function(e,t,r){(function(){var t,n;t=r(72093),n=r(63318),e.exports=function(){function e(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new t,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new n(Object.keys(this.defaultParams))}}),e.prototype.getParameter=function(e){return this.params.hasOwnProperty(e)?this.params[e]:null},e.prototype.canSetParameter=function(e,t){return!0},e.prototype.setParameter=function(e,t){return null!=t?this.params[e]=t:delete this.params[e]},e}()}).call(this)},32109:function(e,t,r){var n;n=r(23652),r(51609),r(87793),r(8278),r(35883),r(53828),r(28261),r(29734),r(13656),r(12309),r(9349),r(94068),r(25e3),r(18793),r(8832),r(84922),r(25371),r(40092),r(30992),r(27458),r(64173),r(24628),r(30511),r(80312),r(86560),r(66819),r(69930),r(28765),r(27776),r(30402),r(30933),r(11395),r(9403),r(42113),r(84737),e.exports=n},32542:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e}
12 requires key modulusLength to be 2048 bits or larger`)}}},33357:function(e){(function(){e.exports=function(){function e(){}return e.prototype.hasFeature=function(e,t){return!0},e.prototype.createDocumentType=function(e,t,r){throw Error("This DOM method is not implemented.")},e.prototype.createDocument=function(e,t,r){throw Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(e){throw Error("This DOM method is not implemented.")},e.prototype.getFeature=function(e,t){throw Error("This DOM method is not implemented.")},e}()}).call(this)},34067:function(e,t,r){(function(){var t,n,i,o,a,s,c,u,l=function(e,t){for(var r in t)d.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},d={}.hasOwnProperty;c=(u=r(86200)).isObject,s=u.isFunction,a=u.getValue,o=r(20117),t=r(28672),n=r(57839),i=r(97700),e.exports=function(e){function r(e,n,i){var o,a,s,c;if(r.__super__.constructor.call(this,e),null==n)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(n),this.type=t.Element,this.attribs={},this.schemaTypeInfo=null,null!=i&&this.attribute(i),e.type===t.Document&&(this.isRoot=!0,this.documentObject=e,e.rootObject=this,e.children)){for(a=0,s=(c=e.children).length;a<s;a++)if((o=c[a]).type===t.DocType){o.name=this.name;break}}}return l(r,e),Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(r.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(r.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(r.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(r.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new i(this.attribs)),this.attributeMap}}),r.prototype.clone=function(){var e,t,r,n;for(t in(r=Object.create(this)).isRoot&&(r.documentObject=null),r.attribs={},n=this.attribs)d.call(n,t)&&(e=n[t],r.attribs[t]=e.clone());return r.children=[],this.children.forEach(function(e){var t;return(t=e.clone()).parent=r,r.children.push(t)}),r},r.prototype.attribute=function(e,t){var r,i;if(null!=e&&(e=a(e)),c(e))for(r in e)d.call(e,r)&&(i=e[r],this.attribute(r,i));else s(t)&&(t=t.apply()),this.options.keepNullAttributes&&null==t?this.attribs[e]=new n(this,e,""):null!=t&&(this.attribs[e]=new n(this,e,t));return this},r.prototype.removeAttribute=function(e){var t,r,n;if(null==e)throw Error("Missing attribute name. "+this.debugInfo());if(Array.isArray(e=a(e)))for(r=0,n=e.length;r<n;r++)t=e[r],delete this.attribs[t];else delete this.attribs[e];return this},r.prototype.toString=function(e){return this.options.writer.element(this,this.options.writer.filterOptions(e))},r.prototype.att=function(e,t){return this.attribute(e,t)},r.prototype.a=function(e,t){return this.attribute(e,t)},r.prototype.getAttribute=function(e){return this.attribs.hasOwnProperty(e)?this.attribs[e].value:null},r.prototype.setAttribute=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getAttributeNode=function(e){return this.attribs.hasOwnProperty(e)?this.attribs[e]:null},r.prototype.setAttributeNode=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.removeAttributeNode=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagName=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getAttributeNS=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.setAttributeNS=function(e,t,r){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.removeAttributeNS=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getAttributeNodeNS=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.setAttributeNodeNS=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagNameNS=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.hasAttribute=function(e){return this.attribs.hasOwnProperty(e)},r.prototype.hasAttributeNS=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.setIdAttribute=function(e,t){return this.attribs.hasOwnProperty(e)?this.attribs[e].isId:t},r.prototype.setIdAttributeNS=function(e,t,r){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.setIdAttributeNode=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagName=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagNameNS=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByClassName=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.isEqualNode=function(e){var t,n,i;if(!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)||e.namespaceURI!==this.namespaceURI||e.prefix!==this.prefix||e.localName!==this.localName||e.attribs.length!==this.attribs.length)return!1;for(t=n=0,i=this.attribs.length-1;0<=i?n<=i:n>=i;t=0<=i?++n:--n)if(!this.attribs[t].isEqualNode(e.attribs[t]))return!1;return!0},r}(o)}).call(this)},34184:function(e,t){(function(){"use strict";t.stripBOM=function(e){return"\uFEFF"===e[0]?e.substring(1):e}}).call(this)},34477:(e,t,r)=>{"use strict";
12Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return n.callServer},createServerReference:function(){return o},findSourceMapURL:function(){return i.findSourceMapURL}});let n=r(53806),i=r(31818),o=r(34979).createServerReference},35260:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return c}});let n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(12115));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}let o={current:null},a="function"==typeof n.cache?n.cache:e=>e,s=console.warn;function c(e){return function(...t){s(e(...t))}}a(e=>{try{s(o.current)}finally{o.current=null}})},35695:(e,t,r)=>{"use strict";var n=r(18999);r.o(n,"redirect")&&r.d(t,{redirect:function(){return n.redirect}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},35883:function(e,t,r){var n,i;i=(n=r(23652)).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}for(var c=e,u=t,l=n,d=[],f=0,h=0;h<u;h++)if(h%4){var p=l[c.charCodeAt(h-1)]<<h%4*2|l[c.charCodeAt(h)]>>>6-h%4*2;d[f>>>2]|=p<<24-f%4*8,f++}return i.create(d,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.exports=n.enc.Base64},37444:(e,t)=>{"use strict";function r(e,t,r){if(e)for(let o of(r&&(r=r.toLowerCase()),e)){var n,i;if(t===(null==(n=o.domain)?void 0:n.split(":",1)[0].toLowerCase())||r===o.defaultLocale.toLowerCase()||(null==(i=o.locales)?void 0:i.some(e=>e.toLowerCase()===r)))return o}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}})},38299:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rootParams",{enumerable:!0,get:function(){return l}});let n=r(39837),i=r(87101),o=r(85744),a=r(9597),s=r(44536),c=r(7541),u=new WeakMap;async function l(){let e=o.workAsyncStorage.getStore();if(!e)throw Object.defineProperty(new n.InvariantError("Missing workStore in unstable_rootParams"),"__NEXT_ERROR_CODE",{value:"E615",enumerable:!1,configurable:!0});let t=a.workUnitAsyncStorage.getStore();if(!t)throw Object.defineProperty(Error(`Route ${e.route} used \`unstable_rootParams()\` in Pages Router. This API is only available within App Router.`),"__NEXT_ERROR_CODE",{value:"E641",enumerable:!1,configurable:!0});switch(t.type){case"unstable-cache":case"cache":throw Object.defineProperty(Error(`Route ${e.route} used \`unstable_rootParams()\` inside \`"use cache"\` or \`unstable_cache\`. Support for this API inside cache scopes is planned for a future version of Next.js.`),"__NEXT_ERROR_CODE",{value:"E642",enumerable:!1,configurable:!0});case"prerender":case"prerender-ppr":case"prerender-legacy":return function(e,t,r){let n=t.fallbackRouteParams;if(n){let f=!1;for(let t in e)if(n.has(t)){f=!0;break}if(f){if("prerender"===r.type){let t=u.get(e);if(t)return t;
12let n=(0,s.makeHangingPromise)(r.renderSignal,"`unstable_rootParams`");return u.set(e,n),n}var o=e,a=n,l=t,d=r;let f=u.get(o);if(f)return f;let h={...o},p=Promise.resolve(h);return u.set(o,p),Object.keys(o).forEach(e=>{c.wellKnownProperties.has(e)||(a.has(e)?Object.defineProperty(h,e,{get(){let t=(0,c.describeStringPropertyAccess)("unstable_rootParams",e);"prerender-ppr"===d.type?(0,i.postponeWithTracking)(l.route,t,d.dynamicTracking):(0,i.throwToInterruptStaticGeneration)(t,l,d)},enumerable:!0}):p[e]=o[e])}),p}}return Promise.resolve(e)}(t.rootParams,e,t);default:return Promise.resolve(t.rootParams)}}},38369:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"URLPattern",{enumerable:!0,get:function(){return r}});let r="undefined"==typeof URLPattern?void 0:URLPattern},39439:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DynamicServerError:function(){return n},isDynamicServerError:function(){return i}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39827:(e,t,r)=>{"use strict";function n(e){return e?.[Symbol.toStringTag]==="CryptoKey"}function i(e){return e?.[Symbol.toStringTag]==="KeyObject"}r.d(t,{Ay:()=>o,D2:()=>i,R7:()=>n});let o=e=>n(e)||i(e)},39861:(e,t,r)=>{"use strict";function n(e){return{id:"credentials",name:"Credentials",type:"credentials",credentials:{},authorize:()=>null,options:e}}r.d(t,{A:()=>n})},39906:(e,t,r)=>{"use strict";r.d(t,{D:()=>i,l:()=>o});var n=r(77423);function i(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64("string"==typeof e?e:n.D0.decode(e),{alphabet:"base64url"});let t=e;t instanceof Uint8Array&&(t=n.D0.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{var r=t;if(Uint8Array.fromBase64)return Uint8Array.fromBase64(r);let e=atob(r),n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return n}catch{throw TypeError("The input to be decoded is not correctly encoded.")}}function o(e){let t=e;return("string"==typeof t&&(t=n.Rd.encode(t)),Uint8Array.prototype.toBase64)?t.toBase64({alphabet:"base64url",omitPadding:!0}):(function(e){if(Uint8Array.prototype.toBase64)return e.toBase64();let t=[];for(let r=0;r<e.length;r+=32768)t.push(String.fromCharCode.apply(null,e.subarray(r,r+32768)));return btoa(t.join(""))})(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}},40092:function(e,t,r){var n,i,o,a,s,c,u,l,d,f,h,p,y,m,b,g,w,x;n=r(23652),r(25371),e.exports=void(n.lib.Cipher||(o=(i=n.lib).Base,a=i.WordArray,s=i.BufferedBlockAlgorithm,(c=n.enc).Utf8,u=c.Base64,l=n.algo.EvpKDF,d=i.Cipher=s.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?x:g}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),i.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),f=n.mode={},h=i.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=f.CBC=function(){var e=h.extend();function t(e,t,r){var n,i=this._iv;i?(n=i,this._iv=void 0):n=this._prevBlock;for(var o=0;o<r;o++)e[t+o]^=n[o]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i),n.encryptBlock(e,r),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);n.decryptBlock(e,r),t.call(this,e,r,i),this._prevBlock=o}}),e}(),y=(n.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,o=[],s=0;s<n;s+=4)o.push(i);var c=a.create(o,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:p,padding:y}),reset:function(){d.reset.call(this);var e,t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),m=i.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),b=(n.format={}).OpenSSL={stringify:function(e){var t,r=e.ciphertext,n=e.salt;return(n?a.create([0x53616c74,0x65645f5f]).concat(n).concat(r):r).toString(u)},parse:function(e){var t,r=u.parse(e),n=r.words;return 0x53616c74==n[0]&&0x65645f5f==n[1]&&(t=a.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),m.create({ciphertext:r,salt:t})}},g=i.SerializableCipher=o.extend({cfg:o.extend({format:b}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return m.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=(n.kdf={}).OpenSSL={execute:function(e,t,r,n,i){if(n||(n=a.random(8)),i)var o=l.create({keySize:t+r,hasher:i}).compute(e,n);else var o=l.create({keySize:t+r}).compute(e,n);var s=a.create(o.words.slice(t),4*r);return o.sigBytes=4*t,m.create({key:o,iv:s,salt:n})}},x=i.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:w}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=g.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,g.decrypt.call(this,e,t,i.key,n)}})))},41525:(e,t,r)=>{!function(){var t={55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},300:function(e){"use strict";e.exports=r(49641)}},n={};function i(e){var r=n[e];
12if(void 0!==r)return r.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab="//";var o={};!function(){"use strict";var e=i(55).Buffer,t=e.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(r){var n;switch(this.encoding=function(r){var n=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(r);if("string"!=typeof n&&(e.isEncoding===t||!t(r)))throw Error("Unknown encoding: "+r);return n||r}(r),this.encoding){case"utf16le":this.text=s,this.end=c,n=4;break;case"utf8":this.fillLast=a,n=4;break;case"base64":this.text=u,this.end=l,n=3;break;default:this.write=d,this.end=f;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(n)}function n(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function s(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}o.StringDecoder=r,r.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},r.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},r.prototype.text=function(e,t){var r=function(e,t,r){var i=t.length-1;if(i<r)return 0;var o=n(t[i]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--i<r||-2===o?0:(o=n(t[i]))>=0?(o>0&&(e.lastNeed=o-2),o):--i<r||-2===o?0:(o=n(t[i]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},r.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}}(),e.exports=o}()},41673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ImageResponse:function(){return n.ImageResponse},NextRequest:function(){return i.NextRequest},NextResponse:function(){return o.NextResponse},URLPattern:function(){return s.URLPattern},after:function(){return c.after},connection:function(){return u.connection}
12,unstable_rootParams:function(){return l.unstable_rootParams},userAgent:function(){return a.userAgent},userAgentFromString:function(){return a.userAgentFromString}});let n=r(91498),i=r(18218),o=r(71814),a=r(50810),s=r(38369),c=r(96149),u=r(91706),l=r(38299)},42113:function(e,t,r){var n;n=r(23652),r(35883),r(28261),r(25371),r(40092),function(){var e=n.lib.StreamCipher,t=n.algo,r=[],i=[],o=[],a=t.RabbitLegacy=e.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,0xffff0000&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,0xffff0000&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,0xffff0000&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,0xffff0000&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)s.call(this);for(var i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],c=o[1],u=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00,l=(c<<8|c>>>24)&0xff00ff|(c<<24|c>>>8)&0xff00ff00,d=u>>>16|0xffff0000&l,f=l<<16|65535&u;n[0]^=u,n[1]^=d,n[2]^=l,n[3]^=f,n[4]^=u,n[5]^=d,n[6]^=l,n[7]^=f;for(var i=0;i<4;i++)s.call(this)}},_doProcessBlock:function(e,t){var n=this._X;s.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=(r[i]<<8|r[i]>>>24)&0xff00ff|(r[i]<<24|r[i]>>>8)&0xff00ff00,e[t+i]^=r[i]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];t[0]=t[0]+0x4d34d34d+this._b|0,t[1]=t[1]+0xd34d34d3+ +(t[0]>>>0<i[0]>>>0)|0,t[2]=t[2]+0x34d34d34+ +(t[1]>>>0<i[1]>>>0)|0,t[3]=t[3]+0x4d34d34d+ +(t[2]>>>0<i[2]>>>0)|0,t[4]=t[4]+0xd34d34d3+ +(t[3]>>>0<i[3]>>>0)|0,t[5]=t[5]+0x34d34d34+ +(t[4]>>>0<i[4]>>>0)|0,t[6]=t[6]+0x4d34d34d+ +(t[5]>>>0<i[5]>>>0)|0,t[7]=t[7]+0xd34d34d3+ +(t[6]>>>0<i[6]>>>0)|0,this._b=+(t[7]>>>0<i[7]>>>0);for(var r=0;r<8;r++){var n=e[r]+t[r],a=65535&n,s=n>>>16,c=((a*a>>>17)+a*s>>>15)+s*s,u=((0xffff0000&n)*n|0)+((65535&n)*n|0);o[r]=c^u}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}n.RabbitLegacy=e._createHelper(a)}(),e.exports=n.RabbitLegacy},42114:(e,t,r)=>{var n=r(49641).Buffer;!function(e){e.parser=function(e,t){return new c(e,t)},e.SAXParser=c,e.SAXStream=l,e.createStream=function(e,t){return new l(e,t)},e.MAX_BUFFER_LENGTH=65536;var t,i,o,a,s=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function c(t,r){if(!(this instanceof c))return new c(t,r);(function(e){for(var t=0,r=s.length;t<r;t++)e[s[t]]=""})(this),this.q=this.c="",this.bufferCheckPosition=e.MAX_BUFFER_LENGTH,this.opt=r||{},this.opt.lowercase=this.opt.lowercase||this.opt.lowercasetags,this.looseCase=this.opt.lowercase?"toLowerCase":"toUpperCase",this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!t,this.noscript=!!(t||this.opt.noscript),this.state=v.BEGIN,this.strictEntities=this.opt.strictEntities,this.ENTITIES=this.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(h)),this.trackPosition=!1!==this.opt.position,this.trackPosition&&(this.position=this.line=this.column=0),E(this,"onready")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}),c.prototype={end:function(){R(this)},write:function(t){if(this.error)throw this.error;if(this.closed)return k(this,"Cannot write after close. Assign an onready handler.");if(null===t)return R(this);"object"==typeof t&&(t=t.toString());for(var r=0,n="";n=j(t,r++),this.c=n,n;)switch(this.trackPosition&&(this.position++,"\n"===n?(this.line++,this.column=0):this.column++),this.state){case v.BEGIN:if(this.state=v.BEGIN_WHITESPACE,"\uFEFF"===n)continue;N(this,n);continue;case v.BEGIN_WHITESPACE:N(this,n);continue;case v.TEXT:if(this.sawRoot&&!this.closedRoot){for(var i,o,a,c=r-1;n&&"<"!==n&&"&"!==n;)(n=j(t,r++))&&this.trackPosition&&(this.position++,"\n"===n?(this.line++,this.column=0):this.column++);this.textNode+=t.substring(c,r-1)}"<"!==n||this.sawRoot&&this.closedRoot&&!this.strict?(g(n)||this.sawRoot&&!this.closedRoot||O(this,"Text data outside of root node."),"&"===n?this.state=v.TEXT_ENTITY:this.textNode+=n):(this.state=v.OPEN_WAKA,this.startTagPosition=this.position);continue;case v.SCRIPT:"<"===n?this.state=v.SCRIPT_ENDING:this.script+=n;continue;case v.SCRIPT_ENDING:"/"===n?this.state=v.CLOSE_TAG:(this.script+="<"+n,this.state=v.SCRIPT);continue;case v.OPEN_WAKA:"!"===n?(this.state=v.SGML_DECL,this.sgmlDecl=""):g(n)||(x(p,n)?(this.state=v.OPEN_TAG,this.tagName=n):"/"===n?(this.state=v.CLOSE_TAG,this.tagName=""):"?"===n?(this.state=v.PROC_INST,this.procInstName=this.procInstBody=""):(O(this,"Unencoded <"),this.startTagPosition+1<this.position&&(n=Array(this.position-this.startTagPosition).join(" ")+n),this.textNode+="<"+n,this.state=v.TEXT));continue;case v.SGML_DECL:"[CDATA["===(this.sgmlDecl+n).toUpperCase()?(S(this,"onopencdata"),this.state=v.CDATA,this.sgmlDecl="",this.cdata=""):this.sgmlDecl+n==="--"?(this.state=v.COMMENT,this.comment="",this.sgmlDecl=""):"DOCTYPE"===(this.sgmlDecl+n).toUpperCase()?(this.state=v.DOCTYPE,(this.doctype||this.sawRoot)&&O(this,"Inappropriately located doctype declaration"),this.doctype="",this.sgmlDecl=""):">"===n?(S(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=v.TEXT):(w(n)&&(this.state=v.SGML_DECL_QUOTED),this.sgmlDecl+=n);continue;case v.SGML_DECL_QUOTED:n===this.q&&(this.state=v.SGML_DECL,this.q=""),this.sgmlDecl+=n;continue;case v.DOCTYPE:">"===n?(this.state=v.TEXT,S(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=n,"["===n?this.state=v.DOCTYPE_DTD:w(n)&&(this.state=v.DOCTYPE_QUOTED,this.q=n));continue;case v.DOCTYPE_QUOTED:this.doctype+=n,n===this.q&&(this.q="",this.state=v.DOCTYPE);continue;case v.DOCTYPE_DTD:this.doctype+=n,"]"===n?this.state=v.DOCTYPE:w(n)&&(this.state=v.DOCTYPE_DTD_QUOTED,this.q=n);continue;case v.DOCTYPE_DTD_QUOTED:this.doctype+=n,n===this.q&&(this.state=v.DOCTYPE_DTD,this.q="");continue;case v.COMMENT:"-"===n?this.state=v.COMMENT_ENDING:this.comment+=n;continue;case v.COMMENT_ENDING:"-"===n?(this.state=v.COMMENT_ENDED,this.comment=T(this.opt,this.comment),this.comment&&S(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+n,this.state=v.COMMENT);continue;case v.COMMENT_ENDED:">"!==n?(O(this,"Malformed comment"),this.comment+="--"+n,this.state=v.COMMENT):this.state=v.TEXT;continue;case v.CDATA:"]"===n?this.state=v.CDATA_ENDING:this.cdata+=n;continue;case v.CDATA_ENDING:"]"===n?this.state=v.CDATA_ENDING_2:(this.cdata+="]"
12+n,this.state=v.CDATA);continue;case v.CDATA_ENDING_2:">"===n?(this.cdata&&S(this,"oncdata",this.cdata),S(this,"onclosecdata"),this.cdata="",this.state=v.TEXT):"]"===n?this.cdata+="]":(this.cdata+="]]"+n,this.state=v.CDATA);continue;case v.PROC_INST:"?"===n?this.state=v.PROC_INST_ENDING:g(n)?this.state=v.PROC_INST_BODY:this.procInstName+=n;continue;case v.PROC_INST_BODY:!this.procInstBody&&g(n)||("?"===n?this.state=v.PROC_INST_ENDING:this.procInstBody+=n);continue;case v.PROC_INST_ENDING:">"===n?(S(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=v.TEXT):(this.procInstBody+="?"+n,this.state=v.PROC_INST_BODY);continue;case v.OPEN_TAG:x(y,n)?this.tagName+=n:(!function(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns),e.attribList.length=0,S(e,"onopentagstart",r)}(this),">"===n?D(this):"/"===n?this.state=v.OPEN_TAG_SLASH:(g(n)||O(this,"Invalid character in tag name"),this.state=v.ATTRIB));continue;case v.OPEN_TAG_SLASH:">"===n?(D(this,!0),I(this)):(O(this,"Forward-slash in opening tag not followed by >"),this.state=v.ATTRIB);continue;case v.ATTRIB:g(n)||(">"===n?D(this):"/"===n?this.state=v.OPEN_TAG_SLASH:x(p,n)?(this.attribName=n,this.attribValue="",this.state=v.ATTRIB_NAME):O(this,"Invalid attribute name"));continue;case v.ATTRIB_NAME:"="===n?this.state=v.ATTRIB_VALUE:">"===n?(O(this,"Attribute without value"),this.attribValue=this.attribName,C(this),D(this)):g(n)?this.state=v.ATTRIB_NAME_SAW_WHITE:x(y,n)?this.attribName+=n:O(this,"Invalid attribute name");continue;case v.ATTRIB_NAME_SAW_WHITE:if("="===n)this.state=v.ATTRIB_VALUE;else{if(g(n))continue;O(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",S(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===n?D(this):x(p,n)?(this.attribName=n,this.state=v.ATTRIB_NAME):(O(this,"Invalid attribute name"),this.state=v.ATTRIB)}continue;case v.ATTRIB_VALUE:g(n)||(w(n)?(this.q=n,this.state=v.ATTRIB_VALUE_QUOTED):(O(this,"Unquoted attribute value"),this.state=v.ATTRIB_VALUE_UNQUOTED,this.attribValue=n));continue;case v.ATTRIB_VALUE_QUOTED:if(n!==this.q){"&"===n?this.state=v.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=n;continue}C(this),this.q="",this.state=v.ATTRIB_VALUE_CLOSED;continue;case v.ATTRIB_VALUE_CLOSED:g(n)?this.state=v.ATTRIB:">"===n?D(this):"/"===n?this.state=v.OPEN_TAG_SLASH:x(p,n)?(O(this,"No whitespace between attributes"),this.attribName=n,this.attribValue="",this.state=v.ATTRIB_NAME):O(this,"Invalid attribute name");continue;case v.ATTRIB_VALUE_UNQUOTED:if(!(">"===(i=n)||g(i))){"&"===n?this.state=v.ATTRIB_VALUE_ENTITY_U:this.attribValue+=n;continue}C(this),">"===n?D(this):this.state=v.ATTRIB;continue;case v.CLOSE_TAG:this.tagName?">"===n?I(this):x(y,n)?this.tagName+=n:this.script?(this.script+="</"+this.tagName,this.tagName="",this.state=v.SCRIPT):(g(n)||O(this,"Invalid tagname in closing tag"),this.state=v.CLOSE_TAG_SAW_WHITE):g(n)||(x(p,n)?this.tagName=n:this.script?(this.script+="</"+n,this.state=v.SCRIPT):O(this,"Invalid tagname in closing tag."));continue;case v.CLOSE_TAG_SAW_WHITE:if(g(n))continue;">"===n?I(this):O(this,"Invalid characters in closing tag");continue;case v.TEXT_ENTITY:case v.ATTRIB_VALUE_ENTITY_Q:case v.ATTRIB_VALUE_ENTITY_U:switch(this.state){case v.TEXT_ENTITY:o=v.TEXT,a="textNode";break;case v.ATTRIB_VALUE_ENTITY_Q:o=v.ATTRIB_VALUE_QUOTED,a="attribValue";break;case v.ATTRIB_VALUE_ENTITY_U:o=v.ATTRIB_VALUE_UNQUOTED,a="attribValue"}";"===n?(this[a]+=function(e){var t,r=e.entity,n=r.toLowerCase(),i="";return e.ENTITIES[r]?e.ENTITIES[r]:e.ENTITIES[n]?e.ENTITIES[n]:("#"===(r=n).charAt(0)&&(i="x"===r.charAt(1)?(t=parseInt(r=r.slice(2),16)).toString(16):(t=parseInt(r=r.slice(1),10)).toString(10)),r=r.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==r)?(O(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t)}(this),this.entity="",this.state=o):x(this.entity.length?b:m,n)?this.entity+=n:(O(this,"Invalid character in entity name"),this[a]+="&"+this.entity+n,this.entity="",this.state=o);continue;default:throw Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(t){for(var r=Math.max(e.MAX_BUFFER_LENGTH,10),n=0,i=0,o=s.length;i<o;i++){var a=t[s[i]].length;if(a>r)switch(s[i]){case"textNode":A(t);break;case"cdata":S(t,"oncdata",t.cdata),t.cdata="";break;case"script":S(t,"onscript",t.script),t.script="";break;default:k(t,"Max buffer length exceeded: "+s[i])}n=Math.max(n,a)}t.bufferCheckPosition=e.MAX_BUFFER_LENGTH-n+t.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this),""!==this.cdata&&(S(this,"oncdata",this.cdata),this.cdata=""),""!==this.script&&(S(this,"onscript",this.script),this.script="")}};try{a=r(62806).Stream}catch(e){a=function(){}}var u=e.EVENTS.filter(function(e){return"error"!==e&&"end"!==e});function l(e,t){if(!(this instanceof l))return new l(e,t);a.apply(this),this._parser=new c(e,t),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(e){r.emit("error",e),r._parser.error=null},this._decoder=null,u.forEach(function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser["on"+e]=t,t;r.on(e,t)},enumerable:!0,configurable:!1})})}l.prototype=Object.create(a.prototype,{constructor:{value:l}}),l.prototype.write=function(e){if("function"==typeof n&&"function"==typeof n.isBuffer&&n.isBuffer(e)){if(!this._decoder){var t=r(41525).StringDecoder;this._decoder=new t("utf8")}e=this._decoder.write(e)}
12return this._parser.write(e.toString()),this.emit("data",e),!0},l.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},l.prototype.on=function(e,t){var r=this;return r._parser["on"+e]||-1===u.indexOf(e)||(r._parser["on"+e]=function(){var t=1==arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),r.emit.apply(r,t)}),a.prototype.on.call(r,e,t)};var d="http://www.w3.org/XML/1998/namespace",f="http://www.w3.org/2000/xmlns/",h={xml:d,xmlns:f},p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function g(e){return" "===e||"\n"===e||"\r"===e||"	"===e}function w(e){return'"'===e||"'"===e}function x(e,t){return e.test(t)}var v=0;for(var _ in e.STATE={BEGIN:v++,BEGIN_WHITESPACE:v++,TEXT:v++,TEXT_ENTITY:v++,OPEN_WAKA:v++,SGML_DECL:v++,SGML_DECL_QUOTED:v++,DOCTYPE:v++,DOCTYPE_QUOTED:v++,DOCTYPE_DTD:v++,DOCTYPE_DTD_QUOTED:v++,COMMENT_STARTING:v++,COMMENT:v++,COMMENT_ENDING:v++,COMMENT_ENDED:v++,CDATA:v++,CDATA_ENDING:v++,CDATA_ENDING_2:v++,PROC_INST:v++,PROC_INST_BODY:v++,PROC_INST_ENDING:v++,OPEN_TAG:v++,OPEN_TAG_SLASH:v++,ATTRIB:v++,ATTRIB_NAME:v++,ATTRIB_NAME_SAW_WHITE:v++,ATTRIB_VALUE:v++,ATTRIB_VALUE_QUOTED:v++,ATTRIB_VALUE_CLOSED:v++,ATTRIB_VALUE_UNQUOTED:v++,ATTRIB_VALUE_ENTITY_Q:v++,ATTRIB_VALUE_ENTITY_U:v++,CLOSE_TAG:v++,CLOSE_TAG_SAW_WHITE:v++,SCRIPT:v++,SCRIPT_ENDING:v++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:1
1274,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(t){var r=e.ENTITIES[t],n="number"==typeof r?String.fromCharCode(r):r;e.ENTITIES[t]=n}),e.STATE)e.STATE[e.STATE[_]]=_;function E(e,t,r){e[t]&&e[t](r)}function S(e,t,r){e.textNode&&A(e),E(e,t,r)}function A(e){e.textNode=T(e.opt,e.textNode),e.textNode&&E(e,"ontext",e.textNode),e.textNode=""}function T(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function k(e,t){return A(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),e.error=t=Error(t),E(e,"onerror",t),e}function R(e){return e.sawRoot&&!e.closedRoot&&O(e,"Unclosed root tag"),e.state!==v.BEGIN&&e.state!==v.BEGIN_WHITESPACE&&e.state!==v.TEXT&&k(e,"Unexpected end"),A(e),e.c="",e.closed=!0,E(e,"onend"),c.call(e,e.strict,e.opt),e}function O(e,t){if("object"!=typeof e||!(e instanceof c))throw Error("bad call to strictFail");e.strict&&k(e,t)}function P(e,t){var r=0>e.indexOf(":")?["",e]:e.split(":"),n=r[0],i=r[1];return t&&"xmlns"===e&&(n="xmlns",i=""),{prefix:n,local:i}}function C(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=P(e.attribName,!0),r=t.prefix,n=t.local;if("xmlns"===r)if("xml"===n&&e.attribValue!==d)O(e,"xml: prefix must be bound to "+d+"\nActual: "+e.attribValue);else if("xmlns"===n&&e.attribValue!==f)O(e,"xmlns: prefix must be bound to "+f+"\nActual: "+e.attribValue);else{var i=e.tag,o=e.tags[e.tags.length-1]||e;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[n]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,S(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}function D(e,t){if(e.opt.xmlns){var r=e.tag,n=P(e.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(O(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),r.uri=n.prefix);var i=e.tags[e.tags.length-1]||e;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach(function(t){S(e,"onopennamespace",{prefix:t,uri:r.ns[t]})});for(var o=0,a=e.attribList.length;o<a;o++){var s=e.attribList[o],c=s[0],u=s[1],l=P(c,!0),d=l.prefix,f=l.local,h=""===d?"":r.ns[d]||"",p={name:c,value:u,prefix:d,local:f,uri:h};d&&"xmlns"!==d&&!h&&(O(e,"Unbound namespace prefix: "+JSON.stringify(d)),p.uri=d),e.tag.attributes[c]=p,S(e,"onattribute",p)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),S(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=v.TEXT:e.state=v.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function I(e){if(!e.tagName){O(e,"Weird empty close tag."),e.textNode+="</>",e.state=v.TEXT;return}if(e.script){if("script"!==e.tagName){e.script+="</"+e.tagName+">",e.tagName="",e.state=v.SCRIPT;return}S(e,"onscript",e.script),e.script=""}var t=e.tags.length,r=e.tagName;e.strict||(r=r[e.looseCase]());for(var n=r;t--;)if(e.tags[t].name!==n)O(e,"Unexpected close tag");else break;if(t<0){O(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",e.state=v.TEXT;return}e.tagName=r;for(var i=e.tags.length;i-- >t;){var o=e.tag=e.tags.pop();e.tagName=e.tag.name,S(e,"onclosetag",e.tagName);var a={};for(var s in o.ns)a[s]=o.ns[s];var c=e.tags[e.tags.length-1]||e;
12e.opt.xmlns&&o.ns!==c.ns&&Object.keys(o.ns).forEach(function(t){var r=o.ns[t];S(e,"onclosenamespace",{prefix:t,uri:r})})}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=v.TEXT}function N(e,t){"<"===t?(e.state=v.OPEN_WAKA,e.startTagPosition=e.position):g(t)||(O(e,"Non-whitespace before first tag."),e.textNode=t,e.state=v.TEXT)}function j(e,t){var r="";return t<e.length&&(r=e.charAt(t)),r}v=e.STATE,String.fromCodePoint||(t=String.fromCharCode,i=Math.floor,o=function(){var e,r,n=[],o=-1,a=arguments.length;if(!a)return"";for(var s="";++o<a;){var c=Number(arguments[o]);if(!isFinite(c)||c<0||c>1114111||i(c)!==c)throw RangeError("Invalid code point: "+c);c<=65535?n.push(c):(c-=65536,e=(c>>10)+55296,r=c%1024+56320,n.push(e,r)),(o+1===a||n.length>16384)&&(s+=t.apply(null,n),n.length=0)}return s},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:o,configurable:!0,writable:!0}):String.fromCodePoint=o)}(t)},43131:function(e,t,r){(function(){var t,n,i=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=r(20117),t=r(28672),e.exports=function(e){function r(e){r.__super__.constructor.call(this,e),this.type=t.Dummy}return i(r,e),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(e){return""},r}(n)}).call(this)},44187:e=>{"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={};function a(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function s(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,i]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=i?i:"true"))}catch{}}return t}function c(e){if(!e)return;let[[t,r],...n]=s(e),{domain:i,expires:o,httponly:a,maxage:c,path:d,samesite:f,secure:h,partitioned:p,priority:y}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var m,b,g={name:t,value:decodeURIComponent(r),domain:i,...o&&{expires:new Date(o)},...a&&{httpOnly:!0},..."string"==typeof c&&{maxAge:Number(c)},path:d,...f&&{sameSite:u.includes(m=(m=f).toLowerCase())?m:void 0},...h&&{secure:!0},...y&&{priority:l.includes(b=(b=y).toLowerCase())?b:void 0},...p&&{partitioned:!0}};let e={};for(let t in g)g[t]&&(e[t]=g[t]);return e}}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(o,{RequestCookies:()=>d,ResponseCookies:()=>f,parseCookie:()=>s,parseSetCookie:()=>c,stringifyCookie:()=>a}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let c of n(o))i.call(e,c)||c===a||t(e,c,{get:()=>o[c],enumerable:!(s=r(o,c))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var u=["strict","lax","none"],l=["low","medium","high"],d=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t)for(let[e,r]of s(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>a(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>a(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},f=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;let i=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(let e of Array.isArray(i)?i:function(e){if(!e)return[];var t,r,n,i,o,a=[],s=0;function c(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,o=!1;c();)if(","===(r=e.charAt(s))){for(n=s,s+=1,c(),i=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(o=!0,s=i,a.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!o||s>=e.length)&&a.push(e.substring(t,e.length))}return a}(i)){let t=c(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,i=this._parsed;return i.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}
12({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=a(r);t.append("set-cookie",e)}}(i,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(a).join("; ")}}},44514:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(87559);let i=(e,t,r,i,o)=>{let a;if(void 0!==o.crit&&i?.crit===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||void 0===i.crit)return new Set;if(!Array.isArray(i.crit)||0===i.crit.length||i.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let s of(a=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,i.crit)){if(!a.has(s))throw new n.T0(`Extension Header Parameter "${s}" is not recognized`);if(void 0===o[s])throw new e(`Extension Header Parameter "${s}" is missing`);if(a.get(s)&&void 0===i[s])throw new e(`Extension Header Parameter "${s}" MUST be integrity protected`)}return new Set(i.crit)}},44536:(e,t)=>{"use strict";function r(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isHangingPromiseRejectionError:function(){return r},makeHangingPromise:function(){return a}});let n="HANGING_PROMISE_REJECTION";class i extends Error{constructor(e){super(`During prerendering, ${e} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${e} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context.`),this.expression=e,this.digest=n}}let o=new WeakMap;function a(e,t){if(e.aborted)return Promise.reject(new i(t));{let r=new Promise((r,n)=>{let a=n.bind(null,new i(t)),s=o.get(e);if(s)s.push(a);else{let t=[a];o.set(e,t),e.addEventListener("abort",()=>{for(let e=0;e<t.length;e++)t[e]()},{once:!0})}});return r.catch(s),r}}function s(){}},46356:(e,t,r)=>{"use strict";r.d(t,{c:()=>h,k:()=>f});var n=r(87559),i=r(77423);let o=e=>Math.floor(e.getTime()/1e3),a=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,s=e=>{let t,r=a.exec(e);if(!r||r[4]&&r[1])throw TypeError("Invalid time period format");let n=parseFloat(r[2]);switch(r[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":t=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":t=Math.round(60*n);break;case"hour":case"hours":case"hr":case"hrs":case"h":t=Math.round(3600*n);break;case"day":case"days":case"d":t=Math.round(86400*n);break;case"week":case"weeks":case"w":t=Math.round(604800*n);break;default:t=Math.round(0x1e187e0*n)}return"-"===r[1]||"ago"===r[4]?-t:t};var c=r(85859);function u(e,t){if(!Number.isFinite(t))throw TypeError(`Invalid ${e} input`);return t}let l=e=>e.toLowerCase().replace(/^application\//,""),d=(e,t)=>"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e)));function f(e,t,r={}){let a,u;try{a=JSON.parse(i.D0.decode(t))}catch{}if(!(0,c.A)(a))throw new n.Dp("JWT Claims Set must be a top-level JSON object");let{typ:h}=r;if(h&&("string"!=typeof e.typ||l(e.typ)!==l(h)))throw new n.ie('unexpected "typ" JWT header value',a,"typ","check_failed");let{requiredClaims:p=[],issuer:y,subject:m,audience:b,maxTokenAge:g}=r,w=[...p];for(let e of(void 0!==g&&w.push("iat"),void 0!==b&&w.push("aud"),void 0!==m&&w.push("sub"),void 0!==y&&w.push("iss"),new Set(w.reverse())))if(!(e in a))throw new n.ie(`missing required "${e}" claim`,a,e,"missing");if(y&&!(Array.isArray(y)?y:[y]).includes(a.iss))throw new n.ie('unexpected "iss" claim value',a,"iss","check_failed");if(m&&a.sub!==m)throw new n.ie('unexpected "sub" claim value',a,"sub","check_failed");if(b&&!d(a.aud,"string"==typeof b?[b]:b))throw new n.ie('unexpected "aud" claim value',a,"aud","check_failed");switch(typeof r.clockTolerance){case"string":u=s(r.clockTolerance);break;case"number":u=r.clockTolerance;break;case"undefined":u=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:x}=r,v=o(x||new Date);if((void 0!==a.iat||g)&&"number"!=typeof a.iat)throw new n.ie('"iat" claim must be a number',a,"iat","invali
12d");if(void 0!==a.nbf){if("number"!=typeof a.nbf)throw new n.ie('"nbf" claim must be a number',a,"nbf","invalid");if(a.nbf>v+u)throw new n.ie('"nbf" claim timestamp check failed',a,"nbf","check_failed")}if(void 0!==a.exp){if("number"!=typeof a.exp)throw new n.ie('"exp" claim must be a number',a,"exp","invalid");if(a.exp<=v-u)throw new n.n('"exp" claim timestamp check failed',a,"exp","check_failed")}if(g){let e=v-a.iat;if(e-u>("number"==typeof g?g:s(g)))throw new n.n('"iat" claim timestamp check failed (too far in the past)',a,"iat","check_failed");if(e<0-u)throw new n.ie('"iat" claim timestamp check failed (it should be in the past)',a,"iat","check_failed")}return a}class h{#e;constructor(e){if(!(0,c.A)(e))throw TypeError("JWT Claims Set MUST be an object");this.#e=structuredClone(e)}data(){return i.Rd.encode(JSON.stringify(this.#e))}get iss(){return this.#e.iss}set iss(e){this.#e.iss=e}get sub(){return this.#e.sub}set sub(e){this.#e.sub=e}get aud(){return this.#e.aud}set aud(e){this.#e.aud=e}set jti(e){this.#e.jti=e}set nbf(e){"number"==typeof e?this.#e.nbf=u("setNotBefore",e):e instanceof Date?this.#e.nbf=u("setNotBefore",o(e)):this.#e.nbf=o(new Date)+s(e)}set exp(e){"number"==typeof e?this.#e.exp=u("setExpirationTime",e):e instanceof Date?this.#e.exp=u("setExpirationTime",o(e)):this.#e.exp=o(new Date)+s(e)}set iat(e){void 0===e?this.#e.iat=o(new Date):e instanceof Date?this.#e.iat=u("setIssuedAt",o(e)):"string"==typeof e?this.#e.iat=u("setIssuedAt",o(new Date)+s(e)):this.#e.iat=u("setIssuedAt",e)}}},47688:function(e,t){(function(){t.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:"  ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},48481:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let r=new WeakMap;function n(e,t){let n;if(!t)return{pathname:e};let i=r.get(t);i||(i=t.map(e=>e.toLowerCase()),r.set(t,i));let o=e.split("/",2);if(!o[1])return{pathname:e};let a=o[1].toLowerCase(),s=i.indexOf(a);return s<0?{pathname:e}:(n=t[s],{pathname:e=e.slice(n.length+1)||"/",detectedLocale:n})}},49033:(e,t,r)=>{"use strict";e.exports=r(22436)},49641:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=c(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),l=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[l++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
12+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return l(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|h(n,i),c=a(o),u=c.write(n,i);return u!==o&&(c=c.slice(0,u)),c}if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var l=e.valueOf&&e.valueOf();if(null!=l&&l!==e)return s.from(l,t,r);var p=function(e){if(s.isBuffer(e)){var t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(p)return p;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),a(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return l(e)},s.allocUnsafeSlow=function(e){return l(e)};function f(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return A(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return k(e).length;default:if(i)return n?-1:A(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var i,o,a,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=P[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return g(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,o=t,a=r,0===o&&a===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return b(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){var o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;o<s;
vendor: 12,407 bytes, line 12
12o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else -1!==l&&(o-=o-l),l=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){for(var d=!0,f=0;f<c;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(O(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),O(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},s.isEncoding=function(e){switch(String(e).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}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(O(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?g(this,0,e):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(O(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,c=Math.min(o,a),u=this.slice(n,i),l=e.slice(t,r),d=0;d<c;++d)if(u[d]!==l[d]){o=u[d],a=l[d];break}return o<a?-1:+(a<o)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)};function g(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,c,u=e[i],l=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(l=u);break;case 2:(192&(o=e[i+1]))==128&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=d}var f=n,h=f.length;if(h<=4096)return String.fromCharCode.apply(String,f);for(var p="",y=0;y<h;)p+=String.fromCharCode.apply(String,f.slice(y,y+=4096));return p}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function x(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function v(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function _(e,t,r,n,o){return t*=1,r>>>=0,o||v(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function E(e,t,r,n,o){return t*=1,r>>>=0,o||v(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,c,u,l,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s,c=parseInt(t.substr(2*a,2),16);if((s=c)!=s)break;e[r+a]=c}return a}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,R(A(e,this.length-i),this,i,o);case"ascii":return a=t,s=r,R(T(e),this,a,s);case"latin1":case"binary":return function(e,t,r,n){return R(T(t),e,r,n)}(this,e,t,r);case"base64":return c=t,u=r,R(k(e),this,c,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=t,d=r,R(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-l),this,l,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;x(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;x(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);x(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);x(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,n),c=a.length;
12if(0===c)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%c]}return this};var S=/[^+/0-9A-Za-z-_]/g;function A(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function T(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function k(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function R(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function O(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var P=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,u=c>>1,l=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,d=l>>1,f=5960464477539062e-23*(23===i),h=n?0:o-1,p=n?1:-1,y=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+d>=1?t+=f/c:t+=f*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*y}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//",e.exports=n(72)}()},49935:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>d});var i=r(27284),o=r(39906),a=r(87559);let s=async e=>{if(!e.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=function(e){let t,r;switch(e.kty){case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new a.T0('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new a.T0('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;
12case"OKP":switch(e.alg){case"Ed25519":case"EdDSA":t={name:"Ed25519"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new a.T0('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new a.T0('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}(e),n={...e};return delete n.alg,delete n.use,crypto.subtle.importKey("jwk",n,t,e.ext??!e.d,e.key_ops??r)};var c=r(39827);let u=async(e,t,r,i=!1)=>{let o=(n||=new WeakMap).get(e);if(o?.[r])return o[r];let a=await s({...t,alg:r});return i&&Object.freeze(e),o?o[r]=a:n.set(e,{[r]:a}),a},l=(e,t)=>{let r,i=(n||=new WeakMap).get(e);if(i?.[t])return i[t];let o="public"===e.type,a=!!o;if("x25519"===e.asymmetricKeyType){switch(t){case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":break;default:throw TypeError("given KeyObject instance cannot be used for this algorithm")}r=e.toCryptoKey(e.asymmetricKeyType,a,o?[]:["deriveBits"])}if("ed25519"===e.asymmetricKeyType){if("EdDSA"!==t&&"Ed25519"!==t)throw TypeError("given KeyObject instance cannot be used for this algorithm");r=e.toCryptoKey(e.asymmetricKeyType,a,[o?"verify":"sign"])}if("rsa"===e.asymmetricKeyType){let n;switch(t){case"RSA-OAEP":n="SHA-1";break;case"RS256":case"PS256":case"RSA-OAEP-256":n="SHA-256";break;case"RS384":case"PS384":case"RSA-OAEP-384":n="SHA-384";break;case"RS512":case"PS512":case"RSA-OAEP-512":n="SHA-512";break;default:throw TypeError("given KeyObject instance cannot be used for this algorithm")}if(t.startsWith("RSA-OAEP"))return e.toCryptoKey({name:"RSA-OAEP",hash:n},a,o?["encrypt"]:["decrypt"]);r=e.toCryptoKey({name:t.startsWith("PS")?"RSA-PSS":"RSASSA-PKCS1-v1_5",hash:n},a,[o?"verify":"sign"])}if("ec"===e.asymmetricKeyType){let n=new Map([["prime256v1","P-256"],["secp384r1","P-384"],["secp521r1","P-521"]]).get(e.asymmetricKeyDetails?.namedCurve);if(!n)throw TypeError("given KeyObject instance cannot be used for this algorithm");"ES256"===t&&"P-256"===n&&(r=e.toCryptoKey({name:"ECDSA",namedCurve:n},a,[o?"verify":"sign"])),"ES384"===t&&"P-384"===n&&(r=e.toCryptoKey({name:"ECDSA",namedCurve:n},a,[o?"verify":"sign"])),"ES512"===t&&"P-521"===n&&(r=e.toCryptoKey({name:"ECDSA",namedCurve:n},a,[o?"verify":"sign"])),t.startsWith("ECDH-ES")&&(r=e.toCryptoKey({name:"ECDH",namedCurve:n},a,o?[]:["deriveBits"]))}if(!r)throw TypeError("given KeyObject instance cannot be used for this algorithm");return i?i[t]=r:n.set(e,{[t]:r}),r},d=async(e,t)=>{if(e instanceof Uint8Array||(0,c.R7)(e))return e;if((0,c.D2)(e)){if("secret"===e.type)return e.export();if("toCryptoKey"in e&&"function"==typeof e.toCryptoKey)try{return l(e,t)}catch(e){if(e instanceof TypeError)throw e}let r=e.export({format:"jwk"});return u(e,r,t)}if((0,i.ll)(e))return e.k?(0,o.D)(e.k):u(e,e,t,!0);throw Error("unreachable")}},50271:(e,t,r)=>{var n=r(87358);"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//"),({189:function(){!function(e,t){"use strict";if(!e.setImmediate){var r,i,o,a,s,c=1,u={},l=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"===({}).toString.call(e.process)?s=function(e){n.nextTick(function(){p(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(r="setImmediate$"+Math.random()+"$",i=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(r)&&p(+t.data.slice(r.length))},e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),s=function(t){e.postMessage(r+t,"*")}):e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},s=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(a=d.documentElement,s=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):s=function(e){setTimeout(p,0,e)},f.setImmediate=function(e){"function"!=typeof e&&(e=Function(""+e));for(var t=Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var n={callback:e,args:t};return u[c]=n,s(c),c++},f.clearImmediate=h}function h(e){delete u[e]}function p(e){if(l)setTimeout(p,0,e);else{var r=u[e];if(r){l=!0;try{var n=r.callback,i=r.args;switch(i.length){case 0:n();break;case 1:n(i[0]);break;case 2:n(i[0],i[1]);break;case 3:n(i[0],i[1],i[2]);break;default:n.apply(t,i)}}finally{h(e),l=!1}}}}}("undefined"==typeof self?void 0===r.g?this:r.g:self)}})[189](),e.exports={}},50374:(e,t,r)=>{"use strict";function n(e){return{id:"google",name:"Google",type:"oidc",issuer:"https://accounts.google.com",style:{brandColor:"#1a73e8"},options:e}}r.d(t,{A:()=>n})},50810:(e,t,r)=>{"use strict";
12Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isBot:function(){return i},userAgent:function(){return a},userAgentFromString:function(){return o}});let n=function(e){return e&&e.__esModule?e:{default:e}}(r(84683));function i(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}function o(e){return{...(0,n.default)(e),isBot:void 0!==e&&i(e)}}function a({headers:e}){return o(e.get("user-agent")||void 0)}},50873:function(e,t,r){(function(){"use strict";var e,n,i,o,a,s,c,u=function(e,t){return function(){return e.apply(t,arguments)}},l=function(e,t){for(var r in t)d.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},d={}.hasOwnProperty;s=r(42114),i=r(19087),e=r(34184),a=r(19),c=r(16793).setImmediate,n=r(47688).defaults,o=function(e,t,r){var n,i;for(n=0,i=e.length;n<i;n++)t=(0,e[n])(t,r);return t},t.Parser=function(r){function i(e){var r,i,o;if(this.parseStringPromise=u(this.parseStringPromise,this),this.parseString=u(this.parseString,this),this.reset=u(this.reset,this),this.assignOrPush=u(this.assignOrPush,this),this.processAsync=u(this.processAsync,this),!(this instanceof t.Parser))return new t.Parser(e);for(r in this.options={},i=n["0.2"])d.call(i,r)&&(o=i[r],this.options[r]=o);for(r in e)d.call(e,r)&&(o=e[r],this.options[r]=o);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(a.normalize)),this.reset()}return l(i,r),i.prototype.processAsync=function(){var e;try{if(this.remaining.length<=this.options.chunkSize)return e=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(e),this.saxParser.close();return e=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(e),c(this.processAsync)}catch(e){if(!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(e)}},i.prototype.assignOrPush=function(e,t,r){return t in e?(e[t]instanceof Array||(e[t]=[e[t]]),e[t].push(r)):this.options.explicitArray?e[t]=[r]:e[t]=r},i.prototype.reset=function(){var e,t,r,n,i,a,c,u,l;return this.removeAllListeners(),this.saxParser=s.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(i=this,function(e){if(i.saxParser.resume(),!i.saxParser.errThrown)return i.saxParser.errThrown=!0,i.emit("error",e)}),this.saxParser.onend=(a=this,function(){if(!a.saxParser.ended)return a.saxParser.ended=!0,a.emit("end",a.resultObject)}),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,n=[],e=this.options.attrkey,t=this.options.charkey,this.saxParser.onopentag=(c=this,function(r){var i,a,s,u,l;if((s={})[t]="",!c.options.ignoreAttrs)for(i in l=r.attributes)d.call(l,i)&&(e in s||c.options.mergeAttrs||(s[e]={}),a=c.options.attrValueProcessors?o(c.options.attrValueProcessors,r.attributes[i],i):r.attributes[i],u=c.options.attrNameProcessors?o(c.options.attrNameProcessors,i):i,c.options.mergeAttrs?c.assignOrPush(s,u,a):s[e][u]=a);return s["#name"]=c.options.tagNameProcessors?o(c.options.tagNameProcessors,r.name):r.name,c.options.xmlns&&(s[c.options.xmlnskey]={uri:r.uri,local:r.local}),n.push(s)}),this.saxParser.onclosetag=(u=this,function(){var e,r,i,a,s,c,l,f,h,p,y;if(s=(c=n.pop())["#name"],u.options.explicitChildren&&u.options.preserveChildrenOrder||delete c["#name"],!0===c.cdata&&(e=c.cdata,delete c.cdata),h=n[n.length-1],c[t].match(/^\s*$/)&&!e?(r=c[t],delete c[t]):(u.options.trim&&(c[t]=c[t].trim()),u.options.normalize&&(c[t]=c[t].replace(/\s{2,}/g," ").trim()),c[t]=u.options.valueProcessors?o(u.options.valueProcessors,c[t],s):c[t],1===Object.keys(c).length&&t in c&&!u.EXPLICIT_CHARKEY&&(c=c[t])),"object"==typeof(y=c)&&null!=y&&0===Object.keys(y).length&&(c=""!==u.options.emptyTag?u.options.emptyTag:r),null!=u.options.validator&&(p="/"+(function(){var e,t,r;for(e=0,r=[],t=n.length;e<t;e++)a=n[e],r.push(a["#name"]);return r})().concat(s).join("/"),!function(){try{c=u.options.validator(p,h&&h[s],c)}catch(e){return u.emit("error",e)}}()),u.options.explicitChildren&&!u.options.mergeAttrs&&"object"==typeof c)if(u.options.preserveChildrenOrder){if(h){for(i in h[u.options.childkey]=h[u.o
12ptions.childkey]||[],l={},c)d.call(c,i)&&(l[i]=c[i]);h[u.options.childkey].push(l),delete c["#name"],1===Object.keys(c).length&&t in c&&!u.EXPLICIT_CHARKEY&&(c=c[t])}}else a={},u.options.attrkey in c&&(a[u.options.attrkey]=c[u.options.attrkey],delete c[u.options.attrkey]),!u.options.charsAsChildren&&u.options.charkey in c&&(a[u.options.charkey]=c[u.options.charkey],delete c[u.options.charkey]),Object.getOwnPropertyNames(c).length>0&&(a[u.options.childkey]=c),c=a;return n.length>0?u.assignOrPush(h,s,c):(u.options.explicitRoot&&(f=c,(c={})[s]=f),u.resultObject=c,u.saxParser.ended=!0,u.emit("end",u.resultObject))}),l=this,r=function(e){var r,i;if(i=n[n.length-1])return i[t]+=e,l.options.explicitChildren&&l.options.preserveChildrenOrder&&l.options.charsAsChildren&&(l.options.includeWhiteChars||""!==e.replace(/\\n/g,"").trim())&&(i[l.options.childkey]=i[l.options.childkey]||[],(r={"#name":"__text__"})[t]=e,l.options.normalize&&(r[t]=r[t].replace(/\s{2,}/g," ").trim()),i[l.options.childkey].push(r)),i},this.saxParser.ontext=r,this.saxParser.oncdata=function(e){var t;if(t=r(e))return t.cdata=!0}},i.prototype.parseString=function(t,r){null!=r&&"function"==typeof r&&(this.on("end",function(e){return this.reset(),r(null,e)}),this.on("error",function(e){return this.reset(),r(e)}));try{if(t=t.toString(),""===t.trim())return this.emit("end",null),!0;if(t=e.stripBOM(t),this.options.async)return this.remaining=t,c(this.processAsync),this.saxParser;return this.saxParser.write(t).close()}catch(e){if(!(this.saxParser.errThrown||this.saxParser.ended))return this.emit("error",e),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw e}},i.prototype.parseStringPromise=function(e){var t;return new Promise((t=this,function(r,n){return t.parseString(e,function(e,t){return e?n(e):r(t)})}))},i}(i),t.parseString=function(e,r,n){var i,o;return null!=n?("function"==typeof n&&(i=n),"object"==typeof r&&(o=r)):("function"==typeof r&&(i=r),o={}),new t.Parser(o).parseString(e,i)},t.parseStringPromise=function(e,r){var n;return"object"==typeof r&&(n=r),new t.Parser(n).parseStringPromise(e)}}).call(this)},50998:function(e,t,r){(function(){var t,n,i,o=function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},a={}.hasOwnProperty;t=r(28672),i=r(51071),n=r(51968),e.exports=function(e){function r(e,t){this.stream=e,r.__super__.constructor.call(this,t)}return o(r,e),r.prototype.endline=function(e,t,i){return e.isLastRootNode&&t.state===n.CloseTag?"":r.__super__.endline.call(this,e,t,i)},r.prototype.document=function(e,t){var r,n,i,o,a,s,c,u,l;for(c=e.children,n=i=0,a=c.length;i<a;n=++i)(r=c[n]).isLastRootNode=n===e.children.length-1;for(o=0,t=this.filterOptions(t),u=e.children,l=[],s=u.length;o<s;o++)r=u[o],l.push(this.writeChildNode(r,t,0));return l},r.prototype.attribute=function(e,t,n){return this.stream.write(r.__super__.attribute.call(this,e,t,n))},r.prototype.cdata=function(e,t,n){return this.stream.write(r.__super__.cdata.call(this,e,t,n))},r.prototype.comment=function(e,t,n){return this.stream.write(r.__super__.comment.call(this,e,t,n))},r.prototype.declaration=function(e,t,n){return this.stream.write(r.__super__.declaration.call(this,e,t,n))},r.prototype.docType=function(e,t,r){var i,o,a,s;if(r||(r=0),this.openNode(e,t,r),t.state=n.OpenTag,this.stream.write(this.indent(e,t,r)),this.stream.write("<!DOCTYPE "+e.root().name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(e,t,r)),t.state=n.InsideTag,o=0,a=(s=e.children).length;o<a;o++)i=s[o],this.writeChildNode(i,t,r+1);t.state=n.CloseTag,this.stream.write("]")}return t.state=n.CloseTag,this.stream.write(t.spaceBeforeSlash+">"),this.stream.write(this.endline(e,t,r)),t.state=n.None,this.closeNode(e,t,r)},r.prototype.element=function(e,r,i){var o,s,c,u,l,d,f,h,p;for(f in i||(i=0),this.openNode(e,r,i),r.state=n.OpenTag,this.stream.write(this.indent(e,r,i)+"<"+e.name),h=e.attribs)a.call(h,f)&&(o=h[f],this.attribute(o,r,i));if(u=0===(c=e.children.length)?null:e.children[0],0===c||e.children.every(function(e){return(e.type===t.Text||e.type===t.Raw)&&""===e.value}))r.allowEmpty?(this.stream.write(">"),r.state=n.CloseTag,this.stream.write("</"+e.name+">")):(r.state=n.CloseTag,this.stream.write(r.spaceBeforeSlash+"/>"));else if(r.pretty&&1===c&&(u.type===t.Text||u.type===t.Raw)&&null!=u.value)this.stream.write(">"),r.state=n.InsideTag,r.suppressPrettyCount++,this.writeChildNode(u,r,i+1),r.suppressPrettyCount--,r.state=n.CloseTag,this.stream.write("</"+e.name+">");else{for(this.stream.write(">"+this.endline(e,r,i)),r.state=n.InsideTag,l=0,d=(p=e.children).length;l<d;l++)s=p[l],this.writeChildNode(s,r,i+1);r.state=n.CloseTag,this.stream.write(this.indent(e,r,i)+"</"+e.name+">")}return this.stream.write(this.endline(e,r,i)),r.state=n.None,this.closeNode(e,r,i)},r.prototype.processingInstruction=function(e,t,n){return this.stream.write(r.__super__.processingInstruction.call(this,e,t,n))},r.prototype.raw=function(e,t,n){return this.stream.write(r.__super__.raw.call(this,e,t,n))},r.prototype.text=function(e,t,n){return this.stream.write(r.__super__.text.call(this,e,t,n))},r.prototype.dtdAttList=function(e,t,n){return this.stream.write(r.__super__.dtdAttList.call(this,e,t,n))},r.prototype.dtdElement=function(e,t,n){return this.stream.write(r.__super__.dtdElement.call(this,e,t,n))},r.prototype.dtdEntity=function(e,t,n){return this.stream.write(r.__super__.dtdEntity.call(this,e,t,n))},r.prototype.dtdNotation=function(e,t,n){return this.stream.write(r.__super__.dtdNotation.call(this,e,t,n))},r}(i)}).call(this)},51071:function(e,t,r){(function(){var t,n,i,o={}.hasOwnProperty;i=r(86200).assign,t=r(28672),r(5867),r(77617),r(55002),r(88606),r(34067),r(90229),r(57182),r(4258),r(43131),r(20950),r(22993),r(93880),r(29245),n=r(51968),e.exports=function(){function e(e){var t,r,n;for(t in e||(e={}),this.options=e,r=e.writer||{})o.call(r,t)&&(n=r[t],this["_"+t]=this[t],this[t]=n)}return e.prototype.filterOptions=function(e){var t,r,o,a,s,c,u,l;return e||(e={}),e=i({},this.options,e),(t={writer:this}).pretty=e.pretty||!1,t.allowEmpty=e.allowEmpty||!1,t.indent=null!=(r=e.indent)?r:"  ",t.newline=null!=(o=e.newline)?o:"\n",t.offset=null!=(a=e.offset)?a:0,t.dontPrettyTextNodes=null!=(s=null!=(c=e.dontPrettyTextNodes)?c:e.dontprettytextnodes)?s:0,t.spaceBeforeSlash=null!=(u=null!=(l=e.spaceBeforeSlash)?l:e.spacebeforeslash)?u:"",!0===t.spaceBeforeSlash&&(t.spaceBeforeSlash=" "),t.suppressPrettyCount=0,t.user={},t.state=n.None,t},e.prototype.indent=function(e,t,r){var n;if(!t.pretty||t.suppressPrettyCount);else if(t.pretty&&(n=(r||0)+t.offset+1)>0)return Array(n).join(t.indent);return""},e.prototype.endline=function(e,t,r){return!t.pretty||t.suppressPrettyCount?"":t.newline},e.prototype.attribute=function(e,t,r){var n;return this.openAttribute(e,t,r),n=" "+e.name+'="'+e.value+'"',this.closeAttribute(e,t,r),n},e.prototype.cdata=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<![CDATA[",t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+="]]>"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.comment=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"\x3c!-- ",t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=" --\x3e"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.declaration=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<?xml",t.state=n.InsideTag,i+=' version="'+e.version+'"',null!=e.encoding&&(i+=' encoding="'+e.encoding+'"'),null!=e.standalone&&(i+=' standalone="'+e.standalone+'"'),t.state=n.CloseTag,i+=t.spaceBeforeSlash+"?>",i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.docType=function(e,t,r){var i,o,a,s,c;if(r||(r=0),this.openNode(e,t,r),t.state=n.OpenTag,s=this.indent(e,t,r)+"<!DOCTYPE "+e.root().name,e.pubID&&e.sysID?s+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(s+=' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(s+=" [",s+=this.endline(e,t,r),t.state=n.InsideTag,o=0,a=(c=e.children).length;o<a;o++)i=c[o],s+=this.writeChildNode(i,t,r+1);t.state=n.CloseTag,s+="]"}return t.state=n.CloseTag,s+=t.spaceBeforeSlash+">",s+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),s},e.prototype.element=function(e,r,i){var a,s,c,u,l,d,f,h,p,y,m,b,g,w;for(p in i||(i=0),y=!1,m="",this.openNode(e,r,i),r.state=n.OpenTag,m+=this.indent(e,r,i)+"<"+e.name,b=e.attribs)o.call(b,p)&&(a=b[p],m+=this.attribute(a,r,i));if(u=0===(c=e.children.length)?null:e.children[0],0===c||e.children.every(function(e){return(e.type===t.Text||e.type===t.Raw)&&""===e.value}))r.allowEmpty?(m+=">",r.state=n.CloseTag,m+="</"+e.name+">"+this.endline(e,r,i)):(r.state=n.CloseTag,m+=r.spaceBeforeSlash+"/>"+this.endline(e,r,i));else if(r.pretty&&1===c&&(u.type===t.Text||u.type===t.Raw)&&null!=u.value)m+=">",r.state=n.InsideTag,r.suppressPrettyCount++,y=!0,m+=this.writeChildNode(u,r,i+1),r.suppressPrettyCount--,y=!1,r.state=n.CloseTag,m+="</"+e.name+">"+this.endline(e,r,i);else{if(r.dontPrettyTextNodes){for(l=0,f=(g=e.children).length;l<f;l++)if(((s=g[l]).type===t.Text||s.type===t.Raw)&&null!=s.value){r.suppressPrettyCount++,y=!0;break}}for(m+=">"+this.endline(e,r,i),r.state=n.InsideTag,d=0,h=(w=e.children).length;d<h;d++)s=w[d],m+=this.writeChildNode(s,r,i+1);r.state=n.CloseTag,m+=this.indent(e,r,i)+"</"+e.name+">",y&&r.suppressPrettyCount--,m+=this.endline(e,r,i),r.state=n.None}return this.closeNode(e,r,i),m},e.prototype.writeChildNode=function(e,r,n){switch(e.type){case t.CData:return this.cdata(e,r,n);case t.Comment:return this.comment(e,r,n);
12case t.Element:return this.element(e,r,n);case t.Raw:return this.raw(e,r,n);case t.Text:return this.text(e,r,n);case t.ProcessingInstruction:return this.processingInstruction(e,r,n);case t.Dummy:return"";case t.Declaration:return this.declaration(e,r,n);case t.DocType:return this.docType(e,r,n);case t.AttributeDeclaration:return this.dtdAttList(e,r,n);case t.ElementDeclaration:return this.dtdElement(e,r,n);case t.EntityDeclaration:return this.dtdEntity(e,r,n);case t.NotationDeclaration:return this.dtdNotation(e,r,n);default:throw Error("Unknown XML node type: "+e.constructor.name)}},e.prototype.processingInstruction=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<?",t.state=n.InsideTag,i+=e.target,e.value&&(i+=" "+e.value),t.state=n.CloseTag,i+=t.spaceBeforeSlash+"?>",i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.raw=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r),t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.text=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r),t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdAttList=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<!ATTLIST",t.state=n.InsideTag,i+=" "+e.elementName+" "+e.attributeName+" "+e.attributeType,"#DEFAULT"!==e.defaultValueType&&(i+=" "+e.defaultValueType),e.defaultValue&&(i+=' "'+e.defaultValue+'"'),t.state=n.CloseTag,i+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdElement=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<!ELEMENT",t.state=n.InsideTag,i+=" "+e.name+" "+e.value,t.state=n.CloseTag,i+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdEntity=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<!ENTITY",t.state=n.InsideTag,e.pe&&(i+=" %"),i+=" "+e.name,e.value?i+=' "'+e.value+'"':(e.pubID&&e.sysID?i+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(i+=' SYSTEM "'+e.sysID+'"'),e.nData&&(i+=" NDATA "+e.nData)),t.state=n.CloseTag,i+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdNotation=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<!NOTATION",t.state=n.InsideTag,i+=" "+e.name,e.pubID&&e.sysID?i+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.pubID?i+=' PUBLIC "'+e.pubID+'"':e.sysID&&(i+=' SYSTEM "'+e.sysID+'"'),t.state=n.CloseTag,i+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.openNode=function(e,t,r){},e.prototype.closeNode=function(e,t,r){},e.prototype.openAttribute=function(e,t,r){},e.prototype.closeAttribute=function(e,t,r){},e}()}).call(this)},51609:function(e,t,r){var n,i,o,a,s;o=(i=(n=r(23652)).lib).Base,a=i.WordArray,(s=n.x64={}).Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=o.extend({init:function(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return a.create(r,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),e.exports=n},51816:function(e,t,r){(function(){var t=function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},n={}.hasOwnProperty;e.exports=function(e){function r(e){r.__super__.constructor.call(this,e),this.value=""}return t(r,e),Object.defineProperty(r.prototype,"data",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(r.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),r.prototype.clone=function(){return Object.create(this)},r.prototype.substringData=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.appendData=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.insertData=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.deleteData=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.replaceData=function(e,t,r){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.isEqualNode=function(e){return!!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.data===this.data},r}(r(20117))}).call(this)},51968:function(e){(function(){e.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},52039:(e,t,r)=>{"use strict";
12Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return n.afterTaskAsyncStorageInstance}});let n=r(99422)},52359:(e,t,r)=>{"use strict";r.d(t,{P:()=>b});var n=r(39906),i=r(7973),o=r(32542),a=r(70557);let s=async(e,t,r)=>{let n=await (0,a.A)(e,t,"sign");return(0,o.A)(e,n),new Uint8Array(await crypto.subtle.sign((0,i.A)(e,n.algorithm),n,r))};var c=r(16692),u=r(87559),l=r(77423),d=r(74378),f=r(44514),h=r(49935);class p{#e;#t;#r;constructor(e){if(!(e instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this.#e=e}setProtectedHeader(e){if(this.#t)throw TypeError("setProtectedHeader can only be called once");return this.#t=e,this}setUnprotectedHeader(e){if(this.#r)throw TypeError("setUnprotectedHeader can only be called once");return this.#r=e,this}async sign(e,t){let r;if(!this.#t&&!this.#r)throw new u.Ye("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!(0,c.A)(this.#t,this.#r))throw new u.Ye("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let i={...this.#t,...this.#r},o=(0,f.A)(u.Ye,new Map([["b64",!0]]),t?.crit,this.#t,i),a=!0;if(o.has("b64")&&"boolean"!=typeof(a=this.#t.b64))throw new u.Ye('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:p}=i;if("string"!=typeof p||!p)throw new u.Ye('JWS "alg" (Algorithm) Header Parameter missing or invalid');(0,d.A)(p,e,"sign");let y=this.#e;a&&(y=l.Rd.encode((0,n.l)(y))),r=this.#t?l.Rd.encode((0,n.l)(JSON.stringify(this.#t))):l.Rd.encode("");let m=(0,l.xW)(r,l.Rd.encode("."),y),b=await (0,h.A)(e,p),g=await s(p,b,m),w={signature:(0,n.l)(g),payload:""};return a&&(w.payload=l.D0.decode(y)),this.#r&&(w.header=this.#r),this.#t&&(w.protected=l.D0.decode(r)),w}}class y{#n;constructor(e){this.#n=new p(e)}setProtectedHeader(e){return this.#n.setProtectedHeader(e),this}async sign(e,t){let r=await this.#n.sign(e,t);if(void 0===r.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}var m=r(46356);class b{#t;#i;constructor(e={}){this.#i=new m.c(e)}setIssuer(e){return this.#i.iss=e,this}setSubject(e){return this.#i.sub=e,this}setAudience(e){return this.#i.aud=e,this}setJti(e){return this.#i.jti=e,this}setNotBefore(e){return this.#i.nbf=e,this}setExpirationTime(e){return this.#i.exp=e,this}setIssuedAt(e){return this.#i.iat=e,this}setProtectedHeader(e){return this.#t=e,this}async sign(e,t){let r=new y(this.#i.data());if(r.setProtectedHeader(this.#t),Array.isArray(this.#t?.crit)&&this.#t.crit.includes("b64")&&!1===this.#t.b64)throw new u.Dp("JWTs MUST NOT use unencoded payload");return r.sign(e,t)}}},53054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return a}});let n=r(48481),i=r(6493),o=r(91747);function a(e,t){var r,a;let{basePath:s,i18n:c,trailingSlash:u}=null!=(r=t.nextConfig)?r:{},l={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):u};s&&(0,o.pathHasPrefix)(l.pathname,s)&&(l.pathname=(0,i.removePathPrefix)(l.pathname,s),l.basePath=s);let d=l.pathname;if(l.pathname.startsWith("/_next/data/")&&l.pathname.endsWith(".json")){let e=l.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");l.buildId=e[0],d="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(l.pathname=d)}if(c){let e=t.i18nProvider?t.i18nProvider.analyze(l.pathname):(0,n.normalizeLocalePath)(l.pathname,c.locales);l.locale=e.detectedLocale,l.pathname=null!=(a=e.pathname)?a:l.pathname,!e.detectedLocale&&l.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(d):(0,n.normalizeLocalePath)(d,c.locales)).detectedLocale&&(l.locale=e.detectedLocale)}return l}},53828:function(e,t,r){var n,i;i=(n=r(23652)).lib.WordArray,n.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a<n;a+=3)for(var s=(r[a>>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,c=0;c<4&&a+.75*c<n;c++)o.push(i.charAt(s>>>6*(3-c)&63));var u=i.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,n=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<n.length;
12a++)o[n.charCodeAt(a)]=a}var s=n.charAt(64);if(s){var c=e.indexOf(s);-1!==c&&(r=c)}for(var u=e,l=r,d=o,f=[],h=0,p=0;p<l;p++)if(p%4){var y=d[u.charCodeAt(p-1)]<<p%4*2|d[u.charCodeAt(p)]>>>6-p%4*2;f[h>>>2]|=y<<24-h%4*8,h++}return i.create(f,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},e.exports=n.enc.Base64url},53949:function(e){(function(){e.exports=function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.nodes.length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.item=function(e){return this.nodes[e]||null},e}()}).call(this)},55002:function(e,t,r){(function(){var t,n=function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t=r(28672),e.exports=function(e){function r(e,n){if(r.__super__.constructor.call(this,e),null==n)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(n)}return n(r,e),r.prototype.clone=function(){return Object.create(this)}
12,r.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))},r}(r(51816))}).call(this)},56671:(e,t,r)=>{"use strict";r.d(t,{l$:()=>E,oR:()=>g});var n=r(12115),i=r(47650);let o=e=>{switch(e){case"success":return c;case"info":return l;case"warning":return u;case"error":return d;default:return null}},a=Array(12).fill(0),s=e=>{let{visible:t,className:r}=e;return n.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":t},n.createElement("div",{className:"sonner-spinner"},a.map((e,t)=>n.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},c=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),u=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),l=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),d=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),f=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},n.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),h=()=>{let[e,t]=n.useState(document.hidden);return n.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e},p=1;class y{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,i="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:p++,o=this.toasts.find(e=>e.id===i),a=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),o?this.toasts=this.toasts.map(t=>t.id===i?(this.publish({...t,...e,id:i,title:r}),{...t,...e,id:i,dismissible:a,title:r}):t):this.addToast({title:r,...n,dismissible:a,id:i}),i},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
12this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let r,i;if(!t)return;void 0!==t.loading&&(i=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let o=Promise.resolve(e instanceof Function?e():e),a=void 0!==i,s=o.then(async e=>{if(r=["resolve",e],n.isValidElement(e))a=!1,this.create({id:i,type:"default",message:e});else if(b(e)&&!e.ok){a=!1;let r="function"==typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,o="function"==typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description,s="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:i,type:"error",description:o,...s})}else if(e instanceof Error){a=!1;let r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,s="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:i,type:"error",description:o,...s})}else if(void 0!==t.success){a=!1;let r="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description,s="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:i,type:"success",description:o,...s})}}).catch(async e=>{if(r=["reject",e],void 0!==t.error){a=!1;let r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,s="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:i,type:"error",description:o,...s})}}).finally(()=>{a&&(this.dismiss(i),i=void 0),null==t.finally||t.finally.call(t)}),c=()=>new Promise((e,t)=>s.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t));return"string"!=typeof i&&"number"!=typeof i?{unwrap:c}:Object.assign(i,{unwrap:c})},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||p++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}let m=new y,b=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,g=Object.assign((e,t)=>{let r=(null==t?void 0:t.id)||p++;return m.addToast({title:e,...t,id:r}),r},{success:m.success,info:m.info,warning:m.warning,error:m.error,custom:m.custom,message:m.message,promise:m.promise,dismiss:m.dismiss,loading:m.loading},{getHistory:()=>m.toasts,getToasts:()=>m.getActiveToasts()});function w(e){return void 0!==e.label}function x(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
12left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}
12[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);
12--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");let v=e=>{var t,r,i,a,c,u,l,d,p,y,m;let{invert:b,toast:g,unstyled:v,interacting:_,setHeights:E,visibleToasts:S,heights:A,index:T,toasts:k,expanded:R,removeToast:O,defaultRichColors:P,closeButton:C,style:D,cancelButtonStyle:I,actionButtonStyle:N,className:j="",descriptionClassName:U="",duration:L,position:M,gap:H,expandByDefault:B,classNames:W,icons:$,closeButtonAriaLabel:F="Close toast"}=e,[K,z]=n.useState(null),[q,J]=n.useState(null),[V,G]=n.useState(!1),[X,Y]=n.useState(!1),[Q,Z]=n.useState(!1),[ee,et]=n.useState(!1),[er,en]=n.useState(!1),[ei,eo]=n.useState(0),[ea,es]=n.useState(0),ec=n.useRef(g.duration||L||4e3),eu=n.useRef(null),el=n.useRef(null),ed=0===T,ef=T+1<=S,eh=g.type,ep=!1!==g.dismissible,ey=g.className||"",em=g.descriptionClassName||"",eb=n.useMemo(()=>A.findIndex(e=>e.toastId===g.id)||0,[A,g.id]),eg=n.useMemo(()=>{var e;return null!=(e=g.closeButton)?e:C},[g.closeButton,C]),ew=n.useMemo(()=>g.duration||L||4e3,[g.duration,L]),ex=n.useRef(0),ev=n.useRef(0),e_=n.useRef(0),eE=n.useRef(null),[eS,eA]=M.split("-"),eT=n.useMemo(()=>A.reduce((e,t,r)=>r>=eb?e:e+t.height,0),[A,eb]),ek=h(),eR=g.invert||b,eO="loading"===eh;ev.current=n.useMemo(()=>eb*H+eT,[eb,eT]),n.useEffect(()=>{ec.current=ew},[ew]),n.useEffect(()=>{G(!0)},[]),n.useEffect(()=>{let e=el.current;if(e){let t=e.getBoundingClientRect().height;return es(t),E(e=>[{toastId:g.id,height:t,position:g.position},...e]),()=>E(e=>e.filter(e=>e.toastId!==g.id))}},[E,g.id]),n.useLayoutEffect(()=>{if(!V)return;let e=el.current,t=e.style.height;e.style.height="auto";let r=e.getBoundingClientRect().height;e.style.height=t,es(r),E(e=>e.find(e=>e.toastId===g.id)?e.map(e=>e.toastId===g.id?{...e,height:r}:e):[{toastId:g.id,height:r,position:g.position},...e])},[V,g.title,g.description,E,g.id]);let eP=n.useCallback(()=>{Y(!0),eo(ev.current),E(e=>e.filter(e=>e.toastId!==g.id)),setTimeout(()=>{O(g)},200)},[g,O,E,ev]);n.useEffect(()=>{let e;if((!g.promise||"loading"!==eh)&&g.duration!==1/0&&"loading"!==g.type)return R||_||ek?(()=>{if(e_.current<ex.current){let e=new Date().getTime()-ex.current;ec.current=ec.current-e}
12e_.current=new Date().getTime()})():ec.current!==1/0&&(ex.current=new Date().getTime(),e=setTimeout(()=>{null==g.onAutoClose||g.onAutoClose.call(g,g),eP()},ec.current)),()=>clearTimeout(e)},[R,_,g,eh,ek,eP]),n.useEffect(()=>{g.delete&&eP()},[eP,g.delete]);let eC=g.icon||(null==$?void 0:$[eh])||o(eh);return n.createElement("li",{tabIndex:0,ref:el,className:x(j,ey,null==W?void 0:W.toast,null==g||null==(t=g.classNames)?void 0:t.toast,null==W?void 0:W.default,null==W?void 0:W[eh],null==g||null==(r=g.classNames)?void 0:r[eh]),"data-sonner-toast":"","data-rich-colors":null!=(y=g.richColors)?y:P,"data-styled":!(g.jsx||g.unstyled||v),"data-mounted":V,"data-promise":!!g.promise,"data-swiped":er,"data-removed":X,"data-visible":ef,"data-y-position":eS,"data-x-position":eA,"data-index":T,"data-front":ed,"data-swiping":Q,"data-dismissible":ep,"data-type":eh,"data-invert":eR,"data-swipe-out":ee,"data-swipe-direction":q,"data-expanded":!!(R||B&&V),style:{"--index":T,"--toasts-before":T,"--z-index":k.length-T,"--offset":"".concat(X?ei:ev.current,"px"),"--initial-height":B?"auto":"".concat(ea,"px"),...D,...g.style},onDragEnd:()=>{Z(!1),z(null),eE.current=null},onPointerDown:e=>{!eO&&ep&&(eu.current=new Date,eo(ev.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(Z(!0),eE.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n,i;if(ee||!ep)return;eE.current=null;let o=Number((null==(e=el.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),a=Number((null==(t=el.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),s=new Date().getTime()-(null==(r=eu.current)?void 0:r.getTime()),c="x"===K?o:a,u=Math.abs(c)/s;if(Math.abs(c)>=45||u>.11){eo(ev.current),null==g.onDismiss||g.onDismiss.call(g,g),"x"===K?J(o>0?"right":"left"):J(a>0?"down":"up"),eP(),et(!0);return}null==(n=el.current)||n.style.setProperty("--swipe-amount-x","0px"),null==(i=el.current)||i.style.setProperty("--swipe-amount-y","0px"),en(!1),Z(!1),z(null)},onPointerMove:t=>{var r,n,i,o;if(!eE.current||!ep||(null==(r=window.getSelection())?void 0:r.toString().length)>0)return;let a=t.clientY-eE.current.y,s=t.clientX-eE.current.x,c=null!=(o=e.swipeDirections)?o:function(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}(M);!K&&(Math.abs(s)>1||Math.abs(a)>1)&&z(Math.abs(s)>Math.abs(a)?"x":"y");let u={x:0,y:0},l=e=>1/(1.5+Math.abs(e)/20);if("y"===K){if(c.includes("top")||c.includes("bottom"))if(c.includes("top")&&a<0||c.includes("bottom")&&a>0)u.y=a;else{let e=a*l(a);u.y=Math.abs(e)<Math.abs(a)?e:a}}else if("x"===K&&(c.includes("left")||c.includes("right")))if(c.includes("left")&&s<0||c.includes("right")&&s>0)u.x=s;else{let e=s*l(s);u.x=Math.abs(e)<Math.abs(s)?e:s}(Math.abs(u.x)>0||Math.abs(u.y)>0)&&en(!0),null==(n=el.current)||n.style.setProperty("--swipe-amount-x","".concat(u.x,"px")),null==(i=el.current)||i.style.setProperty("--swipe-amount-y","".concat(u.y,"px"))}},eg&&!g.jsx&&"loading"!==eh?n.createElement("button",{"aria-label":F,"data-disabled":eO,"data-close-button":!0,onClick:eO||!ep?()=>{}:()=>{eP(),null==g.onDismiss||g.onDismiss.call(g,g)},className:x(null==W?void 0:W.closeButton,null==g||null==(i=g.classNames)?void 0:i.closeButton)},null!=(m=null==$?void 0:$.close)?m:f):null,(eh||g.icon||g.promise)&&null!==g.icon&&((null==$?void 0:$[eh])!==null||g.icon)?n.createElement("div",{"data-icon":"",className:x(null==W?void 0:W.icon,null==g||null==(a=g.classNames)?void 0:a.icon)},g.promise||"loading"===g.type&&!g.icon?g.icon||function(){var e,t;return(null==$?void 0:$.loading)?n.createElement("div",{className:x(null==W?void 0:W.loader,null==g||null==(t=g.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===eh},$.loading):n.createElement(s,{className:x(null==W?void 0:W.loader,null==g||null==(e=g.classNames)?void 0:e.loader),visible:"loading"===eh})}():null,"loading"!==g.type?eC:null):null,n.createElement("div",{"data-content":"",className:x(null==W?void 0:W.content,null==g||null==(c=g.classNames)?void 0:c.content)},n.createElement("div",{"data-title":"",className:x(null==W?void 0:W.title,null==g||null==(u=g.classNames)?void 0:u.title)},g.jsx?g.jsx:"function"==typeof g.title?g.title():g.title),g.description?n.createElement("div",{"data-description":"",className:x(U,em,null==W?void 0:W.description,null==g||null==(l=g.classNames)?void 0:l.description)},"function"==typeof g.description?g.description():g.description):null),n.isValidElement(g.cancel)?g.cancel:g.cancel&&w(g.cancel)?n.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||I,onClick:e=>{w(g.cancel)&&ep&&(null==g.cancel.onClick||g.cancel.onClick.call(g.cancel,e),eP())},className:x(null==W?void 0:W.cancelButton,null==g||null==(d=g.classNames)?void 0:d.cancelButton)},g.cancel.label):null,n.isValidElement(g.action)?g.action:g.action&&w(g.action)?n.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||N,onClick:e=>{w(g.action)&&(null==g.action.onClick||g.action.onClick.call(g.action,e),e.defaultPrevented||eP())},className:x(null==W?void 0:W.actionButton,null==g||null==(p=g.classNames)?void 0:p.actionButton)},g.action.label):null)};function _(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}let E=n.forwardRef(function(e,t){let{invert:r,position:o="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:c,className:u,offset:l,mobileOffset:d,theme:f="light",richColors:h,duration:p,style:y,visibleToasts:b=3,toastOptions:g,dir:w=_(),gap:x=14,icons:E,containerAriaLabel:S="Notifications"}=e,[A,T]=n.useState([]),k=n.useMemo(()=>Array.from(new Set([o].concat(A.filter(e=>e.position).map(e=>e.position)))),[A,o]),[R,O]=n.useState([]),[P,C]=n.useState(!1),[D,I]=n.useState(!1),[N,j]=n.useState("system"!==f?f:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
12k":"light"),U=n.useRef(null),L=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=n.useRef(null),H=n.useRef(!1),B=n.useCallback(e=>{T(t=>{var r;return(null==(r=t.find(t=>t.id===e.id))?void 0:r.delete)||m.dismiss(e.id),t.filter(t=>{let{id:r}=t;return r!==e.id})})},[]);return n.useEffect(()=>m.subscribe(e=>{if(e.dismiss)return void requestAnimationFrame(()=>{T(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});setTimeout(()=>{i.flushSync(()=>{T(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[A]),n.useEffect(()=>{if("system"!==f)return void j(f);if("system"===f&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?j("dark"):j("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let{matches:t}=e;t?j("dark"):j("light")})}catch(t){e.addListener(e=>{let{matches:t}=e;try{t?j("dark"):j("light")}catch(e){console.error(e)}})}},[f]),n.useEffect(()=>{A.length<=1&&C(!1)},[A]),n.useEffect(()=>{let e=e=>{var t,r;a.every(t=>e[t]||e.code===t)&&(C(!0),null==(r=U.current)||r.focus()),"Escape"===e.code&&(document.activeElement===U.current||(null==(t=U.current)?void 0:t.contains(document.activeElement)))&&C(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a]),n.useEffect(()=>{if(U.current)return()=>{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,H.current=!1)}},[U.current]),n.createElement("section",{ref:t,"aria-label":"".concat(S," ").concat(L),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((t,i)=>{var o;let[a,f]=t.split("-");return A.length?n.createElement("ol",{key:t,dir:"auto"===w?_():w,tabIndex:-1,ref:U,className:u,"data-sonner-toaster":!0,"data-sonner-theme":N,"data-y-position":a,"data-lifted":P&&A.length>1&&!s,"data-x-position":f,style:{"--front-toast-height":"".concat((null==(o=R[0])?void 0:o.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(x,"px"),...y,...function(e,t){let r={};return[e,t].forEach((e,t)=>{let n=1===t,i=n?"--mobile-offset":"--offset",o=n?"16px":"24px";function a(e){["top","right","bottom","left"].forEach(t=>{r["".concat(i,"-").concat(t)]="number"==typeof e?"".concat(e,"px"):e})}"number"==typeof e||"string"==typeof e?a(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?r["".concat(i,"-").concat(t)]=o:r["".concat(i,"-").concat(t)]="number"==typeof e[t]?"".concat(e[t],"px"):e[t]}):a(o)}),r}(l,d)},onBlur:e=>{H.current&&!e.currentTarget.contains(e.relatedTarget)&&(H.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:e=>{!(e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible)&&(H.current||(H.current=!0,M.current=e.relatedTarget))},onMouseEnter:()=>C(!0),onMouseMove:()=>C(!0),onMouseLeave:()=>{D||C(!1)},onDragEnd:()=>C(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||I(!0)},onPointerUp:()=>I(!1)},A.filter(e=>!e.position&&0===i||e.position===t).map((i,o)=>{var a,u;return n.createElement(v,{key:i.id,icons:E,index:o,toast:i,defaultRichColors:h,duration:null!=(a=null==g?void 0:g.duration)?a:p,className:null==g?void 0:g.className,descriptionClassName:null==g?void 0:g.descriptionClassName,invert:r,visibleToasts:b,closeButton:null!=(u=null==g?void 0:g.closeButton)?u:c,interacting:D,position:t,style:null==g?void 0:g.style,unstyled:null==g?void 0:g.unstyled,classNames:null==g?void 0:g.classNames,cancelButtonStyle:null==g?void 0:g.cancelButtonStyle,actionButtonStyle:null==g?void 0:g.actionButtonStyle,closeButtonAriaLabel:null==g?void 0:g.closeButtonAriaLabel,removeToast:B,toasts:A.filter(e=>e.position==i.position),heights:R.filter(e=>e.position==i.position),setHeights:O,expandByDefault:s,gap:x,expanded:P,swipeDirections:e.swipeDirections})})):null}))})},57182:function(e,t,r){(function(){var t,n=function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t=r(28672),e.exports=function(e){function r(e,n){if(r.__super__.constructor.call(this,e),null==n)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=t.Text,this.value=this.stringify.text(n)}return n(r,e),Object.defineProperty(r.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"wholeText",{get:function(){var e,t,r;for(r="",t=this.previousSibling;t;)r=t.data+r,t=t.previousSibling;for(r+=this.data,e=this.nextSibling;e;)r+=e.data,e=e.nextSibling;return r}}),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(e){return this.options.writer.text(this,this.options.writer.filterOptions(e))},r.prototype.splitText=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.replaceWholeText=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r}(r(51816))}).call(this)},57839:function(e,t,r){(function(){var t;t=r(28672),r(20117),e.exports=function(){function e(e,r,n){if(this.parent=e,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==r)throw Error("Missing attribute name. "+this.debugInfo(r));this.name=this.stringify.name(r),this.value=this.stringify.attValue(n),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(e.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(e.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(e.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(e.prototype,"specified",{get:function(){return!0}}),e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(e){return this.options.writer.attribute(this,this.options.writer.filterOptions(e))},e.prototype.debugInfo=function(e){return null==(e=e||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},e.prototype.isEqualNode=function(e){return e.namespaceURI===this.namespaceURI&&e.prefix===this.prefix&&e.localName===this.localName&&e.value===this.value},e}()}).call(this)},60052:function(e,t,r){(function(){var t,n,i,o,a,s,c,u=function(e,t){for(var r in t)l.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;c=r(86200).isPlainObject,i=r(33357),n=r(32011),o=r(20117),t=r(28672),s=r(25593),a=r(28527),e.exports=function(e){function r(e){r.__super__.constructor.call(this,null),this.name="#document",this.type=t.Document,this.documentURI=null,this.domConfig=new n,e||(e={}),e.writer||(e.writer=new a),this.options=e,this.stringify=new s(e)}return u(r,e),Object.defineProperty(r.prototype,"implementation",{value:new i}),Object.defineProperty(r.prototype,"doctype",{get:function(){var e,r,n,i;for(r=0,n=(i=this.children).length;r<n;r++)if((e=i[r]).type===t.DocType)return e;return null}}),Object.defineProperty(r.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===t.Declaration?this.children[0].encoding:null}}),Object.defineProperty(r.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===t.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(r.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===t.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(r.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(r.prototype,"origin",{get:function(){return null}}),Object.defineProperty(r.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(r.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(r.prototype,"contentType",{get:function(){return null}}),r.prototype.end=function(e){var t;return t={},e?c(e)&&(t=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(t))},r.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},r.prototype.createElement=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createDocumentFragment=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createTextNode=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createComment=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createCDATASection=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createProcessingInstruction=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createAttribute=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createEntityReference=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagName=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.importNode=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createElementNS=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createAttributeNS=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagNameNS=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementById=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.adoptNode=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.normalizeDocument=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.renameNode=function(e,t,r){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByClassName=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createEvent=function(e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createRange=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createNodeIterator=function(e,t,r){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createTreeWalker=function(e,t,r){throw Error("This DOM method is not implemented."+this.debugInfo())},r}(o)}).call(this)},61882:function(e){(function(){e.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},62169:function(e,t,r){(function(){"use strict";var e,n,i,o,a,s={}.hasOwnProperty;e=r(24904),n=r(47688).defaults,o=function(e){return"string"==typeof e&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},a=function(e){return"<![CDATA["+i(e)+"]]>"},i=function(e){return e.replace("]]>","]]]]><![CDATA[>")},t.Builder=function(){function t(e){var t,r,i;for(t in this.options={},r=n["0.2"])s.call(r,t)&&(i=r[t],this.options[t]=i);for(t in e)s.call(e,t)&&(i=e[t],this.options[t]=i)}return t.prototype.buildObject=function(t){var r,i,c,u,l,d;return r=this.options.attrkey,i=this.options.charkey,1===Object.keys(t).length&&this.options.rootName===n["0.2"].rootName?(l=Object.keys(t)[0],t=t[l]):l=this.options.rootName,d=this,c=function(e,t){var n,u,l,f,h,p;if("object"!=typeof t)d.options.cdata&&o(t)?e.raw(a(t)):e.txt(t);else if(Array.isArray(t)){for(f in t)if(s.call(t,f))for(h in u=t[f])l=u[h],e=c(e.ele(h),l).up()}else for(h in t)if(s.call(t,h))if(u=t[h],h===r){if("object"==typeof u)for(n in u)p=u[n],e=e.att(n,p)}else if(h===i)e=d.options.cdata&&o(u)?e.raw(a(u)):e.txt(u);else if(Array.isArray(u))for(f in u)s.call(u,f)&&(e="string"==typeof(l=u[f])?d.options.cdata&&o(l)?e.ele(h).raw(a(l)).up():e.ele(h,l).up():c(e.ele(h),l).up());else"object"==typeof u?e=c(e.ele(h),u).up():"string"==typeof u&&d.options.cdata&&o(u)?e=e.ele(h).raw(a(u)).up():(null==u&&(u=""),e=e.ele(h,u.toString()).up());return e},u=e.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),c(u,t).end(this.options.renderOpts)},t}()}).call(this)},62806:(e,t,r)=>{var n=r(87358);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){n||(n=Error);class i extends n{constructor(e,t,n){super("string"==typeof r?r:r(e,t,n))}}i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invali
12d for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var i,o,a,s;let c,u;if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(c="must not be",t=t.replace(/^not /,"")):c="must be",o=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-o.length,a)===o)u=`The ${e} ${c} ${n(t,"type")}`;else{let r=("number"!=typeof s&&(s=0),s+1>e.length||-1===e.indexOf(".",s))?"argument":"property";u=`The "${e}" ${r} ${c} ${n(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(709),a=r(337);r(782)(l,o);for(var s=i(a.prototype),c=0;c<s.length;c++){var u=s[c];l.prototype[u]||(l.prototype[u]=a.prototype[u])}function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,i){"use strict";e.exports=T,T.ReadableState=A,i(361).EventEmitter;var o,a,s,c,u,l=function(e,t){return e.listeners(t).length},d=i(678),f=i(300).Buffer,h=r.g.Uint8Array||function(){},p=i(837);a=p&&p.debuglog?p.debuglog("stream"):function(){};var y=i(379),m=i(25),b=i(776).getHighWaterMark,g=i(646).q,w=g.ERR_INVALID_ARG_TYPE,x=g.ERR_STREAM_PUSH_AFTER_EOF,v=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(782)(T,d);var E=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function A(e,t,r){o=o||i(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",r),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=i(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function T(e){if(o=o||i(403),!(this instanceof T))return new T(e);var t=this instanceof o;this._readableState=new A(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function k(e,t,r,n,i){a("readableAddChunk",t);var o,s,c=e._readableState;if(null===t)c.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?P(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}}(e,c);else if(i||(s=function(e,t){var r;return f.isBuffer(t)||t instanceof h||"string"==typeof t||void 0===t||e.objectMode||(r=new w("chunk",["string","Buffer","Uint8Array"],t)),r}(c,t)),s)E(e,s);else if(c.objectMode||t&&t.length>0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===f.prototype||(o=t,t=f.from(o)),n)c.endEmitted?E(e,new _):R(e,c,t,!0);else if(c.ended)E(e,new x);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!r?(t=c.decoder.write(t),c.objectMode||0!==t.length?R(e,c,t,!1):D(e,c)):R(e,c,t,!1)}else n||(c.reading=!1,D(e,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function R(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&P(e)),D(e,t)}function O(e,t){var r;if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&((r=e)>=0x40000000?r=0x40000000:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),t.highWaterMark=r),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function P(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(C,e))}function C(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function D(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function N(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function j(e){a("readable nexttick read 0"),e.read(0)}function U(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function M(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function H(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(B,t,e))}function B(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function W(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=m.destroy,T.prototype._undestroy=m.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=f.from(e,t),t=""),r=!0),k(this,e,t,!1,r)},T.prototype.unshift=function(e){return k(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){s||(s=i(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;
12for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this},T.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?H(this):P(this),null;if(0===(e=O(e,r))&&r.ended)return 0===r.length&&H(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=O(n,r))),null===(t=e>0?M(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&H(this)),null!==t&&this.emit("data",t),t},T.prototype._read=function(e){E(this,new v("_read()"))},T.prototype.pipe=function(e,t){var r,i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,a("pipe count=%d opts=%j",o.pipesCount,t);var s=t&&!1===t.end||e===n.stdout||e===n.stderr?m:c;function c(){a("onend"),e.end()}o.endEmitted?n.nextTick(s):i.once("end",s),e.on("unpipe",function t(r,n){a("onunpipe"),r===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,a("cleanup"),e.removeListener("close",p),e.removeListener("finish",y),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),i.removeListener("end",c),i.removeListener("end",m),i.removeListener("data",f),d=!0,o.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=(r=i,function(){var e=r._readableState;a("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&l(r,"data")&&(e.flowing=!0,L(r))});e.on("drain",u);var d=!1;function f(t){a("ondata");var r=e.write(t);a("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==W(o.pipes,e))&&!d&&(a("false write response, pause",o.awaitDrain),o.awaitDrain++),i.pause())}function h(t){a("onerror",t),m(),e.removeListener("error",h),0===l(e,"error")&&E(e,t)}function p(){e.removeListener("finish",y),m()}function y(){a("onfinish"),e.removeListener("close",p),m()}function m(){a("unpipe"),i.unpipe(e)}return i.on("data",f),!function(e,t,r){if("function"==typeof e.prependListener)return e.prepe
12ndListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",y),e.emit("pipe",i),o.flowing||(a("pipe resume"),i.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=W(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},T.prototype.on=function(e,t){var r=d.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,a("on readable",i.length,i.reading),i.length?P(this):i.reading||n.nextTick(j,this)),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(N,this),r},T.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.nextTick(N,this),t},T.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(a("resume"),r.flowing=!r.readableListening,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,n.nextTick(U,e,t))),r.paused=!1,this},T.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!=i)(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<S.length;o++)e.on(S[o],this.emit.bind(this,S[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===c&&(c=i(871)),c(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=M,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(e,t){return void 0===u&&(u=i(727)),u(T,e,t)})},170:function(e,t,r){"use strict";e.exports=l;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(403);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);c.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush(function(t,r){f(e,t,r)})}function f(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(l,c),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,i){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){var r,n=t,i=e,o=n.entry;for(n.entry=null;o;){var a=o.callback;i.pendingcb--,a(void 0),o=o.next}i.corkedRequestsFree.next=n}}
12e.exports=T,T.WritableState=A;var a,s,c={deprecate:i(769)},u=i(678),l=i(300).Buffer,d=r.g.Uint8Array||function(){},f=i(25),h=i(776).getHighWaterMark,p=i(646).q,y=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,b=p.ERR_MULTIPLE_CALLBACK,g=p.ERR_STREAM_CANNOT_PIPE,w=p.ERR_STREAM_DESTROYED,x=p.ERR_STREAM_NULL_VALUES,v=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,E=f.errorOrDestroy;function S(){}function A(e,t,r){a=a||i(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new b;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,i?(n.nextTick(o,t),n.nextTick(D,e,r),e._writableState.errorEmitted=!0,E(e,t)):(o(t),e._writableState.errorEmitted=!0,E(e,t),D(e,r));else{var a=P(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||O(e,r),i?n.nextTick(R,e,r,a,o):R(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}i(782)(T,u),A.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(A.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}function T(e){var t=this instanceof(a=a||i(403));if(!t&&!s.call(T,this))return new T(e);this._writableState=new A(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function k(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function R(e,t,r,n){var i,o;r||(i=e,0===(o=t).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),t.pendingcb--,n(),D(e,t)}function O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,k(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,l=r.callback,d=t.objectMode?1:c.length;if(k(e,t,!1,d,c,u,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function P(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final(function(r){t.pendingcb--,r&&E(e,r),t.prefinished=!0,e.emit("prefinish"),D(e,t)})}function D(e,t){var r=P(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(C,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===T&&e&&e._writableState instanceof A}})):s=function(e){return e instanceof this},T.prototype.pipe=function(){E(this,new g)},T.prototype.write=function(e,t,r){var i,o,a,s,c,u,f,h=this._writableState,p=!1,m=!h.objectMode&&(i=e,l.isBuffer(i)||i instanceof d);return(m&&!l.isBuffer(e)&&(o=e,e=l.from(o)),"function"==typeof t&&(r=t,t=null),m?t="buffer":t||(t=h.defaultEncoding),"function"!=typeof r&&(r=S),h.ending)?(a=r,E(this,s=new v),n.nextTick(a,s)):(m||(c=e,u=r,null===c?f=new x:"string"==typeof c||h.objectMode||(f=new y("chunk",["string","Buffer"],c)),!f||(E(this,f),n.nextTick(u,f),0)))&&(h.pendingcb++,p=function(e,t,r,n,i,o){if(!r){var a,s,c=(a=n,s=i,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=l.from(a,s)),a);n!==c&&(r=!0,i="buffer",n=c)}var u=t.objectMode?1:n.length;t.length+=u;var d=t.length<t.highWaterMark;if(d||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else k(e,t,!1,u,n,i,o);return d}(this,h,m,e,t,r)),p},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},T.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,r){r(new m("_write()"))},T.prototype._writev=null,T.prototype.end=function(e,t,r){var i,o,a,s=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),s.corked&&(s.corked=1,this.uncork()),s.ending||(i=this,o=s,a=r,o.ending=!0,D(i,o),a&&(o.finished?n.nextTick(a):i.once("finish",a)),o.ended=!0,i.writable=!1),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=f.destroy,T.prototype._undestroy=f.undestroy,T.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function y(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[c]=null,t(p(r,!1)))}}function m(e){n.nextTick(y,e)}var b=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((i(o={get stream(){return this[h]},next:function(){var e,t,r=this,i=this[u];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,t){n.nextTick(function(){r[u]?t(r[u]):e(p(void 0,!0))})});var o=this[d];if(o)t=new Promise((e=this,function(t,r){o.then(function(){if(e[l])return void t(p(void 0,!0));e[f](t,r)},r)}));else{var a=this[h].read();if(null!==a)return Promise.resolve(p(a,!1));t=new Promise(this[f])}return this[d]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e)return void r(e);t(p(void 0,!0))})})}),o),b);e.exports=function(e){var t,r=Object.create(g,(i(t={},h,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var n=r[h].read();n?(r[d]=null,r[s]=null,r[c]=null,e(p(n,!1))):(r[s]=e,r[c]=t)},writable:!0}),t));return r[d]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];null!==t&&(r[d]=null,r[s]=null,r[c]=null,t(e)),r[u]=e;return}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[c]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",m.bind(null,r)),r}},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var i=r(300).Buffer,o=r(837).inspect,a=o&&o.custom||"inspect";e.exports=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t,r,n=i.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=a,i.prototype.copy.call(t,n,r),a+=o.data.length,o=o.next;return n}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++n}return this.length-=n,t}},{key:a,value:function(e,t){return o(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
12t%2?n(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t,{depth:0,customInspect:!1}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}()},25:function(e){"use strict";function t(e,t){i(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?n.nextTick(r,a):(a._writableState.errorEmitted=!0,n.nextTick(t,a,e)):n.nextTick(t,a,e):o?(n.nextTick(r,a),o(e)):n.nextTick(r,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),a=o||i,s=!1,o=function(){if(!s){s=!0;for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];a.apply(this,t)}};var a,s,c=r.readable||!1!==r.readable&&t.readable,u=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||f()},d=t._writableState&&t._writableState.finished,f=function(){u=!1,d=!0,c||o.call(t)},h=t._readableState&&t._readableState.endEmitted,p=function(){c=!1,h=!0,u||o.call(t)},y=function(e){o.call(t,e)},m=function(){var e;return c&&!h?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):u&&!d?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},b=function(){t.req.on("finish",f)};return t.setHeader&&"function"==typeof t.abort?(t.on("complete",f),t.on("abort",m),t.req?b():t.on("request",b)):u&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",p),t.on("finish",f),!1!==r.error&&t.on("error",y),t.on("close",m),function(){t.removeListener("complete",f),t.removeListener("abort",m),t.removeListener("request",b),t.req&&t.req.removeListener("finish",f),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",f),t.removeListener("end",p),t.removeListener("error",y),t.removeListener("close",m)}}},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){r(e);return}s.done?t(c):Promise.resolve(c).then(n,i)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var o=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])a=t[Symbol.iterator]();else throw new o("iterable",["Iterable"],t);var a,s=new e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
12t%2?i(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({objectMode:!0},r)),c=!1;function u(){return l.apply(this,arguments)}function l(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?s.push(null):s.push((yield t))?u():c=!1}catch(e){s.destroy(e)}},(l=function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,c,"next",e)}function c(e){n(a,i,o,s,c,"throw",e)}s(void 0)})}).apply(this,arguments)}return s._read=function(){c||(c=!0,u())},s}},442:function(e,t,r){"use strict";var n,i=r(646).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,i=arguments.length,l=Array(i),d=0;d<i;d++)l[d]=arguments[d];var f=(e=l).length&&"function"==typeof e[e.length-1]?e.pop():s;if(Array.isArray(l[0])&&(l=l[0]),l.length<2)throw new o("streams");var h=l.map(function(e,i){var o,s,u,d,p,y,m=i<l.length-1;return o=i>0,u=s=function(e){t||(t=e),e&&h.forEach(c),m||(h.forEach(c),f(t))},d=!1,s=function(){d||(d=!0,u.apply(void 0,arguments))},p=!1,e.on("close",function(){p=!0}),void 0===n&&(n=r(698)),n(e,{readable:m,writable:o},function(e){if(e)return s(e);p=!0,s()}),y=!1,function(t){if(!p&&!y){if(y=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}});return l.reduce(u)}},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=null!=t.highWaterMark?t.highWaterMark:i?t[r]:null;if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
12case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:this.write=f,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){e.exports=function(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}};function t(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}},300:function(e){"use strict";e.exports=r(49641)},361:function(e){"use strict";e.exports=r(19087)},781:function(e){"use strict";e.exports=r(19087).EventEmitter},837:function(e){"use strict";e.exports=r(1504)}},i={};function o(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}},a=!0;try{t[e](n,n.exports,o),a=!1}finally{a&&delete i[e]}return n.exports}o.ab="//",e.exports=o(173)}()},63318:function(e){(function(){e.exports=function(){function e(e){this.arr=e||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(e){return this.arr[e]||null},e.prototype.contains=function(e){return -1!==this.arr.indexOf(e)},e}()}).call(this)},63438:(e,t,r)=>{"use strict";r.d(t,{PA:()=>w});var n,i,o,a=r(29543),s=r(12115);if(!s.useState)throw Error("mobx-react-lite requires React with Hooks 
12support");if(!a.Gn)throw Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var c=r(47650);function u(e){e()}function l(e){return(0,a.yl)(e)}var d=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var r=Date.now();t.registrations.forEach(function(n,i){r-n.registeredAt>=e&&(t.finalize(n.value),t.registrations.delete(i))}),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){this.registrations.set(r,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),f=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:d)(function(e){var t;null==(t=e.reaction)||t.dispose(),e.reaction=null}),h=r(49033);function p(e){e.reaction=new a.qT("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),null==(t=e.onStoreChange)||t.call(e)})}var y="function"==typeof Symbol&&Symbol.for,m=null!=(i=null==(n=Object.getOwnPropertyDescriptor(function(){},"name"))?void 0:n.configurable)&&i,b=y?Symbol.for("react.forward_ref"):"function"==typeof s.forwardRef&&(0,s.forwardRef)(function(e){return null}).$$typeof,g=y?Symbol.for("react.memo"):"function"==typeof s.memo&&(0,s.memo)(function(e){return null}).$$typeof;function w(e,t){if(g&&e.$$typeof===g)throw Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");0;var r,n,i,o=null!=(i=null==t?void 0:t.forwardRef)&&i,a=e,c=e.displayName||e.name;if(b&&e.$$typeof===b&&(o=!0,"function"!=typeof(a=e.render)))throw Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var u=function(e,t){return function(e,t){void 0===t&&(t="observed"),0;var r,n,i=s.useRef(null);if(!i.current){var o={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return f.unregister(o),o.onStoreChange=e,o.reaction||(p(o),o.stateVersion=Symbol()),function(){var e;o.onStoreChange=null,null==(e=o.reaction)||e.dispose(),o.reaction=null}},getSnapshot:function(){return o.stateVersion}};i.current=o}var a=i.current;if(a.reaction||(p(a),f.register(i,a,a)),s.useDebugValue(a.reaction,l),(0,h.useSyncExternalStore)(a.subscribe,a.getSnapshot,a.getSnapshot),a.reaction.track(function(){try{r=e()}catch(e){n=e}}),n)throw n;return r}(function(){return a(e,t)},c)};return u.displayName=e.displayName,m&&Object.defineProperty(u,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(u.contextTypes=e.contextTypes),o&&(u=(0,s.forwardRef)(u)),r=e,n=u=(0,s.memo)(u),Object.keys(r).forEach(function(e){x[e]||Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),u}var x={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};!function(e){e||(e=u),(0,a.jK)({reactionScheduler:e})}(c.unstable_batchedUpdates),f.finalizeAllImmediately},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return a},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return s}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,
12configurable:!0});class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let i="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return i?new i:new n}function a(e){return i?i.bind(e):n.bind(e)}function s(){return i?i.snapshot():function(e,...t){return e(...t)}}},64173:function(e,t,r){var n;n=r(23652),r(40092),n.mode.CTRGladman=function(){var e=n.lib.BlockCipherMode.extend();function t(e){if((e>>24&255)==255){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0+(t<<16)+(r<<8)+n}else e+=0x1000000;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n,i=this._cipher,o=i.blockSize,a=this._iv,s=this._counter;a&&(s=this._counter=a.slice(0),this._iv=void 0),0===((n=s)[0]=t(n[0]))&&(n[1]=t(n[1]));var c=s.slice(0);i.encryptBlock(c,0);for(var u=0;u<o;u++)e[r+u]^=c[u]}});return e.Decryptor=r,e}(),e.exports=n.mode.CTRGladman},65867:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isRequestAPICallableInsideAfter:function(){return c},throwForSearchParamsAccessInUseCache:function(){return s},throwWithStaticGenerationBailoutError:function(){return o},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return a}});let n=r(11881),i=r(52039);function o(e,t){throw Object.defineProperty(new n.StaticGenBailoutError(`Route ${e} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E576",enumerable:!1,configurable:!0})}function a(e,t){throw Object.defineProperty(new n.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function s(e){let t=Object.defineProperty(Error(`Route ${e.route} used "searchParams" inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "searchParams" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E634",enumerable:!1,configurable:!0});throw e.invalidUsageError??=t,t}function c(){let e=i.afterTaskAsyncStorage.getStore();return(null==e?void 0:e.rootTaskSpawnPhase)==="action"}},65948:(e,t,r)=>{"use strict";let n,i,o,a,s;r.d(t,{xz:()=>f.xz,Ay:()=>oO});var c=function(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},u=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};function l(e){let t=e?"__Secure-":"";return{sessionToken:{name:`${t}authjs.session-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},callbackUrl:{name:`${t}authjs.callback-url`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},csrfToken:{name:`${e?"__Host-":""}authjs.csrf-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},pkceCodeVerifier:{name:`${t}authjs.pkce.code_verifier`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},state:{name:`${t}authjs.state`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},nonce:{name:`${t}authjs.nonce`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},webauthnChallenge:{name:`${t}authjs.challenge`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}}}}class d{constructor(e,t,r){if(tz.add(this),tq.set(this,{}),tJ.set(this,void 0),tV.set(this,void 0),c(this,tV,r,"f"),c(this,tJ,e,"f"),!t)return;let{name:n}=e;for(let[e,r]of Object.entries(t))e.startsWith(n)&&r&&(u(this,tq,"f")[e]=r)}get value(){return Object.keys(u(this,tq,"f")).sort((e,t)=>
12parseInt(e.split(".").pop()||"0")-parseInt(t.split(".").pop()||"0")).map(e=>u(this,tq,"f")[e]).join("")}chunk(e,t){let r=u(this,tz,"m",tX).call(this);for(let n of u(this,tz,"m",tG).call(this,{name:u(this,tJ,"f").name,value:e,options:{...u(this,tJ,"f").options,...t}}))r[n.name]=n;return Object.values(r)}clean(){return Object.values(u(this,tz,"m",tX).call(this))}}tq=new WeakMap,tJ=new WeakMap,tV=new WeakMap,tz=new WeakSet,tG=function(e){let t=Math.ceil(e.value.length/3936);if(1===t)return u(this,tq,"f")[e.name]=e.value,[e];let r=[];for(let n=0;n<t;n++){let t=`${e.name}.${n}`,i=e.value.substr(3936*n,3936);r.push({...e,name:t,value:i}),u(this,tq,"f")[t]=i}return u(this,tV,"f").debug("CHUNKING_SESSION_COOKIE",{message:"Session cookie exceeds allowed 4096 bytes.",emptyCookieSize:160,valueSize:e.value.length,chunks:r.map(e=>e.value.length+160)}),r},tX=function(){let e={};for(let t in u(this,tq,"f"))delete u(this,tq,"f")?.[t],e[t]={name:t,value:"",options:{...u(this,tJ,"f").options,maxAge:0}};return e};var f=r(29829);let h=!1;function p(e,t){try{return/^https?:/.test(new URL(e,e.startsWith("/")?t:void 0).protocol)}catch{return!1}}let y=!1,m=!1,b=!1,g=["createVerificationToken","useVerificationToken","getUserByEmail"],w=["createUser","getUser","getUserByEmail","getUserByAccount","updateUser","linkAccount","createSession","getSessionAndUser","updateSession","deleteSession"],x=["createUser","getUser","linkAccount","getAccount","getAuthenticator","createAuthenticator","listAuthenticatorsByUserId","updateAuthenticatorCounter"],v=()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;throw Error("unable to locate global object")},_=async(e,t,r,n,i)=>{let{crypto:{subtle:o}}=v();return new Uint8Array(await o.deriveBits({name:"HKDF",hash:`SHA-${e.substr(3)}`,salt:r,info:n},await o.importKey("raw",t,"HKDF",!1,["deriveBits"]),i<<3))};function E(e,t){if("string"==typeof e)return new TextEncoder().encode(e);if(!(e instanceof Uint8Array))throw TypeError(`"${t}"" must be an instance of Uint8Array or a string`);return e}async function S(e,t,r,n,i){return _(function(e){switch(e){case"sha256":case"sha384":case"sha512":case"sha1":return e;default:throw TypeError('unsupported "digest" value')}}(e),function(e){let t=E(e,"ikm");if(!t.byteLength)throw TypeError('"ikm" must be at least one byte in length');return t}(t),E(r,"salt"),function(e){let t=E(e,"info");if(t.byteLength>1024)throw TypeError('"info" must not contain more than 1024 bytes');return t}(n),function(e,t){if("number"!=typeof e||!Number.isInteger(e)||e<1)throw TypeError('"keylen" must be a positive integer');if(e>255*(parseInt(t.substr(3),10)>>3||20))throw TypeError('"keylen" too large');return e}(i,e))}let A=crypto,T=e=>e instanceof CryptoKey,k=async(e,t)=>{let r=`SHA-${e.slice(-3)}`;return new Uint8Array(await A.subtle.digest(r,t))},R=new TextEncoder,O=new TextDecoder;function P(...e){let t=new Uint8Array(e.reduce((e,{length:t})=>e+t,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}function C(e,t,r){if(t<0||t>=0x100000000)throw RangeError(`value must be >= 0 and <= ${0x100000000-1}. Received ${t}`);e.set([t>>>24,t>>>16,t>>>8,255&t],r)}function D(e){let t=Math.floor(e/0x100000000),r=new Uint8Array(8);return C(r,t,0),C(r,e%0x100000000,4),r}function I(e){let t=new Uint8Array(4);return C(t,e),t}function N(e){return P(I(e.length),e)}async function j(e,t,r){let n=Math.ceil((t>>3)/32),i=new Uint8Array(32*n);for(let t=0;t<n;t++){let n=new Uint8Array(4+e.length+r.length);n.set(I(t+1)),n.set(e,4),n.set(r,4+e.length),i.set(await k("sha256",n),32*t)}return i.slice(0,t>>3)}let U=e=>{let t=e;"string"==typeof t&&(t=R.encode(t));let r=[];for(let e=0;e<t.length;e+=32768)r.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(r.join(""))},L=e=>U(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),M=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r},H=e=>{let t=e;t instanceof Uint8Array&&(t=O.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return M(t)}catch{throw TypeError("The input to be decoded is not correctly encoded.")}};
12class B extends Error{constructor(e,t){super(e,t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}B.code="ERR_JOSE_GENERIC";class W extends B{constructor(e,t,r="unspecified",n="unspecified"){super(e,{cause:{claim:r,reason:n,payload:t}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=n,this.payload=t}}W.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class $ extends B{constructor(e,t,r="unspecified",n="unspecified"){super(e,{cause:{claim:r,reason:n,payload:t}}),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=n,this.payload=t}}$.code="ERR_JWT_EXPIRED";class F extends B{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}F.code="ERR_JOSE_ALG_NOT_ALLOWED";class K extends B{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}K.code="ERR_JOSE_NOT_SUPPORTED";class z extends B{constructor(e="decryption operation failed",t){super(e,t),this.code="ERR_JWE_DECRYPTION_FAILED"}}z.code="ERR_JWE_DECRYPTION_FAILED";class q extends B{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}q.code="ERR_JWE_INVALID";class J extends B{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}J.code="ERR_JWS_INVALID";class V extends B{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}V.code="ERR_JWT_INVALID";class G extends B{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}G.code="ERR_JWK_INVALID";class X extends B{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}X.code="ERR_JWKS_INVALID";class Y extends B{constructor(e="no applicable key found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_NO_MATCHING_KEY"}}Y.code="ERR_JWKS_NO_MATCHING_KEY";class Q extends B{constructor(e="multiple matching keys found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}Symbol.asyncIterator,Q.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class Z extends B{constructor(e="request timed out",t){super(e,t),this.code="ERR_JWKS_TIMEOUT"}}Z.code="ERR_JWKS_TIMEOUT";class ee extends B{constructor(e="signature verification failed",t){super(e,t),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}function et(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}ee.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";let er=(e,t)=>{if("string"!=typeof e||!e)throw new G(`${t} missing or invalid`)};async function en(e,t){let r;if(!et(e))throw TypeError("JWK must be an object");if(t??(t="sha256"),"sha256"!==t&&"sha384"!==t&&"sha512"!==t)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(e.kty){case"EC":er(e.crv,'"crv" (Curve) Parameter'),er(e.x,'"x" (X Coordinate) Parameter'),er(e.y,'"y" (Y Coordinate) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":er(e.crv,'"crv" (Subtype of Key Pair) Parameter'),er(e.x,'"x" (Public Key) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x};break;case"RSA":er(e.e,'"e" (Exponent) Parameter'),er(e.n,'"n" (Modulus) Parameter'),r={e:e.e,kty:e.kty,n:e.n};break;case"oct":er(e.k,'"k" (Key Value) Parameter'),r={k:e.k,kty:e.kty};break;default:throw new K('"kty" (Key Type) Parameter missing or unsupported')}let n=R.encode(JSON.stringify(r));return L(await k(t,n))}let ei=Symbol(),eo=A.getRandomValues.bind(A);function ea(e){switch(e){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new K(`Unsupported JWE Algorithm: ${e}`)}}let es=e=>eo(new Uint8Array(ea(e)>>3)),ec=(e,t)=>{if(t.length<<3!==ea(e))throw new q("Invalid Initialization Vector length")},eu=(e,t)=>{let r=e.byteLength<<3;if(r!==t)throw new q(`Invalid Content Encryption Key length. Expected ${t} bits, got ${r} bits`)};function el(e,t="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function ed(e,t){return e.name===t}function ef(e,t,...r){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!ed(e.algorithm,"AES-GCM"))throw el("AES-GCM");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw el(r,"algorithm.length");break}
12case"A128KW":case"A192KW":case"A256KW":{if(!ed(e.algorithm,"AES-KW"))throw el("AES-KW");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw el(r,"algorithm.length");break}case"ECDH":switch(e.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw el("ECDH, X25519, or X448")}break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!ed(e.algorithm,"PBKDF2"))throw el("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!ed(e.algorithm,"RSA-OAEP"))throw el("RSA-OAEP");let r=parseInt(t.slice(9),10)||1;if(parseInt(e.algorithm.hash.name.slice(4),10)!==r)throw el(`SHA-${r}`,"algorithm.hash");break}default:throw TypeError("CryptoKey does not support this operation")}var n=e,i=r;if(i.length&&!i.some(e=>n.usages.includes(e))){let e="CryptoKey does not support this operation, its usages must include ";if(i.length>2){let t=i.pop();e+=`one of ${i.join(", ")}, or ${t}.`}else 2===i.length?e+=`one of ${i[0]} or ${i[1]}.`:e+=`${i[0]}.`;throw TypeError(e)}}function eh(e,t,...r){if((r=r.filter(Boolean)).length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}let ep=(e,...t)=>eh("Key must be ",e,...t);function ey(e,t,...r){return eh(`Key for the ${e} algorithm must be `,t,...r)}let em=e=>!!T(e)||e?.[Symbol.toStringTag]==="KeyObject",eb=["CryptoKey"];async function eg(e,t,r,n,i){if(!(r instanceof Uint8Array))throw TypeError(ep(r,"Uint8Array"));let o=parseInt(e.slice(1,4),10),a=await A.subtle.importKey("raw",r.subarray(o>>3),"AES-CBC",!1,["encrypt"]),s=await A.subtle.importKey("raw",r.subarray(0,o>>3),{hash:`SHA-${o<<1}`,name:"HMAC"},!1,["sign"]),c=new Uint8Array(await A.subtle.encrypt({iv:n,name:"AES-CBC"},a,t)),u=P(i,n,c,D(i.length<<3));return{ciphertext:c,tag:new Uint8Array((await A.subtle.sign("HMAC",s,u)).slice(0,o>>3)),iv:n}}async function ew(e,t,r,n,i){let o;r instanceof Uint8Array?o=await A.subtle.importKey("raw",r,"AES-GCM",!1,["encrypt"]):(ef(r,e,"encrypt"),o=r);let a=new Uint8Array(await A.subtle.encrypt({additionalData:i,iv:n,name:"AES-GCM",tagLength:128},o,t)),s=a.slice(-16);return{ciphertext:a.slice(0,-16),tag:s,iv:n}}let ex=async(e,t,r,n,i)=>{if(!T(r)&&!(r instanceof Uint8Array))throw TypeError(ep(r,...eb,"Uint8Array"));switch(n?ec(e,n):n=es(e),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return r instanceof Uint8Array&&eu(r,parseInt(e.slice(-3),10)),eg(e,t,r,n,i);case"A128GCM":case"A192GCM":case"A256GCM":return r instanceof Uint8Array&&eu(r,parseInt(e.slice(1,4),10)),ew(e,t,r,n,i);default:throw new K("Unsupported JWE Content Encryption Algorithm")}},ev=[{hash:"SHA-256",name:"HMAC"},!0,["sign"]];function e_(e,t){if(e.algorithm.length!==parseInt(t.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${t}`)}function eE(e,t,r){if(T(e))return ef(e,t,r),e;if(e instanceof Uint8Array)return A.subtle.importKey("raw",e,"AES-KW",!0,[r]);throw TypeError(ep(e,...eb,"Uint8Array"))}let eS=async(e,t,r)=>{let n=await eE(t,e,"wrapKey");e_(n,e);let i=await A.subtle.importKey("raw",r,...ev);return new Uint8Array(await A.subtle.wrapKey("raw",i,n,"AES-KW"))},eA=async(e,t,r)=>{let n=await eE(t,e,"unwrapKey");e_(n,e);let i=await A.subtle.unwrapKey("raw",r,n,"AES-KW",...ev);return new Uint8Array(await A.subtle.exportKey("raw",i))};async function eT(e,t,r,n,i=new Uint8Array(0),o=new Uint8Array(0)){let a;if(!T(e))throw TypeError(ep(e,...eb));if(ef(e,"ECDH"),!T(t))throw TypeError(ep(t,...eb));ef(t,"ECDH","deriveBits");let s=P(N(R.encode(r)),N(i),N(o),I(n));return a="X25519"===e.algorithm.name?256:"X448"===e.algorithm.name?448:Math.ceil(parseInt(e.algorithm.namedCurve.substr(-3),10)/8)<<3,j(new Uint8Array(await A.subtle.deriveBits({name:e.algorithm.name,public:e},t,a)),n,s)}async function ek(e){if(!T(e))throw TypeError(ep(e,...eb));return A.subtle.generateKey(e.algorithm,!0,["deriveBits"])}function eR(e){if(!T(e))throw TypeError(ep(e,...eb));return["P-256","P-384","P-521"].includes(e.algorithm.namedCurve)||"X25519"===e.algorithm.name||"X448"===e.algorithm.name}async function eO(e,t,r,n){if(!(e instanceof Uint8Array)||e.length<8)throw new q("PBES2 Salt Input must be 8 or more octets");let i=P(R.encode(t),new Uint8Array([0]),e),o=parseInt(t.slice(13,16),10),a={hash:`SHA-${t.slice(8,11)}`,iterations:r,name:"PBKDF2",salt:i}
12,s=await function(e,t){if(e instanceof Uint8Array)return A.subtle.importKey("raw",e,"PBKDF2",!1,["deriveBits"]);if(T(e))return ef(e,t,"deriveBits","deriveKey"),e;throw TypeError(ep(e,...eb,"Uint8Array"))}(n,t);if(s.usages.includes("deriveBits"))return new Uint8Array(await A.subtle.deriveBits(a,s,o));if(s.usages.includes("deriveKey"))return A.subtle.deriveKey(a,s,{length:o,name:"AES-KW"},!1,["wrapKey","unwrapKey"]);throw TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"')}let eP=async(e,t,r,n=2048,i=eo(new Uint8Array(16)))=>{let o=await eO(i,e,n,t);return{encryptedKey:await eS(e.slice(-6),o,r),p2c:n,p2s:L(i)}},eC=async(e,t,r,n,i)=>{let o=await eO(i,e,n,t);return eA(e.slice(-6),o,r)};function eD(e){switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new K(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}let eI=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}},eN=async(e,t,r)=>{if(!T(t))throw TypeError(ep(t,...eb));if(ef(t,e,"encrypt","wrapKey"),eI(e,t),t.usages.includes("encrypt"))return new Uint8Array(await A.subtle.encrypt(eD(e),t,r));if(t.usages.includes("wrapKey")){let n=await A.subtle.importKey("raw",r,...ev);return new Uint8Array(await A.subtle.wrapKey("raw",n,t,eD(e)))}throw TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation')},ej=async(e,t,r)=>{if(!T(t))throw TypeError(ep(t,...eb));if(ef(t,e,"decrypt","unwrapKey"),eI(e,t),t.usages.includes("decrypt"))return new Uint8Array(await A.subtle.decrypt(eD(e),t,r));if(t.usages.includes("unwrapKey")){let n=await A.subtle.unwrapKey("raw",r,t,eD(e),...ev);return new Uint8Array(await A.subtle.exportKey("raw",n))}throw TypeError('RSA-OAEP key "usages" must include "decrypt" or "unwrapKey" for this operation')};function eU(e){return et(e)&&"string"==typeof e.kty}let eL=async e=>{if(!e.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=function(e){let t,r;switch(e.kty){case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new K('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new K('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"Ed25519":t={name:"Ed25519"},r=e.d?["sign"]:["verify"];break;case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new K('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new K('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}(e),n=[t,e.ext??!1,e.key_ops??r],i={...e};return delete i.alg,delete i.use,A.subtle.importKey("jwk",i,...n)},eM=e=>H(e),eH=e=>e?.[Symbol.toStringTag]==="KeyObject",eB=async(e,t,r,n,i=!1)=>{let o=e.get(t);if(o?.[n])return o[n];let a=await eL({...r,alg:n});return i&&Object.freeze(t),o?o[n]=a:e.set(t,{[n]:a}),a},eW={normalizePublicKey:(e,t)=>{if(eH(e)){let r=e.export({format:"jwk"});return(delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k)?eM(r.k):(i||(i=new WeakMap),eB(i,e,r,t))}return eU(e)?e.k?H(e.k):(i||(i=new WeakMap),eB(i,e,e,t,!0)):e},normalizePrivateKey:(e,t)=>{if(eH(e)){let r=e.export({format:"jwk"});return r.k?eM(r.k):(n||(n=new WeakMap),eB(n,e,r,t))}return eU(e)?e.k?H(e.k):(n||(n=new WeakMap),eB(n,e,e,t,!0)):e}};function e$(e){switch(e){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new K(`Unsupported JWE Algorithm: ${e}`)}}let eF=e=>eo(new Uint8Array(e$(e)>>3)),eK=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:L(e)};if(!T(e))throw TypeError(ep(e,...eb,"Uint8Array"));if(!e.extractable)throw TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:t,key_ops:r,alg:n,use:i,...o}=await A.subtle.exportKey("jwk",e);return o};async function ez(e){return eK(e)}let eq=e=>e?.[Symbol.toStringTag],eJ=(e,t,r)=>{if(void 0!==t.use&&"sig"!==t.use)throw TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==t.key_ops&&t.key_ops.includes?.(r)!==!0)throw TypeError(`Invalid key for this operation, when present its key_ops must include ${r}`);if(void 0!==t.alg&&t.alg!==e)throw TypeError(`Invalid key for this operation, when present its alg must be ${e}`);return!0},eV=(e,t,r,n)=>{if(!(t instanceof Uint8Array)){if(n&&eU(t)){if(function(e){return eU(e)&&"oct"===e.kty&&"string"==typeof e.k}(t)&&eJ(e,t,r))return;throw TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!em(t))throw TypeError(ey(e,t,...eb,"Uint8Array",n?"JSON Web Key":null));if("secret"!==t.type)throw TypeError(`${eq(t)} instances for symmetric algorithms must be of type "secret"`)}},eG=(e,t,r,n)=>{if(n&&eU(t))switch(r){case"sign":if(function(e){return"oct"!==e.kty&&"string"==typeof e.d}(t)&&eJ(e,t,r))return;throw TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(function(e){return"oct"!==e.kty&&void 0===e.d}(t)&&eJ(e,t,r))return;throw TypeError("JSON Web Key for this operation be a public JWK")}if(!em(t))throw TypeError(ey(e,t,...eb,n?"JSON Web Key":null));if("secret"===t.type)throw TypeError(`${eq(t)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${eq(t)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${eq(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${eq(t)} instances for asymmetric algorithm verifying must be of type "public"`);
12if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${eq(t)} instances for asymmetric algorithm encryption must be of type "public"`)};function eX(e,t,r,n){t.startsWith("HS")||"dir"===t||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?eV(t,r,n,e):eG(t,r,n,e)}let eY=eX.bind(void 0,!1);eX.bind(void 0,!0);let eQ=(e,t)=>{if(!(e instanceof Uint8Array))throw TypeError("First argument must be a buffer");if(!(t instanceof Uint8Array))throw TypeError("Second argument must be a buffer");if(e.length!==t.length)throw TypeError("Input buffers must have the same length");let r=e.length,n=0,i=-1;for(;++i<r;)n|=e[i]^t[i];return 0===n};async function eZ(e,t,r,n,i,o){let a,s;if(!(t instanceof Uint8Array))throw TypeError(ep(t,"Uint8Array"));let c=parseInt(e.slice(1,4),10),u=await A.subtle.importKey("raw",t.subarray(c>>3),"AES-CBC",!1,["decrypt"]),l=await A.subtle.importKey("raw",t.subarray(0,c>>3),{hash:`SHA-${c<<1}`,name:"HMAC"},!1,["sign"]),d=P(o,n,r,D(o.length<<3)),f=new Uint8Array((await A.subtle.sign("HMAC",l,d)).slice(0,c>>3));try{a=eQ(i,f)}catch{}if(!a)throw new z;try{s=new Uint8Array(await A.subtle.decrypt({iv:n,name:"AES-CBC"},u,r))}catch{}if(!s)throw new z;return s}async function e0(e,t,r,n,i,o){let a;t instanceof Uint8Array?a=await A.subtle.importKey("raw",t,"AES-GCM",!1,["decrypt"]):(ef(t,e,"decrypt"),a=t);try{return new Uint8Array(await A.subtle.decrypt({additionalData:o,iv:n,name:"AES-GCM",tagLength:128},a,P(r,i)))}catch{throw new z}}let e1=async(e,t,r,n,i,o)=>{if(!T(t)&&!(t instanceof Uint8Array))throw TypeError(ep(t,...eb,"Uint8Array"));if(!n)throw new q("JWE Initialization Vector missing");if(!i)throw new q("JWE Authentication Tag missing");switch(ec(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return t instanceof Uint8Array&&eu(t,parseInt(e.slice(-3),10)),eZ(e,t,r,n,i,o);case"A128GCM":case"A192GCM":case"A256GCM":return t instanceof Uint8Array&&eu(t,parseInt(e.slice(1,4),10)),e0(e,t,r,n,i,o);default:throw new K("Unsupported JWE Content Encryption Algorithm")}};async function e2(e,t,r,n){let i=e.slice(0,7),o=await ex(i,r,t,n,new Uint8Array(0));return{encryptedKey:o.ciphertext,iv:L(o.iv),tag:L(o.tag)}}async function e8(e,t,r,n,i){return e1(e.slice(0,7),t,r,n,i,new Uint8Array(0))}async function e4(e,t,r,n,i={}){let o,a,s;switch(eY(e,r,"encrypt"),r=await eW.normalizePublicKey?.(r,e)||r,e){case"dir":s=r;break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!eR(r))throw new K("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:c,apv:u}=i,{epk:l}=i;l||(l=(await ek(r)).privateKey);let{x:d,y:f,crv:h,kty:p}=await ez(l),y=await eT(r,l,"ECDH-ES"===e?t:e,"ECDH-ES"===e?e$(t):parseInt(e.slice(-5,-2),10),c,u);if(a={epk:{x:d,crv:h,kty:p}},"EC"===p&&(a.epk.y=f),c&&(a.apu=L(c)),u&&(a.apv=L(u)),"ECDH-ES"===e){s=y;break}s=n||eF(t);let m=e.slice(-6);o=await eS(m,y,s);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s=n||eF(t),o=await eN(e,r,s);break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{s=n||eF(t);let{p2c:c,p2s:u}=i;({encryptedKey:o,...a}=await eP(e,r,s,c,u));break}case"A128KW":case"A192KW":case"A256KW":s=n||eF(t),o=await eS(e,r,s);break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{s=n||eF(t);let{iv:c}=i;({encryptedKey:o,...a}=await e2(e,r,s,c));break}default:throw new K('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:s,encryptedKey:o,parameters:a}}let e5=(...e)=>{let t,r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0},e6=function(e,t,r,n,i){let o;if(void 0!==i.crit&&n?.crit===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let a of(o=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,n.crit)){if(!o.has(a))throw new K(`Extension Header Parameter "${a}" is not recognized`);if(void 0===i[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(o.get(a)&&void 0===n[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)};class e3{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("plaintext must be an instance of Uint8Array");this._plaintext=e}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._sharedUnprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}async encrypt(e,t){let r,n,i,o,a;if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new q("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!e5(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new q("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let s={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if(e6(q,new Map,t?.crit,this._protectedHeader,s),void 0!==s.zip)throw new K('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');let{alg:c,enc:u}=s;if("string"!=typeof c||!c)throw new q('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof u||!u)throw new q('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if(this._cek&&("dir"===c||"ECDH-ES"===c))throw TypeError(`setContentEncryptionKey cannot be called with JWE "alg" (Algorithm) Header ${c}`);{let i;({cek:n,encryptedKey:r,parameters:i}=await e4(c,u,e,this._cek,this._keyManagementParameters)),i&&(t&&ei in t?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...i}:this.setUnprotectedHeader(i):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...i}:this.setProtectedHeader(i))}o=this._protectedHeader?R.encode(L(JSON.stringify(this._protectedHeader))):R.encode(""),this._aad?(a=L(this._aad),i=P(o,R.encode("."),R.encode(a))):i=o;let{ciphertext:l,tag:d,iv:f}
12=await ex(u,this._plaintext,n,this._iv,i),h={ciphertext:L(l)};return f&&(h.iv=L(f)),d&&(h.tag=L(d)),r&&(h.encrypted_key=L(r)),a&&(h.aad=a),this._protectedHeader&&(h.protected=O.decode(o)),this._sharedUnprotectedHeader&&(h.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(h.header=this._unprotectedHeader),h}}class e9{constructor(e){this._flattened=new e3(e)}setContentEncryptionKey(e){return this._flattened.setContentEncryptionKey(e),this}setInitializationVector(e){return this._flattened.setInitializationVector(e),this}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}setKeyManagementParameters(e){return this._flattened.setKeyManagementParameters(e),this}async encrypt(e,t){let r=await this._flattened.encrypt(e,t);return[r.protected,r.encrypted_key,r.iv,r.ciphertext,r.tag].join(".")}}let e7=e=>Math.floor(e.getTime()/1e3),te=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,tt=e=>{let t,r=te.exec(e);if(!r||r[4]&&r[1])throw TypeError("Invalid time period format");let n=parseFloat(r[2]);switch(r[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":t=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":t=Math.round(60*n);break;case"hour":case"hours":case"hr":case"hrs":case"h":t=Math.round(3600*n);break;case"day":case"days":case"d":t=Math.round(86400*n);break;case"week":case"weeks":case"w":t=Math.round(604800*n);break;default:t=Math.round(0x1e187e0*n)}return"-"===r[1]||"ago"===r[4]?-t:t};function tr(e,t){if(!Number.isFinite(t))throw TypeError(`Invalid ${e} input`);return t}class tn{constructor(e={}){if(!et(e))throw TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:tr("setNotBefore",e)}:e instanceof Date?this._payload={...this._payload,nbf:tr("setNotBefore",e7(e))}:this._payload={...this._payload,nbf:e7(new Date)+tt(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:tr("setExpirationTime",e)}:e instanceof Date?this._payload={...this._payload,exp:tr("setExpirationTime",e7(e))}:this._payload={...this._payload,exp:e7(new Date)+tt(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:e7(new Date)}:e instanceof Date?this._payload={...this._payload,iat:tr("setIssuedAt",e7(e))}:"string"==typeof e?this._payload={...this._payload,iat:tr("setIssuedAt",e7(new Date)+tt(e))}:this._payload={...this._payload,iat:tr("setIssuedAt",e)},this}}class ti extends tn{setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}replicateIssuerAsHeader(){return this._replicateIssuerAsHeader=!0,this}replicateSubjectAsHeader(){return this._replicateSubjectAsHeader=!0,this}replicateAudienceAsHeader(){return this._replicateAudienceAsHeader=!0,this}async encrypt(e,t){let r=new e9(R.encode(JSON.stringify(this._payload)));return this._replicateIssuerAsHeader&&(this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}),this._replicateSubjectAsHeader&&(this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}),this._replicateAudienceAsHeader&&(this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}),r.setProtectedHeader(this._protectedHeader),this._iv&&r.setInitializationVector(this._iv),this._cek&&r.setContentEncryptionKey(this._cek),this._keyManagementParameters&&r.setKeyManagementParameters(this._keyManagementParameters),r.encrypt(e,t)}}async function to(e,t){if(!et(e))throw TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw TypeError('missing "k" (Key Value) Parameter value');return H(e.k);case"RSA":if("oth"in e&&void 0!==e.oth)throw new K('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return eL({...e,alg:t});default:throw new K('Unsupported "kty" (Key Type) Parameter value')}}async function ta(e,t,r,n,i){switch(eY(e,t,"decrypt"),t=await eW.normalizePrivateKey?.(t,e)||t,e){case"dir":if(void 0!==r)throw new q("Encountered unexpected JWE Encrypted Key");return t;case"ECDH-ES":if(void 0!==r)throw new q("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let i,o;if(!et(n.epk))throw new q('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!eR(t))throw new K("ECDH with the provided key is not allowed or not supported by your javascript runtime");let a=await to(n.epk,e);if(void 0!==n.apu){if("string"!=typeof n.apu)throw new q('JOSE Header "apu" (Agreement PartyUInfo) invalid');try{i=H(n.apu)}catch{throw new q("Failed to base64url decode the apu")}}if(void 0!==n.apv){if("string"!=typeof n.apv)throw new q('JOSE Header "apv" (Agreement PartyVInfo) invalid');try{o=H(n.apv)}catch{throw new q("Failed to base64url decode the apv")}}let s=await eT(a,t,"ECDH-ES"===e?n.enc:e,"ECDH-ES"===e?e$(n.enc):parseInt(e.slice(-5,-2),10),i,o);if("ECDH-ES"===e)return s;if(void 0===r)throw new q("JWE Encrypted Key missing");return eA(e.slice(-6),s,r)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":if(void 0===r)throw new q("JWE Encrypted Key missing");return ej(e,t,r);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{let o;if(void 0===r)throw new q("JWE Encrypted Key missing");if("number"!=typeof n.p2c)throw new q('JOSE Header "p2c" (PBES2 Count) missing or invalid');let a=i?.maxPBES2Count||1e4;if(n.p2c>a)throw new q('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof n.p2s)throw new q('JOSE Header "p2s" (PBES2 Salt) missing or invalid');try{o=H(n.p2s)}catch{throw new q("Failed to base64url decode the p2s")}return eC(e,t,r,n.p2c,o)}
12case"A128KW":case"A192KW":case"A256KW":if(void 0===r)throw new q("JWE Encrypted Key missing");return eA(e,t,r);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{let i,o;if(void 0===r)throw new q("JWE Encrypted Key missing");if("string"!=typeof n.iv)throw new q('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof n.tag)throw new q('JOSE Header "tag" (Authentication Tag) missing or invalid');try{i=H(n.iv)}catch{throw new q("Failed to base64url decode the iv")}try{o=H(n.tag)}catch{throw new q("Failed to base64url decode the tag")}return e8(e,t,r,i,o)}default:throw new K('Invalid or unsupported "alg" (JWE Algorithm) header value')}}let ts=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};async function tc(e,t,r){let n,i,o,a,s,c,u;if(!et(e))throw new q("Flattened JWE must be an object");if(void 0===e.protected&&void 0===e.header&&void 0===e.unprotected)throw new q("JOSE Header missing");if(void 0!==e.iv&&"string"!=typeof e.iv)throw new q("JWE Initialization Vector incorrect type");if("string"!=typeof e.ciphertext)throw new q("JWE Ciphertext missing or incorrect type");if(void 0!==e.tag&&"string"!=typeof e.tag)throw new q("JWE Authentication Tag incorrect type");if(void 0!==e.protected&&"string"!=typeof e.protected)throw new q("JWE Protected Header incorrect type");if(void 0!==e.encrypted_key&&"string"!=typeof e.encrypted_key)throw new q("JWE Encrypted Key incorrect type");if(void 0!==e.aad&&"string"!=typeof e.aad)throw new q("JWE AAD incorrect type");if(void 0!==e.header&&!et(e.header))throw new q("JWE Shared Unprotected Header incorrect type");if(void 0!==e.unprotected&&!et(e.unprotected))throw new q("JWE Per-Recipient Unprotected Header incorrect type");if(e.protected)try{let t=H(e.protected);n=JSON.parse(O.decode(t))}catch{throw new q("JWE Protected Header is invalid")}if(!e5(n,e.header,e.unprotected))throw new q("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let l={...n,...e.header,...e.unprotected};if(e6(q,new Map,r?.crit,n,l),void 0!==l.zip)throw new K('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');let{alg:d,enc:f}=l;if("string"!=typeof d||!d)throw new q("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof f||!f)throw new q("missing JWE Encryption Algorithm (enc) in JWE Header");let h=r&&ts("keyManagementAlgorithms",r.keyManagementAlgorithms),p=r&&ts("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(h&&!h.has(d)||!h&&d.startsWith("PBES2"))throw new F('"alg" (Algorithm) Header Parameter value not allowed');if(p&&!p.has(f))throw new F('"enc" (Encryption Algorithm) Header Parameter value not allowed');if(void 0!==e.encrypted_key)try{i=H(e.encrypted_key)}catch{throw new q("Failed to base64url decode the encrypted_key")}let y=!1;"function"==typeof t&&(t=await t(n,e),y=!0);try{o=await ta(d,t,i,l,r)}catch(e){if(e instanceof TypeError||e instanceof q||e instanceof K)throw e;o=eF(f)}if(void 0!==e.iv)try{a=H(e.iv)}catch{throw new q("Failed to base64url decode the iv")}if(void 0!==e.tag)try{s=H(e.tag)}catch{throw new q("Failed to base64url decode the tag")}let m=R.encode(e.protected??"");c=void 0!==e.aad?P(m,R.encode("."),R.encode(e.aad)):m;try{u=H(e.ciphertext)}catch{throw new q("Failed to base64url decode the ciphertext")}let b={plaintext:await e1(f,o,u,a,s,c)};if(void 0!==e.protected&&(b.protectedHeader=n),void 0!==e.aad)try{b.additionalAuthenticatedData=H(e.aad)}catch{throw new q("Failed to base64url decode the aad")}return(void 0!==e.unprotected&&(b.sharedUnprotectedHeader=e.unprotected),void 0!==e.header&&(b.unprotectedHeader=e.header),y)?{...b,key:t}:b}async function tu(e,t,r){if(e instanceof Uint8Array&&(e=O.decode(e)),"string"!=typeof e)throw new q("Compact JWE must be a string or Uint8Array");let{0:n,1:i,2:o,3:a,4:s,length:c}=e.split(".");if(5!==c)throw new q("Invalid Compact JWE");let u=await tc({ciphertext:a,iv:o||void 0,protected:n,tag:s||void 0,encrypted_key:i||void 0},t,r),l={plaintext:u.plaintext,protectedHeader:u.protectedHeader};return"function"==typeof t?{...l,key:u.key}:l}let tl=e=>e.toLowerCase().replace(/^application\//,""),td=(e,t)=>"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e))),tf=(e,t,r={})=>{let n,i;try{n=JSON.parse(O.decode(t))}catch{}if(!et(n))throw new V("JWT Claims Set must be a top-level JSON object");let{typ:o}=r;if(o&&("string"!=typeof e.typ||tl(e.typ)!==tl(o)))throw new W('unexpected "typ" JWT header value',n,"typ","check_failed");let{requiredClaims:a=[],issuer:s,subject:c,audience:u,maxTokenAge:l}=r,d=[...a];for(let e of(void 0!==l&&d.push("iat"),void 0!==u&&d.push("aud"),void 0!==c&&d.push("sub"),void 0!==s&&d.push("iss"),new Set(d.reverse())))if(!(e in n))throw new W(`missing required "${e}" claim`,n,e,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(n.iss))throw new W('unexpected "iss" claim value',n,"iss","check_failed");if(c&&n.sub!==c)throw new W('unexpected "sub" claim value',n,"sub","check_failed");if(u&&!td(n.aud,"string"==typeof u?[u]:u))throw new W('unexpected "aud" claim value',n,"aud","check_failed");switch(typeof r.clockTolerance){case"string":i=tt(r.clockTolerance);break;case"number":i=r.clockTolerance;break;case"undefined":i=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:f}=r,h=e7(f||new Date);if((void 0!==n.iat||l)&&"number"!=typeof n.iat)throw new W('"iat" claim must be a number',n,"iat","invali
12d");if(void 0!==n.nbf){if("number"!=typeof n.nbf)throw new W('"nbf" claim must be a number',n,"nbf","invalid");if(n.nbf>h+i)throw new W('"nbf" claim timestamp check failed',n,"nbf","check_failed")}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new W('"exp" claim must be a number',n,"exp","invalid");if(n.exp<=h-i)throw new $('"exp" claim timestamp check failed',n,"exp","check_failed")}if(l){let e=h-n.iat;if(e-i>("number"==typeof l?l:tt(l)))throw new $('"iat" claim timestamp check failed (too far in the past)',n,"iat","check_failed");if(e<0-i)throw new W('"iat" claim timestamp check failed (it should be in the past)',n,"iat","check_failed")}return n};async function th(e,t,r){let n=await tu(e,t,r),i=tf(n.protectedHeader,n.plaintext,r),{protectedHeader:o}=n;if(void 0!==o.iss&&o.iss!==i.iss)throw new W('replicated "iss" claim header parameter mismatch',i,"iss","mismatch");if(void 0!==o.sub&&o.sub!==i.sub)throw new W('replicated "sub" claim header parameter mismatch',i,"sub","mismatch");if(void 0!==o.aud&&JSON.stringify(o.aud)!==JSON.stringify(i.aud))throw new W('replicated "aud" claim header parameter mismatch',i,"aud","mismatch");let a={payload:i,protectedHeader:o};return"function"==typeof t?{...a,key:n.key}:a}var tp=r(28066);let ty=()=>Date.now()/1e3|0,tm="A256CBC-HS512";async function tb(e){let{token:t={},secret:r,maxAge:n=2592e3,salt:i}=e,o=Array.isArray(r)?r:[r],a=await tw(tm,o[0],i),s=await en({kty:"oct",k:L(a)},`sha${a.byteLength<<3}`);return await new ti(t).setProtectedHeader({alg:"dir",enc:tm,kid:s}).setIssuedAt().setExpirationTime(ty()+n).setJti(crypto.randomUUID()).encrypt(a)}async function tg(e){let{token:t,secret:r,salt:n}=e,i=Array.isArray(r)?r:[r];if(!t)return null;let{payload:o}=await th(t,async({kid:e,enc:t})=>{for(let r of i){let i=await tw(t,r,n);if(void 0===e||e===await en({kty:"oct",k:L(i)},`sha${i.byteLength<<3}`))return i}throw Error("no matching decryption secret")},{clockTolerance:15,keyManagementAlgorithms:["dir"],contentEncryptionAlgorithms:[tm,"A256GCM"]});return o}async function tw(e,t,r){let n;switch(e){case"A256CBC-HS512":n=64;break;case"A256GCM":n=32;break;default:throw Error("Unsupported JWT Content Encryption Algorithm")}return await S("sha256",t,r,`Auth.js Generated Encryption Key (${r})`,n)}async function tx({options:e,paramValue:t,cookieValue:r}){let{url:n,callbacks:i}=e,o=n.origin;return t?o=await i.redirect({url:t,baseUrl:n.origin}):r&&(o=await i.redirect({url:r,baseUrl:n.origin})),{callbackUrl:o,callbackUrlCookie:o!==r?o:void 0}}let tv="\x1b[31m",t_="\x1b[0m",tE={error(e){let t=e instanceof f.lR?e.type:e.name;if(console.error(`${tv}[auth][error]${t_} ${t}: ${e.message}`),e.cause&&"object"==typeof e.cause&&"err"in e.cause&&e.cause.err instanceof Error){let{err:t,...r}=e.cause;console.error(`${tv}[auth][cause]${t_}:`,t.stack),r&&console.error(`${tv}[auth][details]${t_}:`,JSON.stringify(r,null,2))}else e.stack&&console.error(e.stack.replace(/.*/,"").substring(1))},warn(e){let t=`https://warnings.authjs.dev#${e}`;console.warn(`\x1b[33m[auth][warn][${e}]${t_}`,`Read more: ${t}`)},debug(e,t){console.log(`\x1b[90m[auth][debug]:${t_} ${e}`,JSON.stringify(t,null,2))}};function tS(e){let t={...tE};return e.debug||(t.debug=()=>{}),e.logger?.error&&(t.error=e.logger.error),e.logger?.warn&&(t.warn=e.logger.warn),e.logger?.debug&&(t.debug=e.logger.debug),e.logger??(e.logger=t),t}let tA=["providers","session","csrf","signin","signout","callback","verify-request","error","webauthn-options"];async function tT(e){if(!("body"in e)||!e.body||"POST"!==e.method)return;let t=e.headers.get("content-type");return t?.includes("application/json")?await e.json():t?.includes("application/x-www-form-urlencoded")?Object.fromEntries(new URLSearchParams(await e.text())):void 0}async function tk(e,t){try{if("GET"!==e.method&&"POST"!==e.method)throw new f.P8("Only GET and POST requests are supported");t.basePath??(t.basePath="/auth");let r=new URL(e.url),{action:n,providerId:i}=function(e,t){let r=e.match(RegExp(`^${t}(.+)`));if(null===r)throw new f.P8(`Cannot parse action at ${e}`);
12let n=r.at(-1).replace(/^\//,"").split("/").filter(Boolean);if(1!==n.length&&2!==n.length)throw new f.P8(`Cannot parse action at ${e}`);let[i,o]=n;if(!tA.includes(i)||o&&!["signin","callback","webauthn-options"].includes(i))throw new f.P8(`Cannot parse action at ${e}`);return{action:i,providerId:o}}(r.pathname,t.basePath);return{url:r,action:n,providerId:i,method:e.method,headers:Object.fromEntries(e.headers),body:e.body?await tT(e):void 0,cookies:(0,tp.q)(e.headers.get("cookie")??"")??{},error:r.searchParams.get("error")??void 0,query:Object.fromEntries(r.searchParams)}}catch(n){let r=tS(t);r.error(n),r.debug("request",e)}}function tR(e){let t=new Headers(e.headers);e.cookies?.forEach(e=>{let{name:r,value:n,options:i}=e,o=(0,tp.l)(r,n,i);t.has("Set-Cookie")?t.append("Set-Cookie",o):t.set("Set-Cookie",o)});let r=e.body;"application/json"===t.get("content-type")?r=JSON.stringify(e.body):"application/x-www-form-urlencoded"===t.get("content-type")&&(r=new URLSearchParams(e.body).toString());let n=new Response(r,{headers:t,status:e.redirect?302:e.status??200});return e.redirect&&n.headers.set("Location",e.redirect),n}async function tO(e){let t=new TextEncoder().encode(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("").toString()}function tP(e){let t=e=>("0"+e.toString(16)).slice(-2);return Array.from(crypto.getRandomValues(new Uint8Array(e))).reduce((e,r)=>e+t(r),"")}async function tC({options:e,cookieValue:t,isPost:r,bodyValue:n}){if(t){let[i,o]=t.split("|");if(o===await tO(`${i}${e.secret}`))return{csrfTokenVerified:r&&i===n,csrfToken:i}}let i=tP(32),o=await tO(`${i}${e.secret}`);return{cookie:`${i}|${o}`,csrfToken:i}}function tD(e,t){if(!t)throw new f.dy(`CSRF token was missing during an action ${e}`)}function tI(e){return null!==e&&"object"==typeof e}function tN(e,...t){if(!t.length)return e;let r=t.shift();if(tI(e)&&tI(r))for(let t in r)tI(r[t])?(tI(e[t])||(e[t]=Array.isArray(r[t])?[]:{}),tN(e[t],r[t])):void 0!==r[t]&&(e[t]=r[t]);return tN(e,...t)}let tj=Symbol("skip-csrf-check"),tU=Symbol("return-type-raw"),tL=Symbol("custom-fetch"),tM=Symbol("conform-internal"),tH=e=>tW({id:e.sub??e.id??crypto.randomUUID(),name:e.name??e.nickname??e.preferred_username,email:e.email,image:e.picture}),tB=e=>tW({access_token:e.access_token,id_token:e.id_token,refresh_token:e.refresh_token,expires_at:e.expires_at,scope:e.scope,token_type:e.token_type,session_state:e.session_state});function tW(e){let t={};for(let[r,n]of Object.entries(e))void 0!==n&&(t[r]=n);return t}function t$(e,t){if(!e&&t)return;if("string"==typeof e)return{url:new URL(e)};let r=new URL(e?.url??"https://authjs.dev");if(e?.params!=null)for(let[t,n]of Object.entries(e.params))"claims"===t&&(n=JSON.stringify(n)),r.searchParams.set(t,String(n));return{url:r,request:e?.request,conform:e?.conform,...e?.clientPrivateKey?{clientPrivateKey:e?.clientPrivateKey}:null}}let tF={signIn:()=>!0,redirect:({url:e,baseUrl:t})=>e.startsWith("/")?`${t}${e}`:new URL(e).origin===t?e:t,session:({session:e})=>({user:{name:e.user?.name,email:e.user?.email,image:e.user?.image},expires:e.expires?.toISOString?.()??e.expires}),jwt:({token:e})=>e};async function tK({authOptions:e,providerId:t,action:r,url:n,cookies:i,callbackUrl:o,csrfToken:a,csrfDisabled:s,isPost:c}){var u,d;let h=tS(e),{providers:p,provider:y}=function(e){let{providerId:t,config:r}=e,n=new URL(r.basePath??"/auth",e.url.origin),i=r.providers.map(e=>{let t="function"==typeof e?e():e,{options:i,...o}=t,a=i?.id??o.id,s=tN(o,i,{signinUrl:`${n}/signin/${a}`,callbackUrl:`${n}/callback/${a}`});if("oauth"===t.type||"oidc"===t.type){s.redirectProxyUrl??(s.redirectProxyUrl=i?.redirectProxyUrl??r.redirectProxyUrl);let e=function(e){e.issuer&&(e.wellKnown??(e.wellKnown=`${e.issuer}/.well-known/openid-configuration`));let t=t$(e.authorization,e.issuer);t&&!t.url?.searchParams.has("scope")&&t.url.searchParams.set("scope","openid profile email");let r=t$(e.token,e.issuer),n=t$(e.userinfo,e.issuer),i=e.checks??["pkce"];return e.redirectProxyUrl&&(i.includes("state")||i.push("state"),e.redirectProxyUrl=`${e.redirectProxyUrl}/callback/${e.id}`),{...e,authorization:t,token:r,checks:i,userinfo:n,profile:e.profile??tH,account:e.account??tB}}(s);return e.authorization?.url.searchParams.get("response_mode")==="form_post"&&delete e.redirectProxyUrl,e[tL]??(e[tL]=i?.[tL]),e}return s});return{providers:i,provider:i.find(({id:e})=>e===t)}}({url:n,providerId:t,config:e}),m=!1;if((y?.type==="oauth"||y?.type==="oidc")&&y.redirectProxyUrl)try{m=new URL(y.redirectProxyUrl).origin===n.origin}catch{throw TypeError(`redirectProxyUrl must be a valid URL. Received: ${y.redirectProxyUrl}`)}let b={debug:!1,pages:{},theme:{colorScheme:"auto",logo:"",brandColor:"",buttonText:""},...e,url:n,action:r,provider:y,cookies:tN(l(e.useSecureCookies??"https:"===n.protocol),e.cookies),providers:p,session:{strategy:e.adapter?"database":"jwt",maxAge:2592e3,updateAge:86400,generateSessionToken:()=>crypto.randomUUID(),...e.session},jwt:{secret:e.secret,maxAge:e.session?.maxAge??2592e3,encode:tb,decode:tg,...e.jwt},events:(u=e.events??{},d=h,Object.keys(u).reduce((e,t)=>
12(e[t]=async(...e)=>{try{let r=u[t];return await r(...e)}catch(e){d.error(new f.PM(e))}},e),{})),adapter:function(e,t){if(e)return Object.keys(e).reduce((r,n)=>(r[n]=async(...r)=>{try{t.debug(`adapter_${n}`,{args:r});let i=e[n];return await i(...r)}catch(r){let e=new f.om(r);throw t.error(e),e}},r),{})}(e.adapter,h),callbacks:{...tF,...e.callbacks},logger:h,callbackUrl:n.origin,isOnRedirectProxy:m,experimental:{...e.experimental}},g=[];if(s)b.csrfTokenVerified=!0;else{let{csrfToken:e,cookie:t,csrfTokenVerified:r}=await tC({options:b,cookieValue:i?.[b.cookies.csrfToken.name],isPost:c,bodyValue:a});b.csrfToken=e,b.csrfTokenVerified=r,t&&g.push({name:b.cookies.csrfToken.name,value:t,options:b.cookies.csrfToken.options})}let{callbackUrl:w,callbackUrlCookie:x}=await tx({options:b,cookieValue:i?.[b.cookies.callbackUrl.name],paramValue:o});return b.callbackUrl=w,x&&g.push({name:b.cookies.callbackUrl.name,value:x,options:b.cookies.callbackUrl.options}),{options:b,cookies:g}}var tz,tq,tJ,tV,tG,tX,tY,tQ,tZ,t0,t1,t2={},t8=[],t4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function t5(e,t){for(var r in t)e[r]=t[r];return e}function t6(e){var t=e.parentNode;t&&t.removeChild(e)}function t3(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++tZ:i};return null==i&&null!=tQ.vnode&&tQ.vnode(o),o}function t9(e){return e.children}function t7(e,t){this.props=e,this.context=t}function re(e,t){if(null==t)return e.__?re(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?re(e):null}function rt(e){(!e.__d&&(e.__d=!0)&&t0.push(e)&&!rr.__r++||t1!==tQ.debounceRendering)&&((t1=tQ.debounceRendering)||setTimeout)(rr)}function rr(){for(var e;rr.__r=t0.length;)e=t0.sort(function(e,t){return e.__v.__b-t.__v.__b}),t0=[],e.some(function(e){var t,r,n,i,o;e.__d&&(i=(n=e.__v).__e,(o=e.__P)&&(t=[],(r=t5({},n)).__v=n.__v+1,ru(o,n,r,e.__n,void 0!==o.ownerSVGElement,null!=n.__h?[i]:null,t,null==i?re(n):i,n.__h),rl(t,n),n.__e!=i&&function e(t){var r,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if(null!=(n=t.__k[r])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return e(t)}}(n)))})}function rn(e,t,r,n,i,o,a,s,c,u){var l,d,f,h,p,y,m,b=n&&n.__k||t8,g=b.length;for(r.__k=[],l=0;l<t.length;l++)if(null!=(h=r.__k[l]=null==(h=t[l])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?t3(null,h,null,null,h):Array.isArray(h)?t3(t9,{children:h},null,null,null):h.__b>0?t3(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=r,h.__b=r.__b+1,null===(f=b[l])||f&&h.key==f.key&&h.type===f.type)b[l]=void 0;else for(d=0;d<g;d++){if((f=b[d])&&h.key==f.key&&h.type===f.type){b[d]=void 0;break}f=null}ru(e,h,f=f||t2,i,o,a,s,c,u),p=h.__e,(d=h.ref)&&f.ref!=d&&(m||(m=[]),f.ref&&m.push(f.ref,null,h),m.push(d,h.__c||p,h)),null!=p?(null==y&&(y=p),"function"==typeof h.type&&h.__k===f.__k?h.__d=c=function e(t,r,n){for(var i,o=t.__k,a=0;o&&a<o.length;a++)(i=o[a])&&(i.__=t,r="function"==typeof i.type?e(i,r,n):ri(n,i,i,o,i.__e,r));return r}(h,c,e):c=ri(e,h,f,b,p,c),"function"==typeof r.type&&(r.__d=c)):c&&f.__e==c&&c.parentNode!=e&&(c=re(f))}for(r.__e=y,l=g;l--;)null!=b[l]&&function e(t,r,n){var i,o;if(tQ.unmount&&tQ.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||rd(i,null,r)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){tQ.__e(e,r)}i.base=i.__P=null,t.__c=void 0}if(i=t.__k)for(o=0;o<i.length;o++)i[o]&&e(i[o],r,n||"function"!=typeof t.type);n||null==t.__e||t6(t.__e),t.__=t.__e=t.__d=void 0}(b[l],b[l]);if(m)for(l=0;l<m.length;l++)rd(m[l],m[++l],m[++l])}function ri(e,t,r,n,i,o){var a,s,c;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==r||i!=o||null==i.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(i),a=null;else{for(s=o,c=0;(s=s.nextSibling)&&c<n.length;c+=1)if(s==i)break e;e.insertBefore(i,o),a=o}return void 0!==a?a:i.nextSibling}function ro(e,t,r){"-"===t[0]?e.setProperty(t,r):e[t]=null==r?"":"number"!=typeof r||t4.test(t)?r:r+"px"}function ra(e,t,r,n,i){var o;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||ro(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||ro(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n||e.addEventListener(t,o?rc:rs,o):e.removeEventListener(t,o?rc:rs,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,r))}}function rs(e){this.l[e.type+!1](tQ.event?tQ.event(e):e)}function rc(e){this.l[e.type+!0](tQ.event?tQ.event(e):e)}function ru(e,t,r,n,i,o,a,s,c){var u,l,d,f,h,p,y,m,b,g,w,x,v,_,E,S=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(c=r.__h,s=t.__e=r.__e,t.__h=null,o=[s]),(u=tQ.__b)&&u(t);try{e:if("function"==typeof S){if(m=t.props,b=(u=S.contextType)&&n[u.__c],g=u?b?b.props.value:u.__:n,r.__c?y=(l=t.__c=r.__c).__=l.__E:("prototype"in S&&S.prototype.render?t.__c=l=new S(m,g):(t.__c=l=new t7(m,g),l.constructor=S,l.render=rf),b&&b.sub(l),l.props=m,l.state||(l.state={}),l.context=g,l.__n=n,d=l.__d=!0,l.__h=[],l._sb=[]),null==l.__s&&(l.__s=l.state),null!=S.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=t5({},l.__s)),t5(l.__s,S.getDerivedStateFromProps(m,l.__s))),f=l.props,h=l.state,d)null==S.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==S.getDerivedStateFromProps&&m!==f&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(m,g),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(m,l.__s,g)||t.__v===r.__v){for(l.props=m,l.state=l.__s,t.__v!==r.__v&&(l.__d=!1),l.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEac
12h(function(e){e&&(e.__=t)}),w=0;w<l._sb.length;w++)l.__h.push(l._sb[w]);l._sb=[],l.__h.length&&a.push(l);break e}null!=l.componentWillUpdate&&l.componentWillUpdate(m,l.__s,g),null!=l.componentDidUpdate&&l.__h.push(function(){l.componentDidUpdate(f,h,p)})}if(l.context=g,l.props=m,l.__v=t,l.__P=e,x=tQ.__r,v=0,"prototype"in S&&S.prototype.render){for(l.state=l.__s,l.__d=!1,x&&x(t),u=l.render(l.props,l.state,l.context),_=0;_<l._sb.length;_++)l.__h.push(l._sb[_]);l._sb=[]}else do l.__d=!1,x&&x(t),u=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++v<25);l.state=l.__s,null!=l.getChildContext&&(n=t5(t5({},n),l.getChildContext())),d||null==l.getSnapshotBeforeUpdate||(p=l.getSnapshotBeforeUpdate(f,h)),E=null!=u&&u.type===t9&&null==u.key?u.props.children:u,rn(e,Array.isArray(E)?E:[E],t,r,n,i,o,a,s,c),l.base=t.__e,t.__h=null,l.__h.length&&a.push(l),y&&(l.__E=l.__=null),l.__e=!1}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,n,i,o,a,s){var c,u,l,d=r.props,f=t.props,h=t.type,p=0;if("svg"===h&&(i=!0),null!=o){for(;p<o.length;p++)if((c=o[p])&&"setAttribute"in c==!!h&&(h?c.localName===h:3===c.nodeType)){e=c,o[p]=null;break}}if(null==e){if(null===h)return document.createTextNode(f);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,f.is&&f),o=null,s=!1}if(null===h)d===f||s&&e.data===f||(e.data=f);else{if(o=o&&tY.call(e.childNodes),u=(d=r.props||t2).dangerouslySetInnerHTML,l=f.dangerouslySetInnerHTML,!s){if(null!=o)for(d={},p=0;p<e.attributes.length;p++)d[e.attributes[p].name]=e.attributes[p].value;(l||u)&&(l&&(u&&l.__html==u.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(function(e,t,r,n,i){var o;for(o in r)"children"===o||"key"===o||o in t||ra(e,o,null,r[o],n);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||r[o]===t[o]||ra(e,o,t[o],r[o],n)}(e,f,d,i,s),l)t.__k=[];else if(rn(e,Array.isArray(p=t.props.children)?p:[p],t,r,n,i&&"foreignObject"!==h,o,a,o?o[0]:r.__k&&re(r,0),s),null!=o)for(p=o.length;p--;)null!=o[p]&&t6(o[p]);s||("value"in f&&void 0!==(p=f.value)&&(p!==e.value||"progress"===h&&!p||"option"===h&&p!==d.value)&&ra(e,"value",p,d.value,!1),"checked"in f&&void 0!==(p=f.checked)&&p!==e.checked&&ra(e,"checked",p,d.checked,!1))}return e}(r.__e,t,r,n,i,o,a,c);(u=tQ.diffed)&&u(t)}catch(e){t.__v=null,(c||null!=o)&&(t.__e=s,t.__h=!!c,o[o.indexOf(s)]=null),tQ.__e(e,t,r)}}function rl(e,t){tQ.__c&&tQ.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){tQ.__e(e,t.__v)}})}function rd(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){tQ.__e(e,r)}}function rf(e,t,r){return this.constructor(e,r)}function rh(e,t){var r,n,i,o;r=e,tQ.__&&tQ.__(r,t),i=(n="function"==typeof rh)?null:rh&&rh.__k||t.__k,o=[],ru(t,r=(!n&&rh||t).__k=function(e,t,r){var n,i,o,a={};for(o in t)"key"==o?n=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?tY.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return t3(e,a,n,i,null)}(t9,null,[r]),i||t2,t2,void 0!==t.ownerSVGElement,!n&&rh?[rh]:i?null:t.firstChild?tY.call(t.childNodes):null,o,!n&&rh?rh:i?i.__e:t.firstChild,n),rl(o,r)}tY=t8.slice,tQ={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},tZ=0,t7.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=t5({},this.state),"function"==typeof e&&(e=e(t5({},r),this.props)),e&&t5(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),rt(this))},t7.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),rt(this))},t7.prototype.render=t9,t0=[],rr.__r=0;var rp=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,ry=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,rm=/[\s\n\\/='"\0<>]/,rb=/^xlink:?./,rg=/["&<]/;function rw(e){if(!1===rg.test(e+=""))return e;for(var t=0,r=0,n="",i="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 60:i="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=i,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var rx=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"	"))},rv=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},r_={},rE=/([A-Z])/g;function rS(e){var t="";for(var r in e){var n=e[r];null!=n&&""!==n&&(t&&(t+=" "),t+="-"==r[0]?r:r_[r]||(r_[r]=r.replace(rE,"-$1").toLowerCase()),t="number"==typeof n&&!1===rp.test(r)?t+": "+n+"px;":t+": "+n+";")}return t||void 0}function rA(e,t){return Array.isArray(t)?t.reduce(rA,e):null!=t&&!1!==t&&e.push(t),e}function rT(){this.__d=!0}function rk(e,t){return{__v:e,context:t,props:e.props,setState:rT,forceUpdate:rT,__d:!0,__h:[]}}function rR(e,t){var r=e.contextType,n=r&&t[r.__c];return null!=r?n?n.props.value:r.__:t}var rO=[],rP={shallow:!0};rD.render=rD;var rC=[];function rD(e,t,r){t=t||{};var n,i=tQ.__s;return tQ.__s=!0,n=r&&(r.pretty||r.voidElements||r.sortAttributes||r.shallow||r.allAttributes||r.xml||r.attributeHook)?function e(t,r,n,i,o,a){if(null==t||"boolean"==typeof t)return"";if("object"!=typeof t)return rw(t);var s=n.pretty,c=s&&"string"==typeof s?s:"	";if(Array.isArray(t)){for(var u="",l=0;l<t.length;l++)s&&l>
120&&(u+="\n"),u+=e(t[l],r,n,i,o,a);return u}var d,f=t.type,h=t.props,p=!1;if("function"==typeof f){if(p=!0,!n.shallow||!i&&!1!==n.renderRootComponent){if(f===t9){var y=[];return rA(y,t.props.children),e(y,r,n,!1!==n.shallowHighOrder,o,a)}var m,b=t.__c=rk(t,r);tQ.__b&&tQ.__b(t);var g=tQ.__r;if(f.prototype&&"function"==typeof f.prototype.render){var w=rR(f,r);(b=t.__c=new f(h,w)).__v=t,b._dirty=b.__d=!0,b.props=h,null==b.state&&(b.state={}),null==b._nextState&&null==b.__s&&(b._nextState=b.__s=b.state),b.context=w,f.getDerivedStateFromProps?b.state=Object.assign({},b.state,f.getDerivedStateFromProps(b.props,b.state)):b.componentWillMount&&(b.componentWillMount(),b.state=b._nextState!==b.state?b._nextState:b.__s!==b.state?b.__s:b.state),g&&g(t),m=b.render(b.props,b.state,b.context)}else for(var x=rR(f,r),v=0;b.__d&&v++<25;)b.__d=!1,g&&g(t),m=f.call(t.__c,h,x);return b.getChildContext&&(r=Object.assign({},r,b.getChildContext())),tQ.diffed&&tQ.diffed(t),e(m,r,n,!1!==n.shallowHighOrder,o,a)}f=(d=f).displayName||d!==Function&&d.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=rO.length;n--;)if(rO[n]===e){r=n;break}r<0&&(r=rO.push(e)-1),t="UnnamedComponent"+r}return t}(d)}var _,E,S="<"+f;if(h){var A=Object.keys(h);n&&!0===n.sortAttributes&&A.sort();for(var T=0;T<A.length;T++){var k=A[T],R=h[k];if("children"!==k){if(!rm.test(k)&&(n&&n.allAttributes||"key"!==k&&"ref"!==k&&"__self"!==k&&"__source"!==k)){if("defaultValue"===k)k="value";else if("defaultChecked"===k)k="checked";else if("defaultSelected"===k)k="selected";else if("className"===k){if(void 0!==h.class)continue;k="class"}else o&&rb.test(k)&&(k=k.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===k){if(h.for)continue;k="for"}"style"===k&&R&&"object"==typeof R&&(R=rS(R)),"a"===k[0]&&"r"===k[1]&&"boolean"==typeof R&&(R=String(R));var O=n.attributeHook&&n.attributeHook(k,R,r,n,p);if(O||""===O)S+=O;else if("dangerouslySetInnerHTML"===k)E=R&&R.__html;else if("textarea"===f&&"value"===k)_=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=k,n&&n.xml))){S=S+" "+k;continue}if("value"===k){if("select"===f){a=R;continue}"option"===f&&a==R&&void 0===h.selected&&(S+=" selected")}S=S+" "+k+'="'+rw(R)+'"'}}}else _=R}}if(s){var P=S.replace(/\n\s*/," ");P===S||~P.indexOf("\n")?s&&~S.indexOf("\n")&&(S+="\n"):S=P}if(S+=">",rm.test(f))throw Error(f+" is not a valid HTML tag name in "+S);var C,D=ry.test(f)||n.voidElements&&n.voidElements.test(f),I=[];if(E)s&&rv(E)&&(E="\n"+c+rx(E,c)),S+=E;else if(null!=_&&rA(C=[],_).length){for(var N=s&&~S.indexOf("\n"),j=!1,U=0;U<C.length;U++){var L=C[U];if(null!=L&&!1!==L){var M=e(L,r,n,!0,"svg"===f||"foreignObject"!==f&&o,a);if(s&&!N&&rv(M)&&(N=!0),M)if(s){var H=M.length>0&&"<"!=M[0];j&&H?I[I.length-1]+=M:I.push(M),j=H}else I.push(M)}}if(s&&N)for(var B=I.length;B--;)I[B]="\n"+c+rx(I[B],c)}if(I.length||E)S+=I.join("");else if(n&&n.xml)return S.substring(0,S.length-1)+" />";return!D||C||E?(s&&~S.indexOf("\n")&&(S+="\n"),S=S+"</"+f+">"):S=S.replace(/>$/," />"),S}(e,t,r):function e(t,r,n,i){if(null==t||!0===t||!1===t||""===t)return"";if("object"!=typeof t)return rw(t);if(rI(t)){for(var o="",a=0;a<t.length;a++)o+=e(t[a],r,n,i);return o}tQ.__b&&tQ.__b(t);var s=t.type,c=t.props;if("function"==typeof s){if(s===t9)return e(t.props.children,r,n,i);var u,l,d,f,h,p=s.prototype&&"function"==typeof s.prototype.render?(u=r,d=rR(l=t.type,u),f=new l(t.props,d),t.__c=f,f.__v=t,f.__d=!0,f.props=t.props,null==f.state&&(f.state={}),null==f.__s&&(f.__s=f.state),f.context=d,l.getDerivedStateFromProps?f.state=rN({},f.state,l.getDerivedStateFromProps(f.props,f.state)):f.componentWillMount&&(f.componentWillMount(),f.state=f.__s!==f.state?f.__s:f.state),(h=tQ.__r)&&h(t),f.render(f.props,f.state,f.context)):function(e,t){var r,n=rk(e,t),i=rR(e.type,t);e.__c=n;for(var o=tQ.__r,a=0;n.__d&&a++<25;)n.__d=!1,o&&o(e),r=e.type.call(n,e.props,i);return r}(t,r),y=t.__c;y.getChildContext&&(r=rN({},r,y.getChildContext()));var m=e(p,r,n,i);return tQ.diffed&&tQ.diffed(t),m}var b,g,w="<";if(w+=s,c)for(var x in b=c.children,c){var v,_,E,S=c[x];if(!("key"===x||"ref"===x||"__self"===x||"__source"===x||"children"===x||"className"===x&&"class"in c||"htmlFor"===x&&"for"in c||rm.test(x))){if(_=x="className"===(v=x
12)?"class":"htmlFor"===v?"for":"defaultValue"===v?"value":"defaultChecked"===v?"checked":"defaultSelected"===v?"selected":n&&rb.test(v)?v.toLowerCase().replace(/^xlink:?/,"xlink:"):v,E=S,S="style"===_&&null!=E&&"object"==typeof E?rS(E):"a"===_[0]&&"r"===_[1]&&"boolean"==typeof E?String(E):E,"dangerouslySetInnerHTML"===x)g=S&&S.__html;else if("textarea"===s&&"value"===x)b=S;else if((S||0===S||""===S)&&"function"!=typeof S){if(!0===S||""===S){S=x,w=w+" "+x;continue}if("value"===x){if("select"===s){i=S;continue}"option"!==s||i!=S||"selected"in c||(w+=" selected")}w=w+" "+x+'="'+rw(S)+'"'}}}var A=w;if(w+=">",rm.test(s))throw Error(s+" is not a valid HTML tag name in "+w);var T="",k=!1;if(g)T+=g,k=!0;else if("string"==typeof b)T+=rw(b),k=!0;else if(rI(b))for(var R=0;R<b.length;R++){var O=b[R];if(null!=O&&!1!==O){var P=e(O,r,"svg"===s||"foreignObject"!==s&&n,i);P&&(T+=P,k=!0)}}else if(null!=b&&!1!==b&&!0!==b){var C=e(b,r,"svg"===s||"foreignObject"!==s&&n,i);C&&(T+=C,k=!0)}if(tQ.diffed&&tQ.diffed(t),k)w+=T;else if(ry.test(s))return A+" />";return w+"</"+s+">"}(e,t,!1,void 0),tQ.__c&&tQ.__c(e,rC),tQ.__s=i,rC.length=0,n}var rI=Array.isArray,rN=Object.assign;rD.shallowRender=function(e,t){return rD(e,t,rP)};var rj=0;function rU(e,t,r,n,i){var o,a,s={};
12for(a in t)"ref"==a?o=t[a]:s[a]=t[a];var c={type:e,props:s,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--rj,__source:i,__self:n};if("function"==typeof e&&(o=e.defaultProps))for(a in o)void 0===s[a]&&(s[a]=o[a]);return tQ.vnode&&tQ.vnode(c),c}async function rL(e,t){let r=window.SimpleWebAuthnBrowser;async function n(r){let n=new URL(`${e}/webauthn-options/${t}`);r&&n.searchParams.append("action",r),o().forEach(e=>{n.searchParams.append(e.name,e.value)});let i=await fetch(n);return i.ok?i.json():void console.error("Failed to fetch options",i)}function i(){let e=`#${t}-form`,r=document.querySelector(e);if(!r)throw Error(`Form '${e}' not found`);return r}function o(){return Array.from(i().querySelectorAll("input[data-form-field]"))}async function a(e,t){let r=i();if(e){let t=document.createElement("input");t.type="hidden",t.name="action",t.value=e,r.appendChild(t)}if(t){let e=document.createElement("input");e.type="hidden",e.name="data",e.value=JSON.stringify(t),r.appendChild(e)}return r.submit()}async function s(e,t){let n=await r.startAuthentication(e,t);return await a("authenticate",n)}async function c(e){o().forEach(e=>{if(e.required&&!e.value)throw Error(`Missing required field: ${e.name}`)});let t=await r.startRegistration(e);return await a("register",t)}async function u(){if(!r.browserSupportsWebAuthnAutofill())return;let e=await n("authenticate");if(!e)return void console.error("Failed to fetch option for autofill authentication");try{await s(e.options,!0)}catch(e){console.error(e)}}(async function(){let e=i();if(!r.browserSupportsWebAuthn()){e.style.display="none";return}e&&e.addEventListener("submit",async e=>{e.preventDefault();let t=await n(void 0);if(!t)return void console.error("Failed to fetch options for form submission");if("authenticate"===t.action)try{await s(t.options,!1)}catch(e){console.error(e)}else if("register"===t.action)try{await c(t.options)}catch(e){console.error(e)}})})(),u()}let rM={default:"Unable to sign in.",Signin:"Try signing in with a different account.",OAuthSignin:"Try signing in with a different account.",OAuthCallbackError:"Try signing in with a different account.",OAuthCreateAccount:"Try signing in with a different account.",EmailCreateAccount:"Try signing in with a different account.",Callback:"Try signing in with a different account.",OAuthAccountNotLinked:"To confirm your identity, sign in with the same account you used originally.",EmailSignin:"The e-mail could not be sent.",CredentialsSignin:"Sign in failed. Check the details you provided are correct.",SessionRequired:"Please sign in to access this page."},rH=`:root {
13  --border-width: 1px;
14  --border-radius: 0.5rem;
15  --color-error: #c94b4b;
16  --color-info: #157efb;
17  --color-info-hover: #0f6ddb;
18  --color-info-text: #fff;
19}
20
21.__next-auth-theme-auto,
22.__next-auth-theme-light {
23  --color-background: #ececec;
24  --color-background-hover: rgba(236, 236, 236, 0.8);
25  --color-background-card: #fff;
26  --color-text: #000;
27  --color-primary: #444;
28  --color-control-border: #bbb;
29  --color-button-active-background: #f9f9f9;
30  --color-button-active-border: #aaa;
31  --color-separator: #ccc;
32}
33
34.__next-auth-theme-dark {
35  --color-background: #161b22;
36  --color-background-hover: rgba(22, 27, 34, 0.8);
37  --color-background-card: #0d1117;
38  --color-text: #fff;
39  --color-primary: #ccc;
40  --color-control-border: #555;
41  --color-button-active-background: #060606;
42  --color-button-active-border: #666;
43  --color-separator: #444;
44}
45
46@media (prefers-color-scheme: dark) {
47  .__next-auth-theme-auto {
48    --color-background: #161b22;
49    --color-background-hover: rgba(22, 27, 34, 0.8);
50    --color-background-card: #0d1117;
51    --color-text: #fff;
52    --color-primary: #ccc;
53    --color-control-border: #555;
54    --color-button-active-background: #060606;
55    --color-button-active-border: #666;
56    --color-separator: #444;
57  }
58
59  button,
60  a.button {
61    color: var(--provider-dark-color, var(--color-primary)) !important;
62    background-color: var(
63      --provider-dark-bg,
64      var(--color-background)
65    ) !important;
66  }
67
68    :is(button,a.button):hover {
69      background-color: var(
70        --provider-dark-bg-hover,
71        var(--color-background-hover)
72      ) !important;
73    }
74
75    :is(button,a.button) span {
76      color: var(--provider-dark-bg) !important;
77    }
78}
79
80html {
81  box-sizing: border-box;
82}
83
84*,
85*:before,
86*:after {
87  box-sizing: inherit;
88  margin: 0;
89  padding: 0;
90}
91
92body {
93  background-color: var(--color-background);
94  margin: 0;
95  padding: 0;
96  font-family:
97    ui-sans-serif,
98    system-ui,
99    -apple-system,
100    BlinkMacSystemFont,
101    "Segoe UI",
102    Roboto,
103    "Helvetica Neue",
104    Arial,
105    "Noto Sans",
106    sans-serif,
107    "Apple Color Emoji",
108    "Segoe UI Emoji",
109    "Segoe UI Symbol",
110    "Noto Color Emoji";
111}
112
113h1 {
114  margin-bottom: 1.5rem;
115  padding: 0 1rem;
116  font-weight: 400;
117  color: var(--color-text);
118}
119
120p {
121  margin-bottom: 1.5rem;
122  padding: 0 1rem;
123  color: var(--color-text);
124}
125
126form {
127  margin: 0;
128  padding: 0;
129}
130
131label {
132  font-weight: 500;
133  text-align: left;
134  margin-bottom: 0.25rem;
135  display: block;
136  color: var(--color-text);
137}
138
139input[type] {
140  box-sizing: border-box;
141  display: block;
142  width: 100%;
143  padding: 0.5rem 1rem;
144  border: var(--border-width) solid var(--color-control-border);
145  background: var(--color-background-card);
146  font-size: 1rem;
147  border-radius: var(--border-radius);
148  color: var(--color-text);
149}
150
151p {
152  font-size: 1.1rem;
153  line-height: 2rem;
154}
155
156a.button {
157  text-decoration: none;
158  line-height: 1rem;
159}
160
161a.button:link,
162  a.button:visited {
163    background-color: var(--color-background);
164    color: var(--color-primary);
165  }
166
167button,
168a.button {
169  padding: 0.75rem 1rem;
170  color: var(--provider-color, var(--color-primary));
171  background-color: var(--provider-bg, var(--color-background));
172  border: 1px solid #00000031;
173  font-size: 0.9rem;
174  height: 50px;
175  border-radius: var(--border-radius);
176  transition: background-color 250ms ease-in-out;
177  font-weight: 300;
178  position: relative;
179  display: flex;
180  align-items: center;
181  justify-content: space-between;
182}
183
184:is(button,a.button):hover {
185    background-color: var(--provider-bg-hover, var(--color-background-hover));
186    cursor: pointer;
187  }
188
189:is(button,a.button):active {
190    cursor: pointer;
191  }
192
193:is(button,a.button) span {
194    color: #fff;
195  }
196
197#submitButton {
198  color: var(--button-text-color, var(--color-info-text));
199  background-color: var(--brand-color, var(--color-info));
200  width: 100%;
201}
202
203#submitButton:hover {
204    background-color: var(
205      --button-hover-bg,
206      var(--color-info-hover)
207    ) !important;
208  }
209
210a.site {
211  color: var(--color-primary);
212  text-decoration: none;
213  font-size: 1rem;
214  line-height: 2rem;
215}
216
217a.site:hover {
218    text-decoration: underline;
219  }
220
221.page {
222  position: absolute;
223  width: 100%;
224  height: 100%;
225  display: grid;
226  place-items: center;
227  margin: 0;
228  padding: 0;
229  box-sizing: border-box;
230}
231
232.page > div {
233    text-align: center;
234  }
235
236.error a.button {
237    padding-left: 2rem;
238    padding-right: 2rem;
239    margin-top: 0.5rem;
240  }
241
242.error .message {
243    margin-bottom: 1.5rem;
244  }
245
246.signin input[type="text"] {
247    margin-left: auto;
248    margin-right: auto;
249    display: block;
250  }
251
252.signin hr {
253    display: block;
254    border: 0;
255    border-top: 1px solid var(--color-separator);
256    margin: 2rem auto 1rem auto;
257    overflow: visible;
258  }
259
260.signin hr::before {
261      content: "or";
262      background: var(--color-background-card);
263      color: #888;
264      padding: 0 0.4rem;
265      position: relative;
266      top: -0.7rem;
267    }
268
269.signin .error {
270    background: #f5f5f5;
271    font-weight: 500;
272    border-radius: 0.3rem;
273    background: var(--color-error);
274  }
275
276.signin .error p {
277      text-align: left;
278      padding: 0.5rem 1rem;
279      font-size: 0.9rem;
280      line-height: 1.2rem;
281      color: var(--color-info-text);
282    }
283
284.signin > div,
285  .signin form {
286    display: block;
287  }
288
289.signin > div input[type], .signin form input[type] {
290      margin-bottom: 0.5rem;
291    }
292
293.signin > div button, .signin form button {
294      width: 100%;
295    }
296
297.signin .provider + .provider {
298    margin-top: 1rem;
299  }
300
301.logo {
302  display: inline-block;
303  max-width: 150px;
304  margin: 1.25rem 0;
305  max-height: 70px;
306}
307
308.card {
309  background-color: var(--color-background-card);
310  border-radius: 1rem;
311  padding: 1.25rem 2rem;
312}
313
314.card .header {
315    color: var(--color-primary);
316  }
317
318.card input[type]::-moz-placeholder {
319    color: color-mix(
320      in srgb,
321      var(--color-text) 20%,
322      var(--color-button-active-background)
323    );
324  }
325
326.card input[type]::placeholder {
327    color: color-mix(
328      in srgb,
329      var(--color-text) 20%,
330      var(--color-button-active-background)
331    );
332  }
333
334.card input[type] {
335    background: color-mix(in srgb, var(--color-background-card) 95%, black);
336  }
337
338.section-header {
339  color: var(--color-text);
340}
341
342@media screen and (min-width: 450px) {
343  .card {
344    margin: 2rem 0;
345    width: 368px;
346  }
347}
348
349@media screen and (max-width: 450px) {
350  .card {
351    margin: 1rem 0;
352    width: 343px;
353  }
354}
355`;function rB({html:e,title:t,status:r,cookies:n,theme:i,headTags:o}){return{cookies:n,status:r,headers:{"Content-Type":"text/html"},body:`<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><style>${rH}</style><title>${t}</title>${o??""}</head><body class="__next-auth-theme-${i?.colorScheme??"auto"}"><div class="page">${rD(e)}</div></body></html>`}}function rW(e){let{url:t,theme:r,query:n,cookies:i,pages:o,providers:a}=e;return{csrf:(e,t,r)=>e?(t.logger.warn("csrf-disabled"),r.push({name:t.cookies.csrfToken.name,value:"",options:{...t.cookies.csrfToken.options,maxAge:0}}),{status:404,cookies:r}):{headers:{"Content-Type":"application/json"},body:{csrfToken:t.csrfToken},cookies:r},providers:e=>({headers:{"Content-Type":"application/json"},body:e.reduce((e,{id:t,name:r,type:n,signinUrl:i,callbackUrl:o})=>(e[t]={id:t,name:r,type:n,signinUrl:i,callbackUrl:o},e),{})}),signin(t,s){if(t)throw new f.P8("Unsupported action");if(o?.signIn){let t=`${o.signIn}${o.signIn.includes("?")?"&":"?"}${new URLSearchParams({callbackUrl:e.callbackUrl??"/"})}`;return s&&(t=`${t}&${new URLSearchParams({error:s})}`),{redirect:t,cookies:i}}let c=a?.find(e=>"webauthn"===e.type&&e.enableConditionalUI&&!!e.simpleWebAuthnBrowserVersion),u="";if(c){let{simpleWebAuthnBrowserVersion:e}=c;u=`<script src="https://unpkg.com/@simplewebauthn/browser@${e}/dist/bundle/index.umd.min.js" crossorigin="anonymous"></script>`}return rB({cookies:i,theme:r,html:function(e){let{csrfToken:t,providers:r=[],callbackUrl:n,theme:i,email:o,error:a}=e;"undefined"!=typeof document&&i?.brandColor&&document.documentElement.style.setProperty("--brand-color",i.brandColor),"undefined"!=typeof document&&i?.buttonText&&document.documentElement.style.setProperty("--button-text-color",i.buttonText);let s=a&&(rM[a]??rM.default),c=r.find(e=>"webauthn"===e.type&&e.enableConditionalUI)?.id;return rU("div",{className:"signin",children:[i?.brandColor&&rU("style",{dangerouslySetInnerHTML:{__html:`:root {--brand-color: ${i.brandColor}}`}}),i?.buttonText&&rU("style",{dangerouslySetInnerHTML:{__html:`
356        :root {
357          --button-text-color: ${i.buttonText}
358        }
359      `}}),rU("div",{className:"card",children:[s&&rU("div",{className:"error",children:rU("p",{children:s})}),i?.logo&&rU("img",{src:i.logo,alt:"Logo",className:"logo"}),r.map((e,i)=>{let a,s,c;("oauth"===e.type||"oidc"===e.type)&&({bg:a="#fff",brandColor:s,logo:c=`https://authjs.dev/img/providers/${e.id}.svg`}=e.style??{});let u=s??a??"#fff";return rU("div",{className:"provider",children:["oauth"===e.type||"oidc"===e.type?rU("form",{action:e.signinUrl,method:"POST",children:[rU("input",{type:"hidden",name:"csrfToken",value:t}),n&&rU("input",{type:"hidden",name:"callbackUrl",value:n}),rU("button",{type:"submit",className:"button",style:{"--provider-bg":"#fff","--provider-bg-hover":`color-mix(in srgb, ${u} 30%, #fff)`,"--provider-dark-bg":"#161b22","--provider-dark-bg-hover":`color-mix(in srgb, ${u} 30%, #000)`},tabIndex:0,children:[rU("span",{style:{filter:"invert(1) grayscale(1) brightness(1.3) contrast(9000)","mix-blend-mode":"luminosity",opacity:.95},children:["Sign in with ",e.name]}),c&&rU("img",{loading:"lazy",height:24,src:c})]})]}):null,("email"===e.type||"credentials"===e.type||"webauthn"===e.type)&&i>
3590&&"email"!==r[i-1].type&&"credentials"!==r[i-1].type&&"webauthn"!==r[i-1].type&&rU("hr",{}),"email"===e.type&&rU("form",{action:e.signinUrl,method:"POST",children:[rU("input",{type:"hidden",name:"csrfToken",value:t}),rU("label",{className:"section-header",htmlFor:`input-email-for-${e.id}-provider`,children:"Email"}),rU("input",{id:`input-email-for-${e.id}-provider`,autoFocus:!0,type:"email",name:"email",value:o,placeholder:"[email protected]",required:!0}),rU("button",{id:"submitButton",type:"submit",tabIndex:0,children:["Sign in with ",e.name]})]}),"credentials"===e.type&&rU("form",{action:e.callbackUrl,method:"POST",children:[rU("input",{type:"hidden",name:"csrfToken",value:t}),Object.keys(e.credentials).map(t=>rU("div",{children:[rU("label",{className:"section-header",htmlFor:`input-${t}-for-${e.id}-provider`,children:e.credentials[t].label??t}),rU("input",{name:t,id:`input-${t}-for-${e.id}-provider`,type:e.credentials[t].type??"text",placeholder:e.credentials[t].placeholder??"",...e.credentials[t]})]},`input-group-${e.id}`)),rU("button",{id:"submitButton",type:"submit",tabIndex:0,children:["Sign in with ",e.name]})]}),"webauthn"===e.type&&rU("form",{action:e.callbackUrl,method:"POST",id:`${e.id}-form`,children:[rU("input",{type:"hidden",name:"csrfToken",value:t}),Object.keys(e.formFields).map(t=>rU("div",{children:[rU("label",{className:"section-header",htmlFor:`input-${t}-for-${e.id}-provider`,children:e.formFields[t].label??t}),rU("input",{name:t,"data-form-field":!0,id:`input-${t}-for-${e.id}-provider`,type:e.formFields[t].type??"text",placeholder:e.formFields[t].placeholder??"",...e.formFields[t]})]},`input-group-${e.id}`)),rU("button",{id:`submitButton-${e.id}`,type:"submit",tabIndex:0,children:["Sign in with ",e.name]})]}),("email"===e.type||"credentials"===e.type||"webauthn"===e.type)&&i+1<r.length&&rU("hr",{})]},e.id)})]}),c&&rU(t9,{children:rU("script",{dangerouslySetInnerHTML:{__html:`
360const currentURL = window.location.href;
361const authURL = currentURL.substring(0, currentURL.lastIndexOf('/'));
362(${rL})(authURL, "${c}");
363`}})})]})}({csrfToken:e.csrfToken,providers:e.providers?.filter(e=>["email","oauth","oidc"].includes(e.type)||"credentials"===e.type&&e.credentials||"webauthn"===e.type&&e.formFields||!1),callbackUrl:e.callbackUrl,theme:e.theme,error:s,...n}),title:"Sign In",headTags:u})},signout:()=>o?.signOut?{redirect:o.signOut,cookies:i}:rB({cookies:i,theme:r,html:function(e){let{url:t,csrfToken:r,theme:n}=e;return rU("div",{className:"signout",children:[n?.brandColor&&rU("style",{dangerouslySetInnerHTML:{__html:`
364        :root {
365          --brand-color: ${n.brandColor}
366        }
367      `}}),n?.buttonText&&rU("style",{dangerouslySetInnerHTML:{__html:`
368        :root {
369          --button-text-color: ${n.buttonText}
370        }
371      `}}),rU("div",{className:"card",children:[n?.logo&&rU("img",{src:n.logo,alt:"Logo",className:"logo"}),rU("h1",{children:"Signout"}),rU("p",{children:"Are you sure you want to sign out?"}),rU("form",{action:t?.toString(),method:"POST",children:[rU("input",{type:"hidden",name:"csrfToken",value:r}),rU("button",{id:"submitButton",type:"submit",children:"Sign out"})]})]})]})}({csrfToken:e.csrfToken,url:t,theme:r}),title:"Sign Out"}),verifyRequest:e=>o?.verifyRequest?{redirect:o.verifyRequest,cookies:i}:rB({cookies:i,theme:r,html:function(e){let{url:t,theme:r}=e;return rU("div",{className:"verify-request",children:[r.brandColor&&rU("style",{dangerouslySetInnerHTML:{__html:`
372        :root {
373          --brand-color: ${r.brandColor}
374        }
375      `}}),rU("div",{className:"card",children:[r.logo&&rU("img",{src:r.logo,alt:"Logo",className:"logo"}),rU("h1",{children:"Check your email"}),rU("p",{children:"A sign in link has been sent to your email address."}),rU("p",{children:rU("a",{className:"site",href:t.origin,children:t.host})})]})]})}({url:t,theme:r,...e}),title:"Verify Request"}),error:e=>o?.error?{redirect:`${o.error}${o.error.includes("?")?"&":"?"}error=${e}`,cookies:i}:rB({cookies:i,theme:r,...function(e){let{url:t,error:r="default",theme:n}=e,i=`${t}/signin`,o={default:{status:200,heading:"Error",message:rU("p",{children:rU("a",{className:"site",href:t?.origin,children:t?.host})})},Configuration:{status:500,heading:"Server error",message:rU("div",{children:[rU("p",{children:"There is a problem with the server configuration."}),rU("p",{children:"Check the server logs for more information."})]})},AccessDenied:{status:403,heading:"Access Denied",message:rU("div",{children:[rU("p",{children:"You do not have permission to sign in."}),rU("p",{children:rU("a",{className:"button",href:i,children:"Sign in"})})]})},Verification:{status:403,heading:"Unable to sign in",message:rU("div",{children:[rU("p",{children:"The sign in link is no longer valid."}),rU("p",{children:"It may have been used already or it may have expired."})]}),signin:rU("a",{className:"button",href:i,children:"Sign in"})}},{status:a,heading:s,message:c,signin:u}=o[r]??o.default;return{status:a,html:rU("div",{className:"error",children:[n?.brandColor&&rU("style",{dangerouslySetInnerHTML:{__html:`
376        :root {
377          --brand-color: ${n?.brandColor}
378        }
379      `}}),rU("div",{className:"card",children:[n?.logo&&rU("img",{src:n?.logo,alt:"Logo",className:"logo"}),rU("h1",{children:s}),rU("div",{className:"message",children:c}),u]})]})}}({url:t,theme:r,error:e}),title:"Error"})}}function r$(e,t=Date.now()){return new Date(t+1e3*e)}async function rF(e,t,r,n){if(!r?.providerAccountId||!r.type)throw Error("Missing or invalid provider account");if(!["email","oauth","oidc","webauthn"].includes(r.type))throw Error("Provider not supported");let{adapter:i,jwt:o,events:a,session:{strategy:s,generateSessionToken:c}}=n;
379if(!i)return{user:t,account:r};let u=r,{createUser:l,updateUser:d,getUser:h,getUserByAccount:p,getUserByEmail:y,linkAccount:m,createSession:b,getSessionAndUser:g,deleteSession:w}=i,x=null,v=null,_=!1,E="jwt"===s;if(e)if(E)try{let t=n.cookies.sessionToken.name;(x=await o.decode({...o,token:e,salt:t}))&&"sub"in x&&x.sub&&(v=await h(x.sub))}catch{}else{let t=await g(e);t&&(x=t.session,v=t.user)}if("email"===u.type){let r=await y(t.email);return r?(v?.id!==r.id&&!E&&e&&await w(e),v=await d({id:r.id,emailVerified:new Date}),await a.updateUser?.({user:v})):(v=await l({...t,emailVerified:new Date}),await a.createUser?.({user:v}),_=!0),{session:x=E?{}:await b({sessionToken:c(),userId:v.id,expires:r$(n.session.maxAge)}),user:v,isNewUser:_}}if("webauthn"===u.type){let e=await p({providerAccountId:u.providerAccountId,provider:u.provider});if(e){if(v){if(e.id===v.id){let e={...u,userId:v.id};return{session:x,user:v,isNewUser:_,account:e}}throw new f.WS("The account is already associated with another user",{provider:u.provider})}x=E?{}:await b({sessionToken:c(),userId:e.id,expires:r$(n.session.maxAge)});let t={...u,userId:e.id};return{session:x,user:e,isNewUser:_,account:t}}{if(v){await m({...u,userId:v.id}),await a.linkAccount?.({user:v,account:u,profile:t});let e={...u,userId:v.id};return{session:x,user:v,isNewUser:_,account:e}}if(t.email?await y(t.email):null)throw new f.WS("Another account already exists with the same e-mail address",{provider:u.provider});v=await l({...t}),await a.createUser?.({user:v}),await m({...u,userId:v.id}),await a.linkAccount?.({user:v,account:u,profile:t}),x=E?{}:await b({sessionToken:c(),userId:v.id,expires:r$(n.session.maxAge)});let e={...u,userId:v.id};return{session:x,user:v,isNewUser:!0,account:e}}}let S=await p({providerAccountId:u.providerAccountId,provider:u.provider});if(S){if(v){if(S.id===v.id)return{session:x,user:v,isNewUser:_};throw new f.XP("The account is already associated with another user",{provider:u.provider})}return{session:x=E?{}:await b({sessionToken:c(),userId:S.id,expires:r$(n.session.maxAge)}),user:S,isNewUser:_}}{let{provider:e}=n,{type:r,provider:i,providerAccountId:o,userId:s,...d}=u;if(u=Object.assign(e.account(d)??{},{providerAccountId:o,provider:i,type:r,userId:s}),v)return await m({...u,userId:v.id}),await a.linkAccount?.({user:v,account:u,profile:t}),{session:x,user:v,isNewUser:_};let h=t.email?await y(t.email):null;if(h){let e=n.provider;if(e?.allowDangerousEmailAccountLinking)v=h,_=!1;else throw new f.XP("Another account already exists with the same e-mail address",{provider:u.provider})}else v=await l({...t,emailVerified:null}),_=!0;return await a.createUser?.({user:v}),await m({...u,userId:v.id}),await a.linkAccount?.({user:v,account:u,profile:t}),{session:x=E?{}:await b({sessionToken:c(),userId:v.id,expires:r$(n.session.maxAge)}),user:v,isNewUser:_}}}function rK(e,t){if(null==e)return!1;try{return e instanceof t||Object.getPrototypeOf(e)[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}catch{return!1}}"undefined"!=typeof navigator&&navigator.userAgent?.startsWith?.("Mozilla/5.0 ")||(o="oauth4webapi/v3.3.1");let rz="ERR_INVALID_ARG_VALUE",rq="ERR_INVALID_ARG_TYPE";function rJ(e,t,r){let n=TypeError(e,{cause:r});return Object.assign(n,{code:t}),n}let rV=Symbol(),rG=Symbol(),rX=Symbol(),rY=Symbol(),rQ=Symbol(),rZ=Symbol(),r0=Symbol(),r1=new TextEncoder,r2=new TextDecoder;function r8(e){return"string"==typeof e?r1.encode(e):r2.decode(e)}function r4(e){if("string"==typeof e)try{let t=atob(e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"")),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}catch(e){throw rJ("The input to be decoded is not correctly encoded.",rz,e)}var t=e;t instanceof ArrayBuffer&&(t=new Uint8Array(t));let r=[];for(let e=0;e<t.byteLength;e+=32768)r.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(r.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}
379class r5 extends Error{code;constructor(e,t){super(e,t),this.name=this.constructor.name,this.code=n7,Error.captureStackTrace?.(this,this.constructor)}}class r6 extends Error{code;constructor(e,t){super(e,t),this.name=this.constructor.name,t?.code&&(this.code=t?.code),Error.captureStackTrace?.(this,this.constructor)}}function r3(e,t,r){return new r6(e,{code:t,cause:r})}function r9(e,t){if(!(e instanceof CryptoKey))throw rJ(`${t} must be a CryptoKey`,rq)}function r7(e,t){if(r9(e,t),"private"!==e.type)throw rJ(`${t} must be a private CryptoKey`,rz)}function ne(e){return!(null===e||"object"!=typeof e||Array.isArray(e))}function nt(e){rK(e,Headers)&&(e=Object.fromEntries(e.entries()));let t=new Headers(e);if(o&&!t.has("user-agent")&&t.set("user-agent",o),t.has("authorization"))throw rJ('"options.headers" must not include the "authorization" header name',rz);if(t.has("dpop"))throw rJ('"options.headers" must not include the "dpop" header name',rz);return t}function nr(e){if("function"==typeof e&&(e=e()),!(e instanceof AbortSignal))throw rJ('"options.signal" must return or be an instance of AbortSignal',rq);return e}async function nn(e,t){if(!(e instanceof URL))throw rJ('"issuerIdentifier" must be an instance of URL',rq);n_(e,t?.[rV]!==!0);let r=new URL(e.href);switch(t?.algorithm){case void 0:case"oidc":r.pathname=`${r.pathname}/.well-known/openid-configuration`.replace("//","/");break;case"oauth2":"/"===r.pathname?r.pathname=".well-known/oauth-authorization-server":r.pathname=`.well-known/oauth-authorization-server/${r.pathname}`.replace("//","/");break;default:throw rJ('"options.algorithm" must be "oidc" (default), or "oauth2"',rz)}let n=nt(t?.headers);return n.set("accept","application/json"),(t?.[rY]||fetch)(r.href,{body:void 0,headers:Object.fromEntries(n.entries()),method:"GET",redirect:"manual",signal:t?.signal?nr(t.signal):void 0})}function ni(e,t,r,n,i){try{if("number"!=typeof e||!Number.isFinite(e))throw rJ(`${r} must be a number`,rq,i);if(e>0)return;if(t&&0!==e)throw rJ(`${r} must be a non-negative number`,rz,i);throw rJ(`${r} must be a positive number`,rz,i)}catch(e){if(n)throw r3(e.message,n,i);throw e}}function no(e,t,r,n){try{if("string"!=typeof e)throw rJ(`${t} must be a string`,rq,n);if(0===e.length)throw rJ(`${t} must not be empty`,rz,n)}catch(e){if(r)throw r3(e.message,r,n);throw e}}async function na(e,t){let r;if(!(e instanceof URL)&&e!==iM)throw rJ('"expectedIssuer" must be an instance of URL',rq);if(!rK(t,Response))throw rJ('"response" must be an instance of Response',rq);if(200!==t.status)throw r3('"response" is not a conform Authorization Server Metadata response (unexpected HTTP status code)',is,t);ig(t);try{r=await t.json()}catch(e){throw ns(t),r3('failed to parse "response" body as JSON',ir,e)}if(!ne(r))throw r3('"response" body must be a top level object',ii,{body:r});if(no(r.issuer,'"response" body "issuer" property',ii,{body:r}),new URL(r.issuer).href!==e.href&&e!==iM)throw r3('"response" body "issuer" property does not match the expected value',ih,{expected:e.href,body:r,attribute:"issuer"});return r}function ns(e){var t=e,r="application/json";if(nH(t)!==r)throw nc(t,r)}function nc(e,...t){let r='"response" content-type must be ';if(t.length>2){let e=t.pop();r+=`${t.join(", ")}, or ${e}`}else 2===t.length?r+=`${t[0]} or ${t[1]}`:r+=t[0];return r3(r,ia,e)}function nu(){return r4(crypto.getRandomValues(new Uint8Array(32)))}async function nl(e){return no(e,"codeVerifier"),r4(await crypto.subtle.digest("SHA-256",r8(e)))}function nd(e){switch(e.algorithm.name){case"RSA-PSS":switch(e.algorithm.hash.name){case"SHA-256":return"PS256";case"SHA-384":return"PS384";case"SHA-512":return"PS512";default:throw new r5("unsupported RsaHashedKeyAlgorithm hash name",{cause:e})}case"RSASSA-PKCS1-v1_5":switch(e.algorithm.hash.name){case"SHA-256":return"RS256";case"SHA-384":return"RS384";case"SHA-512":return"RS512";default:throw new r5("unsupported RsaHashedKeyAlgorithm hash name",{cause:e})}case"ECDSA":switch(e.algorithm.namedCurve){case"P-256":return"ES256";case"P-384":return"ES384";case"P-521":return"ES512";default:throw new r5("unsupported EcKeyAlgorithm namedCurve",{cause:e})}
379case"Ed25519":case"EdDSA":return"Ed25519";default:throw new r5("unsupported CryptoKey algorithm name",{cause:e})}}function nf(e){let t=e?.[rG];return"number"==typeof t&&Number.isFinite(t)?t:0}function nh(e){let t=e?.[rX];return"number"==typeof t&&Number.isFinite(t)&&-1!==Math.sign(t)?t:30}function np(){return Math.floor(Date.now()/1e3)}function ny(e){if("object"!=typeof e||null===e)throw rJ('"as" must be an object',rq);no(e.issuer,'"as.issuer"')}function nm(e){if("object"!=typeof e||null===e)throw rJ('"client" must be an object',rq);no(e.client_id,'"client.client_id"')}function nb(e,t){let r=np()+nf(t);return{jti:nu(),aud:e.issuer,exp:r+60,iat:r,nbf:r,iss:t.client_id,sub:t.client_id}}async function ng(e,t,r){if(!r.usages.includes("sign"))throw rJ('CryptoKey instances used for signing assertions must include "sign" in their "usages"',rz);let n=`${r4(r8(JSON.stringify(e)))}.${r4(r8(JSON.stringify(t)))}`,i=r4(await crypto.subtle.sign(iE(r),r,r8(n)));return`${n}.${i}`}async function nw(e){let{kty:t,e:r,n,x:i,y:o,crv:s}=await crypto.subtle.exportKey("jwk",e),c={kty:t,e:r,n,x:i,y:o,crv:s};return a.set(e,c),c}async function nx(e){return(a||=new WeakMap).get(e)||nw(e)}let nv=URL.parse?(e,t)=>URL.parse(e,t):(e,t)=>{try{return new URL(e,t)}catch{return null}};function n_(e,t){if(t&&"https:"!==e.protocol)throw r3("only requests to HTTPS are allowed",ic,e);if("https:"!==e.protocol&&"http:"!==e.protocol)throw r3("only HTTP and HTTPS requests are allowed",iu,e)}function nE(e,t,r,n){let i;if("string"!=typeof e||!(i=nv(e)))throw r3(`authorization server metadata does not contain a valid ${r?`"as.mtls_endpoint_aliases.${t}"`:`"as.${t}"`}`,void 0===e?iy:im,{attribute:r?`mtls_endpoint_aliases.${t}`:t});return n_(i,n),i}function nS(e,t,r,n){return r&&e.mtls_endpoint_aliases&&t in e.mtls_endpoint_aliases?nE(e.mtls_endpoint_aliases[t],t,r,n):nE(e[t],t,r,n)}class nA extends Error{cause;code;error;status;error_description;response;constructor(e,t){super(e,t),this.name=this.constructor.name,this.code=n9,this.cause=t.cause,this.error=t.cause.error,this.status=t.response.status,this.error_description=t.cause.error_description,Object.defineProperty(this,"response",{enumerable:!1,value:t.response}),Error.captureStackTrace?.(this,this.constructor)}}class nT extends Error{cause;code;error;error_description;constructor(e,t){super(e,t),this.name=this.constructor.name,this.code=ie,this.cause=t.cause,this.error=t.cause.get("error"),this.error_description=t.cause.get("error_description")??void 0,Error.captureStackTrace?.(this,this.constructor)}}class nk extends Error{cause;code;response;status;constructor(e,t){super(e,t),this.name=this.constructor.name,this.code=n3,this.cause=t.cause,this.status=t.response.status,this.response=t.response,Object.defineProperty(this,"response",{enumerable:!1}),Error.captureStackTrace?.(this,this.constructor)}}let nR=/((?:,|, )?[0-9a-zA-Z!#$%&'*+-.^_`|~]+=)/,nO=/(?:^|, ?)([0-9a-zA-Z!#$%&'*+\-.^_`|~]+)(?=$|[ ,])/g;async function nP(e){if(e.status>399&&e.status<500){ig(e),ns(e);try{let t=await e.clone().json();if(ne(t)&&"string"==typeof t.error&&t.error.length)return t}catch{}}}async function nC(e,t,r){if(e.status!==t){let t;if(t=await nP(e))throw await e.body?.cancel(),new nA("server responded with an error in the response body",{cause:t,response:e});throw r3(`"response" is not a conform ${r} response (unexpected HTTP status code)`,is,e)}}function nD(e){if(!nQ.has(e))throw rJ('"options.DPoP" is not a valid DPoPHandle',rz)}async function nI(e,t,r,n,i,o){if(no(e,'"accessToken"'),!(r instanceof URL))throw rJ('"url" must be an instance of URL',rq);n_(r,o?.[rV]!==!0),n=nt(n),o?.DPoP?(nD(o.DPoP),await o.DPoP.addProof(r,n,t.toUpperCase(),e),n.set("authorization",`DPoP ${e}`)):n.set("authorization",`Bearer ${e}`);let a=await (o?.[rY]||fetch)(r.href,{body:i,headers:Object.fromEntries(n.entries()),method:t,redirect:"manual",signal:o?.signal?nr(o.signal):void 0});return o?.DPoP?.cacheNonce(a),a}async function nN(e,t,r,n){ny(e),nm(t);let i=nS(e,"userinfo_endpoint",t.use_mtls_endpoint_aliases,n?.[rV]!==!0),o=nt(n?.headers);return t.userinfo_signed_response_alg?o.set("accept","application/jwt"):(o.set("accept","application/json"),o.append("accept","application/jwt")),nI(r,"GET",i,o,null,{...n,[rG]:nf(t)})}function nj(e,t,r,n){(s||=new WeakMap).set(e,{jwks:t,uat:r,get age(){return np()-this.uat}}
379),n&&Object.assign(n,{jwks:structuredClone(t),uat:r})}function nU(e,t){s?.delete(e),delete t?.jwks,delete t?.uat}async function nL(e,t,r){var n;let i,o,a,{alg:c,kid:u}=r;if(function(e){if(!iv(e.alg))throw new r5('unsupported JWS "alg" identifier',{cause:{alg:e.alg}})}(r),!s?.has(e)&&!("object"!=typeof(n=t?.[r0])||null===n||!("uat"in n)||"number"!=typeof n.uat||np()-n.uat>=300)&&"jwks"in n&&ne(n.jwks)&&Array.isArray(n.jwks.keys)&&Array.prototype.every.call(n.jwks.keys,ne)&&nj(e,t?.[r0].jwks,t?.[r0].uat),s?.has(e)){if({jwks:i,age:o}=s.get(e),o>=300)return nU(e,t?.[r0]),nL(e,t,r)}else i=await iw(e,t).then(ix),o=0,nj(e,i,np(),t?.[r0]);switch(c.slice(0,2)){case"RS":case"PS":a="RSA";break;case"ES":a="EC";break;case"Ed":a="OKP";break;default:throw new r5("unsupported JWS algorithm",{cause:{alg:c}})}let l=i.keys.filter(e=>{if(e.kty!==a||void 0!==u&&u!==e.kid||void 0!==e.alg&&c!==e.alg||void 0!==e.use&&"sig"!==e.use||e.key_ops?.includes("verify")===!1)return!1;switch(!0){case"ES256"===c&&"P-256"!==e.crv:case"ES384"===c&&"P-384"!==e.crv:case"ES512"===c&&"P-521"!==e.crv:case"Ed25519"===c&&"Ed25519"!==e.crv:case"EdDSA"===c&&"Ed25519"!==e.crv:return!1}return!0}),{0:d,length:f}=l;if(!f){if(o>=60)return nU(e,t?.[r0]),nL(e,t,r);throw r3("error when selecting a JWT verification key, no applicable keys found",ip,{header:r,candidates:l,jwks_uri:new URL(e.jwks_uri)})}if(1!==f)throw r3('error when selecting a JWT verification key, multiple applicable keys found, a "kid" JWT Header Parameter is required',ip,{header:r,candidates:l,jwks_uri:new URL(e.jwks_uri)});return ij(c,d)}let nM=Symbol();function nH(e){return e.headers.get("content-type")?.split(";")[0]}async function nB(e,t,r,n,i){let o;if(ny(e),nm(t),!rK(n,Response))throw rJ('"response" must be an instance of Response',rq);if(nJ(n),200!==n.status)throw r3('"response" is not a conform UserInfo Endpoint response (unexpected HTTP status code)',is,n);if(ig(n),"application/jwt"===nH(n)){let{claims:r,jwt:a}=await iA(await n.text(),iP.bind(void 0,t.userinfo_signed_response_alg,e.userinfo_signing_alg_values_supported,void 0),nf(t),nh(t),i?.[rZ]).then(nV.bind(void 0,t.client_id)).then(nX.bind(void 0,e));nK.set(n,a),o=r}else{if(t.userinfo_signed_response_alg)throw r3("JWT UserInfo Response expected",it,n);try{o=await n.json()}catch(e){throw ns(n),r3('failed to parse "response" body as JSON',ir,e)}}if(!ne(o))throw r3('"response" body must be a top level object',ii,{body:o});if(no(o.sub,'"response" body "sub" property',ii,{body:o}),r===nM);else if(no(r,'"expectedSubject"'),o.sub!==r)throw r3('unexpected "response" body "sub" property value',ih,{expected:r,body:o,attribute:"sub"});return o}async function nW(e,t,r,n,i,o,a){return await r(e,t,i,o),o.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),(a?.[rY]||fetch)(n.href,{body:i,headers:Object.fromEntries(o.entries()),method:"POST",redirect:"manual",signal:a?.signal?nr(a.signal):void 0})}async function n$(e,t,r,n,i,o){let a=nS(e,"token_endpoint",t.use_mtls_endpoint_aliases,o?.[rV]!==!0);i.set("grant_type",n);let s=nt(o?.headers);s.set("accept","application/json"),o?.DPoP!==void 0&&(nD(o.DPoP),await o.DPoP.addProof(a,s,"POST"));let c=await nW(e,t,r,a,i,s,o);return o?.DPoP?.cacheNonce(c),c}let nF=new WeakMap,nK=new WeakMap;function nz(e){if(!e.id_token)return;let t=nF.get(e);if(!t)throw rJ('"ref" was already garbage collected or did not resolve from the proper sources',rz);return t}async function nq(e,t,r,n,i){let o;if(ny(e),nm(t),!rK(r,Response))throw rJ('"response" must be an instance of Response',rq);nJ(r),await nC(r,200,"Token Endpoint"),ig(r);try{o=await r.json()}catch(e){throw ns(r),r3('failed to parse "response" body as JSON',ir,e)}if(!ne(o))throw r3('"response" body must be a top level object',ii,{body:o});if(no(o.access_token,'"response" body "access_token" property',ii,{body:o}),no(o.token_type,'"response" body "token_type" property',ii,{body:o}),o.token_type=o.token_type.toLowerCase(),"dpop"!==o.token_type&&"bearer"!==o.token_type)throw new r5("unsupported `token_type` value",{cause:{body:o}});if(void 0!==o.expires_in){let e="number"!=typeof o.expires_in?parseFloat(o.expires_in):o.expires_in;ni(e,!1,'"response" body "expires_in" property',ii,{body:o}),o.expires_in=e}if(void 0!==o.refresh_token&&no(o.refresh_token,'"response" body "refresh_token" property',ii,{body:o}),void 0!==o.scope&&"string"!=typeof o.scope)throw r3('"response" body "scope" property must be a string',ii,{body:o});if(void 0!==o.id_token){no(o.id_token,'"response" body "id_token" property',ii,{body:o});let a=["aud","exp","iat","iss","sub"];!0===t.require_auth_time&&a.push("auth_time"),void 0!==t.default_max_age&&(ni(t.default_max_age,!1,'"client.default_max_age"'),a.push("auth_time")),n?.length&&a.push(...n);let{claims:s,jwt:c}=await iA(o.id_token,iP.bind(void 0,t.id_token_signed_response_alg,e.id_token_signing_alg_values_supported,"RS256"),nf(t),nh(t),i?.[rZ]).then(n1.bind(void 0,a)).then(nY.bind(void 0,e)).then(nG.bind(void 0,t.client_id));if(Array.isArray(s.aud)&&1!==s.aud.length){if(void 0===s.azp)throw r3('ID Token "aud" (audience) claim includes additional untrusted audiences',id,{claims:s,claim:"aud"});if(s.azp!==t.client_id)throw r3('unexpected ID Token "azp" (authorized party) claim value',id,{expected:t.client_id,claims:s,claim:"azp"})}void 0!==s.auth_time&&ni(s.auth_time,!1,'ID Token "auth_time" (authentication time)',ii,{claims:s}),nK.set(r,c),nF.set(o,s)}return o}function nJ(e){let t;if(t=function(e){if(!rK(e,Response))throw rJ('"response" must be an instance of Response',rq);let t=e.headers.get("www-authenticate");if(null===t)return;let r=[];for(let{1:e,index:n}of t.matchAll(nO))r.push([e,n]);if(r.length)return r.map(([e,r],n,i)=>{let o,a=i[n+1];return function(e,t){let r=t.split(nR).slice(1);if(!r.length)return{scheme:e.toLowerCase(),parameters:{}};r[r.length-1]=r[r.length-1].replace(/,$/,"");let n={};for(let e=1;e<r.length;e+=2){var i;let t=e;if('"'===r[t][0])for(;'"'!==r[t].slice(-1)&&++e<r.length;)r[t]+=r[e];n[r[t-1].replace(/^(?:, ?)|=$/g,"").toLowerCase()]=(i=r[t]).length>=2&&'"'===i[0]&&'"'===i[i.length-1]?i.slice(1,-1):i}return{scheme:e.toLowerCase(),parameters:n}}(e,a?t.slice(r,a[1]):t.slice(r))})}(e))throw new nk("server responded with a challenge in the WWW-Authenticate HTTP Header",{cause:t,response:e})}function nV(e,t){return void 0!==t.claims.aud?nG(e,t):t}function nG(e,t){if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e))throw r3('unexpected JWT "aud" (audience) claim value',id,{expected:e,claims:t.claims,claim:"aud"})}else if(t.claims.aud!==e)throw r3('unexpected JWT "aud" (audience) claim value',id,{expected:e,claims:t.claims,claim:"aud"});return t}function nX(e,t){return void 0!==t.claims.iss?nY(e,t):t}function nY(e,t){let r=e[iH]?.(t)??e.issuer;if(t.claims.iss!==r)throw r3('unexpected JWT "iss" (issuer) claim value',id,{expected:r,claims:t.claims,claim:"iss"});return t}let nQ=new WeakSet;async function nZ(e,t,r,n,i,o,a){if(ny(e),nm(t),!nQ.has(n))throw rJ('"callbackParameters" must be an instance of URLSearchParams obtained from "validateAuthResponse()", or "validateJwtAuthResponse()',rz);no(i,'"redirectUri"');let s=iC(n,"code");if(!s)throw r3('no authorization code in "callbackParameters"',ii);let c=new URLSearchParams(a?.additionalParameters);
379return c.set("redirect_uri",i),c.set("code",s),o!==iL&&(no(o,'"codeVerifier"'),c.set("code_verifier",o)),n$(e,t,r,"authorization_code",c,a)}let n0={aud:"audience",c_hash:"code hash",client_id:"client id",exp:"expiration time",iat:"issued at",iss:"issuer",jti:"jwt id",nonce:"nonce",s_hash:"state hash",sub:"subject",ath:"access token hash",htm:"http method",htu:"http uri",cnf:"confirmation",auth_time:"authentication time"};function n1(e,t){for(let r of e)if(void 0===t.claims[r])throw r3(`JWT "${r}" (${n0[r]}) claim missing`,ii,{claims:t.claims});return t}let n2=Symbol(),n8=Symbol();async function n4(e,t,r,n){return"string"==typeof n?.expectedNonce||"number"==typeof n?.maxAge||n?.requireIdToken?n5(e,t,r,n.expectedNonce,n.maxAge,{[rZ]:n[rZ]}):n6(e,t,r,n)}async function n5(e,t,r,n,i,o){let a=[];switch(n){case void 0:n=n2;break;case n2:break;default:no(n,'"expectedNonce" argument'),a.push("nonce")}switch(i??=t.default_max_age){case void 0:i=n8;break;case n8:break;default:ni(i,!1,'"maxAge" argument'),a.push("auth_time")}let s=await nq(e,t,r,a,o);no(s.id_token,'"response" body "id_token" property',ii,{body:s});let c=nz(s);if(i!==n8){let e=np()+nf(t),r=nh(t);if(c.auth_time+i<e-r)throw r3("too much time has elapsed since the last End-User authentication",il,{claims:c,now:e,tolerance:r,claim:"auth_time"})}if(n===n2){if(void 0!==c.nonce)throw r3('unexpected ID Token "nonce" claim value',id,{expected:void 0,claims:c,claim:"nonce"})}else if(c.nonce!==n)throw r3('unexpected ID Token "nonce" claim value',id,{expected:n,claims:c,claim:"nonce"});return s}async function n6(e,t,r,n){let i=await nq(e,t,r,void 0,n),o=nz(i);if(o){if(void 0!==t.default_max_age){ni(t.default_max_age,!1,'"client.default_max_age"');let e=np()+nf(t),r=nh(t);if(o.auth_time+t.default_max_age<e-r)throw r3("too much time has elapsed since the last End-User authentication",il,{claims:o,now:e,tolerance:r,claim:"auth_time"})}if(void 0!==o.nonce)throw r3('unexpected ID Token "nonce" claim value',id,{expected:void 0,claims:o,claim:"nonce"})}return i}let n3="OAUTH_WWW_AUTHENTICATE_CHALLENGE",n9="OAUTH_RESPONSE_BODY_ERROR",n7="OAUTH_UNSUPPORTED_OPERATION",ie="OAUTH_AUTHORIZATION_RESPONSE_ERROR",it="OAUTH_JWT_USERINFO_EXPECTED",ir="OAUTH_PARSE_ERROR",ii="OAUTH_INVALID_RESPONSE",io="OAUTH_INVALID_REQUEST",ia="OAUTH_RESPONSE_IS_NOT_JSON",is="OAUTH_RESPONSE_IS_NOT_CONFORM",ic="OAUTH_HTTP_REQUEST_FORBIDDEN",iu="OAUTH_REQUEST_PROTOCOL_FORBIDDEN",il="OAUTH_JWT_TIMESTAMP_CHECK_FAILED",id="OAUTH_JWT_CLAIM_COMPARISON_FAILED",ih="OAUTH_JSON_ATTRIBUTE_COMPARISON_FAILED",ip="OAUTH_KEY_SELECTION_FAILED",iy="OAUTH_MISSING_SERVER_METADATA",im="OAUTH_INVALID_SERVER_METADATA";function ib(e,t){if("string"!=typeof t.header.typ||t.header.typ.toLowerCase().replace(/^application\//,"")!==e)throw r3('unexpected JWT "typ" header parameter value',ii,{header:t.header});return t}function ig(e){if(e.bodyUsed)throw rJ('"response" body has been used already',rz)}async function iw(e,t){ny(e);let r=nS(e,"jwks_uri",!1,t?.[rV]!==!0),n=nt(t?.headers);return n.set("accept","application/json"),n.append("accept","application/jwk-set+json"),(t?.[rY]||fetch)(r.href,{body:void 0,headers:Object.fromEntries(n.entries()),method:"GET",redirect:"manual",signal:t?.signal?nr(t.signal):void 0})}async function ix(e){let t;if(!rK(e,Response))throw rJ('"response" must be an instance of Response',rq);if(200!==e.status)throw r3('"response" is not a conform JSON Web Key Set response (unexpected HTTP status code)',is,e);
379ig(e);try{t=await e.json()}catch(t){throw!function(e,...t){if(!t.includes(nH(e)))throw nc(e,...t)}(e,"application/json","application/jwk-set+json"),r3('failed to parse "response" body as JSON',ir,t)}if(!ne(t))throw r3('"response" body must be a top level object',ii,{body:t});if(!Array.isArray(t.keys))throw r3('"response" body "keys" property must be an array',ii,{body:t});if(!Array.prototype.every.call(t.keys,ne))throw r3('"response" body "keys" property members must be JWK formatted objects',ii,{body:t});return t}function iv(e){switch(e){case"PS256":case"ES256":case"RS256":case"PS384":case"ES384":case"RS384":case"PS512":case"ES512":case"RS512":case"Ed25519":case"EdDSA":return!0;default:return!1}}function i_(e){let{algorithm:t}=e;if("number"!=typeof t.modulusLength||t.modulusLength<2048)throw new r5(`unsupported ${t.name} modulusLength`,{cause:e})}function iE(e){switch(e.algorithm.name){case"ECDSA":return{name:e.algorithm.name,hash:function(e){let{algorithm:t}=e;switch(t.namedCurve){case"P-256":return"SHA-256";case"P-384":return"SHA-384";case"P-521":return"SHA-512";default:throw new r5("unsupported ECDSA namedCurve",{cause:e})}}(e)};case"RSA-PSS":switch(i_(e),e.algorithm.hash.name){case"SHA-256":case"SHA-384":case"SHA-512":return{name:e.algorithm.name,saltLength:parseInt(e.algorithm.hash.name.slice(-3),10)>>3};default:throw new r5("unsupported RSA-PSS hash name",{cause:e})}case"RSASSA-PKCS1-v1_5":return i_(e),e.algorithm.name;
379case"Ed25519":case"EdDSA":return e.algorithm.name}throw new r5("unsupported CryptoKey algorithm name",{cause:e})}async function iS(e,t,r,n){let i=r8(`${e}.${t}`),o=iE(r);if(!await crypto.subtle.verify(o,r,n,i))throw r3("JWT signature verification failed",ii,{key:r,data:i,signature:n,algorithm:o})}async function iA(e,t,r,n,i){let o,a,{0:s,1:c,length:u}=e.split(".");if(5===u)if(void 0!==i)e=await i(e),{0:s,1:c,length:u}=e.split(".");else throw new r5("JWE decryption is not configured",{cause:e});if(3!==u)throw r3("Invalid JWT",ii,e);try{o=JSON.parse(r8(r4(s)))}catch(e){throw r3("failed to parse JWT Header body as base64url encoded JSON",ir,e)}if(!ne(o))throw r3("JWT Header must be a top level object",ii,e);if(t(o),void 0!==o.crit)throw new r5('no JWT "crit" header parameter extensions are supported',{cause:{header:o}});try{a=JSON.parse(r8(r4(c)))}catch(e){throw r3("failed to parse JWT Payload body as base64url encoded JSON",ir,e)}if(!ne(a))throw r3("JWT Payload must be a top level object",ii,e);let l=np()+r;if(void 0!==a.exp){if("number"!=typeof a.exp)throw r3('unexpected JWT "exp" (expiration time) claim type',ii,{claims:a});if(a.exp<=l-n)throw r3('unexpected JWT "exp" (expiration time) claim value, expiration is past current timestamp',il,{claims:a,now:l,tolerance:n,claim:"exp"})}if(void 0!==a.iat&&"number"!=typeof a.iat)throw r3('unexpected JWT "iat" (issued at) claim type',ii,{claims:a});if(void 0!==a.iss&&"string"!=typeof a.iss)throw r3('unexpected JWT "iss" (issuer) claim type',ii,{claims:a});if(void 0!==a.nbf){if("number"!=typeof a.nbf)throw r3('unexpected JWT "nbf" (not before) claim type',ii,{claims:a});if(a.nbf>l+n)throw r3('unexpected JWT "nbf" (not before) claim value',il,{claims:a,now:l,tolerance:n,claim:"nbf"})}if(void 0!==a.aud&&"string"!=typeof a.aud&&!Array.isArray(a.aud))throw r3('unexpected JWT "aud" (audience) claim type',ii,{claims:a});return{header:o,claims:a,jwt:e}}async function iT(e,t,r){let n;switch(t.alg){case"RS256":case"PS256":case"ES256":n="SHA-256";break;case"RS384":case"PS384":case"ES384":n="SHA-384";break;
379case"RS512":case"PS512":case"ES512":case"Ed25519":case"EdDSA":n="SHA-512";break;default:throw new r5(`unsupported JWS algorithm for ${r} calculation`,{cause:{alg:t.alg}})}let i=await crypto.subtle.digest(n,r8(e));return r4(i.slice(0,i.byteLength/2))}async function ik(e,t,r,n){return t===await iT(e,r,n)}async function iR(e){if(e.bodyUsed)throw rJ("form_post Request instances must contain a readable body",rz,{cause:e});return e.text()}async function iO(e){if("POST"!==e.method)throw rJ("form_post responses are expected to use the POST method",rz,{cause:e});if("application/x-www-form-urlencoded"!==nH(e))throw rJ("form_post responses are expected to use the application/x-www-form-urlencoded content-type",rz,{cause:e});return iR(e)}function iP(e,t,r,n){if(void 0!==e){if("string"==typeof e?n.alg!==e:!e.includes(n.alg))throw r3('unexpected JWT "alg" header parameter',ii,{header:n,expected:e,reason:"client configuration"});return}if(Array.isArray(t)){if(!t.includes(n.alg))throw r3('unexpected JWT "alg" header parameter',ii,{header:n,expected:t,reason:"authorization server metadata"});return}if(void 0!==r){if("string"==typeof r?n.alg!==r:"function"==typeof r?!r(n.alg):!r.includes(n.alg))throw r3('unexpected JWT "alg" header parameter',ii,{header:n,expected:r,reason:"default value"});return}throw r3('missing client or server configuration to verify used JWT "alg" header parameter',void 0,{client:e,issuer:t,fallback:r})}function iC(e,t){let{0:r,length:n}=e.getAll(t);if(n>1)throw r3(`"${t}" parameter must be provided only once`,ii);return r}let iD=Symbol(),iI=Symbol();function iN(e,t,r,n){var i;if(ny(e),nm(t),r instanceof URL&&(r=r.searchParams),!(r instanceof URLSearchParams))throw rJ('"parameters" must be an instance of URLSearchParams, or URL',rq);if(iC(r,"response"))throw r3('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()',ii,{parameters:r});let o=iC(r,"iss"),a=iC(r,"state");if(!o&&e.authorization_response_iss_parameter_supported)throw r3('response parameter "iss" (issuer) missing',ii,{parameters:r});if(o&&o!==e.issuer)throw r3('unexpected "iss" (issuer) response parameter value',ii,{expected:e.issuer,parameters:r});switch(n){case void 0:case iI:if(void 0!==a)throw r3('unexpected "state" response parameter encountered',ii,{expected:void 0,parameters:r});break;case iD:break;default:if(no(n,'"expectedState" argument'),a!==n)throw r3(void 0===a?'response parameter "state" missing':'unexpected "state" response parameter value',ii,{expected:n,parameters:r})}if(iC(r,"error"))throw new nT("authorization response from the server is an error",{cause:r});let s=iC(r,"id_token"),c=iC(r,"token");if(void 0!==s||void 0!==c)throw new r5("implicit and hybrid flows are not supported");return i=new URLSearchParams(r),nQ.add(i),i}async function ij(e,t){let{ext:r,key_ops:n,use:i,...o}=t;return crypto.subtle.importKey("jwk",o,function(e){switch(e){case"PS256":case"PS384":case"PS512":return{name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`};case"RS256":case"RS384":case"RS512":return{name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`};case"ES256":case"ES384":return{name:"ECDSA",namedCurve:`P-${e.slice(-3)}`};case"ES512":return{name:"ECDSA",namedCurve:"P-521"};
379case"Ed25519":case"EdDSA":return"Ed25519";default:throw new r5("unsupported JWS algorithm",{cause:{alg:e}})}}(e),!0,["verify"])}function iU(e){let t=new URL(e);return t.search="",t.hash="",t.href}let iL=Symbol(),iM=Symbol(),iH=Symbol();async function iB(e,t,r){let{cookies:n,logger:i}=r,o=n[e],a=new Date;a.setTime(a.getTime()+9e5),i.debug(`CREATE_${e.toUpperCase()}`,{name:o.name,payload:t,COOKIE_TTL:900,expires:a});let s=await tb({...r.jwt,maxAge:900,token:{value:t},salt:o.name}),c={...o.options,expires:a};return{name:o.name,value:s,options:c}}async function iW(e,t,r){try{let{logger:n,cookies:i,jwt:o}=r;if(n.debug(`PARSE_${e.toUpperCase()}`,{cookie:t}),!t)throw new f.k9(`${e} cookie was missing`);let a=await tg({...o,token:t,salt:i[e].name});if(a?.value)return a.value;throw Error("Invalid cookie")}catch(t){throw new f.k9(`${e} value could not be parsed`,{cause:t})}}function i$(e,t,r){let{logger:n,cookies:i}=t,o=i[e];n.debug(`CLEAR_${e.toUpperCase()}`,{cookie:o}),r.push({name:o.name,value:"",options:{...i[e].options,maxAge:0}})}function iF(e,t){return async function(r,n,i){let{provider:o,logger:a}=i;if(!o?.checks?.includes(e))return;let s=r?.[i.cookies[t].name];a.debug(`USE_${t.toUpperCase()}`,{value:s});let c=await iW(t,s,i);return i$(t,i,n),c}}let iK={async create(e){let t=nu(),r=await nl(t);return{cookie:await iB("pkceCodeVerifier",t,e),value:r}},use:iF("pkce","pkceCodeVerifier")},iz="encodedState",iq={async create(e,t){let{provider:r}=e;if(!r.checks.includes("state")){if(t)throw new f.k9("State data was provided but the provider is not configured to use state");return}let n={origin:t,random:nu()},i=await tb({secret:e.jwt.secret,token:n,salt:iz,maxAge:900});return{cookie:await iB("state",i,e),value:i}},use:iF("state","state"),async decode(e,t){try{t.logger.debug("DECODE_STATE",{state:e});let r=await tg({secret:t.jwt.secret,token:e,salt:iz});if(r)return r;throw Error("Invalid state")}catch(e){throw new f.k9("State could not be decoded",{cause:e})}}},iJ={async create(e){if(!e.provider.checks.includes("nonce"))return;let t=nu();return{cookie:await iB("nonce",t,e),value:t}},use:iF("nonce","nonce")},iV="encodedWebauthnChallenge",iG={create:async(e,t,r)=>({cookie:await iB("webauthnChallenge",await tb({secret:e.jwt.secret,token:{challenge:t,registerData:r},salt:iV,maxAge:900}),e)}),async use(e,t,r){let n=t?.[e.cookies.webauthnChallenge.name],i=await iW("webauthnChallenge",n,e),o=await tg({secret:e.jwt.secret,token:i,salt:iV});if(i$("webauthnChallenge",e,r),!o)throw new f.k9("WebAuthn challenge was missing");return o}};function iX(e){return encodeURIComponent(e).replace(/%20/g,"+")}async function iY(e,t,r){let n,i,o,{logger:a,provider:s}=r,{token:c,userinfo:u}=s;if(c?.url&&"authjs.dev"!==c.url.host||u?.url&&"authjs.dev"!==u.url.host)n={issuer:s.issuer??"https://authjs.dev",token_endpoint:c?.url.toString(),userinfo_endpoint:u?.url.toString()};else{let e=new URL(s.issuer),t=await nn(e,{[rV]:!0,[rY]:s[tL]});if(!(n=await na(e,t)).token_endpoint)throw TypeError("TODO: Authorization server did not provide a token endpoint.");if(!n.userinfo_endpoint)throw TypeError("TODO: Authorization server did not provide a userinfo endpoint.")}let l={client_id:s.clientId,...s.client};switch(l.token_endpoint_auth_method){case void 0:case"client_secret_basic":i=(e,t,r,n)=>{n.set("authorization",function(e,t){let r=iX(e),n=iX(t),i=btoa(`${r}:${n}`);return`Basic ${i}`}(s.clientId,s.clientSecret))};break;case"client_secret_post":var d;no(d=s.clientSecret,'"clientSecret"'),i=(e,t,r,n)=>{r.set("client_id",t.client_id),r.set("client_secret",d)};break;case"client_secret_jwt":i=function(e,t){let r;no(e,'"clientSecret"');let n=void 0;return async(t,i,o,a)=>{r||=await crypto.subtle.importKey("raw",r8(e),{hash:"SHA-256",name:"HMAC"},!1,["sign"]);let s={alg:"HS256"},c=nb(t,i);n?.(s,c);let u=`${r4(r8(JSON.stringify(s)))}.${r4(r8(JSON.stringify(c)))}`,l=await crypto.subtle.sign(r.algorithm,r,r8(u));o.set("client_id",i.client_id),o.set("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),o.set("client_assertion",`${u}.${r4(new Uint8Array(l))}`)}}(s.clientSecret);break;case"private_key_jwt":i=function(e,t){var r;let{key:n,kid:i}=(r=e)instanceof CryptoKey?{key:r}:r?.key instanceof CryptoKey?(void 0!==r.kid&&no(r.kid,'"kid"'),{key:r.key,kid:r.kid}):{};return r7(n,'"clientPrivateKey.key"'),async(e,r,o,a)=>{let s={alg:nd(n),kid:i},c=nb(e,r);t?.[rQ]?.(s,c),o.set("client_id",r.client_id),o.set("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),o.set("client_assertion",await ng(s,c,n))}}(s.token.clientPrivateKey,{[rQ](e,t){t.aud=[n.issuer,n.token_endpoint]}});break;case"none":i=(e,t,r,n)=>{r.set("client_id",t.client_id)};break;default:throw Error("unsupported client authentication method")}let h=[],p=await iq.use(t,h,r);try{o=iN(n,l,new URLSearchParams(e),s.checks.includes("state")?p:iD)}catch(e){if(e instanceof nT){let t={providerId:s.id,...Object.fromEntries(e.cause.entries())};throw a.debug("OAuthCallbackError",t),new f.rk("OAuth Provider returned an error",t)}throw e}let y=await iK.use(t,h,r),m=s.callbackUrl;!r.isOnRedirectProxy&&s.redirectProxyUrl&&(m=s.redirectProxyUrl);let b=await nZ(n,l,i,o,m,y??"decoy",{[rV]:!0,[rY]:(...e)=>(s.checks.includes("pkce")||e[1].body.delete("code_verifier"),(s[tL]??fetch)(...e))});s.token?.conform&&(b=await s.token.conform(b.clone())??b);let g={},w="oidc"===s.type;if(s[tM])switch(s.id){case"microsoft-entra-id":case"azure-ad":{let{tid:e}=function(e){let t,r;if("string"!=typeof e)throw new V("JWTs must use Compact JWS serialization, JWT must be a string");let{1:n,length:i}=e.split(".");
379if(5===i)throw new V("Only JWTs using Compact JWS serialization can be decoded");if(3!==i)throw new V("Invalid JWT");if(!n)throw new V("JWTs must contain a payload");try{t=H(n)}catch{throw new V("Failed to base64url decode the payload")}try{r=JSON.parse(O.decode(t))}catch{throw new V("Failed to parse the decoded payload as JSON")}if(!et(r))throw new V("Invalid JWT Claims Set");return r}((await b.clone().json()).id_token);if("string"==typeof e){let t=n.issuer?.match(/microsoftonline\.com\/(\w+)\/v2\.0/)?.[1]??"common",r=new URL(n.issuer.replace(t,e)),i=await nn(r,{[rY]:s[tL]});n=await na(r,i)}}}let x=await n4(n,l,b,{expectedNonce:await iJ.use(t,h,r),requireIdToken:w});if(w){let t=nz(x);if(g=t,s[tM]&&"apple"===s.id)try{g.user=JSON.parse(e?.user)}catch{}if(!1===s.idToken){let e=await nN(n,l,x.access_token,{[rY]:s[tL],[rV]:!0});g=await nB(n,l,t.sub,e)}}else if(u?.request){let e=await u.request({tokens:x,provider:s});e instanceof Object&&(g=e)}else if(u?.url){let e=await nN(n,l,x.access_token,{[rY]:s[tL]});g=await e.json()}else throw TypeError("No userinfo endpoint configured");return x.expires_in&&(x.expires_at=Math.floor(Date.now()/1e3)+Number(x.expires_in)),{...await iQ(g,s,x,a),profile:g,cookies:h}}async function iQ(e,t,r,n){try{let n=await t.profile(e,r);return{user:{...n,id:crypto.randomUUID(),email:n.email?.toLowerCase()},account:{...r,provider:t.id,type:t.type,providerAccountId:n.id??crypto.randomUUID()}}}catch(r){n.debug("getProfile error details",e),n.error(new f._z(r,{provider:t.id}))}}var iZ=r(49641).Buffer;async function i0(e,t,r,n){let i=await i5(e,t,r),{cookie:o}=await iG.create(e,i.challenge,r);return{status:200,cookies:[...n??[],o],body:{action:"register",options:i},headers:{"Content-Type":"application/json"}}}async function i1(e,t,r,n){let i=await i4(e,t,r),{cookie:o}=await iG.create(e,i.challenge);return{status:200,cookies:[...n??[],o],body:{action:"authenticate",options:i},headers:{"Content-Type":"application/json"}}}async function i2(e,t,r){let n,{adapter:i,provider:o}=e,a=t.body&&"string"==typeof t.body.data?JSON.parse(t.body.data):void 0;if(!a||"object"!=typeof a||!("id"in a)||"string"!=typeof a.id)throw new f.lR("Invalid WebAuthn Authentication response");let s=i9(i3(a.id)),c=await i.getAuthenticator(s);if(!c)throw new f.lR(`WebAuthn authenticator not found in database: ${JSON.stringify({credentialID:s})}`);let{challenge:u}=await iG.use(e,t.cookies,r);try{var l;let r=o.getRelayingParty(e,t);n=await o.simpleWebAuthn.verifyAuthenticationResponse({...o.verifyAuthenticationOptions,expectedChallenge:u,response:a,authenticator:{...l=c,credentialDeviceType:l.credentialDeviceType,transports:i7(l.transports),credentialID:i3(l.credentialID),credentialPublicKey:i3(l.credentialPublicKey)},expectedOrigin:r.origin,expectedRPID:r.id})}catch(e){throw new f.w2(e)}let{verified:d,authenticationInfo:h}=n;if(!d)throw new f.w2("WebAuthn authentication response could not be verified");try{let{newCounter:e}=h;await i.updateAuthenticatorCounter(c.credentialID,e)}catch(e){throw new f.om(`Failed to update authenticator counter. This may cause future authentication attempts to fail. ${JSON.stringify({credentialID:s,oldCounter:c.counter,newCounter:h.newCounter})}`,e)}let p=await i.getAccount(c.providerAccountId,o.id);if(!p)throw new f.lR(`WebAuthn account not found in database: ${JSON.stringify({credentialID:s,providerAccountId:c.providerAccountId})}`);let y=await i.getUser(p.userId);if(!y)throw new f.lR(`WebAuthn user not found in database: ${JSON.stringify({credentialID:s,providerAccountId:c.providerAccountId,userID:p.userId})}`);return{account:p,user:y}}async function i8(e,t,r){var n;let i,{provider:o}=e,a=t.body&&"string"==typeof t.body.data?JSON.parse(t.body.data):void 0;if(!a||"object"!=typeof a||!("id"in a)||"string"!=typeof a.id)throw new f.lR("Invalid WebAuthn Registration response");let{challenge:s,registerData:c}=await iG.use(e,t.cookies,r);if(!c)throw new f.lR("Missing user registration data in WebAuthn challenge cookie");try{let r=o.getRelayingParty(e,t);i=await o.simpleWebAuthn.verifyRegistrationResponse({...o.verifyRegistrationOptions,expectedChallenge:s,response:a,expectedOrigin:r.origin,expectedRPID:r.id})}catch(e){throw new f.w2(e)}if(!i.verified||!i.registrationInfo)throw new f.w2("WebAuthn registration response could not be verified");let u={providerAccountId:i9(i.registrationInfo.credentialID),provider:e.provider.id,type:o.type},l={providerAccountId:u.providerAccountId,counter:i.registrationInfo.counter,credentialID:i9(i.registrationInfo.credentialID),credentialPublicKey:i9(i.registrationInfo.credentialPublicKey),credentialBackedUp:i.registrationInfo.credentialBackedUp,credentialDeviceType:i.registrationInfo.credentialDeviceType,transports:(n=a.response.transports,n?.join(","))};return{user:c,account:u,authenticator:l}}async function i4(e,t,r){let{provider:n,adapter:i}=e,o=r&&r.id?await i.listAuthenticatorsByUserId(r.id):null,a=n.getRelayingParty(e,t);return await n.simpleWebAuthn.generateAuthenticationOptions({...n.authenticationOptions,rpID:a.id,allowCredentials:o?.map(e=>({id:i3(e.credentialID),type:"public-key",transports:i7(e.transports)}))})}async function i5(e,t,r){let{provider:n,adapter:i}=e,o=r.id?await i.listAuthenticatorsByUserId(r.id):null,a=tP(32),s=n.getRelayingParty(e,t);return await n.simpleWebAuthn.generateRegistrationOptions({...n.registrationOptions,userID:a,userName:r.email,userDisplayName:r.name??void 0,rpID:s.id,rpName:s.name,excludeCredentials:o?.map(e=>({id:i3(e.credentialID),type:"public-key",transports:i7(e.transports)}))})}function i6(e){let{provider:t,adapter:r}=e;if(!r)throw new f.OZ("An adapter is required for the WebAuthn provider");if(!t||"webauthn"!==t.type)throw new f.Hj("Provider must be WebAuthn");return{...e,provider:t,adapter:r}}function i3(e){return new Uint8Array(iZ.from(e,"base64"))}function i9(e){return iZ.from(e).toString("base64")}function i7(e){return e?e.split(","):void 0}async function oe(e,t,r,n){if(!t.provider)throw new f.Hj("Callback route called without provider");let{query:i,body:o,method:a,headers:s}=e,{provider:c,adapter:u,url:l,callbackUrl:d,pages:h,jwt:p,events:y,callbacks:m,session:{strategy:b,maxAge:g},logger:w}=t,x="jwt"===b;try{if("oauth"===c.type||"oidc"===c.type){let a,s=c.authorization?.url.searchParams.get("response_mode")==="form_post"?o:i;if(t.isOnRedirectProxy&&s?.state){let e=await iq.decode(s.state,t);if(e?.origin&&new URL(e.origin).origin!==t.url.origin){let t=`${e.origin}?${new URLSearchParams(s)}`;return w.debug("Proxy redirecting to",t),{redirect:t,cookies:n}}}
379let f=await iY(s,e.cookies,t);f.cookies.length&&n.push(...f.cookies),w.debug("authorization result",f);let{user:b,account:v,profile:_}=f;if(!b||!v||!_)return{redirect:`${l}/signin`,cookies:n};if(u){let{getUserByAccount:e}=u;a=await e({providerAccountId:v.providerAccountId,provider:c.id})}let E=await ot({user:a??b,account:v,profile:_},t);if(E)return{redirect:E,cookies:n};let{user:S,session:A,isNewUser:T}=await rF(r.value,b,v,t);if(x){let e={name:S.name,email:S.email,picture:S.image,sub:S.id?.toString()},i=await m.jwt({token:e,user:S,account:v,profile:_,isNewUser:T,trigger:T?"signUp":"signIn"});if(null===i)n.push(...r.clean());else{let e=t.cookies.sessionToken.name,o=await p.encode({...p,token:i,salt:e}),a=new Date;a.setTime(a.getTime()+1e3*g);let s=r.chunk(o,{expires:a});n.push(...s)}}else n.push({name:t.cookies.sessionToken.name,value:A.sessionToken,options:{...t.cookies.sessionToken.options,expires:A.expires}});if(await y.signIn?.({user:S,account:v,profile:_,isNewUser:T}),T&&h.newUser)return{redirect:`${h.newUser}${h.newUser.includes("?")?"&":"?"}${new URLSearchParams({callbackUrl:d})}`,cookies:n};return{redirect:d,cookies:n}}if("email"===c.type){let e=i?.token,o=i?.email;if(!e){let t=TypeError("Missing token. The sign-in URL was manually opened without token or the link was not sent correctly in the email.",{cause:{hasToken:!!e}});throw t.name="Configuration",t}let a=c.secret??t.secret,s=await u.useVerificationToken({identifier:o,token:await tO(`${e}${a}`)}),l=!!s,b=l&&s.expires.valueOf()<Date.now();if(!l||b||o&&s.identifier!==o)throw new f.o6({hasInvite:l,expired:b});let{identifier:w}=s,v=await u.getUserByEmail(w)??{id:crypto.randomUUID(),email:w,emailVerified:null},_={providerAccountId:v.email,userId:v.id,type:"email",provider:c.id},E=await ot({user:v,account:_},t);if(E)return{redirect:E,cookies:n};let{user:S,session:A,isNewUser:T}=await rF(r.value,v,_,t);if(x){let e={name:S.name,email:S.email,picture:S.image,sub:S.id?.toString()},i=await m.jwt({token:e,user:S,account:_,isNewUser:T,trigger:T?"signUp":"signIn"});if(null===i)n.push(...r.clean());else{let e=t.cookies.sessionToken.name,o=await p.encode({...p,token:i,salt:e}),a=new Date;a.setTime(a.getTime()+1e3*g);let s=r.chunk(o,{expires:a});n.push(...s)}}else n.push({name:t.cookies.sessionToken.name,value:A.sessionToken,options:{...t.cookies.sessionToken.options,expires:A.expires}});if(await y.signIn?.({user:S,account:_,isNewUser:T}),T&&h.newUser)return{redirect:`${h.newUser}${h.newUser.includes("?")?"&":"?"}${new URLSearchParams({callbackUrl:d})}`,cookies:n};return{redirect:d,cookies:n}}if("credentials"===c.type&&"POST"===a){let e=o??{};Object.entries(i??{}).forEach(([e,t])=>l.searchParams.set(e,t));let u=await c.authorize(e,new Request(l,{headers:s,method:a,body:JSON.stringify(o)}));if(u)u.id=u.id?.toString()??crypto.randomUUID();else throw new f.xz;let h={providerAccountId:u.id,type:"credentials",provider:c.id},b=await ot({user:u,account:h,credentials:e},t);if(b)return{redirect:b,cookies:n};let w={name:u.name,email:u.email,picture:u.image,sub:u.id},x=await m.jwt({token:w,user:u,account:h,isNewUser:!1,trigger:"signIn"});if(null===x)n.push(...r.clean());else{let e=t.cookies.sessionToken.name,i=await p.encode({...p,token:x,salt:e}),o=new Date;o.setTime(o.getTime()+1e3*g);let a=r.chunk(i,{expires:o});n.push(...a)}return await y.signIn?.({user:u,account:h}),{redirect:d,cookies:n}}else if("webauthn"===c.type&&"POST"===a){let i,o,a,s=e.body?.action;if("string"!=typeof s||"authenticate"!==s&&"register"!==s)throw new f.lR("Invalid action parameter");let c=i6(t);switch(s){case"authenticate":{let t=await i2(c,e,n);i=t.user,o=t.account;break}case"register":{let r=await i8(t,e,n);i=r.user,o=r.account,a=r.authenticator}}await ot({user:i,account:o},t);let{user:u,isNewUser:l,session:b,account:w}=await rF(r.value,i,o,t);if(!w)throw new f.lR("Error creating or finding account");if(a&&u.id&&await c.adapter.createAuthenticator({...a,userId:u.id}),x){let e={name:u.name,email:u.email,picture:u.image,sub:u.id?.toString()},i=await m.jwt({token:e,user:u,account:w,isNewUser:l,trigger:l?"signUp":"signIn"});if(null===i)n.push(...r.clean());else{let e=t.cookies.sessionToken.name,o=await p.encode({...p,token:i,salt:e}),a=new Date;a.setTime(a.getTime()+1e3*g);let s=r.chunk(o,{expires:a});n.push(...s)}}else n.push({name:t.cookies.sessionToken.name,value:b.sessionToken,options:{...t.cookies.sessionToken.options,expires:b.expires}});if(await y.signIn?.({user:u,account:w,isNewUser:l}),l&&h.newUser)return{redirect:`${h.newUser}${h.newUser.includes("?")?"&":"?"}${new URLSearchParams({callbackUrl:d})}`,cookies:n};return{redirect:d,cookies:n}}throw new f.Hj(`Callback for provider type (${c.type}) is not supported`)}catch(t){if(t instanceof f.lR)throw t;
379let e=new f.t3(t,{provider:c.id});throw w.debug("callback route error details",{method:a,query:i,body:o}),e}}async function ot(e,t){let r,{signIn:n,redirect:i}=t.callbacks;try{r=await n(e)}catch(e){if(e instanceof f.lR)throw e;throw new f.Oy(e)}if(!r)throw new f.Oy("AccessDenied");if("string"==typeof r)return await i({url:r,baseUrl:t.url.origin})}async function or(e,t,r,n,i){let{adapter:o,jwt:a,events:s,callbacks:c,logger:u,session:{strategy:l,maxAge:d}}=e,h={body:null,headers:{"Content-Type":"application/json"},cookies:r},p=t.value;if(!p)return h;if("jwt"===l){try{let r=e.cookies.sessionToken.name,o=await a.decode({...a,token:p,salt:r});if(!o)throw Error("Invalid JWT");let u=await c.jwt({token:o,...n&&{trigger:"update"},session:i}),l=r$(d);if(null!==u){let e={user:{name:u.name,email:u.email,image:u.picture},expires:l.toISOString()},n=await c.session({session:e,token:u});h.body=n;let i=await a.encode({...a,token:u,salt:r}),o=t.chunk(i,{expires:l});h.cookies?.push(...o),await s.session?.({session:n,token:u})}else h.cookies?.push(...t.clean())}catch(e){u.error(new f.SW(e)),h.cookies?.push(...t.clean())}return h}try{let{getSessionAndUser:r,deleteSession:a,updateSession:u}=o,l=await r(p);if(l&&l.session.expires.valueOf()<Date.now()&&(await a(p),l=null),l){let{user:t,session:r}=l,o=e.session.updateAge,a=r.expires.valueOf()-1e3*d+1e3*o,f=r$(d);a<=Date.now()&&await u({sessionToken:p,expires:f});let y=await c.session({session:{...r,user:t},user:t,newSession:i,...n?{trigger:"update"}:{}});h.body=y,h.cookies?.push({name:e.cookies.sessionToken.name,value:p,options:{...e.cookies.sessionToken.options,expires:f}}),await s.session?.({session:y})}else p&&h.cookies?.push(...t.clean())}catch(e){u.error(new f.QU(e))}return h}async function on(e,t){let r,n,{logger:i,provider:o}=t,a=o.authorization?.url;if(!a||"authjs.dev"===a.host){let e=new URL(o.issuer),t=await nn(e,{[rY]:o[tL],[rV]:!0}),r=await na(e,t);if(!r.authorization_endpoint)throw TypeError("Authorization server did not provide an authorization endpoint.");a=new URL(r.authorization_endpoint)}let s=a.searchParams,c=o.callbackUrl;!t.isOnRedirectProxy&&o.redirectProxyUrl&&(c=o.redirectProxyUrl,n=o.callbackUrl,i.debug("using redirect proxy",{redirect_uri:c,data:n}));let u=Object.assign({response_type:"code",client_id:o.clientId,redirect_uri:c,...o.authorization?.params},Object.fromEntries(o.authorization?.url.searchParams??[]),e);for(let e in u)s.set(e,u[e]);let l=[];o.authorization?.url.searchParams.get("response_mode")==="form_post"&&(t.cookies.state.options.sameSite="none",t.cookies.state.options.secure=!0,t.cookies.nonce.options.sameSite="none",t.cookies.nonce.options.secure=!0);let d=await iq.create(t,n);if(d&&(s.set("state",d.value),l.push(d.cookie)),o.checks?.includes("pkce"))if(r&&!r.code_challenge_methods_supported?.includes("S256"))"oidc"===o.type&&(o.checks=["nonce"]);else{let{value:e,cookie:r}=await iK.create(t);s.set("code_challenge",e),s.set("code_challenge_method","S256"),l.push(r)}let f=await iJ.create(t);return f&&(s.set("nonce",f.value),l.push(f.cookie)),"oidc"!==o.type||a.searchParams.has("scope")||a.searchParams.set("scope","openid profile email"),i.debug("authorization url is ready",{url:a,cookies:l,provider:o}),{redirect:a.toString(),cookies:l}}async function oi(e,t){let r,{body:n}=e,{provider:i,callbacks:o,adapter:a}=t,s=(i.normalizeIdentifier??function(e){if(!e)throw Error("Missing email from request body.");let[t,r]=e.toLowerCase().trim().split("@");return r=r.split(",")[0],`${t}@${r}`})(n?.email),c={id:crypto.randomUUID(),email:s,emailVerified:null},u=await a.getUserByEmail(s)??c,l={providerAccountId:s,userId:u.id,type:"email",provider:i.id};try{r=await o.signIn({user:u,account:l,email:{verificationRequest:!0}})}catch(e){throw new f.Oy(e)}if(!r)throw new f.Oy("AccessDenied");if("string"==typeof r)return{redirect:await o.redirect({url:r,baseUrl:t.url.origin})};let{callbackUrl:d,theme:h}=t,p=await i.generateVerificationToken?.()??tP(32),y=new Date(Date.now()+(i.maxAge??86400)*1e3),m=i.secret??t.secret,b=new URL(t.basePath,t.url.origin),g=i.sendVerificationRequest({identifier:s,token:p,expires:y,url:`${b}/callback/${i.id}?${new URLSearchParams({callbackUrl:d,token:p,email:s})}
379`,provider:i,theme:h,request:new Request(e.url,{headers:e.headers,method:e.method,body:"POST"===e.method?JSON.stringify(e.body??{}):void 0})}),w=a.createVerificationToken?.({identifier:s,token:await tO(`${p}${m}`),expires:y});return await Promise.all([g,w]),{redirect:`${b}/verify-request?${new URLSearchParams({provider:i.id,type:i.type})}`}}async function oo(e,t,r){let n=`${r.url.origin}${r.basePath}/signin`;if(!r.provider)return{redirect:n,cookies:t};switch(r.provider.type){case"oauth":case"oidc":{let{redirect:n,cookies:i}=await on(e.query,r);return i&&t.push(...i),{redirect:n,cookies:t}}case"email":return{...await oi(e,r),cookies:t};default:return{redirect:n,cookies:t}}}async function oa(e,t,r){let{jwt:n,events:i,callbackUrl:o,logger:a,session:s}=r,c=t.value;if(!c)return{redirect:o,cookies:e};try{if("jwt"===s.strategy){let e=r.cookies.sessionToken.name,t=await n.decode({...n,token:c,salt:e});await i.signOut?.({token:t})}else{let e=await r.adapter?.deleteSession(c);await i.signOut?.({session:e})}}catch(e){a.error(new f.eH(e))}return e.push(...t.clean()),{redirect:o,cookies:e}}async function os(e,t){let{adapter:r,jwt:n,session:{strategy:i}}=e,o=t.value;if(!o)return null;if("jwt"===i){let t=e.cookies.sessionToken.name,r=await n.decode({...n,token:o,salt:t});if(r&&r.sub)return{id:r.sub,name:r.name,email:r.email,image:r.picture}}else{let e=await r?.getSessionAndUser(o);if(e)return e.user}return null}async function oc(e,t,r,n){let i=i6(t),{provider:o}=i,{action:a}=e.query??{};if("register"!==a&&"authenticate"!==a&&void 0!==a)return{status:400,body:{error:"Invalid action"},cookies:n,headers:{"Content-Type":"application/json"}};let s=await os(t,r),c=s?{user:s,exists:!0}:await o.getUserInfo(t,e),u=c?.user;switch(function(e,t,r){let{user:n,exists:i=!1}=r??{};switch(e){case"authenticate":return"authenticate";case"register":if(n&&t===i)return"register";break;case void 0:if(!t)if(!n)return"authenticate";else if(i)return"authenticate";else return"register"}return null}(a,!!s,c)){case"authenticate":return i1(i,e,u,n);case"register":if("string"==typeof u?.email)return i0(i,e,u,n);break;default:return{status:400,body:{error:"Invalid request"},cookies:n,headers:{"Content-Type":"application/json"}}}}async function ou(e,t){let{action:r,providerId:n,error:i,method:o}=e,a=t.skipCSRFCheck===tj,{options:s,cookies:c}=await tK({authOptions:t,action:r,providerId:n,url:e.url,callbackUrl:e.body?.callbackUrl??e.query?.callbackUrl,csrfToken:e.body?.csrfToken,cookies:e.cookies,isPost:"POST"===o,csrfDisabled:a}),u=new d(s.cookies.sessionToken,e.cookies,s.logger);if("GET"===o){let t=rW({...s,query:e.query,cookies:c});switch(r){case"callback":return await oe(e,s,u,c);case"csrf":return t.csrf(a,s,c);case"error":return t.error(i);case"providers":return t.providers(s.providers);case"session":return await or(s,u,c);case"signin":return t.signin(n,i);case"signout":return t.signout();case"verify-request":return t.verifyRequest();case"webauthn-options":return await oc(e,s,u,c)}}else{let{csrfTokenVerified:t}=s;switch(r){case"callback":return"credentials"===s.provider.type&&tD(r,t),await oe(e,s,u,c);case"session":return tD(r,t),await or(s,u,c,!0,e.body?.data);case"signin":return tD(r,t),await oo(e,c,s);case"signout":return tD(r,t),await oa(c,u,s)}}throw new f.P8(`Cannot handle action: ${r}`)}function ol(e,t,r,n,i){let o,a=i?.basePath,s=n.AUTH_URL??n.NEXTAUTH_URL;if(s)o=new URL(s),a&&"/"!==a&&"/"!==o.pathname&&(o.pathname!==a&&tS(i).warn("env-url-basepath-mismatch"),o.pathname="/");else{let e=r.get("x-forwarded-host")??r.get("host"),n=r.get("x-forwarded-proto")??t??"https",i=n.endsWith(":")?n:n+":";o=new URL(`${i}//${e}`)}let c=o.toString().replace(/\/$/,"");if(a){let t=a?.replace(/(^\/|\/$)/g,"")??"";return new URL(`${c}/${t}/${e}`)}return new URL(`${c}/${e}`)}async function od(e,t){let r=tS(t),n=await tk(e,t);if(!n)return Response.json("Bad request.",{status:400});let i=function(e,t){let{url:r}=e,n=[];if(!h&&t.debug&&n.push("debug-enabled"),!t.trustHost)return new f.tP(`Host must be trusted. URL was: ${e.url}`);if(!t.secret?.length)return new f.jo("Please define a `secret`");let i=e.query?.callbackUrl;if(i&&!p(i,r.origin))return new f.me(`Invalid callback URL. Received: ${i}`);let{callbackUrl:o}=l(t.useSecureCookies??"https:"===r.protocol),a=e.cookies?.[t.cookies?.callbackUrl?.name??o.name];if(a&&!p(a,r.origin))return new f.me(`Invalid callback URL. Received: ${a}`);let s=!1;for(let e of t.providers){let t="function"==typeof e?e():e;if(("oauth"===t.type||"oidc"===t.type)&&!(t.issuer??t.options?.issuer)){let e,{authorization:r,token:n,userinfo:i}=t;if("string"==typeof r||r?.url?"string"==typeof n||n?.url?"string"==typeof i||i?.url||(e="userinfo"):e="token":e="authorization",e)return new f.gs(`Provider "${t.id}" is missing both \`issuer\` and \`${e}\` endpoint config. At least one of them is required`)}if("credentials"===t.type)y=!0;else if("email"===t.type)m=!0;else if("webauthn"===t.type){var c;if(b=!0,t.simpleWebAuthnBrowserVersion&&(c=t.simpleWebAuthnBrowserVersion,!/^v\d+(?:\.\d+){0,2}$/.test(c)))return new f.lR(`Invalid provider config for "${t.id}": simpleWebAuthnBrowserVersion "${t.simpleWebAuthnBrowserVersion}" must be a valid semver string.`);if(t.enableConditionalUI){if(s)return new f.s5("Multiple webauthn providers have 'enableConditionalUI' set to True. Only one provider can have this option enabled at a time");if(s=!0,!Object.values(t.formFields).some(e=>e.autocomplete&&e.autocomplete.toString().indexOf("webauthn")>-1))return new f.nd(`Provider "${t.id}" has 'enableConditionalUI' set to True, but none of its formFields have 'webauthn' in their autocomplete param`)}}}if(y){let e=t.session?.strategy==="database",r=!t.providers.some(e=>
379"credentials"!==("function"==typeof e?e():e).type);if(e&&r)return new f.Lx("Signing in with credentials only supported if JWT strategy is enabled");if(t.providers.some(e=>{let t="function"==typeof e?e():e;return"credentials"===t.type&&!t.authorize}))return new f.u$("Must define an authorize() handler to use credentials authentication provider")}let{adapter:u,session:d}=t,v=[];if(m||d?.strategy==="database"||!d?.strategy&&u)if(m){if(!u)return new f.OZ("Email login requires an adapter");v.push(...g)}else{if(!u)return new f.OZ("Database session requires an adapter");v.push(...w)}if(b){if(!t.experimental?.enableWebAuthn)return new f.xm("WebAuthn is an experimental feature. To enable it, set `experimental.enableWebAuthn` to `true` in your config");if(n.push("experimental-webauthn"),!u)return new f.OZ("WebAuthn requires an adapter");v.push(...x)}if(u){let e=v.filter(e=>!(e in u));if(e.length)return new f.i8(`Required adapter methods were missing: ${e.join(", ")}`)}return h||(h=!0),n}(n,t);if(Array.isArray(i))i.forEach(r.warn);else if(i){if(r.error(i),!new Set(["signin","signout","error","verify-request"]).has(n.action)||"GET"!==n.method)return Response.json({message:"There was a problem with the server configuration. Check the server logs for more information."},{status:500});let{pages:e,theme:o}=t,a=e?.error&&n.url.searchParams.get("callbackUrl")?.startsWith(e.error);if(!e?.error||a)return a&&r.error(new f.CM(`The error page ${e?.error} should not require authentication`)),tR(rW({theme:o}).error("Configuration"));let s=`${n.url.origin}${e.error}?error=Configuration`;return Response.redirect(s)}let o=e.headers?.has("X-Auth-Return-Redirect"),a=t.raw===tU;try{let e=await ou(n,t);if(a)return e;let r=tR(e),i=r.headers.get("Location");if(!o||!i)return r;return Response.json({url:i},{headers:r.headers})}catch(d){r.error(d);let i=d instanceof f.lR;if(i&&a&&!o)throw d;if("POST"===e.method&&"session"===n.action)return Response.json(null,{status:400});let s=new URLSearchParams({error:(0,f._2)(d)?d.type:"Configuration"});d instanceof f.xz&&s.set("code",d.code);let c=i&&d.kind||"error",u=t.pages?.[c]??`${t.basePath}/${c.toLowerCase()}`,l=`${n.url.origin}${u}?${s}`;if(o)return Response.json({url:l});return Response.redirect(l)}}var of=r(41673),oh=r(87358);function op(e){let t=oh.env.AUTH_URL??oh.env.NEXTAUTH_URL;if(!t)return e;let{origin:r}=new URL(t),{href:n,origin:i}=e.nextUrl;return new of.NextRequest(n.replace(i,r),e)}function oy(e){try{e.secret??(e.secret=oh.env.AUTH_SECRET??oh.env.NEXTAUTH_SECRET);let t=oh.env.AUTH_URL??oh.env.NEXTAUTH_URL;if(!t)return;let{pathname:r}=new URL(t);if("/"===r)return;e.basePath||(e.basePath=r)}catch{}finally{e.basePath||(e.basePath="/api/auth"),function(e,t,r=!1){try{let n=e.AUTH_URL;n&&(t.basePath?r||tS(t).warn("env-url-basepath-redundant"):t.basePath=new URL(n).pathname)}catch{}finally{t.basePath??(t.basePath="/auth")}if(!t.secret?.length){t.secret=[];let r=e.AUTH_SECRET;for(let n of(r&&t.secret.push(r),[1,2,3])){let r=e[`AUTH_SECRET_${n}`];r&&t.secret.unshift(r)}}t.redirectProxyUrl??(t.redirectProxyUrl=e.AUTH_REDIRECT_PROXY_URL),t.trustHost??(t.trustHost=!!(e.AUTH_URL??e.AUTH_TRUST_HOST??e.VERCEL??e.CF_PAGES??"production"!==e.NODE_ENV)),t.providers=t.providers.map(t=>{let{id:r}="function"==typeof t?t({}):t,n=r.toUpperCase().replace(/-/g,"_"),i=e[`AUTH_${n}_ID`],o=e[`AUTH_${n}_SECRET`],a=e[`AUTH_${n}_ISSUER`],s=e[`AUTH_${n}_KEY`],c="function"==typeof t?t({clientId:i,clientSecret:o,issuer:a,apiKey:s}):t;return"oauth"===c.type||"oidc"===c.type?(c.clientId??(c.clientId=i),c.clientSecret??(c.clientSecret=o),c.issuer??(c.issuer=a)):"email"===c.type&&(c.apiKey??(c.apiKey=s)),c})}(oh.env,e,!0)}}var om=r(76761),ob=r(10064);r(76823);var og=r(87358);async function ow(e,t){return od(new Request(ol("session",e.get("x-forwarded-proto"),e,og.env,t),{headers:{cookie:e.get("cookie")??""}}),{...t,callbacks:{...t.callbacks,async session(...e){let r=await t.callbacks?.session?.(...e)??{...e[0].session,expires:e[0].session.expires?.toISOString?.()??e[0].session.expires};return{user:e[0].user??e[0].token,...r}}}})}function ox(e){return"function"==typeof e}function ov(e,t){return"function"==typeof e?async(...r)=>{if(!r.length){let r=await (0,ob.b)(),n=await e(void 0);return t?.(n),ow(r,n).then(e=>e.json())}if(r[0]instanceof Request){let n=r[0],i=r[1],o=await e(n);return t?.(o),o_([n,i],o)}if(ox(r[0])){let n=r[0];return async(...r)=>{let i=await e(r[0]);return t?.(i),o_(r,i,n)}}let n="req"in r[0]?r[0].req:r[0],i="res"in r[0]?r[0].res:r[1],o=await e(n);return t?.(o),ow(new Headers(n.headers),o).then(async e=>{let t=await e.json();for(let t of e.headers.getSetCookie())"headers"in i?i.headers.append("set-cookie",t):i.appendHeader("set-cookie",t);return t})}:(...t)=>{if(!t.length)return Promise.resolve((0,ob.b)()).then(t=>ow(t,e).then(e=>e.json()));if(t[0]instanceof Request)return o_([t[0],t[1]],e);if(ox(t[0])){let r=t[0];return async(...t)=>o_(t,e,r).then(e=>e)}let r="req"in t[0]?t[0].req:t[0],n="res"in t[0]?t[0].res:t[1];return ow(new Headers(r.headers),e).then(async e=>{let t=await e.json();for(let t of e.headers.getSetCookie())"headers"in n?n.headers.append("set-cookie",t):n.appendHeader("set-cookie",t);return t})}}async function o_(e,t,r){let n=op(e[0]),i=await ow(n.headers,t),o=await i.json(),a=!0;t.callbacks?.authorized&&(a=await t.callbacks.authorized({request:n,auth:o}));let s=of.NextResponse.next?.();if(a instanceof Response){s=a;let e=a.headers.get("Location"),{pathname:r}=n.nextUrl;e&&function(e,t,r){let n=t.replace(`${e}/`,""),i=Object.values(r.pages??{});return(oE.has(n)||i.includes(t))&&t===e}(r,new URL(e).pathname,t)&&(a=!0)}else if(r)n.auth=o,s=await r(n,e[1])??of.NextResponse.next();else if(!a){let e=t.pages?.signIn??`${t.basePath}/signin`;if(n.nextUrl.pathname!==e){let t=n.nextUrl.clone();t.pathname=e,t.searchParams.set("callbackUrl",n.nextUrl.href),s=of.NextResponse.redirect(t)}}let c=new Response(s?.body,s);for(let e of i.headers.getSetCookie())c.headers.append("set-cookie",e);return c}let oE=new Set(["providers","session","csrf","signin","signout","callback","verify-request","error"]);var oS=r(35695),oA=r(87358);async function oT(e,t={},r,n){let i=new Headers(await (0,ob.b)()),{redirect:o=!0,redirectTo:a,...s}=t instanceof FormData?Object.fromEntries(t):t,c=a?.toString()??i.get("Referer")??"/",u=ol("signin",i.get("x-forwarded-proto"),i,oA.env,n);if(!e)return u.searchParams.append("callbackUrl",c),o&&(0,oS.redirect)(u.toString()),u.toString();let l=`${u}/${e}?${new URLSearchParams(r)}`,d={};for(let t of n.providers){let{options:r,...n}="function"==typeof t?t():t,i=r?.id??n.id;if(i===e){d={id:i,type:r?.type??n.type};break}}if(!d.id){let e=`${u}?${new URLSearchParams({callbackUrl:c})}`;return o&&(0,oS.redirect)(e),e}"credentials"===d.type&&(l=l.replace("signin","callback")),i.set("Content-Type","application/x-www-form-urlencoded");
379let f=new Request(l,{method:"POST",headers:i,body:new URLSearchParams({...s,callbackUrl:c})}),h=await od(f,{...n,raw:tU,skipCSRFCheck:tj}),p=await (0,om.U)();for(let e of h?.cookies??[])p.set(e.name,e.value,e.options);let y=(h instanceof Response?h.headers.get("Location"):h.redirect)??l;return o?(0,oS.redirect)(y):y}async function ok(e,t){let r=new Headers(await (0,ob.b)());r.set("Content-Type","application/x-www-form-urlencoded");let n=ol("signout",r.get("x-forwarded-proto"),r,oA.env,t),i=new URLSearchParams({callbackUrl:e?.redirectTo??r.get("Referer")??"/"}),o=new Request(n,{method:"POST",headers:r,body:i}),a=await od(o,{...t,raw:tU,skipCSRFCheck:tj}),s=await (0,om.U)();for(let e of a?.cookies??[])s.set(e.name,e.value,e.options);return e?.redirect??!0?(0,oS.redirect)(a.redirect):a}async function oR(e,t){let r=new Headers(await (0,ob.b)());r.set("Content-Type","application/json");let n=new Request(ol("session",r.get("x-forwarded-proto"),r,oA.env,t),{method:"POST",headers:r,body:JSON.stringify({data:e})}),i=await od(n,{...t,raw:tU,skipCSRFCheck:tj}),o=await (0,om.U)();for(let e of i?.cookies??[])o.set(e.name,e.value,e.options);return i.body}function oO(e){if("function"==typeof e){let t=async t=>{let r=await e(t);return oy(r),od(op(t),r)};return{handlers:{GET:t,POST:t},auth:ov(e,e=>oy(e)),signIn:async(t,r,n)=>{let i=await e(void 0);return oy(i),oT(t,r,n,i)},signOut:async t=>{let r=await e(void 0);return oy(r),ok(t,r)},unstable_update:async t=>{let r=await e(void 0);return oy(r),oR(t,r)}}}oy(e);let t=t=>od(op(t),e);return{handlers:{GET:t,POST:t},auth:ov(e),signIn:(t,r,n)=>oT(t,r,n,e),signOut:t=>ok(t,e),unstable_update:t=>oR(t,e)}}},66819:function(e,t,r){var n;n=r(23652),r(40092),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([0x80000000],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},e.exports=n.pad.Iso97971},67382:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NextURL",{enumerable:!0,get:function(){return l}});let n=r(37444),i=r(91623),o=r(83296),a=r(53054),s=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function c(e,t){return new URL(String(e).replace(s,"localhost"),t&&String(t).replace(s,"localhost"))}let u=Symbol("NextURLInternal");class l{constructor(e,t,r){let n,i;"object"==typeof t&&"pathname"in t||"string"==typeof t?(n=t,i=r||{}):i=r||t||{},this[u]={url:c(e,n??i.base),options:i,basePath:""},this.analyze()}analyze(){var e,t,r,i,s;let c=(0,a.getNextPathnameInfo)(this[u].url.pathname,{nextConfig:this[u].options.nextConfig,parseData:!0,i18nProvider:this[u].options.i18nProvider}),l=(0,o.getHostname)(this[u].url,this[u].options.headers);this[u].domainLocale=this[u].options.i18nProvider?this[u].options.i18nProvider.detectDomainLocale(l):(0,n.detectDomainLocale)(null==(t=this[u].options.nextConfig)||null==(e=t.i18n)?void 0:e.domains,l);let d=(null==(r=this[u].domainLocale)?void 0:r.defaultLocale)||(null==(s=this[u].options.nextConfig)||null==(i=s.i18n)?void 0:i.defaultLocale);this[u].url.pathname=c.pathname,this[u].defaultLocale=d,this[u].basePath=c.basePath??"",this[u].buildId=c.buildId,this[u].locale=c.locale??d,this[u].trailingSlash=c.trailingSlash}formatPathname(){return(0,i.formatNextPathnameInfo)({basePath:this[u].basePath,buildId:this[u].buildId,defaultLocale:this[u].options.forceLocale?void 0:this[u].defaultLocale,locale:this[u].locale,pathname:this[u].url.pathname,trailingSlash:this[u].trailingSlash})}formatSearch(){return this[u].url.search}get buildId(){return this[u].buildId}set buildId(e){this[u].buildId=e}get locale(){return this[u].locale??""}set locale(e){var t,r;if(!this[u].locale||!(null==(r=this[u].options.nextConfig)||null==(t=r.i18n)?void 0:t.locales.includes(e)))throw Object.defineProperty(TypeError(`The NextURL configuration includes no locale "${e}"`),"__NEXT_ERROR_CODE",{value:"E597",enumerable:!1,configurable:!0});this[u].locale=e}get defaultLocale(){return this[u].defaultLocale}get domainLocale(){return this[u].domainLocale}get searchParams(){return this[u].url.searchParams}get host(){return this[u].url.host}set host(e){this[u].url.host=e}get hostname(){return this[u].url.hostname}set hostname(e){this[u].url.hostname=e}get port(){return this[u].url.port}set port(e){this[u].url.port=e}get protocol(){return this[u].url.protocol}set protocol(e){this[u].url.protocol=e}get href(){let e=this.formatPathname(),t=this.formatSearch();return`${this.protocol}//${this.host}${e}${t}${this.hash}`}set href(e){this[u].url=c(e),this.analyze()}get origin(){return this[u].url.origin}get pathname(){return this[u].url.pathname}set pathname(e){this[u].url.pathname=e}get hash(){return this[u].url.hash}set hash(e){this[u].url.hash=e}get search(){return this[u].url.search}set search(e){this[u].url.search=e}get password(){return this[u].url.password}set password(e){this[u].url.password=e}get username(){return this[u].url.username}set username(e){this[u].url.username=e}get basePath(){return this[u].basePath}set basePath(e){this[u].basePath=e.startsWith("/")?e:`/${e}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new l(String(this),this[u].options)}}},69930:function(e,t,r){var n;n=r(23652),r(40092),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1,r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.exports=n.pad.ZeroPadding},70557:(e,t,r)=>{"use strict";function n(e,t="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function i(e,t){return e.name===t}function o(e){return parseInt(e.name.slice(4),10)}r.d(t,{A:()=>s});var a=r(90473);let s=async(e,t,r)=>{if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw TypeError((0,a.A)(t,"CryptoKey","KeyObject","JSON Web Key"));return crypto.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}
379return!function(e,t,r){switch(t){case"HS256":case"HS384":case"HS512":{if(!i(e.algorithm,"HMAC"))throw n("HMAC");let r=parseInt(t.slice(2),10);if(o(e.algorithm.hash)!==r)throw n(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!i(e.algorithm,"RSASSA-PKCS1-v1_5"))throw n("RSASSA-PKCS1-v1_5");let r=parseInt(t.slice(2),10);if(o(e.algorithm.hash)!==r)throw n(`SHA-${r}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!i(e.algorithm,"RSA-PSS"))throw n("RSA-PSS");let r=parseInt(t.slice(2),10);if(o(e.algorithm.hash)!==r)throw n(`SHA-${r}`,"algorithm.hash");break}case"Ed25519":case"EdDSA":if(!i(e.algorithm,"Ed25519"))throw n("Ed25519");break;case"ES256":case"ES384":case"ES512":{if(!i(e.algorithm,"ECDSA"))throw n("ECDSA");let r=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw Error("unreachable")}}(t);if(e.algorithm.namedCurve!==r)throw n(r,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}var a=e,s=r;if(s&&!a.usages.includes(s))throw TypeError(`CryptoKey does not support this operation, its usages must include ${s}.`)}(t,e,r),t}},71814:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NextResponse",{enumerable:!0,get:function(){return d}});let n=r(22116),i=r(67382),o=r(15048),a=r(93107),s=r(22116),c=Symbol("internal response"),u=new Set([301,302,303,307,308]);function l(e,t){var r;if(null==e||null==(r=e.request)?void 0:r.headers){if(!(e.request.headers instanceof Headers))throw Object.defineProperty(Error("request.headers must be an instance of Headers"),"__NEXT_ERROR_CODE",{value:"E119",enumerable:!1,configurable:!0});let r=[];for(let[n,i]of e.request.headers)t.set("x-middleware-request-"+n,i),r.push(n);t.set("x-middleware-override-headers",r.join(","))}}class d extends Response{constructor(e,t={}){super(e,t);let r=this.headers,u=new Proxy(new s.ResponseCookies(r),{get(e,i,o){switch(i){case"delete":case"set":return(...o)=>{let a=Reflect.apply(e[i],e,o),c=new Headers(r);return a instanceof s.ResponseCookies&&r.set("x-middleware-set-cookie",a.getAll().map(e=>(0,n.stringifyCookie)(e)).join(",")),l(t,c),a};default:return a.ReflectAdapter.get(e,i,o)}}});this[c]={cookies:u,url:t.url?new i.NextURL(t.url,{headers:(0,o.toNodeOutgoingHttpHeaders)(r),nextConfig:t.nextConfig}):void 0}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,url:this.url,body:this.body,bodyUsed:this.bodyUsed,headers:Object.fromEntries(this.headers),ok:this.ok,redirected:this.redirected,status:this.status,statusText:this.statusText,type:this.type}}get cookies(){return this[c].cookies}static json(e,t){let r=Response.json(e,t);return new d(r.body,r)}static redirect(e,t){let r="number"==typeof t?t:(null==t?void 0:t.status)??307;if(!u.has(r))throw Object.defineProperty(RangeError('Failed to execute "redirect" on "response": Invalid status code'),"__NEXT_ERROR_CODE",{value:"E529",enumerable:!1,configurable:!0});let n="object"==typeof t?t:{},i=new Headers(null==n?void 0:n.headers);return i.set("Location",(0,o.validateURL)(e)),new d(null,{...n,headers:i,status:r})}static rewrite(e,t){let r=new Headers(null==t?void 0:t.headers);return r.set("x-middleware-rewrite",(0,o.validateURL)(e)),l(t,r),new d(null,{...t,headers:r})}static next(e){let t=new Headers(null==e?void 0:e.headers);return t.set("x-middleware-next","1"),l(e,t),new d(null,{...e,headers:t})}}},72093:function(e){(function(){e.exports=function(){function e(){}return e.prototype.handleError=function(e){throw Error(e)},e}()}).call(this)},74378:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(90473),i=r(39827),o=r(27284);let a=e=>e?.[Symbol.toStringTag],s=(e,t,r)=>{if(void 0!==t.use){let e;switch(r){case"sign":case"verify":e="sig";break;case"encrypt":case"decrypt":e="enc"}if(t.use!==e)throw TypeError(`Invalid key for this operation, its "use" must be "${e}" when present`)}if(void 0!==t.alg&&t.alg!==e)throw TypeError(`Invalid key for this operation, its "alg" must be "${e}" when present`);if(Array.isArray(t.key_ops)){let n;switch(!0){case"sign"===r||"verify"===r:case"dir"===e:case e.includes("CBC-HS"):n=r;break;case e.startsWith("PBES2"):n="deriveBits";break;case/^A\d{3}(?:GCM)?(?:KW)?$/.test(e):n=!e.includes("GCM")&&e.endsWith("KW")?"encrypt"===r?"wrapKey":"unwrapKey":r;break;case"encrypt"===r&&e.startsWith("RSA"):n="wrapKey";break;case"decrypt"===r:n=e.startsWith("RSA")?"unwrapKey":"deriveBits"}if(n&&t.key_ops?.includes?.(n)===!1)throw TypeError(`Invalid key for this operation, its "key_ops" must include "${n}" when present`)}return!0},c=(e,t,r)=>{if(!(t instanceof Uint8Array)){if(o.ll(t)){if(o.t9(t)&&s(e,t,r))return;throw TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!(0,i.Ay)(t))throw TypeError((0,n.t)(e,t,"CryptoKey","KeyObject","JSON Web Key","Uint8Array"));if("secret"!==t.type)throw TypeError(`${a(t)} instances for symmetric algorithms must be of type "secret"`)}},u=(e,t,r)=>{if(o.ll(t))switch(r){case"decrypt":case"sign":if(o.W2(t)&&s(e,t,r))return;throw TypeError("JSON Web Key for this operation be a private JWK");case"encrypt":case"verify":if(o.M3(t)&&s(e,t,r))return;throw TypeError("JSON Web Key for this operation be a public JWK")}if(!(0,i.Ay)(t))throw TypeError((0,n.t)(e,t,"CryptoKey","KeyObject","JSON Web Key"));if("secret"===t.type)throw TypeError(`${a(t)} instances for asymmetric algorithms must not be of type "secret"`);if("public"===t.type)switch(r){case"sign":throw TypeError(`${a(t)} instances for asymmetric algorithm signing must be of type "private"`);case"decrypt":throw TypeError(`${a(t)} instances for asymmetric algorithm decryption must be of type "private"`)}if("private"===t.type)switch(r){case"verify":throw TypeError(`${a(t)} instances for asymmetric algorithm verifying must be of type "public"`);case"encrypt":throw TypeError(`${a(t)} instances for asymmetric algorithm encryption must be of type "public"`)}},l=(e,t,r)=>{e.startsWith("HS")||"dir"===e||e.startsWith("PBES2")||/^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e)||/^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e)?c(e,t,r):u(e,t,r)}},74931:(e,t,r)=>{"use strict";
379Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(64054).createAsyncLocalStorage)()},75357:(e,t,r)=>{"use strict";r.d(t,{V:()=>w});var n=r(39906),i=r(7973),o=r(32542),a=r(70557);let s=async(e,t,r,n)=>{let s=await (0,a.A)(e,t,"verify");(0,o.A)(e,s);let c=(0,i.A)(e,s.algorithm);try{return await crypto.subtle.verify(c,s,r,n)}catch{return!1}};var c=r(87559),u=r(77423),l=r(16692),d=r(85859),f=r(74378),h=r(44514);let p=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};var y=r(49935);async function m(e,t,r){let i,o;if(!(0,d.A)(e))throw new c.Ye("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new c.Ye('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new c.Ye("JWS Protected Header incorrect type");if(void 0===e.payload)throw new c.Ye("JWS Payload missing");if("string"!=typeof e.signature)throw new c.Ye("JWS Signature missing or incorrect type");if(void 0!==e.header&&!(0,d.A)(e.header))throw new c.Ye("JWS Unprotected Header incorrect type");let a={};if(e.protected)try{let t=(0,n.D)(e.protected);a=JSON.parse(u.D0.decode(t))}catch{throw new c.Ye("JWS Protected Header is invalid")}if(!(0,l.A)(a,e.header))throw new c.Ye("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let m={...a,...e.header},b=(0,h.A)(c.Ye,new Map([["b64",!0]]),r?.crit,a,m),g=!0;if(b.has("b64")&&"boolean"!=typeof(g=a.b64))throw new c.Ye('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:w}=m;if("string"!=typeof w||!w)throw new c.Ye('JWS "alg" (Algorithm) Header Parameter missing or invalid');let x=r&&p("algorithms",r.algorithms);if(x&&!x.has(w))throw new c.Rb('"alg" (Algorithm) Header Parameter value not allowed');if(g){if("string"!=typeof e.payload)throw new c.Ye("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new c.Ye("JWS Payload must be a string or an Uint8Array instance");let v=!1;"function"==typeof t&&(t=await t(a,e),v=!0),(0,f.A)(w,t,"verify");let _=(0,u.xW)(u.Rd.encode(e.protected??""),u.Rd.encode("."),"string"==typeof e.payload?u.Rd.encode(e.payload):e.payload);try{i=(0,n.D)(e.signature)}catch{throw new c.Ye("Failed to base64url decode the signature")}let E=await (0,y.A)(t,w);if(!await s(w,E,i,_))throw new c.h2;if(g)try{o=(0,n.D)(e.payload)}catch{throw new c.Ye("Failed to base64url decode the payload")}else o="string"==typeof e.payload?u.Rd.encode(e.payload):e.payload;let S={payload:o};return(void 0!==e.protected&&(S.protectedHeader=a),void 0!==e.header&&(S.unprotectedHeader=e.header),v)?{...S,key:E}:S}async function b(e,t,r){if(e instanceof Uint8Array&&(e=u.D0.decode(e)),"string"!=typeof e)throw new c.Ye("Compact JWS must be a string or Uint8Array");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a)throw new c.Ye("Invalid Compact JWS");let s=await m({payload:i,protected:n,signature:o},t,r),l={payload:s.payload,protectedHeader:s.protectedHeader};return"function"==typeof t?{...l,key:s.key}:l}var g=r(46356);async function w(e,t,r){let n=await b(e,t,r);if(n.protectedHeader.crit?.includes("b64")&&!1===n.protectedHeader.b64)throw new c.Dp("JWTs MUST NOT use unencoded payload");let i={payload:(0,g.k)(n.protectedHeader,n.payload,r),protectedHeader:n.protectedHeader};return"function"==typeof t?{...i,key:n.key}:i}},76688:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HeadersAdapter:function(){return o},ReadonlyHeadersError:function(){return i}});let n=r(93107);class i extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new i}}class o extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,i){if("symbol"==typeof r)return n.ReflectAdapter.get(t,r,i);let o=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===o);if(void 0!==a)return n.ReflectAdapter.get(t,a,i)},set(t,r,i,o){if("symbol"==typeof r)return n.ReflectAdapter.set(t,r,i,o);let a=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===a);return n.ReflectAdapter.set(t,s??r,i,o)},has(t,r){if("symbol"==typeof r)return n.ReflectAdapter.has(t,r);let i=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===i);return void 0!==o&&n.ReflectAdapter.has(t,o)},deleteProperty(t,r){if("symbol"==typeof r)return n.ReflectAdapter.deleteProperty(t,r);let i=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===i);return void 0===o||n.ReflectAdapter.deleteProperty(t,o)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return i.callable;default:return n.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new o(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];
379return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},76761:(e,t,r)=>{"use strict";Object.defineProperty(t,"U",{enumerable:!0,get:function(){return f}});let n=r(16397),i=r(22116),o=r(85744),a=r(9597),s=r(87101),c=r(11881),u=r(44536),l=r(35260),d=(r(4117),r(65867));function f(){let e="cookies",t=o.workAsyncStorage.getStore(),r=a.workUnitAsyncStorage.getStore();if(t){if(r&&"after"===r.phase&&!(0,d.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${t.route} used "cookies" inside "after(...)". This is not supported. If you need this data inside an "after" callback, use "cookies" outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E88",enumerable:!1,configurable:!0});if(t.forceStatic)return p(n.RequestCookiesAdapter.seal(new i.RequestCookies(new Headers({}))));if(r){if("cache"===r.type)throw Object.defineProperty(Error(`Route ${t.route} used "cookies" inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "cookies" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E398",enumerable:!1,configurable:!0});else if("unstable-cache"===r.type)throw Object.defineProperty(Error(`Route ${t.route} used "cookies" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "cookies" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E157",enumerable:!1,configurable:!0})}if(t.dynamicShouldError)throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E549",enumerable:!1,configurable:!0});if(r)if("prerender"===r.type){var l=t.route,f=r;let e=h.get(f);if(e)return e;
379let n=(0,u.makeHangingPromise)(f.renderSignal,"`cookies()`");return h.set(f,n),Object.defineProperties(n,{[Symbol.iterator]:{value:function(){let e="`cookies()[Symbol.iterator]()`",t=b(l,e);(0,s.abortAndThrowOnSynchronousRequestDataAccess)(l,e,t,f)}},size:{get(){let e="`cookies().size`",t=b(l,e);(0,s.abortAndThrowOnSynchronousRequestDataAccess)(l,e,t,f)}},get:{value:function(){let e;e=0==arguments.length?"`cookies().get()`":`\`cookies().get(${y(arguments[0])})\``;let t=b(l,e);(0,s.abortAndThrowOnSynchronousRequestDataAccess)(l,e,t,f)}},getAll:{value:function(){let e;e=0==arguments.length?"`cookies().getAll()`":`\`cookies().getAll(${y(arguments[0])})\``;let t=b(l,e);(0,s.abortAndThrowOnSynchronousRequestDataAccess)(l,e,t,f)}},has:{value:function(){let e;e=0==arguments.length?"`cookies().has()`":`\`cookies().has(${y(arguments[0])})\``;let t=b(l,e);(0,s.abortAndThrowOnSynchronousRequestDataAccess)(l,e,t,f)}},set:{value:function(){let e;if(0==arguments.length)e="`cookies().set()`";else{let t=arguments[0];e=t?`\`cookies().set(${y(t)}, ...)\``:"`cookies().set(...)`"}let t=b(l,e);(0,s.abortAndThrowOnSynchronousRequestDataAccess)(l,e,t,f)}},delete:{value:function(){let e;e=0==arguments.length?"`cookies().delete()`":1==arguments.length?`\`cookies().delete(${y(arguments[0])})\``:`\`cookies().delete(${y(arguments[0])}, ...)\``;let t=b(l,e);(0,s.abortAndThrowOnSynchronousRequestDataAccess)(l,e,t,f)}},clear:{value:function(){let e="`cookies().clear()`",t=b(l,e);(0,s.abortAndThrowOnSynchronousRequestDataAccess)(l,e,t,f)}},toString:{value:function(){let e="`cookies().toString()`",t=b(l,e);(0,s.abortAndThrowOnSynchronousRequestDataAccess)(l,e,t,f)}}}),n}else"prerender-ppr"===r.type?(0,s.postponeWithTracking)(t.route,e,r.dynamicTracking):"prerender-legacy"===r.type&&(0,s.throwToInterruptStaticGeneration)(e,t,r);(0,s.trackDynamicDataInDynamicRender)(t,r)}let m=(0,a.getExpectedRequestStore)(e);return p((0,n.areCookiesMutableInCurrentPhase)(m)?m.userspaceMutableCookies:m.cookies)}let h=new WeakMap;function p(e){let t=h.get(e);if(t)return t;let r=Promise.resolve(e);return h.set(e,r),Object.defineProperties(r,{[Symbol.iterator]:{value:e[Symbol.iterator]?e[Symbol.iterator].bind(e):g.bind(e)},size:{get:()=>e.size},get:{value:e.get.bind(e)},getAll:{value:e.getAll.bind(e)},has:{value:e.has.bind(e)},set:{value:e.set.bind(e)},delete:{value:e.delete.bind(e)},clear:{value:"function"==typeof e.clear?e.clear.bind(e):w.bind(e,r)},toString:{value:e.toString.bind(e)}}),r}function y(e){return"object"==typeof e&&null!==e&&"string"==typeof e.name?`'${e.name}'`:"string"==typeof e?`'${e}'`:"..."}let m=(0,l.createDedupedByCallsiteServerErrorLoggerDev)(b);function b(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`cookies()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E223",enumerable:!1,configurable:!0})}function g(){return this.getAll().map(e=>[e.name,e]).values()}function w(e){for(let e of this.getAll())this.delete(e.name);return e}},76823:(e,t,r)=>{"use strict";let n=r(9597),i=r(85744),o=r(87101),a=r(35260),s=r(11881),c=r(39439);function u(){let e=i.workAsyncStorage.getStore(),t=n.workUnitAsyncStorage.getStore();switch((!e||!t)&&(0,n.throwForMissingRequestStore)("draftMode"),t.type){case"request":return l(t.draftMode,e);case"cache":case"unstable-cache":let r=(0,n.getDraftModeProviderForCacheScope)(e,t);if(r)return l(r,e);case"prerender":case"prerender-ppr":case"prerender-legacy":return f(null);default:return t}}function l(e,t){let r,n=d.get(u);return n||(r=f(e),d.set(e,r),r)}let d=new WeakMap;function f(e){let t=new h(e),r=Promise.resolve(t);return Object.defineProperty(r,"isEnabled",{get:()=>t.isEnabled,set(e){Object.defineProperty(r,"isEnabled",{value:e,writable:!0,enumerable:!0})},enumerable:!0,configurable:!0}),r.enable=t.enable.bind(t),r.disable=t.disable.bind(t),r}class h{constructor(e){this._provider=e}get isEnabled(){return null!==this._provider&&this._provider.isEnabled}enable(){y("draftMode().enable()"),null!==this._provider&&this._provider.enable()}disable(){y("draftMode().disable()"),null!==this._provider&&this._provider.disable()}}let p=(0,a.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`draftMode()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E377",enumerable:!1,
379configurable:!0})});function y(e){let t=i.workAsyncStorage.getStore(),r=n.workUnitAsyncStorage.getStore();if(t){if(r){if("cache"===r.type)throw Object.defineProperty(Error(`Route ${t.route} used "${e}" inside "use cache". The enabled status of draftMode can be read in caches but you must not enable or disable draftMode inside a cache. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E246",enumerable:!1,configurable:!0});else if("unstable-cache"===r.type)throw Object.defineProperty(Error(`Route ${t.route} used "${e}" inside a function cached with "unstable_cache(...)". The enabled status of draftMode can be read in caches but you must not enable or disable draftMode inside a cache. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E259",enumerable:!1,configurable:!0});else if("after"===r.phase)throw Object.defineProperty(Error(`Route ${t.route} used "${e}" inside \`after\`. The enabled status of draftMode can be read inside \`after\` but you cannot enable or disable draftMode. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E348",enumerable:!1,configurable:!0})}if(t.dynamicShouldError)throw Object.defineProperty(new s.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(r){if("prerender"===r.type){let n=Object.defineProperty(Error(`Route ${t.route} used ${e} without first calling \`await connection()\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`),"__NEXT_ERROR_CODE",{value:"E126",enumerable:!1,configurable:!0});(0,o.abortAndThrowOnSynchronousRequestDataAccess)(t.route,e,n,r)}else if("prerender-ppr"===r.type)(0,o.postponeWithTracking)(t.route,e,r.dynamicTracking);else if("prerender-legacy"===r.type){r.revalidate=0;let n=Object.defineProperty(new c.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}}}}},77423:(e,t,r)=>{"use strict";r.d(t,{D0:()=>i,Rd:()=>n,xW:()=>o});let n=new TextEncoder,i=new TextDecoder;function o(...e){let t=new Uint8Array(e.reduce((e,{length:t})=>e+t,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}},77617:function(e,t,r){(function(){var t,n,i,o,a,s,c,u,l=function(e,t){for(var r in t)d.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},d={}.hasOwnProperty;u=r(86200).isObject,c=r(20117),t=r(28672),n=r(20950),o=r(93880),i=r(22993),a=r(29245),s=r(97700),e.exports=function(e){function r(e,n,i){var o,a,s,c,l,d;if(r.__super__.constructor.call(this,e),this.type=t.DocType,e.children){for(a=0,s=(c=e.children).length;a<s;a++)if((o=c[a]).type===t.Element){this.name=o.name;break}}this.documentObject=e,u(n)&&(n=(l=n).pubID,i=l.sysID),null==i&&(i=(d=[n,i])[0],n=d[1]),null!=n&&(this.pubID=this.stringify.dtdPubID(n)),null!=i&&(this.sysID=this.stringify.dtdSysID(i))}return l(r,e),Object.defineProperty(r.prototype,"entities",{get:function(){var e,r,n,i,o;for(r=0,i={},n=(o=this.children).length;r<n;
379r++)(e=o[r]).type!==t.EntityDeclaration||e.pe||(i[e.name]=e);return new s(i)}}),Object.defineProperty(r.prototype,"notations",{get:function(){var e,r,n,i,o;for(r=0,i={},n=(o=this.children).length;r<n;r++)(e=o[r]).type===t.NotationDeclaration&&(i[e.name]=e);return new s(i)}}),Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(r.prototype,"internalSubset",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),r.prototype.element=function(e,t){var r;return r=new i(this,e,t),this.children.push(r),this},r.prototype.attList=function(e,t,r,i,o){var a;return a=new n(this,e,t,r,i,o),this.children.push(a),this},r.prototype.entity=function(e,t){var r;return r=new o(this,!1,e,t),this.children.push(r),this},r.prototype.pEntity=function(e,t){var r;return r=new o(this,!0,e,t),this.children.push(r),this},r.prototype.notation=function(e,t){var r;return r=new a(this,e,t),this.children.push(r),this},r.prototype.toString=function(e){return this.options.writer.docType(this,this.options.writer.filterOptions(e))},r.prototype.ele=function(e,t){return this.element(e,t)},r.prototype.att=function(e,t,r,n,i){return this.attList(e,t,r,n,i)},r.prototype.ent=function(e,t){return this.entity(e,t)},r.prototype.pent=function(e,t){return this.pEntity(e,t)},r.prototype.not=function(e,t){return this.notation(e,t)},r.prototype.up=function(){return this.root()||this.documentObject},r.prototype.isEqualNode=function(e){return!!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.name===this.name&&e.publicId===this.publicId&&e.systemId===this.systemId},r}(c)}).call(this)},80312:function(e,t,r){var n;n=r(23652),r(40092),n.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.exports=n.pad.Ansix923},83296:(e,t)=>{"use strict";function r(e,t){let r;if((null==t?void 0:t.host)&&!Array.isArray(t.host))r=t.host.toString().split(":",1)[0];else{if(!e.hostname)return;r=e.hostname}return r.toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getHostname",{enumerable:!0,get:function(){return r}})},83633:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_SUFFIX:function(){return d},APP_DIR_ALIAS:function(){return C},CACHE_ONE_YEAR:function(){return E},DOT_NEXT_ALIAS:function(){return O},ESLINT_DEFAULT_DIRS:function(){return X},GSP_NO_RETURNED_VALUE:function(){return K},GSSP_COMPONENT_MEMBER_ERROR:function(){return J},GSSP_NO_RETURNED_VALUE:function(){return z},INFINITE_CACHE:function(){return S},INSTRUMENTATION_HOOK_FILENAME:function(){return k},MATCHED_PATH_HEADER:function(){return i},MIDDLEWARE_FILENAME:function(){return A},MIDDLEWARE_LOCATION_REGEXP:function(){return T},NEXT_BODY_SUFFIX:function(){return p},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return _},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return m},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return b},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return v},NEXT_CACHE_TAGS_HEADER:function(){return y},NEXT_CACHE_TAG_MAX_ITEMS:function(){return w},NEXT_CACHE_TAG_MAX_LENGTH:function(){return x},NEXT_DATA_SUFFIX:function(){return f},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return h},NEXT_QUERY_PARAM_PREFIX:function(){return r},NEXT_RESUME_HEADER:function(){return g},NON_STANDARD_NODE_ENV:function(){return V},PAGES_DIR_ALIAS:function(){return R},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return M},ROOT_DIR_ALIAS:function(){return P},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return L},RSC_ACTION_ENCRYPTION_ALIAS:function(){return U},RSC_ACTION_PROXY_ALIAS:function(){return N},RSC_ACTION_VALIDATE_ALIAS:function(){return I},RSC_CACHE_WRAPPER_ALIAS:function(){return j},RSC_MOD_REF_PROXY_ALIAS:function(){return D},RSC_PREFETCH_SUFFIX:function(){return s},RSC_SEGMENTS_DIR_SUFFIX:function(){return c},RSC_SEGMENT_SUFFIX:function(){return u},RSC_SUFFIX:function(){return l},SERVER_PROPS_EXPORT_ERROR:function(){return F},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return B},SERVER_PROPS_SSG_CONFLICT:function(){return W},SERVER_RUNTIME:function(){return Y},SSG_FALLBACK_EXPORT_ERROR:function(){return G},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return H},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return $},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return q},WEBPACK_LAYERS:function(){return Z},WEBPACK_RESOURCE_QUERIES:function(){return ee}});let r="nxtP",n="nxtI",i="x-matched-path",o="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",s=".prefetch.rsc",c=".segments",u=".segment.rsc",l=".rsc",d=".action",f=".json",h=".meta",p=".body",y="x-next-cache-tags",m="x-next-revalidated-tags",b="x-next-revalidate-tag-token",g="next-resume",w=128,x=256,v=1024,_="_N_T_",E=31536e3,S=0xfffffffe,A="middleware",T=`(?:src/)?${A}`,k="instrumentation",R="private-next-pages",O="private-dot-next",P="private-next-root-dir",C="private-next-app-dir",D="private-next-rsc-mod-ref-proxy",I="private-next-rsc-action-validate",N="private-next-rsc-server-reference",j="private-next-rsc-cache-wrapper",U="private-next-rsc-action-encryption",L="private-next-rsc-action-client-wrapper",M="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",H="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",B="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",W="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",$="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",F="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",K="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",z="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",q="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",J="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",V='You are using a non-standard "NODE_ENV" value in y
379our environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',G="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",X=["app","pages","components","lib","src"],Y={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},Q={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},Z={...Q,GROUP:{builtinReact:[Q.reactServerComponents,Q.actionBrowser],serverOnly:[Q.reactServerComponents,Q.actionBrowser,Q.instrument,Q.middleware],neutralTarget:[Q.apiNode,Q.apiEdge],clientOnly:[Q.serverSideRendering,Q.appPagesBrowser],bundled:[Q.reactServerComponents,Q.actionBrowser,Q.serverSideRendering,Q.appPagesBrowser,Q.shared,Q.instrument,Q.middleware],appPages:[Q.reactServerComponents,Q.serverSideRendering,Q.appPagesBrowser,Q.actionBrowser]}},ee={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},84115:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},84683:(e,t,r)=>{var n;(()=>{var i={226:function(i,o){!function(a,s){"use strict";var c="function",u="undefined",l="object",d="string",f="major",h="model",p="name",y="type",m="vendor",b="version",g="architecture",w="console",x="mobile",v="tablet",_="smarttv",E="wearable",S="embedded",A="Amazon",T="Apple",k="ASUS",R="BlackBerry",O="Browser",P="Chrome",C="Firefox",D="Google",I="Huawei",N="Microsoft",j="Motorola",U="Opera",L="Samsung",M="Sharp",H="Sony",B="Xiaomi",W="Zebra",$="Facebook",F="Chromium OS",K="Mac OS",z=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},q=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},J=function(e,t){return typeof e===d&&-1!==V(t).indexOf(V(e))},V=function(e){return e.toLowerCase()},G=function(e,t){if(typeof e===d)return e=e.replace(/^\s\s*/,""),typeof t===u?e:e.substring(0,350)},X=function(e,t){for(var r,n,i,o,a,u,d=0;d<t.length&&!a;){var f=t[d],h=t[d+1];for(r=n=0;r<f.length&&!a&&f[r];)if(a=f[r++].exec(e))for(i=0;i<h.length;i++)u=a[++n],typeof(o=h[i])===l&&o.length>0?2===o.length?typeof o[1]==c?this[o[0]]=o[1].call(this,u):this[o[0]]=o[1]:3===o.length?typeof o[1]!==c||o[1].exec&&o[1].test?this[o[0]]=u?u.replace(o[
3791],o[2]):void 0:this[o[0]]=u?o[1].call(this,u,o[2]):void 0:4===o.length&&(this[o[0]]=u?o[3].call(this,u.replace(o[1],o[2])):s):this[o]=u||s;d+=2}},Y=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(J(t[r][n],e))return"?"===r?s:r}else if(J(t[r],e))return"?"===r?s:r;return e},Q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,b],[/opios[\/ ]+([\w\.]+)/i],[b,[p,U+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[p,U]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[p,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[b,[p,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[b,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[p,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+O],b],[/\bfocus\/([\w\.]+)/i],[b,[p,C+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[p,U+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[p,U+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[p,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[b,[p,C]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+O]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+O],b],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[p,b],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,$],b],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[p,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[p,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[p,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,P+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[p,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[b,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[p,C+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[p,b],[/(cobalt)\/([\w\.]+)/i],[p,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,V]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;
379|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[h,[m,L],[y,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[h,[m,L],[y,x]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[h,[m,T],[y,x]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[h,[m,T],[y,v]],[/(macintosh);/i],[h,[m,T]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[h,[m,M],[y,x]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[h,[m,I],[y,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[h,[m,I],[y,x]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[h,/_/g," "],[m,B],[y,x]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[h,/_/g," "],[m,B],[y,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[h,[m,"OPPO"],[y,x]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[h,[m,"Vivo"],[y,x]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[h,[m,"Realme"],[y,x]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[h,[m,j],[y,x]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[h,[m,j],[y,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[h,[m,"LG"],[y,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[h,[m,"LG"],[y,x]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[h,[m,"Lenovo"],[y,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[h,/_/g," "],[m,"Nokia"],[y,x]],[/(pixel c)\b/i],[h,[m,D],[y,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[h,[m,D],[y,x]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[h,[m,H],[y,x]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[h,"Xperia Tablet"],[m,H],[y,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[h,[m,"OnePlus"],[y,x]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[h,[m,A],[y,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[h,/(.+)/g,"Fire Phone $1"],[m,A],[y,x]],[/(playbook);[-\w\),; ]+(rim)/i],[h,m,[y,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[h,[m,R],[y,x]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[h,[m,k],[y,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[h,[m,k],[y,x]],[/(nexus 9)/i],[h,[m,"HTC"],[y,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[h,/_/g," "],[y,x]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[h,[m,"Acer"],[y,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[h,[m,"Meizu"],[y,x]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,h,[y,x]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,h,[y,v]],[/(surface duo)/i],[h,[m,N],[y,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[h,[m,"Fairphone"],[y,x]],[/(u304aa)/i],[h,[m,"AT&T"],[y,x]],[/\bsie-(\w*)/i],[h,[m,"Siemens"],[y,x]],[/\b(rct\w+) b/i],[h,[m,"RCA"],[y,v]],[/\b(venue[\d ]{2,7}) b/i],[h,[m,"Dell"],[y,v]],[/\b(q(?:mv|ta)\w+) b/i],[h,[m,"Verizon"],[y,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[h,[m,"Barnes & Noble"],[y,v]],[/\b(tm\d{3}\w+) b/i],[h,[m,"NuVision"],[y,v]],[/\b(k88) b/i],[h,[m,"ZTE"],[y,v]],[/\b(nx\d{3}j) b/i],[h,[m,"ZTE"],[y,x]],[/\b(gen\d{3}) b.+49h/i],[h,[m,"Swiss"],[y,x]],[/\b(zur\d{3}) b/i],[h,[m,"Swiss"],[y,v]],[/\b((zeki)?tb.*\b) b/i],[h,[m,"Zeki"],[y,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],h,[y,v]],[/\b(ns-?\w{0,9}
vendor: 5,127 bytes, line 379
379) b/i],[h,[m,"Insignia"],[y,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[h,[m,"NextBook"],[y,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],h,[y,x]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],h,[y,x]],[/\b(ph-1) /i],[h,[m,"Essential"],[y,x]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[h,[m,"Envizen"],[y,v]],[/\b(trio[-\w\. ]+) b/i],[h,[m,"MachSpeed"],[y,v]],[/\btu_(1491) b/i],[h,[m,"Rotor"],[y,v]],[/(shield[\w ]+) b/i],[h,[m,"Nvidia"],[y,v]],[/(sprint) (\w+)/i],[m,h,[y,x]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[m,N],[y,x]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[h,[m,W],[y,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[h,[m,W],[y,x]],[/smart-tv.+(samsung)/i],[m,[y,_]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[m,L],[y,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,"LG"],[y,_]],[/(apple) ?tv/i],[m,[h,T+" TV"],[y,_]],[/crkey/i],[[h,P+"cast"],[m,D],[y,_]],[/droid.+aft(\w)( bui|\))/i],[h,[m,A],[y,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[h,[m,M],[y,_]],[/(bravia[\w ]+)( bui|\))/i],[h,[m,H],[y,_]],[/(mitv-\w{5}) bui/i],[h,[m,B],[y,_]],[/Hbbtv.*(technisat) (.*);/i],[m,h,[y,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,G],[h,G],[y,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[y,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,h,[y,w]],[/droid.+; (shield) bui/i],[h,[m,"Nvidia"],[y,w]],[/(playstation [345portablevi]+)/i],[h,[m,H],[y,w]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[h,[m,N],[y,w]],[/((pebble))app/i],[m,h,[y,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[h,[m,T],[y,E]],[/droid.+; (glass) \d/i],[h,[m,D],[y,E]],[/droid.+; (wt63?0{2,3})\)/i],[h,[m,W],[y,E]],[/(quest( 2| pro)?)/i],[h,[m,$],[y,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[y,S]],[/(aeobc)\b/i],[h,[m,A],[y,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[h,[y,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[h,[y,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[y,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[y,x]],[/(android[-\w\. ]{0,9});.+buil/i],[h,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,b],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[p,[b,Y,Q]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,"Windows"],[b,Y,Q]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,K],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,b],[/\(bb(10);/i],[b,[p,R]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[p,C+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[p,P+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,F],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,b],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,b]]},ee=function(e,t){if(typeof e===l&&(t=e,e=s),!(this instanceof ee))return new ee(e,t).getResult();var r=typeof a!==u&&a.navigator?a.navigator:s,n=e||(r&&r.userAgent?r.userAgent:""),i=r&&r.userAgentData?r.userAgentData:s,o=t?z(Z,t):Z,w=r&&r.userAgent==n;return this.getBrowser=function(){var e,t={};return t[p]=s,t[b]=s,X.call(t,n,o.browser),t[f]=typeof(e=t[b])===d?e.replace(/[^\d\.]/g,"").split(".")[0]:s,w&&r&&r.brave&&typeof r.brave.isBrave==c&&(t[p]="Brave"),t},this.getCPU=function(){var e={};return e[g]=s,X.call(e,n,o.cpu),e},this.getDevice=function(){var e={};
379return e[m]=s,e[h]=s,e[y]=s,X.call(e,n,o.device),w&&!e[y]&&i&&i.mobile&&(e[y]=x),w&&"Macintosh"==e[h]&&r&&typeof r.standalone!==u&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[h]="iPad",e[y]=v),e},this.getEngine=function(){var e={};return e[p]=s,e[b]=s,X.call(e,n,o.engine),e},this.getOS=function(){var e={};return e[p]=s,e[b]=s,X.call(e,n,o.os),w&&!e[p]&&i&&"Unknown"!=i.platform&&(e[p]=i.platform.replace(/chrome os/i,F).replace(/macos/i,K)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===d&&e.length>350?G(e,350):e,this},this.setUA(n),this};ee.VERSION="1.0.35",ee.BROWSER=q([p,b,f]),ee.CPU=q([g]),ee.DEVICE=q([h,m,y,w,x,_,v,E,S]),ee.ENGINE=ee.OS=q([p,b]),typeof o!==u?(i.exports&&(o=i.exports=ee),o.UAParser=ee):r.amdO?void 0===(n=(function(){return ee}).call(t,r,t,e))||(e.exports=n):typeof a!==u&&(a.UAParser=ee);var et=typeof a!==u&&(a.jQuery||a.Zepto);if(et&&!et.ua){var er=new ee;et.ua=er.getResult(),et.ua.get=function(){return er.getUA()},et.ua.set=function(e){er.setUA(e);var t=er.getResult();for(var r in t)et.ua[r]=t[r]}}}("object"==typeof window?window:this)}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}},n=!0;try{i[e].call(r.exports,r,r.exports,a),n=!1}finally{n&&delete o[e]}return r.exports}a.ab="//",e.exports=a(226)})()},84737:function(e,t,r){var n;n=r(23652),r(35883),r(28261),r(25371),r(40092),function(){var e=n.lib.BlockCipher,t=n.algo;let r=[0x243f6a88,0x85a308d3,0x13198a2e,0x3707344,0xa4093822,0x299f31d0,0x82efa98,0xec4e6c89,0x452821e6,0x38d01377,0xbe5466cf,0x34e90c6c,0xc0ac29b7,0xc97c50dd,0x3f84d5b5,0xb5470917,0x9216d5d9,0x8979fb1b],i=[[0xd1310ba6,0x98dfb5ac,0x2ffd72db,0xd01adfb7,0xb8e1afed,0x6a267e96,0xba7c9045,0xf12c7f99,0x24a19947,0xb3916cf7,0x801f2e2,0x858efc16,0x636920d8,0x71574e69,0xa458fea3,0xf4933d7e,0xd95748f,0x728eb658,0x718bcd58,0x82154aee,0x7b54a41d,0xc25a59b5,0x9c30d539,0x2af26013,0xc5d1b023,0x286085f0,0xca417918,0xb8db38ef,0x8e79dcb0,0x603a180e,0x6c9e0e8b,0xb01e8a3e,0xd71577c1,0xbd314b27,0x78af2fda,0x55605c60,0xe65525f3,0xaa55ab94,0x57489862,0x63e81440,0x55ca396a,0x2aab10b6,0xb4cc5c34,0x1141e8ce,0xa15486af,0x7c72e993,0xb3ee1411,0x636fbc2a,0x2ba9c55d,0x741831f6,0xce5c3e16,0x9b87931e,0xafd6ba33,0x6c24cf5c,0x7a325381,0x28958677,0x3b8f4898,0x6b4bb9af,0xc4bfe81b,0x66282193,0x61d809cc,0xfb21a991,0x487cac60,0x5dec8032,0xef845d5d,0xe98575b1,0xdc262302,0xeb651b88,0x23893e81,0xd396acc5,0xf6d6ff3,0x83f44239,0x2e0b4482,0xa4842004,0x69c8f04a,0x9e1f9b5e,0x21c66842,0xf6e96c9a,0x670c9c61,0xabd388f0,0x6a51a0d2,0xd8542f68,0x960fa728,0xab5133a3,0x6eef0b6c,0x137a3be4,0xba3bf050,0x7efb2a98,0xa1f1651d,0x39af0176,0x66ca593e,0x82430e88,0x8cee8619,0x456f9fb4,0x7d84a5c3,0x3b8b5ebe,0xe06f75d8,0x85c12073,0x401a449f,0x56c16aa6,0x4ed3aa62,0x363f7706,0x1bfedf72,0x429b023d,0x37d0d724,0xd00a1248,0xdb0fead3,0x49f1c09b,0x75372c9,0x80991b7b,0x25d479d8,0xf6e8def7,0xe3fe501a,0xb6794c3b,0x976ce0bd,0x4c006ba,0xc1a94fb6,0x409f60c4,0x5e5c9ec2,0x196a2463,0x68fb6faf,0x3e6c53b5,0x1339b2eb,0x3b52ec6f,0x6dfc511f,0x9b30952c,0xcc814544,0xaf5ebd09,0xbee3d004,0
379xde334afd,0x660f2807,0x192e4bb3,0xc0cba857,0x45c8740f,0xd20b5f39,0xb9d3fbdb,0x5579c0bd,0x1a60320a,0xd6a100c6,0x402c7279,0x679f25fe,0xfb1fa3cc,0x8ea5e9f8,0xdb3222f8,0x3c7516df,0xfd616b15,0x2f501ec8,0xad0552ab,0x323db5fa,0xfd238760,0x53317b48,0x3e00df82,0x9e5c57bb,0xca6f8ca0,0x1a87562e,0xdf1769db,0xd542a8f6,0x287effc3,0xac6732c6,0x8c4f5573,0x695b27b0,0xbbca58c8,0xe1ffa35d,0xb8f011a0,0x10fa3d98,0xfd2183b8,0x4afcb56c,0x2dd1d35b,0x9a53e479,0xb6f84565,0xd28e49bc,0x4bfb9790,0xe1ddf2da,0xa4cb7e33,0x62fb1341,0xcee4c6e8,0xef20cada,0x36774c01,0xd07e9efe,0x2bf11fb4,0x95dbda4d,0xae909198,0xeaad8e71,0x6b93d5a0,0xd08ed1d0,0xafc725e0,0x8e3c5b2f,0x8e7594b7,0x8ff6e2fb,0xf2122b64,0x8888b812,0x900df01c,0x4fad5ea0,0x688fc31c,0xd1cff191,0xb3a8c1ad,0x2f2f2218,0xbe0e1777,0xea752dfe,0x8b021fa1,0xe5a0cc0f,0xb56f74e8,0x18acf3d6,0xce89e299,0xb4a84fe0,0xfd13e0b7,0x7cc43b81,0xd2ada8d9,0x165fa266,0x80957705,0x93cc7314,0x211a1477,0xe6ad2065,0x77b5fa86,0xc75442f5,0xfb9d35cf,0xebcdaf0c,0x7b3e89a0,0xd6411bd3,0xae1e7e49,2428461,0x2071b35e,0x226800bb,0x57b8e0af,0x2464369b,0xf009b91e,0x5563911d,0x59dfa6aa,0x78c14389,0xd95a537f,0x207d5ba2,0x2e5b9c5,0x83260376,0x6295cfa9,0x11c81968,0x4e734a41,0xb3472dca,0x7b14a94a,0x1b510052,0x9a532915,0xd60f573f,0xbc9bc6e4,0x2b60a476,0x81e67400,0x8ba6fb5,0x571be91f,0xf296ec6b,0x2a0dd915,0xb6636521,0xe7b9f9b6,0xff34052e,0xc5855664,0x53b02d5d,0xa99f8fa1,0x8ba4799,0x6e85076a],[0x4b7a70e9,0xb5b32944,0xdb75092e,0xc4192623,290971e4,0x49a7df7d,0x9cee60b8,0x8fedb266,0xecaa8c71,0x699a17ff,0x5664526c,0xc2b19ee1,0x193602a5,0x75094c29,0xa0591340,0xe4183a3e,0x3f54989a,0x5b429d65,0x6b8fe4d6,0x99f73fd6,0xa1d29c07,0xefe830f5,0x4d2d38e6,0xf0255dc1,0x4cdd2086,0x8470eb26,0x6382e9c6,0x21ecc5e,0x9686b3f,0x3ebaefc9,0x3c971814,0x6b6a70a1,0x687f3584,0x52a0e286,0xb79c5305,0xaa500737,0x3e07841c,0x7fdeae5c,0x8e7d44ec,0x5716f2b8,0xb03ada37,0xf0500c0d,0xf01c1f04,0x200b3ff,0xae0cf51a,0x3cb574b2,0x25837a58,0xdc0921bd,0xd19113f9,0x7ca92ff6,0x94324773,0x22f54701,0x3ae5e581,0x37c2dadc,0xc8b57634,0x9af3dda7,0xa9446146,0xfd0030e,0xecc8c73e,0xa4751e41,0xe238cd99,0x3bea0e2f,0x3280bba1,0x183eb331,0x4e548b38,0x4f6db908,0x6f420d03,0xf60a04bf,0x2cb81290,0x24977c79,0x5679b072,0xbcaf89af,0xde9a771f,0xd9930810,0xb38bae12,0xdccf3f2e,0x5512721f,0x2e6b7124,0x501adde6,0x9f84cd87,0x7a584718,0x7408da17,0xbc9f9abc,0xe94b7d8c,0xec7aec3a,0xdb851dfa,0x63094366,0xc464c3d2,0xef1c1847,0x3215d908,0xdd433b37,0x24c2ba16,0x12a14d43,0x2a65c451,0x50940002,0x133ae4dd,0x71dff89e,0x10314e55,0x81ac77d6,0x5f11199b,0x43556f1,0xd7a3c76b,0x3c11183b,0x5924a509,0xf28fe6ed,0x97f1fbfa,0x9ebabf2c,0x1e153c6e,0x86e34570,0xeae96fb1,0x860e5e0a,0x5a3e2ab3,0x771fe71c,0x4e3d06fa,0x2965dcb9,0x99e71d0f,0x803e89d6,0x5266c825,0x2e4cc978,0x9c10b36a,0xc6150eba,0x94e2ea78,0xa5fc3c53,0x1e0a2df4,0xf2f74ea7,0x361d2b3d,0x1939260f,0x19c27960,0x5223a708,0xf71312b6,0xebadfe6e,0xeac31f66,0xe3bc4595,0xa67bc883,0xb17f37d1,0x18cff28,0xc332ddef,0xbe6c5aa5,0x65582185,0x68ab9802,0xeecea50f,0xdb2f953b,0x2aef7dad,0x5b6e2f84,0x1521b628,0x29076170,0xecdd4775,0x619f1510,0x13cca830,0xeb61bd96,0x334fe1e,0xaa0363cf,0xb5735c90,0x4c70a239,0xd59e9e0b,0xcbaade14,0xeecc86bc,0x60622ca7,0x9cab5cab,0xb2f3846e,0x648b1eaf,0x19bdf0ca,0xa02369b9,0x655abb50,0x40685a32,0x3c2ab4b3,0x319ee9d5,0xc021b8f7,0x9b540b19,0x875fa099,0x95f7997e,0x623d7da8,0xf837889a,0x97e32d77,0x11ed935f,0x16681281,0xe358829,0xc7e61fd6,0x96dedfa1,0x7858ba99,0x57f584a5,0x1b227263,0x9b83c3ff,0x1ac24696,0xcdb30aeb,0x532e3054,0x8fd948e4,0x6dbc3128,0x58ebf2ef,0x34c6ffea,0xfe28ed61,0xee7c3c73,0x5d4a14d9,0xe864b7e3,0x42105d14,0x203e13e0,0x45eee2b6,0xa3aaabea,0xdb6c4f15,0xfacb4fd0,0xc742f442,0xef6abbb5,0x654f3b1d,0x41cd2105,0xd81e799e,0x86854dc7,0xe44b476a,0x3d816250,0xcf62a1f2,0x5b8d2646,0xfc8883a0,0xc1c7b6a3,0x7f1524c3,0x69cb7492,0x47848a0b,0x5692b285,0x95bbf00,0xad19489d,0x1462b174,0x23820e00,0x58428d2a,0xc55f5ea,0x1dadf43e,0x233f7061,0x3372f092,0x8d937e41,0xd65fecf1,0x6c223bdb,0x7cde3759,0xcbee7460,0x4085f2a7,0xce77326e,0xa6078084,0x19f8509e,0xe8efd855,0x61d99735,0xa969a7aa,0xc50c06c2,0x5a04abfc,0x800bcadc,0x9e447a2e,0xc3453484,0xfdd56705,0xe1e9ec9,0xdb73dbd3,0x105588cd,0x675fda79,0xe3674340,0xc5c43465,0x713e38d8,0x3d28f89e,0xf16dff20,0x153e21e7,0x8fb03d4a,0xe6e39f2b,0xdb83adf7],[0xe93d5a68,0x948140f7,0xf64c261c,0x94692934,0x411520f7,0x7602d4f7,0xbcf46b2e,0xd4a20068,0xd4082471,0x3320f46a,0x43b7d4b7,0x500061af,0x1e39f62e,0x97244546,0x14214f74,0xbf8b8840,0x4d95fc1d,0x96b591af,0x70f4ddd3,0x66a02f45,0xbfbc09ec,0x3bd9785,0x7fac6dd0,0x31cb8504,0x96eb27b3,0x55fd3941,0xda2547e6,0xabca0a9a,0x28507825,0x530429f4,0xa2c86da,0xe9b66dfb,0x68dc1462,0xd7486900,0x680ec0a4,0x27a18dee,0x4f3ffea2,0xe887ad8c,0xb58ce006,0x7af4d6b6,0xaace1e7c,0xd3375fec,0xce78a399,0
379x406b2a42,0x20fe9e35,0xd9f385b9,0xee39d7ab,0x3b124e8b,0x1dc9faf7,0x4b6d1856,0x26a36631,0xeae397b2,0x3a6efa74,0xdd5b4332,0x6841e7f7,0xca7820fb,0xfb0af54e,0xd8feb397,0x454056ac,0xba489527,0x55533a3a,0x20838d87,0xfe6ba9b7,0xd096954b,0x55a867bc,0xa1159a58,0xcca92963,0x99e1db33,0xa62a4a56,0x3f3125f9,0x5ef47e1c,0x9029317c,0xfdf8e802,0x4272f70,0x80bb155c,0x5282ce3,0x95c11548,0xe4c66d22,0x48c1133f,0xc70f86dc,0x7f9c9ee,0x41041f0f,0x404779a4,0x5d886e17,0x325f51eb,0xd59bc0d1,0xf2bcc18f,0x41113564,0x257b7834,0x602a9c60,0xdff8e8a3,0x1f636c1b,0xe12b4c2,0x2e1329e,0xaf664fd1,0xcad18115,0x6b2395e0,0x333e92e1,0x3b240b62,0xeebeb922,0x85b2a20e,0xe6ba0d99,0xde720c8c,0x2da2f728,0xd0127845,0x95b794fd,0x647d0862,0xe7ccf5f0,0x5449a36f,0x877d48fa,0xc39dfd27,0xf33e8d1e,0xa476341,0x992eff74,0x3a6f6eab,0xf4f8fd37,0xa812dc60,0xa1ebddf8,0x991be14c,0xdb6e6b0d,0xc67b5510,0x6d672c37,0x2765d43b,0xdcd0e804,0xf1290dc7,0xcc00ffa3,0xb5390f92,0x690fed0b,0x667b9ffb,0xcedb7d9c,0xa091cf0b,0xd9155ea3,0xbb132f88,0x515bad24,0x7b9479bf,0x763bd6eb,0x37392eb3,0xcc115979,0x8026e297,0xf42e312d,0x6842ada7,0xc66a2b3b,0x12754ccc,0x782ef11c,0x6a124237,0xb79251e7,0x6a1bbe6,0x4bfb6350,0x1a6b1018,0x11caedfa,0x3d25bdd8,0xe2e1c3c9,0x44421659,0xa121386,0xd90cec6e,0xd5abea2a,0x64af674e,0xda86a85f,0xbebfe988,0x64e4c3fe,0x9dbc8057,0xf0f7c086,0x60787bf8,0x6003604d,0xd1fd8346,0xf6381fb0,0x7745ae04,0xd736fccc,0x83426b33,0xf01eab71,0xb0804187,0x3c005e5f,0x77a057be,0xbde8ae24,0x55464299,0xbf582e61,0x4e58f48f,0xf2ddfda2,0xf474ef38,0x8789bdc2,0x5366f9c3,0xc8b38e74,0xb475f255,0x46fcd9b9,0x7aeb2661,0x8b1ddf84,0x846a0e79,0x915f95e2,0x466e598e,0x20b45770,0x8cd55591,0xc902de4c,0xb90bace1,0xbb8205d0,0x11a86248,0x7574a99e,0xb77f19b6,0xe0a9dc09,0x662d09a1,0xc4324633,0xe85a1f02,0x9f0be8c,0x4a99a025,0x1d6efe10,0x1ab93d1d,0xba5a4df,0xa186f20f,0x2868f169,0xdcb7da83,0x573906fe,0xa1e2ce9b,0x4fcd7f52,0x50115e01,0xa70683fa,0xa002b5c4,0xde6d027,0x9af88c27,0x773f8641,0xc3604c06,0x61a806b5,0xf0177a28,0xc0f586e0,6314154,0x30dc7d62,0x11e69ed7,0x2338ea63,0x53c2dd94,0xc2c21634,0xbbcbee56,0x90bcb6de,0xebfc7da1,0xce591d76,0x6f05e409,0x4b7c0188,0x39720a3d,0x7c927c24,0x86e3725f,0x724d9db9,0x1ac15bb4,0xd39eb8fc,0xed545578,0x8fca5b5,0xd83d7cd3,0x4dad0fc4,0x1e50ef5e,0xb161e6f8,0xa28514d9,0x6c51133c,0x6fd5c7e7,0x56e14ec4,0x362abfce,0xddc6c837,0xd79a3234,0x92638212,0x670efa8e,0x406000e0],[0x3a39ce37,0xd3faf5cf,0xabc27737,0x5ac52d1b,0x5cb0679e,0x4fa33742,0xd3822740,0x99bc9bbe,0xd5118e9d,0xbf0f7315,0xd62d1c7e,0xc700c47b,0xb78c1b6b,0x21a19045,0xb26eb1be,0x6a366eb4,0x5748ab2f,0xbc946e79,0xc6a376d2,0x6549c2c8,0x530ff8ee,0x468dde7d,0xd5730a1d,0x4cd04dc6,0x2939bbdb,0xa9ba4650,0xac9526e8,0xbe5ee304,0xa1fad5f0,0x6a2d519a,0x63ef8ce2,0x9a86ee22,0xc089c2b8,0x43242ef6,0xa51e03aa,0x9cf2d0a4,0x83c061ba,0x9be96a4d,0x8fe51550,0xba645bd6,0x2826a2f9,0xa73a3ae1,0x4ba99586,0xef5562e9,0xc72fefd3,0xf752f7da,0x3f046f69,0x77fa0a59,0x80e4a915,0x87b08601,0x9b09e6ad,0x3b3ee593,0xe990fd5a,0x9e34d797,0x2cf0b7d9,0x22b8b51,0x96d5ac3a,0x17da67d,0xd1cf3ed6,0x7c7d2d28,0x1f9f25cf,0xadf2b89b,0x5ad6b472,0x5a88f54c,0xe029ac71,0xe019a5e6,0x47b0acfd,0xed93fa9b,0xe8d3c48d,0x283b57cc,0xf8d56629,0x79132e28,0x785f0191,0xed756055,0xf7960e44,0xe3d35e8c,0x15056dd4,0x88f46dba,0x3a16125,0x564f0bd,0xc3eb9e15,0x3c9057a2,0x97271aec,0xa93a072a,0x1b3f6d9b,0x1e6321f5,0xf59c66fb,0x26dcf319,0x7533d928,0xb155fdf5,0x3563482,0x8aba3cbb,0x28517711,0xc20ad9f8,0xabcc5167,0xccad925f,0x4de81751,0x3830dc8e,0x379d5862,0x9320f991,0xea7a90c2,0xfb3e7bce,0x5121ce64,0x774fbe32,0xa8b6e37e,0xc3293d46,0x48de5369,0x6413e680,0xa2ae0810,0xdd6db224,0x69852dfd,0x9072166,0xb39a460a,0x6445c0dd,0x586cdecf,0x1c20c8ae,0x5bbef7dd,0x1b588d40,0xccd2017f,0x6bb4e3bb,0xdda26a7e,0x3a59ff45,0x3e350a44,0xbcb4cdd5,0x72eacea8,0xfa6484bb,0x8d6612ae,0xbf3c6f47,0xd29be463,0x542f5d9e,0xaec2771b,0xf64e6370,0x740e0d8d,0xe75b1357,0xf8721671,0xaf537d5d,0x4040cb08,0x4eb4e2cc,0x34d2466a,0x115af84,3786409e3,0x95983a1d,0x6b89fb4,0xce6ea048,0x6f3f3b82,0x3520ab82,0x11a1d4b,0x277227f8,0x611560b1,0xe7933fdc,0xbb3a792b,0x344525bd,0xa08839e1,0x51ce794b,0x2f32c9b7,0xa01fbac9,0xe01cc87e,0xbcc7d1f6,0xcf0111c3,0xa1e8aac7,0x1a908749,0xd44fbd9a,0xd0dadecb,0xd50ada38,0x339c32a,0xc6913667,0x8df9317c,0xe0b12b4f,0xf79e59b7,0x43f5bb3a,0xf2d519ff,0x27d9459c,0xbf97222c,0x15e6fc2a,0xf91fc71,0x9b941525,0xfae59361,0xceb69ceb,0xc2a86459,0x12baa8d1,0xb6c1075e,0xe3056a0c,0x10d25065,0xcb03a442,0xe0ec6e0e,0x1698db3b,0x4c98a0be,0x3278e964,0x9f1f9532,0xe0d392df,0xd3a0342b,0x8971f21e,0x1b0a7441,0x4ba3348c,0xc5be7120,0xc37632d8,0xdf359f8d,0x9b992f2e,0xe60b6f47,0xfe3f11d,0xe54cda54,0x1edad891,0xce6279cf,0xcd3e7e6f,0x1618b166,0xfd2c1d05,0x848fd2c5,0xf6fb2299,0xf523f357,0xa6327623,0x93a83531,0x56cccd02,0xacf08162,0x5a75ebb5,0x6e163697,0x88d273cc,0xde966292,0x81b949d0,0x4c50901b,0x71c65614,0xe6c6c7bd,0x327a140a,0x45e1d006,0xc3f27b9a,0xc9aa53fd,0x62a80f00,0xbb25bfe2,0x35bdd2f6,0x71126905,0xb2040222,0xb6cbcf7c,0xcd769c2b,0x53113ec0,0x1640e3d3,0x38abbd60,0x2547adf0,0xba38209c,0xf746ce76,0x77afa1c5,0x20756060,0x85cbfe4e,0x8ae88dd8,0x7aaaf9b0,0x4cf9aa7e,0x1948c25c,0x2fb8a8c,0x1c36ae4,0xd6ebe1f9,0x90d4f869,0xa65cdea0,0x3f09252d,0xc208e69f,0xb74e6132,0xce77e25b,0x578fdfe3,0x3ac372e6]];var o={pbox:[],sbox:[]};function a(e,t){let r=e.sbox[0][t>>24&255]+e.sbox[1][t>>16&255];return r^=e.sbox[2][t>>8&255],r+=e.sbox[3][255&t]}function s(e,t,r){let n,i=t,o=r;for(let t=0;t<16;++t)i^=e.pbox[t],o=a(e,i)^o,n=i,i=o,o=n;return n=i,i=o,o=n^e.pbox[16],{left:i^=e.pbox[17],right:o}}var c=t.Blowfish=e.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key;!function(e,t,n){for(let t=0;t<4;t++){e.sbox[t]=[];for(let r=0;r<256;r++)e.sbox[t][r]=i[t][r]}let o=0;for(let i=0;i<18;i++)e.pbox[i]=r[i]^t[o],++o>=n&&(o=0);let a=0,c=0,u=0;for(let t=0;t<18;t+=2)a=(u=s(e,a,c)).left,c=u.right,e.pbox[t]=a,e.pbox[t+1]=c;for(let t=0;t<4;t++)for(let r=0;r<256;r+=2)a=(u=s(e,a,c)).left,c=u.right,e.sbox[t][r]=a,e.sbox[t][r+1]=c}(o,e.words,e.sigBytes/4)}},encryptBlock:function(e,t){var r=s(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},decryptBlock:function(e,t){var r=function(e,t,r){let n,i=t,o=r;for(let t=17;t>1;--t)i^=e.pbox[t],o=a(e,i)^o,n=i,i=o,o=n;return n=i,i=o,o=n^e.pbox[1],{left:i^=e.pbox[0],right:o}}(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});n.Blowfish=e._createHelper(c)}(),e.exports=n.Blowfish},84922:function(e,t,r){var n,i,o,a,s,c,u,l;n=r(23652),r(13656),r(8832),o=(i=n.lib).Base,a=i.WordArray,c=(s=n.algo).SHA256,u=s.HMAC,l=s.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=u.create(r.hasher,e),i=a.create(),o=a.create([1]),s=i.words,c=o.words,l=r.keySize,d=r.iterations;s.length<l;){var f=n.update(t).finalize(o);n.reset();for(var h=f.words,p=h.length,y=f,m=1;m<d;m++){y=n.finalize(y),n.reset();for(var b=y.words,g=0;g<p;g++)h[g]^=b[g]}i.concat(f),c[0]++}return i.sigBytes=4*l,i}}),n.PBKDF2=function(e,t,r){return l.create(r).compute(e,t)},e.exports=n.PBKDF2},85744:(e,t,r)=>{"use strict";
379Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=r(17828)},85859:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>{if(!function(e){return"object"==typeof e&&null!==e}(e)||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},86200:function(e){(function(){var t,r,n,i=[].slice,o={}.hasOwnProperty;r=function(e){return!!e&&"[object Function]"===Object.prototype.toString.call(e)},n=function(e){var t;return!!e&&("function"==(t=typeof e)||"object"===t)},t=function(e){return r(Array.isArray)?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},e.exports.assign=function(){var e,t,n,a,s,c;if(c=arguments[0],s=2<=arguments.length?i.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(e=0,n=s.length;e<n;e++)if(null!=(a=s[e]))for(t in a)o.call(a,t)&&(c[t]=a[t]);return c},e.exports.isFunction=r,e.exports.isObject=n,e.exports.isArray=t,e.exports.isEmpty=function(e){var r;if(t(e))return!e.length;for(r in e)if(o.call(e,r))return!1;return!0},e.exports.isPlainObject=function(e){var t,r;return n(e)&&(r=Object.getPrototypeOf(e))&&(t=r.constructor)&&"function"==typeof t&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)},e.exports.getValue=function(e){return r(e.valueOf)?e.valueOf():e}}).call(this)},86560:function(e,t,r){var n;n=r(23652),r(40092),n.pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.exports=n.pad.Iso10126},87101:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Postpone:function(){return S},abortAndThrowOnSynchronousRequestDataAccess:function(){return _},abortOnSynchronousPlatformIOAccess:function(){return x},accessedDynamicData:function(){return D},annotateDynamicAccess:function(){return M},consumeDynamicAccess:function(){return I},createDynamicTrackingState:function(){return f},createDynamicValidationState:function(){return h},createHangingInputAbortSignal:function(){return L},createPostponedAbortSignal:function(){return U},formatDynamicAPIAccesses:function(){return N},getFirstDynamicReason:function(){return p},isDynamicPostpone:function(){return k},isPrerenderInterruptedError:function(){return C},markCurrentScopeAsDynamic:function(){return y},postponeWithTracking:function(){return A},throwIfDisallowedDynamic:function(){return z},throwToInterruptStaticGeneration:function(){return b},trackAllowedDynamicAccess:function(){return K},trackDynamicDataInDynamicRender:function(){return g},trackFallbackParamAccessed:function(){return m},trackSynchronousPlatformIOAccessInDev:function(){return v},trackSynchronousRequestDataAccessInDev:function(){return E},useDynamicRouteParams:function(){return H}});let n=function(e){return e&&e.__esModule?e:{default:e}}(r(12115)),i=r(39439),o=r(11881),a=r(9597),s=r(85744),c=r(44536),u=r(38287),l=r(4117),d="function"==typeof n.default.unstable_postpone;function f(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicExpression:void 0,syncDynamicErrorWithStack:null}}function h(){return{hasSuspendedDynamic:!1,hasDynamicMetadata:!1,hasDynamicViewport:!1,hasSyncDynamicErrors:!1,dynamicErrors:[]}}function p(e){var t;return null==(t=e.dynamicAccesses[0])?void 0:t.expression}function y(e,t,r){if((!t||"cache"!==t.type&&"unstable-cache"!==t.type)&&!e.forceDynamic&&!e.forceStatic){if(e.dynamicShouldError)throw Object.defineProperty(new o.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,
379configurable:!0});if(t){if("prerender-ppr"===t.type)A(e.route,r,t.dynamicTracking);else if("prerender-legacy"===t.type){t.revalidate=0;let n=Object.defineProperty(new i.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n}}}}function m(e,t){let r=a.workUnitAsyncStorage.getStore();r&&"prerender-ppr"===r.type&&A(e.route,t,r.dynamicTracking)}function b(e,t,r){let n=Object.defineProperty(new i.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw r.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}function g(e,t){t&&"cache"!==t.type&&"unstable-cache"!==t.type&&("prerender"===t.type||"prerender-legacy"===t.type)&&(t.revalidate=0)}function w(e,t,r){let n=P(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`);r.controller.abort(n);let i=r.dynamicTracking;i&&i.dynamicAccesses.push({stack:i.isDebugDynamicAccesses?Error().stack:void 0,expression:t})}function x(e,t,r,n){let i=n.dynamicTracking;i&&null===i.syncDynamicErrorWithStack&&(i.syncDynamicExpression=t,i.syncDynamicErrorWithStack=r),w(e,t,n)}function v(e){e.prerenderPhase=!1}function _(e,t,r,n){if(!1===n.controller.signal.aborted){let i=n.dynamicTracking;i&&null===i.syncDynamicErrorWithStack&&(i.syncDynamicExpression=t,i.syncDynamicErrorWithStack=r,!0===n.validating&&(i.syncDynamicLogged=!0)),w(e,t,n)}throw P(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)}let E=v;function S({reason:e,route:t}){let r=a.workUnitAsyncStorage.getStore();A(t,e,r&&"prerender-ppr"===r.type?r.dynamicTracking:null)}function A(e,t,r){j(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:t}),n.default.unstable_postpone(T(e,t))}function T(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function k(e){return"object"==typeof e&&null!==e&&"string"==typeof e.message&&R(e.message)}function R(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===R(T("%%%","^^^")))throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});let O="NEXT_PRERENDER_INTERRUPTED";function P(e){let t=Object.defineProperty(Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t.digest=O,t}function C(e){return"object"==typeof e&&null!==e&&e.digest===O&&"name"in e&&"message"in e&&e instanceof Error}function D(e){return e.length>0}function I(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function N(e){return e.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" (<anonymous>)")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}:
380${t}`))}function j(){if(!d)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})}function U(e){j();let t=new AbortController;try{n.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}function L(e){let t=new AbortController;return e.cacheSignal?e.cacheSignal.inputReady().then(()=>{t.abort()}):(0,l.scheduleOnNextTick)(()=>t.abort()),t.signal}function M(e,t){let r=t.dynamicTracking;r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:e})}function H(e){let t=s.workAsyncStorage.getStore();
380if(t&&t.isStaticGeneration&&t.fallbackRouteParams&&t.fallbackRouteParams.size>0){let r=a.workUnitAsyncStorage.getStore();r&&("prerender"===r.type?n.default.use((0,c.makeHangingPromise)(r.renderSignal,e)):"prerender-ppr"===r.type?A(t.route,e,r.dynamicTracking):"prerender-legacy"===r.type&&b(e,t,r))}}let B=/\n\s+at Suspense \(<anonymous>\)/,W=RegExp(`\\n\\s+at ${u.METADATA_BOUNDARY_NAME}[\\n\\s]`),$=RegExp(`\\n\\s+at ${u.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),F=RegExp(`\\n\\s+at ${u.OUTLET_BOUNDARY_NAME}[\\n\\s]`);function K(e,t,r,n,i){if(!F.test(t)){if(W.test(t)){r.hasDynamicMetadata=!0;return}if($.test(t)){r.hasDynamicViewport=!0;return}if(B.test(t)){r.hasSuspendedDynamic=!0;return}else if(n.syncDynamicErrorWithStack||i.syncDynamicErrorWithStack){r.hasSyncDynamicErrors=!0;return}else{let n=function(e,t){let r=Object.defineProperty(Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r.stack="Error: "+e+t,r}(`Route "${e}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`,t);r.dynamicErrors.push(n);return}}}function z(e,t,r,n){let i,a,s;if(r.syncDynamicErrorWithStack?(i=r.syncDynamicErrorWithStack,a=r.syncDynamicExpression,s=!0===r.syncDynamicLogged):n.syncDynamicErrorWithStack?(i=n.syncDynamicErrorWithStack,a=n.syncDynamicExpression,s=!0===n.syncDynamicLogged):(i=null,a=void 0,s=!1),t.hasSyncDynamicErrors&&i)throw s||console.error(i),new o.StaticGenBailoutError;let c=t.dynamicErrors;if(c.length){for(let e=0;e<c.length;e++)console.error(c[e]);throw new o.StaticGenBailoutError}if(!t.hasSuspendedDynamic){if(t.hasDynamicMetadata){if(i)throw console.error(i),Object.defineProperty(new o.StaticGenBailoutError(`Route "${e}" has a \`generateMetadata\` that could not finish rendering before ${a} was used. Follow the instructions in the error for this expression to resolve.`),"__NEXT_ERROR_CODE",{value:"E608",enumerable:!1,configurable:!0});throw Object.defineProperty(new o.StaticGenBailoutError(`Route "${e}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or external data (\`fetch(...)\`, etc...) but the rest of the route was static or only used cached data (\`"use cache"\`). If you expected this route to be prerenderable update your \`generateMetadata\` to not use Request data and only use cached external data. Otherwise, add \`await connection()\` somewhere within this route to indicate explicitly it should not be prerendered.`),"__NEXT_ERROR_CODE",{value:"E534",enumerable:!1,configurable:!0})}else if(t.hasDynamicViewport){if(i)throw console.error(i),Object.defineProperty(new o.StaticGenBailoutError(`Route "${e}" has a \`generateViewport\` that could not finish rendering before ${a} was used. Follow the instructions in the error for this expression to resolve.`),"__NEXT_ERROR_CODE",{value:"E573",enumerable:!1,configurable:!0});throw Object.defineProperty(new o.StaticGenBailoutError(`Route "${e}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or external data (\`fetch(...)\`, etc...) but the rest of the route was static or only used cached data (\`"use cache"\`). If you expected this route to be prerenderable update your \`generateViewport\` to not use Request data and only use cached external data. Otherwise, add \`await connection()\` somewhere within this route to indicate explicitly it should not be prerendered.`),"__NEXT_ERROR_CODE",{value:"E590",enumerable:!1,configurable:!0})}}}},87559:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>u,Rb:()=>a,T0:()=>s,Ye:()=>c,h2:()=>d,ie:()=>i,n:()=>o});
380class n extends Error{static code="ERR_JOSE_GENERIC";code="ERR_JOSE_GENERIC";constructor(e,t){super(e,t),this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}class i extends n{static code="ERR_JWT_CLAIM_VALIDATION_FAILED";code="ERR_JWT_CLAIM_VALIDATION_FAILED";claim;reason;payload;constructor(e,t,r="unspecified",n="unspecified"){super(e,{cause:{claim:r,reason:n,payload:t}}),this.claim=r,this.reason=n,this.payload=t}}class o extends n{static code="ERR_JWT_EXPIRED";code="ERR_JWT_EXPIRED";claim;reason;payload;constructor(e,t,r="unspecified",n="unspecified"){super(e,{cause:{claim:r,reason:n,payload:t}}),this.claim=r,this.reason=n,this.payload=t}}class a extends n{static code="ERR_JOSE_ALG_NOT_ALLOWED";code="ERR_JOSE_ALG_NOT_ALLOWED"}class s extends n{static code="ERR_JOSE_NOT_SUPPORTED";code="ERR_JOSE_NOT_SUPPORTED"}class c extends n{static code="ERR_JWS_INVALID";code="ERR_JWS_INVALID"}class u extends n{static code="ERR_JWT_INVALID";code="ERR_JWT_INVALID"}class l extends n{[Symbol.asyncIterator];static code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";constructor(e="multiple matching keys found in the JSON Web Key Set",t){super(e,t)}}class d extends n{static code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";constructor(e="signature verification failed",t){super(e,t)}}},87793:function(e,t,r){e.exports=function(e){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,r=t.init;(t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)}).prototype=t}return e.lib.WordArray}(r(23652))},88606:function(e,t,r){(function(){var t,n=function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t=r(28672),e.exports=function(e){function r(e,n){if(r.__super__.constructor.call(this,e),null==n)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=t.Comment,this.value=this.stringify.comment(n)}return n(r,e),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))},r}(r(51816))}).call(this)},90229:function(e,t,r){(function(){var t,n=function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;t=r(28672),e.exports=function(e){function r(e,n){if(r.__super__.constructor.call(this,e),null==n)throw Error("Missing raw text. "+this.debugInfo());this.type=t.Raw,this.value=this.stringify.raw(n)}return n(r,e),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(e){return this.options.writer.raw(this,this.options.writer.filterOptions(e))},r}(r(20117))}).call(this)},90473:(e,t,r)=>{"use strict";function n(e,t,...r){if((r=r.filter(Boolean)).length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}r.d(t,{A:()=>i,t:()=>o});let i=(e,...t)=>n("Key must be ",e,...t);function o(e,t,...r){return n(`Key for the ${e} algorithm must be `,t,...r)}},90732:function(e,t,r){(function(){"use strict";var e,n,i,o,a=function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;n=r(47688),e=r(62169),i=r(50873),o=r(19),t.defaults=n.defaults,t.processors=o,t.ValidationError=function(e){function t(e){this.message=e}return a(t,e),t}(Error),t.Builder=e.Builder,t.Parser=i.Parser,t.parseString=i.parseString,t.parseStringPromise=i.parseStringPromise}).call(this)},91498:(e,t)=>
380{"use strict";function r(){throw Object.defineProperty(Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead'),"__NEXT_ERROR_CODE",{value:"E183",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageResponse",{enumerable:!0,get:function(){return r}})},91623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let n=r(66361),i=r(84074),o=r(15019),a=r(1950);function s(e){let t=(0,a.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,o.addPathSuffix)((0,i.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,i.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,o.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},91706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"connection",{enumerable:!0,get:function(){return u}});let n=r(85744),i=r(9597),o=r(87101),a=r(11881),s=r(44536),c=r(65867);function u(){let e=n.workAsyncStorage.getStore(),t=i.workUnitAsyncStorage.getStore();if(e){if(t&&"after"===t.phase&&!(0,c.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${e.route} used "connection" inside "after(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but "after(...)" executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E186",enumerable:!1,configurable:!0});if(e.forceStatic)return Promise.resolve(void 0);if(t){if("cache"===t.type)throw Object.defineProperty(Error(`Route ${e.route} used "connection" inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E111",enumerable:!1,configurable:!0});else if("unstable-cache"===t.type)throw Object.defineProperty(Error(`Route ${e.route} used "connection" inside a function cached with "unstable_cache(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E1",enumerable:!1,configurable:!0})}if(e.dynamicShouldError)throw Object.defineProperty(new a.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E562",enumerable:!1,configurable:!0});if(t)if("prerender"===t.type)return(0,s.makeHangingPromise)(t.renderSignal,"`connection()`");else"prerender-ppr"===t.type?(0,o.postponeWithTracking)(e.route,"connection",t.dynamicTracking):"prerender-legacy"===t.type&&(0,o.throwToInterruptStaticGeneration)("connection",e,t);(0,o.trackDynamicDataInDynamicRender)(e,t)}return Promise.resolve(void 0)}},92535:(e,t,r)=>{"use strict";function n(e){return{id:"linkedin",name:"LinkedIn",type:"oidc",client:{token_endpoint_auth_method:"client_secret_post"},issuer:"https://www.linkedin.com/oauth",style:{bg:"#069",text:"#fff"},checks:["state"],options:e}}r.d(t,{A:()=>n})},93107:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return r}});class r{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},93880:function(e,t,r){(function(){var t,n,i,o=function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},a={}.hasOwnProperty;i=r(86200).isObject,n=r(20117),t=r(28672),e.exports=function(e){function r(e,n,o,a){if(r.__super__.constructor.call(this,e),null==o)throw Error("Missing DTD entity name. "+this.debugInfo(o));if(null==a)throw Error("Missing DTD entity value. "+this.debugInfo(o));if(this.pe=!!n,this.name=this.stringify.name(o),this.type=t.EntityDeclaration,i(a)){if(!a.pubID&&!a.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(o));if(a.pubID&&!a.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(o));if(this.internal=!1,null!=a.pubID&&(this.pubID=this.stringify.dtdPubID(a.pubID)),null!=a.sysID&&(this.sysID=this.stringify.dtdSysID(a.sysID)),null!=a.nData&&(this.nData=this.stringify.dtdNData(a.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(o))}else this.value=this.stringify.dtdEntityValue(a),this.internal=!0}return o(r,e),Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(r.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"xmlVersion",{get:function(){return null}}),r.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},r}(n)}).call(this)},94068:function(e,t,r){var n,i,o,a,s,c,u;n=r(23652),r(51609),r(9349),o=(i=n.x64).Word,a=i.WordArray,c=(s=n.algo).SHA512,u=s.SHA384=c.extend({_doReset:function(){this._hash=new a.init([new o.init(0xcbbb9d5d,0xc1059ed8),new o.init(0x629a292a,0x367cd507),new o.init(0x9159015a,0x3070dd17),new o.init(0x152fecd8,0xf70e5939),new o.init(0x67332667,0xffc00b31),new o.init(0x8eb44a87,0x68581511),new o.init(0xdb0c2e0d,0x64f98fa7),new o.init(0x47b5481d,0xbefa4fa4)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=c._createHelper(u),n.HmacSHA384=c._createHmacHelper(u),e.exports=n.SHA384},96149:(e,t,r)=>{"use strict";
380Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){Object.keys(e).forEach(function(r){"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})})}(r(98247),t)},97700:function(e){(function(){e.exports=function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.getNamedItem=function(e){return this.nodes[e]},e.prototype.setNamedItem=function(e){var t;return t=this.nodes[e.nodeName],this.nodes[e.nodeName]=e,t||null},e.prototype.removeNamedItem=function(e){var t;return t=this.nodes[e],delete this.nodes[e],t||null},e.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null},e.prototype.getNamedItemNS=function(e,t){throw Error("This DOM method is not implemented.")},e.prototype.setNamedItemNS=function(e){throw Error("This DOM method is not implemented.")},e.prototype.removeNamedItemNS=function(e,t){throw Error("This DOM method is not implemented.")},e}()}).call(this)},98247:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"after",{enumerable:!0,get:function(){return i}});let n=r(85744);function i(e){let t=n.workAsyncStorage.getStore();if(!t)throw Object.defineProperty(Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"),"__NEXT_ERROR_CODE",{value:"E468",enumerable:!1,configurable:!0});let{afterContext:r}=t;return r.after(e)}},99422:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(28155).createAsyncLocalStorage)()}}]);
381//# sourceMappingURL=7859-183f744a44df8db2.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.