diff --git a/assets/index-TRsEuFLA.js b/assets/index-SpHVp_ho.js similarity index 93% rename from assets/index-TRsEuFLA.js rename to assets/index-SpHVp_ho.js index 4f57c95..e9303e8 100644 --- a/assets/index-TRsEuFLA.js +++ b/assets/index-SpHVp_ho.js @@ -14,7 +14,7 @@ function dm(e,t){for(var n=0;n>>1,Y=R[H];if(0>>1;Ho(kt,L))Eeo(tn,kt)?(R[H]=tn,R[Ee]=L,H=Ee):(R[H]=kt,R[at]=L,H=at);else if(Eeo(tn,L))R[H]=tn,R[Ee]=L,H=Ee;else break e}}return T}function o(R,T){var L=R.sortIndex-T.sortIndex;return L!==0?L:R.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],c=1,f=null,g=3,v=!1,y=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(R){for(var T=n(u);T!==null;){if(T.callback===null)r(u);else if(T.startTime<=R)r(u),T.sortIndex=T.expirationTime,t(a,T);else break;T=n(u)}}function S(R){if(w=!1,m(R),!y)if(n(a)!==null)y=!0,_(k);else{var T=n(u);T!==null&&F(S,T.startTime-R)}}function k(R,T){y=!1,w&&(w=!1,p(P),P=-1),v=!0;var L=g;try{for(m(T),f=n(a);f!==null&&(!(f.expirationTime>T)||R&&!A());){var H=f.callback;if(typeof H=="function"){f.callback=null,g=f.priorityLevel;var Y=H(f.expirationTime<=T);T=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===n(a)&&r(a),m(T)}else r(a);f=n(a)}if(f!==null)var en=!0;else{var at=n(u);at!==null&&F(S,at.startTime-T),en=!1}return en}finally{f=null,g=L,v=!1}}var E=!1,$=null,P=-1,z=5,N=-1;function A(){return!(e.unstable_now()-NR||125H?(R.sortIndex=L,t(u,R),n(a)===null&&R===n(u)&&(w?(p(P),P=-1):w=!0,F(S,L-H))):(R.sortIndex=Y,t(a,R),y||v||(y=!0,_(k))),R},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(R){var T=g;return function(){var L=g;g=T;try{return R.apply(this,arguments)}finally{g=L}}}})(Gc);Kc.exports=Gc;var Mm=Kc.exports;/** + */(function(e){function t(R,z){var L=R.length;R.push(z);e:for(;0>>1,Y=R[H];if(0>>1;Ho(kt,L))Eeo(tn,kt)?(R[H]=tn,R[Ee]=L,H=Ee):(R[H]=kt,R[at]=L,H=at);else if(Eeo(tn,L))R[H]=tn,R[Ee]=L,H=Ee;else break e}}return z}function o(R,z){var L=R.sortIndex-z.sortIndex;return L!==0?L:R.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],c=1,f=null,g=3,v=!1,y=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(R){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=R)r(u),z.sortIndex=z.expirationTime,t(a,z);else break;z=n(u)}}function S(R){if(w=!1,m(R),!y)if(n(a)!==null)y=!0,_(k);else{var z=n(u);z!==null&&F(S,z.startTime-R)}}function k(R,z){y=!1,w&&(w=!1,p(P),P=-1),v=!0;var L=g;try{for(m(z),f=n(a);f!==null&&(!(f.expirationTime>z)||R&&!A());){var H=f.callback;if(typeof H=="function"){f.callback=null,g=f.priorityLevel;var Y=H(f.expirationTime<=z);z=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===n(a)&&r(a),m(z)}else r(a);f=n(a)}if(f!==null)var en=!0;else{var at=n(u);at!==null&&F(S,at.startTime-z),en=!1}return en}finally{f=null,g=L,v=!1}}var E=!1,$=null,P=-1,T=5,N=-1;function A(){return!(e.unstable_now()-NR||125H?(R.sortIndex=L,t(u,R),n(a)===null&&R===n(u)&&(w?(p(P),P=-1):w=!0,F(S,L-H))):(R.sortIndex=Y,t(a,R),y||v||(y=!0,_(k))),R},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(R){var z=g;return function(){var L=g;g=z;try{return R.apply(this,arguments)}finally{g=L}}}})(Gc);Kc.exports=Gc;var Mm=Kc.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function dm(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zl=Object.prototype.hasOwnProperty,Lm=/^[: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]*$/,iu={},lu={};function Am(e){return zl.call(lu,e)?!0:zl.call(iu,e)?!1:Lm.test(e)?lu[e]=!0:(iu[e]=!0,!1)}function Im(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 Dm(e,t,n,r){if(t===null||typeof t>"u"||Im(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 ke(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new ke(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){pe[e]=new ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var Is=/[\-:]([a-z])/g;function Ds(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(Is,Ds);pe[t]=new ke(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(Is,Ds);pe[t]=new ke(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(Is,Ds);pe[t]=new ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fs(e,t,n,r){var o=pe.hasOwnProperty(t)?pe[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tl=Object.prototype.hasOwnProperty,Lm=/^[: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]*$/,iu={},lu={};function Am(e){return Tl.call(lu,e)?!0:Tl.call(iu,e)?!1:Lm.test(e)?lu[e]=!0:(iu[e]=!0,!1)}function Im(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 Dm(e,t,n,r){if(t===null||typeof t>"u"||Im(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 ke(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new ke(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){pe[e]=new ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var Is=/[\-:]([a-z])/g;function Ds(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(Is,Ds);pe[t]=new ke(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(Is,Ds);pe[t]=new ke(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(Is,Ds);pe[t]=new ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fs(e,t,n,r){var o=pe.hasOwnProperty(t)?pe[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var a=` -`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{il=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yr(e):""}function Fm(e){switch(e.tag){case 5:return yr(e.type);case 16:return yr("Lazy");case 13:return yr("Suspense");case 19:return yr("SuspenseList");case 0:case 2:case 15:return e=ll(e.type,!1),e;case 11:return e=ll(e.type.render,!1),e;case 1:return e=ll(e.type,!0),e;default:return""}}function Ml(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 En:return"Fragment";case kn:return"Portal";case _l:return"Profiler";case Us:return"StrictMode";case jl:return"Suspense";case Ol:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jc:return(e.displayName||"Context")+".Consumer";case Zc:return(e._context.displayName||"Context")+".Provider";case Vs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bs:return t=e.displayName||null,t!==null?t:Ml(e.type)||"Memo";case bt:t=e._payload,e=e._init;try{return Ml(e(t))}catch{}}return null}function Um(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 Ml(t);case 8:return t===Us?"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 Bt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ed(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vm(e){var t=ed(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ho(e){e._valueTracker||(e._valueTracker=Vm(e))}function td(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ed(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yo(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 Ll(e,t){var n=t.checked;return re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function au(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bt(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 nd(e,t){t=t.checked,t!=null&&Fs(e,"checked",t,!1)}function Al(e,t){nd(e,t);var n=Bt(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")?Il(e,t.type,n):t.hasOwnProperty("defaultValue")&&Il(e,t.type,Bt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Il(e,t,n){(t!=="number"||Yo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wr=Array.isArray;function Mn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=go.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function jr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kr={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},Bm=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){Bm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function ld(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function sd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ld(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Wm=re({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 Ul(e,t){if(t){if(Wm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function Vl(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 Bl=null;function Ws(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wl=null,Ln=null,An=null;function fu(e){if(e=io(e)){if(typeof Wl!="function")throw Error(b(280));var t=e.stateNode;t&&(t=Oi(t),Wl(e.stateNode,e.type,t))}}function ad(e){Ln?An?An.push(e):An=[e]:Ln=e}function ud(){if(Ln){var e=Ln,t=An;if(An=Ln=null,fu(e),t)for(e=0;e>>=0,e===0?32:31-(th(e)/nh|0)|0}var vo=64,yo=4194304;function xr(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 qo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=xr(s):(i&=l,i!==0&&(r=xr(i)))}else l=n&~o,l!==0?r=xr(l):i!==0&&(r=xr(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 ro(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Je(t),e[t]=n}function lh(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=$r),Su=" ",Cu=!1;function Rd(e,t){switch(e){case"keyup":return Oh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Td(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function Lh(e,t){switch(e){case"compositionend":return Td(t);case"keypress":return t.which!==32?null:(Cu=!0,Su);case"textInput":return e=t.data,e===Su&&Cu?null:e;default:return null}}function Ah(e,t){if($n)return e==="compositionend"||!Js&&Rd(e,t)?(e=bd(),Do=Ys=zt=null,$n=!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=Pu(n)}}function Od(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Od(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Md(){for(var e=window,t=Yo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yo(e.document)}return t}function qs(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 Qh(e){var t=Md(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Od(n.ownerDocument.documentElement,n)){if(r!==null&&qs(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=bu(n,i);var l=bu(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pn=null,Xl=null,br=null,Zl=!1;function Nu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zl||Pn==null||Pn!==Yo(r)||(r=Pn,"selectionStart"in r&&qs(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}),br&&Dr(br,r)||(br=r,r=ni(Xl,"onSelect"),0Rn||(e.current=rs[Rn],rs[Rn]=null,Rn--)}function G(e,t){Rn++,rs[Rn]=e.current,e.current=t}var Wt={},ve=Yt(Wt),be=Yt(!1),dn=Wt;function Bn(e,t){var n=e.type.contextTypes;if(!n)return Wt;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 Ne(e){return e=e.childContextTypes,e!=null}function oi(){J(be),J(ve)}function Mu(e,t,n){if(ve.current!==Wt)throw Error(b(168));G(ve,t),G(be,n)}function Wd(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(b(108,Um(e)||"Unknown",o));return re({},n,r)}function ii(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wt,dn=ve.current,G(ve,e),G(be,be.current),!0}function Lu(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=Wd(e,t,dn),r.__reactInternalMemoizedMergedChildContext=e,J(be),J(ve),G(ve,e)):J(be),G(be,n)}var ct=null,Mi=!1,xl=!1;function Hd(e){ct===null?ct=[e]:ct.push(e)}function og(e){Mi=!0,Hd(e)}function Xt(){if(!xl&&ct!==null){xl=!0;var e=0,t=K;try{var n=ct;for(K=1;e>=l,o-=l,dt=1<<32-Je(t)+o|n<P?(z=$,$=null):z=$.sibling;var N=g(p,$,m[P],S);if(N===null){$===null&&($=z);break}e&&$&&N.alternate===null&&t(p,$),d=i(N,d,P),E===null?k=N:E.sibling=N,E=N,$=z}if(P===m.length)return n(p,$),q&&nn(p,P),k;if($===null){for(;PP?(z=$,$=null):z=$.sibling;var A=g(p,$,N.value,S);if(A===null){$===null&&($=z);break}e&&$&&A.alternate===null&&t(p,$),d=i(A,d,P),E===null?k=A:E.sibling=A,E=A,$=z}if(N.done)return n(p,$),q&&nn(p,P),k;if($===null){for(;!N.done;P++,N=m.next())N=f(p,N.value,S),N!==null&&(d=i(N,d,P),E===null?k=N:E.sibling=N,E=N);return q&&nn(p,P),k}for($=r(p,$);!N.done;P++,N=m.next())N=v($,p,P,N.value,S),N!==null&&(e&&N.alternate!==null&&$.delete(N.key===null?P:N.key),d=i(N,d,P),E===null?k=N:E.sibling=N,E=N);return e&&$.forEach(function(O){return t(p,O)}),q&&nn(p,P),k}function C(p,d,m,S){if(typeof m=="object"&&m!==null&&m.type===En&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case mo:e:{for(var k=m.key,E=d;E!==null;){if(E.key===k){if(k=m.type,k===En){if(E.tag===7){n(p,E.sibling),d=o(E,m.props.children),d.return=p,p=d;break e}}else if(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===bt&&Bu(k)===E.type){n(p,E.sibling),d=o(E,m.props),d.ref=pr(p,E,m),d.return=p,p=d;break e}n(p,E);break}else t(p,E);E=E.sibling}m.type===En?(d=cn(m.props.children,p.mode,S,m.key),d.return=p,p=d):(S=Ko(m.type,m.key,m.props,null,p.mode,S),S.ref=pr(p,d,m),S.return=p,p=S)}return l(p);case kn:e:{for(E=m.key;d!==null;){if(d.key===E)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(p,d.sibling),d=o(d,m.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=Nl(m,p.mode,S),d.return=p,p=d}return l(p);case bt:return E=m._init,C(p,d,E(m._payload),S)}if(wr(m))return y(p,d,m,S);if(ar(m))return w(p,d,m,S);$o(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(p,d.sibling),d=o(d,m),d.return=p,p=d):(n(p,d),d=bl(m,p.mode,S),d.return=p,p=d),l(p)):n(p,d)}return C}var Hn=qd(!0),ef=qd(!1),lo={},it=Yt(lo),Br=Yt(lo),Wr=Yt(lo);function sn(e){if(e===lo)throw Error(b(174));return e}function aa(e,t){switch(G(Wr,t),G(Br,e),G(it,lo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fl(t,e)}J(it),G(it,t)}function Qn(){J(it),J(Br),J(Wr)}function tf(e){sn(Wr.current);var t=sn(it.current),n=Fl(t,e.type);t!==n&&(G(Br,e),G(it,n))}function ua(e){Br.current===e&&(J(it),J(Br))}var ee=Yt(0);function di(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Sl=[];function ca(){for(var e=0;en?n:4,e(!0);var r=Cl.transition;Cl.transition={};try{e(!1),t()}finally{K=n,Cl.transition=r}}function yf(){return Be().memoizedState}function ag(e,t,n){var r=Ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wf(e))xf(t,n);else if(n=Yd(e,t,n,r),n!==null){var o=Se();qe(n,e,r,o),Sf(n,t,r)}}function ug(e,t,n){var r=Ft(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wf(e))xf(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,et(s,l)){var a=t.interleaved;a===null?(o.next=o,la(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Yd(e,t,o,r),n!==null&&(o=Se(),qe(n,e,r,o),Sf(n,t,r))}}function wf(e){var t=e.alternate;return e===te||t!==null&&t===te}function xf(e,t){Nr=fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qs(e,n)}}var pi={readContext:Ve,useCallback:me,useContext:me,useEffect:me,useImperativeHandle:me,useInsertionEffect:me,useLayoutEffect:me,useMemo:me,useReducer:me,useRef:me,useState:me,useDebugValue:me,useDeferredValue:me,useTransition:me,useMutableSource:me,useSyncExternalStore:me,useId:me,unstable_isNewReconciler:!1},cg={readContext:Ve,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:Hu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bo(4194308,4,pf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bo(4,2,e,t)},useMemo:function(e,t){var n=nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nt();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=ag.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:Wu,useDebugValue:ha,useDeferredValue:function(e){return nt().memoizedState=e},useTransition:function(){var e=Wu(!1),t=e[0];return e=sg.bind(null,e[1]),nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,o=nt();if(q){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),ce===null)throw Error(b(349));pn&30||of(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Hu(sf.bind(null,r,i,e),[e]),r.flags|=2048,Kr(9,lf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=nt(),t=ce.identifierPrefix;if(q){var n=ft,r=dt;n=(r&~(1<<32-Je(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Hr++,0")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{il=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yr(e):""}function Fm(e){switch(e.tag){case 5:return yr(e.type);case 16:return yr("Lazy");case 13:return yr("Suspense");case 19:return yr("SuspenseList");case 0:case 2:case 15:return e=ll(e.type,!1),e;case 11:return e=ll(e.type.render,!1),e;case 1:return e=ll(e.type,!0),e;default:return""}}function Ml(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 En:return"Fragment";case kn:return"Portal";case _l:return"Profiler";case Us:return"StrictMode";case jl:return"Suspense";case Ol:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jc:return(e.displayName||"Context")+".Consumer";case Zc:return(e._context.displayName||"Context")+".Provider";case Vs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bs:return t=e.displayName||null,t!==null?t:Ml(e.type)||"Memo";case bt:t=e._payload,e=e._init;try{return Ml(e(t))}catch{}}return null}function Um(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 Ml(t);case 8:return t===Us?"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 Bt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ed(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vm(e){var t=ed(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ho(e){e._valueTracker||(e._valueTracker=Vm(e))}function td(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ed(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yo(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 Ll(e,t){var n=t.checked;return re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function au(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bt(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 nd(e,t){t=t.checked,t!=null&&Fs(e,"checked",t,!1)}function Al(e,t){nd(e,t);var n=Bt(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")?Il(e,t.type,n):t.hasOwnProperty("defaultValue")&&Il(e,t.type,Bt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Il(e,t,n){(t!=="number"||Yo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wr=Array.isArray;function Mn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=go.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function jr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kr={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},Bm=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){Bm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function ld(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function sd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ld(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Wm=re({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 Ul(e,t){if(t){if(Wm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function Vl(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 Bl=null;function Ws(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wl=null,Ln=null,An=null;function fu(e){if(e=io(e)){if(typeof Wl!="function")throw Error(b(280));var t=e.stateNode;t&&(t=Oi(t),Wl(e.stateNode,e.type,t))}}function ad(e){Ln?An?An.push(e):An=[e]:Ln=e}function ud(){if(Ln){var e=Ln,t=An;if(An=Ln=null,fu(e),t)for(e=0;e>>=0,e===0?32:31-(th(e)/nh|0)|0}var vo=64,yo=4194304;function xr(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 qo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=xr(s):(i&=l,i!==0&&(r=xr(i)))}else l=n&~o,l!==0?r=xr(l):i!==0&&(r=xr(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 ro(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Je(t),e[t]=n}function lh(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=$r),Su=" ",Cu=!1;function Rd(e,t){switch(e){case"keyup":return Oh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function Lh(e,t){switch(e){case"compositionend":return zd(t);case"keypress":return t.which!==32?null:(Cu=!0,Su);case"textInput":return e=t.data,e===Su&&Cu?null:e;default:return null}}function Ah(e,t){if($n)return e==="compositionend"||!Js&&Rd(e,t)?(e=bd(),Do=Ys=Tt=null,$n=!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=Pu(n)}}function Od(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Od(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Md(){for(var e=window,t=Yo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yo(e.document)}return t}function qs(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 Qh(e){var t=Md(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Od(n.ownerDocument.documentElement,n)){if(r!==null&&qs(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=bu(n,i);var l=bu(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pn=null,Xl=null,br=null,Zl=!1;function Nu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zl||Pn==null||Pn!==Yo(r)||(r=Pn,"selectionStart"in r&&qs(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}),br&&Dr(br,r)||(br=r,r=ni(Xl,"onSelect"),0Rn||(e.current=rs[Rn],rs[Rn]=null,Rn--)}function G(e,t){Rn++,rs[Rn]=e.current,e.current=t}var Wt={},ve=Yt(Wt),be=Yt(!1),dn=Wt;function Bn(e,t){var n=e.type.contextTypes;if(!n)return Wt;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 Ne(e){return e=e.childContextTypes,e!=null}function oi(){J(be),J(ve)}function Mu(e,t,n){if(ve.current!==Wt)throw Error(b(168));G(ve,t),G(be,n)}function Wd(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(b(108,Um(e)||"Unknown",o));return re({},n,r)}function ii(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wt,dn=ve.current,G(ve,e),G(be,be.current),!0}function Lu(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=Wd(e,t,dn),r.__reactInternalMemoizedMergedChildContext=e,J(be),J(ve),G(ve,e)):J(be),G(be,n)}var ct=null,Mi=!1,xl=!1;function Hd(e){ct===null?ct=[e]:ct.push(e)}function og(e){Mi=!0,Hd(e)}function Xt(){if(!xl&&ct!==null){xl=!0;var e=0,t=K;try{var n=ct;for(K=1;e>=l,o-=l,dt=1<<32-Je(t)+o|n<P?(T=$,$=null):T=$.sibling;var N=g(p,$,m[P],S);if(N===null){$===null&&($=T);break}e&&$&&N.alternate===null&&t(p,$),d=i(N,d,P),E===null?k=N:E.sibling=N,E=N,$=T}if(P===m.length)return n(p,$),q&&nn(p,P),k;if($===null){for(;PP?(T=$,$=null):T=$.sibling;var A=g(p,$,N.value,S);if(A===null){$===null&&($=T);break}e&&$&&A.alternate===null&&t(p,$),d=i(A,d,P),E===null?k=A:E.sibling=A,E=A,$=T}if(N.done)return n(p,$),q&&nn(p,P),k;if($===null){for(;!N.done;P++,N=m.next())N=f(p,N.value,S),N!==null&&(d=i(N,d,P),E===null?k=N:E.sibling=N,E=N);return q&&nn(p,P),k}for($=r(p,$);!N.done;P++,N=m.next())N=v($,p,P,N.value,S),N!==null&&(e&&N.alternate!==null&&$.delete(N.key===null?P:N.key),d=i(N,d,P),E===null?k=N:E.sibling=N,E=N);return e&&$.forEach(function(O){return t(p,O)}),q&&nn(p,P),k}function C(p,d,m,S){if(typeof m=="object"&&m!==null&&m.type===En&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case mo:e:{for(var k=m.key,E=d;E!==null;){if(E.key===k){if(k=m.type,k===En){if(E.tag===7){n(p,E.sibling),d=o(E,m.props.children),d.return=p,p=d;break e}}else if(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===bt&&Bu(k)===E.type){n(p,E.sibling),d=o(E,m.props),d.ref=pr(p,E,m),d.return=p,p=d;break e}n(p,E);break}else t(p,E);E=E.sibling}m.type===En?(d=cn(m.props.children,p.mode,S,m.key),d.return=p,p=d):(S=Ko(m.type,m.key,m.props,null,p.mode,S),S.ref=pr(p,d,m),S.return=p,p=S)}return l(p);case kn:e:{for(E=m.key;d!==null;){if(d.key===E)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(p,d.sibling),d=o(d,m.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=Nl(m,p.mode,S),d.return=p,p=d}return l(p);case bt:return E=m._init,C(p,d,E(m._payload),S)}if(wr(m))return y(p,d,m,S);if(ar(m))return w(p,d,m,S);$o(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(p,d.sibling),d=o(d,m),d.return=p,p=d):(n(p,d),d=bl(m,p.mode,S),d.return=p,p=d),l(p)):n(p,d)}return C}var Hn=qd(!0),ef=qd(!1),lo={},it=Yt(lo),Br=Yt(lo),Wr=Yt(lo);function sn(e){if(e===lo)throw Error(b(174));return e}function aa(e,t){switch(G(Wr,t),G(Br,e),G(it,lo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fl(t,e)}J(it),G(it,t)}function Qn(){J(it),J(Br),J(Wr)}function tf(e){sn(Wr.current);var t=sn(it.current),n=Fl(t,e.type);t!==n&&(G(Br,e),G(it,n))}function ua(e){Br.current===e&&(J(it),J(Br))}var ee=Yt(0);function di(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Sl=[];function ca(){for(var e=0;en?n:4,e(!0);var r=Cl.transition;Cl.transition={};try{e(!1),t()}finally{K=n,Cl.transition=r}}function yf(){return Be().memoizedState}function ag(e,t,n){var r=Ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wf(e))xf(t,n);else if(n=Yd(e,t,n,r),n!==null){var o=Se();qe(n,e,r,o),Sf(n,t,r)}}function ug(e,t,n){var r=Ft(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wf(e))xf(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,et(s,l)){var a=t.interleaved;a===null?(o.next=o,la(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Yd(e,t,o,r),n!==null&&(o=Se(),qe(n,e,r,o),Sf(n,t,r))}}function wf(e){var t=e.alternate;return e===te||t!==null&&t===te}function xf(e,t){Nr=fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qs(e,n)}}var pi={readContext:Ve,useCallback:me,useContext:me,useEffect:me,useImperativeHandle:me,useInsertionEffect:me,useLayoutEffect:me,useMemo:me,useReducer:me,useRef:me,useState:me,useDebugValue:me,useDeferredValue:me,useTransition:me,useMutableSource:me,useSyncExternalStore:me,useId:me,unstable_isNewReconciler:!1},cg={readContext:Ve,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:Hu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bo(4194308,4,pf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bo(4,2,e,t)},useMemo:function(e,t){var n=nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nt();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=ag.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:Wu,useDebugValue:ha,useDeferredValue:function(e){return nt().memoizedState=e},useTransition:function(){var e=Wu(!1),t=e[0];return e=sg.bind(null,e[1]),nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,o=nt();if(q){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),ce===null)throw Error(b(349));pn&30||of(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Hu(sf.bind(null,r,i,e),[e]),r.flags|=2048,Kr(9,lf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=nt(),t=ce.identifierPrefix;if(q){var n=ft,r=dt;n=(r&~(1<<32-Je(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Hr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[rt]=t,e[Vr]=r,Tf(e,t,!1,!1),t.stateNode=e;e:{switch(l=Vl(n,r),n){case"dialog":Z("cancel",e),Z("close",e),o=r;break;case"iframe":case"object":case"embed":Z("load",e),o=r;break;case"video":case"audio":for(o=0;oGn&&(t.flags|=128,r=!0,mr(i,!1),t.lanes=4194304)}else{if(!r)if(e=di(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!q)return he(t),null}else 2*ie()-i.renderingStartTime>Gn&&n!==1073741824&&(t.flags|=128,r=!0,mr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ie(),t.sibling=null,n=ee.current,G(ee,r?n&1|2:n&1),t):(he(t),null);case 22:case 23:return Sa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Te&1073741824&&(he(t),t.subtreeFlags&6&&(t.flags|=8192)):he(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function yg(e,t){switch(ta(t),t.tag){case 1:return Ne(t.type)&&oi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qn(),J(be),J(ve),ca(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ua(t),null;case 13:if(J(ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(ee),null;case 4:return Qn(),null;case 10:return ia(t.type._context),null;case 22:case 23:return Sa(),null;case 24:return null;default:return null}}var bo=!1,ge=!1,wg=typeof WeakSet=="function"?WeakSet:Set,j=null;function jn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function hs(e,t,n){try{n()}catch(r){oe(e,t,r)}}var ec=!1;function xg(e,t){if(Jl=ei,e=Md(),qs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,f=e,g=null;t:for(;;){for(var v;f!==n||o!==0&&f.nodeType!==3||(s=l+o),f!==i||r!==0&&f.nodeType!==3||(a=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(v=f.firstChild)!==null;)g=f,f=v;for(;;){if(f===e)break t;if(g===n&&++u===o&&(s=l),g===i&&++c===r&&(a=l),(v=f.nextSibling)!==null)break;f=g,g=f.parentNode}f=v}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ql={focusedElem:e,selectionRange:n},ei=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,C=y.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ge(t.type,w),C);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(S){oe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return y=ec,ec=!1,y}function Rr(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&&hs(t,n,i)}o=o.next}while(o!==r)}}function Ii(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 gs(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 jf(e){var t=e.alternate;t!==null&&(e.alternate=null,jf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rt],delete t[Vr],delete t[ns],delete t[ng],delete t[rg])),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 Of(e){return e.tag===5||e.tag===3||e.tag===4}function tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Of(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 vs(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=ri));else if(r!==4&&(e=e.child,e!==null))for(vs(e,t,n),e=e.sibling;e!==null;)vs(e,t,n),e=e.sibling}function ys(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(ys(e,t,n),e=e.sibling;e!==null;)ys(e,t,n),e=e.sibling}var de=null,Ye=!1;function Et(e,t,n){for(n=n.child;n!==null;)Mf(e,t,n),n=n.sibling}function Mf(e,t,n){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Ti,n)}catch{}switch(n.tag){case 5:ge||jn(n,t);case 6:var r=de,o=Ye;de=null,Et(e,t,n),de=r,Ye=o,de!==null&&(Ye?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(Ye?(e=de,n=n.stateNode,e.nodeType===8?wl(e.parentNode,n):e.nodeType===1&&wl(e,n),Ar(e)):wl(de,n.stateNode));break;case 4:r=de,o=Ye,de=n.stateNode.containerInfo,Ye=!0,Et(e,t,n),de=r,Ye=o;break;case 0:case 11:case 14:case 15:if(!ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&hs(n,t,l),o=o.next}while(o!==r)}Et(e,t,n);break;case 1:if(!ge&&(jn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){oe(n,t,s)}Et(e,t,n);break;case 21:Et(e,t,n);break;case 22:n.mode&1?(ge=(r=ge)||n.memoizedState!==null,Et(e,t,n),ge=r):Et(e,t,n);break;default:Et(e,t,n)}}function nc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wg),t.forEach(function(r){var o=Rg.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qe(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cg(r/1960))-r,10e?16:e,_t===null)var r=!1;else{if(e=_t,_t=null,gi=0,V&6)throw Error(b(331));var o=V;for(V|=4,j=e.current;j!==null;){var i=j,l=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var a=0;aie()-wa?un(e,0):ya|=n),Re(e,t)}function Bf(e,t){t===0&&(e.mode&1?(t=yo,yo<<=1,!(yo&130023424)&&(yo=4194304)):t=1);var n=Se();e=gt(e,t),e!==null&&(ro(e,t,n),Re(e,n))}function Ng(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bf(e,n)}function Rg(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(b(314))}r!==null&&r.delete(t),Bf(e,n)}var Wf;Wf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,gg(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,q&&t.flags&1048576&&Qd(t,si,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wo(e,t),e=t.pendingProps;var o=Bn(t,ve.current);Dn(t,n),o=fa(null,t,r,e,o,n);var i=pa();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,Ne(r)?(i=!0,ii(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,sa(t),o.updater=Li,t.stateNode=o,o._reactInternals=t,as(t,r,e,n),t=ds(null,t,r,!0,i,n)):(t.tag=0,q&&i&&ea(t),ye(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=zg(r),e=Ge(r,e),o){case 0:t=cs(null,t,r,e,n);break e;case 1:t=Zu(null,t,r,e,n);break e;case 11:t=Yu(null,t,r,e,n);break e;case 14:t=Xu(null,t,r,Ge(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),cs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Zu(e,t,r,o,n);case 3:e:{if(bf(t),e===null)throw Error(b(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Xd(e,t),ci(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Kn(Error(b(423)),t),t=Ju(e,t,r,n,o);break e}else if(r!==o){o=Kn(Error(b(424)),t),t=Ju(e,t,r,n,o);break e}else for(_e=At(t.stateNode.containerInfo.firstChild),je=t,q=!0,Xe=null,n=ef(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wn(),r===o){t=vt(e,t,n);break e}ye(e,t,r,n)}t=t.child}return t;case 5:return tf(t),e===null&&is(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,es(r,o)?l=null:i!==null&&es(r,i)&&(t.flags|=32),Pf(e,t),ye(e,t,l,n),t.child;case 6:return e===null&&is(t),null;case 13:return Nf(e,t,n);case 4:return aa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hn(t,null,r,n):ye(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Yu(e,t,r,o,n);case 7:return ye(e,t,t.pendingProps,n),t.child;case 8:return ye(e,t,t.pendingProps.children,n),t.child;case 12:return ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,G(ai,r._currentValue),r._currentValue=l,i!==null)if(et(i.value,l)){if(i.children===o.children&&!be.current){t=vt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=pt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),ls(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(b(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),ls(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}ye(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Dn(t,n),o=Ve(o),r=r(o),t.flags|=1,ye(e,t,r,n),t.child;case 14:return r=t.type,o=Ge(r,t.pendingProps),o=Ge(r.type,o),Xu(e,t,r,o,n);case 15:return Ef(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Wo(e,t),t.tag=1,Ne(r)?(e=!0,ii(t)):e=!1,Dn(t,n),Jd(t,r,o),as(t,r,o,n),ds(null,t,r,!0,e,n);case 19:return Rf(e,t,n);case 22:return $f(e,t,n)}throw Error(b(156,t.tag))};function Hf(e,t){return gd(e,t)}function Tg(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 Fe(e,t,n,r){return new Tg(e,t,n,r)}function ka(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zg(e){if(typeof e=="function")return ka(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vs)return 11;if(e===Bs)return 14}return 2}function Ut(e,t){var n=e.alternate;return n===null?(n=Fe(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 Ko(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")ka(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case En:return cn(n.children,o,i,t);case Us:l=8,o|=8;break;case _l:return e=Fe(12,n,t,o|2),e.elementType=_l,e.lanes=i,e;case jl:return e=Fe(13,n,t,o),e.elementType=jl,e.lanes=i,e;case Ol:return e=Fe(19,n,t,o),e.elementType=Ol,e.lanes=i,e;case qc:return Fi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zc:l=10;break e;case Jc:l=9;break e;case Vs:l=11;break e;case Bs:l=14;break e;case bt:l=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=Fe(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function cn(e,t,n,r){return e=Fe(7,e,r,t),e.lanes=n,e}function Fi(e,t,n,r){return e=Fe(22,e,r,t),e.elementType=qc,e.lanes=n,e.stateNode={isHidden:!1},e}function bl(e,t,n){return e=Fe(6,e,null,t),e.lanes=n,e}function Nl(e,t,n){return t=Fe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _g(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=al(0),this.expirationTimes=al(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=al(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ea(e,t,n,r,o,i,l,s,a){return e=new _g(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Fe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sa(i),e}function jg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yf)}catch(e){console.error(e)}}Yf(),Qc.exports=Le;var Hi=Qc.exports,cc=Hi;Tl.createRoot=cc.createRoot,Tl.hydrateRoot=cc.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function $l(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function us(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pg=typeof WeakMap=="function"?WeakMap:Map;function Cf(e,t,n){n=pt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){hi||(hi=!0,ws=r),us(e,t)},n}function kf(e,t,n){n=pt(-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(){us(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){us(e,t),typeof r!="function"&&(Dt===null?Dt=new Set([this]):Dt.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new pg;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=bg.bind(null,e,t,n),t.then(e,e))}function Ku(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Gu(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=pt(-1,1),t.tag=2,It(n,t,1))),n.lanes|=1),e)}var mg=St.ReactCurrentOwner,Pe=!1;function ye(e,t,n,r){t.child=e===null?ef(t,null,n,r):Hn(t,e.child,n,r)}function Yu(e,t,n,r,o){n=n.render;var i=t.ref;return Dn(t,o),r=fa(e,t,n,r,i,o),n=pa(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,vt(e,t,o)):(q&&n&&ea(t),t.flags|=1,ye(e,t,r,o),t.child)}function Xu(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!ka(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Ef(e,t,i,r,o)):(e=Ko(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 l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Dr,n(l,r)&&e.ref===t.ref)return vt(e,t,o)}return t.flags|=1,e=Ut(i,r),e.ref=t.ref,e.return=t,t.child=e}function Ef(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Dr(i,r)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Pe=!0);else return t.lanes=e.lanes,vt(e,t,o)}return cs(e,t,n,r,o)}function $f(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},G(On,ze),ze|=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,G(On,ze),ze|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,G(On,ze),ze|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,G(On,ze),ze|=r;return ye(e,t,o,n),t.child}function Pf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function cs(e,t,n,r,o){var i=Ne(n)?dn:ve.current;return i=Bn(t,i),Dn(t,o),n=fa(e,t,n,r,i,o),r=pa(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,vt(e,t,o)):(q&&r&&ea(t),t.flags|=1,ye(e,t,n,o),t.child)}function Zu(e,t,n,r,o){if(Ne(n)){var i=!0;ii(t)}else i=!1;if(Dn(t,o),t.stateNode===null)Wo(e,t),Jd(t,n,r),as(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ve(u):(u=Ne(n)?dn:ve.current,u=Bn(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&Vu(t,l,r,u),Nt=!1;var g=t.memoizedState;l.state=g,ci(t,r,l,o),a=t.memoizedState,s!==r||g!==a||be.current||Nt?(typeof c=="function"&&(ss(t,n,c,r),a=t.memoizedState),(s=Nt||Uu(t,n,s,r,g,a,u))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Xd(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ge(t.type,s),l.props=u,f=t.pendingProps,g=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ve(a):(a=Ne(n)?dn:ve.current,a=Bn(t,a));var v=n.getDerivedStateFromProps;(c=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==f||g!==a)&&Vu(t,l,r,a),Nt=!1,g=t.memoizedState,l.state=g,ci(t,r,l,o);var y=t.memoizedState;s!==f||g!==y||be.current||Nt?(typeof v=="function"&&(ss(t,n,v,r),y=t.memoizedState),(u=Nt||Uu(t,n,u,r,g,y,a)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,y,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,y,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),l.props=r,l.state=y,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return ds(e,t,n,r,i,o)}function ds(e,t,n,r,o,i){Pf(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Lu(t,n,!1),vt(e,t,i);r=t.stateNode,mg.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Hn(t,e.child,null,i),t.child=Hn(t,null,s,i)):ye(e,t,s,i),t.memoizedState=r.state,o&&Lu(t,n,!0),t.child}function bf(e){var t=e.stateNode;t.pendingContext?Mu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mu(e,t.context,!1),aa(e,t.containerInfo)}function Ju(e,t,n,r,o){return Wn(),na(o),t.flags|=256,ye(e,t,n,r),t.child}var fs={dehydrated:null,treeContext:null,retryLane:0};function ps(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nf(e,t,n){var r=t.pendingProps,o=ee.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),G(ee,o&1),e===null)return is(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):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Fi(l,r,0,null),e=cn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ps(n),t.memoizedState=fs,e):ga(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return hg(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Ut(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Ut(s,i):(i=cn(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?ps(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=fs,r}return i=e.child,e=i.sibling,r=Ut(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 ga(e,t){return t=Fi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Po(e,t,n,r){return r!==null&&na(r),Hn(t,e.child,null,n),e=ga(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hg(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=$l(Error(b(422))),Po(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Fi({mode:"visible",children:r.children},o,0,null),i=cn(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Hn(t,e.child,null,l),t.child.memoizedState=ps(l),t.memoizedState=fs,i);if(!(t.mode&1))return Po(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(b(419)),r=$l(i,r,void 0),Po(e,t,l,r)}if(s=(l&e.childLanes)!==0,Pe||s){if(r=ce,r!==null){switch(l&-l){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|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,gt(e,o),qe(r,e,o,-1))}return Ca(),r=$l(Error(b(421))),Po(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Ng.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,_e=At(o.nextSibling),je=t,q=!0,Xe=null,e!==null&&(Ie[De++]=dt,Ie[De++]=ft,Ie[De++]=fn,dt=e.id,ft=e.overflow,fn=t),t=ga(t,r.children),t.flags|=4096,t)}function qu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ls(e.return,t,n)}function Pl(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 Rf(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ye(e,t,r.children,n),r=ee.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&&qu(e,n,t);else if(e.tag===19)qu(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(G(ee,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&&di(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Pl(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&&di(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Pl(t,!0,n,null,i);break;case"together":Pl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(b(153));if(t.child!==null){for(e=t.child,n=Ut(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ut(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gg(e,t,n){switch(t.tag){case 3:bf(t),Wn();break;case 5:tf(t);break;case 1:Ne(t.type)&&ii(t);break;case 4:aa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;G(ai,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(G(ee,ee.current&1),t.flags|=128,null):n&t.child.childLanes?Nf(e,t,n):(G(ee,ee.current&1),e=vt(e,t,n),e!==null?e.sibling:null);G(ee,ee.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Rf(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),G(ee,ee.current),r)break;return null;case 22:case 23:return t.lanes=0,$f(e,t,n)}return vt(e,t,n)}var zf,ms,Tf,_f;zf=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}};ms=function(){};Tf=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,sn(it.current);var i=null;switch(n){case"input":o=Ll(e,o),r=Ll(e,r),i=[];break;case"select":o=re({},o,{value:void 0}),r=re({},r,{value:void 0}),i=[];break;case"textarea":o=Dl(e,o),r=Dl(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ri)}Ul(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(_r.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(_r.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Z("scroll",e),i||s===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};_f=function(e,t,n,r){n!==r&&(t.flags|=4)};function mr(e,t){if(!q)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 he(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 vg(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return he(t),null;case 1:return Ne(t.type)&&oi(),he(t),null;case 3:return r=t.stateNode,Qn(),J(be),J(ve),ca(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Eo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xe!==null&&(Cs(Xe),Xe=null))),ms(e,t),he(t),null;case 5:ua(t);var o=sn(Wr.current);if(n=t.type,e!==null&&t.stateNode!=null)Tf(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(b(166));return he(t),null}if(e=sn(it.current),Eo(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[rt]=t,r[Vr]=i,e=(t.mode&1)!==0,n){case"dialog":Z("cancel",r),Z("close",r);break;case"iframe":case"object":case"embed":Z("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[rt]=t,e[Vr]=r,zf(e,t,!1,!1),t.stateNode=e;e:{switch(l=Vl(n,r),n){case"dialog":Z("cancel",e),Z("close",e),o=r;break;case"iframe":case"object":case"embed":Z("load",e),o=r;break;case"video":case"audio":for(o=0;oGn&&(t.flags|=128,r=!0,mr(i,!1),t.lanes=4194304)}else{if(!r)if(e=di(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!q)return he(t),null}else 2*ie()-i.renderingStartTime>Gn&&n!==1073741824&&(t.flags|=128,r=!0,mr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ie(),t.sibling=null,n=ee.current,G(ee,r?n&1|2:n&1),t):(he(t),null);case 22:case 23:return Sa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ze&1073741824&&(he(t),t.subtreeFlags&6&&(t.flags|=8192)):he(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function yg(e,t){switch(ta(t),t.tag){case 1:return Ne(t.type)&&oi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qn(),J(be),J(ve),ca(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ua(t),null;case 13:if(J(ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(ee),null;case 4:return Qn(),null;case 10:return ia(t.type._context),null;case 22:case 23:return Sa(),null;case 24:return null;default:return null}}var bo=!1,ge=!1,wg=typeof WeakSet=="function"?WeakSet:Set,j=null;function jn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function hs(e,t,n){try{n()}catch(r){oe(e,t,r)}}var ec=!1;function xg(e,t){if(Jl=ei,e=Md(),qs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,f=e,g=null;t:for(;;){for(var v;f!==n||o!==0&&f.nodeType!==3||(s=l+o),f!==i||r!==0&&f.nodeType!==3||(a=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(v=f.firstChild)!==null;)g=f,f=v;for(;;){if(f===e)break t;if(g===n&&++u===o&&(s=l),g===i&&++c===r&&(a=l),(v=f.nextSibling)!==null)break;f=g,g=f.parentNode}f=v}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ql={focusedElem:e,selectionRange:n},ei=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,C=y.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ge(t.type,w),C);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(S){oe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return y=ec,ec=!1,y}function Rr(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&&hs(t,n,i)}o=o.next}while(o!==r)}}function Ii(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 gs(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 jf(e){var t=e.alternate;t!==null&&(e.alternate=null,jf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rt],delete t[Vr],delete t[ns],delete t[ng],delete t[rg])),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 Of(e){return e.tag===5||e.tag===3||e.tag===4}function tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Of(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 vs(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=ri));else if(r!==4&&(e=e.child,e!==null))for(vs(e,t,n),e=e.sibling;e!==null;)vs(e,t,n),e=e.sibling}function ys(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(ys(e,t,n),e=e.sibling;e!==null;)ys(e,t,n),e=e.sibling}var de=null,Ye=!1;function Et(e,t,n){for(n=n.child;n!==null;)Mf(e,t,n),n=n.sibling}function Mf(e,t,n){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(zi,n)}catch{}switch(n.tag){case 5:ge||jn(n,t);case 6:var r=de,o=Ye;de=null,Et(e,t,n),de=r,Ye=o,de!==null&&(Ye?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(Ye?(e=de,n=n.stateNode,e.nodeType===8?wl(e.parentNode,n):e.nodeType===1&&wl(e,n),Ar(e)):wl(de,n.stateNode));break;case 4:r=de,o=Ye,de=n.stateNode.containerInfo,Ye=!0,Et(e,t,n),de=r,Ye=o;break;case 0:case 11:case 14:case 15:if(!ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&hs(n,t,l),o=o.next}while(o!==r)}Et(e,t,n);break;case 1:if(!ge&&(jn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){oe(n,t,s)}Et(e,t,n);break;case 21:Et(e,t,n);break;case 22:n.mode&1?(ge=(r=ge)||n.memoizedState!==null,Et(e,t,n),ge=r):Et(e,t,n);break;default:Et(e,t,n)}}function nc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wg),t.forEach(function(r){var o=Rg.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qe(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cg(r/1960))-r,10e?16:e,_t===null)var r=!1;else{if(e=_t,_t=null,gi=0,V&6)throw Error(b(331));var o=V;for(V|=4,j=e.current;j!==null;){var i=j,l=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var a=0;aie()-wa?un(e,0):ya|=n),Re(e,t)}function Bf(e,t){t===0&&(e.mode&1?(t=yo,yo<<=1,!(yo&130023424)&&(yo=4194304)):t=1);var n=Se();e=gt(e,t),e!==null&&(ro(e,t,n),Re(e,n))}function Ng(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bf(e,n)}function Rg(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(b(314))}r!==null&&r.delete(t),Bf(e,n)}var Wf;Wf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,gg(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,q&&t.flags&1048576&&Qd(t,si,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wo(e,t),e=t.pendingProps;var o=Bn(t,ve.current);Dn(t,n),o=fa(null,t,r,e,o,n);var i=pa();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,Ne(r)?(i=!0,ii(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,sa(t),o.updater=Li,t.stateNode=o,o._reactInternals=t,as(t,r,e,n),t=ds(null,t,r,!0,i,n)):(t.tag=0,q&&i&&ea(t),ye(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Tg(r),e=Ge(r,e),o){case 0:t=cs(null,t,r,e,n);break e;case 1:t=Zu(null,t,r,e,n);break e;case 11:t=Yu(null,t,r,e,n);break e;case 14:t=Xu(null,t,r,Ge(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),cs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Zu(e,t,r,o,n);case 3:e:{if(bf(t),e===null)throw Error(b(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Xd(e,t),ci(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Kn(Error(b(423)),t),t=Ju(e,t,r,n,o);break e}else if(r!==o){o=Kn(Error(b(424)),t),t=Ju(e,t,r,n,o);break e}else for(_e=At(t.stateNode.containerInfo.firstChild),je=t,q=!0,Xe=null,n=ef(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wn(),r===o){t=vt(e,t,n);break e}ye(e,t,r,n)}t=t.child}return t;case 5:return tf(t),e===null&&is(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,es(r,o)?l=null:i!==null&&es(r,i)&&(t.flags|=32),Pf(e,t),ye(e,t,l,n),t.child;case 6:return e===null&&is(t),null;case 13:return Nf(e,t,n);case 4:return aa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hn(t,null,r,n):ye(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Yu(e,t,r,o,n);case 7:return ye(e,t,t.pendingProps,n),t.child;case 8:return ye(e,t,t.pendingProps.children,n),t.child;case 12:return ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,G(ai,r._currentValue),r._currentValue=l,i!==null)if(et(i.value,l)){if(i.children===o.children&&!be.current){t=vt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=pt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),ls(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(b(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),ls(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}ye(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Dn(t,n),o=Ve(o),r=r(o),t.flags|=1,ye(e,t,r,n),t.child;case 14:return r=t.type,o=Ge(r,t.pendingProps),o=Ge(r.type,o),Xu(e,t,r,o,n);case 15:return Ef(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Wo(e,t),t.tag=1,Ne(r)?(e=!0,ii(t)):e=!1,Dn(t,n),Jd(t,r,o),as(t,r,o,n),ds(null,t,r,!0,e,n);case 19:return Rf(e,t,n);case 22:return $f(e,t,n)}throw Error(b(156,t.tag))};function Hf(e,t){return gd(e,t)}function zg(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 Fe(e,t,n,r){return new zg(e,t,n,r)}function ka(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tg(e){if(typeof e=="function")return ka(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vs)return 11;if(e===Bs)return 14}return 2}function Ut(e,t){var n=e.alternate;return n===null?(n=Fe(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 Ko(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")ka(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case En:return cn(n.children,o,i,t);case Us:l=8,o|=8;break;case _l:return e=Fe(12,n,t,o|2),e.elementType=_l,e.lanes=i,e;case jl:return e=Fe(13,n,t,o),e.elementType=jl,e.lanes=i,e;case Ol:return e=Fe(19,n,t,o),e.elementType=Ol,e.lanes=i,e;case qc:return Fi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zc:l=10;break e;case Jc:l=9;break e;case Vs:l=11;break e;case Bs:l=14;break e;case bt:l=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=Fe(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function cn(e,t,n,r){return e=Fe(7,e,r,t),e.lanes=n,e}function Fi(e,t,n,r){return e=Fe(22,e,r,t),e.elementType=qc,e.lanes=n,e.stateNode={isHidden:!1},e}function bl(e,t,n){return e=Fe(6,e,null,t),e.lanes=n,e}function Nl(e,t,n){return t=Fe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _g(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=al(0),this.expirationTimes=al(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=al(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ea(e,t,n,r,o,i,l,s,a){return e=new _g(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Fe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sa(i),e}function jg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yf)}catch(e){console.error(e)}}Yf(),Qc.exports=Le;var Hi=Qc.exports,cc=Hi;zl.createRoot=cc.createRoot,zl.hydrateRoot=cc.hydrateRoot;/** * @remix-run/router v1.14.0 * * Copyright (c) Remix Software Inc. @@ -64,7 +64,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ci(){return Ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Nv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Rv(e,t){return e.button===0&&(!t||t==="_self")&&!Nv(e)}const Tv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],zv=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],_v=h.createContext({isTransitioning:!1}),jv="startTransition",gc=Wc[jv];function Ov(e){let{basename:t,children:n,future:r,window:o}=e,i=h.useRef();i.current==null&&(i.current=Ig({window:o,v5Compat:!0}));let l=i.current,[s,a]=h.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},c=h.useCallback(f=>{u&&gc?gc(()=>a(f)):a(f)},[a,u]);return h.useLayoutEffect(()=>l.listen(c),[l,c]),h.createElement(Pv,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:r})}const Mv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Lv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Av=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:s,target:a,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,g=lp(t,Tv),{basename:v}=h.useContext(Zt),y,w=!1;if(typeof u=="string"&&Lv.test(u)&&(y=u,Mv))try{let m=new URL(window.location.href),S=u.startsWith("//")?new URL(m.protocol+u):new URL(u),k=Xr(S.pathname,v);S.origin===m.origin&&k!=null?u=k+S.search+S.hash:w=!0}catch{}let C=uv(u,{relative:o}),p=Fv(u,{replace:l,state:s,target:a,preventScrollReset:c,relative:o,unstable_viewTransition:f});function d(m){r&&r(m),m.defaultPrevented||p(m)}return h.createElement("a",Ci({},g,{href:y||C,onClick:w||i?r:d,ref:n,target:a}))}),Iv=h.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:l=!1,style:s,to:a,unstable_viewTransition:u,children:c}=t,f=lp(t,zv),g=so(a,{relative:f.relative}),v=er(),y=h.useContext(tp),{navigator:w}=h.useContext(Zt),C=y!=null&&Uv(g)&&u===!0,p=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,d=v.pathname,m=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(d=d.toLowerCase(),m=m?m.toLowerCase():null,p=p.toLowerCase());const S=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let k=d===p||!l&&d.startsWith(p)&&d.charAt(S)==="/",E=m!=null&&(m===p||!l&&m.startsWith(p)&&m.charAt(p.length)==="/"),$={isActive:k,isPending:E,isTransitioning:C},P=k?r:void 0,z;typeof i=="function"?z=i($):z=[i,k?"active":null,E?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let N=typeof s=="function"?s($):s;return h.createElement(Av,Ci({},f,{"aria-current":P,className:z,ref:n,style:N,to:a,unstable_viewTransition:u}),typeof c=="function"?c($):c)});var $s;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($s||($s={}));var vc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vc||(vc={}));function Dv(e){let t=h.useContext(Ki);return t||ne(!1),t}function Fv(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:s}=t===void 0?{}:t,a=dv(),u=er(),c=so(e,{relative:l});return h.useCallback(f=>{if(Rv(f,n)){f.preventDefault();let g=r!==void 0?r:wi(u)===wi(c);a(e,{replace:g,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:s})}},[u,a,c,r,o,n,e,i,l,s])}function Uv(e,t){t===void 0&&(t={});let n=h.useContext(_v);n==null&&ne(!1);let{basename:r}=Dv($s.useViewTransitionState),o=so(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Xr(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Xr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return xi(o.pathname,l)!=null||xi(o.pathname,i)!=null}const ao=h.forwardRef(({className:e,type:t,...n},r)=>x.jsx("input",{type:t,className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 "+e,ref:r,...n}));ao.displayName="Input";function Na({value:e,onChange:t,ansState:n}){return x.jsx(ao,{value:e,onChange:t,className:"text-center border-4 border-gray-300 ring-offset-2 "+(n===0?"":n===1?"ring ring-correct":"ring ring-wrong")})}function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>Vv(n,t))}function lt(...e){return h.useCallback(sp(...e),e)}const Jr=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(Bv);if(i){const l=i.props.children,s=o.map(a=>a===i?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:a);return h.createElement(Ps,Q({},r,{ref:t}),h.isValidElement(l)?h.cloneElement(l,void 0,s):null)}return h.createElement(Ps,Q({},r,{ref:t}),n)});Jr.displayName="Slot";const Ps=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...Wv(r,n.props),ref:t?sp(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});Ps.displayName="SlotClone";const ap=({children:e})=>h.createElement(h.Fragment,null,e);function Bv(e){return h.isValidElement(e)&&e.type===ap}function Wv(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 up(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,wc=cp,Hv=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return wc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],f=i==null?void 0:i[u];if(c===null)return null;const g=yc(c)||yc(f);return o[u][g]}),s=n&&Object.entries(n).reduce((u,c)=>{let[f,g]=c;return g===void 0||(u[f]=g),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:g,...v}=c;return Object.entries(v).every(y=>{let[w,C]=y;return Array.isArray(C)?C.includes({...i,...s}[w]):{...i,...s}[w]===C})?[...u,f,g]:u},[]);return wc(e,l,a,n==null?void 0:n.class,n==null?void 0:n.className)},Ra="-";function Qv(e){const t=Gv(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(l){const s=l.split(Ra);return s[0]===""&&s.length!==1&&s.shift(),dp(s,t)||Kv(l)}function i(l,s){const a=n[l]||[];return s&&r[l]?[...a,...r[l]]:a}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function dp(e,t){var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?dp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Ra);return(l=t.validators.find(({validator:s})=>s(i)))==null?void 0:l.classGroupId}const xc=/^\[(.+)\]$/;function Kv(e){if(xc.test(e)){const t=xc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Gv(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Xv(Object.entries(e.classGroups),n).forEach(([i,l])=>{bs(l,r,i,t)}),r}function bs(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Sc(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Yv(o)){bs(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{bs(l,Sc(t,i),n,r)})})}function Sc(e,t){let n=e;return t.split(Ra).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Yv(e){return e.isThemeGetter}function Xv(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(([l,s])=>[t+l,s])):i);return[n,o]}):e}function Zv(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,l){n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}}const fp="!";function Jv(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(l){const s=[];let a=0,u=0,c;for(let w=0;wu?c-u:void 0;return{modifiers:s,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:y}}}function qv(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 e0(e){return{cache:Zv(e.cacheSize),splitModifiers:Jv(e),...Qv(e)}}const t0=/\s+/;function n0(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(t0).map(l=>{const{modifiers:s,hasImportantModifier:a,baseClassName:u,maybePostfixModifierPosition:c}=n(l);let f=r(c?u.substring(0,c):u),g=!!c;if(!f){if(!c)return{isTailwindClass:!1,originalClassName:l};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:l};g=!1}const v=qv(s).join(":");return{isTailwindClass:!0,modifierId:a?v+fp:v,classGroupId:f,originalClassName:l,hasPostfixModifier:g}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:s,classGroupId:a,hasPostfixModifier:u}=l,c=s+a;return i.has(c)?!1:(i.add(c),o(a,u).forEach(f=>i.add(s+f)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function r0(){let e=0,t,n,r="";for(;ef(c),e());return n=e0(u),r=n.cache.get,o=n.cache.set,i=s,s(a)}function s(a){const u=r(a);if(u)return u;const c=n0(a,n);return o(a,c),c}return function(){return i(r0.apply(null,arguments))}}function X(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const mp=/^\[(?:([a-z-]+):)?(.+)\]$/i,i0=/^\d+\/\d+$/,l0=new Set(["px","full","screen"]),s0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,a0=/\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$/,u0=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,c0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Ke(e){return an(e)||l0.has(e)||i0.test(e)}function $t(e){return tr(e,"length",y0)}function an(e){return!!e&&!Number.isNaN(Number(e))}function To(e){return tr(e,"number",an)}function gr(e){return!!e&&Number.isInteger(Number(e))}function d0(e){return e.endsWith("%")&&an(e.slice(0,-1))}function D(e){return mp.test(e)}function Pt(e){return s0.test(e)}const f0=new Set(["length","size","percentage"]);function p0(e){return tr(e,f0,hp)}function m0(e){return tr(e,"position",hp)}const h0=new Set(["image","url"]);function g0(e){return tr(e,h0,x0)}function v0(e){return tr(e,"",w0)}function vr(){return!0}function tr(e,t,n){const r=mp.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function y0(e){return a0.test(e)}function hp(){return!1}function w0(e){return u0.test(e)}function x0(e){return c0.test(e)}function S0(){const e=X("colors"),t=X("spacing"),n=X("blur"),r=X("brightness"),o=X("borderColor"),i=X("borderRadius"),l=X("borderSpacing"),s=X("borderWidth"),a=X("contrast"),u=X("grayscale"),c=X("hueRotate"),f=X("invert"),g=X("gap"),v=X("gradientColorStops"),y=X("gradientColorStopPositions"),w=X("inset"),C=X("margin"),p=X("opacity"),d=X("padding"),m=X("saturate"),S=X("scale"),k=X("sepia"),E=X("skew"),$=X("space"),P=X("translate"),z=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",D,t],O=()=>[D,t],B=()=>["",Ke,$t],M=()=>["auto",an,D],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],R=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",D],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[an,To],Y=()=>[an,D];return{cacheSize:500,separator:":",theme:{colors:[vr],spacing:[Ke,$t],blur:["none","",Pt,D],brightness:H(),borderColor:[e],borderRadius:["none","","full",Pt,D],borderSpacing:O(),borderWidth:B(),contrast:H(),grayscale:T(),hueRotate:Y(),invert:T(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[d0,$t],inset:A(),margin:A(),opacity:H(),padding:O(),saturate:H(),scale:H(),sepia:T(),skew:Y(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",D]}],container:["container"],columns:[{columns:[Pt]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...W(),D]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",gr,D]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",D]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",gr,D]}],"grid-cols":[{"grid-cols":[vr]}],"col-start-end":[{col:["auto",{span:["full",gr,D]},D]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[vr]}],"row-start-end":[{row:["auto",{span:[gr,D]},D]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",D]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",D]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[d]}],px:[{px:[d]}],py:[{py:[d]}],ps:[{ps:[d]}],pe:[{pe:[d]}],pt:[{pt:[d]}],pr:[{pr:[d]}],pb:[{pb:[d]}],pl:[{pl:[d]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",D,t]}],"min-w":[{"min-w":["min","max","fit",D,Ke]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Pt]},Pt,D]}],h:[{h:[D,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Ke,D]}],"max-h":[{"max-h":[D,t,"min","max","fit"]}],"font-size":[{text:["base",Pt,$t]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",To]}],"font-family":[{font:[vr]}],"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",D]}],"line-clamp":[{"line-clamp":["none",an,To]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ke,D]}],"list-image":[{"list-image":["none",D]}],"list-style-type":[{list:["none","disc","decimal",D]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ke,$t]}],"underline-offset":[{"underline-offset":["auto",Ke,D]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",D]}],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",D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),m0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",p0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},g0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],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":[p]}],"border-style":[{border:[..._(),"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":[p]}],"divide-style":[{divide:_()}],"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:["",..._()]}],"outline-offset":[{"outline-offset":[Ke,D]}],"outline-w":[{outline:[Ke,$t]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[Ke,$t]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Pt,v0]}],"shadow-color":[{shadow:[vr]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":F()}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Pt,D]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[m]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",D]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",D]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",D]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[gr,D]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",D]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",D]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",D]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ke,$t,To]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},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"],"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 C0=o0(S0);function nr(...e){return C0(cp(e))}const k0=Hv("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"}}),xe=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const l=r?Jr:"button";return x.jsx(l,{className:nr(k0({variant:t,size:n,className:e})),ref:i,...o})});xe.displayName="Button";/** + */function Ci(){return Ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Nv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Rv(e,t){return e.button===0&&(!t||t==="_self")&&!Nv(e)}const zv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Tv=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],_v=h.createContext({isTransitioning:!1}),jv="startTransition",gc=Wc[jv];function Ov(e){let{basename:t,children:n,future:r,window:o}=e,i=h.useRef();i.current==null&&(i.current=Ig({window:o,v5Compat:!0}));let l=i.current,[s,a]=h.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},c=h.useCallback(f=>{u&&gc?gc(()=>a(f)):a(f)},[a,u]);return h.useLayoutEffect(()=>l.listen(c),[l,c]),h.createElement(Pv,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:r})}const Mv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Lv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Av=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:s,target:a,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,g=lp(t,zv),{basename:v}=h.useContext(Zt),y,w=!1;if(typeof u=="string"&&Lv.test(u)&&(y=u,Mv))try{let m=new URL(window.location.href),S=u.startsWith("//")?new URL(m.protocol+u):new URL(u),k=Xr(S.pathname,v);S.origin===m.origin&&k!=null?u=k+S.search+S.hash:w=!0}catch{}let C=uv(u,{relative:o}),p=Fv(u,{replace:l,state:s,target:a,preventScrollReset:c,relative:o,unstable_viewTransition:f});function d(m){r&&r(m),m.defaultPrevented||p(m)}return h.createElement("a",Ci({},g,{href:y||C,onClick:w||i?r:d,ref:n,target:a}))}),Iv=h.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:l=!1,style:s,to:a,unstable_viewTransition:u,children:c}=t,f=lp(t,Tv),g=so(a,{relative:f.relative}),v=er(),y=h.useContext(tp),{navigator:w}=h.useContext(Zt),C=y!=null&&Uv(g)&&u===!0,p=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,d=v.pathname,m=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(d=d.toLowerCase(),m=m?m.toLowerCase():null,p=p.toLowerCase());const S=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let k=d===p||!l&&d.startsWith(p)&&d.charAt(S)==="/",E=m!=null&&(m===p||!l&&m.startsWith(p)&&m.charAt(p.length)==="/"),$={isActive:k,isPending:E,isTransitioning:C},P=k?r:void 0,T;typeof i=="function"?T=i($):T=[i,k?"active":null,E?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let N=typeof s=="function"?s($):s;return h.createElement(Av,Ci({},f,{"aria-current":P,className:T,ref:n,style:N,to:a,unstable_viewTransition:u}),typeof c=="function"?c($):c)});var $s;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($s||($s={}));var vc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vc||(vc={}));function Dv(e){let t=h.useContext(Ki);return t||ne(!1),t}function Fv(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:s}=t===void 0?{}:t,a=dv(),u=er(),c=so(e,{relative:l});return h.useCallback(f=>{if(Rv(f,n)){f.preventDefault();let g=r!==void 0?r:wi(u)===wi(c);a(e,{replace:g,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:s})}},[u,a,c,r,o,n,e,i,l,s])}function Uv(e,t){t===void 0&&(t={});let n=h.useContext(_v);n==null&&ne(!1);let{basename:r}=Dv($s.useViewTransitionState),o=so(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Xr(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Xr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return xi(o.pathname,l)!=null||xi(o.pathname,i)!=null}const ao=h.forwardRef(({className:e,type:t,...n},r)=>x.jsx("input",{type:t,className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 "+e,ref:r,...n}));ao.displayName="Input";function Na({value:e,onChange:t,ansState:n}){return x.jsx(ao,{value:e,onChange:t,className:"text-center border-4 border-gray-300 ring-offset-2 "+(n===0?"":n===1?"ring ring-correct":"ring ring-wrong")})}function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>Vv(n,t))}function lt(...e){return h.useCallback(sp(...e),e)}const Jr=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(Bv);if(i){const l=i.props.children,s=o.map(a=>a===i?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:a);return h.createElement(Ps,Q({},r,{ref:t}),h.isValidElement(l)?h.cloneElement(l,void 0,s):null)}return h.createElement(Ps,Q({},r,{ref:t}),n)});Jr.displayName="Slot";const Ps=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...Wv(r,n.props),ref:t?sp(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});Ps.displayName="SlotClone";const ap=({children:e})=>h.createElement(h.Fragment,null,e);function Bv(e){return h.isValidElement(e)&&e.type===ap}function Wv(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 up(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,wc=cp,Hv=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return wc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],f=i==null?void 0:i[u];if(c===null)return null;const g=yc(c)||yc(f);return o[u][g]}),s=n&&Object.entries(n).reduce((u,c)=>{let[f,g]=c;return g===void 0||(u[f]=g),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:g,...v}=c;return Object.entries(v).every(y=>{let[w,C]=y;return Array.isArray(C)?C.includes({...i,...s}[w]):{...i,...s}[w]===C})?[...u,f,g]:u},[]);return wc(e,l,a,n==null?void 0:n.class,n==null?void 0:n.className)},Ra="-";function Qv(e){const t=Gv(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(l){const s=l.split(Ra);return s[0]===""&&s.length!==1&&s.shift(),dp(s,t)||Kv(l)}function i(l,s){const a=n[l]||[];return s&&r[l]?[...a,...r[l]]:a}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function dp(e,t){var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?dp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Ra);return(l=t.validators.find(({validator:s})=>s(i)))==null?void 0:l.classGroupId}const xc=/^\[(.+)\]$/;function Kv(e){if(xc.test(e)){const t=xc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Gv(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Xv(Object.entries(e.classGroups),n).forEach(([i,l])=>{bs(l,r,i,t)}),r}function bs(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Sc(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Yv(o)){bs(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{bs(l,Sc(t,i),n,r)})})}function Sc(e,t){let n=e;return t.split(Ra).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Yv(e){return e.isThemeGetter}function Xv(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(([l,s])=>[t+l,s])):i);return[n,o]}):e}function Zv(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,l){n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}}const fp="!";function Jv(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(l){const s=[];let a=0,u=0,c;for(let w=0;wu?c-u:void 0;return{modifiers:s,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:y}}}function qv(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 e0(e){return{cache:Zv(e.cacheSize),splitModifiers:Jv(e),...Qv(e)}}const t0=/\s+/;function n0(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(t0).map(l=>{const{modifiers:s,hasImportantModifier:a,baseClassName:u,maybePostfixModifierPosition:c}=n(l);let f=r(c?u.substring(0,c):u),g=!!c;if(!f){if(!c)return{isTailwindClass:!1,originalClassName:l};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:l};g=!1}const v=qv(s).join(":");return{isTailwindClass:!0,modifierId:a?v+fp:v,classGroupId:f,originalClassName:l,hasPostfixModifier:g}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:s,classGroupId:a,hasPostfixModifier:u}=l,c=s+a;return i.has(c)?!1:(i.add(c),o(a,u).forEach(f=>i.add(s+f)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function r0(){let e=0,t,n,r="";for(;ef(c),e());return n=e0(u),r=n.cache.get,o=n.cache.set,i=s,s(a)}function s(a){const u=r(a);if(u)return u;const c=n0(a,n);return o(a,c),c}return function(){return i(r0.apply(null,arguments))}}function X(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const mp=/^\[(?:([a-z-]+):)?(.+)\]$/i,i0=/^\d+\/\d+$/,l0=new Set(["px","full","screen"]),s0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,a0=/\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$/,u0=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,c0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Ke(e){return an(e)||l0.has(e)||i0.test(e)}function $t(e){return tr(e,"length",y0)}function an(e){return!!e&&!Number.isNaN(Number(e))}function zo(e){return tr(e,"number",an)}function gr(e){return!!e&&Number.isInteger(Number(e))}function d0(e){return e.endsWith("%")&&an(e.slice(0,-1))}function D(e){return mp.test(e)}function Pt(e){return s0.test(e)}const f0=new Set(["length","size","percentage"]);function p0(e){return tr(e,f0,hp)}function m0(e){return tr(e,"position",hp)}const h0=new Set(["image","url"]);function g0(e){return tr(e,h0,x0)}function v0(e){return tr(e,"",w0)}function vr(){return!0}function tr(e,t,n){const r=mp.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function y0(e){return a0.test(e)}function hp(){return!1}function w0(e){return u0.test(e)}function x0(e){return c0.test(e)}function S0(){const e=X("colors"),t=X("spacing"),n=X("blur"),r=X("brightness"),o=X("borderColor"),i=X("borderRadius"),l=X("borderSpacing"),s=X("borderWidth"),a=X("contrast"),u=X("grayscale"),c=X("hueRotate"),f=X("invert"),g=X("gap"),v=X("gradientColorStops"),y=X("gradientColorStopPositions"),w=X("inset"),C=X("margin"),p=X("opacity"),d=X("padding"),m=X("saturate"),S=X("scale"),k=X("sepia"),E=X("skew"),$=X("space"),P=X("translate"),T=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",D,t],O=()=>[D,t],B=()=>["",Ke,$t],M=()=>["auto",an,D],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],R=()=>["start","end","center","between","around","evenly","stretch"],z=()=>["","0",D],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[an,zo],Y=()=>[an,D];return{cacheSize:500,separator:":",theme:{colors:[vr],spacing:[Ke,$t],blur:["none","",Pt,D],brightness:H(),borderColor:[e],borderRadius:["none","","full",Pt,D],borderSpacing:O(),borderWidth:B(),contrast:H(),grayscale:z(),hueRotate:Y(),invert:z(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[d0,$t],inset:A(),margin:A(),opacity:H(),padding:O(),saturate:H(),scale:H(),sepia:z(),skew:Y(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",D]}],container:["container"],columns:[{columns:[Pt]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...W(),D]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",gr,D]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",D]}],grow:[{grow:z()}],shrink:[{shrink:z()}],order:[{order:["first","last","none",gr,D]}],"grid-cols":[{"grid-cols":[vr]}],"col-start-end":[{col:["auto",{span:["full",gr,D]},D]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[vr]}],"row-start-end":[{row:["auto",{span:[gr,D]},D]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",D]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",D]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[d]}],px:[{px:[d]}],py:[{py:[d]}],ps:[{ps:[d]}],pe:[{pe:[d]}],pt:[{pt:[d]}],pr:[{pr:[d]}],pb:[{pb:[d]}],pl:[{pl:[d]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",D,t]}],"min-w":[{"min-w":["min","max","fit",D,Ke]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Pt]},Pt,D]}],h:[{h:[D,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Ke,D]}],"max-h":[{"max-h":[D,t,"min","max","fit"]}],"font-size":[{text:["base",Pt,$t]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",zo]}],"font-family":[{font:[vr]}],"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",D]}],"line-clamp":[{"line-clamp":["none",an,zo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ke,D]}],"list-image":[{"list-image":["none",D]}],"list-style-type":[{list:["none","disc","decimal",D]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ke,$t]}],"underline-offset":[{"underline-offset":["auto",Ke,D]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",D]}],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",D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),m0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",p0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},g0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],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":[p]}],"border-style":[{border:[..._(),"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":[p]}],"divide-style":[{divide:_()}],"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:["",..._()]}],"outline-offset":[{"outline-offset":[Ke,D]}],"outline-w":[{outline:[Ke,$t]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[Ke,$t]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Pt,v0]}],"shadow-color":[{shadow:[vr]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":F()}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Pt,D]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[m]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",D]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",D]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",D]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[gr,D]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",D]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",D]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",D]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ke,$t,zo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},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"],"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 C0=o0(S0);function nr(...e){return C0(cp(e))}const k0=Hv("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"}}),xe=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const l=r?Jr:"button";return x.jsx(l,{className:nr(k0({variant:t,size:n,className:e})),ref:i,...o})});xe.displayName="Button";/** * @license lucide-react v0.297.0 - ISC * * This source code is licensed under the ISC license. @@ -79,7 +79,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ta=Jt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + */const za=Jt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.297.0 - ISC * * This source code is licensed under the ISC license. @@ -89,7 +89,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const za=Jt("Divide",[["circle",{cx:"12",cy:"6",r:"1",key:"1bh7o1"}],["line",{x1:"5",x2:"19",y1:"12",y2:"12",key:"13b5wn"}],["circle",{cx:"12",cy:"18",r:"1",key:"lqb9t5"}]]);/** + */const Ta=Jt("Divide",[["circle",{cx:"12",cy:"6",r:"1",key:"1bh7o1"}],["line",{x1:"5",x2:"19",y1:"12",y2:"12",key:"13b5wn"}],["circle",{cx:"12",cy:"18",r:"1",key:"lqb9t5"}]]);/** * @license lucide-react v0.297.0 - ISC * * This source code is licensed under the ISC license. @@ -114,9 +114,9 @@ Error generating stack: `+i.message+` * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ma=Jt("Shuffle",[["path",{d:"M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22",key:"1wmou1"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 6h1.9c1.5 0 2.9.9 3.6 2.2",key:"10bdb2"}],["path",{d:"M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8",key:"vgxac0"}],["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}]]);function N0(e){return e==="add"?"+":e==="sub"?"–":e==="mul"?"·":e==="div"?":":"ERROR"}function La({a:e,b:t,op:n}){return x.jsxs("div",{className:"text-4xl",children:[e," ",N0(n)," ",t]})}function Ze(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 rr(e,t=[]){let n=[];function r(i,l){const s=h.createContext(l),a=n.length;n=[...n,l];function u(f){const{scope:g,children:v,...y}=f,w=(g==null?void 0:g[e][a])||s,C=h.useMemo(()=>y,Object.values(y));return h.createElement(w.Provider,{value:C},v)}function c(f,g){const v=(g==null?void 0:g[e][a])||s,y=h.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=n.map(l=>h.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,R0(o,...t)]}function R0(...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 l=r.reduce((s,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...s,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}const T0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],He=T0.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Jr:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(s,Q({},l,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function z0(e,t){e&&Hi.flushSync(()=>e.dispatchEvent(t))}function or(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function _0(e,t=globalThis==null?void 0:globalThis.document){const n=or(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Ns="dismissableLayer.update",j0="dismissableLayer.pointerDownOutside",O0="dismissableLayer.focusOutside";let Cc;const M0=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),L0=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:s,onDismiss:a,...u}=e,c=h.useContext(M0),[f,g]=h.useState(null),v=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,y]=h.useState({}),w=lt(t,P=>g(P)),C=Array.from(c.layers),[p]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),d=C.indexOf(p),m=f?C.indexOf(f):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,k=m>=d,E=A0(P=>{const z=P.target,N=[...c.branches].some(A=>A.contains(z));!k||N||(i==null||i(P),s==null||s(P),P.defaultPrevented||a==null||a())},v),$=I0(P=>{const z=P.target;[...c.branches].some(A=>A.contains(z))||(l==null||l(P),s==null||s(P),P.defaultPrevented||a==null||a())},v);return _0(P=>{m===c.layers.size-1&&(o==null||o(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},v),h.useEffect(()=>{if(f)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Cc=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),kc(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Cc)}},[f,v,r,c]),h.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),kc())},[f,c]),h.useEffect(()=>{const P=()=>y({});return document.addEventListener(Ns,P),()=>document.removeEventListener(Ns,P)},[]),h.createElement(He.div,Q({},u,{ref:w,style:{pointerEvents:S?k?"auto":"none":void 0,...e.style},onFocusCapture:Ze(e.onFocusCapture,$.onFocusCapture),onBlurCapture:Ze(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Ze(e.onPointerDownCapture,E.onPointerDownCapture)}))});function A0(e,t=globalThis==null?void 0:globalThis.document){const n=or(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let c=function(){gp(j0,n,u,{discrete:!0})};var a=c;const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function I0(e,t=globalThis==null?void 0:globalThis.document){const n=or(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&gp(O0,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 kc(){const e=new CustomEvent(Ns);document.dispatchEvent(e)}function gp(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?z0(o,i):o.dispatchEvent(i)}const gn=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},D0=Wc.useId||(()=>{});let F0=0;function Aa(e){const[t,n]=h.useState(D0());return gn(()=>{e||n(r=>r??String(F0++))},[e]),e||(t?`radix-${t}`:"")}const U0=["top","right","bottom","left"],Ht=Math.min,ze=Math.max,ki=Math.round,zo=Math.floor,Qt=e=>({x:e,y:e}),V0={left:"right",right:"left",bottom:"top",top:"bottom"},B0={start:"end",end:"start"};function Rs(e,t,n){return ze(e,Ht(t,n))}function yt(e,t){return typeof e=="function"?e(t):e}function wt(e){return e.split("-")[0]}function ir(e){return e.split("-")[1]}function Ia(e){return e==="x"?"y":"x"}function Da(e){return e==="y"?"height":"width"}function lr(e){return["top","bottom"].includes(wt(e))?"y":"x"}function Fa(e){return Ia(lr(e))}function W0(e,t,n){n===void 0&&(n=!1);const r=ir(e),o=Fa(e),i=Da(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Ei(l)),[l,Ei(l)]}function H0(e){const t=Ei(e);return[Ts(e),t,Ts(t)]}function Ts(e){return e.replace(/start|end/g,t=>B0[t])}function Q0(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function K0(e,t,n,r){const o=ir(e);let i=Q0(wt(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Ts)))),i}function Ei(e){return e.replace(/left|right|bottom|top/g,t=>V0[t])}function G0(e){return{top:0,right:0,bottom:0,left:0,...e}}function vp(e){return typeof e!="number"?G0(e):{top:e,right:e,bottom:e,left:e}}function $i(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ec(e,t,n){let{reference:r,floating:o}=e;const i=lr(t),l=Fa(t),s=Da(l),a=wt(t),u=i==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[s]/2-o[s]/2;let v;switch(a){case"top":v={x:c,y:r.y-o.height};break;case"bottom":v={x:c,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-o.width,y:f};break;default:v={x:r.x,y:r.y}}switch(ir(t)){case"start":v[l]-=g*(n&&u?-1:1);break;case"end":v[l]+=g*(n&&u?-1:1);break}return v}const Y0=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Ec(u,r,a),g=r,v={},y=0;for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=t,{element:u,padding:c=0}=yt(e,t)||{};if(u==null)return{};const f=vp(c),g={x:n,y:r},v=Fa(o),y=Da(v),w=await l.getDimensions(u),C=v==="y",p=C?"top":"left",d=C?"bottom":"right",m=C?"clientHeight":"clientWidth",S=i.reference[y]+i.reference[v]-g[v]-i.floating[y],k=g[v]-i.reference[v],E=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let $=E?E[m]:0;(!$||!await(l.isElement==null?void 0:l.isElement(E)))&&($=s.floating[m]||i.floating[y]);const P=S/2-k/2,z=$/2-w[y]/2-1,N=Ht(f[p],z),A=Ht(f[d],z),O=N,B=$-w[y]-A,M=$/2-w[y]/2+P,W=Rs(O,M,B),_=!a.arrow&&ir(o)!=null&&M!=W&&i.reference[y]/2-(MO<=0)){var z,N;const O=(((z=i.flip)==null?void 0:z.index)||0)+1,B=k[O];if(B)return{data:{index:O,overflows:P},reset:{placement:B}};let M=(N=P.filter(W=>W.overflows[0]<=0).sort((W,_)=>W.overflows[1]-_.overflows[1])[0])==null?void 0:N.placement;if(!M)switch(v){case"bestFit":{var A;const W=(A=P.map(_=>[_.placement,_.overflows.filter(F=>F>0).reduce((F,R)=>F+R,0)]).sort((_,F)=>_[1]-F[1])[0])==null?void 0:A[0];W&&(M=W);break}case"initialPlacement":M=s;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Pc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function bc(e){return U0.some(t=>e[t]>=0)}const Z0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=yt(e,t);switch(r){case"referenceHidden":{const i=await qr(t,{...o,elementContext:"reference"}),l=Pc(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:bc(l)}}}case"escaped":{const i=await qr(t,{...o,altBoundary:!0}),l=Pc(i,n.floating);return{data:{escapedOffsets:l,escaped:bc(l)}}}default:return{}}}}};async function J0(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=wt(n),s=ir(n),a=lr(n)==="y",u=["left","top"].includes(l)?-1:1,c=i&&a?-1:1,f=yt(t,e);let{mainAxis:g,crossAxis:v,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof y=="number"&&(v=s==="end"?y*-1:y),a?{x:v*c,y:g*u}:{x:g*u,y:v*c}}const q0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=t,a=await J0(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},ey=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:l=!1,limiter:s={fn:C=>{let{x:p,y:d}=C;return{x:p,y:d}}},...a}=yt(e,t),u={x:n,y:r},c=await qr(t,a),f=lr(wt(o)),g=Ia(f);let v=u[g],y=u[f];if(i){const C=g==="y"?"top":"left",p=g==="y"?"bottom":"right",d=v+c[C],m=v-c[p];v=Rs(d,v,m)}if(l){const C=f==="y"?"top":"left",p=f==="y"?"bottom":"right",d=y+c[C],m=y-c[p];y=Rs(d,y,m)}const w=s.fn({...t,[g]:v,[f]:y});return{...w,data:{x:w.x-n,y:w.y-r}}}}},ty=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=yt(e,t),c={x:n,y:r},f=lr(o),g=Ia(f);let v=c[g],y=c[f];const w=yt(s,t),C=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(a){const m=g==="y"?"height":"width",S=i.reference[g]-i.floating[m]+C.mainAxis,k=i.reference[g]+i.reference[m]-C.mainAxis;vk&&(v=k)}if(u){var p,d;const m=g==="y"?"width":"height",S=["top","left"].includes(wt(o)),k=i.reference[f]-i.floating[m]+(S&&((p=l.offset)==null?void 0:p[f])||0)+(S?0:C.crossAxis),E=i.reference[f]+i.reference[m]+(S?0:((d=l.offset)==null?void 0:d[f])||0)-(S?C.crossAxis:0);yE&&(y=E)}return{[g]:v,[f]:y}}}},ny=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:l=()=>{},...s}=yt(e,t),a=await qr(t,s),u=wt(n),c=ir(n),f=lr(n)==="y",{width:g,height:v}=r.floating;let y,w;u==="top"||u==="bottom"?(y=u,w=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(w=u,y=c==="end"?"top":"bottom");const C=v-a[y],p=g-a[w],d=!t.middlewareData.shift;let m=C,S=p;if(f){const E=g-a.left-a.right;S=c||d?Ht(p,E):E}else{const E=v-a.top-a.bottom;m=c||d?Ht(C,E):E}if(d&&!c){const E=ze(a.left,0),$=ze(a.right,0),P=ze(a.top,0),z=ze(a.bottom,0);f?S=g-2*(E!==0||$!==0?E+$:ze(a.left,a.right)):m=v-2*(P!==0||z!==0?P+z:ze(a.top,a.bottom))}await l({...t,availableWidth:S,availableHeight:m});const k=await o.getDimensions(i.floating);return g!==k.width||v!==k.height?{reset:{rects:!0}}:{}}}};function Kt(e){return yp(e)?(e.nodeName||"").toLowerCase():"#document"}function Oe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ct(e){var t;return(t=(yp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yp(e){return e instanceof Node||e instanceof Oe(e).Node}function xt(e){return e instanceof Element||e instanceof Oe(e).Element}function st(e){return e instanceof HTMLElement||e instanceof Oe(e).HTMLElement}function Nc(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Oe(e).ShadowRoot}function uo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=We(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ry(e){return["table","td","th"].includes(Kt(e))}function Ua(e){const t=Va(),n=We(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 oy(e){let t=Yn(e);for(;st(t)&&!Yi(t);){if(Ua(t))return t;t=Yn(t)}return null}function Va(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Yi(e){return["html","body","#document"].includes(Kt(e))}function We(e){return Oe(e).getComputedStyle(e)}function Xi(e){return xt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Yn(e){if(Kt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nc(e)&&e.host||Ct(e);return Nc(t)?t.host:t}function wp(e){const t=Yn(e);return Yi(t)?e.ownerDocument?e.ownerDocument.body:e.body:st(t)&&uo(t)?t:wp(t)}function eo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=wp(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=Oe(o);return i?t.concat(l,l.visualViewport||[],uo(o)?o:[],l.frameElement&&n?eo(l.frameElement):[]):t.concat(o,eo(o,[],n))}function xp(e){const t=We(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=st(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=ki(n)!==i||ki(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Ba(e){return xt(e)?e:e.contextElement}function Un(e){const t=Ba(e);if(!st(t))return Qt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=xp(t);let l=(i?ki(n.width):n.width)/r,s=(i?ki(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const iy=Qt(0);function Sp(e){const t=Oe(e);return!Va()||!t.visualViewport?iy:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ly(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Oe(e)?!1:t}function vn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ba(e);let l=Qt(1);t&&(r?xt(r)&&(l=Un(r)):l=Un(e));const s=ly(i,n,r)?Sp(i):Qt(0);let a=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,c=o.width/l.x,f=o.height/l.y;if(i){const g=Oe(i),v=r&&xt(r)?Oe(r):r;let y=g.frameElement;for(;y&&r&&v!==g;){const w=Un(y),C=y.getBoundingClientRect(),p=We(y),d=C.left+(y.clientLeft+parseFloat(p.paddingLeft))*w.x,m=C.top+(y.clientTop+parseFloat(p.paddingTop))*w.y;a*=w.x,u*=w.y,c*=w.x,f*=w.y,a+=d,u+=m,y=Oe(y).frameElement}}return $i({width:c,height:f,x:a,y:u})}function sy(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=st(n),i=Ct(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0},s=Qt(1);const a=Qt(0);if((o||!o&&r!=="fixed")&&((Kt(n)!=="body"||uo(i))&&(l=Xi(n)),st(n))){const u=vn(n);s=Un(n),a.x=u.x+n.clientLeft,a.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-l.scrollLeft*s.x+a.x,y:t.y*s.y-l.scrollTop*s.y+a.y}}function ay(e){return Array.from(e.getClientRects())}function Cp(e){return vn(Ct(e)).left+Xi(e).scrollLeft}function uy(e){const t=Ct(e),n=Xi(e),r=e.ownerDocument.body,o=ze(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ze(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Cp(e);const s=-n.scrollTop;return We(r).direction==="rtl"&&(l+=ze(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function cy(e,t){const n=Oe(e),r=Ct(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;const u=Va();(!u||u&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}function dy(e,t){const n=vn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=st(e)?Un(e):Qt(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:l,height:s,x:a,y:u}}function Rc(e,t,n){let r;if(t==="viewport")r=cy(e,n);else if(t==="document")r=uy(Ct(e));else if(xt(t))r=dy(t,n);else{const o=Sp(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return $i(r)}function kp(e,t){const n=Yn(e);return n===t||!xt(n)||Yi(n)?!1:We(n).position==="fixed"||kp(n,t)}function fy(e,t){const n=t.get(e);if(n)return n;let r=eo(e,[],!1).filter(s=>xt(s)&&Kt(s)!=="body"),o=null;const i=We(e).position==="fixed";let l=i?Yn(e):e;for(;xt(l)&&!Yi(l);){const s=We(l),a=Ua(l);!a&&s.position==="fixed"&&(o=null),(i?!a&&!o:!a&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||uo(l)&&!a&&kp(e,l))?r=r.filter(c=>c!==l):o=s,l=Yn(l)}return t.set(e,r),r}function py(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?fy(t,this._c):[].concat(n),r],s=l[0],a=l.reduce((u,c)=>{const f=Rc(t,c,o);return u.top=ze(f.top,u.top),u.right=Ht(f.right,u.right),u.bottom=Ht(f.bottom,u.bottom),u.left=ze(f.left,u.left),u},Rc(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function my(e){return xp(e)}function hy(e,t,n){const r=st(t),o=Ct(t),i=n==="fixed",l=vn(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=Qt(0);if(r||!r&&!i)if((Kt(t)!=="body"||uo(o))&&(s=Xi(t)),r){const u=vn(t,!0,i,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else o&&(a.x=Cp(o));return{x:l.left+s.scrollLeft-a.x,y:l.top+s.scrollTop-a.y,width:l.width,height:l.height}}function Tc(e,t){return!st(e)||We(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ep(e,t){const n=Oe(e);if(!st(e))return n;let r=Tc(e,t);for(;r&&ry(r)&&We(r).position==="static";)r=Tc(r,t);return r&&(Kt(r)==="html"||Kt(r)==="body"&&We(r).position==="static"&&!Ua(r))?n:r||oy(e)||n}const gy=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Ep,i=this.getDimensions;return{reference:hy(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function vy(e){return We(e).direction==="rtl"}const yy={convertOffsetParentRelativeRectToViewportRelativeRect:sy,getDocumentElement:Ct,getClippingRect:py,getOffsetParent:Ep,getElementRects:gy,getClientRects:ay,getDimensions:my,getScale:Un,isElement:xt,isRTL:vy};function wy(e,t){let n=null,r;const o=Ct(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),i();const{left:u,top:c,width:f,height:g}=e.getBoundingClientRect();if(s||t(),!f||!g)return;const v=zo(c),y=zo(o.clientWidth-(u+f)),w=zo(o.clientHeight-(c+g)),C=zo(u),d={rootMargin:-v+"px "+-y+"px "+-w+"px "+-C+"px",threshold:ze(0,Ht(1,a))||1};let m=!0;function S(k){const E=k[0].intersectionRatio;if(E!==a){if(!m)return l();E?l(!1,E):r=setTimeout(()=>{l(!1,1e-7)},100)}m=!1}try{n=new IntersectionObserver(S,{...d,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,d)}n.observe(e)}return l(!0),i}function xy(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Ba(e),c=o||i?[...u?eo(u):[],...eo(t)]:[];c.forEach(p=>{o&&p.addEventListener("scroll",n,{passive:!0}),i&&p.addEventListener("resize",n)});const f=u&&s?wy(u,n):null;let g=-1,v=null;l&&(v=new ResizeObserver(p=>{let[d]=p;d&&d.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{v&&v.observe(t)})),n()}),u&&!a&&v.observe(u),v.observe(t));let y,w=a?vn(e):null;a&&C();function C(){const p=vn(e);w&&(p.x!==w.x||p.y!==w.y||p.width!==w.width||p.height!==w.height)&&n(),w=p,y=requestAnimationFrame(C)}return n(),()=>{c.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),f&&f(),v&&v.disconnect(),v=null,a&&cancelAnimationFrame(y)}}const Sy=(e,t,n)=>{const r=new Map,o={platform:yy,...n},i={...o.platform,_c:r};return Y0(e,t,{...o,platform:i})},Cy=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?$c({element:r.current,padding:o}).fn(n):{}:r?$c({element:r,padding:o}).fn(n):{}}}};var Go=typeof document<"u"?h.useLayoutEffect:h.useEffect;function Pi(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(!Pi(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)&&!Pi(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function $p(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zc(e,t){const n=$p(e);return Math.round(t*n)/n}function _c(e){const t=h.useRef(e);return Go(()=>{t.current=e}),t}function ky(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[c,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,v]=h.useState(r);Pi(g,r)||v(r);const[y,w]=h.useState(null),[C,p]=h.useState(null),d=h.useCallback(_=>{_!=E.current&&(E.current=_,w(_))},[w]),m=h.useCallback(_=>{_!==$.current&&($.current=_,p(_))},[p]),S=i||y,k=l||C,E=h.useRef(null),$=h.useRef(null),P=h.useRef(c),z=_c(a),N=_c(o),A=h.useCallback(()=>{if(!E.current||!$.current)return;const _={placement:t,strategy:n,middleware:g};N.current&&(_.platform=N.current),Sy(E.current,$.current,_).then(F=>{const R={...F,isPositioned:!0};O.current&&!Pi(P.current,R)&&(P.current=R,Hi.flushSync(()=>{f(R)}))})},[g,t,n,N]);Go(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(_=>({..._,isPositioned:!1})))},[u]);const O=h.useRef(!1);Go(()=>(O.current=!0,()=>{O.current=!1}),[]),Go(()=>{if(S&&(E.current=S),k&&($.current=k),S&&k){if(z.current)return z.current(S,k,A);A()}},[S,k,A,z]);const B=h.useMemo(()=>({reference:E,floating:$,setReference:d,setFloating:m}),[d,m]),M=h.useMemo(()=>({reference:S,floating:k}),[S,k]),W=h.useMemo(()=>{const _={position:n,left:0,top:0};if(!M.floating)return _;const F=zc(M.floating,c.x),R=zc(M.floating,c.y);return s?{..._,transform:"translate("+F+"px, "+R+"px)",...$p(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:R}},[n,s,M.floating,c.x,c.y]);return h.useMemo(()=>({...c,update:A,refs:B,elements:M,floatingStyles:W}),[c,A,B,M,W])}function Ey(e){const[t,n]=h.useState(void 0);return gn(()=>{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 l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Pp="Popper",[bp,Np]=rr(Pp),[$y,Rp]=bp(Pp),Py=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return h.createElement($y,{scope:t,anchor:r,onAnchorChange:o},n)},by="PopperAnchor",Ny=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Rp(by,n),l=h.useRef(null),s=lt(t,l);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:h.createElement(He.div,Q({},o,{ref:s}))}),Tp="PopperContent",[Ry,sw]=bp(Tp),Ty=h.forwardRef((e,t)=>{var n,r,o,i,l,s,a,u;const{__scopePopper:c,side:f="bottom",sideOffset:g=0,align:v="center",alignOffset:y=0,arrowPadding:w=0,avoidCollisions:C=!0,collisionBoundary:p=[],collisionPadding:d=0,sticky:m="partial",hideWhenDetached:S=!1,updatePositionStrategy:k="optimized",onPlaced:E,...$}=e,P=Rp(Tp,c),[z,N]=h.useState(null),A=lt(t,sr=>N(sr)),[O,B]=h.useState(null),M=Ey(O),W=(n=M==null?void 0:M.width)!==null&&n!==void 0?n:0,_=(r=M==null?void 0:M.height)!==null&&r!==void 0?r:0,F=f+(v!=="center"?"-"+v:""),R=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},T=Array.isArray(p)?p:[p],L=T.length>0,H={padding:R,boundary:T.filter(zy),altBoundary:L},{refs:Y,floatingStyles:en,placement:at,isPositioned:kt,middlewareData:Ee}=ky({strategy:"fixed",placement:F,whileElementsMounted:(...sr)=>xy(...sr,{animationFrame:k==="always"}),elements:{reference:P.anchor},middleware:[q0({mainAxis:g+_,alignmentAxis:y}),C&&ey({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?ty():void 0,...H}),C&&X0({...H}),ny({...H,apply:({elements:sr,rects:tu,availableWidth:sm,availableHeight:am})=>{const{width:um,height:cm}=tu.reference,fo=sr.floating.style;fo.setProperty("--radix-popper-available-width",`${sm}px`),fo.setProperty("--radix-popper-available-height",`${am}px`),fo.setProperty("--radix-popper-anchor-width",`${um}px`),fo.setProperty("--radix-popper-anchor-height",`${cm}px`)}}),O&&Cy({element:O,padding:w}),_y({arrowWidth:W,arrowHeight:_}),S&&Z0({strategy:"referenceHidden",...H})]}),[tn,tm]=zp(at),co=or(E);gn(()=>{kt&&(co==null||co())},[kt,co]);const nm=(o=Ee.arrow)===null||o===void 0?void 0:o.x,rm=(i=Ee.arrow)===null||i===void 0?void 0:i.y,om=((l=Ee.arrow)===null||l===void 0?void 0:l.centerOffset)!==0,[im,lm]=h.useState();return gn(()=>{z&&lm(window.getComputedStyle(z).zIndex)},[z]),h.createElement("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...en,transform:kt?en.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:im,"--radix-popper-transform-origin":[(s=Ee.transformOrigin)===null||s===void 0?void 0:s.x,(a=Ee.transformOrigin)===null||a===void 0?void 0:a.y].join(" ")},dir:e.dir},h.createElement(Ry,{scope:c,placedSide:tn,onArrowChange:B,arrowX:nm,arrowY:rm,shouldHideArrow:om},h.createElement(He.div,Q({"data-side":tn,"data-align":tm},$,{ref:A,style:{...$.style,animation:kt?void 0:"none",opacity:(u=Ee.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function zy(e){return e!==null}const _y=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;const{placement:s,rects:a,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,g=f?0:e.arrowWidth,v=f?0:e.arrowHeight,[y,w]=zp(s),C={start:"0%",center:"50%",end:"100%"}[w],p=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+g/2,d=((i=(l=u.arrow)===null||l===void 0?void 0:l.y)!==null&&i!==void 0?i:0)+v/2;let m="",S="";return y==="bottom"?(m=f?C:`${p}px`,S=`${-v}px`):y==="top"?(m=f?C:`${p}px`,S=`${a.floating.height+v}px`):y==="right"?(m=`${-v}px`,S=f?C:`${d}px`):y==="left"&&(m=`${a.floating.width+v}px`,S=f?C:`${d}px`),{data:{x:m,y:S}}}});function zp(e){const[t,n="center"]=e.split("-");return[t,n]}const jy=Py,Oy=Ny,My=Ty;function Ly(e,t){return h.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Wa=e=>{const{present:t,children:n}=e,r=Ay(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=lt(r.ref,o.ref);return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};Wa.displayName="Presence";function Ay(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),l=e?"mounted":"unmounted",[s,a]=Ly(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=_o(r.current);i.current=s==="mounted"?u:"none"},[s]),gn(()=>{const u=r.current,c=o.current;if(c!==e){const g=i.current,v=_o(u);e?a("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),gn(()=>{if(t){const u=f=>{const v=_o(r.current).includes(f.animationName);f.target===t&&v&&Hi.flushSync(()=>a("ANIMATION_END"))},c=f=>{f.target===t&&(i.current=_o(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:h.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function _o(e){return(e==null?void 0:e.animationName)||"none"}function Zi({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Iy({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=or(n),a=h.useCallback(u=>{if(i){const f=typeof u=="function"?u(e):u;f!==e&&s(f)}else o(u)},[i,e,o,s]);return[l,a]}function Iy({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=or(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Dy=h.forwardRef((e,t)=>h.createElement(He.span,Q({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Fy=Dy,[Ji,aw]=rr("Tooltip",[Np]),Ha=Np(),Uy="TooltipProvider",Vy=700,zs="tooltip.open",[By,Qa]=Ji(Uy),Wy=e=>{const{__scopeTooltip:t,delayDuration:n=Vy,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[l,s]=h.useState(!0),a=h.useRef(!1),u=h.useRef(0);return h.useEffect(()=>{const c=u.current;return()=>window.clearTimeout(c)},[]),h.createElement(By,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:h.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:h.useCallback(c=>{a.current=c},[]),disableHoverableContent:o},i)},Ka="Tooltip",[Hy,qi]=Ji(Ka),Qy=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:s}=e,a=Qa(Ka,e.__scopeTooltip),u=Ha(t),[c,f]=h.useState(null),g=Aa(),v=h.useRef(0),y=l??a.disableHoverableContent,w=s??a.delayDuration,C=h.useRef(!1),[p=!1,d]=Zi({prop:r,defaultProp:o,onChange:$=>{$?(a.onOpen(),document.dispatchEvent(new CustomEvent(zs))):a.onClose(),i==null||i($)}}),m=h.useMemo(()=>p?C.current?"delayed-open":"instant-open":"closed",[p]),S=h.useCallback(()=>{window.clearTimeout(v.current),C.current=!1,d(!0)},[d]),k=h.useCallback(()=>{window.clearTimeout(v.current),d(!1)},[d]),E=h.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{C.current=!0,d(!0)},w)},[w,d]);return h.useEffect(()=>()=>window.clearTimeout(v.current),[]),h.createElement(jy,u,h.createElement(Hy,{scope:t,contentId:g,open:p,stateAttribute:m,trigger:c,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{a.isOpenDelayed?E():S()},[a.isOpenDelayed,E,S]),onTriggerLeave:h.useCallback(()=>{y?k():window.clearTimeout(v.current)},[k,y]),onOpen:S,onClose:k,disableHoverableContent:y},n))},jc="TooltipTrigger",Ky=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=qi(jc,n),i=Qa(jc,n),l=Ha(n),s=h.useRef(null),a=lt(t,s,o.onTriggerChange),u=h.useRef(!1),c=h.useRef(!1),f=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.createElement(Oy,Q({asChild:!0},l),h.createElement(He.button,Q({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:a,onPointerMove:Ze(e.onPointerMove,g=>{g.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:Ze(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:Ze(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Ze(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Ze(e.onBlur,o.onClose),onClick:Ze(e.onClick,o.onClose)})))}),Gy="TooltipPortal",[uw,Yy]=Ji(Gy,{forceMount:void 0}),to="TooltipContent",Xy=h.forwardRef((e,t)=>{const n=Yy(to,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=qi(to,e.__scopeTooltip);return h.createElement(Wa,{present:r||l.open},l.disableHoverableContent?h.createElement(_p,Q({side:o},i,{ref:t})):h.createElement(Zy,Q({side:o},i,{ref:t})))}),Zy=h.forwardRef((e,t)=>{const n=qi(to,e.__scopeTooltip),r=Qa(to,e.__scopeTooltip),o=h.useRef(null),i=lt(t,o),[l,s]=h.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:f}=r,g=h.useCallback(()=>{s(null),f(!1)},[f]),v=h.useCallback((y,w)=>{const C=y.currentTarget,p={x:y.clientX,y:y.clientY},d=qy(p,C.getBoundingClientRect()),m=e1(p,d),S=t1(w.getBoundingClientRect()),k=r1([...m,...S]);s(k),f(!0)},[f]);return h.useEffect(()=>()=>g(),[g]),h.useEffect(()=>{if(a&&c){const y=C=>v(C,c),w=C=>v(C,a);return a.addEventListener("pointerleave",y),c.addEventListener("pointerleave",w),()=>{a.removeEventListener("pointerleave",y),c.removeEventListener("pointerleave",w)}}},[a,c,v,g]),h.useEffect(()=>{if(l){const y=w=>{const C=w.target,p={x:w.clientX,y:w.clientY},d=(a==null?void 0:a.contains(C))||(c==null?void 0:c.contains(C)),m=!n1(p,l);d?g():m&&(g(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[a,c,l,u,g]),h.createElement(_p,Q({},e,{ref:i}))}),[Jy,cw]=Ji(Ka,{isInside:!1}),_p=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...s}=e,a=qi(to,n),u=Ha(n),{onClose:c}=a;return h.useEffect(()=>(document.addEventListener(zs,c),()=>document.removeEventListener(zs,c)),[c]),h.useEffect(()=>{if(a.trigger){const f=g=>{const v=g.target;v!=null&&v.contains(a.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,c]),h.createElement(L0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:f=>f.preventDefault(),onDismiss:c},h.createElement(My,Q({"data-state":a.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),h.createElement(ap,null,r),h.createElement(Jy,{scope:n,isInside:!0},h.createElement(Fy,{id:a.contentId,role:"tooltip"},o||r))))});function qy(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function e1(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function t1(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function n1(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;ir!=c>r&&n<(u-s)*(r-a)/(c-a)+s&&(o=!o)}return o}function r1(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),o1(t)}function o1(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const i1=Wy,l1=Qy,s1=Ky,jp=Xy,a1=i1,u1=l1,c1=s1,Op=h.forwardRef(({className:e,sideOffset:t=4,...n},r)=>x.jsx(jp,{ref:r,sideOffset:t,className:nr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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}));Op.displayName=jp.displayName;function we({op:e,ownOp:t,shuf:n,tooltipName:r,onClick:o,children:i}){return x.jsx(a1,{children:x.jsxs(u1,{children:[x.jsx(c1,{asChild:!0,children:x.jsx(xe,{className:e===t&&!n||t==="all"&&n?"ring ring-offset-2":"",onClick:o,children:i})}),x.jsx(Op,{children:x.jsx("p",{children:r})})]})})}function d1(e){const t=e+"CollectionProvider",[n,r]=rr(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=v=>{const{scope:y,children:w}=v,C=I.useRef(null),p=I.useRef(new Map).current;return I.createElement(o,{scope:y,itemMap:p,collectionRef:C},w)},s=e+"CollectionSlot",a=I.forwardRef((v,y)=>{const{scope:w,children:C}=v,p=i(s,w),d=lt(y,p.collectionRef);return I.createElement(Jr,{ref:d},C)}),u=e+"CollectionItemSlot",c="data-radix-collection-item",f=I.forwardRef((v,y)=>{const{scope:w,children:C,...p}=v,d=I.useRef(null),m=lt(y,d),S=i(u,w);return I.useEffect(()=>(S.itemMap.set(d,{ref:d,...p}),()=>void S.itemMap.delete(d))),I.createElement(Jr,{[c]:"",ref:m},C)});function g(v){const y=i(e+"CollectionConsumer",v);return I.useCallback(()=>{const C=y.collectionRef.current;if(!C)return[];const p=Array.from(C.querySelectorAll(`[${c}]`));return Array.from(y.itemMap.values()).sort((S,k)=>p.indexOf(S.ref.current)-p.indexOf(k.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:l,Slot:a,ItemSlot:f},g,r]}const Mp="Collapsible",[f1,Lp]=rr(Mp),[p1,Ga]=f1(Mp),m1=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:l,...s}=e,[a=!1,u]=Zi({prop:r,defaultProp:o,onChange:l});return h.createElement(p1,{scope:n,disabled:i,contentId:Aa(),open:a,onOpenToggle:h.useCallback(()=>u(c=>!c),[u])},h.createElement(He.div,Q({"data-state":Ya(a),"data-disabled":i?"":void 0},s,{ref:t})))}),h1="CollapsibleTrigger",g1=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Ga(h1,n);return h.createElement(He.button,Q({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Ya(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:Ze(e.onClick,o.onOpenToggle)}))}),Ap="CollapsibleContent",v1=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ga(Ap,e.__scopeCollapsible);return h.createElement(Wa,{present:n||o.open},({present:i})=>h.createElement(y1,Q({},r,{ref:t,present:i})))}),y1=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,l=Ga(Ap,n),[s,a]=h.useState(r),u=h.useRef(null),c=lt(t,u),f=h.useRef(0),g=f.current,v=h.useRef(0),y=v.current,w=l.open||s,C=h.useRef(w),p=h.useRef();return h.useEffect(()=>{const d=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(d)},[]),gn(()=>{const d=u.current;if(d){p.current=p.current||{transitionDuration:d.style.transitionDuration,animationName:d.style.animationName},d.style.transitionDuration="0s",d.style.animationName="none";const m=d.getBoundingClientRect();f.current=m.height,v.current=m.width,C.current||(d.style.transitionDuration=p.current.transitionDuration,d.style.animationName=p.current.animationName),a(r)}},[l.open,r]),h.createElement(He.div,Q({"data-state":Ya(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!w},i,{ref:c,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style}}),w&&o)});function Ya(e){return e?"open":"closed"}const w1=m1,x1=g1,S1=v1,C1=h.createContext(void 0);function k1(e){const t=h.useContext(C1);return e||t||"ltr"}const qt="Accordion",E1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Xa,$1,P1]=d1(qt),[el,dw]=rr(qt,[P1,Lp]),Za=Lp(),Ip=I.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return I.createElement(Xa.Provider,{scope:e.__scopeAccordion},n==="multiple"?I.createElement(T1,Q({},i,{ref:t})):I.createElement(R1,Q({},o,{ref:t})))});Ip.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[Dp,b1]=el(qt),[Fp,N1]=el(qt,{collapsible:!1}),R1=I.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...l}=e,[s,a]=Zi({prop:n,defaultProp:r,onChange:o});return I.createElement(Dp,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:a,onItemClose:I.useCallback(()=>i&&a(""),[i,a])},I.createElement(Fp,{scope:e.__scopeAccordion,collapsible:i},I.createElement(Up,Q({},l,{ref:t}))))}),T1=I.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[l=[],s]=Zi({prop:n,defaultProp:r,onChange:o}),a=I.useCallback(c=>s((f=[])=>[...f,c]),[s]),u=I.useCallback(c=>s((f=[])=>f.filter(g=>g!==c)),[s]);return I.createElement(Dp,{scope:e.__scopeAccordion,value:l,onItemOpen:a,onItemClose:u},I.createElement(Fp,{scope:e.__scopeAccordion,collapsible:!0},I.createElement(Up,Q({},i,{ref:t}))))}),[z1,tl]=el(qt),Up=I.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...l}=e,s=I.useRef(null),a=lt(s,t),u=$1(n),f=k1(o)==="ltr",g=Ze(e.onKeyDown,v=>{var y;if(!E1.includes(v.key))return;const w=v.target,C=u().filter(z=>{var N;return!((N=z.ref.current)!==null&&N!==void 0&&N.disabled)}),p=C.findIndex(z=>z.ref.current===w),d=C.length;if(p===-1)return;v.preventDefault();let m=p;const S=0,k=d-1,E=()=>{m=p+1,m>k&&(m=S)},$=()=>{m=p-1,m{const{__scopeAccordion:n,value:r,...o}=e,i=tl(_s,n),l=b1(_s,n),s=Za(n),a=Aa(),u=r&&l.value.includes(r)||!1,c=i.disabled||e.disabled;return I.createElement(_1,{scope:n,open:u,disabled:c,triggerId:a},I.createElement(w1,Q({"data-orientation":i.orientation,"data-state":Vp(u)},s,o,{ref:t,disabled:c,open:u,onOpenChange:f=>{f?l.onItemOpen(r):l.onItemClose(r)}})))}),O1="AccordionHeader",M1=I.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=tl(qt,n),i=Ja(O1,n);return I.createElement(He.h3,Q({"data-orientation":o.orientation,"data-state":Vp(i.open),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),Oc="AccordionTrigger",L1=I.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=tl(qt,n),i=Ja(Oc,n),l=N1(Oc,n),s=Za(n);return I.createElement(Xa.ItemSlot,{scope:n},I.createElement(x1,Q({"aria-disabled":i.open&&!l.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId},s,r,{ref:t})))}),A1="AccordionContent",I1=I.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=tl(qt,n),i=Ja(A1,n),l=Za(n);return I.createElement(S1,Q({role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation},l,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function Vp(e){return e?"open":"closed"}const D1=Ip,F1=j1,U1=M1,Bp=L1,Wp=I1,V1=D1,Hp=h.forwardRef(({className:e,...t},n)=>x.jsx(F1,{ref:n,className:nr("border-b",e),...t}));Hp.displayName="AccordionItem";const Qp=h.forwardRef(({className:e,children:t,...n},r)=>x.jsx(U1,{className:"flex",children:x.jsxs(Bp,{ref:r,className:nr("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,x.jsx(P0,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Qp.displayName=Bp.displayName;const Kp=h.forwardRef(({className:e,children:t,...n},r)=>x.jsx(Wp,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:x.jsx("div",{className:nr("pb-4 pt-0",e),children:t})}));Kp.displayName=Wp.displayName;function B1({opState:e,handleSetOp:t,shufState:n,handleSetShuf:r,maxNumState:o,setMaxNumState:i}){function l(){localStorage.removeItem("correct"),localStorage.removeItem("wrong"),window.location.reload()}return x.jsx(V1,{type:"single",collapsible:!0,className:"w-full",children:x.jsxs(Hp,{value:"settings",children:[x.jsx(Qp,{children:"Ustawienia"}),x.jsxs(Kp,{className:"mx-2 flex flex-col items-center justify-center",children:[x.jsx("div",{className:"mb-2",children:"Działanie"}),x.jsxs("div",{className:"flex flex-row gap-2",children:[x.jsx(we,{op:e,ownOp:"add",shuf:n,tooltipName:"Dodawanie",onClick:()=>{t("add"),r(!1)},children:x.jsx(Oa,{})}),x.jsx(we,{op:e,ownOp:"sub",shuf:n,tooltipName:"Odejmowanie",onClick:()=>{t("sub"),r(!1)},children:x.jsx(ja,{})}),x.jsx(we,{op:e,ownOp:"mul",shuf:n,tooltipName:"Mnożenie",onClick:()=>{t("mul"),r(!1)},children:x.jsx(_a,{})}),x.jsx(we,{op:e,ownOp:"div",shuf:n,tooltipName:"Dzielenie",onClick:()=>{t("div"),r(!1)},children:x.jsx(za,{})}),x.jsx(we,{op:e,ownOp:"all",shuf:n,tooltipName:"Mieszane",onClick:()=>{t("add"),r(!0)},children:x.jsx(Ma,{})})]}),x.jsx("div",{className:"my-2",children:"Maksymalna liczba"}),x.jsx(ao,{value:o,onChange:s=>i(parseInt(s.target.value))}),x.jsx(xe,{variant:"destructive",onClick:l,className:"mt-3",children:"Wyczyść wyniki"})]})]})})}function bi({score:e,type:t}){return x.jsx("div",{className:"py-2 px-4 rounded-md text-white "+(t==="correct"?"bg-correct":"bg-wrong"),children:e})}var Gp={exports:{}};(function(e,t){(function(n,r){e.exports=r(h)})(typeof self<"u"?self:fm,n=>(()=>{var r={156:s=>{s.exports=n}},o={};function i(s){var a=o[s];if(a!==void 0)return a.exports;var u=o[s]={exports:{}};return r[s](u,u.exports,i),u.exports}i.d=(s,a)=>{for(var u in a)i.o(a,u)&&!i.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:a[u]})},i.o=(s,a)=>Object.prototype.hasOwnProperty.call(s,a),i.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var l={};return(()=>{i.r(l),i.d(l,{default:()=>C,useStopwatch:()=>y,useTime:()=>w,useTimer:()=>v});var s=i(156);class a{static expiryTimestamp(d){const m=new Date(d).getTime()>0;return m||console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings",d),m}static onExpire(d){const m=d&&typeof d=="function";return d&&!m&&console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function",d),m}}class u{static getTimeFromSeconds(d){const m=Math.ceil(d),S=Math.floor(m/86400),k=Math.floor(m%86400/3600),E=Math.floor(m%3600/60);return{totalSeconds:m,seconds:Math.floor(m%60),minutes:E,hours:k,days:S}}static getSecondsFromExpiry(d,m){const S=d-new Date().getTime();if(S>0){const k=S/1e3;return m?Math.round(k):k}return 0}static getSecondsFromPrevTime(d,m){const S=new Date().getTime()-d;if(S>0){const k=S/1e3;return m?Math.round(k):k}return 0}static getSecondsFromTimeNow(){const d=new Date;return d.getTime()/1e3-60*d.getTimezoneOffset()}static getFormattedTimeFromSeconds(d,m){const{seconds:S,minutes:k,hours:E}=u.getTimeFromSeconds(d);let $="",P=E;return m==="12-hour"&&($=E>=12?"pm":"am",P=E%12),{seconds:S,minutes:k,hours:P,ampm:$}}}function c(p,d){const m=(0,s.useRef)();(0,s.useEffect)(()=>{m.current=p}),(0,s.useEffect)(()=>{if(!d)return()=>{};const S=setInterval(()=>{m.current&&m.current()},d);return()=>clearInterval(S)},[d])}const f=1e3;function g(p){if(!a.expiryTimestamp(p))return null;const d=u.getSecondsFromExpiry(p),m=Math.floor(1e3*(d-Math.floor(d)));return m>0?m:f}function v(){let{expiryTimestamp:p,onExpire:d,autoStart:m=!0}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[S,k]=(0,s.useState)(p),[E,$]=(0,s.useState)(u.getSecondsFromExpiry(S)),[P,z]=(0,s.useState)(m),[N,A]=(0,s.useState)(m),[O,B]=(0,s.useState)(g(S)),M=(0,s.useCallback)(()=>{a.onExpire(d)&&d(),z(!1),B(null)},[d]),W=(0,s.useCallback)(()=>{z(!1)},[]),_=(0,s.useCallback)(function(T){let L=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];B(g(T)),A(L),z(L),k(T),$(u.getSecondsFromExpiry(T))},[]),F=(0,s.useCallback)(()=>{const T=new Date;T.setMilliseconds(T.getMilliseconds()+1e3*E),_(T)},[E,_]),R=(0,s.useCallback)(()=>{N?($(u.getSecondsFromExpiry(S)),z(!0)):F()},[S,N,F]);return c(()=>{O!==f&&B(f);const T=u.getSecondsFromExpiry(S);$(T),T<=0&&M()},P?O:null),{...u.getTimeFromSeconds(E),start:R,pause:W,resume:F,restart:_,isRunning:P}}function y(){let{autoStart:p,offsetTimestamp:d}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[m,S]=(0,s.useState)(u.getSecondsFromExpiry(d,!0)||0),[k,E]=(0,s.useState)(new Date),[$,P]=(0,s.useState)(m+u.getSecondsFromPrevTime(k||0,!0)),[z,N]=(0,s.useState)(p);c(()=>{P(m+u.getSecondsFromPrevTime(k,!0))},z?1e3:null);const A=(0,s.useCallback)(()=>{const M=new Date;E(M),N(!0),P(m+u.getSecondsFromPrevTime(M,!0))},[m]),O=(0,s.useCallback)(()=>{S($),N(!1)},[$]),B=(0,s.useCallback)(function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,W=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];const _=u.getSecondsFromExpiry(M,!0)||0,F=new Date;E(F),S(_),N(W),P(_+u.getSecondsFromPrevTime(F,!0))},[]);return{...u.getTimeFromSeconds($),start:A,pause:O,reset:B,isRunning:z}}function w(){let{format:p}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[d,m]=(0,s.useState)(u.getSecondsFromTimeNow());return c(()=>{m(u.getSecondsFromTimeNow())},1e3),{...u.getFormattedTimeFromSeconds(d,p)}}function C(p){if((0,s.useEffect)(()=>{console.warn("react-timer-hook: default export useTimer is deprecated, use named exports { useTimer, useStopwatch, useTime } instead")},[]),p.expiryTimestamp){const m=v(p);return{...m,startTimer:m.start,stopTimer:m.pause,resetTimer:()=>{}}}const d=y(p);return{...d,startTimer:d.start,stopTimer:d.pause,resetTimer:d.reset}}})(),l})())})(Gp);var qa=Gp.exports;function W1(){const e=h.useRef(Math.ceil(Math.random()*10)),t=h.useRef(Math.ceil(Math.random()*10)),[n,r]=h.useState(""),[o,i]=h.useState(!1),[l,s]=h.useState("add"),[a,u]=h.useState(100),[c,f]=h.useState(0),[g,v]=h.useState($()),{minutes:y,seconds:w,start:C}=qa.useStopwatch(),p=h.useRef(parseInt(localStorage.getItem("correct")||"0")),d=h.useRef(parseInt(localStorage.getItem("wrong")||"0"));console.log(y,w);const m=h.useRef(!0);h.useEffect(()=>C(),[]),h.useEffect(()=>(document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}),[n]),h.useEffect(()=>{z()},[l,o]);function S(){return`${y.toString().padStart(2,"0")}:${w.toString().padStart(2,"0")}`}function k(M){M.key=="Enter"&&n&&(m.current?N():z())}function E(M,W){return M+Math.floor(Math.random()*(W-M+1))}function $(){return l==="add"?e.current+t.current:l==="sub"?e.current-t.current:l==="mul"?e.current*t.current:l==="div"?e.current/t.current:0}function P(){l==="add"?(e.current=E(1,a),t.current=E(1,a-e.current)):l==="sub"?(e.current=E(1,a),t.current=E(1,e.current)):l==="mul"?(e.current=E(1,Math.floor(Math.sqrt(a))),t.current=E(1,Math.floor(Math.sqrt(a)))):l==="div"&&(t.current=E(1,Math.floor(Math.sqrt(a))),e.current=t.current*E(1,Math.floor(Math.sqrt(a)))),v($())}function z(){if(f(0),o){const M=["add","sub","mul","div"],W=E(0,3);s(M[W])}m.current=!0,P(),r("")}function N(){n!==""&&(parseInt(n)===g?(f(1),m.current&&(p.current+=1,m.current=!1)):(f(-1),m.current&&(d.current+=1,m.current=!1)),localStorage.setItem("correct",p.current.toString()),localStorage.setItem("wrong",d.current.toString()))}function A(M){s(M)}function O(M){i(M)}function B(M){r(M.target.value)}return x.jsxs("div",{className:"flex flex-col gap-4 items-center justify-center",children:[x.jsx("div",{children:S()}),x.jsxs("div",{className:"flex items-center justify-center gap-2",children:[x.jsx(bi,{score:p.current,type:"correct"}),x.jsx(bi,{score:d.current,type:"wrong"})]}),x.jsx(La,{a:e.current,b:t.current,op:l}),x.jsx(Na,{value:n,onChange:B,ansState:c}),x.jsxs("div",{className:"flex items-center justify-center gap-2",children:[x.jsx(xe,{onClick:z,children:x.jsx(b0,{size:16})}),x.jsx(xe,{onClick:N,children:x.jsx(Ta,{size:16})})]}),x.jsx(B1,{opState:l,handleSetOp:A,shufState:o,handleSetShuf:O,maxNumState:a,setMaxNumState:u})]})}const Yp="Progress",nl=100,[H1,fw]=rr(Yp),[Q1,K1]=H1(Yp),Xp=h.forwardRef((e,t)=>{const{__scopeProgress:n,value:r,max:o,getValueLabel:i=X1,...l}=e,s=js(o)?o:nl,a=Jp(r,s)?r:null,u=Ni(a)?i(a,s):void 0;return h.createElement(Q1,{scope:n,value:a,max:s},h.createElement(He.div,Q({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Ni(a)?a:void 0,"aria-valuetext":u,role:"progressbar","data-state":Zp(a,s),"data-value":a??void 0,"data-max":s},l,{ref:t})))});Xp.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!js(r)?new Error(Z1(o,n)):null},value(e,t,n){const r=e[t],o=String(r),i=js(e.max)?e.max:nl;return r!=null&&!Jp(r,i)?new Error(J1(o,n)):null}};const G1="ProgressIndicator",Y1=h.forwardRef((e,t)=>{var n;const{__scopeProgress:r,...o}=e,i=K1(G1,r);return h.createElement(He.div,Q({"data-state":Zp(i.value,i.max),"data-value":(n=i.value)!==null&&n!==void 0?n:void 0,"data-max":i.max},o,{ref:t}))});function X1(e,t){return`${Math.round(e/t*100)}%`}function Zp(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Ni(e){return typeof e=="number"}function js(e){return Ni(e)&&!isNaN(e)&&e>0}function Jp(e,t){return Ni(e)&&!isNaN(e)&&e<=t&&e>=0}function Z1(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${nl}\`.`}function J1(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: + */const Ma=Jt("Shuffle",[["path",{d:"M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22",key:"1wmou1"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 6h1.9c1.5 0 2.9.9 3.6 2.2",key:"10bdb2"}],["path",{d:"M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8",key:"vgxac0"}],["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}]]);function N0(e){return e==="add"?"+":e==="sub"?"–":e==="mul"?"·":e==="div"?":":"ERROR"}function La({a:e,b:t,op:n}){return x.jsxs("div",{className:"text-4xl",children:[e," ",N0(n)," ",t]})}function Ze(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 rr(e,t=[]){let n=[];function r(i,l){const s=h.createContext(l),a=n.length;n=[...n,l];function u(f){const{scope:g,children:v,...y}=f,w=(g==null?void 0:g[e][a])||s,C=h.useMemo(()=>y,Object.values(y));return h.createElement(w.Provider,{value:C},v)}function c(f,g){const v=(g==null?void 0:g[e][a])||s,y=h.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=n.map(l=>h.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,R0(o,...t)]}function R0(...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 l=r.reduce((s,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...s,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}const z0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],He=z0.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Jr:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(s,Q({},l,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function T0(e,t){e&&Hi.flushSync(()=>e.dispatchEvent(t))}function or(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function _0(e,t=globalThis==null?void 0:globalThis.document){const n=or(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Ns="dismissableLayer.update",j0="dismissableLayer.pointerDownOutside",O0="dismissableLayer.focusOutside";let Cc;const M0=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),L0=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:s,onDismiss:a,...u}=e,c=h.useContext(M0),[f,g]=h.useState(null),v=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,y]=h.useState({}),w=lt(t,P=>g(P)),C=Array.from(c.layers),[p]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),d=C.indexOf(p),m=f?C.indexOf(f):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,k=m>=d,E=A0(P=>{const T=P.target,N=[...c.branches].some(A=>A.contains(T));!k||N||(i==null||i(P),s==null||s(P),P.defaultPrevented||a==null||a())},v),$=I0(P=>{const T=P.target;[...c.branches].some(A=>A.contains(T))||(l==null||l(P),s==null||s(P),P.defaultPrevented||a==null||a())},v);return _0(P=>{m===c.layers.size-1&&(o==null||o(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},v),h.useEffect(()=>{if(f)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Cc=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),kc(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Cc)}},[f,v,r,c]),h.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),kc())},[f,c]),h.useEffect(()=>{const P=()=>y({});return document.addEventListener(Ns,P),()=>document.removeEventListener(Ns,P)},[]),h.createElement(He.div,Q({},u,{ref:w,style:{pointerEvents:S?k?"auto":"none":void 0,...e.style},onFocusCapture:Ze(e.onFocusCapture,$.onFocusCapture),onBlurCapture:Ze(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Ze(e.onPointerDownCapture,E.onPointerDownCapture)}))});function A0(e,t=globalThis==null?void 0:globalThis.document){const n=or(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let c=function(){gp(j0,n,u,{discrete:!0})};var a=c;const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function I0(e,t=globalThis==null?void 0:globalThis.document){const n=or(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&gp(O0,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 kc(){const e=new CustomEvent(Ns);document.dispatchEvent(e)}function gp(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?T0(o,i):o.dispatchEvent(i)}const gn=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},D0=Wc.useId||(()=>{});let F0=0;function Aa(e){const[t,n]=h.useState(D0());return gn(()=>{e||n(r=>r??String(F0++))},[e]),e||(t?`radix-${t}`:"")}const U0=["top","right","bottom","left"],Ht=Math.min,Te=Math.max,ki=Math.round,To=Math.floor,Qt=e=>({x:e,y:e}),V0={left:"right",right:"left",bottom:"top",top:"bottom"},B0={start:"end",end:"start"};function Rs(e,t,n){return Te(e,Ht(t,n))}function yt(e,t){return typeof e=="function"?e(t):e}function wt(e){return e.split("-")[0]}function ir(e){return e.split("-")[1]}function Ia(e){return e==="x"?"y":"x"}function Da(e){return e==="y"?"height":"width"}function lr(e){return["top","bottom"].includes(wt(e))?"y":"x"}function Fa(e){return Ia(lr(e))}function W0(e,t,n){n===void 0&&(n=!1);const r=ir(e),o=Fa(e),i=Da(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Ei(l)),[l,Ei(l)]}function H0(e){const t=Ei(e);return[zs(e),t,zs(t)]}function zs(e){return e.replace(/start|end/g,t=>B0[t])}function Q0(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function K0(e,t,n,r){const o=ir(e);let i=Q0(wt(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(zs)))),i}function Ei(e){return e.replace(/left|right|bottom|top/g,t=>V0[t])}function G0(e){return{top:0,right:0,bottom:0,left:0,...e}}function vp(e){return typeof e!="number"?G0(e):{top:e,right:e,bottom:e,left:e}}function $i(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ec(e,t,n){let{reference:r,floating:o}=e;const i=lr(t),l=Fa(t),s=Da(l),a=wt(t),u=i==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[s]/2-o[s]/2;let v;switch(a){case"top":v={x:c,y:r.y-o.height};break;case"bottom":v={x:c,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-o.width,y:f};break;default:v={x:r.x,y:r.y}}switch(ir(t)){case"start":v[l]-=g*(n&&u?-1:1);break;case"end":v[l]+=g*(n&&u?-1:1);break}return v}const Y0=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Ec(u,r,a),g=r,v={},y=0;for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=t,{element:u,padding:c=0}=yt(e,t)||{};if(u==null)return{};const f=vp(c),g={x:n,y:r},v=Fa(o),y=Da(v),w=await l.getDimensions(u),C=v==="y",p=C?"top":"left",d=C?"bottom":"right",m=C?"clientHeight":"clientWidth",S=i.reference[y]+i.reference[v]-g[v]-i.floating[y],k=g[v]-i.reference[v],E=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let $=E?E[m]:0;(!$||!await(l.isElement==null?void 0:l.isElement(E)))&&($=s.floating[m]||i.floating[y]);const P=S/2-k/2,T=$/2-w[y]/2-1,N=Ht(f[p],T),A=Ht(f[d],T),O=N,B=$-w[y]-A,M=$/2-w[y]/2+P,W=Rs(O,M,B),_=!a.arrow&&ir(o)!=null&&M!=W&&i.reference[y]/2-(MO<=0)){var T,N;const O=(((T=i.flip)==null?void 0:T.index)||0)+1,B=k[O];if(B)return{data:{index:O,overflows:P},reset:{placement:B}};let M=(N=P.filter(W=>W.overflows[0]<=0).sort((W,_)=>W.overflows[1]-_.overflows[1])[0])==null?void 0:N.placement;if(!M)switch(v){case"bestFit":{var A;const W=(A=P.map(_=>[_.placement,_.overflows.filter(F=>F>0).reduce((F,R)=>F+R,0)]).sort((_,F)=>_[1]-F[1])[0])==null?void 0:A[0];W&&(M=W);break}case"initialPlacement":M=s;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Pc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function bc(e){return U0.some(t=>e[t]>=0)}const Z0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=yt(e,t);switch(r){case"referenceHidden":{const i=await qr(t,{...o,elementContext:"reference"}),l=Pc(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:bc(l)}}}case"escaped":{const i=await qr(t,{...o,altBoundary:!0}),l=Pc(i,n.floating);return{data:{escapedOffsets:l,escaped:bc(l)}}}default:return{}}}}};async function J0(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=wt(n),s=ir(n),a=lr(n)==="y",u=["left","top"].includes(l)?-1:1,c=i&&a?-1:1,f=yt(t,e);let{mainAxis:g,crossAxis:v,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof y=="number"&&(v=s==="end"?y*-1:y),a?{x:v*c,y:g*u}:{x:g*u,y:v*c}}const q0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=t,a=await J0(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},ey=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:l=!1,limiter:s={fn:C=>{let{x:p,y:d}=C;return{x:p,y:d}}},...a}=yt(e,t),u={x:n,y:r},c=await qr(t,a),f=lr(wt(o)),g=Ia(f);let v=u[g],y=u[f];if(i){const C=g==="y"?"top":"left",p=g==="y"?"bottom":"right",d=v+c[C],m=v-c[p];v=Rs(d,v,m)}if(l){const C=f==="y"?"top":"left",p=f==="y"?"bottom":"right",d=y+c[C],m=y-c[p];y=Rs(d,y,m)}const w=s.fn({...t,[g]:v,[f]:y});return{...w,data:{x:w.x-n,y:w.y-r}}}}},ty=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=yt(e,t),c={x:n,y:r},f=lr(o),g=Ia(f);let v=c[g],y=c[f];const w=yt(s,t),C=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(a){const m=g==="y"?"height":"width",S=i.reference[g]-i.floating[m]+C.mainAxis,k=i.reference[g]+i.reference[m]-C.mainAxis;vk&&(v=k)}if(u){var p,d;const m=g==="y"?"width":"height",S=["top","left"].includes(wt(o)),k=i.reference[f]-i.floating[m]+(S&&((p=l.offset)==null?void 0:p[f])||0)+(S?0:C.crossAxis),E=i.reference[f]+i.reference[m]+(S?0:((d=l.offset)==null?void 0:d[f])||0)-(S?C.crossAxis:0);yE&&(y=E)}return{[g]:v,[f]:y}}}},ny=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:l=()=>{},...s}=yt(e,t),a=await qr(t,s),u=wt(n),c=ir(n),f=lr(n)==="y",{width:g,height:v}=r.floating;let y,w;u==="top"||u==="bottom"?(y=u,w=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(w=u,y=c==="end"?"top":"bottom");const C=v-a[y],p=g-a[w],d=!t.middlewareData.shift;let m=C,S=p;if(f){const E=g-a.left-a.right;S=c||d?Ht(p,E):E}else{const E=v-a.top-a.bottom;m=c||d?Ht(C,E):E}if(d&&!c){const E=Te(a.left,0),$=Te(a.right,0),P=Te(a.top,0),T=Te(a.bottom,0);f?S=g-2*(E!==0||$!==0?E+$:Te(a.left,a.right)):m=v-2*(P!==0||T!==0?P+T:Te(a.top,a.bottom))}await l({...t,availableWidth:S,availableHeight:m});const k=await o.getDimensions(i.floating);return g!==k.width||v!==k.height?{reset:{rects:!0}}:{}}}};function Kt(e){return yp(e)?(e.nodeName||"").toLowerCase():"#document"}function Oe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ct(e){var t;return(t=(yp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yp(e){return e instanceof Node||e instanceof Oe(e).Node}function xt(e){return e instanceof Element||e instanceof Oe(e).Element}function st(e){return e instanceof HTMLElement||e instanceof Oe(e).HTMLElement}function Nc(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Oe(e).ShadowRoot}function uo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=We(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ry(e){return["table","td","th"].includes(Kt(e))}function Ua(e){const t=Va(),n=We(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 oy(e){let t=Yn(e);for(;st(t)&&!Yi(t);){if(Ua(t))return t;t=Yn(t)}return null}function Va(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Yi(e){return["html","body","#document"].includes(Kt(e))}function We(e){return Oe(e).getComputedStyle(e)}function Xi(e){return xt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Yn(e){if(Kt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nc(e)&&e.host||Ct(e);return Nc(t)?t.host:t}function wp(e){const t=Yn(e);return Yi(t)?e.ownerDocument?e.ownerDocument.body:e.body:st(t)&&uo(t)?t:wp(t)}function eo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=wp(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=Oe(o);return i?t.concat(l,l.visualViewport||[],uo(o)?o:[],l.frameElement&&n?eo(l.frameElement):[]):t.concat(o,eo(o,[],n))}function xp(e){const t=We(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=st(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=ki(n)!==i||ki(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Ba(e){return xt(e)?e:e.contextElement}function Un(e){const t=Ba(e);if(!st(t))return Qt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=xp(t);let l=(i?ki(n.width):n.width)/r,s=(i?ki(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const iy=Qt(0);function Sp(e){const t=Oe(e);return!Va()||!t.visualViewport?iy:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ly(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Oe(e)?!1:t}function vn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ba(e);let l=Qt(1);t&&(r?xt(r)&&(l=Un(r)):l=Un(e));const s=ly(i,n,r)?Sp(i):Qt(0);let a=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,c=o.width/l.x,f=o.height/l.y;if(i){const g=Oe(i),v=r&&xt(r)?Oe(r):r;let y=g.frameElement;for(;y&&r&&v!==g;){const w=Un(y),C=y.getBoundingClientRect(),p=We(y),d=C.left+(y.clientLeft+parseFloat(p.paddingLeft))*w.x,m=C.top+(y.clientTop+parseFloat(p.paddingTop))*w.y;a*=w.x,u*=w.y,c*=w.x,f*=w.y,a+=d,u+=m,y=Oe(y).frameElement}}return $i({width:c,height:f,x:a,y:u})}function sy(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=st(n),i=Ct(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0},s=Qt(1);const a=Qt(0);if((o||!o&&r!=="fixed")&&((Kt(n)!=="body"||uo(i))&&(l=Xi(n)),st(n))){const u=vn(n);s=Un(n),a.x=u.x+n.clientLeft,a.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-l.scrollLeft*s.x+a.x,y:t.y*s.y-l.scrollTop*s.y+a.y}}function ay(e){return Array.from(e.getClientRects())}function Cp(e){return vn(Ct(e)).left+Xi(e).scrollLeft}function uy(e){const t=Ct(e),n=Xi(e),r=e.ownerDocument.body,o=Te(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Te(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Cp(e);const s=-n.scrollTop;return We(r).direction==="rtl"&&(l+=Te(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function cy(e,t){const n=Oe(e),r=Ct(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;const u=Va();(!u||u&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}function dy(e,t){const n=vn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=st(e)?Un(e):Qt(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:l,height:s,x:a,y:u}}function Rc(e,t,n){let r;if(t==="viewport")r=cy(e,n);else if(t==="document")r=uy(Ct(e));else if(xt(t))r=dy(t,n);else{const o=Sp(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return $i(r)}function kp(e,t){const n=Yn(e);return n===t||!xt(n)||Yi(n)?!1:We(n).position==="fixed"||kp(n,t)}function fy(e,t){const n=t.get(e);if(n)return n;let r=eo(e,[],!1).filter(s=>xt(s)&&Kt(s)!=="body"),o=null;const i=We(e).position==="fixed";let l=i?Yn(e):e;for(;xt(l)&&!Yi(l);){const s=We(l),a=Ua(l);!a&&s.position==="fixed"&&(o=null),(i?!a&&!o:!a&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||uo(l)&&!a&&kp(e,l))?r=r.filter(c=>c!==l):o=s,l=Yn(l)}return t.set(e,r),r}function py(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?fy(t,this._c):[].concat(n),r],s=l[0],a=l.reduce((u,c)=>{const f=Rc(t,c,o);return u.top=Te(f.top,u.top),u.right=Ht(f.right,u.right),u.bottom=Ht(f.bottom,u.bottom),u.left=Te(f.left,u.left),u},Rc(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function my(e){return xp(e)}function hy(e,t,n){const r=st(t),o=Ct(t),i=n==="fixed",l=vn(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=Qt(0);if(r||!r&&!i)if((Kt(t)!=="body"||uo(o))&&(s=Xi(t)),r){const u=vn(t,!0,i,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else o&&(a.x=Cp(o));return{x:l.left+s.scrollLeft-a.x,y:l.top+s.scrollTop-a.y,width:l.width,height:l.height}}function zc(e,t){return!st(e)||We(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ep(e,t){const n=Oe(e);if(!st(e))return n;let r=zc(e,t);for(;r&&ry(r)&&We(r).position==="static";)r=zc(r,t);return r&&(Kt(r)==="html"||Kt(r)==="body"&&We(r).position==="static"&&!Ua(r))?n:r||oy(e)||n}const gy=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Ep,i=this.getDimensions;return{reference:hy(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function vy(e){return We(e).direction==="rtl"}const yy={convertOffsetParentRelativeRectToViewportRelativeRect:sy,getDocumentElement:Ct,getClippingRect:py,getOffsetParent:Ep,getElementRects:gy,getClientRects:ay,getDimensions:my,getScale:Un,isElement:xt,isRTL:vy};function wy(e,t){let n=null,r;const o=Ct(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),i();const{left:u,top:c,width:f,height:g}=e.getBoundingClientRect();if(s||t(),!f||!g)return;const v=To(c),y=To(o.clientWidth-(u+f)),w=To(o.clientHeight-(c+g)),C=To(u),d={rootMargin:-v+"px "+-y+"px "+-w+"px "+-C+"px",threshold:Te(0,Ht(1,a))||1};let m=!0;function S(k){const E=k[0].intersectionRatio;if(E!==a){if(!m)return l();E?l(!1,E):r=setTimeout(()=>{l(!1,1e-7)},100)}m=!1}try{n=new IntersectionObserver(S,{...d,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,d)}n.observe(e)}return l(!0),i}function xy(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Ba(e),c=o||i?[...u?eo(u):[],...eo(t)]:[];c.forEach(p=>{o&&p.addEventListener("scroll",n,{passive:!0}),i&&p.addEventListener("resize",n)});const f=u&&s?wy(u,n):null;let g=-1,v=null;l&&(v=new ResizeObserver(p=>{let[d]=p;d&&d.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{v&&v.observe(t)})),n()}),u&&!a&&v.observe(u),v.observe(t));let y,w=a?vn(e):null;a&&C();function C(){const p=vn(e);w&&(p.x!==w.x||p.y!==w.y||p.width!==w.width||p.height!==w.height)&&n(),w=p,y=requestAnimationFrame(C)}return n(),()=>{c.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),f&&f(),v&&v.disconnect(),v=null,a&&cancelAnimationFrame(y)}}const Sy=(e,t,n)=>{const r=new Map,o={platform:yy,...n},i={...o.platform,_c:r};return Y0(e,t,{...o,platform:i})},Cy=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?$c({element:r.current,padding:o}).fn(n):{}:r?$c({element:r,padding:o}).fn(n):{}}}};var Go=typeof document<"u"?h.useLayoutEffect:h.useEffect;function Pi(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(!Pi(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)&&!Pi(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function $p(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tc(e,t){const n=$p(e);return Math.round(t*n)/n}function _c(e){const t=h.useRef(e);return Go(()=>{t.current=e}),t}function ky(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[c,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,v]=h.useState(r);Pi(g,r)||v(r);const[y,w]=h.useState(null),[C,p]=h.useState(null),d=h.useCallback(_=>{_!=E.current&&(E.current=_,w(_))},[w]),m=h.useCallback(_=>{_!==$.current&&($.current=_,p(_))},[p]),S=i||y,k=l||C,E=h.useRef(null),$=h.useRef(null),P=h.useRef(c),T=_c(a),N=_c(o),A=h.useCallback(()=>{if(!E.current||!$.current)return;const _={placement:t,strategy:n,middleware:g};N.current&&(_.platform=N.current),Sy(E.current,$.current,_).then(F=>{const R={...F,isPositioned:!0};O.current&&!Pi(P.current,R)&&(P.current=R,Hi.flushSync(()=>{f(R)}))})},[g,t,n,N]);Go(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(_=>({..._,isPositioned:!1})))},[u]);const O=h.useRef(!1);Go(()=>(O.current=!0,()=>{O.current=!1}),[]),Go(()=>{if(S&&(E.current=S),k&&($.current=k),S&&k){if(T.current)return T.current(S,k,A);A()}},[S,k,A,T]);const B=h.useMemo(()=>({reference:E,floating:$,setReference:d,setFloating:m}),[d,m]),M=h.useMemo(()=>({reference:S,floating:k}),[S,k]),W=h.useMemo(()=>{const _={position:n,left:0,top:0};if(!M.floating)return _;const F=Tc(M.floating,c.x),R=Tc(M.floating,c.y);return s?{..._,transform:"translate("+F+"px, "+R+"px)",...$p(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:R}},[n,s,M.floating,c.x,c.y]);return h.useMemo(()=>({...c,update:A,refs:B,elements:M,floatingStyles:W}),[c,A,B,M,W])}function Ey(e){const[t,n]=h.useState(void 0);return gn(()=>{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 l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Pp="Popper",[bp,Np]=rr(Pp),[$y,Rp]=bp(Pp),Py=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return h.createElement($y,{scope:t,anchor:r,onAnchorChange:o},n)},by="PopperAnchor",Ny=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Rp(by,n),l=h.useRef(null),s=lt(t,l);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:h.createElement(He.div,Q({},o,{ref:s}))}),zp="PopperContent",[Ry,sw]=bp(zp),zy=h.forwardRef((e,t)=>{var n,r,o,i,l,s,a,u;const{__scopePopper:c,side:f="bottom",sideOffset:g=0,align:v="center",alignOffset:y=0,arrowPadding:w=0,avoidCollisions:C=!0,collisionBoundary:p=[],collisionPadding:d=0,sticky:m="partial",hideWhenDetached:S=!1,updatePositionStrategy:k="optimized",onPlaced:E,...$}=e,P=Rp(zp,c),[T,N]=h.useState(null),A=lt(t,sr=>N(sr)),[O,B]=h.useState(null),M=Ey(O),W=(n=M==null?void 0:M.width)!==null&&n!==void 0?n:0,_=(r=M==null?void 0:M.height)!==null&&r!==void 0?r:0,F=f+(v!=="center"?"-"+v:""),R=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},z=Array.isArray(p)?p:[p],L=z.length>0,H={padding:R,boundary:z.filter(Ty),altBoundary:L},{refs:Y,floatingStyles:en,placement:at,isPositioned:kt,middlewareData:Ee}=ky({strategy:"fixed",placement:F,whileElementsMounted:(...sr)=>xy(...sr,{animationFrame:k==="always"}),elements:{reference:P.anchor},middleware:[q0({mainAxis:g+_,alignmentAxis:y}),C&&ey({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?ty():void 0,...H}),C&&X0({...H}),ny({...H,apply:({elements:sr,rects:tu,availableWidth:sm,availableHeight:am})=>{const{width:um,height:cm}=tu.reference,fo=sr.floating.style;fo.setProperty("--radix-popper-available-width",`${sm}px`),fo.setProperty("--radix-popper-available-height",`${am}px`),fo.setProperty("--radix-popper-anchor-width",`${um}px`),fo.setProperty("--radix-popper-anchor-height",`${cm}px`)}}),O&&Cy({element:O,padding:w}),_y({arrowWidth:W,arrowHeight:_}),S&&Z0({strategy:"referenceHidden",...H})]}),[tn,tm]=Tp(at),co=or(E);gn(()=>{kt&&(co==null||co())},[kt,co]);const nm=(o=Ee.arrow)===null||o===void 0?void 0:o.x,rm=(i=Ee.arrow)===null||i===void 0?void 0:i.y,om=((l=Ee.arrow)===null||l===void 0?void 0:l.centerOffset)!==0,[im,lm]=h.useState();return gn(()=>{T&&lm(window.getComputedStyle(T).zIndex)},[T]),h.createElement("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...en,transform:kt?en.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:im,"--radix-popper-transform-origin":[(s=Ee.transformOrigin)===null||s===void 0?void 0:s.x,(a=Ee.transformOrigin)===null||a===void 0?void 0:a.y].join(" ")},dir:e.dir},h.createElement(Ry,{scope:c,placedSide:tn,onArrowChange:B,arrowX:nm,arrowY:rm,shouldHideArrow:om},h.createElement(He.div,Q({"data-side":tn,"data-align":tm},$,{ref:A,style:{...$.style,animation:kt?void 0:"none",opacity:(u=Ee.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function Ty(e){return e!==null}const _y=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;const{placement:s,rects:a,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,g=f?0:e.arrowWidth,v=f?0:e.arrowHeight,[y,w]=Tp(s),C={start:"0%",center:"50%",end:"100%"}[w],p=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+g/2,d=((i=(l=u.arrow)===null||l===void 0?void 0:l.y)!==null&&i!==void 0?i:0)+v/2;let m="",S="";return y==="bottom"?(m=f?C:`${p}px`,S=`${-v}px`):y==="top"?(m=f?C:`${p}px`,S=`${a.floating.height+v}px`):y==="right"?(m=`${-v}px`,S=f?C:`${d}px`):y==="left"&&(m=`${a.floating.width+v}px`,S=f?C:`${d}px`),{data:{x:m,y:S}}}});function Tp(e){const[t,n="center"]=e.split("-");return[t,n]}const jy=Py,Oy=Ny,My=zy;function Ly(e,t){return h.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Wa=e=>{const{present:t,children:n}=e,r=Ay(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=lt(r.ref,o.ref);return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};Wa.displayName="Presence";function Ay(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),l=e?"mounted":"unmounted",[s,a]=Ly(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=_o(r.current);i.current=s==="mounted"?u:"none"},[s]),gn(()=>{const u=r.current,c=o.current;if(c!==e){const g=i.current,v=_o(u);e?a("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),gn(()=>{if(t){const u=f=>{const v=_o(r.current).includes(f.animationName);f.target===t&&v&&Hi.flushSync(()=>a("ANIMATION_END"))},c=f=>{f.target===t&&(i.current=_o(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:h.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function _o(e){return(e==null?void 0:e.animationName)||"none"}function Zi({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Iy({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=or(n),a=h.useCallback(u=>{if(i){const f=typeof u=="function"?u(e):u;f!==e&&s(f)}else o(u)},[i,e,o,s]);return[l,a]}function Iy({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=or(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Dy=h.forwardRef((e,t)=>h.createElement(He.span,Q({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Fy=Dy,[Ji,aw]=rr("Tooltip",[Np]),Ha=Np(),Uy="TooltipProvider",Vy=700,Ts="tooltip.open",[By,Qa]=Ji(Uy),Wy=e=>{const{__scopeTooltip:t,delayDuration:n=Vy,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[l,s]=h.useState(!0),a=h.useRef(!1),u=h.useRef(0);return h.useEffect(()=>{const c=u.current;return()=>window.clearTimeout(c)},[]),h.createElement(By,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:h.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:h.useCallback(c=>{a.current=c},[]),disableHoverableContent:o},i)},Ka="Tooltip",[Hy,qi]=Ji(Ka),Qy=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:s}=e,a=Qa(Ka,e.__scopeTooltip),u=Ha(t),[c,f]=h.useState(null),g=Aa(),v=h.useRef(0),y=l??a.disableHoverableContent,w=s??a.delayDuration,C=h.useRef(!1),[p=!1,d]=Zi({prop:r,defaultProp:o,onChange:$=>{$?(a.onOpen(),document.dispatchEvent(new CustomEvent(Ts))):a.onClose(),i==null||i($)}}),m=h.useMemo(()=>p?C.current?"delayed-open":"instant-open":"closed",[p]),S=h.useCallback(()=>{window.clearTimeout(v.current),C.current=!1,d(!0)},[d]),k=h.useCallback(()=>{window.clearTimeout(v.current),d(!1)},[d]),E=h.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{C.current=!0,d(!0)},w)},[w,d]);return h.useEffect(()=>()=>window.clearTimeout(v.current),[]),h.createElement(jy,u,h.createElement(Hy,{scope:t,contentId:g,open:p,stateAttribute:m,trigger:c,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{a.isOpenDelayed?E():S()},[a.isOpenDelayed,E,S]),onTriggerLeave:h.useCallback(()=>{y?k():window.clearTimeout(v.current)},[k,y]),onOpen:S,onClose:k,disableHoverableContent:y},n))},jc="TooltipTrigger",Ky=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=qi(jc,n),i=Qa(jc,n),l=Ha(n),s=h.useRef(null),a=lt(t,s,o.onTriggerChange),u=h.useRef(!1),c=h.useRef(!1),f=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.createElement(Oy,Q({asChild:!0},l),h.createElement(He.button,Q({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:a,onPointerMove:Ze(e.onPointerMove,g=>{g.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:Ze(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:Ze(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Ze(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Ze(e.onBlur,o.onClose),onClick:Ze(e.onClick,o.onClose)})))}),Gy="TooltipPortal",[uw,Yy]=Ji(Gy,{forceMount:void 0}),to="TooltipContent",Xy=h.forwardRef((e,t)=>{const n=Yy(to,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=qi(to,e.__scopeTooltip);return h.createElement(Wa,{present:r||l.open},l.disableHoverableContent?h.createElement(_p,Q({side:o},i,{ref:t})):h.createElement(Zy,Q({side:o},i,{ref:t})))}),Zy=h.forwardRef((e,t)=>{const n=qi(to,e.__scopeTooltip),r=Qa(to,e.__scopeTooltip),o=h.useRef(null),i=lt(t,o),[l,s]=h.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:f}=r,g=h.useCallback(()=>{s(null),f(!1)},[f]),v=h.useCallback((y,w)=>{const C=y.currentTarget,p={x:y.clientX,y:y.clientY},d=qy(p,C.getBoundingClientRect()),m=e1(p,d),S=t1(w.getBoundingClientRect()),k=r1([...m,...S]);s(k),f(!0)},[f]);return h.useEffect(()=>()=>g(),[g]),h.useEffect(()=>{if(a&&c){const y=C=>v(C,c),w=C=>v(C,a);return a.addEventListener("pointerleave",y),c.addEventListener("pointerleave",w),()=>{a.removeEventListener("pointerleave",y),c.removeEventListener("pointerleave",w)}}},[a,c,v,g]),h.useEffect(()=>{if(l){const y=w=>{const C=w.target,p={x:w.clientX,y:w.clientY},d=(a==null?void 0:a.contains(C))||(c==null?void 0:c.contains(C)),m=!n1(p,l);d?g():m&&(g(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[a,c,l,u,g]),h.createElement(_p,Q({},e,{ref:i}))}),[Jy,cw]=Ji(Ka,{isInside:!1}),_p=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...s}=e,a=qi(to,n),u=Ha(n),{onClose:c}=a;return h.useEffect(()=>(document.addEventListener(Ts,c),()=>document.removeEventListener(Ts,c)),[c]),h.useEffect(()=>{if(a.trigger){const f=g=>{const v=g.target;v!=null&&v.contains(a.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,c]),h.createElement(L0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:f=>f.preventDefault(),onDismiss:c},h.createElement(My,Q({"data-state":a.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),h.createElement(ap,null,r),h.createElement(Jy,{scope:n,isInside:!0},h.createElement(Fy,{id:a.contentId,role:"tooltip"},o||r))))});function qy(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function e1(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function t1(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function n1(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;ir!=c>r&&n<(u-s)*(r-a)/(c-a)+s&&(o=!o)}return o}function r1(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),o1(t)}function o1(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const i1=Wy,l1=Qy,s1=Ky,jp=Xy,a1=i1,u1=l1,c1=s1,Op=h.forwardRef(({className:e,sideOffset:t=4,...n},r)=>x.jsx(jp,{ref:r,sideOffset:t,className:nr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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}));Op.displayName=jp.displayName;function we({op:e,ownOp:t,shuf:n,tooltipName:r,onClick:o,children:i}){return x.jsx(a1,{children:x.jsxs(u1,{children:[x.jsx(c1,{asChild:!0,children:x.jsx(xe,{className:e===t&&!n||t==="all"&&n?"ring ring-offset-2":"",onClick:o,children:i})}),x.jsx(Op,{children:x.jsx("p",{children:r})})]})})}function d1(e){const t=e+"CollectionProvider",[n,r]=rr(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=v=>{const{scope:y,children:w}=v,C=I.useRef(null),p=I.useRef(new Map).current;return I.createElement(o,{scope:y,itemMap:p,collectionRef:C},w)},s=e+"CollectionSlot",a=I.forwardRef((v,y)=>{const{scope:w,children:C}=v,p=i(s,w),d=lt(y,p.collectionRef);return I.createElement(Jr,{ref:d},C)}),u=e+"CollectionItemSlot",c="data-radix-collection-item",f=I.forwardRef((v,y)=>{const{scope:w,children:C,...p}=v,d=I.useRef(null),m=lt(y,d),S=i(u,w);return I.useEffect(()=>(S.itemMap.set(d,{ref:d,...p}),()=>void S.itemMap.delete(d))),I.createElement(Jr,{[c]:"",ref:m},C)});function g(v){const y=i(e+"CollectionConsumer",v);return I.useCallback(()=>{const C=y.collectionRef.current;if(!C)return[];const p=Array.from(C.querySelectorAll(`[${c}]`));return Array.from(y.itemMap.values()).sort((S,k)=>p.indexOf(S.ref.current)-p.indexOf(k.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:l,Slot:a,ItemSlot:f},g,r]}const Mp="Collapsible",[f1,Lp]=rr(Mp),[p1,Ga]=f1(Mp),m1=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:l,...s}=e,[a=!1,u]=Zi({prop:r,defaultProp:o,onChange:l});return h.createElement(p1,{scope:n,disabled:i,contentId:Aa(),open:a,onOpenToggle:h.useCallback(()=>u(c=>!c),[u])},h.createElement(He.div,Q({"data-state":Ya(a),"data-disabled":i?"":void 0},s,{ref:t})))}),h1="CollapsibleTrigger",g1=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Ga(h1,n);return h.createElement(He.button,Q({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Ya(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:Ze(e.onClick,o.onOpenToggle)}))}),Ap="CollapsibleContent",v1=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ga(Ap,e.__scopeCollapsible);return h.createElement(Wa,{present:n||o.open},({present:i})=>h.createElement(y1,Q({},r,{ref:t,present:i})))}),y1=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,l=Ga(Ap,n),[s,a]=h.useState(r),u=h.useRef(null),c=lt(t,u),f=h.useRef(0),g=f.current,v=h.useRef(0),y=v.current,w=l.open||s,C=h.useRef(w),p=h.useRef();return h.useEffect(()=>{const d=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(d)},[]),gn(()=>{const d=u.current;if(d){p.current=p.current||{transitionDuration:d.style.transitionDuration,animationName:d.style.animationName},d.style.transitionDuration="0s",d.style.animationName="none";const m=d.getBoundingClientRect();f.current=m.height,v.current=m.width,C.current||(d.style.transitionDuration=p.current.transitionDuration,d.style.animationName=p.current.animationName),a(r)}},[l.open,r]),h.createElement(He.div,Q({"data-state":Ya(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!w},i,{ref:c,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style}}),w&&o)});function Ya(e){return e?"open":"closed"}const w1=m1,x1=g1,S1=v1,C1=h.createContext(void 0);function k1(e){const t=h.useContext(C1);return e||t||"ltr"}const qt="Accordion",E1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Xa,$1,P1]=d1(qt),[el,dw]=rr(qt,[P1,Lp]),Za=Lp(),Ip=I.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return I.createElement(Xa.Provider,{scope:e.__scopeAccordion},n==="multiple"?I.createElement(z1,Q({},i,{ref:t})):I.createElement(R1,Q({},o,{ref:t})))});Ip.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[Dp,b1]=el(qt),[Fp,N1]=el(qt,{collapsible:!1}),R1=I.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...l}=e,[s,a]=Zi({prop:n,defaultProp:r,onChange:o});return I.createElement(Dp,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:a,onItemClose:I.useCallback(()=>i&&a(""),[i,a])},I.createElement(Fp,{scope:e.__scopeAccordion,collapsible:i},I.createElement(Up,Q({},l,{ref:t}))))}),z1=I.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[l=[],s]=Zi({prop:n,defaultProp:r,onChange:o}),a=I.useCallback(c=>s((f=[])=>[...f,c]),[s]),u=I.useCallback(c=>s((f=[])=>f.filter(g=>g!==c)),[s]);return I.createElement(Dp,{scope:e.__scopeAccordion,value:l,onItemOpen:a,onItemClose:u},I.createElement(Fp,{scope:e.__scopeAccordion,collapsible:!0},I.createElement(Up,Q({},i,{ref:t}))))}),[T1,tl]=el(qt),Up=I.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...l}=e,s=I.useRef(null),a=lt(s,t),u=$1(n),f=k1(o)==="ltr",g=Ze(e.onKeyDown,v=>{var y;if(!E1.includes(v.key))return;const w=v.target,C=u().filter(T=>{var N;return!((N=T.ref.current)!==null&&N!==void 0&&N.disabled)}),p=C.findIndex(T=>T.ref.current===w),d=C.length;if(p===-1)return;v.preventDefault();let m=p;const S=0,k=d-1,E=()=>{m=p+1,m>k&&(m=S)},$=()=>{m=p-1,m{const{__scopeAccordion:n,value:r,...o}=e,i=tl(_s,n),l=b1(_s,n),s=Za(n),a=Aa(),u=r&&l.value.includes(r)||!1,c=i.disabled||e.disabled;return I.createElement(_1,{scope:n,open:u,disabled:c,triggerId:a},I.createElement(w1,Q({"data-orientation":i.orientation,"data-state":Vp(u)},s,o,{ref:t,disabled:c,open:u,onOpenChange:f=>{f?l.onItemOpen(r):l.onItemClose(r)}})))}),O1="AccordionHeader",M1=I.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=tl(qt,n),i=Ja(O1,n);return I.createElement(He.h3,Q({"data-orientation":o.orientation,"data-state":Vp(i.open),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),Oc="AccordionTrigger",L1=I.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=tl(qt,n),i=Ja(Oc,n),l=N1(Oc,n),s=Za(n);return I.createElement(Xa.ItemSlot,{scope:n},I.createElement(x1,Q({"aria-disabled":i.open&&!l.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId},s,r,{ref:t})))}),A1="AccordionContent",I1=I.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=tl(qt,n),i=Ja(A1,n),l=Za(n);return I.createElement(S1,Q({role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation},l,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function Vp(e){return e?"open":"closed"}const D1=Ip,F1=j1,U1=M1,Bp=L1,Wp=I1,V1=D1,Hp=h.forwardRef(({className:e,...t},n)=>x.jsx(F1,{ref:n,className:nr("border-b",e),...t}));Hp.displayName="AccordionItem";const Qp=h.forwardRef(({className:e,children:t,...n},r)=>x.jsx(U1,{className:"flex",children:x.jsxs(Bp,{ref:r,className:nr("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,x.jsx(P0,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Qp.displayName=Bp.displayName;const Kp=h.forwardRef(({className:e,children:t,...n},r)=>x.jsx(Wp,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:x.jsx("div",{className:nr("pb-4 pt-0",e),children:t})}));Kp.displayName=Wp.displayName;function B1({opState:e,handleSetOp:t,shufState:n,handleSetShuf:r,maxNumState:o,setMaxNumState:i}){function l(){localStorage.removeItem("correct"),localStorage.removeItem("wrong"),window.location.reload()}return x.jsx(V1,{type:"single",collapsible:!0,className:"w-full",children:x.jsxs(Hp,{value:"settings",children:[x.jsx(Qp,{children:"Ustawienia"}),x.jsxs(Kp,{className:"mx-2 flex flex-col items-center justify-center",children:[x.jsx("div",{className:"mb-2",children:"Działanie"}),x.jsxs("div",{className:"flex flex-row gap-2",children:[x.jsx(we,{op:e,ownOp:"add",shuf:n,tooltipName:"Dodawanie",onClick:()=>{t("add"),r(!1)},children:x.jsx(Oa,{})}),x.jsx(we,{op:e,ownOp:"sub",shuf:n,tooltipName:"Odejmowanie",onClick:()=>{t("sub"),r(!1)},children:x.jsx(ja,{})}),x.jsx(we,{op:e,ownOp:"mul",shuf:n,tooltipName:"Mnożenie",onClick:()=>{t("mul"),r(!1)},children:x.jsx(_a,{})}),x.jsx(we,{op:e,ownOp:"div",shuf:n,tooltipName:"Dzielenie",onClick:()=>{t("div"),r(!1)},children:x.jsx(Ta,{})}),x.jsx(we,{op:e,ownOp:"all",shuf:n,tooltipName:"Mieszane",onClick:()=>{t("add"),r(!0)},children:x.jsx(Ma,{})})]}),x.jsx("div",{className:"my-2",children:"Maksymalna liczba"}),x.jsx(ao,{value:o,onChange:s=>i(parseInt(s.target.value))}),x.jsx(xe,{variant:"destructive",onClick:l,className:"mt-3",children:"Wyczyść wyniki"})]})]})})}function bi({score:e,type:t}){return x.jsx("div",{className:"py-2 px-4 rounded-md text-white "+(t==="correct"?"bg-correct":"bg-wrong"),children:e})}var Gp={exports:{}};(function(e,t){(function(n,r){e.exports=r(h)})(typeof self<"u"?self:fm,n=>(()=>{var r={156:s=>{s.exports=n}},o={};function i(s){var a=o[s];if(a!==void 0)return a.exports;var u=o[s]={exports:{}};return r[s](u,u.exports,i),u.exports}i.d=(s,a)=>{for(var u in a)i.o(a,u)&&!i.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:a[u]})},i.o=(s,a)=>Object.prototype.hasOwnProperty.call(s,a),i.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var l={};return(()=>{i.r(l),i.d(l,{default:()=>C,useStopwatch:()=>y,useTime:()=>w,useTimer:()=>v});var s=i(156);class a{static expiryTimestamp(d){const m=new Date(d).getTime()>0;return m||console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings",d),m}static onExpire(d){const m=d&&typeof d=="function";return d&&!m&&console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function",d),m}}class u{static getTimeFromSeconds(d){const m=Math.ceil(d),S=Math.floor(m/86400),k=Math.floor(m%86400/3600),E=Math.floor(m%3600/60);return{totalSeconds:m,seconds:Math.floor(m%60),minutes:E,hours:k,days:S}}static getSecondsFromExpiry(d,m){const S=d-new Date().getTime();if(S>0){const k=S/1e3;return m?Math.round(k):k}return 0}static getSecondsFromPrevTime(d,m){const S=new Date().getTime()-d;if(S>0){const k=S/1e3;return m?Math.round(k):k}return 0}static getSecondsFromTimeNow(){const d=new Date;return d.getTime()/1e3-60*d.getTimezoneOffset()}static getFormattedTimeFromSeconds(d,m){const{seconds:S,minutes:k,hours:E}=u.getTimeFromSeconds(d);let $="",P=E;return m==="12-hour"&&($=E>=12?"pm":"am",P=E%12),{seconds:S,minutes:k,hours:P,ampm:$}}}function c(p,d){const m=(0,s.useRef)();(0,s.useEffect)(()=>{m.current=p}),(0,s.useEffect)(()=>{if(!d)return()=>{};const S=setInterval(()=>{m.current&&m.current()},d);return()=>clearInterval(S)},[d])}const f=1e3;function g(p){if(!a.expiryTimestamp(p))return null;const d=u.getSecondsFromExpiry(p),m=Math.floor(1e3*(d-Math.floor(d)));return m>0?m:f}function v(){let{expiryTimestamp:p,onExpire:d,autoStart:m=!0}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[S,k]=(0,s.useState)(p),[E,$]=(0,s.useState)(u.getSecondsFromExpiry(S)),[P,T]=(0,s.useState)(m),[N,A]=(0,s.useState)(m),[O,B]=(0,s.useState)(g(S)),M=(0,s.useCallback)(()=>{a.onExpire(d)&&d(),T(!1),B(null)},[d]),W=(0,s.useCallback)(()=>{T(!1)},[]),_=(0,s.useCallback)(function(z){let L=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];B(g(z)),A(L),T(L),k(z),$(u.getSecondsFromExpiry(z))},[]),F=(0,s.useCallback)(()=>{const z=new Date;z.setMilliseconds(z.getMilliseconds()+1e3*E),_(z)},[E,_]),R=(0,s.useCallback)(()=>{N?($(u.getSecondsFromExpiry(S)),T(!0)):F()},[S,N,F]);return c(()=>{O!==f&&B(f);const z=u.getSecondsFromExpiry(S);$(z),z<=0&&M()},P?O:null),{...u.getTimeFromSeconds(E),start:R,pause:W,resume:F,restart:_,isRunning:P}}function y(){let{autoStart:p,offsetTimestamp:d}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[m,S]=(0,s.useState)(u.getSecondsFromExpiry(d,!0)||0),[k,E]=(0,s.useState)(new Date),[$,P]=(0,s.useState)(m+u.getSecondsFromPrevTime(k||0,!0)),[T,N]=(0,s.useState)(p);c(()=>{P(m+u.getSecondsFromPrevTime(k,!0))},T?1e3:null);const A=(0,s.useCallback)(()=>{const M=new Date;E(M),N(!0),P(m+u.getSecondsFromPrevTime(M,!0))},[m]),O=(0,s.useCallback)(()=>{S($),N(!1)},[$]),B=(0,s.useCallback)(function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,W=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];const _=u.getSecondsFromExpiry(M,!0)||0,F=new Date;E(F),S(_),N(W),P(_+u.getSecondsFromPrevTime(F,!0))},[]);return{...u.getTimeFromSeconds($),start:A,pause:O,reset:B,isRunning:T}}function w(){let{format:p}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[d,m]=(0,s.useState)(u.getSecondsFromTimeNow());return c(()=>{m(u.getSecondsFromTimeNow())},1e3),{...u.getFormattedTimeFromSeconds(d,p)}}function C(p){if((0,s.useEffect)(()=>{console.warn("react-timer-hook: default export useTimer is deprecated, use named exports { useTimer, useStopwatch, useTime } instead")},[]),p.expiryTimestamp){const m=v(p);return{...m,startTimer:m.start,stopTimer:m.pause,resetTimer:()=>{}}}const d=y(p);return{...d,startTimer:d.start,stopTimer:d.pause,resetTimer:d.reset}}})(),l})())})(Gp);var qa=Gp.exports;function W1(){const e=h.useRef(Math.ceil(Math.random()*10)),t=h.useRef(Math.ceil(Math.random()*10)),[n,r]=h.useState(""),[o,i]=h.useState(!1),[l,s]=h.useState("add"),[a,u]=h.useState(100),[c,f]=h.useState(0),[g,v]=h.useState($()),{minutes:y,seconds:w,start:C}=qa.useStopwatch(),p=h.useRef(parseInt(localStorage.getItem("correct")||"0")),d=h.useRef(parseInt(localStorage.getItem("wrong")||"0"));console.log(y,w);const m=h.useRef(!0);h.useEffect(()=>C(),[]),h.useEffect(()=>(document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}),[n]),h.useEffect(()=>{T()},[l,o]);function S(){return`${y.toString().padStart(2,"0")}:${w.toString().padStart(2,"0")}`}function k(M){M.key=="Enter"&&n&&(m.current?N():T())}function E(M,W){return M+Math.floor(Math.random()*(W-M+1))}function $(){return l==="add"?e.current+t.current:l==="sub"?e.current-t.current:l==="mul"?e.current*t.current:l==="div"?e.current/t.current:0}function P(){l==="add"?(e.current=E(1,a),t.current=E(1,a-e.current)):l==="sub"?(e.current=E(1,a),t.current=E(1,e.current)):l==="mul"?(e.current=E(1,Math.floor(Math.sqrt(a))),t.current=E(1,Math.floor(Math.sqrt(a)))):l==="div"&&(t.current=E(1,Math.floor(Math.sqrt(a))),e.current=t.current*E(1,Math.floor(Math.sqrt(a)))),v($())}function T(){if(f(0),o){const M=["add","sub","mul","div"],W=E(0,3);s(M[W])}m.current=!0,P(),r("")}function N(){n!==""&&(parseInt(n)===g?(f(1),m.current&&(p.current+=1,m.current=!1)):(f(-1),m.current&&(d.current+=1,m.current=!1)),localStorage.setItem("correct",p.current.toString()),localStorage.setItem("wrong",d.current.toString()))}function A(M){s(M)}function O(M){i(M)}function B(M){r(M.target.value)}return x.jsxs("div",{className:"flex flex-col gap-4 items-center justify-center",children:[x.jsx("div",{children:S()}),x.jsxs("div",{className:"flex items-center justify-center gap-2",children:[x.jsx(bi,{score:p.current,type:"correct"}),x.jsx(bi,{score:d.current,type:"wrong"})]}),x.jsx(La,{a:e.current,b:t.current,op:l}),x.jsx(Na,{value:n,onChange:B,ansState:c}),x.jsxs("div",{className:"flex items-center justify-center gap-2",children:[x.jsx(xe,{onClick:T,children:x.jsx(b0,{size:16})}),x.jsx(xe,{onClick:N,children:x.jsx(za,{size:16})})]}),x.jsx(B1,{opState:l,handleSetOp:A,shufState:o,handleSetShuf:O,maxNumState:a,setMaxNumState:u})]})}const Yp="Progress",nl=100,[H1,fw]=rr(Yp),[Q1,K1]=H1(Yp),Xp=h.forwardRef((e,t)=>{const{__scopeProgress:n,value:r,max:o,getValueLabel:i=X1,...l}=e,s=js(o)?o:nl,a=Jp(r,s)?r:null,u=Ni(a)?i(a,s):void 0;return h.createElement(Q1,{scope:n,value:a,max:s},h.createElement(He.div,Q({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Ni(a)?a:void 0,"aria-valuetext":u,role:"progressbar","data-state":Zp(a,s),"data-value":a??void 0,"data-max":s},l,{ref:t})))});Xp.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!js(r)?new Error(Z1(o,n)):null},value(e,t,n){const r=e[t],o=String(r),i=js(e.max)?e.max:nl;return r!=null&&!Jp(r,i)?new Error(J1(o,n)):null}};const G1="ProgressIndicator",Y1=h.forwardRef((e,t)=>{var n;const{__scopeProgress:r,...o}=e,i=K1(G1,r);return h.createElement(He.div,Q({"data-state":Zp(i.value,i.max),"data-value":(n=i.value)!==null&&n!==void 0?n:void 0,"data-max":i.max},o,{ref:t}))});function X1(e,t){return`${Math.round(e/t*100)}%`}function Zp(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Ni(e){return typeof e=="number"}function js(e){return Ni(e)&&!isNaN(e)&&e>0}function Jp(e,t){return Ni(e)&&!isNaN(e)&&e<=t&&e>=0}function Z1(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${nl}\`.`}function J1(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 ${nl} if no \`max\` prop is set) - \`null\` if the progress is indeterminate. -Defaulting to \`null\`.`}const qp=Xp,q1=Y1,eu=h.forwardRef(({className:e,value:t,indicatorColor:n,...r},o)=>x.jsx(qp,{ref:o,className:nr("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:x.jsx(q1,{className:`h-full w-full flex-1 transition-all ${n}`,style:{transform:`translateX(-${100-(t||0)}%)`}})}));eu.displayName=qp.displayName;function em({accuracy:e}){const t=e>70?"bg-correct":e>30?"bg-mid":"bg-wrong";return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"text-center",children:"Dokładność"}),x.jsx(eu,{value:e,indicatorColor:t}),x.jsxs("div",{className:"text-center",children:[e,"%"]})]})}function ew({timeLimit:e,onExpire:t}){const n=new Date(Date.now()+e*1e3),{minutes:r,seconds:o,totalSeconds:i}=qa.useTimer({expiryTimestamp:n,onExpire:t,autoStart:!0});function l(){return r.toString().padStart(2,"0")+":"+o.toString().padStart(2,"0")}function s(){const a=i/e;return a>.5?"bg-correct":a>.2?"bg-mid":"bg-wrong"}return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:i<=10?"text-wrong":"",children:l()}),x.jsx(eu,{value:i/e*100,indicatorColor:s()})]})}function jo({timeValue:e,timeState:t,timeText:n,setTime:r}){return x.jsx(xe,{className:t===e?"ring ring-offset-2":"",onClick:()=>r(e),children:n})}function tw(){const[e,t]=h.useState(0),[n,r]=h.useState(300),[o,i]=h.useState("add"),[l,s]=h.useState(!1),[a,u]=h.useState(100),c=h.useRef(Math.ceil(Math.random()*10)),f=h.useRef(Math.ceil(Math.random()*10)),[g,v]=h.useState(0),y=h.useRef(0),w=h.useRef(0),[C,p]=h.useState("");console.log(l),h.useEffect(()=>{t(0)},[]),h.useEffect(()=>(document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}),[C]),h.useEffect(()=>{z()},[o,l]);function d(){return l?"Różne działania":o=="add"?"Dodawanie":o=="sub"?"Odejmowanie":o=="mul"?"Mnożenie":"Dzielenie"}function m(){return(+(n/(y.current+w.current)).toFixed(2)).toString()}function S(){const _=n/60;return _==1?"1 minuta":_<5?`${_} minuty`:`${_} minut`}function k(_){_.key=="Enter"&&C&&N()}function E(_,F){return _+Math.floor(Math.random()*(F-_+1))}function $(){return o==="add"?c.current+f.current:o==="sub"?c.current-f.current:o==="mul"?c.current*f.current:o==="div"?c.current/f.current:0}function P(){o==="add"?(c.current=E(1,a),f.current=E(1,a-c.current)):o==="sub"?(c.current=E(1,a),f.current=E(1,c.current)):o==="mul"?(c.current=E(1,Math.floor(Math.sqrt(a))),f.current=E(1,Math.floor(Math.sqrt(a)))):o==="div"&&(f.current=E(1,Math.floor(Math.sqrt(a))),c.current=f.current*E(1,Math.floor(Math.sqrt(a)))),v($())}function z(){if(l){const _=["add","sub","mul","div"],F=E(0,3);i(_[F])}P(),p("")}function N(){C!==""&&(parseInt(C)===g?y.current+=1:w.current+=1,z())}function A(_){p(_.target.value)}function O(){y.current=0,w.current=0,t(1),P()}function B(){console.log("Time Up"),t(2)}function M(){return x.jsxs(x.Fragment,{children:[x.jsx("h2",{className:"text-lg font-bold mb-2",children:"Utwórz wyzwanie"}),x.jsx("div",{className:"mb-2",children:"Działanie"}),x.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[x.jsx(we,{op:o,ownOp:"add",shuf:l,tooltipName:"Dodawanie",onClick:()=>{i("add"),s(!1)},children:x.jsx(Oa,{})}),x.jsx(we,{op:o,ownOp:"sub",shuf:l,tooltipName:"Odejmowanie",onClick:()=>{i("sub"),s(!1)},children:x.jsx(ja,{})}),x.jsx(we,{op:o,ownOp:"mul",shuf:l,tooltipName:"Mnożenie",onClick:()=>{i("mul"),s(!1)},children:x.jsx(_a,{})}),x.jsx(we,{op:o,ownOp:"div",shuf:l,tooltipName:"Dzielenie",onClick:()=>{i("div"),s(!1)},children:x.jsx(za,{})}),x.jsx(we,{op:o,ownOp:"all",shuf:l,tooltipName:"Mieszane",onClick:()=>{i("add"),s(!0)},children:x.jsx(Ma,{})})]}),x.jsx("div",{className:"my-2",children:"Maksymalna liczba"}),x.jsx(ao,{value:a,onChange:_=>u(parseInt(_.target.value))}),x.jsx("div",{className:"my-2",children:"Limit czasu"}),x.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[x.jsx(jo,{timeValue:60,timeState:n,timeText:"1 minuta",setTime:r}),x.jsx(jo,{timeValue:180,timeState:n,timeText:"3 minuty",setTime:r}),x.jsx(jo,{timeValue:300,timeState:n,timeText:"5 minut",setTime:r}),x.jsx(jo,{timeValue:600,timeState:n,timeText:"10 minut",setTime:r})]}),x.jsx(xe,{className:"my-4",onClick:()=>O(),children:"Start"})]})}function W(){const _=Math.round(y.current/(y.current+w.current)*100);return x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsx("h2",{className:"text-lg font-bold my-2",children:"Wyniki wyzwania"}),x.jsxs("h3",{children:[d()," do ",a,", ",S()]}),x.jsxs("div",{className:"flex flex-row gap-4 items-center justify-center",children:[x.jsx("div",{children:"Poprawne odpowiedzi"}),x.jsx("div",{className:"bg-correct px-4 py-2 rounded-md text-lg",children:y.current})]}),x.jsxs("div",{className:"flex flex-row gap-4 items-center justify-center",children:[x.jsx("div",{children:"Błędne odpowiedzi"}),x.jsx("div",{className:"bg-wrong px-4 py-2 rounded-md text-lg",children:w.current})]}),x.jsx(em,{accuracy:_}),x.jsxs("div",{className:"flex flex-row gap-4 items-center justify-center",children:[x.jsx("div",{children:"Tempo"}),x.jsxs("div",{className:"bg-secondary px-4 py-2 rounded-md text-lg",children:[m(),"s"]})]}),x.jsx(xe,{onClick:O,className:"w-max mx-auto",children:"Spróbuj ponownie"}),x.jsx(xe,{onClick:()=>t(0),className:"w-max mx-auto",children:"Nowe wyzwanie"})]})}return x.jsx("div",{children:e===0?x.jsx(M,{}):e===1?x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsx(ew,{timeLimit:n,onExpire:B}),x.jsxs("div",{className:"flex items-center justify-center gap-2",children:[x.jsx(bi,{score:y.current,type:"correct"}),x.jsx(bi,{score:w.current,type:"wrong"})]}),x.jsx(La,{a:c.current,b:f.current,op:o}),x.jsxs("div",{className:"flex flex-row gap-3",children:[x.jsx(Na,{value:C,onChange:A,ansState:0}),x.jsx(xe,{onClick:N,children:x.jsx(Ta,{size:16})})]})]}):x.jsx(W,{})})}function nw({...e}){return x.jsxs("ul",{className:"flex flex-row gap-4 text-lg items-center justify-center "+e.className,children:[x.jsx(Oo,{to:"/",children:"Trening"}),x.jsx(Oo,{to:"/challenge",children:"Wyzwanie"}),x.jsx(Oo,{to:"/race",children:"Wyścig"}),x.jsx(Oo,{to:"/about",children:"Informacje"})]})}function Oo({to:e,children:t,...n}){const r=so(e),o=cv({path:r.pathname,end:!0});return x.jsx("li",{className:o?"active underline":"",children:x.jsx(Iv,{to:e,className:"text-primary",...n,children:t})})}function rw(){return x.jsxs("div",{className:"flex flex-col gap-4 items-start justify-center text-justify",children:[x.jsx("h2",{className:"font-bold text-lg",children:"Przeznaczenie"}),x.jsx("p",{className:"text-justify",children:"Aplikacja służy do ćwiczenia podstawowej arytmetyki."}),x.jsx("h2",{className:"font-bold text-lg",children:"Zasady ogólne"}),x.jsx("p",{children:"Istnieje możliwość wyboru konkretnego działania, lub rozwiązywania mieszanych przykładów. Maksymalna liczba oznacza najwyższą liczbę, która pojawi się w zadaniach, zarówno jako wynik, jak i argument. W przypadku mnożenia i dzielenia odpowiednio czynniki i dzielnik nie przekraczają pierwiastka z tej liczby."}),x.jsx("p",{children:"Wyniki odejmowania i dzielenia są zawsze liczbą naturalną."}),x.jsx("h2",{className:"font-bold text-lg",children:"Tryb treningu"}),x.jsx("p",{children:"Tryb treningu służy do rozwiązywania przykładów bez limitu czasu. Zmiana ustawień jest zawsze możliwa."}),x.jsx("p",{children:"Należy wpisać wynik wyświetlonego działania w pole tekstowe. Prawy przycisk sprawdza wynik. Jeśli wynik jest poprawny, obwódka podświetla się na zielono, a jeśli jest błędny, na czerwono. Każdy wynik można sprawdzić tylko raz. Lewy przycisk generuje nowe działanie, umożliwia także pominięcie aktualnego działania. Klawisz Enter sprawdza aktualną odpowiedź lub przechodzi do kolejnego przykładu."}),x.jsx("p",{children:"Pod przyciskami znajdują się liczniki poprawnych i błędnych odpowiedzi. Liczniki zapisują wyniki do czasu kolejnej wizyty na stronie."}),x.jsx("p",{children:'W zakładce "Ustawienia" zawsze istnieje możliwość wyboru działania. Możliwe jest także ustawienie maksymalnej liczby. Przycisk "Wyczyść wyniki" zeruje liczniki poprawnych i błędnych odpowiedzi.'}),x.jsx("h2",{className:"font-bold text-lg",children:"Tryb wyzwania"}),x.jsx("p",{children:"Tryb wyzwania polega na (poprawnym) rozwiązaniu jak największej liczby przykładów w ograniczonym czasie."}),x.jsx("p",{children:"Pierwszym etapem jest ustawienie zasad wyzwania. Należy wybrać działanie, maksymalną liczbę i limit czasu. Następnie można rozpocząć wyzwanie."}),x.jsx("p",{children:"Podczas wyzwania należy wpisać rozwiązanie zadania w polu tekstowym. Odpowiedź można zatwierdzić przyciskiem lub klawiszem Enter. Po zatwierdzeniu system automatycznie sprawdza odpowiedź i przechodzi do kolejnego przykładu. Nad aktualnym przykładem znajduje się licznik poprawnych i błędnych odpowiedzi oraz pozostały czas."}),x.jsx("p",{children:"Po upływie czasu pojawiają się wyniki wyzwania. Podana jest liczba poprawnych i błędnych odpowiedzi, a także dokładność w procentach oraz tempo (średni czas odpowiedzi). Przyciski umożliwiają powtórzenie tego samego wyzwania bądź utworzenie nowego."}),x.jsx("h2",{className:"font-bold text-lg",children:"Tryb wyścigu"}),x.jsx("p",{children:"Tryb wyścigu polega na rozwiązaniu jak najszybszym poprawnym rozwiązaniu ustalonej liczby przykładów."}),x.jsx("p",{children:"Pierwszym etapem jest ustawienie zasad wyścigu. Należy wybrać działanie, maksymalną liczbę i cel wyścigu (liczbę przykładów). Następnie można rozpocząć wyścig."}),x.jsx("p",{children:"Podczas wyścigu należy wpisać rozwiązanie zadania w polu tekstowym. Odpowiedź można zatwierdzić przyciskiem lub klawiszem Enter. Po zatwierdzeniu system automatycznie sprawdza odpowiedź i przechodzi do kolejnego przykładu. Nad aktualnym przykładem znajduje się licznik poprawnych odpowiedzi oraz czas wyścigu."}),x.jsx("p",{children:"Po upływie czasu pojawiają się wyniki wyścigu. Podana jest liczba poprawnych odpowiedzi, a także dokładność w procentach. Przyciski umożliwiają powtórzenie tego samego wyścigu bądź utworzenie nowego."}),x.jsx("h2",{className:"font-bold text-lg",children:"Informacje prawne"}),x.jsxs("p",{children:["Copyright © 2023 Igor Trujnara. Udostępniono na zasadach"," ",x.jsx("a",{href:"https://opensource.org/license/mit/",children:"licencji MIT"}),"."]})]})}function ow({correct:e,target:t}){return x.jsxs("div",{className:"bg-correct px-4 py-2 text-lg rounded-md w-max mx-auto",children:[e," / ",t]})}function Mo({targetValue:e,targetState:t,setTarget:n}){return x.jsx(xe,{className:e===t?"ring ring-offset-2":"",onClick:()=>n(e),children:e})}function iw(){const[e,t]=h.useState(0),[n,r]=h.useState(10),[o,i]=h.useState("add"),[l,s]=h.useState(!1),[a,u]=h.useState(100),c=h.useRef(Math.ceil(Math.random()*10)),f=h.useRef(Math.ceil(Math.random()*10)),[g,v]=h.useState(0),y=h.useRef(0),w=h.useRef(0),[C,p]=h.useState(""),{minutes:d,seconds:m,start:S,reset:k,pause:E}=qa.useStopwatch();console.log(l),h.useEffect(()=>{t(0)},[]),h.useEffect(()=>(document.addEventListener("keydown",z),()=>{document.removeEventListener("keydown",z)}),[C]),h.useEffect(()=>{B()},[o,l]);function $(){return`${d.toString().padStart(2,"0")}:${m.toString().padStart(2,"0")}`}function P(){return l?"Różne działania":o=="add"?"Dodawanie":o=="sub"?"Odejmowanie":o=="mul"?"Mnożenie":"Dzielenie"}function z(T){T.key=="Enter"&&C&&M()}function N(T,L){return T+Math.floor(Math.random()*(L-T+1))}function A(){return o==="add"?c.current+f.current:o==="sub"?c.current-f.current:o==="mul"?c.current*f.current:o==="div"?c.current/f.current:0}function O(){o==="add"?(c.current=N(1,a),f.current=N(1,a-c.current)):o==="sub"?(c.current=N(1,a),f.current=N(1,c.current)):o==="mul"?(c.current=N(1,Math.floor(Math.sqrt(a))),f.current=N(1,Math.floor(Math.sqrt(a)))):o==="div"&&(f.current=N(1,Math.floor(Math.sqrt(a))),c.current=f.current*N(1,Math.floor(Math.sqrt(a)))),v(A())}function B(){if(l){const T=["add","sub","mul","div"],L=N(0,3);i(T[L])}O(),p("")}function M(){if(C!==""){if(parseInt(C)===g){if(y.current+=1,y.current>=n){t(2),E();return}}else w.current+=1;B()}}function W(T){p(T.target.value)}function _(){y.current=0,w.current=0,p(""),t(1),O(),k(),S()}function F(){return x.jsxs(x.Fragment,{children:[x.jsx("h2",{className:"text-lg font-bold mb-2",children:"Utwórz wyścig"}),x.jsx("div",{className:"mb-2",children:"Działanie"}),x.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[x.jsx(we,{op:o,ownOp:"add",shuf:l,tooltipName:"Dodawanie",onClick:()=>{i("add"),s(!1)},children:x.jsx(Oa,{})}),x.jsx(we,{op:o,ownOp:"sub",shuf:l,tooltipName:"Odejmowanie",onClick:()=>{i("sub"),s(!1)},children:x.jsx(ja,{})}),x.jsx(we,{op:o,ownOp:"mul",shuf:l,tooltipName:"Mnożenie",onClick:()=>{i("mul"),s(!1)},children:x.jsx(_a,{})}),x.jsx(we,{op:o,ownOp:"div",shuf:l,tooltipName:"Dzielenie",onClick:()=>{i("div"),s(!1)},children:x.jsx(za,{})}),x.jsx(we,{op:o,ownOp:"all",shuf:l,tooltipName:"Mieszane",onClick:()=>{i("add"),s(!0)},children:x.jsx(Ma,{})})]}),x.jsx("div",{className:"my-2",children:"Maksymalna liczba"}),x.jsx(ao,{value:a,onChange:T=>u(parseInt(T.target.value))}),x.jsx("div",{className:"my-2",children:"Cel"}),x.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[x.jsx(Mo,{targetValue:10,targetState:n,setTarget:r}),x.jsx(Mo,{targetValue:25,targetState:n,setTarget:r}),x.jsx(Mo,{targetValue:50,targetState:n,setTarget:r}),x.jsx(Mo,{targetValue:100,targetState:n,setTarget:r})]}),x.jsx(xe,{className:"my-4",onClick:()=>_(),children:"Start"})]})}function R(){const T=Math.round(y.current/(y.current+w.current)*100);return x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsx("h2",{className:"text-lg font-bold my-2",children:"Wyniki wyścigu"}),x.jsxs("h3",{children:[P()," do ",a,", ",n," poprawnych"]}),x.jsx("div",{className:"bg-time text-3xl px-4 py-2 rounded-md mx-auto",children:$()}),x.jsxs("div",{className:"flex flex-row gap-4 items-center justify-center",children:[x.jsx("div",{children:"Błędne odpowiedzi"}),x.jsx("div",{className:"bg-wrong px-4 py-2 rounded-md text-lg",children:w.current})]}),x.jsx(em,{accuracy:T}),x.jsx(xe,{onClick:_,className:"w-max mx-auto",children:"Spróbuj ponownie"}),x.jsx(xe,{onClick:()=>t(0),className:"w-max mx-auto",children:"Nowy wyścig"})]})}return x.jsx("div",{children:e===0?x.jsx(F,{}):e===1?x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsx("div",{children:$()}),x.jsx(ow,{correct:y.current,target:n}),x.jsx(La,{a:c.current,b:f.current,op:o}),x.jsxs("div",{className:"flex flex-row gap-3",children:[x.jsx(Na,{value:C,onChange:W,ansState:0}),x.jsx(xe,{onClick:M,children:x.jsx(Ta,{size:16})})]})]}):x.jsx(R,{})})}function lw(){return x.jsx("div",{className:"w-screen max-w-[500px] h-full m-0",children:x.jsxs("div",{className:"mx-2",children:[x.jsx(nw,{className:"my-2"}),x.jsxs(bv,{children:[x.jsx(Cr,{path:"/",Component:W1}),x.jsx(Cr,{path:"/challenge",Component:tw}),x.jsx(Cr,{path:"/race",Component:iw}),x.jsx(Cr,{path:"/about",Component:rw})]})]})})}Tl.createRoot(document.getElementById("root")).render(x.jsx(I.StrictMode,{children:x.jsx(Ov,{children:x.jsx(lw,{})})})); +Defaulting to \`null\`.`}const qp=Xp,q1=Y1,eu=h.forwardRef(({className:e,value:t,indicatorColor:n,...r},o)=>x.jsx(qp,{ref:o,className:nr("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:x.jsx(q1,{className:`h-full w-full flex-1 transition-all ${n}`,style:{transform:`translateX(-${100-(t||0)}%)`}})}));eu.displayName=qp.displayName;function em({accuracy:e}){const t=e>70?"bg-correct":e>30?"bg-mid":"bg-wrong";return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"text-center",children:"Dokładność"}),x.jsx(eu,{value:e,indicatorColor:t}),x.jsxs("div",{className:"text-center",children:[e,"%"]})]})}function ew({timeLimit:e,onExpire:t}){const n=new Date(Date.now()+e*1e3),{minutes:r,seconds:o,totalSeconds:i}=qa.useTimer({expiryTimestamp:n,onExpire:t,autoStart:!0});function l(){return r.toString().padStart(2,"0")+":"+o.toString().padStart(2,"0")}function s(){const a=i/e;return a>.5?"bg-correct":a>.2?"bg-mid":"bg-wrong"}return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:i<=10?"text-wrong":"",children:l()}),x.jsx(eu,{value:i/e*100,indicatorColor:s()})]})}function jo({timeValue:e,timeState:t,timeText:n,setTime:r}){return x.jsx(xe,{className:t===e?"ring ring-offset-2":"",onClick:()=>r(e),children:n})}function tw(){const[e,t]=h.useState(0),[n,r]=h.useState(300),[o,i]=h.useState("add"),[l,s]=h.useState(!1),[a,u]=h.useState(100),c=h.useRef(Math.ceil(Math.random()*10)),f=h.useRef(Math.ceil(Math.random()*10)),[g,v]=h.useState(0),y=h.useRef(0),w=h.useRef(0),[C,p]=h.useState("");console.log(l),h.useEffect(()=>{t(0)},[]),h.useEffect(()=>(document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}),[C]),h.useEffect(()=>{T()},[o,l]);function d(){return l?"Różne działania":o=="add"?"Dodawanie":o=="sub"?"Odejmowanie":o=="mul"?"Mnożenie":"Dzielenie"}function m(){return(+(n/(y.current+w.current)).toFixed(2)).toString()}function S(){const _=n/60;return _==1?"1 minuta":_<5?`${_} minuty`:`${_} minut`}function k(_){_.key=="Enter"&&C&&N()}function E(_,F){return _+Math.floor(Math.random()*(F-_+1))}function $(){return o==="add"?c.current+f.current:o==="sub"?c.current-f.current:o==="mul"?c.current*f.current:o==="div"?c.current/f.current:0}function P(){o==="add"?(c.current=E(1,a),f.current=E(1,a-c.current)):o==="sub"?(c.current=E(1,a),f.current=E(1,c.current)):o==="mul"?(c.current=E(1,Math.floor(Math.sqrt(a))),f.current=E(1,Math.floor(Math.sqrt(a)))):o==="div"&&(f.current=E(1,Math.floor(Math.sqrt(a))),c.current=f.current*E(1,Math.floor(Math.sqrt(a)))),v($())}function T(){if(l){const _=["add","sub","mul","div"],F=E(0,3);i(_[F])}P(),p("")}function N(){C!==""&&(parseInt(C)===g?y.current+=1:w.current+=1,T())}function A(_){p(_.target.value)}function O(){y.current=0,w.current=0,t(1),P()}function B(){console.log("Time Up"),t(2)}function M(){return x.jsxs(x.Fragment,{children:[x.jsx("h2",{className:"text-lg font-bold mb-2",children:"Utwórz wyzwanie"}),x.jsx("div",{className:"mb-2",children:"Działanie"}),x.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[x.jsx(we,{op:o,ownOp:"add",shuf:l,tooltipName:"Dodawanie",onClick:()=>{i("add"),s(!1)},children:x.jsx(Oa,{})}),x.jsx(we,{op:o,ownOp:"sub",shuf:l,tooltipName:"Odejmowanie",onClick:()=>{i("sub"),s(!1)},children:x.jsx(ja,{})}),x.jsx(we,{op:o,ownOp:"mul",shuf:l,tooltipName:"Mnożenie",onClick:()=>{i("mul"),s(!1)},children:x.jsx(_a,{})}),x.jsx(we,{op:o,ownOp:"div",shuf:l,tooltipName:"Dzielenie",onClick:()=>{i("div"),s(!1)},children:x.jsx(Ta,{})}),x.jsx(we,{op:o,ownOp:"all",shuf:l,tooltipName:"Mieszane",onClick:()=>{i("add"),s(!0)},children:x.jsx(Ma,{})})]}),x.jsx("div",{className:"my-2",children:"Maksymalna liczba"}),x.jsx(ao,{value:a,onChange:_=>u(parseInt(_.target.value))}),x.jsx("div",{className:"my-2",children:"Limit czasu"}),x.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[x.jsx(jo,{timeValue:60,timeState:n,timeText:"1 minuta",setTime:r}),x.jsx(jo,{timeValue:180,timeState:n,timeText:"3 minuty",setTime:r}),x.jsx(jo,{timeValue:300,timeState:n,timeText:"5 minut",setTime:r}),x.jsx(jo,{timeValue:600,timeState:n,timeText:"10 minut",setTime:r})]}),x.jsx(xe,{className:"my-4",onClick:()=>O(),children:"Start"})]})}function W(){const _=Math.round(y.current/(y.current+w.current)*100);return x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsx("h2",{className:"text-lg font-bold my-2",children:"Wyniki wyzwania"}),x.jsxs("h3",{children:[d()," do ",a,", ",S()]}),x.jsxs("div",{className:"flex flex-row gap-4 items-center justify-center",children:[x.jsx("div",{children:"Poprawne odpowiedzi"}),x.jsx("div",{className:"bg-correct px-4 py-2 rounded-md text-lg",children:y.current})]}),x.jsxs("div",{className:"flex flex-row gap-4 items-center justify-center",children:[x.jsx("div",{children:"Błędne odpowiedzi"}),x.jsx("div",{className:"bg-wrong px-4 py-2 rounded-md text-lg",children:w.current})]}),x.jsx(em,{accuracy:_}),x.jsxs("div",{className:"flex flex-row gap-4 items-center justify-center",children:[x.jsx("div",{children:"Tempo"}),x.jsxs("div",{className:"bg-secondary px-4 py-2 rounded-md text-lg",children:[m(),"s"]})]}),x.jsx(xe,{onClick:O,className:"w-max mx-auto",children:"Spróbuj ponownie"}),x.jsx(xe,{onClick:()=>t(0),className:"w-max mx-auto",children:"Nowe wyzwanie"})]})}return x.jsx("div",{children:e===0?x.jsx(M,{}):e===1?x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsx(ew,{timeLimit:n,onExpire:B}),x.jsxs("div",{className:"flex items-center justify-center gap-2",children:[x.jsx(bi,{score:y.current,type:"correct"}),x.jsx(bi,{score:w.current,type:"wrong"})]}),x.jsx(La,{a:c.current,b:f.current,op:o}),x.jsxs("div",{className:"flex flex-row gap-3",children:[x.jsx(Na,{value:C,onChange:A,ansState:0}),x.jsx(xe,{onClick:N,children:x.jsx(za,{size:16})})]})]}):x.jsx(W,{})})}function nw({...e}){return x.jsxs("ul",{className:"flex flex-row gap-4 text-lg items-center justify-center "+e.className,children:[x.jsx(Oo,{to:"/",children:"Trening"}),x.jsx(Oo,{to:"/challenge",children:"Wyzwanie"}),x.jsx(Oo,{to:"/race",children:"Wyścig"}),x.jsx(Oo,{to:"/about",children:"Informacje"})]})}function Oo({to:e,children:t,...n}){const r=so(e),o=cv({path:r.pathname,end:!0});return x.jsx("li",{className:o?"active underline":"",children:x.jsx(Iv,{to:e,className:"text-primary",...n,children:t})})}function rw(){return x.jsxs("div",{className:"flex flex-col gap-4 items-start justify-center text-justify",children:[x.jsx("h2",{className:"font-bold text-lg",children:"Przeznaczenie"}),x.jsx("p",{className:"text-justify",children:"Aplikacja służy do ćwiczenia podstawowej arytmetyki."}),x.jsx("h2",{className:"font-bold text-lg",children:"Zasady ogólne"}),x.jsx("p",{children:"Istnieje możliwość wyboru konkretnego działania, lub rozwiązywania mieszanych przykładów. Maksymalna liczba oznacza najwyższą liczbę, która pojawi się w zadaniach, zarówno jako wynik, jak i argument. W przypadku mnożenia i dzielenia odpowiednio czynniki i dzielnik nie przekraczają pierwiastka z tej liczby."}),x.jsx("p",{children:"Wyniki odejmowania i dzielenia są zawsze liczbą naturalną."}),x.jsx("h2",{className:"font-bold text-lg",children:"Tryb treningu"}),x.jsx("p",{children:"Tryb treningu służy do rozwiązywania przykładów bez limitu czasu. Zmiana ustawień jest zawsze możliwa."}),x.jsx("p",{children:"Należy wpisać wynik wyświetlonego działania w pole tekstowe. Prawy przycisk sprawdza wynik. Jeśli wynik jest poprawny, obwódka podświetla się na zielono, a jeśli jest błędny, na czerwono. Każdy wynik można sprawdzić tylko raz. Lewy przycisk generuje nowe działanie, umożliwia także pominięcie aktualnego działania. Klawisz Enter sprawdza aktualną odpowiedź lub przechodzi do kolejnego przykładu."}),x.jsx("p",{children:"Pod przyciskami znajdują się liczniki poprawnych i błędnych odpowiedzi. Liczniki zapisują wyniki do czasu kolejnej wizyty na stronie."}),x.jsx("p",{children:'W zakładce "Ustawienia" zawsze istnieje możliwość wyboru działania. Możliwe jest także ustawienie maksymalnej liczby. Przycisk "Wyczyść wyniki" zeruje liczniki poprawnych i błędnych odpowiedzi.'}),x.jsx("h2",{className:"font-bold text-lg",children:"Tryb wyzwania"}),x.jsx("p",{children:"Tryb wyzwania polega na (poprawnym) rozwiązaniu jak największej liczby przykładów w ograniczonym czasie."}),x.jsx("p",{children:"Pierwszym etapem jest ustawienie zasad wyzwania. Należy wybrać działanie, maksymalną liczbę i limit czasu. Następnie można rozpocząć wyzwanie."}),x.jsx("p",{children:"Podczas wyzwania należy wpisać rozwiązanie zadania w polu tekstowym. Odpowiedź można zatwierdzić przyciskiem lub klawiszem Enter. Po zatwierdzeniu system automatycznie sprawdza odpowiedź i przechodzi do kolejnego przykładu. Nad aktualnym przykładem znajduje się licznik poprawnych i błędnych odpowiedzi oraz pozostały czas."}),x.jsx("p",{children:"Po upływie czasu pojawiają się wyniki wyzwania. Podana jest liczba poprawnych i błędnych odpowiedzi, a także dokładność w procentach oraz tempo (średni czas odpowiedzi). Przyciski umożliwiają powtórzenie tego samego wyzwania bądź utworzenie nowego."}),x.jsx("h2",{className:"font-bold text-lg",children:"Tryb wyścigu"}),x.jsx("p",{children:"Tryb wyścigu polega na rozwiązaniu jak najszybszym poprawnym rozwiązaniu ustalonej liczby przykładów."}),x.jsx("p",{children:"Pierwszym etapem jest ustawienie zasad wyścigu. Należy wybrać działanie, maksymalną liczbę i cel wyścigu (liczbę przykładów). Następnie można rozpocząć wyścig."}),x.jsx("p",{children:"Podczas wyścigu należy wpisać rozwiązanie zadania w polu tekstowym. Odpowiedź można zatwierdzić przyciskiem lub klawiszem Enter. Po zatwierdzeniu system automatycznie sprawdza odpowiedź i przechodzi do kolejnego przykładu. Nad aktualnym przykładem znajduje się licznik poprawnych odpowiedzi oraz czas wyścigu."}),x.jsx("p",{children:"Po upływie czasu pojawiają się wyniki wyścigu. Podana jest liczba poprawnych odpowiedzi, a także dokładność w procentach. Przyciski umożliwiają powtórzenie tego samego wyścigu bądź utworzenie nowego."}),x.jsx("h2",{className:"font-bold text-lg",children:"Informacje prawne"}),x.jsxs("p",{children:["Copyright © 2023 Igor Trujnara. Udostępniono na zasadach"," ",x.jsx("a",{href:"https://opensource.org/license/mit/",children:"licencji MIT"}),". Korzystanie z aplikacji jest całkowicie bezpłatne, jednak jeśli chcesz wesprzeć otwarte oprogramowanie lub podziękować, skorzystaj z przycisku poniżej."]}),x.jsx("a",{href:"https://www.buymeacoffee.com/itrujnara",className:"mx-auto my-2",children:x.jsx("img",{src:"https://img.buymeacoffee.com/button-api/?text=Podaruj kawę&emoji=&slug=itrujnara&button_colour=FFDD00&font_colour=000000&font_family=Lato&outline_colour=000000&coffee_colour=ffffff"})})]})}function ow({correct:e,target:t}){return x.jsxs("div",{className:"bg-correct px-4 py-2 text-lg rounded-md w-max mx-auto",children:[e," / ",t]})}function Mo({targetValue:e,targetState:t,setTarget:n}){return x.jsx(xe,{className:e===t?"ring ring-offset-2":"",onClick:()=>n(e),children:e})}function iw(){const[e,t]=h.useState(0),[n,r]=h.useState(10),[o,i]=h.useState("add"),[l,s]=h.useState(!1),[a,u]=h.useState(100),c=h.useRef(Math.ceil(Math.random()*10)),f=h.useRef(Math.ceil(Math.random()*10)),[g,v]=h.useState(0),y=h.useRef(0),w=h.useRef(0),[C,p]=h.useState(""),{minutes:d,seconds:m,start:S,reset:k,pause:E}=qa.useStopwatch();console.log(l),h.useEffect(()=>{t(0)},[]),h.useEffect(()=>(document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}),[C]),h.useEffect(()=>{B()},[o,l]);function $(){return`${d.toString().padStart(2,"0")}:${m.toString().padStart(2,"0")}`}function P(){return l?"Różne działania":o=="add"?"Dodawanie":o=="sub"?"Odejmowanie":o=="mul"?"Mnożenie":"Dzielenie"}function T(z){z.key=="Enter"&&C&&M()}function N(z,L){return z+Math.floor(Math.random()*(L-z+1))}function A(){return o==="add"?c.current+f.current:o==="sub"?c.current-f.current:o==="mul"?c.current*f.current:o==="div"?c.current/f.current:0}function O(){o==="add"?(c.current=N(1,a),f.current=N(1,a-c.current)):o==="sub"?(c.current=N(1,a),f.current=N(1,c.current)):o==="mul"?(c.current=N(1,Math.floor(Math.sqrt(a))),f.current=N(1,Math.floor(Math.sqrt(a)))):o==="div"&&(f.current=N(1,Math.floor(Math.sqrt(a))),c.current=f.current*N(1,Math.floor(Math.sqrt(a)))),v(A())}function B(){if(l){const z=["add","sub","mul","div"],L=N(0,3);i(z[L])}O(),p("")}function M(){if(C!==""){if(parseInt(C)===g){if(y.current+=1,y.current>=n){t(2),E();return}}else w.current+=1;B()}}function W(z){p(z.target.value)}function _(){y.current=0,w.current=0,p(""),t(1),O(),k(),S()}function F(){return x.jsxs(x.Fragment,{children:[x.jsx("h2",{className:"text-lg font-bold mb-2",children:"Utwórz wyścig"}),x.jsx("div",{className:"mb-2",children:"Działanie"}),x.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[x.jsx(we,{op:o,ownOp:"add",shuf:l,tooltipName:"Dodawanie",onClick:()=>{i("add"),s(!1)},children:x.jsx(Oa,{})}),x.jsx(we,{op:o,ownOp:"sub",shuf:l,tooltipName:"Odejmowanie",onClick:()=>{i("sub"),s(!1)},children:x.jsx(ja,{})}),x.jsx(we,{op:o,ownOp:"mul",shuf:l,tooltipName:"Mnożenie",onClick:()=>{i("mul"),s(!1)},children:x.jsx(_a,{})}),x.jsx(we,{op:o,ownOp:"div",shuf:l,tooltipName:"Dzielenie",onClick:()=>{i("div"),s(!1)},children:x.jsx(Ta,{})}),x.jsx(we,{op:o,ownOp:"all",shuf:l,tooltipName:"Mieszane",onClick:()=>{i("add"),s(!0)},children:x.jsx(Ma,{})})]}),x.jsx("div",{className:"my-2",children:"Maksymalna liczba"}),x.jsx(ao,{value:a,onChange:z=>u(parseInt(z.target.value))}),x.jsx("div",{className:"my-2",children:"Cel"}),x.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[x.jsx(Mo,{targetValue:10,targetState:n,setTarget:r}),x.jsx(Mo,{targetValue:25,targetState:n,setTarget:r}),x.jsx(Mo,{targetValue:50,targetState:n,setTarget:r}),x.jsx(Mo,{targetValue:100,targetState:n,setTarget:r})]}),x.jsx(xe,{className:"my-4",onClick:()=>_(),children:"Start"})]})}function R(){const z=Math.round(y.current/(y.current+w.current)*100);return x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsx("h2",{className:"text-lg font-bold my-2",children:"Wyniki wyścigu"}),x.jsxs("h3",{children:[P()," do ",a,", ",n," poprawnych"]}),x.jsx("div",{className:"bg-time text-3xl px-4 py-2 rounded-md mx-auto",children:$()}),x.jsxs("div",{className:"flex flex-row gap-4 items-center justify-center",children:[x.jsx("div",{children:"Błędne odpowiedzi"}),x.jsx("div",{className:"bg-wrong px-4 py-2 rounded-md text-lg",children:w.current})]}),x.jsx(em,{accuracy:z}),x.jsx(xe,{onClick:_,className:"w-max mx-auto",children:"Spróbuj ponownie"}),x.jsx(xe,{onClick:()=>t(0),className:"w-max mx-auto",children:"Nowy wyścig"})]})}return x.jsx("div",{children:e===0?x.jsx(F,{}):e===1?x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsx("div",{children:$()}),x.jsx(ow,{correct:y.current,target:n}),x.jsx(La,{a:c.current,b:f.current,op:o}),x.jsxs("div",{className:"flex flex-row gap-3",children:[x.jsx(Na,{value:C,onChange:W,ansState:0}),x.jsx(xe,{onClick:M,children:x.jsx(za,{size:16})})]})]}):x.jsx(R,{})})}function lw(){return x.jsx("div",{className:"w-screen max-w-[500px] h-full m-0",children:x.jsxs("div",{className:"mx-2",children:[x.jsx(nw,{className:"my-2"}),x.jsxs(bv,{children:[x.jsx(Cr,{path:"/",Component:W1}),x.jsx(Cr,{path:"/challenge",Component:tw}),x.jsx(Cr,{path:"/race",Component:iw}),x.jsx(Cr,{path:"/about",Component:rw})]})]})})}zl.createRoot(document.getElementById("root")).render(x.jsx(I.StrictMode,{children:x.jsx(Ov,{children:x.jsx(lw,{})})})); diff --git a/index.html b/index.html index 0a8f59a..2cd1a8d 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Arytmetyka - +