diff --git "a/assets/index-DAG43rWe.js" "b/assets/index-DAG43rWe.js" new file mode 100644--- /dev/null +++ "b/assets/index-DAG43rWe.js" @@ -0,0 +1,40 @@ +(function(){const O=document.createElement("link").relList;if(O&&O.supports&&O.supports("modulepreload"))return;for(const F of document.querySelectorAll('link[rel="modulepreload"]'))ve(F);new MutationObserver(F=>{for(const Q of F)if(Q.type==="childList")for(const te of Q.addedNodes)te.tagName==="LINK"&&te.rel==="modulepreload"&&ve(te)}).observe(document,{childList:!0,subtree:!0});function m(F){const Q={};return F.integrity&&(Q.integrity=F.integrity),F.referrerPolicy&&(Q.referrerPolicy=F.referrerPolicy),F.crossOrigin==="use-credentials"?Q.credentials="include":F.crossOrigin==="anonymous"?Q.credentials="omit":Q.credentials="same-origin",Q}function ve(F){if(F.ep)return;F.ep=!0;const Q=m(F);fetch(F.href,Q)}})();function Da(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var _i={exports:{}},gr={},Ci={exports:{}},I={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var _a;function Lf(){if(_a)return I;_a=1;var x=Symbol.for("react.element"),O=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),Q=Symbol.for("react.provider"),te=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),fe=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),A=Symbol.iterator;function J(c){return c===null||typeof c!="object"?null:(c=A&&c[A]||c["@@iterator"],typeof c=="function"?c:null)}var ye={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Re=Object.assign,Z={};function Y(c,v,D){this.props=c,this.context=v,this.refs=Z,this.updater=D||ye}Y.prototype.isReactComponent={},Y.prototype.setState=function(c,v){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,v,"setState")},Y.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};function tn(){}tn.prototype=Y.prototype;function me(c,v,D){this.props=c,this.context=v,this.refs=Z,this.updater=D||ye}var re=me.prototype=new tn;re.constructor=me,Re(re,Y.prototype),re.isPureReactComponent=!0;var le=Array.isArray,ge=Object.prototype.hasOwnProperty,Le={current:null},De={key:!0,ref:!0,__self:!0,__source:!0};function Xe(c,v,D){var M,B={},V=null,q=null;if(v!=null)for(M in v.ref!==void 0&&(q=v.ref),v.key!==void 0&&(V=""+v.key),v)ge.call(v,M)&&!De.hasOwnProperty(M)&&(B[M]=v[M]);var G=arguments.length-2;if(G===1)B.children=D;else if(1>>1,v=k[c];if(0>>1;cF(B,_))VF(q,B)?(k[c]=q,k[V]=_,c=V):(k[c]=B,k[M]=_,c=M);else if(VF(q,_))k[c]=q,k[V]=_,c=V;else break e}}return L}function F(k,L){var _=k.sortIndex-L.sortIndex;return _!==0?_:k.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var Q=performance;x.unstable_now=function(){return Q.now()}}else{var te=Date,K=te.now();x.unstable_now=function(){return te.now()-K}}var W=[],fe=[],$=1,A=null,J=3,ye=!1,Re=!1,Z=!1,Y=typeof setTimeout=="function"?setTimeout:null,tn=typeof clearTimeout=="function"?clearTimeout:null,me=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function re(k){for(var L=m(fe);L!==null;){if(L.callback===null)ve(fe);else if(L.startTime<=k)ve(fe),L.sortIndex=L.expirationTime,O(W,L);else break;L=m(fe)}}function le(k){if(Z=!1,re(k),!Re)if(m(W)!==null)Re=!0,Ie(ge);else{var L=m(fe);L!==null&&ae(le,L.startTime-k)}}function ge(k,L){Re=!1,Z&&(Z=!1,tn(Xe),Xe=-1),ye=!0;var _=J;try{for(re(L),A=m(W);A!==null&&(!(A.expirationTime>L)||k&&!Gn());){var c=A.callback;if(typeof c=="function"){A.callback=null,J=A.priorityLevel;var v=c(A.expirationTime<=L);L=x.unstable_now(),typeof v=="function"?A.callback=v:A===m(W)&&ve(W),re(L)}else ve(W);A=m(W)}if(A!==null)var D=!0;else{var M=m(fe);M!==null&&ae(le,M.startTime-L),D=!1}return D}finally{A=null,J=_,ye=!1}}var Le=!1,De=null,Xe=-1,zn=5,wn=-1;function Gn(){return!(x.unstable_now()-wnk||125c?(k.sortIndex=_,O(fe,k),m(W)===null&&k===m(fe)&&(Z?(tn(Xe),Xe=-1):Z=!0,ae(le,_-c))):(k.sortIndex=v,O(W,k),Re||ye||(Re=!0,Ie(ge))),k},x.unstable_shouldYield=Gn,x.unstable_wrapCallback=function(k){var L=J;return function(){var _=J;J=L;try{return k.apply(this,arguments)}finally{J=_}}}}(zi)),zi}var Ta;function Mf(){return Ta||(Ta=1,Pi.exports=If()),Pi.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ra;function Ff(){if(Ra)return Ve;Ra=1;var x=Ti(),O=Mf();function m(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,fe=/^[: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]*$/,$={},A={};function J(e){return W.call(A,e)?!0:W.call($,e)?!1:fe.test(e)?A[e]=!0:($[e]=!0,!1)}function ye(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Re(e,n,t,r){if(n===null||typeof n>"u"||ye(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function Z(e,n,t,r,l,o,i){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=i}var Y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Y[e]=new Z(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];Y[n]=new Z(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Y[e]=new Z(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Y[e]=new Z(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Y[e]=new Z(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Y[e]=new Z(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Y[e]=new Z(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Y[e]=new Z(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Y[e]=new Z(e,5,!1,e.toLowerCase(),null,!1,!1)});var tn=/[\-:]([a-z])/g;function me(e){return e[1].toUpperCase()}"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 n=e.replace(tn,me);Y[n]=new Z(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(tn,me);Y[n]=new Z(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(tn,me);Y[n]=new Z(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Y[e]=new Z(e,1,!1,e.toLowerCase(),null,!1,!1)}),Y.xlinkHref=new Z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Y[e]=new Z(e,1,!1,e.toLowerCase(),null,!0,!0)});function re(e,n,t,r){var l=Y.hasOwnProperty(n)?Y[n]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` +`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{D=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?v(e):""}function B(e){switch(e.tag){case 5:return v(e.type);case 16:return v("Lazy");case 13:return v("Suspense");case 19:return v("SuspenseList");case 0:case 2:case 15:return e=M(e.type,!1),e;case 11:return e=M(e.type.render,!1),e;case 1:return e=M(e.type,!0),e;default:return""}}function V(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 De:return"Fragment";case Le:return"Portal";case zn:return"Profiler";case Xe:return"StrictMode";case We:return"Suspense";case rn:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gn:return(e.displayName||"Context")+".Consumer";case wn:return(e._context.displayName||"Context")+".Provider";case dn:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pn:return n=e.displayName||null,n!==null?n:V(e.type)||"Memo";case Ie:n=e._payload,e=e._init;try{return V(e(n))}catch{}}return null}function q(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 V(n);case 8:return n===Xe?"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 G(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oe(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function $e(e){var n=oe(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,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function wr(e){e._valueTracker||(e._valueTracker=$e(e))}function Ri(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=oe(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function kr(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 Rl(e,n){var t=n.checked;return _({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Li(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=G(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 ji(e,n){n=n.checked,n!=null&&re(e,"checked",n,!1)}function Ll(e,n){ji(e,n);var t=G(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")?jl(e,n.type,t):n.hasOwnProperty("defaultValue")&&jl(e,n.type,G(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Oi(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 jl(e,n,t){(n!=="number"||kr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var Ot=Array.isArray;function st(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=Sr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Dt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var It={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},Ia=["Webkit","ms","Moz","O"];Object.keys(It).forEach(function(e){Ia.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),It[n]=It[e]})});function Ai(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||It.hasOwnProperty(e)&&It[e]?(""+n).trim():n+"px"}function Bi(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=Ai(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Ma=_({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 Il(e,n){if(n){if(Ma[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(m(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(m(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(m(61))}if(n.style!=null&&typeof n.style!="object")throw Error(m(62))}}function Ml(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 Fl=null;function Ul(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Al=null,at=null,ct=null;function Vi(e){if(e=rr(e)){if(typeof Al!="function")throw Error(m(280));var n=e.stateNode;n&&(n=$r(n),Al(e.stateNode,e.type,n))}}function Hi(e){at?ct?ct.push(e):ct=[e]:at=e}function Wi(){if(at){var e=at,n=ct;if(ct=at=null,Vi(e),n)for(e=0;e>>=0,e===0?32:31-(Ya(e)/Ga|0)|0}var Nr=64,Pr=4194304;function At(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 zr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=t&268435455;if(i!==0){var u=i&~l;u!==0?r=At(u):(o&=i,o!==0&&(r=At(o)))}else i=t&~l,i!==0?r=At(i):o!==0&&(r=At(o));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,o=n&-n,l>=o||l===16&&(o&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 Bt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-ln(n),e[n]=t}function qa(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=Gt),yu=" ",gu=!1;function wu(e,n){switch(e){case"keyup":return Nc.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ku(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pt=!1;function zc(e,n){switch(e){case"compositionend":return ku(n);case"keypress":return n.which!==32?null:(gu=!0,yu);case"textInput":return e=n.data,e===yu&&gu?null:e;default:return null}}function Tc(e,n){if(pt)return e==="compositionend"||!ro&&wu(e,n)?(e=fu(),Or=Jl=On=null,pt=!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=Pu(t)}}function Tu(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Tu(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ru(){for(var e=window,n=kr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=kr(e.document)}return n}function io(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 Uc(e){var n=Ru(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Tu(t.ownerDocument.documentElement,t)){if(r!==null&&io(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,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=zu(t,o);var i=zu(t,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(n),e.extend(i.node,i.offset)):(n.setEnd(i.node,i.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,mt=null,uo=null,qt=null,so=!1;function Lu(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;so||mt==null||mt!==kr(r)||(r=mt,"selectionStart"in r&&io(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}),qt&&Jt(qt,r)||(qt=r,r=Vr(uo,"onSelect"),0wt||(e.current=So[wt],So[wt]=null,wt--)}function b(e,n){wt++,So[wt]=e.current,e.current=n}var Fn={},Ne=Mn(Fn),Me=Mn(!1),Jn=Fn;function kt(e,n){var t=e.type.contextTypes;if(!t)return Fn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function Fe(e){return e=e.childContextTypes,e!=null}function Qr(){ne(Me),ne(Ne)}function Ku(e,n,t){if(Ne.current!==Fn)throw Error(m(168));b(Ne,n),b(Me,t)}function Yu(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(m(108,q(e)||"Unknown",l));return _({},t,r)}function Kr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fn,Jn=Ne.current,b(Ne,e),b(Me,Me.current),!0}function Gu(e,n,t){var r=e.stateNode;if(!r)throw Error(m(169));t?(e=Yu(e,n,Jn),r.__reactInternalMemoizedMergedChildContext=e,ne(Me),ne(Ne),b(Ne,e)):ne(Me),b(Me,t)}var Sn=null,Yr=!1,xo=!1;function Xu(e){Sn===null?Sn=[e]:Sn.push(e)}function Zc(e){Yr=!0,Xu(e)}function Un(){if(!xo&&Sn!==null){xo=!0;var e=0,n=X;try{var t=Sn;for(X=1;e>=i,l-=i,xn=1<<32-ln(n)+l|t<j?(Ee=R,R=null):Ee=R.sibling;var H=h(f,R,d[j],w);if(H===null){R===null&&(R=Ee);break}e&&R&&H.alternate===null&&n(f,R),a=o(H,a,j),T===null?z=H:T.sibling=H,T=H,R=Ee}if(j===d.length)return t(f,R),ie&&bn(f,j),z;if(R===null){for(;jj?(Ee=R,R=null):Ee=R.sibling;var Yn=h(f,R,H.value,w);if(Yn===null){R===null&&(R=Ee);break}e&&R&&Yn.alternate===null&&n(f,R),a=o(Yn,a,j),T===null?z=Yn:T.sibling=Yn,T=Yn,R=Ee}if(H.done)return t(f,R),ie&&bn(f,j),z;if(R===null){for(;!H.done;j++,H=d.next())H=g(f,H.value,w),H!==null&&(a=o(H,a,j),T===null?z=H:T.sibling=H,T=H);return ie&&bn(f,j),z}for(R=r(f,R);!H.done;j++,H=d.next())H=S(R,f,j,H.value,w),H!==null&&(e&&H.alternate!==null&&R.delete(H.key===null?j:H.key),a=o(H,a,j),T===null?z=H:T.sibling=H,T=H);return e&&R.forEach(function(Rf){return n(f,Rf)}),ie&&bn(f,j),z}function pe(f,a,d,w){if(typeof d=="object"&&d!==null&&d.type===De&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case ge:e:{for(var z=d.key,T=a;T!==null;){if(T.key===z){if(z=d.type,z===De){if(T.tag===7){t(f,T.sibling),a=l(T,d.props.children),a.return=f,f=a;break e}}else if(T.elementType===z||typeof z=="object"&&z!==null&&z.$$typeof===Ie&&ns(z)===T.type){t(f,T.sibling),a=l(T,d.props),a.ref=lr(f,T,d),a.return=f,f=a;break e}t(f,T);break}else n(f,T);T=T.sibling}d.type===De?(a=ut(d.props.children,f.mode,w,d.key),a.return=f,f=a):(w=Sl(d.type,d.key,d.props,null,f.mode,w),w.ref=lr(f,a,d),w.return=f,f=w)}return i(f);case Le:e:{for(T=d.key;a!==null;){if(a.key===T)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{t(f,a);break}else n(f,a);a=a.sibling}a=wi(d,f.mode,w),a.return=f,f=a}return i(f);case Ie:return T=d._init,pe(f,a,T(d._payload),w)}if(Ot(d))return C(f,a,d,w);if(L(d))return N(f,a,d,w);Jr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(f,a.sibling),a=l(a,d),a.return=f,f=a):(t(f,a),a=gi(d,f.mode,w),a.return=f,f=a),i(f)):t(f,a)}return pe}var _t=ts(!0),rs=ts(!1),qr=Mn(null),br=null,Ct=null,zo=null;function To(){zo=Ct=br=null}function Ro(e){var n=qr.current;ne(qr),e._currentValue=n}function Lo(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 Nt(e,n){br=e,zo=Ct=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(Ue=!0),e.firstContext=null)}function qe(e){var n=e._currentValue;if(zo!==e)if(e={context:e,memoizedValue:n,next:null},Ct===null){if(br===null)throw Error(m(308));Ct=e,br.dependencies={lanes:0,firstContext:e}}else Ct=Ct.next=e;return n}var et=null;function jo(e){et===null?et=[e]:et.push(e)}function ls(e,n,t,r){var l=n.interleaved;return l===null?(t.next=t,jo(n)):(t.next=l.next,l.next=t),n.interleaved=t,_n(e,r)}function _n(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 An=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function os(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 Cn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Bn(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,_n(e,t)}return l=r.interleaved,l===null?(n.next=n,jo(r)):(n.next=l.next,l.next=n),r.interleaved=n,_n(e,t)}function el(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,Kl(e,t)}}function is(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var l=null,o=null;if(t=t.firstBaseUpdate,t!==null){do{var i={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};o===null?l=o=i:o=o.next=i,t=t.next}while(t!==null);o===null?l=o=n:o=o.next=n}else l=o=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,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 nl(e,n,t,r){var l=e.updateQueue;An=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,p=s.next;s.next=null,i===null?o=p:i.next=p,i=s;var y=e.alternate;y!==null&&(y=y.updateQueue,u=y.lastBaseUpdate,u!==i&&(u===null?y.firstBaseUpdate=p:u.next=p,y.lastBaseUpdate=s))}if(o!==null){var g=l.baseState;i=0,y=p=s=null,u=o;do{var h=u.lane,S=u.eventTime;if((r&h)===h){y!==null&&(y=y.next={eventTime:S,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var C=e,N=u;switch(h=n,S=t,N.tag){case 1:if(C=N.payload,typeof C=="function"){g=C.call(S,g,h);break e}g=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=N.payload,h=typeof C=="function"?C.call(S,g,h):C,h==null)break e;g=_({},g,h);break e;case 2:An=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[u]:h.push(u))}else S={eventTime:S,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},y===null?(p=y=S,s=g):y=y.next=S,i|=h;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;h=u,u=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(y===null&&(s=g),l.baseState=s,l.firstBaseUpdate=p,l.lastBaseUpdate=y,n=l.shared.interleaved,n!==null){l=n;do i|=l.lane,l=l.next;while(l!==n)}else o===null&&(l.shared.lanes=0);rt|=i,e.lanes=i,e.memoizedState=g}}function us(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=Uo.transition;Uo.transition={};try{e(!1),n()}finally{X=t,Uo.transition=r}}function Ns(){return be().memoizedState}function ef(e,n,t){var r=$n(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ps(e))zs(n,t);else if(t=ls(e,n,t,r),t!==null){var l=Oe();fn(t,e,r,l),Ts(t,n,r)}}function nf(e,n,t){var r=$n(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))zs(n,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=n.lastRenderedReducer,o!==null))try{var i=n.lastRenderedState,u=o(i,t);if(l.hasEagerState=!0,l.eagerState=u,on(u,i)){var s=n.interleaved;s===null?(l.next=l,jo(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=ls(e,n,l,r),t!==null&&(l=Oe(),fn(t,e,r,l),Ts(t,n,r))}}function Ps(e){var n=e.alternate;return e===se||n!==null&&n===se}function zs(e,n){sr=ll=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Ts(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Kl(e,t)}}var ul={readContext:qe,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},tf={readContext:qe,useCallback:function(e,n){return yn().memoizedState=[e,n===void 0?null:n],e},useContext:qe,useEffect:gs,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,ol(4194308,4,Ss.bind(null,n,e),t)},useLayoutEffect:function(e,n){return ol(4194308,4,e,n)},useInsertionEffect:function(e,n){return ol(4,2,e,n)},useMemo:function(e,n){var t=yn();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=yn();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=ef.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var n=yn();return e={current:e},n.memoizedState=e},useState:vs,useDebugValue:Qo,useDeferredValue:function(e){return yn().memoizedState=e},useTransition:function(){var e=vs(!1),n=e[0];return e=bc.bind(null,e[1]),yn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=se,l=yn();if(ie){if(t===void 0)throw Error(m(407));t=t()}else{if(t=n(),xe===null)throw Error(m(349));tt&30||fs(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,gs(ps.bind(null,r,o,e),[e]),r.flags|=2048,fr(9,ds.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=yn(),n=xe.identifierPrefix;if(ie){var t=En,r=xn;t=(r&~(1<<32-ln(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=ar++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(t,{is:r.is}):(e=i.createElement(t),t==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,t),e[hn]=n,e[tr]=r,Xs(e,n,!1,!1),n.stateNode=e;e:{switch(i=Ml(t,r),t){case"dialog":ee("cancel",e),ee("close",e),l=r;break;case"iframe":case"object":case"embed":ee("load",e),l=r;break;case"video":case"audio":for(l=0;lLt&&(n.flags|=128,r=!0,dr(o,!1),n.lanes=4194304)}else{if(!r)if(e=tl(i),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),dr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!ie)return ze(n),null}else 2*de()-o.renderingStartTime>Lt&&t!==1073741824&&(n.flags|=128,r=!0,dr(o,!1),n.lanes=4194304);o.isBackwards?(i.sibling=n.child,n.child=i):(t=o.last,t!==null?t.sibling=i:n.child=i,o.last=i)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=de(),n.sibling=null,t=ue.current,b(ue,r?t&1|2:t&1),n):(ze(n),null);case 22:case 23:return hi(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?Ge&1073741824&&(ze(n),n.subtreeFlags&6&&(n.flags|=8192)):ze(n),null;case 24:return null;case 25:return null}throw Error(m(156,n.tag))}function ff(e,n){switch(_o(n),n.tag){case 1:return Fe(n.type)&&Qr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Pt(),ne(Me),ne(Ne),Fo(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return Io(n),null;case 13:if(ne(ue),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(m(340));Et()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return ne(ue),null;case 4:return Pt(),null;case 10:return Ro(n.type._context),null;case 22:case 23:return hi(),null;case 24:return null;default:return null}}var fl=!1,Te=!1,df=typeof WeakSet=="function"?WeakSet:Set,E=null;function Tt(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){ce(e,n,r)}else t.current=null}function ri(e,n,t){try{t()}catch(r){ce(e,n,r)}}var qs=!1;function pf(e,n){if(ho=Lr,e=Ru(),io(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,o=r.focusNode;r=r.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var i=0,u=-1,s=-1,p=0,y=0,g=e,h=null;n:for(;;){for(var S;g!==t||l!==0&&g.nodeType!==3||(u=i+l),g!==o||r!==0&&g.nodeType!==3||(s=i+r),g.nodeType===3&&(i+=g.nodeValue.length),(S=g.firstChild)!==null;)h=g,g=S;for(;;){if(g===e)break n;if(h===t&&++p===l&&(u=i),h===o&&++y===r&&(s=i),(S=g.nextSibling)!==null)break;g=h,h=g.parentNode}g=S}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(vo={focusedElem:e,selectionRange:t},Lr=!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 C=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var N=C.memoizedProps,pe=C.memoizedState,f=n.stateNode,a=f.getSnapshotBeforeUpdate(n.elementType===n.type?N:sn(n.type,N),pe);f.__reactInternalSnapshotBeforeUpdate=a}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(m(163))}}catch(w){ce(n,n.return,w)}if(e=n.sibling,e!==null){e.return=n.return,E=e;break}E=n.return}return C=qs,qs=!1,C}function pr(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 o=l.destroy;l.destroy=void 0,o!==void 0&&ri(n,t,o)}l=l.next}while(l!==r)}}function dl(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 li(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 bs(e){var n=e.alternate;n!==null&&(e.alternate=null,bs(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[hn],delete n[tr],delete n[ko],delete n[Gc],delete n[Xc])),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 ea(e){return e.tag===5||e.tag===3||e.tag===4}function na(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ea(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 oi(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=Wr));else if(r!==4&&(e=e.child,e!==null))for(oi(e,n,t),e=e.sibling;e!==null;)oi(e,n,t),e=e.sibling}function ii(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(ii(e,n,t),e=e.sibling;e!==null;)ii(e,n,t),e=e.sibling}var _e=null,an=!1;function Vn(e,n,t){for(t=t.child;t!==null;)ta(e,n,t),t=t.sibling}function ta(e,n,t){if(mn&&typeof mn.onCommitFiberUnmount=="function")try{mn.onCommitFiberUnmount(Cr,t)}catch{}switch(t.tag){case 5:Te||Tt(t,n);case 6:var r=_e,l=an;_e=null,Vn(e,n,t),_e=r,an=l,_e!==null&&(an?(e=_e,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):_e.removeChild(t.stateNode));break;case 18:_e!==null&&(an?(e=_e,t=t.stateNode,e.nodeType===8?wo(e.parentNode,t):e.nodeType===1&&wo(e,t),Qt(e)):wo(_e,t.stateNode));break;case 4:r=_e,l=an,_e=t.stateNode.containerInfo,an=!0,Vn(e,n,t),_e=r,an=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 o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&ri(t,n,i),l=l.next}while(l!==r)}Vn(e,n,t);break;case 1:if(!Te&&(Tt(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){ce(t,n,u)}Vn(e,n,t);break;case 21:Vn(e,n,t);break;case 22:t.mode&1?(Te=(r=Te)||t.memoizedState!==null,Vn(e,n,t),Te=r):Vn(e,n,t);break;default:Vn(e,n,t)}}function ra(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new df),n.forEach(function(r){var l=xf.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function cn(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=de()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hf(r/1960))-r,10e?16:e,Wn===null)var r=!1;else{if(e=Wn,Wn=null,yl=0,U&6)throw Error(m(331));var l=U;for(U|=4,E=e.current;E!==null;){var o=E,i=o.child;if(E.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sde()-ai?ot(e,0):si|=t),Be(e,n)}function va(e,n){n===0&&(e.mode&1?(n=Pr,Pr<<=1,!(Pr&130023424)&&(Pr=4194304)):n=1);var t=Oe();e=_n(e,n),e!==null&&(Bt(e,n,t),Be(e,t))}function Sf(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),va(e,t)}function xf(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(m(314))}r!==null&&r.delete(n),va(e,t)}var ya;ya=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||Me.current)Ue=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return Ue=!1,af(e,n,t);Ue=!!(e.flags&131072)}else Ue=!1,ie&&n.flags&1048576&&Zu(n,Xr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;cl(e,n),e=n.pendingProps;var l=kt(n,Ne.current);Nt(n,t),l=Bo(null,n,r,e,l,t);var o=Vo();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)?(o=!0,Kr(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Oo(n),l.updater=sl,n.stateNode=l,l._reactInternals=n,Yo(n,r,e,t),n=Jo(null,n,r,!0,o,t)):(n.tag=0,ie&&o&&Eo(n),je(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(cl(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=_f(r),e=sn(r,e),l){case 0:n=Zo(null,n,r,e,t);break e;case 1:n=Ws(null,n,r,e,t);break e;case 11:n=Us(null,n,r,e,t);break e;case 14:n=As(null,n,r,sn(r.type,e),t);break e}throw Error(m(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:sn(r,l),Zo(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:sn(r,l),Ws(e,n,r,l,t);case 3:e:{if($s(n),e===null)throw Error(m(387));r=n.pendingProps,o=n.memoizedState,l=o.element,os(e,n),nl(n,r,null,t);var i=n.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},n.updateQueue.baseState=o,n.memoizedState=o,n.flags&256){l=zt(Error(m(423)),n),n=Qs(e,n,r,t,l);break e}else if(r!==l){l=zt(Error(m(424)),n),n=Qs(e,n,r,t,l);break e}else for(Ye=In(n.stateNode.containerInfo.firstChild),Ke=n,ie=!0,un=null,t=rs(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Et(),r===l){n=Nn(e,n,t);break e}je(e,n,r,t)}n=n.child}return n;case 5:return ss(n),e===null&&No(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,yo(r,l)?i=null:o!==null&&yo(r,o)&&(n.flags|=32),Hs(e,n),je(e,n,i,t),n.child;case 6:return e===null&&No(n),null;case 13:return Ks(e,n,t);case 4:return Do(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=_t(n,null,r,t):je(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:sn(r,l),Us(e,n,r,l,t);case 7:return je(e,n,n.pendingProps,t),n.child;case 8:return je(e,n,n.pendingProps.children,t),n.child;case 12:return je(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,o=n.memoizedProps,i=l.value,b(qr,r._currentValue),r._currentValue=i,o!==null)if(on(o.value,i)){if(o.children===l.children&&!Me.current){n=Nn(e,n,t);break e}}else for(o=n.child,o!==null&&(o.return=n);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Cn(-1,t&-t),s.tag=2;var p=o.updateQueue;if(p!==null){p=p.shared;var y=p.pending;y===null?s.next=s:(s.next=y.next,y.next=s),p.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),Lo(o.return,t,n),u.lanes|=t;break}s=s.next}}else if(o.tag===10)i=o.type===n.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(m(341));i.lanes|=t,u=i.alternate,u!==null&&(u.lanes|=t),Lo(i,t,n),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===n){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}je(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Nt(n,t),l=qe(l),r=r(l),n.flags|=1,je(e,n,r,t),n.child;case 14:return r=n.type,l=sn(r,n.pendingProps),l=sn(r.type,l),As(e,n,r,l,t);case 15:return Bs(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:sn(r,l),cl(e,n),n.tag=1,Fe(r)?(e=!0,Kr(n)):e=!1,Nt(n,t),Ls(n,r,l),Yo(n,r,l,t),Jo(null,n,r,!0,e,t);case 19:return Gs(e,n,t);case 22:return Vs(e,n,t)}throw Error(m(156,n.tag))};function ga(e,n){return Ji(e,n)}function Ef(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 nn(e,n,t,r){return new Ef(e,n,t,r)}function yi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _f(e){if(typeof e=="function")return yi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===dn)return 11;if(e===pn)return 14}return 2}function Kn(e,n){var t=e.alternate;return t===null?(t=nn(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 Sl(e,n,t,r,l,o){var i=2;if(r=e,typeof e=="function")yi(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case De:return ut(t.children,l,o,n);case Xe:i=8,l|=8;break;case zn:return e=nn(12,t,n,l|2),e.elementType=zn,e.lanes=o,e;case We:return e=nn(13,t,n,l),e.elementType=We,e.lanes=o,e;case rn:return e=nn(19,t,n,l),e.elementType=rn,e.lanes=o,e;case ae:return xl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wn:i=10;break e;case Gn:i=9;break e;case dn:i=11;break e;case pn:i=14;break e;case Ie:i=16,r=null;break e}throw Error(m(130,e==null?e:typeof e,""))}return n=nn(i,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function ut(e,n,t,r){return e=nn(7,e,r,n),e.lanes=t,e}function xl(e,n,t,r){return e=nn(22,e,r,n),e.elementType=ae,e.lanes=t,e.stateNode={isHidden:!1},e}function gi(e,n,t){return e=nn(6,e,null,n),e.lanes=t,e}function wi(e,n,t){return n=nn(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Cf(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=Ql(0),this.expirationTimes=Ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ql(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ki(e,n,t,r,l,o,i,u,s){return e=new Cf(e,n,t,u,s),n===1?(n=1,o===!0&&(n|=8)):n=0,o=nn(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(o),e}function Nf(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(x)}catch(O){console.error(O)}}return x(),Ni.exports=Ff(),Ni.exports}var ja;function Af(){if(ja)return Tl;ja=1;var x=Uf();return Tl.createRoot=x.createRoot,Tl.hydrateRoot=x.hydrateRoot,Tl}var Bf=Af();const Vf=Da(Bf);function Hf(x){const O=x==0?0:Math.floor(Math.log(x)/Math.log(1024));return+(x/Math.pow(1024,O)).toFixed(2)*1+["B","kB","MB","GB","TB"][O]}function Wf({text:x,percentage:O,total:m}){return O??(O=0),P.jsx("div",{className:"w-full bg-gray-100 dark:bg-gray-700 text-left rounded-lg overflow-hidden mb-0.5",children:P.jsxs("div",{className:"bg-blue-400 whitespace-nowrap px-1 text-sm",style:{width:`${O}%`},children:[x," (",O.toFixed(2),"%",isNaN(m)?"":` of ${Hf(m)}`,")"]})})}const Oa="https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/beetle.png",$f=({onImageChange:x,...O})=>{const[m,ve]=He.useState(null),F=He.useRef(null),Q=$=>{if(!$)return;const A=new FileReader;A.onloadend=()=>{ve(A.result),x&&x($,A.result)},A.readAsDataURL($)},te=$=>{Q($.target.files[0])},K=$=>{$.preventDefault()},W=$=>{$.preventDefault(),Q($.dataTransfer.files[0])},fe=()=>{F.current.click()};return P.jsxs("div",{...O,onClick:fe,onDragOver:K,onDrop:W,children:[P.jsx("input",{type:"file",accept:"image/*",onChange:te,ref:F,className:"hidden"}),m?P.jsx("img",{src:m,alt:"Selected",className:"w-full max-h-[250px] h-full object-contain rounded-md"}):P.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center border-2 border-dashed border-gray-300 rounded-md",children:[P.jsxs("span",{className:"text-gray-600 text-center m-3",children:[P.jsx("u",{children:"Drag & drop"})," or ",P.jsx("u",{children:"click"}),P.jsx("br",{}),"to select an image"]}),P.jsxs("span",{className:"text-gray-500 text-sm hover:text-gray-800 dark:hover:text-gray-300",onClick:$=>{$.stopPropagation(),ve(Oa),x(null,Oa)},children:["(or ",P.jsx("u",{children:"try an example"}),")"]})]})]})},Qf=!!navigator.gpu;function Kf(){const x=He.useRef(null),[O,m]=He.useState(null),[ve,F]=He.useState(""),[Q,te]=He.useState([]),[K,W]=He.useState(""),[fe,$]=He.useState(""),[A,J]=He.useState(null),[ye,Re]=He.useState(null),[Z,Y]=He.useState(null);He.useEffect(()=>{x.current??(x.current=new Worker(new URL("/assets/worker-BtBhAyws.js",import.meta.url),{type:"module"}));const me=re=>{switch(re.data.status){case"loading":m("loading"),F(re.data.data);break;case"initiate":te(le=>[...le,re.data]);break;case"progress":te(le=>le.map(ge=>ge.file===re.data.file?{...ge,...re.data}:ge));break;case"done":te(le=>le.filter(ge=>ge.file!==re.data.file));break;case"ready":m("ready");break;case"complete":Re(re.data.result),Y(re.data.time),m("ready");break}};return x.current.addEventListener("message",me),()=>{x.current.removeEventListener("message",me)}},[]);const tn=He.useCallback(()=>{O===null?(m("loading"),x.current.postMessage({type:"load"})):(m("running"),x.current.postMessage({type:"run",data:{text:fe,url:A,task:K}}))},[O,K,A,fe]);return Qf?P.jsx("div",{className:"h-screen w-screen text-gray-800 dark:text-gray-200 bg-white dark:bg-gray-900",children:P.jsxs("div",{className:"flex flex-col mx-auto items justify-end max-w-[630px] h-full",children:[O==="loading"&&P.jsx("div",{className:"flex justify-center items-center fixed w-screen h-screen bg-black z-10 bg-opacity-[92%] top-0 left-0",children:P.jsxs("div",{className:"w-[500px]",children:[P.jsx("p",{className:"text-center mb-1 text-white text-md",children:ve}),Q.map(({file:me,progress:re,total:le},ge)=>P.jsx(Wf,{text:me,percentage:re,total:le},ge))]})}),P.jsxs("div",{className:"h-full overflow-auto scrollbar-thin flex justify-center items-center flex-col relative",children:[P.jsxs("div",{className:"flex flex-col items-center mb-1 text-center",children:[P.jsx("h1",{className:"text-6xl font-bold mb-2",children:"Florence-2 WebGPU"}),P.jsx("h2",{className:"text-xl font-semibold",children:"Powerful vision foundation model running locally in your browser."})]}),P.jsxs("div",{className:"w-full min-h-[220px] flex flex-col justify-center items-center p-2",children:[P.jsxs("p",{className:"mb-2",children:["You are about to download"," ",P.jsx("a",{href:"https://huggingface.co/onnx-community/Florence-2-base-ft",target:"_blank",rel:"noreferrer",className:"font-medium underline",children:"Florence-2-base-ft"}),", a 230 million parameter vision foundation model that uses a prompt-based approach to handle a wide range of vision and vision-language tasks like captioning, object detection, and segmentation. Once loaded, the model (340 MB) will be cached and reused when you revisit the page.",P.jsx("br",{}),P.jsx("br",{}),"Everything runs locally in your browser using"," ",P.jsx("a",{href:"https://huggingface.co/docs/transformers.js",target:"_blank",rel:"noreferrer",className:"underline",children:"🤗 Transformers.js"})," ","and ONNX Runtime Web, meaning no API calls are made to a server for inference. You can even disconnect from the internet after the model has loaded!"]}),P.jsxs("div",{className:"flex w-full justify-around m-4",children:[P.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-[48%]",children:[P.jsxs("div",{className:"flex flex-col",children:[P.jsx("span",{className:"text-sm mb-0.5",children:"Task"}),P.jsxs("select",{className:"border rounded-md p-1 dark:bg-gray-800",value:K,onChange:me=>W(me.target.value),children:[P.jsx("option",{value:"",children:"Caption"}),P.jsx("option",{value:"",children:"Detailed Caption"}),P.jsx("option",{value:"",children:"More Detailed Caption"}),P.jsx("option",{value:"",children:"OCR"}),P.jsx("option",{value:"",children:"OCR with Region"}),P.jsx("option",{value:"",children:"Object Detection"}),P.jsx("option",{value:"",children:"Dense Region Caption"}),P.jsx("option",{value:"",children:"Caption to Phrase Grounding"})]})]}),P.jsxs("div",{className:"flex flex-col",children:[P.jsx("span",{className:"text-sm mb-0.5",children:"Input Image"}),P.jsx($f,{className:"flex flex-col items-center border border-gray-300 rounded-md cursor-pointer h-[250px]",onImageChange:(me,re)=>{x.current.postMessage({type:"reset"}),Re(null),J(re)}})]})]}),P.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-[48%] justify-end",children:[K===""&&P.jsxs("div",{className:"flex flex-col",children:[P.jsx("span",{className:"text-sm mb-0.5",children:"Text input"}),P.jsx("input",{className:"border rounded-md px-2 py-[3.5px]",value:fe,onChange:me=>$(me.target.value)})]}),P.jsxs("div",{className:"flex flex-col relative",children:[P.jsx("span",{className:"text-sm mb-0.5",children:"Output"}),P.jsx("div",{className:"flex justify-center border border-gray-300 rounded-md h-[250px]",children:(ye==null?void 0:ye[K])&&P.jsxs(P.Fragment,{children:[typeof ye[K]=="string"?P.jsx("p",{className:"pt-4 px-4 text-center max-h-[205px] overflow-y-auto",children:ye[K]}):P.jsx("pre",{className:"w-full h-full p-2 overflow-y-auto",children:JSON.stringify(ye[K],null,2)}),Z&&P.jsxs("p",{className:"text-sm text-gray-500 absolute bottom-2 bg-white p-1 rounded border",children:["Execution time: ",Z.toFixed(2)," ms"]})]})})]})]})]}),P.jsx("button",{className:"border px-4 py-2 rounded-lg bg-blue-400 text-white hover:bg-blue-500 disabled:bg-blue-100 disabled:cursor-not-allowed select-none cursor-pointer",onClick:tn,disabled:O==="running"||O!==null&&A===null,children:O===null?"Load model":O==="running"?"Running...":"Run model"})]})]})]})}):P.jsxs("div",{className:"fixed w-screen h-screen bg-black z-10 bg-opacity-[92%] text-white text-2xl font-semibold flex justify-center items-center text-center",children:["WebGPU is not supported",P.jsx("br",{}),"by this browser :("]})}Vf.createRoot(document.getElementById("root")).render(P.jsx(Df.StrictMode,{children:P.jsx(Kf,{})}));