diff --git a/assets/index-09ee31c4.js b/assets/index-09ee31c4.js new file mode 100644 index 0000000..203f6be --- /dev/null +++ b/assets/index-09ee31c4.js @@ -0,0 +1,40 @@ +(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function t(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=t(l);fetch(l.href,o)}})();function Gu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zu={exports:{}},nl={},Ju={exports:{}},T={};/** + * @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 Gt=Symbol.for("react.element"),Ec=Symbol.for("react.portal"),xc=Symbol.for("react.fragment"),Cc=Symbol.for("react.strict_mode"),_c=Symbol.for("react.profiler"),Nc=Symbol.for("react.provider"),Pc=Symbol.for("react.context"),zc=Symbol.for("react.forward_ref"),Tc=Symbol.for("react.suspense"),Lc=Symbol.for("react.memo"),Rc=Symbol.for("react.lazy"),Fi=Symbol.iterator;function Oc(e){return e===null||typeof e!="object"?null:(e=Fi&&e[Fi]||e["@@iterator"],typeof e=="function"?e:null)}var qu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bu=Object.assign,es={};function it(e,n,t){this.props=e,this.context=n,this.refs=es,this.updater=t||qu}it.prototype.isReactComponent={};it.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,n,"setState")};it.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ns(){}ns.prototype=it.prototype;function Bo(e,n,t){this.props=e,this.context=n,this.refs=es,this.updater=t||qu}var Vo=Bo.prototype=new ns;Vo.constructor=Bo;bu(Vo,it.prototype);Vo.isPureReactComponent=!0;var Ui=Array.isArray,ts=Object.prototype.hasOwnProperty,Wo={current:null},rs={key:!0,ref:!0,__self:!0,__source:!0};function ls(e,n,t){var r,l={},o=null,i=null;if(n!=null)for(r in n.ref!==void 0&&(i=n.ref),n.key!==void 0&&(o=""+n.key),n)ts.call(n,r)&&!rs.hasOwnProperty(r)&&(l[r]=n[r]);var u=arguments.length-2;if(u===1)l.children=t;else if(1>>1,G=x[H];if(0>>1;Hl(wl,z))wnl(nr,wl)?(x[H]=nr,x[wn]=z,H=wn):(x[H]=wl,x[gn]=z,H=gn);else if(wnl(nr,z))x[H]=nr,x[wn]=z,H=wn;else break e}}return P}function l(x,P){var z=x.sortIndex-P.sortIndex;return z!==0?z:x.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],m=1,h=null,p=3,g=!1,w=!1,k=!1,I=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(x){for(var P=t(a);P!==null;){if(P.callback===null)r(a);else if(P.startTime<=x)r(a),P.sortIndex=P.expirationTime,n(s,P);else break;P=t(a)}}function v(x){if(k=!1,d(x),!w)if(t(s)!==null)w=!0,yl(E);else{var P=t(a);P!==null&&gl(v,P.startTime-x)}}function E(x,P){w=!1,k&&(k=!1,f(N),N=-1),g=!0;var z=p;try{for(d(P),h=t(s);h!==null&&(!(h.expirationTime>P)||x&&!Pe());){var H=h.callback;if(typeof H=="function"){h.callback=null,p=h.priorityLevel;var G=H(h.expirationTime<=P);P=e.unstable_now(),typeof G=="function"?h.callback=G:h===t(s)&&r(s),d(P)}else r(s);h=t(s)}if(h!==null)var er=!0;else{var gn=t(a);gn!==null&&gl(v,gn.startTime-P),er=!1}return er}finally{h=null,p=z,g=!1}}var C=!1,_=null,N=-1,W=5,L=-1;function Pe(){return!(e.unstable_now()-Lx||125H?(x.sortIndex=z,n(a,x),t(s)===null&&x===t(a)&&(k?(f(N),N=-1):k=!0,gl(v,z-H))):(x.sortIndex=G,n(s,x),w||g||(w=!0,yl(E))),x},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(x){var P=p;return function(){var z=p;p=P;try{return x.apply(this,arguments)}finally{p=z}}}})(as);ss.exports=as;var Wc=ss.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 cs=Ue,ge=Wc;function y(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"),Xl=Object.prototype.hasOwnProperty,Hc=/^[: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]*$/,$i={},Bi={};function Qc(e){return Xl.call(Bi,e)?!0:Xl.call($i,e)?!1:Hc.test(e)?Bi[e]=!0:($i[e]=!0,!1)}function Kc(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 Yc(e,n,t,r){if(n===null||typeof n>"u"||Kc(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 ae(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 ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ne[e]=new ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];ne[n]=new ae(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ne[e]=new ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ne[e]=new ae(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){ne[e]=new ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ne[e]=new ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ne[e]=new ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ne[e]=new ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ne[e]=new ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qo=/[\-:]([a-z])/g;function Ko(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(Qo,Ko);ne[n]=new ae(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(Qo,Ko);ne[n]=new ae(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(Qo,Ko);ne[n]=new ae(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ne[e]=new ae(e,1,!1,e.toLowerCase(),null,!1,!1)});ne.xlinkHref=new ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ne[e]=new ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yo(e,n,t,r){var l=ne.hasOwnProperty(n)?ne[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{El=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?wt(e):""}function Xc(e){switch(e.tag){case 5:return wt(e.type);case 16:return wt("Lazy");case 13:return wt("Suspense");case 19:return wt("SuspenseList");case 0:case 2:case 15:return e=xl(e.type,!1),e;case 11:return e=xl(e.type.render,!1),e;case 1:return e=xl(e.type,!0),e;default:return""}}function ql(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 Dn:return"Fragment";case jn:return"Portal";case Gl:return"Profiler";case Xo:return"StrictMode";case Zl:return"Suspense";case Jl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ps:return(e.displayName||"Context")+".Consumer";case ds:return(e._context.displayName||"Context")+".Provider";case Go:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zo:return n=e.displayName||null,n!==null?n:ql(e.type)||"Memo";case qe:n=e._payload,e=e._init;try{return ql(e(n))}catch{}}return null}function Gc(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 ql(n);case 8:return n===Xo?"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 pn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hs(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Zc(e){var n=hs(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 lr(e){e._valueTracker||(e._valueTracker=Zc(e))}function vs(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=hs(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Rr(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 bl(e,n){var t=n.checked;return B({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Wi(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=pn(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 ys(e,n){n=n.checked,n!=null&&Yo(e,"checked",n,!1)}function eo(e,n){ys(e,n);var t=pn(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")?no(e,n.type,t):n.hasOwnProperty("defaultValue")&&no(e,n.type,pn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Hi(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 no(e,n,t){(n!=="number"||Rr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var kt=Array.isArray;function Yn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function It(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var xt={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},Jc=["Webkit","ms","Moz","O"];Object.keys(xt).forEach(function(e){Jc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),xt[n]=xt[e]})});function Ss(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||xt.hasOwnProperty(e)&&xt[e]?(""+n).trim():n+"px"}function Es(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=Ss(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var qc=B({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 lo(e,n){if(n){if(qc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(y(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(y(61))}if(n.style!=null&&typeof n.style!="object")throw Error(y(62))}}function oo(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 io=null;function Jo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var uo=null,Xn=null,Gn=null;function Yi(e){if(e=qt(e)){if(typeof uo!="function")throw Error(y(280));var n=e.stateNode;n&&(n=il(n),uo(e.stateNode,e.type,n))}}function xs(e){Xn?Gn?Gn.push(e):Gn=[e]:Xn=e}function Cs(){if(Xn){var e=Xn,n=Gn;if(Gn=Xn=null,Yi(e),n)for(e=0;e>>=0,e===0?32:31-(cf(e)/ff|0)|0}var ir=64,ur=4194304;function St(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 jr(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=St(u):(o&=i,o!==0&&(r=St(o)))}else i=t&~l,i!==0?r=St(i):o!==0&&(r=St(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 Zt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Oe(n),e[n]=t}function hf(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=_t),tu=String.fromCharCode(32),ru=!1;function Hs(e,n){switch(e){case"keyup":return Wf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fn=!1;function Qf(e,n){switch(e){case"compositionend":return Qs(n);case"keypress":return n.which!==32?null:(ru=!0,tu);case"textInput":return e=n.data,e===tu&&ru?null:e;default:return null}}function Kf(e,n){if(Fn)return e==="compositionend"||!oi&&Hs(e,n)?(e=Vs(),Er=ti=tn=null,Fn=!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=uu(t)}}function Gs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Gs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Zs(){for(var e=window,n=Rr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Rr(e.document)}return n}function ii(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 nd(e){var n=Zs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Gs(t.ownerDocument.documentElement,t)){if(r!==null&&ii(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=su(t,o);var i=su(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,Un=null,mo=null,Pt=null,ho=!1;function au(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;ho||Un==null||Un!==Rr(r)||(r=Un,"selectionStart"in r&&ii(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}),Pt&&At(Pt,r)||(Pt=r,r=Ur(mo,"onSelect"),0Bn||(e.current=So[Bn],So[Bn]=null,Bn--)}function M(e,n){Bn++,So[Bn]=e.current,e.current=n}var mn={},oe=vn(mn),de=vn(!1),Pn=mn;function et(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={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function $r(){F(de),F(oe)}function vu(e,n,t){if(oe.current!==mn)throw Error(y(168));M(oe,n),M(de,t)}function oa(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(y(108,Gc(e)||"Unknown",l));return B({},t,r)}function Br(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mn,Pn=oe.current,M(oe,e),M(de,de.current),!0}function yu(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=oa(e,n,Pn),r.__reactInternalMemoizedMergedChildContext=e,F(de),F(oe),M(oe,e)):F(de),M(de,t)}var Ve=null,ul=!1,Fl=!1;function ia(e){Ve===null?Ve=[e]:Ve.push(e)}function pd(e){ul=!0,ia(e)}function yn(){if(!Fl&&Ve!==null){Fl=!0;var e=0,n=O;try{var t=Ve;for(O=1;e>=i,l-=i,We=1<<32-Oe(n)+l|t<N?(W=_,_=null):W=_.sibling;var L=p(f,_,d[N],v);if(L===null){_===null&&(_=W);break}e&&_&&L.alternate===null&&n(f,_),c=o(L,c,N),C===null?E=L:C.sibling=L,C=L,_=W}if(N===d.length)return t(f,_),U&&kn(f,N),E;if(_===null){for(;NN?(W=_,_=null):W=_.sibling;var Pe=p(f,_,L.value,v);if(Pe===null){_===null&&(_=W);break}e&&_&&Pe.alternate===null&&n(f,_),c=o(Pe,c,N),C===null?E=Pe:C.sibling=Pe,C=Pe,_=W}if(L.done)return t(f,_),U&&kn(f,N),E;if(_===null){for(;!L.done;N++,L=d.next())L=h(f,L.value,v),L!==null&&(c=o(L,c,N),C===null?E=L:C.sibling=L,C=L);return U&&kn(f,N),E}for(_=r(f,_);!L.done;N++,L=d.next())L=g(_,f,N,L.value,v),L!==null&&(e&&L.alternate!==null&&_.delete(L.key===null?N:L.key),c=o(L,c,N),C===null?E=L:C.sibling=L,C=L);return e&&_.forEach(function(at){return n(f,at)}),U&&kn(f,N),E}function I(f,c,d,v){if(typeof d=="object"&&d!==null&&d.type===Dn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case rr:e:{for(var E=d.key,C=c;C!==null;){if(C.key===E){if(E=d.type,E===Dn){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===E||typeof E=="object"&&E!==null&&E.$$typeof===qe&&Cu(E)===C.type){t(f,C.sibling),c=l(C,d.props),c.ref=vt(f,C,d),c.return=f,f=c;break e}t(f,C);break}else n(f,C);C=C.sibling}d.type===Dn?(c=Nn(d.props.children,f.mode,v,d.key),c.return=f,f=c):(v=Lr(d.type,d.key,d.props,null,f.mode,v),v.ref=vt(f,c,d),v.return=f,f=v)}return i(f);case jn: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=Ql(d,f.mode,v),c.return=f,f=c}return i(f);case qe:return C=d._init,I(f,c,C(d._payload),v)}if(kt(d))return w(f,c,d,v);if(ft(d))return k(f,c,d,v);mr(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=Hl(d,f.mode,v),c.return=f,f=c),i(f)):t(f,c)}return I}var tt=ma(!0),ha=ma(!1),bt={},$e=vn(bt),Wt=vn(bt),Ht=vn(bt);function Cn(e){if(e===bt)throw Error(y(174));return e}function hi(e,n){switch(M(Ht,n),M(Wt,e),M($e,bt),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ro(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=ro(n,e)}F($e),M($e,n)}function rt(){F($e),F(Wt),F(Ht)}function va(e){Cn(Ht.current);var n=Cn($e.current),t=ro(n,e.type);n!==t&&(M(Wt,e),M($e,t))}function vi(e){Wt.current===e&&(F($e),F(Wt))}var A=vn(0);function Yr(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Ul=[];function yi(){for(var e=0;et?t:4,e(!0);var r=Al.transition;Al.transition={};try{e(!1),n()}finally{O=t,Al.transition=r}}function Oa(){return Ne().memoizedState}function yd(e,n,t){var r=fn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ia(e))Ma(n,t);else if(t=ca(e,n,t,r),t!==null){var l=ue();Ie(t,e,r,l),ja(t,n,r)}}function gd(e,n,t){var r=fn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ia(e))Ma(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,Me(u,i)){var s=n.interleaved;s===null?(l.next=l,pi(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=ca(e,n,l,r),t!==null&&(l=ue(),Ie(t,e,r,l),ja(t,n,r))}}function Ia(e){var n=e.alternate;return e===$||n!==null&&n===$}function Ma(e,n){zt=Xr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function ja(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,bo(e,t)}}var Gr={readContext:_e,useCallback:te,useContext:te,useEffect:te,useImperativeHandle:te,useInsertionEffect:te,useLayoutEffect:te,useMemo:te,useReducer:te,useRef:te,useState:te,useDebugValue:te,useDeferredValue:te,useTransition:te,useMutableSource:te,useSyncExternalStore:te,useId:te,unstable_isNewReconciler:!1},wd={readContext:_e,useCallback:function(e,n){return De().memoizedState=[e,n===void 0?null:n],e},useContext:_e,useEffect:Nu,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Nr(4194308,4,Pa.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Nr(4194308,4,e,n)},useInsertionEffect:function(e,n){return Nr(4,2,e,n)},useMemo:function(e,n){var t=De();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=De();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=yd.bind(null,$,e),[r.memoizedState,e]},useRef:function(e){var n=De();return e={current:e},n.memoizedState=e},useState:_u,useDebugValue:Ei,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=_u(!1),n=e[0];return e=vd.bind(null,e[1]),De().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=$,l=De();if(U){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),q===null)throw Error(y(349));Tn&30||wa(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,Nu(Sa.bind(null,r,o,e),[e]),r.flags|=2048,Yt(9,ka.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=De(),n=q.identifierPrefix;if(U){var t=He,r=We;t=(r&~(1<<32-Oe(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Qt++,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[Fe]=n,e[Vt]=r,Ha(e,n,!1,!1),n.stateNode=e;e:{switch(i=oo(t,r),t){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;lot&&(n.flags|=128,r=!0,yt(o,!1),n.lanes=4194304)}else{if(!r)if(e=Yr(i),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),yt(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!U)return re(n),null}else 2*Q()-o.renderingStartTime>ot&&t!==1073741824&&(n.flags|=128,r=!0,yt(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=Q(),n.sibling=null,t=A.current,M(A,r?t&1|2:t&1),n):(re(n),null);case 22:case 23:return zi(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?he&1073741824&&(re(n),n.subtreeFlags&6&&(n.flags|=8192)):re(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function Pd(e,n){switch(si(n),n.tag){case 1:return pe(n.type)&&$r(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return rt(),F(de),F(oe),yi(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return vi(n),null;case 13:if(F(A),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));nt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return F(A),null;case 4:return rt(),null;case 10:return di(n.type._context),null;case 22:case 23:return zi(),null;case 24:return null;default:return null}}var vr=!1,le=!1,zd=typeof WeakSet=="function"?WeakSet:Set,S=null;function Qn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){V(e,n,r)}else t.current=null}function Io(e,n,t){try{t()}catch(r){V(e,n,r)}}var ju=!1;function Td(e,n){if(vo=Dr,e=Zs(),ii(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,a=0,m=0,h=e,p=null;n:for(;;){for(var g;h!==t||l!==0&&h.nodeType!==3||(u=i+l),h!==o||r!==0&&h.nodeType!==3||(s=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(g=h.firstChild)!==null;)p=h,h=g;for(;;){if(h===e)break n;if(p===t&&++a===l&&(u=i),p===o&&++m===r&&(s=i),(g=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=g}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(yo={focusedElem:e,selectionRange:t},Dr=!1,S=n;S!==null;)if(n=S,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,S=e;else for(;S!==null;){n=S;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 k=w.memoizedProps,I=w.memoizedState,f=n.stateNode,c=f.getSnapshotBeforeUpdate(n.elementType===n.type?k:Te(n.type,k),I);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(y(163))}}catch(v){V(n,n.return,v)}if(e=n.sibling,e!==null){e.return=n.return,S=e;break}S=n.return}return w=ju,ju=!1,w}function Tt(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&&Io(n,t,o)}l=l.next}while(l!==r)}}function cl(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 Mo(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 Ya(e){var n=e.alternate;n!==null&&(e.alternate=null,Ya(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Fe],delete n[Vt],delete n[ko],delete n[fd],delete n[dd])),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 Xa(e){return e.tag===5||e.tag===3||e.tag===4}function Du(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xa(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 jo(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=Ar));else if(r!==4&&(e=e.child,e!==null))for(jo(e,n,t),e=e.sibling;e!==null;)jo(e,n,t),e=e.sibling}function Do(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(Do(e,n,t),e=e.sibling;e!==null;)Do(e,n,t),e=e.sibling}var b=null,Le=!1;function Je(e,n,t){for(t=t.child;t!==null;)Ga(e,n,t),t=t.sibling}function Ga(e,n,t){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(tl,t)}catch{}switch(t.tag){case 5:le||Qn(t,n);case 6:var r=b,l=Le;b=null,Je(e,n,t),b=r,Le=l,b!==null&&(Le?(e=b,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):b.removeChild(t.stateNode));break;case 18:b!==null&&(Le?(e=b,t=t.stateNode,e.nodeType===8?Dl(e.parentNode,t):e.nodeType===1&&Dl(e,t),Ft(e)):Dl(b,t.stateNode));break;case 4:r=b,l=Le,b=t.stateNode.containerInfo,Le=!0,Je(e,n,t),b=r,Le=l;break;case 0:case 11:case 14:case 15:if(!le&&(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)&&Io(t,n,i),l=l.next}while(l!==r)}Je(e,n,t);break;case 1:if(!le&&(Qn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){V(t,n,u)}Je(e,n,t);break;case 21:Je(e,n,t);break;case 22:t.mode&1?(le=(r=le)||t.memoizedState!==null,Je(e,n,t),le=r):Je(e,n,t);break;default:Je(e,n,t)}}function Fu(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new zd),n.forEach(function(r){var l=Ud.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function ze(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Rd(r/1960))-r,10e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,qr=0,R&6)throw Error(y(331));var l=R;for(R|=4,S=e.current;S!==null;){var o=S,i=o.child;if(S.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sQ()-Ni?_n(e,0):_i|=t),me(e,n)}function rc(e,n){n===0&&(e.mode&1?(n=ur,ur<<=1,!(ur&130023424)&&(ur=4194304)):n=1);var t=ue();e=Xe(e,n),e!==null&&(Zt(e,n,t),me(e,t))}function Fd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),rc(e,t)}function Ud(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(y(314))}r!==null&&r.delete(n),rc(e,t)}var lc;lc=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||de.current)fe=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return fe=!1,_d(e,n,t);fe=!!(e.flags&131072)}else fe=!1,U&&n.flags&1048576&&ua(n,Wr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Pr(e,n),e=n.pendingProps;var l=et(n,oe.current);Jn(n,t),l=wi(null,n,r,e,l,t);var o=ki();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,pe(r)?(o=!0,Br(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,mi(n),l.updater=sl,n.stateNode=l,l._reactInternals=n,No(n,r,e,t),n=To(null,n,r,!0,o,t)):(n.tag=0,U&&o&&ui(n),ie(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Pr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=$d(r),e=Te(r,e),l){case 0:n=zo(null,n,r,e,t);break e;case 1:n=Ou(null,n,r,e,t);break e;case 11:n=Lu(null,n,r,e,t);break e;case 14:n=Ru(null,n,r,Te(r.type,e),t);break e}throw Error(y(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Te(r,l),zo(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Te(r,l),Ou(e,n,r,l,t);case 3:e:{if(Ba(n),e===null)throw Error(y(387));r=n.pendingProps,o=n.memoizedState,l=o.element,fa(e,n),Kr(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=lt(Error(y(423)),n),n=Iu(e,n,r,t,l);break e}else if(r!==l){l=lt(Error(y(424)),n),n=Iu(e,n,r,t,l);break e}else for(ve=sn(n.stateNode.containerInfo.firstChild),ye=n,U=!0,Re=null,t=ha(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(nt(),r===l){n=Ge(e,n,t);break e}ie(e,n,r,t)}n=n.child}return n;case 5:return va(n),e===null&&xo(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,go(r,l)?i=null:o!==null&&go(r,o)&&(n.flags|=32),$a(e,n),ie(e,n,i,t),n.child;case 6:return e===null&&xo(n),null;case 13:return Va(e,n,t);case 4:return hi(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=tt(n,null,r,t):ie(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Te(r,l),Lu(e,n,r,l,t);case 7:return ie(e,n,n.pendingProps,t),n.child;case 8:return ie(e,n,n.pendingProps.children,t),n.child;case 12:return ie(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,M(Hr,r._currentValue),r._currentValue=i,o!==null)if(Me(o.value,i)){if(o.children===l.children&&!de.current){n=Ge(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=Qe(-1,t&-t),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var m=a.pending;m===null?s.next=s:(s.next=m.next,m.next=s),a.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),Co(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(y(341));i.lanes|=t,u=i.alternate,u!==null&&(u.lanes|=t),Co(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}ie(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Jn(n,t),l=_e(l),r=r(l),n.flags|=1,ie(e,n,r,t),n.child;case 14:return r=n.type,l=Te(r,n.pendingProps),l=Te(r.type,l),Ru(e,n,r,l,t);case 15:return Ua(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Te(r,l),Pr(e,n),n.tag=1,pe(r)?(e=!0,Br(n)):e=!1,Jn(n,t),pa(n,r,l),No(n,r,l,t),To(null,n,r,!0,e,t);case 19:return Wa(e,n,t);case 22:return Aa(e,n,t)}throw Error(y(156,n.tag))};function oc(e,n){return Rs(e,n)}function Ad(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 xe(e,n,t,r){return new Ad(e,n,t,r)}function Li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $d(e){if(typeof e=="function")return Li(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Go)return 11;if(e===Zo)return 14}return 2}function dn(e,n){var t=e.alternate;return t===null?(t=xe(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 Lr(e,n,t,r,l,o){var i=2;if(r=e,typeof e=="function")Li(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Dn:return Nn(t.children,l,o,n);case Xo:i=8,l|=8;break;case Gl:return e=xe(12,t,n,l|2),e.elementType=Gl,e.lanes=o,e;case Zl:return e=xe(13,t,n,l),e.elementType=Zl,e.lanes=o,e;case Jl:return e=xe(19,t,n,l),e.elementType=Jl,e.lanes=o,e;case ms:return dl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ds:i=10;break e;case ps:i=9;break e;case Go:i=11;break e;case Zo:i=14;break e;case qe:i=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return n=xe(i,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function Nn(e,n,t,r){return e=xe(7,e,r,n),e.lanes=t,e}function dl(e,n,t,r){return e=xe(22,e,r,n),e.elementType=ms,e.lanes=t,e.stateNode={isHidden:!1},e}function Hl(e,n,t){return e=xe(6,e,null,n),e.lanes=t,e}function Ql(e,n,t){return n=xe(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Bd(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=_l(0),this.expirationTimes=_l(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_l(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ri(e,n,t,r,l,o,i,u,s){return e=new Bd(e,n,t,u,s),n===1?(n=1,o===!0&&(n|=8)):n=0,o=xe(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},mi(o),e}function Vd(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ac)}catch(e){console.error(e)}}ac(),us.exports=we;var Yd=us.exports,Qu=Yd;Yl.createRoot=Qu.createRoot,Yl.hydrateRoot=Qu.hydrateRoot;const Xd="_canvas_19vu5_1",Gd={canvas:Xd},Zd=(e,n)=>{const t=e.x,r=e.y,l=n.x,o=n.y;return Math.sqrt(Math.pow(t-l,2)+Math.pow(r-o,2))<=35},Jd=(e,n,t)=>e.x-n>=0&&e.y-n>=0&&e.x+n<=t.current.clientWidth&&e.y+n<=t.current.clientHeight,qd=(e,n,t)=>n.some(o=>Zd(o,e))?(console.log("New node is too close to an existing node."),!1):Jd(e,14,t)?!0:(console.log("New node is out of bounds."),!1),bd=(e,n)=>n.some(r=>r.firstNode.x===e.firstNode.x&&r.firstNode.y===e.firstNode.y&&r.secondNode.x===e.secondNode.x&&r.secondNode.y===e.secondNode.y||r.firstNode.x===e.secondNode.x&&r.firstNode.y===e.secondNode.y&&r.secondNode.x===e.firstNode.x&&r.secondNode.y===e.firstNode.y)?(console.log("An edge with the same coordinates already exists."),!1):!0;var cc={exports:{}},ep="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",np=ep,tp=np;function fc(){}function dc(){}dc.resetWarningCache=fc;var rp=function(){function e(r,l,o,i,u,s){if(s!==tp){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}e.isRequired=e;function n(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:dc,resetWarningCache:fc};return t.PropTypes=t,t};cc.exports=rp();var lp=cc.exports;const J=Gu(lp),ji=Ue.createContext(),op=()=>{const[e,n]=Ue.useState([]),[t,r]=Ue.useState([]);return{nodes:e,setNodes:n,edges:t,setEdges:r}},pc=({children:e})=>{const n=op();return j.jsx(ji.Provider,{value:n,children:e})};pc.propTypes={children:J.node.isRequired};const ip="_node_ds1ga_1",up="_circle_ds1ga_5",sp="_text_ds1ga_12",Kl={node:ip,circle:up,text:sp},mc=({id:e,cx:n,cy:t,onNodeClick:r})=>j.jsxs("g",{className:Kl.node,onClick:l=>r(l,{id:e,x:n,y:t}),children:[j.jsx("circle",{className:Kl.circle,id:e,cx:n,cy:t,r:"16"}),j.jsx("text",{id:Kl.text,x:n,y:t,textAnchor:"middle",dominantBaseline:"middle",children:e})]});mc.propTypes={onNodeClick:J.func.isRequired,id:J.number.isRequired,cx:J.number.isRequired,cy:J.number.isRequired};const hc=({nodes:e,onNodeClick:n})=>j.jsx(j.Fragment,{children:e.map(t=>j.jsx(mc,{id:t.id,cx:t.x,cy:t.y,onNodeClick:n},t.id))});hc.propTypes={nodes:J.array.isRequired,onNodeClick:J.func.isRequired};const ap="_line_13bl4_1",cp={line:ap},vc=({id:e,x1:n,y1:t,x2:r,y2:l,weight:o})=>j.jsxs("g",{children:[j.jsx("line",{className:cp.line,id:e,x1:n,y1:t,x2:r,y2:l}),j.jsx("text",{x:(n+r)/2,y:(t+l)/2,fill:"white",children:o})]});vc.propTypes={id:J.string.isRequired,x1:J.number.isRequired,y1:J.number.isRequired,x2:J.number.isRequired,y2:J.number.isRequired};const yc=({edges:e})=>j.jsx(j.Fragment,{children:e.map(n=>j.jsx(os.Fragment,{children:j.jsx(vc,{id:n.id,x1:n.firstNode.x,y1:n.firstNode.y,x2:n.secondNode.x,y2:n.secondNode.y,weight:n.weight})},n.id))});yc.propTypes={edges:J.arrayOf(J.shape({id:J.string.isRequired,weight:J.number.isRequired,firstNode:J.object.isRequired,secondNode:J.object.isRequired})).isRequired};const fp=100,dp=()=>{const{nodes:e,setNodes:n,edges:t,setEdges:r}=Ue.useContext(ji),l={isClicked:!1,node:null},[o,i]=Ue.useState(l),u=Ue.useRef(null),s=m=>{i(l);const h=m.clientX,p=m.clientY,g=h-u.current.getBoundingClientRect().left,w=p-u.current.getBoundingClientRect().top,k={id:e.length,x:g,y:w};qd(k,e,u)&&n(I=>[...I,k])},a=(m,h)=>{m.stopPropagation();const p=(g,w)=>{const k={id:`${g.id}-${w.id}`,weight:Math.floor(Math.random()*fp)+1,firstNode:g,secondNode:w};bd(k,t)&&r(I=>[...I,k])};o.isClicked?o.node.x===h.x&&o.node.y===h.y?(console.log("same node clicked again, reset the first clicked node"),i(l)):(p(o.node,h),i(l)):i({isClicked:!0,node:h})};return j.jsxs("svg",{ref:u,className:Gd.canvas,onClick:s,children:[j.jsx(yc,{edges:t}),j.jsx(hc,{nodes:e,onNodeClick:a})]})},Ku=e=>new Promise(n=>setTimeout(n,e)),Yu=async e=>{const n=async r=>{for(const l of r){const o=document.getElementById(l);o.style.stroke="green",o.style.strokeWidth="10",await Ku(1e3)}for(const l of r){const o=document.getElementById(l);o.style.stroke="violet"}await Ku(3e3)},t=async r=>{for(const l of r){const o=document.getElementById(l);o.style.stroke="red",o.style.strokeWidth="2"}};await n(e),await t(e)},Xu=(e,n)=>({node:e,weight:n}),gc=(e,n)=>{const t=new Array(e.length).fill(null);return n.map(r=>({from:r.firstNode.id,to:r.secondNode.id,weight:r.weight})).forEach(r=>{Array.isArray(t[r.from])||(t[r.from]=new Array),t[r.from].push(Xu(r.to,r.weight)),Array.isArray(t[r.to])||(t[r.to]=new Array),t[r.to].push(Xu(r.from,r.weight))}),t},wc=function(e){const n=(s,a)=>({key:s,value:a});let t=0;const r=new Array(e+1),l=new Array(e);r[0]=n(-1,-1/0);const o=(s,a)=>{[r[s],r[a]]=[r[a],r[s]]},i=s=>{let a=Math.floor(s/2),m=s;for(;m>0&&r[a].value>r[m].value;){const h=r[a],p=r[m];l[p.key]=a,l[h.key]=m,o(m,a),m=a,a=Math.floor(a/2)}},u=s=>{let a=s,m=2*s,h=2*s+1;if(mr[m].value&&(a=m),hr[h].value&&(a=h),a!=s){const p=r[a],g=r[s];l[p.key]=s,l[g.key]=a,o(s,a),u(a)}};this.isEmpty=()=>t==0,this.insert=(s,a)=>{t++,r[t]=n(s,a),l[s]=t,i(t)},this.extractMin=()=>{const s=r[1],a=r[t];return l[a.key]=1,r[1]=a,r[t]=null,u(1),t--,s},this.decreaseKey=(s,a)=>{const m=l[s],h=r[m];h.value=a,i(m)}},pp=(e,n)=>{const t=e.length,r=new n(t),l=new Array(t),o=new Array(t),i=new Array(t);r.insert(0,0),l[0]=!0,i[0]=1/0,o[0]={parent:-1,weight:null};for(let u=1;u{l[a.node]&&i[a.node]>a.weight&&(r.decreaseKey(a.node,a.weight),i[a.node]=a.weight,o[a.node]={from:u.key,to:a.node,weight:a.weight})})}return o},mp=e=>{e.shift(1),e.sort((t,r)=>t.weight-r.weight);let n=0;for(let t=0;t{const t=gc(e,n),r=pp(t,wc);return mp(r)},vp=(e,n)=>{const t=e.length,r=0,l=t-1,o=new n(t),i=new Array(t),u=new Array(t);o.insert(0,0),i[0]=0;for(let m=1;m{const g=i[m.key]+p.weight;g({steps:e.steps.reverse(),total:e.total}),gp=(e,n)=>{const t=gc(e,n),r=vp(t,wc);return yp(r)},wp=(e,n)=>{const t=hp(e,n);return console.log(t),kc(t.steps)},kp=(e,n)=>{const t=gp(e,n);return console.log(t),kc(t.steps)},kc=e=>{if(!Array.isArray(e)){console.error("Invalid argument: steps must be an array");return}return e.map(n=>document.getElementById(`${n.from}-${n.to}`)?`${n.from}-${n.to}`:`${n.to}-${n.from}`)},Sp=()=>{const{nodes:e,edges:n}=Ue.useContext(ji),t=()=>{const l=wp(e,n);Yu(l)},r=()=>{const l=kp(e,n);Yu(l)};return j.jsxs(j.Fragment,{children:[j.jsx("button",{onClick:t,children:"Run prim's algorithm"}),j.jsx("button",{onClick:r,children:"Run dijkstra's algorithm"})]})};function Ep(){return j.jsxs(pc,{children:[j.jsx(Sp,{}),j.jsx(dp,{})]})}Yl.createRoot(document.getElementById("root")).render(j.jsx(os.StrictMode,{children:j.jsx(Ep,{})})); diff --git a/assets/index-e5fc9050.css b/assets/index-e5fc9050.css new file mode 100644 index 0000000..1088c21 --- /dev/null +++ b/assets/index-e5fc9050.css @@ -0,0 +1 @@ +._canvas_19vu5_1{background-color:#000;cursor:crosshair;height:100%;width:100%}._node_ds1ga_1{cursor:pointer}._circle_ds1ga_5{stroke:#fff;stroke-width:2;fill:#fff;transition:all .2s linear}._text_ds1ga_12{color:#000}._line_13bl4_1{stroke:red;stroke-width:2;transition:all .5s linear}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}body{margin:0;display:flex;place-items:center;width:100vw;height:100vh}#root{width:100%;height:100%} diff --git a/index.html b/index.html new file mode 100644 index 0000000..67333ef --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + Vite + React + + + + +
+ + +