pxt-core 8.4.8 → 8.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +0,0 @@
1
- /*! For license information please see main.8947677c.js.LICENSE.txt */
2
- !function(){var e={186:function(e,t,n){"use strict";var r=n(705),a=n(6),i=n(830);function o(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."}if(!r)throw Error(o(227));var s=new Set,u={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),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=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new v(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){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var a=y.hasOwnProperty(t)?y[t]:null;(null!==a?0===a.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||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;if(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,a,r)&&(n=null),r||null===a?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!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(g,b);y[t]=new v(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(g,b);y[t]=new v(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(g,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,E=60106,S=60107,C=60108,O=60114,A=60109,_=60110,P=60112,T=60113,N=60120,I=60115,L=60116,j=60121,M=60128,R=60129,B=60130,U=60131;if("function"==typeof Symbol&&Symbol.for){var D=Symbol.for;k=D("react.element"),E=D("react.portal"),S=D("react.fragment"),C=D("react.strict_mode"),O=D("react.profiler"),A=D("react.provider"),_=D("react.context"),P=D("react.forward_ref"),T=D("react.suspense"),N=D("react.suspense_list"),I=D("react.memo"),L=D("react.lazy"),j=D("react.block"),D("react.scope"),M=D("react.opaque.id"),R=D("react.debug_trace_mode"),B=D("react.offscreen"),U=D("react.legacy_hidden")}var V,F="function"==typeof Symbol&&Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=F&&e[F]||e["@@iterator"])?e:null}function H(e){if(void 0===V)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return"\n"+V+e}var W=!1;function q(e,t){if(!e||W)return"";W=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var a=e.stack.split("\n"),i=r.stack.split("\n"),o=a.length-1,s=i.length-1;1<=o&&0<=s&&a[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(a[o]!==i[s]){if(1!==o||1!==s)do{if(o--,0>--s||a[o]!==i[s])return"\n"+a[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function Y(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return q(e.type,!1);case 11:return q(e.type.render,!1);case 22:return q(e.type._render,!1);case 1:return q(e.type,!0);default:return""}}function G(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 S:return"Fragment";case E:return"Portal";case O:return"Profiler";case C:return"StrictMode";case T:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case I:return G(e.type);case j:return G(e._render);case L:t=e._payload,e=e._init;try{return G(e(t))}catch(e){}}return null}function $(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function X(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=X(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.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 K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=X(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$(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 te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=$(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")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(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 ae(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$(n)}}function le(e,t){var n=$(t.value),r=$(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 ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml";function de(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 pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,me,ve=(me=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.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 me(e,t)}))}:me);function ye(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 ge={animationIterationCount:!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},be=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(ge).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ge[t]=ge[e]}))}));var ke=a({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 Ee(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function Se(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}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Oe=null,Ae=null,_e=null;function Pe(e){if(e=Zr(e)){if("function"!=typeof Oe)throw Error(o(280));var t=e.stateNode;t&&(t=ta(t),Oe(e.stateNode,e.type,t))}}function Te(e){Ae?_e?_e.push(e):_e=[e]:Ae=e}function Ne(){if(Ae){var e=Ae,t=_e;if(_e=Ae=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function Ie(e,t){return e(t)}function Le(e,t,n,r,a){return e(t,n,r,a)}function je(){}var Me=Ie,Re=!1,Be=!1;function Ue(){null===Ae&&null===_e||(je(),Ne())}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=ta(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(o(231,t,typeof n));return n}var Ve=!1;if(f)try{var Fe={};Object.defineProperty(Fe,"passive",{get:function(){Ve=!0}}),window.addEventListener("test",Fe,Fe),window.removeEventListener("test",Fe,Fe)}catch(me){Ve=!1}function ze(e,t,n,r,a,i,o,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var He=!1,We=null,qe=!1,Ye=null,Ge={onError:function(e){He=!0,We=e}};function $e(e,t,n,r,a,i,o,s,u){He=!1,We=null,ze.apply(Ge,arguments)}function Xe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(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 Ke(e){if(Xe(e)!==e)throw Error(o(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Xe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return Ke(a),e;if(i===r)return Ke(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var s=!1,u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s){for(u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,at=!1,it=[],ot=null,st=null,ut=null,lt=new Map,ct=new Map,ft=[],dt="mousedown 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 pt(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:a,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e=pt(t,n,r,a,i),null!==t&&null!==(t=Zr(t))&&tt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function vt(e){var t=Jr(e.target);if(null!==t){var n=Xe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(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=Zr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function gt(e,t,n){yt(e)&&n.delete(t)}function bt(){for(at=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=Zr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==ot&&yt(ot)&&(ot=null),null!==st&&yt(st)&&(st=null),null!==ut&&yt(ut)&&(ut=null),lt.forEach(gt),ct.forEach(gt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,bt)))}function xt(e){function t(t){return wt(t,e)}if(0<it.length){wt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ot&&wt(ot,e),null!==st&&wt(st,e),null!==ut&&wt(ut,e),lt.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},St={},Ct={};function Ot(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return St[e]=n[t];return e}f&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var At=Ot("animationend"),_t=Ot("animationiteration"),Pt=Ot("animationstart"),Tt=Ot("transitionend"),Nt=new Map,It=new Map,Lt=["abort","abort",At,"animationEnd",_t,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Tt,"transitionEnd","waiting","waiting"];function jt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),It.set(r,t),Nt.set(r,a),l(a,[r])}}(0,i.unstable_now)();var Mt=8;function Rt(e){if(0!=(1&e))return Mt=15,1;if(0!=(2&e))return Mt=14,2;if(0!=(4&e))return Mt=13,4;var t=24&e;return 0!==t?(Mt=12,t):0!=(32&e)?(Mt=11,32):0!=(t=192&e)?(Mt=10,t):0!=(256&e)?(Mt=9,256):0!=(t=3584&e)?(Mt=8,t):0!=(4096&e)?(Mt=7,4096):0!=(t=4186112&e)?(Mt=6,t):0!=(t=62914560&e)?(Mt=5,t):67108864&e?(Mt=4,67108864):0!=(134217728&e)?(Mt=3,134217728):0!=(t=805306368&e)?(Mt=2,t):0!=(1073741824&e)?(Mt=1,1073741824):(Mt=8,e)}function Bt(e,t){var n=e.pendingLanes;if(0===n)return Mt=0;var r=0,a=0,i=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,a=Mt=15;else if(0!=(i=134217727&n)){var u=i&~o;0!==u?(r=Rt(u),a=Mt):0!=(s&=i)&&(r=Rt(s),a=Mt)}else 0!=(i=n&~o)?(r=Rt(i),a=Mt):0!==s&&(r=Rt(s),a=Mt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Rt(t),a<=Mt)return t;Mt=a}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-Ht(t)),r|=e[n],t&=~a;return r}function Ut(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Dt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Vt(24&~t))?Dt(10,t):e;case 10:return 0===(e=Vt(192&~t))?Dt(8,t):e;case 8:return 0===(e=Vt(3584&~t))&&0===(e=Vt(4186112&~t))&&(e=512),e;case 2:return 0===(t=Vt(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function Vt(e){return e&-e}function Ft(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/qt|0)|0},Wt=Math.log,qt=Math.LN2,Yt=i.unstable_UserBlockingPriority,Gt=i.unstable_runWithPriority,$t=!0;function Xt(e,t,n,r){Re||je();var a=Kt,i=Re;Re=!0;try{Le(a,e,t,n,r)}finally{(Re=i)||Ue()}}function Qt(e,t,n,r){Gt(Yt,Kt.bind(null,e,t,n,r))}function Kt(e,t,n,r){var a;if($t)if((a=0==(4&t))&&0<it.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),it.push(e);else{var i=Jt(e,t,n,r);if(null===i)a&&ht(e,r);else{if(a){if(-1<dt.indexOf(e))return e=pt(i,e,t,n,r),void it.push(e);if(function(e,t,n,r,a){switch(t){case"focusin":return ot=mt(ot,e,t,n,r,a),!0;case"dragenter":return st=mt(st,e,t,n,r,a),!0;case"mouseover":return ut=mt(ut,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return lt.set(i,mt(lt.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,ct.set(i,mt(ct.get(i)||null,e,t,n,r,a)),!0}return!1}(i,e,t,n,r))return;ht(e,r)}Nr(e,t,r,null,n)}}}function Jt(e,t,n,r){var a=Ce(r);if(null!==(a=Jr(a))){var i=Xe(a);if(null===i)a=null;else{var o=i.tag;if(13===o){if(null!==(a=Qe(i)))return a;a=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return Nr(e,t,r,a,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,a="value"in Zt?Zt.value:Zt.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[i-t];t++);return tn=a.slice(e,1<t?1-t:void 0)}function rn(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 an(){return!0}function on(){return!1}function sn(e){function t(t,n,r,a,i){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?an:on,this.isPropagationStopped=on,this}return a(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=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var un,ln,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=sn(fn),pn=a({},fn,{view:0,detail:0}),hn=sn(pn),mn=a({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(un=e.screenX-cn.screenX,ln=e.screenY-cn.screenY):ln=un=0,cn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),vn=sn(mn),yn=sn(a({},mn,{dataTransfer:0})),gn=sn(a({},pn,{relatedTarget:0})),bn=sn(a({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=sn(a({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),xn=sn(a({},fn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={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"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function On(){return Cn}var An=sn(a({},pn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),_n=sn(a({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=sn(a({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Tn=sn(a({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=sn(a({},mn,{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})),In=[9,13,27,32],Ln=f&&"CompositionEvent"in window,jn=null;f&&"documentMode"in document&&(jn=document.documentMode);var Mn=f&&"TextEvent"in window&&!jn,Rn=f&&(!Ln||jn&&8<jn&&11>=jn),Bn=String.fromCharCode(32),Un=!1;function Dn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Fn=!1,zn={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function Wn(e,t,n,r){Te(r),0<(t=Lr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Yn=null;function Gn(e){Cr(e,0)}function $n(e){if(K(ea(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(f){var Kn;if(f){var Jn="oninput"in document;if(!Jn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Jn="function"==typeof Zn.oninput}Kn=Jn}else Kn=!1;Qn=Kn&&(!document.documentMode||9<document.documentMode)}function er(){qn&&(qn.detachEvent("onpropertychange",tr),Yn=qn=null)}function tr(e){if("value"===e.propertyName&&$n(Yn)){var t=[];if(Wn(t,Yn,e,Ce(e)),e=Gn,Re)e(t);else{Re=!0;try{Ie(e,t)}finally{Re=!1,Ue()}}}}function nr(e,t,n){"focusin"===e?(er(),Yn=n,(qn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Yn)}function ar(e,t){if("click"===e)return $n(t)}function ir(e,t){if("input"===e||"change"===e)return $n(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},sr=Object.prototype.hasOwnProperty;function ur(e,t){if(or(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++)if(!sr.call(t,n[r])||!or(e[n[r]],t[n[r]]))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=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((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)}var hr=f&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,yr=null,gr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==mr||mr!==J(r)||(r="selectionStart"in(r=mr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{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=Lr(vr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}jt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),jt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),jt(Lt,2);for(var wr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xr=0;xr<wr.length;xr++)It.set(wr[xr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Er=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Sr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,i,s,u,l){if($e.apply(this,arguments),He){if(!He)throw Error(o(198));var c=We;He=!1,We=null,qe||(qe=!0,Ye=c)}}(r,t,void 0,e),e.currentTarget=null}function Cr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=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!==i&&a.isPropagationStopped())break e;Sr(a,s,l),i=u}else for(o=0;o<r.length;o++){if(u=(s=r[o]).instance,l=s.currentTarget,s=s.listener,u!==i&&a.isPropagationStopped())break e;Sr(a,s,l),i=u}}}if(qe)throw e=Ye,qe=!1,Ye=null,e}function Or(e,t){var n=na(t),r=e+"__bubble";n.has(r)||(Tr(t,e,2,!1),n.add(r))}var Ar="_reactListening"+Math.random().toString(36).slice(2);function _r(e){e[Ar]||(e[Ar]=!0,s.forEach((function(t){Er.has(t)||Pr(t,!1,e,null),Pr(t,!0,e,null)})))}function Pr(e,t,n,r){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Er.has(e)){if("scroll"!==e)return;a|=2,i=r}var o=na(i),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(a|=4),Tr(i,e,a,t),o.add(s))}function Tr(e,t,n,r){var a=It.get(t);switch(void 0===a?2:a){case 0:a=Xt;break;case 1:a=Qt;break;default:a=Kt}n=a.bind(null,t,n,e),a=void 0,!Ve||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Nr(e,t,n,r,a){var i=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===a||8===s.nodeType&&s.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===a||8===u.nodeType&&u.parentNode===a))return;o=o.return}for(;null!==s;){if(null===(o=Jr(s)))return;if(5===(u=o.tag)||6===u){r=i=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Be)return e();Be=!0;try{Me(e,t,n)}finally{Be=!1,Ue()}}((function(){var r=i,a=Ce(n),o=[];e:{var s=Nt.get(e);if(void 0!==s){var u=dn,l=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":u=An;break;case"focusin":l="focus",u=gn;break;case"focusout":l="blur",u=gn;break;case"beforeblur":case"afterblur":u=gn;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=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Pn;break;case At:case _t:case Pt:u=bn;break;case Tt:u=Tn;break;case"scroll":u=hn;break;case"wheel":u=Nn;break;case"copy":case"cut":case"paste":u=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=_n}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 m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&null!=(m=De(h,d))&&c.push(Ir(h,m,p))),f)break;h=h.return}0<c.length&&(s=new u(s,l,null,n,a),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(l=n.relatedTarget||n.fromElement)||!Jr(l)&&!l[Qr])&&(u||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?Jr(l):null)&&(l!==(f=Xe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=_n,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?s:ea(u),p=null==l?s:ea(l),(s=new c(m,h+"leave",u,n,a)).target=f,s.relatedTarget=p,m=null,Jr(a)===r&&((c=new c(d,h+"enter",l,n,a)).target=p,c.relatedTarget=f,m=c),f=m,u&&l)e:{for(d=l,h=0,p=c=u;p;p=jr(p))h++;for(p=0,m=d;m;m=jr(m))p++;for(;0<h-p;)c=jr(c),h--;for(;0<p-h;)d=jr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=jr(c),d=jr(d)}c=null}else c=null;null!==u&&Mr(o,s,u,c,!1),null!==l&&null!==f&&Mr(o,f,l,c,!0)}if("select"===(u=(s=r?ea(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=Xn;else if(Hn(s))if(Qn)v=ir;else{v=rr;var y=nr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ar);switch(v&&(v=v(e,r))?Wn(o,v,n,a):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ae(s,"number",s.value)),y=r?ea(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(mr=y,vr=r,yr=null);break;case"focusout":yr=vr=mr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,br(o,n,a);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":br(o,n,a)}var g;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 Fn?Dn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Rn&&"ko"!==n.locale&&(Fn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Fn&&(g=nn()):(en="value"in(Zt=a)?Zt.value:Zt.textContent,Fn=!0)),0<(y=Lr(r,b)).length&&(b=new xn(b,e,null,n,a),o.push({event:b,listeners:y}),(g||null!==(g=Vn(n)))&&(b.data=g))),(g=Mn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Un=!0,Bn);case"textInput":return(e=t.data)===Bn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Fn)return"compositionend"===e||!Ln&&Dn(e,t)?(e=nn(),tn=en=Zt=null,Fn=!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 Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Lr(r,"onBeforeInput")).length&&(a=new xn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=g)}Cr(o,t)}))}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,i=a.stateNode;5===a.tag&&null!==i&&(a=i,null!=(i=De(e,n))&&r.unshift(Ir(e,i,a)),null!=(i=De(e,t))&&r.push(Ir(e,i,a))),e=e.return}return r}function jr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Mr(e,t,n,r,a){for(var i=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,a?null!=(u=De(n,i))&&o.unshift(Ir(n,u,s)):a||null!=(u=De(n,i))&&o.push(Ir(n,u,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Rr(){}var Br=null,Ur=null;function Dr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Fr="function"==typeof setTimeout?setTimeout:void 0,zr="function"==typeof clearTimeout?clearTimeout:void 0;function Hr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function qr(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 Yr=0,Gr=Math.random().toString(36).slice(2),$r="__reactFiber$"+Gr,Xr="__reactProps$"+Gr,Qr="__reactContainer$"+Gr,Kr="__reactEvents$"+Gr;function Jr(e){var t=e[$r];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qr]||n[$r]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=qr(e);null!==e;){if(n=e[$r])return n;e=qr(e)}return t}n=(e=n).parentNode}return null}function Zr(e){return!(e=e[$r]||e[Qr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ea(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ta(e){return e[Xr]||null}function na(e){var t=e[Kr];return void 0===t&&(t=e[Kr]=new Set),t}var ra=[],aa=-1;function ia(e){return{current:e}}function oa(e){0>aa||(e.current=ra[aa],ra[aa]=null,aa--)}function sa(e,t){aa++,ra[aa]=e.current,e.current=t}var ua={},la=ia(ua),ca=ia(!1),fa=ua;function da(e,t){var n=e.type.contextTypes;if(!n)return ua;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function pa(e){return null!==(e=e.childContextTypes)&&void 0!==e}function ha(){oa(ca),oa(la)}function ma(e,t,n){if(la.current!==ua)throw Error(o(168));sa(la,t),sa(ca,n)}function va(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(o(108,G(t)||"Unknown",i));return a({},n,r)}function ya(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ua,fa=la.current,sa(la,e),sa(ca,ca.current),!0}function ga(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=va(e,t,fa),r.__reactInternalMemoizedMergedChildContext=e,oa(ca),oa(la),sa(la,e)):oa(ca),sa(ca,n)}var ba=null,wa=null,xa=i.unstable_runWithPriority,ka=i.unstable_scheduleCallback,Ea=i.unstable_cancelCallback,Sa=i.unstable_shouldYield,Ca=i.unstable_requestPaint,Oa=i.unstable_now,Aa=i.unstable_getCurrentPriorityLevel,_a=i.unstable_ImmediatePriority,Pa=i.unstable_UserBlockingPriority,Ta=i.unstable_NormalPriority,Na=i.unstable_LowPriority,Ia=i.unstable_IdlePriority,La={},ja=void 0!==Ca?Ca:function(){},Ma=null,Ra=null,Ba=!1,Ua=Oa(),Da=1e4>Ua?Oa:function(){return Oa()-Ua};function Va(){switch(Aa()){case _a:return 99;case Pa:return 98;case Ta:return 97;case Na:return 96;case Ia:return 95;default:throw Error(o(332))}}function Fa(e){switch(e){case 99:return _a;case 98:return Pa;case 97:return Ta;case 96:return Na;case 95:return Ia;default:throw Error(o(332))}}function za(e,t){return e=Fa(e),xa(e,t)}function Ha(e,t,n){return e=Fa(e),ka(e,t,n)}function Wa(){if(null!==Ra){var e=Ra;Ra=null,Ea(e)}qa()}function qa(){if(!Ba&&null!==Ma){Ba=!0;var e=0;try{var t=Ma;za(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ma=null}catch(t){throw null!==Ma&&(Ma=Ma.slice(e+1)),ka(_a,Wa),t}finally{Ba=!1}}}var Ya=x.ReactCurrentBatchConfig;function Ga(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var $a=ia(null),Xa=null,Qa=null,Ka=null;function Ja(){Ka=Qa=Xa=null}function Za(e){var t=$a.current;oa($a),e.type._context._currentValue=t}function ei(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ti(e,t){Xa=e,Ka=Qa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Lo=!0),e.firstContext=null)}function ni(e,t){if(Ka!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ka=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qa){if(null===Xa)throw Error(o(308));Qa=t,Xa.dependencies={lanes:0,firstContext:t,responders:null}}else Qa=Qa.next=t;return e._currentValue}var ri=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ii(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 oi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function si(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ui(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,i=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===i?a=i=o:i=i.next=o,n=n.next}while(null!==n);null===i?a=i=t:i=i.next=t}else a=i=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function li(e,t,n,r){var i=e.updateQueue;ri=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var l=u,c=l.next;l.next=null,null===s?o=c:s.next=c,s=l;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=l)}}if(null!==o){for(d=i.baseState,s=0,f=c=l=null;;){u=o.lane;var p=o.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(u=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,u);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(u="function"==typeof(h=m.payload)?h.call(p,d,u):h)||void 0===u)break e;d=a({},d,u);break e;case 2:ri=!0}}null!==o.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[o]:u.push(o))}else p={eventTime:p,lane:u,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,l=d):f=f.next=p,s|=u;if(null===(o=o.next)){if(null===(u=i.shared.pending))break;o=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===f&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Ms|=s,e.lanes=s,e.memoizedState=d}}function ci(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(o(191,a));a.call(r)}}}var fi=(new r.Component).refs;function di(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var pi={isMounted:function(e){return!!(e=e._reactInternals)&&Xe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ou(),a=su(e),i=oi(r,a);i.payload=t,null!=n&&(i.callback=n),si(e,i),uu(e,a,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ou(),a=su(e),i=oi(r,a);i.tag=1,i.payload=t,null!=n&&(i.callback=n),si(e,i),uu(e,a,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ou(),r=su(e),a=oi(n,r);a.tag=2,null!=t&&(a.callback=t),si(e,a),uu(e,r,n)}};function hi(e,t,n,r,a,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!(t.prototype&&t.prototype.isPureReactComponent&&ur(n,r)&&ur(a,i))}function mi(e,t,n){var r=!1,a=ua,i=t.contextType;return"object"==typeof i&&null!==i?i=ni(i):(a=pa(t)?fa:la.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?da(e,a):ua),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=pi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function vi(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&&pi.enqueueReplaceState(t,t.state,null)}function yi(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=fi,ai(e);var i=t.contextType;"object"==typeof i&&null!==i?a.context=ni(i):(i=pa(t)?fa:la.current,a.context=da(e,i)),li(e,n,a,r),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(di(e,t,i,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&pi.enqueueReplaceState(a,a.state,null),li(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4)}var gi=Array.isArray;function bi(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(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=r.refs;t===fi&&(t=r.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function wi(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function xi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}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 a(e,t){return(e=Vu(e,t)).index=0,e.sibling=null,e}function i(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):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=Wu(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=bi(e,t,n),r.return=e,r):((r=Fu(n.type,n.key,n.props,null,e.mode,r)).ref=bi(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=qu(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=zu(n,e.mode,r,i)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Wu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Fu(t.type,t.key,t.props,null,e.mode,n)).ref=bi(e,null,t),n.return=e,n;case E:return(t=qu(t,e.mode,n)).return=e,t}if(gi(t)||z(t))return(t=zu(t,e.mode,n,null)).return=e,t;wi(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===a?n.type===S?f(e,t,n.props.children,r,a):l(e,t,n,r):null;case E:return n.key===a?c(e,t,n,r):null}if(gi(n)||z(n))return null!==a?null:f(e,t,n,r,null);wi(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,a,r.key):l(t,e,r,a);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(gi(r)||z(r))return f(t,e=e.get(n)||null,r,a,null);wi(t,r)}return null}function m(a,o,s,u){for(var l=null,c=null,f=o,m=o=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var y=p(a,f,s[m],u);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(a,f),o=i(y,o,m),null===c?l=y:c.sibling=y,c=y,f=v}if(m===s.length)return n(a,f),l;if(null===f){for(;m<s.length;m++)null!==(f=d(a,s[m],u))&&(o=i(f,o,m),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(a,f);m<s.length;m++)null!==(v=h(f,a,m,s[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=i(v,o,m),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(a,e)})),l}function v(a,s,u,l){var c=z(u);if("function"!=typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var f=c=null,m=s,v=s=0,y=null,g=u.next();null!==m&&!g.done;v++,g=u.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=p(a,m,g.value,l);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(a,m),s=i(b,s,v),null===f?c=b:f.sibling=b,f=b,m=y}if(g.done)return n(a,m),c;if(null===m){for(;!g.done;v++,g=u.next())null!==(g=d(a,g.value,l))&&(s=i(g,s,v),null===f?c=g:f.sibling=g,f=g);return c}for(m=r(a,m);!g.done;v++,g=u.next())null!==(g=h(m,a,v,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),s=i(g,s,v),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(a,e)})),c}return function(e,r,i,u){var l="object"==typeof i&&null!==i&&i.type===S&&null===i.key;l&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case k:e:{for(c=i.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(i.type===S){n(e,l.sibling),(r=a(l,i.props.children)).return=e,e=r;break e}}else if(l.elementType===i.type){n(e,l.sibling),(r=a(l,i.props)).ref=bi(e,l,i),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}i.type===S?((r=zu(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Fu(i.type,i.key,i.props,null,e.mode,u)).ref=bi(e,r,i),u.return=e,e=u)}return s(e);case E:e:{for(l=i.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=a(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=qu(i,e.mode,u)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,i)).return=e,e=r):(n(e,r),(r=Wu(i,e.mode,u)).return=e,e=r),s(e);if(gi(i))return m(e,r,i,u);if(z(i))return v(e,r,i,u);if(c&&wi(e,i),void 0===i&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,G(e.type)||"Component"))}return n(e,r)}}var ki=xi(!0),Ei=xi(!1),Si={},Ci=ia(Si),Oi=ia(Si),Ai=ia(Si);function _i(e){if(e===Si)throw Error(o(174));return e}function Pi(e,t){switch(sa(Ai,t),sa(Oi,e),sa(Ci,Si),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}oa(Ci),sa(Ci,t)}function Ti(){oa(Ci),oa(Oi),oa(Ai)}function Ni(e){_i(Ai.current);var t=_i(Ci.current),n=pe(t,e.type);t!==n&&(sa(Oi,e),sa(Ci,n))}function Ii(e){Oi.current===e&&(oa(Ci),oa(Oi))}var Li=ia(0);function ji(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!=(64&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 Mi=null,Ri=null,Bi=!1;function Ui(e,t){var n=Uu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Di(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,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Vi(e){if(Bi){var t=Ri;if(t){var n=t;if(!Di(e,t)){if(!(t=Wr(n.nextSibling))||!Di(e,t))return e.flags=-1025&e.flags|2,Bi=!1,void(Mi=e);Ui(Mi,n)}Mi=e,Ri=Wr(t.firstChild)}else e.flags=-1025&e.flags|2,Bi=!1,Mi=e}}function Fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Mi=e}function zi(e){if(e!==Mi)return!1;if(!Bi)return Fi(e),Bi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vr(t,e.memoizedProps))for(t=Ri;t;)Ui(e,t),t=Wr(t.nextSibling);if(Fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ri=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ri=null}}else Ri=Mi?Wr(e.stateNode.nextSibling):null;return!0}function Hi(){Ri=Mi=null,Bi=!1}var Wi=[];function qi(){for(var e=0;e<Wi.length;e++)Wi[e]._workInProgressVersionPrimary=null;Wi.length=0}var Yi=x.ReactCurrentDispatcher,Gi=x.ReactCurrentBatchConfig,$i=0,Xi=null,Qi=null,Ki=null,Ji=!1,Zi=!1;function eo(){throw Error(o(321))}function to(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function no(e,t,n,r,a,i){if($i=i,Xi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yi.current=null===e||null===e.memoizedState?Po:To,e=n(r,a),Zi){i=0;do{if(Zi=!1,!(25>i))throw Error(o(301));i+=1,Ki=Qi=null,t.updateQueue=null,Yi.current=No,e=n(r,a)}while(Zi)}if(Yi.current=_o,t=null!==Qi&&null!==Qi.next,$i=0,Ki=Qi=Xi=null,Ji=!1,t)throw Error(o(300));return e}function ro(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?Xi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function ao(){if(null===Qi){var e=Xi.alternate;e=null!==e?e.memoizedState:null}else e=Qi.next;var t=null===Ki?Xi.memoizedState:Ki.next;if(null!==t)Ki=t,Qi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Qi=e).memoizedState,baseState:Qi.baseState,baseQueue:Qi.baseQueue,queue:Qi.queue,next:null},null===Ki?Xi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function io(e,t){return"function"==typeof t?t(e):t}function oo(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Qi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var s=a.next;a.next=i.next,i.next=s}r.baseQueue=a=i,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var u=s=i=null,l=a;do{var c=l.lane;if(($i&c)===c)null!==u&&(u=u.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var f={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(s=u=f,i=r):u=u.next=f,Xi.lanes|=c,Ms|=c}l=l.next}while(null!==l&&l!==a);null===u?i=r:u.next=s,or(r,t.memoizedState)||(Lo=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function so(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{i=e(i,s.action),s=s.next}while(s!==a);or(i,t.memoizedState)||(Lo=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function uo(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===r:(e=e.mutableReadLanes,(e=($i&e)===e)&&(t._workInProgressVersionPrimary=r,Wi.push(t))),e)return n(t._source);throw Wi.push(t),Error(o(350))}function lo(e,t,n,r){var a=As;if(null===a)throw Error(o(349));var i=t._getVersion,s=i(t._source),u=Yi.current,l=u.useState((function(){return uo(a,t,n)})),c=l[1],f=l[0];l=Ki;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Xi;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!or(s,e)){e=n(t._source),or(f,e)||(c(e),e=su(v),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,o=e;0<o;){var u=31-Ht(o),l=1<<u;r[u]|=e,o&=~l}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=su(v);a.mutableReadLanes|=r&a.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),or(h,n)&&or(m,t)&&or(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:io,lastRenderedState:f}).dispatch=c=Ao.bind(null,Xi,e),l.queue=e,l.baseQueue=null,f=uo(a,t,n),l.memoizedState=l.baseState=f),f}function co(e,t,n){return lo(ao(),e,t,n)}function fo(e){var t=ro();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:io,lastRenderedState:e}).dispatch=Ao.bind(null,Xi,e),[t.memoizedState,e]}function po(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Xi.updateQueue)?(t={lastEffect:null},Xi.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 ho(e){return e={current:e},ro().memoizedState=e}function mo(){return ao().memoizedState}function vo(e,t,n,r){var a=ro();Xi.flags|=e,a.memoizedState=po(1|t,n,void 0,void 0===r?null:r)}function yo(e,t,n,r){var a=ao();r=void 0===r?null:r;var i=void 0;if(null!==Qi){var o=Qi.memoizedState;if(i=o.destroy,null!==r&&to(r,o.deps))return void po(t,n,i,r)}Xi.flags|=e,a.memoizedState=po(1|t,n,i,r)}function go(e,t){return vo(516,4,e,t)}function bo(e,t){return yo(516,4,e,t)}function wo(e,t){return yo(4,2,e,t)}function xo(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ko(e,t,n){return n=null!=n?n.concat([e]):null,yo(4,2,xo.bind(null,t,e),n)}function Eo(){}function So(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&to(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Co(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&to(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oo(e,t){var n=Va();za(98>n?98:n,(function(){e(!0)})),za(97<n?97:n,(function(){var n=Gi.transition;Gi.transition=1;try{e(!1),t()}finally{Gi.transition=n}}))}function Ao(e,t,n){var r=ou(),a=su(e),i={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Xi||null!==o&&o===Xi)Zi=Ji=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,u=o(s,n);if(i.eagerReducer=o,i.eagerState=u,or(u,s))return}catch(e){}uu(e,a,r)}}var _o={readContext:ni,useCallback:eo,useContext:eo,useEffect:eo,useImperativeHandle:eo,useLayoutEffect:eo,useMemo:eo,useReducer:eo,useRef:eo,useState:eo,useDebugValue:eo,useDeferredValue:eo,useTransition:eo,useMutableSource:eo,useOpaqueIdentifier:eo,unstable_isNewReconciler:!1},Po={readContext:ni,useCallback:function(e,t){return ro().memoizedState=[e,void 0===t?null:t],e},useContext:ni,useEffect:go,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,vo(4,2,xo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vo(4,2,e,t)},useMemo:function(e,t){var n=ro();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ro();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ao.bind(null,Xi,e),[r.memoizedState,e]},useRef:ho,useState:fo,useDebugValue:Eo,useDeferredValue:function(e){var t=fo(e),n=t[0],r=t[1];return go((function(){var t=Gi.transition;Gi.transition=1;try{r(e)}finally{Gi.transition=t}}),[e]),n},useTransition:function(){var e=fo(!1),t=e[0];return ho(e=Oo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ro();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},lo(r,e,t,n)},useOpaqueIdentifier:function(){if(Bi){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Yr++).toString(36))),Error(o(355))})),n=fo(t)[1];return 0==(2&Xi.mode)&&(Xi.flags|=516,po(5,(function(){n("r:"+(Yr++).toString(36))}),void 0,null)),t}return fo(t="r:"+(Yr++).toString(36)),t},unstable_isNewReconciler:!1},To={readContext:ni,useCallback:So,useContext:ni,useEffect:bo,useImperativeHandle:ko,useLayoutEffect:wo,useMemo:Co,useReducer:oo,useRef:mo,useState:function(){return oo(io)},useDebugValue:Eo,useDeferredValue:function(e){var t=oo(io),n=t[0],r=t[1];return bo((function(){var t=Gi.transition;Gi.transition=1;try{r(e)}finally{Gi.transition=t}}),[e]),n},useTransition:function(){var e=oo(io)[0];return[mo().current,e]},useMutableSource:co,useOpaqueIdentifier:function(){return oo(io)[0]},unstable_isNewReconciler:!1},No={readContext:ni,useCallback:So,useContext:ni,useEffect:bo,useImperativeHandle:ko,useLayoutEffect:wo,useMemo:Co,useReducer:so,useRef:mo,useState:function(){return so(io)},useDebugValue:Eo,useDeferredValue:function(e){var t=so(io),n=t[0],r=t[1];return bo((function(){var t=Gi.transition;Gi.transition=1;try{r(e)}finally{Gi.transition=t}}),[e]),n},useTransition:function(){var e=so(io)[0];return[mo().current,e]},useMutableSource:co,useOpaqueIdentifier:function(){return so(io)[0]},unstable_isNewReconciler:!1},Io=x.ReactCurrentOwner,Lo=!1;function jo(e,t,n,r){t.child=null===e?Ei(t,null,n,r):ki(t,e.child,n,r)}function Mo(e,t,n,r,a){n=n.render;var i=t.ref;return ti(t,a),r=no(e,t,n,r,i,a),null===e||Lo?(t.flags|=1,jo(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,Zo(e,t,a))}function Ro(e,t,n,r,a,i){if(null===e){var o=n.type;return"function"!=typeof o||Du(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Fu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Bo(e,t,o,r,a,i))}return o=e.child,0==(a&i)&&(a=o.memoizedProps,(n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)?Zo(e,t,i):(t.flags|=1,(e=Vu(o,r)).ref=t.ref,e.return=t,t.child=e)}function Bo(e,t,n,r,a,i){if(null!==e&&ur(e.memoizedProps,r)&&e.ref===t.ref){if(Lo=!1,0==(i&a))return t.lanes=e.lanes,Zo(e,t,i);0!=(16384&e.flags)&&(Lo=!0)}return Vo(e,t,n,r,i)}function Uo(e,t,n){var r=t.pendingProps,a=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},vu(t,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},vu(t,e),null;t.memoizedState={baseLanes:0},vu(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,vu(t,r);return jo(e,t,a,n),t.child}function Do(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Vo(e,t,n,r,a){var i=pa(n)?fa:la.current;return i=da(t,i),ti(t,a),n=no(e,t,n,r,i,a),null===e||Lo?(t.flags|=1,jo(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,Zo(e,t,a))}function Fo(e,t,n,r,a){if(pa(n)){var i=!0;ya(t)}else i=!1;if(ti(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mi(t,n,r),yi(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,l=n.contextType;l="object"==typeof l&&null!==l?ni(l):da(t,l=pa(n)?fa:la.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)&&vi(t,o,r,l),ri=!1;var d=t.memoizedState;o.state=d,li(t,r,o,a),u=t.memoizedState,s!==r||d!==u||ca.current||ri?("function"==typeof c&&(di(t,n,c,r),u=t.memoizedState),(s=ri||hi(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|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=l,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,ii(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Ga(t.type,s),o.props=l,f=t.pendingProps,d=o.context,u="object"==typeof(u=n.contextType)&&null!==u?ni(u):da(t,u=pa(n)?fa:la.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)&&vi(t,o,r,u),ri=!1,d=t.memoizedState,o.state=d,li(t,r,o,a);var h=t.memoizedState;s!==f||d!==h||ca.current||ri?("function"==typeof p&&(di(t,n,p,r),h=t.memoizedState),(l=ri||hi(t,n,l,r,d,h,u))?(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|=256)):("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|=256),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|=256),r=!1)}return zo(e,t,n,r,i,a)}function zo(e,t,n,r,a,i){Do(e,t);var o=0!=(64&t.flags);if(!r&&!o)return a&&ga(t,n,!1),Zo(e,t,i);r=t.stateNode,Io.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=ki(t,e.child,null,i),t.child=ki(t,null,s,i)):jo(e,t,s,i),t.memoizedState=r.state,a&&ga(t,n,!0),t.child}function Ho(e){var t=e.stateNode;t.pendingContext?ma(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ma(0,t.context,!1),Pi(e,t.containerInfo)}var Wo,qo,Yo,Go={dehydrated:null,retryLane:0};function $o(e,t,n){var r,a=t.pendingProps,i=Li.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(i|=1),sa(Li,1&i),null===e?(void 0!==a.fallback&&Vi(t),e=a.children,i=a.fallback,o?(e=Xo(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Go,e):"number"==typeof a.unstable_expectedLoadTime?(e=Xo(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Go,t.lanes=33554432,e):((n=Hu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(a=function(e,t,n,r,a){var i=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0==(2&i)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Vu(o,s),null!==e?r=Vu(e,r):(r=zu(r,i,a,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,a.children,a.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Go,a):(n=function(e,t,n,r){var a=e.child;return e=a.sibling,n=Vu(a,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,a.children,n),t.memoizedState=null,n))}function Xo(e,t,n,r){var a=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&a)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Hu(t,a,0,null),n=zu(n,a,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Qo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ei(e.return,t)}function Ko(e,t,n,r,a,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,lastEffect:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a,o.lastEffect=i)}function Jo(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(jo(e,t,r.children,n),0!=(2&(r=Li.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Qo(e,n);else if(19===e.tag)Qo(e,n);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(sa(Li,r),0==(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===ji(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Ko(t,!1,a,n,i,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ji(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Ko(t,!0,n,null,i,t.lastEffect);break;case"together":Ko(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Zo(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ms|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Vu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function es(e,t){if(!Bi)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 ts(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return pa(t.type)&&ha(),null;case 3:return Ti(),oa(ca),oa(la),qi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(zi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ii(t);var i=_i(Ai.current);if(n=t.type,null!==e&&null!=t.stateNode)qo(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=_i(Ci.current),zi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[$r]=t,r[Xr]=s,n){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)Or(kr[e],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":ee(r,s),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Or("invalid",r);break;case"textarea":ue(r,s),Or("invalid",r)}for(var l in Ee(n,s),e=null,s)s.hasOwnProperty(l)&&(i=s[l],"children"===l?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(l)&&null!=i&&"onScroll"===l&&Or("scroll",r));switch(n){case"input":Q(r),re(r,s,!0);break;case"textarea":Q(r),ce(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Rr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=de(n)),e===fe?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[$r]=t,e[Xr]=r,Wo(e,t),t.stateNode=e,l=Se(n,r),n){case"dialog":Or("cancel",e),Or("close",e),i=r;break;case"iframe":case"object":case"embed":Or("load",e),i=r;break;case"video":case"audio":for(i=0;i<kr.length;i++)Or(kr[i],e);i=r;break;case"source":Or("error",e),i=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),i=r;break;case"details":Or("toggle",e),i=r;break;case"input":ee(e,r),i=Z(e,r),Or("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=a({},r,{value:void 0}),Or("invalid",e);break;case"textarea":ue(e,r),i=se(e,r),Or("invalid",e);break;default:i=r}Ee(n,i);var c=i;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?xe(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===s?"string"==typeof f?("textarea"!==n||""!==f)&&ye(e,f):"number"==typeof f&&ye(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(u.hasOwnProperty(s)?null!=f&&"onScroll"===s&&Or("scroll",e):null!=f&&w(e,s,f,l))}switch(n){case"input":Q(e),re(e,r,!1);break;case"textarea":Q(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+$(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?oe(e,!!r.multiple,s,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Rr)}Dr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Yo(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));n=_i(Ai.current),_i(Ci.current),zi(t)?(r=t.stateNode,n=t.memoizedProps,r[$r]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[$r]=t,t.stateNode=r)}return null;case 13:return oa(Li),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&zi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Li.current)?0===Is&&(Is=3):(0!==Is&&3!==Is||(Is=4),null===As||0==(134217727&Ms)&&0==(134217727&Rs)||du(As,Ps))),(r||n)&&(t.flags|=4),null);case 4:return Ti(),null===e&&_r(t.stateNode.containerInfo),null;case 10:return Za(t),null;case 19:if(oa(Li),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(l=r.rendering))if(s)es(r,!1);else{if(0!==Is||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=ji(e))){for(t.flags|=64,es(r,!1),null!==(s=l.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return sa(Li,1&Li.current|2),t.child}e=e.sibling}null!==r.tail&&Da()>Vs&&(t.flags|=64,s=!0,es(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=ji(l))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),es(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Bi)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Da()-r.renderingStartTime>Vs&&1073741824!==n&&(t.flags|=64,s=!0,es(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Da(),n.sibling=null,t=Li.current,sa(Li,s?1&t|2:1&t),n):null;case 23:case 24:return yu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function ns(e){switch(e.tag){case 1:pa(e.type)&&ha();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ti(),oa(ca),oa(la),qi(),0!=(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Ii(e),null;case 13:return oa(Li),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return oa(Li),null;case 4:return Ti(),null;case 10:return Za(e),null;case 23:case 24:return yu(),null;default:return null}}function rs(e,t){try{var n="",r=t;do{n+=Y(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a}}function as(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Wo=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}},qo=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,_i(Ci.current);var o,s=null;switch(n){case"input":i=Z(e,i),r=Z(e,r),s=[];break;case"option":i=ie(e,i),r=ie(e,r),s=[];break;case"select":i=a({},i,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":i=se(e,i),r=se(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Rr)}for(f in Ee(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var l=i[f];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(l=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(null!=c||null!=l))if("style"===f)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Or("scroll",e),s||l===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===M?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Yo=function(e,t,n,r){n!==r&&(t.flags|=4)};var is="function"==typeof WeakMap?WeakMap:Map;function os(e,t,n){(n=oi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ws||(Ws=!0,qs=r),as(0,t)},n}function ss(e,t,n){(n=oi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return as(0,t),r(a)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ys?Ys=new Set([this]):Ys.add(this),as(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var us="function"==typeof WeakSet?WeakSet:Set;function ls(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ju(e,t)}else t.current=null}function cs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ga(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Hr(t.stateNode.containerInfo))}throw Error(o(163))}function fs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;r=a.next,0!=(4&(a=a.tag))&&0!=(1&a)&&(Nu(n,e),Tu(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ga(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ci(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ci(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Dr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&xt(n)))))}throw Error(o(163))}function ds(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var a=n.memoizedProps.style;a=null!=a&&a.hasOwnProperty("display")?a.display:null,r.style.display=we("display",a)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ps(e,t){if(wa&&"function"==typeof wa.onCommitFiberUnmount)try{wa.onCommitFiberUnmount(ba,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,a=r.destroy;if(r=r.tag,void 0!==a)if(0!=(4&r))Nu(t,n);else{r=t;try{a()}catch(e){ju(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ls(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){ju(t,e)}break;case 5:ls(t);break;case 4:bs(e,t)}}function hs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ms(e){return 5===e.tag||3===e.tag||4===e.tag}function vs(e){e:{for(var t=e.return;null!==t;){if(ms(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ms(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?ys(e,n,t):gs(e,n,t)}function ys(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,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=Rr));else if(4!==r&&null!==(e=e.child))for(ys(e,t,n),e=e.sibling;null!==e;)ys(e,t,n),e=e.sibling}function gs(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(gs(e,t,n),e=e.sibling;null!==e;)gs(e,t,n),e=e.sibling}function bs(e,t){for(var n,r,a=t,i=!1;;){if(!i){i=a.return;e:for(;;){if(null===i)throw Error(o(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===a.tag||6===a.tag){e:for(var s=e,u=a,l=u;;)if(ps(s,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===u)break e;for(;null===l.sibling;){if(null===l.return||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(s=n,u=a.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):n.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,r=!0,a.child.return=a,a=a.child;continue}}else if(ps(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(i=!1)}a.sibling.return=a.return,a=a.sibling}}function ws(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var a=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,a),t=Se(e,r),a=0;a<i.length;a+=2){var s=i[a],u=i[a+1];"style"===s?xe(n,u):"dangerouslySetInnerHTML"===s?ve(n,u):"children"===s?ye(n,u):w(n,s,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":le(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?oe(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,xt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Ds=Da(),ds(t.child,!0)),void xs(t);case 19:return void xs(t);case 23:case 24:return void ds(t,null!==t.memoizedState)}throw Error(o(163))}function xs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new us),t.forEach((function(t){var r=Ru.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ks(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Es=Math.ceil,Ss=x.ReactCurrentDispatcher,Cs=x.ReactCurrentOwner,Os=0,As=null,_s=null,Ps=0,Ts=0,Ns=ia(0),Is=0,Ls=null,js=0,Ms=0,Rs=0,Bs=0,Us=null,Ds=0,Vs=1/0;function Fs(){Vs=Da()+500}var zs,Hs=null,Ws=!1,qs=null,Ys=null,Gs=!1,$s=null,Xs=90,Qs=[],Ks=[],Js=null,Zs=0,eu=null,tu=-1,nu=0,ru=0,au=null,iu=!1;function ou(){return 0!=(48&Os)?Da():-1!==tu?tu:tu=Da()}function su(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Va()?1:2;if(0===nu&&(nu=js),0!==Ya.transition){0!==ru&&(ru=null!==Us?Us.pendingLanes:0),e=nu;var t=4186112&~ru;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Va(),e=Dt(0!=(4&Os)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),nu)}function uu(e,t,n){if(50<Zs)throw Zs=0,eu=null,Error(o(185));if(null===(e=lu(e,t)))return null;zt(e,t,n),e===As&&(Rs|=t,4===Is&&du(e,Ps));var r=Va();1===t?0!=(8&Os)&&0==(48&Os)?pu(e):(cu(e,n),0===Os&&(Fs(),Wa())):(0==(4&Os)||98!==r&&99!==r||(null===Js?Js=new Set([e]):Js.add(e)),cu(e,n)),Us=e}function lu(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}function cu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var u=31-Ht(s),l=1<<u,c=i[u];if(-1===c){if(0==(l&r)||0!=(l&a)){c=t,Rt(l);var f=Mt;i[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);s&=~l}if(r=Bt(e,e===As?Ps:0),t=Mt,0===r)null!==n&&(n!==La&&Ea(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==La&&Ea(n)}15===t?(n=pu.bind(null,e),null===Ma?(Ma=[n],Ra=ka(_a,qa)):Ma.push(n),n=La):14===t?n=Ha(99,pu.bind(null,e)):n=Ha(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),fu.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function fu(e){if(tu=-1,ru=nu=0,0!=(48&Os))throw Error(o(327));var t=e.callbackNode;if(Pu()&&e.callbackNode!==t)return null;var n=Bt(e,e===As?Ps:0);if(0===n)return null;var r=n,a=Os;Os|=16;var i=wu();for(As===e&&Ps===r||(Fs(),gu(e,r));;)try{Eu();break}catch(t){bu(e,t)}if(Ja(),Ss.current=i,Os=a,null!==_s?r=0:(As=null,Ps=0,r=Is),0!=(js&Rs))gu(e,0);else if(0!==r){if(2===r&&(Os|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(n=Ut(e))&&(r=xu(e,n))),1===r)throw t=Ls,gu(e,0),du(e,n),cu(e,Da()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:case 5:Ou(e);break;case 3:if(du(e,n),(62914560&n)===n&&10<(r=Ds+500-Da())){if(0!==Bt(e,0))break;if(((a=e.suspendedLanes)&n)!==n){ou(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Fr(Ou.bind(null,e),r);break}Ou(e);break;case 4:if(du(e,n),(4186112&n)===n)break;for(r=e.eventTimes,a=-1;0<n;){var s=31-Ht(n);i=1<<s,(s=r[s])>a&&(a=s),n&=~i}if(n=a,10<(n=(120>(n=Da()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Es(n/1960))-n)){e.timeoutHandle=Fr(Ou.bind(null,e),n);break}Ou(e);break;default:throw Error(o(329))}}return cu(e,Da()),e.callbackNode===t?fu.bind(null,e):null}function du(e,t){for(t&=~Bs,t&=~Rs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function pu(e){if(0!=(48&Os))throw Error(o(327));if(Pu(),e===As&&0!=(e.expiredLanes&Ps)){var t=Ps,n=xu(e,t);0!=(js&Rs)&&(n=xu(e,t=Bt(e,t)))}else n=xu(e,t=Bt(e,0));if(0!==e.tag&&2===n&&(Os|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(t=Ut(e))&&(n=xu(e,t))),1===n)throw n=Ls,gu(e,0),du(e,t),cu(e,Da()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ou(e),cu(e,Da()),null}function hu(e,t){var n=Os;Os|=1;try{return e(t)}finally{0===(Os=n)&&(Fs(),Wa())}}function mu(e,t){var n=Os;Os&=-2,Os|=8;try{return e(t)}finally{0===(Os=n)&&(Fs(),Wa())}}function vu(e,t){sa(Ns,Ts),Ts|=t,js|=t}function yu(){Ts=Ns.current,oa(Ns)}function gu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,zr(n)),null!==_s)for(n=_s.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&ha();break;case 3:Ti(),oa(ca),oa(la),qi();break;case 5:Ii(r);break;case 4:Ti();break;case 13:case 19:oa(Li);break;case 10:Za(r);break;case 23:case 24:yu()}n=n.return}As=e,_s=Vu(e.current,null),Ps=Ts=js=t,Is=0,Ls=null,Bs=Rs=Ms=0}function bu(e,t){for(;;){var n=_s;try{if(Ja(),Yi.current=_o,Ji){for(var r=Xi.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}Ji=!1}if($i=0,Ki=Qi=Xi=null,Zi=!1,Cs.current=null,null===n||null===n.return){Is=1,Ls=t,_s=null;break}e:{var i=e,o=n.return,s=n,u=t;if(t=Ps,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var l=u;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&Li.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var y=new Set;y.add(l),d.updateQueue=y}else v.add(l);if(0==(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var g=oi(-1,1);g.tag=2,si(s,g)}s.lanes|=1;break e}u=void 0,s=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new is,u=new Set,b.set(l,u)):void 0===(u=b.get(l))&&(u=new Set,b.set(l,u)),!u.has(s)){u.add(s);var w=Mu.bind(null,i,l,s);l.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Is&&(Is=2),u=rs(u,s),d=o;do{switch(d.tag){case 3:i=u,d.flags|=4096,t&=-t,d.lanes|=t,ui(d,os(0,i,t));break e;case 1:i=u;var x=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof x.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Ys||!Ys.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,ui(d,ss(d,i,t));break e}}d=d.return}while(null!==d)}Cu(n)}catch(e){t=e,_s===n&&null!==n&&(_s=n=n.return);continue}break}}function wu(){var e=Ss.current;return Ss.current=_o,null===e?_o:e}function xu(e,t){var n=Os;Os|=16;var r=wu();for(As===e&&Ps===t||gu(e,t);;)try{ku();break}catch(t){bu(e,t)}if(Ja(),Os=n,Ss.current=r,null!==_s)throw Error(o(261));return As=null,Ps=0,Is}function ku(){for(;null!==_s;)Su(_s)}function Eu(){for(;null!==_s&&!Sa();)Su(_s)}function Su(e){var t=zs(e.alternate,e,Ts);e.memoizedProps=e.pendingProps,null===t?Cu(e):_s=t,Cs.current=null}function Cu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ts(n,t,Ts)))return void(_s=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ts)||0==(4&n.mode)){for(var r=0,a=n.child;null!==a;)r|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ns(t)))return n.flags&=2047,void(_s=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(_s=t);_s=t=e}while(null!==t);0===Is&&(Is=5)}function Ou(e){var t=Va();return za(99,Au.bind(null,e,t)),null}function Au(e,t){do{Pu()}while(null!==$s);if(0!=(48&Os))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,i=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,u=e.expirationTimes;0<i;){var l=31-Ht(i),c=1<<l;a[l]=0,s[l]=-1,u[l]=-1,i&=~c}if(null!==Js&&0==(24&r)&&Js.has(e)&&Js.delete(e),e===As&&(_s=As=null,Ps=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(a=Os,Os|=32,Cs.current=null,Br=$t,pr(s=dr())){if("selectionStart"in s)u={start:s.selectionStart,end:s.selectionEnd};else e:if(u=(u=s.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,i=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{u.nodeType,l.nodeType}catch(e){u=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=s,y=null;t:for(;;){for(var g;v!==u||0!==i&&3!==v.nodeType||(d=f+i),v!==l||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(g=v.firstChild);)y=v,v=g;for(;;){if(v===s)break t;if(y===u&&++h===i&&(d=f),y===l&&++m===c&&(p=f),null!==(g=v.nextSibling))break;y=(v=y).parentNode}v=g}u=-1===d||-1===p?null:{start:d,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;Ur={focusedElem:s,selectionRange:u},$t=!1,au=null,iu=!1,Hs=r;do{try{_u()}catch(e){if(null===Hs)throw Error(o(330));ju(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);au=null,Hs=r;do{try{for(s=e;null!==Hs;){var b=Hs.flags;if(16&b&&ye(Hs.stateNode,""),128&b){var w=Hs.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:vs(Hs),Hs.flags&=-3;break;case 6:vs(Hs),Hs.flags&=-3,ws(Hs.alternate,Hs);break;case 1024:Hs.flags&=-1025;break;case 1028:Hs.flags&=-1025,ws(Hs.alternate,Hs);break;case 4:ws(Hs.alternate,Hs);break;case 8:bs(s,u=Hs);var k=u.alternate;hs(u),null!==k&&hs(k)}Hs=Hs.nextEffect}}catch(e){if(null===Hs)throw Error(o(330));ju(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);if(x=Ur,w=dr(),b=x.focusedElem,s=x.selectionRange,w!==b&&b&&b.ownerDocument&&fr(b.ownerDocument.documentElement,b)){null!==s&&pr(b)&&(w=s.start,void 0===(x=s.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),u=b.textContent.length,k=Math.min(s.start,u),s=void 0===s.end?k:Math.min(s.end,u),!x.extend&&k>s&&(u=s,s=k,k=u),u=cr(b,k),i=cr(b,s),u&&i&&(1!==x.rangeCount||x.anchorNode!==u.node||x.anchorOffset!==u.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((w=w.createRange()).setStart(u.node,u.offset),x.removeAllRanges(),k>s?(x.addRange(w),x.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}$t=!!Br,Ur=Br=null,e.current=n,Hs=r;do{try{for(b=e;null!==Hs;){var E=Hs.flags;if(36&E&&fs(b,Hs.alternate,Hs),128&E){w=void 0;var S=Hs.ref;if(null!==S){var C=Hs.stateNode;Hs.tag,w=C,"function"==typeof S?S(w):S.current=w}}Hs=Hs.nextEffect}}catch(e){if(null===Hs)throw Error(o(330));ju(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);Hs=null,ja(),Os=a}else e.current=n;if(Gs)Gs=!1,$s=e,Xs=t;else for(Hs=r;null!==Hs;)t=Hs.nextEffect,Hs.nextEffect=null,8&Hs.flags&&((E=Hs).sibling=null,E.stateNode=null),Hs=t;if(0===(r=e.pendingLanes)&&(Ys=null),1===r?e===eu?Zs++:(Zs=0,eu=e):Zs=0,n=n.stateNode,wa&&"function"==typeof wa.onCommitFiberRoot)try{wa.onCommitFiberRoot(ba,n,void 0,64==(64&n.current.flags))}catch(e){}if(cu(e,Da()),Ws)throw Ws=!1,e=qs,qs=null,e;return 0!=(8&Os)||Wa(),null}function _u(){for(;null!==Hs;){var e=Hs.alternate;iu||null===au||(0!=(8&Hs.flags)?Ze(Hs,au)&&(iu=!0):13===Hs.tag&&ks(e,Hs)&&Ze(Hs,au)&&(iu=!0));var t=Hs.flags;0!=(256&t)&&cs(e,Hs),0==(512&t)||Gs||(Gs=!0,Ha(97,(function(){return Pu(),null}))),Hs=Hs.nextEffect}}function Pu(){if(90!==Xs){var e=97<Xs?97:Xs;return Xs=90,za(e,Iu)}return!1}function Tu(e,t){Qs.push(t,e),Gs||(Gs=!0,Ha(97,(function(){return Pu(),null})))}function Nu(e,t){Ks.push(t,e),Gs||(Gs=!0,Ha(97,(function(){return Pu(),null})))}function Iu(){if(null===$s)return!1;var e=$s;if($s=null,0!=(48&Os))throw Error(o(331));var t=Os;Os|=32;var n=Ks;Ks=[];for(var r=0;r<n.length;r+=2){var a=n[r],i=n[r+1],s=a.destroy;if(a.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===i)throw Error(o(330));ju(i,e)}}for(n=Qs,Qs=[],r=0;r<n.length;r+=2){a=n[r],i=n[r+1];try{var u=a.create;a.destroy=u()}catch(e){if(null===i)throw Error(o(330));ju(i,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Os=t,Wa(),!0}function Lu(e,t,n){si(e,t=os(0,t=rs(n,t),1)),t=ou(),null!==(e=lu(e,1))&&(zt(e,1,t),cu(e,t))}function ju(e,t){if(3===e.tag)Lu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Lu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ys||!Ys.has(r))){var a=ss(n,e=rs(t,e),1);if(si(n,a),a=ou(),null!==(n=lu(n,1)))zt(n,1,a),cu(n,a);else if("function"==typeof r.componentDidCatch&&(null===Ys||!Ys.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Mu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ou(),e.pingedLanes|=e.suspendedLanes&n,As===e&&(Ps&n)===n&&(4===Is||3===Is&&(62914560&Ps)===Ps&&500>Da()-Ds?gu(e,0):Bs|=n),cu(e,t)}function Ru(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Va()?1:2:(0===nu&&(nu=js),0===(t=Vt(62914560&~nu))&&(t=4194304))),n=ou(),null!==(e=lu(e,t))&&(zt(e,t,n),cu(e,n))}function Bu(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.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Uu(e,t,n,r){return new Bu(e,t,n,r)}function Du(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vu(e,t){var n=e.alternate;return null===n?((n=Uu(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.nextEffect=null,n.firstEffect=null,n.lastEffect=null),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 Fu(e,t,n,r,a,i){var s=2;if(r=e,"function"==typeof e)Du(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return zu(n.children,a,i,t);case R:s=8,a|=16;break;case C:s=8,a|=1;break;case O:return(e=Uu(12,n,t,8|a)).elementType=O,e.type=O,e.lanes=i,e;case T:return(e=Uu(13,n,t,a)).type=T,e.elementType=T,e.lanes=i,e;case N:return(e=Uu(19,n,t,a)).elementType=N,e.lanes=i,e;case B:return Hu(n,a,i,t);case U:return(e=Uu(24,n,t,a)).elementType=U,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case A:s=10;break e;case _:s=9;break e;case P:s=11;break e;case I:s=14;break e;case L:s=16,r=null;break e;case j:s=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Uu(s,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function zu(e,t,n,r){return(e=Uu(7,e,r,t)).lanes=n,e}function Hu(e,t,n,r){return(e=Uu(23,e,r,t)).elementType=B,e.lanes=n,e}function Wu(e,t,n){return(e=Uu(6,e,null,t)).lanes=n,e}function qu(e,t,n){return(t=Uu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ft(0),this.expirationTimes=Ft(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ft(0),this.mutableSourceEagerHydrationData=null}function Gu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function $u(e,t,n,r){var a=t.current,i=ou(),s=su(a);e:if(n){t:{if(Xe(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(pa(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(o(171))}if(1===n.tag){var l=n.type;if(pa(l)){n=va(n,l,u);break e}}n=u}else n=ua;return null===t.context?t.context=n:t.pendingContext=n,(t=oi(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),si(a,t),uu(a,s,i),s}function Xu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ku(e,t){Qu(e,t),(e=e.alternate)&&Qu(e,t)}function Ju(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Yu(e,t,null!=n&&!0===n.hydrate),t=Uu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ai(t),e[Qr]=n.current,_r(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var a=(t=r[e])._getVersion;a=a(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function el(e,t,n,r,a){var i=n._reactRootContainer;if(i){var o=i._internalRoot;if("function"==typeof a){var s=a;a=function(){var e=Xu(o);s.call(e)}}$u(t,o,e,a)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Ju(e,0,t?{hydrate:!0}:void 0)}(n,r),o=i._internalRoot,"function"==typeof a){var u=a;a=function(){var e=Xu(o);u.call(e)}}mu((function(){$u(t,o,e,a)}))}return Xu(o)}function tl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zu(t))throw Error(o(200));return Gu(e,t,null,n)}zs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ca.current)Lo=!0;else{if(0==(n&r)){switch(Lo=!1,t.tag){case 3:Ho(t),Hi();break;case 5:Ni(t);break;case 1:pa(t.type)&&ya(t);break;case 4:Pi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;sa($a,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?$o(e,t,n):(sa(Li,1&Li.current),null!==(t=Zo(e,t,n))?t.sibling:null);sa(Li,1&Li.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Jo(e,t,n);t.flags|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),sa(Li,Li.current),r)break;return null;case 23:case 24:return t.lanes=0,Uo(e,t,n)}return Zo(e,t,n)}Lo=0!=(16384&e.flags)}else Lo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=da(t,la.current),ti(t,n),a=no(null,t,r,e,a,n),t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,pa(r)){var i=!0;ya(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,ai(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&di(t,r,s,e),a.updater=pi,t.stateNode=a,a._reactInternals=t,yi(t,r,e,n),t=zo(null,t,r,!0,i,n)}else t.tag=0,jo(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(i=a._init)(a._payload),t.type=a,i=t.tag=function(e){if("function"==typeof e)return Du(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===I)return 14}return 2}(a),e=Ga(a,e),i){case 0:t=Vo(null,t,a,e,n);break e;case 1:t=Fo(null,t,a,e,n);break e;case 11:t=Mo(null,t,a,e,n);break e;case 14:t=Ro(null,t,a,Ga(a.type,e),r,n);break e}throw Error(o(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Vo(e,t,r,a=t.elementType===r?a:Ga(r,a),n);case 1:return r=t.type,a=t.pendingProps,Fo(e,t,r,a=t.elementType===r?a:Ga(r,a),n);case 3:if(Ho(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,ii(e,t),li(t,r,null,n),(r=t.memoizedState.element)===a)Hi(),t=Zo(e,t,n);else{if((i=(a=t.stateNode).hydrate)&&(Ri=Wr(t.stateNode.containerInfo.firstChild),Mi=t,i=Bi=!0),i){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a<e.length;a+=2)(i=e[a])._workInProgressVersionPrimary=e[a+1],Wi.push(i);for(n=Ei(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else jo(e,t,r,n),Hi();t=t.child}return t;case 5:return Ni(t),null===e&&Vi(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,s=a.children,Vr(r,a)?s=null:null!==i&&Vr(r,i)&&(t.flags|=16),Do(e,t),jo(e,t,s,n),t.child;case 6:return null===e&&Vi(t),null;case 13:return $o(e,t,n);case 4:return Pi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ki(t,null,r,n):jo(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Mo(e,t,r,a=t.elementType===r?a:Ga(r,a),n);case 7:return jo(e,t,t.pendingProps,n),t.child;case 8:case 12:return jo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,s=t.memoizedProps,i=a.value;var u=t.type._context;if(sa($a,u._currentValue),u._currentValue=i,null!==s)if(u=s.value,0==(i=or(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(s.children===a.children&&!ca.current){t=Zo(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===u.tag&&((c=oi(-1,n&-n)).tag=2,si(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),ei(u.return,n),l.lanes|=n;break}c=c.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}jo(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(i=t.pendingProps).children,ti(t,n),r=r(a=ni(a,i.unstable_observedBits)),t.flags|=1,jo(e,t,r,n),t.child;case 14:return i=Ga(a=t.type,t.pendingProps),Ro(e,t,a,i=Ga(a.type,i),r,n);case 15:return Bo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ga(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,pa(r)?(e=!0,ya(t)):e=!1,ti(t,n),mi(t,r,a),yi(t,r,a,n),zo(null,t,r,!0,e,n);case 19:return Jo(e,t,n);case 23:case 24:return Uo(e,t,n)}throw Error(o(156,t.tag))},Ju.prototype.render=function(e){$u(e,this._internalRoot,null,null)},Ju.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;$u(null,e,null,(function(){t[Qr]=null}))},et=function(e){13===e.tag&&(uu(e,4,ou()),Ku(e,4))},tt=function(e){13===e.tag&&(uu(e,67108864,ou()),Ku(e,67108864))},nt=function(e){if(13===e.tag){var t=ou(),n=su(e);uu(e,n,t),Ku(e,n)}},rt=function(e,t){return t()},Oe=function(e,t,n){switch(t){case"input":if(ne(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 a=ta(r);if(!a)throw Error(o(90));K(r),ne(r,a)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Ie=hu,Le=function(e,t,n,r,a){var i=Os;Os|=4;try{return za(98,e.bind(null,t,n,r,a))}finally{0===(Os=i)&&(Fs(),Wa())}},je=function(){0==(49&Os)&&(function(){if(null!==Js){var e=Js;Js=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,cu(e,Da())}))}Wa()}(),Pu())},Me=function(e,t){var n=Os;Os|=2;try{return e(t)}finally{0===(Os=n)&&(Fs(),Wa())}};var nl={Events:[Zr,ea,ta,Te,Ne,Pu,{current:!1}]},rl={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},al={bundleType:rl.bundleType,version:rl.version,rendererPackageName:rl.rendererPackageName,rendererConfig:rl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:rl.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var il=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!il.isDisabled&&il.supportsFiber)try{ba=il.inject(al),wa=il}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nl,t.createPortal=tl,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(o(188));throw Error(o(268,Object.keys(e)))}return null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Os;if(0!=(48&n))return e(t);Os|=1;try{if(e)return za(99,e.bind(null,t))}finally{Os=n,Wa()}},t.hydrate=function(e,t,n){if(!Zu(t))throw Error(o(200));return el(null,e,t,!0,n)},t.render=function(e,t,n){if(!Zu(t))throw Error(o(200));return el(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zu(e))throw Error(o(40));return!!e._reactRootContainer&&(mu((function(){el(null,null,e,!1,(function(){e._reactRootContainer=null,e[Qr]=null}))})),!0)},t.unstable_batchedUpdates=hu,t.unstable_createPortal=function(e,t){return tl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return el(e,t,n,!1,r)},t.version="17.0.2"},377: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(e){console.error(e)}}(),e.exports=n(186)},819:function(e,t,n){"use strict";n(6);var r=n(705),a=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;a=i("react.element"),i("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,i={},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)s.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:a,type:e,key:l,ref:c,props:i,_owner:o.current}}t.jsx=l,t.jsxs=l},348:function(e,t,n){"use strict";var r=n(6),a=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,u=60112;t.Suspense=60113;var l=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;a=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),l=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(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 h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var b=g.prototype=new y;b.constructor=g,r(b,v.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,i={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,r)&&!k.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:a,type:e,key:o,ref:s,props:i,_owner:w.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var C=/\/+/g;function O(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 A(e,t,n,r,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 a:case i:u=!0}}if(u)return o=o(u=e),e=""===r?"."+O(u,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(C,"$&/")+"/"),A(o,t,n,"",(function(e){return e}))):null!=o&&(S(o)&&(o=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(C,"$&/")+"/")+e)),t.push(o)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=r+O(s=e[l],l);u+=A(s,t,n,c,o)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),l=0;!(s=e.next()).done;)u+=A(s=s.value,t,n,c=r+O(s,l++),o);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function _(e,t,n){if(null==e)return e;var r=[],a=0;return A(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var T={current:null};function N(){var e=T.current;if(null===e)throw Error(p(321));return e}var I={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:_,forEach:function(e,t,n){_(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return _(e,(function(){t++})),t},toArray:function(e){return _(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var i=r({},e.props),o=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];i.children=l}return{$$typeof:a,type:e.type,key:o,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_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:u,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},705:function(e,t,n){"use strict";e.exports=n(348)},411:function(e,t,n){"use strict";e.exports=n(819)},729:function(e,t,n){"use strict";var r=n(165);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return n.PropTypes=n,n}},192:function(e,t,n){e.exports=n(729)()},165:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},398:function(e,t,n){"use strict";var r=n(362).Buffer,a=n(690).default,i=n(728).default,o=n(370),s=function(){function e(t){if(a(this,e),this.length=0,this._encoding="utf8",this._writeOffset=0,this._readOffset=0,e.isSmartBufferOptions(t))if(t.encoding&&(o.checkEncoding(t.encoding),this._encoding=t.encoding),t.size){if(!(o.isFiniteInteger(t.size)&&t.size>0))throw new Error(o.ERRORS.INVALID_SMARTBUFFER_SIZE);this._buff=r.allocUnsafe(t.size)}else if(t.buff){if(!r.isBuffer(t.buff))throw new Error(o.ERRORS.INVALID_SMARTBUFFER_BUFFER);this._buff=t.buff,this.length=t.buff.length}else this._buff=r.allocUnsafe(4096);else{if(void 0!==t)throw new Error(o.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=r.allocUnsafe(4096)}}return i(e,[{key:"readInt8",value:function(e){return this._readNumberValue(r.prototype.readInt8,1,e)}},{key:"readInt16BE",value:function(e){return this._readNumberValue(r.prototype.readInt16BE,2,e)}},{key:"readInt16LE",value:function(e){return this._readNumberValue(r.prototype.readInt16LE,2,e)}},{key:"readInt32BE",value:function(e){return this._readNumberValue(r.prototype.readInt32BE,4,e)}},{key:"readInt32LE",value:function(e){return this._readNumberValue(r.prototype.readInt32LE,4,e)}},{key:"readBigInt64BE",value:function(e){return o.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(r.prototype.readBigInt64BE,8,e)}},{key:"readBigInt64LE",value:function(e){return o.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(r.prototype.readBigInt64LE,8,e)}},{key:"writeInt8",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt8,1,e,t),this}},{key:"insertInt8",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt8,1,e,t)}},{key:"writeInt16BE",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt16BE,2,e,t)}},{key:"insertInt16BE",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt16BE,2,e,t)}},{key:"writeInt16LE",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt16LE,2,e,t)}},{key:"insertInt16LE",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt16LE,2,e,t)}},{key:"writeInt32BE",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt32BE,4,e,t)}},{key:"insertInt32BE",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt32BE,4,e,t)}},{key:"writeInt32LE",value:function(e,t){return this._writeNumberValue(r.prototype.writeInt32LE,4,e,t)}},{key:"insertInt32LE",value:function(e,t){return this._insertNumberValue(r.prototype.writeInt32LE,4,e,t)}},{key:"writeBigInt64BE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(r.prototype.writeBigInt64BE,8,e,t)}},{key:"insertBigInt64BE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(r.prototype.writeBigInt64BE,8,e,t)}},{key:"writeBigInt64LE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(r.prototype.writeBigInt64LE,8,e,t)}},{key:"insertBigInt64LE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(r.prototype.writeBigInt64LE,8,e,t)}},{key:"readUInt8",value:function(e){return this._readNumberValue(r.prototype.readUInt8,1,e)}},{key:"readUInt16BE",value:function(e){return this._readNumberValue(r.prototype.readUInt16BE,2,e)}},{key:"readUInt16LE",value:function(e){return this._readNumberValue(r.prototype.readUInt16LE,2,e)}},{key:"readUInt32BE",value:function(e){return this._readNumberValue(r.prototype.readUInt32BE,4,e)}},{key:"readUInt32LE",value:function(e){return this._readNumberValue(r.prototype.readUInt32LE,4,e)}},{key:"readBigUInt64BE",value:function(e){return o.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(r.prototype.readBigUInt64BE,8,e)}},{key:"readBigUInt64LE",value:function(e){return o.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(r.prototype.readBigUInt64LE,8,e)}},{key:"writeUInt8",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt8,1,e,t)}},{key:"insertUInt8",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt8,1,e,t)}},{key:"writeUInt16BE",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt16BE,2,e,t)}},{key:"insertUInt16BE",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt16BE,2,e,t)}},{key:"writeUInt16LE",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt16LE,2,e,t)}},{key:"insertUInt16LE",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt16LE,2,e,t)}},{key:"writeUInt32BE",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt32BE,4,e,t)}},{key:"insertUInt32BE",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt32BE,4,e,t)}},{key:"writeUInt32LE",value:function(e,t){return this._writeNumberValue(r.prototype.writeUInt32LE,4,e,t)}},{key:"insertUInt32LE",value:function(e,t){return this._insertNumberValue(r.prototype.writeUInt32LE,4,e,t)}},{key:"writeBigUInt64BE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(r.prototype.writeBigUInt64BE,8,e,t)}},{key:"insertBigUInt64BE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(r.prototype.writeBigUInt64BE,8,e,t)}},{key:"writeBigUInt64LE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(r.prototype.writeBigUInt64LE,8,e,t)}},{key:"insertBigUInt64LE",value:function(e,t){return o.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(r.prototype.writeBigUInt64LE,8,e,t)}},{key:"readFloatBE",value:function(e){return this._readNumberValue(r.prototype.readFloatBE,4,e)}},{key:"readFloatLE",value:function(e){return this._readNumberValue(r.prototype.readFloatLE,4,e)}},{key:"writeFloatBE",value:function(e,t){return this._writeNumberValue(r.prototype.writeFloatBE,4,e,t)}},{key:"insertFloatBE",value:function(e,t){return this._insertNumberValue(r.prototype.writeFloatBE,4,e,t)}},{key:"writeFloatLE",value:function(e,t){return this._writeNumberValue(r.prototype.writeFloatLE,4,e,t)}},{key:"insertFloatLE",value:function(e,t){return this._insertNumberValue(r.prototype.writeFloatLE,4,e,t)}},{key:"readDoubleBE",value:function(e){return this._readNumberValue(r.prototype.readDoubleBE,8,e)}},{key:"readDoubleLE",value:function(e){return this._readNumberValue(r.prototype.readDoubleLE,8,e)}},{key:"writeDoubleBE",value:function(e,t){return this._writeNumberValue(r.prototype.writeDoubleBE,8,e,t)}},{key:"insertDoubleBE",value:function(e,t){return this._insertNumberValue(r.prototype.writeDoubleBE,8,e,t)}},{key:"writeDoubleLE",value:function(e,t){return this._writeNumberValue(r.prototype.writeDoubleLE,8,e,t)}},{key:"insertDoubleLE",value:function(e,t){return this._insertNumberValue(r.prototype.writeDoubleLE,8,e,t)}},{key:"readString",value:function(e,t){var n;"number"==typeof e?(o.checkLengthValue(e),n=Math.min(e,this.length-this._readOffset)):(t=e,n=this.length-this._readOffset),void 0!==t&&o.checkEncoding(t);var r=this._buff.slice(this._readOffset,this._readOffset+n).toString(t||this._encoding);return this._readOffset+=n,r}},{key:"insertString",value:function(e,t,n){return o.checkOffsetValue(t),this._handleString(e,!0,t,n)}},{key:"writeString",value:function(e,t,n){return this._handleString(e,!1,t,n)}},{key:"readStringNT",value:function(e){void 0!==e&&o.checkEncoding(e);for(var t=this.length,n=this._readOffset;n<this.length;n++)if(0===this._buff[n]){t=n;break}var r=this._buff.slice(this._readOffset,t);return this._readOffset=t+1,r.toString(e||this._encoding)}},{key:"insertStringNT",value:function(e,t,n){return o.checkOffsetValue(t),this.insertString(e,t,n),this.insertUInt8(0,t+e.length),this}},{key:"writeStringNT",value:function(e,t,n){return this.writeString(e,t,n),this.writeUInt8(0,"number"==typeof t?t+e.length:this.writeOffset),this}},{key:"readBuffer",value:function(e){void 0!==e&&o.checkLengthValue(e);var t="number"==typeof e?e:this.length,n=Math.min(this.length,this._readOffset+t),r=this._buff.slice(this._readOffset,n);return this._readOffset=n,r}},{key:"insertBuffer",value:function(e,t){return o.checkOffsetValue(t),this._handleBuffer(e,!0,t)}},{key:"writeBuffer",value:function(e,t){return this._handleBuffer(e,!1,t)}},{key:"readBufferNT",value:function(){for(var e=this.length,t=this._readOffset;t<this.length;t++)if(0===this._buff[t]){e=t;break}var n=this._buff.slice(this._readOffset,e);return this._readOffset=e+1,n}},{key:"insertBufferNT",value:function(e,t){return o.checkOffsetValue(t),this.insertBuffer(e,t),this.insertUInt8(0,t+e.length),this}},{key:"writeBufferNT",value:function(e,t){return void 0!==t&&o.checkOffsetValue(t),this.writeBuffer(e,t),this.writeUInt8(0,"number"==typeof t?t+e.length:this._writeOffset),this}},{key:"clear",value:function(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}},{key:"remaining",value:function(){return this.length-this._readOffset}},{key:"readOffset",get:function(){return this._readOffset},set:function(e){o.checkOffsetValue(e),o.checkTargetOffset(e,this),this._readOffset=e}},{key:"writeOffset",get:function(){return this._writeOffset},set:function(e){o.checkOffsetValue(e),o.checkTargetOffset(e,this),this._writeOffset=e}},{key:"encoding",get:function(){return this._encoding},set:function(e){o.checkEncoding(e),this._encoding=e}},{key:"internalBuffer",get:function(){return this._buff}},{key:"toBuffer",value:function(){return this._buff.slice(0,this.length)}},{key:"toString",value:function(e){var t="string"==typeof e?e:this._encoding;return o.checkEncoding(t),this._buff.toString(t,0,this.length)}},{key:"destroy",value:function(){return this.clear(),this}},{key:"_handleString",value:function(e,t,n,a){var i=this._writeOffset,s=this._encoding;"number"==typeof n?i=n:"string"==typeof n&&(o.checkEncoding(n),s=n),"string"==typeof a&&(o.checkEncoding(a),s=a);var u=r.byteLength(e,s);return t?this.ensureInsertable(u,i):this._ensureWriteable(u,i),this._buff.write(e,i,u,s),t?this._writeOffset+=u:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,i+u):this._writeOffset+=u,this}},{key:"_handleBuffer",value:function(e,t,n){var r="number"==typeof n?n:this._writeOffset;return t?this.ensureInsertable(e.length,r):this._ensureWriteable(e.length,r),e.copy(this._buff,r),t?this._writeOffset+=e.length:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,r+e.length):this._writeOffset+=e.length,this}},{key:"ensureReadable",value:function(e,t){var n=this._readOffset;if(void 0!==t&&(o.checkOffsetValue(t),n=t),n<0||n+e>this.length)throw new Error(o.ERRORS.INVALID_READ_BEYOND_BOUNDS)}},{key:"ensureInsertable",value:function(e,t){o.checkOffsetValue(t),this._ensureCapacity(this.length+e),t<this.length&&this._buff.copy(this._buff,t+e,t,this._buff.length),t+e>this.length?this.length=t+e:this.length+=e}},{key:"_ensureWriteable",value:function(e,t){var n="number"==typeof t?t:this._writeOffset;this._ensureCapacity(n+e),n+e>this.length&&(this.length=n+e)}},{key:"_ensureCapacity",value:function(e){var t=this._buff.length;if(e>t){var n=this._buff,a=3*t/2+1;a<e&&(a=e),this._buff=r.allocUnsafe(a),n.copy(this._buff,0,0,t)}}},{key:"_readNumberValue",value:function(e,t,n){this.ensureReadable(t,n);var r=e.call(this._buff,"number"==typeof n?n:this._readOffset);return void 0===n&&(this._readOffset+=t),r}},{key:"_insertNumberValue",value:function(e,t,n,r){return o.checkOffsetValue(r),this.ensureInsertable(t,r),e.call(this._buff,n,r),this._writeOffset+=t,this}},{key:"_writeNumberValue",value:function(e,t,n,r){if("number"==typeof r){if(r<0)throw new Error(o.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);o.checkOffsetValue(r)}var a="number"==typeof r?r:this._writeOffset;return this._ensureWriteable(t,a),e.call(this._buff,n,a),"number"==typeof r?this._writeOffset=Math.max(this._writeOffset,a+t):this._writeOffset+=t,this}}],[{key:"fromSize",value:function(e,t){return new this({size:e,encoding:t})}},{key:"fromBuffer",value:function(e,t){return new this({buff:e,encoding:t})}},{key:"fromOptions",value:function(e){return new this(e)}},{key:"isSmartBufferOptions",value:function(e){var t=e;return t&&(void 0!==t.encoding||void 0!==t.size||void 0!==t.buff)}}]),e}();t.$=s},370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(362),a={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};function i(e){return"number"==typeof e&&isFinite(e)&&function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}function o(e,t){if("number"!=typeof e)throw new Error(t?a.INVALID_OFFSET_NON_NUMBER:a.INVALID_LENGTH_NON_NUMBER);if(!i(e)||e<0)throw new Error(t?a.INVALID_OFFSET:a.INVALID_LENGTH)}t.ERRORS=a,t.checkEncoding=function(e){if(!r.Buffer.isEncoding(e))throw new Error(a.INVALID_ENCODING)},t.isFiniteInteger=i,t.checkLengthValue=function(e){o(e,!1)},t.checkOffsetValue=function(e){o(e,!0)},t.checkTargetOffset=function(e,t){if(e<0||e>t.length)throw new Error(a.INVALID_TARGET_OFFSET)},t.bigIntAndBufferInt64Check=function(e){if("undefined"==typeof BigInt)throw new Error("Platform does not support JS BigInt type.");if(void 0===r.Buffer.prototype[e])throw new Error("Platform does not support Buffer.prototype.".concat(e,"."))}},326:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=u(e),o=i[0],s=i[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),c=0,f=s>0?o-4:o;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,s=0,u=r-a;s<u;s+=o)i.push(l(e,s,s+o>u?u:s+o));return 1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=i.length;o<s;++o)n[o]=i[o],r[i.charCodeAt(o)]=o;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var a,i,o=[],s=t;s<r;s+=3)a=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(i=a)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},362:function(e,t,n){"use strict";var r=n(326),a=n(458),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;var o=2147483647;function s(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|m(e,t),r=s(n),a=r.write(e,t);return a!==n&&(r=r.slice(0,a)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(F(e,Uint8Array)){var t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(F(e,SharedArrayBuffer)||e&&F(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);var a=function(e){if(u.isBuffer(e)){var t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||z(e.length)?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return c(e),s(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=s(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function h(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function m(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return D(e).length;default:if(a)return r?-1:U(e).length;t=(""+t).toLowerCase(),a=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return _(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),z(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,a){var i,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var c=-1;for(i=n;i<s;i++)if(l(e,i)===l(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*o}else-1!==c&&(i-=i-c),c=-1}else for(n+u>s&&(n=s-u),i=n;i>=0;i--){for(var f=!0,d=0;d<u;d++)if(l(e,i+d)!==l(t,d)){f=!1;break}if(f)return i}return-1}function w(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;var i=t.length;r>i/2&&(r=i/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(z(s))return o;e[n+o]=s}return o}function x(e,t,n,r){return V(U(t,e.length-n),e,n,r)}function k(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return V(D(t),e,n,r)}function S(e,t,n,r){return V(function(e,t){for(var n,r,a,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var i,o,s,u,l=e[a],c=null,f=l>239?4:l>223?3:l>191?2:1;if(a+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(i=e[a+1]))&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=e[a+1],o=e[a+2],128==(192&i)&&128==(192&o)&&(u=(15&l)<<12|(63&i)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[a+1],o=e[a+2],s=e[a+3],128==(192&i)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),a+=f}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}t.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(F(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),F(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,a=0,i=Math.min(n,r);a<i;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var i=e[n];if(F(i,Uint8Array))a+i.length>r.length?u.from(i).copy(r,a):Uint8Array.prototype.set.call(r,i,a);else{if(!u.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a)}a+=i.length}return r},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):v.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,a){if(F(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(i,o),l=this.slice(r,a),c=e.slice(t,n),f=0;f<s;++f)if(l[f]!==c[f]){i=l[f],o=c[f];break}return i<o?-1:o<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":case"latin1":case"binary":return k(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function _(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",i=t;i<n;++i)a+=H[e[i]];return a}function N(e,t,n){for(var r=e.slice(t,n),a="",i=0;i<r.length-1;i+=2)a+=String.fromCharCode(r[i]+256*r[i+1]);return a}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,a,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function j(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,i){return t=+t,n>>>=0,i||j(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,i){return t=+t,n>>>=0,i||j(e,0,n,8),a.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e],a=1,i=0;++i<t&&(a*=256);)r+=this[e+i]*a;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e],a=1,i=0;++i<t&&(a*=256);)r+=this[e+i]*a;return r>=(a*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),a.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),a.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),a.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),a.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i<n&&(a*=256);)this[t+i]=e/a&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);L(this,e,t,n,a-1,-a)}var i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);L(this,e,t,n,a-1,-a)}var i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var a=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),a},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=u.isBuffer(e)?e:u.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this};var B=/[^+/0-9A-Za-z-_]/g;function U(e,t){var n;t=t||1/0;for(var r=e.length,a=null,i=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function D(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function F(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function z(e){return e!=e}var H=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,a=0;a<16;++a)t[r+a]=e[n]+e[a];return t}()},458:function(e,t){t.read=function(e,t,n,r,a){var i,o,s=8*a-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?a-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=d,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=r;c>0;o=256*o+e[t+f],f+=d,c-=8);if(0===i)i=1-l;else{if(i===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),i-=l}return(p?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,s,u,l=8*i-a-1,c=(1<<l)-1,f=c>>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(o++,u/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*u-1)*Math.pow(2,a),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;e[n+p]=255&s,p+=h,s/=256,a-=8);for(o=o<<a|s,l+=a;l>0;e[n+p]=255&o,p+=h,o/=256,l-=8);e[n+p-h]|=128*m}},6:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,s,u=a(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(u[c]=o[c]);if(t){s=t(o);for(var f=0;f<s.length;f++)r.call(o,s[f])&&(u[s[f]]=o[s[f]])}}return u}},666:function(e,t){"use strict";var n,r,a,i;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}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,f=function e(){if(null!==l)try{var n=t.unstable_now();l(!0,n),l=null}catch(t){throw setTimeout(e,0),t}};n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},a=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,v=null,y=-1,g=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},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"):g=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,x=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+g;try{v(!0,e)?x.postMessage(null):(m=!1,v=null)}catch(e){throw x.postMessage(null),e}}else m=!1},n=function(e){v=e,m||(m=!0,x.postMessage(null))},r=function(e,n){y=d((function(){e(t.unstable_now())}),n)},a=function(){p(y),y=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<C(a,t)))break e;e[r]=t,e[n]=a,n=r}}function E(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var i=2*(r+1)-1,o=e[i],s=i+1,u=e[s];if(void 0!==o&&0>C(o,n))void 0!==u&&0>C(u,o)?(e[r]=u,e[s]=n,r=s):(e[r]=o,e[i]=n,r=i);else{if(!(void 0!==u&&0>C(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],A=[],_=1,P=null,T=3,N=!1,I=!1,L=!1;function j(e){for(var t=E(A);null!==t;){if(null===t.callback)S(A);else{if(!(t.startTime<=e))break;S(A),t.sortIndex=t.expirationTime,k(O,t)}t=E(A)}}function M(e){if(L=!1,j(e),!I)if(null!==E(O))I=!0,n(R);else{var t=E(A);null!==t&&r(M,t.startTime-e)}}function R(e,n){I=!1,L&&(L=!1,a()),N=!0;var i=T;try{for(j(n),P=E(O);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=P.callback;if("function"==typeof o){P.callback=null,T=P.priorityLevel;var s=o(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?P.callback=s:P===E(O)&&S(O),j(n)}else S(O);P=E(O)}if(null!==P)var u=!0;else{var l=E(A);null!==l&&r(M,l.startTime-n),u=!1}return u}finally{P=null,T=i,N=!1}}var B=i;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(){I||N||(I=!0,n(R))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return E(O)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,i,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:_++,callback:i,priorityLevel:e,startTime:o,expirationTime:u=o+u,sortIndex:-1},o>s?(e.sortIndex=o,k(A,e),null===E(O)&&e===E(A)&&(L?a():L=!0,r(M,o-s))):(e.sortIndex=u,k(O,e),I||N||(I=!0,n(R))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},830:function(e,t,n){"use strict";e.exports=n(666)},690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},728:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t=n(705),r=n(377);function a(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 i(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}function o(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,a,i=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}}(e,t)||i(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.")}()}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(t){switch(t){case e.Pressed:return"Pressed";case e.Released:return"Released";case e.Held:return"Held"}}function f(t){switch(t){case"Pressed":return e.Pressed;case"Released":return e.Released;case"Held":return e.Held}}!function(e){e[e.Pressed=1]="Pressed",e[e.Released=2]="Released",e[e.Held=3]="Held"}(e||(e={}));var d,p={users:[]};d||(d={});var h={appMode:l({},{uiMode:"init",netMode:"init"}),signedIn:!1,profile:void 0,gameId:void 0,playerSlot:void 0,joinCode:void 0,gameState:void 0,toasts:[],presence:l({},p),modal:void 0,reactions:{}};function m(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(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 v(e,t){switch(t.type){case"SET_USER_PROFILE":var n;return l(l({},e),{},{profile:t.profile,signedIn:!(null===(n=t.profile)||void 0===n||!n.id)});case"SET_UI_MODE":return l(l({},e),{},{gameState:void 0,presence:l({},p),appMode:l(l({},e.appMode),{},{uiMode:t.mode,netMode:"init"})});case"SET_NET_MODE":return l(l({},e),{},{appMode:l(l({},e.appMode),{},{netMode:t.mode})});case"SET_GAME_INFO":return l(l({},e),{},{gameState:l(l({},e.gameState),t.gameInfo)});case"SET_GAME_ID":return l(l({},e),{},{gameId:t.gameId});case"SET_PLAYER_SLOT":return l(l({},e),{},{playerSlot:t.playerSlot});case"CLEAR_GAME_INFO":return l(l({},e),{},{gameState:void 0});case"SET_GAME_MODE":return l(l({},e),{},{gameState:l(l({},e.gameState),{},{gameMode:t.gameMode})});case"SHOW_TOAST":return l(l({},e),{},{toasts:[].concat(m(e.toasts),[t.toast])});case"DISMISS_TOAST":return l(l({},e),{},{toasts:e.toasts.filter((function(e){return e.id!==t.id}))});case"SET_PRESENCE":return l(l({},e),{},{presence:l({},t.presence)});case"SET_REACTION":return l(l({},e),{},{reactions:l(l({},e.reactions),{},s({},t.clientId,{id:t.reactionId,index:t.index}))});case"CLEAR_REACTION":return l(l({},e),{},{reactions:l(l({},e.reactions),{},s({},t.clientId,void 0))});case"SHOW_MODAL":return l(l({},e),{},{modal:t.modalType});case"CLEAR_MODAL":return l(l({},e),{},{modal:void 0})}}var y,g,b=n(411),w=(0,t.createContext)({state:void 0,dispatch:void 0});function x(){return(0,b.jsx)("div",{className:"tw-w-screen tw-h-screen tw-flex tw-justify-center tw-items-center tw-text-2xl",children:lf("Loading...")})}var k,E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(e)).reduce((function(e,t){return e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")}),"")},S=function(e){return{type:"SET_USER_PROFILE",profile:e}},C=function(e){return{type:"SET_UI_MODE",mode:e}},O=function(e){return{type:"SET_NET_MODE",mode:e}},A=function(e){return{type:"SET_GAME_INFO",gameInfo:e}},_=function(e){return{type:"SET_GAME_ID",gameId:e}},P=function(e){return{type:"SET_PLAYER_SLOT",playerSlot:e}},T=function(e){return{type:"SET_GAME_MODE",gameMode:e}},N=function(e){return{type:"SHOW_TOAST",toast:l({id:E(8)},e)}},I=function(e){return{type:"DISMISS_TOAST",id:e}},L=function(e){return{type:"SET_PRESENCE",presence:e}},j=function(e,t,n){return{type:"SET_REACTION",clientId:e,reactionId:t,index:n}},M=function(e){return{type:"CLEAR_REACTION",clientId:e}},R=function(e){return{type:"SHOW_MODAL",modalType:e}};function B(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 o,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function U(e){var t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||(e.preventDefault(),e.currentTarget.click())}function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return"string"==typeof e})).reduce((function(e,t){return e.concat(t.split(" "))}),[]).map((function(e){return e.trim()})).filter((function(e){return!!e})).join(" ")}!function(e){e[e.Selected=0]="Selected",e[e.Unselected=1]="Unselected",e[e.Waiting=2]="Waiting"}(k||(k={}));var V=function(e){var t=e.id,n=e.className,r=e.ariaLabel,a=e.ariaHidden,i=e.ariaDescribedBy,o=e.ariaControls,s=e.ariaExpanded,u=e.ariaHasPopup,l=e.ariaPosInSet,c=e.ariaSetSize,f=e.ariaSelected,d=e.role,p=e.onClick,h=e.onKeydown,m=e.onBlur,v=e.buttonRef,y=e.title,g=e.label,w=e.leftIcon,x=e.rightIcon,k=e.disabled,E=e.href,S=e.target,C=e.tabIndex,O=D("common-button",n,k&&"disabled");return(0,b.jsx)("button",{id:t,className:O,title:y,ref:v,onClick:k?void 0:function(e){p&&p(),E&&window.open(E,S||"_blank","noopener,noreferrer"),e.stopPropagation(),e.preventDefault()},onKeyDown:h||U,onBlur:m,role:d||"button",tabIndex:C||(k?-1:0),"aria-label":r,"aria-hidden":a,"aria-controls":o,"aria-expanded":s,"aria-haspopup":u,"aria-posinset":l,"aria-setsize":c,"aria-describedby":i,"aria-selected":f,children:(0,b.jsxs)("span",{className:"common-button-flex",children:[w&&(0,b.jsx)("i",{className:w,"aria-hidden":!0}),(0,b.jsx)("span",{className:"common-button-label",children:g}),x&&(0,b.jsx)("i",{className:"right "+x,"aria-hidden":!0})]})})};function F(){var e=(0,t.useContext)(w),n=e.state,r=e.dispatch,a=o((0,t.useState)(!1),2),i=a[0],s=(a[1],n.signedIn,(0,t.useMemo)((function(){return N({type:"info",text:lf("Signing in..."),showSpinner:!0})}),[]));return(0,t.useEffect)((function(){r(i?s:I(s.toast.id))}),[i]),(0,b.jsx)("div",{className:"tw-pt-3 tw-flex tw-flex-col tw-items-center tw-gap-1",children:(0,b.jsx)(V,{className:"primary",label:lf("Sign In"),title:lf("Sign In"),onClick:function(){return r(R("sign-in"))}})})}function z(){var e=(0,t.useContext)(w).dispatch;return(0,b.jsxs)("div",{children:[(0,b.jsx)(V,{label:lf("Host Game"),title:lf("Host Game"),onClick:function(){return e(C("host"))}}),(0,b.jsx)(V,{label:lf("Join Game"),title:lf("Join Game"),onClick:function(){return e(C("join"))}})]})}function H(e){return(H="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)}function W(){W=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof f?t:f,i=Object.create(a.prototype),o=new E(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(a,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw i;return{value:void 0,done:!0}}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var s=w(o,n);if(s){if(s===c)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=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var c={};function f(){}function d(){}function p(){}var h={};s(h,a,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(S([])));v&&v!==t&&n.call(v,a)&&(h=v);var y=p.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(a,i,o,s){var u=l(e[a],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==H(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,s)}))}s(u.arg)}var a;this._invoke=function(e,n){function i(){return new t((function(t,a){r(e,n,t,a)}))}return a=a?a.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var a=r.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,c):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function x(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,s(y,"constructor",p),s(p,"constructor",d),d.displayName=s(p,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,s(e,o,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,a,i){void 0===i&&(i=Promise);var o=new b(u(t,n,r,a),i);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},g(y),s(y,o,"Generator"),s(y,a,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,E.prototype={constructor:E,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(k),!e)for(var t in this)"t"===t.charAt(0)&&n.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 r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,c):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),c},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),k(n),c}},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 a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function q(e,t,n,r,a,i,o){try{var s=e[i](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,a)}function Y(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){q(i,r,a,o,s,"next",e)}function s(e){q(i,r,a,o,s,"throw",e)}o(void 0)}))}}function G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function X(e,t,n){return t&&$(e.prototype,t),n&&$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K(e,t){return(K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function J(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&&K(e,t)}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ee(){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(e){return!1}}function te(e,t){if(t&&("object"===H(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Q(e)}function ne(e){var t=ee();return function(){var n,r=Z(e);if(t){var a=Z(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return te(this,n)}}function re(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Z(e)););return e}function ae(){return(ae="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=re(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(arguments.length<3?e:n):a.value}}).apply(this,arguments)}function ie(e,t,n){return(ie=ee()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&K(a,n.prototype),a}).apply(null,arguments)}function oe(e){var t="function"==typeof Map?new Map:void 0;return(oe=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(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ie(e,arguments,Z(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),K(r,e)})(e)}var se=Object.create(null);se.open="0",se.close="1",se.ping="2",se.pong="3",se.message="4",se.upgrade="5",se.noop="6";var ue=Object.create(null);Object.keys(se).forEach((function(e){ue[se[e]]=e}));for(var le={type:"error",data:"parser error"},ce="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),fe="function"==typeof ArrayBuffer,de=function(e,t){var n=new FileReader;return n.onload=function(){var e=n.result.split(",")[1];t("b"+e)},n.readAsDataURL(e)},pe=function(e,t,n){var r,a=e.type,i=e.data;return ce&&i instanceof Blob?t?n(i):de(i,n):fe&&(i instanceof ArrayBuffer||(r=i,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer))?t?n(i):de(new Blob([i]),n):n(se[a]+(i||""))},he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",me="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ve=0;ve<he.length;ve++)me[he.charCodeAt(ve)]=ve;var ye="function"==typeof ArrayBuffer,ge=function(e,t){if(ye){var n=function(e){var t,n,r,a,i,o=.75*e.length,s=e.length,u=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var l=new ArrayBuffer(o),c=new Uint8Array(l);for(t=0;t<s;t+=4)n=me[e.charCodeAt(t)],r=me[e.charCodeAt(t+1)],a=me[e.charCodeAt(t+2)],i=me[e.charCodeAt(t+3)],c[u++]=n<<2|r>>4,c[u++]=(15&r)<<4|a>>2,c[u++]=(3&a)<<6|63&i;return l}(e);return be(n,t)}return{base64:!0,data:e}},be=function(e,t){return"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e},we=function(e,t){if("string"!=typeof e)return{type:"message",data:be(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:ge(e.substring(1),t)}:ue[n]?e.length>1?{type:ue[n],data:e.substring(1)}:{type:ue[n]}:le},xe=String.fromCharCode(30);function ke(e){if(e)return function(e){for(var t in ke.prototype)e[t]=ke.prototype[t];return e}(e)}ke.prototype.on=ke.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},ke.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},ke.prototype.off=ke.prototype.removeListener=ke.prototype.removeAllListeners=ke.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var a=0;a<r.length;a++)if((n=r[a])===t||n.fn===t){r.splice(a,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},ke.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var a=(n=n.slice(0)).length;r<a;++r)n[r].apply(this,t)}return this},ke.prototype.emitReserved=ke.prototype.emit,ke.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},ke.prototype.hasListeners=function(e){return!!this.listeners(e).length};var Ee="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function Se(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}var Ce=setTimeout,Oe=clearTimeout;function Ae(e,t){t.useNativeTimers?(e.setTimeoutFn=Ce.bind(Ee),e.clearTimeoutFn=Oe.bind(Ee)):(e.setTimeoutFn=setTimeout.bind(Ee),e.clearTimeoutFn=clearTimeout.bind(Ee))}var _e,Pe=function(e){J(n,e);var t=ne(n);function n(e,r,a){var i;return G(this,n),(i=t.call(this,e)).description=r,i.context=a,i.type="TransportError",i}return X(n)}(oe(Error)),Te=function(e){J(n,e);var t=ne(n);function n(e){var r;return G(this,n),(r=t.call(this)).writable=!1,Ae(Q(r),e),r.opts=e,r.query=e.query,r.readyState="",r.socket=e.socket,r}return X(n,[{key:"onError",value:function(e,t,r){return ae(Z(n.prototype),"emitReserved",this).call(this,"error",new Pe(e,t,r)),this}},{key:"open",value:function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}},{key:"close",value:function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}},{key:"send",value:function(e){"open"===this.readyState&&this.write(e)}},{key:"onOpen",value:function(){this.readyState="open",this.writable=!0,ae(Z(n.prototype),"emitReserved",this).call(this,"open")}},{key:"onData",value:function(e){var t=we(e,this.socket.binaryType);this.onPacket(t)}},{key:"onPacket",value:function(e){ae(Z(n.prototype),"emitReserved",this).call(this,"packet",e)}},{key:"onClose",value:function(e){this.readyState="closed",ae(Z(n.prototype),"emitReserved",this).call(this,"close",e)}}]),n}(ke),Ne="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Ie={},Le=0,je=0;function Me(e){var t="";do{t=Ne[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function Re(){var e=Me(+new Date);return e!==_e?(Le=0,_e=e):e+"."+Me(Le++)}for(;je<64;je++)Ie[Ne[je]]=je;function Be(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Ue(e){for(var t={},n=e.split("&"),r=0,a=n.length;r<a;r++){var i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}var De=!1;try{De="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}var Ve=De;function Fe(e){var t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||Ve))return new XMLHttpRequest}catch(e){}if(!t)try{return new(Ee[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function ze(){}var He=null!=new Fe({xdomain:!1}).responseType,We=function(e){J(n,e);var t=ne(n);function n(e){var r;if(G(this,n),(r=t.call(this,e)).polling=!1,"undefined"!=typeof location){var a="https:"===location.protocol,i=location.port;i||(i=a?"443":"80"),r.xd="undefined"!=typeof location&&e.hostname!==location.hostname||i!==e.port,r.xs=e.secure!==a}var o=e&&e.forceBase64;return r.supportsBinary=He&&!o,r}return X(n,[{key:"name",get:function(){return"polling"}},{key:"doOpen",value:function(){this.poll()}},{key:"pause",value:function(e){var t=this;this.readyState="pausing";var n=function(){t.readyState="paused",e()};if(this.polling||!this.writable){var r=0;this.polling&&(r++,this.once("pollComplete",(function(){--r||n()}))),this.writable||(r++,this.once("drain",(function(){--r||n()})))}else n()}},{key:"poll",value:function(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}},{key:"onData",value:function(e){var t=this;(function(e,t){for(var n=e.split(xe),r=[],a=0;a<n.length;a++){var i=we(n[a],t);if(r.push(i),"error"===i.type)break}return r})(e,this.socket.binaryType).forEach((function(e){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose({description:"transport closed by the server"}),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}},{key:"doClose",value:function(){var e=this,t=function(){e.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}},{key:"write",value:function(e){var t=this;this.writable=!1,function(e,t){var n=e.length,r=new Array(n),a=0;e.forEach((function(e,i){pe(e,!1,(function(e){r[i]=e,++a===n&&t(r.join(xe))}))}))}(e,(function(e){t.doWrite(e,(function(){t.writable=!0,t.emitReserved("drain")}))}))}},{key:"uri",value:function(){var e=this.query||{},t=this.opts.secure?"https":"http",n="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=Re()),this.supportsBinary||e.sid||(e.b64=1),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port);var r=Be(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}},{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new qe(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this,r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(function(e,t){n.onError("xhr post error",e,t)}))}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(function(t,n){e.onError("xhr poll error",t,n)})),this.pollXhr=t}}]),n}(Te),qe=function(e){J(n,e);var t=ne(n);function n(e,r){var a;return G(this,n),Ae(Q(a=t.call(this)),r),a.opts=r,a.method=r.method||"GET",a.uri=e,a.async=!1!==r.async,a.data=void 0!==r.data?r.data:null,a.create(),a}return X(n,[{key:"create",value:function(){var e=this,t=Se(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;var r=this.xhr=new Fe(t);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var a in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(a)&&r.setRequestHeader(a,this.opts.extraHeaders[a])}catch(e){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=function(){4===r.readyState&&(200===r.status||1223===r.status?e.onLoad():e.setTimeoutFn((function(){e.onError("number"==typeof r.status?r.status:0)}),0))},r.send(this.data)}catch(t){return void this.setTimeoutFn((function(){e.onError(t)}),0)}"undefined"!=typeof document&&(this.index=n.requestsCount++,n.requests[this.index]=this)}},{key:"onError",value:function(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}},{key:"cleanup",value:function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=ze,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete n.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}},{key:"abort",value:function(){this.cleanup()}}]),n}(ke);function Ye(){for(var e in qe.requests)qe.requests.hasOwnProperty(e)&&qe.requests[e].abort()}qe.requestsCount=0,qe.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",Ye):"function"==typeof addEventListener&&addEventListener("onpagehide"in Ee?"pagehide":"unload",Ye,!1));var Ge="function"==typeof Promise&&"function"==typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},$e=Ee.WebSocket||Ee.MozWebSocket,Xe=(n(362).Buffer,"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()),Qe={websocket:function(e){J(n,e);var t=ne(n);function n(e){var r;return G(this,n),(r=t.call(this,e)).supportsBinary=!e.forceBase64,r}return X(n,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=Xe?{}:Se(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=Xe?new $e(e,t,n):t?new $e(e,t):new $e(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=function(t){return e.onClose({description:"websocket connection closed",context:t})},this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(n){var r=e[n],a=n===e.length-1;pe(r,t.supportsBinary,(function(e){try{t.ws.send(e)}catch(e){}a&&Ge((function(){t.writable=!0,t.emitReserved("drain")}),t.setTimeoutFn)}))},r=0;r<e.length;r++)n(r)}},{key:"doClose",value:function(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}},{key:"uri",value:function(){var e=this.query||{},t=this.opts.secure?"wss":"ws",n="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=Re()),this.supportsBinary||(e.b64=1);var r=Be(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}},{key:"check",value:function(){return!!$e}}]),n}(Te),polling:We},Ke=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Je=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ze(e){var t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));for(var a=Ke.exec(e||""),i={},o=14;o--;)i[Je[o]]=a[o]||"";return-1!=n&&-1!=r&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){var n=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||n.splice(0,1),"/"==t.substr(t.length-1,1)&&n.splice(n.length-1,1),n}(0,i.path),i.queryKey=function(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,i.query),i}var et=function(e){J(n,e);var t=ne(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return G(this,n),r=t.call(this),e&&"object"==typeof e&&(a=e,e=null),e?(e=Ze(e),a.hostname=e.host,a.secure="https"===e.protocol||"wss"===e.protocol,a.port=e.port,e.query&&(a.query=e.query)):a.host&&(a.hostname=Ze(a.host).host),Ae(Q(r),a),r.secure=null!=a.secure?a.secure:"undefined"!=typeof location&&"https:"===location.protocol,a.hostname&&!a.port&&(a.port=r.secure?"443":"80"),r.hostname=a.hostname||("undefined"!=typeof location?location.hostname:"localhost"),r.port=a.port||("undefined"!=typeof location&&location.port?location.port:r.secure?"443":"80"),r.transports=a.transports||["polling","websocket"],r.readyState="",r.writeBuffer=[],r.prevBufferLen=0,r.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},a),r.opts.path=r.opts.path.replace(/\/$/,"")+"/","string"==typeof r.opts.query&&(r.opts.query=Ue(r.opts.query)),r.id=null,r.upgrades=null,r.pingInterval=null,r.pingTimeout=null,r.pingTimeoutTimer=null,"function"==typeof addEventListener&&(r.opts.closeOnBeforeunload&&addEventListener("beforeunload",(function(){r.transport&&(r.transport.removeAllListeners(),r.transport.close())}),!1),"localhost"!==r.hostname&&(r.offlineEventListener=function(){r.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",r.offlineEventListener,!1))),r.open(),r}return X(n,[{key:"createTransport",value:function(e){var t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);var n=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new Qe[e](n)}},{key:"open",value:function(){var e,t=this;if(this.opts.rememberUpgrade&&n.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}},{key:"setTransport",value:function(e){var t=this;this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(e){return t.onClose("transport close",e)}))}},{key:"probe",value:function(e){var t=this,r=this.createTransport(e),a=!1;n.priorWebsocketSuccess=!1;var i=function(){a||(r.send([{type:"ping",data:"probe"}]),r.once("packet",(function(e){if(!a)if("pong"===e.type&&"probe"===e.data){if(t.upgrading=!0,t.emitReserved("upgrading",r),!r)return;n.priorWebsocketSuccess="websocket"===r.name,t.transport.pause((function(){a||"closed"!==t.readyState&&(f(),t.setTransport(r),r.send([{type:"upgrade"}]),t.emitReserved("upgrade",r),r=null,t.upgrading=!1,t.flush())}))}else{var i=new Error("probe error");i.transport=r.name,t.emitReserved("upgradeError",i)}})))};function o(){a||(a=!0,f(),r.close(),r=null)}var s=function(e){var n=new Error("probe error: "+e);n.transport=r.name,o(),t.emitReserved("upgradeError",n)};function u(){s("transport closed")}function l(){s("socket closed")}function c(e){r&&e.name!==r.name&&o()}var f=function(){r.removeListener("open",i),r.removeListener("error",s),r.removeListener("close",u),t.off("close",l),t.off("upgrading",c)};r.once("open",i),r.once("error",s),r.once("close",u),this.once("close",l),this.once("upgrading",c),r.open()}},{key:"onOpen",value:function(){if(this.readyState="open",n.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},{key:"onPacket",value:function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}},{key:"onHandshake",value:function(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}},{key:"resetPingTimeout",value:function(){var e=this;this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((function(){e.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}},{key:"onDrain",value:function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}},{key:"flush",value:function(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){var e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}},{key:"getWritablePackets",value:function(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;for(var e,t=1,n=0;n<this.writeBuffer.length;n++){var r=this.writeBuffer[n].data;if(r&&(t+="string"==typeof(e=r)?function(e){for(var t=0,n=0,r=0,a=e.length;r<a;r++)(t=e.charCodeAt(r))<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(e):Math.ceil(1.33*(e.byteLength||e.size))),n>0&&t>this.maxPayload)return this.writeBuffer.slice(0,n);t+=2}return this.writeBuffer}},{key:"write",value:function(e,t,n){return this.sendPacket("message",e,t,n),this}},{key:"send",value:function(e,t,n){return this.sendPacket("message",e,t,n),this}},{key:"sendPacket",value:function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var a={type:e,data:t,options:n};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),r&&this.once("flush",r),this.flush()}}},{key:"close",value:function(){var e=this,t=function(){e.onClose("forced close"),e.transport.close()},n=function n(){e.off("upgrade",n),e.off("upgradeError",n),t()},r=function(){e.once("upgrade",n),e.once("upgradeError",n)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){e.upgrading?r():t()})):this.upgrading?r():t()),this}},{key:"onError",value:function(e){n.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}},{key:"onClose",value:function(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}},{key:"filterUpgrades",value:function(e){for(var t=[],n=0,r=e.length;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}]),n}(ke);et.protocol=4,et.protocol;var tt,nt=n(398),rt=function(e){J(n,pxt.auth.AuthClient);var t=ne(n);function n(){return G(this,n),t.apply(this,arguments)}return X(n,[{key:"onSignedIn",value:function(){var e=Y(W().mark((function e(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,on(this.firstName());case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onSignedOut",value:function(){var e=Y(W().mark((function e(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,un(void 0);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"onSignInFailed",value:function(){return Promise.resolve()}},{key:"onUserProfileChanged",value:function(){var e=Y(W().mark((function e(){var t;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=this.getState()).profile&&pxt.auth.generateUserProfilePicDataUrl(t.profile),e.next=4,un(t.profile);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onUserPreferencesChanged",value:function(e){return Promise.resolve()}},{key:"onStateCleared",value:function(){return Promise.resolve()}},{key:"onProfileDeleted",value:function(){var e=Y(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"onApiError",value:function(e){return Promise.resolve()}},{key:"firstName",value:function(){var e=this.getState();return pxt.auth.firstName(null==e?void 0:e.profile)}}]),n}();function at(){return it.apply(this,arguments)}function it(){return(it=Y(W().mark((function e(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(pxt.auth.hasIdentity()){e.next=2;break}return e.abrupt("return",void 0);case 2:if(!tt){e.next=4;break}return e.abrupt("return",tt);case 4:return tt=new Promise(function(){var e=Y(W().mark((function e(t,n){var r;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new rt,e.next=3,r.initAsync();case 3:return e.next=5,r.authCheckAsync();case 5:return e.next=7,r.initialUserPreferencesAsync();case 7:t(r);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),e.abrupt("return",tt);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ot(){return(ot=Y(W().mark((function e(){var t,n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,at();case 2:if(t=e.sent,!(n=pxt.Util.parseQueryString(window.location.href)).authcallback){e.next=9;break}return e.next=7,pxt.auth.loginCallbackAsync(n);case 7:e.next=12;break;case 9:return e.next=11,null==t?void 0:t.authCheckAsync();case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function st(e){return ut.apply(this,arguments)}function ut(){return(ut=Y(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,at();case 2:return n=e.sent,e.next=5,null==n?void 0:n.logoutAsync(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function lt(e,t,n){return ct.apply(this,arguments)}function ct(){return(ct=Y(W().mark((function e(t,n,r){var a;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,at();case 2:return a=e.sent,e.next=5,null==a?void 0:a.loginAsync(t,n,r);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ft(){return dt.apply(this,arguments)}function dt(){return(dt=Y(W().mark((function e(){var t;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,at();case 2:return t=e.sent,e.next=5,null==t?void 0:t.authTokenAsync();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var pt,ht,mt=n(362).Buffer,vt="https://makecode-ppe-app-multiplayer-eastus.azurewebsites.net",yt=function(){function e(){G(this,e),this.sock=void 0,this.heartbeatTimer=void 0,this.recvMessageWithJoinTimeout=this.recvMessageWithJoinTimeout.bind(this),this.recvMessageAsync=this.recvMessageAsync.bind(this)}return X(e,[{key:"destroy",value:function(){try{var e;null===(e=this.sock)||void 0===e||e.close(),this.sock=void 0,this.heartbeatTimer&&clearInterval(this.heartbeatTimer)}catch(e){}}},{key:"sendMessage",value:function(e){if(e instanceof mt){var t;null===(t=this.sock)||void 0===t||t.send(e,{},(function(e){e&&console.log("Error sending message",e)}))}else{var n,r=JSON.stringify(e);null===(n=this.sock)||void 0===n||n.send(r,{},(function(e){e&&console.log("Error sending message",e)}))}}},{key:"recvMessageAsync",value:function(){var e=Y(W().mark((function e(t){var n,r,a;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t instanceof ArrayBuffer)){e.next=15;break}n=nt.$.fromBuffer(mt.from(t)),r=n.readUInt16LE(),e.t0=r,e.next=e.t0===ht.Binary.MessageType.Screen?7:e.t0===ht.Binary.MessageType.Input?10:13;break;case 7:return e.next=9,this.recvScreenMessageAsync(n);case 9:return e.abrupt("return",e.sent);case 10:return e.next=12,this.recvInputMessageAsync(n);case 12:return e.abrupt("return",e.sent);case 13:e.next=41;break;case 15:if("string"!=typeof t){e.next=40;break}a=JSON.parse(t),e.t1=a.type,e.next="joined"===e.t1?20:"start-game"===e.t1?23:"presence"===e.t1?26:"reaction"===e.t1?29:"player-joined"===e.t1?32:"player-left"===e.t1?35:38;break;case 20:return e.next=22,this.recvJoinedMessageAsync(a);case 22:return e.abrupt("return",e.sent);case 23:return e.next=25,this.recvStartGameMessageAsync(a);case 25:return e.abrupt("return",e.sent);case 26:return e.next=28,this.recvPresenceMessageAsync(a);case 28:return e.abrupt("return",e.sent);case 29:return e.next=31,this.recvReactionMessageAsync(a);case 31:return e.abrupt("return",e.sent);case 32:return e.next=34,this.recvPlayerJoinedMessageAsync(a);case 34:return e.abrupt("return",e.sent);case 35:return e.next=37,this.recvPlayerLeftMessageAsync(a);case 37:return e.abrupt("return",e.sent);case 38:e.next=41;break;case 40:console.error("Unknown payload type",t);case 41:e.next=46;break;case 43:e.prev=43,e.t2=e.catch(0),console.error("Error processing message",e.t2);case 46:case"end":return e.stop()}}),e,this,[[0,43]])})));return function(t){return e.apply(this,arguments)}}()},{key:"recvMessageWithJoinTimeout",value:function(){var e=Y(W().mark((function e(t,n,r){var a,i,o,s=this;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"string"!=typeof t){e.next=6;break}return a=JSON.parse(t),e.next=5,this.recvMessageAsync(t);case 5:"joined"===a.type&&(null===(i=this.sock)||void 0===i||i.removeAllListeners("message"),null===(o=this.sock)||void 0===o||o.on("message",function(){var e=Y(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.recvMessageAsync(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),clearTimeout(n),r());case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error("Error processing message",e.t0);case 11:return e.next=13,this.recvMessageAsync(t);case 13:case"end":return e.stop()}}),e,this,[[0,8]])})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"connectAsync",value:function(){var e=Y(W().mark((function e(t){var n=this;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var a=setTimeout((function(){r("Timed out connecting to game server"),gt()}),2e4);n.sock=new et(vt,{transports:["websocket"],path:"/mp"}),n.sock.binaryType="arraybuffer",n.sock.on("open",(function(){var r,i,o;console.log("socket opened"),null===(r=n.sock)||void 0===r||r.on("message",function(){var t=Y(W().mark((function t(r){return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.recvMessageWithJoinTimeout(r,a,e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),null===(i=n.sock)||void 0===i||i.on("close",(function(){console.log("socket disconnected"),clearTimeout(n.heartbeatTimer),$t()})),null===(o=n.sock)||void 0===o||o.on("error",(function(e){console.log("socket error",e)})),setTimeout((function(){n.sendMessage({type:"connect",ticket:t,version:ht.VERSION})}),500)}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"hostGameAsync",value:function(){var e=Y(W().mark((function e(t){var n,r,a;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=t.toUpperCase(),t=encodeURIComponent(t),e.next=4,ft();case 4:return n=e.sent,e.next=7,fetch("".concat(vt,"/api/game/host/").concat(t),{credentials:"include",headers:{Authorization:"mkcd "+n}});case 7:return r=e.sent,e.next=10,r.json();case 10:if(null!==(a=e.sent)&&void 0!==a&&a.joinTicket){e.next=13;break}throw new Error("Game server did not return a join ticket");case 13:return e.next=15,this.connectAsync(a.joinTicket);case 15:return e.abrupt("return",a);case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"joinGameAsync",value:function(){var e=Y(W().mark((function e(t){var n,r,a;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=t.toUpperCase().trim(),t=encodeURIComponent(t),e.next=4,ft();case 4:return n=e.sent,e.next=7,fetch("".concat(vt,"/api/game/join/").concat(t),{credentials:"include",headers:{Authorization:"mkcd "+n}});case 7:return r=e.sent,e.next=10,r.json();case 10:if(null!==(a=e.sent)&&void 0!==a&&a.joinTicket){e.next=13;break}throw new Error("Game server did not return a join ticket");case 13:return e.next=15,this.connectAsync(a.joinTicket);case 15:return e.abrupt("return",a);case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"startGameAsync",value:function(){var e=Y(W().mark((function e(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.sendMessage({type:"start-game"});case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"leaveGameAsync",value:function(){var e=Y(W().mark((function e(){var t;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===(t=this.sock)||void 0===t||t.close();case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"sendReactionAsync",value:function(){var e=Y(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.sendMessage({type:"reaction",index:t});case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvJoinedMessageAsync",value:function(){var e=Y(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("Server said we're joined as \"".concat(t.role,'" in slot "').concat(t.slot,'"')),zt(t.gameMode,t.slot);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvStartGameMessageAsync",value:function(){var e=Y(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("Server said start game"),zt("playing");case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPresenceMessageAsync",value:function(){var e=Y(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Server sent presence"),e.next=3,Xt(t.presence);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvReactionMessageAsync",value:function(){var e=Y(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Server sent reaction"),e.next=3,Zt(t.clientId,t.index);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPlayerJoinedMessageAsync",value:function(){var e=Y(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Server sent player joined"),e.next=3,tn(t.clientId);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPlayerLeftMessageAsync",value:function(){var e=Y(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Server sent player joined"),e.next=3,rn(t.clientId);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvScreenMessageAsync",value:function(){var e=Y(W().mark((function e(t){var n,r;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=ht.Binary.unpackScreenMessage(t),r=n.img,this.postToSimFrame({type:"multiplayer",content:"Image",image:{data:r}});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvInputMessageAsync",value:function(){var e=Y(W().mark((function e(t){var n,r,a,i;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=ht.Binary.unpackInputMessage(t),r=n.button,a=n.state,i=n.slot,this.postToSimFrame({type:"multiplayer",content:"Button",clientNumber:i-1,button:r,state:c(a)});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"postToSimFrame",value:function(e){var t,n=document.getElementById("sim-iframe");null==n||null===(t=n.contentWindow)||void 0===t||t.postMessage(e,"*")}}]),e}();function gt(){var e;null===(e=pt)||void 0===e||e.destroy(),pt=void 0}function bt(e){return wt.apply(this,arguments)}function wt(){return(wt=Y(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return gt(),pt=new yt,e.next=4,pt.hostGameAsync(t);case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xt(e){return kt.apply(this,arguments)}function kt(){return(kt=Y(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return gt(),pt=new yt,e.next=4,pt.joinGameAsync(t);case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Et(){return St.apply(this,arguments)}function St(){return(St=Y(W().mark((function e(){var t;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=pt)||void 0===t?void 0:t.startGameAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ct(){return Ot.apply(this,arguments)}function Ot(){return(Ot=Y(W().mark((function e(){var t;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=pt)||void 0===t?void 0:t.leaveGameAsync();case 2:pt&&pt.destroy(),pt=void 0;case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function At(e){return _t.apply(this,arguments)}function _t(){return(_t=Y(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=pt)||void 0===n?void 0:n.sendReactionAsync(t);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pt(e,t){return Tt.apply(this,arguments)}function Tt(){return(Tt=Y(W().mark((function e(t,n){var r,a;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=ht.Binary.packInputMessage(t,f(n)),null===(r=pt)||void 0===r||r.sendMessage(a);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nt(e){return It.apply(this,arguments)}function It(){return(It=Y(W().mark((function e(t){var n,r;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=ht.Binary.packScreenMessage(mt.from(t)),null===(n=pt)||void 0===n||n.sendMessage(r);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Lt(){pt&&pt.destroy(),pt=void 0}function jt(e){return Mt.apply(this,arguments)}function Mt(){return(Mt=Y(W().mark((function e(t){var n,r;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=N({type:"info",text:lf("Connecting..."),showSpinner:!0}),e.prev=1,g(C("host")),g(O("connecting")),g(n),e.next=7,bt(t);case 7:r=e.sent,console.log(r),g(N({type:"success",text:lf("Connected!"),timeoutMs:5e3})),g(A(r)),g(_(t)),g(O("connected")),e.next=20;break;case 15:e.prev=15,e.t0=e.catch(1),console.log("error",e.t0),g(O("init")),g(N({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3}));case 20:return e.prev=20,g(I(n.toast.id)),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[1,15,20,23]])})))).apply(this,arguments)}function Rt(e){return Bt.apply(this,arguments)}function Bt(){return(Bt=Y(W().mark((function e(t){var n,r;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=N({type:"info",text:lf("Connecting..."),showSpinner:!0}),e.prev=1,g(C("join")),g(O("connecting")),g(n),e.next=7,xt(t);case 7:r=e.sent,console.log(r),g(N({type:"success",text:lf("Connected!"),timeoutMs:5e3})),g(A(r)),g(O("connected")),e.next=19;break;case 14:e.prev=14,e.t0=e.catch(1),console.log("error",e.t0),g(O("init")),g(N({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3}));case 19:return e.prev=19,g(I(n.toast.id)),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[1,14,19,22]])})))).apply(this,arguments)}function Ut(){return Dt.apply(this,arguments)}function Dt(){return(Dt=Y(W().mark((function e(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Et();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:return e.prev=7,e.finish(7);case 9:case"end":return e.stop()}}),e,null,[[0,5,7,9]])})))).apply(this,arguments)}function Vt(){return Ft.apply(this,arguments)}function Ft(){return(Ft=Y(W().mark((function e(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Ct();case 3:g({type:"CLEAR_GAME_INFO"}),e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:return e.prev=8,e.finish(8);case 10:case"end":return e.stop()}}),e,null,[[0,6,8,10]])})))).apply(this,arguments)}function zt(e,t){return Ht.apply(this,arguments)}function Ht(){return(Ht=Y(W().mark((function e(t,n){var r,a;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(null===(r=y.gameState)||void 0===r?void 0:r.gameMode)!==t&&(g(T(t)),"lobby"===t&&(a="host"===y.appMode.uiMode?"host-lobby":"join-lobby",g(R(a))),"playing"===t&&(g({type:"CLEAR_MODAL"}),g(N({type:"info",text:lf("Game started!"),timeoutMs:5e3})))),n&&g(P(n))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wt(e,t,n){return qt.apply(this,arguments)}function qt(){return(qt=Y(W().mark((function e(t,n,r){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,lt(t,n,r);case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:return e.prev=7,e.finish(7);case 9:case"end":return e.stop()}}),e,null,[[0,5,7,9]])})))).apply(this,arguments)}function Yt(){return Gt.apply(this,arguments)}function Gt(){return(Gt=Y(W().mark((function e(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Lt(),e.next=4,st();case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:return e.prev=8,e.finish(8);case 10:case"end":return e.stop()}}),e,null,[[0,6,8,10]])})))).apply(this,arguments)}function $t(){try{g(C("home")),g(N({type:"error",text:lf("Game disconnected."),timeoutMs:5e3}))}catch(e){}}function Xt(e){return Qt.apply(this,arguments)}function Qt(){return(Qt=Y(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{g(L(t))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Kt(e){return Jt.apply(this,arguments)}function Jt(){return(Jt=Y(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,At(t);case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:return e.prev=7,e.finish(7);case 9:case"end":return e.stop()}}),e,null,[[0,5,7,9]])})))).apply(this,arguments)}function Zt(e,t){return en.apply(this,arguments)}function en(){return(en=Y(W().mark((function e(t,n){var r;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{r=E(),g(j(t,r,n)),setTimeout((function(){var e;(null===(e=y.reactions[t])||void 0===e?void 0:e.id)===r&&g(M(t))}),1e3)}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tn(e){return nn.apply(this,arguments)}function nn(){return(nn=Y(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(n=y.presence.users.find((function(e){return e.id===t})))&&g(N({type:"info",text:lf("{0} joined the game.",n.name),timeoutMs:5e3}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rn(e){return an.apply(this,arguments)}function an(){return(an=Y(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(n=y.presence.users.find((function(e){return e.id===t})))&&g(N({type:"info",text:lf("{0} left the game.",n.name),timeoutMs:5e3}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function on(e){return sn.apply(this,arguments)}function sn(){return(sn=Y(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{g(N({type:"success",text:lf("Welcome {0}!",t),timeoutMs:5e3}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function un(e){return ln.apply(this,arguments)}function ln(){return(ln=Y(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{g(t?S(t):{type:"SET_USER_PROFILE",profile:void 0}),g(C("home"))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(e){var t;e.VERSION=2,function(e){var t;!function(e){e[e.Input=1]="Input",e[e.Screen=2]="Screen"}(t||(t={})),e.MessageType=t,e.packInputMessage=function(e,n){var r=new nt.$;return r.writeUInt16LE(t.Input),r.writeUInt16LE(e),r.writeUInt8(n),r.toBuffer()},e.unpackInputMessage=function(e){return{button:e.readUInt16LE(),state:e.readUInt8(),slot:e.readUInt8()}},e.packScreenMessage=function(e){var n=new nt.$;return n.writeUInt16LE(t.Screen),n.writeBuffer(e),n.toBuffer()},e.unpackScreenMessage=function(e){return{img:e.readBuffer()}}}(t||(t=e.Binary||(e.Binary={})))}(ht||(ht={}));var cn=function(e){var n=e.id,r=e.className,a=e.role,i=e.ariaHidden,s=e.ariaLabel,u=e.initialValue,l=e.label,c=e.title,f=e.placeholder,d=e.icon,p=e.iconTitle,h=e.disabled,m=e.type,v=e.readOnly,y=e.autoComplete,g=e.selectOnClick,w=e.onChange,x=e.onEnterKey,k=e.onIconClick,E=e.onBlur,S=e.handleInputRef,C=e.preserveValueOnBlur,O=o(t.useState(void 0),2),A=O[0],_=O[1];return(0,b.jsxs)("div",{className:D("common-input-wrapper",h&&"disabled",r),children:[l&&(0,b.jsx)("label",{className:"common-input-label",htmlFor:n,children:l}),(0,b.jsxs)("div",{className:"common-input-group",children:[(0,b.jsx)("input",{id:n,className:D("common-input",d&&"has-icon"),title:c,role:a||"textbox",tabIndex:h?-1:0,"aria-label":s,"aria-hidden":i,type:m||"text",placeholder:f,value:void 0!==A?A:u||"",readOnly:!!v,onClick:function(e){g&&e.target.select()},onChange:function(e){var t=e.target.value;v||A===t||_(t),w&&w(t)},onKeyDown:function(t){var n="number"==typeof t.which?t.which:t.keyCode;(13===n||e.treatSpaceAsEnter&&32===n)&&x&&(t.preventDefault(),x(A))},onBlur:function(){E&&E(A),C||_(void 0)},autoComplete:y?"":"off",autoCorrect:y?"":"off",autoCapitalize:y?"":"off",spellCheck:y,disabled:h,ref:S}),d&&(k?(0,b.jsx)(V,{leftIcon:d,title:p,disabled:h,onClick:function(){k&&k(A)}}):(0,b.jsx)("i",{className:d,"aria-hidden":!0}))]})]})};function fn(){var e=(0,t.useContext)(w).state.appMode.netMode,n=(0,t.useRef)(null),r=function(){var e=Y(W().mark((function e(){var t;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.current){e.next=8;break}if(!(t=pxt.Cloud.parseScriptId(n.current.value))){e.next=7;break}return e.next=5,jt(t);case 5:e.next=8;break;case 7:g(N({type:"error",text:lf("Invalid share code"),timeoutMs:5e3}));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,b.jsxs)("div",{className:"tw-mt-2 tw-h-max tw-flex-row",children:[(0,b.jsx)("div",{className:"tw-text-2xl tw-font-bold",children:"Hosting a Game"}),"init"===e&&(0,b.jsxs)("div",{className:"tw-flex tw-flex-row tw-gap-1 tw-items-end",children:[(0,b.jsx)(cn,{label:lf("Game URL or Share Code"),title:lf("Game URL or Share Code"),autoComplete:!1,handleInputRef:n,preserveValueOnBlur:!0,onEnterKey:r}),(0,b.jsx)(V,{className:"teal",label:lf("Host"),title:lf("Host"),onClick:r})]})]})}function dn(){var e=(0,t.useContext)(w).state.appMode.netMode,n=(0,t.useRef)(null),r=function(){var e=Y(W().mark((function e(){var t;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.current){e.next=5;break}if(!(t=n.current.value.toUpperCase().trim())){e.next=5;break}return e.next=5,Rt(t);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,b.jsxs)("div",{className:"tw-mt-2",children:[(0,b.jsx)("div",{className:"tw-text-2xl tw-font-bold",children:"Joining a Game"}),"init"===e&&(0,b.jsxs)("div",{className:"tw-flex tw-flex-row tw-gap-1 tw-items-end",children:[(0,b.jsx)(cn,{label:lf("Join Code"),title:lf("Join Code"),autoComplete:!1,handleInputRef:n,preserveValueOnBlur:!0,onEnterKey:r}),(0,b.jsx)(V,{className:"teal",label:lf("Join"),title:lf("Join"),onClick:r})]})]})}function pn(){var e=(0,t.useContext)(w).state,n=e.gameId,r=e.playerSlot,a=(0,t.useRef)(null),i=["background-color=ED3636&button-stroke=8d2525&button-fill=0b0b0b","background-color=4E4EE9&button-stroke=3333a1&button-fill=0b0b0b","background-color=FFDF1A&button-stroke=c1a916&button-fill=0b0b0b","background-color=4EB94E&button-stroke=245d24&button-fill=0b0b0b"][(r||0)-1],o=1==r,s=["single=1","nofooter=1","fullscreen=1",i&&"simParams=".concat(encodeURIComponent(i))].filter((function(e){return!!e}));o?s.push("id=".concat(n||"69052-09321-39220-20264"),"mp=server"):s.push("code=".concat(encodeURIComponent("multiplayer.init()")),"mp=client");var u=function(){var e=Y(W().mark((function e(t){var n,r;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.image,r=n.data,e.next=4,Nt(r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=Y(W().mark((function e(t){var n,r;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.button,r=t.state,e.next=3,Pt(n,r);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=function(e){var t=e.data,n=t.broadcast,r=t.origin,a=t.content;n&&("client"===r&&"Button"===a?l(t):"server"===r&&"Image"===a&&u(t))};(0,t.useEffect)((function(){return window.addEventListener("message",c),function(){return window.removeEventListener("message",c)}}),[]);var f="".concat(pxt.webConfig.runUrl,"?").concat(s.join("&"));return(0,b.jsx)("div",{id:"sim-container",className:"tw-grow",children:(0,b.jsx)("iframe",{id:"sim-iframe",ref:a,src:f,allowFullScreen:!0,className:"tw-h-[calc(100vh-26rem)] tw-w-[calc(100vw-6rem)]",sandbox:"allow-popups allow-forms allow-scripts allow-same-origin",title:lf("Arcade Game Simulator")})})}var hn={spawnFreq:2,minSpeed:100,maxSpeed:105,maxAngle:15,lifetime:5e3,scale:1.5},mn=function(e,t,n){return n},vn=[{name:lf("smile"),emoji:"😃",config:hn,shade:mn},{name:lf("laugh"),emoji:"🤣",config:hn,shade:mn},{name:lf("surprise"),emoji:"😯",config:hn,shade:mn},{name:lf("cry"),emoji:"😫",config:hn,shade:mn},{name:lf("scared"),emoji:"😬",config:hn,shade:mn},{name:lf("angry"),emoji:"😠",config:hn,shade:mn}];function yn(e){var t=e.particle,n=t.vars,r=vn[t.consts.index].emoji;return(0,b.jsx)("div",{className:"tw-fixed",style:{left:t.x+n.xOffset,top:t.y+n.yOffset,transform:"scale(".concat(n.scale,")"),zIndex:100},children:r})}function gn(e){var n=(0,t.useContext)(w).state,r=e.clientId,a=n.reactions[r],i=o((0,t.useState)(0),2)[1],s=(0,t.useCallback)((function(){return i((function(e){return e+1}))}),[]),u=(0,t.useRef)(0),l=o((0,t.useState)([]),2),c=l[0],f=l[1],d=function(){var e=o((0,t.useState)({width:0,height:0}),2),n=e[0],r=e[1];return(0,t.useEffect)((function(){var e=function(){r({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[r]),n}(),p=(0,t.useMemo)((function(){var t,n;return null!==(t=null===(n=e.parentRef)||void 0===n?void 0:n.getBoundingClientRect())&&void 0!==t?t:{left:0,top:0,width:0,height:0}}),[e.parentRef,d]),h=(0,t.useCallback)((function(e){c.forEach((function(t){var n=vn[t.consts.index];if(e-t.consts.start>n.config.lifetime)f((function(e){return e.filter((function(e){return e.id!==t.id}))}));else{var r=vn[t.consts.index];t.y-=t.vars.speed/60,t.x+=t.dx/60,t.vars=r.shade(e,t.consts,t.vars)}s()})),u.current=requestAnimationFrame(h)}),[c,f]);return(0,t.useEffect)((function(){return u.current=requestAnimationFrame(h),function(){return window.cancelAnimationFrame(u.current)}}),[h]),(0,t.useEffect)((function(){if(a&&!(c.length>=20)){var e=vn[a.index];if(!c.find((function(e){return e.id===a.id}))){var t={index:a.index,start:performance.now(),seed:100*Math.random()},n=e.shade(0,t,{xOffset:0,yOffset:0,rotation:0,scale:e.config.scale,speed:e.config.minSpeed+Math.random()*(e.config.maxSpeed-e.config.minSpeed)}),r={id:a.id,x:p.left+p.width/4,y:p.top,dx:40*Math.random()-20,consts:t,vars:n};f((function(e){return[].concat(m(e),[r])}))}}}),[a,c,f,p]),(0,b.jsx)("div",{children:(0,b.jsx)("div",{className:"tw-flex tw-flex-row",children:c.map((function(e){return(0,b.jsx)(yn,{particle:e},e.id)}))})})}function bn(){var e=(0,t.useContext)(w).state.presence,n=(0,t.useRef)([]),r=(0,t.useMemo)((function(){return e.users.filter((function(e){return e.slot<5}))}),[e]),a=((0,t.useMemo)((function(){return e.users.filter((function(e){return e.slot>=5}))}),[e]),function(e){switch(e){case 1:return"tw-border-[#ED3636] tw-bg-red-300";case 2:return"tw-border-[#4E4EE9] tw-bg-blue-300";case 3:return"tw-border-[#C1A916] tw-bg-yellow-300";case 4:return"tw-border-[#4EB94E] tw-bg-green-300";default:return"tw-border-neutral-600 tw-bg-neutral-300"}}),i=function(e){return e&&e<5?"tw-border-2":"tw-border-0"};return(0,b.jsx)("div",{className:"tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-2",children:[1,2,3,4].map((function(e){var t=r.find((function(t){return t.slot===e}));return(0,b.jsxs)("div",{ref:function(t){return n.current[e]=t},className:"tw-flex tw-select-none tw-text-black tw-font-bold tw-rounded-full tw-h-11 tw-w-11 tw-justify-center tw-items-center ".concat(a(null==t?void 0:t.slot)," ").concat(i(null==t?void 0:t.slot)),children:[null==t?void 0:t.slot,t&&(0,b.jsx)(gn,{clientId:t.id,parentRef:n.current[e]})]},e)}))})}function wn(){var e=o((0,t.useState)(!1),2),n=e[0],r=e[1],a=function(){var e=Y(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Kt(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,b.jsxs)("div",{children:[n&&(0,b.jsx)("div",{className:"tw-flex tw-flex-row tw-gap-1 tw-p-2 tw-absolute tw-translate-x-[-5.8rem] tw-translate-y-[-120%] tw-bg-white tw-shadow-md",children:vn.map((function(e,t){return(0,b.jsx)("div",{className:"tw-flex tw-items-center tw-justify-center tw-cursor-pointer tw-select-none tw-border tw-rounded-full tw-border-slate-300 tw-bg-neutral-50 hover:tw-scale-125 tw-ease-linear tw-duration-[50ms] active:tw-bg-neutral-200 tw-h-8 tw-w-8 tw-text-2xl",onClick:function(){return a(t)},children:e.emoji},t)}))}),(0,b.jsx)("button",{id:"reactionsButton","aria-label":lf("reactions"),className:"tw-flex tw-border-0 tw-rounded-full tw-h-11 tw-w-11 tw-items-center tw-justify-center tw-text-[2rem] tw-cursor-pointer hover:tw-scale-110 tw-ease-linear tw-duration-[50ms]",onClick:function(){return r(!n)},children:(0,b.jsx)("span",{role:"img","aria-labelledby":"reactionsButton",children:"🙂"})})]})}function xn(e){var n,r,a,i=(0,t.useContext)(w).state,o=i.appMode,s=o.netMode,u=(o.uiMode,function(){var e=Y(W().mark((function e(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.leavegame"),e.next=3,Vt();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());return(0,b.jsxs)("div",{children:["connecting"===s&&(0,b.jsx)("div",{className:"tw-text-lg tw-font-bold tw-mt-5",children:lf("Connecting...")}),(null===(n=i.gameState)||void 0===n?void 0:n.gameMode)&&(0,b.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center",children:[(0,b.jsx)(pn,{}),(0,b.jsxs)("div",{className:"tw-flex tw-flex-row tw-space-x-2 tw-w-full",children:[(0,b.jsx)("div",{children:(null===(r=i.gameState)||void 0===r?void 0:r.joinCode)&&"".concat(lf("Join Code"),": ").concat(null===(a=i.gameState)||void 0===a?void 0:a.joinCode)}),(0,b.jsx)("div",{className:"tw-flex-grow"}),(0,b.jsx)("div",{children:lf("Keyboard Controls")})]}),(0,b.jsxs)("div",{className:"tw-flex tw-flex-row tw-space-x-2 tw-items-center tw-align-middle tw-justify-center tw-mt-3",children:[(0,b.jsx)(wn,{}),(0,b.jsx)(bn,{})]}),(0,b.jsx)("div",{children:(0,b.jsx)(V,{className:"gray tw-mt-5",label:lf("Leave Game"),title:lf("Leave Game"),onClick:u})})]})]})}function kn(){var e=(0,t.useContext)(w).state.appMode,n=e.uiMode,r=e.netMode;return(0,b.jsxs)("div",{className:"tw-pt-3 tw-pb-8 tw-flex tw-flex-col tw-items-center tw-gap-1 tw-h-screen",children:["home"===n&&(0,b.jsx)(z,{}),"init"===r&&"host"===n&&(0,b.jsx)(fn,{}),"init"===r&&"join"===n&&(0,b.jsx)(dn,{}),("connecting"===r||"connected"===r)&&(0,b.jsx)(xn,{})]})}var En=function(e){var t,n,r=e.id,a=e.className,i=e.role,o=e.ariaHidden,s=e.ariaLabel,u=e.childTabStopId,l=e.children,c=e.onItemReceivedFocus,f=e.useUpAndDownArrowKeys;return(0,b.jsx)("div",{id:r,className:a,role:i,tabIndex:u?void 0:0,onKeyDown:function(e){var r;if(null!==(r=t)&&void 0!==r&&r.length){var a=document.activeElement,i=t.indexOf(a),o=function(e){e.focus(),c&&c(e)};-1===i&&a!==n||("Enter"===e.key||" "===e.key?(e.preventDefault(),e.stopPropagation(),a.click?a.click():a.dispatchEvent(new Event("click"))):e.key===(f?"ArrowDown":"ArrowRight")?(i===t.length-1||a===n?o(t[0]):o(t[i+1]),e.preventDefault(),e.stopPropagation()):e.key===(f?"ArrowUp":"ArrowLeft")?(o(0===i||a===n?t[t.length-1]:t[Math.max(i-1,0)]),e.preventDefault(),e.stopPropagation()):"Home"===e.key?(o(t[0]),e.preventDefault(),e.stopPropagation()):"End"===e.key&&(o(t[t.length-1]),e.preventDefault(),e.stopPropagation()))}},ref:function(e){if(e&&!n){n=e;var r=e.querySelectorAll('[tabindex]:not([tabindex="-1"]),[data-isfocusable]');t=[];var a,i=B(r.values());try{for(i.s();!(a=i.n()).done;){var o=a.value;t.push(o),o.setAttribute("tabindex","-1"),o.setAttribute("data-isfocusable","true")}}catch(e){i.e(e)}finally{i.f()}if(u){var s=n.querySelector("#"+u);s&&s.setAttribute("tabindex","0")}}},"aria-hidden":o,"aria-label":s,children:l})},Sn=function(e){return(0,b.jsx)(En,l(l({},e),{},{role:"menubar",className:D("common-menubar",e.className)}))},Cn=function(e){var n,r=e.children,a=e.id,i=e.className,s=e.onEscape,u=e.arrowKeyNavigation,l=e.dontStealFocus,c=e.includeOutsideTabOrder,f=o(t.useState(!1),2),d=f[0],p=f[1],h=function(){return function(e){var t,n=[],r=B(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.push(a)}}catch(e){r.e(e)}finally{r.f()}return n}(c?n.querySelectorAll("[tabindex]"):n.querySelectorAll('[tabindex]:not([tabindex="-1"])'))};return(0,b.jsx)("div",{id:a,className:D("common-focus-trap",i),ref:function(e){e&&(n=e,l||d||e.contains(document.activeElement)||!h().length||(n.focus(),p(!0)))},onKeyDown:function(e){if(n){var t=function(t,n){var r=h();if(r.length){var a=r.indexOf(e.target);t?n?r[r.length-1].focus():a===r.length-1?r[0].focus():r[a+1].focus():n?r[0].focus():0===a?r[r.length-1].focus():r[Math.max(a-1,0)].focus(),e.preventDefault(),e.stopPropagation()}};"Escape"===e.key?(s(),e.preventDefault(),e.stopPropagation()):"Tab"===e.key?e.shiftKey?t(!1,!1):t(!0,!1):u&&("ArrowDown"===e.key?t(!0,!1):"ArrowUp"===e.key?t(!1,!1):"Home"===e.key?t(!1,!0):"End"===e.key&&t(!0,!0))}},tabIndex:-1,children:r})},On=function(e){var n,r,a=e.id,i=e.className,s=e.ariaHidden,u=e.ariaLabel,c=e.role,f=e.items,d=e.label,p=e.title,h=e.icon,m=e.tabIndex,v=o(t.useState(!1),2),y=v[0],g=v[1],w=D("common-menu-dropdown",i),x=a+"-menu";return(0,b.jsxs)("div",{className:w,ref:function(e){e&&(n=e)},onBlur:function(e){n&&y&&!n.contains(e.relatedTarget)&&g(!1)},children:[(0,b.jsx)(V,{id:a,label:d,tabIndex:m,buttonRef:function(e){e&&(r=e)},title:p,leftIcon:h,role:c||"menuitem",className:D("menu-button",y&&"expanded"),onClick:function(){g(!y)},ariaHasPopup:"true",ariaExpanded:y,ariaControls:y?x:void 0,ariaLabel:u,ariaHidden:s}),y&&(0,b.jsx)("div",{role:"menu",className:"common-menu-dropdown-pane",tabIndex:0,id:x,"aria-labelledby":a,children:(0,b.jsx)(Cn,{arrowKeyNavigation:!0,onEscape:function(){g(!1),r&&r.focus()},children:(0,b.jsx)("ul",{role:"presentation",children:f.map((function(e,t){return(0,b.jsx)("li",{role:"presentation",children:(0,b.jsx)(V,l(l({},e),{},{className:D("common-menu-dropdown-item",e.className),onClick:function(){g(!1),e.onClick()},role:"menuitem",ariaPosInSet:t+1,ariaSetSize:f.length}))},t)}))})})})]})};function An(){var e,n,r=(0,t.useContext)(w),a=r.state,i=r.dispatch,o=a.signedIn,s=a.profile,u=pxt.auth.hasIdentity(),l=null===(e=pxt.appTarget)||void 0===e?void 0:e.appTheme,c=function(){pxt.tickEvent("mp.settingsmenu.help"),window.open("")},f=function(){pxt.tickEvent("mp.settingsmenu.reportabuse"),i(R("report-abuse"))},d=function(){var e;pxt.tickEvent("mp.home");var t,n,r=null===(e=pxt.webConfig)||void 0===e?void 0:e.relprefix.substr(0,pxt.webConfig.relprefix.length-3);pxt.appTarget.appTheme.homeUrl&&r?((null===(t=pxt.appTarget.appTheme.homeUrl)||void 0===t?void 0:t.lastIndexOf("/"))===(null===(n=pxt.appTarget.appTheme.homeUrl)||void 0===n?void 0:n.length)-1&&(r=r.substr(1)),window.open(pxt.appTarget.appTheme.homeUrl+r,"_self")):window.open(pxt.appTarget.appTheme.homeUrl,"_self")},p=function(){pxt.tickEvent("mp.signin"),i(R("sign-in"))},h=function(){var e=Y(W().mark((function e(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.usermenu.signout"),e.next=3,Yt();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var e,t,n,r;return null!==(e=null==s||null===(t=s.idp)||void 0===t?void 0:t.pictureUrl)&&void 0!==e?e:null==s||null===(n=s.idp)||void 0===n||null===(r=n.picture)||void 0===r?void 0:r.dataUrl},v=function(){var e=[];return e.push({id:"help",title:lf("Help"),label:lf("Help"),onClick:c}),e.push({id:"report",title:lf("Report Abuse"),label:lf("Report Abuse"),onClick:f}),e}();return(0,b.jsxs)(Sn,{className:"tw-h-[var(--header-height)] tw-bg-tertiary-color tw-text-white tw-flex tw-flex-grow-0 tw-flex-shrink-0 tw-align-middle tw-justify-center tw-items-center tw-z-[var(--above-frame-zindex)] tw-text-[2.2rem]",ariaLabel:lf("Header"),children:[(0,b.jsxs)("div",{className:"tw-select-none tw-text-lg tw-font-bold tw-font-segoueUI tw-flex tw-align-middle tw-p-[var(--header-padding-top)]",children:[function(e){var t=e.organizationWideLogo;return(0,b.jsx)("div",{className:"tw-flex",children:t?(0,b.jsx)("img",{className:"tw-h-6 tw-mx-0 tw-my-1",src:t,alt:lf("{0} Logo",e.organization)}):(0,b.jsx)("span",{className:"tw-h-6 tw-mx-0 tw-my-1",children:e.organization})})}(l),(n=l,(0,b.jsx)("div",{className:"tw-flex tw-pt-[2px] tw-ml-3 before:tw-relative before:tw-border-l-white before:tw-border-l-[2px] before:tw-border-solid tw-cursor-pointer",onClick:d,children:n.useTextLogo?[(0,b.jsx)("span",{className:"tw-ml-3 tw-hidden sm:tw-flex",onClick:d,children:n.organizationText},"org-name"),(0,b.jsx)("span",{className:"tw-ml-3 tw-flex sm:tw-hidden",onClick:d,children:n.organizationShortText||n.organizationText},"org-name-short")]:n.logo||n.portraitLogo?(0,b.jsx)("img",{className:"logo",src:n.logo||n.portraitLogo,alt:lf("{0} Logo",n.boardName)}):(0,b.jsxs)("span",{className:"name",children:[" ",n.boardName]})}))]}),(0,b.jsx)("div",{className:"tw-select-none tw-flex-grow"}),(0,b.jsxs)("div",{className:"tw-select-none tw-text-lg tw-font-bold tw-font-segoueUI tw-flex tw-items-center tw-pr-[var(--header-padding-top)] tw-h-full",children:[(null==v?void 0:v.length)>0&&(0,b.jsx)(On,{className:"h-full",id:"settings-help",title:lf("Settings menu"),icon:"fas fa-cog large",items:v}),u&&function(){var e=[];o&&e.push({id:"signout",title:lf("Sign Out"),label:lf("Sign Out"),onClick:h});var t=m()?(0,b.jsx)("div",{className:"tw-flex tw-align-middle tw-justify-center tw-items-center tw-h-full",children:(0,b.jsx)("img",{src:m(),className:"tw-border-solid tw-border-2 tw-border-white tw-rounded-[100%] tw-w-10 tw-h-10",alt:lf("Profile Image"),referrerPolicy:"no-referrer","aria-hidden":"true"})}):void 0,n=(0,b.jsx)("span",{children:(0,b.jsx)("div",{className:"tw-h-10 tw-w-10 tw-rounded-[100%] tw-border-solid tw-border-2 tw-border-white tw-bg-[#028B9B] tw-flex tw-items-center tw-justify-center tw-text-base","aria-hidden":"true",children:s?pxt.auth.userInitials(s):""})});return(0,b.jsx)("div",{className:"tw-h-full",children:o?(0,b.jsx)(On,{id:"profile-dropdown",items:e,label:t||n,title:lf("Profile Settings")}):(0,b.jsx)(V,{className:"tw-p-[0.6rem] tw-h-4/5 tw-m-2 tw-mr-4 tw-flex-row-reverse tw-font-segoueUI tw-font-medium tw-align-middle",rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:p})})}()]})]})}var _n={prefix:"far",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M175 175C184.4 165.7 199.6 165.7 208.1 175L255.1 222.1L303 175C312.4 165.7 327.6 165.7 336.1 175C346.3 184.4 346.3 199.6 336.1 208.1L289.9 255.1L336.1 303C346.3 312.4 346.3 327.6 336.1 336.1C327.6 346.3 312.4 346.3 303 336.1L255.1 289.9L208.1 336.1C199.6 346.3 184.4 346.3 175 336.1C165.7 327.6 165.7 312.4 175 303L222.1 255.1L175 208.1C165.7 199.6 165.7 184.4 175 175V175zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"]},Pn={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]};function Tn(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 Nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(n),!0).forEach((function(t){jn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function In(e){return(In="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)}function Ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mn(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,a,i=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}}(e,t)||Bn(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.")}()}function Rn(e){return function(e){if(Array.isArray(e))return Un(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Bn(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 Bn(e,t){if(e){if("string"==typeof e)return Un(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)?Un(e,t):void 0}}function Un(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}var Dn=function(){},Vn={},Fn={},zn=null,Hn={mark:Dn,measure:Dn};try{"undefined"!=typeof window&&(Vn=window),"undefined"!=typeof document&&(Fn=document),"undefined"!=typeof MutationObserver&&(zn=MutationObserver),"undefined"!=typeof performance&&(Hn=performance)}catch(e){}var Wn,qn,Yn,Gn,$n,Xn=(Vn.navigator||{}).userAgent,Qn=void 0===Xn?"":Xn,Kn=Vn,Jn=Fn,Zn=zn,er=Hn,tr=(Kn.document,!!Jn.documentElement&&!!Jn.head&&"function"==typeof Jn.addEventListener&&"function"==typeof Jn.createElement),nr=~Qn.indexOf("MSIE")||~Qn.indexOf("Trident/"),rr="svg-inline--fa",ar="data-fa-i2svg",ir="data-fa-pseudo-element",or="data-prefix",sr="data-icon",ur="fontawesome-i2svg",lr=["HTML","HEAD","STYLE","SCRIPT"],cr=function(){try{return!0}catch(e){return!1}}(),fr="classic",dr="sharp",pr=[fr,dr];function hr(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e.classic}})}var mr=hr((jn(Wn={},fr,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),jn(Wn,dr,{fa:"solid",fass:"solid","fa-solid":"solid"}),Wn)),vr=hr((jn(qn={},fr,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),jn(qn,dr,{solid:"fass"}),qn)),yr=hr((jn(Yn={},fr,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),jn(Yn,dr,{fass:"fa-solid"}),Yn)),gr=hr((jn(Gn={},fr,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),jn(Gn,dr,{"fa-solid":"fass"}),Gn)),br=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,wr="fa-layers-text",xr=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,kr=hr((jn($n={},fr,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),jn($n,dr,{900:"fass"}),$n)),Er=[1,2,3,4,5,6,7,8,9,10],Sr=Er.concat([11,12,13,14,15,16,17,18,19,20]),Cr=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Or="duotone-group",Ar="primary",_r="secondary",Pr=new Set;Object.keys(vr.classic).map(Pr.add.bind(Pr)),Object.keys(vr.sharp).map(Pr.add.bind(Pr));var Tr=[].concat(pr,Rn(Pr),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Or,"swap-opacity",Ar,_r]).concat(Er.map((function(e){return"".concat(e,"x")}))).concat(Sr.map((function(e){return"w-".concat(e)}))),Nr=Kn.FontAwesomeConfig||{};Jn&&"function"==typeof Jn.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=Mn(e,2),n=t[0],r=t[1],a=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=Jn.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=a&&(Nr[r]=a)}));var Ir={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:rr,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Nr.familyPrefix&&(Nr.cssPrefix=Nr.familyPrefix);var Lr=Nn(Nn({},Ir),Nr);Lr.autoReplaceSvg||(Lr.observeMutations=!1);var jr={};Object.keys(Ir).forEach((function(e){Object.defineProperty(jr,e,{enumerable:!0,set:function(t){Lr[e]=t,Mr.forEach((function(e){return e(jr)}))},get:function(){return Lr[e]}})})),Object.defineProperty(jr,"familyPrefix",{enumerable:!0,set:function(e){Lr.cssPrefix=e,Mr.forEach((function(e){return e(jr)}))},get:function(){return Lr.cssPrefix}}),Kn.FontAwesomeConfig=jr;var Mr=[],Rr=16,Br={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Ur(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Dr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Vr(e){return e.classList?Dr(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function Fr(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function zr(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function Hr(e){return e.size!==Br.size||e.x!==Br.x||e.y!==Br.y||e.rotate!==Br.rotate||e.flipX||e.flipY}function Wr(){var e="fa",t=rr,n=jr.cssPrefix,r=jr.replacementClass,a=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return a}var qr=!1;function Yr(){jr.autoAddCss&&!qr&&(function(e){if(e&&tr){var t=Jn.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Jn.head.childNodes,r=null,a=n.length-1;a>-1;a--){var i=n[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}Jn.head.insertBefore(t,r)}}(Wr()),qr=!0)}var Gr={mixout:function(){return{dom:{css:Wr,insertCss:Yr}}},hooks:function(){return{beforeDOMElementCreation:function(){Yr()},beforeI2svg:function(){Yr()}}}},$r=Kn||{};$r.___FONT_AWESOME___||($r.___FONT_AWESOME___={}),$r.___FONT_AWESOME___.styles||($r.___FONT_AWESOME___.styles={}),$r.___FONT_AWESOME___.hooks||($r.___FONT_AWESOME___.hooks={}),$r.___FONT_AWESOME___.shims||($r.___FONT_AWESOME___.shims=[]);var Xr=$r.___FONT_AWESOME___,Qr=[],Kr=!1;function Jr(e){tr&&(Kr?setTimeout(e,0):Qr.push(e))}function Zr(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,a=e.children,i=void 0===a?[]:a;return"string"==typeof e?Fr(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(Fr(e[n]),'" ')}),"").trim()}(r),">").concat(i.map(Zr).join(""),"</").concat(t,">")}function ea(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}tr&&((Kr=(Jn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Jn.readyState))||Jn.addEventListener("DOMContentLoaded",(function e(){Jn.removeEventListener("DOMContentLoaded",e),Kr=1,Qr.map((function(e){return e()}))})));var ta=function(e,t,n,r){var a,i,o,s=Object.keys(e),u=s.length,l=void 0!==r?function(e,t){return function(n,r,a,i){return e.call(t,n,r,a,i)}}(t,r):t;for(void 0===n?(a=1,o=e[s[0]]):(a=0,o=n);a<u;a++)o=l(o,e[i=s[a]],i,e);return o};function na(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&a)<<10)+(1023&i)+65536):(t.push(a),n--)}else t.push(a)}return t}(e);return 1===t.length?t[0].toString(16):null}function ra(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function aa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,a=void 0!==r&&r,i=ra(t);"function"!=typeof Xr.hooks.addPack||a?Xr.styles[e]=Nn(Nn({},Xr.styles[e]||{}),i):Xr.hooks.addPack(e,ra(t)),"fas"===e&&aa("fa",t)}var ia,oa,sa,ua=Xr.styles,la=Xr.shims,ca=(jn(ia={},fr,Object.values(yr.classic)),jn(ia,dr,Object.values(yr.sharp)),ia),fa=null,da={},pa={},ha={},ma={},va={},ya=(jn(oa={},fr,Object.keys(mr.classic)),jn(oa,dr,Object.keys(mr.sharp)),oa);function ga(e,t){var n,r=t.split("-"),a=r[0],i=r.slice(1).join("-");return a!==e||""===i||(n=i,~Tr.indexOf(n))?null:i}var ba=function(){var e=function(e){return ta(ua,(function(t,n,r){return t[r]=ta(n,e,{}),t}),{})};da=e((function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter((function(e){return"number"==typeof e})).forEach((function(t){e[t.toString(16)]=n}));return e})),pa=e((function(e,t,n){(e[n]=n,t[2])&&t[2].filter((function(e){return"string"==typeof e})).forEach((function(t){e[t]=n}));return e})),va=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in ua||jr.autoFetchSvg,n=ta(la,(function(e,n){var r=n[0],a=n[1],i=n[2];return"far"!==a||t||(a="fas"),"string"==typeof r&&(e.names[r]={prefix:a,iconName:i}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:a,iconName:i}),e}),{names:{},unicodes:{}});ha=n.names,ma=n.unicodes,fa=Sa(jr.styleDefault,{family:jr.familyDefault})};function wa(e,t){return(da[e]||{})[t]}function xa(e,t){return(va[e]||{})[t]}function ka(e){return ha[e]||{prefix:null,iconName:null}}function Ea(){return fa}function Sa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.family,r=void 0===n?fr:n,a=mr[r][e],i=vr[r][e]||vr[r][a],o=e in Xr.styles?e:null;return i||o||null}Mr.push((function(e){fa=Sa(e.styleDefault,{family:jr.familyDefault})})),ba();var Ca=(jn(sa={},fr,Object.keys(yr.classic)),jn(sa,dr,Object.keys(yr.sharp)),sa);function Oa(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipLookups,a=void 0!==r&&r,i=(jn(t={},fr,"".concat(jr.cssPrefix,"-").concat(fr)),jn(t,dr,"".concat(jr.cssPrefix,"-").concat(dr)),t),o=null,s=fr;(e.includes(i.classic)||e.some((function(e){return Ca.classic.includes(e)})))&&(s=fr),(e.includes(i.sharp)||e.some((function(e){return Ca.sharp.includes(e)})))&&(s=dr);var u=e.reduce((function(e,t){var n=ga(jr.cssPrefix,t);if(ua[t]?(t=ca[s].includes(t)?gr[s][t]:t,o=t,e.prefix=t):ya[s].indexOf(t)>-1?(o=t,e.prefix=Sa(t,{family:s})):n?e.iconName=n:t!==jr.replacementClass&&t!==i.classic&&t!==i.sharp&&e.rest.push(t),!a&&e.prefix&&e.iconName){var r="fa"===o?ka(e.iconName):{},u=xa(e.prefix,e.iconName);r.prefix&&(o=null),e.iconName=r.iconName||u||e.iconName,e.prefix=r.prefix||e.prefix,"far"!==e.prefix||ua.far||!ua.fas||jr.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return(e.includes("fa-brands")||e.includes("fab"))&&(u.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(u.prefix="fad"),u.prefix||s!==dr||!ua.fass&&!jr.autoFetchSvg||(u.prefix="fass",u.iconName=xa(u.prefix,u.iconName)||u.iconName),"fa"!==u.prefix&&"fa"!==o||(u.prefix=Ea()||"fas"),u}var Aa=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.reduce(this._pullDefinitions,{});Object.keys(a).forEach((function(t){e.definitions[t]=Nn(Nn({},e.definitions[t]||{}),a[t]),aa(t,a[t]);var n=yr.classic[t];n&&aa(n,a[t]),ba()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],a=r.prefix,i=r.iconName,o=r.icon,s=o[2];e[a]||(e[a]={}),s.length>0&&s.forEach((function(t){"string"==typeof t&&(e[a][t]=o)})),e[a][i]=o})),e}}])&&Ln(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),_a=[],Pa={},Ta={},Na=Object.keys(Ta);function Ia(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i=Pa[e]||[];return i.forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function La(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=Pa[e]||[];a.forEach((function(e){e.apply(null,n)}))}function ja(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ta[e]?Ta[e].apply(null,t):void 0}function Ma(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Ea();if(t)return t=xa(n,t)||t,ea(Ra.definitions,n,t)||ea(Xr.styles,n,t)}var Ra=new Aa,Ba={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return tr?(La("beforeI2svg",e),ja("pseudoElements2svg",e),ja("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot;!1===jr.autoReplaceSvg&&(jr.autoReplaceSvg=!0),jr.observeMutations=!0,Jr((function(){Da({autoReplaceSvgRoot:t}),La("watch",e)}))}},Ua={noAuto:function(){jr.autoReplaceSvg=!1,jr.observeMutations=!1,La("noAuto")},config:jr,dom:Ba,parse:{icon:function(e){if(null===e)return null;if("object"===In(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:xa(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Sa(e[0]);return{prefix:n,iconName:xa(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(jr.cssPrefix,"-"))>-1||e.match(br))){var r=Oa(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||Ea(),iconName:xa(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var a=Ea();return{prefix:a,iconName:xa(a,e)||e}}}},library:Ra,findIconDefinition:Ma,toHtml:Zr},Da=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?Jn:t;(Object.keys(Xr.styles).length>0||jr.autoFetchSvg)&&tr&&jr.autoReplaceSvg&&Ua.dom.i2svg({node:n})};function Va(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return Zr(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(tr){var t=Jn.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Fa(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,o=e.transform,s=e.symbol,u=e.title,l=e.maskId,c=e.titleId,f=e.extra,d=e.watchable,p=void 0!==d&&d,h=r.found?r:n,m=h.width,v=h.height,y="fak"===a,g=[jr.replacementClass,i?"".concat(jr.cssPrefix,"-").concat(i):""].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),b={children:[],attributes:Nn(Nn({},f.attributes),{},{"data-prefix":a,"data-icon":i,class:g,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(v)})},w=y&&!~f.classes.indexOf("fa-fw")?{width:"".concat(m/v*16*.0625,"em")}:{};p&&(b.attributes[ar]=""),u&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||Ur())},children:[u]}),delete b.attributes.title);var x=Nn(Nn({},b),{},{prefix:a,iconName:i,main:n,mask:r,maskId:l,transform:o,symbol:s,styles:Nn(Nn({},w),f.styles)}),k=r.found&&n.found?ja("generateAbstractMask",x)||{children:[],attributes:{}}:ja("generateAbstractIcon",x)||{children:[],attributes:{}},E=k.children,S=k.attributes;return x.children=E,x.attributes=S,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,o=!0===i?"".concat(t,"-").concat(jr.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Nn(Nn({},a),{},{id:o}),children:r}]}]}(x):function(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(Hr(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};a.style=zr(Nn(Nn({},i),{},{"transform-origin":"".concat(s.x+o.x/16,"em ").concat(s.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}(x)}function za(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,o=e.extra,s=e.watchable,u=void 0!==s&&s,l=Nn(Nn(Nn({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});u&&(l[ar]="");var c=Nn({},o.styles);Hr(a)&&(c.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,a=e.height,i=void 0===a?16:a,o=e.startCentered,s=void 0!==o&&o,u="";return u+=s&&nr?"translate(".concat(t.x/Rr-r/2,"em, ").concat(t.y/Rr-i/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/Rr,"em), calc(-50% + ").concat(t.y/Rr,"em)) "):"translate(".concat(t.x/Rr,"em, ").concat(t.y/Rr,"em) "),(u+="scale(".concat(t.size/Rr*(t.flipX?-1:1),", ").concat(t.size/Rr*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:a,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var f=zr(c);f.length>0&&(l.style=f);var d=[];return d.push({tag:"span",attributes:l,children:[t]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}function Ha(e){var t=e.content,n=e.title,r=e.extra,a=Nn(Nn(Nn({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=zr(r.styles);i.length>0&&(a.style=i);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var Wa=Xr.styles;function qa(e){var t=e[0],n=e[1],r=Mn(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(jr.cssPrefix,"-").concat(Or)},children:[{tag:"path",attributes:{class:"".concat(jr.cssPrefix,"-").concat(_r),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(jr.cssPrefix,"-").concat(Ar),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var Ya={found:!1,width:512,height:512};function Ga(e,t){var n=t;return"fa"===t&&null!==jr.styleDefault&&(t=Ea()),new Promise((function(r,a){if(ja("missingIconAbstract"),"fa"===n){var i=ka(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Wa[t]&&Wa[t][e])return r(qa(Wa[t][e]));!function(e,t){cr||jr.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Nn(Nn({},Ya),{},{icon:jr.showMissingIcons&&e&&ja("missingIconAbstract")||{}}))}))}var $a=function(){},Xa=jr.measurePerformance&&er&&er.mark&&er.measure?er:{mark:$a,measure:$a},Qa='FA "6.2.0"',Ka=function(e){return Xa.mark("".concat(Qa," ").concat(e," begins")),function(){return function(e){Xa.mark("".concat(Qa," ").concat(e," ends")),Xa.measure("".concat(Qa," ").concat(e),"".concat(Qa," ").concat(e," begins"),"".concat(Qa," ").concat(e," ends"))}(e)}},Ja=function(){};function Za(e){return"string"==typeof(e.getAttribute?e.getAttribute(ar):null)}function ei(e){return Jn.createElementNS("http://www.w3.org/2000/svg",e)}function ti(e){return Jn.createElement(e)}function ni(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ceFn,r=void 0===n?"svg"===e.tag?ei:ti:n;if("string"==typeof e)return Jn.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach((function(t){a.setAttribute(t,e.attributes[t])}));var i=e.children||[];return i.forEach((function(e){a.appendChild(ni(e,{ceFn:r}))})),a}var ri={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(ni(e),t)})),null===t.getAttribute(ar)&&jr.keepOriginalSource){var n=Jn.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~Vr(t).indexOf(jr.replacementClass))return ri.replace(e);var r=new RegExp("".concat(jr.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce((function(e,t){return t===jr.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}var i=n.map((function(e){return Zr(e)})).join("\n");t.setAttribute(ar,""),t.innerHTML=i}};function ai(e){e()}function ii(e,t){var n="function"==typeof t?t:Ja;if(0===e.length)n();else{var r=ai;"async"===jr.mutateApproach&&(r=Kn.requestAnimationFrame||ai),r((function(){var t=!0===jr.autoReplaceSvg?ri.replace:ri[jr.autoReplaceSvg]||ri.replace,r=Ka("mutate");e.map(t),r(),n()}))}}var oi=!1;function si(){oi=!0}function ui(){oi=!1}var li=null;function ci(e){if(Zn&&jr.observeMutations){var t=e.treeCallback,n=void 0===t?Ja:t,r=e.nodeCallback,a=void 0===r?Ja:r,i=e.pseudoElementsCallback,o=void 0===i?Ja:i,s=e.observeMutationsRoot,u=void 0===s?Jn:s;li=new Zn((function(e){if(!oi){var t=Ea();Dr(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Za(e.addedNodes[0])&&(jr.searchPseudoElements&&o(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&jr.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&Za(e.target)&&~Cr.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(or):null,n=e.getAttribute?e.getAttribute(sr):null;return t&&n}(e.target)){var r=Oa(Vr(e.target)),i=r.prefix,s=r.iconName;e.target.setAttribute(or,i||t),s&&e.target.setAttribute(sr,s)}else(u=e.target)&&u.classList&&u.classList.contains&&u.classList.contains(jr.replacementClass)&&a(e.target);var u}))}})),tr&&li.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function fi(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],a=n.slice(1);return r&&a.length>0&&(e[r]=a.join(":").trim()),e}),{})),n}function di(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",a=Oa(Vr(e));return a.prefix||(a.prefix=Ea()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=function(e,t){return(pa[e]||{})[t]}(a.prefix,e.innerText)||wa(a.prefix,na(e.innerText))),!a.iconName&&jr.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function pi(e){var t=Dr(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return jr.autoA11y&&(n?t["aria-labelledby"]="".concat(jr.replacementClass,"-title-").concat(r||Ur()):(t["aria-hidden"]="true",t.focusable="false")),t}function hi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=di(e),r=n.iconName,a=n.prefix,i=n.rest,o=pi(e),s=Ia("parseNodeAttributes",{},e),u=t.styleParser?fi(e):[];return Nn({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:Br,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:u,attributes:o}},s)}var mi=Xr.styles;function vi(e){var t="nest"===jr.autoReplaceSvg?hi(e,{styleParser:!1}):hi(e);return~t.extra.classes.indexOf(wr)?ja("generateLayersText",e,t):ja("generateSvgReplacementMutation",e,t)}var yi=new Set;function gi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!tr)return Promise.resolve();var n=Jn.documentElement.classList,r=function(e){return n.add("".concat(ur,"-").concat(e))},a=function(e){return n.remove("".concat(ur,"-").concat(e))},i=jr.autoFetchSvg?yi:pr.map((function(e){return"fa-".concat(e)})).concat(Object.keys(mi));i.includes("fa")||i.push("fa");var o=[".".concat(wr,":not([").concat(ar,"])")].concat(i.map((function(e){return".".concat(e,":not([").concat(ar,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=Dr(e.querySelectorAll(o))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),a("complete");var u=Ka("onTree"),l=s.reduce((function(e,t){try{var n=vi(t);n&&e.push(n)}catch(e){cr||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise((function(e,n){Promise.all(l).then((function(n){ii(n,(function(){r("active"),r("complete"),a("pending"),"function"==typeof t&&t(),u(),e()}))})).catch((function(e){u(),n(e)}))}))}function bi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;vi(e).then((function(e){e&&ii([e],t)}))}pr.map((function(e){yi.add("fa-".concat(e))})),Object.keys(mr.classic).map(yi.add.bind(yi)),Object.keys(mr.sharp).map(yi.add.bind(yi)),yi=Rn(yi);var wi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Br:n,a=t.symbol,i=void 0!==a&&a,o=t.mask,s=void 0===o?null:o,u=t.maskId,l=void 0===u?null:u,c=t.title,f=void 0===c?null:c,d=t.titleId,p=void 0===d?null:d,h=t.classes,m=void 0===h?[]:h,v=t.attributes,y=void 0===v?{}:v,g=t.styles,b=void 0===g?{}:g;if(e){var w=e.prefix,x=e.iconName,k=e.icon;return Va(Nn({type:"icon"},e),(function(){return La("beforeDOMElementCreation",{iconDefinition:e,params:t}),jr.autoA11y&&(f?y["aria-labelledby"]="".concat(jr.replacementClass,"-title-").concat(p||Ur()):(y["aria-hidden"]="true",y.focusable="false")),Fa({icons:{main:qa(k),mask:s?qa(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:x,transform:Nn(Nn({},Br),r),symbol:i,title:f,maskId:l,titleId:p,extra:{attributes:y,styles:b,classes:m}})}))}},xi={mixout:function(){return{icon:(e=wi,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:Ma(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:Ma(a||{})),e(r,Nn(Nn({},n),{},{mask:a}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=gi,e.nodeCallback=bi,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?Jn:t,r=e.callback;return gi(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,a=t.titleId,i=t.prefix,o=t.transform,s=t.symbol,u=t.mask,l=t.maskId,c=t.extra;return new Promise((function(t,f){Promise.all([Ga(n,i),u.iconName?Ga(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(u){var f=Mn(u,2),d=f[0],p=f[1];t([e,Fa({icons:{main:d,mask:p},prefix:i,iconName:n,transform:o,symbol:s,maskId:l,title:r,titleId:a,extra:c,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,a=e.main,i=e.transform,o=zr(e.styles);return o.length>0&&(r.style=o),Hr(i)&&(t=ja("generateAbstractTransformGrouping",{main:a,transform:i,containerWidth:a.width,iconWidth:a.width})),n.push(t||a.icon),{children:n,attributes:r}}}},ki={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return Va({type:"layer"},(function(){La("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(jr.cssPrefix,"-layers")].concat(Rn(r)).join(" ")},children:n}]}))}}}},Ei={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,a=t.classes,i=void 0===a?[]:a,o=t.attributes,s=void 0===o?{}:o,u=t.styles,l=void 0===u?{}:u;return Va({type:"counter",content:e},(function(){return La("beforeDOMElementCreation",{content:e,params:t}),Ha({content:e.toString(),title:r,extra:{attributes:s,styles:l,classes:["".concat(jr.cssPrefix,"-layers-counter")].concat(Rn(i))}})}))}}}},Si={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Br:n,a=t.title,i=void 0===a?null:a,o=t.classes,s=void 0===o?[]:o,u=t.attributes,l=void 0===u?{}:u,c=t.styles,f=void 0===c?{}:c;return Va({type:"text",content:e},(function(){return La("beforeDOMElementCreation",{content:e,params:t}),za({content:e,transform:Nn(Nn({},Br),r),title:i,extra:{attributes:l,styles:f,classes:["".concat(jr.cssPrefix,"-layers-text")].concat(Rn(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,a=t.extra,i=null,o=null;if(nr){var s=parseInt(getComputedStyle(e).fontSize,10),u=e.getBoundingClientRect();i=u.width/s,o=u.height/s}return jr.autoA11y&&!n&&(a.attributes["aria-hidden"]="true"),Promise.resolve([e,za({content:e.innerHTML,width:i,height:o,transform:r,title:n,extra:a,watchable:!0})])}}},Ci=new RegExp('"',"ug"),Oi=[1105920,1112319];function Ai(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,a){if(null!==e.getAttribute(n))return r();var i=Dr(e.children).filter((function(e){return e.getAttribute(ir)===t}))[0],o=Kn.getComputedStyle(e,t),s=o.getPropertyValue("font-family").match(xr),u=o.getPropertyValue("font-weight"),l=o.getPropertyValue("content");if(i&&!s)return e.removeChild(i),r();if(s&&"none"!==l&&""!==l){var c=o.getPropertyValue("content"),f=~["Sharp"].indexOf(s[2])?dr:fr,d=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?vr[f][s[2].toLowerCase()]:kr[f][u],p=function(e){var t=e.replace(Ci,""),n=function(e,t){var n,r=e.length,a=e.charCodeAt(0);return a>=55296&&a<=56319&&r>1&&(n=e.charCodeAt(1))>=56320&&n<=57343?1024*(a-55296)+n-56320+65536:a}(t),r=n>=Oi[0]&&n<=Oi[1],a=2===t.length&&t[0]===t[1];return{value:na(a?t[0]:t),isSecondary:r||a}}(c),h=p.value,m=p.isSecondary,v=s[0].startsWith("FontAwesome"),y=wa(d,h),g=y;if(v){var b=function(e){var t=ma[e],n=wa("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(h);b.iconName&&b.prefix&&(y=b.iconName,d=b.prefix)}if(!y||m||i&&i.getAttribute(or)===d&&i.getAttribute(sr)===g)r();else{e.setAttribute(n,g),i&&e.removeChild(i);var w={iconName:null,title:null,titleId:null,prefix:null,transform:Br,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},x=w.extra;x.attributes[ir]=t,Ga(y,d).then((function(a){var i=Fa(Nn(Nn({},w),{},{icons:{main:a,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:g,extra:x,watchable:!0})),o=Jn.createElement("svg");"::before"===t?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=i.map((function(e){return Zr(e)})).join("\n"),e.removeAttribute(n),r()})).catch(a)}}else r()}))}function _i(e){return Promise.all([Ai(e,"::before"),Ai(e,"::after")])}function Pi(e){return!(e.parentNode===document.head||~lr.indexOf(e.tagName.toUpperCase())||e.getAttribute(ir)||e.parentNode&&"svg"===e.parentNode.tagName)}function Ti(e){if(tr)return new Promise((function(t,n){var r=Dr(e.querySelectorAll("*")).filter(Pi).map(_i),a=Ka("searchPseudoElements");si(),Promise.all(r).then((function(){a(),ui(),t()})).catch((function(){a(),ui(),n()}))}))}var Ni=!1,Ii=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],a=n.slice(1).join("-");if(r&&"h"===a)return e.flipX=!0,e;if(r&&"v"===a)return e.flipY=!0,e;if(a=parseFloat(a),isNaN(a))return e;switch(r){case"grow":e.size=e.size+a;break;case"shrink":e.size=e.size-a;break;case"left":e.x=e.x-a;break;case"right":e.x=e.x+a;break;case"up":e.y=e.y-a;break;case"down":e.y=e.y+a;break;case"rotate":e.rotate=e.rotate+a}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Li={x:0,y:0,width:"100%",height:"100%"};function ji(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}!function(e,t){var n=t.mixoutsTo;_a=e,Pa={},Object.keys(Ta).forEach((function(e){-1===Na.indexOf(e)&&delete Ta[e]})),_a.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"==typeof t[e]&&(n[e]=t[e]),"object"===In(t[e])&&Object.keys(t[e]).forEach((function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){var r=e.hooks();Object.keys(r).forEach((function(e){Pa[e]||(Pa[e]=[]),Pa[e].push(r[e])}))}e.provides&&e.provides(Ta)}))}([Gr,xi,ki,Ei,Si,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Ti,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?Jn:t;jr.searchPseudoElements&&Ti(n)}}},{mixout:function(){return{dom:{unwatch:function(){si(),Ni=!0}}}},hooks:function(){return{bootstrap:function(){ci(Ia("mutationObserverCallbacks",{}))},noAuto:function(){li&&li.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Ni?ui():ci(Ia("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return Ii(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=Ii(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,a=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),u="rotate(".concat(n.rotate," 0 0)"),l={outer:i,inner:{transform:"".concat(o," ").concat(s," ").concat(u)},path:{transform:"translate(".concat(a/2*-1," -256)")}};return{tag:"g",attributes:Nn({},l.outer),children:[{tag:"g",attributes:Nn({},l.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Nn(Nn({},t.icon.attributes),l.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?Oa(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Ea()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,a=e.main,i=e.mask,o=e.maskId,s=e.transform,u=a.width,l=a.icon,c=i.width,f=i.icon,d=function(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},a="translate(".concat(32*t.x,", ").concat(32*t.y,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),o="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(a," ").concat(i," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:s,containerWidth:c,iconWidth:u}),p={tag:"rect",attributes:Nn(Nn({},Li),{},{fill:"white"})},h=l.children?{children:l.children.map(ji)}:{},m={tag:"g",attributes:Nn({},d.inner),children:[ji(Nn({tag:l.tag,attributes:Nn(Nn({},l.attributes),d.path)},h))]},v={tag:"g",attributes:Nn({},d.outer),children:[m]},y="mask-".concat(o||Ur()),g="clip-".concat(o||Ur()),b={tag:"mask",attributes:Nn(Nn({},Li),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,v]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:(t=f,"g"===t.tag?t.children:[t])},b]};return n.push(w,{tag:"rect",attributes:Nn({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(y,")")},Li)}),{children:n,attributes:r}}}},{provides:function(e){var t=!1;Kn.matchMedia&&(t=Kn.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Nn(Nn({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=Nn(Nn({},r),{},{attributeName:"opacity"}),i={tag:"circle",attributes:Nn(Nn({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:Nn(Nn({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Nn(Nn({},a),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:Nn(Nn({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Nn(Nn({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Nn(Nn({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Nn(Nn({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],{mixoutsTo:Ua});var Mi=Ua.parse,Ri=Ua.icon,Bi=n(192),Ui=n.n(Bi);function Di(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 Vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Di(Object(n),!0).forEach((function(t){zi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Di(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fi(e){return(Fi="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)}function zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hi(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Wi(e){return function(e){if(Array.isArray(e))return qi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return qi(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)?qi(e,t):void 0}}(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 qi(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 Yi(e){return t=e,(t-=0)===t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Gi=["style"];function $i(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),a=Yi(t.slice(0,r)),i=t.slice(r+1).trim();return a.startsWith("webkit")?e[(n=a,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[a]=i,e}),{})}var Xi=!1;try{Xi=!0}catch(e){}function Qi(e){return e&&"object"===Fi(e)&&e.prefix&&e.iconName&&e.icon?e:Mi.icon?Mi.icon(e):null===e?null:e&&"object"===Fi(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Ki(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?zi({},e,t):{}}var Ji=t.forwardRef((function(e,t){var n=e.icon,r=e.mask,a=e.symbol,i=e.className,o=e.title,s=e.titleId,u=e.maskId,l=Qi(n),c=Ki("classes",[].concat(Wi(function(e){var t,n=e.beat,r=e.fade,a=e.beatFade,i=e.bounce,o=e.shake,s=e.flash,u=e.spin,l=e.spinPulse,c=e.spinReverse,f=e.pulse,d=e.fixedWidth,p=e.inverse,h=e.border,m=e.listItem,v=e.flip,y=e.size,g=e.rotation,b=e.pull,w=(zi(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":a,"fa-bounce":i,"fa-shake":o,"fa-flash":s,"fa-spin":u,"fa-spin-reverse":c,"fa-spin-pulse":l,"fa-pulse":f,"fa-fw":d,"fa-inverse":p,"fa-border":h,"fa-li":m,"fa-flip":!0===v,"fa-flip-horizontal":"horizontal"===v||"both"===v,"fa-flip-vertical":"vertical"===v||"both"===v},"fa-".concat(y),null!=y),zi(t,"fa-rotate-".concat(g),null!=g&&0!==g),zi(t,"fa-pull-".concat(b),null!=b),zi(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(w).map((function(e){return w[e]?e:null})).filter((function(e){return e}))}(e)),Wi(i.split(" ")))),f=Ki("transform","string"==typeof e.transform?Mi.transform(e.transform):e.transform),d=Ki("mask",Qi(r)),p=Ri(l,Vi(Vi(Vi(Vi({},c),f),d),{},{symbol:a,title:o,titleId:s,maskId:u}));if(!p)return function(){var e;!Xi&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",l),null;var h=p.abstract,m={ref:t};return Object.keys(e).forEach((function(t){Ji.defaultProps.hasOwnProperty(t)||(m[t]=e[t])})),Zi(h[0],m)}));Ji.displayName="FontAwesomeIcon",Ji.propTypes={beat:Ui().bool,border:Ui().bool,beatFade:Ui().bool,bounce:Ui().bool,className:Ui().string,fade:Ui().bool,flash:Ui().bool,mask:Ui().oneOfType([Ui().object,Ui().array,Ui().string]),maskId:Ui().string,fixedWidth:Ui().bool,inverse:Ui().bool,flip:Ui().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ui().oneOfType([Ui().object,Ui().array,Ui().string]),listItem:Ui().bool,pull:Ui().oneOf(["right","left"]),pulse:Ui().bool,rotation:Ui().oneOf([0,90,180,270]),shake:Ui().bool,size:Ui().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ui().bool,spinPulse:Ui().bool,spinReverse:Ui().bool,symbol:Ui().oneOfType([Ui().bool,Ui().string]),title:Ui().string,titleId:Ui().string,transform:Ui().oneOfType([Ui().string,Ui().object]),swapOpacity:Ui().bool},Ji.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Zi=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var a=(n.children||[]).map((function(n){return e(t,n)})),i=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=$i(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Yi(t)]=r}return e}),{attrs:{}}),o=r.style,s=void 0===o?{}:o,u=Hi(r,Gi);return i.attrs.style=Vi(Vi({},i.attrs.style),s),t.apply(void 0,[n.tag,Vi(Vi({},i.attrs),u)].concat(Wi(a)))}.bind(null,t.createElement),eo=function(e,t){return(eo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function to(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}eo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var no=function(){return(no=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function ro(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function ao(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function io(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var oo=1/60*1e3,so="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},uo="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(so())}),oo)},lo=!0,co=!1,fo=!1,po={delta:0,timestamp:0},ho=["read","update","preRender","render","postRender"],mo=ho.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,a=!1,i=!1,o=new WeakSet,s={schedule:function(e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&a,s=i?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(e),-1===s.indexOf(e)&&(s.push(e),i&&a&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:function(e){if(a)i=!0;else{a=!0;var u=[n,t];if(t=u[0],(n=u[1]).length=0,r=t.length)for(var l=0;l<r;l++){var c=t[l];c(e),o.has(c)&&(s.schedule(c),co=!0)}a=!1,i&&(i=!1,s.process(e))}}};return s}(),e}),{}),vo=ho.reduce((function(e,t){var n=mo[t];return e[t]=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return co||xo(),n.schedule(e,t,r)},e}),{}),yo=ho.reduce((function(e,t){return e[t]=mo[t].cancel,e}),{}),go=ho.reduce((function(e,t){return e[t]=function(){return mo[t].process(po)},e}),{}),bo=function(e){return mo[e].process(po)},wo=function e(t){co=!1,po.delta=lo?oo:Math.max(Math.min(t-po.timestamp,40),1),po.timestamp=t,fo=!0,ho.forEach(bo),fo=!1,co&&(lo=!1,uo(e))},xo=function(){co=!0,lo=!0,fo||uo(wo)},ko=function(){return po},Eo=vo,So="undefined"!=typeof document,Co=So?t.useLayoutEffect:t.useEffect;function Oo(){var e=(0,t.useRef)(!1);return Co((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var Ao=(0,t.createContext)(null);function _o(e){var n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}var Po=0,To=function(){return Po++},No=function(){return _o(To)},Io=function(e){var n=e.children,r=e.initial,a=e.isPresent,i=e.onExitComplete,o=e.custom,s=e.presenceAffectsLayout,u=_o(Lo),l=No(),c=(0,t.useMemo)((function(){return{id:l,initial:r,isPresent:a,custom:o,onExitComplete:function(e){var t,n;u.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(u.values()),a=r.next();!a.done;a=r.next())if(!a.value)return}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==i||i()},register:function(e){return u.set(e,!1),function(){return u.delete(e)}}}}),s?void 0:[a]);return(0,t.useMemo)((function(){u.forEach((function(e,t){return u.set(t,!1)}))}),[a]),t.useEffect((function(){!a&&!u.size&&(null==i||i())}),[a]),t.createElement(Ao.Provider,{value:c},n)};function Lo(){return new Map}var jo=(0,t.createContext)({});function Mo(e){return(0,t.useEffect)((function(){return function(){return e()}}),[])}var Ro=function(e){return e.key||""},Bo=function(e){var n=e.children,r=e.custom,a=e.initial,i=void 0===a||a,o=e.onExitComplete,s=e.exitBeforeEnter,u=e.presenceAffectsLayout,l=void 0===u||u,c=ao(function(){var e=Oo(),n=ao((0,t.useState)(0),2),r=n[0],a=n[1],i=(0,t.useCallback)((function(){e.current&&a(r+1)}),[r]);return[(0,t.useCallback)((function(){return Eo.postRender(i)}),[i]),r]}(),1)[0],f=(0,t.useContext)(jo).forceRender;f&&(c=f);var d=Oo(),p=function(e){var n=[];return t.Children.forEach(e,(function(e){(0,t.isValidElement)(e)&&n.push(e)})),n}(n),h=p,m=new Set,v=(0,t.useRef)(h),y=(0,t.useRef)(new Map).current,g=(0,t.useRef)(!0);if(Co((function(){g.current=!1,function(e,t){e.forEach((function(e){var n=Ro(e);t.set(n,e)}))}(p,y),v.current=h})),Mo((function(){g.current=!0,y.clear(),m.clear()})),g.current)return t.createElement(t.Fragment,null,h.map((function(e){return t.createElement(Io,{key:Ro(e),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:l},e)})));h=io([],ao(h),!1);for(var b=v.current.map(Ro),w=p.map(Ro),x=b.length,k=0;k<x;k++){var E=b[k];-1===w.indexOf(E)&&m.add(E)}return s&&m.size&&(h=[]),m.forEach((function(e){if(-1===w.indexOf(e)){var n=y.get(e);if(n){var a=b.indexOf(e);h.splice(a,0,t.createElement(Io,{key:Ro(n),isPresent:!1,onExitComplete:function(){y.delete(e),m.delete(e);var t=v.current.findIndex((function(t){return t.key===e}));if(v.current.splice(t,1),!m.size){if(v.current=p,!1===d.current)return;c(),o&&o()}},custom:r,presenceAffectsLayout:l},n))}}})),h=h.map((function(e){var n=e.key;return m.has(n)?e:t.createElement(Io,{key:Ro(e),isPresent:!0,presenceAffectsLayout:l},e)})),t.createElement(t.Fragment,null,m.size?h:h.map((function(e){return(0,t.cloneElement)(e)})))},Uo=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Do={measureLayout:Uo(["layout","layoutId","drag"]),animation:Uo(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Uo(["exit"]),drag:Uo(["drag","dragControls"]),focus:Uo(["whileFocus"]),hover:Uo(["whileHover","onHoverStart","onHoverEnd"]),tap:Uo(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Uo(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Uo(["whileInView","onViewportEnter","onViewportLeave"])},Vo=(0,t.createContext)({strict:!1}),Fo=Object.keys(Do),zo=Fo.length,Ho=(0,t.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Wo=(0,t.createContext)({}),qo={current:null},Yo=!1;function Go(e,n,r,a){var i=(0,t.useContext)(Vo),o=(0,t.useContext)(Wo).visualElement,s=(0,t.useContext)(Ao),u=function(){var e=(!Yo&&function(){if(Yo=!0,So)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return qo.current=e.matches};e.addListener(t),t()}else qo.current=!1}(),ao((0,t.useState)(qo.current),1)[0]),n=(0,t.useContext)(Ho).reducedMotion;return"never"!==n&&("always"===n||e)}(),l=(0,t.useRef)(void 0);a||(a=i.renderer),!l.current&&a&&(l.current=a(e,{visualState:n,parent:o,props:r,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial),shouldReduceMotion:u}));var c=l.current;return Co((function(){null==c||c.syncRender()})),(0,t.useEffect)((function(){var e;null===(e=null==c?void 0:c.animationState)||void 0===e||e.animateChanges()})),Co((function(){return function(){return null==c?void 0:c.notifyUnmount()}}),[]),c}function $o(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Xo(e){return Array.isArray(e)}function Qo(e){return"string"==typeof e||Xo(e)}function Ko(e,t,n,r,a){var i;return void 0===r&&(r={}),void 0===a&&(a={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,a)),"string"==typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,a)),t}function Jo(e,t,n){var r=e.getProps();return Ko(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function Zo(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Qo(e.initial)||Qo(e.animate)||Qo(e.whileHover)||Qo(e.whileDrag)||Qo(e.whileTap)||Qo(e.whileFocus)||Qo(e.exit)}function es(e){return Boolean(Zo(e)||e.variants)}function ts(e){return Array.isArray(e)?e.join(" "):e}var ns={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rs=1,as=(0,t.createContext)({}),is=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return to(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(t.Component);function os(e){var n=e.preloadedFeatures,r=e.createVisualElement,a=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,s=e.Component;return n&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Do.projectionNodeConstructor=e[t]:Do[t].Component=e[t])}(n),(0,t.forwardRef)((function(e,n){var u=function(e){var n,r=e.layoutId,a=null===(n=(0,t.useContext)(jo))||void 0===n?void 0:n.id;return a&&void 0!==r?a+"-"+r:r}(e);e=no(no({},e),{layoutId:u});var l=(0,t.useContext)(Ho),c=null,f=function(e){var n=function(e,t){if(Zo(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Qo(n)?n:void 0,animate:Qo(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,t.useContext)(Wo)),r=n.initial,a=n.animate;return(0,t.useMemo)((function(){return{initial:r,animate:a}}),[ts(r),ts(a)])}(e),d=l.isStatic?void 0:_o((function(){if(ns.hasEverUpdated)return rs++})),p=o(e,l.isStatic);return!l.isStatic&&So&&(f.visualElement=Go(s,p,no(no({},l),e),r),function(e,n,r,a){var i,o=n.layoutId,s=n.layout,u=n.drag,l=n.dragConstraints,c=n.layoutScroll,f=(0,t.useContext)(as);a&&r&&!(null==r?void 0:r.projection)&&(r.projection=new a(e,r.getLatestValues(),null===(i=r.parent)||void 0===i?void 0:i.projection),r.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(u)||l&&$o(l),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:f,layoutScroll:c}))}(d,e,f.visualElement,a||Do.projectionNodeConstructor),c=function(e,n,r){var a=[];if((0,t.useContext)(Vo),!n)return null;for(var i=0;i<zo;i++){var o=Fo[i],s=Do[o],u=s.isEnabled,l=s.Component;u(e)&&l&&a.push(t.createElement(l,no({key:o},e,{visualElement:n})))}return a}(e,f.visualElement)),t.createElement(is,{visualElement:f.visualElement,props:no(no({},l),e)},c,t.createElement(Wo.Provider,{value:f},i(s,e,d,function(e,n,r){return(0,t.useCallback)((function(t){var a;t&&(null===(a=e.mount)||void 0===a||a.call(e,t)),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):$o(r)&&(r.current=t))}),[n])}(p,f.visualElement,n),p,l.isStatic,f.visualElement)))}))}var ss=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function us(e){return"string"==typeof e&&!e.includes("-")&&!!(ss.indexOf(e)>-1||/[A-Z]/.test(e))}var ls={},cs=["","X","Y","Z"],fs=["transformPerspective","x","y","z"];function ds(e,t){return fs.indexOf(e)-fs.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return cs.forEach((function(t){return fs.push(e+t)}))}));var ps=new Set(fs);function hs(e){return ps.has(e)}var ms=new Set(["originX","originY","originZ"]);function vs(e){return ms.has(e)}function ys(e,t){var n=t.layout,r=t.layoutId;return hs(e)||vs(e)||(n||void 0!==r)&&(!!ls[e]||"opacity"===e)}var gs=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},bs={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function ws(e){return e.startsWith("--")}var xs=function(e,t){return t&&"number"==typeof e?t.transform(e):e},ks=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},Es=function(e){return e%1?Number(e.toFixed(5)):e},Ss=/(-)?([\d]*\.?[\d])+/g,Cs=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Os=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function As(e){return"string"==typeof e}var _s=function(e){return{test:function(t){return As(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return"".concat(t).concat(e)}}},Ps=_s("deg"),Ts=_s("%"),Ns=_s("px"),Is=_s("vh"),Ls=_s("vw"),js=Object.assign(Object.assign({},Ts),{parse:function(e){return Ts.parse(e)/100},transform:function(e){return Ts.transform(100*e)}}),Ms={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},Rs=Object.assign(Object.assign({},Ms),{transform:ks(0,1)}),Bs=Object.assign(Object.assign({},Ms),{default:1}),Us=no(no({},Ms),{transform:Math.round}),Ds={borderWidth:Ns,borderTopWidth:Ns,borderRightWidth:Ns,borderBottomWidth:Ns,borderLeftWidth:Ns,borderRadius:Ns,radius:Ns,borderTopLeftRadius:Ns,borderTopRightRadius:Ns,borderBottomRightRadius:Ns,borderBottomLeftRadius:Ns,width:Ns,maxWidth:Ns,height:Ns,maxHeight:Ns,size:Ns,top:Ns,right:Ns,bottom:Ns,left:Ns,padding:Ns,paddingTop:Ns,paddingRight:Ns,paddingBottom:Ns,paddingLeft:Ns,margin:Ns,marginTop:Ns,marginRight:Ns,marginBottom:Ns,marginLeft:Ns,rotate:Ps,rotateX:Ps,rotateY:Ps,rotateZ:Ps,scale:Bs,scaleX:Bs,scaleY:Bs,scaleZ:Bs,skew:Ps,skewX:Ps,skewY:Ps,distance:Ns,translateX:Ns,translateY:Ns,translateZ:Ns,x:Ns,y:Ns,z:Ns,perspective:Ns,transformPerspective:Ns,opacity:Rs,originX:js,originY:js,originZ:Ns,zIndex:Us,fillOpacity:Rs,strokeOpacity:Rs,numOctaves:Us};function Vs(e,t,n,r){var a,i=e.style,o=e.vars,s=e.transform,u=e.transformKeys,l=e.transformOrigin;u.length=0;var c=!1,f=!1,d=!0;for(var p in t){var h=t[p];if(ws(p))o[p]=h;else{var m=Ds[p],v=xs(h,m);if(hs(p)){if(c=!0,s[p]=v,u.push(p),!d)continue;h!==(null!==(a=m.default)&&void 0!==a?a:0)&&(d=!1)}else vs(p)?(l[p]=v,f=!0):i[p]=v}}c?i.transform=function(e,t,n,r){var a=e.transform,i=e.transformKeys,o=t.enableHardwareAcceleration,s=void 0===o||o,u=t.allowTransformNone,l=void 0===u||u,c="";i.sort(ds);for(var f=!1,d=i.length,p=0;p<d;p++){var h=i[p];c+="".concat(bs[h]||h,"(").concat(a[h],") "),"z"===h&&(f=!0)}return!f&&s?c+="translateZ(0)":c=c.trim(),r?c=r(a,n?"":c):l&&n&&(c="none"),c}(e,n,d,r):r?i.transform=r({},""):!t.transform&&i.transform&&(i.transform="none"),f&&(i.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,a=void 0===r?"50%":r,i=e.originZ,o=void 0===i?0:i;return"".concat(n," ").concat(a," ").concat(o)}(l))}function Fs(e,t,n){for(var r in t)gs(t[r])||ys(r,n)||(e[r]=t[r])}function zs(e,n,r){var a={};return Fs(a,e.style||{},e),Object.assign(a,function(e,n,r){var a=e.transformTemplate;return(0,t.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Vs(e,n,{enableHardwareAcceleration:!r},a);var t=e.style;return no(no({},e.vars),t)}),[n])}(e,n,r)),e.transformValues&&(a=e.transformValues(a)),a}function Hs(e,t,n){var r={},a=zs(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=a,r}var Ws=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function qs(e){return Ws.has(e)}var Ys,Gs=function(e){return!qs(e)};try{(Ys=require("@emotion/is-prop-valid").default)&&(Gs=function(e){return e.startsWith("on")?!qs(e):Ys(e)})}catch(e){}function $s(e,t,n){return"string"==typeof e?e:Ns.transform(t+n*e)}var Xs={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qs={offset:"strokeDashoffset",array:"strokeDasharray"};function Ks(e,t,n,r){var a=t.attrX,i=t.attrY,o=t.originX,s=t.originY,u=t.pathLength,l=t.pathSpacing,c=void 0===l?1:l,f=t.pathOffset,d=void 0===f?0:f;Vs(e,ro(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,h=e.style,m=e.dimensions;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==o||void 0!==s||h.transform)&&(h.transformOrigin=function(e,t,n){var r=$s(t,e.x,e.width),a=$s(n,e.y,e.height);return"".concat(r," ").concat(a)}(m,void 0!==o?o:.5,void 0!==s?s:.5)),void 0!==a&&(p.x=a),void 0!==i&&(p.y=i),void 0!==u&&function(e,t,n,r,a){void 0===n&&(n=1),void 0===r&&(r=0),void 0===a&&(a=!0),e.pathLength=1;var i=a?Xs:Qs;e[i.offset]=Ns.transform(-r);var o=Ns.transform(t),s=Ns.transform(n);e[i.array]="".concat(o," ").concat(s)}(p,u,c,d,!1)}var Js=function(){return no(no({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Zs(e,n){var r=(0,t.useMemo)((function(){var t=Js();return Ks(t,n,{enableHardwareAcceleration:!1},e.transformTemplate),no(no({},t.attrs),{style:no({},t.style)})}),[n]);if(e.style){var a={};Fs(a,e.style,e),r.style=no(no({},a),r.style)}return r}function eu(e){return void 0===e&&(e=!1),function(n,r,a,i,o,s){var u=o.latestValues,l=(us(n)?Zs:Hs)(r,u,s),c=function(e,t,n){var r={};for(var a in e)(Gs(a)||!0===n&&qs(a)||!t&&!qs(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}(r,"string"==typeof n,e),f=no(no(no({},c),l),{ref:i});return a&&(f["data-projection-id"]=a),(0,t.createElement)(n,f)}}var tu=/([a-z])([A-Z])/g,nu=function(e){return e.replace(tu,"$1-$2").toLowerCase()};function ru(e,t,n,r){var a=t.style,i=t.vars;for(var o in Object.assign(e.style,a,r&&r.getProjectionStyles(n)),i)e.style.setProperty(o,i[o])}var au=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function iu(e,t,n,r){for(var a in ru(e,t,void 0,r),t.attrs)e.setAttribute(au.has(a)?a:nu(a),t.attrs[a])}function ou(e){var t=e.style,n={};for(var r in t)(gs(t[r])||ys(r,e))&&(n[r]=t[r]);return n}function su(e){var t=ou(e);for(var n in e)gs(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function uu(e){return"object"==typeof e&&"function"==typeof e.start}var lu=function(e){return Array.isArray(e)},cu=function(e){return lu(e)?e[e.length-1]||0:e};function fu(e){var t,n=gs(e)?e.get():e;return t=n,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?n.toValue():n}function du(e,t,n,r){var a=e.scrapeMotionValuesFromProps,i=e.createRenderState,o=e.onMount,s={latestValues:hu(t,n,r,a),renderState:i()};return o&&(s.mount=function(e){return o(t,e,s)}),s}var pu=function(e){return function(n,r){var a=(0,t.useContext)(Wo),i=(0,t.useContext)(Ao);return r?du(e,n,a,i):_o((function(){return du(e,n,a,i)}))}};function hu(e,t,n,r){var a={},i=!1===(null==n?void 0:n.initial),o=r(e);for(var s in o)a[s]=fu(o[s]);var u=e.initial,l=e.animate,c=Zo(e),f=es(e);t&&f&&!c&&!1!==e.inherit&&(null!=u||(u=t.initial),null!=l||(l=t.animate));var d=i||!1===u,p=d?l:u;return p&&"boolean"!=typeof p&&!uu(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Ko(e,t);if(n){var r=n.transitionEnd;n.transition;var i=ro(n,["transitionEnd","transition"]);for(var o in i){var s=i[o];Array.isArray(s)&&(s=s[d?s.length-1:0]),null!==s&&(a[o]=s)}for(var o in r)a[o]=r[o]}})),a}var mu,vu={useVisualState:pu({scrapeMotionValuesFromProps:su,createRenderState:Js,onMount:function(e,t,n){var r=n.renderState,a=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Ks(r,a,{enableHardwareAcceleration:!1},e.transformTemplate),iu(t,r)}})},yu={useVisualState:pu({scrapeMotionValuesFromProps:ou,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function gu(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function bu(e,n,r,a){(0,t.useEffect)((function(){var t=e.current;if(r&&t)return gu(t,n,r,a)}),[e,n,r,a])}function wu(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function xu(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(mu||(mu={}));var ku={pageX:0,pageY:0};function Eu(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||ku;return{x:n[t+"X"],y:n[t+"Y"]}}function Su(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Cu(e,t){return void 0===t&&(t="page"),{point:xu(e)?Eu(e,t):Su(e,t)}}var Ou=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Cu(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Au={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},_u={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Pu(e){return So&&null===window.onpointerdown?e:So&&null===window.ontouchstart?_u[e]:So&&null===window.onmousedown?Au[e]:e}function Tu(e,t,n,r){return gu(e,Pu(t),Ou(n,"pointerdown"===t),r)}function Nu(e,t,n,r){return bu(e,Pu(t),n&&Ou(n,"pointerdown"===t),r)}function Iu(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Lu=Iu("dragHorizontal"),ju=Iu("dragVertical");function Mu(e){var t=!1;if("y"===e)t=ju();else if("x"===e)t=Lu();else{var n=Lu(),r=ju();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Ru(){var e=Mu(!0);return!e||(e(),!1)}function Bu(e,t,n){return function(r,a){var i;wu(r)&&!Ru()&&(null===(i=e.animationState)||void 0===i||i.setActive(mu.Hover,t),null==n||n(r,a))}}var Uu=function e(t,n){return!!n&&(t===n||e(t,n.parentElement))},Du=function(e,t){return function(n){return t(e(n))}},Vu=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(Du)};new Set;var Fu=new WeakMap,zu=new WeakMap,Hu=function(e){var t;null===(t=Fu.get(e.target))||void 0===t||t(e)},Wu=function(e){e.forEach(Hu)};var qu={some:0,all:1};function Yu(e,n,r,a){var i=a.root,o=a.margin,s=a.amount,u=void 0===s?"some":s,l=a.once;(0,t.useEffect)((function(){if(e){var t={root:null==i?void 0:i.current,rootMargin:o,threshold:"number"==typeof u?u:qu[u]};return function(e,t,n){var r=function(e){var t=e.root,n=ro(e,["root"]),r=t||document;zu.has(r)||zu.set(r,{});var a=zu.get(r),i=JSON.stringify(n);return a[i]||(a[i]=new IntersectionObserver(Wu,no({root:t},n))),a[i]}(t);return Fu.set(e,n),r.observe(e),function(){Fu.delete(e),r.unobserve(e)}}(r.getInstance(),t,(function(e){var t,a=e.isIntersecting;if(n.isInView!==a&&(n.isInView=a,!l||a||!n.hasEnteredView)){a&&(n.hasEnteredView=!0),null===(t=r.animationState)||void 0===t||t.setActive(mu.InView,a);var i=r.getProps(),o=a?i.onViewportEnter:i.onViewportLeave;null==o||o(e)}}))}}),[e,i,o,u])}function Gu(e,n,r,a){var i=a.fallback,o=void 0===i||i;(0,t.useEffect)((function(){e&&o&&requestAnimationFrame((function(){var e;n.hasEnteredView=!0;var t=r.getProps().onViewportEnter;null==t||t(null),null===(e=r.animationState)||void 0===e||e.setActive(mu.InView,!0)}))}),[e])}var $u=function(e){return function(t){return e(t),null}},Xu={inView:$u((function(e){var n=e.visualElement,r=e.whileInView,a=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=void 0===o?{}:o,u=(0,t.useRef)({hasEnteredView:!1,isInView:!1}),l=Boolean(r||a||i);s.once&&u.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?Gu:Yu)(l,u.current,n,s)})),tap:$u((function(e){var n=e.onTap,r=e.onTapStart,a=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=n||r||a||i,u=(0,t.useRef)(!1),l=(0,t.useRef)(null),c={passive:!(r||n||a||m)};function f(){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null}function d(){var e;return f(),u.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(mu.Tap,!1),!Ru()}function p(e,t){d()&&(Uu(o.getInstance(),e.target)?null==n||n(e,t):null==a||a(e,t))}function h(e,t){d()&&(null==a||a(e,t))}function m(e,t){var n;f(),u.current||(u.current=!0,l.current=Vu(Tu(window,"pointerup",p,c),Tu(window,"pointercancel",h,c)),null===(n=o.animationState)||void 0===n||n.setActive(mu.Tap,!0),null==r||r(e,t))}Nu(o,"pointerdown",s?m:void 0,c),Mo(f)})),focus:$u((function(e){var t=e.whileFocus,n=e.visualElement;bu(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(mu.Focus,!0)}:void 0),bu(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(mu.Focus,!1)}:void 0)})),hover:$u((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,a=e.visualElement;Nu(a,"pointerenter",t||r?Bu(a,!0,t):void 0,{passive:!t}),Nu(a,"pointerleave",n||r?Bu(a,!1,n):void 0,{passive:!n})}))};function Qu(){var e=(0,t.useContext)(Ao);if(null===e)return[!0,null];var n=e.isPresent,r=e.onExitComplete,a=e.register,i=No();return(0,t.useEffect)((function(){return a(i)}),[]),!n&&r?[!1,function(){return null==r?void 0:r(i)}]:[!0]}function Ku(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Ju(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}Object.create,Object.create;var Zu=function(e,t,n){return Math.min(Math.max(n,e),t)};function el(e,t){return e*Math.sqrt(1-t*t)}var tl=["duration","bounce"],nl=["stiffness","damping","mass"];function rl(e,t){return t.some((function(t){return void 0!==e[t]}))}function al(e){var t=e.from,n=void 0===t?0:t,r=e.to,a=void 0===r?1:r,i=e.restSpeed,o=void 0===i?2:i,s=e.restDelta,u=Ju(e,["from","to","restSpeed","restDelta"]),l={done:!1,value:n},c=function(e){var t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!rl(e,nl)&&rl(e,tl)){var n=function(e){var t,n,r=e.duration,a=void 0===r?800:r,i=e.bounce,o=void 0===i?.25:i,s=e.velocity,u=void 0===s?0:s,l=e.mass,c=void 0===l?1:l,f=1-o;f=Zu(.05,1,f),a=Zu(.01,10,a/1e3),f<1?(t=function(e){var t=e*f,n=t*a;return.001-(t-u)/el(e,f)*Math.exp(-n)},n=function(e){var n=e*f*a,r=n*u+u,i=Math.pow(f,2)*Math.pow(e,2)*a,o=Math.exp(-n),s=el(Math.pow(e,2),f);return(.001-t(e)>0?-1:1)*((r-i)*o)/s}):(t=function(e){return Math.exp(-e*a)*((e-u)*a+1)-.001},n=function(e){return Math.exp(-e*a)*(a*a*(u-e))});var d=function(e,t,n){for(var r=n,a=1;a<12;a++)r-=e(r)/t(r);return r}(t,n,5/a);if(a*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:a};var p=Math.pow(d,2)*c;return{stiffness:p,damping:2*f*Math.sqrt(c*p),duration:a}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(u),f=c.stiffness,d=c.damping,p=c.mass,h=c.velocity,m=c.duration,v=c.isResolvedFromDuration,y=il,g=il;function b(){var e=h?-h/1e3:0,t=a-n,r=d/(2*Math.sqrt(f*p)),i=Math.sqrt(f/p)/1e3;if(void 0===s&&(s=Math.min(Math.abs(a-n)/100,.4)),r<1){var o=el(i,r);y=function(n){var s=Math.exp(-r*i*n);return a-s*((e+r*i*t)/o*Math.sin(o*n)+t*Math.cos(o*n))},g=function(n){var a=Math.exp(-r*i*n);return r*i*a*(Math.sin(o*n)*(e+r*i*t)/o+t*Math.cos(o*n))-a*(Math.cos(o*n)*(e+r*i*t)-o*t*Math.sin(o*n))}}else if(1===r)y=function(n){return a-Math.exp(-i*n)*(t+(e+i*t)*n)};else{var u=i*Math.sqrt(r*r-1);y=function(n){var o=Math.exp(-r*i*n),s=Math.min(u*n,300);return a-o*((e+r*i*t)*Math.sinh(s)+u*t*Math.cosh(s))/u}}}return b(),{next:function(e){var t=y(e);if(v)l.done=e>=m;else{var n=1e3*g(e),r=Math.abs(n)<=o,i=Math.abs(a-t)<=s;l.done=r&&i}return l.value=l.done?a:t,l},flipTarget:function(){h=-h;var e=[a,n];n=e[0],a=e[1],b()}}}al.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var il=function(e){return 0},ol=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},sl=function(e,t,n){return-n*e+n*t+e},ul=function(e,t){return function(n){return Boolean(As(n)&&Os.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},ll=function(e,t,n){return function(r){var a;if(!As(r))return r;var i=o(r.match(Ss),4),u=i[0],l=i[1],c=i[2],f=i[3];return s(a={},e,parseFloat(u)),s(a,t,parseFloat(l)),s(a,n,parseFloat(c)),s(a,"alpha",void 0!==f?parseFloat(f):1),a}},cl=ks(0,255),fl=Object.assign(Object.assign({},Ms),{transform:function(e){return Math.round(cl(e))}}),dl={test:ul("rgb","red"),parse:ll("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,a=e.alpha,i=void 0===a?1:a;return"rgba("+fl.transform(t)+", "+fl.transform(n)+", "+fl.transform(r)+", "+Es(Rs.transform(i))+")"}},pl={test:ul("#"),parse:function(e){var t="",n="",r="",a="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),a=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),a=e.substr(4,1),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}},transform:dl.transform},hl={test:ul("hsl","hue"),parse:ll("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,a=e.alpha,i=void 0===a?1:a;return"hsla("+Math.round(t)+", "+Ts.transform(Es(n))+", "+Ts.transform(Es(r))+", "+Es(Rs.transform(i))+")"}};function ml(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function vl(e){var t=e.hue,n=e.saturation,r=e.lightness,a=e.alpha;t/=360,r/=100;var i=0,o=0,s=0;if(n/=100){var u=r<.5?r*(1+n):r+n-r*n,l=2*r-u;i=ml(l,u,t+1/3),o=ml(l,u,t),s=ml(l,u,t-1/3)}else i=o=s=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:a}}var yl=function(e,t,n){var r=e*e,a=t*t;return Math.sqrt(Math.max(0,n*(a-r)+r))},gl=[pl,dl,hl],bl=function(e){return gl.find((function(t){return t.test(e)}))},wl=function(e){return"'".concat(e,"' is not an animatable color. Use the equivalent color code instead.")},xl=function(e,t){var n=bl(e),r=bl(t);wl(e),wl(t);var a=n.parse(e),i=r.parse(t);n===hl&&(a=vl(a),n=dl),r===hl&&(i=vl(i),r=dl);var o=Object.assign({},a);return function(e){for(var t in o)"alpha"!==t&&(o[t]=yl(a[t],i[t],e));return o.alpha=sl(a.alpha,i.alpha,e),n.transform(o)}},kl={test:function(e){return dl.test(e)||pl.test(e)||hl.test(e)},parse:function(e){return dl.test(e)?dl.parse(e):hl.test(e)?hl.parse(e):pl.parse(e)},transform:function(e){return As(e)?e:e.hasOwnProperty("red")?dl.transform(e):hl.transform(e)}},El="${c}",Sl="${n}";function Cl(e){"number"==typeof e&&(e="".concat(e));var t=[],n=0,r=e.match(Cs);r&&(n=r.length,e=e.replace(Cs,El),t.push.apply(t,m(r.map(kl.parse))));var a=e.match(Ss);return a&&(e=e.replace(Ss,Sl),t.push.apply(t,m(a.map(Ms.parse)))),{values:t,numColors:n,tokenised:e}}function Ol(e){return Cl(e).values}function Al(e){var t=Cl(e),n=t.values,r=t.numColors,a=t.tokenised,i=n.length;return function(e){for(var t=a,n=0;n<i;n++)t=t.replace(n<r?El:Sl,n<r?kl.transform(e[n]):Es(e[n]));return t}}var _l=function(e){return"number"==typeof e?0:e},Pl={test:function(e){var t,n,r,a;return isNaN(e)&&As(e)&&(null!==(n=null===(t=e.match(Ss))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(a=null===(r=e.match(Cs))||void 0===r?void 0:r.length)&&void 0!==a?a:0)>0},parse:Ol,createTransformer:Al,getAnimatableNone:function(e){var t=Ol(e);return Al(e)(t.map(_l))}},Tl=function(e){return"number"==typeof e};function Nl(e,t){return Tl(e)?function(n){return sl(e,t,n)}:kl.test(e)?xl(e,t):Ml(e,t)}var Il=function(e,t){var n=m(e),r=n.length,a=e.map((function(e,n){return Nl(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=a[t](e);return n}},Ll=function(e,t){var n=Object.assign(Object.assign({},e),t),r={};for(var a in n)void 0!==e[a]&&void 0!==t[a]&&(r[a]=Nl(e[a],t[a]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function jl(e){for(var t=Pl.parse(e),n=t.length,r=0,a=0,i=0,o=0;o<n;o++)r||"number"==typeof t[o]?r++:void 0!==t[o].hue?i++:a++;return{parsed:t,numNumbers:r,numRGB:a,numHSL:i}}var Ml=function(e,t){var n=Pl.createTransformer(t),r=jl(e),a=jl(t);return r.numHSL===a.numHSL&&r.numRGB===a.numRGB&&r.numNumbers>=a.numNumbers?Vu(Il(r.parsed,a.parsed),n):("Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition."),function(n){return"".concat(n>0?t:e)})},Rl=function(e,t){return function(n){return sl(e,t,n)}};function Bl(e,t,n){for(var r,a=[],i=n||("number"==typeof(r=e[0])?Rl:"string"==typeof r?kl.test(r)?xl:Ml:Array.isArray(r)?Il:"object"==typeof r?Ll:void 0),o=e.length-1,s=0;s<o;s++){var u=i(e[s],e[s+1]);if(t){var l=Array.isArray(t)?t[s]:t;u=Vu(l,u)}a.push(u)}return a}function Ul(e,t){var n=o(e,2),r=n[0],a=n[1],i=o(t,1)[0];return function(e){return i(ol(r,a,e))}}function Dl(e,t){var n=e.length,r=n-1;return function(a){var i=0,o=!1;if(a<=e[0]?o=!0:a>=e[r]&&(i=r-1,o=!0),!o){for(var s=1;s<n&&!(e[s]>a||s===r);s++);i=s-1}var u=ol(e[i],e[i+1],a);return t[i](u)}}function Vl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.clamp,a=void 0===r||r,i=n.ease,o=n.mixer,s=e.length;t.length,!i||!Array.isArray(i)||i.length,e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var u=Bl(t,i,o),l=2===s?Ul(e,u):Dl(e,u);return a?function(t){return l(Zu(e[0],e[s-1],t))}:l}var Fl=function(e){return function(t){return 1-e(1-t)}},zl=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},Hl=function(e){return function(t){return t*t*((e+1)*t-e)}},Wl=function(e){return e},ql=(2,function(e){return Math.pow(e,2)}),Yl=Fl(ql),Gl=zl(ql),$l=function(e){return 1-Math.sin(Math.acos(e))},Xl=Fl($l),Ql=zl(Xl),Kl=Hl(1.525),Jl=Fl(Kl),Zl=zl(Kl),ec=function(e){var t=Hl(1.525);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(),tc=function(e){if(1===e||0===e)return e;var t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},nc=Fl(tc);function rc(e,t){return e.map((function(){return t||Gl})).splice(0,e.length-1)}function ac(e){var t=e.from,n=void 0===t?0:t,r=e.to,a=void 0===r?1:r,i=e.ease,o=e.offset,s=e.duration,u=void 0===s?300:s,l={done:!1,value:n},c=Array.isArray(a)?a:[n,a],f=function(e,t){return e.map((function(e){return e*t}))}(o&&o.length===c.length?o:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(c),u);function d(){return Vl(f,c,{ease:Array.isArray(i)?i:rc(c,i)})}var p=d();return{next:function(e){return l.value=p(e),l.done=e>=u,l},flipTarget:function(){c.reverse(),p=d()}}}var ic={keyframes:ac,spring:al,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,a=void 0===r?0:r,i=e.power,o=void 0===i?.8:i,s=e.timeConstant,u=void 0===s?350:s,l=e.restDelta,c=void 0===l?.5:l,f=e.modifyTarget,d={done:!1,value:a},p=o*n,h=a+p,m=void 0===f?h:f(h);return m!==h&&(p=m-a),{next:function(e){var t=-p*Math.exp(-e/u);return d.done=!(t>c||t<-c),d.value=d.done?m:m+t,d},flipTarget:function(){}}}};function oc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e-t-n}var sc=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return Eo.update(t,!0)},stop:function(){return yo.update(t)}}};function uc(e){var t,n,r,a,i,o=e.from,s=e.autoplay,u=void 0===s||s,l=e.driver,c=void 0===l?sc:l,f=e.elapsed,d=void 0===f?0:f,p=e.repeat,h=void 0===p?0:p,m=e.repeatType,v=void 0===m?"loop":m,y=e.repeatDelay,g=void 0===y?0:y,b=e.onPlay,w=e.onStop,x=e.onComplete,k=e.onRepeat,E=e.onUpdate,S=Ju(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),C=S.to,O=0,A=S.duration,_=!1,P=!0,T=function(e){if(Array.isArray(e.to))return ac;if(ic[e.type])return ic[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?ac:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?al:ac}(S);(null===(n=(t=T).needsInterpolation)||void 0===n?void 0:n.call(t,o,C))&&(i=Vl([0,100],[o,C],{clamp:!1}),o=0,C=100);var N=T(Object.assign(Object.assign({},S),{from:o,to:C}));return u&&(null==b||b(),(r=c((function(e){if(P||(e=-e),d+=e,!_){var t=N.next(Math.max(0,d));a=t.value,i&&(a=i(a)),_=P?t.done:d<=0}null==E||E(a),_&&(0===O&&(null!=A||(A=d)),O<h?function(e,t,n,r){return r?e>=t+n:e<=-n}(d,A,g,P)&&(O++,"reverse"===v?d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?t-(e-t)+n:oc(t+-e,t,n)}(d,A,g,P=O%2==0):(d=oc(d,A,g),"mirror"===v&&N.flipTarget()),_=!1,k&&k()):(r.stop(),x&&x()))}))).start()),{stop:function(){null==w||w(),r.stop()}}}function lc(e,t){return t?e*(1e3/t):0}var cc=function(e){return 1e3*e},fc=function(e,t){return 1-3*t+3*e},dc=function(e,t){return 3*t-6*e},pc=function(e){return 3*e},hc=function(e,t,n){return((fc(t,n)*e+dc(t,n))*e+pc(t))*e},mc=function(e,t,n){return 3*fc(t,n)*e*e+2*dc(t,n)*e+pc(t)},vc=.1;var yc={linear:Wl,easeIn:ql,easeInOut:Gl,easeOut:Yl,circIn:$l,circInOut:Ql,circOut:Xl,backIn:Kl,backInOut:Zl,backOut:Jl,anticipate:ec,bounceIn:nc,bounceInOut:function(e){return e<.5?.5*(1-tc(1-2*e)):.5*tc(2*e-1)+.5},bounceOut:tc},gc=function(e){if(Array.isArray(e)){e.length;var t=ao(e,4);return function(e,t,n,r){if(e===t&&n===r)return Wl;for(var a=new Float32Array(11),i=0;i<11;++i)a[i]=hc(i*vc,e,n);function o(t){for(var r=0,i=1;10!==i&&a[i]<=t;++i)r+=vc;--i;var o=r+(t-a[i])/(a[i+1]-a[i])*vc,s=mc(o,e,n);return s>=.001?function(e,t,n,r){for(var a=0;a<8;++a){var i=mc(t,n,r);if(0===i)return t;t-=(hc(t,n,r)-e)/i}return t}(t,o,e,n):0===s?o:function(e,t,n,r,a){var i,o,s=0;do{(i=hc(o=t+(n-t)/2,r,a)-e)>0?n=o:t=o}while(Math.abs(i)>1e-7&&++s<10);return o}(t,r,r+vc,e,n)}return function(e){return 0===e||1===e?e:hc(o(e),t,r)}}(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),yc[e]):e},bc=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Pl.test(t)||t.startsWith("url(")))},wc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},xc=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},kc=function(){return{type:"keyframes",ease:"linear",duration:.3}},Ec=function(e){return{type:"keyframes",duration:.8,values:e}},Sc={x:wc,y:wc,z:wc,rotate:wc,rotateX:wc,rotateY:wc,rotateZ:wc,scaleX:xc,scaleY:xc,scale:xc,opacity:kc,backgroundColor:kc,color:kc,default:xc},Cc=new Set(["brightness","contrast","saturate","opacity"]);function Oc(e){var t=o(e.slice(0,-1).split("("),2),n=t[0],r=t[1];if("drop-shadow"===n)return e;var a=o(r.match(Ss)||[],1)[0];if(!a)return e;var i=r.replace(a,""),s=Cc.has(n)?1:0;return a!==r&&(s*=100),n+"("+s+i+")"}var Ac=/([a-z-]*)\(.*?\)/g,_c=Object.assign(Object.assign({},Pl),{getAnimatableNone:function(e){var t=e.match(Ac);return t?t.map(Oc).join(" "):e}}),Pc=no(no({},Ds),{color:kl,backgroundColor:kl,outlineColor:kl,fill:kl,stroke:kl,borderColor:kl,borderTopColor:kl,borderRightColor:kl,borderBottomColor:kl,borderLeftColor:kl,filter:_c,WebkitFilter:_c}),Tc=function(e){return Pc[e]};function Nc(e,t){var n,r=Tc(e);return r!==_c&&(r=Pl),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function Ic(e,t,n){var r;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=io([],ao(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=ro(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=no(no({},e),function(e,t){var n;return n=lu(t)?Ec:Sc[e]||Sc.default,no({to:t},n(t))}(n,t.to))),no(no({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,a=e.flip,i=e.loop,o=ro(e,["ease","times","yoyo","flip","loop"]),s=no({},o);return n&&(s.offset=n),o.duration&&(s.duration=cc(o.duration)),o.repeatDelay&&(s.repeatDelay=cc(o.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(gc):gc(t)),"tween"===o.type&&(s.type="keyframes"),(r||i||a)&&(r?s.repeatType="reverse":i?s.repeatType="loop":a&&(s.repeatType="mirror"),s.repeat=i||r||a||o.repeat),"spring"!==o.type&&(s.type="keyframes"),s}(e))}function Lc(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function jc(e){return"number"==typeof e?0:Nc("",e)}function Mc(e,t){return e[t]||e.default||e}function Rc(e,t,n,r){return void 0===r&&(r={}),t.start((function(a){var i,o,s=function(e,t,n,r,a){var i,o=Mc(r,e),s=null!==(i=o.from)&&void 0!==i?i:t.get(),u=bc(e,n);"none"===s&&u&&"string"==typeof n?s=Nc(e,n):Lc(s)&&"string"==typeof n?s=jc(n):!Array.isArray(n)&&Lc(n)&&"string"==typeof s&&(n=jc(s));var l=bc(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),l&&u&&!1!==o.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:a,onUpdate:function(e){return t.set(e)}};return"inertia"===o.type||"decay"===o.type?function(e){var t,n=e.from,r=void 0===n?0:n,a=e.velocity,i=void 0===a?0:a,o=e.min,s=e.max,u=e.power,l=void 0===u?.8:u,c=e.timeConstant,f=void 0===c?750:c,d=e.bounceStiffness,p=void 0===d?500:d,h=e.bounceDamping,m=void 0===h?10:h,v=e.restDelta,y=void 0===v?1:v,g=e.modifyTarget,b=e.driver,w=e.onUpdate,x=e.onComplete,k=e.onStop;function E(e){return void 0!==o&&e<o||void 0!==s&&e>s}function S(e){return void 0===o?s:void 0===s||Math.abs(o-e)<Math.abs(s-e)?o:s}function C(e){null==t||t.stop(),t=uc(Object.assign(Object.assign({},e),{driver:b,onUpdate:function(t){var n;null==w||w(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:x,onStop:k}))}function O(e){C(Object.assign({type:"spring",stiffness:p,damping:m,restDelta:y},e))}if(E(r))O({from:r,velocity:i,to:S(r)});else{var A=l*i+r;void 0!==g&&(A=g(A));var _,P,T=S(A),N=T===o?-1:1;C({type:"decay",from:r,velocity:i,timeConstant:f,power:l,restDelta:y,modifyTarget:g,onUpdate:E(A)?function(e){_=P,P=e,i=lc(e-_,ko().delta),(1===N&&e>T||-1===N&&e<T)&&O({from:e,to:T,velocity:i})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}(no(no({},r),o)):uc(no(no({},Ic(o,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=o.onUpdate)||void 0===t||t.call(o,e)},onComplete:function(){var e;r.onComplete(),null===(e=o.onComplete)||void 0===e||e.call(o)}}))}:function(){var e,r,i=cu(n);return t.set(i),a(),null===(e=null==o?void 0:o.onUpdate)||void 0===e||e.call(o,i),null===(r=null==o?void 0:o.onComplete)||void 0===r||r.call(o),{stop:function(){}}}}(e,t,n,r,a),u=function(e,t){var n,r;return null!==(r=null!==(n=(Mc(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),l=function(){return o=s()};return u?i=window.setTimeout(l,cc(u)):l(),function(){clearTimeout(i),null==o||o.stop()}}))}var Bc=function(e){return/^0[^.\s]+$/.test(e)};function Uc(e,t){-1===e.indexOf(t)&&e.push(t)}function Dc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Vc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Uc(this.subscriptions,e),function(){return Dc(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var a=0;a<r;a++){var i=this.subscriptions[a];i&&i(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Fc=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Vc,this.velocityUpdateSubscribers=new Vc,this.renderSubscribers=new Vc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=ko(),a=r.delta,i=r.timestamp;t.lastUpdated!==i&&(t.timeDelta=a,t.lastUpdated=i,Eo.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return Eo.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=function(e){return!isNaN(parseFloat(e))}(this.current)}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?lc(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function zc(e){return new Fc(e)}var Hc=function(e){return function(t){return t.test(e)}},Wc=[Ms,Ns,Ts,Ps,Ls,Is,{test:function(e){return"auto"===e},parse:function(e){return e}}],qc=function(e){return Wc.find(Hc(e))},Yc=io(io([],ao(Wc),!1),[kl,Pl],!1),Gc=function(e){return Yc.find(Hc(e))};function $c(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zc(n))}function Xc(e,t){if(t)return(t[e]||t.default||t).from}function Qc(e,t,n){var r;void 0===n&&(n={});var a=Jo(e,t,n.custom),i=(a||{}).transition,o=void 0===i?e.getDefaultTransition()||{}:i;n.transitionOverride&&(o=n.transitionOverride);var s=a?function(){return Kc(e,a,n)}:function(){return Promise.resolve()},u=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var a=o.delayChildren,i=void 0===a?0:a,s=o.staggerChildren,u=o.staggerDirection;return function(e,t,n,r,a,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===a&&(a=1);var o=[],s=(e.variantChildren.size-1)*r,u=1===a?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Jc).forEach((function(e,r){o.push(Qc(e,t,no(no({},i),{delay:n+u(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(o)}(e,t,i+r,s,u,n)}:function(){return Promise.resolve()},l=o.when;if(l){var c=ao("beforeChildren"===l?[s,u]:[u,s],2),f=c[0],d=c[1];return f().then(d)}return Promise.all([s(),u(n.delay)])}function Kc(e,t,n){var r,a=void 0===n?{}:n,i=a.delay,o=void 0===i?0:i,s=a.transitionOverride,u=a.type,l=e.makeTargetAnimatable(t),c=l.transition,f=void 0===c?e.getDefaultTransition():c,d=l.transitionEnd,p=ro(l,["transition","transitionEnd"]);s&&(f=s);var h=[],m=u&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[u]);for(var v in p){var y=e.getValue(v),g=p[v];if(!(!y||void 0===g||m&&Zc(m,v))){var b=no({delay:o},f);e.shouldReduceMotion&&hs(v)&&(b=no(no({},b),{type:!1,delay:0}));var w=Rc(v,y,g,b);h.push(w)}}return Promise.all(h).then((function(){d&&function(e,t){var n=Jo(e,t),r=n?e.makeTargetAnimatable(n,!1):{},a=r.transitionEnd,i=void 0===a?{}:a;r.transition;var o=ro(r,["transitionEnd","transition"]);for(var s in o=no(no({},o),i))$c(e,s,cu(o[s]))}(e,d)}))}function Jc(e,t){return e.sortNodePosition(t)}function Zc(e,t){var n=e.protectedKeys,r=e.needsAnimating,a=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,a}var ef=[mu.Animate,mu.InView,mu.Focus,mu.Hover,mu.Tap,mu.Drag,mu.Exit],tf=io([],ao(ef),!1).reverse(),nf=ef.length;function rf(e){var t=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var a=t.map((function(t){return Qc(e,t,n)}));r=Promise.all(a)}else if("string"==typeof t)r=Qc(e,t,n);else{var i="function"==typeof t?Jo(e,t,n.custom):t;r=Kc(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[mu.Animate]=af(!0),e[mu.InView]=af(),e[mu.Hover]=af(),e[mu.Tap]=af(),e[mu.Drag]=af(),e[mu.Focus]=af(),e[mu.Exit]=af(),e}(),r={},a=!0,i=function(t,n){var r=Jo(e,n);if(r){r.transition;var a=r.transitionEnd,i=ro(r,["transition","transitionEnd"]);t=no(no(no({},t),i),a)}return t};function o(o,s){for(var u,l=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set,p={},h=1/0,m=function(t){var r=tf[t],m=n[r],v=null!==(u=l[r])&&void 0!==u?u:c[r],y=Qo(v),g=r===s?m.isActive:null;!1===g&&(h=t);var b=v===c[r]&&v!==l[r]&&y;if(b&&a&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys=no({},p),!m.isActive&&null===g||!v&&!m.prevProp||uu(v)||"boolean"==typeof v)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Xo(t)&&!Ku(t,e)}(m.prevProp,v),x=w||r===s&&m.isActive&&!b&&y||t>h&&y,k=Array.isArray(v)?v:[v],E=k.reduce(i,{});!1===g&&(E={});var S=m.prevResolvedValues,C=void 0===S?{}:S,O=no(no({},C),E),A=function(e){x=!0,d.delete(e),m.needsAnimating[e]=!0};for(var _ in O){var P=E[_],T=C[_];p.hasOwnProperty(_)||(P!==T?lu(P)&&lu(T)?!Ku(P,T)||w?A(_):m.protectedKeys[_]=!0:void 0!==P?A(_):d.add(_):void 0!==P&&d.has(_)?A(_):m.protectedKeys[_]=!0)}m.prevProp=v,m.prevResolvedValues=E,m.isActive&&(p=no(no({},p),E)),a&&e.blockInitialAnimation&&(x=!1),x&&!b&&f.push.apply(f,io([],ao(k.map((function(e){return{animation:e,options:no({type:r},o)}}))),!1))},v=0;v<nf;v++)m(v);if(r=no({},p),d.size){var y={};d.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)})),f.push({animation:y})}var g=Boolean(f.length);return a&&!1===l.initial&&!e.manuallyAnimateOnMount&&(g=!1),a=!1,g?t(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:o,setActive:function(t,r,a){var i;if(n[t].isActive===r)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=o(a,t);for(var u in n)n[u].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function af(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var of={animation:$u((function(e){var n=e.visualElement,r=e.animate;n.animationState||(n.animationState=rf(n)),uu(r)&&(0,t.useEffect)((function(){return r.subscribe(n)}),[r])})),exit:$u((function(e){var n=e.custom,r=e.visualElement,a=ao(Qu(),2),i=a[0],o=a[1],s=(0,t.useContext)(Ao);(0,t.useEffect)((function(){var e,t;r.isPresent=i;var a=null===(e=r.animationState)||void 0===e?void 0:e.setActive(mu.Exit,!i,{custom:null!==(t=null==s?void 0:s.custom)&&void 0!==t?t:n});!i&&(null==a||a.then(o))}),[i])}))},sf=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},uf=function(e){return sf(e)&&e.hasOwnProperty("z")},cf=function(e,t){return Math.abs(e-t)};function ff(e,t){if(Tl(e)&&Tl(t))return cf(e,t);if(sf(e)&&sf(t)){var n=cf(e.x,t.x),r=cf(e.y,t.y),a=uf(e)&&uf(t)?cf(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(a,2))}}var df=function(){function e(e,t,n){var r=this,a=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=mf(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=ff(e.offset,{x:0,y:0})>=3;if(t||n){var a=e.point,i=ko().timestamp;r.history.push(no(no({},a),{timestamp:i}));var o=r.handlers,s=o.onStart,u=o.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),u&&u(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=pf(t,r.transformPagePoint),wu(e)&&0===e.buttons?r.handlePointerUp(e,t):Eo.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,a=n.onEnd,i=n.onSessionEnd,o=mf(pf(t,r.transformPagePoint),r.history);r.startEvent&&a&&a(e,o),i&&i(e,o)},!(xu(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=a;var i=pf(Cu(e),this.transformPagePoint),o=i.point,s=ko().timestamp;this.history=[no(no({},o),{timestamp:s})];var u=t.onSessionStart;u&&u(e,mf(i,this.history)),this.removeListeners=Vu(Tu(window,"pointermove",this.handlePointerMove),Tu(window,"pointerup",this.handlePointerUp),Tu(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),yo.update(this.updatePoint)},e}();function pf(e,t){return t?{point:t(e.point)}:e}function hf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mf(e,t){var n=e.point;return{point:n,delta:hf(n,yf(t)),offset:hf(n,vf(t)),velocity:gf(t,.1)}}function vf(e){return e[0]}function yf(e){return e[e.length-1]}function gf(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,a=yf(e);n>=0&&(r=e[n],!(a.timestamp-r.timestamp>cc(t)));)n--;if(!r)return{x:0,y:0};var i=(a.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var o={x:(a.x-r.x)/i,y:(a.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function bf(e){return e.max-e.min}function wf(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),ff(e,t)<n}function xf(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=sl(t.min,t.max,e.origin),e.scale=bf(n)/bf(t),(wf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=sl(n.min,n.max,e.origin)-e.originPoint,(wf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function kf(e,t,n,r){xf(e.x,t.x,n.x,null==r?void 0:r.originX),xf(e.y,t.y,n.y,null==r?void 0:r.originY)}function Ef(e,t,n){e.min=n.min+t.min,e.max=e.min+bf(t)}function Sf(e,t,n){e.min=t.min-n.min,e.max=e.min+bf(t)}function Cf(e,t,n){Sf(e.x,t.x,n.x),Sf(e.y,t.y,n.y)}function Of(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Af(e,t){var n,r=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=ao([a,r],2))[0],a=n[1]),{min:r,max:a}}var _f=.35;function Pf(e,t,n){return{min:Tf(e,t),max:Tf(e,n)}}function Tf(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Nf(e){return[e("x"),e("y")]}function If(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Lf(e){return void 0===e||1===e}function jf(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Lf(t)||!Lf(n)||!Lf(r)}function Mf(e){return jf(e)||Rf(e.x)||Rf(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Rf(e){return e&&"0%"!==e}function Bf(e,t,n){return n+t*(e-n)}function Uf(e,t,n,r,a){return void 0!==a&&(e=Bf(e,a,r)),Bf(e,n,r)+t}function Df(e,t,n,r,a){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Uf(e.min,t,n,r,a),e.max=Uf(e.max,t,n,r,a)}function Vf(e,t){var n=t.x,r=t.y;Df(e.x,n.translate,n.scale,n.originPoint),Df(e.y,r.translate,r.scale,r.originPoint)}function Ff(e,t){e.min=e.min+t,e.max=e.max+t}function zf(e,t,n){var r=ao(n,3),a=r[0],i=r[1],o=r[2],s=void 0!==t[o]?t[o]:.5,u=sl(e.min,e.max,s);Df(e,t[a],t[i],u,t.scale)}var Hf=["x","scaleX","originX"],Wf=["y","scaleY","originY"];function qf(e,t){zf(e.x,t,Hf),zf(e.y,t,Wf)}function Yf(e,t){return If(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var Gf=new WeakMap,$f=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,a=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new df(e,{onSessionStart:function(e){n.stopAnimation(),a&&n.snapToCursor(Cu(e,"page").point)},onStart:function(e,t){var r,a=n.getProps(),i=a.drag,o=a.dragPropagation,s=a.onDragStart;(!i||o||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Mu(i),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Nf((function(e){var t,r,a=n.getAxisMotionValue(e).get()||0;if(Ts.test(a)){var i=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];i&&(a=bf(i)*(parseFloat(a)/100))}n.originPoint[e]=a})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(mu.Drag,!0))},onMove:function(e,t){var r=n.getProps(),a=r.dragPropagation,i=r.dragDirectionLock,o=r.onDirectionLock,s=r.onDrag;if(a||n.openGlobalLock){var u=t.offset;if(i&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(u),void(null!==n.currentDirection&&(null==o||o(n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var a=this.getProps().onDragEnd;null==a||a(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(mu.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Xf(e,r,this.currentDirection)){var a=this.getAxisMotionValue(e),i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,t,n){var r=t.min,a=t.max;return void 0!==r&&e<r?e=n?sl(r,e,n.min):Math.max(e,r):void 0!==a&&e>a&&(e=n?sl(a,e,n.max):Math.min(e,a)),e}(i,this.constraints[e],this.elastic[e])),a.set(i)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,a=(this.visualElement.projection||{}).layout,i=this.constraints;n&&$o(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!a)&&function(e,t){var n=t.top,r=t.left,a=t.bottom,i=t.right;return{x:Of(e.x,r,i),y:Of(e.y,n,a)}}(a.actual,n),this.elastic=function(e){return void 0===e&&(e=_f),!1===e?e=0:!0===e&&(e=_f),{x:Pf(e,"left","right"),y:Pf(e,"top","bottom")}}(r),i!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Nf((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(a.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!$o(t))return!1;var r=t.current,a=this.visualElement.projection;if(!a||!a.layout)return!1;var i=function(e,t,n){var r=Yf(e,n),a=t.scroll;return a&&(Ff(r.x,a.x),Ff(r.y,a.y)),r}(r,a.root,this.visualElement.getTransformPagePoint()),o=function(e,t){return{x:Af(e.x,t.x),y:Af(e.y,t.y)}}(a.layout.actual,i);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(o));this.hasMutatedConstraints=!!s,s&&(o=If(s))}return o},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,a=n.dragMomentum,i=n.dragElastic,o=n.dragTransition,s=n.dragSnapToOrigin,u=n.onDragTransitionEnd,l=this.constraints||{},c=Nf((function(n){var u;if(Xf(n,r,t.currentDirection)){var c=null!==(u=null==l?void 0:l[n])&&void 0!==u?u:{};s&&(c={min:0,max:0});var f=i?200:1e6,d=i?40:1e7,p=no(no({type:"inertia",velocity:a?e[n]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},o),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(u)},e.prototype.startAxisValueAnimation=function(e,t){return Rc(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Nf((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Nf((function(n){if(Xf(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,a=t.getAxisMotionValue(n);if(r&&r.layout){var i=r.layout.actual[n],o=i.min,s=i.max;a.set(e[n]-sl(o,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,a=n.dragConstraints,i=this.visualElement.projection;if($o(a)&&i&&this.constraints){this.stopAnimation();var o={x:0,y:0};Nf((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();o[e]=function(e,t){var n=.5,r=bf(e),a=bf(t);return a>r?n=ol(t.min,t.max-r,e.min):r>a&&(n=ol(e.min,e.max-a,t.min)),Zu(0,1,n)}({min:r,max:r},t.constraints[e])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout(),this.resolveConstraints(),Nf((function(e){if(Xf(e,r,null)){var n=t.getAxisMotionValue(e),a=t.constraints[e],i=a.min,s=a.max;n.set(sl(i,s,o[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Gf.set(this.visualElement,this);var n=Tu(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,a=n.dragListener;r&&(void 0===a||a)&&t.start(e)})),r=function(){$o(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,i=a.addEventListener("measure",r);a&&!a.layout&&(null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout()),r();var o=gu(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return a.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Nf((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){o(),n(),i()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,a=void 0!==r&&r,i=e.dragPropagation,o=void 0!==i&&i,s=e.dragConstraints,u=void 0!==s&&s,l=e.dragElastic,c=void 0===l?_f:l,f=e.dragMomentum,d=void 0===f||f;return no(no({},e),{drag:n,dragDirectionLock:a,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:d})},e}();function Xf(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Qf={pan:$u((function(e){var n=e.onPan,r=e.onPanStart,a=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=n||r||a||i,u=(0,t.useRef)(null),l=(0,t.useContext)(Ho).transformPagePoint,c={onSessionStart:i,onStart:r,onMove:n,onEnd:function(e,t){u.current=null,a&&a(e,t)}};(0,t.useEffect)((function(){null!==u.current&&u.current.updateHandlers(c)})),Nu(o,"pointerdown",s&&function(e){u.current=new df(e,c,{transformPagePoint:l})}),Mo((function(){return u.current&&u.current.end()}))})),drag:$u((function(e){var n=e.dragControls,r=e.visualElement,a=_o((function(){return new $f(r)}));(0,t.useEffect)((function(){return n&&n.subscribe(a)}),[a,n]),(0,t.useEffect)((function(){return a.addListeners()}),[a])}))},Kf=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Jf=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,a=e.getBaseTarget,i=e.makeTargetAnimatable,o=e.measureViewportBox,s=e.render,u=e.readValueFromInstance,l=e.removeValueFromRenderState,c=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(e,t){var d=e.parent,p=e.props,h=e.presenceId,m=e.blockInitialAnimation,v=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var g,b,w=!1,x=v.latestValues,k=v.renderState,E=function(){var e=Kf.map((function(){return new Vc})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Kf.forEach((function(r){var a,i="on"+r,o=e[i];null===(a=t[r])||void 0===a||a.call(t),o&&(t[r]=n[i](o))}))}};return e.forEach((function(e,t){n["on"+Kf[t]]=function(t){return e.add(t)},n["notify"+Kf[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,io([],ao(t),!1))}})),n}(),S=new Map,C=new Map,O={},A=no({},x);function _(){g&&w&&(P(),s(g,k,p.style,B.projection))}function P(){r(B,k,x,t,p)}function T(){E.notifyUpdate(x)}function N(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&Eo.update(T,!1,!0)})),r=t.onRenderRequest(B.scheduleRender);C.set(e,(function(){n(),r()}))}var I=f(p);for(var L in I){var j=I[L];void 0!==x[L]&&gs(j)&&j.set(x[L],!1)}var M=Zo(p),R=es(p),B=no(no({treeType:n,current:null,depth:d?d.depth+1:0,parent:d,children:new Set,presenceId:h,shouldReduceMotion:y,variantChildren:R?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==d?void 0:d.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(g)},mount:function(e){w=!0,g=B.current=e,B.projection&&B.projection.mount(e),R&&d&&!M&&(b=null==d?void 0:d.addVariantChild(B)),S.forEach((function(e,t){return N(t,e)})),null==d||d.children.add(B),B.setProps(p)},unmount:function(){var e;null===(e=B.projection)||void 0===e||e.unmount(),yo.update(T),yo.render(_),C.forEach((function(e){return e()})),null==b||b(),null==d||d.children.delete(B),E.clearAllListeners(),g=void 0,w=!1},addVariantChild:function(e){var t,n=B.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(B.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return R?B:null==d?void 0:d.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){B.isVisible!==e&&(B.isVisible=e,B.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),i(B,e,p,t)},measureViewportBox:function(){return o(g,p)},addValue:function(e,t){B.hasValue(e)&&B.removeValue(e),S.set(e,t),x[e]=t.get(),N(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=C.get(e))||void 0===t||t(),C.delete(e),delete x[e],l(e,k)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=zc(t),B.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:u(g,e,t)},setBaseTarget:function(e,t){A[e]=t},getBaseTarget:function(e){if(a){var t=a(p,e);if(void 0!==t&&!gs(t))return t}return A[e]}},E),{build:function(){return P(),k},scheduleRender:function(){Eo.render(_,!1,!0)},syncRender:_,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&B.scheduleRender(),p=e,E.updatePropListeners(e),O=function(e,t,n){var r;for(var a in t){var i=t[a],o=n[a];if(gs(i))e.addValue(a,i);else if(gs(o))e.addValue(a,zc(i));else if(o!==i)if(e.hasValue(a)){var s=e.getValue(a);!s.hasAnimated&&s.set(i)}else e.addValue(a,zc(null!==(r=e.getStaticValue(a))&&void 0!==r?r:i))}for(var a in n)void 0===t[a]&&e.removeValue(a);return t}(B,f(p),O)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==d?void 0:d.getVariantContext();if(!M){var t=(null==d?void 0:d.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<ed;r++){var a=Zf[r],i=p[a];(Qo(i)||!1===i)&&(n[a]=i)}return n}});return B}},Zf=io(["initial"],ao(ef),!1),ed=Zf.length;function td(e){return"string"==typeof e&&e.startsWith("var(--")}var nd=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rd(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=ao(function(e){var t=nd.exec(e);if(!t)return[,];var n=ao(t,3);return[n[1],n[2]]}(e),2),a=r[0],i=r[1];if(a){var o=window.getComputedStyle(t).getPropertyValue(a);return o?o.trim():td(i)?rd(i,t,n+1):i}}var ad,id=new Set(["width","height","top","left","right","bottom","x","y"]),od=function(e){return id.has(e)},sd=function(e,t){e.set(t,!1),e.set(t)},ud=function(e){return e===Ms||e===Ns};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(ad||(ad={}));var ld=function(e,t){return parseFloat(e.split(", ")[t])},cd=function(e,t){return function(n,r){var a=r.transform;if("none"===a||!a)return 0;var i=a.match(/^matrix3d\((.+)\)$/);if(i)return ld(i[1],t);var o=a.match(/^matrix\((.+)\)$/);return o?ld(o[1],e):0}},fd=new Set(["x","y","z"]),dd=fs.filter((function(e){return!fd.has(e)})),pd={width:function(e,t){var n=e.x,r=t.paddingLeft,a=void 0===r?"0":r,i=t.paddingRight,o=void 0===i?"0":i;return n.max-n.min-parseFloat(a)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,a=void 0===r?"0":r,i=t.paddingBottom,o=void 0===i?"0":i;return n.max-n.min-parseFloat(a)-parseFloat(o)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:cd(4,13),y:cd(5,14)};function hd(e,t,n,r){return function(e){return Object.keys(e).some(od)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=no({},t),r=no({},r);var a=Object.keys(t).filter(od),i=[],o=!1,s=[];if(a.forEach((function(a){var u=e.getValue(a);if(e.hasValue(a)){var l,c=n[a],f=qc(c),d=t[a];if(lu(d)){var p=d.length,h=null===d[0]?1:0;c=d[h],f=qc(c);for(var m=h;m<p;m++)l?qc(d[m]):(l=qc(d[m]))===f||ud(f)&&ud(l)}else l=qc(d);if(f!==l)if(ud(f)&&ud(l)){var v=u.get();"string"==typeof v&&u.set(parseFloat(v)),"string"==typeof d?t[a]=parseFloat(d):Array.isArray(d)&&l===Ns&&(t[a]=d.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==l?void 0:l.transform)&&(0===c||0===d)?0===c?u.set(l.transform(c)):t[a]=f.transform(d):(o||(i=function(e){var t=[];return dd.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),o=!0),s.push(a),r[a]=void 0!==r[a]?r[a]:t[a],sd(u,d))}})),s.length){var u=s.indexOf("height")>=0?window.pageYOffset:null,l=function(e,t,n){var r=t.measureViewportBox(),a=t.getInstance(),i=getComputedStyle(a),o=i.display,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=pd[e](r,i)})),t.syncRender();var u=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);sd(r,s[n]),e[n]=pd[n](u,i)})),e}(t,e,s);return i.length&&i.forEach((function(t){var n=ao(t,2),r=n[0],a=n[1];e.getValue(r).set(a)})),e.syncRender(),null!==u&&window.scrollTo({top:u}),{target:l,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var md={treeType:"dom",readValueFromInstance:function(e,t){if(hs(t)){var n=Tc(t);return n&&n.default||0}var r,a=(r=e,window.getComputedStyle(r));return(ws(t)?a.getPropertyValue(t):a[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Yf(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var a=n.transformValues;void 0===r&&(r=!0);var i=t.transition,o=t.transitionEnd,s=ro(t,["transition","transitionEnd"]),u=function(e,t,n){var r,a,i={};for(var o in e)i[o]=null!==(r=Xc(o,t))&&void 0!==r?r:null===(a=n.getValue(o))||void 0===a?void 0:a.get();return i}(s,i||{},e);if(a&&(o&&(o=a(o)),s&&(s=a(s)),u&&(u=a(u))),r){!function(e,t,n){var r,a,i,o,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),u=s.length;if(u)for(var l=0;l<u;l++){var c=s[l],f=t[c],d=null;Array.isArray(f)&&(d=f[0]),null===d&&(d=null!==(a=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==a?a:t[c]),null!=d&&("string"==typeof d&&(/^\-?\d*\.?\d+$/.test(d)||Bc(d))?d=parseFloat(d):!Gc(d)&&Pl.test(f)&&(d=Nc(c,f)),e.addValue(c,zc(d)),null!==(i=(o=n)[c])&&void 0!==i||(o[c]=d),e.setBaseTarget(c,d))}}(e,s,u);var l=function(e,t,n,r){var a=function(e,t,n){var r,a=ro(t,[]),i=e.getInstance();if(!(i instanceof Element))return{target:a,transitionEnd:n};for(var o in n&&(n=no({},n)),e.forEachValue((function(e){var t=e.get();if(td(t)){var n=rd(t,i);n&&e.set(n)}})),a){var s=a[o];if(td(s)){var u=rd(s,i);u&&(a[o]=u,n&&(null!==(r=n[o])&&void 0!==r||(n[o]=s)))}}return{target:a,transitionEnd:n}}(e,t,r);return hd(e,t=a.target,n,r=a.transitionEnd)}(e,s,u,o);o=l.transitionEnd,s=l.target}return no({transition:i,transitionEnd:o},s)},scrapeMotionValuesFromProps:ou,build:function(e,t,n,r,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Vs(t,n,r,a.transformTemplate)},render:ru},vd=Jf(md),yd=Jf(no(no({},md),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return hs(t)?(null===(n=Tc(t))||void 0===n?void 0:n.default)||0:(t=au.has(t)?t:nu(t),e.getAttribute(t))},scrapeMotionValuesFromProps:su,build:function(e,t,n,r,a){Ks(t,n,r,a.transformTemplate)},render:iu})),gd=function(e,t){return us(e)?yd(t,{enableHardwareAcceleration:!1}):vd(t,{enableHardwareAcceleration:!0})};function bd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var wd={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Ns.test(e))return e;e=parseFloat(e)}var n=bd(e,t.target.x),r=bd(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},xd="_$css",kd={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,a=e,i=e.includes("var("),o=[];i&&(e=e.replace(nd,(function(e){return o.push(e),xd})));var s=Pl.parse(e);if(s.length>5)return a;var u=Pl.createTransformer(e),l="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,f=r.y.scale*n.y;s[0+l]/=c,s[1+l]/=f;var d=sl(c,f,.5);"number"==typeof s[2+l]&&(s[2+l]/=d),"number"==typeof s[3+l]&&(s[3+l]/=d);var p=u(s);if(i){var h=0;p=p.replace(xd,(function(){var e=o[h];return h++,e}))}return p}},Ed=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return to(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,a=n.layoutGroup,i=n.switchLayoutGroup,o=n.layoutId,s=r.projection;e=Sd,Object.assign(ls,e),s&&((null==a?void 0:a.group)&&a.group.add(s),(null==i?void 0:i.register)&&o&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(no(no({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),ns.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,a=n.visualElement,i=n.drag,o=n.isPresent,s=a.projection;return s?(s.isPresent=o,i||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||Eo.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,a=t.projection;a&&(a.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(a),(null==r?void 0:r.deregister)&&r.deregister(a))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(t.Component),Sd={borderRadius:no(no({},wd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:wd,borderTopRightRadius:wd,borderBottomLeftRadius:wd,borderBottomRightRadius:wd,boxShadow:kd},Cd={measureLayout:function(e){var n=ao(Qu(),2),r=n[0],a=n[1],i=(0,t.useContext)(jo);return t.createElement(Ed,no({},e,{layoutGroup:i,switchLayoutGroup:(0,t.useContext)(as),isPresent:r,safeToRemove:a}))}},Od=["TopLeft","TopRight","BottomLeft","BottomRight"],Ad=Od.length,_d=function(e){return"string"==typeof e?parseFloat(e):e},Pd=function(e){return"number"==typeof e||Ns.test(e)};function Td(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Nd=Ld(0,.5,Xl),Id=Ld(.5,.95,Wl);function Ld(e,t,n){return function(r){return r<e?0:r>t?1:n(ol(e,t,r))}}function jd(e,t){e.min=t.min,e.max=t.max}function Md(e,t){jd(e.x,t.x),jd(e.y,t.y)}function Rd(e,t,n,r,a){return e=Bf(e-=t,1/n,r),void 0!==a&&(e=Bf(e,1/a,r)),e}function Bd(e,t,n,r,a){var i=ao(n,3),o=i[0],s=i[1],u=i[2];!function(e,t,n,r,a,i,o){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===i&&(i=e),void 0===o&&(o=e),Ts.test(t)&&(t=parseFloat(t),t=sl(o.min,o.max,t/100)-o.min),"number"==typeof t){var s=sl(i.min,i.max,r);e===i&&(s-=t),e.min=Rd(e.min,t,n,s,a),e.max=Rd(e.max,t,n,s,a)}}(e,t[o],t[s],t[u],t.scale,r,a)}var Ud=["x","scaleX","originX"],Dd=["y","scaleY","originY"];function Vd(e,t,n,r){Bd(e.x,t,Ud,null==n?void 0:n.x,null==r?void 0:r.x),Bd(e.y,t,Dd,null==n?void 0:n.y,null==r?void 0:r.y)}function Fd(e){return 0===e.translate&&1===e.scale}function zd(e){return Fd(e.x)&&Fd(e.y)}function Hd(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Wd=function(){function e(){this.members=[]}return e.prototype.add=function(e){Uc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Dc(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var a=this.members[r];if(!1!==a.isPresent){t=a;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,a,i;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(i=null===(r=e.resumingFrom)||void 0===r?void 0:(a=r.options).onExitComplete)||void 0===i||i.call(a)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function qd(e,t,n){var r=e.x.translate/t.x,a=e.y.translate/t.y,i="translate3d(".concat(r,"px, ").concat(a,"px, 0) ");if(i+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var o=n.rotate,s=n.rotateX,u=n.rotateY;o&&(i+="rotate(".concat(o,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),u&&(i+="rotateY(".concat(u,"deg) "))}var l=e.x.scale*t.x,c=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(i+="scale(".concat(l,", ").concat(c,")"))?"none":i}var Yd=function(e,t){return e.depth-t.depth},Gd=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Uc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Dc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Yd),this.isDirty=!1,this.children.forEach(e)},e}();function $d(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,a=e.checkIsScrollRoot,i=e.resetTransform;return function(){function e(e,t,r){var a=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){a.isUpdating&&(a.isUpdating=!1,a.clearAllSnapshots())},this.updateProjection=function(){a.nodes.forEach(tp),a.nodes.forEach(np)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?io(io([],ao(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var i=0;i<this.path.length;i++)this.path[i].shouldResetTransform=!0;this.root===this&&(this.nodes=new Gd)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Vc),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,io([],ao(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,a=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var i=this.options,o=i.layoutId,s=i.layout,u=i.visualElement;if(u&&!u.getInstance()&&u.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||o)&&(this.isLayoutDirty=!0),t){var l,c=function(){return a.root.updateBlockedByResize=!1};t(e,(function(){a.root.updateBlockedByResize=!0,clearTimeout(l),l=window.setTimeout(c,250),ns.hasAnimatedSinceResize&&(ns.hasAnimatedSinceResize=!1,a.nodes.forEach(ep))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&u&&(o||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,i,o,s=e.delta,l=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,f=e.layout;if(a.isTreeAnimationBlocked())return a.target=void 0,void(a.relativeTarget=void 0);var d=null!==(n=null!==(t=a.options.transition)&&void 0!==t?t:u.getDefaultTransition())&&void 0!==n?n:up,p=u.getProps(),h=p.onLayoutAnimationStart,m=p.onLayoutAnimationComplete,v=!a.targetLayout||!Hd(a.targetLayout,f)||c,y=!l&&c;if((null===(r=a.resumeFrom)||void 0===r?void 0:r.instance)||y||l&&(v||!a.currentAnimation)){a.resumeFrom&&(a.resumingFrom=a.resumeFrom,a.resumingFrom.resumingFrom=void 0),a.setAnimationOrigin(s,y);var g=no(no({},Mc(d,"layout")),{onPlay:h,onComplete:m});u.shouldReduceMotion&&(g.delay=0,g.type=!1),a.startAnimation(g)}else l||0!==a.animationProgress||a.finishAnimation(),a.isLead()&&(null===(o=(i=a.options).onExitComplete)||void 0===o||o.call(i));a.targetLayout=f}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,yo.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(rp))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var a=0;a<this.path.length;a++){var i=this.path[a];i.shouldResetTransform=!0,i.updateScroll()}var o=this.options,s=o.layoutId,u=o.layout;if(void 0!==s||u){var l=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==l?void 0:l(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Jd);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(lp),this.potentialNodes.clear()),this.nodes.forEach(Zd),this.nodes.forEach(Xd),this.nodes.forEach(Qd),this.clearAllSnapshots(),go.update(),go.preRender(),go.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Kd),this.sharedNodes.forEach(ap)},e.prototype.scheduleUpdateProjection=function(){Eo.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;Eo.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));fp(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();fp(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=a(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(i){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!zd(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,a=null==r?void 0:r(this.latestValues,""),o=a!==this.prevTransformTemplateValue;t&&(n||Mf(this.latestValues)||o)&&(i(this.instance,a),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Ff(t.x,n.x),Ff(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Md(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],a=r.scroll,i=r.options,o=r.isScrollRoot;if(r!==this.root&&a&&i.layoutScroll){if(o){Md(t,e);var s=this.root.scroll;s&&(Ff(t.x,-s.x),Ff(t.y,-s.y))}Ff(t.x,a.x),Ff(t.y,a.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Md(n,e);for(var r=0;r<this.path.length;r++){var a=this.path[r];!t&&a.options.layoutScroll&&a.scroll&&a!==a.root&&qf(n,{x:-a.scroll.x,y:-a.scroll.y}),Mf(a.latestValues)&&qf(n,a.latestValues)}return Mf(this.latestValues)&&qf(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Md(n,e);for(var r=0;r<this.path.length;r++){var a=this.path[r];if(a.instance&&Mf(a.latestValues)){jf(a.latestValues)&&a.updateSnapshot();var i={x:{min:0,max:0},y:{min:0,max:0}};Md(i,a.measure()),Vd(n,a.latestValues,null===(t=a.snapshot)||void 0===t?void 0:t.layout,i)}}return Mf(this.latestValues)&&Vd(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=no(no(no({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,a=this.options,i=a.layout,o=a.layoutId;this.layout&&(i||o)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Cf(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Md(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,Ef(t.x,n.x,r.x),Ef(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Md(this.target,this.layout.actual),Vf(this.target,this.targetDelta)):Md(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Cf(this.relativeTargetOrigin,this.target,this.relativeParent.target),Md(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Mf(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var a=this.getLead();Md(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var a,i;void 0===r&&(r=!1);var o=n.length;if(o){var s,u;t.x=t.y=1;for(var l=0;l<o;l++)u=(s=n[l]).projectionDelta,"contents"!==(null===(i=null===(a=s.instance)||void 0===a?void 0:a.style)||void 0===i?void 0:i.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&qf(e,{x:-s.scroll.x,y:-s.scroll.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,Vf(e,u)),r&&Mf(s.latestValues)&&qf(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==a);var i=a.target;if(i){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var o=this.treeScale.x,s=this.treeScale.y,u=this.projectionTransform;kf(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=qd(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===o&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",i))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var a=this.snapshot,i=(null==a?void 0:a.latestValues)||{},o=no({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var u={x:{min:0,max:0},y:{min:0,max:0}},l=null==a?void 0:a.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,f=Boolean(l&&!c&&!0===this.options.crossfade&&!this.path.some(sp));this.animationProgress=0,this.mixTargetDelta=function(t){var n,a=t/1e3;ip(s.x,e.x,a),ip(s.y,e.y,a),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(Cf(u,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){op(e.x,t.x,n.x,r),op(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,u,a)),l&&(r.animationValues=o,function(e,t,n,r,a,i){var o,s,u,l;a?(e.opacity=sl(0,null!==(o=n.opacity)&&void 0!==o?o:1,Nd(r)),e.opacityExit=sl(null!==(s=t.opacity)&&void 0!==s?s:1,0,Id(r))):i&&(e.opacity=sl(null!==(u=t.opacity)&&void 0!==u?u:1,null!==(l=n.opacity)&&void 0!==l?l:1,r));for(var c=0;c<Ad;c++){var f="border".concat(Od[c],"Radius"),d=Td(t,f),p=Td(n,f);void 0===d&&void 0===p||(d||(d=0),p||(p=0),0===d||0===p||Pd(d)===Pd(p)?(e[f]=Math.max(sl(_d(d),_d(p),r),0),(Ts.test(p)||Ts.test(d))&&(e[f]+="%")):e[f]=p)}(t.rotate||n.rotate)&&(e.rotate=sl(t.rotate||0,n.rotate||0,r))}(o,i,r.latestValues,a,f,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=a},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(yo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Eo.update((function(){ns.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=gs(0)?0:zc(0);return Rc("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,no(no({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,a=e.latestValues;t&&n&&r&&(Md(t,n),qf(t,a),kf(this.projectionDeltaWithTransform,this.layoutCorrected,t,a))},e.prototype.registerSharedNode=function(e,t){var n,r,a;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Wd),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(a=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===a?void 0:a.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,a=t.preserveFollowOpacity,i=this.getStack();i&&i.promote(this,a),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<cs.length;r++){var a="rotate"+cs[r];e.getStaticValue(a)&&(t=!0,n[a]=e.getStaticValue(a),e.setStaticValue(a,0))}if(t){for(var a in null==e||e.syncRender(),n)e.setStaticValue(a,n[a]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,a,i,o;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var u=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=fu(e.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none",s;var l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=fu(e.pointerEvents)||""),this.hasProjected&&!Mf(this.latestValues)&&(c.transform=u?u({},""):"none",this.hasProjected=!1),c}var f=l.animationValues||l.latestValues;this.applyTransformsToTarget(),s.transform=qd(this.projectionDeltaWithTransform,this.treeScale,f),u&&(s.transform=u(f,s.transform));var d=this.projectionDelta,p=d.x,h=d.y;for(var m in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),l.animationValues?s.opacity=l===this?null!==(a=null!==(r=f.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==a?a:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:s.opacity=l===this?null!==(i=f.opacity)&&void 0!==i?i:"":null!==(o=f.opacityExit)&&void 0!==o?o:0,ls)if(void 0!==f[m]){var v=ls[m],y=v.correct,g=v.applyTo,b=y(f[m],l);if(g)for(var w=g.length,x=0;x<w;x++)s[g[x]]=b;else s[m]=b}return this.options.layoutId&&(s.pointerEvents=l===this?fu(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Jd),this.root.sharedNodes.clear()},e}()}function Xd(e){e.updateLayout()}function Qd(e){var t,n,r,a,i=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){var o=e.layout,s=o.actual,u=o.measured;"size"===e.options.animationType?Nf((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=bf(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&Nf((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=bf(s[e]);t.max=t.min+n}));var l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};kf(l,s,i.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i.isShared?kf(c,e.applyTransform(u,!0),i.measured):kf(c,s,i.layout);var f=!zd(l),d=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,m=p.layout;if(h&&m){var v={x:{min:0,max:0},y:{min:0,max:0}};Cf(v,i.layout,h.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};Cf(y,s,m.actual),Hd(v,y)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:c,layoutDelta:l,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&(null===(a=(r=e.options).onExitComplete)||void 0===a||a.call(r));e.options.transition=void 0}function Kd(e){e.clearSnapshot()}function Jd(e){e.clearMeasurements()}function Zd(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function ep(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function tp(e){e.resolveTargetDelta()}function np(e){e.calcProjection()}function rp(e){e.resetRotation()}function ap(e){e.removeLeadSnapshot()}function ip(e,t,n){e.translate=sl(t.translate,0,n),e.scale=sl(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function op(e,t,n,r){e.min=sl(t.min,n.min,r),e.max=sl(t.max,n.max,r)}function sp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var up={duration:.45,ease:[.4,0,.1,1]};function lp(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var a=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));a&&e.mount(a,!0)}function cp(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function fp(e){cp(e.x),cp(e.y)}var dp=$d({attachResizeListener:function(e,t){return gu(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),pp={current:void 0},hp=$d({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!pp.current){var e=new dp(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),pp.current=e}return pp.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),mp=no(no(no(no({},of),Xu),Qf),Cd),vp=function(e){function t(t,n){return void 0===n&&(n={}),os(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}((function(e,t){return function(e,t,n,r,a){var i=t.forwardMotionProps,o=void 0!==i&&i,s=us(e)?vu:yu;return no(no({},s),{preloadedFeatures:n,useRender:eu(o),createVisualElement:r,projectionNodeConstructor:a,Component:e})}(e,t,mp,gd,hp)})),yp={success:"tw-bg-green-300",info:"tw-bg-sky-300",warning:"tw-bg-amber-300",error:"tw-bg-red-300"},gp={success:"tw-bg-green-500",info:"tw-bg-sky-500",warning:"tw-bg-amber-500",error:"tw-bg-red-500"},bp={success:"😊",info:"🔔",warning:"😮",error:"😢"};function wp(e){var n=(0,t.useContext)(w).dispatch,r=o((0,t.useState)(!1),2),a=r[0],i=r[1],s=(0,t.useRef)(null);(0,t.useEffect)((function(){var t,r;return e.timeoutMs&&(t=setTimeout((function(){return n(I(e.id))}),300+e.timeoutMs),r=setTimeout((function(){return i(!0)}),300)),function(){clearTimeout(t),clearTimeout(r)}}),[n,e.id,e.timeoutMs]);var u=(0,t.useCallback)((function(){return a?"tw-w-0":"tw-w-full"}),[a]);return(0,b.jsxs)("div",{className:"tw-flex tw-flex-col tw-mr-0 md:tw-mr-4 tw-border-none tw-rounded tw-shadow-md tw-overflow-hidden tw-pointer-events-auto "+[e.textColorClass||"text-black",e.backgroundColorClass||yp[e.type]].join(" "),children:[(0,b.jsxs)("div",{className:"tw-flex tw-gap-2 tw-p-3 tw-text-lg",children:[!e.hideIcon&&(0,b.jsx)("div",{className:"tw-flex tw-justify-center tw-border-0 tw-rounded-full "+gp[e.type],children:bp[e.type]}),(0,b.jsxs)("div",{className:"tw-flex tw-flex-col tw-text-left",children:[e.text&&(0,b.jsx)("div",{className:"tw-whitespace-nowrap tw-text-md tw-overflow-ellipsis",children:e.text}),e.detail&&(0,b.jsx)("div",{className:"tw-text-sm",children:e.detail}),e.jsx&&(0,b.jsx)("div",{children:e.jsx})]}),!e.hideDismissBtn&&!e.showSpinner&&(0,b.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end",onClick:function(){n(I(e.id))},children:(0,b.jsx)("div",{children:(0,b.jsx)(Ji,{className:"tw-cursor-pointer hover:tw-scale-125 tw-transition-all",icon:_n})})}),e.showSpinner&&(0,b.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end",children:(0,b.jsx)("div",{children:(0,b.jsx)(Ji,{icon:Pn,className:"fa-spin"})})})]}),e.timeoutMs&&(0,b.jsx)("div",{children:(0,b.jsx)("div",{ref:s,className:"tw-h-1 tw-transition-all tw-ease-linear "+[u(),gp[e.type]].join(" "),style:{transitionDuration:"".concat(e.timeoutMs,"ms")}})})]})}function xp(){var e=(0,t.useContext)(w).state.toasts;return(0,b.jsx)("div",{className:"tw-flex tw-gap-2 tw-flex-col-reverse tw-items-end tw-fixed tw-bottom-0 tw-right-0 tw-mb-8 tw-mr-4 tw-z-50 tw-pointer-events-none",children:(0,b.jsx)(Bo,{children:e.map((function(e){return(0,b.jsx)(vp.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,transition:{duration:.2}},children:(0,b.jsx)(wp,l({},e))},e.id)}))})})}var kp=function(e){var t=e.children,n=e.id,a=e.className,i=e.ariaLabel,o=e.ariaHidden,s=e.ariaDescribedBy,u=e.role,l=e.title,c=e.helpUrl,f=e.actions,d=e.onClose,p=e.parentElement,h=e.fullscreen,m=function(e){d&&d()},v=D("common-modal-container",h&&"fullscreen",a);return r.createPortal((0,b.jsx)(Cn,{className:v,onEscape:m,children:(0,b.jsxs)("div",{id:n,className:"common-modal",role:u||"dialog","aria-hidden":o,"aria-label":i,"aria-describedby":s,"aria-labelledby":"modal-title",children:[(0,b.jsxs)("div",{className:"common-modal-header",children:[h&&(0,b.jsx)("div",{className:"common-modal-back",children:(0,b.jsx)(V,{className:"menu-button",onClick:m,title:lf("Go Back"),label:lf("Go Back"),leftIcon:"fas fa-arrow-left"})}),(0,b.jsx)("div",{id:"modal-title",className:"common-modal-title",children:l}),h&&c&&(0,b.jsx)("div",{className:"common-modal-help",children:(0,b.jsx)(V,{className:"menu-button",title:lf("Help on {0} dialog",l),href:e.helpUrl,onClick:function(){},rightIcon:"fas fa-question"})}),!h&&(0,b.jsx)("div",{className:"common-modal-close",children:(0,b.jsx)(V,{className:"menu-button inverted",onClick:m,title:lf("Close"),rightIcon:"fas fa-times-circle"})})]}),(0,b.jsx)("div",{className:"common-modal-body",children:t}),(null==f?void 0:f.length)&&(0,b.jsx)("div",{className:"common-modal-footer",children:f.map((function(e,t){return(0,b.jsx)(V,{className:"primary inverted",disabled:e.disabled,onClick:e.onClick,href:e.url,label:e.label,title:e.label,rightIcon:(e.xicon?"xicon ":"")+e.icon},t)}))})]})}),p||document.body)},Ep=function(e){var t=e.id,n=e.className,r=e.ariaHidden,a=e.ariaLabel,i=e.role,o=e.isChecked,s=e.onChange,u=e.label;return(0,b.jsxs)("div",{className:D("common-checkbox",n),children:[(0,b.jsx)("input",{id:t,tabIndex:0,type:"checkbox",checked:o,onChange:function(){s(!o)},onKeyDown:U,role:i,"aria-hidden":r,"aria-label":a}),u&&(0,b.jsx)("label",{htmlFor:t,children:u})]})},Sp=function(e){var t=e.id,n=e.className,r=e.ariaLabel,a=e.href,i=e.target,o=e.children,s=D("common-link",n);return(0,b.jsx)("a",{id:t,className:s,"aria-label":r,href:a,target:i,rel:"_blank"===i?"noopener noreferrer":"",children:o})},Cp=function(e){var n,r,a=e.onSignIn,i=e.onClose,s=e.appMessage,u=null!==(n=e.resolvePath)&&void 0!==n?n:function(e){return e},l=o(t.useState(!1),2),c=l[0],f=l[1],d=o(t.useState(null!==(r=e.mode)&&void 0!==r?r:"signin"),2),p=d[0],h=d[1],m=t.useMemo((function(){return"signin"===p?lf("Sign in"):lf("Sign up")}),[p]),v=t.useMemo((function(){return"signin"===p?lf("Sign in to save your progress and access your work anytime, anywhere."):lf("Join now to save your progress and access your work anytime, anywhere.")}),[p]),y=t.useMemo((function(){return"signin"===p?(0,b.jsxs)("div",{className:"switch",children:[(0,b.jsx)("span",{children:lf("Don't have an account?")}),(0,b.jsx)(V,{className:"link-button",onClick:function(){return h("signup")},title:lf("Sign up"),label:lf("Sign up")})]}):(0,b.jsxs)("div",{className:"switch",children:[(0,b.jsx)("span",{children:lf("Have an account?")}),(0,b.jsx)(V,{className:"link-button",onClick:function(){return h("signin")},title:lf("Sign in"),label:lf("Sign in")})]})}),[p]);return(0,b.jsx)(kp,{title:m,onClose:i,children:(0,b.jsxs)("div",{className:"signin-form",children:[(0,b.jsxs)("div",{className:"signin-header",children:[s||void 0," ",v]}),(0,b.jsx)("div",{className:"signin-body",children:(0,b.jsxs)("div",{className:"providers",children:[pxt.auth.identityProviders().map((function(e,t){var n="signin"===p?lf("Continue with {0}",e.name):lf("Sign up with {0}",e.name);return(0,b.jsx)(V,{className:"teal inverted provider",onClick:function(){return a(e,c)},title:n,ariaLabel:n,label:(0,b.jsxs)("div",{className:"label",children:[(0,b.jsx)("div",{children:(0,b.jsx)("img",{className:"logo",src:u(e.icon)})}),(0,b.jsx)("div",{className:"title",children:n})]})},t)})),(0,b.jsx)("div",{className:"rememberme",children:(0,b.jsx)(Ep,{id:"rememberme",label:lf("Remember me"),isChecked:c,onChange:f})})]})}),(0,b.jsxs)("div",{className:"signin-footer",children:[y,(0,b.jsx)("div",{className:"learn",children:(0,b.jsx)(Sp,{href:"/identity/sign-in",target:"_blank",children:lf("Learn more")})})]})]})})};function Op(){var e,n,r=(0,t.useContext)(w),a=r.state,i=r.dispatch,s=o((0,t.useState)(!1),2),u=s[0],l=s[1],c=(0,t.useRef)(null),f=function(){var e=Y(W().mark((function e(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.hostlobby.startgame"),i({type:"CLEAR_MODAL"}),e.next=4,Ut();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=Y(W().mark((function e(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.hostlobby.closed"),e.next=3,f();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p="".concat(null===(e=a.gameState)||void 0===e?void 0:e.joinCode);return(0,b.jsx)(kp,{title:lf("Invite Players"),onClose:d,children:(0,b.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-1 tw-items-center",children:[(0,b.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center",children:[(0,b.jsx)("div",{children:lf("Invite anyone to join your game instantly.")}),(0,b.jsx)("div",{className:"tw-mt-1",children:lf("Just send them a link.")}),(0,b.jsxs)("div",{className:"common-input-attached-button tw-m-5 tw-w-full",children:[(0,b.jsx)(cn,{ariaLabel:lf("join game link"),handleInputRef:c,initialValue:p,readOnly:!0}),(0,b.jsx)(V,{className:u?"green":"primary",title:lf("Copy link"),label:u?lf("Copied!"):lf("Copy"),leftIcon:"fas fa-link",onClick:function(){pxt.BrowserUtils.isIpcRenderer()?c.current&&l(pxt.BrowserUtils.legacyCopyText(c.current)):(navigator.clipboard.writeText(p),l(!0))},onBlur:function(){l(!1)}})]})]}),"lobby"===(null===(n=a.gameState)||void 0===n?void 0:n.gameMode)&&(0,b.jsx)(V,{className:"teal",label:lf("Start Game"),title:lf("Start Game"),onClick:f})]})})}function Ap(){return(0,t.useContext)(w).state,(0,b.jsx)(kp,{title:lf("Lobby"),children:(0,b.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-space-y-1 tw-text-lg",children:[(0,b.jsx)("div",{children:lf("Waiting for players.")}),(0,b.jsx)("div",{children:lf("Your host will start the game soon.")})]})})}function _p(){switch((0,t.useContext)(w).state.modal){case"sign-in":return(0,b.jsx)(Cp,{onClose:function(){return g({type:"CLEAR_MODAL"})},onSignIn:function(){var e=Y(W().mark((function e(t,n){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wt(t.id,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()});case"report-abuse":return(0,b.jsx)(kp,{title:lf("Report Abuse"),onClose:function(){return g({type:"CLEAR_MODAL"})},children:"Report Abuse Placeholder "});case"host-lobby":return(0,b.jsx)(Op,{});case"join-lobby":return(0,b.jsx)(Ap,{});default:return null}}var Pp=window.pxtTargetBundle;Pp.bundledpkgs={},pxt.setAppTarget(Pp),pxt.setupWebConfig(pxt.webConfig),pxt.BrowserUtils.isLocalHostDev()&&(pxt.webConfig.runUrl="http://localhost:3232/--run"),pxt.Cloud.apiRoot="https://www.makecode.com/api/",r.render((0,b.jsx)(t.StrictMode,{children:(0,b.jsx)((function(e){var n=o((0,t.useReducer)(v,h),2),r=n[0],a=n[1];return(0,t.useEffect)((function(){y=r,g=a}),[r,a]),(0,b.jsx)(w.Provider,{value:{state:r,dispatch:a},children:e.children})}),{children:(0,b.jsx)((function(){var e=(0,t.useContext)(w).state,n=e.signedIn,r=e.appMode.uiMode,a=(0,t.useMemo)((function(){return"init"===r}),[r]);return(0,t.useEffect)((function(){(function(){return ot.apply(this,arguments)})().then((function(){})).catch((function(){}))}),[]),(0,b.jsxs)("div",{className:"".concat(pxt.appTarget.id),children:[a&&(0,b.jsx)(x,{}),!a&&(0,b.jsx)(An,{}),!a&&!n&&(0,b.jsx)(F,{}),!a&&n&&(0,b.jsx)(kn,{}),(0,b.jsx)(_p,{}),(0,b.jsx)(xp,{})]})}),{})})}),document.getElementById("root"))}()}();