diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/assets/index-CZYky3LA.js b/assets/index-C2AOdZ6q.js similarity index 79% rename from assets/index-CZYky3LA.js rename to assets/index-C2AOdZ6q.js index b92f3b5..e39a438 100644 --- a/assets/index-CZYky3LA.js +++ b/assets/index-C2AOdZ6q.js @@ -1,4 +1,4 @@ -function df(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function pf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ds={exports:{}},xl={},Us={exports:{}},I={};/** +function pf(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ds={exports:{}},xl={},Us={exports:{}},O={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function df(e,t){for(var n=0;n>>1,J=C[Q];if(0>>1;Ql(Kl,z))ztl(kr,Kl)?(C[Q]=kr,C[zt]=z,Q=zt):(C[Q]=Kl,C[Tt]=z,Q=Tt);else if(ztl(kr,z))C[Q]=kr,C[zt]=z,Q=zt;else break e}}return T}function l(C,T){var z=C.sortIndex-T.sortIndex;return z!==0?z:C.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],h=1,d=null,m=3,v=!1,y=!1,g=!1,E=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(C){for(var T=n(a);T!==null;){if(T.callback===null)r(a);else if(T.startTime<=C)r(a),T.sortIndex=T.expirationTime,t(s,T);else break;T=n(a)}}function w(C){if(g=!1,p(C),!y)if(n(s)!==null)y=!0,Wl(P);else{var T=n(a);T!==null&&Ql(w,T.startTime-C)}}function P(C,T){y=!1,g&&(g=!1,f(R),R=-1),v=!0;var z=m;try{for(p(T),d=n(s);d!==null&&(!(d.expirationTime>T)||C&&!Oe());){var Q=d.callback;if(typeof Q=="function"){d.callback=null,m=d.priorityLevel;var J=Q(d.expirationTime<=T);T=e.unstable_now(),typeof J=="function"?d.callback=J:d===n(s)&&r(s),p(T)}else r(s);d=n(s)}if(d!==null)var Sr=!0;else{var Tt=n(a);Tt!==null&&Ql(w,Tt.startTime-T),Sr=!1}return Sr}finally{d=null,m=z,v=!1}}var _=!1,N=null,R=-1,W=5,j=-1;function Oe(){return!(e.unstable_now()-jC||125Q?(C.sortIndex=z,t(a,C),n(s)===null&&C===n(a)&&(g?(f(R),R=-1):g=!0,Ql(w,z-Q))):(C.sortIndex=J,t(s,C),y||v||(y=!0,Wl(P))),C},e.unstable_shouldYield=Oe,e.unstable_wrapCallback=function(C){var T=m;return function(){var z=m;m=T;try{return C.apply(this,arguments)}finally{m=z}}}})(Ys);Xs.exports=Ys;var Uf=Xs.exports;/** + */(function(e){function t(C,T){var z=C.length;C.push(T);e:for(;0>>1,J=C[Q];if(0>>1;Ql(Kl,z))ztl(kr,Kl)?(C[Q]=kr,C[zt]=z,Q=zt):(C[Q]=Kl,C[Tt]=z,Q=Tt);else if(ztl(kr,z))C[Q]=kr,C[zt]=z,Q=zt;else break e}}return T}function l(C,T){var z=C.sortIndex-T.sortIndex;return z!==0?z:C.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],h=1,d=null,m=3,v=!1,y=!1,g=!1,E=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(C){for(var T=n(a);T!==null;){if(T.callback===null)r(a);else if(T.startTime<=C)r(a),T.sortIndex=T.expirationTime,t(s,T);else break;T=n(a)}}function w(C){if(g=!1,p(C),!y)if(n(s)!==null)y=!0,Wl(P);else{var T=n(a);T!==null&&Ql(w,T.startTime-C)}}function P(C,T){y=!1,g&&(g=!1,f(R),R=-1),v=!0;var z=m;try{for(p(T),d=n(s);d!==null&&(!(d.expirationTime>T)||C&&!Oe());){var Q=d.callback;if(typeof Q=="function"){d.callback=null,m=d.priorityLevel;var J=Q(d.expirationTime<=T);T=e.unstable_now(),typeof J=="function"?d.callback=J:d===n(s)&&r(s),p(T)}else r(s);d=n(s)}if(d!==null)var Sr=!0;else{var Tt=n(a);Tt!==null&&Ql(w,Tt.startTime-T),Sr=!1}return Sr}finally{d=null,m=z,v=!1}}var _=!1,N=null,R=-1,W=5,j=-1;function Oe(){return!(e.unstable_now()-jC||125Q?(C.sortIndex=z,t(a,C),n(s)===null&&C===n(a)&&(g?(f(R),R=-1):g=!0,Ql(w,z-Q))):(C.sortIndex=J,t(s,C),y||v||(y=!0,Wl(P))),C},e.unstable_shouldYield=Oe,e.unstable_wrapCallback=function(C){var T=m;return function(){var z=m;m=T;try{return C.apply(this,arguments)}finally{m=z}}}})(Ys);Xs.exports=Ys;var Lf=Xs.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function df(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eo=Object.prototype.hasOwnProperty,$f=/^[: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]*$/,Su={},ku={};function Af(e){return Eo.call(ku,e)?!0:Eo.call(Su,e)?!1:$f.test(e)?ku[e]=!0:(Su[e]=!0,!1)}function Bf(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 Vf(e,t,n,r){if(t===null||typeof t>"u"||Bf(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 pe(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new pe(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){re[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ei=/[\-:]([a-z])/g;function Pi(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(Ei,Pi);re[t]=new pe(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(Ei,Pi);re[t]=new pe(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(Ei,Pi);re[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function xi(e,t,n,r){var l=re.hasOwnProperty(t)?re[t]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eo=Object.prototype.hasOwnProperty,Af=/^[: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]*$/,Su={},ku={};function Bf(e){return Eo.call(ku,e)?!0:Eo.call(Su,e)?!1:Af.test(e)?ku[e]=!0:(Su[e]=!0,!1)}function Vf(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 Hf(e,t,n,r){if(t===null||typeof t>"u"||Vf(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 pe(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new pe(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){re[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ei=/[\-:]([a-z])/g;function Pi(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(Ei,Pi);re[t]=new pe(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(Ei,Pi);re[t]=new pe(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(Ei,Pi);re[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function xi(e,t,n,r){var l=re.hasOwnProperty(t)?re[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` -`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Yl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?jn(e):""}function Hf(e){switch(e.tag){case 5:return jn(e.type);case 16:return jn("Lazy");case 13:return jn("Suspense");case 19:return jn("SuspenseList");case 0:case 2:case 15:return e=Gl(e.type,!1),e;case 11:return e=Gl(e.type.render,!1),e;case 1:return e=Gl(e.type,!0),e;default:return""}}function _o(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 Xt:return"Fragment";case qt:return"Portal";case Po:return"Profiler";case Ci:return"StrictMode";case xo:return"Suspense";case Co:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zs:return(e.displayName||"Context")+".Consumer";case Js:return(e._context.displayName||"Context")+".Provider";case _i:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ni:return t=e.displayName||null,t!==null?t:_o(e.type)||"Memo";case it:t=e._payload,e=e._init;try{return _o(e(t))}catch{}}return null}function Wf(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 _o(t);case 8:return t===Ci?"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 Et(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ea(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qf(e){var t=ea(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xr(e){e._valueTracker||(e._valueTracker=Qf(e))}function ta(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ea(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jr(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 No(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Et(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 na(e,t){t=t.checked,t!=null&&xi(e,"checked",t,!1)}function Ro(e,t){na(e,t);var n=Et(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")?To(e,t.type,n):t.hasOwnProperty("defaultValue")&&To(e,t.type,Et(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xu(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 To(e,t,n){(t!=="number"||Jr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mn=Array.isArray;function on(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Cr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Un={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},Kf=["Webkit","ms","Moz","O"];Object.keys(Un).forEach(function(e){Kf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Un[t]=Un[e]})});function ia(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Un.hasOwnProperty(e)&&Un[e]?(""+t).trim():t+"px"}function ua(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ia(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var qf=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Oo(e,t){if(t){if(qf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function jo(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 Mo=null;function Ri(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fo=null,un=null,sn=null;function Nu(e){if(e=vr(e)){if(typeof Fo!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Tl(t),Fo(e.stateNode,e.type,t))}}function sa(e){un?sn?sn.push(e):sn=[e]:un=e}function aa(){if(un){var e=un,t=sn;if(sn=un=null,Nu(e),t)for(e=0;e>>=0,e===0?32:31-(ld(e)/od|0)|0}var _r=64,Nr=4194304;function Fn(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 tl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=Fn(u):(o&=i,o!==0&&(r=Fn(o)))}else i=n&~l,i!==0?r=Fn(i):o!==0&&(r=Fn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&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 hr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ue(t),e[t]=n}function ad(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=$n),Du=" ",Uu=!1;function Ta(e,t){switch(e){case"keyup":return Ud.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function za(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yt=!1;function $d(e,t){switch(e){case"compositionend":return za(t);case"keypress":return t.which!==32?null:(Uu=!0,Du);case"textInput":return e=t.data,e===Du&&Uu?null:e;default:return null}}function Ad(e,t){if(Yt)return e==="compositionend"||!Di&&Ta(e,t)?(e=Na(),Vr=ji=ct=null,Yt=!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=Bu(n)}}function Ma(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ma(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fa(){for(var e=window,t=Jr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jr(e.document)}return t}function Ui(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 Yd(e){var t=Fa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ma(n.ownerDocument.documentElement,n)){if(r!==null&&Ui(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Vu(n,o);var i=Vu(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,Gt=null,Bo=null,Bn=null,Vo=!1;function Hu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vo||Gt==null||Gt!==Jr(r)||(r=Gt,"selectionStart"in r&&Ui(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}),Bn&&bn(Bn,r)||(Bn=r,r=ll(Bo,"onSelect"),0bt||(e.current=Xo[bt],Xo[bt]=null,bt--)}function D(e,t){bt++,Xo[bt]=e.current,e.current=t}var Pt={},se=Ct(Pt),ve=Ct(!1),Lt=Pt;function pn(e,t){var n=e.type.contextTypes;if(!n)return Pt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ye(e){return e=e.childContextTypes,e!=null}function il(){L(ve),L(se)}function Gu(e,t,n){if(se.current!==Pt)throw Error(k(168));D(se,t),D(ve,n)}function Wa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,Wf(e)||"Unknown",l));return V({},n,r)}function ul(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pt,Lt=se.current,D(se,e),D(ve,ve.current),!0}function Ju(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Wa(e,t,Lt),r.__reactInternalMemoizedMergedChildContext=e,L(ve),L(se),D(se,e)):L(ve),D(ve,n)}var Ye=null,zl=!1,co=!1;function Qa(e){Ye===null?Ye=[e]:Ye.push(e)}function up(e){zl=!0,Qa(e)}function _t(){if(!co&&Ye!==null){co=!0;var e=0,t=F;try{var n=Ye;for(F=1;e>=i,l-=i,Ge=1<<32-Ue(t)+l|n<R?(W=N,N=null):W=N.sibling;var j=m(f,N,p[R],w);if(j===null){N===null&&(N=W);break}e&&N&&j.alternate===null&&t(f,N),c=o(j,c,R),_===null?P=j:_.sibling=j,_=j,N=W}if(R===p.length)return n(f,N),$&&It(f,R),P;if(N===null){for(;RR?(W=N,N=null):W=N.sibling;var Oe=m(f,N,j.value,w);if(Oe===null){N===null&&(N=W);break}e&&N&&Oe.alternate===null&&t(f,N),c=o(Oe,c,R),_===null?P=Oe:_.sibling=Oe,_=Oe,N=W}if(j.done)return n(f,N),$&&It(f,R),P;if(N===null){for(;!j.done;R++,j=p.next())j=d(f,j.value,w),j!==null&&(c=o(j,c,R),_===null?P=j:_.sibling=j,_=j);return $&&It(f,R),P}for(N=r(f,N);!j.done;R++,j=p.next())j=v(N,f,R,j.value,w),j!==null&&(e&&j.alternate!==null&&N.delete(j.key===null?R:j.key),c=o(j,c,R),_===null?P=j:_.sibling=j,_=j);return e&&N.forEach(function(Pn){return t(f,Pn)}),$&&It(f,R),P}function E(f,c,p,w){if(typeof p=="object"&&p!==null&&p.type===Xt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Pr:e:{for(var P=p.key,_=c;_!==null;){if(_.key===P){if(P=p.type,P===Xt){if(_.tag===7){n(f,_.sibling),c=l(_,p.props.children),c.return=f,f=c;break e}}else if(_.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===it&&es(P)===_.type){n(f,_.sibling),c=l(_,p.props),c.ref=zn(f,_,p),c.return=f,f=c;break e}n(f,_);break}else t(f,_);_=_.sibling}p.type===Xt?(c=Ut(p.props.children,f.mode,w,p.key),c.return=f,f=c):(w=Gr(p.type,p.key,p.props,null,f.mode,w),w.ref=zn(f,c,p),w.return=f,f=w)}return i(f);case qt:e:{for(_=p.key;c!==null;){if(c.key===_)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=wo(p,f.mode,w),c.return=f,f=c}return i(f);case it:return _=p._init,E(f,c,_(p._payload),w)}if(Mn(p))return y(f,c,p,w);if(Cn(p))return g(f,c,p,w);Mr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=go(p,f.mode,w),c.return=f,f=c),i(f)):n(f,c)}return E}var mn=Ya(!0),Ga=Ya(!1),cl=Ct(null),fl=null,nn=null,Bi=null;function Vi(){Bi=nn=fl=null}function Hi(e){var t=cl.current;L(cl),e._currentValue=t}function Jo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function cn(e,t){fl=e,Bi=nn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(me=!0),e.firstContext=null)}function Te(e){var t=e._currentValue;if(Bi!==e)if(e={context:e,memoizedValue:t,next:null},nn===null){if(fl===null)throw Error(k(308));nn=e,fl.dependencies={lanes:0,firstContext:e}}else nn=nn.next=e;return t}var Mt=null;function Wi(e){Mt===null?Mt=[e]:Mt.push(e)}function Ja(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Wi(t)):(n.next=l.next,l.next=n),t.interleaved=n,tt(e,r)}function tt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ut=!1;function Qi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Za(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ze(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,tt(e,n)}return l=r.interleaved,l===null?(t.next=t,Wi(r)):(t.next=l.next,l.next=t),r.interleaved=t,tt(e,n)}function Wr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zi(e,n)}}function ts(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function dl(e,t,n,r){var l=e.updateQueue;ut=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,a=s.next;s.next=null,i===null?o=a:i.next=a,i=s;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==i&&(u===null?h.firstBaseUpdate=a:u.next=a,h.lastBaseUpdate=s))}if(o!==null){var d=l.baseState;i=0,h=a=s=null,u=o;do{var m=u.lane,v=u.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:v,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var y=e,g=u;switch(m=t,v=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){d=y.call(v,d,m);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,m=typeof y=="function"?y.call(v,d,m):y,m==null)break e;d=V({},d,m);break e;case 2:ut=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else v={eventTime:v,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(a=h=v,s=d):h=h.next=v,i|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(h===null&&(s=d),l.baseState=s,l.firstBaseUpdate=a,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Bt|=i,e.lanes=i,e.memoizedState=d}}function ns(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=po.transition;po.transition={};try{e(!1),t()}finally{F=n,po.transition=r}}function mc(){return ze().memoizedState}function fp(e,t,n){var r=wt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vc(e))yc(t,n);else if(n=Ja(e,t,n,r),n!==null){var l=fe();Le(n,e,r,l),gc(n,t,r)}}function dp(e,t,n){var r=wt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vc(e))yc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,$e(u,i)){var s=t.interleaved;s===null?(l.next=l,Wi(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=Ja(e,t,l,r),n!==null&&(l=fe(),Le(n,e,r,l),gc(n,t,r))}}function vc(e){var t=e.alternate;return e===B||t!==null&&t===B}function yc(e,t){Vn=hl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zi(e,n)}}var ml={readContext:Te,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},pp={readContext:Te,useCallback:function(e,t){return He().memoizedState=[e,t===void 0?null:t],e},useContext:Te,useEffect:ls,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Kr(4194308,4,cc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Kr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Kr(4,2,e,t)},useMemo:function(e,t){var n=He();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=He();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=fp.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=He();return e={current:e},t.memoizedState=e},useState:rs,useDebugValue:bi,useDeferredValue:function(e){return He().memoizedState=e},useTransition:function(){var e=rs(!1),t=e[0];return e=cp.bind(null,e[1]),He().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=B,l=He();if($){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),b===null)throw Error(k(349));At&30||nc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,ls(lc.bind(null,r,o,e),[e]),r.flags|=2048,ur(9,rc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=He(),t=b.identifierPrefix;if($){var n=Je,r=Ge;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=or++,0")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Yl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?jn(e):""}function Wf(e){switch(e.tag){case 5:return jn(e.type);case 16:return jn("Lazy");case 13:return jn("Suspense");case 19:return jn("SuspenseList");case 0:case 2:case 15:return e=Gl(e.type,!1),e;case 11:return e=Gl(e.type.render,!1),e;case 1:return e=Gl(e.type,!0),e;default:return""}}function _o(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 Xt:return"Fragment";case qt:return"Portal";case Po:return"Profiler";case Ci:return"StrictMode";case xo:return"Suspense";case Co:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zs:return(e.displayName||"Context")+".Consumer";case Js:return(e._context.displayName||"Context")+".Provider";case _i:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ni:return t=e.displayName||null,t!==null?t:_o(e.type)||"Memo";case it:t=e._payload,e=e._init;try{return _o(e(t))}catch{}}return null}function Qf(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 _o(t);case 8:return t===Ci?"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 Et(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ea(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kf(e){var t=ea(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xr(e){e._valueTracker||(e._valueTracker=Kf(e))}function ta(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ea(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jr(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 No(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Et(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 na(e,t){t=t.checked,t!=null&&xi(e,"checked",t,!1)}function Ro(e,t){na(e,t);var n=Et(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")?To(e,t.type,n):t.hasOwnProperty("defaultValue")&&To(e,t.type,Et(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xu(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 To(e,t,n){(t!=="number"||Jr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mn=Array.isArray;function on(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Cr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Un={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},qf=["Webkit","ms","Moz","O"];Object.keys(Un).forEach(function(e){qf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Un[t]=Un[e]})});function ia(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Un.hasOwnProperty(e)&&Un[e]?(""+t).trim():t+"px"}function ua(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ia(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Xf=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Oo(e,t){if(t){if(Xf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function jo(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 Mo=null;function Ri(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fo=null,un=null,sn=null;function Nu(e){if(e=vr(e)){if(typeof Fo!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Tl(t),Fo(e.stateNode,e.type,t))}}function sa(e){un?sn?sn.push(e):sn=[e]:un=e}function aa(){if(un){var e=un,t=sn;if(sn=un=null,Nu(e),t)for(e=0;e>>=0,e===0?32:31-(od(e)/id|0)|0}var _r=64,Nr=4194304;function Fn(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 tl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=Fn(u):(o&=i,o!==0&&(r=Fn(o)))}else i=n&~l,i!==0?r=Fn(i):o!==0&&(r=Fn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&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 hr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ue(t),e[t]=n}function cd(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=$n),Du=" ",Uu=!1;function Ta(e,t){switch(e){case"keyup":return Ld.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function za(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yt=!1;function Ad(e,t){switch(e){case"compositionend":return za(t);case"keypress":return t.which!==32?null:(Uu=!0,Du);case"textInput":return e=t.data,e===Du&&Uu?null:e;default:return null}}function Bd(e,t){if(Yt)return e==="compositionend"||!Di&&Ta(e,t)?(e=Na(),Vr=ji=ct=null,Yt=!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=Bu(n)}}function Ma(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ma(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fa(){for(var e=window,t=Jr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jr(e.document)}return t}function Ui(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 Gd(e){var t=Fa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ma(n.ownerDocument.documentElement,n)){if(r!==null&&Ui(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Vu(n,o);var i=Vu(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,Gt=null,Bo=null,Bn=null,Vo=!1;function Hu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vo||Gt==null||Gt!==Jr(r)||(r=Gt,"selectionStart"in r&&Ui(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}),Bn&&bn(Bn,r)||(Bn=r,r=ll(Bo,"onSelect"),0bt||(e.current=Xo[bt],Xo[bt]=null,bt--)}function D(e,t){bt++,Xo[bt]=e.current,e.current=t}var Pt={},se=Ct(Pt),ve=Ct(!1),Lt=Pt;function pn(e,t){var n=e.type.contextTypes;if(!n)return Pt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ye(e){return e=e.childContextTypes,e!=null}function il(){L(ve),L(se)}function Gu(e,t,n){if(se.current!==Pt)throw Error(k(168));D(se,t),D(ve,n)}function Wa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,Qf(e)||"Unknown",l));return V({},n,r)}function ul(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pt,Lt=se.current,D(se,e),D(ve,ve.current),!0}function Ju(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Wa(e,t,Lt),r.__reactInternalMemoizedMergedChildContext=e,L(ve),L(se),D(se,e)):L(ve),D(ve,n)}var Ye=null,zl=!1,co=!1;function Qa(e){Ye===null?Ye=[e]:Ye.push(e)}function sp(e){zl=!0,Qa(e)}function _t(){if(!co&&Ye!==null){co=!0;var e=0,t=F;try{var n=Ye;for(F=1;e>=i,l-=i,Ge=1<<32-Ue(t)+l|n<R?(W=N,N=null):W=N.sibling;var j=m(f,N,p[R],w);if(j===null){N===null&&(N=W);break}e&&N&&j.alternate===null&&t(f,N),c=o(j,c,R),_===null?P=j:_.sibling=j,_=j,N=W}if(R===p.length)return n(f,N),$&&It(f,R),P;if(N===null){for(;RR?(W=N,N=null):W=N.sibling;var Oe=m(f,N,j.value,w);if(Oe===null){N===null&&(N=W);break}e&&N&&Oe.alternate===null&&t(f,N),c=o(Oe,c,R),_===null?P=Oe:_.sibling=Oe,_=Oe,N=W}if(j.done)return n(f,N),$&&It(f,R),P;if(N===null){for(;!j.done;R++,j=p.next())j=d(f,j.value,w),j!==null&&(c=o(j,c,R),_===null?P=j:_.sibling=j,_=j);return $&&It(f,R),P}for(N=r(f,N);!j.done;R++,j=p.next())j=v(N,f,R,j.value,w),j!==null&&(e&&j.alternate!==null&&N.delete(j.key===null?R:j.key),c=o(j,c,R),_===null?P=j:_.sibling=j,_=j);return e&&N.forEach(function(Pn){return t(f,Pn)}),$&&It(f,R),P}function E(f,c,p,w){if(typeof p=="object"&&p!==null&&p.type===Xt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Pr:e:{for(var P=p.key,_=c;_!==null;){if(_.key===P){if(P=p.type,P===Xt){if(_.tag===7){n(f,_.sibling),c=l(_,p.props.children),c.return=f,f=c;break e}}else if(_.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===it&&es(P)===_.type){n(f,_.sibling),c=l(_,p.props),c.ref=zn(f,_,p),c.return=f,f=c;break e}n(f,_);break}else t(f,_);_=_.sibling}p.type===Xt?(c=Ut(p.props.children,f.mode,w,p.key),c.return=f,f=c):(w=Gr(p.type,p.key,p.props,null,f.mode,w),w.ref=zn(f,c,p),w.return=f,f=w)}return i(f);case qt:e:{for(_=p.key;c!==null;){if(c.key===_)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=wo(p,f.mode,w),c.return=f,f=c}return i(f);case it:return _=p._init,E(f,c,_(p._payload),w)}if(Mn(p))return y(f,c,p,w);if(Cn(p))return g(f,c,p,w);Mr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=go(p,f.mode,w),c.return=f,f=c),i(f)):n(f,c)}return E}var mn=Ya(!0),Ga=Ya(!1),cl=Ct(null),fl=null,nn=null,Bi=null;function Vi(){Bi=nn=fl=null}function Hi(e){var t=cl.current;L(cl),e._currentValue=t}function Jo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function cn(e,t){fl=e,Bi=nn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(me=!0),e.firstContext=null)}function Te(e){var t=e._currentValue;if(Bi!==e)if(e={context:e,memoizedValue:t,next:null},nn===null){if(fl===null)throw Error(k(308));nn=e,fl.dependencies={lanes:0,firstContext:e}}else nn=nn.next=e;return t}var Mt=null;function Wi(e){Mt===null?Mt=[e]:Mt.push(e)}function Ja(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Wi(t)):(n.next=l.next,l.next=n),t.interleaved=n,tt(e,r)}function tt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ut=!1;function Qi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Za(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ze(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,tt(e,n)}return l=r.interleaved,l===null?(t.next=t,Wi(r)):(t.next=l.next,l.next=t),r.interleaved=t,tt(e,n)}function Wr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zi(e,n)}}function ts(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function dl(e,t,n,r){var l=e.updateQueue;ut=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,a=s.next;s.next=null,i===null?o=a:i.next=a,i=s;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==i&&(u===null?h.firstBaseUpdate=a:u.next=a,h.lastBaseUpdate=s))}if(o!==null){var d=l.baseState;i=0,h=a=s=null,u=o;do{var m=u.lane,v=u.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:v,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var y=e,g=u;switch(m=t,v=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){d=y.call(v,d,m);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,m=typeof y=="function"?y.call(v,d,m):y,m==null)break e;d=V({},d,m);break e;case 2:ut=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else v={eventTime:v,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(a=h=v,s=d):h=h.next=v,i|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(h===null&&(s=d),l.baseState=s,l.firstBaseUpdate=a,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Bt|=i,e.lanes=i,e.memoizedState=d}}function ns(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=po.transition;po.transition={};try{e(!1),t()}finally{F=n,po.transition=r}}function mc(){return ze().memoizedState}function dp(e,t,n){var r=wt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vc(e))yc(t,n);else if(n=Ja(e,t,n,r),n!==null){var l=fe();Le(n,e,r,l),gc(n,t,r)}}function pp(e,t,n){var r=wt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vc(e))yc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,$e(u,i)){var s=t.interleaved;s===null?(l.next=l,Wi(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=Ja(e,t,l,r),n!==null&&(l=fe(),Le(n,e,r,l),gc(n,t,r))}}function vc(e){var t=e.alternate;return e===B||t!==null&&t===B}function yc(e,t){Vn=hl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zi(e,n)}}var ml={readContext:Te,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},hp={readContext:Te,useCallback:function(e,t){return He().memoizedState=[e,t===void 0?null:t],e},useContext:Te,useEffect:ls,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Kr(4194308,4,cc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Kr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Kr(4,2,e,t)},useMemo:function(e,t){var n=He();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=He();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=dp.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=He();return e={current:e},t.memoizedState=e},useState:rs,useDebugValue:bi,useDeferredValue:function(e){return He().memoizedState=e},useTransition:function(){var e=rs(!1),t=e[0];return e=fp.bind(null,e[1]),He().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=B,l=He();if($){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),b===null)throw Error(k(349));At&30||nc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,ls(lc.bind(null,r,o,e),[e]),r.flags|=2048,ur(9,rc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=He(),t=b.identifierPrefix;if($){var n=Je,r=Ge;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=or++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[We]=t,e[nr]=r,Rc(e,t,!1,!1),t.stateNode=e;e:{switch(i=jo(n,r),n){case"dialog":U("cancel",e),U("close",e),l=r;break;case"iframe":case"object":case"embed":U("load",e),l=r;break;case"video":case"audio":for(l=0;lgn&&(t.flags|=128,r=!0,In(o,!1),t.lanes=4194304)}else{if(!r)if(e=pl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),In(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!$)return ie(t),null}else 2*K()-o.renderingStartTime>gn&&n!==1073741824&&(t.flags|=128,r=!0,In(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=K(),t.sibling=null,n=A.current,D(A,r?n&1|2:n&1),t):(ie(t),null);case 22:case 23:return ou(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?we&1073741824&&(ie(t),t.subtreeFlags&6&&(t.flags|=8192)):ie(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function kp(e,t){switch($i(t),t.tag){case 1:return ye(t.type)&&il(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vn(),L(ve),L(se),Xi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qi(t),null;case 13:if(L(A),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));hn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(A),null;case 4:return vn(),null;case 10:return Hi(t.type._context),null;case 22:case 23:return ou(),null;case 24:return null;default:return null}}var Dr=!1,ue=!1,Ep=typeof WeakSet=="function"?WeakSet:Set,x=null;function rn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){H(e,t,r)}else n.current=null}function ii(e,t,n){try{n()}catch(r){H(e,t,r)}}var ms=!1;function Pp(e,t){if(Ho=nl,e=Fa(),Ui(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,h=0,d=e,m=null;t:for(;;){for(var v;d!==n||l!==0&&d.nodeType!==3||(u=i+l),d!==o||r!==0&&d.nodeType!==3||(s=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(v=d.firstChild)!==null;)m=d,d=v;for(;;){if(d===e)break t;if(m===n&&++a===l&&(u=i),m===o&&++h===r&&(s=i),(v=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=v}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wo={focusedElem:e,selectionRange:n},nl=!1,x=t;x!==null;)if(t=x,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,x=e;else for(;x!==null;){t=x;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,E=y.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?g:Me(t.type,g),E);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){H(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,x=e;break}x=t.return}return y=ms,ms=!1,y}function Hn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&ii(t,n,o)}l=l.next}while(l!==r)}}function jl(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 ui(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 Ic(e){var t=e.alternate;t!==null&&(e.alternate=null,Ic(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[We],delete t[nr],delete t[qo],delete t[op],delete t[ip])),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 Oc(e){return e.tag===5||e.tag===3||e.tag===4}function vs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oc(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 si(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=ol));else if(r!==4&&(e=e.child,e!==null))for(si(e,t,n),e=e.sibling;e!==null;)si(e,t,n),e=e.sibling}function ai(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(ai(e,t,n),e=e.sibling;e!==null;)ai(e,t,n),e=e.sibling}var te=null,Fe=!1;function ot(e,t,n){for(n=n.child;n!==null;)jc(e,t,n),n=n.sibling}function jc(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(Cl,n)}catch{}switch(n.tag){case 5:ue||rn(n,t);case 6:var r=te,l=Fe;te=null,ot(e,t,n),te=r,Fe=l,te!==null&&(Fe?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Fe?(e=te,n=n.stateNode,e.nodeType===8?ao(e.parentNode,n):e.nodeType===1&&ao(e,n),Jn(e)):ao(te,n.stateNode));break;case 4:r=te,l=Fe,te=n.stateNode.containerInfo,Fe=!0,ot(e,t,n),te=r,Fe=l;break;case 0:case 11:case 14:case 15:if(!ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&ii(n,t,i),l=l.next}while(l!==r)}ot(e,t,n);break;case 1:if(!ue&&(rn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){H(n,t,u)}ot(e,t,n);break;case 21:ot(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,ot(e,t,n),ue=r):ot(e,t,n);break;default:ot(e,t,n)}}function ys(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ep),t.forEach(function(r){var l=Op.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function je(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cp(r/1960))-r,10e?16:e,ft===null)var r=!1;else{if(e=ft,ft=null,gl=0,M&6)throw Error(k(331));var l=M;for(M|=4,x=e.current;x!==null;){var o=x,i=o.child;if(x.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sK()-ru?Dt(e,0):nu|=n),ge(e,t)}function Bc(e,t){t===0&&(e.mode&1?(t=Nr,Nr<<=1,!(Nr&130023424)&&(Nr=4194304)):t=1);var n=fe();e=tt(e,t),e!==null&&(hr(e,t,n),ge(e,n))}function Ip(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bc(e,n)}function Op(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),Bc(e,n)}var Vc;Vc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,wp(e,t,n);me=!!(e.flags&131072)}else me=!1,$&&t.flags&1048576&&Ka(t,al,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qr(e,t),e=t.pendingProps;var l=pn(t,se.current);cn(t,n),l=Gi(null,t,r,e,l,n);var o=Ji();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ye(r)?(o=!0,ul(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Qi(t),l.updater=Ol,t.stateNode=l,l._reactInternals=t,bo(t,r,e,n),t=ni(null,t,r,!0,o,n)):(t.tag=0,$&&o&&Li(t),ce(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Mp(r),e=Me(r,e),l){case 0:t=ti(null,t,r,e,n);break e;case 1:t=ds(null,t,r,e,n);break e;case 11:t=cs(null,t,r,e,n);break e;case 14:t=fs(null,t,r,Me(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),ti(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),ds(e,t,r,l,n);case 3:e:{if(Cc(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Za(e,t),dl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=yn(Error(k(423)),t),t=ps(e,t,r,n,l);break e}else if(r!==l){l=yn(Error(k(424)),t),t=ps(e,t,r,n,l);break e}else for(Se=vt(t.stateNode.containerInfo.firstChild),ke=t,$=!0,De=null,n=Ga(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hn(),r===l){t=nt(e,t,n);break e}ce(e,t,r,n)}t=t.child}return t;case 5:return ba(t),e===null&&Go(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Qo(r,l)?i=null:o!==null&&Qo(r,o)&&(t.flags|=32),xc(e,t),ce(e,t,i,n),t.child;case 6:return e===null&&Go(t),null;case 13:return _c(e,t,n);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mn(t,null,r,n):ce(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),cs(e,t,r,l,n);case 7:return ce(e,t,t.pendingProps,n),t.child;case 8:return ce(e,t,t.pendingProps.children,n),t.child;case 12:return ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,D(cl,r._currentValue),r._currentValue=i,o!==null)if($e(o.value,i)){if(o.children===l.children&&!ve.current){t=nt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Ze(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var h=a.pending;h===null?s.next=s:(s.next=h.next,h.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Jo(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Jo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ce(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,cn(t,n),l=Te(l),r=r(l),t.flags|=1,ce(e,t,r,n),t.child;case 14:return r=t.type,l=Me(r,t.pendingProps),l=Me(r.type,l),fs(e,t,r,l,n);case 15:return Ec(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),qr(e,t),t.tag=1,ye(r)?(e=!0,ul(t)):e=!1,cn(t,n),wc(t,r,l),bo(t,r,l,n),ni(null,t,r,!0,e,n);case 19:return Nc(e,t,n);case 22:return Pc(e,t,n)}throw Error(k(156,t.tag))};function Hc(e,t){return va(e,t)}function jp(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 Ne(e,t,n,r){return new jp(e,t,n,r)}function uu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mp(e){if(typeof e=="function")return uu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_i)return 11;if(e===Ni)return 14}return 2}function St(e,t){var n=e.alternate;return n===null?(n=Ne(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 Gr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")uu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Xt:return Ut(n.children,l,o,t);case Ci:i=8,l|=8;break;case Po:return e=Ne(12,n,t,l|2),e.elementType=Po,e.lanes=o,e;case xo:return e=Ne(13,n,t,l),e.elementType=xo,e.lanes=o,e;case Co:return e=Ne(19,n,t,l),e.elementType=Co,e.lanes=o,e;case bs:return Fl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Js:i=10;break e;case Zs:i=9;break e;case _i:i=11;break e;case Ni:i=14;break e;case it:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Ne(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Ut(e,t,n,r){return e=Ne(7,e,r,t),e.lanes=n,e}function Fl(e,t,n,r){return e=Ne(22,e,r,t),e.elementType=bs,e.lanes=n,e.stateNode={isHidden:!1},e}function go(e,t,n){return e=Ne(6,e,null,t),e.lanes=n,e}function wo(e,t,n){return t=Ne(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zl(0),this.expirationTimes=Zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function su(e,t,n,r,l,o,i,u,s){return e=new Fp(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ne(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qi(o),e}function Dp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qc)}catch(e){console.error(e)}}qc(),qs.exports=Pe;var Bp=qs.exports,Xc,Cs=Bp;Xc=Cs.createRoot,Cs.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:l,digest:null}}function vo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ei(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var yp=typeof WeakMap=="function"?WeakMap:Map;function Sc(e,t,n){n=Ze(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){yl||(yl=!0,ci=r),ei(e,t)},n}function kc(e,t,n){n=Ze(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){ei(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ei(e,t),typeof r!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function us(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new yp;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Ip.bind(null,e,t,n),t.then(e,e))}function ss(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function as(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ze(-1,1),t.tag=2,yt(n,t,1))),n.lanes|=1),e)}var gp=rt.ReactCurrentOwner,me=!1;function ce(e,t,n,r){t.child=e===null?Ga(t,null,n,r):mn(t,e.child,n,r)}function cs(e,t,n,r,l){n=n.render;var o=t.ref;return cn(t,l),r=Gi(e,t,n,r,o,l),n=Ji(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,nt(e,t,l)):($&&n&&Li(t),t.flags|=1,ce(e,t,r,l),t.child)}function fs(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!uu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ec(e,t,o,r,l)):(e=Gr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:bn,n(i,r)&&e.ref===t.ref)return nt(e,t,l)}return t.flags|=1,e=St(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ec(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(bn(o,r)&&e.ref===t.ref)if(me=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(me=!0);else return t.lanes=e.lanes,nt(e,t,l)}return ti(e,t,n,r,l)}function Pc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},D(ln,we),we|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,D(ln,we),we|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,D(ln,we),we|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,D(ln,we),we|=r;return ce(e,t,l,n),t.child}function xc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ti(e,t,n,r,l){var o=ye(n)?Lt:se.current;return o=pn(t,o),cn(t,l),n=Gi(e,t,n,r,o,l),r=Ji(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,nt(e,t,l)):($&&r&&Li(t),t.flags|=1,ce(e,t,n,l),t.child)}function ds(e,t,n,r,l){if(ye(n)){var o=!0;ul(t)}else o=!1;if(cn(t,l),t.stateNode===null)qr(e,t),wc(t,n,r),bo(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=Te(a):(a=ye(n)?Lt:se.current,a=pn(t,a));var h=n.getDerivedStateFromProps,d=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==a)&&is(t,i,r,a),ut=!1;var m=t.memoizedState;i.state=m,dl(t,r,i,l),s=t.memoizedState,u!==r||m!==s||ve.current||ut?(typeof h=="function"&&(Zo(t,n,h,r),s=t.memoizedState),(u=ut||os(t,n,u,r,m,s,a))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=a,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Za(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:Me(t.type,u),i.props=a,d=t.pendingProps,m=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=Te(s):(s=ye(n)?Lt:se.current,s=pn(t,s));var v=n.getDerivedStateFromProps;(h=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==d||m!==s)&&is(t,i,r,s),ut=!1,m=t.memoizedState,i.state=m,dl(t,r,i,l);var y=t.memoizedState;u!==d||m!==y||ve.current||ut?(typeof v=="function"&&(Zo(t,n,v,r),y=t.memoizedState),(a=ut||os(t,n,a,r,m,y,s)||!1)?(h||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=s,r=a):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return ni(e,t,n,r,o,l)}function ni(e,t,n,r,l,o){xc(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Ju(t,n,!1),nt(e,t,o);r=t.stateNode,gp.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=mn(t,e.child,null,o),t.child=mn(t,null,u,o)):ce(e,t,u,o),t.memoizedState=r.state,l&&Ju(t,n,!0),t.child}function Cc(e){var t=e.stateNode;t.pendingContext?Gu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Gu(e,t.context,!1),Ki(e,t.containerInfo)}function ps(e,t,n,r,l){return hn(),Ai(l),t.flags|=256,ce(e,t,n,r),t.child}var ri={dehydrated:null,treeContext:null,retryLane:0};function li(e){return{baseLanes:e,cachePool:null,transitions:null}}function _c(e,t,n){var r=t.pendingProps,l=A.current,o=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),D(A,l&1),e===null)return Go(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Fl(i,r,0,null),e=Ut(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=li(n),t.memoizedState=ri,e):eu(t,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return wp(e,t,i,r,u,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,u=l.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=St(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=St(u,o):(o=Ut(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?li(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=ri,r}return o=e.child,e=o.sibling,r=St(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function eu(e,t){return t=Fl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Fr(e,t,n,r){return r!==null&&Ai(r),mn(t,e.child,null,n),e=eu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wp(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=vo(Error(k(422))),Fr(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Fl({mode:"visible",children:r.children},l,0,null),o=Ut(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&mn(t,e.child,null,i),t.child.memoizedState=li(i),t.memoizedState=ri,o);if(!(t.mode&1))return Fr(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(k(419)),r=vo(o,r,void 0),Fr(e,t,i,r)}if(u=(i&e.childLanes)!==0,me||u){if(r=b,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,tt(e,l),Le(r,e,l,-1))}return iu(),r=vo(Error(k(421))),Fr(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Op.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Se=vt(l.nextSibling),ke=t,$=!0,De=null,e!==null&&(Ce[_e++]=Ge,Ce[_e++]=Je,Ce[_e++]=$t,Ge=e.id,Je=e.overflow,$t=t),t=eu(t,r.children),t.flags|=4096,t)}function hs(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Jo(e.return,t,n)}function yo(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function Nc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(ce(e,t,r.children,n),r=A.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hs(e,n,t);else if(e.tag===19)hs(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(D(A,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&pl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),yo(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&pl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}yo(t,!0,n,null,o);break;case"together":yo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function nt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=St(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=St(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Sp(e,t,n){switch(t.tag){case 3:Cc(t),hn();break;case 5:ba(t);break;case 1:ye(t.type)&&ul(t);break;case 4:Ki(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;D(cl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(D(A,A.current&1),t.flags|=128,null):n&t.child.childLanes?_c(e,t,n):(D(A,A.current&1),e=nt(e,t,n),e!==null?e.sibling:null);D(A,A.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Nc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),D(A,A.current),r)break;return null;case 22:case 23:return t.lanes=0,Pc(e,t,n)}return nt(e,t,n)}var Rc,oi,Tc,zc;Rc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};oi=function(){};Tc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Ft(Ke.current);var o=null;switch(n){case"input":l=No(e,l),r=No(e,r),o=[];break;case"select":l=V({},l,{value:void 0}),r=V({},r,{value:void 0}),o=[];break;case"textarea":l=zo(e,l),r=zo(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ol)}Oo(n,r);var i;n=null;for(a in l)if(!r.hasOwnProperty(a)&&l.hasOwnProperty(a)&&l[a]!=null)if(a==="style"){var u=l[a];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Kn.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var s=r[a];if(u=l!=null?l[a]:void 0,r.hasOwnProperty(a)&&s!==u&&(s!=null||u!=null))if(a==="style")if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(o||(o=[]),o.push(a,n)),n=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(o=o||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Kn.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&U("scroll",e),o||u===s||(o=[])):(o=o||[]).push(a,s))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}};zc=function(e,t,n,r){n!==r&&(t.flags|=4)};function In(e,t){if(!$)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ie(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function kp(e,t,n){var r=t.pendingProps;switch($i(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ie(t),null;case 1:return ye(t.type)&&il(),ie(t),null;case 3:return r=t.stateNode,vn(),L(ve),L(se),Xi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(jr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,De!==null&&(pi(De),De=null))),oi(e,t),ie(t),null;case 5:qi(t);var l=Ft(lr.current);if(n=t.type,e!==null&&t.stateNode!=null)Tc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return ie(t),null}if(e=Ft(Ke.current),jr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[We]=t,r[nr]=o,e=(t.mode&1)!==0,n){case"dialog":U("cancel",r),U("close",r);break;case"iframe":case"object":case"embed":U("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[We]=t,e[nr]=r,Rc(e,t,!1,!1),t.stateNode=e;e:{switch(i=jo(n,r),n){case"dialog":U("cancel",e),U("close",e),l=r;break;case"iframe":case"object":case"embed":U("load",e),l=r;break;case"video":case"audio":for(l=0;lgn&&(t.flags|=128,r=!0,In(o,!1),t.lanes=4194304)}else{if(!r)if(e=pl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),In(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!$)return ie(t),null}else 2*K()-o.renderingStartTime>gn&&n!==1073741824&&(t.flags|=128,r=!0,In(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=K(),t.sibling=null,n=A.current,D(A,r?n&1|2:n&1),t):(ie(t),null);case 22:case 23:return ou(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?we&1073741824&&(ie(t),t.subtreeFlags&6&&(t.flags|=8192)):ie(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Ep(e,t){switch($i(t),t.tag){case 1:return ye(t.type)&&il(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vn(),L(ve),L(se),Xi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qi(t),null;case 13:if(L(A),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));hn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(A),null;case 4:return vn(),null;case 10:return Hi(t.type._context),null;case 22:case 23:return ou(),null;case 24:return null;default:return null}}var Dr=!1,ue=!1,Pp=typeof WeakSet=="function"?WeakSet:Set,x=null;function rn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){H(e,t,r)}else n.current=null}function ii(e,t,n){try{n()}catch(r){H(e,t,r)}}var ms=!1;function xp(e,t){if(Ho=nl,e=Fa(),Ui(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,h=0,d=e,m=null;t:for(;;){for(var v;d!==n||l!==0&&d.nodeType!==3||(u=i+l),d!==o||r!==0&&d.nodeType!==3||(s=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(v=d.firstChild)!==null;)m=d,d=v;for(;;){if(d===e)break t;if(m===n&&++a===l&&(u=i),m===o&&++h===r&&(s=i),(v=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=v}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wo={focusedElem:e,selectionRange:n},nl=!1,x=t;x!==null;)if(t=x,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,x=e;else for(;x!==null;){t=x;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,E=y.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?g:Me(t.type,g),E);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){H(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,x=e;break}x=t.return}return y=ms,ms=!1,y}function Hn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&ii(t,n,o)}l=l.next}while(l!==r)}}function jl(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 ui(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 Ic(e){var t=e.alternate;t!==null&&(e.alternate=null,Ic(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[We],delete t[nr],delete t[qo],delete t[ip],delete t[up])),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 Oc(e){return e.tag===5||e.tag===3||e.tag===4}function vs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oc(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 si(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=ol));else if(r!==4&&(e=e.child,e!==null))for(si(e,t,n),e=e.sibling;e!==null;)si(e,t,n),e=e.sibling}function ai(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(ai(e,t,n),e=e.sibling;e!==null;)ai(e,t,n),e=e.sibling}var te=null,Fe=!1;function ot(e,t,n){for(n=n.child;n!==null;)jc(e,t,n),n=n.sibling}function jc(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(Cl,n)}catch{}switch(n.tag){case 5:ue||rn(n,t);case 6:var r=te,l=Fe;te=null,ot(e,t,n),te=r,Fe=l,te!==null&&(Fe?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Fe?(e=te,n=n.stateNode,e.nodeType===8?ao(e.parentNode,n):e.nodeType===1&&ao(e,n),Jn(e)):ao(te,n.stateNode));break;case 4:r=te,l=Fe,te=n.stateNode.containerInfo,Fe=!0,ot(e,t,n),te=r,Fe=l;break;case 0:case 11:case 14:case 15:if(!ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&ii(n,t,i),l=l.next}while(l!==r)}ot(e,t,n);break;case 1:if(!ue&&(rn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){H(n,t,u)}ot(e,t,n);break;case 21:ot(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,ot(e,t,n),ue=r):ot(e,t,n);break;default:ot(e,t,n)}}function ys(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Pp),t.forEach(function(r){var l=jp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function je(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_p(r/1960))-r,10e?16:e,ft===null)var r=!1;else{if(e=ft,ft=null,gl=0,M&6)throw Error(k(331));var l=M;for(M|=4,x=e.current;x!==null;){var o=x,i=o.child;if(x.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sK()-ru?Dt(e,0):nu|=n),ge(e,t)}function Bc(e,t){t===0&&(e.mode&1?(t=Nr,Nr<<=1,!(Nr&130023424)&&(Nr=4194304)):t=1);var n=fe();e=tt(e,t),e!==null&&(hr(e,t,n),ge(e,n))}function Op(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bc(e,n)}function jp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),Bc(e,n)}var Vc;Vc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,Sp(e,t,n);me=!!(e.flags&131072)}else me=!1,$&&t.flags&1048576&&Ka(t,al,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qr(e,t),e=t.pendingProps;var l=pn(t,se.current);cn(t,n),l=Gi(null,t,r,e,l,n);var o=Ji();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ye(r)?(o=!0,ul(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Qi(t),l.updater=Ol,t.stateNode=l,l._reactInternals=t,bo(t,r,e,n),t=ni(null,t,r,!0,o,n)):(t.tag=0,$&&o&&Li(t),ce(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Fp(r),e=Me(r,e),l){case 0:t=ti(null,t,r,e,n);break e;case 1:t=ds(null,t,r,e,n);break e;case 11:t=cs(null,t,r,e,n);break e;case 14:t=fs(null,t,r,Me(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),ti(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),ds(e,t,r,l,n);case 3:e:{if(Cc(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Za(e,t),dl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=yn(Error(k(423)),t),t=ps(e,t,r,n,l);break e}else if(r!==l){l=yn(Error(k(424)),t),t=ps(e,t,r,n,l);break e}else for(Se=vt(t.stateNode.containerInfo.firstChild),ke=t,$=!0,De=null,n=Ga(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hn(),r===l){t=nt(e,t,n);break e}ce(e,t,r,n)}t=t.child}return t;case 5:return ba(t),e===null&&Go(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Qo(r,l)?i=null:o!==null&&Qo(r,o)&&(t.flags|=32),xc(e,t),ce(e,t,i,n),t.child;case 6:return e===null&&Go(t),null;case 13:return _c(e,t,n);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mn(t,null,r,n):ce(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),cs(e,t,r,l,n);case 7:return ce(e,t,t.pendingProps,n),t.child;case 8:return ce(e,t,t.pendingProps.children,n),t.child;case 12:return ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,D(cl,r._currentValue),r._currentValue=i,o!==null)if($e(o.value,i)){if(o.children===l.children&&!ve.current){t=nt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Ze(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var h=a.pending;h===null?s.next=s:(s.next=h.next,h.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Jo(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Jo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ce(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,cn(t,n),l=Te(l),r=r(l),t.flags|=1,ce(e,t,r,n),t.child;case 14:return r=t.type,l=Me(r,t.pendingProps),l=Me(r.type,l),fs(e,t,r,l,n);case 15:return Ec(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),qr(e,t),t.tag=1,ye(r)?(e=!0,ul(t)):e=!1,cn(t,n),wc(t,r,l),bo(t,r,l,n),ni(null,t,r,!0,e,n);case 19:return Nc(e,t,n);case 22:return Pc(e,t,n)}throw Error(k(156,t.tag))};function Hc(e,t){return va(e,t)}function Mp(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 Ne(e,t,n,r){return new Mp(e,t,n,r)}function uu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fp(e){if(typeof e=="function")return uu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_i)return 11;if(e===Ni)return 14}return 2}function St(e,t){var n=e.alternate;return n===null?(n=Ne(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 Gr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")uu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Xt:return Ut(n.children,l,o,t);case Ci:i=8,l|=8;break;case Po:return e=Ne(12,n,t,l|2),e.elementType=Po,e.lanes=o,e;case xo:return e=Ne(13,n,t,l),e.elementType=xo,e.lanes=o,e;case Co:return e=Ne(19,n,t,l),e.elementType=Co,e.lanes=o,e;case bs:return Fl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Js:i=10;break e;case Zs:i=9;break e;case _i:i=11;break e;case Ni:i=14;break e;case it:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Ne(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Ut(e,t,n,r){return e=Ne(7,e,r,t),e.lanes=n,e}function Fl(e,t,n,r){return e=Ne(22,e,r,t),e.elementType=bs,e.lanes=n,e.stateNode={isHidden:!1},e}function go(e,t,n){return e=Ne(6,e,null,t),e.lanes=n,e}function wo(e,t,n){return t=Ne(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zl(0),this.expirationTimes=Zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function su(e,t,n,r,l,o,i,u,s){return e=new Dp(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ne(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qi(o),e}function Up(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qc)}catch(e){console.error(e)}}qc(),qs.exports=Pe;var Vp=qs.exports,Xc,Cs=Vp;Xc=Cs.createRoot,Cs.hydrateRoot;/** * @remix-run/router v1.19.1 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Yc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Hp(){return Math.random().toString(36).substr(2,8)}function Ns(e,t){return{usr:e.state,key:e.key,idx:t}}function hi(e,t,n,r){return n===void 0&&(n=null),ar({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?En(t):t,{state:n,key:t&&t.key||r||Hp()})}function kl(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 En(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 Wp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,u=dt.Pop,s=null,a=h();a==null&&(a=0,i.replaceState(ar({},i.state,{idx:a}),""));function h(){return(i.state||{idx:null}).idx}function d(){u=dt.Pop;let E=h(),f=E==null?null:E-a;a=E,s&&s({action:u,location:g.location,delta:f})}function m(E,f){u=dt.Push;let c=hi(g.location,E,f);a=h()+1;let p=Ns(c,a),w=g.createHref(c);try{i.pushState(p,"",w)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;l.location.assign(w)}o&&s&&s({action:u,location:g.location,delta:1})}function v(E,f){u=dt.Replace;let c=hi(g.location,E,f);a=h();let p=Ns(c,a),w=g.createHref(c);i.replaceState(p,"",w),o&&s&&s({action:u,location:g.location,delta:0})}function y(E){let f=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof E=="string"?E:kl(E);return c=c.replace(/ $/,"%20"),X(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let g={get action(){return u},get location(){return e(l,i)},listen(E){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(_s,d),s=E,()=>{l.removeEventListener(_s,d),s=null}},createHref(E){return t(l,E)},createURL:y,encodeLocation(E){let f=y(E);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:v,go(E){return i.go(E)}};return g}var Rs;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Rs||(Rs={}));function Qp(e,t,n){return n===void 0&&(n="/"),Kp(e,t,n,!1)}function Kp(e,t,n,r){let l=typeof t=="string"?En(t):t,o=du(l.pathname||"/",n);if(o==null)return null;let i=Gc(e);qp(i);let u=null;for(let s=0;u==null&&s{let s={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(X(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let a=kt([r,s.relativePath]),h=n.concat(s);o.children&&o.children.length>0&&(X(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),Gc(o.children,t,h,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:eh(a,o.index),routesMeta:h})};return e.forEach((o,i)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))l(o,i);else for(let s of Jc(o.path))l(o,i,s)}),t}function Jc(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Jc(r.join("/")),u=[];return u.push(...i.map(s=>s===""?o:[o,s].join("/"))),l&&u.push(...i),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function qp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:th(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Xp=/^:[\w-]+$/,Yp=3,Gp=2,Jp=1,Zp=10,bp=-2,Ts=e=>e==="*";function eh(e,t){let n=e.split("/"),r=n.length;return n.some(Ts)&&(r+=bp),t&&(r+=Gp),n.filter(l=>!Ts(l)).reduce((l,o)=>l+(Xp.test(o)?Yp:o===""?Jp:Zp),r)}function th(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function nh(e,t,n){let{routesMeta:r}=e,l={},o="/",i=[];for(let u=0;u{let{paramName:m,isOptional:v}=h;if(m==="*"){let g=u[d]||"";i=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const y=u[d];return v&&!y?a[m]=void 0:a[m]=(y||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function rh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Yc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,u,s)=>(r.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function lh(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Yc(!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 du(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 oh(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?En(e):e;return{pathname:n?n.startsWith("/")?n:ih(n,t):t,search:ah(r),hash:ch(l)}}function ih(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function So(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 uh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Zc(e,t){let n=uh(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function bc(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=En(e):(l=ar({},e),X(!l.pathname||!l.pathname.includes("?"),So("?","pathname","search",l)),X(!l.pathname||!l.pathname.includes("#"),So("#","pathname","hash",l)),X(!l.search||!l.search.includes("#"),So("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,u;if(i==null)u=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),d-=1;l.pathname=m.join("/")}u=d>=0?t[d]:"/"}let s=oh(l,u),a=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(a||h)&&(s.pathname+="/"),s}const kt=e=>e.join("/").replace(/\/\/+/g,"/"),sh=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ah=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ch=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function fh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ef=["post","put","patch","delete"];new Set(ef);const dh=["get",...ef];new Set(dh);/** + */function ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Yc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Wp(){return Math.random().toString(36).substr(2,8)}function Ns(e,t){return{usr:e.state,key:e.key,idx:t}}function hi(e,t,n,r){return n===void 0&&(n=null),ar({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?En(t):t,{state:n,key:t&&t.key||r||Wp()})}function kl(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 En(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 Qp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,u=dt.Pop,s=null,a=h();a==null&&(a=0,i.replaceState(ar({},i.state,{idx:a}),""));function h(){return(i.state||{idx:null}).idx}function d(){u=dt.Pop;let E=h(),f=E==null?null:E-a;a=E,s&&s({action:u,location:g.location,delta:f})}function m(E,f){u=dt.Push;let c=hi(g.location,E,f);a=h()+1;let p=Ns(c,a),w=g.createHref(c);try{i.pushState(p,"",w)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;l.location.assign(w)}o&&s&&s({action:u,location:g.location,delta:1})}function v(E,f){u=dt.Replace;let c=hi(g.location,E,f);a=h();let p=Ns(c,a),w=g.createHref(c);i.replaceState(p,"",w),o&&s&&s({action:u,location:g.location,delta:0})}function y(E){let f=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof E=="string"?E:kl(E);return c=c.replace(/ $/,"%20"),X(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let g={get action(){return u},get location(){return e(l,i)},listen(E){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(_s,d),s=E,()=>{l.removeEventListener(_s,d),s=null}},createHref(E){return t(l,E)},createURL:y,encodeLocation(E){let f=y(E);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:v,go(E){return i.go(E)}};return g}var Rs;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Rs||(Rs={}));function Kp(e,t,n){return n===void 0&&(n="/"),qp(e,t,n,!1)}function qp(e,t,n,r){let l=typeof t=="string"?En(t):t,o=du(l.pathname||"/",n);if(o==null)return null;let i=Gc(e);Xp(i);let u=null;for(let s=0;u==null&&s{let s={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(X(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let a=kt([r,s.relativePath]),h=n.concat(s);o.children&&o.children.length>0&&(X(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),Gc(o.children,t,h,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:th(a,o.index),routesMeta:h})};return e.forEach((o,i)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))l(o,i);else for(let s of Jc(o.path))l(o,i,s)}),t}function Jc(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Jc(r.join("/")),u=[];return u.push(...i.map(s=>s===""?o:[o,s].join("/"))),l&&u.push(...i),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function Xp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:nh(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Yp=/^:[\w-]+$/,Gp=3,Jp=2,Zp=1,bp=10,eh=-2,Ts=e=>e==="*";function th(e,t){let n=e.split("/"),r=n.length;return n.some(Ts)&&(r+=eh),t&&(r+=Jp),n.filter(l=>!Ts(l)).reduce((l,o)=>l+(Yp.test(o)?Gp:o===""?Zp:bp),r)}function nh(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function rh(e,t,n){let{routesMeta:r}=e,l={},o="/",i=[];for(let u=0;u{let{paramName:m,isOptional:v}=h;if(m==="*"){let g=u[d]||"";i=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const y=u[d];return v&&!y?a[m]=void 0:a[m]=(y||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function lh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Yc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,u,s)=>(r.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function oh(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Yc(!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 du(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 ih(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?En(e):e;return{pathname:n?n.startsWith("/")?n:uh(n,t):t,search:ch(r),hash:fh(l)}}function uh(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function So(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 sh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Zc(e,t){let n=sh(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function bc(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=En(e):(l=ar({},e),X(!l.pathname||!l.pathname.includes("?"),So("?","pathname","search",l)),X(!l.pathname||!l.pathname.includes("#"),So("#","pathname","hash",l)),X(!l.search||!l.search.includes("#"),So("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,u;if(i==null)u=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),d-=1;l.pathname=m.join("/")}u=d>=0?t[d]:"/"}let s=ih(l,u),a=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(a||h)&&(s.pathname+="/"),s}const kt=e=>e.join("/").replace(/\/\/+/g,"/"),ah=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ch=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fh=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function dh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ef=["post","put","patch","delete"];new Set(ef);const ph=["get",...ef];new Set(ph);/** * React Router v6.26.1 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),S.useCallback(function(a,h){if(h===void 0&&(h={}),!u.current)return;if(typeof a=="number"){r.go(a);return}let d=bc(a,JSON.parse(i),o,h.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:kt([t,d.pathname])),(h.replace?r.replace:r.push)(d,h.state,h)},[t,r,i,o,e])}function yh(){let{matches:e}=S.useContext(Nt),t=e[e.length-1];return t?t.params:{}}function rf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=S.useContext(Qt),{matches:l}=S.useContext(Nt),{pathname:o}=wr(),i=JSON.stringify(Zc(l,r.v7_relativeSplatPath));return S.useMemo(()=>bc(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function gh(e,t){return wh(e,t)}function wh(e,t,n,r){gr()||X(!1);let{navigator:l}=S.useContext(Qt),{matches:o}=S.useContext(Nt),i=o[o.length-1],u=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let a=wr(),h;if(t){var d;let E=typeof t=="string"?En(t):t;s==="/"||(d=E.pathname)!=null&&d.startsWith(s)||X(!1),h=E}else h=a;let m=h.pathname||"/",v=m;if(s!=="/"){let E=s.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(E.length).join("/")}let y=Qp(e,{pathname:v}),g=xh(y&&y.map(E=>Object.assign({},E,{params:Object.assign({},u,E.params),pathname:kt([s,l.encodeLocation?l.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?s:kt([s,l.encodeLocation?l.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),o,n,r);return t&&g?S.createElement(Al.Provider,{value:{location:cr({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:dt.Pop}},g):g}function Sh(){let e=Rh(),t=fh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:l},n):null,null)}const kh=S.createElement(Sh,null);class Eh extends S.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!==void 0?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!==void 0?S.createElement(Nt.Provider,{value:this.props.routeContext},S.createElement(tf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ph(e){let{routeContext:t,match:n,children:r}=e,l=S.useContext(pu);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Nt.Provider,{value:t},r)}function xh(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,u=(l=n)==null?void 0:l.errors;if(u!=null){let h=i.findIndex(d=>d.route.id&&(u==null?void 0:u[d.route.id])!==void 0);h>=0||X(!1),i=i.slice(0,Math.min(i.length,h+1))}let s=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((h,d,m)=>{let v,y=!1,g=null,E=null;n&&(v=u&&d.route.id?u[d.route.id]:void 0,g=d.route.errorElement||kh,s&&(a<0&&m===0?(y=!0,E=null):a===m&&(y=!0,E=d.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,m+1)),c=()=>{let p;return v?p=g:y?p=E:d.route.Component?p=S.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=h,S.createElement(Ph,{match:d,routeContext:{outlet:h,matches:f,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?S.createElement(Eh,{location:n.location,revalidation:n.revalidation,component:g,error:v,children:c(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):c()},null)}var lf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(lf||{}),El=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}(El||{});function Ch(e){let t=S.useContext(pu);return t||X(!1),t}function _h(e){let t=S.useContext(ph);return t||X(!1),t}function Nh(e){let t=S.useContext(Nt);return t||X(!1),t}function of(e){let t=Nh(),n=t.matches[t.matches.length-1];return n.route.id||X(!1),n.route.id}function Rh(){var e;let t=S.useContext(tf),n=_h(El.UseRouteError),r=of(El.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Th(){let{router:e}=Ch(lf.UseNavigateStable),t=of(El.UseNavigateStable),n=S.useRef(!1);return nf(()=>{n.current=!0}),S.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,cr({fromRouteId:t},o)))},[e,t])}function mi(e){X(!1)}function zh(e){let{basename:t="/",children:n=null,location:r,navigationType:l=dt.Pop,navigator:o,static:i=!1,future:u}=e;gr()&&X(!1);let s=t.replace(/^\/*/,"/"),a=S.useMemo(()=>({basename:s,navigator:o,static:i,future:cr({v7_relativeSplatPath:!1},u)}),[s,u,o,i]);typeof r=="string"&&(r=En(r));let{pathname:h="/",search:d="",hash:m="",state:v=null,key:y="default"}=r,g=S.useMemo(()=>{let E=du(h,s);return E==null?null:{location:{pathname:E,search:d,hash:m,state:v,key:y},navigationType:l}},[s,h,d,m,v,y,l]);return g==null?null:S.createElement(Qt.Provider,{value:a},S.createElement(Al.Provider,{children:n,value:g}))}function Ih(e){let{children:t,location:n}=e;return gh(vi(t),n)}new Promise(()=>{});function vi(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,l)=>{if(!S.isValidElement(r))return;let o=[...t,l];if(r.type===S.Fragment){n.push.apply(n,vi(r.props.children,o));return}r.type!==mi&&X(!1),!r.props.index||!r.props.children||X(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=vi(r.props.children,o)),n.push(i)}),n}/** + */function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),S.useCallback(function(a,h){if(h===void 0&&(h={}),!u.current)return;if(typeof a=="number"){r.go(a);return}let d=bc(a,JSON.parse(i),o,h.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:kt([t,d.pathname])),(h.replace?r.replace:r.push)(d,h.state,h)},[t,r,i,o,e])}function gh(){let{matches:e}=S.useContext(Nt),t=e[e.length-1];return t?t.params:{}}function rf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=S.useContext(Qt),{matches:l}=S.useContext(Nt),{pathname:o}=wr(),i=JSON.stringify(Zc(l,r.v7_relativeSplatPath));return S.useMemo(()=>bc(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function wh(e,t){return Sh(e,t)}function Sh(e,t,n,r){gr()||X(!1);let{navigator:l}=S.useContext(Qt),{matches:o}=S.useContext(Nt),i=o[o.length-1],u=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let a=wr(),h;if(t){var d;let E=typeof t=="string"?En(t):t;s==="/"||(d=E.pathname)!=null&&d.startsWith(s)||X(!1),h=E}else h=a;let m=h.pathname||"/",v=m;if(s!=="/"){let E=s.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(E.length).join("/")}let y=Kp(e,{pathname:v}),g=Ch(y&&y.map(E=>Object.assign({},E,{params:Object.assign({},u,E.params),pathname:kt([s,l.encodeLocation?l.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?s:kt([s,l.encodeLocation?l.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),o,n,r);return t&&g?S.createElement(Al.Provider,{value:{location:cr({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:dt.Pop}},g):g}function kh(){let e=Th(),t=dh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:l},n):null,null)}const Eh=S.createElement(kh,null);class Ph extends S.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!==void 0?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!==void 0?S.createElement(Nt.Provider,{value:this.props.routeContext},S.createElement(tf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function xh(e){let{routeContext:t,match:n,children:r}=e,l=S.useContext(pu);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Nt.Provider,{value:t},r)}function Ch(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,u=(l=n)==null?void 0:l.errors;if(u!=null){let h=i.findIndex(d=>d.route.id&&(u==null?void 0:u[d.route.id])!==void 0);h>=0||X(!1),i=i.slice(0,Math.min(i.length,h+1))}let s=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((h,d,m)=>{let v,y=!1,g=null,E=null;n&&(v=u&&d.route.id?u[d.route.id]:void 0,g=d.route.errorElement||Eh,s&&(a<0&&m===0?(y=!0,E=null):a===m&&(y=!0,E=d.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,m+1)),c=()=>{let p;return v?p=g:y?p=E:d.route.Component?p=S.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=h,S.createElement(xh,{match:d,routeContext:{outlet:h,matches:f,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?S.createElement(Ph,{location:n.location,revalidation:n.revalidation,component:g,error:v,children:c(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):c()},null)}var lf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(lf||{}),El=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}(El||{});function _h(e){let t=S.useContext(pu);return t||X(!1),t}function Nh(e){let t=S.useContext(hh);return t||X(!1),t}function Rh(e){let t=S.useContext(Nt);return t||X(!1),t}function of(e){let t=Rh(),n=t.matches[t.matches.length-1];return n.route.id||X(!1),n.route.id}function Th(){var e;let t=S.useContext(tf),n=Nh(El.UseRouteError),r=of(El.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function zh(){let{router:e}=_h(lf.UseNavigateStable),t=of(El.UseNavigateStable),n=S.useRef(!1);return nf(()=>{n.current=!0}),S.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,cr({fromRouteId:t},o)))},[e,t])}function mi(e){X(!1)}function Ih(e){let{basename:t="/",children:n=null,location:r,navigationType:l=dt.Pop,navigator:o,static:i=!1,future:u}=e;gr()&&X(!1);let s=t.replace(/^\/*/,"/"),a=S.useMemo(()=>({basename:s,navigator:o,static:i,future:cr({v7_relativeSplatPath:!1},u)}),[s,u,o,i]);typeof r=="string"&&(r=En(r));let{pathname:h="/",search:d="",hash:m="",state:v=null,key:y="default"}=r,g=S.useMemo(()=>{let E=du(h,s);return E==null?null:{location:{pathname:E,search:d,hash:m,state:v,key:y},navigationType:l}},[s,h,d,m,v,y,l]);return g==null?null:S.createElement(Qt.Provider,{value:a},S.createElement(Al.Provider,{children:n,value:g}))}function Oh(e){let{children:t,location:n}=e;return wh(vi(t),n)}new Promise(()=>{});function vi(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,l)=>{if(!S.isValidElement(r))return;let o=[...t,l];if(r.type===S.Fragment){n.push.apply(n,vi(r.props.children,o));return}r.type!==mi&&X(!1),!r.props.index||!r.props.children||X(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=vi(r.props.children,o)),n.push(i)}),n}/** * React Router DOM v6.26.1 * * Copyright (c) Remix Software Inc. @@ -64,4 +64,4 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function yi(){return yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function jh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Mh(e,t){return e.button===0&&(!t||t==="_self")&&!jh(e)}const Fh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Dh="6";try{window.__reactRouterVersion=Dh}catch{}const Uh="startTransition",Is=zf[Uh];function Lh(e){let{basename:t,children:n,future:r,window:l}=e,o=S.useRef();o.current==null&&(o.current=Vp({window:l,v5Compat:!0}));let i=o.current,[u,s]=S.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},h=S.useCallback(d=>{a&&Is?Is(()=>s(d)):s(d)},[s,a]);return S.useLayoutEffect(()=>i.listen(h),[i,h]),S.createElement(zh,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:i,future:r})}const $h=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ah=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,uf=S.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:u,target:s,to:a,preventScrollReset:h,unstable_viewTransition:d}=t,m=Oh(t,Fh),{basename:v}=S.useContext(Qt),y,g=!1;if(typeof a=="string"&&Ah.test(a)&&(y=a,$h))try{let p=new URL(window.location.href),w=a.startsWith("//")?new URL(p.protocol+a):new URL(a),P=du(w.pathname,v);w.origin===p.origin&&P!=null?a=P+w.search+w.hash:g=!0}catch{}let E=hh(a,{relative:l}),f=Bh(a,{replace:i,state:u,target:s,preventScrollReset:h,relative:l,unstable_viewTransition:d});function c(p){r&&r(p),p.defaultPrevented||f(p)}return S.createElement("a",yi({},m,{href:y||E,onClick:g||o?r:c,ref:n,target:s}))});var Os;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Os||(Os={}));var js;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(js||(js={}));function Bh(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u}=t===void 0?{}:t,s=mh(),a=wr(),h=rf(e,{relative:i});return S.useCallback(d=>{if(Mh(d,n)){d.preventDefault();let m=r!==void 0?r:kl(a)===kl(h);s(e,{replace:m,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u})}},[a,s,h,r,l,n,e,o,i,u])}function Vh(e){const t={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"};return new Date(e).toLocaleDateString("en-US",t).replace(",","")}const Hh=({data:e})=>{const{id:t}=yh(),n=e.find(r=>r.id===t);return O.jsxs("div",{className:"p-4",children:[O.jsx(uf,{to:"/",className:"text-blue-500 hover:underline mb-4 inline-block",children:"← Back to Grid"}),O.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Photo Details"}),O.jsxs("picture",{className:"block my-4",children:[O.jsx("source",{media:"(min-width:400px)",srcSet:n==null?void 0:n.urls.regular}),O.jsx("img",{src:n==null?void 0:n.urls.small,alt:(n==null?void 0:n.alt_description)||"Photo",className:"w-full"})]}),O.jsxs("p",{children:["Description: ",(n==null?void 0:n.description)||"No description available"]}),O.jsxs("p",{children:["Author:"," ",(n==null?void 0:n.user.first_name)+(n!=null&&n.user.last_name?" "+(n==null?void 0:n.user.last_name):"")]}),O.jsxs("p",{children:["Created at:"," ",n!=null&&n.created_at?Vh(n.created_at):"Unknown date"]})," "]})},Wh=({photo:e,width:t})=>{let n=e.urls.thumb;return t>200&&t<=400&&(n=e.urls.small),O.jsx("img",{src:n,alt:e.alt_description||"Photo",style:{width:"100%"},loading:"lazy",className:"bg-tourqoise-200"})},Qh=(e,t,n)=>S.useMemo(()=>{const r=Math.max(1,Math.floor((e+n)/(t+n))),l=(e-(r-1)*n)/r;return{columnCount:r,columnWidth:l}},[e,t,n]),Kh=(e,t,n)=>{const r=S.useCallback(i=>{const u=e[i],s=u.width/u.height;return Math.floor(t/s)},[e,t]),l=S.useCallback(i=>{const u=new Array(i).fill(0);return e.forEach((s,a)=>{const h=u.indexOf(Math.min(...u));u[h]+=r(a)+n}),u},[e,r,n]),o=S.useCallback(i=>{if(e.length===0)return 0;const u=l(i);return Math.max(...u)},[l,e.length]);return S.useMemo(()=>({getItemHeight:r,getTotalHeight:o}),[r,o])},qh=(e,t,n,r)=>S.useCallback(l=>{const o=new Array(e).fill(0);let i=0,u=0;for(let a=0;a<=l;a++){a===l&&(i=o.indexOf(Math.min(...o)),u=o[i]);const h=o.indexOf(Math.min(...o));o[h]+=n(a)+r}const s=i*(t+r);return{top:u,left:s}},[e,t,r,n,r]),Xh=(e,t,n,r,l,o)=>S.useCallback(()=>{const i=e.findIndex((s,a)=>{const{top:h}=t(a);return h+n(a)>r-o*l}),u=e.findIndex((s,a)=>{const{top:h}=t(a);return h>r+l+o*l});return{start:Math.max(0,i),end:u===-1?e.length:u}},[e,t,n,r,l,o]),Yh=({photos:e,minColumnWidth:t,cellGap:n,overscanCount:r,containerSize:l,scrollTop:o,isLoading:i,onNeedMore:u})=>{const s=S.useRef(null),{columnCount:a,columnWidth:h}=Qh(l.width,t,n),{getItemHeight:d,getTotalHeight:m}=Kh(e,h,n),v=qh(a,h,d,n),y=Xh(e,v,d,o,l.height,r),g=S.useMemo(()=>y(),[y]),E=S.useMemo(()=>m(a),[m,a,l]);return S.useEffect(()=>{s.current&&E0&&O.jsx("div",{className:"relative",style:{height:E},children:Gh(e,g,v,d,h,l)})})},Gh=(e,t,n,r,l,o)=>e.slice(t.start,t.end).map((i,u)=>{const s=t.start+u,{top:a,left:h}=n(s),d=r(s);return O.jsx(uf,{to:`/photo/${i.id}`,state:{containerSize:o},className:"mb-4",style:{position:"absolute",cursor:"pointer",top:a,left:h,width:l,height:d},children:O.jsx(Wh,{photo:i,width:l})},i.id)});function le(){return le=Object.assign||function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}var Jh=Bl(function(e){return typeof e=="string"?e:null}),lt=function(t){return t!=null};function Bl(e){return function(t){return lt(e(t))}}var Zh=function(t){return t.length>0},qe=function(t){return Object.keys(t).reduce(function(n,r){var l,o=t[r];return le({},n,lt(o)?(l={},l[r]=o,l):{})},{})};function hu(){for(var e=arguments.length,t=new Array(e),n=0;n{const[n,r]=S.useState([]),[l,o]=S.useState(1),[i,u]=S.useState(!1),[s,a]=S.useState(null),[h,d]=S.useState(!0),m=S.useRef(!1),v=S.useCallback(async()=>{if(!(i||!h)){u(!0),a(null);try{const g=await Mm.search.getPhotos({query:e,page:l,perPage:t});if(g!=null&&g.response){const E=g.response.results||[];r(f=>[...f,...E]),o(f=>f+1),d(E.length===t)}else throw new Error("No response from API")}catch(g){a(g instanceof Error?g.message:"An unknown error occurred")}finally{u(!1)}}},[e,l,t,i,h]);S.useEffect(()=>{m.current||(v(),m.current=!0)},[v]);const y=S.useCallback(()=>{r([]),o(1),d(!0),m.current=!1},[]);return{photos:n,isLoading:i,error:s,hasMore:h,fetchMorePhotos:v,resetPhotos:y}},Dm=e=>{const[t,n]=S.useState({width:0,height:0}),r=S.useCallback(()=>{if(e.current){const{width:l,height:o}=e.current.getBoundingClientRect();n({width:l,height:o})}},[e]);return S.useEffect(()=>(r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}),[r]),{containerSize:t}},Um=({handleSearch:e,searchQuery:t,isLoading:n})=>O.jsxs("form",{onSubmit:e,className:"p-4",children:[O.jsx("input",{disabled:n,type:"text",name:"search",defaultValue:t,className:"border p-2 mr-2",placeholder:"Search photos..."}),O.jsx("button",{type:"submit",className:"bg-blue-500 text-white p-2 rounded",children:"Search"})]}),Lm=({appContainerRef:e,containerSize:t,scrollPosition:n,setScrollPosition:r})=>{const l=wr(),[o,i]=S.useState("garden"),{photos:u,isLoading:s,error:a,fetchMorePhotos:h,resetPhotos:d}=Fm(o,10),m=y=>{y.preventDefault();const E=new FormData(y.currentTarget).get("search");i(E),d(),r(0)},v=S.useCallback(()=>{if(e.current){const{scrollTop:y,scrollHeight:g,clientHeight:E}=e.current;l.pathname==="/"&&r(y),g-y-E{const y=e.current;if(y)return y.addEventListener("scroll",v),()=>y.removeEventListener("scroll",v)},[v]),S.useEffect(()=>{e.current&&l.pathname==="/"&&(e.current.scrollTop=n)},[l]),O.jsx("div",{ref:e,className:"h-screen overflow-y-auto ",children:O.jsxs(Ih,{children:[O.jsx(mi,{path:"/",element:O.jsxs(O.Fragment,{children:[O.jsx(Um,{searchQuery:o,handleSearch:m,isLoading:s}),O.jsx(Am,{isLoading:s,dataLength:u.length}),O.jsx(Bm,{error:a}),O.jsx(Yh,{photos:u,minColumnWidth:180,cellGap:10,overscanCount:2,containerSize:t,scrollTop:n,onNeedMore:h,isLoading:s}),O.jsx(Vm,{showIndicator:!u.length&&!s&&!a})]})}),O.jsx(mi,{path:"/photo/:id",element:O.jsx(Hh,{data:u})})]})})},$m=()=>{const e=S.useRef(null),{containerSize:t}=Dm(e),[n,r]=S.useState(0);return O.jsx(Lh,{children:O.jsx(Lm,{appContainerRef:e,containerSize:t,scrollPosition:n,setScrollPosition:r})})},Am=({isLoading:e,dataLength:t})=>e&&t===0&&O.jsx("div",{className:"text-lg p-4",children:"Loading..."}),Bm=({error:e})=>e&&O.jsx("div",{className:"text-lg text-red-600 p-4",children:e}),Vm=({showIndicator:e})=>e&&O.jsx("div",{className:"p-4",children:"No photos available"});Xc(document.getElementById("root")).render(O.jsx(S.StrictMode,{children:O.jsx($m,{})})); + */function yi(){return yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function Mh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Fh(e,t){return e.button===0&&(!t||t==="_self")&&!Mh(e)}const Dh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Uh="6";try{window.__reactRouterVersion=Uh}catch{}const Lh="startTransition",Is=If[Lh];function $h(e){let{basename:t,children:n,future:r,window:l}=e,o=S.useRef();o.current==null&&(o.current=Hp({window:l,v5Compat:!0}));let i=o.current,[u,s]=S.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},h=S.useCallback(d=>{a&&Is?Is(()=>s(d)):s(d)},[s,a]);return S.useLayoutEffect(()=>i.listen(h),[i,h]),S.createElement(Ih,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:i,future:r})}const Ah=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Bh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,uf=S.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:u,target:s,to:a,preventScrollReset:h,unstable_viewTransition:d}=t,m=jh(t,Dh),{basename:v}=S.useContext(Qt),y,g=!1;if(typeof a=="string"&&Bh.test(a)&&(y=a,Ah))try{let p=new URL(window.location.href),w=a.startsWith("//")?new URL(p.protocol+a):new URL(a),P=du(w.pathname,v);w.origin===p.origin&&P!=null?a=P+w.search+w.hash:g=!0}catch{}let E=mh(a,{relative:l}),f=Vh(a,{replace:i,state:u,target:s,preventScrollReset:h,relative:l,unstable_viewTransition:d});function c(p){r&&r(p),p.defaultPrevented||f(p)}return S.createElement("a",yi({},m,{href:y||E,onClick:g||o?r:c,ref:n,target:s}))});var Os;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Os||(Os={}));var js;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(js||(js={}));function Vh(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u}=t===void 0?{}:t,s=vh(),a=wr(),h=rf(e,{relative:i});return S.useCallback(d=>{if(Fh(d,n)){d.preventDefault();let m=r!==void 0?r:kl(a)===kl(h);s(e,{replace:m,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u})}},[a,s,h,r,l,n,e,o,i,u])}function Hh(e){const t={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"};return new Date(e).toLocaleDateString("en-US",t).replace(",","")}const Wh=(e,t)=>{let n=null;return(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>e(...r),t)}};function le(){return le=Object.assign||function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}var Qh=Bl(function(e){return typeof e=="string"?e:null}),lt=function(t){return t!=null};function Bl(e){return function(t){return lt(e(t))}}var Kh=function(t){return t.length>0},qe=function(t){return Object.keys(t).reduce(function(n,r){var l,o=t[r];return le({},n,lt(o)?(l={},l[r]=o,l):{})},{})};function hu(){for(var e=arguments.length,t=new Array(e),n=0;n{const{id:t}=gh(),n=e.find(l=>l.id===t),r=S.useCallback(()=>{n&&ff.photos.trackDownload({downloadLocation:n.links.download_location}).then(()=>{console.log("Download tracked successfully")}).catch(l=>{l instanceof Error&&console.error("Failed to track download",l)})},[n]);return I.jsxs("div",{className:"p-4",children:[I.jsx(uf,{to:"/",className:"text-blue-500 hover:underline mb-4 inline-block",children:"← Back to Grid"}),I.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Photo Details"}),n&&I.jsx("a",{href:n.links.html,target:"_blank",rel:"noopener noreferrer",onClick:r,children:I.jsxs("picture",{className:"block my-4",children:[I.jsx("source",{media:"(min-width:400px)",srcSet:n.urls.regular}),I.jsx("img",{src:n.urls.small,alt:n.alt_description||"Photo",className:"w-full"})]})}),I.jsxs("p",{children:["Description: ",(n==null?void 0:n.description)||"No description available"]}),I.jsxs("p",{children:["Author:"," ",(n==null?void 0:n.user.first_name)+(n!=null&&n.user.last_name?" "+(n==null?void 0:n.user.last_name):"")]}),I.jsxs("p",{children:["Created at:"," ",n!=null&&n.created_at?Hh(n.created_at):"Unknown date"]})]})},Tm=({photo:e,width:t})=>{let n=e.urls.thumb;return t>200&&t<=400&&(n=e.urls.small),I.jsx("img",{src:n,alt:e.alt_description||"Photo",style:{width:"100%"},loading:"lazy",className:"bg-tourqoise-200"})},zm=(e,t,n)=>S.useMemo(()=>{const r=Math.max(1,Math.floor((e+n)/(t+n))),l=(e-(r-1)*n)/r;return{columnCount:r,columnWidth:l}},[e,t,n]),Im=(e,t,n)=>{const r=S.useCallback(i=>{const u=e[i],s=u.width/u.height;return Math.floor(t/s)},[e,t]),l=S.useCallback(i=>{const u=new Array(i).fill(0);return e.forEach((s,a)=>{const h=u.indexOf(Math.min(...u));u[h]+=r(a)+n}),u},[e,r,n]),o=S.useCallback(i=>{if(e.length===0)return 0;const u=l(i);return Math.max(...u)},[l,e.length]);return S.useMemo(()=>({getItemHeight:r,getTotalHeight:o}),[r,o])},Om=(e,t,n,r)=>S.useCallback(l=>{const o=new Array(e).fill(0);let i=0,u=0;for(let a=0;a<=l;a++){a===l&&(i=o.indexOf(Math.min(...o)),u=o[i]);const h=o.indexOf(Math.min(...o));o[h]+=n(a)+r}const s=i*(t+r);return{top:u,left:s}},[e,t,r,n,r]),jm=(e,t,n,r,l,o)=>S.useCallback(()=>{const i=e.findIndex((s,a)=>{const{top:h}=t(a);return h+n(a)>r-o*l}),u=e.findIndex((s,a)=>{const{top:h}=t(a);return h>r+l+o*l});return{start:Math.max(0,i),end:u===-1?e.length:u}},[e,t,n,r,l,o]),Mm=({photos:e,minColumnWidth:t,cellGap:n,overscanCount:r,containerSize:l,scrollTop:o,isLoading:i,onNeedMore:u})=>{const s=S.useRef(null),{columnCount:a,columnWidth:h}=zm(l.width,t,n),{getItemHeight:d,getTotalHeight:m}=Im(e,h,n),v=Om(a,h,d,n),y=jm(e,v,d,o,l.height,r),g=S.useMemo(()=>y(),[y]),E=S.useMemo(()=>m(a),[m,a,l]);return S.useEffect(()=>{s.current&&E0&&I.jsx("div",{className:"relative",style:{height:E},children:Fm(e,g,v,d,h,l)})})},Fm=(e,t,n,r,l,o)=>e.slice(t.start,t.end).map((i,u)=>{const s=t.start+u,{top:a,left:h}=n(s),d=r(s);return I.jsx(uf,{to:`/photo/${i.id}`,state:{containerSize:o},className:"mb-4",style:{position:"absolute",cursor:"pointer",top:a,left:h,width:l,height:d},children:I.jsx(Tm,{photo:i,width:l})},i.id)}),Dm=(e,t)=>{const[n,r]=S.useState([]),[l,o]=S.useState(1),[i,u]=S.useState(!1),[s,a]=S.useState(null),[h,d]=S.useState(!0),m=S.useRef(!1),v=S.useCallback(async()=>{if(!(i||!h)){u(!0),a(null);try{const y=await ff.search.getPhotos({query:e,page:l,perPage:t});if(y!=null&&y.response){const g=y.response.results||[];r(E=>[...E,...g]),o(E=>E+1),d(g.length===t)}else throw new Error("No response from API")}catch(y){a(y instanceof Error?y.message:"An unknown error occurred")}finally{u(!1)}}},[e,l,t,i,h]);return S.useEffect(()=>{r([]),o(1),d(!0)},[e]),S.useEffect(()=>{m.current||(v(),m.current=!0)},[v]),{photos:n,isLoading:i,error:s,hasMore:h,fetchMorePhotos:v}},Um=e=>{const[t,n]=S.useState({width:0,height:0}),r=S.useCallback(Wh(()=>{if(e.current){const{width:l,height:o}=e.current.getBoundingClientRect();n({width:l,height:o})}},200),[e]);return S.useEffect(()=>(r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}),[r]),{containerSize:t}},Lm=({handleSearch:e,searchQuery:t,isLoading:n})=>{const[r,l]=S.useState(t),o=i=>{i.preventDefault(),r.trim()&&e(i)};return I.jsxs("form",{onSubmit:o,className:"p-4",children:[I.jsx("input",{type:"text",name:"search",value:r,onChange:i=>l(i.target.value),disabled:n,className:"border p-2 mr-2",placeholder:"Search photos..."}),I.jsx("button",{type:"submit",disabled:n||!r.trim(),className:` text-white p-2 rounded ${r.trim()?"bg-blue-500":"pointer-events-none bg-slate-400"}`,children:"Search"})]})},$m=({appContainerRef:e,containerSize:t,scrollPosition:n,setScrollPosition:r})=>{const l=wr(),[o,i]=S.useState("old garden"),{photos:u,isLoading:s,error:a,fetchMorePhotos:h}=Dm(o,10),d=S.useCallback(v=>{v.preventDefault();const g=new FormData(v.currentTarget).get("search");g!==o&&(i(g),r(0))},[o,r]),m=S.useCallback(()=>{if(e.current){const{scrollTop:v,scrollHeight:y,clientHeight:g}=e.current;l.pathname==="/"&&r(v),y-v-g{const v=e.current;if(v)return v.addEventListener("scroll",m),()=>v.removeEventListener("scroll",m)},[m]),S.useEffect(()=>{e.current&&l.pathname==="/"&&(e.current.scrollTop=n)},[l]),I.jsx("div",{ref:e,className:"h-screen overflow-y-auto ",children:I.jsxs(Oh,{children:[I.jsx(mi,{path:"/",element:I.jsxs(I.Fragment,{children:[I.jsx(Lm,{searchQuery:o,handleSearch:d,isLoading:s}),I.jsx(Bm,{isLoading:s,dataLength:u.length}),I.jsx(Vm,{error:a}),I.jsx(Mm,{photos:u,minColumnWidth:180,cellGap:10,overscanCount:2,containerSize:t,scrollTop:n,onNeedMore:h,isLoading:s}),I.jsx(Hm,{showIndicator:!u.length&&!s&&!a})]})}),I.jsx(mi,{path:"/photo/:id",element:I.jsx(Rm,{data:u})})]})})},Am=()=>{const e=S.useRef(null),{containerSize:t}=Um(e),[n,r]=S.useState(0);return I.jsx($h,{children:I.jsx($m,{appContainerRef:e,containerSize:t,scrollPosition:n,setScrollPosition:r})})},Bm=({isLoading:e,dataLength:t})=>e&&t===0&&I.jsx("div",{className:"text-lg p-4",children:"Loading..."}),Vm=({error:e})=>e&&I.jsx("div",{className:"text-lg text-red-600 p-4",children:e}),Hm=({showIndicator:e})=>e&&I.jsx("div",{className:"p-4",children:"No photos available"});Xc(document.getElementById("root")).render(I.jsx(S.StrictMode,{children:I.jsx(Am,{})})); diff --git a/assets/index-B8P2LczU.css b/assets/index-nnYOSKmp.css similarity index 80% rename from assets/index-B8P2LczU.css rename to assets/index-nnYOSKmp.css index 069c0f0..8a93a42 100644 --- a/assets/index-B8P2LczU.css +++ b/assets/index-nnYOSKmp.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){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-feature-settings:normal;font-variation-settings:normal;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;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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::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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.absolute{position:absolute}.relative{position:relative}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-4{margin-bottom:1rem}.mr-2{margin-right:.5rem}.block{display:block}.inline-block{display:inline-block}.h-screen{height:100vh}.w-full{width:100%}.resize{resize:both}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.border{border-width:1px}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){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-feature-settings:normal;font-variation-settings:normal;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;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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::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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-4{margin-bottom:1rem}.mr-2{margin-right:.5rem}.block{display:block}.inline-block{display:inline-block}.h-screen{height:100vh}.w-full{width:100%}.resize{resize:both}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.border{border-width:1px}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline} diff --git a/index.html b/index.html index b613385..b800110 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ Vite + React + TS - - + +