From e8654f7b27a3e420b561bbf76e2d3e52c5258f2b Mon Sep 17 00:00:00 2001 From: Pavel Gordienko Date: Fri, 6 Sep 2024 03:54:31 +0300 Subject: [PATCH] Updates --- .../{index-Bmch3DOd.js => index-D8BxwYpU.js} | 36 +++++++++---------- index.html | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) rename assets/{index-Bmch3DOd.js => index-D8BxwYpU.js} (73%) diff --git a/assets/index-Bmch3DOd.js b/assets/index-D8BxwYpU.js similarity index 73% rename from assets/index-Bmch3DOd.js rename to assets/index-D8BxwYpU.js index d3a6c64..01d3e02 100644 --- a/assets/index-Bmch3DOd.js +++ b/assets/index-D8BxwYpU.js @@ -1,4 +1,4 @@ -function Vd(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 Aa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ua={exports:{}},Ml={},Ba={exports:{}},D={};/** +function Vd(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 Ua(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ba={exports:{}},Ml={},Ma={exports:{}},D={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function Vd(e,t){for(var n=0;n>>1,ee=N[q];if(0>>1;ql(ho,z))Ltl(jr,ho)?(N[q]=jr,N[Lt]=z,q=Lt):(N[q]=ho,N[Tt]=z,q=Tt);else if(Ltl(jr,z))N[q]=jr,N[Lt]=z,q=Lt;else break e}}return j}function l(N,j){var z=N.sortIndex-j.sortIndex;return z!==0?z:N.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],a=[],f=1,c=null,m=3,w=!1,y=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(N){for(var j=n(a);j!==null;){if(j.callback===null)r(a);else if(j.startTime<=N)r(a),j.sortIndex=j.expirationTime,t(u,j);else break;j=n(a)}}function E(N){if(v=!1,h(N),!y)if(n(u)!==null)y=!0,fo(x);else{var j=n(a);j!==null&&po(E,j.startTime-N)}}function x(N,j){y=!1,v&&(v=!1,p(T),T=-1),w=!0;var z=m;try{for(h(j),c=n(u);c!==null&&(!(c.expirationTime>j)||N&&!De());){var q=c.callback;if(typeof q=="function"){c.callback=null,m=c.priorityLevel;var ee=q(c.expirationTime<=j);j=e.unstable_now(),typeof ee=="function"?c.callback=ee:c===n(u)&&r(u),h(j)}else r(u);c=n(u)}if(c!==null)var Lr=!0;else{var Tt=n(a);Tt!==null&&po(E,Tt.startTime-j),Lr=!1}return Lr}finally{c=null,m=z,w=!1}}var _=!1,R=null,T=-1,$=5,I=-1;function De(){return!(e.unstable_now()-I<$)}function zn(){if(R!==null){var N=e.unstable_now();I=N;var j=!0;try{j=R(!0,N)}finally{j?Dn():(_=!1,R=null)}}else _=!1}var Dn;if(typeof d=="function")Dn=function(){d(zn)};else if(typeof MessageChannel<"u"){var bs=new MessageChannel,Hd=bs.port2;bs.port1.onmessage=zn,Dn=function(){Hd.postMessage(null)}}else Dn=function(){S(zn,0)};function fo(N){R=N,_||(_=!0,Dn())}function po(N,j){T=S(function(){N(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){y||w||(y=!0,fo(x))},e.unstable_forceFrameRate=function(N){0>N||125q?(N.sortIndex=z,t(a,N),n(u)===null&&N===n(a)&&(v?(p(T),T=-1):v=!0,po(E,z-q))):(N.sortIndex=ee,t(u,N),y||w||(y=!0,fo(x))),N},e.unstable_shouldYield=De,e.unstable_wrapCallback=function(N){var j=m;return function(){var z=m;m=j;try{return N.apply(this,arguments)}finally{m=z}}}})(Ya);Xa.exports=Ya;var dp=Xa.exports;/** + */(function(e){function t(N,j){var z=N.length;N.push(j);e:for(;0>>1,ee=N[G];if(0>>1;Gl(ho,z))Ltl(jr,ho)?(N[G]=jr,N[Lt]=z,G=Lt):(N[G]=ho,N[Tt]=z,G=Tt);else if(Ltl(jr,z))N[G]=jr,N[Lt]=z,G=Lt;else break e}}return j}function l(N,j){var z=N.sortIndex-j.sortIndex;return z!==0?z:N.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],a=[],f=1,c=null,m=3,w=!1,y=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(N){for(var j=n(a);j!==null;){if(j.callback===null)r(a);else if(j.startTime<=N)r(a),j.sortIndex=j.expirationTime,t(u,j);else break;j=n(a)}}function E(N){if(v=!1,h(N),!y)if(n(u)!==null)y=!0,fo(x);else{var j=n(a);j!==null&&po(E,j.startTime-N)}}function x(N,j){y=!1,v&&(v=!1,p(T),T=-1),w=!0;var z=m;try{for(h(j),c=n(u);c!==null&&(!(c.expirationTime>j)||N&&!De());){var G=c.callback;if(typeof G=="function"){c.callback=null,m=c.priorityLevel;var ee=G(c.expirationTime<=j);j=e.unstable_now(),typeof ee=="function"?c.callback=ee:c===n(u)&&r(u),h(j)}else r(u);c=n(u)}if(c!==null)var Lr=!0;else{var Tt=n(a);Tt!==null&&po(E,Tt.startTime-j),Lr=!1}return Lr}finally{c=null,m=z,w=!1}}var _=!1,R=null,T=-1,$=5,I=-1;function De(){return!(e.unstable_now()-I<$)}function zn(){if(R!==null){var N=e.unstable_now();I=N;var j=!0;try{j=R(!0,N)}finally{j?Dn():(_=!1,R=null)}}else _=!1}var Dn;if(typeof d=="function")Dn=function(){d(zn)};else if(typeof MessageChannel<"u"){var eu=new MessageChannel,Hd=eu.port2;eu.port1.onmessage=zn,Dn=function(){Hd.postMessage(null)}}else Dn=function(){S(zn,0)};function fo(N){R=N,_||(_=!0,Dn())}function po(N,j){T=S(function(){N(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){y||w||(y=!0,fo(x))},e.unstable_forceFrameRate=function(N){0>N||125G?(N.sortIndex=z,t(a,N),n(u)===null&&N===n(a)&&(v?(p(T),T=-1):v=!0,po(E,z-G))):(N.sortIndex=ee,t(u,N),y||w||(y=!0,fo(x))),N},e.unstable_shouldYield=De,e.unstable_wrapCallback=function(N){var j=m;return function(){var z=m;m=j;try{return N.apply(this,arguments)}finally{m=z}}}})(Za);Ya.exports=Za;var dp=Ya.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function Vd(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jo=Object.prototype.hasOwnProperty,hp=/^[: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]*$/,ru={},lu={};function mp(e){return Jo.call(lu,e)?!0:Jo.call(ru,e)?!1:hp.test(e)?lu[e]=!0:(ru[e]=!0,!1)}function yp(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 vp(e,t,n,r){if(t===null||typeof t>"u"||yp(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 oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oe[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];oe[t]=new pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oe[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oe[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){oe[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oe[e]=new pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oe[e]=new pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oe[e]=new pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oe[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ts=/[\-:]([a-z])/g;function ns(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(ts,ns);oe[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(ts,ns);oe[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(ts,ns);oe[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){oe[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)});oe.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){oe[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function rs(e,t,n,r){var l=oe.hasOwnProperty(t)?oe[t]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jo=Object.prototype.hasOwnProperty,hp=/^[: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]*$/,lu={},ou={};function mp(e){return Jo.call(ou,e)?!0:Jo.call(lu,e)?!1:hp.test(e)?ou[e]=!0:(lu[e]=!0,!1)}function yp(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 vp(e,t,n,r){if(t===null||typeof t>"u"||yp(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 oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oe[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];oe[t]=new pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oe[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oe[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){oe[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oe[e]=new pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oe[e]=new pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oe[e]=new pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oe[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ts=/[\-:]([a-z])/g;function ns(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(ts,ns);oe[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(ts,ns);oe[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(ts,ns);oe[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){oe[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)});oe.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){oe[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function rs(e,t,n,r){var l=oe.hasOwnProperty(t)?oe[t]:null;(l!==null?l.type!==0:r||!(2s||l[i]!==o[s]){var u=` -`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{vo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wn(e):""}function gp(e){switch(e.tag){case 5:return Wn(e.type);case 16:return Wn("Lazy");case 13:return Wn("Suspense");case 19:return Wn("SuspenseList");case 0:case 2:case 15:return e=go(e.type,!1),e;case 11:return e=go(e.type.render,!1),e;case 1:return e=go(e.type,!0),e;default:return""}}function bo(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 tn:return"Fragment";case en:return"Portal";case Xo:return"Profiler";case ls:return"StrictMode";case Yo:return"Suspense";case Zo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ec:return(e.displayName||"Context")+".Consumer";case ba:return(e._context.displayName||"Context")+".Provider";case os:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case is:return t=e.displayName||null,t!==null?t:bo(e.type)||"Memo";case ut:t=e._payload,e=e._init;try{return bo(e(t))}catch{}}return null}function wp(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 bo(t);case 8:return t===ls?"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 Ct(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sp(e){var t=nc(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 Ir(e){e._valueTracker||(e._valueTracker=Sp(e))}function rc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cl(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 ei(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function iu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ct(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 lc(e,t){t=t.checked,t!=null&&rs(e,"checked",t,!1)}function ti(e,t){lc(e,t);var n=Ct(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")?ni(e,t.type,n):t.hasOwnProperty("defaultValue")&&ni(e,t.type,Ct(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function su(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 ni(e,t,n){(t!=="number"||cl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qn=Array.isArray;function pn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Fr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function lr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qn={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},Ep=["Webkit","ms","Moz","O"];Object.keys(qn).forEach(function(e){Ep.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qn[t]=qn[e]})});function uc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qn.hasOwnProperty(e)&&qn[e]?(""+t).trim():t+"px"}function ac(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=uc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var kp=Q({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 oi(e,t){if(t){if(kp[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 ii(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var si=null;function ss(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ui=null,hn=null,mn=null;function cu(e){if(e=Pr(e)){if(typeof ui!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Ql(t),ui(e.stateNode,e.type,t))}}function cc(e){hn?mn?mn.push(e):mn=[e]:hn=e}function fc(){if(hn){var e=hn,t=mn;if(mn=hn=null,cu(e),t)for(e=0;e>>=0,e===0?32:31-(zp(e)/Dp|0)|0}var Ar=64,Ur=4194304;function Kn(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 hl(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 s=i&~l;s!==0?r=Kn(s):(o&=i,o!==0&&(r=Kn(o)))}else i=n&~l,i!==0?r=Kn(i):o!==0&&(r=Kn(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 Cr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Be(t),e[t]=n}function Up(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=Xn),wu=" ",Su=!1;function Lc(e,t){switch(e){case"keyup":return dh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nn=!1;function hh(e,t){switch(e){case"compositionend":return jc(t);case"keypress":return t.which!==32?null:(Su=!0,wu);case"textInput":return e=t.data,e===wu&&Su?null:e;default:return null}}function mh(e,t){if(nn)return e==="compositionend"||!ms&&Lc(e,t)?(e=Oc(),br=ds=dt=null,nn=!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=Cu(n)}}function Fc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ac(){for(var e=window,t=cl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cl(e.document)}return t}function ys(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 Ch(e){var t=Ac(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Fc(n.ownerDocument.documentElement,n)){if(r!==null&&ys(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=_u(n,o);var i=_u(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,rn=null,hi=null,Zn=null,mi=!1;function Pu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mi||rn==null||rn!==cl(r)||(r=rn,"selectionStart"in r&&ys(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}),Zn&&cr(Zn,r)||(Zn=r,r=vl(hi,"onSelect"),0sn||(e.current=Ei[sn],Ei[sn]=null,sn--)}function U(e,t){sn++,Ei[sn]=e.current,e.current=t}var _t={},ae=Rt(_t),ye=Rt(!1),Ht=_t;function Sn(e,t){var n=e.type.contextTypes;if(!n)return _t;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 ve(e){return e=e.childContextTypes,e!=null}function wl(){M(ye),M(ae)}function zu(e,t,n){if(ae.current!==_t)throw Error(k(168));U(ae,t),U(ye,n)}function Kc(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,wp(e)||"Unknown",l));return Q({},n,r)}function Sl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_t,Ht=ae.current,U(ae,e),U(ye,ye.current),!0}function Du(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Kc(e,t,Ht),r.__reactInternalMemoizedMergedChildContext=e,M(ye),M(ae),U(ae,e)):M(ye),U(ye,n)}var Xe=null,Kl=!1,jo=!1;function Gc(e){Xe===null?Xe=[e]:Xe.push(e)}function Fh(e){Kl=!0,Gc(e)}function Nt(){if(!jo&&Xe!==null){jo=!0;var e=0,t=A;try{var n=Xe;for(A=1;e>=i,l-=i,Ye=1<<32-Be(t)+l|n<T?($=R,R=null):$=R.sibling;var I=m(p,R,h[T],E);if(I===null){R===null&&(R=$);break}e&&R&&I.alternate===null&&t(p,R),d=o(I,d,T),_===null?x=I:_.sibling=I,_=I,R=$}if(T===h.length)return n(p,R),H&&zt(p,T),x;if(R===null){for(;TT?($=R,R=null):$=R.sibling;var De=m(p,R,I.value,E);if(De===null){R===null&&(R=$);break}e&&R&&De.alternate===null&&t(p,R),d=o(De,d,T),_===null?x=De:_.sibling=De,_=De,R=$}if(I.done)return n(p,R),H&&zt(p,T),x;if(R===null){for(;!I.done;T++,I=h.next())I=c(p,I.value,E),I!==null&&(d=o(I,d,T),_===null?x=I:_.sibling=I,_=I);return H&&zt(p,T),x}for(R=r(p,R);!I.done;T++,I=h.next())I=w(R,p,T,I.value,E),I!==null&&(e&&I.alternate!==null&&R.delete(I.key===null?T:I.key),d=o(I,d,T),_===null?x=I:_.sibling=I,_=I);return e&&R.forEach(function(zn){return t(p,zn)}),H&&zt(p,T),x}function S(p,d,h,E){if(typeof h=="object"&&h!==null&&h.type===tn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Dr:e:{for(var x=h.key,_=d;_!==null;){if(_.key===x){if(x=h.type,x===tn){if(_.tag===7){n(p,_.sibling),d=l(_,h.props.children),d.return=p,p=d;break e}}else if(_.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ut&&Au(x)===_.type){n(p,_.sibling),d=l(_,h.props),d.ref=Mn(p,_,h),d.return=p,p=d;break e}n(p,_);break}else t(p,_);_=_.sibling}h.type===tn?(d=Mt(h.props.children,p.mode,E,h.key),d.return=p,p=d):(E=sl(h.type,h.key,h.props,null,p.mode,E),E.ref=Mn(p,d,h),E.return=p,p=E)}return i(p);case en:e:{for(_=h.key;d!==null;){if(d.key===_)if(d.tag===4&&d.stateNode.containerInfo===h.containerInfo&&d.stateNode.implementation===h.implementation){n(p,d.sibling),d=l(d,h.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=Mo(h,p.mode,E),d.return=p,p=d}return i(p);case ut:return _=h._init,S(p,d,_(h._payload),E)}if(Qn(h))return y(p,d,h,E);if(In(h))return v(p,d,h,E);Qr(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,d!==null&&d.tag===6?(n(p,d.sibling),d=l(d,h),d.return=p,p=d):(n(p,d),d=Bo(h,p.mode,E),d.return=p,p=d),i(p)):n(p,d)}return S}var kn=Yc(!0),Zc=Yc(!1),xl=Rt(null),Cl=null,cn=null,Ss=null;function Es(){Ss=cn=Cl=null}function ks(e){var t=xl.current;M(xl),e._currentValue=t}function Ci(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 vn(e,t){Cl=e,Ss=cn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(me=!0),e.firstContext=null)}function je(e){var t=e._currentValue;if(Ss!==e)if(e={context:e,memoizedValue:t,next:null},cn===null){if(Cl===null)throw Error(k(308));cn=e,Cl.dependencies={lanes:0,firstContext:e}}else cn=cn.next=e;return t}var Ft=null;function xs(e){Ft===null?Ft=[e]:Ft.push(e)}function bc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,xs(t)):(n.next=l.next,l.next=n),t.interleaved=n,rt(e,r)}function rt(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 at=!1;function Cs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ef(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 et(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,rt(e,n)}return l=r.interleaved,l===null?(t.next=t,xs(r)):(t.next=l.next,l.next=t),r.interleaved=t,rt(e,n)}function tl(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,as(e,n)}}function Uu(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 _l(e,t,n,r){var l=e.updateQueue;at=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,a=u.next;u.next=null,i===null?o=a:i.next=a,i=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==i&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(o!==null){var c=l.baseState;i=0,f=a=u=null,s=o;do{var m=s.lane,w=s.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,v=s;switch(m=t,w=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){c=y.call(w,c,m);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,m=typeof y=="function"?y.call(w,c,m):y,m==null)break e;c=Q({},c,m);break e;case 2:at=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[s]:m.push(s))}else w={eventTime:w,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=w,u=c):f=f.next=w,i|=m;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;m=s,s=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(f===null&&(u=c),l.baseState=u,l.firstBaseUpdate=a,l.lastBaseUpdate=f,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);Qt|=i,e.lanes=i,e.memoizedState=c}}function Bu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Do.transition;Do.transition={};try{e(!1),t()}finally{A=n,Do.transition=r}}function gf(){return ze().memoizedState}function Mh(e,t,n){var r=Et(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wf(e))Sf(t,n);else if(n=bc(e,t,n,r),n!==null){var l=fe();Me(n,e,r,l),Ef(n,t,r)}}function $h(e,t,n){var r=Et(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wf(e))Sf(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,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,$e(s,i)){var u=t.interleaved;u===null?(l.next=l,xs(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=bc(e,t,l,r),n!==null&&(l=fe(),Me(n,e,r,l),Ef(n,t,r))}}function wf(e){var t=e.alternate;return e===W||t!==null&&t===W}function Sf(e,t){bn=Rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ef(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,as(e,n)}}var Nl={readContext:je,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useInsertionEffect:ie,useLayoutEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useMutableSource:ie,useSyncExternalStore:ie,useId:ie,unstable_isNewReconciler:!1},Hh={readContext:je,useCallback:function(e,t){return We().memoizedState=[e,t===void 0?null:t],e},useContext:je,useEffect:$u,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rl(4194308,4,pf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return rl(4,2,e,t)},useMemo:function(e,t){var n=We();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=We();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=Mh.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=We();return e={current:e},t.memoizedState=e},useState:Mu,useDebugValue:js,useDeferredValue:function(e){return We().memoizedState=e},useTransition:function(){var e=Mu(!1),t=e[0];return e=Bh.bind(null,e[1]),We().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=W,l=We();if(H){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ne===null)throw Error(k(349));Wt&30||lf(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,$u(sf.bind(null,r,o,e),[e]),r.flags|=2048,gr(9,of.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=We(),t=ne.identifierPrefix;if(H){var n=Ze,r=Ye;n=(r&~(1<<32-Be(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yr++,0")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{vo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wn(e):""}function gp(e){switch(e.tag){case 5:return Wn(e.type);case 16:return Wn("Lazy");case 13:return Wn("Suspense");case 19:return Wn("SuspenseList");case 0:case 2:case 15:return e=go(e.type,!1),e;case 11:return e=go(e.type.render,!1),e;case 1:return e=go(e.type,!0),e;default:return""}}function bo(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 nn:return"Fragment";case tn:return"Portal";case Xo:return"Profiler";case ls:return"StrictMode";case Yo:return"Suspense";case Zo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tc:return(e.displayName||"Context")+".Consumer";case ec:return(e._context.displayName||"Context")+".Provider";case os:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case is:return t=e.displayName||null,t!==null?t:bo(e.type)||"Memo";case ut:t=e._payload,e=e._init;try{return bo(e(t))}catch{}}return null}function wp(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 bo(t);case 8:return t===ls?"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 Ct(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sp(e){var t=rc(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 Ir(e){e._valueTracker||(e._valueTracker=Sp(e))}function lc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cl(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 ei(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function su(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ct(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 oc(e,t){t=t.checked,t!=null&&rs(e,"checked",t,!1)}function ti(e,t){oc(e,t);var n=Ct(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")?ni(e,t.type,n):t.hasOwnProperty("defaultValue")&&ni(e,t.type,Ct(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uu(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 ni(e,t,n){(t!=="number"||cl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qn=Array.isArray;function hn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Fr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function lr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gn={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},Ep=["Webkit","ms","Moz","O"];Object.keys(Gn).forEach(function(e){Ep.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gn[t]=Gn[e]})});function ac(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gn.hasOwnProperty(e)&&Gn[e]?(""+t).trim():t+"px"}function cc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ac(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var kp=Q({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 oi(e,t){if(t){if(kp[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 ii(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var si=null;function ss(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ui=null,mn=null,yn=null;function fu(e){if(e=Pr(e)){if(typeof ui!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Ql(t),ui(e.stateNode,e.type,t))}}function fc(e){mn?yn?yn.push(e):yn=[e]:mn=e}function dc(){if(mn){var e=mn,t=yn;if(yn=mn=null,fu(e),t)for(e=0;e>>=0,e===0?32:31-(zp(e)/Dp|0)|0}var Ar=64,Ur=4194304;function Kn(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 hl(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 s=i&~l;s!==0?r=Kn(s):(o&=i,o!==0&&(r=Kn(o)))}else i=n&~l,i!==0?r=Kn(i):o!==0&&(r=Kn(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 Cr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Be(t),e[t]=n}function Up(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=Xn),Su=" ",Eu=!1;function jc(e,t){switch(e){case"keyup":return dh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rn=!1;function hh(e,t){switch(e){case"compositionend":return zc(t);case"keypress":return t.which!==32?null:(Eu=!0,Su);case"textInput":return e=t.data,e===Su&&Eu?null:e;default:return null}}function mh(e,t){if(rn)return e==="compositionend"||!ms&&jc(e,t)?(e=Tc(),br=ds=dt=null,rn=!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=_u(n)}}function Ac(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ac(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uc(){for(var e=window,t=cl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cl(e.document)}return t}function ys(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 Ch(e){var t=Uc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ac(n.ownerDocument.documentElement,n)){if(r!==null&&ys(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=Pu(n,o);var i=Pu(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,ln=null,hi=null,Zn=null,mi=!1;function Ru(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mi||ln==null||ln!==cl(r)||(r=ln,"selectionStart"in r&&ys(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}),Zn&&cr(Zn,r)||(Zn=r,r=vl(hi,"onSelect"),0un||(e.current=Ei[un],Ei[un]=null,un--)}function U(e,t){un++,Ei[un]=e.current,e.current=t}var _t={},ae=Rt(_t),ye=Rt(!1),Ht=_t;function En(e,t){var n=e.type.contextTypes;if(!n)return _t;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 ve(e){return e=e.childContextTypes,e!=null}function wl(){M(ye),M(ae)}function Du(e,t,n){if(ae.current!==_t)throw Error(k(168));U(ae,t),U(ye,n)}function qc(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,wp(e)||"Unknown",l));return Q({},n,r)}function Sl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_t,Ht=ae.current,U(ae,e),U(ye,ye.current),!0}function Iu(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=qc(e,t,Ht),r.__reactInternalMemoizedMergedChildContext=e,M(ye),M(ae),U(ae,e)):M(ye),U(ye,n)}var Xe=null,Kl=!1,jo=!1;function Gc(e){Xe===null?Xe=[e]:Xe.push(e)}function Fh(e){Kl=!0,Gc(e)}function Nt(){if(!jo&&Xe!==null){jo=!0;var e=0,t=A;try{var n=Xe;for(A=1;e>=i,l-=i,Ye=1<<32-Be(t)+l|n<T?($=R,R=null):$=R.sibling;var I=m(p,R,h[T],E);if(I===null){R===null&&(R=$);break}e&&R&&I.alternate===null&&t(p,R),d=o(I,d,T),_===null?x=I:_.sibling=I,_=I,R=$}if(T===h.length)return n(p,R),H&&zt(p,T),x;if(R===null){for(;TT?($=R,R=null):$=R.sibling;var De=m(p,R,I.value,E);if(De===null){R===null&&(R=$);break}e&&R&&De.alternate===null&&t(p,R),d=o(De,d,T),_===null?x=De:_.sibling=De,_=De,R=$}if(I.done)return n(p,R),H&&zt(p,T),x;if(R===null){for(;!I.done;T++,I=h.next())I=c(p,I.value,E),I!==null&&(d=o(I,d,T),_===null?x=I:_.sibling=I,_=I);return H&&zt(p,T),x}for(R=r(p,R);!I.done;T++,I=h.next())I=w(R,p,T,I.value,E),I!==null&&(e&&I.alternate!==null&&R.delete(I.key===null?T:I.key),d=o(I,d,T),_===null?x=I:_.sibling=I,_=I);return e&&R.forEach(function(zn){return t(p,zn)}),H&&zt(p,T),x}function S(p,d,h,E){if(typeof h=="object"&&h!==null&&h.type===nn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Dr:e:{for(var x=h.key,_=d;_!==null;){if(_.key===x){if(x=h.type,x===nn){if(_.tag===7){n(p,_.sibling),d=l(_,h.props.children),d.return=p,p=d;break e}}else if(_.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ut&&Uu(x)===_.type){n(p,_.sibling),d=l(_,h.props),d.ref=Mn(p,_,h),d.return=p,p=d;break e}n(p,_);break}else t(p,_);_=_.sibling}h.type===nn?(d=Mt(h.props.children,p.mode,E,h.key),d.return=p,p=d):(E=sl(h.type,h.key,h.props,null,p.mode,E),E.ref=Mn(p,d,h),E.return=p,p=E)}return i(p);case tn:e:{for(_=h.key;d!==null;){if(d.key===_)if(d.tag===4&&d.stateNode.containerInfo===h.containerInfo&&d.stateNode.implementation===h.implementation){n(p,d.sibling),d=l(d,h.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=Mo(h,p.mode,E),d.return=p,p=d}return i(p);case ut:return _=h._init,S(p,d,_(h._payload),E)}if(Qn(h))return y(p,d,h,E);if(In(h))return v(p,d,h,E);Qr(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,d!==null&&d.tag===6?(n(p,d.sibling),d=l(d,h),d.return=p,p=d):(n(p,d),d=Bo(h,p.mode,E),d.return=p,p=d),i(p)):n(p,d)}return S}var xn=Zc(!0),bc=Zc(!1),xl=Rt(null),Cl=null,fn=null,Ss=null;function Es(){Ss=fn=Cl=null}function ks(e){var t=xl.current;M(xl),e._currentValue=t}function Ci(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 gn(e,t){Cl=e,Ss=fn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(me=!0),e.firstContext=null)}function je(e){var t=e._currentValue;if(Ss!==e)if(e={context:e,memoizedValue:t,next:null},fn===null){if(Cl===null)throw Error(k(308));fn=e,Cl.dependencies={lanes:0,firstContext:e}}else fn=fn.next=e;return t}var Ft=null;function xs(e){Ft===null?Ft=[e]:Ft.push(e)}function ef(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,xs(t)):(n.next=l.next,l.next=n),t.interleaved=n,rt(e,r)}function rt(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 at=!1;function Cs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tf(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 et(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,rt(e,n)}return l=r.interleaved,l===null?(t.next=t,xs(r)):(t.next=l.next,l.next=t),r.interleaved=t,rt(e,n)}function tl(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,as(e,n)}}function Bu(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 _l(e,t,n,r){var l=e.updateQueue;at=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,a=u.next;u.next=null,i===null?o=a:i.next=a,i=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==i&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(o!==null){var c=l.baseState;i=0,f=a=u=null,s=o;do{var m=s.lane,w=s.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,v=s;switch(m=t,w=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){c=y.call(w,c,m);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,m=typeof y=="function"?y.call(w,c,m):y,m==null)break e;c=Q({},c,m);break e;case 2:at=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[s]:m.push(s))}else w={eventTime:w,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=w,u=c):f=f.next=w,i|=m;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;m=s,s=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(f===null&&(u=c),l.baseState=u,l.firstBaseUpdate=a,l.lastBaseUpdate=f,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);Qt|=i,e.lanes=i,e.memoizedState=c}}function Mu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Do.transition;Do.transition={};try{e(!1),t()}finally{A=n,Do.transition=r}}function wf(){return ze().memoizedState}function Mh(e,t,n){var r=Et(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Sf(e))Ef(t,n);else if(n=ef(e,t,n,r),n!==null){var l=fe();Me(n,e,r,l),kf(n,t,r)}}function $h(e,t,n){var r=Et(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sf(e))Ef(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,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,$e(s,i)){var u=t.interleaved;u===null?(l.next=l,xs(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=ef(e,t,l,r),n!==null&&(l=fe(),Me(n,e,r,l),kf(n,t,r))}}function Sf(e){var t=e.alternate;return e===W||t!==null&&t===W}function Ef(e,t){bn=Rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function kf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,as(e,n)}}var Nl={readContext:je,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useInsertionEffect:ie,useLayoutEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useMutableSource:ie,useSyncExternalStore:ie,useId:ie,unstable_isNewReconciler:!1},Hh={readContext:je,useCallback:function(e,t){return We().memoizedState=[e,t===void 0?null:t],e},useContext:je,useEffect:Hu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rl(4194308,4,hf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return rl(4,2,e,t)},useMemo:function(e,t){var n=We();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=We();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=Mh.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=We();return e={current:e},t.memoizedState=e},useState:$u,useDebugValue:js,useDeferredValue:function(e){return We().memoizedState=e},useTransition:function(){var e=$u(!1),t=e[0];return e=Bh.bind(null,e[1]),We().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=W,l=We();if(H){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ne===null)throw Error(k(349));Wt&30||of(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Hu(uf.bind(null,r,o,e),[e]),r.flags|=2048,gr(9,sf.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=We(),t=ne.identifierPrefix;if(H){var n=Ze,r=Ye;n=(r&~(1<<32-Be(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yr++,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[Qe]=t,e[pr]=r,Lf(e,t,!1,!1),t.stateNode=e;e:{switch(i=ii(n,r),n){case"dialog":B("cancel",e),B("close",e),l=r;break;case"iframe":case"object":case"embed":B("load",e),l=r;break;case"video":case"audio":for(l=0;l_n&&(t.flags|=128,r=!0,$n(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),$n(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!H)return se(t),null}else 2*J()-o.renderingStartTime>_n&&n!==1073741824&&(t.flags|=128,r=!0,$n(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=J(),t.sibling=null,n=V.current,U(V,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return Us(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ee&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Xh(e,t){switch(gs(t),t.tag){case 1:return ve(t.type)&&wl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xn(),M(ye),M(ae),Rs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ps(t),null;case 13:if(M(V),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));En()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(V),null;case 4:return xn(),null;case 10:return ks(t.type._context),null;case 22:case 23:return Us(),null;case 24:return null;default:return null}}var Gr=!1,ue=!1,Yh=typeof WeakSet=="function"?WeakSet:Set,P=null;function fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){G(e,t,r)}else n.current=null}function zi(e,t,n){try{n()}catch(r){G(e,t,r)}}var Zu=!1;function Zh(e,t){if(yi=ml,e=Ac(),ys(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,s=-1,u=-1,a=0,f=0,c=e,m=null;t:for(;;){for(var w;c!==n||l!==0&&c.nodeType!==3||(s=i+l),c!==o||r!==0&&c.nodeType!==3||(u=i+r),c.nodeType===3&&(i+=c.nodeValue.length),(w=c.firstChild)!==null;)m=c,c=w;for(;;){if(c===e)break t;if(m===n&&++a===l&&(s=i),m===o&&++f===r&&(u=i),(w=c.nextSibling)!==null)break;c=m,m=c.parentNode}c=w}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(vi={focusedElem:e,selectionRange:n},ml=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;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 v=y.memoizedProps,S=y.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:Fe(t.type,v),S);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(E){G(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return y=Zu,Zu=!1,y}function er(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&&zi(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 Di(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 Df(e){var t=e.alternate;t!==null&&(e.alternate=null,Df(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qe],delete t[pr],delete t[Si],delete t[Dh],delete t[Ih])),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 If(e){return e.tag===5||e.tag===3||e.tag===4}function bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||If(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 Ii(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=gl));else if(r!==4&&(e=e.child,e!==null))for(Ii(e,t,n),e=e.sibling;e!==null;)Ii(e,t,n),e=e.sibling}function Fi(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(Fi(e,t,n),e=e.sibling;e!==null;)Fi(e,t,n),e=e.sibling}var re=null,Ae=!1;function it(e,t,n){for(n=n.child;n!==null;)Ff(e,t,n),n=n.sibling}function Ff(e,t,n){if(Ke&&typeof Ke.onCommitFiberUnmount=="function")try{Ke.onCommitFiberUnmount($l,n)}catch{}switch(n.tag){case 5:ue||fn(n,t);case 6:var r=re,l=Ae;re=null,it(e,t,n),re=r,Ae=l,re!==null&&(Ae?(e=re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):re.removeChild(n.stateNode));break;case 18:re!==null&&(Ae?(e=re,n=n.stateNode,e.nodeType===8?Lo(e.parentNode,n):e.nodeType===1&&Lo(e,n),ur(e)):Lo(re,n.stateNode));break;case 4:r=re,l=Ae,re=n.stateNode.containerInfo,Ae=!0,it(e,t,n),re=r,Ae=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)&&zi(n,t,i),l=l.next}while(l!==r)}it(e,t,n);break;case 1:if(!ue&&(fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){G(n,t,s)}it(e,t,n);break;case 21:it(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,it(e,t,n),ue=r):it(e,t,n);break;default:it(e,t,n)}}function ea(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yh),t.forEach(function(r){var l=sm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ie(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*em(r/1960))-r,10e?16:e,pt===null)var r=!1;else{if(e=pt,pt=null,Ll=0,F&6)throw Error(k(331));var l=F;for(F|=4,P=e.current;P!==null;){var o=P,i=o.child;if(P.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uJ()-Fs?Bt(e,0):Is|=n),ge(e,t)}function Wf(e,t){t===0&&(e.mode&1?(t=Ur,Ur<<=1,!(Ur&130023424)&&(Ur=4194304)):t=1);var n=fe();e=rt(e,t),e!==null&&(Cr(e,t,n),ge(e,n))}function im(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wf(e,n)}function sm(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),Wf(e,n)}var Qf;Qf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ye.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,qh(e,t,n);me=!!(e.flags&131072)}else me=!1,H&&t.flags&1048576&&qc(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ll(e,t),e=t.pendingProps;var l=Sn(t,ae.current);vn(t,n),l=Os(null,t,r,e,l,n);var o=Ts();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,ve(r)?(o=!0,Sl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Cs(t),l.updater=ql,t.stateNode=l,l._reactInternals=t,Pi(t,r,e,n),t=Oi(null,t,r,!0,o,n)):(t.tag=0,H&&o&&vs(t),ce(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ll(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=am(r),e=Fe(r,e),l){case 0:t=Ni(null,t,r,e,n);break e;case 1:t=Ju(null,t,r,e,n);break e;case 11:t=Gu(null,t,r,e,n);break e;case 14:t=qu(null,t,r,Fe(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:Fe(r,l),Ni(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Fe(r,l),Ju(e,t,r,l,n);case 3:e:{if(Nf(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,ef(e,t),_l(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=Cn(Error(k(423)),t),t=Xu(e,t,r,n,l);break e}else if(r!==l){l=Cn(Error(k(424)),t),t=Xu(e,t,r,n,l);break e}else for(ke=gt(t.stateNode.containerInfo.firstChild),xe=t,H=!0,Ue=null,n=Zc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(En(),r===l){t=lt(e,t,n);break e}ce(e,t,r,n)}t=t.child}return t;case 5:return tf(t),e===null&&xi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,gi(r,l)?i=null:o!==null&&gi(r,o)&&(t.flags|=32),Rf(e,t),ce(e,t,i,n),t.child;case 6:return e===null&&xi(t),null;case 13:return Of(e,t,n);case 4:return _s(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=kn(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:Fe(r,l),Gu(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,U(xl,r._currentValue),r._currentValue=i,o!==null)if($e(o.value,i)){if(o.children===l.children&&!ye.current){t=lt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=et(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Ci(o.return,n,t),s.lanes|=n;break}u=u.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,s=i.alternate,s!==null&&(s.lanes|=n),Ci(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,vn(t,n),l=je(l),r=r(l),t.flags|=1,ce(e,t,r,n),t.child;case 14:return r=t.type,l=Fe(r,t.pendingProps),l=Fe(r.type,l),qu(e,t,r,l,n);case 15:return _f(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Fe(r,l),ll(e,t),t.tag=1,ve(r)?(e=!0,Sl(t)):e=!1,vn(t,n),kf(t,r,l),Pi(t,r,l,n),Oi(null,t,r,!0,e,n);case 19:return Tf(e,t,n);case 22:return Pf(e,t,n)}throw Error(k(156,t.tag))};function Kf(e,t){return gc(e,t)}function um(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 Te(e,t,n,r){return new um(e,t,n,r)}function Ms(e){return e=e.prototype,!(!e||!e.isReactComponent)}function am(e){if(typeof e=="function")return Ms(e)?1:0;if(e!=null){if(e=e.$$typeof,e===os)return 11;if(e===is)return 14}return 2}function kt(e,t){var n=e.alternate;return n===null?(n=Te(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 sl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Ms(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case tn:return Mt(n.children,l,o,t);case ls:i=8,l|=8;break;case Xo:return e=Te(12,n,t,l|2),e.elementType=Xo,e.lanes=o,e;case Yo:return e=Te(13,n,t,l),e.elementType=Yo,e.lanes=o,e;case Zo:return e=Te(19,n,t,l),e.elementType=Zo,e.lanes=o,e;case tc:return Yl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ba:i=10;break e;case ec:i=9;break e;case os:i=11;break e;case is:i=14;break e;case ut:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Te(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Mt(e,t,n,r){return e=Te(7,e,r,t),e.lanes=n,e}function Yl(e,t,n,r){return e=Te(22,e,r,t),e.elementType=tc,e.lanes=n,e.stateNode={isHidden:!1},e}function Bo(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function Mo(e,t,n){return t=Te(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cm(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=So(0),this.expirationTimes=So(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=So(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function $s(e,t,n,r,l,o,i,s,u){return e=new cm(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Te(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cs(o),e}function fm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xf)}catch(e){console.error(e)}}Xf(),Ja.exports=Pe;var ym=Ja.exports,Yf,ua=ym;Yf=ua.createRoot,ua.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:l,digest:null}}function Ao(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ri(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Qh=typeof WeakMap=="function"?WeakMap:Map;function Cf(e,t,n){n=et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Tl||(Tl=!0,Ai=r),Ri(e,t)},n}function _f(e,t,n){n=et(-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(){Ri(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ri(e,t),typeof r!="function"&&(St===null?St=new Set([this]):St.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qh;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=om.bind(null,e,t,n),t.then(e,e))}function Ku(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 qu(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=et(-1,1),t.tag=2,wt(n,t,1))),n.lanes|=1),e)}var Kh=ot.ReactCurrentOwner,me=!1;function ce(e,t,n,r){t.child=e===null?bc(t,null,n,r):xn(t,e.child,n,r)}function Gu(e,t,n,r,l){n=n.render;var o=t.ref;return gn(t,l),r=Os(e,t,n,r,o,l),n=Ts(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,lt(e,t,l)):(H&&n&&vs(t),t.flags|=1,ce(e,t,r,l),t.child)}function Ju(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Ms(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Pf(e,t,o,r,l)):(e=sl(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:cr,n(i,r)&&e.ref===t.ref)return lt(e,t,l)}return t.flags|=1,e=kt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Pf(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(cr(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,lt(e,t,l)}return Ni(e,t,n,r,l)}function Rf(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},U(pn,Ee),Ee|=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,U(pn,Ee),Ee|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,U(pn,Ee),Ee|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,U(pn,Ee),Ee|=r;return ce(e,t,l,n),t.child}function Nf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ni(e,t,n,r,l){var o=ve(n)?Ht:ae.current;return o=En(t,o),gn(t,l),n=Os(e,t,n,r,o,l),r=Ts(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,lt(e,t,l)):(H&&r&&vs(t),t.flags|=1,ce(e,t,n,l),t.child)}function Xu(e,t,n,r,l){if(ve(n)){var o=!0;Sl(t)}else o=!1;if(gn(t,l),t.stateNode===null)ll(e,t),xf(t,n,r),Pi(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var u=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=je(a):(a=ve(n)?Ht:ae.current,a=En(t,a));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";c||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||u!==a)&&Wu(t,i,r,a),at=!1;var m=t.memoizedState;i.state=m,_l(t,r,i,l),u=t.memoizedState,s!==r||m!==u||ye.current||at?(typeof f=="function"&&(_i(t,n,f,r),u=t.memoizedState),(s=at||Vu(t,n,s,r,m,u,a))?(c||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=u),i.props=r,i.state=u,i.context=a,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,tf(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:Fe(t.type,s),i.props=a,c=t.pendingProps,m=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=je(u):(u=ve(n)?Ht:ae.current,u=En(t,u));var w=n.getDerivedStateFromProps;(f=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==c||m!==u)&&Wu(t,i,r,u),at=!1,m=t.memoizedState,i.state=m,_l(t,r,i,l);var y=t.memoizedState;s!==c||m!==y||ye.current||at?(typeof w=="function"&&(_i(t,n,w,r),y=t.memoizedState),(a=at||Vu(t,n,a,r,m,y,u)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=u,r=a):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Oi(e,t,n,r,o,l)}function Oi(e,t,n,r,l,o){Nf(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Iu(t,n,!1),lt(e,t,o);r=t.stateNode,Kh.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=xn(t,e.child,null,o),t.child=xn(t,null,s,o)):ce(e,t,s,o),t.memoizedState=r.state,l&&Iu(t,n,!0),t.child}function Of(e){var t=e.stateNode;t.pendingContext?Du(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Du(e,t.context,!1),_s(e,t.containerInfo)}function Yu(e,t,n,r,l){return kn(),ws(l),t.flags|=256,ce(e,t,n,r),t.child}var Ti={dehydrated:null,treeContext:null,retryLane:0};function Li(e){return{baseLanes:e,cachePool:null,transitions:null}}function Tf(e,t,n){var r=t.pendingProps,l=V.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),U(V,l&1),e===null)return xi(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=Yl(i,r,0,null),e=Mt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Li(n),t.memoizedState=Ti,e):zs(t,i));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return qh(e,t,i,r,s,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,s=l.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=kt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),s!==null?o=kt(s,o):(o=Mt(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=Ti,r}return o=e.child,e=o.sibling,r=kt(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 zs(e,t){return t=Yl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Kr(e,t,n,r){return r!==null&&ws(r),xn(t,e.child,null,n),e=zs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qh(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Ao(Error(k(422))),Kr(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Yl({mode:"visible",children:r.children},l,0,null),o=Mt(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&xn(t,e.child,null,i),t.child.memoizedState=Li(i),t.memoizedState=Ti,o);if(!(t.mode&1))return Kr(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(k(419)),r=Ao(o,r,void 0),Kr(e,t,i,r)}if(s=(i&e.childLanes)!==0,me||s){if(r=ne,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,rt(e,l),Me(r,e,l,-1))}return Bs(),r=Ao(Error(k(421))),Kr(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=im.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,ke=gt(l.nextSibling),xe=t,H=!0,Ue=null,e!==null&&(Ne[Oe++]=Ye,Ne[Oe++]=Ze,Ne[Oe++]=Vt,Ye=e.id,Ze=e.overflow,Vt=t),t=zs(t,r.children),t.flags|=4096,t)}function Zu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ci(e.return,t,n)}function Uo(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 Lf(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(ce(e,t,r.children,n),r=V.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&&Zu(e,n,t);else if(e.tag===19)Zu(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(U(V,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),Uo(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}Uo(t,!0,n,null,o);break;case"together":Uo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ll(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qt|=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=kt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=kt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Gh(e,t,n){switch(t.tag){case 3:Of(t),kn();break;case 5:nf(t);break;case 1:ve(t.type)&&Sl(t);break;case 4:_s(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;U(xl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(V,V.current&1),t.flags|=128,null):n&t.child.childLanes?Tf(e,t,n):(U(V,V.current&1),e=lt(e,t,n),e!==null?e.sibling:null);U(V,V.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Lf(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),U(V,V.current),r)break;return null;case 22:case 23:return t.lanes=0,Rf(e,t,n)}return lt(e,t,n)}var jf,ji,zf,Df;jf=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}};ji=function(){};zf=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,At(qe.current);var o=null;switch(n){case"input":l=ei(e,l),r=ei(e,r),o=[];break;case"select":l=Q({},l,{value:void 0}),r=Q({},r,{value:void 0}),o=[];break;case"textarea":l=ri(e,l),r=ri(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=gl)}oi(n,r);var i;n=null;for(a in l)if(!r.hasOwnProperty(a)&&l.hasOwnProperty(a)&&l[a]!=null)if(a==="style"){var s=l[a];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(rr.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var u=r[a];if(s=l!=null?l[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(rr.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&B("scroll",e),o||s===u||(o=[])):(o=o||[]).push(a,u))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}};Df=function(e,t,n,r){n!==r&&(t.flags|=4)};function $n(e,t){if(!H)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 se(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 Jh(e,t,n){var r=t.pendingProps;switch(gs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return se(t),null;case 1:return ve(t.type)&&wl(),se(t),null;case 3:return r=t.stateNode,Cn(),M(ye),M(ae),Rs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Wr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ue!==null&&(Mi(Ue),Ue=null))),ji(e,t),se(t),null;case 5:Ps(t);var l=At(mr.current);if(n=t.type,e!==null&&t.stateNode!=null)zf(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 se(t),null}if(e=At(qe.current),Wr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Qe]=t,r[pr]=o,e=(t.mode&1)!==0,n){case"dialog":B("cancel",r),B("close",r);break;case"iframe":case"object":case"embed":B("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[Qe]=t,e[pr]=r,jf(e,t,!1,!1),t.stateNode=e;e:{switch(i=ii(n,r),n){case"dialog":B("cancel",e),B("close",e),l=r;break;case"iframe":case"object":case"embed":B("load",e),l=r;break;case"video":case"audio":for(l=0;lPn&&(t.flags|=128,r=!0,$n(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),$n(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!H)return se(t),null}else 2*J()-o.renderingStartTime>Pn&&n!==1073741824&&(t.flags|=128,r=!0,$n(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=J(),t.sibling=null,n=V.current,U(V,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return Us(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ee&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Xh(e,t){switch(gs(t),t.tag){case 1:return ve(t.type)&&wl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cn(),M(ye),M(ae),Rs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ps(t),null;case 13:if(M(V),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(V),null;case 4:return Cn(),null;case 10:return ks(t.type._context),null;case 22:case 23:return Us(),null;case 24:return null;default:return null}}var qr=!1,ue=!1,Yh=typeof WeakSet=="function"?WeakSet:Set,P=null;function dn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(e,t,r)}else n.current=null}function zi(e,t,n){try{n()}catch(r){q(e,t,r)}}var bu=!1;function Zh(e,t){if(yi=ml,e=Uc(),ys(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,s=-1,u=-1,a=0,f=0,c=e,m=null;t:for(;;){for(var w;c!==n||l!==0&&c.nodeType!==3||(s=i+l),c!==o||r!==0&&c.nodeType!==3||(u=i+r),c.nodeType===3&&(i+=c.nodeValue.length),(w=c.firstChild)!==null;)m=c,c=w;for(;;){if(c===e)break t;if(m===n&&++a===l&&(s=i),m===o&&++f===r&&(u=i),(w=c.nextSibling)!==null)break;c=m,m=c.parentNode}c=w}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(vi={focusedElem:e,selectionRange:n},ml=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;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 v=y.memoizedProps,S=y.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:Fe(t.type,v),S);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(E){q(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return y=bu,bu=!1,y}function er(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&&zi(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 Di(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 If(e){var t=e.alternate;t!==null&&(e.alternate=null,If(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qe],delete t[pr],delete t[Si],delete t[Dh],delete t[Ih])),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 Ff(e){return e.tag===5||e.tag===3||e.tag===4}function ea(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ff(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 Ii(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=gl));else if(r!==4&&(e=e.child,e!==null))for(Ii(e,t,n),e=e.sibling;e!==null;)Ii(e,t,n),e=e.sibling}function Fi(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(Fi(e,t,n),e=e.sibling;e!==null;)Fi(e,t,n),e=e.sibling}var re=null,Ae=!1;function it(e,t,n){for(n=n.child;n!==null;)Af(e,t,n),n=n.sibling}function Af(e,t,n){if(Ke&&typeof Ke.onCommitFiberUnmount=="function")try{Ke.onCommitFiberUnmount($l,n)}catch{}switch(n.tag){case 5:ue||dn(n,t);case 6:var r=re,l=Ae;re=null,it(e,t,n),re=r,Ae=l,re!==null&&(Ae?(e=re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):re.removeChild(n.stateNode));break;case 18:re!==null&&(Ae?(e=re,n=n.stateNode,e.nodeType===8?Lo(e.parentNode,n):e.nodeType===1&&Lo(e,n),ur(e)):Lo(re,n.stateNode));break;case 4:r=re,l=Ae,re=n.stateNode.containerInfo,Ae=!0,it(e,t,n),re=r,Ae=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)&&zi(n,t,i),l=l.next}while(l!==r)}it(e,t,n);break;case 1:if(!ue&&(dn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){q(n,t,s)}it(e,t,n);break;case 21:it(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,it(e,t,n),ue=r):it(e,t,n);break;default:it(e,t,n)}}function ta(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yh),t.forEach(function(r){var l=sm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ie(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*em(r/1960))-r,10e?16:e,pt===null)var r=!1;else{if(e=pt,pt=null,Ll=0,F&6)throw Error(k(331));var l=F;for(F|=4,P=e.current;P!==null;){var o=P,i=o.child;if(P.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uJ()-Fs?Bt(e,0):Is|=n),ge(e,t)}function Qf(e,t){t===0&&(e.mode&1?(t=Ur,Ur<<=1,!(Ur&130023424)&&(Ur=4194304)):t=1);var n=fe();e=rt(e,t),e!==null&&(Cr(e,t,n),ge(e,n))}function im(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qf(e,n)}function sm(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),Qf(e,n)}var Kf;Kf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ye.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,Gh(e,t,n);me=!!(e.flags&131072)}else me=!1,H&&t.flags&1048576&&Jc(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ll(e,t),e=t.pendingProps;var l=En(t,ae.current);gn(t,n),l=Os(null,t,r,e,l,n);var o=Ts();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,ve(r)?(o=!0,Sl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Cs(t),l.updater=Gl,t.stateNode=l,l._reactInternals=t,Pi(t,r,e,n),t=Oi(null,t,r,!0,o,n)):(t.tag=0,H&&o&&vs(t),ce(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ll(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=am(r),e=Fe(r,e),l){case 0:t=Ni(null,t,r,e,n);break e;case 1:t=Xu(null,t,r,e,n);break e;case 11:t=Gu(null,t,r,e,n);break e;case 14:t=Ju(null,t,r,Fe(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:Fe(r,l),Ni(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Fe(r,l),Xu(e,t,r,l,n);case 3:e:{if(Of(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,tf(e,t),_l(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=_n(Error(k(423)),t),t=Yu(e,t,r,n,l);break e}else if(r!==l){l=_n(Error(k(424)),t),t=Yu(e,t,r,n,l);break e}else for(ke=gt(t.stateNode.containerInfo.firstChild),xe=t,H=!0,Ue=null,n=bc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(kn(),r===l){t=lt(e,t,n);break e}ce(e,t,r,n)}t=t.child}return t;case 5:return nf(t),e===null&&xi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,gi(r,l)?i=null:o!==null&&gi(r,o)&&(t.flags|=32),Nf(e,t),ce(e,t,i,n),t.child;case 6:return e===null&&xi(t),null;case 13:return Tf(e,t,n);case 4:return _s(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xn(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:Fe(r,l),Gu(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,U(xl,r._currentValue),r._currentValue=i,o!==null)if($e(o.value,i)){if(o.children===l.children&&!ye.current){t=lt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=et(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Ci(o.return,n,t),s.lanes|=n;break}u=u.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,s=i.alternate,s!==null&&(s.lanes|=n),Ci(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,gn(t,n),l=je(l),r=r(l),t.flags|=1,ce(e,t,r,n),t.child;case 14:return r=t.type,l=Fe(r,t.pendingProps),l=Fe(r.type,l),Ju(e,t,r,l,n);case 15:return Pf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Fe(r,l),ll(e,t),t.tag=1,ve(r)?(e=!0,Sl(t)):e=!1,gn(t,n),xf(t,r,l),Pi(t,r,l,n),Oi(null,t,r,!0,e,n);case 19:return Lf(e,t,n);case 22:return Rf(e,t,n)}throw Error(k(156,t.tag))};function qf(e,t){return wc(e,t)}function um(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 Te(e,t,n,r){return new um(e,t,n,r)}function Ms(e){return e=e.prototype,!(!e||!e.isReactComponent)}function am(e){if(typeof e=="function")return Ms(e)?1:0;if(e!=null){if(e=e.$$typeof,e===os)return 11;if(e===is)return 14}return 2}function kt(e,t){var n=e.alternate;return n===null?(n=Te(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 sl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Ms(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case nn:return Mt(n.children,l,o,t);case ls:i=8,l|=8;break;case Xo:return e=Te(12,n,t,l|2),e.elementType=Xo,e.lanes=o,e;case Yo:return e=Te(13,n,t,l),e.elementType=Yo,e.lanes=o,e;case Zo:return e=Te(19,n,t,l),e.elementType=Zo,e.lanes=o,e;case nc:return Yl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ec:i=10;break e;case tc:i=9;break e;case os:i=11;break e;case is:i=14;break e;case ut:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Te(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Mt(e,t,n,r){return e=Te(7,e,r,t),e.lanes=n,e}function Yl(e,t,n,r){return e=Te(22,e,r,t),e.elementType=nc,e.lanes=n,e.stateNode={isHidden:!1},e}function Bo(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function Mo(e,t,n){return t=Te(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cm(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=So(0),this.expirationTimes=So(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=So(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function $s(e,t,n,r,l,o,i,s,u){return e=new cm(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Te(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cs(o),e}function fm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yf)}catch(e){console.error(e)}}Yf(),Xa.exports=Pe;var ym=Xa.exports,Zf,aa=ym;Zf=aa.createRoot,aa.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 Sr(){return Sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Zf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gm(){return Math.random().toString(36).substr(2,8)}function ca(e,t){return{usr:e.state,key:e.key,idx:t}}function $i(e,t,n,r){return n===void 0&&(n=null),Sr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Tn(t):t,{state:n,key:t&&t.key||r||gm()})}function Dl(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 Tn(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 wm(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,s=ht.Pop,u=null,a=f();a==null&&(a=0,i.replaceState(Sr({},i.state,{idx:a}),""));function f(){return(i.state||{idx:null}).idx}function c(){s=ht.Pop;let S=f(),p=S==null?null:S-a;a=S,u&&u({action:s,location:v.location,delta:p})}function m(S,p){s=ht.Push;let d=$i(v.location,S,p);a=f()+1;let h=ca(d,a),E=v.createHref(d);try{i.pushState(h,"",E)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;l.location.assign(E)}o&&u&&u({action:s,location:v.location,delta:1})}function w(S,p){s=ht.Replace;let d=$i(v.location,S,p);a=f();let h=ca(d,a),E=v.createHref(d);i.replaceState(h,"",E),o&&u&&u({action:s,location:v.location,delta:0})}function y(S){let p=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof S=="string"?S:Dl(S);return d=d.replace(/ $/,"%20"),Y(p,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,p)}let v={get action(){return s},get location(){return e(l,i)},listen(S){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(aa,c),u=S,()=>{l.removeEventListener(aa,c),u=null}},createHref(S){return t(l,S)},createURL:y,encodeLocation(S){let p=y(S);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:m,replace:w,go(S){return i.go(S)}};return v}var fa;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fa||(fa={}));function Sm(e,t,n){return n===void 0&&(n="/"),Em(e,t,n,!1)}function Em(e,t,n,r){let l=typeof t=="string"?Tn(t):t,o=Qs(l.pathname||"/",n);if(o==null)return null;let i=bf(e);km(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(Y(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let a=xt([r,u.relativePath]),f=n.concat(u);o.children&&o.children.length>0&&(Y(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),bf(o.children,t,f,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Om(a,o.index),routesMeta:f})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))l(o,i);else for(let u of ed(o.path))l(o,i,u)}),t}function ed(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=ed(r.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function km(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Tm(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xm=/^:[\w-]+$/,Cm=3,_m=2,Pm=1,Rm=10,Nm=-2,da=e=>e==="*";function Om(e,t){let n=e.split("/"),r=n.length;return n.some(da)&&(r+=Nm),t&&(r+=_m),n.filter(l=>!da(l)).reduce((l,o)=>l+(xm.test(o)?Cm:o===""?Pm:Rm),r)}function Tm(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 Lm(e,t,n){let{routesMeta:r}=e,l={},o="/",i=[];for(let s=0;s{let{paramName:m,isOptional:w}=f;if(m==="*"){let v=s[c]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const y=s[c];return w&&!y?a[m]=void 0:a[m]=(y||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function jm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Zf(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,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function zm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Zf(!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 Qs(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 Dm(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Tn(e):e;return{pathname:n?n.startsWith("/")?n:Im(n,t):t,search:Um(r),hash:Bm(l)}}function Im(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 $o(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 Fm(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function td(e,t){let n=Fm(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function nd(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Tn(e):(l=Sr({},e),Y(!l.pathname||!l.pathname.includes("?"),$o("?","pathname","search",l)),Y(!l.pathname||!l.pathname.includes("#"),$o("#","pathname","hash",l)),Y(!l.search||!l.search.includes("#"),$o("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,s;if(i==null)s=n;else{let c=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),c-=1;l.pathname=m.join("/")}s=c>=0?t[c]:"/"}let u=Dm(l,s),a=i&&i!=="/"&&i.endsWith("/"),f=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||f)&&(u.pathname+="/"),u}const xt=e=>e.join("/").replace(/\/\/+/g,"/"),Am=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Um=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Bm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Mm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rd=["post","put","patch","delete"];new Set(rd);const $m=["get",...rd];new Set($m);/** + */function Sr(){return Sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Qs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gm(){return Math.random().toString(36).substr(2,8)}function fa(e,t){return{usr:e.state,key:e.key,idx:t}}function $i(e,t,n,r){return n===void 0&&(n=null),Sr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Xt(t):t,{state:n,key:t&&t.key||r||gm()})}function Dl(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 Xt(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 wm(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,s=ht.Pop,u=null,a=f();a==null&&(a=0,i.replaceState(Sr({},i.state,{idx:a}),""));function f(){return(i.state||{idx:null}).idx}function c(){s=ht.Pop;let S=f(),p=S==null?null:S-a;a=S,u&&u({action:s,location:v.location,delta:p})}function m(S,p){s=ht.Push;let d=$i(v.location,S,p);n&&n(d,S),a=f()+1;let h=fa(d,a),E=v.createHref(d);try{i.pushState(h,"",E)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;l.location.assign(E)}o&&u&&u({action:s,location:v.location,delta:1})}function w(S,p){s=ht.Replace;let d=$i(v.location,S,p);n&&n(d,S),a=f();let h=fa(d,a),E=v.createHref(d);i.replaceState(h,"",E),o&&u&&u({action:s,location:v.location,delta:0})}function y(S){let p=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof S=="string"?S:Dl(S);return d=d.replace(/ $/,"%20"),Y(p,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,p)}let v={get action(){return s},get location(){return e(l,i)},listen(S){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(ca,c),u=S,()=>{l.removeEventListener(ca,c),u=null}},createHref(S){return t(l,S)},createURL:y,encodeLocation(S){let p=y(S);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:m,replace:w,go(S){return i.go(S)}};return v}var da;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(da||(da={}));function Sm(e,t,n){return n===void 0&&(n="/"),Em(e,t,n,!1)}function Em(e,t,n,r){let l=typeof t=="string"?Xt(t):t,o=Ks(l.pathname||"/",n);if(o==null)return null;let i=bf(e);km(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(Y(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let a=xt([r,u.relativePath]),f=n.concat(u);o.children&&o.children.length>0&&(Y(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),bf(o.children,t,f,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Om(a,o.index),routesMeta:f})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))l(o,i);else for(let u of ed(o.path))l(o,i,u)}),t}function ed(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=ed(r.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function km(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Tm(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xm=/^:[\w-]+$/,Cm=3,_m=2,Pm=1,Rm=10,Nm=-2,pa=e=>e==="*";function Om(e,t){let n=e.split("/"),r=n.length;return n.some(pa)&&(r+=Nm),t&&(r+=_m),n.filter(l=>!pa(l)).reduce((l,o)=>l+(xm.test(o)?Cm:o===""?Pm:Rm),r)}function Tm(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 Lm(e,t,n){let{routesMeta:r}=e,l={},o="/",i=[];for(let s=0;s{let{paramName:m,isOptional:w}=f;if(m==="*"){let v=s[c]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const y=s[c];return w&&!y?a[m]=void 0:a[m]=(y||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function jm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Qs(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,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function zm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Qs(!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 Ks(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 Dm(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Xt(e):e;return{pathname:n?n.startsWith("/")?n:Im(n,t):t,search:Um(r),hash:Bm(l)}}function Im(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 $o(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 Fm(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function td(e,t){let n=Fm(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function nd(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Xt(e):(l=Sr({},e),Y(!l.pathname||!l.pathname.includes("?"),$o("?","pathname","search",l)),Y(!l.pathname||!l.pathname.includes("#"),$o("#","pathname","hash",l)),Y(!l.search||!l.search.includes("#"),$o("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,s;if(i==null)s=n;else{let c=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),c-=1;l.pathname=m.join("/")}s=c>=0?t[c]:"/"}let u=Dm(l,s),a=i&&i!=="/"&&i.endsWith("/"),f=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||f)&&(u.pathname+="/"),u}const xt=e=>e.join("/").replace(/\/\/+/g,"/"),Am=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Um=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Bm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Mm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rd=["post","put","patch","delete"];new Set(rd);const $m=["get",...rd];new Set($m);/** * 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 Er(){return Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),C.useCallback(function(a,f){if(f===void 0&&(f={}),!s.current)return;if(typeof a=="number"){r.go(a);return}let c=nd(a,JSON.parse(i),o,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:xt([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,i,o,e])}function Qm(){let{matches:e}=C.useContext(Ot),t=e[e.length-1];return t?t.params:{}}function id(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=C.useContext(Xt),{matches:l}=C.useContext(Ot),{pathname:o}=ro(),i=JSON.stringify(td(l,r.v7_relativeSplatPath));return C.useMemo(()=>nd(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Km(e,t){return Gm(e,t)}function Gm(e,t,n,r){Nr()||Y(!1);let{navigator:l}=C.useContext(Xt),{matches:o}=C.useContext(Ot),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let a=ro(),f;if(t){var c;let S=typeof t=="string"?Tn(t):t;u==="/"||(c=S.pathname)!=null&&c.startsWith(u)||Y(!1),f=S}else f=a;let m=f.pathname||"/",w=m;if(u!=="/"){let S=u.replace(/^\//,"").split("/");w="/"+m.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=Sm(e,{pathname:w}),v=Zm(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:xt([u,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:xt([u,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,n,r);return t&&v?C.createElement(no.Provider,{value:{location:Er({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ht.Pop}},v):v}function qm(){let e=ny(),t=Mm(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 C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:l},n):null,null)}const Jm=C.createElement(qm,null);class Xm extends C.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?C.createElement(Ot.Provider,{value:this.props.routeContext},C.createElement(ld.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ym(e){let{routeContext:t,match:n,children:r}=e,l=C.useContext(Ks);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Ot.Provider,{value:t},r)}function Zm(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,s=(l=n)==null?void 0:l.errors;if(s!=null){let f=i.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);f>=0||Y(!1),i=i.slice(0,Math.min(i.length,f+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((f,c,m)=>{let w,y=!1,v=null,S=null;n&&(w=s&&c.route.id?s[c.route.id]:void 0,v=c.route.errorElement||Jm,u&&(a<0&&m===0?(y=!0,S=null):a===m&&(y=!0,S=c.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,m+1)),d=()=>{let h;return w?h=v:y?h=S:c.route.Component?h=C.createElement(c.route.Component,null):c.route.element?h=c.route.element:h=f,C.createElement(Ym,{match:c,routeContext:{outlet:f,matches:p,isDataRoute:n!=null},children:h})};return n&&(c.route.ErrorBoundary||c.route.errorElement||m===0)?C.createElement(Xm,{location:n.location,revalidation:n.revalidation,component:v,error:w,children:d(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):d()},null)}var sd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(sd||{}),Il=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}(Il||{});function bm(e){let t=C.useContext(Ks);return t||Y(!1),t}function ey(e){let t=C.useContext(Hm);return t||Y(!1),t}function ty(e){let t=C.useContext(Ot);return t||Y(!1),t}function ud(e){let t=ty(),n=t.matches[t.matches.length-1];return n.route.id||Y(!1),n.route.id}function ny(){var e;let t=C.useContext(ld),n=ey(Il.UseRouteError),r=ud(Il.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ry(){let{router:e}=bm(sd.UseNavigateStable),t=ud(Il.UseNavigateStable),n=C.useRef(!1);return od(()=>{n.current=!0}),C.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Er({fromRouteId:t},o)))},[e,t])}function bt(e){Y(!1)}function ly(e){let{basename:t="/",children:n=null,location:r,navigationType:l=ht.Pop,navigator:o,static:i=!1,future:s}=e;Nr()&&Y(!1);let u=t.replace(/^\/*/,"/"),a=C.useMemo(()=>({basename:u,navigator:o,static:i,future:Er({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof r=="string"&&(r=Tn(r));let{pathname:f="/",search:c="",hash:m="",state:w=null,key:y="default"}=r,v=C.useMemo(()=>{let S=Qs(f,u);return S==null?null:{location:{pathname:S,search:c,hash:m,state:w,key:y},navigationType:l}},[u,f,c,m,w,y,l]);return v==null?null:C.createElement(Xt.Provider,{value:a},C.createElement(no.Provider,{children:n,value:v}))}function oy(e){let{children:t,location:n}=e;return Km(Hi(t),n)}new Promise(()=>{});function Hi(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(r,l)=>{if(!C.isValidElement(r))return;let o=[...t,l];if(r.type===C.Fragment){n.push.apply(n,Hi(r.props.children,o));return}r.type!==bt&&Y(!1),!r.props.index||!r.props.children||Y(!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=Hi(r.props.children,o)),n.push(i)}),n}/** + */function Er(){return Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),C.useCallback(function(a,f){if(f===void 0&&(f={}),!s.current)return;if(typeof a=="number"){r.go(a);return}let c=nd(a,JSON.parse(i),o,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:xt([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,i,o,e])}function Qm(){let{matches:e}=C.useContext(Ot),t=e[e.length-1];return t?t.params:{}}function id(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=C.useContext(Yt),{matches:l}=C.useContext(Ot),{pathname:o}=ro(),i=JSON.stringify(td(l,r.v7_relativeSplatPath));return C.useMemo(()=>nd(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Km(e,t){return qm(e,t)}function qm(e,t,n,r){Nr()||Y(!1);let{navigator:l}=C.useContext(Yt),{matches:o}=C.useContext(Ot),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let a=ro(),f;if(t){var c;let S=typeof t=="string"?Xt(t):t;u==="/"||(c=S.pathname)!=null&&c.startsWith(u)||Y(!1),f=S}else f=a;let m=f.pathname||"/",w=m;if(u!=="/"){let S=u.replace(/^\//,"").split("/");w="/"+m.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=Sm(e,{pathname:w}),v=Zm(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:xt([u,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:xt([u,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,n,r);return t&&v?C.createElement(no.Provider,{value:{location:Er({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ht.Pop}},v):v}function Gm(){let e=ny(),t=Mm(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 C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:l},n):null,null)}const Jm=C.createElement(Gm,null);class Xm extends C.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?C.createElement(Ot.Provider,{value:this.props.routeContext},C.createElement(ld.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ym(e){let{routeContext:t,match:n,children:r}=e,l=C.useContext(qs);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Ot.Provider,{value:t},r)}function Zm(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,s=(l=n)==null?void 0:l.errors;if(s!=null){let f=i.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);f>=0||Y(!1),i=i.slice(0,Math.min(i.length,f+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((f,c,m)=>{let w,y=!1,v=null,S=null;n&&(w=s&&c.route.id?s[c.route.id]:void 0,v=c.route.errorElement||Jm,u&&(a<0&&m===0?(y=!0,S=null):a===m&&(y=!0,S=c.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,m+1)),d=()=>{let h;return w?h=v:y?h=S:c.route.Component?h=C.createElement(c.route.Component,null):c.route.element?h=c.route.element:h=f,C.createElement(Ym,{match:c,routeContext:{outlet:f,matches:p,isDataRoute:n!=null},children:h})};return n&&(c.route.ErrorBoundary||c.route.errorElement||m===0)?C.createElement(Xm,{location:n.location,revalidation:n.revalidation,component:v,error:w,children:d(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):d()},null)}var sd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(sd||{}),Il=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}(Il||{});function bm(e){let t=C.useContext(qs);return t||Y(!1),t}function ey(e){let t=C.useContext(Hm);return t||Y(!1),t}function ty(e){let t=C.useContext(Ot);return t||Y(!1),t}function ud(e){let t=ty(),n=t.matches[t.matches.length-1];return n.route.id||Y(!1),n.route.id}function ny(){var e;let t=C.useContext(ld),n=ey(Il.UseRouteError),r=ud(Il.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ry(){let{router:e}=bm(sd.UseNavigateStable),t=ud(Il.UseNavigateStable),n=C.useRef(!1);return od(()=>{n.current=!0}),C.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Er({fromRouteId:t},o)))},[e,t])}function en(e){Y(!1)}function ly(e){let{basename:t="/",children:n=null,location:r,navigationType:l=ht.Pop,navigator:o,static:i=!1,future:s}=e;Nr()&&Y(!1);let u=t.replace(/^\/*/,"/"),a=C.useMemo(()=>({basename:u,navigator:o,static:i,future:Er({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof r=="string"&&(r=Xt(r));let{pathname:f="/",search:c="",hash:m="",state:w=null,key:y="default"}=r,v=C.useMemo(()=>{let S=Ks(f,u);return S==null?null:{location:{pathname:S,search:c,hash:m,state:w,key:y},navigationType:l}},[u,f,c,m,w,y,l]);return v==null?null:C.createElement(Yt.Provider,{value:a},C.createElement(no.Provider,{children:n,value:v}))}function oy(e){let{children:t,location:n}=e;return Km(Hi(t),n)}new Promise(()=>{});function Hi(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(r,l)=>{if(!C.isValidElement(r))return;let o=[...t,l];if(r.type===C.Fragment){n.push.apply(n,Hi(r.props.children,o));return}r.type!==en&&Y(!1),!r.props.index||!r.props.children||Y(!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=Hi(r.props.children,o)),n.push(i)}),n}/** * React Router DOM v6.26.1 * * Copyright (c) Remix Software Inc. @@ -64,7 +64,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Vi(){return Vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function sy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uy(e,t){return e.button===0&&(!t||t==="_self")&&!sy(e)}const ay=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],cy="6";try{window.__reactRouterVersion=cy}catch{}const fy="startTransition",ha=op[fy];function dy(e){let{basename:t,children:n,future:r,window:l}=e,o=C.useRef();o.current==null&&(o.current=vm({window:l,v5Compat:!0}));let i=o.current,[s,u]=C.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},f=C.useCallback(c=>{a&&ha?ha(()=>u(c)):u(c)},[u,a]);return C.useLayoutEffect(()=>i.listen(f),[i,f]),C.createElement(ly,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const py=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lo=C.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:s,target:u,to:a,preventScrollReset:f,unstable_viewTransition:c}=t,m=iy(t,ay),{basename:w}=C.useContext(Xt),y,v=!1;if(typeof a=="string"&&hy.test(a)&&(y=a,py))try{let h=new URL(window.location.href),E=a.startsWith("//")?new URL(h.protocol+a):new URL(a),x=Qs(E.pathname,w);E.origin===h.origin&&x!=null?a=x+E.search+E.hash:v=!0}catch{}let S=Vm(a,{relative:l}),p=my(a,{replace:i,state:s,target:u,preventScrollReset:f,relative:l,unstable_viewTransition:c});function d(h){r&&r(h),h.defaultPrevented||p(h)}return C.createElement("a",Vi({},m,{href:y||S,onClick:v||o?r:d,ref:n,target:u}))});var ma;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ma||(ma={}));var ya;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ya||(ya={}));function my(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=Gs(),a=ro(),f=id(e,{relative:i});return C.useCallback(c=>{if(uy(c,n)){c.preventDefault();let m=r!==void 0?r:Dl(a)===Dl(f);u(e,{replace:m,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[a,u,f,r,l,n,e,o,i,s])}const yy="_link_kt83z_1",vy={link:yy},gy=()=>O.jsxs("div",{children:[O.jsx("h1",{children:"Home Page"}),O.jsx(lo,{to:"/products",className:vy.link,children:"Go to Breeds Page"})]});var ad={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},va=be.createContext&&be.createContext(ad),wy=["attr","size","title"];function Sy(e,t){if(e==null)return{};var n=Ey(e,t),r,l;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ey(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;tbe.createElement(t.tag,Al({key:n},t.attr),cd(t.child)))}function fd(e){return t=>be.createElement(_y,Fl({attr:Al({},e.attr)},t),cd(e.child))}function _y(e){var t=n=>{var{attr:r,size:l,title:o}=e,i=Sy(e,wy),s=l||n.size||"1em",u;return n.className&&(u=n.className),e.className&&(u=(u?u+" ":"")+e.className),be.createElement("svg",Fl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,i,{className:u,style:Al(Al({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&be.createElement("title",null,o),e.children)};return va!==void 0?be.createElement(va.Consumer,null,n=>t(n)):t(ad)}function Py(e){return fd({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"},child:[]}]})(e)}function Ry(e){return fd({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"},child:[]}]})(e)}const Ny="_breedCard_1dx5c_1",Oy="_beedTitle_1dx5c_33",Ty="_breedImage_1dx5c_49",Ly="_iconContainer_1dx5c_63",jy="_likeIcon_1dx5c_79",zy="_liked_1dx5c_99",Dy="_deleteIcon_1dx5c_107",jt={breedCard:Ny,beedTitle:Oy,breedImage:Ty,iconContainer:Ly,likeIcon:jy,liked:zy,deleteIcon:Dy},Iy={BASE_URL:"/alfa-task/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},wa=e=>{let t;const n=new Set,r=(f,c)=>{const m=typeof f=="function"?f(t):f;if(!Object.is(m,t)){const w=t;t=c??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(y=>y(t,w))}},l=()=>t,u={setState:r,getState:l,getInitialState:()=>a,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(Iy?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,l,u);return u},Fy=e=>e?wa(e):wa;var dd={exports:{}},pd={},hd={exports:{}},md={};/** + */function Vi(){return Vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function sy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uy(e,t){return e.button===0&&(!t||t==="_self")&&!sy(e)}const ay=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],cy="6";try{window.__reactRouterVersion=cy}catch{}const fy="startTransition",ma=op[fy];function dy(e){let{basename:t,children:n,future:r,window:l}=e,o=C.useRef();o.current==null&&(o.current=vm({window:l,v5Compat:!0}));let i=o.current,[s,u]=C.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},f=C.useCallback(c=>{a&&ma?ma(()=>u(c)):u(c)},[u,a]);return C.useLayoutEffect(()=>i.listen(f),[i,f]),C.createElement(ly,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const py=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lo=C.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:s,target:u,to:a,preventScrollReset:f,unstable_viewTransition:c}=t,m=iy(t,ay),{basename:w}=C.useContext(Yt),y,v=!1;if(typeof a=="string"&&hy.test(a)&&(y=a,py))try{let h=new URL(window.location.href),E=a.startsWith("//")?new URL(h.protocol+a):new URL(a),x=Ks(E.pathname,w);E.origin===h.origin&&x!=null?a=x+E.search+E.hash:v=!0}catch{}let S=Vm(a,{relative:l}),p=my(a,{replace:i,state:s,target:u,preventScrollReset:f,relative:l,unstable_viewTransition:c});function d(h){r&&r(h),h.defaultPrevented||p(h)}return C.createElement("a",Vi({},m,{href:y||S,onClick:v||o?r:d,ref:n,target:u}))});var ya;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ya||(ya={}));var va;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(va||(va={}));function my(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=Gs(),a=ro(),f=id(e,{relative:i});return C.useCallback(c=>{if(uy(c,n)){c.preventDefault();let m=r!==void 0?r:Dl(a)===Dl(f);u(e,{replace:m,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[a,u,f,r,l,n,e,o,i,s])}const yy="_link_kt83z_1",vy={link:yy},gy=()=>O.jsxs("div",{children:[O.jsx("h1",{children:"Home Page"}),O.jsx(lo,{to:"/products",className:vy.link,children:"Go to Breeds Page"})]});var ad={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ga=be.createContext&&be.createContext(ad),wy=["attr","size","title"];function Sy(e,t){if(e==null)return{};var n=Ey(e,t),r,l;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ey(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;tbe.createElement(t.tag,Al({key:n},t.attr),cd(t.child)))}function fd(e){return t=>be.createElement(_y,Fl({attr:Al({},e.attr)},t),cd(e.child))}function _y(e){var t=n=>{var{attr:r,size:l,title:o}=e,i=Sy(e,wy),s=l||n.size||"1em",u;return n.className&&(u=n.className),e.className&&(u=(u?u+" ":"")+e.className),be.createElement("svg",Fl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,i,{className:u,style:Al(Al({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&be.createElement("title",null,o),e.children)};return ga!==void 0?be.createElement(ga.Consumer,null,n=>t(n)):t(ad)}function Py(e){return fd({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"},child:[]}]})(e)}function Ry(e){return fd({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"},child:[]}]})(e)}const Ny="_breedCard_1dx5c_1",Oy="_beedTitle_1dx5c_33",Ty="_breedImage_1dx5c_49",Ly="_iconContainer_1dx5c_63",jy="_likeIcon_1dx5c_79",zy="_liked_1dx5c_99",Dy="_deleteIcon_1dx5c_107",jt={breedCard:Ny,beedTitle:Oy,breedImage:Ty,iconContainer:Ly,likeIcon:jy,liked:zy,deleteIcon:Dy},Iy={BASE_URL:"/alfa-task/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Sa=e=>{let t;const n=new Set,r=(f,c)=>{const m=typeof f=="function"?f(t):f;if(!Object.is(m,t)){const w=t;t=c??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(y=>y(t,w))}},l=()=>t,u={setState:r,getState:l,getInitialState:()=>a,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(Iy?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,l,u);return u},Fy=e=>e?Sa(e):Sa;var dd={exports:{}},pd={},hd={exports:{}},md={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -72,7 +72,7 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Pn=C;function Ay(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Uy=typeof Object.is=="function"?Object.is:Ay,By=Pn.useState,My=Pn.useEffect,$y=Pn.useLayoutEffect,Hy=Pn.useDebugValue;function Vy(e,t){var n=t(),r=By({inst:{value:n,getSnapshot:t}}),l=r[0].inst,o=r[1];return $y(function(){l.value=n,l.getSnapshot=t,Ho(l)&&o({inst:l})},[e,n,t]),My(function(){return Ho(l)&&o({inst:l}),e(function(){Ho(l)&&o({inst:l})})},[e]),Hy(n),n}function Ho(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Uy(e,n)}catch{return!0}}function Wy(e,t){return t()}var Qy=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Wy:Vy;md.useSyncExternalStore=Pn.useSyncExternalStore!==void 0?Pn.useSyncExternalStore:Qy;hd.exports=md;var Ky=hd.exports;/** + */var Rn=C;function Ay(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Uy=typeof Object.is=="function"?Object.is:Ay,By=Rn.useState,My=Rn.useEffect,$y=Rn.useLayoutEffect,Hy=Rn.useDebugValue;function Vy(e,t){var n=t(),r=By({inst:{value:n,getSnapshot:t}}),l=r[0].inst,o=r[1];return $y(function(){l.value=n,l.getSnapshot=t,Ho(l)&&o({inst:l})},[e,n,t]),My(function(){return Ho(l)&&o({inst:l}),e(function(){Ho(l)&&o({inst:l})})},[e]),Hy(n),n}function Ho(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Uy(e,n)}catch{return!0}}function Wy(e,t){return t()}var Qy=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Wy:Vy;md.useSyncExternalStore=Rn.useSyncExternalStore!==void 0?Rn.useSyncExternalStore:Qy;hd.exports=md;var Ky=hd.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -80,9 +80,9 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var oo=C,Gy=Ky;function qy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jy=typeof Object.is=="function"?Object.is:qy,Xy=Gy.useSyncExternalStore,Yy=oo.useRef,Zy=oo.useEffect,by=oo.useMemo,ev=oo.useDebugValue;pd.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var o=Yy(null);if(o.current===null){var i={hasValue:!1,value:null};o.current=i}else i=o.current;o=by(function(){function u(w){if(!a){if(a=!0,f=w,w=r(w),l!==void 0&&i.hasValue){var y=i.value;if(l(y,w))return c=y}return c=w}if(y=c,Jy(f,w))return y;var v=r(w);return l!==void 0&&l(y,v)?y:(f=w,c=v)}var a=!1,f,c,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,r,l]);var s=Xy(e,o[0],o[1]);return Zy(function(){i.hasValue=!0,i.value=s},[s]),ev(s),s};dd.exports=pd;var tv=dd.exports;const nv=Aa(tv),yd={BASE_URL:"/alfa-task/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:rv}=be,{useSyncExternalStoreWithSelector:lv}=nv;let Sa=!1;const ov=e=>e;function iv(e,t=ov,n){(yd?"production":void 0)!=="production"&&n&&!Sa&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Sa=!0);const r=lv(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return rv(r),r}const Ea=e=>{(yd?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Fy(e):e,n=(r,l)=>iv(t,r,l);return Object.assign(n,t),n},sv=e=>e?Ea(e):Ea,Yt=sv(e=>({breeds:[],images:{},setBreeds:t=>e({breeds:t}),setImages:t=>e({images:t}),likedBreeds:new Set,toggleLike:t=>e(n=>{const r=new Set(n.likedBreeds);return r.has(t)?r.delete(t):r.add(t),{likedBreeds:r}}),filter:"all",setFilter:t=>e({filter:t}),removeBreed:t=>e(n=>({breeds:n.breeds.filter(r=>r!==t),images:Object.fromEntries(Object.entries(n.images).filter(([r])=>r!==t)),likedBreeds:new Set([...n.likedBreeds].filter(r=>r!==t))})),dataLoaded:!1,markDataAsLoaded:()=>e({dataLoaded:!0}),addBreed:(t,n)=>e(r=>({breeds:[...r.breeds,t],images:{...r.images,[t]:n}}))})),uv=({breedName:e,imageUrl:t})=>{const{likedBreeds:n,toggleLike:r,removeBreed:l}=Yt(),o=n.has(e),i=u=>{u.preventDefault(),r(e)},s=u=>{u.preventDefault(),l(e)};return O.jsxs(lo,{to:`/products/${e}`,className:jt.breedCard,children:[O.jsx("h2",{className:jt.beedTitle,children:e}),t&&O.jsx("img",{src:t,alt:e,className:jt.breedImage}),O.jsxs("div",{className:jt.iconContainer,children:[O.jsx("div",{className:`${jt.likeIcon} ${o?jt.liked:""}`,onClick:i,children:O.jsx(Py,{})}),O.jsx("div",{className:jt.deleteIcon,onClick:s,children:O.jsx(Ry,{})})]})]})},av="_breedListContainer_llol6_1",cv={breedListContainer:av},fv=({breeds:e,images:t})=>{const{likedBreeds:n,filter:r}=Yt(),l=r==="liked"?e.filter(o=>n.has(o)):e;return O.jsx("div",{className:cv.breedListContainer,children:l&&l.map(o=>O.jsx(uv,{breedName:o,imageUrl:t&&t[o]},o))})},dv="_filterContainer_17h0f_1",pv="_activeButton_17h0f_43",Vo={filterContainer:dv,activeButton:pv},hv=()=>{const{filter:e,setFilter:t}=Yt();return O.jsxs("div",{className:Vo.filterContainer,children:[O.jsx("button",{className:e==="all"?Vo.activeButton:"",onClick:()=>t("all"),children:"All"}),O.jsx("button",{className:e==="liked"?Vo.activeButton:"",onClick:()=>t("liked"),children:"Liked"})]})};function vd(e,t){return function(){return e.apply(t,arguments)}}const{toString:mv}=Object.prototype,{getPrototypeOf:qs}=Object,io=(e=>t=>{const n=mv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),He=e=>(e=e.toLowerCase(),t=>io(t)===e),so=e=>t=>typeof t===e,{isArray:Ln}=Array,kr=so("undefined");function yv(e){return e!==null&&!kr(e)&&e.constructor!==null&&!kr(e.constructor)&&Ce(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gd=He("ArrayBuffer");function vv(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gd(e.buffer),t}const gv=so("string"),Ce=so("function"),wd=so("number"),uo=e=>e!==null&&typeof e=="object",wv=e=>e===!0||e===!1,ul=e=>{if(io(e)!=="object")return!1;const t=qs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Sv=He("Date"),Ev=He("File"),kv=He("Blob"),xv=He("FileList"),Cv=e=>uo(e)&&Ce(e.pipe),_v=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ce(e.append)&&((t=io(e))==="formdata"||t==="object"&&Ce(e.toString)&&e.toString()==="[object FormData]"))},Pv=He("URLSearchParams"),[Rv,Nv,Ov,Tv]=["ReadableStream","Request","Response","Headers"].map(He),Lv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Or(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),Ln(e))for(r=0,l=e.length;r0;)if(l=n[r],t===l.toLowerCase())return l;return null}const Ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ed=e=>!kr(e)&&e!==Ut;function Wi(){const{caseless:e}=Ed(this)&&this||{},t={},n=(r,l)=>{const o=e&&Sd(t,l)||l;ul(t[o])&&ul(r)?t[o]=Wi(t[o],r):ul(r)?t[o]=Wi({},r):Ln(r)?t[o]=r.slice():t[o]=r};for(let r=0,l=arguments.length;r(Or(t,(l,o)=>{n&&Ce(l)?e[o]=vd(l,n):e[o]=l},{allOwnKeys:r}),e),zv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Dv=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Iv=(e,t,n,r)=>{let l,o,i;const s={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)i=l[o],(!r||r(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&qs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Fv=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Av=e=>{if(!e)return null;if(Ln(e))return e;let t=e.length;if(!wd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Uv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&qs(Uint8Array)),Bv=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},Mv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$v=He("HTMLFormElement"),Hv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),ka=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Vv=He("RegExp"),kd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Or(n,(l,o)=>{let i;(i=t(l,o,e))!==!1&&(r[o]=i||l)}),Object.defineProperties(e,r)},Wv=e=>{kd(e,(t,n)=>{if(Ce(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ce(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Qv=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return Ln(e)?r(e):r(String(e).split(t)),n},Kv=()=>{},Gv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Wo="abcdefghijklmnopqrstuvwxyz",xa="0123456789",xd={DIGIT:xa,ALPHA:Wo,ALPHA_DIGIT:Wo+Wo.toUpperCase()+xa},qv=(e=16,t=xd.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Jv(e){return!!(e&&Ce(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Xv=e=>{const t=new Array(10),n=(r,l)=>{if(uo(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const o=Ln(r)?[]:{};return Or(r,(i,s)=>{const u=n(i,l+1);!kr(u)&&(o[s]=u)}),t[l]=void 0,o}}return r};return n(e,0)},Yv=He("AsyncFunction"),Zv=e=>e&&(uo(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),Cd=((e,t)=>e?setImmediate:t?((n,r)=>(Ut.addEventListener("message",({source:l,data:o})=>{l===Ut&&o===n&&r.length&&r.shift()()},!1),l=>{r.push(l),Ut.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ce(Ut.postMessage)),bv=typeof queueMicrotask<"u"?queueMicrotask.bind(Ut):typeof process<"u"&&process.nextTick||Cd,g={isArray:Ln,isArrayBuffer:gd,isBuffer:yv,isFormData:_v,isArrayBufferView:vv,isString:gv,isNumber:wd,isBoolean:wv,isObject:uo,isPlainObject:ul,isReadableStream:Rv,isRequest:Nv,isResponse:Ov,isHeaders:Tv,isUndefined:kr,isDate:Sv,isFile:Ev,isBlob:kv,isRegExp:Vv,isFunction:Ce,isStream:Cv,isURLSearchParams:Pv,isTypedArray:Uv,isFileList:xv,forEach:Or,merge:Wi,extend:jv,trim:Lv,stripBOM:zv,inherits:Dv,toFlatObject:Iv,kindOf:io,kindOfTest:He,endsWith:Fv,toArray:Av,forEachEntry:Bv,matchAll:Mv,isHTMLForm:$v,hasOwnProperty:ka,hasOwnProp:ka,reduceDescriptors:kd,freezeMethods:Wv,toObjectSet:Qv,toCamelCase:Hv,noop:Kv,toFiniteNumber:Gv,findKey:Sd,global:Ut,isContextDefined:Ed,ALPHABET:xd,generateString:qv,isSpecCompliantForm:Jv,toJSONObject:Xv,isAsyncFn:Yv,isThenable:Zv,setImmediate:Cd,asap:bv};function L(e,t,n,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l,this.status=l.status?l.status:null)}g.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:g.toJSONObject(this.config),code:this.code,status:this.status}}});const _d=L.prototype,Pd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Pd[e]={value:e}});Object.defineProperties(L,Pd);Object.defineProperty(_d,"isAxiosError",{value:!0});L.from=(e,t,n,r,l,o)=>{const i=Object.create(_d);return g.toFlatObject(e,i,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),L.call(i,e.message,t,n,r,l),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const e0=null;function Qi(e){return g.isPlainObject(e)||g.isArray(e)}function Rd(e){return g.endsWith(e,"[]")?e.slice(0,-2):e}function Ca(e,t,n){return e?e.concat(t).map(function(l,o){return l=Rd(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function t0(e){return g.isArray(e)&&!e.some(Qi)}const n0=g.toFlatObject(g,{},null,function(t){return/^is[A-Z]/.test(t)});function ao(e,t,n){if(!g.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=g.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,S){return!g.isUndefined(S[v])});const r=n.metaTokens,l=n.visitor||f,o=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(t);if(!g.isFunction(l))throw new TypeError("visitor must be a function");function a(y){if(y===null)return"";if(g.isDate(y))return y.toISOString();if(!u&&g.isBlob(y))throw new L("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(y)||g.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,v,S){let p=y;if(y&&!S&&typeof y=="object"){if(g.endsWith(v,"{}"))v=r?v:v.slice(0,-2),y=JSON.stringify(y);else if(g.isArray(y)&&t0(y)||(g.isFileList(y)||g.endsWith(v,"[]"))&&(p=g.toArray(y)))return v=Rd(v),p.forEach(function(h,E){!(g.isUndefined(h)||h===null)&&t.append(i===!0?Ca([v],E,o):i===null?v:v+"[]",a(h))}),!1}return Qi(y)?!0:(t.append(Ca(S,v,o),a(y)),!1)}const c=[],m=Object.assign(n0,{defaultVisitor:f,convertValue:a,isVisitable:Qi});function w(y,v){if(!g.isUndefined(y)){if(c.indexOf(y)!==-1)throw Error("Circular reference detected in "+v.join("."));c.push(y),g.forEach(y,function(p,d){(!(g.isUndefined(p)||p===null)&&l.call(t,p,g.isString(d)?d.trim():d,v,m))===!0&&w(p,v?v.concat(d):[d])}),c.pop()}}if(!g.isObject(e))throw new TypeError("data must be an object");return w(e),t}function _a(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Js(e,t){this._pairs=[],e&&ao(e,this,t)}const Nd=Js.prototype;Nd.append=function(t,n){this._pairs.push([t,n])};Nd.toString=function(t){const n=t?function(r){return t.call(this,r,_a)}:_a;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function r0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Od(e,t,n){if(!t)return e;const r=n&&n.encode||r0,l=n&&n.serialize;let o;if(l?o=l(t,n):o=g.isURLSearchParams(t)?t.toString():new Js(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Pa{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){g.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Td={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},l0=typeof URLSearchParams<"u"?URLSearchParams:Js,o0=typeof FormData<"u"?FormData:null,i0=typeof Blob<"u"?Blob:null,s0={isBrowser:!0,classes:{URLSearchParams:l0,FormData:o0,Blob:i0},protocols:["http","https","file","blob","url","data"]},Xs=typeof window<"u"&&typeof document<"u",Ki=typeof navigator=="object"&&navigator||void 0,u0=Xs&&(!Ki||["ReactNative","NativeScript","NS"].indexOf(Ki.product)<0),a0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",c0=Xs&&window.location.href||"http://localhost",f0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xs,hasStandardBrowserEnv:u0,hasStandardBrowserWebWorkerEnv:a0,navigator:Ki,origin:c0},Symbol.toStringTag,{value:"Module"})),we={...f0,...s0};function d0(e,t){return ao(e,new we.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,o){return we.isNode&&g.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function p0(e){return g.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function h0(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r=n.length;return i=!i&&g.isArray(l)?l.length:i,u?(g.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!s):((!l[i]||!g.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&g.isArray(l[i])&&(l[i]=h0(l[i])),!s)}if(g.isFormData(e)&&g.isFunction(e.entries)){const n={};return g.forEachEntry(e,(r,l)=>{t(p0(r),l,n,0)}),n}return null}function m0(e,t,n){if(g.isString(e))try{return(t||JSON.parse)(e),g.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Tr={transitional:Td,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=g.isObject(t);if(o&&g.isHTMLForm(t)&&(t=new FormData(t)),g.isFormData(t))return l?JSON.stringify(Ld(t)):t;if(g.isArrayBuffer(t)||g.isBuffer(t)||g.isStream(t)||g.isFile(t)||g.isBlob(t)||g.isReadableStream(t))return t;if(g.isArrayBufferView(t))return t.buffer;if(g.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return d0(t,this.formSerializer).toString();if((s=g.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ao(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),m0(t)):t}],transformResponse:[function(t){const n=this.transitional||Tr.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(g.isResponse(t)||g.isReadableStream(t))return t;if(t&&g.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?L.from(s,L.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:we.classes.FormData,Blob:we.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],e=>{Tr.headers[e]={}});const y0=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),v0=e=>{const t={};let n,r,l;return e&&e.split(` -`).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),r=i.substring(l+1).trim(),!(!n||t[n]&&y0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ra=Symbol("internals");function Vn(e){return e&&String(e).trim().toLowerCase()}function al(e){return e===!1||e==null?e:g.isArray(e)?e.map(al):String(e)}function g0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const w0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qo(e,t,n,r,l){if(g.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!g.isString(t)){if(g.isString(r))return t.indexOf(r)!==-1;if(g.isRegExp(r))return r.test(t)}}function S0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function E0(e,t){const n=g.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,i){return this[r].call(this,t,l,o,i)},configurable:!0})})}class Se{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(s,u,a){const f=Vn(u);if(!f)throw new Error("header name must be a non-empty string");const c=g.findKey(l,f);(!c||l[c]===void 0||a===!0||a===void 0&&l[c]!==!1)&&(l[c||u]=al(s))}const i=(s,u)=>g.forEach(s,(a,f)=>o(a,f,u));if(g.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(g.isString(t)&&(t=t.trim())&&!w0(t))i(v0(t),n);else if(g.isHeaders(t))for(const[s,u]of t.entries())o(u,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Vn(t),t){const r=g.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return g0(l);if(g.isFunction(n))return n.call(this,l,r);if(g.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Vn(t),t){const r=g.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Qo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=Vn(i),i){const s=g.findKey(r,i);s&&(!n||Qo(r,r[s],s,n))&&(delete r[s],l=!0)}}return g.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||Qo(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return g.forEach(this,(l,o)=>{const i=g.findKey(r,o);if(i){n[i]=al(l),delete n[o];return}const s=t?S0(o):String(o).trim();s!==o&&delete n[o],n[s]=al(l),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return g.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&g.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[Ra]=this[Ra]={accessors:{}}).accessors,l=this.prototype;function o(i){const s=Vn(i);r[s]||(E0(l,i),r[s]=!0)}return g.isArray(t)?t.forEach(o):o(t),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);g.reduceDescriptors(Se.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});g.freezeMethods(Se);function Ko(e,t){const n=this||Tr,r=t||n,l=Se.from(r.headers);let o=r.data;return g.forEach(e,function(s){o=s.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function jd(e){return!!(e&&e.__CANCEL__)}function jn(e,t,n){L.call(this,e??"canceled",L.ERR_CANCELED,t,n),this.name="CanceledError"}g.inherits(jn,L,{__CANCEL__:!0});function zd(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new L("Request failed with status code "+n.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function k0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function x0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),f=r[o];i||(i=a),n[l]=u,r[l]=a;let c=o,m=0;for(;c!==l;)m+=n[c++],c=c%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),a-i{n=f,l=null,o&&(clearTimeout(o),o=null),e.apply(null,a)};return[(...a)=>{const f=Date.now(),c=f-n;c>=r?i(a,f):(l=a,o||(o=setTimeout(()=>{o=null,i(l)},r-c)))},()=>l&&i(l)]}const Ul=(e,t,n=3)=>{let r=0;const l=x0(50,250);return C0(o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,u=i-r,a=l(u),f=i<=s;r=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:a||void 0,estimated:a&&s&&f?(s-i)/a:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},n)},Na=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Oa=e=>(...t)=>g.asap(()=>e(...t)),_0=we.hasStandardBrowserEnv?function(){const t=we.navigator&&/(msie|trident)/i.test(we.navigator.userAgent),n=document.createElement("a");let r;function l(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=l(window.location.href),function(i){const s=g.isString(i)?l(i):i;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),P0=we.hasStandardBrowserEnv?{write(e,t,n,r,l,o){const i=[e+"="+encodeURIComponent(t)];g.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),g.isString(r)&&i.push("path="+r),g.isString(l)&&i.push("domain="+l),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function R0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function N0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Dd(e,t){return e&&!R0(t)?N0(e,t):t}const Ta=e=>e instanceof Se?{...e}:e;function Gt(e,t){t=t||{};const n={};function r(a,f,c){return g.isPlainObject(a)&&g.isPlainObject(f)?g.merge.call({caseless:c},a,f):g.isPlainObject(f)?g.merge({},f):g.isArray(f)?f.slice():f}function l(a,f,c){if(g.isUndefined(f)){if(!g.isUndefined(a))return r(void 0,a,c)}else return r(a,f,c)}function o(a,f){if(!g.isUndefined(f))return r(void 0,f)}function i(a,f){if(g.isUndefined(f)){if(!g.isUndefined(a))return r(void 0,a)}else return r(void 0,f)}function s(a,f,c){if(c in t)return r(a,f);if(c in e)return r(void 0,a)}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(a,f)=>l(Ta(a),Ta(f),!0)};return g.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=u[f]||l,m=c(e[f],t[f],f);g.isUndefined(m)&&c!==s||(n[f]=m)}),n}const Id=e=>{const t=Gt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:l,xsrfCookieName:o,headers:i,auth:s}=t;t.headers=i=Se.from(i),t.url=Od(Dd(t.baseURL,t.url),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let u;if(g.isFormData(n)){if(we.hasStandardBrowserEnv||we.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[a,...f]=u?u.split(";").map(c=>c.trim()).filter(Boolean):[];i.setContentType([a||"multipart/form-data",...f].join("; "))}}if(we.hasStandardBrowserEnv&&(r&&g.isFunction(r)&&(r=r(t)),r||r!==!1&&_0(t.url))){const a=l&&o&&P0.read(o);a&&i.set(l,a)}return t},O0=typeof XMLHttpRequest<"u",T0=O0&&function(e){return new Promise(function(n,r){const l=Id(e);let o=l.data;const i=Se.from(l.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:a}=l,f,c,m,w,y;function v(){w&&w(),y&&y(),l.cancelToken&&l.cancelToken.unsubscribe(f),l.signal&&l.signal.removeEventListener("abort",f)}let S=new XMLHttpRequest;S.open(l.method.toUpperCase(),l.url,!0),S.timeout=l.timeout;function p(){if(!S)return;const h=Se.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:h,config:e,request:S};zd(function(R){n(R),v()},function(R){r(R),v()},x),S=null}"onloadend"in S?S.onloadend=p:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(p)},S.onabort=function(){S&&(r(new L("Request aborted",L.ECONNABORTED,e,S)),S=null)},S.onerror=function(){r(new L("Network Error",L.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){let E=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const x=l.transitional||Td;l.timeoutErrorMessage&&(E=l.timeoutErrorMessage),r(new L(E,x.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,e,S)),S=null},o===void 0&&i.setContentType(null),"setRequestHeader"in S&&g.forEach(i.toJSON(),function(E,x){S.setRequestHeader(x,E)}),g.isUndefined(l.withCredentials)||(S.withCredentials=!!l.withCredentials),s&&s!=="json"&&(S.responseType=l.responseType),a&&([m,y]=Ul(a,!0),S.addEventListener("progress",m)),u&&S.upload&&([c,w]=Ul(u),S.upload.addEventListener("progress",c),S.upload.addEventListener("loadend",w)),(l.cancelToken||l.signal)&&(f=h=>{S&&(r(!h||h.type?new jn(null,e,S):h),S.abort(),S=null)},l.cancelToken&&l.cancelToken.subscribe(f),l.signal&&(l.signal.aborted?f():l.signal.addEventListener("abort",f)));const d=k0(l.url);if(d&&we.protocols.indexOf(d)===-1){r(new L("Unsupported protocol "+d+":",L.ERR_BAD_REQUEST,e));return}S.send(o||null)})},L0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,l;const o=function(a){if(!l){l=!0,s();const f=a instanceof Error?a:this.reason;r.abort(f instanceof L?f:new jn(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,o(new L(`timeout ${t} of ms exceeded`,L.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(o):a.removeEventListener("abort",o)}),e=null)};e.forEach(a=>a.addEventListener("abort",o));const{signal:u}=r;return u.unsubscribe=()=>g.asap(s),u}},j0=function*(e,t){let n=e.byteLength;if(!t||n{const l=z0(e,t);let o=0,i,s=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:a,value:f}=await l.next();if(a){s(),u.close();return}let c=f.byteLength;if(n){let m=o+=c;n(m)}u.enqueue(new Uint8Array(f))}catch(a){throw s(a),a}},cancel(u){return s(u),l.return()}},{highWaterMark:2})},co=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fd=co&&typeof ReadableStream=="function",I0=co&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ad=(e,...t)=>{try{return!!e(...t)}catch{return!1}},F0=Fd&&Ad(()=>{let e=!1;const t=new Request(we.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ja=64*1024,Gi=Fd&&Ad(()=>g.isReadableStream(new Response("").body)),Bl={stream:Gi&&(e=>e.body)};co&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Bl[t]&&(Bl[t]=g.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new L(`Response type '${t}' is not supported`,L.ERR_NOT_SUPPORT,r)})})})(new Response);const A0=async e=>{if(e==null)return 0;if(g.isBlob(e))return e.size;if(g.isSpecCompliantForm(e))return(await new Request(we.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(g.isArrayBufferView(e)||g.isArrayBuffer(e))return e.byteLength;if(g.isURLSearchParams(e)&&(e=e+""),g.isString(e))return(await I0(e)).byteLength},U0=async(e,t)=>{const n=g.toFiniteNumber(e.getContentLength());return n??A0(t)},B0=co&&(async e=>{let{url:t,method:n,data:r,signal:l,cancelToken:o,timeout:i,onDownloadProgress:s,onUploadProgress:u,responseType:a,headers:f,withCredentials:c="same-origin",fetchOptions:m}=Id(e);a=a?(a+"").toLowerCase():"text";let w=L0([l,o&&o.toAbortSignal()],i),y;const v=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let S;try{if(u&&F0&&n!=="get"&&n!=="head"&&(S=await U0(f,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),_;if(g.isFormData(r)&&(_=x.headers.get("content-type"))&&f.setContentType(_),x.body){const[R,T]=Na(S,Ul(Oa(u)));r=La(x.body,ja,R,T)}}g.isString(c)||(c=c?"include":"omit");const p="credentials"in Request.prototype;y=new Request(t,{...m,signal:w,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:p?c:void 0});let d=await fetch(y);const h=Gi&&(a==="stream"||a==="response");if(Gi&&(s||h&&v)){const x={};["status","statusText","headers"].forEach($=>{x[$]=d[$]});const _=g.toFiniteNumber(d.headers.get("content-length")),[R,T]=s&&Na(_,Ul(Oa(s),!0))||[];d=new Response(La(d.body,ja,R,()=>{T&&T(),v&&v()}),x)}a=a||"text";let E=await Bl[g.findKey(Bl,a)||"text"](d,e);return!h&&v&&v(),await new Promise((x,_)=>{zd(x,_,{data:E,headers:Se.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:y})})}catch(p){throw v&&v(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new L("Network Error",L.ERR_NETWORK,e,y),{cause:p.cause||p}):L.from(p,p&&p.code,e,y)}}),qi={http:e0,xhr:T0,fetch:B0};g.forEach(qi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const za=e=>`- ${e}`,M0=e=>g.isFunction(e)||e===null||e===!1,Ud={getAdapter:e=>{e=g.isArray(e)?e:[e];const{length:t}=e;let n,r;const l={};for(let o=0;o`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : -`+o.map(za).join(` -`):" "+za(o[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:qi};function Go(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new jn(null,e)}function Da(e){return Go(e),e.headers=Se.from(e.headers),e.data=Ko.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ud.getAdapter(e.adapter||Tr.adapter)(e).then(function(r){return Go(e),r.data=Ko.call(e,e.transformResponse,r),r.headers=Se.from(r.headers),r},function(r){return jd(r)||(Go(e),r&&r.response&&(r.response.data=Ko.call(e,e.transformResponse,r.response),r.response.headers=Se.from(r.response.headers))),Promise.reject(r)})}const Bd="1.7.7",Ys={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ys[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ia={};Ys.transitional=function(t,n,r){function l(o,i){return"[Axios v"+Bd+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,s)=>{if(t===!1)throw new L(l(i," has been removed"+(n?" in "+n:"")),L.ERR_DEPRECATED);return n&&!Ia[i]&&(Ia[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,s):!0}};function $0(e,t,n){if(typeof e!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],i=t[o];if(i){const s=e[o],u=s===void 0||i(s,o,e);if(u!==!0)throw new L("option "+o+" must be "+u,L.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new L("Unknown option "+o,L.ERR_BAD_OPTION)}}const Ji={assertOptions:$0,validators:Ys},st=Ji.validators;class $t{constructor(t){this.defaults=t,this.interceptors={request:new Pa,response:new Pa}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;const o=l.stack?l.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Gt(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&Ji.assertOptions(r,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),l!=null&&(g.isFunction(l)?n.paramsSerializer={serialize:l}:Ji.assertOptions(l,{encode:st.function,serialize:st.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&g.merge(o.common,o[n.method]);o&&g.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Se.concat(i,o);const s=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(u=u&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const a=[];this.interceptors.response.forEach(function(v){a.push(v.fulfilled,v.rejected)});let f,c=0,m;if(!u){const y=[Da.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,a),m=y.length,f=Promise.resolve(n);c{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const i=new Promise(s=>{r.subscribe(s),o=s}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,s){r.reason||(r.reason=new jn(o,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Zs(function(l){t=l}),cancel:t}}}function H0(e){return function(n){return e.apply(null,n)}}function V0(e){return g.isObject(e)&&e.isAxiosError===!0}const Xi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xi).forEach(([e,t])=>{Xi[t]=e});function Md(e){const t=new $t(e),n=vd($t.prototype.request,t);return g.extend(n,$t.prototype,t,{allOwnKeys:!0}),g.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Md(Gt(e,l))},n}const K=Md(Tr);K.Axios=$t;K.CanceledError=jn;K.CancelToken=Zs;K.isCancel=jd;K.VERSION=Bd;K.toFormData=ao;K.AxiosError=L;K.Cancel=K.CanceledError;K.all=function(t){return Promise.all(t)};K.spread=H0;K.isAxiosError=V0;K.mergeConfig=Gt;K.AxiosHeaders=Se;K.formToJSON=e=>Ld(g.isHTMLForm(e)?new FormData(e):e);K.getAdapter=Ud.getAdapter;K.HttpStatusCode=Xi;K.default=K;const Fa="https://dog.ceo/api/",$d={DOGS_API_URL:Fa,DOG_BREEDS_LIST:`${Fa}breeds/list/all`},W0=async()=>{try{return(await K.get($d.DOG_BREEDS_LIST)).data.message}catch(e){throw K.isAxiosError(e)?new Error(e.message):new Error("An unexpected error occurred")}},Q0=async e=>{try{return(await K.get(`${$d.DOGS_API_URL}breed/${e}/images/random`)).data}catch(t){throw K.isAxiosError(t)?new Error(t.message):new Error("An unexpected error occurred")}},K0=()=>{const{setBreeds:e,setImages:t,dataLoaded:n,markDataAsLoaded:r}=Yt();return C.useEffect(()=>{n||(async()=>{try{const o=await W0(),i=Object.keys(o).slice(0,12);e(i);const s=i.map(f=>Q0(f).then(c=>({breed:f,imageUrl:c.message}))),a=(await Promise.all(s)).reduce((f,{breed:c,imageUrl:m})=>(f[c]=m,f),{});t(a),r()}catch(o){console.error("Error fetching data:",o)}})()},[n,e,t,r]),null},G0="_addButton_1hoys_1",q0={addButton:G0},J0=()=>{const e=Gs(),t=()=>{e("/create-product")};return O.jsx("button",{onClick:t,className:q0.addButton,children:"Add Product"})};function X0(){const{breeds:e,images:t}=Yt();return O.jsxs(O.Fragment,{children:[O.jsx("h1",{children:"Dog Breeds"}),O.jsxs("div",{children:[O.jsx(hv,{}),O.jsx(J0,{})]}),O.jsx(K0,{}),e&&t&&Object.keys(t).length>0?O.jsx(fv,{breeds:e,images:t}):O.jsx("p",{children:"No breeds available or images not loaded."})]})}const Y0=()=>O.jsx("div",{children:O.jsx("h1",{children:"404 - Page Not Found"})}),Z0="_detailContainer_gjzfb_1",b0="_detailTitle_gjzfb_15",eg="_breedImage_gjzfb_27",tg="_breedDetail_gjzfb_45",qo={detailContainer:Z0,detailTitle:b0,breedImage:eg,breedDetail:tg},ng=()=>{const{breedName:e}=Qm(),{images:t}=Yt();return O.jsxs(O.Fragment,{children:[O.jsx(lo,{to:"/products",children:"Go to Breeds Page"}),O.jsxs("div",{className:qo.detailContainer,children:[O.jsx("h1",{className:qo.detailTitle,children:e}),e&&t[e]&&O.jsx("img",{src:t[e],alt:e,className:qo.breedImage}),O.jsxs("p",{children:["Details page ",e,"."]})]})]})},rg="_createProductPage_rjrd5_1",lg="_form_rjrd5_13",og="_formGroup_rjrd5_23",ig="_label_rjrd5_31",sg="_input_rjrd5_41",ug="_error_rjrd5_55",ag="_submitButton_rjrd5_67",qe={createProductPage:rg,form:lg,formGroup:og,label:ig,input:sg,error:ug,submitButton:ag},cg=()=>{const[e,t]=C.useState(""),[n,r]=C.useState(""),[l,o]=C.useState({}),{addBreed:i}=Yt(),s=Gs(),u=c=>/\.(jpg|jpeg|png|gif)$/i.test(c),a=()=>{const c={};return e?/^[А-ЯA-Z]/.test(e)||(c.name="Name must start with a capital letter"):c.name="Name is required",n?u(n)||(c.imageUrl="Invalid image URL"):c.imageUrl="Image URL is required",c},f=c=>{c.preventDefault();const m=a();if(Object.keys(m).length>0){o(m);return}i(e,n),s("/products")};return O.jsxs("div",{className:qe.createProductPage,children:[O.jsx(lo,{to:"/products",children:"Go to Breeds Page"}),O.jsx("h1",{children:"Create New Product"}),O.jsxs("form",{onSubmit:f,className:qe.form,children:[O.jsxs("div",{className:qe.formGroup,children:[O.jsx("label",{htmlFor:"name",children:"Name:"}),O.jsx("input",{type:"text",id:"name",value:e,onChange:c=>t(c.target.value),className:qe.input}),l.name&&O.jsx("span",{className:qe.error,children:l.name})]}),O.jsxs("div",{className:qe.formGroup,children:[O.jsx("label",{htmlFor:"imageUrl",children:"Image URL:"}),O.jsx("input",{type:"text",id:"imageUrl",value:n,onChange:c=>r(c.target.value),className:qe.input}),l.imageUrl&&O.jsx("span",{className:qe.error,children:l.imageUrl})]}),O.jsx("button",{type:"submit",className:qe.submitButton,children:"Add Product"})]})]})};function fg(){return O.jsx(dy,{basename:"/alfa-task/",children:O.jsxs(oy,{children:[O.jsx(bt,{path:"/",element:O.jsx(gy,{})}),O.jsx(bt,{path:"/products",element:O.jsx(X0,{})}),O.jsx(bt,{path:"/products/:breedName",element:O.jsx(ng,{})}),O.jsx(bt,{path:"/create-product",element:O.jsx(cg,{})}),O.jsx(bt,{path:"*",element:O.jsx(Y0,{})})]})})}Yf(document.getElementById("root")).render(O.jsx(C.StrictMode,{children:O.jsx(fg,{})})); + */var oo=C,qy=Ky;function Gy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jy=typeof Object.is=="function"?Object.is:Gy,Xy=qy.useSyncExternalStore,Yy=oo.useRef,Zy=oo.useEffect,by=oo.useMemo,ev=oo.useDebugValue;pd.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var o=Yy(null);if(o.current===null){var i={hasValue:!1,value:null};o.current=i}else i=o.current;o=by(function(){function u(w){if(!a){if(a=!0,f=w,w=r(w),l!==void 0&&i.hasValue){var y=i.value;if(l(y,w))return c=y}return c=w}if(y=c,Jy(f,w))return y;var v=r(w);return l!==void 0&&l(y,v)?y:(f=w,c=v)}var a=!1,f,c,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,r,l]);var s=Xy(e,o[0],o[1]);return Zy(function(){i.hasValue=!0,i.value=s},[s]),ev(s),s};dd.exports=pd;var tv=dd.exports;const nv=Ua(tv),yd={BASE_URL:"/alfa-task/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:rv}=be,{useSyncExternalStoreWithSelector:lv}=nv;let Ea=!1;const ov=e=>e;function iv(e,t=ov,n){(yd?"production":void 0)!=="production"&&n&&!Ea&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Ea=!0);const r=lv(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return rv(r),r}const ka=e=>{(yd?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Fy(e):e,n=(r,l)=>iv(t,r,l);return Object.assign(n,t),n},sv=e=>e?ka(e):ka,Zt=sv(e=>({breeds:[],images:{},setBreeds:t=>e({breeds:t}),setImages:t=>e({images:t}),likedBreeds:new Set,toggleLike:t=>e(n=>{const r=new Set(n.likedBreeds);return r.has(t)?r.delete(t):r.add(t),{likedBreeds:r}}),filter:"all",setFilter:t=>e({filter:t}),removeBreed:t=>e(n=>({breeds:n.breeds.filter(r=>r!==t),images:Object.fromEntries(Object.entries(n.images).filter(([r])=>r!==t)),likedBreeds:new Set([...n.likedBreeds].filter(r=>r!==t))})),dataLoaded:!1,markDataAsLoaded:()=>e({dataLoaded:!0}),addBreed:(t,n)=>e(r=>({breeds:[...r.breeds,t],images:{...r.images,[t]:n}}))})),uv=({breedName:e,imageUrl:t})=>{const{likedBreeds:n,toggleLike:r,removeBreed:l}=Zt(),o=n.has(e),i=u=>{u.preventDefault(),r(e)},s=u=>{u.preventDefault(),l(e)};return O.jsxs(lo,{to:`/products/${e}`,className:jt.breedCard,children:[O.jsx("h2",{className:jt.beedTitle,children:e}),t&&O.jsx("img",{src:t,alt:e,className:jt.breedImage}),O.jsxs("div",{className:jt.iconContainer,children:[O.jsx("div",{className:`${jt.likeIcon} ${o?jt.liked:""}`,onClick:i,children:O.jsx(Py,{})}),O.jsx("div",{className:jt.deleteIcon,onClick:s,children:O.jsx(Ry,{})})]})]})},av="_breedListContainer_llol6_1",cv={breedListContainer:av},fv=({breeds:e,images:t})=>{const{likedBreeds:n,filter:r}=Zt(),l=r==="liked"?e.filter(o=>n.has(o)):e;return O.jsx("div",{className:cv.breedListContainer,children:l&&l.map(o=>O.jsx(uv,{breedName:o,imageUrl:t&&t[o]},o))})},dv="_filterContainer_17h0f_1",pv="_activeButton_17h0f_43",Vo={filterContainer:dv,activeButton:pv},hv=()=>{const{filter:e,setFilter:t}=Zt();return O.jsxs("div",{className:Vo.filterContainer,children:[O.jsx("button",{className:e==="all"?Vo.activeButton:"",onClick:()=>t("all"),children:"All"}),O.jsx("button",{className:e==="liked"?Vo.activeButton:"",onClick:()=>t("liked"),children:"Liked"})]})};function vd(e,t){return function(){return e.apply(t,arguments)}}const{toString:mv}=Object.prototype,{getPrototypeOf:Js}=Object,io=(e=>t=>{const n=mv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),He=e=>(e=e.toLowerCase(),t=>io(t)===e),so=e=>t=>typeof t===e,{isArray:Ln}=Array,kr=so("undefined");function yv(e){return e!==null&&!kr(e)&&e.constructor!==null&&!kr(e.constructor)&&Ce(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gd=He("ArrayBuffer");function vv(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gd(e.buffer),t}const gv=so("string"),Ce=so("function"),wd=so("number"),uo=e=>e!==null&&typeof e=="object",wv=e=>e===!0||e===!1,ul=e=>{if(io(e)!=="object")return!1;const t=Js(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Sv=He("Date"),Ev=He("File"),kv=He("Blob"),xv=He("FileList"),Cv=e=>uo(e)&&Ce(e.pipe),_v=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ce(e.append)&&((t=io(e))==="formdata"||t==="object"&&Ce(e.toString)&&e.toString()==="[object FormData]"))},Pv=He("URLSearchParams"),[Rv,Nv,Ov,Tv]=["ReadableStream","Request","Response","Headers"].map(He),Lv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Or(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),Ln(e))for(r=0,l=e.length;r0;)if(l=n[r],t===l.toLowerCase())return l;return null}const Ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ed=e=>!kr(e)&&e!==Ut;function Wi(){const{caseless:e}=Ed(this)&&this||{},t={},n=(r,l)=>{const o=e&&Sd(t,l)||l;ul(t[o])&&ul(r)?t[o]=Wi(t[o],r):ul(r)?t[o]=Wi({},r):Ln(r)?t[o]=r.slice():t[o]=r};for(let r=0,l=arguments.length;r(Or(t,(l,o)=>{n&&Ce(l)?e[o]=vd(l,n):e[o]=l},{allOwnKeys:r}),e),zv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Dv=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Iv=(e,t,n,r)=>{let l,o,i;const s={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)i=l[o],(!r||r(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&Js(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Fv=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Av=e=>{if(!e)return null;if(Ln(e))return e;let t=e.length;if(!wd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Uv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Js(Uint8Array)),Bv=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},Mv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$v=He("HTMLFormElement"),Hv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),xa=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Vv=He("RegExp"),kd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Or(n,(l,o)=>{let i;(i=t(l,o,e))!==!1&&(r[o]=i||l)}),Object.defineProperties(e,r)},Wv=e=>{kd(e,(t,n)=>{if(Ce(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ce(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Qv=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return Ln(e)?r(e):r(String(e).split(t)),n},Kv=()=>{},qv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Wo="abcdefghijklmnopqrstuvwxyz",Ca="0123456789",xd={DIGIT:Ca,ALPHA:Wo,ALPHA_DIGIT:Wo+Wo.toUpperCase()+Ca},Gv=(e=16,t=xd.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Jv(e){return!!(e&&Ce(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Xv=e=>{const t=new Array(10),n=(r,l)=>{if(uo(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const o=Ln(r)?[]:{};return Or(r,(i,s)=>{const u=n(i,l+1);!kr(u)&&(o[s]=u)}),t[l]=void 0,o}}return r};return n(e,0)},Yv=He("AsyncFunction"),Zv=e=>e&&(uo(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),Cd=((e,t)=>e?setImmediate:t?((n,r)=>(Ut.addEventListener("message",({source:l,data:o})=>{l===Ut&&o===n&&r.length&&r.shift()()},!1),l=>{r.push(l),Ut.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ce(Ut.postMessage)),bv=typeof queueMicrotask<"u"?queueMicrotask.bind(Ut):typeof process<"u"&&process.nextTick||Cd,g={isArray:Ln,isArrayBuffer:gd,isBuffer:yv,isFormData:_v,isArrayBufferView:vv,isString:gv,isNumber:wd,isBoolean:wv,isObject:uo,isPlainObject:ul,isReadableStream:Rv,isRequest:Nv,isResponse:Ov,isHeaders:Tv,isUndefined:kr,isDate:Sv,isFile:Ev,isBlob:kv,isRegExp:Vv,isFunction:Ce,isStream:Cv,isURLSearchParams:Pv,isTypedArray:Uv,isFileList:xv,forEach:Or,merge:Wi,extend:jv,trim:Lv,stripBOM:zv,inherits:Dv,toFlatObject:Iv,kindOf:io,kindOfTest:He,endsWith:Fv,toArray:Av,forEachEntry:Bv,matchAll:Mv,isHTMLForm:$v,hasOwnProperty:xa,hasOwnProp:xa,reduceDescriptors:kd,freezeMethods:Wv,toObjectSet:Qv,toCamelCase:Hv,noop:Kv,toFiniteNumber:qv,findKey:Sd,global:Ut,isContextDefined:Ed,ALPHABET:xd,generateString:Gv,isSpecCompliantForm:Jv,toJSONObject:Xv,isAsyncFn:Yv,isThenable:Zv,setImmediate:Cd,asap:bv};function L(e,t,n,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l,this.status=l.status?l.status:null)}g.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:g.toJSONObject(this.config),code:this.code,status:this.status}}});const _d=L.prototype,Pd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Pd[e]={value:e}});Object.defineProperties(L,Pd);Object.defineProperty(_d,"isAxiosError",{value:!0});L.from=(e,t,n,r,l,o)=>{const i=Object.create(_d);return g.toFlatObject(e,i,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),L.call(i,e.message,t,n,r,l),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const e0=null;function Qi(e){return g.isPlainObject(e)||g.isArray(e)}function Rd(e){return g.endsWith(e,"[]")?e.slice(0,-2):e}function _a(e,t,n){return e?e.concat(t).map(function(l,o){return l=Rd(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function t0(e){return g.isArray(e)&&!e.some(Qi)}const n0=g.toFlatObject(g,{},null,function(t){return/^is[A-Z]/.test(t)});function ao(e,t,n){if(!g.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=g.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,S){return!g.isUndefined(S[v])});const r=n.metaTokens,l=n.visitor||f,o=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(t);if(!g.isFunction(l))throw new TypeError("visitor must be a function");function a(y){if(y===null)return"";if(g.isDate(y))return y.toISOString();if(!u&&g.isBlob(y))throw new L("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(y)||g.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,v,S){let p=y;if(y&&!S&&typeof y=="object"){if(g.endsWith(v,"{}"))v=r?v:v.slice(0,-2),y=JSON.stringify(y);else if(g.isArray(y)&&t0(y)||(g.isFileList(y)||g.endsWith(v,"[]"))&&(p=g.toArray(y)))return v=Rd(v),p.forEach(function(h,E){!(g.isUndefined(h)||h===null)&&t.append(i===!0?_a([v],E,o):i===null?v:v+"[]",a(h))}),!1}return Qi(y)?!0:(t.append(_a(S,v,o),a(y)),!1)}const c=[],m=Object.assign(n0,{defaultVisitor:f,convertValue:a,isVisitable:Qi});function w(y,v){if(!g.isUndefined(y)){if(c.indexOf(y)!==-1)throw Error("Circular reference detected in "+v.join("."));c.push(y),g.forEach(y,function(p,d){(!(g.isUndefined(p)||p===null)&&l.call(t,p,g.isString(d)?d.trim():d,v,m))===!0&&w(p,v?v.concat(d):[d])}),c.pop()}}if(!g.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Pa(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Xs(e,t){this._pairs=[],e&&ao(e,this,t)}const Nd=Xs.prototype;Nd.append=function(t,n){this._pairs.push([t,n])};Nd.toString=function(t){const n=t?function(r){return t.call(this,r,Pa)}:Pa;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function r0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Od(e,t,n){if(!t)return e;const r=n&&n.encode||r0,l=n&&n.serialize;let o;if(l?o=l(t,n):o=g.isURLSearchParams(t)?t.toString():new Xs(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ra{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){g.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Td={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},l0=typeof URLSearchParams<"u"?URLSearchParams:Xs,o0=typeof FormData<"u"?FormData:null,i0=typeof Blob<"u"?Blob:null,s0={isBrowser:!0,classes:{URLSearchParams:l0,FormData:o0,Blob:i0},protocols:["http","https","file","blob","url","data"]},Ys=typeof window<"u"&&typeof document<"u",Ki=typeof navigator=="object"&&navigator||void 0,u0=Ys&&(!Ki||["ReactNative","NativeScript","NS"].indexOf(Ki.product)<0),a0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",c0=Ys&&window.location.href||"http://localhost",f0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ys,hasStandardBrowserEnv:u0,hasStandardBrowserWebWorkerEnv:a0,navigator:Ki,origin:c0},Symbol.toStringTag,{value:"Module"})),we={...f0,...s0};function d0(e,t){return ao(e,new we.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,o){return we.isNode&&g.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function p0(e){return g.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function h0(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r=n.length;return i=!i&&g.isArray(l)?l.length:i,u?(g.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!s):((!l[i]||!g.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&g.isArray(l[i])&&(l[i]=h0(l[i])),!s)}if(g.isFormData(e)&&g.isFunction(e.entries)){const n={};return g.forEachEntry(e,(r,l)=>{t(p0(r),l,n,0)}),n}return null}function m0(e,t,n){if(g.isString(e))try{return(t||JSON.parse)(e),g.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Tr={transitional:Td,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=g.isObject(t);if(o&&g.isHTMLForm(t)&&(t=new FormData(t)),g.isFormData(t))return l?JSON.stringify(Ld(t)):t;if(g.isArrayBuffer(t)||g.isBuffer(t)||g.isStream(t)||g.isFile(t)||g.isBlob(t)||g.isReadableStream(t))return t;if(g.isArrayBufferView(t))return t.buffer;if(g.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return d0(t,this.formSerializer).toString();if((s=g.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ao(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),m0(t)):t}],transformResponse:[function(t){const n=this.transitional||Tr.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(g.isResponse(t)||g.isReadableStream(t))return t;if(t&&g.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?L.from(s,L.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:we.classes.FormData,Blob:we.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],e=>{Tr.headers[e]={}});const y0=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),v0=e=>{const t={};let n,r,l;return e&&e.split(` +`).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),r=i.substring(l+1).trim(),!(!n||t[n]&&y0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Na=Symbol("internals");function Vn(e){return e&&String(e).trim().toLowerCase()}function al(e){return e===!1||e==null?e:g.isArray(e)?e.map(al):String(e)}function g0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const w0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qo(e,t,n,r,l){if(g.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!g.isString(t)){if(g.isString(r))return t.indexOf(r)!==-1;if(g.isRegExp(r))return r.test(t)}}function S0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function E0(e,t){const n=g.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,i){return this[r].call(this,t,l,o,i)},configurable:!0})})}class Se{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(s,u,a){const f=Vn(u);if(!f)throw new Error("header name must be a non-empty string");const c=g.findKey(l,f);(!c||l[c]===void 0||a===!0||a===void 0&&l[c]!==!1)&&(l[c||u]=al(s))}const i=(s,u)=>g.forEach(s,(a,f)=>o(a,f,u));if(g.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(g.isString(t)&&(t=t.trim())&&!w0(t))i(v0(t),n);else if(g.isHeaders(t))for(const[s,u]of t.entries())o(u,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Vn(t),t){const r=g.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return g0(l);if(g.isFunction(n))return n.call(this,l,r);if(g.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Vn(t),t){const r=g.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Qo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=Vn(i),i){const s=g.findKey(r,i);s&&(!n||Qo(r,r[s],s,n))&&(delete r[s],l=!0)}}return g.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||Qo(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return g.forEach(this,(l,o)=>{const i=g.findKey(r,o);if(i){n[i]=al(l),delete n[o];return}const s=t?S0(o):String(o).trim();s!==o&&delete n[o],n[s]=al(l),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return g.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&g.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[Na]=this[Na]={accessors:{}}).accessors,l=this.prototype;function o(i){const s=Vn(i);r[s]||(E0(l,i),r[s]=!0)}return g.isArray(t)?t.forEach(o):o(t),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);g.reduceDescriptors(Se.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});g.freezeMethods(Se);function Ko(e,t){const n=this||Tr,r=t||n,l=Se.from(r.headers);let o=r.data;return g.forEach(e,function(s){o=s.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function jd(e){return!!(e&&e.__CANCEL__)}function jn(e,t,n){L.call(this,e??"canceled",L.ERR_CANCELED,t,n),this.name="CanceledError"}g.inherits(jn,L,{__CANCEL__:!0});function zd(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new L("Request failed with status code "+n.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function k0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function x0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),f=r[o];i||(i=a),n[l]=u,r[l]=a;let c=o,m=0;for(;c!==l;)m+=n[c++],c=c%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),a-i{n=f,l=null,o&&(clearTimeout(o),o=null),e.apply(null,a)};return[(...a)=>{const f=Date.now(),c=f-n;c>=r?i(a,f):(l=a,o||(o=setTimeout(()=>{o=null,i(l)},r-c)))},()=>l&&i(l)]}const Ul=(e,t,n=3)=>{let r=0;const l=x0(50,250);return C0(o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,u=i-r,a=l(u),f=i<=s;r=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:a||void 0,estimated:a&&s&&f?(s-i)/a:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},n)},Oa=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ta=e=>(...t)=>g.asap(()=>e(...t)),_0=we.hasStandardBrowserEnv?function(){const t=we.navigator&&/(msie|trident)/i.test(we.navigator.userAgent),n=document.createElement("a");let r;function l(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=l(window.location.href),function(i){const s=g.isString(i)?l(i):i;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),P0=we.hasStandardBrowserEnv?{write(e,t,n,r,l,o){const i=[e+"="+encodeURIComponent(t)];g.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),g.isString(r)&&i.push("path="+r),g.isString(l)&&i.push("domain="+l),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function R0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function N0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Dd(e,t){return e&&!R0(t)?N0(e,t):t}const La=e=>e instanceof Se?{...e}:e;function qt(e,t){t=t||{};const n={};function r(a,f,c){return g.isPlainObject(a)&&g.isPlainObject(f)?g.merge.call({caseless:c},a,f):g.isPlainObject(f)?g.merge({},f):g.isArray(f)?f.slice():f}function l(a,f,c){if(g.isUndefined(f)){if(!g.isUndefined(a))return r(void 0,a,c)}else return r(a,f,c)}function o(a,f){if(!g.isUndefined(f))return r(void 0,f)}function i(a,f){if(g.isUndefined(f)){if(!g.isUndefined(a))return r(void 0,a)}else return r(void 0,f)}function s(a,f,c){if(c in t)return r(a,f);if(c in e)return r(void 0,a)}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(a,f)=>l(La(a),La(f),!0)};return g.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=u[f]||l,m=c(e[f],t[f],f);g.isUndefined(m)&&c!==s||(n[f]=m)}),n}const Id=e=>{const t=qt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:l,xsrfCookieName:o,headers:i,auth:s}=t;t.headers=i=Se.from(i),t.url=Od(Dd(t.baseURL,t.url),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let u;if(g.isFormData(n)){if(we.hasStandardBrowserEnv||we.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[a,...f]=u?u.split(";").map(c=>c.trim()).filter(Boolean):[];i.setContentType([a||"multipart/form-data",...f].join("; "))}}if(we.hasStandardBrowserEnv&&(r&&g.isFunction(r)&&(r=r(t)),r||r!==!1&&_0(t.url))){const a=l&&o&&P0.read(o);a&&i.set(l,a)}return t},O0=typeof XMLHttpRequest<"u",T0=O0&&function(e){return new Promise(function(n,r){const l=Id(e);let o=l.data;const i=Se.from(l.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:a}=l,f,c,m,w,y;function v(){w&&w(),y&&y(),l.cancelToken&&l.cancelToken.unsubscribe(f),l.signal&&l.signal.removeEventListener("abort",f)}let S=new XMLHttpRequest;S.open(l.method.toUpperCase(),l.url,!0),S.timeout=l.timeout;function p(){if(!S)return;const h=Se.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:h,config:e,request:S};zd(function(R){n(R),v()},function(R){r(R),v()},x),S=null}"onloadend"in S?S.onloadend=p:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(p)},S.onabort=function(){S&&(r(new L("Request aborted",L.ECONNABORTED,e,S)),S=null)},S.onerror=function(){r(new L("Network Error",L.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){let E=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const x=l.transitional||Td;l.timeoutErrorMessage&&(E=l.timeoutErrorMessage),r(new L(E,x.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,e,S)),S=null},o===void 0&&i.setContentType(null),"setRequestHeader"in S&&g.forEach(i.toJSON(),function(E,x){S.setRequestHeader(x,E)}),g.isUndefined(l.withCredentials)||(S.withCredentials=!!l.withCredentials),s&&s!=="json"&&(S.responseType=l.responseType),a&&([m,y]=Ul(a,!0),S.addEventListener("progress",m)),u&&S.upload&&([c,w]=Ul(u),S.upload.addEventListener("progress",c),S.upload.addEventListener("loadend",w)),(l.cancelToken||l.signal)&&(f=h=>{S&&(r(!h||h.type?new jn(null,e,S):h),S.abort(),S=null)},l.cancelToken&&l.cancelToken.subscribe(f),l.signal&&(l.signal.aborted?f():l.signal.addEventListener("abort",f)));const d=k0(l.url);if(d&&we.protocols.indexOf(d)===-1){r(new L("Unsupported protocol "+d+":",L.ERR_BAD_REQUEST,e));return}S.send(o||null)})},L0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,l;const o=function(a){if(!l){l=!0,s();const f=a instanceof Error?a:this.reason;r.abort(f instanceof L?f:new jn(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,o(new L(`timeout ${t} of ms exceeded`,L.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(o):a.removeEventListener("abort",o)}),e=null)};e.forEach(a=>a.addEventListener("abort",o));const{signal:u}=r;return u.unsubscribe=()=>g.asap(s),u}},j0=function*(e,t){let n=e.byteLength;if(!t||n{const l=z0(e,t);let o=0,i,s=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:a,value:f}=await l.next();if(a){s(),u.close();return}let c=f.byteLength;if(n){let m=o+=c;n(m)}u.enqueue(new Uint8Array(f))}catch(a){throw s(a),a}},cancel(u){return s(u),l.return()}},{highWaterMark:2})},co=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fd=co&&typeof ReadableStream=="function",I0=co&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ad=(e,...t)=>{try{return!!e(...t)}catch{return!1}},F0=Fd&&Ad(()=>{let e=!1;const t=new Request(we.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),za=64*1024,qi=Fd&&Ad(()=>g.isReadableStream(new Response("").body)),Bl={stream:qi&&(e=>e.body)};co&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Bl[t]&&(Bl[t]=g.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new L(`Response type '${t}' is not supported`,L.ERR_NOT_SUPPORT,r)})})})(new Response);const A0=async e=>{if(e==null)return 0;if(g.isBlob(e))return e.size;if(g.isSpecCompliantForm(e))return(await new Request(we.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(g.isArrayBufferView(e)||g.isArrayBuffer(e))return e.byteLength;if(g.isURLSearchParams(e)&&(e=e+""),g.isString(e))return(await I0(e)).byteLength},U0=async(e,t)=>{const n=g.toFiniteNumber(e.getContentLength());return n??A0(t)},B0=co&&(async e=>{let{url:t,method:n,data:r,signal:l,cancelToken:o,timeout:i,onDownloadProgress:s,onUploadProgress:u,responseType:a,headers:f,withCredentials:c="same-origin",fetchOptions:m}=Id(e);a=a?(a+"").toLowerCase():"text";let w=L0([l,o&&o.toAbortSignal()],i),y;const v=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let S;try{if(u&&F0&&n!=="get"&&n!=="head"&&(S=await U0(f,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),_;if(g.isFormData(r)&&(_=x.headers.get("content-type"))&&f.setContentType(_),x.body){const[R,T]=Oa(S,Ul(Ta(u)));r=ja(x.body,za,R,T)}}g.isString(c)||(c=c?"include":"omit");const p="credentials"in Request.prototype;y=new Request(t,{...m,signal:w,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:p?c:void 0});let d=await fetch(y);const h=qi&&(a==="stream"||a==="response");if(qi&&(s||h&&v)){const x={};["status","statusText","headers"].forEach($=>{x[$]=d[$]});const _=g.toFiniteNumber(d.headers.get("content-length")),[R,T]=s&&Oa(_,Ul(Ta(s),!0))||[];d=new Response(ja(d.body,za,R,()=>{T&&T(),v&&v()}),x)}a=a||"text";let E=await Bl[g.findKey(Bl,a)||"text"](d,e);return!h&&v&&v(),await new Promise((x,_)=>{zd(x,_,{data:E,headers:Se.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:y})})}catch(p){throw v&&v(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new L("Network Error",L.ERR_NETWORK,e,y),{cause:p.cause||p}):L.from(p,p&&p.code,e,y)}}),Gi={http:e0,xhr:T0,fetch:B0};g.forEach(Gi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Da=e=>`- ${e}`,M0=e=>g.isFunction(e)||e===null||e===!1,Ud={getAdapter:e=>{e=g.isArray(e)?e:[e];const{length:t}=e;let n,r;const l={};for(let o=0;o`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.map(Da).join(` +`):" "+Da(o[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Gi};function qo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new jn(null,e)}function Ia(e){return qo(e),e.headers=Se.from(e.headers),e.data=Ko.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ud.getAdapter(e.adapter||Tr.adapter)(e).then(function(r){return qo(e),r.data=Ko.call(e,e.transformResponse,r),r.headers=Se.from(r.headers),r},function(r){return jd(r)||(qo(e),r&&r.response&&(r.response.data=Ko.call(e,e.transformResponse,r.response),r.response.headers=Se.from(r.response.headers))),Promise.reject(r)})}const Bd="1.7.7",Zs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Zs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Fa={};Zs.transitional=function(t,n,r){function l(o,i){return"[Axios v"+Bd+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,s)=>{if(t===!1)throw new L(l(i," has been removed"+(n?" in "+n:"")),L.ERR_DEPRECATED);return n&&!Fa[i]&&(Fa[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,s):!0}};function $0(e,t,n){if(typeof e!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],i=t[o];if(i){const s=e[o],u=s===void 0||i(s,o,e);if(u!==!0)throw new L("option "+o+" must be "+u,L.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new L("Unknown option "+o,L.ERR_BAD_OPTION)}}const Ji={assertOptions:$0,validators:Zs},st=Ji.validators;class $t{constructor(t){this.defaults=t,this.interceptors={request:new Ra,response:new Ra}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;const o=l.stack?l.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qt(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&Ji.assertOptions(r,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),l!=null&&(g.isFunction(l)?n.paramsSerializer={serialize:l}:Ji.assertOptions(l,{encode:st.function,serialize:st.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&g.merge(o.common,o[n.method]);o&&g.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Se.concat(i,o);const s=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(u=u&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const a=[];this.interceptors.response.forEach(function(v){a.push(v.fulfilled,v.rejected)});let f,c=0,m;if(!u){const y=[Ia.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,a),m=y.length,f=Promise.resolve(n);c{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const i=new Promise(s=>{r.subscribe(s),o=s}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,s){r.reason||(r.reason=new jn(o,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new bs(function(l){t=l}),cancel:t}}}function H0(e){return function(n){return e.apply(null,n)}}function V0(e){return g.isObject(e)&&e.isAxiosError===!0}const Xi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xi).forEach(([e,t])=>{Xi[t]=e});function Md(e){const t=new $t(e),n=vd($t.prototype.request,t);return g.extend(n,$t.prototype,t,{allOwnKeys:!0}),g.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Md(qt(e,l))},n}const K=Md(Tr);K.Axios=$t;K.CanceledError=jn;K.CancelToken=bs;K.isCancel=jd;K.VERSION=Bd;K.toFormData=ao;K.AxiosError=L;K.Cancel=K.CanceledError;K.all=function(t){return Promise.all(t)};K.spread=H0;K.isAxiosError=V0;K.mergeConfig=qt;K.AxiosHeaders=Se;K.formToJSON=e=>Ld(g.isHTMLForm(e)?new FormData(e):e);K.getAdapter=Ud.getAdapter;K.HttpStatusCode=Xi;K.default=K;const Aa="https://dog.ceo/api/",$d={DOGS_API_URL:Aa,DOG_BREEDS_LIST:`${Aa}breeds/list/all`},W0=async()=>{try{return(await K.get($d.DOG_BREEDS_LIST)).data.message}catch(e){throw K.isAxiosError(e)?new Error(e.message):new Error("An unexpected error occurred")}},Q0=async e=>{try{return(await K.get(`${$d.DOGS_API_URL}breed/${e}/images/random`)).data}catch(t){throw K.isAxiosError(t)?new Error(t.message):new Error("An unexpected error occurred")}},K0=()=>{const{setBreeds:e,setImages:t,dataLoaded:n,markDataAsLoaded:r}=Zt();return C.useEffect(()=>{n||(async()=>{try{const o=await W0(),i=Object.keys(o).slice(0,12);e(i);const s=i.map(f=>Q0(f).then(c=>({breed:f,imageUrl:c.message}))),a=(await Promise.all(s)).reduce((f,{breed:c,imageUrl:m})=>(f[c]=m,f),{});t(a),r()}catch(o){console.error("Error fetching data:",o)}})()},[n,e,t,r]),null},q0="_addButton_1hoys_1",G0={addButton:q0},J0=()=>{const e=Gs(),t=()=>{e("/create-product")};return O.jsx("button",{onClick:t,className:G0.addButton,children:"Add Product"})};function X0(){const{breeds:e,images:t}=Zt();return O.jsxs(O.Fragment,{children:[O.jsx("h1",{children:"Dog Breeds"}),O.jsxs("div",{children:[O.jsx(hv,{}),O.jsx(J0,{})]}),O.jsx(K0,{}),e&&t&&Object.keys(t).length>0?O.jsx(fv,{breeds:e,images:t}):O.jsx("p",{children:"No breeds available or images not loaded."})]})}const Y0=()=>O.jsx("div",{children:O.jsx("h1",{children:"404 - Page Not Found"})}),Z0="_detailContainer_gjzfb_1",b0="_detailTitle_gjzfb_15",eg="_breedImage_gjzfb_27",tg="_breedDetail_gjzfb_45",Go={detailContainer:Z0,detailTitle:b0,breedImage:eg,breedDetail:tg},ng=()=>{const{breedName:e}=Qm(),{images:t}=Zt();return O.jsxs(O.Fragment,{children:[O.jsx(lo,{to:"/products",children:"Go to Breeds Page"}),O.jsxs("div",{className:Go.detailContainer,children:[O.jsx("h1",{className:Go.detailTitle,children:e}),e&&t[e]&&O.jsx("img",{src:t[e],alt:e,className:Go.breedImage}),O.jsxs("p",{children:["Details page ",e,"."]})]})]})},rg="_createProductPage_rjrd5_1",lg="_form_rjrd5_13",og="_formGroup_rjrd5_23",ig="_label_rjrd5_31",sg="_input_rjrd5_41",ug="_error_rjrd5_55",ag="_submitButton_rjrd5_67",Ge={createProductPage:rg,form:lg,formGroup:og,label:ig,input:sg,error:ug,submitButton:ag},cg=()=>{const[e,t]=C.useState(""),[n,r]=C.useState(""),[l,o]=C.useState({}),{addBreed:i}=Zt(),s=Gs(),u=c=>/\.(jpg|jpeg|png|gif)$/i.test(c),a=()=>{const c={};return e?/^[А-ЯA-Z]/.test(e)||(c.name="Name must start with a capital letter"):c.name="Name is required",n?u(n)||(c.imageUrl="Invalid image URL"):c.imageUrl="Image URL is required",c},f=c=>{c.preventDefault();const m=a();if(Object.keys(m).length>0){o(m);return}i(e,n),s("/products")};return O.jsxs("div",{className:Ge.createProductPage,children:[O.jsx(lo,{to:"/products",children:"Go to Breeds Page"}),O.jsx("h1",{children:"Create New Product"}),O.jsxs("form",{onSubmit:f,className:Ge.form,children:[O.jsxs("div",{className:Ge.formGroup,children:[O.jsx("label",{htmlFor:"name",children:"Name:"}),O.jsx("input",{type:"text",id:"name",value:e,onChange:c=>t(c.target.value),className:Ge.input}),l.name&&O.jsx("span",{className:Ge.error,children:l.name})]}),O.jsxs("div",{className:Ge.formGroup,children:[O.jsx("label",{htmlFor:"imageUrl",children:"Image URL:"}),O.jsx("input",{type:"text",id:"imageUrl",value:n,onChange:c=>r(c.target.value),className:Ge.input}),l.imageUrl&&O.jsx("span",{className:Ge.error,children:l.imageUrl})]}),O.jsx("button",{type:"submit",className:Ge.submitButton,children:"Add Product"})]})]})};function fg(){return O.jsx(dy,{basename:"/alfa-task/",children:O.jsxs(oy,{children:[O.jsx(en,{path:"/",element:O.jsx(gy,{})}),O.jsx(en,{path:"/products",element:O.jsx(X0,{})}),O.jsx(en,{path:"/products/:breedName",element:O.jsx(ng,{})}),O.jsx(en,{path:"/create-product",element:O.jsx(cg,{})}),O.jsx(en,{path:"*",element:O.jsx(Y0,{})})]})})}Zf(document.getElementById("root")).render(O.jsx(C.StrictMode,{children:O.jsx(fg,{})})); diff --git a/index.html b/index.html index e8b30aa..aed4659 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + React + TS - +