vendor: 4,871 bytes, lines 1-2
1/*! For license information please see main.897b8cb2.js.LICENSE.txt */ 2!function(){var e={926:function(e,t,n){e.exports=function(){var e=e||function(e,t){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(480)}catch(v){}var i=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(v){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},s=o.lib={},u=s.Base={extend:function(e){var t=a(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)}},l=s.WordArray=u.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||f).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(i());return new l.init(t,e)}}),c=o.enc={},f=c.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},d=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},p=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},h=s.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,a=r.sigBytes,o=this.blockSize,s=a/(4*o),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,c=e.min(4*u,a);if(u){for(var f=0;f<u;f+=o)this._doProcessBlock(i,f);n=i.splice(0,u),r.sigBytes-=c}return new l.init(n,c)},clone:function(){var e=u.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(s.Hasher=h.extend({cfg:u.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.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,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}}),o.algo={});return o}(Math);return e}()},713:function(e,t,n){!function(t,r){var i;e.exports=(i=n(926),function(){var e=i,t=e.lib.WordArray;function n(e,n,r){for(var i=[],a=0,o=0;o<n;o++)if(o%4){var s=r[e.charCodeAt(o-1)]<<o%4*2|r[e.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return t.create(i,a)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],a=0;a<n;a+=3)for(var o=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)i.push(r.charAt(o>>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<r.length;a++)i[r.charCodeAt(a)]=a}var o=r.charAt(64);if(o){var s=e.indexOf(o);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/="}}(),i.enc.Base64)}()},886:function(e,t,n){!function(t,r){var i;e.exports=(i=n(926),i.enc.Utf8)}()},517:function(e,t,n){!function(t,r){var i;e.exports=(i=n(926),function(e){var t=i,n=t.lib,r=n.WordArray,a=n.Hasher,o=t.algo,s=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),u[i]=n(e.pow(r,1/3)),i++),r++}();var l=[],c=o.SHA256=a.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],f=n[6],d=n[7],p=0;p<64;p++){if(p<16)l[p]=0|e[t+p];else{var h=l[p-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,v=l[p-2],m=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;l[p]=g+l[p-7]+m+l[p-16]}var y=r&i^r&a^i&a,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&f)+u[p]+l[p];d=f,f=c,c=s,s=o+_|0,o=a,a=i,i=r,r=_+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=a._createHelper(c),t.HmacSHA256=a._createHmacHelper(c)}(Math),i.SHA256)}()},463:function(e,t,n){"use strict";var r=n(791),i=n(296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function u(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)o.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function g(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;
vendor: 17,537 bytes, line 2
2if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,y);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),T=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function z(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=L&&e[L]||e["@@iterator"])?e:null}var U,M=Object.assign;function A(e){if(void 0===U)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var F=!1;function D(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var i=l.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s]){var u="\n"+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=o&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?A(e):""}function H(e){switch(e.tag){case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1);case 11:return e=D(e.type.render,!1);case 1:return e=D(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case x:return"Fragment";case k:return"Portal";case E:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case R:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=B(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Y(e,t);var n=B(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+B(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return M({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:B(n)}}function ae(e,t){var n=B(t.value),r=B(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var me=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,xe=null,Se=null;function Ee(e){if(e=bi(e)){if("function"!==typeof ke)throw Error(a(280));var t=e.stateNode;t&&(t=wi(t),ke(e.stateNode,e.type,t))}}function Ce(e){xe?Se?Se.push(e):Se=[e]:xe=e}function Te(){if(xe){var e=xe,t=Se;if(Se=xe=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Pe(e,t){return e(t)}function Ne(){}var Re=!1;function Ie(e,t,n){if(Re)return e(t,n);Re=!0;try{return Pe(e,t,n)}finally{Re=!1,(null!==xe||null!==Se)&&(Ne(),Te())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var je=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){je=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){je=!1}function ze(e,t,n,r,i,a,o,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var Ue=!1,Me=null,Ae=!1,Fe=null,De={onError:function(e){Ue=!0,Me=e}};function He(e,t,n,r,i,a,o,s,u){Ue=!1,Me=null,ze.apply(De,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Be(e){if(qe(e)!==e)throw Error(a(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Be(i),e;if(o===r)return Be(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Qe=i.unstable_scheduleCallback,Ke=i.unstable_cancelCallback,Je=i.unstable_shouldYield,Ge=i.unstable_requestPaint,Ye=i.unstable_now,Xe=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,at=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2;var lt=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~i;0!==s?r=ft(s):0!==(a&=o)&&(r=ft(a))}else 0!==(o=n&~i)?r=ft(o):0!==a&&(r=ft(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(a=t&-t)||16===i&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-ot(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=lt;return 0===(4194240&(lt<<=1))&&(lt=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function _t(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,kt,xt,St,Et,Ct=!1,Tt=[],Pt=null,Nt=null,Rt=null,It=new Map,Ot=new Map,jt=[],Lt="mou
2sedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function zt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Ut(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Mt(e){var t=yi(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Et(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function Ft(e,t,n){At(e)&&n.delete(t)}function Dt(){Ct=!1,null!==Pt&&At(Pt)&&(Pt=null),null!==Nt&&At(Nt)&&(Nt=null),null!==Rt&&At(Rt)&&(Rt=null),It.forEach(Ft),Ot.forEach(Ft)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Dt)))}function qt(e){function t(t){return Ht(t,e)}if(0<Tt.length){Ht(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Pt&&Ht(Pt,e),null!==Nt&&Ht(Nt,e),null!==Rt&&Ht(Rt,e),It.forEach(t),Ot.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Mt(n),null===n.blockedOn&&jt.shift()}var Wt=_.ReactCurrentBatchConfig,Bt=!0;function Vt(e,t,n,r){var i=bt,a=Wt.transition;Wt.transition=null;try{bt=1,Qt(e,t,n,r)}finally{bt=i,Wt.transition=a}}function $t(e,t,n,r){var i=bt,a=Wt.transition;Wt.transition=null;try{bt=4,Qt(e,t,n,r)}finally{bt=i,Wt.transition=a}}function Qt(e,t,n,r){if(Bt){var i=Jt(e,t,n,r);if(null===i)Br(e,t,r,Kt,n),zt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Pt=Ut(Pt,e,t,n,r,i),!0;case"dragenter":return Nt=Ut(Nt,e,t,n,r,i),!0;case"mouseover":return Rt=Ut(Rt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return It.set(a,Ut(It.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Ot.set(a,Ut(Ot.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(zt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==i;){var a=bi(i);if(null!==a&&wt(a),null===(a=Jt(e,t,n,r))&&Br(e,t,r,Kt,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else Br(e,t,r,null,n)}}var Kt=null;function Jt(e,t,n,r){if(Kt=null,null!==(e=yi(e=we(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Gt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,i="value"in Yt?Yt.value:Yt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,un,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=an(ln),fn=M({},ln,{view:0,detail:0}),dn=an(fn),pn=M({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 9,184 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(on=e.screenX-un.screenX,sn=e.screenY-un.screenY):sn=on=0,un=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=an(pn),gn=an(M({},pn,{dataTransfer:0})),vn=an(M({},fn,{relatedTarget:0})),mn=an(M({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=M({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=an(yn),_n=an(M({},ln,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function En(){return Sn}var Cn=M({},fn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=an(Cn),Pn=an(M({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=an(M({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Rn=an(M({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=M({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),On=an(In),jn=[9,13,27,32],Ln=c&&"CompositionEvent"in window,zn=null;c&&"documentMode"in document&&(zn=document.documentMode);var Un=c&&"TextEvent"in window&&!zn,Mn=c&&(!Ln||zn&&8<zn&&11>=zn),An=String.fromCharCode(32),Fn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Vn(e,t,n,r){Ce(r),0<(t=$r(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Qn=null;function Kn(e){Ar(e,0)}function Jn(e){if(Q(_i(e)))return e}function Gn(e,t){if("change"===e)return t}var Yn=!1;if(c){var Xn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"===typeof er.oninput}Xn=Zn}else Xn=!1;Yn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){$n&&($n.detachEvent("onpropertychange",nr),Qn=$n=null)}function nr(e){if("value"===e.propertyName&&Jn(Qn)){var t=[];Vn(t,Qn,e,we(e)),Ie(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Qn=n,($n=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Qn)}function ar(e,t){if("click"===e)return Jn(t)}function or(e,t){if("input"===e||"change"===e)return Jn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ur(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!f.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=void 0===r.end?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=cr(n,a);var o=cr(n,r);i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,mr=null,yr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==K(r)||("selectionStart"in(r=vr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&ur(yr,r)||(yr=r,0<(r=$r(mr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},xr={},Sr={};function Er(e){if(xr[e])return xr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return xr[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Cr=Er("animationend"),Tr=Er("animationiteration"),Pr=Er("animationstart"),Nr=Er("transitionend"),Rr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Or(e,t){Rr.set(e,t),u(t,[e])}for(var jr=0;jr<Ir.length;jr++){var Lr=Ir[jr];Or(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Or(Cr,"onAnimationEnd"),Or(Tr,"onAnimationIteration"),Or(Pr,"onAnimationStart"),Or("dblclick","onDoubleClick"),Or("focusin","onFocus"),Or("focusout","onBlur"),Or(Nr,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ur=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Mr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,u,l){if(He.apply(this,arguments),Ue){if(!Ue)throw Error(a(198));var c=Me;Ue=!1,Me=null,Ae||(Ae=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function Ar(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==a&&i.isPropagationStopped())break e;Mr(i,s,l),a=u}else for(o=0;o<r.length;o++){if(u=(s=r[o]).instance,l=s.currentTarget,s=s.listener,u!==a&&i.isPropagationStopped())break e;Mr(i,s,l),a=u}}}if(Ae)throw e=Fe,Ae=!1,Fe=null,e}function Fr(e,t){var n=t[gi];void 0===n&&(n=t[gi]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Dr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Hr]){e[Hr]=!0,o.forEach((function(t){"selectionchange"!==t&&(Ur.has(t)||Dr(t,!1,e),Dr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hr]||(t[Hr]=!0,Dr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Gt(t)){case 1:var i=Vt;break;case 4:i=$t;break;default:i=Qt}n=i.bind(null,t,n,e),i=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Br(e,t,n,r,i){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=yi(s)))return;if(5===(u=o.tag)||6===u){r=a=o;continue e}s=s.parentNode}}r=r.return}Ie((function(){var r=a,i=we(n),o=[];e:{var s=Rr.get(e);if(void 0!==s){var u=cn,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=Tn;break;case"focusin":l="focus",u=vn;break;case"focusout":l="blur",u=vn;break;case"beforeblur":case"afterblur":u=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Nn;break;case Cr:case Tr:case Pr:u=mn;break;case Nr:u=Rn;break;case"scroll":u=dn;break;case"wheel":u=On;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Pn}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==d&&(null!=(g=Oe(h,d))&&c.push(Vr(h,g,p)))),f)break;h=h.return}0<c.length&&(s=new u(s,l,null,n,i),o.push({event:s,listeners:c}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_e||!(l=n.relatedTarget||n.fromElement)||!yi(l)&&!l[hi])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?yi(l):null)&&(l!==(f=qe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=hn,g="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,g="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?s:_i(u),p=null==l?s:_i(l),(s=new c(g,h+"leave",u,n,i)).target=f,s.relatedTarget=p,g=null,yi(i)===r&&((c=new c(d,h+"enter",l,n,i)).target=p,c.relatedTarget=f,g=c),f=g,u&&l)e:{for(d=l,h=0,p=c=u;p;p=Qr(p))h++;for(p=0,g=d;g;g=Qr(g))p++;for(;0<h-p;)c=Qr(c),h--;for(;0<p-h;)d=Qr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Qr(c),d=Qr(d)}c=null}else c=null;null!==u&&Kr(o,s,u,c,!1),null!==l&&null!==f&&Kr(o,f,l,c,!0)}if("select"===(u=(s=r?_i(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=Gn;else if(Bn(s))if(Yn)v=or;else{v=ir;var m=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ar);switch(v&&(v=v(e,r))?Vn(o,v,n,i):(m&&m(e,s,r),"focusout"===e&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&ee(s,"number",s.value)),m=r?_i(r):window,e){case"focusin":(Bn(m)||"true"===m.contentEditable)&&(vr=m,mr=r,yr=null);break;case"focusout":yr=mr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(o,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":_r(o,n,i)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?Dn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(y=en()):(Xt="value"in(Yt=i)?Yt.value:Yt.textContent,qn=!0)),0<(m=$r(r,b)).length&&(b=new _n(b,e,null,n,i),o.push({event:b,listeners:m}
vendor: 96,641 bytes, line 2
2),y?b.data=y:null!==(y=Hn(n))&&(b.data=y))),(y=Un?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Fn=!0,An);case"textInput":return(e=t.data)===An&&Fn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Ln&&Dn(e,t)?(e=en(),Zt=Xt=Yt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=$r(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=y))}Ar(o,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Oe(e,n))&&r.unshift(Vr(e,a,i)),null!=(a=Oe(e,t))&&r.push(Vr(e,a,i))),e=e.return}return r}function Qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=Oe(n,a))&&o.unshift(Vr(n,u,s)):i||null!=(u=Oe(n,a))&&o.push(Vr(n,u,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Jr=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function Yr(e){return("string"===typeof e?e:""+e).replace(Jr,"\n").replace(Gr,"")}function Xr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(a(425))}function Zr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,ai="function"===typeof Promise?Promise:void 0,oi="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ai?function(e){return ai.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function ui(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);qt(t)}function li(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fi=Math.random().toString(36).slice(2),di="__reactFiber$"+fi,pi="__reactProps$"+fi,hi="__reactContainer$"+fi,gi="__reactEvents$"+fi,vi="__reactListeners$"+fi,mi="__reactHandles$"+fi;function yi(e){var t=e[di];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[di]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[di])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[di]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _i(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function wi(e){return e[pi]||null}var ki=[],xi=-1;function Si(e){return{current:e}}function Ei(e){0>xi||(e.current=ki[xi],ki[xi]=null,xi--)}function Ci(e,t){xi++,ki[xi]=e.current,e.current=t}var Ti={},Pi=Si(Ti),Ni=Si(!1),Ri=Ti;function Ii(e,t){var n=e.type.contextTypes;if(!n)return Ti;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Oi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function ji(){Ei(Ni),Ei(Pi)}function Li(e,t,n){if(Pi.current!==Ti)throw Error(a(168));Ci(Pi,t),Ci(Ni,n)}function zi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,W(e)||"Unknown",i));return M({},n,r)}function Ui(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ti,Ri=Pi.current,Ci(Pi,e),Ci(Ni,Ni.current),!0}function Mi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=zi(e,t,Ri),r.__reactInternalMemoizedMergedChildContext=e,Ei(Ni),Ei(Pi),Ci(Pi,e)):Ei(Ni),Ci(Ni,n)}var Ai=null,Fi=!1,Di=!1;function Hi(e){null===Ai?Ai=[e]:Ai.push(e)}function qi(){if(!Di&&null!==Ai){Di=!0;var e=0,t=bt;try{var n=Ai;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ai=null,Fi=!1}catch(i){throw null!==Ai&&(Ai=Ai.slice(e+1)),Qe(Ze,qi),i}finally{bt=t,Di=!1}}return null}var Wi=[],Bi=0,Vi=null,$i=0,Qi=[],Ki=0,Ji=null,Gi=1,Yi="";function Xi(e,t){Wi[Bi++]=$i,Wi[Bi++]=Vi,Vi=e,$i=t}function Zi(e,t,n){Qi[Ki++]=Gi,Qi[Ki++]=Yi,Qi[Ki++]=Ji,Ji=e;var r=Gi;e=Yi;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var a=32-ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Gi=1<<32-ot(t)+i|n<<i|r,Yi=a+e}else Gi=1<<a|n<<i|r,Yi=e}function ea(e){null!==e.return&&(Xi(e,1),Zi(e,1,0))}function ta(e){for(;e===Vi;)Vi=Wi[--Bi],Wi[Bi]=null,$i=Wi[--Bi],Wi[Bi]=null;for(;e===Ji;)Ji=Qi[--Ki],Qi[Ki]=null,Yi=Qi[--Ki],Qi[Ki]=null,Gi=Qi[--Ki],Qi[Ki]=null}var na=null,ra=null,ia=!1,aa=null;function oa(e,t){var n=Ol(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,ra=li(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ra=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ji?{id:Gi,overflow:Yi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ol(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ra=null,!0);default:return!1}}function ua(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function la(e){if(ia){var t=ra;if(t){var n=t;if(!sa(e,t)){if(ua(e))throw Error(a(418));t=li(n.nextSibling);var r=na;t&&sa(e,t)?oa(r,n):(e.flags=-4097&e.flags|2,ia=!1,na=e)}}else{if(ua(e))throw Error(a(418));e.flags=-4097&e.flags|2,ia=!1,na=e}}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function fa(e){if(e!==na)return!1;if(!ia)return ca(e),ia=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ra)){if(ua(e))throw da(),Error(a(418));for(;t;)oa(e,t),t=li(t.nextSibling)}if(ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ra=li(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ra=null}}else ra=na?li(e.stateNode.nextSibling):null;return!0}function da(){for(var e=ra;e;)e=li(e.nextSibling)}function pa(){ra=na=null,ia=!1}function ha(e){null===aa?aa=[e]:aa.push(e)}var ga=_.ReactCurrentBatchConfig;function va(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ma=Si(null),ya=null,ba=null,_a=null;function wa(){_a=ba=ya=null}function ka(e){var t=ma.current;Ei(ma),e._currentValue=t}function xa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sa(e,t){ya=e,_a=ba=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(_s=!0),e.firstContext=null)}function Ea(e){var t=e._currentValue;if(_a!==e)if(e={context:e,memoizedValue:t,next:null},null===ba){if(null===ya)throw Error(a(308));ba=e,ya.dependencies={lanes:0,firstContext:e}}else ba=ba.next=e;return t}var Ca=null;function Ta(e){null===Ca?Ca=[e]:Ca.push(e)}function Pa(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Ta(t)):(n.next=i.next,i.next=n),t.interleaved=n,Na(e,r)}function Na(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ra=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ja(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Nu)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Na(e,n)}return null===(i=r.interleaved)?(t.next=t,Ta(r)):(t.next=i.next,i.next=t),r.interleaved=t,Na(e,n)}function za(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ua(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ma(e,t,n,r){var i=e.updateQueue;Ra=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,l=u.next;u.next=null,null===o?a=l:o.next=l,o=u;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(null!==a){var f=i.baseState;for(o=0,c=l=u=null,s=a;;){var d=s.lane,p=s.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,g=s;switch(d=t,p=n,g.tag){case 1:if("function"===typeof(h=g.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(d="function"===typeof(h=g.payload)?h.call(p,f,d):h)||void 0===d)break e;f=M({},f,d);break e;case 2:Ra=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(l=c=p,u=f):c=c.next=p,o|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===c&&(u=f),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{o|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);Mu|=o,e.lanes=o,e.memoizedState=f}}function Aa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var Fa=(new r.Component).refs;function Da(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:M({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ha={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tl(),i=nl(e),a=ja(r,i);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=La(e,a,i))&&(rl(t,e,i,r),za(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tl(),i=nl(e),a=ja(r,i);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=La(e,a,i))&&(rl(t,e,i,r),za(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tl(),r=nl(e),i=ja(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=La(e,i,r))&&(rl(t,e,r,n),za(t,e,r))}};function qa(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(i,a))}function Wa(e,t,n){var r=!1,i=Ti,a=t.contextType;return"object"===typeof a&&null!==a?a=Ea(a):(i=Oi(t)?Ri:Pi.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ii(e,i):Ti),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ha,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ba(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ha.enqueueReplaceState(t,t.state,null)}function Va(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Fa,Ia(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=Ea(a):(a=Oi(t)?Ri:Pi.current,i.context=Ii(e,a)),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(Da(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Ha.enqueueReplaceState(i,i.state,null),Ma(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function $a(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===Fa&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Qa(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ka(e){return(0,e._init)(e._payload)}function Ja(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ll(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Al(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var a=n.type;return a===x?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===O&&Ka(a)===t.type)?((r=i(t,n.props)).ref=$a(e,t,n),r.return=e,r):((r=zl(n.type,n.key,n.props,null,e.mode,r)).ref=$a(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Ul(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Al(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=zl(t.type,t.key,t.props,null,e.mode,n)).ref=$a(e,null,t),n.return=e,n;case k:return(t=Fl(t,e.mode,n)).return=e,t;case O:return d(e,(0,t._init)(t._payload),n)}if(te(t)||z(t))return(t=Ul(t,e.mode,n,null)).return=e,t;Qa(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case k:return n.key===i?c(e,t,n,r):null;case O:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||z(n))return null!==i?null:f(e,t,n,r,null);Qa(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case O:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||z(r))return f(t,e=e.get(n)||null,r,i,null);Qa(t,r)}return null}function g(i,a,s,u){for(var l=null,c=null,f=a,g=a=0,v=null;null!==f&&g<s.length;g++){f.index>g?(v=f,f=null):v=f.sibling;var m=p(i,f,s[g],u);if(null===m){null===f&&(f=v);break}e&&f&&null===m.alternate&&t(i,f),a=o(m,a,g),null===c?l=m:c.sibling=m,c=m,f=v}if(g===s.length)return n(i,f),ia&&Xi(i,g),l;if(null===f){for(;g<s.length;g++)null!==(f=d(i,s[g],u))&&(a=o(f,a,g),null===c?l=f:c.sibling=f,c=f);return ia&&Xi(i,g),l}for(f=r(i,f);g<s.length;g++)null!==(v=h(f,i,g,s[g],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),a=o(v,a,g),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),ia&&Xi(i,g),l}function v(i,s,u,l){var c=z(u);if("function"!==typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,g=s,v=s=0,m=null,y=u.next();null!==g&&!y.done;v++,y=u.next()){g.index>v?(m=g,g=null):m=g.sibling;var b=p(i,g,y.value,l);if(null===b){null===g&&(g=m);break}e&&g&&null===b.alternate&&t(i,g),s=o(b,s,v),null===f?c=b:f.sibling=b,f=b,g=m}if(y.done)return n(i,g),ia&&Xi(i,v),c;if(null===g){for(;!y.done;v++,y=u.next())null!==(y=d(i,y.value,l))&&(s=o(y,s,v),null===f?c=y:f.sibling=y,f=y);return ia&&Xi(i,v),c}for(g=r(i,g);!y.done;v++,y=u.next())null!==(y=h(g,i,v,y.value,l))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),s=o(y,s,v),null===f?c=y:f.sibling=y,f=y);return e&&g.forEach((function(e){return t(i,e)})),ia&&Xi(i,v),c}return function e(r,a,o,u){if("object"===typeof o&&null!==o&&o.type===x&&null===o.key&&(o=o.props.children),"object"===typeof o&&null!==o){switch(o.$$typeof){case w:e:{for(var l=o.key,c=a;null!==c;){if(c.key===l){if((l=o.type)===x){if(7===c.tag){n(r,c.sibling),(a=i(c,o.props.children)).return=r,r=a;break e}}else if(c.elementType===l||"object"===typeof l&&null!==l&&l.$$typeof===O&&Ka(l)===c.type){n(r,c.sibling),(a=i(c,o.props)).ref=$a(r,c,o),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}o.type===x?((a=Ul(o.props.children,r.mode,u,o.key)).return=r,r=a):((u=zl(o.type,o.key,o.props,null,r.mode,u)).ref=$a(r,a,o),u.return=r,r=u)}return s(r);case k:e:{for(c=o.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){n(r,a.sibling),(a=i(a,o.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Fl(o,r.mode,u)).return=r,r=a}return s(r);case O:return e(r,a,(c=o._init)(o._payload),u)}if(te(o))return g(r,a,o,u);if(z(o))return v(r,a,o,u);Qa(r,o)}return"string"===typeof o&&""!==o||"number"===typeof o?(o=""+o,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,o)).return=r,r=a):(n(r,a),(a=Al(o,r.mode,u)).return=r,r=a),s(r)):n(r,a)}}var Ga=Ja(!0),Ya=Ja(!1),Xa={},Za=Si(Xa),eo=Si(Xa),to=Si(Xa);function no(e){if(e===Xa)throw Error(a(174));return e}function ro(e,t){switch(Ci(to,t),Ci(eo,e),Ci(Za,Xa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ei(Za),Ci(Za,t)}function io(){Ei(Za),Ei(eo),Ei(to)}function ao(e){no(to.current);var t=no(Za.current),n=ue(t,e.type);t!==n&&(Ci(eo,e),Ci(Za,n))}function oo(e){eo.current===e&&(Ei(Za),Ei(eo))}var so=Si(0);function uo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var lo=[];function co(){for(var e=0;e<lo.length;e++)lo[e]._workInProgressVersionPrimary=null;lo.length=0}var fo=_.ReactCurrentDispatcher,po=_.ReactCurrentBatchConfig,ho=0,go=null,vo=null,mo=null,yo=!1,bo=!1,_o=0,wo=0;function ko(){throw Error(a(321))}function xo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function So(e,t,n,r,i,o){if(ho=o,go=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fo.current=null===e||null===e.memoizedState?ss:us,e=n(r,i),bo){o=0;do{if(bo=!1,_o=0,25<=o)throw Error(a(301));o+=1,mo=vo=null,t.updateQueue=null,fo.current=ls,e=n(r,i)}while(bo)}if(fo.current=os,t=null!==vo&&null!==vo.next,ho=0,mo=vo=go=null,yo=!1,t)throw Error(a(300));return e}function Eo(){var e=0!==_o;return _o=0,e}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mo?go.memoizedState=mo=e:mo=mo.next=e,mo}function To(){if(null===vo){var e=go.alternate;e=null!==e?e.memoizedState:null}else e=vo.next;var t=null===mo?go.memoizedState:mo.next;if(null!==t)mo=t,vo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(vo=e).memoizedState,baseState:vo.baseState,baseQueue:vo.baseQueue,queue:vo.queue,next:null},null===mo?go.memoizedState=mo=e:mo=mo.next=e}return mo}function Po(e,t){return"function"===typeof t?t(e):t}function No(e){var t=To(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=vo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var u=s=null,l=null,c=o;do{var f=c.lane;if((ho&f)===f)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(u=l=d,s=r):l=l.next=d,go.lanes|=f,Mu|=f}c=c.next}while(null!==c&&c!==o);null===l?s=r:l.next=u,sr(r,t.memoizedState)||(_s=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,go.lanes|=o,Mu|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ro(e){var t=To(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);sr(o,t.memoizedState)||(_s=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Io(){}function Oo(e,t){var n=go,r=To(),i=t(),o=!sr(r.memoizedState,i);if(o&&(r.memoizedState=i,_s=!0),r=r.queue,Bo(zo.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==mo&&1&mo.memoizedState.tag){if(n.flags|=2048,Fo(9,Lo.bind(null,n,r,i,t),void 0,null),null===Ru)throw Error(a(349));0!==(30&ho)||jo(n,t,i)}return i}function jo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=go.updateQueue)?(t={lastEffect:null,stores:null},go.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Lo(e,t,n,r){t.value=n,t.getSnapshot=r,Uo(t)&&Mo(e)}function zo(e,t,n){return n((function(){Uo(t)&&Mo(e)}))}function Uo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Mo(e){var t=Na(e,1);null!==t&&rl(t,e,1,-1)}function Ao(e){var t=Co();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,go,e),[t.memoizedState,e]}function Fo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=go.updateQueue)?(t={lastEffect:null,stores:null},go.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Do(){return To().memoizedState}function Ho(e,t,n,r){var i=Co();go.flags|=e,i.memoizedState=Fo(1|t,n,void 0,void 0===r?null:r)}function qo(e,t,n,r){var i=To();r=void 0===r?null:r;var a=void 0;if(null!==vo){var o=vo.memoizedState;if(a=o.destroy,null!==r&&xo(r,o.deps))return void(i.memoizedState=Fo(t,n,a,r))}go.flags|=e,i.memoizedState=Fo(1|t,n,a,r)}function Wo(e,t){return Ho(8390656,8,e,t)}function Bo(e,t){return qo(2048,8,e,t)}function Vo(e,t){return qo(4,2,e,t)}function $o(e,t){return qo(4,4,e,t)}function Qo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ko(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,qo(4,4,Qo.bind(null,t,e),n)}function Jo(){}function Go(e,t){var n=To();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yo(e,t){var n=To();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xo(e,t,n){return 0===(21&ho)?(e.baseState&&(e.baseState=!1,_s=!0),e.memoizedState=n):(sr(n,t)||(n=gt(),go.lanes|=n,Mu|=n,e.baseState=!0),t)}function Zo(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=po.transition;po.transition={};try{e(!1),t()}finally{bt=n,po.transition=r}}function es(){return To().memoizedState}function ts(e,t,n){var r=nl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))is(t,n);else if(null!==(n=Pa(e,t,n,r))){rl(n,e,r,tl()),as(n,t,r)}}function ns(e,t,n){var r=nl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,o)){var u=t.interleaved;return null===u?(i.next=i,Ta(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(l){}null!==(n=Pa(e,t,i,r))&&(rl(n,e,r,i=tl()),as(n,t,r))}}function rs(e){var t=e.alternate;return e===go||null!==t&&t===go}function is(e,t){bo=yo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function as(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var os={readContext:Ea,useCallback:ko,useContext:ko,useEffect:ko,useImperativeHandle:ko,useInsertionEffect:ko,useLayoutEffect:ko,useMemo:ko,useReducer:ko,useRef:ko,useState:ko,useDebugValue:ko,useDeferredValue:ko,useTransition:ko,useMutableSource:ko,useSyncExternalStore:ko,useId:ko,unstable_isNewReconciler:!1},ss={readContext:Ea,useCallback:function(e,t){return Co().memoizedState=[e,void 0===t?null:t],e},useContext:Ea,useEffect:Wo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ho(4194308,4,Qo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ho(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ho(4,2,e,t)},useMemo:function(e,t){var n=Co();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Co();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,go,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Co().memoizedState=e},useState:Ao,useDebugValue:Jo,useDeferredValue:function(e){return Co().memoizedState=e},useTransition:function(){var e=Ao(!1),t=e[0];return e=Zo.bind(null,e[1]),Co().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=go,i=Co();if(ia){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Ru)throw Error(a(349));0!==(30&ho)||jo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Wo(zo.bind(null,r,o,e),[e]),r.flags|=2048,Fo(9,Lo.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Co(),t=Ru.identifierPrefix;if(ia){var n=Yi;t=":"+t+"R"+(n=(Gi&~(1<<32-ot(Gi)-1)).toString(32)+n),0<(n=_o++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wo++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},us={readContext:Ea,useCallback:Go,useContext:Ea,useEffect:Bo,useImperativeHandle:Ko,useInsertionEffect:Vo,useLayoutEffect:$o,useMemo:Yo,useReducer:No,useRef:Do,useState:function(){return No(Po)},useDebugValue:Jo,useDeferredValue:function(e){return Xo(To(),vo.memoizedState,e)},useTransition:function(){return[No(Po)[0],To().memoizedState]},useMutableSource:Io,useSyncExternalStore:Oo,useId:es,unstable_isNewReconciler:!1},ls={readContext:Ea,useCallback:Go,useContext:Ea,useEffect:Bo,useImperativeHandle:Ko,useInsertionEffect:Vo,useLayoutEffect:$o,useMemo:Yo,useReducer:Ro,useRef:Do,useState:function(){return Ro(Po)},useDebugValue:Jo,useDeferredValue:function(e){var t=To();return null===vo?t.memoizedState=e:Xo(t,vo.memoizedState,e)},useTransition:function(){return[Ro(Po)[0],To().memoizedState]},useMutableSource:Io,useSyncExternalStore:Oo,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var i=n}catch(a){i="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:i,digest:null}}function fs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ps="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=ja(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vu||(Vu=!0,$u=r),ds(0,t)},n}function gs(e,t,n){(n=ja(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Qu?Qu=new Set([this]):Qu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Cl.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ja(-1,1)).tag=2,La(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=_.ReactCurrentOwner,_s=!1;function ws(e,t,n,r){t.child=null===e?Ya(t,null,n,r):Ga(t,e.child,n,r)}function ks(e,t,n,r,i){n=n.render;var a=t.ref;return Sa(t,i),r=So(e,t,n,r,a,i),n=Eo(),null===e||_s?(ia&&n&&ea(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vs(e,t,i))}function xs(e,t,n,r,i){if(null===e){var a=n.type;return"function"!==typeof a||jl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=zl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ss(e,t,a,r,i))}if(a=e.child,0===(e.lanes&i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(o,r)&&e.ref===t.ref)return Vs(e,t,i)}return t.flags|=1,(e=Ll(a,r)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(ur(a,r)&&e.ref===t.ref){if(_s=!1,t.pendingProps=r=a,0===(e.lanes&i))return t.lanes=e.lanes,Vs(e,t,i);0!==(131072&e.flags)&&(_s=!0)}}return Ts(e,t,n,r,i)}function Es(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ci(Lu,ju),ju|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ci(Lu,ju),ju|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Ci(Lu,ju),ju|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ci(Lu,ju),ju|=r;return ws(e,t,i,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,i){var a=Oi(n)?Ri:Pi.current;return a=Ii(t,a),Sa(t,i),n=So(e,t,n,r,a,i),r=Eo(),null===e||_s?(ia&&r&&ea(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vs(e,t,i))}function Ps(e,t,n,r,i){if(Oi(n)){var a=!0;Ui(t)}else a=!1;if(Sa(t,i),null===t.stateNode)Bs(e,t),Wa(t,n,r),Va(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,l=n.contextType;"object"===typeof l&&null!==l?l=Ea(l):l=Ii(t,l=Oi(n)?Ri:Pi.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||u!==l)&&Ba(t,o,r,l),Ra=!1;var d=t.memoizedState;o.state=d,Ma(t,r,o,i),u=t.memoizedState,s!==r||d!==u||Ni.current||Ra?("function"===typeof c&&(Da(t,n,c,r),u=t.memoizedState),(s=Ra||qa(t,n,s,r,d,u,l))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=l,r=s):("function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Oa(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:va(t.type,s),o.props=l,f=t.pendingProps,d=o.context,"object"===typeof(u=n.contextType)&&null!==u?u=Ea(u):u=Ii(t,u=Oi(n)?Ri:Pi.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==f||d!==u)&&Ba(t,o,r,u),Ra=!1,d=t.memoizedState,o.state=d,Ma(t,r,o,i);var h=t.memoizedState;s!==f||d!==h||Ni.current||Ra?("function"===typeof p&&(Da(t,n,p,r),h=t.memoizedState),(l=Ra||qa(t,n,l,r,d,h,u)||!1)?(c||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,u),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,u)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=u,r=l):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ns(e,t,n,r,a,i)}function Ns(e,t,n,r,i,a){Cs(e,t);var o=0!==(128&t.flags);if(!r&&!o)return i&&Mi(t,n,!1),Vs(e,t,a);r=t.stateNode,bs.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Ga(t,e.child,null,a),t.child=Ga(t,null,s,a)):ws(e,t,s,a),t.memoizedState=r.state,i&&Mi(t,n,!0),t.child}function Rs(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),ro(e,t.containerInfo)}function Is(e,t,n,r,i){return pa(),ha(i),t.flags|=256,ws(e,t,n,r),t.child}var Os,js,Ls,zs,Us={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function As(e,t,n){var r,i=t.pendingProps,o=so.current,s=!1,u=0!==(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ci(so,1&o),null===e)return la(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=i.children,e=i.fallback,s?(i=t.mode,s=t.child,u={mode:"hidden",children:u},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=Ml(u,i,0,null),e=Ul(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=Us,e):Fs(t,u));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,s){if(n)return 256&t.flags?(t.flags&=-257,Ds(e,t,s,r=fs(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ml({mode:"visible",children:r.children},i,0,null),(o=Ul(o,i,s,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!==(1&t.mode)&&Ga(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=Us,o);if(0===(1&t.mode))return Ds(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var u=r.dgst;return r=u,Ds(e,t,s,r=fs(o=Error(a(419)),r,void 0))}if(u=0!==(s&e.childLanes),_s||u){if(null!==(r=Ru)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==o.retryLane&&(o.retryLane=i,Na(e,i),rl(r,e,i,-1))}return vl(),Ds(e,t,s,r=fs(Error(a(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Pl.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ra=li(i.nextSibling),na=t,ia=!0,aa=null,null!==e&&(Qi[Ki++]=Gi,Qi[Ki++]=Yi,Qi[Ki++]=Ji,Gi=e.id,Yi=e.overflow,Ji=t),t=Fs(t,r.children),t.flags|=4096,t)}(e,t,u,i,r,o,n);if(s){s=i.fallback,u=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 0===(1&u)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=Ll(o,l)).subtreeFlags=14680064&o.subtreeFlags,null!==r?s=Ll(r,s):(s=Ul(s,u,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,u=null===(u=e.child.memoizedState)?Ms(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=Us,i}return e=(s=e.child).sibling,i=Ll(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fs(e,t){return(t=Ml({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ds(e,t,n,r){return null!==r&&ha(r),Ga(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),xa(e.return,t,n)}function qs(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function Ws(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=so.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hs(e,n,t);else if(19===e.tag)Hs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ci(so,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===uo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),qs(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===uo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}qs(t,!0,n,null,a);break;case"together":qs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Mu|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ll(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ll(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $s(e,t){if(!ia)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qs(t),null;case 1:case 17:return Oi(t.type)&&ji(),Qs(t),null;case 3:return r=t.stateNode,io(),Ei(Ni),Ei(Pi),co(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==aa&&(sl(aa),aa=null))),js(e,t),Qs(t),null;case 5:oo(t);var i=no(to.current);if(n=t.type,null!==e&&null!=t.stateNode)Ls(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Qs(t),null}if(e=no(Za.current),fa(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[di]=t,r[pi]=o,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<zr.length;i++)Fr(zr[i],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":G(r,o),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Fr("invalid",r);break;case"textarea":ie(r,o),Fr("invalid",r)}for(var u in ye(n,o),i=null,o)if(o.hasOwnProperty(u)){var l=o[u];"children"===u?"string"===typeof l?r.textContent!==l&&(!0!==o.suppressHydrationWarning&&Xr(r.textContent,l,e),i=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(!0!==o.suppressHydrationWarning&&Xr(r.textContent,l,e),i=["children",""+l]):s.hasOwnProperty(u)&&null!=l&&"onScroll"===u&&Fr("scroll",r)}switch(n){case"input":$(r),Z(r,o,!0);break;case"textarea":$(r),oe(r);break;case"select":case"option":break;default:"function"===typeof o.onClick&&(r.onclick=Zr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[di]=t,e[pi]=r,Os(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<zr.length;i++)Fr(zr[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":G(e,r),i=J(e,r),Fr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=M({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Fr("invalid",e)}for(o in ye(n,i),l=i)if(l.hasOwnProperty(o)){var c=l[o];"style"===o?ve(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===o?"string"===typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"===typeof c&&de(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=c&&"onScroll"===o&&Fr("scroll",e):null!=c&&b(e,o,c,u))}switch(n){case"input":$(e),Z(e,r,!1);break;case"textarea":$(e),oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+B(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?ne(e,!!r.multiple,o,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Qs(t),null;case 6:if(e&&null!=t.stateNode)zs(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(n=no(to.current),no(Za.current),fa(t)){if(r=t.stateNode,n=t.memoizedProps,r[di]=t,(o=r.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Xr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!==(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[di]=t,t.stateNode=r}return Qs(t),null;case 13:if(Ei(so),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ia&&null!==ra&&0!==(1&t.mode)&&0===(128&t.flags))da(),pa(),t.flags|=98560,o=!1;else if(o=fa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[di]=t}else pa(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Qs(t),o=!1}else null!==aa&&(sl(aa),aa=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&so.current)?0===zu&&(zu=3):vl())),null!==t.updateQueue&&(t.flags|=4),Qs(t),null);case 4:return io(),js(e,t),null===e&&qr(t.stateNode.containerInfo),Qs(t),null;case 10:return ka(t.type._context),Qs(t),null;case 19:if(Ei(so),null===(o=t.memoizedState))return Qs(t),null;if(r=0!==(128&t.flags),null===(u=o.rendering))if(r)$s(o,!1);else{if(0!==zu||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=uo(e))){for(t.flags|=128,$s(o,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(u=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ci(so,1&so.current|2),t.child}e=e.sibling}null!==o.tail&&Ye()>Wu&&(t.flags|=128,r=!0,$s(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=uo(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$s(o,!0),null===o.tail&&"hidden"===o.tailMode&&!u.alternate&&!ia)return Qs(t),null}else 2*Ye()-o.renderingStartTime>Wu&&1073741824!==n&&(t.flags|=128,r=!0,$s(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=o.last)?n.sibling=u:t.child=u,o.last=u)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ye(),t.sibling=null,n=so.current,Ci(so,r?1&n|2:1&n),t):(Qs(t),null);case 22:case 23:return dl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&ju)&&(Qs(t),6&t.subtreeFlags&&(t.flags|=8192)):Qs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Js(e,t){switch(ta(t),t.tag){case 1:return Oi(t.type)&&ji(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return io(),Ei(Ni),Ei(Pi),co(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oo(t),null;case 13:if(Ei(so),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));pa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ei(so),null;case 4:return io(),null;case 10:return ka(t.type._context),null;case 22:case 23:return dl(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},js=function(){},Ls=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,no(Za.current);var a,o=null;switch(n){case"input":i=J(e,i),r=J(e,r),o=[];break;case"select":i=M({},i,{value:void 0}),r=M({},r,{value:void 0}),o=[];break;case"textarea":i=re(e,i),r=re(e,r),o=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Zr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var u=i[c];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(u=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==u&&(null!=l||null!=u))if("style"===c)if(u){for(a in u)!u.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&u[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,u=u?u.__html:void 0,null!=l&&u!==l&&(o=o||[]).push(c,l)):"children"===c?"string"!==typeof l&&"number"!==typeof l||(o=o||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Fr("scroll",e),o||u===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},zs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gs=!1,Ys=!1,Xs="function"===typeof WeakSet?WeakSet:Set,Zs=null;function eu(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){El(e,t,r)}else n.current=null}function tu(e,t,n){try{n()}catch(r){El(e,t,r)}}var nu=!1;function ru(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&tu(t,n,a)}i=i.next}while(i!==r)}}function iu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function au(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ou(e){var t=e.alternate;null!==t&&(e.alternate=null,ou(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[di],delete t[pi],delete t[gi],delete t[vi],delete t[mi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function su(e){return 5===e.tag||3===e.tag||4===e.tag}function uu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||su(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(lu(e,t,n),e=e.sibling;null!==e;)lu(e,t,n),e=e.sibling}function cu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}var fu=null,du=!1;function pu(e,t,n){for(n=n.child;null!==n;)hu(e,t,n),n=n.sibling}function hu(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Ys||eu(n,t);case 6:var r=fu,i=du;fu=null,pu(e,t,n),du=i,null!==(fu=r)&&(du?(e=fu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fu.removeChild(n.stateNode));break;case 18:null!==fu&&(du?(e=fu,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),qt(e)):ui(fu,n.stateNode));break;case 4:r=fu,i=du,fu=n.stateNode.containerInfo,du=!0,pu(e,t,n),fu=r,du=i;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(0!==(2&a)||0!==(4&a))&&tu(n,t,o),i=i.next}while(i!==r)}pu(e,t,n);break;case 1:if(!Ys&&(eu(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){El(n,t,s)}pu(e,t,n);break;case 21:pu(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,pu(e,t,n),Ys=r):pu(e,t,n);break;default:pu(e,t,n)}}function gu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Nl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:fu=u.stateNode,du=!1;break e;case 3:case 4:fu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===fu)throw Error(a(160));hu(o,s,i),fu=null,du=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(c){El(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mu(t,e),t=t.sibling}function mu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vu(t,e),yu(e),4&r){try{ru(3,e,e.return),iu(3,e)}catch(v){El(e,e.return,v)}try{ru(5,e,e.return)}catch(v){El(e,e.return,v)}}break;case 1:vu(t,e),yu(e),512&r&&null!==n&&eu(n,n.return);break;case 5:if(vu(t,e),yu(e),512&r&&null!==n&&eu(n,n.return),32&e.flags){var i=e.stateNode;try{de(i,"")}catch(v){El(e,e.return,v)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,s=null!==n?n.memoizedProps:o,u=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===u&&"radio"===o.type&&null!=o.name&&Y(i,o),be(u,s);var c=be(u,o);for(s=0;s<l.length;s+=2){var f=l[s],d=l[s+1];"style"===f?ve(i,d):"dangerouslySetInnerHTML"===f?fe(i,d):"children"===f?de(i,d):b(i,f,d,c)}switch(u){case"input":X(i,o);break;case"textarea":ae(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?ne(i,!!o.multiple,h,!1):p!==!!o.multiple&&(null!=o.defaultValue?ne(i,!!o.multiple,o.defaultValue,!0):ne(i,!!o.multiple,o.multiple?[]:"",!1))}i[pi]=o}catch(v){El(e,e.return,v)}}break;case 6:if(vu(t,e),yu(e),4&r){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){El(e,e.return,v)}}break;case 3:if(vu(t,e),yu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(v){El(e,e.return,v)}break;case 4:default:vu(t,e),yu(e);break;case 13:vu(t,e),yu(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(qu=Ye())),4&r&&gu(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(c=Ys)||f,vu(t,e),Ys=c):vu(t,e),yu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!==(1&e.mode))for(Zs=e,f=e.child;null!==f;){for(d=Zs=f;null!==Zs;){switch(h=(p=Zs).child,p.tag){case 0:case 11:case 14:case 15:ru(4,p,p.return);break;case 1:eu(p,p.return);var g=p.stateNode;if("function"===typeof g.componentWillUnmount){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){El(r,n,v)}}break;case 5:eu(p,p.return);break;case 22:if(null!==p.memoizedState){ku(d);continue}}null!==h?(h.return=p,Zs=h):ku(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{i=d.stateNode,c?"function"===typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(u=d.stateNode,s=void 0!==(l=d.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null,u.style.display=ge("display",s))}catch(v){El(e,e.return,v)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(v){El(e,e.return,v)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:vu(t,e),yu(e),4&r&&gu(e);case 21:}}function yu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(su(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(de(i,""),r.flags&=-33),cu(e,uu(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;lu(e,uu(e),o);break;default:throw Error(a(161))}}catch(s){El(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bu(e,t,n){Zs=e,_u(e,t,n)}function _u(e,t,n){for(var r=0!==(1&e.mode);null!==Zs;){var i=Zs,a=i.child;if(22===i.tag&&r){var o=null!==i.memoizedState||Gs;if(!o){var s=i.alternate,u=null!==s&&null!==s.memoizedState||Ys;s=Gs;var l=Ys;if(Gs=o,(Ys=u)&&!l)for(Zs=i;null!==Zs;)u=(o=Zs).child,22===o.tag&&null!==o.memoizedState?xu(i):null!==u?(u.return=o,Zs=u):xu(i);for(;null!==a;)Zs=a,_u(a,t,n),a=a.sibling;Zs=i,Gs=s,Ys=l}wu(e)}else 0!==(8772&i.subtreeFlags)&&null!==a?(a.return=i,Zs=a):wu(e)}}function wu(e){for(;null!==Zs;){var t=Zs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||iu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:va(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Aa(t,o,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Aa(t,s,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&qt(d)}}}break;default:throw Error(a(163))}Ys||512&t.flags&&au(t)}catch(p){El(t,t.return,p)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function ku(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function xu(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{iu(4,t)}catch(u){El(t,n,u)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(u){El(t,i,u)}}var a=t.return;try{au(t)}catch(u){El(t,a,u)}break;case 5:var o=t.return;try{au(t)}catch(u){El(t,o,u)}}}catch(u){El(t,t.return,u)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var Su,Eu=Math.ceil,Cu=_.ReactCurrentDispatcher,Tu=_.ReactCurrentOwner,Pu=_.ReactCurrentBatchConfig,Nu=0,Ru=null,Iu=null,Ou=0,ju=0,Lu=Si(0),zu=0,Uu=null,Mu=0,Au=0,Fu=0,Du=null,Hu=null,qu=0,Wu=1/0,Bu=null,Vu=!1,$u=null,Qu=null,Ku=!1,Ju=null,Gu=0,Yu=0,Xu=null,Zu=-1,el=0;function tl(){return 0!==(6&Nu)?Ye():-1!==Zu?Zu:Zu=Ye()}function nl(e){return 0===(1&e.mode)?1:0!==(2&Nu)&&0!==Ou?Ou&-Ou:null!==ga.transition?(0===el&&(el=gt()),el):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Gt(e.type)}function rl(e,t,n,r){if(50<Yu)throw Yu=0,Xu=null,Error(a(185));mt(e,n,r),0!==(2&Nu)&&e===Ru||(e===Ru&&(0===(2&Nu)&&(Au|=n),4===zu&&ul(e,Ou)),il(e,r),1===n&&0===Nu&&0===(1&t.mode)&&(Wu=Ye()+500,Fi&&qi()))}function il(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ot(a),s=1<<o,u=i[o];-1===u?0!==(s&n)&&0===(s&r)||(i[o]=pt(s,t)):u<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=dt(e,e===Ru?Ou:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Fi=!0,Hi(e)}(ll.bind(null,e)):Hi(ll.bind(null,e)),oi((function(){0===(6&Nu)&&qi()})),n=null;else{switch(_t(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Rl(n,al.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function al(e,t){if(Zu=-1,el=0,0!==(6&Nu))throw Error(a(327));var n=e.callbackNode;if(xl()&&e.callbackNode!==n)return null;var r=dt(e,e===Ru?Ou:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=ml(e,r);else{t=r;var i=Nu;Nu|=2;var o=gl();for(Ru===e&&Ou===t||(Bu=null,Wu=Ye()+500,pl(e,t));;)try{bl();break}catch(u){hl(e,u)}wa(),Cu.current=o,Nu=i,null!==Iu?t=0:(Ru=null,Ou=0,t=zu)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(r=i,t=ol(e,i))),1===t)throw n=Uu,pl(e,0),ul(e,r),il(e,Ye()),n;if(6===t)ul(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!sr(a(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=ml(e,r))&&(0!==(o=ht(e))&&(r=o,t=ol(e,o))),1===t))throw n=Uu,pl(e,0),ul(e,r),il(e,Ye()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:kl(e,Hu,Bu);break;case 3:if(ul(e,r),(130023424&r)===r&&10<(t=qu+500-Ye())){if(0!==dt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(kl.bind(null,e,Hu,Bu),t);break}kl(e,Hu,Bu);break;case 4:if(ul(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-ot(r);o=1<<s,(s=t[s])>i&&(i=s),r&=~o}if(r=i,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Eu(r/1960))-r)){e.timeoutHandle=ri(kl.bind(null,e,Hu,Bu),r);break}kl(e,Hu,Bu);break;default:throw Error(a(329))}}}return il(e,Ye()),e.callbackNode===n?al.bind(null,e):null}function ol(e,t){var n=Du;return e.current.memoizedState.isDehydrated&&(pl(e,t).flags|=256),2!==(e=ml(e,t))&&(t=Hu,Hu=n,null!==t&&sl(t)),e}function sl(e){null===Hu?Hu=e:Hu.push.apply(Hu,e)}function ul(e,t){for(t&=~Fu,t&=~Au,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function ll(e){if(0!==(6&Nu))throw Error(a(327));xl();var t=dt(e,0);if(0===(1&t))return il(e,Ye()),null;var n=ml(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ol(e,r))}if(1===n)throw n=Uu,pl(e,0),ul(e,t),il(e,Ye()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kl(e,Hu,Bu),il(e,Ye()),null}function cl(e,t){var n=Nu;Nu|=1;try{return e(t)}finally{0===(Nu=n)&&(Wu=Ye()+500,Fi&&qi())}}function fl(e){null!==Ju&&0===Ju.tag&&0===(6&Nu)&&xl();var t=Nu;Nu|=1;var n=Pu.transition,r=bt;try{if(Pu.transition=null,bt=1,e)return e()}finally{bt=r,Pu.transition=n,0===(6&(Nu=t))&&qi()}}function dl(){ju=Lu.current,Ei(Lu)}function pl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Iu)for(n=Iu.return;null!==n;){var r=n;switch(ta(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&ji();break;case 3:io(),Ei(Ni),Ei(Pi),co();break;case 5:oo(r);break;case 4:io();break;case 13:case 19:Ei(so);break;case 10:ka(r.type._context);break;case 22:case 23:dl()}n=n.return}if(Ru=e,Iu=e=Ll(e.current,null),Ou=ju=t,zu=0,Uu=null,Fu=Au=Mu=0,Hu=Du=null,null!==Ca){for(t=0;t<Ca.length;t++)if(null!==(r=(n=Ca[t]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var o=a.next;a.next=i,r.next=o}n.pending=r}Ca=null}return e}function hl(e,t){for(;;){var n=Iu;try{if(wa(),fo.current=os,yo){for(var r=go.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}yo=!1}if(ho=0,mo=vo=go=null,bo=!1,_o=0,Tu.current=null,null===n||null===n.return){zu=1,Uu=t,Iu=null;break}e:{var o=e,s=n.return,u=n,l=t;if(t=Ou,u.flags|=32768,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l,f=u,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=ms(s);if(null!==h){h.flags&=-257,ys(h,s,u,0,t),1&h.mode&&vs(o,c,t),l=c;var g=(t=h).updateQueue;if(null===g){var v=new Set;v.add(l),t.updateQueue=v}else g.add(l);break e}if(0===(1&t)){vs(o,c,t),vl();break e}l=Error(a(426))}else if(ia&&1&u.mode){var m=ms(s);if(null!==m){0===(65536&m.flags)&&(m.flags|=256),ys(m,s,u,0,t),ha(cs(l,u));break e}}o=l=cs(l,u),4!==zu&&(zu=2),null===Du?Du=[o]:Du.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Ua(o,hs(0,l,t));break e;case 1:u=l;var y=o.type,b=o.stateNode;if(0===(128&o.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Qu||!Qu.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,Ua(o,gs(o,u,t));break e}}o=o.return}while(null!==o)}wl(n)}catch(_){t=_,Iu===n&&null!==n&&(Iu=n=n.return);continue}break}}function gl(){var e=Cu.current;return Cu.current=os,null===e?os:e}function vl(){0!==zu&&3!==zu&&2!==zu||(zu=4),null===Ru||0===(268435455&Mu)&&0===(268435455&Au)||ul(Ru,Ou)}function ml(e,t){var n=Nu;Nu|=2;var r=gl();for(Ru===e&&Ou===t||(Bu=null,pl(e,t));;)try{yl();break}catch(i){hl(e,i)}if(wa(),Nu=n,Cu.current=r,null!==Iu)throw Error(a(261));return Ru=null,Ou=0,zu}function yl(){for(;null!==Iu;)_l(Iu)}function bl(){for(;null!==Iu&&!Je();)_l(Iu)}function _l(e){var t=Su(e.alternate,e,ju);e.memoizedProps=e.pendingProps,null===t?wl(e):Iu=t,Tu.current=null}function wl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ks(n,t,ju)))return void(Iu=n)}else{if(null!==(n=Js(n,t)))return n.flags&=32767,void(Iu=n);if(null===e)return zu=6,void(Iu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Iu=t);Iu=t=e}while(null!==t);0===zu&&(zu=5)}function kl(e,t,n){var r=bt,i=Pu.transition;try{Pu.transition=null,bt=1,function(e,t,n,r){do{xl()}while(null!==Ju);if(0!==(6&Nu))throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-ot(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}(e,o),e===Ru&&(Iu=Ru=null,Ou=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Ku||(Ku=!0,Rl(tt,(function(){return xl(),null}))),o=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||o){o=Pu.transition,Pu.transition=null;var s=bt;bt=1;var u=Nu;Nu|=4,Tu.current=null,function(e,t){if(ei=Bt,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(w){n=null;break e}var s=0,u=-1,l=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(u=s+i),d!==o||0!==r&&3!==d.nodeType||(l=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++c===i&&(u=s),p===o&&++f===r&&(l=s),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===u||-1===l?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Bt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var v=g.memoizedProps,m=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:va(t.type,v),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(a(163))}}catch(w){El(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}g=nu,nu=!1}(e,n),mu(n,e),hr(ti),Bt=!!ei,ti=ei=null,e.current=n,bu(n,e,i),Ge(),Nu=u,bt=s,Pu.transition=o}else e.current=n;if(Ku&&(Ku=!1,Ju=e,Gu=i),o=e.pendingLanes,0===o&&(Qu=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),il(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Vu)throw Vu=!1,e=$u,$u=null,e;0!==(1&Gu)&&0!==e.tag&&xl(),o=e.pendingLanes,0!==(1&o)?e===Xu?Yu++:(Yu=0,Xu=e):Yu=0,qi()}(e,t,n,r)}finally{Pu.transition=i,bt=r}return null}function xl(){if(null!==Ju){var e=_t(Gu),t=Pu.transition,n=bt;try{if(Pu.transition=null,bt=16>e?16:e,null===Ju)var r=!1;else{if(e=Ju,Ju=null,Gu=0,0!==(6&Nu))throw Error(a(331));var i=Nu;for(Nu|=4,Zs=e.current;null!==Zs;){var o=Zs,s=o.child;if(0!==(16&Zs.flags)){var u=o.deletions;if(null!==u){for(var l=0;l<u.length;l++){var c=u[l];for(Zs=c;null!==Zs;){var f=Zs;switch(f.tag){case 0:case 11:case 15:ru(8,f,o)}var d=f.child;if(null!==d)d.return=f,Zs=d;else for(;null!==Zs;){var p=(f=Zs).sibling,h=f.return;if(ou(f),f===c){Zs=null;break}if(null!==p){p.return=h,Zs=p;break}Zs=h}}}var g=o.alternate;if(null!==g){var v=g.child;if(null!==v){g.child=null;do{var m=v.sibling;v.sibling=null,v=m}while(null!==v)}}Zs=o}}if(0!==(2064&o.subtreeFlags)&&null!==s)s.return=o,Zs=s;else e:for(;null!==Zs;){if(0!==(2048&(o=Zs).flags))switch(o.tag){case 0:case 11:case 15:ru(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Zs=y;break e}Zs=o.return}}var b=e.current;for(Zs=b;null!==Zs;){var _=(s=Zs).child;if(0!==(2064&s.subtreeFlags)&&null!==_)_.return=s,Zs=_;else e:for(s=b;null!==Zs;){if(0!==(2048&(u=Zs).flags))try{switch(u.tag){case 0:case 11:case 15:iu(9,u)}}catch(k){El(u,u.return,k)}if(u===s){Zs=null;break e}var w=u.sibling;if(null!==w){w.return=u.return,Zs=w;break e}Zs=u.return}}if(Nu=i,qi(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(k){}r=!0}return r}finally{bt=n,Pu.transition=t}}return!1}function Sl(e,t,n){e=La(e,t=hs(0,t=cs(n,t),1),1),t=tl(),null!==e&&(mt(e,1,t),il(e,t))}function El(e,t,n){if(3===e.tag)Sl(e,e,n);else for(;null!==t;){if(3===t.tag){Sl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Qu||!Qu.has(r))){t=La(t,e=gs(t,e=cs(n,e),1),1),e=tl(),null!==t&&(mt(t,1,e),il(t,e));break}}t=t.return}}function Cl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tl(),e.pingedLanes|=e.suspendedLanes&n,Ru===e&&(Ou&n)===n&&(4===zu||3===zu&&(130023424&Ou)===Ou&&500>Ye()-qu?pl(e,0):Fu|=n),il(e,t)}function Tl(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=tl();null!==(e=Na(e,t))&&(mt(e,t,n),il(e,n))}function Pl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tl(e,n)}function Nl(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Tl(e,n)}function Rl(e,t){return Qe(e,t)}function Il(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ol(e,t,n,r){return new Il(e,t,n,r)}function jl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ll(e,t){var n=e.alternate;return null===n?((n=Ol(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zl(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)jl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case x:return Ul(n.children,i,o,t);case S:s=8,i|=8;break;case E:return(e=Ol(12,n,t,2|i)).elementType=E,e.lanes=o,e;case N:return(e=Ol(13,n,t,i)).elementType=N,e.lanes=o,e;case R:return(e=Ol(19,n,t,i)).elementType=R,e.lanes=o,e;case j:return Ml(n,i,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case T:s=9;break e;case P:s=11;break e;case I:s=14;break e;case O:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ol(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Ul(e,t,n,r){return(e=Ol(7,e,r,t)).lanes=n,e}function Ml(e,t,n,r){return(e=Ol(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Al(e,t,n){return(e=Ol(6,e,null,t)).lanes=n,e}function Fl(e,t,n){return(t=Ol(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dl(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Hl(e,t,n,r,i,a,o,s,u){return e=new Dl(e,t,n,s,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ol(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ia(a),e}function ql(e){if(!e)return Ti;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Oi(n))return zi(e,n,t)}return t}function Wl(e,t,n,r,i,a,o,s,u){return(e=Hl(n,r,!0,e,0,a,0,s,u)).context=ql(null),n=e.current,(a=ja(r=tl(),i=nl(n))).callback=void 0!==t&&null!==t?t:null,La(n,a,i),e.current.lanes=i,mt(e,i,r),il(e,r),e}function Bl(e,t,n,r){var i=t.current,a=tl(),o=nl(i);return n=ql(n),null===t.context?t.context=n:t.pendingContext=n,(t=ja(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=La(i,t,o))&&(rl(e,i,o,a),za(e,i,o)),o}function Vl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $l(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ql(e,t){$l(e,t),(e=e.alternate)&&$l(e,t)}Su=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ni.current)_s=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return _s=!1,function(e,t,n){switch(t.tag){case 3:Rs(t),pa();break;case 5:ao(t);break;case 1:Oi(t.type)&&Ui(t);break;case 4:ro(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ci(ma,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ci(so,1&so.current),t.flags|=128,null):0!==(n&t.child.childLanes)?As(e,t,n):(Ci(so,1&so.current),null!==(e=Vs(e,t,n))?e.sibling:null);Ci(so,1&so.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Ws(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ci(so,so.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Vs(e,t,n)}(e,t,n);_s=0!==(131072&e.flags)}else _s=!1,ia&&0!==(1048576&t.flags)&&Zi(t,$i,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bs(e,t),e=t.pendingProps;var i=Ii(t,Pi.current);Sa(t,n),i=So(null,t,r,e,i,n);var o=Eo();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oi(r)?(o=!0,Ui(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ia(t),i.updater=Ha,t.stateNode=i,i._reactInternals=t,Va(t,r,e,n),t=Ns(null,t,r,!0,o,n)):(t.tag=0,ia&&o&&ea(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return jl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===I)return 14}return 2}(r),e=va(r,e),i){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=Ps(null,t,r,e,n);break e;case 11:t=ks(null,t,r,e,n);break e;case 14:t=xs(null,t,r,va(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ts(e,t,r,i=t.elementType===r?i:va(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ps(e,t,r,i=t.elementType===r?i:va(r,i),n);case 3:e:{if(Rs(t),null===e)throw Error(a(387));r=t.pendingProps,i=(o=t.memoizedState).element,Oa(e,t),Ma(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Is(e,t,r,n,i=cs(Error(a(423)),t));break e}if(r!==i){t=Is(e,t,r,n,i=cs(Error(a(424)),t));break e}for(ra=li(t.stateNode.containerInfo.firstChild),na=t,ia=!0,aa=null,n=Ya(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pa(),r===i){t=Vs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return ao(t),null===e&&la(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==o&&ni(r,o)&&(t.flags|=32),Cs(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&la(t),null;case 13:return As(e,t,n);case 4:return ro(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ga(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:va(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ci(ma,r._currentValue),r._currentValue=s,null!==o)if(sr(o.value,s)){if(o.children===i.children&&!Ni.current){t=Vs(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var u=o.dependencies;if(null!==u){s=o.child;for(var l=u.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=ja(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),xa(o.return,n,t),u.lanes|=n;break}l=l.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),xa(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Sa(t,n),r=r(i=Ea(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=va(r=t.type,t.pendingProps),xs(e,t,r,i=va(r.type,i),n);case 15:return Ss(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:va(r,i),Bs(e,t),t.tag=1,Oi(r)?(e=!0,Ui(t)):e=!1,Sa(t,n),Wa(t,r,i),Va(t,r,i,n),Ns(null,t,r,!0,e,n);case 19:return Ws(e,t,n);case 22:return Es(e,t,n)}throw Error(a(156,t.tag))};var Kl="function"===typeof reportError?reportError:function(e){console.error(e)};function Jl(e){this._internalRoot=e}function Gl(e){this._internalRoot=e}function Yl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zl(){}function ec(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if("function"===typeof i){var s=i;i=function(){var e=Vl(o);s.call(e)}}Bl(t,o,e,i)}else o=function(e,t,n,r,i){if(i){if("function"===typeof r){var a=r;r=function(){var e=Vl(o);a.call(e)}}var o=Wl(t,r,e,0,null,!1,0,"",Zl);return e._reactRootContainer=o,e[hi]=o.current,qr(8===e.nodeType?e.parentNode:e),fl(),o}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Vl(u);s.call(e)}}var u=Hl(e,0,!1,null,0,!1,0,"",Zl);return e._reactRootContainer=u,e[hi]=u.current,qr(8===e.nodeType?e.parentNode:e),fl((function(){Bl(t,u,n,r)})),u}(n,t,e,i,r);return Vl(o)}Gl.prototype.render=Jl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Bl(e,t,null,null)},Gl.prototype.unmount=Jl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fl((function(){Bl(null,e,null,null)})),t[hi]=null}},Gl.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&Mt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(yt(t,1|n),il(t,Ye()),0===(6&Nu)&&(Wu=Ye()+500,qi()))}break;case 13:fl((function(){var t=Na(e,1);if(null!==t){var n=tl();rl(t,e,1,n)}})),Ql(e,1)}},kt=function(e){if(13===e.tag){var t=Na(e,134217728);if(null!==t)rl(t,e,134217728,tl());Ql(e,134217728)}},xt=function(e){if(13===e.tag){var t=nl(e),n=Na(e,t);if(null!==n)rl(n,e,t,tl());Ql(e,t)}},St=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},ke=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(a(90));Q(r),X(r,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=cl,Ne=fl;var tc={usingClientEntryPoint:!1,Events:[bi,_i,wi,Ce,Te,cl]},nc={findFiberByHostInstance:yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{it=ic.inject(rc),at=ic}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yl(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yl(e))throw Error(a(299));var n=!1,r="",i=Kl;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Hl(e,1,!1,null,0,n,0,r,i),e[hi]=t.current,qr(8===e.nodeType?e.parentNode:e),new Jl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return fl(e)},t.hydrate=function(e,t,n){if(!Xl(t))throw Error(a(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yl(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",s=Kl;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Wl(t,null,e,1,null!=n?n:null,i,0,o,s),e[hi]=t.current,qr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Gl(t)},t.render=function(e,t,n){if(!Xl(t))throw Error(a(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xl(e))throw Error(a(40));return!!e._reactRootContainer&&(fl((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},t.unstable_batchedUpdates=cl,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xl(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},250:function(e,t,n){"use strict";var r=n(164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(463)},374:function(e,t,n){"use strict";var r=n(791),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,a={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:a,_owner:s.current}}t.jsx=l,t.jsxs=l},117:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,v={};function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var _=b.prototype=new y;_.constructor=b,g(_,m.prototype),_.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,x={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var i,a={},o=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,i)&&!S.hasOwnProperty(i)&&(a[i]=t[i]);var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];a.children=l}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===a[i]&&(a[i]=u[i]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:x.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function P(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(e,t,i,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return o=o(u=e),e=""===a?"."+P(u,0):a,w(o)?(i="",null!=e&&(i=e.replace(T,"$&/")+"/"),N(o,t,i,"",(function(e){return e}))):null!=o&&(C(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,i+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(T,"$&/")+"/")+e)),t.push(o)),1;if(u=0,a=""===a?".":a+":",w(e))for(var l=0;l<e.length;l++){var c=a+P(s=e[l],l);u+=N(s,t,i,c,o)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=N(s=s.value,t,i,c=a+P(s,l++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function R(e,t,n){if(null==e)return e;var r=[],i=0;return N(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},j={transition:null},L={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:j,ReactCurrentOwner:x};t.Children={map:R,forEach:function(e,t,n){R(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=i,t.Profiler=o,t.PureComponent=b,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=g({},e.props),a=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)k.call(t,l)&&!S.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}return{$$typeof:n,type:e.type,key:a,ref:o,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return O.current.useTransition()},t.version="18.2.0"},791:function(e,t,n){"use strict";e.exports=n(117)},184:function(e,t,n){"use strict";e.exports=n(374)},813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(0>a(u,n))l<i&&0>a(c,u)?(e[r]=c,e[l]=n,r=l):(e[r]=u,e[s]=n,r=s);else{if(!(l<i&&0>a(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var l=[],c=[],f=1,d=null,p=3,h=!1,g=!1,v=!1,m="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function _(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function w(e){if(v=!1,_(e),!g)if(null!==r(l))g=!0,j(k);else{var t=r(c);null!==t&&L(w,t.startTime-e)}}function k(e,n){g=!1,v&&(v=!1,y(C),C=-1),h=!0;var a=p;try{for(_(n),d=r(l);null!==d&&(!(d.expirationTime>n)||e&&!N());){var o=d.callback;if("function"===typeof o){d.callback=null,p=d.priorityLevel;var s=o(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?d.callback=s:d===r(l)&&i(l),_(n)}else i(l);d=r(l)}if(null!==d)var u=!0;else{var f=r(c);null!==f&&L(w,f.startTime-n),u=!1}return u}finally{d=null,p=a,h=!1}
2}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,S=!1,E=null,C=-1,T=5,P=-1;function N(){return!(t.unstable_now()-P<T)}function R(){if(null!==E){var e=t.unstable_now();P=e;var n=!0;try{n=E(!0,e)}finally{n?x():(S=!1,E=null)}}else S=!1}if("function"===typeof b)x=function(){b(R)};else if("undefined"!==typeof MessageChannel){var I=new MessageChannel,O=I.port2;I.port1.onmessage=R,x=function(){O.postMessage(null)}}else x=function(){m(R,0)};function j(e){E=e,S||(S=!0,x())}function L(e,n){C=m((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||h||(g=!0,j(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(c,e),null===r(l)&&e===r(c)&&(v?(y(C),C=-1):v=!0,L(w,a-o))):(e.sortIndex=s,n(l,e),g||h||(g=!0,j(k))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},296:function(e,t,n){"use strict";e.exports=n(813)},480:function(){}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,n||"default");if("object"!==e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===e(n)?n:String(n)}function r(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var o=n(791),s=n(250);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],u=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(Ke){l=!0,i=Ke}
2finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var f=Object.freeze({left:0,top:0,width:16,height:16}),d=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),p=Object.freeze(a(a({},f),d)),h=Object.freeze(a(a({},p),{},{body:"",hidden:!1}));function g(e,t){var n=function(e,t){var n={};!e.hFlip!==!t.hFlip&&(n.hFlip=!0),!e.vFlip!==!t.vFlip&&(n.vFlip=!0);var r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}(e,t);for(var r in h)r in d?r in e&&!(r in n)&&(n[r]=d[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function v(e,t,n){var r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=g(r[e]||i[e],a)}return o(t),n.forEach(o),g(e,a)}function m(e,t){var n=[];if("object"!==typeof e||"object"!==typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((function(e){t(e,null),n.push(e)}));var r=function(e,t){var n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);return(t||Object.keys(n).concat(Object.keys(r))).forEach((function e(t){if(n[t])return i[t]=[];if(!(t in i)){i[t]=null;var a=r[t]&&r[t].parent,o=a&&e(a);o&&(i[t]=[a].concat(o))}return i[t]})),i}(e);for(var i in r){var a=r[i];a&&(t(i,v(e,i,a)),n.push(i))}return n}var y=/^[a-z0-9]+(-[a-z0-9]+)*$/,b=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){var a=i.pop(),o=i.pop(),s={provider:i.length>0?i[0]:r,prefix:o,name:a};return t&&!_(s)?null:s}var u=i[0],l=u.split("-");if(l.length>1){var c={provider:r,prefix:l.shift(),name:l.join("-")};return t&&!_(c)?null:c}if(n&&""===r){var f={provider:r,prefix:"",name:u};return t&&!_(f,n)?null:f}return null},_=function(e,t){return!!e&&!(""!==e.provider&&!e.provider.match(y)||!(t&&""===e.prefix||e.prefix.match(y))||!e.name.match(y))},w=a({provider:"",aliases:{},not_found:{}},f);function k(e,t){for(var n in t)if(n in e&&typeof e[n]!==typeof t[n])return!1;return!0}function x(e){if("object"!==typeof e||null===e)return null;var t=e;if("string"!==typeof t.prefix||!e.icons||"object"!==typeof e.icons)return null;if(!k(e,w))return null;var n=t.icons;for(var r in n){var i=n[r];if(!r.match(y)||"string"!==typeof i.body||!k(i,h))return null}var a=t.aliases||Object.create(null);for(var o in a){var s=a[o],u=s.parent;if(!o.match(y)||"string"!==typeof u||!n[u]&&!a[u]||!k(s,h))return null}return t}var S=Object.create(null);function E(e,t){var n=S[e]||(S[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function C(e,t){return x(t)?m(t,(function(t,n){n?e.icons[t]=n:e.missing.add(t)})):[]}var T=!1;function P(e){return"boolean"===typeof e&&(T=e),T}function N(e){var t="string"===typeof e?b(e,!0,T):e;if(t){var n=E(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function R(e,t){var n=b(e,!0,T);return!!n&&function(e,t,n){try{if("string"===typeof n.body)return e.icons[t]=a({},n),!0}catch(Ke){}return!1}(E(n.provider,n.prefix),n.name,t)}var I=Object.freeze({width:null,height:null}),O=Object.freeze(a(a({},I),d)),j=/(-?[0-9.]*[0-9]+[0-9.]*)/g,L=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function z(e,t,n){if(1===t)return e;if(n=n||100,"number"===typeof e)return Math.ceil(e*t*n)/n;if("string"!==typeof e)return e;var r=e.split(j);if(null===r||!r.length)return e;for(var i=[],a=r.shift(),o=L.test(a);;){if(o){var s=parseFloat(a);isNaN(s)?i.push(a):i.push(Math.ceil(s*t*n)/n)}else i.push(a);if(void 0===(a=r.shift()))return i.join("");o=!o}}var U=/\sid="(\S+)"/g,M="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16),A=0;function F(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M,r=[];t=U.exec(e);)r.push(t[1]);if(!r.length)return e;var i="suffix"+(16777216*Math.random()|Date.now()).toString(16);return r.forEach((function(t){var r="function"===typeof n?n(t):n+(A++).toString(),a=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")})),e=e.replace(new RegExp(i,"g"),"")}var D=Object.create(null);function H(e,t){D[e]=t}function q(e){return D[e]||D[""]}function W(e){var t;if("string"===typeof e.resources)t=[e.resources];else if(!((t=e.resources)instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}for(var B=Object.create(null),V=["https://api.simplesvg.com","https://api.unisvg.com"],$=[];V.length>0;)1===V.length||Math.random()>.5?$.push(V.shift()):$.push(V.pop());function Q(e,t){var n=W(t);return null!==n&&(B[e]=n,!0)}function K(e){return B[e]}B[""]=W({resources:["https://api.iconify.design"].concat($)});var J=function(){var e;try{if("function"===typeof(e=fetch))return e}catch(Ke){}}();var G={prepare:function(e,t,n){var r=[],i=function(e,t){var n,r=K(e);if(!r)return 0;if(r.maxURL){var i=0;
2r.resources.forEach((function(e){var t=e;i=Math.max(i,t.length)}));var a=t+".json?icons=";n=r.maxURL-i-r.path.length-a.length}else n=0;return n}(e,t),a="icons",o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((function(n,u){(s+=n.length+1)>=i&&u>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)})),r.push(o),r},send:function(e,t,n){if(J){var r=function(e){if("string"===typeof e){var t=K(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":var i=t.prefix,a=t.icons.join(",");r+=i+".json?"+new URLSearchParams({icons:a}).toString();break;case"custom":var o=t.uri;r+="/"===o.slice(0,1)?o.slice(1):o;break;default:return void n("abort",400)}var s=503;J(e+r).then((function(e){var t=e.status;if(200===t)return s=501,e.json();setTimeout((function(){n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((function(e){"object"===typeof e&&null!==e?setTimeout((function(){n("success",e)})):setTimeout((function(){404===e?n("abort",e):n("next",s)}))})).catch((function(){n("next",s)}))}else n("abort",424)}};function Y(e,t){e.forEach((function(e){var n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((function(e){return e.id!==t})))}))}var X=0;var Z={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ee(e,t,n,r){var i,a=e.resources.length,o=e.random?Math.floor(Math.random()*a):e.index;if(e.random){var s=e.resources.slice(0);for(i=[];s.length>1;){var u=Math.floor(Math.random()*s.length);i.push(s[u]),s=s.slice(0,u).concat(s.slice(u+1))}i=i.concat(s)}else i=e.resources.slice(o).concat(e.resources.slice(0,o));var l,c=Date.now(),f="pending",d=0,p=null,h=[],g=[];function v(){p&&(clearTimeout(p),p=null)}function m(){"pending"===f&&(f="aborted"),v(),h.forEach((function(e){"pending"===e.status&&(e.status="aborted")})),h=[]}function y(e,t){t&&(g=[]),"function"===typeof e&&g.push(e)}function b(){f="failed",g.forEach((function(e){e(void 0,l)}))}function _(){h.forEach((function(e){"pending"===e.status&&(e.status="aborted")})),h=[]}function w(){if("pending"===f){v();var r=i.shift();if(void 0===r)return h.length?void(p=setTimeout((function(){v(),"pending"===f&&(_(),b())}),e.timeout)):void b();var a={status:"pending",resource:r,callback:function(t,n){!function(t,n,r){var a="success"!==n;switch(h=h.filter((function(e){return e!==t})),f){case"pending":break;case"failed":if(a||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return l=r,void b();if(a)return l=r,void(h.length||(i.length?w():b()));if(v(),_(),!e.random){var o=e.resources.indexOf(t.resource);-1!==o&&o!==e.index&&(e.index=o)}f="completed",g.forEach((function(e){e(r)}))}(a,t,n)}};h.push(a),d++,p=setTimeout(w,e.rotate),n(r,t,a.callback)}}return"function"===typeof r&&g.push(r),setTimeout(w),function(){return{startTime:c,payload:t,status:f,queriesSent:d,queriesPending:h.length,subscribe:y,abort:m}}}function te(e){var t=a(a({},Z),e),n=[];function r(){n=n.filter((function(e){return"pending"===e().status}))}var i={query:function(e,i,a){var o=ee(t,e,i,(function(e,t){r(),a&&a(e,t)}));return n.push(o),o},find:function(e){return n.find((function(t){return e(t)}))||null},setIndex:function(e){t.index=e},getIndex:function(){return t.index},cleanup:r};return i}function ne(){}var re=Object.create(null);function ie(e,t,n){var r,i;if("string"===typeof e){var a=q(e);if(!a)return n(void 0,424),ne;i=a.send;var o=function(e){if(!re[e]){var t=K(e);if(!t)return;var n={config:t,redundancy:te(t)};re[e]=n}return re[e]}(e);o&&(r=o.redundancy)}else{var s=W(e);if(s){r=te(s);var u=q(e.resources?e.resources[0]:"");u&&(i=u.send)}}return r&&i?r.query(t,i,n)().abort:(n(void 0,424),ne)}var ae="iconify2",oe="iconify",se=oe+"-count",ue=oe+"-version",le=36e5,ce=168,fe=50;function de(e,t){try{return e.getItem(t)}catch(Ke){}}function pe(e,t,n){try{return e.setItem(t,n),!0}catch(Ke){}}function he(e,t){try{e.removeItem(t)}catch(Ke){}}function ge(e,t){return pe(e,se,t.toString())}function ve(e){return parseInt(de(e,se))||0}var me={local:!0,session:!0},ye={local:new Set,session:new Set},be=!1;var _e="undefined"===typeof window?{}:window;function we(e){var t=e+"Storage";try{if(_e&&_e[t]&&"number"===typeof _e[t].length)return _e[t]}catch(Ke){}me[e]=!1}function ke(e,t){var n=we(e);if(n){var r=de(n,ue);if(r!==ae){if(r)for(var i=ve(n),a=0;a<i;a++)he(n,oe+a.toString());return pe(n,ue,ae),void ge(n,0)}for(var o=Math.floor(Date.now()/le)-ce,s=function(e){var r=oe+e.toString(),i=de(n,r);if("string"===typeof i){try{var a=JSON.parse(i);if("object"===typeof a&&"number"===typeof a.cached&&a.cached>o&&"string"===typeof a.provider&&"object"===typeof a.data&&"string"===typeof a.data.prefix&&t(a,e))return!0}catch(Ke){}he(n,r)}},u=ve(n),l=u-1;l>=0;l--)s(l)||(l===u-1?(u--,ge(n,u)):ye[e].add(l))}}function xe(){if(!be)for(var e in be=!0,me)ke(e,(function(e){var t=e.data,n=E(e.provider,t.prefix);if(!C(n,t).length)return!1;var r=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,r):r,!0}))}function Se(e,t){function n(n){var r;if(me[n]&&(r=we(n))){var i,a=ye[n];if(a.size)a.delete(i=Array.from(a).shift());else if((i=ve(r))>=fe||!ge(r,i+1))return;var o={cached:Math.floor(Date.now()/le),provider:e.provider,data:t};return pe(r,oe+i.toString(),JSON.stringify(o))}}be||xe(),t.lastModified&&!function(e,t){var n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(var r in me)ke(r,(function(n){var r=n.data;return n.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function Ee(){}function Ce(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((function(){e.iconsLoaderFlag=!1,function(e){e.pen
2dingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((function(){e.pendingCallbacksFlag=!1;var t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(t.length){var n=!1,r=e.provider,i=e.prefix;t.forEach((function(t){var a=t.icons,o=a.pending.length;a.pending=a.pending.filter((function(t){if(t.prefix!==i)return!0;var o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else{if(!e.missing.has(o))return n=!0,!0;a.missing.push({provider:r,prefix:i,name:o})}return!1})),a.pending.length!==o&&(n||Y([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))}))}})))}(e)})))}var Te=function(e,t){var n=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[];return e.forEach((function(e){var i="string"===typeof e?b(e,t,n):e;i&&r.push(i)})),r}(e,!0,P()),r=function(e){var t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((function(e,t){return e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)}));var r={provider:"",prefix:"",name:""};return e.forEach((function(e){if(r.name!==e.name||r.prefix!==e.prefix||r.provider!==e.provider){r=e;var i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),u=s[a]||(s[a]=E(i,a)),l={provider:i,prefix:a,name:o};(o in u.icons?t.loaded:""===a||u.missing.has(o)?t.missing:t.pending).push(l)}})),t}(n);if(!r.pending.length){var i=!0;return t&&setTimeout((function(){i&&t(r.loaded,r.missing,r.pending,Ee)})),function(){i=!1}}var a,o,s=Object.create(null),u=[];return r.pending.forEach((function(e){var t=e.provider,n=e.prefix;if(n!==o||t!==a){a=t,o=n,u.push(E(t,n));var r=s[t]||(s[t]=Object.create(null));r[n]||(r[n]=[])}})),r.pending.forEach((function(e){var t=e.provider,n=e.prefix,r=e.name,i=E(t,n),a=i.pendingIcons||(i.pendingIcons=new Set);a.has(r)||(a.add(r),s[t][n].push(r))})),u.forEach((function(e){var t=e.provider,n=e.prefix;s[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((function(){e.iconsQueueFlag=!1;var t,n=e.provider,r=e.prefix,i=e.iconsToLoad;delete e.iconsToLoad,i&&(t=q(n))&&t.prepare(n,r,i).forEach((function(t){ie(n,t,(function(n){if("object"!==typeof n)t.icons.forEach((function(t){e.missing.add(t)}));else try{var r=C(e,n);if(!r.length)return;var i=e.pendingIcons;i&&r.forEach((function(e){i.delete(e)})),Se(e,n)}catch(Ke){console.error(Ke)}Ce(e)}))}))})))}(e,s[t][n])})),t?function(e,t,n){var r=X++,i=Y.bind(null,n,r);if(!t.pending.length)return i;var a={id:r,icons:t,callback:e,abort:i};return n.forEach((function(e){(e.loaderCallbacks||(e.loaderCallbacks=[])).push(a)})),i}(t,r,u):Ee};var Pe,Ne=/[\s,]+/;function Re(e,t){t.split(Ne).forEach((function(t){switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===n){var i=parseInt(e);return isNaN(i)?0:r(i)}if(n!==e){var a=0;switch(n){case"%":a=25;break;case"deg":a=90}if(a){var o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o/=a)%1===0?r(o):0}}return t}function Oe(e){return void 0===Pe&&function(){try{Pe=window.trustedTypes.createPolicy("iconify",{createHTML:function(e){return e}})}catch(Ke){Pe=null}}(),Pe?Pe.createHTML(e):e}var je=a(a({},O),{},{inline:!1}),Le={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ze={display:"inline-block"},Ue={backgroundColor:"currentColor"},Me={backgroundColor:"transparent"},Ae={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Fe={WebkitMask:Ue,mask:Ue,background:Me};for(var De in Fe){var He=Fe[De];for(var qe in Ae)He[De+qe]=Ae[qe]}var We=a(a({},je),{},{inline:!0});function Be(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}var Ve=function(e,t,n){var r=t.inline?We:je,i=function(e,t){var n=a({},e);for(var r in t){var i=t[r],o=typeof i;r in I?(null===i||i&&("string"===o||"number"===o))&&(n[r]=i):o===typeof n[r]&&(n[r]="rotate"===r?i%4:i)}return n}(r,t),s=t.mode||"svg",u={},l=t.style||{},c=a({},"svg"===s?Le:{});if(n){var f=b(n,!1,!0);if(f){for(var d=["iconify"],h=0,g=["provider","prefix"];h<g.length;h++){var v=g[h];f[v]&&d.push("iconify--"+f[v])}c.className=d.join(" ")}}for(var m in t){var y=t[m];if(void 0!==y)switch(m){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":break;case"_ref":c.ref=y;break;case"className":c[m]=(c[m]?c[m]+" ":"")+y;break;case"inline":case"hFlip":case"vFlip":i[m]=!0===y||"true"===y||1===y;break;case"flip":"string"===typeof y&&Re(i,y);break;case"color":u.color=y;break;case"rotate":"string"===typeof y?i[m]=Ie(y):"number"===typeof y&&(i[m]=y);break;case"ariaHidden":case"aria-hidden":!0!==y&&"true"!==y&&delete c["aria-hidden"];break;default:void 0===r[m]&&(c[m]=y)}}var _=function(e,t){var n=a(a({},p),e),r=a(a({},O),t),i={left:n.left,top:n.top,width:n.width,height:n.height},o=n.body;[n,r].forEach((function(e){var t,n=[],r=e.hFlip,a=e.vFlip,s=e.rotate;switch(r?a?s+=2:(n.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),n.push("scale(-1 1)"),i.top=i.left=0):a&&(n.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),n.push("scale(1 -1)"),i.top=i.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4){case 1:t=i.height/2+i.top,n.unshift("rotate(90 "+t.toString()+" "+t.toString()+")");break;case 2:n.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:t=i.width/2+i.left,n.unshift("rotate(-90 "+t.toString()+" "+t.toString()+")")}s%2===1&&(i.left!==i.top&&(t=i.left,i.left=i.top,i.top=t),i.width!==i.height&&(t=i.width,i.width=i.height,i.height=t)),n.length&&(o=function(e,t,n){var r,i,a=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"defs",n="",r=e.indexOf("<"+t);r>=0;){var i=e.indexOf(">",r),a=e.indexOf("</"+t);if(-1===i||-1===a)break;var o=e.indexOf(">",a);if(-1===o)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}(e);return r=a.defs,i=t+a.content+n,r?"<defs>"+r+"</defs>"+i:i}(o,'<g transform="'+n.join(" ")+'">',"</g>"))}));var s,u,l=r.width,c=r.height,f=i.width,d=i.height;null===l?s=z(u=null===c?"1em":"auto"===c?d:c,f/d):(s="auto"===l?f:l,u=null===c?z(s,d/f):"auto"===c?d:c);var h={},g=function(e,t){(function(e){return"unset"===e||"undefined"===e||"none"===e})(t)||(h[e]=t.toString())};g("width",s),g("height",u);var v=[i.left,i.top,f,d];return h.viewBox=v.join(" "),{attributes:h,viewBox:v,body:o}}(e,i),w=_.attributes;if(i.inline&&(u.verticalAlign="-0.125em"),"svg"===s){c.style=a(a({},u),l),Object.assign(c,w);var k=0,x=t.id;return"string"===typeof x&&(x=x.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:Oe(F(_.body,x?function(){return x+"ID"+k++}:"iconifyReact"))},(0,o.createElement)("svg",c)}var S,E=e.body,C=e.width,T=e.height,P="mask"===s||"bg"!==s&&-1!==E.indexOf("currentColor"),N=function(e,t){var n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(var r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(E,a(a({},w),{}
2,{width:C+"",height:T+""}));return c.style=a(a(a(a({},u),{},{"--svg":(S=N,'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(S)+'")'),width:Be(w.width),height:Be(w.height)},ze),P?Ue:Me),l),(0,o.createElement)("span",c)};if(P(!0),H("",G),"undefined"!==typeof document&&"undefined"!==typeof window){xe();var $e=window;if(void 0!==$e.IconifyPreload){var Qe=$e.IconifyPreload,Ke="Invalid IconifyPreload syntax.";"object"===typeof Qe&&null!==Qe&&(Qe instanceof Array?Qe:[Qe]).forEach((function(e){try{("object"!==typeof e||null===e||e instanceof Array||"object"!==typeof e.icons||"string"!==typeof e.prefix||!function(e,t){if("object"!==typeof e)return!1;if("string"!==typeof t&&(t=e.provider||""),T&&!t&&!e.prefix){var n=!1;return x(e)&&(e.prefix="",m(e,(function(e,t){t&&R(e,t)&&(n=!0)}))),n}var r=e.prefix;return!!_({provider:t,prefix:r,name:"a"})&&!!C(E(t,r),e)}(e))&&console.error(Ke)}catch(xt){console.error(Ke)}}))}if(void 0!==$e.IconifyProviders){var Je=$e.IconifyProviders;if("object"===typeof Je&&null!==Je)for(var Ge in Je){var Ye="IconifyProviders["+Ge+"] is invalid.";try{var Xe=Je[Ge];if("object"!==typeof Xe||!Xe||void 0===Xe.resources)continue;Q(Ge,Xe)||console.error(Ye)}catch(xt){console.error(Ye)}}}}function Ze(e){var t=c((0,o.useState)(!!e.ssr),2),n=t[0],r=t[1],i=c((0,o.useState)({}),2),s=i[0],u=i[1];var l=(0,o.useState)(function(t){if(t){var n=e.icon;if("object"===typeof n)return{name:"",data:n};var r=N(n);if(r)return{name:n,data:r}}return{name:""}}(!!e.ssr)),f=c(l,2),d=f[0],h=f[1];function g(){var e=s.callback;e&&(e(),u({}))}function v(e){if(JSON.stringify(d)!==JSON.stringify(e))return g(),h(e),!0}function m(){var t,n=e.icon;if("object"!==typeof n){var r=N(n);if(v({name:n,data:r}))if(void 0===r){var i=Te([n],m);u({callback:i})}else r&&(null===(t=e.onLoad)||void 0===t||t.call(e,n))}else v({name:"",data:n})}(0,o.useEffect)((function(){return r(!0),g}),[]),(0,o.useEffect)((function(){n&&m()}),[e.icon,n]);var y=d.name,b=d.data;return b?Ve(a(a({},p),b),e,y):e.children?e.children:(0,o.createElement)("span",{})}var et=(0,o.forwardRef)((function(e,t){return Ze(a(a({},e),{},{_ref:t}))}));(0,o.forwardRef)((function(e,t){return Ze(a(a({inline:!0},e),{},{_ref:t}))}));function tt(){tt=function(){return t};var t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(Ke){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),s=new C(r||[]);return i(o,"_invoke",{value:k(e,n,s)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(Ke){return{type:"throw",arg:Ke}}}t.wrap=c;var d={};function p(){}function h(){}function g(){}var v={};l(v,o,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(T([])));y&&y!==n&&r.call(y,o)&&(v=y);var b=g.prototype=p.prototype=Object.create(v);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(t,n){function a(i,o,s,u){var l=f(t[i],t,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==e(d)&&r.call(d,"__await")?n.resolve(d.__await).then((function(e){a("next",e,s,u)}),(function(e){a("throw",e,s,u)})):n.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,u)}))}u(l.arg)}var o;i(this,"_invoke",{value:function(e,t){function r(){return new n((function(n,r){a(e,t,n,r)}))}return o=o?o.then(r,r):r()}})}function k(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return P()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=x(o,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 5,631 bytes, line 2
2(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=f(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return h.prototype=g,i(b,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:h,configurable:!0}),h.displayName=l(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},_(w.prototype),l(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new w(c(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},_(b),l(b,u,"Generator"),l(b,o,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function nt(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function rt(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){nt(a,r,i,o,s,"next",e)}function s(e){nt(a,r,i,o,s,"throw",e)}o(void 0)}))}}function it(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function at(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e){return ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ot(e)}function st(e,t){return st=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},st(e,t)}
2function ut(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(xt){return!1}}function lt(e,t,n){return lt=ut()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&st(i,n.prototype),i},lt.apply(null,arguments)}function ct(e){var t="function"===typeof Map?new Map:void 0;return ct=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return lt(e,arguments,ot(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),st(r,e)},ct(e)}function ft(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dt(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&st(e,t)}function pt(t){var n=ut();return function(){var r,i=ot(t);if(n){var a=ot(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return ft(t)}(this,r)}}function ht(){return ht="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ot(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},ht.apply(this,arguments)}function gt(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mt(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,t(i.key),i)}}function yt(e,t,n){return t&&mt(e.prototype,t),n&&mt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var bt=n(926),_t=n(517),wt=n(713),kt=n(886);function xt(e){this.message=e}xt.prototype=new Error,xt.prototype.name="InvalidCharacterError";var St="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new xt("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function Et(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(St(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return St(t)}}function Ct(e){this.message=e}Ct.prototype=new Error,Ct.prototype.name="InvalidTokenError";var Tt,Pt,Nt,Rt=function(e,t){if("string"!=typeof e)throw new Ct("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Et(e.split(".")[n]))}catch(e){throw new Ct("Invalid token specified: "+e.message)}},It=["timeoutInSeconds"],Ot=["grant_type","redirect_uri","client_id","client_secret"],jt=["grant_type","client_id","client_secret","scope"],Lt=["grant_type","client_id","client_secret","timeoutInSeconds"],zt=["url","authority","client_id","redirect_uri","response_type","scope","state_data","response_mode","request_type","client_secret","nonce","resource","skipUserInfo","extraQueryParams","extraTokenParams","disablePKCE"],Ut=["redirectMethod"],Mt=["popupWindowFeatures","popupWindowTarget"],At=["silentRequestTimeoutInSeconds"],Ft=["silentRequestTimeoutInSeconds"],Dt=["redirectMethod"],Ht=["popupWindowFeatures","popupWindowTarget"],qt=["silentRequestTimeoutInSeconds"],Wt={debug:function(){},info:function(){},warn:function(){},error:function(){}}
2,Bt=function(e){return e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e}(Bt||{});(Nt=Bt||(Bt={})).reset=function(){Tt=3,Pt=Wt},Nt.setLevel=function(e){if(!(0<=e&&e<=4))throw new Error("Invalid log level");Tt=e},Nt.setLogger=function(e){Pt=e};var Vt=function(){function e(t){vt(this,e),this._name=t}return yt(e,[{key:"debug",value:function(){if(Tt>=4){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=Pt).debug.apply(t,[e._format(this._name,this._method)].concat(r))}}},{key:"info",value:function(){if(Tt>=3){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=Pt).info.apply(t,[e._format(this._name,this._method)].concat(r))}}},{key:"warn",value:function(){if(Tt>=2){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=Pt).warn.apply(t,[e._format(this._name,this._method)].concat(r))}}},{key:"error",value:function(){if(Tt>=1){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=Pt).error.apply(t,[e._format(this._name,this._method)].concat(r))}}},{key:"throw",value:function(e){throw this.error(e),e}},{key:"create",value:function(e){var t=Object.create(this);return t._method=e,t.debug("begin"),t}}],[{key:"createStatic",value:function(t,n){var r=new e("".concat(t,".").concat(n));return r.debug("begin"),r}},{key:"_format",value:function(e,t){var n="[".concat(e,"]");return t?"".concat(n," ").concat(t,":"):n}},{key:"debug",value:function(t){if(Tt>=4){for(var n,r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];(n=Pt).debug.apply(n,[e._format(t)].concat(i))}}},{key:"info",value:function(t){if(Tt>=3){for(var n,r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];(n=Pt).info.apply(n,[e._format(t)].concat(i))}}},{key:"warn",value:function(t){if(Tt>=2){for(var n,r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];(n=Pt).warn.apply(n,[e._format(t)].concat(i))}}},{key:"error",value:function(t){if(Tt>=1){for(var n,r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];(n=Pt).error.apply(n,[e._format(t)].concat(i))}}}]),e}();Bt.reset();var $t=function(){function e(){vt(this,e)}return yt(e,null,[{key:"_randomWord",value:function(){return bt.lib.WordArray.random(1).words[0]}},{key:"generateUUIDv4",value:function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(function(t){return(+t^e._randomWord()&15>>+t/4).toString(16)})).replace(/-/g,"")}},{key:"generateCodeVerifier",value:function(){return e.generateUUIDv4()+e.generateUUIDv4()+e.generateUUIDv4()}},{key:"generateCodeChallenge",value:function(e){try{var t=_t(e);return wt.stringify(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(Ke){throw Vt.error("CryptoUtils.generateCodeChallenge",Ke),Ke}}},{key:"generateBasicAuth",value:function(e,t){var n=kt.parse([e,t].join(":"));return wt.stringify(n)}}]),e}(),Qt=function(){function e(t){vt(this,e),this._name=t,this._logger=new Vt("Event('".concat(this._name,"')")),this._callbacks=[]}return yt(e,[{key:"addHandler",value:function(e){var t=this;return this._callbacks.push(e),function(){return t.removeHandler(e)}}},{key:"removeHandler",value:function(e){var t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}},{key:"raise",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=this._logger).debug.apply(e,["raise:"].concat(n));var i,a=gt(this._callbacks);try{for(a.s();!(i=a.n()).done;){i.value.apply(void 0,n)}}catch(Ke){a.e(Ke)}finally{a.f()}}}]),e}(),Kt=function(){function e(){vt(this,e)}return yt(e,null,[{key:"decode",value:function(e){try{return Rt(e)}catch(Ke){throw Vt.error("JwtUtils.decode",Ke),Ke}}}]),e}(),Jt=function(){function e(){vt(this,e)}return yt(e,null,[{key:"center",value:function(e){var t,n=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return null==n.width&&(n.width=null!=(t=[800,720,600,480].find((function(e){return e<=window.outerWidth/1.618})))?t:360),null!=n.left||(n.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-n.width)/2))),null!=n.height&&(null!=n.top||(n.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-n.height)/2)))),n}},{key:"serialize",value:function(e){return Object.entries(e).filter((function(e){return null!=c(e,2)[1]})).map((function(e){var t=c(e,2),n=t[0],r=t[1];return"".concat(n,"=").concat("boolean"!==typeof r?r:r?"yes":"no")})).join(",")}}]),e}(),Gt=function(e){dt(n,e);var t=pt(n);function n(){var e,r;return vt(this,n),(r=t.apply(this,arguments))._logger=new Vt("Timer('".concat(r._name,"')")),r._timerHandle=null,r._expiration=0,r._callback=function(){var t=r._expiration-n.getEpochTime();r._logger.debug("timer completes in",t),r._expiration<=n.getEpochTime()&&(r.cancel(),ht((e=ft(r),ot(n.prototype)),"raise",e).call(e))},r}return yt(n,[{key:"init",value:function(e){var t=this._logger.create("init");e=Math.max(Math.floor(e),1);var r=n.getEpochTime()+e;if(this.expiration===r&&this._timerHandle)t.debug("skipping since already initialized for expiration at",this.expiration);else{this.cancel(),t.debug("using duration",e),this._expiration=r;var i=Math.min(e,5);this._timerHandle=setInterval(this._callback,1e3*i)}}},{key:"expiration",get:function(){return this._expiration}},{key:"cancel",value:function(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}}],[{key:"getEpochTime",value:function(){return Math.floor(Date.now()/1e3)}}]),n}(Qt),Yt=function(){function e(){vt(this,e)}return yt(e,null,[{key:"readParams",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"query";if(!e)throw new TypeError("Invalid URL");var n=new URL(e,"http://127.0.0.1")["fragment"===t?"hash":"search"];return new URLSearchParams(n.slice(1))}}]),e}(),Xt=function(e){dt(n,e);var t=pt(n);function n(e,r){var i,a,o,s;if(vt(this,n),(i=t.call(this,e.error_description||e.error||"")).form=r,i.name="ErrorResponse",!e.error)throw Vt.error("ErrorResponse","No error passed"),new Error("No error passed");return i.error=e.error,i.error_description=null!=(a=e.error_description)?a:null,i.error_uri=null!=(o=e.error_uri)?o:null,i.state=e.userState,i.session_state=null!=(s=e.session_state)?s:null,i}return yt(n)}(ct(Error)),Zt=function(e){dt(n,e);var t=pt(n);function n(e){var r;return vt(this,n),(r=t.call(this,e)).name="ErrorTimeout",r}return yt(n)}(ct(Error)),en=function(){function e(t){vt(this,e),this._logger=new Vt("AccessTokenEvents"),this._expiringTimer=new Gt("Access token expiring"),this._expiredTimer=new Gt("Access token expired"),this._expiringNotificationTimeInSeconds=t.expiringNotificationTimeInSeconds}return yt(e,[{key:"load",value:function(e){var t=this._logger.create("load");if(e.access_token&&void 0!==e.expires_in){var n=e.expires_in;if(t.debug("access token present, remaining duration:",n),n>0){var r=n-this._expiringNotificationTimeInSeconds;r<=0&&(r=1),t.debug("registering expiring timer, raising in",r,"seconds"),this._expiringTimer.init(r)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();var i=n+1;t.debug("registering expired timer, raising in",i,"seconds"),this._expiredTimer.init(i)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}},{key:"unload",value:function(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}},{key:"addAccessTokenExpiring",value:function(e){return this._expiringTimer.addHandler(e)}},{key:"removeAccessTokenExpiring",value:function(e){this._expiringTimer.removeHandler(e)}},{key:"addAccessTokenExpired",value:function(e){return this._expiredTimer.addHandler(e)}},{key:"removeAccessTokenExpired",value:function(e){this._expiredTimer.removeHandler(e)}}]),e}(),tn=function(){function e(t,n,r,i,a){var o=this;vt(this,e),this._callback=t,this._client_id=n,this._intervalInSeconds=i,this._stopOnError=a,this._logger=new Vt("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=function(e){e.origin===o._frame_origin&&e.source===o._frame.contentWindow&&("error"===e.data?(o._logger.error("error message from check session op iframe"),o._stopOnError&&o.stop()):"changed"===e.data?(o._logger.debug("changed message from check session op iframe"),o.stop(),o._callback()):o._logger.debug(e.data+" message from check session op iframe"))};var s=new URL(r);this._frame_origin=s.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=s.href}return yt(e,[{key:"load",value:function(){var e=this;return new Promise((function(t){e._frame.onload=function(){t()},window.document.body.appendChild(e._frame),window.addEventListener("message",e._message,!1)}))}},{key:"start",value:function(e){var t=this;if(this._session_state!==e){this._logger.create("start"),this.stop(),this._session_state=e;var n=function(){t._frame.contentWindow&&t._session_state&&t._frame.contentWindow.postMessage(t._client_id+" "+t._session_state,t._frame_origin)};n(),this._timer=setInterval(n,1e3*this._intervalInSeconds)}}},{key:"stop",value:function(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}}]),e}(),nn=function(){function e(){vt(this,e),this._logger=new Vt("InMemoryWebStorage"),this._data={}}return yt(e,[{key:"clear",value:function(){this._logger.create("clear"),this._data={}}},{key:"getItem",value:function(e){return this._logger.create("getItem('".concat(e,"')")),this._data[e]}},{key:"setItem",value:function(e,t){this._logger.create("setItem('".concat(e,"')")),this._data[e]=t}},{key:"removeItem",value:function(e){this._logger.create("removeItem('".concat(e,"')")),delete this._data[e]}},{key:"length",get:function(){return Object.getOwnPropertyNames(this._data).length}},{key:"key",value:function(e){return Object.getOwnPropertyNames(this._data)[e]}}]),e}(),rn=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};vt(this,e),this._jwtHandler=r,this._extraHeaders=i,this._logger=new Vt("JsonService"),this._contentTypes=[],(t=this._contentTypes).push.apply(t,at(n).c
2oncat(["application/json"])),r&&this._contentTypes.push("application/jwt")}return yt(e,[{key:"fetchWithTimeout",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,o,s,u,l=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(n=l.length>1&&void 0!==l[1]?l[1]:{}).timeoutInSeconds,i=it(n,It),r){e.next=6;break}return e.next=5,fetch(t,i);case 5:return e.abrupt("return",e.sent);case 6:return o=new AbortController,s=setTimeout((function(){return o.abort()}),1e3*r),e.prev=8,e.next=11,fetch(t,a(a({},n),{},{signal:o.signal}));case 11:return u=e.sent,e.abrupt("return",u);case 15:if(e.prev=15,e.t0=e.catch(8),!(e.t0 instanceof DOMException&&"AbortError"===e.t0.name)){e.next=19;break}throw new Zt("Network timed out");case 19:throw e.t0;case 20:return e.prev=20,clearTimeout(s),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[8,15,20,23]])})));return function(t){return e.apply(this,arguments)}}()},{key:"getJson",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a,o,s,u,l,c=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(n=c.length>1&&void 0!==c[1]?c[1]:{}).token,i=n.credentials,a=this._logger.create("getJson"),o={Accept:this._contentTypes.join(", ")},r&&(a.debug("token passed, setting Authorization header"),o.Authorization="Bearer "+r),this.appendExtraHeaders(o),e.prev=5,a.debug("url:",t),e.next=9,this.fetchWithTimeout(t,{method:"GET",headers:o,credentials:i});case 9:s=e.sent,e.next=16;break;case 12:throw e.prev=12,e.t0=e.catch(5),a.error("Network Error"),e.t0;case 16:if(a.debug("HTTP response received, status",s.status),(u=s.headers.get("Content-Type"))&&!this._contentTypes.find((function(e){return u.startsWith(e)}))&&a.throw(new Error("Invalid response Content-Type: ".concat(null!=u?u:"undefined",", from URL: ").concat(t))),!(s.ok&&this._jwtHandler&&(null==u?void 0:u.startsWith("application/jwt")))){e.next=27;break}return e.t1=this,e.next=23,s.text();case 23:return e.t2=e.sent,e.next=26,e.t1._jwtHandler.call(e.t1,e.t2);case 26:return e.abrupt("return",e.sent);case 27:return e.prev=27,e.next=30,s.json();case 30:l=e.sent,e.next=39;break;case 33:if(e.prev=33,e.t3=e.catch(27),a.error("Error parsing JSON response",e.t3),!s.ok){e.next=38;break}throw e.t3;case 38:throw new Error("".concat(s.statusText," (").concat(s.status,")"));case 39:if(s.ok){e.next=44;break}if(a.error("Error from server:",l),!l.error){e.next=43;break}throw new Xt(l);case 43:throw new Error("".concat(s.statusText," (").concat(s.status,"): ").concat(JSON.stringify(l)));case 44:return e.abrupt("return",l);case 45:case"end":return e.stop()}}),e,this,[[5,12],[27,33]])})));return function(t){return e.apply(this,arguments)}}()},{key:"postForm",value:function(){var e=rt(tt().mark((function e(t,n){var r,i,a,o,s,u,l,c,f,d;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.body,i=n.basicAuth,a=n.timeoutInSeconds,o=n.initCredentials,s=this._logger.create("postForm"),u={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded"},void 0!==i&&(u.Authorization="Basic "+i),this.appendExtraHeaders(u),e.prev=5,s.debug("url:",t),e.next=9,this.fetchWithTimeout(t,{method:"POST",headers:u,body:r,timeoutInSeconds:a,credentials:o});case 9:l=e.sent,e.next=16;break;case 12:throw e.prev=12,e.t0=e.catch(5),s.error("Network error"),e.t0;case 16:if(s.debug("HTTP response received, status",l.status),!(c=l.headers.get("Content-Type"))||this._contentTypes.find((function(e){return c.startsWith(e)}))){e.next=20;break}throw new Error("Invalid response Content-Type: ".concat(null!=c?c:"undefined",", from URL: ").concat(t));case 20:return e.next=22,l.text();case 22:if(f=e.sent,d={},!f){e.next=35;break}e.prev=25,d=JSON.parse(f),e.next=35;break;case 29:if(e.prev=29,e.t1=e.catch(25),s.error("Error parsing JSON response",e.t1),!l.ok){e.next=34;break}throw e.t1;case 34:throw new Error("".concat(l.statusText," (").concat(l.status,")"));case 35:if(l.ok){e.next=40;break}if(s.error("Error from server:",d),!d.error){e.next=39;break}throw new Xt(d,r);case 39:throw new Error("".concat(l.statusText," (").concat(l.status,"): ").concat(JSON.stringify(d)));case 40:return e.abrupt("return",d);case 41:case"end":return e.stop()}}),e,this,[[5,12],[25,29]])}
2)));return function(t,n){return e.apply(this,arguments)}}()},{key:"appendExtraHeaders",value:function(e){var t=this,n=this._logger.create("appendExtraHeaders"),r=Object.keys(this._extraHeaders),i=["authorization","accept","content-type"];0!==r.length&&r.forEach((function(r){if(i.includes(r.toLocaleLowerCase()))n.warn("Protected header could not be overridden",r,i);else{var a="function"===typeof t._extraHeaders[r]?t._extraHeaders[r]():t._extraHeaders[r];a&&""!==a&&(e[r]=a)}}))}}]),e}(),an=function(){function e(t){vt(this,e),this._settings=t,this._logger=new Vt("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new rn(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}return yt(e,[{key:"resetSigningKeys",value:function(){this._signingKeys=null}},{key:"getMetadata",value:function(){var e=rt(tt().mark((function e(){var t,n;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._logger.create("getMetadata"),!this._metadata){e.next=4;break}return t.debug("using cached values"),e.abrupt("return",this._metadata);case 4:if(this._metadataUrl){e.next=7;break}throw t.throw(new Error("No authority or metadataUrl configured on settings")),null;case 7:return t.debug("getting metadata from",this._metadataUrl),e.next=10,this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials});case 10:return n=e.sent,t.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},this._settings.metadataSeed,n),e.abrupt("return",this._metadata);case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getIssuer",value:function(){return this._getMetadataProperty("issuer")}},{key:"getAuthorizationEndpoint",value:function(){return this._getMetadataProperty("authorization_endpoint")}},{key:"getUserInfoEndpoint",value:function(){return this._getMetadataProperty("userinfo_endpoint")}},{key:"getTokenEndpoint",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",e)}},{key:"getCheckSessionIframe",value:function(){return this._getMetadataProperty("check_session_iframe",!0)}},{key:"getEndSessionEndpoint",value:function(){return this._getMetadataProperty("end_session_endpoint",!0)}},{key:"getRevocationEndpoint",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("revocation_endpoint",e)}},{key:"getKeysEndpoint",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("jwks_uri",e)}},{key:"_getMetadataProperty",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]&&a[1],r=this._logger.create("_getMetadataProperty('".concat(t,"')")),e.next=4,this.getMetadata();case 4:if(i=e.sent,r.debug("resolved"),void 0!==i[t]){e.next=11;break}if(!0!==n){e.next=10;break}return r.warn("Metadata does not contain optional property"),e.abrupt("return",void 0);case 10:r.throw(new Error("Metadata does not contain property "+t));case 11:return e.abrupt("return",i[t]);case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getSigningKeys",value:function(){var e=rt(tt().mark((function e(){var t,n,r;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._logger.create("getSigningKeys"),!this._signingKeys){e.next=4;break}return t.debug("returning signingKeys from cache"),e.abrupt("return",this._signingKeys);case 4:return e.next=6,this.getKeysEndpoint(!1);case 6:return n=e.sent,t.debug("got jwks_uri",n),e.next=10,this._jsonService.getJson(n);case 10:if(r=e.sent,t.debug("got key set",r),Array.isArray(r.keys)){e.
2next=15;break}throw t.throw(new Error("Missing keys on keyset")),null;case 15:return this._signingKeys=r.keys,e.abrupt("return",this._signingKeys);case 17:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),on=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefix,r=void 0===n?"oidc.":n,i=t.store,a=void 0===i?localStorage:i;vt(this,e),this._logger=new Vt("WebStorageStateStore"),this._store=a,this._prefix=r}return yt(e,[{key:"set",value:function(){var e=rt(tt().mark((function e(t,n){return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._logger.create("set('".concat(t,"')")),t=this._prefix+t,e.next=4,this._store.setItem(t,n);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"get",value:function(){var e=rt(tt().mark((function e(t){var n;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._logger.create("get('".concat(t,"')")),t=this._prefix+t,e.next=4,this._store.getItem(t);case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"remove",value:function(){var e=rt(tt().mark((function e(t){var n;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._logger.create("remove('".concat(t,"')")),t=this._prefix+t,e.next=4,this._store.getItem(t);case 4:return n=e.sent,e.next=7,this._store.removeItem(t);case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getAllKeys",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._logger.create("getAllKeys"),e.next=3,this._store.length;case 3:t=e.sent,n=[],r=0;case 6:if(!(r<t)){e.next=14;break}return e.next=9,this._store.key(r);case 9:(i=e.sent)&&0===i.indexOf(this._prefix)&&n.push(i.substr(this._prefix.length));case 11:r++,e.next=6;break;case 14:return e.abrupt("return",n);case 15:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),sn=yt((function e(t){var n=t.authority,r=t.metadataUrl,i=t.metadata,a=t.signingKeys,o=t.metadataSeed,s=t.client_id,u=t.client_secret,l=t.response_type,c=void 0===l?"code":l,f=t.scope,d=void 0===f?"openid":f,p=t.redirect_uri,h=t.post_logout_redirect_uri,g=t.client_authentication,v=void 0===g?"client_secret_post":g,m=t.prompt,y=t.display,b=t.max_age,_=t.ui_locales,w=t.acr_values,k=t.resource,x=t.response_mode,S=void 0===x?"query":x,E=t.filterProtocolClaims,C=void 0===E||E,T=t.loadUserInfo,P=void 0!==T&&T,N=t.staleStateAgeInSeconds,R=void 0===N?900:N,I=t.clockSkewInSeconds,O=void 0===I?300:I,j=t.userInfoJwtIssuer,L=void 0===j?"OP":j,z=t.mergeClaims,U=void 0!==z&&z,M=t.disablePKCE,A=void 0!==M&&M,F=t.stateStore,D=t.refreshTokenCredentials,H=t.revokeTokenAdditionalContentTypes,q=t.fetchRequestCredentials,W=t.refreshTokenAllowedScope,B=t.extraQueryParams,V=void 0===B?{}:B,$=t.extraTokenParams,Q=void 0===$?{}:$,K=t.extraHeaders,J=void 0===K?{}:K;if(vt(this,e),this.authority=n,r?this.metadataUrl=r:(this.metadataUrl=n,n&&(this.metadataUrl.endsWith("/")||(this.metadataUrl+="/"),this.metadataUrl+=".well-known/openid-configuration")),this.metadata=i,this.metadataSeed=o,this.signingKeys=a,this.client_id=s,this.client_secret=u,this.response_type=c,this.scope=d,this.redirect_uri=p,this.post_logout_redirect_uri=h,this.client_authentication=v,this.prompt=m,this.display=y,this.max_age=b,this.ui_locales=_,this.acr_values=w,this.resource=k,this.response_mode=S,this.filterProtocolClaims=null==C||C,this.loadUserInfo=!!P,this.staleStateAgeInSeconds=R,this.clockSkewInSeconds=O,this.userInfoJwtIssuer=L,this.mergeClaims=!!U,this.disablePKCE=!!A,this.revokeTokenAdditionalContentTypes=H,q&&D&&console.warn("Both fetchRequestCredentials and refreshTokenCredentials is set. Only fetchRequestCredentials will be used."),this.fetchRequestCredentials=q||(D||"same-origin"),F)this.stateStore=F;else{var G="undefined"!==typeof window?window.localStorage:new nn;this.stateStore=new on({store:G})}this.refreshTokenAllowedScope=W,this.extraQueryParams=V,this.extraTokenParams=Q,this.extraHeaders=J})),un=function(){function e(t,n){var r=this;vt(this,e),this._settings=t,this._metadataService=n,this._logger=new Vt("UserInfoService"),this._getClaimsFromJwt=function(){var e=rt(tt().mark((function e(t){var n,i;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r._logger.create("_getClaimsFromJwt"),e.prev=1,i=Kt.decode(t),n.debug("JWT decoding successful"),e.abrupt("return",i);case 7:throw e.prev=7,e.t0=e.catch(1),n.error("Error parsing JWT response"),e.t0;case 11:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}(),this._jsonService=new rn(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}return yt(e,[{key:"getClaims",value:function(){var e=rt(tt().mark((function e(t){var n,r,i;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._logger.create("getClaims"),t||this._logger.throw(new Error("No token passed")),e.next=4,this._metadataService.getUserInfoEndpoint();case 4:return r=e.sent,n.debug("got userinfo url",r),e.next=8,this._jsonService.getJson(r,{token:t,credentials:this._settings.fetchRequestCredentials});case 8:return i=e.sent,n.debug("got claims",i),e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),ln=function(){function e(t,n){vt(this,e),this._settings=t,this._metadataService=n,this._logger=new Vt("TokenClient"),this._jsonService=new rn(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}
2return yt(e,[{key:"exchangeCode",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a,o,s,u,l,f,d,p,h,g,v,m,y,b,_,w;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=t.grant_type,r=void 0===n?"authorization_code":n,i=t.redirect_uri,a=void 0===i?this._settings.redirect_uri:i,o=t.client_id,s=void 0===o?this._settings.client_id:o,u=t.client_secret,l=void 0===u?this._settings.client_secret:u,f=it(t,Ot),d=this._logger.create("exchangeCode"),s||d.throw(new Error("A client_id is required")),a||d.throw(new Error("A redirect_uri is required")),f.code||d.throw(new Error("A code is required")),p=new URLSearchParams({grant_type:r,redirect_uri:a}),h=0,g=Object.entries(f);h<g.length;h++)v=c(g[h],2),m=v[0],null!=(y=v[1])&&p.set(m,y);e.t0=this._settings.client_authentication,e.next="client_secret_basic"===e.t0?10:"client_secret_post"===e.t0?15:18;break;case 10:if(l){e.next=13;break}throw d.throw(new Error("A client_secret is required")),null;case 13:return b=$t.generateBasicAuth(s,l),e.abrupt("break",18);case 15:return p.append("client_id",s),l&&p.append("client_secret",l),e.abrupt("break",18);case 18:return e.next=20,this._metadataService.getTokenEndpoint(!1);case 20:return _=e.sent,d.debug("got token endpoint"),e.next=24,this._jsonService.postForm(_,{body:p,basicAuth:b,initCredentials:this._settings.fetchRequestCredentials});case 24:return w=e.sent,d.debug("got response"),e.abrupt("return",w);case 27:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"exchangeCredentials",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a,o,s,u,l,f,d,p,h,g,v,m,y,b,_,w;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=t.grant_type,r=void 0===n?"password":n,i=t.client_id,a=void 0===i?this._settings.client_id:i,o=t.client_secret,s=void 0===o?this._settings.client_secret:o,u=t.scope,l=void 0===u?this._settings.scope:u,f=it(t,jt),d=this._logger.create("exchangeCredentials"),a||d.throw(new Error("A client_id is required")),p=new URLSearchParams({grant_type:r,scope:l}),h=0,g=Object.entries(f);h<g.length;h++)v=c(g[h],2),m=v[0],null!=(y=v[1])&&p.set(m,y);e.t0=this._settings.client_authentication,e.next="client_secret_basic"===e.t0?8:"client_secret_post"===e.t0?13:16;break;case 8:if(s){e.next=11;break}throw d.throw(new Error("A client_secret is required")),null;case 11:return b=$t.generateBasicAuth(a,s),e.abrupt("break",16);case 13:return p.append("client_id",a),s&&p.append("client_secret",s),e.abrupt("break",16);case 16:return e.next=18,this._metadataService.getTokenEndpoint(!1);case 18:return _=e.sent,d.debug("got token endpoint"),e.next=22,this._jsonService.postForm(_,{body:p,basicAuth:b,initCredentials:this._settings.fetchRequestCredentials});case 22:return w=e.sent,d.debug("got response"),e.abrupt("return",w);case 25:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"exchangeRefreshToken",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a,o,s,u,l,f,d,p,h,g,v,m,y,b,_;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=t.grant_type,r=void 0===n?"refresh_token":n,i=t.client_id,a=void 0===i?this._settings.client_id:i,o=t.client_secret,s=void 0===o?this._settings.client_secret:o,u=t.timeoutInSeconds,l=it(t,Lt),f=this._logger.create("exchangeRefreshToken"),a||f.throw(new Error("A client_id is required")),l.refresh_token||f.throw(new Error("A refresh_token is required")),d=new URLSearchParams({grant_type:r}),p=0,h=Object.entries(l);p<h.length;p++)g=c(h[p],2),v=g[0],null!=(m=g[1])&&d.set(v,m);e.t0=this._settings.client_authentication,e.next="client_secret_basic"===e.t0?9:"client_secret_post"===e.t0?14:17;break;case 9:if(s){e.next=12;break}throw f.throw(new Error("A client_secret is required")),null;case 12:return y=$t.generateBasicAuth(a,s),e.abrupt("break",17);case 14:return d.append("client_id",a),s&&d.append("client_secret",s),e.abrupt("break",17);case 17:return e.next=19,this._metadataService.getTokenEndpoint(!1);case 19:return b=e.sent,f.debug("got token endpoint"),e.next=23,this._jsonService.postForm(b,{body:d,basicAuth:y,timeoutInSeconds:u,initCredentials:this._settings.fetchRequestCredentials});case 23:return _=e.sent,f.debug("got response"),e.abrupt("return",_);case 26:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"revoke",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a,o,s,u,l,f;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._logger.create("revoke"),t.token||r.throw(new Error("A token is required")),e.next=4,this._metadataService.getRevocationEndpoint(!1);case 4:for(i=e.sent,r.debug("got revocation endpoint, revoking ".concat(null!=(n=t.token_type_hint)?n:"default token type")),a=new URLSearchParams,o=0,s=Object.entries(t);o<s.length;o++)u=c(s[o],2),l=u[0],null!=(f=u[1])&&a.set(l,f);return a.set("client_id",this._settings.client_id),this._settings.client_secret&&a.set("client_secret",this._settings.client_secret),e.next=12,this._jsonService.postForm(i,{body:a});case 12:r.debug("got response");case 13:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),cn=function(){function e(t,n,r){vt(this,e),this._settings=t,this._metadataService=n,this._claimsService=r,this._logger=new Vt("ResponseValidator"),this._userInfoService=new un(this._settings,this._metadataService),this._tokenClient=new ln(this._settings,this._metadataService)}return yt(e,[{key:"validateSigninResponse",value:function(){var e=rt(tt().mark((function e(t,n){var r;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._logger.create("validateSigninResponse"),this._processSigninState(t,n),r.debug("state processed"),e.next=5,this._processCode(t,n);
2case 5:return r.debug("code processed"),t.isOpenId&&this._validateIdTokenAttributes(t),r.debug("tokens validated"),e.next=10,this._processClaims(t,null==n?void 0:n.skipUserInfo,t.isOpenId);case 10:r.debug("claims processed");case 11:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"validateCredentialsResponse",value:function(){var e=rt(tt().mark((function e(t,n){var r;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._logger.create("validateCredentialsResponse"),t.isOpenId&&this._validateIdTokenAttributes(t),r.debug("tokens validated"),e.next=5,this._processClaims(t,n,t.isOpenId);case 5:r.debug("claims processed");case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"validateRefreshResponse",value:function(){var e=rt(tt().mark((function e(t,n){var r,i;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._logger.create("validateRefreshResponse"),t.userState=n.data,null!=t.session_state||(t.session_state=n.session_state),null!=t.scope||(t.scope=n.scope),t.isOpenId&&t.id_token&&(this._validateIdTokenAttributes(t,n.id_token),r.debug("ID Token validated")),t.id_token||(t.id_token=n.id_token,t.profile=n.profile),i=t.isOpenId&&!!t.id_token,e.next=9,this._processClaims(t,!1,i);case 9:r.debug("claims processed");case 10:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"validateSignoutResponse",value:function(e,t){var n=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&n.throw(new Error("State does not match")),n.debug("state validated"),e.userState=t.data,e.error)throw n.warn("Response was error",e.error),new Xt(e)}},{key:"_processSigninState",value:function(e,t){var n=this._logger.create("_processSigninState");if(t.id!==e.state&&n.throw(new Error("State does not match")),t.client_id||n.throw(new Error("No client_id on state")),t.authority||n.throw(new Error("No authority on state")),this._settings.authority!==t.authority&&n.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&n.throw(new Error("client_id mismatch on settings vs. signin state")),n.debug("state validated"),e.userState=t.data,null!=e.scope||(e.scope=t.scope),e.error)throw n.warn("Response was error",e.error),new Xt(e);t.code_verifier&&!e.code&&n.throw(new Error("Expected code in response"))}},{key:"_processClaims",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a,o=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=o.length>1&&void 0!==o[1]&&o[1],r=!(o.length>2&&void 0!==o[2])||o[2],i=this._logger.create("_processClaims"),t.profile=this._claimsService.filterProtocolClaims(t.profile),!n&&this._settings.loadUserInfo&&t.access_token){e.next=7;break}return i.debug("not loading user info"),e.abrupt("return");case 7:return i.debug("loading user info"),e.next=10,this._userInfoService.getClaims(t.access_token);case 10:a=e.sent,i.debug("user info claims received from user info endpoint"),r&&a.sub!==t.profile.sub&&i.throw(new Error("subject from UserInfo response does not match subject in ID Token")),t.profile=this._claimsService.mergeClaims(t.profile,this._claimsService.filterProtocolClaims(a)),i.debug("user info claims received, updated profile:",t.profile);case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_processCode",value:function(){var e=rt(tt().mark((function e(t,n){var r,i;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this._logger.create("_processCode"),!t.code){e.next=9;break}return r.debug("Validating code"),e.next=5,this._tokenClient.exchangeCode(a({client_id:n.client_id,client_secret:n.client_secret,code:t.code,redirect_uri:n.redirect_uri,code_verifier:n.code_verifier},n.extraTokenParams));case 5:i=e.sent,Object.assign(t,i),e.next=10;break;case 9:r.debug("No code to process");case 10:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_validateIdTokenAttributes",value:function(e,t){var n,r=this._logger.create("_validateIdTokenAttributes");r.debug("decoding ID Token JWT");var i=Kt.decode(null!=(n=e.id_token)?n:"");if(i.sub||r.throw(new Error("ID Token is missing a subject claim")),t){var a=Kt.decode(t);i.sub!==a.sub&&r.throw(new Error("sub in id_token does not match current sub")),i.auth_time&&i.auth_time!==a.auth_time&&r.throw(new Error("auth_time in id_token does not match original auth_time")),i.azp&&i.azp!==a.azp&&r.throw(new Error("azp in id_token does not match original azp")),!i.azp&&a.azp&&r.throw(new Error("azp not in id_token, but present in original id_token"))}e.profile=i}}]),e}(),fn=function(){function e(t){vt(this,e),this.id=t.id||$t.generateUUIDv4(),this.data=t.data,t.created&&t.created>0?this.created=t.created:this.created=Gt.getEpochTime(),this.request_type=t.request_type}return yt(e,[{key:"toStorageString",value:function(){return new Vt("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})}}],[{key:"fromStorageString",value:function(t){return Vt.createStatic("State","fromStorageString"),new e(JSON.parse(t))}},{key:"clearStaleState",value:function(){var t=rt(tt().mark((function t(n,r){var i,a,o,s,u,l,c,f;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=Vt.createStatic("State","clearStaleState"),a=Gt.getEpochTime()-r,t.next=4,n.getAllKeys();case 4:o=t.sent,i.debug("got keys",o),s=0;case 7:if(!(s<o.length)){t.next=18;break}return u=o[s],t.next=11,n.get(u);case 11:if(l=t.sent,c=!1,l)try{f=e.fromStorageString(l),i.debug("got item from key:",u,f.created),f.created<=a&&(c=!0)}catch(Ke){i.error("Error parsing state for key:",u,Ke),c=!0}else i.debug("no item in storage for key:",u),c=!0;c&&(i.debug("removed item for key:",u),n.remove(u));case 15:s++,t.next=7;break;case 18:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}]),e}(),dn=function(e){dt(n,e);var t=pt(n);function n(e){var r;return vt(this,n),r=t.call(this,e),!0===e.code_verifier?r.code_verifier=$t.generateCodeVerifier():e.code_verifier&&(r.code_verifier=e.code_verifier),r.code_verifier&&(r.code_challenge=$t.generateCodeChallenge(r.code_verifier)),r.authority=e.authority,r.client_id=e.client_id,r.redirect_uri=e.redirect_uri,r.scope=e.scope,r.client_secret=e.client_secret,r.extraTokenParams=e.extraTokenParams,r.response_mode=e.response_mode,r.skipUserInfo=e.skipUserInfo,r}return yt(n,[{key:"toStorageString",value:function(){return new Vt("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo})}}],[{key:"fromStorageString",value:function(e){return Vt.createStatic("SigninState","fromStorageString"),new n(JSON.parse(e))}}]),n}(fn),pn=yt((function e(t){var n=t.url,r=t.authority,i=t.client_id,o=t.redirect_uri,s=t.response_type,u=t.scope,l=t.state_data,f=t.response_mode,d=t.request_type,p=t.client_secret,h=t.nonce,g=t.resource,v=t.skipUserInfo,m=t.extraQueryParams,y=t.extraTokenParams,b=t.disablePKCE,_=it(t,zt);if(vt(this,e),this._logger=new Vt("SigninRequest"),!n)throw this._logger.error("ctor: No url passed"),new Error("url");
2if(!i)throw this._logger.error("ctor: No client_id passed"),new Error("client_id");if(!o)throw this._logger.error("ctor: No redirect_uri passed"),new Error("redirect_uri");if(!s)throw this._logger.error("ctor: No response_type passed"),new Error("response_type");if(!u)throw this._logger.error("ctor: No scope passed"),new Error("scope");if(!r)throw this._logger.error("ctor: No authority passed"),new Error("authority");this.state=new dn({data:l,request_type:d,code_verifier:!b,client_id:i,authority:r,redirect_uri:o,response_mode:f,client_secret:p,scope:u,extraTokenParams:y,skipUserInfo:v});var w=new URL(n);(w.searchParams.append("client_id",i),w.searchParams.append("redirect_uri",o),w.searchParams.append("response_type",s),w.searchParams.append("scope",u),h&&w.searchParams.append("nonce",h),w.searchParams.append("state",this.state.id),this.state.code_challenge&&(w.searchParams.append("code_challenge",this.state.code_challenge),w.searchParams.append("code_challenge_method","S256")),g)&&(Array.isArray(g)?g:[g]).forEach((function(e){return w.searchParams.append("resource",e)}));for(var k=0,x=Object.entries(a(a({response_mode:f},_),m));k<x.length;k++){var S=c(x[k],2),E=S[0],C=S[1];null!=C&&w.searchParams.append(E,C.toString())}this.url=w.href})),hn=function(){function e(t){vt(this,e),this.access_token="",this.token_type="",this.profile={},this.state=t.get("state"),this.session_state=t.get("session_state"),this.error=t.get("error"),this.error_description=t.get("error_description"),this.error_uri=t.get("error_uri"),this.code=t.get("code")}return yt(e,[{key:"expires_in",get:function(){if(void 0!==this.expires_at)return this.expires_at-Gt.getEpochTime()},set:function(e){"string"===typeof e&&(e=Number(e)),void 0!==e&&e>=0&&(this.expires_at=Math.floor(e)+Gt.getEpochTime())}},{key:"isOpenId",get:function(){var e;return(null==(e=this.scope)?void 0:e.split(" ").includes("openid"))||!!this.id_token}}]),e}(),gn=yt((function e(t){var n=t.url,r=t.state_data,i=t.id_token_hint,o=t.post_logout_redirect_uri,s=t.extraQueryParams,u=t.request_type;if(vt(this,e),this._logger=new Vt("SignoutRequest"),!n)throw this._logger.error("ctor: No url passed"),new Error("url");var l=new URL(n);i&&l.searchParams.append("id_token_hint",i),o&&(l.searchParams.append("post_logout_redirect_uri",o),r&&(this.state=new fn({data:r,request_type:u}),l.searchParams.append("state",this.state.id)));for(var f=0,d=Object.entries(a({},s));f<d.length;f++){var p=c(d[f],2),h=p[0],g=p[1];null!=g&&l.searchParams.append(h,g.toString())}this.url=l.href})),vn=yt((function e(t){vt(this,e),this.state=t.get("state"),this.error=t.get("error"),this.error_description=t.get("error_description"),this.error_uri=t.get("error_uri")})),mn=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],yn=["sub","iss","aud","exp","iat"],bn=function(){function e(t){vt(this,e),this._settings=t,this._logger=new Vt("ClaimsService")}return yt(e,[{key:"filterProtocolClaims",value:function(e){var t=a({},e);if(this._settings.filterProtocolClaims){var n,r=gt(Array.isArray(this._settings.filterProtocolClaims)?this._settings.filterProtocolClaims:mn);try{for(r.s();!(n=r.n()).done;){var i=n.value;yn.includes(i)||delete t[i]}}catch(Ke){r.e(Ke)}finally{r.f()}}return t}},{key:"mergeClaims",value:function(e,t){for(var n=a({},e),r=0,i=Object.entries(t);r<i.length;r++){var o,s=c(i[r],2),u=s[0],l=s[1],f=gt(Array.isArray(l)?l:[l]);try{for(f.s();!(o=f.n()).done;){var d=o.value,p=n[u];p?Array.isArray(p)?p.includes(d)||p.push(d):n[u]!==d&&("object"===typeof d&&this._settings.mergeClaims?n[u]=this.mergeClaims(p,d):n[u]=[p,d]):n[u]=d}}catch(Ke){f.e(Ke)}finally{f.f()}}return n}}]),e}(),_n=function(){function e(t){vt(this,e),this._logger=new Vt("OidcClient"),this.settings=new sn(t),this.metadataService=new an(this.settings),this._claimsService=new bn(this.settings),this._validator=new cn(this.settings,this.metadataService,this._claimsService),this._tokenClient=new ln(this.settings,this.metadataService)}return yt(e,[{key:"createSigninRequest",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a,o,s,u,l,c,f,d,p,h,g,v,m,y,b,_,w,k,x,S,E,C,T,P,N,R,I,O,j,L,z,U,M;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.state,r=t.request,i=t.request_uri,a=t.request_type,o=t.id_token_hint,s=t.login_hint,u=t.
2skipUserInfo,l=t.nonce,c=t.response_type,f=void 0===c?this.settings.response_type:c,d=t.scope,p=void 0===d?this.settings.scope:d,h=t.redirect_uri,g=void 0===h?this.settings.redirect_uri:h,v=t.prompt,m=void 0===v?this.settings.prompt:v,y=t.display,b=void 0===y?this.settings.display:y,_=t.max_age,w=void 0===_?this.settings.max_age:_,k=t.ui_locales,x=void 0===k?this.settings.ui_locales:k,S=t.acr_values,E=void 0===S?this.settings.acr_values:S,C=t.resource,T=void 0===C?this.settings.resource:C,P=t.response_mode,N=void 0===P?this.settings.response_mode:P,R=t.extraQueryParams,I=void 0===R?this.settings.extraQueryParams:R,O=t.extraTokenParams,j=void 0===O?this.settings.extraTokenParams:O,L=this._logger.create("createSigninRequest"),"code"===f){e.next=4;break}throw new Error("Only the Authorization Code flow (with PKCE) is supported");case 4:return e.next=6,this.metadataService.getAuthorizationEndpoint();case 6:return z=e.sent,L.debug("Received authorization endpoint",z),U=new pn({url:z,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:g,response_type:f,scope:p,state_data:n,prompt:m,display:b,max_age:w,ui_locales:x,id_token_hint:o,login_hint:s,acr_values:E,resource:T,request:r,request_uri:i,extraQueryParams:I,extraTokenParams:j,request_type:a,response_mode:N,client_secret:this.settings.client_secret,skipUserInfo:u,nonce:l,disablePKCE:this.settings.disablePKCE}),e.next=11,this.clearStaleState();case 11:return M=U.state,e.next=14,this.settings.stateStore.set(M.id,M.toStorageString());case 14:return e.abrupt("return",U);case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"readSigninResponseState",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a,o,s=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=s.length>1&&void 0!==s[1]&&s[1],r=this._logger.create("readSigninResponseState"),(i=new hn(Yt.readParams(t,this.settings.response_mode))).state){e.next=6;break}throw r.throw(new Error("No state in response")),null;case 6:return e.next=8,this.settings.stateStore[n?"remove":"get"](i.state);case 8:if(a=e.sent){e.next=12;break}throw r.throw(new Error("No matching state found in storage")),null;case 12:return o=dn.fromStorageString(a),e.abrupt("return",{state:o,response:i});case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"processSigninResponse",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._logger.create("processSigninResponse"),e.next=3,this.readSigninResponseState(t,!0);case 3:return r=e.sent,i=r.state,a=r.response,n.debug("received state from storage; validating response"),e.next=9,this._validator.validateSigninResponse(a,i);case 9:return e.abrupt("return",a);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"processResourceOwnerPasswordCredentials",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,o,s,u,l,c;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.username,r=t.password,i=t.skipUserInfo,o=void 0!==i&&i,s=t.extraTokenParams,u=void 0===s?{}:s,e.next=3,this._tokenClient.exchangeCredentials(a({username:n,password:r},u));case 3:return l=e.sent,c=new hn(new URLSearchParams),Object.assign(c,l),e.next=8,this._validator.validateCredentialsResponse(c,o);case 8:return e.abrupt("return",c);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"useRefreshToken",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,o,s,u,l,c,f;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.state,r=t.timeoutInSeconds,o=this._logger.create("useRefreshToken"),void 0===this.settings.refreshTokenAllowedScope?s=n.scope:(u=this.settings.refreshTokenAllowedScope.split(" "),l=(null==(i=n.scope)?void 0:i.split(" "))||[],s=l.filter((function(e){return u.includes(e)})).join(" ")),e.next=5,this._tokenClient.exchangeRefreshToken({refresh_token:n.refresh_token,scope:s,timeoutInSeconds:r});case 5:return c=e.sent,f=new hn(new URLSearchParams),Object.assign(f,c),o.debug("validating response",f),e.next=11,this._val
2idator.validateRefreshResponse(f,a(a({},n),{},{scope:s}));case 11:return e.abrupt("return",f);case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"createSignoutRequest",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i,a,o,s,u,l,c,f,d,p=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t=p.length>0&&void 0!==p[0]?p[0]:{}).state,r=t.id_token_hint,i=t.request_type,a=t.post_logout_redirect_uri,o=void 0===a?this.settings.post_logout_redirect_uri:a,s=t.extraQueryParams,u=void 0===s?this.settings.extraQueryParams:s,l=this._logger.create("createSignoutRequest"),e.next=4,this.metadataService.getEndSessionEndpoint();case 4:if(c=e.sent){e.next=8;break}throw l.throw(new Error("No end session endpoint")),null;case 8:return l.debug("Received end session endpoint",c),f=new gn({url:c,id_token_hint:r,post_logout_redirect_uri:o,state_data:n,extraQueryParams:u,request_type:i}),e.next=12,this.clearStaleState();case 12:if(!(d=f.state)){e.next=17;break}return l.debug("Signout request has state to persist"),e.next=17,this.settings.stateStore.set(d.id,d.toStorageString());case 17:return e.abrupt("return",f);case 18:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"readSignoutResponseState",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a,o,s=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=s.length>1&&void 0!==s[1]&&s[1],r=this._logger.create("readSignoutResponseState"),(i=new vn(Yt.readParams(t,this.settings.response_mode))).state){e.next=9;break}if(r.debug("No state in response"),!i.error){e.next=8;break}throw r.warn("Response was error:",i.error),new Xt(i);case 8:return e.abrupt("return",{state:void 0,response:i});case 9:return e.next=11,this.settings.stateStore[n?"remove":"get"](i.state);case 11:if(a=e.sent){e.next=15;break}throw r.throw(new Error("No matching state found in storage")),null;case 15:return o=fn.fromStorageString(a),e.abrupt("return",{state:o,response:i});case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"processSignoutResponse",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._logger.create("processSignoutResponse"),e.next=3,this.readSignoutResponseState(t,!0);case 3:return r=e.sent,i=r.state,a=r.response,i?(n.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(a,i)):n.debug("No state from storage; skipping response validation"),e.abrupt("return",a);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"clearStaleState",value:function(){return this._logger.create("clearStaleState"),fn.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}},{key:"revokeToken",value:function(){var e=rt(tt().mark((function e(t,n){return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._logger.create("revokeToken"),e.next=3,this._tokenClient.revoke({token:t,token_type_hint:n});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}(),wn=function(){function e(t){var n=this;vt(this,e),this._userManager=t,this._logger=new Vt("SessionMonitor"),this._start=function(){var e=rt(tt().mark((function e(t){var r,i,a,o,s,u,l;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.session_state){e.next=3;break}return e.abrupt("return");case 3:if(i=n._logger.create("_start"),t.profile?(n._sub=t.profile.sub,n._sid=t.profile.sid,i.debug("session_state",r,", sub",n._sub)):(n._sub=void 0,n._sid=void 0,i.debug("session_state",r,", anonymous user")),!n._checkSessionIFrame){e.next=8;break}return n._checkSessionIFrame.start(r),e.abrupt("return");case 8:return e.prev=8,e.next=11,n._userManager.metadataService.getCheckSessionIframe();case 11:if(!(a=e.sent)){e.next=24;break}return i.debug("initializing check session iframe"),o=n._userManager.settings.client_id,s=n._userManager.settings.checkSessionIntervalInSeconds,u=n._userManager.settings.stopCheckSessionOnError,l=new tn(n._callback,o,a,s,u),e.next=20,l.load();case 20:n._checkSessionIFrame=l,l.start(r),e.next=25;break;case 24:i.warn("no check session iframe found in the metadata");case 25:e.next=30;break;case 27:e.prev=27,e.t0=e.catch(8),i.error("Error from getCheckSessionIframe:",e.t0 instanceof Error?e.t0.message:e.t0);case 30:case"end":return e.stop()}}),e,null,[[8,27]])})));return function(t){return e.apply(this,arguments)}}(),this._stop=function(){var e=n._logger.create("_stop");if(n._sub=void 0,n._sid=void 0,n._checkSessionIFrame&&n._checkSessionIFrame.stop(),n._userManager.settings.monitorAnonymousSession)var t=setInterval(rt(tt().mark((function r(){var i,a;return tt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return clearInterval(t),r.prev=1,r.next=4,n._userManager.querySessionStatus();case 4:(i=r.sent)&&(a={session_state:i.session_state,profile:i.sub&&i.sid?{sub:i.sub,sid:i.sid}:null},n._start(a)),r.next=11;break;case 8:r.prev=8,r.t0=r.catch(1),e.error("error from querySessionStatus",r.t0 instanceof Error?r.t0.message:r.t0);case 11:case"end":return r.stop()}}),r,null,[[1,8]])}))),1e3)},this._callback=rt(tt().mark((function e(){var t,r,i;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n._logger.create("_callback"),e.prev=1,e.next=4,n._userManager.querySessionStatus();case 4:r=e.sent,i=!0,r&&n._checkSessionIFrame?r.sub===n._sub?(i=!1,n._checkSessionIFrame.start(r.session_state),r.sid===n._sid?t.debug("same sub still logged in at OP, restarting check session iframe; session_state",r.session_state):(t.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",r.session_state),n._userManager.events._raiseUserSessionChanged())):t.debug("different subject signed into OP",r.sub):t.debug("subject no longer signed into OP"),i?n._sub?n._userManager.events._raiseUserSignedOut():n._userManager.events._raiseUserSignedIn():t.debug("no change in session detected, no event to raise"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),n._sub&&(t.debug("Error calling queryCurrentSigninSession; raising signed out event",e.t0),n._userManager.events._raiseUserSignedOut());case 13:case"end":return e.stop()}}),e,null,[[1,10]])}))),t||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch((function(e){n._logger.error(e)}))}return yt(e,[{key:"_init",value:function(){var e=rt(tt().mark((function e(){var t,n,r;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._logger.create("_init"),e.next=3,this._userManager.getUser();case 3:if(!(t=e.sent)){e.next=8;break}this._start(t),e.next=13;break;case 8:if(!this._userManager.settings.monitorAnonymousSession){e.next=13;break}return e.next=11,this._userManager.querySessionStatus();case 11:(n=e.sent)&&(r={session_state:n.session_state,profile:n.sub&&n.sid?{sub:n.sub,sid:n.sid}:null},this._start(r));case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),kn=function(){function e(t){var n;vt(this,e),this.id_token=t.id_token,this.session_state=null!=(n=t.session_state)?n:null,this.access_token=t.access_token,this.refresh_token=t.refresh_token,this.token_type=t.token_type,this.scope=t.scope,this.profile=t.profile,this.expires_at=t.expires_at,this.state=t.userState}return yt(e,[{key:"expires_in",get:function(){if(void 0!==this.expires_at)return this.expires_at-Gt.getEpochTime()},set:function(e){void 0!==e&&(this.expires_at=Math.floor(e)+Gt.getEpochTime())}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){var e,t;return null!=(t=null==(e=this.scope)?void 0:e.split(" "))?t:[]}},{key:"toStorageString",value:function(){return new Vt("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}}],[{key:"fromStorageString",value:function(t){return Vt.createStatic("User","fromStorageString"),new e(JSON.parse(t))}}]),e}(),xn="oidc-client",Sn=function(){function e(){vt(this,e),this._abort=new Qt("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}return yt(e,[{key:"navigate",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a,o=this;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this._logger.create("navigate"),this._window){e.next=3;break}throw new Error("Attempted to navigate on a disposed window");case 3:return n.debug("setting URL in window"),this._window.location.replace(t.url),e.next=7,new Promise((function(e,r){var i=function(i){var a,s=i.data,u=null!=(a=t.scriptOrigin)?a:window.location.origin;if(i.origin===u&&(null==s?void 0:s.source)===xn){try{var l=Yt.readParams(s.url,t.response_mode).get("state");if(l||n.warn("no state found in response url"),i.source!==o._window&&l!==t.state)return}catch(Ke){o._dispose(),r(new Error("Invalid response from window"))}e(s)}};window.addEventListener("message",i,!1),o._disposeHandlers.add((function(){return window.removeEventListener("message",i,!1)})),o._disposeHandlers.add(o._abort.addHandler((function(e){o._dispose(),r(e)})))}
2));case 7:return r=e.sent,i=r.url,a=r.keepOpen,n.debug("got response from window"),this._dispose(),a||this.close(),e.abrupt("return",{url:i});case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_dispose",value:function(){this._logger.create("_dispose");var e,t=gt(this._disposeHandlers);try{for(t.s();!(e=t.n()).done;){(0,e.value)()}}catch(Ke){t.e(Ke)}finally{t.f()}this._disposeHandlers.clear()}}],[{key:"_notifyParent",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.location.origin;e.postMessage({source:xn,url:t,keepOpen:n},r)}}]),e}(),En={location:!1,toolbar:!1,height:640},Cn="_blank",Tn=function(e){dt(n,e);var t=pt(n);function n(e){var r;vt(this,n);var i=e.popup_redirect_uri,a=void 0===i?e.redirect_uri:i,o=e.popup_post_logout_redirect_uri,s=void 0===o?e.post_logout_redirect_uri:o,u=e.popupWindowFeatures,l=void 0===u?En:u,c=e.popupWindowTarget,f=void 0===c?Cn:c,d=e.redirectMethod,p=void 0===d?"assign":d,h=e.redirectTarget,g=void 0===h?"self":h,v=e.iframeNotifyParentOrigin,m=void 0===v?e.iframeNotifyParentOrigin:v,y=e.iframeScriptOrigin,b=void 0===y?e.iframeScriptOrigin:y,_=e.silent_redirect_uri,w=void 0===_?e.redirect_uri:_,k=e.silentRequestTimeoutInSeconds,x=void 0===k?10:k,S=e.automaticSilentRenew,E=void 0===S||S,C=e.validateSubOnSilentRenew,T=void 0===C||C,P=e.includeIdTokenInSilentRenew,N=void 0!==P&&P,R=e.monitorSession,I=void 0!==R&&R,O=e.monitorAnonymousSession,j=void 0!==O&&O,L=e.checkSessionIntervalInSeconds,z=void 0===L?2:L,U=e.query_status_response_type,M=void 0===U?"code":U,A=e.stopCheckSessionOnError,F=void 0===A||A,D=e.revokeTokenTypes,H=void 0===D?["access_token","refresh_token"]:D,q=e.revokeTokensOnSignout,W=void 0!==q&&q,B=e.includeIdTokenInSilentSignout,V=void 0!==B&&B,$=e.accessTokenExpiringNotificationTimeInSeconds,Q=void 0===$?60:$,K=e.userStore;if((r=t.call(this,e)).popup_redirect_uri=a,r.popup_post_logout_redirect_uri=s,r.popupWindowFeatures=l,r.popupWindowTarget=f,r.redirectMethod=p,r.redirectTarget=g,r.iframeNotifyParentOrigin=m,r.iframeScriptOrigin=b,r.silent_redirect_uri=w,r.silentRequestTimeoutInSeconds=x,r.automaticSilentRenew=E,r.validateSubOnSilentRenew=T,r.includeIdTokenInSilentRenew=N,r.monitorSession=I,r.monitorAnonymousSession=j,r.checkSessionIntervalInSeconds=z,r.stopCheckSessionOnError=F,r.query_status_response_type=M,r.revokeTokenTypes=H,r.revokeTokensOnSignout=W,r.includeIdTokenInSilentSignout=V,r.accessTokenExpiringNotificationTimeInSeconds=Q,K)r.userStore=K;else{var J="undefined"!==typeof window?window.sessionStorage:new nn;r.userStore=new on({store:J})}return r}return yt(n)}(sn),Pn=function(e){dt(n,e);var t=pt(n);function n(e){var r,i=e.silentRequestTimeoutInSeconds,a=void 0===i?10:i;return vt(this,n),(r=t.call(this))._logger=new Vt("IFrameWindow"),r._timeoutInSeconds=a,r._frame=n.createHiddenIframe(),r._window=r._frame.contentWindow,r}return yt(n,[{key:"navigate",value:function(){var e=rt(tt().mark((function e(t){var r,i=this;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds),r=setTimeout((function(){return i._abort.raise(new Zt("IFrame timed out without a response"))}),1e3*this._timeoutInSeconds),this._disposeHandlers.add((function(){return clearTimeout(r)})),e.next=5,ht(ot(n.prototype),"navigate",this).call(this,t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"close",value:function(){var e,t=this;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",(function(e){var n,r=e.target;null==(n=r.parentNode)||n.removeChild(r),t._abort.raise(new Error("IFrame removed from DOM"))}),!0),null==(e=this._frame.contentWindow)||e.location.replace("about:blank")),this._frame=null),this._window=null}}],[{key:"createHiddenIframe",value:function(){var e=window.document.createElement("iframe");return e.style.visibility="hidden",e.style.position="fixed",e.style.left="-1000px",e.
2style.top="0",e.width="0",e.height="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),window.document.body.appendChild(e),e}},{key:"notifyParent",value:function(e,t){return ht(ot(n),"_notifyParent",this).call(this,window.parent,e,!1,t)}}]),n}(Sn),Nn=function(){function e(t){vt(this,e),this._settings=t,this._logger=new Vt("IFrameNavigator")}return yt(e,[{key:"prepare",value:function(){var e=rt(tt().mark((function e(t){var n,r;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.silentRequestTimeoutInSeconds,r=void 0===n?this._settings.silentRequestTimeoutInSeconds:n,e.abrupt("return",new Pn({silentRequestTimeoutInSeconds:r}));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"callback",value:function(){var e=rt(tt().mark((function e(t){return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._logger.create("callback"),Pn.notifyParent(t,this._settings.iframeNotifyParentOrigin);case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),Rn=function(e){dt(n,e);var t=pt(n);function n(e){var r,i=e.popupWindowTarget,o=void 0===i?Cn:i,s=e.popupWindowFeatures,u=void 0===s?{}:s;vt(this,n),(r=t.call(this))._logger=new Vt("PopupWindow");var l=Jt.center(a(a({},En),u));return r._window=window.open(void 0,o,Jt.serialize(l)),r}return yt(n,[{key:"navigate",value:function(){var e=rt(tt().mark((function e(t){var r,i,a=this;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==(r=this._window)||r.focus(),i=setInterval((function(){a._window&&!a._window.closed||a._abort.raise(new Error("Popup closed by user"))}),500),this._disposeHandlers.add((function(){return clearInterval(i)})),e.next=5,ht(ot(n.prototype),"navigate",this).call(this,t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"close",value:function(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}}],[{key:"notifyOpener",value:function(e,t){if(!window.opener)throw new Error("No window.opener. Can't complete notification.");return ht(ot(n),"_notifyParent",this).call(this,window.opener,e,t)}}]),n}(Sn),In=function(){function e(t){vt(this,e),this._settings=t,this._logger=new Vt("PopupNavigator")}return yt(e,[{key:"prepare",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.popupWindowFeatures,r=void 0===n?this._settings.popupWindowFeatures:n,i=t.popupWindowTarget,a=void 0===i?this._settings.popupWindowTarget:i,e.abrupt("return",new Rn({popupWindowFeatures:r,popupWindowTarget:a}));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"callback",value:function(){var e=rt(tt().mark((function e(t){var n,r=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.length>1&&void 0!==r[1]&&r[1],this._logger.create("callback"),Rn.notifyOpener(t,n);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),On=function(){function e(t){vt(this,e),this._settings=t,this._logger=new Vt("RedirectNavigator")}return yt(e,[{key:"prepare",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a,o,s,u,l,c=this;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirectMethod,r=void 0===n?this._settings.redirectMethod:n,i=t.redirectTarget,a=void 0===i?this._settings.redirectTarget:i,this._logger.create("prepare"),s=window.self,"top"===a&&(s=null!=(o=window.top)?o:window.self),u=s.location[r].bind(s.location),e.abrupt("return",{navigate:function(){var e=rt(tt().mark((function e(t){var n;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c._logger.create("navigate"),n=new Promise((function(e,t){l=t})),u(t.url),e.next=5,n;case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),close:function(){c._logger.create("close"),null==l||l(new Error("Redirect aborted")),s.stop()}});case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),jn=function(e){dt(n,e);var t=pt(n);function n(e){var r;return vt(this,n),(r=t.call(this,{expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}))._logger=new Vt("UserManagerEvents"),r._userLoaded=new Qt("User loaded"),r._userUnloaded=new Qt("User unloaded"),r._silentRenewError=ne
2w Qt("Silent renew error"),r._userSignedIn=new Qt("User signed in"),r._userSignedOut=new Qt("User signed out"),r._userSessionChanged=new Qt("User session changed"),r}return yt(n,[{key:"load",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];ht(ot(n.prototype),"load",this).call(this,e),t&&this._userLoaded.raise(e)}},{key:"unload",value:function(){ht(ot(n.prototype),"unload",this).call(this),this._userUnloaded.raise()}},{key:"addUserLoaded",value:function(e){return this._userLoaded.addHandler(e)}},{key:"removeUserLoaded",value:function(e){return this._userLoaded.removeHandler(e)}},{key:"addUserUnloaded",value:function(e){return this._userUnloaded.addHandler(e)}},{key:"removeUserUnloaded",value:function(e){return this._userUnloaded.removeHandler(e)}},{key:"addSilentRenewError",value:function(e){return this._silentRenewError.addHandler(e)}},{key:"removeSilentRenewError",value:function(e){return this._silentRenewError.removeHandler(e)}},{key:"_raiseSilentRenewError",value:function(e){this._silentRenewError.raise(e)}},{key:"addUserSignedIn",value:function(e){return this._userSignedIn.addHandler(e)}},{key:"removeUserSignedIn",value:function(e){this._userSignedIn.removeHandler(e)}},{key:"_raiseUserSignedIn",value:function(){this._userSignedIn.raise()}},{key:"addUserSignedOut",value:function(e){return this._userSignedOut.addHandler(e)}},{key:"removeUserSignedOut",value:function(e){this._userSignedOut.removeHandler(e)}},{key:"_raiseUserSignedOut",value:function(){this._userSignedOut.raise()}},{key:"addUserSessionChanged",value:function(e){return this._userSessionChanged.addHandler(e)}},{key:"removeUserSessionChanged",value:function(e){this._userSessionChanged.removeHandler(e)}},{key:"_raiseUserSessionChanged",value:function(){this._userSessionChanged.raise()}}]),n}(en),Ln=function(){function e(t){var n=this;vt(this,e),this._userManager=t,this._logger=new Vt("SilentRenewService"),this._isStarted=!1,this._retryTimer=new Gt("Retry Silent Renew"),this._tokenExpiring=rt(tt().mark((function e(){var t;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n._logger.create("_tokenExpiring"),e.prev=1,e.next=4,n._userManager.signinSilent();case 4:t.debug("silent token renewal successful"),e.next=15;break;case 7:if(e.prev=7,e.t0=e.catch(1),!(e.t0 instanceof Zt)){e.next=13;break}return t.warn("ErrorTimeout from signinSilent:",e.t0,"retry in 5s"),n._retryTimer.init(5),e.abrupt("return");case 13:t.error("Error from signinSilent:",e.t0),n._userManager.events._raiseSilentRenewError(e.t0);case 15:case"end":return e.stop()}}),e,null,[[1,7]])})))}return yt(e,[{key:"start",value:function(){var e=rt(tt().mark((function e(){var t;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._logger.create("start"),this._isStarted){e.next=13;break}return this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring),e.prev=5,e.next=8,this._userManager.getUser();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),t.error("getUser error",e.t0);case 13:case"end":return e.stop()}}),e,this,[[5,10]])})));return function(){return e.apply(this,arguments)}}()},{key:"stop",value:function(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}}]),e}(),zn=yt((function e(t){vt(this,e),this.refresh_token=t.refresh_token,this.id_token=t.id_token,this.session_state=t.session_state,this.scope=t.scope,this.profile=t.profile,this.data=t.state})),Un=function(){function e(t){vt(this,e),this._logger=new Vt("UserManager"),this.settings=new Tn(t),this._client=new _n(t),this._redirectNavigator=new On(this.settings),this._popupNavigator=new In(this.settings),this._iframeNavigator=new Nn(this.settings),this._events=new jn(this.settings),this._silentRenewService=new Ln(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new wn(this))}return yt(e,[{key:"events",get:function(){return this._events}},{key:"metadataService",get:function(){return this._client.metadataService}},{key:"getUser",value:function(){var e=rt(tt().mark((function e(){var t,n;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._logger.create("getUser"),e.next=3,this._loadUser();case 3:if(!(n=e.sent)){e.next=8;break}return t.info("user loaded"),this._events.load(n,!1),e.abrupt("return",n);case 8:return t.info("user not found in storage"),e.abrupt("return",null);case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"removeUser",value:function(){var e=rt(tt().mark((function e(){var t;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._logger.create("removeUser"),e.next=3,this.storeUser(null);case 3:t.info("user removed from storage"),this._events.unload();case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signinRedirect",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i,o=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},this._logger.create("signinRedirect"),n=t.redirectMethod,r=it(t,Ut),e.next=5,this._redirectNavigator.prepare({redirectMethod:n});case 5:return i=e.sent,e.next=8,this._signinStart(a({request_type:"si:r"},r),i);case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signinRedirectCallback",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:window.location.href,n=this._logger.create("signinRedirectCallback"),e.next=4,this._signinEnd(t);case 4:return(r=e.sent).profile&&r.profile.sub?n.info("success, signed in subject",r.profile.sub):n.info("no subject"),e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signinResourceOwnerCredentials",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a,o,s,u;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.username,r=t.password,i=t.skipUserInfo,a=void 0!==i&&i,o=this._logger.create("signinResourceOwnerCredential"),e.next=4,this._client.processResourceOwnerPasswordCredentials({username:n,password:r,skipUserInfo:a,extraTokenParams:this.settings.extraTokenParams});case 4:return s=e.sent,o.debug("got signin response"),e.next=8,this._buildUser(s);case 8:return(u=e.sent).profile&&u.profile.sub?o.info("success, signed in subject",u.profile.sub):o.info("no subject"),e.abrupt("return",u);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signinPopup",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i,o,s,u,l,c=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=this._logger.create("signinPopup"),r=t.popupWindowFeatures,i=t.popupWindowTarget,o=it(t,Mt),(s=this.settings.popup_redirect_uri)||n.throw(new Error("No popup_redirect_uri configured")),e.next=7,this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:i});case 7:return u=e.sent,e.next=10,this._signin(a({request_type:"si:p",redirect_uri:s,display:"popup"},o),u);case 10:return(l=e.sent)&&(l.profile&&l.profile.sub?n.info("success, signed in subject",l.profile.sub):n.info("no subject")),e.abrupt("return",l);case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signinPopupCallback",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:window.location.href,n=i.length>1&&void 0!==i[1]&&i[1],r=this._logger.create("signinPopupCallback"),e.next=5,this._popupNavigator.callback(t,n);case 5:r.info("success");case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signinSilent",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i,o,s,u,l,c,f,d=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>0&&void 0!==d[0]?d[0]:{},r=this._logger.create("signinSilent"),i=t.silentRequestTimeoutInSeconds,o=it(t,At),e.next=5,this._loadUser();case 5:if(!(null==(s=e.sent)?void 0:s.refresh_token)){e.next=12;break}return r.debug("using refresh token"),u=new zn(s),e.next=11,this._useRefreshToken(u);case 11:return e.abrupt("return",e.sent);case 12:return(l=this.settings.silent_redirect_uri)||r.throw(new Error("No silent_redirect_uri configured")),s&&this.settings.val
2idateSubOnSilentRenew&&(r.debug("subject prior to silent renew:",s.profile.sub),c=s.profile.sub),e.next=17,this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:i});case 17:return f=e.sent,e.next=20,this._signin(a({request_type:"si:s",redirect_uri:l,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?null==s?void 0:s.id_token:void 0},o),f,c);case 20:return(s=e.sent)&&((null==(n=s.profile)?void 0:n.sub)?r.info("success, signed in subject",s.profile.sub):r.info("no subject")),e.abrupt("return",s);case 23:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_useRefreshToken",value:function(){var e=rt(tt().mark((function e(t){var n,r;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._client.useRefreshToken({state:t,timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds});case 2:return n=e.sent,r=new kn(a(a({},t),n)),e.next=6,this.storeUser(r);case 6:return this._events.load(r),e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signinSilentCallback",value:function(){var e=rt(tt().mark((function e(){var t,n,r=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:window.location.href,n=this._logger.create("signinSilentCallback"),e.next=4,this._iframeNavigator.callback(t);case 4:n.info("success");case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signinCallback",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:window.location.href,e.next=3,this._client.readSigninResponseState(t);case 3:n=e.sent,r=n.state,e.t0=r.request_type,e.next="si:r"===e.t0?8:"si:p"===e.t0?11:"si:s"===e.t0?14:17;break;case 8:return e.next=10,this.signinRedirectCallback(t);case 10:case 13:case 16:return e.abrupt("return",e.sent);case 11:return e.next=13,this.signinPopupCallback(t);case 14:return e.next=16,this.signinSilentCallback(t);case 17:throw new Error("invalid response_type in state");case 18:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signoutCallback",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i,a=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:window.location.href,n=a.length>1&&void 0!==a[1]&&a[1],e.next=4,this._client.readSignoutResponseState(t);case 4:if(r=e.sent,i=r.state){e.next=8;break}return e.abrupt("return");case 8:e.t0=i.request_type,e.next="so:r"===e.t0?11:"so:p"===e.t0?14:"so:s"===e.t0?17:20;break;case 11:return e.next=13,this.signoutRedirectCallback(t);case 13:case 16:case 19:return e.abrupt("break",21);case 14:return e.next=16,this.signoutPopupCallback(t,n);case 17:return e.next=19,this.signoutSilentCallback(t);case 20:throw new Error("invalid response_type in state");case 21:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"querySessionStatus",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i,o,s,u,l,c,f=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.length>0&&void 0!==f[0]?f[0]:{},n=this._logger.create("querySessionStatus"),r=t.silentRequestTimeoutInSeconds,i=it(t,Ft),(o=this.settings.silent_redirect_uri)||n.throw(new Error("No silent_redirect_uri configured")),e.next=7,this._loadUser();case 7:return s=e.sent,e.next=10,this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r});case 10:return u=e.sent,e.next=13,this._signinStart(a({request_type:"si:s",redirect_uri:o,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?null==s?void 0:s.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0},i),u);case 13:return l=e.sent,e.prev=14,e.next=17,this._client.processSigninResponse(l.url);
2case 17:if(c=e.sent,n.debug("got signin response"),!c.session_state||!c.profile.sub){e.next=22;break}return n.info("success for subject",c.profile.sub),e.abrupt("return",{session_state:c.session_state,sub:c.profile.sub,sid:c.profile.sid});case 22:return n.info("success, user not authenticated"),e.abrupt("return",null);case 26:if(e.prev=26,e.t0=e.catch(14),!(this.settings.monitorAnonymousSession&&e.t0 instanceof Xt)){e.next=34;break}e.t1=e.t0.error,e.next="login_required"===e.t1||"consent_required"===e.t1||"interaction_required"===e.t1||"account_selection_required"===e.t1?32:34;break;case 32:return n.info("success for anonymous user"),e.abrupt("return",{session_state:e.t0.session_state});case 34:throw e.t0;case 35:case"end":return e.stop()}}),e,this,[[14,26]])})));return function(){return e.apply(this,arguments)}}()},{key:"_signin",value:function(){var e=rt(tt().mark((function e(t,n,r){var i;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._signinStart(t,n);case 2:return i=e.sent,e.next=5,this._signinEnd(i.url,r);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"_signinStart",value:function(){var e=rt(tt().mark((function e(t,n){var r,i;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._logger.create("_signinStart"),e.prev=1,e.next=4,this._client.createSigninRequest(t);case 4:return i=e.sent,r.debug("got signin request"),e.next=8,n.navigate({url:i.url,state:i.state.id,response_mode:i.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin});case 8:return e.abrupt("return",e.sent);case 11:throw e.prev=11,e.t0=e.catch(1),r.debug("error after preparing navigator, closing navigator window"),n.close(),e.t0;case 16:case"end":return e.stop()}}),e,this,[[1,11]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_signinEnd",value:function(){var e=rt(tt().mark((function e(t,n){var r,i,a;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._logger.create("_signinEnd"),e.next=3,this._client.processSigninResponse(t);case 3:return i=e.sent,r.debug("got signin response"),e.next=7,this._buildUser(i,n);case 7:return a=e.sent,e.abrupt("return",a);case 9:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_buildUser",value:function(){var e=rt(tt().mark((function e(t,n){var r,i;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this._logger.create("_buildUser"),i=new kn(t),!n){e.next=7;break}if(n===i.profile.sub){e.next=6;break}throw r.debug("current user does not match user returned from signin. sub from signin:",i.profile.sub),new Xt(a(a({},t),{},{error:"login_required"}));case 6:r.debug("current user matches user returned from signin");case 7:return e.next=9,this.storeUser(i);case 9:return r.debug("user stored"),this._events.load(i),e.abrupt("return",i);case 12:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"signoutRedirect",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i,o,s=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},n=this._logger.create("signoutRedirect"),r=t.redirectMethod,i=it(t,Dt),e.next=5,this._redirectNavigator.prepare({redirectMethod:r});case 5:return o=e.sent,e.next=8,this._signoutStart(a({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri},i),o);case 8:n.info("success");case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signoutRedirectCallback",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:window.location.href,n=this._logger.create("signoutRedirectCallback"),e.next=4,this._signoutEnd(t);case 4:return r=e.sent,n.info("success"),e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signoutPopup",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i,o,s,u,l=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=l.length>0&&void 0!==l[0]?l[0]:{},n=this._logger.create("signoutPopup"),r=t.popupWindowFeatures,i=t.popupWindowTarget,o=it(t,Ht),s=this.settings.popup_post_logout_redirect_uri,e.next=6,this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:i});case 6:return u=e.sent,e.next=9,this._signout(a({request_type:"so:p",post_logout_redirect_uri:s,state:null==s?void 0:{}},o),u);case 9:n.info("success");case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signoutPopupCallback",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:window.location.href,n=i.length>1&&void 0!==i[1]&&i[1],r=this._logger.create("signoutPopupCallback"),e.next=5,this._popupNavigator.callback(t,n);case 5:r.info("success");case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_signout",value:function(){var e=rt(tt().mark((function e(t,n){var r;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._signoutStart(t,n);case 2:return r=e.sent,e.next=5,this._signoutEnd(r.url);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_signoutStart",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i,a,o,s,u=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:{},n=u.length>1?u[1]:void 0,i=this._logger.create("_signoutStart"),e.prev=3,e.next=6,this._loadUser();case 6:if(a=e.sent,i.debug("loaded current user from storage"),!this.settings.revokeTokensOnSignout){e.next=11;break}return e.next=11,this._revokeInternal(a);case 11:return(o=t.id_token_hint||a&&a.id_token)&&(i.debug("setting id_token_hint in signout request"),t.id_token_hint=o),e.next=15,this.removeUser();case 15:return i.debug("user removed, creating signout request"),e.next=18,this._client.createSignoutRequest
2(t);case 18:return s=e.sent,i.debug("got signout request"),e.next=22,n.navigate({url:s.url,state:null==(r=s.state)?void 0:r.id});case 22:return e.abrupt("return",e.sent);case 25:throw e.prev=25,e.t0=e.catch(3),i.debug("error after preparing navigator, closing navigator window"),n.close(),e.t0;case 30:case"end":return e.stop()}}),e,this,[[3,25]])})));return function(){return e.apply(this,arguments)}}()},{key:"_signoutEnd",value:function(){var e=rt(tt().mark((function e(t){var n,r;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._logger.create("_signoutEnd"),e.next=3,this._client.processSignoutResponse(t);case 3:return r=e.sent,n.debug("got signout response"),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signoutSilent",value:function(){var e=rt(tt().mark((function e(){var t,n,r,i,o,s,u,l,c=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:{},r=this._logger.create("signoutSilent"),i=t.silentRequestTimeoutInSeconds,o=it(t,qt),!this.settings.includeIdTokenInSilentSignout){e.next=15;break}return e.next=6,this._loadUser();case 6:if(e.t1=n=e.sent,null!=e.t1){e.next=11;break}e.t2=void 0,e.next=12;break;case 11:e.t2=n.id_token;case 12:e.t0=e.t2,e.next=16;break;case 15:e.t0=void 0;case 16:return s=e.t0,u=this.settings.popup_post_logout_redirect_uri,e.next=20,this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:i});case 20:return l=e.sent,e.next=23,this._signout(a({request_type:"so:s",post_logout_redirect_uri:u,id_token_hint:s},o),l);case 23:r.info("success");case 24:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signoutSilentCallback",value:function(){var e=rt(tt().mark((function e(){var t,n,r=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:window.location.href,n=this._logger.create("signoutSilentCallback"),e.next=4,this._iframeNavigator.callback(t);case 4:n.info("success");case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"revokeTokens",value:function(){var e=rt(tt().mark((function e(t){var n;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._loadUser();case 2:return n=e.sent,e.next=5,this._revokeInternal(n,t);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_revokeInternal",value:function(){var e=rt(tt().mark((function e(t){var n,r,i,a,o,s,u=arguments;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=u.length>1&&void 0!==u[1]?u[1]:this.settings.revokeTokenTypes,r=this._logger.create("_revokeInternal"),t){e.next=4;break}return e.abrupt("return");case 4:if(i=n.filter((function(e){return"string"===typeof t[e]})),i.length){e.next=8;break}return r.debug("no need to revoke due to no token(s)"),e.abrupt("return");case 8:a=gt(i),e.prev=9,a.s();case 11:if((o=a.n()).done){e.next=19;break}return s=o.value,e.next=15,this._client.revokeToken(t[s],s);case 15:r.info("".concat(s," revoked successfully")),"access_token"!==s&&(t[s]=null);case 17:e.next=11;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(9),a.e(e.t0);case 24:return e.prev=24,a.f(),e.finish(24);case 27:return e.next=29,this.storeUser(t);case 29:r.debug("user stored"),this._events.load(t);case 31:case"end":return e.stop()}}),e,this,[[9,21,24,27]])})));return function(t){return e.apply(this,arguments)}}()},{key:"startSilentRenew",value:function(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}},{key:"stopSilentRenew",value:function(){this._silentRenewService.stop()}},{key:"_userStoreKey",get:function(){return"user:".concat(this.settings.authority,":").concat(this.settings.client_id)}},{key:"_loadUser",value:function(){var e=rt(tt().mark((function e(){var t,n;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._logger.create("_loadUser"),e.next=3,this.settings.userStore.get(this._userStoreKey);case 3:if(!(n=e.sent)){e.next=7;break}return t.debug("user storageString loaded"),e.abrupt("return",kn.fromStorageString(n));case 7:return t.debug("no user storageString"),e.abrupt("return",null);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"storeUser",value:function(){var e=rt(tt().mark((function e(t){var n,r;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this._logger.create("storeUser"),!t){e.next=8;break}return n.debug("storing user"),r=t.toStorageString(),e.next=6,this.settings.userStore.set(this._userStoreKey,r);case 6:e.next=11;break;case 8:return this._logger.debug("removing user"),e.next=11,this.settings.userStore.remove(this._userStoreKey);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"clearStaleState",value:function(){var e=rt(tt().mark((function e(){return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._client.clearStaleState();case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Mn=["children","onSigninCallback","skipSigninCallback","onRemoveUser","onSignoutRedirect","onSignoutPopup","implementation","userManager"],An=o.createContext(void 0);An.displayName="AuthContext";var Fn,Dn={isLoading:!0,isAuthenticated:!1},Hn=function(e,t){switch(t.type){case"INITIALISED":case"USER_LOADED":return a(a({},e),{},{user:t.user,isLoading:!1,isAuthenticated:!!t.user&&!t.user.expired,error:void 0});case"USER_UNLOADED":return a(a({},e),{},{user:void 0,isAuthenticated:!1});case"NAVIGATOR_INIT":return a(a({},e),{},{isLoading:!0,activeNavigator:t.method});case"NAVIGATOR_CLOSE":return a(a({},e),{},{isLoading:!1,activeNavigator:void 0});case"ERROR":return a(a({},e),{},{isLoading:!1,error:t.error});default:return a(a({},e),{},{isLoading:!1,error:new Error("unknown type ".concat(t.type))})}},qn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,t=new URLSearchParams(e.search);return!(!t.get("code")&&!t.get("error")||!t.get("state"))||!(!(t=new URLSearchParams(e.hash.replace("#","?"))).get("code")&&!t.get("error")||!t.get("state"))},Wn=(Fn="Login failed",function(e){return e instanceof Error?e:new Error(Fn)}
2),Bn=["clearStaleState","querySessionStatus","revokeTokens","startSilentRenew","stopSilentRenew"],Vn=["signinPopup","signinSilent","signinRedirect","signoutPopup","signoutRedirect","signoutSilent"],$n=function(e){return function(){throw new Error("UserManager#".concat(e," was called from an unsupported context. If this is a server-rendered page, defer this call with useEffect() or pass a custom UserManager implementation."))}},Qn="undefined"===typeof window?null:Un,Kn=function(e){var t=e.children,n=e.onSigninCallback,r=e.skipSigninCallback,i=e.onRemoveUser,s=e.onSignoutRedirect,u=e.onSignoutPopup,l=e.implementation,f=void 0===l?Qn:l,d=e.userManager,p=it(e,Mn),h=c((0,o.useState)((function(){return null!=d?d:f?new f(p):{settings:p}})),1)[0],g=c((0,o.useReducer)(Hn,Dn),2),v=g[0],m=g[1],y=(0,o.useMemo)((function(){return Object.assign({settings:h.settings,events:h.events},Object.fromEntries(Bn.map((function(e){var t,n;return[e,null!=(n=null==(t=h[e])?void 0:t.bind(h))?n:$n(e)]}))),Object.fromEntries(Vn.map((function(e){return[e,h[e]?rt(tt().mark((function t(){var n=arguments;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m({type:"NAVIGATOR_INIT",method:e}),t.prev=1,t.next=4,h[e].apply(h,n);case 4:return t.abrupt("return",t.sent);case 5:return t.prev=5,m({type:"NAVIGATOR_CLOSE"}),t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[1,,5,8]])}
2))):$n(e)]}))))}),[h]),b=(0,o.useRef)(!1);(0,o.useEffect)((function(){h&&!b.current&&(b.current=!0,rt(tt().mark((function e(){var t;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=null,e.prev=1,!qn()||r){e.next=7;break}return e.next=5,h.signinCallback();case 5:t=e.sent,n&&n(t);case 7:if(t){e.next=13;break}return e.next=10,h.getUser();case 10:e.t0=e.sent,e.next=14;break;case 13:e.t0=t;case 14:t=e.t0,m({type:"INITIALISED",user:t}),e.next=21;break;case 18:e.prev=18,e.t1=e.catch(1),m({type:"ERROR",error:Wn(e.t1)});case 21:case"end":return e.stop()}}),e,null,[[1,18]])})))())}),[h,r,n]),(0,o.useEffect)((function(){if(h){var e=function(e){m({type:"USER_LOADED",user:e})};h.events.addUserLoaded(e);var t=function(){m({type:"USER_UNLOADED"})};h.events.addUserUnloaded(t);var n=function(e){m({type:"ERROR",error:e})};return h.events.addSilentRenewError(n),function(){h.events.removeUserLoaded(e),h.events.removeUserUnloaded(t),h.events.removeSilentRenewError(n)}}}),[h]);var _=(0,o.useCallback)(h?function(){return h.removeUser().then(i)}:$n("removeUser"),[h,i]),w=(0,o.useCallback)((function(e){return y.signoutRedirect(e).then(s)}),[y.signoutRedirect,s]),k=(0,o.useCallback)((function(e){return y.signoutPopup(e).then(u)}),[y.signoutPopup,u]),x=(0,o.useCallback)((function(e){return y.signoutSilent(e)}),[y.signoutSilent]);return o.createElement(An.Provider,{value:a(a(a({},v),y),{},{removeUser:_,signoutRedirect:w,signoutPopup:k,signoutSilent:x})},t)},Jn=function(){var e=o.useContext(An);if(!e)throw new Error("AuthProvider context is undefined, please verify you are calling useAuth() as child of a <AuthProvider> component.");return e};var Gn=function(e){dt(n,e);var t=pt(n);function n(){return vt(this,n),t.apply(this,arguments)}return yt(n)}(ct(Error));function Yn(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(Ke){return atob(t)}}Gn.prototype.name="InvalidTokenError";var Xn=n(184),Zn="block w-full rounded-md border-0 py-1.5 px-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6 bg-purple-200/50";function er(e){return JSON.stringify(function(e,t){if("string"!==typeof e)throw new Gn("Invalid token specified: must be a string");t||(t={});var n,r=!0===t.header?0:1,i=e.split(".")[r];if("string"!==typeof i)throw new Gn("Invalid token specified: missing part #".concat(r+1));try{n=Yn(i)}catch(xt){throw new Gn("Invalid token specified: invalid base64 for part #".concat(r+1," (").concat(xt.message,")"))}try{return JSON.parse(n)}catch(xt){throw new Gn("Invalid token specified: invalid json for part #".concat(r+1," (").concat(xt.message,")"))}}(e),null,2)}var tr=function(){var e,t,n,r=Jn();return r.isLoading||r.error||!r.isAuthenticated?null:r.isAuthenticated?(0,Xn.jsxs)("div",{className:"mt-4 text-left",children:[(0,Xn.jsxs)("div",{className:"mt-2",children:[(0,Xn.jsx)("label",{htmlFor:"accessToken",className:"block text-sm font-semibold leading-6 text-gray-900",children:"Access Token"}),(0,Xn.jsx)("textarea",{rows:6,name:"accessToken",id:"accessToken",className:Zn,defaultValue:er(null===r||void 0===r||null===(e=r.user)||void 0===e?void 0:e.access_token)})]}),(0,Xn.jsxs)("div",{className:"mt-2",children:[(0,Xn.jsx)("label",{htmlFor:"idToken",className:"block text-sm font-semibold leading-6 text-gray-900",children:"Id Token"}),(0,Xn.jsx)("textarea",{rows:6,name:"idToken",id:"idToken",className:Zn,defaultValue:er(null===r||void 0===r||null===(t=r.user)||void 0===t?void 0:t.id_token)})]}),(0,Xn.jsxs)("div",{className:"mt-2",children:[(0,Xn.jsx)("label",{htmlFor:"refreshToken",className:"block text-sm font-semibold leading-6 text-gray-900",children:"Refresh Token"}
2),(0,Xn.jsx)("textarea",{rows:6,name:"refreshToken",id:"refreshToken",className:Zn,defaultValue:er(null===r||void 0===r||null===(n=r.user)||void 0===n?void 0:n.refresh_token)})]})]}):null},nr=function(){var e,t=Jn();switch(t.activeNavigator){case"signinSilent":e=(0,Xn.jsx)("div",{className:"mb-6 text-p2blue-700 text-2xl",children:"Signing you in..."});break;case"signoutRedirect":e=(0,Xn.jsx)("div",{className:"mb-6 text-p2blue-700 text-2xl",children:"Signing you out..."})}if(t.isLoading)e=(0,Xn.jsx)("div",{className:"mb-6 text-p2blue-700 text-2xl",children:"Loading authentication... (checking local state or redirecting)"});else if(t.isAuthenticated){if(t.error)e=(0,Xn.jsxs)("div",{children:[(0,Xn.jsx)("div",{className:"mb-6 text-p2blue-700 text-2xl",children:"Authentication Error."}),(0,Xn.jsx)("div",{children:t.error.message})]});else if(t.isAuthenticated){var n,r;e=(0,Xn.jsxs)("div",{children:[(0,Xn.jsx)("div",{className:"mb-2 text-p2blue-700 text-2xl",children:"Authenticated"}),(0,Xn.jsxs)("div",{className:"mb-6 text-p2blue-700 text-md",children:[(0,Xn.jsx)("div",{children:null===(n=t.user)||void 0===n?void 0:n.profile.email}),(0,Xn.jsx)("div",{children:null===(r=t.user)||void 0===r?void 0:r.profile.sub})]}),(0,Xn.jsx)("button",{className:"rounded-md bg-indigo-500 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-500",onClick:function(){t.removeUser()},children:"Log out"}),(0,Xn.jsx)(tr,{})]})}}else e=(0,Xn.jsxs)("div",{children:[(0,Xn.jsx)("div",{className:"mb-6 text-p2blue-700 text-2xl",children:"Not authenticated."}),(0,Xn.jsx)("button",{className:"rounded-md bg-indigo-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",onClick:function(){t.signinRedirect({})},children:"Log in"})]});return(0,Xn.jsxs)("div",{children:[(0,Xn.jsx)("div",{className:"text-xl pb-8 italic",children:"Your current status is:"}),e]})},rr=function(e){var t=e.children;return(0,Xn.jsx)("div",{className:"p-8 sm:p-10 bg-purple-500/10 text-center text-xl font-semibold text-slate-600/80 flex items-center justify-center",children:t})},ir=function(){return(0,Xn.jsx)("div",{className:"sm:py-20",children:(0,Xn.jsx)("div",{className:"mx-auto max-w-3xl px-6 lg:px-8",children:(0,Xn.jsxs)("div",{className:"-mx-6 grid grid-cols-2 gap-0.5 overflow-hidden sm:mx-0 sm:rounded-2xl",children:[(0,Xn.jsx)("a",{href:"https://phasetwo.io/docs/introduction",target:"_blank",rel:"noreferrer",children:(0,Xn.jsxs)(rr,{children:["Docs",(0,Xn.jsx)(et,{icon:"line-md:external-link-rounded",className:"ml-1"})]})}),(0,Xn.jsx)("a",{href:"https://github.com/p2-inc/",target:"_blank",rel:"noreferrer",children:(0,Xn.jsxs)(rr,{children:["Github",(0,Xn.jsx)(et,{icon:"bi:github",className:"ml-1"})]})}),(0,Xn.jsx)("a",{href:"https://phasetwo.io/blog",target:"_blank",rel:"noreferrer",children:(0,Xn.jsxs)(rr,{children:["Blog",(0,Xn.jsx)(et,{icon:"line-md:external-link-rounded",className:"ml-1"})]})}),(0,Xn.jsx)("a",{href:"mailto:[email protected]",target:"_blank",rel:"noreferrer",children:(0,Xn.jsxs)(rr,{children:["Contact",(0,Xn.jsx)(et,{icon:"ic:outline-email",className:"ml-1",style:{width:"1.1em",height:"1.1em"}})]})})]})})})};var ar=function(){return(0,Xn.jsxs)("div",{className:"page-bg min-h-screen",children:[(0,Xn.jsxs)("picture",{children:[(0,Xn.jsx)("source",{media:"(max-width: 767px)",srcSet:"/home-bg-mobile.webp"}),(0,Xn.jsx)("source",{media:"(min-width: 768px)",srcSet:"/home-bg.webp"}),(0,Xn.jsx)("img",{className:"page-home",src:"/img/home-bg-mobile.webp",alt:"Gradient Backgroun
2d"})]}),(0,Xn.jsx)("div",{className:"px-6 pt-24 pb-8 sm:py-8 lg:pt-24 lg:pb-8 lg:px-8",children:(0,Xn.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[(0,Xn.jsx)("a",{href:"https://phasetwo.io",target:"_blank",rel:"noreferrer",children:(0,Xn.jsx)("img",{src:"/logo_phase_slash.svg",className:"w-full max-w-xl mx-auto max-h-28",alt:"Phase Two"})}),(0,Xn.jsx)("a",{href:"https://github.com/p2-inc/examples/tree/main/frameworks/reactjs",target:"_blank",rel:"noreferrer",children:(0,Xn.jsxs)("p",{className:"text-5xl font-semibold leading-7 text-p2blue-500 mt-6 flex items-center w-full justify-center",children:[(0,Xn.jsx)(et,{icon:"simple-icons:react",className:"mr-2"}),(0,Xn.jsx)(et,{icon:"bi:github"})]})})]})}),(0,Xn.jsx)("div",{className:"py-8",children:(0,Xn.jsx)("div",{className:"mx-auto max-w-3xl px-6 lg:px-8 text-center",children:(0,Xn.jsx)(nr,{})})}),(0,Xn.jsx)(ir,{})]})},or={authority:"".concat("https://app.phasetwo.io/auth/","realms/").concat("p2examples"),client_id:"reactjs-example",redirect_uri:"https://phasetwo-react-example.vercel.app/",onSigninCallback:function(e){return window.history.replaceState({},document.title,window.location.pathname)}};s.createRoot(document.getElementById("root")).render((0,Xn.jsx)(o.StrictMode,{children:(0,Xn.jsx)(Kn,a(a({},or),{},{children:(0,Xn.jsx)(ar,{})}))}))}()}(); 3//# sourceMappingURL=main.897b8cb2.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.