From ba7dd28292c9798ac7f71eed311a5535e245326e Mon Sep 17 00:00:00 2001 From: marinoffDev Date: Thu, 10 Oct 2024 18:00:47 +0000 Subject: [PATCH] deploy: 0b12ae3d689df28080f85f59b3e192093d5101a0 --- .../{index-xlp69UDT.js => index-C8uyaR5k.js} | 82 +++++++++---------- assets/index-CSEvNVl0.css | 1 + assets/index-DTmASipQ.css | 1 - index.html | 4 +- 4 files changed, 44 insertions(+), 44 deletions(-) rename assets/{index-xlp69UDT.js => index-C8uyaR5k.js} (56%) create mode 100644 assets/index-CSEvNVl0.css delete mode 100644 assets/index-DTmASipQ.css diff --git a/assets/index-xlp69UDT.js b/assets/index-C8uyaR5k.js similarity index 56% rename from assets/index-xlp69UDT.js rename to assets/index-C8uyaR5k.js index 2affe03..eedf7c7 100644 --- a/assets/index-xlp69UDT.js +++ b/assets/index-C8uyaR5k.js @@ -1,4 +1,4 @@ -function wv(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Mf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bv={exports:{}},vl={},Sv={exports:{}},se={};/** +function bv(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Of(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sv={exports:{}},gl={},Ev={exports:{}},se={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function wv(e,t){for(var n=0;n>>1,ne=D[Q];if(0>>1;Qo(He,j))feo(Me,He)?(D[Q]=Me,D[fe]=j,Q=fe):(D[Q]=He,D[De]=j,Q=De);else if(feo(Me,j))D[Q]=Me,D[fe]=j,Q=fe;else break e}}return _}function o(D,_){var j=D.sortIndex-_.sortIndex;return j!==0?j:D.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],d=1,f=null,p=3,h=!1,x=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(D){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=D)r(c),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(c)}}function S(D){if(m=!1,y(D),!x)if(n(l)!==null)x=!0,ee(P);else{var _=n(c);_!==null&&Z(S,_.startTime-D)}}function P(D,_){x=!1,m&&(m=!1,g(E),E=-1),h=!0;var j=p;try{for(y(_),f=n(l);f!==null&&(!(f.expirationTime>_)||D&&!I());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,p=f.priorityLevel;var ne=Q(f.expirationTime<=_);_=e.unstable_now(),typeof ne=="function"?f.callback=ne:f===n(l)&&r(l),y(_)}else r(l);f=n(l)}if(f!==null)var Ce=!0;else{var De=n(c);De!==null&&Z(S,De.startTime-_),Ce=!1}return Ce}finally{f=null,p=j,h=!1}}var N=!1,R=null,E=-1,O=5,T=-1;function I(){return!(e.unstable_now()-TD||125Q?(D.sortIndex=j,t(c,D),n(l)===null&&D===n(c)&&(m?(g(E),E=-1):m=!0,Z(S,j-Q))):(D.sortIndex=ne,t(l,D),x||h||(x=!0,ee(P))),D},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(D){var _=p;return function(){var j=p;p=_;try{return D.apply(this,arguments)}finally{p=j}}}})(Av);Ov.exports=Av;var qw=Ov.exports;/** + */(function(e){function t(D,_){var j=D.length;D.push(_);e:for(;0>>1,ne=D[Q];if(0>>1;Qo(He,j))feo(Me,He)?(D[Q]=Me,D[fe]=j,Q=fe):(D[Q]=He,D[De]=j,Q=De);else if(feo(Me,j))D[Q]=Me,D[fe]=j,Q=fe;else break e}}return _}function o(D,_){var j=D.sortIndex-_.sortIndex;return j!==0?j:D.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],d=1,f=null,p=3,h=!1,x=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(D){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=D)r(c),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(c)}}function S(D){if(m=!1,y(D),!x)if(n(l)!==null)x=!0,ee(P);else{var _=n(c);_!==null&&Z(S,_.startTime-D)}}function P(D,_){x=!1,m&&(m=!1,g(E),E=-1),h=!0;var j=p;try{for(y(_),f=n(l);f!==null&&(!(f.expirationTime>_)||D&&!I());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,p=f.priorityLevel;var ne=Q(f.expirationTime<=_);_=e.unstable_now(),typeof ne=="function"?f.callback=ne:f===n(l)&&r(l),y(_)}else r(l);f=n(l)}if(f!==null)var Ce=!0;else{var De=n(c);De!==null&&Z(S,De.startTime-_),Ce=!1}return Ce}finally{f=null,p=j,h=!1}}var N=!1,R=null,E=-1,O=5,T=-1;function I(){return!(e.unstable_now()-TD||125Q?(D.sortIndex=j,t(c,D),n(l)===null&&D===n(c)&&(m?(g(E),E=-1):m=!0,Z(S,j-Q))):(D.sortIndex=ne,t(l,D),x||h||(x=!0,ee(P))),D},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(D){var _=p;return function(){var j=p;p=_;try{return D.apply(this,arguments)}finally{p=j}}}})(Dv);Av.exports=Dv;var e2=Av.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function wv(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tu=Object.prototype.hasOwnProperty,t2=/^[: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]*$/,Ap={},Dp={};function n2(e){return tu.call(Dp,e)?!0:tu.call(Ap,e)?!1:t2.test(e)?Dp[e]=!0:(Ap[e]=!0,!1)}function r2(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 o2(e,t,n,r){if(t===null||typeof t>"u"||r2(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 st(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new st(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){Xe[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ff=/[\-:]([a-z])/g;function jf(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(Ff,jf);Xe[t]=new st(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(Ff,jf);Xe[t]=new st(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(Ff,jf);Xe[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});function zf(e,t,n,r){var o=Xe.hasOwnProperty(t)?Xe[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nu=Object.prototype.hasOwnProperty,n2=/^[: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]*$/,Dp={},Lp={};function r2(e){return nu.call(Lp,e)?!0:nu.call(Dp,e)?!1:n2.test(e)?Lp[e]=!0:(Dp[e]=!0,!1)}function o2(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 i2(e,t,n,r){if(t===null||typeof t>"u"||o2(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 st(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new st(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){Qe[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var jf=/[\-:]([a-z])/g;function zf(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(jf,zf);Qe[t]=new st(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(jf,zf);Qe[t]=new st(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(jf,zf);Qe[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});function Uf(e,t,n,r){var o=Qe.hasOwnProperty(t)?Qe[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{ac=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wi(e):""}function i2(e){switch(e.tag){case 5:return wi(e.type);case 16:return wi("Lazy");case 13:return wi("Suspense");case 19:return wi("SuspenseList");case 0:case 2:case 15:return e=sc(e.type,!1),e;case 11:return e=sc(e.type.render,!1),e;case 1:return e=sc(e.type,!0),e;default:return""}}function iu(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 so:return"Fragment";case ao:return"Portal";case nu:return"Profiler";case Uf:return"StrictMode";case ru:return"Suspense";case ou:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Iv:return(e.displayName||"Context")+".Consumer";case Lv:return(e._context.displayName||"Context")+".Provider";case Bf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wf:return t=e.displayName||null,t!==null?t:iu(e.type)||"Memo";case Wn:t=e._payload,e=e._init;try{return iu(e(t))}catch{}}return null}function a2(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 iu(t);case 8:return t===Uf?"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 ar(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s2(e){var t=jv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Aa(e){e._valueTracker||(e._valueTracker=s2(e))}function zv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=jv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ns(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 au(e,t){var n=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ip(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ar(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 Uv(e,t){t=t.checked,t!=null&&zf(e,"checked",t,!1)}function su(e,t){Uv(e,t);var n=ar(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")?lu(e,t.type,n):t.hasOwnProperty("defaultValue")&&lu(e,t.type,ar(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fp(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 lu(e,t,n){(t!=="number"||Ns(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bi=Array.isArray;function Eo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Da.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ui(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ri={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},l2=["Webkit","ms","Moz","O"];Object.keys(Ri).forEach(function(e){l2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ri[t]=Ri[e]})});function Hv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ri.hasOwnProperty(e)&&Ri[e]?(""+t).trim():t+"px"}function Kv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Hv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var c2=$e({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 fu(e,t){if(t){if(c2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function du(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 pu=null;function Vf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mu=null,Co=null,Po=null;function Up(e){if(e=va(e)){if(typeof mu!="function")throw Error(A(280));var t=e.stateNode;t&&(t=bl(t),mu(e.stateNode,e.type,t))}}function Gv(e){Co?Po?Po.push(e):Po=[e]:Co=e}function Yv(){if(Co){var e=Co,t=Po;if(Po=Co=null,Up(e),t)for(e=0;e>>=0,e===0?32:31-(w2(e)/b2|0)|0}var La=64,Ia=4194304;function Si(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 Os(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=Si(s):(i&=a,i!==0&&(r=Si(i)))}else a=n&~o,a!==0?r=Si(a):i!==0&&(r=Si(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ma(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bt(t),e[t]=n}function P2(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=Ni),Qp=" ",Zp=!1;function mg(e,t){switch(e){case"keyup":return q2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lo=!1;function tb(e,t){switch(e){case"compositionend":return hg(t);case"keypress":return t.which!==32?null:(Zp=!0,Qp);case"textInput":return e=t.data,e===Qp&&Zp?null:e;default:return null}}function nb(e,t){if(lo)return e==="compositionend"||!Jf&&mg(e,t)?(e=dg(),ps=Xf=Gn=null,lo=!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=tm(n)}}function xg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wg(){for(var e=window,t=Ns();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ns(e.document)}return t}function qf(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 fb(e){var t=wg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xg(n.ownerDocument.documentElement,n)){if(r!==null&&qf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=nm(n,i);var a=nm(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,co=null,wu=null,Ti=null,bu=!1;function rm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bu||co==null||co!==Ns(r)||(r=co,"selectionStart"in r&&qf(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}),Ti&&Gi(Ti,r)||(Ti=r,r=Ls(wu,"onSelect"),0po||(e.current=Ru[po],Ru[po]=null,po--)}function ve(e,t){po++,Ru[po]=e.current,e.current=t}var sr={},nt=mr(sr),ut=mr(!1),Or=sr;function Oo(e,t){var n=e.type.contextTypes;if(!n)return sr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ft(e){return e=e.childContextTypes,e!=null}function Fs(){we(ut),we(nt)}function um(e,t,n){if(nt.current!==sr)throw Error(A(168));ve(nt,t),ve(ut,n)}function Ng(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,a2(e)||"Unknown",o));return $e({},n,r)}function js(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sr,Or=nt.current,ve(nt,e),ve(ut,ut.current),!0}function fm(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Ng(e,t,Or),r.__reactInternalMemoizedMergedChildContext=e,we(ut),we(nt),ve(nt,e)):we(ut),ve(ut,n)}var vn=null,Sl=!1,bc=!1;function _g(e){vn===null?vn=[e]:vn.push(e)}function Eb(e){Sl=!0,_g(e)}function hr(){if(!bc&&vn!==null){bc=!0;var e=0,t=pe;try{var n=vn;for(pe=1;e>=a,o-=a,gn=1<<32-Bt(t)+o|n<E?(O=R,R=null):O=R.sibling;var T=p(g,R,y[E],S);if(T===null){R===null&&(R=O);break}e&&R&&T.alternate===null&&t(g,R),v=i(T,v,E),N===null?P=T:N.sibling=T,N=T,R=O}if(E===y.length)return n(g,R),Se&&wr(g,E),P;if(R===null){for(;EE?(O=R,R=null):O=R.sibling;var I=p(g,R,T.value,S);if(I===null){R===null&&(R=O);break}e&&R&&I.alternate===null&&t(g,R),v=i(I,v,E),N===null?P=I:N.sibling=I,N=I,R=O}if(T.done)return n(g,R),Se&&wr(g,E),P;if(R===null){for(;!T.done;E++,T=y.next())T=f(g,T.value,S),T!==null&&(v=i(T,v,E),N===null?P=T:N.sibling=T,N=T);return Se&&wr(g,E),P}for(R=r(g,R);!T.done;E++,T=y.next())T=h(R,g,E,T.value,S),T!==null&&(e&&T.alternate!==null&&R.delete(T.key===null?E:T.key),v=i(T,v,E),N===null?P=T:N.sibling=T,N=T);return e&&R.forEach(function(L){return t(g,L)}),Se&&wr(g,E),P}function b(g,v,y,S){if(typeof y=="object"&&y!==null&&y.type===so&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Oa:e:{for(var P=y.key,N=v;N!==null;){if(N.key===P){if(P=y.type,P===so){if(N.tag===7){n(g,N.sibling),v=o(N,y.props.children),v.return=g,g=v;break e}}else if(N.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Wn&&mm(P)===N.type){n(g,N.sibling),v=o(N,y.props),v.ref=di(g,N,y),v.return=g,g=v;break e}n(g,N);break}else t(g,N);N=N.sibling}y.type===so?(v=_r(y.props.children,g.mode,S,y.key),v.return=g,g=v):(S=bs(y.type,y.key,y.props,null,g.mode,S),S.ref=di(g,v,y),S.return=g,g=S)}return a(g);case ao:e:{for(N=y.key;v!==null;){if(v.key===N)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){n(g,v.sibling),v=o(v,y.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Nc(y,g.mode,S),v.return=g,g=v}return a(g);case Wn:return N=y._init,b(g,v,N(y._payload),S)}if(bi(y))return x(g,v,y,S);if(si(y))return m(g,v,y,S);Va(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(n(g,v.sibling),v=o(v,y),v.return=g,g=v):(n(g,v),v=$c(y,g.mode,S),v.return=g,g=v),a(g)):n(g,v)}return b}var Do=Ag(!0),Dg=Ag(!1),Bs=mr(null),Ws=null,vo=null,rd=null;function od(){rd=vo=Ws=null}function id(e){var t=Bs.current;we(Bs),e._currentValue=t}function _u(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 Ro(e,t){Ws=e,rd=vo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function At(e){var t=e._currentValue;if(rd!==e)if(e={context:e,memoizedValue:t,next:null},vo===null){if(Ws===null)throw Error(A(308));vo=e,Ws.dependencies={lanes:0,firstContext:e}}else vo=vo.next=e;return t}var Pr=null;function ad(e){Pr===null?Pr=[e]:Pr.push(e)}function Lg(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ad(t)):(n.next=o.next,o.next=n),t.interleaved=n,En(e,r)}function En(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 Vn=!1;function sd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ig(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 xn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,En(e,n)}return o=r.interleaved,o===null?(t.next=t,ad(r)):(t.next=o.next,o.next=t),r.interleaved=t,En(e,n)}function hs(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,Kf(e,n)}}function hm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Vs(e,t,n,r){var o=e.updateQueue;Vn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,d=c=l=null,s=i;do{var p=s.lane,h=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,m=s;switch(p=t,h=n,m.tag){case 1:if(x=m.payload,typeof x=="function"){f=x.call(h,f,p);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=m.payload,p=typeof x=="function"?x.call(h,f,p):x,p==null)break e;f=$e({},f,p);break e;case 2:Vn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=h,l=f):d=d.next=h,a|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Lr|=a,e.lanes=a,e.memoizedState=f}}function vm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ec.transition;Ec.transition={};try{e(!1),t()}finally{pe=n,Ec.transition=r}}function e0(){return Dt().memoizedState}function Rb(e,t,n){var r=rr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},t0(e))n0(t,n);else if(n=Lg(e,t,n,r),n!==null){var o=it();Wt(n,e,r,o),r0(n,t,r)}}function $b(e,t,n){var r=rr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(t0(e))n0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Ht(s,a)){var l=t.interleaved;l===null?(o.next=o,ad(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Lg(e,t,o,r),n!==null&&(o=it(),Wt(n,e,r,o),r0(n,t,r))}}function t0(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function n0(e,t){Mi=Ks=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function r0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kf(e,n)}}var Gs={readContext:At,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},Nb={readContext:At,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:ym,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gs(4194308,4,Xg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gs(4194308,4,e,t)},useInsertionEffect:function(e,t){return gs(4,2,e,t)},useMemo:function(e,t){var n=Xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xt();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=Rb.bind(null,Re,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:gm,useDebugValue:hd,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=gm(!1),t=e[0];return e=kb.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Re,o=Xt();if(Se){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),We===null)throw Error(A(349));Dr&30||Ug(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ym(Wg.bind(null,r,i,e),[e]),r.flags|=2048,ta(9,Bg.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xt(),t=We.identifierPrefix;if(Se){var n=yn,r=gn;n=(r&~(1<<32-Bt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qi++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{sc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wi(e):""}function a2(e){switch(e.tag){case 5:return wi(e.type);case 16:return wi("Lazy");case 13:return wi("Suspense");case 19:return wi("SuspenseList");case 0:case 2:case 15:return e=lc(e.type,!1),e;case 11:return e=lc(e.type.render,!1),e;case 1:return e=lc(e.type,!0),e;default:return""}}function au(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 so:return"Fragment";case ao:return"Portal";case ru:return"Profiler";case Bf:return"StrictMode";case ou:return"Suspense";case iu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fv:return(e.displayName||"Context")+".Consumer";case Iv:return(e._context.displayName||"Context")+".Provider";case Wf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vf:return t=e.displayName||null,t!==null?t:au(e.type)||"Memo";case Wn:t=e._payload,e=e._init;try{return au(e(t))}catch{}}return null}function s2(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 au(t);case 8:return t===Bf?"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 ar(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function l2(e){var t=zv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Da(e){e._valueTracker||(e._valueTracker=l2(e))}function Uv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _s(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 su(e,t){var n=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ar(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 Bv(e,t){t=t.checked,t!=null&&Uf(e,"checked",t,!1)}function lu(e,t){Bv(e,t);var n=ar(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")?cu(e,t.type,n):t.hasOwnProperty("defaultValue")&&cu(e,t.type,ar(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jp(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 cu(e,t,n){(t!=="number"||_s(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bi=Array.isArray;function Eo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=La.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $i={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},c2=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(e){c2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$i[t]=$i[e]})});function Kv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$i.hasOwnProperty(e)&&$i[e]?(""+t).trim():t+"px"}function Gv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Kv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var u2=$e({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 du(e,t){if(t){if(u2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function pu(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 mu=null;function Hf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hu=null,Co=null,Po=null;function Bp(e){if(e=ga(e)){if(typeof hu!="function")throw Error(A(280));var t=e.stateNode;t&&(t=Sl(t),hu(e.stateNode,e.type,t))}}function Yv(e){Co?Po?Po.push(e):Po=[e]:Co=e}function Xv(){if(Co){var e=Co,t=Po;if(Po=Co=null,Bp(e),t)for(e=0;e>>=0,e===0?32:31-(b2(e)/S2|0)|0}var Ia=64,Fa=4194304;function Si(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 As(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=Si(s):(i&=a,i!==0&&(r=Si(i)))}else a=n&~o,a!==0?r=Si(a):i!==0&&(r=Si(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ha(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bt(t),e[t]=n}function k2(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=_i),Zp=" ",Jp=!1;function hg(e,t){switch(e){case"keyup":return eb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lo=!1;function nb(e,t){switch(e){case"compositionend":return vg(t);case"keypress":return t.which!==32?null:(Jp=!0,Zp);case"textInput":return e=t.data,e===Zp&&Jp?null:e;default:return null}}function rb(e,t){if(lo)return e==="compositionend"||!qf&&hg(e,t)?(e=pg(),ms=Qf=Gn=null,lo=!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=nm(n)}}function wg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bg(){for(var e=window,t=_s();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_s(e.document)}return t}function ed(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 db(e){var t=bg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wg(n.ownerDocument.documentElement,n)){if(r!==null&&ed(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=rm(n,i);var a=rm(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,co=null,bu=null,Mi=null,Su=!1;function om(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Su||co==null||co!==_s(r)||(r=co,"selectionStart"in r&&ed(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}),Mi&&Yi(Mi,r)||(Mi=r,r=Is(bu,"onSelect"),0po||(e.current=$u[po],$u[po]=null,po--)}function ve(e,t){po++,$u[po]=e.current,e.current=t}var sr={},nt=mr(sr),ut=mr(!1),Or=sr;function Oo(e,t){var n=e.type.contextTypes;if(!n)return sr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ft(e){return e=e.childContextTypes,e!=null}function js(){we(ut),we(nt)}function fm(e,t,n){if(nt.current!==sr)throw Error(A(168));ve(nt,t),ve(ut,n)}function _g(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,s2(e)||"Unknown",o));return $e({},n,r)}function zs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sr,Or=nt.current,ve(nt,e),ve(ut,ut.current),!0}function dm(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=_g(e,t,Or),r.__reactInternalMemoizedMergedChildContext=e,we(ut),we(nt),ve(nt,e)):we(ut),ve(ut,n)}var vn=null,El=!1,Sc=!1;function Tg(e){vn===null?vn=[e]:vn.push(e)}function Cb(e){El=!0,Tg(e)}function hr(){if(!Sc&&vn!==null){Sc=!0;var e=0,t=pe;try{var n=vn;for(pe=1;e>=a,o-=a,gn=1<<32-Bt(t)+o|n<E?(O=R,R=null):O=R.sibling;var T=p(g,R,y[E],S);if(T===null){R===null&&(R=O);break}e&&R&&T.alternate===null&&t(g,R),v=i(T,v,E),N===null?P=T:N.sibling=T,N=T,R=O}if(E===y.length)return n(g,R),Se&&wr(g,E),P;if(R===null){for(;EE?(O=R,R=null):O=R.sibling;var I=p(g,R,T.value,S);if(I===null){R===null&&(R=O);break}e&&R&&I.alternate===null&&t(g,R),v=i(I,v,E),N===null?P=I:N.sibling=I,N=I,R=O}if(T.done)return n(g,R),Se&&wr(g,E),P;if(R===null){for(;!T.done;E++,T=y.next())T=f(g,T.value,S),T!==null&&(v=i(T,v,E),N===null?P=T:N.sibling=T,N=T);return Se&&wr(g,E),P}for(R=r(g,R);!T.done;E++,T=y.next())T=h(R,g,E,T.value,S),T!==null&&(e&&T.alternate!==null&&R.delete(T.key===null?E:T.key),v=i(T,v,E),N===null?P=T:N.sibling=T,N=T);return e&&R.forEach(function(L){return t(g,L)}),Se&&wr(g,E),P}function b(g,v,y,S){if(typeof y=="object"&&y!==null&&y.type===so&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Aa:e:{for(var P=y.key,N=v;N!==null;){if(N.key===P){if(P=y.type,P===so){if(N.tag===7){n(g,N.sibling),v=o(N,y.props.children),v.return=g,g=v;break e}}else if(N.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Wn&&hm(P)===N.type){n(g,N.sibling),v=o(N,y.props),v.ref=di(g,N,y),v.return=g,g=v;break e}n(g,N);break}else t(g,N);N=N.sibling}y.type===so?(v=_r(y.props.children,g.mode,S,y.key),v.return=g,g=v):(S=Ss(y.type,y.key,y.props,null,g.mode,S),S.ref=di(g,v,y),S.return=g,g=S)}return a(g);case ao:e:{for(N=y.key;v!==null;){if(v.key===N)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){n(g,v.sibling),v=o(v,y.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=_c(y,g.mode,S),v.return=g,g=v}return a(g);case Wn:return N=y._init,b(g,v,N(y._payload),S)}if(bi(y))return x(g,v,y,S);if(si(y))return m(g,v,y,S);Ha(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(n(g,v.sibling),v=o(v,y),v.return=g,g=v):(n(g,v),v=Nc(y,g.mode,S),v.return=g,g=v),a(g)):n(g,v)}return b}var Do=Dg(!0),Lg=Dg(!1),Ws=mr(null),Vs=null,vo=null,od=null;function id(){od=vo=Vs=null}function ad(e){var t=Ws.current;we(Ws),e._currentValue=t}function Tu(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 Ro(e,t){Vs=e,od=vo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function At(e){var t=e._currentValue;if(od!==e)if(e={context:e,memoizedValue:t,next:null},vo===null){if(Vs===null)throw Error(A(308));vo=e,Vs.dependencies={lanes:0,firstContext:e}}else vo=vo.next=e;return t}var Pr=null;function sd(e){Pr===null?Pr=[e]:Pr.push(e)}function Ig(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,sd(t)):(n.next=o.next,o.next=n),t.interleaved=n,En(e,r)}function En(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 Vn=!1;function ld(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fg(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 xn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,En(e,n)}return o=r.interleaved,o===null?(t.next=t,sd(r)):(t.next=o.next,o.next=t),r.interleaved=t,En(e,n)}function vs(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,Gf(e,n)}}function vm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Hs(e,t,n,r){var o=e.updateQueue;Vn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,d=c=l=null,s=i;do{var p=s.lane,h=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,m=s;switch(p=t,h=n,m.tag){case 1:if(x=m.payload,typeof x=="function"){f=x.call(h,f,p);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=m.payload,p=typeof x=="function"?x.call(h,f,p):x,p==null)break e;f=$e({},f,p);break e;case 2:Vn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=h,l=f):d=d.next=h,a|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Lr|=a,e.lanes=a,e.memoizedState=f}}function gm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Cc.transition;Cc.transition={};try{e(!1),t()}finally{pe=n,Cc.transition=r}}function t0(){return Dt().memoizedState}function $b(e,t,n){var r=rr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},n0(e))r0(t,n);else if(n=Ig(e,t,n,r),n!==null){var o=it();Wt(n,e,r,o),o0(n,t,r)}}function Nb(e,t,n){var r=rr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(n0(e))r0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Ht(s,a)){var l=t.interleaved;l===null?(o.next=o,sd(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Ig(e,t,o,r),n!==null&&(o=it(),Wt(n,e,r,o),o0(n,t,r))}}function n0(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function r0(e,t){Oi=Gs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function o0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gf(e,n)}}var Ys={readContext:At,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},_b={readContext:At,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:xm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ys(4194308,4,Qg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ys(4194308,4,e,t)},useInsertionEffect:function(e,t){return ys(4,2,e,t)},useMemo:function(e,t){var n=Xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xt();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=$b.bind(null,Re,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:ym,useDebugValue:vd,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=ym(!1),t=e[0];return e=Rb.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Re,o=Xt();if(Se){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),We===null)throw Error(A(349));Dr&30||Bg(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,xm(Vg.bind(null,r,i,e),[e]),r.flags|=2048,na(9,Wg.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xt(),t=We.identifierPrefix;if(Se){var n=yn,r=gn;n=(r&~(1<<32-Bt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ea++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Zt]=t,e[Qi]=r,p0(e,t,!1,!1),t.stateNode=e;e:{switch(a=du(n,r),n){case"dialog":xe("cancel",e),xe("close",e),o=r;break;case"iframe":case"object":case"embed":xe("load",e),o=r;break;case"video":case"audio":for(o=0;oFo&&(t.flags|=128,r=!0,pi(i,!1),t.lanes=4194304)}else{if(!r)if(e=Hs(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Se)return Je(t),null}else 2*Ae()-i.renderingStartTime>Fo&&n!==1073741824&&(t.flags|=128,r=!0,pi(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ae(),t.sibling=null,n=ke.current,ve(ke,r?n&1|2:n&1),t):(Je(t),null);case 22:case 23:return bd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?mt&1073741824&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function Ib(e,t){switch(td(t),t.tag){case 1:return ft(t.type)&&Fs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lo(),we(ut),we(nt),ud(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return cd(t),null;case 13:if(we(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Ao()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(ke),null;case 4:return Lo(),null;case 10:return id(t.type._context),null;case 22:case 23:return bd(),null;case 24:return null;default:return null}}var Ka=!1,qe=!1,Fb=typeof WeakSet=="function"?WeakSet:Set,U=null;function go(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Te(e,t,r)}else n.current=null}function ju(e,t,n){try{n()}catch(r){Te(e,t,r)}}var Nm=!1;function jb(e,t){if(Su=As,e=wg(),qf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=a),p===i&&++d===r&&(l=a),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Eu={focusedElem:e,selectionRange:n},As=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var m=x.memoizedProps,b=x.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:Ft(t.type,m),b);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(S){Te(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return x=Nm,Nm=!1,x}function Oi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ju(t,n,i)}o=o.next}while(o!==r)}}function Pl(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 zu(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 v0(e){var t=e.alternate;t!==null&&(e.alternate=null,v0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zt],delete t[Qi],delete t[ku],delete t[bb],delete t[Sb])),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 g0(e){return e.tag===5||e.tag===3||e.tag===4}function _m(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||g0(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 Uu(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=Is));else if(r!==4&&(e=e.child,e!==null))for(Uu(e,t,n),e=e.sibling;e!==null;)Uu(e,t,n),e=e.sibling}function Bu(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(Bu(e,t,n),e=e.sibling;e!==null;)Bu(e,t,n),e=e.sibling}var Ge=null,jt=!1;function Ln(e,t,n){for(n=n.child;n!==null;)y0(e,t,n),n=n.sibling}function y0(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(gl,n)}catch{}switch(n.tag){case 5:qe||go(n,t);case 6:var r=Ge,o=jt;Ge=null,Ln(e,t,n),Ge=r,jt=o,Ge!==null&&(jt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(jt?(e=Ge,n=n.stateNode,e.nodeType===8?wc(e.parentNode,n):e.nodeType===1&&wc(e,n),Hi(e)):wc(Ge,n.stateNode));break;case 4:r=Ge,o=jt,Ge=n.stateNode.containerInfo,jt=!0,Ln(e,t,n),Ge=r,jt=o;break;case 0:case 11:case 14:case 15:if(!qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&ju(n,t,a),o=o.next}while(o!==r)}Ln(e,t,n);break;case 1:if(!qe&&(go(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Te(n,t,s)}Ln(e,t,n);break;case 21:Ln(e,t,n);break;case 22:n.mode&1?(qe=(r=qe)||n.memoizedState!==null,Ln(e,t,n),qe=r):Ln(e,t,n);break;default:Ln(e,t,n)}}function Tm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fb),t.forEach(function(r){var o=Yb.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function It(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ub(r/1960))-r,10e?16:e,Yn===null)var r=!1;else{if(e=Yn,Yn=null,Qs=0,ce&6)throw Error(A(331));var o=ce;for(ce|=4,U=e.current;U!==null;){var i=U,a=i.child;if(U.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lAe()-xd?Nr(e,0):yd|=n),dt(e,t)}function k0(e,t){t===0&&(e.mode&1?(t=Ia,Ia<<=1,!(Ia&130023424)&&(Ia=4194304)):t=1);var n=it();e=En(e,t),e!==null&&(ma(e,t,n),dt(e,n))}function Gb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),k0(e,n)}function Yb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),k0(e,n)}var R0;R0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ut.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,Db(e,t,n);ct=!!(e.flags&131072)}else ct=!1,Se&&t.flags&1048576&&Tg(t,Us,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ys(e,t),e=t.pendingProps;var o=Oo(t,nt.current);Ro(t,n),o=dd(null,t,r,e,o,n);var i=pd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(i=!0,js(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,sd(t),o.updater=Cl,t.stateNode=o,o._reactInternals=t,Mu(t,r,e,n),t=Du(null,t,r,!0,i,n)):(t.tag=0,Se&&i&&ed(t),ot(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ys(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Qb(r),e=Ft(r,e),o){case 0:t=Au(null,t,r,e,n);break e;case 1:t=km(null,t,r,e,n);break e;case 11:t=Cm(null,t,r,e,n);break e;case 14:t=Pm(null,t,r,Ft(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Au(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),km(e,t,r,o,n);case 3:e:{if(u0(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Ig(e,t),Vs(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Io(Error(A(423)),t),t=Rm(e,t,r,n,o);break e}else if(r!==o){o=Io(Error(A(424)),t),t=Rm(e,t,r,n,o);break e}else for(gt=er(t.stateNode.containerInfo.firstChild),xt=t,Se=!0,Ut=null,n=Dg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ao(),r===o){t=Cn(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return Fg(t),e===null&&Nu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Cu(r,o)?a=null:i!==null&&Cu(r,i)&&(t.flags|=32),c0(e,t),ot(e,t,a,n),t.child;case 6:return e===null&&Nu(t),null;case 13:return f0(e,t,n);case 4:return ld(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Do(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Cm(e,t,r,o,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ve(Bs,r._currentValue),r._currentValue=a,i!==null)if(Ht(i.value,a)){if(i.children===o.children&&!ut.current){t=Cn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=xn(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),_u(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(A(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),_u(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ot(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ro(t,n),o=At(o),r=r(o),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,o=Ft(r,t.pendingProps),o=Ft(r.type,o),Pm(e,t,r,o,n);case 15:return s0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),ys(e,t),t.tag=1,ft(r)?(e=!0,js(t)):e=!1,Ro(t,n),o0(t,r,o),Mu(t,r,o,n),Du(null,t,r,!0,e,n);case 19:return d0(e,t,n);case 22:return l0(e,t,n)}throw Error(A(156,t.tag))};function $0(e,t){return tg(e,t)}function Xb(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 Mt(e,t,n,r){return new Xb(e,t,n,r)}function Ed(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qb(e){if(typeof e=="function")return Ed(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bf)return 11;if(e===Wf)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=Mt(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 bs(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Ed(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case so:return _r(n.children,o,i,t);case Uf:a=8,o|=8;break;case nu:return e=Mt(12,n,t,o|2),e.elementType=nu,e.lanes=i,e;case ru:return e=Mt(13,n,t,o),e.elementType=ru,e.lanes=i,e;case ou:return e=Mt(19,n,t,o),e.elementType=ou,e.lanes=i,e;case Fv:return Rl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lv:a=10;break e;case Iv:a=9;break e;case Bf:a=11;break e;case Wf:a=14;break e;case Wn:a=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Mt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function _r(e,t,n,r){return e=Mt(7,e,r,t),e.lanes=n,e}function Rl(e,t,n,r){return e=Mt(22,e,r,t),e.elementType=Fv,e.lanes=n,e.stateNode={isHidden:!1},e}function $c(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function Nc(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zb(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cc(0),this.expirationTimes=cc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Cd(e,t,n,r,o,i,a,s,l){return e=new Zb(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Mt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sd(i),e}function Jb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(M0)}catch(e){console.error(e)}}M0(),Mv.exports=Pt;var vr=Mv.exports;const $d=Mf(vr),rS=wv({__proto__:null,default:$d},[vr]);var jm=vr;eu.createRoot=jm.createRoot,eu.hydrateRoot=jm.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Rc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Au(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ob=typeof WeakMap=="function"?WeakMap:Map;function a0(e,t,n){n=xn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qs||(Qs=!0,Vu=r),Au(e,t)},n}function s0(e,t,n){n=xn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Au(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Au(e,t),typeof r!="function"&&(nr===null?nr=new Set([this]):nr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Sm(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ob;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Gb.bind(null,e,t,n),t.then(e,e))}function Em(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 Cm(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=xn(-1,1),t.tag=2,tr(n,t,1))),n.lanes|=1),e)}var Ab=Nn.ReactCurrentOwner,ct=!1;function ot(e,t,n,r){t.child=e===null?Lg(t,null,n,r):Do(t,e.child,n,r)}function Pm(e,t,n,r,o){n=n.render;var i=t.ref;return Ro(t,o),r=pd(e,t,n,r,i,o),n=md(),e!==null&&!ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Cn(e,t,o)):(Se&&n&&td(t),t.flags|=1,ot(e,t,r,o),t.child)}function km(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Cd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,l0(e,t,i,r,o)):(e=Ss(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Yi,n(a,r)&&e.ref===t.ref)return Cn(e,t,o)}return t.flags|=1,e=or(i,r),e.ref=t.ref,e.return=t,t.child=e}function l0(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Yi(i,r)&&e.ref===t.ref)if(ct=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(ct=!0);else return t.lanes=e.lanes,Cn(e,t,o)}return Du(e,t,n,r,o)}function c0(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(yo,mt),mt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ve(yo,mt),mt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ve(yo,mt),mt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ve(yo,mt),mt|=r;return ot(e,t,o,n),t.child}function u0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Du(e,t,n,r,o){var i=ft(n)?Or:nt.current;return i=Oo(t,i),Ro(t,o),n=pd(e,t,n,r,i,o),r=md(),e!==null&&!ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Cn(e,t,o)):(Se&&r&&td(t),t.flags|=1,ot(e,t,n,o),t.child)}function Rm(e,t,n,r,o){if(ft(n)){var i=!0;zs(t)}else i=!1;if(Ro(t,o),t.stateNode===null)xs(e,t),i0(t,n,r),Ou(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=At(c):(c=ft(n)?Or:nt.current,c=Oo(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&bm(t,a,r,c),Vn=!1;var p=t.memoizedState;a.state=p,Hs(t,r,a,o),l=t.memoizedState,s!==r||p!==l||ut.current||Vn?(typeof d=="function"&&(Mu(t,n,d,r),l=t.memoizedState),(s=Vn||wm(t,n,s,r,p,l,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fg(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ft(t.type,s),a.props=c,f=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=At(l):(l=ft(n)?Or:nt.current,l=Oo(t,l));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||p!==l)&&bm(t,a,r,l),Vn=!1,p=t.memoizedState,a.state=p,Hs(t,r,a,o);var x=t.memoizedState;s!==f||p!==x||ut.current||Vn?(typeof h=="function"&&(Mu(t,n,h,r),x=t.memoizedState),(c=Vn||wm(t,n,c,r,p,x,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,x,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,x,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),a.props=r,a.state=x,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Lu(e,t,n,r,i,o)}function Lu(e,t,n,r,o,i){u0(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&dm(t,n,!1),Cn(e,t,i);r=t.stateNode,Ab.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Do(t,e.child,null,i),t.child=Do(t,null,s,i)):ot(e,t,s,i),t.memoizedState=r.state,o&&dm(t,n,!0),t.child}function f0(e){var t=e.stateNode;t.pendingContext?fm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&fm(e,t.context,!1),cd(e,t.containerInfo)}function $m(e,t,n,r,o){return Ao(),rd(o),t.flags|=256,ot(e,t,n,r),t.child}var Iu={dehydrated:null,treeContext:null,retryLane:0};function Fu(e){return{baseLanes:e,cachePool:null,transitions:null}}function d0(e,t,n){var r=t.pendingProps,o=ke.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ve(ke,o&1),e===null)return _u(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):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=$l(a,r,0,null),e=_r(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Fu(n),t.memoizedState=Iu,e):gd(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return Db(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=or(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=or(s,i):(i=_r(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Fu(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Iu,r}return i=e.child,e=i.sibling,r=or(i,{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 gd(e,t){return t=$l({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ka(e,t,n,r){return r!==null&&rd(r),Do(t,e.child,null,n),e=gd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Db(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Rc(Error(A(422))),Ka(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=$l({mode:"visible",children:r.children},o,0,null),i=_r(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Do(t,e.child,null,a),t.child.memoizedState=Fu(a),t.memoizedState=Iu,i);if(!(t.mode&1))return Ka(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(A(419)),r=Rc(i,r,void 0),Ka(e,t,a,r)}if(s=(a&e.childLanes)!==0,ct||s){if(r=We,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,En(e,o),Wt(r,e,o,-1))}return Ed(),r=Rc(Error(A(421))),Ka(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Yb.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,gt=er(o.nextSibling),xt=t,Se=!0,Ut=null,e!==null&&(_t[Tt++]=gn,_t[Tt++]=yn,_t[Tt++]=Ar,gn=e.id,yn=e.overflow,Ar=t),t=gd(t,r.children),t.flags|=4096,t)}function Nm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Tu(e.return,t,n)}function $c(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function p0(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ot(e,t,r.children,n),r=ke.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&&Nm(e,n,t);else if(e.tag===19)Nm(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(ve(ke,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ks(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$c(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ks(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$c(t,!0,n,null,i);break;case"together":$c(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Cn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Lr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=or(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=or(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Lb(e,t,n){switch(t.tag){case 3:f0(t),Ao();break;case 5:jg(t);break;case 1:ft(t.type)&&zs(t);break;case 4:cd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ve(Ws,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ve(ke,ke.current&1),t.flags|=128,null):n&t.child.childLanes?d0(e,t,n):(ve(ke,ke.current&1),e=Cn(e,t,n),e!==null?e.sibling:null);ve(ke,ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return p0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ve(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,c0(e,t,n)}return Cn(e,t,n)}var m0,ju,h0,v0;m0=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}};ju=function(){};h0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,kr(nn.current);var i=null;switch(n){case"input":o=su(e,o),r=su(e,r),i=[];break;case"select":o=$e({},o,{value:void 0}),r=$e({},r,{value:void 0}),i=[];break;case"textarea":o=uu(e,o),r=uu(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Fs)}du(n,r);var a;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ui.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(s=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ui.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&xe("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};v0=function(e,t,n,r){n!==r&&(t.flags|=4)};function pi(e,t){if(!Se)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 qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ib(e,t,n){var r=t.pendingProps;switch(nd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return ft(t.type)&&js(),qe(t),null;case 3:return r=t.stateNode,Lo(),we(ut),we(nt),fd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Va(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ut!==null&&(Gu(Ut),Ut=null))),ju(e,t),qe(t),null;case 5:ud(t);var o=kr(qi.current);if(n=t.type,e!==null&&t.stateNode!=null)h0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(A(166));return qe(t),null}if(e=kr(nn.current),Va(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Zt]=t,r[Zi]=i,e=(t.mode&1)!==0,n){case"dialog":xe("cancel",r),xe("close",r);break;case"iframe":case"object":case"embed":xe("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Zt]=t,e[Zi]=r,m0(e,t,!1,!1),t.stateNode=e;e:{switch(a=pu(n,r),n){case"dialog":xe("cancel",e),xe("close",e),o=r;break;case"iframe":case"object":case"embed":xe("load",e),o=r;break;case"video":case"audio":for(o=0;oFo&&(t.flags|=128,r=!0,pi(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ks(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Se)return qe(t),null}else 2*Ae()-i.renderingStartTime>Fo&&n!==1073741824&&(t.flags|=128,r=!0,pi(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ae(),t.sibling=null,n=ke.current,ve(ke,r?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return Sd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?mt&1073741824&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function Fb(e,t){switch(nd(t),t.tag){case 1:return ft(t.type)&&js(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lo(),we(ut),we(nt),fd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ud(t),null;case 13:if(we(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Ao()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(ke),null;case 4:return Lo(),null;case 10:return ad(t.type._context),null;case 22:case 23:return Sd(),null;case 24:return null;default:return null}}var Ga=!1,et=!1,jb=typeof WeakSet=="function"?WeakSet:Set,U=null;function go(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Te(e,t,r)}else n.current=null}function zu(e,t,n){try{n()}catch(r){Te(e,t,r)}}var _m=!1;function zb(e,t){if(Eu=Ds,e=bg(),ed(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=a),p===i&&++d===r&&(l=a),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Cu={focusedElem:e,selectionRange:n},Ds=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var m=x.memoizedProps,b=x.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:Ft(t.type,m),b);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(S){Te(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return x=_m,_m=!1,x}function Ai(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&zu(t,n,i)}o=o.next}while(o!==r)}}function kl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Uu(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 g0(e){var t=e.alternate;t!==null&&(e.alternate=null,g0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zt],delete t[Zi],delete t[Ru],delete t[Sb],delete t[Eb])),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 y0(e){return e.tag===5||e.tag===3||e.tag===4}function Tm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||y0(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 Bu(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=Fs));else if(r!==4&&(e=e.child,e!==null))for(Bu(e,t,n),e=e.sibling;e!==null;)Bu(e,t,n),e=e.sibling}function Wu(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(Wu(e,t,n),e=e.sibling;e!==null;)Wu(e,t,n),e=e.sibling}var Ge=null,jt=!1;function Ln(e,t,n){for(n=n.child;n!==null;)x0(e,t,n),n=n.sibling}function x0(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(yl,n)}catch{}switch(n.tag){case 5:et||go(n,t);case 6:var r=Ge,o=jt;Ge=null,Ln(e,t,n),Ge=r,jt=o,Ge!==null&&(jt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(jt?(e=Ge,n=n.stateNode,e.nodeType===8?bc(e.parentNode,n):e.nodeType===1&&bc(e,n),Ki(e)):bc(Ge,n.stateNode));break;case 4:r=Ge,o=jt,Ge=n.stateNode.containerInfo,jt=!0,Ln(e,t,n),Ge=r,jt=o;break;case 0:case 11:case 14:case 15:if(!et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&zu(n,t,a),o=o.next}while(o!==r)}Ln(e,t,n);break;case 1:if(!et&&(go(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Te(n,t,s)}Ln(e,t,n);break;case 21:Ln(e,t,n);break;case 22:n.mode&1?(et=(r=et)||n.memoizedState!==null,Ln(e,t,n),et=r):Ln(e,t,n);break;default:Ln(e,t,n)}}function Mm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jb),t.forEach(function(r){var o=Xb.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function It(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Bb(r/1960))-r,10e?16:e,Yn===null)var r=!1;else{if(e=Yn,Yn=null,Zs=0,ce&6)throw Error(A(331));var o=ce;for(ce|=4,U=e.current;U!==null;){var i=U,a=i.child;if(U.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lAe()-wd?Nr(e,0):xd|=n),dt(e,t)}function R0(e,t){t===0&&(e.mode&1?(t=Fa,Fa<<=1,!(Fa&130023424)&&(Fa=4194304)):t=1);var n=it();e=En(e,t),e!==null&&(ha(e,t,n),dt(e,n))}function Yb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),R0(e,n)}function Xb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),R0(e,n)}var $0;$0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ut.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,Lb(e,t,n);ct=!!(e.flags&131072)}else ct=!1,Se&&t.flags&1048576&&Mg(t,Bs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xs(e,t),e=t.pendingProps;var o=Oo(t,nt.current);Ro(t,n),o=pd(null,t,r,e,o,n);var i=md();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(i=!0,zs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ld(t),o.updater=Pl,t.stateNode=o,o._reactInternals=t,Ou(t,r,e,n),t=Lu(null,t,r,!0,i,n)):(t.tag=0,Se&&i&&td(t),ot(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xs(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Zb(r),e=Ft(r,e),o){case 0:t=Du(null,t,r,e,n);break e;case 1:t=Rm(null,t,r,e,n);break e;case 11:t=Pm(null,t,r,e,n);break e;case 14:t=km(null,t,r,Ft(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Du(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Rm(e,t,r,o,n);case 3:e:{if(f0(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Fg(e,t),Hs(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Io(Error(A(423)),t),t=$m(e,t,r,n,o);break e}else if(r!==o){o=Io(Error(A(424)),t),t=$m(e,t,r,n,o);break e}else for(gt=er(t.stateNode.containerInfo.firstChild),xt=t,Se=!0,Ut=null,n=Lg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ao(),r===o){t=Cn(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return jg(t),e===null&&_u(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Pu(r,o)?a=null:i!==null&&Pu(r,i)&&(t.flags|=32),u0(e,t),ot(e,t,a,n),t.child;case 6:return e===null&&_u(t),null;case 13:return d0(e,t,n);case 4:return cd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Do(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Pm(e,t,r,o,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ve(Ws,r._currentValue),r._currentValue=a,i!==null)if(Ht(i.value,a)){if(i.children===o.children&&!ut.current){t=Cn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=xn(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Tu(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(A(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Tu(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ot(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ro(t,n),o=At(o),r=r(o),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,o=Ft(r,t.pendingProps),o=Ft(r.type,o),km(e,t,r,o,n);case 15:return l0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),xs(e,t),t.tag=1,ft(r)?(e=!0,zs(t)):e=!1,Ro(t,n),i0(t,r,o),Ou(t,r,o,n),Lu(null,t,r,!0,e,n);case 19:return p0(e,t,n);case 22:return c0(e,t,n)}throw Error(A(156,t.tag))};function N0(e,t){return ng(e,t)}function Qb(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 Mt(e,t,n,r){return new Qb(e,t,n,r)}function Cd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zb(e){if(typeof e=="function")return Cd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wf)return 11;if(e===Vf)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=Mt(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 Ss(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Cd(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case so:return _r(n.children,o,i,t);case Bf:a=8,o|=8;break;case ru:return e=Mt(12,n,t,o|2),e.elementType=ru,e.lanes=i,e;case ou:return e=Mt(13,n,t,o),e.elementType=ou,e.lanes=i,e;case iu:return e=Mt(19,n,t,o),e.elementType=iu,e.lanes=i,e;case jv:return $l(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Iv:a=10;break e;case Fv:a=9;break e;case Wf:a=11;break e;case Vf:a=14;break e;case Wn:a=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Mt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function _r(e,t,n,r){return e=Mt(7,e,r,t),e.lanes=n,e}function $l(e,t,n,r){return e=Mt(22,e,r,t),e.elementType=jv,e.lanes=n,e.stateNode={isHidden:!1},e}function Nc(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function _c(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jb(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=uc(0),this.expirationTimes=uc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Pd(e,t,n,r,o,i,a,s,l){return e=new Jb(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Mt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ld(i),e}function qb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(O0)}catch(e){console.error(e)}}O0(),Ov.exports=Pt;var vr=Ov.exports;const Nd=Of(vr),oS=bv({__proto__:null,default:Nd},[vr]);var zm=vr;tu.createRoot=zm.createRoot,tu.hydrateRoot=zm.hydrateRoot;/** * @remix-run/router v1.19.2 * * Copyright (c) Remix Software Inc. @@ -46,9 +46,9 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function jo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iS(){return Math.random().toString(36).substr(2,8)}function Um(e,t){return{usr:e.state,key:e.key,idx:t}}function ra(e,t,n,r){return n===void 0&&(n=null),Pe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gr(t):t,{state:n,key:t&&t.key||r||iS()})}function Fr(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 gr(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 aS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Ie.Pop,l=null,c=d();c==null&&(c=0,a.replaceState(Pe({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=Ie.Pop;let b=d(),g=b==null?null:b-c;c=b,l&&l({action:s,location:m.location,delta:g})}function p(b,g){s=Ie.Push;let v=ra(m.location,b,g);c=d()+1;let y=Um(v,c),S=m.createHref(v);try{a.pushState(y,"",S)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(S)}i&&l&&l({action:s,location:m.location,delta:1})}function h(b,g){s=Ie.Replace;let v=ra(m.location,b,g);c=d();let y=Um(v,c),S=m.createHref(v);a.replaceState(y,"",S),i&&l&&l({action:s,location:m.location,delta:0})}function x(b){let g=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof b=="string"?b:Fr(b);return v=v.replace(/ $/,"%20"),ie(g,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,g)}let m={get action(){return s},get location(){return e(o,a)},listen(b){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(zm,f),l=b,()=>{o.removeEventListener(zm,f),l=null}},createHref(b){return t(o,b)},createURL:x,encodeLocation(b){let g=x(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:p,replace:h,go(b){return a.go(b)}};return m}var me;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(me||(me={}));const sS=new Set(["lazy","caseSensitive","path","id","index","children"]);function lS(e){return e.index===!0}function oa(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],s=typeof o.id=="string"?o.id:a.join("-");if(ie(o.index!==!0||!o.children,"Cannot specify children on an index route"),ie(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),lS(o)){let l=Pe({},o,t(o),{id:s});return r[s]=l,l}else{let l=Pe({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=oa(o.children,t,a,r)),l}})}function Sr(e,t,n){return n===void 0&&(n="/"),Ss(e,t,n,!1)}function Ss(e,t,n,r){let o=typeof t=="string"?gr(t):t,i=Yo(o.pathname||"/",n);if(i==null)return null;let a=O0(e);uS(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(ie(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=wn([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(ie(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),O0(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:gS(c,i.index),routesMeta:d})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of A0(i.path))o(i,a,l)}),t}function A0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=A0(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function uS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:yS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const fS=/^:[\w-]+$/,dS=3,pS=2,mS=1,hS=10,vS=-2,Bm=e=>e==="*";function gS(e,t){let n=e.split("/"),r=n.length;return n.some(Bm)&&(r+=vS),t&&(r+=pS),n.filter(o=>!Bm(o)).reduce((o,i)=>o+(fS.test(i)?dS:i===""?mS:hS),r)}function yS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function xS(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:p,isOptional:h}=d;if(p==="*"){let m=s[f]||"";a=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const x=s[f];return h&&!x?c[p]=void 0:c[p]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function wS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),jo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function bS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jo(!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 Yo(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 SS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?gr(e):e;return{pathname:n?n.startsWith("/")?n:ES(n,t):t,search:PS(r),hash:kS(o)}}function ES(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function _c(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 D0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nd(e,t){let n=D0(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function _d(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=gr(e):(o=Pe({},e),ie(!o.pathname||!o.pathname.includes("?"),_c("?","pathname","search",o)),ie(!o.pathname||!o.pathname.includes("#"),_c("#","pathname","hash",o)),ie(!o.search||!o.search.includes("#"),_c("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=SS(o,s),c=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const wn=e=>e.join("/").replace(/\/\/+/g,"/"),CS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),PS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class qs{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Ml(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const L0=["post","put","patch","delete"],RS=new Set(L0),$S=["get",...L0],NS=new Set($S),_S=new Set([301,302,303,307,308]),TS=new Set([307,308]),Tc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},MS={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},hi={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Td=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,OS=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),I0="remix-router-transitions";function AS(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ie(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let C=e.detectErrorBoundary;o=k=>({hasErrorBoundary:C(k)})}else o=OS;let i={},a=oa(e.routes,o,void 0,i),s,l=e.basename||"/",c=e.unstable_dataStrategy||zS,d=e.unstable_patchRoutesOnNavigation,f=Pe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,h=new Set,x=1e3,m=new Set,b=null,g=null,v=null,y=e.hydrationData!=null,S=Sr(a,e.history.location,l),P=null;if(S==null&&!d){let C=rt(404,{pathname:e.history.location.pathname}),{matches:k,route:$}=Jm(a);S=k,P={[$.id]:C}}S&&!e.hydrationData&&ka(S,a,e.history.location.pathname).active&&(S=null);let N;if(S)if(S.some(C=>C.route.lazy))N=!1;else if(!S.some(C=>C.route.loader))N=!0;else if(f.v7_partialHydration){let C=e.hydrationData?e.hydrationData.loaderData:null,k=e.hydrationData?e.hydrationData.errors:null,$=M=>M.route.loader?typeof M.route.loader=="function"&&M.route.loader.hydrate===!0?!1:C&&C[M.route.id]!==void 0||k&&k[M.route.id]!==void 0:!0;if(k){let M=S.findIndex(z=>k[z.route.id]!==void 0);N=S.slice(0,M+1).every($)}else N=S.every($)}else N=e.hydrationData!=null;else if(N=!1,S=[],f.v7_partialHydration){let C=ka(null,a,e.history.location.pathname);C.active&&C.matches&&(S=C.matches)}let R,E={historyAction:e.history.action,location:e.history.location,matches:S,initialized:N,navigation:Tc,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||P,fetchers:new Map,blockers:new Map},O=Ie.Pop,T=!1,I,L=!1,q=new Map,W=null,X=!1,ee=!1,Z=[],D=new Set,_=new Map,j=0,Q=-1,ne=new Map,Ce=new Set,De=new Map,He=new Map,fe=new Set,Me=new Map,$t=new Map,Qe=new Map,ln;function Xl(){if(p=e.history.listen(C=>{let{action:k,location:$,delta:M}=C;if(ln){ln(),ln=void 0;return}jo($t.size===0||M!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let z=kp({currentLocation:E.location,nextLocation:$,historyAction:k});if(z&&M!=null){let K=new Promise(J=>{ln=J});e.history.go(M*-1),Ca(z,{state:"blocked",location:$,proceed(){Ca(z,{state:"proceeding",proceed:void 0,reset:void 0,location:$}),K.then(()=>e.history.go(M))},reset(){let J=new Map(E.blockers);J.set(z,hi),Ke({blockers:J})}});return}return cn(k,$)}),n){tE(t,q);let C=()=>nE(t,q);t.addEventListener("pagehide",C),W=()=>t.removeEventListener("pagehide",C)}return E.initialized||cn(Ie.Pop,E.location,{initialHydration:!0}),R}function Ql(){p&&p(),W&&W(),h.clear(),I&&I.abort(),E.fetchers.forEach((C,k)=>Ea(k)),E.blockers.forEach((C,k)=>Pp(k))}function Zl(C){return h.add(C),()=>h.delete(C)}function Ke(C,k){k===void 0&&(k={}),E=Pe({},E,C);let $=[],M=[];f.v7_fetcherPersist&&E.fetchers.forEach((z,K)=>{z.state==="idle"&&(fe.has(K)?M.push(K):$.push(K))}),[...h].forEach(z=>z(E,{deletedFetchers:M,unstable_viewTransitionOpts:k.viewTransitionOpts,unstable_flushSync:k.flushSync===!0})),f.v7_fetcherPersist&&($.forEach(z=>E.fetchers.delete(z)),M.forEach(z=>Ea(z)))}function Nt(C,k,$){var M,z;let{flushSync:K}=$===void 0?{}:$,J=E.actionData!=null&&E.navigation.formMethod!=null&&zt(E.navigation.formMethod)&&E.navigation.state==="loading"&&((M=C.state)==null?void 0:M._isRedirect)!==!0,F;k.actionData?Object.keys(k.actionData).length>0?F=k.actionData:F=null:J?F=E.actionData:F=null;let Y=k.loaderData?Qm(E.loaderData,k.loaderData,k.matches||[],k.errors):E.loaderData,V=E.blockers;V.size>0&&(V=new Map(V),V.forEach((de,ge)=>V.set(ge,hi)));let H=T===!0||E.navigation.formMethod!=null&&zt(E.navigation.formMethod)&&((z=C.state)==null?void 0:z._isRedirect)!==!0;s&&(a=s,s=void 0),X||O===Ie.Pop||(O===Ie.Push?e.history.push(C,C.state):O===Ie.Replace&&e.history.replace(C,C.state));let ue;if(O===Ie.Pop){let de=q.get(E.location.pathname);de&&de.has(C.pathname)?ue={currentLocation:E.location,nextLocation:C}:q.has(C.pathname)&&(ue={currentLocation:C,nextLocation:E.location})}else if(L){let de=q.get(E.location.pathname);de?de.add(C.pathname):(de=new Set([C.pathname]),q.set(E.location.pathname,de)),ue={currentLocation:E.location,nextLocation:C}}Ke(Pe({},k,{actionData:F,loaderData:Y,historyAction:O,location:C,initialized:!0,navigation:Tc,revalidation:"idle",restoreScrollPosition:$p(C,k.matches||E.matches),preventScrollReset:H,blockers:V}),{viewTransitionOpts:ue,flushSync:K===!0}),O=Ie.Pop,T=!1,L=!1,X=!1,ee=!1,Z=[]}async function oi(C,k){if(typeof C=="number"){e.history.go(C);return}let $=Gu(E.location,E.matches,l,f.v7_prependBasename,C,f.v7_relativeSplatPath,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:M,submission:z,error:K}=Vm(f.v7_normalizeFormMethod,!1,$,k),J=E.location,F=ra(E.location,M,k&&k.state);F=Pe({},F,e.history.encodeLocation(F));let Y=k&&k.replace!=null?k.replace:void 0,V=Ie.Push;Y===!0?V=Ie.Replace:Y===!1||z!=null&&zt(z.formMethod)&&z.formAction===E.location.pathname+E.location.search&&(V=Ie.Replace);let H=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,ue=(k&&k.unstable_flushSync)===!0,de=kp({currentLocation:J,nextLocation:F,historyAction:V});if(de){Ca(de,{state:"blocked",location:F,proceed(){Ca(de,{state:"proceeding",proceed:void 0,reset:void 0,location:F}),oi(C,k)},reset(){let ge=new Map(E.blockers);ge.set(de,hi),Ke({blockers:ge})}});return}return await cn(V,F,{submission:z,pendingError:K,preventScrollReset:H,replace:k&&k.replace,enableViewTransition:k&&k.unstable_viewTransition,flushSync:ue})}function Jl(){if(tc(),Ke({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){cn(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}cn(O||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation,enableViewTransition:L===!0})}}async function cn(C,k,$){I&&I.abort(),I=null,O=C,X=($&&$.startUninterruptedRevalidation)===!0,$w(E.location,E.matches),T=($&&$.preventScrollReset)===!0,L=($&&$.enableViewTransition)===!0;let M=s||a,z=$&&$.overrideNavigation,K=Sr(M,k,l),J=($&&$.flushSync)===!0,F=ka(K,M,k.pathname);if(F.active&&F.matches&&(K=F.matches),!K){let{error:le,notFoundMatches:Ue,route:Le}=nc(k.pathname);Nt(k,{matches:Ue,loaderData:{},errors:{[Le.id]:le}},{flushSync:J});return}if(E.initialized&&!ee&&KS(E.location,k)&&!($&&$.submission&&zt($.submission.formMethod))){Nt(k,{matches:K},{flushSync:J});return}I=new AbortController;let Y=eo(e.history,k,I.signal,$&&$.submission),V;if($&&$.pendingError)V=[xo(K).route.id,{type:me.error,error:$.pendingError}];else if($&&$.submission&&zt($.submission.formMethod)){let le=await ql(Y,k,$.submission,K,F.active,{replace:$.replace,flushSync:J});if(le.shortCircuited)return;if(le.pendingActionResult){let[Ue,Le]=le.pendingActionResult;if(ht(Le)&&Ml(Le.error)&&Le.error.status===404){I=null,Nt(k,{matches:le.matches,loaderData:{},errors:{[Ue]:Le.error}});return}}K=le.matches||K,V=le.pendingActionResult,z=Mc(k,$.submission),J=!1,F.active=!1,Y=eo(e.history,Y.url,Y.signal)}let{shortCircuited:H,matches:ue,loaderData:de,errors:ge}=await ec(Y,k,K,F.active,z,$&&$.submission,$&&$.fetcherSubmission,$&&$.replace,$&&$.initialHydration===!0,J,V);H||(I=null,Nt(k,Pe({matches:ue||K},Zm(V),{loaderData:de,errors:ge})))}async function ql(C,k,$,M,z,K){K===void 0&&(K={}),tc();let J=qS(k,$);if(Ke({navigation:J},{flushSync:K.flushSync===!0}),z){let V=await Ra(M,k.pathname,C.signal);if(V.type==="aborted")return{shortCircuited:!0};if(V.type==="error"){let{boundaryId:H,error:ue}=Pa(k.pathname,V);return{matches:V.partialMatches,pendingActionResult:[H,{type:me.error,error:ue}]}}else if(V.matches)M=V.matches;else{let{notFoundMatches:H,error:ue,route:de}=nc(k.pathname);return{matches:H,pendingActionResult:[de.id,{type:me.error,error:ue}]}}}let F,Y=Ci(M,k);if(!Y.route.action&&!Y.route.lazy)F={type:me.error,error:rt(405,{method:C.method,pathname:k.pathname,routeId:Y.route.id})};else if(F=(await ii("action",E,C,[Y],M,null))[Y.route.id],C.signal.aborted)return{shortCircuited:!0};if(Rr(F)){let V;return K&&K.replace!=null?V=K.replace:V=Gm(F.response.headers.get("Location"),new URL(C.url),l)===E.location.pathname+E.location.search,await xr(C,F,!0,{submission:$,replace:V}),{shortCircuited:!0}}if(Xn(F))throw rt(400,{type:"defer-action"});if(ht(F)){let V=xo(M,Y.route.id);return(K&&K.replace)!==!0&&(O=Ie.Push),{matches:M,pendingActionResult:[V.route.id,F]}}return{matches:M,pendingActionResult:[Y.route.id,F]}}async function ec(C,k,$,M,z,K,J,F,Y,V,H){let ue=z||Mc(k,K),de=K||J||eh(ue),ge=!X&&(!f.v7_partialHydration||!Y);if(M){if(ge){let Ne=yr(H);Ke(Pe({navigation:ue},Ne!==void 0?{actionData:Ne}:{}),{flushSync:V})}let re=await Ra($,k.pathname,C.signal);if(re.type==="aborted")return{shortCircuited:!0};if(re.type==="error"){let{boundaryId:Ne,error:pt}=Pa(k.pathname,re);return{matches:re.partialMatches,loaderData:{},errors:{[Ne]:pt}}}else if(re.matches)$=re.matches;else{let{error:Ne,notFoundMatches:pt,route:_e}=nc(k.pathname);return{matches:pt,loaderData:{},errors:{[_e.id]:Ne}}}}let le=s||a,[Ue,Le]=Hm(e.history,E,$,de,k,f.v7_partialHydration&&Y===!0,f.v7_skipActionErrorRevalidation,ee,Z,D,fe,De,Ce,le,l,H);if(rc(re=>!($&&$.some(Ne=>Ne.route.id===re))||Ue&&Ue.some(Ne=>Ne.route.id===re)),Q=++j,Ue.length===0&&Le.length===0){let re=Ep();return Nt(k,Pe({matches:$,loaderData:{},errors:H&&ht(H[1])?{[H[0]]:H[1].error}:null},Zm(H),re?{fetchers:new Map(E.fetchers)}:{}),{flushSync:V}),{shortCircuited:!0}}if(ge){let re={};if(!M){re.navigation=ue;let Ne=yr(H);Ne!==void 0&&(re.actionData=Ne)}Le.length>0&&(re.fetchers=bw(Le)),Ke(re,{flushSync:V})}Le.forEach(re=>{_.has(re.key)&&An(re.key),re.controller&&_.set(re.key,re.controller)});let ai=()=>Le.forEach(re=>An(re.key));I&&I.signal.addEventListener("abort",ai);let{loaderResults:fn,fetcherResults:Jr}=await wp(E,$,Ue,Le,C);if(C.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",ai),Le.forEach(re=>_.delete(re.key));let Dn=Xa(fn);if(Dn)return await xr(C,Dn.result,!0,{replace:F}),{shortCircuited:!0};if(Dn=Xa(Jr),Dn)return Ce.add(Dn.key),await xr(C,Dn.result,!0,{replace:F}),{shortCircuited:!0};let{loaderData:$a,errors:dn}=Xm(E,$,Ue,fn,H,Le,Jr,Me);Me.forEach((re,Ne)=>{re.subscribe(pt=>{(pt||re.done)&&Me.delete(Ne)})}),f.v7_partialHydration&&Y&&E.errors&&Object.entries(E.errors).filter(re=>{let[Ne]=re;return!Ue.some(pt=>pt.route.id===Ne)}).forEach(re=>{let[Ne,pt]=re;dn=Object.assign(dn||{},{[Ne]:pt})});let Na=Ep(),_a=Cp(Q),Ta=Na||_a||Le.length>0;return Pe({matches:$,loaderData:$a,errors:dn},Ta?{fetchers:new Map(E.fetchers)}:{})}function yr(C){if(C&&!ht(C[1]))return{[C[0]]:C[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function bw(C){return C.forEach(k=>{let $=E.fetchers.get(k.key),M=vi(void 0,$?$.data:void 0);E.fetchers.set(k.key,M)}),new Map(E.fetchers)}function Sw(C,k,$,M){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");_.has(C)&&An(C);let z=(M&&M.unstable_flushSync)===!0,K=s||a,J=Gu(E.location,E.matches,l,f.v7_prependBasename,$,f.v7_relativeSplatPath,k,M==null?void 0:M.relative),F=Sr(K,J,l),Y=ka(F,K,J);if(Y.active&&Y.matches&&(F=Y.matches),!F){un(C,k,rt(404,{pathname:J}),{flushSync:z});return}let{path:V,submission:H,error:ue}=Vm(f.v7_normalizeFormMethod,!0,J,M);if(ue){un(C,k,ue,{flushSync:z});return}let de=Ci(F,V);if(T=(M&&M.preventScrollReset)===!0,H&&zt(H.formMethod)){Ew(C,k,V,de,F,Y.active,z,H);return}De.set(C,{routeId:k,path:V}),Cw(C,k,V,de,F,Y.active,z,H)}async function Ew(C,k,$,M,z,K,J,F){tc(),De.delete(C);function Y(_e){if(!_e.route.action&&!_e.route.lazy){let pn=rt(405,{method:F.formMethod,pathname:$,routeId:k});return un(C,k,pn,{flushSync:J}),!0}return!1}if(!K&&Y(M))return;let V=E.fetchers.get(C);On(C,eE(F,V),{flushSync:J});let H=new AbortController,ue=eo(e.history,$,H.signal,F);if(K){let _e=await Ra(z,$,ue.signal);if(_e.type==="aborted")return;if(_e.type==="error"){let{error:pn}=Pa($,_e);un(C,k,pn,{flushSync:J});return}else if(_e.matches){if(z=_e.matches,M=Ci(z,$),Y(M))return}else{un(C,k,rt(404,{pathname:$}),{flushSync:J});return}}_.set(C,H);let de=j,le=(await ii("action",E,ue,[M],z,C))[M.route.id];if(ue.signal.aborted){_.get(C)===H&&_.delete(C);return}if(f.v7_fetcherPersist&&fe.has(C)){if(Rr(le)||ht(le)){On(C,zn(void 0));return}}else{if(Rr(le))if(_.delete(C),Q>de){On(C,zn(void 0));return}else return Ce.add(C),On(C,vi(F)),xr(ue,le,!1,{fetcherSubmission:F});if(ht(le)){un(C,k,le.error);return}}if(Xn(le))throw rt(400,{type:"defer-action"});let Ue=E.navigation.location||E.location,Le=eo(e.history,Ue,H.signal),ai=s||a,fn=E.navigation.state!=="idle"?Sr(ai,E.navigation.location,l):E.matches;ie(fn,"Didn't find any matches after fetcher action");let Jr=++j;ne.set(C,Jr);let Dn=vi(F,le.data);E.fetchers.set(C,Dn);let[$a,dn]=Hm(e.history,E,fn,F,Ue,!1,f.v7_skipActionErrorRevalidation,ee,Z,D,fe,De,Ce,ai,l,[M.route.id,le]);dn.filter(_e=>_e.key!==C).forEach(_e=>{let pn=_e.key,_p=E.fetchers.get(pn),Tw=vi(void 0,_p?_p.data:void 0);E.fetchers.set(pn,Tw),_.has(pn)&&An(pn),_e.controller&&_.set(pn,_e.controller)}),Ke({fetchers:new Map(E.fetchers)});let Na=()=>dn.forEach(_e=>An(_e.key));H.signal.addEventListener("abort",Na);let{loaderResults:_a,fetcherResults:Ta}=await wp(E,fn,$a,dn,Le);if(H.signal.aborted)return;H.signal.removeEventListener("abort",Na),ne.delete(C),_.delete(C),dn.forEach(_e=>_.delete(_e.key));let re=Xa(_a);if(re)return xr(Le,re.result,!1);if(re=Xa(Ta),re)return Ce.add(re.key),xr(Le,re.result,!1);let{loaderData:Ne,errors:pt}=Xm(E,fn,$a,_a,void 0,dn,Ta,Me);if(E.fetchers.has(C)){let _e=zn(le.data);E.fetchers.set(C,_e)}Cp(Jr),E.navigation.state==="loading"&&Jr>Q?(ie(O,"Expected pending action"),I&&I.abort(),Nt(E.navigation.location,{matches:fn,loaderData:Ne,errors:pt,fetchers:new Map(E.fetchers)})):(Ke({errors:pt,loaderData:Qm(E.loaderData,Ne,fn,pt),fetchers:new Map(E.fetchers)}),ee=!1)}async function Cw(C,k,$,M,z,K,J,F){let Y=E.fetchers.get(C);On(C,vi(F,Y?Y.data:void 0),{flushSync:J});let V=new AbortController,H=eo(e.history,$,V.signal);if(K){let le=await Ra(z,$,H.signal);if(le.type==="aborted")return;if(le.type==="error"){let{error:Ue}=Pa($,le);un(C,k,Ue,{flushSync:J});return}else if(le.matches)z=le.matches,M=Ci(z,$);else{un(C,k,rt(404,{pathname:$}),{flushSync:J});return}}_.set(C,V);let ue=j,ge=(await ii("loader",E,H,[M],z,C))[M.route.id];if(Xn(ge)&&(ge=await Md(ge,H.signal,!0)||ge),_.get(C)===V&&_.delete(C),!H.signal.aborted){if(fe.has(C)){On(C,zn(void 0));return}if(Rr(ge))if(Q>ue){On(C,zn(void 0));return}else{Ce.add(C),await xr(H,ge,!1);return}if(ht(ge)){un(C,k,ge.error);return}ie(!Xn(ge),"Unhandled fetcher deferred data"),On(C,zn(ge.data))}}async function xr(C,k,$,M){let{submission:z,fetcherSubmission:K,replace:J}=M===void 0?{}:M;k.response.headers.has("X-Remix-Revalidate")&&(ee=!0);let F=k.response.headers.get("Location");ie(F,"Expected a Location header on the redirect Response"),F=Gm(F,new URL(C.url),l);let Y=ra(E.location,F,{_isRedirect:!0});if(n){let le=!1;if(k.response.headers.has("X-Remix-Reload-Document"))le=!0;else if(Td.test(F)){const Ue=e.history.createURL(F);le=Ue.origin!==t.location.origin||Yo(Ue.pathname,l)==null}if(le){J?t.location.replace(F):t.location.assign(F);return}}I=null;let V=J===!0||k.response.headers.has("X-Remix-Replace")?Ie.Replace:Ie.Push,{formMethod:H,formAction:ue,formEncType:de}=E.navigation;!z&&!K&&H&&ue&&de&&(z=eh(E.navigation));let ge=z||K;if(TS.has(k.response.status)&&ge&&zt(ge.formMethod))await cn(V,Y,{submission:Pe({},ge,{formAction:F}),preventScrollReset:T,enableViewTransition:$?L:void 0});else{let le=Mc(Y,z);await cn(V,Y,{overrideNavigation:le,fetcherSubmission:K,preventScrollReset:T,enableViewTransition:$?L:void 0})}}async function ii(C,k,$,M,z,K){let J,F={};try{J=await US(c,C,k,$,M,z,K,i,o)}catch(Y){return M.forEach(V=>{F[V.route.id]={type:me.error,error:Y}}),F}for(let[Y,V]of Object.entries(J))if(YS(V)){let H=V.result;F[Y]={type:me.redirect,response:VS(H,$,Y,z,l,f.v7_relativeSplatPath)}}else F[Y]=await WS(V);return F}async function wp(C,k,$,M,z){let K=C.matches,J=ii("loader",C,z,$,k,null),F=Promise.all(M.map(async H=>{if(H.matches&&H.match&&H.controller){let de=(await ii("loader",C,eo(e.history,H.path,H.controller.signal),[H.match],H.matches,H.key))[H.match.route.id];return{[H.key]:de}}else return Promise.resolve({[H.key]:{type:me.error,error:rt(404,{pathname:H.path})}})})),Y=await J,V=(await F).reduce((H,ue)=>Object.assign(H,ue),{});return await Promise.all([ZS(k,Y,z.signal,K,C.loaderData),JS(k,V,M)]),{loaderResults:Y,fetcherResults:V}}function tc(){ee=!0,Z.push(...rc()),De.forEach((C,k)=>{_.has(k)&&(D.add(k),An(k))})}function On(C,k,$){$===void 0&&($={}),E.fetchers.set(C,k),Ke({fetchers:new Map(E.fetchers)},{flushSync:($&&$.flushSync)===!0})}function un(C,k,$,M){M===void 0&&(M={});let z=xo(E.matches,k);Ea(C),Ke({errors:{[z.route.id]:$},fetchers:new Map(E.fetchers)},{flushSync:(M&&M.flushSync)===!0})}function bp(C){return f.v7_fetcherPersist&&(He.set(C,(He.get(C)||0)+1),fe.has(C)&&fe.delete(C)),E.fetchers.get(C)||MS}function Ea(C){let k=E.fetchers.get(C);_.has(C)&&!(k&&k.state==="loading"&&ne.has(C))&&An(C),De.delete(C),ne.delete(C),Ce.delete(C),fe.delete(C),D.delete(C),E.fetchers.delete(C)}function Pw(C){if(f.v7_fetcherPersist){let k=(He.get(C)||0)-1;k<=0?(He.delete(C),fe.add(C)):He.set(C,k)}else Ea(C);Ke({fetchers:new Map(E.fetchers)})}function An(C){let k=_.get(C);ie(k,"Expected fetch controller: "+C),k.abort(),_.delete(C)}function Sp(C){for(let k of C){let $=bp(k),M=zn($.data);E.fetchers.set(k,M)}}function Ep(){let C=[],k=!1;for(let $ of Ce){let M=E.fetchers.get($);ie(M,"Expected fetcher: "+$),M.state==="loading"&&(Ce.delete($),C.push($),k=!0)}return Sp(C),k}function Cp(C){let k=[];for(let[$,M]of ne)if(M0}function kw(C,k){let $=E.blockers.get(C)||hi;return $t.get(C)!==k&&$t.set(C,k),$}function Pp(C){E.blockers.delete(C),$t.delete(C)}function Ca(C,k){let $=E.blockers.get(C)||hi;ie($.state==="unblocked"&&k.state==="blocked"||$.state==="blocked"&&k.state==="blocked"||$.state==="blocked"&&k.state==="proceeding"||$.state==="blocked"&&k.state==="unblocked"||$.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+$.state+" -> "+k.state);let M=new Map(E.blockers);M.set(C,k),Ke({blockers:M})}function kp(C){let{currentLocation:k,nextLocation:$,historyAction:M}=C;if($t.size===0)return;$t.size>1&&jo(!1,"A router only supports one blocker at a time");let z=Array.from($t.entries()),[K,J]=z[z.length-1],F=E.blockers.get(K);if(!(F&&F.state==="proceeding")&&J({currentLocation:k,nextLocation:$,historyAction:M}))return K}function nc(C){let k=rt(404,{pathname:C}),$=s||a,{matches:M,route:z}=Jm($);return rc(),{notFoundMatches:M,route:z,error:k}}function Pa(C,k){return{boundaryId:xo(k.partialMatches).route.id,error:rt(400,{type:"route-discovery",pathname:C,message:k.error!=null&&"message"in k.error?k.error:String(k.error)})}}function rc(C){let k=[];return Me.forEach(($,M)=>{(!C||C(M))&&($.cancel(),k.push(M),Me.delete(M))}),k}function Rw(C,k,$){if(b=C,v=k,g=$||null,!y&&E.navigation===Tc){y=!0;let M=$p(E.location,E.matches);M!=null&&Ke({restoreScrollPosition:M})}return()=>{b=null,v=null,g=null}}function Rp(C,k){return g&&g(C,k.map(M=>cS(M,E.loaderData)))||C.key}function $w(C,k){if(b&&v){let $=Rp(C,k);b[$]=v()}}function $p(C,k){if(b){let $=Rp(C,k),M=b[$];if(typeof M=="number")return M}return null}function ka(C,k,$){if(d){if(m.has($))return{active:!1,matches:C};if(C){if(Object.keys(C[0].params).length>0)return{active:!0,matches:Ss(k,$,l,!0)}}else return{active:!0,matches:Ss(k,$,l,!0)||[]}}return{active:!1,matches:null}}async function Ra(C,k,$){let M=C;for(;;){let z=s==null,K=s||a;try{await FS(d,k,M,K,i,o,Qe,$)}catch(Y){return{type:"error",error:Y,partialMatches:M}}finally{z&&(a=[...a])}if($.aborted)return{type:"aborted"};let J=Sr(K,k,l);if(J)return Np(k,m),{type:"success",matches:J};let F=Ss(K,k,l,!0);if(!F||M.length===F.length&&M.every((Y,V)=>Y.route.id===F[V].route.id))return Np(k,m),{type:"success",matches:null};M=F}}function Np(C,k){if(k.size>=x){let $=k.values().next().value;k.delete($)}k.add(C)}function Nw(C){i={},s=oa(C,o,void 0,i)}function _w(C,k){let $=s==null;j0(C,k,s||a,i,o),$&&(a=[...a],Ke({}))}return R={get basename(){return l},get future(){return f},get state(){return E},get routes(){return a},get window(){return t},initialize:Xl,subscribe:Zl,enableScrollRestoration:Rw,navigate:oi,fetch:Sw,revalidate:Jl,createHref:C=>e.history.createHref(C),encodeLocation:C=>e.history.encodeLocation(C),getFetcher:bp,deleteFetcher:Pw,dispose:Ql,getBlocker:kw,deleteBlocker:Pp,patchRoutes:_w,_internalFetchControllers:_,_internalActiveDeferreds:Me,_internalSetRoutes:Nw},R}function DS(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Gu(e,t,n,r,o,i,a,s){let l,c;if(a){l=[];for(let f of t)if(l.push(f),f.route.id===a){c=f;break}}else l=t,c=t[t.length-1];let d=_d(o||".",Nd(l,i),Yo(e.pathname,n)||e.pathname,s==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&c&&c.route.index&&!Od(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:wn([n,d.pathname])),Fr(d)}function Vm(e,t,n,r){if(!r||!DS(r))return{path:n};if(r.formMethod&&!QS(r.formMethod))return{path:n,error:rt(405,{method:r.formMethod})};let o=()=>({path:n,error:rt(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=z0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!zt(a))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,x)=>{let[m,b]=x;return""+h+m+"="+b+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!zt(a))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}ie(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=Yu(r.formData),c=r.formData;else if(r.body instanceof FormData)l=Yu(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=Ym(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=Ym(l)}catch{return o()}let d={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(zt(d.formMethod))return{path:n,submission:d};let f=gr(n);return t&&f.search&&Od(f.search)&&l.append("index",""),f.search="?"+l,{path:Fr(f),submission:d}}function LS(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Hm(e,t,n,r,o,i,a,s,l,c,d,f,p,h,x,m){let b=m?ht(m[1])?m[1].error:m[1].data:void 0,g=e.createURL(t.location),v=e.createURL(o),y=m&&ht(m[1])?m[0]:void 0,S=y?LS(n,y):n,P=m?m[1].statusCode:void 0,N=a&&P&&P>=400,R=S.filter((O,T)=>{let{route:I}=O;if(I.lazy)return!0;if(I.loader==null)return!1;if(i)return typeof I.loader!="function"||I.loader.hydrate?!0:t.loaderData[I.id]===void 0&&(!t.errors||t.errors[I.id]===void 0);if(IS(t.loaderData,t.matches[T],O)||l.some(W=>W===O.route.id))return!0;let L=t.matches[T],q=O;return Km(O,Pe({currentUrl:g,currentParams:L.params,nextUrl:v,nextParams:q.params},r,{actionResult:b,actionStatus:P,defaultShouldRevalidate:N?!1:s||g.pathname+g.search===v.pathname+v.search||g.search!==v.search||F0(L,q)}))}),E=[];return f.forEach((O,T)=>{if(i||!n.some(X=>X.route.id===O.routeId)||d.has(T))return;let I=Sr(h,O.path,x);if(!I){E.push({key:T,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let L=t.fetchers.get(T),q=Ci(I,O.path),W=!1;p.has(T)?W=!1:c.has(T)?(c.delete(T),W=!0):L&&L.state!=="idle"&&L.data===void 0?W=s:W=Km(q,Pe({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:b,actionStatus:P,defaultShouldRevalidate:N?!1:s})),W&&E.push({key:T,routeId:O.routeId,path:O.path,matches:I,match:q,controller:new AbortController})}),[R,E]}function IS(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function F0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Km(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function FS(e,t,n,r,o,i,a,s){let l=[t,...n.map(c=>c.route.id)].join("-");try{let c=a.get(l);c||(c=e({path:t,matches:n,patch:(d,f)=>{s.aborted||j0(d,f,r,o,i)}}),a.set(l,c)),c&&GS(c)&&await c}finally{a.delete(l)}}function j0(e,t,n,r,o){if(e){var i;let a=r[e];ie(a,"No route found to patch children into: routeId = "+e);let s=oa(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],r);a.children?a.children.push(...s):a.children=s}else{let a=oa(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function jS(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];ie(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";jo(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!sS.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Pe({},t(o),{lazy:void 0}))}async function zS(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[n[a].route.id]:i}),{})}async function US(e,t,n,r,o,i,a,s,l,c){let d=i.map(h=>h.route.lazy?jS(h.route,l,s):void 0),f=i.map((h,x)=>{let m=d[x],b=o.some(v=>v.route.id===h.route.id);return Pe({},h,{shouldLoad:b,resolve:async v=>(v&&r.method==="GET"&&(h.route.lazy||h.route.loader)&&(b=!0),b?BS(t,r,h,m,v,c):Promise.resolve({type:me.data,result:void 0}))})}),p=await e({matches:f,request:r,params:i[0].params,fetcherKey:a,context:c});try{await Promise.all(d)}catch{}return p}async function BS(e,t,n,r,o,i){let a,s,l=c=>{let d,f=new Promise((x,m)=>d=m);s=()=>d(),t.signal.addEventListener("abort",s);let p=x=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:i},...x!==void 0?[x]:[]),h=(async()=>{try{return{type:"data",result:await(o?o(m=>p(m)):p())}}catch(x){return{type:"error",result:x}}})();return Promise.race([h,f])};try{let c=n.route[e];if(r)if(c){let d,[f]=await Promise.all([l(c).catch(p=>{d=p}),r]);if(d!==void 0)throw d;a=f}else if(await r,c=n.route[e],c)a=await l(c);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw rt(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:me.data,result:void 0};else if(c)a=await l(c);else{let d=new URL(t.url),f=d.pathname+d.search;throw rt(404,{pathname:f})}ie(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:me.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function WS(e){let{result:t,type:n}=e;if(U0(t)){let c;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(d){return{type:me.error,error:d}}return n===me.error?{type:me.error,error:new qs(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:me.data,data:c,statusCode:t.status,headers:t.headers}}if(n===me.error){if(qm(t)){var r;if(t.data instanceof Error){var o;return{type:me.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new qs(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:me.error,error:t,statusCode:Ml(t)?t.status:void 0}}if(XS(t)){var i,a;return{type:me.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(qm(t)){var s,l;return{type:me.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:me.data,data:t}}function VS(e,t,n,r,o,i){let a=e.headers.get("Location");if(ie(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Td.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=Gu(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function Gm(e,t,n){if(Td.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Yo(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function eo(e,t,n,r){let o=e.createURL(z0(t)).toString(),i={signal:n};if(r&&zt(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=Yu(r.formData):i.body=r.formData}return new Request(o,i)}function Yu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Ym(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function HS(e,t,n,r,o){let i={},a=null,s,l=!1,c={},d=n&&ht(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,h=t[p];if(ie(!Rr(h),"Cannot handle redirect results in processLoaderData"),ht(h)){let x=h.error;d!==void 0&&(x=d,d=void 0),a=a||{};{let m=xo(e,p);a[m.route.id]==null&&(a[m.route.id]=x)}i[p]=void 0,l||(l=!0,s=Ml(h.error)?h.error.status:500),h.headers&&(c[p]=h.headers)}else Xn(h)?(r.set(p,h.deferredData),i[p]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[p]=h.headers)):(i[p]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[p]=h.headers))}),d!==void 0&&n&&(a={[n[0]]:d},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:c}}function Xm(e,t,n,r,o,i,a,s){let{loaderData:l,errors:c}=HS(t,r,o,s);return i.forEach(d=>{let{key:f,match:p,controller:h}=d,x=a[f];if(ie(x,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(ht(x)){let m=xo(e.matches,p==null?void 0:p.route.id);c&&c[m.route.id]||(c=Pe({},c,{[m.route.id]:x.error})),e.fetchers.delete(f)}else if(Rr(x))ie(!1,"Unhandled fetcher revalidation redirect");else if(Xn(x))ie(!1,"Unhandled fetcher deferred data");else{let m=zn(x.data);e.fetchers.set(f,m)}}),{loaderData:l,errors:c}}function Qm(e,t,n,r){let o=Pe({},t);for(let i of n){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function Zm(e){return e?ht(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function xo(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Jm(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function rt(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i==="route-discovery"?l='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+a):o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new qs(e||500,s,new Error(l),!0)}function Xa(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Rr(o))return{key:r,result:o}}}function z0(e){let t=typeof e=="string"?gr(e):e;return Fr(Pe({},t,{hash:""}))}function KS(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function GS(e){return typeof e=="object"&&e!=null&&"then"in e}function YS(e){return U0(e.result)&&_S.has(e.result.status)}function Xn(e){return e.type===me.deferred}function ht(e){return e.type===me.error}function Rr(e){return(e&&e.type)===me.redirect}function qm(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function XS(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function U0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function QS(e){return NS.has(e.toLowerCase())}function zt(e){return RS.has(e.toLowerCase())}async function ZS(e,t,n,r,o){let i=Object.entries(t);for(let a=0;a(p==null?void 0:p.route.id)===s);if(!c)continue;let d=r.find(p=>p.route.id===c.route.id),f=d!=null&&!F0(d,c)&&(o&&o[c.route.id])!==void 0;Xn(l)&&f&&await Md(l,n,!1).then(p=>{p&&(t[s]=p)})}}async function JS(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===i)&&Xn(s)&&(ie(a,"Expected an AbortController for revalidating fetcher deferred result"),await Md(s,a.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function Md(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:me.data,data:e.deferredData.unwrappedData}}catch(o){return{type:me.error,error:o}}return{type:me.data,data:e.deferredData.data}}}function Od(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ci(e,t){let n=typeof t=="string"?gr(t).search:t.search;if(e[e.length-1].route.index&&Od(n||""))return e[e.length-1];let r=D0(e);return r[r.length-1]}function eh(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Mc(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function qS(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function vi(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eE(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function zn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function tE(e,t){try{let n=e.sessionStorage.getItem(I0);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function nE(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(I0,JSON.stringify(n))}catch(r){jo(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function jo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function aS(){return Math.random().toString(36).substr(2,8)}function Bm(e,t){return{usr:e.state,key:e.key,idx:t}}function oa(e,t,n,r){return n===void 0&&(n=null),Pe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gr(t):t,{state:n,key:t&&t.key||r||aS()})}function Fr(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 gr(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 sS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Ie.Pop,l=null,c=d();c==null&&(c=0,a.replaceState(Pe({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=Ie.Pop;let b=d(),g=b==null?null:b-c;c=b,l&&l({action:s,location:m.location,delta:g})}function p(b,g){s=Ie.Push;let v=oa(m.location,b,g);c=d()+1;let y=Bm(v,c),S=m.createHref(v);try{a.pushState(y,"",S)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(S)}i&&l&&l({action:s,location:m.location,delta:1})}function h(b,g){s=Ie.Replace;let v=oa(m.location,b,g);c=d();let y=Bm(v,c),S=m.createHref(v);a.replaceState(y,"",S),i&&l&&l({action:s,location:m.location,delta:0})}function x(b){let g=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof b=="string"?b:Fr(b);return v=v.replace(/ $/,"%20"),ie(g,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,g)}let m={get action(){return s},get location(){return e(o,a)},listen(b){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Um,f),l=b,()=>{o.removeEventListener(Um,f),l=null}},createHref(b){return t(o,b)},createURL:x,encodeLocation(b){let g=x(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:p,replace:h,go(b){return a.go(b)}};return m}var me;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(me||(me={}));const lS=new Set(["lazy","caseSensitive","path","id","index","children"]);function cS(e){return e.index===!0}function ia(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],s=typeof o.id=="string"?o.id:a.join("-");if(ie(o.index!==!0||!o.children,"Cannot specify children on an index route"),ie(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),cS(o)){let l=Pe({},o,t(o),{id:s});return r[s]=l,l}else{let l=Pe({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=ia(o.children,t,a,r)),l}})}function Sr(e,t,n){return n===void 0&&(n="/"),Es(e,t,n,!1)}function Es(e,t,n,r){let o=typeof t=="string"?gr(t):t,i=Yo(o.pathname||"/",n);if(i==null)return null;let a=A0(e);fS(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(ie(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=wn([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(ie(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),A0(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:yS(c,i.index),routesMeta:d})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of D0(i.path))o(i,a,l)}),t}function D0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=D0(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function fS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const dS=/^:[\w-]+$/,pS=3,mS=2,hS=1,vS=10,gS=-2,Wm=e=>e==="*";function yS(e,t){let n=e.split("/"),r=n.length;return n.some(Wm)&&(r+=gS),t&&(r+=mS),n.filter(o=>!Wm(o)).reduce((o,i)=>o+(dS.test(i)?pS:i===""?hS:vS),r)}function xS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function wS(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:p,isOptional:h}=d;if(p==="*"){let m=s[f]||"";a=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const x=s[f];return h&&!x?c[p]=void 0:c[p]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function bS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),jo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function SS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jo(!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 Yo(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 ES(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?gr(e):e;return{pathname:n?n.startsWith("/")?n:CS(n,t):t,search:kS(r),hash:RS(o)}}function CS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Tc(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 L0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function _d(e,t){let n=L0(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Td(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=gr(e):(o=Pe({},e),ie(!o.pathname||!o.pathname.includes("?"),Tc("?","pathname","search",o)),ie(!o.pathname||!o.pathname.includes("#"),Tc("#","pathname","hash",o)),ie(!o.search||!o.search.includes("#"),Tc("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=ES(o,s),c=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const wn=e=>e.join("/").replace(/\/\/+/g,"/"),PS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class el{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Ol(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const I0=["post","put","patch","delete"],$S=new Set(I0),NS=["get",...I0],_S=new Set(NS),TS=new Set([301,302,303,307,308]),MS=new Set([307,308]),Mc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},OS={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},hi={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Md=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AS=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),F0="remix-router-transitions";function DS(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ie(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let C=e.detectErrorBoundary;o=k=>({hasErrorBoundary:C(k)})}else o=AS;let i={},a=ia(e.routes,o,void 0,i),s,l=e.basename||"/",c=e.unstable_dataStrategy||US,d=e.unstable_patchRoutesOnNavigation,f=Pe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,h=new Set,x=1e3,m=new Set,b=null,g=null,v=null,y=e.hydrationData!=null,S=Sr(a,e.history.location,l),P=null;if(S==null&&!d){let C=rt(404,{pathname:e.history.location.pathname}),{matches:k,route:$}=qm(a);S=k,P={[$.id]:C}}S&&!e.hydrationData&&Ra(S,a,e.history.location.pathname).active&&(S=null);let N;if(S)if(S.some(C=>C.route.lazy))N=!1;else if(!S.some(C=>C.route.loader))N=!0;else if(f.v7_partialHydration){let C=e.hydrationData?e.hydrationData.loaderData:null,k=e.hydrationData?e.hydrationData.errors:null,$=M=>M.route.loader?typeof M.route.loader=="function"&&M.route.loader.hydrate===!0?!1:C&&C[M.route.id]!==void 0||k&&k[M.route.id]!==void 0:!0;if(k){let M=S.findIndex(z=>k[z.route.id]!==void 0);N=S.slice(0,M+1).every($)}else N=S.every($)}else N=e.hydrationData!=null;else if(N=!1,S=[],f.v7_partialHydration){let C=Ra(null,a,e.history.location.pathname);C.active&&C.matches&&(S=C.matches)}let R,E={historyAction:e.history.action,location:e.history.location,matches:S,initialized:N,navigation:Mc,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||P,fetchers:new Map,blockers:new Map},O=Ie.Pop,T=!1,I,L=!1,q=new Map,W=null,X=!1,ee=!1,Z=[],D=new Set,_=new Map,j=0,Q=-1,ne=new Map,Ce=new Set,De=new Map,He=new Map,fe=new Set,Me=new Map,$t=new Map,Ze=new Map,ln;function Ql(){if(p=e.history.listen(C=>{let{action:k,location:$,delta:M}=C;if(ln){ln(),ln=void 0;return}jo($t.size===0||M!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let z=Rp({currentLocation:E.location,nextLocation:$,historyAction:k});if(z&&M!=null){let K=new Promise(J=>{ln=J});e.history.go(M*-1),Pa(z,{state:"blocked",location:$,proceed(){Pa(z,{state:"proceeding",proceed:void 0,reset:void 0,location:$}),K.then(()=>e.history.go(M))},reset(){let J=new Map(E.blockers);J.set(z,hi),Ke({blockers:J})}});return}return cn(k,$)}),n){nE(t,q);let C=()=>rE(t,q);t.addEventListener("pagehide",C),W=()=>t.removeEventListener("pagehide",C)}return E.initialized||cn(Ie.Pop,E.location,{initialHydration:!0}),R}function Zl(){p&&p(),W&&W(),h.clear(),I&&I.abort(),E.fetchers.forEach((C,k)=>Ca(k)),E.blockers.forEach((C,k)=>kp(k))}function Jl(C){return h.add(C),()=>h.delete(C)}function Ke(C,k){k===void 0&&(k={}),E=Pe({},E,C);let $=[],M=[];f.v7_fetcherPersist&&E.fetchers.forEach((z,K)=>{z.state==="idle"&&(fe.has(K)?M.push(K):$.push(K))}),[...h].forEach(z=>z(E,{deletedFetchers:M,unstable_viewTransitionOpts:k.viewTransitionOpts,unstable_flushSync:k.flushSync===!0})),f.v7_fetcherPersist&&($.forEach(z=>E.fetchers.delete(z)),M.forEach(z=>Ca(z)))}function Nt(C,k,$){var M,z;let{flushSync:K}=$===void 0?{}:$,J=E.actionData!=null&&E.navigation.formMethod!=null&&zt(E.navigation.formMethod)&&E.navigation.state==="loading"&&((M=C.state)==null?void 0:M._isRedirect)!==!0,F;k.actionData?Object.keys(k.actionData).length>0?F=k.actionData:F=null:J?F=E.actionData:F=null;let Y=k.loaderData?Zm(E.loaderData,k.loaderData,k.matches||[],k.errors):E.loaderData,V=E.blockers;V.size>0&&(V=new Map(V),V.forEach((de,ge)=>V.set(ge,hi)));let H=T===!0||E.navigation.formMethod!=null&&zt(E.navigation.formMethod)&&((z=C.state)==null?void 0:z._isRedirect)!==!0;s&&(a=s,s=void 0),X||O===Ie.Pop||(O===Ie.Push?e.history.push(C,C.state):O===Ie.Replace&&e.history.replace(C,C.state));let ue;if(O===Ie.Pop){let de=q.get(E.location.pathname);de&&de.has(C.pathname)?ue={currentLocation:E.location,nextLocation:C}:q.has(C.pathname)&&(ue={currentLocation:C,nextLocation:E.location})}else if(L){let de=q.get(E.location.pathname);de?de.add(C.pathname):(de=new Set([C.pathname]),q.set(E.location.pathname,de)),ue={currentLocation:E.location,nextLocation:C}}Ke(Pe({},k,{actionData:F,loaderData:Y,historyAction:O,location:C,initialized:!0,navigation:Mc,revalidation:"idle",restoreScrollPosition:Np(C,k.matches||E.matches),preventScrollReset:H,blockers:V}),{viewTransitionOpts:ue,flushSync:K===!0}),O=Ie.Pop,T=!1,L=!1,X=!1,ee=!1,Z=[]}async function oi(C,k){if(typeof C=="number"){e.history.go(C);return}let $=Yu(E.location,E.matches,l,f.v7_prependBasename,C,f.v7_relativeSplatPath,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:M,submission:z,error:K}=Hm(f.v7_normalizeFormMethod,!1,$,k),J=E.location,F=oa(E.location,M,k&&k.state);F=Pe({},F,e.history.encodeLocation(F));let Y=k&&k.replace!=null?k.replace:void 0,V=Ie.Push;Y===!0?V=Ie.Replace:Y===!1||z!=null&&zt(z.formMethod)&&z.formAction===E.location.pathname+E.location.search&&(V=Ie.Replace);let H=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,ue=(k&&k.unstable_flushSync)===!0,de=Rp({currentLocation:J,nextLocation:F,historyAction:V});if(de){Pa(de,{state:"blocked",location:F,proceed(){Pa(de,{state:"proceeding",proceed:void 0,reset:void 0,location:F}),oi(C,k)},reset(){let ge=new Map(E.blockers);ge.set(de,hi),Ke({blockers:ge})}});return}return await cn(V,F,{submission:z,pendingError:K,preventScrollReset:H,replace:k&&k.replace,enableViewTransition:k&&k.unstable_viewTransition,flushSync:ue})}function ql(){if(nc(),Ke({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){cn(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}cn(O||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation,enableViewTransition:L===!0})}}async function cn(C,k,$){I&&I.abort(),I=null,O=C,X=($&&$.startUninterruptedRevalidation)===!0,Nw(E.location,E.matches),T=($&&$.preventScrollReset)===!0,L=($&&$.enableViewTransition)===!0;let M=s||a,z=$&&$.overrideNavigation,K=Sr(M,k,l),J=($&&$.flushSync)===!0,F=Ra(K,M,k.pathname);if(F.active&&F.matches&&(K=F.matches),!K){let{error:le,notFoundMatches:Ue,route:Le}=rc(k.pathname);Nt(k,{matches:Ue,loaderData:{},errors:{[Le.id]:le}},{flushSync:J});return}if(E.initialized&&!ee&&GS(E.location,k)&&!($&&$.submission&&zt($.submission.formMethod))){Nt(k,{matches:K},{flushSync:J});return}I=new AbortController;let Y=eo(e.history,k,I.signal,$&&$.submission),V;if($&&$.pendingError)V=[xo(K).route.id,{type:me.error,error:$.pendingError}];else if($&&$.submission&&zt($.submission.formMethod)){let le=await ec(Y,k,$.submission,K,F.active,{replace:$.replace,flushSync:J});if(le.shortCircuited)return;if(le.pendingActionResult){let[Ue,Le]=le.pendingActionResult;if(ht(Le)&&Ol(Le.error)&&Le.error.status===404){I=null,Nt(k,{matches:le.matches,loaderData:{},errors:{[Ue]:Le.error}});return}}K=le.matches||K,V=le.pendingActionResult,z=Oc(k,$.submission),J=!1,F.active=!1,Y=eo(e.history,Y.url,Y.signal)}let{shortCircuited:H,matches:ue,loaderData:de,errors:ge}=await tc(Y,k,K,F.active,z,$&&$.submission,$&&$.fetcherSubmission,$&&$.replace,$&&$.initialHydration===!0,J,V);H||(I=null,Nt(k,Pe({matches:ue||K},Jm(V),{loaderData:de,errors:ge})))}async function ec(C,k,$,M,z,K){K===void 0&&(K={}),nc();let J=eE(k,$);if(Ke({navigation:J},{flushSync:K.flushSync===!0}),z){let V=await $a(M,k.pathname,C.signal);if(V.type==="aborted")return{shortCircuited:!0};if(V.type==="error"){let{boundaryId:H,error:ue}=ka(k.pathname,V);return{matches:V.partialMatches,pendingActionResult:[H,{type:me.error,error:ue}]}}else if(V.matches)M=V.matches;else{let{notFoundMatches:H,error:ue,route:de}=rc(k.pathname);return{matches:H,pendingActionResult:[de.id,{type:me.error,error:ue}]}}}let F,Y=Ci(M,k);if(!Y.route.action&&!Y.route.lazy)F={type:me.error,error:rt(405,{method:C.method,pathname:k.pathname,routeId:Y.route.id})};else if(F=(await ii("action",E,C,[Y],M,null))[Y.route.id],C.signal.aborted)return{shortCircuited:!0};if(Rr(F)){let V;return K&&K.replace!=null?V=K.replace:V=Ym(F.response.headers.get("Location"),new URL(C.url),l)===E.location.pathname+E.location.search,await xr(C,F,!0,{submission:$,replace:V}),{shortCircuited:!0}}if(Xn(F))throw rt(400,{type:"defer-action"});if(ht(F)){let V=xo(M,Y.route.id);return(K&&K.replace)!==!0&&(O=Ie.Push),{matches:M,pendingActionResult:[V.route.id,F]}}return{matches:M,pendingActionResult:[Y.route.id,F]}}async function tc(C,k,$,M,z,K,J,F,Y,V,H){let ue=z||Oc(k,K),de=K||J||th(ue),ge=!X&&(!f.v7_partialHydration||!Y);if(M){if(ge){let Ne=yr(H);Ke(Pe({navigation:ue},Ne!==void 0?{actionData:Ne}:{}),{flushSync:V})}let re=await $a($,k.pathname,C.signal);if(re.type==="aborted")return{shortCircuited:!0};if(re.type==="error"){let{boundaryId:Ne,error:pt}=ka(k.pathname,re);return{matches:re.partialMatches,loaderData:{},errors:{[Ne]:pt}}}else if(re.matches)$=re.matches;else{let{error:Ne,notFoundMatches:pt,route:_e}=rc(k.pathname);return{matches:pt,loaderData:{},errors:{[_e.id]:Ne}}}}let le=s||a,[Ue,Le]=Km(e.history,E,$,de,k,f.v7_partialHydration&&Y===!0,f.v7_skipActionErrorRevalidation,ee,Z,D,fe,De,Ce,le,l,H);if(oc(re=>!($&&$.some(Ne=>Ne.route.id===re))||Ue&&Ue.some(Ne=>Ne.route.id===re)),Q=++j,Ue.length===0&&Le.length===0){let re=Cp();return Nt(k,Pe({matches:$,loaderData:{},errors:H&&ht(H[1])?{[H[0]]:H[1].error}:null},Jm(H),re?{fetchers:new Map(E.fetchers)}:{}),{flushSync:V}),{shortCircuited:!0}}if(ge){let re={};if(!M){re.navigation=ue;let Ne=yr(H);Ne!==void 0&&(re.actionData=Ne)}Le.length>0&&(re.fetchers=Sw(Le)),Ke(re,{flushSync:V})}Le.forEach(re=>{_.has(re.key)&&An(re.key),re.controller&&_.set(re.key,re.controller)});let ai=()=>Le.forEach(re=>An(re.key));I&&I.signal.addEventListener("abort",ai);let{loaderResults:fn,fetcherResults:Jr}=await bp(E,$,Ue,Le,C);if(C.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",ai),Le.forEach(re=>_.delete(re.key));let Dn=Qa(fn);if(Dn)return await xr(C,Dn.result,!0,{replace:F}),{shortCircuited:!0};if(Dn=Qa(Jr),Dn)return Ce.add(Dn.key),await xr(C,Dn.result,!0,{replace:F}),{shortCircuited:!0};let{loaderData:Na,errors:dn}=Qm(E,$,Ue,fn,H,Le,Jr,Me);Me.forEach((re,Ne)=>{re.subscribe(pt=>{(pt||re.done)&&Me.delete(Ne)})}),f.v7_partialHydration&&Y&&E.errors&&Object.entries(E.errors).filter(re=>{let[Ne]=re;return!Ue.some(pt=>pt.route.id===Ne)}).forEach(re=>{let[Ne,pt]=re;dn=Object.assign(dn||{},{[Ne]:pt})});let _a=Cp(),Ta=Pp(Q),Ma=_a||Ta||Le.length>0;return Pe({matches:$,loaderData:Na,errors:dn},Ma?{fetchers:new Map(E.fetchers)}:{})}function yr(C){if(C&&!ht(C[1]))return{[C[0]]:C[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function Sw(C){return C.forEach(k=>{let $=E.fetchers.get(k.key),M=vi(void 0,$?$.data:void 0);E.fetchers.set(k.key,M)}),new Map(E.fetchers)}function Ew(C,k,$,M){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");_.has(C)&&An(C);let z=(M&&M.unstable_flushSync)===!0,K=s||a,J=Yu(E.location,E.matches,l,f.v7_prependBasename,$,f.v7_relativeSplatPath,k,M==null?void 0:M.relative),F=Sr(K,J,l),Y=Ra(F,K,J);if(Y.active&&Y.matches&&(F=Y.matches),!F){un(C,k,rt(404,{pathname:J}),{flushSync:z});return}let{path:V,submission:H,error:ue}=Hm(f.v7_normalizeFormMethod,!0,J,M);if(ue){un(C,k,ue,{flushSync:z});return}let de=Ci(F,V);if(T=(M&&M.preventScrollReset)===!0,H&&zt(H.formMethod)){Cw(C,k,V,de,F,Y.active,z,H);return}De.set(C,{routeId:k,path:V}),Pw(C,k,V,de,F,Y.active,z,H)}async function Cw(C,k,$,M,z,K,J,F){nc(),De.delete(C);function Y(_e){if(!_e.route.action&&!_e.route.lazy){let pn=rt(405,{method:F.formMethod,pathname:$,routeId:k});return un(C,k,pn,{flushSync:J}),!0}return!1}if(!K&&Y(M))return;let V=E.fetchers.get(C);On(C,tE(F,V),{flushSync:J});let H=new AbortController,ue=eo(e.history,$,H.signal,F);if(K){let _e=await $a(z,$,ue.signal);if(_e.type==="aborted")return;if(_e.type==="error"){let{error:pn}=ka($,_e);un(C,k,pn,{flushSync:J});return}else if(_e.matches){if(z=_e.matches,M=Ci(z,$),Y(M))return}else{un(C,k,rt(404,{pathname:$}),{flushSync:J});return}}_.set(C,H);let de=j,le=(await ii("action",E,ue,[M],z,C))[M.route.id];if(ue.signal.aborted){_.get(C)===H&&_.delete(C);return}if(f.v7_fetcherPersist&&fe.has(C)){if(Rr(le)||ht(le)){On(C,zn(void 0));return}}else{if(Rr(le))if(_.delete(C),Q>de){On(C,zn(void 0));return}else return Ce.add(C),On(C,vi(F)),xr(ue,le,!1,{fetcherSubmission:F});if(ht(le)){un(C,k,le.error);return}}if(Xn(le))throw rt(400,{type:"defer-action"});let Ue=E.navigation.location||E.location,Le=eo(e.history,Ue,H.signal),ai=s||a,fn=E.navigation.state!=="idle"?Sr(ai,E.navigation.location,l):E.matches;ie(fn,"Didn't find any matches after fetcher action");let Jr=++j;ne.set(C,Jr);let Dn=vi(F,le.data);E.fetchers.set(C,Dn);let[Na,dn]=Km(e.history,E,fn,F,Ue,!1,f.v7_skipActionErrorRevalidation,ee,Z,D,fe,De,Ce,ai,l,[M.route.id,le]);dn.filter(_e=>_e.key!==C).forEach(_e=>{let pn=_e.key,Tp=E.fetchers.get(pn),Mw=vi(void 0,Tp?Tp.data:void 0);E.fetchers.set(pn,Mw),_.has(pn)&&An(pn),_e.controller&&_.set(pn,_e.controller)}),Ke({fetchers:new Map(E.fetchers)});let _a=()=>dn.forEach(_e=>An(_e.key));H.signal.addEventListener("abort",_a);let{loaderResults:Ta,fetcherResults:Ma}=await bp(E,fn,Na,dn,Le);if(H.signal.aborted)return;H.signal.removeEventListener("abort",_a),ne.delete(C),_.delete(C),dn.forEach(_e=>_.delete(_e.key));let re=Qa(Ta);if(re)return xr(Le,re.result,!1);if(re=Qa(Ma),re)return Ce.add(re.key),xr(Le,re.result,!1);let{loaderData:Ne,errors:pt}=Qm(E,fn,Na,Ta,void 0,dn,Ma,Me);if(E.fetchers.has(C)){let _e=zn(le.data);E.fetchers.set(C,_e)}Pp(Jr),E.navigation.state==="loading"&&Jr>Q?(ie(O,"Expected pending action"),I&&I.abort(),Nt(E.navigation.location,{matches:fn,loaderData:Ne,errors:pt,fetchers:new Map(E.fetchers)})):(Ke({errors:pt,loaderData:Zm(E.loaderData,Ne,fn,pt),fetchers:new Map(E.fetchers)}),ee=!1)}async function Pw(C,k,$,M,z,K,J,F){let Y=E.fetchers.get(C);On(C,vi(F,Y?Y.data:void 0),{flushSync:J});let V=new AbortController,H=eo(e.history,$,V.signal);if(K){let le=await $a(z,$,H.signal);if(le.type==="aborted")return;if(le.type==="error"){let{error:Ue}=ka($,le);un(C,k,Ue,{flushSync:J});return}else if(le.matches)z=le.matches,M=Ci(z,$);else{un(C,k,rt(404,{pathname:$}),{flushSync:J});return}}_.set(C,V);let ue=j,ge=(await ii("loader",E,H,[M],z,C))[M.route.id];if(Xn(ge)&&(ge=await Od(ge,H.signal,!0)||ge),_.get(C)===V&&_.delete(C),!H.signal.aborted){if(fe.has(C)){On(C,zn(void 0));return}if(Rr(ge))if(Q>ue){On(C,zn(void 0));return}else{Ce.add(C),await xr(H,ge,!1);return}if(ht(ge)){un(C,k,ge.error);return}ie(!Xn(ge),"Unhandled fetcher deferred data"),On(C,zn(ge.data))}}async function xr(C,k,$,M){let{submission:z,fetcherSubmission:K,replace:J}=M===void 0?{}:M;k.response.headers.has("X-Remix-Revalidate")&&(ee=!0);let F=k.response.headers.get("Location");ie(F,"Expected a Location header on the redirect Response"),F=Ym(F,new URL(C.url),l);let Y=oa(E.location,F,{_isRedirect:!0});if(n){let le=!1;if(k.response.headers.has("X-Remix-Reload-Document"))le=!0;else if(Md.test(F)){const Ue=e.history.createURL(F);le=Ue.origin!==t.location.origin||Yo(Ue.pathname,l)==null}if(le){J?t.location.replace(F):t.location.assign(F);return}}I=null;let V=J===!0||k.response.headers.has("X-Remix-Replace")?Ie.Replace:Ie.Push,{formMethod:H,formAction:ue,formEncType:de}=E.navigation;!z&&!K&&H&&ue&&de&&(z=th(E.navigation));let ge=z||K;if(MS.has(k.response.status)&&ge&&zt(ge.formMethod))await cn(V,Y,{submission:Pe({},ge,{formAction:F}),preventScrollReset:T,enableViewTransition:$?L:void 0});else{let le=Oc(Y,z);await cn(V,Y,{overrideNavigation:le,fetcherSubmission:K,preventScrollReset:T,enableViewTransition:$?L:void 0})}}async function ii(C,k,$,M,z,K){let J,F={};try{J=await BS(c,C,k,$,M,z,K,i,o)}catch(Y){return M.forEach(V=>{F[V.route.id]={type:me.error,error:Y}}),F}for(let[Y,V]of Object.entries(J))if(XS(V)){let H=V.result;F[Y]={type:me.redirect,response:HS(H,$,Y,z,l,f.v7_relativeSplatPath)}}else F[Y]=await VS(V);return F}async function bp(C,k,$,M,z){let K=C.matches,J=ii("loader",C,z,$,k,null),F=Promise.all(M.map(async H=>{if(H.matches&&H.match&&H.controller){let de=(await ii("loader",C,eo(e.history,H.path,H.controller.signal),[H.match],H.matches,H.key))[H.match.route.id];return{[H.key]:de}}else return Promise.resolve({[H.key]:{type:me.error,error:rt(404,{pathname:H.path})}})})),Y=await J,V=(await F).reduce((H,ue)=>Object.assign(H,ue),{});return await Promise.all([JS(k,Y,z.signal,K,C.loaderData),qS(k,V,M)]),{loaderResults:Y,fetcherResults:V}}function nc(){ee=!0,Z.push(...oc()),De.forEach((C,k)=>{_.has(k)&&(D.add(k),An(k))})}function On(C,k,$){$===void 0&&($={}),E.fetchers.set(C,k),Ke({fetchers:new Map(E.fetchers)},{flushSync:($&&$.flushSync)===!0})}function un(C,k,$,M){M===void 0&&(M={});let z=xo(E.matches,k);Ca(C),Ke({errors:{[z.route.id]:$},fetchers:new Map(E.fetchers)},{flushSync:(M&&M.flushSync)===!0})}function Sp(C){return f.v7_fetcherPersist&&(He.set(C,(He.get(C)||0)+1),fe.has(C)&&fe.delete(C)),E.fetchers.get(C)||OS}function Ca(C){let k=E.fetchers.get(C);_.has(C)&&!(k&&k.state==="loading"&&ne.has(C))&&An(C),De.delete(C),ne.delete(C),Ce.delete(C),fe.delete(C),D.delete(C),E.fetchers.delete(C)}function kw(C){if(f.v7_fetcherPersist){let k=(He.get(C)||0)-1;k<=0?(He.delete(C),fe.add(C)):He.set(C,k)}else Ca(C);Ke({fetchers:new Map(E.fetchers)})}function An(C){let k=_.get(C);ie(k,"Expected fetch controller: "+C),k.abort(),_.delete(C)}function Ep(C){for(let k of C){let $=Sp(k),M=zn($.data);E.fetchers.set(k,M)}}function Cp(){let C=[],k=!1;for(let $ of Ce){let M=E.fetchers.get($);ie(M,"Expected fetcher: "+$),M.state==="loading"&&(Ce.delete($),C.push($),k=!0)}return Ep(C),k}function Pp(C){let k=[];for(let[$,M]of ne)if(M0}function Rw(C,k){let $=E.blockers.get(C)||hi;return $t.get(C)!==k&&$t.set(C,k),$}function kp(C){E.blockers.delete(C),$t.delete(C)}function Pa(C,k){let $=E.blockers.get(C)||hi;ie($.state==="unblocked"&&k.state==="blocked"||$.state==="blocked"&&k.state==="blocked"||$.state==="blocked"&&k.state==="proceeding"||$.state==="blocked"&&k.state==="unblocked"||$.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+$.state+" -> "+k.state);let M=new Map(E.blockers);M.set(C,k),Ke({blockers:M})}function Rp(C){let{currentLocation:k,nextLocation:$,historyAction:M}=C;if($t.size===0)return;$t.size>1&&jo(!1,"A router only supports one blocker at a time");let z=Array.from($t.entries()),[K,J]=z[z.length-1],F=E.blockers.get(K);if(!(F&&F.state==="proceeding")&&J({currentLocation:k,nextLocation:$,historyAction:M}))return K}function rc(C){let k=rt(404,{pathname:C}),$=s||a,{matches:M,route:z}=qm($);return oc(),{notFoundMatches:M,route:z,error:k}}function ka(C,k){return{boundaryId:xo(k.partialMatches).route.id,error:rt(400,{type:"route-discovery",pathname:C,message:k.error!=null&&"message"in k.error?k.error:String(k.error)})}}function oc(C){let k=[];return Me.forEach(($,M)=>{(!C||C(M))&&($.cancel(),k.push(M),Me.delete(M))}),k}function $w(C,k,$){if(b=C,v=k,g=$||null,!y&&E.navigation===Mc){y=!0;let M=Np(E.location,E.matches);M!=null&&Ke({restoreScrollPosition:M})}return()=>{b=null,v=null,g=null}}function $p(C,k){return g&&g(C,k.map(M=>uS(M,E.loaderData)))||C.key}function Nw(C,k){if(b&&v){let $=$p(C,k);b[$]=v()}}function Np(C,k){if(b){let $=$p(C,k),M=b[$];if(typeof M=="number")return M}return null}function Ra(C,k,$){if(d){if(m.has($))return{active:!1,matches:C};if(C){if(Object.keys(C[0].params).length>0)return{active:!0,matches:Es(k,$,l,!0)}}else return{active:!0,matches:Es(k,$,l,!0)||[]}}return{active:!1,matches:null}}async function $a(C,k,$){let M=C;for(;;){let z=s==null,K=s||a;try{await jS(d,k,M,K,i,o,Ze,$)}catch(Y){return{type:"error",error:Y,partialMatches:M}}finally{z&&(a=[...a])}if($.aborted)return{type:"aborted"};let J=Sr(K,k,l);if(J)return _p(k,m),{type:"success",matches:J};let F=Es(K,k,l,!0);if(!F||M.length===F.length&&M.every((Y,V)=>Y.route.id===F[V].route.id))return _p(k,m),{type:"success",matches:null};M=F}}function _p(C,k){if(k.size>=x){let $=k.values().next().value;k.delete($)}k.add(C)}function _w(C){i={},s=ia(C,o,void 0,i)}function Tw(C,k){let $=s==null;z0(C,k,s||a,i,o),$&&(a=[...a],Ke({}))}return R={get basename(){return l},get future(){return f},get state(){return E},get routes(){return a},get window(){return t},initialize:Ql,subscribe:Jl,enableScrollRestoration:$w,navigate:oi,fetch:Ew,revalidate:ql,createHref:C=>e.history.createHref(C),encodeLocation:C=>e.history.encodeLocation(C),getFetcher:Sp,deleteFetcher:kw,dispose:Zl,getBlocker:Rw,deleteBlocker:kp,patchRoutes:Tw,_internalFetchControllers:_,_internalActiveDeferreds:Me,_internalSetRoutes:_w},R}function LS(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Yu(e,t,n,r,o,i,a,s){let l,c;if(a){l=[];for(let f of t)if(l.push(f),f.route.id===a){c=f;break}}else l=t,c=t[t.length-1];let d=Td(o||".",_d(l,i),Yo(e.pathname,n)||e.pathname,s==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&c&&c.route.index&&!Ad(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:wn([n,d.pathname])),Fr(d)}function Hm(e,t,n,r){if(!r||!LS(r))return{path:n};if(r.formMethod&&!ZS(r.formMethod))return{path:n,error:rt(405,{method:r.formMethod})};let o=()=>({path:n,error:rt(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=U0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!zt(a))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,x)=>{let[m,b]=x;return""+h+m+"="+b+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!zt(a))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}ie(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=Xu(r.formData),c=r.formData;else if(r.body instanceof FormData)l=Xu(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=Xm(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=Xm(l)}catch{return o()}let d={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(zt(d.formMethod))return{path:n,submission:d};let f=gr(n);return t&&f.search&&Ad(f.search)&&l.append("index",""),f.search="?"+l,{path:Fr(f),submission:d}}function IS(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Km(e,t,n,r,o,i,a,s,l,c,d,f,p,h,x,m){let b=m?ht(m[1])?m[1].error:m[1].data:void 0,g=e.createURL(t.location),v=e.createURL(o),y=m&&ht(m[1])?m[0]:void 0,S=y?IS(n,y):n,P=m?m[1].statusCode:void 0,N=a&&P&&P>=400,R=S.filter((O,T)=>{let{route:I}=O;if(I.lazy)return!0;if(I.loader==null)return!1;if(i)return typeof I.loader!="function"||I.loader.hydrate?!0:t.loaderData[I.id]===void 0&&(!t.errors||t.errors[I.id]===void 0);if(FS(t.loaderData,t.matches[T],O)||l.some(W=>W===O.route.id))return!0;let L=t.matches[T],q=O;return Gm(O,Pe({currentUrl:g,currentParams:L.params,nextUrl:v,nextParams:q.params},r,{actionResult:b,actionStatus:P,defaultShouldRevalidate:N?!1:s||g.pathname+g.search===v.pathname+v.search||g.search!==v.search||j0(L,q)}))}),E=[];return f.forEach((O,T)=>{if(i||!n.some(X=>X.route.id===O.routeId)||d.has(T))return;let I=Sr(h,O.path,x);if(!I){E.push({key:T,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let L=t.fetchers.get(T),q=Ci(I,O.path),W=!1;p.has(T)?W=!1:c.has(T)?(c.delete(T),W=!0):L&&L.state!=="idle"&&L.data===void 0?W=s:W=Gm(q,Pe({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:b,actionStatus:P,defaultShouldRevalidate:N?!1:s})),W&&E.push({key:T,routeId:O.routeId,path:O.path,matches:I,match:q,controller:new AbortController})}),[R,E]}function FS(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function j0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Gm(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function jS(e,t,n,r,o,i,a,s){let l=[t,...n.map(c=>c.route.id)].join("-");try{let c=a.get(l);c||(c=e({path:t,matches:n,patch:(d,f)=>{s.aborted||z0(d,f,r,o,i)}}),a.set(l,c)),c&&YS(c)&&await c}finally{a.delete(l)}}function z0(e,t,n,r,o){if(e){var i;let a=r[e];ie(a,"No route found to patch children into: routeId = "+e);let s=ia(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],r);a.children?a.children.push(...s):a.children=s}else{let a=ia(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function zS(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];ie(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";jo(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!lS.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Pe({},t(o),{lazy:void 0}))}async function US(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[n[a].route.id]:i}),{})}async function BS(e,t,n,r,o,i,a,s,l,c){let d=i.map(h=>h.route.lazy?zS(h.route,l,s):void 0),f=i.map((h,x)=>{let m=d[x],b=o.some(v=>v.route.id===h.route.id);return Pe({},h,{shouldLoad:b,resolve:async v=>(v&&r.method==="GET"&&(h.route.lazy||h.route.loader)&&(b=!0),b?WS(t,r,h,m,v,c):Promise.resolve({type:me.data,result:void 0}))})}),p=await e({matches:f,request:r,params:i[0].params,fetcherKey:a,context:c});try{await Promise.all(d)}catch{}return p}async function WS(e,t,n,r,o,i){let a,s,l=c=>{let d,f=new Promise((x,m)=>d=m);s=()=>d(),t.signal.addEventListener("abort",s);let p=x=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:i},...x!==void 0?[x]:[]),h=(async()=>{try{return{type:"data",result:await(o?o(m=>p(m)):p())}}catch(x){return{type:"error",result:x}}})();return Promise.race([h,f])};try{let c=n.route[e];if(r)if(c){let d,[f]=await Promise.all([l(c).catch(p=>{d=p}),r]);if(d!==void 0)throw d;a=f}else if(await r,c=n.route[e],c)a=await l(c);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw rt(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:me.data,result:void 0};else if(c)a=await l(c);else{let d=new URL(t.url),f=d.pathname+d.search;throw rt(404,{pathname:f})}ie(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:me.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function VS(e){let{result:t,type:n}=e;if(B0(t)){let c;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(d){return{type:me.error,error:d}}return n===me.error?{type:me.error,error:new el(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:me.data,data:c,statusCode:t.status,headers:t.headers}}if(n===me.error){if(eh(t)){var r;if(t.data instanceof Error){var o;return{type:me.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new el(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:me.error,error:t,statusCode:Ol(t)?t.status:void 0}}if(QS(t)){var i,a;return{type:me.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(eh(t)){var s,l;return{type:me.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:me.data,data:t}}function HS(e,t,n,r,o,i){let a=e.headers.get("Location");if(ie(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Md.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=Yu(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function Ym(e,t,n){if(Md.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Yo(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function eo(e,t,n,r){let o=e.createURL(U0(t)).toString(),i={signal:n};if(r&&zt(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=Xu(r.formData):i.body=r.formData}return new Request(o,i)}function Xu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Xm(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function KS(e,t,n,r,o){let i={},a=null,s,l=!1,c={},d=n&&ht(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,h=t[p];if(ie(!Rr(h),"Cannot handle redirect results in processLoaderData"),ht(h)){let x=h.error;d!==void 0&&(x=d,d=void 0),a=a||{};{let m=xo(e,p);a[m.route.id]==null&&(a[m.route.id]=x)}i[p]=void 0,l||(l=!0,s=Ol(h.error)?h.error.status:500),h.headers&&(c[p]=h.headers)}else Xn(h)?(r.set(p,h.deferredData),i[p]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[p]=h.headers)):(i[p]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[p]=h.headers))}),d!==void 0&&n&&(a={[n[0]]:d},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:c}}function Qm(e,t,n,r,o,i,a,s){let{loaderData:l,errors:c}=KS(t,r,o,s);return i.forEach(d=>{let{key:f,match:p,controller:h}=d,x=a[f];if(ie(x,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(ht(x)){let m=xo(e.matches,p==null?void 0:p.route.id);c&&c[m.route.id]||(c=Pe({},c,{[m.route.id]:x.error})),e.fetchers.delete(f)}else if(Rr(x))ie(!1,"Unhandled fetcher revalidation redirect");else if(Xn(x))ie(!1,"Unhandled fetcher deferred data");else{let m=zn(x.data);e.fetchers.set(f,m)}}),{loaderData:l,errors:c}}function Zm(e,t,n,r){let o=Pe({},t);for(let i of n){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function Jm(e){return e?ht(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function xo(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function qm(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function rt(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i==="route-discovery"?l='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+a):o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new el(e||500,s,new Error(l),!0)}function Qa(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Rr(o))return{key:r,result:o}}}function U0(e){let t=typeof e=="string"?gr(e):e;return Fr(Pe({},t,{hash:""}))}function GS(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function YS(e){return typeof e=="object"&&e!=null&&"then"in e}function XS(e){return B0(e.result)&&TS.has(e.result.status)}function Xn(e){return e.type===me.deferred}function ht(e){return e.type===me.error}function Rr(e){return(e&&e.type)===me.redirect}function eh(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function QS(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function B0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function ZS(e){return _S.has(e.toLowerCase())}function zt(e){return $S.has(e.toLowerCase())}async function JS(e,t,n,r,o){let i=Object.entries(t);for(let a=0;a(p==null?void 0:p.route.id)===s);if(!c)continue;let d=r.find(p=>p.route.id===c.route.id),f=d!=null&&!j0(d,c)&&(o&&o[c.route.id])!==void 0;Xn(l)&&f&&await Od(l,n,!1).then(p=>{p&&(t[s]=p)})}}async function qS(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===i)&&Xn(s)&&(ie(a,"Expected an AbortController for revalidating fetcher deferred result"),await Od(s,a.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function Od(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:me.data,data:e.deferredData.unwrappedData}}catch(o){return{type:me.error,error:o}}return{type:me.data,data:e.deferredData.data}}}function Ad(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ci(e,t){let n=typeof t=="string"?gr(t).search:t.search;if(e[e.length-1].route.index&&Ad(n||""))return e[e.length-1];let r=L0(e);return r[r.length-1]}function th(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Oc(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eE(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function vi(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function tE(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function zn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function nE(e,t){try{let n=e.sessionStorage.getItem(F0);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function rE(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(F0,JSON.stringify(n))}catch(r){jo(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.26.2 * * Copyright (c) Remix Software Inc. @@ -57,7 +57,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function el(){return el=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),u.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=_d(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:wn([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,i,e])}function H0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=u.useContext(Gr),{matches:o}=u.useContext(Yr),{pathname:i}=Al(),a=JSON.stringify(Nd(o,r.v7_relativeSplatPath));return u.useMemo(()=>_d(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function iE(e,t,n,r){ya()||ie(!1);let{navigator:o}=u.useContext(Gr),{matches:i}=u.useContext(Yr),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Al(),d;d=c;let f=d.pathname||"/",p=f;if(l!=="/"){let m=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(m.length).join("/")}let h=Sr(e,{pathname:p});return uE(h&&h.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:wn([l,o.encodeLocation?o.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:wn([l,o.encodeLocation?o.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),i,n,r)}function aE(){let e=mE(),t=Ml(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:o},n):null,null)}const sE=u.createElement(aE,null);class lE extends u.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?u.createElement(Yr.Provider,{value:this.props.routeContext},u.createElement(W0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cE(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(Ol);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(Yr.Provider,{value:t},r)}function uE(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||ie(!1),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let h,x=!1,m=null,b=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,m=f.route.errorElement||sE,l&&(c<0&&p===0?(vE("route-fallback"),x=!0,b=null):c===p&&(x=!0,b=f.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,p+1)),v=()=>{let y;return h?y=m:x?y=b:f.route.Component?y=u.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,u.createElement(cE,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?u.createElement(lE,{location:n.location,revalidation:n.revalidation,component:m,error:h,children:v(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):v()},null)}var K0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(K0||{}),tl=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}(tl||{});function fE(e){let t=u.useContext(Ol);return t||ie(!1),t}function dE(e){let t=u.useContext(B0);return t||ie(!1),t}function pE(e){let t=u.useContext(Yr);return t||ie(!1),t}function G0(e){let t=pE(),n=t.matches[t.matches.length-1];return n.route.id||ie(!1),n.route.id}function mE(){var e;let t=u.useContext(W0),n=dE(tl.UseRouteError),r=G0(tl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function hE(){let{router:e}=fE(K0.UseNavigateStable),t=G0(tl.UseNavigateStable),n=u.useRef(!1);return V0(()=>{n.current=!0}),u.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,el({fromRouteId:t},i)))},[e,t])}const th={};function vE(e,t,n){th[e]||(th[e]=!0)}function gE(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ie.Pop,navigator:i,static:a=!1,future:s}=e;ya()&&ie(!1);let l=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:l,navigator:i,static:a,future:el({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=gr(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:x="default"}=r,m=u.useMemo(()=>{let b=Yo(d,l);return b==null?null:{location:{pathname:b,search:f,hash:p,state:h,key:x},navigationType:o}},[l,d,f,p,h,x,o]);return m==null?null:u.createElement(Gr.Provider,{value:c},u.createElement(Ad.Provider,{children:n,value:m}))}new Promise(()=>{});function yE(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:u.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:u.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:u.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),u.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=Td(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:wn([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,i,e])}function K0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=u.useContext(Gr),{matches:o}=u.useContext(Yr),{pathname:i}=Dl(),a=JSON.stringify(_d(o,r.v7_relativeSplatPath));return u.useMemo(()=>Td(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function aE(e,t,n,r){xa()||ie(!1);let{navigator:o}=u.useContext(Gr),{matches:i}=u.useContext(Yr),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Dl(),d;d=c;let f=d.pathname||"/",p=f;if(l!=="/"){let m=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(m.length).join("/")}let h=Sr(e,{pathname:p});return fE(h&&h.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:wn([l,o.encodeLocation?o.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:wn([l,o.encodeLocation?o.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),i,n,r)}function sE(){let e=hE(),t=Ol(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:o},n):null,null)}const lE=u.createElement(sE,null);class cE extends u.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?u.createElement(Yr.Provider,{value:this.props.routeContext},u.createElement(V0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uE(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(Al);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(Yr.Provider,{value:t},r)}function fE(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||ie(!1),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let h,x=!1,m=null,b=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,m=f.route.errorElement||lE,l&&(c<0&&p===0?(gE("route-fallback"),x=!0,b=null):c===p&&(x=!0,b=f.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,p+1)),v=()=>{let y;return h?y=m:x?y=b:f.route.Component?y=u.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,u.createElement(uE,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?u.createElement(cE,{location:n.location,revalidation:n.revalidation,component:m,error:h,children:v(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):v()},null)}var G0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(G0||{}),nl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(nl||{});function dE(e){let t=u.useContext(Al);return t||ie(!1),t}function pE(e){let t=u.useContext(W0);return t||ie(!1),t}function mE(e){let t=u.useContext(Yr);return t||ie(!1),t}function Y0(e){let t=mE(),n=t.matches[t.matches.length-1];return n.route.id||ie(!1),n.route.id}function hE(){var e;let t=u.useContext(V0),n=pE(nl.UseRouteError),r=Y0(nl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function vE(){let{router:e}=dE(G0.UseNavigateStable),t=Y0(nl.UseNavigateStable),n=u.useRef(!1);return H0(()=>{n.current=!0}),u.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,tl({fromRouteId:t},i)))},[e,t])}const nh={};function gE(e,t,n){nh[e]||(nh[e]=!0)}function yE(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ie.Pop,navigator:i,static:a=!1,future:s}=e;xa()&&ie(!1);let l=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:l,navigator:i,static:a,future:tl({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=gr(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:x="default"}=r,m=u.useMemo(()=>{let b=Yo(d,l);return b==null?null:{location:{pathname:b,search:f,hash:p,state:h,key:x},navigationType:o}},[l,d,f,p,h,x,o]);return m==null?null:u.createElement(Gr.Provider,{value:c},u.createElement(Dd.Provider,{children:n,value:m}))}new Promise(()=>{});function xE(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:u.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:u.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:u.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.26.2 * * Copyright (c) Remix Software Inc. @@ -66,58 +66,58 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function wE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bE(e,t){return e.button===0&&(!t||t==="_self")&&!wE(e)}const SE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],EE="6";try{window.__reactRouterVersion=EE}catch{}function CE(e,t){return AS({basename:void 0,future:ia({},void 0,{v7_prependBasename:!0}),history:oS({window:void 0}),hydrationData:PE(),routes:e,mapRouteProperties:yE,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function PE(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ia({},t,{errors:kE(t.errors)})),t}function kE(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new qs(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const RE=u.createContext({isTransitioning:!1}),$E=u.createContext(new Map),NE="startTransition",nh=If[NE],_E="flushSync",rh=rS[_E];function TE(e){nh?nh(e):e()}function gi(e){rh?rh(e):e()}class ME{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function OE(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=u.useState(n.state),[a,s]=u.useState(),[l,c]=u.useState({isTransitioning:!1}),[d,f]=u.useState(),[p,h]=u.useState(),[x,m]=u.useState(),b=u.useRef(new Map),{v7_startTransition:g}=r||{},v=u.useCallback(E=>{g?TE(E):E()},[g]),y=u.useCallback((E,O)=>{let{deletedFetchers:T,unstable_flushSync:I,unstable_viewTransitionOpts:L}=O;T.forEach(W=>b.current.delete(W)),E.fetchers.forEach((W,X)=>{W.data!==void 0&&b.current.set(X,W.data)});let q=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!L||q){I?gi(()=>i(E)):v(()=>i(E));return}if(I){gi(()=>{p&&(d&&d.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let W=n.window.document.startViewTransition(()=>{gi(()=>i(E))});W.finished.finally(()=>{gi(()=>{f(void 0),h(void 0),s(void 0),c({isTransitioning:!1})})}),gi(()=>h(W));return}p?(d&&d.resolve(),p.skipTransition(),m({state:E,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(s(E),c({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[n.window,p,d,b,v]);u.useLayoutEffect(()=>n.subscribe(y),[n,y]),u.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new ME)},[l]),u.useEffect(()=>{if(d&&a&&n.window){let E=a,O=d.promise,T=n.window.document.startViewTransition(async()=>{v(()=>i(E)),await O});T.finished.finally(()=>{f(void 0),h(void 0),s(void 0),c({isTransitioning:!1})}),h(T)}},[v,a,d,n.window]),u.useEffect(()=>{d&&a&&o.location.key===a.location.key&&d.resolve()},[d,p,o.location,a]),u.useEffect(()=>{!l.isTransitioning&&x&&(s(x.state),c({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),m(void 0))},[l.isTransitioning,x]),u.useEffect(()=>{},[]);let S=u.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,O,T)=>n.navigate(E,{state:O,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(E,O,T)=>n.navigate(E,{replace:!0,state:O,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),P=n.basename||"/",N=u.useMemo(()=>({router:n,navigator:S,static:!1,basename:P}),[n,S,P]),R=u.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return u.createElement(u.Fragment,null,u.createElement(Ol.Provider,{value:N},u.createElement(B0.Provider,{value:o},u.createElement($E.Provider,{value:b.current},u.createElement(RE.Provider,{value:l},u.createElement(gE,{basename:P,location:o.location,navigationType:o.historyAction,navigator:S,future:R},o.initialized||n.future.v7_partialHydration?u.createElement(AE,{routes:n.routes,future:n.future,state:o}):t))))),null)}const AE=u.memo(DE);function DE(e){let{routes:t,future:n,state:r}=e;return iE(t,void 0,r,n)}const LE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",IE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dd=u.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,p=xE(t,SE),{basename:h}=u.useContext(Gr),x,m=!1;if(typeof c=="string"&&IE.test(c)&&(x=c,LE))try{let y=new URL(window.location.href),S=c.startsWith("//")?new URL(y.protocol+c):new URL(c),P=Yo(S.pathname,h);S.origin===y.origin&&P!=null?c=P+S.search+S.hash:m=!0}catch{}let b=rE(c,{relative:o}),g=FE(c,{replace:a,state:s,target:l,preventScrollReset:d,relative:o,unstable_viewTransition:f});function v(y){r&&r(y),y.defaultPrevented||g(y)}return u.createElement("a",ia({},p,{href:x||b,onClick:m||i?r:v,ref:n,target:l}))});var oh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(oh||(oh={}));var ih;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ih||(ih={}));function FE(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=Dl(),c=Al(),d=H0(e,{relative:a});return u.useCallback(f=>{if(bE(f,n)){f.preventDefault();let p=r!==void 0?r:Fr(c)===Fr(d);l(e,{replace:p,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[c,l,d,r,o,n,e,i,a,s])}function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>jE(n,t))}function Ct(...e){return u.useCallback(Ll(...e),e)}const zo=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(UE);if(i){const a=i.props.children,s=o.map(l=>l===i?u.Children.count(a)>1?u.Children.only(null):u.isValidElement(a)?a.props.children:null:l);return u.createElement(Xu,G({},r,{ref:t}),u.isValidElement(a)?u.cloneElement(a,void 0,s):null)}return u.createElement(Xu,G({},r,{ref:t}),n)});zo.displayName="Slot";const Xu=u.forwardRef((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...BE(r,n.props),ref:t?Ll(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});Xu.displayName="SlotClone";const zE=({children:e})=>u.createElement(u.Fragment,null,e);function UE(e){return u.isValidElement(e)&&e.type===zE}function BE(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Y0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,sh=WE,X0=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return sh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],f=i==null?void 0:i[c];if(d===null)return null;const p=ah(d)||ah(f);return o[c][p]}),s=n&&Object.entries(n).reduce((c,d)=>{let[f,p]=d;return p===void 0||(c[f]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:f,className:p,...h}=d;return Object.entries(h).every(x=>{let[m,b]=x;return Array.isArray(b)?b.includes({...i,...s}[m]):{...i,...s}[m]===b})?[...c,f,p]:c},[]);return sh(e,a,l,n==null?void 0:n.class,n==null?void 0:n.className)};function Q0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts(i)))==null?void 0:a.classGroupId}const lh=/^\[(.+)\]$/;function KE(e){if(lh.test(e)){const t=lh.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function GE(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return XE(Object.entries(e.classGroups),n).forEach(([i,a])=>{Qu(a,r,i,t)}),r}function Qu(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ch(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(YE(o)){Qu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,a])=>{Qu(a,ch(t,i),n,r)})})}function ch(e,t){let n=e;return t.split(Ld).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function YE(e){return e.isThemeGetter}function XE(e,t){return t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,s])=>[t+a,s])):i);return[n,o]}):e}function QE(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,a){n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return o(i,a),a},set(i,a){n.has(i)?n.set(i,a):o(i,a)}}}const J0="!";function ZE(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(a){const s=[];let l=0,c=0,d;for(let m=0;mc?d-c:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:x}}}function JE(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function qE(e){return{cache:QE(e.cacheSize),splitModifiers:ZE(e),...HE(e)}}const eC=/\s+/;function tC(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(eC).map(a=>{const{modifiers:s,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:d}=n(a);let f=r(d?c.substring(0,d):c),p=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:a};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:a};p=!1}const h=JE(s).join(":");return{isTailwindClass:!0,modifierId:l?h+J0:h,classGroupId:f,originalClassName:a,hasPostfixModifier:p}}).reverse().filter(a=>{if(!a.isTailwindClass)return!0;const{modifierId:s,classGroupId:l,hasPostfixModifier:c}=a,d=s+l;return i.has(d)?!1:(i.add(d),o(l,c).forEach(f=>i.add(s+f)),!0)}).reverse().map(a=>a.originalClassName).join(" ")}function nC(){let e=0,t,n,r="";for(;ef(d),e());return n=qE(c),r=n.cache.get,o=n.cache.set,i=s,s(l)}function s(l){const c=r(l);if(c)return c;const d=tC(l,n);return o(l,d),d}return function(){return i(nC.apply(null,arguments))}}function ye(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const ey=/^\[(?:([a-z-]+):)?(.+)\]$/i,oC=/^\d+\/\d+$/,iC=new Set(["px","full","screen"]),aC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,lC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,cC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function mn(e){return $r(e)||iC.has(e)||oC.test(e)}function In(e){return Xo(e,"length",yC)}function $r(e){return!!e&&!Number.isNaN(Number(e))}function Qa(e){return Xo(e,"number",$r)}function yi(e){return!!e&&Number.isInteger(Number(e))}function fC(e){return e.endsWith("%")&&$r(e.slice(0,-1))}function te(e){return ey.test(e)}function Fn(e){return aC.test(e)}const dC=new Set(["length","size","percentage"]);function pC(e){return Xo(e,dC,ty)}function mC(e){return Xo(e,"position",ty)}const hC=new Set(["image","url"]);function vC(e){return Xo(e,hC,wC)}function gC(e){return Xo(e,"",xC)}function xi(){return!0}function Xo(e,t,n){const r=ey.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function yC(e){return sC.test(e)&&!lC.test(e)}function ty(){return!1}function xC(e){return cC.test(e)}function wC(e){return uC.test(e)}function bC(){const e=ye("colors"),t=ye("spacing"),n=ye("blur"),r=ye("brightness"),o=ye("borderColor"),i=ye("borderRadius"),a=ye("borderSpacing"),s=ye("borderWidth"),l=ye("contrast"),c=ye("grayscale"),d=ye("hueRotate"),f=ye("invert"),p=ye("gap"),h=ye("gradientColorStops"),x=ye("gradientColorStopPositions"),m=ye("inset"),b=ye("margin"),g=ye("opacity"),v=ye("padding"),y=ye("saturate"),S=ye("scale"),P=ye("sepia"),N=ye("skew"),R=ye("space"),E=ye("translate"),O=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",te,t],L=()=>[te,t],q=()=>["",mn,In],W=()=>["auto",$r,te],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ee=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",te],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[$r,Qa],ne=()=>[$r,te];return{cacheSize:500,separator:":",theme:{colors:[xi],spacing:[mn,In],blur:["none","",Fn,te],brightness:Q(),borderColor:[e],borderRadius:["none","","full",Fn,te],borderSpacing:L(),borderWidth:q(),contrast:Q(),grayscale:_(),hueRotate:ne(),invert:_(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[fC,In],inset:I(),margin:I(),opacity:Q(),padding:L(),saturate:Q(),scale:Q(),sepia:_(),skew:ne(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[Fn]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),te]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",yi,te]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",yi,te]}],"grid-cols":[{"grid-cols":[xi]}],"col-start-end":[{col:["auto",{span:["full",yi,te]},te]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[xi]}],"row-start-end":[{row:["auto",{span:[yi,te]},te]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[Fn]},Fn]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Fn,In]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Qa]}],"font-family":[{font:[xi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",$r,Qa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",mn,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",mn,In]}],"underline-offset":[{"underline-offset":["auto",mn,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),mC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",pC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...ee(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:ee()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...ee()]}],"outline-offset":[{"outline-offset":[mn,te]}],"outline-w":[{outline:[mn,In]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[mn,In]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Fn,gC]}],"shadow-color":[{shadow:[xi]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Fn,te]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[yi,te]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[mn,In,Qa]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const SC=rC(bC);function he(...e){return SC(VE(e))}function Za(e){const t=Math.floor(e/60),n=e%60;return`${t<10?"0":""}${t}:${n<10?"0":""}${n}`}const EC=X0("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),tt=u.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const a=r?zo:"button";return w.jsx(a,{className:he(EC({variant:t,size:n,className:e})),ref:i,...o})});tt.displayName="Button";/** + */function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function bE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function SE(e,t){return e.button===0&&(!t||t==="_self")&&!bE(e)}const EE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],CE="6";try{window.__reactRouterVersion=CE}catch{}function PE(e,t){return DS({basename:void 0,future:aa({},void 0,{v7_prependBasename:!0}),history:iS({window:void 0}),hydrationData:kE(),routes:e,mapRouteProperties:xE,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function kE(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=aa({},t,{errors:RE(t.errors)})),t}function RE(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new el(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const $E=u.createContext({isTransitioning:!1}),NE=u.createContext(new Map),_E="startTransition",rh=Ff[_E],TE="flushSync",oh=oS[TE];function ME(e){rh?rh(e):e()}function gi(e){oh?oh(e):e()}class OE{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function AE(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=u.useState(n.state),[a,s]=u.useState(),[l,c]=u.useState({isTransitioning:!1}),[d,f]=u.useState(),[p,h]=u.useState(),[x,m]=u.useState(),b=u.useRef(new Map),{v7_startTransition:g}=r||{},v=u.useCallback(E=>{g?ME(E):E()},[g]),y=u.useCallback((E,O)=>{let{deletedFetchers:T,unstable_flushSync:I,unstable_viewTransitionOpts:L}=O;T.forEach(W=>b.current.delete(W)),E.fetchers.forEach((W,X)=>{W.data!==void 0&&b.current.set(X,W.data)});let q=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!L||q){I?gi(()=>i(E)):v(()=>i(E));return}if(I){gi(()=>{p&&(d&&d.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let W=n.window.document.startViewTransition(()=>{gi(()=>i(E))});W.finished.finally(()=>{gi(()=>{f(void 0),h(void 0),s(void 0),c({isTransitioning:!1})})}),gi(()=>h(W));return}p?(d&&d.resolve(),p.skipTransition(),m({state:E,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(s(E),c({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[n.window,p,d,b,v]);u.useLayoutEffect(()=>n.subscribe(y),[n,y]),u.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new OE)},[l]),u.useEffect(()=>{if(d&&a&&n.window){let E=a,O=d.promise,T=n.window.document.startViewTransition(async()=>{v(()=>i(E)),await O});T.finished.finally(()=>{f(void 0),h(void 0),s(void 0),c({isTransitioning:!1})}),h(T)}},[v,a,d,n.window]),u.useEffect(()=>{d&&a&&o.location.key===a.location.key&&d.resolve()},[d,p,o.location,a]),u.useEffect(()=>{!l.isTransitioning&&x&&(s(x.state),c({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),m(void 0))},[l.isTransitioning,x]),u.useEffect(()=>{},[]);let S=u.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,O,T)=>n.navigate(E,{state:O,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(E,O,T)=>n.navigate(E,{replace:!0,state:O,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),P=n.basename||"/",N=u.useMemo(()=>({router:n,navigator:S,static:!1,basename:P}),[n,S,P]),R=u.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return u.createElement(u.Fragment,null,u.createElement(Al.Provider,{value:N},u.createElement(W0.Provider,{value:o},u.createElement(NE.Provider,{value:b.current},u.createElement($E.Provider,{value:l},u.createElement(yE,{basename:P,location:o.location,navigationType:o.historyAction,navigator:S,future:R},o.initialized||n.future.v7_partialHydration?u.createElement(DE,{routes:n.routes,future:n.future,state:o}):t))))),null)}const DE=u.memo(LE);function LE(e){let{routes:t,future:n,state:r}=e;return aE(t,void 0,r,n)}const IE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",FE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ld=u.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,p=wE(t,EE),{basename:h}=u.useContext(Gr),x,m=!1;if(typeof c=="string"&&FE.test(c)&&(x=c,IE))try{let y=new URL(window.location.href),S=c.startsWith("//")?new URL(y.protocol+c):new URL(c),P=Yo(S.pathname,h);S.origin===y.origin&&P!=null?c=P+S.search+S.hash:m=!0}catch{}let b=oE(c,{relative:o}),g=jE(c,{replace:a,state:s,target:l,preventScrollReset:d,relative:o,unstable_viewTransition:f});function v(y){r&&r(y),y.defaultPrevented||g(y)}return u.createElement("a",aa({},p,{href:x||b,onClick:m||i?r:v,ref:n,target:l}))});var ih;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ih||(ih={}));var ah;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ah||(ah={}));function jE(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=Ll(),c=Dl(),d=K0(e,{relative:a});return u.useCallback(f=>{if(SE(f,n)){f.preventDefault();let p=r!==void 0?r:Fr(c)===Fr(d);l(e,{replace:p,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[c,l,d,r,o,n,e,i,a,s])}function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>zE(n,t))}function Ct(...e){return u.useCallback(Il(...e),e)}const zo=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(BE);if(i){const a=i.props.children,s=o.map(l=>l===i?u.Children.count(a)>1?u.Children.only(null):u.isValidElement(a)?a.props.children:null:l);return u.createElement(Qu,G({},r,{ref:t}),u.isValidElement(a)?u.cloneElement(a,void 0,s):null)}return u.createElement(Qu,G({},r,{ref:t}),n)});zo.displayName="Slot";const Qu=u.forwardRef((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...WE(r,n.props),ref:t?Il(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});Qu.displayName="SlotClone";const UE=({children:e})=>u.createElement(u.Fragment,null,e);function BE(e){return u.isValidElement(e)&&e.type===UE}function WE(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function X0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,lh=VE,Q0=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return lh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],f=i==null?void 0:i[c];if(d===null)return null;const p=sh(d)||sh(f);return o[c][p]}),s=n&&Object.entries(n).reduce((c,d)=>{let[f,p]=d;return p===void 0||(c[f]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:f,className:p,...h}=d;return Object.entries(h).every(x=>{let[m,b]=x;return Array.isArray(b)?b.includes({...i,...s}[m]):{...i,...s}[m]===b})?[...c,f,p]:c},[]);return lh(e,a,l,n==null?void 0:n.class,n==null?void 0:n.className)};function Z0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts(i)))==null?void 0:a.classGroupId}const ch=/^\[(.+)\]$/;function GE(e){if(ch.test(e)){const t=ch.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function YE(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return QE(Object.entries(e.classGroups),n).forEach(([i,a])=>{Zu(a,r,i,t)}),r}function Zu(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:uh(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(XE(o)){Zu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,a])=>{Zu(a,uh(t,i),n,r)})})}function uh(e,t){let n=e;return t.split(Id).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function XE(e){return e.isThemeGetter}function QE(e,t){return t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,s])=>[t+a,s])):i);return[n,o]}):e}function ZE(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,a){n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return o(i,a),a},set(i,a){n.has(i)?n.set(i,a):o(i,a)}}}const q0="!";function JE(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(a){const s=[];let l=0,c=0,d;for(let m=0;mc?d-c:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:x}}}function qE(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function eC(e){return{cache:ZE(e.cacheSize),splitModifiers:JE(e),...KE(e)}}const tC=/\s+/;function nC(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(tC).map(a=>{const{modifiers:s,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:d}=n(a);let f=r(d?c.substring(0,d):c),p=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:a};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:a};p=!1}const h=qE(s).join(":");return{isTailwindClass:!0,modifierId:l?h+q0:h,classGroupId:f,originalClassName:a,hasPostfixModifier:p}}).reverse().filter(a=>{if(!a.isTailwindClass)return!0;const{modifierId:s,classGroupId:l,hasPostfixModifier:c}=a,d=s+l;return i.has(d)?!1:(i.add(d),o(l,c).forEach(f=>i.add(s+f)),!0)}).reverse().map(a=>a.originalClassName).join(" ")}function rC(){let e=0,t,n,r="";for(;ef(d),e());return n=eC(c),r=n.cache.get,o=n.cache.set,i=s,s(l)}function s(l){const c=r(l);if(c)return c;const d=nC(l,n);return o(l,d),d}return function(){return i(rC.apply(null,arguments))}}function ye(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const ty=/^\[(?:([a-z-]+):)?(.+)\]$/i,iC=/^\d+\/\d+$/,aC=new Set(["px","full","screen"]),sC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,cC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,uC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function mn(e){return $r(e)||aC.has(e)||iC.test(e)}function In(e){return Xo(e,"length",xC)}function $r(e){return!!e&&!Number.isNaN(Number(e))}function Za(e){return Xo(e,"number",$r)}function yi(e){return!!e&&Number.isInteger(Number(e))}function dC(e){return e.endsWith("%")&&$r(e.slice(0,-1))}function te(e){return ty.test(e)}function Fn(e){return sC.test(e)}const pC=new Set(["length","size","percentage"]);function mC(e){return Xo(e,pC,ny)}function hC(e){return Xo(e,"position",ny)}const vC=new Set(["image","url"]);function gC(e){return Xo(e,vC,bC)}function yC(e){return Xo(e,"",wC)}function xi(){return!0}function Xo(e,t,n){const r=ty.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function xC(e){return lC.test(e)&&!cC.test(e)}function ny(){return!1}function wC(e){return uC.test(e)}function bC(e){return fC.test(e)}function SC(){const e=ye("colors"),t=ye("spacing"),n=ye("blur"),r=ye("brightness"),o=ye("borderColor"),i=ye("borderRadius"),a=ye("borderSpacing"),s=ye("borderWidth"),l=ye("contrast"),c=ye("grayscale"),d=ye("hueRotate"),f=ye("invert"),p=ye("gap"),h=ye("gradientColorStops"),x=ye("gradientColorStopPositions"),m=ye("inset"),b=ye("margin"),g=ye("opacity"),v=ye("padding"),y=ye("saturate"),S=ye("scale"),P=ye("sepia"),N=ye("skew"),R=ye("space"),E=ye("translate"),O=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",te,t],L=()=>[te,t],q=()=>["",mn,In],W=()=>["auto",$r,te],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ee=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",te],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[$r,Za],ne=()=>[$r,te];return{cacheSize:500,separator:":",theme:{colors:[xi],spacing:[mn,In],blur:["none","",Fn,te],brightness:Q(),borderColor:[e],borderRadius:["none","","full",Fn,te],borderSpacing:L(),borderWidth:q(),contrast:Q(),grayscale:_(),hueRotate:ne(),invert:_(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[dC,In],inset:I(),margin:I(),opacity:Q(),padding:L(),saturate:Q(),scale:Q(),sepia:_(),skew:ne(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[Fn]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),te]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",yi,te]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",yi,te]}],"grid-cols":[{"grid-cols":[xi]}],"col-start-end":[{col:["auto",{span:["full",yi,te]},te]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[xi]}],"row-start-end":[{row:["auto",{span:[yi,te]},te]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[Fn]},Fn]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Fn,In]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Za]}],"font-family":[{font:[xi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",$r,Za]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",mn,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",mn,In]}],"underline-offset":[{"underline-offset":["auto",mn,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),hC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},gC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...ee(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:ee()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...ee()]}],"outline-offset":[{"outline-offset":[mn,te]}],"outline-w":[{outline:[mn,In]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[mn,In]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Fn,yC]}],"shadow-color":[{shadow:[xi]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Fn,te]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[yi,te]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[mn,In,Za]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const EC=oC(SC);function he(...e){return EC(HE(e))}function Ja(e){const t=Math.floor(e/60),n=e%60;return`${t<10?"0":""}${t}:${n<10?"0":""}${n}`}const CC=Q0("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ye=u.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const a=r?zo:"button";return w.jsx(a,{className:he(CC({variant:t,size:n,className:e})),ref:i,...o})});Ye.displayName="Button";/** * @license lucide-react v0.378.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const CC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ny=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** + */const PC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ry=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** * @license lucide-react v0.378.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var PC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + */var kC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.378.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const kC=u.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>u.createElement("svg",{ref:l,...PC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ny("lucide",o),...s},[...a.map(([c,d])=>u.createElement(c,d)),...Array.isArray(i)?i:[i]]));/** + */const RC=u.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>u.createElement("svg",{ref:l,...kC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ry("lucide",o),...s},[...a.map(([c,d])=>u.createElement(c,d)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.378.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Qo=(e,t)=>{const n=u.forwardRef(({className:r,...o},i)=>u.createElement(kC,{ref:i,iconNode:t,className:ny(`lucide-${CC(e)}`,r),...o}));return n.displayName=`${e}`,n};/** + */const Qo=(e,t)=>{const n=u.forwardRef(({className:r,...o},i)=>u.createElement(RC,{ref:i,iconNode:t,className:ry(`lucide-${PC(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.378.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const RC=Qo("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + */const $C=Qo("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.378.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const $C=Qo("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** + */const NC=Qo("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.378.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const NC=Qo("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** + */const _C=Qo("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** * @license lucide-react v0.378.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const _C=Qo("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** + */const TC=Qo("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** * @license lucide-react v0.378.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const TC=Qo("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** + */const MC=Qo("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** * @license lucide-react v0.378.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const MC=Qo("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function ae(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Zo(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:h,...x}=f,m=(p==null?void 0:p[e][l])||s,b=u.useMemo(()=>x,Object.values(x));return u.createElement(m.Provider,{value:b},h)}function d(f,p){const h=(p==null?void 0:p[e][l])||s,x=u.useContext(h);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}const o=()=>{const i=n.map(a=>u.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,OC(o,...t)]}function OC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function rn(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Id({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=AC({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=rn(n),l=u.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[i,e,o,s]);return[a,l]}function AC({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=rn(t);return u.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const DC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ve=DC.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?zo:t;return u.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),u.createElement(s,G({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ry(e,t){e&&vr.flushSync(()=>e.dispatchEvent(t))}function oy(e){const t=e+"CollectionProvider",[n,r]=Zo(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:x,children:m}=h,b=Oe.useRef(null),g=Oe.useRef(new Map).current;return Oe.createElement(o,{scope:x,itemMap:g,collectionRef:b},m)},s=e+"CollectionSlot",l=Oe.forwardRef((h,x)=>{const{scope:m,children:b}=h,g=i(s,m),v=Ct(x,g.collectionRef);return Oe.createElement(zo,{ref:v},b)}),c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Oe.forwardRef((h,x)=>{const{scope:m,children:b,...g}=h,v=Oe.useRef(null),y=Ct(x,v),S=i(c,m);return Oe.useEffect(()=>(S.itemMap.set(v,{ref:v,...g}),()=>void S.itemMap.delete(v))),Oe.createElement(zo,{[d]:"",ref:y},b)});function p(h){const x=i(e+"CollectionConsumer",h);return Oe.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const g=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((S,P)=>g.indexOf(S.ref.current)-g.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},p,r]}const LC=u.createContext(void 0);function Fd(e){const t=u.useContext(LC);return e||t||"ltr"}function IC(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Zu="dismissableLayer.update",FC="dismissableLayer.pointerDownOutside",jC="dismissableLayer.focusOutside";let uh;const zC=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),UC=u.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,d=u.useContext(zC),[f,p]=u.useState(null),h=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,x]=u.useState({}),m=Ct(t,E=>p(E)),b=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),v=b.indexOf(g),y=f?b.indexOf(f):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,P=y>=v,N=BC(E=>{const O=E.target,T=[...d.branches].some(I=>I.contains(O));!P||T||(i==null||i(E),s==null||s(E),E.defaultPrevented||l==null||l())},h),R=WC(E=>{const O=E.target;[...d.branches].some(I=>I.contains(O))||(a==null||a(E),s==null||s(E),E.defaultPrevented||l==null||l())},h);return IC(E=>{y===d.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},h),u.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(uh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),fh(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=uh)}},[f,h,r,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),fh())},[f,d]),u.useEffect(()=>{const E=()=>x({});return document.addEventListener(Zu,E),()=>document.removeEventListener(Zu,E)},[]),u.createElement(Ve.div,G({},c,{ref:m,style:{pointerEvents:S?P?"auto":"none":void 0,...e.style},onFocusCapture:ae(e.onFocusCapture,R.onFocusCapture),onBlurCapture:ae(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:ae(e.onPointerDownCapture,N.onPointerDownCapture)}))});function BC(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){iy(FC,n,c,{discrete:!0})};var l=d;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function WC(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e),r=u.useRef(!1);return u.useEffect(()=>{const o=i=>{i.target&&!r.current&&iy(jC,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function fh(){const e=new CustomEvent(Zu);document.dispatchEvent(e)}function iy(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ry(o,i):o.dispatchEvent(i)}let Oc=0;function VC(){u.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:dh()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:dh()),Oc++,()=>{Oc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Oc--}},[])}function dh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Ac="focusScope.autoFocusOnMount",Dc="focusScope.autoFocusOnUnmount",ph={bubbles:!1,cancelable:!0},HC=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=u.useState(null),c=rn(o),d=rn(i),f=u.useRef(null),p=Ct(t,m=>l(m)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let v=function(N){if(h.paused||!s)return;const R=N.target;s.contains(R)?f.current=R:Un(f.current,{select:!0})},y=function(N){if(h.paused||!s)return;const R=N.relatedTarget;R!==null&&(s.contains(R)||Un(f.current,{select:!0}))},S=function(N){if(document.activeElement===document.body)for(const E of N)E.removedNodes.length>0&&Un(s)};var m=v,b=y,g=S;document.addEventListener("focusin",v),document.addEventListener("focusout",y);const P=new MutationObserver(S);return s&&P.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),P.disconnect()}}},[r,s,h.paused]),u.useEffect(()=>{if(s){hh.add(h);const m=document.activeElement;if(!s.contains(m)){const g=new CustomEvent(Ac,ph);s.addEventListener(Ac,c),s.dispatchEvent(g),g.defaultPrevented||(KC(ZC(ay(s)),{select:!0}),document.activeElement===m&&Un(s))}return()=>{s.removeEventListener(Ac,c),setTimeout(()=>{const g=new CustomEvent(Dc,ph);s.addEventListener(Dc,d),s.dispatchEvent(g),g.defaultPrevented||Un(m??document.body,{select:!0}),s.removeEventListener(Dc,d),hh.remove(h)},0)}}},[s,c,d,h]);const x=u.useCallback(m=>{if(!n&&!r||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,g=document.activeElement;if(b&&g){const v=m.currentTarget,[y,S]=GC(v);y&&S?!m.shiftKey&&g===S?(m.preventDefault(),n&&Un(y,{select:!0})):m.shiftKey&&g===y&&(m.preventDefault(),n&&Un(S,{select:!0})):g===v&&m.preventDefault()}},[n,r,h.paused]);return u.createElement(Ve.div,G({tabIndex:-1},a,{ref:p,onKeyDown:x}))});function KC(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Un(r,{select:t}),document.activeElement!==n)return}function GC(e){const t=ay(e),n=mh(t,e),r=mh(t.reverse(),e);return[n,r]}function ay(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function mh(e,t){for(const n of e)if(!YC(n,{upTo:t}))return n}function YC(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function XC(e){return e instanceof HTMLInputElement&&"select"in e}function Un(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&XC(e)&&t&&e.select()}}const hh=QC();function QC(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=vh(e,t),e.unshift(t)},remove(t){var n;e=vh(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function vh(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ZC(e){return e.filter(t=>t.tagName!=="A")}const Uo=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},JC=If.useId||(()=>{});let qC=0;function nl(e){const[t,n]=u.useState(JC());return Uo(()=>{n(r=>r??String(qC++))},[e]),t?`radix-${t}`:""}const e3=["top","right","bottom","left"],Jt=Math.min,vt=Math.max,rl=Math.round,Ja=Math.floor,lr=e=>({x:e,y:e}),t3={left:"right",right:"left",bottom:"top",top:"bottom"},n3={start:"end",end:"start"};function Ju(e,t,n){return vt(e,Jt(t,n))}function Pn(e,t){return typeof e=="function"?e(t):e}function kn(e){return e.split("-")[0]}function Jo(e){return e.split("-")[1]}function jd(e){return e==="x"?"y":"x"}function zd(e){return e==="y"?"height":"width"}function qo(e){return["top","bottom"].includes(kn(e))?"y":"x"}function Ud(e){return jd(qo(e))}function r3(e,t,n){n===void 0&&(n=!1);const r=Jo(e),o=Ud(e),i=zd(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ol(a)),[a,ol(a)]}function o3(e){const t=ol(e);return[qu(e),t,qu(t)]}function qu(e){return e.replace(/start|end/g,t=>n3[t])}function i3(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function a3(e,t,n,r){const o=Jo(e);let i=i3(kn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(qu)))),i}function ol(e){return e.replace(/left|right|bottom|top/g,t=>t3[t])}function s3(e){return{top:0,right:0,bottom:0,left:0,...e}}function sy(e){return typeof e!="number"?s3(e):{top:e,right:e,bottom:e,left:e}}function il(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function gh(e,t,n){let{reference:r,floating:o}=e;const i=qo(t),a=Ud(t),s=zd(a),l=kn(t),c=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Jo(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1);break}return h}const l3=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=gh(c,r,l),p=r,h={},x=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=Pn(e,t)||{};if(c==null)return{};const f=sy(d),p={x:n,y:r},h=Ud(o),x=zd(h),m=await a.getDimensions(c),b=h==="y",g=b?"top":"left",v=b?"bottom":"right",y=b?"clientHeight":"clientWidth",S=i.reference[x]+i.reference[h]-p[h]-i.floating[x],P=p[h]-i.reference[h],N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let R=N?N[y]:0;(!R||!await(a.isElement==null?void 0:a.isElement(N)))&&(R=s.floating[y]||i.floating[x]);const E=S/2-P/2,O=R/2-m[x]/2-1,T=Jt(f[g],O),I=Jt(f[v],O),L=T,q=R-m[x]-I,W=R/2-m[x]/2+E,X=Ju(L,W,q),ee=!l.arrow&&Jo(o)!=null&&W!==X&&i.reference[x]/2-(WL<=0)){var O,T;const L=(((O=i.flip)==null?void 0:O.index)||0)+1,q=P[L];if(q)return{data:{index:L,overflows:E},reset:{placement:q}};let W=(T=E.filter(X=>X.overflows[0]<=0).sort((X,ee)=>X.overflows[1]-ee.overflows[1])[0])==null?void 0:T.placement;if(!W)switch(h){case"bestFit":{var I;const X=(I=E.map(ee=>[ee.placement,ee.overflows.filter(Z=>Z>0).reduce((Z,D)=>Z+D,0)]).sort((ee,Z)=>ee[1]-Z[1])[0])==null?void 0:I[0];X&&(W=X);break}case"initialPlacement":W=s;break}if(o!==W)return{reset:{placement:W}}}return{}}}};function yh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xh(e){return e3.some(t=>e[t]>=0)}const f3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Pn(e,t);switch(r){case"referenceHidden":{const i=await aa(t,{...o,elementContext:"reference"}),a=yh(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:xh(a)}}}case"escaped":{const i=await aa(t,{...o,altBoundary:!0}),a=yh(i,n.floating);return{data:{escapedOffsets:a,escaped:xh(a)}}}default:return{}}}}};async function d3(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=kn(n),s=Jo(n),l=qo(n)==="y",c=["left","top"].includes(a)?-1:1,d=i&&l?-1:1,f=Pn(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof x=="number"&&(h=s==="end"?x*-1:x),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}const p3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await d3(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},m3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:g,y:v}=b;return{x:g,y:v}}},...l}=Pn(e,t),c={x:n,y:r},d=await aa(t,l),f=qo(kn(o)),p=jd(f);let h=c[p],x=c[f];if(i){const b=p==="y"?"top":"left",g=p==="y"?"bottom":"right",v=h+d[b],y=h-d[g];h=Ju(v,h,y)}if(a){const b=f==="y"?"top":"left",g=f==="y"?"bottom":"right",v=x+d[b],y=x-d[g];x=Ju(v,x,y)}const m=s.fn({...t,[p]:h,[f]:x});return{...m,data:{x:m.x-n,y:m.y-r}}}}},h3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Pn(e,t),d={x:n,y:r},f=qo(o),p=jd(f);let h=d[p],x=d[f];const m=Pn(s,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const y=p==="y"?"height":"width",S=i.reference[p]-i.floating[y]+b.mainAxis,P=i.reference[p]+i.reference[y]-b.mainAxis;hP&&(h=P)}if(c){var g,v;const y=p==="y"?"width":"height",S=["top","left"].includes(kn(o)),P=i.reference[f]-i.floating[y]+(S&&((g=a.offset)==null?void 0:g[f])||0)+(S?0:b.crossAxis),N=i.reference[f]+i.reference[y]+(S?0:((v=a.offset)==null?void 0:v[f])||0)-(S?b.crossAxis:0);xN&&(x=N)}return{[p]:h,[f]:x}}}},v3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...s}=Pn(e,t),l=await aa(t,s),c=kn(n),d=Jo(n),f=qo(n)==="y",{width:p,height:h}=r.floating;let x,m;c==="top"||c==="bottom"?(x=c,m=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,x=d==="end"?"top":"bottom");const b=h-l.top-l.bottom,g=p-l.left-l.right,v=Jt(h-l[x],b),y=Jt(p-l[m],g),S=!t.middlewareData.shift;let P=v,N=y;if(f?N=d||S?Jt(y,g):g:P=d||S?Jt(v,b):b,S&&!d){const E=vt(l.left,0),O=vt(l.right,0),T=vt(l.top,0),I=vt(l.bottom,0);f?N=p-2*(E!==0||O!==0?E+O:vt(l.left,l.right)):P=h-2*(T!==0||I!==0?T+I:vt(l.top,l.bottom))}await a({...t,availableWidth:N,availableHeight:P});const R=await o.getDimensions(i.floating);return p!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}};function ei(e){return ly(e)?(e.nodeName||"").toLowerCase():"#document"}function wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _n(e){var t;return(t=(ly(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ly(e){return e instanceof Node||e instanceof wt(e).Node}function on(e){return e instanceof Element||e instanceof wt(e).Element}function an(e){return e instanceof HTMLElement||e instanceof wt(e).HTMLElement}function wh(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wt(e).ShadowRoot}function xa(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function g3(e){return["table","td","th"].includes(ei(e))}function Bd(e){const t=Wd(),n=Kt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function y3(e){let t=cr(e);for(;an(t)&&!Bo(t);){if(Bd(t))return t;t=cr(t)}return null}function Wd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Bo(e){return["html","body","#document"].includes(ei(e))}function Kt(e){return wt(e).getComputedStyle(e)}function Il(e){return on(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function cr(e){if(ei(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wh(e)&&e.host||_n(e);return wh(t)?t.host:t}function cy(e){const t=cr(e);return Bo(t)?e.ownerDocument?e.ownerDocument.body:e.body:an(t)&&xa(t)?t:cy(t)}function sa(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=cy(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=wt(o);return i?t.concat(a,a.visualViewport||[],xa(o)?o:[],a.frameElement&&n?sa(a.frameElement):[]):t.concat(o,sa(o,[],n))}function uy(e){const t=Kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=an(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=rl(n)!==i||rl(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Vd(e){return on(e)?e:e.contextElement}function No(e){const t=Vd(e);if(!an(t))return lr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=uy(t);let a=(i?rl(n.width):n.width)/r,s=(i?rl(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const x3=lr(0);function fy(e){const t=wt(e);return!Wd()||!t.visualViewport?x3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function w3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wt(e)?!1:t}function jr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Vd(e);let a=lr(1);t&&(r?on(r)&&(a=No(r)):a=No(e));const s=w3(i,n,r)?fy(i):lr(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(i){const p=wt(i),h=r&&on(r)?wt(r):r;let x=p,m=x.frameElement;for(;m&&r&&h!==x;){const b=No(m),g=m.getBoundingClientRect(),v=Kt(m),y=g.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,S=g.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,f*=b.y,l+=y,c+=S,x=wt(m),m=x.frameElement}}return il({width:d,height:f,x:l,y:c})}const b3=[":popover-open",":modal"];function Hd(e){return b3.some(t=>{try{return e.matches(t)}catch{return!1}})}function S3(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=_n(r),s=t?Hd(t.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=lr(1);const d=lr(0),f=an(r);if((f||!f&&!i)&&((ei(r)!=="body"||xa(a))&&(l=Il(r)),an(r))){const p=jr(r);c=No(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}}function E3(e){return Array.from(e.getClientRects())}function dy(e){return jr(_n(e)).left+Il(e).scrollLeft}function C3(e){const t=_n(e),n=Il(e),r=e.ownerDocument.body,o=vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+dy(e);const s=-n.scrollTop;return Kt(r).direction==="rtl"&&(a+=vt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function P3(e,t){const n=wt(e),r=_n(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const c=Wd();(!c||c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function k3(e,t){const n=jr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=an(e)?No(e):lr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:a,height:s,x:l,y:c}}function bh(e,t,n){let r;if(t==="viewport")r=P3(e,n);else if(t==="document")r=C3(_n(e));else if(on(t))r=k3(t,n);else{const o=fy(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return il(r)}function py(e,t){const n=cr(e);return n===t||!on(n)||Bo(n)?!1:Kt(n).position==="fixed"||py(n,t)}function R3(e,t){const n=t.get(e);if(n)return n;let r=sa(e,[],!1).filter(s=>on(s)&&ei(s)!=="body"),o=null;const i=Kt(e).position==="fixed";let a=i?cr(e):e;for(;on(a)&&!Bo(a);){const s=Kt(a),l=Bd(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xa(a)&&!l&&py(e,a))?r=r.filter(d=>d!==a):o=s,a=cr(a)}return t.set(e,r),r}function $3(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Hd(t)?[]:R3(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((c,d)=>{const f=bh(t,d,o);return c.top=vt(f.top,c.top),c.right=Jt(f.right,c.right),c.bottom=Jt(f.bottom,c.bottom),c.left=vt(f.left,c.left),c},bh(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function N3(e){const{width:t,height:n}=uy(e);return{width:t,height:n}}function _3(e,t,n){const r=an(t),o=_n(t),i=n==="fixed",a=jr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=lr(0);if(r||!r&&!i)if((ei(t)!=="body"||xa(o))&&(s=Il(t)),r){const f=jr(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&(l.x=dy(o));const c=a.left+s.scrollLeft-l.x,d=a.top+s.scrollTop-l.y;return{x:c,y:d,width:a.width,height:a.height}}function Lc(e){return Kt(e).position==="static"}function Sh(e,t){return!an(e)||Kt(e).position==="fixed"?null:t?t(e):e.offsetParent}function my(e,t){const n=wt(e);if(Hd(e))return n;if(!an(e)){let o=cr(e);for(;o&&!Bo(o);){if(on(o)&&!Lc(o))return o;o=cr(o)}return n}let r=Sh(e,t);for(;r&&g3(r)&&Lc(r);)r=Sh(r,t);return r&&Bo(r)&&Lc(r)&&!Bd(r)?n:r||y3(e)||n}const T3=async function(e){const t=this.getOffsetParent||my,n=this.getDimensions,r=await n(e.floating);return{reference:_3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function M3(e){return Kt(e).direction==="rtl"}const O3={convertOffsetParentRelativeRectToViewportRelativeRect:S3,getDocumentElement:_n,getClippingRect:$3,getOffsetParent:my,getElementRects:T3,getClientRects:E3,getDimensions:N3,getScale:No,isElement:on,isRTL:M3};function A3(e,t){let n=null,r;const o=_n(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:c,top:d,width:f,height:p}=e.getBoundingClientRect();if(s||t(),!f||!p)return;const h=Ja(d),x=Ja(o.clientWidth-(c+f)),m=Ja(o.clientHeight-(d+p)),b=Ja(c),v={rootMargin:-h+"px "+-x+"px "+-m+"px "+-b+"px",threshold:vt(0,Jt(1,l))||1};let y=!0;function S(P){const N=P[0].intersectionRatio;if(N!==l){if(!y)return a();N?a(!1,N):r=setTimeout(()=>{a(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(S,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return a(!0),i}function D3(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Vd(e),d=o||i?[...c?sa(c):[],...sa(t)]:[];d.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const f=c&&s?A3(c,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(g=>{let[v]=g;v&&v.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let x,m=l?jr(e):null;l&&b();function b(){const g=jr(e);m&&(g.x!==m.x||g.y!==m.y||g.width!==m.width||g.height!==m.height)&&n(),m=g,x=requestAnimationFrame(b)}return n(),()=>{var g;d.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),f==null||f(),(g=h)==null||g.disconnect(),h=null,l&&cancelAnimationFrame(x)}}const L3=p3,I3=m3,F3=u3,j3=v3,z3=f3,Eh=c3,U3=h3,B3=(e,t,n)=>{const r=new Map,o={platform:O3,...n},i={...o.platform,_c:r};return l3(e,t,{...o,platform:i})},W3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Eh({element:r.current,padding:o}).fn(n):{}:r?Eh({element:r,padding:o}).fn(n):{}}}};var Es=typeof document<"u"?u.useLayoutEffect:u.useEffect;function al(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!al(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!al(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function hy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ch(e,t){const n=hy(e);return Math.round(t*n)/n}function Ph(e){const t=u.useRef(e);return Es(()=>{t.current=e}),t}function V3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=u.useState(r);al(p,r)||h(r);const[x,m]=u.useState(null),[b,g]=u.useState(null),v=u.useCallback(Z=>{Z!==N.current&&(N.current=Z,m(Z))},[]),y=u.useCallback(Z=>{Z!==R.current&&(R.current=Z,g(Z))},[]),S=i||x,P=a||b,N=u.useRef(null),R=u.useRef(null),E=u.useRef(d),O=l!=null,T=Ph(l),I=Ph(o),L=u.useCallback(()=>{if(!N.current||!R.current)return;const Z={placement:t,strategy:n,middleware:p};I.current&&(Z.platform=I.current),B3(N.current,R.current,Z).then(D=>{const _={...D,isPositioned:!0};q.current&&!al(E.current,_)&&(E.current=_,vr.flushSync(()=>{f(_)}))})},[p,t,n,I]);Es(()=>{c===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(Z=>({...Z,isPositioned:!1})))},[c]);const q=u.useRef(!1);Es(()=>(q.current=!0,()=>{q.current=!1}),[]),Es(()=>{if(S&&(N.current=S),P&&(R.current=P),S&&P){if(T.current)return T.current(S,P,L);L()}},[S,P,L,T,O]);const W=u.useMemo(()=>({reference:N,floating:R,setReference:v,setFloating:y}),[v,y]),X=u.useMemo(()=>({reference:S,floating:P}),[S,P]),ee=u.useMemo(()=>{const Z={position:n,left:0,top:0};if(!X.floating)return Z;const D=Ch(X.floating,d.x),_=Ch(X.floating,d.y);return s?{...Z,transform:"translate("+D+"px, "+_+"px)",...hy(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:_}},[n,s,X.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:L,refs:W,elements:X,floatingStyles:ee}),[d,L,W,X,ee])}function H3(e){const[t,n]=u.useState(void 0);return Uo(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const vy="Popper",[gy,yy]=Zo(vy),[K3,xy]=gy(vy),G3=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return u.createElement(K3,{scope:t,anchor:r,onAnchorChange:o},n)},Y3="PopperAnchor",X3=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=xy(Y3,n),a=u.useRef(null),s=Ct(t,a);return u.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:u.createElement(Ve.div,G({},o,{ref:s}))}),wy="PopperContent",[Q3,f_]=gy(wy),Z3=u.forwardRef((e,t)=>{var n,r,o,i,a,s,l,c;const{__scopePopper:d,side:f="bottom",sideOffset:p=0,align:h="center",alignOffset:x=0,arrowPadding:m=0,avoidCollisions:b=!0,collisionBoundary:g=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:S=!1,updatePositionStrategy:P="optimized",onPlaced:N,...R}=e,E=xy(wy,d),[O,T]=u.useState(null),I=Ct(t,Nt=>T(Nt)),[L,q]=u.useState(null),W=H3(L),X=(n=W==null?void 0:W.width)!==null&&n!==void 0?n:0,ee=(r=W==null?void 0:W.height)!==null&&r!==void 0?r:0,Z=f+(h!=="center"?"-"+h:""),D=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},_=Array.isArray(g)?g:[g],j=_.length>0,Q={padding:D,boundary:_.filter(J3),altBoundary:j},{refs:ne,floatingStyles:Ce,placement:De,isPositioned:He,middlewareData:fe}=V3({strategy:"fixed",placement:Z,whileElementsMounted:(...Nt)=>D3(...Nt,{animationFrame:P==="always"}),elements:{reference:E.anchor},middleware:[L3({mainAxis:p+ee,alignmentAxis:x}),b&&I3({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?U3():void 0,...Q}),b&&F3({...Q}),j3({...Q,apply:({elements:Nt,rects:oi,availableWidth:Jl,availableHeight:cn})=>{const{width:ql,height:ec}=oi.reference,yr=Nt.floating.style;yr.setProperty("--radix-popper-available-width",`${Jl}px`),yr.setProperty("--radix-popper-available-height",`${cn}px`),yr.setProperty("--radix-popper-anchor-width",`${ql}px`),yr.setProperty("--radix-popper-anchor-height",`${ec}px`)}}),L&&W3({element:L,padding:m}),q3({arrowWidth:X,arrowHeight:ee}),S&&z3({strategy:"referenceHidden",...Q})]}),[Me,$t]=by(De),Qe=rn(N);Uo(()=>{He&&(Qe==null||Qe())},[He,Qe]);const ln=(o=fe.arrow)===null||o===void 0?void 0:o.x,Xl=(i=fe.arrow)===null||i===void 0?void 0:i.y,Ql=((a=fe.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Zl,Ke]=u.useState();return Uo(()=>{O&&Ke(window.getComputedStyle(O).zIndex)},[O]),u.createElement("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...Ce,transform:He?Ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Zl,"--radix-popper-transform-origin":[(s=fe.transformOrigin)===null||s===void 0?void 0:s.x,(l=fe.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},u.createElement(Q3,{scope:d,placedSide:Me,onArrowChange:q,arrowX:ln,arrowY:Xl,shouldHideArrow:Ql},u.createElement(Ve.div,G({"data-side":Me,"data-align":$t},R,{ref:I,style:{...R.style,animation:He?void 0:"none",opacity:(c=fe.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function J3(e){return e!==null}const q3=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:c}=t,f=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=f?0:e.arrowWidth,h=f?0:e.arrowHeight,[x,m]=by(s),b={start:"0%",center:"50%",end:"100%"}[m],g=((r=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,v=((i=(a=c.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+h/2;let y="",S="";return x==="bottom"?(y=f?b:`${g}px`,S=`${-h}px`):x==="top"?(y=f?b:`${g}px`,S=`${l.floating.height+h}px`):x==="right"?(y=`${-h}px`,S=f?b:`${v}px`):x==="left"&&(y=`${l.floating.width+h}px`,S=f?b:`${v}px`),{data:{x:y,y:S}}}});function by(e){const[t,n="center"]=e.split("-");return[t,n]}const eP=G3,tP=X3,nP=Z3,rP=u.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?$d.createPortal(u.createElement(Ve.div,G({},o,{ref:t})),r):null});function oP(e,t){return u.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const ti=e=>{const{present:t,children:n}=e,r=iP(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),i=Ct(r.ref,o.ref);return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:i}):null};ti.displayName="Presence";function iP(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),i=u.useRef("none"),a=e?"mounted":"unmounted",[s,l]=oP(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=qa(r.current);i.current=s==="mounted"?c:"none"},[s]),Uo(()=>{const c=r.current,d=o.current;if(d!==e){const p=i.current,h=qa(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Uo(()=>{if(t){const c=f=>{const h=qa(r.current).includes(f.animationName);f.target===t&&h&&vr.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=qa(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function qa(e){return(e==null?void 0:e.animationName)||"none"}const Ic="rovingFocusGroup.onEntryFocus",aP={bubbles:!1,cancelable:!0},Kd="RovingFocusGroup",[ef,Sy,sP]=oy(Kd),[lP,Fl]=Zo(Kd,[sP]),[cP,uP]=lP(Kd),fP=u.forwardRef((e,t)=>u.createElement(ef.Provider,{scope:e.__scopeRovingFocusGroup},u.createElement(ef.Slot,{scope:e.__scopeRovingFocusGroup},u.createElement(dP,G({},e,{ref:t}))))),dP=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...d}=e,f=u.useRef(null),p=Ct(t,f),h=Fd(i),[x=null,m]=Id({prop:a,defaultProp:s,onChange:l}),[b,g]=u.useState(!1),v=rn(c),y=Sy(n),S=u.useRef(!1),[P,N]=u.useState(0);return u.useEffect(()=>{const R=f.current;if(R)return R.addEventListener(Ic,v),()=>R.removeEventListener(Ic,v)},[v]),u.createElement(cP,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:x,onItemFocus:u.useCallback(R=>m(R),[m]),onItemShiftTab:u.useCallback(()=>g(!0),[]),onFocusableItemAdd:u.useCallback(()=>N(R=>R+1),[]),onFocusableItemRemove:u.useCallback(()=>N(R=>R-1),[])},u.createElement(Ve.div,G({tabIndex:b||P===0?-1:0,"data-orientation":r},d,{ref:p,style:{outline:"none",...e.style},onMouseDown:ae(e.onMouseDown,()=>{S.current=!0}),onFocus:ae(e.onFocus,R=>{const E=!S.current;if(R.target===R.currentTarget&&E&&!b){const O=new CustomEvent(Ic,aP);if(R.currentTarget.dispatchEvent(O),!O.defaultPrevented){const T=y().filter(X=>X.focusable),I=T.find(X=>X.active),L=T.find(X=>X.id===x),W=[I,L,...T].filter(Boolean).map(X=>X.ref.current);Ey(W)}}S.current=!1}),onBlur:ae(e.onBlur,()=>g(!1))})))}),pP="RovingFocusGroupItem",mP=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=nl(),l=i||s,c=uP(pP,n),d=c.currentTabStopId===l,f=Sy(n),{onFocusableItemAdd:p,onFocusableItemRemove:h}=c;return u.useEffect(()=>{if(r)return p(),()=>h()},[r,p,h]),u.createElement(ef.ItemSlot,{scope:n,id:l,focusable:r,active:o},u.createElement(Ve.span,G({tabIndex:d?0:-1,"data-orientation":c.orientation},a,{ref:t,onMouseDown:ae(e.onMouseDown,x=>{r?c.onItemFocus(l):x.preventDefault()}),onFocus:ae(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:ae(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){c.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const m=gP(x,c.orientation,c.dir);if(m!==void 0){x.preventDefault();let g=f().filter(v=>v.focusable).map(v=>v.ref.current);if(m==="last")g.reverse();else if(m==="prev"||m==="next"){m==="prev"&&g.reverse();const v=g.indexOf(x.currentTarget);g=c.loop?yP(g,v+1):g.slice(v+1)}setTimeout(()=>Ey(g))}})})))}),hP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vP(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function gP(e,t,n){const r=vP(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return hP[r]}function Ey(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function yP(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Cy=fP,Py=mP;var xP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},to=new WeakMap,es=new WeakMap,ts={},Fc=0,ky=function(e){return e&&(e.host||ky(e.parentNode))},wP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ky(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},bP=function(e,t,n,r){var o=wP(t,Array.isArray(e)?e:[e]);ts[n]||(ts[n]=new WeakMap);var i=ts[n],a=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))d(p);else try{var h=p.getAttribute(r),x=h!==null&&h!=="false",m=(to.get(p)||0)+1,b=(i.get(p)||0)+1;to.set(p,m),i.set(p,b),a.push(p),m===1&&x&&es.set(p,!0),b===1&&p.setAttribute(n,"true"),x||p.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",p,g)}})};return d(t),s.clear(),Fc++,function(){a.forEach(function(f){var p=to.get(f)-1,h=i.get(f)-1;to.set(f,p),i.set(f,h),p||(es.has(f)||f.removeAttribute(r),es.delete(f)),h||f.removeAttribute(n)}),Fc--,Fc||(to=new WeakMap,to=new WeakMap,es=new WeakMap,ts={})}},Ry=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=xP(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),bP(r,o,n,"aria-hidden")):function(){return null}},et=function(){return et=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return AP;var t=DP(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},IP=Yd(),_o="data-scroll-locked",FP=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat(SP,` { + */const OC=Qo("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function ae(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Zo(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:h,...x}=f,m=(p==null?void 0:p[e][l])||s,b=u.useMemo(()=>x,Object.values(x));return u.createElement(m.Provider,{value:b},h)}function d(f,p){const h=(p==null?void 0:p[e][l])||s,x=u.useContext(h);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}const o=()=>{const i=n.map(a=>u.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,AC(o,...t)]}function AC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function rn(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Fd({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=DC({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=rn(n),l=u.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[i,e,o,s]);return[a,l]}function DC({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=rn(t);return u.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const LC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ve=LC.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?zo:t;return u.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),u.createElement(s,G({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function oy(e,t){e&&vr.flushSync(()=>e.dispatchEvent(t))}function iy(e){const t=e+"CollectionProvider",[n,r]=Zo(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:x,children:m}=h,b=Oe.useRef(null),g=Oe.useRef(new Map).current;return Oe.createElement(o,{scope:x,itemMap:g,collectionRef:b},m)},s=e+"CollectionSlot",l=Oe.forwardRef((h,x)=>{const{scope:m,children:b}=h,g=i(s,m),v=Ct(x,g.collectionRef);return Oe.createElement(zo,{ref:v},b)}),c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Oe.forwardRef((h,x)=>{const{scope:m,children:b,...g}=h,v=Oe.useRef(null),y=Ct(x,v),S=i(c,m);return Oe.useEffect(()=>(S.itemMap.set(v,{ref:v,...g}),()=>void S.itemMap.delete(v))),Oe.createElement(zo,{[d]:"",ref:y},b)});function p(h){const x=i(e+"CollectionConsumer",h);return Oe.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const g=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((S,P)=>g.indexOf(S.ref.current)-g.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},p,r]}const IC=u.createContext(void 0);function jd(e){const t=u.useContext(IC);return e||t||"ltr"}function FC(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Ju="dismissableLayer.update",jC="dismissableLayer.pointerDownOutside",zC="dismissableLayer.focusOutside";let fh;const UC=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),BC=u.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,d=u.useContext(UC),[f,p]=u.useState(null),h=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,x]=u.useState({}),m=Ct(t,E=>p(E)),b=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),v=b.indexOf(g),y=f?b.indexOf(f):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,P=y>=v,N=WC(E=>{const O=E.target,T=[...d.branches].some(I=>I.contains(O));!P||T||(i==null||i(E),s==null||s(E),E.defaultPrevented||l==null||l())},h),R=VC(E=>{const O=E.target;[...d.branches].some(I=>I.contains(O))||(a==null||a(E),s==null||s(E),E.defaultPrevented||l==null||l())},h);return FC(E=>{y===d.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},h),u.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(fh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),dh(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=fh)}},[f,h,r,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),dh())},[f,d]),u.useEffect(()=>{const E=()=>x({});return document.addEventListener(Ju,E),()=>document.removeEventListener(Ju,E)},[]),u.createElement(Ve.div,G({},c,{ref:m,style:{pointerEvents:S?P?"auto":"none":void 0,...e.style},onFocusCapture:ae(e.onFocusCapture,R.onFocusCapture),onBlurCapture:ae(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:ae(e.onPointerDownCapture,N.onPointerDownCapture)}))});function WC(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){ay(jC,n,c,{discrete:!0})};var l=d;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function VC(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e),r=u.useRef(!1);return u.useEffect(()=>{const o=i=>{i.target&&!r.current&&ay(zC,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function dh(){const e=new CustomEvent(Ju);document.dispatchEvent(e)}function ay(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?oy(o,i):o.dispatchEvent(i)}let Ac=0;function HC(){u.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:ph()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:ph()),Ac++,()=>{Ac===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Ac--}},[])}function ph(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Dc="focusScope.autoFocusOnMount",Lc="focusScope.autoFocusOnUnmount",mh={bubbles:!1,cancelable:!0},KC=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=u.useState(null),c=rn(o),d=rn(i),f=u.useRef(null),p=Ct(t,m=>l(m)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let v=function(N){if(h.paused||!s)return;const R=N.target;s.contains(R)?f.current=R:Un(f.current,{select:!0})},y=function(N){if(h.paused||!s)return;const R=N.relatedTarget;R!==null&&(s.contains(R)||Un(f.current,{select:!0}))},S=function(N){if(document.activeElement===document.body)for(const E of N)E.removedNodes.length>0&&Un(s)};var m=v,b=y,g=S;document.addEventListener("focusin",v),document.addEventListener("focusout",y);const P=new MutationObserver(S);return s&&P.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),P.disconnect()}}},[r,s,h.paused]),u.useEffect(()=>{if(s){vh.add(h);const m=document.activeElement;if(!s.contains(m)){const g=new CustomEvent(Dc,mh);s.addEventListener(Dc,c),s.dispatchEvent(g),g.defaultPrevented||(GC(JC(sy(s)),{select:!0}),document.activeElement===m&&Un(s))}return()=>{s.removeEventListener(Dc,c),setTimeout(()=>{const g=new CustomEvent(Lc,mh);s.addEventListener(Lc,d),s.dispatchEvent(g),g.defaultPrevented||Un(m??document.body,{select:!0}),s.removeEventListener(Lc,d),vh.remove(h)},0)}}},[s,c,d,h]);const x=u.useCallback(m=>{if(!n&&!r||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,g=document.activeElement;if(b&&g){const v=m.currentTarget,[y,S]=YC(v);y&&S?!m.shiftKey&&g===S?(m.preventDefault(),n&&Un(y,{select:!0})):m.shiftKey&&g===y&&(m.preventDefault(),n&&Un(S,{select:!0})):g===v&&m.preventDefault()}},[n,r,h.paused]);return u.createElement(Ve.div,G({tabIndex:-1},a,{ref:p,onKeyDown:x}))});function GC(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Un(r,{select:t}),document.activeElement!==n)return}function YC(e){const t=sy(e),n=hh(t,e),r=hh(t.reverse(),e);return[n,r]}function sy(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hh(e,t){for(const n of e)if(!XC(n,{upTo:t}))return n}function XC(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function QC(e){return e instanceof HTMLInputElement&&"select"in e}function Un(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&QC(e)&&t&&e.select()}}const vh=ZC();function ZC(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=gh(e,t),e.unshift(t)},remove(t){var n;e=gh(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function gh(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function JC(e){return e.filter(t=>t.tagName!=="A")}const Uo=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},qC=Ff.useId||(()=>{});let e3=0;function rl(e){const[t,n]=u.useState(qC());return Uo(()=>{n(r=>r??String(e3++))},[e]),t?`radix-${t}`:""}const t3=["top","right","bottom","left"],Jt=Math.min,vt=Math.max,ol=Math.round,qa=Math.floor,lr=e=>({x:e,y:e}),n3={left:"right",right:"left",bottom:"top",top:"bottom"},r3={start:"end",end:"start"};function qu(e,t,n){return vt(e,Jt(t,n))}function Pn(e,t){return typeof e=="function"?e(t):e}function kn(e){return e.split("-")[0]}function Jo(e){return e.split("-")[1]}function zd(e){return e==="x"?"y":"x"}function Ud(e){return e==="y"?"height":"width"}function qo(e){return["top","bottom"].includes(kn(e))?"y":"x"}function Bd(e){return zd(qo(e))}function o3(e,t,n){n===void 0&&(n=!1);const r=Jo(e),o=Bd(e),i=Ud(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=il(a)),[a,il(a)]}function i3(e){const t=il(e);return[ef(e),t,ef(t)]}function ef(e){return e.replace(/start|end/g,t=>r3[t])}function a3(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function s3(e,t,n,r){const o=Jo(e);let i=a3(kn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(ef)))),i}function il(e){return e.replace(/left|right|bottom|top/g,t=>n3[t])}function l3(e){return{top:0,right:0,bottom:0,left:0,...e}}function ly(e){return typeof e!="number"?l3(e):{top:e,right:e,bottom:e,left:e}}function al(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function yh(e,t,n){let{reference:r,floating:o}=e;const i=qo(t),a=Bd(t),s=Ud(a),l=kn(t),c=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Jo(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1);break}return h}const c3=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=yh(c,r,l),p=r,h={},x=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=Pn(e,t)||{};if(c==null)return{};const f=ly(d),p={x:n,y:r},h=Bd(o),x=Ud(h),m=await a.getDimensions(c),b=h==="y",g=b?"top":"left",v=b?"bottom":"right",y=b?"clientHeight":"clientWidth",S=i.reference[x]+i.reference[h]-p[h]-i.floating[x],P=p[h]-i.reference[h],N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let R=N?N[y]:0;(!R||!await(a.isElement==null?void 0:a.isElement(N)))&&(R=s.floating[y]||i.floating[x]);const E=S/2-P/2,O=R/2-m[x]/2-1,T=Jt(f[g],O),I=Jt(f[v],O),L=T,q=R-m[x]-I,W=R/2-m[x]/2+E,X=qu(L,W,q),ee=!l.arrow&&Jo(o)!=null&&W!==X&&i.reference[x]/2-(WL<=0)){var O,T;const L=(((O=i.flip)==null?void 0:O.index)||0)+1,q=P[L];if(q)return{data:{index:L,overflows:E},reset:{placement:q}};let W=(T=E.filter(X=>X.overflows[0]<=0).sort((X,ee)=>X.overflows[1]-ee.overflows[1])[0])==null?void 0:T.placement;if(!W)switch(h){case"bestFit":{var I;const X=(I=E.map(ee=>[ee.placement,ee.overflows.filter(Z=>Z>0).reduce((Z,D)=>Z+D,0)]).sort((ee,Z)=>ee[1]-Z[1])[0])==null?void 0:I[0];X&&(W=X);break}case"initialPlacement":W=s;break}if(o!==W)return{reset:{placement:W}}}return{}}}};function xh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wh(e){return t3.some(t=>e[t]>=0)}const d3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Pn(e,t);switch(r){case"referenceHidden":{const i=await sa(t,{...o,elementContext:"reference"}),a=xh(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:wh(a)}}}case"escaped":{const i=await sa(t,{...o,altBoundary:!0}),a=xh(i,n.floating);return{data:{escapedOffsets:a,escaped:wh(a)}}}default:return{}}}}};async function p3(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=kn(n),s=Jo(n),l=qo(n)==="y",c=["left","top"].includes(a)?-1:1,d=i&&l?-1:1,f=Pn(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof x=="number"&&(h=s==="end"?x*-1:x),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}const m3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await p3(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},h3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:g,y:v}=b;return{x:g,y:v}}},...l}=Pn(e,t),c={x:n,y:r},d=await sa(t,l),f=qo(kn(o)),p=zd(f);let h=c[p],x=c[f];if(i){const b=p==="y"?"top":"left",g=p==="y"?"bottom":"right",v=h+d[b],y=h-d[g];h=qu(v,h,y)}if(a){const b=f==="y"?"top":"left",g=f==="y"?"bottom":"right",v=x+d[b],y=x-d[g];x=qu(v,x,y)}const m=s.fn({...t,[p]:h,[f]:x});return{...m,data:{x:m.x-n,y:m.y-r}}}}},v3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Pn(e,t),d={x:n,y:r},f=qo(o),p=zd(f);let h=d[p],x=d[f];const m=Pn(s,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const y=p==="y"?"height":"width",S=i.reference[p]-i.floating[y]+b.mainAxis,P=i.reference[p]+i.reference[y]-b.mainAxis;hP&&(h=P)}if(c){var g,v;const y=p==="y"?"width":"height",S=["top","left"].includes(kn(o)),P=i.reference[f]-i.floating[y]+(S&&((g=a.offset)==null?void 0:g[f])||0)+(S?0:b.crossAxis),N=i.reference[f]+i.reference[y]+(S?0:((v=a.offset)==null?void 0:v[f])||0)-(S?b.crossAxis:0);xN&&(x=N)}return{[p]:h,[f]:x}}}},g3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...s}=Pn(e,t),l=await sa(t,s),c=kn(n),d=Jo(n),f=qo(n)==="y",{width:p,height:h}=r.floating;let x,m;c==="top"||c==="bottom"?(x=c,m=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,x=d==="end"?"top":"bottom");const b=h-l.top-l.bottom,g=p-l.left-l.right,v=Jt(h-l[x],b),y=Jt(p-l[m],g),S=!t.middlewareData.shift;let P=v,N=y;if(f?N=d||S?Jt(y,g):g:P=d||S?Jt(v,b):b,S&&!d){const E=vt(l.left,0),O=vt(l.right,0),T=vt(l.top,0),I=vt(l.bottom,0);f?N=p-2*(E!==0||O!==0?E+O:vt(l.left,l.right)):P=h-2*(T!==0||I!==0?T+I:vt(l.top,l.bottom))}await a({...t,availableWidth:N,availableHeight:P});const R=await o.getDimensions(i.floating);return p!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}};function ei(e){return cy(e)?(e.nodeName||"").toLowerCase():"#document"}function wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _n(e){var t;return(t=(cy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cy(e){return e instanceof Node||e instanceof wt(e).Node}function on(e){return e instanceof Element||e instanceof wt(e).Element}function an(e){return e instanceof HTMLElement||e instanceof wt(e).HTMLElement}function bh(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wt(e).ShadowRoot}function wa(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function y3(e){return["table","td","th"].includes(ei(e))}function Wd(e){const t=Vd(),n=Kt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function x3(e){let t=cr(e);for(;an(t)&&!Bo(t);){if(Wd(t))return t;t=cr(t)}return null}function Vd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Bo(e){return["html","body","#document"].includes(ei(e))}function Kt(e){return wt(e).getComputedStyle(e)}function Fl(e){return on(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function cr(e){if(ei(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bh(e)&&e.host||_n(e);return bh(t)?t.host:t}function uy(e){const t=cr(e);return Bo(t)?e.ownerDocument?e.ownerDocument.body:e.body:an(t)&&wa(t)?t:uy(t)}function la(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=uy(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=wt(o);return i?t.concat(a,a.visualViewport||[],wa(o)?o:[],a.frameElement&&n?la(a.frameElement):[]):t.concat(o,la(o,[],n))}function fy(e){const t=Kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=an(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=ol(n)!==i||ol(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Hd(e){return on(e)?e:e.contextElement}function No(e){const t=Hd(e);if(!an(t))return lr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=fy(t);let a=(i?ol(n.width):n.width)/r,s=(i?ol(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const w3=lr(0);function dy(e){const t=wt(e);return!Vd()||!t.visualViewport?w3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function b3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wt(e)?!1:t}function jr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Hd(e);let a=lr(1);t&&(r?on(r)&&(a=No(r)):a=No(e));const s=b3(i,n,r)?dy(i):lr(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(i){const p=wt(i),h=r&&on(r)?wt(r):r;let x=p,m=x.frameElement;for(;m&&r&&h!==x;){const b=No(m),g=m.getBoundingClientRect(),v=Kt(m),y=g.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,S=g.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,f*=b.y,l+=y,c+=S,x=wt(m),m=x.frameElement}}return al({width:d,height:f,x:l,y:c})}const S3=[":popover-open",":modal"];function Kd(e){return S3.some(t=>{try{return e.matches(t)}catch{return!1}})}function E3(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=_n(r),s=t?Kd(t.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=lr(1);const d=lr(0),f=an(r);if((f||!f&&!i)&&((ei(r)!=="body"||wa(a))&&(l=Fl(r)),an(r))){const p=jr(r);c=No(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}}function C3(e){return Array.from(e.getClientRects())}function py(e){return jr(_n(e)).left+Fl(e).scrollLeft}function P3(e){const t=_n(e),n=Fl(e),r=e.ownerDocument.body,o=vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+py(e);const s=-n.scrollTop;return Kt(r).direction==="rtl"&&(a+=vt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function k3(e,t){const n=wt(e),r=_n(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const c=Vd();(!c||c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function R3(e,t){const n=jr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=an(e)?No(e):lr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:a,height:s,x:l,y:c}}function Sh(e,t,n){let r;if(t==="viewport")r=k3(e,n);else if(t==="document")r=P3(_n(e));else if(on(t))r=R3(t,n);else{const o=dy(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return al(r)}function my(e,t){const n=cr(e);return n===t||!on(n)||Bo(n)?!1:Kt(n).position==="fixed"||my(n,t)}function $3(e,t){const n=t.get(e);if(n)return n;let r=la(e,[],!1).filter(s=>on(s)&&ei(s)!=="body"),o=null;const i=Kt(e).position==="fixed";let a=i?cr(e):e;for(;on(a)&&!Bo(a);){const s=Kt(a),l=Wd(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||wa(a)&&!l&&my(e,a))?r=r.filter(d=>d!==a):o=s,a=cr(a)}return t.set(e,r),r}function N3(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Kd(t)?[]:$3(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((c,d)=>{const f=Sh(t,d,o);return c.top=vt(f.top,c.top),c.right=Jt(f.right,c.right),c.bottom=Jt(f.bottom,c.bottom),c.left=vt(f.left,c.left),c},Sh(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function _3(e){const{width:t,height:n}=fy(e);return{width:t,height:n}}function T3(e,t,n){const r=an(t),o=_n(t),i=n==="fixed",a=jr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=lr(0);if(r||!r&&!i)if((ei(t)!=="body"||wa(o))&&(s=Fl(t)),r){const f=jr(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&(l.x=py(o));const c=a.left+s.scrollLeft-l.x,d=a.top+s.scrollTop-l.y;return{x:c,y:d,width:a.width,height:a.height}}function Ic(e){return Kt(e).position==="static"}function Eh(e,t){return!an(e)||Kt(e).position==="fixed"?null:t?t(e):e.offsetParent}function hy(e,t){const n=wt(e);if(Kd(e))return n;if(!an(e)){let o=cr(e);for(;o&&!Bo(o);){if(on(o)&&!Ic(o))return o;o=cr(o)}return n}let r=Eh(e,t);for(;r&&y3(r)&&Ic(r);)r=Eh(r,t);return r&&Bo(r)&&Ic(r)&&!Wd(r)?n:r||x3(e)||n}const M3=async function(e){const t=this.getOffsetParent||hy,n=this.getDimensions,r=await n(e.floating);return{reference:T3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function O3(e){return Kt(e).direction==="rtl"}const A3={convertOffsetParentRelativeRectToViewportRelativeRect:E3,getDocumentElement:_n,getClippingRect:N3,getOffsetParent:hy,getElementRects:M3,getClientRects:C3,getDimensions:_3,getScale:No,isElement:on,isRTL:O3};function D3(e,t){let n=null,r;const o=_n(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:c,top:d,width:f,height:p}=e.getBoundingClientRect();if(s||t(),!f||!p)return;const h=qa(d),x=qa(o.clientWidth-(c+f)),m=qa(o.clientHeight-(d+p)),b=qa(c),v={rootMargin:-h+"px "+-x+"px "+-m+"px "+-b+"px",threshold:vt(0,Jt(1,l))||1};let y=!0;function S(P){const N=P[0].intersectionRatio;if(N!==l){if(!y)return a();N?a(!1,N):r=setTimeout(()=>{a(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(S,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return a(!0),i}function L3(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Hd(e),d=o||i?[...c?la(c):[],...la(t)]:[];d.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const f=c&&s?D3(c,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(g=>{let[v]=g;v&&v.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let x,m=l?jr(e):null;l&&b();function b(){const g=jr(e);m&&(g.x!==m.x||g.y!==m.y||g.width!==m.width||g.height!==m.height)&&n(),m=g,x=requestAnimationFrame(b)}return n(),()=>{var g;d.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),f==null||f(),(g=h)==null||g.disconnect(),h=null,l&&cancelAnimationFrame(x)}}const I3=m3,F3=h3,j3=f3,z3=g3,U3=d3,Ch=u3,B3=v3,W3=(e,t,n)=>{const r=new Map,o={platform:A3,...n},i={...o.platform,_c:r};return c3(e,t,{...o,platform:i})},V3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ch({element:r.current,padding:o}).fn(n):{}:r?Ch({element:r,padding:o}).fn(n):{}}}};var Cs=typeof document<"u"?u.useLayoutEffect:u.useEffect;function sl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!sl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!sl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function vy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ph(e,t){const n=vy(e);return Math.round(t*n)/n}function kh(e){const t=u.useRef(e);return Cs(()=>{t.current=e}),t}function H3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=u.useState(r);sl(p,r)||h(r);const[x,m]=u.useState(null),[b,g]=u.useState(null),v=u.useCallback(Z=>{Z!==N.current&&(N.current=Z,m(Z))},[]),y=u.useCallback(Z=>{Z!==R.current&&(R.current=Z,g(Z))},[]),S=i||x,P=a||b,N=u.useRef(null),R=u.useRef(null),E=u.useRef(d),O=l!=null,T=kh(l),I=kh(o),L=u.useCallback(()=>{if(!N.current||!R.current)return;const Z={placement:t,strategy:n,middleware:p};I.current&&(Z.platform=I.current),W3(N.current,R.current,Z).then(D=>{const _={...D,isPositioned:!0};q.current&&!sl(E.current,_)&&(E.current=_,vr.flushSync(()=>{f(_)}))})},[p,t,n,I]);Cs(()=>{c===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(Z=>({...Z,isPositioned:!1})))},[c]);const q=u.useRef(!1);Cs(()=>(q.current=!0,()=>{q.current=!1}),[]),Cs(()=>{if(S&&(N.current=S),P&&(R.current=P),S&&P){if(T.current)return T.current(S,P,L);L()}},[S,P,L,T,O]);const W=u.useMemo(()=>({reference:N,floating:R,setReference:v,setFloating:y}),[v,y]),X=u.useMemo(()=>({reference:S,floating:P}),[S,P]),ee=u.useMemo(()=>{const Z={position:n,left:0,top:0};if(!X.floating)return Z;const D=Ph(X.floating,d.x),_=Ph(X.floating,d.y);return s?{...Z,transform:"translate("+D+"px, "+_+"px)",...vy(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:_}},[n,s,X.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:L,refs:W,elements:X,floatingStyles:ee}),[d,L,W,X,ee])}function K3(e){const[t,n]=u.useState(void 0);return Uo(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const gy="Popper",[yy,xy]=Zo(gy),[G3,wy]=yy(gy),Y3=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return u.createElement(G3,{scope:t,anchor:r,onAnchorChange:o},n)},X3="PopperAnchor",Q3=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=wy(X3,n),a=u.useRef(null),s=Ct(t,a);return u.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:u.createElement(Ve.div,G({},o,{ref:s}))}),by="PopperContent",[Z3,d_]=yy(by),J3=u.forwardRef((e,t)=>{var n,r,o,i,a,s,l,c;const{__scopePopper:d,side:f="bottom",sideOffset:p=0,align:h="center",alignOffset:x=0,arrowPadding:m=0,avoidCollisions:b=!0,collisionBoundary:g=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:S=!1,updatePositionStrategy:P="optimized",onPlaced:N,...R}=e,E=wy(by,d),[O,T]=u.useState(null),I=Ct(t,Nt=>T(Nt)),[L,q]=u.useState(null),W=K3(L),X=(n=W==null?void 0:W.width)!==null&&n!==void 0?n:0,ee=(r=W==null?void 0:W.height)!==null&&r!==void 0?r:0,Z=f+(h!=="center"?"-"+h:""),D=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},_=Array.isArray(g)?g:[g],j=_.length>0,Q={padding:D,boundary:_.filter(q3),altBoundary:j},{refs:ne,floatingStyles:Ce,placement:De,isPositioned:He,middlewareData:fe}=H3({strategy:"fixed",placement:Z,whileElementsMounted:(...Nt)=>L3(...Nt,{animationFrame:P==="always"}),elements:{reference:E.anchor},middleware:[I3({mainAxis:p+ee,alignmentAxis:x}),b&&F3({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?B3():void 0,...Q}),b&&j3({...Q}),z3({...Q,apply:({elements:Nt,rects:oi,availableWidth:ql,availableHeight:cn})=>{const{width:ec,height:tc}=oi.reference,yr=Nt.floating.style;yr.setProperty("--radix-popper-available-width",`${ql}px`),yr.setProperty("--radix-popper-available-height",`${cn}px`),yr.setProperty("--radix-popper-anchor-width",`${ec}px`),yr.setProperty("--radix-popper-anchor-height",`${tc}px`)}}),L&&V3({element:L,padding:m}),eP({arrowWidth:X,arrowHeight:ee}),S&&U3({strategy:"referenceHidden",...Q})]}),[Me,$t]=Sy(De),Ze=rn(N);Uo(()=>{He&&(Ze==null||Ze())},[He,Ze]);const ln=(o=fe.arrow)===null||o===void 0?void 0:o.x,Ql=(i=fe.arrow)===null||i===void 0?void 0:i.y,Zl=((a=fe.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Jl,Ke]=u.useState();return Uo(()=>{O&&Ke(window.getComputedStyle(O).zIndex)},[O]),u.createElement("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...Ce,transform:He?Ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Jl,"--radix-popper-transform-origin":[(s=fe.transformOrigin)===null||s===void 0?void 0:s.x,(l=fe.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},u.createElement(Z3,{scope:d,placedSide:Me,onArrowChange:q,arrowX:ln,arrowY:Ql,shouldHideArrow:Zl},u.createElement(Ve.div,G({"data-side":Me,"data-align":$t},R,{ref:I,style:{...R.style,animation:He?void 0:"none",opacity:(c=fe.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function q3(e){return e!==null}const eP=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:c}=t,f=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=f?0:e.arrowWidth,h=f?0:e.arrowHeight,[x,m]=Sy(s),b={start:"0%",center:"50%",end:"100%"}[m],g=((r=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,v=((i=(a=c.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+h/2;let y="",S="";return x==="bottom"?(y=f?b:`${g}px`,S=`${-h}px`):x==="top"?(y=f?b:`${g}px`,S=`${l.floating.height+h}px`):x==="right"?(y=`${-h}px`,S=f?b:`${v}px`):x==="left"&&(y=`${l.floating.width+h}px`,S=f?b:`${v}px`),{data:{x:y,y:S}}}});function Sy(e){const[t,n="center"]=e.split("-");return[t,n]}const tP=Y3,nP=Q3,rP=J3,oP=u.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Nd.createPortal(u.createElement(Ve.div,G({},o,{ref:t})),r):null});function iP(e,t){return u.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const ti=e=>{const{present:t,children:n}=e,r=aP(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),i=Ct(r.ref,o.ref);return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:i}):null};ti.displayName="Presence";function aP(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),i=u.useRef("none"),a=e?"mounted":"unmounted",[s,l]=iP(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=es(r.current);i.current=s==="mounted"?c:"none"},[s]),Uo(()=>{const c=r.current,d=o.current;if(d!==e){const p=i.current,h=es(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Uo(()=>{if(t){const c=f=>{const h=es(r.current).includes(f.animationName);f.target===t&&h&&vr.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=es(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function es(e){return(e==null?void 0:e.animationName)||"none"}const Fc="rovingFocusGroup.onEntryFocus",sP={bubbles:!1,cancelable:!0},Gd="RovingFocusGroup",[tf,Ey,lP]=iy(Gd),[cP,jl]=Zo(Gd,[lP]),[uP,fP]=cP(Gd),dP=u.forwardRef((e,t)=>u.createElement(tf.Provider,{scope:e.__scopeRovingFocusGroup},u.createElement(tf.Slot,{scope:e.__scopeRovingFocusGroup},u.createElement(pP,G({},e,{ref:t}))))),pP=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...d}=e,f=u.useRef(null),p=Ct(t,f),h=jd(i),[x=null,m]=Fd({prop:a,defaultProp:s,onChange:l}),[b,g]=u.useState(!1),v=rn(c),y=Ey(n),S=u.useRef(!1),[P,N]=u.useState(0);return u.useEffect(()=>{const R=f.current;if(R)return R.addEventListener(Fc,v),()=>R.removeEventListener(Fc,v)},[v]),u.createElement(uP,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:x,onItemFocus:u.useCallback(R=>m(R),[m]),onItemShiftTab:u.useCallback(()=>g(!0),[]),onFocusableItemAdd:u.useCallback(()=>N(R=>R+1),[]),onFocusableItemRemove:u.useCallback(()=>N(R=>R-1),[])},u.createElement(Ve.div,G({tabIndex:b||P===0?-1:0,"data-orientation":r},d,{ref:p,style:{outline:"none",...e.style},onMouseDown:ae(e.onMouseDown,()=>{S.current=!0}),onFocus:ae(e.onFocus,R=>{const E=!S.current;if(R.target===R.currentTarget&&E&&!b){const O=new CustomEvent(Fc,sP);if(R.currentTarget.dispatchEvent(O),!O.defaultPrevented){const T=y().filter(X=>X.focusable),I=T.find(X=>X.active),L=T.find(X=>X.id===x),W=[I,L,...T].filter(Boolean).map(X=>X.ref.current);Cy(W)}}S.current=!1}),onBlur:ae(e.onBlur,()=>g(!1))})))}),mP="RovingFocusGroupItem",hP=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=rl(),l=i||s,c=fP(mP,n),d=c.currentTabStopId===l,f=Ey(n),{onFocusableItemAdd:p,onFocusableItemRemove:h}=c;return u.useEffect(()=>{if(r)return p(),()=>h()},[r,p,h]),u.createElement(tf.ItemSlot,{scope:n,id:l,focusable:r,active:o},u.createElement(Ve.span,G({tabIndex:d?0:-1,"data-orientation":c.orientation},a,{ref:t,onMouseDown:ae(e.onMouseDown,x=>{r?c.onItemFocus(l):x.preventDefault()}),onFocus:ae(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:ae(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){c.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const m=yP(x,c.orientation,c.dir);if(m!==void 0){x.preventDefault();let g=f().filter(v=>v.focusable).map(v=>v.ref.current);if(m==="last")g.reverse();else if(m==="prev"||m==="next"){m==="prev"&&g.reverse();const v=g.indexOf(x.currentTarget);g=c.loop?xP(g,v+1):g.slice(v+1)}setTimeout(()=>Cy(g))}})})))}),vP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gP(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yP(e,t,n){const r=gP(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return vP[r]}function Cy(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function xP(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Py=dP,ky=hP;var wP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},to=new WeakMap,ts=new WeakMap,ns={},jc=0,Ry=function(e){return e&&(e.host||Ry(e.parentNode))},bP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ry(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},SP=function(e,t,n,r){var o=bP(t,Array.isArray(e)?e:[e]);ns[n]||(ns[n]=new WeakMap);var i=ns[n],a=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))d(p);else try{var h=p.getAttribute(r),x=h!==null&&h!=="false",m=(to.get(p)||0)+1,b=(i.get(p)||0)+1;to.set(p,m),i.set(p,b),a.push(p),m===1&&x&&ts.set(p,!0),b===1&&p.setAttribute(n,"true"),x||p.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",p,g)}})};return d(t),s.clear(),jc++,function(){a.forEach(function(f){var p=to.get(f)-1,h=i.get(f)-1;to.set(f,p),i.set(f,h),p||(ts.has(f)||f.removeAttribute(r),ts.delete(f)),h||f.removeAttribute(n)}),jc--,jc||(to=new WeakMap,to=new WeakMap,ts=new WeakMap,ns={})}},$y=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=wP(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),SP(r,o,n,"aria-hidden")):function(){return null}},tt=function(){return tt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return DP;var t=LP(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},FP=Xd(),_o="data-scroll-locked",jP=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(EP,` { overflow: hidden `).concat(r,`; padding-right: `).concat(s,"px ").concat(r,`; } @@ -134,33 +134,33 @@ Error generating stack: `+i.message+` `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` } - .`).concat(Li,` { + .`).concat(Ii,` { right: `).concat(s,"px ").concat(r,`; } - .`).concat(Ii,` { + .`).concat(Fi,` { margin-right: `).concat(s,"px ").concat(r,`; } - .`).concat(Li," .").concat(Li,` { + .`).concat(Ii," .").concat(Ii,` { right: 0 `).concat(r,`; } - .`).concat(Ii," .").concat(Ii,` { + .`).concat(Fi," .").concat(Fi,` { margin-right: 0 `).concat(r,`; } body[`).concat(_o,`] { - `).concat(EP,": ").concat(s,`px; + `).concat(CP,": ").concat(s,`px; } -`)},Rh=function(){var e=parseInt(document.body.getAttribute(_o)||"0",10);return isFinite(e)?e:0},jP=function(){u.useEffect(function(){return document.body.setAttribute(_o,(Rh()+1).toString()),function(){var e=Rh()-1;e<=0?document.body.removeAttribute(_o):document.body.setAttribute(_o,e.toString())}},[])},Ay=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;jP();var i=u.useMemo(function(){return LP(o)},[o]);return u.createElement(IP,{styles:FP(i,!t,o,n?"":"!important")})},tf=!1;if(typeof window<"u")try{var ns=Object.defineProperty({},"passive",{get:function(){return tf=!0,!0}});window.addEventListener("test",ns,ns),window.removeEventListener("test",ns,ns)}catch{tf=!1}var no=tf?{passive:!1}:!1,zP=function(e){return e.tagName==="TEXTAREA"},Dy=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!zP(e)&&n[t]==="visible")},UP=function(e){return Dy(e,"overflowY")},BP=function(e){return Dy(e,"overflowX")},$h=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Ly(e,n);if(r){var o=Iy(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},WP=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},VP=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ly=function(e,t){return e==="v"?UP(t):BP(t)},Iy=function(e,t){return e==="v"?WP(t):VP(t)},HP=function(e,t){return e==="h"&&t==="rtl"?-1:1},KP=function(e,t,n,r,o){var i=HP(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,d=a>0,f=0,p=0;do{var h=Iy(e,s),x=h[0],m=h[1],b=h[2],g=m-b-i*x;(x||g)&&Ly(e,s)&&(f+=g,p+=x),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(f===0||!o)||!d&&(p===0||!o))&&(c=!0),c},rs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Nh=function(e){return[e.deltaX,e.deltaY]},_h=function(e){return e&&"current"in e?e.current:e},GP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},YP=function(e){return` +`)},$h=function(){var e=parseInt(document.body.getAttribute(_o)||"0",10);return isFinite(e)?e:0},zP=function(){u.useEffect(function(){return document.body.setAttribute(_o,($h()+1).toString()),function(){var e=$h()-1;e<=0?document.body.removeAttribute(_o):document.body.setAttribute(_o,e.toString())}},[])},Dy=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;zP();var i=u.useMemo(function(){return IP(o)},[o]);return u.createElement(FP,{styles:jP(i,!t,o,n?"":"!important")})},nf=!1;if(typeof window<"u")try{var rs=Object.defineProperty({},"passive",{get:function(){return nf=!0,!0}});window.addEventListener("test",rs,rs),window.removeEventListener("test",rs,rs)}catch{nf=!1}var no=nf?{passive:!1}:!1,UP=function(e){return e.tagName==="TEXTAREA"},Ly=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!UP(e)&&n[t]==="visible")},BP=function(e){return Ly(e,"overflowY")},WP=function(e){return Ly(e,"overflowX")},Nh=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Iy(e,n);if(r){var o=Fy(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},VP=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},HP=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Iy=function(e,t){return e==="v"?BP(t):WP(t)},Fy=function(e,t){return e==="v"?VP(t):HP(t)},KP=function(e,t){return e==="h"&&t==="rtl"?-1:1},GP=function(e,t,n,r,o){var i=KP(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,d=a>0,f=0,p=0;do{var h=Fy(e,s),x=h[0],m=h[1],b=h[2],g=m-b-i*x;(x||g)&&Iy(e,s)&&(f+=g,p+=x),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(f===0||!o)||!d&&(p===0||!o))&&(c=!0),c},os=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_h=function(e){return[e.deltaX,e.deltaY]},Th=function(e){return e&&"current"in e?e.current:e},YP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},XP=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},XP=0,ro=[];function QP(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(XP++)[0],i=u.useState(function(){return Yd()})[0],a=u.useRef(e);u.useEffect(function(){a.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=$y([e.lockRef.current],(e.shards||[]).map(_h),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=u.useCallback(function(m,b){if("touches"in m&&m.touches.length===2)return!a.current.allowPinchZoom;var g=rs(m),v=n.current,y="deltaX"in m?m.deltaX:v[0]-g[0],S="deltaY"in m?m.deltaY:v[1]-g[1],P,N=m.target,R=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in m&&R==="h"&&N.type==="range")return!1;var E=$h(R,N);if(!E)return!0;if(E?P=R:(P=R==="v"?"h":"v",E=$h(R,N)),!E)return!1;if(!r.current&&"changedTouches"in m&&(y||S)&&(r.current=P),!P)return!0;var O=r.current||P;return KP(O,b,m,O==="h"?y:S,!0)},[]),l=u.useCallback(function(m){var b=m;if(!(!ro.length||ro[ro.length-1]!==i)){var g="deltaY"in b?Nh(b):rs(b),v=t.current.filter(function(P){return P.name===b.type&&P.target===b.target&&GP(P.delta,g)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}if(!v){var y=(a.current.shards||[]).map(_h).filter(Boolean).filter(function(P){return P.contains(b.target)}),S=y.length>0?s(b,y[0]):!a.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),c=u.useCallback(function(m,b,g,v){var y={name:m,delta:b,target:g,should:v};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),d=u.useCallback(function(m){n.current=rs(m),r.current=void 0},[]),f=u.useCallback(function(m){c(m.type,Nh(m),m.target,s(m,e.lockRef.current))},[]),p=u.useCallback(function(m){c(m.type,rs(m),m.target,s(m,e.lockRef.current))},[]);u.useEffect(function(){return ro.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,no),document.addEventListener("touchmove",l,no),document.addEventListener("touchstart",d,no),function(){ro=ro.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,no),document.removeEventListener("touchmove",l,no),document.removeEventListener("touchstart",d,no)}},[]);var h=e.removeScrollBar,x=e.inert;return u.createElement(u.Fragment,null,x?u.createElement(i,{styles:YP(o)}):null,h?u.createElement(Ay,{gapMode:"margin"}):null)}const ZP=My(Oy,QP);var Fy=u.forwardRef(function(e,t){return u.createElement(jl,et({},e,{ref:t,sideCar:ZP}))});Fy.classNames=jl.classNames;const nf=["Enter"," "],JP=["ArrowDown","PageUp","Home"],jy=["ArrowUp","PageDown","End"],qP=[...JP,...jy],ek={ltr:[...nf,"ArrowRight"],rtl:[...nf,"ArrowLeft"]},tk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},zl="Menu",[la,nk,rk]=oy(zl),[Xr,zy]=Zo(zl,[rk,yy,Fl]),Xd=yy(),Uy=Fl(),[ok,Qr]=Xr(zl),[ik,wa]=Xr(zl),ak=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=Xd(t),[l,c]=u.useState(null),d=u.useRef(!1),f=rn(i),p=Fd(o);return u.useEffect(()=>{const h=()=>{d.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>d.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),u.createElement(eP,s,u.createElement(ok,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:c},u.createElement(ik,{scope:t,onClose:u.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:a},r)))},By=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Xd(n);return u.createElement(tP,G({},o,r,{ref:t}))}),Wy="MenuPortal",[sk,Vy]=Xr(Wy,{forceMount:void 0}),lk=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Qr(Wy,t);return u.createElement(sk,{scope:t,forceMount:n},u.createElement(ti,{present:n||i.open},u.createElement(rP,{asChild:!0,container:o},r)))},Vt="MenuContent",[ck,Qd]=Xr(Vt),uk=u.forwardRef((e,t)=>{const n=Vy(Vt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Qr(Vt,e.__scopeMenu),a=wa(Vt,e.__scopeMenu);return u.createElement(la.Provider,{scope:e.__scopeMenu},u.createElement(ti,{present:r||i.open},u.createElement(la.Slot,{scope:e.__scopeMenu},a.modal?u.createElement(fk,G({},o,{ref:t})):u.createElement(dk,G({},o,{ref:t})))))}),fk=u.forwardRef((e,t)=>{const n=Qr(Vt,e.__scopeMenu),r=u.useRef(null),o=Ct(t,r);return u.useEffect(()=>{const i=r.current;if(i)return Ry(i)},[]),u.createElement(Zd,G({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ae(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),dk=u.forwardRef((e,t)=>{const n=Qr(Vt,e.__scopeMenu);return u.createElement(Zd,G({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Zd=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h,disableOutsideScroll:x,...m}=e,b=Qr(Vt,n),g=wa(Vt,n),v=Xd(n),y=Uy(n),S=nk(n),[P,N]=u.useState(null),R=u.useRef(null),E=Ct(t,R,b.onContentChange),O=u.useRef(0),T=u.useRef(""),I=u.useRef(0),L=u.useRef(null),q=u.useRef("right"),W=u.useRef(0),X=x?Fy:u.Fragment,ee=x?{as:zo,allowPinchZoom:!0}:void 0,Z=_=>{var j,Q;const ne=T.current+_,Ce=S().filter(Qe=>!Qe.disabled),De=document.activeElement,He=(j=Ce.find(Qe=>Qe.ref.current===De))===null||j===void 0?void 0:j.textValue,fe=Ce.map(Qe=>Qe.textValue),Me=$k(fe,ne,He),$t=(Q=Ce.find(Qe=>Qe.textValue===Me))===null||Q===void 0?void 0:Q.ref.current;(function Qe(ln){T.current=ln,window.clearTimeout(O.current),ln!==""&&(O.current=window.setTimeout(()=>Qe(""),1e3))})(ne),$t&&setTimeout(()=>$t.focus())};u.useEffect(()=>()=>window.clearTimeout(O.current),[]),VC();const D=u.useCallback(_=>{var j,Q;return q.current===((j=L.current)===null||j===void 0?void 0:j.side)&&_k(_,(Q=L.current)===null||Q===void 0?void 0:Q.area)},[]);return u.createElement(ck,{scope:n,searchRef:T,onItemEnter:u.useCallback(_=>{D(_)&&_.preventDefault()},[D]),onItemLeave:u.useCallback(_=>{var j;D(_)||((j=R.current)===null||j===void 0||j.focus(),N(null))},[D]),onTriggerLeave:u.useCallback(_=>{D(_)&&_.preventDefault()},[D]),pointerGraceTimerRef:I,onPointerGraceIntentChange:u.useCallback(_=>{L.current=_},[])},u.createElement(X,ee,u.createElement(HC,{asChild:!0,trapped:o,onMountAutoFocus:ae(i,_=>{var j;_.preventDefault(),(j=R.current)===null||j===void 0||j.focus()}),onUnmountAutoFocus:a},u.createElement(UC,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h},u.createElement(Cy,G({asChild:!0},y,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:P,onCurrentTabStopIdChange:N,onEntryFocus:ae(l,_=>{g.isUsingKeyboardRef.current||_.preventDefault()})}),u.createElement(nP,G({role:"menu","aria-orientation":"vertical","data-state":Xy(b.open),"data-radix-menu-content":"",dir:g.dir},v,m,{ref:E,style:{outline:"none",...m.style},onKeyDown:ae(m.onKeyDown,_=>{const Q=_.target.closest("[data-radix-menu-content]")===_.currentTarget,ne=_.ctrlKey||_.altKey||_.metaKey,Ce=_.key.length===1;Q&&(_.key==="Tab"&&_.preventDefault(),!ne&&Ce&&Z(_.key));const De=R.current;if(_.target!==De||!qP.includes(_.key))return;_.preventDefault();const fe=S().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);jy.includes(_.key)&&fe.reverse(),kk(fe)}),onBlur:ae(e.onBlur,_=>{_.currentTarget.contains(_.target)||(window.clearTimeout(O.current),T.current="")}),onPointerMove:ae(e.onPointerMove,ca(_=>{const j=_.target,Q=W.current!==_.clientX;if(_.currentTarget.contains(j)&&Q){const ne=_.clientX>W.current?"right":"left";q.current=ne,W.current=_.clientX}}))})))))))}),pk=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(Ve.div,G({},r,{ref:t}))}),rf="MenuItem",Th="menu.itemSelect",Jd=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=u.useRef(null),a=wa(rf,e.__scopeMenu),s=Qd(rf,e.__scopeMenu),l=Ct(t,i),c=u.useRef(!1),d=()=>{const f=i.current;if(!n&&f){const p=new CustomEvent(Th,{bubbles:!0,cancelable:!0});f.addEventListener(Th,h=>r==null?void 0:r(h),{once:!0}),ry(f,p),p.defaultPrevented?c.current=!1:a.onClose()}};return u.createElement(Hy,G({},o,{ref:l,disabled:n,onClick:ae(e.onClick,d),onPointerDown:f=>{var p;(p=e.onPointerDown)===null||p===void 0||p.call(e,f),c.current=!0},onPointerUp:ae(e.onPointerUp,f=>{var p;c.current||(p=f.currentTarget)===null||p===void 0||p.click()}),onKeyDown:ae(e.onKeyDown,f=>{const p=s.searchRef.current!=="";n||p&&f.key===" "||nf.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),Hy=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=Qd(rf,n),s=Uy(n),l=u.useRef(null),c=Ct(t,l),[d,f]=u.useState(!1),[p,h]=u.useState("");return u.useEffect(()=>{const x=l.current;if(x){var m;h(((m=x.textContent)!==null&&m!==void 0?m:"").trim())}},[i.children]),u.createElement(la.ItemSlot,{scope:n,disabled:r,textValue:o??p},u.createElement(Py,G({asChild:!0},s,{focusable:!r}),u.createElement(Ve.div,G({role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:c,onPointerMove:ae(e.onPointerMove,ca(x=>{r?a.onItemLeave(x):(a.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus())})),onPointerLeave:ae(e.onPointerLeave,ca(x=>a.onItemLeave(x))),onFocus:ae(e.onFocus,()=>f(!0)),onBlur:ae(e.onBlur,()=>f(!1))}))))}),mk=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return u.createElement(Gy,{scope:e.__scopeMenu,checked:n},u.createElement(Jd,G({role:"menuitemcheckbox","aria-checked":sl(n)?"mixed":n},o,{ref:t,"data-state":qd(n),onSelect:ae(o.onSelect,()=>r==null?void 0:r(sl(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),hk="MenuRadioGroup",[d_,vk]=Xr(hk,{value:void 0,onValueChange:()=>{}}),gk="MenuRadioItem",yk=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=vk(gk,e.__scopeMenu),i=n===o.value;return u.createElement(Gy,{scope:e.__scopeMenu,checked:i},u.createElement(Jd,G({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":qd(i),onSelect:ae(r.onSelect,()=>{var a;return(a=o.onValueChange)===null||a===void 0?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})))}),Ky="MenuItemIndicator",[Gy,xk]=Xr(Ky,{checked:!1}),wk=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=xk(Ky,n);return u.createElement(ti,{present:r||sl(i.checked)||i.checked===!0},u.createElement(Ve.span,G({},o,{ref:t,"data-state":qd(i.checked)})))}),bk=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(Ve.div,G({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),Sk="MenuSub",[p_,Yy]=Xr(Sk),os="MenuSubTrigger",Ek=u.forwardRef((e,t)=>{const n=Qr(os,e.__scopeMenu),r=wa(os,e.__scopeMenu),o=Yy(os,e.__scopeMenu),i=Qd(os,e.__scopeMenu),a=u.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},d=u.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return u.useEffect(()=>d,[d]),u.useEffect(()=>{const f=s.current;return()=>{window.clearTimeout(f),l(null)}},[s,l]),u.createElement(By,G({asChild:!0},c),u.createElement(Hy,G({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Xy(n.open)},e,{ref:Ll(t,o.onTriggerChange),onClick:f=>{var p;(p=e.onClick)===null||p===void 0||p.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ae(e.onPointerMove,ca(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:ae(e.onPointerLeave,ca(f=>{var p;d();const h=(p=n.content)===null||p===void 0?void 0:p.getBoundingClientRect();if(h){var x;const m=(x=n.content)===null||x===void 0?void 0:x.dataset.side,b=m==="right",g=b?-5:5,v=h[b?"left":"right"],y=h[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+g,y:f.clientY},{x:v,y:h.top},{x:y,y:h.top},{x:y,y:h.bottom},{x:v,y:h.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ae(e.onKeyDown,f=>{const p=i.searchRef.current!=="";if(!(e.disabled||p&&f.key===" ")&&ek[r.dir].includes(f.key)){var h;n.onOpenChange(!0),(h=n.content)===null||h===void 0||h.focus(),f.preventDefault()}})})))}),Ck="MenuSubContent",Pk=u.forwardRef((e,t)=>{const n=Vy(Vt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Qr(Vt,e.__scopeMenu),a=wa(Vt,e.__scopeMenu),s=Yy(Ck,e.__scopeMenu),l=u.useRef(null),c=Ct(t,l);return u.createElement(la.Provider,{scope:e.__scopeMenu},u.createElement(ti,{present:r||i.open},u.createElement(la.Slot,{scope:e.__scopeMenu},u.createElement(Zd,G({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:c,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;a.isUsingKeyboardRef.current&&((f=l.current)===null||f===void 0||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:ae(e.onFocusOutside,d=>{d.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ae(e.onEscapeKeyDown,d=>{a.onClose(),d.preventDefault()}),onKeyDown:ae(e.onKeyDown,d=>{const f=d.currentTarget.contains(d.target),p=tk[a.dir].includes(d.key);if(f&&p){var h;i.onOpenChange(!1),(h=s.trigger)===null||h===void 0||h.focus(),d.preventDefault()}})})))))});function Xy(e){return e?"open":"closed"}function sl(e){return e==="indeterminate"}function qd(e){return sl(e)?"indeterminate":e?"checked":"unchecked"}function kk(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Rk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function $k(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=Rk(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Nk(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;ir!=d>r&&n<(c-s)*(r-l)/(d-l)+s&&(o=!o)}return o}function _k(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Nk(n,t)}function ca(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Tk=ak,Mk=By,Ok=lk,Ak=uk,Dk=pk,Lk=Jd,Ik=mk,Fk=yk,jk=wk,zk=bk,Uk=Ek,Bk=Pk,Qy="DropdownMenu",[Wk,m_]=Zo(Qy,[zy]),Lt=zy(),[Vk,Zy]=Wk(Qy),Hk=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=Lt(t),c=u.useRef(null),[d=!1,f]=Id({prop:o,defaultProp:i,onChange:a});return u.createElement(Vk,{scope:t,triggerId:nl(),triggerRef:c,contentId:nl(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(p=>!p),[f]),modal:s},u.createElement(Tk,G({},l,{open:d,onOpenChange:f,dir:r,modal:s}),n))},Kk="DropdownMenuTrigger",Gk=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Zy(Kk,n),a=Lt(n);return u.createElement(Mk,G({asChild:!0},a),u.createElement(Ve.button,G({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:Ll(t,i.triggerRef),onPointerDown:ae(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:ae(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),Yk=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Lt(t);return u.createElement(Ok,G({},r,n))},Xk="DropdownMenuContent",Qk=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Zy(Xk,n),i=Lt(n),a=u.useRef(!1);return u.createElement(Ak,G({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:ae(e.onCloseAutoFocus,s=>{var l;a.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:ae(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;(!o.modal||d)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Zk=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(Dk,G({},o,r,{ref:t}))}),Jk=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(Lk,G({},o,r,{ref:t}))}),qk=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(Ik,G({},o,r,{ref:t}))}),e4=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(Fk,G({},o,r,{ref:t}))}),t4=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(jk,G({},o,r,{ref:t}))}),n4=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(zk,G({},o,r,{ref:t}))}),r4=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(Uk,G({},o,r,{ref:t}))}),o4=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(Bk,G({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),i4=Hk,a4=Gk,s4=Yk,Jy=Qk,qy=Zk,e1=Jk,t1=qk,n1=e4,r1=t4,o1=n4,i1=r4,a1=o4,l4=i4,c4=a4,u4=u.forwardRef(({className:e,inset:t,children:n,...r},o)=>w.jsxs(i1,{ref:o,className:he("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,w.jsx($C,{className:"ml-auto h-4 w-4"})]}));u4.displayName=i1.displayName;const f4=u.forwardRef(({className:e,...t},n)=>w.jsx(a1,{ref:n,className:he("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));f4.displayName=a1.displayName;const s1=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>w.jsx(s4,{children:w.jsx(Jy,{ref:r,sideOffset:t,className:he("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));s1.displayName=Jy.displayName;const Cs=u.forwardRef(({className:e,inset:t,...n},r)=>w.jsx(e1,{ref:r,className:he("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Cs.displayName=e1.displayName;const d4=u.forwardRef(({className:e,children:t,checked:n,...r},o)=>w.jsxs(t1,{ref:o,className:he("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[w.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:w.jsx(r1,{children:w.jsx(RC,{className:"h-4 w-4"})})}),t]}));d4.displayName=t1.displayName;const p4=u.forwardRef(({className:e,children:t,...n},r)=>w.jsxs(n1,{ref:r,className:he("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[w.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:w.jsx(r1,{children:w.jsx(NC,{className:"h-2 w-2 fill-current"})})}),t]}));p4.displayName=n1.displayName;const m4=u.forwardRef(({className:e,inset:t,...n},r)=>w.jsx(qy,{ref:r,className:he("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));m4.displayName=qy.displayName;const h4=u.forwardRef(({className:e,...t},n)=>w.jsx(o1,{ref:n,className:he("-mx-1 my-1 h-px bg-muted",e),...t}));h4.displayName=o1.displayName;const l1=u.createContext({theme:"system",setTheme:()=>null});function v4({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[o,i]=u.useState(()=>localStorage.getItem(n)||t);u.useEffect(()=>{const l=window.document.documentElement;if(l.classList.remove("light","dark"),o==="system"){const c=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";l.classList.add(c)}else l.classList.add(o)},[o]);const s={theme:o,setTheme:l=>{localStorage.setItem(n,l),i(l)}};return w.jsx(l1.Provider,{value:s,...r,children:e})}const g4=()=>{const e=u.useContext(l1);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function Mh(){const{setTheme:e}=g4();return w.jsxs(l4,{children:[w.jsx(c4,{asChild:!0,children:w.jsxs(tt,{variant:"outline",size:"icon",children:[w.jsx(TC,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),w.jsx(_C,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),w.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),w.jsxs(s1,{align:"end",children:[w.jsx(Cs,{onClick:()=>e("light"),children:"Light"}),w.jsx(Cs,{onClick:()=>e("dark"),children:"Dark"}),w.jsx(Cs,{onClick:()=>e("system"),children:"System"})]})]})}const of="horizontal",y4=["horizontal","vertical"],c1=u.forwardRef((e,t)=>{const{decorative:n,orientation:r=of,...o}=e,i=u1(r)?r:of,s=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return u.createElement(Ve.div,G({"data-orientation":i},s,o,{ref:t}))});c1.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!u1(r)?new Error(x4(o,n)):null}};function x4(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of: +`)},QP=0,ro=[];function ZP(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(QP++)[0],i=u.useState(function(){return Xd()})[0],a=u.useRef(e);u.useEffect(function(){a.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Ny([e.lockRef.current],(e.shards||[]).map(Th),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=u.useCallback(function(m,b){if("touches"in m&&m.touches.length===2)return!a.current.allowPinchZoom;var g=os(m),v=n.current,y="deltaX"in m?m.deltaX:v[0]-g[0],S="deltaY"in m?m.deltaY:v[1]-g[1],P,N=m.target,R=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in m&&R==="h"&&N.type==="range")return!1;var E=Nh(R,N);if(!E)return!0;if(E?P=R:(P=R==="v"?"h":"v",E=Nh(R,N)),!E)return!1;if(!r.current&&"changedTouches"in m&&(y||S)&&(r.current=P),!P)return!0;var O=r.current||P;return GP(O,b,m,O==="h"?y:S,!0)},[]),l=u.useCallback(function(m){var b=m;if(!(!ro.length||ro[ro.length-1]!==i)){var g="deltaY"in b?_h(b):os(b),v=t.current.filter(function(P){return P.name===b.type&&P.target===b.target&&YP(P.delta,g)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}if(!v){var y=(a.current.shards||[]).map(Th).filter(Boolean).filter(function(P){return P.contains(b.target)}),S=y.length>0?s(b,y[0]):!a.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),c=u.useCallback(function(m,b,g,v){var y={name:m,delta:b,target:g,should:v};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),d=u.useCallback(function(m){n.current=os(m),r.current=void 0},[]),f=u.useCallback(function(m){c(m.type,_h(m),m.target,s(m,e.lockRef.current))},[]),p=u.useCallback(function(m){c(m.type,os(m),m.target,s(m,e.lockRef.current))},[]);u.useEffect(function(){return ro.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,no),document.addEventListener("touchmove",l,no),document.addEventListener("touchstart",d,no),function(){ro=ro.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,no),document.removeEventListener("touchmove",l,no),document.removeEventListener("touchstart",d,no)}},[]);var h=e.removeScrollBar,x=e.inert;return u.createElement(u.Fragment,null,x?u.createElement(i,{styles:XP(o)}):null,h?u.createElement(Dy,{gapMode:"margin"}):null)}const JP=Oy(Ay,ZP);var jy=u.forwardRef(function(e,t){return u.createElement(zl,tt({},e,{ref:t,sideCar:JP}))});jy.classNames=zl.classNames;const rf=["Enter"," "],qP=["ArrowDown","PageUp","Home"],zy=["ArrowUp","PageDown","End"],ek=[...qP,...zy],tk={ltr:[...rf,"ArrowRight"],rtl:[...rf,"ArrowLeft"]},nk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ul="Menu",[ca,rk,ok]=iy(Ul),[Xr,Uy]=Zo(Ul,[ok,xy,jl]),Qd=xy(),By=jl(),[ik,Qr]=Xr(Ul),[ak,ba]=Xr(Ul),sk=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=Qd(t),[l,c]=u.useState(null),d=u.useRef(!1),f=rn(i),p=jd(o);return u.useEffect(()=>{const h=()=>{d.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>d.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),u.createElement(tP,s,u.createElement(ik,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:c},u.createElement(ak,{scope:t,onClose:u.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:a},r)))},Wy=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Qd(n);return u.createElement(nP,G({},o,r,{ref:t}))}),Vy="MenuPortal",[lk,Hy]=Xr(Vy,{forceMount:void 0}),ck=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Qr(Vy,t);return u.createElement(lk,{scope:t,forceMount:n},u.createElement(ti,{present:n||i.open},u.createElement(oP,{asChild:!0,container:o},r)))},Vt="MenuContent",[uk,Zd]=Xr(Vt),fk=u.forwardRef((e,t)=>{const n=Hy(Vt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Qr(Vt,e.__scopeMenu),a=ba(Vt,e.__scopeMenu);return u.createElement(ca.Provider,{scope:e.__scopeMenu},u.createElement(ti,{present:r||i.open},u.createElement(ca.Slot,{scope:e.__scopeMenu},a.modal?u.createElement(dk,G({},o,{ref:t})):u.createElement(pk,G({},o,{ref:t})))))}),dk=u.forwardRef((e,t)=>{const n=Qr(Vt,e.__scopeMenu),r=u.useRef(null),o=Ct(t,r);return u.useEffect(()=>{const i=r.current;if(i)return $y(i)},[]),u.createElement(Jd,G({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ae(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),pk=u.forwardRef((e,t)=>{const n=Qr(Vt,e.__scopeMenu);return u.createElement(Jd,G({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Jd=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h,disableOutsideScroll:x,...m}=e,b=Qr(Vt,n),g=ba(Vt,n),v=Qd(n),y=By(n),S=rk(n),[P,N]=u.useState(null),R=u.useRef(null),E=Ct(t,R,b.onContentChange),O=u.useRef(0),T=u.useRef(""),I=u.useRef(0),L=u.useRef(null),q=u.useRef("right"),W=u.useRef(0),X=x?jy:u.Fragment,ee=x?{as:zo,allowPinchZoom:!0}:void 0,Z=_=>{var j,Q;const ne=T.current+_,Ce=S().filter(Ze=>!Ze.disabled),De=document.activeElement,He=(j=Ce.find(Ze=>Ze.ref.current===De))===null||j===void 0?void 0:j.textValue,fe=Ce.map(Ze=>Ze.textValue),Me=Nk(fe,ne,He),$t=(Q=Ce.find(Ze=>Ze.textValue===Me))===null||Q===void 0?void 0:Q.ref.current;(function Ze(ln){T.current=ln,window.clearTimeout(O.current),ln!==""&&(O.current=window.setTimeout(()=>Ze(""),1e3))})(ne),$t&&setTimeout(()=>$t.focus())};u.useEffect(()=>()=>window.clearTimeout(O.current),[]),HC();const D=u.useCallback(_=>{var j,Q;return q.current===((j=L.current)===null||j===void 0?void 0:j.side)&&Tk(_,(Q=L.current)===null||Q===void 0?void 0:Q.area)},[]);return u.createElement(uk,{scope:n,searchRef:T,onItemEnter:u.useCallback(_=>{D(_)&&_.preventDefault()},[D]),onItemLeave:u.useCallback(_=>{var j;D(_)||((j=R.current)===null||j===void 0||j.focus(),N(null))},[D]),onTriggerLeave:u.useCallback(_=>{D(_)&&_.preventDefault()},[D]),pointerGraceTimerRef:I,onPointerGraceIntentChange:u.useCallback(_=>{L.current=_},[])},u.createElement(X,ee,u.createElement(KC,{asChild:!0,trapped:o,onMountAutoFocus:ae(i,_=>{var j;_.preventDefault(),(j=R.current)===null||j===void 0||j.focus()}),onUnmountAutoFocus:a},u.createElement(BC,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h},u.createElement(Py,G({asChild:!0},y,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:P,onCurrentTabStopIdChange:N,onEntryFocus:ae(l,_=>{g.isUsingKeyboardRef.current||_.preventDefault()})}),u.createElement(rP,G({role:"menu","aria-orientation":"vertical","data-state":Qy(b.open),"data-radix-menu-content":"",dir:g.dir},v,m,{ref:E,style:{outline:"none",...m.style},onKeyDown:ae(m.onKeyDown,_=>{const Q=_.target.closest("[data-radix-menu-content]")===_.currentTarget,ne=_.ctrlKey||_.altKey||_.metaKey,Ce=_.key.length===1;Q&&(_.key==="Tab"&&_.preventDefault(),!ne&&Ce&&Z(_.key));const De=R.current;if(_.target!==De||!ek.includes(_.key))return;_.preventDefault();const fe=S().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);zy.includes(_.key)&&fe.reverse(),Rk(fe)}),onBlur:ae(e.onBlur,_=>{_.currentTarget.contains(_.target)||(window.clearTimeout(O.current),T.current="")}),onPointerMove:ae(e.onPointerMove,ua(_=>{const j=_.target,Q=W.current!==_.clientX;if(_.currentTarget.contains(j)&&Q){const ne=_.clientX>W.current?"right":"left";q.current=ne,W.current=_.clientX}}))})))))))}),mk=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(Ve.div,G({},r,{ref:t}))}),of="MenuItem",Mh="menu.itemSelect",qd=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=u.useRef(null),a=ba(of,e.__scopeMenu),s=Zd(of,e.__scopeMenu),l=Ct(t,i),c=u.useRef(!1),d=()=>{const f=i.current;if(!n&&f){const p=new CustomEvent(Mh,{bubbles:!0,cancelable:!0});f.addEventListener(Mh,h=>r==null?void 0:r(h),{once:!0}),oy(f,p),p.defaultPrevented?c.current=!1:a.onClose()}};return u.createElement(Ky,G({},o,{ref:l,disabled:n,onClick:ae(e.onClick,d),onPointerDown:f=>{var p;(p=e.onPointerDown)===null||p===void 0||p.call(e,f),c.current=!0},onPointerUp:ae(e.onPointerUp,f=>{var p;c.current||(p=f.currentTarget)===null||p===void 0||p.click()}),onKeyDown:ae(e.onKeyDown,f=>{const p=s.searchRef.current!=="";n||p&&f.key===" "||rf.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),Ky=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=Zd(of,n),s=By(n),l=u.useRef(null),c=Ct(t,l),[d,f]=u.useState(!1),[p,h]=u.useState("");return u.useEffect(()=>{const x=l.current;if(x){var m;h(((m=x.textContent)!==null&&m!==void 0?m:"").trim())}},[i.children]),u.createElement(ca.ItemSlot,{scope:n,disabled:r,textValue:o??p},u.createElement(ky,G({asChild:!0},s,{focusable:!r}),u.createElement(Ve.div,G({role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:c,onPointerMove:ae(e.onPointerMove,ua(x=>{r?a.onItemLeave(x):(a.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus())})),onPointerLeave:ae(e.onPointerLeave,ua(x=>a.onItemLeave(x))),onFocus:ae(e.onFocus,()=>f(!0)),onBlur:ae(e.onBlur,()=>f(!1))}))))}),hk=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return u.createElement(Yy,{scope:e.__scopeMenu,checked:n},u.createElement(qd,G({role:"menuitemcheckbox","aria-checked":ll(n)?"mixed":n},o,{ref:t,"data-state":ep(n),onSelect:ae(o.onSelect,()=>r==null?void 0:r(ll(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),vk="MenuRadioGroup",[p_,gk]=Xr(vk,{value:void 0,onValueChange:()=>{}}),yk="MenuRadioItem",xk=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=gk(yk,e.__scopeMenu),i=n===o.value;return u.createElement(Yy,{scope:e.__scopeMenu,checked:i},u.createElement(qd,G({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":ep(i),onSelect:ae(r.onSelect,()=>{var a;return(a=o.onValueChange)===null||a===void 0?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})))}),Gy="MenuItemIndicator",[Yy,wk]=Xr(Gy,{checked:!1}),bk=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=wk(Gy,n);return u.createElement(ti,{present:r||ll(i.checked)||i.checked===!0},u.createElement(Ve.span,G({},o,{ref:t,"data-state":ep(i.checked)})))}),Sk=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(Ve.div,G({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),Ek="MenuSub",[m_,Xy]=Xr(Ek),is="MenuSubTrigger",Ck=u.forwardRef((e,t)=>{const n=Qr(is,e.__scopeMenu),r=ba(is,e.__scopeMenu),o=Xy(is,e.__scopeMenu),i=Zd(is,e.__scopeMenu),a=u.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},d=u.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return u.useEffect(()=>d,[d]),u.useEffect(()=>{const f=s.current;return()=>{window.clearTimeout(f),l(null)}},[s,l]),u.createElement(Wy,G({asChild:!0},c),u.createElement(Ky,G({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Qy(n.open)},e,{ref:Il(t,o.onTriggerChange),onClick:f=>{var p;(p=e.onClick)===null||p===void 0||p.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ae(e.onPointerMove,ua(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:ae(e.onPointerLeave,ua(f=>{var p;d();const h=(p=n.content)===null||p===void 0?void 0:p.getBoundingClientRect();if(h){var x;const m=(x=n.content)===null||x===void 0?void 0:x.dataset.side,b=m==="right",g=b?-5:5,v=h[b?"left":"right"],y=h[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+g,y:f.clientY},{x:v,y:h.top},{x:y,y:h.top},{x:y,y:h.bottom},{x:v,y:h.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ae(e.onKeyDown,f=>{const p=i.searchRef.current!=="";if(!(e.disabled||p&&f.key===" ")&&tk[r.dir].includes(f.key)){var h;n.onOpenChange(!0),(h=n.content)===null||h===void 0||h.focus(),f.preventDefault()}})})))}),Pk="MenuSubContent",kk=u.forwardRef((e,t)=>{const n=Hy(Vt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Qr(Vt,e.__scopeMenu),a=ba(Vt,e.__scopeMenu),s=Xy(Pk,e.__scopeMenu),l=u.useRef(null),c=Ct(t,l);return u.createElement(ca.Provider,{scope:e.__scopeMenu},u.createElement(ti,{present:r||i.open},u.createElement(ca.Slot,{scope:e.__scopeMenu},u.createElement(Jd,G({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:c,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;a.isUsingKeyboardRef.current&&((f=l.current)===null||f===void 0||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:ae(e.onFocusOutside,d=>{d.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ae(e.onEscapeKeyDown,d=>{a.onClose(),d.preventDefault()}),onKeyDown:ae(e.onKeyDown,d=>{const f=d.currentTarget.contains(d.target),p=nk[a.dir].includes(d.key);if(f&&p){var h;i.onOpenChange(!1),(h=s.trigger)===null||h===void 0||h.focus(),d.preventDefault()}})})))))});function Qy(e){return e?"open":"closed"}function ll(e){return e==="indeterminate"}function ep(e){return ll(e)?"indeterminate":e?"checked":"unchecked"}function Rk(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function $k(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Nk(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=$k(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function _k(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;ir!=d>r&&n<(c-s)*(r-l)/(d-l)+s&&(o=!o)}return o}function Tk(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return _k(n,t)}function ua(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Mk=sk,Ok=Wy,Ak=ck,Dk=fk,Lk=mk,Ik=qd,Fk=hk,jk=xk,zk=bk,Uk=Sk,Bk=Ck,Wk=kk,Zy="DropdownMenu",[Vk,h_]=Zo(Zy,[Uy]),Lt=Uy(),[Hk,Jy]=Vk(Zy),Kk=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=Lt(t),c=u.useRef(null),[d=!1,f]=Fd({prop:o,defaultProp:i,onChange:a});return u.createElement(Hk,{scope:t,triggerId:rl(),triggerRef:c,contentId:rl(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(p=>!p),[f]),modal:s},u.createElement(Mk,G({},l,{open:d,onOpenChange:f,dir:r,modal:s}),n))},Gk="DropdownMenuTrigger",Yk=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Jy(Gk,n),a=Lt(n);return u.createElement(Ok,G({asChild:!0},a),u.createElement(Ve.button,G({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:Il(t,i.triggerRef),onPointerDown:ae(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:ae(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),Xk=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Lt(t);return u.createElement(Ak,G({},r,n))},Qk="DropdownMenuContent",Zk=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Jy(Qk,n),i=Lt(n),a=u.useRef(!1);return u.createElement(Dk,G({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:ae(e.onCloseAutoFocus,s=>{var l;a.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:ae(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;(!o.modal||d)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Jk=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(Lk,G({},o,r,{ref:t}))}),qk=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(Ik,G({},o,r,{ref:t}))}),e4=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(Fk,G({},o,r,{ref:t}))}),t4=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(jk,G({},o,r,{ref:t}))}),n4=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(zk,G({},o,r,{ref:t}))}),r4=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(Uk,G({},o,r,{ref:t}))}),o4=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(Bk,G({},o,r,{ref:t}))}),i4=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lt(n);return u.createElement(Wk,G({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),a4=Kk,s4=Yk,l4=Xk,qy=Zk,e1=Jk,t1=qk,n1=e4,r1=t4,o1=n4,i1=r4,a1=o4,s1=i4,c4=a4,u4=s4,f4=u.forwardRef(({className:e,inset:t,children:n,...r},o)=>w.jsxs(a1,{ref:o,className:he("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,w.jsx(NC,{className:"ml-auto h-4 w-4"})]}));f4.displayName=a1.displayName;const d4=u.forwardRef(({className:e,...t},n)=>w.jsx(s1,{ref:n,className:he("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));d4.displayName=s1.displayName;const l1=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>w.jsx(l4,{children:w.jsx(qy,{ref:r,sideOffset:t,className:he("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));l1.displayName=qy.displayName;const Ps=u.forwardRef(({className:e,inset:t,...n},r)=>w.jsx(t1,{ref:r,className:he("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Ps.displayName=t1.displayName;const p4=u.forwardRef(({className:e,children:t,checked:n,...r},o)=>w.jsxs(n1,{ref:o,className:he("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[w.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:w.jsx(o1,{children:w.jsx($C,{className:"h-4 w-4"})})}),t]}));p4.displayName=n1.displayName;const m4=u.forwardRef(({className:e,children:t,...n},r)=>w.jsxs(r1,{ref:r,className:he("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[w.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:w.jsx(o1,{children:w.jsx(_C,{className:"h-2 w-2 fill-current"})})}),t]}));m4.displayName=r1.displayName;const h4=u.forwardRef(({className:e,inset:t,...n},r)=>w.jsx(e1,{ref:r,className:he("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));h4.displayName=e1.displayName;const v4=u.forwardRef(({className:e,...t},n)=>w.jsx(i1,{ref:n,className:he("-mx-1 my-1 h-px bg-muted",e),...t}));v4.displayName=i1.displayName;const c1=u.createContext({theme:"system",setTheme:()=>null});function g4({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[o,i]=u.useState(()=>localStorage.getItem(n)||t);u.useEffect(()=>{const l=window.document.documentElement;if(l.classList.remove("light","dark"),o==="system"){const c=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";l.classList.add(c)}else l.classList.add(o)},[o]);const s={theme:o,setTheme:l=>{localStorage.setItem(n,l),i(l)}};return w.jsx(c1.Provider,{value:s,...r,children:e})}const y4=()=>{const e=u.useContext(c1);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function Oh(){const{setTheme:e}=y4();return w.jsxs(c4,{children:[w.jsx(u4,{asChild:!0,children:w.jsxs(Ye,{variant:"outline",size:"icon",children:[w.jsx(MC,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),w.jsx(TC,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),w.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),w.jsxs(l1,{align:"end",children:[w.jsx(Ps,{onClick:()=>e("light"),children:"Light"}),w.jsx(Ps,{onClick:()=>e("dark"),children:"Dark"}),w.jsx(Ps,{onClick:()=>e("system"),children:"System"})]})]})}const af="horizontal",x4=["horizontal","vertical"],u1=u.forwardRef((e,t)=>{const{decorative:n,orientation:r=af,...o}=e,i=f1(r)?r:af,s=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return u.createElement(Ve.div,G({"data-orientation":i},s,o,{ref:t}))});u1.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!f1(r)?new Error(w4(o,n)):null}};function w4(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of: - horizontal - vertical -Defaulting to \`${of}\`.`}function u1(e){return y4.includes(e)}const f1=c1,ua=u.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>w.jsx(f1,{ref:o,decorative:n,orientation:t,className:he("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));ua.displayName=f1.displayName;const Oh=()=>{};let ep={},d1={},p1=null,m1={mark:Oh,measure:Oh};try{typeof window<"u"&&(ep=window),typeof document<"u"&&(d1=document),typeof MutationObserver<"u"&&(p1=MutationObserver),typeof performance<"u"&&(m1=performance)}catch{}const{userAgent:Ah=""}=ep.navigator||{},ur=ep,be=d1,Dh=p1,is=m1;ur.document;const Tn=!!be.documentElement&&!!be.head&&typeof be.addEventListener=="function"&&typeof be.createElement=="function",h1=~Ah.indexOf("MSIE")||~Ah.indexOf("Trident/");var Ee="classic",v1="duotone",bt="sharp",St="sharp-duotone",w4=[Ee,v1,bt,St],b4={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},Lh={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},S4=["kit"],E4=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,C4=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,P4={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},k4={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},R4={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},$4={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},N4={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},_4={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},g1={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},T4=["solid","regular","light","thin","duotone","brands"],y1=[1,2,3,4,5,6,7,8,9,10],M4=y1.concat([11,12,13,14,15,16,17,18,19,20]),Pi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},O4=[...Object.keys($4),...T4,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Pi.GROUP,Pi.SWAP_OPACITY,Pi.PRIMARY,Pi.SECONDARY].concat(y1.map(e=>"".concat(e,"x"))).concat(M4.map(e=>"w-".concat(e))),A4={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},D4={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},L4={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},Ih={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const Rn="___FONT_AWESOME___",af=16,x1="fa",w1="svg-inline--fa",zr="data-fa-i2svg",sf="data-fa-pseudo-element",I4="data-fa-pseudo-element-pending",tp="data-prefix",np="data-icon",Fh="fontawesome-i2svg",F4="async",j4=["HTML","HEAD","STYLE","SCRIPT"],b1=(()=>{try{return!0}catch{return!1}})(),S1=[Ee,bt,St];function ba(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[Ee]}})}const E1={...g1};E1[Ee]={...g1[Ee],...Lh.kit,...Lh["kit-duotone"]};const Tr=ba(E1),lf={..._4};lf[Ee]={...lf[Ee],...Ih.kit,...Ih["kit-duotone"]};const fa=ba(lf),cf={...N4};cf[Ee]={...cf[Ee],...L4.kit};const Mr=ba(cf),uf={...R4};uf[Ee]={...uf[Ee],...D4.kit};const z4=ba(uf),U4=E4,C1="fa-layers-text",B4=C4,W4={...b4};ba(W4);const V4=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Bc=Pi,Wo=new Set;Object.keys(fa[Ee]).map(Wo.add.bind(Wo));Object.keys(fa[bt]).map(Wo.add.bind(Wo));Object.keys(fa[St]).map(Wo.add.bind(Wo));const H4=[...S4,...O4],Fi=ur.FontAwesomeConfig||{};function K4(e){var t=be.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function G4(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}be&&typeof be.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const o=G4(K4(n));o!=null&&(Fi[r]=o)});const P1={styleDefault:"solid",familyDefault:"classic",cssPrefix:x1,replacementClass:w1,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Fi.familyPrefix&&(Fi.cssPrefix=Fi.familyPrefix);const Vo={...P1,...Fi};Vo.autoReplaceSvg||(Vo.observeMutations=!1);const B={};Object.keys(P1).forEach(e=>{Object.defineProperty(B,e,{enumerable:!0,set:function(t){Vo[e]=t,ji.forEach(n=>n(B))},get:function(){return Vo[e]}})});Object.defineProperty(B,"familyPrefix",{enumerable:!0,set:function(e){Vo.cssPrefix=e,ji.forEach(t=>t(B))},get:function(){return Vo.cssPrefix}});ur.FontAwesomeConfig=B;const ji=[];function Y4(e){return ji.push(e),()=>{ji.splice(ji.indexOf(e),1)}}const jn=af,qt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function X4(e){if(!e||!Tn)return;const t=be.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=be.head.childNodes;let r=null;for(let o=n.length-1;o>-1;o--){const i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}return be.head.insertBefore(t,r),e}const Q4="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function da(){let e=12,t="";for(;e-- >0;)t+=Q4[Math.random()*62|0];return t}function ni(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function rp(e){return e.classList?ni(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function k1(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Z4(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(k1(e[n]),'" '),"").trim()}function Ul(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function op(e){return e.size!==qt.size||e.x!==qt.x||e.y!==qt.y||e.rotate!==qt.rotate||e.flipX||e.flipY}function J4(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(a," ").concat(s)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:c}}function q4(e){let{transform:t,width:n=af,height:r=af,startCentered:o=!1}=e,i="";return o&&h1?i+="translate(".concat(t.x/jn-n/2,"em, ").concat(t.y/jn-r/2,"em) "):o?i+="translate(calc(-50% + ".concat(t.x/jn,"em), calc(-50% + ").concat(t.y/jn,"em)) "):i+="translate(".concat(t.x/jn,"em, ").concat(t.y/jn,"em) "),i+="scale(".concat(t.size/jn*(t.flipX?-1:1),", ").concat(t.size/jn*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var eR=`:root, :host { +Defaulting to \`${af}\`.`}function f1(e){return x4.includes(e)}const d1=u1,fa=u.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>w.jsx(d1,{ref:o,decorative:n,orientation:t,className:he("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));fa.displayName=d1.displayName;const Ah=()=>{};let tp={},p1={},m1=null,h1={mark:Ah,measure:Ah};try{typeof window<"u"&&(tp=window),typeof document<"u"&&(p1=document),typeof MutationObserver<"u"&&(m1=MutationObserver),typeof performance<"u"&&(h1=performance)}catch{}const{userAgent:Dh=""}=tp.navigator||{},ur=tp,be=p1,Lh=m1,as=h1;ur.document;const Tn=!!be.documentElement&&!!be.head&&typeof be.addEventListener=="function"&&typeof be.createElement=="function",v1=~Dh.indexOf("MSIE")||~Dh.indexOf("Trident/");var Ee="classic",g1="duotone",bt="sharp",St="sharp-duotone",b4=[Ee,g1,bt,St],S4={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},Ih={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},E4=["kit"],C4=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,P4=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,k4={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},R4={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},$4={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},N4={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},_4={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},T4={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},y1={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},M4=["solid","regular","light","thin","duotone","brands"],x1=[1,2,3,4,5,6,7,8,9,10],O4=x1.concat([11,12,13,14,15,16,17,18,19,20]),Pi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},A4=[...Object.keys(N4),...M4,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Pi.GROUP,Pi.SWAP_OPACITY,Pi.PRIMARY,Pi.SECONDARY].concat(x1.map(e=>"".concat(e,"x"))).concat(O4.map(e=>"w-".concat(e))),D4={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},L4={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},I4={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},Fh={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const Rn="___FONT_AWESOME___",sf=16,w1="fa",b1="svg-inline--fa",zr="data-fa-i2svg",lf="data-fa-pseudo-element",F4="data-fa-pseudo-element-pending",np="data-prefix",rp="data-icon",jh="fontawesome-i2svg",j4="async",z4=["HTML","HEAD","STYLE","SCRIPT"],S1=(()=>{try{return!0}catch{return!1}})(),E1=[Ee,bt,St];function Sa(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[Ee]}})}const C1={...y1};C1[Ee]={...y1[Ee],...Ih.kit,...Ih["kit-duotone"]};const Tr=Sa(C1),cf={...T4};cf[Ee]={...cf[Ee],...Fh.kit,...Fh["kit-duotone"]};const da=Sa(cf),uf={..._4};uf[Ee]={...uf[Ee],...I4.kit};const Mr=Sa(uf),ff={...$4};ff[Ee]={...ff[Ee],...L4.kit};const U4=Sa(ff),B4=C4,P1="fa-layers-text",W4=P4,V4={...S4};Sa(V4);const H4=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Wc=Pi,Wo=new Set;Object.keys(da[Ee]).map(Wo.add.bind(Wo));Object.keys(da[bt]).map(Wo.add.bind(Wo));Object.keys(da[St]).map(Wo.add.bind(Wo));const K4=[...E4,...A4],ji=ur.FontAwesomeConfig||{};function G4(e){var t=be.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Y4(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}be&&typeof be.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const o=Y4(G4(n));o!=null&&(ji[r]=o)});const k1={styleDefault:"solid",familyDefault:"classic",cssPrefix:w1,replacementClass:b1,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ji.familyPrefix&&(ji.cssPrefix=ji.familyPrefix);const Vo={...k1,...ji};Vo.autoReplaceSvg||(Vo.observeMutations=!1);const B={};Object.keys(k1).forEach(e=>{Object.defineProperty(B,e,{enumerable:!0,set:function(t){Vo[e]=t,zi.forEach(n=>n(B))},get:function(){return Vo[e]}})});Object.defineProperty(B,"familyPrefix",{enumerable:!0,set:function(e){Vo.cssPrefix=e,zi.forEach(t=>t(B))},get:function(){return Vo.cssPrefix}});ur.FontAwesomeConfig=B;const zi=[];function X4(e){return zi.push(e),()=>{zi.splice(zi.indexOf(e),1)}}const jn=sf,qt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Q4(e){if(!e||!Tn)return;const t=be.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=be.head.childNodes;let r=null;for(let o=n.length-1;o>-1;o--){const i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}return be.head.insertBefore(t,r),e}const Z4="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function pa(){let e=12,t="";for(;e-- >0;)t+=Z4[Math.random()*62|0];return t}function ni(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function op(e){return e.classList?ni(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function R1(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function J4(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(R1(e[n]),'" '),"").trim()}function Bl(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function ip(e){return e.size!==qt.size||e.x!==qt.x||e.y!==qt.y||e.rotate!==qt.rotate||e.flipX||e.flipY}function q4(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(a," ").concat(s)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:c}}function eR(e){let{transform:t,width:n=sf,height:r=sf,startCentered:o=!1}=e,i="";return o&&v1?i+="translate(".concat(t.x/jn-n/2,"em, ").concat(t.y/jn-r/2,"em) "):o?i+="translate(calc(-50% + ".concat(t.x/jn,"em), calc(-50% + ").concat(t.y/jn,"em)) "):i+="translate(".concat(t.x/jn,"em, ").concat(t.y/jn,"em) "),i+="scale(".concat(t.size/jn*(t.flipX?-1:1),", ").concat(t.size/jn*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var tR=`:root, :host { --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"; --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free"; --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro"; @@ -712,19 +712,19 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { .fad.fa-inverse, .fa-duotone.fa-inverse { color: var(--fa-inverse, #fff); -}`;function R1(){const e=x1,t=w1,n=B.cssPrefix,r=B.replacementClass;let o=eR;if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}let jh=!1;function Wc(){B.autoAddCss&&!jh&&(X4(R1()),jh=!0)}var tR={mixout(){return{dom:{css:R1,insertCss:Wc}}},hooks(){return{beforeDOMElementCreation(){Wc()},beforeI2svg(){Wc()}}}};const $n=ur||{};$n[Rn]||($n[Rn]={});$n[Rn].styles||($n[Rn].styles={});$n[Rn].hooks||($n[Rn].hooks={});$n[Rn].shims||($n[Rn].shims=[]);var en=$n[Rn];const $1=[],N1=function(){be.removeEventListener("DOMContentLoaded",N1),ll=1,$1.map(e=>e())};let ll=!1;Tn&&(ll=(be.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(be.readyState),ll||be.addEventListener("DOMContentLoaded",N1));function nR(e){Tn&&(ll?setTimeout(e,0):$1.push(e))}function Sa(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?k1(e):"<".concat(t," ").concat(Z4(n),">").concat(r.map(Sa).join(""),"")}function zh(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Vc=function(t,n,r,o){var i=Object.keys(t),a=i.length,s=n,l,c,d;for(r===void 0?(l=1,d=t[i[0]]):(l=0,d=r);l=55296&&o<=56319&&n=55296&&r<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function Uh(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function df(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=Uh(t);typeof en.hooks.addPack=="function"&&!r?en.hooks.addPack(e,Uh(t)):en.styles[e]={...en.styles[e]||{},...o},e==="fas"&&df("fa",t)}const{styles:Er,shims:iR}=en,aR={[Ee]:Object.values(Mr[Ee]),[bt]:Object.values(Mr[bt]),[St]:Object.values(Mr[St])};let ip=null,_1={},T1={},M1={},O1={},A1={};const sR={[Ee]:Object.keys(Tr[Ee]),[bt]:Object.keys(Tr[bt]),[St]:Object.keys(Tr[St])};function lR(e){return~H4.indexOf(e)}function cR(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!lR(o)?o:null}const D1=()=>{const e=r=>Vc(Er,(o,i,a)=>(o[a]=Vc(i,r,{}),o),{});_1=e((r,o,i)=>(o[3]&&(r[o[3]]=i),o[2]&&o[2].filter(s=>typeof s=="number").forEach(s=>{r[s.toString(16)]=i}),r)),T1=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(s=>typeof s=="string").forEach(s=>{r[s]=i}),r)),A1=e((r,o,i)=>{const a=o[2];return r[i]=i,a.forEach(s=>{r[s]=i}),r});const t="far"in Er||B.autoFetchSvg,n=Vc(iR,(r,o)=>{const i=o[0];let a=o[1];const s=o[2];return a==="far"&&!t&&(a="fas"),typeof i=="string"&&(r.names[i]={prefix:a,iconName:s}),typeof i=="number"&&(r.unicodes[i.toString(16)]={prefix:a,iconName:s}),r},{names:{},unicodes:{}});M1=n.names,O1=n.unicodes,ip=Bl(B.styleDefault,{family:B.familyDefault})};Y4(e=>{ip=Bl(e.styleDefault,{family:B.familyDefault})});D1();function ap(e,t){return(_1[e]||{})[t]}function uR(e,t){return(T1[e]||{})[t]}function Qn(e,t){return(A1[e]||{})[t]}function L1(e){return M1[e]||{prefix:null,iconName:null}}function fR(e){const t=O1[e],n=ap("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function fr(){return ip}const sp=()=>({prefix:null,iconName:null,rest:[]});function Bl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=Ee}=t,r=Tr[n][e],o=fa[n][e]||fa[n][r],i=e in en.styles?e:null;return o||i||null}const dR={[Ee]:Object.keys(Mr[Ee]),[bt]:Object.keys(Mr[bt]),[St]:Object.keys(Mr[St])};function Wl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t,r={[Ee]:"".concat(B.cssPrefix,"-").concat(Ee),[bt]:"".concat(B.cssPrefix,"-").concat(bt),[St]:"".concat(B.cssPrefix,"-").concat(St)};let o=null,i=Ee;const a=w4.filter(l=>l!==v1);a.forEach(l=>{(e.includes(r[l])||e.some(c=>dR[l].includes(c)))&&(i=l)});const s=e.reduce((l,c)=>{const d=cR(B.cssPrefix,c);if(Er[c]?(c=aR[i].includes(c)?z4[i][c]:c,o=c,l.prefix=c):sR[i].indexOf(c)>-1?(o=c,l.prefix=Bl(c,{family:i})):d?l.iconName=d:c!==B.replacementClass&&!a.some(f=>c===r[f])&&l.rest.push(c),!n&&l.prefix&&l.iconName){const f=o==="fa"?L1(l.iconName):{},p=Qn(l.prefix,l.iconName);f.prefix&&(o=null),l.iconName=f.iconName||p||l.iconName,l.prefix=f.prefix||l.prefix,l.prefix==="far"&&!Er.far&&Er.fas&&!B.autoFetchSvg&&(l.prefix="fas")}return l},sp());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&i===bt&&(Er.fass||B.autoFetchSvg)&&(s.prefix="fass",s.iconName=Qn(s.prefix,s.iconName)||s.iconName),!s.prefix&&i===St&&(Er.fasds||B.autoFetchSvg)&&(s.prefix="fasds",s.iconName=Qn(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=fr()||"fas"),s}class pR{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r{this.definitions[i]={...this.definitions[i]||{},...o[i]},df(i,o[i]);const a=Mr[Ee][i];a&&df(a,o[i]),D1()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(o=>{const{prefix:i,iconName:a,icon:s}=r[o],l=s[2];t[i]||(t[i]={}),l.length>0&&l.forEach(c=>{typeof c=="string"&&(t[i][c]=s)}),t[i][a]=s}),t}}let Bh=[],wo={};const To={},mR=Object.keys(To);function hR(e,t){let{mixoutsTo:n}=t;return Bh=e,wo={},Object.keys(To).forEach(r=>{mR.indexOf(r)===-1&&delete To[r]}),Bh.forEach(r=>{const o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(i=>{typeof o[i]=="function"&&(n[i]=o[i]),typeof o[i]=="object"&&Object.keys(o[i]).forEach(a=>{n[i]||(n[i]={}),n[i][a]=o[i][a]})}),r.hooks){const i=r.hooks();Object.keys(i).forEach(a=>{wo[a]||(wo[a]=[]),wo[a].push(i[a])})}r.provides&&r.provides(To)}),n}function pf(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o{t=a.apply(null,[t,...r])}),t}function Ur(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{i.apply(null,n)})}function dr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return To[e]?To[e].apply(null,t):void 0}function mf(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||fr();if(t)return t=Qn(n,t)||t,zh(I1.definitions,n,t)||zh(en.styles,n,t)}const I1=new pR,vR=()=>{B.autoReplaceSvg=!1,B.observeMutations=!1,Ur("noAuto")},gR={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Tn?(Ur("beforeI2svg",e),dr("pseudoElements2svg",e),dr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;B.autoReplaceSvg===!1&&(B.autoReplaceSvg=!0),B.observeMutations=!0,nR(()=>{xR({autoReplaceSvgRoot:t}),Ur("watch",e)})}},yR={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Qn(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=Bl(e[0]);return{prefix:n,iconName:Qn(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(B.cssPrefix,"-"))>-1||e.match(U4))){const t=Wl(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||fr(),iconName:Qn(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=fr();return{prefix:t,iconName:Qn(t,e)||e}}}},Rt={noAuto:vR,config:B,dom:gR,parse:yR,library:I1,findIconDefinition:mf,toHtml:Sa},xR=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=be}=e;(Object.keys(en.styles).length>0||B.autoFetchSvg)&&Tn&&B.autoReplaceSvg&&Rt.dom.i2svg({node:t})};function Vl(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Sa(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Tn)return;const n=be.createElement("div");return n.innerHTML=e.html,n.children}}),e}function wR(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:a}=e;if(op(a)&&n.found&&!r.found){const{width:s,height:l}=n,c={x:s/l/2,y:.5};o.style=Ul({...i,"transform-origin":"".concat(c.x+a.x/16,"em ").concat(c.y+a.y/16,"em")})}return[{tag:"svg",attributes:o,children:t}]}function bR(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const a=i===!0?"".concat(t,"-").concat(B.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...o,id:a},children:r}]}]}function lp(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:a,title:s,maskId:l,titleId:c,extra:d,watchable:f=!1}=e,{width:p,height:h}=n.found?n:t,x=r==="fak",m=[B.replacementClass,o?"".concat(B.cssPrefix,"-").concat(o):""].filter(P=>d.classes.indexOf(P)===-1).filter(P=>P!==""||!!P).concat(d.classes).join(" ");let b={children:[],attributes:{...d.attributes,"data-prefix":r,"data-icon":o,class:m,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(h)}};const g=x&&!~d.classes.indexOf("fa-fw")?{width:"".concat(p/h*16*.0625,"em")}:{};f&&(b.attributes[zr]=""),s&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||da())},children:[s]}),delete b.attributes.title);const v={...b,prefix:r,iconName:o,main:t,mask:n,maskId:l,transform:i,symbol:a,styles:{...g,...d.styles}},{children:y,attributes:S}=n.found&&t.found?dr("generateAbstractMask",v)||{children:[],attributes:{}}:dr("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=y,v.attributes=S,a?bR(v):wR(v)}function Wh(e){const{content:t,width:n,height:r,transform:o,title:i,extra:a,watchable:s=!1}=e,l={...a.attributes,...i?{title:i}:{},class:a.classes.join(" ")};s&&(l[zr]="");const c={...a.styles};op(o)&&(c.transform=q4({transform:o,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const d=Ul(c);d.length>0&&(l.style=d);const f=[];return f.push({tag:"span",attributes:l,children:[t]}),i&&f.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),f}function SR(e){const{content:t,title:n,extra:r}=e,o={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},i=Ul(r.styles);i.length>0&&(o.style=i);const a=[];return a.push({tag:"span",attributes:o,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:Hc}=en;function hf(e){const t=e[0],n=e[1],[r]=e.slice(4);let o=null;return Array.isArray(r)?o={tag:"g",attributes:{class:"".concat(B.cssPrefix,"-").concat(Bc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(B.cssPrefix,"-").concat(Bc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(B.cssPrefix,"-").concat(Bc.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const ER={found:!1,width:512,height:512};function CR(e,t){!b1&&!B.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function vf(e,t){let n=t;return t==="fa"&&B.styleDefault!==null&&(t=fr()),new Promise((r,o)=>{if(n==="fa"){const i=L1(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Hc[t]&&Hc[t][e]){const i=Hc[t][e];return r(hf(i))}CR(e,t),r({...ER,icon:B.showMissingIcons&&e?dr("missingIconAbstract")||{}:{}})})}const Vh=()=>{},gf=B.measurePerformance&&is&&is.mark&&is.measure?is:{mark:Vh,measure:Vh},ki='FA "6.6.0"',PR=e=>(gf.mark("".concat(ki," ").concat(e," begins")),()=>F1(e)),F1=e=>{gf.mark("".concat(ki," ").concat(e," ends")),gf.measure("".concat(ki," ").concat(e),"".concat(ki," ").concat(e," begins"),"".concat(ki," ").concat(e," ends"))};var cp={begin:PR,end:F1};const Ps=()=>{};function Hh(e){return typeof(e.getAttribute?e.getAttribute(zr):null)=="string"}function kR(e){const t=e.getAttribute?e.getAttribute(tp):null,n=e.getAttribute?e.getAttribute(np):null;return t&&n}function RR(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(B.replacementClass)}function $R(){return B.autoReplaceSvg===!0?ks.replace:ks[B.autoReplaceSvg]||ks.replace}function NR(e){return be.createElementNS("http://www.w3.org/2000/svg",e)}function _R(e){return be.createElement(e)}function j1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?NR:_R}=t;if(typeof e=="string")return be.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(i){r.setAttribute(i,e.attributes[i])}),(e.children||[]).forEach(function(i){r.appendChild(j1(i,{ceFn:n}))}),r}function TR(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const ks={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(j1(n),t)}),t.getAttribute(zr)===null&&B.keepOriginalSource){let n=be.createComment(TR(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~rp(t).indexOf(B.replacementClass))return ks.replace(e);const r=new RegExp("".concat(B.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((a,s)=>(s===B.replacementClass||s.match(r)?a.toSvg.push(s):a.toNode.push(s),a),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}const o=n.map(i=>Sa(i)).join(` -`);t.setAttribute(zr,""),t.innerHTML=o}};function Kh(e){e()}function z1(e,t){const n=typeof t=="function"?t:Ps;if(e.length===0)n();else{let r=Kh;B.mutateApproach===F4&&(r=ur.requestAnimationFrame||Kh),r(()=>{const o=$R(),i=cp.begin("mutate");e.map(o),i(),n()})}}let up=!1;function U1(){up=!0}function yf(){up=!1}let cl=null;function Gh(e){if(!Dh||!B.observeMutations)return;const{treeCallback:t=Ps,nodeCallback:n=Ps,pseudoElementsCallback:r=Ps,observeMutationsRoot:o=be}=e;cl=new Dh(i=>{if(up)return;const a=fr();ni(i).forEach(s=>{if(s.type==="childList"&&s.addedNodes.length>0&&!Hh(s.addedNodes[0])&&(B.searchPseudoElements&&r(s.target),t(s.target)),s.type==="attributes"&&s.target.parentNode&&B.searchPseudoElements&&r(s.target.parentNode),s.type==="attributes"&&Hh(s.target)&&~V4.indexOf(s.attributeName))if(s.attributeName==="class"&&kR(s.target)){const{prefix:l,iconName:c}=Wl(rp(s.target));s.target.setAttribute(tp,l||a),c&&s.target.setAttribute(np,c)}else RR(s.target)&&n(s.target)})}),Tn&&cl.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function MR(){cl&&cl.disconnect()}function OR(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,o)=>{const i=o.split(":"),a=i[0],s=i.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function AR(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let o=Wl(rp(e));return o.prefix||(o.prefix=fr()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=uR(o.prefix,e.innerText)||ap(o.prefix,ff(e.innerText))),!o.iconName&&B.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function DR(e){const t=ni(e.attributes).reduce((o,i)=>(o.name!=="class"&&o.name!=="style"&&(o[i.name]=i.value),o),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return B.autoA11y&&(n?t["aria-labelledby"]="".concat(B.replacementClass,"-title-").concat(r||da()):(t["aria-hidden"]="true",t.focusable="false")),t}function LR(){return{iconName:null,title:null,titleId:null,prefix:null,transform:qt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Yh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=AR(e),i=DR(e),a=pf("parseNodeAttributes",{},e);let s=t.styleParser?OR(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:qt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:i},...a}}const{styles:IR}=en;function B1(e){const t=B.autoReplaceSvg==="nest"?Yh(e,{styleParser:!1}):Yh(e);return~t.extra.classes.indexOf(C1)?dr("generateLayersText",e,t):dr("generateSvgReplacementMutation",e,t)}let sn=new Set;S1.map(e=>{sn.add("fa-".concat(e))});Object.keys(Tr[Ee]).map(sn.add.bind(sn));Object.keys(Tr[bt]).map(sn.add.bind(sn));Object.keys(Tr[St]).map(sn.add.bind(sn));sn=[...sn];function Xh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Tn)return Promise.resolve();const n=be.documentElement.classList,r=d=>n.add("".concat(Fh,"-").concat(d)),o=d=>n.remove("".concat(Fh,"-").concat(d)),i=B.autoFetchSvg?sn:S1.map(d=>"fa-".concat(d)).concat(Object.keys(IR));i.includes("fa")||i.push("fa");const a=[".".concat(C1,":not([").concat(zr,"])")].concat(i.map(d=>".".concat(d,":not([").concat(zr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let s=[];try{s=ni(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),o("complete");else return Promise.resolve();const l=cp.begin("onTree"),c=s.reduce((d,f)=>{try{const p=B1(f);p&&d.push(p)}catch(p){b1||p.name==="MissingIcon"&&console.error(p)}return d},[]);return new Promise((d,f)=>{Promise.all(c).then(p=>{z1(p,()=>{r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),l(),d()})}).catch(p=>{l(),f(p)})})}function FR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;B1(e).then(n=>{n&&z1([n],t)})}function jR(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:mf(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:mf(o||{})),e(r,{...n,mask:o})}}const zR=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=qt,symbol:r=!1,mask:o=null,maskId:i=null,title:a=null,titleId:s=null,classes:l=[],attributes:c={},styles:d={}}=t;if(!e)return;const{prefix:f,iconName:p,icon:h}=e;return Vl({type:"icon",...e},()=>(Ur("beforeDOMElementCreation",{iconDefinition:e,params:t}),B.autoA11y&&(a?c["aria-labelledby"]="".concat(B.replacementClass,"-title-").concat(s||da()):(c["aria-hidden"]="true",c.focusable="false")),lp({icons:{main:hf(h),mask:o?hf(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:f,iconName:p,transform:{...qt,...n},symbol:r,title:a,maskId:i,titleId:s,extra:{attributes:c,styles:d,classes:l}})))};var UR={mixout(){return{icon:jR(zR)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Xh,e.nodeCallback=FR,e}}},provides(e){e.i2svg=function(t){const{node:n=be,callback:r=()=>{}}=t;return Xh(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:o,titleId:i,prefix:a,transform:s,symbol:l,mask:c,maskId:d,extra:f}=n;return new Promise((p,h)=>{Promise.all([vf(r,a),c.iconName?vf(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(x=>{let[m,b]=x;p([t,lp({icons:{main:m,mask:b},prefix:a,iconName:r,transform:s,symbol:l,maskId:d,title:o,titleId:i,extra:f,watchable:!0})])}).catch(h)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:o,transform:i,styles:a}=t;const s=Ul(a);s.length>0&&(r.style=s);let l;return op(i)&&(l=dr("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(l||o.icon),{children:n,attributes:r}}}},BR={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return Vl({type:"layer"},()=>{Ur("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(o=>{Array.isArray(o)?o.map(i=>{r=r.concat(i.abstract)}):r=r.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(B.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},WR={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:i={}}=t;return Vl({type:"counter",content:e},()=>(Ur("beforeDOMElementCreation",{content:e,params:t}),SR({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(B.cssPrefix,"-layers-counter"),...r]}})))}}}},VR={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=qt,title:r=null,classes:o=[],attributes:i={},styles:a={}}=t;return Vl({type:"text",content:e},()=>(Ur("beforeDOMElementCreation",{content:e,params:t}),Wh({content:e,transform:{...qt,...n},title:r,extra:{attributes:i,styles:a,classes:["".concat(B.cssPrefix,"-layers-text"),...o]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:o,extra:i}=n;let a=null,s=null;if(h1){const l=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();a=c.width/l,s=c.height/l}return B.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([t,Wh({content:t.innerHTML,width:a,height:s,transform:o,title:r,extra:i,watchable:!0})])}}};const HR=new RegExp('"',"ug"),Qh=[1105920,1112319],Zh={FontAwesome:{normal:"fas",400:"fas"},...k4,...P4,...A4},xf=Object.keys(Zh).reduce((e,t)=>(e[t.toLowerCase()]=Zh[t],e),{}),KR=Object.keys(xf).reduce((e,t)=>{const n=xf[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function GR(e){const t=e.replace(HR,""),n=oR(t,0),r=n>=Qh[0]&&n<=Qh[1],o=t.length===2?t[0]===t[1]:!1;return{value:ff(o?t[0]:t),isSecondary:r||o}}function YR(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(xf[n]||{})[o]||KR[n]}function Jh(e,t){const n="".concat(I4).concat(t.replace(":","-"));return new Promise((r,o)=>{if(e.getAttribute(n)!==null)return r();const a=ni(e.children).filter(p=>p.getAttribute(sf)===t)[0],s=ur.getComputedStyle(e,t),l=s.getPropertyValue("font-family"),c=l.match(B4),d=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!c)return e.removeChild(a),r();if(c&&f!=="none"&&f!==""){const p=s.getPropertyValue("content");let h=YR(l,d);const{value:x,isSecondary:m}=GR(p),b=c[0].startsWith("FontAwesome");let g=ap(h,x),v=g;if(b){const y=fR(x);y.iconName&&y.prefix&&(g=y.iconName,h=y.prefix)}if(g&&!m&&(!a||a.getAttribute(tp)!==h||a.getAttribute(np)!==v)){e.setAttribute(n,v),a&&e.removeChild(a);const y=LR(),{extra:S}=y;S.attributes[sf]=t,vf(g,h).then(P=>{const N=lp({...y,icons:{main:P,mask:sp()},prefix:h,iconName:v,extra:S,watchable:!0}),R=be.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(R,e.firstChild):e.appendChild(R),R.outerHTML=N.map(E=>Sa(E)).join(` -`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function XR(e){return Promise.all([Jh(e,"::before"),Jh(e,"::after")])}function QR(e){return e.parentNode!==document.head&&!~j4.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(sf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function qh(e){if(Tn)return new Promise((t,n)=>{const r=ni(e.querySelectorAll("*")).filter(QR).map(XR),o=cp.begin("searchPseudoElements");U1(),Promise.all(r).then(()=>{o(),yf(),t()}).catch(()=>{o(),yf(),n()})})}var ZR={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=qh,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=be}=t;B.searchPseudoElements&&qh(n)}}};let ev=!1;var JR={mixout(){return{dom:{unwatch(){U1(),ev=!0}}}},hooks(){return{bootstrap(){Gh(pf("mutationObserverCallbacks",{}))},noAuto(){MR()},watch(e){const{observeMutationsRoot:t}=e;ev?yf():Gh(pf("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const tv=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const o=r.toLowerCase().split("-"),i=o[0];let a=o.slice(1).join("-");if(i&&a==="h")return n.flipX=!0,n;if(i&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(i){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var qR={mixout(){return{parse:{transform:e=>tv(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=tv(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:o,iconWidth:i}=t;const a={transform:"translate(".concat(o/2," 256)")},s="translate(".concat(r.x*32,", ").concat(r.y*32,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),d={transform:"".concat(s," ").concat(l," ").concat(c)},f={transform:"translate(".concat(i/2*-1," -256)")},p={outer:a,inner:d,path:f};return{tag:"g",attributes:{...p.outer},children:[{tag:"g",attributes:{...p.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...p.path}}]}]}}}};const Kc={x:0,y:0,width:"100%",height:"100%"};function nv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function e6(e){return e.tag==="g"?e.children:[e]}var t6={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Wl(n.split(" ").map(o=>o.trim())):sp();return r.prefix||(r.prefix=fr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:o,mask:i,maskId:a,transform:s}=t;const{width:l,icon:c}=o,{width:d,icon:f}=i,p=J4({transform:s,containerWidth:d,iconWidth:l}),h={tag:"rect",attributes:{...Kc,fill:"white"}},x=c.children?{children:c.children.map(nv)}:{},m={tag:"g",attributes:{...p.inner},children:[nv({tag:c.tag,attributes:{...c.attributes,...p.path},...x})]},b={tag:"g",attributes:{...p.outer},children:[m]},g="mask-".concat(a||da()),v="clip-".concat(a||da()),y={tag:"mask",attributes:{...Kc,id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[h,b]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:e6(f)},y]};return n.push(S,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(g,")"),...Kc}}),{children:n,attributes:r}}}},n6={provides(e){let t=!1;ur.matchMedia&&(t=ur.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:{...r,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const i={...o,attributeName:"opacity"},a={tag:"circle",attributes:{...r,cx:"256",cy:"364",r:"28"},children:[]};return t||a.children.push({tag:"animate",attributes:{...o,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...i,values:"1;0;1;1;0;1;"}}),n.push(a),n.push({tag:"path",attributes:{...r,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...i,values:"1;0;0;0;0;1;"}}]}),t||n.push({tag:"path",attributes:{...r,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...i,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},r6={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},o6=[tR,UR,BR,WR,VR,ZR,JR,qR,t6,n6,r6];hR(o6,{mixoutsTo:Rt});Rt.noAuto;Rt.config;Rt.library;Rt.dom;const wf=Rt.parse;Rt.findIconDefinition;Rt.toHtml;const i6=Rt.icon;Rt.layer;Rt.text;Rt.counter;var W1={exports:{}},a6="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",s6=a6,l6=s6;function V1(){}function H1(){}H1.resetWarningCache=V1;var c6=function(){function e(r,o,i,a,s,l){if(l!==l6){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:H1,resetWarningCache:V1};return n.PropTypes=n,n};W1.exports=c6();var u6=W1.exports;const oe=Mf(u6);function rv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function d6(e,t){if(e==null)return{};var n=f6(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bf(e){return p6(e)||m6(e)||h6(e)||v6()}function p6(e){if(Array.isArray(e))return Sf(e)}function m6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function h6(e,t){if(e){if(typeof e=="string")return Sf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sf(e,t)}}function Sf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return G1(e,l)}),o=Object.keys(t.attributes||{}).reduce(function(l,c){var d=t.attributes[c];switch(c){case"class":l.attrs.className=d,delete t.attributes.class;break;case"style":l.attrs.style=b6(d);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=d:l.attrs[K1(c)]=d}return l},{attrs:{}}),i=n.style,a=i===void 0?{}:i,s=d6(n,x6);return o.attrs.style=Qt(Qt({},o.attrs.style),a),e.apply(void 0,[t.tag,Qt(Qt({},o.attrs),s)].concat(bf(r)))}var Y1=!1;try{Y1=!0}catch{}function S6(){if(!Y1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function ov(e){if(e&&ul(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(wf.icon)return wf.icon(e);if(e===null)return null;if(e&&ul(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Gc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?bo({},e,t):{}}var iv={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},yt=Oe.forwardRef(function(e,t){var n=Qt(Qt({},iv),e),r=n.icon,o=n.mask,i=n.symbol,a=n.className,s=n.title,l=n.titleId,c=n.maskId,d=ov(r),f=Gc("classes",[].concat(bf(g6(n)),bf((a||"").split(" ")))),p=Gc("transform",typeof n.transform=="string"?wf.transform(n.transform):n.transform),h=Gc("mask",ov(o)),x=i6(d,Qt(Qt(Qt(Qt({},f),p),h),{},{symbol:i,title:s,titleId:l,maskId:c}));if(!x)return S6("Could not find icon",d),null;var m=x.abstract,b={ref:t};return Object.keys(n).forEach(function(g){iv.hasOwnProperty(g)||(b[g]=n[g])}),E6(m[0],b)});yt.displayName="FontAwesomeIcon";yt.propTypes={beat:oe.bool,border:oe.bool,beatFade:oe.bool,bounce:oe.bool,className:oe.string,fade:oe.bool,flash:oe.bool,mask:oe.oneOfType([oe.object,oe.array,oe.string]),maskId:oe.string,fixedWidth:oe.bool,inverse:oe.bool,flip:oe.oneOf([!0,!1,"horizontal","vertical","both"]),icon:oe.oneOfType([oe.object,oe.array,oe.string]),listItem:oe.bool,pull:oe.oneOf(["right","left"]),pulse:oe.bool,rotation:oe.oneOf([0,90,180,270]),shake:oe.bool,size:oe.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:oe.bool,spinPulse:oe.bool,spinReverse:oe.bool,symbol:oe.oneOfType([oe.bool,oe.string]),title:oe.string,titleId:oe.string,transform:oe.oneOfType([oe.string,oe.object]),swapOpacity:oe.bool};var E6=G1.bind(null,Oe.createElement);const C6={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]};function Ef({variant:e}){return w.jsx("a",{href:"https://github.com/marinoffDev/Focus-Fox/",target:"_blank",children:w.jsxs(tt,{variant:e,children:[w.jsx(yt,{icon:C6,size:"xl",className:"mr-2"}),"Star on GitHub"]})})}function ir(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function P6(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function X1(...e){return t=>e.forEach(n=>P6(n,t))}function Zr(...e){return u.useCallback(X1(...e),e)}function k6(e,t){const n=u.createContext(t);function r(i){const{children:a,...s}=i,l=u.useMemo(()=>s,Object.values(s));return w.jsx(n.Provider,{value:l,children:a})}function o(i){const a=u.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function R6(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:h,...x}=f,m=(p==null?void 0:p[e][l])||s,b=u.useMemo(()=>x,Object.values(x));return w.jsx(m.Provider,{value:b,children:h})}function d(f,p){const h=(p==null?void 0:p[e][l])||s,x=u.useContext(h);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}const o=()=>{const i=n.map(a=>u.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,$6(o,...t)]}function $6(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var fl=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},N6=If.useId||(()=>{}),_6=0;function Yc(e){const[t,n]=u.useState(N6());return fl(()=>{e||n(r=>r??String(_6++))},[e]),e||(t?`radix-${t}`:"")}function Br(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function T6({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=M6({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=Br(n),l=u.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[i,e,o,s]);return[a,l]}function M6({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=Br(t);return u.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var fp=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(A6);if(i){const a=i.props.children,s=o.map(l=>l===i?u.Children.count(a)>1?u.Children.only(null):u.isValidElement(a)?a.props.children:null:l);return w.jsx(Cf,{...r,ref:t,children:u.isValidElement(a)?u.cloneElement(a,void 0,s):null})}return w.jsx(Cf,{...r,ref:t,children:n})});fp.displayName="Slot";var Cf=u.forwardRef((e,t)=>{const{children:n,...r}=e;if(u.isValidElement(n)){const o=L6(n);return u.cloneElement(n,{...D6(r,n.props),ref:t?X1(t,o):o})}return u.Children.count(n)>1?u.Children.only(null):null});Cf.displayName="SlotClone";var O6=({children:e})=>w.jsx(w.Fragment,{children:e});function A6(e){return u.isValidElement(e)&&e.type===O6}function D6(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function L6(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var I6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Mn=I6.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?fp:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(s,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function F6(e,t){e&&vr.flushSync(()=>e.dispatchEvent(t))}function j6(e,t=globalThis==null?void 0:globalThis.document){const n=Br(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var z6="DismissableLayer",Pf="dismissableLayer.update",U6="dismissableLayer.pointerDownOutside",B6="dismissableLayer.focusOutside",av,Q1=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Z1=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=u.useContext(Q1),[d,f]=u.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=u.useState({}),x=Zr(t,R=>f(R)),m=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(b),v=d?m.indexOf(d):-1,y=c.layersWithOutsidePointerEventsDisabled.size>0,S=v>=g,P=H6(R=>{const E=R.target,O=[...c.branches].some(T=>T.contains(E));!S||O||(o==null||o(R),a==null||a(R),R.defaultPrevented||s==null||s())},p),N=K6(R=>{const E=R.target;[...c.branches].some(T=>T.contains(E))||(i==null||i(R),a==null||a(R),R.defaultPrevented||s==null||s())},p);return j6(R=>{v===c.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},p),u.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(av=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),sv(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=av)}},[d,p,n,c]),u.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),sv())},[d,c]),u.useEffect(()=>{const R=()=>h({});return document.addEventListener(Pf,R),()=>document.removeEventListener(Pf,R)},[]),w.jsx(Mn.div,{...l,ref:x,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:ir(e.onFocusCapture,N.onFocusCapture),onBlurCapture:ir(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:ir(e.onPointerDownCapture,P.onPointerDownCapture)})});Z1.displayName=z6;var W6="DismissableLayerBranch",V6=u.forwardRef((e,t)=>{const n=u.useContext(Q1),r=u.useRef(null),o=Zr(t,r);return u.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(Mn.div,{...e,ref:o})});V6.displayName=W6;function H6(e,t=globalThis==null?void 0:globalThis.document){const n=Br(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){J1(U6,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function K6(e,t=globalThis==null?void 0:globalThis.document){const n=Br(e),r=u.useRef(!1);return u.useEffect(()=>{const o=i=>{i.target&&!r.current&&J1(B6,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function sv(){const e=new CustomEvent(Pf);document.dispatchEvent(e)}function J1(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?F6(o,i):o.dispatchEvent(i)}var Xc="focusScope.autoFocusOnMount",Qc="focusScope.autoFocusOnUnmount",lv={bubbles:!1,cancelable:!0},G6="FocusScope",q1=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=u.useState(null),c=Br(o),d=Br(i),f=u.useRef(null),p=Zr(t,m=>l(m)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let m=function(y){if(h.paused||!s)return;const S=y.target;s.contains(S)?f.current=S:Bn(f.current,{select:!0})},b=function(y){if(h.paused||!s)return;const S=y.relatedTarget;S!==null&&(s.contains(S)||Bn(f.current,{select:!0}))},g=function(y){if(document.activeElement===document.body)for(const P of y)P.removedNodes.length>0&&Bn(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const v=new MutationObserver(g);return s&&v.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),v.disconnect()}}},[r,s,h.paused]),u.useEffect(()=>{if(s){uv.add(h);const m=document.activeElement;if(!s.contains(m)){const g=new CustomEvent(Xc,lv);s.addEventListener(Xc,c),s.dispatchEvent(g),g.defaultPrevented||(Y6(q6(ex(s)),{select:!0}),document.activeElement===m&&Bn(s))}return()=>{s.removeEventListener(Xc,c),setTimeout(()=>{const g=new CustomEvent(Qc,lv);s.addEventListener(Qc,d),s.dispatchEvent(g),g.defaultPrevented||Bn(m??document.body,{select:!0}),s.removeEventListener(Qc,d),uv.remove(h)},0)}}},[s,c,d,h]);const x=u.useCallback(m=>{if(!n&&!r||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,g=document.activeElement;if(b&&g){const v=m.currentTarget,[y,S]=X6(v);y&&S?!m.shiftKey&&g===S?(m.preventDefault(),n&&Bn(y,{select:!0})):m.shiftKey&&g===y&&(m.preventDefault(),n&&Bn(S,{select:!0})):g===v&&m.preventDefault()}},[n,r,h.paused]);return w.jsx(Mn.div,{tabIndex:-1,...a,ref:p,onKeyDown:x})});q1.displayName=G6;function Y6(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Bn(r,{select:t}),document.activeElement!==n)return}function X6(e){const t=ex(e),n=cv(t,e),r=cv(t.reverse(),e);return[n,r]}function ex(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function cv(e,t){for(const n of e)if(!Q6(n,{upTo:t}))return n}function Q6(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Z6(e){return e instanceof HTMLInputElement&&"select"in e}function Bn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Z6(e)&&t&&e.select()}}var uv=J6();function J6(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=fv(e,t),e.unshift(t)},remove(t){var n;e=fv(e,t),(n=e[0])==null||n.resume()}}}function fv(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function q6(e){return e.filter(t=>t.tagName!=="A")}var e$="Portal",tx=u.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=u.useState(!1);fl(()=>i(!0),[]);const a=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?$d.createPortal(w.jsx(Mn.div,{...r,ref:t}),a):null});tx.displayName=e$;function t$(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Hl=e=>{const{present:t,children:n}=e,r=n$(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),i=Zr(r.ref,r$(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:i}):null};Hl.displayName="Presence";function n$(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),i=u.useRef("none"),a=e?"mounted":"unmounted",[s,l]=t$(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=as(r.current);i.current=s==="mounted"?c:"none"},[s]),fl(()=>{const c=r.current,d=o.current;if(d!==e){const p=i.current,h=as(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),fl(()=>{if(t){const c=f=>{const h=as(r.current).includes(f.animationName);f.target===t&&h&&vr.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=as(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function as(e){return(e==null?void 0:e.animationName)||"none"}function r$(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zc=0;function o$(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dv()),document.body.insertAdjacentElement("beforeend",e[1]??dv()),Zc++,()=>{Zc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Zc--}},[])}function dv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var nx=_y(),Jc=function(){},Kl=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Jc,onWheelCapture:Jc,onTouchMoveCapture:Jc}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,x=e.inert,m=e.allowPinchZoom,b=e.as,g=b===void 0?"div":b,v=e.gapMode,y=Gd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,P=Ny([n,t]),N=et(et({},y),o);return u.createElement(u.Fragment,null,d&&u.createElement(S,{sideCar:nx,removeScrollBar:c,shards:f,noIsolation:h,inert:x,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:v}),a?u.cloneElement(u.Children.only(s),et(et({},N),{ref:P})):u.createElement(g,et({},N,{className:l,ref:P}),s))});Kl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Kl.classNames={fullWidth:Ii,zeroRight:Li};var kf=!1;if(typeof window<"u")try{var ss=Object.defineProperty({},"passive",{get:function(){return kf=!0,!0}});window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{kf=!1}var oo=kf?{passive:!1}:!1,i$=function(e){return e.tagName==="TEXTAREA"},rx=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!i$(e)&&n[t]==="visible")},a$=function(e){return rx(e,"overflowY")},s$=function(e){return rx(e,"overflowX")},pv=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ox(e,r);if(o){var i=ix(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},l$=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},c$=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ox=function(e,t){return e==="v"?a$(t):s$(t)},ix=function(e,t){return e==="v"?l$(t):c$(t)},u$=function(e,t){return e==="h"&&t==="rtl"?-1:1},f$=function(e,t,n,r,o){var i=u$(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,d=a>0,f=0,p=0;do{var h=ix(e,s),x=h[0],m=h[1],b=h[2],g=m-b-i*x;(x||g)&&ox(e,s)&&(f+=g,p+=x),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(Math.abs(f)<1||!o)||!d&&(Math.abs(p)<1||!o))&&(c=!0),c},ls=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mv=function(e){return[e.deltaX,e.deltaY]},hv=function(e){return e&&"current"in e?e.current:e},d$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},p$=function(e){return` +}`;function $1(){const e=w1,t=b1,n=B.cssPrefix,r=B.replacementClass;let o=tR;if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}let zh=!1;function Vc(){B.autoAddCss&&!zh&&(Q4($1()),zh=!0)}var nR={mixout(){return{dom:{css:$1,insertCss:Vc}}},hooks(){return{beforeDOMElementCreation(){Vc()},beforeI2svg(){Vc()}}}};const $n=ur||{};$n[Rn]||($n[Rn]={});$n[Rn].styles||($n[Rn].styles={});$n[Rn].hooks||($n[Rn].hooks={});$n[Rn].shims||($n[Rn].shims=[]);var en=$n[Rn];const N1=[],_1=function(){be.removeEventListener("DOMContentLoaded",_1),cl=1,N1.map(e=>e())};let cl=!1;Tn&&(cl=(be.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(be.readyState),cl||be.addEventListener("DOMContentLoaded",_1));function rR(e){Tn&&(cl?setTimeout(e,0):N1.push(e))}function Ea(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?R1(e):"<".concat(t," ").concat(J4(n),">").concat(r.map(Ea).join(""),"")}function Uh(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Hc=function(t,n,r,o){var i=Object.keys(t),a=i.length,s=n,l,c,d;for(r===void 0?(l=1,d=t[i[0]]):(l=0,d=r);l=55296&&o<=56319&&n=55296&&r<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function Bh(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function pf(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=Bh(t);typeof en.hooks.addPack=="function"&&!r?en.hooks.addPack(e,Bh(t)):en.styles[e]={...en.styles[e]||{},...o},e==="fas"&&pf("fa",t)}const{styles:Er,shims:aR}=en,sR={[Ee]:Object.values(Mr[Ee]),[bt]:Object.values(Mr[bt]),[St]:Object.values(Mr[St])};let ap=null,T1={},M1={},O1={},A1={},D1={};const lR={[Ee]:Object.keys(Tr[Ee]),[bt]:Object.keys(Tr[bt]),[St]:Object.keys(Tr[St])};function cR(e){return~K4.indexOf(e)}function uR(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!cR(o)?o:null}const L1=()=>{const e=r=>Hc(Er,(o,i,a)=>(o[a]=Hc(i,r,{}),o),{});T1=e((r,o,i)=>(o[3]&&(r[o[3]]=i),o[2]&&o[2].filter(s=>typeof s=="number").forEach(s=>{r[s.toString(16)]=i}),r)),M1=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(s=>typeof s=="string").forEach(s=>{r[s]=i}),r)),D1=e((r,o,i)=>{const a=o[2];return r[i]=i,a.forEach(s=>{r[s]=i}),r});const t="far"in Er||B.autoFetchSvg,n=Hc(aR,(r,o)=>{const i=o[0];let a=o[1];const s=o[2];return a==="far"&&!t&&(a="fas"),typeof i=="string"&&(r.names[i]={prefix:a,iconName:s}),typeof i=="number"&&(r.unicodes[i.toString(16)]={prefix:a,iconName:s}),r},{names:{},unicodes:{}});O1=n.names,A1=n.unicodes,ap=Wl(B.styleDefault,{family:B.familyDefault})};X4(e=>{ap=Wl(e.styleDefault,{family:B.familyDefault})});L1();function sp(e,t){return(T1[e]||{})[t]}function fR(e,t){return(M1[e]||{})[t]}function Qn(e,t){return(D1[e]||{})[t]}function I1(e){return O1[e]||{prefix:null,iconName:null}}function dR(e){const t=A1[e],n=sp("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function fr(){return ap}const lp=()=>({prefix:null,iconName:null,rest:[]});function Wl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=Ee}=t,r=Tr[n][e],o=da[n][e]||da[n][r],i=e in en.styles?e:null;return o||i||null}const pR={[Ee]:Object.keys(Mr[Ee]),[bt]:Object.keys(Mr[bt]),[St]:Object.keys(Mr[St])};function Vl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t,r={[Ee]:"".concat(B.cssPrefix,"-").concat(Ee),[bt]:"".concat(B.cssPrefix,"-").concat(bt),[St]:"".concat(B.cssPrefix,"-").concat(St)};let o=null,i=Ee;const a=b4.filter(l=>l!==g1);a.forEach(l=>{(e.includes(r[l])||e.some(c=>pR[l].includes(c)))&&(i=l)});const s=e.reduce((l,c)=>{const d=uR(B.cssPrefix,c);if(Er[c]?(c=sR[i].includes(c)?U4[i][c]:c,o=c,l.prefix=c):lR[i].indexOf(c)>-1?(o=c,l.prefix=Wl(c,{family:i})):d?l.iconName=d:c!==B.replacementClass&&!a.some(f=>c===r[f])&&l.rest.push(c),!n&&l.prefix&&l.iconName){const f=o==="fa"?I1(l.iconName):{},p=Qn(l.prefix,l.iconName);f.prefix&&(o=null),l.iconName=f.iconName||p||l.iconName,l.prefix=f.prefix||l.prefix,l.prefix==="far"&&!Er.far&&Er.fas&&!B.autoFetchSvg&&(l.prefix="fas")}return l},lp());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&i===bt&&(Er.fass||B.autoFetchSvg)&&(s.prefix="fass",s.iconName=Qn(s.prefix,s.iconName)||s.iconName),!s.prefix&&i===St&&(Er.fasds||B.autoFetchSvg)&&(s.prefix="fasds",s.iconName=Qn(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=fr()||"fas"),s}class mR{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r{this.definitions[i]={...this.definitions[i]||{},...o[i]},pf(i,o[i]);const a=Mr[Ee][i];a&&pf(a,o[i]),L1()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(o=>{const{prefix:i,iconName:a,icon:s}=r[o],l=s[2];t[i]||(t[i]={}),l.length>0&&l.forEach(c=>{typeof c=="string"&&(t[i][c]=s)}),t[i][a]=s}),t}}let Wh=[],wo={};const To={},hR=Object.keys(To);function vR(e,t){let{mixoutsTo:n}=t;return Wh=e,wo={},Object.keys(To).forEach(r=>{hR.indexOf(r)===-1&&delete To[r]}),Wh.forEach(r=>{const o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(i=>{typeof o[i]=="function"&&(n[i]=o[i]),typeof o[i]=="object"&&Object.keys(o[i]).forEach(a=>{n[i]||(n[i]={}),n[i][a]=o[i][a]})}),r.hooks){const i=r.hooks();Object.keys(i).forEach(a=>{wo[a]||(wo[a]=[]),wo[a].push(i[a])})}r.provides&&r.provides(To)}),n}function mf(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o{t=a.apply(null,[t,...r])}),t}function Ur(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{i.apply(null,n)})}function dr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return To[e]?To[e].apply(null,t):void 0}function hf(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||fr();if(t)return t=Qn(n,t)||t,Uh(F1.definitions,n,t)||Uh(en.styles,n,t)}const F1=new mR,gR=()=>{B.autoReplaceSvg=!1,B.observeMutations=!1,Ur("noAuto")},yR={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Tn?(Ur("beforeI2svg",e),dr("pseudoElements2svg",e),dr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;B.autoReplaceSvg===!1&&(B.autoReplaceSvg=!0),B.observeMutations=!0,rR(()=>{wR({autoReplaceSvgRoot:t}),Ur("watch",e)})}},xR={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Qn(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=Wl(e[0]);return{prefix:n,iconName:Qn(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(B.cssPrefix,"-"))>-1||e.match(B4))){const t=Vl(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||fr(),iconName:Qn(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=fr();return{prefix:t,iconName:Qn(t,e)||e}}}},Rt={noAuto:gR,config:B,dom:yR,parse:xR,library:F1,findIconDefinition:hf,toHtml:Ea},wR=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=be}=e;(Object.keys(en.styles).length>0||B.autoFetchSvg)&&Tn&&B.autoReplaceSvg&&Rt.dom.i2svg({node:t})};function Hl(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Ea(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Tn)return;const n=be.createElement("div");return n.innerHTML=e.html,n.children}}),e}function bR(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:a}=e;if(ip(a)&&n.found&&!r.found){const{width:s,height:l}=n,c={x:s/l/2,y:.5};o.style=Bl({...i,"transform-origin":"".concat(c.x+a.x/16,"em ").concat(c.y+a.y/16,"em")})}return[{tag:"svg",attributes:o,children:t}]}function SR(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const a=i===!0?"".concat(t,"-").concat(B.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...o,id:a},children:r}]}]}function cp(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:a,title:s,maskId:l,titleId:c,extra:d,watchable:f=!1}=e,{width:p,height:h}=n.found?n:t,x=r==="fak",m=[B.replacementClass,o?"".concat(B.cssPrefix,"-").concat(o):""].filter(P=>d.classes.indexOf(P)===-1).filter(P=>P!==""||!!P).concat(d.classes).join(" ");let b={children:[],attributes:{...d.attributes,"data-prefix":r,"data-icon":o,class:m,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(h)}};const g=x&&!~d.classes.indexOf("fa-fw")?{width:"".concat(p/h*16*.0625,"em")}:{};f&&(b.attributes[zr]=""),s&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||pa())},children:[s]}),delete b.attributes.title);const v={...b,prefix:r,iconName:o,main:t,mask:n,maskId:l,transform:i,symbol:a,styles:{...g,...d.styles}},{children:y,attributes:S}=n.found&&t.found?dr("generateAbstractMask",v)||{children:[],attributes:{}}:dr("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=y,v.attributes=S,a?SR(v):bR(v)}function Vh(e){const{content:t,width:n,height:r,transform:o,title:i,extra:a,watchable:s=!1}=e,l={...a.attributes,...i?{title:i}:{},class:a.classes.join(" ")};s&&(l[zr]="");const c={...a.styles};ip(o)&&(c.transform=eR({transform:o,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const d=Bl(c);d.length>0&&(l.style=d);const f=[];return f.push({tag:"span",attributes:l,children:[t]}),i&&f.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),f}function ER(e){const{content:t,title:n,extra:r}=e,o={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},i=Bl(r.styles);i.length>0&&(o.style=i);const a=[];return a.push({tag:"span",attributes:o,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:Kc}=en;function vf(e){const t=e[0],n=e[1],[r]=e.slice(4);let o=null;return Array.isArray(r)?o={tag:"g",attributes:{class:"".concat(B.cssPrefix,"-").concat(Wc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(B.cssPrefix,"-").concat(Wc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(B.cssPrefix,"-").concat(Wc.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const CR={found:!1,width:512,height:512};function PR(e,t){!S1&&!B.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function gf(e,t){let n=t;return t==="fa"&&B.styleDefault!==null&&(t=fr()),new Promise((r,o)=>{if(n==="fa"){const i=I1(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Kc[t]&&Kc[t][e]){const i=Kc[t][e];return r(vf(i))}PR(e,t),r({...CR,icon:B.showMissingIcons&&e?dr("missingIconAbstract")||{}:{}})})}const Hh=()=>{},yf=B.measurePerformance&&as&&as.mark&&as.measure?as:{mark:Hh,measure:Hh},ki='FA "6.6.0"',kR=e=>(yf.mark("".concat(ki," ").concat(e," begins")),()=>j1(e)),j1=e=>{yf.mark("".concat(ki," ").concat(e," ends")),yf.measure("".concat(ki," ").concat(e),"".concat(ki," ").concat(e," begins"),"".concat(ki," ").concat(e," ends"))};var up={begin:kR,end:j1};const ks=()=>{};function Kh(e){return typeof(e.getAttribute?e.getAttribute(zr):null)=="string"}function RR(e){const t=e.getAttribute?e.getAttribute(np):null,n=e.getAttribute?e.getAttribute(rp):null;return t&&n}function $R(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(B.replacementClass)}function NR(){return B.autoReplaceSvg===!0?Rs.replace:Rs[B.autoReplaceSvg]||Rs.replace}function _R(e){return be.createElementNS("http://www.w3.org/2000/svg",e)}function TR(e){return be.createElement(e)}function z1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?_R:TR}=t;if(typeof e=="string")return be.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(i){r.setAttribute(i,e.attributes[i])}),(e.children||[]).forEach(function(i){r.appendChild(z1(i,{ceFn:n}))}),r}function MR(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Rs={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(z1(n),t)}),t.getAttribute(zr)===null&&B.keepOriginalSource){let n=be.createComment(MR(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~op(t).indexOf(B.replacementClass))return Rs.replace(e);const r=new RegExp("".concat(B.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((a,s)=>(s===B.replacementClass||s.match(r)?a.toSvg.push(s):a.toNode.push(s),a),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}const o=n.map(i=>Ea(i)).join(` +`);t.setAttribute(zr,""),t.innerHTML=o}};function Gh(e){e()}function U1(e,t){const n=typeof t=="function"?t:ks;if(e.length===0)n();else{let r=Gh;B.mutateApproach===j4&&(r=ur.requestAnimationFrame||Gh),r(()=>{const o=NR(),i=up.begin("mutate");e.map(o),i(),n()})}}let fp=!1;function B1(){fp=!0}function xf(){fp=!1}let ul=null;function Yh(e){if(!Lh||!B.observeMutations)return;const{treeCallback:t=ks,nodeCallback:n=ks,pseudoElementsCallback:r=ks,observeMutationsRoot:o=be}=e;ul=new Lh(i=>{if(fp)return;const a=fr();ni(i).forEach(s=>{if(s.type==="childList"&&s.addedNodes.length>0&&!Kh(s.addedNodes[0])&&(B.searchPseudoElements&&r(s.target),t(s.target)),s.type==="attributes"&&s.target.parentNode&&B.searchPseudoElements&&r(s.target.parentNode),s.type==="attributes"&&Kh(s.target)&&~H4.indexOf(s.attributeName))if(s.attributeName==="class"&&RR(s.target)){const{prefix:l,iconName:c}=Vl(op(s.target));s.target.setAttribute(np,l||a),c&&s.target.setAttribute(rp,c)}else $R(s.target)&&n(s.target)})}),Tn&&ul.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function OR(){ul&&ul.disconnect()}function AR(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,o)=>{const i=o.split(":"),a=i[0],s=i.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function DR(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let o=Vl(op(e));return o.prefix||(o.prefix=fr()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=fR(o.prefix,e.innerText)||sp(o.prefix,df(e.innerText))),!o.iconName&&B.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function LR(e){const t=ni(e.attributes).reduce((o,i)=>(o.name!=="class"&&o.name!=="style"&&(o[i.name]=i.value),o),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return B.autoA11y&&(n?t["aria-labelledby"]="".concat(B.replacementClass,"-title-").concat(r||pa()):(t["aria-hidden"]="true",t.focusable="false")),t}function IR(){return{iconName:null,title:null,titleId:null,prefix:null,transform:qt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Xh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=DR(e),i=LR(e),a=mf("parseNodeAttributes",{},e);let s=t.styleParser?AR(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:qt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:i},...a}}const{styles:FR}=en;function W1(e){const t=B.autoReplaceSvg==="nest"?Xh(e,{styleParser:!1}):Xh(e);return~t.extra.classes.indexOf(P1)?dr("generateLayersText",e,t):dr("generateSvgReplacementMutation",e,t)}let sn=new Set;E1.map(e=>{sn.add("fa-".concat(e))});Object.keys(Tr[Ee]).map(sn.add.bind(sn));Object.keys(Tr[bt]).map(sn.add.bind(sn));Object.keys(Tr[St]).map(sn.add.bind(sn));sn=[...sn];function Qh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Tn)return Promise.resolve();const n=be.documentElement.classList,r=d=>n.add("".concat(jh,"-").concat(d)),o=d=>n.remove("".concat(jh,"-").concat(d)),i=B.autoFetchSvg?sn:E1.map(d=>"fa-".concat(d)).concat(Object.keys(FR));i.includes("fa")||i.push("fa");const a=[".".concat(P1,":not([").concat(zr,"])")].concat(i.map(d=>".".concat(d,":not([").concat(zr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let s=[];try{s=ni(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),o("complete");else return Promise.resolve();const l=up.begin("onTree"),c=s.reduce((d,f)=>{try{const p=W1(f);p&&d.push(p)}catch(p){S1||p.name==="MissingIcon"&&console.error(p)}return d},[]);return new Promise((d,f)=>{Promise.all(c).then(p=>{U1(p,()=>{r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),l(),d()})}).catch(p=>{l(),f(p)})})}function jR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;W1(e).then(n=>{n&&U1([n],t)})}function zR(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:hf(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:hf(o||{})),e(r,{...n,mask:o})}}const UR=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=qt,symbol:r=!1,mask:o=null,maskId:i=null,title:a=null,titleId:s=null,classes:l=[],attributes:c={},styles:d={}}=t;if(!e)return;const{prefix:f,iconName:p,icon:h}=e;return Hl({type:"icon",...e},()=>(Ur("beforeDOMElementCreation",{iconDefinition:e,params:t}),B.autoA11y&&(a?c["aria-labelledby"]="".concat(B.replacementClass,"-title-").concat(s||pa()):(c["aria-hidden"]="true",c.focusable="false")),cp({icons:{main:vf(h),mask:o?vf(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:f,iconName:p,transform:{...qt,...n},symbol:r,title:a,maskId:i,titleId:s,extra:{attributes:c,styles:d,classes:l}})))};var BR={mixout(){return{icon:zR(UR)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Qh,e.nodeCallback=jR,e}}},provides(e){e.i2svg=function(t){const{node:n=be,callback:r=()=>{}}=t;return Qh(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:o,titleId:i,prefix:a,transform:s,symbol:l,mask:c,maskId:d,extra:f}=n;return new Promise((p,h)=>{Promise.all([gf(r,a),c.iconName?gf(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(x=>{let[m,b]=x;p([t,cp({icons:{main:m,mask:b},prefix:a,iconName:r,transform:s,symbol:l,maskId:d,title:o,titleId:i,extra:f,watchable:!0})])}).catch(h)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:o,transform:i,styles:a}=t;const s=Bl(a);s.length>0&&(r.style=s);let l;return ip(i)&&(l=dr("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(l||o.icon),{children:n,attributes:r}}}},WR={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return Hl({type:"layer"},()=>{Ur("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(o=>{Array.isArray(o)?o.map(i=>{r=r.concat(i.abstract)}):r=r.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(B.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},VR={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:i={}}=t;return Hl({type:"counter",content:e},()=>(Ur("beforeDOMElementCreation",{content:e,params:t}),ER({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(B.cssPrefix,"-layers-counter"),...r]}})))}}}},HR={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=qt,title:r=null,classes:o=[],attributes:i={},styles:a={}}=t;return Hl({type:"text",content:e},()=>(Ur("beforeDOMElementCreation",{content:e,params:t}),Vh({content:e,transform:{...qt,...n},title:r,extra:{attributes:i,styles:a,classes:["".concat(B.cssPrefix,"-layers-text"),...o]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:o,extra:i}=n;let a=null,s=null;if(v1){const l=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();a=c.width/l,s=c.height/l}return B.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([t,Vh({content:t.innerHTML,width:a,height:s,transform:o,title:r,extra:i,watchable:!0})])}}};const KR=new RegExp('"',"ug"),Zh=[1105920,1112319],Jh={FontAwesome:{normal:"fas",400:"fas"},...R4,...k4,...D4},wf=Object.keys(Jh).reduce((e,t)=>(e[t.toLowerCase()]=Jh[t],e),{}),GR=Object.keys(wf).reduce((e,t)=>{const n=wf[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function YR(e){const t=e.replace(KR,""),n=iR(t,0),r=n>=Zh[0]&&n<=Zh[1],o=t.length===2?t[0]===t[1]:!1;return{value:df(o?t[0]:t),isSecondary:r||o}}function XR(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(wf[n]||{})[o]||GR[n]}function qh(e,t){const n="".concat(F4).concat(t.replace(":","-"));return new Promise((r,o)=>{if(e.getAttribute(n)!==null)return r();const a=ni(e.children).filter(p=>p.getAttribute(lf)===t)[0],s=ur.getComputedStyle(e,t),l=s.getPropertyValue("font-family"),c=l.match(W4),d=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!c)return e.removeChild(a),r();if(c&&f!=="none"&&f!==""){const p=s.getPropertyValue("content");let h=XR(l,d);const{value:x,isSecondary:m}=YR(p),b=c[0].startsWith("FontAwesome");let g=sp(h,x),v=g;if(b){const y=dR(x);y.iconName&&y.prefix&&(g=y.iconName,h=y.prefix)}if(g&&!m&&(!a||a.getAttribute(np)!==h||a.getAttribute(rp)!==v)){e.setAttribute(n,v),a&&e.removeChild(a);const y=IR(),{extra:S}=y;S.attributes[lf]=t,gf(g,h).then(P=>{const N=cp({...y,icons:{main:P,mask:lp()},prefix:h,iconName:v,extra:S,watchable:!0}),R=be.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(R,e.firstChild):e.appendChild(R),R.outerHTML=N.map(E=>Ea(E)).join(` +`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function QR(e){return Promise.all([qh(e,"::before"),qh(e,"::after")])}function ZR(e){return e.parentNode!==document.head&&!~z4.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(lf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function ev(e){if(Tn)return new Promise((t,n)=>{const r=ni(e.querySelectorAll("*")).filter(ZR).map(QR),o=up.begin("searchPseudoElements");B1(),Promise.all(r).then(()=>{o(),xf(),t()}).catch(()=>{o(),xf(),n()})})}var JR={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=ev,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=be}=t;B.searchPseudoElements&&ev(n)}}};let tv=!1;var qR={mixout(){return{dom:{unwatch(){B1(),tv=!0}}}},hooks(){return{bootstrap(){Yh(mf("mutationObserverCallbacks",{}))},noAuto(){OR()},watch(e){const{observeMutationsRoot:t}=e;tv?xf():Yh(mf("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const nv=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const o=r.toLowerCase().split("-"),i=o[0];let a=o.slice(1).join("-");if(i&&a==="h")return n.flipX=!0,n;if(i&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(i){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var e6={mixout(){return{parse:{transform:e=>nv(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=nv(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:o,iconWidth:i}=t;const a={transform:"translate(".concat(o/2," 256)")},s="translate(".concat(r.x*32,", ").concat(r.y*32,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),d={transform:"".concat(s," ").concat(l," ").concat(c)},f={transform:"translate(".concat(i/2*-1," -256)")},p={outer:a,inner:d,path:f};return{tag:"g",attributes:{...p.outer},children:[{tag:"g",attributes:{...p.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...p.path}}]}]}}}};const Gc={x:0,y:0,width:"100%",height:"100%"};function rv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function t6(e){return e.tag==="g"?e.children:[e]}var n6={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Vl(n.split(" ").map(o=>o.trim())):lp();return r.prefix||(r.prefix=fr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:o,mask:i,maskId:a,transform:s}=t;const{width:l,icon:c}=o,{width:d,icon:f}=i,p=q4({transform:s,containerWidth:d,iconWidth:l}),h={tag:"rect",attributes:{...Gc,fill:"white"}},x=c.children?{children:c.children.map(rv)}:{},m={tag:"g",attributes:{...p.inner},children:[rv({tag:c.tag,attributes:{...c.attributes,...p.path},...x})]},b={tag:"g",attributes:{...p.outer},children:[m]},g="mask-".concat(a||pa()),v="clip-".concat(a||pa()),y={tag:"mask",attributes:{...Gc,id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[h,b]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:t6(f)},y]};return n.push(S,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(g,")"),...Gc}}),{children:n,attributes:r}}}},r6={provides(e){let t=!1;ur.matchMedia&&(t=ur.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:{...r,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const i={...o,attributeName:"opacity"},a={tag:"circle",attributes:{...r,cx:"256",cy:"364",r:"28"},children:[]};return t||a.children.push({tag:"animate",attributes:{...o,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...i,values:"1;0;1;1;0;1;"}}),n.push(a),n.push({tag:"path",attributes:{...r,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...i,values:"1;0;0;0;0;1;"}}]}),t||n.push({tag:"path",attributes:{...r,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...i,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},o6={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},i6=[nR,BR,WR,VR,HR,JR,qR,e6,n6,r6,o6];vR(i6,{mixoutsTo:Rt});Rt.noAuto;Rt.config;Rt.library;Rt.dom;const bf=Rt.parse;Rt.findIconDefinition;Rt.toHtml;const a6=Rt.icon;Rt.layer;Rt.text;Rt.counter;var V1={exports:{}},s6="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",l6=s6,c6=l6;function H1(){}function K1(){}K1.resetWarningCache=H1;var u6=function(){function e(r,o,i,a,s,l){if(l!==c6){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:K1,resetWarningCache:H1};return n.PropTypes=n,n};V1.exports=u6();var f6=V1.exports;const oe=Of(f6);function ov(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function p6(e,t){if(e==null)return{};var n=d6(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sf(e){return m6(e)||h6(e)||v6(e)||g6()}function m6(e){if(Array.isArray(e))return Ef(e)}function h6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function v6(e,t){if(e){if(typeof e=="string")return Ef(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ef(e,t)}}function Ef(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return Y1(e,l)}),o=Object.keys(t.attributes||{}).reduce(function(l,c){var d=t.attributes[c];switch(c){case"class":l.attrs.className=d,delete t.attributes.class;break;case"style":l.attrs.style=S6(d);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=d:l.attrs[G1(c)]=d}return l},{attrs:{}}),i=n.style,a=i===void 0?{}:i,s=p6(n,w6);return o.attrs.style=Qt(Qt({},o.attrs.style),a),e.apply(void 0,[t.tag,Qt(Qt({},o.attrs),s)].concat(Sf(r)))}var X1=!1;try{X1=!0}catch{}function E6(){if(!X1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function iv(e){if(e&&fl(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(bf.icon)return bf.icon(e);if(e===null)return null;if(e&&fl(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Yc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?bo({},e,t):{}}var av={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},yt=Oe.forwardRef(function(e,t){var n=Qt(Qt({},av),e),r=n.icon,o=n.mask,i=n.symbol,a=n.className,s=n.title,l=n.titleId,c=n.maskId,d=iv(r),f=Yc("classes",[].concat(Sf(y6(n)),Sf((a||"").split(" ")))),p=Yc("transform",typeof n.transform=="string"?bf.transform(n.transform):n.transform),h=Yc("mask",iv(o)),x=a6(d,Qt(Qt(Qt(Qt({},f),p),h),{},{symbol:i,title:s,titleId:l,maskId:c}));if(!x)return E6("Could not find icon",d),null;var m=x.abstract,b={ref:t};return Object.keys(n).forEach(function(g){av.hasOwnProperty(g)||(b[g]=n[g])}),C6(m[0],b)});yt.displayName="FontAwesomeIcon";yt.propTypes={beat:oe.bool,border:oe.bool,beatFade:oe.bool,bounce:oe.bool,className:oe.string,fade:oe.bool,flash:oe.bool,mask:oe.oneOfType([oe.object,oe.array,oe.string]),maskId:oe.string,fixedWidth:oe.bool,inverse:oe.bool,flip:oe.oneOf([!0,!1,"horizontal","vertical","both"]),icon:oe.oneOfType([oe.object,oe.array,oe.string]),listItem:oe.bool,pull:oe.oneOf(["right","left"]),pulse:oe.bool,rotation:oe.oneOf([0,90,180,270]),shake:oe.bool,size:oe.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:oe.bool,spinPulse:oe.bool,spinReverse:oe.bool,symbol:oe.oneOfType([oe.bool,oe.string]),title:oe.string,titleId:oe.string,transform:oe.oneOfType([oe.string,oe.object]),swapOpacity:oe.bool};var C6=Y1.bind(null,Oe.createElement);const P6={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]};function Cf({variant:e}){return w.jsx("a",{href:"https://github.com/marinoffDev/Focus-Fox/",target:"_blank",children:w.jsxs(Ye,{variant:e,children:[w.jsx(yt,{icon:P6,size:"xl",className:"mr-2"}),"Star on GitHub"]})})}function ir(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function k6(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Q1(...e){return t=>e.forEach(n=>k6(n,t))}function Zr(...e){return u.useCallback(Q1(...e),e)}function R6(e,t){const n=u.createContext(t);function r(i){const{children:a,...s}=i,l=u.useMemo(()=>s,Object.values(s));return w.jsx(n.Provider,{value:l,children:a})}function o(i){const a=u.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function $6(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:h,...x}=f,m=(p==null?void 0:p[e][l])||s,b=u.useMemo(()=>x,Object.values(x));return w.jsx(m.Provider,{value:b,children:h})}function d(f,p){const h=(p==null?void 0:p[e][l])||s,x=u.useContext(h);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}const o=()=>{const i=n.map(a=>u.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,N6(o,...t)]}function N6(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var dl=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},_6=Ff.useId||(()=>{}),T6=0;function Xc(e){const[t,n]=u.useState(_6());return dl(()=>{e||n(r=>r??String(T6++))},[e]),e||(t?`radix-${t}`:"")}function Br(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function M6({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=O6({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=Br(n),l=u.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[i,e,o,s]);return[a,l]}function O6({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=Br(t);return u.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var dp=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(D6);if(i){const a=i.props.children,s=o.map(l=>l===i?u.Children.count(a)>1?u.Children.only(null):u.isValidElement(a)?a.props.children:null:l);return w.jsx(Pf,{...r,ref:t,children:u.isValidElement(a)?u.cloneElement(a,void 0,s):null})}return w.jsx(Pf,{...r,ref:t,children:n})});dp.displayName="Slot";var Pf=u.forwardRef((e,t)=>{const{children:n,...r}=e;if(u.isValidElement(n)){const o=I6(n);return u.cloneElement(n,{...L6(r,n.props),ref:t?Q1(t,o):o})}return u.Children.count(n)>1?u.Children.only(null):null});Pf.displayName="SlotClone";var A6=({children:e})=>w.jsx(w.Fragment,{children:e});function D6(e){return u.isValidElement(e)&&e.type===A6}function L6(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function I6(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var F6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Mn=F6.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?dp:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(s,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function j6(e,t){e&&vr.flushSync(()=>e.dispatchEvent(t))}function z6(e,t=globalThis==null?void 0:globalThis.document){const n=Br(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var U6="DismissableLayer",kf="dismissableLayer.update",B6="dismissableLayer.pointerDownOutside",W6="dismissableLayer.focusOutside",sv,Z1=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),J1=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=u.useContext(Z1),[d,f]=u.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=u.useState({}),x=Zr(t,R=>f(R)),m=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(b),v=d?m.indexOf(d):-1,y=c.layersWithOutsidePointerEventsDisabled.size>0,S=v>=g,P=K6(R=>{const E=R.target,O=[...c.branches].some(T=>T.contains(E));!S||O||(o==null||o(R),a==null||a(R),R.defaultPrevented||s==null||s())},p),N=G6(R=>{const E=R.target;[...c.branches].some(T=>T.contains(E))||(i==null||i(R),a==null||a(R),R.defaultPrevented||s==null||s())},p);return z6(R=>{v===c.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},p),u.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(sv=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),lv(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=sv)}},[d,p,n,c]),u.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),lv())},[d,c]),u.useEffect(()=>{const R=()=>h({});return document.addEventListener(kf,R),()=>document.removeEventListener(kf,R)},[]),w.jsx(Mn.div,{...l,ref:x,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:ir(e.onFocusCapture,N.onFocusCapture),onBlurCapture:ir(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:ir(e.onPointerDownCapture,P.onPointerDownCapture)})});J1.displayName=U6;var V6="DismissableLayerBranch",H6=u.forwardRef((e,t)=>{const n=u.useContext(Z1),r=u.useRef(null),o=Zr(t,r);return u.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(Mn.div,{...e,ref:o})});H6.displayName=V6;function K6(e,t=globalThis==null?void 0:globalThis.document){const n=Br(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){q1(B6,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function G6(e,t=globalThis==null?void 0:globalThis.document){const n=Br(e),r=u.useRef(!1);return u.useEffect(()=>{const o=i=>{i.target&&!r.current&&q1(W6,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function lv(){const e=new CustomEvent(kf);document.dispatchEvent(e)}function q1(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?j6(o,i):o.dispatchEvent(i)}var Qc="focusScope.autoFocusOnMount",Zc="focusScope.autoFocusOnUnmount",cv={bubbles:!1,cancelable:!0},Y6="FocusScope",ex=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=u.useState(null),c=Br(o),d=Br(i),f=u.useRef(null),p=Zr(t,m=>l(m)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let m=function(y){if(h.paused||!s)return;const S=y.target;s.contains(S)?f.current=S:Bn(f.current,{select:!0})},b=function(y){if(h.paused||!s)return;const S=y.relatedTarget;S!==null&&(s.contains(S)||Bn(f.current,{select:!0}))},g=function(y){if(document.activeElement===document.body)for(const P of y)P.removedNodes.length>0&&Bn(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const v=new MutationObserver(g);return s&&v.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),v.disconnect()}}},[r,s,h.paused]),u.useEffect(()=>{if(s){fv.add(h);const m=document.activeElement;if(!s.contains(m)){const g=new CustomEvent(Qc,cv);s.addEventListener(Qc,c),s.dispatchEvent(g),g.defaultPrevented||(X6(e$(tx(s)),{select:!0}),document.activeElement===m&&Bn(s))}return()=>{s.removeEventListener(Qc,c),setTimeout(()=>{const g=new CustomEvent(Zc,cv);s.addEventListener(Zc,d),s.dispatchEvent(g),g.defaultPrevented||Bn(m??document.body,{select:!0}),s.removeEventListener(Zc,d),fv.remove(h)},0)}}},[s,c,d,h]);const x=u.useCallback(m=>{if(!n&&!r||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,g=document.activeElement;if(b&&g){const v=m.currentTarget,[y,S]=Q6(v);y&&S?!m.shiftKey&&g===S?(m.preventDefault(),n&&Bn(y,{select:!0})):m.shiftKey&&g===y&&(m.preventDefault(),n&&Bn(S,{select:!0})):g===v&&m.preventDefault()}},[n,r,h.paused]);return w.jsx(Mn.div,{tabIndex:-1,...a,ref:p,onKeyDown:x})});ex.displayName=Y6;function X6(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Bn(r,{select:t}),document.activeElement!==n)return}function Q6(e){const t=tx(e),n=uv(t,e),r=uv(t.reverse(),e);return[n,r]}function tx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function uv(e,t){for(const n of e)if(!Z6(n,{upTo:t}))return n}function Z6(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function J6(e){return e instanceof HTMLInputElement&&"select"in e}function Bn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&J6(e)&&t&&e.select()}}var fv=q6();function q6(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=dv(e,t),e.unshift(t)},remove(t){var n;e=dv(e,t),(n=e[0])==null||n.resume()}}}function dv(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function e$(e){return e.filter(t=>t.tagName!=="A")}var t$="Portal",nx=u.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=u.useState(!1);dl(()=>i(!0),[]);const a=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?Nd.createPortal(w.jsx(Mn.div,{...r,ref:t}),a):null});nx.displayName=t$;function n$(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Kl=e=>{const{present:t,children:n}=e,r=r$(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),i=Zr(r.ref,o$(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:i}):null};Kl.displayName="Presence";function r$(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),i=u.useRef("none"),a=e?"mounted":"unmounted",[s,l]=n$(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=ss(r.current);i.current=s==="mounted"?c:"none"},[s]),dl(()=>{const c=r.current,d=o.current;if(d!==e){const p=i.current,h=ss(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),dl(()=>{if(t){const c=f=>{const h=ss(r.current).includes(f.animationName);f.target===t&&h&&vr.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=ss(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ss(e){return(e==null?void 0:e.animationName)||"none"}function o$(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Jc=0;function i$(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??pv()),document.body.insertAdjacentElement("beforeend",e[1]??pv()),Jc++,()=>{Jc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Jc--}},[])}function pv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var rx=Ty(),qc=function(){},Gl=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:qc,onWheelCapture:qc,onTouchMoveCapture:qc}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,x=e.inert,m=e.allowPinchZoom,b=e.as,g=b===void 0?"div":b,v=e.gapMode,y=Yd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,P=_y([n,t]),N=tt(tt({},y),o);return u.createElement(u.Fragment,null,d&&u.createElement(S,{sideCar:rx,removeScrollBar:c,shards:f,noIsolation:h,inert:x,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:v}),a?u.cloneElement(u.Children.only(s),tt(tt({},N),{ref:P})):u.createElement(g,tt({},N,{className:l,ref:P}),s))});Gl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gl.classNames={fullWidth:Fi,zeroRight:Ii};var Rf=!1;if(typeof window<"u")try{var ls=Object.defineProperty({},"passive",{get:function(){return Rf=!0,!0}});window.addEventListener("test",ls,ls),window.removeEventListener("test",ls,ls)}catch{Rf=!1}var oo=Rf?{passive:!1}:!1,a$=function(e){return e.tagName==="TEXTAREA"},ox=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!a$(e)&&n[t]==="visible")},s$=function(e){return ox(e,"overflowY")},l$=function(e){return ox(e,"overflowX")},mv=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ix(e,r);if(o){var i=ax(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},c$=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},u$=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ix=function(e,t){return e==="v"?s$(t):l$(t)},ax=function(e,t){return e==="v"?c$(t):u$(t)},f$=function(e,t){return e==="h"&&t==="rtl"?-1:1},d$=function(e,t,n,r,o){var i=f$(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,d=a>0,f=0,p=0;do{var h=ax(e,s),x=h[0],m=h[1],b=h[2],g=m-b-i*x;(x||g)&&ix(e,s)&&(f+=g,p+=x),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(Math.abs(f)<1||!o)||!d&&(Math.abs(p)<1||!o))&&(c=!0),c},cs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hv=function(e){return[e.deltaX,e.deltaY]},vv=function(e){return e&&"current"in e?e.current:e},p$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},m$=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},m$=0,io=[];function h$(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(m$++)[0],i=u.useState(Yd)[0],a=u.useRef(e);u.useEffect(function(){a.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=$y([e.lockRef.current],(e.shards||[]).map(hv),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=u.useCallback(function(m,b){if("touches"in m&&m.touches.length===2)return!a.current.allowPinchZoom;var g=ls(m),v=n.current,y="deltaX"in m?m.deltaX:v[0]-g[0],S="deltaY"in m?m.deltaY:v[1]-g[1],P,N=m.target,R=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in m&&R==="h"&&N.type==="range")return!1;var E=pv(R,N);if(!E)return!0;if(E?P=R:(P=R==="v"?"h":"v",E=pv(R,N)),!E)return!1;if(!r.current&&"changedTouches"in m&&(y||S)&&(r.current=P),!P)return!0;var O=r.current||P;return f$(O,b,m,O==="h"?y:S,!0)},[]),l=u.useCallback(function(m){var b=m;if(!(!io.length||io[io.length-1]!==i)){var g="deltaY"in b?mv(b):ls(b),v=t.current.filter(function(P){return P.name===b.type&&(P.target===b.target||b.target===P.shadowParent)&&d$(P.delta,g)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}if(!v){var y=(a.current.shards||[]).map(hv).filter(Boolean).filter(function(P){return P.contains(b.target)}),S=y.length>0?s(b,y[0]):!a.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),c=u.useCallback(function(m,b,g,v){var y={name:m,delta:b,target:g,should:v,shadowParent:v$(g)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),d=u.useCallback(function(m){n.current=ls(m),r.current=void 0},[]),f=u.useCallback(function(m){c(m.type,mv(m),m.target,s(m,e.lockRef.current))},[]),p=u.useCallback(function(m){c(m.type,ls(m),m.target,s(m,e.lockRef.current))},[]);u.useEffect(function(){return io.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,oo),document.addEventListener("touchmove",l,oo),document.addEventListener("touchstart",d,oo),function(){io=io.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,oo),document.removeEventListener("touchmove",l,oo),document.removeEventListener("touchstart",d,oo)}},[]);var h=e.removeScrollBar,x=e.inert;return u.createElement(u.Fragment,null,x?u.createElement(i,{styles:p$(o)}):null,h?u.createElement(Ay,{gapMode:e.gapMode}):null)}function v$(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const g$=My(nx,h$);var ax=u.forwardRef(function(e,t){return u.createElement(Kl,et({},e,{ref:t,sideCar:g$}))});ax.classNames=Kl.classNames;var dp="Dialog",[sx,h_]=R6(dp),[y$,Gt]=sx(dp),lx=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=u.useRef(null),l=u.useRef(null),[c=!1,d]=T6({prop:r,defaultProp:o,onChange:i});return w.jsx(y$,{scope:t,triggerRef:s,contentRef:l,contentId:Yc(),titleId:Yc(),descriptionId:Yc(),open:c,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(f=>!f),[d]),modal:a,children:n})};lx.displayName=dp;var cx="DialogTrigger",ux=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(cx,n),i=Zr(t,o.triggerRef);return w.jsx(Mn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":hp(o.open),...r,ref:i,onClick:ir(e.onClick,o.onOpenToggle)})});ux.displayName=cx;var pp="DialogPortal",[x$,fx]=sx(pp,{forceMount:void 0}),dx=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Gt(pp,t);return w.jsx(x$,{scope:t,forceMount:n,children:u.Children.map(r,a=>w.jsx(Hl,{present:n||i.open,children:w.jsx(tx,{asChild:!0,container:o,children:a})}))})};dx.displayName=pp;var dl="DialogOverlay",px=u.forwardRef((e,t)=>{const n=fx(dl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Gt(dl,e.__scopeDialog);return i.modal?w.jsx(Hl,{present:r||i.open,children:w.jsx(w$,{...o,ref:t})}):null});px.displayName=dl;var w$=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(dl,n);return w.jsx(ax,{as:fp,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(Mn.div,{"data-state":hp(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Wr="DialogContent",mx=u.forwardRef((e,t)=>{const n=fx(Wr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Gt(Wr,e.__scopeDialog);return w.jsx(Hl,{present:r||i.open,children:i.modal?w.jsx(b$,{...o,ref:t}):w.jsx(S$,{...o,ref:t})})});mx.displayName=Wr;var b$=u.forwardRef((e,t)=>{const n=Gt(Wr,e.__scopeDialog),r=u.useRef(null),o=Zr(t,n.contentRef,r);return u.useEffect(()=>{const i=r.current;if(i)return Ry(i)},[]),w.jsx(hx,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ir(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:ir(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:ir(e.onFocusOutside,i=>i.preventDefault())})}),S$=u.forwardRef((e,t)=>{const n=Gt(Wr,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return w.jsx(hx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),hx=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Gt(Wr,n),l=u.useRef(null),c=Zr(t,l);return o$(),w.jsxs(w.Fragment,{children:[w.jsx(q1,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(Z1,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":hp(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(E$,{titleId:s.titleId}),w.jsx(P$,{contentRef:l,descriptionId:s.descriptionId})]})]})}),mp="DialogTitle",vx=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(mp,n);return w.jsx(Mn.h2,{id:o.titleId,...r,ref:t})});vx.displayName=mp;var gx="DialogDescription",yx=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(gx,n);return w.jsx(Mn.p,{id:o.descriptionId,...r,ref:t})});yx.displayName=gx;var xx="DialogClose",wx=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(xx,n);return w.jsx(Mn.button,{type:"button",...r,ref:t,onClick:ir(e.onClick,()=>o.onOpenChange(!1))})});wx.displayName=xx;function hp(e){return e?"open":"closed"}var bx="DialogTitleWarning",[v_,Sx]=k6(bx,{contentName:Wr,titleName:mp,docsSlug:"dialog"}),E$=({titleId:e})=>{const t=Sx(bx),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. +`)},h$=0,io=[];function v$(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(h$++)[0],i=u.useState(Xd)[0],a=u.useRef(e);u.useEffect(function(){a.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Ny([e.lockRef.current],(e.shards||[]).map(vv),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=u.useCallback(function(m,b){if("touches"in m&&m.touches.length===2)return!a.current.allowPinchZoom;var g=cs(m),v=n.current,y="deltaX"in m?m.deltaX:v[0]-g[0],S="deltaY"in m?m.deltaY:v[1]-g[1],P,N=m.target,R=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in m&&R==="h"&&N.type==="range")return!1;var E=mv(R,N);if(!E)return!0;if(E?P=R:(P=R==="v"?"h":"v",E=mv(R,N)),!E)return!1;if(!r.current&&"changedTouches"in m&&(y||S)&&(r.current=P),!P)return!0;var O=r.current||P;return d$(O,b,m,O==="h"?y:S,!0)},[]),l=u.useCallback(function(m){var b=m;if(!(!io.length||io[io.length-1]!==i)){var g="deltaY"in b?hv(b):cs(b),v=t.current.filter(function(P){return P.name===b.type&&(P.target===b.target||b.target===P.shadowParent)&&p$(P.delta,g)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}if(!v){var y=(a.current.shards||[]).map(vv).filter(Boolean).filter(function(P){return P.contains(b.target)}),S=y.length>0?s(b,y[0]):!a.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),c=u.useCallback(function(m,b,g,v){var y={name:m,delta:b,target:g,should:v,shadowParent:g$(g)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),d=u.useCallback(function(m){n.current=cs(m),r.current=void 0},[]),f=u.useCallback(function(m){c(m.type,hv(m),m.target,s(m,e.lockRef.current))},[]),p=u.useCallback(function(m){c(m.type,cs(m),m.target,s(m,e.lockRef.current))},[]);u.useEffect(function(){return io.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,oo),document.addEventListener("touchmove",l,oo),document.addEventListener("touchstart",d,oo),function(){io=io.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,oo),document.removeEventListener("touchmove",l,oo),document.removeEventListener("touchstart",d,oo)}},[]);var h=e.removeScrollBar,x=e.inert;return u.createElement(u.Fragment,null,x?u.createElement(i,{styles:m$(o)}):null,h?u.createElement(Dy,{gapMode:e.gapMode}):null)}function g$(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const y$=Oy(rx,v$);var sx=u.forwardRef(function(e,t){return u.createElement(Gl,tt({},e,{ref:t,sideCar:y$}))});sx.classNames=Gl.classNames;var pp="Dialog",[lx,v_]=$6(pp),[x$,Gt]=lx(pp),cx=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=u.useRef(null),l=u.useRef(null),[c=!1,d]=M6({prop:r,defaultProp:o,onChange:i});return w.jsx(x$,{scope:t,triggerRef:s,contentRef:l,contentId:Xc(),titleId:Xc(),descriptionId:Xc(),open:c,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(f=>!f),[d]),modal:a,children:n})};cx.displayName=pp;var ux="DialogTrigger",fx=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(ux,n),i=Zr(t,o.triggerRef);return w.jsx(Mn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":vp(o.open),...r,ref:i,onClick:ir(e.onClick,o.onOpenToggle)})});fx.displayName=ux;var mp="DialogPortal",[w$,dx]=lx(mp,{forceMount:void 0}),px=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Gt(mp,t);return w.jsx(w$,{scope:t,forceMount:n,children:u.Children.map(r,a=>w.jsx(Kl,{present:n||i.open,children:w.jsx(nx,{asChild:!0,container:o,children:a})}))})};px.displayName=mp;var pl="DialogOverlay",mx=u.forwardRef((e,t)=>{const n=dx(pl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Gt(pl,e.__scopeDialog);return i.modal?w.jsx(Kl,{present:r||i.open,children:w.jsx(b$,{...o,ref:t})}):null});mx.displayName=pl;var b$=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(pl,n);return w.jsx(sx,{as:dp,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(Mn.div,{"data-state":vp(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Wr="DialogContent",hx=u.forwardRef((e,t)=>{const n=dx(Wr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Gt(Wr,e.__scopeDialog);return w.jsx(Kl,{present:r||i.open,children:i.modal?w.jsx(S$,{...o,ref:t}):w.jsx(E$,{...o,ref:t})})});hx.displayName=Wr;var S$=u.forwardRef((e,t)=>{const n=Gt(Wr,e.__scopeDialog),r=u.useRef(null),o=Zr(t,n.contentRef,r);return u.useEffect(()=>{const i=r.current;if(i)return $y(i)},[]),w.jsx(vx,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ir(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:ir(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:ir(e.onFocusOutside,i=>i.preventDefault())})}),E$=u.forwardRef((e,t)=>{const n=Gt(Wr,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return w.jsx(vx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),vx=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Gt(Wr,n),l=u.useRef(null),c=Zr(t,l);return i$(),w.jsxs(w.Fragment,{children:[w.jsx(ex,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(J1,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":vp(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(C$,{titleId:s.titleId}),w.jsx(k$,{contentRef:l,descriptionId:s.descriptionId})]})]})}),hp="DialogTitle",gx=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(hp,n);return w.jsx(Mn.h2,{id:o.titleId,...r,ref:t})});gx.displayName=hp;var yx="DialogDescription",xx=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(yx,n);return w.jsx(Mn.p,{id:o.descriptionId,...r,ref:t})});xx.displayName=yx;var wx="DialogClose",bx=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(wx,n);return w.jsx(Mn.button,{type:"button",...r,ref:t,onClick:ir(e.onClick,()=>o.onOpenChange(!1))})});bx.displayName=wx;function vp(e){return e?"open":"closed"}var Sx="DialogTitleWarning",[g_,Ex]=R6(Sx,{contentName:Wr,titleName:hp,docsSlug:"dialog"}),C$=({titleId:e})=>{const t=Ex(Sx),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},C$="DialogDescriptionWarning",P$=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Sx(C$).contentName}}.`;return u.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},k$=lx,R$=ux,$$=dx,Ex=px,Cx=mx,Px=vx,kx=yx,N$=wx;const _$=k$,T$=R$,M$=$$,Rx=u.forwardRef(({className:e,...t},n)=>w.jsx(Ex,{ref:n,className:he("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Rx.displayName=Ex.displayName;const $x=u.forwardRef(({className:e,children:t,...n},r)=>w.jsxs(M$,{children:[w.jsx(Rx,{}),w.jsxs(Cx,{ref:r,className:he("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,w.jsxs(N$,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[w.jsx(MC,{className:"h-4 w-4"}),w.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));$x.displayName=Cx.displayName;const Nx=({className:e,...t})=>w.jsx("div",{className:he("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Nx.displayName="DialogHeader";const _x=({className:e,...t})=>w.jsx("div",{className:he("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});_x.displayName="DialogFooter";const Tx=u.forwardRef(({className:e,...t},n)=>w.jsx(Px,{ref:n,className:he("text-lg font-semibold leading-none tracking-tight",e),...t}));Tx.displayName=Px.displayName;const Mx=u.forwardRef(({className:e,...t},n)=>w.jsx(kx,{ref:n,className:he("text-sm text-muted-foreground",e),...t}));Mx.displayName=kx.displayName;const O$={prefix:"fas",iconName:"fingerprint",icon:[512,512,[],"f577","M48 256C48 141.1 141.1 48 256 48c63.1 0 119.6 28.1 157.8 72.5c8.6 10.1 23.8 11.2 33.8 2.6s11.2-23.8 2.6-33.8C403.3 34.6 333.7 0 256 0C114.6 0 0 114.6 0 256l0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40zm458.5-52.9c-2.7-13-15.5-21.3-28.4-18.5s-21.3 15.5-18.5 28.4c2.9 13.9 4.5 28.3 4.5 43.1l0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40c0-18.1-1.9-35.8-5.5-52.9zM256 80c-19 0-37.4 3-54.5 8.6c-15.2 5-18.7 23.7-8.3 35.9c7.1 8.3 18.8 10.8 29.4 7.9c10.6-2.9 21.8-4.4 33.4-4.4c70.7 0 128 57.3 128 128l0 24.9c0 25.2-1.5 50.3-4.4 75.3c-1.7 14.6 9.4 27.8 24.2 27.8c11.8 0 21.9-8.6 23.3-20.3c3.3-27.4 5-55 5-82.7l0-24.9c0-97.2-78.8-176-176-176zM150.7 148.7c-9.1-10.6-25.3-11.4-33.9-.4C93.7 178 80 215.4 80 256l0 24.9c0 24.2-2.6 48.4-7.8 71.9C68.8 368.4 80.1 384 96.1 384c10.5 0 19.9-7 22.2-17.3c6.4-28.1 9.7-56.8 9.7-85.8l0-24.9c0-27.2 8.5-52.4 22.9-73.1c7.2-10.4 8-24.6-.2-34.2zM256 160c-53 0-96 43-96 96l0 24.9c0 35.9-4.6 71.5-13.8 106.1c-3.8 14.3 6.7 29 21.5 29c9.5 0 17.9-6.2 20.4-15.4c10.5-39 15.9-79.2 15.9-119.7l0-24.9c0-28.7 23.3-52 52-52s52 23.3 52 52l0 24.9c0 36.3-3.5 72.4-10.4 107.9c-2.7 13.9 7.7 27.2 21.8 27.2c10.2 0 19-7 21-17c7.7-38.8 11.6-78.3 11.6-118.1l0-24.9c0-53-43-96-96-96zm24 96c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 24.9c0 59.9-11 119.3-32.5 175.2l-5.9 15.3c-4.8 12.4 1.4 26.3 13.8 31s26.3-1.4 31-13.8l5.9-15.3C267.9 411.9 280 346.7 280 280.9l0-24.9z"]},A$={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},D$={prefix:"fas",iconName:"asterisk",icon:[384,512,[10033,61545],"2a","M192 32c17.7 0 32 14.3 32 32l0 135.5 111.5-66.9c15.2-9.1 34.8-4.2 43.9 11s4.2 34.8-11 43.9L254.2 256l114.3 68.6c15.2 9.1 20.1 28.7 11 43.9s-28.7 20.1-43.9 11L224 312.5 224 448c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-135.5L48.5 379.4c-15.2 9.1-34.8 4.2-43.9-11s-4.2-34.8 11-43.9L129.8 256 15.5 187.4c-15.2-9.1-20.1-28.7-11-43.9s28.7-20.1 43.9-11L160 199.5 160 64c0-17.7 14.3-32 32-32z"]},L$={prefix:"fas",iconName:"circle-chevron-up",icon:[512,512,["chevron-circle-up"],"f139","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM377 271c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-87-87-87 87c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 167c9.4-9.4 24.6-9.4 33.9 0L377 271z"]},vv={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},I$={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},F$={prefix:"fas",iconName:"forward",icon:[512,512,[9193],"f04e","M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416L0 96C0 83.6 7.2 72.3 18.4 67s24.5-3.6 34.1 4.4L224 214.3l0 41.7 0 41.7L52.5 440.6zM256 352l0-96 0-128 0-32c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4l192 160c7.3 6.1 11.5 15.1 11.5 24.6s-4.2 18.5-11.5 24.6l-192 160c-9.5 7.9-22.8 9.7-34.1 4.4s-18.4-16.6-18.4-29l0-64z"]},j$={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},z$=j$,U$={prefix:"fas",iconName:"mug-saucer",icon:[640,512,["coffee"],"f0f4","M96 64c0-17.7 14.3-32 32-32l320 0 64 0c70.7 0 128 57.3 128 128s-57.3 128-128 128l-32 0c0 53-43 96-96 96l-192 0c-53 0-96-43-96-96L96 64zM480 224l32 0c35.3 0 64-28.7 64-64s-28.7-64-64-64l-32 0 0 128zM32 416l512 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},B$=u.forwardRef((e,t)=>u.createElement(Ve.label,G({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),Ox=B$,W$=X0("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),pl=u.forwardRef(({className:e,...t},n)=>w.jsx(Ox,{ref:n,className:he(W$(),e),...t}));pl.displayName=Ox.displayName;function Ax(e,[t,n]){return Math.min(n,Math.max(t,e))}function So(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function V$(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Dx(...e){return t=>e.forEach(n=>V$(n,t))}function Vr(...e){return u.useCallback(Dx(...e),e)}function Lx(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:h,...x}=f,m=(p==null?void 0:p[e][l])||s,b=u.useMemo(()=>x,Object.values(x));return w.jsx(m.Provider,{value:b,children:h})}function d(f,p){const h=(p==null?void 0:p[e][l])||s,x=u.useContext(h);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}const o=()=>{const i=n.map(a=>u.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,H$(o,...t)]}function H$(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ix(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function K$({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=G$({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=Ix(n),l=u.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[i,e,o,s]);return[a,l]}function G$({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=Ix(t);return u.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var Y$=u.createContext(void 0);function X$(e){const t=u.useContext(Y$);return e||t||"ltr"}function Q$(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Z$=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{};function J$(e){const[t,n]=u.useState(void 0);return Z$(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ml=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(eN);if(i){const a=i.props.children,s=o.map(l=>l===i?u.Children.count(a)>1?u.Children.only(null):u.isValidElement(a)?a.props.children:null:l);return w.jsx(Rf,{...r,ref:t,children:u.isValidElement(a)?u.cloneElement(a,void 0,s):null})}return w.jsx(Rf,{...r,ref:t,children:n})});ml.displayName="Slot";var Rf=u.forwardRef((e,t)=>{const{children:n,...r}=e;if(u.isValidElement(n)){const o=nN(n);return u.cloneElement(n,{...tN(r,n.props),ref:t?Dx(t,o):o})}return u.Children.count(n)>1?u.Children.only(null):null});Rf.displayName="SlotClone";var q$=({children:e})=>w.jsx(w.Fragment,{children:e});function eN(e){return u.isValidElement(e)&&e.type===q$}function tN(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function nN(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Gl=rN.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?ml:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(s,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function oN(e){const t=e+"CollectionProvider",[n,r]=Lx(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:x,children:m}=h,b=Oe.useRef(null),g=Oe.useRef(new Map).current;return w.jsx(o,{scope:x,itemMap:g,collectionRef:b,children:m})};a.displayName=t;const s=e+"CollectionSlot",l=Oe.forwardRef((h,x)=>{const{scope:m,children:b}=h,g=i(s,m),v=Vr(x,g.collectionRef);return w.jsx(ml,{ref:v,children:b})});l.displayName=s;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Oe.forwardRef((h,x)=>{const{scope:m,children:b,...g}=h,v=Oe.useRef(null),y=Vr(x,v),S=i(c,m);return Oe.useEffect(()=>(S.itemMap.set(v,{ref:v,...g}),()=>void S.itemMap.delete(v))),w.jsx(ml,{[d]:"",ref:y,children:b})});f.displayName=c;function p(h){const x=i(e+"CollectionConsumer",h);return Oe.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const g=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((S,P)=>g.indexOf(S.ref.current)-g.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},p,r]}var Fx=["PageUp","PageDown"],jx=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],zx={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ri="Slider",[$f,iN,aN]=oN(ri),[Ux,g_]=Lx(ri,[aN]),[sN,Yl]=Ux(ri),Bx=u.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:d,onValueChange:f=()=>{},onValueCommit:p=()=>{},inverted:h=!1,...x}=e,m=u.useRef(new Set),b=u.useRef(0),v=a==="horizontal"?lN:cN,[y=[],S]=K$({prop:d,defaultProp:c,onChange:T=>{var L;(L=[...m.current][b.current])==null||L.focus(),f(T)}}),P=u.useRef(y);function N(T){const I=mN(y,T);O(T,I)}function R(T){O(T,b.current)}function E(){const T=P.current[b.current];y[b.current]!==T&&p(y)}function O(T,I,{commit:L}={commit:!1}){const q=yN(i),W=xN(Math.round((T-r)/i)*i+r,q),X=Ax(W,[r,o]);S((ee=[])=>{const Z=dN(ee,X,I);if(gN(Z,l*i)){b.current=Z.indexOf(X);const D=String(Z)!==String(ee);return D&&L&&p(Z),D?Z:ee}else return ee})}return w.jsx(sN,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:o,valueIndexToChangeRef:b,thumbs:m.current,values:y,orientation:a,children:w.jsx($f.Provider,{scope:e.__scopeSlider,children:w.jsx($f.Slot,{scope:e.__scopeSlider,children:w.jsx(v,{"aria-disabled":s,"data-disabled":s?"":void 0,...x,ref:t,onPointerDown:So(x.onPointerDown,()=>{s||(P.current=y)}),min:r,max:o,inverted:h,onSlideStart:s?void 0:N,onSlideMove:s?void 0:R,onSlideEnd:s?void 0:E,onHomeKeyDown:()=>!s&&O(r,0,{commit:!0}),onEndKeyDown:()=>!s&&O(o,y.length-1,{commit:!0}),onStepKeyDown:({event:T,direction:I})=>{if(!s){const W=Fx.includes(T.key)||T.shiftKey&&jx.includes(T.key)?10:1,X=b.current,ee=y[X],Z=i*W*I;O(ee+Z,X,{commit:!0})}}})})})})});Bx.displayName=ri;var[Wx,Vx]=Ux(ri,{startEdge:"left",endEdge:"right",size:"width",direction:1}),lN=u.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...d}=e,[f,p]=u.useState(null),h=Vr(t,y=>p(y)),x=u.useRef(),m=X$(o),b=m==="ltr",g=b&&!i||!b&&i;function v(y){const S=x.current||f.getBoundingClientRect(),P=[0,S.width],R=vp(P,g?[n,r]:[r,n]);return x.current=S,R(y-S.left)}return w.jsx(Wx,{scope:e.__scopeSlider,startEdge:g?"left":"right",endEdge:g?"right":"left",direction:g?1:-1,size:"width",children:w.jsx(Hx,{dir:m,"data-orientation":"horizontal",...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:y=>{const S=v(y.clientX);a==null||a(S)},onSlideMove:y=>{const S=v(y.clientX);s==null||s(S)},onSlideEnd:()=>{x.current=void 0,l==null||l()},onStepKeyDown:y=>{const P=zx[g?"from-left":"from-right"].includes(y.key);c==null||c({event:y,direction:P?-1:1})}})})}),cN=u.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...c}=e,d=u.useRef(null),f=Vr(t,d),p=u.useRef(),h=!o;function x(m){const b=p.current||d.current.getBoundingClientRect(),g=[0,b.height],y=vp(g,h?[r,n]:[n,r]);return p.current=b,y(m-b.top)}return w.jsx(Wx,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:w.jsx(Hx,{"data-orientation":"vertical",...c,ref:f,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const b=x(m.clientY);i==null||i(b)},onSlideMove:m=>{const b=x(m.clientY);a==null||a(b)},onSlideEnd:()=>{p.current=void 0,s==null||s()},onStepKeyDown:m=>{const g=zx[h?"from-bottom":"from-top"].includes(m.key);l==null||l({event:m,direction:g?-1:1})}})})}),Hx=u.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,d=Yl(ri,n);return w.jsx(Gl.span,{...c,ref:t,onKeyDown:So(e.onKeyDown,f=>{f.key==="Home"?(a(f),f.preventDefault()):f.key==="End"?(s(f),f.preventDefault()):Fx.concat(jx).includes(f.key)&&(l(f),f.preventDefault())}),onPointerDown:So(e.onPointerDown,f=>{const p=f.target;p.setPointerCapture(f.pointerId),f.preventDefault(),d.thumbs.has(p)?p.focus():r(f)}),onPointerMove:So(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&o(f)}),onPointerUp:So(e.onPointerUp,f=>{const p=f.target;p.hasPointerCapture(f.pointerId)&&(p.releasePointerCapture(f.pointerId),i(f))})})}),Kx="SliderTrack",Gx=u.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Yl(Kx,n);return w.jsx(Gl.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});Gx.displayName=Kx;var Nf="SliderRange",Yx=u.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Yl(Nf,n),i=Vx(Nf,n),a=u.useRef(null),s=Vr(t,a),l=o.values.length,c=o.values.map(p=>Qx(p,o.min,o.max)),d=l>1?Math.min(...c):0,f=100-Math.max(...c);return w.jsx(Gl.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:s,style:{...e.style,[i.startEdge]:d+"%",[i.endEdge]:f+"%"}})});Yx.displayName=Nf;var _f="SliderThumb",Xx=u.forwardRef((e,t)=>{const n=iN(e.__scopeSlider),[r,o]=u.useState(null),i=Vr(t,s=>o(s)),a=u.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return w.jsx(uN,{...e,ref:i,index:a})}),uN=u.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...i}=e,a=Yl(_f,n),s=Vx(_f,n),[l,c]=u.useState(null),d=Vr(t,v=>c(v)),f=l?!!l.closest("form"):!0,p=J$(l),h=a.values[r],x=h===void 0?0:Qx(h,a.min,a.max),m=pN(r,a.values.length),b=p==null?void 0:p[s.size],g=b?hN(b,x,s.direction):0;return u.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),w.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${x}% + ${g}px)`},children:[w.jsx($f.ItemSlot,{scope:e.__scopeSlider,children:w.jsx(Gl.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":a.min,"aria-valuenow":h,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...i,ref:d,style:h===void 0?{display:"none"}:e.style,onFocus:So(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})})}),f&&w.jsx(fN,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),value:h},r)]})});Xx.displayName=_f;var fN=e=>{const{value:t,...n}=e,r=u.useRef(null),o=Q$(t);return u.useEffect(()=>{const i=r.current,a=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(a,"value").set;if(o!==t&&l){const c=new Event("input",{bubbles:!0});l.call(i,t),i.dispatchEvent(c)}},[o,t]),w.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function dN(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function Qx(e,t,n){const i=100/(n-t)*(e-t);return Ax(i,[0,100])}function pN(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function mN(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function hN(e,t,n){const r=e/2,i=vp([0,50],[0,r]);return(r-i(t)*n)*n}function vN(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function gN(e,t){if(t>0){const n=vN(e);return Math.min(...n)>=t}return!0}function vp(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function yN(e){return(String(e).split(".")[1]||"").length}function xN(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Zx=Bx,wN=Gx,bN=Yx,SN=Xx;const Jx=u.forwardRef(({className:e,...t},n)=>w.jsxs(Zx,{ref:n,className:he("relative flex w-full touch-none select-none items-center",e),...t,children:[w.jsx(wN,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:w.jsx(bN,{className:"absolute h-full bg-primary"})}),w.jsx(SN,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Jx.displayName=Zx.displayName;function cs({label:e,unit:t,value:n,min:r,max:o,onChange:i}){return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"flex justify-between my-4",children:[w.jsx(pl,{children:e}),w.jsx(pl,{children:`${n} ${n>1?t+"s":t}`})]}),w.jsx(Jx,{value:[n],min:r,max:o,step:1,onValueChange:a=>i(a[0])})]})}function gv({timerSettings:e,onSaveTimerSettings:t}){const[n,r]=u.useState(!1),[o,i]=u.useState({pomodoro:e.pomodoro/60,shortBreak:e.shortBreak/60,longBreak:e.longBreak/60,sessionRounds:e.sessionRounds});u.useEffect(()=>{i({pomodoro:e.pomodoro/60,shortBreak:e.shortBreak/60,longBreak:e.longBreak/60,sessionRounds:e.sessionRounds})},[e]);const a=(l,c)=>{i(d=>({...d,[l]:c}))},s=()=>{t({pomodoro:o.pomodoro*60,shortBreak:o.shortBreak*60,longBreak:o.longBreak*60,sessionRounds:o.sessionRounds}),r(!1)};return w.jsxs(_$,{open:n,onOpenChange:r,children:[w.jsx(T$,{children:w.jsxs(tt,{variant:"ghost",children:[w.jsx(yt,{icon:I$,size:"lg",className:"mr-2"}),"Customize"]})}),w.jsxs($x,{children:[w.jsxs(Nx,{children:[w.jsx(Tx,{className:"mb-2",children:"Settings"}),w.jsx(ua,{})]}),w.jsxs(Mx,{children:[w.jsx(cs,{label:"Pomodoro",unit:"minute",value:o.pomodoro,min:1,max:60,onChange:l=>a("pomodoro",l)}),w.jsx(cs,{label:"Short Break",unit:"minute",value:o.shortBreak,min:1,max:30,onChange:l=>a("shortBreak",l)}),w.jsx(cs,{label:"Long Break",unit:"minute",value:o.longBreak,min:1,max:60,onChange:l=>a("longBreak",l)}),w.jsx(cs,{label:"Session Rounds",unit:"round",value:o.sessionRounds,min:1,max:10,onChange:l=>a("sessionRounds",l)})]}),w.jsx(_x,{className:"mt-4 flex justify-center",children:w.jsx(tt,{onClick:s,children:"Save Changes"})})]})]})}function qx(){return w.jsxs(Dd,{to:"/Focus-Fox/",className:"flex items-center justify-center",children:[w.jsx("img",{className:"w-10",src:"https://res.cloudinary.com/grffn/image/upload/v1716236444/Focus-Fox/logo.png",alt:"Focus Fox Logo"}),w.jsx("p",{className:"font-bold",children:"Focus Fox"})]})}const EN=u.forwardRef(function({scrollToHowToUse:t,timerSettings:n,onSaveTimerSettings:r},o){const[i,a]=u.useState(!1);return w.jsxs(w.Fragment,{children:[w.jsxs("nav",{ref:o,className:"relative mx-auto max-w-3xl",children:[w.jsxs("div",{className:"flex items-center justify-between p-4",children:[w.jsx(qx,{}),w.jsx("div",{className:"sm:hidden",children:w.jsx("button",{onClick:()=>a(!i),"aria-label":"Toggle menu",children:i?w.jsx(yt,{icon:z$,className:"w-6 h-6"}):w.jsx(yt,{icon:A$,className:"w-6 h-6"})})}),w.jsxs("div",{className:"hidden sm:flex space-x-4 items-center",children:[w.jsxs(tt,{variant:"ghost",onClick:t,children:[w.jsx(yt,{icon:vv,size:"lg",className:"mr-2"}),"How to Use"]}),w.jsx(gv,{timerSettings:n,onSaveTimerSettings:r}),w.jsx(Ef,{variant:"ghost"}),w.jsx(Mh,{})]})]}),i&&w.jsxs("div",{className:"sm:hidden flex flex-col items-center space-y-4 mb-4",children:[w.jsxs(tt,{variant:"ghost",onClick:t,children:[w.jsx(yt,{icon:vv,size:"lg",className:"mr-2"}),"How to Use"]}),w.jsx(gv,{timerSettings:n,onSaveTimerSettings:r}),w.jsx(Ef,{variant:"ghost"}),w.jsx(Mh,{})]})]}),w.jsx(ua,{className:"m-auto block max-w-3xl"})]})}),ew="Tabs",[CN,y_]=Zo(ew,[Fl]),tw=Fl(),[PN,gp]=CN(ew),kN=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...c}=e,d=Fd(s),[f,p]=Id({prop:r,onChange:o,defaultProp:i});return u.createElement(PN,{scope:n,baseId:nl(),value:f,onValueChange:p,orientation:a,dir:d,activationMode:l},u.createElement(Ve.div,G({dir:d,"data-orientation":a},c,{ref:t})))}),RN="TabsList",$N=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=gp(RN,n),a=tw(n);return u.createElement(Cy,G({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),u.createElement(Ve.div,G({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))}),NN="TabsTrigger",_N=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=gp(NN,n),s=tw(n),l=nw(a.baseId,r),c=rw(a.baseId,r),d=r===a.value;return u.createElement(Py,G({asChild:!0},s,{focusable:!o,active:d}),u.createElement(Ve.button,G({type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},i,{ref:t,onMouseDown:ae(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?a.onValueChange(r):f.preventDefault()}),onKeyDown:ae(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&a.onValueChange(r)}),onFocus:ae(e.onFocus,()=>{const f=a.activationMode!=="manual";!d&&!o&&f&&a.onValueChange(r)})})))}),TN="TabsContent",MN=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,s=gp(TN,n),l=nw(s.baseId,r),c=rw(s.baseId,r),d=r===s.value,f=u.useRef(d);return u.useEffect(()=>{const p=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(p)},[]),u.createElement(ti,{present:o||d},({present:p})=>u.createElement(Ve.div,G({"data-state":d?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!p,id:c,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),p&&i))});function nw(e,t){return`${e}-trigger-${t}`}function rw(e,t){return`${e}-content-${t}`}const ON=kN,ow=$N,iw=_N,aw=MN,AN=ON,sw=u.forwardRef(({className:e,...t},n)=>w.jsx(ow,{ref:n,className:he("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));sw.displayName=ow.displayName;const Rs=u.forwardRef(({className:e,...t},n)=>w.jsx(iw,{ref:n,className:he("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Rs.displayName=iw.displayName;const $s=u.forwardRef(({className:e,...t},n)=>w.jsx(aw,{ref:n,className:he("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));$s.displayName=aw.displayName;const lw=u.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:he("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));lw.displayName="Card";const DN=u.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:he("flex flex-col space-y-1.5 p-6",e),...t}));DN.displayName="CardHeader";const LN=u.forwardRef(({className:e,...t},n)=>w.jsx("h3",{ref:n,className:he("text-2xl font-semibold leading-none tracking-tight",e),...t}));LN.displayName="CardTitle";const IN=u.forwardRef(({className:e,...t},n)=>w.jsx("p",{ref:n,className:he("text-sm text-muted-foreground",e),...t}));IN.displayName="CardDescription";const cw=u.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:he("p-6 pt-0",e),...t}));cw.displayName="CardContent";const uw=u.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:he("flex items-center p-6 pt-0",e),...t}));uw.displayName="CardFooter";function qc({time:e,isActive:t,onClick:n,onReset:r,buttonText:o,disabled:i}){return w.jsxs(lw,{children:[w.jsx(cw,{className:"mt-6 flex items-center justify-center",children:w.jsx(pl,{htmlFor:"timer",className:"text-8xl font-bold",children:e})}),w.jsxs(uw,{className:"flex justify-center relative",children:[w.jsx(tt,{className:"w-32 mx-auto "+i,variant:t?"secondary":"default",onClick:n,children:o}),o!=="Start"&&w.jsx(tt,{className:"w-12 absolute right-8",variant:"ghost",onClick:r,children:w.jsx(yt,{icon:F$,className:"fa-lg"})})]})]})}function FN(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:h,...x}=f,m=(p==null?void 0:p[e][l])||s,b=u.useMemo(()=>x,Object.values(x));return w.jsx(m.Provider,{value:b,children:h})}function d(f,p){const h=(p==null?void 0:p[e][l])||s,x=u.useContext(h);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}const o=()=>{const i=n.map(a=>u.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,jN(o,...t)]}function jN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function zN(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function UN(...e){return t=>e.forEach(n=>zN(n,t))}var fw=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(WN);if(i){const a=i.props.children,s=o.map(l=>l===i?u.Children.count(a)>1?u.Children.only(null):u.isValidElement(a)?a.props.children:null:l);return w.jsx(Tf,{...r,ref:t,children:u.isValidElement(a)?u.cloneElement(a,void 0,s):null})}return w.jsx(Tf,{...r,ref:t,children:n})});fw.displayName="Slot";var Tf=u.forwardRef((e,t)=>{const{children:n,...r}=e;if(u.isValidElement(n)){const o=HN(n);return u.cloneElement(n,{...VN(r,n.props),ref:t?UN(t,o):o})}return u.Children.count(n)>1?u.Children.only(null):null});Tf.displayName="SlotClone";var BN=({children:e})=>w.jsx(w.Fragment,{children:e});function WN(e){return u.isValidElement(e)&&e.type===BN}function VN(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function HN(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var KN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],dw=KN.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?fw:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(s,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),yp="Progress",xp=100,[GN,x_]=FN(yp),[YN,XN]=GN(yp),pw=u.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=QN,...a}=e;(o||o===0)&&!yv(o)&&console.error(ZN(`${o}`,"Progress"));const s=yv(o)?o:xp;r!==null&&!xv(r,s)&&console.error(JN(`${r}`,"Progress"));const l=xv(r,s)?r:null,c=hl(l)?i(l,s):void 0;return w.jsx(YN,{scope:n,value:l,max:s,children:w.jsx(dw.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":hl(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":vw(l,s),"data-value":l??void 0,"data-max":s,...a,ref:t})})});pw.displayName=yp;var mw="ProgressIndicator",hw=u.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=XN(mw,n);return w.jsx(dw.div,{"data-state":vw(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});hw.displayName=mw;function QN(e,t){return`${Math.round(e/t*100)}%`}function vw(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function hl(e){return typeof e=="number"}function yv(e){return hl(e)&&!isNaN(e)&&e>0}function xv(e,t){return hl(e)&&!isNaN(e)&&e<=t&&e>=0}function ZN(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${xp}\`.`}function JN(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},P$="DialogDescriptionWarning",k$=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ex(P$).contentName}}.`;return u.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},R$=cx,$$=fx,N$=px,Cx=mx,Px=hx,kx=gx,Rx=xx,_$=bx;const T$=R$,M$=$$,O$=N$,$x=u.forwardRef(({className:e,...t},n)=>w.jsx(Cx,{ref:n,className:he("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));$x.displayName=Cx.displayName;const Nx=u.forwardRef(({className:e,children:t,...n},r)=>w.jsxs(O$,{children:[w.jsx($x,{}),w.jsxs(Px,{ref:r,className:he("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,w.jsxs(_$,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[w.jsx(OC,{className:"h-4 w-4"}),w.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Nx.displayName=Px.displayName;const _x=({className:e,...t})=>w.jsx("div",{className:he("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});_x.displayName="DialogHeader";const Tx=({className:e,...t})=>w.jsx("div",{className:he("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Tx.displayName="DialogFooter";const Mx=u.forwardRef(({className:e,...t},n)=>w.jsx(kx,{ref:n,className:he("text-lg font-semibold leading-none tracking-tight",e),...t}));Mx.displayName=kx.displayName;const Ox=u.forwardRef(({className:e,...t},n)=>w.jsx(Rx,{ref:n,className:he("text-sm text-muted-foreground",e),...t}));Ox.displayName=Rx.displayName;const A$={prefix:"fas",iconName:"fingerprint",icon:[512,512,[],"f577","M48 256C48 141.1 141.1 48 256 48c63.1 0 119.6 28.1 157.8 72.5c8.6 10.1 23.8 11.2 33.8 2.6s11.2-23.8 2.6-33.8C403.3 34.6 333.7 0 256 0C114.6 0 0 114.6 0 256l0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40zm458.5-52.9c-2.7-13-15.5-21.3-28.4-18.5s-21.3 15.5-18.5 28.4c2.9 13.9 4.5 28.3 4.5 43.1l0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40c0-18.1-1.9-35.8-5.5-52.9zM256 80c-19 0-37.4 3-54.5 8.6c-15.2 5-18.7 23.7-8.3 35.9c7.1 8.3 18.8 10.8 29.4 7.9c10.6-2.9 21.8-4.4 33.4-4.4c70.7 0 128 57.3 128 128l0 24.9c0 25.2-1.5 50.3-4.4 75.3c-1.7 14.6 9.4 27.8 24.2 27.8c11.8 0 21.9-8.6 23.3-20.3c3.3-27.4 5-55 5-82.7l0-24.9c0-97.2-78.8-176-176-176zM150.7 148.7c-9.1-10.6-25.3-11.4-33.9-.4C93.7 178 80 215.4 80 256l0 24.9c0 24.2-2.6 48.4-7.8 71.9C68.8 368.4 80.1 384 96.1 384c10.5 0 19.9-7 22.2-17.3c6.4-28.1 9.7-56.8 9.7-85.8l0-24.9c0-27.2 8.5-52.4 22.9-73.1c7.2-10.4 8-24.6-.2-34.2zM256 160c-53 0-96 43-96 96l0 24.9c0 35.9-4.6 71.5-13.8 106.1c-3.8 14.3 6.7 29 21.5 29c9.5 0 17.9-6.2 20.4-15.4c10.5-39 15.9-79.2 15.9-119.7l0-24.9c0-28.7 23.3-52 52-52s52 23.3 52 52l0 24.9c0 36.3-3.5 72.4-10.4 107.9c-2.7 13.9 7.7 27.2 21.8 27.2c10.2 0 19-7 21-17c7.7-38.8 11.6-78.3 11.6-118.1l0-24.9c0-53-43-96-96-96zm24 96c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 24.9c0 59.9-11 119.3-32.5 175.2l-5.9 15.3c-4.8 12.4 1.4 26.3 13.8 31s26.3-1.4 31-13.8l5.9-15.3C267.9 411.9 280 346.7 280 280.9l0-24.9z"]},D$={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},L$={prefix:"fas",iconName:"asterisk",icon:[384,512,[10033,61545],"2a","M192 32c17.7 0 32 14.3 32 32l0 135.5 111.5-66.9c15.2-9.1 34.8-4.2 43.9 11s4.2 34.8-11 43.9L254.2 256l114.3 68.6c15.2 9.1 20.1 28.7 11 43.9s-28.7 20.1-43.9 11L224 312.5 224 448c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-135.5L48.5 379.4c-15.2 9.1-34.8 4.2-43.9-11s-4.2-34.8 11-43.9L129.8 256 15.5 187.4c-15.2-9.1-20.1-28.7-11-43.9s28.7-20.1 43.9-11L160 199.5 160 64c0-17.7 14.3-32 32-32z"]},I$={prefix:"fas",iconName:"circle-chevron-up",icon:[512,512,["chevron-circle-up"],"f139","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM377 271c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-87-87-87 87c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 167c9.4-9.4 24.6-9.4 33.9 0L377 271z"]},gv={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},F$={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},j$={prefix:"fas",iconName:"forward",icon:[512,512,[9193],"f04e","M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416L0 96C0 83.6 7.2 72.3 18.4 67s24.5-3.6 34.1 4.4L224 214.3l0 41.7 0 41.7L52.5 440.6zM256 352l0-96 0-128 0-32c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4l192 160c7.3 6.1 11.5 15.1 11.5 24.6s-4.2 18.5-11.5 24.6l-192 160c-9.5 7.9-22.8 9.7-34.1 4.4s-18.4-16.6-18.4-29l0-64z"]},z$={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},U$=z$,B$={prefix:"fas",iconName:"mug-saucer",icon:[640,512,["coffee"],"f0f4","M96 64c0-17.7 14.3-32 32-32l320 0 64 0c70.7 0 128 57.3 128 128s-57.3 128-128 128l-32 0c0 53-43 96-96 96l-192 0c-53 0-96-43-96-96L96 64zM480 224l32 0c35.3 0 64-28.7 64-64s-28.7-64-64-64l-32 0 0 128zM32 416l512 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},W$=u.forwardRef((e,t)=>u.createElement(Ve.label,G({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),Ax=W$,V$=Q0("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ml=u.forwardRef(({className:e,...t},n)=>w.jsx(Ax,{ref:n,className:he(V$(),e),...t}));ml.displayName=Ax.displayName;function Dx(e,[t,n]){return Math.min(n,Math.max(t,e))}function So(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function H$(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Lx(...e){return t=>e.forEach(n=>H$(n,t))}function Vr(...e){return u.useCallback(Lx(...e),e)}function Ix(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:h,...x}=f,m=(p==null?void 0:p[e][l])||s,b=u.useMemo(()=>x,Object.values(x));return w.jsx(m.Provider,{value:b,children:h})}function d(f,p){const h=(p==null?void 0:p[e][l])||s,x=u.useContext(h);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}const o=()=>{const i=n.map(a=>u.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,K$(o,...t)]}function K$(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Fx(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function G$({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Y$({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=Fx(n),l=u.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[i,e,o,s]);return[a,l]}function Y$({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=Fx(t);return u.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var X$=u.createContext(void 0);function Q$(e){const t=u.useContext(X$);return e||t||"ltr"}function Z$(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var J$=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{};function q$(e){const[t,n]=u.useState(void 0);return J$(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var hl=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(tN);if(i){const a=i.props.children,s=o.map(l=>l===i?u.Children.count(a)>1?u.Children.only(null):u.isValidElement(a)?a.props.children:null:l);return w.jsx($f,{...r,ref:t,children:u.isValidElement(a)?u.cloneElement(a,void 0,s):null})}return w.jsx($f,{...r,ref:t,children:n})});hl.displayName="Slot";var $f=u.forwardRef((e,t)=>{const{children:n,...r}=e;if(u.isValidElement(n)){const o=rN(n);return u.cloneElement(n,{...nN(r,n.props),ref:t?Lx(t,o):o})}return u.Children.count(n)>1?u.Children.only(null):null});$f.displayName="SlotClone";var eN=({children:e})=>w.jsx(w.Fragment,{children:e});function tN(e){return u.isValidElement(e)&&e.type===eN}function nN(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function rN(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var oN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Yl=oN.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?hl:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(s,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function iN(e){const t=e+"CollectionProvider",[n,r]=Ix(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:x,children:m}=h,b=Oe.useRef(null),g=Oe.useRef(new Map).current;return w.jsx(o,{scope:x,itemMap:g,collectionRef:b,children:m})};a.displayName=t;const s=e+"CollectionSlot",l=Oe.forwardRef((h,x)=>{const{scope:m,children:b}=h,g=i(s,m),v=Vr(x,g.collectionRef);return w.jsx(hl,{ref:v,children:b})});l.displayName=s;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Oe.forwardRef((h,x)=>{const{scope:m,children:b,...g}=h,v=Oe.useRef(null),y=Vr(x,v),S=i(c,m);return Oe.useEffect(()=>(S.itemMap.set(v,{ref:v,...g}),()=>void S.itemMap.delete(v))),w.jsx(hl,{[d]:"",ref:y,children:b})});f.displayName=c;function p(h){const x=i(e+"CollectionConsumer",h);return Oe.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const g=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((S,P)=>g.indexOf(S.ref.current)-g.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},p,r]}var jx=["PageUp","PageDown"],zx=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ux={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ri="Slider",[Nf,aN,sN]=iN(ri),[Bx,y_]=Ix(ri,[sN]),[lN,Xl]=Bx(ri),Wx=u.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:d,onValueChange:f=()=>{},onValueCommit:p=()=>{},inverted:h=!1,...x}=e,m=u.useRef(new Set),b=u.useRef(0),v=a==="horizontal"?cN:uN,[y=[],S]=G$({prop:d,defaultProp:c,onChange:T=>{var L;(L=[...m.current][b.current])==null||L.focus(),f(T)}}),P=u.useRef(y);function N(T){const I=hN(y,T);O(T,I)}function R(T){O(T,b.current)}function E(){const T=P.current[b.current];y[b.current]!==T&&p(y)}function O(T,I,{commit:L}={commit:!1}){const q=xN(i),W=wN(Math.round((T-r)/i)*i+r,q),X=Dx(W,[r,o]);S((ee=[])=>{const Z=pN(ee,X,I);if(yN(Z,l*i)){b.current=Z.indexOf(X);const D=String(Z)!==String(ee);return D&&L&&p(Z),D?Z:ee}else return ee})}return w.jsx(lN,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:o,valueIndexToChangeRef:b,thumbs:m.current,values:y,orientation:a,children:w.jsx(Nf.Provider,{scope:e.__scopeSlider,children:w.jsx(Nf.Slot,{scope:e.__scopeSlider,children:w.jsx(v,{"aria-disabled":s,"data-disabled":s?"":void 0,...x,ref:t,onPointerDown:So(x.onPointerDown,()=>{s||(P.current=y)}),min:r,max:o,inverted:h,onSlideStart:s?void 0:N,onSlideMove:s?void 0:R,onSlideEnd:s?void 0:E,onHomeKeyDown:()=>!s&&O(r,0,{commit:!0}),onEndKeyDown:()=>!s&&O(o,y.length-1,{commit:!0}),onStepKeyDown:({event:T,direction:I})=>{if(!s){const W=jx.includes(T.key)||T.shiftKey&&zx.includes(T.key)?10:1,X=b.current,ee=y[X],Z=i*W*I;O(ee+Z,X,{commit:!0})}}})})})})});Wx.displayName=ri;var[Vx,Hx]=Bx(ri,{startEdge:"left",endEdge:"right",size:"width",direction:1}),cN=u.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...d}=e,[f,p]=u.useState(null),h=Vr(t,y=>p(y)),x=u.useRef(),m=Q$(o),b=m==="ltr",g=b&&!i||!b&&i;function v(y){const S=x.current||f.getBoundingClientRect(),P=[0,S.width],R=gp(P,g?[n,r]:[r,n]);return x.current=S,R(y-S.left)}return w.jsx(Vx,{scope:e.__scopeSlider,startEdge:g?"left":"right",endEdge:g?"right":"left",direction:g?1:-1,size:"width",children:w.jsx(Kx,{dir:m,"data-orientation":"horizontal",...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:y=>{const S=v(y.clientX);a==null||a(S)},onSlideMove:y=>{const S=v(y.clientX);s==null||s(S)},onSlideEnd:()=>{x.current=void 0,l==null||l()},onStepKeyDown:y=>{const P=Ux[g?"from-left":"from-right"].includes(y.key);c==null||c({event:y,direction:P?-1:1})}})})}),uN=u.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...c}=e,d=u.useRef(null),f=Vr(t,d),p=u.useRef(),h=!o;function x(m){const b=p.current||d.current.getBoundingClientRect(),g=[0,b.height],y=gp(g,h?[r,n]:[n,r]);return p.current=b,y(m-b.top)}return w.jsx(Vx,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:w.jsx(Kx,{"data-orientation":"vertical",...c,ref:f,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const b=x(m.clientY);i==null||i(b)},onSlideMove:m=>{const b=x(m.clientY);a==null||a(b)},onSlideEnd:()=>{p.current=void 0,s==null||s()},onStepKeyDown:m=>{const g=Ux[h?"from-bottom":"from-top"].includes(m.key);l==null||l({event:m,direction:g?-1:1})}})})}),Kx=u.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,d=Xl(ri,n);return w.jsx(Yl.span,{...c,ref:t,onKeyDown:So(e.onKeyDown,f=>{f.key==="Home"?(a(f),f.preventDefault()):f.key==="End"?(s(f),f.preventDefault()):jx.concat(zx).includes(f.key)&&(l(f),f.preventDefault())}),onPointerDown:So(e.onPointerDown,f=>{const p=f.target;p.setPointerCapture(f.pointerId),f.preventDefault(),d.thumbs.has(p)?p.focus():r(f)}),onPointerMove:So(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&o(f)}),onPointerUp:So(e.onPointerUp,f=>{const p=f.target;p.hasPointerCapture(f.pointerId)&&(p.releasePointerCapture(f.pointerId),i(f))})})}),Gx="SliderTrack",Yx=u.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Xl(Gx,n);return w.jsx(Yl.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});Yx.displayName=Gx;var _f="SliderRange",Xx=u.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Xl(_f,n),i=Hx(_f,n),a=u.useRef(null),s=Vr(t,a),l=o.values.length,c=o.values.map(p=>Zx(p,o.min,o.max)),d=l>1?Math.min(...c):0,f=100-Math.max(...c);return w.jsx(Yl.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:s,style:{...e.style,[i.startEdge]:d+"%",[i.endEdge]:f+"%"}})});Xx.displayName=_f;var Tf="SliderThumb",Qx=u.forwardRef((e,t)=>{const n=aN(e.__scopeSlider),[r,o]=u.useState(null),i=Vr(t,s=>o(s)),a=u.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return w.jsx(fN,{...e,ref:i,index:a})}),fN=u.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...i}=e,a=Xl(Tf,n),s=Hx(Tf,n),[l,c]=u.useState(null),d=Vr(t,v=>c(v)),f=l?!!l.closest("form"):!0,p=q$(l),h=a.values[r],x=h===void 0?0:Zx(h,a.min,a.max),m=mN(r,a.values.length),b=p==null?void 0:p[s.size],g=b?vN(b,x,s.direction):0;return u.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),w.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${x}% + ${g}px)`},children:[w.jsx(Nf.ItemSlot,{scope:e.__scopeSlider,children:w.jsx(Yl.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":a.min,"aria-valuenow":h,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...i,ref:d,style:h===void 0?{display:"none"}:e.style,onFocus:So(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})})}),f&&w.jsx(dN,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),value:h},r)]})});Qx.displayName=Tf;var dN=e=>{const{value:t,...n}=e,r=u.useRef(null),o=Z$(t);return u.useEffect(()=>{const i=r.current,a=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(a,"value").set;if(o!==t&&l){const c=new Event("input",{bubbles:!0});l.call(i,t),i.dispatchEvent(c)}},[o,t]),w.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function pN(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function Zx(e,t,n){const i=100/(n-t)*(e-t);return Dx(i,[0,100])}function mN(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function hN(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function vN(e,t,n){const r=e/2,i=gp([0,50],[0,r]);return(r-i(t)*n)*n}function gN(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function yN(e,t){if(t>0){const n=gN(e);return Math.min(...n)>=t}return!0}function gp(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function xN(e){return(String(e).split(".")[1]||"").length}function wN(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Jx=Wx,bN=Yx,SN=Xx,EN=Qx;const qx=u.forwardRef(({className:e,...t},n)=>w.jsxs(Jx,{ref:n,className:he("relative flex w-full touch-none select-none items-center",e),...t,children:[w.jsx(bN,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:w.jsx(SN,{className:"absolute h-full bg-primary"})}),w.jsx(EN,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));qx.displayName=Jx.displayName;function us({label:e,unit:t,value:n,min:r,max:o,onChange:i}){return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"flex justify-between my-4",children:[w.jsx(ml,{children:e}),w.jsx(ml,{children:`${n} ${n>1?t+"s":t}`})]}),w.jsx(qx,{value:[n],min:r,max:o,step:1,onValueChange:a=>i(a[0])})]})}const Ri={pomodoro:25*60,shortBreak:5*60,longBreak:15*60,sessionRounds:4};function yv({timerSettings:e,onSaveTimerSettings:t}){const[n,r]=u.useState(!1),[o,i]=u.useState({pomodoro:e.pomodoro/60,shortBreak:e.shortBreak/60,longBreak:e.longBreak/60,sessionRounds:e.sessionRounds});u.useEffect(()=>{i({pomodoro:e.pomodoro/60,shortBreak:e.shortBreak/60,longBreak:e.longBreak/60,sessionRounds:e.sessionRounds})},[e]);const a=(c,d)=>{i(f=>({...f,[c]:d}))},s=()=>{i({pomodoro:Ri.pomodoro/60,shortBreak:Ri.shortBreak/60,longBreak:Ri.longBreak/60,sessionRounds:Ri.sessionRounds})},l=()=>{t({pomodoro:o.pomodoro*60,shortBreak:o.shortBreak*60,longBreak:o.longBreak*60,sessionRounds:o.sessionRounds}),r(!1)};return w.jsxs(T$,{open:n,onOpenChange:r,children:[w.jsx(M$,{asChild:!0,children:w.jsxs(Ye,{variant:"ghost",children:[w.jsx(yt,{icon:F$,size:"lg",className:"mr-2"}),"Customize"]})}),w.jsxs(Nx,{children:[w.jsxs(_x,{children:[w.jsx(Mx,{className:"mb-2",children:"Settings"}),w.jsx(fa,{})]}),w.jsxs(Ox,{children:[w.jsx(us,{label:"Pomodoro",unit:"minute",value:o.pomodoro,min:1,max:60,onChange:c=>a("pomodoro",c)}),w.jsx(us,{label:"Short Break",unit:"minute",value:o.shortBreak,min:1,max:30,onChange:c=>a("shortBreak",c)}),w.jsx(us,{label:"Long Break",unit:"minute",value:o.longBreak,min:1,max:60,onChange:c=>a("longBreak",c)}),w.jsx(us,{label:"Session Rounds",unit:"round",value:o.sessionRounds,min:1,max:10,onChange:c=>a("sessionRounds",c)})]}),w.jsxs(Tx,{className:"mt-4 flex justify-center gap-2",children:[w.jsx(Ye,{variant:"secondary",onClick:s,children:"Reset to Default"}),w.jsx(Ye,{onClick:l,children:"Save Changes"})]})]})]})}function ew(){return w.jsxs(Ld,{to:"/Focus-Fox/",className:"flex items-center justify-center",children:[w.jsx("img",{className:"w-10",src:"https://res.cloudinary.com/grffn/image/upload/v1716236444/Focus-Fox/logo.png",alt:"Focus Fox Logo"}),w.jsx("p",{className:"font-bold",children:"Focus Fox"})]})}const CN=u.forwardRef(function({scrollToHowToUse:t,timerSettings:n,onSaveTimerSettings:r},o){const[i,a]=u.useState(!1);return w.jsxs(w.Fragment,{children:[w.jsxs("nav",{ref:o,className:"relative mx-auto max-w-3xl",children:[w.jsxs("div",{className:"flex items-center justify-between p-4",children:[w.jsx(ew,{}),w.jsx("div",{className:"sm:hidden",children:w.jsx("button",{onClick:()=>a(!i),"aria-label":"Toggle menu",children:i?w.jsx(yt,{icon:U$,className:"w-6 h-6"}):w.jsx(yt,{icon:D$,className:"w-6 h-6"})})}),w.jsxs("div",{className:"hidden sm:flex space-x-4 items-center",children:[w.jsxs(Ye,{variant:"ghost",onClick:t,children:[w.jsx(yt,{icon:gv,size:"lg",className:"mr-2"}),"How to Use"]}),w.jsx(yv,{timerSettings:n,onSaveTimerSettings:r}),w.jsx(Cf,{variant:"ghost"}),w.jsx(Oh,{})]})]}),i&&w.jsxs("div",{className:"sm:hidden flex flex-col items-center space-y-4 mb-4",children:[w.jsxs(Ye,{variant:"ghost",onClick:t,children:[w.jsx(yt,{icon:gv,size:"lg",className:"mr-2"}),"How to Use"]}),w.jsx(yv,{timerSettings:n,onSaveTimerSettings:r}),w.jsx(Cf,{variant:"ghost"}),w.jsx(Oh,{})]})]}),w.jsx(fa,{className:"m-auto block max-w-3xl"})]})}),tw="Tabs",[PN,x_]=Zo(tw,[jl]),nw=jl(),[kN,yp]=PN(tw),RN=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...c}=e,d=jd(s),[f,p]=Fd({prop:r,onChange:o,defaultProp:i});return u.createElement(kN,{scope:n,baseId:rl(),value:f,onValueChange:p,orientation:a,dir:d,activationMode:l},u.createElement(Ve.div,G({dir:d,"data-orientation":a},c,{ref:t})))}),$N="TabsList",NN=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=yp($N,n),a=nw(n);return u.createElement(Py,G({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),u.createElement(Ve.div,G({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))}),_N="TabsTrigger",TN=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=yp(_N,n),s=nw(n),l=rw(a.baseId,r),c=ow(a.baseId,r),d=r===a.value;return u.createElement(ky,G({asChild:!0},s,{focusable:!o,active:d}),u.createElement(Ve.button,G({type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},i,{ref:t,onMouseDown:ae(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?a.onValueChange(r):f.preventDefault()}),onKeyDown:ae(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&a.onValueChange(r)}),onFocus:ae(e.onFocus,()=>{const f=a.activationMode!=="manual";!d&&!o&&f&&a.onValueChange(r)})})))}),MN="TabsContent",ON=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,s=yp(MN,n),l=rw(s.baseId,r),c=ow(s.baseId,r),d=r===s.value,f=u.useRef(d);return u.useEffect(()=>{const p=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(p)},[]),u.createElement(ti,{present:o||d},({present:p})=>u.createElement(Ve.div,G({"data-state":d?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!p,id:c,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),p&&i))});function rw(e,t){return`${e}-trigger-${t}`}function ow(e,t){return`${e}-content-${t}`}const AN=RN,iw=NN,aw=TN,sw=ON,DN=AN,lw=u.forwardRef(({className:e,...t},n)=>w.jsx(iw,{ref:n,className:he("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));lw.displayName=iw.displayName;const $s=u.forwardRef(({className:e,...t},n)=>w.jsx(aw,{ref:n,className:he("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));$s.displayName=aw.displayName;const Ns=u.forwardRef(({className:e,...t},n)=>w.jsx(sw,{ref:n,className:he("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Ns.displayName=sw.displayName;const cw=u.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:he("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));cw.displayName="Card";const LN=u.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:he("flex flex-col space-y-1.5 p-6",e),...t}));LN.displayName="CardHeader";const IN=u.forwardRef(({className:e,...t},n)=>w.jsx("h3",{ref:n,className:he("text-2xl font-semibold leading-none tracking-tight",e),...t}));IN.displayName="CardTitle";const FN=u.forwardRef(({className:e,...t},n)=>w.jsx("p",{ref:n,className:he("text-sm text-muted-foreground",e),...t}));FN.displayName="CardDescription";const uw=u.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:he("p-6 pt-0",e),...t}));uw.displayName="CardContent";const fw=u.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:he("flex items-center p-6 pt-0",e),...t}));fw.displayName="CardFooter";function eu({time:e,isActive:t,onClick:n,onReset:r,buttonText:o,disabled:i}){return w.jsxs(cw,{children:[w.jsx(uw,{className:"mt-6 flex items-center justify-center",children:w.jsx(ml,{htmlFor:"timer",className:"text-8xl font-bold",children:e})}),w.jsxs(fw,{className:"flex justify-center relative",children:[w.jsx(Ye,{className:"w-32 mx-auto "+i,variant:t?"secondary":"default",onClick:n,children:o}),o!=="Start"&&w.jsx(Ye,{className:"w-12 absolute right-8",variant:"ghost",onClick:r,children:w.jsx(yt,{icon:j$,className:"fa-lg"})})]})]})}function jN(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:h,...x}=f,m=(p==null?void 0:p[e][l])||s,b=u.useMemo(()=>x,Object.values(x));return w.jsx(m.Provider,{value:b,children:h})}function d(f,p){const h=(p==null?void 0:p[e][l])||s,x=u.useContext(h);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}const o=()=>{const i=n.map(a=>u.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,zN(o,...t)]}function zN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function UN(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function BN(...e){return t=>e.forEach(n=>UN(n,t))}var dw=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(VN);if(i){const a=i.props.children,s=o.map(l=>l===i?u.Children.count(a)>1?u.Children.only(null):u.isValidElement(a)?a.props.children:null:l);return w.jsx(Mf,{...r,ref:t,children:u.isValidElement(a)?u.cloneElement(a,void 0,s):null})}return w.jsx(Mf,{...r,ref:t,children:n})});dw.displayName="Slot";var Mf=u.forwardRef((e,t)=>{const{children:n,...r}=e;if(u.isValidElement(n)){const o=KN(n);return u.cloneElement(n,{...HN(r,n.props),ref:t?BN(t,o):o})}return u.Children.count(n)>1?u.Children.only(null):null});Mf.displayName="SlotClone";var WN=({children:e})=>w.jsx(w.Fragment,{children:e});function VN(e){return u.isValidElement(e)&&e.type===WN}function HN(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function KN(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var GN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],pw=GN.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?dw:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(s,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),xp="Progress",wp=100,[YN,w_]=jN(xp),[XN,QN]=YN(xp),mw=u.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=ZN,...a}=e;(o||o===0)&&!xv(o)&&console.error(JN(`${o}`,"Progress"));const s=xv(o)?o:wp;r!==null&&!wv(r,s)&&console.error(qN(`${r}`,"Progress"));const l=wv(r,s)?r:null,c=vl(l)?i(l,s):void 0;return w.jsx(XN,{scope:n,value:l,max:s,children:w.jsx(pw.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":vl(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":gw(l,s),"data-value":l??void 0,"data-max":s,...a,ref:t})})});mw.displayName=xp;var hw="ProgressIndicator",vw=u.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=QN(hw,n);return w.jsx(pw.div,{"data-state":gw(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});vw.displayName=hw;function ZN(e,t){return`${Math.round(e/t*100)}%`}function gw(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function vl(e){return typeof e=="number"}function xv(e){return vl(e)&&!isNaN(e)&&e>0}function wv(e,t){return vl(e)&&!isNaN(e)&&e<=t&&e>=0}function JN(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${wp}\`.`}function qN(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: - a positive number - - less than the value passed to \`max\` (or ${xp} if no \`max\` prop is set) + - less than the value passed to \`max\` (or ${wp} if no \`max\` prop is set) - \`null\` or \`undefined\` if the progress is indeterminate. -Defaulting to \`null\`.`}var gw=pw,qN=hw;const yw=u.forwardRef(({className:e,value:t,...n},r)=>w.jsx(gw,{ref:r,className:he("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:w.jsx(qN,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));yw.displayName=gw.displayName;function e_({pomodoroRounds:e,sessionRounds:t}){return w.jsxs("div",{children:[w.jsxs("p",{className:"mt-8 mb-2 text-center font-semibold text-muted-foreground",children:["Rounds Completed:"," ",e,"/",t]}),w.jsx(yw,{value:e/t*100})]})}var t_={BASE_URL:"/Focus-Fox/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function n_({settings:e}){const{pomodoro:t,shortBreak:n,longBreak:r,sessionRounds:o}=e,[i,a]=u.useState("pomodoro"),[s,l]=u.useState(t),[c,d]=u.useState(t),[f,p]=u.useState(!1),[h,x]=u.useState(0),m=u.useRef(null),b=u.useRef(null),g=t_.VITE_NOTIFICATION_SOUND_URL||"https://res.cloudinary.com/grffn/video/upload/v1727131856/Focus-Fox/notification.mp3",v=u.useRef(new Audio(g)),y=u.useCallback(R=>{a(R),p(!1),R==="pomodoro"?(l(t),d(t),h===o&&x(0)):R==="shortBreak"?(l(n),d(n)):R==="longBreak"&&(l(r),d(r))},[t,n,r,h,o]),S=u.useCallback(R=>{R&&v.current.play(),i==="pomodoro"?(x(E=>E+1),h+1===o?y("longBreak"):y("shortBreak")):(i==="shortBreak"||i==="longBreak")&&y("pomodoro")},[i,h,o,y]);u.useEffect(()=>(f?(b.current=Date.now(),m.current=setInterval(()=>{const R=Math.floor((Date.now()-b.current)/1e3),E=c-R;E<=0?(clearInterval(m.current),l(0),p(!1),S(!0)):l(E)},1e3)):clearInterval(m.current),()=>clearInterval(m.current)),[f,c,S]),u.useEffect(()=>{f?document.title=`${Za(s)} - Focus Fox`:document.title="Focus Fox"},[s,f]);const P=()=>{f&&d(s),p(!f)},N=()=>{i==="pomodoro"?(l(t),d(t),S(!1)):i==="shortBreak"?(l(n),d(n),S(!1)):i==="longBreak"&&(l(r),d(r),S(!1)),p(!1)};return u.useEffect(()=>{i==="pomodoro"?(l(t),d(t)):i==="shortBreak"?(l(n),d(n)):i==="longBreak"&&(l(r),d(r))},[t,n,r,i]),w.jsx("div",{className:"my-14 flex flex-col items-center justify-center",children:w.jsxs(AN,{defaultValue:"pomodoro",value:i,onValueChange:y,className:"w-[400px]",children:[w.jsxs(sw,{className:"grid w-full grid-cols-3",children:[w.jsx(Rs,{value:"pomodoro",disabled:f,className:f?"cursor-not-allowed opacity-50":"",children:"Pomodoro"}),w.jsx(Rs,{value:"shortBreak",disabled:f,className:f?"cursor-not-allowed opacity-50":"",children:"Short Break"}),w.jsx(Rs,{value:"longBreak",disabled:f,className:f?"cursor-not-allowed opacity-50":"",children:"Long Break"})]}),w.jsx($s,{value:"pomodoro",children:w.jsx(qc,{time:Za(s),isActive:f&&i==="pomodoro",onClick:P,onReset:N,buttonText:f?"Pause":s{t(r),window.scrollTo(0,0)};return w.jsxs(w.Fragment,{children:[w.jsxs("footer",{className:"relative m-4 mx-auto flex max-w-2xl flex-col items-center justify-center space-y-4 lg:flex-row lg:space-x-4 lg:space-y-0",children:[w.jsxs(tt,{variant:"ghost",onClick:e,children:[w.jsx(yt,{icon:L$,size:"lg",className:"mr-2"}),"Back to Top"]}),w.jsxs(tt,{variant:"ghost",onClick:()=>n("/Focus-Fox/Privacy/"),children:[w.jsx(yt,{icon:O$,size:"lg",className:"mr-2"}),"Privacy Policy"]}),w.jsxs(tt,{variant:"ghost",onClick:()=>n("/Focus-Fox/Terms/"),children:[w.jsx(yt,{icon:D$,size:"lg",className:"mr-2"}),"Terms and Conditions"]}),w.jsx(Ef,{variant:"ghost"}),w.jsx("a",{href:"https://ko-fi.com/marinoffdev",target:"_blank",rel:"noopener noreferrer",children:w.jsxs(tt,{variant:"ghost",target:"_blank",children:[w.jsx(yt,{icon:U$,size:"lg",className:"mr-2"}),"Buy Me a Coffee"]})})]}),w.jsx(xw,{})]})}function i_(){return w.jsxs("div",{className:"flex flex-col items-center justify-center py-16",children:[w.jsx("h1",{className:"m-4 text-4xl font-black text-center md:text-5xl",children:"Focus Fox"}),w.jsx("h2",{className:"mb-10 text-xl font-bold text-muted-foreground text-center md:text-3xl md:mb-20",children:"Your Go-To Online Timer for Enhanced Productivity"}),w.jsx("h3",{className:"text-2xl font-extrabold text-center md:text-3xl",children:"What is Focus Fox?"}),w.jsx("p",{className:"mb-10 w-11/12 pt-4 font-semibold text-muted-foreground text-justify md:w-7/12 md:mb-20",children:"Focus Fox is an adaptable Pomodoro timer accessible on both desktop and mobile browsers. Its primary goal is to assist you in maintaining concentration on tasks like studying, writing, or programming. The design of this application is based on the Pomodoro Technique, a time management system developed by Francesco Cirillo."}),w.jsx("h3",{className:"text-2xl font-extrabold text-center md:text-3xl",children:"Understanding the Pomodoro Technique:"}),w.jsx("p",{className:"mb-10 w-11/12 pt-4 font-semibold text-muted-foreground text-justify md:w-7/12 md:mb-20",children:'The Pomodoro Technique is a method designed to improve efficiency in work and study environments. It involves using a timer to divide work into fixed intervals, typically 25 minutes, interspersed with brief rest periods. These intervals are referred to as "pomodoros," named after the tomato-shaped kitchen timer Cirillo utilized during his time at university.'}),w.jsx("h3",{className:"text-2xl font-extrabold text-center md:text-3xl",children:"How to Use the Focus Fox Timer:"}),w.jsxs("ol",{className:"m-4 w-11/12 list-decimal pl-6 font-semibold text-muted-foreground text-left md:w-7/12 md:pl-10",children:[w.jsx("li",{children:"Customize the timer settings to fit your preferences."}),w.jsx("li",{children:"Choose a task to focus on."}),w.jsx("li",{children:"Start the Pomodoro timer and concentrate solely on your task for the set duration (default: 25 minutes)."}),w.jsx("li",{children:"Take a short break after each Pomodoro (default: 5 minutes)."}),w.jsx("li",{children:"After several Pomodoros, opt for a longer break (default: 15 minutes after every 4 rounds)."}),w.jsx("li",{children:"Repeat steps 3-5 until all your tasks are completed."})]})]})}function a_(){const e={navbar:u.useRef(),howToUse:u.useRef()},t=o=>{var i,a;(a=(i=e[o])==null?void 0:i.current)==null||a.scrollIntoView({behavior:"smooth"})},[n,r]=u.useState({pomodoro:25*60,shortBreak:5*60,longBreak:15*60,sessionRounds:4});return w.jsxs(w.Fragment,{children:[w.jsx(EN,{ref:e.navbar,scrollToHowToUse:()=>t("howToUse"),onSaveTimerSettings:o=>r(o),timerSettings:n}),w.jsxs("main",{children:[w.jsx("section",{className:"min-h-90svh",children:w.jsx(n_,{settings:n})}),w.jsx("section",{ref:e.howToUse,className:"min-h-90svh bg-secondary",children:w.jsx(i_,{})})]}),w.jsx(o_,{scrollToHome:()=>t("navbar")})]})}function s_(){const e=Dl();return w.jsxs("div",{className:"flex flex-col justify-center items-center min-h-screen bg-background text-foreground",children:[w.jsx("h1",{className:"text-4xl font-bold",children:"404 - Page Not Found"}),w.jsx("p",{className:"mt-4 text-lg",children:"Sorry, the page you're looking for doesn't exist."}),w.jsx(tt,{onClick:()=>e("/Focus-Fox/"),className:"mt-6",children:"Go Back Home"})]})}function ww({navigateToRoute:e,navigateToRouteLabel:t,pageTitle:n,effectiveDateText:r,children:o}){const i=Dl();return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"flex items-center justify-between p-4 relative mx-auto max-w-3xl",children:[w.jsx(qx,{}),w.jsxs("div",{children:[w.jsx(tt,{onClick:()=>i(e),variant:"ghost",children:t}),w.jsx(tt,{onClick:()=>i("/Focus-Fox/"),variant:"ghost",children:"Go Back Home"})]})]}),w.jsx(ua,{className:"m-auto block max-w-3xl"}),w.jsxs("div",{className:"flex flex-col items-center justify-center m-auto py-4 max-w-3xl text-justify",children:[w.jsxs("div",{className:"mb-10 pt-4 font-semibold text-muted-foreground",children:[w.jsx("div",{className:"flex flex-col justify-center items-center pb-2",children:w.jsx("h1",{className:"text-4xl font-bold",children:n})}),w.jsxs("p",{className:"py-2",children:["Effective date: ",r]}),o]}),w.jsx(ua,{className:"m-auto block max-w-3xl"})]}),w.jsx(xw,{})]})}function l_(){return w.jsxs(ww,{navigateToRoute:"/Focus-Fox/Terms/",navigateToRouteLabel:"Terms and Conditions",pageTitle:"Privacy Policy",effectiveDateText:"October 5th 2024",children:[w.jsxs("p",{className:"py-2",children:["Focus Fox (",'"we", "us", or "our"',") provides a web-based Pomodoro technique timer at ",w.jsx(Dd,{to:"/Focus-Fox/",className:"underline",children:"https://marinoffdev.github.io/Focus-Fox/"})," (the ",'"Service"',"). This Privacy Policy outlines what data is collected, how it is used, and your choices regarding that data."]}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Information We Collect"}),w.jsx("p",{className:"py-2",children:"Focus Fox does not collect or store any personal data from its users. We do not use tracking technologies such as analytics, nor do we collect information like IP addresses, browser details, or any user identifiers."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Cookies and Preferences"}),w.jsx("p",{className:"py-2",children:"Focus Fox currently does not use cookies. However, in the future, we plan to implement cookies to store your Pomodoro timer settings, theme preferences, and notification sound choices. These cookies will be used solely to improve your experience by saving your preferences, ensuring you don't have to reconfigure settings on each visit."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"External Links and Services"}),w.jsx("p",{className:"py-2",children:"Focus Fox may provide links to external platforms like GitHub Sponsorships or Ko-Fi for donations. These platforms may collect personal data in accordance with their own privacy policies, which we do not control."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Data Security"}),w.jsx("p",{className:"py-2",children:"Focus Fox does not store personal data, but we still strive to ensure a secure browsing experience. Nevertheless, please be aware that no method of data transmission or storage on the web is entirely secure."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Changes to This Privacy Policy"}),w.jsx("p",{className:"py-2",children:"We may update this Privacy Policy from time to time to reflect changes in our practices. Any updates will be posted on this page with a revised effective date. Continuing to use the Service after these changes means you accept the new policy."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Contact Us"}),w.jsxs("p",{className:"py-2",children:["For any questions or concerns regarding this Privacy Policy, please reach out via opening a new issue on ",w.jsx("a",{href:"https://github.com/marinoffDev/Focus-Fox/issues",target:"_blank",className:"underline",children:"https://github.com/marinoffDev/Focus-Fox/issues"}),"."]})]})}function c_(){return w.jsxs(ww,{navigateToRoute:"/Focus-Fox/Privacy/",navigateToRouteLabel:"Privacy Policy",pageTitle:"Terms and Conditions",effectiveDateText:"October 5th 2024",children:[w.jsxs("p",{className:"py-2",children:["Focus Fox (",'"we", "us", or "our"',") provides a web-based Pomodoro technique timer at ",w.jsx(Dd,{to:"/Focus-Fox/",className:"underline",children:"https://marinoffdev.github.io/Focus-Fox/"})," (the ",'"Service"',"). By accessing or using the Focus Fox website you agree to comply with and be bound by the following terms and conditions."]}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Use of the Service"}),w.jsx("p",{className:"py-2",children:"Focus Fox is an open-source web application that provides a Pomodoro timer tool. You may use the Service freely, but only for personal and non-commercial purposes. Modifying, redistributing, or reselling the Service or any part of its code or content without permission is prohibited."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Open Source, Contributions, and License"}),w.jsxs("p",{className:"py-2",children:["Focus Fox is open-source software, and contributions are welcome through our GitHub repository. The code is licensed under the ",w.jsx("strong",{children:"Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0)"}),". Under this license, you are free to:"]}),w.jsxs("ul",{children:[w.jsx("li",{children:"– Copy and redistribute the code in any medium or format"}),w.jsx("li",{children:"– Remix, transform, and build upon the code"})]}),w.jsxs("p",{className:"py-2",children:["However, these activities are limited to ",w.jsx("strong",{children:"non-commercial"})," use. Any use of the code must include proper attribution by crediting the original source, Focus Fox, and linking to the license. You may not use the code for commercial purposes."]}),w.jsx("p",{className:"py-2",children:"By submitting contributions (such as code or ideas) to the project, you agree that your contributions will also be subject to the terms of the CC BY-NC 4.0 license. Your contributions may be used, modified, or redistributed under the same non-commercial terms."}),w.jsx("p",{className:"py-2",children:"If you wish to contribute, please submit a GitHub issue for discussion before opening a pull request."}),w.jsxs("p",{className:"py-2",children:["For more details about the license, visit ",w.jsx("a",{href:"https://creativecommons.org/licenses/by-nc/4.0/",className:"underline",children:"CC BY-NC 4.0"}),"."]}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Disclaimer of Warranty"}),w.jsxs("p",{className:"py-2",children:["The Service, including all code licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0), is provided ",'"as is,"'," without any warranties of any kind. We make no guarantees regarding the reliability, availability, or performance of the Service. Focus Fox is offered without any support or guarantees that it will meet your expectations or be free from errors, interruptions, or inaccuracies."]}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Limitation of Liability"}),w.jsx("p",{className:"py-2",children:"To the fullest extent permitted by law, Focus Fox and its creators are not liable for any damages arising out of your use of the Service, including but not limited to direct, indirect, incidental, or consequential damages."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"External Links and Donations"}),w.jsx("p",{className:"py-2",children:"The Service may contain links to external websites, such as GitHub Sponsorships or Ko-Fi for voluntary donations. These external services operate independently and have their own terms and privacy policies, which you are encouraged to review. Focus Fox is not responsible for the content or practices of any linked websites or services."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Changes to These Terms"}),w.jsxs("p",{className:"py-2",children:["We reserve the right to modify these terms at any time. Any changes will be reflected on this page with an updated ",'"Effective Date."'," By continuing to use the Service after any changes are made, you agree to the updated Terms and Conditions."]}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Contact Us"}),w.jsxs("p",{className:"py-2",children:["For any questions or concerns regarding these Terms, please reach out via opening a new issue on ",w.jsx("a",{href:"https://github.com/marinoffDev/Focus-Fox/issues",target:"_blank",className:"underline",children:"https://github.com/marinoffDev/Focus-Fox/issues"}),"."]})]})}const u_=CE([{path:"/Focus-Fox/",element:w.jsx(a_,{})},{path:"/Focus-Fox/Privacy/",element:w.jsx(l_,{})},{path:"/Focus-Fox/Terms/",element:w.jsx(c_,{})},{path:"*",element:w.jsx(s_,{})}]);eu.createRoot(document.getElementById("root")).render(w.jsx(Oe.StrictMode,{children:w.jsx(v4,{defaultTheme:"system",storageKey:"vite-ui-theme",children:w.jsx(OE,{router:u_})})})); +Defaulting to \`null\`.`}var yw=mw,e_=vw;const xw=u.forwardRef(({className:e,value:t,...n},r)=>w.jsx(yw,{ref:r,className:he("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:w.jsx(e_,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));xw.displayName=yw.displayName;function t_({pomodoroRounds:e,sessionRounds:t}){return w.jsxs("div",{children:[w.jsxs("p",{className:"mt-8 mb-2 text-center font-semibold text-muted-foreground",children:["Rounds Completed:"," ",e,"/",t]}),w.jsx(xw,{value:e/t*100})]})}var n_={BASE_URL:"/Focus-Fox/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function r_({settings:e}){const{pomodoro:t,shortBreak:n,longBreak:r,sessionRounds:o}=e,[i,a]=u.useState("pomodoro"),[s,l]=u.useState(t),[c,d]=u.useState(t),[f,p]=u.useState(!1),[h,x]=u.useState(0),m=u.useRef(null),b=u.useRef(null),g=n_.VITE_NOTIFICATION_SOUND_URL||"https://res.cloudinary.com/grffn/video/upload/v1727131856/Focus-Fox/notification.mp3",v=u.useRef(new Audio(g)),y=u.useCallback(R=>{a(R),p(!1),R==="pomodoro"?(l(t),d(t),h===o&&x(0)):R==="shortBreak"?(l(n),d(n)):R==="longBreak"&&(l(r),d(r))},[t,n,r,h,o]),S=u.useCallback(R=>{R&&v.current.play(),i==="pomodoro"?(x(E=>E+1),h+1===o?y("longBreak"):y("shortBreak")):(i==="shortBreak"||i==="longBreak")&&y("pomodoro")},[i,h,o,y]);u.useEffect(()=>(f?(b.current=Date.now(),m.current=setInterval(()=>{const R=Math.floor((Date.now()-b.current)/1e3),E=c-R;E<=0?(clearInterval(m.current),l(0),p(!1),S(!0)):l(E)},1e3)):clearInterval(m.current),()=>clearInterval(m.current)),[f,c,S]),u.useEffect(()=>{f?document.title=`${Ja(s)} - Focus Fox`:document.title="Focus Fox"},[s,f]);const P=()=>{f&&d(s),p(!f)},N=()=>{i==="pomodoro"?(l(t),d(t),S(!1)):i==="shortBreak"?(l(n),d(n),S(!1)):i==="longBreak"&&(l(r),d(r),S(!1)),p(!1)};return u.useEffect(()=>{i==="pomodoro"?(l(t),d(t)):i==="shortBreak"?(l(n),d(n)):i==="longBreak"&&(l(r),d(r))},[t,n,r,i]),w.jsx("div",{className:"my-14 flex flex-col items-center justify-center",children:w.jsxs(DN,{defaultValue:"pomodoro",value:i,onValueChange:y,className:"w-[400px]",children:[w.jsxs(lw,{className:"grid w-full grid-cols-3",children:[w.jsx($s,{value:"pomodoro",disabled:f,className:f?"cursor-not-allowed opacity-50":"",children:"Pomodoro"}),w.jsx($s,{value:"shortBreak",disabled:f,className:f?"cursor-not-allowed opacity-50":"",children:"Short Break"}),w.jsx($s,{value:"longBreak",disabled:f,className:f?"cursor-not-allowed opacity-50":"",children:"Long Break"})]}),w.jsx(Ns,{value:"pomodoro",children:w.jsx(eu,{time:Ja(s),isActive:f&&i==="pomodoro",onClick:P,onReset:N,buttonText:f?"Pause":s{t(r),window.scrollTo(0,0)};return w.jsxs(w.Fragment,{children:[w.jsxs("footer",{className:"relative m-4 mx-auto flex max-w-2xl flex-col items-center justify-center space-y-4 lg:flex-row lg:space-x-4 lg:space-y-0",children:[w.jsxs(Ye,{variant:"ghost",onClick:e,children:[w.jsx(yt,{icon:I$,size:"lg",className:"mr-2"}),"Back to Top"]}),w.jsxs(Ye,{variant:"ghost",onClick:()=>n("/Focus-Fox/Privacy/"),children:[w.jsx(yt,{icon:A$,size:"lg",className:"mr-2"}),"Privacy Policy"]}),w.jsxs(Ye,{variant:"ghost",onClick:()=>n("/Focus-Fox/Terms/"),children:[w.jsx(yt,{icon:L$,size:"lg",className:"mr-2"}),"Terms and Conditions"]}),w.jsx(Cf,{variant:"ghost"}),w.jsx("a",{href:"https://ko-fi.com/marinoffdev",target:"_blank",rel:"noopener noreferrer",children:w.jsxs(Ye,{variant:"ghost",target:"_blank",children:[w.jsx(yt,{icon:B$,size:"lg",className:"mr-2"}),"Buy Me a Coffee"]})})]}),w.jsx(ww,{})]})}function a_(){return w.jsxs("div",{className:"flex flex-col items-center justify-center py-16",children:[w.jsx("h1",{className:"m-4 text-4xl font-black text-center md:text-5xl",children:"Focus Fox"}),w.jsx("h2",{className:"mb-10 text-xl font-bold text-muted-foreground text-center md:text-3xl md:mb-20",children:"Your Go-To Online Timer for Enhanced Productivity"}),w.jsx("h3",{className:"text-2xl font-extrabold text-center md:text-3xl",children:"What is Focus Fox?"}),w.jsx("p",{className:"mb-10 w-11/12 pt-4 font-semibold text-muted-foreground text-justify md:w-7/12 md:mb-20",children:"Focus Fox is an adaptable Pomodoro timer accessible on both desktop and mobile browsers. Its primary goal is to assist you in maintaining concentration on tasks like studying, writing, or programming. The design of this application is based on the Pomodoro Technique, a time management system developed by Francesco Cirillo."}),w.jsx("h3",{className:"text-2xl font-extrabold text-center md:text-3xl",children:"Understanding the Pomodoro Technique:"}),w.jsx("p",{className:"mb-10 w-11/12 pt-4 font-semibold text-muted-foreground text-justify md:w-7/12 md:mb-20",children:'The Pomodoro Technique is a method designed to improve efficiency in work and study environments. It involves using a timer to divide work into fixed intervals, typically 25 minutes, interspersed with brief rest periods. These intervals are referred to as "pomodoros," named after the tomato-shaped kitchen timer Cirillo utilized during his time at university.'}),w.jsx("h3",{className:"text-2xl font-extrabold text-center md:text-3xl",children:"How to Use the Focus Fox Timer:"}),w.jsxs("ol",{className:"m-4 w-11/12 list-decimal pl-6 font-semibold text-muted-foreground text-left md:w-7/12 md:pl-10",children:[w.jsx("li",{children:"Customize the timer settings to fit your preferences."}),w.jsx("li",{children:"Choose a task to focus on."}),w.jsx("li",{children:"Start the Pomodoro timer and concentrate solely on your task for the set duration (default: 25 minutes)."}),w.jsx("li",{children:"Take a short break after each Pomodoro (default: 5 minutes)."}),w.jsx("li",{children:"After several Pomodoros, opt for a longer break (default: 15 minutes after every 4 rounds)."}),w.jsx("li",{children:"Repeat steps 3-5 until all your tasks are completed."})]})]})}function s_(){const e={navbar:u.useRef(),howToUse:u.useRef()},t=o=>{var i,a;(a=(i=e[o])==null?void 0:i.current)==null||a.scrollIntoView({behavior:"smooth"})},[n,r]=u.useState(Ri);return w.jsxs(w.Fragment,{children:[w.jsx(CN,{ref:e.navbar,scrollToHowToUse:()=>t("howToUse"),onSaveTimerSettings:o=>r(o),timerSettings:n}),w.jsxs("main",{children:[w.jsx("section",{className:"min-h-90svh",children:w.jsx(r_,{settings:n})}),w.jsx("section",{ref:e.howToUse,className:"min-h-90svh bg-secondary",children:w.jsx(a_,{})})]}),w.jsx(i_,{scrollToHome:()=>t("navbar")})]})}function l_(){const e=Ll();return w.jsxs("div",{className:"flex flex-col justify-center items-center min-h-screen bg-background text-foreground",children:[w.jsx("h1",{className:"text-4xl font-bold",children:"404 - Page Not Found"}),w.jsx("p",{className:"mt-4 text-lg",children:"Sorry, the page you're looking for doesn't exist."}),w.jsx(Ye,{onClick:()=>e("/Focus-Fox/"),className:"mt-6",children:"Go Back Home"})]})}function bw({navigateToRoute:e,navigateToRouteLabel:t,pageTitle:n,effectiveDateText:r,children:o}){const i=Ll();return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"flex items-center justify-between p-4 relative mx-auto max-w-3xl",children:[w.jsx(ew,{}),w.jsxs("div",{children:[w.jsx(Ye,{onClick:()=>i(e),variant:"ghost",children:t}),w.jsx(Ye,{onClick:()=>i("/Focus-Fox/"),variant:"ghost",children:"Go Back Home"})]})]}),w.jsx(fa,{className:"m-auto block max-w-3xl"}),w.jsxs("div",{className:"flex flex-col items-center justify-center m-auto py-4 max-w-3xl text-justify",children:[w.jsxs("div",{className:"mb-10 pt-4 font-semibold text-muted-foreground",children:[w.jsx("div",{className:"flex flex-col justify-center items-center pb-2",children:w.jsx("h1",{className:"text-4xl font-bold",children:n})}),w.jsxs("p",{className:"py-2",children:["Effective date: ",r]}),o]}),w.jsx(fa,{className:"m-auto block max-w-3xl"})]}),w.jsx(ww,{})]})}function c_(){return w.jsxs(bw,{navigateToRoute:"/Focus-Fox/Terms/",navigateToRouteLabel:"Terms and Conditions",pageTitle:"Privacy Policy",effectiveDateText:"October 5th 2024",children:[w.jsxs("p",{className:"py-2",children:["Focus Fox (",'"we", "us", or "our"',") provides a web-based Pomodoro technique timer at ",w.jsx(Ld,{to:"/Focus-Fox/",className:"underline",children:"https://marinoffdev.github.io/Focus-Fox/"})," (the ",'"Service"',"). This Privacy Policy outlines what data is collected, how it is used, and your choices regarding that data."]}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Information We Collect"}),w.jsx("p",{className:"py-2",children:"Focus Fox does not collect or store any personal data from its users. We do not use tracking technologies such as analytics, nor do we collect information like IP addresses, browser details, or any user identifiers."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Cookies and Preferences"}),w.jsx("p",{className:"py-2",children:"Focus Fox currently does not use cookies. However, in the future, we plan to implement cookies to store your Pomodoro timer settings, theme preferences, and notification sound choices. These cookies will be used solely to improve your experience by saving your preferences, ensuring you don't have to reconfigure settings on each visit."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"External Links and Services"}),w.jsx("p",{className:"py-2",children:"Focus Fox may provide links to external platforms like GitHub Sponsorships or Ko-Fi for donations. These platforms may collect personal data in accordance with their own privacy policies, which we do not control."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Data Security"}),w.jsx("p",{className:"py-2",children:"Focus Fox does not store personal data, but we still strive to ensure a secure browsing experience. Nevertheless, please be aware that no method of data transmission or storage on the web is entirely secure."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Changes to This Privacy Policy"}),w.jsx("p",{className:"py-2",children:"We may update this Privacy Policy from time to time to reflect changes in our practices. Any updates will be posted on this page with a revised effective date. Continuing to use the Service after these changes means you accept the new policy."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Contact Us"}),w.jsxs("p",{className:"py-2",children:["For any questions or concerns regarding this Privacy Policy, please reach out via opening a new issue on ",w.jsx("a",{href:"https://github.com/marinoffDev/Focus-Fox/issues",target:"_blank",className:"underline",children:"https://github.com/marinoffDev/Focus-Fox/issues"}),"."]})]})}function u_(){return w.jsxs(bw,{navigateToRoute:"/Focus-Fox/Privacy/",navigateToRouteLabel:"Privacy Policy",pageTitle:"Terms and Conditions",effectiveDateText:"October 5th 2024",children:[w.jsxs("p",{className:"py-2",children:["Focus Fox (",'"we", "us", or "our"',") provides a web-based Pomodoro technique timer at ",w.jsx(Ld,{to:"/Focus-Fox/",className:"underline",children:"https://marinoffdev.github.io/Focus-Fox/"})," (the ",'"Service"',"). By accessing or using the Focus Fox website you agree to comply with and be bound by the following terms and conditions."]}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Use of the Service"}),w.jsx("p",{className:"py-2",children:"Focus Fox is an open-source web application that provides a Pomodoro timer tool. You may use the Service freely, but only for personal and non-commercial purposes. Modifying, redistributing, or reselling the Service or any part of its code or content without permission is prohibited."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Open Source, Contributions, and License"}),w.jsxs("p",{className:"py-2",children:["Focus Fox is open-source software, and contributions are welcome through our GitHub repository. The code is licensed under the ",w.jsx("strong",{children:"Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0)"}),". Under this license, you are free to:"]}),w.jsxs("ul",{children:[w.jsx("li",{children:"– Copy and redistribute the code in any medium or format"}),w.jsx("li",{children:"– Remix, transform, and build upon the code"})]}),w.jsxs("p",{className:"py-2",children:["However, these activities are limited to ",w.jsx("strong",{children:"non-commercial"})," use. Any use of the code must include proper attribution by crediting the original source, Focus Fox, and linking to the license. You may not use the code for commercial purposes."]}),w.jsx("p",{className:"py-2",children:"By submitting contributions (such as code or ideas) to the project, you agree that your contributions will also be subject to the terms of the CC BY-NC 4.0 license. Your contributions may be used, modified, or redistributed under the same non-commercial terms."}),w.jsx("p",{className:"py-2",children:"If you wish to contribute, please submit a GitHub issue for discussion before opening a pull request."}),w.jsxs("p",{className:"py-2",children:["For more details about the license, visit ",w.jsx("a",{href:"https://creativecommons.org/licenses/by-nc/4.0/",className:"underline",children:"CC BY-NC 4.0"}),"."]}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Disclaimer of Warranty"}),w.jsxs("p",{className:"py-2",children:["The Service, including all code licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0), is provided ",'"as is,"'," without any warranties of any kind. We make no guarantees regarding the reliability, availability, or performance of the Service. Focus Fox is offered without any support or guarantees that it will meet your expectations or be free from errors, interruptions, or inaccuracies."]}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Limitation of Liability"}),w.jsx("p",{className:"py-2",children:"To the fullest extent permitted by law, Focus Fox and its creators are not liable for any damages arising out of your use of the Service, including but not limited to direct, indirect, incidental, or consequential damages."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"External Links and Donations"}),w.jsx("p",{className:"py-2",children:"The Service may contain links to external websites, such as GitHub Sponsorships or Ko-Fi for voluntary donations. These external services operate independently and have their own terms and privacy policies, which you are encouraged to review. Focus Fox is not responsible for the content or practices of any linked websites or services."}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Changes to These Terms"}),w.jsxs("p",{className:"py-2",children:["We reserve the right to modify these terms at any time. Any changes will be reflected on this page with an updated ",'"Effective Date."'," By continuing to use the Service after any changes are made, you agree to the updated Terms and Conditions."]}),w.jsx("h2",{className:"text-3xl font-bold pt-4",children:"Contact Us"}),w.jsxs("p",{className:"py-2",children:["For any questions or concerns regarding these Terms, please reach out via opening a new issue on ",w.jsx("a",{href:"https://github.com/marinoffDev/Focus-Fox/issues",target:"_blank",className:"underline",children:"https://github.com/marinoffDev/Focus-Fox/issues"}),"."]})]})}const f_=PE([{path:"/Focus-Fox/",element:w.jsx(s_,{})},{path:"/Focus-Fox/Privacy/",element:w.jsx(c_,{})},{path:"/Focus-Fox/Terms/",element:w.jsx(u_,{})},{path:"*",element:w.jsx(l_,{})}]);tu.createRoot(document.getElementById("root")).render(w.jsx(Oe.StrictMode,{children:w.jsx(g4,{defaultTheme:"system",storageKey:"vite-ui-theme",children:w.jsx(AE,{router:f_})})})); diff --git a/assets/index-CSEvNVl0.css b/assets/index-CSEvNVl0.css new file mode 100644 index 0000000..4cd9b15 --- /dev/null +++ b/assets/index-CSEvNVl0.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem}.dark{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-4{right:1rem}.right-8{right:2rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.z-50{z-index:50}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-14{margin-top:3.5rem;margin-bottom:3.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[1px\]{height:1px}.h-full{height:100%}.h-px{height:1px}.min-h-90svh{min-height:90svh}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-11\/12{width:91.666667%}.w-12{width:3rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[1px\]{width:1px}.w-\[400px\]{width:400px}.w-full{width:100%}.min-w-\[8rem\]{min-width:8rem}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.list-decimal{list-style-type:decimal}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:#000c}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.fill-current{fill:currentColor}.p-1{padding:.25rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pt-0{padding-top:0}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-justify{text-align:justify}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-8xl{font-size:6rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-card-foreground{color:hsl(var(--card-foreground))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-200{animation-duration:.2s}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.dark\:-rotate-90:is(.dark *){--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:rotate-0:is(.dark *){--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-0:is(.dark *){--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-100:is(.dark *){--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:mb-20{margin-bottom:5rem}.md\:w-7\/12{width:58.333333%}.md\:pl-10{padding-left:2.5rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-5xl{font-size:3rem;line-height:1}}@media (min-width: 1024px){.lg\:flex-row{flex-direction:row}.lg\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}} diff --git a/assets/index-DTmASipQ.css b/assets/index-DTmASipQ.css deleted file mode 100644 index c1bc202..0000000 --- a/assets/index-DTmASipQ.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem}.dark{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-4{right:1rem}.right-8{right:2rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.z-50{z-index:50}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-14{margin-top:3.5rem;margin-bottom:3.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[1px\]{height:1px}.h-full{height:100%}.h-px{height:1px}.min-h-90svh{min-height:90svh}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-11\/12{width:91.666667%}.w-12{width:3rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[1px\]{width:1px}.w-\[400px\]{width:400px}.w-full{width:100%}.min-w-\[8rem\]{min-width:8rem}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.list-decimal{list-style-type:decimal}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:#000c}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.fill-current{fill:currentColor}.p-1{padding:.25rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pt-0{padding-top:0}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-justify{text-align:justify}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-8xl{font-size:6rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-card-foreground{color:hsl(var(--card-foreground))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-200{animation-duration:.2s}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.dark\:-rotate-90:is(.dark *){--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:rotate-0:is(.dark *){--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-0:is(.dark *){--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-100:is(.dark *){--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:mb-20{margin-bottom:5rem}.md\:w-7\/12{width:58.333333%}.md\:pl-10{padding-left:2.5rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-5xl{font-size:3rem;line-height:1}}@media (min-width: 1024px){.lg\:flex-row{flex-direction:row}.lg\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}} diff --git a/index.html b/index.html index 6a4a2ab..5592834 100644 --- a/index.html +++ b/index.html @@ -8,8 +8,8 @@ Focus Fox - - + +