diff --git a/assets/index-D2mb12cD.js b/assets/index-DTkvL6lj.js similarity index 99% rename from assets/index-D2mb12cD.js rename to assets/index-DTkvL6lj.js index 934c4d6..e0fa12a 100644 --- a/assets/index-D2mb12cD.js +++ b/assets/index-DTkvL6lj.js @@ -37,4 +37,4 @@ var Pc=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var Ip=Pc(nr=>{(f `+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{Al=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?xt(e):""}function rf(e){switch(e.tag){case 5:return xt(e.type);case 16:return xt("Lazy");case 13:return xt("Suspense");case 19:return xt("SuspenseList");case 0:case 2:case 15:return e=Bl(e.type,!1),e;case 11:return e=Bl(e.type.render,!1),e;case 1:return e=Bl(e.type,!0),e;default:return""}}function mi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fn:return"Fragment";case Dn:return"Portal";case di:return"Profiler";case fo:return"StrictMode";case pi:return"Suspense";case vi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ts:return(e.displayName||"Context")+".Consumer";case zs:return(e._context.displayName||"Context")+".Provider";case po:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vo:return n=e.displayName||null,n!==null?n:mi(e.type)||"Memo";case be:n=e._payload,e=e._init;try{return mi(e(n))}catch{}}return null}function lf(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mi(n);case 8:return n===fo?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Is(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function of(e){var n=Is(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,i=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function pr(e){e._valueTracker||(e._valueTracker=of(e))}function Ms(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Is(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Br(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yi(e,n){var t=n.checked;return A({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function ou(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=vn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Rs(e,n){n=n.checked,n!=null&&co(e,"checked",n,!1)}function hi(e,n){Rs(e,n);var t=vn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?gi(e,n.type,t):n.hasOwnProperty("defaultValue")&&gi(e,n.type,vn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function uu(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function gi(e,n,t){(n!=="number"||Br(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var Nt=Array.isArray;function Xn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=vr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function $t(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var zt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},uf=["Webkit","ms","Moz","O"];Object.keys(zt).forEach(function(e){uf.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),zt[n]=zt[e]})});function Fs(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||zt.hasOwnProperty(e)&&zt[e]?(""+n).trim():n+"px"}function $s(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=Fs(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var sf=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 ki(e,n){if(n){if(sf[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(h(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(h(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(h(61))}if(n.style!=null&&typeof n.style!="object")throw Error(h(62))}}function Ei(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _i=null;function mo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ci=null,Zn=null,Jn=null;function cu(e){if(e=ir(e)){if(typeof Ci!="function")throw Error(h(280));var n=e.stateNode;n&&(n=yl(n),Ci(e.stateNode,e.type,n))}}function As(e){Zn?Jn?Jn.push(e):Jn=[e]:Zn=e}function Bs(){if(Zn){var e=Zn,n=Jn;if(Jn=Zn=null,cu(e),n)for(e=0;e>>=0,e===0?32:31-(wf(e)/Sf|0)|0}var mr=64,yr=4194304;function Pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Qr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=t&268435455;if(o!==0){var u=o&~l;u!==0?r=Pt(u):(i&=o,i!==0&&(r=Pt(i)))}else o=t&~l,o!==0?r=Pt(o):i!==0&&(r=Pt(i));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,i=n&-n,l>=i||l===16&&(i&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function rr(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Ie(n),e[n]=t}function Cf(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ut),wu=" ",Su=!1;function ua(e,n){switch(e){case"keyup":return qf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function ed(e,n){switch(e){case"compositionend":return sa(n);case"keypress":return n.which!==32?null:(Su=!0,wu);case"textInput":return e=n.data,e===wu&&Su?null:e;default:return null}}function nd(e,n){if($n)return e==="compositionend"||!_o&&ua(e,n)?(e=ia(),Ur=So=rn=null,$n=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Cu(t)}}function da(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?da(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function pa(){for(var e=window,n=Br();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Br(e.document)}return n}function Co(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function cd(e){var n=pa(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&da(t.ownerDocument.documentElement,t)){if(r!==null&&Co(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=xu(t,i);var o=xu(t,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(n),e.extend(o.node,o.offset)):(n.setEnd(o.node,o.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,An=null,Ti=null,Mt=null,Ui=!1;function Nu(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Ui||An==null||An!==Br(r)||(r=An,"selectionStart"in r&&Co(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mt&&Qt(Mt,r)||(Mt=r,r=Gr(Ti,"onSelect"),0Hn||(e.current=Di[Hn],Di[Hn]=null,Hn--)}function R(e,n){Hn++,Di[Hn]=e.current,e.current=n}var mn={},re=hn(mn),ce=hn(!1),Ln=mn;function rt(e,n){var t=e.type.contextTypes;if(!t)return mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in t)l[i]=n[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function fe(e){return e=e.childContextTypes,e!=null}function Zr(){j(ce),j(re)}function Mu(e,n,t){if(re.current!==mn)throw Error(h(168));R(re,n),R(ce,t)}function Ea(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(h(108,lf(e)||"Unknown",l));return A({},t,r)}function Jr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mn,Ln=re.current,R(re,e),R(ce,ce.current),!0}function Ru(e,n,t){var r=e.stateNode;if(!r)throw Error(h(169));t?(e=Ea(e,n,Ln),r.__reactInternalMemoizedMergedChildContext=e,j(ce),j(re),R(re,e)):j(ce),R(ce,t)}var Ve=null,hl=!1,ni=!1;function _a(e){Ve===null?Ve=[e]:Ve.push(e)}function Ed(e){hl=!0,_a(e)}function gn(){if(!ni&&Ve!==null){ni=!0;var e=0,n=I;try{var t=Ve;for(I=1;e>=o,l-=o,He=1<<32-Ie(n)+l|t<N?(V=x,x=null):V=x.sibling;var T=p(f,x,d[N],y);if(T===null){x===null&&(x=V);break}e&&x&&T.alternate===null&&n(f,x),c=i(T,c,N),C===null?k=T:C.sibling=T,C=T,x=V}if(N===d.length)return t(f,x),D&&kn(f,N),k;if(x===null){for(;NN?(V=x,x=null):V=x.sibling;var Ne=p(f,x,T.value,y);if(Ne===null){x===null&&(x=V);break}e&&x&&Ne.alternate===null&&n(f,x),c=i(Ne,c,N),C===null?k=Ne:C.sibling=Ne,C=Ne,x=V}if(T.done)return t(f,x),D&&kn(f,N),k;if(x===null){for(;!T.done;N++,T=d.next())T=m(f,T.value,y),T!==null&&(c=i(T,c,N),C===null?k=T:C.sibling=T,C=T);return D&&kn(f,N),k}for(x=r(f,x);!T.done;N++,T=d.next())T=g(x,f,N,T.value,y),T!==null&&(e&&T.alternate!==null&&x.delete(T.key===null?N:T.key),c=i(T,c,N),C===null?k=T:C.sibling=T,C=T);return e&&x.forEach(function(pt){return n(f,pt)}),D&&kn(f,N),k}function M(f,c,d,y){if(typeof d=="object"&&d!==null&&d.type===Fn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case dr:e:{for(var k=d.key,C=c;C!==null;){if(C.key===k){if(k=d.type,k===Fn){if(C.tag===7){t(f,C.sibling),c=l(C,d.props.children),c.return=f,f=c;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===be&&Du(k)===C.type){t(f,C.sibling),c=l(C,d.props),c.ref=St(f,C,d),c.return=f,f=c;break e}t(f,C);break}else n(f,C);C=C.sibling}d.type===Fn?(c=Pn(d.props.children,f.mode,y,d.key),c.return=f,f=c):(y=$r(d.type,d.key,d.props,null,f.mode,y),y.ref=St(f,c,d),y.return=f,f=y)}return o(f);case Dn:e:{for(C=d.key;c!==null;){if(c.key===C)if(c.tag===4&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){t(f,c.sibling),c=l(c,d.children||[]),c.return=f,f=c;break e}else{t(f,c);break}else n(f,c);c=c.sibling}c=ai(d,f.mode,y),c.return=f,f=c}return o(f);case be:return C=d._init,M(f,c,C(d._payload),y)}if(Nt(d))return w(f,c,d,y);if(mt(d))return S(f,c,d,y);_r(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,c!==null&&c.tag===6?(t(f,c.sibling),c=l(c,d),c.return=f,f=c):(t(f,c),c=si(d,f.mode,y),c.return=f,f=c),o(f)):t(f,c)}return M}var it=Pa(!0),La=Pa(!1),el=hn(null),nl=null,Kn=null,Lo=null;function zo(){Lo=Kn=nl=null}function To(e){var n=el.current;j(el),e._currentValue=n}function Ai(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function bn(e,n){nl=e,Lo=Kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(ae=!0),e.firstContext=null)}function Ce(e){var n=e._currentValue;if(Lo!==e)if(e={context:e,memoizedValue:n,next:null},Kn===null){if(nl===null)throw Error(h(308));Kn=e,nl.dependencies={lanes:0,firstContext:e}}else Kn=Kn.next=e;return n}var Cn=null;function Uo(e){Cn===null?Cn=[e]:Cn.push(e)}function za(e,n,t,r){var l=n.interleaved;return l===null?(t.next=t,Uo(n)):(t.next=l.next,l.next=t),n.interleaved=t,Ge(e,r)}function Ge(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var en=!1;function Io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ta(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qe(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function cn(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var l=r.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),r.pending=n,Ge(e,t)}return l=r.interleaved,l===null?(n.next=n,Uo(r)):(n.next=l.next,l.next=n),r.interleaved=n,Ge(e,t)}function Mr(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ho(e,t)}}function Fu(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var l=null,i=null;if(t=t.firstBaseUpdate,t!==null){do{var o={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};i===null?l=i=o:i=i.next=o,t=t.next}while(t!==null);i===null?l=i=n:i=i.next=n}else l=i=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function tl(e,n,t,r){var l=e.updateQueue;en=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,a=s.next;s.next=null,o===null?i=a:o.next=a,o=s;var v=e.alternate;v!==null&&(v=v.updateQueue,u=v.lastBaseUpdate,u!==o&&(u===null?v.firstBaseUpdate=a:u.next=a,v.lastBaseUpdate=s))}if(i!==null){var m=l.baseState;o=0,v=a=s=null,u=i;do{var p=u.lane,g=u.eventTime;if((r&p)===p){v!==null&&(v=v.next={eventTime:g,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var w=e,S=u;switch(p=n,g=t,S.tag){case 1:if(w=S.payload,typeof w=="function"){m=w.call(g,m,p);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=S.payload,p=typeof w=="function"?w.call(g,m,p):w,p==null)break e;m=A({},m,p);break e;case 2:en=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[u]:p.push(u))}else g={eventTime:g,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},v===null?(a=v=g,s=m):v=v.next=g,o|=p;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;p=u,u=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(v===null&&(s=m),l.baseState=s,l.firstBaseUpdate=a,l.lastBaseUpdate=v,n=l.shared.interleaved,n!==null){l=n;do o|=l.lane,l=l.next;while(l!==n)}else i===null&&(l.shared.lanes=0);Un|=o,e.lanes=o,e.memoizedState=m}}function $u(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=ri.transition;ri.transition={};try{e(!1),n()}finally{I=t,ri.transition=r}}function Ya(){return xe().memoizedState}function Nd(e,n,t){var r=dn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ga(e))Xa(n,t);else if(t=za(e,n,t,r),t!==null){var l=ie();Me(t,e,r,l),Za(t,n,r)}}function Pd(e,n,t){var r=dn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Xa(n,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=n.lastRenderedReducer,i!==null))try{var o=n.lastRenderedState,u=i(o,t);if(l.hasEagerState=!0,l.eagerState=u,Re(u,o)){var s=n.interleaved;s===null?(l.next=l,Uo(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=za(e,n,l,r),t!==null&&(l=ie(),Me(t,e,r,l),Za(t,n,r))}}function Ga(e){var n=e.alternate;return e===$||n!==null&&n===$}function Xa(e,n){Rt=ll=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Za(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ho(e,t)}}var il={readContext:Ce,useCallback:ee,useContext:ee,useEffect:ee,useImperativeHandle:ee,useInsertionEffect:ee,useLayoutEffect:ee,useMemo:ee,useReducer:ee,useRef:ee,useState:ee,useDebugValue:ee,useDeferredValue:ee,useTransition:ee,useMutableSource:ee,useSyncExternalStore:ee,useId:ee,unstable_isNewReconciler:!1},Ld={readContext:Ce,useCallback:function(e,n){return je().memoizedState=[e,n===void 0?null:n],e},useContext:Ce,useEffect:Bu,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Or(4194308,4,Va.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Or(4194308,4,e,n)},useInsertionEffect:function(e,n){return Or(4,2,e,n)},useMemo:function(e,n){var t=je();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=je();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=Nd.bind(null,$,e),[r.memoizedState,e]},useRef:function(e){var n=je();return e={current:e},n.memoizedState=e},useState:Au,useDebugValue:Ao,useDeferredValue:function(e){return je().memoizedState=e},useTransition:function(){var e=Au(!1),n=e[0];return e=xd.bind(null,e[1]),je().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=$,l=je();if(D){if(t===void 0)throw Error(h(407));t=t()}else{if(t=n(),Z===null)throw Error(h(349));Tn&30||Ra(r,n,t)}l.memoizedState=t;var i={value:t,getSnapshot:n};return l.queue=i,Bu(ja.bind(null,r,i,e),[e]),r.flags|=2048,bt(9,Oa.bind(null,r,i,t,n),void 0,null),t},useId:function(){var e=je(),n=Z.identifierPrefix;if(D){var t=We,r=He;t=(r&~(1<<32-Ie(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Jt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),t==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t),e[De]=n,e[Gt]=r,oc(e,n,!1,!1),n.stateNode=e;e:{switch(o=Ei(t,r),t){case"dialog":O("cancel",e),O("close",e),l=r;break;case"iframe":case"object":case"embed":O("load",e),l=r;break;case"video":case"audio":for(l=0;lst&&(n.flags|=128,r=!0,kt(i,!1),n.lanes=4194304)}else{if(!r)if(e=rl(o),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),kt(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!D)return ne(n),null}else 2*W()-i.renderingStartTime>st&&t!==1073741824&&(n.flags|=128,r=!0,kt(i,!1),n.lanes=4194304);i.isBackwards?(o.sibling=n.child,n.child=o):(t=i.last,t!==null?t.sibling=o:n.child=o,i.last=o)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=W(),n.sibling=null,t=F.current,R(F,r?t&1|2:t&1),n):(ne(n),null);case 22:case 23:return Ko(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?ve&1073741824&&(ne(n),n.subtreeFlags&6&&(n.flags|=8192)):ne(n),null;case 24:return null;case 25:return null}throw Error(h(156,n.tag))}function jd(e,n){switch(No(n),n.tag){case 1:return fe(n.type)&&Zr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ot(),j(ce),j(re),Oo(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return Ro(n),null;case 13:if(j(F),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(h(340));lt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return j(F),null;case 4:return ot(),null;case 10:return To(n.type._context),null;case 22:case 23:return Ko(),null;case 24:return null;default:return null}}var xr=!1,te=!1,Dd=typeof WeakSet=="function"?WeakSet:Set,E=null;function Yn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){B(e,n,r)}else t.current=null}function Xi(e,n,t){try{t()}catch(r){B(e,n,r)}}var qu=!1;function Fd(e,n){if(Ii=Kr,e=pa(),Co(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,u=-1,s=-1,a=0,v=0,m=e,p=null;n:for(;;){for(var g;m!==t||l!==0&&m.nodeType!==3||(u=o+l),m!==i||r!==0&&m.nodeType!==3||(s=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break n;if(p===t&&++a===l&&(u=o),p===i&&++v===r&&(s=o),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(Mi={focusedElem:e,selectionRange:t},Kr=!1,E=n;E!==null;)if(n=E,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,E=e;else for(;E!==null;){n=E;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,M=w.memoizedState,f=n.stateNode,c=f.getSnapshotBeforeUpdate(n.elementType===n.type?S:ze(n.type,S),M);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(h(163))}}catch(y){B(n,n.return,y)}if(e=n.sibling,e!==null){e.return=n.return,E=e;break}E=n.return}return w=qu,qu=!1,w}function Ot(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Xi(n,t,i)}l=l.next}while(l!==r)}}function Sl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Zi(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function ac(e){var n=e.alternate;n!==null&&(e.alternate=null,ac(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[De],delete n[Gt],delete n[ji],delete n[Sd],delete n[kd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function cc(e){return e.tag===5||e.tag===3||e.tag===4}function bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ji(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Xr));else if(r!==4&&(e=e.child,e!==null))for(Ji(e,n,t),e=e.sibling;e!==null;)Ji(e,n,t),e=e.sibling}function qi(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(qi(e,n,t),e=e.sibling;e!==null;)qi(e,n,t),e=e.sibling}var J=null,Te=!1;function Je(e,n,t){for(t=t.child;t!==null;)fc(e,n,t),t=t.sibling}function fc(e,n,t){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount(dl,t)}catch{}switch(t.tag){case 5:te||Yn(t,n);case 6:var r=J,l=Te;J=null,Je(e,n,t),J=r,Te=l,J!==null&&(Te?(e=J,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):J.removeChild(t.stateNode));break;case 18:J!==null&&(Te?(e=J,t=t.stateNode,e.nodeType===8?ei(e.parentNode,t):e.nodeType===1&&ei(e,t),Ht(e)):ei(J,t.stateNode));break;case 4:r=J,l=Te,J=t.stateNode.containerInfo,Te=!0,Je(e,n,t),J=r,Te=l;break;case 0:case 11:case 14:case 15:if(!te&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Xi(t,n,o),l=l.next}while(l!==r)}Je(e,n,t);break;case 1:if(!te&&(Yn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){B(t,n,u)}Je(e,n,t);break;case 21:Je(e,n,t);break;case 22:t.mode&1?(te=(r=te)||t.memoizedState!==null,Je(e,n,t),te=r):Je(e,n,t);break;default:Je(e,n,t)}}function es(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new Dd),n.forEach(function(r){var l=Yd.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function Pe(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=W()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ad(r/1960))-r,10e?16:e,ln===null)var r=!1;else{if(e=ln,ln=null,sl=0,U&6)throw Error(h(331));var l=U;for(U|=4,E=e.current;E!==null;){var i=E,o=i.child;if(E.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sW()-Wo?Nn(e,0):Ho|=t),de(e,n)}function wc(e,n){n===0&&(e.mode&1?(n=yr,yr<<=1,!(yr&130023424)&&(yr=4194304)):n=1);var t=ie();e=Ge(e,n),e!==null&&(rr(e,n,t),de(e,t))}function Kd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),wc(e,t)}function Yd(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(h(314))}r!==null&&r.delete(n),wc(e,t)}var Sc;Sc=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||ce.current)ae=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return ae=!1,Rd(e,n,t);ae=!!(e.flags&131072)}else ae=!1,D&&n.flags&1048576&&Ca(n,br,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;jr(e,n),e=n.pendingProps;var l=rt(n,re.current);bn(n,t),l=Do(null,n,r,e,l,t);var i=Fo();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,fe(r)?(i=!0,Jr(n)):i=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Io(n),l.updater=wl,n.stateNode=l,l._reactInternals=n,Vi(n,r,e,t),n=Qi(null,n,r,!0,i,t)):(n.tag=0,D&&i&&xo(n),le(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(jr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Xd(r),e=ze(r,e),l){case 0:n=Wi(null,n,r,e,t);break e;case 1:n=Xu(null,n,r,e,t);break e;case 11:n=Yu(null,n,r,e,t);break e;case 14:n=Gu(null,n,r,ze(r.type,e),t);break e}throw Error(h(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),Wi(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),Xu(e,n,r,l,t);case 3:e:{if(rc(n),e===null)throw Error(h(387));r=n.pendingProps,i=n.memoizedState,l=i.element,Ta(e,n),tl(n,r,null,t);var o=n.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){l=ut(Error(h(423)),n),n=Zu(e,n,r,t,l);break e}else if(r!==l){l=ut(Error(h(424)),n),n=Zu(e,n,r,t,l);break e}else for(me=an(n.stateNode.containerInfo.firstChild),ye=n,D=!0,Ue=null,t=La(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(lt(),r===l){n=Xe(e,n,t);break e}le(e,n,r,t)}n=n.child}return n;case 5:return Ua(n),e===null&&$i(n),r=n.type,l=n.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Ri(r,l)?o=null:i!==null&&Ri(r,i)&&(n.flags|=32),tc(e,n),le(e,n,o,t),n.child;case 6:return e===null&&$i(n),null;case 13:return lc(e,n,t);case 4:return Mo(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=it(n,null,r,t):le(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),Yu(e,n,r,l,t);case 7:return le(e,n,n.pendingProps,t),n.child;case 8:return le(e,n,n.pendingProps.children,t),n.child;case 12:return le(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,i=n.memoizedProps,o=l.value,R(el,r._currentValue),r._currentValue=o,i!==null)if(Re(i.value,o)){if(i.children===l.children&&!ce.current){n=Xe(e,n,t);break e}}else for(i=n.child,i!==null&&(i.return=n);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Qe(-1,t&-t),s.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var v=a.pending;v===null?s.next=s:(s.next=v.next,v.next=s),a.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),Ai(i.return,t,n),u.lanes|=t;break}s=s.next}}else if(i.tag===10)o=i.type===n.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(h(341));o.lanes|=t,u=o.alternate,u!==null&&(u.lanes|=t),Ai(o,t,n),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===n){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}le(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,bn(n,t),l=Ce(l),r=r(l),n.flags|=1,le(e,n,r,t),n.child;case 14:return r=n.type,l=ze(r,n.pendingProps),l=ze(r.type,l),Gu(e,n,r,l,t);case 15:return ec(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),jr(e,n),n.tag=1,fe(r)?(e=!0,Jr(n)):e=!1,bn(n,t),Ja(n,r,l),Vi(n,r,l,t),Qi(null,n,r,!0,e,t);case 19:return ic(e,n,t);case 22:return nc(e,n,t)}throw Error(h(156,n.tag))};function kc(e,n){return Gs(e,n)}function Gd(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,n,t,r){return new Gd(e,n,t,r)}function Go(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xd(e){if(typeof e=="function")return Go(e)?1:0;if(e!=null){if(e=e.$$typeof,e===po)return 11;if(e===vo)return 14}return 2}function pn(e,n){var t=e.alternate;return t===null?(t=Ee(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function $r(e,n,t,r,l,i){var o=2;if(r=e,typeof e=="function")Go(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Fn:return Pn(t.children,l,i,n);case fo:o=8,l|=8;break;case di:return e=Ee(12,t,n,l|2),e.elementType=di,e.lanes=i,e;case pi:return e=Ee(13,t,n,l),e.elementType=pi,e.lanes=i,e;case vi:return e=Ee(19,t,n,l),e.elementType=vi,e.lanes=i,e;case Us:return El(t,l,i,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zs:o=10;break e;case Ts:o=9;break e;case po:o=11;break e;case vo:o=14;break e;case be:o=16,r=null;break e}throw Error(h(130,e==null?e:typeof e,""))}return n=Ee(o,t,n,l),n.elementType=e,n.type=r,n.lanes=i,n}function Pn(e,n,t,r){return e=Ee(7,e,r,n),e.lanes=t,e}function El(e,n,t,r){return e=Ee(22,e,r,n),e.elementType=Us,e.lanes=t,e.stateNode={isHidden:!1},e}function si(e,n,t){return e=Ee(6,e,null,n),e.lanes=t,e}function ai(e,n,t){return n=Ee(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Zd(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hl(0),this.expirationTimes=Hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Xo(e,n,t,r,l,i,o,u,s){return e=new Zd(e,n,t,u,s),n===1?(n=1,i===!0&&(n|=8)):n=0,i=Ee(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Io(i),e}function Jd(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xc)}catch(e){console.error(e)}}xc(),xs.exports=ge;var tp=xs.exports,ss=tp;ci.createRoot=ss.createRoot,ci.hydrateRoot=ss.hydrateRoot;var nr={},Pl={},Ll={};Object.defineProperty(Ll,"__esModule",{value:!0});Ll.useUnityCanvasId=void 0;var rp=pe,lp=0,ip="react-unity-webgl-canvas",op=function(e){if(e.id!==void 0)return e.id;var n=(0,rp.useMemo)(function(){return[ip,++lp].join("-")},[]);return n};Ll.useUnityCanvasId=op;var zl={},ur={};Object.defineProperty(ur,"__esModule",{value:!0});ur.UnityLoaderStatus=void 0;var as;(function(e){e.Idle="Idle",e.Loading="Loading",e.Loaded="Loaded",e.Error="Error"})(as||(ur.UnityLoaderStatus=as={}));var dt={};Object.defineProperty(dt,"__esModule",{value:!0});dt.isBrowserEnvironment=void 0;dt.isBrowserEnvironment=typeof window<"u"&&typeof document<"u";var up=nt&&nt.__awaiter||function(e,n,t,r){function l(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function u(v){try{a(r.next(v))}catch(m){o(m)}}function s(v){try{a(r.throw(v))}catch(m){o(m)}}function a(v){v.done?i(v.value):l(v.value).then(u,s)}a((r=r.apply(e,n||[])).next())})},sp=nt&&nt.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,l,i,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(a){return function(v){return s([a,v])}}function s(a){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(t=0)),t;)try{if(r=1,l&&(i=a[0]&2?l.return:a[0]?l.throw||((i=l.return)&&i.call(l),0):l.next)&&!(i=i.call(l,a[1])).done)return i;switch(l=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,l=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]"u"){console.warn(_p.errorMessages.noEventListener,{eventName:l});return}return u.callback.apply(u,i)},[e]);return(0,_t.useEffect)(function(){return Ar.push(r),function(){Ar.splice(Ar.indexOf(r),1)}},[r]),{addEventListener:n,removeEventListener:t}};Ml.useEventSystem=Np;var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});Rl.useNullableState=void 0;var Pp=pe,Lp=function(e){return(0,Pp.useState)(e||null)};Rl.useNullableState=Lp;Object.defineProperty(Il,"__esModule",{value:!0});Il.useUnityContext=void 0;var Ae=pe,Ct=sr,zp=Ml,ps=Rl,Tp=function(e){var n=(0,ps.useNullableState)(),t=n[0],r=n[1],l=(0,Ae.useState)(0),i=l[0],o=l[1],u=(0,Ae.useState)(!1),s=u[0],a=u[1],v=(0,ps.useNullableState)(),m=v[0],p=v[1],g=(0,zp.useEventSystem)(),w=(0,Ae.useRef)({setLoadingProgression:o,setInitialisationError:p,setUnityInstance:r,setIsLoaded:a,unityConfig:e}),S=(0,Ae.useCallback)(function(y){if(t===null){console.warn(Ct.errorMessages.requestFullscreenNoUnityInstance);return}t.SetFullscreen(y===!0?1:0)},[t]),M=(0,Ae.useCallback)(function(){if(t===null||typeof t.Module.canvas>"u"){console.warn(Ct.errorMessages.requestPointerLockNoUnityInstanceOrCanvas);return}return t.Module.canvas.requestPointerLock()},[t]),f=(0,Ae.useCallback)(function(y,k,C){if(t===null){console.warn(Ct.errorMessages.sendMessageNoUnityInstance);return}t.SendMessage(y,k,C)},[t]),c=(0,Ae.useCallback)(function(y,k){if(t===null||typeof t.Module.canvas>"u"){console.warn(Ct.errorMessages.screenshotNoUnityInstanceOrCanvas);return}return t.Module.canvas.toDataURL(y,k)},[t]),d=(0,Ae.useCallback)(function(){return t===null?(console.warn(Ct.errorMessages.quitNoUnityInstance),Promise.reject()):t.Quit()},[t]);return(0,Ae.useEffect)(function(){a(i===1)},[i]),{unityProvider:w.current,loadingProgression:i,initialisationError:m,isLoaded:s,UNSAFE__unityInstance:t,requestFullscreen:S,requestPointerLock:M,sendMessage:f,unload:d,takeScreenshot:c,addEventListener:g.addEventListener,removeEventListener:g.removeEventListener}};Il.useUnityContext=Tp;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.useUnityContext=e.Unity=void 0;var n=Pl;Object.defineProperty(e,"Unity",{enumerable:!0,get:function(){return n.Unity}});var t=Il;Object.defineProperty(e,"useUnityContext",{enumerable:!0,get:function(){return t.useUnityContext}})})(nr);const Le=window.Telegram.WebApp;function Up(){const{unityProvider:e,isLoaded:n,loadingProgression:t}=nr.useUnityContext({productName:"Focus Bear",productVersion:"1.0.0",companyName:"Arism Lab",loaderUrl:"assets/BuildGame.loader.js",dataUrl:"assets/BuildGame.data.unityweb",frameworkUrl:"assets/BuildGame.framework.js.unityweb",codeUrl:"assets/BuildGame.wasm.unityweb",streamingAssetsUrl:"StreamingAssets"}),[r,l]=pe.useState(window.devicePixelRatio);return pe.useEffect(function(){Le.ready(),Le.expand(),Le.isClosingConfirmationEnabled=!0;const i=Le.BiometricManager.init;i.isInited?(Le.MainButton.text="Yes bio",Le.MainButton.show()):(Le.MainButton.text="No bio",Le.MainButton.show()),i.isBiometricAvailable?(Le.MainButton.text="No Bio Available",Le.MainButton.show()):Le.showScanQrPopup("https://web.telegram.org/");const o=function(){l(window.devicePixelRatio)},u=window.matchMedia(`screen and (resolution: ${r}dppx)`);return u.addEventListener("change",o),function(){u.removeEventListener("change",o)}},[r]),qe.jsxs("div",{id:"unity-container",className:"unity-responsive",children:[qe.jsx(nr.Unity,{unityProvider:e,style:{width:"100%",height:"100%"},devicePixelRatio:r}),!n&&qe.jsxs("div",{id:"unity-loading-bar",children:[qe.jsx("div",{id:"unity-logo"}),qe.jsx("div",{id:"unity-progress-bar-empty",children:qe.jsx("div",{id:"unity-progress-bar-full",style:{width:`${t*100}%`}})})]})]})}ci.createRoot(document.getElementById("root")).render(qe.jsx(Wc.StrictMode,{children:qe.jsx(Up,{})}))});export default Ip(); +`+i.stack}return{value:e,source:n,stack:l,digest:null}}function oi(e,n,t){return{value:e,source:null,stack:t??null,digest:n??null}}function Hi(e,n){try{console.error(n.value)}catch(t){setTimeout(function(){throw t})}}var Ud=typeof WeakMap=="function"?WeakMap:Map;function qa(e,n,t){t=Qe(-1,t),t.tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){ul||(ul=!0,bi=r),Hi(e,n)},t}function ba(e,n,t){t=Qe(-1,t),t.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){Hi(e,n)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){Hi(e,n),typeof r!="function"&&(fn===null?fn=new Set([this]):fn.add(this));var o=n.stack;this.componentDidCatch(n.value,{componentStack:o!==null?o:""})}),t}function Wu(e,n,t){var r=e.pingCache;if(r===null){r=e.pingCache=new Ud;var l=new Set;r.set(n,l)}else l=r.get(n),l===void 0&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Qd.bind(null,e,n,t),n.then(e,e))}function Qu(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Ku(e,n,t,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(n=Qe(-1,1),n.tag=2,cn(t,n,1))),t.lanes|=1),e)}var Id=Ze.ReactCurrentOwner,ae=!1;function le(e,n,t,r){n.child=e===null?La(n,null,t,r):it(n,e.child,t,r)}function Yu(e,n,t,r,l){t=t.render;var i=n.ref;return bn(n,l),r=Do(e,n,t,r,i,l),t=Fo(),e!==null&&!ae?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Xe(e,n,l)):(D&&t&&xo(n),n.flags|=1,le(e,n,r,l),n.child)}function Gu(e,n,t,r,l){if(e===null){var i=t.type;return typeof i=="function"&&!Go(i)&&i.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(n.tag=15,n.type=i,ec(e,n,i,r,l)):(e=$r(t.type,null,r,n,n.mode,l),e.ref=n.ref,e.return=n,n.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(t=t.compare,t=t!==null?t:Qt,t(o,r)&&e.ref===n.ref)return Xe(e,n,l)}return n.flags|=1,e=pn(i,r),e.ref=n.ref,e.return=n,n.child=e}function ec(e,n,t,r,l){if(e!==null){var i=e.memoizedProps;if(Qt(i,r)&&e.ref===n.ref)if(ae=!1,n.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(ae=!0);else return n.lanes=e.lanes,Xe(e,n,l)}return Wi(e,n,t,r,l)}function nc(e,n,t){var r=n.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},R(Gn,ve),ve|=t;else{if(!(t&1073741824))return e=i!==null?i.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,R(Gn,ve),ve|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:t,R(Gn,ve),ve|=r}else i!==null?(r=i.baseLanes|t,n.memoizedState=null):r=t,R(Gn,ve),ve|=r;return le(e,n,l,t),n.child}function tc(e,n){var t=n.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function Wi(e,n,t,r,l){var i=fe(t)?Ln:re.current;return i=rt(n,i),bn(n,l),t=Do(e,n,t,r,i,l),r=Fo(),e!==null&&!ae?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Xe(e,n,l)):(D&&r&&xo(n),n.flags|=1,le(e,n,t,l),n.child)}function Xu(e,n,t,r,l){if(fe(t)){var i=!0;Jr(n)}else i=!1;if(bn(n,l),n.stateNode===null)jr(e,n),Ja(n,t,r),Vi(n,t,r,l),r=!0;else if(e===null){var o=n.stateNode,u=n.memoizedProps;o.props=u;var s=o.context,a=t.contextType;typeof a=="object"&&a!==null?a=Ce(a):(a=fe(t)?Ln:re.current,a=rt(n,a));var v=t.getDerivedStateFromProps,m=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function";m||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||s!==a)&&Hu(n,o,r,a),en=!1;var p=n.memoizedState;o.state=p,tl(n,r,o,l),s=n.memoizedState,u!==r||p!==s||ce.current||en?(typeof v=="function"&&(Bi(n,t,v,r),s=n.memoizedState),(u=en||Vu(n,t,u,r,p,s,a))?(m||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(n.flags|=4194308)):(typeof o.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=s),o.props=r,o.state=s,o.context=a,r=u):(typeof o.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{o=n.stateNode,Ta(e,n),u=n.memoizedProps,a=n.type===n.elementType?u:ze(n.type,u),o.props=a,m=n.pendingProps,p=o.context,s=t.contextType,typeof s=="object"&&s!==null?s=Ce(s):(s=fe(t)?Ln:re.current,s=rt(n,s));var g=t.getDerivedStateFromProps;(v=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==m||p!==s)&&Hu(n,o,r,s),en=!1,p=n.memoizedState,o.state=p,tl(n,r,o,l);var w=n.memoizedState;u!==m||p!==w||ce.current||en?(typeof g=="function"&&(Bi(n,t,g,r),w=n.memoizedState),(a=en||Vu(n,t,a,r,p,w,s)||!1)?(v||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,s)),typeof o.componentDidUpdate=="function"&&(n.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(n.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=w),o.props=r,o.state=w,o.context=s,r=a):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(n.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(n.flags|=1024),r=!1)}return Qi(e,n,t,r,i,l)}function Qi(e,n,t,r,l,i){tc(e,n);var o=(n.flags&128)!==0;if(!r&&!o)return l&&Ru(n,t,!1),Xe(e,n,i);r=n.stateNode,Id.current=n;var u=o&&typeof t.getDerivedStateFromError!="function"?null:r.render();return n.flags|=1,e!==null&&o?(n.child=it(n,e.child,null,i),n.child=it(n,null,u,i)):le(e,n,u,i),n.memoizedState=r.state,l&&Ru(n,t,!0),n.child}function rc(e){var n=e.stateNode;n.pendingContext?Mu(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Mu(e,n.context,!1),Mo(e,n.containerInfo)}function Zu(e,n,t,r,l){return lt(),Po(l),n.flags|=256,le(e,n,t,r),n.child}var Ki={dehydrated:null,treeContext:null,retryLane:0};function Yi(e){return{baseLanes:e,cachePool:null,transitions:null}}function lc(e,n,t){var r=n.pendingProps,l=F.current,i=!1,o=(n.flags&128)!==0,u;if((u=o)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(i=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),R(F,l&1),e===null)return $i(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(n.mode&1?e.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(o=r.children,e=r.fallback,i?(r=n.mode,i=n.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=El(o,r,0,null),e=Pn(e,r,t,null),i.return=n,e.return=n,i.sibling=e,n.child=i,n.child.memoizedState=Yi(t),n.memoizedState=Ki,e):Bo(n,o));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return Md(e,n,o,r,u,l,t);if(i){i=r.fallback,o=n.mode,l=e.child,u=l.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&n.child!==l?(r=n.child,r.childLanes=0,r.pendingProps=s,n.deletions=null):(r=pn(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?i=pn(u,i):(i=Pn(i,o,t,null),i.flags|=2),i.return=n,r.return=n,r.sibling=i,n.child=r,r=i,i=n.child,o=e.child.memoizedState,o=o===null?Yi(t):{baseLanes:o.baseLanes|t,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~t,n.memoizedState=Ki,r}return i=e.child,e=i.sibling,r=pn(i,{mode:"visible",children:r.children}),!(n.mode&1)&&(r.lanes=t),r.return=n,r.sibling=null,e!==null&&(t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=r,n.memoizedState=null,r}function Bo(e,n){return n=El({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Cr(e,n,t,r){return r!==null&&Po(r),it(n,e.child,null,t),e=Bo(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Md(e,n,t,r,l,i,o){if(t)return n.flags&256?(n.flags&=-257,r=oi(Error(h(422))),Cr(e,n,o,r)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(i=r.fallback,l=n.mode,r=El({mode:"visible",children:r.children},l,0,null),i=Pn(i,l,o,null),i.flags|=2,r.return=n,i.return=n,r.sibling=i,n.child=r,n.mode&1&&it(n,e.child,null,o),n.child.memoizedState=Yi(o),n.memoizedState=Ki,i);if(!(n.mode&1))return Cr(e,n,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(h(419)),r=oi(i,r,void 0),Cr(e,n,o,r)}if(u=(o&e.childLanes)!==0,ae||u){if(r=Z,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,Ge(e,l),Me(r,e,l,-1))}return Yo(),r=oi(Error(h(421))),Cr(e,n,o,r)}return l.data==="$?"?(n.flags|=128,n.child=e.child,n=Kd.bind(null,e),l._reactRetry=n,null):(e=i.treeContext,me=an(l.nextSibling),ye=n,D=!0,Ue=null,e!==null&&(Se[ke++]=He,Se[ke++]=We,Se[ke++]=zn,He=e.id,We=e.overflow,zn=n),n=Bo(n,r.children),n.flags|=4096,n)}function Ju(e,n,t){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),Ai(e.return,n,t)}function ui(e,n,t,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(i.isBackwards=n,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=t,i.tailMode=l)}function ic(e,n,t){var r=n.pendingProps,l=r.revealOrder,i=r.tail;if(le(e,n,r.children,t),r=F.current,r&2)r=r&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ju(e,t,n);else if(e.tag===19)Ju(e,t,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(R(F,r),!(n.mode&1))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;t!==null;)e=t.alternate,e!==null&&rl(e)===null&&(l=t),t=t.sibling;t=l,t===null?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),ui(n,!1,l,t,i);break;case"backwards":for(t=null,l=n.child,n.child=null;l!==null;){if(e=l.alternate,e!==null&&rl(e)===null){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}ui(n,!0,t,null,i);break;case"together":ui(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function jr(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Xe(e,n,t){if(e!==null&&(n.dependencies=e.dependencies),Un|=n.lanes,!(t&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(h(153));if(n.child!==null){for(e=n.child,t=pn(e,e.pendingProps),n.child=t,t.return=n;e.sibling!==null;)e=e.sibling,t=t.sibling=pn(e,e.pendingProps),t.return=n;t.sibling=null}return n.child}function Rd(e,n,t){switch(n.tag){case 3:rc(n),lt();break;case 5:Ua(n);break;case 1:fe(n.type)&&Jr(n);break;case 4:Mo(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;R(el,r._currentValue),r._currentValue=l;break;case 13:if(r=n.memoizedState,r!==null)return r.dehydrated!==null?(R(F,F.current&1),n.flags|=128,null):t&n.child.childLanes?lc(e,n,t):(R(F,F.current&1),e=Xe(e,n,t),e!==null?e.sibling:null);R(F,F.current&1);break;case 19:if(r=(t&n.childLanes)!==0,e.flags&128){if(r)return ic(e,n,t);n.flags|=128}if(l=n.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),R(F,F.current),r)break;return null;case 22:case 23:return n.lanes=0,nc(e,n,t)}return Xe(e,n,t)}var oc,Gi,uc,sc;oc=function(e,n){for(var t=n.child;t!==null;){if(t.tag===5||t.tag===6)e.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};Gi=function(){};uc=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,xn($e.current);var i=null;switch(t){case"input":l=yi(e,l),r=yi(e,r),i=[];break;case"select":l=A({},l,{value:void 0}),r=A({},r,{value:void 0}),i=[];break;case"textarea":l=wi(e,l),r=wi(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Xr)}ki(t,r);var o;t=null;for(a in l)if(!r.hasOwnProperty(a)&&l.hasOwnProperty(a)&&l[a]!=null)if(a==="style"){var u=l[a];for(o in u)u.hasOwnProperty(o)&&(t||(t={}),t[o]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Ft.hasOwnProperty(a)?i||(i=[]):(i=i||[]).push(a,null));for(a in r){var s=r[a];if(u=l!=null?l[a]:void 0,r.hasOwnProperty(a)&&s!==u&&(s!=null||u!=null))if(a==="style")if(u){for(o in u)!u.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(t||(t={}),t[o]="");for(o in s)s.hasOwnProperty(o)&&u[o]!==s[o]&&(t||(t={}),t[o]=s[o])}else t||(i||(i=[]),i.push(a,t)),t=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(i=i||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Ft.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&O("scroll",e),i||u===s||(i=[])):(i=i||[]).push(a,s))}t&&(i=i||[]).push("style",t);var a=i;(n.updateQueue=a)&&(n.flags|=4)}};sc=function(e,n,t,r){t!==r&&(n.flags|=4)};function kt(e,n){if(!D)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;n!==null;)n.alternate!==null&&(t=n),n=n.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ne(e){var n=e.alternate!==null&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;l!==null;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Od(e,n,t){var r=n.pendingProps;switch(No(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ne(n),null;case 1:return fe(n.type)&&Zr(),ne(n),null;case 3:return r=n.stateNode,ot(),j(ce),j(re),Oo(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Er(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Ue!==null&&(to(Ue),Ue=null))),Gi(e,n),ne(n),null;case 5:Ro(n);var l=xn(Zt.current);if(t=n.type,e!==null&&n.stateNode!=null)uc(e,n,t,r,l),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(n.stateNode===null)throw Error(h(166));return ne(n),null}if(e=xn($e.current),Er(n)){r=n.stateNode,t=n.type;var i=n.memoizedProps;switch(r[De]=n,r[Gt]=i,e=(n.mode&1)!==0,t){case"dialog":O("cancel",r),O("close",r);break;case"iframe":case"object":case"embed":O("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),t==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t),e[De]=n,e[Gt]=r,oc(e,n,!1,!1),n.stateNode=e;e:{switch(o=Ei(t,r),t){case"dialog":O("cancel",e),O("close",e),l=r;break;case"iframe":case"object":case"embed":O("load",e),l=r;break;case"video":case"audio":for(l=0;lst&&(n.flags|=128,r=!0,kt(i,!1),n.lanes=4194304)}else{if(!r)if(e=rl(o),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),kt(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!D)return ne(n),null}else 2*W()-i.renderingStartTime>st&&t!==1073741824&&(n.flags|=128,r=!0,kt(i,!1),n.lanes=4194304);i.isBackwards?(o.sibling=n.child,n.child=o):(t=i.last,t!==null?t.sibling=o:n.child=o,i.last=o)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=W(),n.sibling=null,t=F.current,R(F,r?t&1|2:t&1),n):(ne(n),null);case 22:case 23:return Ko(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?ve&1073741824&&(ne(n),n.subtreeFlags&6&&(n.flags|=8192)):ne(n),null;case 24:return null;case 25:return null}throw Error(h(156,n.tag))}function jd(e,n){switch(No(n),n.tag){case 1:return fe(n.type)&&Zr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ot(),j(ce),j(re),Oo(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return Ro(n),null;case 13:if(j(F),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(h(340));lt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return j(F),null;case 4:return ot(),null;case 10:return To(n.type._context),null;case 22:case 23:return Ko(),null;case 24:return null;default:return null}}var xr=!1,te=!1,Dd=typeof WeakSet=="function"?WeakSet:Set,E=null;function Yn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){B(e,n,r)}else t.current=null}function Xi(e,n,t){try{t()}catch(r){B(e,n,r)}}var qu=!1;function Fd(e,n){if(Ii=Kr,e=pa(),Co(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,u=-1,s=-1,a=0,v=0,m=e,p=null;n:for(;;){for(var g;m!==t||l!==0&&m.nodeType!==3||(u=o+l),m!==i||r!==0&&m.nodeType!==3||(s=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break n;if(p===t&&++a===l&&(u=o),p===i&&++v===r&&(s=o),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(Mi={focusedElem:e,selectionRange:t},Kr=!1,E=n;E!==null;)if(n=E,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,E=e;else for(;E!==null;){n=E;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,M=w.memoizedState,f=n.stateNode,c=f.getSnapshotBeforeUpdate(n.elementType===n.type?S:ze(n.type,S),M);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(h(163))}}catch(y){B(n,n.return,y)}if(e=n.sibling,e!==null){e.return=n.return,E=e;break}E=n.return}return w=qu,qu=!1,w}function Ot(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Xi(n,t,i)}l=l.next}while(l!==r)}}function Sl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Zi(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function ac(e){var n=e.alternate;n!==null&&(e.alternate=null,ac(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[De],delete n[Gt],delete n[ji],delete n[Sd],delete n[kd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function cc(e){return e.tag===5||e.tag===3||e.tag===4}function bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ji(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Xr));else if(r!==4&&(e=e.child,e!==null))for(Ji(e,n,t),e=e.sibling;e!==null;)Ji(e,n,t),e=e.sibling}function qi(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(qi(e,n,t),e=e.sibling;e!==null;)qi(e,n,t),e=e.sibling}var J=null,Te=!1;function Je(e,n,t){for(t=t.child;t!==null;)fc(e,n,t),t=t.sibling}function fc(e,n,t){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount(dl,t)}catch{}switch(t.tag){case 5:te||Yn(t,n);case 6:var r=J,l=Te;J=null,Je(e,n,t),J=r,Te=l,J!==null&&(Te?(e=J,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):J.removeChild(t.stateNode));break;case 18:J!==null&&(Te?(e=J,t=t.stateNode,e.nodeType===8?ei(e.parentNode,t):e.nodeType===1&&ei(e,t),Ht(e)):ei(J,t.stateNode));break;case 4:r=J,l=Te,J=t.stateNode.containerInfo,Te=!0,Je(e,n,t),J=r,Te=l;break;case 0:case 11:case 14:case 15:if(!te&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Xi(t,n,o),l=l.next}while(l!==r)}Je(e,n,t);break;case 1:if(!te&&(Yn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){B(t,n,u)}Je(e,n,t);break;case 21:Je(e,n,t);break;case 22:t.mode&1?(te=(r=te)||t.memoizedState!==null,Je(e,n,t),te=r):Je(e,n,t);break;default:Je(e,n,t)}}function es(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new Dd),n.forEach(function(r){var l=Yd.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function Pe(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=W()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ad(r/1960))-r,10e?16:e,ln===null)var r=!1;else{if(e=ln,ln=null,sl=0,U&6)throw Error(h(331));var l=U;for(U|=4,E=e.current;E!==null;){var i=E,o=i.child;if(E.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sW()-Wo?Nn(e,0):Ho|=t),de(e,n)}function wc(e,n){n===0&&(e.mode&1?(n=yr,yr<<=1,!(yr&130023424)&&(yr=4194304)):n=1);var t=ie();e=Ge(e,n),e!==null&&(rr(e,n,t),de(e,t))}function Kd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),wc(e,t)}function Yd(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(h(314))}r!==null&&r.delete(n),wc(e,t)}var Sc;Sc=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||ce.current)ae=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return ae=!1,Rd(e,n,t);ae=!!(e.flags&131072)}else ae=!1,D&&n.flags&1048576&&Ca(n,br,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;jr(e,n),e=n.pendingProps;var l=rt(n,re.current);bn(n,t),l=Do(null,n,r,e,l,t);var i=Fo();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,fe(r)?(i=!0,Jr(n)):i=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Io(n),l.updater=wl,n.stateNode=l,l._reactInternals=n,Vi(n,r,e,t),n=Qi(null,n,r,!0,i,t)):(n.tag=0,D&&i&&xo(n),le(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(jr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Xd(r),e=ze(r,e),l){case 0:n=Wi(null,n,r,e,t);break e;case 1:n=Xu(null,n,r,e,t);break e;case 11:n=Yu(null,n,r,e,t);break e;case 14:n=Gu(null,n,r,ze(r.type,e),t);break e}throw Error(h(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),Wi(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),Xu(e,n,r,l,t);case 3:e:{if(rc(n),e===null)throw Error(h(387));r=n.pendingProps,i=n.memoizedState,l=i.element,Ta(e,n),tl(n,r,null,t);var o=n.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){l=ut(Error(h(423)),n),n=Zu(e,n,r,t,l);break e}else if(r!==l){l=ut(Error(h(424)),n),n=Zu(e,n,r,t,l);break e}else for(me=an(n.stateNode.containerInfo.firstChild),ye=n,D=!0,Ue=null,t=La(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(lt(),r===l){n=Xe(e,n,t);break e}le(e,n,r,t)}n=n.child}return n;case 5:return Ua(n),e===null&&$i(n),r=n.type,l=n.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Ri(r,l)?o=null:i!==null&&Ri(r,i)&&(n.flags|=32),tc(e,n),le(e,n,o,t),n.child;case 6:return e===null&&$i(n),null;case 13:return lc(e,n,t);case 4:return Mo(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=it(n,null,r,t):le(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),Yu(e,n,r,l,t);case 7:return le(e,n,n.pendingProps,t),n.child;case 8:return le(e,n,n.pendingProps.children,t),n.child;case 12:return le(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,i=n.memoizedProps,o=l.value,R(el,r._currentValue),r._currentValue=o,i!==null)if(Re(i.value,o)){if(i.children===l.children&&!ce.current){n=Xe(e,n,t);break e}}else for(i=n.child,i!==null&&(i.return=n);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Qe(-1,t&-t),s.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var v=a.pending;v===null?s.next=s:(s.next=v.next,v.next=s),a.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),Ai(i.return,t,n),u.lanes|=t;break}s=s.next}}else if(i.tag===10)o=i.type===n.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(h(341));o.lanes|=t,u=o.alternate,u!==null&&(u.lanes|=t),Ai(o,t,n),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===n){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}le(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,bn(n,t),l=Ce(l),r=r(l),n.flags|=1,le(e,n,r,t),n.child;case 14:return r=n.type,l=ze(r,n.pendingProps),l=ze(r.type,l),Gu(e,n,r,l,t);case 15:return ec(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),jr(e,n),n.tag=1,fe(r)?(e=!0,Jr(n)):e=!1,bn(n,t),Ja(n,r,l),Vi(n,r,l,t),Qi(null,n,r,!0,e,t);case 19:return ic(e,n,t);case 22:return nc(e,n,t)}throw Error(h(156,n.tag))};function kc(e,n){return Gs(e,n)}function Gd(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,n,t,r){return new Gd(e,n,t,r)}function Go(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xd(e){if(typeof e=="function")return Go(e)?1:0;if(e!=null){if(e=e.$$typeof,e===po)return 11;if(e===vo)return 14}return 2}function pn(e,n){var t=e.alternate;return t===null?(t=Ee(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function $r(e,n,t,r,l,i){var o=2;if(r=e,typeof e=="function")Go(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Fn:return Pn(t.children,l,i,n);case fo:o=8,l|=8;break;case di:return e=Ee(12,t,n,l|2),e.elementType=di,e.lanes=i,e;case pi:return e=Ee(13,t,n,l),e.elementType=pi,e.lanes=i,e;case vi:return e=Ee(19,t,n,l),e.elementType=vi,e.lanes=i,e;case Us:return El(t,l,i,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zs:o=10;break e;case Ts:o=9;break e;case po:o=11;break e;case vo:o=14;break e;case be:o=16,r=null;break e}throw Error(h(130,e==null?e:typeof e,""))}return n=Ee(o,t,n,l),n.elementType=e,n.type=r,n.lanes=i,n}function Pn(e,n,t,r){return e=Ee(7,e,r,n),e.lanes=t,e}function El(e,n,t,r){return e=Ee(22,e,r,n),e.elementType=Us,e.lanes=t,e.stateNode={isHidden:!1},e}function si(e,n,t){return e=Ee(6,e,null,n),e.lanes=t,e}function ai(e,n,t){return n=Ee(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Zd(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hl(0),this.expirationTimes=Hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Xo(e,n,t,r,l,i,o,u,s){return e=new Zd(e,n,t,u,s),n===1?(n=1,i===!0&&(n|=8)):n=0,i=Ee(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Io(i),e}function Jd(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xc)}catch(e){console.error(e)}}xc(),xs.exports=ge;var tp=xs.exports,ss=tp;ci.createRoot=ss.createRoot,ci.hydrateRoot=ss.hydrateRoot;var nr={},Pl={},Ll={};Object.defineProperty(Ll,"__esModule",{value:!0});Ll.useUnityCanvasId=void 0;var rp=pe,lp=0,ip="react-unity-webgl-canvas",op=function(e){if(e.id!==void 0)return e.id;var n=(0,rp.useMemo)(function(){return[ip,++lp].join("-")},[]);return n};Ll.useUnityCanvasId=op;var zl={},ur={};Object.defineProperty(ur,"__esModule",{value:!0});ur.UnityLoaderStatus=void 0;var as;(function(e){e.Idle="Idle",e.Loading="Loading",e.Loaded="Loaded",e.Error="Error"})(as||(ur.UnityLoaderStatus=as={}));var dt={};Object.defineProperty(dt,"__esModule",{value:!0});dt.isBrowserEnvironment=void 0;dt.isBrowserEnvironment=typeof window<"u"&&typeof document<"u";var up=nt&&nt.__awaiter||function(e,n,t,r){function l(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function u(v){try{a(r.next(v))}catch(m){o(m)}}function s(v){try{a(r.throw(v))}catch(m){o(m)}}function a(v){v.done?i(v.value):l(v.value).then(u,s)}a((r=r.apply(e,n||[])).next())})},sp=nt&&nt.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,l,i,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(a){return function(v){return s([a,v])}}function s(a){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(t=0)),t;)try{if(r=1,l&&(i=a[0]&2?l.return:a[0]?l.throw||((i=l.return)&&i.call(l),0):l.next)&&!(i=i.call(l,a[1])).done)return i;switch(l=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,l=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]"u"){console.warn(_p.errorMessages.noEventListener,{eventName:l});return}return u.callback.apply(u,i)},[e]);return(0,_t.useEffect)(function(){return Ar.push(r),function(){Ar.splice(Ar.indexOf(r),1)}},[r]),{addEventListener:n,removeEventListener:t}};Ml.useEventSystem=Np;var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});Rl.useNullableState=void 0;var Pp=pe,Lp=function(e){return(0,Pp.useState)(e||null)};Rl.useNullableState=Lp;Object.defineProperty(Il,"__esModule",{value:!0});Il.useUnityContext=void 0;var Ae=pe,Ct=sr,zp=Ml,ps=Rl,Tp=function(e){var n=(0,ps.useNullableState)(),t=n[0],r=n[1],l=(0,Ae.useState)(0),i=l[0],o=l[1],u=(0,Ae.useState)(!1),s=u[0],a=u[1],v=(0,ps.useNullableState)(),m=v[0],p=v[1],g=(0,zp.useEventSystem)(),w=(0,Ae.useRef)({setLoadingProgression:o,setInitialisationError:p,setUnityInstance:r,setIsLoaded:a,unityConfig:e}),S=(0,Ae.useCallback)(function(y){if(t===null){console.warn(Ct.errorMessages.requestFullscreenNoUnityInstance);return}t.SetFullscreen(y===!0?1:0)},[t]),M=(0,Ae.useCallback)(function(){if(t===null||typeof t.Module.canvas>"u"){console.warn(Ct.errorMessages.requestPointerLockNoUnityInstanceOrCanvas);return}return t.Module.canvas.requestPointerLock()},[t]),f=(0,Ae.useCallback)(function(y,k,C){if(t===null){console.warn(Ct.errorMessages.sendMessageNoUnityInstance);return}t.SendMessage(y,k,C)},[t]),c=(0,Ae.useCallback)(function(y,k){if(t===null||typeof t.Module.canvas>"u"){console.warn(Ct.errorMessages.screenshotNoUnityInstanceOrCanvas);return}return t.Module.canvas.toDataURL(y,k)},[t]),d=(0,Ae.useCallback)(function(){return t===null?(console.warn(Ct.errorMessages.quitNoUnityInstance),Promise.reject()):t.Quit()},[t]);return(0,Ae.useEffect)(function(){a(i===1)},[i]),{unityProvider:w.current,loadingProgression:i,initialisationError:m,isLoaded:s,UNSAFE__unityInstance:t,requestFullscreen:S,requestPointerLock:M,sendMessage:f,unload:d,takeScreenshot:c,addEventListener:g.addEventListener,removeEventListener:g.removeEventListener}};Il.useUnityContext=Tp;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.useUnityContext=e.Unity=void 0;var n=Pl;Object.defineProperty(e,"Unity",{enumerable:!0,get:function(){return n.Unity}});var t=Il;Object.defineProperty(e,"useUnityContext",{enumerable:!0,get:function(){return t.useUnityContext}})})(nr);const Le=window.Telegram.WebApp;function Up(){const{unityProvider:e,isLoaded:n,loadingProgression:t}=nr.useUnityContext({productName:"Focus Bear",productVersion:"1.0.0",companyName:"Arism Lab",loaderUrl:"assets/BuildGame.loader.js",dataUrl:"assets/BuildGame.data.unityweb",frameworkUrl:"assets/BuildGame.framework.js.unityweb",codeUrl:"assets/BuildGame.wasm.unityweb",streamingAssetsUrl:"StreamingAssets"}),[r,l]=pe.useState(window.devicePixelRatio);return pe.useEffect(function(){Le.ready(),Le.expand(),Le.isClosingConfirmationEnabled=!0;const i=Le.BiometricManager.init;i.isInited?(Le.MainButton.text="Yes bio",Le.MainButton.show()):(Le.MainButton.text="No bio",Le.MainButton.show()),i.isBiometricAvailable?(Le.MainButton.text="Bio is Available",Le.MainButton.show()):Le.showScanQrPopup("https://web.telegram.org/");const o=function(){l(window.devicePixelRatio)},u=window.matchMedia(`screen and (resolution: ${r}dppx)`);return u.addEventListener("change",o),function(){u.removeEventListener("change",o)}},[r]),qe.jsxs("div",{id:"unity-container",className:"unity-responsive",children:[qe.jsx(nr.Unity,{unityProvider:e,style:{width:"100%",height:"100%"},devicePixelRatio:r}),!n&&qe.jsxs("div",{id:"unity-loading-bar",children:[qe.jsx("div",{id:"unity-logo"}),qe.jsx("div",{id:"unity-progress-bar-empty",children:qe.jsx("div",{id:"unity-progress-bar-full",style:{width:`${t*100}%`}})})]})]})}ci.createRoot(document.getElementById("root")).render(qe.jsx(Wc.StrictMode,{children:qe.jsx(Up,{})}))});export default Ip(); diff --git a/index.html b/index.html index 8f3f255..ff232b0 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ Focus Bear - +