pxt-core 8.4.21 → 8.4.23

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 +1,2 @@
1
- /*! For license information please see main.316cb184.js.LICENSE.txt */
2
- !function(){var e={6186:function(e,t,n){"use strict";var r=n(8466),i=n(3705),a=n(6),o=n(3830);function s(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(!i)throw Error(s(227));var u=new Set,l={};function c(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(l[e]=t,e=0;e<t.length;e++)u.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[: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]*$/,h=Object.prototype.hasOwnProperty,m={},v={};function y(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new y(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){g[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||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,i,r)&&(n=null),r||null===i?function(e){return!!h.call(v,e)||!h.call(m,e)&&(p.test(e)?v[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,w);g[t]=new y(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(b,w);g[t]=new y(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(b,w);g[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,E=60106,S=60107,A=60108,O=60114,C=60109,P=60110,T=60112,N=60113,j=60120,R=60115,L=60116,I=60121,M=60128,B=60129,D=60130,U=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;_=F("react.element"),E=F("react.portal"),S=F("react.fragment"),A=F("react.strict_mode"),O=F("react.profiler"),C=F("react.provider"),P=F("react.context"),T=F("react.forward_ref"),N=F("react.suspense"),j=F("react.suspense_list"),R=F("react.memo"),L=F("react.lazy"),I=F("react.block"),F("react.scope"),M=F("react.opaque.id"),B=F("react.debug_trace_mode"),D=F("react.offscreen"),U=F("react.legacy_hidden")}var z,V="function"==typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function W(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var q=!1;function G(e,t){if(!e||q)return"";q=!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 i=e.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function Z(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return G(e.type,!1);case 11:return G(e.type.render,!1);case 22:return G(e.type._render,!1);case 1:return G(e.type,!0);default:return""}}function Y(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 A:return"StrictMode";case N:return"Suspense";case j:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case R:return Y(e.type);case I:return Y(e._render);case L:t=e._payload,e=e._init;try{return Y(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 K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=K(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 i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(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 ee(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 te(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 ne(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function re(e,t){ne(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 ie(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 oe(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function se(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ue(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$(n)}}function ce(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 fe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml";function pe(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 he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve,ye=(ve=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.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 ve(e,t)}))}:ve);function ge(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 be={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},we=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var _e=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(_e[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(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 Ae(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Oe=null,Ce=null,Pe=null;function Te(e){if(e=ei(e)){if("function"!=typeof Oe)throw Error(s(280));var t=e.stateNode;t&&(t=ni(t),Oe(e.stateNode,e.type,t))}}function Ne(e){Ce?Pe?Pe.push(e):Pe=[e]:Ce=e}function je(){if(Ce){var e=Ce,t=Pe;if(Pe=Ce=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Re(e,t){return e(t)}function Le(e,t,n,r,i){return e(t,n,r,i)}function Ie(){}var Me=Re,Be=!1,De=!1;function Ue(){null===Ce&&null===Pe||(Ie(),je())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=ni(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(s(231,t,typeof n));return n}var ze=!1;if(d)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(ve){ze=!1}function He(e,t,n,r,i,a,o,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var We=!1,qe=null,Ge=!1,Ze=null,Ye={onError:function(e){We=!0,qe=e}};function $e(e,t,n,r,i,a,o,s,u){We=!1,qe=null,He.apply(Ye,arguments)}function Ke(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 Xe(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 Qe(e){if(Ke(e)!==e)throw Error(s(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Qe(i),e;if(a===r)return Qe(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,u=i.child;u;){if(u===n){o=!0,n=i,r=a;break}if(u===r){o=!0,r=i,n=a;break}u=u.sibling}if(!o){for(u=a.child;u;){if(u===n){o=!0,n=a,r=i;break}if(u===r){o=!0,r=a,n=i;break}u=u.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(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 et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,it,at=!1,ot=[],st=null,ut=null,lt=null,ct=new Map,ft=new Map,dt=[],pt="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 ht(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function vt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=ht(t,n,r,i,a),null!==t&&null!==(t=ei(t))&&nt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function yt(e){var t=Jr(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void it(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(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=ei(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){gt(e)&&n.delete(t)}function wt(){for(at=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ei(e.blockedOn))&&tt(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&&ot.shift()}null!==st&&gt(st)&&(st=null),null!==ut&&gt(ut)&&(ut=null),null!==lt&&gt(lt)&&(lt=null),ct.forEach(bt),ft.forEach(bt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,wt)))}function kt(e){function t(t){return xt(t,e)}if(0<ot.length){xt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&xt(st,e),null!==ut&&xt(ut,e),null!==lt&&xt(lt,e),ct.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)yt(n),null===n.blockedOn&&dt.shift()}function _t(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:_t("Animation","AnimationEnd"),animationiteration:_t("Animation","AnimationIteration"),animationstart:_t("Animation","AnimationStart"),transitionend:_t("Transition","TransitionEnd")},St={},At={};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 At)return St[e]=n[t];return e}d&&(At=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 Ct=Ot("animationend"),Pt=Ot("animationiteration"),Tt=Ot("animationstart"),Nt=Ot("transitionend"),jt=new Map,Rt=new Map,Lt=["abort","abort",Ct,"animationEnd",Pt,"animationIteration",Tt,"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",Nt,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Rt.set(r,t),jt.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Mt=8;function Bt(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 Dt(e,t){var n=e.pendingLanes;if(0===n)return Mt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=Mt=15;else if(0!=(a=134217727&n)){var u=a&~o;0!==u?(r=Bt(u),i=Mt):0!=(s&=a)&&(r=Bt(s),i=Mt)}else 0!=(a=n&~o)?(r=Bt(a),i=Mt):0!==s&&(r=Bt(s),i=Mt);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Bt(t),i<=Mt)return t;Mt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Wt(t)),r|=e[n],t&=~i;return r}function Ut(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Ft(10,t):e;case 10:return 0===(e=zt(192&~t))?Ft(8,t):e;case 8:return 0===(e=zt(3584&~t))&&0===(e=zt(4186112&~t))&&(e=512),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function zt(e){return e&-e}function Vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Gt|0)|0},qt=Math.log,Gt=Math.LN2,Zt=o.unstable_UserBlockingPriority,Yt=o.unstable_runWithPriority,$t=!0;function Kt(e,t,n,r){Be||Ie();var i=Qt,a=Be;Be=!0;try{Le(i,e,t,n,r)}finally{(Be=a)||Ue()}}function Xt(e,t,n,r){Yt(Zt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var i;if($t)if((i=0==(4&t))&&0<ot.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),ot.push(e);else{var a=Jt(e,t,n,r);if(null===a)i&&mt(e,r);else{if(i){if(-1<pt.indexOf(e))return e=ht(a,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return st=vt(st,e,t,n,r,i),!0;case"dragenter":return ut=vt(ut,e,t,n,r,i),!0;case"mouseover":return lt=vt(lt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ct.set(a,vt(ct.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,ft.set(a,vt(ft.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;mt(e,r)}jr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=Ae(r);if(null!==(i=Jr(i))){var a=Ke(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Xe(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return jr(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return nn=i.slice(e,1<t?1-t:void 0)}function an(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 on(){return!0}function sn(){return!1}function un(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:sn,this.isPropagationStopped=sn,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=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,cn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=un(dn),hn=a({},dn,{view:0,detail:0}),mn=un(hn),vn=a({},hn,{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!==fn&&(fn&&"mousemove"===e.type?(ln=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=ln=0,fn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),yn=un(vn),gn=un(a({},vn,{dataTransfer:0})),bn=un(a({},hn,{relatedTarget:0})),wn=un(a({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=un(a({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),kn=un(a({},dn,{data:0})),_n={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 An(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function On(){return An}var Cn=un(a({},hn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=an(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?an(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?an(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Pn=un(a({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=un(a({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Nn=un(a({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=un(a({},vn,{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})),Rn=[9,13,27,32],Ln=d&&"CompositionEvent"in window,In=null;d&&"documentMode"in document&&(In=document.documentMode);var Mn=d&&"TextEvent"in window&&!In,Bn=d&&(!Ln||In&&8<In&&11>=In),Dn=String.fromCharCode(32),Un=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1,Hn={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 Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function qn(e,t,n,r){Ne(r),0<(t=Lr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Zn=null;function Yn(e){Ar(e,0)}function $n(e){if(Q(ti(e)))return e}function Kn(e,t){if("change"===e)return t}var Xn=!1;if(d){var Qn;if(d){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Qn=Jn}else Qn=!1;Xn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Zn=Gn=null)}function nr(e){if("value"===e.propertyName&&$n(Zn)){var t=[];if(qn(t,Zn,e,Ae(e)),e=Yn,Be)e(t);else{Be=!0;try{Re(e,t)}finally{Be=!1,Ue()}}}}function rr(e,t,n){"focusin"===e?(tr(),Zn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Zn)}function ar(e,t){if("click"===e)return $n(t)}function or(e,t){if("input"===e||"change"===e)return $n(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!sr(e[n[r]],t[n[r]]))return!1;return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=cr(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=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){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 hr(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 mr=d&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==J(r)||(r="selectionStart"in(r=vr)&&hr(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},gr&&lr(gr,r)||(gr=r,0<(r=Lr(yr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}It("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),It("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),It(Lt,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),kr=0;kr<xr.length;kr++)Rt.set(xr[kr],0);f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="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(_r));function Sr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,o,u,l){if($e.apply(this,arguments),We){if(!We)throw Error(s(198));var c=qe;We=!1,qe=null,Ge||(Ge=!0,Ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Ar(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==a&&i.isPropagationStopped())break e;Sr(i,s,l),a=u}else for(o=0;o<r.length;o++){if(u=(s=r[o]).instance,l=s.currentTarget,s=s.listener,u!==a&&i.isPropagationStopped())break e;Sr(i,s,l),a=u}}}if(Ge)throw e=Ze,Ge=!1,Ze=null,e}function Or(e,t){var n=ri(t),r=e+"__bubble";n.has(r)||(Nr(t,e,2,!1),n.add(r))}var Cr="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[Cr]||(e[Cr]=!0,u.forEach((function(t){Er.has(t)||Tr(t,!1,e,null),Tr(t,!0,e,null)})))}function Tr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Er.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ri(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),Nr(a,e,i,t),o.add(s))}function Nr(e,t,n,r){var i=Rt.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Xt;break;default:i=Qt}n=i.bind(null,t,n,e),i=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function jr(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=Jr(s)))return;if(5===(u=o.tag)||6===u){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(De)return e();De=!0;try{Me(e,t,n)}finally{De=!1,Ue()}}((function(){var r=a,i=Ae(n),o=[];e:{var s=jt.get(e);if(void 0!==s){var u=pn,l=e;switch(e){case"keypress":if(0===an(n))break e;case"keydown":case"keyup":u=Cn;break;case"focusin":l="focus",u=bn;break;case"focusout":l="blur",u=bn;break;case"beforeblur":case"afterblur":u=bn;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=yn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Tn;break;case Ct:case Pt:case Tt:u=wn;break;case Nt:u=Nn;break;case"scroll":u=mn;break;case"wheel":u=jn;break;case"copy":case"cut":case"paste":u=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Pn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&null!=(m=Fe(h,d))&&c.push(Rr(h,m,p))),f)break;h=h.return}0<c.length&&(s=new u(s,l,null,n,i),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(l=n.relatedTarget||n.fromElement)||!Jr(l)&&!l[Xr])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?Jr(l):null)&&(l!==(f=Ke(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=yn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?s:ti(u),p=null==l?s:ti(l),(s=new c(m,h+"leave",u,n,i)).target=f,s.relatedTarget=p,m=null,Jr(i)===r&&((c=new c(d,h+"enter",l,n,i)).target=p,c.relatedTarget=f,m=c),f=m,u&&l)e:{for(d=l,h=0,p=c=u;p;p=Ir(p))h++;for(p=0,m=d;m;m=Ir(m))p++;for(;0<h-p;)c=Ir(c),h--;for(;0<p-h;)d=Ir(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(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?ti(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=Kn;else if(Wn(s))if(Xn)v=or;else{v=ir;var y=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ar);switch(v&&(v=v(e,r))?qn(o,v,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ae(s,"number",s.value)),y=r?ti(r):window,e){case"focusin":(Wn(y)||"true"===y.contentEditable)&&(vr=y,yr=r,gr=null);break;case"focusout":gr=yr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(o,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(o,n,i)}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 Vn?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Bn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(g=rn()):(tn="value"in(en=i)?en.value:en.textContent,Vn=!0)),0<(y=Lr(r,b)).length&&(b=new kn(b,e,null,n,i),o.push({event:b,listeners:y}),(g||null!==(g=zn(n)))&&(b.data=g))),(g=Mn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Un=!0,Dn);case"textInput":return(e=t.data)===Dn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Ln&&Fn(e,t)?(e=rn(),nn=tn=en=null,Vn=!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 Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Lr(r,"onBeforeInput")).length&&(i=new kn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=g)}Ar(o,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Fe(e,n))&&r.unshift(Rr(e,a,i)),null!=(a=Fe(e,t))&&r.push(Rr(e,a,i))),e=e.return}return r}function Ir(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Mr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=Fe(n,a))&&o.unshift(Rr(n,u,s)):i||null!=(u=Fe(n,a))&&o.push(Rr(n,u,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Br(){}var Dr=null,Ur=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function zr(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 Vr="function"==typeof setTimeout?setTimeout:void 0,Hr="function"==typeof clearTimeout?clearTimeout:void 0;function Wr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Gr(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 Zr=0,Yr=Math.random().toString(36).slice(2),$r="__reactFiber$"+Yr,Kr="__reactProps$"+Yr,Xr="__reactContainer$"+Yr,Qr="__reactEvents$"+Yr;function Jr(e){var t=e[$r];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xr]||n[$r]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[$r])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function ei(e){return!(e=e[$r]||e[Xr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ti(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function ni(e){return e[Kr]||null}function ri(e){var t=e[Qr];return void 0===t&&(t=e[Qr]=new Set),t}var ii=[],ai=-1;function oi(e){return{current:e}}function si(e){0>ai||(e.current=ii[ai],ii[ai]=null,ai--)}function ui(e,t){ai++,ii[ai]=e.current,e.current=t}var li={},ci=oi(li),fi=oi(!1),di=li;function pi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function hi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function mi(){si(fi),si(ci)}function vi(e,t,n){if(ci.current!==li)throw Error(s(168));ui(ci,t),ui(fi,n)}function yi(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(s(108,Y(t)||"Unknown",i));return a({},n,r)}function gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,di=ci.current,ui(ci,e),ui(fi,fi.current),!0}function bi(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=yi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,si(fi),si(ci),ui(ci,e)):si(fi),ui(fi,n)}var wi=null,xi=null,ki=o.unstable_runWithPriority,_i=o.unstable_scheduleCallback,Ei=o.unstable_cancelCallback,Si=o.unstable_shouldYield,Ai=o.unstable_requestPaint,Oi=o.unstable_now,Ci=o.unstable_getCurrentPriorityLevel,Pi=o.unstable_ImmediatePriority,Ti=o.unstable_UserBlockingPriority,Ni=o.unstable_NormalPriority,ji=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,Li={},Ii=void 0!==Ai?Ai:function(){},Mi=null,Bi=null,Di=!1,Ui=Oi(),Fi=1e4>Ui?Oi:function(){return Oi()-Ui};function zi(){switch(Ci()){case Pi:return 99;case Ti:return 98;case Ni:return 97;case ji:return 96;case Ri:return 95;default:throw Error(s(332))}}function Vi(e){switch(e){case 99:return Pi;case 98:return Ti;case 97:return Ni;case 96:return ji;case 95:return Ri;default:throw Error(s(332))}}function Hi(e,t){return e=Vi(e),ki(e,t)}function Wi(e,t,n){return e=Vi(e),_i(e,t,n)}function qi(){if(null!==Bi){var e=Bi;Bi=null,Ei(e)}Gi()}function Gi(){if(!Di&&null!==Mi){Di=!0;var e=0;try{var t=Mi;Hi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Mi=null}catch(t){throw null!==Mi&&(Mi=Mi.slice(e+1)),_i(Pi,qi),t}finally{Di=!1}}}var Zi=k.ReactCurrentBatchConfig;function Yi(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 $i=oi(null),Ki=null,Xi=null,Qi=null;function Ji(){Qi=Xi=Ki=null}function ea(e){var t=$i.current;si($i),e.type._context._currentValue=t}function ta(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 na(e,t){Ki=e,Qi=Xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Lo=!0),e.firstContext=null)}function ra(e,t){if(Qi!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Qi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xi){if(null===Ki)throw Error(s(308));Xi=t,Ki.dependencies={lanes:0,firstContext:t,responders:null}}else Xi=Xi.next=t;return e._currentValue}var ia=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function sa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ua(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 la(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ca(e,t,n,r){var i=e.updateQueue;ia=!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:ia=!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 fa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(s(191,i));i.call(r)}}}var da=(new i.Component).refs;function pa(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 ha={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=su(),i=uu(e),a=sa(r,i);a.payload=t,null!=n&&(a.callback=n),ua(e,a),lu(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=su(),i=uu(e),a=sa(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),ua(e,a),lu(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=su(),r=uu(e),i=sa(n,r);i.tag=2,null!=t&&(i.callback=t),ua(e,i),lu(e,r,n)}};function ma(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,a))}function va(e,t,n){var r=!1,i=li,a=t.contextType;return"object"==typeof a&&null!==a?a=ra(a):(i=hi(t)?di:ci.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?pi(e,i):li),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ha,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ya(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ha.enqueueReplaceState(t,t.state,null)}function ga(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=da,aa(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=ra(a):(a=hi(t)?di:ci.current,i.context=pi(e,a)),ca(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(pa(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ha.enqueueReplaceState(i,i.state,null),ca(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var ba=Array.isArray;function wa(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(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===da&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function xa(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ka(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 i(e,t){return(e=zu(e,t)).index=0,e.sibling=null,e}function a(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 o(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=qu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=wa(e,t,n),r.return=e,r):((r=Vu(n.type,n.key,n.props,null,e.mode,r)).ref=wa(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=Gu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Hu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=qu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Vu(t.type,t.key,t.props,null,e.mode,n)).ref=wa(e,null,t),n.return=e,n;case E:return(t=Gu(t,e.mode,n)).return=e,t}if(ba(t)||H(t))return(t=Hu(t,e.mode,n,null)).return=e,t;xa(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?n.type===S?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(ba(n)||H(n))return null!==i?null:f(e,t,n,r,null);xa(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ba(r)||H(r))return f(t,e=e.get(n)||null,r,i,null);xa(t,r)}return null}function m(i,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(i,f,s[m],u);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(i,f),o=a(y,o,m),null===c?l=y:c.sibling=y,c=y,f=v}if(m===s.length)return n(i,f),l;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],u))&&(o=a(f,o,m),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);m<s.length;m++)null!==(v=h(f,i,m,s[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),l}function v(i,o,u,l){var c=H(u);if("function"!=typeof c)throw Error(s(150));if(null==(u=c.call(u)))throw Error(s(151));for(var f=c=null,m=o,v=o=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(i,m,g.value,l);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),o=a(b,o,v),null===f?c=b:f.sibling=b,f=b,m=y}if(g.done)return n(i,m),c;if(null===m){for(;!g.done;v++,g=u.next())null!==(g=d(i,g.value,l))&&(o=a(g,o,v),null===f?c=g:f.sibling=g,f=g);return c}for(m=r(i,m);!g.done;v++,g=u.next())null!==(g=h(m,i,v,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),o=a(g,o,v),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,a,u){var l="object"==typeof a&&null!==a&&a.type===S&&null===a.key;l&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case _:e:{for(c=a.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(a.type===S){n(e,l.sibling),(r=i(l,a.props.children)).return=e,e=r;break e}}else if(l.elementType===a.type){n(e,l.sibling),(r=i(l,a.props)).ref=wa(e,l,a),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}a.type===S?((r=Hu(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=Vu(a.type,a.key,a.props,null,e.mode,u)).ref=wa(e,r,a),u.return=e,e=u)}return o(e);case E:e:{for(l=a.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Gu(a,e.mode,u)).return=e,e=r}return o(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=qu(a,e.mode,u)).return=e,e=r),o(e);if(ba(a))return m(e,r,a,u);if(H(a))return v(e,r,a,u);if(c&&xa(e,a),void 0===a&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,Y(e.type)||"Component"))}return n(e,r)}}var _a=ka(!0),Ea=ka(!1),Sa={},Aa=oi(Sa),Oa=oi(Sa),Ca=oi(Sa);function Pa(e){if(e===Sa)throw Error(s(174));return e}function Ta(e,t){switch(ui(Ca,t),ui(Oa,e),ui(Aa,Sa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}si(Aa),ui(Aa,t)}function Na(){si(Aa),si(Oa),si(Ca)}function ja(e){Pa(Ca.current);var t=Pa(Aa.current),n=he(t,e.type);t!==n&&(ui(Oa,e),ui(Aa,n))}function Ra(e){Oa.current===e&&(si(Aa),si(Oa))}var La=oi(0);function Ia(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 Ma=null,Ba=null,Da=!1;function Ua(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 Fa(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 za(e){if(Da){var t=Ba;if(t){var n=t;if(!Fa(e,t)){if(!(t=qr(n.nextSibling))||!Fa(e,t))return e.flags=-1025&e.flags|2,Da=!1,void(Ma=e);Ua(Ma,n)}Ma=e,Ba=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Da=!1,Ma=e}}function Va(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ma=e}function Ha(e){if(e!==Ma)return!1;if(!Da)return Va(e),Da=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!zr(t,e.memoizedProps))for(t=Ba;t;)Ua(e,t),t=qr(t.nextSibling);if(Va(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ba=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ba=null}}else Ba=Ma?qr(e.stateNode.nextSibling):null;return!0}function Wa(){Ba=Ma=null,Da=!1}var qa=[];function Ga(){for(var e=0;e<qa.length;e++)qa[e]._workInProgressVersionPrimary=null;qa.length=0}var Za=k.ReactCurrentDispatcher,Ya=k.ReactCurrentBatchConfig,$a=0,Ka=null,Xa=null,Qa=null,Ja=!1,eo=!1;function to(){throw Error(s(321))}function no(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ro(e,t,n,r,i,a){if($a=a,Ka=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Za.current=null===e||null===e.memoizedState?To:No,e=n(r,i),eo){a=0;do{if(eo=!1,!(25>a))throw Error(s(301));a+=1,Qa=Xa=null,t.updateQueue=null,Za.current=jo,e=n(r,i)}while(eo)}if(Za.current=Po,t=null!==Xa&&null!==Xa.next,$a=0,Qa=Xa=Ka=null,Ja=!1,t)throw Error(s(300));return e}function io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qa?Ka.memoizedState=Qa=e:Qa=Qa.next=e,Qa}function ao(){if(null===Xa){var e=Ka.alternate;e=null!==e?e.memoizedState:null}else e=Xa.next;var t=null===Qa?Ka.memoizedState:Qa.next;if(null!==t)Qa=t,Xa=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Xa=e).memoizedState,baseState:Xa.baseState,baseQueue:Xa.baseQueue,queue:Xa.queue,next:null},null===Qa?Ka.memoizedState=Qa=e:Qa=Qa.next=e}return Qa}function oo(e,t){return"function"==typeof t?t(e):t}function so(e){var t=ao(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=Xa,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=o=a=null,l=i;do{var c=l.lane;if(($a&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?(o=u=f,a=r):u=u.next=f,Ka.lanes|=c,Ms|=c}l=l.next}while(null!==l&&l!==i);null===u?a=r:u.next=o,sr(r,t.memoizedState)||(Lo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function uo(e){var t=ao(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{a=e(a,o.action),o=o.next}while(o!==i);sr(a,t.memoizedState)||(Lo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function lo(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=($a&e)===e)&&(t._workInProgressVersionPrimary=r,qa.push(t))),e)return n(t._source);throw qa.push(t),Error(s(350))}function co(e,t,n,r){var i=Cs;if(null===i)throw Error(s(349));var a=t._getVersion,o=a(t._source),u=Za.current,l=u.useState((function(){return lo(i,t,n)})),c=l[1],f=l[0];l=Qa;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Ka;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!sr(o,e)){e=n(t._source),sr(f,e)||(c(e),e=uu(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,s=e;0<s;){var u=31-Wt(s),l=1<<u;r[u]|=e,s&=~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=uu(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),sr(h,n)&&sr(m,t)&&sr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:f}).dispatch=c=Co.bind(null,Ka,e),l.queue=e,l.baseQueue=null,f=lo(i,t,n),l.memoizedState=l.baseState=f),f}function fo(e,t,n){return co(ao(),e,t,n)}function po(e){var t=io();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e}).dispatch=Co.bind(null,Ka,e),[t.memoizedState,e]}function ho(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ka.updateQueue)?(t={lastEffect:null},Ka.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 mo(e){return e={current:e},io().memoizedState=e}function vo(){return ao().memoizedState}function yo(e,t,n,r){var i=io();Ka.flags|=e,i.memoizedState=ho(1|t,n,void 0,void 0===r?null:r)}function go(e,t,n,r){var i=ao();r=void 0===r?null:r;var a=void 0;if(null!==Xa){var o=Xa.memoizedState;if(a=o.destroy,null!==r&&no(r,o.deps))return void ho(t,n,a,r)}Ka.flags|=e,i.memoizedState=ho(1|t,n,a,r)}function bo(e,t){return yo(516,4,e,t)}function wo(e,t){return go(516,4,e,t)}function xo(e,t){return go(4,2,e,t)}function ko(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 _o(e,t,n){return n=null!=n?n.concat([e]):null,go(4,2,ko.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&&no(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ao(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oo(e,t){var n=zi();Hi(98>n?98:n,(function(){e(!0)})),Hi(97<n?97:n,(function(){var n=Ya.transition;Ya.transition=1;try{e(!1),t()}finally{Ya.transition=n}}))}function Co(e,t,n){var r=su(),i=uu(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Ka||null!==o&&o===Ka)eo=Ja=!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(a.eagerReducer=o,a.eagerState=u,sr(u,s))return}catch(e){}lu(e,i,r)}}var Po={readContext:ra,useCallback:to,useContext:to,useEffect:to,useImperativeHandle:to,useLayoutEffect:to,useMemo:to,useReducer:to,useRef:to,useState:to,useDebugValue:to,useDeferredValue:to,useTransition:to,useMutableSource:to,useOpaqueIdentifier:to,unstable_isNewReconciler:!1},To={readContext:ra,useCallback:function(e,t){return io().memoizedState=[e,void 0===t?null:t],e},useContext:ra,useEffect:bo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,yo(4,2,ko.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=io();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=io();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=Co.bind(null,Ka,e),[r.memoizedState,e]},useRef:mo,useState:po,useDebugValue:Eo,useDeferredValue:function(e){var t=po(e),n=t[0],r=t[1];return bo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=po(!1),t=e[0];return mo(e=Oo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=io();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},co(r,e,t,n)},useOpaqueIdentifier:function(){if(Da){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Zr++).toString(36))),Error(s(355))})),n=po(t)[1];return 0==(2&Ka.mode)&&(Ka.flags|=516,ho(5,(function(){n("r:"+(Zr++).toString(36))}),void 0,null)),t}return po(t="r:"+(Zr++).toString(36)),t},unstable_isNewReconciler:!1},No={readContext:ra,useCallback:So,useContext:ra,useEffect:wo,useImperativeHandle:_o,useLayoutEffect:xo,useMemo:Ao,useReducer:so,useRef:vo,useState:function(){return so(oo)},useDebugValue:Eo,useDeferredValue:function(e){var t=so(oo),n=t[0],r=t[1];return wo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=so(oo)[0];return[vo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return so(oo)[0]},unstable_isNewReconciler:!1},jo={readContext:ra,useCallback:So,useContext:ra,useEffect:wo,useImperativeHandle:_o,useLayoutEffect:xo,useMemo:Ao,useReducer:uo,useRef:vo,useState:function(){return uo(oo)},useDebugValue:Eo,useDeferredValue:function(e){var t=uo(oo),n=t[0],r=t[1];return wo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=uo(oo)[0];return[vo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return uo(oo)[0]},unstable_isNewReconciler:!1},Ro=k.ReactCurrentOwner,Lo=!1;function Io(e,t,n,r){t.child=null===e?Ea(t,null,n,r):_a(t,e.child,n,r)}function Mo(e,t,n,r,i){n=n.render;var a=t.ref;return na(t,i),r=ro(e,t,n,r,a,i),null===e||Lo?(t.flags|=1,Io(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,es(e,t,i))}function Bo(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||Fu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Vu(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Do(e,t,o,r,i,a))}return o=e.child,0==(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)?es(e,t,a):(t.flags|=1,(e=zu(o,r)).ref=t.ref,e.return=t,t.child=e)}function Do(e,t,n,r,i,a){if(null!==e&&lr(e.memoizedProps,r)&&e.ref===t.ref){if(Lo=!1,0==(a&i))return t.lanes=e.lanes,es(e,t,a);0!=(16384&e.flags)&&(Lo=!0)}return zo(e,t,n,r,a)}function Uo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},yu(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},yu(t,e),null;t.memoizedState={baseLanes:0},yu(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,yu(t,r);return Io(e,t,i,n),t.child}function Fo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function zo(e,t,n,r,i){var a=hi(n)?di:ci.current;return a=pi(t,a),na(t,i),n=ro(e,t,n,r,a,i),null===e||Lo?(t.flags|=1,Io(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,es(e,t,i))}function Vo(e,t,n,r,i){if(hi(n)){var a=!0;gi(t)}else a=!1;if(na(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),va(t,n,r),ga(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,l=n.contextType;l="object"==typeof l&&null!==l?ra(l):pi(t,l=hi(n)?di:ci.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)&&ya(t,o,r,l),ia=!1;var d=t.memoizedState;o.state=d,ca(t,r,o,i),u=t.memoizedState,s!==r||d!==u||fi.current||ia?("function"==typeof c&&(pa(t,n,c,r),u=t.memoizedState),(s=ia||ma(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,oa(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Yi(t.type,s),o.props=l,f=t.pendingProps,d=o.context,u="object"==typeof(u=n.contextType)&&null!==u?ra(u):pi(t,u=hi(n)?di:ci.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)&&ya(t,o,r,u),ia=!1,d=t.memoizedState,o.state=d,ca(t,r,o,i);var h=t.memoizedState;s!==f||d!==h||fi.current||ia?("function"==typeof p&&(pa(t,n,p,r),h=t.memoizedState),(l=ia||ma(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 Ho(e,t,n,r,a,i)}function Ho(e,t,n,r,i,a){Fo(e,t);var o=0!=(64&t.flags);if(!r&&!o)return i&&bi(t,n,!1),es(e,t,a);r=t.stateNode,Ro.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=_a(t,e.child,null,a),t.child=_a(t,null,s,a)):Io(e,t,s,a),t.memoizedState=r.state,i&&bi(t,n,!0),t.child}function Wo(e){var t=e.stateNode;t.pendingContext?vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vi(0,t.context,!1),Ta(e,t.containerInfo)}var qo,Go,Zo,Yo={dehydrated:null,retryLane:0};function $o(e,t,n){var r,i=t.pendingProps,a=La.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ui(La,1&a),null===e?(void 0!==i.fallback&&za(t),e=i.children,a=i.fallback,o?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Yo,e):"number"==typeof i.unstable_expectedLoadTime?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Yo,t.lanes=33554432,e):((n=Wu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=function(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0==(2&a)&&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=zu(o,s),null!==e?r=zu(e,r):(r=Hu(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Yo,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=zu(i,{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,i.children,n),t.memoizedState=null,n))}function Ko(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Wu(t,i,0,null),n=Hu(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Xo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ta(e.return,t)}function Qo(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function Jo(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Io(e,t,r.children,n),0!=(2&(r=La.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&&Xo(e,n);else if(19===e.tag)Xo(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(ui(La,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ia(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Qo(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ia(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Qo(t,!0,n,null,a,t.lastEffect);break;case"together":Qo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function es(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(s(153));if(null!==t.child){for(n=zu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ts(e,t){if(!Da)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 ns(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 hi(t.type)&&mi(),null;case 3:return Na(),si(fi),si(ci),Ga(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ha(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ra(t);var i=Pa(Ca.current);if(n=t.type,null!==e&&null!=t.stateNode)Go(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(s(166));return null}if(e=Pa(Aa.current),Ha(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[$r]=t,r[Kr]=o,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<_r.length;e++)Or(_r[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":te(r,o),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Or("invalid",r);break;case"textarea":le(r,o),Or("invalid",r)}for(var u in Ee(n,o),e=null,o)o.hasOwnProperty(u)&&(i=o[u],"children"===u?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(u)&&null!=i&&"onScroll"===u&&Or("scroll",r));switch(n){case"input":X(r),ie(r,o,!0);break;case"textarea":X(r),fe(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=Br)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===i.nodeType?i:i.ownerDocument,e===de&&(e=pe(n)),e===de?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[$r]=t,e[Kr]=r,qo(e,t),t.stateNode=e,u=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<_r.length;i++)Or(_r[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":te(e,r),i=ee(e,r),Or("invalid",e);break;case"option":i=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=a({},r,{value:void 0}),Or("invalid",e);break;case"textarea":le(e,r),i=ue(e,r),Or("invalid",e);break;default:i=r}Ee(n,i);var c=i;for(o in c)if(c.hasOwnProperty(o)){var f=c[o];"style"===o?ke(e,f):"dangerouslySetInnerHTML"===o?null!=(f=f?f.__html:void 0)&&ye(e,f):"children"===o?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(l.hasOwnProperty(o)?null!=f&&"onScroll"===o&&Or("scroll",e):null!=f&&x(e,o,f,u))}switch(n){case"input":X(e),ie(e,r,!1);break;case"textarea":X(e),fe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+$(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?se(e,!!r.multiple,o,!1):null!=r.defaultValue&&se(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Br)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Zo(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));n=Pa(Ca.current),Pa(Aa.current),Ha(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 si(La),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ha(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&La.current)?0===Rs&&(Rs=3):(0!==Rs&&3!==Rs||(Rs=4),null===Cs||0==(134217727&Ms)&&0==(134217727&Bs)||pu(Cs,Ts))),(r||n)&&(t.flags|=4),null);case 4:return Na(),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return ea(t),null;case 19:if(si(La),null===(r=t.memoizedState))return null;if(o=0!=(64&t.flags),null===(u=r.rendering))if(o)ts(r,!1);else{if(0!==Rs||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Ia(e))){for(t.flags|=64,ts(r,!1),null!==(o=u.updateQueue)&&(t.updateQueue=o,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(u=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ui(La,1&La.current|2),t.child}e=e.sibling}null!==r.tail&&Fi()>zs&&(t.flags|=64,o=!0,ts(r,!1),t.lanes=33554432)}else{if(!o)if(null!==(e=Ia(u))){if(t.flags|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ts(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Da)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>zs&&1073741824!==n&&(t.flags|=64,o=!0,ts(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=La.current,ui(La,o?1&t|2:1&t),n):null;case 23:case 24:return gu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function rs(e){switch(e.tag){case 1:hi(e.type)&&mi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Na(),si(fi),si(ci),Ga(),0!=(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Ra(e),null;case 13:return si(La),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return si(La),null;case 4:return Na(),null;case 10:return ea(e),null;case 23:case 24:return gu(),null;default:return null}}function is(e,t){try{var n="",r=t;do{n+=Z(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function as(e,t){try{r.error(t.value)}catch(e){setTimeout((function(){throw e}))}}qo=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}},Go=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Pa(Aa.current);var o,s=null;switch(n){case"input":i=ee(e,i),r=ee(e,r),s=[];break;case"option":i=oe(e,i),r=oe(e,r),s=[];break;case"select":i=a({},i,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":i=ue(e,i),r=ue(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Br)}for(f in Ee(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var u=i[f];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(l.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&u[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,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(l.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Or("scroll",e),s||u===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)}},Zo=function(e,t,n,r){n!==r&&(t.flags|=4)};var os="function"==typeof WeakMap?WeakMap:Map;function ss(e,t,n){(n=sa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qs||(qs=!0,Gs=r),as(0,t)},n}function us(e,t,n){(n=sa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return as(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Zs?Zs=new Set([this]):Zs.add(this),as(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ls="function"==typeof WeakSet?WeakSet:Set;function cs(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Iu(e,t)}else t.current=null}function fs(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:Yi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(t.stateNode.containerInfo))}throw Error(s(163))}function ds(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 i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(ju(n,e),Nu(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:Yi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fa(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}fa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(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&&kt(n)))))}throw Error(s(163))}function ps(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 i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=xe("display",i)}}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 hs(e,t){if(xi&&"function"==typeof xi.onCommitFiberUnmount)try{xi.onCommitFiberUnmount(wi,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,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))ju(t,n);else{r=t;try{i()}catch(e){Iu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(cs(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Iu(t,e)}break;case 5:cs(t);break;case 4:ws(e,t)}}function ms(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 vs(e){return 5===e.tag||3===e.tag||4===e.tag}function ys(e){e:{for(var t=e.return;null!==t;){if(vs(t))break e;t=t.return}throw Error(s(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(s(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vs(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?gs(e,n,t):bs(e,n,t)}function gs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?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=Br));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,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(bs(e,t,n),e=e.sibling;null!==e;)bs(e,t,n),e=e.sibling}function ws(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(s(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var o=e,u=i,l=u;;)if(hs(o,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?(o=n,u=i.stateNode,8===o.nodeType?o.parentNode.removeChild(u):o.removeChild(u)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function xs(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 i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(n,r),Se(e,i),t=Se(e,r),i=0;i<a.length;i+=2){var o=a[i],u=a[i+1];"style"===o?ke(n,u):"dangerouslySetInnerHTML"===o?ye(n,u):"children"===o?ge(n,u):x(n,o,u,t)}switch(e){case"input":re(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?se(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?se(n,!!r.multiple,r.defaultValue,!0):se(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Fs=Fi(),ps(t.child,!0)),void ks(t);case 19:return void ks(t);case 23:case 24:return void ps(t,null!==t.memoizedState)}throw Error(s(163))}function ks(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ls),t.forEach((function(t){var r=Bu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function _s(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Es=Math.ceil,Ss=k.ReactCurrentDispatcher,As=k.ReactCurrentOwner,Os=0,Cs=null,Ps=null,Ts=0,Ns=0,js=oi(0),Rs=0,Ls=null,Is=0,Ms=0,Bs=0,Ds=0,Us=null,Fs=0,zs=1/0;function Vs(){zs=Fi()+500}var Hs,Ws=null,qs=!1,Gs=null,Zs=null,Ys=!1,$s=null,Ks=90,Xs=[],Qs=[],Js=null,eu=0,tu=null,nu=-1,ru=0,iu=0,au=null,ou=!1;function su(){return 0!=(48&Os)?Fi():-1!==nu?nu:nu=Fi()}function uu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===zi()?1:2;if(0===ru&&(ru=Is),0!==Zi.transition){0!==iu&&(iu=null!==Us?Us.pendingLanes:0),e=ru;var t=4186112&~iu;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=zi(),e=Ft(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),ru)}function lu(e,t,n){if(50<eu)throw eu=0,tu=null,Error(s(185));if(null===(e=cu(e,t)))return null;Ht(e,t,n),e===Cs&&(Bs|=t,4===Rs&&pu(e,Ts));var r=zi();1===t?0!=(8&Os)&&0==(48&Os)?hu(e):(fu(e,n),0===Os&&(Vs(),qi())):(0==(4&Os)||98!==r&&99!==r||(null===Js?Js=new Set([e]):Js.add(e)),fu(e,n)),Us=e}function cu(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 fu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var u=31-Wt(o),l=1<<u,c=a[u];if(-1===c){if(0==(l&r)||0!=(l&i)){c=t,Bt(l);var f=Mt;a[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);o&=~l}if(r=Dt(e,e===Cs?Ts:0),t=Mt,0===r)null!==n&&(n!==Li&&Ei(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Li&&Ei(n)}15===t?(n=hu.bind(null,e),null===Mi?(Mi=[n],Bi=_i(Pi,Gi)):Mi.push(n),n=Li):14===t?n=Wi(99,hu.bind(null,e)):n=Wi(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(s(358,e))}}(t),du.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function du(e){if(nu=-1,iu=ru=0,0!=(48&Os))throw Error(s(327));var t=e.callbackNode;if(Tu()&&e.callbackNode!==t)return null;var n=Dt(e,e===Cs?Ts:0);if(0===n)return null;var r=n,i=Os;Os|=16;var a=xu();for(Cs===e&&Ts===r||(Vs(),bu(e,r));;)try{Eu();break}catch(t){wu(e,t)}if(Ji(),Ss.current=a,Os=i,null!==Ps?r=0:(Cs=null,Ts=0,r=Rs),0!=(Is&Bs))bu(e,0);else if(0!==r){if(2===r&&(Os|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=Ut(e))&&(r=ku(e,n))),1===r)throw t=Ls,bu(e,0),pu(e,n),fu(e,Fi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(s(345));case 2:case 5:Ou(e);break;case 3:if(pu(e,n),(62914560&n)===n&&10<(r=Fs+500-Fi())){if(0!==Dt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){su(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Vr(Ou.bind(null,e),r);break}Ou(e);break;case 4:if(pu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var o=31-Wt(n);a=1<<o,(o=r[o])>i&&(i=o),n&=~a}if(n=i,10<(n=(120>(n=Fi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Es(n/1960))-n)){e.timeoutHandle=Vr(Ou.bind(null,e),n);break}Ou(e);break;default:throw Error(s(329))}}return fu(e,Fi()),e.callbackNode===t?du.bind(null,e):null}function pu(e,t){for(t&=~Ds,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function hu(e){if(0!=(48&Os))throw Error(s(327));if(Tu(),e===Cs&&0!=(e.expiredLanes&Ts)){var t=Ts,n=ku(e,t);0!=(Is&Bs)&&(n=ku(e,t=Dt(e,t)))}else n=ku(e,t=Dt(e,0));if(0!==e.tag&&2===n&&(Os|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=Ut(e))&&(n=ku(e,t))),1===n)throw n=Ls,bu(e,0),pu(e,t),fu(e,Fi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ou(e),fu(e,Fi()),null}function mu(e,t){var n=Os;Os|=1;try{return e(t)}finally{0===(Os=n)&&(Vs(),qi())}}function vu(e,t){var n=Os;Os&=-2,Os|=8;try{return e(t)}finally{0===(Os=n)&&(Vs(),qi())}}function yu(e,t){ui(js,Ns),Ns|=t,Is|=t}function gu(){Ns=js.current,si(js)}function bu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hr(n)),null!==Ps)for(n=Ps.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&mi();break;case 3:Na(),si(fi),si(ci),Ga();break;case 5:Ra(r);break;case 4:Na();break;case 13:case 19:si(La);break;case 10:ea(r);break;case 23:case 24:gu()}n=n.return}Cs=e,Ps=zu(e.current,null),Ts=Ns=Is=t,Rs=0,Ls=null,Ds=Bs=Ms=0}function wu(e,t){for(;;){var n=Ps;try{if(Ji(),Za.current=Po,Ja){for(var r=Ka.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Ja=!1}if($a=0,Qa=Xa=Ka=null,eo=!1,As.current=null,null===n||null===n.return){Rs=1,Ls=t,Ps=null;break}e:{var a=e,o=n.return,s=n,u=t;if(t=Ts,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&La.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=sa(-1,1);g.tag=2,ua(s,g)}s.lanes|=1;break e}u=void 0,s=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new os,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,a,l,s);l.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((Y(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!==Rs&&(Rs=2),u=is(u,s),d=o;do{switch(d.tag){case 3:a=u,d.flags|=4096,t&=-t,d.lanes|=t,la(d,ss(0,a,t));break e;case 1:a=u;var x=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof x.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Zs||!Zs.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,la(d,us(d,a,t));break e}}d=d.return}while(null!==d)}Au(n)}catch(e){t=e,Ps===n&&null!==n&&(Ps=n=n.return);continue}break}}function xu(){var e=Ss.current;return Ss.current=Po,null===e?Po:e}function ku(e,t){var n=Os;Os|=16;var r=xu();for(Cs===e&&Ts===t||bu(e,t);;)try{_u();break}catch(t){wu(e,t)}if(Ji(),Os=n,Ss.current=r,null!==Ps)throw Error(s(261));return Cs=null,Ts=0,Rs}function _u(){for(;null!==Ps;)Su(Ps)}function Eu(){for(;null!==Ps&&!Si();)Su(Ps)}function Su(e){var t=Hs(e.alternate,e,Ns);e.memoizedProps=e.pendingProps,null===t?Au(e):Ps=t,As.current=null}function Au(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ns(n,t,Ns)))return void(Ps=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ns)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.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=rs(t)))return n.flags&=2047,void(Ps=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ps=t);Ps=t=e}while(null!==t);0===Rs&&(Rs=5)}function Ou(e){var t=zi();return Hi(99,Cu.bind(null,e,t)),null}function Cu(e,t){do{Tu()}while(null!==$s);if(0!=(48&Os))throw Error(s(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,u=e.expirationTimes;0<a;){var l=31-Wt(a),c=1<<l;i[l]=0,o[l]=-1,u[l]=-1,a&=~c}if(null!==Js&&0==(24&r)&&Js.has(e)&&Js.delete(e),e===Cs&&(Ps=Cs=null,Ts=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Os,Os|=32,As.current=null,Dr=$t,hr(o=pr())){if("selectionStart"in o)u={start:o.selectionStart,end:o.selectionEnd};else e:if(u=(u=o.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,a=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=o,y=null;t:for(;;){for(var g;v!==u||0!==a&&3!==v.nodeType||(d=f+a),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===o)break t;if(y===u&&++h===a&&(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:o,selectionRange:u},$t=!1,au=null,ou=!1,Ws=r;do{try{Pu()}catch(e){if(null===Ws)throw Error(s(330));Iu(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);au=null,Ws=r;do{try{for(o=e;null!==Ws;){var b=Ws.flags;if(16&b&&ge(Ws.stateNode,""),128&b){var w=Ws.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:ys(Ws),Ws.flags&=-3;break;case 6:ys(Ws),Ws.flags&=-3,xs(Ws.alternate,Ws);break;case 1024:Ws.flags&=-1025;break;case 1028:Ws.flags&=-1025,xs(Ws.alternate,Ws);break;case 4:xs(Ws.alternate,Ws);break;case 8:ws(o,u=Ws);var k=u.alternate;ms(u),null!==k&&ms(k)}Ws=Ws.nextEffect}}catch(e){if(null===Ws)throw Error(s(330));Iu(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);if(x=Ur,w=pr(),b=x.focusedElem,o=x.selectionRange,w!==b&&b&&b.ownerDocument&&dr(b.ownerDocument.documentElement,b)){null!==o&&hr(b)&&(w=o.start,void 0===(x=o.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(o.start,u),o=void 0===o.end?k:Math.min(o.end,u),!x.extend&&k>o&&(u=o,o=k,k=u),u=fr(b,k),a=fr(b,o),u&&a&&(1!==x.rangeCount||x.anchorNode!==u.node||x.anchorOffset!==u.offset||x.focusNode!==a.node||x.focusOffset!==a.offset)&&((w=w.createRange()).setStart(u.node,u.offset),x.removeAllRanges(),k>o?(x.addRange(w),x.extend(a.node,a.offset)):(w.setEnd(a.node,a.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=!!Dr,Ur=Dr=null,e.current=n,Ws=r;do{try{for(b=e;null!==Ws;){var _=Ws.flags;if(36&_&&ds(b,Ws.alternate,Ws),128&_){w=void 0;var E=Ws.ref;if(null!==E){var S=Ws.stateNode;Ws.tag,w=S,"function"==typeof E?E(w):E.current=w}}Ws=Ws.nextEffect}}catch(e){if(null===Ws)throw Error(s(330));Iu(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);Ws=null,Ii(),Os=i}else e.current=n;if(Ys)Ys=!1,$s=e,Ks=t;else for(Ws=r;null!==Ws;)t=Ws.nextEffect,Ws.nextEffect=null,8&Ws.flags&&((_=Ws).sibling=null,_.stateNode=null),Ws=t;if(0===(r=e.pendingLanes)&&(Zs=null),1===r?e===tu?eu++:(eu=0,tu=e):eu=0,n=n.stateNode,xi&&"function"==typeof xi.onCommitFiberRoot)try{xi.onCommitFiberRoot(wi,n,void 0,64==(64&n.current.flags))}catch(e){}if(fu(e,Fi()),qs)throw qs=!1,e=Gs,Gs=null,e;return 0!=(8&Os)||qi(),null}function Pu(){for(;null!==Ws;){var e=Ws.alternate;ou||null===au||(0!=(8&Ws.flags)?et(Ws,au)&&(ou=!0):13===Ws.tag&&_s(e,Ws)&&et(Ws,au)&&(ou=!0));var t=Ws.flags;0!=(256&t)&&fs(e,Ws),0==(512&t)||Ys||(Ys=!0,Wi(97,(function(){return Tu(),null}))),Ws=Ws.nextEffect}}function Tu(){if(90!==Ks){var e=97<Ks?97:Ks;return Ks=90,Hi(e,Ru)}return!1}function Nu(e,t){Xs.push(t,e),Ys||(Ys=!0,Wi(97,(function(){return Tu(),null})))}function ju(e,t){Qs.push(t,e),Ys||(Ys=!0,Wi(97,(function(){return Tu(),null})))}function Ru(){if(null===$s)return!1;var e=$s;if($s=null,0!=(48&Os))throw Error(s(331));var t=Os;Os|=32;var n=Qs;Qs=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],o=i.destroy;if(i.destroy=void 0,"function"==typeof o)try{o()}catch(e){if(null===a)throw Error(s(330));Iu(a,e)}}for(n=Xs,Xs=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var u=i.create;i.destroy=u()}catch(e){if(null===a)throw Error(s(330));Iu(a,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,qi(),!0}function Lu(e,t,n){ua(e,t=ss(0,t=is(n,t),1)),t=su(),null!==(e=cu(e,1))&&(Ht(e,1,t),fu(e,t))}function Iu(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===Zs||!Zs.has(r))){var i=us(n,e=is(t,e),1);if(ua(n,i),i=su(),null!==(n=cu(n,1)))Ht(n,1,i),fu(n,i);else if("function"==typeof r.componentDidCatch&&(null===Zs||!Zs.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=su(),e.pingedLanes|=e.suspendedLanes&n,Cs===e&&(Ts&n)===n&&(4===Rs||3===Rs&&(62914560&Ts)===Ts&&500>Fi()-Fs?bu(e,0):Ds|=n),fu(e,t)}function Bu(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===zi()?1:2:(0===ru&&(ru=Is),0===(t=zt(62914560&~ru))&&(t=4194304))),n=su(),null!==(e=cu(e,t))&&(Ht(e,t,n),fu(e,n))}function Du(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 Du(e,t,n,r)}function Fu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(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 Vu(e,t,n,r,i,a){var o=2;if(r=e,"function"==typeof e)Fu(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case S:return Hu(n.children,i,a,t);case B:o=8,i|=16;break;case A:o=8,i|=1;break;case O:return(e=Uu(12,n,t,8|i)).elementType=O,e.type=O,e.lanes=a,e;case N:return(e=Uu(13,n,t,i)).type=N,e.elementType=N,e.lanes=a,e;case j:return(e=Uu(19,n,t,i)).elementType=j,e.lanes=a,e;case D:return Wu(n,i,a,t);case U:return(e=Uu(24,n,t,i)).elementType=U,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:o=10;break e;case P:o=9;break e;case T:o=11;break e;case R:o=14;break e;case L:o=16,r=null;break e;case I:o=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Uu(o,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Hu(e,t,n,r){return(e=Uu(7,e,r,t)).lanes=n,e}function Wu(e,t,n,r){return(e=Uu(23,e,r,t)).elementType=D,e.lanes=n,e}function qu(e,t,n){return(e=Uu(6,e,null,t)).lanes=n,e}function Gu(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 Zu(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=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function Yu(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 i=t.current,a=su(),o=uu(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(s(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(hi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(s(171))}if(1===n.tag){var l=n.type;if(hi(l)){n=yi(n,l,u);break e}}n=u}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=sa(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ua(i,t),lu(i,o,a),o}function Ku(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Xu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){Xu(e,t),(e=e.alternate)&&Xu(e,t)}function Ju(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Zu(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,aa(t),e[Xr]=n.current,Pr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function el(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function tl(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Ku(o);s.call(e)}}$u(t,o,e,i)}else{if(a=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=a._internalRoot,"function"==typeof i){var u=i;i=function(){var e=Ku(o);u.call(e)}}vu((function(){$u(t,o,e,i)}))}return Ku(o)}function nl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!el(t))throw Error(s(200));return Yu(e,t,null,n)}Hs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fi.current)Lo=!0;else{if(0==(n&r)){switch(Lo=!1,t.tag){case 3:Wo(t),Wa();break;case 5:ja(t);break;case 1:hi(t.type)&&gi(t);break;case 4:Ta(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ui($i,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?$o(e,t,n):(ui(La,1&La.current),null!==(t=es(e,t,n))?t.sibling:null);ui(La,1&La.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!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(La,La.current),r)break;return null;case 23:case 24:return t.lanes=0,Uo(e,t,n)}return es(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,i=pi(t,ci.current),na(t,n),i=ro(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,hi(r)){var a=!0;gi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,aa(t);var o=r.getDerivedStateFromProps;"function"==typeof o&&pa(t,r,o,e),i.updater=ha,t.stateNode=i,i._reactInternals=t,ga(t,r,e,n),t=Ho(null,t,r,!0,a,n)}else t.tag=0,Io(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"==typeof e)return Fu(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===R)return 14}return 2}(i),e=Yi(i,e),a){case 0:t=zo(null,t,i,e,n);break e;case 1:t=Vo(null,t,i,e,n);break e;case 11:t=Mo(null,t,i,e,n);break e;case 14:t=Bo(null,t,i,Yi(i.type,e),r,n);break e}throw Error(s(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,zo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Vo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 3:if(Wo(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,oa(e,t),ca(t,r,null,n),(r=t.memoizedState.element)===i)Wa(),t=es(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Ba=qr(t.stateNode.containerInfo.firstChild),Ma=t,a=Da=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],qa.push(a);for(n=Ea(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Io(e,t,r,n),Wa();t=t.child}return t;case 5:return ja(t),null===e&&za(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,zr(r,i)?o=null:null!==a&&zr(r,a)&&(t.flags|=16),Fo(e,t),Io(e,t,o,n),t.child;case 6:return null===e&&za(t),null;case 13:return $o(e,t,n);case 4:return Ta(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_a(t,null,r,n):Io(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Mo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 7:return Io(e,t,t.pendingProps,n),t.child;case 8:case 12:return Io(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var u=t.type._context;if(ui($i,u._currentValue),u._currentValue=a,null!==o)if(u=o.value,0==(a=sr(u,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,a):1073741823))){if(o.children===i.children&&!fi.current){t=es(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){o=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===u.tag&&((c=sa(-1,n&-n)).tag=2,ua(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),ta(u.return,n),l.lanes|=n;break}c=c.next}}else o=10===u.tag&&u.type===t.type?null:u.child;if(null!==o)o.return=u;else for(o=u;null!==o;){if(o===t){o=null;break}if(null!==(u=o.sibling)){u.return=o.return,o=u;break}o=o.return}u=o}Io(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,na(t,n),r=r(i=ra(i,a.unstable_observedBits)),t.flags|=1,Io(e,t,r,n),t.child;case 14:return a=Yi(i=t.type,t.pendingProps),Bo(e,t,i,a=Yi(i.type,a),r,n);case 15:return Do(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,hi(r)?(e=!0,gi(t)):e=!1,na(t,n),va(t,r,i),ga(t,r,i,n),Ho(null,t,r,!0,e,n);case 19:return Jo(e,t,n);case 23:case 24:return Uo(e,t,n)}throw Error(s(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[Xr]=null}))},tt=function(e){13===e.tag&&(lu(e,4,su()),Qu(e,4))},nt=function(e){13===e.tag&&(lu(e,67108864,su()),Qu(e,67108864))},rt=function(e){if(13===e.tag){var t=su(),n=uu(e);lu(e,n,t),Qu(e,n)}},it=function(e,t){return t()},Oe=function(e,t,n){switch(t){case"input":if(re(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ni(r);if(!i)throw Error(s(90));Q(r),re(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&se(e,!!n.multiple,t,!1)}},Re=mu,Le=function(e,t,n,r,i){var a=Os;Os|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{0===(Os=a)&&(Vs(),qi())}},Ie=function(){0==(49&Os)&&(function(){if(null!==Js){var e=Js;Js=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,fu(e,Fi())}))}qi()}(),Tu())},Me=function(e,t){var n=Os;Os|=2;try{return e(t)}finally{0===(Os=n)&&(Vs(),qi())}};var rl={Events:[ei,ti,ni,Ne,je,Tu,{current:!1}]},il={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},al={bundleType:il.bundleType,version:il.version,rendererPackageName:il.rendererPackageName,rendererConfig:il.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:il.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ol=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ol.isDisabled&&ol.supportsFiber)try{wi=ol.inject(al),xi=ol}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rl,t.createPortal=nl,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(s(188));throw Error(s(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 Hi(99,e.bind(null,t))}finally{Os=n,qi()}},t.hydrate=function(e,t,n){if(!el(t))throw Error(s(200));return tl(null,e,t,!0,n)},t.render=function(e,t,n){if(!el(t))throw Error(s(200));return tl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!el(e))throw Error(s(40));return!!e._reactRootContainer&&(vu((function(){tl(null,null,e,!1,(function(){e._reactRootContainer=null,e[Xr]=null}))})),!0)},t.unstable_batchedUpdates=mu,t.unstable_createPortal=function(e,t){return nl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!el(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return tl(e,t,n,!1,r)},t.version="17.0.2"},6377:function(e,t,n){"use strict";var r=n(8466);!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){r.error(e)}}(),e.exports=n(6186)},4819:function(e,t,n){"use strict";n(6);var r=n(3705),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;i=a("react.element"),t.Fragment=a("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,a={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:a,_owner:o.current}}t.jsx=l,t.jsxs=l},4348:function(e,t,n){"use strict";var r=n(6),i=60103,a=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;i=f("react.element"),a=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,t,n){var r,a={},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)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];a.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===a[r]&&(a[r]=u[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:w.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function A(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 O(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 i:case a:u=!0}}if(u)return o=o(u=e),e=""===r?"."+A(u,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),O(o,t,n,"",(function(e){return e}))):null!=o&&(E(o)&&(o=function(e,t){return{$$typeof:i,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(S,"$&/")+"/")+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+A(s=e[l],l);u+=O(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+=O(s=s.value,t,n,c=r+A(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 C(e,t,n){if(null==e)return e;var r=[],i=0;return O(e,r,"","",(function(e){return t.call(n,e,i++)})),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 j={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var a=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)&&(a[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];a.children=l}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_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=_,t.createFactory=function(e){var t=_.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=E,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"},3705:function(e,t,n){"use strict";e.exports=n(4348)},1411:function(e,t,n){"use strict";e.exports=n(4819)},5205:function(e,t,n){"use strict";var r=n(7490),i=n(8466);function a(e){return(a="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)}var o,s,u=n(3905).codes,l=u.ERR_AMBIGUOUS_ARGUMENT,c=u.ERR_INVALID_ARG_TYPE,f=u.ERR_INVALID_ARG_VALUE,d=u.ERR_INVALID_RETURN_VALUE,p=u.ERR_MISSING_ARGS,h=n(8264),m=n(7736).inspect,v=n(7736).types,y=v.isPromise,g=v.isRegExp,b=Object.assign?Object.assign:n(3843).assign,w=Object.is?Object.is:n(8199);function x(){var e=n(8527);o=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var k=!1,_=e.exports=O,E={};function S(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function A(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var a=new h({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function O(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[O,t.length].concat(t))}_.fail=function e(t,n,a,o,s){var u,l=arguments.length;if(0===l)u="Failed";else if(1===l)a=t,t=void 0;else{if(!1===k){k=!0;var c=r.emitWarning?r.emitWarning:i.warn.bind(i);c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===l&&(o="!=")}if(a instanceof Error)throw a;var f={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||e};void 0!==a&&(f.message=a);var d=new h(f);throw u&&(d.message=u,d.generatedMessage=!0),d},_.AssertionError=h,_.ok=O,_.equal=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");t!=n&&S({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},_.notEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");t==n&&S({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},_.deepEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),o(t,n)||S({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},_.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),o(t,n)&&S({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},_.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),s(t,n)||S({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},_.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),s(t,n)&&S({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},_.strictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");w(t,n)||S({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},_.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");w(t,n)&&S({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var C=function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&g(t[e])&&t[e].test(r[e])?i[e]=r[e]:i[e]=t[e])}))};function P(e,t,n,r,i,a){if(!(n in e)||!s(e[n],t[n])){if(!r){var o=new C(e,i),u=new C(t,i,e),l=new h({actual:o,expected:u,operator:"deepStrictEqual",stackStartFn:a});throw l.actual=e,l.expected=t,l.operator=a.name,l}S({actual:e,expected:t,message:r,operator:a.name,stackStartFn:a})}}function T(e,t,n,r){if("function"!=typeof t){if(g(t))return t.test(e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var i=new h({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new f("error",t,"may not be an empty object");return void 0===o&&x(),s.forEach((function(i){"string"==typeof e[i]&&g(t[i])&&t[i].test(e[i])||P(e,t,i,n,s,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function N(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return E}function j(e){return y(e)||null!==e&&"object"===a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function R(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!j(t=e()))throw new d("instance of Promise","promiseFn",t)}else{if(!j(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return E})).catch((function(e){return e}))}))}function L(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],n);if("object"===a(t)&&null!==t){if(t.message===n)throw new l("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new l("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==a(n)&&"function"!=typeof n)throw new c("error",["Object","Error","Function","RegExp"],n);if(t===E){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var o="rejects"===e.name?"rejection":"exception";S({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(n&&!T(t,n,r,e))throw t}function I(e,t,n,r){if(t!==E){if("string"==typeof n&&(r=n,n=void 0),!n||T(t,n)){var i=r?": ".concat(r):".",a="doesNotReject"===e.name?"rejection":"exception";S({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(a).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[M,t.length].concat(t))}_.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];L.apply(void 0,[e,N(t)].concat(r))},_.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return R(t).then((function(t){return L.apply(void 0,[e,t].concat(r))}))},_.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];I.apply(void 0,[e,N(t)].concat(r))},_.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return R(t).then((function(t){return I.apply(void 0,[e,t].concat(r))}))},_.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===a(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=m(t);var r=new h({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"==typeof i){var o=i.split("\n");o.shift();for(var s=r.stack.split("\n"),u=0;u<o.length;u++){var l=s.indexOf(o[u]);if(-1!==l){s=s.slice(0,l);break}}r.stack="".concat(s.join("\n"),"\n").concat(o.join("\n"))}throw r}},_.strict=b(M,_,{equal:_.strictEqual,deepEqual:_.deepStrictEqual,notEqual:_.notStrictEqual,notDeepEqual:_.notDeepStrictEqual}),_.strict.strict=_.strict},8264:function(e,t,n){"use strict";var r=n(7490);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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 o(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return(u=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 c(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)})(e)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,n){return(c=l()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&f(i,n.prototype),i}).apply(null,arguments)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){return(p="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)}var h=n(7736).inspect,m=n(3905).codes.ERR_INVALID_ARG_TYPE;function v(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var y="",g="",b="",w="",x={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function k(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function _(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function E(e,t,n){var i="",a="",o=0,s="",u=!1,l=_(e),c=l.split("\n"),f=_(t).split("\n"),d=0,h="";if("strictEqual"===n&&"object"===p(e)&&"object"===p(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===c.length&&1===f.length&&c[0]!==f[0]){var m=c[0].length+f[0].length;if(m<=10){if(!("object"===p(e)&&null!==e||"object"===p(t)&&null!==t||0===e&&0===t))return"".concat(x[n],"\n\n")+"".concat(c[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n&&m<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;c[0][d]===f[0][d];)d++;d>2&&(h="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",d),"^"),d=0)}}for(var k=c[c.length-1],E=f[f.length-1];k===E&&(d++<2?s="\n ".concat(k).concat(s):i=k,c.pop(),f.pop(),0!==c.length&&0!==f.length);)k=c[c.length-1],E=f[f.length-1];var S=Math.max(c.length,f.length);if(0===S){var A=l.split("\n");if(A.length>30)for(A[26]="".concat(y,"...").concat(w);A.length>27;)A.pop();return"".concat(x.notIdentical,"\n\n").concat(A.join("\n"),"\n")}d>3&&(s="\n".concat(y,"...").concat(w).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var O=0,C=x[n]+"\n".concat(g,"+ actual").concat(w," ").concat(b,"- expected").concat(w),P=" ".concat(y,"...").concat(w," Lines skipped");for(d=0;d<S;d++){var T=d-o;if(c.length<d+1)T>1&&d>2&&(T>4?(a+="\n".concat(y,"...").concat(w),u=!0):T>3&&(a+="\n ".concat(f[d-2]),O++),a+="\n ".concat(f[d-1]),O++),o=d,i+="\n".concat(b,"-").concat(w," ").concat(f[d]),O++;else if(f.length<d+1)T>1&&d>2&&(T>4?(a+="\n".concat(y,"...").concat(w),u=!0):T>3&&(a+="\n ".concat(c[d-2]),O++),a+="\n ".concat(c[d-1]),O++),o=d,a+="\n".concat(g,"+").concat(w," ").concat(c[d]),O++;else{var N=f[d],j=c[d],R=j!==N&&(!v(j,",")||j.slice(0,-1)!==N);R&&v(N,",")&&N.slice(0,-1)===j&&(R=!1,j+=","),R?(T>1&&d>2&&(T>4?(a+="\n".concat(y,"...").concat(w),u=!0):T>3&&(a+="\n ".concat(c[d-2]),O++),a+="\n ".concat(c[d-1]),O++),o=d,a+="\n".concat(g,"+").concat(w," ").concat(j),i+="\n".concat(b,"-").concat(w," ").concat(N),O+=2):(a+=i,i="",1!==T&&0!==d||(a+="\n ".concat(j),O++))}if(O>20&&d<S-2)return"".concat(C).concat(P,"\n").concat(a,"\n").concat(y,"...").concat(w).concat(i,"\n")+"".concat(y,"...").concat(w)}return"".concat(C).concat(u?P:"","\n").concat(a).concat(i).concat(s).concat(h)}var S=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==p(e)||null===e)throw new m("options","Object",e);var i=e.message,a=e.operator,u=e.stackStartFn,l=e.actual,c=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=o(this,d(t).call(this,String(i)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(y="",g="",w="",b=""):(y="",g="",w="",b="")),"object"===p(l)&&null!==l&&"object"===p(c)&&null!==c&&"stack"in l&&l instanceof Error&&"stack"in c&&c instanceof Error&&(l=k(l),c=k(c)),"deepStrictEqual"===a||"strictEqual"===a)n=o(this,d(t).call(this,E(l,c,a)));else if("notDeepStrictEqual"===a||"notStrictEqual"===a){var h=x[a],v=_(l).split("\n");if("notStrictEqual"===a&&"object"===p(l)&&null!==l&&(h=x.notStrictEqualObject),v.length>30)for(v[26]="".concat(y,"...").concat(w);v.length>27;)v.pop();n=1===v.length?o(this,d(t).call(this,"".concat(h," ").concat(v[0]))):o(this,d(t).call(this,"".concat(h,"\n\n").concat(v.join("\n"),"\n")))}else{var S=_(l),A="",O=x[a];"notDeepEqual"===a||"notEqual"===a?(S="".concat(x[a],"\n\n").concat(S)).length>1024&&(S="".concat(S.slice(0,1021),"...")):(A="".concat(_(c)),S.length>512&&(S="".concat(S.slice(0,509),"...")),A.length>512&&(A="".concat(A.slice(0,509),"...")),"deepEqual"===a||"equal"===a?S="".concat(O,"\n\n").concat(S,"\n\nshould equal\n\n"):A=" ".concat(a," ").concat(A)),n=o(this,d(t).call(this,"".concat(S).concat(A)))}return Error.stackTraceLimit=f,n.generatedMessage=!i,Object.defineProperty(s(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=l,n.expected=c,n.operator=a,Error.captureStackTrace&&Error.captureStackTrace(s(n),u),n.stack,n.name="AssertionError",o(n)}var n,u;return function(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}}),t&&f(e,t)}(t,e),n=t,(u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(e,t){return h(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}])&&a(n.prototype,u),t}(u(Error));e.exports=S},3905:function(e,t,n){"use strict";function r(e){return(r="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 i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s,u,l={};function c(e,t,n){n||(n=Error);var r=function(n){function r(n,o,s){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(u=i(this,a(r).call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,o,s)))).code=e,u}return function(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}}),t&&o(e,t)}(r,n),r}(n);l[e]=r}function f(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(e,t,i){var a,o,u;if(void 0===s&&(s=n(5205)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))u="The ".concat(e," ").concat(a," ").concat(f(t,"type"));else{var l=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";u='The "'.concat(e,'" ').concat(l," ").concat(a," ").concat(f(t,"type"))}return u+". Received type ".concat(r(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=n(7736));var i=u.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===s&&(s=n(5205)),s(t.length>0,"At least one arg needs to be specified");var i="The ",a=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),a){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,a-1).join(", "),i+=", and ".concat(t[a-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=l},8527:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return(i="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)}var a=void 0!==/a/g.flags,o=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},u=Object.is?Object.is:n(8199),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:n(5738);function f(e){return e.call.bind(e)}var d=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),h=f(Object.prototype.toString),m=n(7736).types,v=m.isAnyArrayBuffer,y=m.isArrayBufferView,g=m.isDate,b=m.isMap,w=m.isRegExp,x=m.isSet,k=m.isNativeError,_=m.isBoxedPrimitive,E=m.isNumberObject,S=m.isStringObject,A=m.isBooleanObject,O=m.isBigIntObject,C=m.isSymbolObject,P=m.isFloat32Array,T=m.isFloat64Array;function N(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function j(e){return Object.keys(e).filter(N).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function R(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function L(e,t,n,r){if(e===t)return 0!==e||!n||u(e,t);if(n){if("object"!==i(e))return"number"==typeof e&&c(e)&&c(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,s,l,f,d=h(e);if(d!==h(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=j(e),m=j(t);return p.length===m.length&&M(e,t,n,r,1,p)}if("[object Object]"===d&&(!b(e)&&b(t)||!x(e)&&x(t)))return!1;if(g(e)){if(!g(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(w(e)){if(!w(t)||(l=e,f=t,!(a?l.source===f.source&&l.flags===f.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(f))))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(y(e)){if(n||!P(e)&&!T(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===R(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var N=j(e),L=j(t);return N.length===L.length&&M(e,t,n,r,0,N)}if(x(e))return!(!x(t)||e.size!==t.size)&&M(e,t,n,r,2);if(b(e))return!(!b(t)||e.size!==t.size)&&M(e,t,n,r,3);if(v(e)){if(s=t,(o=e).byteLength!==s.byteLength||0!==R(new Uint8Array(o),new Uint8Array(s)))return!1}else if(_(e)&&!function(e,t){return E(e)?E(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):S(e)?S(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):A(e)?A(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):O(e)?O(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):C(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return M(e,t,n,r,0)}function I(e,t){return t.filter((function(t){return p(e,t)}))}function M(e,t,n,r,i,a){if(5===arguments.length){a=Object.keys(e);var o=Object.keys(t);if(a.length!==o.length)return!1}for(var s=0;s<a.length;s++)if(!d(t,a[s]))return!1;if(n&&5===arguments.length){var u=l(e);if(0!==u.length){var c=0;for(s=0;s<u.length;s++){var f=u[s];if(p(e,f)){if(!p(t,f))return!1;a.push(f),c++}else if(p(t,f))return!1}var h=l(t);if(u.length!==h.length&&I(t,h).length!==c)return!1}else{var m=l(t);if(0!==m.length&&0!==I(t,m).length)return!1}}if(0===a.length&&(0===i||1===i&&0===e.length||0===e.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var v=r.val1.get(e);if(void 0!==v){var y=r.val2.get(t);if(void 0!==y)return v===y}r.position++}r.val1.set(e,r.position),r.val2.set(t,r.position);var g=V(e,t,n,a,r,i);return r.val1.delete(e),r.val2.delete(t),g}function B(e,t,n,r){for(var i=o(e),a=0;a<i.length;a++){var s=i[a];if(L(t,s,n,r))return e.delete(s),!0}return!1}function D(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(c(e))return!1}return!0}function U(e,t,n){var r=D(n);return null!=r?r:t.has(r)&&!e.has(r)}function F(e,t,n,r,i){var a=D(n);if(null!=a)return a;var o=t.get(a);return!(void 0===o&&!t.has(a)||!L(r,o,!1,i))&&!e.has(a)&&L(r,o,!1,i)}function z(e,t,n,r,i,a){for(var s=o(e),u=0;u<s.length;u++){var l=s[u];if(L(n,l,i,a)&&L(r,t.get(l),i,a))return e.delete(l),!0}return!1}function V(e,t,n,a,u,l){var c=0;if(2===l){if(!function(e,t,n,r){for(var a=null,s=o(e),u=0;u<s.length;u++){var l=s[u];if("object"===i(l)&&null!==l)null===a&&(a=new Set),a.add(l);else if(!t.has(l)){if(n)return!1;if(!U(e,t,l))return!1;null===a&&(a=new Set),a.add(l)}}if(null!==a){for(var c=o(t),f=0;f<c.length;f++){var d=c[f];if("object"===i(d)&&null!==d){if(!B(a,d,n,r))return!1}else if(!n&&!e.has(d)&&!B(a,d,n,r))return!1}return 0===a.size}return!0}(e,t,n,u))return!1}else if(3===l){if(!function(e,t,n,a){for(var o=null,u=s(e),l=0;l<u.length;l++){var c=r(u[l],2),f=c[0],d=c[1];if("object"===i(f)&&null!==f)null===o&&(o=new Set),o.add(f);else{var p=t.get(f);if(void 0===p&&!t.has(f)||!L(d,p,n,a)){if(n)return!1;if(!F(e,t,f,d,a))return!1;null===o&&(o=new Set),o.add(f)}}}if(null!==o){for(var h=s(t),m=0;m<h.length;m++){var v=r(h[m],2),y=(f=v[0],v[1]);if("object"===i(f)&&null!==f){if(!z(o,e,f,y,n,a))return!1}else if(!(n||e.has(f)&&L(e.get(f),y,!1,a)||z(o,e,f,y,!1,a)))return!1}return 0===o.size}return!0}(e,t,n,u))return!1}else if(1===l)for(;c<e.length;c++){if(!d(e,c)){if(d(t,c))return!1;for(var f=Object.keys(e);c<f.length;c++){var p=f[c];if(!d(t,p)||!L(e[p],t[p],n,u))return!1}return f.length===Object.keys(t).length}if(!d(t,c)||!L(e[c],t[c],n,u))return!1}for(c=0;c<a.length;c++){var h=a[c];if(!L(e[h],t[h],n,u))return!1}return!0}e.exports={isDeepEqual:function(e,t){return L(e,t,!1)},isDeepStrictEqual:function(e,t){return L(e,t,!0)}}},2470: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,a=u(e),o=a[0],s=a[1],l=new i(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,i=r%3,a=[],o=16383,s=0,u=r-i;s<u;s+=o)a.push(l(e,s,s+o>u?u:s+o));return 1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],r[a.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 i,a,o=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},4227:function(e,t,n){"use strict";var r=n(918).Buffer,i=n(7490),a=n(5205),o=n(400),s=n(8106),u=n(1833),l=n(7572);for(var c in l)t[c]=l[c];function f(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,f.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,a(this.init_done,"close before init"),a(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||u.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},f.prototype.write=function(e,t,n,r,i,a,o){return this._write(!0,e,t,n,r,i,a,o)},f.prototype.writeSync=function(e,t,n,r,i,a,o){return this._write(!1,e,t,n,r,i,a,o)},f.prototype._write=function(e,n,o,s,u,l,c,f){if(a.equal(arguments.length,8),a(this.init_done,"write before init"),a(this.mode!==t.NONE,"already finalized"),a.equal(!1,this.write_in_progress,"write already in progress"),a.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,a.equal(!1,void 0===n,"must provide flush value"),this.write_in_progress=!0,n!==t.Z_NO_FLUSH&&n!==t.Z_PARTIAL_FLUSH&&n!==t.Z_SYNC_FLUSH&&n!==t.Z_FULL_FLUSH&&n!==t.Z_FINISH&&n!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==o&&(o=r.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=o,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=l,this.strm.next_out=c,this.flush=n,!e)return this._process(),this._checkError()?this._afterSync():void 0;var d=this;return i.nextTick((function(){d._process(),d._after()})),this},f.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},f.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=u.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=u.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=u.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=u.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},f.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},f.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(e,n,r,i,o){a(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),a(e>=8&&e<=15,"invalid windowBits"),a(n>=-1&&n<=9,"invalid compression level"),a(r>=1&&r<=9,"invalid memlevel"),a(i===t.Z_FILTERED||i===t.Z_HUFFMAN_ONLY||i===t.Z_RLE||i===t.Z_FIXED||i===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,e,r,i,o),this._setDictionary()},f.prototype.params=function(){throw new Error("deflateParams Not supported")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(e,n,r,i,a){switch(this.level=e,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=u.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=a,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},f.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=s.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=u.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=f},1899:function(e,t,n){"use strict";var r=n(7490),i=n(918).Buffer,a=n(3841).Transform,o=n(4227),s=n(7736),u=n(5205).ok,l=n(918).kMaxLength,c="Cannot create final Buffer. It would be larger than 0x"+l.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(o),d=0;d<f.length;d++){var p=f[d];p.match(/^Z/)&&Object.defineProperty(t,p,{enumerable:!0,value:o[p],writable:!1})}for(var h={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},m=Object.keys(h),v=0;v<m.length;v++){var y=m[v];h[h[y]]=y}function g(e,t,n){var r=[],a=0;function o(){for(var t;null!==(t=e.read());)r.push(t),a+=t.length;e.once("readable",o)}function s(){var t,o=null;a>=l?o=new RangeError(c):t=i.concat(r,a),r=[],e.close(),n(o,t)}e.on("error",(function(t){e.removeListener("end",s),e.removeListener("readable",o),n(t)})),e.on("end",s),e.end(t),o()}function b(e,t){if("string"==typeof t&&(t=i.from(t)),!i.isBuffer(t))throw new TypeError("Not a string or buffer");var n=e._finishFlushFlag;return e._processChunk(t,n)}function w(e){if(!(this instanceof w))return new w(e);C.call(this,e,o.DEFLATE)}function x(e){if(!(this instanceof x))return new x(e);C.call(this,e,o.INFLATE)}function k(e){if(!(this instanceof k))return new k(e);C.call(this,e,o.GZIP)}function _(e){if(!(this instanceof _))return new _(e);C.call(this,e,o.GUNZIP)}function E(e){if(!(this instanceof E))return new E(e);C.call(this,e,o.DEFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);C.call(this,e,o.INFLATERAW)}function A(e){if(!(this instanceof A))return new A(e);C.call(this,e,o.UNZIP)}function O(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function C(e,n){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,a.call(this,e),e.flush&&!O(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!O(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!i.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(e,n){P(s),s._hadError=!0;var r=new Error(e);r.errno=n,r.code=t.codes[n],s.emit("error",r)};var u=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(u=e.level);var l=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(l=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,u,e.memLevel||t.Z_DEFAULT_MEMLEVEL,l,e.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=l,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function P(e,t){t&&r.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function T(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),t.Deflate=w,t.Inflate=x,t.Gzip=k,t.Gunzip=_,t.DeflateRaw=E,t.InflateRaw=S,t.Unzip=A,t.createDeflate=function(e){return new w(e)},t.createInflate=function(e){return new x(e)},t.createDeflateRaw=function(e){return new E(e)},t.createInflateRaw=function(e){return new S(e)},t.createGzip=function(e){return new k(e)},t.createGunzip=function(e){return new _(e)},t.createUnzip=function(e){return new A(e)},t.deflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new w(t),e,n)},t.deflateSync=function(e,t){return b(new w(t),e)},t.gzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new k(t),e,n)},t.gzipSync=function(e,t){return b(new k(t),e)},t.deflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new E(t),e,n)},t.deflateRawSync=function(e,t){return b(new E(t),e)},t.unzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new A(t),e,n)},t.unzipSync=function(e,t){return b(new A(t),e)},t.inflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new x(t),e,n)},t.inflateSync=function(e,t){return b(new x(t),e)},t.gunzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new _(t),e,n)},t.gunzipSync=function(e,t){return b(new _(t),e)},t.inflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new S(t),e,n)},t.inflateRawSync=function(e,t){return b(new S(t),e)},s.inherits(C,a),C.prototype.params=function(e,n,i){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(n!=t.Z_FILTERED&&n!=t.Z_HUFFMAN_ONLY&&n!=t.Z_RLE&&n!=t.Z_FIXED&&n!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+n);if(this._level!==e||this._strategy!==n){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){u(a._handle,"zlib binding closed"),a._handle.params(e,n),a._hadError||(a._level=e,a._strategy=n,i&&i())}))}else r.nextTick(i)},C.prototype.reset=function(){return u(this._handle,"zlib binding closed"),this._handle.reset()},C.prototype._flush=function(e){this._transform(i.alloc(0),"",e)},C.prototype.flush=function(e,t){var n=this,a=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=o.Z_FULL_FLUSH),a.ended?t&&r.nextTick(t):a.ending?t&&this.once("end",t):a.needDrain?t&&this.once("drain",(function(){return n.flush(e,t)})):(this._flushFlag=e,this.write(i.alloc(0),"",t))},C.prototype.close=function(e){P(this,e),r.nextTick(T,this)},C.prototype._transform=function(e,t,n){var r,a=this._writableState,s=(a.ending||a.ended)&&(!e||a.length===e.length);return null===e||i.isBuffer(e)?this._handle?(s?r=this._finishFlushFlag:(r=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,r,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},C.prototype._processChunk=function(e,t,n){var r=e&&e.length,a=this._chunkSize-this._offset,o=0,s=this,f="function"==typeof n;if(!f){var d,p=[],h=0;this.on("error",(function(e){d=e})),u(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(t,e,o,r,this._buffer,this._offset,a)}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw d;if(h>=l)throw P(this),new RangeError(c);var v=i.concat(p,h);return P(this),v}u(this._handle,"zlib binding closed");var y=this._handle.write(t,e,o,r,this._buffer,this._offset,a);function g(l,c){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var d=a-c;if(u(d>=0,"have should not go down"),d>0){var m=s._buffer.slice(s._offset,s._offset+d);s._offset+=d,f?s.push(m):(p.push(m),h+=m.length)}if((0===c||s._offset>=s._chunkSize)&&(a=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===c){if(o+=r-l,r=l,!f)return!0;var v=s._handle.write(t,e,o,r,s._buffer,s._offset,s._chunkSize);return v.callback=g,void(v.buffer=e)}if(!f)return!1;n()}}y.buffer=e,y.callback=g},s.inherits(w,C),s.inherits(x,C),s.inherits(k,C),s.inherits(_,C),s.inherits(E,C),s.inherits(S,C),s.inherits(A,C)},918:function(e,t,n){"use strict";var r=n(8466),i=n(6690).default,a=n(9728).default,o=n(6115).default,s=n(1655).default,u=n(6389).default,l=n(2470),c=n(545),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=h,t.SlowBuffer=function(e){return+e!=e&&(e=0),h.alloc(+e)},t.INSPECT_MAX_BYTES=50;var d=2147483647;function p(e){if(e>d)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,h.prototype),t}function h(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 y(e)}return m(e,t,n)}function m(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!h.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|x(e,t),r=p(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(te(e,Uint8Array)){var t=new Uint8Array(e);return b(t.buffer,t.byteOffset,t.byteLength)}return g(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(te(e,ArrayBuffer)||e&&te(e.buffer,ArrayBuffer))return b(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(te(e,SharedArrayBuffer)||e&&te(e.buffer,SharedArrayBuffer)))return b(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 h.from(r,t,n);var i=function(e){if(h.isBuffer(e)){var t=0|w(e.length),n=p(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||ne(e.length)?p(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return h.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 v(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 y(e){return v(e),p(e<0?0:0|w(e))}function g(e){for(var t=e.length<0?0:0|w(e.length),n=p(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function b(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,h.prototype),r}function w(e){if(e>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|e}function x(e,t){if(h.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||te(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 i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(i)return r?-1:Q(e).length;t=(""+t).toLowerCase(),i=!0}}function k(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 M(this,t,n);case"utf8":case"utf-8":return j(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return N(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function E(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),ne(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=h.from(t,r)),h.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){var a,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(i){var c=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+u>s&&(n=s-u),a=n;a>=0;a--){for(var f=!0,d=0;d<u;d++)if(l(e,a+d)!==l(t,d)){f=!1;break}if(f)return a}return-1}function A(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a,o=t.length;for(r>o/2&&(r=o/2),a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(ne(s))return a;e[n+a]=s}return a}function O(e,t,n,r){return ee(Q(t,e.length-n),e,n,r)}function C(e,t,n,r){return ee(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function P(e,t,n,r){return ee(J(t),e,n,r)}function T(e,t,n,r){return ee(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function N(e,t,n){return 0===t&&n===e.length?l.fromByteArray(e):l.fromByteArray(e.slice(t,n))}function j(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){var u=void 0,l=void 0,c=void 0,f=void 0;switch(s){case 1:a<128&&(o=a);break;case 2:128==(192&(u=e[i+1]))&&(f=(31&a)<<6|63&u)>127&&(o=f);break;case 3:u=e[i+1],l=e[i+2],128==(192&u)&&128==(192&l)&&(f=(15&a)<<12|(63&u)<<6|63&l)>2047&&(f<55296||f>57343)&&(o=f);break;case 4:u=e[i+1],l=e[i+2],c=e[i+3],128==(192&u)&&128==(192&l)&&128==(192&c)&&(f=(15&a)<<18|(63&u)<<12|(63&l)<<6|63&c)>65535&&f<1114112&&(o=f)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=R));return n}(r)}t.kMaxLength=d,h.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}}(),h.TYPED_ARRAY_SUPPORT||void 0===r||"function"!=typeof r.error||r.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(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(e,t,n){return m(e,t,n)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(e,t,n){return function(e,t,n){return v(e),e<=0?p(e):void 0!==t?"string"==typeof n?p(e).fill(t,n):p(e).fill(t):p(e)}(e,t,n)},h.allocUnsafe=function(e){return y(e)},h.allocUnsafeSlow=function(e){return y(e)},h.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==h.prototype},h.compare=function(e,t){if(te(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),te(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(e)||!h.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,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},h.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}},h.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return h.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=h.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(te(a,Uint8Array))i+a.length>r.length?(h.isBuffer(a)||(a=h.from(a)),a.copy(r,i)):Uint8Array.prototype.set.call(r,a,i);else{if(!h.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i)}i+=a.length}return r},h.byteLength=x,h.prototype._isBuffer=!0,h.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)_(this,t,t+1);return this},h.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)_(this,t,t+3),_(this,t+1,t+2);return this},h.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)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},h.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?j(this,0,e):k.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(e){if(!h.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===h.compare(this,e)},h.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+">"},f&&(h.prototype[f]=h.prototype.inspect),h.prototype.compare=function(e,t,n,r,i){if(te(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.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===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),l=e.slice(t,n),c=0;c<s;++c)if(u[c]!==l[c]){a=u[c],o=l[c];break}return a<o?-1:o<a?1:0},h.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},h.prototype.indexOf=function(e,t,n){return E(this,e,t,n,!0)},h.prototype.lastIndexOf=function(e,t,n){return E(this,e,t,n,!1)},h.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 i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return A(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return P(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=re[e[a]];return i}function B(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function D(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 U(e,t,n,r,i,a){if(!h.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function F(e,t,n,r,i){Y(t,r,i,e,n,7);var a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function z(e,t,n,r,i){Y(t,r,i,e,n,7);var a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function V(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,i){return t=+t,n>>>=0,i||V(e,0,n,4),c.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,i){return t=+t,n>>>=0,i||V(e,0,n,8),c.write(e,t,n,r,52,8),n+8}h.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,h.prototype),r},h.prototype.readUintLE=h.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},h.prototype.readUintBE=h.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},h.prototype.readUint8=h.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},h.prototype.readBigUInt64LE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),i=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+n*Math.pow(2,24);return BigInt(r)+(BigInt(i)<<BigInt(32))})),h.prototype.readBigUInt64BE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],i=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),h.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},h.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},h.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},h.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},h.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},h.prototype.readBigInt64LE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24))})),h.prototype.readBigInt64BE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n)})),h.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),c.read(this,e,!0,23,4)},h.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),c.read(this,e,!1,23,4)},h.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),c.read(this,e,!0,52,8)},h.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),c.read(this,e,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},h.prototype.writeUint8=h.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,255,0),this[t]=255&e,t+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(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},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(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},h.prototype.writeBigUInt64LE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeBigUInt64BE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return z(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);U(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},h.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);U(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},h.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},h.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(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},h.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(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},h.prototype.writeBigInt64LE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeBigInt64BE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return z(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},h.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},h.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},h.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},h.prototype.copy=function(e,t,n,r){if(!h.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 i=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),i},h.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&&!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}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 a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=h.isBuffer(e)?e:h.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var q={};function G(e,t,n){q[e]=function(n){s(l,n);var r=u(l);function l(){var n;return i(this,l),n=r.call(this),Object.defineProperty(o(n),"message",{value:t.apply(o(n),arguments),writable:!0,configurable:!0}),n.name="".concat(n.name," [").concat(e,"]"),n.stack,delete n.name,n}return a(l,[{key:"code",get:function(){return e},set:function(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}]),l}(n)}function Z(e){for(var t="",n=e.length,r="-"===e[0]?1:0;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function Y(e,t,n,r,i,a){if(e>n||e<t){var o,s="bigint"==typeof t?"n":"";throw o=a>3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(a+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(a+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(a+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(n).concat(s),new q.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){$(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||K(t,e.length-(n+1))}(r,i,a)}function $(e,t){if("number"!=typeof e)throw new q.ERR_INVALID_ARG_TYPE(t,"number",e)}function K(e,t,n){if(Math.floor(e)!==e)throw $(e,n),new q.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}G("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),G("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),G("ERR_OUT_OF_RANGE",(function(e,t,n){var r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?i=Z(String(n)):"bigint"==typeof n&&(i=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(i=Z(i)),i+="n"),r+" It must be ".concat(t,". Received ").concat(i)}),RangeError);var X=/[^+/0-9A-Za-z-_]/g;function Q(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function J(e){return l.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(X,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function ee(e,t,n,r){var i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function te(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function ne(e){return e!=e}var re=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}();function ie(e){return"undefined"==typeof BigInt?ae:e}function ae(){throw new Error("BigInt not supported")}},4680:function(e,t,n){"use strict";var r=n(8476),i=n(9962),a=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?i(n):n}},9962:function(e,t,n){"use strict";var r=n(1199),i=n(8476),a=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(o,a),u=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=s(r,o,arguments);if(u&&l){var n=u(t,"length");n.configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var f=function(){return s(r,a,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},8466:function(e,t,n){var r=n(7736),i=n(5205);function a(){return(new Date).getTime()}var o,s=Array.prototype.slice,u={};o=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var l=[[function(){},"log"],[function(){o.log.apply(o,arguments)},"info"],[function(){o.log.apply(o,arguments)},"warn"],[function(){o.warn.apply(o,arguments)},"error"],[function(e){u[e]=a()},"time"],[function(e){var t=u[e];if(!t)throw new Error("No such label: "+e);delete u[e];var n=a()-t;o.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),o.error(e.stack)},"trace"],[function(e){o.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);i.ok(!1,r.format.apply(null,t))}},"assert"]],c=0;c<l.length;c++){var f=l[c],d=f[0],p=f[1];o[p]||(o[p]=d)}e.exports=o},9959:function(e,t,n){"use strict";var r=n(6328),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,s=Object.defineProperty,u=n(2926)(),l=s&&u,c=function(e,t,n,r){var i;(!(t in e)||"function"==typeof(i=r)&&"[object Function]"===a.call(i)&&r())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},f=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=o.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)c(e,a[s],t[a[s]],n[a[s]])};f.supportsDescriptors=!!l,e.exports=f},3843:function(e){"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var a=Object.keys(Object(i)),o=0,s=a.length;o<s;o++){var u=a[o],l=Object.getOwnPropertyDescriptor(i,u);void 0!==l&&l.enumerable&&(n[u]=i[u])}}return n}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},8041:function(e,t,n){"use strict";var r,i=n(8466),a="object"==typeof Reflect?Reflect:null,o=a&&"function"==typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function u(){u.init.call(this)}e.exports=u,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var a,o,s,u;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(a=f(e))>0&&s.length>a&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,i&&i.warn&&i.warn(u)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):y(i,i.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){r.once&&e.removeEventListener(t,i),n(a)}))}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return f(this)},u.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var l=u.length,c=y(u,l);for(n=0;n<l;++n)o(c[n],this,t)}return!0},u.prototype.addListener=function(e,t){return d(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return d(this,e,t,!0)},u.prototype.once=function(e,t){return c(t),this.on(e,h(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,h(this,e,t)),this},u.prototype.removeListener=function(e,t){var n,r,i,a,o;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return m(this,e,!0)},u.prototype.rawListeners=function(e){return m(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},u.prototype.listenerCount=v,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},5767:function(e,t,n){"use strict";var r=n(8866),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty,o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},s=function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},u=function(e,t,n){for(var r in e)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))};e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===i.call(e)?o(e,t,a):"string"==typeof e?s(e,t,a):u(e,t,a)}},2781:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,i="[object Function]";e.exports=function(e){var a=this;if("function"!=typeof a||r.call(a)!==i)throw new TypeError(t+a);for(var o,s=n.call(arguments,1),u=function(){if(this instanceof o){var t=a.apply(this,s.concat(n.call(arguments)));return Object(t)===t?t:this}return a.apply(e,s.concat(n.call(arguments)))},l=Math.max(0,a.length-s.length),c=[],f=0;f<l;f++)c.push("$"+f);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(u),a.prototype){var d=function(){};d.prototype=a.prototype,o.prototype=new d,d.prototype=null}return o}},1199:function(e,t,n){"use strict";var r=n(2781);e.exports=Function.prototype.bind||r},8476:function(e,t,n){"use strict";var r,i=SyntaxError,a=Function,o=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var l=function(){throw new o},c=u?function(){try{return l}catch(e){try{return u(arguments,"callee").get}catch(e){return l}}}():l,f=n(5520)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"==typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},v=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return m[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(1199),b=n(7838),w=g.call(Function.call,Array.prototype.concat),x=g.call(Function.apply,Array.prototype.splice),k=g.call(Function.call,String.prototype.replace),_=g.call(Function.call,String.prototype.slice),E=g.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,O=function(e){var t=_(e,0,1),n=_(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return k(e,S,(function(e,t,n,i){r[r.length]=n?k(i,A,"$1"):t||e})),r},C=function(e,t){var n,r=e;if(b(y,r)&&(r="%"+(n=y[r])[0]+"%"),b(m,r)){var a=m[r];if(a===p&&(a=v(r)),void 0===a&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:a}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=O(e),r=n.length>0?n[0]:"",a=C("%"+r+"%",t),s=a.name,l=a.value,c=!1,f=a.alias;f&&(r=f[0],x(n,w([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],v=_(h,0,1),y=_(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===y||"'"===y||"`"===y)&&v!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(c=!0),b(m,s="%"+(r+="."+h)+"%"))l=m[s];else if(null!=l){if(!(h in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&d+1>=n.length){var g=u(l,h);l=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[h]}else p=b(l,h),l=l[h];p&&!c&&(m[s]=l)}}return l}},2926:function(e,t,n){"use strict";var r=n(8476)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},5520:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(541);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},541:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},8857:function(e,t,n){"use strict";var r=n(541);e.exports=function(){return r()&&!!Symbol.toStringTag}},7838:function(e,t,n){"use strict";var r=n(1199);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},545:function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+e[t+f],f+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+f],f+=d,c-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=l}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,u,l=8*a-i-1,c=(1<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-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,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=255&o,p+=h,o/=256,l-=8);e[n+p-h]|=128*m}},273:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},5021:function(e,t,n){"use strict";var r=n(8857)(),i=n(4680)("Object.prototype.toString"),a=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},o=function(e){return!!a(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return a(arguments)}();a.isLegacyArguments=o,e.exports=s?a:o},8866:function(e){"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(e){e!==n&&(i=null)}else i=null;var a=/^\s*class\b/,o=function(e){try{var t=r.call(e);return a.test(t)}catch(e){return!1}},s=function(e){try{return!o(e)&&(r.call(e),!0)}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var d=document.all;u.call(d)===u.call(document.all)&&(f=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!o(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(l)return s(e);if(o(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t||s(e)}},7469:function(e,t,n){"use strict";var r,i=Object.prototype.toString,a=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=n(8857)(),u=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(a.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if(void 0===r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&u(t)}return u(e)===r}},1546:function(e){"use strict";e.exports=function(e){return e!=e}},5738:function(e,t,n){"use strict";var r=n(9962),i=n(9959),a=n(1546),o=n(9221),s=n(5434),u=r(o(),Number);i(u,{getPolyfill:o,implementation:a,shim:s}),e.exports=u},9221:function(e,t,n){"use strict";var r=n(1546);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},5434:function(e,t,n){"use strict";var r=n(9959),i=n(9221);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},2105:function(e,t,n){"use strict";var r=n(5767),i=n(3645),a=n(4680),o=a("Object.prototype.toString"),s=n(8857)(),u="undefined"==typeof globalThis?n.g:globalThis,l=i(),c=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},f=a("String.prototype.slice"),d={},p=n(3397),h=Object.getPrototypeOf;s&&p&&h&&r(l,(function(e){var t=new u[e];if(Symbol.toStringTag in t){var n=h(t),r=p(n,Symbol.toStringTag);if(!r){var i=h(n);r=p(i,Symbol.toStringTag)}d[e]=r.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s||!(Symbol.toStringTag in e)){var t=f(o(e),8,-1);return c(l,t)>-1}return!!p&&function(e){var t=!1;return r(d,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},4091:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},8199:function(e,t,n){"use strict";var r=n(9959),i=n(9962),a=n(4091),o=n(4584),s=n(8229),u=i(o(),Object);r(u,{getPolyfill:o,implementation:a,shim:s}),e.exports=u},4584:function(e,t,n){"use strict";var r=n(4091);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},8229:function(e,t,n){"use strict";var r=n(4584),i=n(9959);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},2782:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=n(2950),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),l=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===a.call(e),r=o(e),s=t&&"[object String]"===a.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=l&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(r&&e.length>0)for(var v=0;v<e.length;++v)d.push(String(v));else for(var y in e)h&&"prototype"===y||!i.call(e,y)||d.push(String(y));if(u)for(var g=function(e){if("undefined"==typeof window||!p)return f(e);try{return f(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)g&&"constructor"===c[b]||!i.call(e,c[b])||d.push(c[b]);return d}}e.exports=r},6328:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(2950),a=Object.keys,o=a?function(e){return a(e)}:n(2782),s=Object.keys;o.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)}):Object.keys=o;return Object.keys||o},e.exports=o},2950:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},6931:function(e,t){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(e[i]=n[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(n)},3040:function(e){"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}},7572:function(e){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},6558:function(e){"use strict";var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,i){var a=t,o=i+r;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^n[s])];return-1^e}},8106:function(e,t,n){"use strict";var r,i=n(6931),a=n(3226),o=n(3040),s=n(6558),u=n(4274),l=-2,c=258,f=262,d=103,p=113,h=666;function m(e,t){return e.msg=u[t],t}function v(e){return(e<<1)-(e>4?9:0)}function y(e){for(var t=e.length;--t>=0;)e[t]=0}function g(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function b(e,t){a._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,g(e.strm)}function w(e,t){e.pending_buf[e.pending++]=t}function x(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function k(e,t,n,r){var a=e.avail_in;return a>r&&(a=r),0===a?0:(e.avail_in-=a,i.arraySet(t,e.input,e.next_in,a,n),1===e.state.wrap?e.adler=o(e.adler,t,a,n):2===e.state.wrap&&(e.adler=s(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)}function _(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-f?e.strstart-(e.w_size-f):0,l=e.window,d=e.w_mask,p=e.prev,h=e.strstart+c,m=l[a+o-1],v=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+o]===v&&l[n+o-1]===m&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do{}while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<h);if(r=c-(h-a),a=h-c,r>o){if(e.match_start=t,o=r,r>=s)break;m=l[a+o-1],v=l[a+o]}}}while((t=p[t&d])>u&&0!=--i);return o<=e.lookahead?o:e.lookahead}function E(e){var t,n,r,a,o,s=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-f)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=s?r-s:0}while(--n);t=n=s;do{r=e.prev[--t],e.prev[t]=r>=s?r-s:0}while(--n);a+=s}if(0===e.strm.avail_in)break;if(n=k(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=n,e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+3-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<f&&0!==e.strm.avail_in)}function S(e,t){for(var n,r;;){if(e.lookahead<f){if(E(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-f&&(e.match_length=_(e,n)),e.match_length>=3)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function A(e,t){for(var n,r,i;;){if(e.lookahead<f){if(E(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-f&&(e.match_length=_(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(b(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&b(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function O(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function C(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),y(this.dyn_ltree),y(this.dyn_dtree),y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),y(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function P(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:p,e.adler=2===t.wrap?0:1,t.last_flush=0,a._tr_init(t),0):m(e,l)}function T(e){var t,n=P(e);return 0===n&&((t=e.state).window_size=2*t.w_size,y(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function N(e,t,n,r,a,o){if(!e)return l;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),a<1||a>9||8!==n||r<8||r>15||t<0||t>9||o<0||o>4)return m(e,l);8===r&&(r=9);var u=new C;return e.state=u,u.strm=e,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=a+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<a+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=o,u.method=n,T(e)}r=[new O(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(E(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,b(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-f&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(b(e,!1),e.strm.avail_out),1)})),new O(4,4,8,4,S),new O(4,5,16,8,S),new O(4,6,32,32,S),new O(4,4,16,16,A),new O(8,16,32,32,A),new O(8,16,128,128,A),new O(8,32,128,256,A),new O(32,128,258,1024,A),new O(32,258,258,4096,A)],t.deflateInit=function(e,t){return N(e,t,8,15,8,0)},t.deflateInit2=N,t.deflateReset=T,t.deflateResetKeep=P,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?l:(e.state.gzhead=t,0):l},t.deflate=function(e,t){var n,i,o,u;if(!e||!e.state||t>5||t<0)return e?m(e,l):l;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===h&&4!==t)return m(e,0===e.avail_out?-5:l);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,w(i,31),w(i,139),w(i,8),i.gzhead?(w(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),w(i,255&i.gzhead.time),w(i,i.gzhead.time>>8&255),w(i,i.gzhead.time>>16&255),w(i,i.gzhead.time>>24&255),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(w(i,255&i.gzhead.extra.length),w(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(w(i,0),w(i,0),w(i,0),w(i,0),w(i,0),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,3),i.status=p);else{var f=8+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=p,x(i,f),0!==i.strstart&&(x(i,e.adler>>>16),x(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending!==i.pending_buf_size));)w(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,w(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,w(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.status=d)}else i.status=d;if(i.status===d&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&g(e),i.pending+2<=i.pending_buf_size&&(w(i,255&e.adler),w(i,e.adler>>8&255),e.adler=0,i.status=p)):i.status=p),0!==i.pending){if(g(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&v(t)<=v(n)&&4!==t)return m(e,-5);if(i.status===h&&0!==e.avail_in)return m(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==h){var k=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(E(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=c){if(E(e),e.lookahead<=c&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+c;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=c-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=a._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==k&&4!==k||(i.status=h),1===k||3===k)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===k&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(y(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),g(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(w(i,255&e.adler),w(i,e.adler>>8&255),w(i,e.adler>>16&255),w(i,e.adler>>24&255),w(i,255&e.total_in),w(i,e.total_in>>8&255),w(i,e.total_in>>16&255),w(i,e.total_in>>24&255)):(x(i,e.adler>>>16),x(i,65535&e.adler)),g(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==d&&t!==p&&t!==h?m(e,l):(e.state=null,t===p?m(e,-3):0):l},t.deflateSetDictionary=function(e,t){var n,r,a,s,u,c,f,d,p=t.length;if(!e||!e.state)return l;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return l;for(1===s&&(e.adler=o(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(y(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,t,p-n.w_size,n.w_size,0),t=d,p=n.w_size),u=e.avail_in,c=e.next_in,f=e.input,e.avail_in=p,e.next_in=0,e.input=t,E(n);n.lookahead>=3;){r=n.strstart,a=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--a);n.strstart=r,n.lookahead=2,E(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=c,e.input=f,e.avail_in=u,n.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},6997:function(e){"use strict";e.exports=function(e,t){var n,r,i,a,o,s,u,l,c,f,d,p,h,m,v,y,g,b,w,x,k,_,E,S,A;n=e.state,r=e.next_in,S=e.input,i=r+(e.avail_in-5),a=e.next_out,A=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),u=n.dmax,l=n.wsize,c=n.whave,f=n.wnext,d=n.window,p=n.hold,h=n.bits,m=n.lencode,v=n.distcode,y=(1<<n.lenbits)-1,g=(1<<n.distbits)-1;e:do{h<15&&(p+=S[r++]<<h,h+=8,p+=S[r++]<<h,h+=8),b=m[p&y];t:for(;;){if(p>>>=w=b>>>24,h-=w,0==(w=b>>>16&255))A[a++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=m[(65535&b)+(p&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&b,(w&=15)&&(h<w&&(p+=S[r++]<<h,h+=8),x+=p&(1<<w)-1,p>>>=w,h-=w),h<15&&(p+=S[r++]<<h,h+=8,p+=S[r++]<<h,h+=8),b=v[p&g];n:for(;;){if(p>>>=w=b>>>24,h-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=v[(65535&b)+(p&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(k=65535&b,h<(w&=15)&&(p+=S[r++]<<h,(h+=8)<w&&(p+=S[r++]<<h,h+=8)),(k+=p&(1<<w)-1)>u){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=w,h-=w,k>(w=a-o)){if((w=k-w)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(_=0,E=d,0===f){if(_+=l-w,w<x){x-=w;do{A[a++]=d[_++]}while(--w);_=a-k,E=A}}else if(f<w){if(_+=l+f-w,(w-=f)<x){x-=w;do{A[a++]=d[_++]}while(--w);if(_=0,f<x){x-=w=f;do{A[a++]=d[_++]}while(--w);_=a-k,E=A}}}else if(_+=f-w,w<x){x-=w;do{A[a++]=d[_++]}while(--w);_=a-k,E=A}for(;x>2;)A[a++]=E[_++],A[a++]=E[_++],A[a++]=E[_++],x-=3;x&&(A[a++]=E[_++],x>1&&(A[a++]=E[_++]))}else{_=a-k;do{A[a++]=A[_++],A[a++]=A[_++],A[a++]=A[_++],x-=3}while(x>2);x&&(A[a++]=A[_++],x>1&&(A[a++]=A[_++]))}break}}break}}while(r<i&&a<s);r-=x=h>>3,p&=(1<<(h-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=h}},1833:function(e,t,n){"use strict";var r=n(6931),i=n(3040),a=n(6558),o=n(6997),s=n(3443),u=-2,l=12,c=30;function f(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):u}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,p(e)):u}function m(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?u:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,h(e))):u}function v(e,t){var n,r;return e?(r=new d,e.state=r,r.window=null,0!==(n=m(e,t))&&(e.state=null),n):u}var y,g,b=!0;function w(e){if(b){var t;for(y=new r.Buf32(512),g=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,g,0,e.work,{bits:5}),b=!1}e.lencode=y,e.lenbits=9,e.distcode=g,e.distbits=5}function x(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}t.inflateReset=h,t.inflateReset2=m,t.inflateResetKeep=p,t.inflateInit=function(e){return v(e,15)},t.inflateInit2=v,t.inflate=function(e,t){var n,d,p,h,m,v,y,g,b,k,_,E,S,A,O,C,P,T,N,j,R,L,I,M,B=0,D=new r.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return u;(n=e.state).mode===l&&(n.mode=13),m=e.next_out,p=e.output,y=e.avail_out,h=e.next_in,d=e.input,v=e.avail_in,g=n.hold,b=n.bits,k=v,_=y,L=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(2&n.wrap&&35615===g){n.check=0,D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0),g=0,b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",n.mode=c;break}if(8!=(15&g)){e.msg="unknown compression method",n.mode=c;break}if(b-=4,R=8+(15&(g>>>=4)),0===n.wbits)n.wbits=R;else if(R>n.wbits){e.msg="invalid window size",n.mode=c;break}n.dmax=1<<R,e.adler=n.check=1,n.mode=512&g?10:l,g=0,b=0;break;case 2:for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(n.flags=g,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=c;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=c;break}n.head&&(n.head.text=g>>8&1),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0)),g=0,b=0,n.mode=3;case 3:for(;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.head&&(n.head.time=g),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,D[2]=g>>>16&255,D[3]=g>>>24&255,n.check=a(n.check,D,4,0)),g=0,b=0,n.mode=4;case 4:for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.head&&(n.head.xflags=255&g,n.head.os=g>>8),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0)),g=0,b=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.length=g,n.head&&(n.head.extra_len=g),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0)),g=0,b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((E=n.length)>v&&(E=v),E&&(n.head&&(R=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,d,h,E,R)),512&n.flags&&(n.check=a(n.check,d,E,h)),v-=E,h+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break e;E=0;do{R=d[h+E++],n.head&&R&&n.length<65536&&(n.head.name+=String.fromCharCode(R))}while(R&&E<v);if(512&n.flags&&(n.check=a(n.check,d,E,h)),v-=E,h+=E,R)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break e;E=0;do{R=d[h+E++],n.head&&R&&n.length<65536&&(n.head.comment+=String.fromCharCode(R))}while(R&&E<v);if(512&n.flags&&(n.check=a(n.check,d,E,h)),v-=E,h+=E,R)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(g!==(65535&n.check)){e.msg="header crc mismatch",n.mode=c;break}g=0,b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=l;break;case 10:for(;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}e.adler=n.check=f(g),g=0,b=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=v,n.hold=g,n.bits=b,2;e.adler=n.check=1,n.mode=l;case l:if(5===t||6===t)break e;case 13:if(n.last){g>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}switch(n.last=1&g,b-=1,3&(g>>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,6===t){g>>>=2,b-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=c}g>>>=2,b-=2;break;case 14:for(g>>>=7&b,b-=7&b;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",n.mode=c;break}if(n.length=65535&g,g=0,b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(E=n.length){if(E>v&&(E=v),E>y&&(E=y),0===E)break e;r.arraySet(p,d,h,E,m),v-=E,h+=E,y-=E,m+=E,n.length-=E;break}n.mode=l;break;case 17:for(;b<14;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(n.nlen=257+(31&g),g>>>=5,b-=5,n.ndist=1+(31&g),g>>>=5,b-=5,n.ncode=4+(15&g),g>>>=4,b-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=c;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;b<3;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.lens[U[n.have++]]=7&g,g>>>=3,b-=3}for(;n.have<19;)n.lens[U[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},L=s(0,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,L){e.msg="invalid code lengths set",n.mode=c;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;C=(B=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,P=65535&B,!((O=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(P<16)g>>>=O,b-=O,n.lens[n.have++]=P;else{if(16===P){for(M=O+2;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(g>>>=O,b-=O,0===n.have){e.msg="invalid bit length repeat",n.mode=c;break}R=n.lens[n.have-1],E=3+(3&g),g>>>=2,b-=2}else if(17===P){for(M=O+3;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}b-=O,R=0,E=3+(7&(g>>>=O)),g>>>=3,b-=3}else{for(M=O+7;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}b-=O,R=0,E=11+(127&(g>>>=O)),g>>>=7,b-=7}if(n.have+E>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=c;break}for(;E--;)n.lens[n.have++]=R}}if(n.mode===c)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=c;break}if(n.lenbits=9,I={bits:n.lenbits},L=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,L){e.msg="invalid literal/lengths set",n.mode=c;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},L=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,L){e.msg="invalid distances set",n.mode=c;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(v>=6&&y>=258){e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=v,n.hold=g,n.bits=b,o(e,_),m=e.next_out,p=e.output,y=e.avail_out,h=e.next_in,d=e.input,v=e.avail_in,g=n.hold,b=n.bits,n.mode===l&&(n.back=-1);break}for(n.back=0;C=(B=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,P=65535&B,!((O=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(C&&0==(240&C)){for(T=O,N=C,j=P;C=(B=n.lencode[j+((g&(1<<T+N)-1)>>T)])>>>16&255,P=65535&B,!(T+(O=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}g>>>=T,b-=T,n.back+=T}if(g>>>=O,b-=O,n.back+=O,n.length=P,0===C){n.mode=26;break}if(32&C){n.back=-1,n.mode=l;break}if(64&C){e.msg="invalid literal/length code",n.mode=c;break}n.extra=15&C,n.mode=22;case 22:if(n.extra){for(M=n.extra;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.length+=g&(1<<n.extra)-1,g>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;C=(B=n.distcode[g&(1<<n.distbits)-1])>>>16&255,P=65535&B,!((O=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(0==(240&C)){for(T=O,N=C,j=P;C=(B=n.distcode[j+((g&(1<<T+N)-1)>>T)])>>>16&255,P=65535&B,!(T+(O=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}g>>>=T,b-=T,n.back+=T}if(g>>>=O,b-=O,n.back+=O,64&C){e.msg="invalid distance code",n.mode=c;break}n.offset=P,n.extra=15&C,n.mode=24;case 24:if(n.extra){for(M=n.extra;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.offset+=g&(1<<n.extra)-1,g>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=c;break}n.mode=25;case 25:if(0===y)break e;if(E=_-y,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=c;break}E>n.wnext?(E-=n.wnext,S=n.wsize-E):S=n.wnext-E,E>n.length&&(E=n.length),A=n.window}else A=p,S=m-n.offset,E=n.length;E>y&&(E=y),y-=E,n.length-=E;do{p[m++]=A[S++]}while(--E);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;p[m++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===v)break e;v--,g|=d[h++]<<b,b+=8}if(_-=y,e.total_out+=_,n.total+=_,_&&(e.adler=n.check=n.flags?a(n.check,p,_,m-_):i(n.check,p,_,m-_)),_=y,(n.flags?g:f(g))!==n.check){e.msg="incorrect data check",n.mode=c;break}g=0,b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(g!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=c;break}g=0,b=0}n.mode=29;case 29:L=1;break e;case c:L=-3;break e;case 31:return-4;default:return u}return e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=v,n.hold=g,n.bits=b,(n.wsize||_!==e.avail_out&&n.mode<c&&(n.mode<27||4!==t))&&x(e,e.output,e.next_out,_-e.avail_out)?(n.mode=31,-4):(k-=e.avail_in,_-=e.avail_out,e.total_in+=k,e.total_out+=_,n.total+=_,n.wrap&&_&&(e.adler=n.check=n.flags?a(n.check,p,_,e.next_out-_):i(n.check,p,_,e.next_out-_)),e.data_type=n.bits+(n.last?64:0)+(n.mode===l?128:0)+(20===n.mode||15===n.mode?256:0),(0===k&&0===_||4===t)&&0===L&&(L=-5),L)},t.inflateEnd=function(e){if(!e||!e.state)return u;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?u:(n.head=t,t.done=!1,0):u},t.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?u:11===n.mode&&i(1,t,r,0)!==n.check?-3:x(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):u},t.inflateInfo="pako inflate (from Nodeca project)"},3443:function(e,t,n){"use strict";var r=n(6931),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,u,l,c,f,d){var p,h,m,v,y,g,b,w,x,k=d.bits,_=0,E=0,S=0,A=0,O=0,C=0,P=0,T=0,N=0,j=0,R=null,L=0,I=new r.Buf16(16),M=new r.Buf16(16),B=null,D=0;for(_=0;_<=15;_++)I[_]=0;for(E=0;E<u;E++)I[t[n+E]]++;for(O=k,A=15;A>=1&&0===I[A];A--);if(O>A&&(O=A),0===A)return l[c++]=20971520,l[c++]=20971520,d.bits=1,0;for(S=1;S<A&&0===I[S];S++);for(O<S&&(O=S),T=1,_=1;_<=15;_++)if(T<<=1,(T-=I[_])<0)return-1;if(T>0&&(0===e||1!==A))return-1;for(M[1]=0,_=1;_<15;_++)M[_+1]=M[_]+I[_];for(E=0;E<u;E++)0!==t[n+E]&&(f[M[t[n+E]]++]=E);if(0===e?(R=B=f,g=19):1===e?(R=i,L-=257,B=a,D-=257,g=256):(R=o,B=s,g=-1),j=0,E=0,_=S,y=c,C=O,P=0,m=-1,v=(N=1<<O)-1,1===e&&N>852||2===e&&N>592)return 1;for(;;){b=_-P,f[E]<g?(w=0,x=f[E]):f[E]>g?(w=B[D+f[E]],x=R[L+f[E]]):(w=96,x=0),p=1<<_-P,S=h=1<<C;do{l[y+(j>>P)+(h-=p)]=b<<24|w<<16|x|0}while(0!==h);for(p=1<<_-1;j&p;)p>>=1;if(0!==p?(j&=p-1,j+=p):j=0,E++,0==--I[_]){if(_===A)break;_=t[n+f[E]]}if(_>O&&(j&v)!==m){for(0===P&&(P=O),y+=S,T=1<<(C=_-P);C+P<A&&!((T-=I[C+P])<=0);)C++,T<<=1;if(N+=1<<C,1===e&&N>852||2===e&&N>592)return 1;l[m=j&v]=O<<24|C<<16|y-c|0}}return 0!==j&&(l[y+j]=_-P<<24|64<<16|0),d.bits=O,0}},4274:function(e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},3226:function(e,t,n){"use strict";var r=n(6931);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var a=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],o=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],l=new Array(576);i(l);var c=new Array(60);i(c);var f=new Array(512);i(f);var d=new Array(256);i(d);var p=new Array(29);i(p);var h,m,v,y=new Array(30);function g(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?f[e]:f[256+(e>>>7)]}function x(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function k(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,x(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function _(e,t,n){k(e,n[2*t],n[2*t+1])}function E(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function S(e,t,n){var r,i,a=new Array(16),o=0;for(r=1;r<=15;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=E(a[s]++,s))}}function A(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function O(e){e.bi_valid>8?x(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function C(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function P(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&C(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!C(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function T(e,t,n){var r,i,s,u,l=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],i=e.pending_buf[e.l_buf+l],l++,0===r?_(e,i,t):(_(e,(s=d[i])+256+1,t),0!==(u=a[s])&&k(e,i-=p[s],u),_(e,s=w(--r),n),0!==(u=o[s])&&k(e,r-=y[s],u))}while(l<e.last_lit);_(e,256,t)}function N(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==a[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)P(e,a,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],P(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,P(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,u=t.dyn_tree,l=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,h=t.stat_desc.max_length,m=0;for(a=0;a<=15;a++)e.bl_count[a]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(a=u[2*u[2*(r=e.heap[n])+1]+1]+1)>h&&(a=h,m++),u[2*r+1]=a,r>l||(e.bl_count[a]++,o=0,r>=p&&(o=d[r-p]),s=u[2*r],e.opt_len+=s*(a+o),f&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==m){do{for(a=h-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[h]--,m-=2}while(m>0);for(a=h;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>l||(u[2*i+1]!==a&&(e.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),r--)}}(e,t),S(a,l,e.bl_count)}function j(e,t,n){var r,i,a=-1,o=t[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<u&&i===o||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4))}function R(e,t,n){var r,i,a=-1,o=t[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<u&&i===o)){if(s<l)do{_(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(_(e,i,e.bl_tree),s--),_(e,16,e.bl_tree),k(e,s-3,2)):s<=10?(_(e,17,e.bl_tree),k(e,s-3,3)):(_(e,18,e.bl_tree),k(e,s-11,7));s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4)}}i(y);var L=!1;function I(e,t,n,i){k(e,0+(i?1:0),3),function(e,t,n,i){O(e),x(e,n),x(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}t._tr_init=function(e){L||(function(){var e,t,n,r,i,u=new Array(16);for(n=0,r=0;r<28;r++)for(p[r]=n,e=0;e<1<<a[r];e++)d[n++]=r;for(d[n-1]=r,i=0,r=0;r<16;r++)for(y[r]=i,e=0;e<1<<o[r];e++)f[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,e=0;e<1<<o[r]-7;e++)f[256+i++]=r;for(t=0;t<=15;t++)u[t]=0;for(e=0;e<=143;)l[2*e+1]=8,e++,u[8]++;for(;e<=255;)l[2*e+1]=9,e++,u[9]++;for(;e<=279;)l[2*e+1]=7,e++,u[7]++;for(;e<=287;)l[2*e+1]=8,e++,u[8]++;for(S(l,287,u),e=0;e<30;e++)c[2*e+1]=5,c[2*e]=E(e,5);h=new g(l,a,257,286,15),m=new g(c,o,0,30,15),v=new g(new Array(0),s,0,19,7)}(),L=!0),e.l_desc=new b(e.dyn_ltree,h),e.d_desc=new b(e.dyn_dtree,m),e.bl_desc=new b(e.bl_tree,v),e.bi_buf=0,e.bi_valid=0,A(e)},t._tr_stored_block=I,t._tr_flush_block=function(e,t,n,r){var i,a,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),N(e,e.l_desc),N(e,e.d_desc),o=function(e){var t;for(j(e,e.dyn_ltree,e.l_desc.max_code),j(e,e.dyn_dtree,e.d_desc.max_code),N(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?I(e,t,n,r):4===e.strategy||a===i?(k(e,2+(r?1:0),3),T(e,l,c)):(k(e,4+(r?1:0),3),function(e,t,n,r){var i;for(k(e,t-257,5),k(e,n-1,5),k(e,r-4,4),i=0;i<r;i++)k(e,e.bl_tree[2*u[i]+1],3);R(e,e.dyn_ltree,t-1),R(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),T(e,e.dyn_ltree,e.dyn_dtree)),A(e),r&&O(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(d[n]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){k(e,2,3),_(e,256,l),function(e){16===e.bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},400:function(e){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},7490:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,u=[],l=!1,c=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):c=-1,u.length&&d())}function d(){if(!l){var e=o(f);l=!0;for(var t=u.length;t;){for(s=u,u=[];++c<t;)s&&s[c].run();c=-1,t=u.length}s=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||o(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},1729:function(e,t,n){"use strict";var r=n(9165);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,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:a,resetWarningCache:i};return n.PropTypes=n,n}},5192:function(e,t,n){e.exports=n(1729)()},9165:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1092:function(e){"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,a,o;if("string"==typeof t&&(a="not ",t.substr(0,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))o="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(s," ").concat(i," ").concat(r(t,"type"))}return o+". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},6085:function(e,t,n){"use strict";var r=n(7490),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var a=n(6405),o=n(7423);n(273)(c,a);for(var s=i(o.prototype),u=0;u<s.length;u++){var l=s[u];c.prototype[l]||(c.prototype[l]=o.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},9543:function(e,t,n){"use strict";e.exports=i;var r=n(4917);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(273)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},6405:function(e,t,n){"use strict";var r,i=n(7490);e.exports=S,S.ReadableState=E,n(8041).EventEmitter;var a,o=function(e,t){return e.listeners(t).length},s=n(8747),u=n(918).Buffer,l=n.g.Uint8Array||function(){},c=n(4616);a=c&&c.debuglog?c.debuglog("stream"):function(){};var f,d,p,h=n(5489),m=n(6617),v=n(5999).getHighWaterMark,y=n(1092).q,g=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,x=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(273)(S,s);var k=m.errorOrDestroy,_=["error","close","destroy","pause","resume"];function E(e,t,i){r=r||n(6085),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(8570).s),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function S(e){if(r=r||n(6085),!(this instanceof S))return new S(e);var t=this instanceof r;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function A(e,t,n,r,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,N(e)))}}(e,s);else if(i||(o=function(e,t){var n,r;return r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new g("chunk",["string","Buffer","Uint8Array"],t)),n}(s,t)),o)k(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r)s.endEmitted?k(e,new x):O(e,s,t,!0);else if(s.ended)k(e,new b);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):j(e,s)):O(e,s,t,!1)}else r||(s.reading=!1,j(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function O(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&T(e)),j(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=m.destroy,S.prototype._undestroy=m.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),A(this,e,t,!1,n)},S.prototype.unshift=function(e){return A(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){f||(f=n(8570).s);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var C=1073741824;function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(N,e))}function N(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function j(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(a("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){a("readable nexttick read 0"),e.read(0)}function M(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function U(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(F,t,e))}function F(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}S.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return a("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):T(this),null;if(0===(e=P(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,i=t.needReadable;return a("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&a("length less than watermark",i=!0),t.ended||t.reading?a("reading or ended",i=!1):i&&(a("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=P(n,t))),null===(r=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){k(this,new w("_read()"))},S.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,a("pipe count=%d opts=%j",r.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?m:u;function u(){a("onend"),e.end()}r.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",(function t(i,o){a("onunpipe"),i===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,a("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",f),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}));var l=function(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,B(e))}}(n);e.on("drain",l);var c=!1;function f(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==z(r.pipes,e))&&!c&&(a("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function d(t){a("onerror",t),m(),e.removeListener("error",d),0===o(e,"error")&&k(e,t)}function p(){e.removeListener("finish",h),m()}function h(){a("onfinish"),e.removeListener("close",p),m()}function m(){a("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",p),e.once("finish",h),e.emit("pipe",n),r.flowing||(a("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=z(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,a("on readable",r.length,r.reading),r.length?T(this):r.reading||i.nextTick(I,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(L,this),n},S.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(L,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(M,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(a("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){a("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!=i)&&(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<_.length;o++)e.on(_[o],this.emit.bind(this,_[o]));return this._read=function(t){a("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(1218)),d(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=D,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===p&&(p=n(7670)),p(S,e,t)})},4917:function(e,t,n){"use strict";e.exports=c;var r=n(1092).q,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(6085);function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,n){d(e,t,n)}))}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}n(273)(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,n){n(new i("_transform()"))},c.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},7423:function(e,t,n){"use strict";var r,i=n(7490);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=S,S.WritableState=E;var o,s={deprecate:n(9043)},u=n(8747),l=n(918).Buffer,c=n.g.Uint8Array||function(){},f=n(6617),d=n(5999).getHighWaterMark,p=n(1092).q,h=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,v=p.ERR_MULTIPLE_CALLBACK,y=p.ERR_STREAM_CANNOT_PIPE,g=p.ERR_STREAM_DESTROYED,b=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,x=p.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function _(){}function E(e,t,o){r=r||n(6085),e=e||{},"boolean"!=typeof o&&(o=t instanceof r),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if("function"!=typeof a)throw new v;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(N,e,t),e._writableState.errorEmitted=!0,k(e,r)):(a(r),e._writableState.errorEmitted=!0,k(e,r),N(e,t))}(e,n,r,t,a);else{var o=P(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||C(e,n),r?i.nextTick(O,e,n,o,a):O(e,n,o,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function S(e){var t=this instanceof(r=r||n(6085));if(!t&&!o.call(S,this))return new S(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function A(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function O(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),N(e,t)}function C(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,A(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(A(e,t,!1,t.objectMode?1:l.length,l,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function P(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(n){t.pendingcb--,n&&k(e,n),t.prefinished=!0,e.emit("prefinish"),N(e,t)}))}function N(e,t){var n=P(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(273)(S,u),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===S&&e&&e._writableState instanceof E}})):o=function(e){return e instanceof this},S.prototype.pipe=function(){k(this,new y)},S.prototype.write=function(e,t,n){var r,a=this._writableState,o=!1,s=!a.objectMode&&(r=e,l.isBuffer(r)||r instanceof c);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=_),a.ending?function(e,t){var n=new w;k(e,n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var a;return null===n?a=new b:"string"==typeof n||t.objectMode||(a=new h("chunk",["string","Buffer"],n)),!a||(k(e,a),i.nextTick(r,a),!1)}(this,a,e,n))&&(a.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,r,i,a);return u}(this,a,s,e,t,n)),o},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new m("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,N(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=f.destroy,S.prototype._undestroy=f.undestroy,S.prototype._destroy=function(e,t){t(e)}},1218:function(e,t,n){"use strict";var r,i=n(7490);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(4297),s=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),p=Symbol("stream");function h(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var n=e[p].read();null!==n&&(e[f]=null,e[s]=null,e[u]=null,t(h(n,!1)))}}function v(e){i.nextTick(m,e)}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((a(r={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(h(void 0,!0));if(this[p].destroyed)return new Promise((function(t,n){i.nextTick((function(){e[l]?n(e[l]):t(h(void 0,!0))}))}));var n,r=this[f];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[c]?n(h(void 0,!0)):t[d](n,r)}),r)}}(r,this));else{var a=this[p].read();if(null!==a)return Promise.resolve(h(a,!1));n=new Promise(this[d])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),a(r,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(h(void 0,!0))}))}))})),r),y);e.exports=function(e){var t,n=Object.create(g,(a(t={},p,{value:e,writable:!0}),a(t,s,{value:null,writable:!0}),a(t,u,{value:null,writable:!0}),a(t,l,{value:null,writable:!0}),a(t,c,{value:e._readableState.endEmitted,writable:!0}),a(t,d,{value:function(e,t){var r=n[p].read();r?(n[f]=null,n[s]=null,n[u]=null,e(h(r,!1))):(n[s]=e,n[u]=t)},writable:!0}),t));return n[f]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[u];return null!==t&&(n[f]=null,n[s]=null,n[u]=null,t(e)),void(n[l]=e)}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[u]=null,r(h(void 0,!0))),n[c]=!0})),e.on("readable",v.bind(null,n)),n}},5489:function(e,t,n){"use strict";function r(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 i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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)}}var o=n(918).Buffer,s=n(2361).inspect,u=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0==(e-=a)){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&a(t.prototype,n),e}()},6617:function(e,t,n){"use strict";var r=n(7490);function i(e,t){o(e,t),a(e)}function a(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(a,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(a,n),t(e)):r.nextTick(a,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},4297:function(e,t,n){"use strict";var r=n(1092).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,a){if("function"==typeof n)return e(t,null,n);n||(n={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(a||i);var o=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,u=function(){t.writable||c()},l=t._writableState&&t._writableState.finished,c=function(){s=!1,l=!0,o||a.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){o=!1,f=!0,s||a.call(t)},p=function(e){a.call(t,e)},h=function(){var e;return o&&!f?(t._readableState&&t._readableState.ended||(e=new r),a.call(t,e)):s&&!l?(t._writableState&&t._writableState.ended||(e=new r),a.call(t,e)):void 0},m=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",c),t.on("abort",h),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",d),t.on("finish",c),!1!==n.error&&t.on("error",p),t.on("close",h),function(){t.removeListener("complete",c),t.removeListener("abort",h),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",d),t.removeListener("error",p),t.removeListener("close",h)}}},7670:function(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},6545:function(e,t,n){"use strict";var r,i=n(1092).q,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e,t,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;e.on("close",(function(){s=!0})),void 0===r&&(r=n(4297)),r(e,{readable:t,writable:i},(function(e){if(e)return a(e);s=!0,a()}));var u=!1;return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void a(t||new o("pipe"))}}function l(e){e()}function c(e,t){return e.pipe(t)}function f(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}e.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var o=t.map((function(e,n){var a=n<t.length-1;return u(e,a,n>0,(function(e){r||(r=e),e&&o.forEach(l),a||(o.forEach(l),i(r))}))}));return t.reduce(c)}},5999:function(e,t,n){"use strict";var r=n(1092).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var a=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},8747:function(e,t,n){e.exports=n(8041).EventEmitter},5734:function(e,t,n){var r=n(918),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},1398:function(e,t,n){"use strict";var r=n(918).Buffer,i=n(6690).default,a=n(9728).default,o=n(4370),s=function(){function e(t){if(i(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 a(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,i){var a=this._writeOffset,s=this._encoding;"number"==typeof n?a=n:"string"==typeof n&&(o.checkEncoding(n),s=n),"string"==typeof i&&(o.checkEncoding(i),s=i);var u=r.byteLength(e,s);return t?this.ensureInsertable(u,a):this._ensureWriteable(u,a),this._buff.write(e,a,u,s),t?this._writeOffset+=u:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,a+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,i=3*t/2+1;i<e&&(i=e),this._buff=r.allocUnsafe(i),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 i="number"==typeof r?r:this._writeOffset;return this._ensureWriteable(t,i),e.call(this._buff,n,i),"number"==typeof r?this._writeOffset=Math.max(this._writeOffset,i+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},4370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(918),i={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 a(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?i.INVALID_OFFSET_NON_NUMBER:i.INVALID_LENGTH_NON_NUMBER);if(!a(e)||e<0)throw new Error(t?i.INVALID_OFFSET:i.INVALID_LENGTH)}t.ERRORS=i,t.checkEncoding=function(e){if(!r.Buffer.isEncoding(e))throw new Error(i.INVALID_ENCODING)},t.isFiniteInteger=a,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(i.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,"."))}},3841:function(e,t,n){e.exports=i;var r=n(8041).EventEmitter;function i(){r.call(this)}n(273)(i,r),i.Readable=n(6405),i.Writable=n(7423),i.Duplex=n(6085),i.Transform=n(4917),i.PassThrough=n(9543),i.finished=n(4297),i.pipeline=n(6545),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",u));var o=!1;function s(){o||(o=!0,e.end())}function u(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",l),e.on("error",l),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},8570:function(e,t,n){"use strict";var r=n(5734).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},9043:function(e,t,n){var r=n(8466);function i(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(i("noDeprecation"))return e;var n=!1;return function(){if(!n){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?r.trace(t):r.warn(t),n=!0}return e.apply(this,arguments)}}},6181:function(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},902:function(e,t,n){"use strict";var r=n(5021),i=n(7469),a=n(1520),o=n(2105);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(u)var h=s(BigInt.prototype.valueOf);if(l)var m=s(Symbol.prototype.valueOf);function v(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function x(e){return"[object ArrayBuffer]"===c(e)}function k(e){return"undefined"!=typeof ArrayBuffer&&(x.working?x(e):e instanceof ArrayBuffer)}function _(e){return"[object DataView]"===c(e)}function E(e){return"undefined"!=typeof DataView&&(_.working?_(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=o,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||E(e)},t.isUint8Array=function(e){return"Uint8Array"===a(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===a(e)},t.isUint16Array=function(e){return"Uint16Array"===a(e)},t.isUint32Array=function(e){return"Uint32Array"===a(e)},t.isInt8Array=function(e){return"Int8Array"===a(e)},t.isInt16Array=function(e){return"Int16Array"===a(e)},t.isInt32Array=function(e){return"Int32Array"===a(e)},t.isFloat32Array=function(e){return"Float32Array"===a(e)},t.isFloat64Array=function(e){return"Float64Array"===a(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===a(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===a(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=k,_.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&_(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=E;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===c(e)}function O(e){return void 0!==S&&(void 0===A.working&&(A.working=A(new S)),A.working?A(e):e instanceof S)}function C(e){return v(e,f)}function P(e){return v(e,d)}function T(e){return v(e,p)}function N(e){return u&&v(e,h)}function j(e){return l&&v(e,m)}t.isSharedArrayBuffer=O,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=C,t.isStringObject=P,t.isBooleanObject=T,t.isBigIntObject=N,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return C(e)||P(e)||T(e)||N(e)||j(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(k(e)||O(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},7736:function(e,t,n){var r=n(7490),i=n(8466),a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])g(s)||!_(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var a=!1;return function(){if(!a){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),a=!0}return e.apply(this,arguments)}};var s={},u=/^$/;if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG){var l={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+l+"$","i")}function c(e,n){var r={seen:[],stylize:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),p(r,e,r.depth)}function f(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function d(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&A(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return w(i)||(i=p(e,i,r)),i}var a=function(e,t){if(x(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,n);if(a)return a;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),S(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(n);if(0===o.length){if(A(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(k(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(E(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return h(n)}var l,c="",f=!1,d=["{","}"];return v(n)&&(f=!0,d=["[","]"]),A(n)&&(c=" [Function"+(n.name?": "+n.name:"")+"]"),k(n)&&(c=" "+RegExp.prototype.toString.call(n)),E(n)&&(c=" "+Date.prototype.toUTCString.call(n)),S(n)&&(c=" "+h(n)),0!==o.length||f&&0!=n.length?r<0?k(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=f?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)N(t,String(o))?a.push(m(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(m(e,t,n,r,i,!0))})),a}(e,n,r,s,o):o.map((function(t){return m(e,n,r,s,t,f)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,d)):d[0]+c+d[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,n,r,i,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),N(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=g(n)?p(e,u.value,null):p(e,u.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),x(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function v(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function g(e){return null===e}function b(e){return"number"==typeof e}function w(e){return"string"==typeof e}function x(e){return void 0===e}function k(e){return _(e)&&"[object RegExp]"===O(e)}function _(e){return"object"==typeof e&&null!==e}function E(e){return _(e)&&"[object Date]"===O(e)}function S(e){return _(e)&&("[object Error]"===O(e)||e instanceof Error)}function A(e){return"function"==typeof e}function O(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(u.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(902),t.isArray=v,t.isBoolean=y,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=x,t.isRegExp=k,t.types.isRegExp=k,t.isObject=_,t.isDate=E,t.types.isDate=E,t.isError=S,t.types.isNativeError=S,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(6181);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",T(),t.format.apply(t,arguments))},t.inherits=n(273),t._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t;if("function"!=typeof(t=e[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),j&&Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=j,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,t).then((function(e){r.nextTick(o.bind(null,null,e))}),(function(e){r.nextTick(R.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,a(e)),t}},1520:function(e,t,n){"use strict";var r=n(5767),i=n(3645),a=n(4680),o=a("Object.prototype.toString"),s=n(8857)(),u="undefined"==typeof globalThis?n.g:globalThis,l=i(),c=a("String.prototype.slice"),f={},d=n(3397),p=Object.getPrototypeOf;s&&d&&p&&r(l,(function(e){if("function"==typeof u[e]){var t=new u[e];if(Symbol.toStringTag in t){var n=p(t),r=d(n,Symbol.toStringTag);if(!r){var i=p(n);r=d(i,Symbol.toStringTag)}f[e]=r.get}}}));var h=n(2105);e.exports=function(e){return!!h(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return r(f,(function(n,r){if(!t)try{var i=n.call(e);i===r&&(t=i)}catch(e){}})),t}(e):c(o(e),8,-1))}},6:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(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,a){for(var o,s,u=i(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}},8666:function(e,t,n){"use strict";var r,i,a,o,s=n(8466);if("object"==typeof performance&&"function"==typeof performance.now){var u=performance;t.unstable_now=function(){return u.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var f=null,d=null,p=function e(){if(null!==f)try{var n=t.unstable_now();f(!0,n),f=null}catch(t){throw setTimeout(e,0),t}};r=function(e){null!==f?setTimeout(r,0,e):(f=e,setTimeout(p,0))},i=function(e,t){d=setTimeout(e,t)},a=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,m=window.clearTimeout;if(void 0!==s){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&s.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 v&&s.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,b=-1,w=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?s.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,_=k.port2;k.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();x=e+w;try{g(!0,e)?_.postMessage(null):(y=!1,g=null)}catch(e){throw _.postMessage(null),e}}else y=!1},r=function(e){g=e,y||(y=!0,_.postMessage(null))},i=function(e,n){b=h((function(){e(t.unstable_now())}),n)},a=function(){m(b),b=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<O(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function A(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,u=e[s];if(void 0!==o&&0>O(o,n))void 0!==u&&0>O(u,o)?(e[r]=u,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==u&&0>O(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],P=[],T=1,N=null,j=3,R=!1,L=!1,I=!1;function M(e){for(var t=S(P);null!==t;){if(null===t.callback)A(P);else{if(!(t.startTime<=e))break;A(P),t.sortIndex=t.expirationTime,E(C,t)}t=S(P)}}function B(e){if(I=!1,M(e),!L)if(null!==S(C))L=!0,r(D);else{var t=S(P);null!==t&&i(B,t.startTime-e)}}function D(e,n){L=!1,I&&(I=!1,a()),R=!0;var r=j;try{for(M(n),N=S(C);null!==N&&(!(N.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=N.callback;if("function"==typeof o){N.callback=null,j=N.priorityLevel;var s=o(N.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?N.callback=s:N===S(C)&&A(C),M(n)}else A(C);N=S(C)}if(null!==N)var u=!0;else{var l=S(P);null!==l&&i(B,l.startTime-n),u=!1}return u}finally{N=null,j=r,R=!1}}var U=o;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(){L||R||(L=!0,r(D))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return S(C)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,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:T++,callback:n,priorityLevel:e,startTime:o,expirationTime:u=o+u,sortIndex:-1},o>s?(e.sortIndex=o,E(P,e),null===S(C)&&e===S(P)&&(I?a():I=!0,i(B,o-s))):(e.sortIndex=u,E(C,e),L||R||(L=!0,r(D))),e},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},3830:function(e,t,n){"use strict";e.exports=n(8666)},2361:function(){},4616:function(){},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},6690: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},9728: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},6389:function(e,t,n){var r=n(3808),i=n(9617),a=n(4993);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},3808:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1655:function(e,t,n){var r=n(6015);e.exports=function(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&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},9617:function(e){e.exports=function(){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}},e.exports.__esModule=!0,e.exports.default=e.exports},4993:function(e,t,n){var r=n(8698).default,i=n(6115);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3645:function(e,t,n){"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}},3397:function(e,t,n){"use strict";var r=n(8476)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t,r=n(3705),i=n(6377);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 o(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 s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||o(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 u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(t){switch(t){case e.Pressed:return"Pressed";case e.Released:return"Released";case e.Held:return"Held"}}function d(t){switch(t){case"Pressed":return e.Pressed;case"Released":return e.Released;case"Held":return e.Held}}function p(e){switch(e){case t.MuteAllChannels:return"muteallchannels";case t.PlayInstruction:return"playinstructions"}}function h(e){switch(e){case"muteallchannels":return t.MuteAllChannels;case"playinstructions":return t.PlayInstruction}}!function(e){e[e.Pressed=1]="Pressed",e[e.Released=2]="Released",e[e.Held=3]="Held"}(e||(e={})),function(e){e[e.MuteAllChannels=0]="MuteAllChannels",e[e.PlayInstruction=1]="PlayInstruction"}(t||(t={}));var m,v={users:[]};m||(m={});var y={netMode:"init",authStatus:"unknown",profile:void 0,clientRole:void 0,playerSlot:void 0,joinCode:void 0,gameState:void 0,gameMetadata:void 0,gamePaused:void 0,toasts:[],presence:c({},v),modal:void 0,modalOpts:void 0,muted:!1,deepLinks:{},reactions:{}};function g(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)||o(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 b(e,t){switch(t.type){case"SET_USER_PROFILE":var n;return c(c({},e),{},{profile:t.profile,authStatus:null!==(n=t.profile)&&void 0!==n&&n.id?"signed-in":"signed-out"});case"SET_CLIENT_ROLE":return c(c({},e),{},{clientRole:t.clientRole});case"SET_NET_MODE":var r=c(c({},e),{},{netMode:t.mode});return"init"===t.mode&&(r=c(c({},r),{},{clientRole:void 0,playerSlot:void 0,joinCode:void 0,gameState:void 0,gameMetadata:void 0,gamePaused:void 0,presence:c({},v),modal:void 0,modalOpts:void 0})),r;case"SET_GAME_INFO":return c(c({},e),{},{gameState:c(c({},e.gameState),t.gameInfo)});case"SET_GAME_METADATA":return c(c({},e),{},{gameMetadata:t.gameMetadata});case"SET_GAME_ID":return c(c({},e),{},{gameState:c(c({},e.gameState),{},{gameId:t.gameId})});case"SET_PLAYER_SLOT":return c(c({},e),{},{playerSlot:t.playerSlot});case"CLEAR_GAME_INFO":return c(c({},e),{},{playerSlot:void 0,gameState:void 0,gameMetadata:void 0});case"SET_GAME_MODE":return c(c({},e),{},{gameState:c(c({},e.gameState),{},{gameMode:t.gameMode})});case"SHOW_TOAST":return c(c({},e),{},{toasts:[].concat(g(e.toasts),[t.toast])});case"DISMISS_TOAST":return c(c({},e),{},{toasts:e.toasts.filter((function(e){return e.id!==t.id}))});case"SET_PRESENCE":return c(c({},e),{},{presence:c({},t.presence)});case"SET_REACTION":return c(c({},e),{},{reactions:c(c({},e.reactions),{},u({},t.clientId,{id:t.reactionId,index:t.index}))});case"CLEAR_REACTION":return c(c({},e),{},{reactions:c(c({},e.reactions),{},u({},t.clientId,void 0))});case"SHOW_MODAL":return c(c({},e),{},{modal:t.modalType,modalOpts:t.modalOpts});case"CLEAR_MODAL":return c(c({},e),{},{modal:void 0,modalOpts:void 0});case"SET_DEEP_LINKS":return c(c({},e),{},{deepLinks:{shareCode:t.shareCode,joinCode:t.shareCode?void 0:t.joinCode}});case"SET_MUTE":return c(c({},e),{},{muted:t.value});case"SET_GAME_PAUSED":return c(c({},e),{},{gamePaused:t.gamePaused})}}var w,x,k=n(1411),_=(0,r.createContext)({state:void 0,dispatch:void 0});function E(e){var t=s((0,r.useReducer)(b,y),2),n=t[0],i=t[1];return(0,r.useEffect)((function(){w=n,x=i}),[n,i]),(0,k.jsx)(_.Provider,{value:{state:n,dispatch:i},children:e.children})}function S(){return(0,k.jsx)("div",{className:"tw-w-screen tw-h-screen tw-flex tw-justify-center tw-items-center tw-text-xl tw-text-white",children:lf("Loading...")})}var A,O=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?"-":"_")}),"")},C=function(e){return{type:"SET_USER_PROFILE",profile:e}},P=function(e){return{type:"SET_CLIENT_ROLE",clientRole:e}},T=function(e){return{type:"SET_NET_MODE",mode:e}},N=function(e){return{type:"SET_GAME_INFO",gameInfo:e}},j=function(e){return{type:"SET_GAME_METADATA",gameMetadata:e}},R=function(e){return{type:"SET_GAME_ID",gameId:e}},L=function(e){return{type:"SET_PLAYER_SLOT",playerSlot:e}},I=function(e){return{type:"SET_GAME_MODE",gameMode:e}},M=function(e){return{type:"SHOW_TOAST",toast:c({id:O(8)},e)}},B=function(e){return{type:"DISMISS_TOAST",id:e}},D=function(e){return{type:"SET_PRESENCE",presence:e}},U=function(e,t,n){return{type:"SET_REACTION",clientId:e,reactionId:t,index:n}},F=function(e){return{type:"CLEAR_REACTION",clientId:e}},z=function(e,t){return{type:"SHOW_MODAL",modalType:e,modalOpts:t}},V=function(e,t){return{type:"SET_DEEP_LINKS",shareCode:e,joinCode:t}},H=function(e){return{type:"SET_GAME_PAUSED",gamePaused:e}};function W(){var e=(0,r.useContext)(_).state.deepLinks,t=e.shareCode,n=e.joinCode,i=lf("Sign in to host multiplayer game {0}",t),a=lf("Sign up to host multiplayer game {0}",t),o=lf("Sign in to join multiplayer game {0}",n),s=lf("Sign up to join multiplayer game {0}",n),u=lf("Sign in to host or join a multiplayer game"),l=lf("Sign up to host or join a multiplayer game");return(0,r.useMemo)((function(){return t?{signInMessage:i,signUpMessage:a}:n?{signInMessage:o,signUpMessage:s}:{signInMessage:u,signUpMessage:l}}),[t,n])}function q(){var e=(0,r.useContext)(_).dispatch,t=W();return(0,r.useEffect)((function(){e(z("sign-in",{dialogMessages:t}))}),[t]),(0,k.jsx)(k.Fragment,{})}function G(e){return(G="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 Z(){Z=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=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 i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),o=new _(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return{value:void 0,done:!0}}for(n.method=i,n.arg=a;;){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),a}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,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(E([])));v&&v!==t&&n.call(v,i)&&(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(i,a,o,s){var u=l(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==G(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 i;this._invoke=function(e,n){function a(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(a,a):a()}}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 i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(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){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=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 a.next=a}}return{next:S}}function S(){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,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new b(u(t,n,r,i),a);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,i,(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=E,_.prototype={constructor:_,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 i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,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 i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function Y(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function $(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Y(a,r,i,o,s,"next",e)}function s(e){Y(a,r,i,o,s,"throw",e)}o(void 0)}))}}function K(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=o(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,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,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function X(e){var t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||(e.preventDefault(),e.currentTarget.click())}function Q(){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"}(A||(A={}));var J=function(e){var t=e.id,n=e.className,r=e.style,i=e.ariaLabel,a=e.ariaHidden,o=e.ariaDescribedBy,s=e.ariaControls,u=e.ariaExpanded,l=e.ariaHasPopup,c=e.ariaPosInSet,f=e.ariaSetSize,d=e.ariaSelected,p=e.role,h=e.onClick,m=e.onKeydown,v=e.onBlur,y=e.buttonRef,g=e.title,b=e.label,w=e.leftIcon,x=e.rightIcon,_=e.hardDisabled,E=e.href,S=e.target,A=e.tabIndex,O=e.disabled,C=Q("common-button",n,(O=O||_)&&"disabled");return(0,k.jsx)("button",{id:t,className:C,style:r,title:g,ref:y,onClick:O?void 0:function(e){h&&h(),E&&window.open(E,S||"_blank","noopener,noreferrer"),e.stopPropagation(),e.preventDefault()},onKeyDown:m||X,onBlur:v,role:p||"button",tabIndex:A||(O?-1:0),disabled:_,"aria-label":i,"aria-hidden":a,"aria-controls":s,"aria-expanded":u,"aria-haspopup":l,"aria-posinset":c,"aria-setsize":f,"aria-describedby":o,"aria-selected":d,children:(0,k.jsxs)("span",{className:"common-button-flex",children:[w&&(0,k.jsx)("i",{className:w,"aria-hidden":!0}),(0,k.jsx)("span",{className:"common-button-label",children:b}),x&&(0,k.jsx)("i",{className:"right "+x,"aria-hidden":!0})]})})},ee=function(e){var t=e.id,n=e.className,i=e.inputClassName,a=e.groupClassName,o=e.role,u=e.ariaHidden,l=e.ariaLabel,c=e.initialValue,f=e.label,d=e.title,p=e.placeholder,h=e.icon,m=e.iconTitle,v=e.disabled,y=e.type,g=e.readOnly,b=e.autoComplete,w=e.selectOnClick,x=e.onChange,_=e.onEnterKey,E=e.onIconClick,S=e.onBlur,A=e.handleInputRef,O=e.preserveValueOnBlur,C=s(r.useState(void 0),2),P=C[0],T=C[1];return(0,k.jsxs)("div",{className:Q("common-input-wrapper",v&&"disabled",n),children:[f&&(0,k.jsx)("label",{className:"common-input-label",htmlFor:t,children:f}),(0,k.jsxs)("div",{className:Q("common-input-group",a),children:[(0,k.jsx)("input",{id:t,className:Q("common-input",h&&"has-icon",i),title:d,role:o||"textbox",tabIndex:v?-1:0,"aria-label":l,"aria-hidden":u,type:y||"text",placeholder:p,value:void 0!==P?P:c||"",readOnly:!!g,onClick:function(e){w&&e.target.select()},onChange:function(e){var t=e.target.value;g||P===t||T(t),x&&x(t)},onKeyDown:function(t){var n="number"==typeof t.which?t.which:t.keyCode;(13===n||e.treatSpaceAsEnter&&32===n)&&_&&(t.preventDefault(),_(P))},onBlur:function(){S&&S(P),O||T(void 0)},autoComplete:b?"":"off",autoCorrect:b?"":"off",autoCapitalize:b?"":"off",spellCheck:b,disabled:v,ref:A}),h&&(E?(0,k.jsx)(J,{leftIcon:h,title:m,disabled:v,onClick:function(){E&&E(P)}}):(0,k.jsx)("i",{className:h,"aria-hidden":!0}))]})]})},te=function(e){var t=e.id,n=e.className,r=e.ariaLabel,i=e.href,a=e.target,o=e.children,s=Q("common-link",n);return(0,k.jsx)("a",{id:t,className:s,"aria-label":r,href:i,target:a,rel:"_blank"===a?"noopener noreferrer":"",children:o})};function ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(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 ie(e,t,n){return t&&re(e.prototype,t),n&&re(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oe(e,t){return(oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function se(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&&oe(e,t)}function ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function le(){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 ce(e,t){if(t&&("object"===G(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ae(e)}function fe(e){var t=le();return function(){var n,r=ue(e);if(t){var i=ue(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ce(this,n)}}function de(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ue(e)););return e}function pe(){return(pe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=de(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function he(e,t,n){return(he=le()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&oe(i,n.prototype),i}).apply(null,arguments)}function me(e){var t="function"==typeof Map?new Map:void 0;return(me=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 he(e,arguments,ue(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),oe(r,e)})(e)}var ve=Object.create(null);ve.open="0",ve.close="1",ve.ping="2",ve.pong="3",ve.message="4",ve.upgrade="5",ve.noop="6";var ye=Object.create(null);Object.keys(ve).forEach((function(e){ye[ve[e]]=e}));for(var ge={type:"error",data:"parser error"},be="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),we="function"==typeof ArrayBuffer,xe=function(e,t){var n=new FileReader;return n.onload=function(){var e=n.result.split(",")[1];t("b"+e)},n.readAsDataURL(e)},ke=function(e,t,n){var r,i=e.type,a=e.data;return be&&a instanceof Blob?t?n(a):xe(a,n):we&&(a instanceof ArrayBuffer||(r=a,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer))?t?n(a):xe(new Blob([a]),n):n(ve[i]+(a||""))},_e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ee="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Se=0;Se<_e.length;Se++)Ee[_e.charCodeAt(Se)]=Se;var Ae="function"==typeof ArrayBuffer,Oe=function(e,t){if(Ae){var n=function(e){var t,n,r,i,a,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=Ee[e.charCodeAt(t)],r=Ee[e.charCodeAt(t+1)],i=Ee[e.charCodeAt(t+2)],a=Ee[e.charCodeAt(t+3)],c[u++]=n<<2|r>>4,c[u++]=(15&r)<<4|i>>2,c[u++]=(3&i)<<6|63&a;return l}(e);return Ce(n,t)}return{base64:!0,data:e}},Ce=function(e,t){return"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e},Pe=function(e,t){if("string"!=typeof e)return{type:"message",data:Ce(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:Oe(e.substring(1),t)}:ye[n]?e.length>1?{type:ye[n],data:e.substring(1)}:{type:ye[n]}:ge},Te=String.fromCharCode(30);function Ne(e){if(e)return function(e){for(var t in Ne.prototype)e[t]=Ne.prototype[t];return e}(e)}Ne.prototype.on=Ne.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Ne.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Ne.prototype.off=Ne.prototype.removeListener=Ne.prototype.removeAllListeners=Ne.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 i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},Ne.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 i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},Ne.prototype.emitReserved=Ne.prototype.emit,Ne.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Ne.prototype.hasListeners=function(e){return!!this.listeners(e).length};var je="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function Re(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 Le=setTimeout,Ie=clearTimeout;function Me(e,t){t.useNativeTimers?(e.setTimeoutFn=Le.bind(je),e.clearTimeoutFn=Ie.bind(je)):(e.setTimeoutFn=setTimeout.bind(je),e.clearTimeoutFn=clearTimeout.bind(je))}var Be,De=function(e){se(n,e);var t=fe(n);function n(e,r,i){var a;return ne(this,n),(a=t.call(this,e)).description=r,a.context=i,a.type="TransportError",a}return ie(n)}(me(Error)),Ue=function(e){se(n,e);var t=fe(n);function n(e){var r;return ne(this,n),(r=t.call(this)).writable=!1,Me(ae(r),e),r.opts=e,r.query=e.query,r.readyState="",r.socket=e.socket,r}return ie(n,[{key:"onError",value:function(e,t,r){return pe(ue(n.prototype),"emitReserved",this).call(this,"error",new De(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,pe(ue(n.prototype),"emitReserved",this).call(this,"open")}},{key:"onData",value:function(e){var t=Pe(e,this.socket.binaryType);this.onPacket(t)}},{key:"onPacket",value:function(e){pe(ue(n.prototype),"emitReserved",this).call(this,"packet",e)}},{key:"onClose",value:function(e){this.readyState="closed",pe(ue(n.prototype),"emitReserved",this).call(this,"close",e)}}]),n}(Ne),Fe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),ze={},Ve=0,He=0;function We(e){var t="";do{t=Fe[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function qe(){var e=We(+new Date);return e!==Be?(Ve=0,Be=e):e+"."+We(Ve++)}for(;He<64;He++)ze[Fe[He]]=He;function Ge(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Ze(e){for(var t={},n=e.split("&"),r=0,i=n.length;r<i;r++){var a=n[r].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}var Ye=!1;try{Ye="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}var $e=Ye;function Ke(e){var t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||$e))return new XMLHttpRequest}catch(e){}if(!t)try{return new(je[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function Xe(){}var Qe=null!=new Ke({xdomain:!1}).responseType,Je=function(e){se(n,e);var t=fe(n);function n(e){var r;if(ne(this,n),(r=t.call(this,e)).polling=!1,"undefined"!=typeof location){var i="https:"===location.protocol,a=location.port;a||(a=i?"443":"80"),r.xd="undefined"!=typeof location&&e.hostname!==location.hostname||a!==e.port,r.xs=e.secure!==i}var o=e&&e.forceBase64;return r.supportsBinary=Qe&&!o,r}return ie(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(Te),r=[],i=0;i<n.length;i++){var a=Pe(n[i],t);if(r.push(a),"error"===a.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),i=0;e.forEach((function(e,a){ke(e,!1,(function(e){r[a]=e,++i===n&&t(r.join(Te))}))}))}(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]=qe()),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=Ge(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 et(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}(Ue),et=function(e){se(n,e);var t=fe(n);function n(e,r){var i;return ne(this,n),Me(ae(i=t.call(this)),r),i.opts=r,i.method=r.method||"GET",i.uri=e,i.async=!1!==r.async,i.data=void 0!==r.data?r.data:null,i.create(),i}return ie(n,[{key:"create",value:function(){var e=this,t=Re(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 Ke(t);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var i in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}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=Xe,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}(Ne);function tt(){for(var e in et.requests)et.requests.hasOwnProperty(e)&&et.requests[e].abort()}et.requestsCount=0,et.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",tt):"function"==typeof addEventListener&&addEventListener("onpagehide"in je?"pagehide":"unload",tt,!1));var nt="function"==typeof Promise&&"function"==typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},rt=je.WebSocket||je.MozWebSocket,it=(n(918).Buffer,"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()),at={websocket:function(e){se(n,e);var t=fe(n);function n(e){var r;return ne(this,n),(r=t.call(this,e)).supportsBinary=!e.forceBase64,r}return ie(n,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=it?{}:Re(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=it?new rt(e,t,n):t?new rt(e,t):new rt(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],i=n===e.length-1;ke(r,t.supportsBinary,(function(e){try{t.ws.send(e)}catch(e){}i&&nt((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]=qe()),this.supportsBinary||(e.b64=1);var r=Ge(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!!rt}}]),n}(Ue),polling:Je},ot=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,st=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ut(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 i=ot.exec(e||""),a={},o=14;o--;)a[st[o]]=i[o]||"";return-1!=n&&-1!=r&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.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,a.path),a.queryKey=function(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,a.query),a}var lt=function(e){se(n,e);var t=fe(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ne(this,n),r=t.call(this),e&&"object"==typeof e&&(i=e,e=null),e?(e=ut(e),i.hostname=e.host,i.secure="https"===e.protocol||"wss"===e.protocol,i.port=e.port,e.query&&(i.query=e.query)):i.host&&(i.hostname=ut(i.host).host),Me(ae(r),i),r.secure=null!=i.secure?i.secure:"undefined"!=typeof location&&"https:"===location.protocol,i.hostname&&!i.port&&(i.port=r.secure?"443":"80"),r.hostname=i.hostname||("undefined"!=typeof location?location.hostname:"localhost"),r.port=i.port||("undefined"!=typeof location&&location.port?location.port:r.secure?"443":"80"),r.transports=i.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},i),r.opts.path=r.opts.path.replace(/\/$/,"")+"/","string"==typeof r.opts.query&&(r.opts.query=Ze(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 ie(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 at[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),i=!1;n.priorWebsocketSuccess=!1;var a=function(){i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",(function(e){if(!i)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(){i||"closed"!==t.readyState&&(f(),t.setTransport(r),r.send([{type:"upgrade"}]),t.emitReserved("upgrade",r),r=null,t.upgrading=!1,t.flush())}))}else{var a=new Error("probe error");a.transport=r.name,t.emitReserved("upgradeError",a)}})))};function o(){i||(i=!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",a),r.removeListener("error",s),r.removeListener("close",u),t.off("close",l),t.off("upgrading",c)};r.once("open",a),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,i=e.length;r<i;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 i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),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}(Ne);lt.protocol=4,lt.protocol;var ct,ft=n(1398),dt=function(e){se(n,pxt.auth.AuthClient);var t=fe(n);function n(){return ne(this,n),t.apply(this,arguments)}return ie(n,[{key:"onSignedIn",value:function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,or(this.firstName());case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onSignedOut",value:function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ur(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=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=this.getState()).profile&&pxt.auth.generateUserProfilePicDataUrl(t.profile),e.next=4,ur(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=$(Z().mark((function e(t){return Z().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 pt(){return ht.apply(this,arguments)}function ht(){return(ht=$(Z().mark((function e(){return Z().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(!ct){e.next=4;break}return e.abrupt("return",ct);case 4:return ct=new Promise(function(){var e=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new dt,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",ct);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function mt(){return(mt=$(Z().mark((function e(){var t,n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pt();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 vt(e){return yt.apply(this,arguments)}function yt(){return(yt=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pt();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 gt(e,t,n){return bt.apply(this,arguments)}function bt(){return(bt=$(Z().mark((function e(t,n,r){var i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pt();case 2:return i=e.sent,e.next=5,null==i?void 0:i.loginAsync(t,n,r);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wt(){return xt.apply(this,arguments)}function xt(){return(xt=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pt();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 kt=n(1899),_t=n.n(kt),Et=function(){return pxt.BrowserUtils.isLocalHostDev()?"http://localhost:3000":"arcade.makecode.com"===window.location.hostname?window.location.pathname.startsWith("/beta")?"https://aka.ms/a9b":"https://aka.ms/a9":window.location.pathname.startsWith("/beta")?"https://aka.ms/a9sb":"https://aka.ms/a9s"};function St(e){return"".concat(Et(),"?join=").concat(encodeURIComponent(e))}function At(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)e[r]^=t[r];return e}function Ot(e){return new Promise((function(t,n){_t().gzip(e,(function(e,r){e?n(e):t(r)}))}))}function Ct(e){return new Promise((function(t,n){_t().gunzip(e,(function(e,r){e?n(e):t(r)}))}))}function Pt(e){try{var t,n=new URL(e||"");n.searchParams.has("join")&&(e=null!==(t=n.searchParams.get("join"))&&void 0!==t?t:void 0)}catch(e){}if(e&&6===(e=e.toUpperCase().replace(/[^A-Z0-9]/g,"")).length)return e}function Tt(e){try{var t,n=new URL(e||"");n.searchParams.has("host")&&(e=null!==(t=n.searchParams.get("host"))&&void 0!==t?t:void 0)}catch(e){}if(e)return pxt.Cloud.parseScriptId(e)}var Nt,jt,Rt=n(8466),Lt=function(e){return Nt&&!e||(Nt=new pxt.MainPackage(new Vt)),Nt};function It(e,t){return Mt.apply(this,arguments)}function Mt(){return(Mt=$(Z().mark((function e(t,n){var r,i,a,o,s;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="server"===t.mpRole?"pub:".concat(t.id):"empty:clientprj",(null===(o=Lt())||void 0===o?void 0:o._verspec)==r?(Lt().host(),i=Promise.resolve(),a=Promise.resolve()):((s=Lt(!0))._verspec=r,i=s.host().downloadPackageAsync(Lt(),n),a=Lt().installAllAsync()),Lt().host(),e.next=6,i;case 6:return e.next=8,a;case 8:try{"client"===t.mpRole&&(Dt(Lt()).files[pxt.MAIN_TS]="multiplayer.init()")}catch(e){Rt.error(lf("Cannot load extension: {0}",e))}case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bt(e,t){var n={},r=Object.keys(t.fileSystem).sort().join(";");return n[r]||(n[r]=pxtc.getApiInfo(e,t.jres)),n[r]}function Dt(e){var t=e._editorPkg;if(t)return t;var n=void 0;e!=Lt()&&(n=Dt(Lt()));var r=new Ut(e,n);return e==Lt()&&(r.topPkg=r),e._editorPkg=r,r}pxt.react.getTilemapProject||(pxt.react.getTilemapProject=function(){return jt||(jt=new pxt.TilemapProject).loadPackage(Lt()),jt});var Ut=function(){function e(t,n){ne(this,e),this.ksPkg=t,this.topPkg=n,this.files={},this.id=void 0}return ie(e,[{key:"getKsPkg",value:function(){return this.ksPkg}},{key:"getPkgId",value:function(){return this.ksPkg?this.ksPkg.id:this.id}},{key:"isTopLevel",value:function(){return this.ksPkg&&0==this.ksPkg.level}},{key:"setFiles",value:function(e){this.files=e}},{key:"getAllFiles",value:function(){return pxt.Util.mapMap(this.files,(function(e,t){return t}))}}]),e}();function Ft(){var e=pxt.appTarget.tsprj,t=pxt.U.clone(e.files);return t[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(e.config),t[pxt.MAIN_BLOCKS]="",t}var zt,Vt=function(){function e(){ne(this,e),this.githubPackageCache={}}return ie(e,[{key:"readFile",value:function(e,t){var n=Dt(e);return pxt.U.lookup(n.files,t)}},{key:"writeFile",value:function(e,t,n){Dt(e).files[t]=n}},{key:"getHexInfoAsync",value:function(e){return pxt.hexloader.getHexInfoAsync(this,e)}},{key:"cacheStoreAsync",value:function(e,t){return Promise.resolve()}},{key:"cacheGetAsync",value:function(e){return Promise.resolve(null)}},{key:"patchDependencies",value:function(e,t,n){if(!n)return!1;var r=pxt.github.parseRepoId(n);if(!r)return!1;for(var i=0,a=Object.keys(e.dependencies);i<a.length;i++){var o=a[i],s=e.dependencies[o],u=pxt.github.parseRepoId(s);if(u&&r.fullName==u.fullName)return pxt.semver.strcmp(r.tag,u.tag)<0&&(e.dependencies[o]=n),!0}return!1}},{key:"downloadPackageAsync",value:function(e,t){var n=this,r=e.verProtocol(),i=void 0;"github"==r&&(i=this.githubPackageCache[e._verspec]);var a=Dt(e);return(i?Promise.resolve(i):e.commonDownloadAsync()).then((function(o){if(o)return"github"!=r||i||(n.githubPackageCache[e._verspec]=pxt.Util.clone(o)),a.setFiles(o),Promise.resolve();if("empty"==r){if(0==Object.keys(a.files).length&&a.setFiles(Ft()),t&&t.length){var s=Dt(e).files,u=JSON.parse(s[pxt.CONFIG_NAME]);t.forEach((function(e){n.addPackageToConfig(u,e)})),s[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(u)}return Promise.resolve()}if("docs"==r){var l=Ft(),c=JSON.parse(l[pxt.CONFIG_NAME]);return e.verArgument().split(",").forEach((function(e){n.addPackageToConfig(c,e)})),c.yotta||(c.yotta={}),c.yotta.ignoreConflicts=!0,l[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(c),a.setFiles(l),Promise.resolve()}return"invalid"==r?(pxt.log("skipping invalid pkg ".concat(e.id)),Promise.resolve()):Promise.reject("Cannot download ".concat(e.version(),"; unknown protocol"))}))}},{key:"addPackageToConfig",value:function(e,t){var n=/^([a-zA-Z0-9_-]+)(=(.+))?$/.exec(t);if(n){if(n[3]&&this.patchDependencies(e,n[1],n[3]))return!1;e.dependencies[n[1]]=n[3]||"*"}else Rt.warn("unknown package syntax ".concat(t));return!0}}]),e}();function Ht(){var e=Lt().getTargetOptions();return Lt().getCompileOptionsAsync(e)}function Wt(e){var t={};if("server"!=e.mpRole)return t;var n=e.id;try{var r=window.localStorage.getItem(n);r&&(t=JSON.parse(r))}catch(e){}return t}function qt(e,t,n){if("server"==e.mpRole){var r=e.id,i=Wt(e);n?i[t]=n:delete i[t];try{window.localStorage.setItem(r,JSON.stringify(i))}catch(e){}}}function Gt(e,t){var n=Date.now();return pxt.debug("worker op: "+e),pxt.worker.getWorker(pxt.webConfig.workerjs).opAsync(e,t).then((function(t){return pxt.appTarget.compile.switches.time&&(pxt.log("Worker perf: ".concat(e," ").concat(Date.now()-n,"ms")),t.times&&Rt.log(t.times)),pxt.debug("worker op done: "+e),t}))}function Zt(e){return Yt.apply(this,arguments)}function Yt(){return(Yt=$(Z().mark((function e(t){var n,r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ht();case 2:return n=e.sent,t&&t(n),e.next=6,Gt("compile",{options:n});case 6:return(r=e.sent).diagnostics&&r.diagnostics.length>0&&r.diagnostics.forEach((function(e){Rt.error(e.messageText)})),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $t(e){if(zt||(zt=new pxsim.SimulatorDriver(e)),e&&(zt.container=e),zt.container)return zt}function Kt(e,t,n){var r,i=$t(e),a=n||{},o=a.fnArgs,s=a.parts,u=a.usedBuiltinParts,l=null===(r=pxt.appTarget.simulator)||void 0===r?void 0:r.boardDefinition,c={debug:!0,mute:t.mute,boardDefinition:l,parts:s,builtinParts:u,fnArgs:o,cdnUrl:pxt.webConfig.commitCdnUrl,localizedStrings:pxt.Util.getLocalizedStrings(),storedState:Wt(t),single:!0,autofocus:!0,queryParameters:t.simQueryParams,mpRole:t.mpRole};return i.setRunOptions(c),c}function Xt(){return(Xt=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Kt(t,n),null===(r=$t())||void 0===r||r.preload(1,!0);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qt(e,t){return Jt.apply(this,arguments)}function Jt(){return(Jt=$(Z().mark((function e(t,n){var r,i,a,o,s,u;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=n.builtJsInfo,e.t0){e.next=5;break}return e.next=4,en(n);case 4:e.t0=e.sent;case 5:if(a=e.t0,o=a.js){e.next=10;break}return Rt.error("Program failed to compile"),e.abrupt("return",void 0);case 10:return s=Kt(t,n,a),(u=$t(t)).options.messageSimulators=null===(r=pxt.appTarget)||void 0===r||null===(i=r.simulator)||void 0===i?void 0:i.messageSimulators,u.options.onSimulatorCommand=function(e){"restart"===e.command&&(s.storedState=Wt(n),u.run(o,s)),"setstate"==e.command&&e.stateKey&&e.stateValue&&qt(n,e.stateKey,e.stateValue)},a.breakpoints&&u.setBreakpoints(a.breakpoints),u.run(o,s),e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function en(e){return tn.apply(this,arguments)}function tn(){return(tn=$(Z().mark((function e(t){var n,r,i,a,o,s;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,It(t,[]);case 2:return i=!1,a=pxt.appTarget.versions.target,e.next=6,Zt((function(e){var n;if(e.computeUsedParts=!0,e.breakpoints=!0,"client"==t.mpRole&&(e.fileSystem[pxt.MAIN_TS]="multiplayer.init()"),e.target.preferredEditor===pxt.PYTHON_PROJECT_NAME){e.target.preferredEditor=pxt.JAVASCRIPT_PROJECT_NAME,e.ast=!0;var r=Bt(pxtc.compile(e).ast,e);e.apisInfo=r,e.target.preferredEditor=pxt.PYTHON_PROJECT_NAME}var o=null===(n=Lt().config.targetVersions)||void 0===n?void 0:n.target;if(o&&a&&pxt.semver.cmp(pxt.semver.parse(o),pxt.semver.parse(a))<0)for(var s=0,u=Object.keys(e.fileSystem);s<u.length;s++){var l=u[s];!pxt.Util.startsWith(l,"pxt_modules")&&pxt.Util.endsWith(l,".ts")&&(i=!0,e.fileSystem[l]=pxt.patching.patchJavaScript(o,e.fileSystem[l]))}}));case 6:if(o=e.sent,!((null===(n=o.diagnostics)||void 0===n?void 0:n.length)>0&&i)){e.next=12;break}return pxt.log("Compile with upgrade rules failed, trying again with original code"),e.next=11,Zt((function(e){"client"===t.mpRole&&(e.fileSystem[pxt.MAIN_TS]="multiplayer.init()")}));case 11:o=e.sent;case 12:return(null===(r=o.diagnostics)||void 0===r?void 0:r.length)>0&&Rt.error("Diagnostics",o.diagnostics),(s=pxtc.buildSimJsInfo(o)).parts=o.usedParts,e.abrupt("return",s);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var nn,rn,an=n(918).Buffer,on=n(8466),sn=pxt.BrowserUtils.isLocalHostDev()?"https://multiplayer.staging.pxt.io":"arcade.makecode.com"===window.location.hostname?"https://mp.makecode.com":"https://multiplayer.staging.pxt.io",un=function(){function e(){ne(this,e),this.sock=void 0,this.screen=void 0,this.clientRole=void 0,this.gameOverReason=void 0,this.paused=!1,this.recvMessageWithJoinTimeout=this.recvMessageWithJoinTimeout.bind(this),this.recvMessageAsync=this.recvMessageAsync.bind(this)}return ie(e,[{key:"destroy",value:function(){try{var e;null===(e=this.sock)||void 0===e||e.close(),this.sock=void 0}catch(e){}}},{key:"sendMessage",value:function(e){if(e instanceof an){var t;null===(t=this.sock)||void 0===t||t.send(e,{},(function(e){e&&on.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&&on.log("Error sending message",e)}))}}},{key:"recvMessageAsync",value:function(){var e=$(Z().mark((function e(t){var n,r,i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t instanceof ArrayBuffer)){e.next=18;break}n=ft.$.fromBuffer(an.from(t)),r=n.readUInt16LE(),e.t0=r,e.next=e.t0===rn.Binary.MessageType.CompressedScreen?7:e.t0===rn.Binary.MessageType.Input?10:e.t0===rn.Binary.MessageType.Audio?13:16;break;case 7:return e.next=9,this.recvCompressedScreenMessageAsync(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:return e.next=15,this.recvAudioMessageAsync(n);case 15:return e.abrupt("return",e.sent);case 16:e.next=53;break;case 18:if("string"!=typeof t){e.next=52;break}i=JSON.parse(t),e.t1=i.type,e.next="joined"===e.t1?23:"start-game"===e.t1?26:"presence"===e.t1?29:"reaction"===e.t1?32:"player-joined"===e.t1?35:"player-left"===e.t1?38:"game-over"===e.t1?41:"pause-game"===e.t1?44:"resume-game"===e.t1?47:50;break;case 23:return e.next=25,this.recvJoinedMessageAsync(i);case 25:return e.abrupt("return",e.sent);case 26:return e.next=28,this.recvStartGameMessageAsync(i);case 28:return e.abrupt("return",e.sent);case 29:return e.next=31,this.recvPresenceMessageAsync(i);case 31:return e.abrupt("return",e.sent);case 32:return e.next=34,this.recvReactionMessageAsync(i);case 34:return e.abrupt("return",e.sent);case 35:return e.next=37,this.recvPlayerJoinedMessageAsync(i);case 37:return e.abrupt("return",e.sent);case 38:return e.next=40,this.recvPlayerLeftMessageAsync(i);case 40:return e.abrupt("return",e.sent);case 41:return e.next=43,this.recvGameOverMessageAsync(i);case 43:return e.abrupt("return",e.sent);case 44:return e.next=46,this.recvPauseGameMessageAsync(i);case 46:return e.abrupt("return",e.sent);case 47:return e.next=49,this.recvResumeGameMessageAsync(i);case 49:return e.abrupt("return",e.sent);case 50:e.next=53;break;case 52:on.error("Unknown payload type",t);case 53:e.next=58;break;case 55:e.prev=55,e.t2=e.catch(0),on.error("Error processing message",e.t2);case 58:case"end":return e.stop()}}),e,this,[[0,55]])})));return function(t){return e.apply(this,arguments)}}()},{key:"recvMessageWithJoinTimeout",value:function(){var e=$(Z().mark((function e(t,n,r){var i,a,o,s=this;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"string"!=typeof t){e.next=6;break}return i=JSON.parse(t),e.next=5,this.recvMessageAsync(t);case 5:"joined"===i.type&&(null===(a=this.sock)||void 0===a||a.removeAllListeners("message"),null===(o=this.sock)||void 0===o||o.on("message",function(){var e=$(Z().mark((function e(t){return Z().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),on.error("Error processing message",e.t0);case 11: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=$(Z().mark((function e(t){var n=this;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var i=setTimeout((function(){r("Timed out connecting to game server"),ln()}),2e4);n.sock=new lt(sn,{transports:["websocket"],path:"/mp"}),n.sock.binaryType="arraybuffer",n.sock.on("open",(function(){var r,a,o;on.log("socket opened"),null===(r=n.sock)||void 0===r||r.on("message",function(){var t=$(Z().mark((function t(r){return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.recvMessageWithJoinTimeout(r,i,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===(a=n.sock)||void 0===a||a.on("close",(function(){on.log("socket disconnected"),Yn(n.gameOverReason)})),null===(o=n.sock)||void 0===o||o.on("error",(function(e){on.log("socket error",e)})),setTimeout((function(){n.sendMessage({type:"connect",ticket:t,version:rn.VERSION})}),500)}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"hostGameAsync",value:function(){var e=$(Z().mark((function e(t){var n,r,i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=encodeURIComponent(t),e.next=3,wt();case 3:return n=e.sent,e.next=6,fetch("".concat(sn,"/api/game/host/").concat(t),{credentials:"include",headers:{Authorization:"mkcd "+n}});case 6:return r=e.sent,e.next=9,r.json();case 9:if(null!==(i=e.sent)&&void 0!==i&&i.joinTicket){e.next=12;break}throw new Error("Game server did not return a join ticket");case 12:return e.next=14,this.connectAsync(i.joinTicket);case 14:return e.abrupt("return",i);case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"joinGameAsync",value:function(){var e=$(Z().mark((function e(t){var n,r,i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=encodeURIComponent(t),e.next=3,wt();case 3:return n=e.sent,e.next=6,fetch("".concat(sn,"/api/game/join/").concat(t),{credentials:"include",headers:{Authorization:"mkcd "+n}});case 6:if(200===(r=e.sent).status){e.next=9;break}return e.abrupt("return",{success:!1,statusCode:r.status});case 9:return e.next=11,r.json();case 11:if(null!==(i=e.sent)&&void 0!==i&&i.joinTicket){e.next=14;break}throw new Error("Game server did not return a join ticket");case 14:return e.next=16,this.connectAsync(i.joinTicket);case 16:return e.abrupt("return",c(c({},i),{},{success:!0,statusCode:r.status}));case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"startGameAsync",value:function(){var e=$(Z().mark((function e(){return Z().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=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.gameOverReason=t,null===(n=this.sock)||void 0===n||n.close();case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"sendReactionAsync",value:function(){var e=$(Z().mark((function e(t){return Z().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=$(Z().mark((function e(t){var n,r,i,a;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server said we're joined as \"".concat(t.role,'" in slot "').concat(t.slot,'"')),n=t.gameMode,r=t.gamePaused,i=t.shareCode,a=t.role,this.clientRole=a,this.paused=r,e.next=6,dr(i);case 6:if(!e.sent){e.next=9;break}return e.next=9,Vn(n,r,t.slot);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvStartGameMessageAsync",value:function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server said start game"),e.next=3,Vn("playing",this.paused);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPresenceMessageAsync",value:function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server sent presence"),e.next=3,$n(t.presence);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvReactionMessageAsync",value:function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server sent reaction"),e.next=3,er(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=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(on.log("Server sent player joined"),"host"!==this.clientRole){e.next=4;break}return e.next=4,this.sendCurrentScreenAsync();case 4:return e.next=6,nr(t.clientId);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPlayerLeftMessageAsync",value:function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server sent player joined"),e.next=3,ir(t.clientId);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvGameOverMessageAsync",value:function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server sent game over"),e.next=3,hr(t.reason);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPauseGameMessageAsync",value:function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server sent pause game"),this.paused=!0,e.next=4,vr();case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvResumeGameMessageAsync",value:function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server sent resume game"),this.paused=!1,e.next=4,gr();case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvCompressedScreenMessageAsync",value:function(){var e=$(Z().mark((function e(t){var n,r,i,a,o,s,u;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=rn.Binary.unpackCompressedScreenMessage(t),r=n.zippedData,i=n.isDelta,e.next=3,Ct(r);case 3:a=e.sent,i?this.screen&&At(this.screen,a):this.screen=a,o=this.getCurrentScreen(),s=o.image,u=o.palette,s&&this.postToSimFrame({type:"multiplayer",content:"Image",image:{data:s},palette:u});case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvInputMessageAsync",value:function(){var e=$(Z().mark((function e(t){var n,r,i,a;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=rn.Binary.unpackInputMessage(t),r=n.button,i=n.state,a=n.slot,this.postToSimFrame({type:"multiplayer",content:"Button",clientNumber:a-1,button:r,state:f(i)});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvAudioMessageAsync",value:function(){var e=$(Z().mark((function e(t){var n,r,i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=rn.Binary.unpackAudioMessage(t),r=n.instruction,i=n.soundbuf,this.postToSimFrame({type:"multiplayer",content:"Audio",instruction:p(r),soundbuf:i});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"postToSimFrame",value:function(e){var t;null===(t=$t())||void 0===t||t.postMessage(e)}},{key:"sendInputAsync",value:function(){var e=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.paused){e.next=2;break}return e.abrupt("return");case 2:r=rn.Binary.packInputMessage(t,d(n)),this.sendMessage(r);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendAudioAsync",value:function(){var e=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.paused){e.next=2;break}return e.abrupt("return");case 2:r=rn.Binary.packAudioMessage(h(t),an.from(n)),this.sendMessage(r);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendScreenUpdateAsync",value:function(){var e=$(Z().mark((function e(t,n){var r,i,a,o,s,u,l,c,f;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=[]).push(an.from(t)),n&&r.push(an.from(n)),i=an.concat(r),(a=!this.screen)?this.screen=i:(At(i,this.screen),At(this.screen,i)),e.next=25;break;case 10:if(!(s<i.length)){e.next=17;break}if(0===i[s]){e.next=14;break}return o=!1,e.abrupt("break",17);case 14:s++,e.next=10;break;case 17:if(o&&!a){e.next=23;break}return e.next=20,Ot(i);case 20:u=e.sent,l=rn.Binary.packCompressedScreenMessage(u,!a),this.sendMessage(l);case 23:e.next=30;break;case 25:return e.next=27,Ot(this.screen);case 27:c=e.sent,f=rn.Binary.packCompressedScreenMessage(c,!1),this.sendMessage(f);case 30:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendCurrentScreenAsync",value:function(){var e=$(Z().mark((function e(){var t,n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.screen){e.next=6;break}return e.next=3,Ot(this.screen);case 3:t=e.sent,n=rn.Binary.packCompressedScreenMessage(t,!1),this.sendMessage(n);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"kickPlayer",value:function(e){var t={type:"kick-player",clientId:e};this.sendMessage(t)}},{key:"gameOver",value:function(e){this.gameOverReason=e,ln()}},{key:"getCurrentScreen",value:function(){return this.screen?{image:this.screen.slice(0,9608),palette:this.screen.length>=9656?this.screen.slice(9608,9656).map((function(e){return e})):void 0}:{image:void 0,palette:void 0}}},{key:"pauseGameAsync",value:function(){var e=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.paused=!0,t={type:"pause-game"},this.sendMessage(t);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"resumeGameAsync",value:function(){var e=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.paused=!1,t={type:"resume-game"},this.sendMessage(t);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function ln(){var e;null===(e=nn)||void 0===e||e.destroy(),nn=void 0}function cn(e){return fn.apply(this,arguments)}function fn(){return(fn=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ln(),nn=new un,e.next=4,nn.hostGameAsync(t);case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dn(e){return pn.apply(this,arguments)}function pn(){return(pn=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ln(),nn=new un,e.next=4,nn.joinGameAsync(t);case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hn(){return mn.apply(this,arguments)}function mn(){return(mn=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=nn)||void 0===t?void 0:t.startGameAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vn(e){return yn.apply(this,arguments)}function yn(){return(yn=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=nn)||void 0===n?void 0:n.leaveGameAsync(t);case 2:ln();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gn(e){return bn.apply(this,arguments)}function bn(){return(bn=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=nn)||void 0===n?void 0:n.sendReactionAsync(t);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wn(e,t){return xn.apply(this,arguments)}function xn(){return(xn=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=nn)||void 0===r?void 0:r.sendInputAsync(t,n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kn(e,t){return _n.apply(this,arguments)}function _n(){return(_n=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=nn)||void 0===r?void 0:r.sendAudioAsync(t,n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function En(e,t){return Sn.apply(this,arguments)}function Sn(){return(Sn=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=nn)||void 0===r?void 0:r.sendScreenUpdateAsync(t,n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function An(e){var t;null===(t=nn)||void 0===t||t.gameOver(e)}function On(){return Cn.apply(this,arguments)}function Cn(){return(Cn=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=nn)||void 0===t?void 0:t.pauseGameAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pn(){return Tn.apply(this,arguments)}function Tn(){return(Tn=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=nn)||void 0===t?void 0:t.resumeGameAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nn(){ln()}!function(e){var t;e.VERSION=2,function(e){var t;!function(e){e[e.Input=1]="Input",e[e.CompressedScreen=3]="CompressedScreen",e[e.Audio=4]="Audio"}(t||(t={})),e.MessageType=t,e.packInputMessage=function(e,n){var r=new ft.$;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.packCompressedScreenMessage=function(e,n){var r=new ft.$;return r.writeUInt16LE(t.CompressedScreen),r.writeUInt8(n?1:0),r.writeBuffer(e),r.toBuffer()},e.unpackCompressedScreenMessage=function(e){var t=1===e.readUInt8();return{zippedData:e.readBuffer(),isDelta:t}},e.packAudioMessage=function(e,n){var r=new ft.$;return r.writeUInt16LE(t.Audio),r.writeUInt8(e),n&&r.writeBuffer(n),r.toBuffer()},e.unpackAudioMessage=function(e){return{instruction:e.readUInt8(),soundbuf:e.remaining()?e.readBuffer():void 0}}}(t||(t=e.Binary||(e.Binary={})))}(rn||(rn={}));var jn=n(8466);function Rn(e){return Ln.apply(this,arguments)}function Ln(){return(Ln=$(Z().mark((function e(t){var n,r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=Tt(t)){e.next=3;break}return e.abrupt("return",x(M({type:"error",text:lf("Invalid share code or link. Please try again."),timeoutMs:5e3})));case 3:return n=M({type:"info",text:lf("Connecting..."),showSpinner:!0}),e.prev=4,x(T("connecting")),x(n),e.next=9,cn(t);case 9:r=e.sent,jn.log(r),x(M({type:"success",text:lf("Connected!"),timeoutMs:5e3})),x(P("host")),x(N(r)),x(T("connected")),e.next=22;break;case 17:e.prev=17,e.t0=e.catch(4),jn.log("error",e.t0),x(T("init")),x(M({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3}));case 22:return e.prev=22,x(B(n.toast.id)),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[4,17,22,25]])})))).apply(this,arguments)}var In=n(8466);function Mn(e){return Bn.apply(this,arguments)}function Bn(){return(Bn=$(Z().mark((function e(t){var n,r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=Pt(t)){e.next=3;break}return e.abrupt("return",x(M({type:"error",text:lf("Invalid join code. Please try again."),timeoutMs:5e3})));case 3:return n=M({type:"info",text:lf("Connecting..."),showSpinner:!0}),e.prev=4,x(T("connecting")),x(n),e.next=9,dn(t);case 9:r=e.sent,In.log(r),r.success?(x(M({type:"success",text:lf("Connected!"),timeoutMs:5e3})),x(P("guest")),x(N(r)),x(T("connected"))):(x(M({type:"info",text:lf("Game not found"),timeoutMs:5e3})),x(T("init"))),e.next=19;break;case 14:e.prev=14,e.t0=e.catch(4),In.log("error",e.t0),x(T("init")),x(M({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3}));case 19:return e.prev=19,x(B(n.toast.id)),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[4,14,19,22]])})))).apply(this,arguments)}function Dn(){return Un.apply(this,arguments)}function Un(){return(Un=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,hn();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 Fn(e){return zn.apply(this,arguments)}function zn(){return(zn=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,pxt.tickEvent("mp.leavegame"),e.next=4,vn(t);case 4:x({type:"CLEAR_GAME_INFO"}),x({type:"SET_GAME_METADATA",gameMetadata:void 0}),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:return e.prev=10,e.finish(10);case 12:case"end":return e.stop()}}),e,null,[[0,8,10,12]])})))).apply(this,arguments)}function Vn(e,t,n){return Hn.apply(this,arguments)}function Hn(){return(Hn=$(Z().mark((function e(t,n,r){var i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=w.clientRole;try{r&&x(L(r)),x(I(t)),"playing"===t&&(x({type:"CLEAR_MODAL"}),x(M({type:"info",text:lf("Game started!"),timeoutMs:5e3})),n&&"host"!==i&&vr())}catch(e){}case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wn(e,t,n){return qn.apply(this,arguments)}function qn(){return(qn=$(Z().mark((function e(t,n,r){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,gt(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 Gn(){return Zn.apply(this,arguments)}function Zn(){return(Zn=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Nn(),e.next=4,vt();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 Yn(e){try{switch(x(T("init")),e){case"kicked":return pxt.tickEvent("mp.gotkicked"),x(M({type:"info",text:lf("Host kicked you from the game"),icon:"🤔",timeoutMs:5e3}));case"ended":return pxt.tickEvent("mp.gameover"),x(M({type:"info",text:lf("Game ended"),timeoutMs:5e3}));case"left":return pxt.tickEvent("mp.leftgame"),x(M({type:"info",text:lf("You left the game"),timeoutMs:5e3}));case"full":return pxt.tickEvent("mp.gamefull"),x(M({type:"info",text:lf("Game is full"),timeoutMs:5e3}));case"rejected":return pxt.tickEvent("mp.gamerejected"),x(M({type:"error",text:lf("Game rejected your join request"),timeoutMs:5e3}));default:return pxt.tickEvent("mp.disconnected"),x(M({type:"error",text:lf("Game disconnected"),timeoutMs:5e3}))}}catch(e){}}function $n(e){return Kn.apply(this,arguments)}function Kn(){return(Kn=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{x(D(t))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Xn=[{name:lf("smile"),emoji:"😃"},{name:lf("laugh"),emoji:"🤣"},{name:lf("surprise"),emoji:"😯"},{name:lf("cry"),emoji:"😫"},{name:lf("scared"),emoji:"😬"},{name:lf("angry"),emoji:"😠"}];function Qn(e){return Jn.apply(this,arguments)}function Jn(){return(Jn=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=Xn[t],pxt.tickEvent("mp.sendreaction",{reaction:n.name}),e.next=5,gn(t);case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:return e.prev=9,e.finish(9);case 11:case"end":return e.stop()}}),e,null,[[0,7,9,11]])})))).apply(this,arguments)}function er(e,t){return tr.apply(this,arguments)}function tr(){return(tr=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{r=O(),x(U(t,r,n)),setTimeout((function(){var e;(null===(e=w.reactions[t])||void 0===e?void 0:e.id)===r&&x(F(t))}),1e3)}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function nr(e){return rr.apply(this,arguments)}function rr(){return(rr=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(n=w.presence.users.find((function(e){return e.id===t})))&&x(M({type:"info",text:lf("Player {0} joined the game.",n.slot),timeoutMs:5e3}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ir(e){return ar.apply(this,arguments)}function ar(){return(ar=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(n=w.presence.users.find((function(e){return e.id===t})))&&x(M({type:"info",text:lf("Player {0} left the game.",n.slot),timeoutMs:5e3}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function or(e){return sr.apply(this,arguments)}function sr(){return(sr=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{x(M({type:"success",text:lf("Welcome {0}!",t),timeoutMs:5e3}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ur(e){return lr.apply(this,arguments)}function lr(){return(lr=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{x(t?C(t):{type:"SET_USER_PROFILE",profile:void 0})}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var cr,fr=n(8466);function dr(e){return pr.apply(this,arguments)}function pr(){return(pr=$(Z().mark((function e(t){var n,r,i,a,o,s,u;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n="https://makecode.com/api/".concat(t),e.next=4,fetch(n);case 4:return r=e.sent,e.next=7,r.json();case 7:return i=e.sent,a=i.name||lf("Untitled"),o=i.description||"",s="".concat(n,"/thumb"),u=i.id,x(j({title:a,description:o,thumbnail:s})),x(R(u)),e.abrupt("return",!0);case 17:return e.prev=17,e.t0=e.catch(0),fr.log("error",e.t0),x(T("init")),x(M({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3})),e.abrupt("return",!1);case 23:return e.prev=23,e.finish(23);case 25:case"end":return e.stop()}}),e,null,[[0,17,23,25]])})))).apply(this,arguments)}function hr(e){return mr.apply(this,arguments)}function mr(){return(mr=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{An(t)}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vr(){return yr.apply(this,arguments)}function yr(){return(yr=$(Z().mark((function e(){var t,n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=w.clientRole,e.prev=1,"host"!==t){e.next=6;break}return pxt.tickEvent("mp.host.pausegame"),e.next=6,On();case 6:null===(n=$t())||void 0===n||n.resume(pxsim.SimulatorDebuggerCommand.Pause),x(H(!0)),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(1);case 12:return e.prev=12,e.finish(12);case 14:case"end":return e.stop()}}),e,null,[[1,10,12,14]])})))).apply(this,arguments)}function gr(){return br.apply(this,arguments)}function br(){return(br=$(Z().mark((function e(){var t,n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=w.clientRole,e.prev=1,"host"!==t){e.next=6;break}return pxt.tickEvent("mp.host.resumegame"),e.next=6,Pn();case 6:null===(n=$t())||void 0===n||n.resume(pxsim.SimulatorDebuggerCommand.Resume),x(H(!1)),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(1);case 12:return e.prev=12,e.finish(12);case 14:case"end":return e.stop()}}),e,null,[[1,10,12,14]])})))).apply(this,arguments)}function wr(e){return xr.apply(this,arguments)}function xr(){return(xr=$(Z().mark((function e(t){var n,r,i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=w.clientRole,r=w.gameState,i=(null!=r?r:{}).gameMode,e.prev=2,t||"host"!==n||"playing"!==i){e.next=6;break}return e.next=6,vr();case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(2);case 10:return e.prev=10,e.finish(10);case 12:case"end":return e.stop()}}),e,null,[[2,8,10,12]])})))).apply(this,arguments)}function kr(e){var t;return(0,k.jsxs)("div",{children:[(0,k.jsx)(J,{className:"tw-m-0 tw-px-8 ".concat(e.selected?"tw-font-bold":""),title:e.title,label:null!==(t=e.label)&&void 0!==t?t:e.title,onClick:e.onClick}),(0,k.jsx)("div",{className:"tw-mx-1 tw-border-b-2 tw-rounded-sm tw-ease-linear tw-duration-[75ms]",style:{borderColor:e.selected?"var(--primary-color)":"transparent"}})]})}function _r(){return(0,k.jsxs)("div",{className:"tw-text-sm",children:[(0,k.jsx)("span",{className:"tw-bg-white tw-shadow-sm tw-uppercase tw-text-primary-color tw-rounded-md tw-font-bold tw-px-1 tw-pt-[0.05rem] tw-pb-[0.15rem] tw-mr-1",children:lf("Beta")}),(0,k.jsx)("span",{className:"tw-text-white",children:lf("Multiplayer")})]})}function Er(){var e=s((0,r.useState)("join"),2),t=e[0],n=e[1],i=(0,r.useRef)(),a=(0,r.useRef)(),o=(0,r.useCallback)((function(e){i.current=e}),[]),u=(0,r.useCallback)((function(e){a.current=e}),[]),l=function(){var e=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==i||null===(t=i.current)||void 0===t||!t.value){e.next=3;break}return e.next=3,Mn(i.current.value);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),c=function(){var e=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==a||null===(t=a.current)||void 0===t||!t.value){e.next=3;break}return e.next=3,Rn(a.current.value);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),f=lf("Enter share code or link"),d=lf("How do I get a share code or link?");return(0,k.jsx)("div",{className:"tw-flex tw-w-screen tw-h-screen tw-justify-center tw-items-center",children:(0,k.jsxs)("div",{className:"tw-bg-white tw-rounded-lg tw-drop-shadow-xl tw-min-h-[17rem] tw-min-w-[17rem] md:tw-min-w-[25rem]",children:[(0,k.jsx)("div",{className:"tw-absolute tw-translate-y-[-130%]",children:(0,k.jsx)(_r,{})}),(0,k.jsx)("div",{className:"tw-py-5 tw-px-10 ",children:(0,k.jsxs)("div",{className:"tw-pt-2",children:[(0,k.jsxs)("div",{className:"tw-flex tw-justify-center",children:[(0,k.jsx)(kr,{title:lf("Join Game"),label:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"tw-hidden sm:tw-inline",children:lf("Join Game")}),(0,k.jsx)("div",{className:"sm:tw-hidden",children:lf("Join")})]}),selected:"join"===t,onClick:function(){return n("join")}}),(0,k.jsx)(kr,{title:lf("Host Game"),label:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"tw-hidden sm:tw-inline",children:lf("Host Game")}),(0,k.jsx)("div",{className:"sm:tw-hidden",children:lf("Host")})]}),selected:"host"===t,onClick:function(){return n("host")}})]}),(0,k.jsxs)("div",{className:"tw-pt-2",children:["join"===t&&(0,k.jsxs)("div",{className:"tw-w-full tw-flex tw-flex-col tw-gap-4 tw-mt-2 tw-justify-center tw-items-center",children:[(0,k.jsx)("div",{className:"tw-w-full",children:(0,k.jsx)(ee,{groupClassName:"tw-w-full tw-border-1 tw-h-full tw-rounded",inputClassName:"tw-text-center tw-p-2",title:lf("Join Code"),autoComplete:!1,handleInputRef:o,preserveValueOnBlur:!0,onEnterKey:l,placeholder:lf("Enter game code")})}),(0,k.jsx)("div",{children:(0,k.jsx)(J,{className:"primary tw-px-10",label:lf("Enter"),title:lf("Join Game"),onClick:l})}),(0,k.jsx)("div",{className:"tw-text-sm",children:(0,k.jsx)(te,{href:"/docs/multiplayer#join-game",target:"_blank",children:lf("How do I get a game code?")})})]}),"host"===t&&(0,k.jsxs)("div",{className:"tw-w-full tw-flex tw-flex-col tw-gap-4 tw-mt-2 tw-justify-center tw-items-center",children:[(0,k.jsx)("div",{className:"tw-w-full",children:(0,k.jsx)(ee,{groupClassName:"tw-w-full tw-border-1 tw-h-full tw-rounded",inputClassName:"tw-p-2",title:lf("Share Code"),autoComplete:!1,handleInputRef:u,preserveValueOnBlur:!0,onEnterKey:c,placeholder:f})}),(0,k.jsx)("div",{children:(0,k.jsx)(J,{className:"primary tw-px-10",label:lf("Launch"),title:lf("Host Game"),onClick:c})}),(0,k.jsx)("div",{className:"tw-text-sm",children:(0,k.jsx)(te,{href:"/docs/multiplayer#host-game",target:"_blank",children:d})})]})]})]})})]})})}function Sr(){var e=(0,r.useContext)(_).state,t=e.playerSlot,n=e.gameState,i=e.clientRole,a=e.gamePaused,o=null==n?void 0:n.gameId,s=null==n?void 0:n.gameMode,u=(0,r.useRef)(null),l=["background-color=ED3636&button-stroke=8D2525","background-color=4E4EE9&button-stroke=3333A1","background-color=FF9A14&button-stroke=B0701A","background-color=4EB94E&button-stroke=245D24"][(t||0)-1],c="host"===i,f=function(){var e=$(Z().mark((function e(t){var n,r,i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.image,r=t.palette,i=n.data,e.next=4,En(i,r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=$(Z().mark((function e(t){var n,r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.button,r=t.state,e.next=3,wn(n,r);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=$(Z().mark((function e(t){var n,r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.instruction,r=t.soundbuf,e.next=3,kn(n,r);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){var e=function(e){var t=e.data;switch(t.type){case"status":if("running"===t.state&&"guest"===i){var n,r=function(){var e;return(null===(e=nn)||void 0===e?void 0:e.getCurrentScreen())||{image:void 0,palette:void 0}}(),a=r.image,o=r.palette;a&&(null===(n=$t())||void 0===n||n.postMessage({type:"multiplayer",content:"Image",image:{data:a},palette:o}))}return;case"multiplayer":var s=t.origin,u=t.content;return void("client"===s&&"Button"===u?d(t):"server"===s&&"Image"===u?f(t):"server"===s&&"Audio"===u&&p(t))}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}),[i]);var h=function(){return c?{simQueryParams:l,mpRole:"server",id:o}:{simQueryParams:l,mpRole:"client"}},m=function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return cr=en(h()),e.next=3,cr;case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=h(),!cr){e.next=5;break}return e.next=4,cr;case 4:t.builtJsInfo=e.sent;case 5:return cr=Qt(u.current,t),e.next=8,cr;case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)((function(){"playing"===s&&v()}),[s]),(0,r.useEffect)((function(){"playing"!==s&&u.current&&function(e,t){Xt.apply(this,arguments)}(u.current,h())}),[i,t]),(0,r.useEffect)((function(){c||m()}),[i]),(0,r.useEffect)((function(){c&&o&&m()}),[i,o]),(0,r.useEffect)((function(){return function(){cr=void 0}})),(0,k.jsx)("div",{id:"sim-container",ref:u,className:"tw-h-[calc(100vh-16rem)] tw-w-screen md:tw-w-[calc(100vw-6rem)]",style:{filter:a?"grayscale(70%) blur(1px)":"none",transition:"filter .25s"}})}var Ar,Or,Cr=Object.defineProperty,Pr=Object.getOwnPropertySymbols,Tr=Object.prototype.hasOwnProperty,Nr=Object.prototype.propertyIsEnumerable,jr=function(e,t,n){return t in e?Cr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n};!function(e){var t=function(){function t(e,n,r,a){if(ne(this,t),this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;for(var o=[],s=0;s<this.size;s++)o.push(!1);for(var u=0;u<this.size;u++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();var l=this.addEccAndInterleave(r);if(this.drawCodewords(l),-1==a)for(var c=1e9,f=0;f<8;f++){this.applyMask(f),this.drawFormatBits(f);var d=this.getPenaltyScore();d<c&&(a=f,c=d),this.applyMask(f)}i(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}return ie(t,[{key:"getModule",value:function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),n=t.length,r=0;r<n;r++)for(var i=0;i<n;i++)0==r&&0==i||0==r&&i==n-1||r==n-1&&0==i||this.drawAlignmentPattern(t[r],t[i]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,n=t,a=0;a<10;a++)n=n<<1^1335*(n>>>9);var o=21522^(t<<10|n);i(o>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,r(o,s));this.setFunctionModule(8,7,r(o,6)),this.setFunctionModule(8,8,r(o,7)),this.setFunctionModule(7,8,r(o,8));for(var u=9;u<15;u++)this.setFunctionModule(14-u,8,r(o,u));for(var l=0;l<8;l++)this.setFunctionModule(this.size-1-l,8,r(o,l));for(var c=8;c<15;c++)this.setFunctionModule(8,this.size-15+c,r(o,c));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^7973*(e>>>11);var n=this.version<<12|e;i(n>>>18==0);for(var a=0;a<18;a++){var o=r(n,a),s=this.size-11+a%3,u=Math.floor(a/3);this.setFunctionModule(s,u,o),this.setFunctionModule(u,s,o)}}}},{key:"drawFinderPattern",value:function(e,t){for(var n=-4;n<=4;n++)for(var r=-4;r<=4;r++){var i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,2!=i&&4!=i)}}},{key:"drawAlignmentPattern",value:function(e,t){for(var n=-2;n<=2;n++)for(var r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}},{key:"setFunctionModule",value:function(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}},{key:"addEccAndInterleave",value:function(e){var n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");for(var a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),u=a-s%a,l=Math.floor(s/a),c=[],f=t.reedSolomonComputeDivisor(o),d=0,p=0;d<a;d++){var h=e.slice(p,p+l-o+(d<u?0:1));p+=h.length;var m=t.reedSolomonComputeRemainder(h,f);d<u&&h.push(0),c.push(h.concat(m))}for(var v=[],y=function(e){c.forEach((function(t,n){(e!=l-o||n>=u)&&v.push(t[e])}))},g=0;g<c[0].length;g++)y(g);return i(v.length==s),v}},{key:"drawCodewords",value:function(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var n=0,a=this.size-1;a>=1;a-=2){6==a&&(a=5);for(var o=0;o<this.size;o++)for(var s=0;s<2;s++){var u=a-s,l=0==(a+1&2)?this.size-1-o:o;!this.isFunction[l][u]&&n<8*e.length&&(this.modules[l][u]=r(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}},{key:"applyMask",value:function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var n=0;n<this.size;n++){var r=void 0;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}},{key:"getPenaltyScore",value:function(){for(var e=0,n=0;n<this.size;n++){for(var r=!1,a=0,o=[0,0,0,0,0,0,0],s=0;s<this.size;s++)this.modules[n][s]==r?5==++a?e+=t.PENALTY_N1:a>5&&e++:(this.finderPenaltyAddHistory(a,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[n][s],a=1);e+=this.finderPenaltyTerminateAndCount(r,a,o)*t.PENALTY_N3}for(var u=0;u<this.size;u++){for(var l=!1,c=0,f=[0,0,0,0,0,0,0],d=0;d<this.size;d++)this.modules[d][u]==l?5==++c?e+=t.PENALTY_N1:c>5&&e++:(this.finderPenaltyAddHistory(c,f),l||(e+=this.finderPenaltyCountPatterns(f)*t.PENALTY_N3),l=this.modules[d][u],c=1);e+=this.finderPenaltyTerminateAndCount(l,c,f)*t.PENALTY_N3}for(var p=0;p<this.size-1;p++)for(var h=0;h<this.size-1;h++){var m=this.modules[p][h];m==this.modules[p][h+1]&&m==this.modules[p+1][h]&&m==this.modules[p+1][h+1]&&(e+=t.PENALTY_N2)}var v,y=0,g=K(this.modules);try{for(g.s();!(v=g.n()).done;)y=v.value.reduce((function(e,t){return e+(t?1:0)}),y)}catch(e){g.e(e)}finally{g.f()}var b=this.size*this.size,w=Math.ceil(Math.abs(20*y-10*b)/b)-1;return i(0<=w&&w<=9),i(0<=(e+=w*t.PENALTY_N4)&&e<=2568888),e}},{key:"getAlignmentPatternPositions",value:function(){if(1==this.version)return[];for(var e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6],r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}},{key:"finderPenaltyCountPatterns",value:function(e){var t=e[1];i(t<=3*this.size);var n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}},{key:"finderPenaltyAddHistory",value:function(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}],[{key:"encodeText",value:function(n,r){var i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}},{key:"encodeSegments",value:function(e,r){var o,s,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=u&&u<=l&&l<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");for(o=u;;o++){var d=8*t.getNumDataCodewords(o,r),p=a.getTotalBits(e,o);if(p<=d){s=p;break}if(o>=l)throw new RangeError("Data too long")}for(var h=0,m=[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH];h<m.length;h++){var v=m[h];f&&s<=8*t.getNumDataCodewords(o,v)&&(r=v)}var y,g=[],b=K(e);try{for(b.s();!(y=b.n()).done;){var w=y.value;n(w.mode.modeBits,4,g),n(w.numChars,w.mode.numCharCountBits(o),g);var x,k=K(w.getData());try{for(k.s();!(x=k.n()).done;){var _=x.value;g.push(_)}}catch(e){k.e(e)}finally{k.f()}}}catch(e){b.e(e)}finally{b.f()}i(g.length==s);var E=8*t.getNumDataCodewords(o,r);i(g.length<=E),n(0,Math.min(4,E-g.length),g),n(0,(8-g.length%8)%8,g),i(g.length%8==0);for(var S=236;g.length<E;S^=253)n(S,8,g);for(var A=[];8*A.length<g.length;)A.push(0);return g.forEach((function(e,t){return A[t>>>3]|=e<<7-(7&t)})),new t(o,r,A,c)}},{key:"getNumRawDataModules",value:function(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");var n=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;n-=(25*r-10)*r-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}},{key:"getNumDataCodewords",value:function(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}},{key:"reedSolomonComputeDivisor",value:function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var n=[],r=0;r<e-1;r++)n.push(0);n.push(1);for(var i=1,a=0;a<e;a++){for(var o=0;o<n.length;o++)n[o]=t.reedSolomonMultiply(n[o],i),o+1<n.length&&(n[o]^=n[o+1]);i=t.reedSolomonMultiply(i,2)}return n}},{key:"reedSolomonComputeRemainder",value:function(e,n){var r,i=n.map((function(e){return 0})),a=K(e);try{var o=function(){var e=r.value^i.shift();i.push(0),n.forEach((function(n,r){return i[r]^=t.reedSolomonMultiply(n,e)}))};for(a.s();!(r=a.n()).done;)o()}catch(e){a.e(e)}finally{a.f()}return i}},{key:"reedSolomonMultiply",value:function(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");for(var n=0,r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}}]),t}();function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;var a=function(){function e(t,n,r){if(ne(this,e),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return ie(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var r,i=[],a=K(t);try{for(a.s();!(r=a.n()).done;)n(r.value,8,i)}catch(e){a.e(e)}finally{a.f()}return new e(e.Mode.BYTE,t.length,i)}},{key:"makeNumeric",value:function(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i<t.length;){var a=Math.min(t.length-i,3);n(parseInt(t.substr(i,a),10),3*a+1,r),i+=a}return new e(e.Mode.NUMERIC,t.length,r)}},{key:"makeAlphanumeric",value:function(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r,i=[];for(r=0;r+2<=t.length;r+=2){var a=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));n(a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),11,i)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,i),new e(e.Mode.ALPHANUMERIC,t.length,i)}},{key:"makeSegments",value:function(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}},{key:"makeEci",value:function(t){var r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}},{key:"isNumeric",value:function(t){return e.NUMERIC_REGEX.test(t)}},{key:"isAlphanumeric",value:function(t){return e.ALPHANUMERIC_REGEX.test(t)}},{key:"getTotalBits",value:function(e,t){var n,r=0,i=K(e);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.mode.numCharCountBits(t);if(a.numChars>=1<<o)return 1/0;r+=4+o+a.bitData.length}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"toUtf8ByteArray",value:function(e){e=encodeURI(e);for(var t=[],n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}}]),e}();a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=a}(Ar||(Ar={})),function(e){var t=ie((function e(t,n){ne(this,e),this.ordinal=t,this.formatBits=n})),n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n}((Or=Ar||(Ar={})).QrCode||(Or.QrCode={})),function(e){!function(e){var t=function(){function e(t,n){ne(this,e),this.modeBits=t,this.numBitsCharCount=n}return ie(e,[{key:"numCharCountBits",value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}]),e}(),n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n}(e.QrSegment||(e.QrSegment={}))}(Ar||(Ar={}));var Rr=Ar,Lr={L:Rr.QrCode.Ecc.LOW,M:Rr.QrCode.Ecc.MEDIUM,Q:Rr.QrCode.Ecc.QUARTILE,H:Rr.QrCode.Ecc.HIGH};function Ir(e){var t=e,n=t.value,i=t.size,a=void 0===i?128:i,o=t.level,s=void 0===o?"L":o,u=t.bgColor,l=void 0===u?"#FFFFFF":u,c=t.fgColor,f=void 0===c?"#000000":c,d=t.includeMargin,p=void 0!==d&&d,h=t.imageSettings,m=function(e,t){var n={};for(var r in e)Tr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Pr){var i,a=K(Pr(e));try{for(a.s();!(i=a.n()).done;)r=i.value,t.indexOf(r)<0&&Nr.call(e,r)&&(n[r]=e[r])}catch(e){a.e(e)}finally{a.f()}}return n}(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),v=Rr.QrCode.encodeText(n,Lr[s]).getModules(),y=p?4:0,g=v.length+2*y,b=function(e,t,n,r){if(null==r)return null;var i=n?4:0,a=e.length+2*i,o=Math.floor(.1*t),s=a/t,u=(r.width||o)*s,l=(r.height||o)*s,c=null==r.x?e.length/2-u/2:r.x*s,f=null==r.y?e.length/2-l/2:r.y*s,d=null;if(r.excavate){var p=Math.floor(c),h=Math.floor(f);d={x:p,y:h,w:Math.ceil(u+c-p),h:Math.ceil(l+f-h)}}return{x:c,y:f,h:l,w:u,excavation:d}}(v,a,p,h),w=null;null!=h&&null!=b&&(null!=b.excavation&&(v=function(e,t){return e.slice().map((function(e,n){return n<t.y||n>=t.y+t.h?e:e.map((function(e,n){return(n<t.x||n>=t.x+t.w)&&e}))}))}(v,b.excavation)),w=r.createElement("image",{xlinkHref:h.src,height:b.h,width:b.w,x:b.x+y,y:b.y+y,preserveAspectRatio:"none"}));var x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var i=null;e.forEach((function(a,o){if(!a&&null!==i)return n.push("M".concat(i+t," ").concat(r+t,"h").concat(o-i,"v1H").concat(i+t,"z")),void(i=null);if(o!==e.length-1)a&&null===i&&(i=o);else{if(!a)return;null===i?n.push("M".concat(o+t,",").concat(r+t," h1v1H").concat(o+t,"z")):n.push("M".concat(i+t,",").concat(r+t," h").concat(o+1-i,"v1H").concat(i+t,"z"))}}))})),n.join("")}(v,y);return r.createElement("svg",function(e,t){for(var n in t||(t={}))Tr.call(t,n)&&jr(e,n,t[n]);if(Pr){var r,i=K(Pr(t));try{for(i.s();!(r=i.n()).done;)n=r.value,Nr.call(t,n)&&jr(e,n,t[n])}catch(e){i.e(e)}finally{i.f()}}return e}({height:a,width:a,viewBox:"0 0 ".concat(g," ").concat(g)},m),r.createElement("path",{fill:l,d:"M0,0 h".concat(g,"v").concat(g,"H0z"),shapeRendering:"crispEdges"}),r.createElement("path",{fill:f,d:x,shapeRendering:"crispEdges"}),w)}!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();var Mr={prefix:"far",iconName:"copy",icon:[512,512,[],"f0c5","M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"]},Br={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"]},Dr={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"]},Ur={prefix:"fas",iconName:"check",icon:[512,512,[10003,10004],"f00c","M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},Fr=n(8466);function zr(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 Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hr(e){return(Hr="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 Wr(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 qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||Yr(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 Zr(e){return function(e){if(Array.isArray(e))return $r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Yr(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 Yr(e,t){if(e){if("string"==typeof e)return $r(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)?$r(e,t):void 0}}function $r(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 Kr=function(){},Xr={},Qr={},Jr=null,ei={mark:Kr,measure:Kr};try{"undefined"!=typeof window&&(Xr=window),"undefined"!=typeof document&&(Qr=document),"undefined"!=typeof MutationObserver&&(Jr=MutationObserver),"undefined"!=typeof performance&&(ei=performance)}catch(e){}var ti,ni,ri,ii,ai,oi=(Xr.navigator||{}).userAgent,si=void 0===oi?"":oi,ui=Xr,li=Qr,ci=Jr,fi=ei,di=(ui.document,!!li.documentElement&&!!li.head&&"function"==typeof li.addEventListener&&"function"==typeof li.createElement),pi=~si.indexOf("MSIE")||~si.indexOf("Trident/"),hi="svg-inline--fa",mi="data-fa-i2svg",vi="data-fa-pseudo-element",yi="data-prefix",gi="data-icon",bi="fontawesome-i2svg",wi=["HTML","HEAD","STYLE","SCRIPT"],xi=function(){try{return!0}catch(e){return!1}}(),ki="classic",_i="sharp",Ei=[ki,_i];function Si(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e.classic}})}var Ai=Si((qr(ti={},ki,{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"}),qr(ti,_i,{fa:"solid",fass:"solid","fa-solid":"solid"}),ti)),Oi=Si((qr(ni={},ki,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),qr(ni,_i,{solid:"fass"}),ni)),Ci=Si((qr(ri={},ki,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),qr(ri,_i,{fass:"fa-solid"}),ri)),Pi=Si((qr(ii={},ki,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),qr(ii,_i,{"fa-solid":"fass"}),ii)),Ti=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,Ni="fa-layers-text",ji=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Ri=Si((qr(ai={},ki,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),qr(ai,_i,{900:"fass"}),ai)),Li=[1,2,3,4,5,6,7,8,9,10],Ii=Li.concat([11,12,13,14,15,16,17,18,19,20]),Mi=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Bi="duotone-group",Di="primary",Ui="secondary",Fi=new Set;Object.keys(Oi.classic).map(Fi.add.bind(Fi)),Object.keys(Oi.sharp).map(Fi.add.bind(Fi));var zi=[].concat(Ei,Zr(Fi),["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",Bi,"swap-opacity",Di,Ui]).concat(Li.map((function(e){return"".concat(e,"x")}))).concat(Ii.map((function(e){return"w-".concat(e)}))),Vi=ui.FontAwesomeConfig||{};li&&"function"==typeof li.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=Gr(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=li.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=i&&(Vi[r]=i)}));var Hi={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:hi,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Vi.familyPrefix&&(Vi.cssPrefix=Vi.familyPrefix);var Wi=Vr(Vr({},Hi),Vi);Wi.autoReplaceSvg||(Wi.observeMutations=!1);var qi={};Object.keys(Hi).forEach((function(e){Object.defineProperty(qi,e,{enumerable:!0,set:function(t){Wi[e]=t,Gi.forEach((function(e){return e(qi)}))},get:function(){return Wi[e]}})})),Object.defineProperty(qi,"familyPrefix",{enumerable:!0,set:function(e){Wi.cssPrefix=e,Gi.forEach((function(e){return e(qi)}))},get:function(){return Wi.cssPrefix}}),ui.FontAwesomeConfig=qi;var Gi=[],Zi=16,Yi={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function $i(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Ki(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Xi(e){return e.classList?Ki(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function Qi(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ji(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function ea(e){return e.size!==Yi.size||e.x!==Yi.x||e.y!==Yi.y||e.rotate!==Yi.rotate||e.flipX||e.flipY}function ta(){var e="fa",t=hi,n=qi.cssPrefix,r=qi.replacementClass,i=':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 a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var na=!1;function ra(){qi.autoAddCss&&!na&&(function(e){if(e&&di){var t=li.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=li.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}li.head.insertBefore(t,r)}}(ta()),na=!0)}var ia={mixout:function(){return{dom:{css:ta,insertCss:ra}}},hooks:function(){return{beforeDOMElementCreation:function(){ra()},beforeI2svg:function(){ra()}}}},aa=ui||{};aa.___FONT_AWESOME___||(aa.___FONT_AWESOME___={}),aa.___FONT_AWESOME___.styles||(aa.___FONT_AWESOME___.styles={}),aa.___FONT_AWESOME___.hooks||(aa.___FONT_AWESOME___.hooks={}),aa.___FONT_AWESOME___.shims||(aa.___FONT_AWESOME___.shims=[]);var oa=aa.___FONT_AWESOME___,sa=[],ua=!1;function la(e){di&&(ua?setTimeout(e,0):sa.push(e))}function ca(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,a=void 0===i?[]:i;return"string"==typeof e?Qi(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(Qi(e[n]),'" ')}),"").trim()}(r),">").concat(a.map(ca).join(""),"</").concat(t,">")}function fa(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}di&&((ua=(li.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(li.readyState))||li.addEventListener("DOMContentLoaded",(function e(){li.removeEventListener("DOMContentLoaded",e),ua=1,sa.map((function(e){return e()}))})));var da=function(e,t,n,r){var i,a,o,s=Object.keys(e),u=s.length,l=void 0!==r?function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}}(t,r):t;for(void 0===n?(i=1,o=e[s[0]]):(i=0,o=n);i<u;i++)o=l(o,e[a=s[i]],a,e);return o};function pa(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function ha(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 ma(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,a=ha(t);"function"!=typeof oa.hooks.addPack||i?oa.styles[e]=Vr(Vr({},oa.styles[e]||{}),a):oa.hooks.addPack(e,ha(t)),"fas"===e&&ma("fa",t)}var va,ya,ga,ba=oa.styles,wa=oa.shims,xa=(qr(va={},ki,Object.values(Ci.classic)),qr(va,_i,Object.values(Ci.sharp)),va),ka=null,_a={},Ea={},Sa={},Aa={},Oa={},Ca=(qr(ya={},ki,Object.keys(Ai.classic)),qr(ya,_i,Object.keys(Ai.sharp)),ya);function Pa(e,t){var n,r=t.split("-"),i=r[0],a=r.slice(1).join("-");return i!==e||""===a||(n=a,~zi.indexOf(n))?null:a}var Ta=function(){var e=function(e){return da(ba,(function(t,n,r){return t[r]=da(n,e,{}),t}),{})};_a=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})),Ea=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})),Oa=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 ba||qi.autoFetchSvg,n=da(wa,(function(e,n){var r=n[0],i=n[1],a=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:a}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e}),{names:{},unicodes:{}});Sa=n.names,Aa=n.unicodes,ka=Ia(qi.styleDefault,{family:qi.familyDefault})};function Na(e,t){return(_a[e]||{})[t]}function ja(e,t){return(Oa[e]||{})[t]}function Ra(e){return Sa[e]||{prefix:null,iconName:null}}function La(){return ka}function Ia(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.family,r=void 0===n?ki:n,i=Ai[r][e],a=Oi[r][e]||Oi[r][i],o=e in oa.styles?e:null;return a||o||null}Gi.push((function(e){ka=Ia(e.styleDefault,{family:qi.familyDefault})})),Ta();var Ma=(qr(ga={},ki,Object.keys(Ci.classic)),qr(ga,_i,Object.keys(Ci.sharp)),ga);function Ba(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipLookups,i=void 0!==r&&r,a=(qr(t={},ki,"".concat(qi.cssPrefix,"-").concat(ki)),qr(t,_i,"".concat(qi.cssPrefix,"-").concat(_i)),t),o=null,s=ki;(e.includes(a.classic)||e.some((function(e){return Ma.classic.includes(e)})))&&(s=ki),(e.includes(a.sharp)||e.some((function(e){return Ma.sharp.includes(e)})))&&(s=_i);var u=e.reduce((function(e,t){var n=Pa(qi.cssPrefix,t);if(ba[t]?(t=xa[s].includes(t)?Pi[s][t]:t,o=t,e.prefix=t):Ca[s].indexOf(t)>-1?(o=t,e.prefix=Ia(t,{family:s})):n?e.iconName=n:t!==qi.replacementClass&&t!==a.classic&&t!==a.sharp&&e.rest.push(t),!i&&e.prefix&&e.iconName){var r="fa"===o?Ra(e.iconName):{},u=ja(e.prefix,e.iconName);r.prefix&&(o=null),e.iconName=r.iconName||u||e.iconName,e.prefix=r.prefix||e.prefix,"far"!==e.prefix||ba.far||!ba.fas||qi.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!==_i||!ba.fass&&!qi.autoFetchSvg||(u.prefix="fass",u.iconName=ja(u.prefix,u.iconName)||u.iconName),"fa"!==u.prefix&&"fa"!==o||(u.prefix=La()||"fas"),u}var Da=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 i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach((function(t){e.definitions[t]=Vr(Vr({},e.definitions[t]||{}),i[t]),ma(t,i[t]);var n=Ci.classic[t];n&&ma(n,i[t]),Ta()}))}},{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],i=r.prefix,a=r.iconName,o=r.icon,s=o[2];e[i]||(e[i]={}),s.length>0&&s.forEach((function(t){"string"==typeof t&&(e[i][t]=o)})),e[i][a]=o})),e}}])&&Wr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ua=[],Fa={},za={},Va=Object.keys(za);function Ha(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=Fa[e]||[];return a.forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function Wa(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 i=Fa[e]||[];i.forEach((function(e){e.apply(null,n)}))}function qa(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return za[e]?za[e].apply(null,t):void 0}function Ga(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||La();if(t)return t=ja(n,t)||t,fa(Za.definitions,n,t)||fa(oa.styles,n,t)}var Za=new Da,Ya={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return di?(Wa("beforeI2svg",e),qa("pseudoElements2svg",e),qa("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===qi.autoReplaceSvg&&(qi.autoReplaceSvg=!0),qi.observeMutations=!0,la((function(){Ka({autoReplaceSvgRoot:t}),Wa("watch",e)}))}},$a={noAuto:function(){qi.autoReplaceSvg=!1,qi.observeMutations=!1,Wa("noAuto")},config:qi,dom:Ya,parse:{icon:function(e){if(null===e)return null;if("object"===Hr(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:ja(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=Ia(e[0]);return{prefix:n,iconName:ja(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(qi.cssPrefix,"-"))>-1||e.match(Ti))){var r=Ba(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||La(),iconName:ja(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var i=La();return{prefix:i,iconName:ja(i,e)||e}}}},library:Za,findIconDefinition:Ga,toHtml:ca},Ka=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?li:t;(Object.keys(oa.styles).length>0||qi.autoFetchSvg)&&di&&qi.autoReplaceSvg&&$a.dom.i2svg({node:n})};function Xa(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ca(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(di){var t=li.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Qa(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=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"===i,g=[qi.replacementClass,a?"".concat(qi.cssPrefix,"-").concat(a):""].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),b={children:[],attributes:Vr(Vr({},f.attributes),{},{"data-prefix":i,"data-icon":a,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[mi]=""),u&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||$i())},children:[u]}),delete b.attributes.title);var x=Vr(Vr({},b),{},{prefix:i,iconName:a,main:n,mask:r,maskId:l,transform:o,symbol:s,styles:Vr(Vr({},w),f.styles)}),k=r.found&&n.found?qa("generateAbstractMask",x)||{children:[],attributes:{}}:qa("generateAbstractIcon",x)||{children:[],attributes:{}},_=k.children,E=k.attributes;return x.children=_,x.attributes=E,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=!0===a?"".concat(t,"-").concat(qi.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Vr(Vr({},i),{},{id:o}),children:r}]}]}(x):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(ea(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=Ji(Vr(Vr({},a),{},{"transform-origin":"".concat(s.x+o.x/16,"em ").concat(s.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(x)}function Ja(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.title,o=e.extra,s=e.watchable,u=void 0!==s&&s,l=Vr(Vr(Vr({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});u&&(l[mi]="");var c=Vr({},o.styles);ea(i)&&(c.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,i=e.height,a=void 0===i?16:i,o=e.startCentered,s=void 0!==o&&o,u="";return u+=s&&pi?"translate(".concat(t.x/Zi-r/2,"em, ").concat(t.y/Zi-a/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/Zi,"em), calc(-50% + ").concat(t.y/Zi,"em)) "):"translate(".concat(t.x/Zi,"em, ").concat(t.y/Zi,"em) "),(u+="scale(".concat(t.size/Zi*(t.flipX?-1:1),", ").concat(t.size/Zi*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var f=Ji(c);f.length>0&&(l.style=f);var d=[];return d.push({tag:"span",attributes:l,children:[t]}),a&&d.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),d}function eo(e){var t=e.content,n=e.title,r=e.extra,i=Vr(Vr(Vr({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=Ji(r.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var to=oa.styles;function no(e){var t=e[0],n=e[1],r=Gr(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(qi.cssPrefix,"-").concat(Bi)},children:[{tag:"path",attributes:{class:"".concat(qi.cssPrefix,"-").concat(Ui),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(qi.cssPrefix,"-").concat(Di),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var ro={found:!1,width:512,height:512};function io(e,t){var n=t;return"fa"===t&&null!==qi.styleDefault&&(t=La()),new Promise((function(r,i){if(qa("missingIconAbstract"),"fa"===n){var a=Ra(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&to[t]&&to[t][e])return r(no(to[t][e]));!function(e,t){xi||qi.showMissingIcons||!e||Fr.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Vr(Vr({},ro),{},{icon:qi.showMissingIcons&&e&&qa("missingIconAbstract")||{}}))}))}var ao=function(){},oo=qi.measurePerformance&&fi&&fi.mark&&fi.measure?fi:{mark:ao,measure:ao},so='FA "6.2.0"',uo=function(e){return oo.mark("".concat(so," ").concat(e," begins")),function(){return function(e){oo.mark("".concat(so," ").concat(e," ends")),oo.measure("".concat(so," ").concat(e),"".concat(so," ").concat(e," begins"),"".concat(so," ").concat(e," ends"))}(e)}},lo=function(){};function co(e){return"string"==typeof(e.getAttribute?e.getAttribute(mi):null)}function fo(e){return li.createElementNS("http://www.w3.org/2000/svg",e)}function po(e){return li.createElement(e)}function ho(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ceFn,r=void 0===n?"svg"===e.tag?fo:po:n;if("string"==typeof e)return li.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach((function(t){i.setAttribute(t,e.attributes[t])}));var a=e.children||[];return a.forEach((function(e){i.appendChild(ho(e,{ceFn:r}))})),i}var mo={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(ho(e),t)})),null===t.getAttribute(mi)&&qi.keepOriginalSource){var n=li.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(~Xi(t).indexOf(qi.replacementClass))return mo.replace(e);var r=new RegExp("".concat(qi.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce((function(e,t){return t===qi.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var a=n.map((function(e){return ca(e)})).join("\n");t.setAttribute(mi,""),t.innerHTML=a}};function vo(e){e()}function yo(e,t){var n="function"==typeof t?t:lo;if(0===e.length)n();else{var r=vo;"async"===qi.mutateApproach&&(r=ui.requestAnimationFrame||vo),r((function(){var t=!0===qi.autoReplaceSvg?mo.replace:mo[qi.autoReplaceSvg]||mo.replace,r=uo("mutate");e.map(t),r(),n()}))}}var go=!1;function bo(){go=!0}function wo(){go=!1}var xo=null;function ko(e){if(ci&&qi.observeMutations){var t=e.treeCallback,n=void 0===t?lo:t,r=e.nodeCallback,i=void 0===r?lo:r,a=e.pseudoElementsCallback,o=void 0===a?lo:a,s=e.observeMutationsRoot,u=void 0===s?li:s;xo=new ci((function(e){if(!go){var t=La();Ki(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!co(e.addedNodes[0])&&(qi.searchPseudoElements&&o(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&qi.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&co(e.target)&&~Mi.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(yi):null,n=e.getAttribute?e.getAttribute(gi):null;return t&&n}(e.target)){var r=Ba(Xi(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(yi,a||t),s&&e.target.setAttribute(gi,s)}else(u=e.target)&&u.classList&&u.classList.contains&&u.classList.contains(qi.replacementClass)&&i(e.target);var u}))}})),di&&xo.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function _o(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}function Eo(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=Ba(Xi(e));return i.prefix||(i.prefix=La()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=function(e,t){return(Ea[e]||{})[t]}(i.prefix,e.innerText)||Na(i.prefix,pa(e.innerText))),!i.iconName&&qi.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function So(e){var t=Ki(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 qi.autoA11y&&(n?t["aria-labelledby"]="".concat(qi.replacementClass,"-title-").concat(r||$i()):(t["aria-hidden"]="true",t.focusable="false")),t}function Ao(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=Eo(e),r=n.iconName,i=n.prefix,a=n.rest,o=So(e),s=Ha("parseNodeAttributes",{},e),u=t.styleParser?_o(e):[];return Vr({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Yi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:u,attributes:o}},s)}var Oo=oa.styles;function Co(e){var t="nest"===qi.autoReplaceSvg?Ao(e,{styleParser:!1}):Ao(e);return~t.extra.classes.indexOf(Ni)?qa("generateLayersText",e,t):qa("generateSvgReplacementMutation",e,t)}var Po=new Set;function To(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!di)return Promise.resolve();var n=li.documentElement.classList,r=function(e){return n.add("".concat(bi,"-").concat(e))},i=function(e){return n.remove("".concat(bi,"-").concat(e))},a=qi.autoFetchSvg?Po:Ei.map((function(e){return"fa-".concat(e)})).concat(Object.keys(Oo));a.includes("fa")||a.push("fa");var o=[".".concat(Ni,":not([").concat(mi,"])")].concat(a.map((function(e){return".".concat(e,":not([").concat(mi,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=Ki(e.querySelectorAll(o))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var u=uo("onTree"),l=s.reduce((function(e,t){try{var n=Co(t);n&&e.push(n)}catch(e){xi||"MissingIcon"===e.name&&Fr.error(e)}return e}),[]);return new Promise((function(e,n){Promise.all(l).then((function(n){yo(n,(function(){r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),u(),e()}))})).catch((function(e){u(),n(e)}))}))}function No(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Co(e).then((function(e){e&&yo([e],t)}))}Ei.map((function(e){Po.add("fa-".concat(e))})),Object.keys(Ai.classic).map(Po.add.bind(Po)),Object.keys(Ai.sharp).map(Po.add.bind(Po)),Po=Zr(Po);var jo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Yi:n,i=t.symbol,a=void 0!==i&&i,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 Xa(Vr({type:"icon"},e),(function(){return Wa("beforeDOMElementCreation",{iconDefinition:e,params:t}),qi.autoA11y&&(f?y["aria-labelledby"]="".concat(qi.replacementClass,"-title-").concat(p||$i()):(y["aria-hidden"]="true",y.focusable="false")),Qa({icons:{main:no(k),mask:s?no(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:x,transform:Vr(Vr({},Yi),r),symbol:a,title:f,maskId:l,titleId:p,extra:{attributes:y,styles:b,classes:m}})}))}},Ro={mixout:function(){return{icon:(e=jo,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:Ga(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Ga(i||{})),e(r,Vr(Vr({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=To,e.nodeCallback=No,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?li:t,r=e.callback;return To(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,a=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([io(n,a),u.iconName?io(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(u){var f=Gr(u,2),d=f[0],p=f[1];t([e,Qa({icons:{main:d,mask:p},prefix:a,iconName:n,transform:o,symbol:s,maskId:l,title:r,titleId:i,extra:c,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.transform,o=Ji(e.styles);return o.length>0&&(r.style=o),ea(a)&&(t=qa("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},Lo={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 Xa({type:"layer"},(function(){Wa("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(qi.cssPrefix,"-layers")].concat(Zr(r)).join(" ")},children:n}]}))}}}},Io={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,i=t.classes,a=void 0===i?[]:i,o=t.attributes,s=void 0===o?{}:o,u=t.styles,l=void 0===u?{}:u;return Xa({type:"counter",content:e},(function(){return Wa("beforeDOMElementCreation",{content:e,params:t}),eo({content:e.toString(),title:r,extra:{attributes:s,styles:l,classes:["".concat(qi.cssPrefix,"-layers-counter")].concat(Zr(a))}})}))}}}},Mo={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Yi:n,i=t.title,a=void 0===i?null:i,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 Xa({type:"text",content:e},(function(){return Wa("beforeDOMElementCreation",{content:e,params:t}),Ja({content:e,transform:Vr(Vr({},Yi),r),title:a,extra:{attributes:l,styles:f,classes:["".concat(qi.cssPrefix,"-layers-text")].concat(Zr(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,a=null,o=null;if(pi){var s=parseInt(getComputedStyle(e).fontSize,10),u=e.getBoundingClientRect();a=u.width/s,o=u.height/s}return qi.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,Ja({content:e.innerHTML,width:a,height:o,transform:r,title:n,extra:i,watchable:!0})])}}},Bo=new RegExp('"',"ug"),Do=[1105920,1112319];function Uo(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,i){if(null!==e.getAttribute(n))return r();var a=Ki(e.children).filter((function(e){return e.getAttribute(vi)===t}))[0],o=ui.getComputedStyle(e,t),s=o.getPropertyValue("font-family").match(ji),u=o.getPropertyValue("font-weight"),l=o.getPropertyValue("content");if(a&&!s)return e.removeChild(a),r();if(s&&"none"!==l&&""!==l){var c=o.getPropertyValue("content"),f=~["Sharp"].indexOf(s[2])?_i:ki,d=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Oi[f][s[2].toLowerCase()]:Ri[f][u],p=function(e){var t=e.replace(Bo,""),n=function(e,t){var n,r=e.length,i=e.charCodeAt(0);return i>=55296&&i<=56319&&r>1&&(n=e.charCodeAt(1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}(t),r=n>=Do[0]&&n<=Do[1],i=2===t.length&&t[0]===t[1];return{value:pa(i?t[0]:t),isSecondary:r||i}}(c),h=p.value,m=p.isSecondary,v=s[0].startsWith("FontAwesome"),y=Na(d,h),g=y;if(v){var b=function(e){var t=Aa[e],n=Na("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||a&&a.getAttribute(yi)===d&&a.getAttribute(gi)===g)r();else{e.setAttribute(n,g),a&&e.removeChild(a);var w={iconName:null,title:null,titleId:null,prefix:null,transform:Yi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},x=w.extra;x.attributes[vi]=t,io(y,d).then((function(i){var a=Qa(Vr(Vr({},w),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:g,extra:x,watchable:!0})),o=li.createElement("svg");"::before"===t?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=a.map((function(e){return ca(e)})).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function Fo(e){return Promise.all([Uo(e,"::before"),Uo(e,"::after")])}function zo(e){return!(e.parentNode===document.head||~wi.indexOf(e.tagName.toUpperCase())||e.getAttribute(vi)||e.parentNode&&"svg"===e.parentNode.tagName)}function Vo(e){if(di)return new Promise((function(t,n){var r=Ki(e.querySelectorAll("*")).filter(zo).map(Fo),i=uo("searchPseudoElements");bo(),Promise.all(r).then((function(){i(),wo(),t()})).catch((function(){i(),wo(),n()}))}))}var Ho=!1,Wo=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},qo={x:0,y:0,width:"100%",height:"100%"};function Go(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;Ua=e,Fa={},Object.keys(za).forEach((function(e){-1===Va.indexOf(e)&&delete za[e]})),Ua.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"===Hr(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){Fa[e]||(Fa[e]=[]),Fa[e].push(r[e])}))}e.provides&&e.provides(za)}))}([ia,Ro,Lo,Io,Mo,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Vo,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?li:t;qi.searchPseudoElements&&Vo(n)}}},{mixout:function(){return{dom:{unwatch:function(){bo(),Ho=!0}}}},hooks:function(){return{bootstrap:function(){ko(Ha("mutationObserverCallbacks",{}))},noAuto:function(){xo&&xo.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Ho?wo():ko(Ha("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return Wo(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=Wo(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={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:a,inner:{transform:"".concat(o," ").concat(s," ").concat(u)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:Vr({},l.outer),children:[{tag:"g",attributes:Vr({},l.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Vr(Vr({},t.icon.attributes),l.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?Ba(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=La()),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,i=e.main,a=e.mask,o=e.maskId,s=e.transform,u=i.width,l=i.icon,c=a.width,f=a.icon,d=function(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="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(i," ").concat(a," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:s,containerWidth:c,iconWidth:u}),p={tag:"rect",attributes:Vr(Vr({},qo),{},{fill:"white"})},h=l.children?{children:l.children.map(Go)}:{},m={tag:"g",attributes:Vr({},d.inner),children:[Go(Vr({tag:l.tag,attributes:Vr(Vr({},l.attributes),d.path)},h))]},v={tag:"g",attributes:Vr({},d.outer),children:[m]},y="mask-".concat(o||$i()),g="clip-".concat(o||$i()),b={tag:"mask",attributes:Vr(Vr({},qo),{},{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:Vr({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(y,")")},qo)}),{children:n,attributes:r}}}},{provides:function(e){var t=!1;ui.matchMedia&&(t=ui.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:Vr(Vr({},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 i=Vr(Vr({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Vr(Vr({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:Vr(Vr({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Vr(Vr({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:Vr(Vr({},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:Vr(Vr({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Vr(Vr({},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:Vr(Vr({},i),{},{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:$a});var Zo=$a.parse,Yo=$a.icon,$o=n(5192),Ko=n.n($o),Xo=n(8466);function Qo(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 Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach((function(t){ts(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function es(e){return(es="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 ts(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ns(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rs(e){return function(e){if(Array.isArray(e))return is(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 is(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)?is(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 is(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 as(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 os=["style"];function ss(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=as(t.slice(0,r)),a=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[i]=a,e}),{})}var us=!1;try{us=!0}catch(e){}function ls(e){return e&&"object"===es(e)&&e.prefix&&e.iconName&&e.icon?e:Zo.icon?Zo.icon(e):null===e?null:e&&"object"===es(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 cs(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ts({},e,t):{}}var fs=r.forwardRef((function(e,t){var n=e.icon,r=e.mask,i=e.symbol,a=e.className,o=e.title,s=e.titleId,u=e.maskId,l=ls(n),c=cs("classes",[].concat(rs(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=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=(ts(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"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),ts(t,"fa-rotate-".concat(g),null!=g&&0!==g),ts(t,"fa-pull-".concat(b),null!=b),ts(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)),rs(a.split(" ")))),f=cs("transform","string"==typeof e.transform?Zo.transform(e.transform):e.transform),d=cs("mask",ls(r)),p=Yo(l,Jo(Jo(Jo(Jo({},c),f),d),{},{symbol:i,title:o,titleId:s,maskId:u}));if(!p)return function(){var e;!us&&Xo&&"function"==typeof Xo.error&&(e=Xo).error.apply(e,arguments)}("Could not find icon",l),null;var h=p.abstract,m={ref:t};return Object.keys(e).forEach((function(t){fs.defaultProps.hasOwnProperty(t)||(m[t]=e[t])})),ds(h[0],m)}));fs.displayName="FontAwesomeIcon",fs.propTypes={beat:Ko().bool,border:Ko().bool,beatFade:Ko().bool,bounce:Ko().bool,className:Ko().string,fade:Ko().bool,flash:Ko().bool,mask:Ko().oneOfType([Ko().object,Ko().array,Ko().string]),maskId:Ko().string,fixedWidth:Ko().bool,inverse:Ko().bool,flip:Ko().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ko().oneOfType([Ko().object,Ko().array,Ko().string]),listItem:Ko().bool,pull:Ko().oneOf(["right","left"]),pulse:Ko().bool,rotation:Ko().oneOf([0,90,180,270]),shake:Ko().bool,size:Ko().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ko().bool,spinPulse:Ko().bool,spinReverse:Ko().bool,symbol:Ko().oneOfType([Ko().bool,Ko().string]),title:Ko().string,titleId:Ko().string,transform:Ko().oneOfType([Ko().string,Ko().object]),swapOpacity:Ko().bool},fs.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 ds=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),a=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=ss(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[as(t)]=r}return e}),{attrs:{}}),o=r.style,s=void 0===o?{}:o,u=ns(r,os);return a.attrs.style=Jo(Jo({},a.attrs.style),s),t.apply(void 0,[n.tag,Jo(Jo({},a.attrs),u)].concat(rs(i)))}.bind(null,r.createElement);function ps(e){var t=(0,r.useContext)(_).state,n=s((0,r.useState)(!1),2),i=n[0],a=n[1],o=function(){var n=$(Z().mark((function n(){var r;return Z().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.eventName&&pxt.tickEvent(e.eventName),null!==(r=t.gameState)&&void 0!==r&&r.joinCode&&(navigator.clipboard.writeText(e.copyValue),a(!0));case 2:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,r.useEffect)((function(){if(i){var e=setTimeout((function(){a(!1)}),2500);return function(){clearTimeout(e)}}}),[i]),(0,k.jsx)("button",{onClick:o,title:e.title,children:(0,k.jsxs)("div",{children:[!i&&(0,k.jsx)(fs,{icon:Mr,className:"hover:tw-scale-110 tw-ease-linear tw-duration-[50ms]"}),i&&(0,k.jsx)(fs,{icon:Ur,className:"tw-text-green-600"})]})})}function hs(e){var t=e.particle.index,n=Xn[t].emoji,i=(0,r.useMemo)((function(){var e=1.25+1.25*Math.random(),t=3*e+10*Math.random();return{flyUpDuration:e,rotationDuration:3+.5*Math.random(),rotationAnim:Math.random()>.5?"reaction-rotate-left":"reaction-rotate-right",horzAnim:Math.random()>.5?"reaction-fly-left":"reaction-fly-right",flyHorzDuration:t}}),[]);return(0,k.jsx)("div",{className:"tw-absolute tw-select-none tw-pointer-events-none tw-z-[100]",style:{animation:"reaction-fly-up linear ".concat(i.flyUpDuration,"s forwards,\n ").concat(i.horzAnim," linear ").concat(i.flyHorzDuration,"s forwards")},children:(0,k.jsx)("div",{className:"tw-select-none tw-pointer-events-none",style:{animation:"".concat(i.rotationAnim," ease-in-out ").concat(i.rotationDuration,"s infinite")},children:n})})}function ms(e){var t=(0,r.useContext)(_).state,n=e.clientId,i=t.reactions[n],a=s((0,r.useState)([]),2),o=a[0],u=a[1];return(0,r.useEffect)((function(){if(i&&!o.find((function(e){return e.id===i.id}))){var e={id:i.id,index:i.index,startTime:Date.now()};u((function(t){return[].concat(g(t),[e])}))}}),[i,o,u]),(0,r.useEffect)((function(){var e=setInterval((function(){var e=Date.now();u(o.filter((function(t){return e-t.startTime<5e3})))}),1e3);return function(){return clearInterval(e)}}),[o,u]),(0,k.jsx)("div",{className:"tw-absolute tw-pointer-events-none",style:{transform:"translateY(-20px)"},children:(0,k.jsx)("div",{className:"tw-flex tw-flex-row tw-justify-center",children:o.map((function(e){return(0,k.jsx)(hs,{particle:e},e.id)}))})})}function vs(e){var t=e.slot;return(0,k.jsx)("svg",{width:"25",height:"29",viewBox:"0 0 25 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,k.jsx)("path",{style:{fill:"rgb(var(--slot-".concat(t,"-color))")},d:"M12.7544 14.686C16.6204 14.686 19.7544 11.552 19.7544 7.68602C19.7544 3.82003 16.6204 0.686035 12.7544 0.686035C8.8884 0.686035 5.75439 3.82003 5.75439 7.68602C5.75439 11.552 8.8884 14.686 12.7544 14.686ZM4.25439 16.686C2.32136 16.686 0.754339 18.2531 0.754395 20.1861L0.754409 20.6861C0.754421 23.0795 2.27704 25.1034 4.43931 26.4794C6.61345 27.863 9.55594 28.686 12.7543 28.686C15.9527 28.686 18.8952 27.863 21.0694 26.4795C23.2317 25.1034 24.7544 23.0795 24.7544 20.6861V20.186C24.7544 18.253 23.1874 16.686 21.2544 16.686H4.25439Z"})})}function ys(e){var t=e.children,n=e.visible,i=e.className,a=e.onClickedOutside,o=(0,r.useRef)(),s=(0,r.useCallback)((function(e){o.current=e}),[]);return function(e,t){(0,r.useEffect)((function(){var n=function(n){var r=null==e?void 0:e.current;r&&!r.contains(n.target)&&(null==t||t())};return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}}),[e])}(o,(function(){return a()})),n?(0,k.jsx)("div",{ref:s,className:i,children:t}):null}function gs(){var e=(0,r.useContext)(_),t=e.state,n=e.dispatch,i=t.presence,a=t.clientRole,o=t.playerSlot,u=s((0,r.useState)(0),2),l=u[0],c=u[1],f=(0,r.useMemo)((function(){return(null==i?void 0:i.users)&&i.users.filter((function(e){return e.slot<5}))}),[i]),d=function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:pxt.tickEvent("mp.leavegame",{role:a}),n(z("leave-game"));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function p(e){var t=e.slot,n=e.children;return(0,k.jsx)(ys,{className:"tw-absolute tw-z-50 tw-translate-y-[-110%] tw-translate-x-[-50%] tw-rounded-lg tw-border-2 tw-border-gray-100",visible:l===t,onClickedOutside:function(){return c(0)},children:(0,k.jsx)("div",{className:"tw-flex tw-flex-row tw-gap-1 tw-p-2 tw-bg-white tw-drop-shadow-xl tw-rounded-md",children:n})})}var h=function(e){var t="host"===a,r=1===e,i=e===o,s=f.filter((function(t){return t.slot===e})).shift();return t&&i?(0,k.jsx)(p,{slot:e,children:(0,k.jsx)(J,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("End the game"),title:lf("End the game"),onClick:function(){return d()}})}):t&&!r&&s?(0,k.jsx)(p,{slot:e,children:(0,k.jsx)(J,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("Remove from game"),title:lf("Remove from game"),onClick:function(){return function(e){pxt.tickEvent("mp.kickplayer"),c(0);var t=f.filter((function(t){return t.slot===e})).shift();t&&n(z("kick-player",{clientId:t.id}))}(e)}})}):!t&&i?(0,k.jsx)(p,{slot:e,children:(0,k.jsx)(J,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("Leave game"),title:lf("Leave game"),onClick:function(){return d()}})}):null};return(0,k.jsx)("div",{className:"tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-2 tw-border-l-2 tw-pl-2 tw-border-slot-0-color",children:[1,2,3,4].map((function(e){var t=f.find((function(t){return t.slot===e})),n=h(e),r=!t,i=e===o;return(0,k.jsxs)("div",{children:[(0,k.jsx)("div",{className:"tw-px-[50%]",children:n}),(0,k.jsx)(J,{className:"tw-rounded-full tw-m-0 tw-p-0",hardDisabled:!n,label:(0,k.jsxs)("div",{className:"tw-flex tw-select-none tw-text-black\n tw-font-bold tw-rounded-full tw-h-11 tw-border-2\n tw-w-11 tw-justify-center tw-items-center\n tw-text-slot-".concat(e,"-color"),style:{backgroundColor:"rgba(var(--slot-".concat(r?0:e,"-color),0.1)"),borderColor:"rgb(var(--slot-".concat(r?0:e,"-color))")},children:[(0,k.jsx)(vs,{slot:r?0:e}),t&&(0,k.jsx)(ms,{clientId:t.id}),i&&(0,k.jsx)("div",{className:"tw-absolute tw-translate-y-[110%]",children:(0,k.jsx)("div",{className:"tw-z-10 tw-border tw-rounded-xl tw-text-xs tw-px-2 tw-font-medium tw-uppercase",style:{backgroundColor:"rgb(var(--you-tag-bg-color))",borderColor:"rgb(var(--you-tag-border-color))"},children:lf("you")})})]}),title:r?lf("Player {0} (empty)",e):lf("Player {0}",e),onClick:function(){return c(e)}})]},e)}))})}function bs(e){return(0,k.jsx)("svg",{className:e.className,width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,k.jsx)("path",{style:{fill:"rgb(var(--reaction-color))"},d:"M10.3491 13.686C11.4537 13.686 12.3491 12.7906 12.3491 11.686C12.3491 10.5815 11.4537 9.68604 10.3491 9.68604C9.24455 9.68604 8.34912 10.5815 8.34912 11.686C8.34912 12.7906 9.24455 13.686 10.3491 13.686ZM20.3491 11.686C20.3491 12.7906 19.4537 13.686 18.3491 13.686C17.2446 13.686 16.3491 12.7906 16.3491 11.686C16.3491 10.5815 17.2446 9.68604 18.3491 9.68604C19.4537 9.68604 20.3491 10.5815 20.3491 11.686ZM7.90212 17.7916C8.39359 17.5459 8.99068 17.7428 9.23997 18.2313L9.24349 18.2378C9.24901 18.2478 9.26019 18.2677 9.27736 18.296C9.31176 18.3526 9.36981 18.4425 9.45402 18.5548C9.62278 18.7798 9.8937 19.0909 10.2865 19.4052C11.0595 20.0235 12.3423 20.686 14.3493 20.686C16.3564 20.686 17.6392 20.0235 18.4121 19.4052C18.805 19.0909 19.0759 18.7798 19.2446 18.5548C19.3289 18.4425 19.3869 18.3526 19.4213 18.296C19.4385 18.2677 19.4497 18.2478 19.4552 18.2378L19.4587 18.2313C19.708 17.7428 20.3051 17.5459 20.7965 17.7916C21.2905 18.0386 21.4908 18.6393 21.2438 19.1333L21.2432 19.1343L21.2426 19.1355L21.2414 19.138L21.2384 19.1439L21.2306 19.1589C21.2246 19.1704 21.2169 19.1847 21.2076 19.2017C21.1889 19.2356 21.1635 19.2802 21.1309 19.3339C21.0657 19.4413 20.9714 19.5858 20.8446 19.7548C20.5915 20.0923 20.2062 20.5312 19.6615 20.9669C18.5595 21.8485 16.8423 22.686 14.3493 22.686C11.8564 22.686 10.1392 21.8485 9.03714 20.9669C8.49247 20.5312 8.10714 20.0923 7.85402 19.7548C7.72729 19.5858 7.633 19.4413 7.56779 19.3339C7.53515 19.2802 7.50972 19.2356 7.49106 19.2017C7.48173 19.1847 7.47409 19.1704 7.46808 19.1589L7.46029 19.1439L7.4573 19.138L7.45603 19.1355L7.45545 19.1343L7.45491 19.1333C7.20793 18.6393 7.40814 18.0386 7.90212 17.7916ZM14.3491 0.686035C6.61713 0.686035 0.349121 6.95405 0.349121 14.686C0.349121 22.418 6.61713 28.686 14.3491 28.686C22.0811 28.686 28.3491 22.418 28.3491 14.686C28.3491 6.95405 22.0811 0.686035 14.3491 0.686035ZM2.34912 14.686C2.34912 8.05862 7.7217 2.68604 14.3491 2.68604C20.9765 2.68604 26.3491 8.05862 26.3491 14.686C26.3491 21.3135 20.9765 26.686 14.3491 26.686C7.7217 26.686 2.34912 21.3135 2.34912 14.686Z"})})}function ws(){var e=s((0,r.useState)(!1),2),t=e[0],n=e[1],i=function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Qn(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,k.jsxs)("div",{children:[(0,k.jsx)(ys,{className:"tw-absolute tw-translate-y-[-120%]",visible:t,onClickedOutside:function(){return n(!1)},children:(0,k.jsx)("div",{className:"tw-flex tw-flex-row tw-gap-3 tw-p-2 tw-bg-white tw-drop-shadow-xl tw-rounded-md tw-border-2 tw-border-gray-100",children:Xn.map((function(e,t){return(0,k.jsx)(J,{className:"tw-flex tw-items-center tw-justify-center tw-m-0 tw-p-0 tw-cursor-pointer tw-select-none tw-scale-110 hover:tw-scale-125 tw-ease-linear tw-duration-[50ms] tw-h-8 tw-w-8 tw-text-2xl",label:e.emoji,title:e.name,onClick:function(){return i(t)}},t)}))})}),(0,k.jsx)(J,{label:(0,k.jsx)(bs,{className:"hover:tw-scale-125 tw-ease-linear tw-duration-[50ms]"}),title:lf("Reactions"),className:"tw-flex tw-items-center tw-justify-center\n tw-select-none tw-border-2 tw-reaction-color\n tw-rounded-full tw-h-11 tw-w-11 tw-text-2xl !tw-m-0 !tw-p-0",style:{backgroundColor:"rgba(var(--reaction-color),0.1)"},onClick:function(){var e=!t;e&&pxt.tickEvent("mp.reactions.open"),n(e)}})]})}function xs(){return(0,k.jsxs)("div",{className:"tw-flex tw-flex-row tw-space-x-2 tw-items-center tw-align-middle tw-justify-center",children:[(0,k.jsx)(ws,{}),(0,k.jsx)(gs,{})]})}function ks(){var e,t=(0,r.useContext)(_),n=t.state,i=t.dispatch,a=function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.hostlobby.startgame"),i({type:"CLEAR_MODAL"}),e.next=4,Dn();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o=null===(e=n.gameState)||void 0===e?void 0:e.joinCode;if(!o)return null;var s=lf("Have your friend go to {0} and enter code","{0}").split("{0}"),u=Et(),l=(null==o?void 0:o.slice(0,3))+" "+(null==o?void 0:o.slice(3)),c=St(o);return(0,k.jsxs)("div",{className:"tw-bg-white tw-shadow-lg tw-rounded-lg tw-m-1 tw-min-w-[17rem]",children:[(0,k.jsx)("div",{className:"tw-absolute tw-translate-y-[-130%]",children:(0,k.jsx)(_r,{})}),(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-1 tw-items-center tw-justify-between tw-py-[3rem] tw-px-3 sm:tw-px-14 md:tw-px-[7rem]",children:[(0,k.jsxs)("div",{className:"tw-mt-3 tw-text-lg tw-text-center tw-text-neutral-700",children:[s[0],(0,k.jsx)(te,{href:u,target:"_blank",className:"tw-text-primary-color tw-font-bold hover:tw-text-orange-300",children:u}),s[1]]}),(0,k.jsxs)("div",{className:"tw-text-4xl tw-mt-4 tw-flex tw-flex-row tw-items-center",children:[(0,k.jsx)("span",{className:"tw-font-bold tw-text-neutral-700",children:l}),(0,k.jsx)("div",{className:"tw-ml-2 tw-text-[50%]",children:(0,k.jsx)(ps,{copyValue:c,title:lf("Copy join link"),eventName:"mp.hostlobby.copyjoinlink"})})]}),(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-mt-5 tw-text-sm tw-gap-1 tw-max-h-24 md:tw-max-h-36",children:[(0,k.jsx)(Ir,{value:c}),(0,k.jsx)("div",{className:"tw-hidden md:tw-block",children:lf("or scan with phone")})]}),(0,k.jsx)(J,{className:"primary tw-mt-5 tw-mb-7 tw-font-sans tw-mr-0",label:lf("Start Game"),title:lf("Start Game"),onClick:a}),(0,k.jsx)(xs,{})]})]})}function _s(){var e,t=null===(e=(0,r.useContext)(_).state.gameState)||void 0===e?void 0:e.joinCode,n=t?St(t):"";return(0,k.jsx)("div",{children:t&&(0,k.jsxs)("div",{className:"tw-flex tw-flex-row tw-items-center tw-align-middle",children:[(0,k.jsx)("div",{className:"tw-font-bold",children:lf("Code:")}),(0,k.jsx)("div",{className:"tw-mx-1",children:t}),(0,k.jsx)("div",{className:"tw-text-[75%]",children:(0,k.jsx)(ps,{copyValue:n,title:lf("Copy join link"),eventName:"mp.copyjoinlink"})})]})})}function Es(){return(0,k.jsxs)("div",{className:"tw-bg-white tw-shadow-lg tw-rounded-lg tw-m-1",children:[(0,k.jsx)("div",{className:"tw-absolute tw-translate-y-[-130%]",children:(0,k.jsx)(_r,{})}),(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-py-[2rem] tw-px-[1.5rem] sm:tw-px-[3.5rem] md:tw-px-[6rem]",children:[(0,k.jsx)("div",{className:"tw-font-bold tw-text-2xl tw-text-neutral-800",children:lf("Waiting for players")}),(0,k.jsx)("div",{className:"tw-mt-3 tw-text-center tw-text-neutral-700",children:lf("Your host will start the game soon!")}),(0,k.jsx)("div",{className:"tw-mt-5",children:(0,k.jsx)(xs,{})})]})]})}function Ss(){var e,t=null===(e=(0,r.useContext)(_).state.gameState)||void 0===e?void 0:e.gameId,n=t?"".concat(pxt.webConfig.relprefix.replace(/-+$/,""),"#pub:").concat(t):void 0;return n?(0,k.jsx)(J,{leftIcon:"fas fa-bolt",title:lf("Remix Game"),label:(0,k.jsx)("div",{className:"tw-hidden sm:tw-inline tw-m-0 tw-p-0",children:lf("Remix Game")}),onClick:function(){n&&window.open(n)},className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-p-2 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms] tw-pr-1 sm:tw-pr-3"}):null}function As(){var e=(0,r.useContext)(_).state;return(0,r.useEffect)((function(){var t;null===(t=$t())||void 0===t||t.mute(e.muted)}),[e.muted]),(0,k.jsx)(J,{leftIcon:e.muted?"fas fa-volume-mute":"fas fa-volume-up",title:lf("Toggle Mute"),className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-py-2 tw-pl-2 tw-pr-1 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms]",onClick:function(){x(function(e){return{type:"SET_MUTE",value:e}}(!e.muted))}})}function Os(e){var t,n,i,a=(0,r.useContext)(_).state,o=a.netMode,s=a.clientRole;return(0,k.jsxs)(k.Fragment,{children:["connecting"===o&&(0,k.jsx)(k.Fragment,{}),"lobby"===(null===(t=a.gameState)||void 0===t?void 0:t.gameMode)&&(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-justify-center tw-w-full tw-h-full",children:["host"===s&&(0,k.jsx)(ks,{}),"guest"===s&&(0,k.jsx)(Es,{})]}),"playing"===(null===(n=a.gameState)||void 0===n?void 0:n.gameMode)&&(0,k.jsx)("div",{className:"tw-mx-2 tw-self-start tw-mb-1",children:(0,k.jsx)(_r,{})}),(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center ".concat("playing"===(null===(i=a.gameState)||void 0===i?void 0:i.gameMode)?"":"hidden"),children:[(0,k.jsx)(Sr,{}),(0,k.jsxs)("div",{className:"tw-flex tw-flex-row tw-w-full tw-items-center tw-justify-between tw-mt-1 tw-ml-1",children:[(0,k.jsxs)("div",{children:[(0,k.jsx)(As,{}),(0,k.jsx)(Ss,{})]}),(0,k.jsx)("div",{className:"tw-mr-1 sm:tw-mr-0",children:(0,k.jsx)(_s,{})}),(0,k.jsx)("div",{className:"tw-hidden sm:tw-inline",children:lf("Keyboard Controls")})]}),(0,k.jsx)("div",{className:"tw-mt-3",children:(0,k.jsx)(xs,{})})]})]})}function Cs(){var e=(0,r.useContext)(_).state.netMode;return(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-gap-1 tw-h-screen tw-justify-around",children:["init"===e&&(0,k.jsx)(Er,{}),"init"!==e&&(0,k.jsx)(Os,{})]})}var Ps=function(e){var t,n,r=e.id,i=e.className,a=e.role,o=e.ariaHidden,s=e.ariaLabel,u=e.childTabStopId,l=e.children,c=e.onItemReceivedFocus,f=e.useUpAndDownArrowKeys;return(0,k.jsx)("div",{id:r,className:i,role:a,tabIndex:u?void 0:0,onKeyDown:function(e){var r;if(null!==(r=t)&&void 0!==r&&r.length){var i=document.activeElement,a=t.indexOf(i),o=function(e){e.focus(),c&&c(e)};-1===a&&i!==n||("Enter"===e.key||" "===e.key?(e.preventDefault(),e.stopPropagation(),i.click?i.click():i.dispatchEvent(new Event("click"))):e.key===(f?"ArrowDown":"ArrowRight")?(a===t.length-1||i===n?o(t[0]):o(t[a+1]),e.preventDefault(),e.stopPropagation()):e.key===(f?"ArrowUp":"ArrowLeft")?(o(0===a||i===n?t[t.length-1]:t[Math.max(a-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 i,a=K(r.values());try{for(a.s();!(i=a.n()).done;){var o=i.value;t.push(o),o.setAttribute("tabindex","-1"),o.setAttribute("data-isfocusable","true")}}catch(e){a.e(e)}finally{a.f()}if(u){var s=n.querySelector("#"+u);s&&s.setAttribute("tabindex","0")}}},"aria-hidden":o,"aria-label":s,children:l})},Ts=function(e){return(0,k.jsx)(Ps,c(c({},e),{},{role:"menubar",className:Q("common-menubar",e.className)}))},Ns=function(e){var t,n=e.children,i=e.id,a=e.className,o=e.onEscape,u=e.arrowKeyNavigation,l=e.dontStealFocus,c=e.includeOutsideTabOrder,f=s(r.useState(!1),2),d=f[0],p=f[1],h=function(){return function(e){var t,n=[],r=K(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}(c?t.querySelectorAll("[tabindex]"):t.querySelectorAll('[tabindex]:not([tabindex="-1"])'))};return(0,k.jsx)("div",{id:i,className:Q("common-focus-trap",a),ref:function(e){e&&(t=e,l||d||e.contains(document.activeElement)||!h().length||(t.focus(),p(!0)))},onKeyDown:function(e){if(t){var n=function(t,n){var r=h();if(r.length){var i=r.indexOf(e.target);t?n?r[r.length-1].focus():i===r.length-1?r[0].focus():r[i+1].focus():n?r[0].focus():0===i?r[r.length-1].focus():r[Math.max(i-1,0)].focus(),e.preventDefault(),e.stopPropagation()}};"Escape"===e.key?(o(),e.preventDefault(),e.stopPropagation()):"Tab"===e.key?e.shiftKey?n(!1,!1):n(!0,!1):u&&("ArrowDown"===e.key?n(!0,!1):"ArrowUp"===e.key?n(!1,!1):"Home"===e.key?n(!1,!0):"End"===e.key&&n(!0,!0))}},tabIndex:-1,children:n})},js=function(e){var t,n,i=e.id,a=e.className,o=e.ariaHidden,u=e.ariaLabel,l=e.role,f=e.items,d=e.label,p=e.title,h=e.icon,m=e.tabIndex,v=s(r.useState(!1),2),y=v[0],g=v[1],b=Q("common-menu-dropdown",a),w=i+"-menu";return(0,k.jsxs)("div",{className:b,ref:function(e){e&&(t=e)},onBlur:function(e){t&&y&&!t.contains(e.relatedTarget)&&g(!1)},children:[(0,k.jsx)(J,{id:i,label:d,tabIndex:m,buttonRef:function(e){e&&(n=e)},title:p,leftIcon:h,role:l||"menuitem",className:Q("menu-button",y&&"expanded"),onClick:function(){g(!y)},ariaHasPopup:"true",ariaExpanded:y,ariaControls:y?w:void 0,ariaLabel:u,ariaHidden:o}),y&&(0,k.jsx)("div",{role:"menu",className:"common-menu-dropdown-pane",tabIndex:0,id:w,"aria-labelledby":i,children:(0,k.jsx)(Ns,{arrowKeyNavigation:!0,onEscape:function(){g(!1),n&&n.focus()},children:(0,k.jsx)("ul",{role:"presentation",children:f.map((function(e,t){return(0,k.jsx)("li",{role:"presentation",children:(0,k.jsx)(J,c(c({},e),{},{className:Q("common-menu-dropdown-item",e.className),onClick:function(){g(!1),e.onClick()},role:"menuitem",ariaPosInSet:t+1,ariaSetSize:f.length}))},t)}))})})})]})};function Rs(){var e,t,n,i,a,o,s,u,l=(0,r.useContext)(_),c=l.state,f=l.dispatch,d=c.authStatus,p=c.profile,h=(c.deepLinks,pxt.auth.hasIdentity()),m=null===(e=pxt.appTarget)||void 0===e?void 0:e.appTheme,v=null===(t=pxt)||void 0===t||null===(n=t.appTarget)||void 0===n||null===(i=n.appTheme)||void 0===i?void 0:i.privacyUrl,y=null===(a=pxt)||void 0===a||null===(o=a.appTarget)||void 0===o||null===(s=o.appTheme)||void 0===s?void 0:s.termsOfUseUrl,g=W(),b=function(){pxt.tickEvent("mp.settingsmenu.help"),window.open("")},w=function(){pxt.tickEvent("mp.settingsmenu.reportabuse"),f(z("report-abuse"))},x=function(){pxt.tickEvent("mp.settingsmenu.privacy"),window.open(v)},E=function(){pxt.tickEvent("mp.settingsmenu.termsofuse"),window.open(y)},S=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")},A=function(){pxt.tickEvent("mp.signin"),f(z("sign-in",{dialogMessages:g}))},O=function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.usermenu.signout"),e.next=3,Gn();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(){var e,t,n,r;return null!==(e=null==p||null===(t=p.idp)||void 0===t?void 0:t.pictureUrl)&&void 0!==e?e:null==p||null===(n=p.idp)||void 0===n||null===(r=n.picture)||void 0===r?void 0:r.dataUrl},P=function(){var e=[];return e.push({id:"help",title:lf("Help"),label:lf("Help"),onClick:b}),v&&e.push({id:"privacy",title:lf("Privacy"),label:lf("Privacy"),onClick:x}),y&&e.push({id:"termsOfUse",title:lf("Terms of Use"),label:lf("Terms of Use"),onClick:E}),e.push({id:"report",title:lf("Report Abuse"),label:lf("Report Abuse"),onClick:w}),e}();return(0,k.jsxs)(Ts,{className:"tw-h-[var(--header-height)] tw-text-white\n tw-flex tw-flex-grow-0 tw-flex-shrink-0 tw-align-middle tw-justify-center\n tw-items-center tw-z-[50] tw-text-[2.2rem]\n tw-drop-shadow-xl\n ",ariaLabel:lf("Header"),children:[(0,k.jsxs)("div",{className:"tw-select-none tw-text-lg tw-font-bold tw-flex tw-align-middle tw-p-[var(--header-padding-top)]",children:[function(e){var t=e.organizationWideLogo;return(0,k.jsx)("div",{className:"tw-flex",children:t?(0,k.jsx)("img",{className:"tw-h-6 tw-mx-0 tw-my-1",src:t,alt:lf("{0} Logo",e.organization)}):(0,k.jsx)("span",{className:"tw-h-6 tw-mx-0 tw-my-1",children:e.organization})})}(m),(u=m,(0,k.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:S,children:u.useTextLogo?[(0,k.jsx)("span",{className:"tw-ml-3 tw-hidden sm:tw-flex",onClick:S,children:u.organizationText},"org-name"),(0,k.jsx)("span",{className:"tw-ml-3 tw-flex sm:tw-hidden",onClick:S,children:u.organizationShortText||u.organizationText},"org-name-short")]:u.logo||u.portraitLogo?(0,k.jsx)("img",{className:"logo",src:u.logo||u.portraitLogo,alt:lf("{0} Logo",u.boardName)}):(0,k.jsxs)("span",{className:"name",children:[" ",u.boardName]})}))]}),(0,k.jsx)("div",{className:"tw-select-none tw-flex-grow"}),(0,k.jsxs)("div",{className:"tw-select-none tw-text-lg tw-font-bold tw-flex tw-items-center tw-pr-[var(--header-padding-top)] tw-h-full",children:[(null==P?void 0:P.length)>0&&(0,k.jsx)(js,{className:"h-full",id:"settings-help",title:lf("Settings menu"),icon:"fas fa-cog large",items:P}),h&&function(){var e=[];"signed-in"===d&&e.push({id:"signout",title:lf("Sign Out"),label:lf("Sign Out"),onClick:O});var t=C()?(0,k.jsx)("div",{className:"tw-flex tw-align-middle tw-justify-center tw-items-center tw-h-full",children:(0,k.jsx)("img",{src:C(),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,k.jsx)("span",{children:(0,k.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:p?pxt.auth.userInitials(p):""})});return(0,k.jsxs)("div",{className:"tw-h-full",children:["signed-in"===d&&(0,k.jsx)(js,{id:"profile-dropdown",items:e,label:t||n,title:lf("Profile Settings")}),"signed-out"===d&&(0,k.jsx)(J,{className:"tw-p-[0.6rem] tw-h-4/5 tw-m-2 tw-mr-4 tw-flex-row-reverse tw-font-medium tw-align-middle",rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:A})]})}()]})]})}var Ls=function(e,t){return(Ls=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 Is(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}Ls(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ms=function(){return(Ms=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Bs(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Ds(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Us(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,n(7490);var Fs=1/60*1e3,zs="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},Vs="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(zs())}),Fs)},Hs=!0,Ws=!1,qs=!1,Gs={delta:0,timestamp:0},Zs=["read","update","preRender","render","postRender"],Ys=Zs.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:function(e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=a?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(e),-1===s.indexOf(e)&&(s.push(e),a&&i&&(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(i)a=!0;else{i=!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),Ws=!0)}i=!1,a&&(a=!1,s.process(e))}}};return s}(),e}),{}),$s=Zs.reduce((function(e,t){var n=Ys[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 Ws||eu(),n.schedule(e,t,r)},e}),{}),Ks=Zs.reduce((function(e,t){return e[t]=Ys[t].cancel,e}),{}),Xs=Zs.reduce((function(e,t){return e[t]=function(){return Ys[t].process(Gs)},e}),{}),Qs=function(e){return Ys[e].process(Gs)},Js=function e(t){Ws=!1,Gs.delta=Hs?Fs:Math.max(Math.min(t-Gs.timestamp,40),1),Gs.timestamp=t,qs=!0,Zs.forEach(Qs),qs=!1,Ws&&(Hs=!1,Vs(e))},eu=function(){Ws=!0,Hs=!0,qs||Vs(Js)},tu=function(){return Gs},nu=$s,ru="undefined"!=typeof document,iu=ru?r.useLayoutEffect:r.useEffect;function au(){var e=(0,r.useRef)(!1);return iu((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var ou=(0,r.createContext)(null);function su(e){var t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}var uu=0,lu=function(){return uu++},cu=function(){return su(lu)},fu=function(e){var t=e.children,n=e.initial,i=e.isPresent,a=e.onExitComplete,o=e.custom,s=e.presenceAffectsLayout,u=su(du),l=cu(),c=(0,r.useMemo)((function(){return{id:l,initial:n,isPresent:i,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()),i=r.next();!i.done;i=r.next())if(!i.value)return}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return u.set(e,!1),function(){return u.delete(e)}}}}),s?void 0:[i]);return(0,r.useMemo)((function(){u.forEach((function(e,t){return u.set(t,!1)}))}),[i]),r.useEffect((function(){!i&&!u.size&&(null==a||a())}),[i]),r.createElement(ou.Provider,{value:c},t)};function du(){return new Map}var pu=(0,r.createContext)({});function hu(e){return(0,r.useEffect)((function(){return function(){return e()}}),[])}n(8466);var mu=function(e){return e.key||""},vu=function(e){var t=e.children,n=e.custom,i=e.initial,a=void 0===i||i,o=e.onExitComplete,s=e.exitBeforeEnter,u=e.presenceAffectsLayout,l=void 0===u||u,c=Ds(function(){var e=au(),t=Ds((0,r.useState)(0),2),n=t[0],i=t[1],a=(0,r.useCallback)((function(){e.current&&i(n+1)}),[n]);return[(0,r.useCallback)((function(){return nu.postRender(a)}),[a]),n]}(),1)[0],f=(0,r.useContext)(pu).forceRender;f&&(c=f);var d=au(),p=function(e){var t=[];return r.Children.forEach(e,(function(e){(0,r.isValidElement)(e)&&t.push(e)})),t}(t),h=p,m=new Set,v=(0,r.useRef)(h),y=(0,r.useRef)(new Map).current,g=(0,r.useRef)(!0);if(iu((function(){g.current=!1,function(e,t){e.forEach((function(e){var n=mu(e);t.set(n,e)}))}(p,y),v.current=h})),hu((function(){g.current=!0,y.clear(),m.clear()})),g.current)return r.createElement(r.Fragment,null,h.map((function(e){return r.createElement(fu,{key:mu(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:l},e)})));h=Us([],Ds(h),!1);for(var b=v.current.map(mu),w=p.map(mu),x=b.length,k=0;k<x;k++){var _=b[k];-1===w.indexOf(_)&&m.add(_)}return s&&m.size&&(h=[]),m.forEach((function(e){if(-1===w.indexOf(e)){var t=y.get(e);if(t){var i=b.indexOf(e);h.splice(i,0,r.createElement(fu,{key:mu(t),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:n,presenceAffectsLayout:l},t))}}})),h=h.map((function(e){var t=e.key;return m.has(t)?e:r.createElement(fu,{key:mu(e),isPresent:!0,presenceAffectsLayout:l},e)})),r.createElement(r.Fragment,null,m.size?h:h.map((function(e){return(0,r.cloneElement)(e)})))},yu=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},gu={measureLayout:yu(["layout","layoutId","drag"]),animation:yu(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:yu(["exit"]),drag:yu(["drag","dragControls"]),focus:yu(["whileFocus"]),hover:yu(["whileHover","onHoverStart","onHoverEnd"]),tap:yu(["whileTap","onTap","onTapStart","onTapCancel"]),pan:yu(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:yu(["whileInView","onViewportEnter","onViewportLeave"])},bu=(0,r.createContext)({strict:!1}),wu=Object.keys(gu),xu=wu.length,ku=(0,r.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),_u=(0,r.createContext)({}),Eu={current:null},Su=!1;function Au(e,t,n,i){var a=(0,r.useContext)(bu),o=(0,r.useContext)(_u).visualElement,s=(0,r.useContext)(ou),u=function(){var e=(!Su&&function(){if(Su=!0,ru)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Eu.current=e.matches};e.addListener(t),t()}else Eu.current=!1}(),Ds((0,r.useState)(Eu.current),1)[0]),t=(0,r.useContext)(ku).reducedMotion;return"never"!==t&&("always"===t||e)}(),l=(0,r.useRef)(void 0);i||(i=a.renderer),!l.current&&i&&(l.current=i(e,{visualState:t,parent:o,props:n,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial),shouldReduceMotion:u}));var c=l.current;return iu((function(){null==c||c.syncRender()})),(0,r.useEffect)((function(){var e;null===(e=null==c?void 0:c.animationState)||void 0===e||e.animateChanges()})),iu((function(){return function(){return null==c?void 0:c.notifyUnmount()}}),[]),c}function Ou(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Cu(e){return Array.isArray(e)}function Pu(e){return"string"==typeof e||Cu(e)}function Tu(e,t,n,r,i){var a;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function Nu(e,t,n){var r=e.getProps();return Tu(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 ju(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Pu(e.initial)||Pu(e.animate)||Pu(e.whileHover)||Pu(e.whileDrag)||Pu(e.whileTap)||Pu(e.whileFocus)||Pu(e.exit)}function Ru(e){return Boolean(ju(e)||e.variants)}function Lu(e){return Array.isArray(e)?e.join(" "):e}var Iu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Mu=1,Bu=(0,r.createContext)({}),Du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Is(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}(r.Component);function Uu(e){var t=e.preloadedFeatures,n=e.createVisualElement,i=e.projectionNodeConstructor,a=e.useRender,o=e.useVisualState,s=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?gu.projectionNodeConstructor=e[t]:gu[t].Component=e[t])}(t),(0,r.forwardRef)((function(e,t){var u=function(e){var t,n=e.layoutId,i=null===(t=(0,r.useContext)(pu))||void 0===t?void 0:t.id;return i&&void 0!==n?i+"-"+n:n}(e);e=Ms(Ms({},e),{layoutId:u});var l=(0,r.useContext)(ku),c=null,f=function(e){var t=function(e,t){if(ju(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Pu(n)?n:void 0,animate:Pu(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(_u)),n=t.initial,i=t.animate;return(0,r.useMemo)((function(){return{initial:n,animate:i}}),[Lu(n),Lu(i)])}(e),d=l.isStatic?void 0:su((function(){if(Iu.hasEverUpdated)return Mu++})),p=o(e,l.isStatic);return!l.isStatic&&ru&&(f.visualElement=Au(s,p,Ms(Ms({},l),e),n),function(e,t,n,i){var a,o=t.layoutId,s=t.layout,u=t.drag,l=t.dragConstraints,c=t.layoutScroll,f=(0,r.useContext)(Bu);i&&n&&!(null==n?void 0:n.projection)&&(n.projection=new i(e,n.getLatestValues(),null===(a=n.parent)||void 0===a?void 0:a.projection),n.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(u)||l&&Ou(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:f,layoutScroll:c}))}(d,e,f.visualElement,i||gu.projectionNodeConstructor),c=function(e,t,n){var i=[];if((0,r.useContext)(bu),!t)return null;for(var a=0;a<xu;a++){var o=wu[a],s=gu[o],u=s.isEnabled,l=s.Component;u(e)&&l&&i.push(r.createElement(l,Ms({key:o},e,{visualElement:t})))}return i}(e,f.visualElement)),r.createElement(Du,{visualElement:f.visualElement,props:Ms(Ms({},l),e)},c,r.createElement(_u.Provider,{value:f},a(s,e,d,function(e,t,n){return(0,r.useCallback)((function(r){var i;r&&(null===(i=e.mount)||void 0===i||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Ou(n)&&(n.current=r))}),[t])}(p,f.visualElement,t),p,l.isStatic,f.visualElement)))}))}var Fu=["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 zu(e){return"string"==typeof e&&!e.includes("-")&&!!(Fu.indexOf(e)>-1||/[A-Z]/.test(e))}var Vu={},Hu=["","X","Y","Z"],Wu=["transformPerspective","x","y","z"];function qu(e,t){return Wu.indexOf(e)-Wu.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Hu.forEach((function(t){return Wu.push(e+t)}))}));var Gu=new Set(Wu);function Zu(e){return Gu.has(e)}var Yu=new Set(["originX","originY","originZ"]);function $u(e){return Yu.has(e)}function Ku(e,t){var n=t.layout,r=t.layoutId;return Zu(e)||$u(e)||(n||void 0!==r)&&(!!Vu[e]||"opacity"===e)}var Xu=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Qu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Ju(e){return e.startsWith("--")}var el=function(e,t){return t&&"number"==typeof e?t.transform(e):e},tl=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},nl=function(e){return e%1?Number(e.toFixed(5)):e},rl=/(-)?([\d]*\.?[\d])+/g,il=/(#[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,al=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function ol(e){return"string"==typeof e}var sl=function(e){return{test:function(t){return ol(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return"".concat(t).concat(e)}}},ul=sl("deg"),ll=sl("%"),cl=sl("px"),fl=sl("vh"),dl=sl("vw"),pl=Object.assign(Object.assign({},ll),{parse:function(e){return ll.parse(e)/100},transform:function(e){return ll.transform(100*e)}}),hl={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},ml=Object.assign(Object.assign({},hl),{transform:tl(0,1)}),vl=Object.assign(Object.assign({},hl),{default:1}),yl=Ms(Ms({},hl),{transform:Math.round}),gl={borderWidth:cl,borderTopWidth:cl,borderRightWidth:cl,borderBottomWidth:cl,borderLeftWidth:cl,borderRadius:cl,radius:cl,borderTopLeftRadius:cl,borderTopRightRadius:cl,borderBottomRightRadius:cl,borderBottomLeftRadius:cl,width:cl,maxWidth:cl,height:cl,maxHeight:cl,size:cl,top:cl,right:cl,bottom:cl,left:cl,padding:cl,paddingTop:cl,paddingRight:cl,paddingBottom:cl,paddingLeft:cl,margin:cl,marginTop:cl,marginRight:cl,marginBottom:cl,marginLeft:cl,rotate:ul,rotateX:ul,rotateY:ul,rotateZ:ul,scale:vl,scaleX:vl,scaleY:vl,scaleZ:vl,skew:ul,skewX:ul,skewY:ul,distance:cl,translateX:cl,translateY:cl,translateZ:cl,x:cl,y:cl,z:cl,perspective:cl,transformPerspective:cl,opacity:ml,originX:pl,originY:pl,originZ:cl,zIndex:yl,fillOpacity:ml,strokeOpacity:ml,numOctaves:yl};function bl(e,t,n,r){var i,a=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(Ju(p))o[p]=h;else{var m=gl[p],v=el(h,m);if(Zu(p)){if(c=!0,s[p]=v,u.push(p),!d)continue;h!==(null!==(i=m.default)&&void 0!==i?i:0)&&(d=!1)}else $u(p)?(l[p]=v,f=!0):a[p]=v}}c?a.transform=function(e,t,n,r){var i=e.transform,a=e.transformKeys,o=t.enableHardwareAcceleration,s=void 0===o||o,u=t.allowTransformNone,l=void 0===u||u,c="";a.sort(qu);for(var f=!1,d=a.length,p=0;p<d;p++){var h=a[p];c+="".concat(Qu[h]||h,"(").concat(i[h],") "),"z"===h&&(f=!0)}return!f&&s?c+="translateZ(0)":c=c.trim(),r?c=r(i,n?"":c):l&&n&&(c="none"),c}(e,n,d,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),f&&(a.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,a=e.originZ,o=void 0===a?0:a;return"".concat(n," ").concat(i," ").concat(o)}(l))}function wl(e,t,n){for(var r in t)Xu(t[r])||Ku(r,n)||(e[r]=t[r])}function xl(e,t,n){var i={};return wl(i,e.style||{},e),Object.assign(i,function(e,t,n){var i=e.transformTemplate;return(0,r.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};bl(e,t,{enableHardwareAcceleration:!n},i);var r=e.style;return Ms(Ms({},e.vars),r)}),[t])}(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function kl(e,t,n){var r={},i=xl(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=i,r}var _l=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 El(e){return _l.has(e)}var Sl,Al=function(e){return!El(e)};try{(Sl=require("@emotion/is-prop-valid").default)&&(Al=function(e){return e.startsWith("on")?!El(e):Sl(e)})}catch(e){}function Ol(e,t,n){return"string"==typeof e?e:cl.transform(t+n*e)}var Cl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pl={offset:"strokeDashoffset",array:"strokeDasharray"};function Tl(e,t,n,r){var i=t.attrX,a=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;bl(e,Bs(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=Ol(t,e.x,e.width),i=Ol(n,e.y,e.height);return"".concat(r," ").concat(i)}(m,void 0!==o?o:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==a&&(p.y=a),void 0!==u&&function(e,t,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),e.pathLength=1;var a=i?Cl:Pl;e[a.offset]=cl.transform(-r);var o=cl.transform(t),s=cl.transform(n);e[a.array]="".concat(o," ").concat(s)}(p,u,c,d,!1)}var Nl=function(){return Ms(Ms({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function jl(e,t){var n=(0,r.useMemo)((function(){var n=Nl();return Tl(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Ms(Ms({},n.attrs),{style:Ms({},n.style)})}),[t]);if(e.style){var i={};wl(i,e.style,e),n.style=Ms(Ms({},i),n.style)}return n}function Rl(e){return void 0===e&&(e=!1),function(t,n,i,a,o,s){var u=o.latestValues,l=(zu(t)?jl:kl)(n,u,s),c=function(e,t,n){var r={};for(var i in e)(Al(i)||!0===n&&El(i)||!t&&!El(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),f=Ms(Ms(Ms({},c),l),{ref:a});return i&&(f["data-projection-id"]=i),(0,r.createElement)(t,f)}}var Ll=/([a-z])([A-Z])/g,Il=function(e){return e.replace(Ll,"$1-$2").toLowerCase()};function Ml(e,t,n,r){var i=t.style,a=t.vars;for(var o in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),a)e.style.setProperty(o,a[o])}var Bl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Dl(e,t,n,r){for(var i in Ml(e,t,void 0,r),t.attrs)e.setAttribute(Bl.has(i)?i:Il(i),t.attrs[i])}function Ul(e){var t=e.style,n={};for(var r in t)(Xu(t[r])||Ku(r,e))&&(n[r]=t[r]);return n}function Fl(e){var t=Ul(e);for(var n in e)Xu(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function zl(e){return"object"==typeof e&&"function"==typeof e.start}var Vl=function(e){return Array.isArray(e)},Hl=function(e){return Vl(e)?e[e.length-1]||0:e};function Wl(e){var t,n=Xu(e)?e.get():e;return t=n,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?n.toValue():n}function ql(e,t,n,r){var i=e.scrapeMotionValuesFromProps,a=e.createRenderState,o=e.onMount,s={latestValues:Zl(t,n,r,i),renderState:a()};return o&&(s.mount=function(e){return o(t,e,s)}),s}var Gl=function(e){return function(t,n){var i=(0,r.useContext)(_u),a=(0,r.useContext)(ou);return n?ql(e,t,i,a):su((function(){return ql(e,t,i,a)}))}};function Zl(e,t,n,r){var i={},a=!1===(null==n?void 0:n.initial),o=r(e);for(var s in o)i[s]=Wl(o[s]);var u=e.initial,l=e.animate,c=ju(e),f=Ru(e);t&&f&&!c&&!1!==e.inherit&&(null!=u||(u=t.initial),null!=l||(l=t.animate));var d=a||!1===u,p=d?l:u;return p&&"boolean"!=typeof p&&!zl(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Tu(e,t);if(n){var r=n.transitionEnd;n.transition;var a=Bs(n,["transitionEnd","transition"]);for(var o in a){var s=a[o];Array.isArray(s)&&(s=s[d?s.length-1:0]),null!==s&&(i[o]=s)}for(var o in r)i[o]=r[o]}})),i}var Yl,$l={useVisualState:Gl({scrapeMotionValuesFromProps:Fl,createRenderState:Nl,onMount:function(e,t,n){var r=n.renderState,i=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}}Tl(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),Dl(t,r)}})},Kl={useVisualState:Gl({scrapeMotionValuesFromProps:Ul,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function Xl(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Ql(e,t,n,i){(0,r.useEffect)((function(){var r=e.current;if(n&&r)return Xl(r,t,n,i)}),[e,t,n,i])}function Jl(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function ec(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"}(Yl||(Yl={}));var tc={pageX:0,pageY:0};function nc(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||tc;return{x:n[t+"X"],y:n[t+"Y"]}}function rc(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function ic(e,t){return void 0===t&&(t="page"),{point:ec(e)?nc(e,t):rc(e,t)}}var ac=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,ic(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},oc={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},sc={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function uc(e){return ru&&null===window.onpointerdown?e:ru&&null===window.ontouchstart?sc[e]:ru&&null===window.onmousedown?oc[e]:e}function lc(e,t,n,r){return Xl(e,uc(t),ac(n,"pointerdown"===t),r)}function cc(e,t,n,r){return Ql(e,uc(t),n&&ac(n,"pointerdown"===t),r)}function fc(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var dc=fc("dragHorizontal"),pc=fc("dragVertical");function hc(e){var t=!1;if("y"===e)t=pc();else if("x"===e)t=dc();else{var n=dc(),r=pc();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function mc(){var e=hc(!0);return!e||(e(),!1)}function vc(e,t,n){return function(r,i){var a;Jl(r)&&!mc()&&(null===(a=e.animationState)||void 0===a||a.setActive(Yl.Hover,t),null==n||n(r,i))}}var yc=function e(t,n){return!!n&&(t===n||e(t,n.parentElement))},gc=function(e,t){return function(n){return t(e(n))}},bc=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(gc)};n(8466),new Set;var wc=new WeakMap,xc=new WeakMap,kc=function(e){var t;null===(t=wc.get(e.target))||void 0===t||t(e)},_c=function(e){e.forEach(kc)};var Ec={some:0,all:1};function Sc(e,t,n,i){var a=i.root,o=i.margin,s=i.amount,u=void 0===s?"some":s,l=i.once;(0,r.useEffect)((function(){if(e){var r={root:null==a?void 0:a.current,rootMargin:o,threshold:"number"==typeof u?u:Ec[u]};return function(e,t,n){var r=function(e){var t=e.root,n=Bs(e,["root"]),r=t||document;xc.has(r)||xc.set(r,{});var i=xc.get(r),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(_c,Ms({root:t},n))),i[a]}(t);return wc.set(e,n),r.observe(e),function(){wc.delete(e),r.unobserve(e)}}(n.getInstance(),r,(function(e){var r,i=e.isIntersecting;if(t.isInView!==i&&(t.isInView=i,!l||i||!t.hasEnteredView)){i&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Yl.InView,i);var a=n.getProps(),o=i?a.onViewportEnter:a.onViewportLeave;null==o||o(e)}}))}}),[e,a,o,u])}function Ac(e,t,n,i){var a=i.fallback,o=void 0===a||a;(0,r.useEffect)((function(){e&&o&&requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(Yl.InView,!0)}))}),[e])}var Oc=function(e){return function(t){return e(t),null}},Cc={inView:Oc((function(e){var t=e.visualElement,n=e.whileInView,i=e.onViewportEnter,a=e.onViewportLeave,o=e.viewport,s=void 0===o?{}:o,u=(0,r.useRef)({hasEnteredView:!1,isInView:!1}),l=Boolean(n||i||a);s.once&&u.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?Ac:Sc)(l,u.current,t,s)})),tap:Oc((function(e){var t=e.onTap,n=e.onTapStart,i=e.onTapCancel,a=e.whileTap,o=e.visualElement,s=t||n||i||a,u=(0,r.useRef)(!1),l=(0,r.useRef)(null),c={passive:!(n||t||i||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(Yl.Tap,!1),!mc()}function p(e,n){d()&&(yc(o.getInstance(),e.target)?null==t||t(e,n):null==i||i(e,n))}function h(e,t){d()&&(null==i||i(e,t))}function m(e,t){var r;f(),u.current||(u.current=!0,l.current=bc(lc(window,"pointerup",p,c),lc(window,"pointercancel",h,c)),null===(r=o.animationState)||void 0===r||r.setActive(Yl.Tap,!0),null==n||n(e,t))}cc(o,"pointerdown",s?m:void 0,c),hu(f)})),focus:Oc((function(e){var t=e.whileFocus,n=e.visualElement;Ql(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Yl.Focus,!0)}:void 0),Ql(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Yl.Focus,!1)}:void 0)})),hover:Oc((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;cc(i,"pointerenter",t||r?vc(i,!0,t):void 0,{passive:!t}),cc(i,"pointerleave",n||r?vc(i,!1,n):void 0,{passive:!n})}))};function Pc(){var e=(0,r.useContext)(ou);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,i=e.register,a=cu();return(0,r.useEffect)((function(){return i(a)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(a)}]:[!0]}function Tc(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 Nc(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create,Object.create;var jc=function(e,t,n){return Math.min(Math.max(n,e),t)};function Rc(e,t){return e*Math.sqrt(1-t*t)}var Lc=["duration","bounce"],Ic=["stiffness","damping","mass"];function Mc(e,t){return t.some((function(t){return void 0!==e[t]}))}function Bc(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,a=e.restSpeed,o=void 0===a?2:a,s=e.restDelta,u=Nc(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(!Mc(e,Ic)&&Mc(e,Lc)){var n=function(e){var t,n,r=e.duration,i=void 0===r?800:r,a=e.bounce,o=void 0===a?.25:a,s=e.velocity,u=void 0===s?0:s,l=e.mass,c=void 0===l?1:l,f=1-o;f=jc(.05,1,f),i=jc(.01,10,i/1e3),f<1?(t=function(e){var t=e*f,n=t*i;return.001-(t-u)/Rc(e,f)*Math.exp(-n)},n=function(e){var n=e*f*i,r=n*u+u,a=Math.pow(f,2)*Math.pow(e,2)*i,o=Math.exp(-n),s=Rc(Math.pow(e,2),f);return(.001-t(e)>0?-1:1)*((r-a)*o)/s}):(t=function(e){return Math.exp(-e*i)*((e-u)*i+1)-.001},n=function(e){return Math.exp(-e*i)*(i*i*(u-e))});var d=function(e,t,n){for(var r=n,i=1;i<12;i++)r-=e(r)/t(r);return r}(t,n,5/i);if(i*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:i};var p=Math.pow(d,2)*c;return{stiffness:p,damping:2*f*Math.sqrt(c*p),duration:i}}(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=Dc,g=Dc;function b(){var e=h?-h/1e3:0,t=i-n,r=d/(2*Math.sqrt(f*p)),a=Math.sqrt(f/p)/1e3;if(void 0===s&&(s=Math.min(Math.abs(i-n)/100,.4)),r<1){var o=Rc(a,r);y=function(n){var s=Math.exp(-r*a*n);return i-s*((e+r*a*t)/o*Math.sin(o*n)+t*Math.cos(o*n))},g=function(n){var i=Math.exp(-r*a*n);return r*a*i*(Math.sin(o*n)*(e+r*a*t)/o+t*Math.cos(o*n))-i*(Math.cos(o*n)*(e+r*a*t)-o*t*Math.sin(o*n))}}else if(1===r)y=function(n){return i-Math.exp(-a*n)*(t+(e+a*t)*n)};else{var u=a*Math.sqrt(r*r-1);y=function(n){var o=Math.exp(-r*a*n),s=Math.min(u*n,300);return i-o*((e+r*a*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,a=Math.abs(i-t)<=s;l.done=r&&a}return l.value=l.done?i:t,l},flipTarget:function(){h=-h;var e=[i,n];n=e[0],i=e[1],b()}}}Bc.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var Dc=function(e){return 0},Uc=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},Fc=function(e,t,n){return-n*e+n*t+e},zc=function(e,t){return function(n){return Boolean(ol(n)&&al.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},Vc=function(e,t,n){return function(r){var i;if(!ol(r))return r;var a=s(r.match(rl),4),o=a[0],l=a[1],c=a[2],f=a[3];return u(i={},e,parseFloat(o)),u(i,t,parseFloat(l)),u(i,n,parseFloat(c)),u(i,"alpha",void 0!==f?parseFloat(f):1),i}},Hc=tl(0,255),Wc=Object.assign(Object.assign({},hl),{transform:function(e){return Math.round(Hc(e))}}),qc={test:zc("rgb","red"),parse:Vc("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha,a=void 0===i?1:i;return"rgba("+Wc.transform(t)+", "+Wc.transform(n)+", "+Wc.transform(r)+", "+nl(ml.transform(a))+")"}},Gc={test:zc("#"),parse:function(e){var t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:qc.transform},Zc={test:zc("hsl","hue"),parse:Vc("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha,a=void 0===i?1:i;return"hsla("+Math.round(t)+", "+ll.transform(nl(n))+", "+ll.transform(nl(r))+", "+nl(ml.transform(a))+")"}};function Yc(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 $c(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha;t/=360,r/=100;var a=0,o=0,s=0;if(n/=100){var u=r<.5?r*(1+n):r+n-r*n,l=2*r-u;a=Yc(l,u,t+1/3),o=Yc(l,u,t),s=Yc(l,u,t-1/3)}else a=o=s=r;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}var Kc=function(e,t,n){var r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},Xc=[Gc,qc,Zc],Qc=function(e){return Xc.find((function(t){return t.test(e)}))},Jc=function(e){return"'".concat(e,"' is not an animatable color. Use the equivalent color code instead.")},ef=function(e,t){var n=Qc(e),r=Qc(t);Jc(e),Jc(t);var i=n.parse(e),a=r.parse(t);n===Zc&&(i=$c(i),n=qc),r===Zc&&(a=$c(a),r=qc);var o=Object.assign({},i);return function(e){for(var t in o)"alpha"!==t&&(o[t]=Kc(i[t],a[t],e));return o.alpha=Fc(i.alpha,a.alpha,e),n.transform(o)}},tf={test:function(e){return qc.test(e)||Gc.test(e)||Zc.test(e)},parse:function(e){return qc.test(e)?qc.parse(e):Zc.test(e)?Zc.parse(e):Gc.parse(e)},transform:function(e){return ol(e)?e:e.hasOwnProperty("red")?qc.transform(e):Zc.transform(e)}},nf="${c}",rf="${n}";function af(e){"number"==typeof e&&(e="".concat(e));var t=[],n=0,r=e.match(il);r&&(n=r.length,e=e.replace(il,nf),t.push.apply(t,g(r.map(tf.parse))));var i=e.match(rl);return i&&(e=e.replace(rl,rf),t.push.apply(t,g(i.map(hl.parse)))),{values:t,numColors:n,tokenised:e}}function of(e){return af(e).values}function sf(e){var t=af(e),n=t.values,r=t.numColors,i=t.tokenised,a=n.length;return function(e){for(var t=i,n=0;n<a;n++)t=t.replace(n<r?nf:rf,n<r?tf.transform(e[n]):nl(e[n]));return t}}var uf=function(e){return"number"==typeof e?0:e},cf={test:function(e){var t,n,r,i;return isNaN(e)&&ol(e)&&(null!==(n=null===(t=e.match(rl))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(il))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:of,createTransformer:sf,getAnimatableNone:function(e){var t=of(e);return sf(e)(t.map(uf))}},ff=function(e){return"number"==typeof e};function df(e,t){return ff(e)?function(n){return Fc(e,t,n)}:tf.test(e)?ef(e,t):vf(e,t)}var pf=function(e,t){var n=g(e),r=n.length,i=e.map((function(e,n){return df(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=i[t](e);return n}},hf=function(e,t){var n=Object.assign(Object.assign({},e),t),r={};for(var i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=df(e[i],t[i]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function mf(e){for(var t=cf.parse(e),n=t.length,r=0,i=0,a=0,o=0;o<n;o++)r||"number"==typeof t[o]?r++:void 0!==t[o].hue?a++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:a}}var vf=function(e,t){var n=cf.createTransformer(t),r=mf(e),i=mf(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?bc(pf(r.parsed,i.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)})},yf=function(e,t){return function(n){return Fc(e,t,n)}};function gf(e,t,n){for(var r,i=[],a=n||("number"==typeof(r=e[0])?yf:"string"==typeof r?tf.test(r)?ef:vf:Array.isArray(r)?pf:"object"==typeof r?hf:void 0),o=e.length-1,s=0;s<o;s++){var u=a(e[s],e[s+1]);if(t){var l=Array.isArray(t)?t[s]:t;u=bc(l,u)}i.push(u)}return i}function bf(e,t){var n=s(e,2),r=n[0],i=n[1],a=s(t,1)[0];return function(e){return a(Uc(r,i,e))}}function wf(e,t){var n=e.length,r=n-1;return function(i){var a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){for(var s=1;s<n&&!(e[s]>i||s===r);s++);a=s-1}var u=Uc(e[a],e[a+1],i);return t[a](u)}}function xf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.clamp,i=void 0===r||r,a=n.ease,o=n.mixer,s=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var u=gf(t,a,o),l=2===s?bf(e,u):wf(e,u);return i?function(t){return l(jc(e[0],e[s-1],t))}:l}var kf=function(e){return function(t){return 1-e(1-t)}},_f=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},Ef=function(e){return function(t){return t*t*((e+1)*t-e)}},Sf=function(e){return e},Af=(2,function(e){return Math.pow(e,2)}),Of=kf(Af),Cf=_f(Af),Pf=function(e){return 1-Math.sin(Math.acos(e))},Tf=kf(Pf),Nf=_f(Tf),jf=Ef(1.525),Rf=kf(jf),Lf=_f(jf),If=function(e){var t=Ef(1.525);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(),Mf=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},Bf=kf(Mf);function Df(e,t){return e.map((function(){return t||Cf})).splice(0,e.length-1)}function Uf(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,a=e.ease,o=e.offset,s=e.duration,u=void 0===s?300:s,l={done:!1,value:n},c=Array.isArray(i)?i:[n,i],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 xf(f,c,{ease:Array.isArray(a)?a:Df(c,a)})}var p=d();return{next:function(e){return l.value=p(e),l.done=e>=u,l},flipTarget:function(){c.reverse(),p=d()}}}var Ff={keyframes:Uf,spring:Bc,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,i=void 0===r?0:r,a=e.power,o=void 0===a?.8:a,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:i},p=o*n,h=i+p,m=void 0===f?h:f(h);return m!==h&&(p=m-i),{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 zf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e-t-n}var Vf=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return nu.update(t,!0)},stop:function(){return Ks.update(t)}}};function Hf(e){var t,n,r,i,a,o=e.from,s=e.autoplay,u=void 0===s||s,l=e.driver,c=void 0===l?Vf: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.onUpdate,E=Nc(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),S=E.to,A=0,O=E.duration,C=!1,P=!0,T=function(e){if(Array.isArray(e.to))return Uf;if(Ff[e.type])return Ff[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Uf:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Bc:Uf}(E);(null===(n=(t=T).needsInterpolation)||void 0===n?void 0:n.call(t,o,S))&&(a=xf([0,100],[o,S],{clamp:!1}),o=0,S=100);var N=T(Object.assign(Object.assign({},E),{from:o,to:S}));return u&&(null==b||b(),(r=c((function(e){if(P||(e=-e),d+=e,!C){var t=N.next(Math.max(0,d));i=t.value,a&&(i=a(i)),C=P?t.done:d<=0}null==_||_(i),C&&(0===A&&(null!=O||(O=d)),A<h?function(e,t,n,r){return r?e>=t+n:e<=-n}(d,O,g,P)&&(A++,"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:zf(t+-e,t,n)}(d,O,g,P=A%2==0):(d=zf(d,O,g),"mirror"===v&&N.flipTarget()),C=!1,k&&k()):(r.stop(),x&&x()))}))).start()),{stop:function(){null==w||w(),r.stop()}}}function Wf(e,t){return t?e*(1e3/t):0}var qf=function(e){return 1e3*e},Gf=function(e,t){return 1-3*t+3*e},Zf=function(e,t){return 3*t-6*e},Yf=function(e){return 3*e},$f=function(e,t,n){return((Gf(t,n)*e+Zf(t,n))*e+Yf(t))*e},Kf=function(e,t,n){return 3*Gf(t,n)*e*e+2*Zf(t,n)*e+Yf(t)},Xf=.1;var Qf={linear:Sf,easeIn:Af,easeInOut:Cf,easeOut:Of,circIn:Pf,circInOut:Nf,circOut:Tf,backIn:jf,backInOut:Lf,backOut:Rf,anticipate:If,bounceIn:Bf,bounceInOut:function(e){return e<.5?.5*(1-Mf(1-2*e)):.5*Mf(2*e-1)+.5},bounceOut:Mf},Jf=function(e){if(Array.isArray(e)){e.length;var t=Ds(e,4);return function(e,t,n,r){if(e===t&&n===r)return Sf;for(var i=new Float32Array(11),a=0;a<11;++a)i[a]=$f(a*Xf,e,n);function o(t){for(var r=0,a=1;10!==a&&i[a]<=t;++a)r+=Xf;--a;var o=r+(t-i[a])/(i[a+1]-i[a])*Xf,s=Kf(o,e,n);return s>=.001?function(e,t,n,r){for(var i=0;i<8;++i){var a=Kf(t,n,r);if(0===a)return t;t-=($f(t,n,r)-e)/a}return t}(t,o,e,n):0===s?o:function(e,t,n,r,i){var a,o,s=0;do{(a=$f(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o}while(Math.abs(a)>1e-7&&++s<10);return o}(t,r,r+Xf,e,n)}return function(e){return 0===e||1===e?e:$f(o(e),t,r)}}(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),Qf[e]):e},ed=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!cf.test(t)||t.startsWith("url(")))},td=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},nd=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},rd=function(){return{type:"keyframes",ease:"linear",duration:.3}},id=function(e){return{type:"keyframes",duration:.8,values:e}},ad={x:td,y:td,z:td,rotate:td,rotateX:td,rotateY:td,rotateZ:td,scaleX:nd,scaleY:nd,scale:nd,opacity:rd,backgroundColor:rd,color:rd,default:nd},od=new Set(["brightness","contrast","saturate","opacity"]);function sd(e){var t=s(e.slice(0,-1).split("("),2),n=t[0],r=t[1];if("drop-shadow"===n)return e;var i=s(r.match(rl)||[],1)[0];if(!i)return e;var a=r.replace(i,""),o=od.has(n)?1:0;return i!==r&&(o*=100),n+"("+o+a+")"}var ud=/([a-z-]*)\(.*?\)/g,ld=Object.assign(Object.assign({},cf),{getAnimatableNone:function(e){var t=e.match(ud);return t?t.map(sd).join(" "):e}}),cd=Ms(Ms({},gl),{color:tf,backgroundColor:tf,outlineColor:tf,fill:tf,stroke:tf,borderColor:tf,borderTopColor:tf,borderRightColor:tf,borderBottomColor:tf,borderLeftColor:tf,filter:ld,WebkitFilter:ld}),fd=function(e){return cd[e]};function dd(e,t){var n,r=fd(e);return r!==ld&&(r=cf),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function pd(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=Us([],Ds(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=Bs(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Ms(Ms({},e),function(e,t){var n;return n=Vl(t)?id:ad[e]||ad.default,Ms({to:t},n(t))}(n,t.to))),Ms(Ms({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,a=e.loop,o=Bs(e,["ease","times","yoyo","flip","loop"]),s=Ms({},o);return n&&(s.offset=n),o.duration&&(s.duration=qf(o.duration)),o.repeatDelay&&(s.repeatDelay=qf(o.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Jf):Jf(t)),"tween"===o.type&&(s.type="keyframes"),(r||a||i)&&(r?s.repeatType="reverse":a?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=a||r||i||o.repeat),"spring"!==o.type&&(s.type="keyframes"),s}(e))}function hd(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function md(e){return"number"==typeof e?0:dd("",e)}function vd(e,t){return e[t]||e.default||e}function yd(e,t,n,r){return void 0===r&&(r={}),t.start((function(i){var a,o,s=function(e,t,n,r,i){var a,o=vd(r,e),s=null!==(a=o.from)&&void 0!==a?a:t.get(),u=ed(e,n);"none"===s&&u&&"string"==typeof n?s=dd(e,n):hd(s)&&"string"==typeof n?s=md(n):!Array.isArray(n)&&hd(n)&&"string"==typeof s&&(n=md(s));var l=ed(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:i,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,i=e.velocity,a=void 0===i?0:i,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){return void 0!==o&&e<o||void 0!==s&&e>s}function E(e){return void 0===o?s:void 0===s||Math.abs(o-e)<Math.abs(s-e)?o:s}function S(e){null==t||t.stop(),t=Hf(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 A(e){S(Object.assign({type:"spring",stiffness:p,damping:m,restDelta:y},e))}if(_(r))A({from:r,velocity:a,to:E(r)});else{var O=l*a+r;void 0!==g&&(O=g(O));var C,P,T=E(O),N=T===o?-1:1;S({type:"decay",from:r,velocity:a,timeConstant:f,power:l,restDelta:y,modifyTarget:g,onUpdate:_(O)?function(e){C=P,P=e,a=Wf(e-C,tu().delta),(1===N&&e>T||-1===N&&e<T)&&A({from:e,to:T,velocity:a})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}(Ms(Ms({},r),o)):Hf(Ms(Ms({},pd(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,a=Hl(n);return t.set(a),i(),null===(e=null==o?void 0:o.onUpdate)||void 0===e||e.call(o,a),null===(r=null==o?void 0:o.onComplete)||void 0===r||r.call(o),{stop:function(){}}}}(e,t,n,r,i),u=function(e,t){var n,r;return null!==(r=null!==(n=(vd(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),l=function(){return o=s()};return u?a=window.setTimeout(l,qf(u)):l(),function(){clearTimeout(a),null==o||o.stop()}}))}var gd=function(e){return/^0[^.\s]+$/.test(e)};function bd(e,t){-1===e.indexOf(t)&&e.push(t)}function wd(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var xd=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return bd(this.subscriptions,e),function(){return wd(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 i=0;i<r;i++){var a=this.subscriptions[i];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),kd=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new xd,this.velocityUpdateSubscribers=new xd,this.renderSubscribers=new xd,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=tu(),i=r.delta,a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=i,t.lastUpdated=a,nu.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 nu.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?Wf(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 _d(e){return new kd(e)}var Ed=function(e){return function(t){return t.test(e)}},Sd=[hl,cl,ll,ul,dl,fl,{test:function(e){return"auto"===e},parse:function(e){return e}}],Ad=function(e){return Sd.find(Ed(e))},Od=Us(Us([],Ds(Sd),!1),[tf,cf],!1),Cd=function(e){return Od.find(Ed(e))};function Pd(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_d(n))}function Td(e,t){if(t)return(t[e]||t.default||t).from}function Nd(e,t,n){var r;void 0===n&&(n={});var i=Nu(e,t,n.custom),a=(i||{}).transition,o=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(o=n.transitionOverride);var s=i?function(){return jd(e,i,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 i=o.delayChildren,a=void 0===i?0:i,s=o.staggerChildren,u=o.staggerDirection;return function(e,t,n,r,i,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=1);var o=[],s=(e.variantChildren.size-1)*r,u=1===i?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(Rd).forEach((function(e,r){o.push(Nd(e,t,Ms(Ms({},a),{delay:n+u(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(o)}(e,t,a+r,s,u,n)}:function(){return Promise.resolve()},l=o.when;if(l){var c=Ds("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 jd(e,t,n){var r,i=void 0===n?{}:n,a=i.delay,o=void 0===a?0:a,s=i.transitionOverride,u=i.type,l=e.makeTargetAnimatable(t),c=l.transition,f=void 0===c?e.getDefaultTransition():c,d=l.transitionEnd,p=Bs(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&&Ld(m,v))){var b=Ms({delay:o},f);e.shouldReduceMotion&&Zu(v)&&(b=Ms(Ms({},b),{type:!1,delay:0}));var w=yd(v,y,g,b);h.push(w)}}return Promise.all(h).then((function(){d&&function(e,t){var n=Nu(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,a=void 0===i?{}:i;r.transition;var o=Bs(r,["transitionEnd","transition"]);for(var s in o=Ms(Ms({},o),a))Pd(e,s,Hl(o[s]))}(e,d)}))}function Rd(e,t){return e.sortNodePosition(t)}function Ld(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var Id=[Yl.Animate,Yl.InView,Yl.Focus,Yl.Hover,Yl.Tap,Yl.Drag,Yl.Exit],Md=Us([],Ds(Id),!1).reverse(),Bd=Id.length;function Dd(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 i=t.map((function(t){return Nd(e,t,n)}));r=Promise.all(i)}else if("string"==typeof t)r=Nd(e,t,n);else{var a="function"==typeof t?Nu(e,t,n.custom):t;r=jd(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[Yl.Animate]=Ud(!0),e[Yl.InView]=Ud(),e[Yl.Hover]=Ud(),e[Yl.Tap]=Ud(),e[Yl.Drag]=Ud(),e[Yl.Focus]=Ud(),e[Yl.Exit]=Ud(),e}(),r={},i=!0,a=function(t,n){var r=Nu(e,n);if(r){r.transition;var i=r.transitionEnd,a=Bs(r,["transition","transitionEnd"]);t=Ms(Ms(Ms({},t),a),i)}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=Md[t],m=n[r],v=null!==(u=l[r])&&void 0!==u?u:c[r],y=Pu(v),g=r===s?m.isActive:null;!1===g&&(h=t);var b=v===c[r]&&v!==l[r]&&y;if(b&&i&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys=Ms({},p),!m.isActive&&null===g||!v&&!m.prevProp||zl(v)||"boolean"==typeof v)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Cu(t)&&!Tc(t,e)}(m.prevProp,v),x=w||r===s&&m.isActive&&!b&&y||t>h&&y,k=Array.isArray(v)?v:[v],_=k.reduce(a,{});!1===g&&(_={});var E=m.prevResolvedValues,S=void 0===E?{}:E,A=Ms(Ms({},S),_),O=function(e){x=!0,d.delete(e),m.needsAnimating[e]=!0};for(var C in A){var P=_[C],T=S[C];p.hasOwnProperty(C)||(P!==T?Vl(P)&&Vl(T)?!Tc(P,T)||w?O(C):m.protectedKeys[C]=!0:void 0!==P?O(C):d.add(C):void 0!==P&&d.has(C)?O(C):m.protectedKeys[C]=!0)}m.prevProp=v,m.prevResolvedValues=_,m.isActive&&(p=Ms(Ms({},p),_)),i&&e.blockInitialAnimation&&(x=!1),x&&!b&&f.push.apply(f,Us([],Ds(k.map((function(e){return{animation:e,options:Ms({type:r},o)}}))),!1))},v=0;v<Bd;v++)m(v);if(r=Ms({},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 i&&!1===l.initial&&!e.manuallyAnimateOnMount&&(g=!1),i=!1,g?t(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.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(i,t);for(var u in n)n[u].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function Ud(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Fd={animation:Oc((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Dd(t)),zl(n)&&(0,r.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:Oc((function(e){var t=e.custom,n=e.visualElement,i=Ds(Pc(),2),a=i[0],o=i[1],s=(0,r.useContext)(ou);(0,r.useEffect)((function(){var e,r;n.isPresent=a;var i=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Yl.Exit,!a,{custom:null!==(r=null==s?void 0:s.custom)&&void 0!==r?r:t});!a&&(null==i||i.then(o))}),[a])}))},zd=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Vd=function(e){return zd(e)&&e.hasOwnProperty("z")},Hd=function(e,t){return Math.abs(e-t)};function Wd(e,t){if(ff(e)&&ff(t))return Hd(e,t);if(zd(e)&&zd(t)){var n=Hd(e.x,t.x),r=Hd(e.y,t.y),i=Vd(e)&&Vd(t)?Hd(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var qd=function(){function e(e,t,n){var r=this,i=(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=Yd(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=Wd(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=tu().timestamp;r.history.push(Ms(Ms({},i),{timestamp:a}));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=Gd(t,r.transformPagePoint),Jl(e)&&0===e.buttons?r.handlePointerUp(e,t):nu.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,a=n.onSessionEnd,o=Yd(Gd(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,o),a&&a(e,o)},!(ec(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=Gd(ic(e),this.transformPagePoint),o=a.point,s=tu().timestamp;this.history=[Ms(Ms({},o),{timestamp:s})];var u=t.onSessionStart;u&&u(e,Yd(a,this.history)),this.removeListeners=bc(lc(window,"pointermove",this.handlePointerMove),lc(window,"pointerup",this.handlePointerUp),lc(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Ks.update(this.updatePoint)},e}();function Gd(e,t){return t?{point:t(e.point)}:e}function Zd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yd(e,t){var n=e.point;return{point:n,delta:Zd(n,Kd(t)),offset:Zd(n,$d(t)),velocity:Xd(t,.1)}}function $d(e){return e[0]}function Kd(e){return e[e.length-1]}function Xd(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=Kd(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>qf(t)));)n--;if(!r)return{x:0,y:0};var a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Qd(e){return e.max-e.min}function Jd(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Wd(e,t)<n}function ep(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Fc(t.min,t.max,e.origin),e.scale=Qd(n)/Qd(t),(Jd(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Fc(n.min,n.max,e.origin)-e.originPoint,(Jd(e.translate)||isNaN(e.translate))&&(e.translate=0)}function tp(e,t,n,r){ep(e.x,t.x,n.x,null==r?void 0:r.originX),ep(e.y,t.y,n.y,null==r?void 0:r.originY)}function np(e,t,n){e.min=n.min+t.min,e.max=e.min+Qd(t)}function rp(e,t,n){e.min=t.min-n.min,e.max=e.min+Qd(t)}function ip(e,t,n){rp(e.x,t.x,n.x),rp(e.y,t.y,n.y)}function ap(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 op(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Ds([i,r],2))[0],i=n[1]),{min:r,max:i}}var sp=.35;function up(e,t,n){return{min:lp(e,t),max:lp(e,n)}}function lp(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function cp(e){return[e("x"),e("y")]}function fp(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function dp(e){return void 0===e||1===e}function pp(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!dp(t)||!dp(n)||!dp(r)}function hp(e){return pp(e)||mp(e.x)||mp(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function mp(e){return e&&"0%"!==e}function vp(e,t,n){return n+t*(e-n)}function yp(e,t,n,r,i){return void 0!==i&&(e=vp(e,i,r)),vp(e,n,r)+t}function gp(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=yp(e.min,t,n,r,i),e.max=yp(e.max,t,n,r,i)}function bp(e,t){var n=t.x,r=t.y;gp(e.x,n.translate,n.scale,n.originPoint),gp(e.y,r.translate,r.scale,r.originPoint)}function wp(e,t){e.min=e.min+t,e.max=e.max+t}function xp(e,t,n){var r=Ds(n,3),i=r[0],a=r[1],o=r[2],s=void 0!==t[o]?t[o]:.5,u=Fc(e.min,e.max,s);gp(e,t[i],t[a],u,t.scale)}var kp=["x","scaleX","originX"],_p=["y","scaleY","originY"];function Ep(e,t){xp(e.x,t,kp),xp(e.y,t,_p)}function Sp(e,t){return fp(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 Ap=new WeakMap,Op=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,i=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new qd(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(ic(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),a=i.drag,o=i.dragPropagation,s=i.onDragStart;(!a||o||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=hc(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),cp((function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(ll.test(i)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(i=Qd(a)*(parseFloat(i)/100))}n.originPoint[e]=i})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Yl.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,a=r.dragDirectionLock,o=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var u=t.offset;if(a&&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 i=this.getProps().onDragEnd;null==i||i(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(Yl.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Cp(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?Fc(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?Fc(i,e,n.max):Math.min(e,i)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Ou(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,a=t.right;return{x:ap(e.x,r,a),y:ap(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=sp),!1===e?e=0:!0===e&&(e=sp),{x:up(e,"left","right"),y:up(e,"top","bottom")}}(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&cp((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}(i.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Ou(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var a=function(e,t,n){var r=Sp(e,n),i=t.scroll;return i&&(wp(r.x,i.x),wp(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o=function(e,t){return{x:op(e.x,t.x),y:op(e.y,t.y)}}(i.layout.actual,a);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=fp(s))}return o},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,a=n.dragElastic,o=n.dragTransition,s=n.dragSnapToOrigin,u=n.onDragTransitionEnd,l=this.constraints||{},c=cp((function(n){var u;if(Cp(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=a?200:1e6,d=a?40:1e7,p=Ms(Ms({type:"inertia",velocity:i?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 yd(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;cp((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;cp((function(n){if(Cp(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],o=a.min,s=a.max;i.set(e[n]-Fc(o,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,a=this.visualElement.projection;if(Ou(i)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};cp((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();o[e]=function(e,t){var n=.5,r=Qd(e),i=Qd(t);return i>r?n=Uc(t.min,t.max-r,e.min):r>i&&(n=Uc(e.min,e.max-i,t.min)),jc(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=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),cp((function(e){if(Cp(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],a=i.min,s=i.max;n.set(Fc(a,s,o[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Ap.set(this.visualElement,this);var n=lc(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=function(){Ou(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,a=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var o=Xl(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(cp((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(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,a=e.dragPropagation,o=void 0!==a&&a,s=e.dragConstraints,u=void 0!==s&&s,l=e.dragElastic,c=void 0===l?sp:l,f=e.dragMomentum,d=void 0===f||f;return Ms(Ms({},e),{drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:d})},e}();function Cp(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Pp={pan:Oc((function(e){var t=e.onPan,n=e.onPanStart,i=e.onPanEnd,a=e.onPanSessionStart,o=e.visualElement,s=t||n||i||a,u=(0,r.useRef)(null),l=(0,r.useContext)(ku).transformPagePoint,c={onSessionStart:a,onStart:n,onMove:t,onEnd:function(e,t){u.current=null,i&&i(e,t)}};(0,r.useEffect)((function(){null!==u.current&&u.current.updateHandlers(c)})),cc(o,"pointerdown",s&&function(e){u.current=new qd(e,c,{transformPagePoint:l})}),hu((function(){return u.current&&u.current.end()}))})),drag:Oc((function(e){var t=e.dragControls,n=e.visualElement,i=su((function(){return new Op(n)}));(0,r.useEffect)((function(){return t&&t.subscribe(i)}),[i,t]),(0,r.useEffect)((function(){return i.addListeners()}),[i])}))},Tp=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Np=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,a=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,_=function(){var e=Tp.map((function(){return new xd})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Tp.forEach((function(r){var i,a="on"+r,o=e[a];null===(i=t[r])||void 0===i||i.call(t),o&&(t[r]=n[a](o))}))}};return e.forEach((function(e,t){n["on"+Tp[t]]=function(t){return e.add(t)},n["notify"+Tp[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Us([],Ds(t),!1))}})),n}(),E=new Map,S=new Map,A={},O=Ms({},x);function C(){g&&w&&(P(),s(g,k,p.style,B.projection))}function P(){r(B,k,x,t,p)}function T(){_.notifyUpdate(x)}function N(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&nu.update(T,!1,!0)})),r=t.onRenderRequest(B.scheduleRender);S.set(e,(function(){n(),r()}))}var j=f(p);for(var R in j){var L=j[R];void 0!==x[R]&&Xu(L)&&L.set(x[R],!1)}var I=ju(p),M=Ru(p),B=Ms(Ms({treeType:n,current:null,depth:d?d.depth+1:0,parent:d,children:new Set,presenceId:h,shouldReduceMotion:y,variantChildren:M?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),M&&d&&!I&&(b=null==d?void 0:d.addVariantChild(B)),E.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(),Ks.update(T),Ks.render(C),S.forEach((function(e){return e()})),null==b||b(),null==d||d.children.delete(B),_.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 M?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),a(B,e,p,t)},measureViewportBox:function(){return o(g,p)},addValue:function(e,t){B.hasValue(e)&&B.removeValue(e),E.set(e,t),x[e]=t.get(),N(e,t)},removeValue:function(e){var t;E.delete(e),null===(t=S.get(e))||void 0===t||t(),S.delete(e),delete x[e],l(e,k)},hasValue:function(e){return E.has(e)},getValue:function(e,t){var n=E.get(e);return void 0===n&&void 0!==t&&(n=_d(t),B.addValue(e,n)),n},forEachValue:function(e){return E.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:u(g,e,t)},setBaseTarget:function(e,t){O[e]=t},getBaseTarget:function(e){if(i){var t=i(p,e);if(void 0!==t&&!Xu(t))return t}return O[e]}},_),{build:function(){return P(),k},scheduleRender:function(){nu.render(C,!1,!0)},syncRender:C,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&B.scheduleRender(),p=e,_.updatePropListeners(e),A=function(e,t,n){var r;for(var i in t){var a=t[i],o=n[i];if(Xu(a))e.addValue(i,a);else if(Xu(o))e.addValue(i,_d(a));else if(o!==a)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(a)}else e.addValue(i,_d(null!==(r=e.getStaticValue(i))&&void 0!==r?r:a))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(B,f(p),A)},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(!I){var t=(null==d?void 0:d.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Rp;r++){var i=jp[r],a=p[i];(Pu(a)||!1===a)&&(n[i]=a)}return n}});return B}},jp=Us(["initial"],Ds(Id),!1),Rp=jp.length;function Lp(e){return"string"==typeof e&&e.startsWith("var(--")}var Ip=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Mp(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=Ds(function(e){var t=Ip.exec(e);if(!t)return[,];var n=Ds(t,3);return[n[1],n[2]]}(e),2),i=r[0],a=r[1];if(i){var o=window.getComputedStyle(t).getPropertyValue(i);return o?o.trim():Lp(a)?Mp(a,t,n+1):a}}var Bp,Dp=new Set(["width","height","top","left","right","bottom","x","y"]),Up=function(e){return Dp.has(e)},Fp=function(e,t){e.set(t,!1),e.set(t)},zp=function(e){return e===hl||e===cl};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Bp||(Bp={}));var Vp=function(e,t){return parseFloat(e.split(", ")[t])},Hp=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return Vp(a[1],t);var o=i.match(/^matrix\((.+)\)$/);return o?Vp(o[1],e):0}},Wp=new Set(["x","y","z"]),qp=Wu.filter((function(e){return!Wp.has(e)})),Gp={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,a=t.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,a=t.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-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:Hp(4,13),y:Hp(5,14)};function Zp(e,t,n,r){return function(e){return Object.keys(e).some(Up)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Ms({},t),r=Ms({},r);var i=Object.keys(t).filter(Up),a=[],o=!1,s=[];if(i.forEach((function(i){var u=e.getValue(i);if(e.hasValue(i)){var l,c=n[i],f=Ad(c),d=t[i];if(Vl(d)){var p=d.length,h=null===d[0]?1:0;c=d[h],f=Ad(c);for(var m=h;m<p;m++)l?Ad(d[m]):(l=Ad(d[m]))===f||zp(f)&&zp(l)}else l=Ad(d);if(f!==l)if(zp(f)&&zp(l)){var v=u.get();"string"==typeof v&&u.set(parseFloat(v)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&l===cl&&(t[i]=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[i]=f.transform(d):(o||(a=function(e){var t=[];return qp.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(i),r[i]=void 0!==r[i]?r[i]:t[i],Fp(u,d))}})),s.length){var u=s.indexOf("height")>=0?window.pageYOffset:null,l=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),a=getComputedStyle(i),o=a.display,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=Gp[e](r,a)})),t.syncRender();var u=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);Fp(r,s[n]),e[n]=Gp[n](u,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=Ds(t,2),r=n[0],i=n[1];e.getValue(r).set(i)})),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 Yp={treeType:"dom",readValueFromInstance:function(e,t){if(Zu(t)){var n=fd(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(Ju(t)?i.getPropertyValue(t):i[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 Sp(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 i=n.transformValues;void 0===r&&(r=!0);var a=t.transition,o=t.transitionEnd,s=Bs(t,["transition","transitionEnd"]),u=function(e,t,n){var r,i,a={};for(var o in e)a[o]=null!==(r=Td(o,t))&&void 0!==r?r:null===(i=n.getValue(o))||void 0===i?void 0:i.get();return a}(s,a||{},e);if(i&&(o&&(o=i(o)),s&&(s=i(s)),u&&(u=i(u))),r){!function(e,t,n){var r,i,a,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!==(i=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==i?i:t[c]),null!=d&&("string"==typeof d&&(/^\-?\d*\.?\d+$/.test(d)||gd(d))?d=parseFloat(d):!Cd(d)&&cf.test(f)&&(d=dd(c,f)),e.addValue(c,_d(d)),null!==(a=(o=n)[c])&&void 0!==a||(o[c]=d),e.setBaseTarget(c,d))}}(e,s,u);var l=function(e,t,n,r){var i=function(e,t,n){var r,i=Bs(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var o in n&&(n=Ms({},n)),e.forEachValue((function(e){var t=e.get();if(Lp(t)){var n=Mp(t,a);n&&e.set(n)}})),i){var s=i[o];if(Lp(s)){var u=Mp(s,a);u&&(i[o]=u,n&&(null!==(r=n[o])&&void 0!==r||(n[o]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return Zp(e,t=i.target,n,r=i.transitionEnd)}(e,s,u,o);o=l.transitionEnd,s=l.target}return Ms({transition:a,transitionEnd:o},s)},scrapeMotionValuesFromProps:Ul,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),bl(t,n,r,i.transformTemplate)},render:Ml},$p=Np(Yp),Kp=Np(Ms(Ms({},Yp),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Zu(t)?(null===(n=fd(t))||void 0===n?void 0:n.default)||0:(t=Bl.has(t)?t:Il(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Fl,build:function(e,t,n,r,i){Tl(t,n,r,i.transformTemplate)},render:Dl})),Xp=function(e,t){return zu(e)?Kp(t,{enableHardwareAcceleration:!1}):$p(t,{enableHardwareAcceleration:!0})};function Qp(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Jp={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!cl.test(e))return e;e=parseFloat(e)}var n=Qp(e,t.target.x),r=Qp(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},eh="_$css",th={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,a=e.includes("var("),o=[];a&&(e=e.replace(Ip,(function(e){return o.push(e),eh})));var s=cf.parse(e);if(s.length>5)return i;var u=cf.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=Fc(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(a){var h=0;p=p.replace(eh,(function(){var e=o[h];return h++,e}))}return p}},nh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Is(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,o=n.layoutId,s=r.projection;e=rh,Object.assign(Vu,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==a?void 0:a.register)&&o&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Ms(Ms({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Iu.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,a=n.drag,o=n.isPresent,s=i.projection;return s?(s.isPresent=o,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||nu.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,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(r.Component),rh={borderRadius:Ms(Ms({},Jp),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Jp,borderTopRightRadius:Jp,borderBottomLeftRadius:Jp,borderBottomRightRadius:Jp,boxShadow:th},ih={measureLayout:function(e){var t=Ds(Pc(),2),n=t[0],i=t[1],a=(0,r.useContext)(pu);return r.createElement(nh,Ms({},e,{layoutGroup:a,switchLayoutGroup:(0,r.useContext)(Bu),isPresent:n,safeToRemove:i}))}},ah=["TopLeft","TopRight","BottomLeft","BottomRight"],oh=ah.length,sh=function(e){return"string"==typeof e?parseFloat(e):e},uh=function(e){return"number"==typeof e||cl.test(e)};function lh(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var ch=dh(0,.5,Tf),fh=dh(.5,.95,Sf);function dh(e,t,n){return function(r){return r<e?0:r>t?1:n(Uc(e,t,r))}}function ph(e,t){e.min=t.min,e.max=t.max}function hh(e,t){ph(e.x,t.x),ph(e.y,t.y)}function mh(e,t,n,r,i){return e=vp(e-=t,1/n,r),void 0!==i&&(e=vp(e,1/i,r)),e}function vh(e,t,n,r,i){var a=Ds(n,3),o=a[0],s=a[1],u=a[2];!function(e,t,n,r,i,a,o){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===o&&(o=e),ll.test(t)&&(t=parseFloat(t),t=Fc(o.min,o.max,t/100)-o.min),"number"==typeof t){var s=Fc(a.min,a.max,r);e===a&&(s-=t),e.min=mh(e.min,t,n,s,i),e.max=mh(e.max,t,n,s,i)}}(e,t[o],t[s],t[u],t.scale,r,i)}var yh=["x","scaleX","originX"],gh=["y","scaleY","originY"];function bh(e,t,n,r){vh(e.x,t,yh,null==n?void 0:n.x,null==r?void 0:r.x),vh(e.y,t,gh,null==n?void 0:n.y,null==r?void 0:r.y)}function wh(e){return 0===e.translate&&1===e.scale}function xh(e){return wh(e.x)&&wh(e.y)}function kh(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 _h=function(){function e(){this.members=[]}return e.prototype.add=function(e){bd(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(wd(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 i=this.members[r];if(!1!==i.isPresent){t=i;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,i,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===a||a.call(i)}))},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 Eh(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,a="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var o=n.rotate,s=n.rotateX,u=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),u&&(a+="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)"===(a+="scale(".concat(l,", ").concat(c,")"))?"none":a}var Sh=function(e,t){return e.depth-t.depth},Ah=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){bd(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){wd(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Sh),this.isDirty=!1,this.children.forEach(e)},e}();function Oh(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var i=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(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(Lh),i.nodes.forEach(Ih)},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?Us(Us([],Ds(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ah)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new xd),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,Us([],Ds(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,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,o=a.layoutId,s=a.layout,u=a.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 i.root.updateBlockedByResize=!1};t(e,(function(){i.root.updateBlockedByResize=!0,clearTimeout(l),l=window.setTimeout(c,250),Iu.hasAnimatedSinceResize&&(Iu.hasAnimatedSinceResize=!1,i.nodes.forEach(Rh))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&u&&(o||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,a,o,s=e.delta,l=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,f=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var d=null!==(n=null!==(t=i.options.transition)&&void 0!==t?t:u.getDefaultTransition())&&void 0!==n?n:zh,p=u.getProps(),h=p.onLayoutAnimationStart,m=p.onLayoutAnimationComplete,v=!i.targetLayout||!kh(i.targetLayout,f)||c,y=!l&&c;if((null===(r=i.resumeFrom)||void 0===r?void 0:r.instance)||y||l&&(v||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(s,y);var g=Ms(Ms({},vd(d,"layout")),{onPlay:h,onComplete:m});u.shouldReduceMotion&&(g.delay=0,g.type=!1),i.startAnimation(g)}else l||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(o=(a=i.options).onExitComplete)||void 0===o||o.call(a));i.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,Ks.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(Mh))},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 i=0;i<this.path.length;i++){var a=this.path[i];a.shouldResetTransform=!0,a.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(Nh);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Vh),this.potentialNodes.clear()),this.nodes.forEach(jh),this.nodes.forEach(Ch),this.nodes.forEach(Ph),this.clearAllSnapshots(),Xs.update(),Xs.preRender(),Xs.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Th),this.sharedNodes.forEach(Bh)},e.prototype.scheduleUpdateProjection=function(){nu.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;nu.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));Wh(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();Wh(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=i(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!xh(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),o=i!==this.prevTransformTemplateValue;t&&(n||hp(this.latestValues)||o)&&(a(this.instance,i),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&&(wp(t.x,n.x),wp(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};hh(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,a=r.options,o=r.isScrollRoot;if(r!==this.root&&i&&a.layoutScroll){if(o){hh(t,e);var s=this.root.scroll;s&&(wp(t.x,-s.x),wp(t.y,-s.y))}wp(t.x,i.x),wp(t.y,i.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}};hh(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ep(n,{x:-i.scroll.x,y:-i.scroll.y}),hp(i.latestValues)&&Ep(n,i.latestValues)}return hp(this.latestValues)&&Ep(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};hh(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&hp(i.latestValues)){pp(i.latestValues)&&i.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};hh(a,i.measure()),bh(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,a)}}return hp(this.latestValues)&&bh(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Ms(Ms(Ms({},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,i=this.options,a=i.layout,o=i.layoutId;this.layout&&(a||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}},ip(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),hh(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,np(t.x,n.x,r.x),np(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):hh(this.target,this.layout.actual),bp(this.target,this.targetDelta)):hh(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}},ip(this.relativeTargetOrigin,this.target,this.relativeParent.target),hh(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!hp(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 i=this.getLead();hh(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,a;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===(a=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ep(e,{x:-s.scroll.x,y:-s.scroll.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,bp(e,u)),r&&hp(s.latestValues)&&Ep(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var a=i.target;if(a){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;tp(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Eh(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===o&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},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 i=this.snapshot,a=(null==i?void 0:i.latestValues)||{},o=Ms({},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==i?void 0:i.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(Fh));this.animationProgress=0,this.mixTargetDelta=function(t){var n,i=t/1e3;Dh(s.x,e.x,i),Dh(s.y,e.y,i),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(ip(u,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){Uh(e.x,t.x,n.x,r),Uh(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,u,i)),l&&(r.animationValues=o,function(e,t,n,r,i,a){var o,s,u,l;i?(e.opacity=Fc(0,null!==(o=n.opacity)&&void 0!==o?o:1,ch(r)),e.opacityExit=Fc(null!==(s=t.opacity)&&void 0!==s?s:1,0,fh(r))):a&&(e.opacity=Fc(null!==(u=t.opacity)&&void 0!==u?u:1,null!==(l=n.opacity)&&void 0!==l?l:1,r));for(var c=0;c<oh;c++){var f="border".concat(ah[c],"Radius"),d=lh(t,f),p=lh(n,f);void 0===d&&void 0===p||(d||(d=0),p||(p=0),0===d||0===p||uh(d)===uh(p)?(e[f]=Math.max(Fc(sh(d),sh(p),r),0),(ll.test(p)||ll.test(d))&&(e[f]+="%")):e[f]=p)}(t.rotate||n.rotate)&&(e.rotate=Fc(t.rotate||0,n.rotate||0,r))}(o,a,r.latestValues,i,f,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=i},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&&(Ks.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nu.update((function(){Iu.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Xu(0)?0:_d(0);return yd("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Ms(Ms({},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,i=e.latestValues;t&&n&&r&&(hh(t,n),Ep(t,i),tp(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new _h),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.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,i=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,i),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<Hu.length;r++){var i="rotate"+Hu[r];e.getStaticValue(i)&&(t=!0,n[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),n)e.setStaticValue(i,n[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,i,a,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=Wl(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=Wl(e.pointerEvents)||""),this.hasProjected&&!hp(this.latestValues)&&(c.transform=u?u({},""):"none",this.hasProjected=!1),c}var f=l.animationValues||l.latestValues;this.applyTransformsToTarget(),s.transform=Eh(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!==(i=null!==(r=f.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:s.opacity=l===this?null!==(a=f.opacity)&&void 0!==a?a:"":null!==(o=f.opacityExit)&&void 0!==o?o:0,Vu)if(void 0!==f[m]){var v=Vu[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?Wl(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(Nh),this.root.sharedNodes.clear()},e}()}function Ch(e){e.updateLayout()}function Ph(e){var t,n,r,i,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var o=e.layout,s=o.actual,u=o.measured;"size"===e.options.animationType?cp((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=Qd(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&cp((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=Qd(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}};tp(l,s,a.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?tp(c,e.applyTransform(u,!0),a.measured):tp(c,s,a.layout);var f=!xh(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}};ip(v,a.layout,h.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};ip(y,s,m.actual),kh(v,y)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:l,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&(null===(i=(r=e.options).onExitComplete)||void 0===i||i.call(r));e.options.transition=void 0}function Th(e){e.clearSnapshot()}function Nh(e){e.clearMeasurements()}function jh(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Rh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Lh(e){e.resolveTargetDelta()}function Ih(e){e.calcProjection()}function Mh(e){e.resetRotation()}function Bh(e){e.removeLeadSnapshot()}function Dh(e,t,n){e.translate=Fc(t.translate,0,n),e.scale=Fc(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Uh(e,t,n,r){e.min=Fc(t.min,n.min,r),e.max=Fc(t.max,n.max,r)}function Fh(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var zh={duration:.45,ease:[.4,0,.1,1]};function Vh(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 i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function Hh(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Wh(e){Hh(e.x),Hh(e.y)}var qh=Oh({attachResizeListener:function(e,t){return Xl(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Gh={current:void 0},Zh=Oh({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Gh.current){var e=new qh(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Gh.current=e}return Gh.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Yh=Ms(Ms(Ms(Ms({},Fd),Cc),Pp),ih),$h=function(e){function t(t,n){return void 0===n&&(n={}),Uu(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,i){var a=t.forwardMotionProps,o=void 0!==a&&a,s=zu(e)?$l:Kl;return Ms(Ms({},s),{preloadedFeatures:n,useRender:Rl(o),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,Yh,Xp,Zh)})),Kh={success:"tw-bg-green-300",info:"tw-bg-sky-300",warning:"tw-bg-amber-300",error:"tw-bg-red-300"},Xh={success:"tw-bg-green-500",info:"tw-bg-sky-500",warning:"tw-bg-amber-500",error:"tw-bg-red-500"},Qh={success:"😊",info:"🔔",warning:"😮",error:"😢"};function Jh(e){var t,n=(0,r.useContext)(_).dispatch,i=s((0,r.useState)(!1),2),a=i[0],o=i[1],u=(0,r.useRef)(null);(0,r.useEffect)((function(){var t,r;return e.timeoutMs&&(t=setTimeout((function(){return n(B(e.id))}),300+e.timeoutMs),r=setTimeout((function(){return o(!0)}),300)),function(){clearTimeout(t),clearTimeout(r)}}),[n,e.id,e.timeoutMs]);var l=(0,r.useCallback)((function(){return a?"tw-w-0":"tw-w-full"}),[a]);return(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-mr-0 md:tw-mr-4 tw-border-none tw-rounded\n tw-shadow-md tw-overflow-hidden tw-pointer-events-none "+[e.textColorClass||"text-black",e.backgroundColorClass||Kh[e.type]].join(" "),children:[(0,k.jsxs)("div",{className:"tw-flex tw-gap-2 tw-p-3 tw-text-lg",children:[!e.hideIcon&&(0,k.jsx)("div",{className:"tw-flex tw-items-center tw-justify-center tw-border-0 tw-rounded-full tw-w-7 tw-h-7 "+Xh[e.type],children:null!==(t=e.icon)&&void 0!==t?t:Qh[e.type]}),(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-text-left",children:[e.text&&(0,k.jsx)("div",{className:"tw-whitespace-nowrap tw-text-md tw-overflow-ellipsis",children:e.text}),e.detail&&(0,k.jsx)("div",{className:"tw-text-sm",children:e.detail}),e.jsx&&(0,k.jsx)("div",{children:e.jsx})]}),!e.hideDismissBtn&&!e.showSpinner&&(0,k.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end tw-pointer-events-auto",onClick:function(){n(B(e.id))},children:(0,k.jsx)("div",{children:(0,k.jsx)(fs,{className:"tw-cursor-pointer hover:tw-scale-125 tw-transition-all",icon:Br})})}),e.showSpinner&&(0,k.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end",children:(0,k.jsx)("div",{children:(0,k.jsx)(fs,{icon:Dr,className:"fa-spin"})})})]}),e.timeoutMs&&(0,k.jsx)("div",{children:(0,k.jsx)("div",{ref:u,className:"tw-h-1 tw-transition-all tw-ease-linear "+[l(),Xh[e.type]].join(" "),style:{transitionDuration:"".concat(e.timeoutMs,"ms")}})})]})}function em(){var e=(0,r.useContext)(_).state.toasts;return(0,k.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,k.jsx)(vu,{children:e.map((function(e){return(0,k.jsx)($h.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,k.jsx)(Jh,c({},e))},e.id)}))})})}var tm=function(e){var t=e.children,n=e.id,r=e.className,a=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=e.hideDismissButton,v=function(e){d&&d()},y=Q("common-modal-container",h&&"fullscreen",r);return i.createPortal((0,k.jsx)(Ns,{className:y,onEscape:v,children:(0,k.jsxs)("div",{id:n,className:"common-modal",role:u||"dialog","aria-hidden":o,"aria-label":a,"aria-describedby":s,"aria-labelledby":"modal-title",children:[(0,k.jsxs)("div",{className:"common-modal-header",children:[h&&!m&&(0,k.jsx)("div",{className:"common-modal-back",children:(0,k.jsx)(J,{className:"menu-button",onClick:v,title:lf("Go Back"),label:lf("Go Back"),leftIcon:"fas fa-arrow-left"})}),(0,k.jsx)("div",{id:"modal-title",className:"common-modal-title",children:l}),h&&c&&(0,k.jsx)("div",{className:"common-modal-help",children:(0,k.jsx)(J,{className:"menu-button",title:lf("Help on {0} dialog",l),href:e.helpUrl,onClick:function(){},rightIcon:"fas fa-question"})}),!h&&!m&&(0,k.jsx)("div",{className:"common-modal-close",children:(0,k.jsx)(J,{className:"menu-button inverted",onClick:v,title:lf("Close"),rightIcon:"fas fa-times-circle"})})]}),(0,k.jsx)("div",{className:"common-modal-body",children:t}),(null==f?void 0:f.length)&&(0,k.jsx)("div",{className:"common-modal-footer",children:f.map((function(e,t){var n;return(0,k.jsx)(J,{className:null!==(n=e.className)&&void 0!==n?n:"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)},nm=function(e){var t=e.id,n=e.className,r=e.ariaHidden,i=e.ariaLabel,a=e.role,o=e.isChecked,s=e.onChange,u=e.label;return(0,k.jsxs)("div",{className:Q("common-checkbox",n),children:[(0,k.jsx)("input",{id:t,tabIndex:0,type:"checkbox",checked:o,onChange:function(){s(!o)},onKeyDown:X,role:a,"aria-hidden":r,"aria-label":i}),u&&(0,k.jsx)("label",{htmlFor:t,children:u})]})},rm=function(e){var t,n,i=e.onSignIn,a=e.onClose,o=e.appMessage,u=e.dialogMessages,l=e.hideDismissButton,c=u||{signInMessage:lf("Sign in to save your progress and access your work anytime, anywhere."),signUpMessage:lf("Join now to save your progress and access your work anytime, anywhere.")},f=c.signInMessage,d=c.signUpMessage,p=null!==(t=e.resolvePath)&&void 0!==t?t:function(e){return e},h=s(r.useState(!1),2),m=h[0],v=h[1],y=s(r.useState(null!==(n=e.mode)&&void 0!==n?n:"signin"),2),g=y[0],b=y[1],w=r.useMemo((function(){return"signin"===g?lf("Sign in"):lf("Sign up")}),[g]),x=r.useMemo((function(){return"signin"===g?f:d}),[g,f,d]),_=r.useMemo((function(){return"signin"===g?(0,k.jsxs)("div",{className:"switch",children:[(0,k.jsx)("span",{children:lf("Don't have an account?")}),(0,k.jsx)(J,{className:"link-button",onClick:function(){return b("signup")},title:lf("Sign up"),label:lf("Sign up")})]}):(0,k.jsxs)("div",{className:"switch",children:[(0,k.jsx)("span",{children:lf("Have an account?")}),(0,k.jsx)(J,{className:"link-button",onClick:function(){return b("signin")},title:lf("Sign in"),label:lf("Sign in")})]})}),[g]);return(0,k.jsx)(tm,{title:w,onClose:a,hideDismissButton:l,children:(0,k.jsxs)("div",{className:"signin-form",children:[(0,k.jsxs)("div",{className:"signin-header",children:[o||void 0," ",x]}),(0,k.jsx)("div",{className:"signin-body",children:(0,k.jsxs)("div",{className:"providers",children:[pxt.auth.identityProviders().map((function(e,t){var n="signin"===g?lf("Continue with {0}",e.name):lf("Sign up with {0}",e.name);return(0,k.jsx)(J,{className:"teal inverted provider",onClick:function(){return i(e,m)},title:n,ariaLabel:n,label:(0,k.jsxs)("div",{className:"label",children:[(0,k.jsx)("div",{children:(0,k.jsx)("img",{className:"logo",src:p(e.icon)})}),(0,k.jsx)("div",{className:"title",children:n})]})},t)})),(0,k.jsx)("div",{className:"rememberme",children:(0,k.jsx)(nm,{id:"rememberme",label:lf("Remember me"),isChecked:m,onChange:v})})]})}),(0,k.jsxs)("div",{className:"signin-footer",children:[_,(0,k.jsx)("div",{className:"learn",children:(0,k.jsx)(te,{href:"/identity/sign-in",target:"_blank",children:lf("Learn more")})})]})]})})};function im(e){var t=e.title,n=e.message,r=e.onConfirm,i=e.onCancel,a=[{label:lf("Cancel"),className:"primary",onClick:i},{label:lf("Confirm"),className:"primary",onClick:r}];return(0,k.jsx)(tm,{title:t,actions:a,onClose:i,children:(0,k.jsx)("div",{className:"tw-flex tw-flex-col tw-gap-4",children:(0,k.jsx)("div",{className:"tw-text-center",children:n})})})}function am(){var e=(0,r.useContext)(_).state,t=e.deepLinks,n=e.clientRole,i=t.shareCode,a=t.joinCode;switch(e.modal){case"sign-in":return(0,k.jsx)(rm,{onClose:function(){return x({type:"CLEAR_MODAL"})},onSignIn:function(){var e=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={},i&&(r.host=i),a&&(r.join=a),e.next=5,Wn(t.id,n,{params:r});case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),dialogMessages:e.modalOpts.dialogMessages,hideDismissButton:!0});case"report-abuse":return(0,k.jsx)(tm,{title:lf("Report Abuse"),onClose:function(){return x({type:"CLEAR_MODAL"})},children:"Report Abuse Placeholder "});case"kick-player":return(0,k.jsx)(im,{title:lf("Kick Player"),message:lf("Kick this player? They will be blocked from rejoining the game."),onConfirm:function(){x({type:"CLEAR_MODAL"}),function(e){try{pxt.tickEvent("mp.kickplayer"),function(e){var t;null===(t=nn)||void 0===t||t.kickPlayer(e)}(e),x(M({type:"info",text:lf("Player kicked"),timeoutMs:5e3}))}catch(e){}}(e.modalOpts.clientId)},onCancel:function(){return x({type:"CLEAR_MODAL"})}});case"leave-game":return"host"===n?(0,k.jsx)(im,{title:lf("End the Game"),message:lf("End the game? All players will be disconnected."),onConfirm:$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x({type:"CLEAR_MODAL"}),e.next=3,Fn("ended");case 3:case"end":return e.stop()}}),e)}))),onCancel:function(){return x({type:"CLEAR_MODAL"})}}):(0,k.jsx)(im,{title:lf("Leave Game"),message:lf("Leave the game?"),onConfirm:$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x({type:"CLEAR_MODAL"}),e.next=3,Fn("left");case 3:case"end":return e.stop()}}),e)}))),onCancel:function(){return x({type:"CLEAR_MODAL"})}});default:return null}}function om(){var e=(0,r.useContext)(_).state,t=e.gamePaused,n=e.clientRole,i=function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gr();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,k.jsxs)(k.Fragment,{children:[t&&"host"===n&&(0,k.jsxs)("div",{className:"tw-fixed tw-flex tw-flex-col tw-gap-4 tw-z-40 tw-p-5 tw-bg-white tw-rounded-lg tw-drop-shadow-2xl tw-border tw-top-[50%] tw-left-[50%] tw-translate-x-[-50%] tw-translate-y-[-50%]",children:[(0,k.jsx)("div",{className:"tw-text-left tw-font-bold tw-text-lg",children:lf("Game Paused")}),(0,k.jsx)("div",{className:"tw-text-left",children:lf("The game is paused. Press the resume button to continue.")}),(0,k.jsx)("div",{className:"tw-text-right",children:(0,k.jsx)(J,{title:lf("Resume"),label:lf("Resume"),className:"primary",onClick:i})})]}),t&&"host"!==n&&(0,k.jsxs)("div",{className:"tw-fixed tw-flex tw-flex-col tw-gap-4 tw-z-40 tw-p-5 tw-bg-white tw-rounded-lg tw-drop-shadow-2xl tw-border tw-top-[50%] tw-left-[50%] tw-translate-x-[-50%] tw-translate-y-[-50%]",children:[(0,k.jsx)("div",{className:"tw-text-left tw-font-bold tw-text-lg",children:lf("Game Paused")}),(0,k.jsx)("div",{className:"tw-text-left",children:lf("The game is paused. Please wait for the host to resume the game.")})]})]})}var sm=function(){var e=(0,r.useContext)(_),t=e.state,n=e.dispatch,i=t.authStatus,a=t.deepLinks,o=a.shareCode,u=a.joinCode,l=s((0,r.useState)(!1),2),c=l[0],f=l[1];!function(e){(0,r.useEffect)((function(){var t=function(){e("visible"===document.visibilityState)};return document.addEventListener("visibilitychange",t),function(){document.removeEventListener("visibilitychange",t)}}),[])}(wr),(0,r.useEffect)((function(){(function(){return mt.apply(this,arguments)})().then((function(){return f(!0)})).catch((function(){return f(!0)}))}),[f]);var d=(0,r.useCallback)((function(){var e,t,r=void 0,i=null!==(e=(r="?"===window.location.hash[1]?new URLSearchParams(window.location.hash.substr(1)):new URLSearchParams(window.location.search)).get("host"))&&void 0!==e?e:void 0,a=null!==(t=r.get("join"))&&void 0!==t?t:void 0;i=Tt(i),a=Pt(a),n(V(i,a))}),[n]);return(0,r.useEffect)((function(){c&&d()}),[c,d]),(0,r.useEffect)((function(){c&&(o||u)&&"signed-in"===i&&(o?Rn(o).then((function(){})).catch((function(){})):u&&Mn(u).then((function(){})).catch((function(){})),n(V(void 0,void 0)))}),[n,i,o,u,c]),(0,k.jsxs)("div",{className:"".concat(pxt.appTarget.id," tw-flex tw-flex-col"),children:[!c&&(0,k.jsx)(S,{}),c&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Rs,{}),"signed-out"===i&&(0,k.jsx)(q,{}),"signed-in"===i&&(0,k.jsx)(Cs,{})]}),(0,k.jsx)(am,{}),(0,k.jsx)(om,{}),(0,k.jsx)(em,{})]})};window.addEventListener("DOMContentLoaded",(function(){var e=window.pxtTargetBundle;if(pxt.setAppTarget(e),pxt.setupWebConfig(window.pxtConfig||pxt.webConfig),pxt.BrowserUtils.isLocalHostDev()){for(var t=pxt.webConfig,n=0,a=Object.keys(t);n<a.length;n++){var o,s,u=a[n];null!==(o=t[u])&&void 0!==o&&o.startsWith("/")&&-1==(null===(s=t[u])||void 0===s?void 0:s.indexOf("worker"))&&(t[u]="http://localhost:3232".concat(t[u]))}pxt.webConfig.workerjs="/blb".concat(pxt.webConfig.workerjs)}pxt.Cloud.apiRoot="https://www.makecode.com/api/",pxt.worker.getWorker(pxt.webConfig.workerjs),i.render((0,k.jsx)(r.StrictMode,{children:(0,k.jsx)(E,{children:(0,k.jsx)(sm,{})})}),document.getElementById("root"))}))}()}();
1
+ /*! For license information please see main.9682a212.js.LICENSE.txt */
2
+ !function(){var e={6186:function(e,t,n){"use strict";var r=n(8466),i=n(3705),a=n(6),o=n(3830);function s(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(!i)throw Error(s(227));var u=new Set,l={};function c(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(l[e]=t,e=0;e<t.length;e++)u.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[: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]*$/,h=Object.prototype.hasOwnProperty,m={},v={};function y(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new y(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){g[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||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,i,r)&&(n=null),r||null===i?function(e){return!!h.call(v,e)||!h.call(m,e)&&(p.test(e)?v[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,w);g[t]=new y(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(b,w);g[t]=new y(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(b,w);g[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,E=60106,S=60107,A=60108,O=60114,C=60109,j=60110,N=60112,T=60113,P=60120,R=60115,L=60116,I=60121,M=60128,B=60129,D=60130,U=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;_=F("react.element"),E=F("react.portal"),S=F("react.fragment"),A=F("react.strict_mode"),O=F("react.profiler"),C=F("react.provider"),j=F("react.context"),N=F("react.forward_ref"),T=F("react.suspense"),P=F("react.suspense_list"),R=F("react.memo"),L=F("react.lazy"),I=F("react.block"),F("react.scope"),M=F("react.opaque.id"),B=F("react.debug_trace_mode"),D=F("react.offscreen"),U=F("react.legacy_hidden")}var z,V="function"==typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function W(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var q=!1;function G(e,t){if(!e||q)return"";q=!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 i=e.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function Z(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return G(e.type,!1);case 11:return G(e.type.render,!1);case 22:return G(e.type._render,!1);case 1:return G(e.type,!0);default:return""}}function Y(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 A:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case j:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case R:return Y(e.type);case I:return Y(e._render);case L:t=e._payload,e=e._init;try{return Y(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 K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=K(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 i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(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 ee(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 te(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 ne(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function re(e,t){ne(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 ie(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 oe(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function se(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ue(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$(n)}}function ce(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 fe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml";function pe(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 he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve,ye=(ve=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.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 ve(e,t)}))}:ve);function ge(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 be={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},we=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var _e=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(_e[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(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 Ae(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Oe=null,Ce=null,je=null;function Ne(e){if(e=ei(e)){if("function"!=typeof Oe)throw Error(s(280));var t=e.stateNode;t&&(t=ni(t),Oe(e.stateNode,e.type,t))}}function Te(e){Ce?je?je.push(e):je=[e]:Ce=e}function Pe(){if(Ce){var e=Ce,t=je;if(je=Ce=null,Ne(e),t)for(e=0;e<t.length;e++)Ne(t[e])}}function Re(e,t){return e(t)}function Le(e,t,n,r,i){return e(t,n,r,i)}function Ie(){}var Me=Re,Be=!1,De=!1;function Ue(){null===Ce&&null===je||(Ie(),Pe())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=ni(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(s(231,t,typeof n));return n}var ze=!1;if(d)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(ve){ze=!1}function He(e,t,n,r,i,a,o,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var We=!1,qe=null,Ge=!1,Ze=null,Ye={onError:function(e){We=!0,qe=e}};function $e(e,t,n,r,i,a,o,s,u){We=!1,qe=null,He.apply(Ye,arguments)}function Ke(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 Xe(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 Qe(e){if(Ke(e)!==e)throw Error(s(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Qe(i),e;if(a===r)return Qe(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,u=i.child;u;){if(u===n){o=!0,n=i,r=a;break}if(u===r){o=!0,r=i,n=a;break}u=u.sibling}if(!o){for(u=a.child;u;){if(u===n){o=!0,n=a,r=i;break}if(u===r){o=!0,r=a,n=i;break}u=u.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(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 et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,it,at=!1,ot=[],st=null,ut=null,lt=null,ct=new Map,ft=new Map,dt=[],pt="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 ht(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function vt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=ht(t,n,r,i,a),null!==t&&null!==(t=ei(t))&&nt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function yt(e){var t=Jr(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void it(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(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=ei(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){gt(e)&&n.delete(t)}function wt(){for(at=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ei(e.blockedOn))&&tt(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&&ot.shift()}null!==st&&gt(st)&&(st=null),null!==ut&&gt(ut)&&(ut=null),null!==lt&&gt(lt)&&(lt=null),ct.forEach(bt),ft.forEach(bt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,wt)))}function kt(e){function t(t){return xt(t,e)}if(0<ot.length){xt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&xt(st,e),null!==ut&&xt(ut,e),null!==lt&&xt(lt,e),ct.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)yt(n),null===n.blockedOn&&dt.shift()}function _t(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:_t("Animation","AnimationEnd"),animationiteration:_t("Animation","AnimationIteration"),animationstart:_t("Animation","AnimationStart"),transitionend:_t("Transition","TransitionEnd")},St={},At={};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 At)return St[e]=n[t];return e}d&&(At=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 Ct=Ot("animationend"),jt=Ot("animationiteration"),Nt=Ot("animationstart"),Tt=Ot("transitionend"),Pt=new Map,Rt=new Map,Lt=["abort","abort",Ct,"animationEnd",jt,"animationIteration",Nt,"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 It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Rt.set(r,t),Pt.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Mt=8;function Bt(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 Dt(e,t){var n=e.pendingLanes;if(0===n)return Mt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=Mt=15;else if(0!=(a=134217727&n)){var u=a&~o;0!==u?(r=Bt(u),i=Mt):0!=(s&=a)&&(r=Bt(s),i=Mt)}else 0!=(a=n&~o)?(r=Bt(a),i=Mt):0!==s&&(r=Bt(s),i=Mt);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Bt(t),i<=Mt)return t;Mt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Wt(t)),r|=e[n],t&=~i;return r}function Ut(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Ft(10,t):e;case 10:return 0===(e=zt(192&~t))?Ft(8,t):e;case 8:return 0===(e=zt(3584&~t))&&0===(e=zt(4186112&~t))&&(e=512),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function zt(e){return e&-e}function Vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Gt|0)|0},qt=Math.log,Gt=Math.LN2,Zt=o.unstable_UserBlockingPriority,Yt=o.unstable_runWithPriority,$t=!0;function Kt(e,t,n,r){Be||Ie();var i=Qt,a=Be;Be=!0;try{Le(i,e,t,n,r)}finally{(Be=a)||Ue()}}function Xt(e,t,n,r){Yt(Zt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var i;if($t)if((i=0==(4&t))&&0<ot.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),ot.push(e);else{var a=Jt(e,t,n,r);if(null===a)i&&mt(e,r);else{if(i){if(-1<pt.indexOf(e))return e=ht(a,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return st=vt(st,e,t,n,r,i),!0;case"dragenter":return ut=vt(ut,e,t,n,r,i),!0;case"mouseover":return lt=vt(lt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ct.set(a,vt(ct.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,ft.set(a,vt(ft.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;mt(e,r)}Pr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=Ae(r);if(null!==(i=Jr(i))){var a=Ke(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Xe(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Pr(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return nn=i.slice(e,1<t?1-t:void 0)}function an(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 on(){return!0}function sn(){return!1}function un(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:sn,this.isPropagationStopped=sn,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=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,cn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=un(dn),hn=a({},dn,{view:0,detail:0}),mn=un(hn),vn=a({},hn,{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!==fn&&(fn&&"mousemove"===e.type?(ln=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=ln=0,fn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),yn=un(vn),gn=un(a({},vn,{dataTransfer:0})),bn=un(a({},hn,{relatedTarget:0})),wn=un(a({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=un(a({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),kn=un(a({},dn,{data:0})),_n={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 An(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function On(){return An}var Cn=un(a({},hn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=an(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?an(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?an(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),jn=un(a({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=un(a({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Tn=un(a({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=un(a({},vn,{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})),Rn=[9,13,27,32],Ln=d&&"CompositionEvent"in window,In=null;d&&"documentMode"in document&&(In=document.documentMode);var Mn=d&&"TextEvent"in window&&!In,Bn=d&&(!Ln||In&&8<In&&11>=In),Dn=String.fromCharCode(32),Un=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1,Hn={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 Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function qn(e,t,n,r){Te(r),0<(t=Lr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Zn=null;function Yn(e){Ar(e,0)}function $n(e){if(Q(ti(e)))return e}function Kn(e,t){if("change"===e)return t}var Xn=!1;if(d){var Qn;if(d){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Qn=Jn}else Qn=!1;Xn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Zn=Gn=null)}function nr(e){if("value"===e.propertyName&&$n(Zn)){var t=[];if(qn(t,Zn,e,Ae(e)),e=Yn,Be)e(t);else{Be=!0;try{Re(e,t)}finally{Be=!1,Ue()}}}}function rr(e,t,n){"focusin"===e?(tr(),Zn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Zn)}function ar(e,t){if("click"===e)return $n(t)}function or(e,t){if("input"===e||"change"===e)return $n(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!sr(e[n[r]],t[n[r]]))return!1;return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=cr(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=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){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 hr(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 mr=d&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==J(r)||(r="selectionStart"in(r=vr)&&hr(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},gr&&lr(gr,r)||(gr=r,0<(r=Lr(yr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}It("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),It("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),It(Lt,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),kr=0;kr<xr.length;kr++)Rt.set(xr[kr],0);f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="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(_r));function Sr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,o,u,l){if($e.apply(this,arguments),We){if(!We)throw Error(s(198));var c=qe;We=!1,qe=null,Ge||(Ge=!0,Ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Ar(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==a&&i.isPropagationStopped())break e;Sr(i,s,l),a=u}else for(o=0;o<r.length;o++){if(u=(s=r[o]).instance,l=s.currentTarget,s=s.listener,u!==a&&i.isPropagationStopped())break e;Sr(i,s,l),a=u}}}if(Ge)throw e=Ze,Ge=!1,Ze=null,e}function Or(e,t){var n=ri(t),r=e+"__bubble";n.has(r)||(Tr(t,e,2,!1),n.add(r))}var Cr="_reactListening"+Math.random().toString(36).slice(2);function jr(e){e[Cr]||(e[Cr]=!0,u.forEach((function(t){Er.has(t)||Nr(t,!1,e,null),Nr(t,!0,e,null)})))}function Nr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Er.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ri(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),Tr(a,e,i,t),o.add(s))}function Tr(e,t,n,r){var i=Rt.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Xt;break;default:i=Qt}n=i.bind(null,t,n,e),i=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Pr(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=Jr(s)))return;if(5===(u=o.tag)||6===u){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(De)return e();De=!0;try{Me(e,t,n)}finally{De=!1,Ue()}}((function(){var r=a,i=Ae(n),o=[];e:{var s=Pt.get(e);if(void 0!==s){var u=pn,l=e;switch(e){case"keypress":if(0===an(n))break e;case"keydown":case"keyup":u=Cn;break;case"focusin":l="focus",u=bn;break;case"focusout":l="blur",u=bn;break;case"beforeblur":case"afterblur":u=bn;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=yn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Nn;break;case Ct:case jt:case Nt:u=wn;break;case Tt:u=Tn;break;case"scroll":u=mn;break;case"wheel":u=Pn;break;case"copy":case"cut":case"paste":u=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=jn}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=Fe(h,d))&&c.push(Rr(h,m,p))),f)break;h=h.return}0<c.length&&(s=new u(s,l,null,n,i),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(l=n.relatedTarget||n.fromElement)||!Jr(l)&&!l[Xr])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?Jr(l):null)&&(l!==(f=Ke(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=yn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=jn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?s:ti(u),p=null==l?s:ti(l),(s=new c(m,h+"leave",u,n,i)).target=f,s.relatedTarget=p,m=null,Jr(i)===r&&((c=new c(d,h+"enter",l,n,i)).target=p,c.relatedTarget=f,m=c),f=m,u&&l)e:{for(d=l,h=0,p=c=u;p;p=Ir(p))h++;for(p=0,m=d;m;m=Ir(m))p++;for(;0<h-p;)c=Ir(c),h--;for(;0<p-h;)d=Ir(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(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?ti(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=Kn;else if(Wn(s))if(Xn)v=or;else{v=ir;var y=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ar);switch(v&&(v=v(e,r))?qn(o,v,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ae(s,"number",s.value)),y=r?ti(r):window,e){case"focusin":(Wn(y)||"true"===y.contentEditable)&&(vr=y,yr=r,gr=null);break;case"focusout":gr=yr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(o,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(o,n,i)}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 Vn?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Bn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(g=rn()):(tn="value"in(en=i)?en.value:en.textContent,Vn=!0)),0<(y=Lr(r,b)).length&&(b=new kn(b,e,null,n,i),o.push({event:b,listeners:y}),(g||null!==(g=zn(n)))&&(b.data=g))),(g=Mn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Un=!0,Dn);case"textInput":return(e=t.data)===Dn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Ln&&Fn(e,t)?(e=rn(),nn=tn=en=null,Vn=!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 Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Lr(r,"onBeforeInput")).length&&(i=new kn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=g)}Ar(o,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Fe(e,n))&&r.unshift(Rr(e,a,i)),null!=(a=Fe(e,t))&&r.push(Rr(e,a,i))),e=e.return}return r}function Ir(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Mr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=Fe(n,a))&&o.unshift(Rr(n,u,s)):i||null!=(u=Fe(n,a))&&o.push(Rr(n,u,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Br(){}var Dr=null,Ur=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function zr(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 Vr="function"==typeof setTimeout?setTimeout:void 0,Hr="function"==typeof clearTimeout?clearTimeout:void 0;function Wr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Gr(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 Zr=0,Yr=Math.random().toString(36).slice(2),$r="__reactFiber$"+Yr,Kr="__reactProps$"+Yr,Xr="__reactContainer$"+Yr,Qr="__reactEvents$"+Yr;function Jr(e){var t=e[$r];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xr]||n[$r]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[$r])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function ei(e){return!(e=e[$r]||e[Xr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ti(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function ni(e){return e[Kr]||null}function ri(e){var t=e[Qr];return void 0===t&&(t=e[Qr]=new Set),t}var ii=[],ai=-1;function oi(e){return{current:e}}function si(e){0>ai||(e.current=ii[ai],ii[ai]=null,ai--)}function ui(e,t){ai++,ii[ai]=e.current,e.current=t}var li={},ci=oi(li),fi=oi(!1),di=li;function pi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function hi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function mi(){si(fi),si(ci)}function vi(e,t,n){if(ci.current!==li)throw Error(s(168));ui(ci,t),ui(fi,n)}function yi(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(s(108,Y(t)||"Unknown",i));return a({},n,r)}function gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,di=ci.current,ui(ci,e),ui(fi,fi.current),!0}function bi(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=yi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,si(fi),si(ci),ui(ci,e)):si(fi),ui(fi,n)}var wi=null,xi=null,ki=o.unstable_runWithPriority,_i=o.unstable_scheduleCallback,Ei=o.unstable_cancelCallback,Si=o.unstable_shouldYield,Ai=o.unstable_requestPaint,Oi=o.unstable_now,Ci=o.unstable_getCurrentPriorityLevel,ji=o.unstable_ImmediatePriority,Ni=o.unstable_UserBlockingPriority,Ti=o.unstable_NormalPriority,Pi=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,Li={},Ii=void 0!==Ai?Ai:function(){},Mi=null,Bi=null,Di=!1,Ui=Oi(),Fi=1e4>Ui?Oi:function(){return Oi()-Ui};function zi(){switch(Ci()){case ji:return 99;case Ni:return 98;case Ti:return 97;case Pi:return 96;case Ri:return 95;default:throw Error(s(332))}}function Vi(e){switch(e){case 99:return ji;case 98:return Ni;case 97:return Ti;case 96:return Pi;case 95:return Ri;default:throw Error(s(332))}}function Hi(e,t){return e=Vi(e),ki(e,t)}function Wi(e,t,n){return e=Vi(e),_i(e,t,n)}function qi(){if(null!==Bi){var e=Bi;Bi=null,Ei(e)}Gi()}function Gi(){if(!Di&&null!==Mi){Di=!0;var e=0;try{var t=Mi;Hi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Mi=null}catch(t){throw null!==Mi&&(Mi=Mi.slice(e+1)),_i(ji,qi),t}finally{Di=!1}}}var Zi=k.ReactCurrentBatchConfig;function Yi(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 $i=oi(null),Ki=null,Xi=null,Qi=null;function Ji(){Qi=Xi=Ki=null}function ea(e){var t=$i.current;si($i),e.type._context._currentValue=t}function ta(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 na(e,t){Ki=e,Qi=Xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Lo=!0),e.firstContext=null)}function ra(e,t){if(Qi!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Qi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xi){if(null===Ki)throw Error(s(308));Xi=t,Ki.dependencies={lanes:0,firstContext:t,responders:null}}else Xi=Xi.next=t;return e._currentValue}var ia=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function sa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ua(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 la(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ca(e,t,n,r){var i=e.updateQueue;ia=!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:ia=!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 fa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(s(191,i));i.call(r)}}}var da=(new i.Component).refs;function pa(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 ha={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=su(),i=uu(e),a=sa(r,i);a.payload=t,null!=n&&(a.callback=n),ua(e,a),lu(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=su(),i=uu(e),a=sa(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),ua(e,a),lu(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=su(),r=uu(e),i=sa(n,r);i.tag=2,null!=t&&(i.callback=t),ua(e,i),lu(e,r,n)}};function ma(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,a))}function va(e,t,n){var r=!1,i=li,a=t.contextType;return"object"==typeof a&&null!==a?a=ra(a):(i=hi(t)?di:ci.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?pi(e,i):li),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ha,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ya(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ha.enqueueReplaceState(t,t.state,null)}function ga(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=da,aa(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=ra(a):(a=hi(t)?di:ci.current,i.context=pi(e,a)),ca(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(pa(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ha.enqueueReplaceState(i,i.state,null),ca(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var ba=Array.isArray;function wa(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(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===da&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function xa(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ka(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 i(e,t){return(e=zu(e,t)).index=0,e.sibling=null,e}function a(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 o(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=qu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=wa(e,t,n),r.return=e,r):((r=Vu(n.type,n.key,n.props,null,e.mode,r)).ref=wa(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=Gu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Hu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=qu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Vu(t.type,t.key,t.props,null,e.mode,n)).ref=wa(e,null,t),n.return=e,n;case E:return(t=Gu(t,e.mode,n)).return=e,t}if(ba(t)||H(t))return(t=Hu(t,e.mode,n,null)).return=e,t;xa(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?n.type===S?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(ba(n)||H(n))return null!==i?null:f(e,t,n,r,null);xa(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ba(r)||H(r))return f(t,e=e.get(n)||null,r,i,null);xa(t,r)}return null}function m(i,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(i,f,s[m],u);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(i,f),o=a(y,o,m),null===c?l=y:c.sibling=y,c=y,f=v}if(m===s.length)return n(i,f),l;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],u))&&(o=a(f,o,m),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);m<s.length;m++)null!==(v=h(f,i,m,s[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),l}function v(i,o,u,l){var c=H(u);if("function"!=typeof c)throw Error(s(150));if(null==(u=c.call(u)))throw Error(s(151));for(var f=c=null,m=o,v=o=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(i,m,g.value,l);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),o=a(b,o,v),null===f?c=b:f.sibling=b,f=b,m=y}if(g.done)return n(i,m),c;if(null===m){for(;!g.done;v++,g=u.next())null!==(g=d(i,g.value,l))&&(o=a(g,o,v),null===f?c=g:f.sibling=g,f=g);return c}for(m=r(i,m);!g.done;v++,g=u.next())null!==(g=h(m,i,v,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),o=a(g,o,v),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,a,u){var l="object"==typeof a&&null!==a&&a.type===S&&null===a.key;l&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case _:e:{for(c=a.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(a.type===S){n(e,l.sibling),(r=i(l,a.props.children)).return=e,e=r;break e}}else if(l.elementType===a.type){n(e,l.sibling),(r=i(l,a.props)).ref=wa(e,l,a),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}a.type===S?((r=Hu(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=Vu(a.type,a.key,a.props,null,e.mode,u)).ref=wa(e,r,a),u.return=e,e=u)}return o(e);case E:e:{for(l=a.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Gu(a,e.mode,u)).return=e,e=r}return o(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=qu(a,e.mode,u)).return=e,e=r),o(e);if(ba(a))return m(e,r,a,u);if(H(a))return v(e,r,a,u);if(c&&xa(e,a),void 0===a&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,Y(e.type)||"Component"))}return n(e,r)}}var _a=ka(!0),Ea=ka(!1),Sa={},Aa=oi(Sa),Oa=oi(Sa),Ca=oi(Sa);function ja(e){if(e===Sa)throw Error(s(174));return e}function Na(e,t){switch(ui(Ca,t),ui(Oa,e),ui(Aa,Sa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}si(Aa),ui(Aa,t)}function Ta(){si(Aa),si(Oa),si(Ca)}function Pa(e){ja(Ca.current);var t=ja(Aa.current),n=he(t,e.type);t!==n&&(ui(Oa,e),ui(Aa,n))}function Ra(e){Oa.current===e&&(si(Aa),si(Oa))}var La=oi(0);function Ia(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 Ma=null,Ba=null,Da=!1;function Ua(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 Fa(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 za(e){if(Da){var t=Ba;if(t){var n=t;if(!Fa(e,t)){if(!(t=qr(n.nextSibling))||!Fa(e,t))return e.flags=-1025&e.flags|2,Da=!1,void(Ma=e);Ua(Ma,n)}Ma=e,Ba=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Da=!1,Ma=e}}function Va(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ma=e}function Ha(e){if(e!==Ma)return!1;if(!Da)return Va(e),Da=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!zr(t,e.memoizedProps))for(t=Ba;t;)Ua(e,t),t=qr(t.nextSibling);if(Va(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ba=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ba=null}}else Ba=Ma?qr(e.stateNode.nextSibling):null;return!0}function Wa(){Ba=Ma=null,Da=!1}var qa=[];function Ga(){for(var e=0;e<qa.length;e++)qa[e]._workInProgressVersionPrimary=null;qa.length=0}var Za=k.ReactCurrentDispatcher,Ya=k.ReactCurrentBatchConfig,$a=0,Ka=null,Xa=null,Qa=null,Ja=!1,eo=!1;function to(){throw Error(s(321))}function no(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ro(e,t,n,r,i,a){if($a=a,Ka=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Za.current=null===e||null===e.memoizedState?No:To,e=n(r,i),eo){a=0;do{if(eo=!1,!(25>a))throw Error(s(301));a+=1,Qa=Xa=null,t.updateQueue=null,Za.current=Po,e=n(r,i)}while(eo)}if(Za.current=jo,t=null!==Xa&&null!==Xa.next,$a=0,Qa=Xa=Ka=null,Ja=!1,t)throw Error(s(300));return e}function io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qa?Ka.memoizedState=Qa=e:Qa=Qa.next=e,Qa}function ao(){if(null===Xa){var e=Ka.alternate;e=null!==e?e.memoizedState:null}else e=Xa.next;var t=null===Qa?Ka.memoizedState:Qa.next;if(null!==t)Qa=t,Xa=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Xa=e).memoizedState,baseState:Xa.baseState,baseQueue:Xa.baseQueue,queue:Xa.queue,next:null},null===Qa?Ka.memoizedState=Qa=e:Qa=Qa.next=e}return Qa}function oo(e,t){return"function"==typeof t?t(e):t}function so(e){var t=ao(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=Xa,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=o=a=null,l=i;do{var c=l.lane;if(($a&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?(o=u=f,a=r):u=u.next=f,Ka.lanes|=c,Ms|=c}l=l.next}while(null!==l&&l!==i);null===u?a=r:u.next=o,sr(r,t.memoizedState)||(Lo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function uo(e){var t=ao(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{a=e(a,o.action),o=o.next}while(o!==i);sr(a,t.memoizedState)||(Lo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function lo(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=($a&e)===e)&&(t._workInProgressVersionPrimary=r,qa.push(t))),e)return n(t._source);throw qa.push(t),Error(s(350))}function co(e,t,n,r){var i=Cs;if(null===i)throw Error(s(349));var a=t._getVersion,o=a(t._source),u=Za.current,l=u.useState((function(){return lo(i,t,n)})),c=l[1],f=l[0];l=Qa;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Ka;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!sr(o,e)){e=n(t._source),sr(f,e)||(c(e),e=uu(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,s=e;0<s;){var u=31-Wt(s),l=1<<u;r[u]|=e,s&=~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=uu(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),sr(h,n)&&sr(m,t)&&sr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:f}).dispatch=c=Co.bind(null,Ka,e),l.queue=e,l.baseQueue=null,f=lo(i,t,n),l.memoizedState=l.baseState=f),f}function fo(e,t,n){return co(ao(),e,t,n)}function po(e){var t=io();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e}).dispatch=Co.bind(null,Ka,e),[t.memoizedState,e]}function ho(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ka.updateQueue)?(t={lastEffect:null},Ka.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 mo(e){return e={current:e},io().memoizedState=e}function vo(){return ao().memoizedState}function yo(e,t,n,r){var i=io();Ka.flags|=e,i.memoizedState=ho(1|t,n,void 0,void 0===r?null:r)}function go(e,t,n,r){var i=ao();r=void 0===r?null:r;var a=void 0;if(null!==Xa){var o=Xa.memoizedState;if(a=o.destroy,null!==r&&no(r,o.deps))return void ho(t,n,a,r)}Ka.flags|=e,i.memoizedState=ho(1|t,n,a,r)}function bo(e,t){return yo(516,4,e,t)}function wo(e,t){return go(516,4,e,t)}function xo(e,t){return go(4,2,e,t)}function ko(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 _o(e,t,n){return n=null!=n?n.concat([e]):null,go(4,2,ko.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&&no(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ao(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oo(e,t){var n=zi();Hi(98>n?98:n,(function(){e(!0)})),Hi(97<n?97:n,(function(){var n=Ya.transition;Ya.transition=1;try{e(!1),t()}finally{Ya.transition=n}}))}function Co(e,t,n){var r=su(),i=uu(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Ka||null!==o&&o===Ka)eo=Ja=!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(a.eagerReducer=o,a.eagerState=u,sr(u,s))return}catch(e){}lu(e,i,r)}}var jo={readContext:ra,useCallback:to,useContext:to,useEffect:to,useImperativeHandle:to,useLayoutEffect:to,useMemo:to,useReducer:to,useRef:to,useState:to,useDebugValue:to,useDeferredValue:to,useTransition:to,useMutableSource:to,useOpaqueIdentifier:to,unstable_isNewReconciler:!1},No={readContext:ra,useCallback:function(e,t){return io().memoizedState=[e,void 0===t?null:t],e},useContext:ra,useEffect:bo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,yo(4,2,ko.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=io();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=io();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=Co.bind(null,Ka,e),[r.memoizedState,e]},useRef:mo,useState:po,useDebugValue:Eo,useDeferredValue:function(e){var t=po(e),n=t[0],r=t[1];return bo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=po(!1),t=e[0];return mo(e=Oo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=io();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},co(r,e,t,n)},useOpaqueIdentifier:function(){if(Da){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Zr++).toString(36))),Error(s(355))})),n=po(t)[1];return 0==(2&Ka.mode)&&(Ka.flags|=516,ho(5,(function(){n("r:"+(Zr++).toString(36))}),void 0,null)),t}return po(t="r:"+(Zr++).toString(36)),t},unstable_isNewReconciler:!1},To={readContext:ra,useCallback:So,useContext:ra,useEffect:wo,useImperativeHandle:_o,useLayoutEffect:xo,useMemo:Ao,useReducer:so,useRef:vo,useState:function(){return so(oo)},useDebugValue:Eo,useDeferredValue:function(e){var t=so(oo),n=t[0],r=t[1];return wo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=so(oo)[0];return[vo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return so(oo)[0]},unstable_isNewReconciler:!1},Po={readContext:ra,useCallback:So,useContext:ra,useEffect:wo,useImperativeHandle:_o,useLayoutEffect:xo,useMemo:Ao,useReducer:uo,useRef:vo,useState:function(){return uo(oo)},useDebugValue:Eo,useDeferredValue:function(e){var t=uo(oo),n=t[0],r=t[1];return wo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=uo(oo)[0];return[vo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return uo(oo)[0]},unstable_isNewReconciler:!1},Ro=k.ReactCurrentOwner,Lo=!1;function Io(e,t,n,r){t.child=null===e?Ea(t,null,n,r):_a(t,e.child,n,r)}function Mo(e,t,n,r,i){n=n.render;var a=t.ref;return na(t,i),r=ro(e,t,n,r,a,i),null===e||Lo?(t.flags|=1,Io(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,es(e,t,i))}function Bo(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||Fu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Vu(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Do(e,t,o,r,i,a))}return o=e.child,0==(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)?es(e,t,a):(t.flags|=1,(e=zu(o,r)).ref=t.ref,e.return=t,t.child=e)}function Do(e,t,n,r,i,a){if(null!==e&&lr(e.memoizedProps,r)&&e.ref===t.ref){if(Lo=!1,0==(a&i))return t.lanes=e.lanes,es(e,t,a);0!=(16384&e.flags)&&(Lo=!0)}return zo(e,t,n,r,a)}function Uo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},yu(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},yu(t,e),null;t.memoizedState={baseLanes:0},yu(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,yu(t,r);return Io(e,t,i,n),t.child}function Fo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function zo(e,t,n,r,i){var a=hi(n)?di:ci.current;return a=pi(t,a),na(t,i),n=ro(e,t,n,r,a,i),null===e||Lo?(t.flags|=1,Io(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,es(e,t,i))}function Vo(e,t,n,r,i){if(hi(n)){var a=!0;gi(t)}else a=!1;if(na(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),va(t,n,r),ga(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,l=n.contextType;l="object"==typeof l&&null!==l?ra(l):pi(t,l=hi(n)?di:ci.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)&&ya(t,o,r,l),ia=!1;var d=t.memoizedState;o.state=d,ca(t,r,o,i),u=t.memoizedState,s!==r||d!==u||fi.current||ia?("function"==typeof c&&(pa(t,n,c,r),u=t.memoizedState),(s=ia||ma(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,oa(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Yi(t.type,s),o.props=l,f=t.pendingProps,d=o.context,u="object"==typeof(u=n.contextType)&&null!==u?ra(u):pi(t,u=hi(n)?di:ci.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)&&ya(t,o,r,u),ia=!1,d=t.memoizedState,o.state=d,ca(t,r,o,i);var h=t.memoizedState;s!==f||d!==h||fi.current||ia?("function"==typeof p&&(pa(t,n,p,r),h=t.memoizedState),(l=ia||ma(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 Ho(e,t,n,r,a,i)}function Ho(e,t,n,r,i,a){Fo(e,t);var o=0!=(64&t.flags);if(!r&&!o)return i&&bi(t,n,!1),es(e,t,a);r=t.stateNode,Ro.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=_a(t,e.child,null,a),t.child=_a(t,null,s,a)):Io(e,t,s,a),t.memoizedState=r.state,i&&bi(t,n,!0),t.child}function Wo(e){var t=e.stateNode;t.pendingContext?vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vi(0,t.context,!1),Na(e,t.containerInfo)}var qo,Go,Zo,Yo={dehydrated:null,retryLane:0};function $o(e,t,n){var r,i=t.pendingProps,a=La.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ui(La,1&a),null===e?(void 0!==i.fallback&&za(t),e=i.children,a=i.fallback,o?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Yo,e):"number"==typeof i.unstable_expectedLoadTime?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Yo,t.lanes=33554432,e):((n=Wu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=function(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0==(2&a)&&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=zu(o,s),null!==e?r=zu(e,r):(r=Hu(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Yo,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=zu(i,{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,i.children,n),t.memoizedState=null,n))}function Ko(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Wu(t,i,0,null),n=Hu(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Xo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ta(e.return,t)}function Qo(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function Jo(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Io(e,t,r.children,n),0!=(2&(r=La.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&&Xo(e,n);else if(19===e.tag)Xo(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(ui(La,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ia(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Qo(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ia(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Qo(t,!0,n,null,a,t.lastEffect);break;case"together":Qo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function es(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(s(153));if(null!==t.child){for(n=zu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ts(e,t){if(!Da)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 ns(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 hi(t.type)&&mi(),null;case 3:return Ta(),si(fi),si(ci),Ga(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ha(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ra(t);var i=ja(Ca.current);if(n=t.type,null!==e&&null!=t.stateNode)Go(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(s(166));return null}if(e=ja(Aa.current),Ha(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[$r]=t,r[Kr]=o,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<_r.length;e++)Or(_r[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":te(r,o),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Or("invalid",r);break;case"textarea":le(r,o),Or("invalid",r)}for(var u in Ee(n,o),e=null,o)o.hasOwnProperty(u)&&(i=o[u],"children"===u?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(u)&&null!=i&&"onScroll"===u&&Or("scroll",r));switch(n){case"input":X(r),ie(r,o,!0);break;case"textarea":X(r),fe(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=Br)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===i.nodeType?i:i.ownerDocument,e===de&&(e=pe(n)),e===de?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[$r]=t,e[Kr]=r,qo(e,t),t.stateNode=e,u=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<_r.length;i++)Or(_r[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":te(e,r),i=ee(e,r),Or("invalid",e);break;case"option":i=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=a({},r,{value:void 0}),Or("invalid",e);break;case"textarea":le(e,r),i=ue(e,r),Or("invalid",e);break;default:i=r}Ee(n,i);var c=i;for(o in c)if(c.hasOwnProperty(o)){var f=c[o];"style"===o?ke(e,f):"dangerouslySetInnerHTML"===o?null!=(f=f?f.__html:void 0)&&ye(e,f):"children"===o?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(l.hasOwnProperty(o)?null!=f&&"onScroll"===o&&Or("scroll",e):null!=f&&x(e,o,f,u))}switch(n){case"input":X(e),ie(e,r,!1);break;case"textarea":X(e),fe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+$(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?se(e,!!r.multiple,o,!1):null!=r.defaultValue&&se(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Br)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Zo(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));n=ja(Ca.current),ja(Aa.current),Ha(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 si(La),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ha(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&La.current)?0===Rs&&(Rs=3):(0!==Rs&&3!==Rs||(Rs=4),null===Cs||0==(134217727&Ms)&&0==(134217727&Bs)||pu(Cs,Ns))),(r||n)&&(t.flags|=4),null);case 4:return Ta(),null===e&&jr(t.stateNode.containerInfo),null;case 10:return ea(t),null;case 19:if(si(La),null===(r=t.memoizedState))return null;if(o=0!=(64&t.flags),null===(u=r.rendering))if(o)ts(r,!1);else{if(0!==Rs||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Ia(e))){for(t.flags|=64,ts(r,!1),null!==(o=u.updateQueue)&&(t.updateQueue=o,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(u=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ui(La,1&La.current|2),t.child}e=e.sibling}null!==r.tail&&Fi()>zs&&(t.flags|=64,o=!0,ts(r,!1),t.lanes=33554432)}else{if(!o)if(null!==(e=Ia(u))){if(t.flags|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ts(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Da)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>zs&&1073741824!==n&&(t.flags|=64,o=!0,ts(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=La.current,ui(La,o?1&t|2:1&t),n):null;case 23:case 24:return gu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function rs(e){switch(e.tag){case 1:hi(e.type)&&mi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ta(),si(fi),si(ci),Ga(),0!=(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Ra(e),null;case 13:return si(La),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return si(La),null;case 4:return Ta(),null;case 10:return ea(e),null;case 23:case 24:return gu(),null;default:return null}}function is(e,t){try{var n="",r=t;do{n+=Z(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function as(e,t){try{r.error(t.value)}catch(e){setTimeout((function(){throw e}))}}qo=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}},Go=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ja(Aa.current);var o,s=null;switch(n){case"input":i=ee(e,i),r=ee(e,r),s=[];break;case"option":i=oe(e,i),r=oe(e,r),s=[];break;case"select":i=a({},i,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":i=ue(e,i),r=ue(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Br)}for(f in Ee(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var u=i[f];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(l.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&u[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,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(l.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Or("scroll",e),s||u===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)}},Zo=function(e,t,n,r){n!==r&&(t.flags|=4)};var os="function"==typeof WeakMap?WeakMap:Map;function ss(e,t,n){(n=sa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qs||(qs=!0,Gs=r),as(0,t)},n}function us(e,t,n){(n=sa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return as(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Zs?Zs=new Set([this]):Zs.add(this),as(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ls="function"==typeof WeakSet?WeakSet:Set;function cs(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Iu(e,t)}else t.current=null}function fs(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:Yi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(t.stateNode.containerInfo))}throw Error(s(163))}function ds(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 i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Pu(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:Yi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fa(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}fa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(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&&kt(n)))))}throw Error(s(163))}function ps(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 i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=xe("display",i)}}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 hs(e,t){if(xi&&"function"==typeof xi.onCommitFiberUnmount)try{xi.onCommitFiberUnmount(wi,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,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Pu(t,n);else{r=t;try{i()}catch(e){Iu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(cs(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Iu(t,e)}break;case 5:cs(t);break;case 4:ws(e,t)}}function ms(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 vs(e){return 5===e.tag||3===e.tag||4===e.tag}function ys(e){e:{for(var t=e.return;null!==t;){if(vs(t))break e;t=t.return}throw Error(s(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(s(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vs(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?gs(e,n,t):bs(e,n,t)}function gs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?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=Br));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,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(bs(e,t,n),e=e.sibling;null!==e;)bs(e,t,n),e=e.sibling}function ws(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(s(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var o=e,u=i,l=u;;)if(hs(o,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?(o=n,u=i.stateNode,8===o.nodeType?o.parentNode.removeChild(u):o.removeChild(u)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function xs(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 i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(n,r),Se(e,i),t=Se(e,r),i=0;i<a.length;i+=2){var o=a[i],u=a[i+1];"style"===o?ke(n,u):"dangerouslySetInnerHTML"===o?ye(n,u):"children"===o?ge(n,u):x(n,o,u,t)}switch(e){case"input":re(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?se(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?se(n,!!r.multiple,r.defaultValue,!0):se(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Fs=Fi(),ps(t.child,!0)),void ks(t);case 19:return void ks(t);case 23:case 24:return void ps(t,null!==t.memoizedState)}throw Error(s(163))}function ks(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ls),t.forEach((function(t){var r=Bu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function _s(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Es=Math.ceil,Ss=k.ReactCurrentDispatcher,As=k.ReactCurrentOwner,Os=0,Cs=null,js=null,Ns=0,Ts=0,Ps=oi(0),Rs=0,Ls=null,Is=0,Ms=0,Bs=0,Ds=0,Us=null,Fs=0,zs=1/0;function Vs(){zs=Fi()+500}var Hs,Ws=null,qs=!1,Gs=null,Zs=null,Ys=!1,$s=null,Ks=90,Xs=[],Qs=[],Js=null,eu=0,tu=null,nu=-1,ru=0,iu=0,au=null,ou=!1;function su(){return 0!=(48&Os)?Fi():-1!==nu?nu:nu=Fi()}function uu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===zi()?1:2;if(0===ru&&(ru=Is),0!==Zi.transition){0!==iu&&(iu=null!==Us?Us.pendingLanes:0),e=ru;var t=4186112&~iu;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=zi(),e=Ft(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),ru)}function lu(e,t,n){if(50<eu)throw eu=0,tu=null,Error(s(185));if(null===(e=cu(e,t)))return null;Ht(e,t,n),e===Cs&&(Bs|=t,4===Rs&&pu(e,Ns));var r=zi();1===t?0!=(8&Os)&&0==(48&Os)?hu(e):(fu(e,n),0===Os&&(Vs(),qi())):(0==(4&Os)||98!==r&&99!==r||(null===Js?Js=new Set([e]):Js.add(e)),fu(e,n)),Us=e}function cu(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 fu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var u=31-Wt(o),l=1<<u,c=a[u];if(-1===c){if(0==(l&r)||0!=(l&i)){c=t,Bt(l);var f=Mt;a[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);o&=~l}if(r=Dt(e,e===Cs?Ns:0),t=Mt,0===r)null!==n&&(n!==Li&&Ei(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Li&&Ei(n)}15===t?(n=hu.bind(null,e),null===Mi?(Mi=[n],Bi=_i(ji,Gi)):Mi.push(n),n=Li):14===t?n=Wi(99,hu.bind(null,e)):n=Wi(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(s(358,e))}}(t),du.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function du(e){if(nu=-1,iu=ru=0,0!=(48&Os))throw Error(s(327));var t=e.callbackNode;if(Nu()&&e.callbackNode!==t)return null;var n=Dt(e,e===Cs?Ns:0);if(0===n)return null;var r=n,i=Os;Os|=16;var a=xu();for(Cs===e&&Ns===r||(Vs(),bu(e,r));;)try{Eu();break}catch(t){wu(e,t)}if(Ji(),Ss.current=a,Os=i,null!==js?r=0:(Cs=null,Ns=0,r=Rs),0!=(Is&Bs))bu(e,0);else if(0!==r){if(2===r&&(Os|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=Ut(e))&&(r=ku(e,n))),1===r)throw t=Ls,bu(e,0),pu(e,n),fu(e,Fi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(s(345));case 2:case 5:Ou(e);break;case 3:if(pu(e,n),(62914560&n)===n&&10<(r=Fs+500-Fi())){if(0!==Dt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){su(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Vr(Ou.bind(null,e),r);break}Ou(e);break;case 4:if(pu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var o=31-Wt(n);a=1<<o,(o=r[o])>i&&(i=o),n&=~a}if(n=i,10<(n=(120>(n=Fi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Es(n/1960))-n)){e.timeoutHandle=Vr(Ou.bind(null,e),n);break}Ou(e);break;default:throw Error(s(329))}}return fu(e,Fi()),e.callbackNode===t?du.bind(null,e):null}function pu(e,t){for(t&=~Ds,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function hu(e){if(0!=(48&Os))throw Error(s(327));if(Nu(),e===Cs&&0!=(e.expiredLanes&Ns)){var t=Ns,n=ku(e,t);0!=(Is&Bs)&&(n=ku(e,t=Dt(e,t)))}else n=ku(e,t=Dt(e,0));if(0!==e.tag&&2===n&&(Os|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=Ut(e))&&(n=ku(e,t))),1===n)throw n=Ls,bu(e,0),pu(e,t),fu(e,Fi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ou(e),fu(e,Fi()),null}function mu(e,t){var n=Os;Os|=1;try{return e(t)}finally{0===(Os=n)&&(Vs(),qi())}}function vu(e,t){var n=Os;Os&=-2,Os|=8;try{return e(t)}finally{0===(Os=n)&&(Vs(),qi())}}function yu(e,t){ui(Ps,Ts),Ts|=t,Is|=t}function gu(){Ts=Ps.current,si(Ps)}function bu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hr(n)),null!==js)for(n=js.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&mi();break;case 3:Ta(),si(fi),si(ci),Ga();break;case 5:Ra(r);break;case 4:Ta();break;case 13:case 19:si(La);break;case 10:ea(r);break;case 23:case 24:gu()}n=n.return}Cs=e,js=zu(e.current,null),Ns=Ts=Is=t,Rs=0,Ls=null,Ds=Bs=Ms=0}function wu(e,t){for(;;){var n=js;try{if(Ji(),Za.current=jo,Ja){for(var r=Ka.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Ja=!1}if($a=0,Qa=Xa=Ka=null,eo=!1,As.current=null,null===n||null===n.return){Rs=1,Ls=t,js=null;break}e:{var a=e,o=n.return,s=n,u=t;if(t=Ns,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&La.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=sa(-1,1);g.tag=2,ua(s,g)}s.lanes|=1;break e}u=void 0,s=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new os,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,a,l,s);l.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((Y(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!==Rs&&(Rs=2),u=is(u,s),d=o;do{switch(d.tag){case 3:a=u,d.flags|=4096,t&=-t,d.lanes|=t,la(d,ss(0,a,t));break e;case 1:a=u;var x=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof x.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Zs||!Zs.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,la(d,us(d,a,t));break e}}d=d.return}while(null!==d)}Au(n)}catch(e){t=e,js===n&&null!==n&&(js=n=n.return);continue}break}}function xu(){var e=Ss.current;return Ss.current=jo,null===e?jo:e}function ku(e,t){var n=Os;Os|=16;var r=xu();for(Cs===e&&Ns===t||bu(e,t);;)try{_u();break}catch(t){wu(e,t)}if(Ji(),Os=n,Ss.current=r,null!==js)throw Error(s(261));return Cs=null,Ns=0,Rs}function _u(){for(;null!==js;)Su(js)}function Eu(){for(;null!==js&&!Si();)Su(js)}function Su(e){var t=Hs(e.alternate,e,Ts);e.memoizedProps=e.pendingProps,null===t?Au(e):js=t,As.current=null}function Au(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ns(n,t,Ts)))return void(js=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ts)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.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=rs(t)))return n.flags&=2047,void(js=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(js=t);js=t=e}while(null!==t);0===Rs&&(Rs=5)}function Ou(e){var t=zi();return Hi(99,Cu.bind(null,e,t)),null}function Cu(e,t){do{Nu()}while(null!==$s);if(0!=(48&Os))throw Error(s(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,u=e.expirationTimes;0<a;){var l=31-Wt(a),c=1<<l;i[l]=0,o[l]=-1,u[l]=-1,a&=~c}if(null!==Js&&0==(24&r)&&Js.has(e)&&Js.delete(e),e===Cs&&(js=Cs=null,Ns=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Os,Os|=32,As.current=null,Dr=$t,hr(o=pr())){if("selectionStart"in o)u={start:o.selectionStart,end:o.selectionEnd};else e:if(u=(u=o.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,a=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=o,y=null;t:for(;;){for(var g;v!==u||0!==a&&3!==v.nodeType||(d=f+a),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===o)break t;if(y===u&&++h===a&&(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:o,selectionRange:u},$t=!1,au=null,ou=!1,Ws=r;do{try{ju()}catch(e){if(null===Ws)throw Error(s(330));Iu(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);au=null,Ws=r;do{try{for(o=e;null!==Ws;){var b=Ws.flags;if(16&b&&ge(Ws.stateNode,""),128&b){var w=Ws.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:ys(Ws),Ws.flags&=-3;break;case 6:ys(Ws),Ws.flags&=-3,xs(Ws.alternate,Ws);break;case 1024:Ws.flags&=-1025;break;case 1028:Ws.flags&=-1025,xs(Ws.alternate,Ws);break;case 4:xs(Ws.alternate,Ws);break;case 8:ws(o,u=Ws);var k=u.alternate;ms(u),null!==k&&ms(k)}Ws=Ws.nextEffect}}catch(e){if(null===Ws)throw Error(s(330));Iu(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);if(x=Ur,w=pr(),b=x.focusedElem,o=x.selectionRange,w!==b&&b&&b.ownerDocument&&dr(b.ownerDocument.documentElement,b)){null!==o&&hr(b)&&(w=o.start,void 0===(x=o.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(o.start,u),o=void 0===o.end?k:Math.min(o.end,u),!x.extend&&k>o&&(u=o,o=k,k=u),u=fr(b,k),a=fr(b,o),u&&a&&(1!==x.rangeCount||x.anchorNode!==u.node||x.anchorOffset!==u.offset||x.focusNode!==a.node||x.focusOffset!==a.offset)&&((w=w.createRange()).setStart(u.node,u.offset),x.removeAllRanges(),k>o?(x.addRange(w),x.extend(a.node,a.offset)):(w.setEnd(a.node,a.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=!!Dr,Ur=Dr=null,e.current=n,Ws=r;do{try{for(b=e;null!==Ws;){var _=Ws.flags;if(36&_&&ds(b,Ws.alternate,Ws),128&_){w=void 0;var E=Ws.ref;if(null!==E){var S=Ws.stateNode;Ws.tag,w=S,"function"==typeof E?E(w):E.current=w}}Ws=Ws.nextEffect}}catch(e){if(null===Ws)throw Error(s(330));Iu(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);Ws=null,Ii(),Os=i}else e.current=n;if(Ys)Ys=!1,$s=e,Ks=t;else for(Ws=r;null!==Ws;)t=Ws.nextEffect,Ws.nextEffect=null,8&Ws.flags&&((_=Ws).sibling=null,_.stateNode=null),Ws=t;if(0===(r=e.pendingLanes)&&(Zs=null),1===r?e===tu?eu++:(eu=0,tu=e):eu=0,n=n.stateNode,xi&&"function"==typeof xi.onCommitFiberRoot)try{xi.onCommitFiberRoot(wi,n,void 0,64==(64&n.current.flags))}catch(e){}if(fu(e,Fi()),qs)throw qs=!1,e=Gs,Gs=null,e;return 0!=(8&Os)||qi(),null}function ju(){for(;null!==Ws;){var e=Ws.alternate;ou||null===au||(0!=(8&Ws.flags)?et(Ws,au)&&(ou=!0):13===Ws.tag&&_s(e,Ws)&&et(Ws,au)&&(ou=!0));var t=Ws.flags;0!=(256&t)&&fs(e,Ws),0==(512&t)||Ys||(Ys=!0,Wi(97,(function(){return Nu(),null}))),Ws=Ws.nextEffect}}function Nu(){if(90!==Ks){var e=97<Ks?97:Ks;return Ks=90,Hi(e,Ru)}return!1}function Tu(e,t){Xs.push(t,e),Ys||(Ys=!0,Wi(97,(function(){return Nu(),null})))}function Pu(e,t){Qs.push(t,e),Ys||(Ys=!0,Wi(97,(function(){return Nu(),null})))}function Ru(){if(null===$s)return!1;var e=$s;if($s=null,0!=(48&Os))throw Error(s(331));var t=Os;Os|=32;var n=Qs;Qs=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],o=i.destroy;if(i.destroy=void 0,"function"==typeof o)try{o()}catch(e){if(null===a)throw Error(s(330));Iu(a,e)}}for(n=Xs,Xs=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var u=i.create;i.destroy=u()}catch(e){if(null===a)throw Error(s(330));Iu(a,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,qi(),!0}function Lu(e,t,n){ua(e,t=ss(0,t=is(n,t),1)),t=su(),null!==(e=cu(e,1))&&(Ht(e,1,t),fu(e,t))}function Iu(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===Zs||!Zs.has(r))){var i=us(n,e=is(t,e),1);if(ua(n,i),i=su(),null!==(n=cu(n,1)))Ht(n,1,i),fu(n,i);else if("function"==typeof r.componentDidCatch&&(null===Zs||!Zs.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=su(),e.pingedLanes|=e.suspendedLanes&n,Cs===e&&(Ns&n)===n&&(4===Rs||3===Rs&&(62914560&Ns)===Ns&&500>Fi()-Fs?bu(e,0):Ds|=n),fu(e,t)}function Bu(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===zi()?1:2:(0===ru&&(ru=Is),0===(t=zt(62914560&~ru))&&(t=4194304))),n=su(),null!==(e=cu(e,t))&&(Ht(e,t,n),fu(e,n))}function Du(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 Du(e,t,n,r)}function Fu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(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 Vu(e,t,n,r,i,a){var o=2;if(r=e,"function"==typeof e)Fu(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case S:return Hu(n.children,i,a,t);case B:o=8,i|=16;break;case A:o=8,i|=1;break;case O:return(e=Uu(12,n,t,8|i)).elementType=O,e.type=O,e.lanes=a,e;case T:return(e=Uu(13,n,t,i)).type=T,e.elementType=T,e.lanes=a,e;case P:return(e=Uu(19,n,t,i)).elementType=P,e.lanes=a,e;case D:return Wu(n,i,a,t);case U:return(e=Uu(24,n,t,i)).elementType=U,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:o=10;break e;case j:o=9;break e;case N:o=11;break e;case R:o=14;break e;case L:o=16,r=null;break e;case I:o=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Uu(o,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Hu(e,t,n,r){return(e=Uu(7,e,r,t)).lanes=n,e}function Wu(e,t,n,r){return(e=Uu(23,e,r,t)).elementType=D,e.lanes=n,e}function qu(e,t,n){return(e=Uu(6,e,null,t)).lanes=n,e}function Gu(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 Zu(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=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function Yu(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 i=t.current,a=su(),o=uu(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(s(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(hi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(s(171))}if(1===n.tag){var l=n.type;if(hi(l)){n=yi(n,l,u);break e}}n=u}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=sa(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ua(i,t),lu(i,o,a),o}function Ku(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Xu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){Xu(e,t),(e=e.alternate)&&Xu(e,t)}function Ju(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Zu(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,aa(t),e[Xr]=n.current,jr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function el(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function tl(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Ku(o);s.call(e)}}$u(t,o,e,i)}else{if(a=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=a._internalRoot,"function"==typeof i){var u=i;i=function(){var e=Ku(o);u.call(e)}}vu((function(){$u(t,o,e,i)}))}return Ku(o)}function nl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!el(t))throw Error(s(200));return Yu(e,t,null,n)}Hs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fi.current)Lo=!0;else{if(0==(n&r)){switch(Lo=!1,t.tag){case 3:Wo(t),Wa();break;case 5:Pa(t);break;case 1:hi(t.type)&&gi(t);break;case 4:Na(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ui($i,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?$o(e,t,n):(ui(La,1&La.current),null!==(t=es(e,t,n))?t.sibling:null);ui(La,1&La.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!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(La,La.current),r)break;return null;case 23:case 24:return t.lanes=0,Uo(e,t,n)}return es(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,i=pi(t,ci.current),na(t,n),i=ro(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,hi(r)){var a=!0;gi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,aa(t);var o=r.getDerivedStateFromProps;"function"==typeof o&&pa(t,r,o,e),i.updater=ha,t.stateNode=i,i._reactInternals=t,ga(t,r,e,n),t=Ho(null,t,r,!0,a,n)}else t.tag=0,Io(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"==typeof e)return Fu(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===R)return 14}return 2}(i),e=Yi(i,e),a){case 0:t=zo(null,t,i,e,n);break e;case 1:t=Vo(null,t,i,e,n);break e;case 11:t=Mo(null,t,i,e,n);break e;case 14:t=Bo(null,t,i,Yi(i.type,e),r,n);break e}throw Error(s(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,zo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Vo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 3:if(Wo(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,oa(e,t),ca(t,r,null,n),(r=t.memoizedState.element)===i)Wa(),t=es(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Ba=qr(t.stateNode.containerInfo.firstChild),Ma=t,a=Da=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],qa.push(a);for(n=Ea(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Io(e,t,r,n),Wa();t=t.child}return t;case 5:return Pa(t),null===e&&za(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,zr(r,i)?o=null:null!==a&&zr(r,a)&&(t.flags|=16),Fo(e,t),Io(e,t,o,n),t.child;case 6:return null===e&&za(t),null;case 13:return $o(e,t,n);case 4:return Na(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_a(t,null,r,n):Io(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Mo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 7:return Io(e,t,t.pendingProps,n),t.child;case 8:case 12:return Io(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var u=t.type._context;if(ui($i,u._currentValue),u._currentValue=a,null!==o)if(u=o.value,0==(a=sr(u,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,a):1073741823))){if(o.children===i.children&&!fi.current){t=es(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){o=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===u.tag&&((c=sa(-1,n&-n)).tag=2,ua(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),ta(u.return,n),l.lanes|=n;break}c=c.next}}else o=10===u.tag&&u.type===t.type?null:u.child;if(null!==o)o.return=u;else for(o=u;null!==o;){if(o===t){o=null;break}if(null!==(u=o.sibling)){u.return=o.return,o=u;break}o=o.return}u=o}Io(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,na(t,n),r=r(i=ra(i,a.unstable_observedBits)),t.flags|=1,Io(e,t,r,n),t.child;case 14:return a=Yi(i=t.type,t.pendingProps),Bo(e,t,i,a=Yi(i.type,a),r,n);case 15:return Do(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,hi(r)?(e=!0,gi(t)):e=!1,na(t,n),va(t,r,i),ga(t,r,i,n),Ho(null,t,r,!0,e,n);case 19:return Jo(e,t,n);case 23:case 24:return Uo(e,t,n)}throw Error(s(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[Xr]=null}))},tt=function(e){13===e.tag&&(lu(e,4,su()),Qu(e,4))},nt=function(e){13===e.tag&&(lu(e,67108864,su()),Qu(e,67108864))},rt=function(e){if(13===e.tag){var t=su(),n=uu(e);lu(e,n,t),Qu(e,n)}},it=function(e,t){return t()},Oe=function(e,t,n){switch(t){case"input":if(re(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ni(r);if(!i)throw Error(s(90));Q(r),re(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&se(e,!!n.multiple,t,!1)}},Re=mu,Le=function(e,t,n,r,i){var a=Os;Os|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{0===(Os=a)&&(Vs(),qi())}},Ie=function(){0==(49&Os)&&(function(){if(null!==Js){var e=Js;Js=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,fu(e,Fi())}))}qi()}(),Nu())},Me=function(e,t){var n=Os;Os|=2;try{return e(t)}finally{0===(Os=n)&&(Vs(),qi())}};var rl={Events:[ei,ti,ni,Te,Pe,Nu,{current:!1}]},il={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},al={bundleType:il.bundleType,version:il.version,rendererPackageName:il.rendererPackageName,rendererConfig:il.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:il.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ol=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ol.isDisabled&&ol.supportsFiber)try{wi=ol.inject(al),xi=ol}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rl,t.createPortal=nl,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(s(188));throw Error(s(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 Hi(99,e.bind(null,t))}finally{Os=n,qi()}},t.hydrate=function(e,t,n){if(!el(t))throw Error(s(200));return tl(null,e,t,!0,n)},t.render=function(e,t,n){if(!el(t))throw Error(s(200));return tl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!el(e))throw Error(s(40));return!!e._reactRootContainer&&(vu((function(){tl(null,null,e,!1,(function(){e._reactRootContainer=null,e[Xr]=null}))})),!0)},t.unstable_batchedUpdates=mu,t.unstable_createPortal=function(e,t){return nl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!el(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return tl(e,t,n,!1,r)},t.version="17.0.2"},6377:function(e,t,n){"use strict";var r=n(8466);!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){r.error(e)}}(),e.exports=n(6186)},4819:function(e,t,n){"use strict";n(6);var r=n(3705),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;i=a("react.element"),t.Fragment=a("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,a={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:a,_owner:o.current}}t.jsx=l,t.jsxs=l},4348:function(e,t,n){"use strict";var r=n(6),i=60103,a=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;i=f("react.element"),a=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,t,n){var r,a={},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)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];a.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===a[r]&&(a[r]=u[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:w.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function A(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 O(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 i:case a:u=!0}}if(u)return o=o(u=e),e=""===r?"."+A(u,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),O(o,t,n,"",(function(e){return e}))):null!=o&&(E(o)&&(o=function(e,t){return{$$typeof:i,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(S,"$&/")+"/")+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+A(s=e[l],l);u+=O(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+=O(s=s.value,t,n,c=r+A(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 C(e,t,n){if(null==e)return e;var r=[],i=0;return O(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function j(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 N={current:null};function T(){var e=N.current;if(null===e)throw Error(p(321));return e}var P={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var a=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)&&(a[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];a.children=l}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_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=_,t.createFactory=function(e){var t=_.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=E,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return T().useCallback(e,t)},t.useContext=function(e,t){return T().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return T().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return T().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return T().useLayoutEffect(e,t)},t.useMemo=function(e,t){return T().useMemo(e,t)},t.useReducer=function(e,t,n){return T().useReducer(e,t,n)},t.useRef=function(e){return T().useRef(e)},t.useState=function(e){return T().useState(e)},t.version="17.0.2"},3705:function(e,t,n){"use strict";e.exports=n(4348)},1411:function(e,t,n){"use strict";e.exports=n(4819)},5205:function(e,t,n){"use strict";var r=n(7490),i=n(8466);function a(e){return(a="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)}var o,s,u=n(3905).codes,l=u.ERR_AMBIGUOUS_ARGUMENT,c=u.ERR_INVALID_ARG_TYPE,f=u.ERR_INVALID_ARG_VALUE,d=u.ERR_INVALID_RETURN_VALUE,p=u.ERR_MISSING_ARGS,h=n(8264),m=n(7736).inspect,v=n(7736).types,y=v.isPromise,g=v.isRegExp,b=Object.assign?Object.assign:n(3843).assign,w=Object.is?Object.is:n(8199);function x(){var e=n(8527);o=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var k=!1,_=e.exports=O,E={};function S(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function A(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var a=new h({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function O(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[O,t.length].concat(t))}_.fail=function e(t,n,a,o,s){var u,l=arguments.length;if(0===l)u="Failed";else if(1===l)a=t,t=void 0;else{if(!1===k){k=!0;var c=r.emitWarning?r.emitWarning:i.warn.bind(i);c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===l&&(o="!=")}if(a instanceof Error)throw a;var f={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||e};void 0!==a&&(f.message=a);var d=new h(f);throw u&&(d.message=u,d.generatedMessage=!0),d},_.AssertionError=h,_.ok=O,_.equal=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");t!=n&&S({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},_.notEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");t==n&&S({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},_.deepEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),o(t,n)||S({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},_.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),o(t,n)&&S({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},_.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),s(t,n)||S({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},_.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),s(t,n)&&S({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},_.strictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");w(t,n)||S({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},_.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");w(t,n)&&S({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var C=function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&g(t[e])&&t[e].test(r[e])?i[e]=r[e]:i[e]=t[e])}))};function j(e,t,n,r,i,a){if(!(n in e)||!s(e[n],t[n])){if(!r){var o=new C(e,i),u=new C(t,i,e),l=new h({actual:o,expected:u,operator:"deepStrictEqual",stackStartFn:a});throw l.actual=e,l.expected=t,l.operator=a.name,l}S({actual:e,expected:t,message:r,operator:a.name,stackStartFn:a})}}function N(e,t,n,r){if("function"!=typeof t){if(g(t))return t.test(e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var i=new h({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new f("error",t,"may not be an empty object");return void 0===o&&x(),s.forEach((function(i){"string"==typeof e[i]&&g(t[i])&&t[i].test(e[i])||j(e,t,i,n,s,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function T(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return E}function P(e){return y(e)||null!==e&&"object"===a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function R(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!P(t=e()))throw new d("instance of Promise","promiseFn",t)}else{if(!P(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return E})).catch((function(e){return e}))}))}function L(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],n);if("object"===a(t)&&null!==t){if(t.message===n)throw new l("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new l("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==a(n)&&"function"!=typeof n)throw new c("error",["Object","Error","Function","RegExp"],n);if(t===E){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var o="rejects"===e.name?"rejection":"exception";S({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(n&&!N(t,n,r,e))throw t}function I(e,t,n,r){if(t!==E){if("string"==typeof n&&(r=n,n=void 0),!n||N(t,n)){var i=r?": ".concat(r):".",a="doesNotReject"===e.name?"rejection":"exception";S({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(a).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[M,t.length].concat(t))}_.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];L.apply(void 0,[e,T(t)].concat(r))},_.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return R(t).then((function(t){return L.apply(void 0,[e,t].concat(r))}))},_.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];I.apply(void 0,[e,T(t)].concat(r))},_.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return R(t).then((function(t){return I.apply(void 0,[e,t].concat(r))}))},_.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===a(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=m(t);var r=new h({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"==typeof i){var o=i.split("\n");o.shift();for(var s=r.stack.split("\n"),u=0;u<o.length;u++){var l=s.indexOf(o[u]);if(-1!==l){s=s.slice(0,l);break}}r.stack="".concat(s.join("\n"),"\n").concat(o.join("\n"))}throw r}},_.strict=b(M,_,{equal:_.strictEqual,deepEqual:_.deepStrictEqual,notEqual:_.notStrictEqual,notDeepEqual:_.notDeepStrictEqual}),_.strict.strict=_.strict},8264:function(e,t,n){"use strict";var r=n(7490);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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 o(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return(u=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 c(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)})(e)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,n){return(c=l()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&f(i,n.prototype),i}).apply(null,arguments)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){return(p="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)}var h=n(7736).inspect,m=n(3905).codes.ERR_INVALID_ARG_TYPE;function v(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var y="",g="",b="",w="",x={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function k(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function _(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function E(e,t,n){var i="",a="",o=0,s="",u=!1,l=_(e),c=l.split("\n"),f=_(t).split("\n"),d=0,h="";if("strictEqual"===n&&"object"===p(e)&&"object"===p(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===c.length&&1===f.length&&c[0]!==f[0]){var m=c[0].length+f[0].length;if(m<=10){if(!("object"===p(e)&&null!==e||"object"===p(t)&&null!==t||0===e&&0===t))return"".concat(x[n],"\n\n")+"".concat(c[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n&&m<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;c[0][d]===f[0][d];)d++;d>2&&(h="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",d),"^"),d=0)}}for(var k=c[c.length-1],E=f[f.length-1];k===E&&(d++<2?s="\n ".concat(k).concat(s):i=k,c.pop(),f.pop(),0!==c.length&&0!==f.length);)k=c[c.length-1],E=f[f.length-1];var S=Math.max(c.length,f.length);if(0===S){var A=l.split("\n");if(A.length>30)for(A[26]="".concat(y,"...").concat(w);A.length>27;)A.pop();return"".concat(x.notIdentical,"\n\n").concat(A.join("\n"),"\n")}d>3&&(s="\n".concat(y,"...").concat(w).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var O=0,C=x[n]+"\n".concat(g,"+ actual").concat(w," ").concat(b,"- expected").concat(w),j=" ".concat(y,"...").concat(w," Lines skipped");for(d=0;d<S;d++){var N=d-o;if(c.length<d+1)N>1&&d>2&&(N>4?(a+="\n".concat(y,"...").concat(w),u=!0):N>3&&(a+="\n ".concat(f[d-2]),O++),a+="\n ".concat(f[d-1]),O++),o=d,i+="\n".concat(b,"-").concat(w," ").concat(f[d]),O++;else if(f.length<d+1)N>1&&d>2&&(N>4?(a+="\n".concat(y,"...").concat(w),u=!0):N>3&&(a+="\n ".concat(c[d-2]),O++),a+="\n ".concat(c[d-1]),O++),o=d,a+="\n".concat(g,"+").concat(w," ").concat(c[d]),O++;else{var T=f[d],P=c[d],R=P!==T&&(!v(P,",")||P.slice(0,-1)!==T);R&&v(T,",")&&T.slice(0,-1)===P&&(R=!1,P+=","),R?(N>1&&d>2&&(N>4?(a+="\n".concat(y,"...").concat(w),u=!0):N>3&&(a+="\n ".concat(c[d-2]),O++),a+="\n ".concat(c[d-1]),O++),o=d,a+="\n".concat(g,"+").concat(w," ").concat(P),i+="\n".concat(b,"-").concat(w," ").concat(T),O+=2):(a+=i,i="",1!==N&&0!==d||(a+="\n ".concat(P),O++))}if(O>20&&d<S-2)return"".concat(C).concat(j,"\n").concat(a,"\n").concat(y,"...").concat(w).concat(i,"\n")+"".concat(y,"...").concat(w)}return"".concat(C).concat(u?j:"","\n").concat(a).concat(i).concat(s).concat(h)}var S=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==p(e)||null===e)throw new m("options","Object",e);var i=e.message,a=e.operator,u=e.stackStartFn,l=e.actual,c=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=o(this,d(t).call(this,String(i)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(y="",g="",w="",b=""):(y="",g="",w="",b="")),"object"===p(l)&&null!==l&&"object"===p(c)&&null!==c&&"stack"in l&&l instanceof Error&&"stack"in c&&c instanceof Error&&(l=k(l),c=k(c)),"deepStrictEqual"===a||"strictEqual"===a)n=o(this,d(t).call(this,E(l,c,a)));else if("notDeepStrictEqual"===a||"notStrictEqual"===a){var h=x[a],v=_(l).split("\n");if("notStrictEqual"===a&&"object"===p(l)&&null!==l&&(h=x.notStrictEqualObject),v.length>30)for(v[26]="".concat(y,"...").concat(w);v.length>27;)v.pop();n=1===v.length?o(this,d(t).call(this,"".concat(h," ").concat(v[0]))):o(this,d(t).call(this,"".concat(h,"\n\n").concat(v.join("\n"),"\n")))}else{var S=_(l),A="",O=x[a];"notDeepEqual"===a||"notEqual"===a?(S="".concat(x[a],"\n\n").concat(S)).length>1024&&(S="".concat(S.slice(0,1021),"...")):(A="".concat(_(c)),S.length>512&&(S="".concat(S.slice(0,509),"...")),A.length>512&&(A="".concat(A.slice(0,509),"...")),"deepEqual"===a||"equal"===a?S="".concat(O,"\n\n").concat(S,"\n\nshould equal\n\n"):A=" ".concat(a," ").concat(A)),n=o(this,d(t).call(this,"".concat(S).concat(A)))}return Error.stackTraceLimit=f,n.generatedMessage=!i,Object.defineProperty(s(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=l,n.expected=c,n.operator=a,Error.captureStackTrace&&Error.captureStackTrace(s(n),u),n.stack,n.name="AssertionError",o(n)}var n,u;return function(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}}),t&&f(e,t)}(t,e),n=t,(u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(e,t){return h(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}])&&a(n.prototype,u),t}(u(Error));e.exports=S},3905:function(e,t,n){"use strict";function r(e){return(r="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 i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s,u,l={};function c(e,t,n){n||(n=Error);var r=function(n){function r(n,o,s){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(u=i(this,a(r).call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,o,s)))).code=e,u}return function(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}}),t&&o(e,t)}(r,n),r}(n);l[e]=r}function f(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(e,t,i){var a,o,u;if(void 0===s&&(s=n(5205)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))u="The ".concat(e," ").concat(a," ").concat(f(t,"type"));else{var l=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";u='The "'.concat(e,'" ').concat(l," ").concat(a," ").concat(f(t,"type"))}return u+". Received type ".concat(r(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=n(7736));var i=u.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===s&&(s=n(5205)),s(t.length>0,"At least one arg needs to be specified");var i="The ",a=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),a){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,a-1).join(", "),i+=", and ".concat(t[a-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=l},8527:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return(i="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)}var a=void 0!==/a/g.flags,o=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},u=Object.is?Object.is:n(8199),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:n(5738);function f(e){return e.call.bind(e)}var d=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),h=f(Object.prototype.toString),m=n(7736).types,v=m.isAnyArrayBuffer,y=m.isArrayBufferView,g=m.isDate,b=m.isMap,w=m.isRegExp,x=m.isSet,k=m.isNativeError,_=m.isBoxedPrimitive,E=m.isNumberObject,S=m.isStringObject,A=m.isBooleanObject,O=m.isBigIntObject,C=m.isSymbolObject,j=m.isFloat32Array,N=m.isFloat64Array;function T(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function P(e){return Object.keys(e).filter(T).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function R(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function L(e,t,n,r){if(e===t)return 0!==e||!n||u(e,t);if(n){if("object"!==i(e))return"number"==typeof e&&c(e)&&c(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,s,l,f,d=h(e);if(d!==h(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=P(e),m=P(t);return p.length===m.length&&M(e,t,n,r,1,p)}if("[object Object]"===d&&(!b(e)&&b(t)||!x(e)&&x(t)))return!1;if(g(e)){if(!g(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(w(e)){if(!w(t)||(l=e,f=t,!(a?l.source===f.source&&l.flags===f.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(f))))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(y(e)){if(n||!j(e)&&!N(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===R(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var T=P(e),L=P(t);return T.length===L.length&&M(e,t,n,r,0,T)}if(x(e))return!(!x(t)||e.size!==t.size)&&M(e,t,n,r,2);if(b(e))return!(!b(t)||e.size!==t.size)&&M(e,t,n,r,3);if(v(e)){if(s=t,(o=e).byteLength!==s.byteLength||0!==R(new Uint8Array(o),new Uint8Array(s)))return!1}else if(_(e)&&!function(e,t){return E(e)?E(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):S(e)?S(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):A(e)?A(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):O(e)?O(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):C(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return M(e,t,n,r,0)}function I(e,t){return t.filter((function(t){return p(e,t)}))}function M(e,t,n,r,i,a){if(5===arguments.length){a=Object.keys(e);var o=Object.keys(t);if(a.length!==o.length)return!1}for(var s=0;s<a.length;s++)if(!d(t,a[s]))return!1;if(n&&5===arguments.length){var u=l(e);if(0!==u.length){var c=0;for(s=0;s<u.length;s++){var f=u[s];if(p(e,f)){if(!p(t,f))return!1;a.push(f),c++}else if(p(t,f))return!1}var h=l(t);if(u.length!==h.length&&I(t,h).length!==c)return!1}else{var m=l(t);if(0!==m.length&&0!==I(t,m).length)return!1}}if(0===a.length&&(0===i||1===i&&0===e.length||0===e.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var v=r.val1.get(e);if(void 0!==v){var y=r.val2.get(t);if(void 0!==y)return v===y}r.position++}r.val1.set(e,r.position),r.val2.set(t,r.position);var g=V(e,t,n,a,r,i);return r.val1.delete(e),r.val2.delete(t),g}function B(e,t,n,r){for(var i=o(e),a=0;a<i.length;a++){var s=i[a];if(L(t,s,n,r))return e.delete(s),!0}return!1}function D(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(c(e))return!1}return!0}function U(e,t,n){var r=D(n);return null!=r?r:t.has(r)&&!e.has(r)}function F(e,t,n,r,i){var a=D(n);if(null!=a)return a;var o=t.get(a);return!(void 0===o&&!t.has(a)||!L(r,o,!1,i))&&!e.has(a)&&L(r,o,!1,i)}function z(e,t,n,r,i,a){for(var s=o(e),u=0;u<s.length;u++){var l=s[u];if(L(n,l,i,a)&&L(r,t.get(l),i,a))return e.delete(l),!0}return!1}function V(e,t,n,a,u,l){var c=0;if(2===l){if(!function(e,t,n,r){for(var a=null,s=o(e),u=0;u<s.length;u++){var l=s[u];if("object"===i(l)&&null!==l)null===a&&(a=new Set),a.add(l);else if(!t.has(l)){if(n)return!1;if(!U(e,t,l))return!1;null===a&&(a=new Set),a.add(l)}}if(null!==a){for(var c=o(t),f=0;f<c.length;f++){var d=c[f];if("object"===i(d)&&null!==d){if(!B(a,d,n,r))return!1}else if(!n&&!e.has(d)&&!B(a,d,n,r))return!1}return 0===a.size}return!0}(e,t,n,u))return!1}else if(3===l){if(!function(e,t,n,a){for(var o=null,u=s(e),l=0;l<u.length;l++){var c=r(u[l],2),f=c[0],d=c[1];if("object"===i(f)&&null!==f)null===o&&(o=new Set),o.add(f);else{var p=t.get(f);if(void 0===p&&!t.has(f)||!L(d,p,n,a)){if(n)return!1;if(!F(e,t,f,d,a))return!1;null===o&&(o=new Set),o.add(f)}}}if(null!==o){for(var h=s(t),m=0;m<h.length;m++){var v=r(h[m],2),y=(f=v[0],v[1]);if("object"===i(f)&&null!==f){if(!z(o,e,f,y,n,a))return!1}else if(!(n||e.has(f)&&L(e.get(f),y,!1,a)||z(o,e,f,y,!1,a)))return!1}return 0===o.size}return!0}(e,t,n,u))return!1}else if(1===l)for(;c<e.length;c++){if(!d(e,c)){if(d(t,c))return!1;for(var f=Object.keys(e);c<f.length;c++){var p=f[c];if(!d(t,p)||!L(e[p],t[p],n,u))return!1}return f.length===Object.keys(t).length}if(!d(t,c)||!L(e[c],t[c],n,u))return!1}for(c=0;c<a.length;c++){var h=a[c];if(!L(e[h],t[h],n,u))return!1}return!0}e.exports={isDeepEqual:function(e,t){return L(e,t,!1)},isDeepStrictEqual:function(e,t){return L(e,t,!0)}}},2470: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,a=u(e),o=a[0],s=a[1],l=new i(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,i=r%3,a=[],o=16383,s=0,u=r-i;s<u;s+=o)a.push(l(e,s,s+o>u?u:s+o));return 1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],r[a.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 i,a,o=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},4227:function(e,t,n){"use strict";var r=n(918).Buffer,i=n(7490),a=n(5205),o=n(400),s=n(8106),u=n(1833),l=n(7572);for(var c in l)t[c]=l[c];function f(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,f.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,a(this.init_done,"close before init"),a(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||u.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},f.prototype.write=function(e,t,n,r,i,a,o){return this._write(!0,e,t,n,r,i,a,o)},f.prototype.writeSync=function(e,t,n,r,i,a,o){return this._write(!1,e,t,n,r,i,a,o)},f.prototype._write=function(e,n,o,s,u,l,c,f){if(a.equal(arguments.length,8),a(this.init_done,"write before init"),a(this.mode!==t.NONE,"already finalized"),a.equal(!1,this.write_in_progress,"write already in progress"),a.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,a.equal(!1,void 0===n,"must provide flush value"),this.write_in_progress=!0,n!==t.Z_NO_FLUSH&&n!==t.Z_PARTIAL_FLUSH&&n!==t.Z_SYNC_FLUSH&&n!==t.Z_FULL_FLUSH&&n!==t.Z_FINISH&&n!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==o&&(o=r.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=o,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=l,this.strm.next_out=c,this.flush=n,!e)return this._process(),this._checkError()?this._afterSync():void 0;var d=this;return i.nextTick((function(){d._process(),d._after()})),this},f.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},f.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=u.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=u.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=u.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=u.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},f.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},f.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(e,n,r,i,o){a(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),a(e>=8&&e<=15,"invalid windowBits"),a(n>=-1&&n<=9,"invalid compression level"),a(r>=1&&r<=9,"invalid memlevel"),a(i===t.Z_FILTERED||i===t.Z_HUFFMAN_ONLY||i===t.Z_RLE||i===t.Z_FIXED||i===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,e,r,i,o),this._setDictionary()},f.prototype.params=function(){throw new Error("deflateParams Not supported")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(e,n,r,i,a){switch(this.level=e,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=u.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=a,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},f.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=s.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=u.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=f},1899:function(e,t,n){"use strict";var r=n(7490),i=n(918).Buffer,a=n(3841).Transform,o=n(4227),s=n(7736),u=n(5205).ok,l=n(918).kMaxLength,c="Cannot create final Buffer. It would be larger than 0x"+l.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(o),d=0;d<f.length;d++){var p=f[d];p.match(/^Z/)&&Object.defineProperty(t,p,{enumerable:!0,value:o[p],writable:!1})}for(var h={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},m=Object.keys(h),v=0;v<m.length;v++){var y=m[v];h[h[y]]=y}function g(e,t,n){var r=[],a=0;function o(){for(var t;null!==(t=e.read());)r.push(t),a+=t.length;e.once("readable",o)}function s(){var t,o=null;a>=l?o=new RangeError(c):t=i.concat(r,a),r=[],e.close(),n(o,t)}e.on("error",(function(t){e.removeListener("end",s),e.removeListener("readable",o),n(t)})),e.on("end",s),e.end(t),o()}function b(e,t){if("string"==typeof t&&(t=i.from(t)),!i.isBuffer(t))throw new TypeError("Not a string or buffer");var n=e._finishFlushFlag;return e._processChunk(t,n)}function w(e){if(!(this instanceof w))return new w(e);C.call(this,e,o.DEFLATE)}function x(e){if(!(this instanceof x))return new x(e);C.call(this,e,o.INFLATE)}function k(e){if(!(this instanceof k))return new k(e);C.call(this,e,o.GZIP)}function _(e){if(!(this instanceof _))return new _(e);C.call(this,e,o.GUNZIP)}function E(e){if(!(this instanceof E))return new E(e);C.call(this,e,o.DEFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);C.call(this,e,o.INFLATERAW)}function A(e){if(!(this instanceof A))return new A(e);C.call(this,e,o.UNZIP)}function O(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function C(e,n){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,a.call(this,e),e.flush&&!O(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!O(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!i.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(e,n){j(s),s._hadError=!0;var r=new Error(e);r.errno=n,r.code=t.codes[n],s.emit("error",r)};var u=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(u=e.level);var l=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(l=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,u,e.memLevel||t.Z_DEFAULT_MEMLEVEL,l,e.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=l,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function j(e,t){t&&r.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function N(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),t.Deflate=w,t.Inflate=x,t.Gzip=k,t.Gunzip=_,t.DeflateRaw=E,t.InflateRaw=S,t.Unzip=A,t.createDeflate=function(e){return new w(e)},t.createInflate=function(e){return new x(e)},t.createDeflateRaw=function(e){return new E(e)},t.createInflateRaw=function(e){return new S(e)},t.createGzip=function(e){return new k(e)},t.createGunzip=function(e){return new _(e)},t.createUnzip=function(e){return new A(e)},t.deflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new w(t),e,n)},t.deflateSync=function(e,t){return b(new w(t),e)},t.gzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new k(t),e,n)},t.gzipSync=function(e,t){return b(new k(t),e)},t.deflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new E(t),e,n)},t.deflateRawSync=function(e,t){return b(new E(t),e)},t.unzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new A(t),e,n)},t.unzipSync=function(e,t){return b(new A(t),e)},t.inflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new x(t),e,n)},t.inflateSync=function(e,t){return b(new x(t),e)},t.gunzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new _(t),e,n)},t.gunzipSync=function(e,t){return b(new _(t),e)},t.inflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),g(new S(t),e,n)},t.inflateRawSync=function(e,t){return b(new S(t),e)},s.inherits(C,a),C.prototype.params=function(e,n,i){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(n!=t.Z_FILTERED&&n!=t.Z_HUFFMAN_ONLY&&n!=t.Z_RLE&&n!=t.Z_FIXED&&n!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+n);if(this._level!==e||this._strategy!==n){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){u(a._handle,"zlib binding closed"),a._handle.params(e,n),a._hadError||(a._level=e,a._strategy=n,i&&i())}))}else r.nextTick(i)},C.prototype.reset=function(){return u(this._handle,"zlib binding closed"),this._handle.reset()},C.prototype._flush=function(e){this._transform(i.alloc(0),"",e)},C.prototype.flush=function(e,t){var n=this,a=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=o.Z_FULL_FLUSH),a.ended?t&&r.nextTick(t):a.ending?t&&this.once("end",t):a.needDrain?t&&this.once("drain",(function(){return n.flush(e,t)})):(this._flushFlag=e,this.write(i.alloc(0),"",t))},C.prototype.close=function(e){j(this,e),r.nextTick(N,this)},C.prototype._transform=function(e,t,n){var r,a=this._writableState,s=(a.ending||a.ended)&&(!e||a.length===e.length);return null===e||i.isBuffer(e)?this._handle?(s?r=this._finishFlushFlag:(r=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,r,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},C.prototype._processChunk=function(e,t,n){var r=e&&e.length,a=this._chunkSize-this._offset,o=0,s=this,f="function"==typeof n;if(!f){var d,p=[],h=0;this.on("error",(function(e){d=e})),u(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(t,e,o,r,this._buffer,this._offset,a)}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw d;if(h>=l)throw j(this),new RangeError(c);var v=i.concat(p,h);return j(this),v}u(this._handle,"zlib binding closed");var y=this._handle.write(t,e,o,r,this._buffer,this._offset,a);function g(l,c){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var d=a-c;if(u(d>=0,"have should not go down"),d>0){var m=s._buffer.slice(s._offset,s._offset+d);s._offset+=d,f?s.push(m):(p.push(m),h+=m.length)}if((0===c||s._offset>=s._chunkSize)&&(a=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===c){if(o+=r-l,r=l,!f)return!0;var v=s._handle.write(t,e,o,r,s._buffer,s._offset,s._chunkSize);return v.callback=g,void(v.buffer=e)}if(!f)return!1;n()}}y.buffer=e,y.callback=g},s.inherits(w,C),s.inherits(x,C),s.inherits(k,C),s.inherits(_,C),s.inherits(E,C),s.inherits(S,C),s.inherits(A,C)},918:function(e,t,n){"use strict";var r=n(8466),i=n(6690).default,a=n(9728).default,o=n(6115).default,s=n(1655).default,u=n(6389).default,l=n(2470),c=n(545),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=h,t.SlowBuffer=function(e){return+e!=e&&(e=0),h.alloc(+e)},t.INSPECT_MAX_BYTES=50;var d=2147483647;function p(e){if(e>d)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,h.prototype),t}function h(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 y(e)}return m(e,t,n)}function m(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!h.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|x(e,t),r=p(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(te(e,Uint8Array)){var t=new Uint8Array(e);return b(t.buffer,t.byteOffset,t.byteLength)}return g(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(te(e,ArrayBuffer)||e&&te(e.buffer,ArrayBuffer))return b(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(te(e,SharedArrayBuffer)||e&&te(e.buffer,SharedArrayBuffer)))return b(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 h.from(r,t,n);var i=function(e){if(h.isBuffer(e)){var t=0|w(e.length),n=p(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||ne(e.length)?p(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return h.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 v(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 y(e){return v(e),p(e<0?0:0|w(e))}function g(e){for(var t=e.length<0?0:0|w(e.length),n=p(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function b(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,h.prototype),r}function w(e){if(e>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|e}function x(e,t){if(h.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||te(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 i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(i)return r?-1:Q(e).length;t=(""+t).toLowerCase(),i=!0}}function k(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 M(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function E(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),ne(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=h.from(t,r)),h.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){var a,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(i){var c=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+u>s&&(n=s-u),a=n;a>=0;a--){for(var f=!0,d=0;d<u;d++)if(l(e,a+d)!==l(t,d)){f=!1;break}if(f)return a}return-1}function A(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a,o=t.length;for(r>o/2&&(r=o/2),a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(ne(s))return a;e[n+a]=s}return a}function O(e,t,n,r){return ee(Q(t,e.length-n),e,n,r)}function C(e,t,n,r){return ee(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function j(e,t,n,r){return ee(J(t),e,n,r)}function N(e,t,n,r){return ee(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?l.fromByteArray(e):l.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){var u=void 0,l=void 0,c=void 0,f=void 0;switch(s){case 1:a<128&&(o=a);break;case 2:128==(192&(u=e[i+1]))&&(f=(31&a)<<6|63&u)>127&&(o=f);break;case 3:u=e[i+1],l=e[i+2],128==(192&u)&&128==(192&l)&&(f=(15&a)<<12|(63&u)<<6|63&l)>2047&&(f<55296||f>57343)&&(o=f);break;case 4:u=e[i+1],l=e[i+2],c=e[i+3],128==(192&u)&&128==(192&l)&&128==(192&c)&&(f=(15&a)<<18|(63&u)<<12|(63&l)<<6|63&c)>65535&&f<1114112&&(o=f)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=R));return n}(r)}t.kMaxLength=d,h.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}}(),h.TYPED_ARRAY_SUPPORT||void 0===r||"function"!=typeof r.error||r.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(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(e,t,n){return m(e,t,n)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(e,t,n){return function(e,t,n){return v(e),e<=0?p(e):void 0!==t?"string"==typeof n?p(e).fill(t,n):p(e).fill(t):p(e)}(e,t,n)},h.allocUnsafe=function(e){return y(e)},h.allocUnsafeSlow=function(e){return y(e)},h.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==h.prototype},h.compare=function(e,t){if(te(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),te(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(e)||!h.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,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},h.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}},h.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return h.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=h.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(te(a,Uint8Array))i+a.length>r.length?(h.isBuffer(a)||(a=h.from(a)),a.copy(r,i)):Uint8Array.prototype.set.call(r,a,i);else{if(!h.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i)}i+=a.length}return r},h.byteLength=x,h.prototype._isBuffer=!0,h.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)_(this,t,t+1);return this},h.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)_(this,t,t+3),_(this,t+1,t+2);return this},h.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)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},h.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?P(this,0,e):k.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(e){if(!h.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===h.compare(this,e)},h.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+">"},f&&(h.prototype[f]=h.prototype.inspect),h.prototype.compare=function(e,t,n,r,i){if(te(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.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===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),l=e.slice(t,n),c=0;c<s;++c)if(u[c]!==l[c]){a=u[c],o=l[c];break}return a<o?-1:o<a?1:0},h.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},h.prototype.indexOf=function(e,t,n){return E(this,e,t,n,!0)},h.prototype.lastIndexOf=function(e,t,n){return E(this,e,t,n,!1)},h.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 i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return A(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return j(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=re[e[a]];return i}function B(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function D(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 U(e,t,n,r,i,a){if(!h.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function F(e,t,n,r,i){Y(t,r,i,e,n,7);var a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function z(e,t,n,r,i){Y(t,r,i,e,n,7);var a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function V(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,i){return t=+t,n>>>=0,i||V(e,0,n,4),c.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,i){return t=+t,n>>>=0,i||V(e,0,n,8),c.write(e,t,n,r,52,8),n+8}h.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,h.prototype),r},h.prototype.readUintLE=h.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},h.prototype.readUintBE=h.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},h.prototype.readUint8=h.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},h.prototype.readBigUInt64LE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),i=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+n*Math.pow(2,24);return BigInt(r)+(BigInt(i)<<BigInt(32))})),h.prototype.readBigUInt64BE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],i=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),h.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},h.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},h.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},h.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},h.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},h.prototype.readBigInt64LE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24))})),h.prototype.readBigInt64BE=ie((function(e){$(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);var r=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n)})),h.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),c.read(this,e,!0,23,4)},h.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),c.read(this,e,!1,23,4)},h.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),c.read(this,e,!0,52,8)},h.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),c.read(this,e,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},h.prototype.writeUint8=h.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,255,0),this[t]=255&e,t+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(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},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(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},h.prototype.writeBigUInt64LE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeBigUInt64BE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return z(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);U(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},h.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);U(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},h.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},h.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(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},h.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(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},h.prototype.writeBigInt64LE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeBigInt64BE=ie((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return z(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},h.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},h.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},h.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},h.prototype.copy=function(e,t,n,r){if(!h.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 i=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),i},h.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&&!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}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 a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=h.isBuffer(e)?e:h.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var q={};function G(e,t,n){q[e]=function(n){s(l,n);var r=u(l);function l(){var n;return i(this,l),n=r.call(this),Object.defineProperty(o(n),"message",{value:t.apply(o(n),arguments),writable:!0,configurable:!0}),n.name="".concat(n.name," [").concat(e,"]"),n.stack,delete n.name,n}return a(l,[{key:"code",get:function(){return e},set:function(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}]),l}(n)}function Z(e){for(var t="",n=e.length,r="-"===e[0]?1:0;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function Y(e,t,n,r,i,a){if(e>n||e<t){var o,s="bigint"==typeof t?"n":"";throw o=a>3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(a+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(a+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(a+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(n).concat(s),new q.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){$(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||K(t,e.length-(n+1))}(r,i,a)}function $(e,t){if("number"!=typeof e)throw new q.ERR_INVALID_ARG_TYPE(t,"number",e)}function K(e,t,n){if(Math.floor(e)!==e)throw $(e,n),new q.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}G("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),G("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),G("ERR_OUT_OF_RANGE",(function(e,t,n){var r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?i=Z(String(n)):"bigint"==typeof n&&(i=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(i=Z(i)),i+="n"),r+" It must be ".concat(t,". Received ").concat(i)}),RangeError);var X=/[^+/0-9A-Za-z-_]/g;function Q(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function J(e){return l.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(X,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function ee(e,t,n,r){var i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function te(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function ne(e){return e!=e}var re=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}();function ie(e){return"undefined"==typeof BigInt?ae:e}function ae(){throw new Error("BigInt not supported")}},4680:function(e,t,n){"use strict";var r=n(8476),i=n(9962),a=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?i(n):n}},9962:function(e,t,n){"use strict";var r=n(1199),i=n(8476),a=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(o,a),u=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=s(r,o,arguments);if(u&&l){var n=u(t,"length");n.configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var f=function(){return s(r,a,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},8466:function(e,t,n){var r=n(7736),i=n(5205);function a(){return(new Date).getTime()}var o,s=Array.prototype.slice,u={};o=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var l=[[function(){},"log"],[function(){o.log.apply(o,arguments)},"info"],[function(){o.log.apply(o,arguments)},"warn"],[function(){o.warn.apply(o,arguments)},"error"],[function(e){u[e]=a()},"time"],[function(e){var t=u[e];if(!t)throw new Error("No such label: "+e);delete u[e];var n=a()-t;o.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),o.error(e.stack)},"trace"],[function(e){o.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);i.ok(!1,r.format.apply(null,t))}},"assert"]],c=0;c<l.length;c++){var f=l[c],d=f[0],p=f[1];o[p]||(o[p]=d)}e.exports=o},9959:function(e,t,n){"use strict";var r=n(6328),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,s=Object.defineProperty,u=n(2926)(),l=s&&u,c=function(e,t,n,r){var i;(!(t in e)||"function"==typeof(i=r)&&"[object Function]"===a.call(i)&&r())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},f=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=o.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)c(e,a[s],t[a[s]],n[a[s]])};f.supportsDescriptors=!!l,e.exports=f},3843:function(e){"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var a=Object.keys(Object(i)),o=0,s=a.length;o<s;o++){var u=a[o],l=Object.getOwnPropertyDescriptor(i,u);void 0!==l&&l.enumerable&&(n[u]=i[u])}}return n}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},8041:function(e,t,n){"use strict";var r,i=n(8466),a="object"==typeof Reflect?Reflect:null,o=a&&"function"==typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function u(){u.init.call(this)}e.exports=u,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var a,o,s,u;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(a=f(e))>0&&s.length>a&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,i&&i.warn&&i.warn(u)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):y(i,i.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){r.once&&e.removeEventListener(t,i),n(a)}))}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return f(this)},u.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var l=u.length,c=y(u,l);for(n=0;n<l;++n)o(c[n],this,t)}return!0},u.prototype.addListener=function(e,t){return d(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return d(this,e,t,!0)},u.prototype.once=function(e,t){return c(t),this.on(e,h(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,h(this,e,t)),this},u.prototype.removeListener=function(e,t){var n,r,i,a,o;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return m(this,e,!0)},u.prototype.rawListeners=function(e){return m(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},u.prototype.listenerCount=v,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},5767:function(e,t,n){"use strict";var r=n(8866),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty,o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},s=function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},u=function(e,t,n){for(var r in e)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))};e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===i.call(e)?o(e,t,a):"string"==typeof e?s(e,t,a):u(e,t,a)}},2781:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,i="[object Function]";e.exports=function(e){var a=this;if("function"!=typeof a||r.call(a)!==i)throw new TypeError(t+a);for(var o,s=n.call(arguments,1),u=function(){if(this instanceof o){var t=a.apply(this,s.concat(n.call(arguments)));return Object(t)===t?t:this}return a.apply(e,s.concat(n.call(arguments)))},l=Math.max(0,a.length-s.length),c=[],f=0;f<l;f++)c.push("$"+f);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(u),a.prototype){var d=function(){};d.prototype=a.prototype,o.prototype=new d,d.prototype=null}return o}},1199:function(e,t,n){"use strict";var r=n(2781);e.exports=Function.prototype.bind||r},8476:function(e,t,n){"use strict";var r,i=SyntaxError,a=Function,o=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var l=function(){throw new o},c=u?function(){try{return l}catch(e){try{return u(arguments,"callee").get}catch(e){return l}}}():l,f=n(5520)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"==typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},v=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return m[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(1199),b=n(7838),w=g.call(Function.call,Array.prototype.concat),x=g.call(Function.apply,Array.prototype.splice),k=g.call(Function.call,String.prototype.replace),_=g.call(Function.call,String.prototype.slice),E=g.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,O=function(e){var t=_(e,0,1),n=_(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return k(e,S,(function(e,t,n,i){r[r.length]=n?k(i,A,"$1"):t||e})),r},C=function(e,t){var n,r=e;if(b(y,r)&&(r="%"+(n=y[r])[0]+"%"),b(m,r)){var a=m[r];if(a===p&&(a=v(r)),void 0===a&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:a}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=O(e),r=n.length>0?n[0]:"",a=C("%"+r+"%",t),s=a.name,l=a.value,c=!1,f=a.alias;f&&(r=f[0],x(n,w([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],v=_(h,0,1),y=_(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===y||"'"===y||"`"===y)&&v!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(c=!0),b(m,s="%"+(r+="."+h)+"%"))l=m[s];else if(null!=l){if(!(h in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&d+1>=n.length){var g=u(l,h);l=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[h]}else p=b(l,h),l=l[h];p&&!c&&(m[s]=l)}}return l}},2926:function(e,t,n){"use strict";var r=n(8476)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},5520:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(541);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},541:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},8857:function(e,t,n){"use strict";var r=n(541);e.exports=function(){return r()&&!!Symbol.toStringTag}},7838:function(e,t,n){"use strict";var r=n(1199);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},545:function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+e[t+f],f+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+f],f+=d,c-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=l}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,u,l=8*a-i-1,c=(1<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-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,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=255&o,p+=h,o/=256,l-=8);e[n+p-h]|=128*m}},273:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},5021:function(e,t,n){"use strict";var r=n(8857)(),i=n(4680)("Object.prototype.toString"),a=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},o=function(e){return!!a(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return a(arguments)}();a.isLegacyArguments=o,e.exports=s?a:o},8866:function(e){"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(e){e!==n&&(i=null)}else i=null;var a=/^\s*class\b/,o=function(e){try{var t=r.call(e);return a.test(t)}catch(e){return!1}},s=function(e){try{return!o(e)&&(r.call(e),!0)}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var d=document.all;u.call(d)===u.call(document.all)&&(f=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!o(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(l)return s(e);if(o(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t||s(e)}},7469:function(e,t,n){"use strict";var r,i=Object.prototype.toString,a=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=n(8857)(),u=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(a.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if(void 0===r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&u(t)}return u(e)===r}},1546:function(e){"use strict";e.exports=function(e){return e!=e}},5738:function(e,t,n){"use strict";var r=n(9962),i=n(9959),a=n(1546),o=n(9221),s=n(5434),u=r(o(),Number);i(u,{getPolyfill:o,implementation:a,shim:s}),e.exports=u},9221:function(e,t,n){"use strict";var r=n(1546);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},5434:function(e,t,n){"use strict";var r=n(9959),i=n(9221);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},2105:function(e,t,n){"use strict";var r=n(5767),i=n(3645),a=n(4680),o=a("Object.prototype.toString"),s=n(8857)(),u="undefined"==typeof globalThis?n.g:globalThis,l=i(),c=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},f=a("String.prototype.slice"),d={},p=n(3397),h=Object.getPrototypeOf;s&&p&&h&&r(l,(function(e){var t=new u[e];if(Symbol.toStringTag in t){var n=h(t),r=p(n,Symbol.toStringTag);if(!r){var i=h(n);r=p(i,Symbol.toStringTag)}d[e]=r.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s||!(Symbol.toStringTag in e)){var t=f(o(e),8,-1);return c(l,t)>-1}return!!p&&function(e){var t=!1;return r(d,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},4091:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},8199:function(e,t,n){"use strict";var r=n(9959),i=n(9962),a=n(4091),o=n(4584),s=n(8229),u=i(o(),Object);r(u,{getPolyfill:o,implementation:a,shim:s}),e.exports=u},4584:function(e,t,n){"use strict";var r=n(4091);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},8229:function(e,t,n){"use strict";var r=n(4584),i=n(9959);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},2782:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=n(2950),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),l=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===a.call(e),r=o(e),s=t&&"[object String]"===a.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=l&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(r&&e.length>0)for(var v=0;v<e.length;++v)d.push(String(v));else for(var y in e)h&&"prototype"===y||!i.call(e,y)||d.push(String(y));if(u)for(var g=function(e){if("undefined"==typeof window||!p)return f(e);try{return f(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)g&&"constructor"===c[b]||!i.call(e,c[b])||d.push(c[b]);return d}}e.exports=r},6328:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(2950),a=Object.keys,o=a?function(e){return a(e)}:n(2782),s=Object.keys;o.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)}):Object.keys=o;return Object.keys||o},e.exports=o},2950:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},6931:function(e,t){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(e[i]=n[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(n)},3040:function(e){"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}},7572:function(e){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},6558:function(e){"use strict";var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,i){var a=t,o=i+r;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^n[s])];return-1^e}},8106:function(e,t,n){"use strict";var r,i=n(6931),a=n(3226),o=n(3040),s=n(6558),u=n(4274),l=-2,c=258,f=262,d=103,p=113,h=666;function m(e,t){return e.msg=u[t],t}function v(e){return(e<<1)-(e>4?9:0)}function y(e){for(var t=e.length;--t>=0;)e[t]=0}function g(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function b(e,t){a._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,g(e.strm)}function w(e,t){e.pending_buf[e.pending++]=t}function x(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function k(e,t,n,r){var a=e.avail_in;return a>r&&(a=r),0===a?0:(e.avail_in-=a,i.arraySet(t,e.input,e.next_in,a,n),1===e.state.wrap?e.adler=o(e.adler,t,a,n):2===e.state.wrap&&(e.adler=s(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)}function _(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-f?e.strstart-(e.w_size-f):0,l=e.window,d=e.w_mask,p=e.prev,h=e.strstart+c,m=l[a+o-1],v=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+o]===v&&l[n+o-1]===m&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do{}while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<h);if(r=c-(h-a),a=h-c,r>o){if(e.match_start=t,o=r,r>=s)break;m=l[a+o-1],v=l[a+o]}}}while((t=p[t&d])>u&&0!=--i);return o<=e.lookahead?o:e.lookahead}function E(e){var t,n,r,a,o,s=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-f)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=s?r-s:0}while(--n);t=n=s;do{r=e.prev[--t],e.prev[t]=r>=s?r-s:0}while(--n);a+=s}if(0===e.strm.avail_in)break;if(n=k(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=n,e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+3-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<f&&0!==e.strm.avail_in)}function S(e,t){for(var n,r;;){if(e.lookahead<f){if(E(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-f&&(e.match_length=_(e,n)),e.match_length>=3)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function A(e,t){for(var n,r,i;;){if(e.lookahead<f){if(E(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-f&&(e.match_length=_(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(b(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&b(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function O(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function C(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),y(this.dyn_ltree),y(this.dyn_dtree),y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),y(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function j(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:p,e.adler=2===t.wrap?0:1,t.last_flush=0,a._tr_init(t),0):m(e,l)}function N(e){var t,n=j(e);return 0===n&&((t=e.state).window_size=2*t.w_size,y(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function T(e,t,n,r,a,o){if(!e)return l;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),a<1||a>9||8!==n||r<8||r>15||t<0||t>9||o<0||o>4)return m(e,l);8===r&&(r=9);var u=new C;return e.state=u,u.strm=e,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=a+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<a+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=o,u.method=n,N(e)}r=[new O(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(E(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,b(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-f&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(b(e,!1),e.strm.avail_out),1)})),new O(4,4,8,4,S),new O(4,5,16,8,S),new O(4,6,32,32,S),new O(4,4,16,16,A),new O(8,16,32,32,A),new O(8,16,128,128,A),new O(8,32,128,256,A),new O(32,128,258,1024,A),new O(32,258,258,4096,A)],t.deflateInit=function(e,t){return T(e,t,8,15,8,0)},t.deflateInit2=T,t.deflateReset=N,t.deflateResetKeep=j,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?l:(e.state.gzhead=t,0):l},t.deflate=function(e,t){var n,i,o,u;if(!e||!e.state||t>5||t<0)return e?m(e,l):l;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===h&&4!==t)return m(e,0===e.avail_out?-5:l);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,w(i,31),w(i,139),w(i,8),i.gzhead?(w(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),w(i,255&i.gzhead.time),w(i,i.gzhead.time>>8&255),w(i,i.gzhead.time>>16&255),w(i,i.gzhead.time>>24&255),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(w(i,255&i.gzhead.extra.length),w(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(w(i,0),w(i,0),w(i,0),w(i,0),w(i,0),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,3),i.status=p);else{var f=8+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=p,x(i,f),0!==i.strstart&&(x(i,e.adler>>>16),x(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending!==i.pending_buf_size));)w(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,w(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),g(e),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,w(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.status=d)}else i.status=d;if(i.status===d&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&g(e),i.pending+2<=i.pending_buf_size&&(w(i,255&e.adler),w(i,e.adler>>8&255),e.adler=0,i.status=p)):i.status=p),0!==i.pending){if(g(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&v(t)<=v(n)&&4!==t)return m(e,-5);if(i.status===h&&0!==e.avail_in)return m(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==h){var k=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(E(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=c){if(E(e),e.lookahead<=c&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+c;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=c-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=a._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==k&&4!==k||(i.status=h),1===k||3===k)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===k&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(y(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),g(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(w(i,255&e.adler),w(i,e.adler>>8&255),w(i,e.adler>>16&255),w(i,e.adler>>24&255),w(i,255&e.total_in),w(i,e.total_in>>8&255),w(i,e.total_in>>16&255),w(i,e.total_in>>24&255)):(x(i,e.adler>>>16),x(i,65535&e.adler)),g(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==d&&t!==p&&t!==h?m(e,l):(e.state=null,t===p?m(e,-3):0):l},t.deflateSetDictionary=function(e,t){var n,r,a,s,u,c,f,d,p=t.length;if(!e||!e.state)return l;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return l;for(1===s&&(e.adler=o(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(y(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,t,p-n.w_size,n.w_size,0),t=d,p=n.w_size),u=e.avail_in,c=e.next_in,f=e.input,e.avail_in=p,e.next_in=0,e.input=t,E(n);n.lookahead>=3;){r=n.strstart,a=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--a);n.strstart=r,n.lookahead=2,E(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=c,e.input=f,e.avail_in=u,n.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},6997:function(e){"use strict";e.exports=function(e,t){var n,r,i,a,o,s,u,l,c,f,d,p,h,m,v,y,g,b,w,x,k,_,E,S,A;n=e.state,r=e.next_in,S=e.input,i=r+(e.avail_in-5),a=e.next_out,A=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),u=n.dmax,l=n.wsize,c=n.whave,f=n.wnext,d=n.window,p=n.hold,h=n.bits,m=n.lencode,v=n.distcode,y=(1<<n.lenbits)-1,g=(1<<n.distbits)-1;e:do{h<15&&(p+=S[r++]<<h,h+=8,p+=S[r++]<<h,h+=8),b=m[p&y];t:for(;;){if(p>>>=w=b>>>24,h-=w,0==(w=b>>>16&255))A[a++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=m[(65535&b)+(p&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&b,(w&=15)&&(h<w&&(p+=S[r++]<<h,h+=8),x+=p&(1<<w)-1,p>>>=w,h-=w),h<15&&(p+=S[r++]<<h,h+=8,p+=S[r++]<<h,h+=8),b=v[p&g];n:for(;;){if(p>>>=w=b>>>24,h-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=v[(65535&b)+(p&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(k=65535&b,h<(w&=15)&&(p+=S[r++]<<h,(h+=8)<w&&(p+=S[r++]<<h,h+=8)),(k+=p&(1<<w)-1)>u){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=w,h-=w,k>(w=a-o)){if((w=k-w)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(_=0,E=d,0===f){if(_+=l-w,w<x){x-=w;do{A[a++]=d[_++]}while(--w);_=a-k,E=A}}else if(f<w){if(_+=l+f-w,(w-=f)<x){x-=w;do{A[a++]=d[_++]}while(--w);if(_=0,f<x){x-=w=f;do{A[a++]=d[_++]}while(--w);_=a-k,E=A}}}else if(_+=f-w,w<x){x-=w;do{A[a++]=d[_++]}while(--w);_=a-k,E=A}for(;x>2;)A[a++]=E[_++],A[a++]=E[_++],A[a++]=E[_++],x-=3;x&&(A[a++]=E[_++],x>1&&(A[a++]=E[_++]))}else{_=a-k;do{A[a++]=A[_++],A[a++]=A[_++],A[a++]=A[_++],x-=3}while(x>2);x&&(A[a++]=A[_++],x>1&&(A[a++]=A[_++]))}break}}break}}while(r<i&&a<s);r-=x=h>>3,p&=(1<<(h-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=h}},1833:function(e,t,n){"use strict";var r=n(6931),i=n(3040),a=n(6558),o=n(6997),s=n(3443),u=-2,l=12,c=30;function f(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):u}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,p(e)):u}function m(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?u:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,h(e))):u}function v(e,t){var n,r;return e?(r=new d,e.state=r,r.window=null,0!==(n=m(e,t))&&(e.state=null),n):u}var y,g,b=!0;function w(e){if(b){var t;for(y=new r.Buf32(512),g=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,g,0,e.work,{bits:5}),b=!1}e.lencode=y,e.lenbits=9,e.distcode=g,e.distbits=5}function x(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}t.inflateReset=h,t.inflateReset2=m,t.inflateResetKeep=p,t.inflateInit=function(e){return v(e,15)},t.inflateInit2=v,t.inflate=function(e,t){var n,d,p,h,m,v,y,g,b,k,_,E,S,A,O,C,j,N,T,P,R,L,I,M,B=0,D=new r.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return u;(n=e.state).mode===l&&(n.mode=13),m=e.next_out,p=e.output,y=e.avail_out,h=e.next_in,d=e.input,v=e.avail_in,g=n.hold,b=n.bits,k=v,_=y,L=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(2&n.wrap&&35615===g){n.check=0,D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0),g=0,b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",n.mode=c;break}if(8!=(15&g)){e.msg="unknown compression method",n.mode=c;break}if(b-=4,R=8+(15&(g>>>=4)),0===n.wbits)n.wbits=R;else if(R>n.wbits){e.msg="invalid window size",n.mode=c;break}n.dmax=1<<R,e.adler=n.check=1,n.mode=512&g?10:l,g=0,b=0;break;case 2:for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(n.flags=g,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=c;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=c;break}n.head&&(n.head.text=g>>8&1),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0)),g=0,b=0,n.mode=3;case 3:for(;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.head&&(n.head.time=g),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,D[2]=g>>>16&255,D[3]=g>>>24&255,n.check=a(n.check,D,4,0)),g=0,b=0,n.mode=4;case 4:for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.head&&(n.head.xflags=255&g,n.head.os=g>>8),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0)),g=0,b=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.length=g,n.head&&(n.head.extra_len=g),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=a(n.check,D,2,0)),g=0,b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((E=n.length)>v&&(E=v),E&&(n.head&&(R=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,d,h,E,R)),512&n.flags&&(n.check=a(n.check,d,E,h)),v-=E,h+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break e;E=0;do{R=d[h+E++],n.head&&R&&n.length<65536&&(n.head.name+=String.fromCharCode(R))}while(R&&E<v);if(512&n.flags&&(n.check=a(n.check,d,E,h)),v-=E,h+=E,R)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break e;E=0;do{R=d[h+E++],n.head&&R&&n.length<65536&&(n.head.comment+=String.fromCharCode(R))}while(R&&E<v);if(512&n.flags&&(n.check=a(n.check,d,E,h)),v-=E,h+=E,R)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(g!==(65535&n.check)){e.msg="header crc mismatch",n.mode=c;break}g=0,b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=l;break;case 10:for(;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}e.adler=n.check=f(g),g=0,b=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=v,n.hold=g,n.bits=b,2;e.adler=n.check=1,n.mode=l;case l:if(5===t||6===t)break e;case 13:if(n.last){g>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}switch(n.last=1&g,b-=1,3&(g>>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,6===t){g>>>=2,b-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=c}g>>>=2,b-=2;break;case 14:for(g>>>=7&b,b-=7&b;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",n.mode=c;break}if(n.length=65535&g,g=0,b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(E=n.length){if(E>v&&(E=v),E>y&&(E=y),0===E)break e;r.arraySet(p,d,h,E,m),v-=E,h+=E,y-=E,m+=E,n.length-=E;break}n.mode=l;break;case 17:for(;b<14;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(n.nlen=257+(31&g),g>>>=5,b-=5,n.ndist=1+(31&g),g>>>=5,b-=5,n.ncode=4+(15&g),g>>>=4,b-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=c;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;b<3;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.lens[U[n.have++]]=7&g,g>>>=3,b-=3}for(;n.have<19;)n.lens[U[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},L=s(0,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,L){e.msg="invalid code lengths set",n.mode=c;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;C=(B=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,j=65535&B,!((O=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(j<16)g>>>=O,b-=O,n.lens[n.have++]=j;else{if(16===j){for(M=O+2;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(g>>>=O,b-=O,0===n.have){e.msg="invalid bit length repeat",n.mode=c;break}R=n.lens[n.have-1],E=3+(3&g),g>>>=2,b-=2}else if(17===j){for(M=O+3;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}b-=O,R=0,E=3+(7&(g>>>=O)),g>>>=3,b-=3}else{for(M=O+7;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}b-=O,R=0,E=11+(127&(g>>>=O)),g>>>=7,b-=7}if(n.have+E>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=c;break}for(;E--;)n.lens[n.have++]=R}}if(n.mode===c)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=c;break}if(n.lenbits=9,I={bits:n.lenbits},L=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,L){e.msg="invalid literal/lengths set",n.mode=c;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},L=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,L){e.msg="invalid distances set",n.mode=c;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(v>=6&&y>=258){e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=v,n.hold=g,n.bits=b,o(e,_),m=e.next_out,p=e.output,y=e.avail_out,h=e.next_in,d=e.input,v=e.avail_in,g=n.hold,b=n.bits,n.mode===l&&(n.back=-1);break}for(n.back=0;C=(B=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,j=65535&B,!((O=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(C&&0==(240&C)){for(N=O,T=C,P=j;C=(B=n.lencode[P+((g&(1<<N+T)-1)>>N)])>>>16&255,j=65535&B,!(N+(O=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}g>>>=N,b-=N,n.back+=N}if(g>>>=O,b-=O,n.back+=O,n.length=j,0===C){n.mode=26;break}if(32&C){n.back=-1,n.mode=l;break}if(64&C){e.msg="invalid literal/length code",n.mode=c;break}n.extra=15&C,n.mode=22;case 22:if(n.extra){for(M=n.extra;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.length+=g&(1<<n.extra)-1,g>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;C=(B=n.distcode[g&(1<<n.distbits)-1])>>>16&255,j=65535&B,!((O=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(0==(240&C)){for(N=O,T=C,P=j;C=(B=n.distcode[P+((g&(1<<N+T)-1)>>N)])>>>16&255,j=65535&B,!(N+(O=B>>>24)<=b);){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}g>>>=N,b-=N,n.back+=N}if(g>>>=O,b-=O,n.back+=O,64&C){e.msg="invalid distance code",n.mode=c;break}n.offset=j,n.extra=15&C,n.mode=24;case 24:if(n.extra){for(M=n.extra;b<M;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}n.offset+=g&(1<<n.extra)-1,g>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=c;break}n.mode=25;case 25:if(0===y)break e;if(E=_-y,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=c;break}E>n.wnext?(E-=n.wnext,S=n.wsize-E):S=n.wnext-E,E>n.length&&(E=n.length),A=n.window}else A=p,S=m-n.offset,E=n.length;E>y&&(E=y),y-=E,n.length-=E;do{p[m++]=A[S++]}while(--E);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;p[m++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===v)break e;v--,g|=d[h++]<<b,b+=8}if(_-=y,e.total_out+=_,n.total+=_,_&&(e.adler=n.check=n.flags?a(n.check,p,_,m-_):i(n.check,p,_,m-_)),_=y,(n.flags?g:f(g))!==n.check){e.msg="incorrect data check",n.mode=c;break}g=0,b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===v)break e;v--,g+=d[h++]<<b,b+=8}if(g!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=c;break}g=0,b=0}n.mode=29;case 29:L=1;break e;case c:L=-3;break e;case 31:return-4;default:return u}return e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=v,n.hold=g,n.bits=b,(n.wsize||_!==e.avail_out&&n.mode<c&&(n.mode<27||4!==t))&&x(e,e.output,e.next_out,_-e.avail_out)?(n.mode=31,-4):(k-=e.avail_in,_-=e.avail_out,e.total_in+=k,e.total_out+=_,n.total+=_,n.wrap&&_&&(e.adler=n.check=n.flags?a(n.check,p,_,e.next_out-_):i(n.check,p,_,e.next_out-_)),e.data_type=n.bits+(n.last?64:0)+(n.mode===l?128:0)+(20===n.mode||15===n.mode?256:0),(0===k&&0===_||4===t)&&0===L&&(L=-5),L)},t.inflateEnd=function(e){if(!e||!e.state)return u;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?u:(n.head=t,t.done=!1,0):u},t.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?u:11===n.mode&&i(1,t,r,0)!==n.check?-3:x(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):u},t.inflateInfo="pako inflate (from Nodeca project)"},3443:function(e,t,n){"use strict";var r=n(6931),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,u,l,c,f,d){var p,h,m,v,y,g,b,w,x,k=d.bits,_=0,E=0,S=0,A=0,O=0,C=0,j=0,N=0,T=0,P=0,R=null,L=0,I=new r.Buf16(16),M=new r.Buf16(16),B=null,D=0;for(_=0;_<=15;_++)I[_]=0;for(E=0;E<u;E++)I[t[n+E]]++;for(O=k,A=15;A>=1&&0===I[A];A--);if(O>A&&(O=A),0===A)return l[c++]=20971520,l[c++]=20971520,d.bits=1,0;for(S=1;S<A&&0===I[S];S++);for(O<S&&(O=S),N=1,_=1;_<=15;_++)if(N<<=1,(N-=I[_])<0)return-1;if(N>0&&(0===e||1!==A))return-1;for(M[1]=0,_=1;_<15;_++)M[_+1]=M[_]+I[_];for(E=0;E<u;E++)0!==t[n+E]&&(f[M[t[n+E]]++]=E);if(0===e?(R=B=f,g=19):1===e?(R=i,L-=257,B=a,D-=257,g=256):(R=o,B=s,g=-1),P=0,E=0,_=S,y=c,C=O,j=0,m=-1,v=(T=1<<O)-1,1===e&&T>852||2===e&&T>592)return 1;for(;;){b=_-j,f[E]<g?(w=0,x=f[E]):f[E]>g?(w=B[D+f[E]],x=R[L+f[E]]):(w=96,x=0),p=1<<_-j,S=h=1<<C;do{l[y+(P>>j)+(h-=p)]=b<<24|w<<16|x|0}while(0!==h);for(p=1<<_-1;P&p;)p>>=1;if(0!==p?(P&=p-1,P+=p):P=0,E++,0==--I[_]){if(_===A)break;_=t[n+f[E]]}if(_>O&&(P&v)!==m){for(0===j&&(j=O),y+=S,N=1<<(C=_-j);C+j<A&&!((N-=I[C+j])<=0);)C++,N<<=1;if(T+=1<<C,1===e&&T>852||2===e&&T>592)return 1;l[m=P&v]=O<<24|C<<16|y-c|0}}return 0!==P&&(l[y+P]=_-j<<24|64<<16|0),d.bits=O,0}},4274:function(e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},3226:function(e,t,n){"use strict";var r=n(6931);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var a=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],o=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],l=new Array(576);i(l);var c=new Array(60);i(c);var f=new Array(512);i(f);var d=new Array(256);i(d);var p=new Array(29);i(p);var h,m,v,y=new Array(30);function g(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?f[e]:f[256+(e>>>7)]}function x(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function k(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,x(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function _(e,t,n){k(e,n[2*t],n[2*t+1])}function E(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function S(e,t,n){var r,i,a=new Array(16),o=0;for(r=1;r<=15;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=E(a[s]++,s))}}function A(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function O(e){e.bi_valid>8?x(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function C(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function j(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&C(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!C(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function N(e,t,n){var r,i,s,u,l=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],i=e.pending_buf[e.l_buf+l],l++,0===r?_(e,i,t):(_(e,(s=d[i])+256+1,t),0!==(u=a[s])&&k(e,i-=p[s],u),_(e,s=w(--r),n),0!==(u=o[s])&&k(e,r-=y[s],u))}while(l<e.last_lit);_(e,256,t)}function T(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==a[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)j(e,a,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,j(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,u=t.dyn_tree,l=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,h=t.stat_desc.max_length,m=0;for(a=0;a<=15;a++)e.bl_count[a]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(a=u[2*u[2*(r=e.heap[n])+1]+1]+1)>h&&(a=h,m++),u[2*r+1]=a,r>l||(e.bl_count[a]++,o=0,r>=p&&(o=d[r-p]),s=u[2*r],e.opt_len+=s*(a+o),f&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==m){do{for(a=h-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[h]--,m-=2}while(m>0);for(a=h;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>l||(u[2*i+1]!==a&&(e.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),r--)}}(e,t),S(a,l,e.bl_count)}function P(e,t,n){var r,i,a=-1,o=t[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<u&&i===o||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4))}function R(e,t,n){var r,i,a=-1,o=t[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<u&&i===o)){if(s<l)do{_(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(_(e,i,e.bl_tree),s--),_(e,16,e.bl_tree),k(e,s-3,2)):s<=10?(_(e,17,e.bl_tree),k(e,s-3,3)):(_(e,18,e.bl_tree),k(e,s-11,7));s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4)}}i(y);var L=!1;function I(e,t,n,i){k(e,0+(i?1:0),3),function(e,t,n,i){O(e),x(e,n),x(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}t._tr_init=function(e){L||(function(){var e,t,n,r,i,u=new Array(16);for(n=0,r=0;r<28;r++)for(p[r]=n,e=0;e<1<<a[r];e++)d[n++]=r;for(d[n-1]=r,i=0,r=0;r<16;r++)for(y[r]=i,e=0;e<1<<o[r];e++)f[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,e=0;e<1<<o[r]-7;e++)f[256+i++]=r;for(t=0;t<=15;t++)u[t]=0;for(e=0;e<=143;)l[2*e+1]=8,e++,u[8]++;for(;e<=255;)l[2*e+1]=9,e++,u[9]++;for(;e<=279;)l[2*e+1]=7,e++,u[7]++;for(;e<=287;)l[2*e+1]=8,e++,u[8]++;for(S(l,287,u),e=0;e<30;e++)c[2*e+1]=5,c[2*e]=E(e,5);h=new g(l,a,257,286,15),m=new g(c,o,0,30,15),v=new g(new Array(0),s,0,19,7)}(),L=!0),e.l_desc=new b(e.dyn_ltree,h),e.d_desc=new b(e.dyn_dtree,m),e.bl_desc=new b(e.bl_tree,v),e.bi_buf=0,e.bi_valid=0,A(e)},t._tr_stored_block=I,t._tr_flush_block=function(e,t,n,r){var i,a,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),T(e,e.l_desc),T(e,e.d_desc),o=function(e){var t;for(P(e,e.dyn_ltree,e.l_desc.max_code),P(e,e.dyn_dtree,e.d_desc.max_code),T(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?I(e,t,n,r):4===e.strategy||a===i?(k(e,2+(r?1:0),3),N(e,l,c)):(k(e,4+(r?1:0),3),function(e,t,n,r){var i;for(k(e,t-257,5),k(e,n-1,5),k(e,r-4,4),i=0;i<r;i++)k(e,e.bl_tree[2*u[i]+1],3);R(e,e.dyn_ltree,t-1),R(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),N(e,e.dyn_ltree,e.dyn_dtree)),A(e),r&&O(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(d[n]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){k(e,2,3),_(e,256,l),function(e){16===e.bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},400:function(e){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},7490:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,u=[],l=!1,c=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):c=-1,u.length&&d())}function d(){if(!l){var e=o(f);l=!0;for(var t=u.length;t;){for(s=u,u=[];++c<t;)s&&s[c].run();c=-1,t=u.length}s=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||o(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},1729:function(e,t,n){"use strict";var r=n(9165);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,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:a,resetWarningCache:i};return n.PropTypes=n,n}},5192:function(e,t,n){e.exports=n(1729)()},9165:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1092:function(e){"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,a,o;if("string"==typeof t&&(a="not ",t.substr(0,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))o="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(s," ").concat(i," ").concat(r(t,"type"))}return o+". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},6085:function(e,t,n){"use strict";var r=n(7490),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var a=n(6405),o=n(7423);n(273)(c,a);for(var s=i(o.prototype),u=0;u<s.length;u++){var l=s[u];c.prototype[l]||(c.prototype[l]=o.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},9543:function(e,t,n){"use strict";e.exports=i;var r=n(4917);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(273)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},6405:function(e,t,n){"use strict";var r,i=n(7490);e.exports=S,S.ReadableState=E,n(8041).EventEmitter;var a,o=function(e,t){return e.listeners(t).length},s=n(8747),u=n(918).Buffer,l=n.g.Uint8Array||function(){},c=n(4616);a=c&&c.debuglog?c.debuglog("stream"):function(){};var f,d,p,h=n(5489),m=n(6617),v=n(5999).getHighWaterMark,y=n(1092).q,g=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,x=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(273)(S,s);var k=m.errorOrDestroy,_=["error","close","destroy","pause","resume"];function E(e,t,i){r=r||n(6085),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(8570).s),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function S(e){if(r=r||n(6085),!(this instanceof S))return new S(e);var t=this instanceof r;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function A(e,t,n,r,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,T(e)))}}(e,s);else if(i||(o=function(e,t){var n,r;return r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new g("chunk",["string","Buffer","Uint8Array"],t)),n}(s,t)),o)k(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r)s.endEmitted?k(e,new x):O(e,s,t,!0);else if(s.ended)k(e,new b);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):P(e,s)):O(e,s,t,!1)}else r||(s.reading=!1,P(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function O(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&N(e)),P(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=m.destroy,S.prototype._undestroy=m.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),A(this,e,t,!1,n)},S.prototype.unshift=function(e){return A(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){f||(f=n(8570).s);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var C=1073741824;function j(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function N(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(T,e))}function T(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(a("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){a("readable nexttick read 0"),e.read(0)}function M(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function U(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(F,t,e))}function F(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}S.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return a("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):N(this),null;if(0===(e=j(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,i=t.needReadable;return a("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&a("length less than watermark",i=!0),t.ended||t.reading?a("reading or ended",i=!1):i&&(a("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=j(n,t))),null===(r=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){k(this,new w("_read()"))},S.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,a("pipe count=%d opts=%j",r.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?m:u;function u(){a("onend"),e.end()}r.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",(function t(i,o){a("onunpipe"),i===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,a("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",f),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}));var l=function(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,B(e))}}(n);e.on("drain",l);var c=!1;function f(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==z(r.pipes,e))&&!c&&(a("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function d(t){a("onerror",t),m(),e.removeListener("error",d),0===o(e,"error")&&k(e,t)}function p(){e.removeListener("finish",h),m()}function h(){a("onfinish"),e.removeListener("close",p),m()}function m(){a("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",p),e.once("finish",h),e.emit("pipe",n),r.flowing||(a("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=z(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,a("on readable",r.length,r.reading),r.length?N(this):r.reading||i.nextTick(I,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(L,this),n},S.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(L,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(M,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(a("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){a("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!=i)&&(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<_.length;o++)e.on(_[o],this.emit.bind(this,_[o]));return this._read=function(t){a("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(1218)),d(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=D,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===p&&(p=n(7670)),p(S,e,t)})},4917:function(e,t,n){"use strict";e.exports=c;var r=n(1092).q,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(6085);function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,n){d(e,t,n)}))}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}n(273)(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,n){n(new i("_transform()"))},c.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},7423:function(e,t,n){"use strict";var r,i=n(7490);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=S,S.WritableState=E;var o,s={deprecate:n(9043)},u=n(8747),l=n(918).Buffer,c=n.g.Uint8Array||function(){},f=n(6617),d=n(5999).getHighWaterMark,p=n(1092).q,h=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,v=p.ERR_MULTIPLE_CALLBACK,y=p.ERR_STREAM_CANNOT_PIPE,g=p.ERR_STREAM_DESTROYED,b=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,x=p.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function _(){}function E(e,t,o){r=r||n(6085),e=e||{},"boolean"!=typeof o&&(o=t instanceof r),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if("function"!=typeof a)throw new v;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(T,e,t),e._writableState.errorEmitted=!0,k(e,r)):(a(r),e._writableState.errorEmitted=!0,k(e,r),T(e,t))}(e,n,r,t,a);else{var o=j(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||C(e,n),r?i.nextTick(O,e,n,o,a):O(e,n,o,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function S(e){var t=this instanceof(r=r||n(6085));if(!t&&!o.call(S,this))return new S(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function A(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function O(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),T(e,t)}function C(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,A(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(A(e,t,!1,t.objectMode?1:l.length,l,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function j(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function N(e,t){e._final((function(n){t.pendingcb--,n&&k(e,n),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var n=j(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(N,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(273)(S,u),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===S&&e&&e._writableState instanceof E}})):o=function(e){return e instanceof this},S.prototype.pipe=function(){k(this,new y)},S.prototype.write=function(e,t,n){var r,a=this._writableState,o=!1,s=!a.objectMode&&(r=e,l.isBuffer(r)||r instanceof c);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=_),a.ending?function(e,t){var n=new w;k(e,n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var a;return null===n?a=new b:"string"==typeof n||t.objectMode||(a=new h("chunk",["string","Buffer"],n)),!a||(k(e,a),i.nextTick(r,a),!1)}(this,a,e,n))&&(a.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,r,i,a);return u}(this,a,s,e,t,n)),o},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new m("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,T(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=f.destroy,S.prototype._undestroy=f.undestroy,S.prototype._destroy=function(e,t){t(e)}},1218:function(e,t,n){"use strict";var r,i=n(7490);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(4297),s=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),p=Symbol("stream");function h(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var n=e[p].read();null!==n&&(e[f]=null,e[s]=null,e[u]=null,t(h(n,!1)))}}function v(e){i.nextTick(m,e)}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((a(r={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(h(void 0,!0));if(this[p].destroyed)return new Promise((function(t,n){i.nextTick((function(){e[l]?n(e[l]):t(h(void 0,!0))}))}));var n,r=this[f];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[c]?n(h(void 0,!0)):t[d](n,r)}),r)}}(r,this));else{var a=this[p].read();if(null!==a)return Promise.resolve(h(a,!1));n=new Promise(this[d])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),a(r,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(h(void 0,!0))}))}))})),r),y);e.exports=function(e){var t,n=Object.create(g,(a(t={},p,{value:e,writable:!0}),a(t,s,{value:null,writable:!0}),a(t,u,{value:null,writable:!0}),a(t,l,{value:null,writable:!0}),a(t,c,{value:e._readableState.endEmitted,writable:!0}),a(t,d,{value:function(e,t){var r=n[p].read();r?(n[f]=null,n[s]=null,n[u]=null,e(h(r,!1))):(n[s]=e,n[u]=t)},writable:!0}),t));return n[f]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[u];return null!==t&&(n[f]=null,n[s]=null,n[u]=null,t(e)),void(n[l]=e)}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[u]=null,r(h(void 0,!0))),n[c]=!0})),e.on("readable",v.bind(null,n)),n}},5489:function(e,t,n){"use strict";function r(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 i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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)}}var o=n(918).Buffer,s=n(2361).inspect,u=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0==(e-=a)){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&a(t.prototype,n),e}()},6617:function(e,t,n){"use strict";var r=n(7490);function i(e,t){o(e,t),a(e)}function a(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(a,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(a,n),t(e)):r.nextTick(a,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},4297:function(e,t,n){"use strict";var r=n(1092).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,a){if("function"==typeof n)return e(t,null,n);n||(n={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(a||i);var o=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,u=function(){t.writable||c()},l=t._writableState&&t._writableState.finished,c=function(){s=!1,l=!0,o||a.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){o=!1,f=!0,s||a.call(t)},p=function(e){a.call(t,e)},h=function(){var e;return o&&!f?(t._readableState&&t._readableState.ended||(e=new r),a.call(t,e)):s&&!l?(t._writableState&&t._writableState.ended||(e=new r),a.call(t,e)):void 0},m=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",c),t.on("abort",h),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",d),t.on("finish",c),!1!==n.error&&t.on("error",p),t.on("close",h),function(){t.removeListener("complete",c),t.removeListener("abort",h),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",d),t.removeListener("error",p),t.removeListener("close",h)}}},7670:function(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},6545:function(e,t,n){"use strict";var r,i=n(1092).q,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e,t,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;e.on("close",(function(){s=!0})),void 0===r&&(r=n(4297)),r(e,{readable:t,writable:i},(function(e){if(e)return a(e);s=!0,a()}));var u=!1;return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void a(t||new o("pipe"))}}function l(e){e()}function c(e,t){return e.pipe(t)}function f(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}e.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var o=t.map((function(e,n){var a=n<t.length-1;return u(e,a,n>0,(function(e){r||(r=e),e&&o.forEach(l),a||(o.forEach(l),i(r))}))}));return t.reduce(c)}},5999:function(e,t,n){"use strict";var r=n(1092).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var a=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},8747:function(e,t,n){e.exports=n(8041).EventEmitter},5734:function(e,t,n){var r=n(918),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},1398:function(e,t,n){"use strict";var r=n(918).Buffer,i=n(6690).default,a=n(9728).default,o=n(4370),s=function(){function e(t){if(i(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 a(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,i){var a=this._writeOffset,s=this._encoding;"number"==typeof n?a=n:"string"==typeof n&&(o.checkEncoding(n),s=n),"string"==typeof i&&(o.checkEncoding(i),s=i);var u=r.byteLength(e,s);return t?this.ensureInsertable(u,a):this._ensureWriteable(u,a),this._buff.write(e,a,u,s),t?this._writeOffset+=u:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,a+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,i=3*t/2+1;i<e&&(i=e),this._buff=r.allocUnsafe(i),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 i="number"==typeof r?r:this._writeOffset;return this._ensureWriteable(t,i),e.call(this._buff,n,i),"number"==typeof r?this._writeOffset=Math.max(this._writeOffset,i+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},4370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(918),i={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 a(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?i.INVALID_OFFSET_NON_NUMBER:i.INVALID_LENGTH_NON_NUMBER);if(!a(e)||e<0)throw new Error(t?i.INVALID_OFFSET:i.INVALID_LENGTH)}t.ERRORS=i,t.checkEncoding=function(e){if(!r.Buffer.isEncoding(e))throw new Error(i.INVALID_ENCODING)},t.isFiniteInteger=a,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(i.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,"."))}},3841:function(e,t,n){e.exports=i;var r=n(8041).EventEmitter;function i(){r.call(this)}n(273)(i,r),i.Readable=n(6405),i.Writable=n(7423),i.Duplex=n(6085),i.Transform=n(4917),i.PassThrough=n(9543),i.finished=n(4297),i.pipeline=n(6545),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",u));var o=!1;function s(){o||(o=!0,e.end())}function u(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",l),e.on("error",l),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},8570:function(e,t,n){"use strict";var r=n(5734).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},9043:function(e,t,n){var r=n(8466);function i(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(i("noDeprecation"))return e;var n=!1;return function(){if(!n){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?r.trace(t):r.warn(t),n=!0}return e.apply(this,arguments)}}},6181:function(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},902:function(e,t,n){"use strict";var r=n(5021),i=n(7469),a=n(1520),o=n(2105);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(u)var h=s(BigInt.prototype.valueOf);if(l)var m=s(Symbol.prototype.valueOf);function v(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function x(e){return"[object ArrayBuffer]"===c(e)}function k(e){return"undefined"!=typeof ArrayBuffer&&(x.working?x(e):e instanceof ArrayBuffer)}function _(e){return"[object DataView]"===c(e)}function E(e){return"undefined"!=typeof DataView&&(_.working?_(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=o,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||E(e)},t.isUint8Array=function(e){return"Uint8Array"===a(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===a(e)},t.isUint16Array=function(e){return"Uint16Array"===a(e)},t.isUint32Array=function(e){return"Uint32Array"===a(e)},t.isInt8Array=function(e){return"Int8Array"===a(e)},t.isInt16Array=function(e){return"Int16Array"===a(e)},t.isInt32Array=function(e){return"Int32Array"===a(e)},t.isFloat32Array=function(e){return"Float32Array"===a(e)},t.isFloat64Array=function(e){return"Float64Array"===a(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===a(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===a(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=k,_.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&_(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=E;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===c(e)}function O(e){return void 0!==S&&(void 0===A.working&&(A.working=A(new S)),A.working?A(e):e instanceof S)}function C(e){return v(e,f)}function j(e){return v(e,d)}function N(e){return v(e,p)}function T(e){return u&&v(e,h)}function P(e){return l&&v(e,m)}t.isSharedArrayBuffer=O,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=C,t.isStringObject=j,t.isBooleanObject=N,t.isBigIntObject=T,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return C(e)||j(e)||N(e)||T(e)||P(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(k(e)||O(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},7736:function(e,t,n){var r=n(7490),i=n(8466),a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])g(s)||!_(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var a=!1;return function(){if(!a){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),a=!0}return e.apply(this,arguments)}};var s={},u=/^$/;if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG){var l={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+l+"$","i")}function c(e,n){var r={seen:[],stylize:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),p(r,e,r.depth)}function f(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function d(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&A(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return w(i)||(i=p(e,i,r)),i}var a=function(e,t){if(x(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,n);if(a)return a;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),S(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(n);if(0===o.length){if(A(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(k(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(E(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return h(n)}var l,c="",f=!1,d=["{","}"];return v(n)&&(f=!0,d=["[","]"]),A(n)&&(c=" [Function"+(n.name?": "+n.name:"")+"]"),k(n)&&(c=" "+RegExp.prototype.toString.call(n)),E(n)&&(c=" "+Date.prototype.toUTCString.call(n)),S(n)&&(c=" "+h(n)),0!==o.length||f&&0!=n.length?r<0?k(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=f?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)T(t,String(o))?a.push(m(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(m(e,t,n,r,i,!0))})),a}(e,n,r,s,o):o.map((function(t){return m(e,n,r,s,t,f)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,d)):d[0]+c+d[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,n,r,i,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),T(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=g(n)?p(e,u.value,null):p(e,u.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),x(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function v(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function g(e){return null===e}function b(e){return"number"==typeof e}function w(e){return"string"==typeof e}function x(e){return void 0===e}function k(e){return _(e)&&"[object RegExp]"===O(e)}function _(e){return"object"==typeof e&&null!==e}function E(e){return _(e)&&"[object Date]"===O(e)}function S(e){return _(e)&&("[object Error]"===O(e)||e instanceof Error)}function A(e){return"function"==typeof e}function O(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(u.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(902),t.isArray=v,t.isBoolean=y,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=x,t.isRegExp=k,t.types.isRegExp=k,t.isObject=_,t.isDate=E,t.types.isDate=E,t.isError=S,t.types.isNativeError=S,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(6181);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",N(),t.format.apply(t,arguments))},t.inherits=n(273),t._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!=typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),P&&Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=P,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,t).then((function(e){r.nextTick(o.bind(null,null,e))}),(function(e){r.nextTick(R.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,a(e)),t}},1520:function(e,t,n){"use strict";var r=n(5767),i=n(3645),a=n(4680),o=a("Object.prototype.toString"),s=n(8857)(),u="undefined"==typeof globalThis?n.g:globalThis,l=i(),c=a("String.prototype.slice"),f={},d=n(3397),p=Object.getPrototypeOf;s&&d&&p&&r(l,(function(e){if("function"==typeof u[e]){var t=new u[e];if(Symbol.toStringTag in t){var n=p(t),r=d(n,Symbol.toStringTag);if(!r){var i=p(n);r=d(i,Symbol.toStringTag)}f[e]=r.get}}}));var h=n(2105);e.exports=function(e){return!!h(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return r(f,(function(n,r){if(!t)try{var i=n.call(e);i===r&&(t=i)}catch(e){}})),t}(e):c(o(e),8,-1))}},6:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(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,a){for(var o,s,u=i(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}},8666:function(e,t,n){"use strict";var r,i,a,o,s=n(8466);if("object"==typeof performance&&"function"==typeof performance.now){var u=performance;t.unstable_now=function(){return u.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var f=null,d=null,p=function e(){if(null!==f)try{var n=t.unstable_now();f(!0,n),f=null}catch(t){throw setTimeout(e,0),t}};r=function(e){null!==f?setTimeout(r,0,e):(f=e,setTimeout(p,0))},i=function(e,t){d=setTimeout(e,t)},a=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,m=window.clearTimeout;if(void 0!==s){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&s.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 v&&s.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,b=-1,w=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?s.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,_=k.port2;k.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();x=e+w;try{g(!0,e)?_.postMessage(null):(y=!1,g=null)}catch(e){throw _.postMessage(null),e}}else y=!1},r=function(e){g=e,y||(y=!0,_.postMessage(null))},i=function(e,n){b=h((function(){e(t.unstable_now())}),n)},a=function(){m(b),b=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<O(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function A(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,u=e[s];if(void 0!==o&&0>O(o,n))void 0!==u&&0>O(u,o)?(e[r]=u,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==u&&0>O(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],j=[],N=1,T=null,P=3,R=!1,L=!1,I=!1;function M(e){for(var t=S(j);null!==t;){if(null===t.callback)A(j);else{if(!(t.startTime<=e))break;A(j),t.sortIndex=t.expirationTime,E(C,t)}t=S(j)}}function B(e){if(I=!1,M(e),!L)if(null!==S(C))L=!0,r(D);else{var t=S(j);null!==t&&i(B,t.startTime-e)}}function D(e,n){L=!1,I&&(I=!1,a()),R=!0;var r=P;try{for(M(n),T=S(C);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=T.callback;if("function"==typeof o){T.callback=null,P=T.priorityLevel;var s=o(T.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?T.callback=s:T===S(C)&&A(C),M(n)}else A(C);T=S(C)}if(null!==T)var u=!0;else{var l=S(j);null!==l&&i(B,l.startTime-n),u=!1}return u}finally{T=null,P=r,R=!1}}var U=o;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(){L||R||(L=!0,r(D))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return S(C)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,n,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:N++,callback:n,priorityLevel:e,startTime:o,expirationTime:u=o+u,sortIndex:-1},o>s?(e.sortIndex=o,E(j,e),null===S(C)&&e===S(j)&&(I?a():I=!0,i(B,o-s))):(e.sortIndex=u,E(C,e),L||R||(L=!0,r(D))),e},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},3830:function(e,t,n){"use strict";e.exports=n(8666)},2361:function(){},4616:function(){},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},6690: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},9728: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},6389:function(e,t,n){var r=n(3808),i=n(9617),a=n(4993);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},3808:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1655:function(e,t,n){var r=n(6015);e.exports=function(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&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},9617:function(e){e.exports=function(){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}},e.exports.__esModule=!0,e.exports.default=e.exports},4993:function(e,t,n){var r=n(8698).default,i=n(6115);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3645:function(e,t,n){"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}},3397:function(e,t,n){"use strict";var r=n(8476)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t,r=n(3705),i=n(6377);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 o(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 s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||o(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 u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(t){switch(t){case e.Pressed:return"Pressed";case e.Released:return"Released";case e.Held:return"Held"}}function d(t){switch(t){case"Pressed":return e.Pressed;case"Released":return e.Released;case"Held":return e.Held}}function p(e){switch(e){case t.MuteAllChannels:return"muteallchannels";case t.PlayInstruction:return"playinstructions"}}function h(e){switch(e){case"muteallchannels":return t.MuteAllChannels;case"playinstructions":return t.PlayInstruction}}!function(e){e[e.Pressed=1]="Pressed",e[e.Released=2]="Released",e[e.Held=3]="Held"}(e||(e={})),function(e){e[e.MuteAllChannels=0]="MuteAllChannels",e[e.PlayInstruction=1]="PlayInstruction"}(t||(t={}));var m,v={users:[]};m||(m={});var y={netMode:"init",authStatus:"unknown",profile:void 0,clientRole:void 0,playerSlot:void 0,joinCode:void 0,gameState:void 0,gameMetadata:void 0,gamePaused:void 0,toasts:[],presence:c({},v),modal:void 0,modalOpts:void 0,muted:!1,deepLinks:{},reactions:{},targetConfig:void 0};function g(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)||o(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 b(e,t){switch(t.type){case"SET_USER_PROFILE":var n;return c(c({},e),{},{profile:t.profile,authStatus:null!==(n=t.profile)&&void 0!==n&&n.id?"signed-in":"signed-out"});case"SET_CLIENT_ROLE":return c(c({},e),{},{clientRole:t.clientRole});case"SET_NET_MODE":var r=c(c({},e),{},{netMode:t.mode});return"init"===t.mode&&(r=c(c({},r),{},{clientRole:void 0,playerSlot:void 0,joinCode:void 0,gameState:void 0,gameMetadata:void 0,gamePaused:void 0,presence:c({},v),modal:void 0,modalOpts:void 0})),r;case"SET_GAME_INFO":return c(c({},e),{},{gameState:c(c({},e.gameState),t.gameInfo)});case"SET_GAME_METADATA":return c(c({},e),{},{gameMetadata:t.gameMetadata});case"SET_GAME_ID":return c(c({},e),{},{gameState:c(c({},e.gameState),{},{gameId:t.gameId})});case"SET_PLAYER_SLOT":return c(c({},e),{},{playerSlot:t.playerSlot});case"CLEAR_GAME_INFO":return c(c({},e),{},{playerSlot:void 0,gameState:void 0,gameMetadata:void 0});case"SET_GAME_MODE":return c(c({},e),{},{gameState:c(c({},e.gameState),{},{gameMode:t.gameMode})});case"SHOW_TOAST":return c(c({},e),{},{toasts:[].concat(g(e.toasts),[t.toast])});case"DISMISS_TOAST":return c(c({},e),{},{toasts:e.toasts.filter((function(e){return e.id!==t.id}))});case"SET_PRESENCE":return c(c({},e),{},{presence:c({},t.presence)});case"SET_REACTION":return c(c({},e),{},{reactions:c(c({},e.reactions),{},u({},t.clientId,{id:t.reactionId,index:t.index}))});case"CLEAR_REACTION":return c(c({},e),{},{reactions:c(c({},e.reactions),{},u({},t.clientId,void 0))});case"SHOW_MODAL":return c(c({},e),{},{modal:t.modalType,modalOpts:t.modalOpts});case"CLEAR_MODAL":return c(c({},e),{},{modal:void 0,modalOpts:void 0});case"SET_DEEP_LINKS":return c(c({},e),{},{deepLinks:{shareCode:t.shareCode,joinCode:t.shareCode?void 0:t.joinCode}});case"SET_MUTE":return c(c({},e),{},{muted:t.value});case"SET_GAME_PAUSED":return c(c({},e),{},{gamePaused:t.gamePaused});case"SET_TARGET_CONFIG":return c(c({},e),{},{targetConfig:t.targetConfig})}}var w,x,k=n(1411),_=(0,r.createContext)({state:void 0,dispatch:void 0});function E(e){var t=s((0,r.useReducer)(b,y),2),n=t[0],i=t[1];return(0,r.useEffect)((function(){w=n,x=i}),[n,i]),(0,k.jsx)(_.Provider,{value:{state:n,dispatch:i},children:e.children})}function S(){return(0,k.jsx)("div",{className:"tw-w-screen tw-h-screen tw-flex tw-justify-center tw-items-center tw-text-xl tw-text-white",children:lf("Loading...")})}var A,O=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?"-":"_")}),"")},C=function(e){return{type:"SET_USER_PROFILE",profile:e}},j=function(e){return{type:"SET_CLIENT_ROLE",clientRole:e}},N=function(e){return{type:"SET_NET_MODE",mode:e}},T=function(e){return{type:"SET_GAME_INFO",gameInfo:e}},P=function(e){return{type:"SET_GAME_METADATA",gameMetadata:e}},R=function(e){return{type:"SET_GAME_ID",gameId:e}},L=function(e){return{type:"SET_PLAYER_SLOT",playerSlot:e}},I=function(e){return{type:"SET_GAME_MODE",gameMode:e}},M=function(e){return{type:"SHOW_TOAST",toast:c({id:O(8)},e)}},B=function(e){return{type:"DISMISS_TOAST",id:e}},D=function(e){return{type:"SET_PRESENCE",presence:e}},U=function(e,t,n){return{type:"SET_REACTION",clientId:e,reactionId:t,index:n}},F=function(e){return{type:"CLEAR_REACTION",clientId:e}},z=function(e,t){return{type:"SHOW_MODAL",modalType:e,modalOpts:t}},V=function(e,t){return{type:"SET_DEEP_LINKS",shareCode:e,joinCode:t}},H=function(e){return{type:"SET_GAME_PAUSED",gamePaused:e}};function W(){var e=(0,r.useContext)(_).state.deepLinks,t=e.shareCode,n=e.joinCode,i=lf("Sign in to host multiplayer game {0}",t),a=lf("Sign up to host multiplayer game {0}",t),o=lf("Sign in to join multiplayer game {0}",n),s=lf("Sign up to join multiplayer game {0}",n),u=lf("Sign in to host or join a multiplayer game"),l=lf("Sign up to host or join a multiplayer game");return(0,r.useMemo)((function(){return t?{signInMessage:i,signUpMessage:a}:n?{signInMessage:o,signUpMessage:s}:{signInMessage:u,signUpMessage:l}}),[t,n])}function q(){var e=(0,r.useContext)(_).dispatch,t=W();return(0,r.useEffect)((function(){e(z("sign-in",{dialogMessages:t}))}),[t]),(0,k.jsx)(k.Fragment,{})}function G(e){return(G="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 Z(){Z=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=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 i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),o=new _(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return{value:void 0,done:!0}}for(n.method=i,n.arg=a;;){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),a}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,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(E([])));v&&v!==t&&n.call(v,i)&&(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(i,a,o,s){var u=l(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==G(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 i;this._invoke=function(e,n){function a(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(a,a):a()}}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 i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(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){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=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 a.next=a}}return{next:S}}function S(){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,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new b(u(t,n,r,i),a);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,i,(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=E,_.prototype={constructor:_,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 i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,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 i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function Y(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function $(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Y(a,r,i,o,s,"next",e)}function s(e){Y(a,r,i,o,s,"throw",e)}o(void 0)}))}}function K(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=o(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,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,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function X(e){var t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||(e.preventDefault(),e.currentTarget.click())}function Q(){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"}(A||(A={}));var J=function(e){var t=e.id,n=e.className,r=e.style,i=e.ariaLabel,a=e.ariaHidden,o=e.ariaDescribedBy,s=e.ariaControls,u=e.ariaExpanded,l=e.ariaHasPopup,c=e.ariaPosInSet,f=e.ariaSetSize,d=e.ariaSelected,p=e.role,h=e.onClick,m=e.onKeydown,v=e.onBlur,y=e.buttonRef,g=e.title,b=e.label,w=e.leftIcon,x=e.rightIcon,_=e.hardDisabled,E=e.href,S=e.target,A=e.tabIndex,O=e.disabled,C=Q("common-button",n,(O=O||_)&&"disabled");return(0,k.jsx)("button",{id:t,className:C,style:r,title:g,ref:y,onClick:O?void 0:function(e){h&&h(),E&&window.open(E,S||"_blank","noopener,noreferrer"),e.stopPropagation(),e.preventDefault()},onKeyDown:m||X,onBlur:v,role:p||"button",tabIndex:A||(O?-1:0),disabled:_,"aria-label":i,"aria-hidden":a,"aria-controls":s,"aria-expanded":u,"aria-haspopup":l,"aria-posinset":c,"aria-setsize":f,"aria-describedby":o,"aria-selected":d,children:(0,k.jsxs)("span",{className:"common-button-flex",children:[w&&(0,k.jsx)("i",{className:w,"aria-hidden":!0}),(0,k.jsx)("span",{className:"common-button-label",children:b}),x&&(0,k.jsx)("i",{className:"right "+x,"aria-hidden":!0})]})})},ee=function(e){var t=e.id,n=e.className,i=e.inputClassName,a=e.groupClassName,o=e.role,u=e.ariaHidden,l=e.ariaLabel,c=e.initialValue,f=e.label,d=e.title,p=e.placeholder,h=e.icon,m=e.iconTitle,v=e.disabled,y=e.type,g=e.readOnly,b=e.autoComplete,w=e.selectOnClick,x=e.onChange,_=e.onEnterKey,E=e.onIconClick,S=e.onBlur,A=e.handleInputRef,O=e.preserveValueOnBlur,C=s(r.useState(void 0),2),j=C[0],N=C[1];return(0,k.jsxs)("div",{className:Q("common-input-wrapper",v&&"disabled",n),children:[f&&(0,k.jsx)("label",{className:"common-input-label",htmlFor:t,children:f}),(0,k.jsxs)("div",{className:Q("common-input-group",a),children:[(0,k.jsx)("input",{id:t,className:Q("common-input",h&&"has-icon",i),title:d,role:o||"textbox",tabIndex:v?-1:0,"aria-label":l,"aria-hidden":u,type:y||"text",placeholder:p,value:void 0!==j?j:c||"",readOnly:!!g,onClick:function(e){w&&e.target.select()},onChange:function(e){var t=e.target.value;g||j===t||N(t),x&&x(t)},onKeyDown:function(t){var n="number"==typeof t.which?t.which:t.keyCode;(13===n||e.treatSpaceAsEnter&&32===n)&&_&&(t.preventDefault(),_(j))},onBlur:function(){S&&S(j),O||N(void 0)},autoComplete:b?"":"off",autoCorrect:b?"":"off",autoCapitalize:b?"":"off",spellCheck:b,disabled:v,ref:A}),h&&(E?(0,k.jsx)(J,{leftIcon:h,title:m,disabled:v,onClick:function(){E&&E(j)}}):(0,k.jsx)("i",{className:h,"aria-hidden":!0}))]})]})},te=function(e){var t=e.id,n=e.className,r=e.ariaLabel,i=e.href,a=e.target,o=e.children,s=Q("common-link",n);return(0,k.jsx)("a",{id:t,className:s,"aria-label":r,href:i,target:a,rel:"_blank"===a?"noopener noreferrer":"",children:o})};function ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(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 ie(e,t,n){return t&&re(e.prototype,t),n&&re(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oe(e,t){return(oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function se(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&&oe(e,t)}function ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function le(){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 ce(e,t){if(t&&("object"===G(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ae(e)}function fe(e){var t=le();return function(){var n,r=ue(e);if(t){var i=ue(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ce(this,n)}}function de(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ue(e)););return e}function pe(){return(pe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=de(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function he(e,t,n){return(he=le()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&oe(i,n.prototype),i}).apply(null,arguments)}function me(e){var t="function"==typeof Map?new Map:void 0;return(me=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 he(e,arguments,ue(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),oe(r,e)})(e)}var ve=Object.create(null);ve.open="0",ve.close="1",ve.ping="2",ve.pong="3",ve.message="4",ve.upgrade="5",ve.noop="6";var ye=Object.create(null);Object.keys(ve).forEach((function(e){ye[ve[e]]=e}));for(var ge={type:"error",data:"parser error"},be="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),we="function"==typeof ArrayBuffer,xe=function(e,t){var n=new FileReader;return n.onload=function(){var e=n.result.split(",")[1];t("b"+e)},n.readAsDataURL(e)},ke=function(e,t,n){var r,i=e.type,a=e.data;return be&&a instanceof Blob?t?n(a):xe(a,n):we&&(a instanceof ArrayBuffer||(r=a,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer))?t?n(a):xe(new Blob([a]),n):n(ve[i]+(a||""))},_e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ee="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Se=0;Se<_e.length;Se++)Ee[_e.charCodeAt(Se)]=Se;var Ae="function"==typeof ArrayBuffer,Oe=function(e,t){if(Ae){var n=function(e){var t,n,r,i,a,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=Ee[e.charCodeAt(t)],r=Ee[e.charCodeAt(t+1)],i=Ee[e.charCodeAt(t+2)],a=Ee[e.charCodeAt(t+3)],c[u++]=n<<2|r>>4,c[u++]=(15&r)<<4|i>>2,c[u++]=(3&i)<<6|63&a;return l}(e);return Ce(n,t)}return{base64:!0,data:e}},Ce=function(e,t){return"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e},je=function(e,t){if("string"!=typeof e)return{type:"message",data:Ce(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:Oe(e.substring(1),t)}:ye[n]?e.length>1?{type:ye[n],data:e.substring(1)}:{type:ye[n]}:ge},Ne=String.fromCharCode(30);function Te(e){if(e)return function(e){for(var t in Te.prototype)e[t]=Te.prototype[t];return e}(e)}Te.prototype.on=Te.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Te.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Te.prototype.off=Te.prototype.removeListener=Te.prototype.removeAllListeners=Te.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 i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},Te.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 i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},Te.prototype.emitReserved=Te.prototype.emit,Te.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Te.prototype.hasListeners=function(e){return!!this.listeners(e).length};var Pe="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function Re(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 Le=setTimeout,Ie=clearTimeout;function Me(e,t){t.useNativeTimers?(e.setTimeoutFn=Le.bind(Pe),e.clearTimeoutFn=Ie.bind(Pe)):(e.setTimeoutFn=setTimeout.bind(Pe),e.clearTimeoutFn=clearTimeout.bind(Pe))}var Be,De=function(e){se(n,e);var t=fe(n);function n(e,r,i){var a;return ne(this,n),(a=t.call(this,e)).description=r,a.context=i,a.type="TransportError",a}return ie(n)}(me(Error)),Ue=function(e){se(n,e);var t=fe(n);function n(e){var r;return ne(this,n),(r=t.call(this)).writable=!1,Me(ae(r),e),r.opts=e,r.query=e.query,r.readyState="",r.socket=e.socket,r}return ie(n,[{key:"onError",value:function(e,t,r){return pe(ue(n.prototype),"emitReserved",this).call(this,"error",new De(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,pe(ue(n.prototype),"emitReserved",this).call(this,"open")}},{key:"onData",value:function(e){var t=je(e,this.socket.binaryType);this.onPacket(t)}},{key:"onPacket",value:function(e){pe(ue(n.prototype),"emitReserved",this).call(this,"packet",e)}},{key:"onClose",value:function(e){this.readyState="closed",pe(ue(n.prototype),"emitReserved",this).call(this,"close",e)}}]),n}(Te),Fe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),ze={},Ve=0,He=0;function We(e){var t="";do{t=Fe[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function qe(){var e=We(+new Date);return e!==Be?(Ve=0,Be=e):e+"."+We(Ve++)}for(;He<64;He++)ze[Fe[He]]=He;function Ge(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Ze(e){for(var t={},n=e.split("&"),r=0,i=n.length;r<i;r++){var a=n[r].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}var Ye=!1;try{Ye="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}var $e=Ye;function Ke(e){var t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||$e))return new XMLHttpRequest}catch(e){}if(!t)try{return new(Pe[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function Xe(){}var Qe=null!=new Ke({xdomain:!1}).responseType,Je=function(e){se(n,e);var t=fe(n);function n(e){var r;if(ne(this,n),(r=t.call(this,e)).polling=!1,"undefined"!=typeof location){var i="https:"===location.protocol,a=location.port;a||(a=i?"443":"80"),r.xd="undefined"!=typeof location&&e.hostname!==location.hostname||a!==e.port,r.xs=e.secure!==i}var o=e&&e.forceBase64;return r.supportsBinary=Qe&&!o,r}return ie(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(Ne),r=[],i=0;i<n.length;i++){var a=je(n[i],t);if(r.push(a),"error"===a.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),i=0;e.forEach((function(e,a){ke(e,!1,(function(e){r[a]=e,++i===n&&t(r.join(Ne))}))}))}(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]=qe()),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=Ge(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 et(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}(Ue),et=function(e){se(n,e);var t=fe(n);function n(e,r){var i;return ne(this,n),Me(ae(i=t.call(this)),r),i.opts=r,i.method=r.method||"GET",i.uri=e,i.async=!1!==r.async,i.data=void 0!==r.data?r.data:null,i.create(),i}return ie(n,[{key:"create",value:function(){var e=this,t=Re(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 Ke(t);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var i in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}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=Xe,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}(Te);function tt(){for(var e in et.requests)et.requests.hasOwnProperty(e)&&et.requests[e].abort()}et.requestsCount=0,et.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",tt):"function"==typeof addEventListener&&addEventListener("onpagehide"in Pe?"pagehide":"unload",tt,!1));var nt="function"==typeof Promise&&"function"==typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},rt=Pe.WebSocket||Pe.MozWebSocket,it=(n(918).Buffer,"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()),at={websocket:function(e){se(n,e);var t=fe(n);function n(e){var r;return ne(this,n),(r=t.call(this,e)).supportsBinary=!e.forceBase64,r}return ie(n,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=it?{}:Re(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=it?new rt(e,t,n):t?new rt(e,t):new rt(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],i=n===e.length-1;ke(r,t.supportsBinary,(function(e){try{t.ws.send(e)}catch(e){}i&&nt((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]=qe()),this.supportsBinary||(e.b64=1);var r=Ge(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!!rt}}]),n}(Ue),polling:Je},ot=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,st=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ut(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 i=ot.exec(e||""),a={},o=14;o--;)a[st[o]]=i[o]||"";return-1!=n&&-1!=r&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.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,a.path),a.queryKey=function(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,a.query),a}var lt=function(e){se(n,e);var t=fe(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ne(this,n),r=t.call(this),e&&"object"==typeof e&&(i=e,e=null),e?(e=ut(e),i.hostname=e.host,i.secure="https"===e.protocol||"wss"===e.protocol,i.port=e.port,e.query&&(i.query=e.query)):i.host&&(i.hostname=ut(i.host).host),Me(ae(r),i),r.secure=null!=i.secure?i.secure:"undefined"!=typeof location&&"https:"===location.protocol,i.hostname&&!i.port&&(i.port=r.secure?"443":"80"),r.hostname=i.hostname||("undefined"!=typeof location?location.hostname:"localhost"),r.port=i.port||("undefined"!=typeof location&&location.port?location.port:r.secure?"443":"80"),r.transports=i.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},i),r.opts.path=r.opts.path.replace(/\/$/,"")+"/","string"==typeof r.opts.query&&(r.opts.query=Ze(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 ie(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 at[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),i=!1;n.priorWebsocketSuccess=!1;var a=function(){i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",(function(e){if(!i)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(){i||"closed"!==t.readyState&&(f(),t.setTransport(r),r.send([{type:"upgrade"}]),t.emitReserved("upgrade",r),r=null,t.upgrading=!1,t.flush())}))}else{var a=new Error("probe error");a.transport=r.name,t.emitReserved("upgradeError",a)}})))};function o(){i||(i=!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",a),r.removeListener("error",s),r.removeListener("close",u),t.off("close",l),t.off("upgrading",c)};r.once("open",a),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,i=e.length;r<i;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 i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),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}(Te);lt.protocol=4,lt.protocol;var ct,ft=n(1398),dt=function(e){se(n,pxt.auth.AuthClient);var t=fe(n);function n(){return ne(this,n),t.apply(this,arguments)}return ie(n,[{key:"onSignedIn",value:function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,sr(this.firstName());case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onSignedOut",value:function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lr(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=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=this.getState()).profile&&pxt.auth.generateUserProfilePicDataUrl(t.profile),e.next=4,lr(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=$(Z().mark((function e(t){return Z().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 pt(){return ht.apply(this,arguments)}function ht(){return(ht=$(Z().mark((function e(){return Z().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(!ct){e.next=4;break}return e.abrupt("return",ct);case 4:return ct=new Promise(function(){var e=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new dt,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",ct);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function mt(){return(mt=$(Z().mark((function e(){var t,n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pt();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 vt(e){return yt.apply(this,arguments)}function yt(){return(yt=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pt();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 gt(e,t,n){return bt.apply(this,arguments)}function bt(){return(bt=$(Z().mark((function e(t,n,r){var i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pt();case 2:return i=e.sent,e.next=5,null==i?void 0:i.loginAsync(t,n,r);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wt(){return xt.apply(this,arguments)}function xt(){return(xt=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pt();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 kt=n(1899),_t=n.n(kt),Et=function(){return pxt.BrowserUtils.isLocalHostDev()?"http://localhost:3000":"arcade.makecode.com"===window.location.hostname?window.location.pathname.startsWith("/beta")?"https://aka.ms/a9b":"https://aka.ms/a9":window.location.pathname.startsWith("/beta")?"https://aka.ms/a9sb":"https://aka.ms/a9s"};function St(e){return"".concat(Et(),"?join=").concat(encodeURIComponent(e))}function At(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)e[r]^=t[r];return e}function Ot(e){return new Promise((function(t,n){_t().gzip(e,(function(e,r){e?n(e):t(r)}))}))}function Ct(e){return new Promise((function(t,n){_t().gunzip(e,(function(e,r){e?n(e):t(r)}))}))}function jt(e){try{var t,n=new URL(e||"");n.searchParams.has("join")&&(e=null!==(t=n.searchParams.get("join"))&&void 0!==t?t:void 0)}catch(e){}if(e&&6===(e=e.toUpperCase().replace(/[^A-Z0-9]/g,"")).length)return e}function Nt(e){try{var t,n=new URL(e||"");n.searchParams.has("host")&&(e=null!==(t=n.searchParams.get("host"))&&void 0!==t?t:void 0)}catch(e){}if(e)return pxt.Cloud.parseScriptId(e)}var Tt,Pt,Rt=n(8466),Lt=function(e){return Tt&&!e||(Tt=new pxt.MainPackage(new Vt)),Tt};function It(e,t){return Mt.apply(this,arguments)}function Mt(){return(Mt=$(Z().mark((function e(t,n){var r,i,a,o,s;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="server"===t.mpRole?"pub:".concat(t.id):"empty:clientprj",(null===(o=Lt())||void 0===o?void 0:o._verspec)==r?(Lt().host(),i=Promise.resolve(),a=Promise.resolve()):((s=Lt(!0))._verspec=r,i=s.host().downloadPackageAsync(Lt(),n),a=Lt().installAllAsync()),Lt().host(),e.next=6,i;case 6:return e.next=8,a;case 8:try{"client"===t.mpRole&&(Dt(Lt()).files[pxt.MAIN_TS]="multiplayer.init()")}catch(e){Rt.error(lf("Cannot load extension: {0}",e))}case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bt(e,t){var n={},r=Object.keys(t.fileSystem).sort().join(";");return n[r]||(n[r]=pxtc.getApiInfo(e,t.jres)),n[r]}function Dt(e){var t=e._editorPkg;if(t)return t;var n=void 0;e!=Lt()&&(n=Dt(Lt()));var r=new Ut(e,n);return e==Lt()&&(r.topPkg=r),e._editorPkg=r,r}pxt.react.getTilemapProject||(pxt.react.getTilemapProject=function(){return Pt||(Pt=new pxt.TilemapProject).loadPackage(Lt()),Pt});var Ut=function(){function e(t,n){ne(this,e),this.ksPkg=t,this.topPkg=n,this.files={},this.id=void 0}return ie(e,[{key:"getKsPkg",value:function(){return this.ksPkg}},{key:"getPkgId",value:function(){return this.ksPkg?this.ksPkg.id:this.id}},{key:"isTopLevel",value:function(){return this.ksPkg&&0==this.ksPkg.level}},{key:"setFiles",value:function(e){this.files=e}},{key:"getAllFiles",value:function(){return pxt.Util.mapMap(this.files,(function(e,t){return t}))}}]),e}();function Ft(){var e=pxt.appTarget.tsprj,t=pxt.U.clone(e.files);return t[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(e.config),t[pxt.MAIN_BLOCKS]="",t}var zt,Vt=function(){function e(){ne(this,e),this.githubPackageCache={}}return ie(e,[{key:"readFile",value:function(e,t){var n=Dt(e);return pxt.U.lookup(n.files,t)}},{key:"writeFile",value:function(e,t,n){Dt(e).files[t]=n}},{key:"getHexInfoAsync",value:function(e){return pxt.hexloader.getHexInfoAsync(this,e)}},{key:"cacheStoreAsync",value:function(e,t){return Promise.resolve()}},{key:"cacheGetAsync",value:function(e){return Promise.resolve(null)}},{key:"patchDependencies",value:function(e,t,n){if(!n)return!1;var r=pxt.github.parseRepoId(n);if(!r)return!1;for(var i=0,a=Object.keys(e.dependencies);i<a.length;i++){var o=a[i],s=e.dependencies[o],u=pxt.github.parseRepoId(s);if(u&&r.fullName==u.fullName)return pxt.semver.strcmp(r.tag,u.tag)<0&&(e.dependencies[o]=n),!0}return!1}},{key:"downloadPackageAsync",value:function(e,t){var n=this,r=e.verProtocol(),i=void 0;"github"==r&&(i=this.githubPackageCache[e._verspec]);var a=Dt(e);return(i?Promise.resolve(i):e.commonDownloadAsync()).then((function(o){if(o)return"github"!=r||i||(n.githubPackageCache[e._verspec]=pxt.Util.clone(o)),a.setFiles(o),Promise.resolve();if("empty"==r){if(0==Object.keys(a.files).length&&a.setFiles(Ft()),t&&t.length){var s=Dt(e).files,u=JSON.parse(s[pxt.CONFIG_NAME]);t.forEach((function(e){n.addPackageToConfig(u,e)})),s[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(u)}return Promise.resolve()}if("docs"==r){var l=Ft(),c=JSON.parse(l[pxt.CONFIG_NAME]);return e.verArgument().split(",").forEach((function(e){n.addPackageToConfig(c,e)})),c.yotta||(c.yotta={}),c.yotta.ignoreConflicts=!0,l[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(c),a.setFiles(l),Promise.resolve()}return"invalid"==r?(pxt.log("skipping invalid pkg ".concat(e.id)),Promise.resolve()):Promise.reject("Cannot download ".concat(e.version(),"; unknown protocol"))}))}},{key:"addPackageToConfig",value:function(e,t){var n=/^([a-zA-Z0-9_-]+)(=(.+))?$/.exec(t);if(n){if(n[3]&&this.patchDependencies(e,n[1],n[3]))return!1;e.dependencies[n[1]]=n[3]||"*"}else Rt.warn("unknown package syntax ".concat(t));return!0}}]),e}();function Ht(){var e=Lt().getTargetOptions();return Lt().getCompileOptionsAsync(e)}function Wt(e){var t={};if("server"!=e.mpRole)return t;var n=e.id;try{var r=window.localStorage.getItem(n);r&&(t=JSON.parse(r))}catch(e){}return t}function qt(e,t,n){if("server"==e.mpRole){var r=e.id,i=Wt(e);n?i[t]=n:delete i[t];try{window.localStorage.setItem(r,JSON.stringify(i))}catch(e){}}}function Gt(e,t){var n=Date.now();return pxt.debug("worker op: "+e),pxt.worker.getWorker(pxt.webConfig.workerjs).opAsync(e,t).then((function(t){return pxt.appTarget.compile.switches.time&&(pxt.log("Worker perf: ".concat(e," ").concat(Date.now()-n,"ms")),t.times&&Rt.log(t.times)),pxt.debug("worker op done: "+e),t}))}function Zt(e){return Yt.apply(this,arguments)}function Yt(){return(Yt=$(Z().mark((function e(t){var n,r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ht();case 2:return n=e.sent,t&&t(n),e.next=6,Gt("compile",{options:n});case 6:return(r=e.sent).diagnostics&&r.diagnostics.length>0&&r.diagnostics.forEach((function(e){Rt.error(e.messageText)})),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $t(e){if(zt||(zt=new pxsim.SimulatorDriver(e)),e&&(zt.container=e),zt.container)return zt}function Kt(e,t,n){var r,i=$t(e),a=n||{},o=a.fnArgs,s=a.parts,u=a.usedBuiltinParts,l=null===(r=pxt.appTarget.simulator)||void 0===r?void 0:r.boardDefinition,c={debug:!0,mute:t.mute,boardDefinition:l,parts:s,builtinParts:u,fnArgs:o,cdnUrl:pxt.webConfig.commitCdnUrl,localizedStrings:pxt.Util.getLocalizedStrings(),storedState:Wt(t),single:!0,autofocus:!0,queryParameters:t.simQueryParams,mpRole:t.mpRole};return i.setRunOptions(c),c}function Xt(){return(Xt=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Kt(t,n),null===(r=$t())||void 0===r||r.preload(1,!0);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qt(e,t){return Jt.apply(this,arguments)}function Jt(){return(Jt=$(Z().mark((function e(t,n){var r,i,a,o,s,u;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=n.builtJsInfo,e.t0){e.next=5;break}return e.next=4,en(n);case 4:e.t0=e.sent;case 5:if(a=e.t0,o=a.js){e.next=10;break}return Rt.error("Program failed to compile"),e.abrupt("return",void 0);case 10:return s=Kt(t,n,a),(u=$t(t)).options.messageSimulators=null===(r=pxt.appTarget)||void 0===r||null===(i=r.simulator)||void 0===i?void 0:i.messageSimulators,u.options.onSimulatorCommand=function(e){"restart"===e.command&&(s.storedState=Wt(n),u.run(o,s)),"setstate"==e.command&&e.stateKey&&e.stateValue&&qt(n,e.stateKey,e.stateValue)},a.breakpoints&&u.setBreakpoints(a.breakpoints),u.run(o,s),e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function en(e){return tn.apply(this,arguments)}function tn(){return(tn=$(Z().mark((function e(t){var n,r,i,a,o,s;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,It(t,[]);case 2:return i=!1,a=pxt.appTarget.versions.target,e.next=6,Zt((function(e){var n;if(e.computeUsedParts=!0,e.breakpoints=!0,"client"==t.mpRole&&(e.fileSystem[pxt.MAIN_TS]="multiplayer.init()"),e.target.preferredEditor===pxt.PYTHON_PROJECT_NAME){e.target.preferredEditor=pxt.JAVASCRIPT_PROJECT_NAME,e.ast=!0;var r=Bt(pxtc.compile(e).ast,e);e.apisInfo=r,e.target.preferredEditor=pxt.PYTHON_PROJECT_NAME}var o=null===(n=Lt().config.targetVersions)||void 0===n?void 0:n.target;if(o&&a&&pxt.semver.cmp(pxt.semver.parse(o),pxt.semver.parse(a))<0)for(var s=0,u=Object.keys(e.fileSystem);s<u.length;s++){var l=u[s];!pxt.Util.startsWith(l,"pxt_modules")&&pxt.Util.endsWith(l,".ts")&&(i=!0,e.fileSystem[l]=pxt.patching.patchJavaScript(o,e.fileSystem[l]))}}));case 6:if(o=e.sent,!((null===(n=o.diagnostics)||void 0===n?void 0:n.length)>0&&i)){e.next=12;break}return pxt.log("Compile with upgrade rules failed, trying again with original code"),e.next=11,Zt((function(e){"client"===t.mpRole&&(e.fileSystem[pxt.MAIN_TS]="multiplayer.init()")}));case 11:o=e.sent;case 12:return(null===(r=o.diagnostics)||void 0===r?void 0:r.length)>0&&Rt.error("Diagnostics",o.diagnostics),(s=pxtc.buildSimJsInfo(o)).parts=o.usedParts,e.abrupt("return",s);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var nn,rn,an=n(918).Buffer,on=n(8466),sn=pxt.BrowserUtils.isLocalHostDev()?"https://multiplayer.staging.pxt.io":"arcade.makecode.com"===window.location.hostname?"https://mp.makecode.com":"https://multiplayer.staging.pxt.io",un=function(){function e(){ne(this,e),this.sock=void 0,this.screen=void 0,this.clientRole=void 0,this.gameOverReason=void 0,this.paused=!1,this.recvMessageWithJoinTimeout=this.recvMessageWithJoinTimeout.bind(this),this.recvMessageAsync=this.recvMessageAsync.bind(this)}return ie(e,[{key:"destroy",value:function(){try{var e;null===(e=this.sock)||void 0===e||e.close(),this.sock=void 0}catch(e){}}},{key:"sendMessage",value:function(e){if(e instanceof an){var t;null===(t=this.sock)||void 0===t||t.send(e,{},(function(e){e&&on.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&&on.log("Error sending message",e)}))}}},{key:"recvMessageAsync",value:function(){var e=$(Z().mark((function e(t){var n,r,i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t instanceof ArrayBuffer)){e.next=18;break}n=ft.$.fromBuffer(an.from(t)),r=n.readUInt16LE(),e.t0=r,e.next=e.t0===rn.Binary.MessageType.CompressedScreen?7:e.t0===rn.Binary.MessageType.Input?10:e.t0===rn.Binary.MessageType.Audio?13:16;break;case 7:return e.next=9,this.recvCompressedScreenMessageAsync(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:return e.next=15,this.recvAudioMessageAsync(n);case 15:return e.abrupt("return",e.sent);case 16:e.next=53;break;case 18:if("string"!=typeof t){e.next=52;break}i=JSON.parse(t),e.t1=i.type,e.next="joined"===e.t1?23:"start-game"===e.t1?26:"presence"===e.t1?29:"reaction"===e.t1?32:"player-joined"===e.t1?35:"player-left"===e.t1?38:"game-over"===e.t1?41:"pause-game"===e.t1?44:"resume-game"===e.t1?47:50;break;case 23:return e.next=25,this.recvJoinedMessageAsync(i);case 25:return e.abrupt("return",e.sent);case 26:return e.next=28,this.recvStartGameMessageAsync(i);case 28:return e.abrupt("return",e.sent);case 29:return e.next=31,this.recvPresenceMessageAsync(i);case 31:return e.abrupt("return",e.sent);case 32:return e.next=34,this.recvReactionMessageAsync(i);case 34:return e.abrupt("return",e.sent);case 35:return e.next=37,this.recvPlayerJoinedMessageAsync(i);case 37:return e.abrupt("return",e.sent);case 38:return e.next=40,this.recvPlayerLeftMessageAsync(i);case 40:return e.abrupt("return",e.sent);case 41:return e.next=43,this.recvGameOverMessageAsync(i);case 43:return e.abrupt("return",e.sent);case 44:return e.next=46,this.recvPauseGameMessageAsync(i);case 46:return e.abrupt("return",e.sent);case 47:return e.next=49,this.recvResumeGameMessageAsync(i);case 49:return e.abrupt("return",e.sent);case 50:e.next=53;break;case 52:on.error("Unknown payload type",t);case 53:e.next=58;break;case 55:e.prev=55,e.t2=e.catch(0),on.error("Error processing message",e.t2);case 58:case"end":return e.stop()}}),e,this,[[0,55]])})));return function(t){return e.apply(this,arguments)}}()},{key:"recvMessageWithJoinTimeout",value:function(){var e=$(Z().mark((function e(t,n,r){var i,a,o,s=this;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"string"!=typeof t){e.next=6;break}return i=JSON.parse(t),e.next=5,this.recvMessageAsync(t);case 5:"joined"===i.type&&(null===(a=this.sock)||void 0===a||a.removeAllListeners("message"),null===(o=this.sock)||void 0===o||o.on("message",function(){var e=$(Z().mark((function e(t){return Z().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),on.error("Error processing message",e.t0);case 11: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=$(Z().mark((function e(t){var n=this;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var i=setTimeout((function(){r("Timed out connecting to game server"),ln()}),2e4);n.sock=new lt(sn,{transports:["websocket"],path:"/mp"}),n.sock.binaryType="arraybuffer",n.sock.on("open",(function(){var r,a,o;on.log("socket opened"),null===(r=n.sock)||void 0===r||r.on("message",function(){var t=$(Z().mark((function t(r){return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.recvMessageWithJoinTimeout(r,i,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===(a=n.sock)||void 0===a||a.on("close",(function(){on.log("socket disconnected"),Yn(n.gameOverReason)})),null===(o=n.sock)||void 0===o||o.on("error",(function(e){on.log("socket error",e)})),setTimeout((function(){n.sendMessage({type:"connect",ticket:t,version:rn.VERSION})}),500)}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"hostGameAsync",value:function(){var e=$(Z().mark((function e(t){var n,r,i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=encodeURIComponent(t),e.next=3,wt();case 3:return n=e.sent,e.next=6,fetch("".concat(sn,"/api/game/host/").concat(t),{credentials:"include",headers:{Authorization:"mkcd "+n}});case 6:return r=e.sent,e.next=9,r.json();case 9:if(null!==(i=e.sent)&&void 0!==i&&i.joinTicket){e.next=12;break}throw new Error("Game server did not return a join ticket");case 12:return e.next=14,this.connectAsync(i.joinTicket);case 14:return e.abrupt("return",i);case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"joinGameAsync",value:function(){var e=$(Z().mark((function e(t){var n,r,i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=encodeURIComponent(t),e.next=3,wt();case 3:return n=e.sent,e.next=6,fetch("".concat(sn,"/api/game/join/").concat(t),{credentials:"include",headers:{Authorization:"mkcd "+n}});case 6:if(200===(r=e.sent).status){e.next=9;break}return e.abrupt("return",{success:!1,statusCode:r.status});case 9:return e.next=11,r.json();case 11:if(null!==(i=e.sent)&&void 0!==i&&i.joinTicket){e.next=14;break}throw new Error("Game server did not return a join ticket");case 14:return e.next=16,this.connectAsync(i.joinTicket);case 16:return e.abrupt("return",c(c({},i),{},{success:!0,statusCode:r.status}));case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"startGameAsync",value:function(){var e=$(Z().mark((function e(){return Z().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=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.gameOverReason=t,null===(n=this.sock)||void 0===n||n.close();case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"sendReactionAsync",value:function(){var e=$(Z().mark((function e(t){return Z().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=$(Z().mark((function e(t){var n,r,i,a;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server said we're joined as \"".concat(t.role,'" in slot "').concat(t.slot,'"')),n=t.gameMode,r=t.gamePaused,i=t.shareCode,a=t.role,this.clientRole=a,this.paused=r,e.next=6,pr(i);case 6:if(!e.sent){e.next=9;break}return e.next=9,Vn(n,r,t.slot);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvStartGameMessageAsync",value:function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server said start game"),e.next=3,Vn("playing",this.paused);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPresenceMessageAsync",value:function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server sent presence"),e.next=3,$n(t.presence);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvReactionMessageAsync",value:function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server sent reaction"),e.next=3,tr(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=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(on.log("Server sent player joined"),"host"!==this.clientRole){e.next=4;break}return e.next=4,this.sendCurrentScreenAsync();case 4:return e.next=6,rr(t.clientId);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPlayerLeftMessageAsync",value:function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server sent player joined"),e.next=3,ar(t.clientId);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvGameOverMessageAsync",value:function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server sent game over"),e.next=3,mr(t.reason);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvPauseGameMessageAsync",value:function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server sent pause game"),this.paused=!0,e.next=4,yr();case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvResumeGameMessageAsync",value:function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return on.log("Server sent resume game"),this.paused=!1,e.next=4,br();case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvCompressedScreenMessageAsync",value:function(){var e=$(Z().mark((function e(t){var n,r,i,a,o,s,u;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=rn.Binary.unpackCompressedScreenMessage(t),r=n.zippedData,i=n.isDelta,e.next=3,Ct(r);case 3:a=e.sent,i?this.screen&&At(this.screen,a):this.screen=a,o=this.getCurrentScreen(),s=o.image,u=o.palette,s&&this.postToSimFrame({type:"multiplayer",content:"Image",image:{data:s},palette:u});case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvInputMessageAsync",value:function(){var e=$(Z().mark((function e(t){var n,r,i,a;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=rn.Binary.unpackInputMessage(t),r=n.button,i=n.state,a=n.slot,this.postToSimFrame({type:"multiplayer",content:"Button",clientNumber:a-1,button:r,state:f(i)});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"recvAudioMessageAsync",value:function(){var e=$(Z().mark((function e(t){var n,r,i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=rn.Binary.unpackAudioMessage(t),r=n.instruction,i=n.soundbuf,this.postToSimFrame({type:"multiplayer",content:"Audio",instruction:p(r),soundbuf:i});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"postToSimFrame",value:function(e){var t;null===(t=$t())||void 0===t||t.postMessage(e)}},{key:"sendInputAsync",value:function(){var e=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.paused){e.next=2;break}return e.abrupt("return");case 2:r=rn.Binary.packInputMessage(t,d(n)),this.sendMessage(r);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendAudioAsync",value:function(){var e=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.paused){e.next=2;break}return e.abrupt("return");case 2:r=rn.Binary.packAudioMessage(h(t),an.from(n)),this.sendMessage(r);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendScreenUpdateAsync",value:function(){var e=$(Z().mark((function e(t,n){var r,i,a,o,s,u,l,c,f;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=[]).push(an.from(t)),n&&r.push(an.from(n)),i=an.concat(r),(a=!this.screen)?this.screen=i:(At(i,this.screen),At(this.screen,i)),e.next=25;break;case 10:if(!(s<i.length)){e.next=17;break}if(0===i[s]){e.next=14;break}return o=!1,e.abrupt("break",17);case 14:s++,e.next=10;break;case 17:if(o&&!a){e.next=23;break}return e.next=20,Ot(i);case 20:u=e.sent,l=rn.Binary.packCompressedScreenMessage(u,!a),this.sendMessage(l);case 23:e.next=30;break;case 25:return e.next=27,Ot(this.screen);case 27:c=e.sent,f=rn.Binary.packCompressedScreenMessage(c,!1),this.sendMessage(f);case 30:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendCurrentScreenAsync",value:function(){var e=$(Z().mark((function e(){var t,n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.screen){e.next=6;break}return e.next=3,Ot(this.screen);case 3:t=e.sent,n=rn.Binary.packCompressedScreenMessage(t,!1),this.sendMessage(n);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"kickPlayer",value:function(e){var t={type:"kick-player",clientId:e};this.sendMessage(t)}},{key:"gameOver",value:function(e){this.gameOverReason=e,ln()}},{key:"getCurrentScreen",value:function(){return this.screen?{image:this.screen.slice(0,9608),palette:this.screen.length>=9656?this.screen.slice(9608,9656).map((function(e){return e})):void 0}:{image:void 0,palette:void 0}}},{key:"pauseGameAsync",value:function(){var e=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.paused=!0,t={type:"pause-game"},this.sendMessage(t);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"resumeGameAsync",value:function(){var e=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.paused=!1,t={type:"resume-game"},this.sendMessage(t);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function ln(){var e;null===(e=nn)||void 0===e||e.destroy(),nn=void 0}function cn(e){return fn.apply(this,arguments)}function fn(){return(fn=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ln(),nn=new un,e.next=4,nn.hostGameAsync(t);case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dn(e){return pn.apply(this,arguments)}function pn(){return(pn=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ln(),nn=new un,e.next=4,nn.joinGameAsync(t);case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hn(){return mn.apply(this,arguments)}function mn(){return(mn=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=nn)||void 0===t?void 0:t.startGameAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vn(e){return yn.apply(this,arguments)}function yn(){return(yn=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=nn)||void 0===n?void 0:n.leaveGameAsync(t);case 2:ln();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gn(e){return bn.apply(this,arguments)}function bn(){return(bn=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=nn)||void 0===n?void 0:n.sendReactionAsync(t);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wn(e,t){return xn.apply(this,arguments)}function xn(){return(xn=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=nn)||void 0===r?void 0:r.sendInputAsync(t,n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kn(e,t){return _n.apply(this,arguments)}function _n(){return(_n=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=nn)||void 0===r?void 0:r.sendAudioAsync(t,n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function En(e,t){return Sn.apply(this,arguments)}function Sn(){return(Sn=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=nn)||void 0===r?void 0:r.sendScreenUpdateAsync(t,n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function An(e){var t;null===(t=nn)||void 0===t||t.gameOver(e)}function On(){return Cn.apply(this,arguments)}function Cn(){return(Cn=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=nn)||void 0===t?void 0:t.pauseGameAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jn(){return Nn.apply(this,arguments)}function Nn(){return(Nn=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=nn)||void 0===t?void 0:t.resumeGameAsync();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Tn(){ln()}!function(e){var t;e.VERSION=2,function(e){var t;!function(e){e[e.Input=1]="Input",e[e.CompressedScreen=3]="CompressedScreen",e[e.Audio=4]="Audio"}(t||(t={})),e.MessageType=t,e.packInputMessage=function(e,n){var r=new ft.$;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.packCompressedScreenMessage=function(e,n){var r=new ft.$;return r.writeUInt16LE(t.CompressedScreen),r.writeUInt8(n?1:0),r.writeBuffer(e),r.toBuffer()},e.unpackCompressedScreenMessage=function(e){var t=1===e.readUInt8();return{zippedData:e.readBuffer(),isDelta:t}},e.packAudioMessage=function(e,n){var r=new ft.$;return r.writeUInt16LE(t.Audio),r.writeUInt8(e),n&&r.writeBuffer(n),r.toBuffer()},e.unpackAudioMessage=function(e){return{instruction:e.readUInt8(),soundbuf:e.remaining()?e.readBuffer():void 0}}}(t||(t=e.Binary||(e.Binary={})))}(rn||(rn={}));var Pn=n(8466);function Rn(e){return Ln.apply(this,arguments)}function Ln(){return(Ln=$(Z().mark((function e(t){var n,r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=Nt(t)){e.next=3;break}return e.abrupt("return",x(M({type:"error",text:lf("Invalid share code or link. Please try again."),timeoutMs:5e3})));case 3:return n=M({type:"info",text:lf("Connecting..."),showSpinner:!0}),e.prev=4,x(N("connecting")),x(n),e.next=9,cn(t);case 9:r=e.sent,Pn.log(r),x(M({type:"success",text:lf("Connected!"),timeoutMs:5e3})),x(j("host")),x(T(r)),x(N("connected")),e.next=22;break;case 17:e.prev=17,e.t0=e.catch(4),Pn.log("error",e.t0),x(N("init")),x(M({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3}));case 22:return e.prev=22,x(B(n.toast.id)),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[4,17,22,25]])})))).apply(this,arguments)}var In=n(8466);function Mn(e){return Bn.apply(this,arguments)}function Bn(){return(Bn=$(Z().mark((function e(t){var n,r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=jt(t)){e.next=3;break}return e.abrupt("return",x(M({type:"error",text:lf("Invalid join code. Please try again."),timeoutMs:5e3})));case 3:return n=M({type:"info",text:lf("Connecting..."),showSpinner:!0}),e.prev=4,x(N("connecting")),x(n),e.next=9,dn(t);case 9:r=e.sent,In.log(r),r.success?(x(M({type:"success",text:lf("Connected!"),timeoutMs:5e3})),x(j("guest")),x(T(r)),x(N("connected"))):(x(M({type:"info",text:lf("Game not found"),timeoutMs:5e3})),x(N("init"))),e.next=19;break;case 14:e.prev=14,e.t0=e.catch(4),In.log("error",e.t0),x(N("init")),x(M({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3}));case 19:return e.prev=19,x(B(n.toast.id)),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[4,14,19,22]])})))).apply(this,arguments)}function Dn(){return Un.apply(this,arguments)}function Un(){return(Un=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,hn();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 Fn(e){return zn.apply(this,arguments)}function zn(){return(zn=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,pxt.tickEvent("mp.leavegame"),e.next=4,vn(t);case 4:x({type:"CLEAR_GAME_INFO"}),x({type:"SET_GAME_METADATA",gameMetadata:void 0}),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:return e.prev=10,e.finish(10);case 12:case"end":return e.stop()}}),e,null,[[0,8,10,12]])})))).apply(this,arguments)}function Vn(e,t,n){return Hn.apply(this,arguments)}function Hn(){return(Hn=$(Z().mark((function e(t,n,r){var i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=w.clientRole;try{r&&x(L(r)),x(I(t)),"playing"===t&&(x({type:"CLEAR_MODAL"}),x(M({type:"info",text:lf("Game started!"),timeoutMs:5e3})),n&&"host"!==i&&yr())}catch(e){}case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wn(e,t,n){return qn.apply(this,arguments)}function qn(){return(qn=$(Z().mark((function e(t,n,r){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,gt(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 Gn(){return Zn.apply(this,arguments)}function Zn(){return(Zn=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Tn(),e.next=4,vt();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 Yn(e){try{switch(x(N("init")),e){case"kicked":return pxt.tickEvent("mp.gotkicked"),x(M({type:"info",text:lf("Host kicked you from the game"),icon:"🤔",timeoutMs:5e3}));case"ended":return pxt.tickEvent("mp.gameover"),x(M({type:"info",text:lf("Game ended"),timeoutMs:5e3}));case"left":return pxt.tickEvent("mp.leftgame"),x(M({type:"info",text:lf("You left the game"),timeoutMs:5e3}));case"full":return pxt.tickEvent("mp.gamefull"),x(M({type:"info",text:lf("Game is full"),timeoutMs:5e3}));case"rejected":return pxt.tickEvent("mp.gamerejected"),x(M({type:"error",text:lf("Game rejected your join request"),timeoutMs:5e3}));default:return pxt.tickEvent("mp.disconnected"),x(M({type:"error",text:lf("Game disconnected"),timeoutMs:5e3}))}}catch(e){}}function $n(e){return Kn.apply(this,arguments)}function Kn(){return(Kn=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{x(D(t))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Xn=[{name:lf("smile"),emoji:"😃"},{name:lf("laugh"),emoji:"🤣"},{name:lf("surprise"),emoji:"😯"},{name:lf("cry"),emoji:"😫"},{name:lf("scared"),emoji:"😬"},{name:lf("angry"),emoji:"😠"}],Qn=[];function Jn(e){return er.apply(this,arguments)}function er(){return(er=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,Qn[t]&&!(Qn[t]+250<Date.now())){e.next=7;break}return Qn[t]=Date.now(),n=Xn[t],pxt.tickEvent("mp.sendreaction",{reaction:n.name}),e.next=7,gn(t);case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:return e.prev=11,e.finish(11);case 13:case"end":return e.stop()}}),e,null,[[0,9,11,13]])})))).apply(this,arguments)}function tr(e,t){return nr.apply(this,arguments)}function nr(){return(nr=$(Z().mark((function e(t,n){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{r=O(),x(U(t,r,n)),setTimeout((function(){var e;(null===(e=w.reactions[t])||void 0===e?void 0:e.id)===r&&x(F(t))}),1e3)}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rr(e){return ir.apply(this,arguments)}function ir(){return(ir=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(n=w.presence.users.find((function(e){return e.id===t})))&&x(M({type:"info",text:lf("Player {0} joined the game.",n.slot),timeoutMs:5e3}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ar(e){return or.apply(this,arguments)}function or(){return(or=$(Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(n=w.presence.users.find((function(e){return e.id===t})))&&x(M({type:"info",text:lf("Player {0} left the game.",n.slot),timeoutMs:5e3}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sr(e){return ur.apply(this,arguments)}function ur(){return(ur=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{x(M({type:"success",text:lf("Welcome {0}!",t),timeoutMs:5e3}))}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function lr(e){return cr.apply(this,arguments)}function cr(){return(cr=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{x(t?C(t):{type:"SET_USER_PROFILE",profile:void 0})}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var fr,dr=n(8466);function pr(e){return hr.apply(this,arguments)}function hr(){return(hr=$(Z().mark((function e(t){var n,r,i,a,o,s,u;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n="https://makecode.com/api/".concat(t),e.next=4,fetch(n);case 4:return r=e.sent,e.next=7,r.json();case 7:return i=e.sent,a=i.name||lf("Untitled"),o=i.description||"",s="".concat(n,"/thumb"),u=i.id,x(P({title:a,description:o,thumbnail:s})),x(R(u)),e.abrupt("return",!0);case 17:return e.prev=17,e.t0=e.catch(0),dr.log("error",e.t0),x(N("init")),x(M({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3})),e.abrupt("return",!1);case 23:return e.prev=23,e.finish(23);case 25:case"end":return e.stop()}}),e,null,[[0,17,23,25]])})))).apply(this,arguments)}function mr(e){return vr.apply(this,arguments)}function vr(){return(vr=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{An(t)}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function yr(){return gr.apply(this,arguments)}function gr(){return(gr=$(Z().mark((function e(){var t,n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=w.clientRole,e.prev=1,"host"!==t){e.next=6;break}return pxt.tickEvent("mp.host.pausegame"),e.next=6,On();case 6:null===(n=$t())||void 0===n||n.resume(pxsim.SimulatorDebuggerCommand.Pause),x(H(!0)),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(1);case 12:return e.prev=12,e.finish(12);case 14:case"end":return e.stop()}}),e,null,[[1,10,12,14]])})))).apply(this,arguments)}function br(){return wr.apply(this,arguments)}function wr(){return(wr=$(Z().mark((function e(){var t,n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=w.clientRole,e.prev=1,"host"!==t){e.next=6;break}return pxt.tickEvent("mp.host.resumegame"),e.next=6,jn();case 6:null===(n=$t())||void 0===n||n.resume(pxsim.SimulatorDebuggerCommand.Resume),x(H(!1)),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(1);case 12:return e.prev=12,e.finish(12);case 14:case"end":return e.stop()}}),e,null,[[1,10,12,14]])})))).apply(this,arguments)}function xr(e){return kr.apply(this,arguments)}function kr(){return(kr=$(Z().mark((function e(t){var n,r,i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=w.clientRole,r=w.gameState,i=(null!=r?r:{}).gameMode,e.prev=2,t||"host"!==n||"playing"!==i){e.next=6;break}return e.next=6,yr();case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(2);case 10:return e.prev=10,e.finish(10);case 12:case"end":return e.stop()}}),e,null,[[2,8,10,12]])})))).apply(this,arguments)}function _r(e,t){return Er.apply(this,arguments)}function Er(){return(Er=$(Z().mark((function e(t,n){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,pxt.tickEvent("mp.reportabuse"),e.next=4,fetch("https://makecode.com/api/".concat(t,"/abusereports"),{method:"POST",body:JSON.stringify({text:n})});case 4:if(200!==e.sent.status){e.next=9;break}x(M({type:"success",text:lf("Thank you for reporting. We will look into it."),icon:"✅",timeoutMs:5e3})),e.next=10;break;case 9:throw new Error("Failed to send abuse report");case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),x(M({type:"error",text:lf("Sorry, we couldn't send your report. Please try again later."),timeoutMs:5e3}));case 15:return e.prev=15,e.finish(15);case 17:case"end":return e.stop()}}),e,null,[[0,12,15,17]])})))).apply(this,arguments)}function Sr(e){var t;return(0,k.jsxs)("div",{children:[(0,k.jsx)(J,{className:"tw-m-0 tw-px-8 ".concat(e.selected?"tw-font-bold":""),title:e.title,label:null!==(t=e.label)&&void 0!==t?t:e.title,onClick:e.onClick}),(0,k.jsx)("div",{className:"tw-mx-1 tw-border-b-2 tw-rounded-sm tw-ease-linear tw-duration-[75ms]",style:{borderColor:e.selected?"var(--primary-color)":"transparent"}})]})}function Ar(e){var t=e.title,n=e.subtitle,r=e.image,i=Nt(e.shareId),a=function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.hostbutton",{id:i,title:t}),e.next=3,Rn(i);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o=lf("Host a multiplayer session with '{0}'",pxt.U.rlf(t)),s=null!=r?r:"https://makecode.com/api/".concat(i,"/thumb"),u=lf("Preview image for game");return(0,k.jsx)(J,{className:"tw-p-0 sm:tw-pb-1 tw-flex tw-grow tw-shrink tw-basis-1 tw-max-w-[min(12em,30vw)] tw-rounded-md tw-border-solid tw-border-1 tw-border-gray-300 tw-overflow-hidden tw-drop-shadow-xl",onClick:a,title:o,label:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("img",{className:"tw-w-full tw-aspect-[4/3]",src:s,alt:u}),(0,k.jsx)("div",{className:"tw-text-left tw-px-2 tw-pt-1 tw-hidden tw-truncate sm:tw-block",children:pxt.U.rlf(t)}),(0,k.jsx)("div",{className:"tw-text-left tw-px-2 tw-text-sm tw-text-gray-500 tw-truncate tw-hidden md:tw-block",children:pxt.U.rlf(n)})]})})}function Or(){return(0,k.jsxs)("div",{className:"tw-text-sm",children:[(0,k.jsx)("span",{className:"tw-bg-white tw-shadow-sm tw-uppercase tw-text-primary-color tw-rounded-md tw-font-bold tw-px-1 tw-pt-[0.05rem] tw-pb-[0.15rem] tw-mr-1",children:lf("Beta")}),(0,k.jsx)("span",{className:"tw-text-white",children:lf("Multiplayer")})]})}function Cr(){var e,t=(0,r.useContext)(_).state.targetConfig,n=s((0,r.useState)("join"),2),i=n[0],a=n[1],o=(0,r.useRef)(),u=(0,r.useRef)();(0,r.useEffect)((function(){t||(pxt.BrowserUtils.isLocalHostDev()?fetch("/blb/targetconfig.json",{method:"GET"}).then((function(e){return e.json()})):pxt.targetConfigAsync()).then((function(e){return e&&x((t=e,{type:"SET_TARGET_CONFIG",targetConfig:JSON.parse(JSON.stringify(t))}));var t}))}));var l=(0,r.useCallback)((function(e){o.current=e}),[]),c=(0,r.useCallback)((function(e){u.current=e}),[]),f=function(){var e=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==o||null===(t=o.current)||void 0===t||!t.value){e.next=3;break}return e.next=3,Mn(o.current.value);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==u||null===(t=u.current)||void 0===t||!t.value){e.next=3;break}return e.next=3,Rn(u.current.value);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=lf("Enter share code or link"),h=lf("How do I get a share code or link?"),m=lf("More games to play with your friends"),v=null==t||null===(e=t.multiplayer)||void 0===e?void 0:e.games,y=!(null==v||!v.length);return(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-w-screen tw-h-screen tw-justify-center tw-items-center",children:[(0,k.jsxs)("div",{className:"tw-bg-white tw-rounded-lg tw-drop-shadow-xl tw-min-h-[17rem] tw-min-w-[17rem] md:tw-min-w-[25rem]",children:[(0,k.jsx)("div",{className:"tw-absolute tw-translate-y-[-130%]",children:(0,k.jsx)(Or,{})}),(0,k.jsx)("div",{className:"tw-py-5 tw-px-10 ",children:(0,k.jsxs)("div",{className:"tw-pt-2",children:[(0,k.jsxs)("div",{className:"tw-flex tw-justify-center",children:[(0,k.jsx)(Sr,{title:lf("Join Game"),label:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"tw-hidden sm:tw-inline",children:lf("Join Game")}),(0,k.jsx)("div",{className:"sm:tw-hidden",children:lf("Join")})]}),selected:"join"===i,onClick:function(){return a("join")}}),(0,k.jsx)(Sr,{title:lf("Host Game"),label:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"tw-hidden sm:tw-inline",children:lf("Host Game")}),(0,k.jsx)("div",{className:"sm:tw-hidden",children:lf("Host")})]}),selected:"host"===i,onClick:function(){return a("host")}})]}),(0,k.jsxs)("div",{className:"tw-pt-2",children:["join"===i&&(0,k.jsxs)("div",{className:"tw-w-full tw-flex tw-flex-col tw-gap-4 tw-mt-2 tw-justify-center tw-items-center",children:[(0,k.jsx)("div",{className:"tw-w-full",children:(0,k.jsx)(ee,{groupClassName:"tw-w-full tw-border-1 tw-h-full tw-rounded",inputClassName:"tw-text-center tw-p-2",title:lf("Join Code"),autoComplete:!1,handleInputRef:l,preserveValueOnBlur:!0,onEnterKey:f,placeholder:lf("Enter game code")})}),(0,k.jsx)("div",{children:(0,k.jsx)(J,{className:"primary tw-px-10",label:lf("Enter"),title:lf("Join Game"),onClick:f})}),(0,k.jsx)("div",{className:"tw-text-sm",children:(0,k.jsx)(te,{href:"/docs/multiplayer#join-game",target:"_blank",children:lf("How do I get a game code?")})})]}),"host"===i&&(0,k.jsxs)("div",{className:"tw-w-full tw-flex tw-flex-col tw-gap-4 tw-mt-2 tw-justify-center tw-items-center",children:[(0,k.jsx)("div",{className:"tw-w-full",children:(0,k.jsx)(ee,{groupClassName:"tw-w-full tw-border-1 tw-h-full tw-rounded",inputClassName:"tw-p-2",title:lf("Share Code"),autoComplete:!1,handleInputRef:c,preserveValueOnBlur:!0,onEnterKey:d,placeholder:p})}),(0,k.jsx)("div",{children:(0,k.jsx)(J,{className:"primary tw-px-10",label:lf("Launch"),title:lf("Host Game"),onClick:d})}),(0,k.jsx)("div",{className:"tw-text-sm",children:(0,k.jsx)(te,{href:"/docs/multiplayer#host-game",target:"_blank",children:h})})]})]})]})})]}),y&&(0,k.jsxs)("div",{className:"tw-max-w-[min(90vw,60em)] tw-p-2 tw-flex tw-flex-col tw-shrink",children:[(0,k.jsx)("div",{className:"tw-w-full tw-p-2",children:m}),(0,k.jsx)("div",{className:"tw-flex tw-justify-between tw-space-x-1 md:tw-space-x-4",children:v.map((function(e,t){return(0,k.jsx)(Ar,{shareId:e.shareId,title:e.title,subtitle:e.subtitle,image:e.image},t)}))})]})]})}function jr(){var e=(0,r.useContext)(_).state,t=e.playerSlot,n=e.gameState,i=e.clientRole,a=e.gamePaused,o=null==n?void 0:n.gameId,s=null==n?void 0:n.gameMode,u=(0,r.useRef)(null),l=["background-color=ED3636&button-stroke=8D2525","background-color=4E4EE9&button-stroke=3333A1","background-color=FF9A14&button-stroke=B0701A","background-color=4EB94E&button-stroke=245D24"][(t||0)-1],c="host"===i,f=function(){var e=$(Z().mark((function e(t){var n,r,i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.image,r=t.palette,i=n.data,e.next=4,En(i,r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=$(Z().mark((function e(t){var n,r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.button,r=t.state,e.next=3,wn(n,r);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=$(Z().mark((function e(t){var n,r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.instruction,r=t.soundbuf,e.next=3,kn(n,r);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){var e=function(e){var t=e.data;switch(t.type){case"status":if("running"===t.state&&"guest"===i){var n,r=function(){var e;return(null===(e=nn)||void 0===e?void 0:e.getCurrentScreen())||{image:void 0,palette:void 0}}(),a=r.image,o=r.palette;a&&(null===(n=$t())||void 0===n||n.postMessage({type:"multiplayer",content:"Image",image:{data:a},palette:o}))}return;case"multiplayer":var s=t.origin,u=t.content;return void("client"===s&&"Button"===u?d(t):"server"===s&&"Image"===u?f(t):"server"===s&&"Audio"===u&&p(t))}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}),[i]);var h=function(){return c?{simQueryParams:l,mpRole:"server",id:o}:{simQueryParams:l,mpRole:"client"}},m=function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fr=en(h()),e.next=3,fr;case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=$(Z().mark((function e(){var t;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=h(),!fr){e.next=5;break}return e.next=4,fr;case 4:t.builtJsInfo=e.sent;case 5:return fr=Qt(u.current,t),e.next=8,fr;case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)((function(){"playing"===s&&v()}),[s]),(0,r.useEffect)((function(){"playing"!==s&&u.current&&function(e,t){Xt.apply(this,arguments)}(u.current,h())}),[i,t]),(0,r.useEffect)((function(){c||m()}),[i]),(0,r.useEffect)((function(){c&&o&&m()}),[i,o]),(0,r.useEffect)((function(){return function(){fr=void 0}})),(0,k.jsx)("div",{id:"sim-container",ref:u,className:"tw-h-[calc(100vh-16rem)] tw-w-screen md:tw-w-[calc(100vw-6rem)]",style:{filter:a?"grayscale(70%) blur(1px)":"none",transition:"filter .25s"}})}var Nr,Tr,Pr=Object.defineProperty,Rr=Object.getOwnPropertySymbols,Lr=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,Mr=function(e,t,n){return t in e?Pr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n};!function(e){var t=function(){function t(e,n,r,a){if(ne(this,t),this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;for(var o=[],s=0;s<this.size;s++)o.push(!1);for(var u=0;u<this.size;u++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();var l=this.addEccAndInterleave(r);if(this.drawCodewords(l),-1==a)for(var c=1e9,f=0;f<8;f++){this.applyMask(f),this.drawFormatBits(f);var d=this.getPenaltyScore();d<c&&(a=f,c=d),this.applyMask(f)}i(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}return ie(t,[{key:"getModule",value:function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),n=t.length,r=0;r<n;r++)for(var i=0;i<n;i++)0==r&&0==i||0==r&&i==n-1||r==n-1&&0==i||this.drawAlignmentPattern(t[r],t[i]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,n=t,a=0;a<10;a++)n=n<<1^1335*(n>>>9);var o=21522^(t<<10|n);i(o>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,r(o,s));this.setFunctionModule(8,7,r(o,6)),this.setFunctionModule(8,8,r(o,7)),this.setFunctionModule(7,8,r(o,8));for(var u=9;u<15;u++)this.setFunctionModule(14-u,8,r(o,u));for(var l=0;l<8;l++)this.setFunctionModule(this.size-1-l,8,r(o,l));for(var c=8;c<15;c++)this.setFunctionModule(8,this.size-15+c,r(o,c));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^7973*(e>>>11);var n=this.version<<12|e;i(n>>>18==0);for(var a=0;a<18;a++){var o=r(n,a),s=this.size-11+a%3,u=Math.floor(a/3);this.setFunctionModule(s,u,o),this.setFunctionModule(u,s,o)}}}},{key:"drawFinderPattern",value:function(e,t){for(var n=-4;n<=4;n++)for(var r=-4;r<=4;r++){var i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,2!=i&&4!=i)}}},{key:"drawAlignmentPattern",value:function(e,t){for(var n=-2;n<=2;n++)for(var r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}},{key:"setFunctionModule",value:function(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}},{key:"addEccAndInterleave",value:function(e){var n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");for(var a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),u=a-s%a,l=Math.floor(s/a),c=[],f=t.reedSolomonComputeDivisor(o),d=0,p=0;d<a;d++){var h=e.slice(p,p+l-o+(d<u?0:1));p+=h.length;var m=t.reedSolomonComputeRemainder(h,f);d<u&&h.push(0),c.push(h.concat(m))}for(var v=[],y=function(e){c.forEach((function(t,n){(e!=l-o||n>=u)&&v.push(t[e])}))},g=0;g<c[0].length;g++)y(g);return i(v.length==s),v}},{key:"drawCodewords",value:function(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var n=0,a=this.size-1;a>=1;a-=2){6==a&&(a=5);for(var o=0;o<this.size;o++)for(var s=0;s<2;s++){var u=a-s,l=0==(a+1&2)?this.size-1-o:o;!this.isFunction[l][u]&&n<8*e.length&&(this.modules[l][u]=r(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}},{key:"applyMask",value:function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var n=0;n<this.size;n++){var r=void 0;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}},{key:"getPenaltyScore",value:function(){for(var e=0,n=0;n<this.size;n++){for(var r=!1,a=0,o=[0,0,0,0,0,0,0],s=0;s<this.size;s++)this.modules[n][s]==r?5==++a?e+=t.PENALTY_N1:a>5&&e++:(this.finderPenaltyAddHistory(a,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[n][s],a=1);e+=this.finderPenaltyTerminateAndCount(r,a,o)*t.PENALTY_N3}for(var u=0;u<this.size;u++){for(var l=!1,c=0,f=[0,0,0,0,0,0,0],d=0;d<this.size;d++)this.modules[d][u]==l?5==++c?e+=t.PENALTY_N1:c>5&&e++:(this.finderPenaltyAddHistory(c,f),l||(e+=this.finderPenaltyCountPatterns(f)*t.PENALTY_N3),l=this.modules[d][u],c=1);e+=this.finderPenaltyTerminateAndCount(l,c,f)*t.PENALTY_N3}for(var p=0;p<this.size-1;p++)for(var h=0;h<this.size-1;h++){var m=this.modules[p][h];m==this.modules[p][h+1]&&m==this.modules[p+1][h]&&m==this.modules[p+1][h+1]&&(e+=t.PENALTY_N2)}var v,y=0,g=K(this.modules);try{for(g.s();!(v=g.n()).done;)y=v.value.reduce((function(e,t){return e+(t?1:0)}),y)}catch(e){g.e(e)}finally{g.f()}var b=this.size*this.size,w=Math.ceil(Math.abs(20*y-10*b)/b)-1;return i(0<=w&&w<=9),i(0<=(e+=w*t.PENALTY_N4)&&e<=2568888),e}},{key:"getAlignmentPatternPositions",value:function(){if(1==this.version)return[];for(var e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6],r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}},{key:"finderPenaltyCountPatterns",value:function(e){var t=e[1];i(t<=3*this.size);var n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}},{key:"finderPenaltyAddHistory",value:function(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}],[{key:"encodeText",value:function(n,r){var i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}},{key:"encodeSegments",value:function(e,r){var o,s,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=u&&u<=l&&l<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");for(o=u;;o++){var d=8*t.getNumDataCodewords(o,r),p=a.getTotalBits(e,o);if(p<=d){s=p;break}if(o>=l)throw new RangeError("Data too long")}for(var h=0,m=[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH];h<m.length;h++){var v=m[h];f&&s<=8*t.getNumDataCodewords(o,v)&&(r=v)}var y,g=[],b=K(e);try{for(b.s();!(y=b.n()).done;){var w=y.value;n(w.mode.modeBits,4,g),n(w.numChars,w.mode.numCharCountBits(o),g);var x,k=K(w.getData());try{for(k.s();!(x=k.n()).done;){var _=x.value;g.push(_)}}catch(e){k.e(e)}finally{k.f()}}}catch(e){b.e(e)}finally{b.f()}i(g.length==s);var E=8*t.getNumDataCodewords(o,r);i(g.length<=E),n(0,Math.min(4,E-g.length),g),n(0,(8-g.length%8)%8,g),i(g.length%8==0);for(var S=236;g.length<E;S^=253)n(S,8,g);for(var A=[];8*A.length<g.length;)A.push(0);return g.forEach((function(e,t){return A[t>>>3]|=e<<7-(7&t)})),new t(o,r,A,c)}},{key:"getNumRawDataModules",value:function(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");var n=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;n-=(25*r-10)*r-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}},{key:"getNumDataCodewords",value:function(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}},{key:"reedSolomonComputeDivisor",value:function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var n=[],r=0;r<e-1;r++)n.push(0);n.push(1);for(var i=1,a=0;a<e;a++){for(var o=0;o<n.length;o++)n[o]=t.reedSolomonMultiply(n[o],i),o+1<n.length&&(n[o]^=n[o+1]);i=t.reedSolomonMultiply(i,2)}return n}},{key:"reedSolomonComputeRemainder",value:function(e,n){var r,i=n.map((function(e){return 0})),a=K(e);try{var o=function(){var e=r.value^i.shift();i.push(0),n.forEach((function(n,r){return i[r]^=t.reedSolomonMultiply(n,e)}))};for(a.s();!(r=a.n()).done;)o()}catch(e){a.e(e)}finally{a.f()}return i}},{key:"reedSolomonMultiply",value:function(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");for(var n=0,r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}}]),t}();function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;var a=function(){function e(t,n,r){if(ne(this,e),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return ie(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var r,i=[],a=K(t);try{for(a.s();!(r=a.n()).done;)n(r.value,8,i)}catch(e){a.e(e)}finally{a.f()}return new e(e.Mode.BYTE,t.length,i)}},{key:"makeNumeric",value:function(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i<t.length;){var a=Math.min(t.length-i,3);n(parseInt(t.substr(i,a),10),3*a+1,r),i+=a}return new e(e.Mode.NUMERIC,t.length,r)}},{key:"makeAlphanumeric",value:function(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r,i=[];for(r=0;r+2<=t.length;r+=2){var a=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));n(a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),11,i)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,i),new e(e.Mode.ALPHANUMERIC,t.length,i)}},{key:"makeSegments",value:function(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}},{key:"makeEci",value:function(t){var r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}},{key:"isNumeric",value:function(t){return e.NUMERIC_REGEX.test(t)}},{key:"isAlphanumeric",value:function(t){return e.ALPHANUMERIC_REGEX.test(t)}},{key:"getTotalBits",value:function(e,t){var n,r=0,i=K(e);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.mode.numCharCountBits(t);if(a.numChars>=1<<o)return 1/0;r+=4+o+a.bitData.length}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"toUtf8ByteArray",value:function(e){e=encodeURI(e);for(var t=[],n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}}]),e}();a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=a}(Nr||(Nr={})),function(e){var t=ie((function e(t,n){ne(this,e),this.ordinal=t,this.formatBits=n})),n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n}((Tr=Nr||(Nr={})).QrCode||(Tr.QrCode={})),function(e){!function(e){var t=function(){function e(t,n){ne(this,e),this.modeBits=t,this.numBitsCharCount=n}return ie(e,[{key:"numCharCountBits",value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}]),e}(),n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n}(e.QrSegment||(e.QrSegment={}))}(Nr||(Nr={}));var Br=Nr,Dr={L:Br.QrCode.Ecc.LOW,M:Br.QrCode.Ecc.MEDIUM,Q:Br.QrCode.Ecc.QUARTILE,H:Br.QrCode.Ecc.HIGH};function Ur(e){var t=e,n=t.value,i=t.size,a=void 0===i?128:i,o=t.level,s=void 0===o?"L":o,u=t.bgColor,l=void 0===u?"#FFFFFF":u,c=t.fgColor,f=void 0===c?"#000000":c,d=t.includeMargin,p=void 0!==d&&d,h=t.imageSettings,m=function(e,t){var n={};for(var r in e)Lr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Rr){var i,a=K(Rr(e));try{for(a.s();!(i=a.n()).done;)r=i.value,t.indexOf(r)<0&&Ir.call(e,r)&&(n[r]=e[r])}catch(e){a.e(e)}finally{a.f()}}return n}(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),v=Br.QrCode.encodeText(n,Dr[s]).getModules(),y=p?4:0,g=v.length+2*y,b=function(e,t,n,r){if(null==r)return null;var i=n?4:0,a=e.length+2*i,o=Math.floor(.1*t),s=a/t,u=(r.width||o)*s,l=(r.height||o)*s,c=null==r.x?e.length/2-u/2:r.x*s,f=null==r.y?e.length/2-l/2:r.y*s,d=null;if(r.excavate){var p=Math.floor(c),h=Math.floor(f);d={x:p,y:h,w:Math.ceil(u+c-p),h:Math.ceil(l+f-h)}}return{x:c,y:f,h:l,w:u,excavation:d}}(v,a,p,h),w=null;null!=h&&null!=b&&(null!=b.excavation&&(v=function(e,t){return e.slice().map((function(e,n){return n<t.y||n>=t.y+t.h?e:e.map((function(e,n){return(n<t.x||n>=t.x+t.w)&&e}))}))}(v,b.excavation)),w=r.createElement("image",{xlinkHref:h.src,height:b.h,width:b.w,x:b.x+y,y:b.y+y,preserveAspectRatio:"none"}));var x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var i=null;e.forEach((function(a,o){if(!a&&null!==i)return n.push("M".concat(i+t," ").concat(r+t,"h").concat(o-i,"v1H").concat(i+t,"z")),void(i=null);if(o!==e.length-1)a&&null===i&&(i=o);else{if(!a)return;null===i?n.push("M".concat(o+t,",").concat(r+t," h1v1H").concat(o+t,"z")):n.push("M".concat(i+t,",").concat(r+t," h").concat(o+1-i,"v1H").concat(i+t,"z"))}}))})),n.join("")}(v,y);return r.createElement("svg",function(e,t){for(var n in t||(t={}))Lr.call(t,n)&&Mr(e,n,t[n]);if(Rr){var r,i=K(Rr(t));try{for(i.s();!(r=i.n()).done;)n=r.value,Ir.call(t,n)&&Mr(e,n,t[n])}catch(e){i.e(e)}finally{i.f()}}return e}({height:a,width:a,viewBox:"0 0 ".concat(g," ").concat(g)},m),r.createElement("path",{fill:l,d:"M0,0 h".concat(g,"v").concat(g,"H0z"),shapeRendering:"crispEdges"}),r.createElement("path",{fill:f,d:x,shapeRendering:"crispEdges"}),w)}!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();var Fr={prefix:"far",iconName:"copy",icon:[512,512,[],"f0c5","M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"]},zr={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"]},Vr={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"]},Hr={prefix:"fas",iconName:"check",icon:[512,512,[10003,10004],"f00c","M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},Wr=n(8466);function qr(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 Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){$r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zr(e){return(Zr="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 Yr(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 $r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||Qr(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 Xr(e){return function(e){if(Array.isArray(e))return Jr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qr(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 Qr(e,t){if(e){if("string"==typeof e)return Jr(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)?Jr(e,t):void 0}}function Jr(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 ei=function(){},ti={},ni={},ri=null,ii={mark:ei,measure:ei};try{"undefined"!=typeof window&&(ti=window),"undefined"!=typeof document&&(ni=document),"undefined"!=typeof MutationObserver&&(ri=MutationObserver),"undefined"!=typeof performance&&(ii=performance)}catch(e){}var ai,oi,si,ui,li,ci=(ti.navigator||{}).userAgent,fi=void 0===ci?"":ci,di=ti,pi=ni,hi=ri,mi=ii,vi=(di.document,!!pi.documentElement&&!!pi.head&&"function"==typeof pi.addEventListener&&"function"==typeof pi.createElement),yi=~fi.indexOf("MSIE")||~fi.indexOf("Trident/"),gi="svg-inline--fa",bi="data-fa-i2svg",wi="data-fa-pseudo-element",xi="data-prefix",ki="data-icon",_i="fontawesome-i2svg",Ei=["HTML","HEAD","STYLE","SCRIPT"],Si=function(){try{return!0}catch(e){return!1}}(),Ai="classic",Oi="sharp",Ci=[Ai,Oi];function ji(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e.classic}})}var Ni=ji(($r(ai={},Ai,{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"}),$r(ai,Oi,{fa:"solid",fass:"solid","fa-solid":"solid"}),ai)),Ti=ji(($r(oi={},Ai,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),$r(oi,Oi,{solid:"fass"}),oi)),Pi=ji(($r(si={},Ai,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),$r(si,Oi,{fass:"fa-solid"}),si)),Ri=ji(($r(ui={},Ai,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),$r(ui,Oi,{"fa-solid":"fass"}),ui)),Li=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,Ii="fa-layers-text",Mi=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Bi=ji(($r(li={},Ai,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),$r(li,Oi,{900:"fass"}),li)),Di=[1,2,3,4,5,6,7,8,9,10],Ui=Di.concat([11,12,13,14,15,16,17,18,19,20]),Fi=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],zi="duotone-group",Vi="primary",Hi="secondary",Wi=new Set;Object.keys(Ti.classic).map(Wi.add.bind(Wi)),Object.keys(Ti.sharp).map(Wi.add.bind(Wi));var qi=[].concat(Ci,Xr(Wi),["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",zi,"swap-opacity",Vi,Hi]).concat(Di.map((function(e){return"".concat(e,"x")}))).concat(Ui.map((function(e){return"w-".concat(e)}))),Gi=di.FontAwesomeConfig||{};pi&&"function"==typeof pi.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=Kr(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=pi.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=i&&(Gi[r]=i)}));var Zi={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:gi,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Gi.familyPrefix&&(Gi.cssPrefix=Gi.familyPrefix);var Yi=Gr(Gr({},Zi),Gi);Yi.autoReplaceSvg||(Yi.observeMutations=!1);var $i={};Object.keys(Zi).forEach((function(e){Object.defineProperty($i,e,{enumerable:!0,set:function(t){Yi[e]=t,Ki.forEach((function(e){return e($i)}))},get:function(){return Yi[e]}})})),Object.defineProperty($i,"familyPrefix",{enumerable:!0,set:function(e){Yi.cssPrefix=e,Ki.forEach((function(e){return e($i)}))},get:function(){return Yi.cssPrefix}}),di.FontAwesomeConfig=$i;var Ki=[],Xi=16,Qi={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Ji(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function ea(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ta(e){return e.classList?ea(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function na(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ra(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function ia(e){return e.size!==Qi.size||e.x!==Qi.x||e.y!==Qi.y||e.rotate!==Qi.rotate||e.flipX||e.flipY}function aa(){var e="fa",t=gi,n=$i.cssPrefix,r=$i.replacementClass,i=':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 a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var oa=!1;function sa(){$i.autoAddCss&&!oa&&(function(e){if(e&&vi){var t=pi.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=pi.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}pi.head.insertBefore(t,r)}}(aa()),oa=!0)}var ua={mixout:function(){return{dom:{css:aa,insertCss:sa}}},hooks:function(){return{beforeDOMElementCreation:function(){sa()},beforeI2svg:function(){sa()}}}},la=di||{};la.___FONT_AWESOME___||(la.___FONT_AWESOME___={}),la.___FONT_AWESOME___.styles||(la.___FONT_AWESOME___.styles={}),la.___FONT_AWESOME___.hooks||(la.___FONT_AWESOME___.hooks={}),la.___FONT_AWESOME___.shims||(la.___FONT_AWESOME___.shims=[]);var ca=la.___FONT_AWESOME___,fa=[],da=!1;function pa(e){vi&&(da?setTimeout(e,0):fa.push(e))}function ha(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,a=void 0===i?[]:i;return"string"==typeof e?na(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(na(e[n]),'" ')}),"").trim()}(r),">").concat(a.map(ha).join(""),"</").concat(t,">")}function ma(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}vi&&((da=(pi.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(pi.readyState))||pi.addEventListener("DOMContentLoaded",(function e(){pi.removeEventListener("DOMContentLoaded",e),da=1,fa.map((function(e){return e()}))})));var va=function(e,t,n,r){var i,a,o,s=Object.keys(e),u=s.length,l=void 0!==r?function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}}(t,r):t;for(void 0===n?(i=1,o=e[s[0]]):(i=0,o=n);i<u;i++)o=l(o,e[a=s[i]],a,e);return o};function ya(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function ga(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 ba(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,a=ga(t);"function"!=typeof ca.hooks.addPack||i?ca.styles[e]=Gr(Gr({},ca.styles[e]||{}),a):ca.hooks.addPack(e,ga(t)),"fas"===e&&ba("fa",t)}var wa,xa,ka,_a=ca.styles,Ea=ca.shims,Sa=($r(wa={},Ai,Object.values(Pi.classic)),$r(wa,Oi,Object.values(Pi.sharp)),wa),Aa=null,Oa={},Ca={},ja={},Na={},Ta={},Pa=($r(xa={},Ai,Object.keys(Ni.classic)),$r(xa,Oi,Object.keys(Ni.sharp)),xa);function Ra(e,t){var n,r=t.split("-"),i=r[0],a=r.slice(1).join("-");return i!==e||""===a||(n=a,~qi.indexOf(n))?null:a}var La=function(){var e=function(e){return va(_a,(function(t,n,r){return t[r]=va(n,e,{}),t}),{})};Oa=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})),Ca=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})),Ta=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 _a||$i.autoFetchSvg,n=va(Ea,(function(e,n){var r=n[0],i=n[1],a=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:a}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e}),{names:{},unicodes:{}});ja=n.names,Na=n.unicodes,Aa=Ua($i.styleDefault,{family:$i.familyDefault})};function Ia(e,t){return(Oa[e]||{})[t]}function Ma(e,t){return(Ta[e]||{})[t]}function Ba(e){return ja[e]||{prefix:null,iconName:null}}function Da(){return Aa}function Ua(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.family,r=void 0===n?Ai:n,i=Ni[r][e],a=Ti[r][e]||Ti[r][i],o=e in ca.styles?e:null;return a||o||null}Ki.push((function(e){Aa=Ua(e.styleDefault,{family:$i.familyDefault})})),La();var Fa=($r(ka={},Ai,Object.keys(Pi.classic)),$r(ka,Oi,Object.keys(Pi.sharp)),ka);function za(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipLookups,i=void 0!==r&&r,a=($r(t={},Ai,"".concat($i.cssPrefix,"-").concat(Ai)),$r(t,Oi,"".concat($i.cssPrefix,"-").concat(Oi)),t),o=null,s=Ai;(e.includes(a.classic)||e.some((function(e){return Fa.classic.includes(e)})))&&(s=Ai),(e.includes(a.sharp)||e.some((function(e){return Fa.sharp.includes(e)})))&&(s=Oi);var u=e.reduce((function(e,t){var n=Ra($i.cssPrefix,t);if(_a[t]?(t=Sa[s].includes(t)?Ri[s][t]:t,o=t,e.prefix=t):Pa[s].indexOf(t)>-1?(o=t,e.prefix=Ua(t,{family:s})):n?e.iconName=n:t!==$i.replacementClass&&t!==a.classic&&t!==a.sharp&&e.rest.push(t),!i&&e.prefix&&e.iconName){var r="fa"===o?Ba(e.iconName):{},u=Ma(e.prefix,e.iconName);r.prefix&&(o=null),e.iconName=r.iconName||u||e.iconName,e.prefix=r.prefix||e.prefix,"far"!==e.prefix||_a.far||!_a.fas||$i.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!==Oi||!_a.fass&&!$i.autoFetchSvg||(u.prefix="fass",u.iconName=Ma(u.prefix,u.iconName)||u.iconName),"fa"!==u.prefix&&"fa"!==o||(u.prefix=Da()||"fas"),u}var Va=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 i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach((function(t){e.definitions[t]=Gr(Gr({},e.definitions[t]||{}),i[t]),ba(t,i[t]);var n=Pi.classic[t];n&&ba(n,i[t]),La()}))}},{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],i=r.prefix,a=r.iconName,o=r.icon,s=o[2];e[i]||(e[i]={}),s.length>0&&s.forEach((function(t){"string"==typeof t&&(e[i][t]=o)})),e[i][a]=o})),e}}])&&Yr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ha=[],Wa={},qa={},Ga=Object.keys(qa);function Za(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=Wa[e]||[];return a.forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function Ya(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 i=Wa[e]||[];i.forEach((function(e){e.apply(null,n)}))}function $a(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return qa[e]?qa[e].apply(null,t):void 0}function Ka(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Da();if(t)return t=Ma(n,t)||t,ma(Xa.definitions,n,t)||ma(ca.styles,n,t)}var Xa=new Va,Qa={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return vi?(Ya("beforeI2svg",e),$a("pseudoElements2svg",e),$a("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===$i.autoReplaceSvg&&($i.autoReplaceSvg=!0),$i.observeMutations=!0,pa((function(){eo({autoReplaceSvgRoot:t}),Ya("watch",e)}))}},Ja={noAuto:function(){$i.autoReplaceSvg=!1,$i.observeMutations=!1,Ya("noAuto")},config:$i,dom:Qa,parse:{icon:function(e){if(null===e)return null;if("object"===Zr(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Ma(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=Ua(e[0]);return{prefix:n,iconName:Ma(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat($i.cssPrefix,"-"))>-1||e.match(Li))){var r=za(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||Da(),iconName:Ma(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var i=Da();return{prefix:i,iconName:Ma(i,e)||e}}}},library:Xa,findIconDefinition:Ka,toHtml:ha},eo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?pi:t;(Object.keys(ca.styles).length>0||$i.autoFetchSvg)&&vi&&$i.autoReplaceSvg&&Ja.dom.i2svg({node:n})};function to(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ha(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(vi){var t=pi.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function no(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=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"===i,g=[$i.replacementClass,a?"".concat($i.cssPrefix,"-").concat(a):""].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),b={children:[],attributes:Gr(Gr({},f.attributes),{},{"data-prefix":i,"data-icon":a,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[bi]=""),u&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||Ji())},children:[u]}),delete b.attributes.title);var x=Gr(Gr({},b),{},{prefix:i,iconName:a,main:n,mask:r,maskId:l,transform:o,symbol:s,styles:Gr(Gr({},w),f.styles)}),k=r.found&&n.found?$a("generateAbstractMask",x)||{children:[],attributes:{}}:$a("generateAbstractIcon",x)||{children:[],attributes:{}},_=k.children,E=k.attributes;return x.children=_,x.attributes=E,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=!0===a?"".concat(t,"-").concat($i.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Gr(Gr({},i),{},{id:o}),children:r}]}]}(x):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(ia(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=ra(Gr(Gr({},a),{},{"transform-origin":"".concat(s.x+o.x/16,"em ").concat(s.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(x)}function ro(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.title,o=e.extra,s=e.watchable,u=void 0!==s&&s,l=Gr(Gr(Gr({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});u&&(l[bi]="");var c=Gr({},o.styles);ia(i)&&(c.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,i=e.height,a=void 0===i?16:i,o=e.startCentered,s=void 0!==o&&o,u="";return u+=s&&yi?"translate(".concat(t.x/Xi-r/2,"em, ").concat(t.y/Xi-a/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/Xi,"em), calc(-50% + ").concat(t.y/Xi,"em)) "):"translate(".concat(t.x/Xi,"em, ").concat(t.y/Xi,"em) "),(u+="scale(".concat(t.size/Xi*(t.flipX?-1:1),", ").concat(t.size/Xi*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var f=ra(c);f.length>0&&(l.style=f);var d=[];return d.push({tag:"span",attributes:l,children:[t]}),a&&d.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),d}function io(e){var t=e.content,n=e.title,r=e.extra,i=Gr(Gr(Gr({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=ra(r.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var ao=ca.styles;function oo(e){var t=e[0],n=e[1],r=Kr(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat($i.cssPrefix,"-").concat(zi)},children:[{tag:"path",attributes:{class:"".concat($i.cssPrefix,"-").concat(Hi),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat($i.cssPrefix,"-").concat(Vi),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var so={found:!1,width:512,height:512};function uo(e,t){var n=t;return"fa"===t&&null!==$i.styleDefault&&(t=Da()),new Promise((function(r,i){if($a("missingIconAbstract"),"fa"===n){var a=Ba(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&ao[t]&&ao[t][e])return r(oo(ao[t][e]));!function(e,t){Si||$i.showMissingIcons||!e||Wr.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Gr(Gr({},so),{},{icon:$i.showMissingIcons&&e&&$a("missingIconAbstract")||{}}))}))}var lo=function(){},co=$i.measurePerformance&&mi&&mi.mark&&mi.measure?mi:{mark:lo,measure:lo},fo='FA "6.2.0"',po=function(e){return co.mark("".concat(fo," ").concat(e," begins")),function(){return function(e){co.mark("".concat(fo," ").concat(e," ends")),co.measure("".concat(fo," ").concat(e),"".concat(fo," ").concat(e," begins"),"".concat(fo," ").concat(e," ends"))}(e)}},ho=function(){};function mo(e){return"string"==typeof(e.getAttribute?e.getAttribute(bi):null)}function vo(e){return pi.createElementNS("http://www.w3.org/2000/svg",e)}function yo(e){return pi.createElement(e)}function go(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ceFn,r=void 0===n?"svg"===e.tag?vo:yo:n;if("string"==typeof e)return pi.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach((function(t){i.setAttribute(t,e.attributes[t])}));var a=e.children||[];return a.forEach((function(e){i.appendChild(go(e,{ceFn:r}))})),i}var bo={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(go(e),t)})),null===t.getAttribute(bi)&&$i.keepOriginalSource){var n=pi.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(~ta(t).indexOf($i.replacementClass))return bo.replace(e);var r=new RegExp("".concat($i.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce((function(e,t){return t===$i.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var a=n.map((function(e){return ha(e)})).join("\n");t.setAttribute(bi,""),t.innerHTML=a}};function wo(e){e()}function xo(e,t){var n="function"==typeof t?t:ho;if(0===e.length)n();else{var r=wo;"async"===$i.mutateApproach&&(r=di.requestAnimationFrame||wo),r((function(){var t=!0===$i.autoReplaceSvg?bo.replace:bo[$i.autoReplaceSvg]||bo.replace,r=po("mutate");e.map(t),r(),n()}))}}var ko=!1;function _o(){ko=!0}function Eo(){ko=!1}var So=null;function Ao(e){if(hi&&$i.observeMutations){var t=e.treeCallback,n=void 0===t?ho:t,r=e.nodeCallback,i=void 0===r?ho:r,a=e.pseudoElementsCallback,o=void 0===a?ho:a,s=e.observeMutationsRoot,u=void 0===s?pi:s;So=new hi((function(e){if(!ko){var t=Da();ea(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!mo(e.addedNodes[0])&&($i.searchPseudoElements&&o(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&$i.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&mo(e.target)&&~Fi.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(xi):null,n=e.getAttribute?e.getAttribute(ki):null;return t&&n}(e.target)){var r=za(ta(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(xi,a||t),s&&e.target.setAttribute(ki,s)}else(u=e.target)&&u.classList&&u.classList.contains&&u.classList.contains($i.replacementClass)&&i(e.target);var u}))}})),vi&&So.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Oo(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}function Co(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=za(ta(e));return i.prefix||(i.prefix=Da()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=function(e,t){return(Ca[e]||{})[t]}(i.prefix,e.innerText)||Ia(i.prefix,ya(e.innerText))),!i.iconName&&$i.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function jo(e){var t=ea(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 $i.autoA11y&&(n?t["aria-labelledby"]="".concat($i.replacementClass,"-title-").concat(r||Ji()):(t["aria-hidden"]="true",t.focusable="false")),t}function No(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=Co(e),r=n.iconName,i=n.prefix,a=n.rest,o=jo(e),s=Za("parseNodeAttributes",{},e),u=t.styleParser?Oo(e):[];return Gr({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Qi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:u,attributes:o}},s)}var To=ca.styles;function Po(e){var t="nest"===$i.autoReplaceSvg?No(e,{styleParser:!1}):No(e);return~t.extra.classes.indexOf(Ii)?$a("generateLayersText",e,t):$a("generateSvgReplacementMutation",e,t)}var Ro=new Set;function Lo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!vi)return Promise.resolve();var n=pi.documentElement.classList,r=function(e){return n.add("".concat(_i,"-").concat(e))},i=function(e){return n.remove("".concat(_i,"-").concat(e))},a=$i.autoFetchSvg?Ro:Ci.map((function(e){return"fa-".concat(e)})).concat(Object.keys(To));a.includes("fa")||a.push("fa");var o=[".".concat(Ii,":not([").concat(bi,"])")].concat(a.map((function(e){return".".concat(e,":not([").concat(bi,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=ea(e.querySelectorAll(o))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var u=po("onTree"),l=s.reduce((function(e,t){try{var n=Po(t);n&&e.push(n)}catch(e){Si||"MissingIcon"===e.name&&Wr.error(e)}return e}),[]);return new Promise((function(e,n){Promise.all(l).then((function(n){xo(n,(function(){r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),u(),e()}))})).catch((function(e){u(),n(e)}))}))}function Io(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Po(e).then((function(e){e&&xo([e],t)}))}Ci.map((function(e){Ro.add("fa-".concat(e))})),Object.keys(Ni.classic).map(Ro.add.bind(Ro)),Object.keys(Ni.sharp).map(Ro.add.bind(Ro)),Ro=Xr(Ro);var Mo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Qi:n,i=t.symbol,a=void 0!==i&&i,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 to(Gr({type:"icon"},e),(function(){return Ya("beforeDOMElementCreation",{iconDefinition:e,params:t}),$i.autoA11y&&(f?y["aria-labelledby"]="".concat($i.replacementClass,"-title-").concat(p||Ji()):(y["aria-hidden"]="true",y.focusable="false")),no({icons:{main:oo(k),mask:s?oo(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:x,transform:Gr(Gr({},Qi),r),symbol:a,title:f,maskId:l,titleId:p,extra:{attributes:y,styles:b,classes:m}})}))}},Bo={mixout:function(){return{icon:(e=Mo,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:Ka(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Ka(i||{})),e(r,Gr(Gr({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Lo,e.nodeCallback=Io,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?pi:t,r=e.callback;return Lo(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,a=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([uo(n,a),u.iconName?uo(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(u){var f=Kr(u,2),d=f[0],p=f[1];t([e,no({icons:{main:d,mask:p},prefix:a,iconName:n,transform:o,symbol:s,maskId:l,title:r,titleId:i,extra:c,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.transform,o=ra(e.styles);return o.length>0&&(r.style=o),ia(a)&&(t=$a("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},Do={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 to({type:"layer"},(function(){Ya("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($i.cssPrefix,"-layers")].concat(Xr(r)).join(" ")},children:n}]}))}}}},Uo={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,i=t.classes,a=void 0===i?[]:i,o=t.attributes,s=void 0===o?{}:o,u=t.styles,l=void 0===u?{}:u;return to({type:"counter",content:e},(function(){return Ya("beforeDOMElementCreation",{content:e,params:t}),io({content:e.toString(),title:r,extra:{attributes:s,styles:l,classes:["".concat($i.cssPrefix,"-layers-counter")].concat(Xr(a))}})}))}}}},Fo={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Qi:n,i=t.title,a=void 0===i?null:i,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 to({type:"text",content:e},(function(){return Ya("beforeDOMElementCreation",{content:e,params:t}),ro({content:e,transform:Gr(Gr({},Qi),r),title:a,extra:{attributes:l,styles:f,classes:["".concat($i.cssPrefix,"-layers-text")].concat(Xr(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,a=null,o=null;if(yi){var s=parseInt(getComputedStyle(e).fontSize,10),u=e.getBoundingClientRect();a=u.width/s,o=u.height/s}return $i.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,ro({content:e.innerHTML,width:a,height:o,transform:r,title:n,extra:i,watchable:!0})])}}},zo=new RegExp('"',"ug"),Vo=[1105920,1112319];function Ho(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,i){if(null!==e.getAttribute(n))return r();var a=ea(e.children).filter((function(e){return e.getAttribute(wi)===t}))[0],o=di.getComputedStyle(e,t),s=o.getPropertyValue("font-family").match(Mi),u=o.getPropertyValue("font-weight"),l=o.getPropertyValue("content");if(a&&!s)return e.removeChild(a),r();if(s&&"none"!==l&&""!==l){var c=o.getPropertyValue("content"),f=~["Sharp"].indexOf(s[2])?Oi:Ai,d=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Ti[f][s[2].toLowerCase()]:Bi[f][u],p=function(e){var t=e.replace(zo,""),n=function(e,t){var n,r=e.length,i=e.charCodeAt(0);return i>=55296&&i<=56319&&r>1&&(n=e.charCodeAt(1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}(t),r=n>=Vo[0]&&n<=Vo[1],i=2===t.length&&t[0]===t[1];return{value:ya(i?t[0]:t),isSecondary:r||i}}(c),h=p.value,m=p.isSecondary,v=s[0].startsWith("FontAwesome"),y=Ia(d,h),g=y;if(v){var b=function(e){var t=Na[e],n=Ia("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||a&&a.getAttribute(xi)===d&&a.getAttribute(ki)===g)r();else{e.setAttribute(n,g),a&&e.removeChild(a);var w={iconName:null,title:null,titleId:null,prefix:null,transform:Qi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},x=w.extra;x.attributes[wi]=t,uo(y,d).then((function(i){var a=no(Gr(Gr({},w),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:g,extra:x,watchable:!0})),o=pi.createElement("svg");"::before"===t?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=a.map((function(e){return ha(e)})).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function Wo(e){return Promise.all([Ho(e,"::before"),Ho(e,"::after")])}function qo(e){return!(e.parentNode===document.head||~Ei.indexOf(e.tagName.toUpperCase())||e.getAttribute(wi)||e.parentNode&&"svg"===e.parentNode.tagName)}function Go(e){if(vi)return new Promise((function(t,n){var r=ea(e.querySelectorAll("*")).filter(qo).map(Wo),i=po("searchPseudoElements");_o(),Promise.all(r).then((function(){i(),Eo(),t()})).catch((function(){i(),Eo(),n()}))}))}var Zo=!1,Yo=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},$o={x:0,y:0,width:"100%",height:"100%"};function Ko(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;Ha=e,Wa={},Object.keys(qa).forEach((function(e){-1===Ga.indexOf(e)&&delete qa[e]})),Ha.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"===Zr(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){Wa[e]||(Wa[e]=[]),Wa[e].push(r[e])}))}e.provides&&e.provides(qa)}))}([ua,Bo,Do,Uo,Fo,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Go,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?pi:t;$i.searchPseudoElements&&Go(n)}}},{mixout:function(){return{dom:{unwatch:function(){_o(),Zo=!0}}}},hooks:function(){return{bootstrap:function(){Ao(Za("mutationObserverCallbacks",{}))},noAuto:function(){So&&So.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Zo?Eo():Ao(Za("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return Yo(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=Yo(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={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:a,inner:{transform:"".concat(o," ").concat(s," ").concat(u)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:Gr({},l.outer),children:[{tag:"g",attributes:Gr({},l.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Gr(Gr({},t.icon.attributes),l.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?za(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Da()),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,i=e.main,a=e.mask,o=e.maskId,s=e.transform,u=i.width,l=i.icon,c=a.width,f=a.icon,d=function(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="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(i," ").concat(a," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:s,containerWidth:c,iconWidth:u}),p={tag:"rect",attributes:Gr(Gr({},$o),{},{fill:"white"})},h=l.children?{children:l.children.map(Ko)}:{},m={tag:"g",attributes:Gr({},d.inner),children:[Ko(Gr({tag:l.tag,attributes:Gr(Gr({},l.attributes),d.path)},h))]},v={tag:"g",attributes:Gr({},d.outer),children:[m]},y="mask-".concat(o||Ji()),g="clip-".concat(o||Ji()),b={tag:"mask",attributes:Gr(Gr({},$o),{},{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:Gr({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(y,")")},$o)}),{children:n,attributes:r}}}},{provides:function(e){var t=!1;di.matchMedia&&(t=di.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:Gr(Gr({},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 i=Gr(Gr({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Gr(Gr({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:Gr(Gr({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Gr(Gr({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:Gr(Gr({},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:Gr(Gr({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Gr(Gr({},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:Gr(Gr({},i),{},{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:Ja});var Xo=Ja.parse,Qo=Ja.icon,Jo=n(5192),es=n.n(Jo),ts=n(8466);function ns(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 rs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(n),!0).forEach((function(t){as(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ns(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function is(e){return(is="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 as(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function os(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ss(e){return function(e){if(Array.isArray(e))return us(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 us(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)?us(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 us(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 ls(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 cs=["style"];function fs(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=ls(t.slice(0,r)),a=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[i]=a,e}),{})}var ds=!1;try{ds=!0}catch(e){}function ps(e){return e&&"object"===is(e)&&e.prefix&&e.iconName&&e.icon?e:Xo.icon?Xo.icon(e):null===e?null:e&&"object"===is(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 hs(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?as({},e,t):{}}var ms=r.forwardRef((function(e,t){var n=e.icon,r=e.mask,i=e.symbol,a=e.className,o=e.title,s=e.titleId,u=e.maskId,l=ps(n),c=hs("classes",[].concat(ss(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=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=(as(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"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),as(t,"fa-rotate-".concat(g),null!=g&&0!==g),as(t,"fa-pull-".concat(b),null!=b),as(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)),ss(a.split(" ")))),f=hs("transform","string"==typeof e.transform?Xo.transform(e.transform):e.transform),d=hs("mask",ps(r)),p=Qo(l,rs(rs(rs(rs({},c),f),d),{},{symbol:i,title:o,titleId:s,maskId:u}));if(!p)return function(){var e;!ds&&ts&&"function"==typeof ts.error&&(e=ts).error.apply(e,arguments)}("Could not find icon",l),null;var h=p.abstract,m={ref:t};return Object.keys(e).forEach((function(t){ms.defaultProps.hasOwnProperty(t)||(m[t]=e[t])})),vs(h[0],m)}));ms.displayName="FontAwesomeIcon",ms.propTypes={beat:es().bool,border:es().bool,beatFade:es().bool,bounce:es().bool,className:es().string,fade:es().bool,flash:es().bool,mask:es().oneOfType([es().object,es().array,es().string]),maskId:es().string,fixedWidth:es().bool,inverse:es().bool,flip:es().oneOf([!0,!1,"horizontal","vertical","both"]),icon:es().oneOfType([es().object,es().array,es().string]),listItem:es().bool,pull:es().oneOf(["right","left"]),pulse:es().bool,rotation:es().oneOf([0,90,180,270]),shake:es().bool,size:es().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:es().bool,spinPulse:es().bool,spinReverse:es().bool,symbol:es().oneOfType([es().bool,es().string]),title:es().string,titleId:es().string,transform:es().oneOfType([es().string,es().object]),swapOpacity:es().bool},ms.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 vs=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),a=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=fs(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[ls(t)]=r}return e}),{attrs:{}}),o=r.style,s=void 0===o?{}:o,u=os(r,cs);return a.attrs.style=rs(rs({},a.attrs.style),s),t.apply(void 0,[n.tag,rs(rs({},a.attrs),u)].concat(ss(i)))}.bind(null,r.createElement);function ys(e){var t=(0,r.useContext)(_).state,n=s((0,r.useState)(!1),2),i=n[0],a=n[1],o=function(){var n=$(Z().mark((function n(){var r;return Z().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.eventName&&pxt.tickEvent(e.eventName),null!==(r=t.gameState)&&void 0!==r&&r.joinCode&&(navigator.clipboard.writeText(e.copyValue),a(!0));case 2:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,r.useEffect)((function(){if(i){var e=setTimeout((function(){a(!1)}),2500);return function(){clearTimeout(e)}}}),[i]),(0,k.jsx)("button",{onClick:o,title:e.title,children:(0,k.jsxs)("div",{children:[!i&&(0,k.jsx)(ms,{icon:Fr,className:"hover:tw-scale-110 tw-ease-linear tw-duration-[50ms]"}),i&&(0,k.jsx)(ms,{icon:Hr,className:"tw-text-green-600"})]})})}function gs(e){var t=e.particle.index,n=Xn[t].emoji,i=(0,r.useMemo)((function(){var e=1.25+1.25*Math.random(),t=3*e+10*Math.random();return{flyUpDuration:e,rotationDuration:3+.5*Math.random(),rotationAnim:Math.random()>.5?"reaction-rotate-left":"reaction-rotate-right",horzAnim:Math.random()>.5?"reaction-fly-left":"reaction-fly-right",flyHorzDuration:t}}),[]);return(0,k.jsx)("div",{className:"tw-absolute tw-select-none tw-pointer-events-none tw-z-[100]",style:{animation:"reaction-fly-up linear ".concat(i.flyUpDuration,"s forwards,\n ").concat(i.horzAnim," linear ").concat(i.flyHorzDuration,"s forwards")},children:(0,k.jsx)("div",{className:"tw-select-none tw-pointer-events-none",style:{animation:"".concat(i.rotationAnim," ease-in-out ").concat(i.rotationDuration,"s infinite")},children:n})})}function bs(e){var t=(0,r.useContext)(_).state,n=e.clientId,i=t.reactions[n],a=s((0,r.useState)([]),2),o=a[0],u=a[1];return(0,r.useEffect)((function(){if(i&&!o.find((function(e){return e.id===i.id}))){var e={id:i.id,index:i.index,startTime:Date.now()};u((function(t){return[].concat(g(t),[e])}))}}),[i,o,u]),(0,r.useEffect)((function(){var e=setInterval((function(){var e=Date.now();u(o.filter((function(t){return e-t.startTime<5e3})))}),1e3);return function(){return clearInterval(e)}}),[o,u]),(0,k.jsx)("div",{className:"tw-absolute tw-pointer-events-none",style:{transform:"translateY(-20px)"},children:(0,k.jsx)("div",{className:"tw-flex tw-flex-row tw-justify-center",children:o.map((function(e){return(0,k.jsx)(gs,{particle:e},e.id)}))})})}function ws(e){var t=e.slot;return(0,k.jsx)("svg",{width:"25",height:"29",viewBox:"0 0 25 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,k.jsx)("path",{style:{fill:"rgb(var(--slot-".concat(t,"-color))")},d:"M12.7544 14.686C16.6204 14.686 19.7544 11.552 19.7544 7.68602C19.7544 3.82003 16.6204 0.686035 12.7544 0.686035C8.8884 0.686035 5.75439 3.82003 5.75439 7.68602C5.75439 11.552 8.8884 14.686 12.7544 14.686ZM4.25439 16.686C2.32136 16.686 0.754339 18.2531 0.754395 20.1861L0.754409 20.6861C0.754421 23.0795 2.27704 25.1034 4.43931 26.4794C6.61345 27.863 9.55594 28.686 12.7543 28.686C15.9527 28.686 18.8952 27.863 21.0694 26.4795C23.2317 25.1034 24.7544 23.0795 24.7544 20.6861V20.186C24.7544 18.253 23.1874 16.686 21.2544 16.686H4.25439Z"})})}function xs(e){var t=e.children,n=e.visible,i=e.className,a=e.onClickedOutside,o=(0,r.useRef)(),s=(0,r.useCallback)((function(e){o.current=e}),[]);return function(e,t){(0,r.useEffect)((function(){var n=function(n){var r=null==e?void 0:e.current;r&&!r.contains(n.target)&&(null==t||t())};return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}}),[e])}(o,(function(){return a()})),n?(0,k.jsx)("div",{ref:s,className:i,children:t}):null}function ks(){var e=(0,r.useContext)(_),t=e.state,n=e.dispatch,i=t.presence,a=t.clientRole,o=t.playerSlot,u=s((0,r.useState)(0),2),l=u[0],c=u[1],f=(0,r.useMemo)((function(){return(null==i?void 0:i.users)&&i.users.filter((function(e){return e.slot<5}))}),[i]),d=function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:pxt.tickEvent("mp.leavegame",{role:a}),n(z("leave-game"));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function p(e){var t=e.slot,n=e.children;return(0,k.jsx)(xs,{className:"tw-absolute tw-z-50 tw-translate-y-[-110%] tw-translate-x-[-50%] tw-rounded-lg tw-border-2 tw-border-gray-100",visible:l===t,onClickedOutside:function(){return c(0)},children:(0,k.jsx)("div",{className:"tw-flex tw-flex-row tw-gap-1 tw-p-2 tw-bg-white tw-drop-shadow-xl tw-rounded-md",children:n})})}var h=function(e){var t="host"===a,r=1===e,i=e===o,s=f.filter((function(t){return t.slot===e})).shift();return t&&i?(0,k.jsx)(p,{slot:e,children:(0,k.jsx)(J,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("End the game"),title:lf("End the game"),onClick:function(){return d()}})}):t&&!r&&s?(0,k.jsx)(p,{slot:e,children:(0,k.jsx)(J,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("Remove from game"),title:lf("Remove from game"),onClick:function(){return function(e){pxt.tickEvent("mp.kickplayer"),c(0);var t=f.filter((function(t){return t.slot===e})).shift();t&&n(z("kick-player",{clientId:t.id}))}(e)}})}):!t&&i?(0,k.jsx)(p,{slot:e,children:(0,k.jsx)(J,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("Leave game"),title:lf("Leave game"),onClick:function(){return d()}})}):null};return(0,k.jsx)("div",{className:"tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-2 tw-border-l-2 tw-pl-2 tw-border-slot-0-color",children:[1,2,3,4].map((function(e){var t=f.find((function(t){return t.slot===e})),n=h(e),r=!t,i=e===o;return(0,k.jsxs)("div",{children:[(0,k.jsx)("div",{className:"tw-px-[50%]",children:n}),(0,k.jsx)(J,{className:"tw-rounded-full tw-m-0 tw-p-0",hardDisabled:!n,label:(0,k.jsxs)("div",{className:"tw-flex tw-select-none tw-text-black\n tw-font-bold tw-rounded-full tw-h-11 tw-border-2\n tw-w-11 tw-justify-center tw-items-center\n tw-text-slot-".concat(e,"-color"),style:{backgroundColor:"rgba(var(--slot-".concat(r?0:e,"-color),0.1)"),borderColor:"rgb(var(--slot-".concat(r?0:e,"-color))")},children:[(0,k.jsx)(ws,{slot:r?0:e}),t&&(0,k.jsx)(bs,{clientId:t.id}),i&&(0,k.jsx)("div",{className:"tw-absolute tw-translate-y-[110%]",children:(0,k.jsx)("div",{className:"tw-z-10 tw-border tw-rounded-xl tw-text-xs tw-px-2 tw-font-medium tw-uppercase",style:{backgroundColor:"rgb(var(--you-tag-bg-color))",borderColor:"rgb(var(--you-tag-border-color))"},children:lf("you")})})]}),title:r?lf("Player {0} (empty)",e):lf("Player {0}",e),onClick:function(){return c(e)}})]},e)}))})}function _s(e){return(0,k.jsx)("svg",{className:e.className,width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,k.jsx)("path",{style:{fill:"rgb(var(--reaction-color))"},d:"M10.3491 13.686C11.4537 13.686 12.3491 12.7906 12.3491 11.686C12.3491 10.5815 11.4537 9.68604 10.3491 9.68604C9.24455 9.68604 8.34912 10.5815 8.34912 11.686C8.34912 12.7906 9.24455 13.686 10.3491 13.686ZM20.3491 11.686C20.3491 12.7906 19.4537 13.686 18.3491 13.686C17.2446 13.686 16.3491 12.7906 16.3491 11.686C16.3491 10.5815 17.2446 9.68604 18.3491 9.68604C19.4537 9.68604 20.3491 10.5815 20.3491 11.686ZM7.90212 17.7916C8.39359 17.5459 8.99068 17.7428 9.23997 18.2313L9.24349 18.2378C9.24901 18.2478 9.26019 18.2677 9.27736 18.296C9.31176 18.3526 9.36981 18.4425 9.45402 18.5548C9.62278 18.7798 9.8937 19.0909 10.2865 19.4052C11.0595 20.0235 12.3423 20.686 14.3493 20.686C16.3564 20.686 17.6392 20.0235 18.4121 19.4052C18.805 19.0909 19.0759 18.7798 19.2446 18.5548C19.3289 18.4425 19.3869 18.3526 19.4213 18.296C19.4385 18.2677 19.4497 18.2478 19.4552 18.2378L19.4587 18.2313C19.708 17.7428 20.3051 17.5459 20.7965 17.7916C21.2905 18.0386 21.4908 18.6393 21.2438 19.1333L21.2432 19.1343L21.2426 19.1355L21.2414 19.138L21.2384 19.1439L21.2306 19.1589C21.2246 19.1704 21.2169 19.1847 21.2076 19.2017C21.1889 19.2356 21.1635 19.2802 21.1309 19.3339C21.0657 19.4413 20.9714 19.5858 20.8446 19.7548C20.5915 20.0923 20.2062 20.5312 19.6615 20.9669C18.5595 21.8485 16.8423 22.686 14.3493 22.686C11.8564 22.686 10.1392 21.8485 9.03714 20.9669C8.49247 20.5312 8.10714 20.0923 7.85402 19.7548C7.72729 19.5858 7.633 19.4413 7.56779 19.3339C7.53515 19.2802 7.50972 19.2356 7.49106 19.2017C7.48173 19.1847 7.47409 19.1704 7.46808 19.1589L7.46029 19.1439L7.4573 19.138L7.45603 19.1355L7.45545 19.1343L7.45491 19.1333C7.20793 18.6393 7.40814 18.0386 7.90212 17.7916ZM14.3491 0.686035C6.61713 0.686035 0.349121 6.95405 0.349121 14.686C0.349121 22.418 6.61713 28.686 14.3491 28.686C22.0811 28.686 28.3491 22.418 28.3491 14.686C28.3491 6.95405 22.0811 0.686035 14.3491 0.686035ZM2.34912 14.686C2.34912 8.05862 7.7217 2.68604 14.3491 2.68604C20.9765 2.68604 26.3491 8.05862 26.3491 14.686C26.3491 21.3135 20.9765 26.686 14.3491 26.686C7.7217 26.686 2.34912 21.3135 2.34912 14.686Z"})})}function Es(){var e=s((0,r.useState)(!1),2),t=e[0],n=e[1],i=function(){var e=$(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Jn(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,r.useEffect)((function(){var e=function(e){if("messagepacket"===e.data.type&&e.data.channel){var t,n=null===(t=/keydown-(\d)/i.exec(e.data.channel))||void 0===t?void 0:t[1];if(!n)return;var r=parseInt(n)-1;Xn[r]&&Jn(r)}},t=function(e){var t=parseInt(e.key)-1;Xn[t]&&Jn(t)};return window.addEventListener("message",e),window.addEventListener("keydown",t),function(){window.removeEventListener("message",e),window.removeEventListener("keydown",t)}})),(0,k.jsxs)("div",{children:[(0,k.jsx)(xs,{className:"tw-absolute tw-translate-y-[-120%]",visible:t,onClickedOutside:function(){return n(!1)},children:(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-bg-white tw-drop-shadow-xl tw-rounded-md tw-border-2 tw-border-gray-100",children:[(0,k.jsx)("div",{className:"tw-flex tw-flex-row tw-gap-3 tw-p-2",children:Xn.map((function(e,t){return(0,k.jsx)(J,{className:"tw-flex tw-items-center tw-justify-center tw-m-0 tw-p-0 tw-cursor-pointer tw-select-none tw-scale-110 hover:tw-scale-125 tw-ease-linear tw-duration-[50ms] tw-h-8 tw-w-8 tw-text-2xl",label:(0,k.jsxs)("div",{children:[(0,k.jsx)("div",{children:e.emoji}),(0,k.jsx)("div",{className:"tw-text-xs tw-absolute tw-bottom-[-3px] tw-right-[-3px] tw-text-white tw-bg-gray-500 tw-rounded-xl tw-px-1 ",children:t+1})]}),title:e.name,onClick:function(){return i(t)}},t+1)}))}),!pxt.BrowserUtils.isMobile()&&(0,k.jsx)("div",{className:"tw-text-sm tw-p-1",children:lf("Use your keyboard to send reactions faster")})]})}),(0,k.jsx)(J,{label:(0,k.jsx)(_s,{className:"hover:tw-scale-125 tw-ease-linear tw-duration-[50ms]"}),title:lf("Reactions"),className:"tw-flex tw-items-center tw-justify-center\n tw-select-none tw-border-2 tw-reaction-color\n tw-rounded-full tw-h-11 tw-w-11 tw-text-2xl !tw-m-0 !tw-p-0",style:{backgroundColor:"rgba(var(--reaction-color),0.1)"},onClick:function(){var e=!t;e&&pxt.tickEvent("mp.reactions.open"),n(e)}})]})}function Ss(){return(0,k.jsxs)("div",{className:"tw-flex tw-flex-row tw-space-x-2 tw-items-center tw-align-middle tw-justify-center",children:[(0,k.jsx)(Es,{}),(0,k.jsx)(ks,{})]})}function As(){var e,t=(0,r.useContext)(_),n=t.state,i=t.dispatch,a=function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.hostlobby.startgame"),i({type:"CLEAR_MODAL"}),e.next=4,Dn();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o=null===(e=n.gameState)||void 0===e?void 0:e.joinCode;if(!o)return null;var s=lf("Have your friend go to {0} and enter code","{0}").split("{0}"),u=Et(),l=(null==o?void 0:o.slice(0,3))+" "+(null==o?void 0:o.slice(3)),c=St(o);return(0,k.jsxs)("div",{className:"tw-bg-white tw-shadow-lg tw-rounded-lg tw-m-1 tw-min-w-[17rem]",children:[(0,k.jsx)("div",{className:"tw-absolute tw-translate-y-[-130%]",children:(0,k.jsx)(Or,{})}),(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-1 tw-items-center tw-justify-between tw-py-[3rem] tw-px-3 sm:tw-px-14 md:tw-px-[7rem]",children:[(0,k.jsxs)("div",{className:"tw-mt-3 tw-text-lg tw-text-center tw-text-neutral-700",children:[s[0],(0,k.jsx)(te,{href:u,target:"_blank",className:"tw-text-primary-color tw-font-bold hover:tw-text-orange-300",children:u}),s[1]]}),(0,k.jsxs)("div",{className:"tw-text-4xl tw-mt-4 tw-flex tw-flex-row tw-items-center",children:[(0,k.jsx)("span",{className:"tw-font-bold tw-text-neutral-700",children:l}),(0,k.jsx)("div",{className:"tw-ml-2 tw-text-[50%]",children:(0,k.jsx)(ys,{copyValue:c,title:lf("Copy join link"),eventName:"mp.hostlobby.copyjoinlink"})})]}),(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-mt-5 tw-text-sm tw-gap-1 tw-max-h-24 md:tw-max-h-36",children:[(0,k.jsx)(Ur,{value:c}),(0,k.jsx)("div",{className:"tw-hidden md:tw-block",children:lf("or scan with phone")})]}),(0,k.jsx)(J,{className:"primary tw-mt-5 tw-mb-7 tw-font-sans tw-mr-0",label:lf("Start Game"),title:lf("Start Game"),onClick:a}),(0,k.jsx)(Ss,{})]})]})}function Os(){var e,t=null===(e=(0,r.useContext)(_).state.gameState)||void 0===e?void 0:e.joinCode,n=t?St(t):"";return(0,k.jsx)("div",{children:t&&(0,k.jsxs)("div",{className:"tw-flex tw-flex-row tw-items-center tw-align-middle",children:[(0,k.jsx)("div",{className:"tw-font-bold",children:lf("Code:")}),(0,k.jsx)("div",{className:"tw-mx-1",children:t}),(0,k.jsx)("div",{className:"tw-text-[75%]",children:(0,k.jsx)(ys,{copyValue:n,title:lf("Copy join link"),eventName:"mp.copyjoinlink"})})]})})}function Cs(){return(0,k.jsxs)("div",{className:"tw-bg-white tw-shadow-lg tw-rounded-lg tw-m-1",children:[(0,k.jsx)("div",{className:"tw-absolute tw-translate-y-[-130%]",children:(0,k.jsx)(Or,{})}),(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-py-[2rem] tw-px-[1.5rem] sm:tw-px-[3.5rem] md:tw-px-[6rem]",children:[(0,k.jsx)("div",{className:"tw-font-bold tw-text-2xl tw-text-neutral-800",children:lf("Waiting for players")}),(0,k.jsx)("div",{className:"tw-mt-3 tw-text-center tw-text-neutral-700",children:lf("Your host will start the game soon!")}),(0,k.jsx)("div",{className:"tw-mt-5",children:(0,k.jsx)(Ss,{})})]})]})}function js(){var e,t=(u(e={},lf("up"),["↑","W"]),u(e,lf("down"),["↓","S"]),u(e,lf("left"),["←","A"]),u(e,lf("right"),["→","D"]),u(e,"a",["Z",lf("{id:keyboard symbol}space")]),u(e,"b",["X",lf("{id:keyboard symbol}enter")]),e);return(0,k.jsxs)("div",{className:"tw-bg-neutral-50 tw-p-3 tw-border-2 tw-border-neutral-500 tw-border-solid tw-rounded-md tw-drop-shadow-xl",children:[(0,k.jsx)("div",{className:"tw-text-lg tw-mb-2 tw-font-bold",children:lf("Keyboard Controls")}),Object.keys(t).map((function(e,n){return(0,k.jsxs)("div",{className:"keymap-row",children:[t[e].map((function(e,t){return(0,k.jsx)("div",{className:"keymap-key tw-align-middle tw-min-w-[2.5rem] tw-text-center tw-pb-[2.1rem]",children:e},t)})),(0,k.jsx)("span",{className:"keymap-name tw-font-semibold",children:e})]},n)}))]})}function Ns(){var e=s((0,r.useState)(!1),2),t=e[0],n=e[1];return(0,k.jsxs)("div",{children:[(0,k.jsx)(xs,{className:"tw-absolute tw-translate-y-[-105%]",visible:t,onClickedOutside:function(){return n(!1)},children:(0,k.jsx)(js,{})}),(0,k.jsx)(J,{title:lf("Keyboard Controls"),label:lf("Keyboard Controls"),leftIcon:"fas fa-keyboard",onClick:function(){pxt.tickEvent("mp.keyboardcontrols"),n(!t)},className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-p-2 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms] tw-pr-1 sm:tw-pr-3"})]})}function Ts(){var e,t=null===(e=(0,r.useContext)(_).state.gameState)||void 0===e?void 0:e.gameId,n=t?"".concat(pxt.webConfig.relprefix.replace(/-+$/,""),"#pub:").concat(t):void 0;return n?(0,k.jsx)(J,{leftIcon:"fas fa-bolt",title:lf("Remix Game"),label:(0,k.jsx)("div",{className:"tw-hidden sm:tw-inline tw-m-0 tw-p-0",children:lf("Remix Game")}),onClick:function(){n&&window.open(n)},className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-p-2 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms] tw-pr-1 sm:tw-pr-3"}):null}function Ps(){var e=(0,r.useContext)(_).state;return(0,r.useEffect)((function(){var t;null===(t=$t())||void 0===t||t.mute(e.muted)}),[e.muted]),(0,k.jsx)(J,{leftIcon:e.muted?"fas fa-volume-mute":"fas fa-volume-up",title:lf("Toggle Mute"),className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-py-2 tw-pl-2 tw-pr-1 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms]",onClick:function(){x(function(e){return{type:"SET_MUTE",value:e}}(!e.muted))}})}function Rs(e){var t,n,i,a=(0,r.useContext)(_).state,o=a.netMode,s=a.clientRole;return(0,k.jsxs)(k.Fragment,{children:["connecting"===o&&(0,k.jsx)(k.Fragment,{}),"lobby"===(null===(t=a.gameState)||void 0===t?void 0:t.gameMode)&&(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-justify-center tw-w-full tw-h-full",children:["host"===s&&(0,k.jsx)(As,{}),"guest"===s&&(0,k.jsx)(Cs,{})]}),"playing"===(null===(n=a.gameState)||void 0===n?void 0:n.gameMode)&&(0,k.jsx)("div",{className:"tw-mx-2 tw-self-start tw-mb-1",children:(0,k.jsx)(Or,{})}),(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center ".concat("playing"===(null===(i=a.gameState)||void 0===i?void 0:i.gameMode)?"":"hidden"),children:[(0,k.jsx)(jr,{}),(0,k.jsxs)("div",{className:"tw-flex tw-flex-row tw-w-full tw-items-center tw-justify-between tw-mt-1 tw-ml-1",children:[(0,k.jsxs)("div",{children:[(0,k.jsx)(Ps,{}),(0,k.jsx)("div",{className:"tw-hidden sm:tw-inline-block",children:(0,k.jsx)(Ts,{})})]}),(0,k.jsx)("div",{className:"tw-mr-1 sm:tw-mr-0",children:(0,k.jsx)(Os,{})}),(0,k.jsx)("div",{className:"tw-hidden sm:tw-inline",children:(0,k.jsx)(Ns,{})}),(0,k.jsx)("div",{className:"tw-inline-block sm:tw-hidden",children:(0,k.jsx)(Ts,{})})]}),(0,k.jsx)("div",{className:"tw-mt-3",children:(0,k.jsx)(Ss,{})})]})]})}function Ls(){var e=(0,r.useContext)(_).state.netMode;return(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-gap-1 tw-h-screen tw-justify-around",children:["init"===e&&(0,k.jsx)(Cr,{}),"init"!==e&&(0,k.jsx)(Rs,{})]})}var Is=function(e){var t,n,r=e.id,i=e.className,a=e.role,o=e.ariaHidden,s=e.ariaLabel,u=e.childTabStopId,l=e.children,c=e.onItemReceivedFocus,f=e.useUpAndDownArrowKeys;return(0,k.jsx)("div",{id:r,className:i,role:a,tabIndex:u?void 0:0,onKeyDown:function(e){var r;if(null!==(r=t)&&void 0!==r&&r.length){var i=document.activeElement,a=t.indexOf(i),o=function(e){e.focus(),c&&c(e)};-1===a&&i!==n||("Enter"===e.key||" "===e.key?(e.preventDefault(),e.stopPropagation(),i.click?i.click():i.dispatchEvent(new Event("click"))):e.key===(f?"ArrowDown":"ArrowRight")?(a===t.length-1||i===n?o(t[0]):o(t[a+1]),e.preventDefault(),e.stopPropagation()):e.key===(f?"ArrowUp":"ArrowLeft")?(o(0===a||i===n?t[t.length-1]:t[Math.max(a-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 i,a=K(r.values());try{for(a.s();!(i=a.n()).done;){var o=i.value;t.push(o),o.setAttribute("tabindex","-1"),o.setAttribute("data-isfocusable","true")}}catch(e){a.e(e)}finally{a.f()}if(u){var s=n.querySelector("#"+u);s&&s.setAttribute("tabindex","0")}}},"aria-hidden":o,"aria-label":s,children:l})},Ms=function(e){return(0,k.jsx)(Is,c(c({},e),{},{role:"menubar",className:Q("common-menubar",e.className)}))},Bs=function(e){var t,n=e.children,i=e.id,a=e.className,o=e.onEscape,u=e.arrowKeyNavigation,l=e.dontStealFocus,c=e.includeOutsideTabOrder,f=s(r.useState(!1),2),d=f[0],p=f[1],h=function(){return function(e){var t,n=[],r=K(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}(c?t.querySelectorAll("[tabindex]"):t.querySelectorAll('[tabindex]:not([tabindex="-1"])'))};return(0,k.jsx)("div",{id:i,className:Q("common-focus-trap",a),ref:function(e){e&&(t=e,l||d||e.contains(document.activeElement)||!h().length||(t.focus(),p(!0)))},onKeyDown:function(e){if(t){var n=function(t,n){var r=h();if(r.length){var i=r.indexOf(e.target);t?n?r[r.length-1].focus():i===r.length-1?r[0].focus():r[i+1].focus():n?r[0].focus():0===i?r[r.length-1].focus():r[Math.max(i-1,0)].focus(),e.preventDefault(),e.stopPropagation()}};"Escape"===e.key?(o(),e.preventDefault(),e.stopPropagation()):"Tab"===e.key?e.shiftKey?n(!1,!1):n(!0,!1):u&&("ArrowDown"===e.key?n(!0,!1):"ArrowUp"===e.key?n(!1,!1):"Home"===e.key?n(!1,!0):"End"===e.key&&n(!0,!0))}},tabIndex:-1,children:n})},Ds=function(e){var t,n,i=e.id,a=e.className,o=e.ariaHidden,u=e.ariaLabel,l=e.role,f=e.items,d=e.label,p=e.title,h=e.icon,m=e.tabIndex,v=s(r.useState(!1),2),y=v[0],g=v[1],b=Q("common-menu-dropdown",a),w=i+"-menu";return(0,k.jsxs)("div",{className:b,ref:function(e){e&&(t=e)},onBlur:function(e){t&&y&&!t.contains(e.relatedTarget)&&g(!1)},children:[(0,k.jsx)(J,{id:i,label:d,tabIndex:m,buttonRef:function(e){e&&(n=e)},title:p,leftIcon:h,role:l||"menuitem",className:Q("menu-button",y&&"expanded"),onClick:function(){g(!y)},ariaHasPopup:"true",ariaExpanded:y,ariaControls:y?w:void 0,ariaLabel:u,ariaHidden:o}),y&&(0,k.jsx)("div",{role:"menu",className:"common-menu-dropdown-pane",tabIndex:0,id:w,"aria-labelledby":i,children:(0,k.jsx)(Bs,{arrowKeyNavigation:!0,onEscape:function(){g(!1),n&&n.focus()},children:(0,k.jsx)("ul",{role:"presentation",children:f.map((function(e,t){return(0,k.jsx)("li",{role:"presentation",children:(0,k.jsx)(J,c(c({},e),{},{className:Q("common-menu-dropdown-item",e.className),onClick:function(){g(!1),e.onClick()},role:"menuitem",ariaPosInSet:t+1,ariaSetSize:f.length}))},t)}))})})})]})};function Us(){var e,t,n,i,a,o,s,u,l=(0,r.useContext)(_),c=l.state,f=l.dispatch,d=c.authStatus,p=c.profile,h=c.gameState,m=(null!=h?h:{}).gameId,v=pxt.auth.hasIdentity(),y=null===(e=pxt.appTarget)||void 0===e?void 0:e.appTheme,g=null===(t=pxt)||void 0===t||null===(n=t.appTarget)||void 0===n||null===(i=n.appTheme)||void 0===i?void 0:i.privacyUrl,b=null===(a=pxt)||void 0===a||null===(o=a.appTarget)||void 0===o||null===(s=o.appTheme)||void 0===s?void 0:s.termsOfUseUrl,w=W(),x=function(){pxt.tickEvent("mp.settingsmenu.help"),window.open("")},E=function(){pxt.tickEvent("mp.settingsmenu.reportabuse"),f(z("report-abuse"))},S=function(){pxt.tickEvent("mp.settingsmenu.privacy"),window.open(g)},A=function(){pxt.tickEvent("mp.settingsmenu.termsofuse"),window.open(b)},O=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")},C=function(){pxt.tickEvent("mp.signin"),f(z("sign-in",{dialogMessages:w}))},j=function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pxt.tickEvent("mp.usermenu.signout"),e.next=3,Gn();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(){var e,t,n,r;return null!==(e=null==p||null===(t=p.idp)||void 0===t?void 0:t.pictureUrl)&&void 0!==e?e:null==p||null===(n=p.idp)||void 0===n||null===(r=n.picture)||void 0===r?void 0:r.dataUrl},T=function(){var e=[];return e.push({id:"help",title:lf("Help"),label:lf("Help"),onClick:x}),g&&e.push({id:"privacy",title:lf("Privacy"),label:lf("Privacy"),onClick:S}),b&&e.push({id:"termsOfUse",title:lf("Terms of Use"),label:lf("Terms of Use"),onClick:A}),m&&e.push({id:"report",title:lf("Report Abuse"),label:lf("Report Abuse"),onClick:E}),e}();return(0,k.jsxs)(Ms,{className:"tw-h-[var(--header-height)] tw-text-white\n tw-flex tw-flex-grow-0 tw-flex-shrink-0 tw-align-middle tw-justify-center\n tw-items-center tw-z-[50] tw-text-[2.2rem]\n tw-drop-shadow-xl\n ",ariaLabel:lf("Header"),children:[(0,k.jsxs)("div",{className:"tw-select-none tw-text-lg tw-font-bold tw-flex tw-align-middle tw-p-[var(--header-padding-top)]",children:[function(e){var t=e.organizationWideLogo;return(0,k.jsx)("div",{className:"tw-flex",children:t?(0,k.jsx)("img",{className:"tw-h-6 tw-mx-0 tw-my-1",src:t,alt:lf("{0} Logo",e.organization)}):(0,k.jsx)("span",{className:"tw-h-6 tw-mx-0 tw-my-1",children:e.organization})})}(y),(u=y,(0,k.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:O,children:u.useTextLogo?[(0,k.jsx)("span",{className:"tw-ml-3 tw-hidden sm:tw-flex",onClick:O,children:u.organizationText},"org-name"),(0,k.jsx)("span",{className:"tw-ml-3 tw-flex sm:tw-hidden",onClick:O,children:u.organizationShortText||u.organizationText},"org-name-short")]:u.logo||u.portraitLogo?(0,k.jsx)("img",{className:"logo",src:u.logo||u.portraitLogo,alt:lf("{0} Logo",u.boardName)}):(0,k.jsxs)("span",{className:"name",children:[" ",u.boardName]})}))]}),(0,k.jsx)("div",{className:"tw-select-none tw-flex-grow"}),(0,k.jsxs)("div",{className:"tw-select-none tw-text-lg tw-font-bold tw-flex tw-items-center tw-pr-[var(--header-padding-top)] tw-h-full",children:[(null==T?void 0:T.length)>0&&(0,k.jsx)(Ds,{className:"h-full",id:"settings-help",title:lf("Settings menu"),icon:"fas fa-cog large",items:T}),v&&function(){var e=[];"signed-in"===d&&e.push({id:"signout",title:lf("Sign Out"),label:lf("Sign Out"),onClick:j});var t=N()?(0,k.jsx)("div",{className:"tw-flex tw-align-middle tw-justify-center tw-items-center tw-h-full",children:(0,k.jsx)("img",{src:N(),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,k.jsx)("span",{children:(0,k.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:p?pxt.auth.userInitials(p):""})});return(0,k.jsxs)("div",{className:"tw-h-full",children:["signed-in"===d&&(0,k.jsx)(Ds,{id:"profile-dropdown",items:e,label:t||n,title:lf("Profile Settings")}),"signed-out"===d&&(0,k.jsx)(J,{className:"tw-p-[0.6rem] tw-h-4/5 tw-m-2 tw-mr-4 tw-flex-row-reverse tw-font-medium tw-align-middle",rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:C})]})}()]})]})}var Fs=function(e,t){return(Fs=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 zs(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}Fs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Vs=function(){return(Vs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Hs(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Ws(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function qs(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,n(7490);var Gs=1/60*1e3,Zs="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},Ys="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(Zs())}),Gs)},$s=!0,Ks=!1,Xs=!1,Qs={delta:0,timestamp:0},Js=["read","update","preRender","render","postRender"],eu=Js.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:function(e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=a?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(e),-1===s.indexOf(e)&&(s.push(e),a&&i&&(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(i)a=!0;else{i=!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),Ks=!0)}i=!1,a&&(a=!1,s.process(e))}}};return s}(),e}),{}),tu=Js.reduce((function(e,t){var n=eu[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 Ks||ou(),n.schedule(e,t,r)},e}),{}),nu=Js.reduce((function(e,t){return e[t]=eu[t].cancel,e}),{}),ru=Js.reduce((function(e,t){return e[t]=function(){return eu[t].process(Qs)},e}),{}),iu=function(e){return eu[e].process(Qs)},au=function e(t){Ks=!1,Qs.delta=$s?Gs:Math.max(Math.min(t-Qs.timestamp,40),1),Qs.timestamp=t,Xs=!0,Js.forEach(iu),Xs=!1,Ks&&($s=!1,Ys(e))},ou=function(){Ks=!0,$s=!0,Xs||Ys(au)},su=function(){return Qs},uu=tu,lu="undefined"!=typeof document,cu=lu?r.useLayoutEffect:r.useEffect;function fu(){var e=(0,r.useRef)(!1);return cu((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var du=(0,r.createContext)(null);function pu(e){var t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}var hu=0,mu=function(){return hu++},vu=function(){return pu(mu)},yu=function(e){var t=e.children,n=e.initial,i=e.isPresent,a=e.onExitComplete,o=e.custom,s=e.presenceAffectsLayout,u=pu(gu),l=vu(),c=(0,r.useMemo)((function(){return{id:l,initial:n,isPresent:i,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()),i=r.next();!i.done;i=r.next())if(!i.value)return}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return u.set(e,!1),function(){return u.delete(e)}}}}),s?void 0:[i]);return(0,r.useMemo)((function(){u.forEach((function(e,t){return u.set(t,!1)}))}),[i]),r.useEffect((function(){!i&&!u.size&&(null==a||a())}),[i]),r.createElement(du.Provider,{value:c},t)};function gu(){return new Map}var bu=(0,r.createContext)({});function wu(e){return(0,r.useEffect)((function(){return function(){return e()}}),[])}n(8466);var xu=function(e){return e.key||""},ku=function(e){var t=e.children,n=e.custom,i=e.initial,a=void 0===i||i,o=e.onExitComplete,s=e.exitBeforeEnter,u=e.presenceAffectsLayout,l=void 0===u||u,c=Ws(function(){var e=fu(),t=Ws((0,r.useState)(0),2),n=t[0],i=t[1],a=(0,r.useCallback)((function(){e.current&&i(n+1)}),[n]);return[(0,r.useCallback)((function(){return uu.postRender(a)}),[a]),n]}(),1)[0],f=(0,r.useContext)(bu).forceRender;f&&(c=f);var d=fu(),p=function(e){var t=[];return r.Children.forEach(e,(function(e){(0,r.isValidElement)(e)&&t.push(e)})),t}(t),h=p,m=new Set,v=(0,r.useRef)(h),y=(0,r.useRef)(new Map).current,g=(0,r.useRef)(!0);if(cu((function(){g.current=!1,function(e,t){e.forEach((function(e){var n=xu(e);t.set(n,e)}))}(p,y),v.current=h})),wu((function(){g.current=!0,y.clear(),m.clear()})),g.current)return r.createElement(r.Fragment,null,h.map((function(e){return r.createElement(yu,{key:xu(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:l},e)})));h=qs([],Ws(h),!1);for(var b=v.current.map(xu),w=p.map(xu),x=b.length,k=0;k<x;k++){var _=b[k];-1===w.indexOf(_)&&m.add(_)}return s&&m.size&&(h=[]),m.forEach((function(e){if(-1===w.indexOf(e)){var t=y.get(e);if(t){var i=b.indexOf(e);h.splice(i,0,r.createElement(yu,{key:xu(t),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:n,presenceAffectsLayout:l},t))}}})),h=h.map((function(e){var t=e.key;return m.has(t)?e:r.createElement(yu,{key:xu(e),isPresent:!0,presenceAffectsLayout:l},e)})),r.createElement(r.Fragment,null,m.size?h:h.map((function(e){return(0,r.cloneElement)(e)})))},_u=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Eu={measureLayout:_u(["layout","layoutId","drag"]),animation:_u(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:_u(["exit"]),drag:_u(["drag","dragControls"]),focus:_u(["whileFocus"]),hover:_u(["whileHover","onHoverStart","onHoverEnd"]),tap:_u(["whileTap","onTap","onTapStart","onTapCancel"]),pan:_u(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:_u(["whileInView","onViewportEnter","onViewportLeave"])},Su=(0,r.createContext)({strict:!1}),Au=Object.keys(Eu),Ou=Au.length,Cu=(0,r.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),ju=(0,r.createContext)({}),Nu={current:null},Tu=!1;function Pu(e,t,n,i){var a=(0,r.useContext)(Su),o=(0,r.useContext)(ju).visualElement,s=(0,r.useContext)(du),u=function(){var e=(!Tu&&function(){if(Tu=!0,lu)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Nu.current=e.matches};e.addListener(t),t()}else Nu.current=!1}(),Ws((0,r.useState)(Nu.current),1)[0]),t=(0,r.useContext)(Cu).reducedMotion;return"never"!==t&&("always"===t||e)}(),l=(0,r.useRef)(void 0);i||(i=a.renderer),!l.current&&i&&(l.current=i(e,{visualState:t,parent:o,props:n,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial),shouldReduceMotion:u}));var c=l.current;return cu((function(){null==c||c.syncRender()})),(0,r.useEffect)((function(){var e;null===(e=null==c?void 0:c.animationState)||void 0===e||e.animateChanges()})),cu((function(){return function(){return null==c?void 0:c.notifyUnmount()}}),[]),c}function Ru(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Lu(e){return Array.isArray(e)}function Iu(e){return"string"==typeof e||Lu(e)}function Mu(e,t,n,r,i){var a;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function Bu(e,t,n){var r=e.getProps();return Mu(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 Du(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Iu(e.initial)||Iu(e.animate)||Iu(e.whileHover)||Iu(e.whileDrag)||Iu(e.whileTap)||Iu(e.whileFocus)||Iu(e.exit)}function Uu(e){return Boolean(Du(e)||e.variants)}function Fu(e){return Array.isArray(e)?e.join(" "):e}var zu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Vu=1,Hu=(0,r.createContext)({}),Wu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zs(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}(r.Component);function qu(e){var t=e.preloadedFeatures,n=e.createVisualElement,i=e.projectionNodeConstructor,a=e.useRender,o=e.useVisualState,s=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Eu.projectionNodeConstructor=e[t]:Eu[t].Component=e[t])}(t),(0,r.forwardRef)((function(e,t){var u=function(e){var t,n=e.layoutId,i=null===(t=(0,r.useContext)(bu))||void 0===t?void 0:t.id;return i&&void 0!==n?i+"-"+n:n}(e);e=Vs(Vs({},e),{layoutId:u});var l=(0,r.useContext)(Cu),c=null,f=function(e){var t=function(e,t){if(Du(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Iu(n)?n:void 0,animate:Iu(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(ju)),n=t.initial,i=t.animate;return(0,r.useMemo)((function(){return{initial:n,animate:i}}),[Fu(n),Fu(i)])}(e),d=l.isStatic?void 0:pu((function(){if(zu.hasEverUpdated)return Vu++})),p=o(e,l.isStatic);return!l.isStatic&&lu&&(f.visualElement=Pu(s,p,Vs(Vs({},l),e),n),function(e,t,n,i){var a,o=t.layoutId,s=t.layout,u=t.drag,l=t.dragConstraints,c=t.layoutScroll,f=(0,r.useContext)(Hu);i&&n&&!(null==n?void 0:n.projection)&&(n.projection=new i(e,n.getLatestValues(),null===(a=n.parent)||void 0===a?void 0:a.projection),n.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(u)||l&&Ru(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:f,layoutScroll:c}))}(d,e,f.visualElement,i||Eu.projectionNodeConstructor),c=function(e,t,n){var i=[];if((0,r.useContext)(Su),!t)return null;for(var a=0;a<Ou;a++){var o=Au[a],s=Eu[o],u=s.isEnabled,l=s.Component;u(e)&&l&&i.push(r.createElement(l,Vs({key:o},e,{visualElement:t})))}return i}(e,f.visualElement)),r.createElement(Wu,{visualElement:f.visualElement,props:Vs(Vs({},l),e)},c,r.createElement(ju.Provider,{value:f},a(s,e,d,function(e,t,n){return(0,r.useCallback)((function(r){var i;r&&(null===(i=e.mount)||void 0===i||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Ru(n)&&(n.current=r))}),[t])}(p,f.visualElement,t),p,l.isStatic,f.visualElement)))}))}var Gu=["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 Zu(e){return"string"==typeof e&&!e.includes("-")&&!!(Gu.indexOf(e)>-1||/[A-Z]/.test(e))}var Yu={},$u=["","X","Y","Z"],Ku=["transformPerspective","x","y","z"];function Xu(e,t){return Ku.indexOf(e)-Ku.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return $u.forEach((function(t){return Ku.push(e+t)}))}));var Qu=new Set(Ku);function Ju(e){return Qu.has(e)}var el=new Set(["originX","originY","originZ"]);function tl(e){return el.has(e)}function nl(e,t){var n=t.layout,r=t.layoutId;return Ju(e)||tl(e)||(n||void 0!==r)&&(!!Yu[e]||"opacity"===e)}var rl=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},il={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function al(e){return e.startsWith("--")}var ol=function(e,t){return t&&"number"==typeof e?t.transform(e):e},sl=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},ul=function(e){return e%1?Number(e.toFixed(5)):e},ll=/(-)?([\d]*\.?[\d])+/g,cl=/(#[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,fl=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function dl(e){return"string"==typeof e}var pl=function(e){return{test:function(t){return dl(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return"".concat(t).concat(e)}}},hl=pl("deg"),ml=pl("%"),vl=pl("px"),yl=pl("vh"),gl=pl("vw"),bl=Object.assign(Object.assign({},ml),{parse:function(e){return ml.parse(e)/100},transform:function(e){return ml.transform(100*e)}}),wl={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},xl=Object.assign(Object.assign({},wl),{transform:sl(0,1)}),kl=Object.assign(Object.assign({},wl),{default:1}),_l=Vs(Vs({},wl),{transform:Math.round}),El={borderWidth:vl,borderTopWidth:vl,borderRightWidth:vl,borderBottomWidth:vl,borderLeftWidth:vl,borderRadius:vl,radius:vl,borderTopLeftRadius:vl,borderTopRightRadius:vl,borderBottomRightRadius:vl,borderBottomLeftRadius:vl,width:vl,maxWidth:vl,height:vl,maxHeight:vl,size:vl,top:vl,right:vl,bottom:vl,left:vl,padding:vl,paddingTop:vl,paddingRight:vl,paddingBottom:vl,paddingLeft:vl,margin:vl,marginTop:vl,marginRight:vl,marginBottom:vl,marginLeft:vl,rotate:hl,rotateX:hl,rotateY:hl,rotateZ:hl,scale:kl,scaleX:kl,scaleY:kl,scaleZ:kl,skew:hl,skewX:hl,skewY:hl,distance:vl,translateX:vl,translateY:vl,translateZ:vl,x:vl,y:vl,z:vl,perspective:vl,transformPerspective:vl,opacity:xl,originX:bl,originY:bl,originZ:vl,zIndex:_l,fillOpacity:xl,strokeOpacity:xl,numOctaves:_l};function Sl(e,t,n,r){var i,a=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(al(p))o[p]=h;else{var m=El[p],v=ol(h,m);if(Ju(p)){if(c=!0,s[p]=v,u.push(p),!d)continue;h!==(null!==(i=m.default)&&void 0!==i?i:0)&&(d=!1)}else tl(p)?(l[p]=v,f=!0):a[p]=v}}c?a.transform=function(e,t,n,r){var i=e.transform,a=e.transformKeys,o=t.enableHardwareAcceleration,s=void 0===o||o,u=t.allowTransformNone,l=void 0===u||u,c="";a.sort(Xu);for(var f=!1,d=a.length,p=0;p<d;p++){var h=a[p];c+="".concat(il[h]||h,"(").concat(i[h],") "),"z"===h&&(f=!0)}return!f&&s?c+="translateZ(0)":c=c.trim(),r?c=r(i,n?"":c):l&&n&&(c="none"),c}(e,n,d,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),f&&(a.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,a=e.originZ,o=void 0===a?0:a;return"".concat(n," ").concat(i," ").concat(o)}(l))}function Al(e,t,n){for(var r in t)rl(t[r])||nl(r,n)||(e[r]=t[r])}function Ol(e,t,n){var i={};return Al(i,e.style||{},e),Object.assign(i,function(e,t,n){var i=e.transformTemplate;return(0,r.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Sl(e,t,{enableHardwareAcceleration:!n},i);var r=e.style;return Vs(Vs({},e.vars),r)}),[t])}(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function Cl(e,t,n){var r={},i=Ol(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=i,r}var jl=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 Nl(e){return jl.has(e)}var Tl,Pl=function(e){return!Nl(e)};try{(Tl=require("@emotion/is-prop-valid").default)&&(Pl=function(e){return e.startsWith("on")?!Nl(e):Tl(e)})}catch(e){}function Rl(e,t,n){return"string"==typeof e?e:vl.transform(t+n*e)}var Ll={offset:"stroke-dashoffset",array:"stroke-dasharray"},Il={offset:"strokeDashoffset",array:"strokeDasharray"};function Ml(e,t,n,r){var i=t.attrX,a=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;Sl(e,Hs(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=Rl(t,e.x,e.width),i=Rl(n,e.y,e.height);return"".concat(r," ").concat(i)}(m,void 0!==o?o:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==a&&(p.y=a),void 0!==u&&function(e,t,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),e.pathLength=1;var a=i?Ll:Il;e[a.offset]=vl.transform(-r);var o=vl.transform(t),s=vl.transform(n);e[a.array]="".concat(o," ").concat(s)}(p,u,c,d,!1)}var Bl=function(){return Vs(Vs({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Dl(e,t){var n=(0,r.useMemo)((function(){var n=Bl();return Ml(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Vs(Vs({},n.attrs),{style:Vs({},n.style)})}),[t]);if(e.style){var i={};Al(i,e.style,e),n.style=Vs(Vs({},i),n.style)}return n}function Ul(e){return void 0===e&&(e=!1),function(t,n,i,a,o,s){var u=o.latestValues,l=(Zu(t)?Dl:Cl)(n,u,s),c=function(e,t,n){var r={};for(var i in e)(Pl(i)||!0===n&&Nl(i)||!t&&!Nl(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),f=Vs(Vs(Vs({},c),l),{ref:a});return i&&(f["data-projection-id"]=i),(0,r.createElement)(t,f)}}var Fl=/([a-z])([A-Z])/g,zl=function(e){return e.replace(Fl,"$1-$2").toLowerCase()};function Vl(e,t,n,r){var i=t.style,a=t.vars;for(var o in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),a)e.style.setProperty(o,a[o])}var Hl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Wl(e,t,n,r){for(var i in Vl(e,t,void 0,r),t.attrs)e.setAttribute(Hl.has(i)?i:zl(i),t.attrs[i])}function ql(e){var t=e.style,n={};for(var r in t)(rl(t[r])||nl(r,e))&&(n[r]=t[r]);return n}function Gl(e){var t=ql(e);for(var n in e)rl(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Zl(e){return"object"==typeof e&&"function"==typeof e.start}var Yl=function(e){return Array.isArray(e)},$l=function(e){return Yl(e)?e[e.length-1]||0:e};function Kl(e){var t,n=rl(e)?e.get():e;return t=n,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?n.toValue():n}function Xl(e,t,n,r){var i=e.scrapeMotionValuesFromProps,a=e.createRenderState,o=e.onMount,s={latestValues:Jl(t,n,r,i),renderState:a()};return o&&(s.mount=function(e){return o(t,e,s)}),s}var Ql=function(e){return function(t,n){var i=(0,r.useContext)(ju),a=(0,r.useContext)(du);return n?Xl(e,t,i,a):pu((function(){return Xl(e,t,i,a)}))}};function Jl(e,t,n,r){var i={},a=!1===(null==n?void 0:n.initial),o=r(e);for(var s in o)i[s]=Kl(o[s]);var u=e.initial,l=e.animate,c=Du(e),f=Uu(e);t&&f&&!c&&!1!==e.inherit&&(null!=u||(u=t.initial),null!=l||(l=t.animate));var d=a||!1===u,p=d?l:u;return p&&"boolean"!=typeof p&&!Zl(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Mu(e,t);if(n){var r=n.transitionEnd;n.transition;var a=Hs(n,["transitionEnd","transition"]);for(var o in a){var s=a[o];Array.isArray(s)&&(s=s[d?s.length-1:0]),null!==s&&(i[o]=s)}for(var o in r)i[o]=r[o]}})),i}var ec,tc={useVisualState:Ql({scrapeMotionValuesFromProps:Gl,createRenderState:Bl,onMount:function(e,t,n){var r=n.renderState,i=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}}Ml(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),Wl(t,r)}})},nc={useVisualState:Ql({scrapeMotionValuesFromProps:ql,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function rc(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function ic(e,t,n,i){(0,r.useEffect)((function(){var r=e.current;if(n&&r)return rc(r,t,n,i)}),[e,t,n,i])}function ac(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function oc(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"}(ec||(ec={}));var sc={pageX:0,pageY:0};function uc(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||sc;return{x:n[t+"X"],y:n[t+"Y"]}}function lc(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function cc(e,t){return void 0===t&&(t="page"),{point:oc(e)?uc(e,t):lc(e,t)}}var fc=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,cc(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},dc={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},pc={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function hc(e){return lu&&null===window.onpointerdown?e:lu&&null===window.ontouchstart?pc[e]:lu&&null===window.onmousedown?dc[e]:e}function mc(e,t,n,r){return rc(e,hc(t),fc(n,"pointerdown"===t),r)}function vc(e,t,n,r){return ic(e,hc(t),n&&fc(n,"pointerdown"===t),r)}function yc(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var gc=yc("dragHorizontal"),bc=yc("dragVertical");function wc(e){var t=!1;if("y"===e)t=bc();else if("x"===e)t=gc();else{var n=gc(),r=bc();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function xc(){var e=wc(!0);return!e||(e(),!1)}function kc(e,t,n){return function(r,i){var a;ac(r)&&!xc()&&(null===(a=e.animationState)||void 0===a||a.setActive(ec.Hover,t),null==n||n(r,i))}}var _c=function e(t,n){return!!n&&(t===n||e(t,n.parentElement))},Ec=function(e,t){return function(n){return t(e(n))}},Sc=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(Ec)};n(8466),new Set;var Ac=new WeakMap,Oc=new WeakMap,Cc=function(e){var t;null===(t=Ac.get(e.target))||void 0===t||t(e)},jc=function(e){e.forEach(Cc)};var Nc={some:0,all:1};function Tc(e,t,n,i){var a=i.root,o=i.margin,s=i.amount,u=void 0===s?"some":s,l=i.once;(0,r.useEffect)((function(){if(e){var r={root:null==a?void 0:a.current,rootMargin:o,threshold:"number"==typeof u?u:Nc[u]};return function(e,t,n){var r=function(e){var t=e.root,n=Hs(e,["root"]),r=t||document;Oc.has(r)||Oc.set(r,{});var i=Oc.get(r),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(jc,Vs({root:t},n))),i[a]}(t);return Ac.set(e,n),r.observe(e),function(){Ac.delete(e),r.unobserve(e)}}(n.getInstance(),r,(function(e){var r,i=e.isIntersecting;if(t.isInView!==i&&(t.isInView=i,!l||i||!t.hasEnteredView)){i&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(ec.InView,i);var a=n.getProps(),o=i?a.onViewportEnter:a.onViewportLeave;null==o||o(e)}}))}}),[e,a,o,u])}function Pc(e,t,n,i){var a=i.fallback,o=void 0===a||a;(0,r.useEffect)((function(){e&&o&&requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(ec.InView,!0)}))}),[e])}var Rc=function(e){return function(t){return e(t),null}},Lc={inView:Rc((function(e){var t=e.visualElement,n=e.whileInView,i=e.onViewportEnter,a=e.onViewportLeave,o=e.viewport,s=void 0===o?{}:o,u=(0,r.useRef)({hasEnteredView:!1,isInView:!1}),l=Boolean(n||i||a);s.once&&u.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?Pc:Tc)(l,u.current,t,s)})),tap:Rc((function(e){var t=e.onTap,n=e.onTapStart,i=e.onTapCancel,a=e.whileTap,o=e.visualElement,s=t||n||i||a,u=(0,r.useRef)(!1),l=(0,r.useRef)(null),c={passive:!(n||t||i||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(ec.Tap,!1),!xc()}function p(e,n){d()&&(_c(o.getInstance(),e.target)?null==t||t(e,n):null==i||i(e,n))}function h(e,t){d()&&(null==i||i(e,t))}function m(e,t){var r;f(),u.current||(u.current=!0,l.current=Sc(mc(window,"pointerup",p,c),mc(window,"pointercancel",h,c)),null===(r=o.animationState)||void 0===r||r.setActive(ec.Tap,!0),null==n||n(e,t))}vc(o,"pointerdown",s?m:void 0,c),wu(f)})),focus:Rc((function(e){var t=e.whileFocus,n=e.visualElement;ic(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ec.Focus,!0)}:void 0),ic(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ec.Focus,!1)}:void 0)})),hover:Rc((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;vc(i,"pointerenter",t||r?kc(i,!0,t):void 0,{passive:!t}),vc(i,"pointerleave",n||r?kc(i,!1,n):void 0,{passive:!n})}))};function Ic(){var e=(0,r.useContext)(du);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,i=e.register,a=vu();return(0,r.useEffect)((function(){return i(a)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(a)}]:[!0]}function Mc(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 Bc(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create,Object.create;var Dc=function(e,t,n){return Math.min(Math.max(n,e),t)};function Uc(e,t){return e*Math.sqrt(1-t*t)}var Fc=["duration","bounce"],zc=["stiffness","damping","mass"];function Vc(e,t){return t.some((function(t){return void 0!==e[t]}))}function Hc(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,a=e.restSpeed,o=void 0===a?2:a,s=e.restDelta,u=Bc(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(!Vc(e,zc)&&Vc(e,Fc)){var n=function(e){var t,n,r=e.duration,i=void 0===r?800:r,a=e.bounce,o=void 0===a?.25:a,s=e.velocity,u=void 0===s?0:s,l=e.mass,c=void 0===l?1:l,f=1-o;f=Dc(.05,1,f),i=Dc(.01,10,i/1e3),f<1?(t=function(e){var t=e*f,n=t*i;return.001-(t-u)/Uc(e,f)*Math.exp(-n)},n=function(e){var n=e*f*i,r=n*u+u,a=Math.pow(f,2)*Math.pow(e,2)*i,o=Math.exp(-n),s=Uc(Math.pow(e,2),f);return(.001-t(e)>0?-1:1)*((r-a)*o)/s}):(t=function(e){return Math.exp(-e*i)*((e-u)*i+1)-.001},n=function(e){return Math.exp(-e*i)*(i*i*(u-e))});var d=function(e,t,n){for(var r=n,i=1;i<12;i++)r-=e(r)/t(r);return r}(t,n,5/i);if(i*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:i};var p=Math.pow(d,2)*c;return{stiffness:p,damping:2*f*Math.sqrt(c*p),duration:i}}(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=Wc,g=Wc;function b(){var e=h?-h/1e3:0,t=i-n,r=d/(2*Math.sqrt(f*p)),a=Math.sqrt(f/p)/1e3;if(void 0===s&&(s=Math.min(Math.abs(i-n)/100,.4)),r<1){var o=Uc(a,r);y=function(n){var s=Math.exp(-r*a*n);return i-s*((e+r*a*t)/o*Math.sin(o*n)+t*Math.cos(o*n))},g=function(n){var i=Math.exp(-r*a*n);return r*a*i*(Math.sin(o*n)*(e+r*a*t)/o+t*Math.cos(o*n))-i*(Math.cos(o*n)*(e+r*a*t)-o*t*Math.sin(o*n))}}else if(1===r)y=function(n){return i-Math.exp(-a*n)*(t+(e+a*t)*n)};else{var u=a*Math.sqrt(r*r-1);y=function(n){var o=Math.exp(-r*a*n),s=Math.min(u*n,300);return i-o*((e+r*a*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,a=Math.abs(i-t)<=s;l.done=r&&a}return l.value=l.done?i:t,l},flipTarget:function(){h=-h;var e=[i,n];n=e[0],i=e[1],b()}}}Hc.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var Wc=function(e){return 0},qc=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},Gc=function(e,t,n){return-n*e+n*t+e},Zc=function(e,t){return function(n){return Boolean(dl(n)&&fl.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},Yc=function(e,t,n){return function(r){var i;if(!dl(r))return r;var a=s(r.match(ll),4),o=a[0],l=a[1],c=a[2],f=a[3];return u(i={},e,parseFloat(o)),u(i,t,parseFloat(l)),u(i,n,parseFloat(c)),u(i,"alpha",void 0!==f?parseFloat(f):1),i}},$c=sl(0,255),Kc=Object.assign(Object.assign({},wl),{transform:function(e){return Math.round($c(e))}}),Xc={test:Zc("rgb","red"),parse:Yc("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha,a=void 0===i?1:i;return"rgba("+Kc.transform(t)+", "+Kc.transform(n)+", "+Kc.transform(r)+", "+ul(xl.transform(a))+")"}},Qc={test:Zc("#"),parse:function(e){var t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:Xc.transform},Jc={test:Zc("hsl","hue"),parse:Yc("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha,a=void 0===i?1:i;return"hsla("+Math.round(t)+", "+ml.transform(ul(n))+", "+ml.transform(ul(r))+", "+ul(xl.transform(a))+")"}};function ef(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 tf(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha;t/=360,r/=100;var a=0,o=0,s=0;if(n/=100){var u=r<.5?r*(1+n):r+n-r*n,l=2*r-u;a=ef(l,u,t+1/3),o=ef(l,u,t),s=ef(l,u,t-1/3)}else a=o=s=r;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}var nf=function(e,t,n){var r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},rf=[Qc,Xc,Jc],af=function(e){return rf.find((function(t){return t.test(e)}))},of=function(e){return"'".concat(e,"' is not an animatable color. Use the equivalent color code instead.")},sf=function(e,t){var n=af(e),r=af(t);of(e),of(t);var i=n.parse(e),a=r.parse(t);n===Jc&&(i=tf(i),n=Xc),r===Jc&&(a=tf(a),r=Xc);var o=Object.assign({},i);return function(e){for(var t in o)"alpha"!==t&&(o[t]=nf(i[t],a[t],e));return o.alpha=Gc(i.alpha,a.alpha,e),n.transform(o)}},uf={test:function(e){return Xc.test(e)||Qc.test(e)||Jc.test(e)},parse:function(e){return Xc.test(e)?Xc.parse(e):Jc.test(e)?Jc.parse(e):Qc.parse(e)},transform:function(e){return dl(e)?e:e.hasOwnProperty("red")?Xc.transform(e):Jc.transform(e)}},cf="${c}",ff="${n}";function df(e){"number"==typeof e&&(e="".concat(e));var t=[],n=0,r=e.match(cl);r&&(n=r.length,e=e.replace(cl,cf),t.push.apply(t,g(r.map(uf.parse))));var i=e.match(ll);return i&&(e=e.replace(ll,ff),t.push.apply(t,g(i.map(wl.parse)))),{values:t,numColors:n,tokenised:e}}function pf(e){return df(e).values}function hf(e){var t=df(e),n=t.values,r=t.numColors,i=t.tokenised,a=n.length;return function(e){for(var t=i,n=0;n<a;n++)t=t.replace(n<r?cf:ff,n<r?uf.transform(e[n]):ul(e[n]));return t}}var mf=function(e){return"number"==typeof e?0:e},vf={test:function(e){var t,n,r,i;return isNaN(e)&&dl(e)&&(null!==(n=null===(t=e.match(ll))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(cl))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:pf,createTransformer:hf,getAnimatableNone:function(e){var t=pf(e);return hf(e)(t.map(mf))}},yf=function(e){return"number"==typeof e};function gf(e,t){return yf(e)?function(n){return Gc(e,t,n)}:uf.test(e)?sf(e,t):kf(e,t)}var bf=function(e,t){var n=g(e),r=n.length,i=e.map((function(e,n){return gf(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=i[t](e);return n}},wf=function(e,t){var n=Object.assign(Object.assign({},e),t),r={};for(var i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=gf(e[i],t[i]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function xf(e){for(var t=vf.parse(e),n=t.length,r=0,i=0,a=0,o=0;o<n;o++)r||"number"==typeof t[o]?r++:void 0!==t[o].hue?a++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:a}}var kf=function(e,t){var n=vf.createTransformer(t),r=xf(e),i=xf(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?Sc(bf(r.parsed,i.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)})},_f=function(e,t){return function(n){return Gc(e,t,n)}};function Ef(e,t,n){for(var r,i=[],a=n||("number"==typeof(r=e[0])?_f:"string"==typeof r?uf.test(r)?sf:kf:Array.isArray(r)?bf:"object"==typeof r?wf:void 0),o=e.length-1,s=0;s<o;s++){var u=a(e[s],e[s+1]);if(t){var l=Array.isArray(t)?t[s]:t;u=Sc(l,u)}i.push(u)}return i}function Sf(e,t){var n=s(e,2),r=n[0],i=n[1],a=s(t,1)[0];return function(e){return a(qc(r,i,e))}}function Af(e,t){var n=e.length,r=n-1;return function(i){var a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){for(var s=1;s<n&&!(e[s]>i||s===r);s++);a=s-1}var u=qc(e[a],e[a+1],i);return t[a](u)}}function Of(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.clamp,i=void 0===r||r,a=n.ease,o=n.mixer,s=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var u=Ef(t,a,o),l=2===s?Sf(e,u):Af(e,u);return i?function(t){return l(Dc(e[0],e[s-1],t))}:l}var Cf=function(e){return function(t){return 1-e(1-t)}},jf=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},Nf=function(e){return function(t){return t*t*((e+1)*t-e)}},Tf=function(e){return e},Pf=(2,function(e){return Math.pow(e,2)}),Rf=Cf(Pf),Lf=jf(Pf),If=function(e){return 1-Math.sin(Math.acos(e))},Mf=Cf(If),Bf=jf(Mf),Df=Nf(1.525),Uf=Cf(Df),Ff=jf(Df),zf=function(e){var t=Nf(1.525);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(),Vf=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},Hf=Cf(Vf);function Wf(e,t){return e.map((function(){return t||Lf})).splice(0,e.length-1)}function qf(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,a=e.ease,o=e.offset,s=e.duration,u=void 0===s?300:s,l={done:!1,value:n},c=Array.isArray(i)?i:[n,i],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 Of(f,c,{ease:Array.isArray(a)?a:Wf(c,a)})}var p=d();return{next:function(e){return l.value=p(e),l.done=e>=u,l},flipTarget:function(){c.reverse(),p=d()}}}var Gf={keyframes:qf,spring:Hc,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,i=void 0===r?0:r,a=e.power,o=void 0===a?.8:a,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:i},p=o*n,h=i+p,m=void 0===f?h:f(h);return m!==h&&(p=m-i),{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 Zf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e-t-n}var Yf=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return uu.update(t,!0)},stop:function(){return nu.update(t)}}};function $f(e){var t,n,r,i,a,o=e.from,s=e.autoplay,u=void 0===s||s,l=e.driver,c=void 0===l?Yf: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.onUpdate,E=Bc(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),S=E.to,A=0,O=E.duration,C=!1,j=!0,N=function(e){if(Array.isArray(e.to))return qf;if(Gf[e.type])return Gf[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?qf:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Hc:qf}(E);(null===(n=(t=N).needsInterpolation)||void 0===n?void 0:n.call(t,o,S))&&(a=Of([0,100],[o,S],{clamp:!1}),o=0,S=100);var T=N(Object.assign(Object.assign({},E),{from:o,to:S}));return u&&(null==b||b(),(r=c((function(e){if(j||(e=-e),d+=e,!C){var t=T.next(Math.max(0,d));i=t.value,a&&(i=a(i)),C=j?t.done:d<=0}null==_||_(i),C&&(0===A&&(null!=O||(O=d)),A<h?function(e,t,n,r){return r?e>=t+n:e<=-n}(d,O,g,j)&&(A++,"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:Zf(t+-e,t,n)}(d,O,g,j=A%2==0):(d=Zf(d,O,g),"mirror"===v&&T.flipTarget()),C=!1,k&&k()):(r.stop(),x&&x()))}))).start()),{stop:function(){null==w||w(),r.stop()}}}function Kf(e,t){return t?e*(1e3/t):0}var Xf=function(e){return 1e3*e},Qf=function(e,t){return 1-3*t+3*e},Jf=function(e,t){return 3*t-6*e},ed=function(e){return 3*e},td=function(e,t,n){return((Qf(t,n)*e+Jf(t,n))*e+ed(t))*e},nd=function(e,t,n){return 3*Qf(t,n)*e*e+2*Jf(t,n)*e+ed(t)},rd=.1;var id={linear:Tf,easeIn:Pf,easeInOut:Lf,easeOut:Rf,circIn:If,circInOut:Bf,circOut:Mf,backIn:Df,backInOut:Ff,backOut:Uf,anticipate:zf,bounceIn:Hf,bounceInOut:function(e){return e<.5?.5*(1-Vf(1-2*e)):.5*Vf(2*e-1)+.5},bounceOut:Vf},ad=function(e){if(Array.isArray(e)){e.length;var t=Ws(e,4);return function(e,t,n,r){if(e===t&&n===r)return Tf;for(var i=new Float32Array(11),a=0;a<11;++a)i[a]=td(a*rd,e,n);function o(t){for(var r=0,a=1;10!==a&&i[a]<=t;++a)r+=rd;--a;var o=r+(t-i[a])/(i[a+1]-i[a])*rd,s=nd(o,e,n);return s>=.001?function(e,t,n,r){for(var i=0;i<8;++i){var a=nd(t,n,r);if(0===a)return t;t-=(td(t,n,r)-e)/a}return t}(t,o,e,n):0===s?o:function(e,t,n,r,i){var a,o,s=0;do{(a=td(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o}while(Math.abs(a)>1e-7&&++s<10);return o}(t,r,r+rd,e,n)}return function(e){return 0===e||1===e?e:td(o(e),t,r)}}(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),id[e]):e},od=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!vf.test(t)||t.startsWith("url(")))},sd=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},ud=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},ld=function(){return{type:"keyframes",ease:"linear",duration:.3}},cd=function(e){return{type:"keyframes",duration:.8,values:e}},fd={x:sd,y:sd,z:sd,rotate:sd,rotateX:sd,rotateY:sd,rotateZ:sd,scaleX:ud,scaleY:ud,scale:ud,opacity:ld,backgroundColor:ld,color:ld,default:ud},dd=new Set(["brightness","contrast","saturate","opacity"]);function pd(e){var t=s(e.slice(0,-1).split("("),2),n=t[0],r=t[1];if("drop-shadow"===n)return e;var i=s(r.match(ll)||[],1)[0];if(!i)return e;var a=r.replace(i,""),o=dd.has(n)?1:0;return i!==r&&(o*=100),n+"("+o+a+")"}var hd=/([a-z-]*)\(.*?\)/g,md=Object.assign(Object.assign({},vf),{getAnimatableNone:function(e){var t=e.match(hd);return t?t.map(pd).join(" "):e}}),vd=Vs(Vs({},El),{color:uf,backgroundColor:uf,outlineColor:uf,fill:uf,stroke:uf,borderColor:uf,borderTopColor:uf,borderRightColor:uf,borderBottomColor:uf,borderLeftColor:uf,filter:md,WebkitFilter:md}),yd=function(e){return vd[e]};function gd(e,t){var n,r=yd(e);return r!==md&&(r=vf),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function bd(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=qs([],Ws(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=Hs(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Vs(Vs({},e),function(e,t){var n;return n=Yl(t)?cd:fd[e]||fd.default,Vs({to:t},n(t))}(n,t.to))),Vs(Vs({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,a=e.loop,o=Hs(e,["ease","times","yoyo","flip","loop"]),s=Vs({},o);return n&&(s.offset=n),o.duration&&(s.duration=Xf(o.duration)),o.repeatDelay&&(s.repeatDelay=Xf(o.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(ad):ad(t)),"tween"===o.type&&(s.type="keyframes"),(r||a||i)&&(r?s.repeatType="reverse":a?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=a||r||i||o.repeat),"spring"!==o.type&&(s.type="keyframes"),s}(e))}function wd(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function xd(e){return"number"==typeof e?0:gd("",e)}function kd(e,t){return e[t]||e.default||e}function _d(e,t,n,r){return void 0===r&&(r={}),t.start((function(i){var a,o,s=function(e,t,n,r,i){var a,o=kd(r,e),s=null!==(a=o.from)&&void 0!==a?a:t.get(),u=od(e,n);"none"===s&&u&&"string"==typeof n?s=gd(e,n):wd(s)&&"string"==typeof n?s=xd(n):!Array.isArray(n)&&wd(n)&&"string"==typeof s&&(n=xd(s));var l=od(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:i,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,i=e.velocity,a=void 0===i?0:i,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){return void 0!==o&&e<o||void 0!==s&&e>s}function E(e){return void 0===o?s:void 0===s||Math.abs(o-e)<Math.abs(s-e)?o:s}function S(e){null==t||t.stop(),t=$f(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 A(e){S(Object.assign({type:"spring",stiffness:p,damping:m,restDelta:y},e))}if(_(r))A({from:r,velocity:a,to:E(r)});else{var O=l*a+r;void 0!==g&&(O=g(O));var C,j,N=E(O),T=N===o?-1:1;S({type:"decay",from:r,velocity:a,timeConstant:f,power:l,restDelta:y,modifyTarget:g,onUpdate:_(O)?function(e){C=j,j=e,a=Kf(e-C,su().delta),(1===T&&e>N||-1===T&&e<N)&&A({from:e,to:N,velocity:a})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}(Vs(Vs({},r),o)):$f(Vs(Vs({},bd(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,a=$l(n);return t.set(a),i(),null===(e=null==o?void 0:o.onUpdate)||void 0===e||e.call(o,a),null===(r=null==o?void 0:o.onComplete)||void 0===r||r.call(o),{stop:function(){}}}}(e,t,n,r,i),u=function(e,t){var n,r;return null!==(r=null!==(n=(kd(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),l=function(){return o=s()};return u?a=window.setTimeout(l,Xf(u)):l(),function(){clearTimeout(a),null==o||o.stop()}}))}var Ed=function(e){return/^0[^.\s]+$/.test(e)};function Sd(e,t){-1===e.indexOf(t)&&e.push(t)}function Ad(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Od=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Sd(this.subscriptions,e),function(){return Ad(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 i=0;i<r;i++){var a=this.subscriptions[i];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Cd=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Od,this.velocityUpdateSubscribers=new Od,this.renderSubscribers=new Od,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=su(),i=r.delta,a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=i,t.lastUpdated=a,uu.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 uu.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?Kf(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 jd(e){return new Cd(e)}var Nd=function(e){return function(t){return t.test(e)}},Td=[wl,vl,ml,hl,gl,yl,{test:function(e){return"auto"===e},parse:function(e){return e}}],Pd=function(e){return Td.find(Nd(e))},Rd=qs(qs([],Ws(Td),!1),[uf,vf],!1),Ld=function(e){return Rd.find(Nd(e))};function Id(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,jd(n))}function Md(e,t){if(t)return(t[e]||t.default||t).from}function Bd(e,t,n){var r;void 0===n&&(n={});var i=Bu(e,t,n.custom),a=(i||{}).transition,o=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(o=n.transitionOverride);var s=i?function(){return Dd(e,i,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 i=o.delayChildren,a=void 0===i?0:i,s=o.staggerChildren,u=o.staggerDirection;return function(e,t,n,r,i,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=1);var o=[],s=(e.variantChildren.size-1)*r,u=1===i?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(Ud).forEach((function(e,r){o.push(Bd(e,t,Vs(Vs({},a),{delay:n+u(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(o)}(e,t,a+r,s,u,n)}:function(){return Promise.resolve()},l=o.when;if(l){var c=Ws("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 Dd(e,t,n){var r,i=void 0===n?{}:n,a=i.delay,o=void 0===a?0:a,s=i.transitionOverride,u=i.type,l=e.makeTargetAnimatable(t),c=l.transition,f=void 0===c?e.getDefaultTransition():c,d=l.transitionEnd,p=Hs(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&&Fd(m,v))){var b=Vs({delay:o},f);e.shouldReduceMotion&&Ju(v)&&(b=Vs(Vs({},b),{type:!1,delay:0}));var w=_d(v,y,g,b);h.push(w)}}return Promise.all(h).then((function(){d&&function(e,t){var n=Bu(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,a=void 0===i?{}:i;r.transition;var o=Hs(r,["transitionEnd","transition"]);for(var s in o=Vs(Vs({},o),a))Id(e,s,$l(o[s]))}(e,d)}))}function Ud(e,t){return e.sortNodePosition(t)}function Fd(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var zd=[ec.Animate,ec.InView,ec.Focus,ec.Hover,ec.Tap,ec.Drag,ec.Exit],Vd=qs([],Ws(zd),!1).reverse(),Hd=zd.length;function Wd(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 i=t.map((function(t){return Bd(e,t,n)}));r=Promise.all(i)}else if("string"==typeof t)r=Bd(e,t,n);else{var a="function"==typeof t?Bu(e,t,n.custom):t;r=Dd(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[ec.Animate]=qd(!0),e[ec.InView]=qd(),e[ec.Hover]=qd(),e[ec.Tap]=qd(),e[ec.Drag]=qd(),e[ec.Focus]=qd(),e[ec.Exit]=qd(),e}(),r={},i=!0,a=function(t,n){var r=Bu(e,n);if(r){r.transition;var i=r.transitionEnd,a=Hs(r,["transition","transitionEnd"]);t=Vs(Vs(Vs({},t),a),i)}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=Vd[t],m=n[r],v=null!==(u=l[r])&&void 0!==u?u:c[r],y=Iu(v),g=r===s?m.isActive:null;!1===g&&(h=t);var b=v===c[r]&&v!==l[r]&&y;if(b&&i&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys=Vs({},p),!m.isActive&&null===g||!v&&!m.prevProp||Zl(v)||"boolean"==typeof v)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Lu(t)&&!Mc(t,e)}(m.prevProp,v),x=w||r===s&&m.isActive&&!b&&y||t>h&&y,k=Array.isArray(v)?v:[v],_=k.reduce(a,{});!1===g&&(_={});var E=m.prevResolvedValues,S=void 0===E?{}:E,A=Vs(Vs({},S),_),O=function(e){x=!0,d.delete(e),m.needsAnimating[e]=!0};for(var C in A){var j=_[C],N=S[C];p.hasOwnProperty(C)||(j!==N?Yl(j)&&Yl(N)?!Mc(j,N)||w?O(C):m.protectedKeys[C]=!0:void 0!==j?O(C):d.add(C):void 0!==j&&d.has(C)?O(C):m.protectedKeys[C]=!0)}m.prevProp=v,m.prevResolvedValues=_,m.isActive&&(p=Vs(Vs({},p),_)),i&&e.blockInitialAnimation&&(x=!1),x&&!b&&f.push.apply(f,qs([],Ws(k.map((function(e){return{animation:e,options:Vs({type:r},o)}}))),!1))},v=0;v<Hd;v++)m(v);if(r=Vs({},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 i&&!1===l.initial&&!e.manuallyAnimateOnMount&&(g=!1),i=!1,g?t(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.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(i,t);for(var u in n)n[u].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function qd(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Gd={animation:Rc((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Wd(t)),Zl(n)&&(0,r.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:Rc((function(e){var t=e.custom,n=e.visualElement,i=Ws(Ic(),2),a=i[0],o=i[1],s=(0,r.useContext)(du);(0,r.useEffect)((function(){var e,r;n.isPresent=a;var i=null===(e=n.animationState)||void 0===e?void 0:e.setActive(ec.Exit,!a,{custom:null!==(r=null==s?void 0:s.custom)&&void 0!==r?r:t});!a&&(null==i||i.then(o))}),[a])}))},Zd=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Yd=function(e){return Zd(e)&&e.hasOwnProperty("z")},$d=function(e,t){return Math.abs(e-t)};function Kd(e,t){if(yf(e)&&yf(t))return $d(e,t);if(Zd(e)&&Zd(t)){var n=$d(e.x,t.x),r=$d(e.y,t.y),i=Yd(e)&&Yd(t)?$d(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var Xd=function(){function e(e,t,n){var r=this,i=(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=ep(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=Kd(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=su().timestamp;r.history.push(Vs(Vs({},i),{timestamp:a}));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=Qd(t,r.transformPagePoint),ac(e)&&0===e.buttons?r.handlePointerUp(e,t):uu.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,a=n.onSessionEnd,o=ep(Qd(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,o),a&&a(e,o)},!(oc(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=Qd(cc(e),this.transformPagePoint),o=a.point,s=su().timestamp;this.history=[Vs(Vs({},o),{timestamp:s})];var u=t.onSessionStart;u&&u(e,ep(a,this.history)),this.removeListeners=Sc(mc(window,"pointermove",this.handlePointerMove),mc(window,"pointerup",this.handlePointerUp),mc(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),nu.update(this.updatePoint)},e}();function Qd(e,t){return t?{point:t(e.point)}:e}function Jd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ep(e,t){var n=e.point;return{point:n,delta:Jd(n,np(t)),offset:Jd(n,tp(t)),velocity:rp(t,.1)}}function tp(e){return e[0]}function np(e){return e[e.length-1]}function rp(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=np(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Xf(t)));)n--;if(!r)return{x:0,y:0};var a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function ip(e){return e.max-e.min}function ap(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Kd(e,t)<n}function op(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Gc(t.min,t.max,e.origin),e.scale=ip(n)/ip(t),(ap(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Gc(n.min,n.max,e.origin)-e.originPoint,(ap(e.translate)||isNaN(e.translate))&&(e.translate=0)}function sp(e,t,n,r){op(e.x,t.x,n.x,null==r?void 0:r.originX),op(e.y,t.y,n.y,null==r?void 0:r.originY)}function up(e,t,n){e.min=n.min+t.min,e.max=e.min+ip(t)}function lp(e,t,n){e.min=t.min-n.min,e.max=e.min+ip(t)}function cp(e,t,n){lp(e.x,t.x,n.x),lp(e.y,t.y,n.y)}function fp(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 dp(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Ws([i,r],2))[0],i=n[1]),{min:r,max:i}}var pp=.35;function hp(e,t,n){return{min:mp(e,t),max:mp(e,n)}}function mp(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function vp(e){return[e("x"),e("y")]}function yp(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function gp(e){return void 0===e||1===e}function bp(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!gp(t)||!gp(n)||!gp(r)}function wp(e){return bp(e)||xp(e.x)||xp(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function xp(e){return e&&"0%"!==e}function kp(e,t,n){return n+t*(e-n)}function _p(e,t,n,r,i){return void 0!==i&&(e=kp(e,i,r)),kp(e,n,r)+t}function Ep(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=_p(e.min,t,n,r,i),e.max=_p(e.max,t,n,r,i)}function Sp(e,t){var n=t.x,r=t.y;Ep(e.x,n.translate,n.scale,n.originPoint),Ep(e.y,r.translate,r.scale,r.originPoint)}function Ap(e,t){e.min=e.min+t,e.max=e.max+t}function Op(e,t,n){var r=Ws(n,3),i=r[0],a=r[1],o=r[2],s=void 0!==t[o]?t[o]:.5,u=Gc(e.min,e.max,s);Ep(e,t[i],t[a],u,t.scale)}var Cp=["x","scaleX","originX"],jp=["y","scaleY","originY"];function Np(e,t){Op(e.x,t,Cp),Op(e.y,t,jp)}function Tp(e,t){return yp(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 Pp=new WeakMap,Rp=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,i=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new Xd(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(cc(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),a=i.drag,o=i.dragPropagation,s=i.onDragStart;(!a||o||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=wc(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),vp((function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(ml.test(i)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(i=ip(a)*(parseFloat(i)/100))}n.originPoint[e]=i})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(ec.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,a=r.dragDirectionLock,o=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var u=t.offset;if(a&&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 i=this.getProps().onDragEnd;null==i||i(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(ec.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Lp(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?Gc(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?Gc(i,e,n.max):Math.min(e,i)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Ru(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,a=t.right;return{x:fp(e.x,r,a),y:fp(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=pp),!1===e?e=0:!0===e&&(e=pp),{x:hp(e,"left","right"),y:hp(e,"top","bottom")}}(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&vp((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}(i.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Ru(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var a=function(e,t,n){var r=Tp(e,n),i=t.scroll;return i&&(Ap(r.x,i.x),Ap(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o=function(e,t){return{x:dp(e.x,t.x),y:dp(e.y,t.y)}}(i.layout.actual,a);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=yp(s))}return o},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,a=n.dragElastic,o=n.dragTransition,s=n.dragSnapToOrigin,u=n.onDragTransitionEnd,l=this.constraints||{},c=vp((function(n){var u;if(Lp(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=a?200:1e6,d=a?40:1e7,p=Vs(Vs({type:"inertia",velocity:i?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 _d(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;vp((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;vp((function(n){if(Lp(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],o=a.min,s=a.max;i.set(e[n]-Gc(o,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,a=this.visualElement.projection;if(Ru(i)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};vp((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();o[e]=function(e,t){var n=.5,r=ip(e),i=ip(t);return i>r?n=qc(t.min,t.max-r,e.min):r>i&&(n=qc(e.min,e.max-i,t.min)),Dc(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=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),vp((function(e){if(Lp(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],a=i.min,s=i.max;n.set(Gc(a,s,o[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Pp.set(this.visualElement,this);var n=mc(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=function(){Ru(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,a=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var o=rc(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(vp((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(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,a=e.dragPropagation,o=void 0!==a&&a,s=e.dragConstraints,u=void 0!==s&&s,l=e.dragElastic,c=void 0===l?pp:l,f=e.dragMomentum,d=void 0===f||f;return Vs(Vs({},e),{drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:d})},e}();function Lp(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Ip={pan:Rc((function(e){var t=e.onPan,n=e.onPanStart,i=e.onPanEnd,a=e.onPanSessionStart,o=e.visualElement,s=t||n||i||a,u=(0,r.useRef)(null),l=(0,r.useContext)(Cu).transformPagePoint,c={onSessionStart:a,onStart:n,onMove:t,onEnd:function(e,t){u.current=null,i&&i(e,t)}};(0,r.useEffect)((function(){null!==u.current&&u.current.updateHandlers(c)})),vc(o,"pointerdown",s&&function(e){u.current=new Xd(e,c,{transformPagePoint:l})}),wu((function(){return u.current&&u.current.end()}))})),drag:Rc((function(e){var t=e.dragControls,n=e.visualElement,i=pu((function(){return new Rp(n)}));(0,r.useEffect)((function(){return t&&t.subscribe(i)}),[i,t]),(0,r.useEffect)((function(){return i.addListeners()}),[i])}))},Mp=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Bp=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,a=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,_=function(){var e=Mp.map((function(){return new Od})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Mp.forEach((function(r){var i,a="on"+r,o=e[a];null===(i=t[r])||void 0===i||i.call(t),o&&(t[r]=n[a](o))}))}};return e.forEach((function(e,t){n["on"+Mp[t]]=function(t){return e.add(t)},n["notify"+Mp[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,qs([],Ws(t),!1))}})),n}(),E=new Map,S=new Map,A={},O=Vs({},x);function C(){g&&w&&(j(),s(g,k,p.style,B.projection))}function j(){r(B,k,x,t,p)}function N(){_.notifyUpdate(x)}function T(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&uu.update(N,!1,!0)})),r=t.onRenderRequest(B.scheduleRender);S.set(e,(function(){n(),r()}))}var P=f(p);for(var R in P){var L=P[R];void 0!==x[R]&&rl(L)&&L.set(x[R],!1)}var I=Du(p),M=Uu(p),B=Vs(Vs({treeType:n,current:null,depth:d?d.depth+1:0,parent:d,children:new Set,presenceId:h,shouldReduceMotion:y,variantChildren:M?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),M&&d&&!I&&(b=null==d?void 0:d.addVariantChild(B)),E.forEach((function(e,t){return T(t,e)})),null==d||d.children.add(B),B.setProps(p)},unmount:function(){var e;null===(e=B.projection)||void 0===e||e.unmount(),nu.update(N),nu.render(C),S.forEach((function(e){return e()})),null==b||b(),null==d||d.children.delete(B),_.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 M?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),a(B,e,p,t)},measureViewportBox:function(){return o(g,p)},addValue:function(e,t){B.hasValue(e)&&B.removeValue(e),E.set(e,t),x[e]=t.get(),T(e,t)},removeValue:function(e){var t;E.delete(e),null===(t=S.get(e))||void 0===t||t(),S.delete(e),delete x[e],l(e,k)},hasValue:function(e){return E.has(e)},getValue:function(e,t){var n=E.get(e);return void 0===n&&void 0!==t&&(n=jd(t),B.addValue(e,n)),n},forEachValue:function(e){return E.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:u(g,e,t)},setBaseTarget:function(e,t){O[e]=t},getBaseTarget:function(e){if(i){var t=i(p,e);if(void 0!==t&&!rl(t))return t}return O[e]}},_),{build:function(){return j(),k},scheduleRender:function(){uu.render(C,!1,!0)},syncRender:C,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&B.scheduleRender(),p=e,_.updatePropListeners(e),A=function(e,t,n){var r;for(var i in t){var a=t[i],o=n[i];if(rl(a))e.addValue(i,a);else if(rl(o))e.addValue(i,jd(a));else if(o!==a)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(a)}else e.addValue(i,jd(null!==(r=e.getStaticValue(i))&&void 0!==r?r:a))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(B,f(p),A)},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(!I){var t=(null==d?void 0:d.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Up;r++){var i=Dp[r],a=p[i];(Iu(a)||!1===a)&&(n[i]=a)}return n}});return B}},Dp=qs(["initial"],Ws(zd),!1),Up=Dp.length;function Fp(e){return"string"==typeof e&&e.startsWith("var(--")}var zp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Vp(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=Ws(function(e){var t=zp.exec(e);if(!t)return[,];var n=Ws(t,3);return[n[1],n[2]]}(e),2),i=r[0],a=r[1];if(i){var o=window.getComputedStyle(t).getPropertyValue(i);return o?o.trim():Fp(a)?Vp(a,t,n+1):a}}var Hp,Wp=new Set(["width","height","top","left","right","bottom","x","y"]),qp=function(e){return Wp.has(e)},Gp=function(e,t){e.set(t,!1),e.set(t)},Zp=function(e){return e===wl||e===vl};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Hp||(Hp={}));var Yp=function(e,t){return parseFloat(e.split(", ")[t])},$p=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return Yp(a[1],t);var o=i.match(/^matrix\((.+)\)$/);return o?Yp(o[1],e):0}},Kp=new Set(["x","y","z"]),Xp=Ku.filter((function(e){return!Kp.has(e)})),Qp={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,a=t.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,a=t.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-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:$p(4,13),y:$p(5,14)};function Jp(e,t,n,r){return function(e){return Object.keys(e).some(qp)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Vs({},t),r=Vs({},r);var i=Object.keys(t).filter(qp),a=[],o=!1,s=[];if(i.forEach((function(i){var u=e.getValue(i);if(e.hasValue(i)){var l,c=n[i],f=Pd(c),d=t[i];if(Yl(d)){var p=d.length,h=null===d[0]?1:0;c=d[h],f=Pd(c);for(var m=h;m<p;m++)l?Pd(d[m]):(l=Pd(d[m]))===f||Zp(f)&&Zp(l)}else l=Pd(d);if(f!==l)if(Zp(f)&&Zp(l)){var v=u.get();"string"==typeof v&&u.set(parseFloat(v)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&l===vl&&(t[i]=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[i]=f.transform(d):(o||(a=function(e){var t=[];return Xp.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(i),r[i]=void 0!==r[i]?r[i]:t[i],Gp(u,d))}})),s.length){var u=s.indexOf("height")>=0?window.pageYOffset:null,l=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),a=getComputedStyle(i),o=a.display,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=Qp[e](r,a)})),t.syncRender();var u=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);Gp(r,s[n]),e[n]=Qp[n](u,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=Ws(t,2),r=n[0],i=n[1];e.getValue(r).set(i)})),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 eh={treeType:"dom",readValueFromInstance:function(e,t){if(Ju(t)){var n=yd(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(al(t)?i.getPropertyValue(t):i[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 Tp(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 i=n.transformValues;void 0===r&&(r=!0);var a=t.transition,o=t.transitionEnd,s=Hs(t,["transition","transitionEnd"]),u=function(e,t,n){var r,i,a={};for(var o in e)a[o]=null!==(r=Md(o,t))&&void 0!==r?r:null===(i=n.getValue(o))||void 0===i?void 0:i.get();return a}(s,a||{},e);if(i&&(o&&(o=i(o)),s&&(s=i(s)),u&&(u=i(u))),r){!function(e,t,n){var r,i,a,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!==(i=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==i?i:t[c]),null!=d&&("string"==typeof d&&(/^\-?\d*\.?\d+$/.test(d)||Ed(d))?d=parseFloat(d):!Ld(d)&&vf.test(f)&&(d=gd(c,f)),e.addValue(c,jd(d)),null!==(a=(o=n)[c])&&void 0!==a||(o[c]=d),e.setBaseTarget(c,d))}}(e,s,u);var l=function(e,t,n,r){var i=function(e,t,n){var r,i=Hs(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var o in n&&(n=Vs({},n)),e.forEachValue((function(e){var t=e.get();if(Fp(t)){var n=Vp(t,a);n&&e.set(n)}})),i){var s=i[o];if(Fp(s)){var u=Vp(s,a);u&&(i[o]=u,n&&(null!==(r=n[o])&&void 0!==r||(n[o]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return Jp(e,t=i.target,n,r=i.transitionEnd)}(e,s,u,o);o=l.transitionEnd,s=l.target}return Vs({transition:a,transitionEnd:o},s)},scrapeMotionValuesFromProps:ql,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Sl(t,n,r,i.transformTemplate)},render:Vl},th=Bp(eh),nh=Bp(Vs(Vs({},eh),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Ju(t)?(null===(n=yd(t))||void 0===n?void 0:n.default)||0:(t=Hl.has(t)?t:zl(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Gl,build:function(e,t,n,r,i){Ml(t,n,r,i.transformTemplate)},render:Wl})),rh=function(e,t){return Zu(e)?nh(t,{enableHardwareAcceleration:!1}):th(t,{enableHardwareAcceleration:!0})};function ih(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ah={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!vl.test(e))return e;e=parseFloat(e)}var n=ih(e,t.target.x),r=ih(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},oh="_$css",sh={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,a=e.includes("var("),o=[];a&&(e=e.replace(zp,(function(e){return o.push(e),oh})));var s=vf.parse(e);if(s.length>5)return i;var u=vf.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=Gc(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(a){var h=0;p=p.replace(oh,(function(){var e=o[h];return h++,e}))}return p}},uh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zs(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,o=n.layoutId,s=r.projection;e=lh,Object.assign(Yu,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==a?void 0:a.register)&&o&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Vs(Vs({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),zu.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,a=n.drag,o=n.isPresent,s=i.projection;return s?(s.isPresent=o,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||uu.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,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(r.Component),lh={borderRadius:Vs(Vs({},ah),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ah,borderTopRightRadius:ah,borderBottomLeftRadius:ah,borderBottomRightRadius:ah,boxShadow:sh},ch={measureLayout:function(e){var t=Ws(Ic(),2),n=t[0],i=t[1],a=(0,r.useContext)(bu);return r.createElement(uh,Vs({},e,{layoutGroup:a,switchLayoutGroup:(0,r.useContext)(Hu),isPresent:n,safeToRemove:i}))}},fh=["TopLeft","TopRight","BottomLeft","BottomRight"],dh=fh.length,ph=function(e){return"string"==typeof e?parseFloat(e):e},hh=function(e){return"number"==typeof e||vl.test(e)};function mh(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var vh=gh(0,.5,Mf),yh=gh(.5,.95,Tf);function gh(e,t,n){return function(r){return r<e?0:r>t?1:n(qc(e,t,r))}}function bh(e,t){e.min=t.min,e.max=t.max}function wh(e,t){bh(e.x,t.x),bh(e.y,t.y)}function xh(e,t,n,r,i){return e=kp(e-=t,1/n,r),void 0!==i&&(e=kp(e,1/i,r)),e}function kh(e,t,n,r,i){var a=Ws(n,3),o=a[0],s=a[1],u=a[2];!function(e,t,n,r,i,a,o){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===o&&(o=e),ml.test(t)&&(t=parseFloat(t),t=Gc(o.min,o.max,t/100)-o.min),"number"==typeof t){var s=Gc(a.min,a.max,r);e===a&&(s-=t),e.min=xh(e.min,t,n,s,i),e.max=xh(e.max,t,n,s,i)}}(e,t[o],t[s],t[u],t.scale,r,i)}var _h=["x","scaleX","originX"],Eh=["y","scaleY","originY"];function Sh(e,t,n,r){kh(e.x,t,_h,null==n?void 0:n.x,null==r?void 0:r.x),kh(e.y,t,Eh,null==n?void 0:n.y,null==r?void 0:r.y)}function Ah(e){return 0===e.translate&&1===e.scale}function Oh(e){return Ah(e.x)&&Ah(e.y)}function Ch(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 jh=function(){function e(){this.members=[]}return e.prototype.add=function(e){Sd(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Ad(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 i=this.members[r];if(!1!==i.isPresent){t=i;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,i,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===a||a.call(i)}))},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 Nh(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,a="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var o=n.rotate,s=n.rotateX,u=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),u&&(a+="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)"===(a+="scale(".concat(l,", ").concat(c,")"))?"none":a}var Th=function(e,t){return e.depth-t.depth},Ph=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Sd(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Ad(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Th),this.isDirty=!1,this.children.forEach(e)},e}();function Rh(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var i=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(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(Fh),i.nodes.forEach(zh)},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?qs(qs([],Ws(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ph)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Od),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,qs([],Ws(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,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,o=a.layoutId,s=a.layout,u=a.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 i.root.updateBlockedByResize=!1};t(e,(function(){i.root.updateBlockedByResize=!0,clearTimeout(l),l=window.setTimeout(c,250),zu.hasAnimatedSinceResize&&(zu.hasAnimatedSinceResize=!1,i.nodes.forEach(Uh))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&u&&(o||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,a,o,s=e.delta,l=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,f=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var d=null!==(n=null!==(t=i.options.transition)&&void 0!==t?t:u.getDefaultTransition())&&void 0!==n?n:Zh,p=u.getProps(),h=p.onLayoutAnimationStart,m=p.onLayoutAnimationComplete,v=!i.targetLayout||!Ch(i.targetLayout,f)||c,y=!l&&c;if((null===(r=i.resumeFrom)||void 0===r?void 0:r.instance)||y||l&&(v||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(s,y);var g=Vs(Vs({},kd(d,"layout")),{onPlay:h,onComplete:m});u.shouldReduceMotion&&(g.delay=0,g.type=!1),i.startAnimation(g)}else l||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(o=(a=i.options).onExitComplete)||void 0===o||o.call(a));i.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,nu.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(Vh))},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 i=0;i<this.path.length;i++){var a=this.path[i];a.shouldResetTransform=!0,a.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(Bh);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Yh),this.potentialNodes.clear()),this.nodes.forEach(Dh),this.nodes.forEach(Lh),this.nodes.forEach(Ih),this.clearAllSnapshots(),ru.update(),ru.preRender(),ru.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Mh),this.sharedNodes.forEach(Hh)},e.prototype.scheduleUpdateProjection=function(){uu.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;uu.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));Kh(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();Kh(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=i(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Oh(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),o=i!==this.prevTransformTemplateValue;t&&(n||wp(this.latestValues)||o)&&(a(this.instance,i),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&&(Ap(t.x,n.x),Ap(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};wh(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,a=r.options,o=r.isScrollRoot;if(r!==this.root&&i&&a.layoutScroll){if(o){wh(t,e);var s=this.root.scroll;s&&(Ap(t.x,-s.x),Ap(t.y,-s.y))}Ap(t.x,i.x),Ap(t.y,i.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}};wh(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Np(n,{x:-i.scroll.x,y:-i.scroll.y}),wp(i.latestValues)&&Np(n,i.latestValues)}return wp(this.latestValues)&&Np(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};wh(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&wp(i.latestValues)){bp(i.latestValues)&&i.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};wh(a,i.measure()),Sh(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,a)}}return wp(this.latestValues)&&Sh(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Vs(Vs(Vs({},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,i=this.options,a=i.layout,o=i.layoutId;this.layout&&(a||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}},cp(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),wh(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,up(t.x,n.x,r.x),up(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):wh(this.target,this.layout.actual),Sp(this.target,this.targetDelta)):wh(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}},cp(this.relativeTargetOrigin,this.target,this.relativeParent.target),wh(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!wp(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 i=this.getLead();wh(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,a;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===(a=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Np(e,{x:-s.scroll.x,y:-s.scroll.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,Sp(e,u)),r&&wp(s.latestValues)&&Np(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var a=i.target;if(a){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;sp(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Nh(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===o&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},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 i=this.snapshot,a=(null==i?void 0:i.latestValues)||{},o=Vs({},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==i?void 0:i.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(Gh));this.animationProgress=0,this.mixTargetDelta=function(t){var n,i=t/1e3;Wh(s.x,e.x,i),Wh(s.y,e.y,i),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(cp(u,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){qh(e.x,t.x,n.x,r),qh(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,u,i)),l&&(r.animationValues=o,function(e,t,n,r,i,a){var o,s,u,l;i?(e.opacity=Gc(0,null!==(o=n.opacity)&&void 0!==o?o:1,vh(r)),e.opacityExit=Gc(null!==(s=t.opacity)&&void 0!==s?s:1,0,yh(r))):a&&(e.opacity=Gc(null!==(u=t.opacity)&&void 0!==u?u:1,null!==(l=n.opacity)&&void 0!==l?l:1,r));for(var c=0;c<dh;c++){var f="border".concat(fh[c],"Radius"),d=mh(t,f),p=mh(n,f);void 0===d&&void 0===p||(d||(d=0),p||(p=0),0===d||0===p||hh(d)===hh(p)?(e[f]=Math.max(Gc(ph(d),ph(p),r),0),(ml.test(p)||ml.test(d))&&(e[f]+="%")):e[f]=p)}(t.rotate||n.rotate)&&(e.rotate=Gc(t.rotate||0,n.rotate||0,r))}(o,a,r.latestValues,i,f,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=i},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&&(nu.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=uu.update((function(){zu.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=rl(0)?0:jd(0);return _d("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Vs(Vs({},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,i=e.latestValues;t&&n&&r&&(wh(t,n),Np(t,i),sp(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new jh),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.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,i=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,i),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<$u.length;r++){var i="rotate"+$u[r];e.getStaticValue(i)&&(t=!0,n[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),n)e.setStaticValue(i,n[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,i,a,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=Kl(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=Kl(e.pointerEvents)||""),this.hasProjected&&!wp(this.latestValues)&&(c.transform=u?u({},""):"none",this.hasProjected=!1),c}var f=l.animationValues||l.latestValues;this.applyTransformsToTarget(),s.transform=Nh(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!==(i=null!==(r=f.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:s.opacity=l===this?null!==(a=f.opacity)&&void 0!==a?a:"":null!==(o=f.opacityExit)&&void 0!==o?o:0,Yu)if(void 0!==f[m]){var v=Yu[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?Kl(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(Bh),this.root.sharedNodes.clear()},e}()}function Lh(e){e.updateLayout()}function Ih(e){var t,n,r,i,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var o=e.layout,s=o.actual,u=o.measured;"size"===e.options.animationType?vp((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=ip(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&vp((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=ip(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}};sp(l,s,a.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?sp(c,e.applyTransform(u,!0),a.measured):sp(c,s,a.layout);var f=!Oh(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}};cp(v,a.layout,h.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};cp(y,s,m.actual),Ch(v,y)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:l,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&(null===(i=(r=e.options).onExitComplete)||void 0===i||i.call(r));e.options.transition=void 0}function Mh(e){e.clearSnapshot()}function Bh(e){e.clearMeasurements()}function Dh(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Uh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Fh(e){e.resolveTargetDelta()}function zh(e){e.calcProjection()}function Vh(e){e.resetRotation()}function Hh(e){e.removeLeadSnapshot()}function Wh(e,t,n){e.translate=Gc(t.translate,0,n),e.scale=Gc(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function qh(e,t,n,r){e.min=Gc(t.min,n.min,r),e.max=Gc(t.max,n.max,r)}function Gh(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Zh={duration:.45,ease:[.4,0,.1,1]};function Yh(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 i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function $h(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Kh(e){$h(e.x),$h(e.y)}var Xh=Rh({attachResizeListener:function(e,t){return rc(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Qh={current:void 0},Jh=Rh({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Qh.current){var e=new Xh(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Qh.current=e}return Qh.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),em=Vs(Vs(Vs(Vs({},Gd),Lc),Ip),ch),tm=function(e){function t(t,n){return void 0===n&&(n={}),qu(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,i){var a=t.forwardMotionProps,o=void 0!==a&&a,s=Zu(e)?tc:nc;return Vs(Vs({},s),{preloadedFeatures:n,useRender:Ul(o),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,em,rh,Jh)})),nm={success:"tw-bg-green-300",info:"tw-bg-sky-300",warning:"tw-bg-amber-300",error:"tw-bg-red-300"},rm={success:"tw-bg-green-500",info:"tw-bg-sky-500",warning:"tw-bg-amber-500",error:"tw-bg-red-500"},im={success:"😊",info:"🔔",warning:"😮",error:"😢"};function am(e){var t,n=(0,r.useContext)(_).dispatch,i=s((0,r.useState)(!1),2),a=i[0],o=i[1],u=(0,r.useRef)(null);(0,r.useEffect)((function(){var t,r;return e.timeoutMs&&(t=setTimeout((function(){return n(B(e.id))}),300+e.timeoutMs),r=setTimeout((function(){return o(!0)}),300)),function(){clearTimeout(t),clearTimeout(r)}}),[n,e.id,e.timeoutMs]);var l=(0,r.useCallback)((function(){return a?"tw-w-0":"tw-w-full"}),[a]);return(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-mr-0 md:tw-mr-4 tw-border-none tw-rounded\n tw-shadow-md tw-overflow-hidden tw-pointer-events-none "+[e.textColorClass||"text-black",e.backgroundColorClass||nm[e.type]].join(" "),children:[(0,k.jsxs)("div",{className:"tw-flex tw-gap-2 tw-p-3 tw-text-lg",children:[!e.hideIcon&&(0,k.jsx)("div",{className:"tw-flex tw-items-center tw-justify-center tw-border-0 tw-rounded-full tw-w-7 tw-h-7 "+rm[e.type],children:null!==(t=e.icon)&&void 0!==t?t:im[e.type]}),(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-text-left",children:[e.text&&(0,k.jsx)("div",{className:"tw-whitespace-nowrap tw-text-md tw-overflow-ellipsis",children:e.text}),e.detail&&(0,k.jsx)("div",{className:"tw-text-sm",children:e.detail}),e.jsx&&(0,k.jsx)("div",{children:e.jsx})]}),!e.hideDismissBtn&&!e.showSpinner&&(0,k.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end tw-pointer-events-auto",onClick:function(){n(B(e.id))},children:(0,k.jsx)("div",{children:(0,k.jsx)(ms,{className:"tw-cursor-pointer hover:tw-scale-125 tw-transition-all",icon:zr})})}),e.showSpinner&&(0,k.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end",children:(0,k.jsx)("div",{children:(0,k.jsx)(ms,{icon:Vr,className:"fa-spin"})})})]}),e.timeoutMs&&(0,k.jsx)("div",{children:(0,k.jsx)("div",{ref:u,className:"tw-h-1 tw-transition-all tw-ease-linear "+[l(),rm[e.type]].join(" "),style:{transitionDuration:"".concat(e.timeoutMs,"ms")}})})]})}function om(){var e=(0,r.useContext)(_).state.toasts;return(0,k.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,k.jsx)(ku,{children:e.map((function(e){return(0,k.jsx)(tm.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,k.jsx)(am,c({},e))},e.id)}))})})}var sm=function(e){var t=e.id,n=e.className,i=e.role,a=e.ariaHidden,o=e.ariaLabel,u=e.initialValue,l=e.label,c=e.title,f=e.placeholder,d=e.autoComplete,p=e.cols,h=e.rows,m=e.disabled,v=e.minLength,y=e.readOnly,g=e.resize,b=e.wrap,w=e.onChange,x=e.onEnterKey,_=s(r.useState(u||""),2),E=_[0],S=_[1];return r.useEffect((function(){S(u)}),[u]),(0,k.jsxs)("div",{className:Q("common-textarea-wrapper",m&&"disabled",g&&"resize-".concat(g),n),children:[l&&(0,k.jsx)("label",{className:"common-textarea-label",children:l}),(0,k.jsx)("div",{className:"common-textarea-group",children:(0,k.jsx)("textarea",{id:t,className:"common-textarea",title:c,role:i||"textbox",tabIndex:m?-1:0,"aria-label":o,"aria-hidden":a,placeholder:f,value:E||"",cols:p,rows:h,minLength:v,wrap:b,readOnly:!!y,onChange:function(e){var t=e.target.value;y||E===t||S(t),w&&w(t)},onKeyDown:function(e){var t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||x&&(e.preventDefault(),x(E))},autoComplete:d?"":"off",autoCorrect:d?"":"off",autoCapitalize:d?"":"off",spellCheck:d,disabled:m})})]})},um=function(e){var t=e.id,n=e.className,r=e.ariaHidden,i=e.ariaLabel,a=e.role,o=e.isChecked,s=e.onChange,u=e.label;return(0,k.jsxs)("div",{className:Q("common-checkbox",n),children:[(0,k.jsx)("input",{id:t,tabIndex:0,type:"checkbox",checked:o,onChange:function(){s(!o)},onKeyDown:X,role:a,"aria-hidden":r,"aria-label":i}),u&&(0,k.jsx)("label",{htmlFor:t,children:u})]})},lm=function(e){var t=e.children,n=e.id,r=e.className,a=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=e.hideDismissButton,v=function(e){d&&d()},y=Q("common-modal-container",h&&"fullscreen",r);return i.createPortal((0,k.jsx)(Bs,{className:y,onEscape:v,children:(0,k.jsxs)("div",{id:n,className:"common-modal",role:u||"dialog","aria-hidden":o,"aria-label":a,"aria-describedby":s,"aria-labelledby":"modal-title",children:[(0,k.jsxs)("div",{className:"common-modal-header",children:[h&&!m&&(0,k.jsx)("div",{className:"common-modal-back",children:(0,k.jsx)(J,{className:"menu-button",onClick:v,title:lf("Go Back"),label:lf("Go Back"),leftIcon:"fas fa-arrow-left"})}),(0,k.jsx)("div",{id:"modal-title",className:"common-modal-title",children:l}),h&&c&&(0,k.jsx)("div",{className:"common-modal-help",children:(0,k.jsx)(J,{className:"menu-button",title:lf("Help on {0} dialog",l),href:e.helpUrl,onClick:function(){},rightIcon:"fas fa-question"})}),!h&&!m&&(0,k.jsx)("div",{className:"common-modal-close",children:(0,k.jsx)(J,{className:"menu-button inverted",onClick:v,title:lf("Close"),rightIcon:"fas fa-times-circle"})})]}),(0,k.jsx)("div",{className:"common-modal-body",children:t}),(null==f?void 0:f.length)&&(0,k.jsx)("div",{className:"common-modal-footer",children:f.map((function(e,t){var n;return(0,k.jsx)(J,{className:null!==(n=e.className)&&void 0!==n?n:"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)},cm=function(e){var t,n,i=e.onSignIn,a=e.onClose,o=e.appMessage,u=e.dialogMessages,l=e.hideDismissButton,c=u||{signInMessage:lf("Sign in to save your progress and access your work anytime, anywhere."),signUpMessage:lf("Join now to save your progress and access your work anytime, anywhere.")},f=c.signInMessage,d=c.signUpMessage,p=null!==(t=e.resolvePath)&&void 0!==t?t:function(e){return e},h=s(r.useState(!1),2),m=h[0],v=h[1],y=s(r.useState(null!==(n=e.mode)&&void 0!==n?n:"signin"),2),g=y[0],b=y[1],w=r.useMemo((function(){return"signin"===g?lf("Sign in"):lf("Sign up")}),[g]),x=r.useMemo((function(){return"signin"===g?f:d}),[g,f,d]),_=r.useMemo((function(){return"signin"===g?(0,k.jsxs)("div",{className:"switch",children:[(0,k.jsx)("span",{children:lf("Don't have an account?")}),(0,k.jsx)(J,{className:"link-button",onClick:function(){return b("signup")},title:lf("Sign up"),label:lf("Sign up")})]}):(0,k.jsxs)("div",{className:"switch",children:[(0,k.jsx)("span",{children:lf("Have an account?")}),(0,k.jsx)(J,{className:"link-button",onClick:function(){return b("signin")},title:lf("Sign in"),label:lf("Sign in")})]})}),[g]);return(0,k.jsx)(lm,{title:w,onClose:a,hideDismissButton:l,children:(0,k.jsxs)("div",{className:"signin-form",children:[(0,k.jsxs)("div",{className:"signin-header",children:[o||void 0," ",x]}),(0,k.jsx)("div",{className:"signin-body",children:(0,k.jsxs)("div",{className:"providers",children:[pxt.auth.identityProviders().map((function(e,t){var n="signin"===g?lf("Continue with {0}",e.name):lf("Sign up with {0}",e.name);return(0,k.jsx)(J,{className:"teal inverted provider",onClick:function(){return i(e,m)},title:n,ariaLabel:n,label:(0,k.jsxs)("div",{className:"label",children:[(0,k.jsx)("div",{children:(0,k.jsx)("img",{className:"logo",src:p(e.icon)})}),(0,k.jsx)("div",{className:"title",children:n})]})},t)})),(0,k.jsx)("div",{className:"rememberme",children:(0,k.jsx)(um,{id:"rememberme",label:lf("Remember me"),isChecked:m,onChange:v})})]})}),(0,k.jsxs)("div",{className:"signin-footer",children:[_,(0,k.jsx)("div",{className:"learn",children:(0,k.jsx)(te,{href:"/identity/sign-in",target:"_blank",children:lf("Learn more")})})]})]})})};function fm(e){var t=e.title,n=e.confirmLabel,r=e.cancelLabel,i=e.children,a=e.onConfirm,o=e.onCancel,s=[{label:null!=n?n:lf("Confirm"),className:"primary",onClick:a},{label:null!=r?r:lf("Cancel"),className:"primary inverted",onClick:o}];return(0,k.jsx)(lm,{title:t,actions:s,onClose:o,children:i})}function dm(){var e=(0,r.useContext)(_).state,t=e.deepLinks,n=e.clientRole,i=e.gameState,a=(null!=i?i:{}).gameId,o=s((0,r.useState)(""),2),u=o[0],l=o[1];switch(e.modal){case"sign-in":return(0,k.jsx)(cm,{onClose:function(){return x({type:"CLEAR_MODAL"})},onSignIn:function(){var e=$(Z().mark((function e(n,r){var i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={},null!=t&&t.shareCode&&(i.host=t.shareCode),null!=t&&t.joinCode&&(i.join=t.joinCode),e.next=5,Wn(n.id,r,{params:i});case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),dialogMessages:e.modalOpts.dialogMessages,hideDismissButton:!0});case"report-abuse":return(0,k.jsx)(fm,{title:lf("Report Abuse"),confirmLabel:lf("Submit Report"),onConfirm:$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x({type:"CLEAR_MODAL"}),e.next=3,_r(a,u);case 3:case"end":return e.stop()}}),e)}))),onCancel:function(){return x({type:"CLEAR_MODAL"})},children:(0,k.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-4",children:[(0,k.jsx)("div",{children:lf("Why do you find it offensive?")}),(0,k.jsx)("div",{children:(0,k.jsx)(sm,{onChange:l})})]})});case"kick-player":return(0,k.jsx)(fm,{title:lf("Kick Player"),onConfirm:function(){x({type:"CLEAR_MODAL"}),function(e){try{pxt.tickEvent("mp.kickplayer"),function(e){var t;null===(t=nn)||void 0===t||t.kickPlayer(e)}(e),x(M({type:"info",text:lf("Player kicked"),timeoutMs:5e3}))}catch(e){}}(e.modalOpts.clientId)},onCancel:function(){return x({type:"CLEAR_MODAL"})},children:(0,k.jsx)("div",{children:lf("Kick this player? They will be blocked from rejoining the game.")})});case"leave-game":return"host"===n?(0,k.jsx)(fm,{title:lf("End the Game"),onConfirm:$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x({type:"CLEAR_MODAL"}),e.next=3,Fn("ended");case 3:case"end":return e.stop()}}),e)}))),onCancel:function(){return x({type:"CLEAR_MODAL"})},children:(0,k.jsx)("div",{children:lf("End the game? All players will be disconnected.")})}):(0,k.jsx)(fm,{title:lf("Leave Game"),onConfirm:$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x({type:"CLEAR_MODAL"}),e.next=3,Fn("left");case 3:case"end":return e.stop()}}),e)}))),onCancel:function(){return x({type:"CLEAR_MODAL"})},children:(0,k.jsx)("div",{children:lf("Leave the game?")})});default:return null}}function pm(){var e=(0,r.useContext)(_).state,t=e.gamePaused,n=e.clientRole,i=function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,br();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,k.jsxs)(k.Fragment,{children:[t&&"host"===n&&(0,k.jsxs)("div",{className:"tw-fixed tw-flex tw-flex-col tw-gap-4 tw-z-40 tw-p-5 tw-bg-white tw-rounded-lg tw-drop-shadow-2xl tw-border tw-top-[50%] tw-left-[50%] tw-translate-x-[-50%] tw-translate-y-[-50%]",children:[(0,k.jsx)("div",{className:"tw-text-left tw-font-bold tw-text-lg",children:lf("Game Paused")}),(0,k.jsx)("div",{className:"tw-text-left",children:lf("The game is paused. Press the resume button to continue.")}),(0,k.jsx)("div",{className:"tw-text-right",children:(0,k.jsx)(J,{title:lf("Resume"),label:lf("Resume"),className:"primary",onClick:i})})]}),t&&"host"!==n&&(0,k.jsxs)("div",{className:"tw-fixed tw-flex tw-flex-col tw-gap-4 tw-z-40 tw-p-5 tw-bg-white tw-rounded-lg tw-drop-shadow-2xl tw-border tw-top-[50%] tw-left-[50%] tw-translate-x-[-50%] tw-translate-y-[-50%]",children:[(0,k.jsx)("div",{className:"tw-text-left tw-font-bold tw-text-lg",children:lf("Game Paused")}),(0,k.jsx)("div",{className:"tw-text-left",children:lf("The game is paused. Please wait for the host to resume the game.")})]})]})}var hm=function(){var e=(0,r.useContext)(_),t=e.state,n=e.dispatch,i=t.authStatus,a=t.deepLinks,o=a.shareCode,u=a.joinCode,l=s((0,r.useState)(!1),2),c=l[0],f=l[1];!function(e){(0,r.useEffect)((function(){var t=function(){e("visible"===document.visibilityState)};return document.addEventListener("visibilitychange",t),function(){document.removeEventListener("visibilitychange",t)}}),[])}(xr),(0,r.useEffect)((function(){(function(){return mt.apply(this,arguments)})().then((function(){return f(!0)})).catch((function(){return f(!0)}))}),[f]);var d=(0,r.useCallback)((function(){var e,t,r=void 0,i=null!==(e=(r="?"===window.location.hash[1]?new URLSearchParams(window.location.hash.substr(1)):new URLSearchParams(window.location.search)).get("host"))&&void 0!==e?e:void 0,a=null!==(t=r.get("join"))&&void 0!==t?t:void 0;i=Nt(i),a=jt(a),n(V(i,a))}),[n]);return(0,r.useEffect)((function(){c&&d()}),[c,d]),(0,r.useEffect)((function(){c&&(o||u)&&"signed-in"===i&&(o?Rn(o).then((function(){})).catch((function(){})):u&&Mn(u).then((function(){})).catch((function(){})),n(V(void 0,void 0)))}),[n,i,o,u,c]),(0,k.jsxs)("div",{className:"".concat(pxt.appTarget.id," tw-flex tw-flex-col"),children:[!c&&(0,k.jsx)(S,{}),c&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Us,{}),"signed-out"===i&&(0,k.jsx)(q,{}),"signed-in"===i&&(0,k.jsx)(Ls,{})]}),(0,k.jsx)(dm,{}),(0,k.jsx)(pm,{}),(0,k.jsx)(om,{})]})};window.addEventListener("DOMContentLoaded",(function(){var e=window.pxtTargetBundle;if(pxt.setAppTarget(e),pxt.setupWebConfig(window.pxtConfig||pxt.webConfig),pxt.BrowserUtils.isLocalHostDev()){for(var t=pxt.webConfig,n=0,a=Object.keys(t);n<a.length;n++){var o,s,u=a[n];null!==(o=t[u])&&void 0!==o&&o.startsWith("/")&&-1==(null===(s=t[u])||void 0===s?void 0:s.indexOf("worker"))&&(t[u]="http://localhost:3232".concat(t[u]))}pxt.webConfig.workerjs="/blb".concat(pxt.webConfig.workerjs)}pxt.Cloud.apiRoot="https://www.makecode.com/api/",pxt.worker.getWorker(pxt.webConfig.workerjs),i.render((0,k.jsx)(r.StrictMode,{children:(0,k.jsx)(E,{children:(0,k.jsx)(hm,{})})}),document.getElementById("root"))}))}()}();