From 73cc05c7af19d8bd1fc1da93591801a5b58fcf20 Mon Sep 17 00:00:00 2001 From: "DESKTOP-OA0GOUU\\darks" Date: Thu, 7 Dec 2023 19:22:16 +0900 Subject: [PATCH] =?UTF-8?q?React=20Router=20dom=20=E5=AF=BE=E5=BF=9C=20Env?= =?UTF-8?q?=E3=81=ABRouterDom=E3=81=AEBasename=E3=81=A8Vite=E3=81=AEBase?= =?UTF-8?q?=E3=82=92=E5=85=B1=E7=94=A8=E3=81=95=E3=81=9B=E3=82=8B=E3=81=AE?= =?UTF-8?q?=E3=81=8C=E4=B8=80=E7=95=AA=E3=82=AF=E3=83=AC=E3=83=90=E3=83=BC?= =?UTF-8?q?=E3=82=88=E3=81=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 1 + docs/assets/index-1YU9HeGx.css | 1 + docs/assets/index-5XX8vc5f.js | 40 -------------------- docs/assets/index-_nXaMcom.js | 67 ++++++++++++++++++++++++++++++++++ docs/assets/index-yVuTKVQ2.css | 1 - docs/index.html | 6 +-- package-lock.json | 50 +++++++++++++++++++++++-- package.json | 1 + src/Defaults.css | 15 +------- src/Drag.css | 4 +- src/Index.tsx | 23 ++++++++++++ src/{index.css => main.css} | 13 +++++++ src/main.tsx | 11 +++++- vite.config.ts | 2 +- 14 files changed, 168 insertions(+), 67 deletions(-) create mode 100644 .env create mode 100644 docs/assets/index-1YU9HeGx.css delete mode 100644 docs/assets/index-5XX8vc5f.js create mode 100644 docs/assets/index-_nXaMcom.js delete mode 100644 docs/assets/index-yVuTKVQ2.css create mode 100644 src/Index.tsx rename src/{index.css => main.css} (80%) diff --git a/.env b/.env new file mode 100644 index 0000000..e370dd4 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +VITE_BASE_PATH=react_ui_comparison \ No newline at end of file diff --git a/docs/assets/index-1YU9HeGx.css b/docs/assets/index-1YU9HeGx.css new file mode 100644 index 0000000..a76e4b0 --- /dev/null +++ b/docs/assets/index-1YU9HeGx.css @@ -0,0 +1 @@ +#overlay{position:fixed;left:0;top:0;width:100vw;height:100vh;pointer-events:none}#head{display:flex;justify-content:center;align-items:center}.logo-wrap{position:relative}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){.logo{animation:logo-spin infinite 20s linear}}.dummy{position:absolute;width:100%;height:100%}h1{font-size:3.2em;line-height:1.1}.card{padding:2em}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s;color:#646cff}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.drag-wrap{cursor:pointer;position:absolute;opacity:.75;will-change:left,top,filter,opacity}.dragging{opacity:.9;filter:drop-shadow(0 0 16px black)}#cursor{left:100px;top:100px;width:100px;height:100px;background-color:red;border-radius:16px}#center{left:200px;top:200px;width:100px;height:100px;background-color:green;border-radius:16px}#center:before,#center:after{content:"";position:absolute;background:black}#center:before{top:50%;left:0;right:0;height:1px}#center:after{left:50%;top:0;bottom:0;width:1px}#percent{left:300px;top:300px;width:100px;height:100px}#percent:after{content:"";position:absolute;width:100%;height:100%;left:0;top:0;background-color:#00f;z-index:-1}#fakeCursor{left:100px;top:400px;width:100px;height:100px;background-image:url(/assets/computer_cursor_arrow_white-Vu2BSd9j.png);background-position:top;background-repeat:no-repeat;background-size:contain}#fakeCursor:after{content:"";position:absolute;left:50%;top:0;transform:translate(-50%);width:2px;height:2px;background-color:red}#distance{left:200px;top:500px;width:100px;height:100px;background-color:#ff0;border-radius:50%}#distance.dragging{filter:drop-shadow(0 0 32px yellow)}#velocity{left:300px;top:600px;width:50px;height:50px;background-color:purple;border-radius:50%}#drop-wrap{position:absolute;left:0;top:50%;transform:translateY(-50%);pointer-events:none;display:flex;flex-wrap:wrap;justify-content:space-evenly;align-items:center;gap:8px;margin:8px}.drop{width:64px;height:64px;border-style:dashed;border-width:2px;border-color:gray;will-change:filter}.over{filter:brightness(2.5)}: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-user-select:none;user-select:none;-ms-touch-action:none;-webkit-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);overflow:hidden}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}img{pointer-events:none}#root{max-width:1280px;margin:0 auto;text-align:center}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}} diff --git a/docs/assets/index-5XX8vc5f.js b/docs/assets/index-5XX8vc5f.js deleted file mode 100644 index af229ab..0000000 --- a/docs/assets/index-5XX8vc5f.js +++ /dev/null @@ -1,40 +0,0 @@ -(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 ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yu={exports:{}},el={},Xu={exports:{}},L={};/** - * @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 Kt=Symbol.for("react.element"),uc=Symbol.for("react.portal"),sc=Symbol.for("react.fragment"),ac=Symbol.for("react.strict_mode"),cc=Symbol.for("react.profiler"),fc=Symbol.for("react.provider"),dc=Symbol.for("react.context"),pc=Symbol.for("react.forward_ref"),mc=Symbol.for("react.suspense"),hc=Symbol.for("react.memo"),vc=Symbol.for("react.lazy"),Ii=Symbol.iterator;function yc(e){return e===null||typeof e!="object"?null:(e=Ii&&e[Ii]||e["@@iterator"],typeof e=="function"?e:null)}var Ku={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gu=Object.assign,Zu={};function ot(e,n,t){this.props=e,this.context=n,this.refs=Zu,this.updater=t||Ku}ot.prototype.isReactComponent={};ot.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")};ot.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ju(){}Ju.prototype=ot.prototype;function Vo(e,n,t){this.props=e,this.context=n,this.refs=Zu,this.updater=t||Ku}var Bo=Vo.prototype=new Ju;Bo.constructor=Vo;Gu(Bo,ot.prototype);Bo.isPureReactComponent=!0;var Fi=Array.isArray,qu=Object.prototype.hasOwnProperty,Ho={current:null},bu={key:!0,ref:!0,__self:!0,__source:!0};function es(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)qu.call(n,r)&&!bu.hasOwnProperty(r)&&(l[r]=n[r]);var u=arguments.length-2;if(u===1)l.children=t;else if(1>>1,G=x[W];if(0>>1;Wl(wl,z))gnl(er,wl)?(x[W]=er,x[gn]=z,W=gn):(x[W]=wl,x[yn]=z,W=yn);else if(gnl(er,z))x[W]=er,x[gn]=z,W=gn;else break e}}return N}function l(x,N){var z=x.sortIndex-N.sortIndex;return z!==0?z:x.id-N.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=[],c=[],h=1,m=null,p=3,g=!1,w=!1,S=!1,F=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=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 N=t(c);N!==null;){if(N.callback===null)r(c);else if(N.startTime<=x)r(c),N.sortIndex=N.expirationTime,n(s,N);else break;N=t(c)}}function v(x){if(S=!1,d(x),!w)if(t(s)!==null)w=!0,yl(E);else{var N=t(c);N!==null&&gl(v,N.startTime-x)}}function E(x,N){w=!1,S&&(S=!1,f(P),P=-1),g=!0;var z=p;try{for(d(N),m=t(s);m!==null&&(!(m.expirationTime>N)||x&&!Ne());){var W=m.callback;if(typeof W=="function"){m.callback=null,p=m.priorityLevel;var G=W(m.expirationTime<=N);N=e.unstable_now(),typeof G=="function"?m.callback=G:m===t(s)&&r(s),d(N)}else r(s);m=t(s)}if(m!==null)var bt=!0;else{var yn=t(c);yn!==null&&gl(v,yn.startTime-N),bt=!1}return bt}finally{m=null,p=z,g=!1}}var C=!1,_=null,P=-1,H=5,T=-1;function Ne(){return!(e.unstable_now()-Tx||125W?(x.sortIndex=z,n(c,x),t(s)===null&&x===t(c)&&(S?(f(P),P=-1):S=!0,gl(v,z-W))):(x.sortIndex=G,n(s,x),w||g||(w=!0,yl(E))),x},e.unstable_shouldYield=Ne,e.unstable_wrapCallback=function(x){var N=p;return function(){var z=p;p=N;try{return x.apply(this,arguments)}finally{p=z}}}})(ls);rs.exports=ls;var zc=rs.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 os=ie,ge=zc;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"),Kl=Object.prototype.hasOwnProperty,Lc=/^[: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={},Ai={};function Tc(e){return Kl.call(Ai,e)?!0:Kl.call($i,e)?!1:Lc.test(e)?Ai[e]=!0:($i[e]=!0,!1)}function Oc(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 Dc(e,n,t,r){if(n===null||typeof n>"u"||Oc(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 ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ee[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];ee[n]=new ae(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ee[e]=new ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ee[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){ee[e]=new ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ee[e]=new ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ee[e]=new ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ee[e]=new ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ee[e]=new ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qo=/[\-:]([a-z])/g;function Yo(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,Yo);ee[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,Yo);ee[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,Yo);ee[n]=new ae(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ee[e]=new ae(e,1,!1,e.toLowerCase(),null,!1,!1)});ee.xlinkHref=new ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ee[e]=new ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xo(e,n,t,r){var l=ee.hasOwnProperty(n)?ee[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:"")?gt(e):""}function Mc(e){switch(e.tag){case 5:return gt(e.type);case 16:return gt("Lazy");case 13:return gt("Suspense");case 19:return gt("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 jn:return"Fragment";case Rn:return"Portal";case Gl:return"Profiler";case Ko:return"StrictMode";case Zl:return"Suspense";case Jl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ss:return(e.displayName||"Context")+".Consumer";case us: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 Je:n=e._payload,e=e._init;try{return ql(e(n))}catch{}}return null}function Rc(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===Ko?"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 dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cs(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function jc(e){var n=cs(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 rr(e){e._valueTracker||(e._valueTracker=jc(e))}function fs(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=cs(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Tr(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 V({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Bi(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=dn(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 ds(e,n){n=n.checked,n!=null&&Xo(e,"checked",n,!1)}function eo(e,n){ds(e,n);var t=dn(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,dn(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"||Tr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var wt=Array.isArray;function Yn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=lr.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 Et={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},Ic=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(e){Ic.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Et[n]=Et[e]})});function vs(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Et.hasOwnProperty(e)&&Et[e]?(""+n).trim():n+"px"}function ys(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=vs(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Fc=V({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(Fc[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,Kn=null;function Yi(e){if(e=Jt(e)){if(typeof uo!="function")throw Error(y(280));var n=e.stateNode;n&&(n=il(n),uo(e.stateNode,e.type,n))}}function gs(e){Xn?Kn?Kn.push(e):Kn=[e]:Xn=e}function ws(){if(Xn){var e=Xn,n=Kn;if(Kn=Xn=null,Yi(e),n)for(e=0;e>>=0,e===0?32:31-(Kc(e)/Gc|0)|0}var or=64,ir=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 Rr(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 Gt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-De(n),e[n]=t}function bc(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=Ct),nu=" ",tu=!1;function $s(e,n){switch(e){case"keyup":return zf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function As(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var In=!1;function Tf(e,n){switch(e){case"compositionend":return As(n);case"keypress":return n.which!==32?null:(tu=!0,nu);case"textInput":return e=n.data,e===nu&&tu?null:e;default:return null}}function Of(e,n){if(In)return e==="compositionend"||!oi&&$s(e,n)?(e=Fs(),kr=ti=nn=null,In=!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=iu(t)}}function Ws(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Ws(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Qs(){for(var e=window,n=Tr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Tr(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 Af(e){var n=Qs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Ws(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=uu(t,o);var i=uu(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,Fn=null,mo=null,Pt=null,ho=!1;function su(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;ho||Fn==null||Fn!==Tr(r)||(r=Fn,"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&&Ut(Pt,r)||(Pt=r,r=Fr(mo,"onSelect"),0An||(e.current=ko[An],ko[An]=null,An--)}function M(e,n){An++,ko[An]=e.current,e.current=n}var pn={},le=hn(pn),de=hn(!1),Pn=pn;function bn(e,n){var t=e.type.contextTypes;if(!t)return pn;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(){I(de),I(le)}function hu(e,n,t){if(le.current!==pn)throw Error(y(168));M(le,n),M(de,t)}function ea(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(y(108,Rc(e)||"Unknown",l));return V({},t,r)}function Ar(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Pn=le.current,M(le,e),M(de,de.current),!0}function vu(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=ea(e,n,Pn),r.__reactInternalMemoizedMergedChildContext=e,I(de),I(le),M(le,e)):I(de),M(de,t)}var Ve=null,ul=!1,Fl=!1;function na(e){Ve===null?Ve=[e]:Ve.push(e)}function qf(e){ul=!0,na(e)}function vn(){if(!Fl&&Ve!==null){Fl=!0;var e=0,n=D;try{var t=Ve;for(D=1;e>=i,l-=i,Be=1<<32-De(n)+l|t<P?(H=_,_=null):H=_.sibling;var T=p(f,_,d[P],v);if(T===null){_===null&&(_=H);break}e&&_&&T.alternate===null&&n(f,_),a=o(T,a,P),C===null?E=T:C.sibling=T,C=T,_=H}if(P===d.length)return t(f,_),U&&wn(f,P),E;if(_===null){for(;PP?(H=_,_=null):H=_.sibling;var Ne=p(f,_,T.value,v);if(Ne===null){_===null&&(_=H);break}e&&_&&Ne.alternate===null&&n(f,_),a=o(Ne,a,P),C===null?E=Ne:C.sibling=Ne,C=Ne,_=H}if(T.done)return t(f,_),U&&wn(f,P),E;if(_===null){for(;!T.done;P++,T=d.next())T=m(f,T.value,v),T!==null&&(a=o(T,a,P),C===null?E=T:C.sibling=T,C=T);return U&&wn(f,P),E}for(_=r(f,_);!T.done;P++,T=d.next())T=g(_,f,P,T.value,v),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?P:T.key),a=o(T,a,P),C===null?E=T:C.sibling=T,C=T);return e&&_.forEach(function(st){return n(f,st)}),U&&wn(f,P),E}function F(f,a,d,v){if(typeof d=="object"&&d!==null&&d.type===jn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case tr:e:{for(var E=d.key,C=a;C!==null;){if(C.key===E){if(E=d.type,E===jn){if(C.tag===7){t(f,C.sibling),a=l(C,d.props.children),a.return=f,f=a;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Je&&xu(E)===C.type){t(f,C.sibling),a=l(C,d.props),a.ref=ht(f,C,d),a.return=f,f=a;break e}t(f,C);break}else n(f,C);C=C.sibling}d.type===jn?(a=_n(d.props.children,f.mode,v,d.key),a.return=f,f=a):(v=Lr(d.type,d.key,d.props,null,f.mode,v),v.ref=ht(f,a,d),v.return=f,f=v)}return i(f);case Rn:e:{for(C=d.key;a!==null;){if(a.key===C)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=Ql(d,f.mode,v),a.return=f,f=a}return i(f);case Je:return C=d._init,F(f,a,C(d._payload),v)}if(wt(d))return w(f,a,d,v);if(ct(d))return S(f,a,d,v);pr(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=Wl(d,f.mode,v),a.return=f,f=a),i(f)):t(f,a)}return F}var nt=aa(!0),ca=aa(!1),qt={},$e=hn(qt),Bt=hn(qt),Ht=hn(qt);function xn(e){if(e===qt)throw Error(y(174));return e}function hi(e,n){switch(M(Ht,n),M(Bt,e),M($e,qt),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)}I($e),M($e,n)}function tt(){I($e),I(Bt),I(Ht)}function fa(e){xn(Ht.current);var n=xn($e.current),t=ro(n,e.type);n!==t&&(M(Bt,e),M($e,t))}function vi(e){Bt.current===e&&(I($e),I(Bt))}var $=hn(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=$l.transition;$l.transition={};try{e(!1),n()}finally{D=t,$l.transition=r}}function Na(){return Pe().memoizedState}function td(e,n,t){var r=cn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},za(e))La(n,t);else if(t=oa(e,n,t,r),t!==null){var l=ue();Me(t,e,r,l),Ta(t,n,r)}}function rd(e,n,t){var r=cn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(za(e))La(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,Re(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=oa(e,n,l,r),t!==null&&(l=ue(),Me(t,e,r,l),Ta(t,n,r))}}function za(e){var n=e.alternate;return e===A||n!==null&&n===A}function La(e,n){Nt=Xr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Ta(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,bo(e,t)}}var Kr={readContext:_e,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useInsertionEffect:ne,useLayoutEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useMutableSource:ne,useSyncExternalStore:ne,useId:ne,unstable_isNewReconciler:!1},ld={readContext:_e,useCallback:function(e,n){return Ie().memoizedState=[e,n===void 0?null:n],e},useContext:_e,useEffect:_u,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,_r(4194308,4,Ea.bind(null,n,e),t)},useLayoutEffect:function(e,n){return _r(4194308,4,e,n)},useInsertionEffect:function(e,n){return _r(4,2,e,n)},useMemo:function(e,n){var t=Ie();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Ie();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=td.bind(null,A,e),[r.memoizedState,e]},useRef:function(e){var n=Ie();return e={current:e},n.memoizedState=e},useState:Cu,useDebugValue:Ei,useDeferredValue:function(e){return Ie().memoizedState=e},useTransition:function(){var e=Cu(!1),n=e[0];return e=nd.bind(null,e[1]),Ie().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=A,l=Ie();if(U){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),J===null)throw Error(y(349));zn&30||ma(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,_u(va.bind(null,r,o,e),[e]),r.flags|=2048,Yt(9,ha.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=Ie(),n=J.identifierPrefix;if(U){var t=He,r=Be;t=(r&~(1<<32-De(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Wt++,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,$a(e,n,!1,!1),n.stateNode=e;e:{switch(i=oo(t,r),t){case"dialog":R("cancel",e),R("close",e),l=r;break;case"iframe":case"object":case"embed":R("load",e),l=r;break;case"video":case"audio":for(l=0;llt&&(n.flags|=128,r=!0,vt(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),vt(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!U)return te(n),null}else 2*Q()-o.renderingStartTime>lt&&t!==1073741824&&(n.flags|=128,r=!0,vt(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=$.current,M($,r?t&1|2:t&1),n):(te(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&&(te(n),n.subtreeFlags&6&&(n.flags|=8192)):te(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function dd(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 tt(),I(de),I(le),yi(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return vi(n),null;case 13:if(I($),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));et()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return I($),null;case 4:return tt(),null;case 10:return di(n.type._context),null;case 22:case 23:return zi(),null;case 24:return null;default:return null}}var hr=!1,re=!1,pd=typeof WeakSet=="function"?WeakSet:Set,k=null;function Wn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){B(e,n,r)}else t.current=null}function Mo(e,n,t){try{t()}catch(r){B(e,n,r)}}var Ru=!1;function md(e,n){if(vo=jr,e=Qs(),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,c=0,h=0,m=e,p=null;n:for(;;){for(var g;m!==t||l!==0&&m.nodeType!==3||(u=i+l),m!==o||r!==0&&m.nodeType!==3||(s=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break n;if(p===t&&++c===l&&(u=i),p===o&&++h===r&&(s=i),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(yo={focusedElem:e,selectionRange:t},jr=!1,k=n;k!==null;)if(n=k,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,k=e;else for(;k!==null;){n=k;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,F=w.memoizedState,f=n.stateNode,a=f.getSnapshotBeforeUpdate(n.elementType===n.type?S:Le(n.type,S),F);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(y(163))}}catch(v){B(n,n.return,v)}if(e=n.sibling,e!==null){e.return=n.return,k=e;break}k=n.return}return w=Ru,Ru=!1,w}function zt(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&&Mo(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 Ro(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 Ba(e){var n=e.alternate;n!==null&&(e.alternate=null,Ba(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[So],delete n[Zf],delete n[Jf])),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 Ha(e){return e.tag===5||e.tag===3||e.tag===4}function ju(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ha(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=Ur));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 Io(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(Io(e,n,t),e=e.sibling;e!==null;)Io(e,n,t),e=e.sibling}var q=null,Te=!1;function Ze(e,n,t){for(t=t.child;t!==null;)Wa(e,n,t),t=t.sibling}function Wa(e,n,t){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(tl,t)}catch{}switch(t.tag){case 5:re||Wn(t,n);case 6:var r=q,l=Te;q=null,Ze(e,n,t),q=r,Te=l,q!==null&&(Te?(e=q,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):q.removeChild(t.stateNode));break;case 18:q!==null&&(Te?(e=q,t=t.stateNode,e.nodeType===8?Il(e.parentNode,t):e.nodeType===1&&Il(e,t),It(e)):Il(q,t.stateNode));break;case 4:r=q,l=Te,q=t.stateNode.containerInfo,Te=!0,Ze(e,n,t),q=r,Te=l;break;case 0:case 11:case 14:case 15:if(!re&&(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)&&Mo(t,n,i),l=l.next}while(l!==r)}Ze(e,n,t);break;case 1:if(!re&&(Wn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){B(t,n,u)}Ze(e,n,t);break;case 21:Ze(e,n,t);break;case 22:t.mode&1?(re=(r=re)||t.memoizedState!==null,Ze(e,n,t),re=r):Ze(e,n,t);break;default:Ze(e,n,t)}}function Iu(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new pd),n.forEach(function(r){var l=xd.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*vd(r/1960))-r,10e?16:e,tn===null)var r=!1;else{if(e=tn,tn=null,Jr=0,O&6)throw Error(y(331));var l=O;for(O|=4,k=e.current;k!==null;){var o=k,i=o.child;if(k.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sQ()-Pi?Cn(e,0):_i|=t),me(e,n)}function qa(e,n){n===0&&(e.mode&1?(n=ir,ir<<=1,!(ir&130023424)&&(ir=4194304)):n=1);var t=ue();e=Xe(e,n),e!==null&&(Gt(e,n,t),me(e,t))}function Ed(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),qa(e,t)}function xd(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),qa(e,t)}var ba;ba=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,cd(e,n,t);fe=!!(e.flags&131072)}else fe=!1,U&&n.flags&1048576&&ta(n,Br,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Pr(e,n),e=n.pendingProps;var l=bn(n,le.current);Zn(n,t),l=wi(null,n,r,e,l,t);var o=Si();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,Ar(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,Po(n,r,e,t),n=Lo(null,n,r,!0,o,t)):(n.tag=0,U&&o&&ui(n),oe(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=Le(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=Tu(null,n,r,Le(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:Le(r,l),zo(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),Ou(e,n,r,l,t);case 3:e:{if(Ia(n),e===null)throw Error(y(387));r=n.pendingProps,o=n.memoizedState,l=o.element,ia(e,n),Qr(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=rt(Error(y(423)),n),n=Du(e,n,r,t,l);break e}else if(r!==l){l=rt(Error(y(424)),n),n=Du(e,n,r,t,l);break e}else for(ve=un(n.stateNode.containerInfo.firstChild),ye=n,U=!0,Oe=null,t=ca(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(et(),r===l){n=Ke(e,n,t);break e}oe(e,n,r,t)}n=n.child}return n;case 5:return fa(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),ja(e,n),oe(e,n,i,t),n.child;case 6:return e===null&&xo(n),null;case 13:return Fa(e,n,t);case 4:return hi(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=nt(n,null,r,t):oe(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),Lu(e,n,r,l,t);case 7:return oe(e,n,n.pendingProps,t),n.child;case 8:return oe(e,n,n.pendingProps.children,t),n.child;case 12:return oe(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(Re(o.value,i)){if(o.children===l.children&&!de.current){n=Ke(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=We(-1,t&-t),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?s.next=s:(s.next=h.next,h.next=s),c.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}oe(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Zn(n,t),l=_e(l),r=r(l),n.flags|=1,oe(e,n,r,t),n.child;case 14:return r=n.type,l=Le(r,n.pendingProps),l=Le(r.type,l),Tu(e,n,r,l,t);case 15:return Ma(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),Pr(e,n),n.tag=1,pe(r)?(e=!0,Ar(n)):e=!1,Zn(n,t),sa(n,r,l),Po(n,r,l,t),Lo(null,n,r,!0,e,t);case 19:return Ua(e,n,t);case 22:return Ra(e,n,t)}throw Error(y(156,n.tag))};function ec(e,n){return Ps(e,n)}function Cd(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 Cd(e,n,t,r)}function Ti(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _d(e){if(typeof e=="function")return Ti(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Go)return 11;if(e===Zo)return 14}return 2}function fn(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")Ti(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case jn:return _n(t.children,l,o,n);case Ko: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 as:return dl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case us:i=10;break e;case ss:i=9;break e;case Go:i=11;break e;case Zo:i=14;break e;case Je: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 _n(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=as,e.lanes=t,e.stateNode={isHidden:!1},e}function Wl(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 Pd(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 Oi(e,n,t,r,l,o,i,u,s){return e=new Pd(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 Nd(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lc)}catch(e){console.error(e)}}lc(),ts.exports=we;var Dd=ts.exports,Wu=Dd;Xl.createRoot=Wu.createRoot,Xl.hydrateRoot=Wu.hydrateRoot;const Md="/react_dnd_detectionCompare/vite.svg",Rd="/react_dnd_detectionCompare/assets/react-h3aPdYU7.svg";function jd(){const[e,n]=ie.useState(0),t=()=>{n(r=>r+1)};return j.jsxs(j.Fragment,{children:[j.jsxs("div",{id:"head",children:[j.jsx("div",{className:"logo-wrap",children:j.jsxs("a",{href:"https://vitejs.dev",target:"_blank",rel:"noreferrer",children:[j.jsx("div",{className:"dummy"}),j.jsx("img",{src:Md,className:"logo",alt:"Vite logo"})]})}),j.jsx("div",{className:"logo-wrap",children:j.jsxs("a",{href:"https://react.dev",target:"_blank",rel:"noreferrer",children:[j.jsx("div",{className:"dummy"}),j.jsx("img",{src:Rd,className:"logo react",alt:"React logo"})]})})]}),j.jsx("h1",{children:"Vite + React"}),j.jsx("div",{className:"card",children:j.jsxs("button",{type:"button",onClick:t,children:["count is ",e]})})]})}function Id(e){const[n,t]=ie.useState(!1),[r,l]=ie.useState({x:0,y:0}),o=ie.useRef(null),i=c=>{if(c.preventDefault(),!o.current)return;o.current.classList.add("dragging"),t(!0),c.currentTarget.setPointerCapture(c.pointerId);const h=c.currentTarget.getBoundingClientRect(),m=c.clientX-h.x,p=c.clientY-h.y;e.handleDrag({clientX:c.clientX,clientY:c.clientY,location:h,size:h}),l({x:m,y:p}),e.handleDragStart(e.dragdataStatic.id)},u=c=>{if(c.preventDefault(),!(n&&o.current))return;const h=c.clientX-r.x,m=c.clientY-r.y;o.current.style.left=`${h}px`,o.current.style.top=`${m}px`;const p=o.current.getBoundingClientRect();e.handleDrag({clientX:c.clientX,clientY:c.clientY,location:{x:h,y:m},size:p})},s=()=>{n&&o.current&&(t(!1),o.current.classList.remove("dragging"))};return j.jsx("div",{ref:o,id:e.dragdataStatic.id,className:"drag-wrap",onPointerDown:i,onPointerMove:u,onPointerUp:s})}function Fd(e){var l;const[n,t]=ie.useState(!1),r=ie.useRef(null);return ie.useEffect(()=>{if(e.dragdataDynamic&&e.dragdataStatic){if(!r.current)return;t(e.dragdataStatic.isOver(e.dragdataDynamic,r.current.getBoundingClientRect()))}else t(!1)},[e.dragdataDynamic,e.dragdataStatic]),j.jsx("div",{ref:r,className:n?"drop over":"drop",style:{borderColor:n?(l=e.dragdataStatic)==null?void 0:l.color:"gray"}})}const Ud=240,Qu={clientX:0,clientY:0,location:{x:0,y:0},size:{width:0,height:0}},Yl=[{id:"cursor",color:"red",isOver:(e,n)=>{const{clientX:t,clientY:r}=e;return t>=n.left&&t<=n.right&&r>=n.top&&r<=n.bottom}},{id:"center",color:"green",isOver:(e,n)=>{const{location:t,size:r}=e,l=t.x+r.width/2,o=t.y+r.height/2;return l>=n.left&&l<=n.right&&o>=n.top&&o<=n.bottom}},{id:"percent",color:"blue",isOver:(e,n)=>{const{location:t,size:r}=e,l=n.width*n.height,o=Math.min(t.x+r.width,n.right)-Math.max(t.x,n.left);if(o<=0)return!1;const i=Math.min(t.y+r.height,n.bottom)-Math.max(t.y,n.top);return i<=0?!1:o*i>=l*.25}},{id:"fakeCursor",color:"white",isOver:(e,n)=>{const{location:t,size:r}=e,l=t.x+r.width/2,o=t.y;return l>=n.left&&l<=n.right&&o>=n.top&&o<=n.bottom}},{id:"distance",color:"yellow",isOver:(e,n)=>{const{location:t,size:r}=e,l=t.x+r.width/2,o=t.y+r.height/2,i=n.x+n.width/2,u=n.y+n.height/2;return(l-i)**2+(o-u)**2<=1e4}},{id:"velocity",color:"purple",isOver:(e,n)=>{const{location:t,size:r}=e,l=t.x+r.width/2,o=t.y+r.height/2,i=n.x+n.width/2,u=n.y+n.height/2;return(l-i)**2+(o-u)**2<=1e4}}],$d=e=>{const n=ie.useRef(null);return ie.useEffect(()=>{const t=new ResizeObserver(r=>e(r));return n.current&&t.observe(n.current),()=>t.disconnect()},[e]),n},Ad=nl.memo(jd),Vd=nl.memo(Id),Bd=nl.memo(Fd);function Hd(){const[e,n]=ie.useState(-1),[t,r]=ie.useState(Qu),l=s=>{n(Yl.map(c=>c.id).indexOf(s))},o=s=>{r({clientX:s.clientX,clientY:s.clientY,location:s.location,size:s.size})},i=ie.useCallback(()=>{n(-1),r(Qu)},[]),u=$d(i);return j.jsxs(j.Fragment,{children:[j.jsx(Ad,{}),j.jsx("div",{id:"drop-wrap",children:Array.from({length:Ud},(s,c)=>j.jsx(Bd,{dragdataDynamic:t,dragdataStatic:Yl[e]},`${c}`))}),Yl.map((s,c)=>j.jsx(Vd,{dragdataDynamic:t,dragdataStatic:s,handleDragStart:l,handleDrag:o},`${c}`)),j.jsx("div",{ref:u,id:"overlay"})]})}Xl.createRoot(document.getElementById("root")).render(j.jsx(nl.StrictMode,{children:j.jsx(Hd,{})})); diff --git a/docs/assets/index-_nXaMcom.js b/docs/assets/index-_nXaMcom.js new file mode 100644 index 0000000..cb89353 --- /dev/null +++ b/docs/assets/index-_nXaMcom.js @@ -0,0 +1,67 @@ +function Qc(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function Yc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ks={exports:{}},dl={},xs={exports:{}},O={};/** + * @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 tr=Symbol.for("react.element"),Kc=Symbol.for("react.portal"),Xc=Symbol.for("react.fragment"),Gc=Symbol.for("react.strict_mode"),Zc=Symbol.for("react.profiler"),Jc=Symbol.for("react.provider"),qc=Symbol.for("react.context"),bc=Symbol.for("react.forward_ref"),ef=Symbol.for("react.suspense"),tf=Symbol.for("react.memo"),nf=Symbol.for("react.lazy"),ru=Symbol.iterator;function rf(e){return e===null||typeof e!="object"?null:(e=ru&&e[ru]||e["@@iterator"],typeof e=="function"?e:null)}var Es={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Cs=Object.assign,_s={};function an(e,t,n){this.props=e,this.context=t,this.refs=_s,this.updater=n||Es}an.prototype.isReactComponent={};an.prototype.setState=function(e,t){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,t,"setState")};an.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ps(){}Ps.prototype=an.prototype;function lo(e,t,n){this.props=e,this.context=t,this.refs=_s,this.updater=n||Es}var io=lo.prototype=new Ps;io.constructor=lo;Cs(io,an.prototype);io.isPureReactComponent=!0;var lu=Array.isArray,Ns=Object.prototype.hasOwnProperty,oo={current:null},zs={key:!0,ref:!0,__self:!0,__source:!0};function Ls(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Ns.call(t,r)&&!zs.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,J=C[Q];if(0>>1;Ql(Ol,T))Stl(ar,Ol)?(C[Q]=ar,C[St]=T,Q=St):(C[Q]=Ol,C[wt]=T,Q=wt);else if(Stl(ar,T))C[Q]=ar,C[St]=T,Q=St;else break e}}return L}function l(C,L){var T=C.sortIndex-L.sortIndex;return T!==0?T:C.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],a=[],p=1,m=null,h=3,S=!1,y=!1,g=!1,z=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(C){for(var L=n(a);L!==null;){if(L.callback===null)r(a);else if(L.startTime<=C)r(a),L.sortIndex=L.expirationTime,t(s,L);else break;L=n(a)}}function v(C){if(g=!1,d(C),!y)if(n(s)!==null)y=!0,Rl(x);else{var L=n(a);L!==null&&Tl(v,L.startTime-C)}}function x(C,L){y=!1,g&&(g=!1,f(N),N=-1),S=!0;var T=h;try{for(d(L),m=n(s);m!==null&&(!(m.expirationTime>L)||C&&!ze());){var Q=m.callback;if(typeof Q=="function"){m.callback=null,h=m.priorityLevel;var J=Q(m.expirationTime<=L);L=e.unstable_now(),typeof J=="function"?m.callback=J:m===n(s)&&r(s),d(L)}else r(s);m=n(s)}if(m!==null)var sr=!0;else{var wt=n(a);wt!==null&&Tl(v,wt.startTime-L),sr=!1}return sr}finally{m=null,h=T,S=!1}}var _=!1,P=null,N=-1,H=5,j=-1;function ze(){return!(e.unstable_now()-jC||125Q?(C.sortIndex=T,t(a,C),n(s)===null&&C===n(a)&&(g?(f(N),N=-1):g=!0,Tl(v,T-Q))):(C.sortIndex=J,t(s,C),y||S||(y=!0,Rl(x))),C},e.unstable_shouldYield=ze,e.unstable_wrapCallback=function(C){var L=h;return function(){var T=h;h=L;try{return C.apply(this,arguments)}finally{h=T}}}})(js);Os.exports=js;var vf=Os.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 Ds=k,we=vf;function w(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),si=Object.prototype.hasOwnProperty,gf=/^[: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]*$/,ou={},uu={};function yf(e){return si.call(uu,e)?!0:si.call(ou,e)?!1:gf.test(e)?uu[e]=!0:(ou[e]=!0,!1)}function wf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Sf(e,t,n,r){if(t===null||typeof t>"u"||wf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ce(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ne[e]=new ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ne[t]=new ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ne[e]=new ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ne[e]=new ce(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 ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ne[e]=new ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ne[e]=new ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ne[e]=new ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ne[e]=new ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var so=/[\-:]([a-z])/g;function ao(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 t=e.replace(so,ao);ne[t]=new ce(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(so,ao);ne[t]=new ce(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(so,ao);ne[t]=new ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ne[e]=new ce(e,1,!1,e.toLowerCase(),null,!1,!1)});ne.xlinkHref=new ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ne[e]=new ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function co(e,t,n,r){var l=ne.hasOwnProperty(t)?ne[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var s=` +`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{Il=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cn(e):""}function kf(e){switch(e.tag){case 5:return Cn(e.type);case 16:return Cn("Lazy");case 13:return Cn("Suspense");case 19:return Cn("SuspenseList");case 0:case 2:case 15:return e=Ml(e.type,!1),e;case 11:return e=Ml(e.type.render,!1),e;case 1:return e=Ml(e.type,!0),e;default:return""}}function di(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 Ft:return"Fragment";case Ut:return"Portal";case ai:return"Profiler";case fo:return"StrictMode";case ci:return"Suspense";case fi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Us:return(e.displayName||"Context")+".Consumer";case Ms:return(e._context.displayName||"Context")+".Provider";case po:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ho:return t=e.displayName||null,t!==null?t:di(e.type)||"Memo";case qe:t=e._payload,e=e._init;try{return di(e(t))}catch{}}return null}function xf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return di(t);case 8:return t===fo?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $s(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ef(e){var t=$s(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dr(e){e._valueTracker||(e._valueTracker=Ef(e))}function Bs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$s(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $r(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 pi(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function au(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ht(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function As(e,t){t=t.checked,t!=null&&co(e,"checked",t,!1)}function hi(e,t){As(e,t);var n=ht(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mi(e,t.type,n):t.hasOwnProperty("defaultValue")&&mi(e,t.type,ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function mi(e,t,n){(t!=="number"||$r(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _n=Array.isArray;function Gt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=pr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zn={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},Cf=["Webkit","ms","Moz","O"];Object.keys(zn).forEach(function(e){Cf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zn[t]=zn[e]})});function Qs(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zn.hasOwnProperty(e)&&zn[e]?(""+t).trim():t+"px"}function Ys(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Qs(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var _f=V({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 yi(e,t){if(t){if(_f[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(w(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(w(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(w(61))}if(t.style!=null&&typeof t.style!="object")throw Error(w(62))}}function wi(e,t){if(e.indexOf("-")===-1)return typeof t.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 Si=null;function mo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ki=null,Zt=null,Jt=null;function pu(e){if(e=ir(e)){if(typeof ki!="function")throw Error(w(280));var t=e.stateNode;t&&(t=gl(t),ki(e.stateNode,e.type,t))}}function Ks(e){Zt?Jt?Jt.push(e):Jt=[e]:Zt=e}function Xs(){if(Zt){var e=Zt,t=Jt;if(Jt=Zt=null,pu(e),t)for(e=0;e>>=0,e===0?32:31-(Mf(e)/Uf|0)|0}var hr=64,mr=4194304;function Pn(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 Wr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=Pn(u):(i&=o,i!==0&&(r=Pn(i)))}else o=n&~l,o!==0?r=Pn(o):i!==0&&(r=Pn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function rr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-je(t),e[t]=n}function Af(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Rn),xu=" ",Eu=!1;function ha(e,t){switch(e){case"keyup":return md.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ma(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $t=!1;function gd(e,t){switch(e){case"compositionend":return ma(t);case"keypress":return t.which!==32?null:(Eu=!0,xu);case"textInput":return e=t.data,e===xu&&Eu?null:e;default:return null}}function yd(e,t){if($t)return e==="compositionend"||!Eo&&ha(e,t)?(e=da(),Rr=So=nt=null,$t=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Nu(n)}}function wa(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wa(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sa(){for(var e=window,t=$r();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$r(e.document)}return t}function Co(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Nd(e){var t=Sa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wa(n.ownerDocument.documentElement,n)){if(r!==null&&Co(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=zu(n,i);var o=zu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Bt=null,Ni=null,On=null,zi=!1;function Lu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zi||Bt==null||Bt!==$r(r)||(r=Bt,"selectionStart"in r&&Co(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),On&&Hn(On,r)||(On=r,r=Yr(Ni,"onSelect"),0Wt||(e.current=Di[Wt],Di[Wt]=null,Wt--)}function M(e,t){Wt++,Di[Wt]=e.current,e.current=t}var mt={},oe=gt(mt),pe=gt(!1),zt=mt;function nn(e,t){var n=e.type.contextTypes;if(!n)return mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function he(e){return e=e.childContextTypes,e!=null}function Xr(){F(pe),F(oe)}function Mu(e,t,n){if(oe.current!==mt)throw Error(w(168));M(oe,t),M(pe,n)}function La(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(w(108,xf(e)||"Unknown",l));return V({},n,r)}function Gr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mt,zt=oe.current,M(oe,e),M(pe,pe.current),!0}function Uu(e,t,n){var r=e.stateNode;if(!r)throw Error(w(169));n?(e=La(e,t,zt),r.__reactInternalMemoizedMergedChildContext=e,F(pe),F(oe),M(oe,e)):F(pe),M(pe,n)}var Ve=null,yl=!1,Zl=!1;function Ra(e){Ve===null?Ve=[e]:Ve.push(e)}function $d(e){yl=!0,Ra(e)}function yt(){if(!Zl&&Ve!==null){Zl=!0;var e=0,t=I;try{var n=Ve;for(I=1;e>=o,l-=o,We=1<<32-je(t)+l|n<N?(H=P,P=null):H=P.sibling;var j=h(f,P,d[N],v);if(j===null){P===null&&(P=H);break}e&&P&&j.alternate===null&&t(f,P),c=i(j,c,N),_===null?x=j:_.sibling=j,_=j,P=H}if(N===d.length)return n(f,P),$&&kt(f,N),x;if(P===null){for(;NN?(H=P,P=null):H=P.sibling;var ze=h(f,P,j.value,v);if(ze===null){P===null&&(P=H);break}e&&P&&ze.alternate===null&&t(f,P),c=i(ze,c,N),_===null?x=ze:_.sibling=ze,_=ze,P=H}if(j.done)return n(f,P),$&&kt(f,N),x;if(P===null){for(;!j.done;N++,j=d.next())j=m(f,j.value,v),j!==null&&(c=i(j,c,N),_===null?x=j:_.sibling=j,_=j);return $&&kt(f,N),x}for(P=r(f,P);!j.done;N++,j=d.next())j=S(P,f,N,j.value,v),j!==null&&(e&&j.alternate!==null&&P.delete(j.key===null?N:j.key),c=i(j,c,N),_===null?x=j:_.sibling=j,_=j);return e&&P.forEach(function(hn){return t(f,hn)}),$&&kt(f,N),x}function z(f,c,d,v){if(typeof d=="object"&&d!==null&&d.type===Ft&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case fr:e:{for(var x=d.key,_=c;_!==null;){if(_.key===x){if(x=d.type,x===Ft){if(_.tag===7){n(f,_.sibling),c=l(_,d.props.children),c.return=f,f=c;break e}}else if(_.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===qe&&Hu(x)===_.type){n(f,_.sibling),c=l(_,d.props),c.ref=kn(f,_,d),c.return=f,f=c;break e}n(f,_);break}else t(f,_);_=_.sibling}d.type===Ft?(c=Nt(d.props.children,f.mode,v,d.key),c.return=f,f=c):(v=Fr(d.type,d.key,d.props,null,f.mode,v),v.ref=kn(f,c,d),v.return=f,f=v)}return o(f);case Ut:e:{for(_=d.key;c!==null;){if(c.key===_)if(c.tag===4&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(f,c.sibling),c=l(c,d.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=li(d,f.mode,v),c.return=f,f=c}return o(f);case qe:return _=d._init,z(f,c,_(d._payload),v)}if(_n(d))return y(f,c,d,v);if(vn(d))return g(f,c,d,v);xr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,d),c.return=f,f=c):(n(f,c),c=ri(d,f.mode,v),c.return=f,f=c),o(f)):n(f,c)}return z}var ln=Fa(!0),$a=Fa(!1),or={},Be=gt(or),Xn=gt(or),Gn=gt(or);function _t(e){if(e===or)throw Error(w(174));return e}function jo(e,t){switch(M(Gn,t),M(Xn,e),M(Be,or),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:gi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=gi(t,e)}F(Be),M(Be,t)}function on(){F(Be),F(Xn),F(Gn)}function Ba(e){_t(Gn.current);var t=_t(Be.current),n=gi(t,e.type);t!==n&&(M(Xn,e),M(Be,n))}function Do(e){Xn.current===e&&(F(Be),F(Xn))}var B=gt(0);function tl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jl=[];function Io(){for(var e=0;en?n:4,e(!0);var r=ql.transition;ql.transition={};try{e(!1),t()}finally{I=n,ql.transition=r}}function nc(){return Ne().memoizedState}function Wd(e,t,n){var r=ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rc(e))lc(t,n);else if(n=Da(e,t,n,r),n!==null){var l=se();De(n,e,r,l),ic(n,t,r)}}function Hd(e,t,n){var r=ft(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rc(e))lc(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,Ie(u,o)){var s=t.interleaved;s===null?(l.next=l,To(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=Da(e,t,l,r),n!==null&&(l=se(),De(n,e,r,l),ic(n,t,r))}}function rc(e){var t=e.alternate;return e===A||t!==null&&t===A}function lc(e,t){jn=nl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ic(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,go(e,n)}}var rl={readContext:Pe,useCallback:re,useContext:re,useEffect:re,useImperativeHandle:re,useInsertionEffect:re,useLayoutEffect:re,useMemo:re,useReducer:re,useRef:re,useState:re,useDebugValue:re,useDeferredValue:re,useTransition:re,useMutableSource:re,useSyncExternalStore:re,useId:re,unstable_isNewReconciler:!1},Qd={readContext:Pe,useCallback:function(e,t){return Ue().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:Yu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Dr(4194308,4,Ja.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Dr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dr(4,2,e,t)},useMemo:function(e,t){var n=Ue();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ue();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Wd.bind(null,A,e),[r.memoizedState,e]},useRef:function(e){var t=Ue();return e={current:e},t.memoizedState=e},useState:Qu,useDebugValue:Bo,useDeferredValue:function(e){return Ue().memoizedState=e},useTransition:function(){var e=Qu(!1),t=e[0];return e=Vd.bind(null,e[1]),Ue().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=A,l=Ue();if($){if(n===void 0)throw Error(w(407));n=n()}else{if(n=t(),b===null)throw Error(w(349));Rt&30||Wa(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Yu(Qa.bind(null,r,i,e),[e]),r.flags|=2048,qn(9,Ha.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ue(),t=b.identifierPrefix;if($){var n=He,r=We;n=(r&~(1<<32-je(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Fe]=t,e[Kn]=r,hc(e,t,!1,!1),t.stateNode=e;e:{switch(o=wi(n,r),n){case"dialog":U("cancel",e),U("close",e),l=r;break;case"iframe":case"object":case"embed":U("load",e),l=r;break;case"video":case"audio":for(l=0;lsn&&(t.flags|=128,r=!0,xn(i,!1),t.lanes=4194304)}else{if(!r)if(e=tl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!$)return le(t),null}else 2*Y()-i.renderingStartTime>sn&&n!==1073741824&&(t.flags|=128,r=!0,xn(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Y(),t.sibling=null,n=B.current,M(B,r?n&1|2:n&1),t):(le(t),null);case 22:case 23:return Yo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(le(t),t.subtreeFlags&6&&(t.flags|=8192)):le(t),null;case 24:return null;case 25:return null}throw Error(w(156,t.tag))}function bd(e,t){switch(Po(t),t.tag){case 1:return he(t.type)&&Xr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return on(),F(pe),F(oe),Io(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Do(t),null;case 13:if(F(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(w(340));rn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(B),null;case 4:return on(),null;case 10:return Ro(t.type._context),null;case 22:case 23:return Yo(),null;case 24:return null;default:return null}}var Cr=!1,ie=!1,ep=typeof WeakSet=="function"?WeakSet:Set,E=null;function Kt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){W(e,t,r)}else n.current=null}function Yi(e,t,n){try{n()}catch(r){W(e,t,r)}}var ts=!1;function tp(e,t){if(Li=Hr,e=Sa(),Co(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,s=-1,a=0,p=0,m=e,h=null;t:for(;;){for(var S;m!==n||l!==0&&m.nodeType!==3||(u=o+l),m!==i||r!==0&&m.nodeType!==3||(s=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(S=m.firstChild)!==null;)h=m,m=S;for(;;){if(m===e)break t;if(h===n&&++a===l&&(u=o),h===i&&++p===r&&(s=o),(S=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=S}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ri={focusedElem:e,selectionRange:n},Hr=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,z=y.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?g:Re(t.type,g),z);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var d=t.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(w(163))}}catch(v){W(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return y=ts,ts=!1,y}function Dn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Yi(t,n,i)}l=l.next}while(l!==r)}}function kl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ki(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function gc(e){var t=e.alternate;t!==null&&(e.alternate=null,gc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fe],delete t[Kn],delete t[ji],delete t[Ud],delete t[Fd])),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 yc(e){return e.tag===5||e.tag===3||e.tag===4}function ns(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yc(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 Xi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kr));else if(r!==4&&(e=e.child,e!==null))for(Xi(e,t,n),e=e.sibling;e!==null;)Xi(e,t,n),e=e.sibling}function Gi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gi(e,t,n),e=e.sibling;e!==null;)Gi(e,t,n),e=e.sibling}var ee=null,Te=!1;function Je(e,t,n){for(n=n.child;n!==null;)wc(e,t,n),n=n.sibling}function wc(e,t,n){if($e&&typeof $e.onCommitFiberUnmount=="function")try{$e.onCommitFiberUnmount(pl,n)}catch{}switch(n.tag){case 5:ie||Kt(n,t);case 6:var r=ee,l=Te;ee=null,Je(e,t,n),ee=r,Te=l,ee!==null&&(Te?(e=ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ee.removeChild(n.stateNode));break;case 18:ee!==null&&(Te?(e=ee,n=n.stateNode,e.nodeType===8?Gl(e.parentNode,n):e.nodeType===1&&Gl(e,n),Vn(e)):Gl(ee,n.stateNode));break;case 4:r=ee,l=Te,ee=n.stateNode.containerInfo,Te=!0,Je(e,t,n),ee=r,Te=l;break;case 0:case 11:case 14:case 15:if(!ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Yi(n,t,o),l=l.next}while(l!==r)}Je(e,t,n);break;case 1:if(!ie&&(Kt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){W(n,t,u)}Je(e,t,n);break;case 21:Je(e,t,n);break;case 22:n.mode&1?(ie=(r=ie)||n.memoizedState!==null,Je(e,t,n),ie=r):Je(e,t,n);break;default:Je(e,t,n)}}function rs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ep),t.forEach(function(r){var l=cp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Le(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rp(r/1960))-r,10e?16:e,rt===null)var r=!1;else{if(e=rt,rt=null,ol=0,D&6)throw Error(w(331));var l=D;for(D|=4,E=e.current;E!==null;){var i=E,o=i.child;if(E.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sY()-Ho?Pt(e,0):Wo|=n),me(e,t)}function Nc(e,t){t===0&&(e.mode&1?(t=mr,mr<<=1,!(mr&130023424)&&(mr=4194304)):t=1);var n=se();e=Xe(e,t),e!==null&&(rr(e,t,n),me(e,n))}function ap(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nc(e,n)}function cp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(w(314))}r!==null&&r.delete(t),Nc(e,n)}var zc;zc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pe.current)de=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return de=!1,Jd(e,t,n);de=!!(e.flags&131072)}else de=!1,$&&t.flags&1048576&&Ta(t,Jr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ir(e,t),e=t.pendingProps;var l=nn(t,oe.current);bt(t,n),l=Uo(null,t,r,e,l,n);var i=Fo();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,he(r)?(i=!0,Gr(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Oo(t),l.updater=wl,t.stateNode=l,l._reactInternals=t,$i(t,r,e,n),t=Vi(null,t,r,!0,i,n)):(t.tag=0,$&&i&&_o(t),ue(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ir(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=dp(r),e=Re(r,e),l){case 0:t=Ai(null,t,r,e,n);break e;case 1:t=qu(null,t,r,e,n);break e;case 11:t=Zu(null,t,r,e,n);break e;case 14:t=Ju(null,t,r,Re(r.type,e),n);break e}throw Error(w(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),Ai(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),qu(e,t,r,l,n);case 3:e:{if(fc(t),e===null)throw Error(w(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Ia(e,t),el(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=un(Error(w(423)),t),t=bu(e,t,r,n,l);break e}else if(r!==l){l=un(Error(w(424)),t),t=bu(e,t,r,n,l);break e}else for(ge=st(t.stateNode.containerInfo.firstChild),ye=t,$=!0,Oe=null,n=$a(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rn(),r===l){t=Ge(e,t,n);break e}ue(e,t,r,n)}t=t.child}return t;case 5:return Ba(t),e===null&&Mi(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Ti(r,l)?o=null:i!==null&&Ti(r,i)&&(t.flags|=32),cc(e,t),ue(e,t,o,n),t.child;case 6:return e===null&&Mi(t),null;case 13:return dc(e,t,n);case 4:return jo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ln(t,null,r,n):ue(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),Zu(e,t,r,l,n);case 7:return ue(e,t,t.pendingProps,n),t.child;case 8:return ue(e,t,t.pendingProps.children,n),t.child;case 12:return ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,M(qr,r._currentValue),r._currentValue=o,i!==null)if(Ie(i.value,o)){if(i.children===l.children&&!pe.current){t=Ge(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Qe(-1,n&-n),s.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var p=a.pending;p===null?s.next=s:(s.next=p.next,p.next=s),a.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Ui(i.return,n,t),u.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(w(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Ui(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ue(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,bt(t,n),l=Pe(l),r=r(l),t.flags|=1,ue(e,t,r,n),t.child;case 14:return r=t.type,l=Re(r,t.pendingProps),l=Re(r.type,l),Ju(e,t,r,l,n);case 15:return sc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),Ir(e,t),t.tag=1,he(r)?(e=!0,Gr(t)):e=!1,bt(t,n),Ua(t,r,l),$i(t,r,l,n),Vi(null,t,r,!0,e,n);case 19:return pc(e,t,n);case 22:return ac(e,t,n)}throw Error(w(156,t.tag))};function Lc(e,t){return ta(e,t)}function fp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ce(e,t,n,r){return new fp(e,t,n,r)}function Xo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dp(e){if(typeof e=="function")return Xo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===po)return 11;if(e===ho)return 14}return 2}function dt(e,t){var n=e.alternate;return n===null?(n=Ce(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fr(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Xo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ft:return Nt(n.children,l,i,t);case fo:o=8,l|=8;break;case ai:return e=Ce(12,n,t,l|2),e.elementType=ai,e.lanes=i,e;case ci:return e=Ce(13,n,t,l),e.elementType=ci,e.lanes=i,e;case fi:return e=Ce(19,n,t,l),e.elementType=fi,e.lanes=i,e;case Fs:return El(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ms:o=10;break e;case Us:o=9;break e;case po:o=11;break e;case ho:o=14;break e;case qe:o=16,r=null;break e}throw Error(w(130,e==null?e:typeof e,""))}return t=Ce(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Nt(e,t,n,r){return e=Ce(7,e,r,t),e.lanes=n,e}function El(e,t,n,r){return e=Ce(22,e,r,t),e.elementType=Fs,e.lanes=n,e.stateNode={isHidden:!1},e}function ri(e,t,n){return e=Ce(6,e,null,t),e.lanes=n,e}function li(e,t,n){return t=Ce(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pp(e,t,n,r,l){this.tag=t,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=Fl(0),this.expirationTimes=Fl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Go(e,t,n,r,l,i,o,u,s){return e=new pp(e,t,n,u,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ce(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(i),e}function hp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(jc)}catch(e){console.error(e)}}jc(),Ts.exports=Se;var wp=Ts.exports,fs=wp;ui.createRoot=fs.createRoot,ui.hydrateRoot=fs.hydrateRoot;/** + * @remix-run/router v1.13.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function er(){return er=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function bo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function kp(){return Math.random().toString(36).substr(2,8)}function ps(e,t){return{usr:e.state,key:e.key,idx:t}}function eo(e,t,n,r){return n===void 0&&(n=null),er({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?dn(t):t,{state:n,key:t&&t.key||r||kp()})}function al(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function dn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function xp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,u=lt.Pop,s=null,a=p();a==null&&(a=0,o.replaceState(er({},o.state,{idx:a}),""));function p(){return(o.state||{idx:null}).idx}function m(){u=lt.Pop;let z=p(),f=z==null?null:z-a;a=z,s&&s({action:u,location:g.location,delta:f})}function h(z,f){u=lt.Push;let c=eo(g.location,z,f);n&&n(c,z),a=p()+1;let d=ps(c,a),v=g.createHref(c);try{o.pushState(d,"",v)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;l.location.assign(v)}i&&s&&s({action:u,location:g.location,delta:1})}function S(z,f){u=lt.Replace;let c=eo(g.location,z,f);n&&n(c,z),a=p();let d=ps(c,a),v=g.createHref(c);o.replaceState(d,"",v),i&&s&&s({action:u,location:g.location,delta:0})}function y(z){let f=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof z=="string"?z:al(z);return X(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let g={get action(){return u},get location(){return e(l,o)},listen(z){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(ds,m),s=z,()=>{l.removeEventListener(ds,m),s=null}},createHref(z){return t(l,z)},createURL:y,encodeLocation(z){let f=y(z);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:h,replace:S,go(z){return o.go(z)}};return g}var hs;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(hs||(hs={}));function Ep(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?dn(t):t,l=eu(r.pathname||"/",n);if(l==null)return null;let i=Dc(e);Cp(i);let o=null;for(let u=0;o==null&&u{let s={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};s.relativePath.startsWith("/")&&(X(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let a=pt([r,s.relativePath]),p=n.concat(s);i.children&&i.children.length>0&&(X(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),Dc(i.children,t,p,a)),!(i.path==null&&!i.index)&&t.push({path:a,score:Tp(a,i.index),routesMeta:p})};return e.forEach((i,o)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))l(i,o);else for(let s of Ic(i.path))l(i,o,s)}),t}function Ic(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=Ic(r.join("/")),u=[];return u.push(...o.map(s=>s===""?i:[i,s].join("/"))),l&&u.push(...o),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function Cp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Op(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const _p=/^:\w+$/,Pp=3,Np=2,zp=1,Lp=10,Rp=-2,ms=e=>e==="*";function Tp(e,t){let n=e.split("/"),r=n.length;return n.some(ms)&&(r+=Rp),t&&(r+=Np),n.filter(l=>!ms(l)).reduce((l,i)=>l+(_p.test(i)?Pp:i===""?zp:Lp),r)}function Op(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function jp(e,t){let{routesMeta:n}=e,r={},l="/",i=[];for(let o=0;o{let{paramName:h,isOptional:S}=p;if(h==="*"){let g=u[m]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const y=u[m];return S&&!y?a[h]=void 0:a[h]=Up(y||"",h),a},{}),pathname:i,pathnameBase:o,pattern:e}}function Ip(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),bo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,u,s)=>(r.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Mp(e){try{return decodeURI(e)}catch(t){return bo(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Up(e,t){try{return decodeURIComponent(e)}catch(n){return bo(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function eu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Fp(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?dn(e):e;return{pathname:n?n.startsWith("/")?n:$p(n,t):t,search:Ap(r),hash:Vp(l)}}function $p(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function ii(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Mc(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Uc(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=dn(e):(l=er({},e),X(!l.pathname||!l.pathname.includes("?"),ii("?","pathname","search",l)),X(!l.pathname||!l.pathname.includes("#"),ii("#","pathname","hash",l)),X(!l.search||!l.search.includes("#"),ii("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,u;if(o==null)u=n;else if(r){let m=t[t.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),m.pop();l.pathname=h.join("/")}u="/"+m.join("/")}else{let m=t.length-1;if(o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),m-=1;l.pathname=h.join("/")}u=m>=0?t[m]:"/"}let s=Fp(l,u),a=o&&o!=="/"&&o.endsWith("/"),p=(i||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(a||p)&&(s.pathname+="/"),s}const pt=e=>e.join("/").replace(/\/\/+/g,"/"),Bp=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ap=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Vp=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Wp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Fc=["post","put","patch","delete"];new Set(Fc);const Hp=["get",...Fc];new Set(Hp);/** + * React Router v6.20.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.pathnameBase)),o=k.useRef(!1);return Bc(()=>{o.current=!0}),k.useCallback(function(s,a){if(a===void 0&&(a={}),!o.current)return;if(typeof s=="number"){n.go(s);return}let p=Uc(s,JSON.parse(i),l,a.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:pt([t,p.pathname])),(a.replace?n.replace:n.push)(p,a.state,a)},[t,n,i,l,e])}function Ac(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=k.useContext(It),{pathname:l}=Ll(),i=JSON.stringify(Mc(r).map(o=>o.pathnameBase));return k.useMemo(()=>Uc(e,JSON.parse(i),l,n==="path"),[e,i,l,n])}function Gp(e,t){return Zp(e,t)}function Zp(e,t,n){ur()||X(!1);let{navigator:r}=k.useContext(pn),{matches:l}=k.useContext(It),i=l[l.length-1],o=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let s=Ll(),a;if(t){var p;let g=typeof t=="string"?dn(t):t;u==="/"||(p=g.pathname)!=null&&p.startsWith(u)||X(!1),a=g}else a=s;let m=a.pathname||"/",h=u==="/"?m:m.slice(u.length)||"/",S=Ep(e,{pathname:h}),y=th(S&&S.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:pt([u,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?u:pt([u,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),l,n);return t&&y?k.createElement(zl.Provider,{value:{location:cl({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:lt.Pop}},y):y}function Jp(){let e=ih(),t=Wp(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:l},n):null,i)}const qp=k.createElement(Jp,null);class bp extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?k.createElement(It.Provider,{value:this.props.routeContext},k.createElement($c.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function eh(e){let{routeContext:t,match:n,children:r}=e,l=k.useContext(tu);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(It.Provider,{value:t},r)}function th(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var l;if((l=n)!=null&&l.errors)e=n.matches;else return null}let i=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let u=i.findIndex(s=>s.route.id&&(o==null?void 0:o[s.route.id]));u>=0||X(!1),i=i.slice(0,Math.min(i.length,u+1))}return i.reduceRight((u,s,a)=>{let p=s.route.id?o==null?void 0:o[s.route.id]:null,m=null;n&&(m=s.route.errorElement||qp);let h=t.concat(i.slice(0,a+1)),S=()=>{let y;return p?y=m:s.route.Component?y=k.createElement(s.route.Component,null):s.route.element?y=s.route.element:y=u,k.createElement(eh,{match:s,routeContext:{outlet:u,matches:h,isDataRoute:n!=null},children:y})};return n&&(s.route.ErrorBoundary||s.route.errorElement||a===0)?k.createElement(bp,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:S(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):S()},null)}var Vc=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vc||{}),fl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fl||{});function nh(e){let t=k.useContext(tu);return t||X(!1),t}function rh(e){let t=k.useContext(Qp);return t||X(!1),t}function lh(e){let t=k.useContext(It);return t||X(!1),t}function Wc(e){let t=lh(),n=t.matches[t.matches.length-1];return n.route.id||X(!1),n.route.id}function ih(){var e;let t=k.useContext($c),n=rh(fl.UseRouteError),r=Wc(fl.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function oh(){let{router:e}=nh(Vc.UseNavigateStable),t=Wc(fl.UseNavigateStable),n=k.useRef(!1);return Bc(()=>{n.current=!0}),k.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,cl({fromRouteId:t},i)))},[e,t])}function to(e){X(!1)}function uh(e){let{basename:t="/",children:n=null,location:r,navigationType:l=lt.Pop,navigator:i,static:o=!1}=e;ur()&&X(!1);let u=t.replace(/^\/*/,"/"),s=k.useMemo(()=>({basename:u,navigator:i,static:o}),[u,i,o]);typeof r=="string"&&(r=dn(r));let{pathname:a="/",search:p="",hash:m="",state:h=null,key:S="default"}=r,y=k.useMemo(()=>{let g=eu(a,u);return g==null?null:{location:{pathname:g,search:p,hash:m,state:h,key:S},navigationType:l}},[u,a,p,m,h,S,l]);return y==null?null:k.createElement(pn.Provider,{value:s},k.createElement(zl.Provider,{children:n,value:y}))}function sh(e){let{children:t,location:n}=e;return Gp(no(t),n)}new Promise(()=>{});function no(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,l)=>{if(!k.isValidElement(r))return;let i=[...t,l];if(r.type===k.Fragment){n.push.apply(n,no(r.props.children,i));return}r.type!==to&&X(!1),!r.props.index||!r.props.children||X(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=no(r.props.children,i)),n.push(o)}),n}/** + * React Router DOM v6.20.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ro(){return ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function ch(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fh(e,t){return e.button===0&&(!t||t==="_self")&&!ch(e)}const dh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ph="startTransition",vs=af[ph];function hh(e){let{basename:t,children:n,future:r,window:l}=e,i=k.useRef();i.current==null&&(i.current=Sp({window:l,v5Compat:!0}));let o=i.current,[u,s]=k.useState({action:o.action,location:o.location}),{v7_startTransition:a}=r||{},p=k.useCallback(m=>{a&&vs?vs(()=>s(m)):s(m)},[s,a]);return k.useLayoutEffect(()=>o.listen(p),[o,p]),k.createElement(uh,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o})}const mh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gs=k.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:u,target:s,to:a,preventScrollReset:p,unstable_viewTransition:m}=t,h=ah(t,dh),{basename:S}=k.useContext(pn),y,g=!1;if(typeof a=="string"&&vh.test(a)&&(y=a,mh))try{let d=new URL(window.location.href),v=a.startsWith("//")?new URL(d.protocol+a):new URL(a),x=eu(v.pathname,S);v.origin===d.origin&&x!=null?a=x+v.search+v.hash:g=!0}catch{}let z=Yp(a,{relative:l}),f=gh(a,{replace:o,state:u,target:s,preventScrollReset:p,relative:l,unstable_viewTransition:m});function c(d){r&&r(d),d.defaultPrevented||f(d)}return k.createElement("a",ro({},h,{href:y||z,onClick:g||i?r:c,ref:n,target:s}))});var ys;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ys||(ys={}));var ws;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ws||(ws={}));function gh(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o,unstable_viewTransition:u}=t===void 0?{}:t,s=Kp(),a=Ll(),p=Ac(e,{relative:o});return k.useCallback(m=>{if(fh(m,n)){m.preventDefault();let h=r!==void 0?r:al(a)===al(p);s(e,{replace:h,state:l,preventScrollReset:i,relative:o,unstable_viewTransition:u})}},[a,s,p,r,l,n,e,i,o,u])}const yh="/vite.svg",wh="/assets/react-h3aPdYU7.svg";function Sh(){const[e,t]=k.useState(0),n=()=>{t(r=>r+1)};return R.jsxs(R.Fragment,{children:[R.jsxs("div",{id:"head",children:[R.jsx("div",{className:"logo-wrap",children:R.jsxs("a",{href:"https://vitejs.dev",target:"_blank",rel:"noreferrer",children:[R.jsx("div",{className:"dummy"}),R.jsx("img",{src:yh,className:"logo",alt:"Vite logo"})]})}),R.jsx("div",{className:"logo-wrap",children:R.jsxs("a",{href:"https://react.dev",target:"_blank",rel:"noreferrer",children:[R.jsx("div",{className:"dummy"}),R.jsx("img",{src:wh,className:"logo react",alt:"React logo"})]})})]}),R.jsx("h1",{children:"Vite + React"}),R.jsx("div",{className:"card",children:R.jsxs("button",{type:"button",onClick:n,children:["count is ",e]})})]})}function kh(e){const[t,n]=k.useState(!1),[r,l]=k.useState({x:0,y:0}),i=k.useRef(null),o=a=>{if(a.preventDefault(),!i.current)return;i.current.classList.add("dragging"),n(!0),a.currentTarget.setPointerCapture(a.pointerId);const p=a.currentTarget.getBoundingClientRect(),m=a.clientX-p.x,h=a.clientY-p.y;e.handleDrag({clientX:a.clientX,clientY:a.clientY,location:p,size:p}),l({x:m,y:h}),e.handleDragStart(e.dragdataStatic.id)},u=a=>{if(a.preventDefault(),!(t&&i.current))return;const p=a.clientX-r.x,m=a.clientY-r.y;i.current.style.left=`${p}px`,i.current.style.top=`${m}px`;const h=i.current.getBoundingClientRect();e.handleDrag({clientX:a.clientX,clientY:a.clientY,location:{x:p,y:m},size:h})},s=()=>{t&&i.current&&(n(!1),i.current.classList.remove("dragging"))};return R.jsx("div",{ref:i,id:e.dragdataStatic.id,className:"drag-wrap",onPointerDown:o,onPointerMove:u,onPointerUp:s})}function xh(e){var l;const[t,n]=k.useState(!1),r=k.useRef(null);return k.useEffect(()=>{if(e.dragdataDynamic&&e.dragdataStatic){if(!r.current)return;n(e.dragdataStatic.isOver(e.dragdataDynamic,r.current.getBoundingClientRect()))}else n(!1)},[e.dragdataDynamic,e.dragdataStatic]),R.jsx("div",{ref:r,className:t?"drop over":"drop",style:{borderColor:t?(l=e.dragdataStatic)==null?void 0:l.color:"gray"}})}const Eh=240,Ss={clientX:0,clientY:0,location:{x:0,y:0},size:{width:0,height:0}},oi=[{id:"cursor",color:"red",isOver:(e,t)=>{const{clientX:n,clientY:r}=e;return n>=t.left&&n<=t.right&&r>=t.top&&r<=t.bottom}},{id:"center",color:"green",isOver:(e,t)=>{const{location:n,size:r}=e,l=n.x+r.width/2,i=n.y+r.height/2;return l>=t.left&&l<=t.right&&i>=t.top&&i<=t.bottom}},{id:"percent",color:"blue",isOver:(e,t)=>{const{location:n,size:r}=e,l=t.width*t.height,i=Math.min(n.x+r.width,t.right)-Math.max(n.x,t.left);if(i<=0)return!1;const o=Math.min(n.y+r.height,t.bottom)-Math.max(n.y,t.top);return o<=0?!1:i*o>=l*.25}},{id:"fakeCursor",color:"white",isOver:(e,t)=>{const{location:n,size:r}=e,l=n.x+r.width/2,i=n.y;return l>=t.left&&l<=t.right&&i>=t.top&&i<=t.bottom}},{id:"distance",color:"yellow",isOver:(e,t)=>{const{location:n,size:r}=e,l=n.x+r.width/2,i=n.y+r.height/2,o=t.x+t.width/2,u=t.y+t.height/2;return(l-o)**2+(i-u)**2<=1e4}},{id:"velocity",color:"purple",isOver:(e,t)=>{const{location:n,size:r}=e,l=n.x+r.width/2,i=n.y+r.height/2,o=t.x+t.width/2,u=t.y+t.height/2;return(l-o)**2+(i-u)**2<=1e4}}],Ch=e=>{const t=k.useRef(null);return k.useEffect(()=>{const n=new ResizeObserver(r=>e(r));return t.current&&n.observe(t.current),()=>n.disconnect()},[e]),t},_h=nr.memo(Sh),Ph=nr.memo(kh),Nh=nr.memo(xh);function zh(){const[e,t]=k.useState(-1),[n,r]=k.useState(Ss),l=s=>{t(oi.map(a=>a.id).indexOf(s))},i=s=>{r({clientX:s.clientX,clientY:s.clientY,location:s.location,size:s.size})},o=k.useCallback(()=>{t(-1),r(Ss)},[]),u=Ch(o);return R.jsxs(R.Fragment,{children:[R.jsx(_h,{}),R.jsx("div",{id:"drop-wrap",children:Array.from({length:Eh},(s,a)=>R.jsx(Nh,{dragdataDynamic:n,dragdataStatic:oi[e]},`${a}`))}),oi.map((s,a)=>R.jsx(Ph,{dragdataDynamic:n,dragdataStatic:s,handleDragStart:l,handleDrag:i},`${a}`)),R.jsx("div",{ref:u,id:"overlay"})]})}function Lh(){return R.jsxs("div",{children:[R.jsx("h1",{children:"React UI Comparison"}),R.jsx("img",{src:"",alt:""}),R.jsx("nav",{children:R.jsxs("ul",{children:[R.jsx("li",{children:R.jsx(gs,{to:"/",children:"Index"})}),R.jsx("ul",{children:R.jsx("li",{children:R.jsx(gs,{to:"/dnd",children:"Drag & Drop"})})})]})})]})}ui.createRoot(document.getElementById("root")).render(R.jsx(nr.StrictMode,{children:R.jsx(hh,{basename:"react_ui_comparison",children:R.jsxs(sh,{children:[R.jsx(to,{path:"/",element:R.jsx(Lh,{})}),R.jsx(to,{path:"dnd",element:R.jsx(zh,{})})]})})})); diff --git a/docs/assets/index-yVuTKVQ2.css b/docs/assets/index-yVuTKVQ2.css deleted file mode 100644 index 4eef88d..0000000 --- a/docs/assets/index-yVuTKVQ2.css +++ /dev/null @@ -1 +0,0 @@ -#overlay{position:fixed;left:0;top:0;width:100vw;height:100vh;pointer-events:none}#head{display:flex;justify-content:center;align-items:center}.logo-wrap{position:relative}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){.logo{animation:logo-spin infinite 20s linear}}.dummy{position:absolute;width:100%;height:100%}h1{font-size:3.2em;line-height:1.1}.card{padding:2em}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s;color:#fff}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.drag-wrap{cursor:pointer;position:absolute;opacity:.75;will-change:left,top,filter,opacity}.dragging{opacity:.9;filter:drop-shadow(0 0 16px black)}#cursor{left:100px;top:100px;width:100px;height:100px;background-color:red;border-radius:16px}#center{left:200px;top:200px;width:100px;height:100px;background-color:green;border-radius:16px}#center:before,#center:after{content:"";position:absolute;background:black}#center:before{top:50%;left:0;right:0;height:1px}#center:after{left:50%;top:0;bottom:0;width:1px}#percent{left:300px;top:300px;width:300px;height:300px}#percent:after{content:"";position:absolute;width:100%;height:100%;left:0;top:0;background-color:#00f;z-index:-1}#fakeCursor{left:100px;top:400px;width:100px;height:100px;background-image:url(/react_dnd_detectionCompare/assets/computer_cursor_arrow_white-Vu2BSd9j.png);background-position:top;background-repeat:no-repeat;background-size:contain}#fakeCursor:after{content:"";position:absolute;left:50%;top:0;transform:translate(-50%);width:2px;height:2px;background-color:red}#distance{left:200px;top:500px;width:100px;height:100px;background-color:#ff0;border-radius:50%}#distance.dragging{filter:drop-shadow(0 0 32px yellow)}#velocity{left:300px;top:600px;width:50px;height:50px;background-color:purple;border-radius:50%}#drop-wrap{position:absolute;left:0;top:50%;transform:translateY(-50%);pointer-events:none;display:flex;flex-wrap:wrap;justify-content:space-evenly;align-items:center;gap:8px;margin:8px}.drop{width:64px;height:64px;border-style:dashed;border-width:2px;border-color:gray;will-change:filter}.over{filter:brightness(2.5)}: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-user-select:none;user-select:none;-ms-touch-action:none;-webkit-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);overflow:hidden}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}img{pointer-events:none}#root{max-width:1280px;margin:0 auto;text-align:center} diff --git a/docs/index.html b/docs/index.html index da5464c..91436ad 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,11 +2,11 @@ - + Vite + React + TS - - + +
diff --git a/package-lock.json b/package-lock.json index 620950f..65595ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,7 @@ "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.4", + "react-router-dom": "^6.20.1", "typescript": "^5.2.2", "vite": "^5.0.0" } @@ -633,6 +634,15 @@ "node": ">= 8" } }, + "node_modules/@remix-run/router": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.13.1.tgz", + "integrity": "sha512-so+DHzZKsoOcoXrILB4rqDkMDy7NLMErRdOxvzvOKb507YINKUP4Di+shbTZDhSE/pBZ+vr7XGIpcOO0VLSA+Q==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.6.1", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.6.1.tgz", @@ -3323,6 +3333,38 @@ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "dev": true }, + "node_modules/react-router": { + "version": "6.20.1", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.20.1.tgz", + "integrity": "sha512-ccvLrB4QeT5DlaxSFFYi/KR8UMQ4fcD8zBcR71Zp1kaYTC5oJKYAp1cbavzGrogwxca+ubjkd7XjFZKBW8CxPA==", + "dev": true, + "dependencies": { + "@remix-run/router": "1.13.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8" + } + }, + "node_modules/react-router-dom": { + "version": "6.20.1", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.20.1.tgz", + "integrity": "sha512-npzfPWcxfQN35psS7rJgi/EW0Gx6EsNjfdJSAk73U/HqMEJZ2k/8puxfwHFgDQhBGmS3+sjnGbMdMSV45axPQw==", + "dev": true, + "dependencies": { + "@remix-run/router": "1.13.1", + "react-router": "6.20.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8", + "react-dom": ">=16.8" + } + }, "node_modules/reflect.getprototypeof": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.4.tgz", @@ -3875,13 +3917,13 @@ } }, "node_modules/vite": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.4.tgz", - "integrity": "sha512-RzAr8LSvM8lmhB4tQ5OPcBhpjOZRZjuxv9zO5UcxeoY2bd3kP3Ticd40Qma9/BqZ8JS96Ll/jeBX9u+LJZrhVg==", + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.6.tgz", + "integrity": "sha512-MD3joyAEBtV7QZPl2JVVUai6zHms3YOmLR+BpMzLlX2Yzjfcc4gTgNi09d/Rua3F4EtC8zdwPU8eQYyib4vVMQ==", "dev": true, "dependencies": { "esbuild": "^0.19.3", - "postcss": "^8.4.31", + "postcss": "^8.4.32", "rollup": "^4.2.0" }, "bin": { diff --git a/package.json b/package.json index d1b9c06..37ce142 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.4", + "react-router-dom": "^6.20.1", "typescript": "^5.2.2", "vite": "^5.0.0" } diff --git a/src/Defaults.css b/src/Defaults.css index c85a837..5de973d 100644 --- a/src/Defaults.css +++ b/src/Defaults.css @@ -69,7 +69,7 @@ button { background-color: #1a1a1a; cursor: pointer; transition: border-color 0.25s; - color: #ffffff; + color: #646cff; } button:hover { border-color: #646cff; @@ -78,16 +78,3 @@ button:focus, button:focus-visible { outline: 4px auto -webkit-focus-ring-color; } - -@media (prefers-color-scheme: light) { - :root { - color: #213547; - background-color: #ffffff; - } - a:hover { - color: #747bff; - } - button { - background-color: #f9f9f9; - } -} diff --git a/src/Drag.css b/src/Drag.css index 716ecd4..3da7547 100644 --- a/src/Drag.css +++ b/src/Drag.css @@ -62,8 +62,8 @@ left: 300px; top: 300px; /* サイズ */ - width: 300px; - height: 300px; + width: 100px; + height: 100px; } #percent::after { content: ''; diff --git a/src/Index.tsx b/src/Index.tsx new file mode 100644 index 0000000..f6bd137 --- /dev/null +++ b/src/Index.tsx @@ -0,0 +1,23 @@ +import { Link } from 'react-router-dom'; +import './App.css'; + +export function Index() { + return ( +
+

React UI Comparison

+ + +
+ ); +} diff --git a/src/index.css b/src/main.css similarity index 80% rename from src/index.css rename to src/main.css index 2e543eb..d429753 100644 --- a/src/index.css +++ b/src/main.css @@ -39,3 +39,16 @@ img { margin: 0 auto; text-align: center; } + +@media (prefers-color-scheme: light) { + :root { + color: #213547; + background-color: #ffffff; + } + a:hover { + color: #747bff; + } + button { + background-color: #f9f9f9; + } +} diff --git a/src/main.tsx b/src/main.tsx index f0cc0a0..2e09a65 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,10 +1,17 @@ import React from 'react'; import reactDom from 'react-dom/client'; +import { BrowserRouter, Route, Routes } from 'react-router-dom'; import { App } from './App.tsx'; -import './index.css'; +import { Index } from './Index.tsx'; +import './main.css'; reactDom.createRoot(document.getElementById('root') as HTMLElement).render( - + + + } /> + } /> + + , ); diff --git a/vite.config.ts b/vite.config.ts index 37c5917..a8e693c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,5 +5,5 @@ import { defineConfig } from 'vite'; // biome-ignore lint/nursery/noDefaultExport: export default defineConfig({ plugins: [react()], - base: 'react_dnd_detectionCompare', + base: process.env.VITE_BASE_PATH, });