diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..868fa85 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +node_modules +README.md +.gitignore diff --git a/Dockerfile.dev b/Dockerfile.dev new file mode 100644 index 0000000..64be069 --- /dev/null +++ b/Dockerfile.dev @@ -0,0 +1,21 @@ +FROM node:alpine + + +# Create app directory +WORKDIR /mentor_mentee_app + + +# Install app dependencies +# A wildcard is used to ensure both package.json AND package-lock.json are copied +# where available (npm@5+) +COPY ./package.json /mentor_mentee_app + +RUN npm install +# If you are building your code for production +# RUN npm ci --omit=dev + +# Bundle app source +COPY . /mentor_mentee_app/ + +EXPOSE 5173 +CMD npm run dev -- --host \ No newline at end of file diff --git a/dist/assets/index-63bb8e50.js b/dist/assets/index-63bb8e50.js new file mode 100644 index 0000000..a324125 --- /dev/null +++ b/dist/assets/index-63bb8e50.js @@ -0,0 +1,101 @@ +function oy(e,t){for(var n=0;nr[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function iy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _d={exports:{}},al={},Td={exports:{}},W={};/** + * @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 Io=Symbol.for("react.element"),ly=Symbol.for("react.portal"),uy=Symbol.for("react.fragment"),ay=Symbol.for("react.strict_mode"),sy=Symbol.for("react.profiler"),cy=Symbol.for("react.provider"),fy=Symbol.for("react.context"),dy=Symbol.for("react.forward_ref"),py=Symbol.for("react.suspense"),hy=Symbol.for("react.memo"),my=Symbol.for("react.lazy"),Oc=Symbol.iterator;function yy(e){return e===null||typeof e!="object"?null:(e=Oc&&e[Oc]||e["@@iterator"],typeof e=="function"?e:null)}var Ld={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jd=Object.assign,Dd={};function Lr(e,t,n){this.props=e,this.context=t,this.refs=Dd,this.updater=n||Ld}Lr.prototype.isReactComponent={};Lr.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")};Lr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Md(){}Md.prototype=Lr.prototype;function rs(e,t,n){this.props=e,this.context=t,this.refs=Dd,this.updater=n||Ld}var os=rs.prototype=new Md;os.constructor=rs;jd(os,Lr.prototype);os.isPureReactComponent=!0;var _c=Array.isArray,Ad=Object.prototype.hasOwnProperty,is={current:null},zd={key:!0,ref:!0,__self:!0,__source:!0};function Fd(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Ad.call(t,r)&&!zd.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1>>1,ve=L[se];if(0>>1;seo(Lt,b))xto(qn,Lt)?(L[se]=qn,L[xt]=b,se=xt):(L[se]=Lt,L[te]=b,se=te);else if(xto(qn,b))L[se]=qn,L[xt]=b,se=xt;else break e}}return $}function o(L,$){var b=L.sortIndex-$.sortIndex;return b!==0?b:L.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var a=[],s=[],c=1,f=null,p=3,w=!1,m=!1,v=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(L){for(var $=n(s);$!==null;){if($.callback===null)r(s);else if($.startTime<=L)r(s),$.sortIndex=$.expirationTime,t(a,$);else break;$=n(s)}}function y(L){if(v=!1,g(L),!m)if(n(a)!==null)m=!0,Ke(k);else{var $=n(s);$!==null&&Et(y,$.startTime-L)}}function k(L,$){m=!1,v&&(v=!1,h(j),j=-1),w=!0;var b=p;try{for(g($),f=n(a);f!==null&&(!(f.expirationTime>$)||L&&!ie());){var se=f.callback;if(typeof se=="function"){f.callback=null,p=f.priorityLevel;var ve=se(f.expirationTime<=$);$=e.unstable_now(),typeof ve=="function"?f.callback=ve:f===n(a)&&r(a),g($)}else r(a);f=n(a)}if(f!==null)var Qn=!0;else{var te=n(s);te!==null&&Et(y,te.startTime-$),Qn=!1}return Qn}finally{f=null,p=b,w=!1}}var T=!1,O=null,j=-1,H=5,A=-1;function ie(){return!(e.unstable_now()-AL||125se?(L.sortIndex=b,t(s,L),n(a)===null&&L===n(s)&&(v?(h(j),j=-1):v=!0,Et(y,b-se))):(L.sortIndex=ve,t(a,L),m||w||(m=!0,Ke(k))),L},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(L){var $=p;return function(){var b=p;p=$;try{return L.apply(this,arguments)}finally{p=b}}}})(Bd);Ud.exports=Bd;var _y=Ud.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 bd=_,Ye=_y;function R(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"),Xu=Object.prototype.hasOwnProperty,Ty=/^[: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]*$/,Lc={},jc={};function Ly(e){return Xu.call(jc,e)?!0:Xu.call(Lc,e)?!1:Ty.test(e)?jc[e]=!0:(Lc[e]=!0,!1)}function jy(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 Dy(e,t,n,r){if(t===null||typeof t>"u"||jy(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 Ue(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Ue(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Ue(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Ue(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Ue(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){Le[e]=new Ue(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Ue(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Ue(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Ue(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Ue(e,5,!1,e.toLowerCase(),null,!1,!1)});var us=/[\-:]([a-z])/g;function as(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(us,as);Le[t]=new Ue(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(us,as);Le[t]=new Ue(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(us,as);Le[t]=new Ue(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Ue(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Ue("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Ue(e,1,!1,e.toLowerCase(),null,!0,!0)});function ss(e,t,n,r){var o=Le.hasOwnProperty(t)?Le[t]:null;(o!==null?o.type!==0:r||!(2u||o[l]!==i[u]){var a=` +`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=u);break}}}finally{du=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?eo(e):""}function My(e){switch(e.tag){case 5:return eo(e.type);case 16:return eo("Lazy");case 13:return eo("Suspense");case 19:return eo("SuspenseList");case 0:case 2:case 15:return e=pu(e.type,!1),e;case 11:return e=pu(e.type.render,!1),e;case 1:return e=pu(e.type,!0),e;default:return""}}function na(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 Xn:return"Fragment";case Gn:return"Portal";case Zu:return"Profiler";case cs:return"StrictMode";case ea:return"Suspense";case ta:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wd:return(e.displayName||"Context")+".Consumer";case Vd:return(e._context.displayName||"Context")+".Provider";case fs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ds:return t=e.displayName||null,t!==null?t:na(e.type)||"Memo";case tn:t=e._payload,e=e._init;try{return na(e(t))}catch{}}return null}function Ay(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 na(t);case 8:return t===cs?"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 wn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zy(e){var t=Qd(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xo(e){e._valueTracker||(e._valueTracker=zy(e))}function qd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ti(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 ra(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wn(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 Jd(e,t){t=t.checked,t!=null&&ss(e,"checked",t,!1)}function oa(e,t){Jd(e,t);var n=wn(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")?ia(e,t.type,n):t.hasOwnProperty("defaultValue")&&ia(e,t.type,wn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ac(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 ia(e,t,n){(t!=="number"||Ti(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var to=Array.isArray;function fr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Zo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var io={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},Fy=["Webkit","ms","Moz","O"];Object.keys(io).forEach(function(e){Fy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),io[t]=io[e]})});function Zd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||io.hasOwnProperty(e)&&io[e]?(""+t).trim():t+"px"}function ep(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Zd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var $y=de({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 aa(e,t){if(t){if($y[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function sa(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 ca=null;function ps(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fa=null,dr=null,pr=null;function $c(e){if(e=bo(e)){if(typeof fa!="function")throw Error(R(280));var t=e.stateNode;t&&(t=pl(t),fa(e.stateNode,e.type,t))}}function tp(e){dr?pr?pr.push(e):pr=[e]:dr=e}function np(){if(dr){var e=dr,t=pr;if(pr=dr=null,$c(e),t)for(e=0;e>>=0,e===0?32:31-(Jy(e)/Yy|0)|0}var ei=64,ti=4194304;function no(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 Mi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var u=l&~o;u!==0?r=no(u):(i&=l,i!==0&&(r=no(i)))}else l=n&~o,l!==0?r=no(l):i!==0&&(r=no(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===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 Uo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vt(t),e[t]=n}function ev(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=uo),Qc=String.fromCharCode(32),qc=!1;function xp(e,t){switch(e){case"keyup":return Ov.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zn=!1;function Tv(e,t){switch(e){case"compositionend":return Cp(t);case"keypress":return t.which!==32?null:(qc=!0,Qc);case"textInput":return e=t.data,e===Qc&&qc?null:e;default:return null}}function Lv(e,t){if(Zn)return e==="compositionend"||!Es&&xp(e,t)?(e=Sp(),vi=gs=un=null,Zn=!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=Xc(n)}}function Np(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Np(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Op(){for(var e=window,t=Ti();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ti(e.document)}return t}function xs(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 Uv(e){var t=Op(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Np(n.ownerDocument.documentElement,n)){if(r!==null&&xs(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Zc(n,i);var l=Zc(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,er=null,va=null,so=null,ga=!1;function ef(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ga||er==null||er!==Ti(r)||(r=er,"selectionStart"in r&&xs(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}),so&&Co(so,r)||(so=r,r=Fi(va,"onSelect"),0rr||(e.current=ka[rr],ka[rr]=null,rr--)}function ne(e,t){rr++,ka[rr]=e.current,e.current=t}var Sn={},ze=kn(Sn),He=kn(!1),Fn=Sn;function Er(e,t){var n=e.type.contextTypes;if(!n)return Sn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ve(e){return e=e.childContextTypes,e!=null}function Ii(){oe(He),oe(ze)}function af(e,t,n){if(ze.current!==Sn)throw Error(R(168));ne(ze,t),ne(He,n)}function Fp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,Ay(e)||"Unknown",o));return de({},n,r)}function Ui(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sn,Fn=ze.current,ne(ze,e),ne(He,He.current),!0}function sf(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Fp(e,t,Fn),r.__reactInternalMemoizedMergedChildContext=e,oe(He),oe(ze),ne(ze,e)):oe(He),ne(He,n)}var At=null,hl=!1,Nu=!1;function $p(e){At===null?At=[e]:At.push(e)}function Xv(e){hl=!0,$p(e)}function Pn(){if(!Nu&&At!==null){Nu=!0;var e=0,t=q;try{var n=At;for(q=1;e>=l,o-=l,zt=1<<32-vt(t)+o|n<j?(H=O,O=null):H=O.sibling;var A=p(h,O,g[j],y);if(A===null){O===null&&(O=H);break}e&&O&&A.alternate===null&&t(h,O),d=i(A,d,j),T===null?k=A:T.sibling=A,T=A,O=H}if(j===g.length)return n(h,O),ae&&On(h,j),k;if(O===null){for(;jj?(H=O,O=null):H=O.sibling;var ie=p(h,O,A.value,y);if(ie===null){O===null&&(O=H);break}e&&O&&ie.alternate===null&&t(h,O),d=i(ie,d,j),T===null?k=ie:T.sibling=ie,T=ie,O=H}if(A.done)return n(h,O),ae&&On(h,j),k;if(O===null){for(;!A.done;j++,A=g.next())A=f(h,A.value,y),A!==null&&(d=i(A,d,j),T===null?k=A:T.sibling=A,T=A);return ae&&On(h,j),k}for(O=r(h,O);!A.done;j++,A=g.next())A=w(O,h,j,A.value,y),A!==null&&(e&&A.alternate!==null&&O.delete(A.key===null?j:A.key),d=i(A,d,j),T===null?k=A:T.sibling=A,T=A);return e&&O.forEach(function(ee){return t(h,ee)}),ae&&On(h,j),k}function C(h,d,g,y){if(typeof g=="object"&&g!==null&&g.type===Xn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Go:e:{for(var k=g.key,T=d;T!==null;){if(T.key===k){if(k=g.type,k===Xn){if(T.tag===7){n(h,T.sibling),d=o(T,g.props.children),d.return=h,h=d;break e}}else if(T.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===tn&&yf(k)===T.type){n(h,T.sibling),d=o(T,g.props),d.ref=Kr(h,T,g),d.return=h,h=d;break e}n(h,T);break}else t(h,T);T=T.sibling}g.type===Xn?(d=zn(g.props.children,h.mode,y,g.key),d.return=h,h=d):(y=Pi(g.type,g.key,g.props,null,h.mode,y),y.ref=Kr(h,d,g),y.return=h,h=y)}return l(h);case Gn:e:{for(T=g.key;d!==null;){if(d.key===T)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(h,d.sibling),d=o(d,g.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=Au(g,h.mode,y),d.return=h,h=d}return l(h);case tn:return T=g._init,C(h,d,T(g._payload),y)}if(to(g))return m(h,d,g,y);if(Br(g))return v(h,d,g,y);ai(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(h,d.sibling),d=o(d,g),d.return=h,h=d):(n(h,d),d=Mu(g,h.mode,y),d.return=h,h=d),l(h)):n(h,d)}return C}var Cr=Kp(!0),Qp=Kp(!1),Ho={},Ot=kn(Ho),No=kn(Ho),Oo=kn(Ho);function Dn(e){if(e===Ho)throw Error(R(174));return e}function Ls(e,t){switch(ne(Oo,t),ne(No,e),ne(Ot,Ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ua(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ua(t,e)}oe(Ot),ne(Ot,t)}function kr(){oe(Ot),oe(No),oe(Oo)}function qp(e){Dn(Oo.current);var t=Dn(Ot.current),n=ua(t,e.type);t!==n&&(ne(No,e),ne(Ot,n))}function js(e){No.current===e&&(oe(Ot),oe(No))}var ce=kn(0);function Ki(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 Ou=[];function Ds(){for(var e=0;en?n:4,e(!0);var r=_u.transition;_u.transition={};try{e(!1),t()}finally{q=n,_u.transition=r}}function ch(){return at().memoizedState}function ng(e,t,n){var r=mn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},fh(e))dh(t,n);else if(n=bp(e,t,n,r),n!==null){var o=$e();gt(n,e,r,o),ph(n,t,r)}}function rg(e,t,n){var r=mn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(fh(e))dh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,u=i(l,n);if(o.hasEagerState=!0,o.eagerState=u,wt(u,l)){var a=t.interleaved;a===null?(o.next=o,_s(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=bp(e,t,o,r),n!==null&&(o=$e(),gt(n,e,r,o),ph(n,t,r))}}function fh(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function dh(e,t){co=Qi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ph(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ms(e,n)}}var qi={readContext:ut,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},og={readContext:ut,useCallback:function(e,t){return kt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:gf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ei(4194308,4,ih.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ei(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ei(4,2,e,t)},useMemo:function(e,t){var n=kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kt();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=ng.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=kt();return e={current:e},t.memoizedState=e},useState:vf,useDebugValue:$s,useDeferredValue:function(e){return kt().memoizedState=e},useTransition:function(){var e=vf(!1),t=e[0];return e=tg.bind(null,e[1]),kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,o=kt();if(ae){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Re===null)throw Error(R(349));In&30||Gp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,gf(Zp.bind(null,r,i,e),[e]),r.flags|=2048,Lo(9,Xp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=kt(),t=Re.identifierPrefix;if(ae){var n=Ft,r=zt;n=(r&~(1<<32-vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_o++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Pt]=t,e[Ro]=r,xh(e,t,!1,!1),t.stateNode=e;e:{switch(l=sa(n,r),n){case"dialog":re("cancel",e),re("close",e),o=r;break;case"iframe":case"object":case"embed":re("load",e),o=r;break;case"video":case"audio":for(o=0;oRr&&(t.flags|=128,r=!0,Qr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ki(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!ae)return De(t),null}else 2*ye()-i.renderingStartTime>Rr&&n!==1073741824&&(t.flags|=128,r=!0,Qr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ye(),t.sibling=null,n=ce.current,ne(ce,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return Vs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qe&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function dg(e,t){switch(ks(t),t.tag){case 1:return Ve(t.type)&&Ii(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kr(),oe(He),oe(ze),Ds(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return js(t),null;case 13:if(oe(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(ce),null;case 4:return kr(),null;case 10:return Os(t.type._context),null;case 22:case 23:return Vs(),null;case 24:return null;default:return null}}var ci=!1,Ae=!1,pg=typeof WeakSet=="function"?WeakSet:Set,D=null;function ur(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pe(e,t,r)}else n.current=null}function za(e,t,n){try{n()}catch(r){pe(e,t,r)}}var Nf=!1;function hg(e,t){if(wa=Ai,e=Op(),xs(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,u=-1,a=-1,s=0,c=0,f=e,p=null;t:for(;;){for(var w;f!==n||o!==0&&f.nodeType!==3||(u=l+o),f!==i||r!==0&&f.nodeType!==3||(a=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(w=f.firstChild)!==null;)p=f,f=w;for(;;){if(f===e)break t;if(p===n&&++s===o&&(u=l),p===i&&++c===r&&(a=l),(w=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=w}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sa={focusedElem:e,selectionRange:n},Ai=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,C=m.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:dt(t.type,v),C);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(y){pe(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return m=Nf,Nf=!1,m}function fo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&za(t,n,i)}o=o.next}while(o!==r)}}function vl(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 Fa(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 Ph(e){var t=e.alternate;t!==null&&(e.alternate=null,Ph(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pt],delete t[Ro],delete t[Ca],delete t[Yv],delete t[Gv])),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 Rh(e){return e.tag===5||e.tag===3||e.tag===4}function Of(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rh(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 $a(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=$i));else if(r!==4&&(e=e.child,e!==null))for($a(e,t,n),e=e.sibling;e!==null;)$a(e,t,n),e=e.sibling}function Ia(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(Ia(e,t,n),e=e.sibling;e!==null;)Ia(e,t,n),e=e.sibling}var _e=null,pt=!1;function Zt(e,t,n){for(n=n.child;n!==null;)Nh(e,t,n),n=n.sibling}function Nh(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(sl,n)}catch{}switch(n.tag){case 5:Ae||ur(n,t);case 6:var r=_e,o=pt;_e=null,Zt(e,t,n),_e=r,pt=o,_e!==null&&(pt?(e=_e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_e.removeChild(n.stateNode));break;case 18:_e!==null&&(pt?(e=_e,n=n.stateNode,e.nodeType===8?Ru(e.parentNode,n):e.nodeType===1&&Ru(e,n),Eo(e)):Ru(_e,n.stateNode));break;case 4:r=_e,o=pt,_e=n.stateNode.containerInfo,pt=!0,Zt(e,t,n),_e=r,pt=o;break;case 0:case 11:case 14:case 15:if(!Ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&za(n,t,l),o=o.next}while(o!==r)}Zt(e,t,n);break;case 1:if(!Ae&&(ur(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){pe(n,t,u)}Zt(e,t,n);break;case 21:Zt(e,t,n);break;case 22:n.mode&1?(Ae=(r=Ae)||n.memoizedState!==null,Zt(e,t,n),Ae=r):Zt(e,t,n);break;default:Zt(e,t,n)}}function _f(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pg),t.forEach(function(r){var o=Cg.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yg(r/1960))-r,10e?16:e,an===null)var r=!1;else{if(e=an,an=null,Gi=0,Q&6)throw Error(R(331));var o=Q;for(Q|=4,D=e.current;D!==null;){var i=D,l=i.child;if(D.flags&16){var u=i.deletions;if(u!==null){for(var a=0;aye()-bs?An(e,0):Bs|=n),We(e,t)}function Ah(e,t){t===0&&(e.mode&1?(t=ti,ti<<=1,!(ti&130023424)&&(ti=4194304)):t=1);var n=$e();e=Ht(e,t),e!==null&&(Uo(e,t,n),We(e,n))}function xg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ah(e,n)}function Cg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Ah(e,n)}var zh;zh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||He.current)be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return be=!1,cg(e,t,n);be=!!(e.flags&131072)}else be=!1,ae&&t.flags&1048576&&Ip(t,bi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xi(e,t),e=t.pendingProps;var o=Er(t,ze.current);mr(t,n),o=As(null,t,r,e,o,n);var i=zs();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ve(r)?(i=!0,Ui(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ts(t),o.updater=ml,t.stateNode=o,o._reactInternals=t,_a(t,r,e,n),t=ja(null,t,r,!0,i,n)):(t.tag=0,ae&&i&&Cs(t),Fe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Pg(r),e=dt(r,e),o){case 0:t=La(null,t,r,e,n);break e;case 1:t=kf(null,t,r,e,n);break e;case 11:t=xf(null,t,r,e,n);break e;case 14:t=Cf(null,t,r,dt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),La(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),kf(e,t,r,o,n);case 3:e:{if(wh(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Hp(e,t),Wi(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Pr(Error(R(423)),t),t=Pf(e,t,r,n,o);break e}else if(r!==o){o=Pr(Error(R(424)),t),t=Pf(e,t,r,n,o);break e}else for(qe=dn(t.stateNode.containerInfo.firstChild),Je=t,ae=!0,mt=null,n=Qp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xr(),r===o){t=Vt(e,t,n);break e}Fe(e,t,r,n)}t=t.child}return t;case 5:return qp(t),e===null&&Ra(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Ea(r,o)?l=null:i!==null&&Ea(r,i)&&(t.flags|=32),gh(e,t),Fe(e,t,l,n),t.child;case 6:return e===null&&Ra(t),null;case 13:return Sh(e,t,n);case 4:return Ls(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cr(t,null,r,n):Fe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),xf(e,t,r,o,n);case 7:return Fe(e,t,t.pendingProps,n),t.child;case 8:return Fe(e,t,t.pendingProps.children,n),t.child;case 12:return Fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ne(Hi,r._currentValue),r._currentValue=l,i!==null)if(wt(i.value,l)){if(i.children===o.children&&!He.current){t=Vt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){l=i.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=$t(-1,n&-n),a.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?a.next=a:(a.next=c.next,c.next=a),s.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Na(i.return,n,t),u.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(R(341));l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Na(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Fe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,mr(t,n),o=ut(o),r=r(o),t.flags|=1,Fe(e,t,r,n),t.child;case 14:return r=t.type,o=dt(r,t.pendingProps),o=dt(r.type,o),Cf(e,t,r,o,n);case 15:return yh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),xi(e,t),t.tag=1,Ve(r)?(e=!0,Ui(t)):e=!1,mr(t,n),Wp(t,r,o),_a(t,r,o,n),ja(null,t,r,!0,e,n);case 19:return Eh(e,t,n);case 22:return vh(e,t,n)}throw Error(R(156,t.tag))};function Fh(e,t){return sp(e,t)}function kg(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 ot(e,t,n,r){return new kg(e,t,n,r)}function Ks(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pg(e){if(typeof e=="function")return Ks(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fs)return 11;if(e===ds)return 14}return 2}function yn(e,t){var n=e.alternate;return n===null?(n=ot(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 Pi(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Ks(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Xn:return zn(n.children,o,i,t);case cs:l=8,o|=8;break;case Zu:return e=ot(12,n,t,o|2),e.elementType=Zu,e.lanes=i,e;case ea:return e=ot(13,n,t,o),e.elementType=ea,e.lanes=i,e;case ta:return e=ot(19,n,t,o),e.elementType=ta,e.lanes=i,e;case Kd:return wl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vd:l=10;break e;case Wd:l=9;break e;case fs:l=11;break e;case ds:l=14;break e;case tn:l=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=ot(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function zn(e,t,n,r){return e=ot(7,e,r,t),e.lanes=n,e}function wl(e,t,n,r){return e=ot(22,e,r,t),e.elementType=Kd,e.lanes=n,e.stateNode={isHidden:!1},e}function Mu(e,t,n){return e=ot(6,e,null,t),e.lanes=n,e}function Au(e,t,n){return t=ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rg(e,t,n,r,o){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=mu(0),this.expirationTimes=mu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Qs(e,t,n,r,o,i,l,u,a){return e=new Rg(e,t,n,u,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ot(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ts(i),e}function Ng(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Bh)}catch(e){console.error(e)}}Bh(),Id.exports=Xe;var bh=Id.exports,Ff=bh;Gu.createRoot=Ff.createRoot,Gu.hydrateRoot=Ff.hydrateRoot;function Hh(e,t){return function(){return e.apply(t,arguments)}}const{toString:jg}=Object.prototype,{getPrototypeOf:Gs}=Object,kl=(e=>t=>{const n=jg.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Tt=e=>(e=e.toLowerCase(),t=>kl(t)===e),Pl=e=>t=>typeof t===e,{isArray:Mr}=Array,Do=Pl("undefined");function Dg(e){return e!==null&&!Do(e)&&e.constructor!==null&&!Do(e.constructor)&<(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vh=Tt("ArrayBuffer");function Mg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vh(e.buffer),t}const Ag=Pl("string"),lt=Pl("function"),Wh=Pl("number"),Rl=e=>e!==null&&typeof e=="object",zg=e=>e===!0||e===!1,Ri=e=>{if(kl(e)!=="object")return!1;const t=Gs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Fg=Tt("Date"),$g=Tt("File"),Ig=Tt("Blob"),Ug=Tt("FileList"),Bg=e=>Rl(e)&<(e.pipe),bg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||lt(e.append)&&((t=kl(e))==="formdata"||t==="object"&<(e.toString)&&e.toString()==="[object FormData]"))},Hg=Tt("URLSearchParams"),Vg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Mr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Qh=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),qh=e=>!Do(e)&&e!==Qh;function Va(){const{caseless:e}=qh(this)&&this||{},t={},n=(r,o)=>{const i=e&&Kh(t,o)||o;Ri(t[i])&&Ri(r)?t[i]=Va(t[i],r):Ri(r)?t[i]=Va({},r):Mr(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Vo(t,(o,i)=>{n&<(o)?e[i]=Hh(o,n):e[i]=o},{allOwnKeys:r}),e),Kg=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Qg=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},qg=(e,t,n,r)=>{let o,i,l;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&Gs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Jg=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Yg=e=>{if(!e)return null;if(Mr(e))return e;let t=e.length;if(!Wh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Gg=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gs(Uint8Array)),Xg=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Zg=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},e0=Tt("HTMLFormElement"),t0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),$f=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),n0=Tt("RegExp"),Jh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vo(n,(o,i)=>{t(o,i,e)!==!1&&(r[i]=o)}),Object.defineProperties(e,r)},r0=e=>{Jh(e,(t,n)=>{if(lt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(lt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},o0=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Mr(e)?r(e):r(String(e).split(t)),n},i0=()=>{},l0=(e,t)=>(e=+e,Number.isFinite(e)?e:t),zu="abcdefghijklmnopqrstuvwxyz",If="0123456789",Yh={DIGIT:If,ALPHA:zu,ALPHA_DIGIT:zu+zu.toUpperCase()+If},u0=(e=16,t=Yh.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function a0(e){return!!(e&<(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const s0=e=>{const t=new Array(10),n=(r,o)=>{if(Rl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Mr(r)?[]:{};return Vo(r,(l,u)=>{const a=n(l,o+1);!Do(a)&&(i[u]=a)}),t[o]=void 0,i}}return r};return n(e,0)},c0=Tt("AsyncFunction"),f0=e=>e&&(Rl(e)||lt(e))&<(e.then)&<(e.catch),x={isArray:Mr,isArrayBuffer:Vh,isBuffer:Dg,isFormData:bg,isArrayBufferView:Mg,isString:Ag,isNumber:Wh,isBoolean:zg,isObject:Rl,isPlainObject:Ri,isUndefined:Do,isDate:Fg,isFile:$g,isBlob:Ig,isRegExp:n0,isFunction:lt,isStream:Bg,isURLSearchParams:Hg,isTypedArray:Gg,isFileList:Ug,forEach:Vo,merge:Va,extend:Wg,trim:Vg,stripBOM:Kg,inherits:Qg,toFlatObject:qg,kindOf:kl,kindOfTest:Tt,endsWith:Jg,toArray:Yg,forEachEntry:Xg,matchAll:Zg,isHTMLForm:e0,hasOwnProperty:$f,hasOwnProp:$f,reduceDescriptors:Jh,freezeMethods:r0,toObjectSet:o0,toCamelCase:t0,noop:i0,toFiniteNumber:l0,findKey:Kh,global:Qh,isContextDefined:qh,ALPHABET:Yh,generateString:u0,isSpecCompliantForm:a0,toJSONObject:s0,isAsyncFn:c0,isThenable:f0};function K(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}x.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Gh=K.prototype,Xh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Xh[e]={value:e}});Object.defineProperties(K,Xh);Object.defineProperty(Gh,"isAxiosError",{value:!0});K.from=(e,t,n,r,o,i)=>{const l=Object.create(Gh);return x.toFlatObject(e,l,function(a){return a!==Error.prototype},u=>u!=="isAxiosError"),K.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const d0=null;function Wa(e){return x.isPlainObject(e)||x.isArray(e)}function Zh(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Uf(e,t,n){return e?e.concat(t).map(function(o,i){return o=Zh(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function p0(e){return x.isArray(e)&&!e.some(Wa)}const h0=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function Nl(e,t,n){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,C){return!x.isUndefined(C[v])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,l=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function s(m){if(m===null)return"";if(x.isDate(m))return m.toISOString();if(!a&&x.isBlob(m))throw new K("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(m)||x.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,v,C){let h=m;if(m&&!C&&typeof m=="object"){if(x.endsWith(v,"{}"))v=r?v:v.slice(0,-2),m=JSON.stringify(m);else if(x.isArray(m)&&p0(m)||(x.isFileList(m)||x.endsWith(v,"[]"))&&(h=x.toArray(m)))return v=Zh(v),h.forEach(function(g,y){!(x.isUndefined(g)||g===null)&&t.append(l===!0?Uf([v],y,i):l===null?v:v+"[]",s(g))}),!1}return Wa(m)?!0:(t.append(Uf(C,v,i),s(m)),!1)}const f=[],p=Object.assign(h0,{defaultVisitor:c,convertValue:s,isVisitable:Wa});function w(m,v){if(!x.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(m),x.forEach(m,function(h,d){(!(x.isUndefined(h)||h===null)&&o.call(t,h,x.isString(d)?d.trim():d,v,p))===!0&&w(h,v?v.concat(d):[d])}),f.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Bf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Xs(e,t){this._pairs=[],e&&Nl(e,this,t)}const em=Xs.prototype;em.append=function(t,n){this._pairs.push([t,n])};em.toString=function(t){const n=t?function(r){return t.call(this,r,Bf)}:Bf;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function m0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tm(e,t,n){if(!t)return e;const r=n&&n.encode||m0,o=n&&n.serialize;let i;if(o?i=o(t,n):i=x.isURLSearchParams(t)?t.toString():new Xs(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class y0{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(r){r!==null&&t(r)})}}const bf=y0,nm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},v0=typeof URLSearchParams<"u"?URLSearchParams:Xs,g0=typeof FormData<"u"?FormData:null,w0=typeof Blob<"u"?Blob:null,S0=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),E0=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Rt={isBrowser:!0,classes:{URLSearchParams:v0,FormData:g0,Blob:w0},isStandardBrowserEnv:S0,isStandardBrowserWebWorkerEnv:E0,protocols:["http","https","file","blob","url","data"]};function x0(e,t){return Nl(e,new Rt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Rt.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function C0(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function k0(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&x.isArray(o)?o.length:l,a?(x.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!u):((!o[l]||!x.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&x.isArray(o[l])&&(o[l]=k0(o[l])),!u)}if(x.isFormData(e)&&x.isFunction(e.entries)){const n={};return x.forEachEntry(e,(r,o)=>{t(C0(r),o,n,0)}),n}return null}const P0={"Content-Type":void 0};function R0(e,t,n){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ol={transitional:nm,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=x.isObject(t);if(i&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o&&o?JSON.stringify(rm(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return x0(t,this.formSerializer).toString();if((u=x.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Nl(u?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),R0(t)):t}],transformResponse:[function(t){const n=this.transitional||Ol.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&x.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(l)throw u.name==="SyntaxError"?K.from(u,K.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};x.forEach(["delete","get","head"],function(t){Ol.headers[t]={}});x.forEach(["post","put","patch"],function(t){Ol.headers[t]=x.merge(P0)});const Zs=Ol,N0=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),O0=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&N0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Hf=Symbol("internals");function Jr(e){return e&&String(e).trim().toLowerCase()}function Ni(e){return e===!1||e==null?e:x.isArray(e)?e.map(Ni):String(e)}function _0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const T0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fu(e,t,n,r,o){if(x.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!x.isString(t)){if(x.isString(r))return t.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(t)}}function L0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function j0(e,t){const n=x.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class _l{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(u,a,s){const c=Jr(a);if(!c)throw new Error("header name must be a non-empty string");const f=x.findKey(o,c);(!f||o[f]===void 0||s===!0||s===void 0&&o[f]!==!1)&&(o[f||a]=Ni(u))}const l=(u,a)=>x.forEach(u,(s,c)=>i(s,c,a));return x.isPlainObject(t)||t instanceof this.constructor?l(t,n):x.isString(t)&&(t=t.trim())&&!T0(t)?l(O0(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Jr(t),t){const r=x.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return _0(o);if(x.isFunction(n))return n.call(this,o,r);if(x.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Jr(t),t){const r=x.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Fu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=Jr(l),l){const u=x.findKey(r,l);u&&(!n||Fu(r,r[u],u,n))&&(delete r[u],o=!0)}}return x.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Fu(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return x.forEach(this,(o,i)=>{const l=x.findKey(r,i);if(l){n[l]=Ni(o),delete n[i];return}const u=t?L0(i):String(i).trim();u!==i&&delete n[i],n[u]=Ni(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return x.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&x.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Hf]=this[Hf]={accessors:{}}).accessors,o=this.prototype;function i(l){const u=Jr(l);r[u]||(j0(o,l),r[u]=!0)}return x.isArray(t)?t.forEach(i):i(t),this}}_l.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.freezeMethods(_l.prototype);x.freezeMethods(_l);const It=_l;function $u(e,t){const n=this||Zs,r=t||n,o=It.from(r.headers);let i=r.data;return x.forEach(e,function(u){i=u.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function om(e){return!!(e&&e.__CANCEL__)}function Wo(e,t,n){K.call(this,e??"canceled",K.ERR_CANCELED,t,n),this.name="CanceledError"}x.inherits(Wo,K,{__CANCEL__:!0});function D0(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const M0=Rt.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,l,u){const a=[];a.push(n+"="+encodeURIComponent(r)),x.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),x.isString(i)&&a.push("path="+i),x.isString(l)&&a.push("domain="+l),u===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function A0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function z0(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function im(e,t){return e&&!A0(t)?z0(e,t):t}const F0=Rt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const u=x.isString(l)?o(l):l;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function $0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function I0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(a){const s=Date.now(),c=r[i];l||(l=s),n[o]=a,r[o]=s;let f=i,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),s-l{const i=o.loaded,l=o.lengthComputable?o.total:void 0,u=i-n,a=r(u),s=i<=l;n=i;const c={loaded:i,total:l,progress:l?i/l:void 0,bytes:u,rate:a||void 0,estimated:a&&l&&s?(l-i)/a:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const U0=typeof XMLHttpRequest<"u",B0=U0&&function(e){return new Promise(function(n,r){let o=e.data;const i=It.from(e.headers).normalize(),l=e.responseType;let u;function a(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}x.isFormData(o)&&(Rt.isStandardBrowserEnv||Rt.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let s=new XMLHttpRequest;if(e.auth){const w=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(w+":"+m))}const c=im(e.baseURL,e.url);s.open(e.method.toUpperCase(),tm(c,e.params,e.paramsSerializer),!0),s.timeout=e.timeout;function f(){if(!s)return;const w=It.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),v={data:!l||l==="text"||l==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:w,config:e,request:s};D0(function(h){n(h),a()},function(h){r(h),a()},v),s=null}if("onloadend"in s?s.onloadend=f:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(f)},s.onabort=function(){s&&(r(new K("Request aborted",K.ECONNABORTED,e,s)),s=null)},s.onerror=function(){r(new K("Network Error",K.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||nm;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new K(m,v.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,s)),s=null},Rt.isStandardBrowserEnv){const w=(e.withCredentials||F0(c))&&e.xsrfCookieName&&M0.read(e.xsrfCookieName);w&&i.set(e.xsrfHeaderName,w)}o===void 0&&i.setContentType(null),"setRequestHeader"in s&&x.forEach(i.toJSON(),function(m,v){s.setRequestHeader(v,m)}),x.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),l&&l!=="json"&&(s.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&s.addEventListener("progress",Vf(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&s.upload&&s.upload.addEventListener("progress",Vf(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=w=>{s&&(r(!w||w.type?new Wo(null,e,s):w),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const p=$0(c);if(p&&Rt.protocols.indexOf(p)===-1){r(new K("Unsupported protocol "+p+":",K.ERR_BAD_REQUEST,e));return}s.send(o||null)})},Oi={http:d0,xhr:B0};x.forEach(Oi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const b0={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof It?e.toJSON():e;function Nr(e,t){t=t||{};const n={};function r(s,c,f){return x.isPlainObject(s)&&x.isPlainObject(c)?x.merge.call({caseless:f},s,c):x.isPlainObject(c)?x.merge({},c):x.isArray(c)?c.slice():c}function o(s,c,f){if(x.isUndefined(c)){if(!x.isUndefined(s))return r(void 0,s,f)}else return r(s,c,f)}function i(s,c){if(!x.isUndefined(c))return r(void 0,c)}function l(s,c){if(x.isUndefined(c)){if(!x.isUndefined(s))return r(void 0,s)}else return r(void 0,c)}function u(s,c,f){if(f in t)return r(s,c);if(f in e)return r(void 0,s)}const a={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(s,c)=>o(Kf(s),Kf(c),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=a[c]||o,p=f(e[c],t[c],c);x.isUndefined(p)&&f!==u||(n[c]=p)}),n}const lm="1.4.0",ec={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ec[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Qf={};ec.transitional=function(t,n,r){function o(i,l){return"[Axios v"+lm+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,u)=>{if(t===!1)throw new K(o(l," has been removed"+(n?" in "+n:"")),K.ERR_DEPRECATED);return n&&!Qf[l]&&(Qf[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,u):!0}};function H0(e,t,n){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const u=e[i],a=u===void 0||l(u,i,e);if(a!==!0)throw new K("option "+i+" must be "+a,K.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new K("Unknown option "+i,K.ERR_BAD_OPTION)}}const Ka={assertOptions:H0,validators:ec},en=Ka.validators;class el{constructor(t){this.defaults=t,this.interceptors={request:new bf,response:new bf}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Nr(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Ka.assertOptions(r,{silentJSONParsing:en.transitional(en.boolean),forcedJSONParsing:en.transitional(en.boolean),clarifyTimeoutError:en.transitional(en.boolean)},!1),o!=null&&(x.isFunction(o)?n.paramsSerializer={serialize:o}:Ka.assertOptions(o,{encode:en.function,serialize:en.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l;l=i&&x.merge(i.common,i[n.method]),l&&x.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=It.concat(l,i);const u=[];let a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(a=a&&v.synchronous,u.unshift(v.fulfilled,v.rejected))});const s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});let c,f=0,p;if(!a){const m=[Wf.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,s),p=m.length,c=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(u=>{r.subscribe(u),i=u}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,u){r.reason||(r.reason=new Wo(i,l,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new tc(function(o){t=o}),cancel:t}}}const V0=tc;function W0(e){return function(n){return e.apply(null,n)}}function K0(e){return x.isObject(e)&&e.isAxiosError===!0}const Qa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Qa).forEach(([e,t])=>{Qa[t]=e});const Q0=Qa;function um(e){const t=new _i(e),n=Hh(_i.prototype.request,t);return x.extend(n,_i.prototype,t,{allOwnKeys:!0}),x.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return um(Nr(e,o))},n}const Ce=um(Zs);Ce.Axios=_i;Ce.CanceledError=Wo;Ce.CancelToken=V0;Ce.isCancel=om;Ce.VERSION=lm;Ce.toFormData=Nl;Ce.AxiosError=K;Ce.Cancel=Ce.CanceledError;Ce.all=function(t){return Promise.all(t)};Ce.spread=W0;Ce.isAxiosError=K0;Ce.mergeConfig=Nr;Ce.AxiosHeaders=It;Ce.formToJSON=e=>rm(x.isHTMLForm(e)?new FormData(e):e);Ce.HttpStatusCode=Q0;Ce.default=Ce;const q0=Ce;/** + * @remix-run/router v1.8.0 + * + * 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 le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Or(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Y0(){return Math.random().toString(36).substr(2,8)}function Jf(e,t){return{usr:e.state,key:e.key,idx:t}}function Mo(e,t,n,r){return n===void 0&&(n=null),le({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Qt(t):t,{state:n,key:t&&t.key||r||Y0()})}function bn(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 Qt(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 G0(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,u=ge.Pop,a=null,s=c();s==null&&(s=0,l.replaceState(le({},l.state,{idx:s}),""));function c(){return(l.state||{idx:null}).idx}function f(){u=ge.Pop;let C=c(),h=C==null?null:C-s;s=C,a&&a({action:u,location:v.location,delta:h})}function p(C,h){u=ge.Push;let d=Mo(v.location,C,h);n&&n(d,C),s=c()+1;let g=Jf(d,s),y=v.createHref(d);try{l.pushState(g,"",y)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(y)}i&&a&&a({action:u,location:v.location,delta:1})}function w(C,h){u=ge.Replace;let d=Mo(v.location,C,h);n&&n(d,C),s=c();let g=Jf(d,s),y=v.createHref(d);l.replaceState(g,"",y),i&&a&&a({action:u,location:v.location,delta:0})}function m(C){let h=o.location.origin!=="null"?o.location.origin:o.location.href,d=typeof C=="string"?C:bn(C);return V(h,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,h)}let v={get action(){return u},get location(){return e(o,l)},listen(C){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(qf,f),a=C,()=>{o.removeEventListener(qf,f),a=null}},createHref(C){return t(o,C)},createURL:m,encodeLocation(C){let h=m(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:p,replace:w,go(C){return l.go(C)}};return v}var me;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(me||(me={}));const X0=new Set(["lazy","caseSensitive","path","id","index","children"]);function Z0(e){return e.index===!0}function qa(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let l=[...n,i],u=typeof o.id=="string"?o.id:l.join("-");if(V(o.index!==!0||!o.children,"Cannot specify children on an index route"),V(!r[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),Z0(o)){let a=le({},o,t(o),{id:u});return r[u]=a,a}else{let a=le({},o,t(o),{id:u,children:void 0});return r[u]=a,o.children&&(a.children=qa(o.children,t,l,r)),a}})}function sr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Qt(t):t,o=Ar(r.pathname||"/",n);if(o==null)return null;let i=am(e);e1(i);let l=null;for(let u=0;l==null&&u{let a={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};a.relativePath.startsWith("/")&&(V(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let s=Ut([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(V(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),am(i.children,t,c,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:u1(s,i.index),routesMeta:c})};return e.forEach((i,l)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))o(i,l);else for(let a of sm(i.path))o(i,l,a)}),t}function sm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=sm(r.join("/")),u=[];return u.push(...l.map(a=>a===""?i:[i,a].join("/"))),o&&u.push(...l),u.map(a=>e.startsWith("/")&&a===""?"/":a)}function e1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:a1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const t1=/^:\w+$/,n1=3,r1=2,o1=1,i1=10,l1=-2,Yf=e=>e==="*";function u1(e,t){let n=e.split("/"),r=n.length;return n.some(Yf)&&(r+=l1),t&&(r+=r1),n.filter(o=>!Yf(o)).reduce((o,i)=>o+(t1.test(i)?n1:i===""?o1:i1),r)}function a1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function s1(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{if(c==="*"){let p=u[f]||"";l=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return s[c]=p1(u[f]||"",c),s},{}),pathname:i,pathnameBase:l,pattern:e}}function f1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Or(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(l,u)=>(r.push(u),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function d1(e){try{return decodeURI(e)}catch(t){return Or(!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 p1(e,t){try{return decodeURIComponent(e)}catch(n){return Or(!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 Ar(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 h1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Qt(e):e;return{pathname:n?n.startsWith("/")?n:m1(n,t):t,search:v1(r),hash:g1(o)}}function m1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Uu(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 Tl(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function nc(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Qt(e):(o=le({},e),V(!o.pathname||!o.pathname.includes("?"),Uu("?","pathname","search",o)),V(!o.pathname||!o.pathname.includes("#"),Uu("#","pathname","hash",o)),V(!o.search||!o.search.includes("#"),Uu("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,u;if(r||l==null)u=n;else{let f=t.length-1;if(l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}u=f>=0?t[f]:"/"}let a=h1(o,u),s=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(s||c)&&(a.pathname+="/"),a}const Ut=e=>e.join("/").replace(/\/\/+/g,"/"),y1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),v1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,g1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class rc{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function cm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const fm=["post","put","patch","delete"],w1=new Set(fm),S1=["get",...fm],E1=new Set(S1),x1=new Set([301,302,303,307,308]),C1=new Set([307,308]),Bu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},k1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Yr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},dm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,P1=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function R1(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;V(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let S=e.detectErrorBoundary;o=E=>({hasErrorBoundary:S(E)})}else o=P1;let i={},l=qa(e.routes,o,void 0,i),u,a=e.basename||"/",s=le({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,f=new Set,p=null,w=null,m=null,v=e.hydrationData!=null,C=sr(l,e.history.location,a),h=null;if(C==null){let S=tt(404,{pathname:e.history.location.pathname}),{matches:E,route:P}=od(l);C=E,h={[P.id]:S}}let d=!C.some(S=>S.route.lazy)&&(!C.some(S=>S.route.loader)||e.hydrationData!=null),g,y={historyAction:e.history.action,location:e.history.location,matches:C,initialized:d,navigation:Bu,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||h,fetchers:new Map,blockers:new Map},k=ge.Pop,T=!1,O,j=!1,H=!1,A=[],ie=[],ee=new Map,St=0,qt=-1,Jt=new Map,Ke=new Set,Et=new Map,L=new Map,$=new Map,b=!1;function se(){return c=e.history.listen(S=>{let{action:E,location:P,delta:M}=S;if(b){b=!1;return}Or($.size===0||M!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let B=kc({currentLocation:y.location,nextLocation:P,historyAction:E});if(B&&M!=null){b=!0,e.history.go(M*-1),qo(B,{state:"blocked",location:P,proceed(){qo(B,{state:"proceeding",proceed:void 0,reset:void 0,location:P}),e.history.go(M)},reset(){let I=new Map(y.blockers);I.set(B,Yr),te({blockers:I})}});return}return Yt(E,P)}),y.initialized||Yt(ge.Pop,y.location),g}function ve(){c&&c(),f.clear(),O&&O.abort(),y.fetchers.forEach((S,E)=>ru(E)),y.blockers.forEach((S,E)=>Cc(E))}function Qn(S){return f.add(S),()=>f.delete(S)}function te(S){y=le({},y,S),f.forEach(E=>E(y))}function Lt(S,E){var P,M;let B=y.actionData!=null&&y.navigation.formMethod!=null&&ht(y.navigation.formMethod)&&y.navigation.state==="loading"&&((P=S.state)==null?void 0:P._isRedirect)!==!0,I;E.actionData?Object.keys(E.actionData).length>0?I=E.actionData:I=null:B?I=y.actionData:I=null;let U=E.loaderData?rd(y.loaderData,E.loaderData,E.matches||[],E.errors):y.loaderData,F=y.blockers;F.size>0&&(F=new Map(F),F.forEach((Z,Oe)=>F.set(Oe,Yr)));let z=T===!0||y.navigation.formMethod!=null&&ht(y.navigation.formMethod)&&((M=S.state)==null?void 0:M._isRedirect)!==!0;u&&(l=u,u=void 0),j||k===ge.Pop||(k===ge.Push?e.history.push(S,S.state):k===ge.Replace&&e.history.replace(S,S.state)),te(le({},E,{actionData:I,loaderData:U,historyAction:k,location:S,initialized:!0,navigation:Bu,revalidation:"idle",restoreScrollPosition:Rc(S,E.matches||y.matches),preventScrollReset:z,blockers:F})),k=ge.Pop,T=!1,j=!1,H=!1,A=[],ie=[]}async function xt(S,E){if(typeof S=="number"){e.history.go(S);return}let P=Ja(y.location,y.matches,a,s.v7_prependBasename,S,E==null?void 0:E.fromRouteId,E==null?void 0:E.relative),{path:M,submission:B,error:I}=Gf(s.v7_normalizeFormMethod,!1,P,E),U=y.location,F=Mo(y.location,M,E&&E.state);F=le({},F,e.history.encodeLocation(F));let z=E&&E.replace!=null?E.replace:void 0,Z=ge.Push;z===!0?Z=ge.Replace:z===!1||B!=null&&ht(B.formMethod)&&B.formAction===y.location.pathname+y.location.search&&(Z=ge.Replace);let Oe=E&&"preventScrollReset"in E?E.preventScrollReset===!0:void 0,Y=kc({currentLocation:U,nextLocation:F,historyAction:Z});if(Y){qo(Y,{state:"blocked",location:F,proceed(){qo(Y,{state:"proceeding",proceed:void 0,reset:void 0,location:F}),xt(S,E)},reset(){let he=new Map(y.blockers);he.set(Y,Yr),te({blockers:he})}});return}return await Yt(Z,F,{submission:B,pendingError:I,preventScrollReset:Oe,replace:E&&E.replace})}function qn(){if(nu(),te({revalidation:"loading"}),y.navigation.state!=="submitting"){if(y.navigation.state==="idle"){Yt(y.historyAction,y.location,{startUninterruptedRevalidation:!0});return}Yt(k||y.historyAction,y.navigation.location,{overrideNavigation:y.navigation})}}async function Yt(S,E,P){O&&O.abort(),O=null,k=S,j=(P&&P.startUninterruptedRevalidation)===!0,ty(y.location,y.matches),T=(P&&P.preventScrollReset)===!0;let M=u||l,B=P&&P.overrideNavigation,I=sr(M,E,a);if(!I){let he=tt(404,{pathname:E.pathname}),{matches:ke,route:Rn}=od(M);ou(),Lt(E,{matches:ke,loaderData:{},errors:{[Rn.id]:he}});return}if(y.initialized&&!H&&L1(y.location,E)&&!(P&&P.submission&&ht(P.submission.formMethod))){Lt(E,{matches:I});return}O=new AbortController;let U=Xr(e.history,E,O.signal,P&&P.submission),F,z;if(P&&P.pendingError)z={[cr(I).route.id]:P.pendingError};else if(P&&P.submission&&ht(P.submission.formMethod)){let he=await qm(U,E,P.submission,I,{replace:P.replace});if(he.shortCircuited)return;F=he.pendingActionData,z=he.pendingActionError,B=pi(E,P.submission),U=new Request(U.url,{signal:U.signal})}let{shortCircuited:Z,loaderData:Oe,errors:Y}=await Jm(U,E,I,B,P&&P.submission,P&&P.fetcherSubmission,P&&P.replace,F,z);Z||(O=null,Lt(E,le({matches:I},F?{actionData:F}:{},{loaderData:Oe,errors:Y})))}async function qm(S,E,P,M,B){B===void 0&&(B={}),nu();let I=z1(E,P);te({navigation:I});let U,F=Ga(M,E);if(!F.route.action&&!F.route.lazy)U={type:me.error,error:tt(405,{method:S.method,pathname:E.pathname,routeId:F.route.id})};else if(U=await Gr("action",S,F,M,i,o,a),S.signal.aborted)return{shortCircuited:!0};if(vr(U)){let z;return B&&B.replace!=null?z=B.replace:z=U.location===y.location.pathname+y.location.search,await $r(y,U,{submission:P,replace:z}),{shortCircuited:!0}}if(mo(U)){let z=cr(M,F.route.id);return(B&&B.replace)!==!0&&(k=ge.Push),{pendingActionData:{},pendingActionError:{[z.route.id]:U.error}}}if(Mn(U))throw tt(400,{type:"defer-action"});return{pendingActionData:{[F.route.id]:U.data}}}async function Jm(S,E,P,M,B,I,U,F,z){let Z=M||pi(E,B),Oe=B||I||ud(Z),Y=u||l,[he,ke]=Xf(e.history,y,P,Oe,E,H,A,ie,Et,Ke,Y,a,F,z);if(ou(G=>!(P&&P.some(ct=>ct.route.id===G))||he&&he.some(ct=>ct.route.id===G)),qt=++St,he.length===0&&ke.length===0){let G=Ec();return Lt(E,le({matches:P,loaderData:{},errors:z||null},F?{actionData:F}:{},G?{fetchers:new Map(y.fetchers)}:{})),{shortCircuited:!0}}if(!j){ke.forEach(ct=>{let Xt=y.fetchers.get(ct.key),su=Zr(void 0,Xt?Xt.data:void 0);y.fetchers.set(ct.key,su)});let G=F||y.actionData;te(le({navigation:Z},G?Object.keys(G).length===0?{actionData:null}:{actionData:G}:{},ke.length>0?{fetchers:new Map(y.fetchers)}:{}))}ke.forEach(G=>{ee.has(G.key)&&Gt(G.key),G.controller&&ee.set(G.key,G.controller)});let Rn=()=>ke.forEach(G=>Gt(G.key));O&&O.signal.addEventListener("abort",Rn);let{results:Nn,loaderResults:Ir,fetcherResults:iu}=await wc(y.matches,P,he,ke,S);if(S.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener("abort",Rn),ke.forEach(G=>ee.delete(G.key));let jt=id(Nn);if(jt){if(jt.idx>=he.length){let G=ke[jt.idx-he.length].key;Ke.add(G)}return await $r(y,jt.result,{replace:U}),{shortCircuited:!0}}let{loaderData:Dt,errors:Jo}=nd(y,P,he,Ir,z,ke,iu,L);L.forEach((G,ct)=>{G.subscribe(Xt=>{(Xt||G.done)&&L.delete(ct)})});let lu=Ec(),uu=xc(qt),au=lu||uu||ke.length>0;return le({loaderData:Dt,errors:Jo},au?{fetchers:new Map(y.fetchers)}:{})}function gc(S){return y.fetchers.get(S)||k1}function Ym(S,E,P,M){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ee.has(S)&&Gt(S);let B=u||l,I=Ja(y.location,y.matches,a,s.v7_prependBasename,P,E,M==null?void 0:M.relative),U=sr(B,I,a);if(!U){Qo(S,E,tt(404,{pathname:I}));return}let{path:F,submission:z,error:Z}=Gf(s.v7_normalizeFormMethod,!0,I,M);if(Z){Qo(S,E,Z);return}let Oe=Ga(U,F);if(T=(M&&M.preventScrollReset)===!0,z&&ht(z.formMethod)){Gm(S,E,F,Oe,U,z);return}Et.set(S,{routeId:E,path:F}),Xm(S,E,F,Oe,U,z)}async function Gm(S,E,P,M,B,I){if(nu(),Et.delete(S),!M.route.action&&!M.route.lazy){let Se=tt(405,{method:I.formMethod,pathname:P,routeId:E});Qo(S,E,Se);return}let U=y.fetchers.get(S),F=F1(I,U);y.fetchers.set(S,F),te({fetchers:new Map(y.fetchers)});let z=new AbortController,Z=Xr(e.history,P,z.signal,I);ee.set(S,z);let Oe=St,Y=await Gr("action",Z,M,B,i,o,a);if(Z.signal.aborted){ee.get(S)===z&&ee.delete(S);return}if(vr(Y))if(ee.delete(S),qt>Oe){let Se=Yn(void 0);y.fetchers.set(S,Se),te({fetchers:new Map(y.fetchers)});return}else{Ke.add(S);let Se=Zr(I);return y.fetchers.set(S,Se),te({fetchers:new Map(y.fetchers)}),$r(y,Y,{submission:I,isFetchActionRedirect:!0})}if(mo(Y)){Qo(S,E,Y.error);return}if(Mn(Y))throw tt(400,{type:"defer-action"});let he=y.navigation.location||y.location,ke=Xr(e.history,he,z.signal),Rn=u||l,Nn=y.navigation.state!=="idle"?sr(Rn,y.navigation.location,a):y.matches;V(Nn,"Didn't find any matches after fetcher action");let Ir=++St;Jt.set(S,Ir);let iu=Zr(I,Y.data);y.fetchers.set(S,iu);let[jt,Dt]=Xf(e.history,y,Nn,I,he,H,A,ie,Et,Ke,Rn,a,{[M.route.id]:Y.data},void 0);Dt.filter(Se=>Se.key!==S).forEach(Se=>{let Ur=Se.key,Nc=y.fetchers.get(Ur),ry=Zr(void 0,Nc?Nc.data:void 0);y.fetchers.set(Ur,ry),ee.has(Ur)&&Gt(Ur),Se.controller&&ee.set(Ur,Se.controller)}),te({fetchers:new Map(y.fetchers)});let Jo=()=>Dt.forEach(Se=>Gt(Se.key));z.signal.addEventListener("abort",Jo);let{results:lu,loaderResults:uu,fetcherResults:au}=await wc(y.matches,Nn,jt,Dt,ke);if(z.signal.aborted)return;z.signal.removeEventListener("abort",Jo),Jt.delete(S),ee.delete(S),Dt.forEach(Se=>ee.delete(Se.key));let G=id(lu);if(G){if(G.idx>=jt.length){let Se=Dt[G.idx-jt.length].key;Ke.add(Se)}return $r(y,G.result)}let{loaderData:ct,errors:Xt}=nd(y,y.matches,jt,uu,void 0,Dt,au,L);if(y.fetchers.has(S)){let Se=Yn(Y.data);y.fetchers.set(S,Se)}let su=xc(Ir);y.navigation.state==="loading"&&Ir>qt?(V(k,"Expected pending action"),O&&O.abort(),Lt(y.navigation.location,{matches:Nn,loaderData:ct,errors:Xt,fetchers:new Map(y.fetchers)})):(te(le({errors:Xt,loaderData:rd(y.loaderData,ct,Nn,Xt)},su||Dt.length>0?{fetchers:new Map(y.fetchers)}:{})),H=!1)}async function Xm(S,E,P,M,B,I){let U=y.fetchers.get(S),F=Zr(I,U?U.data:void 0);y.fetchers.set(S,F),te({fetchers:new Map(y.fetchers)});let z=new AbortController,Z=Xr(e.history,P,z.signal);ee.set(S,z);let Oe=St,Y=await Gr("loader",Z,M,B,i,o,a);if(Mn(Y)&&(Y=await mm(Y,Z.signal,!0)||Y),ee.get(S)===z&&ee.delete(S),Z.signal.aborted)return;if(vr(Y))if(qt>Oe){let ke=Yn(void 0);y.fetchers.set(S,ke),te({fetchers:new Map(y.fetchers)});return}else{Ke.add(S),await $r(y,Y);return}if(mo(Y)){let ke=cr(y.matches,E);y.fetchers.delete(S),te({fetchers:new Map(y.fetchers),errors:{[ke.route.id]:Y.error}});return}V(!Mn(Y),"Unhandled fetcher deferred data");let he=Yn(Y.data);y.fetchers.set(S,he),te({fetchers:new Map(y.fetchers)})}async function $r(S,E,P){let{submission:M,replace:B,isFetchActionRedirect:I}=P===void 0?{}:P;E.revalidate&&(H=!0);let U=Mo(S.location,E.location,le({_isRedirect:!0},I?{_isFetchActionRedirect:!0}:{}));if(V(U,"Expected a location on the redirect navigation"),n){let Z=!1;if(E.reloadDocument)Z=!0;else if(dm.test(E.location)){const Oe=e.history.createURL(E.location);Z=Oe.origin!==t.location.origin||Ar(Oe.pathname,a)==null}if(Z){B?t.location.replace(E.location):t.location.assign(E.location);return}}O=null;let F=B===!0?ge.Replace:ge.Push,z=M||ud(S.navigation);if(C1.has(E.status)&&z&&ht(z.formMethod))await Yt(F,U,{submission:le({},z,{formAction:E.location}),preventScrollReset:T});else if(I)await Yt(F,U,{overrideNavigation:pi(U),fetcherSubmission:z,preventScrollReset:T});else{let Z=pi(U,z);await Yt(F,U,{overrideNavigation:Z,preventScrollReset:T})}}async function wc(S,E,P,M,B){let I=await Promise.all([...P.map(z=>Gr("loader",B,z,E,i,o,a)),...M.map(z=>z.matches&&z.match&&z.controller?Gr("loader",Xr(e.history,z.path,z.controller.signal),z.match,z.matches,i,o,a):{type:me.error,error:tt(404,{pathname:z.path})})]),U=I.slice(0,P.length),F=I.slice(P.length);return await Promise.all([ld(S,P,U,U.map(()=>B.signal),!1,y.loaderData),ld(S,M.map(z=>z.match),F,M.map(z=>z.controller?z.controller.signal:null),!0)]),{results:I,loaderResults:U,fetcherResults:F}}function nu(){H=!0,A.push(...ou()),Et.forEach((S,E)=>{ee.has(E)&&(ie.push(E),Gt(E))})}function Qo(S,E,P){let M=cr(y.matches,E);ru(S),te({errors:{[M.route.id]:P},fetchers:new Map(y.fetchers)})}function ru(S){let E=y.fetchers.get(S);ee.has(S)&&!(E&&E.state==="loading"&&Jt.has(S))&&Gt(S),Et.delete(S),Jt.delete(S),Ke.delete(S),y.fetchers.delete(S)}function Gt(S){let E=ee.get(S);V(E,"Expected fetch controller: "+S),E.abort(),ee.delete(S)}function Sc(S){for(let E of S){let P=gc(E),M=Yn(P.data);y.fetchers.set(E,M)}}function Ec(){let S=[],E=!1;for(let P of Ke){let M=y.fetchers.get(P);V(M,"Expected fetcher: "+P),M.state==="loading"&&(Ke.delete(P),S.push(P),E=!0)}return Sc(S),E}function xc(S){let E=[];for(let[P,M]of Jt)if(M0}function Zm(S,E){let P=y.blockers.get(S)||Yr;return $.get(S)!==E&&$.set(S,E),P}function Cc(S){y.blockers.delete(S),$.delete(S)}function qo(S,E){let P=y.blockers.get(S)||Yr;V(P.state==="unblocked"&&E.state==="blocked"||P.state==="blocked"&&E.state==="blocked"||P.state==="blocked"&&E.state==="proceeding"||P.state==="blocked"&&E.state==="unblocked"||P.state==="proceeding"&&E.state==="unblocked","Invalid blocker state transition: "+P.state+" -> "+E.state);let M=new Map(y.blockers);M.set(S,E),te({blockers:M})}function kc(S){let{currentLocation:E,nextLocation:P,historyAction:M}=S;if($.size===0)return;$.size>1&&Or(!1,"A router only supports one blocker at a time");let B=Array.from($.entries()),[I,U]=B[B.length-1],F=y.blockers.get(I);if(!(F&&F.state==="proceeding")&&U({currentLocation:E,nextLocation:P,historyAction:M}))return I}function ou(S){let E=[];return L.forEach((P,M)=>{(!S||S(M))&&(P.cancel(),E.push(M),L.delete(M))}),E}function ey(S,E,P){if(p=S,m=E,w=P||null,!v&&y.navigation===Bu){v=!0;let M=Rc(y.location,y.matches);M!=null&&te({restoreScrollPosition:M})}return()=>{p=null,m=null,w=null}}function Pc(S,E){return w&&w(S,E.map(M=>A1(M,y.loaderData)))||S.key}function ty(S,E){if(p&&m){let P=Pc(S,E);p[P]=m()}}function Rc(S,E){if(p){let P=Pc(S,E),M=p[P];if(typeof M=="number")return M}return null}function ny(S){i={},u=qa(S,o,void 0,i)}return g={get basename(){return a},get state(){return y},get routes(){return l},initialize:se,subscribe:Qn,enableScrollRestoration:ey,navigate:xt,fetch:Ym,revalidate:qn,createHref:S=>e.history.createHref(S),encodeLocation:S=>e.history.encodeLocation(S),getFetcher:gc,deleteFetcher:ru,dispose:ve,getBlocker:Zm,deleteBlocker:Cc,_internalFetchControllers:ee,_internalActiveDeferreds:L,_internalSetRoutes:ny},g}function N1(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ja(e,t,n,r,o,i,l){let u,a;if(i!=null&&l!=="path"){u=[];for(let c of t)if(u.push(c),c.route.id===i){a=c;break}}else u=t,a=t[t.length-1];let s=nc(o||".",Tl(u).map(c=>c.pathnameBase),Ar(e.pathname,n)||e.pathname,l==="path");return o==null&&(s.search=e.search,s.hash=e.hash),(o==null||o===""||o===".")&&a&&a.route.index&&!oc(s.search)&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(s.pathname=s.pathname==="/"?n:Ut([n,s.pathname])),bn(s)}function Gf(e,t,n,r){if(!r||!N1(r))return{path:n};if(r.formMethod&&!M1(r.formMethod))return{path:n,error:tt(405,{method:r.formMethod})};let o=()=>({path:n,error:tt(400,{type:"invalid-body"})}),i=r.formMethod||"get",l=e?i.toUpperCase():i.toLowerCase(),u=hm(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ht(l))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((w,m)=>{let[v,C]=m;return""+w+v+"="+C+` +`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!ht(l))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:u,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}V(typeof FormData=="function","FormData is not available in this environment");let a,s;if(r.formData)a=Ya(r.formData),s=r.formData;else if(r.body instanceof FormData)a=Ya(r.body),s=r.body;else if(r.body instanceof URLSearchParams)a=r.body,s=td(a);else if(r.body==null)a=new URLSearchParams,s=new FormData;else try{a=new URLSearchParams(r.body),s=td(a)}catch{return o()}let c={formMethod:l,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(ht(c.formMethod))return{path:n,submission:c};let f=Qt(n);return t&&f.search&&oc(f.search)&&a.append("index",""),f.search="?"+a,{path:bn(f),submission:c}}function O1(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Xf(e,t,n,r,o,i,l,u,a,s,c,f,p,w){let m=w?Object.values(w)[0]:p?Object.values(p)[0]:void 0,v=e.createURL(t.location),C=e.createURL(o),h=w?Object.keys(w)[0]:void 0,g=O1(n,h).filter((k,T)=>{if(k.route.lazy)return!0;if(k.route.loader==null)return!1;if(_1(t.loaderData,t.matches[T],k)||l.some(H=>H===k.route.id))return!0;let O=t.matches[T],j=k;return Zf(k,le({currentUrl:v,currentParams:O.params,nextUrl:C,nextParams:j.params},r,{actionResult:m,defaultShouldRevalidate:i||v.pathname+v.search===C.pathname+C.search||v.search!==C.search||pm(O,j)}))}),y=[];return a.forEach((k,T)=>{if(!n.some(ie=>ie.route.id===k.routeId))return;let O=sr(c,k.path,f);if(!O){y.push({key:T,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let j=t.fetchers.get(T),H=Ga(O,k.path),A=!1;s.has(T)?A=!1:u.includes(T)?A=!0:j&&j.state!=="idle"&&j.data===void 0?A=i:A=Zf(H,le({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:n[n.length-1].params},r,{actionResult:m,defaultShouldRevalidate:i})),A&&y.push({key:T,routeId:k.routeId,path:k.path,matches:O,match:H,controller:new AbortController})}),[g,y]}function _1(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function pm(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Zf(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function ed(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];V(o,"No route found in manifest");let i={};for(let l in r){let a=o[l]!==void 0&&l!=="hasErrorBoundary";Or(!a,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!a&&!X0.has(l)&&(i[l]=r[l])}Object.assign(o,i),Object.assign(o,le({},t(o),{lazy:void 0}))}async function Gr(e,t,n,r,o,i,l,u){u===void 0&&(u={});let a,s,c,f=m=>{let v,C=new Promise((h,d)=>v=d);return c=()=>v(),t.signal.addEventListener("abort",c),Promise.race([m({request:t,params:n.params,context:u.requestContext}),C])};try{let m=n.route[e];if(n.route.lazy)if(m)s=(await Promise.all([f(m),ed(n.route,i,o)]))[0];else if(await ed(n.route,i,o),m=n.route[e],m)s=await f(m);else if(e==="action"){let v=new URL(t.url),C=v.pathname+v.search;throw tt(405,{method:t.method,pathname:C,routeId:n.route.id})}else return{type:me.data,data:void 0};else if(m)s=await f(m);else{let v=new URL(t.url),C=v.pathname+v.search;throw tt(404,{pathname:C})}V(s!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(m){a=me.error,s=m}finally{c&&t.signal.removeEventListener("abort",c)}if(D1(s)){let m=s.status;if(x1.has(m)){let h=s.headers.get("Location");if(V(h,"Redirects returned/thrown from loaders/actions must have a Location header"),!dm.test(h))h=Ja(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,h);else if(!u.isStaticRequest){let d=new URL(t.url),g=h.startsWith("//")?new URL(d.protocol+h):new URL(h),y=Ar(g.pathname,l)!=null;g.origin===d.origin&&y&&(h=g.pathname+g.search+g.hash)}if(u.isStaticRequest)throw s.headers.set("Location",h),s;return{type:me.redirect,status:m,location:h,revalidate:s.headers.get("X-Remix-Revalidate")!==null,reloadDocument:s.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:a===me.error?me.error:me.data,response:s};let v,C=s.headers.get("Content-Type");return C&&/\bapplication\/json\b/.test(C)?v=await s.json():v=await s.text(),a===me.error?{type:a,error:new rc(m,s.statusText,v),headers:s.headers}:{type:me.data,data:v,statusCode:s.status,headers:s.headers}}if(a===me.error)return{type:a,error:s};if(j1(s)){var p,w;return{type:me.deferred,deferredData:s,statusCode:(p=s.init)==null?void 0:p.status,headers:((w=s.init)==null?void 0:w.headers)&&new Headers(s.init.headers)}}return{type:me.data,data:s}}function Xr(e,t,n,r){let o=e.createURL(hm(t)).toString(),i={signal:n};if(r&&ht(r.formMethod)){let{formMethod:l,formEncType:u}=r;i.method=l.toUpperCase(),u==="application/json"?(i.headers=new Headers({"Content-Type":u}),i.body=JSON.stringify(r.json)):u==="text/plain"?i.body=r.text:u==="application/x-www-form-urlencoded"&&r.formData?i.body=Ya(r.formData):i.body=r.formData}return new Request(o,i)}function Ya(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function td(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function T1(e,t,n,r,o){let i={},l=null,u,a=!1,s={};return n.forEach((c,f)=>{let p=t[f].route.id;if(V(!vr(c),"Cannot handle redirect results in processLoaderData"),mo(c)){let w=cr(e,p),m=c.error;r&&(m=Object.values(r)[0],r=void 0),l=l||{},l[w.route.id]==null&&(l[w.route.id]=m),i[p]=void 0,a||(a=!0,u=cm(c.error)?c.error.status:500),c.headers&&(s[p]=c.headers)}else Mn(c)?(o.set(p,c.deferredData),i[p]=c.deferredData.data):i[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!a&&(u=c.statusCode),c.headers&&(s[p]=c.headers)}),r&&(l=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:l,statusCode:u||200,loaderHeaders:s}}function nd(e,t,n,r,o,i,l,u){let{loaderData:a,errors:s}=T1(t,n,r,o,u);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function od(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function tt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,l="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&n&&r?u="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?u="defer() is not supported in actions":i==="invalid-body"&&(u="Unable to encode submission body")):e===403?(l="Forbidden",u='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",u='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?u="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(u='Invalid request method "'+o.toUpperCase()+'"')),new rc(e||500,l,new Error(u),!0)}function id(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(vr(n))return{result:n,idx:t}}}function hm(e){let t=typeof e=="string"?Qt(e):e;return bn(le({},t,{hash:""}))}function L1(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Mn(e){return e.type===me.deferred}function mo(e){return e.type===me.error}function vr(e){return(e&&e.type)===me.redirect}function j1(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function D1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function M1(e){return E1.has(e.toLowerCase())}function ht(e){return w1.has(e.toLowerCase())}async function ld(e,t,n,r,o,i){for(let l=0;lf.route.id===a.route.id),c=s!=null&&!pm(s,a)&&(i&&i[a.route.id])!==void 0;if(Mn(u)&&(o||c)){let f=r[l];V(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await mm(u,f,o).then(p=>{p&&(n[l]=p||n[l])})}}}async function mm(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:me.data,data:e.deferredData.unwrappedData}}catch(o){return{type:me.error,error:o}}return{type:me.data,data:e.deferredData.data}}}function oc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function A1(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function Ga(e,t){let n=typeof t=="string"?Qt(t).search:t.search;if(e[e.length-1].route.index&&oc(n||""))return e[e.length-1];let r=Tl(e);return r[r.length-1]}function ud(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:l}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function pi(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function z1(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Zr(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function F1(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function Yn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** + * React Router v6.15.0 + * + * 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 tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.pathnameBase)),l=_.useRef(!1);return gm(()=>{l.current=!0}),_.useCallback(function(a,s){if(s===void 0&&(s={}),!l.current)return;if(typeof a=="number"){n.go(a);return}let c=nc(a,JSON.parse(i),o,s.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Ut([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,i,o,e])}function wm(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=_.useContext(Kn),{pathname:o}=Dl(),i=JSON.stringify(Tl(r).map(l=>l.pathnameBase));return _.useMemo(()=>nc(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function B1(e,t,n){Ko()||V(!1);let{navigator:r}=_.useContext(zr),{matches:o}=_.useContext(Kn),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let a=Dl(),s;if(t){var c;let v=typeof t=="string"?Qt(t):t;u==="/"||(c=v.pathname)!=null&&c.startsWith(u)||V(!1),s=v}else s=a;let f=s.pathname||"/",p=u==="/"?f:f.slice(u.length)||"/",w=sr(e,{pathname:p}),m=K1(w&&w.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:Ut([u,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?u:Ut([u,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n);return t&&m?_.createElement(jl.Provider,{value:{location:tl({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:ge.Pop}},m):m}function b1(){let e=Y1(),t=cm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:o},n):null,i)}const H1=_.createElement(b1,null);class V1 extends _.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?_.createElement(Kn.Provider,{value:this.props.routeContext},_.createElement(vm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function W1(e){let{routeContext:t,match:n,children:r}=e,o=_.useContext(Ll);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(Kn.Provider,{value:t},r)}function K1(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,l=(r=n)==null?void 0:r.errors;if(l!=null){let u=i.findIndex(a=>a.route.id&&(l==null?void 0:l[a.route.id]));u>=0||V(!1),i=i.slice(0,Math.min(i.length,u+1))}return i.reduceRight((u,a,s)=>{let c=a.route.id?l==null?void 0:l[a.route.id]:null,f=null;n&&(f=a.route.errorElement||H1);let p=t.concat(i.slice(0,s+1)),w=()=>{let m;return c?m=f:a.route.Component?m=_.createElement(a.route.Component,null):a.route.element?m=a.route.element:m=u,_.createElement(W1,{match:a,routeContext:{outlet:u,matches:p,isDataRoute:n!=null},children:m})};return n&&(a.route.ErrorBoundary||a.route.errorElement||s===0)?_.createElement(V1,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:w(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):w()},null)}var Sm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Sm||{}),nl=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}(nl||{});function Q1(e){let t=_.useContext(Ll);return t||V(!1),t}function q1(e){let t=_.useContext(ym);return t||V(!1),t}function J1(e){let t=_.useContext(Kn);return t||V(!1),t}function Em(e){let t=J1(),n=t.matches[t.matches.length-1];return n.route.id||V(!1),n.route.id}function Y1(){var e;let t=_.useContext(vm),n=q1(nl.UseRouteError),r=Em(nl.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function G1(){let{router:e}=Q1(Sm.UseNavigateStable),t=Em(nl.UseNavigateStable),n=_.useRef(!1);return gm(()=>{n.current=!0}),_.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,tl({fromRouteId:t},i)))},[e,t])}const X1="startTransition",ad=xy[X1];function Z1(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=_.useState(n.state),{v7_startTransition:l}=r||{},u=_.useCallback(f=>{l&&ad?ad(()=>i(f)):i(f)},[i,l]);_.useLayoutEffect(()=>n.subscribe(u),[n,u]);let a=_.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,p,w)=>n.navigate(f,{state:p,preventScrollReset:w==null?void 0:w.preventScrollReset}),replace:(f,p,w)=>n.navigate(f,{replace:!0,state:p,preventScrollReset:w==null?void 0:w.preventScrollReset})}),[n]),s=n.basename||"/",c=_.useMemo(()=>({router:n,navigator:a,static:!1,basename:s}),[n,a,s]);return _.createElement(_.Fragment,null,_.createElement(Ll.Provider,{value:c},_.createElement(ym.Provider,{value:o},_.createElement(tw,{basename:s,location:o.location,navigationType:o.historyAction,navigator:a},o.initialized?_.createElement(ew,{routes:n.routes,state:o}):t))),null)}function ew(e){let{routes:t,state:n}=e;return B1(t,void 0,n)}function tw(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ge.Pop,navigator:i,static:l=!1}=e;Ko()&&V(!1);let u=t.replace(/^\/*/,"/"),a=_.useMemo(()=>({basename:u,navigator:i,static:l}),[u,i,l]);typeof r=="string"&&(r=Qt(r));let{pathname:s="/",search:c="",hash:f="",state:p=null,key:w="default"}=r,m=_.useMemo(()=>{let v=Ar(s,u);return v==null?null:{location:{pathname:v,search:c,hash:f,state:p,key:w},navigationType:o}},[u,s,c,f,p,w,o]);return m==null?null:_.createElement(zr.Provider,{value:a},_.createElement(jl.Provider,{children:n,value:m}))}new Promise(()=>{});function nw(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:_.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:_.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.15.0 + * + * 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 Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function ow(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function iw(e,t){return e.button===0&&(!t||t==="_self")&&!ow(e)}const lw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function uw(e,t){return R1({basename:t==null?void 0:t.basename,future:Ao({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:J0({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||aw(),routes:e,mapRouteProperties:nw}).initialize()}function aw(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ao({},t,{errors:sw(t.errors)})),t}function sw(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new rc(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let l=new i(o.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const cw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bu=_.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:u,target:a,to:s,preventScrollReset:c}=t,f=rw(t,lw),{basename:p}=_.useContext(zr),w,m=!1;if(typeof s=="string"&&fw.test(s)&&(w=s,cw))try{let d=new URL(window.location.href),g=s.startsWith("//")?new URL(d.protocol+s):new URL(s),y=Ar(g.pathname,p);g.origin===d.origin&&y!=null?s=y+g.search+g.hash:m=!0}catch{}let v=$1(s,{relative:o}),C=dw(s,{replace:l,state:u,target:a,preventScrollReset:c,relative:o});function h(d){r&&r(d),d.defaultPrevented||C(d)}return _.createElement("a",Ao({},f,{href:w||v,onClick:m||i?r:h,ref:n,target:a}))});var sd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(sd||(sd={}));var cd;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cd||(cd={}));function dw(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l}=t===void 0?{}:t,u=I1(),a=Dl(),s=wm(e,{relative:l});return _.useCallback(c=>{if(iw(c,n)){c.preventDefault();let f=r!==void 0?r:bn(a)===bn(s);u(e,{replace:f,state:o,preventScrollReset:i,relative:l})}},[a,u,s,r,o,n,e,i,l])}const Ml=()=>N.jsxs("div",{className:"text-2xl font-bold underline flex justify-around",children:[N.jsx(bu,{to:"/home",children:"Home"}),N.jsx(bu,{to:"/about",children:"About"}),N.jsx(bu,{to:"/contact",children:"Contact"})]});var xm={exports:{}},Cm={};/** + * @license React + * use-sync-external-store-shim.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 _r=_;function pw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hw=typeof Object.is=="function"?Object.is:pw,mw=_r.useState,yw=_r.useEffect,vw=_r.useLayoutEffect,gw=_r.useDebugValue;function ww(e,t){var n=t(),r=mw({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return vw(function(){o.value=n,o.getSnapshot=t,Hu(o)&&i({inst:o})},[e,n,t]),yw(function(){return Hu(o)&&i({inst:o}),e(function(){Hu(o)&&i({inst:o})})},[e]),gw(n),n}function Hu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hw(e,n)}catch{return!0}}function Sw(e,t){return t()}var Ew=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Sw:ww;Cm.useSyncExternalStore=_r.useSyncExternalStore!==void 0?_r.useSyncExternalStore:Ew;xm.exports=Cm;var xw=xm.exports,km={exports:{}},Pm={};/** + * @license React + * use-sync-external-store-shim/with-selector.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 Al=_,Cw=xw;function kw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pw=typeof Object.is=="function"?Object.is:kw,Rw=Cw.useSyncExternalStore,Nw=Al.useRef,Ow=Al.useEffect,_w=Al.useMemo,Tw=Al.useDebugValue;Pm.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=Nw(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=_w(function(){function a(w){if(!s){if(s=!0,c=w,w=r(w),o!==void 0&&l.hasValue){var m=l.value;if(o(m,w))return f=m}return f=w}if(m=f,Pw(c,w))return m;var v=r(w);return o!==void 0&&o(m,v)?m:(c=w,f=v)}var s=!1,c,f,p=n===void 0?null:n;return[function(){return a(t())},p===null?void 0:function(){return a(p())}]},[t,n,r,o]);var u=Rw(e,i[0],i[1]);return Ow(function(){l.hasValue=!0,l.value=u},[u]),Tw(u),u};km.exports=Pm;var Lw=km.exports;function jw(e){e()}let Rm=jw;const Dw=e=>Rm=e,Mw=()=>Rm,fd=Symbol.for("react-redux-context"),dd=typeof globalThis<"u"?globalThis:{};function Aw(){var e;if(!_.createContext)return{};const t=(e=dd[fd])!=null?e:dd[fd]=new Map;let n=t.get(_.createContext);return n||(n=_.createContext(null),t.set(_.createContext,n)),n}const En=Aw();function ic(e=En){return function(){return _.useContext(e)}}const Nm=ic(),zw=()=>{throw new Error("uSES not initialized!")};let Om=zw;const Fw=e=>{Om=e},$w=(e,t)=>e===t;function Iw(e=En){const t=e===En?Nm:ic(e);return function(r,o={}){const{equalityFn:i=$w,stabilityCheck:l=void 0,noopCheck:u=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:a,subscription:s,getServerState:c,stabilityCheck:f,noopCheck:p}=t();_.useRef(!0);const w=_.useCallback({[r.name](v){return r(v)}}[r.name],[r,f,l]),m=Om(s.addNestedSub,a.getState,c||a.getState,w,i);return _.useDebugValue(m),m}}const Uw=Iw();var _m={exports:{}},J={};/** @license React v16.13.1 + * react-is.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 Ne=typeof Symbol=="function"&&Symbol.for,lc=Ne?Symbol.for("react.element"):60103,uc=Ne?Symbol.for("react.portal"):60106,zl=Ne?Symbol.for("react.fragment"):60107,Fl=Ne?Symbol.for("react.strict_mode"):60108,$l=Ne?Symbol.for("react.profiler"):60114,Il=Ne?Symbol.for("react.provider"):60109,Ul=Ne?Symbol.for("react.context"):60110,ac=Ne?Symbol.for("react.async_mode"):60111,Bl=Ne?Symbol.for("react.concurrent_mode"):60111,bl=Ne?Symbol.for("react.forward_ref"):60112,Hl=Ne?Symbol.for("react.suspense"):60113,Bw=Ne?Symbol.for("react.suspense_list"):60120,Vl=Ne?Symbol.for("react.memo"):60115,Wl=Ne?Symbol.for("react.lazy"):60116,bw=Ne?Symbol.for("react.block"):60121,Hw=Ne?Symbol.for("react.fundamental"):60117,Vw=Ne?Symbol.for("react.responder"):60118,Ww=Ne?Symbol.for("react.scope"):60119;function et(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case lc:switch(e=e.type,e){case ac:case Bl:case zl:case $l:case Fl:case Hl:return e;default:switch(e=e&&e.$$typeof,e){case Ul:case bl:case Wl:case Vl:case Il:return e;default:return t}}case uc:return t}}}function Tm(e){return et(e)===Bl}J.AsyncMode=ac;J.ConcurrentMode=Bl;J.ContextConsumer=Ul;J.ContextProvider=Il;J.Element=lc;J.ForwardRef=bl;J.Fragment=zl;J.Lazy=Wl;J.Memo=Vl;J.Portal=uc;J.Profiler=$l;J.StrictMode=Fl;J.Suspense=Hl;J.isAsyncMode=function(e){return Tm(e)||et(e)===ac};J.isConcurrentMode=Tm;J.isContextConsumer=function(e){return et(e)===Ul};J.isContextProvider=function(e){return et(e)===Il};J.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===lc};J.isForwardRef=function(e){return et(e)===bl};J.isFragment=function(e){return et(e)===zl};J.isLazy=function(e){return et(e)===Wl};J.isMemo=function(e){return et(e)===Vl};J.isPortal=function(e){return et(e)===uc};J.isProfiler=function(e){return et(e)===$l};J.isStrictMode=function(e){return et(e)===Fl};J.isSuspense=function(e){return et(e)===Hl};J.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zl||e===Bl||e===$l||e===Fl||e===Hl||e===Bw||typeof e=="object"&&e!==null&&(e.$$typeof===Wl||e.$$typeof===Vl||e.$$typeof===Il||e.$$typeof===Ul||e.$$typeof===bl||e.$$typeof===Hw||e.$$typeof===Vw||e.$$typeof===Ww||e.$$typeof===bw)};J.typeOf=et;_m.exports=J;var Kw=_m.exports,Lm=Kw,Qw={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jm={};jm[Lm.ForwardRef]=Qw;jm[Lm.Memo]=qw;var X={};/** + * @license React + * react-is.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 sc=Symbol.for("react.element"),cc=Symbol.for("react.portal"),Kl=Symbol.for("react.fragment"),Ql=Symbol.for("react.strict_mode"),ql=Symbol.for("react.profiler"),Jl=Symbol.for("react.provider"),Yl=Symbol.for("react.context"),Jw=Symbol.for("react.server_context"),Gl=Symbol.for("react.forward_ref"),Xl=Symbol.for("react.suspense"),Zl=Symbol.for("react.suspense_list"),eu=Symbol.for("react.memo"),tu=Symbol.for("react.lazy"),Yw=Symbol.for("react.offscreen"),Dm;Dm=Symbol.for("react.module.reference");function st(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case sc:switch(e=e.type,e){case Kl:case ql:case Ql:case Xl:case Zl:return e;default:switch(e=e&&e.$$typeof,e){case Jw:case Yl:case Gl:case tu:case eu:case Jl:return e;default:return t}}case cc:return t}}}X.ContextConsumer=Yl;X.ContextProvider=Jl;X.Element=sc;X.ForwardRef=Gl;X.Fragment=Kl;X.Lazy=tu;X.Memo=eu;X.Portal=cc;X.Profiler=ql;X.StrictMode=Ql;X.Suspense=Xl;X.SuspenseList=Zl;X.isAsyncMode=function(){return!1};X.isConcurrentMode=function(){return!1};X.isContextConsumer=function(e){return st(e)===Yl};X.isContextProvider=function(e){return st(e)===Jl};X.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===sc};X.isForwardRef=function(e){return st(e)===Gl};X.isFragment=function(e){return st(e)===Kl};X.isLazy=function(e){return st(e)===tu};X.isMemo=function(e){return st(e)===eu};X.isPortal=function(e){return st(e)===cc};X.isProfiler=function(e){return st(e)===ql};X.isStrictMode=function(e){return st(e)===Ql};X.isSuspense=function(e){return st(e)===Xl};X.isSuspenseList=function(e){return st(e)===Zl};X.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Kl||e===ql||e===Ql||e===Xl||e===Zl||e===Yw||typeof e=="object"&&e!==null&&(e.$$typeof===tu||e.$$typeof===eu||e.$$typeof===Jl||e.$$typeof===Yl||e.$$typeof===Gl||e.$$typeof===Dm||e.getModuleId!==void 0)};X.typeOf=st;function Gw(){const e=Mw();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],o=t;for(;o;)r.push(o),o=o.next;return r},subscribe(r){let o=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const pd={notify(){},get:()=>[]};function Xw(e,t){let n,r=pd;function o(f){return a(),r.subscribe(f)}function i(){r.notify()}function l(){c.onStateChange&&c.onStateChange()}function u(){return!!n}function a(){n||(n=t?t.addNestedSub(l):e.subscribe(l),r=Gw())}function s(){n&&(n(),n=void 0,r.clear(),r=pd)}const c={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:l,isSubscribed:u,trySubscribe:a,tryUnsubscribe:s,getListeners:()=>r};return c}const Zw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",eS=Zw?_.useLayoutEffect:_.useEffect;function tS({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:i="once"}){const l=_.useMemo(()=>{const s=Xw(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:i}},[e,r,o,i]),u=_.useMemo(()=>e.getState(),[e]);eS(()=>{const{subscription:s}=l;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),u!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[l,u]);const a=t||En;return _.createElement(a.Provider,{value:l},n)}function Mm(e=En){const t=e===En?Nm:ic(e);return function(){const{store:r}=t();return r}}const nS=Mm();function rS(e=En){const t=e===En?nS:Mm(e);return function(){return t().dispatch}}const oS=rS();Fw(Lw.useSyncExternalStoreWithSelector);Dw(bh.unstable_batchedUpdates);function yt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:fc(e)?2:dc(e)?3:0}function gr(e,t){return Fr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function iS(e,t){return Fr(e)===2?e.get(t):e[t]}function Am(e,t,n){var r=Fr(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function zm(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function fc(e){return fS&&e instanceof Map}function dc(e){return dS&&e instanceof Set}function Tn(e){return e.o||e.t}function pc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=$m(e);delete t[ue];for(var n=wr(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=lS),Object.freeze(e),t&&Hn(e,function(n,r){return hc(r,!0)},!0)),e}function lS(){yt(2)}function mc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function _t(e){var t=ts[e];return t||yt(18,e),t}function uS(e,t){ts[e]||(ts[e]=t)}function Xa(){return zo}function Vu(e,t){t&&(_t("Patches"),e.u=[],e.s=[],e.v=t)}function rl(e){Za(e),e.p.forEach(aS),e.p=null}function Za(e){e===zo&&(zo=e.l)}function hd(e){return zo={p:[],l:zo,h:e,m:!0,_:0}}function aS(e){var t=e[ue];t.i===0||t.i===1?t.j():t.g=!0}function Wu(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||_t("ES5").S(t,e,r),r?(n[ue].P&&(rl(t),yt(4)),Wt(e)&&(e=ol(t,e),t.l||il(t,e)),t.u&&_t("Patches").M(n[ue].t,e,t.u,t.s)):e=ol(t,n,[]),rl(t),t.u&&t.v(t.u,t.s),e!==Fm?e:void 0}function ol(e,t,n){if(mc(t))return t;var r=t[ue];if(!r)return Hn(t,function(u,a){return md(e,r,t,u,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return il(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=pc(r.k):r.o,i=o,l=!1;r.i===3&&(i=new Set(o),o.clear(),l=!0),Hn(i,function(u,a){return md(e,r,o,u,a,n,l)}),il(e,o,!1),n&&e.u&&_t("Patches").N(r,n,e.u,e.s)}return r.o}function md(e,t,n,r,o,i,l){if(xn(o)){var u=ol(e,o,i&&t&&t.i!==3&&!gr(t.R,r)?i.concat(r):void 0);if(Am(n,r,u),!xn(u))return;e.m=!1}else l&&n.add(o);if(Wt(o)&&!mc(o)){if(!e.h.D&&e._<1)return;ol(e,o),t&&t.A.l||il(e,o)}}function il(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&hc(t,n)}function Ku(e,t){var n=e[ue];return(n?Tn(n):e)[t]}function yd(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function ln(e){e.P||(e.P=!0,e.l&&ln(e.l))}function Qu(e){e.o||(e.o=pc(e.t))}function es(e,t,n){var r=fc(t)?_t("MapSet").F(t,n):dc(t)?_t("MapSet").T(t,n):e.O?function(o,i){var l=Array.isArray(o),u={i:l?1:0,A:i?i.A:Xa(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},a=u,s=Fo;l&&(a=[u],s=oo);var c=Proxy.revocable(a,s),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p}(t,n):_t("ES5").J(t,n);return(n?n.A:Xa()).p.push(r),r}function sS(e){return xn(e)||yt(22,e),function t(n){if(!Wt(n))return n;var r,o=n[ue],i=Fr(n);if(o){if(!o.P&&(o.i<4||!_t("ES5").K(o)))return o.t;o.I=!0,r=vd(n,i),o.I=!1}else r=vd(n,i);return Hn(r,function(l,u){o&&iS(o.t,l)===u||Am(r,l,t(u))}),i===3?new Set(r):r}(e)}function vd(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return pc(e)}function cS(){function e(i,l){var u=o[i];return u?u.enumerable=l:o[i]=u={configurable:!0,enumerable:l,get:function(){var a=this[ue];return Fo.get(a,i)},set:function(a){var s=this[ue];Fo.set(s,i,a)}},u}function t(i){for(var l=i.length-1;l>=0;l--){var u=i[l][ue];if(!u.P)switch(u.i){case 5:r(u)&&ln(u);break;case 4:n(u)&&ln(u)}}}function n(i){for(var l=i.t,u=i.k,a=wr(u),s=a.length-1;s>=0;s--){var c=a[s];if(c!==ue){var f=l[c];if(f===void 0&&!gr(l,c))return!0;var p=u[c],w=p&&p[ue];if(w?w.t!==f:!zm(p,f))return!0}}var m=!!l[ue];return a.length!==wr(l).length+(m?0:1)}function r(i){var l=i.k;if(l.length!==i.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var a=0;a1?h-1:0),g=1;g1?c-1:0),p=1;p=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var l=_t("Patches").$;return xn(n)?l(n,r):this.produce(n,function(u){return l(u,r)})},e}(),Ge=new hS,Im=Ge.produce;Ge.produceWithPatches.bind(Ge);Ge.setAutoFreeze.bind(Ge);Ge.setUseProxies.bind(Ge);Ge.applyPatches.bind(Ge);Ge.createDraft.bind(Ge);Ge.finishDraft.bind(Ge);function $o(e){"@babel/helpers - typeof";return $o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$o(e)}function mS(e,t){if($o(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($o(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yS(e){var t=mS(e,"string");return $o(t)==="symbol"?t:String(t)}function vS(e,t,n){return t=yS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xd(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Me(1));return n(Um)(e,t)}if(typeof e!="function")throw new Error(Me(2));var o=e,i=t,l=[],u=l,a=!1;function s(){u===l&&(u=l.slice())}function c(){if(a)throw new Error(Me(3));return i}function f(v){if(typeof v!="function")throw new Error(Me(4));if(a)throw new Error(Me(5));var C=!0;return s(),u.push(v),function(){if(C){if(a)throw new Error(Me(6));C=!1,s();var d=u.indexOf(v);u.splice(d,1),l=null}}}function p(v){if(!gS(v))throw new Error(Me(7));if(typeof v.type>"u")throw new Error(Me(8));if(a)throw new Error(Me(9));try{a=!0,i=o(i,v)}finally{a=!1}for(var C=l=u,h=0;h"u")throw new Error(Me(12));if(typeof n(void 0,{type:ll.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Me(13))})}function SS(e){for(var t=Object.keys(e),n={},r=0;r"u")throw s&&s.type,new Error(Me(14));f[w]=C,c=c||C!==v}return c=c||i.length!==Object.keys(a).length,c?f:a}}function ul(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]{e.push(t.payload)}}});const qS=({apiData:e})=>N.jsx("div",{children:N.jsx("ul",{children:e==null?void 0:e.map(t=>N.jsx("li",{children:t.title},t.id))})}),Km=WS("mobile-phone",async()=>(console.log("KKKKKKKKKKKKKKKKKK"),await q0.get("https://dummyjson.com/products")));function Qm(){const e=oS(),t=Uw(n=>n.phoneReducer.phoneList);return console.log(t,">>>>>>>>>>>>>>>>>>>>>>>>"),_.useEffect(()=>{console.log("LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL"),e(Km())},[]),N.jsxs("div",{className:"App",children:[N.jsx(Ml,{}),N.jsx(qS,{apiData:t})]})}const JS=()=>{const[e,t]=_.useState({fullName:"",qualification:"",year:"",dateOfBirth:"",mobileNumber:"",gmail:"",password:""}),n=o=>{const{name:i,value:l}=o.target;t(u=>({...u,[i]:l}))},r=o=>{o.preventDefault(),console.log(e)};return N.jsx("div",{className:"bg-gray-100 p-6 rounded-lg shadow",children:N.jsxs("form",{onSubmit:r,children:[N.jsx("div",{className:"mb-4",children:N.jsxs("div",{className:"form-group",children:[N.jsx("span",{className:"text-gray-600"}),N.jsx("input",{type:"text",name:"fullName",placeholder:"Full Name",value:e.fullName,onChange:n,required:!0,className:"form-control"})]})}),N.jsx("div",{className:"mb-4",children:N.jsxs("div",{className:"form-group",children:[N.jsx("span",{className:"form-icon"}),N.jsx("input",{type:"email",name:"gmail",placeholder:"Gmail",value:e.gmail,onChange:n,required:!0,className:"form-control"})]})}),N.jsx("div",{className:"mb-4",children:N.jsxs("div",{className:"form-group flex",children:[N.jsx("span",{className:"form-icon"}),N.jsx("input",{type:"text",name:"year",placeholder:"Year",value:e.year,onChange:n,required:!0,className:"form-control"}),N.jsx("input",{type:"date",name:"dateOfBirth",placeholder:"Date of Birth",value:e.dateOfBirth,onChange:n,required:!0,className:"form-control"})]})}),N.jsx("div",{className:"mb-4",children:N.jsxs("div",{className:"form-group",children:[N.jsx("span",{className:"form-icon"}),N.jsx("input",{type:"tel",name:"mobileNumber",placeholder:"Mobile Number",value:e.mobileNumber,onChange:n,required:!0,className:"form-control"})]})}),N.jsx("div",{className:"mb-4",children:N.jsxs("div",{className:"form-group",children:[N.jsx("span",{className:"form-icon"}),N.jsx("input",{type:"text",name:"course",placeholder:"Qualification",value:e.qualification,onChange:n,required:!0,className:"form-control"})]})}),N.jsx("div",{className:"mb-4",children:N.jsxs("div",{className:"form-group",children:[N.jsx("span",{className:"form-icon"}),N.jsx("input",{type:"password",name:"password",placeholder:"Password",value:e.password,onChange:n,required:!0,className:"form-control"})]})}),N.jsx("button",{type:"submit",className:"btn btn-primary text-black",children:"Submit"})]})})},YS=()=>{const[e,t]=_.useState({fullName:"",course:"",year:"",dateOfBirth:"",mobileNumber:"",gmail:"",password:""}),n=o=>{const{name:i,value:l}=o.target;t(u=>({...u,[i]:l}))},r=o=>{o.preventDefault(),console.log(e)};return N.jsx("div",{className:"bg-gray-100 p-6 rounded-lg shadow",children:N.jsxs("form",{onSubmit:r,children:[N.jsx("div",{className:"mb-4",children:N.jsxs("div",{className:"form-group",children:[N.jsx("span",{className:"text-gray-600"}),N.jsx("input",{type:"text",name:"fullName",placeholder:"Full Name",value:e.fullName,onChange:n,required:!0,className:"form-control"})]})}),N.jsx("div",{className:"mb-4",children:N.jsxs("div",{className:"form-group",children:[N.jsx("span",{className:"form-icon"}),N.jsx("input",{type:"text",name:"course",placeholder:"Course",value:e.course,onChange:n,required:!0,className:"form-control"})]})}),N.jsx("div",{className:"mb-4",children:N.jsxs("div",{className:"form-group dual-input flex",children:[N.jsx("span",{className:"form-icon"}),N.jsx("input",{type:"text",name:"year",placeholder:"Year",value:e.year,onChange:n,required:!0,className:"form-control"}),N.jsx("input",{type:"date",name:"dateOfBirth",placeholder:"Date of Birth",value:e.dateOfBirth,onChange:n,required:!0,className:"form-control"})]})}),N.jsx("div",{className:"mb-4",children:N.jsxs("div",{className:"form-group",children:[N.jsx("span",{className:"form-icon"}),N.jsx("input",{type:"tel",name:"mobileNumber",placeholder:"Mobile Number",value:e.mobileNumber,onChange:n,required:!0,className:"form-control"})]})}),N.jsx("div",{className:"mb-4",children:N.jsxs("div",{className:"form-group",children:[N.jsx("span",{className:"form-icon"}),N.jsx("input",{type:"email",name:"gmail",placeholder:"Gmail",value:e.gmail,onChange:n,required:!0,className:"form-control"})]})}),N.jsx("div",{className:"mb-4",children:N.jsxs("div",{className:"form-group",children:[N.jsx("span",{className:"form-icon"}),N.jsx("input",{type:"password",name:"password",placeholder:"Password",value:e.password,onChange:n,required:!0,className:"form-control"})]})}),N.jsx("button",{type:"submit",className:"btn btn-primary text-black",children:"Submit"})]})})},GS=()=>{const[e,t]=_.useState("mentor"),n=r=>{t(r)};return N.jsxs("div",{className:"bg-purple-100 py-8",children:[N.jsxs("div",{className:"flex justify-center mb-4",children:[N.jsx("button",{className:`${e==="mentor"?"bg-gray-500 text-white outline-none":"bg-gray-300 text-gray-700"} py-2 px-4 rounded-l`,onClick:()=>n("mentor"),children:"Mentor"}),N.jsx("button",{className:`${e==="mentee"?"bg-gray-500 text-white":"bg-gray-300 text-gray-700"} py-2 px-4 rounded-r`,onClick:()=>n("mentee"),children:"Mentee"})]}),N.jsxs("div",{className:"mx-auto max-w-md bg-white p-6 rounded-lg shadow",children:[e==="mentor"&&N.jsx(JS,{}),e==="mentee"&&N.jsx(YS,{})]})]})},XS=()=>N.jsxs("div",{className:"text-center",children:[N.jsx("h1",{children:"Curious Ecosystem"}),N.jsx(Ml,{}),N.jsx("h1",{className:"mt-10 text-2xl",children:"Home"}),N.jsx(GS,{})]}),ZS=()=>N.jsxs("div",{className:"text-center m-auto",children:[N.jsx(Ml,{}),N.jsx("h1",{className:"mt-20 text-2xl",children:"About"})]}),eE=()=>N.jsxs("div",{className:"text-center m-auto",children:[N.jsx(Ml,{}),N.jsx("h1",{className:"mt-20 text-2xl",children:"Contact"})]}),tE=uw([{path:"/",element:N.jsx(Qm,{})},{path:"/home",element:N.jsx(XS,{})},{path:"/about",element:N.jsx(ZS,{})},{path:"/contact",element:N.jsx(eE,{})}]),nE={phoneList:[]},rE=Wm({name:"phone",initialState:nE,extraReducers:e=>{e.addCase(Km.fulfilled,(t,n)=>{t.phoneList=n.payload.data.products})}}),oE=rE.reducer,iE=FS({reducer:{phoneReducer:oE}});Gu.createRoot(document.getElementById("root")).render(N.jsx(tS,{store:iE,children:N.jsx(Z1,{router:tE,children:N.jsx(Qm,{})})})); diff --git a/dist/assets/index-716dd03b.css b/dist/assets/index-716dd03b.css new file mode 100644 index 0000000..1689fa3 --- /dev/null +++ b/dist/assets/index-716dd03b.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.mb-4{margin-bottom:1rem}.mt-10{margin-top:2.5rem}.mt-20{margin-top:5rem}.flex{display:flex}.max-w-md{max-width:28rem}.justify-center{justify-content:center}.justify-around{justify-content:space-around}.rounded-lg{border-radius:.5rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.font-bold{font-weight:700}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%} diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..6a5a431 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,16 @@ + + + + + + + + Product + + + + +
+ + + diff --git a/dist/vite.svg b/dist/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/dist/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/App.jsx b/src/App.jsx index 3da24cd..f68fba7 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -5,18 +5,20 @@ import {useDispatch, useSelector} from 'react-redux'; import { addData } from "./features/getSlice"; import Data from "./pages/Data"; import { useEffect } from "react"; +import { getMobileList } from './services/mobileAction'; function App() { const dispatch = useDispatch(); - const apiData = useSelector((state) => state.getData); - async function getApi(){ - const res = await axios.get('https://dummyjson.com/products'); - const data = await res.data.products; - dispatch(addData(data)) - } - + const apiData = useSelector((state) => state.phoneReducer.phoneList); + // async function getApi(){ + // const res = await axios.get('https://dummyjson.com/products'); + // const data = await res.data.products; + // dispatch(addData(data)) + // } + console.log(apiData, '>>>>>>>>>>>>>>>>>>>>>>>>'); useEffect(() => { -getApi(); + console.log('LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL'); + dispatch( getMobileList()) },[]) return (
diff --git a/src/pages/About.jsx b/src/pages/About.jsx index a3bf545..dcbba96 100644 --- a/src/pages/About.jsx +++ b/src/pages/About.jsx @@ -6,6 +6,10 @@ const About = () => {

About

+ + +

Curious Ecosystem

+
) } diff --git a/src/pages/Contact.jsx b/src/pages/Contact.jsx index 859730c..2401c7e 100644 --- a/src/pages/Contact.jsx +++ b/src/pages/Contact.jsx @@ -6,6 +6,7 @@ const Contact = () => {

Contact

+

This is Contact Page

) } diff --git a/src/pages/Data.jsx b/src/pages/Data.jsx index d9ceb23..b5fc2e7 100644 --- a/src/pages/Data.jsx +++ b/src/pages/Data.jsx @@ -4,7 +4,7 @@ const Data = ({apiData}) => { return (
    - {apiData[0]?.map(data => ( + {apiData?.map(data => (
  • {data.title}
  • ))}
diff --git a/src/reducers/phoneReducer.js b/src/reducers/phoneReducer.js new file mode 100644 index 0000000..50b0abe --- /dev/null +++ b/src/reducers/phoneReducer.js @@ -0,0 +1,20 @@ +import { createSlice } from "@reduxjs/toolkit"; +import { getMobileList } from "../services/mobileAction"; + +const initialState = { + phoneList: [] +} +const phoneReducer = createSlice({ + name: 'phone', + initialState, + extraReducers : ( builder) => { + builder.addCase( getMobileList.fulfilled, (state, action ) => { + state.phoneList = action.payload.data.products + + }) + } +}); + +export default phoneReducer.reducer; + + diff --git a/src/services/mobileAction.jsx b/src/services/mobileAction.jsx new file mode 100644 index 0000000..51bb005 --- /dev/null +++ b/src/services/mobileAction.jsx @@ -0,0 +1,11 @@ +import { createAsyncThunk } from "@reduxjs/toolkit"; +import axios from "axios"; + +export const getMobileList = createAsyncThunk( + 'mobile-phone', + async () => { + console.log('KKKKKKKKKKKKKKKKKK'); + const res = await axios.get('https://dummyjson.com/products'); + return res; + } +) \ No newline at end of file diff --git a/src/store/store.js b/src/store/store.js index bee6309..d2f1466 100644 --- a/src/store/store.js +++ b/src/store/store.js @@ -1,8 +1,8 @@ import { configureStore } from '@reduxjs/toolkit'; -import getSlice from '../features/getSlice'; +import phoneReducer from '../reducers/phoneReducer'; export const store = configureStore({ reducer: { - getData : getSlice + phoneReducer }, }) \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 5a33944..cb306c1 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,4 +4,14 @@ import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + + //below config is required to map the port between Docker container and your React app + server: { + host: true, // needed for the Docker Container port mapping to work + strictPort: true, + port: 5173, // you can replace this port with any port + watch: { + usePolling: true, + } + } })